@cargo-ai/cli 1.0.136 → 1.0.139
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.
|
@@ -68,9 +68,9 @@ export function registerFileCommands(parent, getApi) {
|
|
|
68
68
|
outputJson(result);
|
|
69
69
|
resolve();
|
|
70
70
|
},
|
|
71
|
-
onError: () => {
|
|
71
|
+
onError: (error) => {
|
|
72
72
|
process.stderr.write("\n");
|
|
73
|
-
reject(
|
|
73
|
+
reject(error);
|
|
74
74
|
},
|
|
75
75
|
});
|
|
76
76
|
}));
|
|
@@ -100,9 +100,9 @@ export function registerFileCommands(parent, getApi) {
|
|
|
100
100
|
process.stderr.write("\n");
|
|
101
101
|
resolve(result);
|
|
102
102
|
},
|
|
103
|
-
onError: () => {
|
|
103
|
+
onError: (error) => {
|
|
104
104
|
process.stderr.write("\n");
|
|
105
|
-
reject(
|
|
105
|
+
reject(error);
|
|
106
106
|
},
|
|
107
107
|
});
|
|
108
108
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../../src/commands/orchestration/action.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AA0BxC,eAAO,MAAM,mBAAmB,8BAA8B,CAAC;AAC/D,eAAO,MAAM,eAAe,yCAAyC,CAAC;AAEtE,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,OAAO,EACf,MAAM,EAAE,MAAM,GAAG,EACjB,YAAY,EAAE,CAAC,OAAO,CAAC,EAAE,MAAM,KAAK,GAAG,GACtC,IAAI,
|
|
1
|
+
{"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../../src/commands/orchestration/action.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AA0BxC,eAAO,MAAM,mBAAmB,8BAA8B,CAAC;AAC/D,eAAO,MAAM,eAAe,yCAAyC,CAAC;AAEtE,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,OAAO,EACf,MAAM,EAAE,MAAM,GAAG,EACjB,YAAY,EAAE,CAAC,OAAO,CAAC,EAAE,MAAM,KAAK,GAAG,GACtC,IAAI,CAkWN"}
|
|
@@ -20,6 +20,11 @@ graph needed. Creates a run and consumes credits.
|
|
|
20
20
|
- List first: 'cargo-ai orchestration action list enrich'
|
|
21
21
|
Each result includes an 'action' object for execute / execute-batch /
|
|
22
22
|
get-output-schema.
|
|
23
|
+
- Cargo's presets (Find email, Find phone, Verify email, ...) are read-only
|
|
24
|
+
tools and agents seeded into every workspace, and list first on equal
|
|
25
|
+
relevance. A preset can also be addressed by its templateSlug, and then the
|
|
26
|
+
same action works in every workspace:
|
|
27
|
+
'{"kind":"tool","templateSlug":"email_waterfall"}'.
|
|
23
28
|
- Inputs go in --data, not in the action. 'config' is optional; omit it.
|
|
24
29
|
- The run is asynchronous: pass --wait-until-finished, or poll it with
|
|
25
30
|
'cargo-ai orchestration run get <uuid>'.
|
|
@@ -41,11 +46,19 @@ To debug a node inside an existing workflow instead, use
|
|
|
41
46
|
.addHelpText("after", `
|
|
42
47
|
Each result includes an 'action' object you can pass to execute, execute-batch,
|
|
43
48
|
or get-output-schema. All query terms must match (AND). Matches on the action
|
|
44
|
-
slug or name rank above integration matches, which rank above description.
|
|
49
|
+
slug or name rank above integration matches, which rank above description. On
|
|
50
|
+
equal relevance a Cargo preset ranks first: presets are the read-only tools and
|
|
51
|
+
agents seeded into every workspace, and a preset tool is the one call that
|
|
52
|
+
tries several providers.
|
|
45
53
|
|
|
46
54
|
Billed actions carry a 'credits' array — this is where pricing lives, so it is
|
|
47
|
-
the answer to "what does <action> cost".
|
|
48
|
-
|
|
55
|
+
the answer to "what does <action> cost". A connector or native action without
|
|
56
|
+
it costs no credits; a tool or agent without it is priced by the steps it runs,
|
|
57
|
+
so its absence does not mean free. A tool that declares its price carries fixed
|
|
58
|
+
entries for the cheapest and the dearest path through it (a waterfall stops at
|
|
59
|
+
the first provider that answers): it costs between the lowest and the highest.
|
|
60
|
+
|
|
61
|
+
Each 'credits' entry is one of three shapes, selected by the 'config' it matches:
|
|
49
62
|
|
|
50
63
|
- fixed: 'cost' credits per call.
|
|
51
64
|
- unit: 'cost' credits per 'unit' consumed, plus 'fixedCost' per call.
|
|
@@ -53,11 +66,12 @@ Each entry is one of three shapes, selected by the 'config' it matches:
|
|
|
53
66
|
|
|
54
67
|
'fixedCost' is a base charge on top of the metered rate, not an alternative to
|
|
55
68
|
it — a search billed 0.175 fixedCost + 0.025 per item costs 0.2 for one item.
|
|
56
|
-
|
|
57
|
-
'config.jsonSchema' const/enum is what selects it (an
|
|
58
|
-
email toggle).
|
|
69
|
+
On a connector or native action, several entries mean the price depends on
|
|
70
|
+
config, and each entry's 'config.jsonSchema' const/enum is what selects it (an
|
|
71
|
+
LLM model, a phone-or-email toggle).
|
|
59
72
|
|
|
60
73
|
Examples:
|
|
74
|
+
$ cargo-ai orchestration action list find email
|
|
61
75
|
$ cargo-ai orchestration action list enrich
|
|
62
76
|
$ cargo-ai orchestration action list --kind tool
|
|
63
77
|
$ cargo-ai orchestration action list send --kind connector --integration-slug slack
|
|
@@ -105,7 +119,12 @@ from the action's output schema, marked
|
|
|
105
119
|
"dryRun", with no provider called and no credits used. An action whose output
|
|
106
120
|
depends on its configuration has no fixed shape to show, and the dry run says so.
|
|
107
121
|
|
|
122
|
+
A Cargo preset can also be addressed by its templateSlug, which resolves to this
|
|
123
|
+
workspace's copy of the tool or agent, so the same command works in every
|
|
124
|
+
workspace.
|
|
125
|
+
|
|
108
126
|
Examples:
|
|
127
|
+
$ cargo-ai orchestration action execute --action '{"kind":"tool","templateSlug":"email_waterfall"}' --data '{"firstName":"Ada","lastName":"Lovelace","companyDomain":"example.com"}' --wait-until-finished
|
|
109
128
|
$ cargo-ai orchestration action execute --action '{"kind":"tool","toolUuid":"550e8400-..."}' --data '{"email":"user@example.com"}'
|
|
110
129
|
$ cargo-ai orchestration action execute --action '{"kind":"connector","integrationSlug":"slack","actionSlug":"postMessage","connectorUuid":"..."}' --data '{"channelId":"C0123456789","format":"markdown","body":"hello"}' --wait-until-finished
|
|
111
130
|
$ cargo-ai orchestration action execute --action '{"kind":"connector","integrationSlug":"aiArk","actionSlug":"enrichCompany"}' --data '{"domain":"example.com"}' --dry-run`)
|
|
@@ -143,6 +162,7 @@ Examples:
|
|
|
143
162
|
.option("--polling-interval <ms>", "Polling interval in milliseconds, used with --wait-until-finished (integer, default: 5000)", "5000")
|
|
144
163
|
.addHelpText("after", `
|
|
145
164
|
Examples:
|
|
165
|
+
$ cargo-ai orchestration action execute-batch --action '{"kind":"tool","templateSlug":"email_validator"}' --records '[{"email":"a@b.com"},{"email":"c@d.com"}]' --limit 1 --wait-until-finished
|
|
146
166
|
$ cargo-ai orchestration action execute-batch --action '{"kind":"tool","toolUuid":"550e8400-..."}' --records '[{"email":"a@b.com"},{"email":"c@d.com"}]'
|
|
147
167
|
$ cargo-ai orchestration action execute-batch --action '{"kind":"connector","integrationSlug":"slack","actionSlug":"postMessage","connectorUuid":"..."}' --records '[{"channelId":"C0123456789","format":"markdown","body":"hello"}]' --wait-until-finished
|
|
148
168
|
$ cargo-ai orchestration action execute-batch --action '{"kind":"connector","integrationSlug":"findyMail","actionSlug":"findEmail"}' --records '[{"name":"Ada Lovelace","domain":"example.com"},{"linkedinUrl":"https://www.linkedin.com/in/ada"}]' --limit 1 --wait-until-finished`)
|
|
@@ -186,6 +206,7 @@ Some actions shape their output from their inputs — a HubSpot object type, a
|
|
|
186
206
|
Google Sheet. Pass those in --data, exactly as you would to 'action execute'.
|
|
187
207
|
|
|
188
208
|
Examples:
|
|
209
|
+
$ cargo-ai orchestration action get-output-schema --action '{"kind":"tool","templateSlug":"phone_waterfall"}'
|
|
189
210
|
$ cargo-ai orchestration action get-output-schema --action '{"kind":"tool","toolUuid":"550e8400-..."}'
|
|
190
211
|
$ cargo-ai orchestration action get-output-schema --action '{"kind":"connector","integrationSlug":"clearbit","actionSlug":"enrichCompany"}'
|
|
191
212
|
$ cargo-ai orchestration action get-output-schema --action '{"kind":"connector","integrationSlug":"hubspot","actionSlug":"findRecords"}' --data '{"objectType":"contacts"}'`)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cargo-ai/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.139",
|
|
4
4
|
"mcpName": "io.github.getcargohq/cargo",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -74,9 +74,9 @@
|
|
|
74
74
|
"dependencies": {
|
|
75
75
|
"@ai-sdk/harness": "1.0.144",
|
|
76
76
|
"@ai-sdk/harness-claude-code": "1.0.148",
|
|
77
|
-
"@cargo-ai/api": "^1.0.
|
|
77
|
+
"@cargo-ai/api": "^1.0.104",
|
|
78
78
|
"@cargo-ai/app-sdk": "^1.0.11",
|
|
79
|
-
"@cargo-ai/cdk": "^1.0.
|
|
79
|
+
"@cargo-ai/cdk": "^1.0.133",
|
|
80
80
|
"@cargo-ai/types": "^1.0.104",
|
|
81
81
|
"@cargo-ai/utils": "^1.0.35",
|
|
82
82
|
"@cargo-ai/worker-sdk": "^1.0.21",
|