@vm0/cli 9.145.8 → 9.145.10

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.145.8",
74086
+ release: "9.145.10",
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.145.8",
74105
+ version: "9.145.10",
74106
74106
  command: process.argv.slice(2).join(" ")
74107
74107
  });
74108
74108
  setContext("runtime", {
@@ -100653,6 +100653,18 @@ async function listZeroConnectors() {
100653
100653
  }
100654
100654
  handleError(result, "Failed to list connectors");
100655
100655
  }
100656
+ async function searchZeroConnectors(keyword) {
100657
+ const config4 = await getClientConfig();
100658
+ const client = initClient(zeroConnectorsSearchContract, config4);
100659
+ const result = await client.search({
100660
+ headers: {},
100661
+ query: keyword ? { keyword } : {}
100662
+ });
100663
+ if (result.status === 200) {
100664
+ return result.body;
100665
+ }
100666
+ handleError(result, "Failed to search connectors");
100667
+ }
100656
100668
  async function getZeroConnector(type) {
100657
100669
  const config4 = await getClientConfig();
100658
100670
  const client = initClient(zeroConnectorsByTypeContract, config4);
@@ -118159,6 +118171,7 @@ var storageEntrySchema = external_exports.object({
118159
118171
  mountPath: external_exports.string(),
118160
118172
  vasStorageName: external_exports.string(),
118161
118173
  vasVersionId: external_exports.string(),
118174
+ instructionsTargetFilename: external_exports.string().optional(),
118162
118175
  archiveUrl: external_exports.string()
118163
118176
  });
118164
118177
  var artifactEntrySchema = external_exports.object({
@@ -120424,14 +120437,6 @@ init_esm_shims();
120424
120437
 
120425
120438
  // ../../packages/core/src/identity-hash.ts
120426
120439
  init_esm_shims();
120427
- function fnv1a(input) {
120428
- let h = 2166136261 >>> 0;
120429
- for (let i = 0; i < input.length; i++) {
120430
- h ^= input.charCodeAt(i);
120431
- h = Math.imul(h, 16777619) >>> 0;
120432
- }
120433
- return h.toString(16).padStart(8, "0");
120434
- }
120435
120440
  var STAFF_ORG_ID_HASHES = [
120436
120441
  "afce210e"
120437
120442
  // org_3ANttyrbWYJk6JKRSTRLEsbsDLe
@@ -120713,34 +120718,11 @@ var FEATURE_SWITCHES = {
120713
120718
  },
120714
120719
  ["voiceChatRealtimeBilling" /* VoiceChatRealtimeBilling */]: {
120715
120720
  maintainer: "lancy@vm0.ai",
120716
- description: "Switch the voice-chat token endpoint to mint a VM0 relay-bootstrap instead of an OpenAI client_secret. When OFF, browsers receive the legacy ephemeral OpenAI token. When ON, the route runs credit + pricing admission and mints a short-lived HMAC relay token; the browser opens a WebSocket to /api/zero/voice-chat/relay (sub-issue #12139). Staff-only during rollout; operator flips per org via the feature-switch overrides API.",
120721
+ description: "Gate voice-chat realtime billing (Plan D, Epic #12128). When OFF, the token route mints an OpenAI ephemeral token without admission checks and the /session-started, /usage, and /session-ended endpoints are 200 no-ops \u2014 the org gets unmetered voice-chat. When ON, the token route runs credit + pricing admission, /session-started inserts an audit row in voice_chat_realtime_sessions, and the browser self-reports response.done + transcription.completed usage events for billing. Staff-only during rollout; operator flips per org via the feature-switch overrides API.",
120717
120722
  enabled: false,
120718
120723
  enabledOrgIdHashes: STAFF_ORG_ID_HASHES
120719
120724
  }
120720
120725
  };
120721
- function isFeatureEnabled(key, ctx) {
120722
- const override = ctx.overrides?.[key];
120723
- if (override !== void 0) {
120724
- return override;
120725
- }
120726
- const featureSwitch = FEATURE_SWITCHES[key];
120727
- if (featureSwitch.enabled) {
120728
- return true;
120729
- }
120730
- if (ctx.userId && featureSwitch.enabledUserHashes?.length) {
120731
- if (featureSwitch.enabledUserHashes.includes(fnv1a(ctx.userId)))
120732
- return true;
120733
- }
120734
- if (ctx.email && featureSwitch.enabledEmailHashes?.length) {
120735
- if (featureSwitch.enabledEmailHashes.includes(fnv1a(ctx.email.toLowerCase())))
120736
- return true;
120737
- }
120738
- if (ctx.orgId && featureSwitch.enabledOrgIdHashes?.length) {
120739
- if (featureSwitch.enabledOrgIdHashes.includes(fnv1a(ctx.orgId)))
120740
- return true;
120741
- }
120742
- return false;
120743
- }
120744
120726
 
120745
120727
  // ../../packages/core/src/staff-org.ts
120746
120728
  init_esm_shims();
@@ -122127,6 +122109,7 @@ export {
122127
122109
  CONNECTOR_TYPES,
122128
122110
  connectorTypeSchema,
122129
122111
  listZeroConnectors,
122112
+ searchZeroConnectors,
122130
122113
  getZeroConnector,
122131
122114
  sendSlackMessage,
122132
122115
  initSlackFileUpload,
@@ -122184,7 +122167,6 @@ export {
122184
122167
  getConnectorFirewall,
122185
122168
  resolveFirewallPolicies,
122186
122169
  findMatchingPermissions,
122187
- isFeatureEnabled,
122188
122170
  parseEvent,
122189
122171
  EventRenderer,
122190
122172
  collectKeyValue,
@@ -122211,4 +122193,4 @@ undici/lib/web/fetch/body.js:
122211
122193
  undici/lib/web/websocket/frame.js:
122212
122194
  (*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
122213
122195
  */
122214
- //# sourceMappingURL=chunk-VMETWWKD.js.map
122196
+ //# sourceMappingURL=chunk-2TVOATAU.js.map