@vm0/cli 9.131.1 → 9.131.3
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-BS3XRRR3.js → chunk-REI7AIMY.js} +221 -646
- package/{chunk-BS3XRRR3.js.map → chunk-REI7AIMY.js.map} +1 -1
- package/index.js +9 -9
- package/package.json +1 -1
- package/zero.js +2 -118
- 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-REI7AIMY.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.131.
|
|
401
|
+
console.log(source_default.bold(`VM0 CLI v${"9.131.3"}`));
|
|
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.131.
|
|
4294
|
+
await startSilentUpgrade("9.131.3");
|
|
4295
4295
|
}
|
|
4296
4296
|
try {
|
|
4297
4297
|
let result;
|
|
@@ -4383,7 +4383,7 @@ var mainRunCommand = new Command().name("run").description("Run an agent").argum
|
|
|
4383
4383
|
withErrorHandler(
|
|
4384
4384
|
async (identifier, prompt, options) => {
|
|
4385
4385
|
if (options.autoUpdate !== false) {
|
|
4386
|
-
await startSilentUpgrade("9.131.
|
|
4386
|
+
await startSilentUpgrade("9.131.3");
|
|
4387
4387
|
}
|
|
4388
4388
|
const { name, version } = parseIdentifier(identifier);
|
|
4389
4389
|
let composeId;
|
|
@@ -6156,13 +6156,13 @@ var upgradeCommand = new Command().name("upgrade").description("Upgrade vm0 CLI
|
|
|
6156
6156
|
if (latestVersion === null) {
|
|
6157
6157
|
throw new Error("Could not check for updates. Please try again later.");
|
|
6158
6158
|
}
|
|
6159
|
-
if (latestVersion === "9.131.
|
|
6160
|
-
console.log(source_default.green(`\u2713 Already up to date (${"9.131.
|
|
6159
|
+
if (latestVersion === "9.131.3") {
|
|
6160
|
+
console.log(source_default.green(`\u2713 Already up to date (${"9.131.3"})`));
|
|
6161
6161
|
return;
|
|
6162
6162
|
}
|
|
6163
6163
|
console.log(
|
|
6164
6164
|
source_default.yellow(
|
|
6165
|
-
`Current version: ${"9.131.
|
|
6165
|
+
`Current version: ${"9.131.3"} -> Latest version: ${latestVersion}`
|
|
6166
6166
|
)
|
|
6167
6167
|
);
|
|
6168
6168
|
console.log();
|
|
@@ -6189,7 +6189,7 @@ var upgradeCommand = new Command().name("upgrade").description("Upgrade vm0 CLI
|
|
|
6189
6189
|
const success = await performUpgrade(packageManager);
|
|
6190
6190
|
if (success) {
|
|
6191
6191
|
console.log(
|
|
6192
|
-
source_default.green(`\u2713 Upgraded from ${"9.131.
|
|
6192
|
+
source_default.green(`\u2713 Upgraded from ${"9.131.3"} to ${latestVersion}`)
|
|
6193
6193
|
);
|
|
6194
6194
|
return;
|
|
6195
6195
|
}
|
|
@@ -6256,7 +6256,7 @@ var whoamiCommand = new Command().name("whoami").description("Show current ident
|
|
|
6256
6256
|
|
|
6257
6257
|
// src/index.ts
|
|
6258
6258
|
var program = new Command();
|
|
6259
|
-
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.131.
|
|
6259
|
+
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.131.3");
|
|
6260
6260
|
program.addCommand(authCommand);
|
|
6261
6261
|
program.addCommand(infoCommand);
|
|
6262
6262
|
program.addCommand(composeCommand);
|
package/package.json
CHANGED
package/zero.js
CHANGED
|
@@ -10,13 +10,11 @@ import {
|
|
|
10
10
|
MODEL_PROVIDER_TYPES,
|
|
11
11
|
Option,
|
|
12
12
|
allowsCustomModel,
|
|
13
|
-
appendVoiceChatContextEvent,
|
|
14
13
|
completeSlackFileUpload,
|
|
15
14
|
configureGlobalProxyFromEnv,
|
|
16
15
|
connectorTypeSchema,
|
|
17
16
|
createPhoneCall,
|
|
18
17
|
createSkill,
|
|
19
|
-
createVoiceChatTask,
|
|
20
18
|
createZeroAgent,
|
|
21
19
|
createZeroRun,
|
|
22
20
|
decodeCliTokenPayload,
|
|
@@ -55,8 +53,6 @@ import {
|
|
|
55
53
|
getSelectableProviderTypes,
|
|
56
54
|
getSkill,
|
|
57
55
|
getToken,
|
|
58
|
-
getVoiceChatContextEvents,
|
|
59
|
-
getVoiceChatTask,
|
|
60
56
|
getZeroAgent,
|
|
61
57
|
getZeroAgentInstructions,
|
|
62
58
|
getZeroAgentUserConnectors,
|
|
@@ -79,7 +75,6 @@ import {
|
|
|
79
75
|
leaveZeroOrg,
|
|
80
76
|
listPhoneCalls,
|
|
81
77
|
listSkills,
|
|
82
|
-
listVoiceChatTasks,
|
|
83
78
|
listZeroAgents,
|
|
84
79
|
listZeroConnectors,
|
|
85
80
|
listZeroLogs,
|
|
@@ -130,7 +125,7 @@ import {
|
|
|
130
125
|
upsertZeroOrgModelProvider,
|
|
131
126
|
withErrorHandler,
|
|
132
127
|
zeroAgentCustomSkillNameSchema
|
|
133
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-REI7AIMY.js";
|
|
134
129
|
import {
|
|
135
130
|
__toESM,
|
|
136
131
|
init_esm_shims
|
|
@@ -6625,115 +6620,6 @@ var recordCommand = new Command().name("record").description("View phone call hi
|
|
|
6625
6620
|
// src/commands/zero/phone/index.ts
|
|
6626
6621
|
var zeroPhoneCommand = new Command().name("phone").description("Make and manage phone calls").addCommand(callCommand).addCommand(recordCommand);
|
|
6627
6622
|
|
|
6628
|
-
// src/commands/zero/voice-chat/index.ts
|
|
6629
|
-
init_esm_shims();
|
|
6630
|
-
|
|
6631
|
-
// src/commands/zero/voice-chat/context/index.ts
|
|
6632
|
-
init_esm_shims();
|
|
6633
|
-
|
|
6634
|
-
// src/commands/zero/voice-chat/context/get.ts
|
|
6635
|
-
init_esm_shims();
|
|
6636
|
-
var voiceChatContextGetCommand = new Command().name("get").description("Read shared context events for a voice-chat session").argument("<session-id>", "Voice-chat session ID").option(
|
|
6637
|
-
"--after <seq>",
|
|
6638
|
-
"Only return events after this sequence number",
|
|
6639
|
-
parseInt
|
|
6640
|
-
).action(
|
|
6641
|
-
withErrorHandler(async (sessionId, options) => {
|
|
6642
|
-
const data = await getVoiceChatContextEvents(sessionId, options.after);
|
|
6643
|
-
console.log(JSON.stringify(data, null, 2));
|
|
6644
|
-
})
|
|
6645
|
-
);
|
|
6646
|
-
|
|
6647
|
-
// src/commands/zero/voice-chat/context/append.ts
|
|
6648
|
-
init_esm_shims();
|
|
6649
|
-
import { readFileSync as readFileSync9 } from "fs";
|
|
6650
|
-
var voiceChatContextAppendCommand = new Command().name("append").description("Append an event to voice-chat shared context").argument("<session-id>", "Voice-chat session ID").requiredOption(
|
|
6651
|
-
"--source <source>",
|
|
6652
|
-
"Event source (system|user|fast-brain|slow-brain)"
|
|
6653
|
-
).requiredOption("--type <type>", "Event type").option(
|
|
6654
|
-
"--content <content>",
|
|
6655
|
-
"Event content (reads from stdin if not provided)"
|
|
6656
|
-
).addHelpText(
|
|
6657
|
-
"after",
|
|
6658
|
-
`
|
|
6659
|
-
Examples:
|
|
6660
|
-
Append with content: zero voice-chat context append <session-id> --source slow-brain --type directive --content "Done"
|
|
6661
|
-
Pipe from stdin: echo "Done" | zero voice-chat context append <session-id> --source slow-brain --type directive`
|
|
6662
|
-
).action(
|
|
6663
|
-
withErrorHandler(
|
|
6664
|
-
async (sessionId, options) => {
|
|
6665
|
-
let content = options.content;
|
|
6666
|
-
if (!content && process.stdin.isTTY === false) {
|
|
6667
|
-
content = readFileSync9("/dev/stdin", "utf8").trim();
|
|
6668
|
-
}
|
|
6669
|
-
const data = await appendVoiceChatContextEvent(sessionId, {
|
|
6670
|
-
source: options.source,
|
|
6671
|
-
type: options.type,
|
|
6672
|
-
content
|
|
6673
|
-
});
|
|
6674
|
-
console.log(JSON.stringify(data, null, 2));
|
|
6675
|
-
}
|
|
6676
|
-
)
|
|
6677
|
-
);
|
|
6678
|
-
|
|
6679
|
-
// src/commands/zero/voice-chat/context/index.ts
|
|
6680
|
-
var voiceChatContextCommand = new Command().name("context").description("Read and write voice-chat shared context").addCommand(voiceChatContextGetCommand).addCommand(voiceChatContextAppendCommand);
|
|
6681
|
-
|
|
6682
|
-
// src/commands/zero/voice-chat/task/index.ts
|
|
6683
|
-
init_esm_shims();
|
|
6684
|
-
|
|
6685
|
-
// src/commands/zero/voice-chat/task/create.ts
|
|
6686
|
-
init_esm_shims();
|
|
6687
|
-
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(
|
|
6688
|
-
withErrorHandler(async (sessionId, options) => {
|
|
6689
|
-
const task = await createVoiceChatTask(sessionId, {
|
|
6690
|
-
prompt: options.prompt
|
|
6691
|
-
});
|
|
6692
|
-
console.log(JSON.stringify(task, null, 2));
|
|
6693
|
-
})
|
|
6694
|
-
);
|
|
6695
|
-
|
|
6696
|
-
// src/commands/zero/voice-chat/task/get.ts
|
|
6697
|
-
init_esm_shims();
|
|
6698
|
-
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(
|
|
6699
|
-
withErrorHandler(async (sessionId, taskId) => {
|
|
6700
|
-
const task = await getVoiceChatTask(sessionId, taskId);
|
|
6701
|
-
console.log(JSON.stringify(task, null, 2));
|
|
6702
|
-
})
|
|
6703
|
-
);
|
|
6704
|
-
|
|
6705
|
-
// src/commands/zero/voice-chat/task/list.ts
|
|
6706
|
-
init_esm_shims();
|
|
6707
|
-
var voiceChatTaskListCommand = new Command().name("list").description("List voice-chat tasks for a session").argument("<session-id>", "Voice-chat session ID").action(
|
|
6708
|
-
withErrorHandler(async (sessionId) => {
|
|
6709
|
-
const tasks = await listVoiceChatTasks(sessionId);
|
|
6710
|
-
const slim = tasks.map((t) => {
|
|
6711
|
-
return {
|
|
6712
|
-
id: t.id,
|
|
6713
|
-
status: t.status,
|
|
6714
|
-
createdAt: t.createdAt
|
|
6715
|
-
};
|
|
6716
|
-
});
|
|
6717
|
-
console.log(JSON.stringify(slim, null, 2));
|
|
6718
|
-
})
|
|
6719
|
-
);
|
|
6720
|
-
|
|
6721
|
-
// src/commands/zero/voice-chat/task/index.ts
|
|
6722
|
-
var voiceChatTaskCommand = new Command().name("task").description("Dispatch and inspect voice-chat Tasker runs").addCommand(voiceChatTaskCreateCommand).addCommand(voiceChatTaskGetCommand).addCommand(voiceChatTaskListCommand);
|
|
6723
|
-
|
|
6724
|
-
// src/commands/zero/voice-chat/index.ts
|
|
6725
|
-
var zeroVoiceChatCommand = new Command().name("voice-chat").description("Read and write voice-chat shared context and tasks").addCommand(voiceChatContextCommand).addCommand(voiceChatTaskCommand).addHelpText(
|
|
6726
|
-
"after",
|
|
6727
|
-
`
|
|
6728
|
-
Examples:
|
|
6729
|
-
Read all events: zero voice-chat context get <session-id>
|
|
6730
|
-
Read new events: zero voice-chat context get <session-id> --after 5
|
|
6731
|
-
Append an event: zero voice-chat context append <session-id> --source slow-brain --type directive --content "Done"
|
|
6732
|
-
Create a task: zero voice-chat task create <session-id> --prompt "Summarize the latest PR"
|
|
6733
|
-
List tasks: zero voice-chat task list <session-id>
|
|
6734
|
-
Get a task: zero voice-chat task get <session-id> <task-id>`
|
|
6735
|
-
);
|
|
6736
|
-
|
|
6737
6623
|
// src/commands/zero/web/index.ts
|
|
6738
6624
|
init_esm_shims();
|
|
6739
6625
|
|
|
@@ -6831,7 +6717,6 @@ var COMMAND_CAPABILITY_MAP = {
|
|
|
6831
6717
|
"developer-support": null,
|
|
6832
6718
|
"computer-use": "computer-use:write",
|
|
6833
6719
|
phone: "phone:write",
|
|
6834
|
-
"voice-chat": "voice-chat:write",
|
|
6835
6720
|
web: null
|
|
6836
6721
|
};
|
|
6837
6722
|
var DEFAULT_COMMANDS = [
|
|
@@ -6853,7 +6738,6 @@ var DEFAULT_COMMANDS = [
|
|
|
6853
6738
|
zeroDeveloperSupportCommand,
|
|
6854
6739
|
zeroComputerUseCommand,
|
|
6855
6740
|
zeroPhoneCommand,
|
|
6856
|
-
zeroVoiceChatCommand,
|
|
6857
6741
|
zeroWebCommand
|
|
6858
6742
|
];
|
|
6859
6743
|
function shouldHideCommand(name, payload) {
|
|
@@ -6873,7 +6757,7 @@ function registerZeroCommands(prog, commands) {
|
|
|
6873
6757
|
var program = new Command();
|
|
6874
6758
|
program.name("zero").description(
|
|
6875
6759
|
"Zero CLI \u2014 interact with the zero platform from inside the sandbox"
|
|
6876
|
-
).version("9.131.
|
|
6760
|
+
).version("9.131.3").addHelpText(
|
|
6877
6761
|
"after",
|
|
6878
6762
|
`
|
|
6879
6763
|
Examples:
|