@cargo-ai/cli 1.0.77 → 1.0.78
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":"chat.d.ts","sourceRoot":"","sources":["../../../src/commands/ai/chat.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,
|
|
1
|
+
{"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../../src/commands/ai/chat.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,CAyI7E"}
|
|
@@ -41,6 +41,8 @@ export function registerChatCommands(parent, getApi) {
|
|
|
41
41
|
.option("--name <name>", "Chat name (string)")
|
|
42
42
|
.option("--agent-uuid <uuid>", "Agent UUID to associate with (string)")
|
|
43
43
|
.option("--release-uuid <uuid>", "Release UUID to pin to (string)")
|
|
44
|
+
.option("--harness-slug <slug>", "Coding-agent runtime. Currently only claudeCode. When omitted, later turns use the agent's pinned release, if any.")
|
|
45
|
+
.option("--repository <json>", "Git workspace for a coding harness (JSON object: connectorUuid, repository as owner/name, defaultBranch, rootDirectory, env)")
|
|
44
46
|
.addHelpText("after", `
|
|
45
47
|
Examples:
|
|
46
48
|
$ cargo-ai ai chat create --trigger '{"type":"draft"}'
|
|
@@ -56,6 +58,10 @@ Trigger object shapes:
|
|
|
56
58
|
name: opts.name,
|
|
57
59
|
agentUuid: opts.agentUuid,
|
|
58
60
|
releaseUuid: opts.releaseUuid,
|
|
61
|
+
harnessSlug: opts.harnessSlug,
|
|
62
|
+
repository: opts.repository !== undefined
|
|
63
|
+
? parseJson(opts.repository, "--repository")
|
|
64
|
+
: undefined,
|
|
59
65
|
}));
|
|
60
66
|
outputJson(result);
|
|
61
67
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../../src/commands/ai/message.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../../src/commands/ai/message.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAoCxC,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,OAAO,EACf,MAAM,EAAE,MAAM,GAAG,GAChB,IAAI,CAmTN"}
|
|
@@ -27,6 +27,8 @@ export function registerMessageCommands(parent, getApi) {
|
|
|
27
27
|
.option("--integration-slug <slug>", "Integration slug (string)")
|
|
28
28
|
.option("--connector-uuid <uuid>", "Connector UUID (string)")
|
|
29
29
|
.option("--language-model-slug <slug>", "Language model slug (string)")
|
|
30
|
+
.option("--harness-slug <slug>", "Coding-agent runtime. Currently only claudeCode. When omitted, later turns use the agent's pinned release, if any.")
|
|
31
|
+
.option("--repository <json>", "Git workspace for a coding harness (JSON object: connectorUuid, repository as owner/name, defaultBranch, rootDirectory, env)")
|
|
30
32
|
.option("--output <json>", 'Output format for the assistant message (JSON object, e.g. \'{"type":"text"}\' or \'{"type":"jsonSchema","jsonSchema":{...}}\'). Defaults to text when omitted.')
|
|
31
33
|
.option("--wait-until-finished [true|false]", "Poll the assistant message until finished before returning (defaults to true when passed bare)", parseBooleanOption)
|
|
32
34
|
.option("--polling-interval <ms>", "Polling interval in milliseconds, used with --wait-until-finished (integer, default: 5000)", "5000")
|
|
@@ -65,6 +67,8 @@ MCP client shape: { "name": string, "url": string }`)
|
|
|
65
67
|
["--integration-slug", opts.integrationSlug],
|
|
66
68
|
["--connector-uuid", opts.connectorUuid],
|
|
67
69
|
["--language-model-slug", opts.languageModelSlug],
|
|
70
|
+
["--harness-slug", opts.harnessSlug],
|
|
71
|
+
["--repository", opts.repository],
|
|
68
72
|
["--output", opts.output],
|
|
69
73
|
]
|
|
70
74
|
.filter(([, value]) => value !== undefined)
|
|
@@ -85,6 +89,8 @@ MCP client shape: { "name": string, "url": string }`)
|
|
|
85
89
|
maxSteps: resolved.maxSteps,
|
|
86
90
|
connectorUuid: resolved.connectorUuid,
|
|
87
91
|
languageModelSlug: resolved.languageModelSlug,
|
|
92
|
+
harnessSlug: resolved.harnessSlug,
|
|
93
|
+
repository: resolved.repository,
|
|
88
94
|
output: resolved.output,
|
|
89
95
|
};
|
|
90
96
|
if (resolved.connectorUuid !== undefined) {
|
|
@@ -119,6 +125,10 @@ MCP client shape: { "name": string, "url": string }`)
|
|
|
119
125
|
integrationSlug: opts.integrationSlug,
|
|
120
126
|
connectorUuid: opts.connectorUuid,
|
|
121
127
|
languageModelSlug: opts.languageModelSlug,
|
|
128
|
+
harnessSlug: opts.harnessSlug,
|
|
129
|
+
repository: opts.repository !== undefined
|
|
130
|
+
? parseJson(opts.repository, "--repository")
|
|
131
|
+
: undefined,
|
|
122
132
|
output: opts.output !== undefined
|
|
123
133
|
? parseJson(opts.output, "--output")
|
|
124
134
|
: undefined,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"release.d.ts","sourceRoot":"","sources":["../../../src/commands/ai/release.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAIxC,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,OAAO,EACf,MAAM,EAAE,MAAM,GAAG,GAChB,IAAI,
|
|
1
|
+
{"version":3,"file":"release.d.ts","sourceRoot":"","sources":["../../../src/commands/ai/release.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAIxC,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,OAAO,EACf,MAAM,EAAE,MAAM,GAAG,GAChB,IAAI,CA0VN"}
|
|
@@ -63,6 +63,8 @@ export function registerReleaseCommands(parent, getApi) {
|
|
|
63
63
|
.option("--integration-slug <slug>", "LLM integration slug (string)")
|
|
64
64
|
.option("--connector-uuid <uuid>", "Connector UUID (string)")
|
|
65
65
|
.option("--language-model-slug <slug>", "Language model slug (string)")
|
|
66
|
+
.option("--harness-slug <slug>", "Coding-agent runtime. Currently only claudeCode.")
|
|
67
|
+
.option("--repository <json>", "Git workspace for a coding harness (JSON object: connectorUuid, repository as owner/name, defaultBranch, rootDirectory, env)")
|
|
66
68
|
.option("--actions <json>", "Actions configuration (JSON array of action objects)")
|
|
67
69
|
.option("--mcp-clients <json>", "MCP clients configuration (JSON array of MCP client objects)")
|
|
68
70
|
.option("--resources <json>", "Resources configuration (JSON array of resource objects)")
|
|
@@ -95,6 +97,10 @@ Set "isReadOnly": false on a model resource to grant the agent write tools (inse
|
|
|
95
97
|
integrationSlug: opts.integrationSlug,
|
|
96
98
|
connectorUuid: opts.connectorUuid,
|
|
97
99
|
languageModelSlug: opts.languageModelSlug,
|
|
100
|
+
harnessSlug: opts.harnessSlug,
|
|
101
|
+
repository: opts.repository !== undefined
|
|
102
|
+
? parseJson(opts.repository, "--repository")
|
|
103
|
+
: undefined,
|
|
98
104
|
actions: opts.actions !== undefined
|
|
99
105
|
? parseJson(opts.actions, "--actions")
|
|
100
106
|
: undefined,
|
|
@@ -120,8 +126,10 @@ Set "isReadOnly": false on a model resource to grant the agent write tools (inse
|
|
|
120
126
|
.command("deploy-draft")
|
|
121
127
|
.description("Deploy the draft release to production")
|
|
122
128
|
.requiredOption("--agent-uuid <uuid>", "Agent UUID (string, required)")
|
|
123
|
-
.
|
|
124
|
-
.
|
|
129
|
+
.option("--integration-slug <slug>", "LLM integration slug (string). Unused when --harness-slug is set.")
|
|
130
|
+
.option("--language-model-slug <slug>", "Language model slug (string). Unused when --harness-slug is set.")
|
|
131
|
+
.option("--harness-slug <slug>", "Coding-agent runtime. Currently only claudeCode. When set, --integration-slug and --language-model-slug are unused.")
|
|
132
|
+
.option("--repository <json>", "Git workspace for a coding harness (JSON object: connectorUuid, repository as owner/name, defaultBranch, rootDirectory, env)")
|
|
125
133
|
.option("--version <version>", "Semver release version, e.g. 1.0.0 (string, auto-incremented if omitted)")
|
|
126
134
|
.requiredOption("--actions <json>", "Actions configuration (JSON array of action objects, required)")
|
|
127
135
|
.requiredOption("--mcp-clients <json>", "MCP clients configuration (JSON array, required)")
|
|
@@ -135,12 +143,31 @@ Set "isReadOnly": false on a model resource to grant the agent write tools (inse
|
|
|
135
143
|
.option("--connector-uuid <uuid>", "Connector UUID (string)")
|
|
136
144
|
.option("--description <text>", "Release description (string)")
|
|
137
145
|
.option("--options <json>", "Additional options (JSON object)")
|
|
146
|
+
.addHelpText("after", `
|
|
147
|
+
Examples:
|
|
148
|
+
$ cargo-ai ai release deploy-draft --agent-uuid <uuid> \\
|
|
149
|
+
--integration-slug openai --language-model-slug gpt-4o \\
|
|
150
|
+
--actions '[]' --mcp-clients '[]' --resources '[]' \\
|
|
151
|
+
--capabilities '[]' --suggested-actions '[]'
|
|
152
|
+
|
|
153
|
+
$ cargo-ai ai release deploy-draft --agent-uuid <uuid> \\
|
|
154
|
+
--harness-slug claudeCode \\
|
|
155
|
+
--repository '{"connectorUuid":"<github-uuid>","repository":"acme/app"}' \\
|
|
156
|
+
--actions '[]' --mcp-clients '[]' --resources '[]' \\
|
|
157
|
+
--capabilities '[]' --suggested-actions '[]'
|
|
158
|
+
|
|
159
|
+
A tool-loop agent needs --integration-slug and --language-model-slug. A
|
|
160
|
+
--harness-slug claudeCode agent does not — those flags are unused.`)
|
|
138
161
|
.action(async (opts) => {
|
|
139
162
|
const api = getApi();
|
|
140
163
|
const result = await handleApiCall(() => api.ai.release.deployDraft({
|
|
141
164
|
agentUuid: opts.agentUuid,
|
|
142
165
|
integrationSlug: opts.integrationSlug,
|
|
143
166
|
languageModelSlug: opts.languageModelSlug,
|
|
167
|
+
harnessSlug: opts.harnessSlug,
|
|
168
|
+
repository: opts.repository !== undefined
|
|
169
|
+
? parseJson(opts.repository, "--repository")
|
|
170
|
+
: undefined,
|
|
144
171
|
version: opts.version,
|
|
145
172
|
actions: parseJson(opts.actions, "--actions"),
|
|
146
173
|
mcpClients: parseJson(opts.mcpClients, "--mcp-clients"),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cargo-ai/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.78",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"homepage": "https://getcargo.ai",
|
|
@@ -64,10 +64,10 @@
|
|
|
64
64
|
"format:check": "prettier --check ."
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@cargo-ai/api": "^1.0.
|
|
67
|
+
"@cargo-ai/api": "^1.0.72",
|
|
68
68
|
"@cargo-ai/app-sdk": "^1.0.9",
|
|
69
|
-
"@cargo-ai/cdk": "^1.0.
|
|
70
|
-
"@cargo-ai/types": "^1.0.
|
|
69
|
+
"@cargo-ai/cdk": "^1.0.62",
|
|
70
|
+
"@cargo-ai/types": "^1.0.69",
|
|
71
71
|
"@cargo-ai/utils": "^1.0.28",
|
|
72
72
|
"@cargo-ai/worker-sdk": "^1.0.17",
|
|
73
73
|
"@modelcontextprotocol/sdk": "1.29.0",
|