MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / printTokens

Function printTokens

main.go:625–637  ·  view source on GitHub ↗
(out io.Writer, state *agent.AgentState)

Source from the content-addressed store, hash-verified

623 return writeJSON(os.Stdout, map[string]any{"public_key_file": publicPath, "private_key_file": privatePath,
624 "admin_token_file": tokenPath, "jwt_issuer": *issuer, "jwt_audience": *audience,
625 "jwt_tenant_claim": "tenant_id", "jwt_scope_claim": "scope", "expires_at": now.Add(*validFor)})
626}
627
628func runRuntimeCLI(args []string) error {
629 if len(args) == 0 || args[0] != "dump" {
630 return fmt.Errorf("usage: lumina-backend runtime dump --session <session-id>")
631 }
632 flags := flag.NewFlagSet("runtime dump", flag.ContinueOnError)
633 sessionID := flags.String("session", "", "session ID to inspect")
634 if err := flags.Parse(args[1:]); err != nil {
635 return err
636 }
637 if strings.TrimSpace(*sessionID) == "" {
638 return fmt.Errorf("runtime dump requires --session")
639 }
640 cfg := config.NewConfig()

Callers 1

handleREPLSlashCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected