@vm0/cli 9.90.4 → 9.90.6
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-XQKSWAGW.js → chunk-YVJVEAKR.js} +17 -17
- package/{chunk-XQKSWAGW.js.map → chunk-YVJVEAKR.js.map} +1 -1
- package/index.js +10 -10
- package/package.json +1 -1
- package/zero.js +3 -17
- 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-YVJVEAKR.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.90.
|
|
455
|
+
console.log(chalk3.bold(`VM0 CLI v${"9.90.6"}`));
|
|
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.90.
|
|
1582
|
+
await startSilentUpgrade("9.90.6");
|
|
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.90.
|
|
1659
|
+
await startSilentUpgrade("9.90.6");
|
|
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.90.
|
|
3475
|
+
const shouldExit = await checkAndUpgrade("9.90.6", 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.90.
|
|
4234
|
-
console.log(chalk33.green(`\u2713 Already up to date (${"9.90.
|
|
4233
|
+
if (latestVersion === "9.90.6") {
|
|
4234
|
+
console.log(chalk33.green(`\u2713 Already up to date (${"9.90.6"})`));
|
|
4235
4235
|
return;
|
|
4236
4236
|
}
|
|
4237
4237
|
console.log(
|
|
4238
4238
|
chalk33.yellow(
|
|
4239
|
-
`Current version: ${"9.90.
|
|
4239
|
+
`Current version: ${"9.90.6"} -> 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.90.
|
|
4266
|
+
chalk33.green(`\u2713 Upgraded from ${"9.90.6"} 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.90.
|
|
4334
|
+
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.90.6");
|
|
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-YVJVEAKR.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
|
}
|
|
@@ -3973,7 +3959,7 @@ function registerZeroCommands(prog, commands) {
|
|
|
3973
3959
|
var program = new Command68();
|
|
3974
3960
|
program.name("zero").description(
|
|
3975
3961
|
"Zero CLI \u2014 interact with the zero platform from inside the sandbox"
|
|
3976
|
-
).version("9.90.
|
|
3962
|
+
).version("9.90.6").addHelpText(
|
|
3977
3963
|
"after",
|
|
3978
3964
|
`
|
|
3979
3965
|
Examples:
|