@vm0/cli 9.94.1 → 9.94.3
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-OYO75U5W.js → chunk-WBYVVABR.js} +8220 -7
- package/chunk-WBYVVABR.js.map +1 -0
- package/index.js +10 -10
- package/package.json +1 -1
- package/zero.js +9 -6
- package/zero.js.map +1 -1
- package/chunk-OYO75U5W.js.map +0 -1
package/index.js
CHANGED
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
showNextSteps,
|
|
60
60
|
volumeConfigSchema,
|
|
61
61
|
withErrorHandler
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-WBYVVABR.js";
|
|
63
63
|
|
|
64
64
|
// src/index.ts
|
|
65
65
|
import { Command as Command44 } from "commander";
|
|
@@ -452,7 +452,7 @@ function getConfigPath() {
|
|
|
452
452
|
return join(homedir(), ".vm0", "config.json");
|
|
453
453
|
}
|
|
454
454
|
var infoCommand = new Command6().name("info").description("Display environment and debug information").action(async () => {
|
|
455
|
-
console.log(chalk3.bold(`VM0 CLI v${"9.94.
|
|
455
|
+
console.log(chalk3.bold(`VM0 CLI v${"9.94.3"}`));
|
|
456
456
|
console.log();
|
|
457
457
|
const config = await loadConfig();
|
|
458
458
|
const hasEnvToken = !!process.env.VM0_TOKEN;
|
|
@@ -1579,7 +1579,7 @@ var composeCommand = new Command7().name("compose").description("Create or updat
|
|
|
1579
1579
|
options.autoUpdate = false;
|
|
1580
1580
|
}
|
|
1581
1581
|
if (options.autoUpdate !== false) {
|
|
1582
|
-
await startSilentUpgrade("9.94.
|
|
1582
|
+
await startSilentUpgrade("9.94.3");
|
|
1583
1583
|
}
|
|
1584
1584
|
try {
|
|
1585
1585
|
let result;
|
|
@@ -1653,7 +1653,7 @@ var mainRunCommand = new Command8().name("run").description("Run an agent").argu
|
|
|
1653
1653
|
withErrorHandler(
|
|
1654
1654
|
async (identifier, prompt, options) => {
|
|
1655
1655
|
if (options.autoUpdate !== false) {
|
|
1656
|
-
await startSilentUpgrade("9.94.
|
|
1656
|
+
await startSilentUpgrade("9.94.3");
|
|
1657
1657
|
}
|
|
1658
1658
|
const { name, version } = parseIdentifier(identifier);
|
|
1659
1659
|
let composeId;
|
|
@@ -3457,7 +3457,7 @@ var cookAction = new Command35().name("cook").description("Quick start: prepare,
|
|
|
3457
3457
|
withErrorHandler(
|
|
3458
3458
|
async (prompt, options) => {
|
|
3459
3459
|
if (options.autoUpdate !== false) {
|
|
3460
|
-
const shouldExit = await checkAndUpgrade("9.94.
|
|
3460
|
+
const shouldExit = await checkAndUpgrade("9.94.3", prompt);
|
|
3461
3461
|
if (shouldExit) {
|
|
3462
3462
|
process.exit(0);
|
|
3463
3463
|
}
|
|
@@ -4215,13 +4215,13 @@ var upgradeCommand = new Command42().name("upgrade").description("Upgrade vm0 CL
|
|
|
4215
4215
|
if (latestVersion === null) {
|
|
4216
4216
|
throw new Error("Could not check for updates. Please try again later.");
|
|
4217
4217
|
}
|
|
4218
|
-
if (latestVersion === "9.94.
|
|
4219
|
-
console.log(chalk33.green(`\u2713 Already up to date (${"9.94.
|
|
4218
|
+
if (latestVersion === "9.94.3") {
|
|
4219
|
+
console.log(chalk33.green(`\u2713 Already up to date (${"9.94.3"})`));
|
|
4220
4220
|
return;
|
|
4221
4221
|
}
|
|
4222
4222
|
console.log(
|
|
4223
4223
|
chalk33.yellow(
|
|
4224
|
-
`Current version: ${"9.94.
|
|
4224
|
+
`Current version: ${"9.94.3"} -> Latest version: ${latestVersion}`
|
|
4225
4225
|
)
|
|
4226
4226
|
);
|
|
4227
4227
|
console.log();
|
|
@@ -4248,7 +4248,7 @@ var upgradeCommand = new Command42().name("upgrade").description("Upgrade vm0 CL
|
|
|
4248
4248
|
const success = await performUpgrade(packageManager);
|
|
4249
4249
|
if (success) {
|
|
4250
4250
|
console.log(
|
|
4251
|
-
chalk33.green(`\u2713 Upgraded from ${"9.94.
|
|
4251
|
+
chalk33.green(`\u2713 Upgraded from ${"9.94.3"} to ${latestVersion}`)
|
|
4252
4252
|
);
|
|
4253
4253
|
return;
|
|
4254
4254
|
}
|
|
@@ -4316,7 +4316,7 @@ var whoamiCommand = new Command43().name("whoami").description("Show current ide
|
|
|
4316
4316
|
|
|
4317
4317
|
// src/index.ts
|
|
4318
4318
|
var program = new Command44();
|
|
4319
|
-
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.94.
|
|
4319
|
+
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.94.3");
|
|
4320
4320
|
program.addCommand(authCommand);
|
|
4321
4321
|
program.addCommand(infoCommand);
|
|
4322
4322
|
program.addCommand(composeCommand);
|
package/package.json
CHANGED
package/zero.js
CHANGED
|
@@ -102,7 +102,7 @@ import {
|
|
|
102
102
|
updateZeroUserPreferences,
|
|
103
103
|
upsertZeroOrgModelProvider,
|
|
104
104
|
withErrorHandler
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-WBYVVABR.js";
|
|
106
106
|
|
|
107
107
|
// src/zero.ts
|
|
108
108
|
import { Command as Command70 } from "commander";
|
|
@@ -2080,6 +2080,10 @@ Notes:
|
|
|
2080
2080
|
const apiUrl = await getApiUrl();
|
|
2081
2081
|
const platformUrl = toPlatformUrl(apiUrl);
|
|
2082
2082
|
const agentId = process.env.ZERO_AGENT_ID;
|
|
2083
|
+
const tokenPresent = Boolean(process.env[tokenName]);
|
|
2084
|
+
console.log(
|
|
2085
|
+
`${tokenName} is provided by the ${label} connector. Sandbox env: ${tokenPresent ? "present" : "not present"}.`
|
|
2086
|
+
);
|
|
2083
2087
|
const [connector, enabledTypes] = await Promise.all([
|
|
2084
2088
|
getZeroConnector(connectorType).catch(() => {
|
|
2085
2089
|
return null;
|
|
@@ -2090,7 +2094,6 @@ Notes:
|
|
|
2090
2094
|
]);
|
|
2091
2095
|
const isConnected = connector !== null;
|
|
2092
2096
|
const hasPermission = enabledTypes !== null && enabledTypes.includes(connectorType);
|
|
2093
|
-
console.log(`${tokenName} is provided by the ${label} connector.`);
|
|
2094
2097
|
if (!isConnected) {
|
|
2095
2098
|
const url = `${platformUrl.origin}/connectors`;
|
|
2096
2099
|
console.log(
|
|
@@ -2119,7 +2122,7 @@ Notes:
|
|
|
2119
2122
|
} else {
|
|
2120
2123
|
const url = `${platformUrl.origin}/connectors`;
|
|
2121
2124
|
console.log(
|
|
2122
|
-
`The ${label} connector is connected and authorized, but the token is still missing. Ask
|
|
2125
|
+
`The ${label} connector is connected and authorized, but the token is still missing. Ask VM0 developer to resolve this issue. Connector status: [Check ${label} status](${url})`
|
|
2123
2126
|
);
|
|
2124
2127
|
}
|
|
2125
2128
|
})
|
|
@@ -2185,7 +2188,7 @@ Notes:
|
|
|
2185
2188
|
if (permissions.length > 0) {
|
|
2186
2189
|
urlParams.set("permission", permissions[0]);
|
|
2187
2190
|
}
|
|
2188
|
-
const pagePath = agentId ? `/
|
|
2191
|
+
const pagePath = agentId ? `/agents/${agentId}/permissions` : "/agents";
|
|
2189
2192
|
const url = `${platformOrigin}${pagePath}?${urlParams.toString()}`;
|
|
2190
2193
|
console.log(
|
|
2191
2194
|
`The ${label} firewall blocked ${opts.method} ${opts.path}.`
|
|
@@ -2284,7 +2287,7 @@ Notes:
|
|
|
2284
2287
|
ref: firewallRef,
|
|
2285
2288
|
permission: opts.permission
|
|
2286
2289
|
});
|
|
2287
|
-
const pagePath = agentId ? `/
|
|
2290
|
+
const pagePath = agentId ? `/agents/${agentId}/permissions` : "/agents";
|
|
2288
2291
|
const url = `${platformOrigin}${pagePath}?${urlParams.toString()}`;
|
|
2289
2292
|
const role = agentId ? await resolveRole() : "unknown";
|
|
2290
2293
|
if (role === "admin") {
|
|
@@ -4138,7 +4141,7 @@ function registerZeroCommands(prog, commands) {
|
|
|
4138
4141
|
var program = new Command70();
|
|
4139
4142
|
program.name("zero").description(
|
|
4140
4143
|
"Zero CLI \u2014 interact with the zero platform from inside the sandbox"
|
|
4141
|
-
).version("9.94.
|
|
4144
|
+
).version("9.94.3").addHelpText(
|
|
4142
4145
|
"after",
|
|
4143
4146
|
`
|
|
4144
4147
|
Examples:
|