@vm0/cli 9.90.6 → 9.91.1
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-YVJVEAKR.js → chunk-35RHCGX2.js} +411 -5
- package/chunk-35RHCGX2.js.map +1 -0
- package/index.js +10 -10
- package/package.json +1 -1
- package/zero.js +23 -6
- package/zero.js.map +1 -1
- package/chunk-YVJVEAKR.js.map +0 -1
package/index.js
CHANGED
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
showNextSteps,
|
|
60
60
|
volumeConfigSchema,
|
|
61
61
|
withErrorHandler
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-35RHCGX2.js";
|
|
63
63
|
|
|
64
64
|
// src/index.ts
|
|
65
65
|
import { Command as Command44 } from "commander";
|
|
@@ -452,7 +452,7 @@ function getConfigPath() {
|
|
|
452
452
|
return join(homedir(), ".vm0", "config.json");
|
|
453
453
|
}
|
|
454
454
|
var infoCommand = new Command6().name("info").description("Display environment and debug information").action(async () => {
|
|
455
|
-
console.log(chalk3.bold(`VM0 CLI v${"9.
|
|
455
|
+
console.log(chalk3.bold(`VM0 CLI v${"9.91.1"}`));
|
|
456
456
|
console.log();
|
|
457
457
|
const config = await loadConfig();
|
|
458
458
|
const hasEnvToken = !!process.env.VM0_TOKEN;
|
|
@@ -1579,7 +1579,7 @@ var composeCommand = new Command7().name("compose").description("Create or updat
|
|
|
1579
1579
|
options.autoUpdate = false;
|
|
1580
1580
|
}
|
|
1581
1581
|
if (options.autoUpdate !== false) {
|
|
1582
|
-
await startSilentUpgrade("9.
|
|
1582
|
+
await startSilentUpgrade("9.91.1");
|
|
1583
1583
|
}
|
|
1584
1584
|
try {
|
|
1585
1585
|
let result;
|
|
@@ -1656,7 +1656,7 @@ var mainRunCommand = new Command8().name("run").description("Run an agent").argu
|
|
|
1656
1656
|
withErrorHandler(
|
|
1657
1657
|
async (identifier, prompt, options) => {
|
|
1658
1658
|
if (options.autoUpdate !== false) {
|
|
1659
|
-
await startSilentUpgrade("9.
|
|
1659
|
+
await startSilentUpgrade("9.91.1");
|
|
1660
1660
|
}
|
|
1661
1661
|
const { name, version } = parseIdentifier(identifier);
|
|
1662
1662
|
let composeId;
|
|
@@ -3472,7 +3472,7 @@ var cookAction = new Command35().name("cook").description("Quick start: prepare,
|
|
|
3472
3472
|
withErrorHandler(
|
|
3473
3473
|
async (prompt, options) => {
|
|
3474
3474
|
if (options.autoUpdate !== false) {
|
|
3475
|
-
const shouldExit = await checkAndUpgrade("9.
|
|
3475
|
+
const shouldExit = await checkAndUpgrade("9.91.1", prompt);
|
|
3476
3476
|
if (shouldExit) {
|
|
3477
3477
|
process.exit(0);
|
|
3478
3478
|
}
|
|
@@ -4230,13 +4230,13 @@ var upgradeCommand = new Command42().name("upgrade").description("Upgrade vm0 CL
|
|
|
4230
4230
|
if (latestVersion === null) {
|
|
4231
4231
|
throw new Error("Could not check for updates. Please try again later.");
|
|
4232
4232
|
}
|
|
4233
|
-
if (latestVersion === "9.
|
|
4234
|
-
console.log(chalk33.green(`\u2713 Already up to date (${"9.
|
|
4233
|
+
if (latestVersion === "9.91.1") {
|
|
4234
|
+
console.log(chalk33.green(`\u2713 Already up to date (${"9.91.1"})`));
|
|
4235
4235
|
return;
|
|
4236
4236
|
}
|
|
4237
4237
|
console.log(
|
|
4238
4238
|
chalk33.yellow(
|
|
4239
|
-
`Current version: ${"9.
|
|
4239
|
+
`Current version: ${"9.91.1"} -> Latest version: ${latestVersion}`
|
|
4240
4240
|
)
|
|
4241
4241
|
);
|
|
4242
4242
|
console.log();
|
|
@@ -4263,7 +4263,7 @@ var upgradeCommand = new Command42().name("upgrade").description("Upgrade vm0 CL
|
|
|
4263
4263
|
const success = await performUpgrade(packageManager);
|
|
4264
4264
|
if (success) {
|
|
4265
4265
|
console.log(
|
|
4266
|
-
chalk33.green(`\u2713 Upgraded from ${"9.
|
|
4266
|
+
chalk33.green(`\u2713 Upgraded from ${"9.91.1"} to ${latestVersion}`)
|
|
4267
4267
|
);
|
|
4268
4268
|
return;
|
|
4269
4269
|
}
|
|
@@ -4331,7 +4331,7 @@ var whoamiCommand = new Command43().name("whoami").description("Show current ide
|
|
|
4331
4331
|
|
|
4332
4332
|
// src/index.ts
|
|
4333
4333
|
var program = new Command44();
|
|
4334
|
-
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.
|
|
4334
|
+
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.91.1");
|
|
4335
4335
|
program.addCommand(authCommand);
|
|
4336
4336
|
program.addCommand(infoCommand);
|
|
4337
4337
|
program.addCommand(composeCommand);
|
package/package.json
CHANGED
package/zero.js
CHANGED
|
@@ -100,7 +100,7 @@ import {
|
|
|
100
100
|
updateZeroUserPreferences,
|
|
101
101
|
upsertZeroOrgModelProvider,
|
|
102
102
|
withErrorHandler
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-35RHCGX2.js";
|
|
104
104
|
|
|
105
105
|
// src/zero.ts
|
|
106
106
|
import { Command as Command68 } from "commander";
|
|
@@ -1378,7 +1378,12 @@ Examples:
|
|
|
1378
1378
|
View your config: zero agent view $ZERO_AGENT_ID --instructions
|
|
1379
1379
|
Update description: zero agent edit $ZERO_AGENT_ID --description "new role"
|
|
1380
1380
|
Update tone: zero agent edit $ZERO_AGENT_ID --sound friendly
|
|
1381
|
-
Update instructions: zero agent edit $ZERO_AGENT_ID --instructions-file <path
|
|
1381
|
+
Update instructions: zero agent edit $ZERO_AGENT_ID --instructions-file <path>
|
|
1382
|
+
Add a custom skill: zero agent edit $ZERO_AGENT_ID --add-skill my-skill
|
|
1383
|
+
Remove a skill: zero agent edit $ZERO_AGENT_ID --remove-skill my-skill
|
|
1384
|
+
|
|
1385
|
+
Notes:
|
|
1386
|
+
Manage custom skills with 'zero skill --help'`
|
|
1382
1387
|
);
|
|
1383
1388
|
|
|
1384
1389
|
// src/commands/zero/connector/index.ts
|
|
@@ -2146,6 +2151,19 @@ Notes:
|
|
|
2146
2151
|
} else {
|
|
2147
2152
|
console.log("No named permission was found covering this request.");
|
|
2148
2153
|
}
|
|
2154
|
+
if (firewallRef === "slack" && permissions[0] === "chat:write") {
|
|
2155
|
+
console.log("");
|
|
2156
|
+
console.log(
|
|
2157
|
+
"IMPORTANT: Granting chat:write allows sending messages AS THE USER's identity, not as a bot."
|
|
2158
|
+
);
|
|
2159
|
+
console.log(
|
|
2160
|
+
"Use `zero slack message send -c <channel> -t <text>` to send messages as the bot instead \u2014 this is the recommended approach for most use cases."
|
|
2161
|
+
);
|
|
2162
|
+
console.log(
|
|
2163
|
+
"Only request user approval below if acting as the user is specifically required."
|
|
2164
|
+
);
|
|
2165
|
+
console.log("");
|
|
2166
|
+
}
|
|
2149
2167
|
console.log(
|
|
2150
2168
|
`Ask the user to allow it at: [Allow ${label} access](${url})`
|
|
2151
2169
|
);
|
|
@@ -3087,9 +3105,7 @@ function formatTrigger(schedule) {
|
|
|
3087
3105
|
function printRunConfiguration(schedule) {
|
|
3088
3106
|
const statusText = schedule.enabled ? chalk35.green("enabled") : chalk35.yellow("disabled");
|
|
3089
3107
|
console.log(`${"Status:".padEnd(16)}${statusText}`);
|
|
3090
|
-
console.log(
|
|
3091
|
-
`${"Agent:".padEnd(16)}${schedule.agentId} ${chalk35.dim(`(${schedule.orgSlug})`)}`
|
|
3092
|
-
);
|
|
3108
|
+
console.log(`${"Agent:".padEnd(16)}${schedule.agentId}`);
|
|
3093
3109
|
const promptPreview = schedule.prompt.length > 60 ? schedule.prompt.slice(0, 57) + "..." : schedule.prompt;
|
|
3094
3110
|
console.log(`${"Prompt:".padEnd(16)}${chalk35.dim(promptPreview)}`);
|
|
3095
3111
|
if (schedule.vars && Object.keys(schedule.vars).length > 0) {
|
|
@@ -3959,7 +3975,7 @@ function registerZeroCommands(prog, commands) {
|
|
|
3959
3975
|
var program = new Command68();
|
|
3960
3976
|
program.name("zero").description(
|
|
3961
3977
|
"Zero CLI \u2014 interact with the zero platform from inside the sandbox"
|
|
3962
|
-
).version("9.
|
|
3978
|
+
).version("9.91.1").addHelpText(
|
|
3963
3979
|
"after",
|
|
3964
3980
|
`
|
|
3965
3981
|
Examples:
|
|
@@ -3968,6 +3984,7 @@ Examples:
|
|
|
3968
3984
|
Send a Slack message? zero slack message send --help
|
|
3969
3985
|
Set up a schedule? zero schedule setup --help
|
|
3970
3986
|
Update yourself? zero agent --help
|
|
3987
|
+
Manage custom skills? zero skill --help
|
|
3971
3988
|
Check your identity? zero whoami`
|
|
3972
3989
|
);
|
|
3973
3990
|
if (process.argv[1]?.endsWith("zero.js") || process.argv[1]?.endsWith("zero.ts") || process.argv[1]?.endsWith("zero")) {
|