vite-hub 0.0.3 → 0.0.4
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/LICENSE +201 -0
- package/README.md +49 -24
- package/dist/_internal/agent/eve.d.ts +1 -0
- package/dist/_internal/agent/eve.js +2 -0
- package/dist/_internal/database/runtime/state.d.ts +4 -0
- package/dist/_internal/database/runtime/state.js +5 -0
- package/dist/_internal/workflow/runtime/cloudflare-runner.d.ts +1 -0
- package/dist/_internal/workflow/runtime/cloudflare-runner.js +2 -0
- package/dist/_internal/workflow/runtime/cloudflare-vite.d.ts +1 -0
- package/dist/_internal/workflow/runtime/cloudflare-vite.js +2 -0
- package/dist/_internal/workflow/runtime/vercel-vite.d.ts +1 -0
- package/dist/_internal/workflow/runtime/vercel-vite.js +2 -0
- package/dist/agent/capabilities.d.ts +20 -1
- package/dist/agent/capabilities.js +7 -1
- package/dist/agent/invocations/sqlite.d.ts +1 -0
- package/dist/agent/invocations/sqlite.js +2 -0
- package/dist/agent/mcp.d.ts +1 -0
- package/dist/agent/mcp.js +2 -0
- package/dist/agent/runtime/process.d.ts +1 -0
- package/dist/agent/runtime/process.js +2 -0
- package/dist/agent/vue.d.ts +1 -0
- package/dist/agent/vue.js +2 -0
- package/dist/agent.d.ts +7 -1
- package/dist/agent.js +31 -1
- package/dist/agents-DGL-2SS3.js +53 -0
- package/dist/auth/vue.d.ts +1 -0
- package/dist/auth/vue.js +2 -0
- package/dist/bin.js +57 -8
- package/dist/blob-_CeYUuZh.d.ts +8 -0
- package/dist/browser/actions.d.ts +1 -0
- package/dist/browser/actions.js +2 -0
- package/dist/channels/server.d.ts +1 -0
- package/dist/channels/server.js +2 -0
- package/dist/channels.d.ts +1 -0
- package/dist/channels.js +2 -0
- package/dist/cloudflare-prerender.mjs +24 -0
- package/dist/cloudflare-types.d.ts +1 -0
- package/dist/console/runtime/client/request.d.ts +23 -0
- package/dist/console/runtime/client/request.js +133 -0
- package/dist/console/runtime/client/sections.d.ts +12 -0
- package/dist/console/runtime/client/sections.js +41 -0
- package/dist/console/runtime/client/time.d.ts +4 -0
- package/dist/console/runtime/client/time.js +8 -0
- package/dist/console/runtime/components/console-app.vue +1450 -0
- package/dist/console/runtime/components/console-blob.vue +341 -0
- package/dist/console/runtime/components/console-brand.vue +37 -0
- package/dist/console/runtime/components/console-database-model.ts +219 -0
- package/dist/console/runtime/components/console-database.vue +701 -0
- package/dist/console/runtime/components/console-definitions.vue +440 -0
- package/dist/console/runtime/components/console-frame.vue +13 -0
- package/dist/console/runtime/components/console-health-model.ts +54 -0
- package/dist/console/runtime/components/console-health.vue +236 -0
- package/dist/console/runtime/components/console-home.vue +231 -0
- package/dist/console/runtime/components/console-kv.vue +541 -0
- package/dist/console/runtime/components/console-mark.vue +10 -0
- package/dist/console/runtime/components/console-primitive-switcher.vue +69 -0
- package/dist/console/runtime/components/console-provider.vue +12 -0
- package/dist/console/runtime/components/console-search.vue +435 -0
- package/dist/console/runtime/components/console-session-bootstrap.ts +110 -0
- package/dist/console/runtime/components/console-session-code-preview.vue +76 -0
- package/dist/console/runtime/components/console-session-inspector.vue +726 -0
- package/dist/console/runtime/components/console-session-loading.vue +121 -0
- package/dist/console/runtime/components/console-session-navbar.vue +112 -0
- package/dist/console/runtime/components/console-session-trace-model.ts +414 -0
- package/dist/console/runtime/components/console-session-trace.vue +695 -0
- package/dist/console/runtime/components/console-session.css +1482 -0
- package/dist/console/runtime/components/console-usage.vue +596 -0
- package/dist/console/runtime/console-route.d.ts +10 -0
- package/dist/console/runtime/console-route.js +37 -0
- package/dist/console/runtime/definitions.d.ts +2 -0
- package/dist/console/runtime/definitions.js +15 -0
- package/dist/console/runtime/pages/agents.vue +58 -0
- package/dist/console/runtime/pages/blob.vue +30 -0
- package/dist/console/runtime/pages/databases.vue +67 -0
- package/dist/console/runtime/pages/index.vue +29 -0
- package/dist/console/runtime/pages/kv.vue +68 -0
- package/dist/console/runtime/pages/queues.vue +30 -0
- package/dist/console/runtime/pages/rate-limits.vue +30 -0
- package/dist/console/runtime/pages/sandboxes.vue +27 -0
- package/dist/console/runtime/pages/schedules.vue +30 -0
- package/dist/console/runtime/pages/workflows.vue +30 -0
- package/dist/console/runtime/pages/workspaces.vue +30 -0
- package/dist/console/runtime/public/console/chunks/ChatMessage-CVruGJWM.js +1 -0
- package/dist/console/runtime/public/console/chunks/ChatPrompt-BmTjPf5_.js +1 -0
- package/dist/console/runtime/public/console/chunks/ChatPromptSubmit-DcxguvaS.js +1 -0
- package/dist/console/runtime/public/console/chunks/ChatReasoning-DIMO2K2F.js +1 -0
- package/dist/console/runtime/public/console/chunks/ChatShimmer-C613EbHI.js +1 -0
- package/dist/console/runtime/public/console/chunks/ChatTool-DDmc-ZK6.js +1 -0
- package/dist/console/runtime/public/console/chunks/Collapsible-C0CXnWpw.js +1 -0
- package/dist/console/runtime/public/console/chunks/CollapsibleTrigger-CmJucLnT.js +1 -0
- package/dist/console/runtime/public/console/chunks/Icon-D-AnqCok.js +1 -0
- package/dist/console/runtime/public/console/chunks/abap-LtYK6g-v-CLvhMVsD.js +1 -0
- package/dist/console/runtime/public/console/chunks/actionscript-3-Czo0lKSf--17pq3dv.js +1 -0
- package/dist/console/runtime/public/console/chunks/ada-twHwrVWN-C5qYipkI.js +1 -0
- package/dist/console/runtime/public/console/chunks/andromeeda-DnSv6o6l-vGVdxbeo.js +1 -0
- package/dist/console/runtime/public/console/chunks/andromeeda-vGVdxbeo.js +1 -0
- package/dist/console/runtime/public/console/chunks/angular-html-Ct-40ew8-D8X9MCxo.js +1 -0
- package/dist/console/runtime/public/console/chunks/angular-html-DTyieMYv.js +1 -0
- package/dist/console/runtime/public/console/chunks/angular-ts-D3gV1N-x.js +1 -0
- package/dist/console/runtime/public/console/chunks/angular-ts-D6akBVit-CAEqTior.js +1 -0
- package/dist/console/runtime/public/console/chunks/apache-BIl2qPOf-U0d_L8uA.js +1 -0
- package/dist/console/runtime/public/console/chunks/apex-BkQQFAhi-VAyPSnFM.js +1 -0
- package/dist/console/runtime/public/console/chunks/apl-Cxjn4xYu-QUZjoXcb.js +1 -0
- package/dist/console/runtime/public/console/chunks/applescript-CJ80B5XJ-CCn79oCD.js +1 -0
- package/dist/console/runtime/public/console/chunks/ara-IxnQjO6j-4CJ0cIlV.js +1 -0
- package/dist/console/runtime/public/console/chunks/asciidoc-Dsw6zvwf-DE70LPWp.js +1 -0
- package/dist/console/runtime/public/console/chunks/asm-wBDSgBbA-Cmm7eHzH.js +1 -0
- package/dist/console/runtime/public/console/chunks/astro-BPVTb8uX-BMHg0UsI.js +1 -0
- package/dist/console/runtime/public/console/chunks/astro-CLAWI0Fn.js +1 -0
- package/dist/console/runtime/public/console/chunks/aurora-x-CDeNXAV0.js +1 -0
- package/dist/console/runtime/public/console/chunks/aurora-x-XJ5I8rFc-CDeNXAV0.js +1 -0
- package/dist/console/runtime/public/console/chunks/awk-D6dA05Ye-BWXHIvNe.js +1 -0
- package/dist/console/runtime/public/console/chunks/ayu-dark-CBRGL64--DluEY0Gj.js +1 -0
- package/dist/console/runtime/public/console/chunks/ayu-dark-DluEY0Gj.js +1 -0
- package/dist/console/runtime/public/console/chunks/ayu-light-BlrCS3Ih-C3h-C4tm.js +1 -0
- package/dist/console/runtime/public/console/chunks/ayu-light-C3h-C4tm.js +1 -0
- package/dist/console/runtime/public/console/chunks/ayu-mirage-Bqwy1Gya.js +1 -0
- package/dist/console/runtime/public/console/chunks/ayu-mirage-CqpTmLcF-Bqwy1Gya.js +1 -0
- package/dist/console/runtime/public/console/chunks/ballerina-DIdXD2KH-B7ZEbQpA.js +1 -0
- package/dist/console/runtime/public/console/chunks/bat-hQslfzu--Bo4NYOV-.js +1 -0
- package/dist/console/runtime/public/console/chunks/beancount-CXtOQ8oS-D-usSTwE.js +1 -0
- package/dist/console/runtime/public/console/chunks/berry-CgA2ea0_-DKpUyyne.js +1 -0
- package/dist/console/runtime/public/console/chunks/bibtex-BzgdqG3s-Ci_nEsc7.js +1 -0
- package/dist/console/runtime/public/console/chunks/bicep-CZ338dSk-CUHmPFLl.js +1 -0
- package/dist/console/runtime/public/console/chunks/bird2-GLyzhwkD-C6vDhewU.js +1 -0
- package/dist/console/runtime/public/console/chunks/blade-0LMawyyw-CZBPwR53.js +1 -0
- package/dist/console/runtime/public/console/chunks/blade-CP_mgflB.js +1 -0
- package/dist/console/runtime/public/console/chunks/bsl-0NWGiiFE-mk7PqslV.js +1 -0
- package/dist/console/runtime/public/console/chunks/bundle-web-DTJmdyvB.js +13 -0
- package/dist/console/runtime/public/console/chunks/c-BhmuwSav.js +1 -0
- package/dist/console/runtime/public/console/chunks/c-Dc0_AVM6-CjS7AEt5.js +1 -0
- package/dist/console/runtime/public/console/chunks/c3-BLXk7BLN-BFHwR3_K.js +1 -0
- package/dist/console/runtime/public/console/chunks/cadence-B1ELWULD-CQ2zXKGN.js +1 -0
- package/dist/console/runtime/public/console/chunks/cairo-DjG4M3vq-xb-J0v0e.js +1 -0
- package/dist/console/runtime/public/console/chunks/catppuccin-frappe-3VR1Za6u.js +1 -0
- package/dist/console/runtime/public/console/chunks/catppuccin-frappe-COUg_LSX-3VR1Za6u.js +1 -0
- package/dist/console/runtime/public/console/chunks/catppuccin-latte-DwIHMF0Q.js +1 -0
- package/dist/console/runtime/public/console/chunks/catppuccin-latte-r30LFfsa-DwIHMF0Q.js +1 -0
- package/dist/console/runtime/public/console/chunks/catppuccin-macchiato-D-EwZyPh-DYnBP6_5.js +1 -0
- package/dist/console/runtime/public/console/chunks/catppuccin-macchiato-DYnBP6_5.js +1 -0
- package/dist/console/runtime/public/console/chunks/catppuccin-mocha-C6RD5yh3-DYhrFGRu.js +1 -0
- package/dist/console/runtime/public/console/chunks/catppuccin-mocha-DYhrFGRu.js +1 -0
- package/dist/console/runtime/public/console/chunks/chunk-DK3Fl9T5.js +1 -0
- package/dist/console/runtime/public/console/chunks/clarity-2iIoRiLx-SemFz856.js +1 -0
- package/dist/console/runtime/public/console/chunks/clojure-DDsQ0FaV-DqKBuwfJ.js +1 -0
- package/dist/console/runtime/public/console/chunks/cmake-DPsCB_V6-Bj61d0ZC.js +1 -0
- package/dist/console/runtime/public/console/chunks/cobol-CocL1RYn-DoHa8rFw.js +1 -0
- package/dist/console/runtime/public/console/chunks/codeowners-CxEKPWu0-C8r90Shi.js +1 -0
- package/dist/console/runtime/public/console/chunks/codeql-BwdvwJnv-oeQT6MSM.js +1 -0
- package/dist/console/runtime/public/console/chunks/coffee-DtqnQNu5-Ca3s2Keu.js +1 -0
- package/dist/console/runtime/public/console/chunks/coffee-PUiKoj8Q.js +1 -0
- package/dist/console/runtime/public/console/chunks/common-lisp-DJtwvW4V-Cv5bFMCO.js +1 -0
- package/dist/console/runtime/public/console/chunks/coq-Ds6Ye5el-BrsZFFmf.js +1 -0
- package/dist/console/runtime/public/console/chunks/cpp-CxycoGSa.js +1 -0
- package/dist/console/runtime/public/console/chunks/cpp-Mb4ikSI3-tLY9dtiu.js +1 -0
- package/dist/console/runtime/public/console/chunks/crystal-D4OMbAh_-C9omPlZ-.js +1 -0
- package/dist/console/runtime/public/console/chunks/csharp-CFKaLbHg-oqKa8noW.js +1 -0
- package/dist/console/runtime/public/console/chunks/css-DLlZbWMi.js +1 -0
- package/dist/console/runtime/public/console/chunks/css-DTzmO9U0-CbxoEllx.js +1 -0
- package/dist/console/runtime/public/console/chunks/csv-DqIVFkK7-Dx-8-gkx.js +1 -0
- package/dist/console/runtime/public/console/chunks/csv-Dx-8-gkx.js +1 -0
- package/dist/console/runtime/public/console/chunks/cue-B5KneM5p-CE9AQfxI.js +1 -0
- package/dist/console/runtime/public/console/chunks/cypher-D8Bb8Cq2-ClKdZ_lG.js +1 -0
- package/dist/console/runtime/public/console/chunks/d-BQY8TDgQ-qD-0Kul2.js +1 -0
- package/dist/console/runtime/public/console/chunks/dark-plus-BCxGtnt0-Cs2F2srj.js +1 -0
- package/dist/console/runtime/public/console/chunks/dark-plus-Cs2F2srj.js +1 -0
- package/dist/console/runtime/public/console/chunks/dart-C6DUdjib-CnvKMtbv.js +1 -0
- package/dist/console/runtime/public/console/chunks/dax-S-Noo-ku-BkyTk9wS.js +1 -0
- package/dist/console/runtime/public/console/chunks/desktop-BgOb7Aj4-Dlh5hvp9.js +1 -0
- package/dist/console/runtime/public/console/chunks/diff-Blb4MjsC-woXpYk--.js +1 -0
- package/dist/console/runtime/public/console/chunks/docker-PC1tuYpa-IyjqRm3v.js +1 -0
- package/dist/console/runtime/public/console/chunks/dotenv-Dkdv7Sm2-_5a1GRtc.js +1 -0
- package/dist/console/runtime/public/console/chunks/dracula-BHWKrbxM.js +1 -0
- package/dist/console/runtime/public/console/chunks/dracula-fPErIccy-BHWKrbxM.js +1 -0
- package/dist/console/runtime/public/console/chunks/dracula-soft-5eyTD99u.js +1 -0
- package/dist/console/runtime/public/console/chunks/dracula-soft-BrQbqXs8-5eyTD99u.js +1 -0
- package/dist/console/runtime/public/console/chunks/dream-maker-CngiPd8U-DW3nJb8Q.js +1 -0
- package/dist/console/runtime/public/console/chunks/edge-DrFNu-N9-BY3pzybO.js +1 -0
- package/dist/console/runtime/public/console/chunks/elixir-OpZyQ8Ht-CwWfuiQ1.js +1 -0
- package/dist/console/runtime/public/console/chunks/elm-CjX_545P-Dn-DqM39.js +1 -0
- package/dist/console/runtime/public/console/chunks/emacs-lisp-DxhFFVu_-B4R74twV.js +1 -0
- package/dist/console/runtime/public/console/chunks/erb-trZRdc47-DRBdWH-D.js +1 -0
- package/dist/console/runtime/public/console/chunks/erlang-BJeTH9QH-BfDtvnHZ.js +1 -0
- package/dist/console/runtime/public/console/chunks/everforest-dark-gTeBQCos-sB-x3p7T.js +1 -0
- package/dist/console/runtime/public/console/chunks/everforest-dark-sB-x3p7T.js +1 -0
- package/dist/console/runtime/public/console/chunks/everforest-light-DUjxsp-2-Df2xbC6M.js +1 -0
- package/dist/console/runtime/public/console/chunks/everforest-light-Df2xbC6M.js +1 -0
- package/dist/console/runtime/public/console/chunks/fennel-B3wtZRne-DQxkIbk2.js +1 -0
- package/dist/console/runtime/public/console/chunks/fish-D7qAeWQz-BJitypiv.js +1 -0
- package/dist/console/runtime/public/console/chunks/fluent-BjfpB34g-C03EYrpw.js +1 -0
- package/dist/console/runtime/public/console/chunks/fortran-fixed-form-B_eBTsj9-C2-rkbip.js +1 -0
- package/dist/console/runtime/public/console/chunks/fortran-free-form-yxJ7igsv-CYNrtFtB.js +1 -0
- package/dist/console/runtime/public/console/chunks/fsharp-UvrT6oWG-LCdvSpj6.js +1 -0
- package/dist/console/runtime/public/console/chunks/gdresource-Dl9wvKCd-C3MGX-jo.js +1 -0
- package/dist/console/runtime/public/console/chunks/gdscript-jjgTGGzd-Cp2uCuqX.js +1 -0
- package/dist/console/runtime/public/console/chunks/gdshader-D7JfdFV3-CBce3t8t.js +1 -0
- package/dist/console/runtime/public/console/chunks/genie-DnK2KWIP-CV2tkWYe.js +1 -0
- package/dist/console/runtime/public/console/chunks/gherkin-D6Lr12YQ-DExj1W_8.js +1 -0
- package/dist/console/runtime/public/console/chunks/git-commit-2LMniMoO-CfgJCLX7.js +1 -0
- package/dist/console/runtime/public/console/chunks/git-rebase-DUOURRPN-DbPsFIae.js +1 -0
- package/dist/console/runtime/public/console/chunks/github-dark-C-LZuMrd.js +1 -0
- package/dist/console/runtime/public/console/chunks/github-dark-Dg1hl_QD-C-LZuMrd.js +1 -0
- package/dist/console/runtime/public/console/chunks/github-dark-default-DXG-b-1a.js +1 -0
- package/dist/console/runtime/public/console/chunks/github-dark-default-Dym2P842-DXG-b-1a.js +1 -0
- package/dist/console/runtime/public/console/chunks/github-dark-dimmed-7iDMx266-Bx1FflLF.js +1 -0
- package/dist/console/runtime/public/console/chunks/github-dark-dimmed-Bx1FflLF.js +1 -0
- package/dist/console/runtime/public/console/chunks/github-dark-high-contrast-B_tTalzw.js +1 -0
- package/dist/console/runtime/public/console/chunks/github-dark-high-contrast-DkV2fyPG-B_tTalzw.js +1 -0
- package/dist/console/runtime/public/console/chunks/github-light-BQKYgor9-EUqPIrTm.js +1 -0
- package/dist/console/runtime/public/console/chunks/github-light-EUqPIrTm.js +1 -0
- package/dist/console/runtime/public/console/chunks/github-light-default-BXViO-2h.js +1 -0
- package/dist/console/runtime/public/console/chunks/github-light-default-BZhIfzqQ-BXViO-2h.js +1 -0
- package/dist/console/runtime/public/console/chunks/github-light-high-contrast-B68TUdTA.js +1 -0
- package/dist/console/runtime/public/console/chunks/github-light-high-contrast-C7zHfx4C-B68TUdTA.js +1 -0
- package/dist/console/runtime/public/console/chunks/gleam-CTllUdfC-CSRkHgEL.js +1 -0
- package/dist/console/runtime/public/console/chunks/glimmer-js-D_32hFh8-Dv_1Q6fk.js +1 -0
- package/dist/console/runtime/public/console/chunks/glimmer-ts-CVt002zd-PmMLyqBp.js +1 -0
- package/dist/console/runtime/public/console/chunks/glsl-8MDrjpMp.js +1 -0
- package/dist/console/runtime/public/console/chunks/glsl-pHhzolba-D3h1XPFw.js +1 -0
- package/dist/console/runtime/public/console/chunks/gn-DDjbVPF4-ilITqXS6.js +1 -0
- package/dist/console/runtime/public/console/chunks/gnuplot-DgWvVXI8-7GGW24-e.js +1 -0
- package/dist/console/runtime/public/console/chunks/go-aXtTCanQ-rLFTqkRN.js +1 -0
- package/dist/console/runtime/public/console/chunks/graphql-BjqekQIR-CtUxCAnJ.js +1 -0
- package/dist/console/runtime/public/console/chunks/graphql-C4iAGs1_.js +1 -0
- package/dist/console/runtime/public/console/chunks/groovy-Bw2Ku4bU-CacY0gHj.js +1 -0
- package/dist/console/runtime/public/console/chunks/gruvbox-dark-hard-C820rvS2.js +1 -0
- package/dist/console/runtime/public/console/chunks/gruvbox-dark-hard-CQiwpF03-C820rvS2.js +1 -0
- package/dist/console/runtime/public/console/chunks/gruvbox-dark-medium-BKe6XKBS-BPjhmG05.js +1 -0
- package/dist/console/runtime/public/console/chunks/gruvbox-dark-medium-BPjhmG05.js +1 -0
- package/dist/console/runtime/public/console/chunks/gruvbox-dark-soft-Cz6U6pa4-MrdJrrXF.js +1 -0
- package/dist/console/runtime/public/console/chunks/gruvbox-dark-soft-MrdJrrXF.js +1 -0
- package/dist/console/runtime/public/console/chunks/gruvbox-light-hard-BC_s9l72.js +1 -0
- package/dist/console/runtime/public/console/chunks/gruvbox-light-hard-DgU_i19B-BC_s9l72.js +1 -0
- package/dist/console/runtime/public/console/chunks/gruvbox-light-medium-BAWPOn9u.js +1 -0
- package/dist/console/runtime/public/console/chunks/gruvbox-light-medium-D64I06ER-BAWPOn9u.js +1 -0
- package/dist/console/runtime/public/console/chunks/gruvbox-light-soft-B-YxAs1L-BSMLrYjP.js +1 -0
- package/dist/console/runtime/public/console/chunks/gruvbox-light-soft-BSMLrYjP.js +1 -0
- package/dist/console/runtime/public/console/chunks/hack-BITNGzgt-BwY4KWmq.js +1 -0
- package/dist/console/runtime/public/console/chunks/haml-BJGeH8A5.js +1 -0
- package/dist/console/runtime/public/console/chunks/haml-DVwRP8W9-C4Ue42xj.js +1 -0
- package/dist/console/runtime/public/console/chunks/handlebars-OC1LcHwO.js +1 -0
- package/dist/console/runtime/public/console/chunks/handlebars-T3TJj8Il-BLQCwuJT.js +1 -0
- package/dist/console/runtime/public/console/chunks/haskell-CfGsE1Cf-D8IpX4py.js +1 -0
- package/dist/console/runtime/public/console/chunks/haxe-B0odltAZ-OTjmBuCE.js +1 -0
- package/dist/console/runtime/public/console/chunks/hcl-DHg_Osgo-Dh228itO.js +1 -0
- package/dist/console/runtime/public/console/chunks/hjson-Cuaphql8-CxZEssPk.js +1 -0
- package/dist/console/runtime/public/console/chunks/hlsl-BJLUNfne-Cvrh5tZx.js +1 -0
- package/dist/console/runtime/public/console/chunks/horizon-CE9ld1lL.js +1 -0
- package/dist/console/runtime/public/console/chunks/horizon-DYoumREk-CE9ld1lL.js +1 -0
- package/dist/console/runtime/public/console/chunks/horizon-bright-CPyV7XIA-DSNQnXHK.js +1 -0
- package/dist/console/runtime/public/console/chunks/horizon-bright-DSNQnXHK.js +1 -0
- package/dist/console/runtime/public/console/chunks/houston-B3NWfq0V-CsvMBhTu.js +1 -0
- package/dist/console/runtime/public/console/chunks/houston-CsvMBhTu.js +1 -0
- package/dist/console/runtime/public/console/chunks/html-CamevgpM-BbT95zHF.js +1 -0
- package/dist/console/runtime/public/console/chunks/html-Cs160JwT.js +1 -0
- package/dist/console/runtime/public/console/chunks/html-derivative-GiQ9zDJU.js +1 -0
- package/dist/console/runtime/public/console/chunks/html-derivative-jMOJf6rB-Kh3SdD3S.js +1 -0
- package/dist/console/runtime/public/console/chunks/http-BEHztmFP-BxphIJE7.js +1 -0
- package/dist/console/runtime/public/console/chunks/http-Cgwuv9UR.js +1 -0
- package/dist/console/runtime/public/console/chunks/hurl-DMKCZZMv.js +1 -0
- package/dist/console/runtime/public/console/chunks/hurl-LmFBxrwm-CGo4dqUD.js +1 -0
- package/dist/console/runtime/public/console/chunks/hxml-BQ4V4Tez-BaHUc7lX.js +1 -0
- package/dist/console/runtime/public/console/chunks/hy-CJKxDzbh-CZbG8q4J.js +1 -0
- package/dist/console/runtime/public/console/chunks/imba-96qKoJCa-DsUTQ-LC.js +1 -0
- package/dist/console/runtime/public/console/chunks/imba-DsUTQ-LC.js +1 -0
- package/dist/console/runtime/public/console/chunks/ini-C24lZfdM-B5eOa1yu.js +1 -0
- package/dist/console/runtime/public/console/chunks/java-CUcXVav_.js +1 -0
- package/dist/console/runtime/public/console/chunks/java-Cfowl-Ex-BnGnzH2k.js +1 -0
- package/dist/console/runtime/public/console/chunks/javascript-C4sF7sej-B29qPxDa.js +1 -0
- package/dist/console/runtime/public/console/chunks/javascript-DrVpc-sp.js +1 -0
- package/dist/console/runtime/public/console/chunks/jinja-C17UUgXU.js +1 -0
- package/dist/console/runtime/public/console/chunks/jinja-CCAEwzP4-PaInFpq5.js +1 -0
- package/dist/console/runtime/public/console/chunks/jison-BKCoBkyT-BRL7eVgb.js +1 -0
- package/dist/console/runtime/public/console/chunks/jison-ByjIV4zh.js +1 -0
- package/dist/console/runtime/public/console/chunks/json-E4f3l6hr-DuNL0Aj9.js +1 -0
- package/dist/console/runtime/public/console/chunks/json-qhed-kSA.js +1 -0
- package/dist/console/runtime/public/console/chunks/json5-BR5RXkoi.js +1 -0
- package/dist/console/runtime/public/console/chunks/json5-xULSgPQI-BR5RXkoi.js +1 -0
- package/dist/console/runtime/public/console/chunks/jsonc-CYpm1nAK.js +1 -0
- package/dist/console/runtime/public/console/chunks/jsonc-Cu6rqcrJ-CYpm1nAK.js +1 -0
- package/dist/console/runtime/public/console/chunks/jsonl-Bp0qqr10-CmCQp5Yx.js +1 -0
- package/dist/console/runtime/public/console/chunks/jsonl-CmCQp5Yx.js +1 -0
- package/dist/console/runtime/public/console/chunks/jsonnet-BafgE6cE-CJTPZ8u_.js +1 -0
- package/dist/console/runtime/public/console/chunks/jssm-Dx5A5sBR-DXw9l8Rf.js +1 -0
- package/dist/console/runtime/public/console/chunks/jsx-BZjOirBP-Dga5sQe3.js +1 -0
- package/dist/console/runtime/public/console/chunks/jsx-C-HlKHLe.js +1 -0
- package/dist/console/runtime/public/console/chunks/julia-Ca_tGyZB.js +1 -0
- package/dist/console/runtime/public/console/chunks/julia-nEdJo0dp-CJRta6ZT.js +1 -0
- package/dist/console/runtime/public/console/chunks/just-Brtw3q7S-DmytbepJ.js +1 -0
- package/dist/console/runtime/public/console/chunks/kanagawa-dragon-CXtmUGW6.js +1 -0
- package/dist/console/runtime/public/console/chunks/kanagawa-dragon-DExkuQAs-CXtmUGW6.js +1 -0
- package/dist/console/runtime/public/console/chunks/kanagawa-lotus-BN08jTvb.js +1 -0
- package/dist/console/runtime/public/console/chunks/kanagawa-lotus-qdYh7_RY-BN08jTvb.js +1 -0
- package/dist/console/runtime/public/console/chunks/kanagawa-wave-CSW_hADG-CTweb8Dz.js +1 -0
- package/dist/console/runtime/public/console/chunks/kanagawa-wave-CTweb8Dz.js +1 -0
- package/dist/console/runtime/public/console/chunks/kdl-DkTyxPcj-CsD5j6eV.js +1 -0
- package/dist/console/runtime/public/console/chunks/kotlin-BHE8CoV9-DhhofPvG.js +1 -0
- package/dist/console/runtime/public/console/chunks/kusto-6FdaWTzR-C7mF5XQf.js +1 -0
- package/dist/console/runtime/public/console/chunks/laserwave-C_8bwKvT.js +1 -0
- package/dist/console/runtime/public/console/chunks/laserwave-DkfjiLxA-C_8bwKvT.js +1 -0
- package/dist/console/runtime/public/console/chunks/latex-QHQNiZDD-fcyJN6QK.js +1 -0
- package/dist/console/runtime/public/console/chunks/lean-BwOKScIt-CewbzKMR.js +1 -0
- package/dist/console/runtime/public/console/chunks/less-BzbdhFUi-DVTAwKKz.js +1 -0
- package/dist/console/runtime/public/console/chunks/less-DVTAwKKz.js +1 -0
- package/dist/console/runtime/public/console/chunks/light-plus-DVQuIRkW.js +1 -0
- package/dist/console/runtime/public/console/chunks/light-plus-DuO6rXxZ-DVQuIRkW.js +1 -0
- package/dist/console/runtime/public/console/chunks/liquid-DYQ7uW5u-JGNMHTpg.js +1 -0
- package/dist/console/runtime/public/console/chunks/llvm-uY68ROGz-Cm23YOpf.js +1 -0
- package/dist/console/runtime/public/console/chunks/log-Dad54gsi-BNLmms1o.js +1 -0
- package/dist/console/runtime/public/console/chunks/logo-DTXV8SKw-Cluzi2Zq.js +1 -0
- package/dist/console/runtime/public/console/chunks/lua-BhkUWs1q-CVcL4bwV.js +1 -0
- package/dist/console/runtime/public/console/chunks/luau-YC4aaMmR-FMPmPwt6.js +1 -0
- package/dist/console/runtime/public/console/chunks/make-B2ukzWs3-Dixweg8N.js +1 -0
- package/dist/console/runtime/public/console/chunks/markdown-BYOwaDjH.js +1 -0
- package/dist/console/runtime/public/console/chunks/markdown-CkmxmzqY-BYOwaDjH.js +1 -0
- package/dist/console/runtime/public/console/chunks/marko-BHWvxp04-U7nYXRKW.js +1 -0
- package/dist/console/runtime/public/console/chunks/marko-DmV4Eg2F.js +1 -0
- package/dist/console/runtime/public/console/chunks/material-theme-Bm3Qr25_.js +1 -0
- package/dist/console/runtime/public/console/chunks/material-theme-C_YrwKEa-Bm3Qr25_.js +1 -0
- package/dist/console/runtime/public/console/chunks/material-theme-darker-2IIEA8gg.js +1 -0
- package/dist/console/runtime/public/console/chunks/material-theme-darker-DB3YVCla-2IIEA8gg.js +1 -0
- package/dist/console/runtime/public/console/chunks/material-theme-lighter-D2fgNrBK-uhdI0v04.js +1 -0
- package/dist/console/runtime/public/console/chunks/material-theme-lighter-uhdI0v04.js +1 -0
- package/dist/console/runtime/public/console/chunks/material-theme-ocean-CHQ94UKr.js +1 -0
- package/dist/console/runtime/public/console/chunks/material-theme-ocean-DVy172Rs-CHQ94UKr.js +1 -0
- package/dist/console/runtime/public/console/chunks/material-theme-palenight-B5W6OYN7.js +1 -0
- package/dist/console/runtime/public/console/chunks/material-theme-palenight-uMMwIfpG-B5W6OYN7.js +1 -0
- package/dist/console/runtime/public/console/chunks/matlab-CfRK6IMC-D7qyCx1q.js +1 -0
- package/dist/console/runtime/public/console/chunks/mdc-BVkdQPZX.js +1 -0
- package/dist/console/runtime/public/console/chunks/mdc-Dg7VPYLa-CshLRYP7.js +1 -0
- package/dist/console/runtime/public/console/chunks/mdx-BK9ZufRc-DQZ5AkYe.js +1 -0
- package/dist/console/runtime/public/console/chunks/mdx-DQZ5AkYe.js +1 -0
- package/dist/console/runtime/public/console/chunks/mermaid-r7OoIYpE-Bk4SNUv9.js +1 -0
- package/dist/console/runtime/public/console/chunks/min-dark-BSWPekZh.js +1 -0
- package/dist/console/runtime/public/console/chunks/min-dark-C7Ec8I_2-BSWPekZh.js +1 -0
- package/dist/console/runtime/public/console/chunks/min-light-Be6foA7m-DDpmG2fV.js +1 -0
- package/dist/console/runtime/public/console/chunks/min-light-DDpmG2fV.js +1 -0
- package/dist/console/runtime/public/console/chunks/mipsasm-EL46Y4Xg-BMqwQI7S.js +1 -0
- package/dist/console/runtime/public/console/chunks/mojo-YCzvCoMT-BgCJLMeH.js +1 -0
- package/dist/console/runtime/public/console/chunks/monokai-CREPpJ3k-CdkpiU2Y.js +1 -0
- package/dist/console/runtime/public/console/chunks/monokai-CdkpiU2Y.js +1 -0
- package/dist/console/runtime/public/console/chunks/moonbit-B_9L5rST-CaWjb8XO.js +1 -0
- package/dist/console/runtime/public/console/chunks/move-Dqi5fhOb-B1IS1UjX.js +1 -0
- package/dist/console/runtime/public/console/chunks/narrat-D9rrR0H5-_X_XdTYD.js +1 -0
- package/dist/console/runtime/public/console/chunks/nextflow-CgUAk9iA-CTMUe4Ca.js +1 -0
- package/dist/console/runtime/public/console/chunks/nextflow-groovy-CdFFX-gF-DJMQeKeT.js +1 -0
- package/dist/console/runtime/public/console/chunks/nginx-Q-E8IJvs-DiQO9reH.js +1 -0
- package/dist/console/runtime/public/console/chunks/night-owl-CqqbiLON-DhmEMT88.js +1 -0
- package/dist/console/runtime/public/console/chunks/night-owl-DhmEMT88.js +1 -0
- package/dist/console/runtime/public/console/chunks/night-owl-light-B9vYgGRt-eJ-hLW7d.js +1 -0
- package/dist/console/runtime/public/console/chunks/night-owl-light-eJ-hLW7d.js +1 -0
- package/dist/console/runtime/public/console/chunks/nim-CNcTuF14-W9Ucwkhx.js +1 -0
- package/dist/console/runtime/public/console/chunks/nix-Bm1Ax-Z3-IvuFDN5E.js +1 -0
- package/dist/console/runtime/public/console/chunks/nord-BZ9DVmcN-Cb4Vim4T.js +1 -0
- package/dist/console/runtime/public/console/chunks/nord-Cb4Vim4T.js +1 -0
- package/dist/console/runtime/public/console/chunks/nushell-r7hBzeS_-DcLAeLz5.js +1 -0
- package/dist/console/runtime/public/console/chunks/objective-c-6dJF64Dt-D1A_Heim.js +1 -0
- package/dist/console/runtime/public/console/chunks/objective-cpp-_ooRQ-PY-BsSzOQcm.js +1 -0
- package/dist/console/runtime/public/console/chunks/ocaml-vm1Y8An6-O90oeIOV.js +1 -0
- package/dist/console/runtime/public/console/chunks/odin-vjOJSyfV-B1RWQWA5.js +1 -0
- package/dist/console/runtime/public/console/chunks/one-dark-pro-CLwyXe_n.js +1 -0
- package/dist/console/runtime/public/console/chunks/one-dark-pro-Ev8UPkf4-CLwyXe_n.js +1 -0
- package/dist/console/runtime/public/console/chunks/one-light-CzxBC38_-D7Lr4KcI.js +1 -0
- package/dist/console/runtime/public/console/chunks/one-light-D7Lr4KcI.js +1 -0
- package/dist/console/runtime/public/console/chunks/openscad-jn-f1Ocl-BUDT5pXO.js +1 -0
- package/dist/console/runtime/public/console/chunks/pascal-D8-gNZ2I-4ZHwLPI5.js +1 -0
- package/dist/console/runtime/public/console/chunks/perl-Bbgb6Twx-CHGXAzGq.js +1 -0
- package/dist/console/runtime/public/console/chunks/php-CBOR45_G-D5pyod9R.js +1 -0
- package/dist/console/runtime/public/console/chunks/php-J5BBb-PR.js +1 -0
- package/dist/console/runtime/public/console/chunks/pierre-code-view-DYpF5M8R-BiohFcCD.js +1511 -0
- package/dist/console/runtime/public/console/chunks/pierre-dark-DDWDl8g6-CpLgRqie.js +1 -0
- package/dist/console/runtime/public/console/chunks/pierre-dark-protanopia-deuteranopia-C35UMuvO-B35FxJx-.js +1 -0
- package/dist/console/runtime/public/console/chunks/pierre-dark-soft-Bb-4-biO-kZQmAZld.js +1 -0
- package/dist/console/runtime/public/console/chunks/pierre-dark-tritanopia-CIJISGWF-CpjhbsIL.js +1 -0
- package/dist/console/runtime/public/console/chunks/pierre-dark-vibrant-8oZzB3gw-CpQYzh95.js +1 -0
- package/dist/console/runtime/public/console/chunks/pierre-light-CWhW4NrH-CoaEpmwp.js +1 -0
- package/dist/console/runtime/public/console/chunks/pierre-light-protanopia-deuteranopia-u0U7N4Hn-0fSaH845.js +1 -0
- package/dist/console/runtime/public/console/chunks/pierre-light-soft-BCU6fuhO-lWLdNTOI.js +1 -0
- package/dist/console/runtime/public/console/chunks/pierre-light-tritanopia-3c8Yx3co-CEbqgOJL.js +1 -0
- package/dist/console/runtime/public/console/chunks/pierre-light-vibrant-Cwh332o_-D80Fkn33.js +1 -0
- package/dist/console/runtime/public/console/chunks/pkl-C7lWzykI-ot-7Btpt.js +1 -0
- package/dist/console/runtime/public/console/chunks/plastic-BGkJ2das-DQwYfKfQ.js +1 -0
- package/dist/console/runtime/public/console/chunks/plastic-DQwYfKfQ.js +1 -0
- package/dist/console/runtime/public/console/chunks/plsql-DCNXypXO-DGHpHOYJ.js +1 -0
- package/dist/console/runtime/public/console/chunks/po-IjpR1yHO-BiJDBrnU.js +1 -0
- package/dist/console/runtime/public/console/chunks/poimandres-CpnMgZuc-DRFjx7u4.js +1 -0
- package/dist/console/runtime/public/console/chunks/poimandres-DRFjx7u4.js +1 -0
- package/dist/console/runtime/public/console/chunks/polar-4pN1JrJ8-C7UOKdEL.js +1 -0
- package/dist/console/runtime/public/console/chunks/postcss-BXeXVLqQ.js +1 -0
- package/dist/console/runtime/public/console/chunks/postcss-D1gKt4z_-BXeXVLqQ.js +1 -0
- package/dist/console/runtime/public/console/chunks/powerquery-SrvS_NBM-DNMTfnFr.js +1 -0
- package/dist/console/runtime/public/console/chunks/powershell-CpTLv_ai-DshXNtvi.js +1 -0
- package/dist/console/runtime/public/console/chunks/prisma-BWfa4-tI-BsRQq5mF.js +1 -0
- package/dist/console/runtime/public/console/chunks/prolog-Bacii3Ue-iXnhIJG7.js +1 -0
- package/dist/console/runtime/public/console/chunks/proto-ClkOcAW0-DB4EqR-F.js +1 -0
- package/dist/console/runtime/public/console/chunks/pug-CfJcGJfh.js +1 -0
- package/dist/console/runtime/public/console/chunks/pug-Cn_U_o_I-Cw4zFEpZ.js +1 -0
- package/dist/console/runtime/public/console/chunks/puppet-CQlPp728-CDv2pdJW.js +1 -0
- package/dist/console/runtime/public/console/chunks/purescript-CLpaGMbw-9MfHhQsQ.js +1 -0
- package/dist/console/runtime/public/console/chunks/python-BjnOIxPe-gzcpVVnB.js +1 -0
- package/dist/console/runtime/public/console/chunks/python-gzcpVVnB.js +1 -0
- package/dist/console/runtime/public/console/chunks/qml-DNlrbxJT-B_IzAFFX.js +1 -0
- package/dist/console/runtime/public/console/chunks/qmldir-Dz8ttxjf-DCQb3MpD.js +1 -0
- package/dist/console/runtime/public/console/chunks/qss-Iltvkn1C-Fe1Jh2GI.js +1 -0
- package/dist/console/runtime/public/console/chunks/r-Dzep-lPg.js +1 -0
- package/dist/console/runtime/public/console/chunks/r-VqTZMNY_-EnO4GoeC.js +1 -0
- package/dist/console/runtime/public/console/chunks/racket-DRv7j6nv-DcIDlBhZ.js +1 -0
- package/dist/console/runtime/public/console/chunks/raku-DI9yGpeW-B3gFvitq.js +1 -0
- package/dist/console/runtime/public/console/chunks/razor-Bw2un3e8-CtGvw0jo.js +1 -0
- package/dist/console/runtime/public/console/chunks/red-CJ3rzSJv.js +1 -0
- package/dist/console/runtime/public/console/chunks/red-EHiRGXSv-CJ3rzSJv.js +1 -0
- package/dist/console/runtime/public/console/chunks/reg-DpJf71oO-CRGYupPL.js +1 -0
- package/dist/console/runtime/public/console/chunks/regexp-5HbFqwky-C3xQXL6t.js +1 -0
- package/dist/console/runtime/public/console/chunks/regexp-R83qIIH_.js +1 -0
- package/dist/console/runtime/public/console/chunks/rel-BT0iIKKw-BtDbiS_P.js +1 -0
- package/dist/console/runtime/public/console/chunks/riscv-CvzikGLb-Ckw8ddFX.js +1 -0
- package/dist/console/runtime/public/console/chunks/ron-DzAo6FTJ-VUp2lXgN.js +1 -0
- package/dist/console/runtime/public/console/chunks/rose-pine-BthvhNj6.js +1 -0
- package/dist/console/runtime/public/console/chunks/rose-pine-DTI-z1Qp-BthvhNj6.js +1 -0
- package/dist/console/runtime/public/console/chunks/rose-pine-dawn-BIiGXpWs-Dg85fqjY.js +1 -0
- package/dist/console/runtime/public/console/chunks/rose-pine-dawn-Dg85fqjY.js +1 -0
- package/dist/console/runtime/public/console/chunks/rose-pine-moon-DU4wt90U-hon4tzzS.js +1 -0
- package/dist/console/runtime/public/console/chunks/rose-pine-moon-hon4tzzS.js +1 -0
- package/dist/console/runtime/public/console/chunks/rosmsg-CyYq6XdT-CAekHB0j.js +1 -0
- package/dist/console/runtime/public/console/chunks/rst-BZPDb03W-BDIwqmQR.js +1 -0
- package/dist/console/runtime/public/console/chunks/ruby-BbVp0_gQ-BUOn3oxT.js +1 -0
- package/dist/console/runtime/public/console/chunks/rust-COBzcmTx-Cfkwpbl8.js +1 -0
- package/dist/console/runtime/public/console/chunks/sas-DSkdG4wF-BE4zxtJ7.js +1 -0
- package/dist/console/runtime/public/console/chunks/sass-DI2zJwx7-DXrisJhu.js +1 -0
- package/dist/console/runtime/public/console/chunks/sass-DXrisJhu.js +1 -0
- package/dist/console/runtime/public/console/chunks/scala-CtSYTRYT-DKOlJaKm.js +1 -0
- package/dist/console/runtime/public/console/chunks/scheme-D3A2QBtM-DQCgrYNe.js +1 -0
- package/dist/console/runtime/public/console/chunks/scss-BQ7uffpQ-D2aPazKS.js +1 -0
- package/dist/console/runtime/public/console/chunks/scss-DTeHeodw.js +1 -0
- package/dist/console/runtime/public/console/chunks/sdbl-CdQg5gu1-bTVj8UrX.js +1 -0
- package/dist/console/runtime/public/console/chunks/shaderlab-CWP9wBCf-C6U2tjWC.js +1 -0
- package/dist/console/runtime/public/console/chunks/shellscript-B42c0JAn-D5OxpxEd.js +1 -0
- package/dist/console/runtime/public/console/chunks/shellscript-CLZ0U2zV.js +1 -0
- package/dist/console/runtime/public/console/chunks/shellsession-Oc9-NqAv-C1K_F4Is.js +1 -0
- package/dist/console/runtime/public/console/chunks/slack-dark-BS2AOOdo-DnToyrRv.js +1 -0
- package/dist/console/runtime/public/console/chunks/slack-dark-DnToyrRv.js +1 -0
- package/dist/console/runtime/public/console/chunks/slack-ochin-B2OO5cIa.js +1 -0
- package/dist/console/runtime/public/console/chunks/slack-ochin-Nc7Cucwk-B2OO5cIa.js +1 -0
- package/dist/console/runtime/public/console/chunks/smalltalk-BEQkVl4K-B16xEiuN.js +1 -0
- package/dist/console/runtime/public/console/chunks/snazzy-light-4G7pJPwS.js +1 -0
- package/dist/console/runtime/public/console/chunks/snazzy-light-C2ghKZXY-4G7pJPwS.js +1 -0
- package/dist/console/runtime/public/console/chunks/solarized-dark-DV17i1UV.js +1 -0
- package/dist/console/runtime/public/console/chunks/solarized-dark-UHgjRWhr-DV17i1UV.js +1 -0
- package/dist/console/runtime/public/console/chunks/solarized-light-B-Zcwve2-DSh2HLQt.js +1 -0
- package/dist/console/runtime/public/console/chunks/solarized-light-DSh2HLQt.js +1 -0
- package/dist/console/runtime/public/console/chunks/solidity-lB9VjfB9-CKzVLygQ.js +1 -0
- package/dist/console/runtime/public/console/chunks/soy-tgh9u9aW-Cm_LtJoW.js +1 -0
- package/dist/console/runtime/public/console/chunks/sparql-B4t0ZbEe-CXgkFCv7.js +1 -0
- package/dist/console/runtime/public/console/chunks/splunk-xP_ZjUH2-BC2Px7Mm.js +1 -0
- package/dist/console/runtime/public/console/chunks/sql-C7n9abzK.js +1 -0
- package/dist/console/runtime/public/console/chunks/sql-CrPlEQn4-COghB3-E.js +1 -0
- package/dist/console/runtime/public/console/chunks/ssh-config-DXFPABYp-BgfXC-Er.js +1 -0
- package/dist/console/runtime/public/console/chunks/stata-D_KqT8cj-oQQpG6t_.js +1 -0
- package/dist/console/runtime/public/console/chunks/stylus-B6D30XZt.js +1 -0
- package/dist/console/runtime/public/console/chunks/stylus-ZZDn1yUO-B6D30XZt.js +1 -0
- package/dist/console/runtime/public/console/chunks/surrealql-C0KhgoyZ-DqXNFH_A.js +1 -0
- package/dist/console/runtime/public/console/chunks/svelte-CRpWSJAY.js +1 -0
- package/dist/console/runtime/public/console/chunks/svelte-DuHT0xxw-Bs0TxuUS.js +1 -0
- package/dist/console/runtime/public/console/chunks/swift-BTPQlRLK-DonLKvLd.js +1 -0
- package/dist/console/runtime/public/console/chunks/synthwave-84-CPtGYwOz-nFMaYfgc.js +1 -0
- package/dist/console/runtime/public/console/chunks/synthwave-84-nFMaYfgc.js +1 -0
- package/dist/console/runtime/public/console/chunks/system-verilog-BEoxaBuU-DJ5XKQeo.js +1 -0
- package/dist/console/runtime/public/console/chunks/systemd-DFbUltlW-BxMlprV5.js +1 -0
- package/dist/console/runtime/public/console/chunks/talonscript-CLxaFu-b-CohzipZa.js +1 -0
- package/dist/console/runtime/public/console/chunks/tasl-_AAbKiWM-DMoTqEGO.js +1 -0
- package/dist/console/runtime/public/console/chunks/tcl-DLe0Tsfm-CZd0xW_V.js +1 -0
- package/dist/console/runtime/public/console/chunks/templ-DF54artD-BPb_zNLV.js +1 -0
- package/dist/console/runtime/public/console/chunks/terraform-v0KN9QQh-DswuEJGm.js +1 -0
- package/dist/console/runtime/public/console/chunks/tex-Bbhb8xAP-9R8lE_en.js +1 -0
- package/dist/console/runtime/public/console/chunks/tokyo-night-BKYoawWu-oM2G3aXe.js +1 -0
- package/dist/console/runtime/public/console/chunks/tokyo-night-oM2G3aXe.js +1 -0
- package/dist/console/runtime/public/console/chunks/toml-B7BHZIqX-CcmNWLt0.js +1 -0
- package/dist/console/runtime/public/console/chunks/ts-tags-DH1AB-Ri-CgEe3BFX.js +1 -0
- package/dist/console/runtime/public/console/chunks/ts-tags-DJjZLMnt.js +1 -0
- package/dist/console/runtime/public/console/chunks/tsv-BorGVq2Z-sltzmVWM.js +1 -0
- package/dist/console/runtime/public/console/chunks/tsx-B7QamQLF.js +1 -0
- package/dist/console/runtime/public/console/chunks/tsx-BR8s1Lhs-DiW36VFk.js +1 -0
- package/dist/console/runtime/public/console/chunks/turtle-BEG5g_eT-ByJddavk.js +1 -0
- package/dist/console/runtime/public/console/chunks/tv-WsfYJXat.js +1 -0
- package/dist/console/runtime/public/console/chunks/twig-DziFF7iU-DLOFbR4k.js +1 -0
- package/dist/console/runtime/public/console/chunks/typescript-D8TR6ff2-CCKRkaRI.js +1 -0
- package/dist/console/runtime/public/console/chunks/typescript-DzLO-qqB.js +1 -0
- package/dist/console/runtime/public/console/chunks/typespec-C_R5TbvO-BRdr0IET.js +1 -0
- package/dist/console/runtime/public/console/chunks/typst-BV9w0z8--DI99ib-x.js +1 -0
- package/dist/console/runtime/public/console/chunks/v-DfbeXLo8-DETTlOr0.js +1 -0
- package/dist/console/runtime/public/console/chunks/vala-BnnASFsX-zf12oZj6.js +1 -0
- package/dist/console/runtime/public/console/chunks/vb-DU29mvss-Djn5o6TS.js +1 -0
- package/dist/console/runtime/public/console/chunks/verilog-BW5U03XW-CiiDBU1e.js +1 -0
- package/dist/console/runtime/public/console/chunks/vesper-ClvmKzqD-DdrHHSXu.js +1 -0
- package/dist/console/runtime/public/console/chunks/vesper-DdrHHSXu.js +1 -0
- package/dist/console/runtime/public/console/chunks/vhdl-Co2XFKY7-BroJfC0k.js +1 -0
- package/dist/console/runtime/public/console/chunks/viml-BReTXeDA-DvXPmvsu.js +1 -0
- package/dist/console/runtime/public/console/chunks/vitesse-black-BY6Qtyq--fwtXNY1n.js +1 -0
- package/dist/console/runtime/public/console/chunks/vitesse-black-fwtXNY1n.js +1 -0
- package/dist/console/runtime/public/console/chunks/vitesse-dark-BT-v_EgR-BZCL-v6S.js +1 -0
- package/dist/console/runtime/public/console/chunks/vitesse-dark-BZCL-v6S.js +1 -0
- package/dist/console/runtime/public/console/chunks/vitesse-light-Box8ZFz6-VbXTXTou.js +1 -0
- package/dist/console/runtime/public/console/chunks/vitesse-light-VbXTXTou.js +1 -0
- package/dist/console/runtime/public/console/chunks/vue-BRy8iDCZ-CL7P9CNz.js +1 -0
- package/dist/console/runtime/public/console/chunks/vue-CQQ6_PvN.js +1 -0
- package/dist/console/runtime/public/console/chunks/vue-html-B24bjO_3-BY2skbNe.js +1 -0
- package/dist/console/runtime/public/console/chunks/vue-html-Ce5SCNOK.js +1 -0
- package/dist/console/runtime/public/console/chunks/vue-vine-DKH1_YEZ.js +1 -0
- package/dist/console/runtime/public/console/chunks/vue-vine-l7O7Mg81-CFWzX3HC.js +1 -0
- package/dist/console/runtime/public/console/chunks/vue.runtime.esm-bundler-COh-O3z7.js +3 -0
- package/dist/console/runtime/public/console/chunks/vyper-C6KGx0YU-CgoNMtux.js +1 -0
- package/dist/console/runtime/public/console/chunks/wasm-BRCjOXGL-BnjxR4X6.js +1 -0
- package/dist/console/runtime/public/console/chunks/wasm-BnjxR4X6.js +1 -0
- package/dist/console/runtime/public/console/chunks/wasm-ByWQv1Qj.js +1 -0
- package/dist/console/runtime/public/console/chunks/wasm-gNIKwGlD-ByWQv1Qj.js +1 -0
- package/dist/console/runtime/public/console/chunks/wenyan-BeysbCrW-C8pVoKbM.js +1 -0
- package/dist/console/runtime/public/console/chunks/wgsl-1s5rV5xS-BsKzXJz4.js +1 -0
- package/dist/console/runtime/public/console/chunks/wgsl-BsKzXJz4.js +1 -0
- package/dist/console/runtime/public/console/chunks/wikitext-wjhjmmzD-ClFFjSW2.js +1 -0
- package/dist/console/runtime/public/console/chunks/wit-CeQiCbz_-DdvCle-K.js +1 -0
- package/dist/console/runtime/public/console/chunks/wit-DdvCle-K.js +1 -0
- package/dist/console/runtime/public/console/chunks/wolfram-CcZPfnLd-DLL8P-h_.js +1 -0
- package/dist/console/runtime/public/console/chunks/xml-CduVPlYa-BZCwbgEk.js +1 -0
- package/dist/console/runtime/public/console/chunks/xml-G-voesMw.js +1 -0
- package/dist/console/runtime/public/console/chunks/xsl-BeH_vLTK-DeKk-5KU.js +1 -0
- package/dist/console/runtime/public/console/chunks/yaml-Cb0uRU1q-CkSC4c4u.js +1 -0
- package/dist/console/runtime/public/console/chunks/yaml-rwi0_p6S.js +1 -0
- package/dist/console/runtime/public/console/chunks/zenscript-BoijL7rl-BnlCZFoB.js +1 -0
- package/dist/console/runtime/public/console/chunks/zig-lTQvxhLD-CMLA9XwU.js +1 -0
- package/dist/console/runtime/public/console/console-Bwq3z75a.css +3 -0
- package/dist/console/runtime/public/console/console-Cl-xrMah.js +1371 -0
- package/dist/console/runtime/rpc.d.ts +35 -0
- package/dist/console/runtime/rpc.js +16 -0
- package/dist/console/runtime/sections.d.ts +2 -0
- package/dist/console/runtime/sections.js +126 -0
- package/dist/console/runtime/server/agents.get.d.ts +9 -0
- package/dist/console/runtime/server/agents.get.js +12 -0
- package/dist/console/runtime/server/blob.d.ts +2 -0
- package/dist/console/runtime/server/blob.get.d.ts +25 -0
- package/dist/console/runtime/server/blob.get.js +74 -0
- package/dist/console/runtime/server/blob.js +18 -0
- package/dist/console/runtime/server/database.d.ts +2 -0
- package/dist/console/runtime/server/database.get.d.ts +51 -0
- package/dist/console/runtime/server/database.get.js +192 -0
- package/dist/console/runtime/server/database.js +17 -0
- package/dist/console/runtime/server/definitions.d.ts +2 -0
- package/dist/console/runtime/server/definitions.get.d.ts +10 -0
- package/dist/console/runtime/server/definitions.get.js +23 -0
- package/dist/console/runtime/server/definitions.js +22 -0
- package/dist/console/runtime/server/devframe.d.ts +13 -0
- package/dist/console/runtime/server/devframe.js +133 -0
- package/dist/console/runtime/server/invocation-capabilities.get.d.ts +8 -0
- package/dist/console/runtime/server/invocation-capabilities.get.js +14 -0
- package/dist/console/runtime/server/invocation.get.d.ts +36 -0
- package/dist/console/runtime/server/invocation.get.js +46 -0
- package/dist/console/runtime/server/invocations.get.d.ts +7 -0
- package/dist/console/runtime/server/invocations.get.js +225 -0
- package/dist/console/runtime/server/kv.d.ts +2 -0
- package/dist/console/runtime/server/kv.get.d.ts +24 -0
- package/dist/console/runtime/server/kv.get.js +236 -0
- package/dist/console/runtime/server/kv.js +18 -0
- package/dist/console/runtime/server/page.get.d.ts +6 -0
- package/dist/console/runtime/server/page.get.js +33 -0
- package/dist/console/runtime/server/search.get.d.ts +8 -0
- package/dist/console/runtime/server/search.get.js +2 -0
- package/dist/console/runtime/server/sections.d.ts +2 -0
- package/dist/console/runtime/server/sections.get.d.ts +9 -0
- package/dist/console/runtime/server/sections.get.js +13 -0
- package/dist/console/runtime/server/sections.js +16 -0
- package/dist/console/runtime/server/usage.get.d.ts +6 -0
- package/dist/console/runtime/server/usage.get.js +44 -0
- package/dist/console/server.d.ts +7 -0
- package/dist/console/server.js +28 -0
- package/dist/console.d.ts +4 -0
- package/dist/console.js +4 -0
- package/dist/database/drizzle.d.ts +16 -1
- package/dist/database/drizzle.js +8 -1
- package/dist/database-CW-WjW4u.d.ts +8 -0
- package/dist/definitions-BHmB22eM.d.ts +7 -0
- package/dist/definitions-CfSmoS5G.d.ts +17 -0
- package/dist/env/provider.d.ts +1 -0
- package/dist/env/provider.js +2 -0
- package/dist/env.d.ts +1 -0
- package/dist/index-B072hyCd.d.ts +59 -0
- package/dist/index.d.ts +2 -44
- package/dist/index.js +2 -1
- package/dist/internal-12r-XCbk.d.ts +20 -0
- package/dist/internal-DzLLx0iR.js +304 -0
- package/dist/invocations-qwMRTSy7.js +364 -0
- package/dist/kv-DLGscNQ_.d.ts +8 -0
- package/dist/nuxt.d.ts +56 -4
- package/dist/nuxt.js +701 -21
- package/dist/realtime/server.d.ts +1 -0
- package/dist/realtime/server.js +2 -0
- package/dist/realtime/vue.d.ts +1 -0
- package/dist/realtime/vue.js +2 -0
- package/dist/realtime.d.ts +1 -0
- package/dist/realtime.js +2 -0
- package/dist/request-DxBwxGnk.js +72 -0
- package/dist/request-NErg_P5m.d.ts +43 -0
- package/dist/runtime/node.d.ts +1 -0
- package/dist/runtime/node.js +2 -0
- package/dist/search.get-ClTCn-mh.js +100 -0
- package/dist/sections-7HoMOIGH.d.ts +9 -0
- package/dist/sections-DVsqeLAF.d.ts +100 -0
- package/dist/server-BFxDhCzA.d.ts +78 -0
- package/dist/source/client.d.ts +1 -0
- package/dist/source/client.js +2 -0
- package/dist/source/content/client.d.ts +1 -0
- package/dist/source/content/client.js +2 -0
- package/dist/source/content.d.ts +1 -0
- package/dist/source/content.js +2 -0
- package/dist/source/file.d.ts +1 -0
- package/dist/source/file.js +2 -0
- package/dist/source/github.d.ts +1 -0
- package/dist/source/github.js +2 -0
- package/dist/source/glob.d.ts +1 -0
- package/dist/source/glob.js +2 -0
- package/dist/source/markdown.d.ts +1 -0
- package/dist/source/markdown.js +2 -0
- package/dist/source/mcp.d.ts +1 -0
- package/dist/source/mcp.js +2 -0
- package/dist/source/server.d.ts +24 -0
- package/dist/source/server.js +25 -0
- package/dist/source/vite.d.ts +8 -0
- package/dist/source/vite.js +18 -0
- package/dist/source.d.ts +66 -1
- package/dist/source.js +103 -1
- package/dist/src-XEJGHDr9.js +5247 -0
- package/dist/types-BucGTJnk.js +168 -0
- package/dist/ui/headless.d.ts +1 -0
- package/dist/ui/headless.js +2 -0
- package/dist/ui/nuxt.d.ts +3 -0
- package/dist/ui/nuxt.js +3 -0
- package/dist/ui/styles.css +2562 -0
- package/dist/ui/vite.d.ts +3 -0
- package/dist/ui/vite.js +3 -0
- package/dist/ui.d.ts +1 -0
- package/dist/ui.js +2 -0
- package/dist/usage-CoZa_8fx.js +361 -0
- package/package.json +119 -31
- package/dist/agent/harness/local-sandbox.d.ts +0 -1
- package/dist/agent/harness/local-sandbox.js +0 -2
- package/dist/email/drivers/smtp.d.ts +0 -1
- package/dist/email/drivers/smtp.js +0 -2
- package/dist/src-o6zB-soj.js +0 -1135
package/dist/src-o6zB-soj.js
DELETED
|
@@ -1,1135 +0,0 @@
|
|
|
1
|
-
import { builtinModules, createRequire } from "node:module";
|
|
2
|
-
import { existsSync, readFileSync, statSync } from "node:fs";
|
|
3
|
-
import { basename, dirname, extname, isAbsolute, join, relative, resolve, sep } from "node:path";
|
|
4
|
-
import { fileURLToPath } from "node:url";
|
|
5
|
-
import { hubAgent } from "@vite-hub/agent/vite";
|
|
6
|
-
import { hubAuth } from "@vite-hub/auth/vite";
|
|
7
|
-
import { hubBlob } from "@vite-hub/blob/vite";
|
|
8
|
-
import { hubBrowser } from "@vite-hub/browser/vite";
|
|
9
|
-
import { hubDb } from "@vite-hub/database/vite";
|
|
10
|
-
import { hubEmail } from "@vite-hub/email/vite";
|
|
11
|
-
import { hubEnv } from "@vite-hub/env/vite";
|
|
12
|
-
import { hubKv, hubKvOptionalPeerResolver, resolveKVViteConfig } from "@vite-hub/kv/vite";
|
|
13
|
-
import { hubMarkdownTemplate } from "@vite-hub/markdown-template/vite";
|
|
14
|
-
import { hubQueue } from "@vite-hub/queue/vite";
|
|
15
|
-
import { hubRateLimit } from "@vite-hub/rate-limit/vite";
|
|
16
|
-
import { hubSandbox } from "@vite-hub/sandbox/vite";
|
|
17
|
-
import { hubSchedule } from "@vite-hub/schedule/vite";
|
|
18
|
-
import { hubWorkflow } from "@vite-hub/workflow/vite";
|
|
19
|
-
import { hubWorkspace } from "@vite-hub/workspace/vite";
|
|
20
|
-
import { access, cp, mkdir, readFile, readdir, realpath, rm, writeFile } from "node:fs/promises";
|
|
21
|
-
//#region package.json
|
|
22
|
-
var exports = {
|
|
23
|
-
".": "./dist/index.js",
|
|
24
|
-
"./_internal/agent": "./dist/_internal/agent.js",
|
|
25
|
-
"./_internal/agent/cloudflare": "./dist/_internal/agent/cloudflare.js",
|
|
26
|
-
"./_internal/agent/cloudflare/state": "./dist/_internal/agent/cloudflare/state.js",
|
|
27
|
-
"./_internal/agent/runtime/workflow": "./dist/_internal/agent/runtime/workflow.js",
|
|
28
|
-
"./_internal/agent/server": "./dist/_internal/agent/server.js",
|
|
29
|
-
"./_internal/agent/server/internal": "./dist/_internal/agent/server/internal.js",
|
|
30
|
-
"./_internal/agent/server/workspace": "./dist/_internal/agent/server/workspace.js",
|
|
31
|
-
"./_internal/agent/state/sqlite": "./dist/_internal/agent/state/sqlite.js",
|
|
32
|
-
"./_internal/blob": "./dist/_internal/blob.js",
|
|
33
|
-
"./_internal/blob/runtime/state": "./dist/_internal/blob/runtime/state.js",
|
|
34
|
-
"./_internal/kv": "./dist/_internal/kv.js",
|
|
35
|
-
"./_internal/kv/runtime/disabled-upstash": "./dist/_internal/kv/runtime/disabled-upstash.js",
|
|
36
|
-
"./_internal/markdown-template": "./dist/_internal/markdown-template.js",
|
|
37
|
-
"./_internal/rate-limit/runtime": "./dist/_internal/rate-limit/runtime.js",
|
|
38
|
-
"./_internal/sandbox/runtime/state": "./dist/_internal/sandbox/runtime/state.js",
|
|
39
|
-
"./_internal/schedule": "./dist/_internal/schedule.js",
|
|
40
|
-
"./_internal/schedule/runtime": "./dist/_internal/schedule/runtime.js",
|
|
41
|
-
"./_internal/schedule/runtime/driver": "./dist/_internal/schedule/runtime/driver.js",
|
|
42
|
-
"./_internal/schedule/runtime/process": "./dist/_internal/schedule/runtime/process.js",
|
|
43
|
-
"./_internal/schedule/runtime/static": "./dist/_internal/schedule/runtime/static.js",
|
|
44
|
-
"./_internal/workflow": "./dist/_internal/workflow.js",
|
|
45
|
-
"./_internal/workflow/runtime/execute": "./dist/_internal/workflow/runtime/execute.js",
|
|
46
|
-
"./_internal/workflow/runtime/state": "./dist/_internal/workflow/runtime/state.js",
|
|
47
|
-
"./_internal/workspace": "./dist/_internal/workspace.js",
|
|
48
|
-
"./_internal/workspace/internal/runtime/hosted": "./dist/_internal/workspace/internal/runtime/hosted.js",
|
|
49
|
-
"./_internal/workspace/internal/runtime/hosted-vercel-blob": "./dist/_internal/workspace/internal/runtime/hosted-vercel-blob.js",
|
|
50
|
-
"./_internal/workspace/internal/runtime/state": "./dist/_internal/workspace/internal/runtime/state.js",
|
|
51
|
-
"./_internal/workspace/runtime": "./dist/_internal/workspace/runtime.js",
|
|
52
|
-
"./agent": "./dist/agent.js",
|
|
53
|
-
"./agent/capabilities": "./dist/agent/capabilities.js",
|
|
54
|
-
"./agent/channels": "./dist/agent/channels.js",
|
|
55
|
-
"./agent/cloudflare": "./dist/agent/cloudflare.js",
|
|
56
|
-
"./agent/eval": "./dist/agent/eval.js",
|
|
57
|
-
"./agent/harness/local-sandbox": "./dist/agent/harness/local-sandbox.js",
|
|
58
|
-
"./agent/server": "./dist/agent/server.js",
|
|
59
|
-
"./agent/state/sqlite": "./dist/agent/state/sqlite.js",
|
|
60
|
-
"./auth": "./dist/auth.js",
|
|
61
|
-
"./auth/agent": "./dist/auth/agent.js",
|
|
62
|
-
"./auth/server": "./dist/auth/server.js",
|
|
63
|
-
"./blob": "./dist/blob.js",
|
|
64
|
-
"./blob/content-type": "./dist/blob/content-type.js",
|
|
65
|
-
"./box": "./dist/box.js",
|
|
66
|
-
"./browser": "./dist/browser.js",
|
|
67
|
-
"./browser/controllers/cdp": "./dist/browser/controllers/cdp.js",
|
|
68
|
-
"./browser/controllers/playwright": "./dist/browser/controllers/playwright.js",
|
|
69
|
-
"./browser/providers/cloudflare": "./dist/browser/providers/cloudflare.js",
|
|
70
|
-
"./browser/providers/local": "./dist/browser/providers/local.js",
|
|
71
|
-
"./database": "./dist/database.js",
|
|
72
|
-
"./database/drizzle": "./dist/database/drizzle.js",
|
|
73
|
-
"./email": "./dist/email.js",
|
|
74
|
-
"./email/drivers/smtp": "./dist/email/drivers/smtp.js",
|
|
75
|
-
"./email/markdown": "./dist/email/markdown.js",
|
|
76
|
-
"./email/server": "./dist/email/server.js",
|
|
77
|
-
"./env": "./dist/env.js",
|
|
78
|
-
"./env/presets": "./dist/env/presets.js",
|
|
79
|
-
"./env/schema": "./dist/env/schema.js",
|
|
80
|
-
"./env/secret": "./dist/env/secret.js",
|
|
81
|
-
"./env/server": "./dist/env/server.js",
|
|
82
|
-
"./kv": "./dist/kv.js",
|
|
83
|
-
"./markdown-template": "./dist/markdown-template.js",
|
|
84
|
-
"./nuxt": "./dist/nuxt.js",
|
|
85
|
-
"./queue": "./dist/queue.js",
|
|
86
|
-
"./rate-limit": "./dist/rate-limit.js",
|
|
87
|
-
"./runtime": "./dist/runtime.js",
|
|
88
|
-
"./sandbox": "./dist/sandbox.js",
|
|
89
|
-
"./schedule": "./dist/schedule.js",
|
|
90
|
-
"./schedule/runtime": "./dist/schedule/runtime.js",
|
|
91
|
-
"./schedule/runtime/driver": "./dist/schedule/runtime/driver.js",
|
|
92
|
-
"./schedule/runtime/process": "./dist/schedule/runtime/process.js",
|
|
93
|
-
"./shell": "./dist/shell.js",
|
|
94
|
-
"./shell/providers/cloudflare": "./dist/shell/providers/cloudflare.js",
|
|
95
|
-
"./shell/providers/just-bash": "./dist/shell/providers/just-bash.js",
|
|
96
|
-
"./shell/workspace": "./dist/shell/workspace.js",
|
|
97
|
-
"./source": "./dist/source.js",
|
|
98
|
-
"./workflow": "./dist/workflow.js",
|
|
99
|
-
"./workspace": "./dist/workspace.js",
|
|
100
|
-
"./workspace/cloudflare": "./dist/workspace/cloudflare.js",
|
|
101
|
-
"./workspace/collections": "./dist/workspace/collections.js",
|
|
102
|
-
"./workspace/collections/client": "./dist/workspace/collections/client.js",
|
|
103
|
-
"./workspace/loader": "./dist/workspace/loader.js",
|
|
104
|
-
"./workspace/publish": "./dist/workspace/publish.js",
|
|
105
|
-
"./workspace/runtime": "./dist/workspace/runtime.js",
|
|
106
|
-
"./workspace/server": "./dist/workspace/server.js",
|
|
107
|
-
"./package.json": "./package.json",
|
|
108
|
-
"./tsconfig": "./tsconfig.json"
|
|
109
|
-
};
|
|
110
|
-
//#endregion
|
|
111
|
-
//#region ../internal/src/build/deployment-plan-output.ts
|
|
112
|
-
async function finalizeDeploymentPlanOutput(options) {
|
|
113
|
-
const nitroOutputRoot = resolve(options.rootDir, options.outputDir ?? options.plan.output.directory);
|
|
114
|
-
const outputRoot = options.plan.preset === "netlify" && basename(nitroOutputRoot) === "functions-internal" ? dirname(nitroOutputRoot) : nitroOutputRoot;
|
|
115
|
-
const entry = options.plan.output.entry ? resolve(outputRoot, options.plan.output.entry) : void 0;
|
|
116
|
-
if (entry) try {
|
|
117
|
-
await access(entry);
|
|
118
|
-
} catch (error) {
|
|
119
|
-
if (error.code !== "ENOENT") throw error;
|
|
120
|
-
throw new Error("[vitehub] The " + JSON.stringify(options.plan.preset) + " preset did not emit its required entry: " + entry + ".");
|
|
121
|
-
}
|
|
122
|
-
const manifest = {
|
|
123
|
-
host: options.plan.host,
|
|
124
|
-
...options.identity ? { identity: options.identity } : {},
|
|
125
|
-
output: {
|
|
126
|
-
...options.plan.output,
|
|
127
|
-
directory: relative(options.rootDir, outputRoot).replaceAll("\\", "/") || "."
|
|
128
|
-
},
|
|
129
|
-
preset: options.plan.preset,
|
|
130
|
-
runtime: options.plan.runtime,
|
|
131
|
-
services: options.services ?? options.plan.services
|
|
132
|
-
};
|
|
133
|
-
const manifestPath = resolve(outputRoot, "deployment.json");
|
|
134
|
-
await mkdir(dirname(manifestPath), { recursive: true });
|
|
135
|
-
await writeFile(manifestPath, JSON.stringify(manifest, null, 2) + "\n", "utf8");
|
|
136
|
-
}
|
|
137
|
-
//#endregion
|
|
138
|
-
//#region ../internal/src/build/deno-runtime-packages.ts
|
|
139
|
-
const builtinModuleNames = new Set([...builtinModules, ...builtinModules.map((name) => `node:${name}`)]);
|
|
140
|
-
const runtimeExtensions = new Set([
|
|
141
|
-
".cjs",
|
|
142
|
-
".js",
|
|
143
|
-
".mjs",
|
|
144
|
-
".ts"
|
|
145
|
-
]);
|
|
146
|
-
const denoRuntimeTargets = [{
|
|
147
|
-
cpu: "arm64",
|
|
148
|
-
libc: "glibc",
|
|
149
|
-
os: "linux"
|
|
150
|
-
}, {
|
|
151
|
-
cpu: "x64",
|
|
152
|
-
libc: "glibc",
|
|
153
|
-
os: "linux"
|
|
154
|
-
}];
|
|
155
|
-
function packageNameFromSpecifier(specifier) {
|
|
156
|
-
if (!specifier || specifier.startsWith(".") || specifier.startsWith("/") || specifier.startsWith("#")) return;
|
|
157
|
-
if (builtinModuleNames.has(specifier) || specifier.includes(":")) return;
|
|
158
|
-
const parts = specifier.split("/");
|
|
159
|
-
return specifier.startsWith("@") ? parts.slice(0, 2).join("/") : parts[0];
|
|
160
|
-
}
|
|
161
|
-
function collectBundledPackages(source) {
|
|
162
|
-
const packages = /* @__PURE__ */ new Map();
|
|
163
|
-
for (const match of source.matchAll(/(?:^|[\s"'`(])((?:[A-Za-z]:)?[^\s"'`()]*?node_modules[/\\](?:\.pnpm[/\\][^/\\]+[/\\]node_modules[/\\])?((?:@[^/\\]+[/\\])?[^/\\\s"'`()]+))/gm)) {
|
|
164
|
-
const name = packageNameFromSpecifier(match[2].replaceAll("\\", "/"));
|
|
165
|
-
if (name) packages.set(name, match[1]);
|
|
166
|
-
}
|
|
167
|
-
return packages;
|
|
168
|
-
}
|
|
169
|
-
function collectImportedPackageNames(source) {
|
|
170
|
-
const names = /* @__PURE__ */ new Set();
|
|
171
|
-
const executableSource = maskInertImportText(source);
|
|
172
|
-
for (const pattern of [
|
|
173
|
-
/(?:^|;)\s*(?:import|export)\s*["']([^"']+)["']/gm,
|
|
174
|
-
/(?:^|;)\s*(?:import|export)[^;\n]*?\bfrom\s*["']([^"']+)["']/gm,
|
|
175
|
-
/\brequire\s*\(\s*["']([^"']+)["']\s*\)/g,
|
|
176
|
-
/\bimport\s*\(\s*["']([^"']+)["']\s*\)/g
|
|
177
|
-
]) for (const match of executableSource.matchAll(pattern)) {
|
|
178
|
-
const name = packageNameFromSpecifier(match[1]);
|
|
179
|
-
if (name) names.add(name);
|
|
180
|
-
}
|
|
181
|
-
return names;
|
|
182
|
-
}
|
|
183
|
-
function maskInertImportText(source) {
|
|
184
|
-
let output = "";
|
|
185
|
-
for (let index = 0; index < source.length;) {
|
|
186
|
-
const character = source[index];
|
|
187
|
-
const next = source[index + 1];
|
|
188
|
-
if (character === "/" && next === "/") {
|
|
189
|
-
const end = source.indexOf("\n", index);
|
|
190
|
-
const length = (end === -1 ? source.length : end) - index;
|
|
191
|
-
output += " ".repeat(length);
|
|
192
|
-
index += length;
|
|
193
|
-
continue;
|
|
194
|
-
}
|
|
195
|
-
if (character === "/" && next === "*") {
|
|
196
|
-
const closing = source.indexOf("*/", index + 2);
|
|
197
|
-
const length = (closing === -1 ? source.length : closing + 2) - index;
|
|
198
|
-
output += source.slice(index, index + length).replace(/[^\n]/g, " ");
|
|
199
|
-
index += length;
|
|
200
|
-
continue;
|
|
201
|
-
}
|
|
202
|
-
if (character === "\"" || character === "'" || character === "`") {
|
|
203
|
-
const prefix = output.slice(Math.max(0, output.length - 120));
|
|
204
|
-
const keep = character !== "`" && /(?:\b(?:from|import|export)|\b(?:import|require)\s*\()\s*$/.test(prefix);
|
|
205
|
-
let end = index + 1;
|
|
206
|
-
while (end < source.length) if (source[end] === "\\") end += 2;
|
|
207
|
-
else if (source[end++] === character) break;
|
|
208
|
-
const literal = source.slice(index, end);
|
|
209
|
-
output += keep ? literal : literal.replace(/[^\n]/g, " ");
|
|
210
|
-
index = end;
|
|
211
|
-
continue;
|
|
212
|
-
}
|
|
213
|
-
output += character;
|
|
214
|
-
index++;
|
|
215
|
-
}
|
|
216
|
-
return output;
|
|
217
|
-
}
|
|
218
|
-
async function copyRuntimePackagesToNodeModules(options) {
|
|
219
|
-
const copied = /* @__PURE__ */ new Set();
|
|
220
|
-
const staged = /* @__PURE__ */ new Set();
|
|
221
|
-
const resolver = createRequire(join(options.rootDir, "package.json"));
|
|
222
|
-
for (const runtimePackage of options.packages) await copyPackageToNodeModules(runtimePackage.name, resolver, options.rootDir, options.outputNodeModules, copied, staged, runtimePackage);
|
|
223
|
-
}
|
|
224
|
-
async function copyPackageToNodeModules(name, resolver, fromDir, outputNodeModules, copied, staged, options) {
|
|
225
|
-
let packageJsonPath = options.packageJsonPath;
|
|
226
|
-
if (packageJsonPath) try {
|
|
227
|
-
await access(packageJsonPath);
|
|
228
|
-
} catch (error) {
|
|
229
|
-
if (error.code !== "ENOENT") throw error;
|
|
230
|
-
packageJsonPath = void 0;
|
|
231
|
-
}
|
|
232
|
-
packageJsonPath ??= await resolvePackageJson(name, resolver, fromDir);
|
|
233
|
-
if (!packageJsonPath) {
|
|
234
|
-
if (options.optional) return;
|
|
235
|
-
throw new Error("Could not resolve package.json for " + name + ".");
|
|
236
|
-
}
|
|
237
|
-
const resolvedPackageJsonPath = await realpath(packageJsonPath);
|
|
238
|
-
const packageDir = dirname(resolvedPackageJsonPath);
|
|
239
|
-
const packageJson = JSON.parse(await readFile(resolvedPackageJsonPath, "utf8"));
|
|
240
|
-
if (options.onlyIfOptionalDependencies && !Object.keys(packageJson.optionalDependencies || {}).length) return;
|
|
241
|
-
const packageKey = name + "\0" + resolvedPackageJsonPath;
|
|
242
|
-
if (copied.has(packageKey)) return;
|
|
243
|
-
const targetDir = join(outputNodeModules, ...name.split("/"));
|
|
244
|
-
const stagedKey = packageKey + "\0" + targetDir;
|
|
245
|
-
if (staged.has(stagedKey)) return;
|
|
246
|
-
copied.add(packageKey);
|
|
247
|
-
await rm(targetDir, {
|
|
248
|
-
force: true,
|
|
249
|
-
recursive: true
|
|
250
|
-
});
|
|
251
|
-
await cp(packageDir, targetDir, {
|
|
252
|
-
dereference: true,
|
|
253
|
-
filter: (source) => relative(packageDir, source).split(sep)[0] !== "node_modules",
|
|
254
|
-
recursive: true
|
|
255
|
-
});
|
|
256
|
-
staged.add(stagedKey);
|
|
257
|
-
const packageRequire = createRequire(resolvedPackageJsonPath);
|
|
258
|
-
const optionalDependencyNames = new Set(Object.keys(packageJson.optionalDependencies || {}));
|
|
259
|
-
const dependencyNames = new Set(Object.keys(packageJson.dependencies || {}).filter((dependencyName) => !optionalDependencyNames.has(dependencyName)));
|
|
260
|
-
if (options.includeOptionalDependencies) for (const dependencyName of Object.keys(packageJson.optionalDependencies || {})) {
|
|
261
|
-
const dependencyPackageJsonPath = await resolvePackageJson(dependencyName, packageRequire, packageDir);
|
|
262
|
-
if (!dependencyPackageJsonPath) continue;
|
|
263
|
-
if (supportsDenoRuntime(JSON.parse(await readFile(dependencyPackageJsonPath, "utf8")))) dependencyNames.add(dependencyName);
|
|
264
|
-
}
|
|
265
|
-
if (options.includePeerDependencies) {
|
|
266
|
-
for (const dependencyName of Object.keys(packageJson.peerDependencies || {})) if (!packageJson.peerDependenciesMeta?.[dependencyName]?.optional) dependencyNames.add(dependencyName);
|
|
267
|
-
}
|
|
268
|
-
for (const dependencyName of dependencyNames) await copyPackageToNodeModules(dependencyName, packageRequire, packageDir, options.hoistOptionalDependencies && packageJson.optionalDependencies?.[dependencyName] ? outputNodeModules : join(targetDir, "node_modules"), copied, staged, {
|
|
269
|
-
hoistOptionalDependencies: options.hoistOptionalDependencies && Boolean(packageJson.optionalDependencies?.[dependencyName]),
|
|
270
|
-
includeOptionalDependencies: options.includeOptionalDependencies,
|
|
271
|
-
includePeerDependencies: options.includePeerDependencies,
|
|
272
|
-
name: dependencyName,
|
|
273
|
-
optional: Boolean(packageJson.optionalDependencies?.[dependencyName])
|
|
274
|
-
});
|
|
275
|
-
copied.delete(packageKey);
|
|
276
|
-
}
|
|
277
|
-
function supportsDenoRuntime(packageJson) {
|
|
278
|
-
return denoRuntimeTargets.some((target) => supportsConstraint(packageJson.os, target.os) && supportsConstraint(packageJson.cpu, target.cpu) && supportsConstraint(packageJson.libc, target.libc));
|
|
279
|
-
}
|
|
280
|
-
function supportsConstraint(values, target) {
|
|
281
|
-
if (!values?.length) return true;
|
|
282
|
-
if (values.length === 1 && values[0] === "any") return true;
|
|
283
|
-
if (values.includes(`!${target}`)) return false;
|
|
284
|
-
const included = values.filter((value) => !value.startsWith("!"));
|
|
285
|
-
return included.length === 0 || included.includes(target);
|
|
286
|
-
}
|
|
287
|
-
async function resolvePackageJson(name, resolver, fromDir) {
|
|
288
|
-
try {
|
|
289
|
-
return resolver.resolve(name + "/package.json");
|
|
290
|
-
} catch (error) {
|
|
291
|
-
if (!isPackageResolutionMiss(error)) throw error;
|
|
292
|
-
}
|
|
293
|
-
try {
|
|
294
|
-
let current = dirname(resolver.resolve(name));
|
|
295
|
-
while (current !== dirname(current)) {
|
|
296
|
-
const candidate = join(current, "package.json");
|
|
297
|
-
try {
|
|
298
|
-
await access(candidate);
|
|
299
|
-
if (JSON.parse(await readFile(candidate, "utf8")).name === name) return candidate;
|
|
300
|
-
} catch (error) {
|
|
301
|
-
if (error.code !== "ENOENT") throw error;
|
|
302
|
-
}
|
|
303
|
-
current = dirname(current);
|
|
304
|
-
}
|
|
305
|
-
} catch (error) {
|
|
306
|
-
if (!isPackageResolutionMiss(error)) throw error;
|
|
307
|
-
}
|
|
308
|
-
let current = fromDir;
|
|
309
|
-
while (current !== dirname(current)) {
|
|
310
|
-
const candidate = join(current, "node_modules", ...name.split("/"), "package.json");
|
|
311
|
-
try {
|
|
312
|
-
await access(candidate);
|
|
313
|
-
return candidate;
|
|
314
|
-
} catch (error) {
|
|
315
|
-
if (error.code !== "ENOENT") throw error;
|
|
316
|
-
}
|
|
317
|
-
current = dirname(current);
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
function isPackageResolutionMiss(error) {
|
|
321
|
-
const code = error?.code;
|
|
322
|
-
return code === "MODULE_NOT_FOUND" || code === "ERR_MODULE_NOT_FOUND" || code === "ERR_PACKAGE_PATH_NOT_EXPORTED";
|
|
323
|
-
}
|
|
324
|
-
async function runtimeSourceFiles(serverDir) {
|
|
325
|
-
return (await readdir(serverDir, {
|
|
326
|
-
recursive: true,
|
|
327
|
-
withFileTypes: true
|
|
328
|
-
})).filter((entry) => entry.isFile() && runtimeExtensions.has(extname(entry.name))).map((entry) => resolve(entry.parentPath, entry.name));
|
|
329
|
-
}
|
|
330
|
-
async function readRuntimePackages(serverDir, rootDir) {
|
|
331
|
-
const packages = /* @__PURE__ */ new Map();
|
|
332
|
-
for (const file of await runtimeSourceFiles(serverDir)) {
|
|
333
|
-
const source = await readFile(file, "utf8");
|
|
334
|
-
for (const [name, packagePath] of collectBundledPackages(source)) {
|
|
335
|
-
const existing = packages.get(name);
|
|
336
|
-
packages.set(name, {
|
|
337
|
-
...existing,
|
|
338
|
-
hoistOptionalDependencies: true,
|
|
339
|
-
includeOptionalDependencies: true,
|
|
340
|
-
includePeerDependencies: true,
|
|
341
|
-
name,
|
|
342
|
-
onlyIfOptionalDependencies: existing?.onlyIfOptionalDependencies ?? true,
|
|
343
|
-
optional: existing?.optional ?? true,
|
|
344
|
-
packageJsonPath: resolve(isAbsolute(packagePath) ? packagePath : resolve(rootDir, packagePath), "package.json")
|
|
345
|
-
});
|
|
346
|
-
}
|
|
347
|
-
for (const name of collectImportedPackageNames(source)) packages.set(name, {
|
|
348
|
-
...packages.get(name),
|
|
349
|
-
includeOptionalDependencies: true,
|
|
350
|
-
includePeerDependencies: true,
|
|
351
|
-
name,
|
|
352
|
-
onlyIfOptionalDependencies: false,
|
|
353
|
-
optional: false
|
|
354
|
-
});
|
|
355
|
-
}
|
|
356
|
-
return [...packages.values()].sort((a, b) => a.name.localeCompare(b.name));
|
|
357
|
-
}
|
|
358
|
-
function denoDeployRunnerSource(deploymentName) {
|
|
359
|
-
return `import { spawn } from "node:child_process"
|
|
360
|
-
import { access, cp, mkdtemp, realpath, rm } from "node:fs/promises"
|
|
361
|
-
import { tmpdir } from "node:os"
|
|
362
|
-
import { dirname, isAbsolute, join, relative, resolve } from "node:path"
|
|
363
|
-
import { fileURLToPath } from "node:url"
|
|
364
|
-
|
|
365
|
-
const organization = process.env.DENO_DEPLOY_ORG
|
|
366
|
-
const app = process.env.DENO_DEPLOY_APP || process.env.VITEHUB_DEPLOYMENT_NAME || ${JSON.stringify(deploymentName)}
|
|
367
|
-
const region = process.env.DENO_DEPLOY_REGION || "global"
|
|
368
|
-
|
|
369
|
-
if (!organization || !app) {
|
|
370
|
-
throw new Error("DENO_DEPLOY_ORG and DENO_DEPLOY_APP (or VITEHUB_DEPLOYMENT_NAME) are required.")
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
let activeChild
|
|
374
|
-
|
|
375
|
-
function run(args, cwd) {
|
|
376
|
-
return new Promise((resolve, reject) => {
|
|
377
|
-
const child = spawn("deno", args, { cwd, stdio: "inherit" })
|
|
378
|
-
activeChild = child
|
|
379
|
-
child.on("error", reject)
|
|
380
|
-
child.on("exit", (code, signal) => {
|
|
381
|
-
activeChild = undefined
|
|
382
|
-
resolve({ code, signal })
|
|
383
|
-
})
|
|
384
|
-
})
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
async function enclosingGitRoot(path) {
|
|
388
|
-
let current = resolve(path)
|
|
389
|
-
while (true) {
|
|
390
|
-
try {
|
|
391
|
-
await access(join(current, ".git"))
|
|
392
|
-
return current
|
|
393
|
-
} catch (error) {
|
|
394
|
-
if (error?.code !== "ENOENT") throw error
|
|
395
|
-
}
|
|
396
|
-
const parent = dirname(current)
|
|
397
|
-
if (parent === current) return
|
|
398
|
-
current = parent
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
function contains(parent, child) {
|
|
403
|
-
const path = relative(parent, child)
|
|
404
|
-
return path === "" || (!path.startsWith("..") && !isAbsolute(path))
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
const sourceRoot = await realpath(fileURLToPath(new URL(".", import.meta.url)))
|
|
408
|
-
const uploadRoot = await realpath(await mkdtemp(join(tmpdir(), "vitehub-deno-deploy-")))
|
|
409
|
-
const signals = ["SIGINT", "SIGTERM"]
|
|
410
|
-
const handleSignal = (signal) => {
|
|
411
|
-
activeChild?.kill(signal)
|
|
412
|
-
void rm(uploadRoot, { force: true, recursive: true }).finally(() => {
|
|
413
|
-
process.kill(process.pid, signal)
|
|
414
|
-
})
|
|
415
|
-
}
|
|
416
|
-
for (const signal of signals) process.once(signal, handleSignal)
|
|
417
|
-
|
|
418
|
-
try {
|
|
419
|
-
if (contains(sourceRoot, uploadRoot) || await enclosingGitRoot(uploadRoot)) {
|
|
420
|
-
throw new Error("Deno deployment staging must be outside the generated output and any enclosing Git repository. Set TMPDIR to an external directory.")
|
|
421
|
-
}
|
|
422
|
-
await cp(sourceRoot, uploadRoot, { recursive: true })
|
|
423
|
-
|
|
424
|
-
const common = ["--allow-node-modules", "--org", organization, "--app", app]
|
|
425
|
-
const creation = await run(["deploy", "create", ".", "--source", "local", "--do-not-use-detected-build-config", "--runtime-mode", "dynamic", "--entrypoint", "server/index.mjs", "--working-directory", ".", "--region", region, ...common], uploadRoot)
|
|
426
|
-
if (creation.code !== 0) {
|
|
427
|
-
const deployment = await run(["deploy", ".", "--prod", ...common], uploadRoot)
|
|
428
|
-
if (deployment.code !== 0) {
|
|
429
|
-
throw new Error("deno deploy exited with " + (deployment.signal || "code " + deployment.code))
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
} finally {
|
|
433
|
-
for (const signal of signals) process.off(signal, handleSignal)
|
|
434
|
-
await rm(uploadRoot, { force: true, recursive: true })
|
|
435
|
-
}
|
|
436
|
-
`;
|
|
437
|
-
}
|
|
438
|
-
async function finalizeDenoDeploymentOutput(options) {
|
|
439
|
-
const outputDir = resolve(options.rootDir, options.outputDir ?? ".output");
|
|
440
|
-
const serverDir = join(outputDir, "server");
|
|
441
|
-
const packages = await readRuntimePackages(serverDir, options.rootDir);
|
|
442
|
-
await copyRuntimePackagesToNodeModules({
|
|
443
|
-
outputNodeModules: join(outputDir, "node_modules"),
|
|
444
|
-
packages,
|
|
445
|
-
rootDir: options.rootDir
|
|
446
|
-
});
|
|
447
|
-
const denoConfig = {
|
|
448
|
-
nodeModulesDir: "manual",
|
|
449
|
-
tasks: { start: "deno run -A ./server/index.mjs" }
|
|
450
|
-
};
|
|
451
|
-
await writeFile(join(serverDir, "index.ts"), "await import(\"./index.\" + \"mjs\")\n", "utf8");
|
|
452
|
-
await writeFile(join(outputDir, "deno.json"), `${JSON.stringify(denoConfig, null, 2)}\n`, "utf8");
|
|
453
|
-
await writeFile(join(outputDir, "deploy.mjs"), denoDeployRunnerSource(options.deploymentName), "utf8");
|
|
454
|
-
}
|
|
455
|
-
//#endregion
|
|
456
|
-
//#region ../internal/src/deployment.ts
|
|
457
|
-
const unsupported = (reason) => ({
|
|
458
|
-
reason,
|
|
459
|
-
supported: false
|
|
460
|
-
});
|
|
461
|
-
const plans = {
|
|
462
|
-
cloudflare: {
|
|
463
|
-
host: "cloudflare",
|
|
464
|
-
nitroPreset: "cloudflare-module",
|
|
465
|
-
output: {
|
|
466
|
-
directory: ".output",
|
|
467
|
-
entry: "server/index.mjs",
|
|
468
|
-
packaging: "none"
|
|
469
|
-
},
|
|
470
|
-
preset: "cloudflare",
|
|
471
|
-
runtime: "workerd",
|
|
472
|
-
services: {
|
|
473
|
-
blob: {
|
|
474
|
-
adapter: "cloudflare-r2",
|
|
475
|
-
guarantee: "native",
|
|
476
|
-
supported: true
|
|
477
|
-
},
|
|
478
|
-
queue: {
|
|
479
|
-
adapter: "cloudflare",
|
|
480
|
-
guarantee: "native",
|
|
481
|
-
supported: true
|
|
482
|
-
},
|
|
483
|
-
rateLimit: {
|
|
484
|
-
adapter: "cloudflare",
|
|
485
|
-
guarantee: "native",
|
|
486
|
-
supported: true
|
|
487
|
-
},
|
|
488
|
-
sandbox: {
|
|
489
|
-
adapter: "cloudflare",
|
|
490
|
-
guarantee: "native",
|
|
491
|
-
supported: true
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
},
|
|
495
|
-
deno: {
|
|
496
|
-
host: "deno-deploy",
|
|
497
|
-
nitroPreset: "deno-deploy",
|
|
498
|
-
output: {
|
|
499
|
-
directory: ".output",
|
|
500
|
-
entry: "server/index.mjs",
|
|
501
|
-
packaging: "deno-node-modules"
|
|
502
|
-
},
|
|
503
|
-
preset: "deno",
|
|
504
|
-
runtime: "deno",
|
|
505
|
-
services: {
|
|
506
|
-
blob: unsupported("Deno Deploy has no built-in durable Blob Store with ViteHub's object-storage contract."),
|
|
507
|
-
queue: unsupported("Deno Deploy has no built-in Queue Provider with ViteHub's delivery contract."),
|
|
508
|
-
rateLimit: unsupported("Deno Deploy has no built-in distributed Rate Limit driver."),
|
|
509
|
-
sandbox: unsupported("Deno Deploy has no built-in isolated Sandbox Provider.")
|
|
510
|
-
}
|
|
511
|
-
},
|
|
512
|
-
netlify: {
|
|
513
|
-
host: "netlify",
|
|
514
|
-
nitroPreset: "netlify",
|
|
515
|
-
output: {
|
|
516
|
-
directory: ".netlify",
|
|
517
|
-
entry: "functions-internal/server/server.mjs",
|
|
518
|
-
packaging: "none"
|
|
519
|
-
},
|
|
520
|
-
preset: "netlify",
|
|
521
|
-
runtime: "node",
|
|
522
|
-
services: {
|
|
523
|
-
blob: {
|
|
524
|
-
adapter: "netlify-blobs",
|
|
525
|
-
guarantee: "native",
|
|
526
|
-
supported: true
|
|
527
|
-
},
|
|
528
|
-
queue: unsupported("Netlify has no built-in Queue Provider with ViteHub's delivery contract."),
|
|
529
|
-
rateLimit: unsupported("Netlify has no built-in distributed Rate Limit driver."),
|
|
530
|
-
sandbox: unsupported("Netlify has no built-in isolated Sandbox Provider.")
|
|
531
|
-
}
|
|
532
|
-
},
|
|
533
|
-
node: {
|
|
534
|
-
host: "self-hosted",
|
|
535
|
-
nitroPreset: "node-server",
|
|
536
|
-
output: {
|
|
537
|
-
directory: ".output",
|
|
538
|
-
entry: "server/index.mjs",
|
|
539
|
-
packaging: "none"
|
|
540
|
-
},
|
|
541
|
-
preset: "node",
|
|
542
|
-
runtime: "node",
|
|
543
|
-
services: {
|
|
544
|
-
blob: {
|
|
545
|
-
adapter: "fs",
|
|
546
|
-
guarantee: "single-host",
|
|
547
|
-
supported: true
|
|
548
|
-
},
|
|
549
|
-
queue: unsupported("The Node preset has no built-in durable Queue Provider."),
|
|
550
|
-
rateLimit: {
|
|
551
|
-
adapter: "memory",
|
|
552
|
-
guarantee: "process-local",
|
|
553
|
-
supported: true
|
|
554
|
-
},
|
|
555
|
-
sandbox: unsupported("The Node preset has no built-in isolated Sandbox Provider.")
|
|
556
|
-
}
|
|
557
|
-
},
|
|
558
|
-
vercel: {
|
|
559
|
-
host: "vercel",
|
|
560
|
-
nitroPreset: "vercel",
|
|
561
|
-
output: {
|
|
562
|
-
directory: ".vercel/output",
|
|
563
|
-
entry: "functions/__server.func/index.mjs",
|
|
564
|
-
packaging: "none"
|
|
565
|
-
},
|
|
566
|
-
preset: "vercel",
|
|
567
|
-
runtime: "node",
|
|
568
|
-
services: {
|
|
569
|
-
blob: {
|
|
570
|
-
adapter: "vercel-blob",
|
|
571
|
-
guarantee: "native",
|
|
572
|
-
supported: true
|
|
573
|
-
},
|
|
574
|
-
queue: {
|
|
575
|
-
adapter: "vercel",
|
|
576
|
-
guarantee: "native",
|
|
577
|
-
supported: true
|
|
578
|
-
},
|
|
579
|
-
rateLimit: unsupported("Vercel has no built-in distributed Rate Limit driver."),
|
|
580
|
-
sandbox: {
|
|
581
|
-
adapter: "vercel",
|
|
582
|
-
guarantee: "native",
|
|
583
|
-
supported: true
|
|
584
|
-
}
|
|
585
|
-
}
|
|
586
|
-
}
|
|
587
|
-
};
|
|
588
|
-
function resolveDeploymentPlan(preset) {
|
|
589
|
-
const plan = plans[preset];
|
|
590
|
-
if (!plan) throw new TypeError(`Unknown ViteHub deployment preset: ${JSON.stringify(preset)}.`);
|
|
591
|
-
return plan;
|
|
592
|
-
}
|
|
593
|
-
function assertDeploymentService(plan, service) {
|
|
594
|
-
const policy = plan.services[service];
|
|
595
|
-
if (policy.supported) return;
|
|
596
|
-
throw new Error(`[vitehub] The ${JSON.stringify(plan.preset)} preset cannot provide ${service}. ${policy.reason} Configure an explicit portable implementation through the owner package or disable this capability.`);
|
|
597
|
-
}
|
|
598
|
-
function deploymentPresetFromNitro(value) {
|
|
599
|
-
const normalized = value?.trim().toLowerCase().replaceAll("_", "-");
|
|
600
|
-
if (!normalized) return;
|
|
601
|
-
if (normalized.startsWith("cloudflare")) return "cloudflare";
|
|
602
|
-
if (normalized.startsWith("deno")) return "deno";
|
|
603
|
-
if (normalized.startsWith("netlify")) return "netlify";
|
|
604
|
-
if (normalized === "node" || normalized.startsWith("node-")) return "node";
|
|
605
|
-
if (normalized.startsWith("vercel")) return "vercel";
|
|
606
|
-
}
|
|
607
|
-
//#endregion
|
|
608
|
-
//#region ../internal/src/build/vite.ts
|
|
609
|
-
const projectRootDirectoryMarkers = [
|
|
610
|
-
["server", "agents"],
|
|
611
|
-
["server", "browsers"],
|
|
612
|
-
["server", "schedules"],
|
|
613
|
-
["server", "templates"],
|
|
614
|
-
["server", "workspaces"]
|
|
615
|
-
];
|
|
616
|
-
const projectRootDefinitionFileMarkers = [
|
|
617
|
-
".ts",
|
|
618
|
-
".mts",
|
|
619
|
-
".cts",
|
|
620
|
-
".js",
|
|
621
|
-
".mjs",
|
|
622
|
-
".cjs"
|
|
623
|
-
].flatMap((extension) => [["server", `email${extension}`], [`server.email${extension}`]]);
|
|
624
|
-
const projectRootFileMarkers = [["package.json"]];
|
|
625
|
-
const VITEHUB_NITRO_CONFIG_CONTEXT = "__vitehubNitroConfigContext";
|
|
626
|
-
const VITEHUB_SERVER_DIRS = "__vitehubServerDirs";
|
|
627
|
-
function resolveViteHubProjectRoot(root, options = {}) {
|
|
628
|
-
const resolvedRoot = resolve(root);
|
|
629
|
-
if (options.projectRoot) return resolve(resolvedRoot, options.projectRoot);
|
|
630
|
-
if (basename(resolvedRoot) === "app") {
|
|
631
|
-
const parent = dirname(resolvedRoot);
|
|
632
|
-
if (hasProjectRootDirectoryMarker(parent) || hasProjectRootDefinitionFileMarker(parent)) return parent;
|
|
633
|
-
}
|
|
634
|
-
let current = resolvedRoot;
|
|
635
|
-
while (true) {
|
|
636
|
-
if (hasProjectRootMarker(current)) return current;
|
|
637
|
-
const parent = dirname(current);
|
|
638
|
-
if (parent === current) return resolvedRoot;
|
|
639
|
-
current = parent;
|
|
640
|
-
}
|
|
641
|
-
}
|
|
642
|
-
function hasProjectRootDirectoryMarker(root) {
|
|
643
|
-
for (const marker of projectRootDirectoryMarkers) try {
|
|
644
|
-
if (statSync(resolve(root, ...marker)).isDirectory()) return true;
|
|
645
|
-
} catch (error) {
|
|
646
|
-
if (error.code !== "ENOENT") throw error;
|
|
647
|
-
}
|
|
648
|
-
return false;
|
|
649
|
-
}
|
|
650
|
-
function hasProjectRootMarker(root) {
|
|
651
|
-
if (hasProjectRootDirectoryMarker(root)) return true;
|
|
652
|
-
if (hasProjectRootDefinitionFileMarker(root)) return true;
|
|
653
|
-
for (const marker of projectRootFileMarkers) try {
|
|
654
|
-
if (statSync(resolve(root, ...marker)).isFile()) return true;
|
|
655
|
-
} catch (error) {
|
|
656
|
-
if (error.code !== "ENOENT") throw error;
|
|
657
|
-
}
|
|
658
|
-
return false;
|
|
659
|
-
}
|
|
660
|
-
function hasProjectRootDefinitionFileMarker(root) {
|
|
661
|
-
for (const marker of projectRootDefinitionFileMarkers) try {
|
|
662
|
-
if (statSync(resolve(root, ...marker)).isFile()) return true;
|
|
663
|
-
} catch (error) {
|
|
664
|
-
if (error.code !== "ENOENT") throw error;
|
|
665
|
-
}
|
|
666
|
-
return false;
|
|
667
|
-
}
|
|
668
|
-
//#endregion
|
|
669
|
-
//#region src/internal/types.ts
|
|
670
|
-
const viteHubTypesEntry = ".vitehub/types.d.ts";
|
|
671
|
-
async function collectGeneratedTypeFiles(directory, root = directory) {
|
|
672
|
-
let entries;
|
|
673
|
-
try {
|
|
674
|
-
entries = await readdir(directory, { withFileTypes: true });
|
|
675
|
-
} catch (error) {
|
|
676
|
-
if (error.code === "ENOENT") return [];
|
|
677
|
-
throw error;
|
|
678
|
-
}
|
|
679
|
-
const files = [];
|
|
680
|
-
for (const entry of entries) {
|
|
681
|
-
const path = join(directory, entry.name);
|
|
682
|
-
if (entry.isDirectory()) files.push(...await collectGeneratedTypeFiles(path, root));
|
|
683
|
-
else if (entry.isFile() && entry.name.endsWith(".d.ts")) {
|
|
684
|
-
const generatedPath = relative(root, path).replaceAll("\\", "/");
|
|
685
|
-
if (generatedPath !== "types.d.ts") files.push(generatedPath);
|
|
686
|
-
}
|
|
687
|
-
}
|
|
688
|
-
return files;
|
|
689
|
-
}
|
|
690
|
-
async function writeFileIfChanged(path, contents) {
|
|
691
|
-
let current;
|
|
692
|
-
try {
|
|
693
|
-
current = await readFile(path, "utf8");
|
|
694
|
-
} catch (error) {
|
|
695
|
-
if (error.code !== "ENOENT") throw error;
|
|
696
|
-
}
|
|
697
|
-
if (current === contents) return;
|
|
698
|
-
await mkdir(dirname(path), { recursive: true });
|
|
699
|
-
await writeFile(path, contents, "utf8");
|
|
700
|
-
}
|
|
701
|
-
async function writeViteHubTypes(root) {
|
|
702
|
-
const references = (await collectGeneratedTypeFiles(resolve(root, ".vitehub"))).sort().map((file) => `/// <reference path="./${file}" />`).join("\n");
|
|
703
|
-
await writeFileIfChanged(resolve(root, viteHubTypesEntry), `${references}${references ? "\n\n" : ""}export {}\n`);
|
|
704
|
-
}
|
|
705
|
-
function viteHubTypesPlugin() {
|
|
706
|
-
let projectRoot;
|
|
707
|
-
const refreshGeneratedTypes = async () => {
|
|
708
|
-
if (projectRoot) await writeViteHubTypes(projectRoot);
|
|
709
|
-
};
|
|
710
|
-
return {
|
|
711
|
-
name: "vite-hub/types",
|
|
712
|
-
enforce: "post",
|
|
713
|
-
async configResolved(config) {
|
|
714
|
-
projectRoot = resolveViteHubProjectRoot(config.root);
|
|
715
|
-
await refreshGeneratedTypes();
|
|
716
|
-
},
|
|
717
|
-
buildStart: refreshGeneratedTypes,
|
|
718
|
-
buildEnd: refreshGeneratedTypes,
|
|
719
|
-
vitehub: { cli: { namespaces: [{
|
|
720
|
-
description: "Generate ViteHub TypeScript declarations.",
|
|
721
|
-
features: [{
|
|
722
|
-
description: "Prepare generated declarations for editors and type checking.",
|
|
723
|
-
name: "prepare",
|
|
724
|
-
async run(_args, context) {
|
|
725
|
-
await writeViteHubTypes(projectRoot || resolveViteHubProjectRoot(context.rootDir));
|
|
726
|
-
context.stdout.write(`types: prepared ${viteHubTypesEntry}\n`);
|
|
727
|
-
},
|
|
728
|
-
usage: "vitehub types prepare"
|
|
729
|
-
}],
|
|
730
|
-
name: "types"
|
|
731
|
-
}] } }
|
|
732
|
-
};
|
|
733
|
-
}
|
|
734
|
-
//#endregion
|
|
735
|
-
//#region src/index.ts
|
|
736
|
-
const generatedOwnerPackageNames = Object.entries({
|
|
737
|
-
"@vite-hub/agent": true,
|
|
738
|
-
"@vite-hub/auth": true,
|
|
739
|
-
"@vite-hub/blob": true,
|
|
740
|
-
"@vite-hub/browser": true,
|
|
741
|
-
"@vite-hub/box": true,
|
|
742
|
-
"@vite-hub/cli": false,
|
|
743
|
-
"@vite-hub/database": true,
|
|
744
|
-
"@vite-hub/email": true,
|
|
745
|
-
"@vite-hub/env": true,
|
|
746
|
-
"@vite-hub/kv": true,
|
|
747
|
-
"@vite-hub/markdown-template": true,
|
|
748
|
-
"@vite-hub/queue": true,
|
|
749
|
-
"@vite-hub/rate-limit": true,
|
|
750
|
-
"@vite-hub/runtime": true,
|
|
751
|
-
"@vite-hub/sandbox": true,
|
|
752
|
-
"@vite-hub/schedule": true,
|
|
753
|
-
"@vite-hub/shell": true,
|
|
754
|
-
"@vite-hub/source": true,
|
|
755
|
-
"@vite-hub/workflow": true,
|
|
756
|
-
"@vite-hub/workspace": true
|
|
757
|
-
}).filter(([, allowed]) => allowed).map(([name]) => name);
|
|
758
|
-
const frameworkVirtualImporters = new Set([
|
|
759
|
-
"\0#vitehub/auth/server",
|
|
760
|
-
"\0#vitehub/env/server",
|
|
761
|
-
"\0#vitehub/schedule/registry",
|
|
762
|
-
"\0#vitehub/templates",
|
|
763
|
-
"\0virtual:vitehub-agent-cloudflare-state-exports"
|
|
764
|
-
]);
|
|
765
|
-
const frameworkPackageName = "vite-hub";
|
|
766
|
-
const generatedImportBase = "vite-hub/_internal";
|
|
767
|
-
const upstashDriverSpecifier = "@vite-hub/kv/runtime/upstash-driver";
|
|
768
|
-
const disabledUpstashDriver = fileURLToPath(import.meta.resolve(`${generatedImportBase}/kv/runtime/disabled-upstash`));
|
|
769
|
-
function frameworkWorkspaceDependencyRuntimeImports(sandbox) {
|
|
770
|
-
return {
|
|
771
|
-
...sandbox ? {
|
|
772
|
-
sandbox: "vite-hub/sandbox",
|
|
773
|
-
sandboxRuntimeState: `${generatedImportBase}/sandbox/runtime/state`
|
|
774
|
-
} : {},
|
|
775
|
-
shellWorkspace: "vite-hub/shell/workspace"
|
|
776
|
-
};
|
|
777
|
-
}
|
|
778
|
-
const frameworkProviderImportAliases = Object.fromEntries(Object.entries(exports).filter(([subpath, target]) => subpath.startsWith("./") && target.endsWith(".js")).map(([subpath]) => {
|
|
779
|
-
const specifier = `${frameworkPackageName}/${subpath.slice(2)}`;
|
|
780
|
-
return [specifier, fileURLToPath(import.meta.resolve(specifier))];
|
|
781
|
-
}).sort(([left], [right]) => right.length - left.length));
|
|
782
|
-
function isGeneratedImporter(importer) {
|
|
783
|
-
const normalized = importer?.replace(/\\/g, "/");
|
|
784
|
-
return Boolean(normalized && (/(?:^|\/)\.vitehub(?:\/|$)/.test(normalized) || frameworkVirtualImporters.has(normalized)));
|
|
785
|
-
}
|
|
786
|
-
function hasUpstashStore(kv) {
|
|
787
|
-
if (!kv) return false;
|
|
788
|
-
return Object.values(kv.stores || { default: kv.store }).some((store) => store.driver === "upstash");
|
|
789
|
-
}
|
|
790
|
-
function configureProviderOptionalImportAliases(aliases, options, configuredKV) {
|
|
791
|
-
if (hasUpstashStore(options.kv ? resolveKVViteConfig(configuredKV ?? (options.kv === true ? void 0 : options.kv)).kv : false)) delete aliases[upstashDriverSpecifier];
|
|
792
|
-
else aliases[upstashDriverSpecifier] = disabledUpstashDriver;
|
|
793
|
-
}
|
|
794
|
-
function frameworkDependencyResolver(options, providerImportAliases, blobEnabled, presetKVOptions) {
|
|
795
|
-
return {
|
|
796
|
-
name: "vite-hub/dependencies",
|
|
797
|
-
enforce: "pre",
|
|
798
|
-
config() {
|
|
799
|
-
const aliases = { ...frameworkProviderImportAliases };
|
|
800
|
-
if (!blobEnabled) delete aliases["vite-hub/blob"];
|
|
801
|
-
return { resolve: { alias: aliases } };
|
|
802
|
-
},
|
|
803
|
-
configResolved(config) {
|
|
804
|
-
configureProviderOptionalImportAliases(providerImportAliases, options, config.kv ?? presetKVOptions);
|
|
805
|
-
},
|
|
806
|
-
resolveId(id, importer) {
|
|
807
|
-
if (!blobEnabled && id === "@vite-hub/blob") throw new Error("[vitehub] Blob is unavailable for this deployment preset. Configure an explicit Blob store before using Blob APIs or Agent Capabilities.");
|
|
808
|
-
for (const specifier in providerImportAliases) {
|
|
809
|
-
const frameworkFacade = frameworkProviderImportAliases[specifier];
|
|
810
|
-
if (!frameworkFacade) continue;
|
|
811
|
-
const providerFacade = providerImportAliases[specifier];
|
|
812
|
-
if (id === frameworkFacade || providerImportAliases[id] === providerFacade) return providerFacade;
|
|
813
|
-
}
|
|
814
|
-
if (!isGeneratedImporter(importer)) return;
|
|
815
|
-
const isFrameworkPackageImport = id === frameworkPackageName || id.startsWith(`${frameworkPackageName}/`);
|
|
816
|
-
const isOwnerPackageImport = generatedOwnerPackageNames.some((name) => id === name || id.startsWith(`${name}/`));
|
|
817
|
-
if (!isFrameworkPackageImport && !isOwnerPackageImport) return;
|
|
818
|
-
return fileURLToPath(import.meta.resolve(id));
|
|
819
|
-
}
|
|
820
|
-
};
|
|
821
|
-
}
|
|
822
|
-
function normalizeDeploymentName(value) {
|
|
823
|
-
return value?.trim().toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "") || void 0;
|
|
824
|
-
}
|
|
825
|
-
function cloudflareResourceScope(name) {
|
|
826
|
-
return name.slice(0, 48).replace(/-+$/g, "");
|
|
827
|
-
}
|
|
828
|
-
function cloudflareR2BucketName(name) {
|
|
829
|
-
const scoped = cloudflareResourceScope(name);
|
|
830
|
-
return scoped.length >= 3 ? scoped : `${scoped || "app"}-blob`;
|
|
831
|
-
}
|
|
832
|
-
function packageName(root) {
|
|
833
|
-
let directory = resolve(process.cwd(), root || ".");
|
|
834
|
-
while (true) {
|
|
835
|
-
const manifestPath = join(directory, "package.json");
|
|
836
|
-
if (existsSync(manifestPath)) {
|
|
837
|
-
const name = JSON.parse(readFileSync(manifestPath, "utf8")).name;
|
|
838
|
-
if (typeof name === "string" && name.trim()) return name;
|
|
839
|
-
}
|
|
840
|
-
const parent = dirname(directory);
|
|
841
|
-
if (parent === directory) return;
|
|
842
|
-
directory = parent;
|
|
843
|
-
}
|
|
844
|
-
}
|
|
845
|
-
function resolveDeploymentIdentity(root, configuredName, workersBuildsName) {
|
|
846
|
-
const configured = normalizeDeploymentName(configuredName);
|
|
847
|
-
if (configuredName !== void 0 && !configured) throw new Error("[vitehub] vitehub name must contain at least one letter or number.");
|
|
848
|
-
const environmentName = process.env.VITEHUB_DEPLOYMENT_NAME;
|
|
849
|
-
const environment = normalizeDeploymentName(environmentName);
|
|
850
|
-
if (environmentName?.trim() && !environment) throw new Error("[vitehub] VITEHUB_DEPLOYMENT_NAME must contain at least one letter or number.");
|
|
851
|
-
const workersBuilds = normalizeDeploymentName(workersBuildsName);
|
|
852
|
-
if (workersBuildsName?.trim() && !workersBuilds) throw new Error("[vitehub] WRANGLER_CI_OVERRIDE_NAME must contain at least one letter or number.");
|
|
853
|
-
if (configured && environment && configured !== environment) throw new Error(`[vitehub] vitehub name ${JSON.stringify(configuredName)} conflicts with VITEHUB_DEPLOYMENT_NAME=${JSON.stringify(environmentName)}.`);
|
|
854
|
-
const explicit = configured || environment;
|
|
855
|
-
if (explicit && workersBuilds && explicit !== workersBuilds) throw new Error(`[vitehub] deployment identity ${JSON.stringify(explicit)} conflicts with WRANGLER_CI_OVERRIDE_NAME=${JSON.stringify(workersBuildsName)}.`);
|
|
856
|
-
if (configured) return {
|
|
857
|
-
name: configured,
|
|
858
|
-
source: "vitehub.name"
|
|
859
|
-
};
|
|
860
|
-
if (environment) return {
|
|
861
|
-
name: environment,
|
|
862
|
-
source: "VITEHUB_DEPLOYMENT_NAME"
|
|
863
|
-
};
|
|
864
|
-
if (workersBuilds) return {
|
|
865
|
-
name: workersBuilds,
|
|
866
|
-
source: "WRANGLER_CI_OVERRIDE_NAME"
|
|
867
|
-
};
|
|
868
|
-
const manifestName = normalizeDeploymentName(packageName(root));
|
|
869
|
-
if (manifestName) return {
|
|
870
|
-
name: manifestName,
|
|
871
|
-
source: "package.json"
|
|
872
|
-
};
|
|
873
|
-
return {
|
|
874
|
-
name: normalizeDeploymentName(basename(resolve(process.cwd(), root || "."))) || "vitehub",
|
|
875
|
-
source: "root"
|
|
876
|
-
};
|
|
877
|
-
}
|
|
878
|
-
function cloneRecord(value) {
|
|
879
|
-
return value && typeof value === "object" && !Array.isArray(value) ? { ...value } : {};
|
|
880
|
-
}
|
|
881
|
-
function normalizeNitroPreset(value) {
|
|
882
|
-
return value.trim().toLowerCase().replaceAll("_", "-");
|
|
883
|
-
}
|
|
884
|
-
function deploymentNitroModule(plan, services, identity) {
|
|
885
|
-
return (nitro) => {
|
|
886
|
-
nitro.hooks.hook("compiled", async () => {
|
|
887
|
-
const outputDir = nitro.options.output.dir;
|
|
888
|
-
const rootDir = nitro.options.rootDir;
|
|
889
|
-
if (plan.output.packaging === "deno-node-modules") await finalizeDenoDeploymentOutput({
|
|
890
|
-
deploymentName: identity.name,
|
|
891
|
-
outputDir,
|
|
892
|
-
rootDir
|
|
893
|
-
});
|
|
894
|
-
await finalizeDeploymentPlanOutput({
|
|
895
|
-
identity,
|
|
896
|
-
outputDir,
|
|
897
|
-
plan,
|
|
898
|
-
rootDir,
|
|
899
|
-
services
|
|
900
|
-
});
|
|
901
|
-
});
|
|
902
|
-
};
|
|
903
|
-
}
|
|
904
|
-
function deploymentPlugins(plan, requestedServices, blobEnabled, services, options) {
|
|
905
|
-
return [{
|
|
906
|
-
name: "vite-hub/deployment-preset",
|
|
907
|
-
enforce: "pre",
|
|
908
|
-
resolveId(source) {
|
|
909
|
-
if (!blobEnabled && (source === "vite-hub/blob" || source === frameworkProviderImportAliases["vite-hub/blob"])) {
|
|
910
|
-
if (!plan.services.blob.supported) assertDeploymentService(plan, "blob");
|
|
911
|
-
throw new Error("[vitehub] Blob is disabled but the application imports " + JSON.stringify(source) + ".");
|
|
912
|
-
}
|
|
913
|
-
},
|
|
914
|
-
config(config, environment) {
|
|
915
|
-
const building = environment.command === "build";
|
|
916
|
-
config.vitehub = {
|
|
917
|
-
...cloneRecord(config.vitehub),
|
|
918
|
-
preset: plan.preset
|
|
919
|
-
};
|
|
920
|
-
for (const service of requestedServices) assertDeploymentService(plan, service);
|
|
921
|
-
const identity = resolveDeploymentIdentity(typeof config.root === "string" ? config.root : void 0, options.name, plan.preset === "cloudflare" ? process.env.WRANGLER_CI_OVERRIDE_NAME : void 0);
|
|
922
|
-
const name = identity.name;
|
|
923
|
-
if (requestedServices.includes("queue") && plan.services.queue.supported) config.queue = {
|
|
924
|
-
...cloneRecord(config.queue),
|
|
925
|
-
provider: plan.services.queue.adapter,
|
|
926
|
-
...plan.services.queue.adapter === "cloudflare" ? { namePrefix: `${name}-` } : {}
|
|
927
|
-
};
|
|
928
|
-
if (requestedServices.includes("rateLimit") && plan.services.rateLimit.supported) config.rateLimit = {
|
|
929
|
-
...cloneRecord(config.rateLimit),
|
|
930
|
-
namespace: name,
|
|
931
|
-
provider: plan.services.rateLimit.adapter
|
|
932
|
-
};
|
|
933
|
-
if (requestedServices.includes("sandbox") && plan.services.sandbox.supported) config.sandbox = {
|
|
934
|
-
...cloneRecord(config.sandbox),
|
|
935
|
-
...plan.services.sandbox.adapter === "cloudflare" ? { name: cloudflareResourceScope(name) + "-sandbox" } : {},
|
|
936
|
-
provider: plan.services.sandbox.adapter
|
|
937
|
-
};
|
|
938
|
-
const nitro = cloneRecord(config.nitro);
|
|
939
|
-
if (blobEnabled && plan.services.blob.supported && plan.services.blob.adapter === "cloudflare-r2") {
|
|
940
|
-
const optionBlob = options.blob === true ? void 0 : options.blob;
|
|
941
|
-
const configuredBlob = config.blob;
|
|
942
|
-
if (!hasExplicitBlobStore(optionBlob) && !hasExplicitBlobStore(configuredBlob)) config.blob = presetBlobOptions(plan, {
|
|
943
|
-
...cloneRecord(optionBlob),
|
|
944
|
-
...cloneRecord(configuredBlob)
|
|
945
|
-
}, cloudflareR2BucketName(name));
|
|
946
|
-
}
|
|
947
|
-
if (plan.preset === "cloudflare") {
|
|
948
|
-
const cloudflare = cloneRecord(nitro.cloudflare);
|
|
949
|
-
const wrangler = cloneRecord(cloudflare.wrangler);
|
|
950
|
-
if (typeof wrangler.name !== "string") wrangler.name = cloudflareResourceScope(name);
|
|
951
|
-
cloudflare.wrangler = wrangler;
|
|
952
|
-
nitro.cloudflare = cloudflare;
|
|
953
|
-
}
|
|
954
|
-
const configuredPreset = typeof nitro.preset === "string" ? nitro.preset : void 0;
|
|
955
|
-
const configuredHosting = process.env.VITEHUB_HOSTING;
|
|
956
|
-
if (configuredHosting && deploymentPresetFromNitro(configuredHosting) !== plan.preset) throw new Error("[vitehub] vitehub preset " + JSON.stringify(plan.preset) + " conflicts with VITEHUB_HOSTING=" + JSON.stringify(configuredHosting) + ".");
|
|
957
|
-
if (building) {
|
|
958
|
-
if (configuredPreset && normalizeNitroPreset(configuredPreset) !== plan.nitroPreset) throw new Error("[vitehub] vitehub preset " + JSON.stringify(plan.preset) + " conflicts with nitro.preset " + JSON.stringify(configuredPreset) + ".");
|
|
959
|
-
for (const name of ["NITRO_PRESET", "SERVER_PRESET"]) {
|
|
960
|
-
const value = process.env[name];
|
|
961
|
-
if (value && normalizeNitroPreset(value) !== plan.nitroPreset) throw new Error("[vitehub] vitehub preset " + JSON.stringify(plan.preset) + " conflicts with " + name + "=" + JSON.stringify(value) + ".");
|
|
962
|
-
}
|
|
963
|
-
nitro.modules = [...Array.isArray(nitro.modules) ? nitro.modules : [], deploymentNitroModule(plan, services, identity)];
|
|
964
|
-
if (plan.output.packaging === "deno-node-modules") {
|
|
965
|
-
nitro.commands = {
|
|
966
|
-
...cloneRecord(nitro.commands),
|
|
967
|
-
deploy: "node ./deploy.mjs"
|
|
968
|
-
};
|
|
969
|
-
const rollupConfig = cloneRecord(nitro.rollupConfig);
|
|
970
|
-
const output = Array.isArray(rollupConfig.output) ? rollupConfig.output.map((options) => ({
|
|
971
|
-
...cloneRecord(options),
|
|
972
|
-
entryFileNames: "index.mjs"
|
|
973
|
-
})) : {
|
|
974
|
-
...cloneRecord(rollupConfig.output),
|
|
975
|
-
entryFileNames: "index.mjs"
|
|
976
|
-
};
|
|
977
|
-
nitro.rollupConfig = {
|
|
978
|
-
...rollupConfig,
|
|
979
|
-
output
|
|
980
|
-
};
|
|
981
|
-
}
|
|
982
|
-
nitro.preset = plan.nitroPreset;
|
|
983
|
-
}
|
|
984
|
-
config.nitro = nitro;
|
|
985
|
-
}
|
|
986
|
-
}, {
|
|
987
|
-
name: "vite-hub/deployment-output",
|
|
988
|
-
enforce: "post",
|
|
989
|
-
configResolved(config) {
|
|
990
|
-
const nitro = cloneRecord(config.nitro);
|
|
991
|
-
if (config.command === "build" && nitro.preset !== plan.nitroPreset) throw new Error("[vitehub] The " + JSON.stringify(plan.preset) + " deployment plan requires Nitro preset " + JSON.stringify(plan.nitroPreset) + ".");
|
|
992
|
-
}
|
|
993
|
-
}];
|
|
994
|
-
}
|
|
995
|
-
function hasExplicitBlobStore(options) {
|
|
996
|
-
return Boolean(options && typeof options === "object" && ("driver" in options || "stores" in options));
|
|
997
|
-
}
|
|
998
|
-
function presetBlobOptions(plan, options, deploymentName = "vitehub-blob") {
|
|
999
|
-
if (hasExplicitBlobStore(options)) return options;
|
|
1000
|
-
const configured = options && typeof options === "object" ? options : {};
|
|
1001
|
-
switch (plan.services.blob.supported && plan.services.blob.adapter) {
|
|
1002
|
-
case "cloudflare-r2": return {
|
|
1003
|
-
bucketName: process.env.BLOB_BUCKET_NAME || process.env.CLOUDFLARE_R2_BUCKET_NAME || process.env.R2_BUCKET_NAME || deploymentName,
|
|
1004
|
-
...configured,
|
|
1005
|
-
driver: "cloudflare-r2"
|
|
1006
|
-
};
|
|
1007
|
-
case "fs": return {
|
|
1008
|
-
...configured,
|
|
1009
|
-
driver: "fs"
|
|
1010
|
-
};
|
|
1011
|
-
case "netlify-blobs": return {
|
|
1012
|
-
name: "vitehub-blob",
|
|
1013
|
-
...configured,
|
|
1014
|
-
driver: "netlify-blobs"
|
|
1015
|
-
};
|
|
1016
|
-
case "vercel-blob": return {
|
|
1017
|
-
...configured,
|
|
1018
|
-
driver: "vercel-blob"
|
|
1019
|
-
};
|
|
1020
|
-
default: throw new Error("[vitehub] Missing Blob adapter for deployment preset " + JSON.stringify(plan.preset) + ".");
|
|
1021
|
-
}
|
|
1022
|
-
}
|
|
1023
|
-
function vitehub(options) {
|
|
1024
|
-
if (!options || typeof options !== "object") throw new TypeError("vitehub() requires a built-in deployment preset.");
|
|
1025
|
-
const plan = resolveDeploymentPlan(options.preset);
|
|
1026
|
-
if (options.schedule && plan.preset === "deno") throw new Error("[vitehub] The \"deno\" preset cannot provide Schedule because its generated cron output is not part of the deployed Nitro entrypoint. Disable Schedule or compose an explicit Deno scheduling integration.");
|
|
1027
|
-
if (options.agent && options.agent !== true && options.agent.runtime === "deno" && plan.preset === "deno") throw new Error("[vitehub] The \"deno\" preset cannot deploy the Agent Deno runtime because its generated server is outside the deployed Nitro entrypoint. Use the preset's Nitro runtime or compose an explicit Deno Agent deployment.");
|
|
1028
|
-
if (options.browser && plan.preset !== "cloudflare") throw new Error("[vitehub] Browser currently requires the Cloudflare deployment preset.");
|
|
1029
|
-
const sandboxEnabled = options.sandbox === true && plan.services.sandbox.supported;
|
|
1030
|
-
const blobEnabled = Boolean(options.blob) && (plan.services.blob.supported || hasExplicitBlobStore(options.blob));
|
|
1031
|
-
const plugins = [];
|
|
1032
|
-
const requestedServices = [];
|
|
1033
|
-
if (options.blob !== void 0 && options.blob !== false && !hasExplicitBlobStore(options.blob)) requestedServices.push("blob");
|
|
1034
|
-
if (options.queue) requestedServices.push("queue");
|
|
1035
|
-
if (options.rateLimit) requestedServices.push("rateLimit");
|
|
1036
|
-
if (options.sandbox) requestedServices.push("sandbox");
|
|
1037
|
-
const manifestServices = hasExplicitBlobStore(options.blob) ? {
|
|
1038
|
-
...plan.services,
|
|
1039
|
-
blob: {
|
|
1040
|
-
configured: true,
|
|
1041
|
-
supported: true
|
|
1042
|
-
}
|
|
1043
|
-
} : plan.services;
|
|
1044
|
-
plugins.push(...deploymentPlugins(plan, requestedServices, blobEnabled, manifestServices, options));
|
|
1045
|
-
const providerImportAliases = {};
|
|
1046
|
-
const configuredKV = options.kv && options.kv !== true ? options.kv : void 0;
|
|
1047
|
-
const presetKV = options.kv ? resolveKVViteConfig(configuredKV, { hosting: plan.nitroPreset }).kv : false;
|
|
1048
|
-
const presetKVOptions = presetKV && (presetKV.stores ? { stores: presetKV.stores } : presetKV.store);
|
|
1049
|
-
configureProviderOptionalImportAliases(providerImportAliases, options, presetKVOptions || void 0);
|
|
1050
|
-
const workspaceDependencyRuntimeImports = frameworkWorkspaceDependencyRuntimeImports(sandboxEnabled);
|
|
1051
|
-
plugins.push(frameworkDependencyResolver(options, providerImportAliases, blobEnabled, presetKVOptions || void 0));
|
|
1052
|
-
plugins.push(hubMarkdownTemplate({ runtimeImport: `${generatedImportBase}/markdown-template` }));
|
|
1053
|
-
if (options.env !== false) {
|
|
1054
|
-
const envOptions = options.env ?? {};
|
|
1055
|
-
plugins.push(hubEnv({
|
|
1056
|
-
...envOptions,
|
|
1057
|
-
runtimeImports: {
|
|
1058
|
-
secret: "vite-hub/env/secret",
|
|
1059
|
-
server: "vite-hub/env/server",
|
|
1060
|
-
...envOptions.runtimeImports
|
|
1061
|
-
}
|
|
1062
|
-
}));
|
|
1063
|
-
}
|
|
1064
|
-
if (options.auth) plugins.push(hubAuth({
|
|
1065
|
-
...options.auth === true ? {} : options.auth,
|
|
1066
|
-
importBase: "vite-hub/auth"
|
|
1067
|
-
}));
|
|
1068
|
-
if (sandboxEnabled) {
|
|
1069
|
-
const sandboxPolicy = plan.services.sandbox;
|
|
1070
|
-
plugins.push(hubSandbox({
|
|
1071
|
-
...sandboxPolicy.supported ? { provider: sandboxPolicy.adapter } : {},
|
|
1072
|
-
providerImportAliases,
|
|
1073
|
-
providerImportSpecifier: "vite-hub/sandbox"
|
|
1074
|
-
}));
|
|
1075
|
-
}
|
|
1076
|
-
if (options.agent) plugins.push(hubAgent({
|
|
1077
|
-
...options.agent === true ? {} : options.agent,
|
|
1078
|
-
cloudflareStateImport: `${generatedImportBase}/agent/cloudflare/state`,
|
|
1079
|
-
importBase: `${generatedImportBase}/agent`,
|
|
1080
|
-
providerImportAliases,
|
|
1081
|
-
runtimeCapabilityImports: {
|
|
1082
|
-
blob: blobEnabled ? `${generatedImportBase}/blob` : false,
|
|
1083
|
-
email: "vite-hub/email/server",
|
|
1084
|
-
kv: `${generatedImportBase}/kv`
|
|
1085
|
-
},
|
|
1086
|
-
scheduleRuntimeImport: `${generatedImportBase}/schedule/runtime`,
|
|
1087
|
-
workflowImportBase: `${generatedImportBase}/workflow`,
|
|
1088
|
-
workspaceDependencyRuntimeImports,
|
|
1089
|
-
workspaceImportBase: `${generatedImportBase}/workspace`
|
|
1090
|
-
}));
|
|
1091
|
-
if (options.browser) plugins.push(hubBrowser(options.browser === true ? void 0 : options.browser));
|
|
1092
|
-
if (options.database) plugins.push(hubDb(options.database === true ? void 0 : options.database));
|
|
1093
|
-
if (blobEnabled) plugins.push(hubBlob({
|
|
1094
|
-
...presetBlobOptions(plan, options.blob),
|
|
1095
|
-
importBase: `${generatedImportBase}/blob`,
|
|
1096
|
-
nitroOwned: true
|
|
1097
|
-
}));
|
|
1098
|
-
if (options.email) plugins.push(hubEmail(options.email === true ? void 0 : options.email));
|
|
1099
|
-
if (options.kv) plugins.push(hubKv(presetKVOptions || void 0));
|
|
1100
|
-
else plugins.push(hubKvOptionalPeerResolver());
|
|
1101
|
-
if (options.queue && plan.services.queue.supported) plugins.push(hubQueue({
|
|
1102
|
-
provider: plan.services.queue.adapter,
|
|
1103
|
-
providerImportAliases
|
|
1104
|
-
}));
|
|
1105
|
-
if (options.rateLimit) {
|
|
1106
|
-
const rateLimitPolicy = plan.services.rateLimit;
|
|
1107
|
-
plugins.push(hubRateLimit({
|
|
1108
|
-
provider: rateLimitPolicy.supported ? rateLimitPolicy.adapter : "memory",
|
|
1109
|
-
importBase: `${generatedImportBase}/rate-limit`
|
|
1110
|
-
}));
|
|
1111
|
-
}
|
|
1112
|
-
if (options.schedule) plugins.push(hubSchedule({
|
|
1113
|
-
...options.schedule === true ? {} : options.schedule,
|
|
1114
|
-
importBase: `${generatedImportBase}/schedule`,
|
|
1115
|
-
providerImportAliases,
|
|
1116
|
-
runtimeImport: `${generatedImportBase}/schedule/runtime/static`
|
|
1117
|
-
}));
|
|
1118
|
-
if (options.workflow) plugins.push(hubWorkflow({
|
|
1119
|
-
...options.workflow === true ? {} : options.workflow,
|
|
1120
|
-
agentImportBase: `${generatedImportBase}/agent`,
|
|
1121
|
-
importBase: `${generatedImportBase}/workflow`,
|
|
1122
|
-
providerImportAliases,
|
|
1123
|
-
workspaceDependencyRuntimeImports,
|
|
1124
|
-
workspaceImportBase: `${generatedImportBase}/workspace`
|
|
1125
|
-
}));
|
|
1126
|
-
if (options.workspace) plugins.push(hubWorkspace({
|
|
1127
|
-
...options.workspace === true ? {} : options.workspace,
|
|
1128
|
-
hosting: plan.nitroPreset,
|
|
1129
|
-
importBase: `${generatedImportBase}/workspace`
|
|
1130
|
-
}));
|
|
1131
|
-
plugins.push(viteHubTypesPlugin());
|
|
1132
|
-
return plugins;
|
|
1133
|
-
}
|
|
1134
|
-
//#endregion
|
|
1135
|
-
export { VITEHUB_NITRO_CONFIG_CONTEXT as n, VITEHUB_SERVER_DIRS as r, vitehub as t };
|