@corvio/cli 0.1.0-beta.31 → 0.1.0-beta.32

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.
package/dist/cli.js CHANGED
@@ -39,7 +39,7 @@ import {
39
39
  agentCredentialPath,
40
40
  } from "./core.js";
41
41
 
42
- const VERSION = "0.1.0-beta.31";
42
+ const VERSION = "0.1.0-beta.32";
43
43
  const DEFAULT_API_BASE = "https://api.corvio.ai/v1";
44
44
  const DEFAULT_APP_BASE = "https://corvio.ai";
45
45
  const USER_AGENT = `corvio-cli/${VERSION}`;
@@ -749,6 +749,7 @@ async function capabilities(options) {
749
749
  workspace_selection: selection,
750
750
  api: index,
751
751
  principal: identity,
752
+ limits: identity?.capabilities?.limits || {},
752
753
  update: await buildUpdateStatus(index, {
753
754
  allowRegistryFailure: true,
754
755
  checkRegistry: false,
package/dist/core.js CHANGED
@@ -275,6 +275,10 @@ export async function resolveNpmUpdateStatus({
275
275
  }
276
276
  }
277
277
  const minimum = String(policy.minimum_supported_version || "").trim() || null;
278
+ const installCommand = latestVersion
279
+ ? `npm install --global ${packageName}@${latestVersion}`
280
+ : String(policy.install_command || `npm install --global ${packageName}@${distTag}`);
281
+ const executable = packageName === "@corvio/admin-cli" ? "corvio-admin" : "corvio";
278
282
  return {
279
283
  package: packageName,
280
284
  channel: String(policy.channel || distTag),
@@ -286,7 +290,9 @@ export async function resolveNpmUpdateStatus({
286
290
  minimum_supported_version: minimum,
287
291
  update_available: Boolean(latestVersion && compareVersions(latestVersion, currentVersion) > 0),
288
292
  supported: minimum ? compareVersions(currentVersion, minimum) >= 0 : true,
289
- install_command: String(policy.install_command || `npm install --global ${packageName}@${distTag}`),
293
+ install_command: installCommand,
294
+ verify_command: `${executable} --version`,
295
+ expected_version: latestVersion,
290
296
  automatic_install: false,
291
297
  ...(registryError ? { registry_error: registryError } : {}),
292
298
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corvio/cli",
3
- "version": "0.1.0-beta.31",
3
+ "version": "0.1.0-beta.32",
4
4
  "description": "Official Corvio Workspace CLI for questions, knowledge search, documents, and Agent workflows.",
5
5
  "type": "module",
6
6
  "bin": {