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/nuxt.js
CHANGED
|
@@ -1,13 +1,366 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { r as createConsoleInvocationsIdentity } from "./internal-DzLLx0iR.js";
|
|
2
|
+
import { resolveConsoleSectionIds } from "./console/runtime/sections.js";
|
|
3
|
+
import { consoleDefinitionSectionIds } from "./console/runtime/definitions.js";
|
|
4
|
+
import { installConsoleProjectName, installConsoleSections } from "./console/runtime/server/sections.js";
|
|
5
|
+
import { a as installConsoleFixtureInvocations, c as consoleFixtureRevision, l as readConsoleFixture, o as installConsoleInvocations, s as consoleFixtureEnvironmentVariable } from "./invocations-qwMRTSy7.js";
|
|
6
|
+
import { a as consoleInvocationRootPlugin, c as resolveGeneratedConsolePlugin, d as createConsoleCliNamespace, f as resolveConsoleProjectNameFromRoot, g as resolveDeploymentPlan, h as normalizeNitroPreset, i as configureConsoleFixtureLifecycle, l as updateConsoleInvocationRootState, m as discoverConsoleBuildCatalog, n as assertConsoleProductionAccess, o as createConsoleInvocationRootState, p as serializeConsoleRefresh, r as closeConsoleInvocationRootState, s as generatedConsolePluginRegistration, t as vitehub, u as addConsoleDevframeHandler } from "./src-XEJGHDr9.js";
|
|
7
|
+
import { a as VITEHUB_SERVER_DIRS, i as VITEHUB_PROJECT_ROOT, n as VITEHUB_GENERATED_ROOT, o as resolveViteHubProjectRoot, r as VITEHUB_NITRO_CONFIG_CONTEXT } from "./types-BucGTJnk.js";
|
|
8
|
+
import { join, relative, resolve } from "node:path";
|
|
9
|
+
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
3
10
|
import { mergeConfig } from "vite";
|
|
11
|
+
import { resolveAuthViteConfig } from "@vite-hub/auth/vite";
|
|
12
|
+
import { resolveBlobViteConfig } from "@vite-hub/blob/vite";
|
|
13
|
+
import { resolveEmailTemplateModulePath } from "@vite-hub/email/vite";
|
|
14
|
+
import { createEnvImportAliases } from "@vite-hub/env/vite";
|
|
15
|
+
import { resolveKVViteConfig } from "@vite-hub/kv/vite";
|
|
16
|
+
import { mergeGeneratedSourceNitroConfig } from "@vite-hub/source/vite";
|
|
17
|
+
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
18
|
+
import hubAuthNuxt from "@vite-hub/auth/nuxt";
|
|
19
|
+
import { hubDb } from "@vite-hub/database/nuxt";
|
|
4
20
|
//#region src/nuxt.ts
|
|
21
|
+
const databaseRuntimeState = fileURLToPath(new URL("./_internal/database/runtime/state", import.meta.url));
|
|
22
|
+
const consoleRuntimeRoot = fileURLToPath(new URL("./console/runtime", import.meta.url));
|
|
23
|
+
function configuredProjectRoot(root, value) {
|
|
24
|
+
return value && typeof value === "object" && "projectRoot" in value && typeof value.projectRoot === "string" ? resolve(root, value.projectRoot) : void 0;
|
|
25
|
+
}
|
|
26
|
+
function configuredProjectRootOption(value) {
|
|
27
|
+
return value && typeof value === "object" && "projectRoot" in value && typeof value.projectRoot === "string" ? value.projectRoot : void 0;
|
|
28
|
+
}
|
|
29
|
+
function configuredScanDirs(value) {
|
|
30
|
+
return value && typeof value === "object" && "scanDirs" in value && Array.isArray(value.scanDirs) ? value.scanDirs.filter((entry) => typeof entry === "string") : void 0;
|
|
31
|
+
}
|
|
32
|
+
const agentVueComposables = [
|
|
33
|
+
"useAgent",
|
|
34
|
+
"useAgentInvocation",
|
|
35
|
+
"useAgentInvocations",
|
|
36
|
+
"useChat"
|
|
37
|
+
];
|
|
38
|
+
const cloudflareTypes = fileURLToPath(new URL("./cloudflare-types.d.ts", import.meta.url));
|
|
39
|
+
function emailTemplateResolver(root) {
|
|
40
|
+
return {
|
|
41
|
+
name: "vite-hub/nuxt-email-templates",
|
|
42
|
+
resolveId: (id) => resolveEmailTemplateModulePath(root, id)
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function installEmailTemplateResolver(config, root) {
|
|
46
|
+
const rollupConfig = config.rollupConfig ??= {};
|
|
47
|
+
const plugins = rollupConfig.plugins ??= [];
|
|
48
|
+
if (!plugins.some((plugin) => plugin.name === "vite-hub/nuxt-email-templates")) plugins.push(emailTemplateResolver(root));
|
|
49
|
+
}
|
|
50
|
+
function markdownTemplateResolver(plugin) {
|
|
51
|
+
return {
|
|
52
|
+
name: "vite-hub/nuxt-markdown-templates",
|
|
53
|
+
load(id, ...args) {
|
|
54
|
+
const context = Object.create(this);
|
|
55
|
+
Object.defineProperty(context, "resolve", { value: async (...resolveArgs) => {
|
|
56
|
+
const resolved = await this.resolve(...resolveArgs);
|
|
57
|
+
return resolved && {
|
|
58
|
+
...resolved,
|
|
59
|
+
id: resolved.id.startsWith("\0raw:") ? resolved.id.slice(5) : resolved.id
|
|
60
|
+
};
|
|
61
|
+
} });
|
|
62
|
+
return plugin.load.call(context, id.startsWith("\0raw:") ? id.slice(5) : id, ...args);
|
|
63
|
+
},
|
|
64
|
+
async resolveId(...args) {
|
|
65
|
+
const resolved = await plugin.resolveId.call(this, ...args);
|
|
66
|
+
return resolved?.startsWith("\0raw:") ? resolved.slice(5) : resolved;
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
function pluginOptionHasName(option, name) {
|
|
71
|
+
if (Array.isArray(option)) return option.some((candidate) => pluginOptionHasName(candidate, name));
|
|
72
|
+
return Boolean(option && Reflect.get(Object(option), "name") === name);
|
|
73
|
+
}
|
|
74
|
+
function installMarkdownTemplateResolver(config, plugin) {
|
|
75
|
+
if (!plugin) return;
|
|
76
|
+
const rollupConfig = config.rollupConfig ??= {};
|
|
77
|
+
const configuredPlugins = rollupConfig.plugins;
|
|
78
|
+
const plugins = Array.isArray(configuredPlugins) ? configuredPlugins : configuredPlugins ? [configuredPlugins] : [];
|
|
79
|
+
rollupConfig.plugins = plugins;
|
|
80
|
+
if (!plugins.some((candidate) => pluginOptionHasName(candidate, "vite-hub/nuxt-markdown-templates"))) plugins.push(markdownTemplateResolver(plugin));
|
|
81
|
+
}
|
|
82
|
+
const nitroRuntimeResolverNames = new Set(["@vite-hub/blob/vite", "@vite-hub/kv/vite"]);
|
|
83
|
+
const nitroConfigResolvedNames = new Set([...nitroRuntimeResolverNames, "@vite-hub/sandbox/vite"]);
|
|
84
|
+
function pluginResolveIdHandler(plugin) {
|
|
85
|
+
if (typeof plugin.resolveId === "function") return plugin.resolveId;
|
|
86
|
+
return plugin.resolveId?.handler;
|
|
87
|
+
}
|
|
88
|
+
function pluginLoadHandler(plugin) {
|
|
89
|
+
if (typeof plugin.load === "function") return plugin.load;
|
|
90
|
+
return plugin.load?.handler;
|
|
91
|
+
}
|
|
92
|
+
function pluginConfigResolvedHandler(plugin) {
|
|
93
|
+
if (typeof plugin.configResolved === "function") return plugin.configResolved;
|
|
94
|
+
return plugin.configResolved?.handler;
|
|
95
|
+
}
|
|
96
|
+
function asReplayResolvedConfig(config) {
|
|
97
|
+
return config;
|
|
98
|
+
}
|
|
99
|
+
async function finalizeNitroReplayPlugins(plugins, config) {
|
|
100
|
+
for (const plugin of plugins) {
|
|
101
|
+
if (!nitroConfigResolvedNames.has(plugin.name)) continue;
|
|
102
|
+
const configResolved = pluginConfigResolvedHandler(plugin);
|
|
103
|
+
if (!configResolved) continue;
|
|
104
|
+
await configResolved.call({}, asReplayResolvedConfig(config));
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
function nitroRuntimeResolver(plugin) {
|
|
108
|
+
if (!nitroRuntimeResolverNames.has(plugin.name)) return;
|
|
109
|
+
const resolveId = pluginResolveIdHandler(plugin);
|
|
110
|
+
const load = pluginLoadHandler(plugin);
|
|
111
|
+
if (!resolveId && !load) return;
|
|
112
|
+
return {
|
|
113
|
+
name: `vite-hub/nuxt-runtime-resolver:${plugin.name}`,
|
|
114
|
+
...resolveId ? { resolveId(...args) {
|
|
115
|
+
return resolveId.call(this, ...args);
|
|
116
|
+
} } : {},
|
|
117
|
+
...load ? { load(...args) {
|
|
118
|
+
return load.call(this, ...args);
|
|
119
|
+
} } : {}
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
function installNitroRuntimeResolvers(config, plugins) {
|
|
123
|
+
const resolvers = plugins.map(nitroRuntimeResolver).filter((plugin) => Boolean(plugin));
|
|
124
|
+
if (!resolvers.length) return;
|
|
125
|
+
const rollupConfig = config.rollupConfig ??= {};
|
|
126
|
+
const configuredPlugins = rollupConfig.plugins;
|
|
127
|
+
const nitroPlugins = Array.isArray(configuredPlugins) ? configuredPlugins : configuredPlugins ? [configuredPlugins] : [];
|
|
128
|
+
rollupConfig.plugins = nitroPlugins;
|
|
129
|
+
for (const resolver of resolvers) if (!nitroPlugins.some((candidate) => pluginOptionHasName(candidate, resolver.name))) nitroPlugins.push(resolver);
|
|
130
|
+
}
|
|
131
|
+
function addTypeScriptDefaults(options, includes, excludes) {
|
|
132
|
+
const typescript = options.typescript ??= {};
|
|
133
|
+
const tsConfig = typescript.tsConfig ??= {};
|
|
134
|
+
tsConfig.include = [...new Set([...tsConfig.include ?? [], ...includes])];
|
|
135
|
+
if (excludes.length > 0) tsConfig.exclude = [...new Set([...tsConfig.exclude ?? [], ...excludes])];
|
|
136
|
+
}
|
|
137
|
+
function configuredProjectRoots(options, rootDir, viteRoot) {
|
|
138
|
+
return Object.entries(options).filter((entry) => {
|
|
139
|
+
const value = entry[1];
|
|
140
|
+
return Boolean(value && typeof value === "object" && "projectRoot" in value && typeof value.projectRoot === "string");
|
|
141
|
+
}).map(([name, value]) => resolve(name === "database" ? rootDir : viteRoot, value.projectRoot));
|
|
142
|
+
}
|
|
143
|
+
function addVueImports(nuxt, from, names) {
|
|
144
|
+
nuxt.options.imports ??= {};
|
|
145
|
+
const imports = nuxt.options.imports.imports ??= [];
|
|
146
|
+
for (const name of names) {
|
|
147
|
+
const existing = imports.find((entry) => (entry.as ?? entry.name) === name);
|
|
148
|
+
if (existing && existing.from !== from) throw new TypeError(`[vitehub] Cannot auto-import ${name} from ${from} because it is already configured from ${existing.from}.`);
|
|
149
|
+
if (!existing) imports.push({
|
|
150
|
+
from,
|
|
151
|
+
name
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
function renderConsoleNitroPlugin(projectRoot, sections, agents, catalog, blobStores, kvStores, fixture, fixtureSnapshot = fixture ? readConsoleFixture(fixture) : void 0, runtimeBinding) {
|
|
156
|
+
const agentsEnabled = sections.includes("agents");
|
|
157
|
+
const blobEnabled = sections.includes("blob");
|
|
158
|
+
const databaseEnabled = sections.includes("databases");
|
|
159
|
+
const kvEnabled = sections.includes("kv");
|
|
160
|
+
const definitionsEnabled = consoleDefinitionSectionIds.some((section) => sections.includes(section));
|
|
161
|
+
const revision = fixtureSnapshot ? consoleFixtureRevision(fixtureSnapshot) : void 0;
|
|
162
|
+
const fixtureSource = fixtureSnapshot ? `JSON.parse(${JSON.stringify(JSON.stringify(fixtureSnapshot))})` : void 0;
|
|
163
|
+
return [
|
|
164
|
+
`import { installConsoleProjectName, installConsoleSections } from "vite-hub/console/sections"`,
|
|
165
|
+
...blobEnabled ? [`import { installConsoleBlob } from "vite-hub/console/blob"`, `import { blob as vitehubConsoleBlob } from "vite-hub/blob"`] : [],
|
|
166
|
+
...agentsEnabled ? [`import { installConsoleAgentDefinitions, installConsoleFixtureInvocations } from "vite-hub/console/server"`] : [],
|
|
167
|
+
...definitionsEnabled ? [`import { installConsoleDefinitions } from "vite-hub/console/definitions"`] : [],
|
|
168
|
+
...databaseEnabled ? [`import { installConsoleDatabase } from "vite-hub/console/database"`, `import { databases as vitehubConsoleDatabases } from "vite-hub/database/drizzle"`] : [],
|
|
169
|
+
...kvEnabled ? [`import { installConsoleKV } from "vite-hub/console/kv"`, `import { kv as vitehubConsoleKV } from "vite-hub/kv"`] : [],
|
|
170
|
+
...agents.map((agent, index) => `import * as vitehubConsoleAgent${index} from ${JSON.stringify(pathToFileURL(agent.handler).href)}`),
|
|
171
|
+
`installConsoleSections(${JSON.stringify(projectRoot)}, ${JSON.stringify(sections)})`,
|
|
172
|
+
...blobEnabled ? [`installConsoleBlob(${JSON.stringify(projectRoot)}, vitehubConsoleBlob, ${JSON.stringify(blobStores)})`] : [],
|
|
173
|
+
`installConsoleProjectName(${JSON.stringify(projectRoot)}, ${JSON.stringify(resolveConsoleProjectNameFromRoot(projectRoot))})`,
|
|
174
|
+
...definitionsEnabled ? [`installConsoleDefinitions(${JSON.stringify(projectRoot)}, ${JSON.stringify(catalog.definitions)})`] : [],
|
|
175
|
+
...databaseEnabled ? [`installConsoleDatabase(${JSON.stringify(projectRoot)}, vitehubConsoleDatabases, ${JSON.stringify(catalog.definitions.databases?.map((definition) => definition.name) ?? [])})`] : [],
|
|
176
|
+
...agentsEnabled ? fixture ? [`const vitehubConsoleInvocations = installConsoleFixtureInvocations(${JSON.stringify(projectRoot)}, ${JSON.stringify(fixture)}, ${fixtureSource}, ${JSON.stringify(revision)}, ${JSON.stringify(runtimeBinding)})`, `installConsoleAgentDefinitions([${agents.map((agent, index) => `{ definition: vitehubConsoleAgent${index}, fallbackName: ${JSON.stringify(agent.name)} }`).join(", ")}], { invocations: vitehubConsoleInvocations })`] : [`installConsoleAgentDefinitions([${agents.map((agent, index) => `{ definition: vitehubConsoleAgent${index}, fallbackName: ${JSON.stringify(agent.name)} }`).join(", ")}], { projectRoot: ${JSON.stringify(projectRoot)} })`] : [],
|
|
177
|
+
...kvEnabled ? [`installConsoleKV(${JSON.stringify(projectRoot)}, vitehubConsoleKV, ${JSON.stringify(kvStores)})`] : [],
|
|
178
|
+
"export default function viteHubConsolePlugin() {}",
|
|
179
|
+
""
|
|
180
|
+
].join("\n");
|
|
181
|
+
}
|
|
182
|
+
async function writeConsoleNitroPlugin(file, projectRoot, sections, agents, catalog, blobStores, kvStores, fixture, runtimeBinding, active = () => true) {
|
|
183
|
+
const snapshot = fixture ? readConsoleFixture(fixture) : void 0;
|
|
184
|
+
const identity = createConsoleInvocationsIdentity(projectRoot, fixture, snapshot ? consoleFixtureRevision(snapshot) : void 0, runtimeBinding);
|
|
185
|
+
if (!active()) return identity;
|
|
186
|
+
const contents = renderConsoleNitroPlugin(projectRoot, sections, agents, catalog, blobStores, kvStores, fixture, snapshot, runtimeBinding);
|
|
187
|
+
if (await readFile(file, "utf8").catch(() => void 0) !== contents) {
|
|
188
|
+
await mkdir(resolve(file, ".."), { recursive: true });
|
|
189
|
+
await writeFile(file, contents, "utf8");
|
|
190
|
+
}
|
|
191
|
+
if (fixture && snapshot) installConsoleFixtureInvocations(projectRoot, fixture, snapshot, consoleFixtureRevision(snapshot), runtimeBinding);
|
|
192
|
+
return identity;
|
|
193
|
+
}
|
|
194
|
+
async function installConsole(nuxt, projectRoot, discoveryRoot, workflowDiscoveryRoot, queueDiscoveryRoot, sections, blobStores, kvStores, fixture, serverDirs, installInvocations = true, writeGeneratedPlugin = true, invocationRootState, canDiscoverDefinitions = () => true, discoveryOptions = {}) {
|
|
195
|
+
const uiModule = (await import("@vite-hub/ui/nuxt")).default;
|
|
196
|
+
if (!(nuxt.options.modules ?? []).some((entry) => {
|
|
197
|
+
const module = Array.isArray(entry) ? entry[0] : entry;
|
|
198
|
+
return module === "@vite-hub/ui/nuxt" || module === "vite-hub/ui/nuxt" || module === uiModule;
|
|
199
|
+
})) await Reflect.apply(uiModule, void 0, [{}, nuxt]);
|
|
200
|
+
const plugin = resolveGeneratedConsolePlugin(projectRoot, fixture, invocationRootState);
|
|
201
|
+
installConsoleSections(projectRoot, sections);
|
|
202
|
+
installConsoleProjectName(projectRoot, resolveConsoleProjectNameFromRoot(projectRoot));
|
|
203
|
+
if (installInvocations && nuxt.options.dev && sections.includes("agents") && !fixture) installConsoleInvocations(projectRoot);
|
|
204
|
+
const routeRules = nuxt.options.routeRules ??= {};
|
|
205
|
+
for (const route of ["/_vitehub", "/_vitehub/**"]) {
|
|
206
|
+
const rule = routeRules[route] ??= {};
|
|
207
|
+
rule.headers = {
|
|
208
|
+
...rule.headers,
|
|
209
|
+
"x-robots-tag": "noindex, nofollow"
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
const hookPages = nuxt.hook;
|
|
213
|
+
hookPages?.("pages:extend", (pages) => {
|
|
214
|
+
const additions = [
|
|
215
|
+
{
|
|
216
|
+
file: join(consoleRuntimeRoot, "pages/index.vue"),
|
|
217
|
+
name: "vitehub-console",
|
|
218
|
+
path: "/_vitehub"
|
|
219
|
+
},
|
|
220
|
+
...sections.includes("agents") ? [
|
|
221
|
+
{
|
|
222
|
+
file: join(consoleRuntimeRoot, "pages/agents.vue"),
|
|
223
|
+
name: "vitehub-console-agents",
|
|
224
|
+
path: "/_vitehub/agents"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
file: join(consoleRuntimeRoot, "pages/agents.vue"),
|
|
228
|
+
name: "vitehub-console-agent",
|
|
229
|
+
path: "/_vitehub/agents/:agent"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
file: join(consoleRuntimeRoot, "pages/agents.vue"),
|
|
233
|
+
name: "vitehub-console-invocation",
|
|
234
|
+
path: "/_vitehub/agents/:agent/invocations/:invocation"
|
|
235
|
+
}
|
|
236
|
+
] : [],
|
|
237
|
+
...sections.includes("usage") ? [{
|
|
238
|
+
file: join(consoleRuntimeRoot, "pages/agents.vue"),
|
|
239
|
+
name: "vitehub-console-usage",
|
|
240
|
+
path: "/_vitehub/usage"
|
|
241
|
+
}] : [],
|
|
242
|
+
...sections.includes("blob") ? [{
|
|
243
|
+
file: join(consoleRuntimeRoot, "pages/blob.vue"),
|
|
244
|
+
name: "vitehub-console-blob",
|
|
245
|
+
path: "/_vitehub/blob"
|
|
246
|
+
}] : [],
|
|
247
|
+
...sections.includes("kv") ? [{
|
|
248
|
+
file: join(consoleRuntimeRoot, "pages/kv.vue"),
|
|
249
|
+
name: "vitehub-console-kv",
|
|
250
|
+
path: "/_vitehub/kv"
|
|
251
|
+
}] : [],
|
|
252
|
+
...sections.includes("databases") ? [{
|
|
253
|
+
file: join(consoleRuntimeRoot, "pages/databases.vue"),
|
|
254
|
+
name: "vitehub-console-databases-schema",
|
|
255
|
+
path: "/_vitehub/databases/:database/schema/diagram"
|
|
256
|
+
}, {
|
|
257
|
+
file: join(consoleRuntimeRoot, "pages/databases.vue"),
|
|
258
|
+
name: "vitehub-console-databases",
|
|
259
|
+
path: "/_vitehub/databases/:database?/:table?"
|
|
260
|
+
}] : [],
|
|
261
|
+
...sections.includes("workflows") ? [{
|
|
262
|
+
file: join(consoleRuntimeRoot, "pages/workflows.vue"),
|
|
263
|
+
name: "vitehub-console-workflows",
|
|
264
|
+
path: "/_vitehub/workflows"
|
|
265
|
+
}] : [],
|
|
266
|
+
...sections.includes("workspaces") ? [{
|
|
267
|
+
file: join(consoleRuntimeRoot, "pages/workspaces.vue"),
|
|
268
|
+
name: "vitehub-console-workspaces",
|
|
269
|
+
path: "/_vitehub/workspaces"
|
|
270
|
+
}] : [],
|
|
271
|
+
...sections.includes("sandboxes") ? [{
|
|
272
|
+
file: join(consoleRuntimeRoot, "pages/sandboxes.vue"),
|
|
273
|
+
name: "vitehub-console-sandboxes",
|
|
274
|
+
path: "/_vitehub/sandboxes"
|
|
275
|
+
}] : [],
|
|
276
|
+
...sections.includes("rate-limits") ? [{
|
|
277
|
+
file: join(consoleRuntimeRoot, "pages/rate-limits.vue"),
|
|
278
|
+
name: "vitehub-console-rate-limits",
|
|
279
|
+
path: "/_vitehub/rate-limits"
|
|
280
|
+
}] : [],
|
|
281
|
+
...sections.includes("queues") ? [{
|
|
282
|
+
file: join(consoleRuntimeRoot, "pages/queues.vue"),
|
|
283
|
+
name: "vitehub-console-queues",
|
|
284
|
+
path: "/_vitehub/queues"
|
|
285
|
+
}] : [],
|
|
286
|
+
...sections.includes("schedules") ? [{
|
|
287
|
+
file: join(consoleRuntimeRoot, "pages/schedules.vue"),
|
|
288
|
+
name: "vitehub-console-schedules",
|
|
289
|
+
path: "/_vitehub/schedules"
|
|
290
|
+
}] : []
|
|
291
|
+
];
|
|
292
|
+
for (const page of additions) if (!pages.some((candidate) => candidate.path === page.path)) pages.push(page);
|
|
293
|
+
});
|
|
294
|
+
const nitro = nuxt.options.nitro ??= {};
|
|
295
|
+
addConsoleDevframeHandler(nitro, consoleRuntimeRoot);
|
|
296
|
+
const plugins = (nitro.plugins ??= []).filter((candidate) => !generatedConsolePluginRegistration(candidate));
|
|
297
|
+
nitro.plugins = plugins;
|
|
298
|
+
const refreshAgentDefinitions = serializeConsoleRefresh(async () => {
|
|
299
|
+
const discoverySections = canDiscoverDefinitions() ? sections : sections.filter((section) => !consoleDefinitionSectionIds.some((definitionSection) => definitionSection === section));
|
|
300
|
+
const catalog = await discoverConsoleBuildCatalog({
|
|
301
|
+
...discoveryOptions,
|
|
302
|
+
discoveryRoot,
|
|
303
|
+
projectRoot,
|
|
304
|
+
queueDiscoveryRoot,
|
|
305
|
+
sections: discoverySections,
|
|
306
|
+
serverDirs,
|
|
307
|
+
workflowDiscoveryRoot
|
|
308
|
+
});
|
|
309
|
+
const identity = await writeConsoleNitroPlugin(plugin, projectRoot, sections, catalog.agents, catalog, blobStores, kvStores, fixture, invocationRootState?.binding, () => !invocationRootState?.closed);
|
|
310
|
+
if (invocationRootState) updateConsoleInvocationRootState(invocationRootState, projectRoot, identity);
|
|
311
|
+
});
|
|
312
|
+
if (fixture && invocationRootState) {
|
|
313
|
+
configureConsoleFixtureLifecycle(invocationRootState, plugin, refreshAgentDefinitions);
|
|
314
|
+
nuxt.hook?.("close", async () => closeConsoleInvocationRootState(invocationRootState));
|
|
315
|
+
}
|
|
316
|
+
if (writeGeneratedPlugin) await refreshAgentDefinitions();
|
|
317
|
+
if (nuxt.options.dev && writeGeneratedPlugin) {
|
|
318
|
+
if (fixture) nuxt.options.watch = [...new Set([...nuxt.options.watch ?? [], fixture])];
|
|
319
|
+
const hookBuilderWatch = nuxt.hook;
|
|
320
|
+
hookBuilderWatch?.("builder:watch", async (_event, _path) => {
|
|
321
|
+
if (fixture) {
|
|
322
|
+
await refreshAgentDefinitions().catch((error) => {
|
|
323
|
+
console.error(`[vitehub] Could not refresh Console development state: ${error instanceof Error ? error.message : String(error)}`);
|
|
324
|
+
});
|
|
325
|
+
return;
|
|
326
|
+
}
|
|
327
|
+
await refreshAgentDefinitions();
|
|
328
|
+
});
|
|
329
|
+
}
|
|
330
|
+
if (!plugins.includes(plugin)) plugins.push(plugin);
|
|
331
|
+
return plugin;
|
|
332
|
+
}
|
|
333
|
+
function isEnvDeclarationNamespace(value) {
|
|
334
|
+
return Boolean(value && typeof value === "object" && !Array.isArray(value) && value.kind !== "env-variable");
|
|
335
|
+
}
|
|
336
|
+
function mergeEnvDeclarationNamespaces(existing, configured) {
|
|
337
|
+
const merged = { ...existing };
|
|
338
|
+
for (const [key, value] of Object.entries(configured)) {
|
|
339
|
+
const current = merged[key];
|
|
340
|
+
merged[key] = isEnvDeclarationNamespace(current) && isEnvDeclarationNamespace(value) ? mergeEnvDeclarationNamespaces(current, value) : value;
|
|
341
|
+
}
|
|
342
|
+
return merged;
|
|
343
|
+
}
|
|
344
|
+
function agentWorkflowRegistryTransform(plugin) {
|
|
345
|
+
return plugin.vitehub?.agent?.transformWorkflowRegistry;
|
|
346
|
+
}
|
|
5
347
|
function flattenPlugins(options) {
|
|
6
348
|
const plugins = [];
|
|
7
349
|
for (const option of options) if (Array.isArray(option)) plugins.push(...flattenPlugins(option));
|
|
8
350
|
else if (option && typeof option === "object" && "name" in option) plugins.push(option);
|
|
9
351
|
return plugins;
|
|
10
352
|
}
|
|
353
|
+
function filterPluginOptions(options, keep) {
|
|
354
|
+
return options.flatMap((option) => {
|
|
355
|
+
if (Array.isArray(option)) {
|
|
356
|
+
const nested = filterPluginOptions(option, keep);
|
|
357
|
+
return nested.length > 0 ? [nested] : [];
|
|
358
|
+
}
|
|
359
|
+
const plugin = flattenPlugins([option])[0];
|
|
360
|
+
if (plugin && !keep(plugin)) return [];
|
|
361
|
+
return [option];
|
|
362
|
+
});
|
|
363
|
+
}
|
|
11
364
|
function configHandler(plugin) {
|
|
12
365
|
if (typeof plugin.config === "function") return plugin.config;
|
|
13
366
|
return plugin.config?.handler;
|
|
@@ -15,6 +368,29 @@ function configHandler(plugin) {
|
|
|
15
368
|
function queueNitroConfigHandler(plugin) {
|
|
16
369
|
return plugin.vitehub?.queue?.createNitroConfig;
|
|
17
370
|
}
|
|
371
|
+
function workflowNitroConfigHandler(plugin) {
|
|
372
|
+
return plugin.vitehub?.workflow?.createNitroConfig;
|
|
373
|
+
}
|
|
374
|
+
function deploymentOutputEnvPluginHandler(plugin) {
|
|
375
|
+
return plugin.vitehub?.deploymentOutput?.useEnvPlugin;
|
|
376
|
+
}
|
|
377
|
+
function vitePluginNitroModule(plugin) {
|
|
378
|
+
const nitro = plugin.nitro;
|
|
379
|
+
return nitro && typeof nitro.setup === "function" ? nitro : void 0;
|
|
380
|
+
}
|
|
381
|
+
function installVitePluginNitroModules(config, plugins) {
|
|
382
|
+
const configured = config.modules;
|
|
383
|
+
const modules = Array.isArray(configured) ? configured : configured ? [configured] : [];
|
|
384
|
+
config.modules = modules;
|
|
385
|
+
for (const plugin of plugins) {
|
|
386
|
+
const nitroModule = vitePluginNitroModule(plugin);
|
|
387
|
+
if (!nitroModule) continue;
|
|
388
|
+
if (!modules.some((candidate) => {
|
|
389
|
+
if (candidate === nitroModule) return true;
|
|
390
|
+
return Boolean(nitroModule.name && candidate && typeof candidate === "object" && Reflect.get(candidate, "name") === nitroModule.name);
|
|
391
|
+
})) modules.push(nitroModule);
|
|
392
|
+
}
|
|
393
|
+
}
|
|
18
394
|
function withoutDeploymentOutput(options) {
|
|
19
395
|
return options.flatMap((option) => {
|
|
20
396
|
if (Array.isArray(option)) return [withoutDeploymentOutput(option)];
|
|
@@ -22,7 +398,7 @@ function withoutDeploymentOutput(options) {
|
|
|
22
398
|
return [option];
|
|
23
399
|
});
|
|
24
400
|
}
|
|
25
|
-
async function applyNitroConfig(plugins, nitroConfig, nuxt) {
|
|
401
|
+
async function applyNitroConfig(plugins, nitroConfig, nuxt, projectRoot) {
|
|
26
402
|
const environment = {
|
|
27
403
|
command: nuxt.options.dev ? "serve" : "build",
|
|
28
404
|
isPreview: false,
|
|
@@ -30,54 +406,358 @@ async function applyNitroConfig(plugins, nitroConfig, nuxt) {
|
|
|
30
406
|
mode: nuxt.options.dev ? "development" : "production"
|
|
31
407
|
};
|
|
32
408
|
const serverDirs = nuxt.options.serverDir ? [nuxt.options.serverDir] : void 0;
|
|
409
|
+
const generatedRoot = join(nuxt.options.buildDir, "vitehub");
|
|
33
410
|
let config = mergeConfig({
|
|
411
|
+
plugins,
|
|
34
412
|
resolve: { alias: nuxt.options.alias },
|
|
35
|
-
root: nuxt.options.
|
|
413
|
+
root: nuxt.options.rootDir || process.cwd()
|
|
36
414
|
}, nuxt.options.vite ?? {});
|
|
37
|
-
config
|
|
38
|
-
|
|
415
|
+
config.root = resolve(nuxt.options.rootDir || process.cwd(), config.root || ".");
|
|
416
|
+
const restoreReplayOwnership = () => {
|
|
417
|
+
config[VITEHUB_GENERATED_ROOT] = generatedRoot;
|
|
418
|
+
config[VITEHUB_NITRO_CONFIG_CONTEXT] = true;
|
|
419
|
+
config[VITEHUB_PROJECT_ROOT] = projectRoot;
|
|
420
|
+
if (serverDirs) config[VITEHUB_SERVER_DIRS] = serverDirs;
|
|
421
|
+
};
|
|
422
|
+
restoreReplayOwnership();
|
|
39
423
|
config.build ??= {};
|
|
40
424
|
config.nitro = nitroConfig;
|
|
41
425
|
config.server ??= {};
|
|
42
|
-
|
|
426
|
+
const transformWorkflowRegistry = plugins.map(agentWorkflowRegistryTransform).find(Boolean);
|
|
427
|
+
const orderedPlugins = [...plugins].sort((left, right) => {
|
|
428
|
+
const order = (plugin) => plugin.name === "vite-hub/deployment-output" ? 2 : plugin.enforce === "pre" ? -1 : plugin.enforce === "post" ? 1 : 0;
|
|
429
|
+
return order(left) - order(right);
|
|
430
|
+
});
|
|
431
|
+
let replayedDatabaseDiscoveryRoot;
|
|
432
|
+
let hasReplayedDatabaseDiscoveryRoot = false;
|
|
433
|
+
for (const plugin of orderedPlugins) {
|
|
43
434
|
const handler = configHandler(plugin);
|
|
44
435
|
if (handler) {
|
|
436
|
+
const previousDatabaseProjectRoot = configuredProjectRootOption(config.database);
|
|
45
437
|
const result = await handler.call({}, config, environment);
|
|
438
|
+
let returnedDatabase;
|
|
46
439
|
if (result) {
|
|
47
440
|
const { nitro, ...viteConfig } = result;
|
|
441
|
+
if (Object.hasOwn(viteConfig, "database")) returnedDatabase = viteConfig.database;
|
|
48
442
|
config = mergeConfig(config, viteConfig);
|
|
49
443
|
if (nitro) config.nitro = nitro;
|
|
50
|
-
config[VITEHUB_NITRO_CONFIG_CONTEXT] = true;
|
|
51
|
-
if (serverDirs) config[VITEHUB_SERVER_DIRS] = serverDirs;
|
|
52
444
|
}
|
|
445
|
+
if (plugin.name !== "@vite-hub/database/vite") {
|
|
446
|
+
const currentDatabaseProjectRoot = configuredProjectRootOption(config.database);
|
|
447
|
+
if (returnedDatabase !== void 0 || currentDatabaseProjectRoot !== previousDatabaseProjectRoot) {
|
|
448
|
+
hasReplayedDatabaseDiscoveryRoot = true;
|
|
449
|
+
replayedDatabaseDiscoveryRoot = returnedDatabase !== void 0 ? configuredProjectRoot(config.root || projectRoot, returnedDatabase) : configuredProjectRoot(config.root || projectRoot, config.database);
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
restoreReplayOwnership();
|
|
53
453
|
}
|
|
54
454
|
const createQueueNitroConfig = queueNitroConfigHandler(plugin);
|
|
55
455
|
if (createQueueNitroConfig) {
|
|
56
456
|
const projectRoot = nuxt.options.rootDir || process.cwd();
|
|
57
457
|
config.nitro = await createQueueNitroConfig({
|
|
458
|
+
development: nuxt.options.dev,
|
|
58
459
|
nitro: config.nitro || {},
|
|
59
460
|
projectRoot,
|
|
60
|
-
root:
|
|
461
|
+
root: projectRoot,
|
|
61
462
|
serverDirs: nuxt.options.serverDir ? [nuxt.options.serverDir] : void 0
|
|
62
463
|
});
|
|
63
464
|
}
|
|
465
|
+
const createWorkflowNitroConfig = workflowNitroConfigHandler(plugin);
|
|
466
|
+
if (createWorkflowNitroConfig) {
|
|
467
|
+
const projectRoot = nuxt.options.rootDir || process.cwd();
|
|
468
|
+
config.nitro = await createWorkflowNitroConfig({
|
|
469
|
+
nitro: config.nitro || {},
|
|
470
|
+
projectRoot,
|
|
471
|
+
serverDirs: nuxt.options.serverDir ? [nuxt.options.serverDir] : void 0,
|
|
472
|
+
transformRegistry: transformWorkflowRegistry
|
|
473
|
+
});
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
await finalizeNitroReplayPlugins(plugins, config);
|
|
477
|
+
if (config.nitro) {
|
|
478
|
+
installVitePluginNitroModules(config.nitro, plugins);
|
|
479
|
+
Object.assign(nitroConfig, config.nitro);
|
|
64
480
|
}
|
|
65
|
-
|
|
481
|
+
return {
|
|
482
|
+
config,
|
|
483
|
+
hasReplayedDatabaseDiscoveryRoot,
|
|
484
|
+
replayedDatabaseDiscoveryRoot
|
|
485
|
+
};
|
|
486
|
+
}
|
|
487
|
+
function resolvedKVFromPlugin(plugin, configured) {
|
|
488
|
+
return plugin?.api?.getConfig?.().kv ?? (configured === void 0 ? false : resolveKVViteConfig(configured).kv);
|
|
66
489
|
}
|
|
67
|
-
async function viteHubNuxtModule(
|
|
490
|
+
const viteHubNuxtModule = async function viteHubNuxtModule(inlineOptions, nuxt) {
|
|
68
491
|
if (!nuxt) return;
|
|
69
|
-
const
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
const
|
|
492
|
+
const moduleOptions = {
|
|
493
|
+
...nuxt.options.vitehub,
|
|
494
|
+
...inlineOptions
|
|
495
|
+
};
|
|
496
|
+
const configuredEnv = moduleOptions.env;
|
|
497
|
+
const envConfig = configuredEnv && typeof configuredEnv === "object" ? {
|
|
498
|
+
define: configuredEnv.define,
|
|
499
|
+
public: configuredEnv.public,
|
|
500
|
+
server: configuredEnv.server
|
|
501
|
+
} : void 0;
|
|
502
|
+
const envOptions = configuredEnv && typeof configuredEnv === "object" ? Object.fromEntries(Object.entries(configuredEnv).filter(([key]) => ![
|
|
503
|
+
"define",
|
|
504
|
+
"public",
|
|
505
|
+
"server"
|
|
506
|
+
].includes(key))) : configuredEnv;
|
|
507
|
+
const options = {
|
|
508
|
+
...moduleOptions,
|
|
509
|
+
env: envOptions
|
|
510
|
+
};
|
|
511
|
+
const plan = resolveDeploymentPlan(options.preset);
|
|
512
|
+
const nitro = nuxt.options.nitro ??= {};
|
|
513
|
+
const nitroPreset = plan.preset === "cloudflare" && options.realtime ? "cloudflare-durable" : plan.nitroPreset;
|
|
514
|
+
if (typeof nitro.preset === "string" && normalizeNitroPreset(nitro.preset) !== nitroPreset) throw new Error("[vitehub] vitehub preset " + JSON.stringify(plan.preset) + " conflicts with nitro.preset " + JSON.stringify(nitro.preset) + ".");
|
|
515
|
+
nitro.preset = nitroPreset;
|
|
516
|
+
if (plan.preset === "cloudflare") {
|
|
517
|
+
const wasm = nitro.wasm ??= {};
|
|
518
|
+
wasm.lazy ??= true;
|
|
519
|
+
}
|
|
520
|
+
const rootDir = nuxt.options.rootDir || process.cwd();
|
|
74
521
|
nuxt.options.vite ??= {};
|
|
522
|
+
nuxt.options.vite.root ??= rootDir;
|
|
523
|
+
const viteRoot = resolve(rootDir, typeof nuxt.options.vite?.root === "string" ? nuxt.options.vite.root : rootDir);
|
|
524
|
+
const projectRoot = resolveViteHubProjectRoot(rootDir);
|
|
525
|
+
const configuredDatabaseDiscoveryRoot = configuredProjectRoot(viteRoot, nuxt.options.vite?.database) ?? configuredProjectRoot(rootDir, options.database);
|
|
526
|
+
const viteBlob = nuxt.options.vite.blob;
|
|
527
|
+
const effectiveBlob = options.console ? viteBlob ?? options.blob : false;
|
|
528
|
+
const explicitBlob = Boolean(effectiveBlob && effectiveBlob !== true && ("driver" in effectiveBlob || "stores" in effectiveBlob));
|
|
529
|
+
const consoleBlobEnabled = Boolean(effectiveBlob) && (plan.services.blob.supported || explicitBlob);
|
|
530
|
+
const resolvedConsoleBlob = consoleBlobEnabled ? resolveBlobViteConfig(effectiveBlob === true ? void 0 : effectiveBlob, { hosting: plan.nitroPreset }).blob : false;
|
|
531
|
+
const consoleBlobStores = resolvedConsoleBlob ? Object.keys(resolvedConsoleBlob.stores || { default: resolvedConsoleBlob.store }) : [];
|
|
532
|
+
const effectiveKV = nuxt.options.vite?.kv ?? options.kv;
|
|
533
|
+
const effectiveQueue = nuxt.options.vite?.queue ?? options.queue;
|
|
534
|
+
const effectiveWorkflow = nuxt.options.vite?.workflow ?? options.workflow;
|
|
535
|
+
const consoleSections = resolveConsoleSectionIds({
|
|
536
|
+
...options,
|
|
537
|
+
blob: consoleBlobEnabled,
|
|
538
|
+
kv: effectiveKV,
|
|
539
|
+
preset: plan.preset,
|
|
540
|
+
queue: effectiveQueue,
|
|
541
|
+
sandbox: options.sandbox === true && plan.services.sandbox.supported,
|
|
542
|
+
workflow: effectiveWorkflow
|
|
543
|
+
});
|
|
544
|
+
const resolvedConsoleKV = effectiveKV ? resolveKVViteConfig(effectiveKV && effectiveKV !== true ? effectiveKV : void 0, { hosting: plan.nitroPreset }).kv : false;
|
|
545
|
+
const consoleKVStores = resolvedConsoleKV ? Object.keys(resolvedConsoleKV.stores || { default: resolvedConsoleKV.store }) : [];
|
|
546
|
+
const consoleInvocationRootState = createConsoleInvocationRootState();
|
|
547
|
+
let resolvedConsoleFixture;
|
|
548
|
+
let generatedConsolePluginPath;
|
|
549
|
+
let consoleWorkflowConfigResolved = false;
|
|
550
|
+
if (options.console) {
|
|
551
|
+
const configuredConsole = options.console === true ? true : options.console;
|
|
552
|
+
const effectiveAuth = nuxt.options.vite?.auth ?? options.auth;
|
|
553
|
+
if (!nuxt.options.vitehubCliDiscovery) assertConsoleProductionAccess(configuredConsole, {
|
|
554
|
+
auth: configuredConsole !== true && configuredConsole.access === "auth" && effectiveAuth ? resolveAuthViteConfig(effectiveAuth === true ? void 0 : effectiveAuth, viteRoot, { serverDirs: nuxt.options.serverDir ? [nuxt.options.serverDir] : void 0 }) : void 0,
|
|
555
|
+
development: Boolean(nuxt.options.dev)
|
|
556
|
+
});
|
|
557
|
+
const fixture = nuxt.options.vitehubCliDiscovery ? void 0 : process.env[consoleFixtureEnvironmentVariable];
|
|
558
|
+
if (fixture && !nuxt.options.dev) throw new Error("[vitehub] Console fixture mode is development-only.");
|
|
559
|
+
resolvedConsoleFixture = fixture ? resolve(projectRoot, fixture) : void 0;
|
|
560
|
+
if (resolvedConsoleFixture) readConsoleFixture(resolvedConsoleFixture);
|
|
561
|
+
}
|
|
75
562
|
const viteConfig = nuxt.options.vite;
|
|
563
|
+
if (envConfig && Object.values(envConfig).some(Boolean)) {
|
|
564
|
+
const existingEnv = viteConfig.env ?? {};
|
|
565
|
+
viteConfig.env = {
|
|
566
|
+
...existingEnv,
|
|
567
|
+
...envConfig.define ? { define: mergeEnvDeclarationNamespaces(existingEnv.define, envConfig.define) } : {},
|
|
568
|
+
...envConfig.public ? { public: mergeEnvDeclarationNamespaces(existingEnv.public, envConfig.public) } : {},
|
|
569
|
+
...envConfig.server ? { server: mergeEnvDeclarationNamespaces(existingEnv.server, envConfig.server) } : {}
|
|
570
|
+
};
|
|
571
|
+
}
|
|
572
|
+
const secondaryProjectRoots = configuredProjectRoots(options.database && nuxt.options.database && typeof nuxt.options.database === "object" ? {
|
|
573
|
+
...options,
|
|
574
|
+
database: {
|
|
575
|
+
...nuxt.options.database,
|
|
576
|
+
...options.database === true ? {} : options.database
|
|
577
|
+
}
|
|
578
|
+
} : options, rootDir, viteRoot).filter((root) => root !== projectRoot);
|
|
579
|
+
const generatedTypes = [relative(nuxt.options.buildDir, join(projectRoot, ".vitehub/types.d.ts")), ...secondaryProjectRoots.map((root) => relative(nuxt.options.buildDir, join(root, ".vitehub/**/*.d.ts")))];
|
|
580
|
+
const generatedData = secondaryProjectRoots.map((root) => relative(nuxt.options.buildDir, join(root, ".vitehub/data/**/*.d.ts")));
|
|
581
|
+
if (options.preset === "cloudflare") generatedTypes.push(relative(nuxt.options.buildDir, cloudflareTypes));
|
|
582
|
+
addTypeScriptDefaults(nuxt.options, generatedTypes, generatedData);
|
|
583
|
+
addTypeScriptDefaults(nuxt.options.nitro ??= {}, generatedTypes, generatedData);
|
|
584
|
+
if (options.database) {
|
|
585
|
+
const databaseOptions = options.database === true ? {} : options.database;
|
|
586
|
+
await hubDb({
|
|
587
|
+
...options.preset === "cloudflare" ? { driver: "d1" } : {},
|
|
588
|
+
...databaseOptions
|
|
589
|
+
})(void 0, nuxt);
|
|
590
|
+
}
|
|
591
|
+
const installedPlugins = flattenPlugins(vitehub(options)).filter((plugin) => !(options.database && plugin.name === "@vite-hub/database/vite")).filter((plugin) => !options.console || !["vite-hub/console", "vite-hub/console-invocation-root"].includes(plugin.name));
|
|
592
|
+
const consoleFixtureSnapshot = resolvedConsoleFixture ? readConsoleFixture(resolvedConsoleFixture) : void 0;
|
|
593
|
+
const plugins = [
|
|
594
|
+
...installedPlugins.filter((plugin) => plugin.name !== "vite-hub/deployment-output"),
|
|
595
|
+
...options.console ? [{
|
|
596
|
+
name: "vite-hub/console-cli",
|
|
597
|
+
vitehub: { cli: { namespaces: [createConsoleCliNamespace()] } }
|
|
598
|
+
}] : [],
|
|
599
|
+
...options.console && options.agent ? [consoleInvocationRootPlugin(projectRoot, createConsoleInvocationsIdentity(projectRoot, resolvedConsoleFixture, consoleFixtureSnapshot ? consoleFixtureRevision(consoleFixtureSnapshot) : void 0, consoleInvocationRootState.binding), consoleInvocationRootState)] : []
|
|
600
|
+
];
|
|
601
|
+
const existing = withoutDeploymentOutput(Array.isArray(nuxt.options.vite?.plugins) ? nuxt.options.vite.plugins : []);
|
|
602
|
+
const existingPluginsByName = new Map(flattenPlugins(existing).filter((plugin) => plugin.name).map((plugin) => [plugin.name, plugin]));
|
|
603
|
+
const replayPlugins = [...installedPlugins.map((plugin) => existingPluginsByName.get(plugin.name) || plugin), ...flattenPlugins(existing).filter((plugin) => (plugin.name.startsWith("@vite-hub/") || plugin.name.startsWith("vite-hub/")) && !plugins.some((candidate) => candidate.name === plugin.name))];
|
|
604
|
+
const retainedKVPlugin = replayPlugins.find((plugin) => plugin.name === "@vite-hub/kv/vite");
|
|
605
|
+
const envPlugin = replayPlugins.find((plugin) => plugin.name === "@vite-hub/env/vite");
|
|
606
|
+
if (envPlugin) for (const plugin of replayPlugins) deploymentOutputEnvPluginHandler(plugin)?.(envPlugin);
|
|
607
|
+
if (options.env !== false) await envPlugin?.api?.prepareTypes?.(viteConfig.env, viteRoot);
|
|
608
|
+
const emailPlugin = replayPlugins.find((plugin) => plugin.name === "@vite-hub/email/vite");
|
|
609
|
+
const markdownTemplatePlugin = installedPlugins.find((plugin) => plugin.name === "@vite-hub/markdown-template/vite");
|
|
610
|
+
const emailTemplatePaths = await emailPlugin?.api?.prepareTypes?.({
|
|
611
|
+
materialize: true,
|
|
612
|
+
projectRoot,
|
|
613
|
+
serverDirs: nuxt.options.serverDir ? [nuxt.options.serverDir] : void 0
|
|
614
|
+
}) ?? {};
|
|
615
|
+
const emailCleanupPlugin = replayPlugins.find((plugin) => plugin.name === "@vite-hub/email/optional-peer-resolver");
|
|
616
|
+
if (!emailPlugin) await emailCleanupPlugin?.api?.prepareTypes?.(projectRoot);
|
|
617
|
+
const sourcePlugin = replayPlugins.find((plugin) => plugin.name === "@vite-hub/source/vite");
|
|
618
|
+
let generatedSourceHandlers = await sourcePlugin?.api?.prepareSources?.({
|
|
619
|
+
projectRoot,
|
|
620
|
+
serverDirs: nuxt.options.serverDir ? [nuxt.options.serverDir] : void 0
|
|
621
|
+
}) ?? [];
|
|
622
|
+
const typesPlugin = replayPlugins.find((plugin) => plugin.name === "vite-hub/types");
|
|
623
|
+
let generatedSourceRestart = Promise.resolve();
|
|
624
|
+
let generatedSourceRestartClosed = false;
|
|
625
|
+
const removeGeneratedHandlersListener = sourcePlugin?.api?.onGeneratedHandlersChanged?.((handlers) => {
|
|
626
|
+
const restart = generatedSourceRestart.then(async () => {
|
|
627
|
+
if (generatedSourceRestartClosed) return;
|
|
628
|
+
const previousHandlers = generatedSourceHandlers;
|
|
629
|
+
generatedSourceHandlers = handlers;
|
|
630
|
+
try {
|
|
631
|
+
await typesPlugin?.api?.prepareTypes?.({ projectRoot });
|
|
632
|
+
if (generatedSourceRestartClosed) return;
|
|
633
|
+
await nuxt.callHook?.("restart");
|
|
634
|
+
} catch (error) {
|
|
635
|
+
generatedSourceHandlers = previousHandlers;
|
|
636
|
+
throw error;
|
|
637
|
+
}
|
|
638
|
+
});
|
|
639
|
+
generatedSourceRestart = restart.catch(() => {});
|
|
640
|
+
return restart;
|
|
641
|
+
}, {
|
|
642
|
+
handlesHostRestart: true,
|
|
643
|
+
projectRoot
|
|
644
|
+
});
|
|
645
|
+
if (removeGeneratedHandlersListener) nuxt.hook?.("close", async () => {
|
|
646
|
+
generatedSourceRestartClosed = true;
|
|
647
|
+
removeGeneratedHandlersListener();
|
|
648
|
+
});
|
|
649
|
+
typesPlugin?.api?.setPrepareSources?.(sourcePlugin?.api?.prepareSources);
|
|
650
|
+
await typesPlugin?.api?.prepareTypes?.({ projectRoot });
|
|
651
|
+
viteConfig.define = {
|
|
652
|
+
...viteConfig.define,
|
|
653
|
+
__VITEHUB_APP_BASE_URL__: JSON.stringify(nuxt.options.app?.baseURL || "/")
|
|
654
|
+
};
|
|
655
|
+
viteConfig[VITEHUB_GENERATED_ROOT] = join(nuxt.options.buildDir, "vitehub");
|
|
76
656
|
viteConfig[VITEHUB_NITRO_CONFIG_CONTEXT] = true;
|
|
657
|
+
viteConfig[VITEHUB_PROJECT_ROOT] = projectRoot;
|
|
77
658
|
if (nuxt.options.serverDir) viteConfig[VITEHUB_SERVER_DIRS] = [nuxt.options.serverDir];
|
|
78
|
-
|
|
79
|
-
nuxt.
|
|
80
|
-
|
|
81
|
-
|
|
659
|
+
const installedVitePlugins = [...plugins.map((plugin) => existingPluginsByName.get(plugin.name) || plugin), ...filterPluginOptions(existing, (plugin) => !plugins.some((candidate) => candidate.name === plugin.name))];
|
|
660
|
+
nuxt.options.vite.plugins = installedVitePlugins;
|
|
661
|
+
const configuredEnvProjectRootOption = options.env && typeof options.env === "object" ? options.env.projectRoot : void 0;
|
|
662
|
+
const configuredEnvProjectRoot = configuredEnvProjectRootOption ? resolve(viteRoot, configuredEnvProjectRootOption) : void 0;
|
|
663
|
+
const envProjectRoot = envPlugin?.api?.resolveProjectRoot?.(viteRoot) ?? configuredEnvProjectRoot ?? projectRoot;
|
|
664
|
+
if (envPlugin?.api?.resolveProjectRoot && configuredEnvProjectRoot) {
|
|
665
|
+
if (configuredEnvProjectRoot !== envProjectRoot) throw new TypeError(`[vitehub] Env projectRoot ${JSON.stringify(configuredEnvProjectRootOption)} conflicts with the installed Env Vite plugin.`);
|
|
666
|
+
}
|
|
667
|
+
const generatedAliases = {
|
|
668
|
+
...options.env === false ? {} : createEnvImportAliases({ projectRoot: envProjectRoot }),
|
|
669
|
+
...!nuxt.options.dev ? Object.fromEntries(Object.entries(emailTemplatePaths).map(([name, path]) => [`#vitehub/emails/${name}`, path])) : {},
|
|
670
|
+
...emailPlugin && !nuxt.options.dev ? { "#vitehub/emails": join(projectRoot, ".vitehub/email/templates") } : {}
|
|
671
|
+
};
|
|
672
|
+
nuxt.hook?.("nitro:config", async (config) => {
|
|
673
|
+
const { config: replayConfig, hasReplayedDatabaseDiscoveryRoot, replayedDatabaseDiscoveryRoot } = await applyNitroConfig(replayPlugins, config, nuxt, projectRoot);
|
|
674
|
+
consoleWorkflowConfigResolved = true;
|
|
675
|
+
if (options.console) {
|
|
676
|
+
const resolvedKV = resolvedKVFromPlugin(retainedKVPlugin, viteConfig.kv);
|
|
677
|
+
const replayedBlob = replayConfig.blob ?? effectiveBlob;
|
|
678
|
+
const replayedExplicitBlob = Boolean(replayedBlob && replayedBlob !== true && ("driver" in replayedBlob || "stores" in replayedBlob));
|
|
679
|
+
const replayedBlobEnabled = Boolean(replayedBlob) && (plan.services.blob.supported || replayedExplicitBlob);
|
|
680
|
+
const resolvedReplayedBlob = replayedBlobEnabled ? resolveBlobViteConfig(replayedBlob === true ? void 0 : replayedBlob, { hosting: plan.nitroPreset }).blob : false;
|
|
681
|
+
const resolvedSections = resolveConsoleSectionIds({
|
|
682
|
+
...options,
|
|
683
|
+
blob: replayedBlobEnabled,
|
|
684
|
+
database: replayConfig.database ?? options.database,
|
|
685
|
+
kv: resolvedKV,
|
|
686
|
+
preset: plan.preset,
|
|
687
|
+
queue: effectiveQueue === false ? false : effectiveQueue === void 0 ? void 0 : replayConfig.queue ?? effectiveQueue,
|
|
688
|
+
sandbox: Boolean(replayConfig.sandbox ?? options.sandbox) && plan.services.sandbox.supported,
|
|
689
|
+
workspace: replayConfig.workspace ?? options.workspace,
|
|
690
|
+
workflow: replayConfig.workflow ?? options.workflow
|
|
691
|
+
});
|
|
692
|
+
consoleSections.splice(0, consoleSections.length, ...resolvedSections);
|
|
693
|
+
consoleBlobStores.splice(0, consoleBlobStores.length, ...resolvedReplayedBlob ? Object.keys(resolvedReplayedBlob.stores || { default: resolvedReplayedBlob.store }) : []);
|
|
694
|
+
consoleKVStores.splice(0, consoleKVStores.length, ...resolvedKV ? Object.keys(resolvedKV.stores || { default: resolvedKV.store }) : []);
|
|
695
|
+
installConsoleSections(projectRoot, consoleSections);
|
|
696
|
+
installConsoleProjectName(projectRoot, resolveConsoleProjectNameFromRoot(projectRoot));
|
|
697
|
+
addConsoleDevframeHandler(config, consoleRuntimeRoot);
|
|
698
|
+
const consoleCatalog = await discoverConsoleBuildCatalog({
|
|
699
|
+
databaseDiscoveryRoot: hasReplayedDatabaseDiscoveryRoot ? replayedDatabaseDiscoveryRoot : configuredDatabaseDiscoveryRoot,
|
|
700
|
+
discoveryRoot: viteRoot,
|
|
701
|
+
projectRoot,
|
|
702
|
+
queueDiscoveryRoot: rootDir,
|
|
703
|
+
rateLimitDiscoveryRoot: configuredProjectRoot(viteRoot, replayConfig.rateLimit ?? nuxt.options.vite?.rateLimit ?? options.rateLimit),
|
|
704
|
+
rateLimitScanDirs: configuredScanDirs(replayConfig.rateLimit ?? nuxt.options.vite?.rateLimit ?? options.rateLimit),
|
|
705
|
+
sections: consoleSections,
|
|
706
|
+
scheduleDiscoveryRoot: configuredProjectRoot(viteRoot, options.schedule),
|
|
707
|
+
serverDirs: nuxt.options.serverDir ? [nuxt.options.serverDir] : void 0,
|
|
708
|
+
workspaceDiscoveryRoot: configuredProjectRoot(viteRoot, replayConfig.workspace ?? nuxt.options.vite?.workspace ?? options.workspace),
|
|
709
|
+
workflowDiscoveryRoot: rootDir
|
|
710
|
+
});
|
|
711
|
+
await writeConsoleNitroPlugin(generatedConsolePluginPath ?? resolveGeneratedConsolePlugin(projectRoot, resolvedConsoleFixture, consoleInvocationRootState), projectRoot, consoleSections, consoleCatalog.agents, consoleCatalog, consoleBlobStores, consoleKVStores, resolvedConsoleFixture, consoleInvocationRootState.binding, () => !consoleInvocationRootState.closed);
|
|
712
|
+
}
|
|
713
|
+
Object.assign(config, mergeGeneratedSourceNitroConfig(config, generatedSourceHandlers));
|
|
714
|
+
installNitroRuntimeResolvers(config, replayPlugins);
|
|
715
|
+
installMarkdownTemplateResolver(config, markdownTemplatePlugin);
|
|
716
|
+
if (emailPlugin && nuxt.options.dev) installEmailTemplateResolver(config, join(projectRoot, ".vitehub/email/templates"));
|
|
717
|
+
const alias = config.alias ??= {};
|
|
718
|
+
for (const [name, path] of Object.entries(generatedAliases)) alias[name] ??= path;
|
|
719
|
+
});
|
|
720
|
+
if (options.agent) addVueImports(nuxt, "vite-hub/agent/vue", agentVueComposables);
|
|
721
|
+
addVueImports(nuxt, "vite-hub/source/client", ["useCollection"]);
|
|
722
|
+
if (options.auth) {
|
|
723
|
+
const envOptions = options.env || {};
|
|
724
|
+
hubAuthNuxt({
|
|
725
|
+
auth: options.auth === true ? void 0 : options.auth,
|
|
726
|
+
env: options.env === false ? false : { projectRoot: envOptions.projectRoot },
|
|
727
|
+
importsFrom: "vite-hub/auth/vue",
|
|
728
|
+
nitro: false
|
|
729
|
+
}, nuxt);
|
|
730
|
+
}
|
|
731
|
+
const nuxtAlias = nuxt.options.alias ??= {};
|
|
732
|
+
const nitroAlias = (nuxt.options.nitro ??= {}).alias ??= {};
|
|
733
|
+
if (emailPlugin && nuxt.options.dev) installEmailTemplateResolver(nuxt.options.nitro, join(projectRoot, ".vitehub/email/templates"));
|
|
734
|
+
for (const [name, path] of Object.entries(generatedAliases)) {
|
|
735
|
+
nuxtAlias[name] ??= path;
|
|
736
|
+
nitroAlias[name] ??= path;
|
|
737
|
+
}
|
|
738
|
+
if (options.realtime) {
|
|
739
|
+
addVueImports(nuxt, "vite-hub/realtime", ["defineRealtime"]);
|
|
740
|
+
addVueImports(nuxt, "vite-hub/realtime/vue", ["useRealtimeTiptap"]);
|
|
741
|
+
}
|
|
742
|
+
if (options.database) {
|
|
743
|
+
const nuxtAlias = nuxt.options.alias ??= {};
|
|
744
|
+
nuxtAlias["@vite-hub/database/runtime/state"] ??= databaseRuntimeState;
|
|
745
|
+
if (!nuxt.options.dev) nuxt.hook?.("nitro:config", async (config) => {
|
|
746
|
+
const alias = config.alias ??= {};
|
|
747
|
+
alias["@vite-hub/database/runtime/state"] ??= nuxtAlias["@vite-hub/database/runtime/state"];
|
|
748
|
+
});
|
|
749
|
+
}
|
|
750
|
+
if (options.console) generatedConsolePluginPath = await installConsole(nuxt, projectRoot, viteRoot, rootDir, rootDir, consoleSections, consoleBlobStores, consoleKVStores, resolvedConsoleFixture, nuxt.options.serverDir ? [nuxt.options.serverDir] : void 0, !nuxt.options.vitehubCliDiscovery, !nuxt.options.vitehubCliDiscovery, consoleInvocationRootState, () => consoleWorkflowConfigResolved, {
|
|
751
|
+
databaseDiscoveryRoot: configuredDatabaseDiscoveryRoot,
|
|
752
|
+
rateLimitDiscoveryRoot: configuredProjectRoot(viteRoot, nuxt.options.vite.rateLimit ?? options.rateLimit),
|
|
753
|
+
rateLimitScanDirs: configuredScanDirs(nuxt.options.vite.rateLimit ?? options.rateLimit),
|
|
754
|
+
scheduleDiscoveryRoot: configuredProjectRoot(viteRoot, options.schedule),
|
|
755
|
+
workspaceDiscoveryRoot: configuredProjectRoot(viteRoot, nuxt.options.vite.workspace ?? options.workspace)
|
|
756
|
+
});
|
|
757
|
+
};
|
|
758
|
+
viteHubNuxtModule.getMeta = () => ({
|
|
759
|
+
configKey: "vitehub",
|
|
760
|
+
name: "vite-hub/nuxt"
|
|
761
|
+
});
|
|
82
762
|
//#endregion
|
|
83
763
|
export { viteHubNuxtModule as default };
|