|
9 | 9 | // AgentRequest is a JSON command from an external agent (e.g. Claude). |
10 | 10 | type AgentRequest struct { |
11 | 11 | ID int `json:"id"` |
12 | | - Action string `json:"action"` // "exec", "check", "state", "navigate", "delete", "create_module", "format", "describe", "list" |
| 12 | + Action string `json:"action"` // "exec", "check", "state", "navigate", "delete", "create_module", "format", "describe", "list" |
13 | 13 | MDL string `json:"mdl,omitempty"` // for "exec", "format" |
14 | 14 | Target string `json:"target,omitempty"` // for "navigate", "delete", "describe", "list" (e.g. "entity:Module.Entity") |
15 | 15 | Name string `json:"name,omitempty"` // for "create_module" |
@@ -83,19 +83,19 @@ func buildAgentDescribeCmd(target string) (string, error) { |
83 | 83 |
|
84 | 84 | // listKeywords maps lowercase node type names to their MDL SHOW keyword(s). |
85 | 85 | var listKeywords = map[string]string{ |
86 | | - "entities": "ENTITIES", |
87 | | - "associations": "ASSOCIATIONS", |
88 | | - "enumerations": "ENUMERATIONS", |
89 | | - "constants": "CONSTANTS", |
90 | | - "microflows": "MICROFLOWS", |
91 | | - "nanoflows": "NANOFLOWS", |
92 | | - "pages": "PAGES", |
93 | | - "snippets": "SNIPPETS", |
94 | | - "layouts": "LAYOUTS", |
95 | | - "workflows": "WORKFLOWS", |
96 | | - "modules": "MODULES", |
| 86 | + "entities": "ENTITIES", |
| 87 | + "associations": "ASSOCIATIONS", |
| 88 | + "enumerations": "ENUMERATIONS", |
| 89 | + "constants": "CONSTANTS", |
| 90 | + "microflows": "MICROFLOWS", |
| 91 | + "nanoflows": "NANOFLOWS", |
| 92 | + "pages": "PAGES", |
| 93 | + "snippets": "SNIPPETS", |
| 94 | + "layouts": "LAYOUTS", |
| 95 | + "workflows": "WORKFLOWS", |
| 96 | + "modules": "MODULES", |
97 | 97 | "imagecollections": "IMAGE COLLECTIONS", |
98 | | - "javaactions": "JAVA ACTIONS", |
| 98 | + "javaactions": "JAVA ACTIONS", |
99 | 99 | } |
100 | 100 |
|
101 | 101 | // buildListCmd returns the MDL SHOW command for a target like "entities" or "entities:Module". |
|
0 commit comments