@vm0/cli 9.90.5 → 9.91.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-4ZDCMT63.js → chunk-KVC2MJ4I.js} +12 -17
- package/{chunk-4ZDCMT63.js.map → chunk-KVC2MJ4I.js.map} +1 -1
- package/index.js +10 -10
- package/package.json +1 -1
- package/zero.js +23 -18
- package/zero.js.map +1 -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-KVC2MJ4I.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.0"}`));
|
|
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.0");
|
|
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.0");
|
|
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.0", 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.0") {
|
|
4234
|
+
console.log(chalk33.green(`\u2713 Already up to date (${"9.91.0"})`));
|
|
4235
4235
|
return;
|
|
4236
4236
|
}
|
|
4237
4237
|
console.log(
|
|
4238
4238
|
chalk33.yellow(
|
|
4239
|
-
`Current version: ${"9.
|
|
4239
|
+
`Current version: ${"9.91.0"} -> 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.0"} 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.0");
|
|
4335
4335
|
program.addCommand(authCommand);
|
|
4336
4336
|
program.addCommand(infoCommand);
|
|
4337
4337
|
program.addCommand(composeCommand);
|
package/package.json
CHANGED
package/zero.js
CHANGED
|
@@ -86,7 +86,6 @@ import {
|
|
|
86
86
|
resolveZeroScheduleByAgent,
|
|
87
87
|
saveConfig,
|
|
88
88
|
sendSlackMessage,
|
|
89
|
-
setZeroAgentUserConnectors,
|
|
90
89
|
setZeroOrgModelProviderDefault,
|
|
91
90
|
setZeroOrgSecret,
|
|
92
91
|
setZeroOrgVariable,
|
|
@@ -101,7 +100,7 @@ import {
|
|
|
101
100
|
updateZeroUserPreferences,
|
|
102
101
|
upsertZeroOrgModelProvider,
|
|
103
102
|
withErrorHandler
|
|
104
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-KVC2MJ4I.js";
|
|
105
104
|
|
|
106
105
|
// src/zero.ts
|
|
107
106
|
import { Command as Command68 } from "commander";
|
|
@@ -1119,9 +1118,6 @@ import { Command as Command24 } from "commander";
|
|
|
1119
1118
|
import { readFileSync } from "fs";
|
|
1120
1119
|
import chalk21 from "chalk";
|
|
1121
1120
|
var createCommand = new Command24().name("create").description("Create a new zero agent").option(
|
|
1122
|
-
"--connectors <items>",
|
|
1123
|
-
"Comma-separated connector types to enable for this agent (e.g. github,linear)"
|
|
1124
|
-
).option(
|
|
1125
1121
|
"--skills <items>",
|
|
1126
1122
|
"Comma-separated custom skill names to attach (e.g. my-skill,other-skill)"
|
|
1127
1123
|
).option("--display-name <name>", "Agent display name").option("--description <text>", "Agent description").option(
|
|
@@ -1132,9 +1128,8 @@ var createCommand = new Command24().name("create").description("Create a new zer
|
|
|
1132
1128
|
`
|
|
1133
1129
|
Examples:
|
|
1134
1130
|
Minimal: zero agent create --display-name "My Agent"
|
|
1135
|
-
With connectors: zero agent create --connectors github,linear --display-name "My Agent"
|
|
1136
1131
|
With skills: zero agent create --skills my-skill,other-skill --display-name "My Agent"
|
|
1137
|
-
With instructions: zero agent create --
|
|
1132
|
+
With instructions: zero agent create --display-name "My Agent" --instructions-file ./instructions.md`
|
|
1138
1133
|
).action(
|
|
1139
1134
|
withErrorHandler(
|
|
1140
1135
|
async (options) => {
|
|
@@ -1147,21 +1142,12 @@ Examples:
|
|
|
1147
1142
|
sound: options.sound,
|
|
1148
1143
|
customSkills
|
|
1149
1144
|
});
|
|
1150
|
-
if (options.connectors) {
|
|
1151
|
-
const connectors = options.connectors.split(",").map((s) => {
|
|
1152
|
-
return s.trim();
|
|
1153
|
-
});
|
|
1154
|
-
await setZeroAgentUserConnectors(agent.agentId, connectors);
|
|
1155
|
-
}
|
|
1156
1145
|
if (options.instructionsFile) {
|
|
1157
1146
|
const content = readFileSync(options.instructionsFile, "utf-8");
|
|
1158
1147
|
await updateZeroAgentInstructions(agent.agentId, content);
|
|
1159
1148
|
}
|
|
1160
1149
|
console.log(chalk21.green(`\u2713 Agent "${agent.agentId}" created`));
|
|
1161
1150
|
console.log(` Agent ID: ${agent.agentId}`);
|
|
1162
|
-
if (options.connectors) {
|
|
1163
|
-
console.log(` Connectors: ${options.connectors}`);
|
|
1164
|
-
}
|
|
1165
1151
|
if (customSkills?.length) {
|
|
1166
1152
|
console.log(` Skills: ${customSkills.join(", ")}`);
|
|
1167
1153
|
}
|
|
@@ -1392,7 +1378,12 @@ Examples:
|
|
|
1392
1378
|
View your config: zero agent view $ZERO_AGENT_ID --instructions
|
|
1393
1379
|
Update description: zero agent edit $ZERO_AGENT_ID --description "new role"
|
|
1394
1380
|
Update tone: zero agent edit $ZERO_AGENT_ID --sound friendly
|
|
1395
|
-
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'`
|
|
1396
1387
|
);
|
|
1397
1388
|
|
|
1398
1389
|
// src/commands/zero/connector/index.ts
|
|
@@ -2160,6 +2151,19 @@ Notes:
|
|
|
2160
2151
|
} else {
|
|
2161
2152
|
console.log("No named permission was found covering this request.");
|
|
2162
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
|
+
}
|
|
2163
2167
|
console.log(
|
|
2164
2168
|
`Ask the user to allow it at: [Allow ${label} access](${url})`
|
|
2165
2169
|
);
|
|
@@ -3973,7 +3977,7 @@ function registerZeroCommands(prog, commands) {
|
|
|
3973
3977
|
var program = new Command68();
|
|
3974
3978
|
program.name("zero").description(
|
|
3975
3979
|
"Zero CLI \u2014 interact with the zero platform from inside the sandbox"
|
|
3976
|
-
).version("9.
|
|
3980
|
+
).version("9.91.0").addHelpText(
|
|
3977
3981
|
"after",
|
|
3978
3982
|
`
|
|
3979
3983
|
Examples:
|
|
@@ -3982,6 +3986,7 @@ Examples:
|
|
|
3982
3986
|
Send a Slack message? zero slack message send --help
|
|
3983
3987
|
Set up a schedule? zero schedule setup --help
|
|
3984
3988
|
Update yourself? zero agent --help
|
|
3989
|
+
Manage custom skills? zero skill --help
|
|
3985
3990
|
Check your identity? zero whoami`
|
|
3986
3991
|
);
|
|
3987
3992
|
if (process.argv[1]?.endsWith("zero.js") || process.argv[1]?.endsWith("zero.ts") || process.argv[1]?.endsWith("zero")) {
|