(deps commandDeps)
| 94 | } |
| 95 | |
| 96 | func newAgentSoulInspectCommand(deps commandDeps) *cobra.Command { |
| 97 | cmd := &cobra.Command{ |
| 98 | Use: "inspect <agent>", |
| 99 | Short: "Inspect one agent's resolved Soul", |
| 100 | Example: " agh agent soul inspect coder --workspace checkout-api --json", |
| 101 | Args: exactOneNonBlankArg(), |
| 102 | RunE: func(cmd *cobra.Command, args []string) error { |
| 103 | client, err := clientFromDeps(deps) |
| 104 | if err != nil { |
| 105 | return err |
| 106 | } |
| 107 | query, err := agentQueryFromCommand(cmd) |
| 108 | if err != nil { |
| 109 | return err |
| 110 | } |
| 111 | record, err := client.GetAgentSoul(cmd.Context(), args[0], query) |
| 112 | if err != nil { |
| 113 | return err |
| 114 | } |
| 115 | return writeCommandOutput(cmd, agentSoulBundle(record)) |
| 116 | }, |
| 117 | } |
| 118 | addWorkspaceFlag(cmd) |
| 119 | return cmd |
| 120 | } |
| 121 | |
| 122 | func newAgentSoulValidateCommand(deps commandDeps) *cobra.Command { |
| 123 | var input authoredBodyInput |
no test coverage detected