@vm0/cli 9.110.1 → 9.110.2
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-2XRAJ4IJ.js → chunk-W353Y7DH.js} +3 -3
- package/index.js +10 -10
- package/package.json +1 -1
- package/zero.js +8 -39
- package/zero.js.map +1 -1
- /package/{chunk-2XRAJ4IJ.js.map → chunk-W353Y7DH.js.map} +0 -0
|
@@ -34652,7 +34652,7 @@ if (DSN) {
|
|
|
34652
34652
|
Sentry.init({
|
|
34653
34653
|
dsn: DSN,
|
|
34654
34654
|
environment: process.env.SENTRY_ENVIRONMENT ?? "production",
|
|
34655
|
-
release: "9.110.
|
|
34655
|
+
release: "9.110.2",
|
|
34656
34656
|
sendDefaultPii: false,
|
|
34657
34657
|
tracesSampleRate: 0,
|
|
34658
34658
|
shutdownTimeout: 500,
|
|
@@ -34671,7 +34671,7 @@ if (DSN) {
|
|
|
34671
34671
|
}
|
|
34672
34672
|
});
|
|
34673
34673
|
Sentry.setContext("cli", {
|
|
34674
|
-
version: "9.110.
|
|
34674
|
+
version: "9.110.2",
|
|
34675
34675
|
command: process.argv.slice(2).join(" ")
|
|
34676
34676
|
});
|
|
34677
34677
|
Sentry.setContext("runtime", {
|
|
@@ -75954,4 +75954,4 @@ undici/lib/web/fetch/body.js:
|
|
|
75954
75954
|
undici/lib/web/websocket/frame.js:
|
|
75955
75955
|
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
|
|
75956
75956
|
*/
|
|
75957
|
-
//# sourceMappingURL=chunk-
|
|
75957
|
+
//# sourceMappingURL=chunk-W353Y7DH.js.map
|
package/index.js
CHANGED
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
source_default,
|
|
71
71
|
volumeConfigSchema,
|
|
72
72
|
withErrorHandler
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-W353Y7DH.js";
|
|
74
74
|
|
|
75
75
|
// src/index.ts
|
|
76
76
|
init_esm_shims();
|
|
@@ -463,7 +463,7 @@ function getConfigPath() {
|
|
|
463
463
|
return join(homedir(), ".vm0", "config.json");
|
|
464
464
|
}
|
|
465
465
|
var infoCommand = new Command().name("info").description("Display environment and debug information").action(async () => {
|
|
466
|
-
console.log(source_default.bold(`VM0 CLI v${"9.110.
|
|
466
|
+
console.log(source_default.bold(`VM0 CLI v${"9.110.2"}`));
|
|
467
467
|
console.log();
|
|
468
468
|
const config = await loadConfig();
|
|
469
469
|
const hasEnvToken = !!process.env.VM0_TOKEN;
|
|
@@ -4492,7 +4492,7 @@ var composeCommand = new Command().name("compose").description("Create or update
|
|
|
4492
4492
|
options.autoUpdate = false;
|
|
4493
4493
|
}
|
|
4494
4494
|
if (options.autoUpdate !== false) {
|
|
4495
|
-
await startSilentUpgrade("9.110.
|
|
4495
|
+
await startSilentUpgrade("9.110.2");
|
|
4496
4496
|
}
|
|
4497
4497
|
try {
|
|
4498
4498
|
let result;
|
|
@@ -4572,7 +4572,7 @@ var mainRunCommand = new Command().name("run").description("Run an agent").argum
|
|
|
4572
4572
|
withErrorHandler(
|
|
4573
4573
|
async (identifier, prompt, options) => {
|
|
4574
4574
|
if (options.autoUpdate !== false) {
|
|
4575
|
-
await startSilentUpgrade("9.110.
|
|
4575
|
+
await startSilentUpgrade("9.110.2");
|
|
4576
4576
|
}
|
|
4577
4577
|
const { name, version } = parseIdentifier(identifier);
|
|
4578
4578
|
let composeId;
|
|
@@ -6313,7 +6313,7 @@ var cookAction = new Command().name("cook").description("Quick start: prepare, c
|
|
|
6313
6313
|
withErrorHandler(
|
|
6314
6314
|
async (prompt, options) => {
|
|
6315
6315
|
if (options.autoUpdate !== false) {
|
|
6316
|
-
const shouldExit = await checkAndUpgrade("9.110.
|
|
6316
|
+
const shouldExit = await checkAndUpgrade("9.110.2", prompt);
|
|
6317
6317
|
if (shouldExit) {
|
|
6318
6318
|
process.exit(0);
|
|
6319
6319
|
}
|
|
@@ -7080,13 +7080,13 @@ var upgradeCommand = new Command().name("upgrade").description("Upgrade vm0 CLI
|
|
|
7080
7080
|
if (latestVersion === null) {
|
|
7081
7081
|
throw new Error("Could not check for updates. Please try again later.");
|
|
7082
7082
|
}
|
|
7083
|
-
if (latestVersion === "9.110.
|
|
7084
|
-
console.log(source_default.green(`\u2713 Already up to date (${"9.110.
|
|
7083
|
+
if (latestVersion === "9.110.2") {
|
|
7084
|
+
console.log(source_default.green(`\u2713 Already up to date (${"9.110.2"})`));
|
|
7085
7085
|
return;
|
|
7086
7086
|
}
|
|
7087
7087
|
console.log(
|
|
7088
7088
|
source_default.yellow(
|
|
7089
|
-
`Current version: ${"9.110.
|
|
7089
|
+
`Current version: ${"9.110.2"} -> Latest version: ${latestVersion}`
|
|
7090
7090
|
)
|
|
7091
7091
|
);
|
|
7092
7092
|
console.log();
|
|
@@ -7113,7 +7113,7 @@ var upgradeCommand = new Command().name("upgrade").description("Upgrade vm0 CLI
|
|
|
7113
7113
|
const success = await performUpgrade(packageManager);
|
|
7114
7114
|
if (success) {
|
|
7115
7115
|
console.log(
|
|
7116
|
-
source_default.green(`\u2713 Upgraded from ${"9.110.
|
|
7116
|
+
source_default.green(`\u2713 Upgraded from ${"9.110.2"} to ${latestVersion}`)
|
|
7117
7117
|
);
|
|
7118
7118
|
return;
|
|
7119
7119
|
}
|
|
@@ -7180,7 +7180,7 @@ var whoamiCommand = new Command().name("whoami").description("Show current ident
|
|
|
7180
7180
|
|
|
7181
7181
|
// src/index.ts
|
|
7182
7182
|
var program = new Command();
|
|
7183
|
-
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.110.
|
|
7183
|
+
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.110.2");
|
|
7184
7184
|
program.addCommand(authCommand);
|
|
7185
7185
|
program.addCommand(infoCommand);
|
|
7186
7186
|
program.addCommand(composeCommand);
|
package/package.json
CHANGED
package/zero.js
CHANGED
|
@@ -128,7 +128,7 @@ import {
|
|
|
128
128
|
upsertZeroOrgModelProvider,
|
|
129
129
|
withErrorHandler,
|
|
130
130
|
zeroAgentCustomSkillNameSchema
|
|
131
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-W353Y7DH.js";
|
|
132
132
|
|
|
133
133
|
// src/zero.ts
|
|
134
134
|
init_esm_shims();
|
|
@@ -5768,15 +5768,9 @@ function isErrnoException(err) {
|
|
|
5768
5768
|
var callCommand = new Command().name("call").description("Initiate an outbound phone call").argument(
|
|
5769
5769
|
"<to-number>",
|
|
5770
5770
|
"Phone number to call (E.164 format, e.g. +14155551234)"
|
|
5771
|
-
).option("--greeting <message>", "Initial greeting when the recipient answers").option(
|
|
5772
|
-
"--greeting-file <path>",
|
|
5773
|
-
"Read greeting from a file (use instead of --greeting)"
|
|
5774
5771
|
).option(
|
|
5775
|
-
"--system-prompt <
|
|
5776
|
-
"
|
|
5777
|
-
).option(
|
|
5778
|
-
"--prompt-file <path>",
|
|
5779
|
-
"Read system prompt from a file (use instead of --system-prompt)"
|
|
5772
|
+
"--system-prompt-file <path>",
|
|
5773
|
+
"File that defines the agent's persona and task context for this call"
|
|
5780
5774
|
).action(
|
|
5781
5775
|
withErrorHandler(
|
|
5782
5776
|
async (toNumber, options) => {
|
|
@@ -5788,38 +5782,14 @@ var callCommand = new Command().name("call").description("Initiate an outbound p
|
|
|
5788
5782
|
);
|
|
5789
5783
|
process.exit(1);
|
|
5790
5784
|
}
|
|
5791
|
-
|
|
5792
|
-
|
|
5793
|
-
source_default.red("Cannot use both --system-prompt and --prompt-file")
|
|
5794
|
-
);
|
|
5795
|
-
process.exit(1);
|
|
5796
|
-
}
|
|
5797
|
-
if (options.greeting && options.greetingFile) {
|
|
5798
|
-
console.error(
|
|
5799
|
-
source_default.red("Cannot use both --greeting and --greeting-file")
|
|
5800
|
-
);
|
|
5801
|
-
process.exit(1);
|
|
5802
|
-
}
|
|
5803
|
-
let systemPrompt = options.systemPrompt;
|
|
5804
|
-
if (options.promptFile) {
|
|
5805
|
-
try {
|
|
5806
|
-
systemPrompt = fs.readFileSync(options.promptFile, "utf-8");
|
|
5807
|
-
} catch (err) {
|
|
5808
|
-
if (isErrnoException(err) && err.code === "ENOENT") {
|
|
5809
|
-
console.error(source_default.red(`File not found: ${options.promptFile}`));
|
|
5810
|
-
process.exit(1);
|
|
5811
|
-
}
|
|
5812
|
-
throw err;
|
|
5813
|
-
}
|
|
5814
|
-
}
|
|
5815
|
-
let greeting = options.greeting;
|
|
5816
|
-
if (options.greetingFile) {
|
|
5785
|
+
let systemPrompt;
|
|
5786
|
+
if (options.systemPromptFile) {
|
|
5817
5787
|
try {
|
|
5818
|
-
|
|
5788
|
+
systemPrompt = fs.readFileSync(options.systemPromptFile, "utf-8");
|
|
5819
5789
|
} catch (err) {
|
|
5820
5790
|
if (isErrnoException(err) && err.code === "ENOENT") {
|
|
5821
5791
|
console.error(
|
|
5822
|
-
source_default.red(`File not found: ${options.
|
|
5792
|
+
source_default.red(`File not found: ${options.systemPromptFile}`)
|
|
5823
5793
|
);
|
|
5824
5794
|
process.exit(1);
|
|
5825
5795
|
}
|
|
@@ -5828,7 +5798,6 @@ var callCommand = new Command().name("call").description("Initiate an outbound p
|
|
|
5828
5798
|
}
|
|
5829
5799
|
const result = await createPhoneCall({
|
|
5830
5800
|
toNumber,
|
|
5831
|
-
greeting,
|
|
5832
5801
|
systemPrompt
|
|
5833
5802
|
});
|
|
5834
5803
|
console.log(source_default.green("Call initiated"));
|
|
@@ -6050,7 +6019,7 @@ function registerZeroCommands(prog, commands) {
|
|
|
6050
6019
|
var program = new Command();
|
|
6051
6020
|
program.name("zero").description(
|
|
6052
6021
|
"Zero CLI \u2014 interact with the zero platform from inside the sandbox"
|
|
6053
|
-
).version("9.110.
|
|
6022
|
+
).version("9.110.2").addHelpText(
|
|
6054
6023
|
"after",
|
|
6055
6024
|
`
|
|
6056
6025
|
Examples:
|