@vm0/cli 7.0.1 → 7.0.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/index.js +19 -19
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -3142,7 +3142,7 @@ import { initClient as initClient4 } from "@ts-rest/core";
|
|
|
3142
3142
|
async function getScope() {
|
|
3143
3143
|
const config = await getClientConfig();
|
|
3144
3144
|
const client = initClient4(scopeContract, config);
|
|
3145
|
-
const result = await client.get();
|
|
3145
|
+
const result = await client.get({ headers: {} });
|
|
3146
3146
|
if (result.status === 200) {
|
|
3147
3147
|
return result.body;
|
|
3148
3148
|
}
|
|
@@ -3226,7 +3226,7 @@ async function deploySchedule(body) {
|
|
|
3226
3226
|
async function listSchedules() {
|
|
3227
3227
|
const config = await getClientConfig();
|
|
3228
3228
|
const client = initClient6(schedulesMainContract, config);
|
|
3229
|
-
const result = await client.list();
|
|
3229
|
+
const result = await client.list({ headers: {} });
|
|
3230
3230
|
if (result.status === 200) {
|
|
3231
3231
|
return result.body;
|
|
3232
3232
|
}
|
|
@@ -3301,7 +3301,7 @@ import { initClient as initClient7 } from "@ts-rest/core";
|
|
|
3301
3301
|
async function listCredentials() {
|
|
3302
3302
|
const config = await getClientConfig();
|
|
3303
3303
|
const client = initClient7(credentialsMainContract, config);
|
|
3304
|
-
const result = await client.list();
|
|
3304
|
+
const result = await client.list({ headers: {} });
|
|
3305
3305
|
if (result.status === 200) {
|
|
3306
3306
|
return result.body;
|
|
3307
3307
|
}
|
|
@@ -3344,7 +3344,7 @@ import { initClient as initClient8 } from "@ts-rest/core";
|
|
|
3344
3344
|
async function listModelProviders() {
|
|
3345
3345
|
const config = await getClientConfig();
|
|
3346
3346
|
const client = initClient8(modelProvidersMainContract, config);
|
|
3347
|
-
const result = await client.list();
|
|
3347
|
+
const result = await client.list({ headers: {} });
|
|
3348
3348
|
if (result.status === 200) {
|
|
3349
3349
|
return result.body;
|
|
3350
3350
|
}
|
|
@@ -4133,7 +4133,7 @@ function getSecretsFromComposeContent(content) {
|
|
|
4133
4133
|
const grouped = groupVariablesBySource(refs);
|
|
4134
4134
|
return new Set(grouped.secrets.map((r) => r.name));
|
|
4135
4135
|
}
|
|
4136
|
-
var composeCommand = new Command().name("compose").description("Create or update agent compose").argument("<
|
|
4136
|
+
var composeCommand = new Command().name("compose").description("Create or update agent compose (e.g., vm0.yaml)").argument("<agent-yaml>", "Path to agent YAML file").option("-y, --yes", "Skip confirmation prompts for skill requirements").action(async (configFile, options) => {
|
|
4137
4137
|
try {
|
|
4138
4138
|
if (!existsSync3(configFile)) {
|
|
4139
4139
|
console.error(chalk2.red(`\u2717 Config file not found: ${configFile}`));
|
|
@@ -5241,7 +5241,7 @@ var ApiClient = class {
|
|
|
5241
5241
|
baseHeaders: headers,
|
|
5242
5242
|
jsonQuery: true
|
|
5243
5243
|
});
|
|
5244
|
-
const result = await client.get();
|
|
5244
|
+
const result = await client.get({ headers: {} });
|
|
5245
5245
|
if (result.status === 200) {
|
|
5246
5246
|
return result.body;
|
|
5247
5247
|
}
|
|
@@ -5443,7 +5443,7 @@ var ApiClient = class {
|
|
|
5443
5443
|
baseHeaders: headers,
|
|
5444
5444
|
jsonQuery: true
|
|
5445
5445
|
});
|
|
5446
|
-
const result = await client.list();
|
|
5446
|
+
const result = await client.list({ headers: {} });
|
|
5447
5447
|
if (result.status === 200) {
|
|
5448
5448
|
return result.body;
|
|
5449
5449
|
}
|
|
@@ -5690,7 +5690,7 @@ var ApiClient = class {
|
|
|
5690
5690
|
baseHeaders: headers,
|
|
5691
5691
|
jsonQuery: true
|
|
5692
5692
|
});
|
|
5693
|
-
const result = await client.list();
|
|
5693
|
+
const result = await client.list({ headers: {} });
|
|
5694
5694
|
if (result.status === 200) {
|
|
5695
5695
|
return result.body;
|
|
5696
5696
|
}
|
|
@@ -6169,8 +6169,8 @@ function showNextSteps(result) {
|
|
|
6169
6169
|
}
|
|
6170
6170
|
|
|
6171
6171
|
// src/commands/run/run.ts
|
|
6172
|
-
var mainRunCommand = new Command2().name("run").description("
|
|
6173
|
-
"<
|
|
6172
|
+
var mainRunCommand = new Command2().name("run").description("Run an agent").argument(
|
|
6173
|
+
"<agent-name>",
|
|
6174
6174
|
"Agent reference: [scope/]name[:version] (e.g., 'my-agent', 'lancy/my-agent:abc123', 'my-agent:latest')"
|
|
6175
6175
|
).argument("<prompt>", "Prompt for the agent").option(
|
|
6176
6176
|
"--vars <KEY=value>",
|
|
@@ -7168,7 +7168,7 @@ var cloneCommand = new Command10().name("clone").description("Clone a remote vol
|
|
|
7168
7168
|
});
|
|
7169
7169
|
|
|
7170
7170
|
// src/commands/volume/index.ts
|
|
7171
|
-
var volumeCommand = new Command11().name("volume").description("Manage
|
|
7171
|
+
var volumeCommand = new Command11().name("volume").description("Manage volumes (defined in compose, not versioned after run)").addCommand(initCommand).addCommand(pushCommand).addCommand(pullCommand).addCommand(statusCommand).addCommand(listCommand).addCommand(cloneCommand);
|
|
7172
7172
|
|
|
7173
7173
|
// src/commands/artifact/index.ts
|
|
7174
7174
|
import { Command as Command18 } from "commander";
|
|
@@ -7551,7 +7551,7 @@ var cloneCommand2 = new Command17().name("clone").description("Clone a remote ar
|
|
|
7551
7551
|
});
|
|
7552
7552
|
|
|
7553
7553
|
// src/commands/artifact/index.ts
|
|
7554
|
-
var artifactCommand = new Command18().name("artifact").description("Manage
|
|
7554
|
+
var artifactCommand = new Command18().name("artifact").description("Manage artifacts (specified at run, versioned after run)").addCommand(initCommand2).addCommand(pushCommand2).addCommand(pullCommand2).addCommand(statusCommand2).addCommand(listCommand2).addCommand(cloneCommand2);
|
|
7555
7555
|
|
|
7556
7556
|
// src/commands/cook.ts
|
|
7557
7557
|
import { Command as Command19, Option as Option4 } from "commander";
|
|
@@ -7930,7 +7930,7 @@ cookCmd.argument("[prompt]", "Prompt for the agent").option("-y, --yes", "Skip c
|
|
|
7930
7930
|
// eslint-disable-next-line complexity -- TODO: refactor complex function
|
|
7931
7931
|
async (prompt, options) => {
|
|
7932
7932
|
if (!options.noAutoUpdate) {
|
|
7933
|
-
const shouldExit = await checkAndUpgrade("7.0.
|
|
7933
|
+
const shouldExit = await checkAndUpgrade("7.0.2", prompt);
|
|
7934
7934
|
if (shouldExit) {
|
|
7935
7935
|
process.exit(0);
|
|
7936
7936
|
}
|
|
@@ -8559,7 +8559,7 @@ var setCommand = new Command22().name("set").description("Set your scope slug").
|
|
|
8559
8559
|
console.error();
|
|
8560
8560
|
console.error(
|
|
8561
8561
|
chalk27.yellow(
|
|
8562
|
-
"Warning: Changing your scope may break existing
|
|
8562
|
+
"Warning: Changing your scope may break existing agent references."
|
|
8563
8563
|
)
|
|
8564
8564
|
);
|
|
8565
8565
|
process.exit(1);
|
|
@@ -8574,8 +8574,8 @@ var setCommand = new Command22().name("set").description("Set your scope slug").
|
|
|
8574
8574
|
console.log(chalk27.green(`\u2713 Scope created: ${scope.slug}`));
|
|
8575
8575
|
}
|
|
8576
8576
|
console.log();
|
|
8577
|
-
console.log("Your
|
|
8578
|
-
console.log(chalk27.cyan(` ${scope.slug}/<
|
|
8577
|
+
console.log("Your agents will now be namespaced as:");
|
|
8578
|
+
console.log(chalk27.cyan(` ${scope.slug}/<agent-name>`));
|
|
8579
8579
|
} catch (error) {
|
|
8580
8580
|
if (error instanceof Error) {
|
|
8581
8581
|
if (error.message.includes("Not authenticated")) {
|
|
@@ -8608,7 +8608,7 @@ var setCommand = new Command22().name("set").description("Set your scope slug").
|
|
|
8608
8608
|
);
|
|
8609
8609
|
|
|
8610
8610
|
// src/commands/scope/index.ts
|
|
8611
|
-
var scopeCommand = new Command23().name("scope").description("Manage your scope (namespace for
|
|
8611
|
+
var scopeCommand = new Command23().name("scope").description("Manage your scope (namespace for agents)").addCommand(statusCommand3).addCommand(setCommand);
|
|
8612
8612
|
|
|
8613
8613
|
// src/commands/agent/index.ts
|
|
8614
8614
|
import { Command as Command26 } from "commander";
|
|
@@ -11096,7 +11096,7 @@ var modelProviderCommand = new Command46().name("model-provider").description("M
|
|
|
11096
11096
|
|
|
11097
11097
|
// src/index.ts
|
|
11098
11098
|
var program = new Command47();
|
|
11099
|
-
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("7.0.
|
|
11099
|
+
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("7.0.2");
|
|
11100
11100
|
program.command("info").description("Display environment information").action(async () => {
|
|
11101
11101
|
console.log(chalk47.bold("System Information:"));
|
|
11102
11102
|
console.log(`Node Version: ${process.version}`);
|
|
@@ -11105,7 +11105,7 @@ program.command("info").description("Display environment information").action(as
|
|
|
11105
11105
|
const apiUrl = await getApiUrl();
|
|
11106
11106
|
console.log(`API Host: ${apiUrl}`);
|
|
11107
11107
|
});
|
|
11108
|
-
var authCommand = program.command("auth").description("
|
|
11108
|
+
var authCommand = program.command("auth").description("Authenticate vm0");
|
|
11109
11109
|
authCommand.command("login").description("Log in to VM0 (use VM0_API_URL env var to set API URL)").action(async () => {
|
|
11110
11110
|
await authenticate();
|
|
11111
11111
|
});
|