vite-hub 0.0.2 → 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 +50 -26
- 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 -36
- package/dist/index.js +2 -1121
- 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 +70 -0
- package/dist/nuxt.js +763 -0
- 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 +121 -37
- package/dist/agent/harness/claude-code.d.ts +0 -1
- package/dist/agent/harness/claude-code.js +0 -2
- package/dist/agent/harness/codex.d.ts +0 -1
- package/dist/agent/harness/codex.js +0 -2
- package/dist/agent/harness/local-sandbox.d.ts +0 -1
- package/dist/agent/harness/local-sandbox.js +0 -2
- package/dist/box/cloudflare.d.ts +0 -1
- package/dist/box/cloudflare.js +0 -2
- package/dist/box/crabbox.d.ts +0 -1
- package/dist/box/crabbox.js +0 -2
- package/dist/box/vercel.d.ts +0 -1
- package/dist/box/vercel.js +0 -2
- package/dist/email/drivers/smtp.d.ts +0 -1
- package/dist/email/drivers/smtp.js +0 -2
|
@@ -0,0 +1,1450 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import {
|
|
3
|
+
AgentInvocation,
|
|
4
|
+
AgentInvocationList,
|
|
5
|
+
agentInvocationContext,
|
|
6
|
+
agentInvocationExternalUrl,
|
|
7
|
+
agentInvocationProject,
|
|
8
|
+
agentInvocationTitle,
|
|
9
|
+
} from "@vite-hub/ui";
|
|
10
|
+
import { useAgentInvocation, useAgentInvocations } from "vite-hub/agent/vue";
|
|
11
|
+
import { computed, nextTick, onBeforeUnmount, onMounted, ref, watch } from "vue";
|
|
12
|
+
import { useRoute, useRouter } from "vue-router";
|
|
13
|
+
import { isConsoleHealth } from "./console-health-model";
|
|
14
|
+
|
|
15
|
+
import type { DropdownMenuItem, SplitterItem } from "@nuxt/ui";
|
|
16
|
+
import type {
|
|
17
|
+
AgentInvocationConfiguration,
|
|
18
|
+
AgentInvocationListItem,
|
|
19
|
+
AgentInvocationView,
|
|
20
|
+
} from "@vite-hub/ui";
|
|
21
|
+
import {
|
|
22
|
+
decodeAgentRouteParam,
|
|
23
|
+
encodeAgentRouteParam,
|
|
24
|
+
resolveConsoleRouteName,
|
|
25
|
+
} from "../console-route";
|
|
26
|
+
import { isRetryableConsoleRequestError, requestConsole } from "../client/request";
|
|
27
|
+
import { rememberConsoleSection } from "../sections";
|
|
28
|
+
import ConsoleBrand from "./console-brand.vue";
|
|
29
|
+
import ConsoleFrame from "./console-frame.vue";
|
|
30
|
+
import ConsolePrimitiveSwitcher from "./console-primitive-switcher.vue";
|
|
31
|
+
import ConsoleHealth from "./console-health.vue";
|
|
32
|
+
import ConsoleMark from "./console-mark.vue";
|
|
33
|
+
import ConsoleSessionLoading from "./console-session-loading.vue";
|
|
34
|
+
import ConsoleSessionNavbar from "./console-session-navbar.vue";
|
|
35
|
+
import ConsoleSessionInspector from "./console-session-inspector.vue";
|
|
36
|
+
import ConsoleSearch from "./console-search.vue";
|
|
37
|
+
import ConsoleUsage from "./console-usage.vue";
|
|
38
|
+
import {
|
|
39
|
+
isCapabilityFilterRouteTransition,
|
|
40
|
+
refreshCapabilityFilteredInvocations,
|
|
41
|
+
resetCapabilityFilterForRouteTransition,
|
|
42
|
+
useConsoleSessionBootstrap,
|
|
43
|
+
} from "./console-session-bootstrap";
|
|
44
|
+
import type { CapabilityFilterRouteTransition } from "./console-session-bootstrap";
|
|
45
|
+
import "./console-session.css";
|
|
46
|
+
|
|
47
|
+
const route = useRoute();
|
|
48
|
+
const router = useRouter();
|
|
49
|
+
const props = defineProps<{
|
|
50
|
+
agentsBase: string;
|
|
51
|
+
apiBase: string;
|
|
52
|
+
capabilitiesBase: string;
|
|
53
|
+
definitionsBase: string;
|
|
54
|
+
kvBase: string;
|
|
55
|
+
hostBase: string;
|
|
56
|
+
searchBase: string;
|
|
57
|
+
sectionsBase: string;
|
|
58
|
+
usageBase: string;
|
|
59
|
+
}>();
|
|
60
|
+
const initialAgentParam = decodeAgentRouteParam(route.params.agent);
|
|
61
|
+
const selectedInvocationId = ref<string>();
|
|
62
|
+
const selectedAgentName = ref(initialAgentParam?.trim() ? initialAgentParam : undefined);
|
|
63
|
+
const selectedCapabilityId = ref<string>();
|
|
64
|
+
const filterOpen = ref(false);
|
|
65
|
+
const capabilityIds = ref<string[]>([]);
|
|
66
|
+
const capabilitiesLoading = ref(false);
|
|
67
|
+
const capabilitiesError = ref<unknown>();
|
|
68
|
+
const initialBootstrapPending = ref(!selectedAgentName.value);
|
|
69
|
+
const agentNames = ref<string[]>([]);
|
|
70
|
+
const agentsLoading = ref(true);
|
|
71
|
+
const agentsError = ref<unknown>();
|
|
72
|
+
const nowMs = ref(Date.now());
|
|
73
|
+
const sessionsOpen = ref(false);
|
|
74
|
+
const sessionsCollapsed = ref(false);
|
|
75
|
+
const detailsOpen = ref(false);
|
|
76
|
+
const detailsMaximized = ref(false);
|
|
77
|
+
const inspectorTab = ref<"details" | "trace" | "workspace">("details");
|
|
78
|
+
const inspectorActiveSurface = ref("view:details");
|
|
79
|
+
const inspectorOpenViews = ref<Array<"details" | "trace" | "workspace">>(["details"]);
|
|
80
|
+
const inspectorOpenPaths = ref<string[]>([]);
|
|
81
|
+
const inspectorSelectedPath = ref<string>();
|
|
82
|
+
const inspectorWorkspaceIdentity = ref<string>();
|
|
83
|
+
const activePage = ref<"health" | "sessions">("sessions");
|
|
84
|
+
const healthAvailable = ref(false);
|
|
85
|
+
const selectedActivityId = ref<string>();
|
|
86
|
+
const isDesktop = ref(false);
|
|
87
|
+
const pageVisible = ref(!import.meta.env.SSR && document.visibilityState !== "hidden");
|
|
88
|
+
const refreshing = ref(false);
|
|
89
|
+
let clock: ReturnType<typeof setInterval> | undefined;
|
|
90
|
+
let agentsRetry: ReturnType<typeof setTimeout> | undefined;
|
|
91
|
+
let media: MediaQueryList | undefined;
|
|
92
|
+
let agentsRequest: AbortController | undefined;
|
|
93
|
+
let capabilitiesRequest: AbortController | undefined;
|
|
94
|
+
let capabilityIdsRequest: AbortController | undefined;
|
|
95
|
+
let refreshCount = 0;
|
|
96
|
+
let invocationListRefreshQueued = false;
|
|
97
|
+
let pendingCapabilityFilterRouteTransition: CapabilityFilterRouteTransition | undefined;
|
|
98
|
+
const sessionPollingEnabled = computed(
|
|
99
|
+
() =>
|
|
100
|
+
pageVisible.value &&
|
|
101
|
+
activePage.value === "sessions" &&
|
|
102
|
+
route.name !== resolveConsoleRouteName(route.name, "vitehub-console-usage"),
|
|
103
|
+
);
|
|
104
|
+
const listPollInterval = computed(() => (sessionPollingEnabled.value ? 5_000 : false));
|
|
105
|
+
const isUsageRoute = computed(
|
|
106
|
+
() => route.name === resolveConsoleRouteName(route.name, "vitehub-console-usage"),
|
|
107
|
+
);
|
|
108
|
+
|
|
109
|
+
const list = useAgentInvocations({
|
|
110
|
+
baseURL: props.apiBase,
|
|
111
|
+
immediate: pageVisible.value && !isUsageRoute.value,
|
|
112
|
+
pollInterval: listPollInterval,
|
|
113
|
+
request: requestConsole,
|
|
114
|
+
requestSummaries: requestConsole,
|
|
115
|
+
watch: false,
|
|
116
|
+
query: computed(() => ({
|
|
117
|
+
...(selectedAgentName.value ? { agent: selectedAgentName.value } : {}),
|
|
118
|
+
...(selectedCapabilityId.value ? { capability: selectedCapabilityId.value } : {}),
|
|
119
|
+
limit: 10,
|
|
120
|
+
})),
|
|
121
|
+
});
|
|
122
|
+
const selectedSummary = computed(() =>
|
|
123
|
+
list.invocations.value.find((invocation) => invocation.id === selectedInvocationId.value),
|
|
124
|
+
);
|
|
125
|
+
const { selectAgentName } = useConsoleSessionBootstrap({
|
|
126
|
+
agentNames,
|
|
127
|
+
firstInvocation: computed(() => list.invocations.value[0]),
|
|
128
|
+
initialBootstrapPending,
|
|
129
|
+
isUsageRoute,
|
|
130
|
+
isLoading: list.isLoading,
|
|
131
|
+
scheduleRefresh: scheduleInvocationListRefresh,
|
|
132
|
+
selectedAgentName,
|
|
133
|
+
});
|
|
134
|
+
const selectedDetailStatus = ref<{
|
|
135
|
+
id: string;
|
|
136
|
+
status: AgentInvocationListItem["status"];
|
|
137
|
+
}>();
|
|
138
|
+
const selectedDetailError = ref<unknown>();
|
|
139
|
+
const initialSessionLoading = computed(() =>
|
|
140
|
+
!selectedInvocationId.value && (agentsLoading.value || list.isLoading.value),
|
|
141
|
+
);
|
|
142
|
+
const detailPollInterval = computed(() => {
|
|
143
|
+
if (!sessionPollingEnabled.value || !selectedInvocationId.value) return false;
|
|
144
|
+
if (selectedDetailError.value) {
|
|
145
|
+
return isRetryableConsoleRequestError(selectedDetailError.value) ? 3_000 : false;
|
|
146
|
+
}
|
|
147
|
+
const detailStatus = selectedDetailStatus.value;
|
|
148
|
+
const status =
|
|
149
|
+
detailStatus?.id === selectedInvocationId.value
|
|
150
|
+
? detailStatus.status
|
|
151
|
+
: undefined;
|
|
152
|
+
return status === "completed" || status === "failed" || status === "cancelled" ? false : 3_000;
|
|
153
|
+
});
|
|
154
|
+
const detail = useAgentInvocation(selectedInvocationId, {
|
|
155
|
+
baseURL: props.apiBase,
|
|
156
|
+
immediate: pageVisible.value,
|
|
157
|
+
pollInterval: detailPollInterval,
|
|
158
|
+
request: requestConsole,
|
|
159
|
+
});
|
|
160
|
+
watch(
|
|
161
|
+
() => detail.error.value,
|
|
162
|
+
(error) => {
|
|
163
|
+
selectedDetailError.value = error;
|
|
164
|
+
},
|
|
165
|
+
{ flush: "sync", immediate: true },
|
|
166
|
+
);
|
|
167
|
+
|
|
168
|
+
const invocationItems = computed<AgentInvocationListItem[]>(() =>
|
|
169
|
+
list.invocations.value.map((invocation) => ({
|
|
170
|
+
agent: invocation.agentName,
|
|
171
|
+
context:
|
|
172
|
+
[invocationCostDisplay(invocation), agentInvocationContext(invocation)]
|
|
173
|
+
.filter((value): value is string => Boolean(value))
|
|
174
|
+
.join(" · ") || undefined,
|
|
175
|
+
description: invocation.error?.message,
|
|
176
|
+
id: invocation.id,
|
|
177
|
+
project: agentInvocationProject(invocation),
|
|
178
|
+
provider:
|
|
179
|
+
stringValue(invocation.annotations?.["agent.model.provider"]) ||
|
|
180
|
+
(invocation.id === selectedInvocationId.value
|
|
181
|
+
? invocationView.value?.configuration?.driver?.model?.provider ||
|
|
182
|
+
invocationView.value?.configuration?.driver?.provider
|
|
183
|
+
: undefined),
|
|
184
|
+
startedAt: invocation.startedAt,
|
|
185
|
+
status: invocation.status,
|
|
186
|
+
title: agentInvocationTitle(invocation),
|
|
187
|
+
updatedAt: invocation.updatedAt || invocation.startedAt || invocation.createdAt,
|
|
188
|
+
})),
|
|
189
|
+
);
|
|
190
|
+
const hasMultipleAgents = computed(() => agentNames.value.length > 1);
|
|
191
|
+
const selectedAgentLabel = computed(
|
|
192
|
+
() => selectedAgentName.value || (agentsLoading.value ? "Loading agents" : "Agents"),
|
|
193
|
+
);
|
|
194
|
+
const agentMenuItems = computed<DropdownMenuItem[]>(() =>
|
|
195
|
+
agentNames.value.map((name) => ({
|
|
196
|
+
icon: "i-ph-robot-light",
|
|
197
|
+
label: name,
|
|
198
|
+
onSelect: () => selectAgent(name),
|
|
199
|
+
trailingIcon: selectedAgentName.value === name ? "i-ph-check-light" : undefined,
|
|
200
|
+
})),
|
|
201
|
+
);
|
|
202
|
+
const capabilityFilterLabel = computed(() =>
|
|
203
|
+
selectedCapabilityId.value ? `Used ${selectedCapabilityId.value}` : "All capabilities",
|
|
204
|
+
);
|
|
205
|
+
const routeInvocation = computed(() => {
|
|
206
|
+
const value = route.params.invocation;
|
|
207
|
+
return Array.isArray(value) ? value[0] : value;
|
|
208
|
+
});
|
|
209
|
+
const routeAgent = computed(() => {
|
|
210
|
+
return decodeAgentRouteParam(route.params.agent);
|
|
211
|
+
});
|
|
212
|
+
const invocationView = computed<AgentInvocationView | undefined>(() => {
|
|
213
|
+
const invocation = detail.invocation.value;
|
|
214
|
+
if (!invocation || invocation.id !== selectedInvocationId.value) return;
|
|
215
|
+
if (selectedAgentName.value && invocation.agentName !== selectedAgentName.value) return;
|
|
216
|
+
const persistedConfiguration = invocationConfiguration(record(invocation)?.configuration);
|
|
217
|
+
const configuration = persistedConfiguration ?? observedConfiguration(detail.observations.value);
|
|
218
|
+
const view: AgentInvocationView = {
|
|
219
|
+
...invocation,
|
|
220
|
+
observations: detail.observations.value,
|
|
221
|
+
};
|
|
222
|
+
if (configuration) {
|
|
223
|
+
const configured = detail.observations.value.findLast(
|
|
224
|
+
(entry) => entry.name === "vitehub.agent.configured",
|
|
225
|
+
);
|
|
226
|
+
view.configuration = {
|
|
227
|
+
...configuration,
|
|
228
|
+
truncated: configured?.attributes?.["vitehub.agent.configurationTruncated"] === true,
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
return view;
|
|
232
|
+
});
|
|
233
|
+
const selectedDisplay = computed(() => invocationView.value ?? selectedSummary.value);
|
|
234
|
+
const selectedCost = computed(() => invocationCostDisplay(selectedDisplay.value));
|
|
235
|
+
const selectedTokens = computed(() => invocationTokenDisplay(selectedDisplay.value));
|
|
236
|
+
const selectedTitle = computed(() =>
|
|
237
|
+
selectedDisplay.value
|
|
238
|
+
? agentInvocationTitle(selectedDisplay.value)
|
|
239
|
+
: selectedAgentName.value || "ViteHub Console",
|
|
240
|
+
);
|
|
241
|
+
const selectedProject = computed(() =>
|
|
242
|
+
selectedDisplay.value
|
|
243
|
+
? agentInvocationProject(selectedDisplay.value)
|
|
244
|
+
: selectedAgentName.value || "Agents",
|
|
245
|
+
);
|
|
246
|
+
const selectedExternalUrl = computed(() =>
|
|
247
|
+
selectedDisplay.value ? agentInvocationExternalUrl(selectedDisplay.value) : undefined,
|
|
248
|
+
);
|
|
249
|
+
const splitterItems: SplitterItem[] = [
|
|
250
|
+
{
|
|
251
|
+
id: "thread",
|
|
252
|
+
slot: "thread",
|
|
253
|
+
minSize: 360,
|
|
254
|
+
defaultSize: 720,
|
|
255
|
+
sizeUnit: "px",
|
|
256
|
+
class: "h-full min-h-0 min-w-0 overflow-hidden",
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
id: "details",
|
|
260
|
+
slot: "details",
|
|
261
|
+
minSize: 360,
|
|
262
|
+
maxSize: 1080,
|
|
263
|
+
defaultSize: 440,
|
|
264
|
+
sizeUnit: "px",
|
|
265
|
+
class: "h-full min-h-0 min-w-0 overflow-hidden",
|
|
266
|
+
},
|
|
267
|
+
];
|
|
268
|
+
|
|
269
|
+
function selectActivity(id: string): void {
|
|
270
|
+
selectedActivityId.value = undefined;
|
|
271
|
+
if (!isDesktop.value) detailsOpen.value = false;
|
|
272
|
+
void nextTick(() => {
|
|
273
|
+
selectedActivityId.value = id;
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
function closeDetails(): void {
|
|
278
|
+
detailsOpen.value = false;
|
|
279
|
+
detailsMaximized.value = false;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
async function showHealth(): Promise<void> {
|
|
283
|
+
if (isUsageRoute.value) {
|
|
284
|
+
await router.push(
|
|
285
|
+
selectedAgentName.value
|
|
286
|
+
? {
|
|
287
|
+
name: resolveConsoleRouteName(route.name, "vitehub-console-agent"),
|
|
288
|
+
params: { agent: encodeAgentRouteParam(selectedAgentName.value) },
|
|
289
|
+
}
|
|
290
|
+
: { name: resolveConsoleRouteName(route.name, "vitehub-console-agents") },
|
|
291
|
+
);
|
|
292
|
+
}
|
|
293
|
+
activePage.value = "health";
|
|
294
|
+
closeDetails();
|
|
295
|
+
sessionsOpen.value = false;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
function showSessions(): void {
|
|
299
|
+
activePage.value = "sessions";
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
async function detectHostCapabilities(): Promise<void> {
|
|
303
|
+
capabilitiesRequest?.abort();
|
|
304
|
+
const controller = new AbortController();
|
|
305
|
+
capabilitiesRequest = controller;
|
|
306
|
+
try {
|
|
307
|
+
const response = await fetch(`${props.hostBase}/api/health`, {
|
|
308
|
+
method: "GET",
|
|
309
|
+
signal: controller.signal,
|
|
310
|
+
});
|
|
311
|
+
const available = response.ok && isConsoleHealth(await response.json());
|
|
312
|
+
if (capabilitiesRequest === controller) healthAvailable.value = available;
|
|
313
|
+
} catch (error) {
|
|
314
|
+
if (error instanceof Object && "name" in error && error.name === "AbortError") return;
|
|
315
|
+
if (capabilitiesRequest === controller) healthAvailable.value = false;
|
|
316
|
+
} finally {
|
|
317
|
+
if (capabilitiesRequest === controller) capabilitiesRequest = undefined;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
async function loadCapabilityIds(): Promise<void> {
|
|
322
|
+
capabilityIdsRequest?.abort();
|
|
323
|
+
const controller = new AbortController();
|
|
324
|
+
capabilityIdsRequest = controller;
|
|
325
|
+
capabilitiesLoading.value = true;
|
|
326
|
+
try {
|
|
327
|
+
const value = record(await requestConsole(props.capabilitiesBase, {
|
|
328
|
+
query: selectedAgentName.value ? { agent: selectedAgentName.value } : undefined,
|
|
329
|
+
signal: controller.signal,
|
|
330
|
+
}));
|
|
331
|
+
const ids = Array.isArray(value?.capabilities)
|
|
332
|
+
? value.capabilities.map(stringValue).filter((id): id is string => Boolean(id?.trim()))
|
|
333
|
+
: [];
|
|
334
|
+
if (capabilityIdsRequest === controller) {
|
|
335
|
+
capabilityIds.value = [...new Set(ids.map(id => id.trim()))].sort();
|
|
336
|
+
capabilitiesError.value = undefined;
|
|
337
|
+
if (selectedCapabilityId.value && !capabilityIds.value.includes(selectedCapabilityId.value)) {
|
|
338
|
+
selectedCapabilityId.value = undefined;
|
|
339
|
+
scheduleInvocationListRefresh();
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
} catch (error) {
|
|
343
|
+
if (error instanceof Object && "name" in error && error.name === "AbortError") return;
|
|
344
|
+
if (capabilityIdsRequest === controller) capabilitiesError.value = error;
|
|
345
|
+
} finally {
|
|
346
|
+
if (capabilityIdsRequest === controller) {
|
|
347
|
+
capabilityIdsRequest = undefined;
|
|
348
|
+
capabilitiesLoading.value = false;
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
function record(value: unknown): Record<string, unknown> | undefined {
|
|
354
|
+
return value instanceof Object && !Array.isArray(value)
|
|
355
|
+
? Object.fromEntries(Object.entries(value))
|
|
356
|
+
: undefined;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
function stringValue(value: unknown): string | undefined {
|
|
360
|
+
// doctor-disable-next-line typescript/strict/no-runtime-typeof -- Host responses are untrusted JSON, so validate strings at the capability boundary.
|
|
361
|
+
return typeof value === "string" ? value : undefined;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
function numericValue(value: unknown): number | undefined {
|
|
365
|
+
// doctor-disable-next-line typescript/strict/no-runtime-typeof -- Host responses are untrusted JSON, so validate finite numbers at the capability boundary.
|
|
366
|
+
return typeof value === "number" && Number.isFinite(value) ? value : undefined;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
function invocationUsage(value: unknown): Record<string, unknown> | undefined {
|
|
370
|
+
return record(record(value)?.usage);
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
function invocationCostDisplay(value: unknown): string | undefined {
|
|
374
|
+
const cost = record(invocationUsage(value)?.cost);
|
|
375
|
+
return stringValue(cost?.display);
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
function invocationTokenDisplay(value: unknown): string | undefined {
|
|
379
|
+
const total = numericValue(invocationUsage(value)?.totalTokens);
|
|
380
|
+
return total === undefined ? undefined : formatTokens(total);
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
function formatTokens(value: number): string {
|
|
384
|
+
return new Intl.NumberFormat("en", {
|
|
385
|
+
maximumFractionDigits: 1,
|
|
386
|
+
notation: value >= 10_000 ? "compact" : "standard",
|
|
387
|
+
}).format(value);
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
function invocationConfiguration(value: unknown): AgentInvocationConfiguration | undefined {
|
|
391
|
+
const configuration = record(value);
|
|
392
|
+
if (!configuration) return;
|
|
393
|
+
// SAFETY: Persisted configuration is server-owned JSON and the console treats every field as optional.
|
|
394
|
+
return configuration as AgentInvocationConfiguration;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
function observedConfiguration(
|
|
398
|
+
entries: AgentInvocationView["observations"],
|
|
399
|
+
): AgentInvocationConfiguration | undefined {
|
|
400
|
+
for (let index = entries.length - 1; index >= 0; index--) {
|
|
401
|
+
const entry = entries[index]!;
|
|
402
|
+
if (entry.name !== "vitehub.agent.configured") continue;
|
|
403
|
+
const configuration = record(entry.attributes?.["vitehub.agent.configuration"]);
|
|
404
|
+
if (configuration) return invocationConfiguration(configuration);
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
function errorMessage(error: unknown): string | undefined {
|
|
409
|
+
return error instanceof Error
|
|
410
|
+
? error.message
|
|
411
|
+
: error
|
|
412
|
+
? "The console could not load this data."
|
|
413
|
+
: undefined;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
async function selectInvocation(
|
|
417
|
+
invocation: Pick<AgentInvocationListItem, "agent" | "id">,
|
|
418
|
+
): Promise<void> {
|
|
419
|
+
const agentName = invocation.agent?.trim() || selectedAgentName.value;
|
|
420
|
+
if (!agentName) return;
|
|
421
|
+
showSessions();
|
|
422
|
+
sessionsOpen.value = false;
|
|
423
|
+
updateSelectedAgentName(agentName);
|
|
424
|
+
await router.push({
|
|
425
|
+
name: resolveConsoleRouteName(route.name, "vitehub-console-invocation"),
|
|
426
|
+
params: { agent: encodeAgentRouteParam(agentName), invocation: invocation.id },
|
|
427
|
+
});
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
async function selectAgent(name: string): Promise<void> {
|
|
431
|
+
if (name === selectedAgentName.value) return;
|
|
432
|
+
showSessions();
|
|
433
|
+
updateSelectedAgentName(name);
|
|
434
|
+
selectedInvocationId.value = undefined;
|
|
435
|
+
selectedCapabilityId.value = undefined;
|
|
436
|
+
await router.push({
|
|
437
|
+
name: resolveConsoleRouteName(route.name, "vitehub-console-agent"),
|
|
438
|
+
params: { agent: encodeAgentRouteParam(name) },
|
|
439
|
+
});
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
async function selectCapability(capabilityId?: string): Promise<void> {
|
|
443
|
+
if (selectedCapabilityId.value === capabilityId) return;
|
|
444
|
+
selectedCapabilityId.value = capabilityId;
|
|
445
|
+
filterOpen.value = false;
|
|
446
|
+
selectedInvocationId.value = undefined;
|
|
447
|
+
closeDetails();
|
|
448
|
+
const transition = {
|
|
449
|
+
agent: selectedAgentName.value,
|
|
450
|
+
invocation: undefined,
|
|
451
|
+
} satisfies CapabilityFilterRouteTransition;
|
|
452
|
+
pendingCapabilityFilterRouteTransition = transition;
|
|
453
|
+
try {
|
|
454
|
+
await refreshCapabilityFilteredInvocations({
|
|
455
|
+
navigate: () =>
|
|
456
|
+
selectedAgentName.value
|
|
457
|
+
? router.replace({
|
|
458
|
+
name: resolveConsoleRouteName(route.name, "vitehub-console-agent"),
|
|
459
|
+
params: { agent: encodeAgentRouteParam(selectedAgentName.value) },
|
|
460
|
+
})
|
|
461
|
+
: Promise.resolve(),
|
|
462
|
+
refresh: () => list.refresh(),
|
|
463
|
+
});
|
|
464
|
+
} finally {
|
|
465
|
+
if (pendingCapabilityFilterRouteTransition === transition) {
|
|
466
|
+
pendingCapabilityFilterRouteTransition = undefined;
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
async function toggleUsage(): Promise<void> {
|
|
472
|
+
showSessions();
|
|
473
|
+
sessionsOpen.value = false;
|
|
474
|
+
if (isUsageRoute.value) {
|
|
475
|
+
await router.push(
|
|
476
|
+
selectedAgentName.value
|
|
477
|
+
? {
|
|
478
|
+
name: resolveConsoleRouteName(route.name, "vitehub-console-agent"),
|
|
479
|
+
params: { agent: encodeAgentRouteParam(selectedAgentName.value) },
|
|
480
|
+
}
|
|
481
|
+
: { name: resolveConsoleRouteName(route.name, "vitehub-console-agents") },
|
|
482
|
+
);
|
|
483
|
+
return;
|
|
484
|
+
}
|
|
485
|
+
await router.push({ name: resolveConsoleRouteName(route.name, "vitehub-console-usage") });
|
|
486
|
+
}
|
|
487
|
+
function clearAgentsRetry(): void {
|
|
488
|
+
if (agentsRetry) clearTimeout(agentsRetry);
|
|
489
|
+
agentsRetry = undefined;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
function scheduleAgentsRetry(): void {
|
|
493
|
+
clearAgentsRetry();
|
|
494
|
+
if (!pageVisible.value) return;
|
|
495
|
+
agentsRetry = setTimeout(() => {
|
|
496
|
+
agentsRetry = undefined;
|
|
497
|
+
if (pageVisible.value && agentsError.value) void loadAgents();
|
|
498
|
+
}, 5_000);
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
async function loadAgents(): Promise<void> {
|
|
502
|
+
clearAgentsRetry();
|
|
503
|
+
agentsRequest?.abort();
|
|
504
|
+
const controller = new AbortController();
|
|
505
|
+
agentsRequest = controller;
|
|
506
|
+
agentsLoading.value = true;
|
|
507
|
+
try {
|
|
508
|
+
const value = record(await requestConsole(props.agentsBase, { signal: controller.signal }));
|
|
509
|
+
const names = Array.isArray(value?.agents)
|
|
510
|
+
? value.agents.filter((name): name is string => {
|
|
511
|
+
// doctor-disable-next-line typescript/strict/no-runtime-typeof -- The console API response is untrusted JSON, so validate every array entry before using it as an Agent identity.
|
|
512
|
+
return typeof name === "string" && Boolean(name.trim());
|
|
513
|
+
})
|
|
514
|
+
: [];
|
|
515
|
+
if (agentsRequest === controller) {
|
|
516
|
+
agentNames.value = [...new Set(names)];
|
|
517
|
+
agentsError.value = undefined;
|
|
518
|
+
}
|
|
519
|
+
} catch (error) {
|
|
520
|
+
if (error instanceof Object && "name" in error && error.name === "AbortError") return;
|
|
521
|
+
if (agentsRequest === controller) {
|
|
522
|
+
agentsError.value = error;
|
|
523
|
+
if (isRetryableConsoleRequestError(error)) scheduleAgentsRetry();
|
|
524
|
+
}
|
|
525
|
+
} finally {
|
|
526
|
+
if (agentsRequest === controller) {
|
|
527
|
+
agentsRequest = undefined;
|
|
528
|
+
agentsLoading.value = false;
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
function updateSelectedAgentName(name: string, preserveInvocationList = false): void {
|
|
534
|
+
selectAgentName(name, preserveInvocationList);
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
function scheduleInvocationListRefresh(): void {
|
|
538
|
+
if (invocationListRefreshQueued) return;
|
|
539
|
+
invocationListRefreshQueued = true;
|
|
540
|
+
void nextTick(() => {
|
|
541
|
+
invocationListRefreshQueued = false;
|
|
542
|
+
if (pageVisible.value && !isUsageRoute.value) void list.refresh();
|
|
543
|
+
});
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
async function refresh(): Promise<void> {
|
|
547
|
+
refreshCount++;
|
|
548
|
+
refreshing.value = true;
|
|
549
|
+
try {
|
|
550
|
+
const agents = loadAgents();
|
|
551
|
+
await Promise.all([
|
|
552
|
+
detectHostCapabilities(),
|
|
553
|
+
agents,
|
|
554
|
+
isUsageRoute.value ? Promise.resolve() : list.refresh(),
|
|
555
|
+
selectedInvocationId.value ? detail.refresh() : Promise.resolve(),
|
|
556
|
+
]);
|
|
557
|
+
} finally {
|
|
558
|
+
refreshCount--;
|
|
559
|
+
refreshing.value = refreshCount > 0;
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
function inspectSession(target: "agent" | "workspace"): void {
|
|
564
|
+
if (target !== "agent") return;
|
|
565
|
+
const view = "details";
|
|
566
|
+
inspectorTab.value = view;
|
|
567
|
+
if (!inspectorOpenViews.value.includes(view)) {
|
|
568
|
+
inspectorOpenViews.value = [...inspectorOpenViews.value, view];
|
|
569
|
+
}
|
|
570
|
+
inspectorActiveSurface.value = `view:${view}`;
|
|
571
|
+
detailsOpen.value = true;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
function statusIcon(status: AgentInvocationListItem["status"]): string {
|
|
575
|
+
if (status === "running") return "i-ph-circle-notch-light";
|
|
576
|
+
if (status === "completed") return "i-ph-check-light";
|
|
577
|
+
if (status === "failed") return "i-ph-x-light";
|
|
578
|
+
if (status === "cancelled") return "i-ph-prohibit-light";
|
|
579
|
+
return "i-ph-clock-light";
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
function updateDesktop(event?: MediaQueryListEvent): void {
|
|
583
|
+
isDesktop.value = event?.matches ?? media?.matches ?? false;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
function syncClock(): void {
|
|
587
|
+
if (clock) clearInterval(clock);
|
|
588
|
+
clock = undefined;
|
|
589
|
+
if (!pageVisible.value) return;
|
|
590
|
+
nowMs.value = Date.now();
|
|
591
|
+
clock = setInterval(() => {
|
|
592
|
+
nowMs.value = Date.now();
|
|
593
|
+
}, 60_000);
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
function updatePageVisibility(): void {
|
|
597
|
+
const wasVisible = pageVisible.value;
|
|
598
|
+
pageVisible.value = document.visibilityState !== "hidden";
|
|
599
|
+
syncClock();
|
|
600
|
+
if (!pageVisible.value) clearAgentsRetry();
|
|
601
|
+
if (!wasVisible && pageVisible.value) void refresh();
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
watch(
|
|
605
|
+
[
|
|
606
|
+
routeInvocation,
|
|
607
|
+
routeAgent,
|
|
608
|
+
() => list.invocations.value[0],
|
|
609
|
+
selectedAgentName,
|
|
610
|
+
isUsageRoute,
|
|
611
|
+
],
|
|
612
|
+
async (
|
|
613
|
+
[requestedInvocation, requestedAgent, firstInvocation, agentName, usageRoute],
|
|
614
|
+
previous,
|
|
615
|
+
) => {
|
|
616
|
+
if (usageRoute) {
|
|
617
|
+
initialBootstrapPending.value = false;
|
|
618
|
+
selectedInvocationId.value = undefined;
|
|
619
|
+
return;
|
|
620
|
+
}
|
|
621
|
+
const routeChanged =
|
|
622
|
+
!previous || requestedInvocation !== previous[0] || requestedAgent !== previous[1];
|
|
623
|
+
const preserveCapabilityFilter = routeChanged && isCapabilityFilterRouteTransition(
|
|
624
|
+
pendingCapabilityFilterRouteTransition,
|
|
625
|
+
{ agent: requestedAgent, invocation: requestedInvocation },
|
|
626
|
+
);
|
|
627
|
+
if (routeChanged) pendingCapabilityFilterRouteTransition = undefined;
|
|
628
|
+
const filterReset = resetCapabilityFilterForRouteTransition({
|
|
629
|
+
preserve: preserveCapabilityFilter,
|
|
630
|
+
routeChanged,
|
|
631
|
+
scheduleRefresh: scheduleInvocationListRefresh,
|
|
632
|
+
selectedCapabilityId,
|
|
633
|
+
});
|
|
634
|
+
const availableFirstInvocation = filterReset ? undefined : firstInvocation;
|
|
635
|
+
if (requestedInvocation || requestedAgent) {
|
|
636
|
+
initialBootstrapPending.value = false;
|
|
637
|
+
if (routeChanged) showSessions();
|
|
638
|
+
}
|
|
639
|
+
if (!requestedAgent && !agentName) {
|
|
640
|
+
if (!availableFirstInvocation) return;
|
|
641
|
+
if (!availableFirstInvocation.agentName) {
|
|
642
|
+
initialBootstrapPending.value = false;
|
|
643
|
+
return;
|
|
644
|
+
}
|
|
645
|
+
selectedInvocationId.value = availableFirstInvocation.id;
|
|
646
|
+
try {
|
|
647
|
+
await router.replace({
|
|
648
|
+
name: resolveConsoleRouteName(route.name, "vitehub-console-invocation"),
|
|
649
|
+
params: {
|
|
650
|
+
agent: encodeAgentRouteParam(availableFirstInvocation.agentName),
|
|
651
|
+
invocation: availableFirstInvocation.id,
|
|
652
|
+
},
|
|
653
|
+
});
|
|
654
|
+
} finally {
|
|
655
|
+
initialBootstrapPending.value = false;
|
|
656
|
+
}
|
|
657
|
+
return;
|
|
658
|
+
}
|
|
659
|
+
const agentRouteReady = !requestedAgent || requestedAgent === agentName;
|
|
660
|
+
selectedInvocationId.value =
|
|
661
|
+
requestedInvocation || (agentRouteReady ? availableFirstInvocation?.id : undefined);
|
|
662
|
+
if (!requestedInvocation && availableFirstInvocation?.id && agentName && agentRouteReady) {
|
|
663
|
+
await router.replace({
|
|
664
|
+
name: resolveConsoleRouteName(route.name, "vitehub-console-invocation"),
|
|
665
|
+
params: { agent: encodeAgentRouteParam(agentName), invocation: availableFirstInvocation.id },
|
|
666
|
+
});
|
|
667
|
+
}
|
|
668
|
+
},
|
|
669
|
+
{ immediate: true },
|
|
670
|
+
);
|
|
671
|
+
|
|
672
|
+
watch(
|
|
673
|
+
[routeAgent, agentNames, isUsageRoute, initialBootstrapPending],
|
|
674
|
+
async ([requestedAgent, names, usageRoute, bootstrapPending]) => {
|
|
675
|
+
if (usageRoute) return;
|
|
676
|
+
if (!names.length) return;
|
|
677
|
+
if (!requestedAgent && bootstrapPending) return;
|
|
678
|
+
const currentAgent = selectedAgentName.value;
|
|
679
|
+
const agentName =
|
|
680
|
+
requestedAgent && names.includes(requestedAgent)
|
|
681
|
+
? requestedAgent
|
|
682
|
+
: currentAgent && names.includes(currentAgent)
|
|
683
|
+
? currentAgent
|
|
684
|
+
: names[0];
|
|
685
|
+
updateSelectedAgentName(agentName);
|
|
686
|
+
if (requestedAgent !== agentName) {
|
|
687
|
+
await router.replace({
|
|
688
|
+
name: resolveConsoleRouteName(route.name, "vitehub-console-agent"),
|
|
689
|
+
params: { agent: encodeAgentRouteParam(agentName) },
|
|
690
|
+
});
|
|
691
|
+
}
|
|
692
|
+
},
|
|
693
|
+
{ immediate: true },
|
|
694
|
+
);
|
|
695
|
+
|
|
696
|
+
watch(
|
|
697
|
+
[() => list.isLoading.value, () => list.error.value],
|
|
698
|
+
([loading, error]) => {
|
|
699
|
+
if (
|
|
700
|
+
initialBootstrapPending.value &&
|
|
701
|
+
!loading &&
|
|
702
|
+
(Boolean(error) || list.invocations.value.length === 0)
|
|
703
|
+
) {
|
|
704
|
+
initialBootstrapPending.value = false;
|
|
705
|
+
}
|
|
706
|
+
},
|
|
707
|
+
);
|
|
708
|
+
|
|
709
|
+
watch(
|
|
710
|
+
[selectedAgentName, () => detail.invocation.value, isUsageRoute],
|
|
711
|
+
async ([agentName, invocation, usageRoute]) => {
|
|
712
|
+
if (
|
|
713
|
+
usageRoute ||
|
|
714
|
+
!agentName ||
|
|
715
|
+
!invocation ||
|
|
716
|
+
invocation.id !== selectedInvocationId.value ||
|
|
717
|
+
invocation.agentName === agentName
|
|
718
|
+
)
|
|
719
|
+
return;
|
|
720
|
+
selectedInvocationId.value = undefined;
|
|
721
|
+
await router.replace({
|
|
722
|
+
name: resolveConsoleRouteName(route.name, "vitehub-console-agent"),
|
|
723
|
+
params: { agent: encodeAgentRouteParam(agentName) },
|
|
724
|
+
});
|
|
725
|
+
},
|
|
726
|
+
);
|
|
727
|
+
|
|
728
|
+
watch(selectedInvocationId, () => {
|
|
729
|
+
selectedActivityId.value = undefined;
|
|
730
|
+
selectedDetailStatus.value = undefined;
|
|
731
|
+
const identity = selectedInvocationId.value
|
|
732
|
+
? `${props.hostBase}/api/invocations/${selectedInvocationId.value}`
|
|
733
|
+
: undefined;
|
|
734
|
+
if (identity !== inspectorWorkspaceIdentity.value) {
|
|
735
|
+
inspectorWorkspaceIdentity.value = identity;
|
|
736
|
+
inspectorSelectedPath.value = undefined;
|
|
737
|
+
inspectorOpenPaths.value = [];
|
|
738
|
+
}
|
|
739
|
+
});
|
|
740
|
+
|
|
741
|
+
watch(
|
|
742
|
+
[() => detail.invocation.value?.id, () => detail.invocation.value?.status],
|
|
743
|
+
([id, status]) => {
|
|
744
|
+
selectedDetailStatus.value = id && status ? { id, status } : undefined;
|
|
745
|
+
},
|
|
746
|
+
);
|
|
747
|
+
|
|
748
|
+
watch(
|
|
749
|
+
isUsageRoute,
|
|
750
|
+
(usageRoute) => {
|
|
751
|
+
rememberConsoleSection(usageRoute ? "usage" : "agents");
|
|
752
|
+
if (!usageRoute) {
|
|
753
|
+
if (!selectedAgentName.value) initialBootstrapPending.value = true;
|
|
754
|
+
if (!list.isLoading.value && list.invocations.value.length === 0) {
|
|
755
|
+
scheduleInvocationListRefresh();
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
},
|
|
759
|
+
{ immediate: true },
|
|
760
|
+
);
|
|
761
|
+
|
|
762
|
+
watch(selectedAgentName, () => {
|
|
763
|
+
void loadCapabilityIds();
|
|
764
|
+
}, { immediate: true });
|
|
765
|
+
|
|
766
|
+
watch(filterOpen, (open) => {
|
|
767
|
+
if (open) void loadCapabilityIds();
|
|
768
|
+
});
|
|
769
|
+
|
|
770
|
+
if (pageVisible.value) void loadAgents();
|
|
771
|
+
|
|
772
|
+
onMounted(() => {
|
|
773
|
+
media = window.matchMedia("(min-width: 981px)");
|
|
774
|
+
updateDesktop();
|
|
775
|
+
detailsOpen.value = isDesktop.value;
|
|
776
|
+
media.addEventListener("change", updateDesktop);
|
|
777
|
+
document.addEventListener("visibilitychange", updatePageVisibility);
|
|
778
|
+
updatePageVisibility();
|
|
779
|
+
void detectHostCapabilities();
|
|
780
|
+
});
|
|
781
|
+
|
|
782
|
+
onBeforeUnmount(() => {
|
|
783
|
+
agentsRequest?.abort();
|
|
784
|
+
capabilitiesRequest?.abort();
|
|
785
|
+
capabilityIdsRequest?.abort();
|
|
786
|
+
clearAgentsRetry();
|
|
787
|
+
if (clock) clearInterval(clock);
|
|
788
|
+
media?.removeEventListener("change", updateDesktop);
|
|
789
|
+
document.removeEventListener("visibilitychange", updatePageVisibility);
|
|
790
|
+
});
|
|
791
|
+
</script>
|
|
792
|
+
|
|
793
|
+
<template>
|
|
794
|
+
<ConsoleFrame>
|
|
795
|
+
<UDashboardSidebar
|
|
796
|
+
id="agent-sessions"
|
|
797
|
+
class="vitehub-console__sessions"
|
|
798
|
+
v-model:open="sessionsOpen"
|
|
799
|
+
v-model:collapsed="sessionsCollapsed"
|
|
800
|
+
:default-size="16"
|
|
801
|
+
:collapsed-size="3"
|
|
802
|
+
:min-size="13"
|
|
803
|
+
:max-size="26"
|
|
804
|
+
:menu="{ title: 'Agent sessions', description: 'Browse read-only Agent Invocations.' }"
|
|
805
|
+
:ui="{
|
|
806
|
+
root: 'md:flex',
|
|
807
|
+
body: 'gap-0 overflow-hidden p-0',
|
|
808
|
+
footer: 'px-2 py-1',
|
|
809
|
+
content: 'md:hidden',
|
|
810
|
+
overlay: 'md:hidden',
|
|
811
|
+
}"
|
|
812
|
+
collapsible
|
|
813
|
+
resizable
|
|
814
|
+
>
|
|
815
|
+
<template #header="{ collapsed }">
|
|
816
|
+
<ConsoleBrand :collapsed="collapsed" :sections-base="sectionsBase" />
|
|
817
|
+
</template>
|
|
818
|
+
|
|
819
|
+
<template #default="{ collapsed }">
|
|
820
|
+
<div v-if="hasMultipleAgents" class="px-2 pb-2 pt-1">
|
|
821
|
+
<UDropdownMenu
|
|
822
|
+
:items="agentMenuItems"
|
|
823
|
+
:content="{ align: 'start', collisionPadding: 12 }"
|
|
824
|
+
:ui="{ content: collapsed ? 'w-44' : 'w-(--reka-dropdown-menu-trigger-width)' }"
|
|
825
|
+
>
|
|
826
|
+
<UButton
|
|
827
|
+
block
|
|
828
|
+
class="justify-start"
|
|
829
|
+
color="neutral"
|
|
830
|
+
icon="i-ph-robot-light"
|
|
831
|
+
:label="collapsed ? undefined : selectedAgentLabel"
|
|
832
|
+
:trailing-icon="
|
|
833
|
+
!collapsed && hasMultipleAgents ? 'i-ph-caret-up-down-light' : undefined
|
|
834
|
+
"
|
|
835
|
+
variant="ghost"
|
|
836
|
+
:aria-label="
|
|
837
|
+
hasMultipleAgents
|
|
838
|
+
? `Switch Agent. ${selectedAgentLabel} selected.`
|
|
839
|
+
: selectedAgentLabel
|
|
840
|
+
"
|
|
841
|
+
/>
|
|
842
|
+
</UDropdownMenu>
|
|
843
|
+
</div>
|
|
844
|
+
<div v-if="!collapsed && errorMessage(agentsError)" class="px-3 pb-3">
|
|
845
|
+
<UAlert
|
|
846
|
+
color="error"
|
|
847
|
+
variant="subtle"
|
|
848
|
+
icon="i-ph-cloud-slash-light"
|
|
849
|
+
title="Could not load agents"
|
|
850
|
+
:description="errorMessage(agentsError)"
|
|
851
|
+
:actions="[
|
|
852
|
+
{ label: 'Try again', icon: 'i-ph-arrows-clockwise-light', onClick: loadAgents },
|
|
853
|
+
]"
|
|
854
|
+
/>
|
|
855
|
+
</div>
|
|
856
|
+
<div class="flex shrink-0 items-center gap-1 px-2 pb-2 pt-1">
|
|
857
|
+
<UDashboardSearchButton
|
|
858
|
+
:collapsed="collapsed"
|
|
859
|
+
block
|
|
860
|
+
class="vitehub-console__search min-w-0 flex-1 bg-transparent ring-0 hover:bg-elevated/60"
|
|
861
|
+
label="Search console"
|
|
862
|
+
:ui="{ trailing: 'vitehub-console__search-shortcut' }"
|
|
863
|
+
/>
|
|
864
|
+
<UPopover
|
|
865
|
+
v-if="!collapsed"
|
|
866
|
+
v-model:open="filterOpen"
|
|
867
|
+
:content="{ align: 'start', collisionPadding: 12 }"
|
|
868
|
+
:ui="{ content: 'w-64 p-2' }"
|
|
869
|
+
>
|
|
870
|
+
<UButton
|
|
871
|
+
aria-label="Filter sessions"
|
|
872
|
+
:color="selectedCapabilityId ? 'primary' : 'neutral'"
|
|
873
|
+
icon="i-ph-funnel-light"
|
|
874
|
+
square
|
|
875
|
+
:variant="selectedCapabilityId ? 'soft' : 'ghost'"
|
|
876
|
+
/>
|
|
877
|
+
<template #content>
|
|
878
|
+
<div class="grid gap-1">
|
|
879
|
+
<div class="flex items-center justify-between gap-3 px-2 py-1">
|
|
880
|
+
<div>
|
|
881
|
+
<p class="text-sm font-medium">Filter sessions</p>
|
|
882
|
+
<p class="text-xs text-muted">Capability actually used</p>
|
|
883
|
+
</div>
|
|
884
|
+
<UBadge v-if="selectedCapabilityId" color="primary" size="sm" variant="subtle">1</UBadge>
|
|
885
|
+
</div>
|
|
886
|
+
<UButton
|
|
887
|
+
block
|
|
888
|
+
class="justify-start"
|
|
889
|
+
color="neutral"
|
|
890
|
+
label="All capabilities"
|
|
891
|
+
:trailing-icon="!selectedCapabilityId ? 'i-ph-check-light' : undefined"
|
|
892
|
+
variant="ghost"
|
|
893
|
+
@click="selectCapability()"
|
|
894
|
+
/>
|
|
895
|
+
<USeparator />
|
|
896
|
+
<div
|
|
897
|
+
v-if="capabilitiesLoading"
|
|
898
|
+
class="grid gap-2 px-2 py-2"
|
|
899
|
+
aria-label="Loading capabilities"
|
|
900
|
+
role="status"
|
|
901
|
+
>
|
|
902
|
+
<USkeleton v-for="index in 3" :key="index" class="h-7 rounded" />
|
|
903
|
+
</div>
|
|
904
|
+
<p v-else-if="errorMessage(capabilitiesError)" class="px-2 py-2 text-xs text-error">
|
|
905
|
+
{{ errorMessage(capabilitiesError) }}
|
|
906
|
+
</p>
|
|
907
|
+
<p v-else-if="!capabilityIds.length" class="px-2 py-2 text-xs text-muted">
|
|
908
|
+
No capability use recorded yet.
|
|
909
|
+
</p>
|
|
910
|
+
<template v-else>
|
|
911
|
+
<UButton
|
|
912
|
+
v-for="capabilityId in capabilityIds"
|
|
913
|
+
:key="capabilityId"
|
|
914
|
+
block
|
|
915
|
+
class="justify-start font-mono"
|
|
916
|
+
color="neutral"
|
|
917
|
+
:label="capabilityId"
|
|
918
|
+
:trailing-icon="selectedCapabilityId === capabilityId ? 'i-ph-check-light' : undefined"
|
|
919
|
+
variant="ghost"
|
|
920
|
+
@click="selectCapability(capabilityId)"
|
|
921
|
+
/>
|
|
922
|
+
</template>
|
|
923
|
+
<p
|
|
924
|
+
v-if="selectedCapabilityId"
|
|
925
|
+
class="truncate px-2 pt-1 text-xs text-muted"
|
|
926
|
+
:title="capabilityFilterLabel"
|
|
927
|
+
>
|
|
928
|
+
{{ capabilityFilterLabel }}
|
|
929
|
+
</p>
|
|
930
|
+
</div>
|
|
931
|
+
</template>
|
|
932
|
+
</UPopover>
|
|
933
|
+
</div>
|
|
934
|
+
<div
|
|
935
|
+
v-if="!collapsed && errorMessage(list.error.value || list.loadMoreError.value)"
|
|
936
|
+
class="px-3"
|
|
937
|
+
>
|
|
938
|
+
<UAlert
|
|
939
|
+
color="error"
|
|
940
|
+
variant="subtle"
|
|
941
|
+
icon="i-ph-cloud-slash-light"
|
|
942
|
+
title="Could not load sessions"
|
|
943
|
+
:description="errorMessage(list.error.value || list.loadMoreError.value)"
|
|
944
|
+
:actions="
|
|
945
|
+
list.error.value
|
|
946
|
+
? [{ label: 'Try again', icon: 'i-ph-arrows-clockwise-light', onClick: list.refresh }]
|
|
947
|
+
: undefined
|
|
948
|
+
"
|
|
949
|
+
/>
|
|
950
|
+
<UButton
|
|
951
|
+
v-if="invocationItems.length && list.cursor.value && list.loadMoreError.value"
|
|
952
|
+
class="mt-2"
|
|
953
|
+
color="neutral"
|
|
954
|
+
label="Retry loading older sessions"
|
|
955
|
+
size="sm"
|
|
956
|
+
variant="soft"
|
|
957
|
+
:loading="list.isLoadingMore.value"
|
|
958
|
+
@click="list.loadMore"
|
|
959
|
+
/>
|
|
960
|
+
</div>
|
|
961
|
+
<div
|
|
962
|
+
v-if="
|
|
963
|
+
!collapsed && (agentsLoading || list.isLoading.value) && !invocationItems.length
|
|
964
|
+
"
|
|
965
|
+
class="grid gap-1 px-2"
|
|
966
|
+
aria-label="Loading sessions"
|
|
967
|
+
role="status"
|
|
968
|
+
>
|
|
969
|
+
<div
|
|
970
|
+
v-for="index in 6"
|
|
971
|
+
:key="index"
|
|
972
|
+
class="grid grid-cols-[1rem_minmax(0,1fr)] gap-x-2 gap-y-2 rounded-md px-2 py-2.5"
|
|
973
|
+
>
|
|
974
|
+
<USkeleton class="mt-0.5 size-4 rounded" />
|
|
975
|
+
<div class="grid min-w-0 gap-2">
|
|
976
|
+
<div class="flex items-center justify-between gap-3">
|
|
977
|
+
<USkeleton class="h-3 w-16 rounded" />
|
|
978
|
+
<USkeleton class="h-3 w-14 rounded" />
|
|
979
|
+
</div>
|
|
980
|
+
<USkeleton class="h-4 rounded" :class="index % 3 === 0 ? 'w-3/4' : 'w-full'" />
|
|
981
|
+
<USkeleton class="h-3 w-2/3 rounded" />
|
|
982
|
+
</div>
|
|
983
|
+
</div>
|
|
984
|
+
</div>
|
|
985
|
+
<div v-if="collapsed" class="min-h-0 flex-1 overflow-y-auto">
|
|
986
|
+
<div class="grid gap-1 px-2 py-1">
|
|
987
|
+
<UTooltip
|
|
988
|
+
v-for="invocation in invocationItems"
|
|
989
|
+
:key="invocation.id"
|
|
990
|
+
:text="invocation.title"
|
|
991
|
+
:content="{ side: 'right' }"
|
|
992
|
+
><UButton
|
|
993
|
+
:icon="statusIcon(invocation.status)"
|
|
994
|
+
:color="invocation.status === 'failed' ? 'error' : 'neutral'"
|
|
995
|
+
:variant="selectedInvocationId === invocation.id ? 'soft' : 'ghost'"
|
|
996
|
+
block
|
|
997
|
+
:aria-label="invocation.title"
|
|
998
|
+
@click="selectInvocation(invocation)"
|
|
999
|
+
/></UTooltip>
|
|
1000
|
+
</div>
|
|
1001
|
+
</div>
|
|
1002
|
+
<AgentInvocationList
|
|
1003
|
+
v-else-if="
|
|
1004
|
+
(!list.isLoading.value || invocationItems.length) &&
|
|
1005
|
+
(!errorMessage(list.error.value) || invocationItems.length)
|
|
1006
|
+
"
|
|
1007
|
+
class="min-h-0 flex-1 px-1 pb-3"
|
|
1008
|
+
:continuation-key="list.cursor.value"
|
|
1009
|
+
:has-more="Boolean(list.cursor.value)"
|
|
1010
|
+
:items="invocationItems"
|
|
1011
|
+
:loading="list.isLoading.value || list.isLoadingMore.value"
|
|
1012
|
+
:remaining-statuses="list.remainingStatuses.value"
|
|
1013
|
+
:now="nowMs"
|
|
1014
|
+
:selected-id="selectedInvocationId"
|
|
1015
|
+
@select="selectInvocation($event)"
|
|
1016
|
+
>
|
|
1017
|
+
<template #loading />
|
|
1018
|
+
<template #footer>
|
|
1019
|
+
<div v-if="list.cursor.value" class="flex justify-center px-2 py-3">
|
|
1020
|
+
<UButton
|
|
1021
|
+
color="neutral"
|
|
1022
|
+
label="Load older sessions"
|
|
1023
|
+
size="xs"
|
|
1024
|
+
variant="soft"
|
|
1025
|
+
:loading="list.isLoadingMore.value"
|
|
1026
|
+
@click="list.loadMore()"
|
|
1027
|
+
/>
|
|
1028
|
+
</div>
|
|
1029
|
+
</template>
|
|
1030
|
+
<template #empty
|
|
1031
|
+
><UEmpty
|
|
1032
|
+
class="px-4"
|
|
1033
|
+
icon="i-ph-chat-dots-light"
|
|
1034
|
+
title="No sessions yet"
|
|
1035
|
+
description="The first Agent Invocation will appear here."
|
|
1036
|
+
/></template>
|
|
1037
|
+
</AgentInvocationList>
|
|
1038
|
+
</template>
|
|
1039
|
+
|
|
1040
|
+
<template #footer="{ collapsed, collapse }">
|
|
1041
|
+
<div class="flex min-w-0 items-center gap-1" :class="collapsed ? 'justify-center' : ''">
|
|
1042
|
+
<ConsolePrimitiveSwitcher
|
|
1043
|
+
:active="isUsageRoute ? 'usage' : 'agents'"
|
|
1044
|
+
:collapsed="collapsed"
|
|
1045
|
+
:exclude="['usage']"
|
|
1046
|
+
:sections-base="sectionsBase"
|
|
1047
|
+
/>
|
|
1048
|
+
<UTooltip
|
|
1049
|
+
v-if="healthAvailable || activePage === 'health'"
|
|
1050
|
+
:text="activePage === 'health' ? 'Back to sessions' : 'Health'"
|
|
1051
|
+
>
|
|
1052
|
+
<UButton
|
|
1053
|
+
:icon="activePage === 'health' ? 'i-lucide-arrow-left' : 'i-lucide-heart-pulse'"
|
|
1054
|
+
color="neutral"
|
|
1055
|
+
:variant="activePage === 'health' ? 'soft' : 'ghost'"
|
|
1056
|
+
size="xs"
|
|
1057
|
+
:aria-label="activePage === 'health' ? 'Back to sessions' : 'Health'"
|
|
1058
|
+
@click="activePage === 'health' ? showSessions() : void showHealth()"
|
|
1059
|
+
/>
|
|
1060
|
+
</UTooltip>
|
|
1061
|
+
<UTooltip :text="isUsageRoute ? 'Back to sessions' : 'Usage'">
|
|
1062
|
+
<UButton
|
|
1063
|
+
:block="!collapsed"
|
|
1064
|
+
:class="collapsed ? '' : 'min-w-0 flex-1 justify-start'"
|
|
1065
|
+
:icon="isUsageRoute ? 'i-lucide-arrow-left' : 'i-lucide-chart-no-axes-column'"
|
|
1066
|
+
:label="collapsed ? undefined : isUsageRoute ? 'Sessions' : 'Usage'"
|
|
1067
|
+
color="neutral"
|
|
1068
|
+
:variant="isUsageRoute ? 'soft' : 'ghost'"
|
|
1069
|
+
size="xs"
|
|
1070
|
+
:aria-label="isUsageRoute ? 'Back to sessions' : 'Usage'"
|
|
1071
|
+
@click="toggleUsage"
|
|
1072
|
+
/>
|
|
1073
|
+
</UTooltip>
|
|
1074
|
+
<UTooltip :text="collapsed ? 'Show sessions' : 'Hide sessions'">
|
|
1075
|
+
<UButton
|
|
1076
|
+
class="ml-auto max-md:hidden"
|
|
1077
|
+
icon="i-ph-sidebar-simple-light"
|
|
1078
|
+
color="neutral"
|
|
1079
|
+
variant="ghost"
|
|
1080
|
+
size="xs"
|
|
1081
|
+
:aria-label="collapsed ? 'Show sessions' : 'Hide sessions'"
|
|
1082
|
+
@click="collapse(!collapsed)"
|
|
1083
|
+
/>
|
|
1084
|
+
</UTooltip>
|
|
1085
|
+
</div>
|
|
1086
|
+
</template>
|
|
1087
|
+
</UDashboardSidebar>
|
|
1088
|
+
|
|
1089
|
+
<ConsoleSearch
|
|
1090
|
+
:agent-names="agentNames"
|
|
1091
|
+
:agents-base="agentsBase"
|
|
1092
|
+
:definitions-base="definitionsBase"
|
|
1093
|
+
:kv-base="kvBase"
|
|
1094
|
+
:search-base="searchBase"
|
|
1095
|
+
:sections-base="sectionsBase"
|
|
1096
|
+
@select-session="showSessions"
|
|
1097
|
+
@select-page="showSessions"
|
|
1098
|
+
/>
|
|
1099
|
+
|
|
1100
|
+
<ConsoleUsage v-if="isUsageRoute" :base="usageBase" @open-sessions="sessionsOpen = true" />
|
|
1101
|
+
|
|
1102
|
+
<UDashboardPanel
|
|
1103
|
+
v-else-if="activePage === 'health'"
|
|
1104
|
+
id="agent-health"
|
|
1105
|
+
:ui="{ body: 'min-h-0 overflow-hidden p-0 gap-0' }"
|
|
1106
|
+
>
|
|
1107
|
+
<template #body><ConsoleHealth :endpoint="`${hostBase}/api/health`" /></template>
|
|
1108
|
+
</UDashboardPanel>
|
|
1109
|
+
|
|
1110
|
+
<UDashboardPanel
|
|
1111
|
+
v-else
|
|
1112
|
+
id="agent-session"
|
|
1113
|
+
class="vitehub-console__session-panel"
|
|
1114
|
+
:ui="{ body: 'min-h-0 overflow-hidden p-0 gap-0' }"
|
|
1115
|
+
>
|
|
1116
|
+
<template #body>
|
|
1117
|
+
<div class="h-full min-h-0 overflow-hidden" aria-live="polite">
|
|
1118
|
+
<div
|
|
1119
|
+
v-if="isDesktop && detailsOpen && detailsMaximized && selectedInvocationId"
|
|
1120
|
+
class="h-full min-h-0 overflow-hidden"
|
|
1121
|
+
>
|
|
1122
|
+
<ConsoleSessionInspector
|
|
1123
|
+
v-if="invocationView"
|
|
1124
|
+
:invocation="invocationView"
|
|
1125
|
+
:maximized="true"
|
|
1126
|
+
v-model:tab="inspectorTab"
|
|
1127
|
+
v-model:active-surface="inspectorActiveSurface"
|
|
1128
|
+
v-model:open-views="inspectorOpenViews"
|
|
1129
|
+
v-model:open-paths="inspectorOpenPaths"
|
|
1130
|
+
v-model:selected-path="inspectorSelectedPath"
|
|
1131
|
+
class="h-full"
|
|
1132
|
+
@close="closeDetails"
|
|
1133
|
+
@focus-activity="selectActivity"
|
|
1134
|
+
@toggle-maximized="detailsMaximized = false"
|
|
1135
|
+
/>
|
|
1136
|
+
<ConsoleSessionLoading
|
|
1137
|
+
v-else-if="detail.isLoading.value"
|
|
1138
|
+
class="h-full min-h-0"
|
|
1139
|
+
:maximized="true"
|
|
1140
|
+
surface="inspector"
|
|
1141
|
+
@close="closeDetails"
|
|
1142
|
+
@toggle-maximized="detailsMaximized = false"
|
|
1143
|
+
/>
|
|
1144
|
+
<ConsoleSessionLoading
|
|
1145
|
+
v-else
|
|
1146
|
+
class="h-full min-h-0"
|
|
1147
|
+
:error="errorMessage(detail.error.value)"
|
|
1148
|
+
:maximized="true"
|
|
1149
|
+
surface="inspector"
|
|
1150
|
+
@close="closeDetails"
|
|
1151
|
+
@retry="refresh"
|
|
1152
|
+
@toggle-maximized="detailsMaximized = false"
|
|
1153
|
+
/>
|
|
1154
|
+
</div>
|
|
1155
|
+
<USplitter
|
|
1156
|
+
v-else-if="isDesktop && detailsOpen && (selectedInvocationId || initialSessionLoading)"
|
|
1157
|
+
id="agent-session-layout"
|
|
1158
|
+
auto-save-id="vitehub-agent-session-layout-v2"
|
|
1159
|
+
:items="splitterItems"
|
|
1160
|
+
class="h-full min-h-0 overflow-hidden"
|
|
1161
|
+
>
|
|
1162
|
+
<template #thread>
|
|
1163
|
+
<div class="flex h-full min-h-0 w-full flex-col overflow-hidden">
|
|
1164
|
+
<ConsoleSessionNavbar
|
|
1165
|
+
:cost="selectedCost"
|
|
1166
|
+
:details-open="detailsOpen"
|
|
1167
|
+
:external-url="selectedExternalUrl"
|
|
1168
|
+
:has-display="Boolean(selectedDisplay)"
|
|
1169
|
+
:has-selection="Boolean(selectedInvocationId)"
|
|
1170
|
+
:loading="refreshing"
|
|
1171
|
+
:project="selectedProject"
|
|
1172
|
+
:title="selectedTitle"
|
|
1173
|
+
:tokens="selectedTokens"
|
|
1174
|
+
@open-sessions="sessionsOpen = true"
|
|
1175
|
+
@refresh="refresh"
|
|
1176
|
+
@toggle-details="detailsOpen = !detailsOpen"
|
|
1177
|
+
/>
|
|
1178
|
+
<UAlert
|
|
1179
|
+
v-if="invocationView && errorMessage(detail.error.value)"
|
|
1180
|
+
class="m-3 shrink-0"
|
|
1181
|
+
color="error"
|
|
1182
|
+
variant="subtle"
|
|
1183
|
+
icon="i-ph-cloud-slash-light"
|
|
1184
|
+
title="Could not refresh this session"
|
|
1185
|
+
:description="errorMessage(detail.error.value)"
|
|
1186
|
+
:actions="[
|
|
1187
|
+
{ label: 'Try again', icon: 'i-ph-arrows-clockwise-light', onClick: refresh },
|
|
1188
|
+
]"
|
|
1189
|
+
/>
|
|
1190
|
+
<ConsoleSessionLoading
|
|
1191
|
+
v-if="(detail.isLoading.value || initialSessionLoading) && !invocationView"
|
|
1192
|
+
class="min-h-0 flex-1"
|
|
1193
|
+
/>
|
|
1194
|
+
<UEmpty
|
|
1195
|
+
v-else-if="errorMessage(detail.error.value) && !invocationView"
|
|
1196
|
+
class="min-h-0 flex-1"
|
|
1197
|
+
icon="i-ph-cloud-slash-light"
|
|
1198
|
+
title="Could not load this session"
|
|
1199
|
+
:description="errorMessage(detail.error.value)"
|
|
1200
|
+
:actions="[
|
|
1201
|
+
{ label: 'Try again', icon: 'i-ph-arrows-clockwise-light', onClick: refresh },
|
|
1202
|
+
]"
|
|
1203
|
+
/>
|
|
1204
|
+
<AgentInvocation
|
|
1205
|
+
v-else-if="invocationView"
|
|
1206
|
+
:header="false"
|
|
1207
|
+
:invocation="invocationView"
|
|
1208
|
+
:selected-activity-id="selectedActivityId"
|
|
1209
|
+
:workspace-inspectable="false"
|
|
1210
|
+
class="min-h-0 flex-1"
|
|
1211
|
+
@inspect="inspectSession"
|
|
1212
|
+
/>
|
|
1213
|
+
</div>
|
|
1214
|
+
</template>
|
|
1215
|
+
<template #details>
|
|
1216
|
+
<ConsoleSessionInspector
|
|
1217
|
+
v-if="invocationView"
|
|
1218
|
+
:invocation="invocationView"
|
|
1219
|
+
v-model:tab="inspectorTab"
|
|
1220
|
+
v-model:active-surface="inspectorActiveSurface"
|
|
1221
|
+
v-model:open-views="inspectorOpenViews"
|
|
1222
|
+
v-model:open-paths="inspectorOpenPaths"
|
|
1223
|
+
v-model:selected-path="inspectorSelectedPath"
|
|
1224
|
+
class="h-full"
|
|
1225
|
+
@close="closeDetails"
|
|
1226
|
+
@focus-activity="selectActivity"
|
|
1227
|
+
@toggle-maximized="detailsMaximized = true"
|
|
1228
|
+
/>
|
|
1229
|
+
<ConsoleSessionLoading
|
|
1230
|
+
v-else-if="detail.isLoading.value || initialSessionLoading"
|
|
1231
|
+
class="h-full min-h-0"
|
|
1232
|
+
:maximizable="Boolean(selectedInvocationId)"
|
|
1233
|
+
surface="inspector"
|
|
1234
|
+
@close="closeDetails"
|
|
1235
|
+
@toggle-maximized="detailsMaximized = true"
|
|
1236
|
+
/>
|
|
1237
|
+
<ConsoleSessionLoading
|
|
1238
|
+
v-else
|
|
1239
|
+
class="h-full min-h-0"
|
|
1240
|
+
:error="errorMessage(detail.error.value)"
|
|
1241
|
+
surface="inspector"
|
|
1242
|
+
@close="closeDetails"
|
|
1243
|
+
@retry="refresh"
|
|
1244
|
+
@toggle-maximized="detailsMaximized = true"
|
|
1245
|
+
/>
|
|
1246
|
+
</template>
|
|
1247
|
+
<template #resize-handle>
|
|
1248
|
+
<span
|
|
1249
|
+
class="pointer-events-none absolute inset-y-0 start-1/2 w-px -translate-x-1/2 bg-(--ui-border) transition-colors group-hover:bg-primary group-focus-visible:bg-primary"
|
|
1250
|
+
/>
|
|
1251
|
+
</template>
|
|
1252
|
+
</USplitter>
|
|
1253
|
+
<div v-else class="flex h-full min-h-0 flex-col overflow-hidden">
|
|
1254
|
+
<ConsoleSessionNavbar
|
|
1255
|
+
:cost="selectedCost"
|
|
1256
|
+
:details-open="detailsOpen"
|
|
1257
|
+
:external-url="selectedExternalUrl"
|
|
1258
|
+
:has-display="Boolean(selectedDisplay)"
|
|
1259
|
+
:has-selection="Boolean(selectedInvocationId)"
|
|
1260
|
+
:loading="refreshing"
|
|
1261
|
+
:project="selectedProject"
|
|
1262
|
+
:title="selectedTitle"
|
|
1263
|
+
:tokens="selectedTokens"
|
|
1264
|
+
@open-sessions="sessionsOpen = true"
|
|
1265
|
+
@refresh="refresh"
|
|
1266
|
+
@toggle-details="detailsOpen = !detailsOpen"
|
|
1267
|
+
/>
|
|
1268
|
+
<ConsoleSessionLoading
|
|
1269
|
+
v-if="initialSessionLoading"
|
|
1270
|
+
class="min-h-0 flex-1"
|
|
1271
|
+
/>
|
|
1272
|
+
<div
|
|
1273
|
+
v-else-if="!selectedInvocationId"
|
|
1274
|
+
class="flex min-h-0 flex-1 items-center justify-center p-8 text-sm text-muted"
|
|
1275
|
+
>
|
|
1276
|
+
Select an Agent Invocation to inspect its work.
|
|
1277
|
+
</div>
|
|
1278
|
+
<UEmpty
|
|
1279
|
+
v-else-if="errorMessage(detail.error.value) && !invocationView"
|
|
1280
|
+
class="min-h-0 flex-1"
|
|
1281
|
+
icon="i-ph-cloud-slash-light"
|
|
1282
|
+
title="Could not load this session"
|
|
1283
|
+
:description="errorMessage(detail.error.value)"
|
|
1284
|
+
:actions="[
|
|
1285
|
+
{ label: 'Try again', icon: 'i-ph-arrows-clockwise-light', onClick: refresh },
|
|
1286
|
+
]"
|
|
1287
|
+
/>
|
|
1288
|
+
<ConsoleSessionLoading
|
|
1289
|
+
v-else-if="detail.isLoading.value && !invocationView"
|
|
1290
|
+
class="min-h-0 flex-1"
|
|
1291
|
+
/>
|
|
1292
|
+
<div v-else-if="invocationView" class="flex min-h-0 flex-1 flex-col">
|
|
1293
|
+
<UAlert
|
|
1294
|
+
v-if="errorMessage(detail.error.value)"
|
|
1295
|
+
class="m-3 shrink-0"
|
|
1296
|
+
color="error"
|
|
1297
|
+
variant="subtle"
|
|
1298
|
+
icon="i-ph-cloud-slash-light"
|
|
1299
|
+
title="Could not refresh this session"
|
|
1300
|
+
:description="errorMessage(detail.error.value)"
|
|
1301
|
+
:actions="[
|
|
1302
|
+
{ label: 'Try again', icon: 'i-ph-arrows-clockwise-light', onClick: refresh },
|
|
1303
|
+
]"
|
|
1304
|
+
/>
|
|
1305
|
+
<AgentInvocation
|
|
1306
|
+
:header="false"
|
|
1307
|
+
:invocation="invocationView"
|
|
1308
|
+
:selected-activity-id="selectedActivityId"
|
|
1309
|
+
:workspace-inspectable="false"
|
|
1310
|
+
class="min-h-0 flex-1"
|
|
1311
|
+
@inspect="inspectSession"
|
|
1312
|
+
/>
|
|
1313
|
+
</div>
|
|
1314
|
+
<USlideover
|
|
1315
|
+
v-if="!isDesktop && invocationView"
|
|
1316
|
+
v-model:open="detailsOpen"
|
|
1317
|
+
side="right"
|
|
1318
|
+
title="Session details"
|
|
1319
|
+
:ui="{ content: 'w-full max-w-sm p-0' }"
|
|
1320
|
+
>
|
|
1321
|
+
<template #content>
|
|
1322
|
+
<ConsoleSessionInspector
|
|
1323
|
+
:invocation="invocationView"
|
|
1324
|
+
:maximizable="false"
|
|
1325
|
+
v-model:tab="inspectorTab"
|
|
1326
|
+
v-model:active-surface="inspectorActiveSurface"
|
|
1327
|
+
v-model:open-views="inspectorOpenViews"
|
|
1328
|
+
v-model:open-paths="inspectorOpenPaths"
|
|
1329
|
+
v-model:selected-path="inspectorSelectedPath"
|
|
1330
|
+
class="h-full"
|
|
1331
|
+
@close="closeDetails"
|
|
1332
|
+
@focus-activity="selectActivity"
|
|
1333
|
+
/>
|
|
1334
|
+
</template>
|
|
1335
|
+
</USlideover>
|
|
1336
|
+
</div>
|
|
1337
|
+
</div>
|
|
1338
|
+
</template>
|
|
1339
|
+
</UDashboardPanel>
|
|
1340
|
+
</ConsoleFrame>
|
|
1341
|
+
</template>
|
|
1342
|
+
|
|
1343
|
+
<style>
|
|
1344
|
+
.vitehub-console {
|
|
1345
|
+
--ui-header-height: 3.25rem;
|
|
1346
|
+
height: 100dvh;
|
|
1347
|
+
min-height: 0;
|
|
1348
|
+
overflow: hidden;
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1351
|
+
.vitehub-console,
|
|
1352
|
+
.vitehub-console :where(*) {
|
|
1353
|
+
scrollbar-gutter: auto !important;
|
|
1354
|
+
scrollbar-width: none;
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1357
|
+
.vitehub-console::-webkit-scrollbar,
|
|
1358
|
+
.vitehub-console :where(*)::-webkit-scrollbar {
|
|
1359
|
+
display: none;
|
|
1360
|
+
height: 0;
|
|
1361
|
+
width: 0;
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1364
|
+
.vitehub-console [data-slot="invocation"],
|
|
1365
|
+
.vitehub-console [data-slot="invocation-inspector"] {
|
|
1366
|
+
height: 100%;
|
|
1367
|
+
width: 100%;
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
.vitehub-console [data-slot="invocation-inspector"] {
|
|
1371
|
+
border-inline-start: 0;
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
.vitehub-console__sessions[data-slot="root"] {
|
|
1375
|
+
background: var(--ui-bg-muted);
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
.vitehub-console__search {
|
|
1379
|
+
border: 1px solid var(--ui-border);
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1382
|
+
.vitehub-console__search-shortcut {
|
|
1383
|
+
opacity: 0;
|
|
1384
|
+
pointer-events: none;
|
|
1385
|
+
transform: translateX(0.25rem);
|
|
1386
|
+
transition:
|
|
1387
|
+
opacity 150ms ease,
|
|
1388
|
+
transform 150ms cubic-bezier(0.23, 1, 0.32, 1);
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1391
|
+
@media (hover: hover) and (pointer: fine) {
|
|
1392
|
+
.vitehub-console__search:hover .vitehub-console__search-shortcut {
|
|
1393
|
+
opacity: 0.75;
|
|
1394
|
+
transform: translateX(0);
|
|
1395
|
+
}
|
|
1396
|
+
}
|
|
1397
|
+
|
|
1398
|
+
.vitehub-console__search:focus-visible .vitehub-console__search-shortcut {
|
|
1399
|
+
opacity: 0.75;
|
|
1400
|
+
transform: translateX(0);
|
|
1401
|
+
}
|
|
1402
|
+
|
|
1403
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1404
|
+
.vitehub-console__search-shortcut {
|
|
1405
|
+
transform: none;
|
|
1406
|
+
transition: opacity 150ms ease;
|
|
1407
|
+
}
|
|
1408
|
+
}
|
|
1409
|
+
|
|
1410
|
+
.vitehub-console__sessions .vh-invocation-list__item[aria-current="true"] {
|
|
1411
|
+
background: #fff;
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
.dark .vitehub-console__sessions .vh-invocation-list__item[aria-current="true"] {
|
|
1415
|
+
background: var(--ui-bg-elevated);
|
|
1416
|
+
}
|
|
1417
|
+
|
|
1418
|
+
.vitehub-console__session-panel > [data-slot="body"] {
|
|
1419
|
+
gap: 0 !important;
|
|
1420
|
+
padding: 0 !important;
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
.vitehub-console__session-navbar {
|
|
1424
|
+
background: var(--ui-bg) !important;
|
|
1425
|
+
height: 3.25rem !important;
|
|
1426
|
+
min-height: 3.25rem !important;
|
|
1427
|
+
overflow: visible !important;
|
|
1428
|
+
padding: 0 1.25rem !important;
|
|
1429
|
+
position: relative;
|
|
1430
|
+
z-index: 10;
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1433
|
+
.vitehub-console__session-navbar svg,
|
|
1434
|
+
.session-inspector__header svg {
|
|
1435
|
+
opacity: 0.8;
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1438
|
+
.vitehub-console__session-navbar::after {
|
|
1439
|
+
background: linear-gradient(to bottom, var(--ui-bg), transparent);
|
|
1440
|
+
content: "";
|
|
1441
|
+
height: 0.75rem;
|
|
1442
|
+
inset: 100% 0 auto;
|
|
1443
|
+
pointer-events: none;
|
|
1444
|
+
position: absolute;
|
|
1445
|
+
}
|
|
1446
|
+
|
|
1447
|
+
.vitehub-console .vh-invocation-thread__content {
|
|
1448
|
+
max-width: 48rem;
|
|
1449
|
+
}
|
|
1450
|
+
</style>
|