@vm0/cli 9.131.0 → 9.131.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vm0/cli",
3
- "version": "9.131.0",
3
+ "version": "9.131.2",
4
4
  "description": "CLI application",
5
5
  "repository": {
6
6
  "type": "git",
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-65M57PU6.js";
128
+ } from "./chunk-A7EYNH3B.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.0").addHelpText(
6760
+ ).version("9.131.2").addHelpText(
6877
6761
  "after",
6878
6762
  `
6879
6763
  Examples: