decocms 4.316.7 → 4.316.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-pzcnESJh.js → AlertCircle-DxYCNcK8.js} +1 -1
- package/dist/client/assets/{AreaChart-BBl3HuXM.js → AreaChart-CmfyOVSz.js} +1 -1
- package/dist/client/assets/{ArrowLeft-DXuRs3HX.js → ArrowLeft-DdJRt_vK.js} +1 -1
- package/dist/client/assets/{ArrowUp-DMnh6s4b.js → ArrowUp-CixBAt8Q.js} +1 -1
- package/dist/client/assets/{Check-BESi8Og0.js → Check-Eb20R0uP.js} +1 -1
- package/dist/client/assets/{CheckCircle-DWSrREW4.js → CheckCircle-qBq1p-Wj.js} +1 -1
- package/dist/client/assets/{ChevronDown-D9SrOc49.js → ChevronDown-Bv15tE3e.js} +1 -1
- package/dist/client/assets/{ChevronRight-PYqPsqmX.js → ChevronRight-Ci9WZW0s.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-DtCb6SRW.js → ChevronSelectorVertical-Dw6UipKY.js} +1 -1
- package/dist/client/assets/{ChevronUp-DInto1b8.js → ChevronUp-CJSi4ok2.js} +1 -1
- package/dist/client/assets/{Copy01-l041cd35.js → Copy01-CbJTmUFe.js} +1 -1
- package/dist/client/assets/{CreditCard01-p5hPt9es.js → CreditCard01-Cdyvlf63.js} +1 -1
- package/dist/client/assets/{DotsVertical-CH_GCWYz.js → DotsVertical-BhHlLSsp.js} +1 -1
- package/dist/client/assets/{Download01-gw2mF-MC.js → Download01-DlfNPuhH.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-BFz7XpiN.js → ErrorBarContext-hLwbmw2P.js} +1 -1
- package/dist/client/assets/{Eye-Cm7KzDnH.js → Eye-CD_6MgPf.js} +1 -1
- package/dist/client/assets/{FilterLines-CafyJI14.js → FilterLines-DdFZlVgI.js} +1 -1
- package/dist/client/assets/{GitBranch01-Bxb2j_fZ.js → GitBranch01-LMEq5ZXZ.js} +1 -1
- package/dist/client/assets/{Globe01-DLNdolGS.js → Globe01-BJpcU1hY.js} +1 -1
- package/dist/client/assets/{Globe04-CViLCpme.js → Globe04-D16fda-t.js} +1 -1
- package/dist/client/assets/{HardDrive-QJn1w8tw.js → HardDrive-CFC2NbAD.js} +1 -1
- package/dist/client/assets/{Image01-B_oUPQXv.js → Image01-CsV_5vxX.js} +1 -1
- package/dist/client/assets/{Key01-BnQHMp8V.js → Key01-1-wwfLyJ.js} +1 -1
- package/dist/client/assets/{LinkExternal01-B8eerp5u.js → LinkExternal01--B4PKy8C.js} +1 -1
- package/dist/client/assets/{LockUnlocked01-B-LL1VJN.js → LockUnlocked01-x8CVxEbg.js} +1 -1
- package/dist/client/assets/{LogOut01-39Jb5GrZ.js → LogOut01-DQgirYVV.js} +1 -1
- package/dist/client/assets/{Monitor01-CQB2vCrj.js → Monitor01-C0j6D2fo.js} +1 -1
- package/dist/client/assets/{Package-5u5XI3F0.js → Package-DuLKvK8F.js} +1 -1
- package/dist/client/assets/{Palette-CXA1gi33.js → Palette-cNnA20fO.js} +1 -1
- package/dist/client/assets/{Play-B-a-uZIp.js → Play-DPV4DI_n.js} +1 -1
- package/dist/client/assets/{Plus-DuBsnz4i.js → Plus-bEkTtkKz.js} +1 -1
- package/dist/client/assets/{SearchLg-B8cxnIXO.js → SearchLg-BdF7piHb.js} +1 -1
- package/dist/client/assets/{SearchMd-TCWEaJg-.js → SearchMd-CJQ8cMjx.js} +1 -1
- package/dist/client/assets/{Sector-DBm4aDhi.js → Sector-ljpJVNLt.js} +1 -1
- package/dist/client/assets/{Settings02-Dy-2Qj4d.js → Settings02-CNUNhUgm.js} +1 -1
- package/dist/client/assets/{Share07-Rp0r2KZ9.js → Share07-C1YlUnXi.js} +1 -1
- package/dist/client/assets/{Shield01-DtK5gafE.js → Shield01-CkMXeKwS.js} +1 -1
- package/dist/client/assets/{Stars01-BB8IcNTL.js → Stars01-CHLSkzFP.js} +1 -1
- package/dist/client/assets/{Stars02-Bbmo0zY3.js → Stars02-D-xvdNDD.js} +1 -1
- package/dist/client/assets/{Sun-CLDrV-25.js → Sun-Wp9EFk29.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-CMuMpxZg.js → SwitchHorizontal01-rurvH3NP.js} +1 -1
- package/dist/client/assets/{Tool01-Dkl-Om1v.js → Tool01-yRCio4tn.js} +1 -1
- package/dist/client/assets/{Tool02-BMdZDsm0.js → Tool02-BEkq_UYF.js} +1 -1
- package/dist/client/assets/{Trash01-l-_qVOL8.js → Trash01-BF-11Z1s.js} +1 -1
- package/dist/client/assets/{TrendUp01-D6VAnyKs.js → TrendUp01-DxMv3fk0.js} +1 -1
- package/dist/client/assets/{Upload01-BLnsIrPZ.js → Upload01-BOCrxZQR.js} +1 -1
- package/dist/client/assets/{User01-Ck3_FIpD.js → User01-CpM2XW8p.js} +1 -1
- package/dist/client/assets/{UserSquare-CHnwGSuk.js → UserSquare-LJomGlyM.js} +1 -1
- package/dist/client/assets/{Users01-CFzvYiuw.js → Users01-DeUETtu_.js} +1 -1
- package/dist/client/assets/{Users03-Df29VRo0.js → Users03-DFOE_2-2.js} +1 -1
- package/dist/client/assets/{XCircle-BlZmdI-G.js → XCircle-B5vQfqGO.js} +1 -1
- package/dist/client/assets/{XClose-CnMJB9wB.js → XClose-Ba3XQssr.js} +1 -1
- package/dist/client/assets/{YAxis-B2Kiqu39.js → YAxis-C9GiZqnq.js} +1 -1
- package/dist/client/assets/{Zap-I-DMHk8W.js → Zap-BKNLqGjJ.js} +1 -1
- package/dist/client/assets/{ZapSquare-CKPKakyU.js → ZapSquare-CM3Nbg7t.js} +1 -1
- package/dist/client/assets/{ZoomOut-Db6FAGuS.js → ZoomOut-7Tk19jfc.js} +1 -1
- package/dist/client/assets/{access-gate-D0wuDw30.js → access-gate-CqhWkz2i.js} +1 -1
- package/dist/client/assets/{agent-icon-D0VUz3F6.js → agent-icon-w4R2jc53.js} +1 -1
- package/dist/client/assets/{agents-list-BYjyrbW6.js → agents-list-CDeH5mua.js} +1 -1
- package/dist/client/assets/{ai-providers-D8X6OwxC.js → ai-providers-DDvjwzWy.js} +1 -1
- package/dist/client/assets/{alert-kBJMHqj0.js → alert-BrNJxiqY.js} +1 -1
- package/dist/client/assets/{alert-dialog-CADdLgiP.js → alert-dialog-BjMRiobA.js} +1 -1
- package/dist/client/assets/{analytics-tab-BM221syJ.js → analytics-tab-RCsJdvCm.js} +1 -1
- package/dist/client/assets/{api-keys-CnVHWdU5.js → api-keys-DpupF6Ta.js} +1 -1
- package/dist/client/assets/{app-editor-C8ciFeVU.js → app-editor-D3ntLHjS.js} +1 -1
- package/dist/client/assets/{auth-ltjrHdFv.js → auth-DPbVtDUU.js} +1 -1
- package/dist/client/assets/{auth-catchall-C1MGyFJv.js → auth-catchall-Uq-U88m_.js} +1 -1
- package/dist/client/assets/{auth-entry-zNm52PxS.js → auth-entry-DDLZNGZv.js} +1 -1
- package/dist/client/assets/{auth-split-layout-YOL3Lk19.js → auth-split-layout-R3LFcplO.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-C5WoxICz.js → authenticate-and-persist-oauth-B9KBhaKh.js} +1 -1
- package/dist/client/assets/{automation-list-row-S8Kym9UP.js → automation-list-row-B_jk-CDq.js} +1 -1
- package/dist/client/assets/{automation-runs-DfK0VSMx.js → automation-runs-D30XDZRc.js} +1 -1
- package/dist/client/assets/{automations-ybxFpAZq.js → automations-GkNAR7bE.js} +1 -1
- package/dist/client/assets/{avatar-CAMx88Qh.js → avatar-BY92F4ad.js} +1 -1
- package/dist/client/assets/{badge-BQ00ii0C.js → badge-BR_XljuY.js} +1 -1
- package/dist/client/assets/{block-document-7UrdrreU.js → block-document-CINlvN6A.js} +1 -1
- package/dist/client/assets/{breadcrumb-Bbul4qd6.js → breadcrumb-Bc4JIo3J.js} +1 -1
- package/dist/client/assets/{buckets-ComEGlo4.js → buckets-BUtzynXz.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-3U5YyUy0.js → bulk-category-panel-BQMXPsuX.js} +1 -1
- package/dist/client/assets/{capability-load-error-weIa1Afc.js → capability-load-error-CVkgY2J4.js} +1 -1
- package/dist/client/assets/{cards-CBOWo6Jv.js → cards-BJ0aI8_q.js} +1 -1
- package/dist/client/assets/{category-editor-Bvc2adb5.js → category-editor-B-OVEZbF.js} +1 -1
- package/dist/client/assets/{cdn-tab-BUQMxVBn.js → cdn-tab-wM-WQ63z.js} +1 -1
- package/dist/client/assets/{chart-C5ZFqDIF.js → chart-BwGsSrhZ.js} +1 -1
- package/dist/client/assets/{chat-context-BNnytLLb.js → chat-context-Cco1pivx.js} +1 -1
- package/dist/client/assets/{checkbox-8NR47DPn.js → checkbox-CDbf8BBM.js} +1 -1
- package/dist/client/assets/{choose-editor-Eg8Voxgu.js → choose-editor-Cblp6Sh9.js} +1 -1
- package/dist/client/assets/{cli-auth-success-Dgv7x5WB.js → cli-auth-success-B59QsFt6.js} +1 -1
- package/dist/client/assets/{collection-detail-CthozOZl.js → collection-detail-Bjx918Rr.js} +1 -1
- package/dist/client/assets/{collection-display-button-fdjUSWwM.js → collection-display-button-BX62xg4W.js} +1 -1
- package/dist/client/assets/{collection-search-CfmsG6EB.js → collection-search-Bzjfhxul.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-ZF9BQojD.js → collection-table-wrapper-JL8pr-GN.js} +1 -1
- package/dist/client/assets/{collection-tabs-BMjNkk-e.js → collection-tabs-CDynQFjW.js} +1 -1
- package/dist/client/assets/{command-B4vg3kev.js → command-CrPl1P1v.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-CfgHbPRo.js → commerce-onboarding-p_f_6FGF.js} +1 -1
- package/dist/client/assets/{config-F76h-4Nb.js → config-a8v7b3uF.js} +1 -1
- package/dist/client/assets/{connect-B9CVnB_d.js → connect-ZhOJ8Vca.js} +1 -1
- package/dist/client/assets/{connection-CTJSKgoV.js → connection-9wGAtpBl.js} +1 -1
- package/dist/client/assets/{connection-card-CrXfxqk-.js → connection-card-OTfQst01.js} +1 -1
- package/dist/client/assets/{connection-detail-GNtdKuvP.js → connection-detail-CqWHYlYV.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-kZEDJqLp.js → connection-form-helpers-cIAbpE3O.js} +1 -1
- package/dist/client/assets/{connections-BZc41jEB.js → connections-3asH1ZHi.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-C6zMztYI.js → decopilot-sse-pool-DehHkBgy.js} +1 -1
- package/dist/client/assets/{dialog-4i8tKyZs.js → dialog-BWZ-h6mW.js} +1 -1
- package/dist/client/assets/{domain-settings-Dl1fMq9O.js → domain-settings-Cx5Jc1vj.js} +1 -1
- package/dist/client/assets/{drawer-BOqo92AD.js → drawer-DLdgOnkI.js} +1 -1
- package/dist/client/assets/{dropdown-menu-DHdxnqdQ.js → dropdown-menu-DuMndB0N.js} +1 -1
- package/dist/client/assets/{e2e-tab-DnD_6pcK.js → e2e-tab-ByFhcI1q.js} +1 -1
- package/dist/client/assets/{editor-B0xnuCCp.js → editor-BySvQBuX.js} +1 -1
- package/dist/client/assets/{empty-state-TkGPHkkR.js → empty-state-BC-ydujK.js} +1 -1
- package/dist/client/assets/{empty-state-CI1Sx67B.js → empty-state-D59-EXiy.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BAHgy3b5.js → extract-connection-data-CEqw-EJY.js} +1 -1
- package/dist/client/assets/{file-explorer-LChlqKma.js → file-explorer-CYu8Tft6.js} +1 -1
- package/dist/client/assets/{file-type-icon-6Mfusmw2.js → file-type-icon-Bsjcp9VP.js} +1 -1
- package/dist/client/assets/{folder-icon-Cb7l5H7F.js → folder-icon-BQrWn4YK.js} +1 -1
- package/dist/client/assets/{form-DqHZuRjN.js → form-BJ7iKOGy.js} +1 -1
- package/dist/client/assets/{general-XZ1dA7r5.js → general-DQOIyRSU.js} +1 -1
- package/dist/client/assets/{github-repo-picker-BT0gAgwT.js → github-repo-picker-DTu9Rc_U.js} +1 -1
- package/dist/client/assets/{hooks-C0P3-Ouc.js → hooks-DyBznHIN.js} +1 -1
- package/dist/client/assets/{hosting-tab-PF205pJH.js → hosting-tab-BrxXni8T.js} +1 -1
- package/dist/client/assets/{index-C0FQdaYP.js → index-BfRm5Prf.js} +1 -1
- package/dist/client/assets/{index-sCVfOAw1.js → index-BrNrV4tj.js} +1 -1
- package/dist/client/assets/{index-C6HV7BvV.js → index-CEYPS6t1.js} +1 -1
- package/dist/client/assets/{index-BmAm7rGx.js → index-CkV2Ad16.js} +1 -1
- package/dist/client/assets/{index-DicOUXXF.js → index-Cnrmg7Sw.js} +1 -1
- package/dist/client/assets/{index-CTr9GRKD.js → index-D0OuD0aw.js} +1 -1
- package/dist/client/assets/{index-Shv9_4go.js → index-D7aoPi7g.js} +6 -6
- package/dist/client/assets/{index-ChRU4p6-.js → index-DMc9AFb8.js} +1 -1
- package/dist/client/assets/{index-BfSwG7jI.js → index-VPFEEz3Y.js} +3 -3
- package/dist/client/assets/{index-redirect-DjMv0397.js → index-redirect-G1vNLqIK.js} +1 -1
- package/dist/client/assets/{infra-billing-DnPvMV-w.js → infra-billing-6669Wvf3.js} +1 -1
- package/dist/client/assets/{input-BTAsE3JA.js → input-Jwsq1p59.js} +1 -1
- package/dist/client/assets/{integration-icon-RkVfBWiU.js → integration-icon-DCo0C0nC.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-DiGxeKHf.js → invite-member-dialog-DM9vw8s9.js} +1 -1
- package/dist/client/assets/{label-CvqDH6pp.js → label-IQXBKL0A.js} +1 -1
- package/dist/client/assets/{layout-CXv8NOkC.js → layout-CFmbF8fK.js} +1 -1
- package/dist/client/assets/{login-DTCxt54t.js → login-CvMZ86JI.js} +1 -1
- package/dist/client/assets/{markdown-BIiViQno.js → markdown-CMUMuWo8.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CpjxOVqq.js → mcp-oauth-DoXPg1lT.js} +1 -1
- package/dist/client/assets/{members-BxEREf0f.js → members-3FQa3BUN.js} +1 -1
- package/dist/client/assets/{monaco-editor-BBOBGlaR.js → monaco-editor-C8Ljyyw0.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-sNg9slOY.js → monitoring-stats-row-wixAUsdX.js} +1 -1
- package/dist/client/assets/{multi-select-By4YQF2Y.js → multi-select-C5ysj02F.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DjHV_BtN.js → oauth-callback-ai-provider-l2MdraSy.js} +1 -1
- package/dist/client/assets/{oauth-callback-CDudkkZz.js → oauth-callback-zTZeNVqa.js} +1 -1
- package/dist/client/assets/{onboarding-Co15NqH2.js → onboarding-BwUbT0cK.js} +1 -1
- package/dist/client/assets/{org-layout-DJ2bCa2R.js → org-layout-CsKTES2L.js} +1 -1
- package/dist/client/assets/{organization-choice-Sb8qhqxT.js → organization-choice-CdO5XJKs.js} +1 -1
- package/dist/client/assets/{orgs-GPs3AEGn.js → orgs-BYBWIc7Z.js} +1 -1
- package/dist/client/assets/{page-seo-form-CHCXqtv3.js → page-seo-form-BDRoNeFx.js} +1 -1
- package/dist/client/assets/{popover-Ds86LKX0.js → popover-ij0svucG.js} +1 -1
- package/dist/client/assets/{post-calendar-aQhAaMIr.js → post-calendar-BbsX87_T.js} +1 -1
- package/dist/client/assets/{post-editor-CIlDh-Vc.js → post-editor-h6w4I9ZS.js} +1 -1
- package/dist/client/assets/{primitives-PNdNgUxv.js → primitives-DuEapsi7.js} +1 -1
- package/dist/client/assets/{profile-CoILZvtm.js → profile-BGZBi6QT.js} +1 -1
- package/dist/client/assets/{project-app-view-Bn7vL1yx.js → project-app-view-DNCXwiez.js} +1 -1
- package/dist/client/assets/{prompts-BSI9TwkU.js → prompts-j4FtgRsB.js} +1 -1
- package/dist/client/assets/record-editor-_ikmjKxL.js +1 -0
- package/dist/client/assets/{redirect-editor-CziL7gC6.js → redirect-editor-BvTmI3Kg.js} +1 -1
- package/dist/client/assets/registry-BV-iwWNW.js +2 -0
- package/dist/client/assets/{registry-layout-BdbPNxAs.js → registry-layout-kHL_6bBy.js} +1 -1
- package/dist/client/assets/{reports-CpsHu5F_.js → reports-CS014rdq.js} +1 -1
- package/dist/client/assets/{require-capability-BVA_PM9d.js → require-capability-bmqBJQzK.js} +1 -1
- package/dist/client/assets/{required-auth-layout-CT5fghv3.js → required-auth-layout-DHiafxJe.js} +1 -1
- package/dist/client/assets/{reset-password-cXFKRfj0.js → reset-password--L9BgyDR.js} +1 -1
- package/dist/client/assets/{review-settings-Dul3FnUR.js → review-settings-FspSNK4C.js} +1 -1
- package/dist/client/assets/{roles-wKcS0rHZ.js → roles-Bg1BztSJ.js} +1 -1
- package/dist/client/assets/{scroll-area-DOLH1hgj.js → scroll-area-WPaSc-Gy.js} +1 -1
- package/dist/client/assets/{search-input-CeEId8JN.js → search-input-DZhHq80D.js} +1 -1
- package/dist/client/assets/{secrets-BBYUOuHb.js → secrets-DXpqeCwB.js} +1 -1
- package/dist/client/assets/{sections-editor-BEKYvzfb.js → sections-editor-zYydvqwm.js} +1 -1
- package/dist/client/assets/{select-B96sC0jU.js → select-Cj47fYAP.js} +1 -1
- package/dist/client/assets/{select-model-DKInz36h.js → select-model-Dy6xcYmT.js} +1 -1
- package/dist/client/assets/{self-tool-result-4Q8hQ6Im.js → self-tool-result-B-QtkyJE.js} +1 -1
- package/dist/client/assets/{seo-editor-CimcXOM1.js → seo-editor-BaWAkLyV.js} +1 -1
- package/dist/client/assets/{settings-layout-Bg9SMgxG.js → settings-layout-C3usVBay.js} +1 -1
- package/dist/client/assets/{shell-controls-j00j0s1I.js → shell-controls-ClgYTjKc.js} +1 -1
- package/dist/client/assets/{shell-layout-Bpk7ohiD.js → shell-layout-DwNMmbai.js} +1 -1
- package/dist/client/assets/{skill-preview-B1BayRfx.js → skill-preview-Olh0vSgI.js} +1 -1
- package/dist/client/assets/{skills-BFOpcwAW.js → skills-DgtOm9L0.js} +1 -1
- package/dist/client/assets/{spinner-CBT7H6Nj.js → spinner-Cjs_Q2Re.js} +1 -1
- package/dist/client/assets/{sso-gXKByJzv.js → sso-D5jE56J_.js} +1 -1
- package/dist/client/assets/{store-DcrcC4yE.js → store-0lLifZn2.js} +1 -1
- package/dist/client/assets/store-registry-DEKcUAxj.js +2 -0
- package/dist/client/assets/{super-agent-icon-CcEEod1i.js → super-agent-icon-Cskp_DHm.js} +1 -1
- package/dist/client/assets/{switch-DhvugTsO.js → switch-Cl3zliT1.js} +1 -1
- package/dist/client/assets/{synced-repos-49m5ry0r.js → synced-repos-CW5C3-Hv.js} +1 -1
- package/dist/client/assets/{table-CBDqSL5J.js → table-DQACY323.js} +1 -1
- package/dist/client/assets/{tabs-BHzFvM3d.js → tabs-dCa-HMU5.js} +1 -1
- package/dist/client/assets/{task-board-BsniqWRK.js → task-board-CNsj1P77.js} +1 -1
- package/dist/client/assets/{tasks-kdlDgySk.js → tasks-BN3GZt1f.js} +1 -1
- package/dist/client/assets/{textarea-W0cHs7kb.js → textarea-9dSZZaaI.js} +1 -1
- package/dist/client/assets/{thread-route-X2aYk-A-.js → thread-route-QQoL8601.js} +1 -1
- package/dist/client/assets/{toggle-group-DPowLvjC.js → toggle-group-BJ2Dw4w8.js} +1 -1
- package/dist/client/assets/{toolbar-C_LYTIqP.js → toolbar-v_n93XOW.js} +1 -1
- package/dist/client/assets/{track-C6ehW_55.js → track-BfFCGHHa.js} +1 -1
- package/dist/client/assets/{types-M5Xw3OeR.js → types-CJF2y9z4.js} +1 -1
- package/dist/client/assets/{use-ai-providers-DS9TpJ7R.js → use-ai-providers-pq7pHCJO.js} +1 -1
- package/dist/client/assets/{use-api-keys-JA-drWGf.js → use-api-keys-L6l3Ihn8.js} +1 -1
- package/dist/client/assets/{use-automations-fmUj9duL.js → use-automations-DKvQQ-Un.js} +1 -1
- package/dist/client/assets/{use-autosave-BU_QPyqZ.js → use-autosave-D1EB0xCQ.js} +1 -1
- package/dist/client/assets/{use-connection-BudxFSJ1.js → use-connection-gwy1-aoh.js} +1 -1
- package/dist/client/assets/{use-copy-BLd03kFT.js → use-copy-DE_73RZk.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-CTGh03SX.js → use-create-virtual-mcp-D2VWnmML.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-ypk7z-ra.js → use-debounced-autosave-KiWGPHI8.js} +1 -1
- package/dist/client/assets/{use-debounced-value-C5uG6eOe.js → use-debounced-value-1xVNprnQ.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-5HPG38qC.js → use-decopilot-events-CXhyu1GG.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CnzXCJH0.js → use-delete-connection-DaS0EFE4.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-B0bHz9Kb.js → use-deployment-admin-BK6jaS4w.js} +1 -1
- package/dist/client/assets/{use-destination-route-ChWdmqCT.js → use-destination-route-Dq8o_NoS.js} +1 -1
- package/dist/client/assets/{use-file-configs-C9ZZlKNd.js → use-file-configs-y-5UVs8c.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-Dd5C23ac.js → use-infinite-scroll-KMYUKVfY.js} +1 -1
- package/dist/client/assets/{use-join-requests-C6Jv955V.js → use-join-requests-BzKe96rz.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-Cptezoi_.js → use-mcp-auth-status-BlEZkVmH.js} +1 -1
- package/dist/client/assets/{use-mcp-client-B4byQ1wO.js → use-mcp-client-BgFseqPh.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-Bb7R3ndw.js → use-mcp-tools-CtFKKmtd.js} +1 -1
- package/dist/client/assets/{use-members-pG405IAQ.js → use-members-lRc2qCIE.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-BhD-C3eq.js → use-navigate-to-agent-SoOQYvc2.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-Br2IIgta.js → use-org-auth-client-B4UjNXjz.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-vOy2V2LC.js → use-org-repo-syncs-bE1aTdKv.js} +1 -1
- package/dist/client/assets/{use-org-sso-B4Tot0-C.js → use-org-sso-CbIeyqui.js} +1 -1
- package/dist/client/assets/{use-organization-roles-qSoCa9ga.js → use-organization-roles-BLo0T8Fm.js} +1 -1
- package/dist/client/assets/{use-organization-settings-CxDKMH66.js → use-organization-settings-DWaM_I5Z.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-BxQr2f1i.js → use-panel-navigate-BgYbuioR.js} +1 -1
- package/dist/client/assets/{use-registry-connections-m9TXCiaY.js → use-registry-connections-CvmL6uQj.js} +1 -1
- package/dist/client/assets/{use-secrets-CANXygBX.js → use-secrets-DWRmBbSF.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-CFJlEZeQ.js → use-section-preview-base-DarbWu6k.js} +1 -1
- package/dist/client/assets/{use-status-sounds-B8QrmHEw.js → use-status-sounds-ZWQqhqFf.js} +1 -1
- package/dist/client/assets/{use-tags-BokBbgMx.js → use-tags-nluWdBq3.js} +1 -1
- package/dist/client/assets/{use-view-mode-DSpZVPxq.js → use-view-mode-A8EChCzN.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-BKGaR5Vw.js → use-virtual-mcp-CF0V8LwT.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-C7vyKwkW.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-94-R8xK3.js +1 -0
- package/dist/client/assets/{users-DVKkHzQu.js → users-UynRf9Bl.js} +1 -1
- package/dist/client/assets/{variant-calendar-CEQj7rFz.js → variant-calendar-BH5D4ifY.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-TgslKinU.js → view-mode-toggle-C2tUQoYX.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/record-editor-CCTZlM8B.js +0 -1
- package/dist/client/assets/registry-DY3NnGfO.js +0 -2
- package/dist/client/assets/store-registry-B5IW1osW.js +0 -2
- package/dist/client/assets/useInfiniteQuery-BXzx91qu.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-ByKcG5VI.js +0 -1
package/dist/client/index.html
CHANGED
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
<meta name="twitter:description" content="Hire specialized agents, give them access to your tools, and let them deliver real projects — with planning, verification, and observability built in." />
|
|
51
51
|
<meta name="twitter:image" content="/og-image.png" />
|
|
52
52
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
53
|
-
<script type="module" crossorigin src="/assets/index-
|
|
53
|
+
<script type="module" crossorigin src="/assets/index-VPFEEz3Y.js"></script>
|
|
54
54
|
<link rel="stylesheet" crossorigin href="/assets/index-DZ3ZDC5F.css">
|
|
55
55
|
</head>
|
|
56
56
|
<body>
|
package/dist/server/cli.js
CHANGED
|
@@ -1508,7 +1508,7 @@ Usage: deco services <up|down|status>`),process.exit(1)}}var ln1=L(()=>{Fb()});f
|
|
|
1508
1508
|
`.execute($);if(Number(W.rows[0]?.cnt)===0){console.warn(`Failed to migrate ${J}/${K}, keeping in old table`);continue}}await fy`
|
|
1509
1509
|
DELETE FROM kysely_migration WHERE name = ${X}
|
|
1510
1510
|
`.execute($)}}async function ms1($){await R04($),await I04($);let Z=new cs1({db:$,provider:{getMigrations:()=>Promise.resolve(Vn0)}}),{error:X,results:Q}=await Z.migrateToLatest(),Y=0;if(Q?.forEach((G)=>{if(G.status==="Success")Y++;else if(G.status==="Error")console.error(`Failed to execute migration "${G.migrationName}"`)}),X)throw console.error("Failed to migrate"),console.error(X),X;return Y}async function q04($){let{keepOpen:Z=!1,database:X,skipBetterAuth:Q=!1}=$??{},Y="skipped";if(!Q&&!X)Y=await wm0();let G=X??U8(),J=async()=>{if(!Z&&!X)await NO(G).catch((K)=>{console.warn("Warning: Error closing database:",K)})};try{let K=await ms1(G.db);return await J(),{betterAuth:Y,kysely:K}}catch(K){throw await J(),K}}async function M04(){let $=U8(),Z=new cs1({db:$.db,provider:{getMigrations:()=>Promise.resolve(Vn0)}}),{error:X,results:Q}=await Z.migrateDown();if(Q?.forEach((Y)=>{if(Y.status==="Success")console.log(`\u2705 Migration "${Y.migrationName}" rolled back successfully`);else if(Y.status==="Error")console.error(`\u274C Failed to rollback migration "${Y.migrationName}"`)}),X)throw console.error("Failed to rollback migration"),console.error(X),X}var is1=L(()=>{us1();Em0();FX()});async function h70($){let Z={...process.env},X=C80($,Z);console.log(dE1(X.settings.encryptionKey));let Q=X.settings.betterAuthSecret||(X.settings.localMode?jo1(X.settings.dataDir):""),{ensureServices:Y}=await Promise.resolve().then(() => (mZ0(),lZ0)),{outputs:G,services:J}=await Y({home:X.settings.dataDir,externalDatabaseUrl:X.externalDatabaseUrl,externalNatsUrl:X.externalNatsUrl});if(!X.skipMigrations){let{migrateBetterAuth:W}=await Promise.resolve().then(() => (Em0(),Po1));await W(G.databaseUrl);let{createDatabase:H}=await Promise.resolve().then(() => (FX(),yt1)),{migrateToLatest:F}=await Promise.resolve().then(() => (is1(),ds1)),N=H(G.databaseUrl);await F({keepOpen:!0,database:N,skipBetterAuth:!0})}let K={...X.settings,betterAuthSecret:Q,databaseUrl:G.databaseUrl,natsUrls:G.natsUrls,...G.s3?{s3Endpoint:G.s3.endpoint,s3Bucket:G.s3.bucket,s3AccessKeyId:G.s3.accessKeyId,s3SecretAccessKey:G.s3.secretAccessKey,s3ForcePathStyle:G.s3.forcePathStyle}:{}};return mn1(K),{settings:K,services:J.map((W)=>({name:W.name==="PostgreSQL"?"Postgres":W.name,port:W.port})),managedServiceNames:J.filter((W)=>W.owner==="managed").map((W)=>W.name)}}var kn0=L(()=>{Fb();zo1();P$()});var os1={};e(os1,{updateService:()=>Qj,subscribeCliState:()=>_n0,setTuiConsoleIntercepted:()=>u70,setServerUrl:()=>fp,setMigrationsDone:()=>xp,setDevMode:()=>k04,resetCliStateForTests:()=>V04,isTuiConsoleIntercepted:()=>c70,getCliState:()=>Cn0,addLogEntry:()=>EO});function ps1(){return[{name:"Postgres",status:"pending",port:0},{name:"NATS",status:"pending",port:0}]}function ns1(){return{services:ps1(),migrationsStatus:"pending",serverUrl:null,logs:[]}}function V04(){tQ=ns1()}function vp(){for(let $ of Sn0)$()}function Cn0(){return tQ}function _n0($){return Sn0.add($),()=>Sn0.delete($)}function Qj($){tQ={...tQ,services:tQ.services.map((Z)=>Z.name===$.name?$:Z)},vp()}function xp(){tQ={...tQ,migrationsStatus:"done"},vp()}function fp($){tQ={...tQ,serverUrl:$},vp()}function EO($){let Z=[...tQ.logs,$];tQ={...tQ,logs:Z.length>500?Z.slice(-500):Z},vp()}function k04(){tQ={...tQ,services:[...ps1(),{name:"API",status:"pending",port:0},{name:"Vite",status:"pending",port:0}]},vp()}function u70($){ts1=$}function c70(){return ts1}var tQ,Sn0,ts1=!1;var Yj=L(()=>{tQ=ns1();Sn0=new Set});import{createServer as rs1}from"net";function S04($){return new Promise((Z)=>{let X=rs1();X.once("error",()=>Z(!1)),X.listen($,"0.0.0.0",()=>{X.close(()=>Z(!0))})})}async function bp($){if(await S04($))return $;let Z=await new Promise((X,Q)=>{let Y=rs1();Y.once("error",Q),Y.listen(0,"0.0.0.0",()=>{let G=Y.address(),J=typeof G==="object"&&G?G.port:0;Y.close(()=>X(J))})});return console.warn(`Port ${$} is in use, using port ${Z} instead.`),Z}var vn0=()=>{};var fn0={};e(fn0,{startDevServer:()=>_04,pipeToLogStore:()=>xn0});import{join as C04}from"path";function xn0($){let Z=$.getReader(),X=new TextDecoder,Q="";function Y(){let G=Q.split(`
|
|
1511
|
-
`);Q=G.pop()??"";for(let J of G){let K=Bun.stripANSI(J).replace(/^\[\d+\]\s*/,"").trim();if(!K)continue;EO({method:"",path:"",status:0,duration:0,timestamp:new Date,rawLine:K})}}(async()=>{try{for(;;){let{done:G,value:J}=await Z.read();if(G)break;Q+=X.decode(J,{stream:!0}),Y()}}catch{}if(Q.trim()){let G=Bun.stripANSI(Q).replace(/^\[\d+\]\s*/,"").trim();if(G)EO({method:"",path:"",status:0,duration:0,timestamp:new Date,rawLine:G})}})()}async function _04($){let{baseUrl:Z,noTui:X}=$,Q=process.env.HOST==="0.0.0.0"&&Boolean(process.env.PORT),Y=Q?process.env.PORT:$.vitePort,G=Z||`http://localhost:${Y}`,J=Q?await bp(Number(Y)+1):await bp(Number($.port)),{settings:K,services:W,managedServiceNames:H}=await h70({port:String(J),home:$.home,baseUrl:$.baseUrl,localMode:$.localMode,skipMigrations:$.skipMigrations,noTui:$.noTui,vitePort:$.vitePort});for(let D of W)Qj({name:D.name,status:"ready",port:D.port});xp();let F=C04(import.meta.dir,"..","..","..","..",".."),N=X===!0,U=Bun.spawn(["bun","run","dev:servers"],{cwd:F,env:{...process.env,PORT:String(K.port),VITE_PORT:String(Y),DATABASE_URL:K.databaseUrl,NATS_URL:K.natsUrls.join(","),NODE_ENV:K.nodeEnv,BASE_URL:G,DECOCMS_LOCAL_MODE:String(K.localMode),DECOCMS_HOME:K.dataDir,DATA_DIR:K.dataDir,DECO_CLI:"1",...K.betterAuthSecret?{BETTER_AUTH_SECRET:K.betterAuthSecret}:{},...K.s3Endpoint?{S3_ENDPOINT:K.s3Endpoint,S3_BUCKET:K.s3Bucket??"",S3_ACCESS_KEY_ID:K.s3AccessKeyId??"",S3_SECRET_ACCESS_KEY:K.s3SecretAccessKey??"",S3_FORCE_PATH_STYLE:String(K.s3ForcePathStyle)}:{},...K.natsCredsPath?{NATS_CREDS:K.natsCredsPath}:{}},stdio:["inherit",N?"inherit":"pipe",N?"inherit":"pipe"]});if(!N)xn0(U.stdout),xn0(U.stderr);fp(G),Qj({name:"Vite",status:"ready",port:Number(Y)}),Qj({name:"API",status:"ready",port:Number(K.port)});let O=async(D)=>{if(U.kill(D),await U.exited,H.length>0){let{stopServices:w}=await Promise.resolve().then(() => (mZ0(),lZ0));await w(K.dataDir)}};return process.on("SIGINT",()=>O("SIGINT")),process.on("SIGTERM",()=>O("SIGTERM")),{port:Number(Y),process:U}}var bn0=L(()=>{kn0();Yj();vn0()});var l70;var yn0=L(()=>{l70={name:"decocms",version:"4.316.7",description:"Deco CMS \u2014 Self-hostable MCP Gateway for managing AI connections and tools",author:"Deco team",repository:{type:"git",url:"git+https://github.com/decocms/studio.git",directory:"apps/api"},bugs:{url:"https://github.com/decocms/studio/issues"},type:"module",bin:{deco:"./dist/server/cli.js"},files:["dist/**/*"],scripts:{dev:"bun run migrate && bun run dev:server","dev:server":"bun run --cwd=../../packages/sandbox build && NODE_ENV=development bun --env-file=.env --hot run src/index.ts",build:"bun run build:server","build:server":"bun run scripts/bundle-server-script.ts --dist ./dist/server","generate:tool-contracts":"bun run scripts/generate-tool-contracts.ts","db:migrate":"bun run ./dist/server/migrate.js","db:migrate:dbos":"bun run ./dist/server/migrate-dbos.js",check:"tsc --noEmit",start:"bun run ./dist/server/server.js",migrate:"bun run src/database/migrate.ts","migrate:dbos":"bun run src/database/migrate-dbos.ts",test:"bun test src","better-auth:migrate":"bunx --bun @better-auth/cli migrate -y --config src/auth/index.ts",prepublishOnly:"bun run --cwd=../.. build:studio"},optionalDependencies:{"@duckdb/node-api":"^1.5.0-r.1"},dependencies:{"@ai-sdk/anthropic":"^3.0.85","@ai-sdk/google":"^3.0.83","@ai-sdk/openai":"^3.0.73","@anthropic-ai/sdk":"^0.105.0","@aws-sdk/client-s3":"^3.1013.0","@aws-sdk/client-sts":"^3.1013.0","@aws-sdk/lib-storage":"^3.1013.0","@aws-sdk/s3-request-presigner":"^3.1013.0","@clickhouse/client":"^1.8.1","@dbos-inc/dbos-sdk":"^4.21.6","@inkjs/ui":"^2.0.0","@nats-io/jetstream":"3.4.0","@nats-io/kv":"3.4.0","@nats-io/nats-core":"3.4.0","@nats-io/transport-node":"3.4.0","@openrouter/ai-sdk-provider":"^2.9.1","@opentelemetry/core":"^2.6.0","embedded-postgres":"^18.3.0-beta.16",ink:"^6.8.0",kysely:"^0.28.12","posthog-node":"^5.0.0",react:"^19.2.6","react-dom":"^19.2.6"},devDependencies:{"@ai-sdk/provider":"^3.0.10","@better-auth/sso":"1.4.1","@decocms/better-auth":"1.5.17","@decocms/bindings":"workspace:*","@decocms/mcp-utils":"workspace:*","@decocms/runtime":"workspace:*","@decocms/sandbox":"workspace:*","@decocms/shared":"workspace:*","@jitl/quickjs-wasmfile-release-sync":"0.31.0","@modelcontextprotocol/sdk":"1.29.0","@opentelemetry/api":"^1.9.0","@opentelemetry/api-logs":"^0.211.0","@opentelemetry/exporter-logs-otlp-proto":"^0.211.0","@opentelemetry/exporter-prometheus":"^0.208.0","@opentelemetry/exporter-trace-otlp-proto":"^0.207.0","@opentelemetry/instrumentation-runtime-node":"^0.24.0","@opentelemetry/resources":"^2.6.0","@opentelemetry/sdk-logs":"^0.211.0","@opentelemetry/sdk-metrics":"^2.2.0","@opentelemetry/sdk-node":"^0.207.0","@opentelemetry/sdk-trace-base":"^2.5.0","@types/bun":"^1.3.1","@types/google.maps":"^3.65.2","@types/pg":"^8.15.6","@types/react-syntax-highlighter":"^15.5.13","@vercel/nft":"^1.1.1",ai:"^6.0.208","better-auth":"1.4.22",croner:"^9.1.0",degit:"^2.8.4",hono:"^4.10.7",jose:"^6.0.11",nanoid:"^5.1.6",pg:"^8.16.3",typescript:"^7.0.2",typescript5:"npm:typescript@^5.9.3",zod:"4.3.6"},homepage:"https://github.com/decocms/studio",keywords:["mcp","model-context-protocol","ai","gateway","self-hosted","tools"],license:"MIT",publishConfig:{access:"public"}}});import{Box as x04,Text as as1}from"ink";import{jsx as f04,jsxs as ss1}from"react/jsx-runtime";function es1({version:$}){return ss1(x04,{flexDirection:"column",marginTop:1,children:[U70.map((Z,X)=>f04(as1,{color:B70[X],children:Z},X)),ss1(as1,{dimColor:!0,children:[" v",$]})]})}var $e1=L(()=>{Pp()});import{Box as Gj,Text as jO}from"ink";import{Spinner as b04}from"@inkjs/ui";import{jsx as UG,jsxs as by}from"react/jsx-runtime";function Ze1({status:$}){if($==="pending")return UG(b04,{label:""});return UG(jO,{color:"green",children:"\u2713"})}function y04($){return`${$.name}: ${$.port||"...."}`}function Xe1({services:$,migrationsStatus:Z,home:X,serverUrl:Q}){return by(Gj,{flexDirection:"column",paddingBottom:1,children:[UG(es1,{version:l70.version}),UG(Gj,{marginBottom:1,children:UG(jO,{dimColor:!0,children:"\u2500".repeat(80)})}),UG(Gj,{children:by(jO,{dimColor:!0,children:["Home: ",X]})}),by(Gj,{gap:2,children:[$.map((Y)=>by(Gj,{gap:1,children:[UG(jO,{children:y04(Y)}),UG(Ze1,{status:Y.status})]},Y.name)),by(Gj,{gap:1,children:[UG(jO,{children:"Migrations"}),UG(Ze1,{status:Z})]})]}),UG(Gj,{children:Q?by(jO,{children:["Open in browser: ",UG(jO,{color:"cyan",children:Q})]}):UG(jO,{dimColor:!0,children:"Starting..."})})]})}var Qe1=L(()=>{yn0();$e1()});import{Box as g04,Text as yp}from"ink";import{jsx as gn0,jsxs as hn0}from"react/jsx-runtime";function h04($){if($>=500)return"red";if($>=400)return"yellow";if($>=300)return"cyan";return"green"}function Ye1({logs:$}){return gn0(g04,{flexDirection:"column",children:$.map((Z,X)=>{if(Z.rawLine)return gn0(yp,{dimColor:!0,children:Z.rawLine},X);let Q=Z.duration<1000?`${Z.duration}ms`:`${(Z.duration/1000).toFixed(1)}s`;return hn0(yp,{children:[hn0(yp,{dimColor:!0,children:[Z.method.padEnd(6)," ",Z.path.padEnd(30)," "]}),gn0(yp,{color:h04(Z.status),children:Z.status}),hn0(yp,{dimColor:!0,children:[" ",Q.padStart(8)]})]},X)})})}var Ge1=()=>{};var un0={};e(un0,{App:()=>l04});import{Box as u04}from"ink";import{useSyncExternalStore as c04}from"react";import{jsx as Je1,jsxs as m04}from"react/jsx-runtime";function l04({home:$}){let Z=c04(_n0,Cn0);return m04(u04,{flexDirection:"column",children:[Je1(Xe1,{services:Z.services,migrationsStatus:Z.migrationsStatus,home:$,serverUrl:Z.serverUrl}),Je1(Ye1,{logs:Z.logs})]})}var cn0=L(()=>{Qe1();Ge1();Yj()});var a3="thread-gate",PN="decopilot-hosted-harness",AN="decopilot-hosted-harness-sandboxed",RJ="automations",zO="background-tools",Jj="task-board-github-reads",TN="jira-push";var Ke1="10";function We1($){return{name:"decocms",systemDatabaseUrl:$.systemDatabaseUrl,systemDatabaseSchemaName:"dbos",systemDatabasePoolSize:$.poolSize,runAdminServer:!1,executorID:$.executorID,applicationVersion:Ke1,...$.listenQueues!==void 0?{listenQueues:$.listenQueues}:{}}}var He1=()=>{};import d04 from"pg";async function Ne1($,Z){let{databaseUrl:X,lockTimeoutMs:Q=i04}=$,Y=$.log??((W)=>console.log(W)),G=new d04.Client({connectionString:X});await G.connect();let J=Date.now(),K=!1;try{while(!K){if(K=(await G.query("SELECT pg_try_advisory_lock($1) AS locked",[Fe1.toString()])).rows[0]?.locked===!0,K)break;if(Date.now()-J>=Q)throw Error(`Timed out after ${Q}ms waiting for the DBOS migration lock. Another process is still migrating the dbos schema; this pod will restart and retry.`);await H$(p04)}let W=Date.now()-J;if(W>1000)Y(`[dbos] waited ${W}ms for the migration lock; another process migrated first`);return await Z()}finally{if(K)try{await G.query("SELECT pg_advisory_unlock($1)",[Fe1.toString()])}catch{}await G.end().catch(()=>{})}}var Fe1=8314027461559302n,i04=600000,p04=500;var Ue1=L(()=>{J4()});function n04(){let $=(process.env.BUN_OPTIONS??"").split(/\s+/).filter(Boolean);return[...process.argv.slice(1),...$]}function ln0($,Z){for(let X=0;X<$.length;X++){let Q=$[X];if(Q===void 0)continue;if(Q===Z)return $[X+1];if(Q.startsWith(`${Z}=`))return Q.slice(Z.length+1)}return}function Be1(){let $=n04();if($.includes("--cpu-prof")){console.log(JSON.stringify({msg:"cpu-profiling-active",dir:ln0($,"--cpu-prof-dir")??process.cwd(),name:ln0($,"--cpu-prof-name"),markdown:$.includes("--cpu-prof-md"),intervalUs:Number(ln0($,"--cpu-prof-interval")??1000),note:"profile is written on process exit"}));return}if(process.env.CPU_PROFILE)console.warn(JSON.stringify({msg:"cpu-profiling-requested-but-inactive",hint:'CPU profiling is a Bun launch flag. Set BUN_OPTIONS="--cpu-prof --cpu-prof-md --cpu-prof-dir=/tmp" before starting the process.'}))}function Oe1(){if(process.env.HEAP_WATCH!=="1")return()=>{};let $=Number(process.env.HEAP_WATCH_INTERVAL_MS??60000),Z=async()=>{let X=eE();if(!X)return;let Q={};try{let{heapStats:Y}=await import("bun:jsc"),G=Y(),J=Object.entries(G.objectTypeCounts).sort((K,W)=>W[1]-K[1]).slice(0,20);Q={objectCount:G.objectCount,heapSize:G.heapSize,top:Object.fromEntries(J)}}catch{}console.log(JSON.stringify({msg:"heap-watch",ts:new Date().toISOString(),uptimeS:Math.round(process.uptime()),rss:X.rss,heapUsed:X.heapUsed,heapTotal:X.heapTotal,external:X.external,arrayBuffers:X.arrayBuffers,...Q}))};return Z().catch(()=>{}),m70=setInterval(()=>void Z().catch(()=>{}),$),m70.unref?.(),process.on("SIGUSR2",()=>{try{let X=Bun.generateHeapSnapshot("v8"),Q=typeof X==="string"?X:JSON.stringify(X),Y=`/tmp/heap-${process.pid}-${Date.now()}.heapsnapshot`;Bun.write(Y,Q),console.log(JSON.stringify({msg:"heap-snapshot-written",path:Y}))}catch(X){console.error("[heap-watch] snapshot failed:",X)}}),()=>{if(m70)clearInterval(m70)}}var m70;var Le1=()=>{};import*as t04 from"bun:jsc";function De1(){if(process.env.STALL_WATCHDOG!=="1")return()=>{};let $=Number(process.env.STALL_WATCHDOG_MS??100),Z=Number(process.env.STALL_WATCHDOG_TICK_MS??50);try{o04()}catch(G){return console.error("[stall-watchdog] failed to start sampling profiler:",G),()=>{}}let X,Q=performance.now()+Z,Y=()=>{let G=performance.now(),J=G-Q;Q=G+Z;let K=[];try{K=r04()?.traces??[]}catch{}if(J>$&&K.length>0){let W=new Map;for(let F of K){let N=F.frames.find((O)=>O.sourceURL&&!/Unknown Executable/.test(O.category??""))??F.frames[0];if(!N)continue;let U=(N.sourceURL??"?").replace(/^.*\/node_modules\//,"node_modules/"),B=`${N.name??"?"} @ ${U}:${N.line??"?"}`;W.set(B,(W.get(B)??0)+1)}let H=[...W.entries()].sort((F,N)=>N[1]-F[1]).slice(0,8).map(([F,N])=>({frame:F,count:N}));console.warn(JSON.stringify({msg:"stall-stack",ts:new Date().toISOString(),lagMs:Math.round(J),samplesInWindow:K.length,top:H}))}X=setTimeout(Y,Z),X.unref?.()};return X=setTimeout(Y,Z),X.unref?.(),()=>{if(X)clearTimeout(X)}}var o04,r04;var we1=L(()=>{({startSamplingProfiler:o04,samplingProfilerStackTraces:r04}=t04)});function Ee1(){Be1();let $=[Oe1(),kt1(),De1()];return()=>{for(let Z of $)Z()}}var je1=L(()=>{Wm0();Le1();we1()});var Kj=v((ze1)=>{Object.defineProperty(ze1,"__esModule",{value:!0});ze1.RepublishHeaders=ze1.DirectMsgHeaders=ze1.JsHeaders=ze1.AdvisoryKind=void 0;ze1.isOrderedPushConsumerOptions=a04;ze1.isPullConsumer=s04;ze1.isPushConsumer=e04;ze1.isBoundPushConsumerOptions=$14;function a04($){if($&&typeof $==="object")return"name_prefix"in $||"deliver_subject_prefix"in $||"filter_subjects"in $||"filter_subject"in $||"deliver_policy"in $||"opt_start_seq"in $||"opt_start_time"in $||"replay_policy"in $||"inactive_threshold"in $||"headers_only"in $||"deliver_prefix"in $;return!1}function s04($){return $.isPullConsumer()}function e04($){return $.isPushConsumer()}function $14($){if($&&typeof $==="object")return"deliver_subject"in $||"deliver_group"in $||"idle_heartbeat"in $;return!1}ze1.AdvisoryKind={API:"api_audit",StreamAction:"stream_action",ConsumerAction:"consumer_action",SnapshotCreate:"snapshot_create",SnapshotComplete:"snapshot_complete",RestoreCreate:"restore_create",RestoreComplete:"restore_complete",MaxDeliver:"max_deliver",Terminated:"terminated",Ack:"consumer_ack",StreamLeaderElected:"stream_leader_elected",StreamQuorumLost:"stream_quorum_lost",ConsumerLeaderElected:"consumer_leader_elected",ConsumerQuorumLost:"consumer_quorum_lost"};ze1.JsHeaders={StreamSourceHdr:"Nats-Stream-Source",LastConsumerSeqHdr:"Nats-Last-Consumer",LastStreamSeqHdr:"Nats-Last-Stream",ConsumerStalledHdr:"Nats-Consumer-Stalled",MessageSizeHdr:"Nats-Msg-Size",RollupHdr:"Nats-Rollup",RollupValueSubject:"sub",RollupValueAll:"all",PendingMessagesHdr:"Nats-Pending-Messages",PendingBytesHdr:"Nats-Pending-Bytes",RequiredApiLevel:"Nats-Required-Api-Level"};ze1.DirectMsgHeaders={Stream:"Nats-Stream",Sequence:"Nats-Sequence",TimeStamp:"Nats-Time-Stamp",Subject:"Nats-Subject",LastSequence:"Nats-Last-Sequence",NumPending:"Nats-Num-Pending"};ze1.RepublishHeaders={Stream:"Nats-Stream",Subject:"Nats-Subject",Sequence:"Nats-Sequence",LastSequence:"Nats-Last-Sequence",Size:"Nats-Msg-Size"}});var BG=v((Ae1)=>{Object.defineProperty(Ae1,"__esModule",{value:!0});Ae1.TD=Ae1.TE=Ae1.Empty=void 0;Ae1.encode=H14;Ae1.decode=F14;Ae1.Empty=new Uint8Array(0);Ae1.TE=new TextEncoder;Ae1.TD=new TextDecoder;function W14(...$){let Z=0;for(let Y=0;Y<$.length;Y++)Z+=$[Y].length;let X=new Uint8Array(Z),Q=0;for(let Y=0;Y<$.length;Y++)X.set($[Y],Q),Q+=$[Y].length;return X}function H14(...$){let Z=[];for(let X=0;X<$.length;X++)Z.push(Ae1.TE.encode($[X]));if(Z.length===0)return Ae1.Empty;if(Z.length===1)return Z[0];return W14(...Z)}function F14($){if(!$||$.length===0)return"";return Ae1.TD.decode($)}});var OG=v((Ie1)=>{Object.defineProperty(Ie1,"__esModule",{value:!0});Ie1.errors=Ie1.PermissionViolationError=Ie1.NoRespondersError=Ie1.TimeoutError=Ie1.RequestError=Ie1.ProtocolError=Ie1.ConnectionError=Ie1.DrainingConnectionError=Ie1.ClosedConnectionError=Ie1.AuthorizationError=Ie1.UserAuthenticationExpiredError=Ie1.InvalidOperationError=Ie1.InvalidArgumentError=Ie1.InvalidSubjectError=void 0;class dn0 extends Error{constructor($,Z){super(`illegal subject: '${$}'`,Z);this.name="InvalidSubjectError"}}Ie1.InvalidSubjectError=dn0;class d70 extends Error{constructor($,Z){super($,Z);this.name="InvalidArgumentError"}static format($,Z,X){if(Array.isArray(Z)&&Z.length>1)Z=Z[0];if(Array.isArray($))$=$.map((Q)=>`'${Q}'`),$=$.join(",");else $=`'${$}'`;return new d70(`${$} ${Z}`,X)}}Ie1.InvalidArgumentError=d70;class in0 extends Error{constructor($,Z){super($,Z);this.name="InvalidOperationError"}}Ie1.InvalidOperationError=in0;class i70 extends Error{constructor($,Z){super($,Z);this.name="UserAuthenticationExpiredError"}static parse($){if($.toLowerCase().indexOf("user authentication expired")!==-1)return new i70($);return null}}Ie1.UserAuthenticationExpiredError=i70;class p70 extends Error{constructor($,Z){super($,Z);this.name="AuthorizationError"}static parse($){let Z=["authorization violation","account authentication expired","authentication timeout"],X=$.toLowerCase();for(let Q=0;Q<Z.length;Q++)if(X.indexOf(Z[Q])!==-1)return new p70($);return null}}Ie1.AuthorizationError=p70;class pn0 extends Error{constructor(){super("closed connection");this.name="ClosedConnectionError"}}Ie1.ClosedConnectionError=pn0;class nn0 extends Error{constructor(){super("connection draining");this.name="DrainingConnectionError"}}Ie1.DrainingConnectionError=nn0;class tn0 extends Error{constructor($,Z){super($,Z);this.name="ConnectionError"}}Ie1.ConnectionError=tn0;class on0 extends Error{constructor($,Z){super($,Z);this.name="ProtocolError"}}Ie1.ProtocolError=on0;class rn0 extends Error{constructor($="",Z){super($,Z);this.name="RequestError"}isNoResponders(){return this.cause instanceof n70}}Ie1.RequestError=rn0;class an0 extends Error{constructor($){super("timeout",$);this.name="TimeoutError"}}Ie1.TimeoutError=an0;class n70 extends Error{subject;constructor($,Z){super(`no responders: '${$}'`,Z);this.subject=$,this.name="NoResponders"}}Ie1.NoRespondersError=n70;class t70 extends Error{operation;subject;queue;constructor($,Z,X,Q,Y){super($,Y);this.name="PermissionViolationError",this.operation=Z,this.subject=X,this.queue=Q}static parse($){if(($?$.toLowerCase():"").indexOf("permissions violation")===-1)return null;let X="publish",Q="",Y=void 0,G=$.match(/(Publish|Subscription) to "(\S+)"/);if(G){if(X=G[1].toLowerCase(),Q=G[2],X==="subscription"){let J=$.match(/using queue "(\S+)"/);if(J)Y=J[1]}}return new t70($,X,Q,Y)}}Ie1.PermissionViolationError=t70;Ie1.errors={AuthorizationError:p70,ClosedConnectionError:pn0,ConnectionError:tn0,DrainingConnectionError:nn0,InvalidArgumentError:d70,InvalidOperationError:in0,InvalidSubjectError:dn0,NoRespondersError:n70,PermissionViolationError:t70,ProtocolError:on0,RequestError:rn0,TimeoutError:an0,UserAuthenticationExpiredError:i70}});var s3=v((Se1)=>{Object.defineProperty(Se1,"__esModule",{value:!0});Se1.SimpleMutex=Se1.Perf=void 0;Se1.extend=M14;Se1.render=V14;Se1.timeout=k14;Se1.delay=S14;Se1.deadline=C14;Se1.deferred=en0;Se1.debugDeferred=_14;Se1.shuffle=v14;Se1.collect=x14;Se1.jitter=ke1;Se1.backoff=f14;Se1.nanos=b14;Se1.millis=y14;Se1.randomToken=u14;var q14=BG(),sn0=OG();function M14($,...Z){for(let X=0;X<Z.length;X++){let Q=Z[X];Object.keys(Q).forEach(function(Y){$[Y]=Q[Y]})}return $}function V14($){return q14.TD.decode($).replace(/\n/g,"\u240A").replace(/\r/g,"\u240D")}function k14($,Z=!0){let X=Z?new sn0.TimeoutError:null,Q,Y,G=new Promise((J,K)=>{Q={cancel:()=>{if(Y)clearTimeout(Y)}},Y=setTimeout(()=>{if(X===null)K(new sn0.TimeoutError);else K(X)},$)});return Object.assign(G,Q)}function S14($=0){let Z,X=new Promise((Q)=>{let Y=setTimeout(()=>{Q()},$);Z={cancel:()=>{if(Y)clearTimeout(Y),Q()}}});return Object.assign(X,Z)}async function C14($,Z=1000){let X=en0(),Q=setTimeout(()=>{X.reject(new sn0.TimeoutError)},Z);try{return await Promise.race([$,X])}finally{clearTimeout(Q)}}function en0(){let $={},Z=new Promise((X,Q)=>{$={resolve:X,reject:Q}});return Object.assign(Z,$)}function _14(){let $={},Z=new Promise((X,Q)=>{$={resolve:(Y)=>{console.trace("resolve",Y),X(Y)},reject:(Y)=>{console.trace("reject"),Q(Y)}}});return Object.assign(Z,$)}function v14($){for(let Z=$.length-1;Z>0;Z--){let X=Math.floor(Math.random()*(Z+1));[$[Z],$[X]]=[$[X],$[Z]]}return $}async function x14($){let Z=[];for await(let X of $)Z.push(X);return Z}class Me1{timers;measures;constructor(){this.timers=new Map,this.measures=new Map}mark($){this.timers.set($,performance.now())}measure($,Z,X){let Q=this.timers.get(Z);if(Q===void 0)throw Error(`${Z} is not defined`);let Y=this.timers.get(X);if(Y===void 0)throw Error(`${X} is not defined`);this.measures.set($,Y-Q)}getEntries(){let $=[];return this.measures.forEach((Z,X)=>{$.push({name:X,duration:Z})}),$}}Se1.Perf=Me1;class Ve1{max;current;waiting;constructor($=1){this.max=$,this.current=0,this.waiting=[]}lock(){if(this.current++,this.current<=this.max)return Promise.resolve();let $=en0();return this.waiting.push($),$}unlock(){this.current--,this.waiting.pop()?.resolve()}}Se1.SimpleMutex=Ve1;function ke1($){if($===0)return 0;return Math.floor($/2+Math.random()*$)}function f14($=[0,250,250,500,500,3000,5000]){if(!Array.isArray($))$=[0,250,250,500,500,3000,5000];let Z=$.length-1;return{backoff(X){return ke1(X>Z?$[Z]:$[X])}}}function b14($){return $*1e6}function y14($){return Math.floor($/1e6)}var g14="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",RN=new Uint8Array(62);for(let $=0;$<62;$++)RN[$]=g14.charCodeAt($);var h14=218340105584896;function u14(){let $=Math.floor(Math.random()*h14),Z=$%62,X=RN[Z];$=($-Z)/62,Z=$%62;let Q=RN[Z];$=($-Z)/62,Z=$%62;let Y=RN[Z];$=($-Z)/62,Z=$%62;let G=RN[Z];$=($-Z)/62,Z=$%62;let J=RN[Z];$=($-Z)/62,Z=$%62;let K=RN[Z];$=($-Z)/62,Z=$%62;let W=RN[Z];$=($-Z)/62;let H=RN[$];return String.fromCharCode(X,Q,Y,G,J,K,W,H)}});var ge1=v((be1)=>{Object.defineProperty(be1,"__esModule",{value:!0});be1.nuid=be1.NuidImpl=void 0;var X$4="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",PO=62,r70=12,xe1=10,_e1=33,Q$4=333,ve1=r70+xe1,Zt0=new Uint8Array(PO);for(let $=0;$<PO;$++)Zt0[$]=X$4.charCodeAt($);var o70=4294967296,fe1=BigInt(PO)**BigInt(xe1),gp=Number(fe1/(1n<<32n)),$t0=Number(fe1%(1n<<32n));function Y$4($){for(let Z=0;Z<$.length;Z++)$[Z]=Math.floor(Math.random()*256)}function G$4($){if(globalThis?.crypto?.getRandomValues)globalThis.crypto.getRandomValues($);else Y$4($)}class Xt0{buf;cbuf;seqHi;seqLo;inc;inited;constructor(){this.buf=new Uint8Array(ve1),this.cbuf=new Uint8Array(r70),this.inited=!1}init(){this.inited=!0,this.setPre(),this.initSeqAndInc(),this.fillSeq()}initSeqAndInc(){let $=0;do this.seqHi=Math.floor(Math.random()*(gp+1)),this.seqLo=Math.floor(Math.random()*o70);while($++<8&&this.seqHi===gp&&this.seqLo>=$t0);if(this.seqHi===gp&&this.seqLo>=$t0)this.seqLo=0;this.inc=Math.random()*(Q$4-_e1)+_e1|0}setPre(){G$4(this.cbuf);for(let $=0;$<r70;$++)this.buf[$]=Zt0[this.cbuf[$]%PO]}fillSeq(){let $=this.seqHi,Z=this.seqLo;for(let X=ve1-1;X>=r70;X--){let Q=Math.floor($/PO),G=($-Q*PO)*o70+Z,J=Math.floor(G/PO),K=G-J*PO;this.buf[X]=Zt0[K],$=Q,Z=J}}next(){if(!this.inited)this.init();if(this.seqLo+=this.inc,this.seqLo>=o70)this.seqLo-=o70,this.seqHi+=1;if(this.seqHi>gp||this.seqHi===gp&&this.seqLo>=$t0)this.setPre(),this.initSeqAndInc();this.fillSeq();let $=this.buf;return String.fromCharCode($[0],$[1],$[2],$[3],$[4],$[5],$[6],$[7],$[8],$[9],$[10],$[11],$[12],$[13],$[14],$[15],$[16],$[17],$[18],$[19],$[20],$[21])}reset(){this.init()}}be1.NuidImpl=Xt0;be1.nuid=new Xt0});var le1=v((ue1)=>{Object.defineProperty(ue1,"__esModule",{value:!0});ue1.nuid=ue1.Nuid=void 0;var he1=ge1();ue1.Nuid=he1.NuidImpl;ue1.nuid=he1.nuid});var s70=v((a70)=>{Object.defineProperty(a70,"__esModule",{value:!0});a70.nuid=a70.Nuid=void 0;var me1=le1();Object.defineProperty(a70,"Nuid",{enumerable:!0,get:function(){return me1.Nuid}});Object.defineProperty(a70,"nuid",{enumerable:!0,get:function(){return me1.nuid}})});var AO=v((de1)=>{Object.defineProperty(de1,"__esModule",{value:!0});de1.DEFAULT_HOST=de1.DEFAULT_PORT=de1.Match=void 0;de1.syncIterator=N$4;de1.createInbox=U$4;var H$4=s70(),F$4=OG();de1.Match={Exact:"exact",CanonicalMIME:"canonical",IgnoreCase:"insensitive"};function N$4($){let Z=$[Symbol.asyncIterator]();return{async next(){let X=await Z.next();if(X.done)return Promise.resolve(null);return Promise.resolve(X.value)}}}function U$4($=""){if($=$||"_INBOX",typeof $!=="string")throw TypeError("prefix must be a string");return $.split(".").forEach((Z)=>{if(Z==="*"||Z===">")throw F$4.InvalidArgumentError.format("prefix",`cannot have wildcards ('${$}')`)}),`${$}.${H$4.nuid.next()}`}de1.DEFAULT_PORT=4222;de1.DEFAULT_HOST="127.0.0.1"});var hp=v((te1)=>{Object.defineProperty(te1,"__esModule",{value:!0});te1.DataBuffer=void 0;var pe1=BG();class ne1{buffers;byteLength;constructor(){this.buffers=[],this.byteLength=0}static concat(...$){let Z=0;for(let Y=0;Y<$.length;Y++)Z+=$[Y].length;let X=new Uint8Array(Z),Q=0;for(let Y=0;Y<$.length;Y++)X.set($[Y],Q),Q+=$[Y].length;return X}static fromAscii($){if(!$)$="";return pe1.TE.encode($)}static toAscii($){return pe1.TD.decode($)}reset(){this.buffers.length=0,this.byteLength=0}pack(){if(this.buffers.length>1){let $=new Uint8Array(this.byteLength),Z=0;for(let X=0;X<this.buffers.length;X++)$.set(this.buffers[X],Z),Z+=this.buffers[X].length;this.buffers.length=0,this.buffers.push($)}}shift(){if(this.buffers.length){let $=this.buffers.shift();if($)return this.byteLength-=$.length,$}return new Uint8Array(0)}drain($){if(this.buffers.length){this.pack();let Z=this.buffers.pop();if(Z){let X=this.byteLength;if($===void 0||$>X)$=X;let Q=Z.subarray(0,$);if(X>$)this.buffers.push(Z.subarray($));return this.byteLength=X-$,Q}}return new Uint8Array(0)}fill($,...Z){if($)this.buffers.push($),this.byteLength+=$.length;for(let X=0;X<Z.length;X++)if(Z[X]&&Z[X].length)this.buffers.push(Z[X]),this.byteLength+=Z[X].length}peek(){if(this.buffers.length)return this.pack(),this.buffers[0];return new Uint8Array(0)}size(){return this.byteLength}length(){return this.buffers.length}}te1.DataBuffer=ne1});var Wj=v((ae1)=>{Object.defineProperty(ae1,"__esModule",{value:!0});ae1.LF=ae1.CR=ae1.CRLF=ae1.CR_LF_LEN=ae1.CR_LF=void 0;ae1.setTransportFactory=z$4;ae1.defaultPort=P$4;ae1.getUrlParseFn=A$4;ae1.newTransport=T$4;ae1.getResolveFn=R$4;ae1.protoLen=re1;ae1.extractProtocolMessage=I$4;var w$4=BG(),E$4=AO(),j$4=hp(),LG;function z$4($){LG=$}function P$4(){return LG!==void 0&&LG.defaultPort!==void 0?LG.defaultPort:E$4.DEFAULT_PORT}function A$4(){return LG!==void 0&&LG.urlParseFn?LG.urlParseFn:void 0}function T$4(){if(!LG||typeof LG.factory!=="function")throw Error("transport fn is not set");return LG.factory()}function R$4(){return LG!==void 0&&LG.dnsResolveFn?LG.dnsResolveFn:void 0}ae1.CR_LF=`\r
|
|
1511
|
+
`);Q=G.pop()??"";for(let J of G){let K=Bun.stripANSI(J).replace(/^\[\d+\]\s*/,"").trim();if(!K)continue;EO({method:"",path:"",status:0,duration:0,timestamp:new Date,rawLine:K})}}(async()=>{try{for(;;){let{done:G,value:J}=await Z.read();if(G)break;Q+=X.decode(J,{stream:!0}),Y()}}catch{}if(Q.trim()){let G=Bun.stripANSI(Q).replace(/^\[\d+\]\s*/,"").trim();if(G)EO({method:"",path:"",status:0,duration:0,timestamp:new Date,rawLine:G})}})()}async function _04($){let{baseUrl:Z,noTui:X}=$,Q=process.env.HOST==="0.0.0.0"&&Boolean(process.env.PORT),Y=Q?process.env.PORT:$.vitePort,G=Z||`http://localhost:${Y}`,J=Q?await bp(Number(Y)+1):await bp(Number($.port)),{settings:K,services:W,managedServiceNames:H}=await h70({port:String(J),home:$.home,baseUrl:$.baseUrl,localMode:$.localMode,skipMigrations:$.skipMigrations,noTui:$.noTui,vitePort:$.vitePort});for(let D of W)Qj({name:D.name,status:"ready",port:D.port});xp();let F=C04(import.meta.dir,"..","..","..","..",".."),N=X===!0,U=Bun.spawn(["bun","run","dev:servers"],{cwd:F,env:{...process.env,PORT:String(K.port),VITE_PORT:String(Y),DATABASE_URL:K.databaseUrl,NATS_URL:K.natsUrls.join(","),NODE_ENV:K.nodeEnv,BASE_URL:G,DECOCMS_LOCAL_MODE:String(K.localMode),DECOCMS_HOME:K.dataDir,DATA_DIR:K.dataDir,DECO_CLI:"1",...K.betterAuthSecret?{BETTER_AUTH_SECRET:K.betterAuthSecret}:{},...K.s3Endpoint?{S3_ENDPOINT:K.s3Endpoint,S3_BUCKET:K.s3Bucket??"",S3_ACCESS_KEY_ID:K.s3AccessKeyId??"",S3_SECRET_ACCESS_KEY:K.s3SecretAccessKey??"",S3_FORCE_PATH_STYLE:String(K.s3ForcePathStyle)}:{},...K.natsCredsPath?{NATS_CREDS:K.natsCredsPath}:{}},stdio:["inherit",N?"inherit":"pipe",N?"inherit":"pipe"]});if(!N)xn0(U.stdout),xn0(U.stderr);fp(G),Qj({name:"Vite",status:"ready",port:Number(Y)}),Qj({name:"API",status:"ready",port:Number(K.port)});let O=async(D)=>{if(U.kill(D),await U.exited,H.length>0){let{stopServices:w}=await Promise.resolve().then(() => (mZ0(),lZ0));await w(K.dataDir)}};return process.on("SIGINT",()=>O("SIGINT")),process.on("SIGTERM",()=>O("SIGTERM")),{port:Number(Y),process:U}}var bn0=L(()=>{kn0();Yj();vn0()});var l70;var yn0=L(()=>{l70={name:"decocms",version:"4.316.8",description:"Deco CMS \u2014 Self-hostable MCP Gateway for managing AI connections and tools",author:"Deco team",repository:{type:"git",url:"git+https://github.com/decocms/studio.git",directory:"apps/api"},bugs:{url:"https://github.com/decocms/studio/issues"},type:"module",bin:{deco:"./dist/server/cli.js"},files:["dist/**/*"],scripts:{dev:"bun run migrate && bun run dev:server","dev:server":"bun run --cwd=../../packages/sandbox build && NODE_ENV=development bun --env-file=.env --hot run src/index.ts",build:"bun run build:server","build:server":"bun run scripts/bundle-server-script.ts --dist ./dist/server","generate:tool-contracts":"bun run scripts/generate-tool-contracts.ts","db:migrate":"bun run ./dist/server/migrate.js","db:migrate:dbos":"bun run ./dist/server/migrate-dbos.js",check:"tsc --noEmit",start:"bun run ./dist/server/server.js",migrate:"bun run src/database/migrate.ts","migrate:dbos":"bun run src/database/migrate-dbos.ts",test:"bun test src","better-auth:migrate":"bunx --bun @better-auth/cli migrate -y --config src/auth/index.ts",prepublishOnly:"bun run --cwd=../.. build:studio"},optionalDependencies:{"@duckdb/node-api":"^1.5.0-r.1"},dependencies:{"@ai-sdk/anthropic":"^3.0.85","@ai-sdk/google":"^3.0.83","@ai-sdk/openai":"^3.0.73","@anthropic-ai/sdk":"^0.105.0","@aws-sdk/client-s3":"^3.1013.0","@aws-sdk/client-sts":"^3.1013.0","@aws-sdk/lib-storage":"^3.1013.0","@aws-sdk/s3-request-presigner":"^3.1013.0","@clickhouse/client":"^1.8.1","@dbos-inc/dbos-sdk":"^4.21.6","@inkjs/ui":"^2.0.0","@nats-io/jetstream":"3.4.0","@nats-io/kv":"3.4.0","@nats-io/nats-core":"3.4.0","@nats-io/transport-node":"3.4.0","@openrouter/ai-sdk-provider":"^2.9.1","@opentelemetry/core":"^2.6.0","embedded-postgres":"^18.3.0-beta.16",ink:"^6.8.0",kysely:"^0.28.12","posthog-node":"^5.0.0",react:"^19.2.6","react-dom":"^19.2.6"},devDependencies:{"@ai-sdk/provider":"^3.0.10","@better-auth/sso":"1.4.1","@decocms/better-auth":"1.5.17","@decocms/bindings":"workspace:*","@decocms/mcp-utils":"workspace:*","@decocms/runtime":"workspace:*","@decocms/sandbox":"workspace:*","@decocms/shared":"workspace:*","@jitl/quickjs-wasmfile-release-sync":"0.31.0","@modelcontextprotocol/sdk":"1.29.0","@opentelemetry/api":"^1.9.0","@opentelemetry/api-logs":"^0.211.0","@opentelemetry/exporter-logs-otlp-proto":"^0.211.0","@opentelemetry/exporter-prometheus":"^0.208.0","@opentelemetry/exporter-trace-otlp-proto":"^0.207.0","@opentelemetry/instrumentation-runtime-node":"^0.24.0","@opentelemetry/resources":"^2.6.0","@opentelemetry/sdk-logs":"^0.211.0","@opentelemetry/sdk-metrics":"^2.2.0","@opentelemetry/sdk-node":"^0.207.0","@opentelemetry/sdk-trace-base":"^2.5.0","@types/bun":"^1.3.1","@types/google.maps":"^3.65.2","@types/pg":"^8.15.6","@types/react-syntax-highlighter":"^15.5.13","@vercel/nft":"^1.1.1",ai:"^6.0.208","better-auth":"1.4.22",croner:"^9.1.0",degit:"^2.8.4",hono:"^4.10.7",jose:"^6.0.11",nanoid:"^5.1.6",pg:"^8.16.3",typescript:"^7.0.2",typescript5:"npm:typescript@^5.9.3",zod:"4.3.6"},homepage:"https://github.com/decocms/studio",keywords:["mcp","model-context-protocol","ai","gateway","self-hosted","tools"],license:"MIT",publishConfig:{access:"public"}}});import{Box as x04,Text as as1}from"ink";import{jsx as f04,jsxs as ss1}from"react/jsx-runtime";function es1({version:$}){return ss1(x04,{flexDirection:"column",marginTop:1,children:[U70.map((Z,X)=>f04(as1,{color:B70[X],children:Z},X)),ss1(as1,{dimColor:!0,children:[" v",$]})]})}var $e1=L(()=>{Pp()});import{Box as Gj,Text as jO}from"ink";import{Spinner as b04}from"@inkjs/ui";import{jsx as UG,jsxs as by}from"react/jsx-runtime";function Ze1({status:$}){if($==="pending")return UG(b04,{label:""});return UG(jO,{color:"green",children:"\u2713"})}function y04($){return`${$.name}: ${$.port||"...."}`}function Xe1({services:$,migrationsStatus:Z,home:X,serverUrl:Q}){return by(Gj,{flexDirection:"column",paddingBottom:1,children:[UG(es1,{version:l70.version}),UG(Gj,{marginBottom:1,children:UG(jO,{dimColor:!0,children:"\u2500".repeat(80)})}),UG(Gj,{children:by(jO,{dimColor:!0,children:["Home: ",X]})}),by(Gj,{gap:2,children:[$.map((Y)=>by(Gj,{gap:1,children:[UG(jO,{children:y04(Y)}),UG(Ze1,{status:Y.status})]},Y.name)),by(Gj,{gap:1,children:[UG(jO,{children:"Migrations"}),UG(Ze1,{status:Z})]})]}),UG(Gj,{children:Q?by(jO,{children:["Open in browser: ",UG(jO,{color:"cyan",children:Q})]}):UG(jO,{dimColor:!0,children:"Starting..."})})]})}var Qe1=L(()=>{yn0();$e1()});import{Box as g04,Text as yp}from"ink";import{jsx as gn0,jsxs as hn0}from"react/jsx-runtime";function h04($){if($>=500)return"red";if($>=400)return"yellow";if($>=300)return"cyan";return"green"}function Ye1({logs:$}){return gn0(g04,{flexDirection:"column",children:$.map((Z,X)=>{if(Z.rawLine)return gn0(yp,{dimColor:!0,children:Z.rawLine},X);let Q=Z.duration<1000?`${Z.duration}ms`:`${(Z.duration/1000).toFixed(1)}s`;return hn0(yp,{children:[hn0(yp,{dimColor:!0,children:[Z.method.padEnd(6)," ",Z.path.padEnd(30)," "]}),gn0(yp,{color:h04(Z.status),children:Z.status}),hn0(yp,{dimColor:!0,children:[" ",Q.padStart(8)]})]},X)})})}var Ge1=()=>{};var un0={};e(un0,{App:()=>l04});import{Box as u04}from"ink";import{useSyncExternalStore as c04}from"react";import{jsx as Je1,jsxs as m04}from"react/jsx-runtime";function l04({home:$}){let Z=c04(_n0,Cn0);return m04(u04,{flexDirection:"column",children:[Je1(Xe1,{services:Z.services,migrationsStatus:Z.migrationsStatus,home:$,serverUrl:Z.serverUrl}),Je1(Ye1,{logs:Z.logs})]})}var cn0=L(()=>{Qe1();Ge1();Yj()});var a3="thread-gate",PN="decopilot-hosted-harness",AN="decopilot-hosted-harness-sandboxed",RJ="automations",zO="background-tools",Jj="task-board-github-reads",TN="jira-push";var Ke1="10";function We1($){return{name:"decocms",systemDatabaseUrl:$.systemDatabaseUrl,systemDatabaseSchemaName:"dbos",systemDatabasePoolSize:$.poolSize,runAdminServer:!1,executorID:$.executorID,applicationVersion:Ke1,...$.listenQueues!==void 0?{listenQueues:$.listenQueues}:{}}}var He1=()=>{};import d04 from"pg";async function Ne1($,Z){let{databaseUrl:X,lockTimeoutMs:Q=i04}=$,Y=$.log??((W)=>console.log(W)),G=new d04.Client({connectionString:X});await G.connect();let J=Date.now(),K=!1;try{while(!K){if(K=(await G.query("SELECT pg_try_advisory_lock($1) AS locked",[Fe1.toString()])).rows[0]?.locked===!0,K)break;if(Date.now()-J>=Q)throw Error(`Timed out after ${Q}ms waiting for the DBOS migration lock. Another process is still migrating the dbos schema; this pod will restart and retry.`);await H$(p04)}let W=Date.now()-J;if(W>1000)Y(`[dbos] waited ${W}ms for the migration lock; another process migrated first`);return await Z()}finally{if(K)try{await G.query("SELECT pg_advisory_unlock($1)",[Fe1.toString()])}catch{}await G.end().catch(()=>{})}}var Fe1=8314027461559302n,i04=600000,p04=500;var Ue1=L(()=>{J4()});function n04(){let $=(process.env.BUN_OPTIONS??"").split(/\s+/).filter(Boolean);return[...process.argv.slice(1),...$]}function ln0($,Z){for(let X=0;X<$.length;X++){let Q=$[X];if(Q===void 0)continue;if(Q===Z)return $[X+1];if(Q.startsWith(`${Z}=`))return Q.slice(Z.length+1)}return}function Be1(){let $=n04();if($.includes("--cpu-prof")){console.log(JSON.stringify({msg:"cpu-profiling-active",dir:ln0($,"--cpu-prof-dir")??process.cwd(),name:ln0($,"--cpu-prof-name"),markdown:$.includes("--cpu-prof-md"),intervalUs:Number(ln0($,"--cpu-prof-interval")??1000),note:"profile is written on process exit"}));return}if(process.env.CPU_PROFILE)console.warn(JSON.stringify({msg:"cpu-profiling-requested-but-inactive",hint:'CPU profiling is a Bun launch flag. Set BUN_OPTIONS="--cpu-prof --cpu-prof-md --cpu-prof-dir=/tmp" before starting the process.'}))}function Oe1(){if(process.env.HEAP_WATCH!=="1")return()=>{};let $=Number(process.env.HEAP_WATCH_INTERVAL_MS??60000),Z=async()=>{let X=eE();if(!X)return;let Q={};try{let{heapStats:Y}=await import("bun:jsc"),G=Y(),J=Object.entries(G.objectTypeCounts).sort((K,W)=>W[1]-K[1]).slice(0,20);Q={objectCount:G.objectCount,heapSize:G.heapSize,top:Object.fromEntries(J)}}catch{}console.log(JSON.stringify({msg:"heap-watch",ts:new Date().toISOString(),uptimeS:Math.round(process.uptime()),rss:X.rss,heapUsed:X.heapUsed,heapTotal:X.heapTotal,external:X.external,arrayBuffers:X.arrayBuffers,...Q}))};return Z().catch(()=>{}),m70=setInterval(()=>void Z().catch(()=>{}),$),m70.unref?.(),process.on("SIGUSR2",()=>{try{let X=Bun.generateHeapSnapshot("v8"),Q=typeof X==="string"?X:JSON.stringify(X),Y=`/tmp/heap-${process.pid}-${Date.now()}.heapsnapshot`;Bun.write(Y,Q),console.log(JSON.stringify({msg:"heap-snapshot-written",path:Y}))}catch(X){console.error("[heap-watch] snapshot failed:",X)}}),()=>{if(m70)clearInterval(m70)}}var m70;var Le1=()=>{};import*as t04 from"bun:jsc";function De1(){if(process.env.STALL_WATCHDOG!=="1")return()=>{};let $=Number(process.env.STALL_WATCHDOG_MS??100),Z=Number(process.env.STALL_WATCHDOG_TICK_MS??50);try{o04()}catch(G){return console.error("[stall-watchdog] failed to start sampling profiler:",G),()=>{}}let X,Q=performance.now()+Z,Y=()=>{let G=performance.now(),J=G-Q;Q=G+Z;let K=[];try{K=r04()?.traces??[]}catch{}if(J>$&&K.length>0){let W=new Map;for(let F of K){let N=F.frames.find((O)=>O.sourceURL&&!/Unknown Executable/.test(O.category??""))??F.frames[0];if(!N)continue;let U=(N.sourceURL??"?").replace(/^.*\/node_modules\//,"node_modules/"),B=`${N.name??"?"} @ ${U}:${N.line??"?"}`;W.set(B,(W.get(B)??0)+1)}let H=[...W.entries()].sort((F,N)=>N[1]-F[1]).slice(0,8).map(([F,N])=>({frame:F,count:N}));console.warn(JSON.stringify({msg:"stall-stack",ts:new Date().toISOString(),lagMs:Math.round(J),samplesInWindow:K.length,top:H}))}X=setTimeout(Y,Z),X.unref?.()};return X=setTimeout(Y,Z),X.unref?.(),()=>{if(X)clearTimeout(X)}}var o04,r04;var we1=L(()=>{({startSamplingProfiler:o04,samplingProfilerStackTraces:r04}=t04)});function Ee1(){Be1();let $=[Oe1(),kt1(),De1()];return()=>{for(let Z of $)Z()}}var je1=L(()=>{Wm0();Le1();we1()});var Kj=v((ze1)=>{Object.defineProperty(ze1,"__esModule",{value:!0});ze1.RepublishHeaders=ze1.DirectMsgHeaders=ze1.JsHeaders=ze1.AdvisoryKind=void 0;ze1.isOrderedPushConsumerOptions=a04;ze1.isPullConsumer=s04;ze1.isPushConsumer=e04;ze1.isBoundPushConsumerOptions=$14;function a04($){if($&&typeof $==="object")return"name_prefix"in $||"deliver_subject_prefix"in $||"filter_subjects"in $||"filter_subject"in $||"deliver_policy"in $||"opt_start_seq"in $||"opt_start_time"in $||"replay_policy"in $||"inactive_threshold"in $||"headers_only"in $||"deliver_prefix"in $;return!1}function s04($){return $.isPullConsumer()}function e04($){return $.isPushConsumer()}function $14($){if($&&typeof $==="object")return"deliver_subject"in $||"deliver_group"in $||"idle_heartbeat"in $;return!1}ze1.AdvisoryKind={API:"api_audit",StreamAction:"stream_action",ConsumerAction:"consumer_action",SnapshotCreate:"snapshot_create",SnapshotComplete:"snapshot_complete",RestoreCreate:"restore_create",RestoreComplete:"restore_complete",MaxDeliver:"max_deliver",Terminated:"terminated",Ack:"consumer_ack",StreamLeaderElected:"stream_leader_elected",StreamQuorumLost:"stream_quorum_lost",ConsumerLeaderElected:"consumer_leader_elected",ConsumerQuorumLost:"consumer_quorum_lost"};ze1.JsHeaders={StreamSourceHdr:"Nats-Stream-Source",LastConsumerSeqHdr:"Nats-Last-Consumer",LastStreamSeqHdr:"Nats-Last-Stream",ConsumerStalledHdr:"Nats-Consumer-Stalled",MessageSizeHdr:"Nats-Msg-Size",RollupHdr:"Nats-Rollup",RollupValueSubject:"sub",RollupValueAll:"all",PendingMessagesHdr:"Nats-Pending-Messages",PendingBytesHdr:"Nats-Pending-Bytes",RequiredApiLevel:"Nats-Required-Api-Level"};ze1.DirectMsgHeaders={Stream:"Nats-Stream",Sequence:"Nats-Sequence",TimeStamp:"Nats-Time-Stamp",Subject:"Nats-Subject",LastSequence:"Nats-Last-Sequence",NumPending:"Nats-Num-Pending"};ze1.RepublishHeaders={Stream:"Nats-Stream",Subject:"Nats-Subject",Sequence:"Nats-Sequence",LastSequence:"Nats-Last-Sequence",Size:"Nats-Msg-Size"}});var BG=v((Ae1)=>{Object.defineProperty(Ae1,"__esModule",{value:!0});Ae1.TD=Ae1.TE=Ae1.Empty=void 0;Ae1.encode=H14;Ae1.decode=F14;Ae1.Empty=new Uint8Array(0);Ae1.TE=new TextEncoder;Ae1.TD=new TextDecoder;function W14(...$){let Z=0;for(let Y=0;Y<$.length;Y++)Z+=$[Y].length;let X=new Uint8Array(Z),Q=0;for(let Y=0;Y<$.length;Y++)X.set($[Y],Q),Q+=$[Y].length;return X}function H14(...$){let Z=[];for(let X=0;X<$.length;X++)Z.push(Ae1.TE.encode($[X]));if(Z.length===0)return Ae1.Empty;if(Z.length===1)return Z[0];return W14(...Z)}function F14($){if(!$||$.length===0)return"";return Ae1.TD.decode($)}});var OG=v((Ie1)=>{Object.defineProperty(Ie1,"__esModule",{value:!0});Ie1.errors=Ie1.PermissionViolationError=Ie1.NoRespondersError=Ie1.TimeoutError=Ie1.RequestError=Ie1.ProtocolError=Ie1.ConnectionError=Ie1.DrainingConnectionError=Ie1.ClosedConnectionError=Ie1.AuthorizationError=Ie1.UserAuthenticationExpiredError=Ie1.InvalidOperationError=Ie1.InvalidArgumentError=Ie1.InvalidSubjectError=void 0;class dn0 extends Error{constructor($,Z){super(`illegal subject: '${$}'`,Z);this.name="InvalidSubjectError"}}Ie1.InvalidSubjectError=dn0;class d70 extends Error{constructor($,Z){super($,Z);this.name="InvalidArgumentError"}static format($,Z,X){if(Array.isArray(Z)&&Z.length>1)Z=Z[0];if(Array.isArray($))$=$.map((Q)=>`'${Q}'`),$=$.join(",");else $=`'${$}'`;return new d70(`${$} ${Z}`,X)}}Ie1.InvalidArgumentError=d70;class in0 extends Error{constructor($,Z){super($,Z);this.name="InvalidOperationError"}}Ie1.InvalidOperationError=in0;class i70 extends Error{constructor($,Z){super($,Z);this.name="UserAuthenticationExpiredError"}static parse($){if($.toLowerCase().indexOf("user authentication expired")!==-1)return new i70($);return null}}Ie1.UserAuthenticationExpiredError=i70;class p70 extends Error{constructor($,Z){super($,Z);this.name="AuthorizationError"}static parse($){let Z=["authorization violation","account authentication expired","authentication timeout"],X=$.toLowerCase();for(let Q=0;Q<Z.length;Q++)if(X.indexOf(Z[Q])!==-1)return new p70($);return null}}Ie1.AuthorizationError=p70;class pn0 extends Error{constructor(){super("closed connection");this.name="ClosedConnectionError"}}Ie1.ClosedConnectionError=pn0;class nn0 extends Error{constructor(){super("connection draining");this.name="DrainingConnectionError"}}Ie1.DrainingConnectionError=nn0;class tn0 extends Error{constructor($,Z){super($,Z);this.name="ConnectionError"}}Ie1.ConnectionError=tn0;class on0 extends Error{constructor($,Z){super($,Z);this.name="ProtocolError"}}Ie1.ProtocolError=on0;class rn0 extends Error{constructor($="",Z){super($,Z);this.name="RequestError"}isNoResponders(){return this.cause instanceof n70}}Ie1.RequestError=rn0;class an0 extends Error{constructor($){super("timeout",$);this.name="TimeoutError"}}Ie1.TimeoutError=an0;class n70 extends Error{subject;constructor($,Z){super(`no responders: '${$}'`,Z);this.subject=$,this.name="NoResponders"}}Ie1.NoRespondersError=n70;class t70 extends Error{operation;subject;queue;constructor($,Z,X,Q,Y){super($,Y);this.name="PermissionViolationError",this.operation=Z,this.subject=X,this.queue=Q}static parse($){if(($?$.toLowerCase():"").indexOf("permissions violation")===-1)return null;let X="publish",Q="",Y=void 0,G=$.match(/(Publish|Subscription) to "(\S+)"/);if(G){if(X=G[1].toLowerCase(),Q=G[2],X==="subscription"){let J=$.match(/using queue "(\S+)"/);if(J)Y=J[1]}}return new t70($,X,Q,Y)}}Ie1.PermissionViolationError=t70;Ie1.errors={AuthorizationError:p70,ClosedConnectionError:pn0,ConnectionError:tn0,DrainingConnectionError:nn0,InvalidArgumentError:d70,InvalidOperationError:in0,InvalidSubjectError:dn0,NoRespondersError:n70,PermissionViolationError:t70,ProtocolError:on0,RequestError:rn0,TimeoutError:an0,UserAuthenticationExpiredError:i70}});var s3=v((Se1)=>{Object.defineProperty(Se1,"__esModule",{value:!0});Se1.SimpleMutex=Se1.Perf=void 0;Se1.extend=M14;Se1.render=V14;Se1.timeout=k14;Se1.delay=S14;Se1.deadline=C14;Se1.deferred=en0;Se1.debugDeferred=_14;Se1.shuffle=v14;Se1.collect=x14;Se1.jitter=ke1;Se1.backoff=f14;Se1.nanos=b14;Se1.millis=y14;Se1.randomToken=u14;var q14=BG(),sn0=OG();function M14($,...Z){for(let X=0;X<Z.length;X++){let Q=Z[X];Object.keys(Q).forEach(function(Y){$[Y]=Q[Y]})}return $}function V14($){return q14.TD.decode($).replace(/\n/g,"\u240A").replace(/\r/g,"\u240D")}function k14($,Z=!0){let X=Z?new sn0.TimeoutError:null,Q,Y,G=new Promise((J,K)=>{Q={cancel:()=>{if(Y)clearTimeout(Y)}},Y=setTimeout(()=>{if(X===null)K(new sn0.TimeoutError);else K(X)},$)});return Object.assign(G,Q)}function S14($=0){let Z,X=new Promise((Q)=>{let Y=setTimeout(()=>{Q()},$);Z={cancel:()=>{if(Y)clearTimeout(Y),Q()}}});return Object.assign(X,Z)}async function C14($,Z=1000){let X=en0(),Q=setTimeout(()=>{X.reject(new sn0.TimeoutError)},Z);try{return await Promise.race([$,X])}finally{clearTimeout(Q)}}function en0(){let $={},Z=new Promise((X,Q)=>{$={resolve:X,reject:Q}});return Object.assign(Z,$)}function _14(){let $={},Z=new Promise((X,Q)=>{$={resolve:(Y)=>{console.trace("resolve",Y),X(Y)},reject:(Y)=>{console.trace("reject"),Q(Y)}}});return Object.assign(Z,$)}function v14($){for(let Z=$.length-1;Z>0;Z--){let X=Math.floor(Math.random()*(Z+1));[$[Z],$[X]]=[$[X],$[Z]]}return $}async function x14($){let Z=[];for await(let X of $)Z.push(X);return Z}class Me1{timers;measures;constructor(){this.timers=new Map,this.measures=new Map}mark($){this.timers.set($,performance.now())}measure($,Z,X){let Q=this.timers.get(Z);if(Q===void 0)throw Error(`${Z} is not defined`);let Y=this.timers.get(X);if(Y===void 0)throw Error(`${X} is not defined`);this.measures.set($,Y-Q)}getEntries(){let $=[];return this.measures.forEach((Z,X)=>{$.push({name:X,duration:Z})}),$}}Se1.Perf=Me1;class Ve1{max;current;waiting;constructor($=1){this.max=$,this.current=0,this.waiting=[]}lock(){if(this.current++,this.current<=this.max)return Promise.resolve();let $=en0();return this.waiting.push($),$}unlock(){this.current--,this.waiting.pop()?.resolve()}}Se1.SimpleMutex=Ve1;function ke1($){if($===0)return 0;return Math.floor($/2+Math.random()*$)}function f14($=[0,250,250,500,500,3000,5000]){if(!Array.isArray($))$=[0,250,250,500,500,3000,5000];let Z=$.length-1;return{backoff(X){return ke1(X>Z?$[Z]:$[X])}}}function b14($){return $*1e6}function y14($){return Math.floor($/1e6)}var g14="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",RN=new Uint8Array(62);for(let $=0;$<62;$++)RN[$]=g14.charCodeAt($);var h14=218340105584896;function u14(){let $=Math.floor(Math.random()*h14),Z=$%62,X=RN[Z];$=($-Z)/62,Z=$%62;let Q=RN[Z];$=($-Z)/62,Z=$%62;let Y=RN[Z];$=($-Z)/62,Z=$%62;let G=RN[Z];$=($-Z)/62,Z=$%62;let J=RN[Z];$=($-Z)/62,Z=$%62;let K=RN[Z];$=($-Z)/62,Z=$%62;let W=RN[Z];$=($-Z)/62;let H=RN[$];return String.fromCharCode(X,Q,Y,G,J,K,W,H)}});var ge1=v((be1)=>{Object.defineProperty(be1,"__esModule",{value:!0});be1.nuid=be1.NuidImpl=void 0;var X$4="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",PO=62,r70=12,xe1=10,_e1=33,Q$4=333,ve1=r70+xe1,Zt0=new Uint8Array(PO);for(let $=0;$<PO;$++)Zt0[$]=X$4.charCodeAt($);var o70=4294967296,fe1=BigInt(PO)**BigInt(xe1),gp=Number(fe1/(1n<<32n)),$t0=Number(fe1%(1n<<32n));function Y$4($){for(let Z=0;Z<$.length;Z++)$[Z]=Math.floor(Math.random()*256)}function G$4($){if(globalThis?.crypto?.getRandomValues)globalThis.crypto.getRandomValues($);else Y$4($)}class Xt0{buf;cbuf;seqHi;seqLo;inc;inited;constructor(){this.buf=new Uint8Array(ve1),this.cbuf=new Uint8Array(r70),this.inited=!1}init(){this.inited=!0,this.setPre(),this.initSeqAndInc(),this.fillSeq()}initSeqAndInc(){let $=0;do this.seqHi=Math.floor(Math.random()*(gp+1)),this.seqLo=Math.floor(Math.random()*o70);while($++<8&&this.seqHi===gp&&this.seqLo>=$t0);if(this.seqHi===gp&&this.seqLo>=$t0)this.seqLo=0;this.inc=Math.random()*(Q$4-_e1)+_e1|0}setPre(){G$4(this.cbuf);for(let $=0;$<r70;$++)this.buf[$]=Zt0[this.cbuf[$]%PO]}fillSeq(){let $=this.seqHi,Z=this.seqLo;for(let X=ve1-1;X>=r70;X--){let Q=Math.floor($/PO),G=($-Q*PO)*o70+Z,J=Math.floor(G/PO),K=G-J*PO;this.buf[X]=Zt0[K],$=Q,Z=J}}next(){if(!this.inited)this.init();if(this.seqLo+=this.inc,this.seqLo>=o70)this.seqLo-=o70,this.seqHi+=1;if(this.seqHi>gp||this.seqHi===gp&&this.seqLo>=$t0)this.setPre(),this.initSeqAndInc();this.fillSeq();let $=this.buf;return String.fromCharCode($[0],$[1],$[2],$[3],$[4],$[5],$[6],$[7],$[8],$[9],$[10],$[11],$[12],$[13],$[14],$[15],$[16],$[17],$[18],$[19],$[20],$[21])}reset(){this.init()}}be1.NuidImpl=Xt0;be1.nuid=new Xt0});var le1=v((ue1)=>{Object.defineProperty(ue1,"__esModule",{value:!0});ue1.nuid=ue1.Nuid=void 0;var he1=ge1();ue1.Nuid=he1.NuidImpl;ue1.nuid=he1.nuid});var s70=v((a70)=>{Object.defineProperty(a70,"__esModule",{value:!0});a70.nuid=a70.Nuid=void 0;var me1=le1();Object.defineProperty(a70,"Nuid",{enumerable:!0,get:function(){return me1.Nuid}});Object.defineProperty(a70,"nuid",{enumerable:!0,get:function(){return me1.nuid}})});var AO=v((de1)=>{Object.defineProperty(de1,"__esModule",{value:!0});de1.DEFAULT_HOST=de1.DEFAULT_PORT=de1.Match=void 0;de1.syncIterator=N$4;de1.createInbox=U$4;var H$4=s70(),F$4=OG();de1.Match={Exact:"exact",CanonicalMIME:"canonical",IgnoreCase:"insensitive"};function N$4($){let Z=$[Symbol.asyncIterator]();return{async next(){let X=await Z.next();if(X.done)return Promise.resolve(null);return Promise.resolve(X.value)}}}function U$4($=""){if($=$||"_INBOX",typeof $!=="string")throw TypeError("prefix must be a string");return $.split(".").forEach((Z)=>{if(Z==="*"||Z===">")throw F$4.InvalidArgumentError.format("prefix",`cannot have wildcards ('${$}')`)}),`${$}.${H$4.nuid.next()}`}de1.DEFAULT_PORT=4222;de1.DEFAULT_HOST="127.0.0.1"});var hp=v((te1)=>{Object.defineProperty(te1,"__esModule",{value:!0});te1.DataBuffer=void 0;var pe1=BG();class ne1{buffers;byteLength;constructor(){this.buffers=[],this.byteLength=0}static concat(...$){let Z=0;for(let Y=0;Y<$.length;Y++)Z+=$[Y].length;let X=new Uint8Array(Z),Q=0;for(let Y=0;Y<$.length;Y++)X.set($[Y],Q),Q+=$[Y].length;return X}static fromAscii($){if(!$)$="";return pe1.TE.encode($)}static toAscii($){return pe1.TD.decode($)}reset(){this.buffers.length=0,this.byteLength=0}pack(){if(this.buffers.length>1){let $=new Uint8Array(this.byteLength),Z=0;for(let X=0;X<this.buffers.length;X++)$.set(this.buffers[X],Z),Z+=this.buffers[X].length;this.buffers.length=0,this.buffers.push($)}}shift(){if(this.buffers.length){let $=this.buffers.shift();if($)return this.byteLength-=$.length,$}return new Uint8Array(0)}drain($){if(this.buffers.length){this.pack();let Z=this.buffers.pop();if(Z){let X=this.byteLength;if($===void 0||$>X)$=X;let Q=Z.subarray(0,$);if(X>$)this.buffers.push(Z.subarray($));return this.byteLength=X-$,Q}}return new Uint8Array(0)}fill($,...Z){if($)this.buffers.push($),this.byteLength+=$.length;for(let X=0;X<Z.length;X++)if(Z[X]&&Z[X].length)this.buffers.push(Z[X]),this.byteLength+=Z[X].length}peek(){if(this.buffers.length)return this.pack(),this.buffers[0];return new Uint8Array(0)}size(){return this.byteLength}length(){return this.buffers.length}}te1.DataBuffer=ne1});var Wj=v((ae1)=>{Object.defineProperty(ae1,"__esModule",{value:!0});ae1.LF=ae1.CR=ae1.CRLF=ae1.CR_LF_LEN=ae1.CR_LF=void 0;ae1.setTransportFactory=z$4;ae1.defaultPort=P$4;ae1.getUrlParseFn=A$4;ae1.newTransport=T$4;ae1.getResolveFn=R$4;ae1.protoLen=re1;ae1.extractProtocolMessage=I$4;var w$4=BG(),E$4=AO(),j$4=hp(),LG;function z$4($){LG=$}function P$4(){return LG!==void 0&&LG.defaultPort!==void 0?LG.defaultPort:E$4.DEFAULT_PORT}function A$4(){return LG!==void 0&&LG.urlParseFn?LG.urlParseFn:void 0}function T$4(){if(!LG||typeof LG.factory!=="function")throw Error("transport fn is not set");return LG.factory()}function R$4(){return LG!==void 0&&LG.dnsResolveFn?LG.dnsResolveFn:void 0}ae1.CR_LF=`\r
|
|
1512
1512
|
`;ae1.CR_LF_LEN=ae1.CR_LF.length;ae1.CRLF=j$4.DataBuffer.fromAscii(ae1.CR_LF);ae1.CR=new Uint8Array(ae1.CRLF)[0];ae1.LF=new Uint8Array(ae1.CRLF)[1];function re1($){for(let Z=0;Z<$.length;Z++){let X=Z+1;if($.byteLength>X&&$[Z]===ae1.CR&&$[X]===ae1.LF)return X+1}return 0}function I$4($){let Z=re1($);if(Z>0){let Q=new Uint8Array($).slice(0,Z);return w$4.TD.decode(Q)}return""}});var Kt0=v((G0$)=>{Object.defineProperty(G0$,"__esModule",{value:!0});G0$.ipV4=X0$;G0$.isIP=b$4;G0$.parseIP=Q0$;var up=4,Hj=16,e70=48,Z0$=57,ee1=65,x$4=70,$0$=97,f$4=102,Jt0=16777215;function X0$($,Z,X,Q){let Y=new Uint8Array(Hj);return[0,0,0,0,0,0,0,0,0,0,255,255].forEach((J,K)=>{Y[K]=J}),Y[12]=$,Y[13]=Z,Y[14]=X,Y[15]=Q,Y}function b$4($){return Q0$($)!==void 0}function Q0$($){for(let Z=0;Z<$.length;Z++)switch($[Z]){case".":return Y0$($);case":":return y$4($)}return}function Y0$($){let Z=new Uint8Array(up);for(let X=0;X<up;X++){if($.length===0)return;if(X>0){if($[0]!==".")return;$=$.substring(1)}let{n:Q,c:Y,ok:G}=g$4($);if(!G||Q>255)return;$=$.substring(Y),Z[X]=Q}return X0$(Z[0],Z[1],Z[2],Z[3])}function y$4($){let Z=new Uint8Array(Hj),X=-1;if($.length>=2&&$[0]===":"&&$[1]===":"){if(X=0,$=$.substring(2),$.length===0)return Z}let Q=0;while(Q<Hj){let{n:Y,c:G,ok:J}=h$4($);if(!J||Y>65535)return;if(G<$.length&&$[G]==="."){if(X<0&&Q!=Hj-up)return;if(Q+up>Hj)return;let K=Y0$($);if(K===void 0)return;Z[Q]=K[12],Z[Q+1]=K[13],Z[Q+2]=K[14],Z[Q+3]=K[15],$="",Q+=up;break}if(Z[Q]=Y>>8,Z[Q+1]=Y,Q+=2,$=$.substring(G),$.length===0)break;if($[0]!==":"||$.length==1)return;if($=$.substring(1),$[0]===":"){if(X>=0)return;if(X=Q,$=$.substring(1),$.length===0)break}}if($.length!==0)return;if(Q<Hj){if(X<0)return;let Y=Hj-Q;for(let G=Q-1;G>=X;G--)Z[G+Y]=Z[G];for(let G=X+Y-1;G>=X;G--)Z[G]=0}else if(X>=0)return;return Z}function g$4($){let Z=0,X=0;for(Z=0;Z<$.length&&e70<=$.charCodeAt(Z)&&$.charCodeAt(Z)<=Z0$;Z++)if(X=X*10+($.charCodeAt(Z)-e70),X>=Jt0)return{n:Jt0,c:Z,ok:!1};if(Z===0)return{n:0,c:0,ok:!1};return{n:X,c:Z,ok:!0}}function h$4($){let Z=0,X=0;for(X=0;X<$.length;X++){if(e70<=$.charCodeAt(X)&&$.charCodeAt(X)<=Z0$)Z*=16,Z+=$.charCodeAt(X)-e70;else if($0$<=$.charCodeAt(X)&&$.charCodeAt(X)<=f$4)Z*=16,Z+=$.charCodeAt(X)-$0$+10;else if(ee1<=$.charCodeAt(X)&&$.charCodeAt(X)<=x$4)Z*=16,Z+=$.charCodeAt(X)-ee1+10;else break;if(Z>=Jt0)return{n:0,c:X,ok:!1}}if(X===0)return{n:0,c:X,ok:!1};return{n:Z,c:X,ok:!0}}});var Bt0=v((K0$)=>{Object.defineProperty(K0$,"__esModule",{value:!0});K0$.Servers=K0$.ServerImpl=void 0;K0$.isIPV4OrHostname=J0$;K0$.hostPort=Ut0;var Wt0=Wj(),Ht0=s3(),Ft0=Kt0(),m$4=AO(),d$4=OG();function J0$($){if($.indexOf("[")!==-1||$.indexOf("::")!==-1)return!1;if($.indexOf(".")!==-1)return!0;if($.split(":").length<=2)return!0;return!1}function Nt0($){return!J0$($)}function i$4($){let X=$.toUpperCase().indexOf("::FFFF:");if(X!==-1&&$.indexOf(".")!==-1){let Q=$.substring(X+7);return Q=Q.replace("[",""),Q.replace("]","")}return $}function Ut0($){if($=$.trim(),$.match(/^(.*:\/\/)(.*)/m))$=$.replace(/^(.*:\/\/)(.*)/gm,"$2");if($=i$4($),Nt0($)&&$.indexOf("[")===-1)$=`[${$}]`;let Z=Nt0($)?$.match(/(]:)(\d+)/):$.match(/(:)(\d+)/),X=Z&&Z.length===3&&Z[1]&&Z[2]?parseInt(Z[2]):m$4.DEFAULT_PORT,Y=new URL(`${X===80?"https":"http"}://${$}`);Y.port=`${X}`;let G=Y.hostname;if(G.charAt(0)==="[")G=G.substring(1,G.length-1);return{listen:Y.host,hostname:G,port:X}}class yy{src;listen;hostname;port;didConnect;reconnects;lastConnect;gossiped;tlsName;resolves;constructor($,Z=!1){this.src=$,this.tlsName="";let X=Ut0($);this.listen=X.listen,this.hostname=X.hostname,this.port=X.port,this.didConnect=!1,this.reconnects=0,this.lastConnect=0,this.gossiped=Z}toString(){return this.listen}async resolve($){if(!$.fn||$.resolve===!1)return[this];let Z=[];if((0,Ft0.isIP)(this.hostname))return[this];else{let X=await $.fn(this.hostname);if($.debug)console.log(`resolve ${this.hostname} = ${X.join(",")}`);for(let Q of X){let Y=this.port===80?"https":"http",G=new URL(`${Y}://${Nt0(Q)?"["+Q+"]":Q}`);G.port=`${this.port}`;let J=new yy(G.host,!1);J.tlsName=this.hostname,Z.push(J)}}if($.randomize)(0,Ht0.shuffle)(Z);return this.resolves=Z,Z}}K0$.ServerImpl=yy;class $X0{firstSelect;servers;currentServer;tlsName;randomize;constructor($={}){this.firstSelect=!0,this.servers=[],this.tlsName="",this.randomize=$.randomize||!1}setServers($){if(!Array.isArray($)||$.length===0)throw d$4.InvalidArgumentError.format("servers","cannot be empty");let Z=(0,Wt0.getUrlParseFn)(),X=new Map;for(let Y of this.servers)X.set(Y.listen,Y);let Q=[];for(let Y of $){Y=Z?Z(Y):Y;let{listen:G}=Ut0(Y),J=X.get(G);if(J)J.gossiped=!1,Q.push(J);else Q.push(new yy(Y))}if(this.randomize)(0,Ht0.shuffle)(Q);if(this.servers=Q,this.currentServer===void 0||!Q.includes(this.currentServer))this.currentServer=Q[0],this.firstSelect=!0}clear(){this.servers.length=0}updateTLSName(){let $=this.getCurrentServer();if(!(0,Ft0.isIP)($.hostname))this.tlsName=$.hostname,this.servers.forEach((Z)=>{if(Z.gossiped)Z.tlsName=this.tlsName})}getCurrentServer(){return this.currentServer}addServer($,Z=!1){let X=(0,Wt0.getUrlParseFn)();$=X?X($):$;let Q=new yy($,Z);if((0,Ft0.isIP)(Q.hostname))Q.tlsName=this.tlsName;this.servers.push(Q)}selectServer(){if(this.firstSelect)return this.firstSelect=!1,this.currentServer;let $=this.servers.shift();if($)this.servers.push($),this.currentServer=$;return $}removeCurrentServer(){this.removeServer(this.currentServer)}removeServer($){if($){let Z=this.servers.indexOf($);this.servers.splice(Z,1)}}snapshot(){return $X0.freezeAll(this.servers)}snapshotForHandler(){let $=this.currentServer;if(!$)return this.snapshot();let Z=this.servers.indexOf($);if(Z<=0)return this.snapshot();return $X0.freezeAll([$,...this.servers.slice(0,Z),...this.servers.slice(Z+1)])}static freezeAll($){return $.map((Z)=>Object.freeze({hostname:Z.hostname,port:Z.port,listen:Z.listen,src:Z.src,tlsName:Z.tlsName,reconnects:Z.reconnects,lastConnect:Z.lastConnect,gossiped:Z.gossiped,didConnect:Z.didConnect}))}find($){return this.servers.find((Z)=>Z.listen===$.listen)}setCurrent($){this.currentServer=$}length(){return this.servers.length}next(){return this.servers.length?this.servers[0]:void 0}getServers(){return this.servers}update($,Z){let X=[],Q=[],Y=(0,Wt0.getUrlParseFn)(),G=new Map;if($.connect_urls&&$.connect_urls.length>0)$.connect_urls.forEach((K)=>{K=Y?Y(K,Z):K;let W=new yy(K,!0);G.set(K,W)});let J=[];if(this.servers.forEach((K,W)=>{let H=K.listen;if(K.gossiped&&this.currentServer.listen!==H&&G.get(H)===void 0)J.push(W);G.delete(H)}),J.reverse(),J.forEach((K)=>{let W=this.servers.splice(K,1);Q=Q.concat(W[0].listen)}),G.forEach((K,W)=>{this.servers.push(K),X.push(W)}),this.randomize&&X.length>0){let K=this.currentServer,W=this.servers.filter((H)=>H!==K);(0,Ht0.shuffle)(W),this.servers=K?[K,...W]:W}return{added:X,deleted:Q}}}K0$.Servers=$X0});var ZX0=v((N0$)=>{Object.defineProperty(N0$,"__esModule",{value:!0});N0$.QueuedIteratorImpl=void 0;var Ot0=s3(),H0$=OG();class F0${inflight;processed;received;noIterator;iterClosed;done;signal;yields;filtered;pendingFiltered;ctx;_data;err;time;profile;yielding;didBreak;constructor(){this.inflight=0,this.filtered=0,this.pendingFiltered=0,this.processed=0,this.received=0,this.noIterator=!1,this.done=!1,this.signal=(0,Ot0.deferred)(),this.yields=[],this.iterClosed=(0,Ot0.deferred)(),this.time=0,this.yielding=!1,this.didBreak=!1,this.profile=!1}[Symbol.asyncIterator](){return this.iterate()}push($){if(this.done)return;if(this.didBreak){if(typeof $==="function"){let Z=$;try{Z()}catch(X){}}return}if(typeof $==="function")this.pendingFiltered++;this.yields.push($),this.signal.resolve()}async*iterate(){if(this.noIterator)throw new H0$.InvalidOperationError("iterator cannot be used when a callback is registered");if(this.yielding)throw new H0$.InvalidOperationError("iterator is already yielding");this.yielding=!0;try{while(!0){if(this.yields.length===0)await this.signal;if(this.err)throw this.err;let $=this.yields;this.inflight=$.length,this.yields=[];for(let Z=0;Z<$.length;Z++){if(typeof $[Z]==="function"){this.pendingFiltered--;let Q=$[Z];try{Q()}catch(Y){throw Y}if(this.err)throw this.err;continue}this.processed++,this.inflight--;let X=this.profile?Date.now():0;yield $[Z],this.time=this.profile?Date.now()-X:0}if(this.done)break;else if(this.yields.length===0)$.length=0,this.yields=$,this.signal=(0,Ot0.deferred)()}}finally{this.didBreak=!0,this.stop()}}stop($){if(this.done)return;this.err=$,this.done=!0,this.signal.resolve(),this.iterClosed.resolve($)}getProcessed(){return this.noIterator?this.received:this.processed}getPending(){return this.yields.length+this.inflight-this.pendingFiltered}getReceived(){return this.received-this.filtered}}N0$.QueuedIteratorImpl=F0$});var Lt0=v((L0$)=>{Object.defineProperty(L0$,"__esModule",{value:!0});L0$.MuxSubscription=void 0;var o$4=AO(),B0$=OG();class O0${baseInbox;reqs;constructor(){this.reqs=new Map}size(){return this.reqs.size}init($){return this.baseInbox=`${(0,o$4.createInbox)($)}.`,this.baseInbox}add($){if(!isNaN($.received))$.received=0;this.reqs.set($.token,$)}get($){return this.reqs.get($)}cancel($){this.reqs.delete($.token)}getToken($){let Z=$.subject||"";if(Z.indexOf(this.baseInbox)===0)return Z.substring(this.baseInbox.length);return null}all(){return Array.from(this.reqs.values())}handleError($,Z){if($)return this.all().forEach((X)=>{X.resolver(Z,{})}),!0;if(Z.operation==="publish"){let X=this.all().find((Q)=>{return Q.requestSubject===Z.subject});if(X)return X.resolver(Z,{}),!0}return!1}dispatcher(){return($,Z)=>{let X=this.getToken(Z);if(X){let Q=this.get(X);if(Q){if($===null)$=Z?.data?.length===0&&Z.headers?.code===503?new B0$.NoRespondersError(Q.requestSubject):null;Q.resolver($,Z)}}}}close(){let $=new B0$.RequestError("connection closed");this.reqs.forEach((Z)=>{Z.resolver($,{})})}}L0$.MuxSubscription=O0$});var Dt0=v((E0$)=>{Object.defineProperty(E0$,"__esModule",{value:!0});E0$.Heartbeat=void 0;var r$4=s3();class w0${ph;interval;maxOut;timer;pendings;constructor($,Z,X){this.ph=$,this.interval=Z,this.maxOut=X,this.pendings=[]}start(){this.cancel(),this._schedule()}cancel($){if(this.timer)clearTimeout(this.timer),this.timer=void 0;if(this._reset(),$)this.ph.disconnect()}_schedule(){this.timer=setTimeout(()=>{if(this.ph.dispatchStatus({type:"ping",pendingPings:this.pendings.length+1}),this.pendings.length===this.maxOut){this.cancel(!0);return}let $=(0,r$4.deferred)();this.ph.flush($).then(()=>{this._reset()}).catch(()=>{this.cancel()}),this.pendings.push($),this._schedule()},this.interval)}_reset(){this.pendings=this.pendings.filter(($)=>{return $.resolve(),!1})}}E0$.Heartbeat=w0$});var jt0=v((T0$)=>{Object.defineProperty(T0$,"__esModule",{value:!0});T0$.DenoBuffer=T0$.MAX_SIZE=T0$.AssertionError=void 0;T0$.assert=P0$;T0$.concat=A0$;T0$.append=s$4;T0$.readAll=e$4;T0$.writeAll=$84;var a$4=BG();class wt0 extends Error{constructor($){super($);this.name="AssertionError"}}T0$.AssertionError=wt0;function P0$($,Z="Assertion failed."){if(!$)throw new wt0(Z)}var z0$=32768;T0$.MAX_SIZE=4294967294;function XX0($,Z,X=0){let Q=Z.byteLength-X;if($.byteLength>Q)$=$.subarray(0,Q);return Z.set($,X),$.byteLength}function A0$($,Z){if($===void 0&&Z===void 0)return new Uint8Array(0);if($===void 0)return Z;if(Z===void 0)return $;let X=new Uint8Array($.length+Z.length);return X.set($,0),X.set(Z,$.length),X}function s$4($,Z){return A0$($,Uint8Array.of(Z))}class Et0{_buf;_off;constructor($){if(this._off=0,$==null){this._buf=new Uint8Array(0);return}this._buf=new Uint8Array($)}bytes($={copy:!0}){if($.copy===!1)return this._buf.subarray(this._off);return this._buf.slice(this._off)}empty(){return this._buf.byteLength<=this._off}get length(){return this._buf.byteLength-this._off}get capacity(){return this._buf.buffer.byteLength}truncate($){if($===0){this.reset();return}if($<0||$>this.length)throw Error("bytes.Buffer: truncation out of range");this._reslice(this._off+$)}reset(){this._reslice(0),this._off=0}_tryGrowByReslice($){let Z=this._buf.byteLength;if($<=this.capacity-Z)return this._reslice(Z+$),Z;return-1}_reslice($){P0$($<=this._buf.buffer.byteLength),this._buf=new Uint8Array(this._buf.buffer,0,$)}readByte(){let $=new Uint8Array(1);if(this.read($))return $[0];return null}read($){if(this.empty()){if(this.reset(),$.byteLength===0)return 0;return null}let Z=XX0(this._buf.subarray(this._off),$);return this._off+=Z,Z}writeByte($){return this.write(Uint8Array.of($))}writeString($){return this.write(a$4.TE.encode($))}write($){let Z=this._grow($.byteLength);return XX0($,this._buf,Z)}_grow($){let Z=this.length;if(Z===0&&this._off!==0)this.reset();let X=this._tryGrowByReslice($);if(X>=0)return X;let Q=this.capacity;if($<=Math.floor(Q/2)-Z)XX0(this._buf.subarray(this._off),this._buf);else if(Q+$>T0$.MAX_SIZE)throw Error("The buffer cannot be grown beyond the maximum size.");else{let Y=new Uint8Array(Math.min(2*Q+$,T0$.MAX_SIZE));XX0(this._buf.subarray(this._off),Y),this._buf=Y}return this._off=0,this._reslice(Math.min(Z+$,T0$.MAX_SIZE)),Z}grow($){if($<0)throw Error("Buffer._grow: negative count");let Z=this._grow($);this._reslice(Z)}readFrom($){let Z=0,X=new Uint8Array(z0$);while(!0){let Q=this.capacity-this.length<z0$,Y=Q?X:new Uint8Array(this._buf.buffer,this.length),G=$.read(Y);if(G===null)return Z;if(Q)this.write(Y.subarray(0,G));else this._reslice(this.length+G);Z+=G}}}T0$.DenoBuffer=Et0;function e$4($){let Z=new Et0;return Z.readFrom($),Z.bytes()}function $84($,Z){let X=0;while(X<Z.length)X+=$.write(Z.subarray(X))}});var At0=v((V0$)=>{Object.defineProperty(V0$,"__esModule",{value:!0});V0$.cc=V0$.State=V0$.Parser=V0$.Kind=void 0;V0$.describe=K84;var zt0=jt0(),Pt0=BG();V0$.Kind={OK:0,ERR:1,MSG:2,INFO:3,PING:4,PONG:5};function K84($){let Z,X="";switch($.kind){case V0$.Kind.MSG:Z="MSG";break;case V0$.Kind.OK:Z="OK";break;case V0$.Kind.ERR:Z="ERR",X=Pt0.TD.decode($.data);break;case V0$.Kind.PING:Z="PING";break;case V0$.Kind.PONG:Z="PONG";break;case V0$.Kind.INFO:Z="INFO",X=Pt0.TD.decode($.data)}return`${Z}: ${X}`}function I0$(){let $={};return $.sid=-1,$.hdr=-1,$.size=-1,$}var q0$=48,W84=57,gy=67108864;class M0${dispatcher;state;as;drop;hdr;ma;argBuf;msgBuf;constructor($){this.dispatcher=$,this.state=V0$.State.OP_START,this.as=0,this.drop=0,this.hdr=0}parse($){let Z;for(Z=0;Z<$.length;Z++){let X=$[Z];switch(this.state){case V0$.State.OP_START:switch(X){case V0$.cc.M:case V0$.cc.m:this.state=V0$.State.OP_M,this.hdr=-1,this.ma=I0$();break;case V0$.cc.H:case V0$.cc.h:this.state=V0$.State.OP_H,this.hdr=0,this.ma=I0$();break;case V0$.cc.P:case V0$.cc.p:this.state=V0$.State.OP_P;break;case V0$.cc.PLUS:this.state=V0$.State.OP_PLUS;break;case V0$.cc.MINUS:this.state=V0$.State.OP_MINUS;break;case V0$.cc.I:case V0$.cc.i:this.state=V0$.State.OP_I;break;default:throw this.fail($.subarray(Z))}break;case V0$.State.OP_H:switch(X){case V0$.cc.M:case V0$.cc.m:this.state=V0$.State.OP_M;break;default:throw this.fail($.subarray(Z))}break;case V0$.State.OP_M:switch(X){case V0$.cc.S:case V0$.cc.s:this.state=V0$.State.OP_MS;break;default:throw this.fail($.subarray(Z))}break;case V0$.State.OP_MS:switch(X){case V0$.cc.G:case V0$.cc.g:this.state=V0$.State.OP_MSG;break;default:throw this.fail($.subarray(Z))}break;case V0$.State.OP_MSG:switch(X){case V0$.cc.SPACE:case V0$.cc.TAB:this.state=V0$.State.OP_MSG_SPC;break;default:throw this.fail($.subarray(Z))}break;case V0$.State.OP_MSG_SPC:switch(X){case V0$.cc.SPACE:case V0$.cc.TAB:continue;default:this.state=V0$.State.MSG_ARG,this.as=Z}break;case V0$.State.MSG_ARG:switch(X){case V0$.cc.CR:this.drop=1;break;case V0$.cc.NL:{let Q=this.argBuf?this.argBuf.bytes():$.subarray(this.as,Z-this.drop);this.processMsgArgs(Q),this.drop=0,this.as=Z+1,this.state=V0$.State.MSG_PAYLOAD,Z=this.as+this.ma.size-1;break}default:if(this.argBuf)this.argBuf.writeByte(X)}break;case V0$.State.MSG_PAYLOAD:if(this.msgBuf)if(this.msgBuf.length>=this.ma.size){let Q=this.msgBuf.bytes({copy:!1});this.dispatcher.push({kind:V0$.Kind.MSG,msg:this.ma,data:Q}),this.argBuf=void 0,this.msgBuf=void 0,this.state=V0$.State.MSG_END}else{let Q=this.ma.size-this.msgBuf.length,Y=$.length-Z;if(Y<Q)Q=Y;if(Q>0)this.msgBuf.write($.subarray(Z,Z+Q)),Z=Z+Q-1;else this.msgBuf.writeByte(X)}else if(Z-this.as>=this.ma.size)this.dispatcher.push({kind:V0$.Kind.MSG,msg:this.ma,data:$.subarray(this.as,Z)}),this.argBuf=void 0,this.msgBuf=void 0,this.state=V0$.State.MSG_END;break;case V0$.State.MSG_END:switch(X){case V0$.cc.NL:this.drop=0,this.as=Z+1,this.state=V0$.State.OP_START;break;default:continue}break;case V0$.State.OP_PLUS:switch(X){case V0$.cc.O:case V0$.cc.o:this.state=V0$.State.OP_PLUS_O;break;default:throw this.fail($.subarray(Z))}break;case V0$.State.OP_PLUS_O:switch(X){case V0$.cc.K:case V0$.cc.k:this.state=V0$.State.OP_PLUS_OK;break;default:throw this.fail($.subarray(Z))}break;case V0$.State.OP_PLUS_OK:switch(X){case V0$.cc.NL:this.dispatcher.push({kind:V0$.Kind.OK}),this.drop=0,this.state=V0$.State.OP_START;break}break;case V0$.State.OP_MINUS:switch(X){case V0$.cc.E:case V0$.cc.e:this.state=V0$.State.OP_MINUS_E;break;default:throw this.fail($.subarray(Z))}break;case V0$.State.OP_MINUS_E:switch(X){case V0$.cc.R:case V0$.cc.r:this.state=V0$.State.OP_MINUS_ER;break;default:throw this.fail($.subarray(Z))}break;case V0$.State.OP_MINUS_ER:switch(X){case V0$.cc.R:case V0$.cc.r:this.state=V0$.State.OP_MINUS_ERR;break;default:throw this.fail($.subarray(Z))}break;case V0$.State.OP_MINUS_ERR:switch(X){case V0$.cc.SPACE:case V0$.cc.TAB:this.state=V0$.State.OP_MINUS_ERR_SPC;break;default:throw this.fail($.subarray(Z))}break;case V0$.State.OP_MINUS_ERR_SPC:switch(X){case V0$.cc.SPACE:case V0$.cc.TAB:continue;default:this.state=V0$.State.MINUS_ERR_ARG,this.as=Z}break;case V0$.State.MINUS_ERR_ARG:switch(X){case V0$.cc.CR:this.drop=1;break;case V0$.cc.NL:{let Q;if(this.argBuf)Q=this.argBuf.bytes(),this.argBuf=void 0;else Q=$.subarray(this.as,Z-this.drop);this.dispatcher.push({kind:V0$.Kind.ERR,data:Q}),this.drop=0,this.as=Z+1,this.state=V0$.State.OP_START;break}default:if(this.argBuf)this.argBuf.write(Uint8Array.of(X))}break;case V0$.State.OP_P:switch(X){case V0$.cc.I:case V0$.cc.i:this.state=V0$.State.OP_PI;break;case V0$.cc.O:case V0$.cc.o:this.state=V0$.State.OP_PO;break;default:throw this.fail($.subarray(Z))}break;case V0$.State.OP_PO:switch(X){case V0$.cc.N:case V0$.cc.n:this.state=V0$.State.OP_PON;break;default:throw this.fail($.subarray(Z))}break;case V0$.State.OP_PON:switch(X){case V0$.cc.G:case V0$.cc.g:this.state=V0$.State.OP_PONG;break;default:throw this.fail($.subarray(Z))}break;case V0$.State.OP_PONG:switch(X){case V0$.cc.NL:this.dispatcher.push({kind:V0$.Kind.PONG}),this.drop=0,this.state=V0$.State.OP_START;break}break;case V0$.State.OP_PI:switch(X){case V0$.cc.N:case V0$.cc.n:this.state=V0$.State.OP_PIN;break;default:throw this.fail($.subarray(Z))}break;case V0$.State.OP_PIN:switch(X){case V0$.cc.G:case V0$.cc.g:this.state=V0$.State.OP_PING;break;default:throw this.fail($.subarray(Z))}break;case V0$.State.OP_PING:switch(X){case V0$.cc.NL:this.dispatcher.push({kind:V0$.Kind.PING}),this.drop=0,this.state=V0$.State.OP_START;break}break;case V0$.State.OP_I:switch(X){case V0$.cc.N:case V0$.cc.n:this.state=V0$.State.OP_IN;break;default:throw this.fail($.subarray(Z))}break;case V0$.State.OP_IN:switch(X){case V0$.cc.F:case V0$.cc.f:this.state=V0$.State.OP_INF;break;default:throw this.fail($.subarray(Z))}break;case V0$.State.OP_INF:switch(X){case V0$.cc.O:case V0$.cc.o:this.state=V0$.State.OP_INFO;break;default:throw this.fail($.subarray(Z))}break;case V0$.State.OP_INFO:switch(X){case V0$.cc.SPACE:case V0$.cc.TAB:this.state=V0$.State.OP_INFO_SPC;break;default:throw this.fail($.subarray(Z))}break;case V0$.State.OP_INFO_SPC:switch(X){case V0$.cc.SPACE:case V0$.cc.TAB:continue;default:this.state=V0$.State.INFO_ARG,this.as=Z}break;case V0$.State.INFO_ARG:switch(X){case V0$.cc.CR:this.drop=1;break;case V0$.cc.NL:{let Q;if(this.argBuf)Q=this.argBuf.bytes(),this.argBuf=void 0;else Q=$.subarray(this.as,Z-this.drop);this.dispatcher.push({kind:V0$.Kind.INFO,data:Q}),this.drop=0,this.as=Z+1,this.state=V0$.State.OP_START;break}default:if(this.argBuf)this.argBuf.writeByte(X)}break;default:throw this.fail($.subarray(Z))}}if((this.state===V0$.State.MSG_ARG||this.state===V0$.State.MINUS_ERR_ARG||this.state===V0$.State.INFO_ARG)&&!this.argBuf)this.argBuf=new zt0.DenoBuffer($.subarray(this.as,Z-this.drop));if(this.state===V0$.State.MSG_PAYLOAD&&!this.msgBuf){if(!this.argBuf)this.cloneMsgArg();this.msgBuf=new zt0.DenoBuffer($.subarray(this.as))}}cloneMsgArg(){let $=this.ma.subject.length,Z=this.ma.reply?this.ma.reply.length:0,X=new Uint8Array($+Z);if(X.set(this.ma.subject),this.ma.reply)X.set(this.ma.reply,$);if(this.argBuf=new zt0.DenoBuffer(X),this.ma.subject=X.subarray(0,$),this.ma.reply)this.ma.reply=X.subarray($)}processMsgArgs($){if(this.hdr>=0)return this.processHeaderMsgArgs($);let Z=[],X=-1;for(let Q=0;Q<$.length;Q++)switch($[Q]){case V0$.cc.SPACE:case V0$.cc.TAB:case V0$.cc.CR:case V0$.cc.NL:if(X>=0)Z.push($.subarray(X,Q)),X=-1;break;default:if(X<0)X=Q}if(X>=0)Z.push($.subarray(X));switch(Z.length){case 3:this.ma.subject=Z[0],this.ma.sid=this.protoParseInt(Z[1]),this.ma.reply=void 0,this.ma.size=this.protoParseInt(Z[2],gy);break;case 4:this.ma.subject=Z[0],this.ma.sid=this.protoParseInt(Z[1]),this.ma.reply=Z[2],this.ma.size=this.protoParseInt(Z[3],gy);break;default:throw this.fail($,"processMsgArgs Parse Error")}if(this.ma.sid<0)throw this.fail($,"processMsgArgs Bad or Missing Sid Error");if(this.ma.size<0)throw this.fail($,"processMsgArgs Bad or Missing Size Error")}fail($,Z=""){if(!Z)Z=`parse error [${this.state}]`;else Z=`${Z} [${this.state}]`;return Error(`${Z}: ${Pt0.TD.decode($)}`)}processHeaderMsgArgs($){let Z=[],X=-1;for(let Q=0;Q<$.length;Q++)switch($[Q]){case V0$.cc.SPACE:case V0$.cc.TAB:case V0$.cc.CR:case V0$.cc.NL:if(X>=0)Z.push($.subarray(X,Q)),X=-1;break;default:if(X<0)X=Q}if(X>=0)Z.push($.subarray(X));switch(Z.length){case 4:this.ma.subject=Z[0],this.ma.sid=this.protoParseInt(Z[1]),this.ma.reply=void 0,this.ma.hdr=this.protoParseInt(Z[2],gy),this.ma.size=this.protoParseInt(Z[3],gy);break;case 5:this.ma.subject=Z[0],this.ma.sid=this.protoParseInt(Z[1]),this.ma.reply=Z[2],this.ma.hdr=this.protoParseInt(Z[3],gy),this.ma.size=this.protoParseInt(Z[4],gy);break;default:throw this.fail($,"processHeaderMsgArgs Parse Error")}if(this.ma.sid<0)throw this.fail($,"processHeaderMsgArgs Bad or Missing Sid Error");if(this.ma.hdr<0||this.ma.hdr>this.ma.size)throw this.fail($,"processHeaderMsgArgs Bad or Missing Header Size Error");if(this.ma.size<0)throw this.fail($,"processHeaderMsgArgs Bad or Missing Size Error")}protoParseInt($,Z){if($.length===0||$.length>15)return-1;let X=0;for(let Q=0;Q<$.length;Q++){if($[Q]<q0$||$[Q]>W84)return-1;X=X*10+($[Q]-q0$)}return Z!==void 0&&X>Z?-1:X}}V0$.Parser=M0$;V0$.State={OP_START:0,OP_PLUS:1,OP_PLUS_O:2,OP_PLUS_OK:3,OP_MINUS:4,OP_MINUS_E:5,OP_MINUS_ER:6,OP_MINUS_ERR:7,OP_MINUS_ERR_SPC:8,MINUS_ERR_ARG:9,OP_M:10,OP_MS:11,OP_MSG:12,OP_MSG_SPC:13,MSG_ARG:14,MSG_PAYLOAD:15,MSG_END:16,OP_H:17,OP_P:18,OP_PI:19,OP_PIN:20,OP_PING:21,OP_PO:22,OP_PON:23,OP_PONG:24,OP_I:25,OP_IN:26,OP_INF:27,OP_INFO:28,OP_INFO_SPC:29,INFO_ARG:30};V0$.cc={CR:13,E:69,e:101,F:70,f:102,G:71,g:103,H:72,h:104,I:73,i:105,K:75,k:107,M:77,m:109,MINUS:45,N:78,n:110,NL:10,O:79,o:111,P:80,p:112,PLUS:43,R:82,r:114,S:83,s:115,SPACE:32,TAB:9}});var GX0=v((S0$)=>{Object.defineProperty(S0$,"__esModule",{value:!0});S0$.MsgHdrsImpl=void 0;S0$.canonicalMIMEHeaderKey=Rt0;S0$.headers=N84;var k0$=BG(),e3=AO(),YX0=OG();function Rt0($){let F=!0,N=Array($.length);for(let U=0;U<$.length;U++){let B=$.charCodeAt(U);if(B===58||B<33||B>126)throw YX0.InvalidArgumentError.format("header",`'${$[U]}' is not a valid character in a header name`);if(F&&97<=B&&B<=122)B-=32;else if(!F&&65<=B&&B<=90)B+=32;N[U]=B,F=B==45}return String.fromCharCode(...N)}function N84($=0,Z=""){if($===0&&Z!=="")throw YX0.InvalidArgumentError.format("code","is required");else if($>0&&Z==="")throw YX0.InvalidArgumentError.format("description","is required");return new hy($,Z)}var Tt0="NATS/1.0";class hy{_code;headers;_description;constructor($=0,Z=""){this._code=$,this._description=Z,this.headers=new Map}[Symbol.iterator](){return this.headers.entries()}size(){return this.headers.size}equals($){if($&&this.headers.size===$.headers.size&&this._code===$._code){for(let[Z,X]of this.headers){let Q=$.values(Z);if(X.length!==Q.length)return!1;let Y=[...X].sort(),G=[...Q].sort();for(let J=0;J<Y.length;J++)if(Y[J]!==G[J])return!1}return!0}return!1}static decode($){let Z=new hy,Q=k0$.TD.decode($).split(`\r
|
|
1513
1513
|
`),Y=Q[0];if(Y!==Tt0){let G=Y.replace(Tt0,"").trim();if(G.length>0){if(Z._code=parseInt(G,10),isNaN(Z._code))Z._code=0;let J=Z._code.toString();G=G.replace(J,""),Z._description=G.trim()}}if(Q.length>=1)Q.slice(1).map((G)=>{if(G){let J=G.indexOf(":");if(J>-1){let K=G.slice(0,J),W=G.slice(J+1).trim();Z.append(K,W)}}});return Z}toString(){if(this.headers.size===0&&this._code===0)return"";let $=Tt0;if(this._code>0&&this._description!=="")$+=` ${this._code} ${this._description}`;for(let[Z,X]of this.headers)for(let Q=0;Q<X.length;Q++)$=`${$}\r
|
|
1514
1514
|
${Z}: ${X[Q]}`;return`${$}\r
|