@vm0/cli 9.84.0 → 9.84.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-T4MRFLKK.js → chunk-A5NPNEP5.js} +37 -6
- package/chunk-A5NPNEP5.js.map +1 -0
- package/index.js +10 -10
- package/package.json +1 -1
- package/zero.js +32 -12
- package/zero.js.map +1 -1
- package/chunk-T4MRFLKK.js.map +0 -1
package/index.js
CHANGED
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
searchLogs,
|
|
52
52
|
volumeConfigSchema,
|
|
53
53
|
withErrorHandler
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-A5NPNEP5.js";
|
|
55
55
|
|
|
56
56
|
// src/index.ts
|
|
57
57
|
import { Command as Command44 } from "commander";
|
|
@@ -436,7 +436,7 @@ function getConfigPath() {
|
|
|
436
436
|
return join(homedir(), ".vm0", "config.json");
|
|
437
437
|
}
|
|
438
438
|
var infoCommand = new Command6().name("info").description("Display environment and debug information").action(async () => {
|
|
439
|
-
console.log(chalk3.bold(`VM0 CLI v${"9.84.
|
|
439
|
+
console.log(chalk3.bold(`VM0 CLI v${"9.84.1"}`));
|
|
440
440
|
console.log();
|
|
441
441
|
const config = await loadConfig();
|
|
442
442
|
const hasEnvToken = !!process.env.VM0_TOKEN;
|
|
@@ -1662,7 +1662,7 @@ var composeCommand = new Command7().name("compose").description("Create or updat
|
|
|
1662
1662
|
options.autoUpdate = false;
|
|
1663
1663
|
}
|
|
1664
1664
|
if (options.autoUpdate !== false) {
|
|
1665
|
-
await startSilentUpgrade("9.84.
|
|
1665
|
+
await startSilentUpgrade("9.84.1");
|
|
1666
1666
|
}
|
|
1667
1667
|
try {
|
|
1668
1668
|
let result;
|
|
@@ -2497,7 +2497,7 @@ var mainRunCommand = new Command8().name("run").description("Run an agent").argu
|
|
|
2497
2497
|
withErrorHandler(
|
|
2498
2498
|
async (identifier, prompt, options) => {
|
|
2499
2499
|
if (options.autoUpdate !== false) {
|
|
2500
|
-
await startSilentUpgrade("9.84.
|
|
2500
|
+
await startSilentUpgrade("9.84.1");
|
|
2501
2501
|
}
|
|
2502
2502
|
const { org, name, version } = parseIdentifier(identifier);
|
|
2503
2503
|
let composeId;
|
|
@@ -4253,7 +4253,7 @@ var cookAction = new Command35().name("cook").description("Quick start: prepare,
|
|
|
4253
4253
|
withErrorHandler(
|
|
4254
4254
|
async (prompt, options) => {
|
|
4255
4255
|
if (options.autoUpdate !== false) {
|
|
4256
|
-
const shouldExit = await checkAndUpgrade("9.84.
|
|
4256
|
+
const shouldExit = await checkAndUpgrade("9.84.1", prompt);
|
|
4257
4257
|
if (shouldExit) {
|
|
4258
4258
|
process.exit(0);
|
|
4259
4259
|
}
|
|
@@ -4993,13 +4993,13 @@ var upgradeCommand = new Command42().name("upgrade").description("Upgrade vm0 CL
|
|
|
4993
4993
|
if (latestVersion === null) {
|
|
4994
4994
|
throw new Error("Could not check for updates. Please try again later.");
|
|
4995
4995
|
}
|
|
4996
|
-
if (latestVersion === "9.84.
|
|
4997
|
-
console.log(chalk36.green(`\u2713 Already up to date (${"9.84.
|
|
4996
|
+
if (latestVersion === "9.84.1") {
|
|
4997
|
+
console.log(chalk36.green(`\u2713 Already up to date (${"9.84.1"})`));
|
|
4998
4998
|
return;
|
|
4999
4999
|
}
|
|
5000
5000
|
console.log(
|
|
5001
5001
|
chalk36.yellow(
|
|
5002
|
-
`Current version: ${"9.84.
|
|
5002
|
+
`Current version: ${"9.84.1"} -> Latest version: ${latestVersion}`
|
|
5003
5003
|
)
|
|
5004
5004
|
);
|
|
5005
5005
|
console.log();
|
|
@@ -5026,7 +5026,7 @@ var upgradeCommand = new Command42().name("upgrade").description("Upgrade vm0 CL
|
|
|
5026
5026
|
const success = await performUpgrade(packageManager);
|
|
5027
5027
|
if (success) {
|
|
5028
5028
|
console.log(
|
|
5029
|
-
chalk36.green(`\u2713 Upgraded from ${"9.84.
|
|
5029
|
+
chalk36.green(`\u2713 Upgraded from ${"9.84.1"} to ${latestVersion}`)
|
|
5030
5030
|
);
|
|
5031
5031
|
return;
|
|
5032
5032
|
}
|
|
@@ -5094,7 +5094,7 @@ var whoamiCommand = new Command43().name("whoami").description("Show current ide
|
|
|
5094
5094
|
|
|
5095
5095
|
// src/index.ts
|
|
5096
5096
|
var program = new Command44();
|
|
5097
|
-
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.84.
|
|
5097
|
+
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.84.1");
|
|
5098
5098
|
program.addCommand(authCommand);
|
|
5099
5099
|
program.addCommand(infoCommand);
|
|
5100
5100
|
program.addCommand(composeCommand);
|
package/package.json
CHANGED
package/zero.js
CHANGED
|
@@ -82,7 +82,7 @@ import {
|
|
|
82
82
|
updateZeroUserPreferences,
|
|
83
83
|
upsertZeroOrgModelProvider,
|
|
84
84
|
withErrorHandler
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-A5NPNEP5.js";
|
|
86
86
|
|
|
87
87
|
// src/zero.ts
|
|
88
88
|
import { Command as Command57 } from "commander";
|
|
@@ -1050,7 +1050,7 @@ var setDefaultCommand = new Command21().name("set-default").description("Set an
|
|
|
1050
1050
|
var zeroOrgModelProviderCommand = new Command22().name("model-provider").description("Manage org-level model providers").addCommand(listCommand4).addCommand(setupCommand).addCommand(removeCommand4).addCommand(setDefaultCommand);
|
|
1051
1051
|
|
|
1052
1052
|
// src/commands/zero/org/index.ts
|
|
1053
|
-
var zeroOrgCommand = new Command23().name("org").description("Manage
|
|
1053
|
+
var zeroOrgCommand = new Command23().name("org").description("Manage organization settings, members, and providers").addCommand(statusCommand).addCommand(setCommand).addCommand(listCommand).addCommand(useCommand).addCommand(membersCommand).addCommand(inviteCommand).addCommand(removeCommand).addCommand(leaveCommand).addCommand(deleteCommand).addCommand(zeroOrgSecretCommand).addCommand(zeroOrgVariableCommand).addCommand(zeroOrgModelProviderCommand);
|
|
1054
1054
|
|
|
1055
1055
|
// src/commands/zero/agent/index.ts
|
|
1056
1056
|
import { Command as Command29 } from "commander";
|
|
@@ -1218,7 +1218,16 @@ var deleteCommand2 = new Command28().name("delete").alias("rm").description("Del
|
|
|
1218
1218
|
);
|
|
1219
1219
|
|
|
1220
1220
|
// src/commands/zero/agent/index.ts
|
|
1221
|
-
var zeroAgentCommand = new Command29("agent").description("
|
|
1221
|
+
var zeroAgentCommand = new Command29("agent").description("View or manage zero agents").addCommand(createCommand).addCommand(editCommand).addCommand(viewCommand).addCommand(listCommand5).addCommand(deleteCommand2).addHelpText(
|
|
1222
|
+
"after",
|
|
1223
|
+
`
|
|
1224
|
+
Self-management (inside sandbox):
|
|
1225
|
+
Your agent ID is in $ZERO_AGENT_ID (or run: zero whoami)
|
|
1226
|
+
View your config: zero agent view $ZERO_AGENT_ID --instructions
|
|
1227
|
+
Update description: zero agent edit $ZERO_AGENT_ID --description "new role"
|
|
1228
|
+
Update tone: zero agent edit $ZERO_AGENT_ID --sound friendly
|
|
1229
|
+
Update instructions: zero agent edit $ZERO_AGENT_ID --instructions-file <path>`
|
|
1230
|
+
);
|
|
1222
1231
|
|
|
1223
1232
|
// src/commands/zero/connector/index.ts
|
|
1224
1233
|
import { Command as Command34 } from "commander";
|
|
@@ -1812,7 +1821,7 @@ var disconnectCommand = new Command33().name("disconnect").description("Disconne
|
|
|
1812
1821
|
);
|
|
1813
1822
|
|
|
1814
1823
|
// src/commands/zero/connector/index.ts
|
|
1815
|
-
var zeroConnectorCommand = new Command34().name("connector").description("
|
|
1824
|
+
var zeroConnectorCommand = new Command34().name("connector").description("Check or connect third-party services (GitHub, Slack, etc.)").addCommand(listCommand6).addCommand(statusCommand2).addCommand(connectCommand).addCommand(disconnectCommand);
|
|
1816
1825
|
|
|
1817
1826
|
// src/commands/zero/doctor/index.ts
|
|
1818
1827
|
import { Command as Command36 } from "commander";
|
|
@@ -1840,7 +1849,7 @@ var missingTokenCommand = new Command35().name("missing-token").description(
|
|
|
1840
1849
|
);
|
|
1841
1850
|
|
|
1842
1851
|
// src/commands/zero/doctor/index.ts
|
|
1843
|
-
var zeroDoctorCommand = new Command36().name("doctor").description("
|
|
1852
|
+
var zeroDoctorCommand = new Command36().name("doctor").description("Diagnose runtime issues (missing tokens, connectors)").addCommand(missingTokenCommand);
|
|
1844
1853
|
|
|
1845
1854
|
// src/commands/zero/preference/index.ts
|
|
1846
1855
|
import { Command as Command37 } from "commander";
|
|
@@ -1900,7 +1909,7 @@ System timezone detected: ${detectedTz}`));
|
|
|
1900
1909
|
}
|
|
1901
1910
|
}
|
|
1902
1911
|
}
|
|
1903
|
-
var zeroPreferenceCommand = new Command37().name("preference").description("View or update
|
|
1912
|
+
var zeroPreferenceCommand = new Command37().name("preference").description("View or update user preferences (timezone, notifications)").option("--timezone <timezone>", "IANA timezone (e.g., America/New_York)").action(
|
|
1904
1913
|
withErrorHandler(async (opts) => {
|
|
1905
1914
|
const updates = buildUpdates(opts);
|
|
1906
1915
|
if (updates) {
|
|
@@ -2644,7 +2653,7 @@ var disableCommand = new Command43().name("disable").description("Disable a zero
|
|
|
2644
2653
|
);
|
|
2645
2654
|
|
|
2646
2655
|
// src/commands/zero/schedule/index.ts
|
|
2647
|
-
var zeroScheduleCommand = new Command44().name("schedule").description("
|
|
2656
|
+
var zeroScheduleCommand = new Command44().name("schedule").description("Create or manage recurring scheduled tasks").addCommand(setupCommand2).addCommand(listCommand7).addCommand(statusCommand3).addCommand(deleteCommand3).addCommand(enableCommand).addCommand(disableCommand);
|
|
2648
2657
|
|
|
2649
2658
|
// src/commands/zero/secret/index.ts
|
|
2650
2659
|
import { Command as Command48 } from "commander";
|
|
@@ -2776,7 +2785,7 @@ var deleteCommand4 = new Command47().name("delete").description("Delete a secret
|
|
|
2776
2785
|
);
|
|
2777
2786
|
|
|
2778
2787
|
// src/commands/zero/secret/index.ts
|
|
2779
|
-
var zeroSecretCommand = new Command48().name("secret").description("
|
|
2788
|
+
var zeroSecretCommand = new Command48().name("secret").description("Read or write secrets (API keys, tokens)").addCommand(listCommand8).addCommand(setCommand4).addCommand(deleteCommand4);
|
|
2780
2789
|
|
|
2781
2790
|
// src/commands/zero/slack/index.ts
|
|
2782
2791
|
import { Command as Command51 } from "commander";
|
|
@@ -2831,7 +2840,7 @@ var sendCommand = new Command49().name("send").description("Send a message to a
|
|
|
2831
2840
|
var zeroSlackMessageCommand = new Command50().name("message").description("Manage Slack messages").addCommand(sendCommand);
|
|
2832
2841
|
|
|
2833
2842
|
// src/commands/zero/slack/index.ts
|
|
2834
|
-
var zeroSlackCommand = new Command51().name("slack").description("
|
|
2843
|
+
var zeroSlackCommand = new Command51().name("slack").description("Send messages to Slack channels as the bot").addCommand(zeroSlackMessageCommand);
|
|
2835
2844
|
|
|
2836
2845
|
// src/commands/zero/variable/index.ts
|
|
2837
2846
|
import { Command as Command55 } from "commander";
|
|
@@ -2924,7 +2933,7 @@ var deleteCommand5 = new Command54().name("delete").description("Delete a variab
|
|
|
2924
2933
|
);
|
|
2925
2934
|
|
|
2926
2935
|
// src/commands/zero/variable/index.ts
|
|
2927
|
-
var zeroVariableCommand = new Command55().name("variable").description("
|
|
2936
|
+
var zeroVariableCommand = new Command55().name("variable").description("Read or write non-sensitive configuration values").addCommand(listCommand9).addCommand(setCommand5).addCommand(deleteCommand5);
|
|
2928
2937
|
|
|
2929
2938
|
// src/commands/zero/whoami.ts
|
|
2930
2939
|
import { Command as Command56 } from "commander";
|
|
@@ -2964,7 +2973,7 @@ async function showLocalInfo() {
|
|
|
2964
2973
|
console.log(` Active: ${activeOrg}`);
|
|
2965
2974
|
}
|
|
2966
2975
|
}
|
|
2967
|
-
var zeroWhoamiCommand = new Command56().name("whoami").description("Show
|
|
2976
|
+
var zeroWhoamiCommand = new Command56().name("whoami").description("Show agent identity, run ID, and capabilities").action(
|
|
2968
2977
|
withErrorHandler(async () => {
|
|
2969
2978
|
if (isInsideSandbox()) {
|
|
2970
2979
|
await showSandboxInfo();
|
|
@@ -3009,7 +3018,18 @@ function registerZeroCommands(prog, commands) {
|
|
|
3009
3018
|
}
|
|
3010
3019
|
}
|
|
3011
3020
|
var program = new Command57();
|
|
3012
|
-
program.name("zero").description(
|
|
3021
|
+
program.name("zero").description(
|
|
3022
|
+
"Zero CLI \u2014 interact with the zero platform from inside the sandbox"
|
|
3023
|
+
).version("9.84.1").addHelpText(
|
|
3024
|
+
"after",
|
|
3025
|
+
`
|
|
3026
|
+
Common scenarios:
|
|
3027
|
+
Missing a token? zero doctor missing-token <TOKEN_NAME>
|
|
3028
|
+
Send a Slack message? zero slack message send -c <channel> -t "text"
|
|
3029
|
+
Set up a schedule? zero schedule setup <agent-name>
|
|
3030
|
+
Update yourself? zero agent --help
|
|
3031
|
+
Check your identity? zero whoami`
|
|
3032
|
+
);
|
|
3013
3033
|
if (process.argv[1]?.endsWith("zero.js") || process.argv[1]?.endsWith("zero.ts") || process.argv[1]?.endsWith("zero")) {
|
|
3014
3034
|
configureGlobalProxyFromEnv();
|
|
3015
3035
|
registerZeroCommands(program);
|