@vm0/cli 9.199.5 → 9.200.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-MMVRHBJ6.js → chunk-RHSNJ3DN.js} +34 -11
- package/{chunk-MMVRHBJ6.js.map → chunk-RHSNJ3DN.js.map} +1 -1
- package/index.js +9 -9
- package/package.json +1 -1
- package/zero.js +23 -8
- package/zero.js.map +1 -1
package/index.js
CHANGED
|
@@ -75,7 +75,7 @@ import {
|
|
|
75
75
|
uo,
|
|
76
76
|
volumeConfigSchema,
|
|
77
77
|
withErrorHandler
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-RHSNJ3DN.js";
|
|
79
79
|
import "./chunk-FDYQ7Z5J.js";
|
|
80
80
|
import {
|
|
81
81
|
__toESM,
|
|
@@ -409,7 +409,7 @@ function getConfigPath() {
|
|
|
409
409
|
return join(os.homedir(), ".vm0", "config.json");
|
|
410
410
|
}
|
|
411
411
|
var infoCommand = new Command().name("info").description("Display environment and debug information").action(async () => {
|
|
412
|
-
console.log(source_default.bold(`VM0 CLI v${"9.
|
|
412
|
+
console.log(source_default.bold(`VM0 CLI v${"9.200.0"}`));
|
|
413
413
|
console.log();
|
|
414
414
|
const config = await loadConfig();
|
|
415
415
|
const hasEnvToken = !!process.env.VM0_TOKEN;
|
|
@@ -1111,7 +1111,7 @@ var composeCommand = new Command().name("compose").description("Create or update
|
|
|
1111
1111
|
options.autoUpdate = false;
|
|
1112
1112
|
}
|
|
1113
1113
|
if (options.autoUpdate !== false) {
|
|
1114
|
-
await startSilentUpgrade("9.
|
|
1114
|
+
await startSilentUpgrade("9.200.0");
|
|
1115
1115
|
}
|
|
1116
1116
|
try {
|
|
1117
1117
|
const { config, agentName, agent, basePath } = await loadAndValidateConfig(resolvedConfigFile);
|
|
@@ -1208,7 +1208,7 @@ var mainRunCommand = new Command().name("run").description("Run an agent").argum
|
|
|
1208
1208
|
withErrorHandler(
|
|
1209
1209
|
async (identifier, prompt, options) => {
|
|
1210
1210
|
if (options.autoUpdate !== false) {
|
|
1211
|
-
await startSilentUpgrade("9.
|
|
1211
|
+
await startSilentUpgrade("9.200.0");
|
|
1212
1212
|
}
|
|
1213
1213
|
const { name, version } = parseIdentifier(identifier);
|
|
1214
1214
|
let composeId;
|
|
@@ -3014,13 +3014,13 @@ var upgradeCommand = new Command().name("upgrade").description("Upgrade vm0 CLI
|
|
|
3014
3014
|
if (latestVersion === null) {
|
|
3015
3015
|
throw new Error("Could not check for updates. Please try again later.");
|
|
3016
3016
|
}
|
|
3017
|
-
if (latestVersion === "9.
|
|
3018
|
-
console.log(source_default.green(`\u2713 Already up to date (${"9.
|
|
3017
|
+
if (latestVersion === "9.200.0") {
|
|
3018
|
+
console.log(source_default.green(`\u2713 Already up to date (${"9.200.0"})`));
|
|
3019
3019
|
return;
|
|
3020
3020
|
}
|
|
3021
3021
|
console.log(
|
|
3022
3022
|
source_default.yellow(
|
|
3023
|
-
`Current version: ${"9.
|
|
3023
|
+
`Current version: ${"9.200.0"} -> Latest version: ${latestVersion}`
|
|
3024
3024
|
)
|
|
3025
3025
|
);
|
|
3026
3026
|
console.log();
|
|
@@ -3047,7 +3047,7 @@ var upgradeCommand = new Command().name("upgrade").description("Upgrade vm0 CLI
|
|
|
3047
3047
|
const success = await performUpgrade(packageManager);
|
|
3048
3048
|
if (success) {
|
|
3049
3049
|
console.log(
|
|
3050
|
-
source_default.green(`\u2713 Upgraded from ${"9.
|
|
3050
|
+
source_default.green(`\u2713 Upgraded from ${"9.200.0"} to ${latestVersion}`)
|
|
3051
3051
|
);
|
|
3052
3052
|
return;
|
|
3053
3053
|
}
|
|
@@ -3114,7 +3114,7 @@ var whoamiCommand = new Command().name("whoami").description("Show current ident
|
|
|
3114
3114
|
|
|
3115
3115
|
// src/index.ts
|
|
3116
3116
|
var program = new Command();
|
|
3117
|
-
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.
|
|
3117
|
+
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.200.0");
|
|
3118
3118
|
program.addCommand(authCommand);
|
|
3119
3119
|
program.addCommand(infoCommand);
|
|
3120
3120
|
program.addCommand(composeCommand);
|
package/package.json
CHANGED
package/zero.js
CHANGED
|
@@ -56,6 +56,7 @@ import {
|
|
|
56
56
|
downloadSlackFile,
|
|
57
57
|
downloadTelegramFile,
|
|
58
58
|
downloadWebFile,
|
|
59
|
+
editGoal,
|
|
59
60
|
enableAutomation,
|
|
60
61
|
enableAutomationTrigger,
|
|
61
62
|
extractSecretNamesFromApis,
|
|
@@ -185,7 +186,7 @@ import {
|
|
|
185
186
|
uploadWebFile,
|
|
186
187
|
upsertZeroOrgModelProvider,
|
|
187
188
|
withErrorHandler
|
|
188
|
-
} from "./chunk-
|
|
189
|
+
} from "./chunk-RHSNJ3DN.js";
|
|
189
190
|
import "./chunk-FDYQ7Z5J.js";
|
|
190
191
|
import {
|
|
191
192
|
__toESM,
|
|
@@ -5887,15 +5888,19 @@ init_esm_shims();
|
|
|
5887
5888
|
function printJson(value) {
|
|
5888
5889
|
console.log(JSON.stringify(value));
|
|
5889
5890
|
}
|
|
5890
|
-
|
|
5891
|
+
function parseTokenBudget(value) {
|
|
5891
5892
|
const parsed = Number(value);
|
|
5892
5893
|
if (!Number.isInteger(parsed) || parsed <= 0) {
|
|
5893
|
-
throw new InvalidArgumentError(
|
|
5894
|
-
"--token-budget must be a positive integer"
|
|
5895
|
-
);
|
|
5894
|
+
throw new InvalidArgumentError("--token-budget must be a positive integer");
|
|
5896
5895
|
}
|
|
5897
5896
|
return parsed;
|
|
5898
|
-
}
|
|
5897
|
+
}
|
|
5898
|
+
var createCommand5 = new Command().name("create").description(
|
|
5899
|
+
"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."
|
|
5900
|
+
).requiredOption(
|
|
5901
|
+
"--objective <text>",
|
|
5902
|
+
"Goal objective. Set a goal ONLY on an explicit user request for autonomous cross-turn work; never infer one from a one-off request."
|
|
5903
|
+
).option("--token-budget <tokens>", "Optional token budget", parseTokenBudget).action(
|
|
5899
5904
|
withErrorHandler(async (options) => {
|
|
5900
5905
|
printJson(
|
|
5901
5906
|
await createGoal({
|
|
@@ -5905,6 +5910,16 @@ var createCommand5 = new Command().name("create").description("Create a persiste
|
|
|
5905
5910
|
);
|
|
5906
5911
|
})
|
|
5907
5912
|
);
|
|
5913
|
+
var editCommand3 = new Command().name("edit").description("Edit the current thread goal's objective or token budget").option("--objective <text>", "New goal objective").option("--token-budget <tokens>", "New token budget", parseTokenBudget).action(
|
|
5914
|
+
withErrorHandler(async (options) => {
|
|
5915
|
+
printJson(
|
|
5916
|
+
await editGoal({
|
|
5917
|
+
...options.objective !== void 0 ? { objective: options.objective } : {},
|
|
5918
|
+
...options.tokenBudget !== void 0 ? { tokenBudget: options.tokenBudget } : {}
|
|
5919
|
+
})
|
|
5920
|
+
);
|
|
5921
|
+
})
|
|
5922
|
+
);
|
|
5908
5923
|
var getCommand = new Command().name("get").description("Get the current thread goal").action(
|
|
5909
5924
|
withErrorHandler(async () => {
|
|
5910
5925
|
printJson(await getGoal());
|
|
@@ -5925,7 +5940,7 @@ var resumeCommand = new Command().name("resume").description("Resume continuatio
|
|
|
5925
5940
|
printJson(await resumeGoal());
|
|
5926
5941
|
})
|
|
5927
5942
|
);
|
|
5928
|
-
var zeroGoalCommand = new Command().name("goal").description("Manage the current thread goal").addCommand(createCommand5).addCommand(getCommand).addCommand(completeCommand).addCommand(blockCommand).addCommand(resumeCommand);
|
|
5943
|
+
var zeroGoalCommand = new Command().name("goal").description("Manage the current thread goal").addCommand(createCommand5).addCommand(editCommand3).addCommand(getCommand).addCommand(completeCommand).addCommand(blockCommand).addCommand(resumeCommand);
|
|
5929
5944
|
|
|
5930
5945
|
// src/commands/zero/logs/index.ts
|
|
5931
5946
|
init_esm_shims();
|
|
@@ -10988,7 +11003,7 @@ function registerZeroCommands(prog, commands) {
|
|
|
10988
11003
|
var program = new Command();
|
|
10989
11004
|
program.name("zero").description(
|
|
10990
11005
|
"Zero CLI \u2014 interact with the zero platform from inside the sandbox"
|
|
10991
|
-
).version("9.
|
|
11006
|
+
).version("9.200.0").addHelpText("after", () => {
|
|
10992
11007
|
return buildZeroHelpText();
|
|
10993
11008
|
});
|
|
10994
11009
|
if (process.argv[1]?.endsWith("zero.js") || process.argv[1]?.endsWith("zero.ts") || process.argv[1]?.endsWith("zero")) {
|