@vm0/cli 9.163.1 → 9.163.3

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.
@@ -74083,7 +74083,7 @@ if (DSN) {
74083
74083
  init2({
74084
74084
  dsn: DSN,
74085
74085
  environment: process.env.SENTRY_ENVIRONMENT ?? "production",
74086
- release: "9.163.1",
74086
+ release: "9.163.3",
74087
74087
  sendDefaultPii: false,
74088
74088
  tracesSampleRate: 0,
74089
74089
  shutdownTimeout: 500,
@@ -74102,7 +74102,7 @@ if (DSN) {
74102
74102
  }
74103
74103
  });
74104
74104
  setContext("cli", {
74105
- version: "9.163.1",
74105
+ version: "9.163.3",
74106
74106
  command: process.argv.slice(2).join(" ")
74107
74107
  });
74108
74108
  setContext("runtime", {
@@ -107333,12 +107333,6 @@ var zoom = {
107333
107333
  };
107334
107334
 
107335
107335
  // ../../packages/connectors/src/connectors.ts
107336
- var CONNECTOR_AUTH_METHOD_TYPES = [
107337
- "oauth",
107338
- "api-token",
107339
- "api",
107340
- "cli-auth"
107341
- ];
107342
107336
  var CONNECTOR_TYPES_DEF = {
107343
107337
  ...github,
107344
107338
  ...gmail,
@@ -111244,6 +111238,11 @@ var computerUseHeartbeatResponseSchema = external_exports.object({
111244
111238
  ok: external_exports.literal(true),
111245
111239
  hostId: external_exports.string()
111246
111240
  });
111241
+ var computerUseHostStopBodySchema = external_exports.object({});
111242
+ var computerUseHostStopResponseSchema = external_exports.object({
111243
+ ok: external_exports.literal(true),
111244
+ hostId: external_exports.string()
111245
+ });
111247
111246
  var computerUseHostListResponseSchema = external_exports.object({
111248
111247
  hosts: external_exports.array(computerUseHostSchema)
111249
111248
  });
@@ -111368,9 +111367,21 @@ var zeroComputerUseHeartbeatContract = c27.router({
111368
111367
  body: computerUseRuntimeBodySchema,
111369
111368
  responses: {
111370
111369
  200: computerUseHeartbeatResponseSchema,
111371
- 401: apiErrorSchema
111370
+ 401: apiErrorSchema,
111371
+ 409: apiErrorSchema
111372
111372
  },
111373
111373
  summary: "Refresh a desktop computer-use host heartbeat"
111374
+ },
111375
+ stop: {
111376
+ method: "POST",
111377
+ path: "/api/zero/computer-use/host/stop",
111378
+ headers: authHeadersSchema,
111379
+ body: computerUseHostStopBodySchema,
111380
+ responses: {
111381
+ 200: computerUseHostStopResponseSchema,
111382
+ 401: apiErrorSchema
111383
+ },
111384
+ summary: "Stop a desktop computer-use host"
111374
111385
  }
111375
111386
  });
111376
111387
  var zeroComputerUseCommandContract = c27.router({
@@ -117804,11 +117815,18 @@ var GOOGLE_OAUTH_CONNECTOR_TYPES = [
117804
117815
  var GOOGLE_OAUTH_CONNECTOR_TYPE_SET = new Set(GOOGLE_OAUTH_CONNECTOR_TYPES);
117805
117816
 
117806
117817
  // ../../packages/connectors/src/connector-utils.ts
117807
- function getConnectorAuthMethods(type) {
117808
- return CONNECTOR_TYPES[type].authMethods;
117818
+ function lookupConnectorAuthMethod(type, authMethod) {
117819
+ for (const [methodId, method] of Object.entries(
117820
+ CONNECTOR_TYPES[type].authMethods
117821
+ )) {
117822
+ if (methodId === authMethod) {
117823
+ return method;
117824
+ }
117825
+ }
117826
+ return void 0;
117809
117827
  }
117810
117828
  function getConnectorAuthMethod(type, authMethod) {
117811
- return getConnectorAuthMethods(type)[authMethod];
117829
+ return lookupConnectorAuthMethod(type, authMethod);
117812
117830
  }
117813
117831
  function connectorAuthMethodValues(type) {
117814
117832
  return Object.values(CONNECTOR_TYPES[type].authMethods);
@@ -117869,8 +117887,7 @@ function getConnectorGenerationTypes(type) {
117869
117887
  const config4 = CONNECTOR_TYPES[type];
117870
117888
  return "generation" in config4 ? config4.generation ?? [] : [];
117871
117889
  }
117872
- function getConnectorSecretNames(type, authMethod) {
117873
- const method = getConnectorAuthMethod(type, authMethod);
117890
+ function connectorMethodSecretNames(method) {
117874
117891
  if (!method) {
117875
117892
  return [];
117876
117893
  }
@@ -117906,8 +117923,8 @@ function getConnectorDerivedNames(secretName) {
117906
117923
  const allTypes = CONNECTOR_TYPE_KEYS;
117907
117924
  for (const type of allTypes) {
117908
117925
  const config4 = CONNECTOR_TYPES[type];
117909
- const found = CONNECTOR_AUTH_METHOD_TYPES.some((authMethod) => {
117910
- return getConnectorSecretNames(type, authMethod).includes(secretName);
117926
+ const found = Object.values(config4.authMethods).some((method) => {
117927
+ return connectorMethodSecretNames(method).includes(secretName);
117911
117928
  });
117912
117929
  if (!found) {
117913
117930
  continue;
@@ -117961,8 +117978,8 @@ function getConnectorTypeForSecretName(name) {
117961
117978
  return type;
117962
117979
  }
117963
117980
  }
117964
- for (const authMethod of CONNECTOR_AUTH_METHOD_TYPES) {
117965
- if (getConnectorSecretNames(type, authMethod).includes(name)) {
117981
+ for (const method of Object.values(config4.authMethods)) {
117982
+ if (connectorMethodSecretNames(method).includes(name)) {
117966
117983
  return type;
117967
117984
  }
117968
117985
  }
@@ -135335,4 +135352,4 @@ undici/lib/web/fetch/body.js:
135335
135352
  undici/lib/web/websocket/frame.js:
135336
135353
  (*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
135337
135354
  */
135338
- //# sourceMappingURL=chunk-SOKXIK7S.js.map
135355
+ //# sourceMappingURL=chunk-5CUISL3U.js.map