@vm0/cli 9.264.3 → 9.264.5
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/{agent-ZZCCTMKD.js → agent-RISVJFGI.js} +6 -6
- package/{banking-E4ORJOV4.js → banking-Q3V7G367.js} +4 -4
- package/{browser-OTYQQVSV.js → browser-N7HYEVVS.js} +4 -4
- package/{chat-OPKAMF3Z.js → chat-TUAO3H7U.js} +5 -5
- package/{chunk-HOFBTU74.js → chunk-5FQGINM4.js} +4 -4
- package/{chunk-DX3MLSFX.js → chunk-6BG6GESP.js} +198 -314
- package/chunk-6BG6GESP.js.map +1 -0
- package/{chunk-MJ5T3P2D.js → chunk-BCPA5OKZ.js} +2 -2
- package/{chunk-RHWHYJ74.js → chunk-EUDCPJFX.js} +2 -2
- package/{chunk-JDNIU5YO.js → chunk-JR4EAC52.js} +2 -2
- package/{chunk-CM5ONK6C.js → chunk-PIWLXVY5.js} +2 -2
- package/{chunk-HEIYDBOX.js → chunk-QSSPOZX4.js} +1 -7
- package/chunk-QSSPOZX4.js.map +1 -0
- package/{chunk-EOGDYUNT.js → chunk-S2ZQ2TPO.js} +2 -2
- package/{chunk-FDLOHWDR.js → chunk-TQL6OIBW.js} +2 -2
- package/{chunk-UB7PTD7T.js → chunk-UGEP6DBZ.js} +22 -93
- package/chunk-UGEP6DBZ.js.map +1 -0
- package/{computer-use-GYQ2752B.js → computer-use-V6STPA7L.js} +4 -4
- package/{connector-A5LVPUBF.js → connector-ZGU23536.js} +7 -7
- package/{credit-QGYG3VZ3.js → credit-RXTXDFOS.js} +5 -5
- package/{developer-support-GD4NG4NI.js → developer-support-BKSDTQDR.js} +4 -4
- package/{doctor-B3DPOL2Q.js → doctor-XXRIBCAH.js} +5 -5
- package/{feishu-TSDIJCXD.js → feishu-BS3FTDK5.js} +4 -4
- package/{finance-3WUTTQH5.js → finance-VXSXIMF7.js} +4 -4
- package/{generate-LYOHJ2UD.js → generate-TMCFEPXA.js} +5 -5
- package/{github-76SFWHOV.js → github-OXVD333E.js} +4 -4
- package/{goal-565SV7ZU.js → goal-G3VDFT55.js} +4 -4
- package/{host-7ISZNEYW.js → host-TCSGSCIZ.js} +4 -4
- package/{logs-76KTTX4A.js → logs-L6BCVVG7.js} +6 -6
- package/{mail-LXBC6NAF.js → mail-GWIASUKV.js} +6 -6
- package/{maps-A24FLEEC.js → maps-33MC6DMF.js} +4 -4
- package/{model-WA7JOB4H.js → model-3UCMYFZK.js} +5 -5
- package/{model-provider-FKARJJR6.js → model-provider-E4EDULAE.js} +5 -5
- package/{org-CZ7D2MZZ.js → org-MJGFUTHU.js} +4 -4
- package/package.json +1 -1
- package/{people-search-SPFH6P6W.js → people-search-ESPFALSU.js} +4 -4
- package/{phone-42INABLV.js → phone-VO6SKUNK.js} +4 -4
- package/{preference-G4OPGPOD.js → preference-6OZ2ONOE.js} +4 -4
- package/{resource-SAKIM3NW.js → resource-VA3T2RPS.js} +4 -4
- package/{scrape-54F2PMLC.js → scrape-OJXVK43Q.js} +4 -4
- package/{search-DB3EMWBU.js → search-J3RWGPR4.js} +6 -6
- package/{secret-YZ2WUIOR.js → secret-U2E5EFSX.js} +4 -4
- package/{slack-62NNAPNF.js → slack-LR6AU3F2.js} +4 -4
- package/{teams-I3UIG3OQ.js → teams-DLDMMTRS.js} +4 -4
- package/{telegram-NHYG76WM.js → telegram-2BW7EHOG.js} +4 -4
- package/{upgrade-JXWIJITQ.js → upgrade-DJ4RTQGP.js} +3 -3
- package/{variable-YWYVKMKV.js → variable-VWPR5XDS.js} +4 -4
- package/{video-PU3A3C3A.js → video-Q7Q6BHRD.js} +3 -3
- package/{weather-SEQNUYQ3.js → weather-BO4MQI5Y.js} +4 -4
- package/{web-TOXK3VKI.js → web-TVE6LDT6.js} +4 -4
- package/{web-search-6KZXIW4V.js → web-search-75ARBM54.js} +4 -4
- package/{whoami-SPAIQVSM.js → whoami-6QZ4EDXB.js} +6 -6
- package/{workflow-C3IPTPAW.js → workflow-CIYZWLPV.js} +5 -5
- package/zero.js +43 -43
- package/chunk-DX3MLSFX.js.map +0 -1
- package/chunk-HEIYDBOX.js.map +0 -1
- package/chunk-UB7PTD7T.js.map +0 -1
- /package/{agent-ZZCCTMKD.js.map → agent-RISVJFGI.js.map} +0 -0
- /package/{banking-E4ORJOV4.js.map → banking-Q3V7G367.js.map} +0 -0
- /package/{browser-OTYQQVSV.js.map → browser-N7HYEVVS.js.map} +0 -0
- /package/{chat-OPKAMF3Z.js.map → chat-TUAO3H7U.js.map} +0 -0
- /package/{chunk-HOFBTU74.js.map → chunk-5FQGINM4.js.map} +0 -0
- /package/{chunk-MJ5T3P2D.js.map → chunk-BCPA5OKZ.js.map} +0 -0
- /package/{chunk-RHWHYJ74.js.map → chunk-EUDCPJFX.js.map} +0 -0
- /package/{chunk-JDNIU5YO.js.map → chunk-JR4EAC52.js.map} +0 -0
- /package/{chunk-CM5ONK6C.js.map → chunk-PIWLXVY5.js.map} +0 -0
- /package/{chunk-EOGDYUNT.js.map → chunk-S2ZQ2TPO.js.map} +0 -0
- /package/{chunk-FDLOHWDR.js.map → chunk-TQL6OIBW.js.map} +0 -0
- /package/{computer-use-GYQ2752B.js.map → computer-use-V6STPA7L.js.map} +0 -0
- /package/{connector-A5LVPUBF.js.map → connector-ZGU23536.js.map} +0 -0
- /package/{credit-QGYG3VZ3.js.map → credit-RXTXDFOS.js.map} +0 -0
- /package/{developer-support-GD4NG4NI.js.map → developer-support-BKSDTQDR.js.map} +0 -0
- /package/{doctor-B3DPOL2Q.js.map → doctor-XXRIBCAH.js.map} +0 -0
- /package/{feishu-TSDIJCXD.js.map → feishu-BS3FTDK5.js.map} +0 -0
- /package/{finance-3WUTTQH5.js.map → finance-VXSXIMF7.js.map} +0 -0
- /package/{generate-LYOHJ2UD.js.map → generate-TMCFEPXA.js.map} +0 -0
- /package/{github-76SFWHOV.js.map → github-OXVD333E.js.map} +0 -0
- /package/{goal-565SV7ZU.js.map → goal-G3VDFT55.js.map} +0 -0
- /package/{host-7ISZNEYW.js.map → host-TCSGSCIZ.js.map} +0 -0
- /package/{logs-76KTTX4A.js.map → logs-L6BCVVG7.js.map} +0 -0
- /package/{mail-LXBC6NAF.js.map → mail-GWIASUKV.js.map} +0 -0
- /package/{maps-A24FLEEC.js.map → maps-33MC6DMF.js.map} +0 -0
- /package/{model-WA7JOB4H.js.map → model-3UCMYFZK.js.map} +0 -0
- /package/{model-provider-FKARJJR6.js.map → model-provider-E4EDULAE.js.map} +0 -0
- /package/{org-CZ7D2MZZ.js.map → org-MJGFUTHU.js.map} +0 -0
- /package/{people-search-SPFH6P6W.js.map → people-search-ESPFALSU.js.map} +0 -0
- /package/{phone-42INABLV.js.map → phone-VO6SKUNK.js.map} +0 -0
- /package/{preference-G4OPGPOD.js.map → preference-6OZ2ONOE.js.map} +0 -0
- /package/{resource-SAKIM3NW.js.map → resource-VA3T2RPS.js.map} +0 -0
- /package/{scrape-54F2PMLC.js.map → scrape-OJXVK43Q.js.map} +0 -0
- /package/{search-DB3EMWBU.js.map → search-J3RWGPR4.js.map} +0 -0
- /package/{secret-YZ2WUIOR.js.map → secret-U2E5EFSX.js.map} +0 -0
- /package/{slack-62NNAPNF.js.map → slack-LR6AU3F2.js.map} +0 -0
- /package/{teams-I3UIG3OQ.js.map → teams-DLDMMTRS.js.map} +0 -0
- /package/{telegram-NHYG76WM.js.map → telegram-2BW7EHOG.js.map} +0 -0
- /package/{upgrade-JXWIJITQ.js.map → upgrade-DJ4RTQGP.js.map} +0 -0
- /package/{variable-YWYVKMKV.js.map → variable-VWPR5XDS.js.map} +0 -0
- /package/{video-PU3A3C3A.js.map → video-Q7Q6BHRD.js.map} +0 -0
- /package/{weather-SEQNUYQ3.js.map → weather-BO4MQI5Y.js.map} +0 -0
- /package/{web-TOXK3VKI.js.map → web-TVE6LDT6.js.map} +0 -0
- /package/{web-search-6KZXIW4V.js.map → web-search-75ARBM54.js.map} +0 -0
- /package/{whoami-SPAIQVSM.js.map → whoami-6QZ4EDXB.js.map} +0 -0
- /package/{workflow-C3IPTPAW.js.map → workflow-CIYZWLPV.js.map} +0 -0
|
@@ -3,7 +3,7 @@ import { createRequire as __createRequire } from "node:module";
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
MODEL_PROVIDER_TYPES
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PIWLXVY5.js";
|
|
7
7
|
import {
|
|
8
8
|
init_esm_shims
|
|
9
9
|
} from "./chunk-GPYQ24DR.js";
|
|
@@ -40,4 +40,4 @@ export {
|
|
|
40
40
|
formatModelProviderRoute,
|
|
41
41
|
formatModelPolicyStatus
|
|
42
42
|
};
|
|
43
|
-
//# sourceMappingURL=chunk-
|
|
43
|
+
//# sourceMappingURL=chunk-BCPA5OKZ.js.map
|
|
@@ -3,7 +3,7 @@ import { createRequire as __createRequire } from "node:module";
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
UNKNOWN_PERMISSION_GRANT
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-UGEP6DBZ.js";
|
|
7
7
|
import {
|
|
8
8
|
init_esm_shims
|
|
9
9
|
} from "./chunk-GPYQ24DR.js";
|
|
@@ -130,4 +130,4 @@ export {
|
|
|
130
130
|
resolveFirewallMetadataPolicies,
|
|
131
131
|
permissionGrantsToFirewallPolicies
|
|
132
132
|
};
|
|
133
|
-
//# sourceMappingURL=chunk-
|
|
133
|
+
//# sourceMappingURL=chunk-EUDCPJFX.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
getActiveToken,
|
|
7
7
|
getBaseUrl,
|
|
8
8
|
headersWithCliClientHeaders
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PIWLXVY5.js";
|
|
10
10
|
import {
|
|
11
11
|
init_esm_shims
|
|
12
12
|
} from "./chunk-GPYQ24DR.js";
|
|
@@ -648,4 +648,4 @@ export {
|
|
|
648
648
|
generateWebVideo,
|
|
649
649
|
transcribeAudio
|
|
650
650
|
};
|
|
651
|
-
//# sourceMappingURL=chunk-
|
|
651
|
+
//# sourceMappingURL=chunk-JR4EAC52.js.map
|
|
@@ -15385,7 +15385,7 @@ function createCliClientHeaderInjector(options) {
|
|
|
15385
15385
|
};
|
|
15386
15386
|
}
|
|
15387
15387
|
var addDefaultCliClientHeaders = createCliClientHeaderInjector({
|
|
15388
|
-
clientVersion: "9.264.
|
|
15388
|
+
clientVersion: "9.264.5"
|
|
15389
15389
|
});
|
|
15390
15390
|
function addCliClientHeaders(headers) {
|
|
15391
15391
|
addDefaultCliClientHeaders(headers);
|
|
@@ -16776,4 +16776,4 @@ export {
|
|
|
16776
16776
|
apiErrorSchema,
|
|
16777
16777
|
withErrorHandler
|
|
16778
16778
|
};
|
|
16779
|
-
//# sourceMappingURL=chunk-
|
|
16779
|
+
//# sourceMappingURL=chunk-PIWLXVY5.js.map
|
|
@@ -445,12 +445,6 @@ var FEATURE_SWITCHES = {
|
|
|
445
445
|
enabled: false,
|
|
446
446
|
enabledOrgIdHashes: STAFF_ORG_ID_HASHES
|
|
447
447
|
},
|
|
448
|
-
["zeroMcp" /* ZeroMcp */]: {
|
|
449
|
-
maintainer: "liangyou@vm0.ai",
|
|
450
|
-
description: "Enable vm0-managed remote MCP servers for Zero agent runs and the Zero CLI.",
|
|
451
|
-
enabled: false,
|
|
452
|
-
userOverridable: false
|
|
453
|
-
},
|
|
454
448
|
["composerConnectorPermissions" /* ComposerConnectorPermissions */]: {
|
|
455
449
|
maintainer: "ming@vm0.ai",
|
|
456
450
|
description: "Show the configure-permissions entry in the chat composer connector popover, opening the agent\xD7connector firewall dialog inline.",
|
|
@@ -485,4 +479,4 @@ function isFeatureEnabled(key, ctx) {
|
|
|
485
479
|
export {
|
|
486
480
|
isFeatureEnabled
|
|
487
481
|
};
|
|
488
|
-
//# sourceMappingURL=chunk-
|
|
482
|
+
//# sourceMappingURL=chunk-QSSPOZX4.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../packages/core/src/feature-switch-key.ts","../../../packages/core/src/feature-switch.ts","../../../packages/core/src/identity-hash.ts"],"sourcesContent":["/**\n * Feature switch keys\n *\n * Defines all available feature switch identifiers.\n */\nexport enum FeatureSwitchKey {\n Dummy = \"dummy\",\n AhrefsConnector = \"ahrefsConnector\",\n BillConnector = \"billConnector\",\n BentomlConnector = \"bentomlConnector\",\n BoxConnector = \"boxConnector\",\n CanvaConnector = \"canvaConnector\",\n CalComConnector = \"calComConnector\",\n CopperConnector = \"copperConnector\",\n DatadogConnector = \"datadogConnector\",\n DeelConnector = \"deelConnector\",\n DocuSignConnector = \"docusignConnector\",\n DropboxConnector = \"dropboxConnector\",\n FigmaConnector = \"figmaConnector\",\n ExpensifyConnector = \"expensifyConnector\",\n GoogleContactsConnector = \"googleContactsConnector\",\n GoogleFormsConnector = \"googleFormsConnector\",\n JoggAiConnector = \"joggAiConnector\",\n MercuryConnector = \"mercuryConnector\",\n NeonConnector = \"neonConnector\",\n NetSuiteConnector = \"netSuiteConnector\",\n GarminConnectConnector = \"garminConnectConnector\",\n QuickBooksConnector = \"quickbooksConnector\",\n RedditConnector = \"redditConnector\",\n SupabaseConnector = \"supabaseConnector\",\n WebflowConnector = \"webflowConnector\",\n CloseConnector = \"closeConnector\",\n MetaAdsConnector = \"metaAdsConnector\",\n TikTokAdsConnector = \"tiktokAdsConnector\",\n AwsConnector = \"awsConnector\",\n PosthogConnector = \"posthogConnector\",\n PayPalConnector = \"payPalConnector\",\n RampConnector = \"rampConnector\",\n MailchimpConnector = \"mailchimpConnector\",\n ResendConnector = \"resendConnector\",\n PexelsConnector = \"pexelsConnector\",\n SpotifyConnector = \"spotifyConnector\",\n ZeroDebug = \"zeroDebug\",\n LanguagePreference = \"languagePreference\",\n BrazilianPortugueseLocale = \"brazilianPortugueseLocale\",\n ZeroFinance = \"zeroFinance\",\n ZeroBrowser = \"zeroBrowser\",\n ZeroMailReplyFollowUp = \"zeroMailReplyFollowUp\",\n Banking = \"banking\",\n Lab = \"lab\",\n NotionWorkflowAutomations = \"notionWorkflowAutomations\",\n GithubWebhookAutomations = \"githubWebhookAutomations\",\n MorningBrief = \"morningBrief\",\n ManualMorningBrief = \"manualMorningBrief\",\n TestOauthConnector = \"testOauthConnector\",\n FreshdeskConnector = \"freshdeskConnector\",\n StabilityAiConnector = \"stabilityAiConnector\",\n ZoomConnector = \"zoomConnector\",\n WorkdayConnector = \"workdayConnector\",\n CodexFastMode = \"codexFastMode\",\n CodexSessionPruning = \"codexSessionPruning\",\n ClaudeSessionPruning = \"claudeSessionPruning\",\n RealAgentInPreview = \"realAgentInPreview\",\n ComposerUploadPopover = \"composerUploadPopover\",\n StructuredPromptInlineTemplates = \"structuredPromptInlineTemplates\",\n\n ZapierConnector = \"zapierConnector\",\n ComputerUseDesktopPlugins = \"computerUseDesktopPlugins\",\n ChatThreadUnifiedSearch = \"chatThreadUnifiedSearch\",\n ComposerSkillSubstringSearch = \"composerSkillSubstringSearch\",\n SidebarSubscriptionUsage = \"sidebarSubscriptionUsage\",\n SlackDmSessionRouting = \"slackDmSessionRouting\",\n TeamsIntegration = \"teamsIntegration\",\n FeishuIntegration = \"feishuIntegration\",\n StrapiIntegration = \"strapiIntegration\",\n Artifacts = \"artifacts\",\n HostedArtifactVersions = \"hostedArtifactVersions\",\n VideoArtifactPosters = \"videoArtifactPosters\",\n ImageStyleR2 = \"imageStyleR2\",\n OrgPlanEntitlementReads = \"orgPlanEntitlementReads\",\n WorkflowConnectorReadiness = \"workflowConnectorReadiness\",\n ComposerConnectorPermissions = \"composerConnectorPermissions\",\n ThreeColumnNav = \"threeColumnNav\",\n ChatThreadSidebarAutoOpen = \"chatThreadSidebarAutoOpen\",\n}\n","/**\n * Feature switch system\n *\n * Provides centralized feature flag management with user-identity based overrides.\n * User IDs are stored as FNV-1a hashes to avoid exposing plain-text identifiers in source code.\n *\n * NOT AN AUTHORIZATION BOUNDARY. User-overridable switches can be self-enabled\n * through `POST /api/zero/feature-switches`, and `userOverridable: false` only\n * excludes a switch from that API. For money-granting, credential, or\n * privilege-escalation endpoints, gate with a hard identity check (e.g.\n * `isStaffOrg()` from `./staff-org`) instead of this system.\n */\n\nimport { FeatureSwitchKey } from \"./feature-switch-key\";\nimport { STAFF_ORG_ID_HASHES, fnv1a } from \"./identity-hash\";\n\nexport interface FeatureSwitch {\n readonly maintainer: string;\n readonly description?: string;\n readonly enabled: boolean;\n readonly enabledUserHashes?: readonly string[];\n readonly enabledEmailHashes?: readonly string[];\n readonly enabledOrgIdHashes?: readonly string[];\n readonly userOverridable?: boolean;\n}\n\nexport interface FeatureSwitchMetadata {\n readonly maintainer: string;\n readonly description?: string;\n readonly userOverridable: boolean;\n}\n\nexport interface FeatureSwitchContext {\n readonly userId?: string;\n readonly email?: string;\n readonly orgId?: string;\n readonly overrides?: Partial<Record<FeatureSwitchKey, boolean>>;\n}\n\n/**\n * Registry of all feature switches\n */\nconst FEATURE_SWITCHES: Record<FeatureSwitchKey, FeatureSwitch> = {\n [FeatureSwitchKey.Dummy]: {\n maintainer: \"ethan@vm0.ai\",\n description: \"Test-only feature switch for flag system validation\",\n enabled: true,\n },\n [FeatureSwitchKey.AhrefsConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Ahrefs SEO connector\",\n enabled: false,\n },\n [FeatureSwitchKey.BillConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the BILL Spend & Expense connector\",\n enabled: false,\n },\n [FeatureSwitchKey.BentomlConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the BentoML model serving connector\",\n enabled: false,\n },\n [FeatureSwitchKey.BoxConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Box file storage connector\",\n enabled: false,\n },\n [FeatureSwitchKey.CanvaConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Canva design connector\",\n enabled: false,\n },\n [FeatureSwitchKey.CalComConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Cal.com scheduling connector\",\n enabled: false,\n },\n [FeatureSwitchKey.CopperConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Copper CRM connector\",\n enabled: false,\n },\n [FeatureSwitchKey.DatadogConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Datadog observability connector\",\n enabled: false,\n },\n [FeatureSwitchKey.DeelConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Deel HR connector\",\n enabled: false,\n },\n [FeatureSwitchKey.DocuSignConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the DocuSign e-signature connector\",\n enabled: false,\n },\n [FeatureSwitchKey.DropboxConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Dropbox file storage connector\",\n enabled: false,\n },\n [FeatureSwitchKey.FigmaConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Figma design connector\",\n enabled: false,\n },\n [FeatureSwitchKey.ExpensifyConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Expensify accounting connector\",\n enabled: false,\n },\n [FeatureSwitchKey.GoogleContactsConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Google Contacts connector\",\n enabled: false,\n },\n [FeatureSwitchKey.GoogleFormsConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Google Forms connector\",\n enabled: false,\n },\n [FeatureSwitchKey.JoggAiConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the JoggAI video generation connector\",\n enabled: false,\n },\n [FeatureSwitchKey.MercuryConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Mercury banking connector\",\n enabled: false,\n },\n [FeatureSwitchKey.NeonConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Neon serverless Postgres connector\",\n enabled: false,\n },\n [FeatureSwitchKey.NetSuiteConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Oracle NetSuite ERP connector\",\n enabled: false,\n },\n [FeatureSwitchKey.GarminConnectConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Garmin Connect wellness connector\",\n enabled: false,\n },\n [FeatureSwitchKey.QuickBooksConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the QuickBooks accounting connector\",\n enabled: false,\n },\n [FeatureSwitchKey.RedditConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Reddit connector integration\",\n enabled: false,\n },\n [FeatureSwitchKey.SupabaseConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Supabase database connector integration\",\n enabled: false,\n },\n [FeatureSwitchKey.CloseConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Close CRM connector\",\n enabled: false,\n },\n [FeatureSwitchKey.WebflowConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Webflow site management connector\",\n enabled: false,\n },\n [FeatureSwitchKey.MetaAdsConnector]: {\n maintainer: \"ethan@vm0.ai\",\n description: \"Enable the Meta Ads Manager connector\",\n enabled: false,\n },\n [FeatureSwitchKey.TikTokAdsConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the TikTok Ads Manager connector\",\n enabled: false,\n },\n [FeatureSwitchKey.AwsConnector]: {\n maintainer: \"liangyou@vm0.ai\",\n description: \"Enable the temporary AWS remote login connector\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n },\n [FeatureSwitchKey.PosthogConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the PostHog analytics connector\",\n enabled: false,\n },\n [FeatureSwitchKey.PayPalConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the PayPal payments connector\",\n enabled: false,\n },\n [FeatureSwitchKey.RampConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Ramp spend management connector\",\n enabled: false,\n },\n [FeatureSwitchKey.MailchimpConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Mailchimp email marketing connector\",\n enabled: false,\n },\n [FeatureSwitchKey.ResendConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Resend email service connector\",\n enabled: false,\n },\n [FeatureSwitchKey.PexelsConnector]: {\n maintainer: \"bingjie@vm0.ai\",\n description: \"Enable the Pexels stock photo and video connector\",\n enabled: false,\n },\n [FeatureSwitchKey.SpotifyConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Spotify connector integration\",\n enabled: false,\n },\n [FeatureSwitchKey.ZeroDebug]: {\n maintainer: \"ethan@vm0.ai\",\n description:\n \"Reveal activity debug surfaces, activity log navigation, appended system prompts, and Debug preferences\",\n enabled: false,\n },\n [FeatureSwitchKey.LanguagePreference]: {\n maintainer: \"yuma@vm0.ai\",\n description:\n \"Enable workspace language bootstrap, persistence, and the Settings preference entry.\",\n enabled: false,\n },\n [FeatureSwitchKey.BrazilianPortugueseLocale]: {\n maintainer: \"yuma@vm0.ai\",\n description:\n \"Allow pt-BR preference writes after incompatible API readers and rollback candidates have drained.\",\n enabled: false,\n userOverridable: false,\n },\n [FeatureSwitchKey.ZeroFinance]: {\n maintainer: \"ethan@vm0.ai\",\n description:\n \"Enable the managed APIDojo-backed Zero Finance API and finance:read ZERO_TOKEN capability.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n },\n [FeatureSwitchKey.Banking]: {\n maintainer: \"linghan@vm0.ai\",\n description:\n \"Enable the managed Zero Banking gateway and banking:read ZERO_TOKEN capability for Finicity-backed accounts, balances, and transactions.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n },\n [FeatureSwitchKey.Lab]: {\n maintainer: \"ethan@vm0.ai\",\n description: \"Show the Lab page for toggling experimental features\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n },\n [FeatureSwitchKey.MorningBrief]: {\n maintainer: \"ethan@vm0.ai\",\n description:\n \"Enable the daily 7:00 local-time Morning Brief email built from GitHub, Gmail, and Google Calendar.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n userOverridable: true,\n },\n [FeatureSwitchKey.ManualMorningBrief]: {\n maintainer: \"ethan@vm0.ai\",\n description:\n \"Show a Send now button in Settings that triggers a Morning Brief immediately for testing.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n userOverridable: true,\n },\n [FeatureSwitchKey.NotionWorkflowAutomations]: {\n maintainer: \"lancy@vm0.ai\",\n description:\n \"Enable Notion event workflow automations, starting with child pages created under a configured parent page.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n },\n [FeatureSwitchKey.GithubWebhookAutomations]: {\n maintainer: \"ethan@vm0.ai\",\n description:\n \"Show creation entry points for GitHub workflow job, pull request review, deployment status, and issue comment automations.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n userOverridable: false,\n },\n [FeatureSwitchKey.TestOauthConnector]: {\n maintainer: \"liangyou@vm0.ai\",\n description:\n \"Enable the test-oauth connector, a synthetic OAuth 2.0 provider used only for automated tests. Off in prod.\",\n enabled: false,\n },\n [FeatureSwitchKey.FreshdeskConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Freshdesk helpdesk connector\",\n enabled: false,\n },\n [FeatureSwitchKey.StabilityAiConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Stability AI image generation connector\",\n enabled: false,\n },\n [FeatureSwitchKey.ZoomConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description:\n \"Enable the Zoom connector (OAuth 2.0) for meetings, past participants, and cloud recordings access\",\n enabled: false,\n },\n [FeatureSwitchKey.WorkdayConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Workday HCM and finance connector\",\n enabled: false,\n },\n\n [FeatureSwitchKey.CodexFastMode]: {\n maintainer: \"lancy@vm0.ai\",\n description:\n \"Enable Codex fast mode for ChatGPT subscription GPT 5.5 and GPT 5.6 web chat runs.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n },\n [FeatureSwitchKey.CodexSessionPruning]: {\n maintainer: \"liangyou@vm0.ai\",\n description:\n \"Prune oversized Codex checkpoint histories to the latest native compact generation.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n },\n [FeatureSwitchKey.ClaudeSessionPruning]: {\n maintainer: \"liangyou@vm0.ai\",\n description:\n \"Prune oversized Claude Code checkpoint histories to the latest native compact generation.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n },\n [FeatureSwitchKey.RealAgentInPreview]: {\n maintainer: \"ethan@vm0.ai\",\n description:\n \"Send preview chat runs through real agent CLIs instead of preview mock runners.\",\n enabled: false,\n },\n [FeatureSwitchKey.ComposerUploadPopover]: {\n maintainer: \"bingjie@vm0.ai\",\n description:\n \"Use the Upload popover in the chat composer instead of the legacy paperclip attachment button.\",\n enabled: false,\n userOverridable: false,\n },\n [FeatureSwitchKey.StructuredPromptInlineTemplates]: {\n maintainer: \"bingjie@vm0.ai\",\n description:\n \"Enable multiple inline artifact templates in structured chat prompts.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n userOverridable: false,\n },\n [FeatureSwitchKey.ZapierConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description:\n \"Enable the Zapier connector. When disabled, Zapier is hidden from the connectors list and cannot be connected.\",\n enabled: false,\n },\n [FeatureSwitchKey.ComputerUseDesktopPlugins]: {\n maintainer: \"lancy@vm0.ai\",\n description:\n \"Enable Zero Desktop Computer Use plugins for local resources, starting with the bundled filesystem plugin gateway.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n },\n [FeatureSwitchKey.ChatThreadUnifiedSearch]: {\n maintainer: \"ethan@vm0.ai\",\n description:\n \"Show chat thread title results from the local event-driven thread cache in the command-shift-a conversation picker.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n },\n [FeatureSwitchKey.ChatThreadSidebarAutoOpen]: {\n maintainer: \"ethan@vm0.ai\",\n description:\n \"Automatically open the latest sidebar-capable card from a running or successfully completed chat run when the utility sidebar is closed and split view is available.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n },\n [FeatureSwitchKey.ComposerSkillSubstringSearch]: {\n maintainer: \"yuma@vm0.ai\",\n description:\n \"Match chat composer slash skill suggestions by any slug substring instead of only prefixes.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n },\n [FeatureSwitchKey.ThreeColumnNav]: {\n maintainer: \"ming@vm0.ai\",\n description:\n \"Slack-style three-column navigation: a labeled icon rail, a pinned-agents and chat-threads list column, and the conversation pane.\",\n enabled: false,\n // Ming only for the first pass; widen to staff once it settles.\n enabledEmailHashes: [\"54757055\"], // fnv1a(\"ming@vm0.ai\")\n },\n [FeatureSwitchKey.SidebarSubscriptionUsage]: {\n maintainer: \"ethan@vm0.ai\",\n description:\n \"Show Codex and Claude Code personal subscription usage in the Zero sidebar footer.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n },\n [FeatureSwitchKey.SlackDmSessionRouting]: {\n maintainer: \"yuma@vm0.ai\",\n description:\n \"Reuse agent/model-scoped sessions for top-level Slack direct messages after compatible callback readers are deployed.\",\n enabled: false,\n },\n [FeatureSwitchKey.TeamsIntegration]: {\n maintainer: \"linghan@vm0.ai\",\n description:\n \"Show standalone Microsoft Teams integration settings, connect flows, and Works page entry points.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n },\n [FeatureSwitchKey.FeishuIntegration]: {\n maintainer: \"linghan@vm0.ai\",\n description:\n \"Show the Feishu direct-message integration and Works page entry point.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n },\n [FeatureSwitchKey.StrapiIntegration]: {\n maintainer: \"ethan@vm0.ai\",\n description:\n \"Enable Strapi integration settings and Strapi entry-published workflow automations.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n userOverridable: false,\n },\n [FeatureSwitchKey.Artifacts]: {\n maintainer: \"bingjie@vm0.ai\",\n description:\n \"Show the Artifacts manage page for generated artifacts in the current organization.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n },\n [FeatureSwitchKey.HostedArtifactVersions]: {\n maintainer: \"yuma@vm0.ai\",\n description:\n \"Create immutable hosted artifact versions behind stable site aliases.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n },\n [FeatureSwitchKey.VideoArtifactPosters]: {\n maintainer: \"bingjie@vm0.ai\",\n description:\n \"Generate poster images asynchronously when video artifacts are recorded.\",\n enabled: true,\n },\n [FeatureSwitchKey.ImageStyleR2]: {\n maintainer: \"bingjie@vm0.ai\",\n description:\n \"Resolve archive-enabled image styles from private R2 packages. When off, image style authoring continues reading vm0-skills from GitHub.\",\n enabled: true,\n },\n [FeatureSwitchKey.OrgPlanEntitlementReads]: {\n maintainer: \"yuma@vm0.ai\",\n description:\n \"Read runtime plan capability limits from org_plan_entitlements instead of deriving them from org_metadata.tier.\",\n enabled: true,\n userOverridable: false,\n },\n [FeatureSwitchKey.WorkflowConnectorReadiness]: {\n maintainer: \"lancy@vm0.ai\",\n description:\n \"Show the manual connector readiness check on workflow settings pages.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n userOverridable: false,\n },\n [FeatureSwitchKey.ZeroMailReplyFollowUp]: {\n maintainer: \"yuma@vm0.ai\",\n description:\n \"Enable Zero Mail reply follow-up after all API deployments can read Gmail event configurations with threadId.\",\n enabled: false,\n userOverridable: false,\n },\n [FeatureSwitchKey.ZeroBrowser]: {\n maintainer: \"liangyou@vm0.ai\",\n description:\n \"Enable thread-scoped Cloud browser access in chat and the Zero CLI.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n },\n [FeatureSwitchKey.ComposerConnectorPermissions]: {\n maintainer: \"ming@vm0.ai\",\n description:\n \"Show the configure-permissions entry in the chat composer connector popover, opening the agent×connector firewall dialog inline.\",\n enabled: false,\n userOverridable: true,\n },\n};\n\ninterface ResolvedHashes {\n readonly userHash?: string;\n readonly emailHash?: string;\n readonly orgIdHash?: string;\n}\n\nfunction evaluateSwitch(fs: FeatureSwitch, hashes: ResolvedHashes): boolean {\n if (fs.enabled) return true;\n if (hashes.userHash && fs.enabledUserHashes?.includes(hashes.userHash))\n return true;\n if (hashes.emailHash && fs.enabledEmailHashes?.includes(hashes.emailHash))\n return true;\n if (hashes.orgIdHash && fs.enabledOrgIdHashes?.includes(hashes.orgIdHash))\n return true;\n return false;\n}\n\n/**\n * Evaluate all feature switches at once for the given context.\n *\n * Computes identity hashes once and checks all switches synchronously.\n */\nexport function getAllFeatureStates(\n ctx?: FeatureSwitchContext,\n): Record<FeatureSwitchKey, boolean> {\n const switches = Object.values(FEATURE_SWITCHES);\n const hashes: ResolvedHashes = {\n userHash:\n ctx?.userId &&\n switches.some((s) => {\n return s.enabledUserHashes?.length;\n })\n ? fnv1a(ctx.userId)\n : undefined,\n emailHash:\n ctx?.email &&\n switches.some((s) => {\n return s.enabledEmailHashes?.length;\n })\n ? fnv1a(ctx.email.toLowerCase())\n : undefined,\n orgIdHash:\n ctx?.orgId &&\n switches.some((s) => {\n return s.enabledOrgIdHashes?.length;\n })\n ? fnv1a(ctx.orgId)\n : undefined,\n };\n\n const result = {} as Record<FeatureSwitchKey, boolean>;\n for (const key of Object.values(FeatureSwitchKey)) {\n result[key] = evaluateSwitch(FEATURE_SWITCHES[key], hashes);\n }\n\n if (ctx?.overrides) {\n for (const [key, value] of Object.entries(ctx.overrides)) {\n if (key in FEATURE_SWITCHES && value !== undefined) {\n result[key as FeatureSwitchKey] = value;\n }\n }\n }\n\n return result;\n}\n\n/**\n * Return the description for every feature switch.\n */\nexport function getFeatureSwitchDescriptions(): Record<\n FeatureSwitchKey,\n string | undefined\n> {\n const result = {} as Record<FeatureSwitchKey, string | undefined>;\n for (const key of Object.values(FeatureSwitchKey)) {\n result[key] = FEATURE_SWITCHES[key].description;\n }\n return result;\n}\n\n/**\n * Return display metadata for every feature switch.\n */\nexport function getFeatureSwitchMetadata(): Record<\n FeatureSwitchKey,\n FeatureSwitchMetadata\n> {\n const result = {} as Record<FeatureSwitchKey, FeatureSwitchMetadata>;\n for (const key of Object.values(FeatureSwitchKey)) {\n const featureSwitch = FEATURE_SWITCHES[key];\n result[key] = {\n maintainer: featureSwitch.maintainer,\n description: featureSwitch.description,\n userOverridable: featureSwitch.userOverridable !== false,\n };\n }\n return result;\n}\n\nexport function isUserOverridableFeatureSwitch(\n key: string,\n): key is FeatureSwitchKey {\n if (!(key in FEATURE_SWITCHES)) {\n return false;\n }\n return FEATURE_SWITCHES[key as FeatureSwitchKey].userOverridable !== false;\n}\n\nexport function getUserOverridableFeatureSwitchKeys(): readonly FeatureSwitchKey[] {\n return Object.values(FeatureSwitchKey).filter(isUserOverridableFeatureSwitch);\n}\n\nexport function filterUserOverridableFeatureSwitchOverrides(\n switches: Record<string, boolean>,\n): Record<string, boolean> {\n const filtered: Record<string, boolean> = {};\n for (const [key, value] of Object.entries(switches)) {\n if (isUserOverridableFeatureSwitch(key)) {\n filtered[key] = value;\n }\n }\n return filtered;\n}\n\n/**\n * Check if a feature is enabled for the given context.\n *\n * `ctx` is required so callers must pass identity (userId/orgId/email) or an\n * explicit `{}`. A switch gated by `enabledUserHashes` / `enabledOrgIdHashes`\n * silently returns `false` when ctx omits identity, which has caused bugs.\n * Client-side callers should usually read the platform `featureSwitch$` signal\n * instead — it also merges DB overrides on top of identity context.\n */\nexport function isFeatureEnabled(\n key: FeatureSwitchKey,\n ctx: FeatureSwitchContext,\n): boolean {\n const override = ctx.overrides?.[key];\n if (override !== undefined) {\n return override;\n }\n\n const featureSwitch = FEATURE_SWITCHES[key];\n if (featureSwitch.enabled) {\n return true;\n }\n if (ctx.userId && featureSwitch.enabledUserHashes?.length) {\n if (featureSwitch.enabledUserHashes.includes(fnv1a(ctx.userId)))\n return true;\n }\n if (ctx.email && featureSwitch.enabledEmailHashes?.length) {\n if (\n featureSwitch.enabledEmailHashes.includes(fnv1a(ctx.email.toLowerCase()))\n )\n return true;\n }\n if (ctx.orgId && featureSwitch.enabledOrgIdHashes?.length) {\n if (featureSwitch.enabledOrgIdHashes.includes(fnv1a(ctx.orgId)))\n return true;\n }\n return false;\n}\n","/**\n * Identity hashing — FNV-1a 32-bit hash used to reference users / orgs / emails\n * without embedding plain-text identifiers in source code.\n *\n * Shared between the feature-switch registry (UI rollout targeting) and\n * `staff-org.ts` (authorization primitive). The hash is deterministic and\n * synchronous; no crypto API needed.\n */\n\nexport function fnv1a(input: string): string {\n let h = 2166136261 >>> 0;\n for (let i = 0; i < input.length; i++) {\n h ^= input.charCodeAt(i);\n h = Math.imul(h, 16777619) >>> 0;\n }\n return h.toString(16).padStart(8, \"0\");\n}\n\n/**\n * Hashes of internal staff org IDs.\n *\n * This list is the source of truth for `isStaffOrg()` — adding an entry here\n * grants that org access to every endpoint that uses `isStaffOrg` as an\n * authorization check. Treat changes with the same care as role grants.\n */\nexport const STAFF_ORG_ID_HASHES: readonly string[] = [\n \"afce210e\", // org_3ANttyrbWYJk6JKRSTRLEsbsDLe\n];\n"],"mappings":";;;;;;;;AAAA;;;ACAA;;;ACAA;AASO,SAAS,MAAM,OAAuB;AAC3C,MAAI,IAAI,eAAe;AACvB,WAAS,IAAI,GAAG,IAAI,MAAM,QAAQ,KAAK;AACrC,SAAK,MAAM,WAAW,CAAC;AACvB,QAAI,KAAK,KAAK,GAAG,QAAQ,MAAM;AAAA,EACjC;AACA,SAAO,EAAE,SAAS,EAAE,EAAE,SAAS,GAAG,GAAG;AACvC;AASO,IAAM,sBAAyC;AAAA,EACpD;AAAA;AACF;;;ADeA,IAA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AAA,EACA,gCAA6B,GAAG;AAAA,IAC9B,YAAY;AAAA,IACZ,aACE;AAAA,IACF,SAAS;AAAA,IACT,oBAAoB;AAAA,EACtB;AAAA,EACA,kEAA8C,GAAG;AAAA,IAC/C,YAAY;AAAA,IACZ,aACE;AAAA,IACF,SAAS;AAAA,IACT,iBAAiB;AAAA,EACnB;AACF;AAuIO,SAAS,iBACd,KACA,KACS;AACT,QAAM,WAAW,IAAI,YAAY,GAAG;AACpC,MAAI,aAAa,QAAW;AAC1B,WAAO;AAAA,EACT;AAEA,QAAM,gBAAgB,iBAAiB,GAAG;AAC1C,MAAI,cAAc,SAAS;AACzB,WAAO;AAAA,EACT;AACA,MAAI,IAAI,UAAU,cAAc,mBAAmB,QAAQ;AACzD,QAAI,cAAc,kBAAkB,SAAS,MAAM,IAAI,MAAM,CAAC;AAC5D,aAAO;AAAA,EACX;AACA,MAAI,IAAI,SAAS,cAAc,oBAAoB,QAAQ;AACzD,QACE,cAAc,mBAAmB,SAAS,MAAM,IAAI,MAAM,YAAY,CAAC,CAAC;AAExE,aAAO;AAAA,EACX;AACA,MAAI,IAAI,SAAS,cAAc,oBAAoB,QAAQ;AACzD,QAAI,cAAc,mBAAmB,SAAS,MAAM,IAAI,KAAK,CAAC;AAC5D,aAAO;AAAA,EACX;AACA,SAAO;AACT;","names":[]}
|
|
@@ -3,7 +3,7 @@ import { createRequire as __createRequire } from "node:module";
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
getApiUrl
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PIWLXVY5.js";
|
|
7
7
|
import {
|
|
8
8
|
init_esm_shims
|
|
9
9
|
} from "./chunk-GPYQ24DR.js";
|
|
@@ -42,4 +42,4 @@ export {
|
|
|
42
42
|
toPlatformUrl,
|
|
43
43
|
getPlatformOrigin
|
|
44
44
|
};
|
|
45
|
-
//# sourceMappingURL=chunk-
|
|
45
|
+
//# sourceMappingURL=chunk-S2ZQ2TPO.js.map
|
|
@@ -4,7 +4,7 @@ const require = __createRequire(import.meta.url);
|
|
|
4
4
|
import {
|
|
5
5
|
getZeroAgent,
|
|
6
6
|
getZeroAgentUserConnectors
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UGEP6DBZ.js";
|
|
8
8
|
import {
|
|
9
9
|
init_esm_shims
|
|
10
10
|
} from "./chunk-GPYQ24DR.js";
|
|
@@ -347,4 +347,4 @@ export {
|
|
|
347
347
|
resolveManualGrantAuthMethod,
|
|
348
348
|
resolveAgentContext
|
|
349
349
|
};
|
|
350
|
-
//# sourceMappingURL=chunk-
|
|
350
|
+
//# sourceMappingURL=chunk-TQL6OIBW.js.map
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
updateOrgModelPoliciesRequestSchema,
|
|
22
22
|
upsertModelProviderRequestSchema,
|
|
23
23
|
upsertModelProviderResponseSchema
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-PIWLXVY5.js";
|
|
25
25
|
import {
|
|
26
26
|
__commonJS,
|
|
27
27
|
__esm,
|
|
@@ -3340,32 +3340,6 @@ var zeroGoalsContract = c12.router({
|
|
|
3340
3340
|
}
|
|
3341
3341
|
});
|
|
3342
3342
|
|
|
3343
|
-
// ../../packages/api-contracts/src/contracts/user-message-rollout.ts
|
|
3344
|
-
init_esm_shims();
|
|
3345
|
-
function isRecord(value) {
|
|
3346
|
-
return typeof value === "object" && value !== null;
|
|
3347
|
-
}
|
|
3348
|
-
function normalizePrecedingStructuredPrompt(value) {
|
|
3349
|
-
if (!isRecord(value)) {
|
|
3350
|
-
return value;
|
|
3351
|
-
}
|
|
3352
|
-
const { structuredPrompt, ...canonical } = value;
|
|
3353
|
-
if ("userMessage" in canonical || structuredPrompt === void 0) {
|
|
3354
|
-
return canonical;
|
|
3355
|
-
}
|
|
3356
|
-
return { ...canonical, userMessage: structuredPrompt };
|
|
3357
|
-
}
|
|
3358
|
-
function normalizePrecedingDraftStructuredPrompt(value) {
|
|
3359
|
-
if (!isRecord(value)) {
|
|
3360
|
-
return value;
|
|
3361
|
-
}
|
|
3362
|
-
const { draftStructuredPrompt, ...canonical } = value;
|
|
3363
|
-
if ("draftUserMessage" in canonical || draftStructuredPrompt === void 0) {
|
|
3364
|
-
return canonical;
|
|
3365
|
-
}
|
|
3366
|
-
return { ...canonical, draftUserMessage: draftStructuredPrompt };
|
|
3367
|
-
}
|
|
3368
|
-
|
|
3369
3343
|
// ../../packages/api-contracts/src/contracts/chat-threads.ts
|
|
3370
3344
|
var c13 = initContract();
|
|
3371
3345
|
var attachFileSchema = external_exports.object({
|
|
@@ -3824,10 +3798,7 @@ var chatEventSchema = external_exports.discriminatedUnion("eventType", [
|
|
|
3824
3798
|
goalChangedEventSchema,
|
|
3825
3799
|
usageRecordedEventSchema
|
|
3826
3800
|
]);
|
|
3827
|
-
var chatEventResponseSchema =
|
|
3828
|
-
normalizePrecedingStructuredPrompt,
|
|
3829
|
-
chatEventSchema
|
|
3830
|
-
);
|
|
3801
|
+
var chatEventResponseSchema = chatEventSchema;
|
|
3831
3802
|
if (chatEventTypeSchema.options.length !== chatEventSchema.options.length) {
|
|
3832
3803
|
throw new Error("ChatEvent schema must cover the complete event catalog");
|
|
3833
3804
|
}
|
|
@@ -3843,30 +3814,27 @@ var chatThreadMetadataSchema = external_exports.object({
|
|
|
3843
3814
|
title: external_exports.string().nullable(),
|
|
3844
3815
|
selectedModel: external_exports.string().nullable()
|
|
3845
3816
|
});
|
|
3846
|
-
var chatThreadDraftSchema = external_exports.
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
draftAttachments: external_exports.array(persistedAttachmentSchema).nullable()
|
|
3852
|
-
}).superRefine(requireUserMessageForNonEmptyDraft)
|
|
3853
|
-
);
|
|
3817
|
+
var chatThreadDraftSchema = external_exports.object({
|
|
3818
|
+
draftContent: external_exports.string().nullable(),
|
|
3819
|
+
draftUserMessage: userMessageDocumentSchema.nullable(),
|
|
3820
|
+
draftAttachments: external_exports.array(persistedAttachmentSchema).nullable()
|
|
3821
|
+
}).superRefine(requireUserMessageForNonEmptyDraft);
|
|
3854
3822
|
var selectedModelRequestSchema = requestedRunModelSchema;
|
|
3855
|
-
function
|
|
3823
|
+
function isRecord(value) {
|
|
3856
3824
|
return typeof value === "object" && value !== null;
|
|
3857
3825
|
}
|
|
3858
3826
|
function legacyModelSelectionModel(value) {
|
|
3859
3827
|
if (value === null) {
|
|
3860
3828
|
return null;
|
|
3861
3829
|
}
|
|
3862
|
-
if (!
|
|
3830
|
+
if (!isRecord(value)) {
|
|
3863
3831
|
return void 0;
|
|
3864
3832
|
}
|
|
3865
3833
|
const selectedModel = value.selectedModel;
|
|
3866
3834
|
return typeof selectedModel === "string" ? selectedModel : void 0;
|
|
3867
3835
|
}
|
|
3868
3836
|
function normalizeLegacyModelSelectionInput(value, options) {
|
|
3869
|
-
if (!
|
|
3837
|
+
if (!isRecord(value) || "model" in value || !("modelSelection" in value)) {
|
|
3870
3838
|
return value;
|
|
3871
3839
|
}
|
|
3872
3840
|
const legacyModelSelection = legacyModelSelectionModel(value.modelSelection);
|
|
@@ -4578,14 +4546,11 @@ var zeroAgentInstructionsResponseSchema = external_exports.object({
|
|
|
4578
4546
|
var zeroAgentInstructionsRequestSchema = external_exports.object({
|
|
4579
4547
|
content: external_exports.string()
|
|
4580
4548
|
});
|
|
4581
|
-
var zeroAgentDraftResponseSchema = external_exports.
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
draftAttachments: external_exports.array(persistedAttachmentSchema).nullable()
|
|
4587
|
-
}).superRefine(requireUserMessageForNonEmptyDraft)
|
|
4588
|
-
);
|
|
4549
|
+
var zeroAgentDraftResponseSchema = external_exports.object({
|
|
4550
|
+
draftContent: external_exports.string().nullable(),
|
|
4551
|
+
draftUserMessage: userMessageDocumentSchema.nullable(),
|
|
4552
|
+
draftAttachments: external_exports.array(persistedAttachmentSchema).nullable()
|
|
4553
|
+
}).superRefine(requireUserMessageForNonEmptyDraft);
|
|
4589
4554
|
var zeroAgentDraftRequestSchema = external_exports.object({
|
|
4590
4555
|
draftContent: external_exports.string().nullable().optional(),
|
|
4591
4556
|
draftUserMessage: userMessageDocumentSchema.nullable(),
|
|
@@ -6436,38 +6401,10 @@ var runnersPollContract = c22.router({
|
|
|
6436
6401
|
}
|
|
6437
6402
|
});
|
|
6438
6403
|
var archiveSizeSchema = external_exports.number().int().min(1).max(Number.MAX_SAFE_INTEGER);
|
|
6439
|
-
var storageEntrySchema = external_exports.object({
|
|
6440
|
-
name: external_exports.string(),
|
|
6441
|
-
mountPath: external_exports.string(),
|
|
6442
|
-
vasStorageName: external_exports.string(),
|
|
6443
|
-
vasVersionId: external_exports.string(),
|
|
6444
|
-
instructionsTargetFilename: external_exports.string().optional(),
|
|
6445
|
-
archiveUrl: external_exports.string(),
|
|
6446
|
-
archiveSize: archiveSizeSchema.optional()
|
|
6447
|
-
});
|
|
6448
6404
|
var artifactMissingRootPolicySchema = external_exports.enum([
|
|
6449
6405
|
"fail",
|
|
6450
6406
|
"preserveParentVersion"
|
|
6451
6407
|
]);
|
|
6452
|
-
var artifactEntrySchema = external_exports.object({
|
|
6453
|
-
mountPath: external_exports.string(),
|
|
6454
|
-
vasStorageName: external_exports.string(),
|
|
6455
|
-
vasStorageId: external_exports.string(),
|
|
6456
|
-
vasVersionId: external_exports.string(),
|
|
6457
|
-
archiveUrl: external_exports.string().optional(),
|
|
6458
|
-
archiveSize: archiveSizeSchema.optional(),
|
|
6459
|
-
empty: external_exports.boolean().optional(),
|
|
6460
|
-
missingRootPolicy: artifactMissingRootPolicySchema.optional()
|
|
6461
|
-
}).superRefine((artifact, ctx) => {
|
|
6462
|
-
if (artifact.empty === true || artifact.archiveUrl !== void 0) {
|
|
6463
|
-
return;
|
|
6464
|
-
}
|
|
6465
|
-
ctx.addIssue({
|
|
6466
|
-
code: external_exports.ZodIssueCode.custom,
|
|
6467
|
-
path: ["archiveUrl"],
|
|
6468
|
-
message: "archiveUrl is required unless empty is true"
|
|
6469
|
-
});
|
|
6470
|
-
});
|
|
6471
6408
|
var storageMountEntrySchema = external_exports.object({
|
|
6472
6409
|
name: external_exports.string(),
|
|
6473
6410
|
storageId: external_exports.string(),
|
|
@@ -6514,10 +6451,6 @@ var storedStorageMountEntrySchema = storageMountEntrySchema.extend({
|
|
|
6514
6451
|
orgId: external_exports.string(),
|
|
6515
6452
|
userId: external_exports.string()
|
|
6516
6453
|
});
|
|
6517
|
-
var legacyStorageManifestSchema = external_exports.object({
|
|
6518
|
-
storages: external_exports.array(storageEntrySchema),
|
|
6519
|
-
artifacts: external_exports.array(artifactEntrySchema)
|
|
6520
|
-
});
|
|
6521
6454
|
function uniqueStorageMountPaths(mounts, ctx) {
|
|
6522
6455
|
const mountPaths = /* @__PURE__ */ new Set();
|
|
6523
6456
|
for (const [index, mount] of mounts.entries()) {
|
|
@@ -6602,10 +6535,6 @@ var secretConnectorMetadataMapSchema = external_exports.record(
|
|
|
6602
6535
|
secretConnectorMetadataSchema
|
|
6603
6536
|
);
|
|
6604
6537
|
var storedExecutionContextSchema = external_exports.object({
|
|
6605
|
-
// Compatibility projection for the previous API version and rollback. The
|
|
6606
|
-
// API writes null while storageMounts drive every claim. Omission is accepted
|
|
6607
|
-
// for the final contraction after rollback-eligible APIs and queues drain.
|
|
6608
|
-
storageManifest: legacyStorageManifestSchema.nullable().optional(),
|
|
6609
6538
|
storageMounts: external_exports.array(storedStorageMountEntrySchema).superRefine(uniqueStorageMountPaths),
|
|
6610
6539
|
environment: external_exports.record(external_exports.string(), external_exports.string()).nullable(),
|
|
6611
6540
|
// API-only references used to reconstruct runner masking values from the
|
|
@@ -9152,7 +9081,7 @@ function authenticatedJsonHeaders(token) {
|
|
|
9152
9081
|
};
|
|
9153
9082
|
return headers;
|
|
9154
9083
|
}
|
|
9155
|
-
function
|
|
9084
|
+
function isRecord2(value) {
|
|
9156
9085
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
9157
9086
|
}
|
|
9158
9087
|
async function parseErrorBody(response) {
|
|
@@ -9160,7 +9089,7 @@ async function parseErrorBody(response) {
|
|
|
9160
9089
|
let code = response.status === 404 ? "NOT_FOUND" : "UNKNOWN";
|
|
9161
9090
|
try {
|
|
9162
9091
|
const body = await response.json();
|
|
9163
|
-
if (
|
|
9092
|
+
if (isRecord2(body) && isRecord2(body.error)) {
|
|
9164
9093
|
if (typeof body.error.message === "string") {
|
|
9165
9094
|
message = body.error.message;
|
|
9166
9095
|
}
|
|
@@ -9205,7 +9134,7 @@ function authenticatedJsonHeaders2(token) {
|
|
|
9205
9134
|
};
|
|
9206
9135
|
return headers;
|
|
9207
9136
|
}
|
|
9208
|
-
function
|
|
9137
|
+
function isRecord3(value) {
|
|
9209
9138
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
9210
9139
|
}
|
|
9211
9140
|
async function parseErrorBody2(response) {
|
|
@@ -9213,7 +9142,7 @@ async function parseErrorBody2(response) {
|
|
|
9213
9142
|
let code = response.status === 404 ? "NOT_FOUND" : "UNKNOWN";
|
|
9214
9143
|
try {
|
|
9215
9144
|
const body = await response.json();
|
|
9216
|
-
if (
|
|
9145
|
+
if (isRecord3(body) && isRecord3(body.error)) {
|
|
9217
9146
|
if (typeof body.error.message === "string") {
|
|
9218
9147
|
message = body.error.message;
|
|
9219
9148
|
}
|
|
@@ -9669,7 +9598,7 @@ function authenticatedJsonHeaders3(token) {
|
|
|
9669
9598
|
};
|
|
9670
9599
|
return headers;
|
|
9671
9600
|
}
|
|
9672
|
-
function
|
|
9601
|
+
function isRecord4(value) {
|
|
9673
9602
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
9674
9603
|
}
|
|
9675
9604
|
async function parseErrorBody3(response) {
|
|
@@ -9677,7 +9606,7 @@ async function parseErrorBody3(response) {
|
|
|
9677
9606
|
let code = response.status === 404 ? "NOT_FOUND" : "UNKNOWN";
|
|
9678
9607
|
try {
|
|
9679
9608
|
const body = await response.json();
|
|
9680
|
-
if (
|
|
9609
|
+
if (isRecord4(body) && isRecord4(body.error)) {
|
|
9681
9610
|
if (typeof body.error.message === "string") {
|
|
9682
9611
|
message = body.error.message;
|
|
9683
9612
|
}
|
|
@@ -13155,4 +13084,4 @@ export {
|
|
|
13155
13084
|
getHostedSiteFiles,
|
|
13156
13085
|
getHostedSiteDeployments
|
|
13157
13086
|
};
|
|
13158
|
-
//# sourceMappingURL=chunk-
|
|
13087
|
+
//# sourceMappingURL=chunk-UGEP6DBZ.js.map
|