Add isolated SIP call tool, optional debug capture and split interface schemas

This commit is contained in:
2026-10-08 12:44:45 +08:00
parent 98b3fd469d
commit 385bda0822
49 changed files with 3688 additions and 28 deletions
+6
View File
@@ -23,6 +23,7 @@ import (
func newAgentCommand() *cobra.Command {
var mode string
var debug bool
command := &cobra.Command{
Use: "agent", Short: "Run the bound Agent", Args: cobra.NoArgs,
SilenceUsage: true,
@@ -31,6 +32,10 @@ func newAgentCommand() *cobra.Command {
if err != nil {
return err
}
settings.Debug = debug
if err := settings.ValidateDebug(); err != nil {
return err
}
ca, err := readAgentPEM("MTLS_CA_FILE", settings.CAFile)
if err != nil {
return err
@@ -146,6 +151,7 @@ func newAgentCommand() *cobra.Command {
return nil
},
}
command.Flags().BoolVarP(&debug, "debug", "D", false, "Require per-call evidence from the nonproduction capture script")
command.Flags().StringVar(&mode, "mode", "mock", "isolated Mock, SIP-only or explicit nonprod-real mode")
return command
}