@vm0/cli 9.165.2 → 9.166.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.
@@ -74083,7 +74083,7 @@ if (DSN) {
74083
74083
  init2({
74084
74084
  dsn: DSN,
74085
74085
  environment: process.env.SENTRY_ENVIRONMENT ?? "production",
74086
- release: "9.165.2",
74086
+ release: "9.166.0",
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.165.2",
74105
+ version: "9.166.0",
74106
74106
  command: process.argv.slice(2).join(" ")
74107
74107
  });
74108
74108
  setContext("runtime", {
@@ -74303,6 +74303,11 @@ var FEATURE_SWITCHES = {
74303
74303
  description: "Enable the Webflow site management connector",
74304
74304
  enabled: false
74305
74305
  },
74306
+ ["slockConnector" /* SlockConnector */]: {
74307
+ maintainer: "liangyou@vm0.ai",
74308
+ description: "Enable the Slock connector for user-auth control API access.",
74309
+ enabled: false
74310
+ },
74306
74311
  ["outlookMailConnector" /* OutlookMailConnector */]: {
74307
74312
  maintainer: "ethan@vm0.ai",
74308
74313
  description: "Enable the Outlook Mail connector",
@@ -98000,6 +98005,47 @@ var slack = {
98000
98005
  }
98001
98006
  };
98002
98007
 
98008
+ // ../../packages/connectors/src/connectors/slock.ts
98009
+ init_esm_shims();
98010
+ var SLOCK_API_BASE_URL = "https://api.slock.ai";
98011
+ var slock = {
98012
+ slock: {
98013
+ label: "Slock",
98014
+ category: "ai-agent-apps",
98015
+ helpText: "Connect your Slock account to let agents access Slock agents, machines, channels, and messages.",
98016
+ authMethods: {
98017
+ oauth: {
98018
+ featureFlag: "slockConnector" /* SlockConnector */,
98019
+ label: "OAuth Device Authorization",
98020
+ helpText: "Sign in with Slock using a device code.",
98021
+ grant: {
98022
+ kind: "device-auth",
98023
+ deviceAuthUrl: `${SLOCK_API_BASE_URL}/api/auth/device/authorize`,
98024
+ tokenUrl: `${SLOCK_API_BASE_URL}/api/auth/device/token`,
98025
+ client: {
98026
+ clientRegistration: "static",
98027
+ clientType: "public",
98028
+ tokenEndpointAuthMethod: "none",
98029
+ clientId: "vm0"
98030
+ },
98031
+ scopes: []
98032
+ },
98033
+ access: {
98034
+ kind: "refresh-token",
98035
+ accessToken: "SLOCK_ACCESS_TOKEN",
98036
+ refreshToken: "SLOCK_REFRESH_TOKEN",
98037
+ outputs: {
98038
+ SLOCK_TOKEN: "$secrets.SLOCK_ACCESS_TOKEN",
98039
+ SLOCK_SERVER_ID: "$secrets.SLOCK_SERVER_ID"
98040
+ }
98041
+ },
98042
+ revoke: { kind: "none" }
98043
+ }
98044
+ },
98045
+ defaultAuthMethod: "oauth"
98046
+ }
98047
+ };
98048
+
98003
98049
  // ../../packages/connectors/src/connectors/google-sheets.ts
98004
98050
  init_esm_shims();
98005
98051
  var googleSheets = {
@@ -107339,6 +107385,7 @@ var CONNECTOR_TYPES_DEF = {
107339
107385
  ...x,
107340
107386
  ...googleDrive,
107341
107387
  ...slack,
107388
+ ...slock,
107342
107389
  ...googleSheets,
107343
107390
  ...googleCalendar,
107344
107391
  ...googleDocs,
@@ -117814,19 +117861,6 @@ var GOOGLE_OAUTH_CONNECTOR_TYPES = [
117814
117861
  var GOOGLE_OAUTH_CONNECTOR_TYPE_SET = new Set(GOOGLE_OAUTH_CONNECTOR_TYPES);
117815
117862
 
117816
117863
  // ../../packages/connectors/src/connector-utils.ts
117817
- function lookupConnectorAuthMethod(type, authMethod) {
117818
- for (const [methodId, method] of Object.entries(
117819
- CONNECTOR_TYPES[type].authMethods
117820
- )) {
117821
- if (methodId === authMethod) {
117822
- return method;
117823
- }
117824
- }
117825
- return void 0;
117826
- }
117827
- function getConnectorAuthMethod(type, authMethod) {
117828
- return lookupConnectorAuthMethod(type, authMethod);
117829
- }
117830
117864
  function connectorAuthMethodValues(type) {
117831
117865
  return Object.values(CONNECTOR_TYPES[type].authMethods);
117832
117866
  }
@@ -117869,18 +117903,24 @@ function authMethodAccessPriority(method) {
117869
117903
  return 0;
117870
117904
  }
117871
117905
  }
117872
- function getConnectorOAuthGrantConfigIfSupported(type) {
117873
- const method = getConnectorAuthMethod(type, "oauth");
117874
- switch (method?.grant.kind) {
117906
+ function isConnectorOAuthGrantConfig(method) {
117907
+ switch (method.grant.kind) {
117875
117908
  case "auth-code":
117876
117909
  case "device-auth":
117877
- return method.grant;
117910
+ return true;
117878
117911
  case "manual":
117879
117912
  case "managed":
117880
117913
  case "interactive-pairing":
117881
- case void 0:
117882
- return void 0;
117914
+ return false;
117915
+ }
117916
+ }
117917
+ function getConnectorOAuthGrantConfigIfSupported(type) {
117918
+ for (const method of connectorAuthMethodValues(type)) {
117919
+ if (isConnectorOAuthGrantConfig(method)) {
117920
+ return method.grant;
117921
+ }
117883
117922
  }
117923
+ return void 0;
117884
117924
  }
117885
117925
  function getConnectorGenerationTypes(type) {
117886
117926
  const config4 = CONNECTOR_TYPES[type];
@@ -126369,6 +126409,29 @@ var slackWebhookFirewall = {
126369
126409
  ]
126370
126410
  };
126371
126411
 
126412
+ // ../../packages/connectors/src/firewalls/slock.generated.ts
126413
+ init_esm_shims();
126414
+ var slockFirewall = {
126415
+ name: "slock",
126416
+ description: "Slock API",
126417
+ placeholders: {
126418
+ SLOCK_TOKEN: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.CoffeeSafeLocalCoffeeSafeLocalCoffeeSafeLocalCoffeeSafeLocal.c0ffee5afe10ca1c0ffee5afe10ca1c0ffee5afe10ca1c0ffee5afe10ca1c0ff",
126419
+ SLOCK_SERVER_ID: "c0ffee5a-fe10-ca1c-0ffe-e5afe10ca1c0"
126420
+ },
126421
+ apis: [
126422
+ {
126423
+ base: "https://api.slock.ai",
126424
+ auth: {
126425
+ headers: {
126426
+ Authorization: "Bearer ${{ secrets.SLOCK_TOKEN }}",
126427
+ "X-Server-Id": "${{ secrets.SLOCK_SERVER_ID }}"
126428
+ }
126429
+ },
126430
+ permissions: []
126431
+ }
126432
+ ]
126433
+ };
126434
+
126372
126435
  // ../../packages/connectors/src/firewalls/sociavault.generated.ts
126373
126436
  init_esm_shims();
126374
126437
  var sociavaultFirewall = {
@@ -129383,6 +129446,7 @@ var CONNECTOR_FIREWALLS = {
129383
129446
  similarweb: similarwebFirewall,
129384
129447
  slack: slackFirewall,
129385
129448
  "slack-webhook": slackWebhookFirewall,
129449
+ slock: slockFirewall,
129386
129450
  sociavault: sociavaultFirewall,
129387
129451
  sponge: spongeFirewall,
129388
129452
  sproutgigs: sproutgigsFirewall,
@@ -135353,4 +135417,4 @@ undici/lib/web/fetch/body.js:
135353
135417
  undici/lib/web/websocket/frame.js:
135354
135418
  (*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
135355
135419
  */
135356
- //# sourceMappingURL=chunk-2U6TV3JH.js.map
135420
+ //# sourceMappingURL=chunk-TRRVYMW2.js.map