@vm0/cli 9.126.2 → 9.127.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-URQ7CYNV.js → chunk-GB3ETMZ2.js} +212 -305
- package/{chunk-URQ7CYNV.js.map → chunk-GB3ETMZ2.js.map} +1 -1
- package/index.js +9 -9
- package/package.json +1 -1
- package/zero.js +6 -34
- 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-GB3ETMZ2.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.127.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.127.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.127.0");
|
|
4385
4385
|
}
|
|
4386
4386
|
const { name, version } = parseIdentifier(identifier);
|
|
4387
4387
|
let composeId;
|
|
@@ -6396,13 +6396,13 @@ var upgradeCommand = new Command().name("upgrade").description("Upgrade vm0 CLI
|
|
|
6396
6396
|
if (latestVersion === null) {
|
|
6397
6397
|
throw new Error("Could not check for updates. Please try again later.");
|
|
6398
6398
|
}
|
|
6399
|
-
if (latestVersion === "9.
|
|
6400
|
-
console.log(source_default.green(`\u2713 Already up to date (${"9.
|
|
6399
|
+
if (latestVersion === "9.127.0") {
|
|
6400
|
+
console.log(source_default.green(`\u2713 Already up to date (${"9.127.0"})`));
|
|
6401
6401
|
return;
|
|
6402
6402
|
}
|
|
6403
6403
|
console.log(
|
|
6404
6404
|
source_default.yellow(
|
|
6405
|
-
`Current version: ${"9.
|
|
6405
|
+
`Current version: ${"9.127.0"} -> Latest version: ${latestVersion}`
|
|
6406
6406
|
)
|
|
6407
6407
|
);
|
|
6408
6408
|
console.log();
|
|
@@ -6429,7 +6429,7 @@ var upgradeCommand = new Command().name("upgrade").description("Upgrade vm0 CLI
|
|
|
6429
6429
|
const success = await performUpgrade(packageManager);
|
|
6430
6430
|
if (success) {
|
|
6431
6431
|
console.log(
|
|
6432
|
-
source_default.green(`\u2713 Upgraded from ${"9.
|
|
6432
|
+
source_default.green(`\u2713 Upgraded from ${"9.127.0"} to ${latestVersion}`)
|
|
6433
6433
|
);
|
|
6434
6434
|
return;
|
|
6435
6435
|
}
|
|
@@ -6496,7 +6496,7 @@ var whoamiCommand = new Command().name("whoami").description("Show current ident
|
|
|
6496
6496
|
|
|
6497
6497
|
// src/index.ts
|
|
6498
6498
|
var program = new Command();
|
|
6499
|
-
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.
|
|
6499
|
+
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.127.0");
|
|
6500
6500
|
program.addCommand(authCommand);
|
|
6501
6501
|
program.addCommand(infoCommand);
|
|
6502
6502
|
program.addCommand(composeCommand);
|
package/package.json
CHANGED
package/zero.js
CHANGED
|
@@ -12,7 +12,6 @@ import {
|
|
|
12
12
|
allowsCustomModel,
|
|
13
13
|
appendVoiceChatContextEvent,
|
|
14
14
|
completeSlackFileUpload,
|
|
15
|
-
completeVoiceChatPreparation,
|
|
16
15
|
configureGlobalProxyFromEnv,
|
|
17
16
|
connectorTypeSchema,
|
|
18
17
|
createPhoneCall,
|
|
@@ -128,7 +127,7 @@ import {
|
|
|
128
127
|
upsertZeroOrgModelProvider,
|
|
129
128
|
withErrorHandler,
|
|
130
129
|
zeroAgentCustomSkillNameSchema
|
|
131
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-GB3ETMZ2.js";
|
|
132
131
|
import {
|
|
133
132
|
__toESM,
|
|
134
133
|
init_esm_shims
|
|
@@ -6432,36 +6431,8 @@ Examples:
|
|
|
6432
6431
|
)
|
|
6433
6432
|
);
|
|
6434
6433
|
|
|
6435
|
-
// src/commands/zero/voice-chat/context/prepare.ts
|
|
6436
|
-
init_esm_shims();
|
|
6437
|
-
import { readFileSync as readFileSync10 } from "fs";
|
|
6438
|
-
var voiceChatContextPrepareCommand = new Command().name("prepare").description("Submit preparation directive content for a voice-chat run").option(
|
|
6439
|
-
"--content <content>",
|
|
6440
|
-
"Directive content (reads from stdin if not provided)"
|
|
6441
|
-
).addHelpText(
|
|
6442
|
-
"after",
|
|
6443
|
-
`
|
|
6444
|
-
Examples:
|
|
6445
|
-
With content: zero voice-chat context prepare --content "User is a backend engineer..."
|
|
6446
|
-
Pipe from stdin: echo "User is a backend engineer..." | zero voice-chat context prepare`
|
|
6447
|
-
).action(
|
|
6448
|
-
withErrorHandler(async (options) => {
|
|
6449
|
-
let content = options.content;
|
|
6450
|
-
if (!content && process.stdin.isTTY === false) {
|
|
6451
|
-
content = readFileSync10("/dev/stdin", "utf8").trim();
|
|
6452
|
-
}
|
|
6453
|
-
if (!content) {
|
|
6454
|
-
throw new Error(
|
|
6455
|
-
"Content is required. Provide --content or pipe via stdin."
|
|
6456
|
-
);
|
|
6457
|
-
}
|
|
6458
|
-
const data = await completeVoiceChatPreparation(content);
|
|
6459
|
-
console.log(JSON.stringify(data, null, 2));
|
|
6460
|
-
})
|
|
6461
|
-
);
|
|
6462
|
-
|
|
6463
6434
|
// src/commands/zero/voice-chat/context/index.ts
|
|
6464
|
-
var voiceChatContextCommand = new Command().name("context").description("Read and write voice-chat shared context").addCommand(voiceChatContextGetCommand).addCommand(voiceChatContextAppendCommand)
|
|
6435
|
+
var voiceChatContextCommand = new Command().name("context").description("Read and write voice-chat shared context").addCommand(voiceChatContextGetCommand).addCommand(voiceChatContextAppendCommand);
|
|
6465
6436
|
|
|
6466
6437
|
// src/commands/zero/voice-chat/index.ts
|
|
6467
6438
|
var zeroVoiceChatCommand = new Command().name("voice-chat").description("Read and write voice-chat shared context events").addCommand(voiceChatContextCommand).addHelpText(
|
|
@@ -6517,7 +6488,7 @@ Notes:
|
|
|
6517
6488
|
|
|
6518
6489
|
// src/commands/zero/web/upload-file.ts
|
|
6519
6490
|
init_esm_shims();
|
|
6520
|
-
var uploadFileCommand2 = new Command().name("upload-file").description("Upload a local file and print a
|
|
6491
|
+
var uploadFileCommand2 = new Command().name("upload-file").description("Upload a local file and print a permanent URL").requiredOption("-f, --file <path>", "Local file path to upload").option("--content-type <mime>", "Override inferred content type").addHelpText(
|
|
6521
6492
|
"after",
|
|
6522
6493
|
`
|
|
6523
6494
|
Examples:
|
|
@@ -6530,7 +6501,8 @@ Output:
|
|
|
6530
6501
|
|
|
6531
6502
|
Notes:
|
|
6532
6503
|
- Authenticates via ZERO_TOKEN (requires file:write capability)
|
|
6533
|
-
- Returned URL is a
|
|
6504
|
+
- Returned URL is permanent (serves a short-lived signed redirect on access)
|
|
6505
|
+
- Safe to persist in chat messages or share over external channels
|
|
6534
6506
|
- Max file size: 1 GB
|
|
6535
6507
|
- Allowed types: png / jpeg / gif / webp / svg / mp4 / webm / mov / pdf / txt / csv / md / json`
|
|
6536
6508
|
).action(
|
|
@@ -6611,7 +6583,7 @@ function registerZeroCommands(prog, commands) {
|
|
|
6611
6583
|
var program = new Command();
|
|
6612
6584
|
program.name("zero").description(
|
|
6613
6585
|
"Zero CLI \u2014 interact with the zero platform from inside the sandbox"
|
|
6614
|
-
).version("9.
|
|
6586
|
+
).version("9.127.0").addHelpText(
|
|
6615
6587
|
"after",
|
|
6616
6588
|
`
|
|
6617
6589
|
Examples:
|