@cargo-ai/cli 1.0.101 → 1.0.103

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":"message.d.ts","sourceRoot":"","sources":["../../../src/commands/ai/message.ts"],"names":[],"mappings":"AACA,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"}
1
+ {"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../../src/commands/ai/message.ts"],"names":[],"mappings":"AACA,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,CAqUN"}
@@ -142,9 +142,22 @@ MCP client shape: { "name": string, "url": string }`)
142
142
  parts: parseJson(opts.parts, "--parts"),
143
143
  ...params,
144
144
  }));
145
+ // A local, not `result.assistantMessage`: narrowing a property does
146
+ // not hold inside the polling closure below.
147
+ const { assistantMessage } = result;
148
+ // The chat was mid-turn, so the message was queued and the turn that
149
+ // answers it does not exist yet — there is nothing to poll. Say so
150
+ // rather than waiting on an answer that has no message to arrive on.
151
+ if (assistantMessage === undefined) {
152
+ if (opts.waitUntilFinished === true) {
153
+ info("Queued behind the turn already running on this chat; it is answered once that finishes. Nothing to wait on yet.");
154
+ }
155
+ outputJson(result);
156
+ return;
157
+ }
145
158
  if (opts.waitUntilFinished === true) {
146
159
  const intervalMs = parseInt(opts.pollingInterval, 10);
147
- const finalResult = await pollUntilFinished(() => api.ai.message.get(result.assistantMessage.uuid), (r) => r.message.finishedAt, intervalMs);
160
+ const finalResult = await pollUntilFinished(() => api.ai.message.get(assistantMessage.uuid), (r) => r.message.finishedAt, intervalMs);
148
161
  outputJson(finalResult);
149
162
  return;
150
163
  }
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../src/commands/hosting/app.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAOxC,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,GAAG,IAAI,CA4O5E"}
1
+ {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../src/commands/hosting/app.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAOxC,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,GAAG,IAAI,CA8O5E"}
@@ -9,7 +9,7 @@ const require = createRequire(import.meta.url);
9
9
  export function registerAppCommands(parent, getApi) {
10
10
  const app = parent
11
11
  .command("app")
12
- .description("Manage Cargo Hosting apps (Vite SPAs served on *.cargo.app)");
12
+ .description("Manage Cargo Hosting apps (Vite SPAs served on *.app.getcargo.run)");
13
13
  app
14
14
  .command("list")
15
15
  .description("List apps in the current workspace")
@@ -169,6 +169,7 @@ export function registerAppCommands(parent, getApi) {
169
169
  const TEMPLATE_DESCRIPTIONS = {
170
170
  blank: "Minimal Vite + refine app with one route, getCargoEnv() + CargoWorkspaceBadge wired (use as a starting point).",
171
171
  "territories-overview": "Read-only grid of revenue organization territories. Demonstrates useCargoApi() + react-query + the SDK shadcn primitives.",
172
+ "public-site": "Public, search-engine-indexable site. Prerenders every route to HTML at build time from its own build script; ships robots.txt + sitemap.xml.",
172
173
  };
173
174
  const findTemplatesRoot = () => {
174
175
  // The CLI is published as `@cargo-ai/cli`. Templates live in
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cargo-ai/cli",
3
- "version": "1.0.101",
3
+ "version": "1.0.103",
4
4
  "private": false,
5
5
  "license": "UNLICENSED",
6
6
  "homepage": "https://getcargo.ai",
@@ -67,18 +67,18 @@
67
67
  "dependencies": {
68
68
  "@ai-sdk/harness": "^1.0.95",
69
69
  "@ai-sdk/harness-claude-code": "^1.0.99",
70
- "@cargo-ai/api": "^1.0.86",
71
- "@cargo-ai/app-sdk": "^1.0.10",
72
- "@cargo-ai/cdk": "^1.0.87",
73
- "@cargo-ai/types": "^1.0.85",
74
- "@cargo-ai/utils": "^1.0.31",
70
+ "@cargo-ai/api": "^1.0.87",
71
+ "@cargo-ai/app-sdk": "^1.0.11",
72
+ "@cargo-ai/cdk": "^1.0.99",
73
+ "@cargo-ai/types": "^1.0.88",
74
+ "@cargo-ai/utils": "^1.0.32",
75
75
  "@cargo-ai/worker-sdk": "^1.0.20",
76
76
  "@modelcontextprotocol/sdk": "1.29.0",
77
77
  "ai": "^7.0.84",
78
78
  "ai-sdk-sandbox-local": "^0.1.2",
79
79
  "commander": "^12.1.0",
80
80
  "tsx": "^4.19.2",
81
- "undici": "^7.29.0",
81
+ "undici": "^7.29.1",
82
82
  "uuid": "^14.0.0"
83
83
  },
84
84
  "devDependencies": {