@cargo-ai/cli 1.0.73 → 1.0.74

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/README.md +21 -0
  2. package/build/commands/ai/agent.js +2 -2
  3. package/build/commands/ai/chat.js +1 -1
  4. package/build/commands/ai/document.js +1 -1
  5. package/build/commands/ai/memory.js +3 -3
  6. package/build/commands/ai/message.js +2 -2
  7. package/build/commands/ai/release.d.ts.map +1 -1
  8. package/build/commands/ai/release.js +3 -3
  9. package/build/commands/ai/vote.d.ts.map +1 -1
  10. package/build/commands/ai/vote.js +1 -1
  11. package/build/commands/auth/index.js +2 -2
  12. package/build/commands/billing/subscription.d.ts.map +1 -1
  13. package/build/commands/billing/subscription.js +3 -3
  14. package/build/commands/billing/usage.d.ts.map +1 -1
  15. package/build/commands/billing/usage.js +1 -1
  16. package/build/commands/connection/action.d.ts.map +1 -1
  17. package/build/commands/connection/action.js +1 -1
  18. package/build/commands/connection/connector.js +1 -1
  19. package/build/commands/connection/integration.d.ts.map +1 -1
  20. package/build/commands/connection/integration.js +1 -1
  21. package/build/commands/content/library.js +1 -1
  22. package/build/commands/context/runtime.js +1 -1
  23. package/build/commands/expression/recipe.d.ts.map +1 -1
  24. package/build/commands/expression/recipe.js +9 -9
  25. package/build/commands/mailboxManagement/event.js +1 -1
  26. package/build/commands/mailboxManagement/mailbox.d.ts.map +1 -1
  27. package/build/commands/mailboxManagement/mailbox.js +3 -3
  28. package/build/commands/mailboxManagement/message.js +1 -1
  29. package/build/commands/mailboxManagement/suppression.js +1 -1
  30. package/build/commands/mailboxManagement/thread.js +1 -1
  31. package/build/commands/observability/alert.js +2 -2
  32. package/build/commands/orchestration/action.d.ts.map +1 -1
  33. package/build/commands/orchestration/action.js +18 -63
  34. package/build/commands/orchestration/batch.js +7 -7
  35. package/build/commands/orchestration/node.js +2 -2
  36. package/build/commands/orchestration/play.d.ts.map +1 -1
  37. package/build/commands/orchestration/play.js +9 -9
  38. package/build/commands/orchestration/record.d.ts.map +1 -1
  39. package/build/commands/orchestration/record.js +10 -10
  40. package/build/commands/orchestration/release.js +1 -1
  41. package/build/commands/orchestration/run.d.ts.map +1 -1
  42. package/build/commands/orchestration/run.js +14 -14
  43. package/build/commands/orchestration/span.d.ts.map +1 -1
  44. package/build/commands/orchestration/span.js +4 -4
  45. package/build/commands/orchestration/tool.js +2 -2
  46. package/build/commands/orchestration/trace.d.ts.map +1 -1
  47. package/build/commands/orchestration/trace.js +2 -2
  48. package/build/commands/revenueOrganization/capacity.d.ts.map +1 -1
  49. package/build/commands/revenueOrganization/capacity.js +2 -2
  50. package/build/commands/revenueOrganization/territory.js +2 -2
  51. package/build/commands/segmentation/change.d.ts.map +1 -1
  52. package/build/commands/segmentation/change.js +4 -4
  53. package/build/commands/segmentation/record.js +1 -1
  54. package/build/commands/segmentation/segment.js +2 -2
  55. package/build/commands/start/index.js +1 -1
  56. package/build/commands/storage/query.js +1 -1
  57. package/build/commands/storage/record.js +2 -2
  58. package/build/commands/storage/run.js +2 -2
  59. package/build/commands/systemOfRecordIntegration/log.js +1 -1
  60. package/build/commands/systemOfRecordIntegration/systemOfRecord.js +1 -1
  61. package/build/commands/version.js +1 -1
  62. package/build/commands/workspaceManagement/folder.d.ts.map +1 -1
  63. package/build/commands/workspaceManagement/folder.js +1 -1
  64. package/build/commands/workspaceManagement/role.d.ts.map +1 -1
  65. package/build/commands/workspaceManagement/role.js +2 -2
  66. package/build/commands/workspaceManagement/session.js +1 -1
  67. package/build/commands/workspaceManagement/user.d.ts.map +1 -1
  68. package/build/commands/workspaceManagement/user.js +2 -2
  69. package/build/commands/workspaceManagement/workspaces.js +1 -1
  70. package/build/utils/booleanOption.d.ts.map +1 -1
  71. package/build/utils/booleanOption.js +5 -4
  72. package/package.json +3 -3
  73. package/build/commands/orchestration/costTable.d.ts +0 -121
  74. package/build/commands/orchestration/costTable.d.ts.map +0 -1
  75. package/build/commands/orchestration/costTable.js +0 -363
@@ -13,12 +13,12 @@ export function registerBatchCommands(parent, getApi) {
13
13
  .option("--parent-batch-uuid <uuid>", "Filter by parent batch UUID (string)")
14
14
  .option("--parent-run-uuid <uuid>", "Filter by parent run UUID (string)")
15
15
  .option("--parent-node-uuid <uuid>", "Filter by parent node UUID (string)")
16
- .option("--statuses <list>", "Filter by statuses (comma-separated: pending,syncing,skipped,querying,running,success,cancelling,error,cancelled)")
17
- .option("--has-runs [value]", "Only return batches that have runs (true/false, defaults to true when passed bare)", parseBooleanOption)
18
- .option("--is-skipped [value]", "Only return skipped batches (true/false, defaults to true when passed bare)", parseBooleanOption)
19
- .option("--is-finished [value]", "Only return finished batches (true/false, defaults to true when passed bare)", parseBooleanOption)
20
- .option("--included-data-kinds <list>", "Include only these data kinds (comma-separated strings)")
21
- .option("--excluded-data-kinds <list>", "Exclude these data kinds (comma-separated strings)")
16
+ .option("--statuses <pending,syncing,skipped,querying,running,success,cancelling,error,cancelled>", "Filter by statuses")
17
+ .option("--has-runs [true|false]", "Only return batches that have runs (defaults to true when passed bare)", parseBooleanOption)
18
+ .option("--is-skipped [true|false]", "Only return skipped batches (defaults to true when passed bare)", parseBooleanOption)
19
+ .option("--is-finished [true|false]", "Only return finished batches (defaults to true when passed bare)", parseBooleanOption)
20
+ .option("--included-data-kinds <segment,change,filter,recordIds,watchedRecords,records,file,runs,group,schedule,form>", "Include only these data kinds")
21
+ .option("--excluded-data-kinds <segment,change,filter,recordIds,watchedRecords,records,file,runs,group,schedule,form>", "Exclude these data kinds")
22
22
  .option("--limit <n>", "Max results to return (integer, default: 20)", "20")
23
23
  .option("--offset <n>", "Number of results to skip (integer, default: 0)", "0")
24
24
  .action(async (opts) => {
@@ -69,7 +69,7 @@ export function registerBatchCommands(parent, getApi) {
69
69
  .option("--release-uuid <uuid>", "Release UUID to pin the batch to (string)")
70
70
  .option("--file <path>", "Path to a Workflow SDK module (its default export must be the compiled workflow returned by defineWorkflow()). Compiles it, resolves any @cargo-ai/cdk resource handles to real uuids from cargo.state.json, and runs the resulting nodes. Rejected with --nodes.")
71
71
  .option("--nodes <json>", "Custom nodes to override the workflow definition (JSON array). Rejected with --file.")
72
- .option("--wait-until-finished [value]", "Poll the batch until it reaches a terminal status before returning (true/false, defaults to true when passed bare)", parseBooleanOption)
72
+ .option("--wait-until-finished [true|false]", "Poll the batch until it reaches a terminal status before returning (defaults to true when passed bare)", parseBooleanOption)
73
73
  .option("--polling-interval <ms>", "Polling interval in milliseconds, used with --wait-until-finished (integer, default: 5000)", "5000")
74
74
  .addHelpText("after", `
75
75
  Examples:
@@ -111,7 +111,7 @@ function registerDiagramCommand(node, getApi) {
111
111
  .option("--nodes <json>", "Node definitions (JSON array, or '-' to read from stdin)")
112
112
  .option("--file <path>", "Read a JSON payload or node array from a file")
113
113
  .option("--workflow-uuid <uuid>", "Diagram a workflow's deployed release (add --draft for its draft)")
114
- .option("--draft [value]", "With --workflow-uuid, use the draft release", parseBooleanOption)
114
+ .option("--draft [true|false]", "With --workflow-uuid, use the draft release", parseBooleanOption)
115
115
  .option("--release-uuid <uuid>", "Diagram a specific release")
116
116
  .option("--run-uuid <uuid>", "Diagram the graph a run executed (follows the run's release when it has one)")
117
117
  .option("--title <text>", "Title rendered above the diagram")
@@ -119,7 +119,7 @@ function registerDiagramCommand(node, getApi) {
119
119
  .option("--direction <TD|LR>", "Mermaid flow direction, ignored by --format ascii (default: TD)", "TD")
120
120
  .option("--paid <slugs>", "Comma-separated node slugs/uuids that bill credits — marked 💳")
121
121
  .option("--highlight <slugs>", "Comma-separated node slugs/uuids to mark (red in Mermaid, ← in ASCII)")
122
- .option("--raw [value]", "Print the diagram itself instead of JSON", parseBooleanOption)
122
+ .option("--raw [true|false]", "Print the diagram itself instead of JSON", parseBooleanOption)
123
123
  .addHelpText("after", `
124
124
  Free, runs nothing: turns a node graph into a picture so a reviewer can see the
125
125
  routing, the fallback paths and which steps bill before approving or deploying
@@ -1 +1 @@
1
- {"version":3,"file":"play.d.ts","sourceRoot":"","sources":["../../../src/commands/orchestration/play.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAOxC,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,GAAG,IAAI,CAuR7E"}
1
+ {"version":3,"file":"play.d.ts","sourceRoot":"","sources":["../../../src/commands/orchestration/play.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAOxC,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,GAAG,IAAI,CA2R7E"}
@@ -9,9 +9,9 @@ export function registerPlayCommands(parent, getApi) {
9
9
  .description("List plays (optional filters match GET /orchestration/plays/list)")
10
10
  .option("--model-uuid <uuid>", "Only plays for this model UUID")
11
11
  .option("--segment-uuid <uuid>", "Only plays for this segment UUID")
12
- .option("--schedule-type <type>", "Only plays with this schedule type: dbt | cron | realtime | dependency | watch")
13
- .option("--is-enabled [value]", "Only enabled plays (true/false, defaults to true when passed bare)", parseBooleanOption)
14
- .option("--is-disabled [value]", "Only disabled plays (true/false, defaults to true when passed bare)", parseBooleanOption)
12
+ .option("--schedule-type <dbt|cron|realtime|dependency|watch>", "Only plays with this schedule type")
13
+ .option("--is-enabled [true|false]", "Only enabled plays (defaults to true when passed bare)", parseBooleanOption)
14
+ .option("--is-disabled [true|false]", "Only disabled plays (defaults to true when passed bare)", parseBooleanOption)
15
15
  .action(async (opts) => {
16
16
  const api = getApi();
17
17
  const isEnabledFilter = resolveBooleanPair(opts.isEnabled, opts.isDisabled, { positive: "--is-enabled", negative: "--is-disabled" });
@@ -43,8 +43,8 @@ export function registerPlayCommands(parent, getApi) {
43
43
  .description("Create a play")
44
44
  .requiredOption("--name <name>", "Play name (string, required)")
45
45
  .requiredOption("--model-uuid <uuid>", "Model UUID to trigger on (string, required)")
46
- .requiredOption("--change-kinds <kinds>", "Change kinds to trigger on (comma-separated strings, required)")
47
- .requiredOption("--run-creation-rule <rule>", "Run creation rule. Allowed values: always, once, noConcurrency")
46
+ .requiredOption("--change-kinds <added,updated,removed,unchanged>", "Change kinds to trigger on (required)")
47
+ .requiredOption("--run-creation-rule <always|once|noConcurrency>", "Run creation rule")
48
48
  .option("--description <description>", "Play description (string)")
49
49
  .option("--folder-uuid <uuid>", "Folder UUID (string)")
50
50
  .addHelpText("after", `
@@ -82,10 +82,10 @@ Examples:
82
82
  .description("Update a play")
83
83
  .option("--name <name>", "Play name")
84
84
  .option("--description <description>", "Description")
85
- .option("--is-enabled [value]", "Enable the play", parseBooleanOption)
86
- .option("--is-disabled [value]", "Disable the play", parseBooleanOption)
87
- .option("--change-kinds <kinds>", "Change kinds to trigger on (comma-separated strings)")
88
- .option("--run-creation-rule <rule>", "Run creation rule. Allowed values: always, once, noConcurrency")
85
+ .option("--is-enabled [true|false]", "Enable the play", parseBooleanOption)
86
+ .option("--is-disabled [true|false]", "Disable the play", parseBooleanOption)
87
+ .option("--change-kinds <added,updated,removed,unchanged>", "Change kinds to trigger on")
88
+ .option("--run-creation-rule <always|once|noConcurrency>", "Run creation rule")
89
89
  .option("--folder-uuid <uuid>", "Folder UUID")
90
90
  .option("--filter <json>", "Filter definition (JSON object, same format as segmentation segment update)")
91
91
  .option("--sort <json>", 'Sort definition (JSON object). Shape: {"slug": string, "order": "asc" | "desc"}')
@@ -1 +1 @@
1
- {"version":3,"file":"record.d.ts","sourceRoot":"","sources":["../../../src/commands/orchestration/record.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAIxC,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,OAAO,EACf,MAAM,EAAE,MAAM,GAAG,GAChB,IAAI,CAgbN"}
1
+ {"version":3,"file":"record.d.ts","sourceRoot":"","sources":["../../../src/commands/orchestration/record.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAIxC,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,OAAO,EACf,MAAM,EAAE,MAAM,GAAG,GAChB,IAAI,CA4bN"}
@@ -11,11 +11,11 @@ export function registerRecordCommands(parent, getApi) {
11
11
  .option("--title-or-id <value>", "Record title or ID")
12
12
  .option("--release-uuid <uuid>", "Release UUID")
13
13
  .option("--batch-uuid <uuid>", "Batch UUID")
14
- .option("--statuses <list>", "Statuses (comma-separated)")
14
+ .option("--statuses <pending,running,success,error,cancelled,cancelling>", "Statuses")
15
15
  .option("--parent-batch-uuid <uuid>", "Parent batch UUID")
16
16
  .option("--parent-run-uuid <uuid>", "Parent run UUID")
17
17
  .option("--parent-node-uuid <uuid>", "Parent node UUID")
18
- .option("--is-group-parent [value]", "Only group parents", parseBooleanOption)
18
+ .option("--is-group-parent [true|false]", "Only group parents", parseBooleanOption)
19
19
  .option("--executions-filter <json>", 'Executions filter (JSON, e.g. {"conjonction":"and","groups":[{"conjonction":"and","conditions":[{"kind":"node","nodeSlug":"...","status":"pending"}]}]})')
20
20
  .option("--created-after <date>", "Created after date")
21
21
  .option("--created-before <date>", "Created before date")
@@ -64,11 +64,11 @@ export function registerRecordCommands(parent, getApi) {
64
64
  .option("--title-or-id <value>", "Record title or ID")
65
65
  .option("--release-uuid <uuid>", "Release UUID")
66
66
  .option("--batch-uuid <uuid>", "Batch UUID")
67
- .option("--statuses <list>", "Statuses (comma-separated)")
67
+ .option("--statuses <pending,running,success,error,cancelled,cancelling>", "Statuses")
68
68
  .option("--parent-batch-uuid <uuid>", "Parent batch UUID")
69
69
  .option("--parent-run-uuid <uuid>", "Parent run UUID")
70
70
  .option("--parent-node-uuid <uuid>", "Parent node UUID")
71
- .option("--is-group-parent [value]", "Only group parents", parseBooleanOption)
71
+ .option("--is-group-parent [true|false]", "Only group parents", parseBooleanOption)
72
72
  .option("--executions-filter <json>", 'Executions filter (JSON, e.g. {"conjonction":"and","groups":[{"conjonction":"and","conditions":[{"kind":"node","nodeSlug":"...","status":"pending"}]}]})')
73
73
  .option("--created-after <date>", "Created after date")
74
74
  .option("--created-before <date>", "Created before date")
@@ -111,11 +111,11 @@ export function registerRecordCommands(parent, getApi) {
111
111
  .option("--title-or-id <value>", "Record title or ID")
112
112
  .option("--release-uuid <uuid>", "Release UUID")
113
113
  .option("--batch-uuid <uuid>", "Batch UUID")
114
- .option("--statuses <list>", "Statuses (comma-separated)")
114
+ .option("--statuses <pending,running,success,error,cancelled,cancelling>", "Statuses")
115
115
  .option("--parent-batch-uuid <uuid>", "Parent batch UUID")
116
116
  .option("--parent-run-uuid <uuid>", "Parent run UUID")
117
117
  .option("--parent-node-uuid <uuid>", "Parent node UUID")
118
- .option("--is-group-parent [value]", "Only group parents", parseBooleanOption)
118
+ .option("--is-group-parent [true|false]", "Only group parents", parseBooleanOption)
119
119
  .option("--executions-filter <json>", 'Executions filter (JSON, e.g. {"conjonction":"and","groups":[{"conjonction":"and","conditions":[{"kind":"node","nodeSlug":"...","status":"pending"}]}]})')
120
120
  .option("--created-after <date>", "Created after date")
121
121
  .option("--created-before <date>", "Created before date")
@@ -154,17 +154,17 @@ export function registerRecordCommands(parent, getApi) {
154
154
  .description("Download record outputs")
155
155
  .requiredOption("--workflow-uuid <uuid>", "Workflow UUID")
156
156
  .option("--output-node-slug <slug>", "Output node slug")
157
- .option("--format <format>", "Export format (csv or json)", "csv")
157
+ .option("--format <csv|json>", "Export format", "csv")
158
158
  .option("--ids <list>", "Record IDs (comma-separated)")
159
159
  .option("--title <title>", "Record title")
160
160
  .option("--title-or-id <value>", "Record title or ID")
161
161
  .option("--release-uuid <uuid>", "Release UUID")
162
162
  .option("--batch-uuid <uuid>", "Batch UUID")
163
- .option("--statuses <list>", "Statuses (comma-separated)")
163
+ .option("--statuses <pending,running,success,error,cancelled,cancelling>", "Statuses")
164
164
  .option("--parent-batch-uuid <uuid>", "Parent batch UUID")
165
165
  .option("--parent-run-uuid <uuid>", "Parent run UUID")
166
166
  .option("--parent-node-uuid <uuid>", "Parent node UUID")
167
- .option("--is-group-parent [value]", "Only group parents", parseBooleanOption)
167
+ .option("--is-group-parent [true|false]", "Only group parents", parseBooleanOption)
168
168
  .option("--executions-filter <json>", 'Executions filter (JSON, e.g. {"conjonction":"and","groups":[{"conjonction":"and","conditions":[{"kind":"node","nodeSlug":"...","status":"pending"}]}]})')
169
169
  .option("--created-after <date>", "Created after date")
170
170
  .option("--created-before <date>", "Created before date")
@@ -227,7 +227,7 @@ export function registerRecordCommands(parent, getApi) {
227
227
  .option("--parent-batch-uuid <uuid>", "Parent batch UUID")
228
228
  .option("--parent-run-uuid <uuid>", "Parent run UUID")
229
229
  .option("--parent-node-uuid <uuid>", "Parent node UUID")
230
- .option("--is-group-parent [value]", "Only group parents", parseBooleanOption)
230
+ .option("--is-group-parent [true|false]", "Only group parents", parseBooleanOption)
231
231
  .option("--executions-filter <json>", 'Executions filter (JSON, e.g. {"conjonction":"and","groups":[{"conjonction":"and","conditions":[{"kind":"node","nodeSlug":"...","status":"pending"}]}]})')
232
232
  .action(async (opts) => {
233
233
  const payload = opts.ids !== undefined
@@ -91,7 +91,7 @@ export function registerReleaseCommands(parent, getApi) {
91
91
  .option("--form-fields <json>", "Form fields (JSON array, or 'null'). Required without --file; rejected with --file.")
92
92
  .option("--description <text>", "Release description.")
93
93
  .option("--options <json>", "Options (JSON object)")
94
- .option("--dry-run [value]", "With --file: compile and print the nodes + form fields without deploying. Ignored without --file.", parseBooleanOption)
94
+ .option("--dry-run [true|false]", "With --file: compile and print the nodes + form fields without deploying. Ignored without --file.", parseBooleanOption)
95
95
  .action(async (opts) => {
96
96
  if (opts.file !== undefined) {
97
97
  await runFileDeploy(getApi, opts);
@@ -1 +1 @@
1
- {"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../src/commands/orchestration/run.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAgBxC,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,GAAG,IAAI,CAuqB5E"}
1
+ {"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../src/commands/orchestration/run.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAgBxC,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,GAAG,IAAI,CAmqB5E"}
@@ -11,15 +11,15 @@ export function registerRunCommands(parent, getApi) {
11
11
  .option("--workflow-uuid <uuid>", "Workflow UUID (string). Omit to list the runs of every play and tool, which the API allows only alongside --created-after inside a 30-day window")
12
12
  .option("--batch-uuid <uuid>", "Filter by batch UUID (string)")
13
13
  .option("--release-uuid <uuid>", "Filter by release UUID (string)")
14
- .option("--statuses <list>", "Filter by statuses (comma-separated: idle,pending,running,success,error,cancelling,cancelled,skipped)")
14
+ .option("--statuses <idle,pending,running,success,error,cancelling,cancelled,skipped>", "Filter by statuses")
15
15
  .option("--parent-batch-uuid <uuid>", "Filter by parent batch UUID (string)")
16
16
  .option("--parent-uuid <uuid>", "Filter by parent run UUID (string)")
17
17
  .option("--parent-node-uuid <uuid>", "Filter by parent node UUID (string)")
18
- .option("--is-group-parent [value]", "Only return group parents (true/false, defaults to true when passed bare)", parseBooleanOption)
18
+ .option("--is-group-parent [true|false]", "Only return group parents (defaults to true when passed bare)", parseBooleanOption)
19
19
  .option("--record-id <id>", "Filter by record ID (string)")
20
20
  .option("--record-title <title>", "Filter by record title (string)")
21
21
  .option("--record-title-or-id <value>", "Filter by record title or ID (string)")
22
- .option("--is-finished [value]", "Only return finished runs (true/false, defaults to true when passed bare)", parseBooleanOption)
22
+ .option("--is-finished [true|false]", "Only return finished runs (defaults to true when passed bare)", parseBooleanOption)
23
23
  .option("--executions-filter <json>", 'Filter by node executions (JSON). Example: \'{"conjonction":"and","groups":[{"conjonction":"and","conditions":[{"kind":"node","nodeSlug":"my-node","status":"pending"}]}]}\'')
24
24
  .option("--created-after <date>", "Filter runs created after this date (ISO 8601 string)")
25
25
  .option("--created-before <date>", "Filter runs created before this date (ISO 8601 string)")
@@ -81,7 +81,7 @@ Examples:
81
81
  .option("--release-uuid <uuid>", "Release UUID to pin the run to (string)")
82
82
  .option("--file <path>", "Path to a Workflow SDK module (its default export must be the compiled workflow returned by defineWorkflow()). Compiles it, resolves any @cargo-ai/cdk resource handles to real uuids from cargo.state.json, and runs the resulting nodes. Rejected with --nodes.")
83
83
  .option("--nodes <json>", "Custom nodes to override the workflow definition (JSON array). Rejected with --file.")
84
- .option("--wait-until-finished [value]", "Poll the run until it reaches a terminal status before returning (true/false, defaults to true when passed bare)", parseBooleanOption)
84
+ .option("--wait-until-finished [true|false]", "Poll the run until it reaches a terminal status before returning (defaults to true when passed bare)", parseBooleanOption)
85
85
  .option("--polling-interval <ms>", "Polling interval in milliseconds, used with --wait-until-finished (integer, default: 5000)", "5000")
86
86
  .addHelpText("after", `
87
87
  Examples:
@@ -148,15 +148,15 @@ Examples:
148
148
  .option("--workflow-uuid <uuid>", "Workflow UUID (string). Omit to count the runs of every play and tool, which the API allows only alongside --created-after inside a 30-day window")
149
149
  .option("--batch-uuid <uuid>", "Filter by batch UUID (string)")
150
150
  .option("--release-uuid <uuid>", "Filter by release UUID (string)")
151
- .option("--statuses <list>", "Filter by statuses (comma-separated: idle,pending,running,success,error,cancelling,cancelled,skipped)")
151
+ .option("--statuses <idle,pending,running,success,error,cancelling,cancelled,skipped>", "Filter by statuses")
152
152
  .option("--parent-batch-uuid <uuid>", "Filter by parent batch UUID (string)")
153
153
  .option("--parent-uuid <uuid>", "Filter by parent run UUID (string)")
154
154
  .option("--parent-node-uuid <uuid>", "Filter by parent node UUID (string)")
155
- .option("--is-group-parent [value]", "Only count group parents (true/false, defaults to true when passed bare)", parseBooleanOption)
155
+ .option("--is-group-parent [true|false]", "Only count group parents (defaults to true when passed bare)", parseBooleanOption)
156
156
  .option("--record-id <id>", "Filter by record ID (string)")
157
157
  .option("--record-title <title>", "Filter by record title (string)")
158
158
  .option("--record-title-or-id <value>", "Filter by record title or ID (string)")
159
- .option("--is-finished [value]", "Only count finished runs (true/false, defaults to true when passed bare)", parseBooleanOption)
159
+ .option("--is-finished [true|false]", "Only count finished runs (defaults to true when passed bare)", parseBooleanOption)
160
160
  .option("--executions-filter <json>", "Filter by node executions (JSON object, same format as 'run list')")
161
161
  .option("--created-after <date>", "Filter runs created after this date (ISO 8601 string)")
162
162
  .option("--created-before <date>", "Filter runs created before this date (ISO 8601 string)")
@@ -196,15 +196,15 @@ Examples:
196
196
  .option("--uuids <list>", "Only these run UUIDs (comma-separated). Use to export a known set of runs.")
197
197
  .option("--batch-uuid <uuid>", "Filter by batch UUID (string)")
198
198
  .option("--release-uuid <uuid>", "Filter by release UUID (string)")
199
- .option("--statuses <list>", "Filter by statuses (comma-separated: idle,pending,running,success,error,cancelling,cancelled,skipped)")
199
+ .option("--statuses <idle,pending,running,success,error,cancelling,cancelled,skipped>", "Filter by statuses")
200
200
  .option("--parent-batch-uuid <uuid>", "Filter by parent batch UUID (string)")
201
201
  .option("--parent-uuid <uuid>", "Filter by parent run UUID (string)")
202
202
  .option("--parent-node-uuid <uuid>", "Filter by parent node UUID (string)")
203
- .option("--is-group-parent [value]", "Only return group parents (true/false, defaults to true when passed bare)", parseBooleanOption)
203
+ .option("--is-group-parent [true|false]", "Only return group parents (defaults to true when passed bare)", parseBooleanOption)
204
204
  .option("--record-id <id>", "Filter by record ID (string)")
205
205
  .option("--record-title <title>", "Filter by record title (string)")
206
206
  .option("--record-title-or-id <value>", "Filter by record title or ID (string)")
207
- .option("--is-finished [value]", "Only return finished runs (true/false, defaults to true when passed bare)", parseBooleanOption)
207
+ .option("--is-finished [true|false]", "Only return finished runs (defaults to true when passed bare)", parseBooleanOption)
208
208
  .option("--executions-filter <json>", "Filter by node executions (JSON object, same format as 'run list')")
209
209
  .option("--created-after <date>", "Filter runs created after this date (ISO 8601 string)")
210
210
  .option("--created-before <date>", "Filter runs created before this date (ISO 8601 string)")
@@ -245,18 +245,18 @@ Examples:
245
245
  .description("Download outputs from a specific node in matching runs")
246
246
  .requiredOption("--workflow-uuid <uuid>", "Workflow UUID (string, required)")
247
247
  .option("--output-node-slug <slug>", "Output node slug to download from (string)")
248
- .option("--format <format>", "Export format: csv | json (default: csv)", "csv")
248
+ .option("--format <csv|json>", "Export format (default: csv)", "csv")
249
249
  .option("--batch-uuid <uuid>", "Filter by batch UUID (string)")
250
250
  .option("--release-uuid <uuid>", "Filter by release UUID (string)")
251
- .option("--statuses <list>", "Filter by statuses (comma-separated: idle,pending,running,success,error,cancelling,cancelled,skipped)")
251
+ .option("--statuses <idle,pending,running,success,error,cancelling,cancelled,skipped>", "Filter by statuses")
252
252
  .option("--parent-batch-uuid <uuid>", "Filter by parent batch UUID (string)")
253
253
  .option("--parent-uuid <uuid>", "Filter by parent run UUID (string)")
254
254
  .option("--parent-node-uuid <uuid>", "Filter by parent node UUID (string)")
255
- .option("--is-group-parent [value]", "Only return group parents (true/false, defaults to true when passed bare)", parseBooleanOption)
255
+ .option("--is-group-parent [true|false]", "Only return group parents (defaults to true when passed bare)", parseBooleanOption)
256
256
  .option("--record-id <id>", "Filter by record ID (string)")
257
257
  .option("--record-title <title>", "Filter by record title (string)")
258
258
  .option("--record-title-or-id <value>", "Filter by record title or ID (string)")
259
- .option("--is-finished [value]", "Only return finished runs (true/false, defaults to true when passed bare)", parseBooleanOption)
259
+ .option("--is-finished [true|false]", "Only return finished runs (defaults to true when passed bare)", parseBooleanOption)
260
260
  .option("--executions-filter <json>", "Filter by node executions (JSON object, same format as 'run list')")
261
261
  .option("--created-after <date>", "Filter runs created after this date (ISO 8601 string)")
262
262
  .option("--created-before <date>", "Filter runs created before this date (ISO 8601 string)")
@@ -1 +1 @@
1
- {"version":3,"file":"span.d.ts","sourceRoot":"","sources":["../../../src/commands/orchestration/span.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAGxC,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,GAAG,IAAI,CA0P7E"}
1
+ {"version":3,"file":"span.d.ts","sourceRoot":"","sources":["../../../src/commands/orchestration/span.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAGxC,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,GAAG,IAAI,CAoP7E"}
@@ -13,7 +13,7 @@ export function registerSpanCommands(parent, getApi) {
13
13
  .option("--execution-title <text>", "Execution title (ilike)")
14
14
  .option("--execution-title-or-error-message <text>", "Execution title or error message (ilike on title or error message)")
15
15
  .option("--node-uuid <uuid>", "Node UUID")
16
- .option("--node-kind <kind>", "Node kind: native | connector | tool | agent")
16
+ .option("--node-kind <native|connector|tool|agent|worker>", "Node kind")
17
17
  .option("--node-slug <slug>", "Workflow node slug (exact match)")
18
18
  .option("--node-integration-slug <slug>", "Connector integration slug (exact match)")
19
19
  .option("--node-connector-uuid <uuid>", "Connector UUID")
@@ -22,7 +22,7 @@ export function registerSpanCommands(parent, getApi) {
22
22
  .option("--node-tool-uuid <uuid>", "Tool node UUID")
23
23
  .option("--node-agent-uuid <uuid>", "Agent node UUID")
24
24
  .option("--node-release-uuid <uuid>", "Release UUID on the node")
25
- .option("--execution-statuses <list>", "Comma-separated: pending,success,error")
25
+ .option("--execution-statuses <pending,success,error>", "Filter by execution statuses")
26
26
  .option("--parent-run-uuid <uuid>", "Parent run UUID")
27
27
  .requiredOption("--execution-started-after <date>", "Execution started after (ISO date)")
28
28
  .option("--execution-started-before <date>", "Execution started on or before (ISO date)")
@@ -78,7 +78,7 @@ export function registerSpanCommands(parent, getApi) {
78
78
  .option("--execution-title <text>", "Execution title (ilike)")
79
79
  .option("--execution-title-or-error-message <text>", "Execution title or error message (ilike on title or error message)")
80
80
  .option("--node-uuid <uuid>", "Node UUID")
81
- .option("--node-kind <kind>", "Node kind: native | connector | tool | agent")
81
+ .option("--node-kind <native|connector|tool|agent|worker>", "Node kind")
82
82
  .option("--node-slug <slug>", "Workflow node slug (exact match)")
83
83
  .option("--node-integration-slug <slug>", "Connector integration slug (exact match)")
84
84
  .option("--node-connector-uuid <uuid>", "Connector UUID")
@@ -87,7 +87,7 @@ export function registerSpanCommands(parent, getApi) {
87
87
  .option("--node-tool-uuid <uuid>", "Tool node UUID")
88
88
  .option("--node-agent-uuid <uuid>", "Agent node UUID")
89
89
  .option("--node-release-uuid <uuid>", "Release UUID on the node")
90
- .option("--execution-statuses <list>", "Comma-separated: pending,success,error")
90
+ .option("--execution-statuses <pending,success,error>", "Filter by execution statuses")
91
91
  .option("--parent-run-uuid <uuid>", "Parent run UUID")
92
92
  .requiredOption("--execution-started-after <date>", "Execution started after (ISO date)")
93
93
  .option("--execution-started-before <date>", "Execution started on or before (ISO date)")
@@ -13,7 +13,7 @@ export function registerToolCommands(parent, getApi) {
13
13
  .command("create")
14
14
  .description("Create a tool")
15
15
  .requiredOption("--name <name>", "Tool name")
16
- .requiredOption("--icon-kind <kind>", "Icon kind (raw or emoji)")
16
+ .requiredOption("--icon-kind <raw|emoji>", "Icon kind")
17
17
  .option("--icon-data <data>", "Icon data (when kind is raw)")
18
18
  .option("--icon-emoji-slug <slug>", "Icon emoji slug (when kind is emoji)")
19
19
  .option("--description <text>", "Tool description")
@@ -36,7 +36,7 @@ export function registerToolCommands(parent, getApi) {
36
36
  .description("Update a tool")
37
37
  .requiredOption("--uuid <uuid>", "Tool UUID")
38
38
  .option("--name <name>", "Tool name")
39
- .option("--icon-kind <kind>", "Icon kind (raw or emoji)")
39
+ .option("--icon-kind <raw|emoji>", "Icon kind")
40
40
  .option("--icon-data <data>", "Icon data (when kind is raw)")
41
41
  .option("--icon-emoji-slug <slug>", "Icon emoji slug (when kind is emoji)")
42
42
  .option("--description <text>", "Tool description")
@@ -1 +1 @@
1
- {"version":3,"file":"trace.d.ts","sourceRoot":"","sources":["../../../src/commands/orchestration/trace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAGxC,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,OAAO,EACf,MAAM,EAAE,MAAM,GAAG,GAChB,IAAI,CAiHN"}
1
+ {"version":3,"file":"trace.d.ts","sourceRoot":"","sources":["../../../src/commands/orchestration/trace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAGxC,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,OAAO,EACf,MAAM,EAAE,MAAM,GAAG,GAChB,IAAI,CA2GN"}
@@ -7,7 +7,7 @@ export function registerTraceCommands(parent, getApi) {
7
7
  .command("list")
8
8
  .description("List traces (aggregated over their spans)")
9
9
  .option("--workflow-uuid <uuid>", "Workflow UUID (omit to include all workflows in the workspace)")
10
- .option("--statuses <list>", "Comma-separated trace statuses (pending, error, degraded, success)")
10
+ .option("--statuses <pending,error,degraded,success>", "Trace statuses")
11
11
  .requiredOption("--started-after <date>", "Trace's first span started after (ISO date)")
12
12
  .option("--started-before <date>", "Trace's first span started on or before (ISO date)")
13
13
  .option("--limit <n>", "Limit", "30")
@@ -30,7 +30,7 @@ export function registerTraceCommands(parent, getApi) {
30
30
  .command("count")
31
31
  .description("Count traces matching the filter")
32
32
  .option("--workflow-uuid <uuid>", "Workflow UUID (omit to include all workflows in the workspace)")
33
- .option("--statuses <list>", "Comma-separated trace statuses (pending, error, degraded, success)")
33
+ .option("--statuses <pending,error,degraded,success>", "Trace statuses")
34
34
  .requiredOption("--started-after <date>", "Trace's first span started after (ISO date)")
35
35
  .option("--started-before <date>", "Trace's first span started on or before (ISO date)")
36
36
  .action(async (opts) => {
@@ -1 +1 @@
1
- {"version":3,"file":"capacity.d.ts","sourceRoot":"","sources":["../../../src/commands/revenueOrganization/capacity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAGxC,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,OAAO,EACf,MAAM,EAAE,MAAM,GAAG,GAChB,IAAI,CA4JN"}
1
+ {"version":3,"file":"capacity.d.ts","sourceRoot":"","sources":["../../../src/commands/revenueOrganization/capacity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAGxC,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,OAAO,EACf,MAAM,EAAE,MAAM,GAAG,GAChB,IAAI,CA+JN"}
@@ -23,7 +23,7 @@ export function registerCapacityCommands(parent, getApi) {
23
23
  .command("create")
24
24
  .description("Create a capacity")
25
25
  .requiredOption("--name <name>", "Capacity name")
26
- .requiredOption("--color <color>", "Capacity color")
26
+ .requiredOption("--color <orange|red|purple|green|yellow|grey>", "Capacity color")
27
27
  .option("--description <text>", "Description")
28
28
  .option("--model-uuid <uuid>", "Model UUID")
29
29
  .option("--id-column-slug <slug>", "ID column slug")
@@ -64,7 +64,7 @@ export function registerCapacityCommands(parent, getApi) {
64
64
  .requiredOption("--uuid <uuid>", "Capacity UUID")
65
65
  .option("--filter <json>", 'Filter (JSON, use null to clear, e.g. {"conjonction":"and","groups":[]})')
66
66
  .option("--name <name>", "Capacity name")
67
- .option("--color <color>", "Capacity color")
67
+ .option("--color <orange|red|purple|green|yellow|grey>", "Capacity color")
68
68
  .option("--description <text>", "Description")
69
69
  .option("--member-capacity <n>", "Member capacity")
70
70
  .option("--model-uuid <uuid>", "Model UUID")
@@ -23,7 +23,7 @@ export function registerTerritoryCommands(parent, getApi) {
23
23
  .command("create")
24
24
  .description("Create a territory")
25
25
  .requiredOption("--label <label>", "Territory label")
26
- .requiredOption("--color <color>", "Territory color (orange, red, purple, ...)")
26
+ .requiredOption("--color <orange|red|purple|green|yellow|grey>", "Territory color")
27
27
  .requiredOption("--members <json>", 'Members (JSON array, e.g. [{"userUuid":"...","role":"owner"}])')
28
28
  .option("--description <text>", "Territory description")
29
29
  .option("--fallback-member-uuid <uuid>", "Fallback member UUID")
@@ -51,7 +51,7 @@ export function registerTerritoryCommands(parent, getApi) {
51
51
  .description("Update a territory")
52
52
  .requiredOption("--uuid <uuid>", "Territory UUID")
53
53
  .option("--label <label>", "Territory label")
54
- .option("--color <color>", "Territory color (orange, red, purple, ...)")
54
+ .option("--color <orange|red|purple|green|yellow|grey>", "Territory color")
55
55
  .option("--description <text>", "Territory description")
56
56
  .option("--members <json>", 'Members (JSON array, e.g. [{"userUuid":"...","role":"owner"}])')
57
57
  .option("--fallback-member-uuid <uuid>", "Fallback member UUID")
@@ -1 +1 @@
1
- {"version":3,"file":"change.d.ts","sourceRoot":"","sources":["../../../src/commands/segmentation/change.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAIxC,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,OAAO,EACf,MAAM,EAAE,MAAM,GAAG,GAChB,IAAI,CAgGN"}
1
+ {"version":3,"file":"change.d.ts","sourceRoot":"","sources":["../../../src/commands/segmentation/change.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAIxC,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,OAAO,EACf,MAAM,EAAE,MAAM,GAAG,GAChB,IAAI,CAuGN"}
@@ -6,8 +6,8 @@ export function registerChangeCommands(parent, getApi) {
6
6
  .command("list")
7
7
  .description("List changes")
8
8
  .option("--segment-uuid <uuid>", "Segment UUID")
9
- .option("--not-empty [value]", "Only non-empty changes", parseBooleanOption)
10
- .option("--has-records <kind>", "Has records of kind")
9
+ .option("--not-empty [true|false]", "Only non-empty changes", parseBooleanOption)
10
+ .option("--has-records <added|updated|removed|unchanged>", "Has records of kind")
11
11
  .option("--limit <n>", "Limit")
12
12
  .option("--offset <n>", "Offset")
13
13
  .action(async (opts) => {
@@ -33,7 +33,7 @@ export function registerChangeCommands(parent, getApi) {
33
33
  .command("download")
34
34
  .description("Download change data")
35
35
  .requiredOption("--uuid <uuid>", "Change UUID")
36
- .requiredOption("--kinds <kinds>", "Change kinds (comma-separated)")
36
+ .requiredOption("--kinds <added,updated,removed,unchanged>", "Change kinds")
37
37
  .action(async (opts) => {
38
38
  const api = getApi();
39
39
  const result = await handleApiCall(() => api.segmentation.change.download({
@@ -46,7 +46,7 @@ export function registerChangeCommands(parent, getApi) {
46
46
  .command("fetch")
47
47
  .description("Fetch change data")
48
48
  .requiredOption("--uuid <uuid>", "Change UUID")
49
- .requiredOption("--kinds <kinds>", "Change kinds (comma-separated)")
49
+ .requiredOption("--kinds <added,updated,removed,unchanged>", "Change kinds")
50
50
  .option("--limit <n>", "Limit")
51
51
  .option("--offset <n>", "Offset")
52
52
  .action(async (opts) => {
@@ -9,7 +9,7 @@ export function registerRecordCommands(parent, getApi) {
9
9
  .description("Fetch segmentation records")
10
10
  .requiredOption("--model-uuid <uuid>", "Model UUID")
11
11
  .requiredOption("--ids <ids>", "Record IDs (comma-separated)")
12
- .option("--reset-cache [value]", "Reset cache", parseBooleanOption)
12
+ .option("--reset-cache [true|false]", "Reset cache", parseBooleanOption)
13
13
  .action(async (opts) => {
14
14
  const api = getApi();
15
15
  const result = await handleApiCall(() => api.segmentation.record.fetch({
@@ -86,8 +86,8 @@ Filter object shape:
86
86
  .option("--limit <n>", "Max records in segment (integer)")
87
87
  .option("--fetching-limit <n>", "Max records to fetch per page (integer)")
88
88
  .option("--fetching-offset <n>", "Number of records to skip (integer)")
89
- .option("--enrich [value]", "Enrich records with additional data (true/false, defaults to true when passed bare)", parseBooleanOption)
90
- .option("--sync [value]", "Sync data sources before fetching (true/false, defaults to true when passed bare)", parseBooleanOption)
89
+ .option("--enrich [true|false]", "Enrich records with additional data (defaults to true when passed bare)", parseBooleanOption)
90
+ .option("--sync [true|false]", "Sync data sources before fetching (defaults to true when passed bare)", parseBooleanOption)
91
91
  .action(async (opts) => {
92
92
  const api = getApi();
93
93
  const result = await handleApiCall(() => api.segmentation.segment.fetch({
@@ -53,7 +53,7 @@ export function registerStartCommand(program, getApi, deps) {
53
53
  .description("Open a coding agent, run the guided demo, or set up a project — signing you in first if needed")
54
54
  .option("--email <email>", "Sign in with a code emailed to this address")
55
55
  .option("--code <code>", "The emailed code, to finish a sign-in this command already started (`-` reads it from stdin)")
56
- .option("--oauth [value]", "Sign in via browser", parseBooleanOption)
56
+ .option("--oauth [true|false]", "Sign in via browser", parseBooleanOption)
57
57
  .option("--workspace-name <name>", "Workspace to use, created if it does not exist")
58
58
  .option("--workspace-uuid <uuid>", "Workspace to use")
59
59
  .option("--continue <where>", 'Where to continue: a coding agent ("claude", "cursor", "codex", "gemini"), "code" for a CDK project, "cli" for the palette, "demo" for the guided tour, or "none"')
@@ -24,7 +24,7 @@ Examples:
24
24
  .command("download")
25
25
  .description("Download the result of a SQL query against storage models as files")
26
26
  .requiredOption("--query <sql>", "SQL query string")
27
- .option("--format <format>", "Download format (csv or parquet)", "csv")
27
+ .option("--format <csv|parquet>", "Download format", "csv")
28
28
  .addHelpText("after", `
29
29
  Tables must be referenced as [datasetSlug].[modelSlug] and are rewritten
30
30
  to the underlying warehouse table under the hood. Returns signed URLs to
@@ -22,8 +22,8 @@ Example:
22
22
  .requiredOption("--model-uuid <uuid>", "Model UUID (string, required)")
23
23
  .option("--limit <n>", "Max results to return (integer)")
24
24
  .option("--offset <n>", "Number of results to skip (integer)")
25
- .option("--sort-kind <kind>", "Sort direction. Allowed values: asc, desc")
26
- .option("--sort-column-slug <slug>", "Column to sort by. Allowed values: _id, _title, _emitted_at (_emitted_at is only available on models built from ingested records)")
25
+ .option("--sort-kind <asc|desc>", "Sort direction")
26
+ .option("--sort-column-slug <_id|_title|_emitted_at>", "Column to sort by (_emitted_at is only available on models built from ingested records)")
27
27
  .addHelpText("after", `
28
28
  Examples:
29
29
  $ cargo-ai storage record list --model-uuid 550e8400-...
@@ -21,8 +21,8 @@ export function registerRunCommands(parent, getApi) {
21
21
  .command("create")
22
22
  .description("Create a storage run")
23
23
  .requiredOption("--model-uuid <uuid>", "Model UUID")
24
- .option("--is-reset [value]", "Reset the model before running", parseBooleanOption)
25
- .option("--is-force [value]", "Force the run", parseBooleanOption)
24
+ .option("--is-reset [true|false]", "Reset the model before running", parseBooleanOption)
25
+ .option("--is-force [true|false]", "Force the run", parseBooleanOption)
26
26
  .action(async (opts) => {
27
27
  const api = getApi();
28
28
  const result = await handleApiCall(() => api.storage.run.create({
@@ -4,7 +4,7 @@ export function registerLogCommands(parent, getApi) {
4
4
  log
5
5
  .command("list")
6
6
  .description("List logs")
7
- .option("--statuses <statuses>", "Statuses (comma-separated)")
7
+ .option("--statuses <success,error>", "Statuses")
8
8
  .option("--query <query>", "Search query")
9
9
  .option("--limit <n>", "Limit")
10
10
  .option("--offset <n>", "Offset")
@@ -36,7 +36,7 @@ export function registerSystemOfRecordCommands(parent, getApi) {
36
36
  sor
37
37
  .command("create")
38
38
  .description("Create a system of record")
39
- .requiredOption("--kind <kind>", "System of record kind")
39
+ .requiredOption("--kind <bigQuery|snowflake>", "System of record kind")
40
40
  .option("--config <json>", "Configuration (JSON object)")
41
41
  .action(async (opts) => {
42
42
  const api = getApi();
@@ -6,7 +6,7 @@ export function registerVersionCommand(parent, currentVersion) {
6
6
  parent
7
7
  .command("version")
8
8
  .description("Print the installed CLI version, or check npm for a newer release with --check")
9
- .option("--check [value]", "Query the npm registry and report whether a newer version is available", parseBooleanOption)
9
+ .option("--check [true|false]", "Query the npm registry and report whether a newer version is available", parseBooleanOption)
10
10
  .action(async (opts) => {
11
11
  if (opts.check !== true) {
12
12
  outputJson({ version: currentVersion });
@@ -1 +1 @@
1
- {"version":3,"file":"folder.d.ts","sourceRoot":"","sources":["../../../src/commands/workspaceManagement/folder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAGxC,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,OAAO,EACf,MAAM,EAAE,MAAM,GAAG,GAChB,IAAI,CA6FN"}
1
+ {"version":3,"file":"folder.d.ts","sourceRoot":"","sources":["../../../src/commands/workspaceManagement/folder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAGxC,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,OAAO,EACf,MAAM,EAAE,MAAM,GAAG,GAChB,IAAI,CAgGN"}
@@ -22,7 +22,7 @@ export function registerFolderCommands(parent, getApi) {
22
22
  .description("Create a folder")
23
23
  .requiredOption("--name <name>", "Folder name")
24
24
  .requiredOption("--emoji-slug <slug>", "Emoji slug")
25
- .requiredOption("--kind <kind>", "Folder kind")
25
+ .requiredOption("--kind <tool|play|agent|file|mcpServer|model|app|worker|alert|mailbox>", "Folder kind")
26
26
  .option("--parent-uuid <uuid>", "Parent folder UUID")
27
27
  .action(async (opts) => {
28
28
  const api = getApi();
@@ -1 +1 @@
1
- {"version":3,"file":"role.d.ts","sourceRoot":"","sources":["../../../src/commands/workspaceManagement/role.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAGxC,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,GAAG,IAAI,CAyF7E"}
1
+ {"version":3,"file":"role.d.ts","sourceRoot":"","sources":["../../../src/commands/workspaceManagement/role.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAGxC,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,GAAG,IAAI,CAgG7E"}