@vm0/cli 9.257.9 → 9.258.1

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 (110) hide show
  1. package/{agent-7VNHSS6M.js → agent-HHXWFLLL.js} +7 -7
  2. package/{banking-DTLOVEMC.js → banking-3KVPQTPJ.js} +5 -5
  3. package/{browser-5DHRNZUG.js → browser-DEANXGWE.js} +5 -5
  4. package/{chat-RWR5RI3D.js → chat-YHX7WLHI.js} +6 -6
  5. package/{chunk-7ZYZWFTO.js → chunk-4I4BFNV6.js} +30 -11
  6. package/chunk-4I4BFNV6.js.map +1 -0
  7. package/{chunk-PVSCR7KF.js → chunk-54WMJGC7.js} +22 -5
  8. package/chunk-54WMJGC7.js.map +1 -0
  9. package/{chunk-ASVXKSAO.js → chunk-6GX52NUE.js} +2 -2
  10. package/{chunk-ZH5JMQT6.js → chunk-HEUU2ZF4.js} +2 -2
  11. package/{chunk-R2W6GEAO.js → chunk-I4J6QZNO.js} +4 -4
  12. package/{chunk-7YLSF557.js → chunk-JKMJ57VN.js} +2 -2
  13. package/{chunk-QDB53R4O.js → chunk-MHNXUHV2.js} +3 -3
  14. package/chunk-MHNXUHV2.js.map +1 -0
  15. package/{chunk-RJMR6Y5N.js → chunk-MLNWKSAO.js} +2 -2
  16. package/{chunk-SJHAHK6L.js → chunk-NA7HNSSZ.js} +95 -166
  17. package/chunk-NA7HNSSZ.js.map +1 -0
  18. package/{chunk-HSLYLYDU.js → chunk-QFS7VMDL.js} +2 -2
  19. package/{chunk-OCWAE6QB.js → chunk-REI7CJHF.js} +6 -1
  20. package/chunk-REI7CJHF.js.map +1 -0
  21. package/{chunk-SCOFJV42.js → chunk-Z4CHUO26.js} +2 -2
  22. package/{computer-use-DAU5YBDC.js → computer-use-PCHEY5DP.js} +5 -5
  23. package/{connector-ZCJJZMNY.js → connector-P3I5QRR4.js} +8 -8
  24. package/{credit-F6RELVX2.js → credit-PT6NHEVU.js} +7 -7
  25. package/{developer-support-S62VEL5N.js → developer-support-Q6HYBHPP.js} +5 -5
  26. package/{doctor-DG23A6AN.js → doctor-7P3E6R26.js} +7 -7
  27. package/{feishu-AC5V3CE4.js → feishu-FZWNPA6Q.js} +5 -5
  28. package/{finance-T6XTNPN2.js → finance-ZNTOJKOX.js} +5 -5
  29. package/{generate-WOBMDE7H.js → generate-RBQBW44W.js} +45 -12
  30. package/generate-RBQBW44W.js.map +1 -0
  31. package/{github-LWIBJDAN.js → github-LJJTXI66.js} +5 -5
  32. package/{goal-4RBGP2JD.js → goal-JKPOW47N.js} +5 -5
  33. package/{host-5DV7QGCG.js → host-OO646QU3.js} +5 -5
  34. package/{logs-V7VE5EGF.js → logs-7NLYARAW.js} +7 -7
  35. package/{mail-5COD6BDI.js → mail-I5NC242K.js} +7 -7
  36. package/{maps-XMVZMG35.js → maps-ZWQPBZWH.js} +5 -5
  37. package/{model-UX2TBSTJ.js → model-YQWDW7EO.js} +6 -6
  38. package/{model-provider-OJLD75PB.js → model-provider-7JS37RQF.js} +6 -6
  39. package/{org-SKFZZKT7.js → org-GMYKRJPS.js} +5 -5
  40. package/package.json +1 -1
  41. package/{people-search-WNOB7QSQ.js → people-search-2AXJSFDN.js} +5 -5
  42. package/{phone-RO3WN7BH.js → phone-MHMCWKRK.js} +5 -5
  43. package/{preference-2FRKWQ6H.js → preference-WNXM6DBQ.js} +5 -5
  44. package/{resource-BPHV6EAB.js → resource-BINBRMIF.js} +6 -6
  45. package/{scrape-QICJLATE.js → scrape-HNST4RBU.js} +5 -5
  46. package/{search-4YHSXYOO.js → search-UISRJ3WP.js} +7 -7
  47. package/{secret-I65ALY72.js → secret-27KGYV3F.js} +5 -5
  48. package/{slack-5YE3B5ZT.js → slack-DMSIAUG2.js} +5 -5
  49. package/{teams-BUFGCMAN.js → teams-O2PQUEZR.js} +5 -5
  50. package/{telegram-CP4ACQX7.js → telegram-KSJZEIZT.js} +5 -5
  51. package/{upgrade-WJY6BRVK.js → upgrade-ZB2BYSW2.js} +4 -4
  52. package/{variable-FY6IH2PA.js → variable-N5UIODFQ.js} +5 -5
  53. package/{video-LHRWWLON.js → video-OL7X62T4.js} +4 -4
  54. package/{weather-7JJLPG3D.js → weather-NOX2NY2N.js} +5 -5
  55. package/{web-IDSGDHI7.js → web-6EZ44ALI.js} +5 -5
  56. package/{web-search-NGIYTBKS.js → web-search-FEGI3RME.js} +5 -5
  57. package/{whoami-KRH7PRZV.js → whoami-Q6XK2TC6.js} +7 -7
  58. package/{workflow-Y5HYJMAL.js → workflow-5ROHB57Q.js} +5 -5
  59. package/zero.js +43 -43
  60. package/chunk-7ZYZWFTO.js.map +0 -1
  61. package/chunk-OCWAE6QB.js.map +0 -1
  62. package/chunk-PVSCR7KF.js.map +0 -1
  63. package/chunk-QDB53R4O.js.map +0 -1
  64. package/chunk-SJHAHK6L.js.map +0 -1
  65. package/generate-WOBMDE7H.js.map +0 -1
  66. /package/{agent-7VNHSS6M.js.map → agent-HHXWFLLL.js.map} +0 -0
  67. /package/{banking-DTLOVEMC.js.map → banking-3KVPQTPJ.js.map} +0 -0
  68. /package/{browser-5DHRNZUG.js.map → browser-DEANXGWE.js.map} +0 -0
  69. /package/{chat-RWR5RI3D.js.map → chat-YHX7WLHI.js.map} +0 -0
  70. /package/{chunk-ASVXKSAO.js.map → chunk-6GX52NUE.js.map} +0 -0
  71. /package/{chunk-ZH5JMQT6.js.map → chunk-HEUU2ZF4.js.map} +0 -0
  72. /package/{chunk-R2W6GEAO.js.map → chunk-I4J6QZNO.js.map} +0 -0
  73. /package/{chunk-7YLSF557.js.map → chunk-JKMJ57VN.js.map} +0 -0
  74. /package/{chunk-RJMR6Y5N.js.map → chunk-MLNWKSAO.js.map} +0 -0
  75. /package/{chunk-HSLYLYDU.js.map → chunk-QFS7VMDL.js.map} +0 -0
  76. /package/{chunk-SCOFJV42.js.map → chunk-Z4CHUO26.js.map} +0 -0
  77. /package/{computer-use-DAU5YBDC.js.map → computer-use-PCHEY5DP.js.map} +0 -0
  78. /package/{connector-ZCJJZMNY.js.map → connector-P3I5QRR4.js.map} +0 -0
  79. /package/{credit-F6RELVX2.js.map → credit-PT6NHEVU.js.map} +0 -0
  80. /package/{developer-support-S62VEL5N.js.map → developer-support-Q6HYBHPP.js.map} +0 -0
  81. /package/{doctor-DG23A6AN.js.map → doctor-7P3E6R26.js.map} +0 -0
  82. /package/{feishu-AC5V3CE4.js.map → feishu-FZWNPA6Q.js.map} +0 -0
  83. /package/{finance-T6XTNPN2.js.map → finance-ZNTOJKOX.js.map} +0 -0
  84. /package/{github-LWIBJDAN.js.map → github-LJJTXI66.js.map} +0 -0
  85. /package/{goal-4RBGP2JD.js.map → goal-JKPOW47N.js.map} +0 -0
  86. /package/{host-5DV7QGCG.js.map → host-OO646QU3.js.map} +0 -0
  87. /package/{logs-V7VE5EGF.js.map → logs-7NLYARAW.js.map} +0 -0
  88. /package/{mail-5COD6BDI.js.map → mail-I5NC242K.js.map} +0 -0
  89. /package/{maps-XMVZMG35.js.map → maps-ZWQPBZWH.js.map} +0 -0
  90. /package/{model-UX2TBSTJ.js.map → model-YQWDW7EO.js.map} +0 -0
  91. /package/{model-provider-OJLD75PB.js.map → model-provider-7JS37RQF.js.map} +0 -0
  92. /package/{org-SKFZZKT7.js.map → org-GMYKRJPS.js.map} +0 -0
  93. /package/{people-search-WNOB7QSQ.js.map → people-search-2AXJSFDN.js.map} +0 -0
  94. /package/{phone-RO3WN7BH.js.map → phone-MHMCWKRK.js.map} +0 -0
  95. /package/{preference-2FRKWQ6H.js.map → preference-WNXM6DBQ.js.map} +0 -0
  96. /package/{resource-BPHV6EAB.js.map → resource-BINBRMIF.js.map} +0 -0
  97. /package/{scrape-QICJLATE.js.map → scrape-HNST4RBU.js.map} +0 -0
  98. /package/{search-4YHSXYOO.js.map → search-UISRJ3WP.js.map} +0 -0
  99. /package/{secret-I65ALY72.js.map → secret-27KGYV3F.js.map} +0 -0
  100. /package/{slack-5YE3B5ZT.js.map → slack-DMSIAUG2.js.map} +0 -0
  101. /package/{teams-BUFGCMAN.js.map → teams-O2PQUEZR.js.map} +0 -0
  102. /package/{telegram-CP4ACQX7.js.map → telegram-KSJZEIZT.js.map} +0 -0
  103. /package/{upgrade-WJY6BRVK.js.map → upgrade-ZB2BYSW2.js.map} +0 -0
  104. /package/{variable-FY6IH2PA.js.map → variable-N5UIODFQ.js.map} +0 -0
  105. /package/{video-LHRWWLON.js.map → video-OL7X62T4.js.map} +0 -0
  106. /package/{weather-7JJLPG3D.js.map → weather-NOX2NY2N.js.map} +0 -0
  107. /package/{web-IDSGDHI7.js.map → web-6EZ44ALI.js.map} +0 -0
  108. /package/{web-search-NGIYTBKS.js.map → web-search-FEGI3RME.js.map} +0 -0
  109. /package/{whoami-KRH7PRZV.js.map → whoami-Q6XK2TC6.js.map} +0 -0
  110. /package/{workflow-Y5HYJMAL.js.map → workflow-5ROHB57Q.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
  getApiUrl
6
- } from "./chunk-QDB53R4O.js";
6
+ } from "./chunk-MHNXUHV2.js";
7
7
  import {
8
8
  init_esm_shims
9
9
  } from "./chunk-3VVCUQPB.js";
@@ -42,4 +42,4 @@ export {
42
42
  toPlatformUrl,
43
43
  getPlatformOrigin
44
44
  };
45
- //# sourceMappingURL=chunk-HSLYLYDU.js.map
45
+ //# sourceMappingURL=chunk-QFS7VMDL.js.map
@@ -418,6 +418,11 @@ var FEATURE_SWITCHES = {
418
418
  enabled: false,
419
419
  enabledOrgIdHashes: STAFF_ORG_ID_HASHES
420
420
  },
421
+ ["imageStyleR2" /* ImageStyleR2 */]: {
422
+ maintainer: "bingjie@vm0.ai",
423
+ description: "Resolve archive-enabled image styles from private R2 packages. When off, image style authoring continues reading vm0-skills from GitHub.",
424
+ enabled: false
425
+ },
421
426
  ["planUpgradeGuidance" /* PlanUpgradeGuidance */]: {
422
427
  maintainer: "ethan@vm0.ai",
423
428
  description: "Show plan-upgrade guidance in Zero CLI help and render billing plan links as rich chat cards.",
@@ -506,4 +511,4 @@ export {
506
511
  isFeatureEnabled,
507
512
  decodeZeroTokenPayload
508
513
  };
509
- //# sourceMappingURL=chunk-OCWAE6QB.js.map
514
+ //# sourceMappingURL=chunk-REI7CJHF.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../packages/connectors/src/feature-switch-key.ts","../../../packages/core/src/feature-switch.ts","../../../packages/core/src/feature-switch-key.ts","../../../packages/core/src/identity-hash.ts","../src/lib/api/zero-token.ts"],"sourcesContent":["/**\n * Feature switch keys\n *\n * Defines all available feature switch identifiers.\n */\nexport enum FeatureSwitchKey {\n Dummy = \"dummy\",\n ExternalConnectorCatalog = \"externalConnectorCatalog\",\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 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 ZeroWeather = \"zeroWeather\",\n ZeroFinance = \"zeroFinance\",\n ZeroPeopleSearch = \"zeroPeopleSearch\",\n ZeroBrowser = \"zeroBrowser\",\n Banking = \"banking\",\n Lab = \"lab\",\n NotionWorkflowAutomations = \"notionWorkflowAutomations\",\n GithubWebhookAutomations = \"githubWebhookAutomations\",\n GithubWorkflowRunAutomations = \"githubWorkflowRunAutomations\",\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 StructuredPrompt = \"structuredPrompt\",\n\n ZapierConnector = \"zapierConnector\",\n ComputerUseDesktopPlugins = \"computerUseDesktopPlugins\",\n AgentUnreadIndicators = \"agentUnreadIndicators\",\n ChatThreadUnifiedSearch = \"chatThreadUnifiedSearch\",\n ComposerChatThreadSuggestions = \"composerChatThreadSuggestions\",\n SidebarSubscriptionUsage = \"sidebarSubscriptionUsage\",\n TeamsIntegration = \"teamsIntegration\",\n FeishuIntegration = \"feishuIntegration\",\n Artifacts = \"artifacts\",\n HostedArtifactVersions = \"hostedArtifactVersions\",\n VideoArtifactPosters = \"videoArtifactPosters\",\n WebsiteTemplateV2 = \"websiteTemplateV2\",\n ImageStyleR2 = \"imageStyleR2\",\n PlanUpgradeGuidance = \"planUpgradeGuidance\",\n OrgPlanEntitlementReads = \"orgPlanEntitlementReads\",\n WorkflowConnectorReadiness = \"workflowConnectorReadiness\",\n ZeroMail = \"zeroMail\",\n ComposerConnectorPermissions = \"composerConnectorPermissions\",\n ThreeColumnNav = \"threeColumnNav\",\n ChatHistoryBackfillProgress = \"chatHistoryBackfillProgress\",\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.ExternalConnectorCatalog]: {\n maintainer: \"liangyou@vm0.ai\",\n description:\n \"Use the accepted external catalog as the global source for official connectors\",\n enabled: true,\n userOverridable: false,\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.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.ZeroWeather]: {\n maintainer: \"ethan@vm0.ai\",\n description:\n \"Enable the managed Google-backed Zero Weather and Air Quality APIs and weather:read ZERO_TOKEN capability.\",\n enabled: true,\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.ZeroPeopleSearch]: {\n maintainer: \"liangyou@vm0.ai\",\n description:\n \"Enable managed Perplexity People Search and the people-search: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.GithubWorkflowRunAutomations]: {\n maintainer: \"ethan@vm0.ai\",\n description:\n \"Enable GitHub Actions workflow run completed event automations.\",\n enabled: true,\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.StructuredPrompt]: {\n maintainer: \"bingjie@vm0.ai\",\n description:\n \"Enable structured user prompt rendering, sends, and drafts while preserving the legacy content fallback.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\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.AgentUnreadIndicators]: {\n maintainer: \"ethan@vm0.ai\",\n description:\n \"Show chat unread indicators in sidebar pinned agent lists and the conversation picker.\",\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.ComposerChatThreadSuggestions]: {\n maintainer: \"ethan@vm0.ai\",\n description:\n \"Suggest titled chat threads from the current agent when typing @ in the chat composer.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n },\n [FeatureSwitchKey.ChatHistoryBackfillProgress]: {\n maintainer: \"ethan@vm0.ai\",\n description:\n \"Progress bar under the chat thread header showing history backfill progress while older messages load.\",\n // Not rolled out to anyone yet; enable per-user via the Lab page.\n enabled: false,\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.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.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: false,\n enabledUserHashes: [\"032a75d8\"],\n },\n [FeatureSwitchKey.WebsiteTemplateV2]: {\n maintainer: \"bingjie@vm0.ai\",\n description:\n \"Generate websites from refreshed self-contained template packages. When off, website generation uses the existing package versions.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\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: false,\n },\n [FeatureSwitchKey.PlanUpgradeGuidance]: {\n maintainer: \"ethan@vm0.ai\",\n description:\n \"Show plan-upgrade guidance in Zero CLI help and render billing plan links as rich chat cards.\",\n enabled: true,\n userOverridable: false,\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.ZeroMail]: {\n maintainer: \"ethan@vm0.ai\",\n description:\n \"Enable persistent Gmail and Outlook draft cards created through the Zero Mail CLI.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n },\n [FeatureSwitchKey.ZeroBrowser]: {\n maintainer: \"liangyou@vm0.ai\",\n description: \"Show the Zero Browser command in 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","export { FeatureSwitchKey } from \"@vm0/connectors/feature-switch-key\";\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","import type { FeatureSwitchKey } from \"@vm0/connectors/feature-switch-key\";\n\nexport interface ZeroTokenPayload {\n userId: string;\n runId: string;\n orgId: string;\n scope: string;\n capabilities: string[];\n featureSwitchOverrides?: Partial<Record<FeatureSwitchKey, boolean>>;\n iat: number;\n exp: number;\n}\n\n/**\n * Decode a ZERO_TOKEN JWT payload.\n * Only decodes — does NOT verify signature (server does that).\n * If no token is provided, reads from process.env.ZERO_TOKEN.\n * Returns undefined if token is missing, malformed, or not a zero-scoped token.\n */\nexport function decodeZeroTokenPayload(\n token?: string,\n): ZeroTokenPayload | undefined {\n const raw = token ?? process.env.ZERO_TOKEN;\n if (!raw) return undefined;\n\n const prefix = \"vm0_sandbox_\";\n if (!raw.startsWith(prefix)) return undefined;\n const jwt = raw.slice(prefix.length);\n\n const parts = jwt.split(\".\");\n if (parts.length !== 3) return undefined;\n\n try {\n const payload = JSON.parse(\n Buffer.from(parts[1]!, \"base64url\").toString(),\n ) as ZeroTokenPayload;\n if (payload.scope === \"zero\" && Array.isArray(payload.capabilities)) {\n return payload;\n }\n } catch {\n // Malformed token — fall through\n }\n return undefined;\n}\n"],"mappings":";;;;;;;;AAAA;;;ACAA;;;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;;;AFeA,IAAM,mBAA4D;AAAA,EAChE,oBAAuB,GAAG;AAAA,IACxB,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M,CAAC,GAAI,WAAW,EAAE,SAAS;AAAA,IAC/C;AACA,QAAI,QAAQ,UAAU,UAAU,MAAM,QAAQ,QAAQ,YAAY,GAAG;AACnE,aAAO;AAAA,IACT;AAAA,EACF,QAAQ;AAAA,EAER;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
  MODEL_PROVIDER_TYPES
6
- } from "./chunk-QDB53R4O.js";
6
+ } from "./chunk-MHNXUHV2.js";
7
7
  import {
8
8
  init_esm_shims
9
9
  } from "./chunk-3VVCUQPB.js";
@@ -40,4 +40,4 @@ export {
40
40
  formatModelProviderRoute,
41
41
  formatModelPolicyStatus
42
42
  };
43
- //# sourceMappingURL=chunk-SCOFJV42.js.map
43
+ //# sourceMappingURL=chunk-Z4CHUO26.js.map
@@ -12,13 +12,13 @@ import {
12
12
  fetchComputerUseScreenshot,
13
13
  getComputerUseCommand,
14
14
  listComputerUseHosts
15
- } from "./chunk-7ZYZWFTO.js";
16
- import "./chunk-ZH5JMQT6.js";
15
+ } from "./chunk-4I4BFNV6.js";
16
+ import "./chunk-HEUU2ZF4.js";
17
17
  import {
18
18
  ApiRequestError,
19
19
  withErrorHandler
20
- } from "./chunk-QDB53R4O.js";
21
- import "./chunk-OCWAE6QB.js";
20
+ } from "./chunk-MHNXUHV2.js";
21
+ import "./chunk-REI7CJHF.js";
22
22
  import {
23
23
  Command
24
24
  } from "./chunk-LD4ZVU4O.js";
@@ -970,4 +970,4 @@ export {
970
970
  formatComputerUseResultForConsole,
971
971
  zeroComputerUseCommand
972
972
  };
973
- //# sourceMappingURL=computer-use-DAU5YBDC.js.map
973
+ //# sourceMappingURL=computer-use-PCHEY5DP.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
  findFirewallMetadataPermission
6
- } from "./chunk-RJMR6Y5N.js";
6
+ } from "./chunk-MLNWKSAO.js";
7
7
  import {
8
8
  CALLBACK_PROMPT_PLACEHOLDER,
9
9
  addRequestedCallbackSearchParams,
@@ -17,7 +17,7 @@ import {
17
17
  resolveAgentContext,
18
18
  resolveManualGrantAuthMethod,
19
19
  searchPublicConnectorCatalog
20
- } from "./chunk-7YLSF557.js";
20
+ } from "./chunk-JKMJ57VN.js";
21
21
  import {
22
22
  UNKNOWN_PERMISSION_GRANT,
23
23
  connectZeroConnectorManualGrant,
@@ -32,20 +32,20 @@ import {
32
32
  getZeroCustomConnector,
33
33
  listZeroConnectorCatalogStatus,
34
34
  listZeroCustomConnectors
35
- } from "./chunk-7ZYZWFTO.js";
36
- import "./chunk-ZH5JMQT6.js";
35
+ } from "./chunk-4I4BFNV6.js";
36
+ import "./chunk-HEUU2ZF4.js";
37
37
  import {
38
38
  getPlatformOrigin,
39
39
  toPlatformUrl
40
- } from "./chunk-HSLYLYDU.js";
40
+ } from "./chunk-QFS7VMDL.js";
41
41
  import "./chunk-SB7EZ2ZO.js";
42
42
  import {
43
43
  ApiRequestError,
44
44
  getApiUrl,
45
45
  source_default,
46
46
  withErrorHandler
47
- } from "./chunk-QDB53R4O.js";
48
- import "./chunk-OCWAE6QB.js";
47
+ } from "./chunk-MHNXUHV2.js";
48
+ import "./chunk-REI7CJHF.js";
49
49
  import {
50
50
  Command,
51
51
  Option
@@ -1489,4 +1489,4 @@ var zeroConnectorCommand = new Command().name("connector").description("Manage a
1489
1489
  export {
1490
1490
  zeroConnectorCommand
1491
1491
  };
1492
- //# sourceMappingURL=connector-ZCJJZMNY.js.map
1492
+ //# sourceMappingURL=connector-P3I5QRR4.js.map
@@ -5,27 +5,27 @@ import {
5
5
  currentPlanAllowsVideo,
6
6
  currentPlanCanBuyCredits,
7
7
  currentTokenCanReadBilling
8
- } from "./chunk-ASVXKSAO.js";
8
+ } from "./chunk-6GX52NUE.js";
9
9
  import {
10
10
  createZeroCreditCheckout,
11
11
  getZeroBillingStatus,
12
12
  getZeroOrgMembers
13
- } from "./chunk-7ZYZWFTO.js";
14
- import "./chunk-ZH5JMQT6.js";
13
+ } from "./chunk-4I4BFNV6.js";
14
+ import "./chunk-HEUU2ZF4.js";
15
15
  import {
16
16
  planUpgradeUrl
17
17
  } from "./chunk-W75R7EZF.js";
18
18
  import {
19
19
  getPlatformOrigin
20
- } from "./chunk-HSLYLYDU.js";
20
+ } from "./chunk-QFS7VMDL.js";
21
21
  import "./chunk-SB7EZ2ZO.js";
22
22
  import {
23
23
  source_default,
24
24
  withErrorHandler
25
- } from "./chunk-QDB53R4O.js";
25
+ } from "./chunk-MHNXUHV2.js";
26
26
  import {
27
27
  decodeZeroTokenPayload
28
- } from "./chunk-OCWAE6QB.js";
28
+ } from "./chunk-REI7CJHF.js";
29
29
  import {
30
30
  Command,
31
31
  Option
@@ -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-F6RELVX2.js.map
166
+ //# sourceMappingURL=credit-PT6NHEVU.js.map
@@ -4,13 +4,13 @@ const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  requestDeveloperSupportConsent,
6
6
  submitDeveloperSupport
7
- } from "./chunk-7ZYZWFTO.js";
8
- import "./chunk-ZH5JMQT6.js";
7
+ } from "./chunk-4I4BFNV6.js";
8
+ import "./chunk-HEUU2ZF4.js";
9
9
  import "./chunk-SB7EZ2ZO.js";
10
10
  import {
11
11
  withErrorHandler
12
- } from "./chunk-QDB53R4O.js";
13
- import "./chunk-OCWAE6QB.js";
12
+ } from "./chunk-MHNXUHV2.js";
13
+ import "./chunk-REI7CJHF.js";
14
14
  import {
15
15
  Command
16
16
  } from "./chunk-LD4ZVU4O.js";
@@ -61,4 +61,4 @@ Notes:
61
61
  export {
62
62
  zeroDeveloperSupportCommand
63
63
  };
64
- //# sourceMappingURL=developer-support-S62VEL5N.js.map
64
+ //# sourceMappingURL=developer-support-Q6HYBHPP.js.map
@@ -4,25 +4,25 @@ const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  currentPlanAllowsVideo,
6
6
  currentPlanCanBuyCredits
7
- } from "./chunk-ASVXKSAO.js";
7
+ } from "./chunk-6GX52NUE.js";
8
8
  import {
9
9
  getZeroBillingStatus,
10
10
  getZeroOrg,
11
11
  getZeroOrgMembers
12
- } from "./chunk-7ZYZWFTO.js";
13
- import "./chunk-ZH5JMQT6.js";
12
+ } from "./chunk-4I4BFNV6.js";
13
+ import "./chunk-HEUU2ZF4.js";
14
14
  import {
15
15
  planUpgradeUrl
16
16
  } from "./chunk-W75R7EZF.js";
17
17
  import {
18
18
  getPlatformOrigin
19
- } from "./chunk-HSLYLYDU.js";
19
+ } from "./chunk-QFS7VMDL.js";
20
20
  import "./chunk-SB7EZ2ZO.js";
21
21
  import {
22
22
  source_default,
23
23
  withErrorHandler
24
- } from "./chunk-QDB53R4O.js";
25
- import "./chunk-OCWAE6QB.js";
24
+ } from "./chunk-MHNXUHV2.js";
25
+ import "./chunk-REI7CJHF.js";
26
26
  import {
27
27
  Command
28
28
  } from "./chunk-LD4ZVU4O.js";
@@ -122,4 +122,4 @@ Notes:
122
122
  export {
123
123
  zeroDoctorCommand
124
124
  };
125
- //# sourceMappingURL=doctor-DG23A6AN.js.map
125
+ //# sourceMappingURL=doctor-7P3E6R26.js.map
@@ -7,14 +7,14 @@ import {
7
7
  downloadFeishuFile,
8
8
  initFeishuFileUpload,
9
9
  sendFeishuMessage
10
- } from "./chunk-7ZYZWFTO.js";
11
- import "./chunk-ZH5JMQT6.js";
10
+ } from "./chunk-4I4BFNV6.js";
11
+ import "./chunk-HEUU2ZF4.js";
12
12
  import "./chunk-SB7EZ2ZO.js";
13
13
  import {
14
14
  source_default,
15
15
  withErrorHandler
16
- } from "./chunk-QDB53R4O.js";
17
- import "./chunk-OCWAE6QB.js";
16
+ } from "./chunk-MHNXUHV2.js";
17
+ import "./chunk-REI7CJHF.js";
18
18
  import {
19
19
  Command
20
20
  } from "./chunk-LD4ZVU4O.js";
@@ -274,4 +274,4 @@ Examples:
274
274
  export {
275
275
  zeroFeishuCommand
276
276
  };
277
- //# sourceMappingURL=feishu-AC5V3CE4.js.map
277
+ //# sourceMappingURL=feishu-FZWNPA6Q.js.map
@@ -14,14 +14,14 @@ import {
14
14
  zeroFinanceQuoteRequestSchema,
15
15
  zeroFinanceRangeSchema,
16
16
  zeroFinanceSearchRequestSchema
17
- } from "./chunk-7ZYZWFTO.js";
18
- import "./chunk-ZH5JMQT6.js";
17
+ } from "./chunk-4I4BFNV6.js";
18
+ import "./chunk-HEUU2ZF4.js";
19
19
  import "./chunk-SB7EZ2ZO.js";
20
20
  import {
21
21
  source_default,
22
22
  withErrorHandler
23
- } from "./chunk-QDB53R4O.js";
24
- import "./chunk-OCWAE6QB.js";
23
+ } from "./chunk-MHNXUHV2.js";
24
+ import "./chunk-REI7CJHF.js";
25
25
  import {
26
26
  Command,
27
27
  InvalidArgumentError,
@@ -125,4 +125,4 @@ Notes:
125
125
  export {
126
126
  zeroFinanceCommand
127
127
  };
128
- //# sourceMappingURL=finance-T6XTNPN2.js.map
128
+ //# sourceMappingURL=finance-ZNTOJKOX.js.map
@@ -9,6 +9,7 @@ import {
9
9
  findTemplate,
10
10
  findVideoTemplate,
11
11
  findWebsiteTemplateResource,
12
+ hasR2Archive,
12
13
  listDesignSystems,
13
14
  listImageStyles,
14
15
  listPresentationRunbookPackages,
@@ -17,35 +18,35 @@ import {
17
18
  resolvePresentationRunbookColorToken,
18
19
  selectResourceCandidates,
19
20
  toGenerationTarget
20
- } from "./chunk-SJHAHK6L.js";
21
+ } from "./chunk-NA7HNSSZ.js";
21
22
  import {
22
23
  currentPlanAllowsVideo,
23
24
  currentTokenCanReadBilling
24
- } from "./chunk-ASVXKSAO.js";
25
+ } from "./chunk-6GX52NUE.js";
25
26
  import {
26
27
  getZeroAgentUserConnectors,
27
28
  getZeroBillingStatus,
28
29
  listZeroConnectorCatalog,
29
30
  listZeroConnectorCatalogStatus
30
- } from "./chunk-7ZYZWFTO.js";
31
+ } from "./chunk-4I4BFNV6.js";
31
32
  import {
32
33
  generateWebImage,
33
34
  generateWebVideo,
34
35
  generateWebVoice
35
- } from "./chunk-ZH5JMQT6.js";
36
+ } from "./chunk-HEUU2ZF4.js";
36
37
  import {
37
38
  planUpgradeUrl
38
39
  } from "./chunk-W75R7EZF.js";
39
40
  import {
40
41
  getPlatformOrigin
41
- } from "./chunk-HSLYLYDU.js";
42
+ } from "./chunk-QFS7VMDL.js";
42
43
  import "./chunk-SB7EZ2ZO.js";
43
44
  import {
44
45
  ApiRequestError,
45
46
  source_default,
46
47
  withErrorHandler
47
- } from "./chunk-QDB53R4O.js";
48
- import "./chunk-OCWAE6QB.js";
48
+ } from "./chunk-MHNXUHV2.js";
49
+ import "./chunk-REI7CJHF.js";
49
50
  import {
50
51
  Command,
51
52
  InvalidArgumentError,
@@ -66,14 +67,24 @@ init_esm_shims();
66
67
 
67
68
  // src/commands/zero/shared/image-style-authoring.ts
68
69
  init_esm_shims();
69
- function formatStyleSource(source) {
70
- if ("repo" in source) {
70
+ function formatStyleSource(style, sourceMode) {
71
+ const source = style.source;
72
+ if (sourceMode === "github" && source.repo && source.ref) {
71
73
  return [
72
74
  `- Repository: \`${source.repo}@${source.ref}\``,
73
75
  `- Path: \`${source.path}\``
74
76
  ];
75
77
  }
76
- return [`- Path: \`${source.path}\``];
78
+ if (sourceMode === "r2" && source.archive) {
79
+ return [
80
+ `- Registry resource: \`${style.id}\``,
81
+ `- Pull command: \`zero resource pull ${style.id} --dir ./generated/resources\``,
82
+ `- Path after pull: \`./generated/resources/${source.path}\``
83
+ ];
84
+ }
85
+ throw new Error(
86
+ `Image style ${style.id} does not support ${sourceMode} source resolution`
87
+ );
77
88
  }
78
89
  var outputDir = "./generated/images";
79
90
  var artifactRules = [
@@ -99,6 +110,7 @@ function createStyledImageCompilationPacket(options) {
99
110
  previewKind: "image",
100
111
  outputDir
101
112
  };
113
+ const sourceResolutionRule = options.sourceMode === "r2" ? "Run the listed `zero resource pull` command once, then read the extracted style package before compiling." : "Read the selected GitHub style source before compiling.";
102
114
  const instructions = [
103
115
  `# Zero generate image prompt compile ${options.style.id}`,
104
116
  "",
@@ -113,9 +125,10 @@ function createStyledImageCompilationPacket(options) {
113
125
  `- ${options.style.description}`,
114
126
  "",
115
127
  "## Style Source",
116
- ...formatStyleSource(options.style.source),
128
+ ...formatStyleSource(options.style, options.sourceMode),
117
129
  "",
118
130
  "## Prompt Compiler Task",
131
+ `- ${sourceResolutionRule}`,
119
132
  "- Read the selected style source before compiling, especially `SKILL.md`, references, examples, and templates. If unavailable, stop without generating.",
120
133
  "- Rewrite the user prompt into one final image-generation prompt that obeys the selected style.",
121
134
  "- Include style-specific composition, medium, palette, subject handling, reference usage, and must-avoid constraints in the final prompt.",
@@ -821,6 +834,12 @@ function parseSeed(value) {
821
834
  function collectString(value, previous) {
822
835
  return [...previous, value];
823
836
  }
837
+ function parseStyleSource(value) {
838
+ if (value !== "github" && value !== "r2") {
839
+ throw new InvalidArgumentError("style source must be github or r2");
840
+ }
841
+ return value;
842
+ }
824
843
  function parseInputFidelity(value) {
825
844
  if (value === void 0) {
826
845
  return void 0;
@@ -853,6 +872,9 @@ function resolveImagePromptMode(options, usageCommand) {
853
872
  if (!compile && options.style) {
854
873
  throw new Error("--style can only be used with --compile");
855
874
  }
875
+ if (!compile && options.styleSource !== "github") {
876
+ throw new Error("--style-source can only be used with --compile");
877
+ }
856
878
  if ([compile, hasCompiledPrompt, hasRawPrompt].filter(Boolean).length !== 1) {
857
879
  throw requireImageModeError(usageCommand);
858
880
  }
@@ -925,6 +947,11 @@ function createImageGenerateCommand(config) {
925
947
  ).option(
926
948
  "--style <id>",
927
949
  "Image style id to compile from the registry (see Image Styles below)"
950
+ ).option(
951
+ "--style-source <source>",
952
+ "Style package source for compile mode: github or r2",
953
+ parseStyleSource,
954
+ "github"
928
955
  ).option(
929
956
  "--compile",
930
957
  "Resolve the selected style and print a prompt-compilation packet"
@@ -1001,9 +1028,15 @@ ${formatRegistryListing(styles, "image styles")}`;
1001
1028
  if (!style) {
1002
1029
  throw unknownStyleError(styleId, config.usageCommand);
1003
1030
  }
1031
+ if (options.styleSource === "r2" && !hasR2Archive(style)) {
1032
+ throw new Error(
1033
+ `Image style ${style.id} does not provide an R2 archive`
1034
+ );
1035
+ }
1004
1036
  const packet = createStyledImageCompilationPacket({
1005
1037
  prompt: resolvedPrompt,
1006
1038
  style,
1039
+ sourceMode: options.styleSource,
1007
1040
  details: [
1008
1041
  `Model preference if direct image generation is used: ${options.model}`,
1009
1042
  `Requested size: ${options.size}`,
@@ -2751,4 +2784,4 @@ var generateCommand = new Command().name("generate").description(
2751
2784
  export {
2752
2785
  generateCommand
2753
2786
  };
2754
- //# sourceMappingURL=generate-WOBMDE7H.js.map
2787
+ //# sourceMappingURL=generate-RBQBW44W.js.map