@vm0/cli 9.162.1 → 9.162.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.
@@ -74083,7 +74083,7 @@ if (DSN) {
74083
74083
  init2({
74084
74084
  dsn: DSN,
74085
74085
  environment: process.env.SENTRY_ENVIRONMENT ?? "production",
74086
- release: "9.162.1",
74086
+ release: "9.162.2",
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.162.1",
74105
+ version: "9.162.2",
74106
74106
  command: process.argv.slice(2).join(" ")
74107
74107
  });
74108
74108
  setContext("runtime", {
@@ -74444,7 +74444,7 @@ var FEATURE_SWITCHES = {
74444
74444
  ["chatMarkdownMath" /* ChatMarkdownMath */]: {
74445
74445
  maintainer: "ethan@vm0.ai",
74446
74446
  description: "Enable synchronous math rendering for inline and block formulas in chat Markdown.",
74447
- enabled: false
74447
+ enabled: true
74448
74448
  },
74449
74449
  ["chatThreadRename" /* ChatThreadRename */]: {
74450
74450
  maintainer: "ethan@vm0.ai",
@@ -74485,9 +74485,8 @@ var FEATURE_SWITCHES = {
74485
74485
  },
74486
74486
  ["connectorCategories" /* ConnectorCategories */]: {
74487
74487
  maintainer: "ethan@vm0.ai",
74488
- description: "Show category sections and the hover-reveal outline menu on the Connectors settings page. Staff-only during rollout.",
74489
- enabled: false,
74490
- enabledOrgIdHashes: STAFF_ORG_ID_HASHES
74488
+ description: "Show category sections and the hover-reveal outline menu on the Connectors settings page.",
74489
+ enabled: true
74491
74490
  },
74492
74491
  ["zapierConnector" /* ZapierConnector */]: {
74493
74492
  maintainer: "ethan@vm0.ai",
@@ -74511,11 +74510,6 @@ var FEATURE_SWITCHES = {
74511
74510
  description: "Enable managed Zero Maps CLI access for geocoding, directions, and places. Staff-only during rollout.",
74512
74511
  enabled: false,
74513
74512
  enabledOrgIdHashes: STAFF_ORG_ID_HASHES
74514
- },
74515
- ["agentsPageSplitSections" /* AgentsPageSplitSections */]: {
74516
- maintainer: "ethan@vm0.ai",
74517
- description: "Split the Agents page into separate Public and Private sections, each with its own heading and Create button. The Public section also shows a remaining-slot counter with a workspace cap tooltip and disables creation once the cap is reached.",
74518
- enabled: true
74519
74513
  }
74520
74514
  };
74521
74515
  function isFeatureEnabled(key, ctx) {
@@ -117872,19 +117866,18 @@ function authMethodAccessPriority(method) {
117872
117866
  return 0;
117873
117867
  }
117874
117868
  }
117875
- function getConnectorOAuthGrant(type) {
117876
- for (const method of connectorAuthMethodValues(type)) {
117877
- switch (method.grant.kind) {
117878
- case "auth-code":
117879
- case "device-auth":
117880
- return method.grant;
117881
- case "manual":
117882
- case "managed":
117883
- case "interactive-pairing":
117884
- continue;
117885
- }
117869
+ function getConnectorOAuthGrantConfigIfSupported(type) {
117870
+ const method = getConnectorAuthMethod(type, "oauth");
117871
+ switch (method?.grant.kind) {
117872
+ case "auth-code":
117873
+ case "device-auth":
117874
+ return method.grant;
117875
+ case "manual":
117876
+ case "managed":
117877
+ case "interactive-pairing":
117878
+ case void 0:
117879
+ return void 0;
117886
117880
  }
117887
- return void 0;
117888
117881
  }
117889
117882
  function getConnectorGenerationTypes(type) {
117890
117883
  const config4 = CONNECTOR_TYPES[type];
@@ -117945,41 +117938,20 @@ function getConnectorDerivedNames(secretName) {
117945
117938
  }
117946
117939
  return null;
117947
117940
  }
117948
- function getConnectorOAuthConfigIfSupported(type) {
117949
- const grant = getConnectorOAuthGrant(type);
117950
- switch (grant?.kind) {
117951
- case "auth-code":
117952
- return {
117953
- flow: "authorization-code",
117954
- tokenUrl: grant.tokenUrl,
117955
- client: grant.client,
117956
- scopes: [...grant.scopes]
117957
- };
117958
- case "device-auth":
117959
- return {
117960
- flow: "device-authorization",
117961
- deviceAuthUrl: grant.deviceAuthUrl,
117962
- tokenUrl: grant.tokenUrl,
117963
- client: grant.client,
117964
- scopes: [...grant.scopes]
117965
- };
117966
- case void 0:
117967
- return void 0;
117968
- }
117969
- }
117970
117941
  function hasRequiredScopes(connectorType, storedScopes) {
117971
- const oauthConfig = getConnectorOAuthConfigIfSupported(connectorType);
117972
- if (!oauthConfig) return true;
117973
- if (oauthConfig.scopes.length === 0) return true;
117942
+ const scopes = getConnectorOAuthGrantConfigIfSupported(connectorType)?.scopes;
117943
+ if (!scopes) return true;
117944
+ if (scopes.length === 0) return true;
117974
117945
  if (!storedScopes) return false;
117975
117946
  const storedSet = new Set(storedScopes);
117976
- return oauthConfig.scopes.every((s) => {
117947
+ return scopes.every((s) => {
117977
117948
  return storedSet.has(s);
117978
117949
  });
117979
117950
  }
117980
117951
  function getScopeDiff(connectorType, storedScopes) {
117981
- const oauthConfig = getConnectorOAuthConfigIfSupported(connectorType);
117982
- const currentScopes = oauthConfig?.scopes ?? [];
117952
+ const currentScopes = [
117953
+ ...getConnectorOAuthGrantConfigIfSupported(connectorType)?.scopes ?? []
117954
+ ];
117983
117955
  const stored = storedScopes ?? [];
117984
117956
  const storedSet = new Set(stored);
117985
117957
  const currentSet = new Set(currentScopes);
@@ -135377,4 +135349,4 @@ undici/lib/web/fetch/body.js:
135377
135349
  undici/lib/web/websocket/frame.js:
135378
135350
  (*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
135379
135351
  */
135380
- //# sourceMappingURL=chunk-4XWIBE2Y.js.map
135352
+ //# sourceMappingURL=chunk-XJJ2UVRQ.js.map