@vm0/cli 9.277.0 → 9.277.2

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 (107) hide show
  1. package/{agent-XXUF45NW.js → agent-ZPBMY2SD.js} +6 -6
  2. package/{banking-D5MZDB3Q.js → banking-HEAMKLPE.js} +4 -4
  3. package/{browser-2RL5R75L.js → browser-OL6ZE6BX.js} +4 -4
  4. package/{chat-VNU2U22N.js → chat-43YOERZG.js} +6 -6
  5. package/{chunk-7NTVSSO6.js → chunk-3FRL47BJ.js} +2 -2
  6. package/{chunk-GGHE453K.js → chunk-5AIAG76X.js} +2 -2
  7. package/{chunk-W3ML4DBM.js → chunk-5BIHTSHQ.js} +312 -119
  8. package/chunk-5BIHTSHQ.js.map +1 -0
  9. package/{chunk-RQCVJTYT.js → chunk-JPLAJP5I.js} +2 -2
  10. package/{chunk-SWYBE4DF.js → chunk-KA75HGXU.js} +255 -743
  11. package/chunk-KA75HGXU.js.map +1 -0
  12. package/{chunk-7KUFYG6Z.js → chunk-LPNBRPVQ.js} +4 -4
  13. package/{chunk-HTTADLT3.js → chunk-NDYPPVD3.js} +2 -22
  14. package/{chunk-HTTADLT3.js.map → chunk-NDYPPVD3.js.map} +1 -1
  15. package/{chunk-SFTOB3J4.js → chunk-QJI3SAUY.js} +56 -5
  16. package/{chunk-SFTOB3J4.js.map → chunk-QJI3SAUY.js.map} +1 -1
  17. package/{chunk-YL5CDK4E.js → chunk-SVFOPAWB.js} +1 -7
  18. package/chunk-SVFOPAWB.js.map +1 -0
  19. package/{chunk-TJ4W4HU4.js → chunk-V2FTIYTG.js} +2333 -2628
  20. package/chunk-V2FTIYTG.js.map +1 -0
  21. package/{chunk-BDOANREY.js → chunk-WHCP2H2S.js} +6 -7
  22. package/chunk-WHCP2H2S.js.map +1 -0
  23. package/{computer-use-OBY6F7MG.js → computer-use-2GLT2YH7.js} +4 -4
  24. package/{connector-7EU4AGKE.js → connector-PVESAPZF.js} +6 -6
  25. package/{credit-OFW66JTC.js → credit-NMYQ76CX.js} +6 -16
  26. package/credit-NMYQ76CX.js.map +1 -0
  27. package/{developer-support-BXOAPDP7.js → developer-support-F75A6J22.js} +4 -4
  28. package/{doctor-YOA6QLSW.js → doctor-QDTOPN2D.js} +18 -41
  29. package/doctor-QDTOPN2D.js.map +1 -0
  30. package/{feishu-PENCRP3I.js → feishu-W6YXMIUS.js} +4 -4
  31. package/{finance-JRQBO4PM.js → finance-2J5KDPA5.js} +4 -4
  32. package/{generate-IZMDDSOO.js → generate-2VM7AIVZ.js} +6 -6
  33. package/{github-V2AIZ6V4.js → github-OCKDSECE.js} +4 -4
  34. package/{goal-Y45PFXMF.js → goal-3KPOQFUH.js} +4 -4
  35. package/{host-M4NUXM62.js → host-MAAICSOY.js} +4 -4
  36. package/{logs-WD5IEUA5.js → logs-GKIQLSQ6.js} +7 -7
  37. package/{mail-OVEMNODA.js → mail-KLADGEP4.js} +6 -6
  38. package/{maps-CTFMTOAJ.js → maps-S5USXHOL.js} +4 -4
  39. package/{model-2T3O6GG3.js → model-XRK7Y3MG.js} +5 -5
  40. package/{model-provider-2TFKEOVI.js → model-provider-OONFZIY4.js} +5 -5
  41. package/package.json +1 -1
  42. package/{people-search-VV3GDZDJ.js → people-search-FXKKUDJG.js} +4 -4
  43. package/{phone-PHC6VFIA.js → phone-GWXG7JWK.js} +4 -4
  44. package/{recognize-KWIG2HNA.js → recognize-N3ENWTBX.js} +4 -4
  45. package/{resource-6GERE5UR.js → resource-AX5VPSH4.js} +4 -4
  46. package/{scrape-UAWGI7FN.js → scrape-CNWD4P44.js} +4 -4
  47. package/{search-XDNOEE6X.js → search-WDONTFV3.js} +7 -7
  48. package/{slack-UDPD5UVA.js → slack-2FELLBUE.js} +4 -4
  49. package/{teams-3NJV5VLD.js → teams-KMB4QSGG.js} +4 -4
  50. package/{telegram-6LWQGQHT.js → telegram-GIKM2NS7.js} +4 -4
  51. package/{upgrade-T2PZFM3H.js → upgrade-AZS7AIVQ.js} +3 -3
  52. package/{video-WJZ6PDFP.js → video-QE2FIEIG.js} +3 -3
  53. package/{weather-EG7DNGFZ.js → weather-V4KRC55E.js} +4 -4
  54. package/{web-PFRNVBF2.js → web-XSK6I5E6.js} +4 -4
  55. package/{web-search-733PZEHP.js → web-search-RP5C7D7D.js} +4 -4
  56. package/{whoami-GWLDXMNP.js → whoami-SNBYDOBY.js} +17 -5
  57. package/whoami-SNBYDOBY.js.map +1 -0
  58. package/{workflow-DKPLW4MQ.js → workflow-UWMDJILQ.js} +7 -7
  59. package/zero.js +40 -47
  60. package/zero.js.map +1 -1
  61. package/chunk-BDOANREY.js.map +0 -1
  62. package/chunk-SWYBE4DF.js.map +0 -1
  63. package/chunk-TJ4W4HU4.js.map +0 -1
  64. package/chunk-W3ML4DBM.js.map +0 -1
  65. package/chunk-YL5CDK4E.js.map +0 -1
  66. package/credit-OFW66JTC.js.map +0 -1
  67. package/doctor-YOA6QLSW.js.map +0 -1
  68. package/org-VSS4S3I4.js +0 -843
  69. package/org-VSS4S3I4.js.map +0 -1
  70. package/whoami-GWLDXMNP.js.map +0 -1
  71. /package/{agent-XXUF45NW.js.map → agent-ZPBMY2SD.js.map} +0 -0
  72. /package/{banking-D5MZDB3Q.js.map → banking-HEAMKLPE.js.map} +0 -0
  73. /package/{browser-2RL5R75L.js.map → browser-OL6ZE6BX.js.map} +0 -0
  74. /package/{chat-VNU2U22N.js.map → chat-43YOERZG.js.map} +0 -0
  75. /package/{chunk-7NTVSSO6.js.map → chunk-3FRL47BJ.js.map} +0 -0
  76. /package/{chunk-GGHE453K.js.map → chunk-5AIAG76X.js.map} +0 -0
  77. /package/{chunk-RQCVJTYT.js.map → chunk-JPLAJP5I.js.map} +0 -0
  78. /package/{chunk-7KUFYG6Z.js.map → chunk-LPNBRPVQ.js.map} +0 -0
  79. /package/{computer-use-OBY6F7MG.js.map → computer-use-2GLT2YH7.js.map} +0 -0
  80. /package/{connector-7EU4AGKE.js.map → connector-PVESAPZF.js.map} +0 -0
  81. /package/{developer-support-BXOAPDP7.js.map → developer-support-F75A6J22.js.map} +0 -0
  82. /package/{feishu-PENCRP3I.js.map → feishu-W6YXMIUS.js.map} +0 -0
  83. /package/{finance-JRQBO4PM.js.map → finance-2J5KDPA5.js.map} +0 -0
  84. /package/{generate-IZMDDSOO.js.map → generate-2VM7AIVZ.js.map} +0 -0
  85. /package/{github-V2AIZ6V4.js.map → github-OCKDSECE.js.map} +0 -0
  86. /package/{goal-Y45PFXMF.js.map → goal-3KPOQFUH.js.map} +0 -0
  87. /package/{host-M4NUXM62.js.map → host-MAAICSOY.js.map} +0 -0
  88. /package/{logs-WD5IEUA5.js.map → logs-GKIQLSQ6.js.map} +0 -0
  89. /package/{mail-OVEMNODA.js.map → mail-KLADGEP4.js.map} +0 -0
  90. /package/{maps-CTFMTOAJ.js.map → maps-S5USXHOL.js.map} +0 -0
  91. /package/{model-2T3O6GG3.js.map → model-XRK7Y3MG.js.map} +0 -0
  92. /package/{model-provider-2TFKEOVI.js.map → model-provider-OONFZIY4.js.map} +0 -0
  93. /package/{people-search-VV3GDZDJ.js.map → people-search-FXKKUDJG.js.map} +0 -0
  94. /package/{phone-PHC6VFIA.js.map → phone-GWXG7JWK.js.map} +0 -0
  95. /package/{recognize-KWIG2HNA.js.map → recognize-N3ENWTBX.js.map} +0 -0
  96. /package/{resource-6GERE5UR.js.map → resource-AX5VPSH4.js.map} +0 -0
  97. /package/{scrape-UAWGI7FN.js.map → scrape-CNWD4P44.js.map} +0 -0
  98. /package/{search-XDNOEE6X.js.map → search-WDONTFV3.js.map} +0 -0
  99. /package/{slack-UDPD5UVA.js.map → slack-2FELLBUE.js.map} +0 -0
  100. /package/{teams-3NJV5VLD.js.map → teams-KMB4QSGG.js.map} +0 -0
  101. /package/{telegram-6LWQGQHT.js.map → telegram-GIKM2NS7.js.map} +0 -0
  102. /package/{upgrade-T2PZFM3H.js.map → upgrade-AZS7AIVQ.js.map} +0 -0
  103. /package/{video-WJZ6PDFP.js.map → video-QE2FIEIG.js.map} +0 -0
  104. /package/{weather-EG7DNGFZ.js.map → weather-V4KRC55E.js.map} +0 -0
  105. /package/{web-PFRNVBF2.js.map → web-XSK6I5E6.js.map} +0 -0
  106. /package/{web-search-733PZEHP.js.map → web-search-RP5C7D7D.js.map} +0 -0
  107. /package/{workflow-DKPLW4MQ.js.map → workflow-UWMDJILQ.js.map} +0 -0
@@ -337,6 +337,11 @@ var FEATURE_SWITCHES = {
337
337
  enabled: false,
338
338
  enabledOrgIdHashes: STAFF_ORG_ID_HASHES
339
339
  },
340
+ ["chatSteer" /* ChatSteer */]: {
341
+ maintainer: "linghan@vm0.ai",
342
+ description: "Steer pending chat prompts into active runs and render them inline.",
343
+ enabled: false
344
+ },
340
345
  ["pwaChatKeyboardGestures" /* PwaChatKeyboardGestures */]: {
341
346
  maintainer: "bingjie@vm0.ai",
342
347
  description: "Keep the PWA chat composer pinned above the software keyboard and support swipe-to-dismiss gestures.",
@@ -414,12 +419,6 @@ var FEATURE_SWITCHES = {
414
419
  enabled: false,
415
420
  enabledOrgIdHashes: STAFF_ORG_ID_HASHES
416
421
  },
417
- ["zeroMailReplyFollowUp" /* ZeroMailReplyFollowUp */]: {
418
- maintainer: "yuma@vm0.ai",
419
- description: "Enable Zero Mail reply follow-up for staff after all API deployments can read Gmail event configurations with threadId.",
420
- enabled: false,
421
- enabledOrgIdHashes: STAFF_ORG_ID_HASHES
422
- },
423
422
  ["zeroBrowser" /* ZeroBrowser */]: {
424
423
  maintainer: "liangyou@vm0.ai",
425
424
  description: "Enable thread-scoped Cloud browser access in chat and the Zero CLI.",
@@ -485,4 +484,4 @@ function isFeatureEnabled(key, ctx) {
485
484
  export {
486
485
  isFeatureEnabled
487
486
  };
488
- //# sourceMappingURL=chunk-BDOANREY.js.map
487
+ //# sourceMappingURL=chunk-WHCP2H2S.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 JoggAiBuiltIn = \"joggAiBuiltIn\",\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 ZeroBrowser = \"zeroBrowser\",\n ZeroChatMessaging = \"zeroChatMessaging\",\n RustZeroCli = \"rustZeroCli\",\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 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 ChatSteer = \"chatSteer\",\n PwaChatKeyboardGestures = \"pwaChatKeyboardGestures\",\n SidebarSubscriptionUsage = \"sidebarSubscriptionUsage\",\n TeamsIntegration = \"teamsIntegration\",\n FeishuIntegration = \"feishuIntegration\",\n StrapiIntegration = \"strapiIntegration\",\n ArtifactKeyV2 = \"artifactKeyV2\",\n HostedArtifactVersions = \"hostedArtifactVersions\",\n HtmlResourceIndex = \"htmlResourceIndex\",\n WorkflowConnectorReadiness = \"workflowConnectorReadiness\",\n ComposerConnectorPermissions = \"composerConnectorPermissions\",\n ThreeColumnNav = \"threeColumnNav\",\n ChatThreadSidebarAutoOpen = \"chatThreadSidebarAutoOpen\",\n ArtifactSidebarInlineOpen = \"artifactSidebarInlineOpen\",\n CustomConnectorCliCreate = \"customConnectorCliCreate\",\n CustomConnectorOAuth2 = \"customConnectorOAuth2\",\n MermaidDiagrams = \"mermaidDiagrams\",\n CustomConnectorPermissions = \"customConnectorPermissions\",\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. Every registered switch accepts user overrides\n * through `POST /api/zero/feature-switches`. 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}\n\nexport interface FeatureSwitchMetadata {\n readonly maintainer: string;\n readonly description?: string;\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: true,\n },\n [FeatureSwitchKey.GoogleFormsConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Google Forms connector\",\n enabled: true,\n },\n [FeatureSwitchKey.JoggAiConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the JoggAI video generation connector\",\n enabled: true,\n },\n [FeatureSwitchKey.JoggAiBuiltIn]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable vm0-managed JoggAI talking-avatar video generation\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\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.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 },\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 },\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 },\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.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 },\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 },\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 },\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.ChatSteer]: {\n maintainer: \"linghan@vm0.ai\",\n description:\n \"Steer pending chat prompts into active runs and render them inline.\",\n enabled: false,\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 },\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.MermaidDiagrams]: {\n maintainer: \"bingjie@vm0.ai\",\n description:\n \"Render ```mermaid code blocks in assistant markdown as diagrams, and tell the web chat agent that they are rendered.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n },\n [FeatureSwitchKey.ArtifactSidebarInlineOpen]: {\n maintainer: \"bingjie@vm0.ai\",\n description:\n \"Open an artifact clicked in a chat thread inside the already-open artifact sidebar instead of stacking the page-global lightbox over it.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n },\n [FeatureSwitchKey.ThreeColumnNav]: {\n maintainer: \"ming@vm0.ai\",\n description:\n \"Slack-style three-column navigation: a labeled icon rail, a pinned-agents and chat-threads list column, and the conversation pane.\",\n enabled: false,\n // Ming only for the first pass; widen to staff once it settles.\n enabledEmailHashes: [\"54757055\"], // fnv1a(\"ming@vm0.ai\")\n },\n [FeatureSwitchKey.SidebarSubscriptionUsage]: {\n maintainer: \"ethan@vm0.ai\",\n description:\n \"Show Codex and Claude Code personal subscription usage in the Zero sidebar footer.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n },\n [FeatureSwitchKey.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 },\n [FeatureSwitchKey.ArtifactKeyV2]: {\n maintainer: \"yuma@vm0.ai\",\n description:\n \"Store new user artifacts under flat, ten-character hashed public keys.\",\n enabled: true,\n },\n [FeatureSwitchKey.HostedArtifactVersions]: {\n maintainer: \"yuma@vm0.ai\",\n description:\n \"Create immutable hosted artifact versions behind stable site aliases.\",\n enabled: true,\n },\n [FeatureSwitchKey.HtmlResourceIndex]: {\n maintainer: \"bingjie@vm0.ai\",\n description:\n \"Use target-specific static indexes for HTML generation resource selection.\",\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 },\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.RustZeroCli]: {\n maintainer: \"yuma@vm0.ai\",\n description:\n \"Use the runner-bundled Rust zero-cli entry point for Zero CLI commands.\",\n enabled: false,\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 },\n [FeatureSwitchKey.CustomConnectorCliCreate]: {\n maintainer: \"liangyou@vm0.ai\",\n description:\n \"Allow Zero CLI agents to create and configure custom connectors directly.\",\n enabled: true,\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: true,\n },\n [FeatureSwitchKey.CustomConnectorPermissions]: {\n maintainer: \"yuma@vm0.ai\",\n description:\n \"Allow users to manage agent permission grants for custom connectors.\",\n enabled: 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 };\n }\n return result;\n}\n\n/** Keep overrides for currently registered feature switches. */\nexport function filterFeatureSwitchOverrides(\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 (key in FEATURE_SWITCHES) {\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;;;ADSA,IAAM,qCAAqC;AAAA,EACzC,GAAG;AAAA,EACH;AAAA;AACF;AAKA,IAAM,mBAA4D;AAAA,EAChE,oBAAuB,GAAG;AAAA,IACxB,YAAY;AAAA,IACZ,aAAa;AAAA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,IACF,SAAS;AAAA,EACX;AAAA,EACA,8DAA4C,GAAG;AAAA,IAC7C,YAAY;AAAA,IACZ,aACE;AAAA,IACF,SAAS;AAAA,EACX;AACF;AA0HO,SAAS,iBACd,KACA,KACS;AACT,QAAM,WAAW,IAAI,YAAY,GAAG;AACpC,MAAI,aAAa,QAAW;AAC1B,WAAO;AAAA,EACT;AAEA,QAAM,gBAAgB,iBAAiB,GAAG;AAC1C,MAAI,cAAc,SAAS;AACzB,WAAO;AAAA,EACT;AACA,MAAI,IAAI,UAAU,cAAc,mBAAmB,QAAQ;AACzD,QAAI,cAAc,kBAAkB,SAAS,MAAM,IAAI,MAAM,CAAC;AAC5D,aAAO;AAAA,EACX;AACA,MAAI,IAAI,SAAS,cAAc,oBAAoB,QAAQ;AACzD,QACE,cAAc,mBAAmB,SAAS,MAAM,IAAI,MAAM,YAAY,CAAC,CAAC;AAExE,aAAO;AAAA,EACX;AACA,MAAI,IAAI,SAAS,cAAc,oBAAoB,QAAQ;AACzD,QAAI,cAAc,mBAAmB,SAAS,MAAM,IAAI,KAAK,CAAC;AAC5D,aAAO;AAAA,EACX;AACA,SAAO;AACT;","names":[]}
@@ -12,12 +12,12 @@ import {
12
12
  fetchComputerUseScreenshot,
13
13
  getComputerUseCommand,
14
14
  listComputerUseHosts
15
- } from "./chunk-SWYBE4DF.js";
16
- import "./chunk-SFTOB3J4.js";
15
+ } from "./chunk-KA75HGXU.js";
16
+ import "./chunk-QJI3SAUY.js";
17
17
  import {
18
18
  ApiRequestError,
19
19
  withErrorHandler
20
- } from "./chunk-TJ4W4HU4.js";
20
+ } from "./chunk-V2FTIYTG.js";
21
21
  import "./chunk-32FE3MDA.js";
22
22
  import {
23
23
  Command
@@ -970,4 +970,4 @@ export {
970
970
  formatComputerUseResultForConsole,
971
971
  zeroComputerUseCommand
972
972
  };
973
- //# sourceMappingURL=computer-use-OBY6F7MG.js.map
973
+ //# sourceMappingURL=computer-use-2GLT2YH7.js.map
@@ -15,7 +15,7 @@ import {
15
15
  resolveConnectorDiscoveryAgentContext,
16
16
  resolveManualGrantAuthMethod,
17
17
  searchConnectorCatalog
18
- } from "./chunk-RQCVJTYT.js";
18
+ } from "./chunk-JPLAJP5I.js";
19
19
  import {
20
20
  addZeroAgentCustomConnector,
21
21
  connectZeroConnectorManualGrant,
@@ -36,21 +36,21 @@ import {
36
36
  setZeroCustomConnectorValues,
37
37
  startZeroCustomConnectorOAuth2,
38
38
  updateCustomConnectorBodySchema
39
- } from "./chunk-SWYBE4DF.js";
39
+ } from "./chunk-KA75HGXU.js";
40
40
  import {
41
41
  UNKNOWN_PERMISSION_GRANT
42
- } from "./chunk-SFTOB3J4.js";
42
+ } from "./chunk-QJI3SAUY.js";
43
43
  import {
44
44
  getPlatformOrigin,
45
45
  toPlatformUrl
46
- } from "./chunk-7NTVSSO6.js";
46
+ } from "./chunk-3FRL47BJ.js";
47
47
  import "./chunk-ANOLYIPL.js";
48
48
  import {
49
49
  ApiRequestError,
50
50
  getApiUrl,
51
51
  source_default,
52
52
  withErrorHandler
53
- } from "./chunk-TJ4W4HU4.js";
53
+ } from "./chunk-V2FTIYTG.js";
54
54
  import {
55
55
  decodeZeroTokenPayload
56
56
  } from "./chunk-32FE3MDA.js";
@@ -1967,4 +1967,4 @@ var zeroConnectorCommand = new Command().name("connector").description("Manage a
1967
1967
  export {
1968
1968
  zeroConnectorCommand
1969
1969
  };
1970
- //# sourceMappingURL=connector-7EU4AGKE.js.map
1970
+ //# sourceMappingURL=connector-PVESAPZF.js.map
@@ -8,21 +8,20 @@ import {
8
8
  } from "./chunk-2W73DZDW.js";
9
9
  import {
10
10
  createZeroCreditCheckout,
11
- getZeroBillingStatus,
12
- getZeroOrgMembers
13
- } from "./chunk-SWYBE4DF.js";
14
- import "./chunk-SFTOB3J4.js";
11
+ getZeroBillingStatus
12
+ } from "./chunk-KA75HGXU.js";
13
+ import "./chunk-QJI3SAUY.js";
15
14
  import {
16
15
  planUpgradeUrl
17
16
  } from "./chunk-J45P5ALH.js";
18
17
  import {
19
18
  getPlatformOrigin
20
- } from "./chunk-7NTVSSO6.js";
19
+ } from "./chunk-3FRL47BJ.js";
21
20
  import "./chunk-ANOLYIPL.js";
22
21
  import {
23
22
  source_default,
24
23
  withErrorHandler
25
- } from "./chunk-TJ4W4HU4.js";
24
+ } from "./chunk-V2FTIYTG.js";
26
25
  import {
27
26
  decodeZeroTokenPayload
28
27
  } from "./chunk-32FE3MDA.js";
@@ -109,15 +108,6 @@ async function buyCredits(credits, options) {
109
108
  "buying credits requires billing:write capability"
110
109
  );
111
110
  const autoRecharge = autoRechargeConfiguration(options);
112
- const members = await getZeroOrgMembers();
113
- if (members.role !== "admin") {
114
- console.log(
115
- source_default.yellow(
116
- "Only organization admins can buy credits. Run `zero doctor credit` to see the current credit status and org admins."
117
- )
118
- );
119
- return;
120
- }
121
111
  const billing = currentTokenCanReadBilling() ? await getZeroBillingStatus() : null;
122
112
  const origin = await getPlatformOrigin();
123
113
  if (billing && !currentPlanCanBuyCredits(billing)) {
@@ -163,4 +153,4 @@ var zeroCreditCommand = new Command().name("credit").description("View credit ba
163
153
  export {
164
154
  zeroCreditCommand
165
155
  };
166
- //# sourceMappingURL=credit-OFW66JTC.js.map
156
+ //# sourceMappingURL=credit-NMYQ76CX.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/commands/zero/credit.ts"],"sourcesContent":["import { Command, Option } from \"commander\";\nimport chalk from \"chalk\";\nimport type { ZeroCapability } from \"@vm0/api-contracts/contracts/composes\";\nimport type { BillingStatusResponse } from \"@vm0/api-contracts/contracts/zero-billing\";\n\nimport { createZeroCreditCheckout, getZeroBillingStatus } from \"../../lib/api\";\nimport { withErrorHandler } from \"../../lib/command\";\nimport { decodeZeroTokenPayload } from \"../../lib/api/zero-token\";\nimport { getPlatformOrigin } from \"./doctor/platform-url\";\nimport {\n currentPlanAllowsVideo,\n currentPlanCanBuyCredits,\n currentTokenCanReadBilling,\n} from \"./shared/billing-capabilities\";\nimport { planUpgradeUrl } from \"./shared/billing-links\";\n\nfunction parseCredits(value: string): number {\n const credits = Number(value.replaceAll(\",\", \"\"));\n if (!Number.isInteger(credits) || credits <= 0) {\n throw new Error(\"credits must be a positive integer\");\n }\n return credits;\n}\n\nfunction requireZeroCapabilityForCreditAction(\n capability: ZeroCapability,\n message: string,\n): void {\n const payload = decodeZeroTokenPayload();\n if (payload && !payload.capabilities.includes(capability)) {\n throw new Error(message);\n }\n}\n\ninterface CreditOptions {\n readonly autoRecharge?: boolean;\n readonly autoRechargeThreshold?: number;\n readonly autoRechargeAmount?: number;\n}\n\nfunction autoRechargeConfiguration(options: CreditOptions):\n | {\n readonly enabled: true;\n readonly threshold: number;\n readonly amount: number;\n }\n | undefined {\n if (\n options.autoRecharge !== true &&\n (options.autoRechargeThreshold !== undefined ||\n options.autoRechargeAmount !== undefined)\n ) {\n throw new Error(\n \"--auto-recharge-threshold and --auto-recharge-amount require --auto-recharge\",\n );\n }\n\n if (options.autoRecharge !== true) {\n return undefined;\n }\n if (\n options.autoRechargeThreshold === undefined ||\n options.autoRechargeAmount === undefined\n ) {\n throw new Error(\n \"--auto-recharge requires --auto-recharge-threshold and --auto-recharge-amount\",\n );\n }\n return {\n enabled: true,\n threshold: options.autoRechargeThreshold,\n amount: options.autoRechargeAmount,\n };\n}\n\nfunction printCreditStatus(billing: BillingStatusResponse): void {\n console.log(chalk.bold(\"Credit status:\"));\n console.log(` Tier: ${chalk.cyan(billing.tier)}`);\n console.log(\n ` Available credits: ${chalk.cyan(billing.credits.toLocaleString())}`,\n );\n console.log(\n ` Can purchase credits: ${\n currentPlanCanBuyCredits(billing)\n ? chalk.green(\"yes\")\n : chalk.yellow(\"no\")\n }`,\n );\n console.log(\n ` Built-in video generation: ${\n currentPlanAllowsVideo(billing)\n ? chalk.green(\"available\")\n : chalk.yellow(\"unavailable\")\n }`,\n );\n console.log(\n ` Auto-recharge: ${\n billing.autoRecharge.enabled ? chalk.green(\"enabled\") : \"disabled\"\n }`,\n );\n if (billing.autoRecharge.enabled) {\n console.log(\n ` Threshold: ${billing.autoRecharge.threshold?.toLocaleString() ?? \"not set\"}`,\n );\n console.log(\n ` Amount: ${billing.autoRecharge.amount?.toLocaleString() ?? \"not set\"}`,\n );\n }\n}\n\nasync function showCreditStatus(options: CreditOptions): Promise<void> {\n requireZeroCapabilityForCreditAction(\n \"billing:read\",\n \"checking credit status requires billing:read capability\",\n );\n if (\n options.autoRecharge === true ||\n options.autoRechargeThreshold !== undefined ||\n options.autoRechargeAmount !== undefined\n ) {\n throw new Error(\"auto-recharge options require a credit amount\");\n }\n printCreditStatus(await getZeroBillingStatus());\n}\n\nasync function buyCredits(\n credits: number,\n options: CreditOptions,\n): Promise<void> {\n requireZeroCapabilityForCreditAction(\n \"billing:write\",\n \"buying credits requires billing:write capability\",\n );\n const autoRecharge = autoRechargeConfiguration(options);\n // Only workspace admins can buy credits; the checkout route enforces it.\n const billing = currentTokenCanReadBilling()\n ? await getZeroBillingStatus()\n : null;\n const origin = await getPlatformOrigin();\n if (billing && !currentPlanCanBuyCredits(billing)) {\n console.log(\n chalk.yellow(\n \"Credit purchases are not available for this workspace plan.\",\n ),\n );\n console.log(chalk.bold(\"Plan upgrade link:\"));\n console.log(planUpgradeUrl(origin));\n return;\n }\n\n const result = await createZeroCreditCheckout({\n credits,\n successUrl: `${origin}/?settings=usage&credit=success`,\n cancelUrl: `${origin}/?settings=usage&credit=canceled`,\n ...(autoRecharge ? { autoRecharge } : {}),\n });\n console.log(chalk.bold(\"Credit checkout link:\"));\n console.log(result.url);\n}\n\nexport const zeroCreditCommand = new Command()\n .name(\"credit\")\n .description(\"View credit balance or create a checkout link to buy credits\")\n .argument(\"[credits]\", \"Number of credits to buy\", parseCredits)\n .addOption(\n new Option(\"--auto-recharge\", \"Enable auto-recharge after checkout\"),\n )\n .option(\n \"--auto-recharge-threshold <credits>\",\n \"Recharge when balance is at or below this number of credits\",\n parseCredits,\n )\n .option(\n \"--auto-recharge-amount <credits>\",\n \"Credits to buy for each auto-recharge\",\n parseCredits,\n )\n .action(\n withErrorHandler(\n async (credits: number | undefined, options: CreditOptions) => {\n if (credits === undefined) {\n await showCreditStatus(options);\n return;\n }\n await buyCredits(credits, options);\n },\n ),\n );\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAgBA,SAAS,aAAa,OAAuB;AAC3C,QAAM,UAAU,OAAO,MAAM,WAAW,KAAK,EAAE,CAAC;AAChD,MAAI,CAAC,OAAO,UAAU,OAAO,KAAK,WAAW,GAAG;AAC9C,UAAM,IAAI,MAAM,oCAAoC;AAAA,EACtD;AACA,SAAO;AACT;AAEA,SAAS,qCACP,YACA,SACM;AACN,QAAM,UAAU,uBAAuB;AACvC,MAAI,WAAW,CAAC,QAAQ,aAAa,SAAS,UAAU,GAAG;AACzD,UAAM,IAAI,MAAM,OAAO;AAAA,EACzB;AACF;AAQA,SAAS,0BAA0B,SAMrB;AACZ,MACE,QAAQ,iBAAiB,SACxB,QAAQ,0BAA0B,UACjC,QAAQ,uBAAuB,SACjC;AACA,UAAM,IAAI;AAAA,MACR;AAAA,IACF;AAAA,EACF;AAEA,MAAI,QAAQ,iBAAiB,MAAM;AACjC,WAAO;AAAA,EACT;AACA,MACE,QAAQ,0BAA0B,UAClC,QAAQ,uBAAuB,QAC/B;AACA,UAAM,IAAI;AAAA,MACR;AAAA,IACF;AAAA,EACF;AACA,SAAO;AAAA,IACL,SAAS;AAAA,IACT,WAAW,QAAQ;AAAA,IACnB,QAAQ,QAAQ;AAAA,EAClB;AACF;AAEA,SAAS,kBAAkB,SAAsC;AAC/D,UAAQ,IAAI,eAAM,KAAK,gBAAgB,CAAC;AACxC,UAAQ,IAAI,WAAW,eAAM,KAAK,QAAQ,IAAI,CAAC,EAAE;AACjD,UAAQ;AAAA,IACN,wBAAwB,eAAM,KAAK,QAAQ,QAAQ,eAAe,CAAC,CAAC;AAAA,EACtE;AACA,UAAQ;AAAA,IACN,2BACE,yBAAyB,OA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a,IAAI,CAAC;AAAA,EACzC,CAAC;AACD,UAAQ,IAAI,eAAM,KAAK,uBAAuB,CAAC;AAC/C,UAAQ,IAAI,OAAO,GAAG;AACxB;AAEO,IAAM,oBAAoB,IAAI,QAAQ,EAC1C,KAAK,QAAQ,EACb,YAAY,8DAA8D,EAC1E,SAAS,aAAa,4BAA4B,YAAY,EAC9D;AAAA,EACC,IAAI,OAAO,mBAAmB,qCAAqC;AACrE,EACC;AAAA,EACC;AAAA,EACA;AAAA,EACA;AACF,EACC;AAAA,EACC;AAAA,EACA;AAAA,EACA;AACF,EACC;AAAA,EACC;AAAA,IACE,OAAO,SAA6B,YAA2B;AAC7D,UAAI,YAAY,QAAW;AACzB,cAAM,iBAAiB,OAAO;AAC9B;AAAA,MACF;AACA,YAAM,WAAW,SAAS,OAAO;AAAA,IACnC;AAAA,EACF;AACF;","names":[]}
@@ -4,12 +4,12 @@ const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  requestDeveloperSupportConsent,
6
6
  submitDeveloperSupport
7
- } from "./chunk-SWYBE4DF.js";
8
- import "./chunk-SFTOB3J4.js";
7
+ } from "./chunk-KA75HGXU.js";
8
+ import "./chunk-QJI3SAUY.js";
9
9
  import "./chunk-ANOLYIPL.js";
10
10
  import {
11
11
  withErrorHandler
12
- } from "./chunk-TJ4W4HU4.js";
12
+ } from "./chunk-V2FTIYTG.js";
13
13
  import "./chunk-32FE3MDA.js";
14
14
  import {
15
15
  Command
@@ -61,4 +61,4 @@ Notes:
61
61
  export {
62
62
  zeroDeveloperSupportCommand
63
63
  };
64
- //# sourceMappingURL=developer-support-BXOAPDP7.js.map
64
+ //# sourceMappingURL=developer-support-F75A6J22.js.map
@@ -7,21 +7,20 @@ import {
7
7
  } from "./chunk-2W73DZDW.js";
8
8
  import {
9
9
  getZeroBillingStatus,
10
- getZeroOrg,
11
- getZeroOrgMembers
12
- } from "./chunk-SWYBE4DF.js";
13
- import "./chunk-SFTOB3J4.js";
10
+ getZeroOrg
11
+ } from "./chunk-KA75HGXU.js";
12
+ import "./chunk-QJI3SAUY.js";
14
13
  import {
15
14
  planUpgradeUrl
16
15
  } from "./chunk-J45P5ALH.js";
17
16
  import {
18
17
  getPlatformOrigin
19
- } from "./chunk-7NTVSSO6.js";
18
+ } from "./chunk-3FRL47BJ.js";
20
19
  import "./chunk-ANOLYIPL.js";
21
20
  import {
22
21
  source_default,
23
22
  withErrorHandler
24
- } from "./chunk-TJ4W4HU4.js";
23
+ } from "./chunk-V2FTIYTG.js";
25
24
  import "./chunk-32FE3MDA.js";
26
25
  import {
27
26
  Command
@@ -35,33 +34,22 @@ init_esm_shims();
35
34
 
36
35
  // src/commands/zero/doctor/credit.ts
37
36
  init_esm_shims();
38
- function memberName(member) {
39
- const name = [member.firstName, member.lastName].filter(Boolean).join(" ");
40
- return name ? `${name} <${member.email}>` : member.email;
41
- }
42
37
  var creditCommand = new Command().name("credit").description("Diagnose current organization credit and purchase access").action(
43
38
  withErrorHandler(async () => {
44
- const [org, billing, members, platformOrigin] = await Promise.all([
39
+ const [org, billing, platformOrigin] = await Promise.all([
45
40
  getZeroOrg(),
46
41
  getZeroBillingStatus(),
47
- getZeroOrgMembers(),
48
42
  getPlatformOrigin()
49
43
  ]);
50
- const admins = members.members.filter((member) => {
51
- return member.role === "admin";
52
- });
53
- const isAdmin = members.role === "admin";
54
44
  const planCanBuyCredits = currentPlanCanBuyCredits(billing);
55
- const canPurchaseCredits = isAdmin && planCanBuyCredits;
56
45
  console.log(source_default.bold("Credit diagnostics:"));
57
- console.log(` Org: ${source_default.green(org.slug)}`);
46
+ console.log(` Workspace: ${source_default.green(org.name)}`);
58
47
  console.log(` Tier: ${source_default.cyan(billing.tier)}`);
59
48
  console.log(
60
49
  ` Available credits: ${source_default.cyan(billing.credits.toLocaleString())}`
61
50
  );
62
- console.log(` Current user role: ${source_default.cyan(members.role)}`);
63
51
  console.log(
64
- ` Can purchase credits: ${canPurchaseCredits ? source_default.green("yes") : source_default.yellow("no")}`
52
+ ` Plan can purchase credits: ${planCanBuyCredits ? source_default.green("yes") : source_default.yellow("no")}`
65
53
  );
66
54
  console.log(
67
55
  ` Built-in video generation: ${currentPlanAllowsVideo(billing) ? source_default.green("available") : source_default.yellow("unavailable")}`
@@ -77,32 +65,21 @@ var creditCommand = new Command().name("credit").description("Diagnose current o
77
65
  ` Amount: ${billing.autoRecharge.amount?.toLocaleString() ?? "not set"}`
78
66
  );
79
67
  }
80
- if (!isAdmin) {
81
- console.log(source_default.bold("\nOrganization admins:"));
82
- for (const admin of admins) {
83
- console.log(` - ${memberName(admin)}`);
84
- }
85
- if (planCanBuyCredits) {
86
- console.log(
87
- source_default.yellow("\nAsk an organization admin to buy credits.")
88
- );
89
- } else {
90
- console.log(
91
- source_default.yellow("\nAsk an organization admin to upgrade the plan:")
92
- );
93
- console.log(planUpgradeUrl(platformOrigin));
94
- }
95
- } else if (!planCanBuyCredits) {
68
+ if (!planCanBuyCredits) {
96
69
  console.log(
97
- "\nThis workspace plan cannot buy credits. Upgrade the plan instead:"
70
+ "\nThis workspace plan cannot buy credits. A workspace admin has to upgrade the plan instead:"
98
71
  );
99
72
  console.log(planUpgradeUrl(platformOrigin));
100
- } else if (billing.tier === "free") {
73
+ return;
74
+ }
75
+ if (billing.tier === "free") {
101
76
  console.log(
102
- "\nFree-tier admins can upgrade to Pro from billing or buy credits with `zero credit <credits>`."
77
+ "\nWorkspace admins can upgrade to Pro from billing or buy credits with `zero credit <credits>`."
103
78
  );
104
79
  } else {
105
- console.log("\nUse `zero credit <credits>` to buy more credits.");
80
+ console.log(
81
+ "\nWorkspace admins can use `zero credit <credits>` to buy more credits."
82
+ );
106
83
  }
107
84
  })
108
85
  );
@@ -122,4 +99,4 @@ Notes:
122
99
  export {
123
100
  zeroDoctorCommand
124
101
  };
125
- //# sourceMappingURL=doctor-YOA6QLSW.js.map
102
+ //# sourceMappingURL=doctor-QDTOPN2D.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/commands/zero/doctor/index.ts","../src/commands/zero/doctor/credit.ts"],"sourcesContent":["import { Command } from \"commander\";\nimport { creditCommand } from \"./credit\";\n\nexport const zeroDoctorCommand = new Command()\n .name(\"doctor\")\n .description(\"Diagnose account and runtime issues\")\n .addCommand(creditCommand)\n .addHelpText(\n \"after\",\n `\nExamples:\n Check credits? zero doctor credit\n\nNotes:\n - Use zero doctor credit when a run or generation fails because the org has insufficient credits, when a user asks how to recharge, or before trying to buy credits\n - Use zero generate <type> (no --prompt) to see every provider available for a given generation type\n - Use zero connector check for connector and permission diagnostics`,\n );\n","import { Command } from \"commander\";\nimport chalk from \"chalk\";\n\nimport { getZeroBillingStatus, getZeroOrg } from \"../../../lib/api\";\nimport { withErrorHandler } from \"../../../lib/command\";\nimport { getPlatformOrigin } from \"./platform-url\";\nimport {\n currentPlanAllowsVideo,\n currentPlanCanBuyCredits,\n} from \"../shared/billing-capabilities\";\nimport { planUpgradeUrl } from \"../shared/billing-links\";\n\nexport const creditCommand = new Command()\n .name(\"credit\")\n .description(\"Diagnose current organization credit and purchase access\")\n .action(\n withErrorHandler(async () => {\n const [org, billing, platformOrigin] = await Promise.all([\n getZeroOrg(),\n getZeroBillingStatus(),\n getPlatformOrigin(),\n ]);\n const planCanBuyCredits = currentPlanCanBuyCredits(billing);\n\n console.log(chalk.bold(\"Credit diagnostics:\"));\n console.log(` Workspace: ${chalk.green(org.name)}`);\n console.log(` Tier: ${chalk.cyan(billing.tier)}`);\n console.log(\n ` Available credits: ${chalk.cyan(billing.credits.toLocaleString())}`,\n );\n console.log(\n ` Plan can purchase credits: ${\n planCanBuyCredits ? chalk.green(\"yes\") : chalk.yellow(\"no\")\n }`,\n );\n console.log(\n ` Built-in video generation: ${\n currentPlanAllowsVideo(billing)\n ? chalk.green(\"available\")\n : chalk.yellow(\"unavailable\")\n }`,\n );\n console.log(\n ` Auto-recharge: ${\n billing.autoRecharge.enabled ? chalk.green(\"enabled\") : \"disabled\"\n }`,\n );\n if (billing.autoRecharge.enabled) {\n console.log(\n ` Threshold: ${billing.autoRecharge.threshold?.toLocaleString() ?? \"not set\"}`,\n );\n console.log(\n ` Amount: ${billing.autoRecharge.amount?.toLocaleString() ?? \"not set\"}`,\n );\n }\n\n if (!planCanBuyCredits) {\n console.log(\n \"\\nThis workspace plan cannot buy credits. A workspace admin has to upgrade the plan instead:\",\n );\n console.log(planUpgradeUrl(platformOrigin));\n return;\n }\n\n if (billing.tier === \"free\") {\n console.log(\n \"\\nWorkspace admins can upgrade to Pro from billing or buy credits with `zero credit <credits>`.\",\n );\n } else {\n console.log(\n \"\\nWorkspace admins can use `zero credit <credits>` to buy more credits.\",\n );\n }\n }),\n );\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;ACAA;AAYO,IAAM,gBAAgB,IAAI,QAAQ,EACtC,KAAK,QAAQ,EACb,YAAY,0DAA0D,EACtE;AAAA,EACC,iBAAiB,YAAY;AAC3B,UAAM,CAAC,KAAK,SAAS,cAAc,IAAI,MAAM,QAAQ,IAAI;AAAA,MACvD,WAAW;AAAA,MACX,qBAAqB;AAAA,MACrB,kBAAkB;AAAA,IACpB,CAAC;AACD,UAAM,oBAAoB,yBAAyB,OAAO;AAE1D,YAAQ,IAAI,eAAM,KAAK,qBAAqB,CAAC;AAC7C,YAAQ,IAAI,gBAAgB,eAAM,MAAM,IAAI,IAAI,CAAC,EAAE;AACnD,YAAQ,IAAI,WAAW,eAAM,KAAK,QAAQ,IAAI,CAAC,EAAE;AACjD,YAAQ;AAAA,MACN,wBAAwB,eAAM,KAAK,QAAQ,QAAQ,eAAe,CAAC,CAAC;AAAA,IACtE;AACA,YAAQ;AAAA,MACN,gCACE,oBAAoB,eAAM,MAAM,KAAK,IAAI,eAAM,OAAO,IAAI,CAC5D;AAAA,IACF;AACA,YAAQ;AAAA,MACN,gCACE,uBAAuB,OAAO,IAC1B,eAAM,MAAM,WAAW,IACvB,eAAM,OAAO,aAAa,CAChC;AAAA,IACF;AACA,YAAQ;AAAA,MACN,oBACE,QAAQ,aAAa,UAAU,eAAM,MAAM,SAAS,IAAI,UAC1D;AAAA,IACF;AACA,QAAI,QAAQ,aAAa,SAAS;AAChC,cAAQ;AAAA,QACN,kBAAkB,QAAQ,aAAa,WAAW,eAAe,KAAK,SAAS;AAAA,MACjF;AACA,cAAQ;AAAA,QACN,eAAe,QAAQ,aAAa,QAAQ,eAAe,KAAK,SAAS;AAAA,MAC3E;AAAA,IACF;AAEA,QAAI,CAAC,mBAAmB;AACtB,cAAQ;AAAA,QACN;AAAA,MACF;AACA,cAAQ,IAAI,eAAe,cAAc,CAAC;AAC1C;AAAA,IACF;AAEA,QAAI,QAAQ,SAAS,QAAQ;AAC3B,cAAQ;AAAA,QACN;AAAA,MACF;AAAA,IACF,OAAO;AACL,cAAQ;AAAA,QACN;AAAA,MACF;AAAA,IACF;AAAA,EACF,CAAC;AACH;;;ADvEK,IAAM,oBAAoB,IAAI,QAAQ,EAC1C,KAAK,QAAQ,EACb,YAAY,qCAAqC,EACjD,WAAW,aAAa,EACxB;AAAA,EACC;AAAA,EACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQF;","names":[]}
@@ -7,13 +7,13 @@ import {
7
7
  downloadFeishuFile,
8
8
  initFeishuFileUpload,
9
9
  sendFeishuMessage
10
- } from "./chunk-SWYBE4DF.js";
11
- import "./chunk-SFTOB3J4.js";
10
+ } from "./chunk-KA75HGXU.js";
11
+ import "./chunk-QJI3SAUY.js";
12
12
  import "./chunk-ANOLYIPL.js";
13
13
  import {
14
14
  source_default,
15
15
  withErrorHandler
16
- } from "./chunk-TJ4W4HU4.js";
16
+ } from "./chunk-V2FTIYTG.js";
17
17
  import "./chunk-32FE3MDA.js";
18
18
  import {
19
19
  Command
@@ -278,4 +278,4 @@ Examples:
278
278
  export {
279
279
  zeroFeishuCommand
280
280
  };
281
- //# sourceMappingURL=feishu-PENCRP3I.js.map
281
+ //# sourceMappingURL=feishu-W6YXMIUS.js.map
@@ -14,13 +14,13 @@ import {
14
14
  zeroFinanceQuoteRequestSchema,
15
15
  zeroFinanceRangeSchema,
16
16
  zeroFinanceSearchRequestSchema
17
- } from "./chunk-SWYBE4DF.js";
18
- import "./chunk-SFTOB3J4.js";
17
+ } from "./chunk-KA75HGXU.js";
18
+ import "./chunk-QJI3SAUY.js";
19
19
  import "./chunk-ANOLYIPL.js";
20
20
  import {
21
21
  source_default,
22
22
  withErrorHandler
23
- } from "./chunk-TJ4W4HU4.js";
23
+ } from "./chunk-V2FTIYTG.js";
24
24
  import "./chunk-32FE3MDA.js";
25
25
  import {
26
26
  Command,
@@ -125,4 +125,4 @@ Notes:
125
125
  export {
126
126
  zeroFinanceCommand
127
127
  };
128
- //# sourceMappingURL=finance-JRQBO4PM.js.map
128
+ //# sourceMappingURL=finance-2J5KDPA5.js.map
@@ -28,7 +28,7 @@ import {
28
28
  getZeroBillingStatus,
29
29
  listZeroConnectorCatalog,
30
30
  listZeroConnectorCatalogStatus
31
- } from "./chunk-SWYBE4DF.js";
31
+ } from "./chunk-KA75HGXU.js";
32
32
  import {
33
33
  generateWebAvatarVideo,
34
34
  generateWebImage,
@@ -36,22 +36,22 @@ import {
36
36
  generateWebVoice,
37
37
  listWebAvatarVideoAvatars,
38
38
  listWebAvatarVideoVoices
39
- } from "./chunk-SFTOB3J4.js";
39
+ } from "./chunk-QJI3SAUY.js";
40
40
  import {
41
41
  planUpgradeUrl
42
42
  } from "./chunk-J45P5ALH.js";
43
43
  import {
44
44
  getPlatformOrigin
45
- } from "./chunk-7NTVSSO6.js";
45
+ } from "./chunk-3FRL47BJ.js";
46
46
  import "./chunk-ANOLYIPL.js";
47
47
  import {
48
48
  ApiRequestError,
49
49
  source_default,
50
50
  withErrorHandler
51
- } from "./chunk-TJ4W4HU4.js";
51
+ } from "./chunk-V2FTIYTG.js";
52
52
  import {
53
53
  isFeatureEnabled
54
- } from "./chunk-BDOANREY.js";
54
+ } from "./chunk-WHCP2H2S.js";
55
55
  import {
56
56
  decodeZeroTokenPayload
57
57
  } from "./chunk-32FE3MDA.js";
@@ -3211,4 +3211,4 @@ var generateCommand = new Command().name("generate").description(
3211
3211
  export {
3212
3212
  generateCommand
3213
3213
  };
3214
- //# sourceMappingURL=generate-IZMDDSOO.js.map
3214
+ //# sourceMappingURL=generate-2VM7AIVZ.js.map
@@ -5,12 +5,12 @@ import {
5
5
  completeGithubFileUpload,
6
6
  downloadGithubFile,
7
7
  initGithubFileUpload
8
- } from "./chunk-SWYBE4DF.js";
9
- import "./chunk-SFTOB3J4.js";
8
+ } from "./chunk-KA75HGXU.js";
9
+ import "./chunk-QJI3SAUY.js";
10
10
  import "./chunk-ANOLYIPL.js";
11
11
  import {
12
12
  withErrorHandler
13
- } from "./chunk-TJ4W4HU4.js";
13
+ } from "./chunk-V2FTIYTG.js";
14
14
  import "./chunk-32FE3MDA.js";
15
15
  import {
16
16
  Command
@@ -205,4 +205,4 @@ Examples:
205
205
  export {
206
206
  zeroGithubCommand
207
207
  };
208
- //# sourceMappingURL=github-V2AIZ6V4.js.map
208
+ //# sourceMappingURL=github-OCKDSECE.js.map
@@ -10,12 +10,12 @@ import {
10
10
  getGoal,
11
11
  pauseGoal,
12
12
  resumeGoal
13
- } from "./chunk-SWYBE4DF.js";
14
- import "./chunk-SFTOB3J4.js";
13
+ } from "./chunk-KA75HGXU.js";
14
+ import "./chunk-QJI3SAUY.js";
15
15
  import "./chunk-ANOLYIPL.js";
16
16
  import {
17
17
  withErrorHandler
18
- } from "./chunk-TJ4W4HU4.js";
18
+ } from "./chunk-V2FTIYTG.js";
19
19
  import "./chunk-32FE3MDA.js";
20
20
  import {
21
21
  Command
@@ -78,4 +78,4 @@ var zeroGoalCommand = new Command().name("goal").description("Manage the current
78
78
  export {
79
79
  zeroGoalCommand
80
80
  };
81
- //# sourceMappingURL=goal-Y45PFXMF.js.map
81
+ //# sourceMappingURL=goal-3KPOQFUH.js.map
@@ -7,13 +7,13 @@ import {
7
7
  getHostedSiteFiles,
8
8
  hostedArtifactKindSchema,
9
9
  prepareHostedSite
10
- } from "./chunk-SWYBE4DF.js";
11
- import "./chunk-SFTOB3J4.js";
10
+ } from "./chunk-KA75HGXU.js";
11
+ import "./chunk-QJI3SAUY.js";
12
12
  import "./chunk-ANOLYIPL.js";
13
13
  import {
14
14
  source_default,
15
15
  withErrorHandler
16
- } from "./chunk-TJ4W4HU4.js";
16
+ } from "./chunk-V2FTIYTG.js";
17
17
  import "./chunk-32FE3MDA.js";
18
18
  import {
19
19
  Command,
@@ -657,4 +657,4 @@ Notes:
657
657
  export {
658
658
  zeroHostCommand
659
659
  };
660
- //# sourceMappingURL=host-M4NUXM62.js.map
660
+ //# sourceMappingURL=host-MAAICSOY.js.map
@@ -7,7 +7,7 @@ import {
7
7
  isSupportedFramework,
8
8
  parseTime,
9
9
  searchCommand
10
- } from "./chunk-W3ML4DBM.js";
10
+ } from "./chunk-5BIHTSHQ.js";
11
11
  import {
12
12
  collectLogItems,
13
13
  formatIsoTimestamp,
@@ -16,18 +16,18 @@ import {
16
16
  parsePositiveLogCount
17
17
  } from "./chunk-VNNPAHD3.js";
18
18
  import "./chunk-NKYACNWA.js";
19
- import "./chunk-YL5CDK4E.js";
19
+ import "./chunk-SVFOPAWB.js";
20
20
  import {
21
21
  getZeroRunAgentEvents,
22
22
  listZeroLogs
23
- } from "./chunk-SWYBE4DF.js";
24
- import "./chunk-SFTOB3J4.js";
23
+ } from "./chunk-KA75HGXU.js";
24
+ import "./chunk-QJI3SAUY.js";
25
25
  import "./chunk-ANOLYIPL.js";
26
26
  import {
27
27
  source_default,
28
28
  withErrorHandler
29
- } from "./chunk-TJ4W4HU4.js";
30
- import "./chunk-BDOANREY.js";
29
+ } from "./chunk-V2FTIYTG.js";
30
+ import "./chunk-WHCP2H2S.js";
31
31
  import "./chunk-32FE3MDA.js";
32
32
  import {
33
33
  Command
@@ -273,4 +273,4 @@ Examples:
273
273
  export {
274
274
  zeroLogsCommand
275
275
  };
276
- //# sourceMappingURL=logs-WD5IEUA5.js.map
276
+ //# sourceMappingURL=logs-GKIQLSQ6.js.map
@@ -7,20 +7,20 @@ import {
7
7
  findConnectorStatusItem,
8
8
  printCallbackTurnInstruction,
9
9
  resolveAgentContext
10
- } from "./chunk-RQCVJTYT.js";
10
+ } from "./chunk-JPLAJP5I.js";
11
11
  import {
12
12
  linkZeroMailDraft,
13
13
  listZeroConnectorCatalogStatus
14
- } from "./chunk-SWYBE4DF.js";
15
- import "./chunk-SFTOB3J4.js";
14
+ } from "./chunk-KA75HGXU.js";
15
+ import "./chunk-QJI3SAUY.js";
16
16
  import {
17
17
  getPlatformOrigin
18
- } from "./chunk-7NTVSSO6.js";
18
+ } from "./chunk-3FRL47BJ.js";
19
19
  import "./chunk-ANOLYIPL.js";
20
20
  import {
21
21
  source_default,
22
22
  withErrorHandler
23
- } from "./chunk-TJ4W4HU4.js";
23
+ } from "./chunk-V2FTIYTG.js";
24
24
  import "./chunk-32FE3MDA.js";
25
25
  import {
26
26
  Command,
@@ -234,4 +234,4 @@ var zeroMailCommand = new Command().name("mail").description("Review linked Gmai
234
234
  export {
235
235
  zeroMailCommand
236
236
  };
237
- //# sourceMappingURL=mail-OVEMNODA.js.map
237
+ //# sourceMappingURL=mail-KLADGEP4.js.map