@vm0/cli 9.77.1 → 9.77.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 +94 -12
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -47,7 +47,7 @@ if (DSN) {
47
47
  Sentry.init({
48
48
  dsn: DSN,
49
49
  environment: process.env.SENTRY_ENVIRONMENT ?? "production",
50
- release: "9.77.1",
50
+ release: "9.77.2",
51
51
  sendDefaultPii: false,
52
52
  tracesSampleRate: 0,
53
53
  shutdownTimeout: 500,
@@ -66,7 +66,7 @@ if (DSN) {
66
66
  }
67
67
  });
68
68
  Sentry.setContext("cli", {
69
- version: "9.77.1",
69
+ version: "9.77.2",
70
70
  command: process.argv.slice(2).join(" ")
71
71
  });
72
72
  Sentry.setContext("runtime", {
@@ -13037,6 +13037,18 @@ var zeroConnectorsMainContract = c20.router({
13037
13037
  }
13038
13038
  });
13039
13039
  var zeroConnectorsByTypeContract = c20.router({
13040
+ get: {
13041
+ method: "GET",
13042
+ path: "/api/zero/connectors/:type",
13043
+ headers: authHeadersSchema,
13044
+ pathParams: z28.object({ type: connectorTypeSchema }),
13045
+ responses: {
13046
+ 200: connectorResponseSchema,
13047
+ 401: apiErrorSchema,
13048
+ 404: apiErrorSchema
13049
+ },
13050
+ summary: "Get connector by type (zero proxy)"
13051
+ },
13040
13052
  delete: {
13041
13053
  method: "DELETE",
13042
13054
  path: "/api/zero/connectors/:type",
@@ -13087,6 +13099,76 @@ var zeroConnectorsSearchContract = c20.router({
13087
13099
  summary: "Search available connector types"
13088
13100
  }
13089
13101
  });
13102
+ var zeroConnectorSessionsContract = c20.router({
13103
+ create: {
13104
+ method: "POST",
13105
+ path: "/api/zero/connectors/:type/sessions",
13106
+ headers: authHeadersSchema,
13107
+ pathParams: z28.object({ type: connectorTypeSchema }),
13108
+ body: z28.object({}).optional(),
13109
+ responses: {
13110
+ 200: connectorSessionResponseSchema,
13111
+ 400: apiErrorSchema,
13112
+ 401: apiErrorSchema
13113
+ },
13114
+ summary: "Create connector session for device flow (zero proxy)"
13115
+ }
13116
+ });
13117
+ var zeroConnectorSessionByIdContract = c20.router({
13118
+ get: {
13119
+ method: "GET",
13120
+ path: "/api/zero/connectors/:type/sessions/:sessionId",
13121
+ headers: authHeadersSchema,
13122
+ pathParams: z28.object({
13123
+ type: connectorTypeSchema,
13124
+ sessionId: z28.uuid()
13125
+ }),
13126
+ responses: {
13127
+ 200: connectorSessionStatusResponseSchema,
13128
+ 400: apiErrorSchema,
13129
+ 401: apiErrorSchema,
13130
+ 404: apiErrorSchema
13131
+ },
13132
+ summary: "Get connector session status (zero proxy)"
13133
+ }
13134
+ });
13135
+ var zeroComputerConnectorContract = c20.router({
13136
+ create: {
13137
+ method: "POST",
13138
+ path: "/api/zero/connectors/computer",
13139
+ headers: authHeadersSchema,
13140
+ body: z28.object({}).optional(),
13141
+ responses: {
13142
+ 200: computerConnectorCreateResponseSchema,
13143
+ 400: apiErrorSchema,
13144
+ 401: apiErrorSchema,
13145
+ 409: apiErrorSchema
13146
+ },
13147
+ summary: "Create computer connector (zero proxy)"
13148
+ },
13149
+ get: {
13150
+ method: "GET",
13151
+ path: "/api/zero/connectors/computer",
13152
+ headers: authHeadersSchema,
13153
+ responses: {
13154
+ 200: connectorResponseSchema,
13155
+ 401: apiErrorSchema,
13156
+ 404: apiErrorSchema
13157
+ },
13158
+ summary: "Get computer connector status (zero proxy)"
13159
+ },
13160
+ delete: {
13161
+ method: "DELETE",
13162
+ path: "/api/zero/connectors/computer",
13163
+ headers: authHeadersSchema,
13164
+ responses: {
13165
+ 204: c20.noBody(),
13166
+ 401: apiErrorSchema,
13167
+ 404: apiErrorSchema
13168
+ },
13169
+ summary: "Delete computer connector (zero proxy)"
13170
+ }
13171
+ });
13090
13172
 
13091
13173
  // ../../packages/core/src/contracts/zero-org.ts
13092
13174
  import { z as z29 } from "zod";
@@ -13812,7 +13894,7 @@ var c31 = initContract();
13812
13894
  var integrationsSlackMessageContract = c31.router({
13813
13895
  sendMessage: {
13814
13896
  method: "POST",
13815
- path: "/api/agent/integrations/slack/message",
13897
+ path: "/api/zero/integrations/slack/message",
13816
13898
  headers: authHeadersSchema,
13817
13899
  body: z36.object({
13818
13900
  channel: z36.string().min(1, "Channel ID is required"),
@@ -14581,7 +14663,7 @@ function getConfigPath() {
14581
14663
  return join2(homedir2(), ".vm0", "config.json");
14582
14664
  }
14583
14665
  var infoCommand = new Command6().name("info").description("Display environment and debug information").action(async () => {
14584
- console.log(chalk4.bold(`VM0 CLI v${"9.77.1"}`));
14666
+ console.log(chalk4.bold(`VM0 CLI v${"9.77.2"}`));
14585
14667
  console.log();
14586
14668
  const config = await loadConfig();
14587
14669
  const hasEnvToken = !!process.env.VM0_TOKEN;
@@ -16653,7 +16735,7 @@ var composeCommand = new Command7().name("compose").description("Create or updat
16653
16735
  options.autoUpdate = false;
16654
16736
  }
16655
16737
  if (options.autoUpdate !== false) {
16656
- await startSilentUpgrade("9.77.1");
16738
+ await startSilentUpgrade("9.77.2");
16657
16739
  }
16658
16740
  try {
16659
16741
  let result;
@@ -17488,7 +17570,7 @@ var mainRunCommand = new Command8().name("run").description("Run an agent").argu
17488
17570
  withErrorHandler(
17489
17571
  async (identifier, prompt, options) => {
17490
17572
  if (options.autoUpdate !== false) {
17491
- await startSilentUpgrade("9.77.1");
17573
+ await startSilentUpgrade("9.77.2");
17492
17574
  }
17493
17575
  const { org, name, version } = parseIdentifier(identifier);
17494
17576
  let composeId;
@@ -19244,7 +19326,7 @@ var cookAction = new Command35().name("cook").description("Quick start: prepare,
19244
19326
  withErrorHandler(
19245
19327
  async (prompt, options) => {
19246
19328
  if (options.autoUpdate !== false) {
19247
- const shouldExit = await checkAndUpgrade("9.77.1", prompt);
19329
+ const shouldExit = await checkAndUpgrade("9.77.2", prompt);
19248
19330
  if (shouldExit) {
19249
19331
  process.exit(0);
19250
19332
  }
@@ -21607,13 +21689,13 @@ var upgradeCommand = new Command53().name("upgrade").description("Upgrade vm0 CL
21607
21689
  if (latestVersion === null) {
21608
21690
  throw new Error("Could not check for updates. Please try again later.");
21609
21691
  }
21610
- if (latestVersion === "9.77.1") {
21611
- console.log(chalk48.green(`\u2713 Already up to date (${"9.77.1"})`));
21692
+ if (latestVersion === "9.77.2") {
21693
+ console.log(chalk48.green(`\u2713 Already up to date (${"9.77.2"})`));
21612
21694
  return;
21613
21695
  }
21614
21696
  console.log(
21615
21697
  chalk48.yellow(
21616
- `Current version: ${"9.77.1"} -> Latest version: ${latestVersion}`
21698
+ `Current version: ${"9.77.2"} -> Latest version: ${latestVersion}`
21617
21699
  )
21618
21700
  );
21619
21701
  console.log();
@@ -21640,7 +21722,7 @@ var upgradeCommand = new Command53().name("upgrade").description("Upgrade vm0 CL
21640
21722
  const success = await performUpgrade(packageManager);
21641
21723
  if (success) {
21642
21724
  console.log(
21643
- chalk48.green(`\u2713 Upgraded from ${"9.77.1"} to ${latestVersion}`)
21725
+ chalk48.green(`\u2713 Upgraded from ${"9.77.2"} to ${latestVersion}`)
21644
21726
  );
21645
21727
  return;
21646
21728
  }
@@ -23799,7 +23881,7 @@ var zeroCommand = new Command99("zero").description("Zero platform commands").ad
23799
23881
 
23800
23882
  // src/index.ts
23801
23883
  var program = new Command100();
23802
- program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.77.1");
23884
+ program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.77.2");
23803
23885
  program.addCommand(authCommand);
23804
23886
  program.addCommand(infoCommand);
23805
23887
  program.addCommand(composeCommand);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vm0/cli",
3
- "version": "9.77.1",
3
+ "version": "9.77.2",
4
4
  "description": "CLI application",
5
5
  "repository": {
6
6
  "type": "git",