MCPcopy Create free account
hub / github.com/compozy/agh / newAgentSoulInspectCommand

Function newAgentSoulInspectCommand

internal/cli/authored_context.go:96–120  ·  view source on GitHub ↗
(deps commandDeps)

Source from the content-addressed store, hash-verified

94}
95
96func 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
122func newAgentSoulValidateCommand(deps commandDeps) *cobra.Command {
123 var input authoredBodyInput

Callers 1

newAgentSoulCommandFunction · 0.85

Calls 7

exactOneNonBlankArgFunction · 0.85
clientFromDepsFunction · 0.85
agentQueryFromCommandFunction · 0.85
writeCommandOutputFunction · 0.85
agentSoulBundleFunction · 0.85
addWorkspaceFlagFunction · 0.85
GetAgentSoulMethod · 0.65

Tested by

no test coverage detected