(out io.Writer, state *agent.AgentState)
| 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 | |
| 628 | func 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() |
no outgoing calls
no test coverage detected