@cargo-ai/cli 1.0.72 → 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 (100) 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/email.d.ts +24 -0
  12. package/build/commands/auth/email.d.ts.map +1 -1
  13. package/build/commands/auth/email.js +27 -14
  14. package/build/commands/auth/index.d.ts.map +1 -1
  15. package/build/commands/auth/index.js +9 -3
  16. package/build/commands/auth/workspace.d.ts.map +1 -1
  17. package/build/commands/auth/workspace.js +99 -26
  18. package/build/commands/billing/subscription.d.ts.map +1 -1
  19. package/build/commands/billing/subscription.js +3 -3
  20. package/build/commands/billing/usage.d.ts.map +1 -1
  21. package/build/commands/billing/usage.js +1 -1
  22. package/build/commands/connection/action.d.ts.map +1 -1
  23. package/build/commands/connection/action.js +1 -1
  24. package/build/commands/connection/connector.d.ts.map +1 -1
  25. package/build/commands/connection/connector.js +145 -22
  26. package/build/commands/connection/integration.d.ts.map +1 -1
  27. package/build/commands/connection/integration.js +1 -1
  28. package/build/commands/content/library.js +1 -1
  29. package/build/commands/context/runtime.js +1 -1
  30. package/build/commands/expression/recipe.d.ts.map +1 -1
  31. package/build/commands/expression/recipe.js +9 -9
  32. package/build/commands/mailboxManagement/event.js +1 -1
  33. package/build/commands/mailboxManagement/mailbox.d.ts.map +1 -1
  34. package/build/commands/mailboxManagement/mailbox.js +3 -3
  35. package/build/commands/mailboxManagement/message.js +1 -1
  36. package/build/commands/mailboxManagement/suppression.js +1 -1
  37. package/build/commands/mailboxManagement/thread.js +1 -1
  38. package/build/commands/observability/alert.js +2 -2
  39. package/build/commands/orchestration/action.d.ts.map +1 -1
  40. package/build/commands/orchestration/action.js +18 -63
  41. package/build/commands/orchestration/batch.js +7 -7
  42. package/build/commands/orchestration/node.js +2 -2
  43. package/build/commands/orchestration/play.d.ts.map +1 -1
  44. package/build/commands/orchestration/play.js +9 -9
  45. package/build/commands/orchestration/record.d.ts.map +1 -1
  46. package/build/commands/orchestration/record.js +10 -10
  47. package/build/commands/orchestration/release.js +1 -1
  48. package/build/commands/orchestration/run.d.ts.map +1 -1
  49. package/build/commands/orchestration/run.js +14 -14
  50. package/build/commands/orchestration/span.d.ts.map +1 -1
  51. package/build/commands/orchestration/span.js +4 -4
  52. package/build/commands/orchestration/tool.js +2 -2
  53. package/build/commands/orchestration/trace.d.ts.map +1 -1
  54. package/build/commands/orchestration/trace.js +2 -2
  55. package/build/commands/revenueOrganization/capacity.d.ts.map +1 -1
  56. package/build/commands/revenueOrganization/capacity.js +2 -2
  57. package/build/commands/revenueOrganization/territory.js +2 -2
  58. package/build/commands/segmentation/change.d.ts.map +1 -1
  59. package/build/commands/segmentation/change.js +4 -4
  60. package/build/commands/segmentation/record.js +1 -1
  61. package/build/commands/segmentation/segment.js +2 -2
  62. package/build/commands/start/brief.d.ts +107 -0
  63. package/build/commands/start/brief.d.ts.map +1 -0
  64. package/build/commands/start/brief.js +222 -0
  65. package/build/commands/start/index.d.ts +44 -0
  66. package/build/commands/start/index.d.ts.map +1 -0
  67. package/build/commands/start/index.js +431 -0
  68. package/build/commands/start/state.d.ts +50 -0
  69. package/build/commands/start/state.d.ts.map +1 -0
  70. package/build/commands/start/state.js +101 -0
  71. package/build/commands/storage/query.js +1 -1
  72. package/build/commands/storage/record.js +2 -2
  73. package/build/commands/storage/run.js +2 -2
  74. package/build/commands/systemOfRecordIntegration/log.js +1 -1
  75. package/build/commands/systemOfRecordIntegration/systemOfRecord.js +1 -1
  76. package/build/commands/version.js +1 -1
  77. package/build/commands/workspaceManagement/folder.d.ts.map +1 -1
  78. package/build/commands/workspaceManagement/folder.js +1 -1
  79. package/build/commands/workspaceManagement/role.d.ts.map +1 -1
  80. package/build/commands/workspaceManagement/role.js +2 -2
  81. package/build/commands/workspaceManagement/session.js +1 -1
  82. package/build/commands/workspaceManagement/user.d.ts.map +1 -1
  83. package/build/commands/workspaceManagement/user.js +2 -2
  84. package/build/commands/workspaceManagement/workspaces.js +1 -1
  85. package/build/config.d.ts +1 -0
  86. package/build/config.d.ts.map +1 -1
  87. package/build/config.js +1 -0
  88. package/build/index.js +50 -6
  89. package/build/paletteLayout.d.ts +16 -0
  90. package/build/paletteLayout.d.ts.map +1 -0
  91. package/build/paletteLayout.js +131 -0
  92. package/build/setupIssues.d.ts +4 -16
  93. package/build/setupIssues.d.ts.map +1 -1
  94. package/build/setupIssues.js +3 -52
  95. package/build/utils/booleanOption.d.ts.map +1 -1
  96. package/build/utils/booleanOption.js +5 -4
  97. package/package.json +3 -3
  98. package/build/commands/orchestration/costTable.d.ts +0 -121
  99. package/build/commands/orchestration/costTable.d.ts.map +0 -1
  100. package/build/commands/orchestration/costTable.js +0 -363
@@ -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({
@@ -0,0 +1,107 @@
1
+ import { CDK_SKILL, type CodingAgent } from "@cargo-ai/cdk/cli";
2
+ /**
3
+ * Where the agent is being opened, which decides what it is told to do.
4
+ *
5
+ * Three cases, because the right first move is different in each: outside a
6
+ * project there is nothing to read and the work starts with a conversation;
7
+ * inside a CDK repo the workspace is already declared in files worth reading
8
+ * before touching; and inside one carrying a cookbook, that cookbook's own
9
+ * procedure is the authority and re-deriving intent is the wrong move.
10
+ *
11
+ * Naming the same skill in all three, which is what this used to do, sent an
12
+ * agent into a repo full of answers and told it to start asking questions.
13
+ */
14
+ export type ProjectContext = {
15
+ kind: "none";
16
+ } | {
17
+ kind: "cdk";
18
+ root: string;
19
+ companyContextPath: string | undefined;
20
+ } | {
21
+ kind: "cookbook";
22
+ root: string;
23
+ companyContextPath: string | undefined;
24
+ cookbooks: readonly string[];
25
+ };
26
+ export type StartFacts = {
27
+ workspace: {
28
+ uuid: string;
29
+ name: string;
30
+ };
31
+ /** Whether the Cargo skills bundle is already installed for a coding agent. */
32
+ skillsInstalled: boolean;
33
+ };
34
+ /**
35
+ * The command group "Explore in the CLI" opens the palette on. The action
36
+ * catalog is the shortest path from a menu to something real: search one, run
37
+ * one, see a result.
38
+ */
39
+ export declare const EXPLORE_PATH: readonly string[];
40
+ /**
41
+ * The skill a handoff loads before the agent's first turn. `cargo` routes; the
42
+ * other two own their task outright.
43
+ *
44
+ * This type is the one place the whole story lives, because everything about
45
+ * the handoff depends on getting it right, and it has been got wrong twice.
46
+ *
47
+ * A skill reaches the agent by two paths at once: the launch passes it as a
48
+ * `/<skill>` command, which only Claude Code expands, and the brief names it in
49
+ * prose, which is all every other agent has. So the two must agree. The first
50
+ * version of the demo brief described its *outcome* instead of naming a skill
51
+ * and let the router choose; the router picked `cargo-gtm`, the general
52
+ * sourcing surface, and the agent spent four of its eight minutes rediscovering
53
+ * action names and dumping integration JSON to find a config schema. The
54
+ * second version named `cargo-quickstart` in the launch but left the brief
55
+ * saying "load `cargo`", which put every non-Claude agent back through the
56
+ * router and made the demo ask for two different skills in two steps.
57
+ *
58
+ * Hence a union rather than `string`: a mistyped or mismatched skill name is
59
+ * not something the CLI can notice at runtime, and the symptom is slow rather
60
+ * than broken, which is the kind of bug that survives.
61
+ */
62
+ export type HandoffSkill = "cargo" | typeof CDK_SKILL | "cargo-quickstart";
63
+ export declare const ROUTER_SKILL: HandoffSkill;
64
+ export declare const DEMO_SKILL: HandoffSkill;
65
+ export { CDK_SKILL };
66
+ export type Destination = {
67
+ kind: "agent";
68
+ agent: CodingAgent;
69
+ } | {
70
+ kind: "code";
71
+ } | {
72
+ kind: "cli";
73
+ } | {
74
+ kind: "demo";
75
+ } | {
76
+ kind: "none";
77
+ };
78
+ /**
79
+ * `--continue <where>` as a destination. Agents are named the way a person
80
+ * refers to them ("cursor"), not the way they are installed ("cursor-agent"),
81
+ * and one that is not on this machine is a usage error rather than a silent
82
+ * fallback to something else.
83
+ */
84
+ export declare function parseDestination(value: string, agents: readonly CodingAgent[]): Destination | undefined;
85
+ /**
86
+ * The brief a coding agent is opened with. An agent launched in a bare
87
+ * directory has to rediscover the workspace, the skills and the cost rules;
88
+ * this is the whole reason the handoff beats telling someone to open Claude
89
+ * Code themselves.
90
+ *
91
+ * What it says depends on `project` — see `ProjectContext` for why all three
92
+ * cases need different words rather than one brief and a different skill name.
93
+ */
94
+ export declare function buildBrief(facts: StartFacts, skill: HandoffSkill, project?: ProjectContext): string;
95
+ /**
96
+ * The brief behind the guided demo.
97
+ *
98
+ * It names `cargo-quickstart` rather than describing the demo, because that
99
+ * skill *is* this demo — a persona, ~25 leads, a cost receipt, then saving the
100
+ * pull as a play. Describing the outcome instead is what cost the first version
101
+ * half its runtime (see `HandoffSkill`), so this brief spends its length on
102
+ * pointing at the procedure and forbidding the detour.
103
+ */
104
+ export declare function buildDemoBrief(facts: StartFacts, icp: string | undefined): string;
105
+ /** The block printed when nobody wanted a handoff. */
106
+ export declare function formatStartNextSteps(facts: StartFacts): string;
107
+ //# sourceMappingURL=brief.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"brief.d.ts","sourceRoot":"","sources":["../../../src/commands/start/brief.ts"],"names":[],"mappings":"AAMA,OAAO,EAEL,SAAS,EACT,KAAK,WAAW,EAEjB,MAAM,mBAAmB,CAAC;AAE3B;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,cAAc,GACtB;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAChB;IAAE,IAAI,EAAE,KAAK,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,kBAAkB,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,GACrE;IACE,IAAI,EAAE,UAAU,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,kBAAkB,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC;CAC9B,CAAC;AAEN,MAAM,MAAM,UAAU,GAAG;IACvB,SAAS,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1C,+EAA+E;IAC/E,eAAe,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,YAAY,EAAE,SAAS,MAAM,EAAgC,CAAC;AAE3E;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,OAAO,SAAS,GAAG,kBAAkB,CAAC;AAE3E,eAAO,MAAM,YAAY,EAAE,YAAsB,CAAC;AAClD,eAAO,MAAM,UAAU,EAAE,YAAiC,CAAC;AAE3D,OAAO,EAAE,SAAS,EAAE,CAAC;AAErB,MAAM,MAAM,WAAW,GACnB;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,WAAW,CAAA;CAAE,GACrC;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAChB;IAAE,IAAI,EAAE,KAAK,CAAA;CAAE,GACf;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAChB;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAErB;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,SAAS,WAAW,EAAE,GAC7B,WAAW,GAAG,SAAS,CA8BzB;AAED;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CACxB,KAAK,EAAE,UAAU,EACjB,KAAK,EAAE,YAAY,EACnB,OAAO,GAAE,cAAiC,GACzC,MAAM,CAaR;AAyED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAC5B,KAAK,EAAE,UAAU,EACjB,GAAG,EAAE,MAAM,GAAG,SAAS,GACtB,MAAM,CA+BR;AAED,sDAAsD;AACtD,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAgB9D"}