@vm0/cli 9.100.3 → 9.102.0

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.
@@ -49,7 +49,7 @@ if (DSN) {
49
49
  Sentry.init({
50
50
  dsn: DSN,
51
51
  environment: process.env.SENTRY_ENVIRONMENT ?? "production",
52
- release: "9.100.3",
52
+ release: "9.102.0",
53
53
  sendDefaultPii: false,
54
54
  tracesSampleRate: 0,
55
55
  shutdownTimeout: 500,
@@ -68,7 +68,7 @@ if (DSN) {
68
68
  }
69
69
  });
70
70
  Sentry.setContext("cli", {
71
- version: "9.100.3",
71
+ version: "9.102.0",
72
72
  command: process.argv.slice(2).join(" ")
73
73
  });
74
74
  Sentry.setContext("runtime", {
@@ -27370,6 +27370,26 @@ var onboardingCompleteContract = c15.router({
27370
27370
  summary: "Mark member onboarding as complete"
27371
27371
  }
27372
27372
  });
27373
+ var onboardingSetupContract = c15.router({
27374
+ setup: {
27375
+ method: "POST",
27376
+ path: "/api/zero/onboarding/setup",
27377
+ headers: authHeadersSchema,
27378
+ body: z24.object({
27379
+ displayName: z24.string(),
27380
+ workspaceName: z24.string().optional(),
27381
+ sound: z24.string().optional(),
27382
+ avatarUrl: z24.string().optional(),
27383
+ selectedConnectors: z24.array(z24.string()).optional()
27384
+ }),
27385
+ responses: {
27386
+ 200: z24.object({ agentId: z24.string() }),
27387
+ 401: apiErrorSchema,
27388
+ 422: apiErrorSchema
27389
+ },
27390
+ summary: "Complete admin onboarding in a single request"
27391
+ }
27392
+ });
27373
27393
 
27374
27394
  // ../../packages/core/src/contracts/skills.ts
27375
27395
  import { z as z25 } from "zod";
@@ -29458,6 +29478,65 @@ var zeroDeveloperSupportContract = c40.router({
29458
29478
  }
29459
29479
  });
29460
29480
 
29481
+ // ../../packages/core/src/contracts/zero-computer-use.ts
29482
+ import { z as z47 } from "zod";
29483
+ var c41 = initContract();
29484
+ var registerResponseSchema = z47.object({
29485
+ id: z47.string(),
29486
+ domain: z47.string(),
29487
+ token: z47.string(),
29488
+ ngrokToken: z47.string(),
29489
+ endpointPrefix: z47.string()
29490
+ });
29491
+ var hostResponseSchema = z47.object({
29492
+ domain: z47.string(),
29493
+ token: z47.string()
29494
+ });
29495
+ var zeroComputerUseRegisterContract = c41.router({
29496
+ register: {
29497
+ method: "POST",
29498
+ path: "/api/zero/computer-use/register",
29499
+ headers: authHeadersSchema,
29500
+ body: c41.noBody(),
29501
+ responses: {
29502
+ 200: registerResponseSchema,
29503
+ 401: apiErrorSchema,
29504
+ 403: apiErrorSchema,
29505
+ 409: apiErrorSchema
29506
+ },
29507
+ summary: "Register a computer-use host"
29508
+ }
29509
+ });
29510
+ var zeroComputerUseUnregisterContract = c41.router({
29511
+ unregister: {
29512
+ method: "DELETE",
29513
+ path: "/api/zero/computer-use/unregister",
29514
+ headers: authHeadersSchema,
29515
+ body: c41.noBody(),
29516
+ responses: {
29517
+ 204: c41.noBody(),
29518
+ 401: apiErrorSchema,
29519
+ 403: apiErrorSchema,
29520
+ 404: apiErrorSchema
29521
+ },
29522
+ summary: "Unregister a computer-use host"
29523
+ }
29524
+ });
29525
+ var zeroComputerUseHostContract = c41.router({
29526
+ getHost: {
29527
+ method: "GET",
29528
+ path: "/api/zero/computer-use/host",
29529
+ headers: authHeadersSchema,
29530
+ responses: {
29531
+ 200: hostResponseSchema,
29532
+ 401: apiErrorSchema,
29533
+ 403: apiErrorSchema,
29534
+ 404: apiErrorSchema
29535
+ },
29536
+ summary: "Get computer-use host for the current user"
29537
+ }
29538
+ });
29539
+
29461
29540
  // ../../packages/core/src/storage-names.ts
29462
29541
  function getInstructionsStorageName(agentName) {
29463
29542
  return `agent-instructions@${agentName}`;
@@ -29737,6 +29816,12 @@ var FEATURE_SWITCHES = {
29737
29816
  maintainer: "ethan@vm0.ai",
29738
29817
  enabled: false,
29739
29818
  enabledOrgIdHashes: STAFF_ORG_ID_HASHES
29819
+ },
29820
+ ["computerUse" /* ComputerUse */]: {
29821
+ maintainer: "ethan@vm0.ai",
29822
+ enabled: false,
29823
+ enabledUserHashes: STAFF_USER_HASHES,
29824
+ enabledOrgIdHashes: STAFF_ORG_ID_HASHES
29740
29825
  }
29741
29826
  };
29742
29827
  async function isFeatureEnabled(key, ctx) {
@@ -30896,6 +30981,39 @@ async function getAskUserAnswer(pendingId) {
30896
30981
  handleError(result, "Failed to get answer");
30897
30982
  }
30898
30983
 
30984
+ // src/lib/api/domains/zero-computer-use.ts
30985
+ import { initClient as initClient23 } from "@ts-rest/core";
30986
+ async function registerComputerUseHost() {
30987
+ const config = await getClientConfig();
30988
+ const client = initClient23(zeroComputerUseRegisterContract, config);
30989
+ const result = await client.register({});
30990
+ if (result.status === 200) {
30991
+ return result.body;
30992
+ }
30993
+ handleError(result, "Failed to register computer-use host");
30994
+ }
30995
+ async function unregisterComputerUseHost() {
30996
+ const config = await getClientConfig();
30997
+ const client = initClient23(zeroComputerUseUnregisterContract, config);
30998
+ const result = await client.unregister({});
30999
+ if (result.status === 204) {
31000
+ return;
31001
+ }
31002
+ handleError(result, "Failed to unregister computer-use host");
31003
+ }
31004
+ async function getComputerUseHost() {
31005
+ const config = await getClientConfig();
31006
+ const client = initClient23(zeroComputerUseHostContract, config);
31007
+ const result = await client.getHost({});
31008
+ if (result.status === 200) {
31009
+ return result.body;
31010
+ }
31011
+ if (result.status === 404) {
31012
+ return null;
31013
+ }
31014
+ handleError(result, "Failed to get computer-use host");
31015
+ }
31016
+
30899
31017
  // src/lib/utils/prompt-utils.ts
30900
31018
  import prompts from "prompts";
30901
31019
  function isInteractive() {
@@ -31969,6 +32087,9 @@ export {
31969
32087
  getAskUserAnswer,
31970
32088
  requestDeveloperSupportConsent,
31971
32089
  submitDeveloperSupport,
32090
+ registerComputerUseHost,
32091
+ unregisterComputerUseHost,
32092
+ getComputerUseHost,
31972
32093
  isInteractive,
31973
32094
  promptText,
31974
32095
  promptConfirm,
@@ -31991,4 +32112,4 @@ export {
31991
32112
  parseTime,
31992
32113
  paginate
31993
32114
  };
31994
- //# sourceMappingURL=chunk-2LDZF5WC.js.map
32115
+ //# sourceMappingURL=chunk-KBGMCHAA.js.map