decocms 2.285.1 → 2.286.0
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-Ljx3VIeb.js → AlertCircle-DTmaHldD.js} +1 -1
- package/dist/client/assets/{ArrowNarrowLeft-B8YVT66M.js → ArrowNarrowLeft-DlPeFc4v.js} +1 -1
- package/dist/client/assets/{CheckCircle-BFRWTTWo.js → CheckCircle-DJ3lme5R.js} +1 -1
- package/dist/client/assets/{ChevronDown-BqFspEzt.js → ChevronDown-DGnjAtqs.js} +1 -1
- package/dist/client/assets/{ChevronRight-DCsBjQ-n.js → ChevronRight-DV9No7GF.js} +1 -1
- package/dist/client/assets/{ChevronUp-D7S3j_fa.js → ChevronUp-BkSgkwhO.js} +1 -1
- package/dist/client/assets/{Container-SHbLkl7K.js → Container-B1nHZdmn.js} +1 -1
- package/dist/client/assets/DotsVertical-Bp2tW8JI.js +1 -0
- package/dist/client/assets/{LinkExternal01-XmkIm96u.js → LinkExternal01-BBbCPDtX.js} +1 -1
- package/dist/client/assets/{Lock01-CXrm99F-.js → Lock01-DpPIS3K7.js} +1 -1
- package/dist/client/assets/{Palette-B46VjX8F.js → Palette-CI8n49a8.js} +1 -1
- package/dist/client/assets/{Play-9pX5w5-3.js → Play-DKFUTU3G.js} +1 -1
- package/dist/client/assets/{Plus-Bmk1thjl.js → Plus-oXFwCrYz.js} +1 -1
- package/dist/client/assets/RefreshCcw01-B10mKiE2.js +1 -0
- package/dist/client/assets/SearchMd-BRJBvWf4.js +1 -0
- package/dist/client/assets/{Settings02-C88OtRRq.js → Settings02-Dm9dFDqk.js} +1 -1
- package/dist/client/assets/Shield01-BZJVBd5S.js +1 -0
- package/dist/client/assets/{Star01-fuGmPeeu.js → Star01-_IJK5Yjt.js} +1 -1
- package/dist/client/assets/{Sun-ndN_CHuQ.js → Sun-QqE1VnS_.js} +1 -1
- package/dist/client/assets/{Tool01-DBxgF1Y_.js → Tool01-CKowkGsd.js} +1 -1
- package/dist/client/assets/{Trash01-BHBjIGXE.js → Trash01-C6bAXG6g.js} +1 -1
- package/dist/client/assets/{User01-DCiwOMBU.js → User01-C2-anwoO.js} +1 -1
- package/dist/client/assets/{Users03-Bgfd1KM0.js → Users03-DqYvPeZM.js} +1 -1
- package/dist/client/assets/{X-BWV-b86T.js → X-i9zBn6Hn.js} +1 -1
- package/dist/client/assets/XCircle-C1sJYG9R.js +1 -0
- package/dist/client/assets/XClose-BbIo6xHe.js +1 -0
- package/dist/client/assets/{Zap-K9sQXDlC.js → Zap-KmbRMccM.js} +1 -1
- package/dist/client/assets/{ZapSquare-CTcr_tRy.js → ZapSquare-DT93lGV4.js} +1 -1
- package/dist/client/assets/{accordion-COmeMo5z.js → accordion-BV3tm7bj.js} +1 -1
- package/dist/client/assets/agent-icon-CyE6nkC1.js +1 -0
- package/dist/client/assets/agents-list-7o6gZt-q.js +1 -0
- package/dist/client/assets/ai-providers-DI3UF9nU.js +1 -0
- package/dist/client/assets/{alert-dialog-DaP8t8su.js → alert-dialog-CicrCOay.js} +2 -2
- package/dist/client/assets/{auth-catchall-CerK6T4u.js → auth-catchall-Cyd7fWQv.js} +1 -1
- package/dist/client/assets/automation-list-row-B4Vfg4UC.js +1 -0
- package/dist/client/assets/automations-DRM_lJom.js +1 -0
- package/dist/client/assets/{avatar-gTIcZioB.js → avatar-CF1bgUpD.js} +1 -1
- package/dist/client/assets/{badge-DsWPcX1V.js → badge-s_TAXGUN.js} +1 -1
- package/dist/client/assets/{brand-context-CnnwTWNT.js → brand-context-iopLFZ2k.js} +1 -1
- package/dist/client/assets/{card-CPVRwbgl.js → card-CaekC2K0.js} +1 -1
- package/dist/client/assets/{chat-context-CZAEwDWp.js → chat-context-DP5UfIrn.js} +1 -1
- package/dist/client/assets/{checkbox-CPqdqI54.js → checkbox-DznLgPgR.js} +1 -1
- package/dist/client/assets/collection-detail-CTQuhG7N.js +1 -0
- package/dist/client/assets/collection-display-button-BgYKhoGQ.js +1 -0
- package/dist/client/assets/{collection-search-DgokupF2.js → collection-search-Bo2bOvRn.js} +1 -1
- package/dist/client/assets/{collection-search-lfil19IA.js → collection-search-DMqppne6.js} +1 -1
- package/dist/client/assets/collection-table-wrapper-KnWZIddd.js +1 -0
- package/dist/client/assets/{collection-tabs-BRY4wHvH.js → collection-tabs-CU6MCzSn.js} +1 -1
- package/dist/client/assets/{collections-lJhN2k9k.js → collections-DHmXATua.js} +1 -1
- package/dist/client/assets/command-D4w2xkZT.js +1 -0
- package/dist/client/assets/{connection-card-BrctpSfE.js → connection-card-DBz-rrLk.js} +1 -1
- package/dist/client/assets/connection-detail-zHqb5ZSw.js +1 -0
- package/dist/client/assets/{connection-form-helpers-C1FnnBdL.js → connection-form-helpers-CBEV0IXi.js} +1 -1
- package/dist/client/assets/connections-CHiGbl1F.js +1 -0
- package/dist/client/assets/{constants-D8VkIs2c.js → constants-DDHDU3PV.js} +1 -1
- package/dist/client/assets/{constants-D_Nupw5-.js → constants-v4RUVkEN.js} +1 -1
- package/dist/client/assets/{dialog-BOagZAx2.js → dialog-C4lREl-t.js} +1 -1
- package/dist/client/assets/{drawer-BRUzFEdi.js → drawer-BTCEaGGQ.js} +1 -1
- package/dist/client/assets/dropdown-menu-v2GifVOh.js +1 -0
- package/dist/client/assets/{dynamic-plugin-layout-ltkevohS.js → dynamic-plugin-layout-CVBBnlEt.js} +1 -1
- package/dist/client/assets/{empty-state-BokLRSGE.js → empty-state-BdQTFnZA.js} +1 -1
- package/dist/client/assets/{empty-state-DCK4Z2GX.js → empty-state-DdKZ_is7.js} +1 -1
- package/dist/client/assets/{extract-connection-data-V-eInhlP.js → extract-connection-data-CfXvFcGA.js} +1 -1
- package/dist/client/assets/{features-DIBFVG_b.js → features-fsR9zLkr.js} +1 -1
- package/dist/client/assets/{form-DHQjt1Tk.js → form-D7DN8UcB.js} +1 -1
- package/dist/client/assets/general-WQbdllPl.js +1 -0
- package/dist/client/assets/{github-repo-picker-CIYxcUMn.js → github-repo-picker-DZqLC6FL.js} +2 -2
- package/dist/client/assets/index-BCwsJqWc.css +1 -0
- package/dist/client/assets/{index-sYNl3b-7.js → index-C5AR7k1c.js} +1 -1
- package/dist/client/assets/{index-DWOvEgKr.js → index-CHKi_s_a.js} +1 -1
- package/dist/client/assets/{index-DvxSs9Po.js → index-D-RCnwJQ.js} +1 -1
- package/dist/client/assets/{index-CNolBSVE.js → index-D34n6J5J.js} +22 -22
- package/dist/client/assets/{index-DbNFtLRR.js → index-DBclwIf_.js} +3 -3
- package/dist/client/assets/{index-Di0ylaLI.js → index-DnJZfbsP.js} +3 -3
- package/dist/client/assets/{index-uSGXbgq4.js → index-FnxI6OGR.js} +1 -1
- package/dist/client/assets/{index-BWvVdWtP.js → index-e3AFJ_dX.js} +1 -1
- package/dist/client/assets/{index-gfedyrlZ.js → index-qXZ0t4XR.js} +16 -16
- package/dist/client/assets/{index-PT6VRyBL.js → index-zDq2Zqio.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-B8q-YDXm.js → infiniteQueryObserver-1_M-sq16.js} +1 -1
- package/dist/client/assets/{input-B8j75XZ_.js → input-urtyHxks.js} +1 -1
- package/dist/client/assets/{integration-icon-De50Mm7k.js → integration-icon-Cdkk9YPE.js} +1 -1
- package/dist/client/assets/{label-KH35YAYU.js → label-Bt4h_QUk.js} +1 -1
- package/dist/client/assets/{layout-E2py7rYQ.js → layout-B5SDe6IW.js} +1 -1
- package/dist/client/assets/{login-agOBj-o2.js → login-7zFMf3C1.js} +1 -1
- package/dist/client/assets/members-Dy7hWkQ8.js +3 -0
- package/dist/client/assets/{monaco-editor-CzAT2DWn.js → monaco-editor-lveN-AoO.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-k0blCMgl.js → monitoring-stats-row-D3x0_phM.js} +1 -1
- package/dist/client/assets/{oauth-callback-ViEW-3g2.js → oauth-callback-BJALVgfT.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-cSZy9hW7.js → oauth-callback-ai-provider-o8Hfz-wL.js} +1 -1
- package/dist/client/assets/{onboarding-CquRdW5q.js → onboarding-DlI3PsIA.js} +1 -1
- package/dist/client/assets/{org-layout-DY9vqUg9.js → org-layout-DPzm8vzJ.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-HyePbhDN.js → org-plugin-layout-DB72TzxO.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-tSKwN8yW.js → plugin-empty-state-BzyxU1IF.js} +1 -1
- package/dist/client/assets/{plugin-header-CgMEgROC.js → plugin-header-hJH6-4Nr.js} +1 -1
- package/dist/client/assets/{plugin-layout-B0f9qTk_.js → plugin-layout-l_MDXBYc.js} +1 -1
- package/dist/client/assets/{popover-BK6PL-XB.js → popover-j_PzMtdY.js} +1 -1
- package/dist/client/assets/{profile-C_xBhvj7.js → profile-lf_QL3Ye.js} +1 -1
- package/dist/client/assets/project-app-view-DuFzKNXE.js +1 -0
- package/dist/client/assets/registry-D3m_WKwq.js +2 -0
- package/dist/client/assets/{registry-layout-7nSgT8Ua.js → registry-layout-DRb_iR_v.js} +3 -3
- package/dist/client/assets/{required-auth-layout-D-NWWr5P.js → required-auth-layout-C2o7AZ4K.js} +1 -1
- package/dist/client/assets/{reset-password-C7m0cAdE.js → reset-password-DTEY3I_i.js} +1 -1
- package/dist/client/assets/roles-DW1_Kn6r.js +1 -0
- package/dist/client/assets/{scroll-area-Da2hNrch.js → scroll-area-BebfgLv6.js} +1 -1
- package/dist/client/assets/{search-input-BZmdDW7A.js → search-input-dmuYGYsk.js} +1 -1
- package/dist/client/assets/{select-JPYD20it.js → select-CePxsPeP.js} +1 -1
- package/dist/client/assets/{select-model-DMVU-2Gx.js → select-model-QQ7yjZl9.js} +2 -2
- package/dist/client/assets/settings-layout-Cd1tdTnr.js +1 -0
- package/dist/client/assets/{shell-layout-DkN8Q_tp.js → shell-layout-BE22YA40.js} +1 -1
- package/dist/client/assets/{skeleton-DPqifXUx.js → skeleton-C9NsUzIb.js} +1 -1
- package/dist/client/assets/{sso-BdiVJFM8.js → sso-QSGlyP2n.js} +1 -1
- package/dist/client/assets/{store-D9lb1Gph.js → store-BB9yi6PD.js} +1 -1
- package/dist/client/assets/store-registry-BSp-W72J.js +2 -0
- package/dist/client/assets/{switch-CVtXvreH.js → switch-VBeL01bM.js} +1 -1
- package/dist/client/assets/{table-C-JSrHQJ.js → table-CQMW-Toa.js} +1 -1
- package/dist/client/assets/{tabs-DtgWLQ6i.js → tabs-DOoLL5wa.js} +1 -1
- package/dist/client/assets/{task-status-DTuLfGhm.js → task-status-vvRP86lz.js} +7 -7
- package/dist/client/assets/{textarea-p_oNKH-r.js → textarea-Ie4QUdo5.js} +1 -1
- package/dist/client/assets/{toggle-group-B6-etMEh.js → toggle-group-C077Smww.js} +1 -1
- package/dist/client/assets/tools-list-UnPsMGhr.js +1 -0
- package/dist/client/assets/{types-BP7V6N8z.js → types-D4PfKOFF.js} +1 -1
- package/dist/client/assets/{use-ai-providers-oN1cKhaJ.js → use-ai-providers-DHuVj1kn.js} +1 -1
- package/dist/client/assets/{use-collections-BTXUmiDi.js → use-collections-DRlHpXQL.js} +1 -1
- package/dist/client/assets/{use-connection-DIvNoxL5.js → use-connection-Cif-LY0f.js} +1 -1
- package/dist/client/assets/{use-copy-D8L6lrfC.js → use-copy-uiSuMvtc.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-DUKkySGS.js → use-create-virtual-mcp-CBpw3zXA.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-BRc3SX00.js → use-decopilot-events-Dpt6CcIN.js} +1 -1
- package/dist/client/assets/{use-delete-connection-IDpzSpRp.js → use-delete-connection-BZmW9ZAz.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-WKRKMI2J.js → use-infinite-scroll-CWlV3gJA.js} +1 -1
- package/dist/client/assets/{use-list-state-Dyh2zhb9.js → use-list-state-BJZWeXjY.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-tZ37UBLL.js → use-mcp-tools-BYVtg7WH.js} +1 -1
- package/dist/client/assets/{use-members-AvAHjkiq.js → use-members-M_p47epa.js} +1 -1
- package/dist/client/assets/{use-mobile-Ctb5URy7.js → use-mobile-CxvYCzu9.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-CLfSU3ru.js → use-navigate-to-agent-CFIKBq0L.js} +1 -1
- package/dist/client/assets/{use-org-sso-CmuM4ieo.js → use-org-sso-CACnH9GQ.js} +1 -1
- package/dist/client/assets/use-organization-roles-o4lVU0iD.js +1 -0
- package/dist/client/assets/{use-organization-settings-dQpmtQzl.js → use-organization-settings-BD9CIHH5.js} +1 -1
- package/dist/client/assets/{use-registry-connections-CP0QI7iA.js → use-registry-connections-DR_etJ2H.js} +1 -1
- package/dist/client/assets/{use-status-sounds-CObwI0DY.js → use-status-sounds-Ce7WandB.js} +1 -1
- package/dist/client/assets/{use-tasks-7rX1bsHL.js → use-tasks-Dpp1DK1f.js} +1 -1
- package/dist/client/assets/{use-view-mode-BkbloGkm.js → use-view-mode-CZPzVaxj.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-CDOk_IIy.js → use-virtual-mcp-0vHwLInn.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-B4w-6TrV.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-WURyRq6p.js +1 -0
- package/dist/client/assets/{user-lj8QRtGG.js → user-xj80BAo3.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-BiPtlB_S.js → view-mode-toggle-D5CGwPOj.js} +1 -1
- package/dist/client/assets/workflow-CD_DiE5j.js +1 -0
- package/dist/client/assets/workflow-detail-CxWEb-ID.js +1 -0
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +2 -2
- package/dist/server/node_modules/figures/index.d.ts +279 -0
- package/dist/server/node_modules/figures/index.js +292 -0
- package/dist/server/node_modules/figures/license +9 -0
- package/dist/server/node_modules/figures/package.json +49 -0
- package/dist/server/node_modules/figures/readme.md +337 -0
- package/dist/server/node_modules/ink/build/ansi-tokenizer.d.ts +38 -0
- package/dist/server/node_modules/ink/build/ansi-tokenizer.js +316 -0
- package/dist/server/node_modules/ink/build/ansi-tokenizer.js.map +1 -0
- package/dist/server/node_modules/ink/build/apply-styles.js +175 -0
- package/dist/server/node_modules/ink/build/build-layout.js +77 -0
- package/dist/server/node_modules/ink/build/calculate-wrapped-text.js +53 -0
- package/dist/server/node_modules/ink/build/colorize.d.ts +3 -0
- package/dist/server/node_modules/ink/build/colorize.js +48 -0
- package/dist/server/node_modules/ink/build/colorize.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/AccessibilityContext.d.ts +3 -0
- package/dist/server/node_modules/ink/build/components/AccessibilityContext.js +5 -0
- package/dist/server/node_modules/ink/build/components/AccessibilityContext.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/App.d.ts +18 -0
- package/dist/server/node_modules/ink/build/components/App.js +351 -0
- package/dist/server/node_modules/ink/build/components/App.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/AppContext.d.ts +15 -0
- package/dist/server/node_modules/ink/build/components/AppContext.js +11 -0
- package/dist/server/node_modules/ink/build/components/AppContext.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/BackgroundContext.d.ts +4 -0
- package/dist/server/node_modules/ink/build/components/BackgroundContext.js +3 -0
- package/dist/server/node_modules/ink/build/components/BackgroundContext.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/Box.d.ts +117 -0
- package/dist/server/node_modules/ink/build/components/Box.js +34 -0
- package/dist/server/node_modules/ink/build/components/Box.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/Color.js +62 -0
- package/dist/server/node_modules/ink/build/components/Cursor.d.ts +83 -0
- package/dist/server/node_modules/ink/build/components/Cursor.js +53 -0
- package/dist/server/node_modules/ink/build/components/Cursor.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/CursorContext.d.ts +11 -0
- package/dist/server/node_modules/ink/build/components/CursorContext.js +8 -0
- package/dist/server/node_modules/ink/build/components/CursorContext.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/ErrorBoundary.d.ts +18 -0
- package/dist/server/node_modules/ink/build/components/ErrorBoundary.js +23 -0
- package/dist/server/node_modules/ink/build/components/ErrorBoundary.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/ErrorOverview.d.ts +6 -0
- package/dist/server/node_modules/ink/build/components/ErrorOverview.js +84 -0
- package/dist/server/node_modules/ink/build/components/ErrorOverview.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/FocusContext.d.ts +16 -0
- package/dist/server/node_modules/ink/build/components/FocusContext.js +17 -0
- package/dist/server/node_modules/ink/build/components/FocusContext.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/Newline.d.ts +13 -0
- package/dist/server/node_modules/ink/build/components/Newline.js +8 -0
- package/dist/server/node_modules/ink/build/components/Newline.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/Spacer.d.ts +7 -0
- package/dist/server/node_modules/ink/build/components/Spacer.js +11 -0
- package/dist/server/node_modules/ink/build/components/Spacer.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/Static.d.ts +24 -0
- package/dist/server/node_modules/ink/build/components/Static.js +28 -0
- package/dist/server/node_modules/ink/build/components/Static.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/StderrContext.d.ts +15 -0
- package/dist/server/node_modules/ink/build/components/StderrContext.js +13 -0
- package/dist/server/node_modules/ink/build/components/StderrContext.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/StdinContext.d.ts +22 -0
- package/dist/server/node_modules/ink/build/components/StdinContext.js +19 -0
- package/dist/server/node_modules/ink/build/components/StdinContext.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/StdoutContext.d.ts +15 -0
- package/dist/server/node_modules/ink/build/components/StdoutContext.js +13 -0
- package/dist/server/node_modules/ink/build/components/StdoutContext.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/Text.d.ts +55 -0
- package/dist/server/node_modules/ink/build/components/Text.js +50 -0
- package/dist/server/node_modules/ink/build/components/Text.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/Transform.d.ts +16 -0
- package/dist/server/node_modules/ink/build/components/Transform.js +15 -0
- package/dist/server/node_modules/ink/build/components/Transform.js.map +1 -0
- package/dist/server/node_modules/ink/build/cursor-helpers.d.ts +38 -0
- package/dist/server/node_modules/ink/build/cursor-helpers.js +56 -0
- package/dist/server/node_modules/ink/build/cursor-helpers.js.map +1 -0
- package/dist/server/node_modules/ink/build/devtools-window-polyfill.d.ts +1 -0
- package/dist/server/node_modules/ink/build/devtools-window-polyfill.js +65 -0
- package/dist/server/node_modules/ink/build/devtools-window-polyfill.js.map +1 -0
- package/dist/server/node_modules/ink/build/devtools.d.ts +1 -0
- package/dist/server/node_modules/ink/build/devtools.js +11 -0
- package/dist/server/node_modules/ink/build/devtools.js.map +1 -0
- package/dist/server/node_modules/ink/build/dom.d.ts +56 -0
- package/dist/server/node_modules/ink/build/dom.js +124 -0
- package/dist/server/node_modules/ink/build/dom.js.map +1 -0
- package/dist/server/node_modules/ink/build/experimental/apply-style.js +140 -0
- package/dist/server/node_modules/ink/build/experimental/dom.js +123 -0
- package/dist/server/node_modules/ink/build/experimental/output.js +91 -0
- package/dist/server/node_modules/ink/build/experimental/reconciler.js +141 -0
- package/dist/server/node_modules/ink/build/experimental/renderer.js +81 -0
- package/dist/server/node_modules/ink/build/get-max-width.d.ts +3 -0
- package/dist/server/node_modules/ink/build/get-max-width.js +10 -0
- package/dist/server/node_modules/ink/build/get-max-width.js.map +1 -0
- package/dist/server/node_modules/ink/build/hooks/use-app.d.ts +5 -0
- package/dist/server/node_modules/ink/build/hooks/use-app.js +8 -0
- package/dist/server/node_modules/ink/build/hooks/use-app.js.map +1 -0
- package/dist/server/node_modules/ink/build/hooks/use-cursor.d.ts +12 -0
- package/dist/server/node_modules/ink/build/hooks/use-cursor.js +29 -0
- package/dist/server/node_modules/ink/build/hooks/use-cursor.js.map +1 -0
- package/dist/server/node_modules/ink/build/hooks/use-focus-manager.d.ts +28 -0
- package/dist/server/node_modules/ink/build/hooks/use-focus-manager.js +17 -0
- package/dist/server/node_modules/ink/build/hooks/use-focus-manager.js.map +1 -0
- package/dist/server/node_modules/ink/build/hooks/use-focus.d.ts +29 -0
- package/dist/server/node_modules/ink/build/hooks/use-focus.js +42 -0
- package/dist/server/node_modules/ink/build/hooks/use-focus.js.map +1 -0
- package/dist/server/node_modules/ink/build/hooks/use-input.d.ts +131 -0
- package/dist/server/node_modules/ink/build/hooks/use-input.js +124 -0
- package/dist/server/node_modules/ink/build/hooks/use-input.js.map +1 -0
- package/dist/server/node_modules/ink/build/hooks/use-is-screen-reader-enabled.d.ts +5 -0
- package/dist/server/node_modules/ink/build/hooks/use-is-screen-reader-enabled.js +11 -0
- package/dist/server/node_modules/ink/build/hooks/use-is-screen-reader-enabled.js.map +1 -0
- package/dist/server/node_modules/ink/build/hooks/use-stderr.d.ts +5 -0
- package/dist/server/node_modules/ink/build/hooks/use-stderr.js +8 -0
- package/dist/server/node_modules/ink/build/hooks/use-stderr.js.map +1 -0
- package/dist/server/node_modules/ink/build/hooks/use-stdin.d.ts +5 -0
- package/dist/server/node_modules/ink/build/hooks/use-stdin.js +8 -0
- package/dist/server/node_modules/ink/build/hooks/use-stdin.js.map +1 -0
- package/dist/server/node_modules/ink/build/hooks/use-stdout.d.ts +5 -0
- package/dist/server/node_modules/ink/build/hooks/use-stdout.js +8 -0
- package/dist/server/node_modules/ink/build/hooks/use-stdout.js.map +1 -0
- package/dist/server/node_modules/ink/build/hooks/useInput.js +38 -0
- package/dist/server/node_modules/ink/build/index.d.ts +34 -0
- package/dist/server/node_modules/ink/build/index.js +20 -0
- package/dist/server/node_modules/ink/build/index.js.map +1 -0
- package/dist/server/node_modules/ink/build/ink.d.ts +90 -0
- package/dist/server/node_modules/ink/build/ink.js +637 -0
- package/dist/server/node_modules/ink/build/ink.js.map +1 -0
- package/dist/server/node_modules/ink/build/input-parser.d.ts +7 -0
- package/dist/server/node_modules/ink/build/input-parser.js +154 -0
- package/dist/server/node_modules/ink/build/input-parser.js.map +1 -0
- package/dist/server/node_modules/ink/build/instance.js +205 -0
- package/dist/server/node_modules/ink/build/instances.d.ts +3 -0
- package/dist/server/node_modules/ink/build/instances.js +8 -0
- package/dist/server/node_modules/ink/build/instances.js.map +1 -0
- package/dist/server/node_modules/ink/build/kitty-keyboard.d.ts +23 -0
- package/dist/server/node_modules/ink/build/kitty-keyboard.js +32 -0
- package/dist/server/node_modules/ink/build/kitty-keyboard.js.map +1 -0
- package/dist/server/node_modules/ink/build/layout.d.ts +7 -0
- package/dist/server/node_modules/ink/build/layout.js +33 -0
- package/dist/server/node_modules/ink/build/layout.js.map +1 -0
- package/dist/server/node_modules/ink/build/log-update.d.ts +19 -0
- package/dist/server/node_modules/ink/build/log-update.js +242 -0
- package/dist/server/node_modules/ink/build/log-update.js.map +1 -0
- package/dist/server/node_modules/ink/build/measure-element.d.ts +16 -0
- package/dist/server/node_modules/ink/build/measure-element.js +9 -0
- package/dist/server/node_modules/ink/build/measure-element.js.map +1 -0
- package/dist/server/node_modules/ink/build/measure-text.d.ts +6 -0
- package/dist/server/node_modules/ink/build/measure-text.js +21 -0
- package/dist/server/node_modules/ink/build/measure-text.js.map +1 -0
- package/dist/server/node_modules/ink/build/options.d.ts +52 -0
- package/dist/server/node_modules/ink/build/options.js +2 -0
- package/dist/server/node_modules/ink/build/options.js.map +1 -0
- package/dist/server/node_modules/ink/build/output.d.ts +35 -0
- package/dist/server/node_modules/ink/build/output.js +183 -0
- package/dist/server/node_modules/ink/build/output.js.map +1 -0
- package/dist/server/node_modules/ink/build/parse-keypress.d.ts +22 -0
- package/dist/server/node_modules/ink/build/parse-keypress.js +493 -0
- package/dist/server/node_modules/ink/build/parse-keypress.js.map +1 -0
- package/dist/server/node_modules/ink/build/reconciler.d.ts +4 -0
- package/dist/server/node_modules/ink/build/reconciler.js +274 -0
- package/dist/server/node_modules/ink/build/reconciler.js.map +1 -0
- package/dist/server/node_modules/ink/build/render-background.d.ts +4 -0
- package/dist/server/node_modules/ink/build/render-background.js +25 -0
- package/dist/server/node_modules/ink/build/render-background.js.map +1 -0
- package/dist/server/node_modules/ink/build/render-border.d.ts +4 -0
- package/dist/server/node_modules/ink/build/render-border.js +73 -0
- package/dist/server/node_modules/ink/build/render-border.js.map +1 -0
- package/dist/server/node_modules/ink/build/render-node-to-output.d.ts +14 -0
- package/dist/server/node_modules/ink/build/render-node-to-output.js +147 -0
- package/dist/server/node_modules/ink/build/render-node-to-output.js.map +1 -0
- package/dist/server/node_modules/ink/build/render-to-string.d.ts +38 -0
- package/dist/server/node_modules/ink/build/render-to-string.js +115 -0
- package/dist/server/node_modules/ink/build/render-to-string.js.map +1 -0
- package/dist/server/node_modules/ink/build/render.d.ts +121 -0
- package/dist/server/node_modules/ink/build/render.js +55 -0
- package/dist/server/node_modules/ink/build/render.js.map +1 -0
- package/dist/server/node_modules/ink/build/renderer.d.ts +8 -0
- package/dist/server/node_modules/ink/build/renderer.js +55 -0
- package/dist/server/node_modules/ink/build/renderer.js.map +1 -0
- package/dist/server/node_modules/ink/build/sanitize-ansi.d.ts +2 -0
- package/dist/server/node_modules/ink/build/sanitize-ansi.js +27 -0
- package/dist/server/node_modules/ink/build/sanitize-ansi.js.map +1 -0
- package/dist/server/node_modules/ink/build/screen-reader-update.d.ts +13 -0
- package/dist/server/node_modules/ink/build/screen-reader-update.js +38 -0
- package/dist/server/node_modules/ink/build/screen-reader-update.js.map +1 -0
- package/dist/server/node_modules/ink/build/squash-text-nodes.d.ts +3 -0
- package/dist/server/node_modules/ink/build/squash-text-nodes.js +36 -0
- package/dist/server/node_modules/ink/build/squash-text-nodes.js.map +1 -0
- package/dist/server/node_modules/ink/build/styles.d.ts +240 -0
- package/dist/server/node_modules/ink/build/styles.js +232 -0
- package/dist/server/node_modules/ink/build/styles.js.map +1 -0
- package/dist/server/node_modules/ink/build/utils.d.ts +2 -0
- package/dist/server/node_modules/ink/build/utils.js +4 -0
- package/dist/server/node_modules/ink/build/utils.js.map +1 -0
- package/dist/server/node_modules/ink/build/wrap-text.d.ts +3 -0
- package/dist/server/node_modules/ink/build/wrap-text.js +31 -0
- package/dist/server/node_modules/ink/build/wrap-text.js.map +1 -0
- package/dist/server/node_modules/ink/build/write-synchronized.d.ts +4 -0
- package/dist/server/node_modules/ink/build/write-synchronized.js +7 -0
- package/dist/server/node_modules/ink/build/write-synchronized.js.map +1 -0
- package/dist/server/node_modules/ink/license +10 -0
- package/dist/server/node_modules/ink/package.json +201 -0
- package/dist/server/node_modules/ink/readme.md +2636 -0
- package/dist/server/node_modules/onetime/index.d.ts +64 -0
- package/dist/server/node_modules/onetime/index.js +44 -0
- package/dist/server/node_modules/onetime/license +9 -0
- package/dist/server/node_modules/onetime/package.json +43 -0
- package/dist/server/node_modules/onetime/readme.md +94 -0
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/SearchMd-VdXbz8fL.js +0 -1
- package/dist/client/assets/XCircle-BiHPX6_R.js +0 -1
- package/dist/client/assets/agent-icon-DCE-D-qC.js +0 -1
- package/dist/client/assets/agents-list-8_yOp3iD.js +0 -1
- package/dist/client/assets/ai-providers-DxQNSEJT.js +0 -1
- package/dist/client/assets/automation-list-row-BWjwKsQ5.js +0 -1
- package/dist/client/assets/automations-D6LOd0hH.js +0 -1
- package/dist/client/assets/collection-detail-BTibo6D3.js +0 -1
- package/dist/client/assets/collection-display-button-CfjJ9SIP.js +0 -1
- package/dist/client/assets/collection-table-wrapper-B4l_6tOy.js +0 -1
- package/dist/client/assets/command-BPSv-8-5.js +0 -1
- package/dist/client/assets/connection-detail-DgKIsKao.js +0 -1
- package/dist/client/assets/connections-rM_I7gvv.js +0 -1
- package/dist/client/assets/dropdown-menu-DO26Q0bD.js +0 -1
- package/dist/client/assets/general-VnUbEBHT.js +0 -1
- package/dist/client/assets/index-DeSgX7LP.css +0 -1
- package/dist/client/assets/members-6PieW-Nu.js +0 -3
- package/dist/client/assets/project-app-view-EMrqjiux.js +0 -1
- package/dist/client/assets/registry-CYL2cMC0.js +0 -2
- package/dist/client/assets/settings-layout-hwviWS6Q.js +0 -1
- package/dist/client/assets/store-registry-DAeO63_G.js +0 -2
- package/dist/client/assets/tools-list-C0RCBhOc.js +0 -1
- package/dist/client/assets/useInfiniteQuery-Ci00Hw-m.js +0 -1
- package/dist/client/assets/workflow-BrBlpNSn.js +0 -1
- package/dist/client/assets/workflow-detail-NqGVn5hy.js +0 -1
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
declare namespace onetime {
|
|
2
|
+
interface Options {
|
|
3
|
+
/**
|
|
4
|
+
Throw an error when called more than once.
|
|
5
|
+
|
|
6
|
+
@default false
|
|
7
|
+
*/
|
|
8
|
+
throw?: boolean;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare const onetime: {
|
|
13
|
+
/**
|
|
14
|
+
Ensure a function is only called once. When called multiple times it will return the return value from the first call.
|
|
15
|
+
|
|
16
|
+
@param fn - Function that should only be called once.
|
|
17
|
+
@returns A function that only calls `fn` once.
|
|
18
|
+
|
|
19
|
+
@example
|
|
20
|
+
```
|
|
21
|
+
import onetime = require('onetime');
|
|
22
|
+
|
|
23
|
+
let i = 0;
|
|
24
|
+
|
|
25
|
+
const foo = onetime(() => ++i);
|
|
26
|
+
|
|
27
|
+
foo(); //=> 1
|
|
28
|
+
foo(); //=> 1
|
|
29
|
+
foo(); //=> 1
|
|
30
|
+
|
|
31
|
+
onetime.callCount(foo); //=> 3
|
|
32
|
+
```
|
|
33
|
+
*/
|
|
34
|
+
<ArgumentsType extends unknown[], ReturnType>(
|
|
35
|
+
fn: (...arguments: ArgumentsType) => ReturnType,
|
|
36
|
+
options?: onetime.Options
|
|
37
|
+
): (...arguments: ArgumentsType) => ReturnType;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
Get the number of times `fn` has been called.
|
|
41
|
+
|
|
42
|
+
@param fn - Function to get call count from.
|
|
43
|
+
@returns A number representing how many times `fn` has been called.
|
|
44
|
+
|
|
45
|
+
@example
|
|
46
|
+
```
|
|
47
|
+
import onetime = require('onetime');
|
|
48
|
+
|
|
49
|
+
const foo = onetime(() => {});
|
|
50
|
+
foo();
|
|
51
|
+
foo();
|
|
52
|
+
foo();
|
|
53
|
+
|
|
54
|
+
console.log(onetime.callCount(foo));
|
|
55
|
+
//=> 3
|
|
56
|
+
```
|
|
57
|
+
*/
|
|
58
|
+
callCount(fn: (...arguments: any[]) => unknown): number;
|
|
59
|
+
|
|
60
|
+
// TODO: Remove this for the next major release
|
|
61
|
+
default: typeof onetime;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export = onetime;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const mimicFn = require('mimic-fn');
|
|
3
|
+
|
|
4
|
+
const calledFunctions = new WeakMap();
|
|
5
|
+
|
|
6
|
+
const onetime = (function_, options = {}) => {
|
|
7
|
+
if (typeof function_ !== 'function') {
|
|
8
|
+
throw new TypeError('Expected a function');
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
let returnValue;
|
|
12
|
+
let callCount = 0;
|
|
13
|
+
const functionName = function_.displayName || function_.name || '<anonymous>';
|
|
14
|
+
|
|
15
|
+
const onetime = function (...arguments_) {
|
|
16
|
+
calledFunctions.set(onetime, ++callCount);
|
|
17
|
+
|
|
18
|
+
if (callCount === 1) {
|
|
19
|
+
returnValue = function_.apply(this, arguments_);
|
|
20
|
+
function_ = null;
|
|
21
|
+
} else if (options.throw === true) {
|
|
22
|
+
throw new Error(`Function \`${functionName}\` can only be called once`);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
return returnValue;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
mimicFn(onetime, function_);
|
|
29
|
+
calledFunctions.set(onetime, callCount);
|
|
30
|
+
|
|
31
|
+
return onetime;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
module.exports = onetime;
|
|
35
|
+
// TODO: Remove this for the next major release
|
|
36
|
+
module.exports.default = onetime;
|
|
37
|
+
|
|
38
|
+
module.exports.callCount = function_ => {
|
|
39
|
+
if (!calledFunctions.has(function_)) {
|
|
40
|
+
throw new Error(`The given function \`${function_.name}\` is not wrapped by the \`onetime\` package`);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
return calledFunctions.get(function_);
|
|
44
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "onetime",
|
|
3
|
+
"version": "5.1.2",
|
|
4
|
+
"description": "Ensure a function is only called once",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "sindresorhus/onetime",
|
|
7
|
+
"funding": "https://github.com/sponsors/sindresorhus",
|
|
8
|
+
"author": {
|
|
9
|
+
"name": "Sindre Sorhus",
|
|
10
|
+
"email": "sindresorhus@gmail.com",
|
|
11
|
+
"url": "https://sindresorhus.com"
|
|
12
|
+
},
|
|
13
|
+
"engines": {
|
|
14
|
+
"node": ">=6"
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"test": "xo && ava && tsd"
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"index.js",
|
|
21
|
+
"index.d.ts"
|
|
22
|
+
],
|
|
23
|
+
"keywords": [
|
|
24
|
+
"once",
|
|
25
|
+
"function",
|
|
26
|
+
"one",
|
|
27
|
+
"onetime",
|
|
28
|
+
"func",
|
|
29
|
+
"fn",
|
|
30
|
+
"single",
|
|
31
|
+
"call",
|
|
32
|
+
"called",
|
|
33
|
+
"prevent"
|
|
34
|
+
],
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"mimic-fn": "^2.1.0"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"ava": "^1.4.1",
|
|
40
|
+
"tsd": "^0.7.1",
|
|
41
|
+
"xo": "^0.24.0"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# onetime [](https://travis-ci.com/github/sindresorhus/onetime)
|
|
2
|
+
|
|
3
|
+
> Ensure a function is only called once
|
|
4
|
+
|
|
5
|
+
When called multiple times it will return the return value from the first call.
|
|
6
|
+
|
|
7
|
+
*Unlike the module [once](https://github.com/isaacs/once), this one isn't naughty and extending `Function.prototype`.*
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
$ npm install onetime
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
```js
|
|
18
|
+
const onetime = require('onetime');
|
|
19
|
+
|
|
20
|
+
let i = 0;
|
|
21
|
+
|
|
22
|
+
const foo = onetime(() => ++i);
|
|
23
|
+
|
|
24
|
+
foo(); //=> 1
|
|
25
|
+
foo(); //=> 1
|
|
26
|
+
foo(); //=> 1
|
|
27
|
+
|
|
28
|
+
onetime.callCount(foo); //=> 3
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
```js
|
|
32
|
+
const onetime = require('onetime');
|
|
33
|
+
|
|
34
|
+
const foo = onetime(() => {}, {throw: true});
|
|
35
|
+
|
|
36
|
+
foo();
|
|
37
|
+
|
|
38
|
+
foo();
|
|
39
|
+
//=> Error: Function `foo` can only be called once
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## API
|
|
43
|
+
|
|
44
|
+
### onetime(fn, options?)
|
|
45
|
+
|
|
46
|
+
Returns a function that only calls `fn` once.
|
|
47
|
+
|
|
48
|
+
#### fn
|
|
49
|
+
|
|
50
|
+
Type: `Function`
|
|
51
|
+
|
|
52
|
+
Function that should only be called once.
|
|
53
|
+
|
|
54
|
+
#### options
|
|
55
|
+
|
|
56
|
+
Type: `object`
|
|
57
|
+
|
|
58
|
+
##### throw
|
|
59
|
+
|
|
60
|
+
Type: `boolean`\
|
|
61
|
+
Default: `false`
|
|
62
|
+
|
|
63
|
+
Throw an error when called more than once.
|
|
64
|
+
|
|
65
|
+
### onetime.callCount(fn)
|
|
66
|
+
|
|
67
|
+
Returns a number representing how many times `fn` has been called.
|
|
68
|
+
|
|
69
|
+
Note: It throws an error if you pass in a function that is not wrapped by `onetime`.
|
|
70
|
+
|
|
71
|
+
```js
|
|
72
|
+
const onetime = require('onetime');
|
|
73
|
+
|
|
74
|
+
const foo = onetime(() => {});
|
|
75
|
+
|
|
76
|
+
foo();
|
|
77
|
+
foo();
|
|
78
|
+
foo();
|
|
79
|
+
|
|
80
|
+
console.log(onetime.callCount(foo));
|
|
81
|
+
//=> 3
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
#### fn
|
|
85
|
+
|
|
86
|
+
Type: `Function`
|
|
87
|
+
|
|
88
|
+
Function to get call count from.
|
|
89
|
+
|
|
90
|
+
## onetime for enterprise
|
|
91
|
+
|
|
92
|
+
Available as part of the Tidelift Subscription.
|
|
93
|
+
|
|
94
|
+
The maintainers of onetime and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-onetime?utm_source=npm-onetime&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
|
package/dist/server/server.js
CHANGED
|
@@ -2913,7 +2913,7 @@ Connection: close\r
|
|
|
2913
2913
|
\r
|
|
2914
2914
|
${B}`)},K=(U)=>{$=Buffer.concat([$,U]);let N=$.indexOf(Gv5);if(N===-1){if($.length>Xv5)J.off("data",K),W(431,"Request Header Fields Too Large");return}J.off("data",K);let B=$.slice(0,N).toString("utf8");H(B)},H=async(U)=>{let N=Jv5(U);if(!N){W(400,"Bad Request");return}let B=Qv5(N.host),O=Y();if(!O){W(503,"Sandbox Runner Not Initialized");return}if(!B){W(404,"Not a Sandbox Host");return}try{new URL(N.path,"http://local")}catch{W(400,"Bad Request");return}let z=await Zv5(O,B);if(!z){W(404,"Sandbox Not Found");return}let w=MV1.connect(z,"127.0.0.1",()=>{w.write($),$=Buffer.alloc(0),w.pipe(J),J.pipe(w)});w.on("error",()=>J.destroy()),J.on("error",()=>w.destroy()),J.on("close",()=>w.destroy()),w.on("close",()=>J.destroy())};J.on("data",K),J.on("error",()=>{})},Q=(J)=>{let $=MV1.createServer(G),Z=20,W=0,K=!1;$.on("listening",()=>{console.log(`[mesh-sandbox-ingress] forwarding *.localhost \u2192 ${J}:${X}`)});let H=()=>{$.listen(X,J)};return $.on("error",(U)=>{if(U.code==="EADDRINUSE"&&W<20){if(!K)K=!0,console.warn(`[mesh-sandbox-ingress] ${J}:${X} in use \u2014 waiting for previous process to release (up to ${"10"}s)...`);W++,setTimeout(H,500);return}if(U.code==="EADDRINUSE"){let N=X===7000?" (port 7000 is grabbed by macOS AirPlay Receiver \u2014 set SANDBOX_INGRESS_PORT to another port, e.g. 7070)":" \u2014 another process is holding it; find it with `lsof -iTCP:"+X+" -sTCP:LISTEN -n -P`";console.warn(`[mesh-sandbox-ingress] ${J}:${X} still in use after 10s; giving up${N}.`);return}console.warn(`[mesh-sandbox-ingress] ${J}:${X} listen error: ${U.message}`)}),H(),$};return[Q("127.0.0.1"),Q("::1")]}var Yv5,Xv5=16384,Gv5;var f_6=D(()=>{Yv5=/^([^.]+)\.localhost(?::\d+)?$/i,Gv5=Buffer.from(`\r
|
|
2915
2915
|
\r
|
|
2916
|
-
`)});async function uj0(Y={}){let X=globalThis;if(X[b_6])return;X[b_6]=!0;try{let Q=await new zU(Y).sweepOrphans();if(Q>0)console.log(`[sandbox] Boot sweep: stopped ${Q} stale container(s).`)}catch(G){console.warn("[sandbox] Boot sweep failed (continuing without it):",G instanceof Error?G.message:G)}}async function lj0(Y){if(!Y)return;console.log("[shutdown] Sweeping docker sandbox containers...");try{let X=await Y.sweepOrphans();if(X>0)console.log(`[shutdown] Swept ${X} sandbox container(s).`)}catch(X){console.error("[shutdown] Sandbox sweep error:",X)}}var b_6;var y_6=D(()=>{xj0();b_6=Symbol.for("mesh.sandbox.bootSweepDone")});var tG1=D(()=>{xj0();f_6();y_6()});function RV1(Y){if("threadId"in Y){if(!Y.threadId)throw Error("composeSandboxRef: threadId required");return`thread:${Y.threadId}`}if(!Y.orgId||!Y.virtualMcpId||!Y.branch)throw Error("composeSandboxRef: orgId, virtualMcpId and branch are all required for agent refs");return`agent:${Y.orgId}:${Y.virtualMcpId}:${Y.branch}`}var SV1={};l6(SV1,{tryResolveRunnerKindFromEnv:()=>sG1,sweepDockerOrphansOnShutdown:()=>lj0,sweepDockerOrphansOnBoot:()=>uj0,startLocalSandboxIngress:()=>gj0,sandboxIdKey:()=>xr,resolveRunnerKindFromEnv:()=>lr,ensureSandboxImage:()=>jV1,createDockerRunner:()=>Wv5,composeSandboxRef:()=>RV1,DockerSandboxRunner:()=>zU});import{spawnSync as $v5}from"child_process";function Wv5(Y={}){return new zU({...Y.docker,stateStore:Y.stateStore})}function Kv5(){if(oG1!==null)return oG1;try{oG1=$v5("docker",["--version"],{stdio:"ignore",timeout:2000}).status===0}catch{oG1=!1}return oG1}function sG1(){let Y=process.env.STUDIO_SANDBOX_RUNNER;if(Y==="docker"||Y==="freestyle"||Y==="agent-sandbox")return Y;if(Y&&Y.length>0)throw Error(`Unknown STUDIO_SANDBOX_RUNNER="${Y}" \u2014 expected "docker", "freestyle", or "agent-sandbox".`);if(process.env.FREESTYLE_API_KEY)return"freestyle";return null}function lr(){let Y=sG1();if(Y)return Y;throw Error("STUDIO_SANDBOX_RUNNER must be set explicitly in production \u2014 "+'choose "docker", "freestyle", or "agent-sandbox" (or set FREESTYLE_API_KEY).')}var oG1=null;var mr=D(()=>{tG1();tG1();yj0();tG1();tG1()});var eG1;var mj0=D(()=>{eG1={npm:{install:"npm install",run:(Y)=>`npm run ${Y}`,runtime:"node"},pnpm:{install:"pnpm install",run:(Y)=>`pnpm run ${Y}`,runtime:"node"},yarn:{install:"yarn install",run:(Y)=>`yarn run ${Y}`,runtime:"node"},bun:{install:"bun install",run:(Y)=>`bun run ${Y}`,runtime:"bun"},deno:{install:"deno install",run:(Y)=>`deno task ${Y}`,runtime:"deno"}}});function dr(Y){if(!Y||typeof Y!=="object")return{};let X=Y.vmMap;if(!X||typeof X!=="object")return{};return X}function kV1(Y,X,G){return Y[X]?.[G]??null}async function h_6(Y,X,G,Q,J,$){let Z=await Y.findById(X);if(!Z)return;let W=Z.metadata??{},K=dr(W),H={...K,[Q]:{...K[Q]??{},[J]:$}};await Y.update(X,G,{metadata:{...W,vmMap:H}})}async function x_6(Y,X,G,Q,J){let $=await Y.findById(X);if(!$)return;let Z=$.metadata??{},W=dr(Z);if(!W[Q]?.[J])return;let K={...W[Q]};delete K[J];let H={...W};if(Object.keys(K).length===0)delete H[Q];else H[Q]=K;await Y.update(X,G,{metadata:{...Z,vmMap:H}})}async function CV1(Y,X){U0(X);let G=s1(X);await X.access.check();let Q=L6(X);if(!Q)throw Error("User ID required");let J=await X.storage.virtualMcps.findById(Y.virtualMcpId);if(!J||J.organization_id!==G.id)throw Error("Virtual MCP not found");let $=J.metadata??{},Z=dr($),W=kV1(Z,Q,Y.branch);return{virtualMcp:J,metadata:$,userId:Q,entry:W,organization:G}}function g_6(Y){let X=Y.runtime??null,Q=X?.selected??null;if(!Q||!(Q in eG1))return{packageManager:null,runtime:null,port:X?.port??"3000",runtimeBinPath:null};let J=eG1[Q].runtime,$=J==="deno"?"/opt/deno/bin":J==="bun"?"/opt/bun/bin":null;return{packageManager:Q,runtime:J,port:X?.port??"3000",runtimeBinPath:$}}var dj0=D(()=>{mj0()});async function u_6(Y,X,G,Q,J){let $=new eZ(Q,J),Z=await $.get(Y);if(!Z)throw Error("No GitHub token found. Ensure the mcp-github connection is authenticated.");let W=Z.accessToken;if(O51(Z)&&$.isExpired(Z,kE1)){let N=await z51(Z,$);if(!N)throw Error(KV);W=N}let K=`https://x-access-token:${W}@github.com/${X}/${G}.git`,H="Deco Studio",U="studio@deco.cx";try{let N=await fetch("https://api.github.com/user",{headers:{Authorization:`token ${W}`,Accept:"application/vnd.github+json"}});if(N.ok){let B=await N.json();H=B.name||B.login,U=B.email||`${B.login}@users.noreply.github.com`}}catch{}return{cloneUrl:K,gitUserName:H,gitUserEmail:U}}var l_6=D(()=>{d2();CE1()});async function c_6(Y,X,G,Q,J){let $=await new eZ(Q,J).get(Y);if(!$)return null;let Z=new Map,W=new Set(m_6.map((N)=>N.path));for(let N of Object.values(d_6))for(let B of N??[])W.add(B);await Promise.all(Array.from(W).map(async(N)=>{Z.set(N,await Fv5(X,G,N,$.accessToken))}));let K=m_6.find(({path:N})=>Z.get(N)!==null);if(!K)return null;let H=d_6[K.pm]??[],U=null;for(let N of H)if(U=Uv5(Z.get(N)??null),U)break;return{packageManager:K.pm,devPort:U}}async function Fv5(Y,X,G,Q){let J=`https://api.github.com/repos/${Y}/${X}/contents/${encodeURIComponent(G)}`;try{let $=await fetch(J,{headers:{Authorization:`token ${Q}`,Accept:"application/vnd.github+json","User-Agent":"mesh-runtime-detect"},signal:AbortSignal.timeout(5000)});if(!$.ok)return null;let Z=await $.json();if(!Z.content||Z.encoding!=="base64")return null;return Buffer.from(Z.content,"base64").toString("utf8")}catch{return null}}function Uv5(Y){if(!Y)return null;try{let X=JSON.parse(Y),G=X.tasks??X.scripts??{};return(G.dev??G.start??"").match(Hv5)?.[1]??null}catch{return null}}var m_6,d_6,Hv5;var i_6=D(()=>{d2();m_6=[{path:"deno.json",pm:"deno"},{path:"deno.jsonc",pm:"deno"},{path:"bun.lock",pm:"bun"},{path:"bunfig.toml",pm:"bun"},{path:"pnpm-lock.yaml",pm:"pnpm"},{path:"yarn.lock",pm:"yarn"},{path:"package-lock.json",pm:"npm"},{path:"package.json",pm:"npm"}],d_6={deno:["deno.json","deno.jsonc"],bun:["package.json"],pnpm:["package.json"],yarn:["package.json"],npm:["package.json"]},Hv5=/(?:--port|PORT=|:)(\d{4,5})/});import{createHash as Nv5}from"crypto";function Bv5(Y,X){return Nv5("sha256").update(Y.userId).update("\x00").update(Y.projectRef).update("\x00").update(X).digest().readBigInt64BE(0)}async function n_6(Y,X,G){let Q=await Y.selectFrom("sandbox_runner_state").select(["handle","state","updated_at"]).where("user_id","=",X.userId).where("project_ref","=",X.projectRef).where("runner_kind","=",G).executeTakeFirst();if(!Q)return null;return{handle:Q.handle,state:Q.state,updatedAt:Q.updated_at}}async function a_6(Y,X,G){let Q=await Y.selectFrom("sandbox_runner_state").select(["user_id","project_ref","handle","state","updated_at"]).where("runner_kind","=",X).where("handle","=",G).executeTakeFirst();if(!Q)return null;return{id:{userId:Q.user_id,projectRef:Q.project_ref},handle:Q.handle,state:Q.state,updatedAt:Q.updated_at}}async function r_6(Y,X,G,Q){let J=JSON.stringify(Q.state),$=new Date().toISOString();await Y.insertInto("sandbox_runner_state").values({user_id:X.userId,project_ref:X.projectRef,runner_kind:G,handle:Q.handle,state:J,updated_at:$}).onConflict((Z)=>Z.columns(["user_id","project_ref","runner_kind"]).doUpdateSet({handle:Q.handle,state:J,updated_at:$})).execute()}async function t_6(Y,X,G){await Y.deleteFrom("sandbox_runner_state").where("user_id","=",X.userId).where("project_ref","=",X.projectRef).where("runner_kind","=",G).execute()}async function o_6(Y,X,G){await Y.deleteFrom("sandbox_runner_state").where("runner_kind","=",X).where("handle","=",G).execute()}function Ov5(Y){return{get:(X,G)=>n_6(Y,X,G),getByHandle:(X,G)=>a_6(Y,X,G),put:(X,G,Q)=>r_6(Y,X,G,Q),delete:(X,G)=>t_6(Y,X,G),deleteByHandle:(X,G)=>o_6(Y,X,G)}}class cj0{db;constructor(Y){this.db=Y}get(Y,X){return n_6(this.db,Y,X)}getByHandle(Y,X){return a_6(this.db,Y,X)}put(Y,X,G){return r_6(this.db,Y,X,G)}delete(Y,X){return t_6(this.db,Y,X)}deleteByHandle(Y,X){return o_6(this.db,Y,X)}async withLock(Y,X,G){let Q=Bv5(Y,X);return this.db.transaction().execute(async(J)=>{try{await p1`set local statement_timeout = ${p1.lit(p_6)}`.execute(J),await p1`select pg_advisory_xact_lock(${Q}::bigint)`.execute(J)}catch($){if(zv5($))throw Error(`sandbox advisory lock busy >${p_6}ms for user=${Y.userId} projectRef=${Y.projectRef} kind=${X} \u2014 another provisioner is slow or stuck; retry shortly`);throw $}return await p1`set local statement_timeout = 0`.execute(J),G(Ov5(J))})}}function zv5(Y){if(!(Y instanceof Error))return!1;return Y.code==="57014"||/statement timeout/i.test(Y.message)}var p_6=90000;var s_6=D(()=>{j7()});function Jf6(Y){let X=Dv5[Y.code];if(X)return new X(Y);else return Error(`Unknown error code: ${Y.code} - ${Y.description}`)}class Mg6{baseUrl;apiKey;accessToken;fetchFn;constructor(Y={}){this.baseUrl=Y.baseUrl||"https://api.freestyle.sh",this.apiKey="apiKey"in Y?Y.apiKey:void 0,this.accessToken="accessToken"in Y?Y.accessToken:void 0,this.fetchFn=Y.fetch||fetch}buildUrl(Y,X,G){let Q=Y;if(X)for(let[J,$]of Object.entries(X))Q=Q.replace(`{${J}}`,encodeURIComponent($));if(G){let J=new URLSearchParams;for(let[Z,W]of Object.entries(G))if(W!==void 0&&W!==null)J.append(Z,String(W));let $=J.toString();if($)Q+=`?${$}`}return this.baseUrl+Q}getDefaultHeaders(){let Y={"X-Freestyle-SDK":Yf6,"X-Freestyle-SDK-Version":e_6,"User-Agent":`${Yf6}/${e_6}`};if(this.apiKey)Y.Authorization=`Bearer ${this.apiKey}`;else if(this.accessToken)Y["X-Freestyle-Identity-Access-Token"]=this.accessToken;return Y}async requestRaw(Y,X,G,Q){let J={...this.getDefaultHeaders(),...Q};if(G)J["Content-Type"]="application/json";let $=await this.fetchFn(X,{method:Y,headers:J,body:G?JSON.stringify(G):void 0});if(!$.ok){let Z=await $.text(),W;try{W=JSON.parse(Z)}catch(K){if($.status===401)Z+=" (Your API key or access token may be invalid.)";throw Error(`HTTP error ${$.status}: ${Z}. ${K}`)}throw Jf6(W)}return $}async request(Y,X,G,Q){return(await this.requestRaw(Y,X,G,Q)).json()}async fetch(Y,X){let G=this.getDefaultHeaders(),Q={...X,headers:{...G,...X?.headers||{}}};return this.fetchFn(Y,Q)}resolveUrl(Y,X,G){return this.buildUrl(Y,X,G)}getRaw(Y,X){let G=this.buildUrl(Y,X?.params,X?.query);return this.requestRaw("GET",G,void 0,X?.headers)}postRaw(Y,...X){let G=X[0],Q=this.buildUrl(Y,G?.params,G?.query);return this.requestRaw("POST",Q,G?.body,G?.headers)}get(Y,...X){let G=X[0],Q=this.buildUrl(Y,G?.params,G?.query);return this.request("GET",Q,G?.body,G?.headers)}post(Y,...X){let G=X[0],Q=this.buildUrl(Y,G?.params,G?.query);return this.request("POST",Q,G?.body,G?.headers)}put(Y,...X){let G=X[0],Q=this.buildUrl(Y,G?.params,G?.query);return this.request("PUT",Q,G?.body,G?.headers)}delete(Y,...X){let G=X[0],Q=this.buildUrl(Y,G?.params,G?.query);return this.request("DELETE",Q,G?.body,G?.headers)}patch(Y,...X){let G=X[0],Q=this.buildUrl(Y,G?.params,G?.query);return this.request("PATCH",Q,G?.body,G?.headers)}}class Rg6{constructor(Y){this.apiClient=Y}async create({domain:Y}){let X=await this.apiClient.post("/domains/v1/verifications",{body:{domain:Y}});return{verificationId:X.id,instructions:`Navigate to your domain's DNS settings and create a TXT record with the following details:
|
|
2916
|
+
`)});async function uj0(Y={}){let X=globalThis;if(X[b_6])return;X[b_6]=!0;try{let Q=await new zU(Y).sweepOrphans();if(Q>0)console.log(`[sandbox] Boot sweep: stopped ${Q} stale container(s).`)}catch(G){console.warn("[sandbox] Boot sweep failed (continuing without it):",G instanceof Error?G.message:G)}}async function lj0(Y){if(!Y)return;console.log("[shutdown] Sweeping docker sandbox containers...");try{let X=await Y.sweepOrphans();if(X>0)console.log(`[shutdown] Swept ${X} sandbox container(s).`)}catch(X){console.error("[shutdown] Sandbox sweep error:",X)}}var b_6;var y_6=D(()=>{xj0();b_6=Symbol.for("mesh.sandbox.bootSweepDone")});var tG1=D(()=>{xj0();f_6();y_6()});function RV1(Y){if("threadId"in Y){if(!Y.threadId)throw Error("composeSandboxRef: threadId required");return`thread:${Y.threadId}`}if(!Y.orgId||!Y.virtualMcpId||!Y.branch)throw Error("composeSandboxRef: orgId, virtualMcpId and branch are all required for agent refs");return`agent:${Y.orgId}:${Y.virtualMcpId}:${Y.branch}`}var SV1={};l6(SV1,{tryResolveRunnerKindFromEnv:()=>sG1,sweepDockerOrphansOnShutdown:()=>lj0,sweepDockerOrphansOnBoot:()=>uj0,startLocalSandboxIngress:()=>gj0,sandboxIdKey:()=>xr,resolveRunnerKindFromEnv:()=>lr,ensureSandboxImage:()=>jV1,createDockerRunner:()=>Wv5,composeSandboxRef:()=>RV1,DockerSandboxRunner:()=>zU});import{spawnSync as $v5}from"child_process";function Wv5(Y={}){return new zU({...Y.docker,stateStore:Y.stateStore})}function Kv5(){if(oG1!==null)return oG1;try{oG1=$v5("docker",["--version"],{stdio:"ignore",timeout:2000}).status===0}catch{oG1=!1}return oG1}function sG1(){let Y=process.env.STUDIO_SANDBOX_RUNNER;if(Y==="docker"||Y==="freestyle"||Y==="agent-sandbox")return Y;if(Y&&Y.length>0)throw Error(`Unknown STUDIO_SANDBOX_RUNNER="${Y}" \u2014 expected "docker", "freestyle", or "agent-sandbox".`);if(process.env.FREESTYLE_API_KEY)return"freestyle";return Kv5()?"docker":null}function lr(){let Y=sG1();if(Y)return Y;throw Error("No sandbox runner available: Docker CLI not found on PATH. Install Docker, set FREESTYLE_API_KEY, or set STUDIO_SANDBOX_RUNNER explicitly.")}var oG1=null;var mr=D(()=>{tG1();tG1();yj0();tG1();tG1()});var eG1;var mj0=D(()=>{eG1={npm:{install:"npm install",run:(Y)=>`npm run ${Y}`,runtime:"node"},pnpm:{install:"pnpm install",run:(Y)=>`pnpm run ${Y}`,runtime:"node"},yarn:{install:"yarn install",run:(Y)=>`yarn run ${Y}`,runtime:"node"},bun:{install:"bun install",run:(Y)=>`bun run ${Y}`,runtime:"bun"},deno:{install:"deno install",run:(Y)=>`deno task ${Y}`,runtime:"deno"}}});function dr(Y){if(!Y||typeof Y!=="object")return{};let X=Y.vmMap;if(!X||typeof X!=="object")return{};return X}function kV1(Y,X,G){return Y[X]?.[G]??null}async function h_6(Y,X,G,Q,J,$){let Z=await Y.findById(X);if(!Z)return;let W=Z.metadata??{},K=dr(W),H={...K,[Q]:{...K[Q]??{},[J]:$}};await Y.update(X,G,{metadata:{...W,vmMap:H}})}async function x_6(Y,X,G,Q,J){let $=await Y.findById(X);if(!$)return;let Z=$.metadata??{},W=dr(Z);if(!W[Q]?.[J])return;let K={...W[Q]};delete K[J];let H={...W};if(Object.keys(K).length===0)delete H[Q];else H[Q]=K;await Y.update(X,G,{metadata:{...Z,vmMap:H}})}async function CV1(Y,X){U0(X);let G=s1(X);await X.access.check();let Q=L6(X);if(!Q)throw Error("User ID required");let J=await X.storage.virtualMcps.findById(Y.virtualMcpId);if(!J||J.organization_id!==G.id)throw Error("Virtual MCP not found");let $=J.metadata??{},Z=dr($),W=kV1(Z,Q,Y.branch);return{virtualMcp:J,metadata:$,userId:Q,entry:W,organization:G}}function g_6(Y){let X=Y.runtime??null,Q=X?.selected??null;if(!Q||!(Q in eG1))return{packageManager:null,runtime:null,port:X?.port??"3000",runtimeBinPath:null};let J=eG1[Q].runtime,$=J==="deno"?"/opt/deno/bin":J==="bun"?"/opt/bun/bin":null;return{packageManager:Q,runtime:J,port:X?.port??"3000",runtimeBinPath:$}}var dj0=D(()=>{mj0()});async function u_6(Y,X,G,Q,J){let $=new eZ(Q,J),Z=await $.get(Y);if(!Z)throw Error("No GitHub token found. Ensure the mcp-github connection is authenticated.");let W=Z.accessToken;if(O51(Z)&&$.isExpired(Z,kE1)){let N=await z51(Z,$);if(!N)throw Error(KV);W=N}let K=`https://x-access-token:${W}@github.com/${X}/${G}.git`,H="Deco Studio",U="studio@deco.cx";try{let N=await fetch("https://api.github.com/user",{headers:{Authorization:`token ${W}`,Accept:"application/vnd.github+json"}});if(N.ok){let B=await N.json();H=B.name||B.login,U=B.email||`${B.login}@users.noreply.github.com`}}catch{}return{cloneUrl:K,gitUserName:H,gitUserEmail:U}}var l_6=D(()=>{d2();CE1()});async function c_6(Y,X,G,Q,J){let $=await new eZ(Q,J).get(Y);if(!$)return null;let Z=new Map,W=new Set(m_6.map((N)=>N.path));for(let N of Object.values(d_6))for(let B of N??[])W.add(B);await Promise.all(Array.from(W).map(async(N)=>{Z.set(N,await Fv5(X,G,N,$.accessToken))}));let K=m_6.find(({path:N})=>Z.get(N)!==null);if(!K)return null;let H=d_6[K.pm]??[],U=null;for(let N of H)if(U=Uv5(Z.get(N)??null),U)break;return{packageManager:K.pm,devPort:U}}async function Fv5(Y,X,G,Q){let J=`https://api.github.com/repos/${Y}/${X}/contents/${encodeURIComponent(G)}`;try{let $=await fetch(J,{headers:{Authorization:`token ${Q}`,Accept:"application/vnd.github+json","User-Agent":"mesh-runtime-detect"},signal:AbortSignal.timeout(5000)});if(!$.ok)return null;let Z=await $.json();if(!Z.content||Z.encoding!=="base64")return null;return Buffer.from(Z.content,"base64").toString("utf8")}catch{return null}}function Uv5(Y){if(!Y)return null;try{let X=JSON.parse(Y),G=X.tasks??X.scripts??{};return(G.dev??G.start??"").match(Hv5)?.[1]??null}catch{return null}}var m_6,d_6,Hv5;var i_6=D(()=>{d2();m_6=[{path:"deno.json",pm:"deno"},{path:"deno.jsonc",pm:"deno"},{path:"bun.lock",pm:"bun"},{path:"bunfig.toml",pm:"bun"},{path:"pnpm-lock.yaml",pm:"pnpm"},{path:"yarn.lock",pm:"yarn"},{path:"package-lock.json",pm:"npm"},{path:"package.json",pm:"npm"}],d_6={deno:["deno.json","deno.jsonc"],bun:["package.json"],pnpm:["package.json"],yarn:["package.json"],npm:["package.json"]},Hv5=/(?:--port|PORT=|:)(\d{4,5})/});import{createHash as Nv5}from"crypto";function Bv5(Y,X){return Nv5("sha256").update(Y.userId).update("\x00").update(Y.projectRef).update("\x00").update(X).digest().readBigInt64BE(0)}async function n_6(Y,X,G){let Q=await Y.selectFrom("sandbox_runner_state").select(["handle","state","updated_at"]).where("user_id","=",X.userId).where("project_ref","=",X.projectRef).where("runner_kind","=",G).executeTakeFirst();if(!Q)return null;return{handle:Q.handle,state:Q.state,updatedAt:Q.updated_at}}async function a_6(Y,X,G){let Q=await Y.selectFrom("sandbox_runner_state").select(["user_id","project_ref","handle","state","updated_at"]).where("runner_kind","=",X).where("handle","=",G).executeTakeFirst();if(!Q)return null;return{id:{userId:Q.user_id,projectRef:Q.project_ref},handle:Q.handle,state:Q.state,updatedAt:Q.updated_at}}async function r_6(Y,X,G,Q){let J=JSON.stringify(Q.state),$=new Date().toISOString();await Y.insertInto("sandbox_runner_state").values({user_id:X.userId,project_ref:X.projectRef,runner_kind:G,handle:Q.handle,state:J,updated_at:$}).onConflict((Z)=>Z.columns(["user_id","project_ref","runner_kind"]).doUpdateSet({handle:Q.handle,state:J,updated_at:$})).execute()}async function t_6(Y,X,G){await Y.deleteFrom("sandbox_runner_state").where("user_id","=",X.userId).where("project_ref","=",X.projectRef).where("runner_kind","=",G).execute()}async function o_6(Y,X,G){await Y.deleteFrom("sandbox_runner_state").where("runner_kind","=",X).where("handle","=",G).execute()}function Ov5(Y){return{get:(X,G)=>n_6(Y,X,G),getByHandle:(X,G)=>a_6(Y,X,G),put:(X,G,Q)=>r_6(Y,X,G,Q),delete:(X,G)=>t_6(Y,X,G),deleteByHandle:(X,G)=>o_6(Y,X,G)}}class cj0{db;constructor(Y){this.db=Y}get(Y,X){return n_6(this.db,Y,X)}getByHandle(Y,X){return a_6(this.db,Y,X)}put(Y,X,G){return r_6(this.db,Y,X,G)}delete(Y,X){return t_6(this.db,Y,X)}deleteByHandle(Y,X){return o_6(this.db,Y,X)}async withLock(Y,X,G){let Q=Bv5(Y,X);return this.db.transaction().execute(async(J)=>{try{await p1`set local statement_timeout = ${p1.lit(p_6)}`.execute(J),await p1`select pg_advisory_xact_lock(${Q}::bigint)`.execute(J)}catch($){if(zv5($))throw Error(`sandbox advisory lock busy >${p_6}ms for user=${Y.userId} projectRef=${Y.projectRef} kind=${X} \u2014 another provisioner is slow or stuck; retry shortly`);throw $}return await p1`set local statement_timeout = 0`.execute(J),G(Ov5(J))})}}function zv5(Y){if(!(Y instanceof Error))return!1;return Y.code==="57014"||/statement timeout/i.test(Y.message)}var p_6=90000;var s_6=D(()=>{j7()});function Jf6(Y){let X=Dv5[Y.code];if(X)return new X(Y);else return Error(`Unknown error code: ${Y.code} - ${Y.description}`)}class Mg6{baseUrl;apiKey;accessToken;fetchFn;constructor(Y={}){this.baseUrl=Y.baseUrl||"https://api.freestyle.sh",this.apiKey="apiKey"in Y?Y.apiKey:void 0,this.accessToken="accessToken"in Y?Y.accessToken:void 0,this.fetchFn=Y.fetch||fetch}buildUrl(Y,X,G){let Q=Y;if(X)for(let[J,$]of Object.entries(X))Q=Q.replace(`{${J}}`,encodeURIComponent($));if(G){let J=new URLSearchParams;for(let[Z,W]of Object.entries(G))if(W!==void 0&&W!==null)J.append(Z,String(W));let $=J.toString();if($)Q+=`?${$}`}return this.baseUrl+Q}getDefaultHeaders(){let Y={"X-Freestyle-SDK":Yf6,"X-Freestyle-SDK-Version":e_6,"User-Agent":`${Yf6}/${e_6}`};if(this.apiKey)Y.Authorization=`Bearer ${this.apiKey}`;else if(this.accessToken)Y["X-Freestyle-Identity-Access-Token"]=this.accessToken;return Y}async requestRaw(Y,X,G,Q){let J={...this.getDefaultHeaders(),...Q};if(G)J["Content-Type"]="application/json";let $=await this.fetchFn(X,{method:Y,headers:J,body:G?JSON.stringify(G):void 0});if(!$.ok){let Z=await $.text(),W;try{W=JSON.parse(Z)}catch(K){if($.status===401)Z+=" (Your API key or access token may be invalid.)";throw Error(`HTTP error ${$.status}: ${Z}. ${K}`)}throw Jf6(W)}return $}async request(Y,X,G,Q){return(await this.requestRaw(Y,X,G,Q)).json()}async fetch(Y,X){let G=this.getDefaultHeaders(),Q={...X,headers:{...G,...X?.headers||{}}};return this.fetchFn(Y,Q)}resolveUrl(Y,X,G){return this.buildUrl(Y,X,G)}getRaw(Y,X){let G=this.buildUrl(Y,X?.params,X?.query);return this.requestRaw("GET",G,void 0,X?.headers)}postRaw(Y,...X){let G=X[0],Q=this.buildUrl(Y,G?.params,G?.query);return this.requestRaw("POST",Q,G?.body,G?.headers)}get(Y,...X){let G=X[0],Q=this.buildUrl(Y,G?.params,G?.query);return this.request("GET",Q,G?.body,G?.headers)}post(Y,...X){let G=X[0],Q=this.buildUrl(Y,G?.params,G?.query);return this.request("POST",Q,G?.body,G?.headers)}put(Y,...X){let G=X[0],Q=this.buildUrl(Y,G?.params,G?.query);return this.request("PUT",Q,G?.body,G?.headers)}delete(Y,...X){let G=X[0],Q=this.buildUrl(Y,G?.params,G?.query);return this.request("DELETE",Q,G?.body,G?.headers)}patch(Y,...X){let G=X[0],Q=this.buildUrl(Y,G?.params,G?.query);return this.request("PATCH",Q,G?.body,G?.headers)}}class Rg6{constructor(Y){this.apiClient=Y}async create({domain:Y}){let X=await this.apiClient.post("/domains/v1/verifications",{body:{domain:Y}});return{verificationId:X.id,instructions:`Navigate to your domain's DNS settings and create a TXT record with the following details:
|
|
2917
2917
|
|
|
2918
2918
|
Name: _freestyle_custom_hostname.${Y}
|
|
2919
2919
|
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t}from"./index-CNolBSVE.js";const a=({size:e=24,color:o="currentColor",...r})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:o,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},t.createElement("path",{d:"M19 12H5m0 0 7 7m-7-7 7-7"}));a.displayName="ArrowLeft";const i=({size:e=24,color:o="currentColor",...r})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:o,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},t.createElement("path",{d:"M10.743 5.092C11.149 5.032 11.569 5 12 5c5.105 0 8.455 4.505 9.58 6.287.137.215.205.323.243.49a1.16 1.16 0 0 1 0 .447c-.038.166-.107.274-.244.492-.3.474-.757 1.141-1.363 1.865M6.724 6.715c-2.162 1.467-3.63 3.504-4.303 4.57-.137.217-.205.325-.243.492a1.173 1.173 0 0 0 0 .446c.038.167.106.274.242.49C3.546 14.495 6.895 19 12 19c2.059 0 3.832-.732 5.289-1.723M3 3l18 18M9.88 9.879a3 3 0 1 0 4.243 4.243"}));i.displayName="EyeOff";const n=({size:e=24,color:o="currentColor",...r})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:o,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},t.createElement("path",{d:"M2.42 12.713c-.136-.215-.204-.323-.242-.49a1.173 1.173 0 0 1 0-.446c.038-.167.106-.274.242-.49C3.546 9.505 6.895 5 12 5s8.455 4.505 9.58 6.287c.137.215.205.323.243.49.029.125.029.322 0 .446-.038.167-.106.274-.242.49C20.455 14.495 17.105 19 12 19c-5.106 0-8.455-4.505-9.58-6.287Z"}),t.createElement("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"}));n.displayName="Eye";const s=({size:e=24,color:o="currentColor",...r})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:o,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},t.createElement("path",{d:"M12.5 3H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 5.28 3 6.12 3 7.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 21 6.12 21 7.8 21H17c.93 0 1.395 0 1.776-.102a3 3 0 0 0 2.122-2.122C21 18.395 21 17.93 21 17m-2-9V2m-3 3h6M10.5 8.5a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm4.49 3.418-8.459 7.69c-.476.433-.714.649-.735.836a.5.5 0 0 0 .167.431C6.105 21 6.426 21 7.07 21h9.387c1.44 0 2.159 0 2.724-.242a3 3 0 0 0 1.578-1.578c.242-.565.242-1.285.242-2.724 0-.484 0-.726-.053-.952a2.001 2.001 0 0 0-.374-.778c-.143-.182-.332-.333-.71-.636l-2.797-2.237c-.379-.303-.568-.454-.776-.508a1 1 0 0 0-.557.018c-.205.066-.384.23-.743.555Z"}));s.displayName="ImagePlus";const c=({size:e=24,color:o="currentColor",...r})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:o,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},t.createElement("path",{d:"M17 9a1.99 1.99 0 0 0-.586-1.414A1.994 1.994 0 0 0 15 7m0 8a6 6 0 1 0-5.946-5.193c.058.434.087.651.068.789a.853.853 0 0 1-.117.346c-.068.121-.187.24-.426.479l-5.11 5.11c-.173.173-.26.26-.322.36a1 1 0 0 0-.12.29C3 17.296 3 17.418 3 17.663V19.4c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C3.76 21 4.04 21 4.6 21H7v-2h2v-2h2l1.58-1.58c.238-.238.357-.357.478-.425a.852.852 0 0 1 .346-.117c.138-.02.355.01.789.068.264.036.533.054.807.054Z"}));c.displayName="Key01";const d=({size:e=24,color:o="currentColor",...r})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:o,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},t.createElement("path",{d:"M2 10s2.005-2.732 3.634-4.362A9 9 0 1 1 12 21a9.004 9.004 0 0 1-8.648-6.5M2 10V4m0 6h6"}));d.displayName="RefreshCcw01";const l=({size:e=24,color:o="currentColor",...r})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:o,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},t.createElement("path",{d:"m21 21-4.35-4.35M19 11a8 8 0 1 1-16 0 8 8 0 0 1 16 0Z"}));l.displayName="SearchMd";export{l as a,c as b,d as c,i as d,s as e,a as i,n as s};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t}from"./index-CNolBSVE.js";const i=({size:e=24,color:r="currentColor",...o})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},t.createElement("path",{d:"M5 12h14m0 0-7-7m7 7-7 7"}));i.displayName="ArrowRight";const a=({size:e=24,color:r="currentColor",...o})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},t.createElement("path",{d:"m9 12 2 2 4.5-4.5m2.401-4.501a2.03 2.03 0 0 0 1.1 1.1l1.744.723a2.033 2.033 0 0 1 1.1 2.656l-.722 1.744a2.03 2.03 0 0 0 0 1.556l.722 1.744a2.033 2.033 0 0 1-1.1 2.656L19 17.901A2.033 2.033 0 0 0 17.9 19l-.723 1.745a2.032 2.032 0 0 1-2.656 1.1l-1.744-.722a2.032 2.032 0 0 0-1.555 0l-1.745.723a2.033 2.033 0 0 1-2.654-1.1L6.1 19.001A2.033 2.033 0 0 0 5 17.9l-1.744-.723a2.033 2.033 0 0 1-1.1-2.654l.721-1.744a2.033 2.033 0 0 0 0-1.556l-.722-1.746a2.033 2.033 0 0 1 1.1-2.657L5 6.098A2.03 2.03 0 0 0 6.1 5l.723-1.745a2.033 2.033 0 0 1 2.656-1.1l1.744.722a2.033 2.033 0 0 0 1.555-.001l1.746-.72a2.032 2.032 0 0 1 2.655 1.1l.723 1.746v-.003Z"}));a.displayName="CheckVerified02";const n=({size:e=24,color:r="currentColor",...o})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},t.createElement("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z"}));n.displayName="Circle";const s=({size:e=24,color:r="currentColor",...o})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},t.createElement("path",{d:"M5 15c-.932 0-1.398 0-1.765-.152a2 2 0 0 1-1.083-1.083C2 13.398 2 12.932 2 12V5.2c0-1.12 0-1.68.218-2.108a2 2 0 0 1 .874-.874C3.52 2 4.08 2 5.2 2H12c.932 0 1.398 0 1.765.152a2 2 0 0 1 1.083 1.083C15 3.602 15 4.068 15 5m-2.8 17h6.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C22 20.48 22 19.92 22 18.8v-6.6c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C20.48 9 19.92 9 18.8 9h-6.6c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C9 10.52 9 11.08 9 12.2v6.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C10.52 22 11.08 22 12.2 22Z"}));s.displayName="Copy01";const l=({size:e=24,color:r="currentColor",...o})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},t.createElement("path",{d:"M12 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0-7a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 14a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"}));l.displayName="DotsVertical";const c=({size:e=24,color:r="currentColor",...o})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},t.createElement("path",{d:"M21 15v1.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V15m14-5-5 5m0 0-5-5m5 5V3"}));c.displayName="Download01";const d=({size:e=24,color:r="currentColor",...o})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},t.createElement("path",{d:"M6 12h12M3 6h18M9 18h6"}));d.displayName="FilterLines";const h=({size:e=24,color:r="currentColor",...o})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},t.createElement("path",{d:"M2 12h20M2 12c0 5.523 4.477 10 10 10M2 12C2 6.477 6.477 2 12 2m10 10c0 5.523-4.477 10-10 10m10-10c0-5.523-4.477-10-10-10m0 0a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10m0-20a15.3 15.3 0 0 0-4 10 15.3 15.3 0 0 0 4 10"}));h.displayName="Globe01";const m=({size:e=24,color:r="currentColor",...o})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},t.createElement("path",{d:"m12.708 18.364-1.415 1.414a5 5 0 1 1-7.07-7.07l1.413-1.415m12.728 1.414 1.415-1.414a5 5 0 0 0-7.071-7.071l-1.415 1.414M8.5 15.5l7-7"}));m.displayName="Link01";const k=({size:e=24,color:r="currentColor",...o})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},t.createElement("path",{d:"M10.5 9.002a2.248 2.248 0 0 1 4.369.75C14.869 11.25 12.62 12 12.62 12m.028 3h.01m-.16 5a8.5 8.5 0 1 0-8.056-5.783c.108.32.162.481.172.604a.899.899 0 0 1-.028.326c-.03.12-.098.245-.232.494l-1.636 3.027c-.233.432-.35.648-.324.815a.5.5 0 0 0 .234.35c.144.087.388.062.876.011l5.121-.529c.155-.016.233-.024.303-.021.07.002.12.009.187.024.069.016.155.05.329.116A8.478 8.478 0 0 0 12.5 20Z"}));k.displayName="MessageQuestionCircle";const u=({size:e=24,color:r="currentColor",...o})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},t.createElement("path",{d:"M3 7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3h8.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C21 5.28 21 6.12 21 7.8v8.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8Z"}),t.createElement("path",{d:"M8 9.6c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C8.76 8 9.04 8 9.6 8h4.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C16 8.76 16 9.04 16 9.6v4.8c0 .56 0 .84-.109 1.054a1 1 0 0 1-.437.437C15.24 16 14.96 16 14.4 16H9.6c-.56 0-.84 0-1.054-.109a1 1 0 0 1-.437-.437C8 15.24 8 14.96 8 14.4V9.6Z"}));u.displayName="StopSquare";const p=({size:e=24,color:r="currentColor",...o})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},t.createElement("path",{d:"m6 6 4.5 4.5M6 6H3L2 3l1-1 3 1v3Zm13.259-3.259-2.628 2.628c-.396.396-.594.594-.668.822a1 1 0 0 0 0 .618c.074.228.272.426.668.822l.238.238c.396.396.594.594.822.668a1 1 0 0 0 .618 0c.228-.074.426-.272.822-.668L21.59 5.41a5.5 5.5 0 0 1-6.16 7.485c-.485-.096-.729-.144-.876-.13a.836.836 0 0 0-.373.114c-.13.07-.261.201-.523.463L6.5 20.5a2.121 2.121 0 0 1-3-3l7.157-7.157c.262-.262.393-.393.463-.524a.836.836 0 0 0 .113-.372c.015-.148-.033-.39-.129-.877a5.5 5.5 0 0 1 8.155-5.83ZM12 15l5.5 5.5a2.121 2.121 0 0 0 3-3l-4.525-4.525a5.475 5.475 0 0 1-.934-.17c-.39-.107-.816-.03-1.101.255L12 15Z"}));p.displayName="Tool02";const C=({size:e=24,color:r="currentColor",...o})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},t.createElement("path",{d:"M21 15v1.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V15m14-7-5-5m0 0L7 8m5-5v12"}));C.displayName="Upload01";const L=({size:e=24,color:r="currentColor",...o})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},t.createElement("path",{d:"m15 9-6 6m0-6 6 6m7-3c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z"}));L.displayName="XCircle";export{m as a,a as b,C as c,L as d,d as e,s as f,h as g,l as h,i,p as j,n as k,u as l,c as n,k as t};
|