@vm0/cli 9.272.6 → 9.272.8

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.
Files changed (102) hide show
  1. package/{agent-FERHWDRI.js → agent-UPIMWXUK.js} +6 -6
  2. package/{banking-WY3C3KLB.js → banking-L33NCRBB.js} +4 -4
  3. package/{browser-EXTVIOZI.js → browser-G5MFGDUE.js} +4 -4
  4. package/{chat-3HWDEFXJ.js → chat-AZ256QB2.js} +5 -5
  5. package/{chunk-3VLHXFOO.js → chunk-3WTGL5ZJ.js} +2 -2
  6. package/{chunk-HDQTIBUI.js → chunk-AO6ELFHU.js} +7 -3
  7. package/{chunk-HDQTIBUI.js.map → chunk-AO6ELFHU.js.map} +1 -1
  8. package/{chunk-U6NKZXUM.js → chunk-DCNYE3MR.js} +2 -2
  9. package/{chunk-XLDNMDPG.js → chunk-JQF2YK7E.js} +2 -2
  10. package/{chunk-OMTRXPDY.js → chunk-KI33RE7E.js} +2 -2
  11. package/{chunk-3MA2N3GI.js → chunk-KVFEMX5M.js} +2 -2
  12. package/{chunk-L5B3OEEI.js → chunk-LJKWVBBX.js} +7 -3
  13. package/{chunk-L5B3OEEI.js.map → chunk-LJKWVBBX.js.map} +1 -1
  14. package/{chunk-WCRYPRUW.js → chunk-O4M2DUKE.js} +2 -2
  15. package/{chunk-TG7CY4KI.js → chunk-PJJKEPQZ.js} +7 -3
  16. package/{chunk-TG7CY4KI.js.map → chunk-PJJKEPQZ.js.map} +1 -1
  17. package/{chunk-V2OXQR2E.js → chunk-WNWWB3WF.js} +8 -2
  18. package/chunk-WNWWB3WF.js.map +1 -0
  19. package/{computer-use-OOSKIOG4.js → computer-use-RUGK6VVH.js} +4 -4
  20. package/{connector-OHDUB2NY.js → connector-JN5FHRRE.js} +7 -7
  21. package/{credit-3KFLJLK6.js → credit-N5MNJLNC.js} +5 -5
  22. package/{developer-support-2IBPRORT.js → developer-support-2HLI3OKQ.js} +4 -4
  23. package/{doctor-MNQROQFL.js → doctor-LDPQMIDX.js} +5 -5
  24. package/{feishu-EORFUWG2.js → feishu-NR6XC4TZ.js} +4 -4
  25. package/{finance-6NKK2ESW.js → finance-5WPYA7YI.js} +4 -4
  26. package/{generate-63JEK33H.js → generate-UKOECHJO.js} +97 -34
  27. package/generate-UKOECHJO.js.map +1 -0
  28. package/{github-6LCF2XN5.js → github-YVZMGEON.js} +4 -4
  29. package/{goal-RU57WEB2.js → goal-ZWFMQXJJ.js} +4 -4
  30. package/{host-AL4FR6OD.js → host-IACU5NOM.js} +4 -4
  31. package/{logs-NTGYBA5M.js → logs-W2XGWEEW.js} +6 -6
  32. package/{mail-756BECVT.js → mail-URWSYV64.js} +6 -6
  33. package/{maps-P5NF5NA5.js → maps-JHNHL22A.js} +4 -4
  34. package/{model-B66WO43H.js → model-RI7RRXWC.js} +5 -5
  35. package/{model-provider-HIVC4IBV.js → model-provider-SBB2YVSL.js} +5 -5
  36. package/{org-OJCCAF73.js → org-GGNNUSWP.js} +4 -4
  37. package/package.json +1 -1
  38. package/{people-search-WW3O6SIU.js → people-search-UGQVONWO.js} +4 -4
  39. package/{phone-DPYUHZV5.js → phone-MB5WIH4D.js} +4 -4
  40. package/{preference-2HPLM4MZ.js → preference-EN22UTKP.js} +4 -4
  41. package/{resource-6KPW2XIU.js → resource-XWY6HGJW.js} +4 -4
  42. package/{scrape-ZBN3QOJG.js → scrape-QVOBOHQM.js} +4 -4
  43. package/{search-JFIFXVBN.js → search-RM7725FI.js} +6 -6
  44. package/{secret-EDLBE6T4.js → secret-NUV6BTFA.js} +4 -4
  45. package/{slack-F6DBBAAS.js → slack-NYSI73K3.js} +4 -4
  46. package/{teams-US7FZNGH.js → teams-MQRNLT6V.js} +4 -4
  47. package/{telegram-NDDOH454.js → telegram-FBCBM4VC.js} +4 -4
  48. package/{upgrade-JALHQ3ZQ.js → upgrade-WYOSHDMM.js} +3 -3
  49. package/{variable-LQSS2RAL.js → variable-COCZWAY6.js} +4 -4
  50. package/{video-GZYQ4HYD.js → video-OGQOWWJX.js} +3 -3
  51. package/{weather-NHJGYJJB.js → weather-JJ2KV5WN.js} +4 -4
  52. package/{web-ES25VYSH.js → web-5WWGYZBX.js} +4 -4
  53. package/{web-search-3ST7WFUT.js → web-search-TDYHZXV4.js} +4 -4
  54. package/{whoami-5ORI47DU.js → whoami-H5F4SHRE.js} +6 -6
  55. package/{workflow-X3JYH3WJ.js → workflow-YJ6ZMKWC.js} +5 -5
  56. package/zero.js +43 -43
  57. package/chunk-V2OXQR2E.js.map +0 -1
  58. package/generate-63JEK33H.js.map +0 -1
  59. /package/{agent-FERHWDRI.js.map → agent-UPIMWXUK.js.map} +0 -0
  60. /package/{banking-WY3C3KLB.js.map → banking-L33NCRBB.js.map} +0 -0
  61. /package/{browser-EXTVIOZI.js.map → browser-G5MFGDUE.js.map} +0 -0
  62. /package/{chat-3HWDEFXJ.js.map → chat-AZ256QB2.js.map} +0 -0
  63. /package/{chunk-3VLHXFOO.js.map → chunk-3WTGL5ZJ.js.map} +0 -0
  64. /package/{chunk-U6NKZXUM.js.map → chunk-DCNYE3MR.js.map} +0 -0
  65. /package/{chunk-XLDNMDPG.js.map → chunk-JQF2YK7E.js.map} +0 -0
  66. /package/{chunk-OMTRXPDY.js.map → chunk-KI33RE7E.js.map} +0 -0
  67. /package/{chunk-3MA2N3GI.js.map → chunk-KVFEMX5M.js.map} +0 -0
  68. /package/{chunk-WCRYPRUW.js.map → chunk-O4M2DUKE.js.map} +0 -0
  69. /package/{computer-use-OOSKIOG4.js.map → computer-use-RUGK6VVH.js.map} +0 -0
  70. /package/{connector-OHDUB2NY.js.map → connector-JN5FHRRE.js.map} +0 -0
  71. /package/{credit-3KFLJLK6.js.map → credit-N5MNJLNC.js.map} +0 -0
  72. /package/{developer-support-2IBPRORT.js.map → developer-support-2HLI3OKQ.js.map} +0 -0
  73. /package/{doctor-MNQROQFL.js.map → doctor-LDPQMIDX.js.map} +0 -0
  74. /package/{feishu-EORFUWG2.js.map → feishu-NR6XC4TZ.js.map} +0 -0
  75. /package/{finance-6NKK2ESW.js.map → finance-5WPYA7YI.js.map} +0 -0
  76. /package/{github-6LCF2XN5.js.map → github-YVZMGEON.js.map} +0 -0
  77. /package/{goal-RU57WEB2.js.map → goal-ZWFMQXJJ.js.map} +0 -0
  78. /package/{host-AL4FR6OD.js.map → host-IACU5NOM.js.map} +0 -0
  79. /package/{logs-NTGYBA5M.js.map → logs-W2XGWEEW.js.map} +0 -0
  80. /package/{mail-756BECVT.js.map → mail-URWSYV64.js.map} +0 -0
  81. /package/{maps-P5NF5NA5.js.map → maps-JHNHL22A.js.map} +0 -0
  82. /package/{model-B66WO43H.js.map → model-RI7RRXWC.js.map} +0 -0
  83. /package/{model-provider-HIVC4IBV.js.map → model-provider-SBB2YVSL.js.map} +0 -0
  84. /package/{org-OJCCAF73.js.map → org-GGNNUSWP.js.map} +0 -0
  85. /package/{people-search-WW3O6SIU.js.map → people-search-UGQVONWO.js.map} +0 -0
  86. /package/{phone-DPYUHZV5.js.map → phone-MB5WIH4D.js.map} +0 -0
  87. /package/{preference-2HPLM4MZ.js.map → preference-EN22UTKP.js.map} +0 -0
  88. /package/{resource-6KPW2XIU.js.map → resource-XWY6HGJW.js.map} +0 -0
  89. /package/{scrape-ZBN3QOJG.js.map → scrape-QVOBOHQM.js.map} +0 -0
  90. /package/{search-JFIFXVBN.js.map → search-RM7725FI.js.map} +0 -0
  91. /package/{secret-EDLBE6T4.js.map → secret-NUV6BTFA.js.map} +0 -0
  92. /package/{slack-F6DBBAAS.js.map → slack-NYSI73K3.js.map} +0 -0
  93. /package/{teams-US7FZNGH.js.map → teams-MQRNLT6V.js.map} +0 -0
  94. /package/{telegram-NDDOH454.js.map → telegram-FBCBM4VC.js.map} +0 -0
  95. /package/{upgrade-JALHQ3ZQ.js.map → upgrade-WYOSHDMM.js.map} +0 -0
  96. /package/{variable-LQSS2RAL.js.map → variable-COCZWAY6.js.map} +0 -0
  97. /package/{video-GZYQ4HYD.js.map → video-OGQOWWJX.js.map} +0 -0
  98. /package/{weather-NHJGYJJB.js.map → weather-JJ2KV5WN.js.map} +0 -0
  99. /package/{web-ES25VYSH.js.map → web-5WWGYZBX.js.map} +0 -0
  100. /package/{web-search-3ST7WFUT.js.map → web-search-TDYHZXV4.js.map} +0 -0
  101. /package/{whoami-5ORI47DU.js.map → whoami-H5F4SHRE.js.map} +0 -0
  102. /package/{workflow-X3JYH3WJ.js.map → workflow-YJ6ZMKWC.js.map} +0 -0
@@ -468,6 +468,12 @@ var FEATURE_SWITCHES = {
468
468
  enabled: false,
469
469
  enabledOrgIdHashes: STAFF_ORG_ID_HASHES
470
470
  },
471
+ ["htmlResourceIndex" /* HtmlResourceIndex */]: {
472
+ maintainer: "bingjie@vm0.ai",
473
+ description: "Use target-specific static indexes for HTML generation resource selection.",
474
+ enabled: false,
475
+ enabledOrgIdHashes: STAFF_ORG_ID_HASHES
476
+ },
471
477
  ["videoArtifactPosters" /* VideoArtifactPosters */]: {
472
478
  maintainer: "bingjie@vm0.ai",
473
479
  description: "Generate poster images asynchronously when video artifacts are recorded.",
@@ -483,7 +489,7 @@ var FEATURE_SWITCHES = {
483
489
  ["zeroMailReplyFollowUp" /* ZeroMailReplyFollowUp */]: {
484
490
  maintainer: "yuma@vm0.ai",
485
491
  description: "Enable Zero Mail reply follow-up after all API deployments can read Gmail event configurations with threadId.",
486
- enabled: false,
492
+ enabled: true,
487
493
  userOverridable: false
488
494
  },
489
495
  ["zeroBrowser" /* ZeroBrowser */]: {
@@ -544,4 +550,4 @@ function isFeatureEnabled(key, ctx) {
544
550
  export {
545
551
  isFeatureEnabled
546
552
  };
547
- //# sourceMappingURL=chunk-V2OXQR2E.js.map
553
+ //# sourceMappingURL=chunk-WNWWB3WF.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 JapaneseLocale = \"japaneseLocale\",\n KoreanLocale = \"koreanLocale\",\n IndonesianLocale = \"indonesianLocale\",\n GermanLocale = \"germanLocale\",\n SpanishLocale = \"spanishLocale\",\n ItalianLocale = \"italianLocale\",\n FrenchLocale = \"frenchLocale\",\n HindiLocale = \"hindiLocale\",\n ZeroBrowser = \"zeroBrowser\",\n ZeroChatMessaging = \"zeroChatMessaging\",\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 ClaudeSessionPruning = \"claudeSessionPruning\",\n RealAgentInPreview = \"realAgentInPreview\",\n ComposerUploadPopover = \"composerUploadPopover\",\n StructuredPromptInlineTemplates = \"structuredPromptInlineTemplates\",\n CustomModelGateways = \"customModelGateways\",\n\n ZapierConnector = \"zapierConnector\",\n ComputerUseDesktopPlugins = \"computerUseDesktopPlugins\",\n ChatThreadUnifiedSearch = \"chatThreadUnifiedSearch\",\n ChatErrorRecovery = \"chatErrorRecovery\",\n PwaChatKeyboardGestures = \"pwaChatKeyboardGestures\",\n ComposerSkillSubstringSearch = \"composerSkillSubstringSearch\",\n SidebarSubscriptionUsage = \"sidebarSubscriptionUsage\",\n SlackDmSessionRouting = \"slackDmSessionRouting\",\n TeamsIntegration = \"teamsIntegration\",\n FeishuIntegration = \"feishuIntegration\",\n StrapiIntegration = \"strapiIntegration\",\n ArtifactKeyV2 = \"artifactKeyV2\",\n HostedArtifactVersions = \"hostedArtifactVersions\",\n HtmlResourceIndex = \"htmlResourceIndex\",\n VideoArtifactPosters = \"videoArtifactPosters\",\n WorkflowConnectorReadiness = \"workflowConnectorReadiness\",\n ComposerConnectorPermissions = \"composerConnectorPermissions\",\n ThreeColumnNav = \"threeColumnNav\",\n ChatThreadSidebarAutoOpen = \"chatThreadSidebarAutoOpen\",\n CustomConnectorCliCreate = \"customConnectorCliCreate\",\n CustomConnectorOAuth2 = \"customConnectorOAuth2\",\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\nconst CUSTOM_MODEL_GATEWAY_ORG_ID_HASHES = [\n ...STAFF_ORG_ID_HASHES,\n \"a6e60503\", // geo rollout workspace\n] as const;\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: true,\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: true,\n userOverridable: false,\n },\n [FeatureSwitchKey.JapaneseLocale]: {\n maintainer: \"yuma@vm0.ai\",\n description:\n \"Allow ja-JP preference writes after incompatible API readers and rollback candidates have drained.\",\n enabled: true,\n },\n [FeatureSwitchKey.KoreanLocale]: {\n maintainer: \"yuma@vm0.ai\",\n description:\n \"Allow ko-KR preference writes after incompatible API readers and rollback candidates have drained.\",\n enabled: true,\n userOverridable: false,\n },\n [FeatureSwitchKey.IndonesianLocale]: {\n maintainer: \"yuma@vm0.ai\",\n description:\n \"Allow id-ID preference writes after incompatible API readers and rollback candidates have drained.\",\n enabled: true,\n userOverridable: false,\n },\n [FeatureSwitchKey.GermanLocale]: {\n maintainer: \"yuma@vm0.ai\",\n description:\n \"Allow de-DE preference writes after incompatible API readers and rollback candidates have drained.\",\n enabled: true,\n userOverridable: false,\n },\n [FeatureSwitchKey.SpanishLocale]: {\n maintainer: \"linghan@vm0.ai\",\n description:\n \"Allow es-ES preference writes after incompatible API readers and rollback candidates have drained.\",\n enabled: true,\n userOverridable: false,\n },\n [FeatureSwitchKey.ItalianLocale]: {\n maintainer: \"linghan@vm0.ai\",\n description:\n \"Allow it-IT preference writes after incompatible API readers and rollback candidates have drained.\",\n enabled: true,\n userOverridable: false,\n },\n [FeatureSwitchKey.FrenchLocale]: {\n maintainer: \"yuma@vm0.ai\",\n description:\n \"Allow fr-FR preference writes after incompatible API readers and rollback candidates have drained.\",\n enabled: true,\n userOverridable: false,\n },\n [FeatureSwitchKey.HindiLocale]: {\n maintainer: \"yuma@vm0.ai\",\n description:\n \"Allow hi-IN preference writes after incompatible API readers and rollback candidates have drained.\",\n enabled: true,\n userOverridable: false,\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.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: true,\n },\n [FeatureSwitchKey.CustomModelGateways]: {\n maintainer: \"ethan@vm0.ai\",\n description:\n \"Enable admin-defined Anthropic Messages and OpenAI Responses model gateway connections.\",\n enabled: false,\n enabledOrgIdHashes: CUSTOM_MODEL_GATEWAY_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.ChatErrorRecovery]: {\n maintainer: \"ethan@vm0.ai\",\n description:\n \"Replace supported Codex and Claude Code limit errors with recovery actions in chat.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n },\n [FeatureSwitchKey.PwaChatKeyboardGestures]: {\n maintainer: \"bingjie@vm0.ai\",\n description:\n \"Keep the PWA chat composer pinned above the software keyboard and support swipe-to-dismiss gestures.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n userOverridable: false,\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: true,\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.\",\n enabled: true,\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.ArtifactKeyV2]: {\n maintainer: \"yuma@vm0.ai\",\n description:\n \"Store new user artifacts under flat, ten-character hashed public keys.\",\n enabled: false,\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.HtmlResourceIndex]: {\n maintainer: \"bingjie@vm0.ai\",\n description:\n \"Use target-specific static indexes for HTML generation resource selection.\",\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.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: true,\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.ZeroChatMessaging]: {\n maintainer: \"ethan@vm0.ai\",\n description:\n \"Advertise zero chat create, send, and cancel in the agent system prompt without gating the CLI commands or API.\",\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 [FeatureSwitchKey.CustomConnectorCliCreate]: {\n maintainer: \"liangyou@vm0.ai\",\n description:\n \"Allow Zero CLI agents to create and configure custom connectors directly.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n },\n [FeatureSwitchKey.CustomConnectorOAuth2]: {\n maintainer: \"liangyou@vm0.ai\",\n description:\n \"Allow org admins to add OAuth 2.0 authentication to custom connectors.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\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;;;ADYA,IAAM,qCAAqC;AAAA,EACzC,GAAG;AAAA,EACH;AAAA;AACF;AAKA,IAAM,mBAA4D;AAAA,EAChE,oBAAuB,GAAG;AAAA,IACxB,YAAY;AAAA,IACZ,aAAa;AAAA,IACb,SAAS;AAAA,EACX;AAAA,EACA,wCAAiC,GAAG;AAAA,IAClC,YAAY;AAAA,IACZ,aAAa;AAAA,IACb,SAAS;AAAA,EACX;AAAA,EACA,oCAA+B,GAAG;AAAA,IAChC,YAAY;AAAA,IACZ,aAAa;AAAA,IACb,SAAS;AAAA,EACX;AAAA,EACA,0CAAkC,GAAG;AAAA,IACnC,YAAY;AAAA,IACZ,aAAa;AAAA,IACb,SAAS;AAAA,EACX;AAAA,EACA,kCAA8B,GAAG;AAAA,IAC/B,YAAY;AAAA,IACZ,aAAa;AAAA,IACb,SAAS;AAAA,EACX;AAAA,EACA,sCAAgC,GAAG;AAAA,IACjC,YAAY;AAAA,IACZ,aAAa;AAAA,IACb,SAAS;AAAA,EACX;AAAA,EACA,wCAAiC,GAAG;AAAA,IAClC,YAAY;AAAA,IACZ,aAAa;AAAA,IACb,SAAS;AAAA,EACX;AAAA,EACA,wCAAiC,GAAG;AAAA,IAClC,Y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,QAAQ;AACzD,QAAI,cAAc,mBAAmB,SAAS,MAAM,IAAI,KAAK,CAAC;AAC5D,aAAO;AAAA,EACX;AACA,SAAO;AACT;","names":[]}
@@ -12,12 +12,12 @@ import {
12
12
  fetchComputerUseScreenshot,
13
13
  getComputerUseCommand,
14
14
  listComputerUseHosts
15
- } from "./chunk-TG7CY4KI.js";
16
- import "./chunk-XLDNMDPG.js";
15
+ } from "./chunk-PJJKEPQZ.js";
16
+ import "./chunk-JQF2YK7E.js";
17
17
  import {
18
18
  ApiRequestError,
19
19
  withErrorHandler
20
- } from "./chunk-OMTRXPDY.js";
20
+ } from "./chunk-KI33RE7E.js";
21
21
  import "./chunk-MD3YWUKO.js";
22
22
  import {
23
23
  Command
@@ -970,4 +970,4 @@ export {
970
970
  formatComputerUseResultForConsole,
971
971
  zeroComputerUseCommand
972
972
  };
973
- //# sourceMappingURL=computer-use-OOSKIOG4.js.map
973
+ //# sourceMappingURL=computer-use-RUGK6VVH.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
  hasConnectorFirewallMetadataPermission
6
- } from "./chunk-3VLHXFOO.js";
6
+ } from "./chunk-3WTGL5ZJ.js";
7
7
  import {
8
8
  CALLBACK_PROMPT_PLACEHOLDER,
9
9
  addRequestedCallbackSearchParams,
@@ -18,7 +18,7 @@ import {
18
18
  resolveConnectorDiscoveryAgentContext,
19
19
  resolveManualGrantAuthMethod,
20
20
  searchConnectorCatalog
21
- } from "./chunk-U6NKZXUM.js";
21
+ } from "./chunk-DCNYE3MR.js";
22
22
  import {
23
23
  UNKNOWN_PERMISSION_GRANT,
24
24
  addZeroAgentCustomConnector,
@@ -41,19 +41,19 @@ import {
41
41
  setZeroCustomConnectorValues,
42
42
  startZeroCustomConnectorOAuth2,
43
43
  updateCustomConnectorBodySchema
44
- } from "./chunk-TG7CY4KI.js";
45
- import "./chunk-XLDNMDPG.js";
44
+ } from "./chunk-PJJKEPQZ.js";
45
+ import "./chunk-JQF2YK7E.js";
46
46
  import {
47
47
  getPlatformOrigin,
48
48
  toPlatformUrl
49
- } from "./chunk-HDQTIBUI.js";
49
+ } from "./chunk-AO6ELFHU.js";
50
50
  import "./chunk-MA22KQYU.js";
51
51
  import {
52
52
  ApiRequestError,
53
53
  getApiUrl,
54
54
  source_default,
55
55
  withErrorHandler
56
- } from "./chunk-OMTRXPDY.js";
56
+ } from "./chunk-KI33RE7E.js";
57
57
  import {
58
58
  decodeZeroTokenPayload
59
59
  } from "./chunk-MD3YWUKO.js";
@@ -1845,4 +1845,4 @@ var zeroConnectorCommand = new Command().name("connector").description("Manage a
1845
1845
  export {
1846
1846
  zeroConnectorCommand
1847
1847
  };
1848
- //# sourceMappingURL=connector-OHDUB2NY.js.map
1848
+ //# sourceMappingURL=connector-JN5FHRRE.js.map
@@ -10,19 +10,19 @@ import {
10
10
  createZeroCreditCheckout,
11
11
  getZeroBillingStatus,
12
12
  getZeroOrgMembers
13
- } from "./chunk-TG7CY4KI.js";
14
- import "./chunk-XLDNMDPG.js";
13
+ } from "./chunk-PJJKEPQZ.js";
14
+ import "./chunk-JQF2YK7E.js";
15
15
  import {
16
16
  planUpgradeUrl
17
17
  } from "./chunk-2NW76WYJ.js";
18
18
  import {
19
19
  getPlatformOrigin
20
- } from "./chunk-HDQTIBUI.js";
20
+ } from "./chunk-AO6ELFHU.js";
21
21
  import "./chunk-MA22KQYU.js";
22
22
  import {
23
23
  source_default,
24
24
  withErrorHandler
25
- } from "./chunk-OMTRXPDY.js";
25
+ } from "./chunk-KI33RE7E.js";
26
26
  import {
27
27
  decodeZeroTokenPayload
28
28
  } from "./chunk-MD3YWUKO.js";
@@ -163,4 +163,4 @@ var zeroCreditCommand = new Command().name("credit").description("View credit ba
163
163
  export {
164
164
  zeroCreditCommand
165
165
  };
166
- //# sourceMappingURL=credit-3KFLJLK6.js.map
166
+ //# sourceMappingURL=credit-N5MNJLNC.js.map
@@ -4,12 +4,12 @@ const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  requestDeveloperSupportConsent,
6
6
  submitDeveloperSupport
7
- } from "./chunk-TG7CY4KI.js";
8
- import "./chunk-XLDNMDPG.js";
7
+ } from "./chunk-PJJKEPQZ.js";
8
+ import "./chunk-JQF2YK7E.js";
9
9
  import "./chunk-MA22KQYU.js";
10
10
  import {
11
11
  withErrorHandler
12
- } from "./chunk-OMTRXPDY.js";
12
+ } from "./chunk-KI33RE7E.js";
13
13
  import "./chunk-MD3YWUKO.js";
14
14
  import {
15
15
  Command
@@ -61,4 +61,4 @@ Notes:
61
61
  export {
62
62
  zeroDeveloperSupportCommand
63
63
  };
64
- //# sourceMappingURL=developer-support-2IBPRORT.js.map
64
+ //# sourceMappingURL=developer-support-2HLI3OKQ.js.map
@@ -9,19 +9,19 @@ import {
9
9
  getZeroBillingStatus,
10
10
  getZeroOrg,
11
11
  getZeroOrgMembers
12
- } from "./chunk-TG7CY4KI.js";
13
- import "./chunk-XLDNMDPG.js";
12
+ } from "./chunk-PJJKEPQZ.js";
13
+ import "./chunk-JQF2YK7E.js";
14
14
  import {
15
15
  planUpgradeUrl
16
16
  } from "./chunk-2NW76WYJ.js";
17
17
  import {
18
18
  getPlatformOrigin
19
- } from "./chunk-HDQTIBUI.js";
19
+ } from "./chunk-AO6ELFHU.js";
20
20
  import "./chunk-MA22KQYU.js";
21
21
  import {
22
22
  source_default,
23
23
  withErrorHandler
24
- } from "./chunk-OMTRXPDY.js";
24
+ } from "./chunk-KI33RE7E.js";
25
25
  import "./chunk-MD3YWUKO.js";
26
26
  import {
27
27
  Command
@@ -122,4 +122,4 @@ Notes:
122
122
  export {
123
123
  zeroDoctorCommand
124
124
  };
125
- //# sourceMappingURL=doctor-MNQROQFL.js.map
125
+ //# sourceMappingURL=doctor-LDPQMIDX.js.map
@@ -7,13 +7,13 @@ import {
7
7
  downloadFeishuFile,
8
8
  initFeishuFileUpload,
9
9
  sendFeishuMessage
10
- } from "./chunk-TG7CY4KI.js";
11
- import "./chunk-XLDNMDPG.js";
10
+ } from "./chunk-PJJKEPQZ.js";
11
+ import "./chunk-JQF2YK7E.js";
12
12
  import "./chunk-MA22KQYU.js";
13
13
  import {
14
14
  source_default,
15
15
  withErrorHandler
16
- } from "./chunk-OMTRXPDY.js";
16
+ } from "./chunk-KI33RE7E.js";
17
17
  import "./chunk-MD3YWUKO.js";
18
18
  import {
19
19
  Command
@@ -278,4 +278,4 @@ Examples:
278
278
  export {
279
279
  zeroFeishuCommand
280
280
  };
281
- //# sourceMappingURL=feishu-EORFUWG2.js.map
281
+ //# sourceMappingURL=feishu-NR6XC4TZ.js.map
@@ -14,13 +14,13 @@ import {
14
14
  zeroFinanceQuoteRequestSchema,
15
15
  zeroFinanceRangeSchema,
16
16
  zeroFinanceSearchRequestSchema
17
- } from "./chunk-TG7CY4KI.js";
18
- import "./chunk-XLDNMDPG.js";
17
+ } from "./chunk-PJJKEPQZ.js";
18
+ import "./chunk-JQF2YK7E.js";
19
19
  import "./chunk-MA22KQYU.js";
20
20
  import {
21
21
  source_default,
22
22
  withErrorHandler
23
- } from "./chunk-OMTRXPDY.js";
23
+ } from "./chunk-KI33RE7E.js";
24
24
  import "./chunk-MD3YWUKO.js";
25
25
  import {
26
26
  Command,
@@ -125,4 +125,4 @@ Notes:
125
125
  export {
126
126
  zeroFinanceCommand
127
127
  };
128
- //# sourceMappingURL=finance-6NKK2ESW.js.map
128
+ //# sourceMappingURL=finance-5WPYA7YI.js.map
@@ -28,25 +28,30 @@ import {
28
28
  getZeroBillingStatus,
29
29
  listZeroConnectorCatalog,
30
30
  listZeroConnectorCatalogStatus
31
- } from "./chunk-TG7CY4KI.js";
31
+ } from "./chunk-PJJKEPQZ.js";
32
32
  import {
33
33
  generateWebImage,
34
34
  generateWebVideo,
35
35
  generateWebVoice
36
- } from "./chunk-XLDNMDPG.js";
36
+ } from "./chunk-JQF2YK7E.js";
37
37
  import {
38
38
  planUpgradeUrl
39
39
  } from "./chunk-2NW76WYJ.js";
40
40
  import {
41
41
  getPlatformOrigin
42
- } from "./chunk-HDQTIBUI.js";
42
+ } from "./chunk-AO6ELFHU.js";
43
43
  import "./chunk-MA22KQYU.js";
44
44
  import {
45
45
  ApiRequestError,
46
46
  source_default,
47
47
  withErrorHandler
48
- } from "./chunk-OMTRXPDY.js";
49
- import "./chunk-MD3YWUKO.js";
48
+ } from "./chunk-KI33RE7E.js";
49
+ import {
50
+ isFeatureEnabled
51
+ } from "./chunk-WNWWB3WF.js";
52
+ import {
53
+ decodeZeroTokenPayload
54
+ } from "./chunk-MD3YWUKO.js";
50
55
  import {
51
56
  Command,
52
57
  InvalidArgumentError,
@@ -1147,6 +1152,15 @@ init_esm_shims();
1147
1152
 
1148
1153
  // src/commands/zero/shared/html-artifact-authoring.ts
1149
1154
  init_esm_shims();
1155
+ var HTML_RESOURCE_INDEX_BASE_URL = "https://static.vm0.io/html-resources/9e005c4ace807d67338dfa701877df10175a4d2a1c677dea1414aba76867493d";
1156
+ var HTML_RESOURCE_INDEX_URLS = {
1157
+ website: `${HTML_RESOURCE_INDEX_BASE_URL}/website.json`,
1158
+ report: `${HTML_RESOURCE_INDEX_BASE_URL}/report.json`,
1159
+ poster: `${HTML_RESOURCE_INDEX_BASE_URL}/poster.json`,
1160
+ "dashboard-design": `${HTML_RESOURCE_INDEX_BASE_URL}/dashboard-design.json`,
1161
+ "mobile-app-design": `${HTML_RESOURCE_INDEX_BASE_URL}/mobile-app-design.json`,
1162
+ "docs-design": `${HTML_RESOURCE_INDEX_BASE_URL}/docs-design.json`
1163
+ };
1150
1164
  function slugify(value) {
1151
1165
  const slug = value.toLowerCase().replace(/[^a-z0-9]+/gu, "-").replace(/^-+|-+$/gu, "").replace(/-{2,}/gu, "-").slice(0, 48).replace(/-+$/u, "");
1152
1166
  return slug.length >= 3 ? slug : "html-artifact";
@@ -1175,12 +1189,86 @@ function createHtmlArtifactAuthoringPacket(options) {
1175
1189
  const hostCommand = `zero host ${outputDir3} --site ${site}${artifactKindFlag}${options.kind === "website" ? " --spa" : ""}`;
1176
1190
  const title = titleForKind(options.kind);
1177
1191
  const candidateSlice = selectResourceCandidates(options.kind);
1178
- const selectionSchema = {
1192
+ const tokenPayload = decodeZeroTokenPayload();
1193
+ const resourceIndexUrl = isFeatureEnabled(
1194
+ "htmlResourceIndex" /* HtmlResourceIndex */,
1195
+ {
1196
+ userId: tokenPayload?.userId,
1197
+ orgId: tokenPayload?.orgId,
1198
+ overrides: tokenPayload?.featureSwitchOverrides
1199
+ }
1200
+ ) ? HTML_RESOURCE_INDEX_URLS[options.kind] : void 0;
1201
+ const selectionSchema = resourceIndexUrl ? {
1202
+ skills: "string[]",
1203
+ templates: "string[]",
1204
+ designSystems: "string[]",
1205
+ rationale: "string"
1206
+ } : {
1179
1207
  skills: "string[]",
1180
1208
  template: "string",
1181
1209
  designSystem: "string | null",
1182
1210
  rationale: "string"
1183
1211
  };
1212
+ const selectionLines = resourceIndexUrl ? [
1213
+ "## Stage 1: Resource Selection",
1214
+ "- Download only the target-specific Resource Index listed below.",
1215
+ "- The index contains templates and target-specific skills for this target, plus design systems for HTML generation.",
1216
+ "- Derive keywords from the user prompt and search the index's `id`, `name`, and `description` fields.",
1217
+ "- Select resources only when they are useful for the request. There is no fixed selection count for any resource type.",
1218
+ "- Choose only IDs present in the index; do not invent resource IDs.",
1219
+ "- Treat the selection JSON as internal working state, then continue to authoring.",
1220
+ "",
1221
+ "## Selection Output Schema",
1222
+ "```json",
1223
+ JSON.stringify(selectionSchema, null, 2),
1224
+ "```",
1225
+ "",
1226
+ "## Resource Index",
1227
+ `URL: \`${resourceIndexUrl}\``,
1228
+ ""
1229
+ ] : [
1230
+ "## Stage 1: Resource Selection",
1231
+ "- Choose generation resources from the bundled registry slice below.",
1232
+ "- Select one template, one or more skills, and zero or one design system.",
1233
+ "- Choose only IDs present in this packet; do not invent registry IDs.",
1234
+ "- Prefer compatible resources, but the user prompt is the highest-priority signal.",
1235
+ "- Treat the selection JSON as internal working state, then continue to authoring.",
1236
+ "",
1237
+ "## Selection Output Schema",
1238
+ "```json",
1239
+ JSON.stringify(selectionSchema, null, 2),
1240
+ "```",
1241
+ "",
1242
+ "## Candidate Registry Slice",
1243
+ `Registry: \`${candidateSlice.registryVersion}\``,
1244
+ `Default Git Source: \`${candidateSlice.source.repo}@${candidateSlice.source.ref}\``,
1245
+ "",
1246
+ "```json",
1247
+ JSON.stringify(candidateSlice.candidates, null, 2),
1248
+ "```",
1249
+ ""
1250
+ ];
1251
+ const resolutionLines = resourceIndexUrl ? [
1252
+ "## Stage 2: Resolve Selected Resources",
1253
+ "- Resolve and download only resources selected from the index. Do not fetch unselected resources.",
1254
+ "- For a selected entry without `source.archive`, resolve its `source.path` from the index's pinned `source.repo@source.ref`. Do not run `zero resource pull` for it.",
1255
+ ...options.kind === "website" ? [
1256
+ "- For a selected entry with `source.archive`, run its exact `source.pull.command`, then use `source.pull.resolvedPath`. Do not construct or guess a direct R2 URL.",
1257
+ "- The Website index includes vm0 built-in R2 template packages as template entries with `source.archive`.",
1258
+ "- Each built-in Website template entry includes the exact pull command and extracted package path in `source.pull`."
1259
+ ] : [],
1260
+ "- For directory refs, inspect the most relevant files such as `SKILL.md`, `DESIGN.md`, `README.md`, tokens, examples, and templates.",
1261
+ "- If a source file cannot be fetched, state that limitation and fall back to the index metadata for that resource.",
1262
+ ""
1263
+ ] : [
1264
+ "## Stage 2: Resolve Selected Resources",
1265
+ "- First resolve every required resource listed above, then resolve every selected resource before authoring.",
1266
+ "- For a candidate without `source.archive`, resolve `source.path` only from the pinned Git Source above. Do not run `zero resource pull` for it.",
1267
+ "- For a candidate with `source.archive`, run `zero resource pull <candidate-id> --dir ./generated/resources` with that candidate's `id`, then resolve it at `./generated/resources/<source.path>`. Do not look for it in the Git Source.",
1268
+ "- For directory refs, inspect the most relevant files such as `SKILL.md`, `DESIGN.md`, `README.md`, tokens, examples, and templates.",
1269
+ "- If a source file cannot be fetched, state that limitation and fall back to the registry metadata for that resource.",
1270
+ ""
1271
+ ];
1184
1272
  const artifact = {
1185
1273
  outputMode: "primary-artifact-with-supporting-assets",
1186
1274
  primaryArtifact: {
@@ -1221,33 +1309,8 @@ function createHtmlArtifactAuthoringPacket(options) {
1221
1309
  "## User Prompt",
1222
1310
  options.prompt,
1223
1311
  "",
1224
- "## Stage 1: Resource Selection",
1225
- "- Choose generation resources from the bundled registry slice below.",
1226
- "- Select one template, one or more skills, and zero or one design system.",
1227
- "- Choose only IDs present in this packet; do not invent registry IDs.",
1228
- "- Prefer compatible resources, but the user prompt is the highest-priority signal.",
1229
- "- Treat the selection JSON as internal working state, then continue to authoring.",
1230
- "",
1231
- "## Selection Output Schema",
1232
- "```json",
1233
- JSON.stringify(selectionSchema, null, 2),
1234
- "```",
1235
- "",
1236
- "## Candidate Registry Slice",
1237
- `Registry: \`${candidateSlice.registryVersion}\``,
1238
- `Default Git Source: \`${candidateSlice.source.repo}@${candidateSlice.source.ref}\``,
1239
- "",
1240
- "```json",
1241
- JSON.stringify(candidateSlice.candidates, null, 2),
1242
- "```",
1243
- "",
1244
- "## Stage 2: Resolve Selected Resources",
1245
- "- First resolve every required resource listed above, then resolve every selected resource before authoring.",
1246
- "- For a candidate without `source.archive`, resolve `source.path` only from the pinned Git Source above. Do not run `zero resource pull` for it.",
1247
- "- For a candidate with `source.archive`, run `zero resource pull <candidate-id> --dir ./generated/resources` with that candidate's `id`, then resolve it at `./generated/resources/<source.path>`. Do not look for it in the Git Source.",
1248
- "- For directory refs, inspect the most relevant files such as `SKILL.md`, `DESIGN.md`, `README.md`, tokens, examples, and templates.",
1249
- "- If a source file cannot be fetched, state that limitation and fall back to the registry metadata for that resource.",
1250
- "",
1312
+ ...selectionLines,
1313
+ ...resolutionLines,
1251
1314
  "## Stage 3: Author Artifact",
1252
1315
  `Author a production-quality ${title} as a static HTML artifact using the selected generation resources.`,
1253
1316
  "",
@@ -2791,4 +2854,4 @@ var generateCommand = new Command().name("generate").description(
2791
2854
  export {
2792
2855
  generateCommand
2793
2856
  };
2794
- //# sourceMappingURL=generate-63JEK33H.js.map
2857
+ //# sourceMappingURL=generate-UKOECHJO.js.map