@vm0/cli 9.145.9 → 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.
- package/{chunk-K4JU76G2.js → chunk-2TVOATAU.js} +17 -36
- package/{chunk-K4JU76G2.js.map → chunk-2TVOATAU.js.map} +1 -1
- package/index.js +9 -9
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/zero.js +24 -25
- package/zero.js.map +1 -1
|
@@ -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.
|
|
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.
|
|
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);
|
|
@@ -120425,14 +120437,6 @@ init_esm_shims();
|
|
|
120425
120437
|
|
|
120426
120438
|
// ../../packages/core/src/identity-hash.ts
|
|
120427
120439
|
init_esm_shims();
|
|
120428
|
-
function fnv1a(input) {
|
|
120429
|
-
let h = 2166136261 >>> 0;
|
|
120430
|
-
for (let i = 0; i < input.length; i++) {
|
|
120431
|
-
h ^= input.charCodeAt(i);
|
|
120432
|
-
h = Math.imul(h, 16777619) >>> 0;
|
|
120433
|
-
}
|
|
120434
|
-
return h.toString(16).padStart(8, "0");
|
|
120435
|
-
}
|
|
120436
120440
|
var STAFF_ORG_ID_HASHES = [
|
|
120437
120441
|
"afce210e"
|
|
120438
120442
|
// org_3ANttyrbWYJk6JKRSTRLEsbsDLe
|
|
@@ -120714,34 +120718,11 @@ var FEATURE_SWITCHES = {
|
|
|
120714
120718
|
},
|
|
120715
120719
|
["voiceChatRealtimeBilling" /* VoiceChatRealtimeBilling */]: {
|
|
120716
120720
|
maintainer: "lancy@vm0.ai",
|
|
120717
|
-
description: "
|
|
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.",
|
|
120718
120722
|
enabled: false,
|
|
120719
120723
|
enabledOrgIdHashes: STAFF_ORG_ID_HASHES
|
|
120720
120724
|
}
|
|
120721
120725
|
};
|
|
120722
|
-
function isFeatureEnabled(key, ctx) {
|
|
120723
|
-
const override = ctx.overrides?.[key];
|
|
120724
|
-
if (override !== void 0) {
|
|
120725
|
-
return override;
|
|
120726
|
-
}
|
|
120727
|
-
const featureSwitch = FEATURE_SWITCHES[key];
|
|
120728
|
-
if (featureSwitch.enabled) {
|
|
120729
|
-
return true;
|
|
120730
|
-
}
|
|
120731
|
-
if (ctx.userId && featureSwitch.enabledUserHashes?.length) {
|
|
120732
|
-
if (featureSwitch.enabledUserHashes.includes(fnv1a(ctx.userId)))
|
|
120733
|
-
return true;
|
|
120734
|
-
}
|
|
120735
|
-
if (ctx.email && featureSwitch.enabledEmailHashes?.length) {
|
|
120736
|
-
if (featureSwitch.enabledEmailHashes.includes(fnv1a(ctx.email.toLowerCase())))
|
|
120737
|
-
return true;
|
|
120738
|
-
}
|
|
120739
|
-
if (ctx.orgId && featureSwitch.enabledOrgIdHashes?.length) {
|
|
120740
|
-
if (featureSwitch.enabledOrgIdHashes.includes(fnv1a(ctx.orgId)))
|
|
120741
|
-
return true;
|
|
120742
|
-
}
|
|
120743
|
-
return false;
|
|
120744
|
-
}
|
|
120745
120726
|
|
|
120746
120727
|
// ../../packages/core/src/staff-org.ts
|
|
120747
120728
|
init_esm_shims();
|
|
@@ -122128,6 +122109,7 @@ export {
|
|
|
122128
122109
|
CONNECTOR_TYPES,
|
|
122129
122110
|
connectorTypeSchema,
|
|
122130
122111
|
listZeroConnectors,
|
|
122112
|
+
searchZeroConnectors,
|
|
122131
122113
|
getZeroConnector,
|
|
122132
122114
|
sendSlackMessage,
|
|
122133
122115
|
initSlackFileUpload,
|
|
@@ -122185,7 +122167,6 @@ export {
|
|
|
122185
122167
|
getConnectorFirewall,
|
|
122186
122168
|
resolveFirewallPolicies,
|
|
122187
122169
|
findMatchingPermissions,
|
|
122188
|
-
isFeatureEnabled,
|
|
122189
122170
|
parseEvent,
|
|
122190
122171
|
EventRenderer,
|
|
122191
122172
|
collectKeyValue,
|
|
@@ -122212,4 +122193,4 @@ undici/lib/web/fetch/body.js:
|
|
|
122212
122193
|
undici/lib/web/websocket/frame.js:
|
|
122213
122194
|
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
|
|
122214
122195
|
*/
|
|
122215
|
-
//# sourceMappingURL=chunk-
|
|
122196
|
+
//# sourceMappingURL=chunk-2TVOATAU.js.map
|