@cargo-ai/cli 1.0.66 → 1.0.67

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.
@@ -1 +1 @@
1
- {"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../../src/commands/orchestration/action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAcxC,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,OAAO,EACf,MAAM,EAAE,MAAM,GAAG,GAChB,IAAI,CAyQN"}
1
+ {"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../../src/commands/orchestration/action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAcxC,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,OAAO,EACf,MAAM,EAAE,MAAM,GAAG,GAChB,IAAI,CAuRN"}
@@ -129,15 +129,25 @@ Examples:
129
129
  .command("get-output-schema")
130
130
  .description("Resolve the JSON schema of an action's data output without executing it")
131
131
  .requiredOption("--action <json>", 'Action definition (JSON object, required). Example: \'{"kind":"tool","toolUuid":"550e8400-..."}\'')
132
+ .option("--data <json>", 'Inputs the action would run with (JSON object, optional). Only needed when the output schema depends on them. Example: \'{"objectType":"contacts"}\'')
132
133
  .addHelpText("after", `
134
+ Nothing is executed and no credits are consumed. Pass the 'action' object from
135
+ 'cargo-ai orchestration action list' as-is.
136
+
137
+ Some actions shape their output from their inputs — a HubSpot object type, a
138
+ Google Sheet. Pass those in --data, exactly as you would to 'action execute'.
139
+
133
140
  Examples:
134
141
  $ cargo-ai orchestration action get-output-schema --action '{"kind":"tool","toolUuid":"550e8400-..."}'
135
- $ cargo-ai orchestration action get-output-schema --action '{"kind":"connector","integrationSlug":"clearbit","actionSlug":"company_enrich"}'`)
142
+ $ cargo-ai orchestration action get-output-schema --action '{"kind":"connector","integrationSlug":"clearbit","actionSlug":"company_enrich"}'
143
+ $ cargo-ai orchestration action get-output-schema --action '{"kind":"connector","integrationSlug":"hubspot","actionSlug":"findRecords"}' --data '{"objectType":"contacts"}'`)
136
144
  .action(async (opts) => {
137
145
  const actionPayload = parseJson(opts.action, "--action");
146
+ const dataPayload = opts.data === undefined ? undefined : parseJson(opts.data, "--data");
138
147
  const api = getApi();
139
148
  const result = await handleApiCall(() => api.orchestration.action.getOutputSchema({
140
149
  action: actionPayload,
150
+ data: dataPayload,
141
151
  }));
142
152
  outputJson(result);
143
153
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cargo-ai/cli",
3
- "version": "1.0.66",
3
+ "version": "1.0.67",
4
4
  "private": false,
5
5
  "license": "UNLICENSED",
6
6
  "homepage": "https://getcargo.ai",
@@ -64,7 +64,7 @@
64
64
  "format:check": "prettier --check ."
65
65
  },
66
66
  "dependencies": {
67
- "@cargo-ai/api": "^1.0.68",
67
+ "@cargo-ai/api": "^1.0.69",
68
68
  "@cargo-ai/app-sdk": "^1.0.9",
69
69
  "@cargo-ai/cdk": "^1.0.53",
70
70
  "@cargo-ai/types": "^1.0.66",