@vm0/cli 9.111.15 → 9.112.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-77Z5GRTD.js → chunk-UDOI6YFP.js} +166 -107
- package/chunk-UDOI6YFP.js.map +1 -0
- package/index.js +10 -10
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/zero.js +32 -3
- package/zero.js.map +1 -1
- package/chunk-77Z5GRTD.js.map +0 -1
package/package.json
CHANGED
package/zero.js
CHANGED
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
allowsCustomModel,
|
|
14
14
|
appendVoiceChatContextEvent,
|
|
15
15
|
completeSlackFileUpload,
|
|
16
|
+
completeVoiceChatPreparation,
|
|
16
17
|
configureGlobalProxyFromEnv,
|
|
17
18
|
connectorTypeSchema,
|
|
18
19
|
createPhoneCall,
|
|
@@ -126,7 +127,7 @@ import {
|
|
|
126
127
|
upsertZeroOrgModelProvider,
|
|
127
128
|
withErrorHandler,
|
|
128
129
|
zeroAgentCustomSkillNameSchema
|
|
129
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-UDOI6YFP.js";
|
|
130
131
|
|
|
131
132
|
// src/zero.ts
|
|
132
133
|
init_esm_shims();
|
|
@@ -5917,8 +5918,36 @@ Examples:
|
|
|
5917
5918
|
)
|
|
5918
5919
|
);
|
|
5919
5920
|
|
|
5921
|
+
// src/commands/zero/voice-chat/context/prepare.ts
|
|
5922
|
+
init_esm_shims();
|
|
5923
|
+
import { readFileSync as readFileSync8 } from "fs";
|
|
5924
|
+
var voiceChatContextPrepareCommand = new Command().name("prepare").description("Submit preparation directive content for a voice-chat run").option(
|
|
5925
|
+
"--content <content>",
|
|
5926
|
+
"Directive content (reads from stdin if not provided)"
|
|
5927
|
+
).addHelpText(
|
|
5928
|
+
"after",
|
|
5929
|
+
`
|
|
5930
|
+
Examples:
|
|
5931
|
+
With content: zero voice-chat context prepare --content "User is a backend engineer..."
|
|
5932
|
+
Pipe from stdin: echo "User is a backend engineer..." | zero voice-chat context prepare`
|
|
5933
|
+
).action(
|
|
5934
|
+
withErrorHandler(async (options) => {
|
|
5935
|
+
let content = options.content;
|
|
5936
|
+
if (!content && process.stdin.isTTY === false) {
|
|
5937
|
+
content = readFileSync8("/dev/stdin", "utf8").trim();
|
|
5938
|
+
}
|
|
5939
|
+
if (!content) {
|
|
5940
|
+
throw new Error(
|
|
5941
|
+
"Content is required. Provide --content or pipe via stdin."
|
|
5942
|
+
);
|
|
5943
|
+
}
|
|
5944
|
+
const data = await completeVoiceChatPreparation(content);
|
|
5945
|
+
console.log(JSON.stringify(data, null, 2));
|
|
5946
|
+
})
|
|
5947
|
+
);
|
|
5948
|
+
|
|
5920
5949
|
// src/commands/zero/voice-chat/context/index.ts
|
|
5921
|
-
var voiceChatContextCommand = new Command().name("context").description("Read and write voice-chat shared context").addCommand(voiceChatContextGetCommand).addCommand(voiceChatContextAppendCommand);
|
|
5950
|
+
var voiceChatContextCommand = new Command().name("context").description("Read and write voice-chat shared context").addCommand(voiceChatContextGetCommand).addCommand(voiceChatContextAppendCommand).addCommand(voiceChatContextPrepareCommand);
|
|
5922
5951
|
|
|
5923
5952
|
// src/commands/zero/voice-chat/index.ts
|
|
5924
5953
|
var zeroVoiceChatCommand = new Command().name("voice-chat").description("Read and write voice-chat shared context events").addCommand(voiceChatContextCommand).addHelpText(
|
|
@@ -5982,7 +6011,7 @@ function registerZeroCommands(prog, commands) {
|
|
|
5982
6011
|
var program = new Command();
|
|
5983
6012
|
program.name("zero").description(
|
|
5984
6013
|
"Zero CLI \u2014 interact with the zero platform from inside the sandbox"
|
|
5985
|
-
).version("9.
|
|
6014
|
+
).version("9.112.0").addHelpText(
|
|
5986
6015
|
"after",
|
|
5987
6016
|
`
|
|
5988
6017
|
Examples:
|