@vm0/cli 9.206.0 → 9.206.1
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-QMWTDWXH.js → chunk-BX6IGPXR.js} +228 -191
- package/{chunk-QMWTDWXH.js.map → chunk-BX6IGPXR.js.map} +1 -1
- package/index.js +9 -9
- package/package.json +1 -1
- package/zero.js +21 -29
- package/zero.js.map +1 -1
package/index.js
CHANGED
|
@@ -74,7 +74,7 @@ import {
|
|
|
74
74
|
uo,
|
|
75
75
|
volumeConfigSchema,
|
|
76
76
|
withErrorHandler
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-BX6IGPXR.js";
|
|
78
78
|
import {
|
|
79
79
|
external_exports
|
|
80
80
|
} from "./chunk-A7UBSZER.js";
|
|
@@ -411,7 +411,7 @@ function getConfigPath() {
|
|
|
411
411
|
return join(os.homedir(), ".vm0", "config.json");
|
|
412
412
|
}
|
|
413
413
|
var infoCommand = new Command().name("info").description("Display environment and debug information").action(async () => {
|
|
414
|
-
console.log(source_default.bold(`VM0 CLI v${"9.206.
|
|
414
|
+
console.log(source_default.bold(`VM0 CLI v${"9.206.1"}`));
|
|
415
415
|
console.log();
|
|
416
416
|
const config = await loadConfig();
|
|
417
417
|
const hasEnvToken = !!process.env.VM0_TOKEN;
|
|
@@ -1113,7 +1113,7 @@ var composeCommand = new Command().name("compose").description("Create or update
|
|
|
1113
1113
|
options.autoUpdate = false;
|
|
1114
1114
|
}
|
|
1115
1115
|
if (options.autoUpdate !== false) {
|
|
1116
|
-
await startSilentUpgrade("9.206.
|
|
1116
|
+
await startSilentUpgrade("9.206.1");
|
|
1117
1117
|
}
|
|
1118
1118
|
try {
|
|
1119
1119
|
const { config, agentName, agent, basePath } = await loadAndValidateConfig(resolvedConfigFile);
|
|
@@ -1210,7 +1210,7 @@ var mainRunCommand = new Command().name("run").description("Run an agent").argum
|
|
|
1210
1210
|
withErrorHandler(
|
|
1211
1211
|
async (identifier, prompt, options) => {
|
|
1212
1212
|
if (options.autoUpdate !== false) {
|
|
1213
|
-
await startSilentUpgrade("9.206.
|
|
1213
|
+
await startSilentUpgrade("9.206.1");
|
|
1214
1214
|
}
|
|
1215
1215
|
const { name, version } = parseIdentifier(identifier);
|
|
1216
1216
|
let composeId;
|
|
@@ -3016,13 +3016,13 @@ var upgradeCommand = new Command().name("upgrade").description("Upgrade vm0 CLI
|
|
|
3016
3016
|
if (latestVersion === null) {
|
|
3017
3017
|
throw new Error("Could not check for updates. Please try again later.");
|
|
3018
3018
|
}
|
|
3019
|
-
if (latestVersion === "9.206.
|
|
3020
|
-
console.log(source_default.green(`\u2713 Already up to date (${"9.206.
|
|
3019
|
+
if (latestVersion === "9.206.1") {
|
|
3020
|
+
console.log(source_default.green(`\u2713 Already up to date (${"9.206.1"})`));
|
|
3021
3021
|
return;
|
|
3022
3022
|
}
|
|
3023
3023
|
console.log(
|
|
3024
3024
|
source_default.yellow(
|
|
3025
|
-
`Current version: ${"9.206.
|
|
3025
|
+
`Current version: ${"9.206.1"} -> Latest version: ${latestVersion}`
|
|
3026
3026
|
)
|
|
3027
3027
|
);
|
|
3028
3028
|
console.log();
|
|
@@ -3049,7 +3049,7 @@ var upgradeCommand = new Command().name("upgrade").description("Upgrade vm0 CLI
|
|
|
3049
3049
|
const success = await performUpgrade(packageManager);
|
|
3050
3050
|
if (success) {
|
|
3051
3051
|
console.log(
|
|
3052
|
-
source_default.green(`\u2713 Upgraded from ${"9.206.
|
|
3052
|
+
source_default.green(`\u2713 Upgraded from ${"9.206.1"} to ${latestVersion}`)
|
|
3053
3053
|
);
|
|
3054
3054
|
return;
|
|
3055
3055
|
}
|
|
@@ -3116,7 +3116,7 @@ var whoamiCommand = new Command().name("whoami").description("Show current ident
|
|
|
3116
3116
|
|
|
3117
3117
|
// src/index.ts
|
|
3118
3118
|
var program = new Command();
|
|
3119
|
-
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.206.
|
|
3119
|
+
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.206.1");
|
|
3120
3120
|
program.addCommand(authCommand);
|
|
3121
3121
|
program.addCommand(infoCommand);
|
|
3122
3122
|
program.addCommand(composeCommand);
|
package/package.json
CHANGED
package/zero.js
CHANGED
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
callZeroBanking,
|
|
16
16
|
callZeroMaps,
|
|
17
17
|
checkDirectoryStatus,
|
|
18
|
+
clearGoal,
|
|
18
19
|
collectLogItems,
|
|
19
20
|
completeGithubFileUpload,
|
|
20
21
|
completeGoal,
|
|
@@ -131,6 +132,7 @@ import {
|
|
|
131
132
|
parseEvent,
|
|
132
133
|
parsePositiveLogCount,
|
|
133
134
|
parseTime,
|
|
135
|
+
pauseGoal,
|
|
134
136
|
prepareHostedSite,
|
|
135
137
|
promptConfirm,
|
|
136
138
|
promptPassword,
|
|
@@ -175,7 +177,7 @@ import {
|
|
|
175
177
|
uploadWebFile,
|
|
176
178
|
upsertZeroOrgModelProvider,
|
|
177
179
|
withErrorHandler
|
|
178
|
-
} from "./chunk-
|
|
180
|
+
} from "./chunk-BX6IGPXR.js";
|
|
179
181
|
import {
|
|
180
182
|
CONNECTOR_TYPES,
|
|
181
183
|
CONNECTOR_TYPE_KEYS,
|
|
@@ -10005,9 +10007,6 @@ function formatGmailMatchSummary(config) {
|
|
|
10005
10007
|
parts.push(...textMatcherParts(field, matcher));
|
|
10006
10008
|
}
|
|
10007
10009
|
}
|
|
10008
|
-
if (match.snippet || match.labels || match.hasAttachment !== void 0) {
|
|
10009
|
-
parts.push("custom match rules");
|
|
10010
|
-
}
|
|
10011
10010
|
return parts.length > 0 ? parts.join("; ") : "all inbound messages";
|
|
10012
10011
|
}
|
|
10013
10012
|
function formatWorkflowTriggerEntry(trigger) {
|
|
@@ -10667,36 +10666,19 @@ init_esm_shims();
|
|
|
10667
10666
|
function printJson(value) {
|
|
10668
10667
|
console.log(JSON.stringify(value));
|
|
10669
10668
|
}
|
|
10670
|
-
function parseTokenBudget(value) {
|
|
10671
|
-
const parsed = Number(value);
|
|
10672
|
-
if (!Number.isInteger(parsed) || parsed <= 0) {
|
|
10673
|
-
throw new InvalidArgumentError("--token-budget must be a positive integer");
|
|
10674
|
-
}
|
|
10675
|
-
return parsed;
|
|
10676
|
-
}
|
|
10677
10669
|
var createCommand5 = new Command().name("create").description(
|
|
10678
10670
|
"Create a persistent goal for the current thread. Create a goal ONLY when the user explicitly asks for a persistent, autonomous, cross-turn task; do not infer a goal from an ordinary one-off request."
|
|
10679
10671
|
).requiredOption(
|
|
10680
10672
|
"--objective <text>",
|
|
10681
10673
|
"Goal objective. Set a goal ONLY on an explicit user request for autonomous cross-turn work; never infer one from a one-off request."
|
|
10682
|
-
).
|
|
10674
|
+
).action(
|
|
10683
10675
|
withErrorHandler(async (options) => {
|
|
10684
|
-
printJson(
|
|
10685
|
-
await createGoal({
|
|
10686
|
-
objective: options.objective,
|
|
10687
|
-
...options.tokenBudget ? { tokenBudget: options.tokenBudget } : {}
|
|
10688
|
-
})
|
|
10689
|
-
);
|
|
10676
|
+
printJson(await createGoal({ objective: options.objective }));
|
|
10690
10677
|
})
|
|
10691
10678
|
);
|
|
10692
|
-
var editCommand3 = new Command().name("edit").description("Edit the current thread goal
|
|
10679
|
+
var editCommand3 = new Command().name("edit").description("Edit the current thread goal objective").requiredOption("--objective <text>", "New goal objective").action(
|
|
10693
10680
|
withErrorHandler(async (options) => {
|
|
10694
|
-
printJson(
|
|
10695
|
-
await editGoal({
|
|
10696
|
-
...options.objective !== void 0 ? { objective: options.objective } : {},
|
|
10697
|
-
...options.tokenBudget !== void 0 ? { tokenBudget: options.tokenBudget } : {}
|
|
10698
|
-
})
|
|
10699
|
-
);
|
|
10681
|
+
printJson(await editGoal({ objective: options.objective }));
|
|
10700
10682
|
})
|
|
10701
10683
|
);
|
|
10702
10684
|
var getCommand = new Command().name("get").description("Get the current thread goal").action(
|
|
@@ -10709,17 +10691,27 @@ var completeCommand = new Command().name("complete").description("Mark the curre
|
|
|
10709
10691
|
printJson(await completeGoal());
|
|
10710
10692
|
})
|
|
10711
10693
|
);
|
|
10712
|
-
var blockCommand = new Command().name("block").description("
|
|
10694
|
+
var blockCommand = new Command().name("block").description("Mark the current thread goal blocked").action(
|
|
10713
10695
|
withErrorHandler(async () => {
|
|
10714
10696
|
printJson(await blockGoal());
|
|
10715
10697
|
})
|
|
10716
10698
|
);
|
|
10699
|
+
var pauseCommand = new Command().name("pause").description("Pause the current thread goal").action(
|
|
10700
|
+
withErrorHandler(async () => {
|
|
10701
|
+
printJson(await pauseGoal());
|
|
10702
|
+
})
|
|
10703
|
+
);
|
|
10717
10704
|
var resumeCommand = new Command().name("resume").description("Resume continuation for the current thread goal").action(
|
|
10718
10705
|
withErrorHandler(async () => {
|
|
10719
10706
|
printJson(await resumeGoal());
|
|
10720
10707
|
})
|
|
10721
10708
|
);
|
|
10722
|
-
var
|
|
10709
|
+
var clearCommand = new Command().name("clear").description("Clear the current thread goal").action(
|
|
10710
|
+
withErrorHandler(async () => {
|
|
10711
|
+
printJson(await clearGoal());
|
|
10712
|
+
})
|
|
10713
|
+
);
|
|
10714
|
+
var zeroGoalCommand = new Command().name("goal").description("Manage the current thread goal").addCommand(createCommand5).addCommand(editCommand3).addCommand(getCommand).addCommand(completeCommand).addCommand(blockCommand).addCommand(pauseCommand).addCommand(resumeCommand).addCommand(clearCommand);
|
|
10723
10715
|
|
|
10724
10716
|
// src/commands/zero/logs/index.ts
|
|
10725
10717
|
init_esm_shims();
|
|
@@ -15663,7 +15655,7 @@ var zeroResourceCommand = new Command().name("resource").description("Pull regis
|
|
|
15663
15655
|
var COMMAND_CAPABILITY_MAP = {
|
|
15664
15656
|
agent: "agent:read",
|
|
15665
15657
|
workflow: "agent:read",
|
|
15666
|
-
goal: ["goal:read", "goal:write"],
|
|
15658
|
+
goal: ["goal:read", "goal:agent-result:write", "goal:user-control:write"],
|
|
15667
15659
|
connector: "connector:read",
|
|
15668
15660
|
// "schedule" is deliberately absent: the rename stub stays out of
|
|
15669
15661
|
// token-scoped (agent) help but remains invokable and visible to humans.
|
|
@@ -15782,7 +15774,7 @@ function registerZeroCommands(prog, commands) {
|
|
|
15782
15774
|
var program = new Command();
|
|
15783
15775
|
program.name("zero").description(
|
|
15784
15776
|
"Zero CLI \u2014 interact with the zero platform from inside the sandbox"
|
|
15785
|
-
).version("9.206.
|
|
15777
|
+
).version("9.206.1").addHelpText("after", () => {
|
|
15786
15778
|
return buildZeroHelpText();
|
|
15787
15779
|
});
|
|
15788
15780
|
if (process.argv[1]?.endsWith("zero.js") || process.argv[1]?.endsWith("zero.ts") || process.argv[1]?.endsWith("zero")) {
|