@vm0/cli 9.84.0 → 9.84.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/{chunk-T4MRFLKK.js → chunk-UTY3UDKG.js} +201 -154
- package/chunk-UTY3UDKG.js.map +1 -0
- package/index.js +10 -10
- package/package.json +1 -1
- package/zero.js +42 -14
- 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-UTY3UDKG.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.2"}`));
|
|
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.2");
|
|
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.2");
|
|
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.2", 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.2") {
|
|
4997
|
+
console.log(chalk36.green(`\u2713 Already up to date (${"9.84.2"})`));
|
|
4998
4998
|
return;
|
|
4999
4999
|
}
|
|
5000
5000
|
console.log(
|
|
5001
5001
|
chalk36.yellow(
|
|
5002
|
-
`Current version: ${"9.84.
|
|
5002
|
+
`Current version: ${"9.84.2"} -> 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.2"} 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.2");
|
|
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-UTY3UDKG.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";
|
|
@@ -1830,17 +1839,25 @@ var missingTokenCommand = new Command35().name("missing-token").description(
|
|
|
1830
1839
|
);
|
|
1831
1840
|
}
|
|
1832
1841
|
const { label } = CONNECTOR_TYPES[connectorType];
|
|
1833
|
-
const
|
|
1842
|
+
const apiUrl = await getApiUrl();
|
|
1843
|
+
const parsed = new URL(apiUrl);
|
|
1844
|
+
const parts = parsed.hostname.split(".");
|
|
1845
|
+
if (parts[0] === "www" || parts[0] === "platform") {
|
|
1846
|
+
parts[0] = "app";
|
|
1847
|
+
} else if (parts[0] !== "app" && parts[0] !== "localhost") {
|
|
1848
|
+
parts.unshift("app");
|
|
1849
|
+
}
|
|
1850
|
+
parsed.hostname = parts.join(".");
|
|
1834
1851
|
const agentId = process.env.ZERO_AGENT_ID;
|
|
1835
1852
|
const path = agentId ? `/team/${agentId}` : "/team";
|
|
1836
|
-
const url = `${
|
|
1853
|
+
const url = `${parsed.origin}${path}?tab=connectors`;
|
|
1837
1854
|
console.log(`${tokenName} is provided by the ${label} connector.`);
|
|
1838
1855
|
console.log(`Ask the user to connect it at: ${url}`);
|
|
1839
1856
|
})
|
|
1840
1857
|
);
|
|
1841
1858
|
|
|
1842
1859
|
// src/commands/zero/doctor/index.ts
|
|
1843
|
-
var zeroDoctorCommand = new Command36().name("doctor").description("
|
|
1860
|
+
var zeroDoctorCommand = new Command36().name("doctor").description("Diagnose runtime issues (missing tokens, connectors)").addCommand(missingTokenCommand);
|
|
1844
1861
|
|
|
1845
1862
|
// src/commands/zero/preference/index.ts
|
|
1846
1863
|
import { Command as Command37 } from "commander";
|
|
@@ -1900,7 +1917,7 @@ System timezone detected: ${detectedTz}`));
|
|
|
1900
1917
|
}
|
|
1901
1918
|
}
|
|
1902
1919
|
}
|
|
1903
|
-
var zeroPreferenceCommand = new Command37().name("preference").description("View or update
|
|
1920
|
+
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
1921
|
withErrorHandler(async (opts) => {
|
|
1905
1922
|
const updates = buildUpdates(opts);
|
|
1906
1923
|
if (updates) {
|
|
@@ -2644,7 +2661,7 @@ var disableCommand = new Command43().name("disable").description("Disable a zero
|
|
|
2644
2661
|
);
|
|
2645
2662
|
|
|
2646
2663
|
// src/commands/zero/schedule/index.ts
|
|
2647
|
-
var zeroScheduleCommand = new Command44().name("schedule").description("
|
|
2664
|
+
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
2665
|
|
|
2649
2666
|
// src/commands/zero/secret/index.ts
|
|
2650
2667
|
import { Command as Command48 } from "commander";
|
|
@@ -2776,7 +2793,7 @@ var deleteCommand4 = new Command47().name("delete").description("Delete a secret
|
|
|
2776
2793
|
);
|
|
2777
2794
|
|
|
2778
2795
|
// src/commands/zero/secret/index.ts
|
|
2779
|
-
var zeroSecretCommand = new Command48().name("secret").description("
|
|
2796
|
+
var zeroSecretCommand = new Command48().name("secret").description("Read or write secrets (API keys, tokens)").addCommand(listCommand8).addCommand(setCommand4).addCommand(deleteCommand4);
|
|
2780
2797
|
|
|
2781
2798
|
// src/commands/zero/slack/index.ts
|
|
2782
2799
|
import { Command as Command51 } from "commander";
|
|
@@ -2831,7 +2848,7 @@ var sendCommand = new Command49().name("send").description("Send a message to a
|
|
|
2831
2848
|
var zeroSlackMessageCommand = new Command50().name("message").description("Manage Slack messages").addCommand(sendCommand);
|
|
2832
2849
|
|
|
2833
2850
|
// src/commands/zero/slack/index.ts
|
|
2834
|
-
var zeroSlackCommand = new Command51().name("slack").description("
|
|
2851
|
+
var zeroSlackCommand = new Command51().name("slack").description("Send messages to Slack channels as the bot").addCommand(zeroSlackMessageCommand);
|
|
2835
2852
|
|
|
2836
2853
|
// src/commands/zero/variable/index.ts
|
|
2837
2854
|
import { Command as Command55 } from "commander";
|
|
@@ -2924,7 +2941,7 @@ var deleteCommand5 = new Command54().name("delete").description("Delete a variab
|
|
|
2924
2941
|
);
|
|
2925
2942
|
|
|
2926
2943
|
// src/commands/zero/variable/index.ts
|
|
2927
|
-
var zeroVariableCommand = new Command55().name("variable").description("
|
|
2944
|
+
var zeroVariableCommand = new Command55().name("variable").description("Read or write non-sensitive configuration values").addCommand(listCommand9).addCommand(setCommand5).addCommand(deleteCommand5);
|
|
2928
2945
|
|
|
2929
2946
|
// src/commands/zero/whoami.ts
|
|
2930
2947
|
import { Command as Command56 } from "commander";
|
|
@@ -2964,7 +2981,7 @@ async function showLocalInfo() {
|
|
|
2964
2981
|
console.log(` Active: ${activeOrg}`);
|
|
2965
2982
|
}
|
|
2966
2983
|
}
|
|
2967
|
-
var zeroWhoamiCommand = new Command56().name("whoami").description("Show
|
|
2984
|
+
var zeroWhoamiCommand = new Command56().name("whoami").description("Show agent identity, run ID, and capabilities").action(
|
|
2968
2985
|
withErrorHandler(async () => {
|
|
2969
2986
|
if (isInsideSandbox()) {
|
|
2970
2987
|
await showSandboxInfo();
|
|
@@ -3009,7 +3026,18 @@ function registerZeroCommands(prog, commands) {
|
|
|
3009
3026
|
}
|
|
3010
3027
|
}
|
|
3011
3028
|
var program = new Command57();
|
|
3012
|
-
program.name("zero").description(
|
|
3029
|
+
program.name("zero").description(
|
|
3030
|
+
"Zero CLI \u2014 interact with the zero platform from inside the sandbox"
|
|
3031
|
+
).version("9.84.2").addHelpText(
|
|
3032
|
+
"after",
|
|
3033
|
+
`
|
|
3034
|
+
Common scenarios:
|
|
3035
|
+
Missing a token? zero doctor missing-token <TOKEN_NAME>
|
|
3036
|
+
Send a Slack message? zero slack message send -c <channel> -t "text"
|
|
3037
|
+
Set up a schedule? zero schedule setup <agent-name>
|
|
3038
|
+
Update yourself? zero agent --help
|
|
3039
|
+
Check your identity? zero whoami`
|
|
3040
|
+
);
|
|
3013
3041
|
if (process.argv[1]?.endsWith("zero.js") || process.argv[1]?.endsWith("zero.ts") || process.argv[1]?.endsWith("zero")) {
|
|
3014
3042
|
configureGlobalProxyFromEnv();
|
|
3015
3043
|
registerZeroCommands(program);
|