@vm0/cli 9.160.4 → 9.160.5
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-MO4QBOYJ.js → chunk-VQV2QUPA.js} +14 -7
- package/{chunk-MO4QBOYJ.js.map → chunk-VQV2QUPA.js.map} +1 -1
- package/index.js +9 -9
- package/package.json +1 -1
- package/zero.js +12 -8
- package/zero.js.map +1 -1
package/index.js
CHANGED
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
source_default,
|
|
69
69
|
volumeConfigSchema,
|
|
70
70
|
withErrorHandler
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-VQV2QUPA.js";
|
|
72
72
|
import {
|
|
73
73
|
__toESM,
|
|
74
74
|
init_esm_shims
|
|
@@ -387,7 +387,7 @@ function getConfigPath() {
|
|
|
387
387
|
return join(os.homedir(), ".vm0", "config.json");
|
|
388
388
|
}
|
|
389
389
|
var infoCommand = new Command().name("info").description("Display environment and debug information").action(async () => {
|
|
390
|
-
console.log(source_default.bold(`VM0 CLI v${"9.160.
|
|
390
|
+
console.log(source_default.bold(`VM0 CLI v${"9.160.5"}`));
|
|
391
391
|
console.log();
|
|
392
392
|
const config = await loadConfig();
|
|
393
393
|
const hasEnvToken = !!process.env.VM0_TOKEN;
|
|
@@ -4280,7 +4280,7 @@ var composeCommand = new Command().name("compose").description("Create or update
|
|
|
4280
4280
|
options.autoUpdate = false;
|
|
4281
4281
|
}
|
|
4282
4282
|
if (options.autoUpdate !== false) {
|
|
4283
|
-
await startSilentUpgrade("9.160.
|
|
4283
|
+
await startSilentUpgrade("9.160.5");
|
|
4284
4284
|
}
|
|
4285
4285
|
try {
|
|
4286
4286
|
let result;
|
|
@@ -4372,7 +4372,7 @@ var mainRunCommand = new Command().name("run").description("Run an agent").argum
|
|
|
4372
4372
|
withErrorHandler(
|
|
4373
4373
|
async (identifier, prompt, options) => {
|
|
4374
4374
|
if (options.autoUpdate !== false) {
|
|
4375
|
-
await startSilentUpgrade("9.160.
|
|
4375
|
+
await startSilentUpgrade("9.160.5");
|
|
4376
4376
|
}
|
|
4377
4377
|
const { name, version } = parseIdentifier(identifier);
|
|
4378
4378
|
let composeId;
|
|
@@ -6165,13 +6165,13 @@ var upgradeCommand = new Command().name("upgrade").description("Upgrade vm0 CLI
|
|
|
6165
6165
|
if (latestVersion === null) {
|
|
6166
6166
|
throw new Error("Could not check for updates. Please try again later.");
|
|
6167
6167
|
}
|
|
6168
|
-
if (latestVersion === "9.160.
|
|
6169
|
-
console.log(source_default.green(`\u2713 Already up to date (${"9.160.
|
|
6168
|
+
if (latestVersion === "9.160.5") {
|
|
6169
|
+
console.log(source_default.green(`\u2713 Already up to date (${"9.160.5"})`));
|
|
6170
6170
|
return;
|
|
6171
6171
|
}
|
|
6172
6172
|
console.log(
|
|
6173
6173
|
source_default.yellow(
|
|
6174
|
-
`Current version: ${"9.160.
|
|
6174
|
+
`Current version: ${"9.160.5"} -> Latest version: ${latestVersion}`
|
|
6175
6175
|
)
|
|
6176
6176
|
);
|
|
6177
6177
|
console.log();
|
|
@@ -6198,7 +6198,7 @@ var upgradeCommand = new Command().name("upgrade").description("Upgrade vm0 CLI
|
|
|
6198
6198
|
const success = await performUpgrade(packageManager);
|
|
6199
6199
|
if (success) {
|
|
6200
6200
|
console.log(
|
|
6201
|
-
source_default.green(`\u2713 Upgraded from ${"9.160.
|
|
6201
|
+
source_default.green(`\u2713 Upgraded from ${"9.160.5"} to ${latestVersion}`)
|
|
6202
6202
|
);
|
|
6203
6203
|
return;
|
|
6204
6204
|
}
|
|
@@ -6265,7 +6265,7 @@ var whoamiCommand = new Command().name("whoami").description("Show current ident
|
|
|
6265
6265
|
|
|
6266
6266
|
// src/index.ts
|
|
6267
6267
|
var program = new Command();
|
|
6268
|
-
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.160.
|
|
6268
|
+
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.160.5");
|
|
6269
6269
|
program.addCommand(authCommand);
|
|
6270
6270
|
program.addCommand(infoCommand);
|
|
6271
6271
|
program.addCommand(composeCommand);
|
package/package.json
CHANGED
package/zero.js
CHANGED
|
@@ -4,6 +4,7 @@ const require = __createRequire(import.meta.url);
|
|
|
4
4
|
import {
|
|
5
5
|
ApiRequestError,
|
|
6
6
|
CONNECTOR_TYPES,
|
|
7
|
+
CONNECTOR_TYPE_KEYS,
|
|
7
8
|
Command,
|
|
8
9
|
EventRenderer,
|
|
9
10
|
EventStreamNormalizer,
|
|
@@ -58,6 +59,7 @@ import {
|
|
|
58
59
|
getConnectorDerivedNames,
|
|
59
60
|
getConnectorEnvironmentMapping,
|
|
60
61
|
getConnectorFirewall,
|
|
62
|
+
getConnectorGenerationTypes,
|
|
61
63
|
getConnectorTypeForSecretName,
|
|
62
64
|
getDefaultAuthMethod,
|
|
63
65
|
getLocalBrowserReadCommand,
|
|
@@ -146,7 +148,7 @@ import {
|
|
|
146
148
|
zeroAgentCustomSkillNameSchema,
|
|
147
149
|
zeroLocalAgentCommand,
|
|
148
150
|
zeroTokenAllowsFeatureSwitch
|
|
149
|
-
} from "./chunk-
|
|
151
|
+
} from "./chunk-VQV2QUPA.js";
|
|
150
152
|
import {
|
|
151
153
|
__commonJS,
|
|
152
154
|
__require,
|
|
@@ -29803,7 +29805,7 @@ var statusCommand2 = new Command().name("status").description("Show detailed sta
|
|
|
29803
29805
|
withErrorHandler(async (type, options) => {
|
|
29804
29806
|
const parseResult = connectorTypeSchema.safeParse(type);
|
|
29805
29807
|
if (!parseResult.success) {
|
|
29806
|
-
const available =
|
|
29808
|
+
const available = CONNECTOR_TYPE_KEYS.join(", ");
|
|
29807
29809
|
throw new Error(`Unknown connector type: ${type}`, {
|
|
29808
29810
|
cause: new Error(`Available connectors: ${available}`)
|
|
29809
29811
|
});
|
|
@@ -29832,7 +29834,7 @@ init_esm_shims();
|
|
|
29832
29834
|
// src/commands/zero/doctor/check-connector.ts
|
|
29833
29835
|
init_esm_shims();
|
|
29834
29836
|
function resolveConnectorFromUrl(url) {
|
|
29835
|
-
const allTypes =
|
|
29837
|
+
const allTypes = CONNECTOR_TYPE_KEYS;
|
|
29836
29838
|
const normalized = url.endsWith("/") ? url.slice(0, -1) : url;
|
|
29837
29839
|
let bestMatch = null;
|
|
29838
29840
|
for (const type of allTypes) {
|
|
@@ -30420,8 +30422,8 @@ function getBuiltInCommand(generationType) {
|
|
|
30420
30422
|
}
|
|
30421
30423
|
function getAvailableGenerationTypes() {
|
|
30422
30424
|
const available = /* @__PURE__ */ new Set();
|
|
30423
|
-
for (const
|
|
30424
|
-
for (const generationType of
|
|
30425
|
+
for (const type of CONNECTOR_TYPE_KEYS) {
|
|
30426
|
+
for (const generationType of getConnectorGenerationTypes(type)) {
|
|
30425
30427
|
available.add(generationType);
|
|
30426
30428
|
}
|
|
30427
30429
|
}
|
|
@@ -30439,8 +30441,10 @@ function parseGenerationType(value) {
|
|
|
30439
30441
|
});
|
|
30440
30442
|
}
|
|
30441
30443
|
function getGenerationConnectors(generationType) {
|
|
30442
|
-
return
|
|
30443
|
-
return
|
|
30444
|
+
return CONNECTOR_TYPE_KEYS.map((type) => {
|
|
30445
|
+
return [type, CONNECTOR_TYPES[type]];
|
|
30446
|
+
}).filter(([type]) => {
|
|
30447
|
+
return getConnectorGenerationTypes(type).includes(generationType);
|
|
30444
30448
|
}).sort(([a], [b]) => {
|
|
30445
30449
|
return a.localeCompare(b);
|
|
30446
30450
|
});
|
|
@@ -36844,7 +36848,7 @@ function registerZeroCommands(prog, commands) {
|
|
|
36844
36848
|
var program = new Command();
|
|
36845
36849
|
program.name("zero").description(
|
|
36846
36850
|
"Zero CLI \u2014 interact with the zero platform from inside the sandbox"
|
|
36847
|
-
).version("9.160.
|
|
36851
|
+
).version("9.160.5").addHelpText("after", () => {
|
|
36848
36852
|
return buildZeroHelpText();
|
|
36849
36853
|
});
|
|
36850
36854
|
if (process.argv[1]?.endsWith("zero.js") || process.argv[1]?.endsWith("zero.ts") || process.argv[1]?.endsWith("zero")) {
|