@vm0/cli 9.121.4 → 9.122.0
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/{chunk-GPSANZ2L.js → chunk-CRGB4RUH.js} +69 -3
- package/{chunk-GPSANZ2L.js.map → chunk-CRGB4RUH.js.map} +1 -1
- package/index.js +9 -9
- package/package.json +1 -1
- package/zero.js +38 -10
- package/zero.js.map +1 -1
package/index.js
CHANGED
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
source_default,
|
|
66
66
|
volumeConfigSchema,
|
|
67
67
|
withErrorHandler
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-CRGB4RUH.js";
|
|
69
69
|
import {
|
|
70
70
|
__toESM,
|
|
71
71
|
init_esm_shims
|
|
@@ -398,7 +398,7 @@ function getConfigPath() {
|
|
|
398
398
|
return join(homedir(), ".vm0", "config.json");
|
|
399
399
|
}
|
|
400
400
|
var infoCommand = new Command().name("info").description("Display environment and debug information").action(async () => {
|
|
401
|
-
console.log(source_default.bold(`VM0 CLI v${"9.
|
|
401
|
+
console.log(source_default.bold(`VM0 CLI v${"9.122.0"}`));
|
|
402
402
|
console.log();
|
|
403
403
|
const config = await loadConfig();
|
|
404
404
|
const hasEnvToken = !!process.env.VM0_TOKEN;
|
|
@@ -4291,7 +4291,7 @@ var composeCommand = new Command().name("compose").description("Create or update
|
|
|
4291
4291
|
options.autoUpdate = false;
|
|
4292
4292
|
}
|
|
4293
4293
|
if (options.autoUpdate !== false) {
|
|
4294
|
-
await startSilentUpgrade("9.
|
|
4294
|
+
await startSilentUpgrade("9.122.0");
|
|
4295
4295
|
}
|
|
4296
4296
|
try {
|
|
4297
4297
|
let result;
|
|
@@ -4381,7 +4381,7 @@ var mainRunCommand = new Command().name("run").description("Run an agent").argum
|
|
|
4381
4381
|
withErrorHandler(
|
|
4382
4382
|
async (identifier, prompt, options) => {
|
|
4383
4383
|
if (options.autoUpdate !== false) {
|
|
4384
|
-
await startSilentUpgrade("9.
|
|
4384
|
+
await startSilentUpgrade("9.122.0");
|
|
4385
4385
|
}
|
|
4386
4386
|
const { name, version } = parseIdentifier(identifier);
|
|
4387
4387
|
let composeId;
|
|
@@ -6393,13 +6393,13 @@ var upgradeCommand = new Command().name("upgrade").description("Upgrade vm0 CLI
|
|
|
6393
6393
|
if (latestVersion === null) {
|
|
6394
6394
|
throw new Error("Could not check for updates. Please try again later.");
|
|
6395
6395
|
}
|
|
6396
|
-
if (latestVersion === "9.
|
|
6397
|
-
console.log(source_default.green(`\u2713 Already up to date (${"9.
|
|
6396
|
+
if (latestVersion === "9.122.0") {
|
|
6397
|
+
console.log(source_default.green(`\u2713 Already up to date (${"9.122.0"})`));
|
|
6398
6398
|
return;
|
|
6399
6399
|
}
|
|
6400
6400
|
console.log(
|
|
6401
6401
|
source_default.yellow(
|
|
6402
|
-
`Current version: ${"9.
|
|
6402
|
+
`Current version: ${"9.122.0"} -> Latest version: ${latestVersion}`
|
|
6403
6403
|
)
|
|
6404
6404
|
);
|
|
6405
6405
|
console.log();
|
|
@@ -6426,7 +6426,7 @@ var upgradeCommand = new Command().name("upgrade").description("Upgrade vm0 CLI
|
|
|
6426
6426
|
const success = await performUpgrade(packageManager);
|
|
6427
6427
|
if (success) {
|
|
6428
6428
|
console.log(
|
|
6429
|
-
source_default.green(`\u2713 Upgraded from ${"9.
|
|
6429
|
+
source_default.green(`\u2713 Upgraded from ${"9.122.0"} to ${latestVersion}`)
|
|
6430
6430
|
);
|
|
6431
6431
|
return;
|
|
6432
6432
|
}
|
|
@@ -6493,7 +6493,7 @@ var whoamiCommand = new Command().name("whoami").description("Show current ident
|
|
|
6493
6493
|
|
|
6494
6494
|
// src/index.ts
|
|
6495
6495
|
var program = new Command();
|
|
6496
|
-
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.
|
|
6496
|
+
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.122.0");
|
|
6497
6497
|
program.addCommand(authCommand);
|
|
6498
6498
|
program.addCommand(infoCommand);
|
|
6499
6499
|
program.addCommand(composeCommand);
|
package/package.json
CHANGED
package/zero.js
CHANGED
|
@@ -126,7 +126,7 @@ import {
|
|
|
126
126
|
upsertZeroOrgModelProvider,
|
|
127
127
|
withErrorHandler,
|
|
128
128
|
zeroAgentCustomSkillNameSchema
|
|
129
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-CRGB4RUH.js";
|
|
130
130
|
import {
|
|
131
131
|
__toESM,
|
|
132
132
|
init_esm_shims
|
|
@@ -1185,6 +1185,18 @@ Examples:
|
|
|
1185
1185
|
if (agent.displayName) {
|
|
1186
1186
|
console.log(` Display Name: ${agent.displayName}`);
|
|
1187
1187
|
}
|
|
1188
|
+
console.log();
|
|
1189
|
+
console.log("Next steps to authorize connectors for this agent:");
|
|
1190
|
+
console.log(" - Search connectors this agent needs:");
|
|
1191
|
+
console.log(
|
|
1192
|
+
` zero connector search <keyword> --agent ${agent.agentId}`
|
|
1193
|
+
);
|
|
1194
|
+
console.log(
|
|
1195
|
+
" - Check authorization status (prints an authorize URL if not authorized):"
|
|
1196
|
+
);
|
|
1197
|
+
console.log(
|
|
1198
|
+
` zero connector status <type> --agent ${agent.agentId}`
|
|
1199
|
+
);
|
|
1188
1200
|
}
|
|
1189
1201
|
)
|
|
1190
1202
|
);
|
|
@@ -1963,16 +1975,28 @@ var statusCommand2 = new Command().name("status").description("Show detailed sta
|
|
|
1963
1975
|
}
|
|
1964
1976
|
if (agentCtx) {
|
|
1965
1977
|
const authorized = agentCtx.authorizedTypes.has(parseResult.data);
|
|
1966
|
-
const
|
|
1978
|
+
const isConnected = connector !== null;
|
|
1979
|
+
const agentLabel = agentCtx.displayName === agentCtx.agentId ? agentCtx.agentId : `${agentCtx.displayName} (${agentCtx.agentId})`;
|
|
1967
1980
|
console.log();
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1981
|
+
if (authorized) {
|
|
1982
|
+
console.log(
|
|
1983
|
+
`The ${parseResult.data} connector is authorized for agent ${agentLabel}.`
|
|
1984
|
+
);
|
|
1985
|
+
} else if (!isConnected) {
|
|
1986
|
+
const origin = await getPlatformOrigin();
|
|
1987
|
+
const url = `${origin}/connectors/${parseResult.data}/connect?agentId=${agentCtx.agentId}`;
|
|
1988
|
+
console.log(
|
|
1989
|
+
`The ${parseResult.data} connector is not connected. Once connected, it will be authorized for agent ${agentLabel}.`
|
|
1990
|
+
);
|
|
1991
|
+
console.log(`Connect it at: [Connect ${parseResult.data}](${url})`);
|
|
1992
|
+
} else {
|
|
1972
1993
|
const origin = await getPlatformOrigin();
|
|
1973
1994
|
const url = `${origin}/connectors/${parseResult.data}/authorize?agentId=${agentCtx.agentId}`;
|
|
1974
1995
|
console.log(
|
|
1975
|
-
|
|
1996
|
+
`The ${parseResult.data} connector is not authorized for agent ${agentLabel}.`
|
|
1997
|
+
);
|
|
1998
|
+
console.log(
|
|
1999
|
+
`Authorize it at: [Authorize ${parseResult.data}](${url})`
|
|
1976
2000
|
);
|
|
1977
2001
|
}
|
|
1978
2002
|
}
|
|
@@ -3233,7 +3257,10 @@ Deploying schedule for agent ${source_default.cyan(params.agentName)}...`
|
|
|
3233
3257
|
atTime: atTimeISO,
|
|
3234
3258
|
intervalSeconds: params.intervalSeconds,
|
|
3235
3259
|
timezone: params.timezone,
|
|
3236
|
-
prompt: params.prompt
|
|
3260
|
+
prompt: params.prompt,
|
|
3261
|
+
...params.existingEnabled !== void 0 && {
|
|
3262
|
+
enabled: params.existingEnabled
|
|
3263
|
+
}
|
|
3237
3264
|
});
|
|
3238
3265
|
return deployResult;
|
|
3239
3266
|
}
|
|
@@ -3387,7 +3414,8 @@ Notes:
|
|
|
3387
3414
|
atTime,
|
|
3388
3415
|
intervalSeconds,
|
|
3389
3416
|
timezone,
|
|
3390
|
-
prompt: promptText_
|
|
3417
|
+
prompt: promptText_,
|
|
3418
|
+
existingEnabled: existingSchedule?.enabled
|
|
3391
3419
|
});
|
|
3392
3420
|
displayDeployResult(scheduleName, deployResult);
|
|
3393
3421
|
const shouldPromptEnable = deployResult.created || existingSchedule !== void 0 && !existingSchedule.enabled;
|
|
@@ -6295,7 +6323,7 @@ function registerZeroCommands(prog, commands) {
|
|
|
6295
6323
|
var program = new Command();
|
|
6296
6324
|
program.name("zero").description(
|
|
6297
6325
|
"Zero CLI \u2014 interact with the zero platform from inside the sandbox"
|
|
6298
|
-
).version("9.
|
|
6326
|
+
).version("9.122.0").addHelpText(
|
|
6299
6327
|
"after",
|
|
6300
6328
|
`
|
|
6301
6329
|
Examples:
|