@vm0/cli 9.64.1 → 9.64.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.
Files changed (2) hide show
  1. package/index.js +29 -57
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -45,7 +45,7 @@ if (DSN) {
45
45
  Sentry.init({
46
46
  dsn: DSN,
47
47
  environment: process.env.SENTRY_ENVIRONMENT ?? "production",
48
- release: "9.64.1",
48
+ release: "9.64.2",
49
49
  sendDefaultPii: false,
50
50
  tracesSampleRate: 0,
51
51
  shutdownTimeout: 500,
@@ -64,7 +64,7 @@ if (DSN) {
64
64
  }
65
65
  });
66
66
  Sentry.setContext("cli", {
67
- version: "9.64.1",
67
+ version: "9.64.2",
68
68
  command: process.argv.slice(2).join(" ")
69
69
  });
70
70
  Sentry.setContext("runtime", {
@@ -675,7 +675,7 @@ function getConfigPath() {
675
675
  return join2(homedir2(), ".vm0", "config.json");
676
676
  }
677
677
  var infoCommand = new Command6().name("info").description("Display environment and debug information").action(async () => {
678
- console.log(chalk4.bold(`VM0 CLI v${"9.64.1"}`));
678
+ console.log(chalk4.bold(`VM0 CLI v${"9.64.2"}`));
679
679
  console.log();
680
680
  const config = await loadConfig();
681
681
  const hasEnvToken = !!process.env.VM0_TOKEN;
@@ -3823,7 +3823,7 @@ var platformLogDetailSchema = z21.object({
3823
3823
  var platformLogsListContract = c18.router({
3824
3824
  list: {
3825
3825
  method: "GET",
3826
- path: "/api/platform/logs",
3826
+ path: "/api/app/logs",
3827
3827
  query: listQuerySchema.extend({
3828
3828
  search: z21.string().optional(),
3829
3829
  agent: z21.string().optional(),
@@ -3841,7 +3841,7 @@ var platformLogsListContract = c18.router({
3841
3841
  var platformLogsByIdContract = c18.router({
3842
3842
  getById: {
3843
3843
  method: "GET",
3844
- path: "/api/platform/logs/:id",
3844
+ path: "/api/app/logs/:id",
3845
3845
  headers: authHeadersSchema,
3846
3846
  pathParams: z21.object({
3847
3847
  id: z21.string().uuid("Invalid log ID")
@@ -3861,7 +3861,7 @@ var artifactDownloadResponseSchema = z21.object({
3861
3861
  var platformArtifactDownloadContract = c18.router({
3862
3862
  getDownloadUrl: {
3863
3863
  method: "GET",
3864
- path: "/api/platform/artifacts/download",
3864
+ path: "/api/app/artifacts/download",
3865
3865
  query: z21.object({
3866
3866
  name: z21.string().min(1, "Artifact name is required"),
3867
3867
  version: z21.string().optional()
@@ -7208,6 +7208,7 @@ import { z as z26 } from "zod";
7208
7208
  var c23 = initContract();
7209
7209
  var onboardingStatusResponseSchema = z26.object({
7210
7210
  needsOnboarding: z26.boolean(),
7211
+ isAdmin: z26.boolean(),
7211
7212
  hasOrg: z26.boolean(),
7212
7213
  hasModelProvider: z26.boolean(),
7213
7214
  hasDefaultAgent: z26.boolean(),
@@ -7217,7 +7218,8 @@ var onboardingStatusResponseSchema = z26.object({
7217
7218
  displayName: z26.string().optional(),
7218
7219
  description: z26.string().optional(),
7219
7220
  sound: z26.string().optional()
7220
- }).nullable()
7221
+ }).nullable(),
7222
+ defaultAgentSkills: z26.array(z26.string())
7221
7223
  });
7222
7224
  var onboardingStatusContract = c23.router({
7223
7225
  getStatus: {
@@ -9980,7 +9982,7 @@ var composeCommand = new Command7().name("compose").description("Create or updat
9980
9982
  options.autoUpdate = false;
9981
9983
  }
9982
9984
  if (options.autoUpdate !== false) {
9983
- await startSilentUpgrade("9.64.1");
9985
+ await startSilentUpgrade("9.64.2");
9984
9986
  }
9985
9987
  try {
9986
9988
  let result;
@@ -10802,7 +10804,7 @@ var mainRunCommand = new Command8().name("run").description("Run an agent").argu
10802
10804
  withErrorHandler(
10803
10805
  async (identifier, prompt, options) => {
10804
10806
  if (options.autoUpdate !== false) {
10805
- await startSilentUpgrade("9.64.1");
10807
+ await startSilentUpgrade("9.64.2");
10806
10808
  }
10807
10809
  const { org, name, version } = parseIdentifier(identifier);
10808
10810
  let composeId;
@@ -12522,7 +12524,7 @@ var cookAction = new Command35().name("cook").description("Quick start: prepare,
12522
12524
  withErrorHandler(
12523
12525
  async (prompt, options) => {
12524
12526
  if (options.autoUpdate !== false) {
12525
- const shouldExit = await checkAndUpgrade("9.64.1", prompt);
12527
+ const shouldExit = await checkAndUpgrade("9.64.2", prompt);
12526
12528
  if (shouldExit) {
12527
12529
  process.exit(0);
12528
12530
  }
@@ -12835,13 +12837,8 @@ var ApiClient = class {
12835
12837
  throw new Error(message);
12836
12838
  }
12837
12839
  async getEvents(runId, options) {
12838
- const baseUrl = await this.getBaseUrl();
12839
- const headers = await this.getHeaders();
12840
- const client = initClient15(runEventsContract, {
12841
- baseUrl,
12842
- baseHeaders: headers,
12843
- jsonQuery: false
12844
- });
12840
+ const config = await getClientConfig();
12841
+ const client = initClient15(runEventsContract, config);
12845
12842
  const result = await client.getEvents({
12846
12843
  params: { id: runId },
12847
12844
  query: {
@@ -12857,13 +12854,8 @@ var ApiClient = class {
12857
12854
  throw new Error(message);
12858
12855
  }
12859
12856
  async getSystemLog(runId, options) {
12860
- const baseUrl = await this.getBaseUrl();
12861
- const headers = await this.getHeaders();
12862
- const client = initClient15(runSystemLogContract, {
12863
- baseUrl,
12864
- baseHeaders: headers,
12865
- jsonQuery: false
12866
- });
12857
+ const config = await getClientConfig();
12858
+ const client = initClient15(runSystemLogContract, config);
12867
12859
  const result = await client.getSystemLog({
12868
12860
  params: { id: runId },
12869
12861
  query: {
@@ -12880,13 +12872,8 @@ var ApiClient = class {
12880
12872
  throw new Error(message);
12881
12873
  }
12882
12874
  async getMetrics(runId, options) {
12883
- const baseUrl = await this.getBaseUrl();
12884
- const headers = await this.getHeaders();
12885
- const client = initClient15(runMetricsContract, {
12886
- baseUrl,
12887
- baseHeaders: headers,
12888
- jsonQuery: false
12889
- });
12875
+ const config = await getClientConfig();
12876
+ const client = initClient15(runMetricsContract, config);
12890
12877
  const result = await client.getMetrics({
12891
12878
  params: { id: runId },
12892
12879
  query: {
@@ -12903,13 +12890,8 @@ var ApiClient = class {
12903
12890
  throw new Error(message);
12904
12891
  }
12905
12892
  async getAgentEvents(runId, options) {
12906
- const baseUrl = await this.getBaseUrl();
12907
- const headers = await this.getHeaders();
12908
- const client = initClient15(runAgentEventsContract, {
12909
- baseUrl,
12910
- baseHeaders: headers,
12911
- jsonQuery: false
12912
- });
12893
+ const config = await getClientConfig();
12894
+ const client = initClient15(runAgentEventsContract, config);
12913
12895
  const result = await client.getAgentEvents({
12914
12896
  params: { id: runId },
12915
12897
  query: {
@@ -12926,13 +12908,8 @@ var ApiClient = class {
12926
12908
  throw new Error(message);
12927
12909
  }
12928
12910
  async getNetworkLogs(runId, options) {
12929
- const baseUrl = await this.getBaseUrl();
12930
- const headers = await this.getHeaders();
12931
- const client = initClient15(runNetworkLogsContract, {
12932
- baseUrl,
12933
- baseHeaders: headers,
12934
- jsonQuery: false
12935
- });
12911
+ const config = await getClientConfig();
12912
+ const client = initClient15(runNetworkLogsContract, config);
12936
12913
  const result = await client.getNetworkLogs({
12937
12914
  params: { id: runId },
12938
12915
  query: {
@@ -13013,13 +12990,8 @@ var ApiClient = class {
13013
12990
  * Used by run resume to fetch checkpoint info including secretNames
13014
12991
  */
13015
12992
  async getCheckpoint(checkpointId) {
13016
- const baseUrl = await this.getBaseUrl();
13017
- const headers = await this.getHeaders();
13018
- const client = initClient15(checkpointsByIdContract, {
13019
- baseUrl,
13020
- baseHeaders: headers,
13021
- jsonQuery: false
13022
- });
12993
+ const config = await getClientConfig();
12994
+ const client = initClient15(checkpointsByIdContract, config);
13023
12995
  const result = await client.getById({
13024
12996
  params: { id: checkpointId }
13025
12997
  });
@@ -18147,13 +18119,13 @@ var upgradeCommand = new Command99().name("upgrade").description("Upgrade vm0 CL
18147
18119
  if (latestVersion === null) {
18148
18120
  throw new Error("Could not check for updates. Please try again later.");
18149
18121
  }
18150
- if (latestVersion === "9.64.1") {
18151
- console.log(chalk90.green(`\u2713 Already up to date (${"9.64.1"})`));
18122
+ if (latestVersion === "9.64.2") {
18123
+ console.log(chalk90.green(`\u2713 Already up to date (${"9.64.2"})`));
18152
18124
  return;
18153
18125
  }
18154
18126
  console.log(
18155
18127
  chalk90.yellow(
18156
- `Current version: ${"9.64.1"} -> Latest version: ${latestVersion}`
18128
+ `Current version: ${"9.64.2"} -> Latest version: ${latestVersion}`
18157
18129
  )
18158
18130
  );
18159
18131
  console.log();
@@ -18180,7 +18152,7 @@ var upgradeCommand = new Command99().name("upgrade").description("Upgrade vm0 CL
18180
18152
  const success = await performUpgrade(packageManager);
18181
18153
  if (success) {
18182
18154
  console.log(
18183
- chalk90.green(`\u2713 Upgraded from ${"9.64.1"} to ${latestVersion}`)
18155
+ chalk90.green(`\u2713 Upgraded from ${"9.64.2"} to ${latestVersion}`)
18184
18156
  );
18185
18157
  return;
18186
18158
  }
@@ -18194,7 +18166,7 @@ var upgradeCommand = new Command99().name("upgrade").description("Upgrade vm0 CL
18194
18166
 
18195
18167
  // src/index.ts
18196
18168
  var program = new Command100();
18197
- program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.64.1");
18169
+ program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.64.2");
18198
18170
  program.addCommand(authCommand);
18199
18171
  program.addCommand(infoCommand);
18200
18172
  program.addCommand(composeCommand);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vm0/cli",
3
- "version": "9.64.1",
3
+ "version": "9.64.2",
4
4
  "description": "CLI application",
5
5
  "repository": {
6
6
  "type": "git",