@vm0/cli 9.127.3 → 9.129.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-IVIZPEM6.js → chunk-X7AZTK2E.js} +1889 -772
- package/{chunk-IVIZPEM6.js.map → chunk-X7AZTK2E.js.map} +1 -1
- package/index.js +9 -9
- package/package.json +1 -1
- package/zero.js +55 -6
- 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-X7AZTK2E.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.129.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.129.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.129.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.129.0") {
|
|
6400
|
+
console.log(source_default.green(`\u2713 Already up to date (${"9.129.0"})`));
|
|
6401
6401
|
return;
|
|
6402
6402
|
}
|
|
6403
6403
|
console.log(
|
|
6404
6404
|
source_default.yellow(
|
|
6405
|
-
`Current version: ${"9.
|
|
6405
|
+
`Current version: ${"9.129.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.129.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.129.0");
|
|
6500
6500
|
program.addCommand(authCommand);
|
|
6501
6501
|
program.addCommand(infoCommand);
|
|
6502
6502
|
program.addCommand(composeCommand);
|
package/package.json
CHANGED
package/zero.js
CHANGED
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
connectorTypeSchema,
|
|
17
17
|
createPhoneCall,
|
|
18
18
|
createSkill,
|
|
19
|
+
createVoiceChatTask,
|
|
19
20
|
createZeroAgent,
|
|
20
21
|
createZeroRun,
|
|
21
22
|
decodeCliTokenPayload,
|
|
@@ -55,6 +56,7 @@ import {
|
|
|
55
56
|
getSkill,
|
|
56
57
|
getToken,
|
|
57
58
|
getVoiceChatContextEvents,
|
|
59
|
+
getVoiceChatTask,
|
|
58
60
|
getZeroAgent,
|
|
59
61
|
getZeroAgentInstructions,
|
|
60
62
|
getZeroAgentUserConnectors,
|
|
@@ -77,6 +79,7 @@ import {
|
|
|
77
79
|
leaveZeroOrg,
|
|
78
80
|
listPhoneCalls,
|
|
79
81
|
listSkills,
|
|
82
|
+
listVoiceChatTasks,
|
|
80
83
|
listZeroAgents,
|
|
81
84
|
listZeroConnectors,
|
|
82
85
|
listZeroLogs,
|
|
@@ -127,7 +130,7 @@ import {
|
|
|
127
130
|
upsertZeroOrgModelProvider,
|
|
128
131
|
withErrorHandler,
|
|
129
132
|
zeroAgentCustomSkillNameSchema
|
|
130
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-X7AZTK2E.js";
|
|
131
134
|
import {
|
|
132
135
|
__toESM,
|
|
133
136
|
init_esm_shims
|
|
@@ -6434,14 +6437,59 @@ Examples:
|
|
|
6434
6437
|
// src/commands/zero/voice-chat/context/index.ts
|
|
6435
6438
|
var voiceChatContextCommand = new Command().name("context").description("Read and write voice-chat shared context").addCommand(voiceChatContextGetCommand).addCommand(voiceChatContextAppendCommand);
|
|
6436
6439
|
|
|
6440
|
+
// src/commands/zero/voice-chat/task/index.ts
|
|
6441
|
+
init_esm_shims();
|
|
6442
|
+
|
|
6443
|
+
// src/commands/zero/voice-chat/task/create.ts
|
|
6444
|
+
init_esm_shims();
|
|
6445
|
+
var voiceChatTaskCreateCommand = new Command().name("create").description("Dispatch a new task to a fresh Zero sandbox run").argument("<session-id>", "Voice-chat session ID").requiredOption("--prompt <prompt>", "Task prompt for the Tasker").action(
|
|
6446
|
+
withErrorHandler(async (sessionId, options) => {
|
|
6447
|
+
const task = await createVoiceChatTask(sessionId, {
|
|
6448
|
+
prompt: options.prompt
|
|
6449
|
+
});
|
|
6450
|
+
console.log(JSON.stringify(task, null, 2));
|
|
6451
|
+
})
|
|
6452
|
+
);
|
|
6453
|
+
|
|
6454
|
+
// src/commands/zero/voice-chat/task/get.ts
|
|
6455
|
+
init_esm_shims();
|
|
6456
|
+
var voiceChatTaskGetCommand = new Command().name("get").description("Get a single voice-chat task").argument("<session-id>", "Voice-chat session ID").argument("<task-id>", "Task ID").action(
|
|
6457
|
+
withErrorHandler(async (sessionId, taskId) => {
|
|
6458
|
+
const task = await getVoiceChatTask(sessionId, taskId);
|
|
6459
|
+
console.log(JSON.stringify(task, null, 2));
|
|
6460
|
+
})
|
|
6461
|
+
);
|
|
6462
|
+
|
|
6463
|
+
// src/commands/zero/voice-chat/task/list.ts
|
|
6464
|
+
init_esm_shims();
|
|
6465
|
+
var voiceChatTaskListCommand = new Command().name("list").description("List voice-chat tasks for a session").argument("<session-id>", "Voice-chat session ID").action(
|
|
6466
|
+
withErrorHandler(async (sessionId) => {
|
|
6467
|
+
const tasks = await listVoiceChatTasks(sessionId);
|
|
6468
|
+
const slim = tasks.map((t) => {
|
|
6469
|
+
return {
|
|
6470
|
+
id: t.id,
|
|
6471
|
+
status: t.status,
|
|
6472
|
+
createdAt: t.createdAt
|
|
6473
|
+
};
|
|
6474
|
+
});
|
|
6475
|
+
console.log(JSON.stringify(slim, null, 2));
|
|
6476
|
+
})
|
|
6477
|
+
);
|
|
6478
|
+
|
|
6479
|
+
// src/commands/zero/voice-chat/task/index.ts
|
|
6480
|
+
var voiceChatTaskCommand = new Command().name("task").description("Dispatch and inspect voice-chat Tasker runs").addCommand(voiceChatTaskCreateCommand).addCommand(voiceChatTaskGetCommand).addCommand(voiceChatTaskListCommand);
|
|
6481
|
+
|
|
6437
6482
|
// src/commands/zero/voice-chat/index.ts
|
|
6438
|
-
var zeroVoiceChatCommand = new Command().name("voice-chat").description("Read and write voice-chat shared context
|
|
6483
|
+
var zeroVoiceChatCommand = new Command().name("voice-chat").description("Read and write voice-chat shared context and tasks").addCommand(voiceChatContextCommand).addCommand(voiceChatTaskCommand).addHelpText(
|
|
6439
6484
|
"after",
|
|
6440
6485
|
`
|
|
6441
6486
|
Examples:
|
|
6442
6487
|
Read all events: zero voice-chat context get <session-id>
|
|
6443
6488
|
Read new events: zero voice-chat context get <session-id> --after 5
|
|
6444
|
-
Append an event: zero voice-chat context append <session-id> --source slow-brain --type directive --content "Done"
|
|
6489
|
+
Append an event: zero voice-chat context append <session-id> --source slow-brain --type directive --content "Done"
|
|
6490
|
+
Create a task: zero voice-chat task create <session-id> --prompt "Summarize the latest PR"
|
|
6491
|
+
List tasks: zero voice-chat task list <session-id>
|
|
6492
|
+
Get a task: zero voice-chat task get <session-id> <task-id>`
|
|
6445
6493
|
);
|
|
6446
6494
|
|
|
6447
6495
|
// src/commands/zero/web/index.ts
|
|
@@ -6488,7 +6536,7 @@ Notes:
|
|
|
6488
6536
|
|
|
6489
6537
|
// src/commands/zero/web/upload-file.ts
|
|
6490
6538
|
init_esm_shims();
|
|
6491
|
-
var uploadFileCommand2 = new Command().name("upload-file").description("Upload a local file and print a
|
|
6539
|
+
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(
|
|
6492
6540
|
"after",
|
|
6493
6541
|
`
|
|
6494
6542
|
Examples:
|
|
@@ -6501,7 +6549,8 @@ Output:
|
|
|
6501
6549
|
|
|
6502
6550
|
Notes:
|
|
6503
6551
|
- Authenticates via ZERO_TOKEN (requires file:write capability)
|
|
6504
|
-
- Returned URL is a
|
|
6552
|
+
- Returned URL is permanent (serves a short-lived signed redirect on access)
|
|
6553
|
+
- Safe to persist in chat messages or share over external channels
|
|
6505
6554
|
- Max file size: 1 GB
|
|
6506
6555
|
- Allowed types: png / jpeg / gif / webp / svg / mp4 / webm / mov / pdf / txt / csv / md / json`
|
|
6507
6556
|
).action(
|
|
@@ -6582,7 +6631,7 @@ function registerZeroCommands(prog, commands) {
|
|
|
6582
6631
|
var program = new Command();
|
|
6583
6632
|
program.name("zero").description(
|
|
6584
6633
|
"Zero CLI \u2014 interact with the zero platform from inside the sandbox"
|
|
6585
|
-
).version("9.
|
|
6634
|
+
).version("9.129.0").addHelpText(
|
|
6586
6635
|
"after",
|
|
6587
6636
|
`
|
|
6588
6637
|
Examples:
|