From b90f73382533749c37a91ef172282baf10241daf Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Sun, 20 Sep 2026 17:14:47 +1000 Subject: [PATCH] feat(webui): bootstrap Vue 3 + shadcn-vue, replacing the Preact dashboard Sam owns this codebase and reads Vue fluently, not Preact; a UI its maintainer cannot read is the liability that outweighs the port. shadcn-vue is Vue-only, so adopting it means the framework moves with it. Scaffolded per the official Vite guide: `npm create vite --template vue-ts`, Tailwind v4 via @tailwindcss/vite, `shadcn-vue init` (Reka UI, Lucide, neutral base, CSS variables). Button and DropdownMenu are added, the latter being what the pending navigation restructure needs. Two deviations from the guide, both forced: - The guide sets `baseUrl` alongside `paths`. TypeScript 6 deprecates `baseUrl` and errors on it, and this project is heading for TS 7 native, so `paths` stands alone and resolves relative to the config file. Not a downgrade: the scaffold's typescript ~6.0.2 is untouched. - vite.config.ts keeps `base: "./"` and unhashed asset names. ui/embed.go embeds a committed dist/, served from a path the build does not know; hashed names would also orphan a file in git on every rebuild. The Preact app and its 43 test files are deleted rather than ported, on Sam's instruction: tests return when there is behaviour worth pinning rather than a port to re-assert. `task test:ui` is now a vue-tsc typecheck, which is what would actually catch a broken component; an empty `npm test` would pass vacuously. ui/src/router/index.ts carries the route table and is the new source of truth for TestDashboardPagesRegistryCoversEveryRoute, which parsed main.jsx before. Keeping that contract alive matters: it is what caught the stale /chat entry earlier today. Every route resolves to a named placeholder view, so an unported page is visibly unported rather than blank. golangci-lint now excludes ui/node_modules. The dashboard toolchain pulls in `flatted`, which ships a Go implementation beside its JavaScript, and the gate was failing on complexity in a vendored third-party file. The shadcn MCP server is registered in the root .mcp.json. `shadcn-vue mcp init` writes it to the directory it runs in, which for a nested ui/ is a path Claude Code never reads. --- .golangci.yml | 6 + Taskfile.yml | 15 +- docs/prds/dashboard-navigation-groups.md | 114 + internal/gateway/dashboard_tools_test.go | 2 +- ui/components.json | 26 + ui/dist/assets/index.css | 2 +- ui/dist/assets/index.js | 11 +- ui/dist/favicon.svg | 1 + ui/dist/icons.svg | 24 + ui/dist/index.html | 10 +- ui/index.html | 12 +- ui/package-lock.json | 7140 +++++++++++++---- ui/package.json | 31 +- ui/public/favicon.svg | 1 + ui/public/icons.svg | 24 + ui/src/App.vue | 5 + ui/src/assets/vite.svg | 1 + ui/src/base/api.jsx | 197 - ui/src/base/format.jsx | 32 - ui/src/base/gauge.jsx | 90 - ui/src/base/icons.jsx | 64 - ui/src/base/log-row.jsx | 65 - ui/src/base/pill.jsx | 13 - ui/src/base/statTile.jsx | 68 - ui/src/base/stream-state.js | 24 - ui/src/base/task-meta.jsx | 104 - ui/src/base/uuid.jsx | 20 - ui/src/bindings/binding-editor.jsx | 46 - ui/src/bindings/bindings.css | 32 - ui/src/bindings/bindings.jsx | 221 - ui/src/capabilities.jsx | 18 - ui/src/captures/capture-row.jsx | 75 - ui/src/captures/captures.css | 61 - ui/src/captures/captures.jsx | 122 - ui/src/channels/channels.css | 19 - ui/src/channels/channels.jsx | 101 - ui/src/chat/chat-render.jsx | 23 - ui/src/chat/chat-retry.jsx | 24 - ui/src/chat/chat-state.jsx | 12 - ui/src/chat/chat-update-status.jsx | 15 - ui/src/chat/chat.css | 226 - ui/src/chat/chat.jsx | 810 -- ui/src/chat/command-scroll.js | 28 - ui/src/chat/markdown.jsx | 195 - ui/src/components/ui/button/Button.vue | 31 + ui/src/components/ui/button/index.ts | 35 + .../ui/dropdown-menu/DropdownMenu.vue | 19 + .../DropdownMenuCheckboxItem.vue | 43 + .../ui/dropdown-menu/DropdownMenuContent.vue | 40 + .../ui/dropdown-menu/DropdownMenuGroup.vue | 15 + .../ui/dropdown-menu/DropdownMenuItem.vue | 31 + .../ui/dropdown-menu/DropdownMenuLabel.vue | 23 + .../dropdown-menu/DropdownMenuRadioGroup.vue | 21 + .../dropdown-menu/DropdownMenuRadioItem.vue | 44 + .../dropdown-menu/DropdownMenuSeparator.vue | 23 + .../ui/dropdown-menu/DropdownMenuShortcut.vue | 17 + .../ui/dropdown-menu/DropdownMenuSub.vue | 18 + .../dropdown-menu/DropdownMenuSubContent.vue | 27 + .../dropdown-menu/DropdownMenuSubTrigger.vue | 32 + .../ui/dropdown-menu/DropdownMenuTrigger.vue | 17 + ui/src/components/ui/dropdown-menu/index.ts | 16 + ui/src/css/_main.css | 17 - ui/src/css/base.css | 70 - ui/src/css/button.css | 37 - ui/src/css/card.css | 53 - ui/src/css/empty.css | 26 - ui/src/css/layout.css | 498 -- ui/src/css/page.css | 29 - ui/src/css/pill.css | 43 - ui/src/css/responsive.css | 30 - ui/src/css/table.css | 55 - ui/src/css/tokens.css | 137 - ui/src/curators/curators.css | 62 - ui/src/curators/curators.jsx | 124 - ui/src/dashboard/activity-detail.js | 30 - ui/src/dashboard/dashboard.css | 423 - ui/src/dashboard/dashboard.jsx | 448 -- ui/src/dashboard/setup-preference.jsx | 21 - ui/src/dashboard/task-targets.jsx | 21 - ui/src/lib/utils.ts | 7 + ui/src/logs/logs-empty.js | 29 - ui/src/logs/logs.css | 145 - ui/src/logs/logs.jsx | 200 - ui/src/main.jsx | 410 - ui/src/main.ts | 7 + ui/src/mappings/mapping-editor.jsx | 166 - ui/src/mappings/mappings.css | 82 - ui/src/mappings/mappings.jsx | 272 - ui/src/router/index.ts | 39 + ui/src/routing.jsx | 59 - ui/src/settings/config-row.jsx | 162 - ui/src/settings/operator-cards.jsx | 150 - ui/src/settings/settings.css | 352 - ui/src/settings/settings.jsx | 492 -- ui/src/settings/update-status.jsx | 71 - ui/src/skills/skills.css | 34 - ui/src/skills/skills.jsx | 98 - ui/src/style.css | 127 + ui/src/tasks/attempt-config.jsx | 92 - ui/src/tasks/changed-files.jsx | 202 - ui/src/tasks/debug-view.jsx | 41 - ui/src/tasks/stage-rail.jsx | 196 - ui/src/tasks/tab-bar.jsx | 69 - ui/src/tasks/task-detail.css | 617 -- ui/src/tasks/task-detail.jsx | 556 -- ui/src/tasks/task-filters.jsx | 26 - ui/src/tasks/task-logs.jsx | 205 - ui/src/tasks/task-row.jsx | 8 - ui/src/tasks/tasks.css | 350 - ui/src/tasks/tasks.jsx | 601 -- ui/src/tasks/timeline-event.jsx | 101 - ui/src/views/Placeholder.vue | 15 + ui/src/workflows/workflow-rows.js | 36 - ui/src/workflows/workflows.css | 87 - ui/src/workflows/workflows.jsx | 313 - ui/test/activity-detail.test.js | 43 - ui/test/api-client.test.js | 240 - ui/test/attempt-config.test.js | 111 - ui/test/bindings.test.js | 70 - ui/test/captures.test.js | 111 - ui/test/changed-files.test.js | 169 - ui/test/chat-app.test.js | 66 - ui/test/chat-fab.test.js | 89 - ui/test/chat-markdown.test.js | 55 - ui/test/chat-panel.test.js | 68 - ui/test/chat-retry.test.js | 44 - ui/test/chat-update-status.test.js | 22 - ui/test/classify-action-error.test.js | 28 - ui/test/command-scroll.test.js | 40 - ui/test/config-row.test.js | 144 - ui/test/hooks.js | 53 - ui/test/log-row.test.js | 58 - ui/test/logs-empty.test.js | 30 - ui/test/main-routing.test.js | 112 - ui/test/mappings.test.js | 97 - ui/test/nav-capabilities.test.js | 31 - ui/test/operator-controls.test.js | 48 - ui/test/register.js | 43 - ui/test/routing.test.js | 57 - ui/test/settings-lifecycle.test.js | 80 - ui/test/settings-operator.test.js | 80 - ui/test/settings-readonly.test.js | 28 - ui/test/settings-schema.test.js | 127 - ui/test/settings-update-status.test.js | 42 - ui/test/shim.js | 244 - ui/test/stage-rail.test.js | 229 - ui/test/statTile.test.js | 55 - ui/test/stream-state.test.js | 22 - ui/test/task-detail.test.js | 466 -- ui/test/task-filters.test.js | 35 - ui/test/task-logs.test.js | 248 - ui/test/task-meta-boot.test.js | 62 - ui/test/task-meta-late-catalog.test.js | 52 - ui/test/task-meta.test.js | 61 - ui/test/task-tabs.test.js | 115 - ui/test/tasks-a11y.test.js | 12 - ui/test/tasks-actions.test.js | 292 - ui/test/tasks-focus.test.js | 73 - ui/test/timeline-event.test.js | 130 - ui/test/uuid.test.js | 18 - ui/test/workflow-rows.test.js | 44 - ui/tsconfig.app.json | 19 + ui/tsconfig.json | 18 + ui/tsconfig.node.json | 23 + ui/vite.config.js | 32 - ui/vite.config.ts | 42 + 166 files changed, 6768 insertions(+), 16833 deletions(-) create mode 100644 docs/prds/dashboard-navigation-groups.md create mode 100644 ui/components.json create mode 100644 ui/dist/favicon.svg create mode 100644 ui/dist/icons.svg create mode 100644 ui/public/favicon.svg create mode 100644 ui/public/icons.svg create mode 100644 ui/src/App.vue create mode 100644 ui/src/assets/vite.svg delete mode 100644 ui/src/base/api.jsx delete mode 100644 ui/src/base/format.jsx delete mode 100644 ui/src/base/gauge.jsx delete mode 100644 ui/src/base/icons.jsx delete mode 100644 ui/src/base/log-row.jsx delete mode 100644 ui/src/base/pill.jsx delete mode 100644 ui/src/base/statTile.jsx delete mode 100644 ui/src/base/stream-state.js delete mode 100644 ui/src/base/task-meta.jsx delete mode 100644 ui/src/base/uuid.jsx delete mode 100644 ui/src/bindings/binding-editor.jsx delete mode 100644 ui/src/bindings/bindings.css delete mode 100644 ui/src/bindings/bindings.jsx delete mode 100644 ui/src/capabilities.jsx delete mode 100644 ui/src/captures/capture-row.jsx delete mode 100644 ui/src/captures/captures.css delete mode 100644 ui/src/captures/captures.jsx delete mode 100644 ui/src/channels/channels.css delete mode 100644 ui/src/channels/channels.jsx delete mode 100644 ui/src/chat/chat-render.jsx delete mode 100644 ui/src/chat/chat-retry.jsx delete mode 100644 ui/src/chat/chat-state.jsx delete mode 100644 ui/src/chat/chat-update-status.jsx delete mode 100644 ui/src/chat/chat.css delete mode 100644 ui/src/chat/chat.jsx delete mode 100644 ui/src/chat/command-scroll.js delete mode 100644 ui/src/chat/markdown.jsx create mode 100644 ui/src/components/ui/button/Button.vue create mode 100644 ui/src/components/ui/button/index.ts create mode 100644 ui/src/components/ui/dropdown-menu/DropdownMenu.vue create mode 100644 ui/src/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue create mode 100644 ui/src/components/ui/dropdown-menu/DropdownMenuContent.vue create mode 100644 ui/src/components/ui/dropdown-menu/DropdownMenuGroup.vue create mode 100644 ui/src/components/ui/dropdown-menu/DropdownMenuItem.vue create mode 100644 ui/src/components/ui/dropdown-menu/DropdownMenuLabel.vue create mode 100644 ui/src/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue create mode 100644 ui/src/components/ui/dropdown-menu/DropdownMenuRadioItem.vue create mode 100644 ui/src/components/ui/dropdown-menu/DropdownMenuSeparator.vue create mode 100644 ui/src/components/ui/dropdown-menu/DropdownMenuShortcut.vue create mode 100644 ui/src/components/ui/dropdown-menu/DropdownMenuSub.vue create mode 100644 ui/src/components/ui/dropdown-menu/DropdownMenuSubContent.vue create mode 100644 ui/src/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue create mode 100644 ui/src/components/ui/dropdown-menu/DropdownMenuTrigger.vue create mode 100644 ui/src/components/ui/dropdown-menu/index.ts delete mode 100644 ui/src/css/_main.css delete mode 100644 ui/src/css/base.css delete mode 100644 ui/src/css/button.css delete mode 100644 ui/src/css/card.css delete mode 100644 ui/src/css/empty.css delete mode 100644 ui/src/css/layout.css delete mode 100644 ui/src/css/page.css delete mode 100644 ui/src/css/pill.css delete mode 100644 ui/src/css/responsive.css delete mode 100644 ui/src/css/table.css delete mode 100644 ui/src/css/tokens.css delete mode 100644 ui/src/curators/curators.css delete mode 100644 ui/src/curators/curators.jsx delete mode 100644 ui/src/dashboard/activity-detail.js delete mode 100644 ui/src/dashboard/dashboard.css delete mode 100644 ui/src/dashboard/dashboard.jsx delete mode 100644 ui/src/dashboard/setup-preference.jsx delete mode 100644 ui/src/dashboard/task-targets.jsx create mode 100644 ui/src/lib/utils.ts delete mode 100644 ui/src/logs/logs-empty.js delete mode 100644 ui/src/logs/logs.css delete mode 100644 ui/src/logs/logs.jsx delete mode 100644 ui/src/main.jsx create mode 100644 ui/src/main.ts delete mode 100644 ui/src/mappings/mapping-editor.jsx delete mode 100644 ui/src/mappings/mappings.css delete mode 100644 ui/src/mappings/mappings.jsx create mode 100644 ui/src/router/index.ts delete mode 100644 ui/src/routing.jsx delete mode 100644 ui/src/settings/config-row.jsx delete mode 100644 ui/src/settings/operator-cards.jsx delete mode 100644 ui/src/settings/settings.css delete mode 100644 ui/src/settings/settings.jsx delete mode 100644 ui/src/settings/update-status.jsx delete mode 100644 ui/src/skills/skills.css delete mode 100644 ui/src/skills/skills.jsx create mode 100644 ui/src/style.css delete mode 100644 ui/src/tasks/attempt-config.jsx delete mode 100644 ui/src/tasks/changed-files.jsx delete mode 100644 ui/src/tasks/debug-view.jsx delete mode 100644 ui/src/tasks/stage-rail.jsx delete mode 100644 ui/src/tasks/tab-bar.jsx delete mode 100644 ui/src/tasks/task-detail.css delete mode 100644 ui/src/tasks/task-detail.jsx delete mode 100644 ui/src/tasks/task-filters.jsx delete mode 100644 ui/src/tasks/task-logs.jsx delete mode 100644 ui/src/tasks/task-row.jsx delete mode 100644 ui/src/tasks/tasks.css delete mode 100644 ui/src/tasks/tasks.jsx delete mode 100644 ui/src/tasks/timeline-event.jsx create mode 100644 ui/src/views/Placeholder.vue delete mode 100644 ui/src/workflows/workflow-rows.js delete mode 100644 ui/src/workflows/workflows.css delete mode 100644 ui/src/workflows/workflows.jsx delete mode 100644 ui/test/activity-detail.test.js delete mode 100644 ui/test/api-client.test.js delete mode 100644 ui/test/attempt-config.test.js delete mode 100644 ui/test/bindings.test.js delete mode 100644 ui/test/captures.test.js delete mode 100644 ui/test/changed-files.test.js delete mode 100644 ui/test/chat-app.test.js delete mode 100644 ui/test/chat-fab.test.js delete mode 100644 ui/test/chat-markdown.test.js delete mode 100644 ui/test/chat-panel.test.js delete mode 100644 ui/test/chat-retry.test.js delete mode 100644 ui/test/chat-update-status.test.js delete mode 100644 ui/test/classify-action-error.test.js delete mode 100644 ui/test/command-scroll.test.js delete mode 100644 ui/test/config-row.test.js delete mode 100644 ui/test/hooks.js delete mode 100644 ui/test/log-row.test.js delete mode 100644 ui/test/logs-empty.test.js delete mode 100644 ui/test/main-routing.test.js delete mode 100644 ui/test/mappings.test.js delete mode 100644 ui/test/nav-capabilities.test.js delete mode 100644 ui/test/operator-controls.test.js delete mode 100644 ui/test/register.js delete mode 100644 ui/test/routing.test.js delete mode 100644 ui/test/settings-lifecycle.test.js delete mode 100644 ui/test/settings-operator.test.js delete mode 100644 ui/test/settings-readonly.test.js delete mode 100644 ui/test/settings-schema.test.js delete mode 100644 ui/test/settings-update-status.test.js delete mode 100644 ui/test/shim.js delete mode 100644 ui/test/stage-rail.test.js delete mode 100644 ui/test/statTile.test.js delete mode 100644 ui/test/stream-state.test.js delete mode 100644 ui/test/task-detail.test.js delete mode 100644 ui/test/task-filters.test.js delete mode 100644 ui/test/task-logs.test.js delete mode 100644 ui/test/task-meta-boot.test.js delete mode 100644 ui/test/task-meta-late-catalog.test.js delete mode 100644 ui/test/task-meta.test.js delete mode 100644 ui/test/task-tabs.test.js delete mode 100644 ui/test/tasks-a11y.test.js delete mode 100644 ui/test/tasks-actions.test.js delete mode 100644 ui/test/tasks-focus.test.js delete mode 100644 ui/test/timeline-event.test.js delete mode 100644 ui/test/uuid.test.js delete mode 100644 ui/test/workflow-rows.test.js create mode 100644 ui/tsconfig.app.json create mode 100644 ui/tsconfig.json create mode 100644 ui/tsconfig.node.json delete mode 100644 ui/vite.config.js create mode 100644 ui/vite.config.ts diff --git a/.golangci.yml b/.golangci.yml index 48be55265..e13167cfb 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -95,6 +95,12 @@ linters: exclusions: generated: lax warn-unused: true + # npm dependencies are not this module's code. `flatted`, pulled in + # transitively by the dashboard toolchain, ships a Go implementation + # alongside its JavaScript, and linting a vendored third-party file fails + # the gate on complexity nobody here can fix. + paths: + - ui/node_modules presets: - comments - std-error-handling diff --git a/Taskfile.yml b/Taskfile.yml index 2c5ca3023..5a913ec9b 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -201,14 +201,19 @@ tasks: - bash tools/uidist.sh check test:ui: - desc: Run the dashboard's node tests (DOM-building primitives) + desc: Type-check the dashboard (no unit tests during the Vue migration) dir: ui - # Without this, a fresh clone fails the gate on a missing jsdom rather - # than a real test failure: ui/node_modules is gitignored and nothing - # else in `task check` installs it. + # The Preact suite was dropped with the Preact app in the shadcn-vue + # migration; tests come back when there is behaviour worth pinning rather + # than a port to re-assert. Until then vue-tsc is the gate that would + # actually catch a broken component, and an empty `npm test` would pass + # vacuously. + # + # ui:deps so a fresh clone fails on a real error rather than on a missing + # node_modules, which is gitignored and installed by nothing else. deps: [ui:deps] cmds: - - npm test + - npm run typecheck dev: desc: "Develop: archied live-reload + archie-gateway + archie-state-store + archie-ui + Vite HMR together. Open http://localhost:5173" diff --git a/docs/prds/dashboard-navigation-groups.md b/docs/prds/dashboard-navigation-groups.md new file mode 100644 index 000000000..3091537d6 --- /dev/null +++ b/docs/prds/dashboard-navigation-groups.md @@ -0,0 +1,114 @@ +# Dashboard navigation groups + Configuration split -- decision + +**Status:** Approved for implementation +**Date:** 2026-09-20 +**Beads issue:** `archie-core-ocfm` +**Related:** `archie-core-gl96` (Logs absent from the nav -- subsumed here), +`archie-core-ggqo` (Configuration's page width -- moot once it splits) + +## Problem + +`ui/src/main.jsx` declares eleven navigable routes in one flat bar. Three of +them (Skills, Curators, Channels) are capability-gated and hidden on the +reference deployment, so the eight items normally visible are the best case, +not the worst: a composition that serves every section wraps the bar. Logs is +declared but was never given a nav entry at all, reachable only from a +dashboard link. + +The labels compound it. "Event inspector", "Field mappings" and "Playbook +bindings" are three long labels for three faces of one subject, and they sit +beside "Dashboard" and "Tasks" as though they were peers of equal weight. + +Configuration is the other half. One route renders roughly ten sections -- +update status, work lifecycle, identity, budgets, storage, listen address, +repositories, models and providers, configuration sources, plus the operator +cards rehomed in `archie-core-tf20` -- in a 4021px page with no in-page +navigation. There is no way to send someone to Repositories. + +## Decision + +Five top-level nav items. Dashboard is a link; the rest are dropdowns. + +| Group | Items | +|---|---| +| Dashboard | (link, `/`) | +| Work | Tasks, Workflows | +| Agent | Skills, Curators | +| Events | Inspector, Mappings, Bindings | +| System | Status, Logs, Appearance, Task settings, Models & providers, Repositories, Channels, Advanced | + +Items are renamed because the group now carries the context: "Event inspector" +becomes "Inspector" under Events, and so on. A group renders only if at least +one of its children survives capability gating, and a group left with one +child still renders as a dropdown -- a bar whose shape changes per deployment +is harder to learn than one with a predictable skeleton. + +### Route map + +Configuration dissolves into real routes. Anchors into one long page were +rejected: they leave the 4021px page intact and a deep link lands the reader +mid-scroll with no context above it. + +| Was | Becomes | Content | +|---|---|---| +| `/settings` | `/system/status` | Update status, configuration sources, daemon listen address | +| -- | `/system/appearance` | Theme, and the density/motion preferences that follow it | +| `/settings` | `/system/tasks` | Work lifecycle: statuses, operator actions, budgets | +| `/settings` | `/system/models` | Model roles, providers | +| `/settings` | `/system/repos` | Repositories and their per-repo gate overrides | +| `/settings` | `/system/advanced` | Identity, storage and sandboxing, dangerous actions | +| `/captures` | `/captures` | unchanged; label becomes "Inspector" | +| `/mappings` | `/mappings` | unchanged; label becomes "Mappings" | +| `/bindings` | `/bindings` | unchanged; label becomes "Bindings" | + +`/settings` is kept as a permanent redirect to `/system/status`. It is the URL +in existing bookmarks, in `dashboardPages` (`internal/gateway/dashboard_tools.go`, +which the chat agent navigates by), and in prior conversation history; breaking +it to save one route entry is not a trade worth making. + +`dashboardPages` gains the new routes in the same change. That registry is +guarded by `TestDashboardPagesRegistryCoversEveryRoute`, so a route added here +and forgotten there fails the build -- which is how the deleted `/chat` entry +was caught. + +### Dropdown behaviour + +Each item carries a one-line description rendered beneath its label, not a +hover tooltip. A dropdown has the width for it, the description is then visible +to everyone rather than only to a mouse user who waits, and it survives on +touch where hover does not. The `title` attribute is not used for this. + +The menu is shadcn-vue's `DropdownMenu` (Reka UI underneath), which already +supplies the roving focus, ArrowDown/ArrowUp movement, Escape-closes-and- +restores-focus, and outside-pointerdown behaviour this would otherwise hand- +roll. It opens on click, never on hover -- hover-opened menus on a control +plane are a misclick away from a destructive page. The trigger keeps +`aria-current` styling when any of its children is the active route, so the bar +still says where you are. + +This section was written against the Preact dashboard; the decisions above +survive the Vue migration unchanged, only the primitive supplying them +changed. + +### Explicitly not in scope + +- No change to what any page renders, beyond which route renders it. The + Configuration split moves sections between files; it does not redesign them. +- `/system/appearance` ships with the theme control moved out of the topbar + icon and nothing else. The density and motion preferences named above are the + reason the page exists as a page rather than a section, not part of this + change. +- Mobile keeps the existing scrollable row of top-level items; groups expand + in place rather than opening a floating menu. Nested floating menus on a + phone are a separate problem. + +## Consequences + +The bar goes from eleven items to five, and stops depending on capability +gating to fit. Logs gets a home. Configuration becomes six linkable pages, and +`archie-core-ggqo`'s question about its page width answers itself, because no +single page is long enough for the cap to matter. + +The cost is a real routing change with redirects to maintain, and a nav that +now needs keyboard and screen-reader behaviour it did not need as a row of +links. Both are paid once. diff --git a/internal/gateway/dashboard_tools_test.go b/internal/gateway/dashboard_tools_test.go index bd486199b..ac2b2ad13 100644 --- a/internal/gateway/dashboard_tools_test.go +++ b/internal/gateway/dashboard_tools_test.go @@ -27,7 +27,7 @@ var routePathRe = regexp.MustCompile(`path:\s*"([^"]+)"`) // "single source of truth" claim into something a test can hold. func dashboardRoutesFromSource(t *testing.T) []string { t.Helper() - path := filepath.Join("..", "..", "ui", "src", "main.jsx") + path := filepath.Join("..", "..", "ui", "src", "router", "index.ts") src, err := os.ReadFile(path) if err != nil { t.Fatalf("read %s: %v", path, err) diff --git a/ui/components.json b/ui/components.json new file mode 100644 index 000000000..4f498ee8f --- /dev/null +++ b/ui/components.json @@ -0,0 +1,26 @@ +{ + "$schema": "https://shadcn-vue.com/schema.json", + "style": "reka-nova", + "font": "geist-sans", + "typescript": true, + "tailwind": { + "config": "", + "css": "src/style.css", + "baseColor": "neutral", + "cssVariables": true, + "prefix": "" + }, + "iconLibrary": "lucide", + "rtl": false, + "pointer": false, + "aliases": { + "components": "@/components", + "utils": "@/lib/utils", + "ui": "@/components/ui", + "lib": "@/lib", + "composables": "@/composables" + }, + "menuColor": "default", + "menuAccent": "subtle", + "registries": {} +} diff --git a/ui/dist/assets/index.css b/ui/dist/assets/index.css index 67658a3b7..c15077fb4 100644 --- a/ui/dist/assets/index.css +++ b/ui/dist/assets/index.css @@ -1 +1 @@ -:root{--font-sans:ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;--font-mono:ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;--text-xs:.6875rem;--text-sm:.8125rem;--text-base:.875rem;--text-lg:1.0625rem;--text-xl:1.375rem;--text-2xl:1.875rem;--text-3xl:2.5rem;--sp-1:.25rem;--sp-2:.5rem;--sp-3:.75rem;--sp-4:1rem;--sp-5:1.5rem;--sp-6:2rem;--sp-7:3rem;--radius-sm:6px;--radius-md:10px;--radius-lg:14px;--radius-xl:20px;--radius-pill:999px;--transition:.14s cubic-bezier(.4, 0, .2, 1)}[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#0d1014;--bg-raised:#141920;--surface:#171d25;--surface-hover:#1d242e;--border:#232b36;--border-strong:#303a48;--fg:#e8edf4;--fg-muted:#8b97a8;--fg-subtle:#7d8b9e;--accent:#4c8dff;--accent-fg:#0d1014;--accent-soft:#4c8dff24;--ok:#3fbf7f;--ok-soft:#3fbf7f24;--warn:#e8a33d;--warn-soft:#e8a33d24;--danger:#f0616d;--danger-soft:#f0616d24;--info:#4c8dff;--info-soft:#4c8dff24;--idle:#6b7688;--idle-soft:#6b768824;--accent-2:#7b5cff;--bg-blur:#1419208c;--surface-glass:#171d259e;--surface-glass-strong:#141920c7;--workspace:#11151b8c;--hairline:#ffffff0f;--wash-a:#4c8dff1a;--wash-b:#7b5cff1f;--wash-c:#3fbf7f0f;--shadow-workspace:0 24px 70px #00000080;--shadow-sm:0 1px 2px #0006;--shadow-md:0 8px 28px #0000006b}[data-theme=light]{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#f6f8fb;--bg-raised:#fff;--surface:#fff;--surface-hover:#f1f4f9;--border:#e2e8f0;--border-strong:#cbd5e1;--fg:#16202e;--fg-muted:#5a6779;--fg-subtle:#636f82;--accent:#2563eb;--accent-fg:#fff;--accent-soft:#2563eb1a;--ok:#10935c;--ok-soft:#10935c1f;--warn:#b87514;--warn-soft:#b875141f;--danger:#d4344a;--danger-soft:#d4344a1f;--info:#2563eb;--info-soft:#2563eb1a;--idle:#64748b;--idle-soft:#64748b1f;--accent-2:#7c3aed;--bg-blur:#fff9;--surface-glass:#ffffffb8;--surface-glass-strong:#ffffffe0;--workspace:#ffffff8c;--hairline:#0f172a0f;--wash-a:#2563eb1a;--wash-b:#7c3aed1f;--wash-c:#10935c12;--shadow-workspace:0 24px 70px #0f172a24;--shadow-sm:0 1px 2px #0f172a0f;--shadow-md:0 8px 28px #0f172a1a}*,:before,:after{box-sizing:border-box}html,body{height:100%;margin:0}body{color:var(--fg);font-family:var(--font-sans);font-size:var(--text-base);-webkit-font-smoothing:antialiased;line-height:1.5}a{color:inherit;text-decoration:none}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.visually-hidden,.sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}body{background:radial-gradient(70rem 40rem at 8% -10%, var(--wash-a), transparent 62%), radial-gradient(56rem 34rem at 92% 4%, var(--wash-b), transparent 58%), radial-gradient(48rem 30rem at 50% 108%, var(--wash-c), transparent 60%), var(--bg);padding:var(--sp-4);background-attachment:fixed}.shell{min-height:calc(100vh - var(--sp-4) * 2);border-radius:var(--radius-xl);border:1px solid var(--hairline);background:var(--workspace);-webkit-backdrop-filter:blur(28px)saturate(120%);backdrop-filter:blur(28px)saturate(120%);box-shadow:var(--shadow-workspace);flex-direction:column;display:flex;overflow:hidden}.topbar{align-items:center;gap:var(--sp-4);padding:var(--sp-3) var(--sp-4);border-bottom:1px solid var(--hairline);background:var(--bg-blur);z-index:10;display:flex;position:sticky;top:0}.brand{align-items:center;gap:var(--sp-2);font-weight:600;font-size:var(--text-sm);letter-spacing:-.01em;flex:none;display:flex}.brand-mark{background:linear-gradient(135deg, var(--accent), var(--accent-2));color:#fff;width:26px;height:26px;font-size:var(--text-xs);border-radius:8px;place-items:center;font-weight:700;display:grid}.nav{scrollbar-width:none;border-radius:var(--radius-pill);background:var(--surface-glass-strong);border:1px solid var(--hairline);flex:0 auto;align-items:center;gap:2px;min-width:0;margin:0 auto;padding:3px;display:flex;overflow-x:auto}.nav::-webkit-scrollbar{display:none}.nav-item{align-items:center;gap:var(--sp-2);padding:var(--sp-2) var(--sp-3);border-radius:var(--radius-pill);color:var(--fg-muted);font-size:var(--text-sm);white-space:nowrap;cursor:pointer;transition:background var(--transition), color var(--transition);flex:none;display:inline-flex}.nav-item:hover{color:var(--fg);background:var(--surface-hover)}.nav-item[aria-current=page]{background:var(--accent);color:var(--accent-fg);font-weight:500}.nav-item .nav-label{display:inline}.topbar-end{align-items:center;gap:var(--sp-2);flex:none;display:flex}.topbar-search{align-items:center;gap:var(--sp-2);padding:var(--sp-2) var(--sp-3);border-radius:var(--radius-pill);background:var(--surface-glass-strong);border:1px solid var(--hairline);color:var(--fg-subtle);display:flex}.topbar-search input{color:var(--fg);font:inherit;font-size:var(--text-sm);background:0 0;border:0;outline:none;width:8rem}.topbar-search input::placeholder{color:var(--fg-subtle)}.mobile-search-toggle{display:none}.icon-btn{border-radius:var(--radius-pill);border:1px solid var(--hairline);background:var(--surface-glass-strong);width:32px;height:32px;color:var(--fg-muted);cursor:pointer;transition:color var(--transition), background var(--transition);place-items:center;display:grid}.icon-btn:hover{color:var(--fg);background:var(--surface-hover)}.avatar{border-radius:var(--radius-pill);width:32px;height:32px;font-size:var(--text-xs);color:#fff;background:linear-gradient(135deg, var(--accent), var(--accent-2));cursor:pointer;flex:none;place-items:center;font-weight:600;display:grid}.ico{flex:none;display:block}.main{padding:var(--sp-6);flex:1;width:100%;overflow-x:hidden}.chat-dock{--fab-size:56px;--fab-inset:var(--sp-5);--fab-gap:var(--sp-3);right:var(--fab-inset);bottom:var(--fab-inset);z-index:40;position:fixed}.chat-fab{width:var(--fab-size);height:var(--fab-size);border-radius:var(--radius-pill);background:linear-gradient(135deg, var(--accent), var(--accent-2));color:#fff;cursor:pointer;box-shadow:var(--shadow-md);transition:transform var(--transition), box-shadow var(--transition);border:0;place-items:center;display:grid;position:relative}.chat-fab:hover{box-shadow:0 12px 34px color-mix(in srgb, var(--accent) 38%, transparent);transform:translateY(-1px)}.chat-fab:active{transform:translateY(0)}.chat-fab-icon{transition:opacity var(--transition), transform var(--transition);grid-area:1/1;place-items:center;display:grid}.chat-fab-icon-close,.chat-dock.is-open .chat-fab-icon-open{opacity:0;transform:scale(.7)rotate(-45deg)}.chat-fab-icon-open,.chat-dock.is-open .chat-fab-icon-close{opacity:1;transform:none}.chat-drawer{right:calc(var(--fab-size) + var(--fab-gap));width:min(440px, calc(100vw - var(--fab-size) - var(--fab-gap) - var(--fab-inset) * 2));height:min(640px, calc(100vh - var(--fab-inset) * 2));pointer-events:none;position:absolute;bottom:0}.chat-drawer-panel{pointer-events:auto;background:var(--surface);border:1px solid var(--border);width:100%;height:100%;box-shadow:var(--shadow-md);opacity:0;border-radius:var(--radius-pill);transform-origin:100% 100%;transform:translateX(calc(var(--fab-size) + var(--fab-gap))) scale(.16);grid-template-rows:minmax(0,1fr);transition:opacity .16s cubic-bezier(.4,0,.2,1),transform .26s cubic-bezier(.22,1,.36,1),border-radius .26s cubic-bezier(.22,1,.36,1);display:grid;overflow:hidden}.chat-drawer.is-open .chat-drawer-panel{opacity:1;border-radius:var(--radius-lg);transform:none}.chat-drawer-panel>*{opacity:0;transition:opacity .12s linear}.chat-drawer.is-open .chat-drawer-panel>*{opacity:1;transition:opacity .16s linear .12s}.chat-drawer:not(.is-open) .chat-drawer-panel{pointer-events:none;visibility:hidden;transition:opacity .14s cubic-bezier(.4,0,.2,1),transform .2s cubic-bezier(.4,0,1,1),border-radius .2s cubic-bezier(.4,0,1,1),visibility 0s linear .2s}.chat-drawer-head{justify-content:space-between;align-items:center;gap:var(--sp-2);padding:var(--sp-3) var(--sp-4);border-bottom:1px solid var(--border);display:flex}@media (width<=720px){.chat-dock{--fab-inset:var(--sp-4)}.chat-drawer{right:var(--fab-inset);left:var(--fab-inset);bottom:calc(var(--fab-inset) + var(--fab-size) + var(--fab-gap));width:auto;height:min(72vh, calc(100vh - var(--fab-inset) * 2 - var(--fab-size) - var(--fab-gap)));position:fixed}.chat-drawer-panel{transform-origin:100% 100%;transform:translateY(calc(var(--fab-size) + var(--fab-gap))) scale(.16)}.chat-fab{z-index:1;position:relative}}@media (width<=1500px){.topbar-search{background:0 0;border:0;padding:0;overflow:hidden}.topbar-search-icon{display:none}.mobile-search-toggle{display:grid}.topbar-search input{opacity:0;pointer-events:none;width:0;transition:width var(--transition), opacity var(--transition);padding:0}.topbar-search.is-open,.topbar-search:focus-within{padding-right:var(--sp-2);border:1px solid var(--hairline);background:var(--surface-glass-strong)}.topbar-search.is-open input,.topbar-search:focus-within input{opacity:1;pointer-events:auto;width:min(9rem,34vw)}}@media (width<=1270px) and (width>=901px){.topbar{flex-wrap:wrap}.nav{border-radius:var(--radius-lg);flex-wrap:wrap;order:3;justify-content:center;width:100%;margin:0}}@media (width<=900px){body{padding:0}.shell{min-height:100vh;box-shadow:none;border:0;border-radius:0}.topbar{padding:var(--sp-3);gap:var(--sp-2);flex-wrap:wrap}.nav{border-radius:var(--radius-lg);scrollbar-width:none;flex-wrap:nowrap;order:3;justify-content:flex-start;width:100%;overflow-x:auto}.nav::-webkit-scrollbar{display:none}.nav-item .nav-label{display:inline}.main{padding:var(--sp-4)}}.page-head{justify-content:space-between;align-items:flex-start;gap:var(--sp-5);margin-bottom:var(--sp-6);flex-wrap:wrap;display:flex}.page-title{font-size:var(--text-2xl);letter-spacing:-.02em;margin:0;font-weight:600}.page-sub{color:var(--fg-muted);font-size:var(--text-sm);margin:var(--sp-1) 0 0}.page-actions{gap:var(--sp-2);align-items:center;display:flex}.btn{align-items:center;gap:var(--sp-2);padding:var(--sp-2) var(--sp-4);border-radius:var(--radius-pill);border:1px solid var(--border-strong);background:var(--surface);color:var(--fg);font:inherit;font-size:var(--text-sm);cursor:pointer;transition:background var(--transition), border-color var(--transition);display:inline-flex}.btn:hover{background:var(--surface-hover)}.btn-primary{background:var(--accent);border-color:var(--accent);color:var(--accent-fg);font-weight:500}.btn-primary:hover{filter:brightness(1.08);background:var(--accent)}.btn-icon{padding:var(--sp-2);border-radius:var(--radius-sm)}.card{background:var(--surface-glass);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border:1px solid var(--hairline);border-radius:var(--radius-lg);padding:var(--sp-5);box-shadow:var(--shadow-sm);overflow-x:auto}.card-head{justify-content:space-between;align-items:center;gap:var(--sp-3);margin-bottom:var(--sp-4);flex-wrap:wrap;display:flex}.card-title{font-size:var(--text-base);margin:0;font-weight:600}.card-sub{font-size:var(--text-xs);color:var(--fg-muted);margin:var(--sp-1) 0 0}.grid{gap:var(--sp-4);display:grid}.grid>*{min-width:0}.grid-4{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.grid-2{grid-template-columns:repeat(auto-fit,minmax(340px,1fr))}.pill{align-items:center;gap:var(--sp-1);padding:2px var(--sp-2);border-radius:var(--radius-pill);font-size:var(--text-xs);white-space:nowrap;font-weight:500;display:inline-flex}.pill:before{content:"";background:currentColor;border-radius:50%;width:5px;height:5px}.pill-ok{color:var(--ok);background:var(--ok-soft)}.pill-warn{color:var(--warn);background:var(--warn-soft)}.pill-danger{color:var(--danger);background:var(--danger-soft)}.pill-info{color:var(--info);background:var(--info-soft)}.pill-idle{color:var(--idle);background:var(--idle-soft)}.table{border-collapse:collapse;width:100%;font-size:var(--text-sm)}.table-scroll{-webkit-overflow-scrolling:touch;min-width:0;max-width:100%;overflow-x:auto}.table-scroll>.table{min-width:42rem}.table th{text-align:left;font-weight:500;font-size:var(--text-xs);text-transform:uppercase;letter-spacing:.05em;color:var(--fg-subtle);padding:0 var(--sp-3) var(--sp-3);border-bottom:1px solid var(--border)}.table td{padding:var(--sp-3);border-bottom:1px solid var(--border);color:var(--fg-muted)}.table tbody tr:last-child td{border-bottom:0}.table tbody tr:hover td{background:var(--surface-hover)}.table td.strong{color:var(--fg);font-weight:500}.mono{font-family:var(--font-mono);font-size:.95em}.empty{text-align:center;padding:var(--sp-7) var(--sp-4);color:var(--fg-muted)}.empty-title{color:var(--fg);margin-bottom:var(--sp-1);font-weight:500}.skeleton{background:linear-gradient(90deg, var(--surface) 25%, var(--surface-hover) 50%, var(--surface) 75%);border-radius:var(--radius-sm);background-size:200% 100%;animation:1.4s infinite shimmer}@keyframes shimmer{to{background-position:-200% 0}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important}}.nav-soon{font-size:var(--text-xs);color:var(--fg-subtle);background:var(--surface-hover);padding:1px var(--sp-2);border-radius:var(--radius-pill);margin-left:auto}.nav-item[aria-disabled]{opacity:.55;cursor:default}.nav-item[aria-disabled]:hover{color:var(--fg-muted);background:0 0}.stat-head{justify-content:space-between;align-items:center;gap:var(--sp-2);display:flex}.stat-label{font-size:var(--text-sm);color:var(--fg-muted)}.stat-trend{font-size:var(--text-xs);align-items:center;gap:3px;font-weight:500;display:inline-flex}.stat-trend.up{color:var(--ok)}.stat-trend.down{color:var(--danger)}.stat-value{font-size:var(--text-3xl);letter-spacing:-.03em;margin:var(--sp-2) 0 0;font-weight:600}.stat-unit{font-size:var(--text-lg);color:var(--fg-muted);margin-left:var(--sp-1)}.stat-compare{font-size:var(--text-xs);color:var(--fg-subtle);margin-top:var(--sp-1)}.spark{width:100%;height:34px;margin-top:var(--sp-3);display:block}.setup{margin-bottom:var(--sp-4)}.setup-pct{font-size:var(--text-lg);color:var(--accent);font-weight:600}.setup-complete-actions{align-items:center;gap:var(--sp-2);display:flex}.setup-dismiss{width:28px;height:28px;font-size:var(--text-lg);line-height:1}.setup-done .setup-pct{color:var(--ok)}.setup-bar{border-radius:var(--radius-pill);background:var(--border);height:5px;margin-bottom:var(--sp-4);overflow:hidden}.setup-bar-fill{background:var(--accent);border-radius:var(--radius-pill);height:100%;transition:width var(--transition)}.setup-list{gap:var(--sp-3);flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.setup-step{gap:var(--sp-3);align-items:flex-start;display:flex}.setup-check{border:1.5px solid var(--border-strong);width:18px;height:18px;font-size:var(--text-xs);color:var(--fg-subtle);border-radius:50%;flex:none;place-items:center;margin-top:1px;display:grid}.setup-step.done .setup-check{background:var(--ok-soft);color:var(--ok);border-color:#0000}.setup-step-title{font-size:var(--text-sm)}.setup-step.done .setup-step-title{color:var(--fg-muted);text-decoration:line-through}.setup-step-detail{font-size:var(--text-xs);color:var(--fg-subtle);margin-top:2px}.hero{justify-content:space-between;align-items:flex-start;gap:var(--sp-5);margin-bottom:var(--sp-5);flex-wrap:wrap;display:flex}.hero-title{font-size:var(--text-3xl);letter-spacing:-.03em;margin:0;font-weight:600}.hero-sub{color:var(--fg-muted);font-size:var(--text-sm);margin:var(--sp-2) 0 0}.hero-actions{gap:var(--sp-2);flex-wrap:wrap;align-items:center;display:flex}.dash-top{gap:var(--sp-4);margin-bottom:var(--sp-4);grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);display:grid}.dash-top>*,.dash-split>*{min-width:0}.dash-top{align-items:start}.dash-top-standalone{grid-template-columns:minmax(0,1fr)}@media (width<=1080px){.dash-top{grid-template-columns:minmax(0,1fr)}}.gauge-wrap{place-items:center;display:grid;position:relative}.gauge{width:100%;max-width:200px;display:block}.gauge-value{transition:stroke-dashoffset .6s cubic-bezier(.4,0,.2,1)}.gauge-center{text-align:center;position:absolute;top:52%;transform:translateY(-50%)}.gauge-pct{font-size:var(--text-2xl);letter-spacing:-.03em;font-weight:600}.gauge-label{font-size:var(--text-xs);color:var(--fg-muted)}.pulse-list{margin:var(--sp-4) 0 0;gap:var(--sp-2);flex-direction:column;padding:0;list-style:none;display:flex}.pulse-item{justify-content:space-between;align-items:center;gap:var(--sp-3);font-size:var(--text-sm);padding:var(--sp-2) var(--sp-3);border-radius:var(--radius-sm);background:var(--bg-raised);display:flex}.pulse-name{color:var(--fg-muted);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.segbar{border-radius:var(--radius-pill);background:var(--border);gap:2px;height:10px;display:flex;overflow:hidden}.segbar-part{height:100%;display:block}.segbar-ok{background:var(--ok)}.segbar-warn{background:var(--warn)}.segbar-danger{background:var(--danger)}.segbar-info{background:var(--info)}.segbar-idle{background:var(--idle)}.segbar-legend{gap:var(--sp-4);margin-top:var(--sp-3);flex-wrap:wrap;display:flex}.segbar-key{align-items:center;gap:var(--sp-2);font-size:var(--text-xs);color:var(--fg-muted);display:inline-flex}.segbar-dot{border-radius:50%;width:8px;height:8px}.forecast-value{font-size:var(--text-3xl);letter-spacing:-.03em;margin-bottom:var(--sp-1);font-weight:600}.forecast-note{font-size:var(--text-xs);color:var(--fg-subtle);margin-bottom:var(--sp-4)}.dash-split{gap:var(--sp-4);margin-top:var(--sp-4);grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);display:grid}@media (width<=1080px){.dash-split{grid-template-columns:minmax(0,1fr)}}.stat-card{position:relative;overflow:hidden}.dash-section{margin-bottom:var(--sp-5)}.dash-section-head{align-items:baseline;gap:var(--sp-3);margin-bottom:var(--sp-3);padding-left:var(--sp-1);display:flex}.dash-section-title{font-size:var(--text-xs);text-transform:uppercase;letter-spacing:.08em;color:var(--fg-subtle);margin:0;font-weight:600}.dash-section-note{font-size:var(--text-xs);color:var(--fg-subtle)}.hero-actions-inner{gap:var(--sp-2);flex-wrap:wrap;align-items:center;display:flex}.btn-attention{border-color:var(--warn);color:var(--warn);background:var(--warn-soft);font-weight:500}.btn-attention:hover{background:var(--warn-soft);filter:brightness(1.1)}.activity-detail{width:55%;max-width:0}.activity-detail span{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.task-summary{margin-bottom:var(--sp-5)}.task-filters{gap:var(--sp-2);flex-wrap:wrap;align-items:center;display:flex}.task-search,.task-filter{font:inherit;font-size:var(--text-sm);color:var(--fg);background:var(--surface);border:1px solid var(--border-strong);border-radius:var(--radius-sm);padding:var(--sp-2) var(--sp-3)}.task-search{width:220px}.task-search:focus,.task-filter:focus{outline:2px solid var(--accent-soft);outline-offset:1px}.task-row{cursor:pointer}.task-expand{width:1.5rem;height:1.5rem;margin-right:var(--sp-2);color:var(--fg-muted);border:1px solid var(--border);font:inherit;cursor:pointer;background:0 0;border-radius:50%;padding:0;line-height:1}.task-expand:hover,.task-expand:focus-visible{color:var(--fg);border-color:var(--accent)}.activity-row{cursor:pointer}.activity-row:hover td,.activity-row:focus td{background:var(--surface-hover)}.activity-row:focus{outline:2px solid var(--accent);outline-offset:-2px}.task-source-link{color:var(--accent);text-decoration:none}.task-source-link:hover{text-decoration:underline}.task-detail-link{color:inherit}.task-detail-link:hover,.task-detail-link:focus-visible{text-decoration:underline;-webkit-text-decoration-color:var(--accent);text-decoration-color:var(--accent)}.task-actions{gap:var(--sp-1);white-space:nowrap;flex-wrap:wrap;display:flex}.btn-small{padding:var(--sp-1) var(--sp-2);font-size:var(--text-xs)}.btn-quiet{color:var(--fg-muted)}.task-action-error{max-width:220px;font-size:var(--text-xs);white-space:normal}.task-action-error-refused{color:var(--warn)}.task-action-error-broken{color:var(--danger)}.task-action-error-session{color:var(--warn);align-items:center;gap:var(--sp-1);flex-wrap:wrap;display:inline-flex}.task-decision{margin-bottom:var(--sp-4);padding:var(--sp-3);border-left:3px solid var(--accent);background:var(--surface)}.task-detail-actions{justify-content:space-between;align-items:center;gap:var(--sp-3);margin-bottom:var(--sp-4);padding-bottom:var(--sp-3);border-bottom:1px solid var(--hairline);display:flex}.task-decision-title{color:var(--fg);font-weight:600}.task-decision-plan{margin-top:var(--sp-2);color:var(--fg-muted);white-space:pre-wrap}.task-logs-section{margin-top:var(--sp-4)}.task-logs-section .task-decision-title{justify-content:space-between;align-items:center;display:flex}.task-log-list{max-height:40vh;font-family:var(--font-mono);font-size:var(--text-xs);border-top:1px solid var(--border);margin-top:var(--sp-2);overflow-y:auto}.task-log-loading,.task-log-error{padding:var(--sp-3) 0;color:var(--fg-muted)}@media (width<=700px){.task-filters,.task-search{width:100%}.task-filter{flex:100%}.table-scroll:has(.task-row){overflow:visible}.table:has(.task-row){display:block}.table:has(.task-row) tbody{display:block}.table-scroll>.table:has(.task-row){width:100%;min-width:0}.table:has(.task-row) thead{display:none}.task-row{gap:var(--sp-2) var(--sp-4);margin-bottom:var(--sp-3);padding:var(--sp-3);border:1px solid var(--hairline);border-radius:var(--radius-lg);background:var(--surface-glass);grid-template-columns:1fr 1fr;display:grid}.task-row td{justify-content:space-between;align-items:center;gap:var(--sp-2);padding:var(--sp-1) 0;text-align:right;border:0;display:flex}.task-row td:before{content:attr(data-label);color:var(--fg-subtle);font-size:var(--text-xs);text-align:left;font-weight:500}.task-row td:nth-child(3),.task-row td:last-child{grid-column:1/-1}.task-row td:last-child{align-items:flex-start}.task-timeline-row,.task-timeline-row td{width:100%;display:block}.task-timeline-row td{margin:calc(var(--sp-2) * -1) 0 var(--sp-4);border-radius:0 0 var(--radius-lg) var(--radius-lg)}.task-detail-actions{flex-direction:column;align-items:flex-start}}@media (width<=480px){.task-row{grid-template-columns:1fr}.task-row td:nth-child(3),.task-row td:last-child{grid-column:auto}}.task-timeline-row td{background:var(--bg-raised);padding:var(--sp-4)}.task-timeline-loading{color:var(--fg-muted);font-size:var(--text-sm)}.task-timeline-error{align-items:flex-start;gap:var(--sp-2);flex-direction:column;display:flex}.task-timeline-error .task-timeline-title{color:var(--fg);font-weight:500}.task-timeline{gap:var(--sp-3);flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.task-timeline-entry{gap:var(--sp-3);align-items:flex-start;display:flex}.task-timeline-dot{background:var(--accent);border-radius:50%;flex:none;width:8px;height:8px;margin-top:5px}.task-timeline-kind{font-size:var(--text-sm);color:var(--fg);font-weight:500}.task-timeline-detail{font-size:var(--text-xs);color:var(--fg-muted);margin-top:2px}.task-timeline-when{font-size:var(--text-xs);color:var(--fg-subtle);margin-top:2px}.run-meta{align-items:center;gap:var(--sp-4);margin:calc(var(--sp-2) * -1) 0 var(--sp-4);font-size:var(--text-sm);flex-wrap:wrap;display:flex}.run-meta-item{align-items:center;gap:var(--sp-2);display:inline-flex}.run-meta-label{color:var(--fg-muted);font-size:var(--text-xs);text-transform:uppercase;letter-spacing:.05em}.run-meta-value{color:var(--fg)}.run-meta-muted{color:var(--fg-muted)}.run-meta-link{color:var(--accent)}.run-meta-link:hover{text-decoration:underline}.run-note{margin:0 0 var(--sp-4);padding:var(--sp-3) var(--sp-4);border-left:3px solid var(--warn);background:var(--warn-soft);border-radius:var(--radius-sm);color:var(--fg);font-size:var(--text-sm)}.run-restart{align-items:center;gap:var(--sp-3);margin-bottom:var(--sp-4);flex-wrap:wrap;display:flex}.run-restart-copy,.run-restart-unavailable{color:var(--fg-muted);font-size:var(--text-sm);flex:22rem;margin:0}.run-restart-error{font-size:var(--text-sm);flex:100%;margin:0}.run-restart-error-refused{color:var(--warn)}.run-restart-error-broken{color:var(--danger)}.run-restart-error-session-expired{color:var(--warn)}.run-attempts{gap:var(--sp-2);margin-bottom:var(--sp-4);flex-wrap:wrap;display:flex}.run-attempt{align-items:center;gap:var(--sp-2);padding:var(--sp-2) var(--sp-3);border:1px solid var(--border);border-radius:var(--radius-pill);background:var(--surface);color:var(--fg-muted);font:inherit;font-size:var(--text-sm);cursor:pointer;transition:border-color var(--transition), color var(--transition);display:inline-flex}.run-attempt:hover{border-color:var(--border-strong);color:var(--fg)}.run-attempt.is-selected{border-color:var(--accent);background:var(--accent-soft);color:var(--fg)}.run-attempt-id{font-weight:500}.run-attempt-meta{color:var(--fg-muted);font-size:var(--text-xs)}.run-card{padding-top:var(--sp-4)}.tab-bar{gap:var(--sp-1);border-bottom:1px solid var(--border);margin-bottom:var(--sp-4);scrollbar-width:thin;display:flex;overflow-x:auto}.tab{padding:var(--sp-2) var(--sp-3);border-radius:var(--radius-sm) var(--radius-sm) 0 0;color:var(--fg-muted);font:inherit;font-size:var(--text-sm);white-space:nowrap;cursor:pointer;transition:color var(--transition), background var(--transition);background:0 0;border:0;border-bottom:2px solid #0000;position:relative}.tab:hover{color:var(--fg);background:var(--surface-hover)}.tab.is-selected{color:var(--fg);border-bottom-color:var(--accent);font-weight:500}.run-panel{min-width:0;min-height:6rem}.run-panel:focus-visible{outline:2px solid var(--accent);outline-offset:4px}.run-loading{padding:var(--sp-5) 0;color:var(--fg-muted);font-size:var(--text-sm)}.run-error{align-items:flex-start;gap:var(--sp-2);padding:var(--sp-3) 0;flex-direction:column;display:flex}.run-error-title{color:var(--fg);font-weight:500}.run-error-detail{color:var(--fg-muted);font-size:var(--text-sm);max-width:60ch}.run-json{padding:var(--sp-3);background:var(--bg-raised);border:1px solid var(--border);border-radius:var(--radius-sm);max-height:60vh;font-family:var(--font-mono);font-size:var(--text-xs);white-space:pre-wrap;overflow-wrap:anywhere;margin:0;line-height:1.5;overflow:auto}.run-rail-head{align-items:center;gap:var(--sp-3);margin-bottom:var(--sp-4);flex-wrap:wrap;display:flex}.run-rail-attempt{font-weight:600}.run-rail-when{color:var(--fg-muted);font-size:var(--text-xs)}.run-stages{margin:0;padding:0;list-style:none}.run-stage{gap:var(--sp-2);padding-bottom:var(--sp-4);grid-template-columns:1.75rem 1fr;display:grid;position:relative}.run-stage:before{content:"";background:var(--border-strong);width:1px;position:absolute;top:1rem;bottom:0;left:.6875rem}.run-stage:last-child:before{display:none}.run-stage-node{z-index:1;border:2px solid var(--border-strong);background:var(--bg-raised);border-radius:50%;width:.875rem;height:.875rem;margin:.25rem 0 0 .25rem;position:relative}.run-stage[data-status=ok] .run-stage-node{border-color:var(--ok)}.run-stage[data-status=failed] .run-stage-node{border-color:var(--danger)}.run-stage[data-status=interrupted] .run-stage-node{border-color:var(--warn)}.run-stage[data-status=running] .run-stage-node{border-color:var(--info)}.run-stage-body{min-width:0}.run-stage-head{align-items:center;gap:var(--sp-2);flex-wrap:wrap;display:flex}.run-stage-name{color:var(--fg);overflow-wrap:anywhere;min-width:0;font-weight:500}.run-stage-duration{color:var(--fg-muted);font-size:var(--text-xs)}.run-stage-error{margin-top:var(--sp-2);padding:var(--sp-2) var(--sp-3);border-left:3px solid var(--danger);background:var(--danger-soft);border-radius:var(--radius-sm);color:var(--fg-muted);font-size:var(--text-sm);white-space:pre-wrap;overflow-wrap:anywhere}.run-agent-report{margin-top:var(--sp-2);color:var(--fg-muted);font-size:var(--text-xs)}.run-agent-report-label{color:var(--fg-muted)}.run-rail-legend,.run-rail-note{margin:var(--sp-3) 0 0;color:var(--fg-muted);font-size:var(--text-xs);max-width:70ch}.run-rail-legend strong{color:var(--fg-muted)}.run-capture+.run-capture{margin-top:var(--sp-5);padding-top:var(--sp-4);border-top:1px solid var(--border)}.run-capture-head{justify-content:space-between;align-items:baseline;gap:var(--sp-3);flex-wrap:wrap;display:flex}.run-capture-when{color:var(--fg);font-size:var(--text-sm);font-weight:500}.run-capture-at{color:var(--fg-muted);font-size:var(--text-xs)}.run-capture-meta{align-items:center;gap:var(--sp-3);margin:var(--sp-2) 0 var(--sp-3);color:var(--fg-muted);font-size:var(--text-xs);flex-wrap:wrap;display:flex}.run-capture-link{color:var(--accent)}.run-capture-link:hover{text-decoration:underline}.run-capture-branch,.run-capture-sha,.run-capture-totals{color:var(--fg-muted)}.run-changes-table td{padding:var(--sp-2) var(--sp-3);vertical-align:top}.run-changes-path{color:var(--fg);word-break:break-all}.run-changes-old{color:var(--fg-muted)}.run-changes-count{text-align:right;white-space:nowrap}.run-changes-hint,.run-changes-note,.run-changes-empty{color:var(--fg-muted);font-size:var(--text-xs)}.run-changes-hint{display:block}.run-changes-empty{padding:var(--sp-3) 0}.run-config-scope{margin:0 0 var(--sp-2);color:var(--fg-muted);font-size:var(--text-sm);max-width:75ch}.run-config-when{margin-bottom:var(--sp-3);color:var(--fg-muted);font-size:var(--text-xs)}.run-config-unknown{margin-bottom:var(--sp-2);color:var(--warn);font-size:var(--text-sm)}.task-log-filters{padding-bottom:var(--sp-3);border-bottom:1px solid var(--border)}.task-log-attempt{color:var(--fg);font-size:var(--text-sm);font-weight:500}.task-log-filter{align-items:center;gap:var(--sp-2);display:inline-flex}.task-log-filter-label{color:var(--fg-muted);font-size:var(--text-xs);text-transform:uppercase;letter-spacing:.05em}.task-log-filter-note{color:var(--fg-muted);font-size:var(--text-xs);flex:100%;max-width:80ch;margin:0}.run-panel .task-log-list{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--bg-raised);max-height:62vh;padding:0 var(--sp-2)}.run-page .pill{color:var(--fg)}.run-page .pill-ok:before{background:var(--ok)}.run-page .pill-warn:before{background:var(--warn)}.run-page .pill-danger:before{background:var(--danger)}.run-page .pill-info:before{background:var(--info)}.run-page .pill-idle:before{background:var(--idle)}@media (width<=700px){.run-meta{margin-bottom:var(--sp-3)}.run-restart{align-items:flex-start}.run-attempts{padding-bottom:var(--sp-1);flex-wrap:nowrap;overflow-x:auto}.run-stage{padding-bottom:var(--sp-3);border-bottom:1px solid var(--border);grid-template-columns:1fr}.run-stage:before,.run-stage-node{display:none}.run-capture-head{align-items:flex-start;gap:var(--sp-1);flex-direction:column}}@media (width<=480px){.tab{padding:var(--sp-2)}.run-json{max-height:45vh}}@media (prefers-reduced-motion:reduce){.run-attempt,.tab{transition:none}}.skill-search{font:inherit;font-size:var(--text-sm);color:var(--fg);background:var(--surface);border:1px solid var(--border-strong);border-radius:var(--radius-sm);padding:var(--sp-2) var(--sp-3);width:220px}.skill-search:focus{outline:2px solid var(--accent-soft);outline-offset:1px}.skill-card{flex-direction:column;display:flex}.skill-desc{color:var(--fg-muted);font-size:var(--text-sm);margin:0 0 var(--sp-3);flex:1}.skill-source{font-size:var(--text-xs);color:var(--fg-subtle)}.wf-stage-card{margin-top:var(--sp-4)}.wf-rate{font-size:var(--text-sm);color:var(--fg);align-items:baseline;gap:var(--sp-2);display:flex}.wf-rate-sub{font-size:var(--text-xs);color:var(--fg-subtle)}.wf-bar{border-radius:var(--radius-pill);background:var(--border);height:5px;margin-top:var(--sp-2);width:140px;overflow:hidden}.wf-bar-fill{border-radius:var(--radius-pill);height:100%;transition:width var(--transition)}.wf-bar-ok{background:var(--ok)}.wf-bar-warn{background:var(--warn)}.wf-bar-danger{background:var(--danger)}.wf-bar-info{background:var(--info)}.wf-form{gap:var(--sp-2);flex-direction:column;display:flex}.wf-form input,.wf-form select,.wf-form textarea{font:inherit;font-size:var(--text-sm);color:var(--fg);background:var(--surface);border:1px solid var(--border-strong);border-radius:var(--radius-sm);padding:var(--sp-2);width:100%}.wf-form textarea{resize:vertical}.wf-form input:focus,.wf-form select:focus,.wf-form textarea:focus{outline:2px solid var(--accent);outline-offset:-1px}.wf-form input::placeholder,.wf-form textarea::placeholder{color:var(--fg-subtle)}.channel-card{gap:var(--sp-1);flex-direction:column;display:flex}.channel-desc{color:var(--fg-muted);font-size:var(--text-sm);margin:0}.channel-detail{color:var(--fg-subtle);font-size:var(--text-xs);margin:0}.curator-card{gap:var(--sp-2);flex-direction:column;display:flex}.curator-health-message{color:var(--fg-muted);font-size:var(--text-sm);margin:0}.curator-meta{color:var(--fg-subtle);font-size:var(--text-xs);margin:0}.curator-actions{gap:var(--sp-2);flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.curator-action{border-top:1px solid var(--border);padding-top:var(--sp-2)}.curator-action-head{justify-content:space-between;gap:var(--sp-2);font-size:var(--text-sm);display:flex}.curator-action-type{color:var(--fg);font-weight:600}.curator-action-time{color:var(--fg-subtle);font-size:var(--text-xs)}.curator-action-detail{color:var(--fg-muted);font-size:var(--text-sm);margin:var(--sp-1) 0 0}.curator-action-reason{color:var(--fg-subtle);font-size:var(--text-xs);margin:var(--sp-1) 0 0}.cfg-page{max-width:70rem;margin:0 auto}.cfg-section{margin-bottom:var(--sp-4)}.cfg-subhead{font-size:var(--text-sm);color:var(--fg-muted);margin:var(--sp-5) 0 var(--sp-2);font-weight:600}.cfg-subhead:first-child{margin-top:0}.kv-list{column-gap:var(--sp-4);grid-template-columns:max-content minmax(0,1fr) auto;row-gap:0;display:grid}.kv{grid-template-columns:subgrid;align-items:center;row-gap:var(--sp-1);padding:var(--sp-2) 0;border-radius:var(--radius-sm);grid-column:1/-1;display:grid}@supports not (grid-template-columns:subgrid){.kv-list{flex-direction:column;width:auto;display:flex}.kv{column-gap:var(--sp-4);grid-template-columns:minmax(8rem,16rem) minmax(0,1fr) auto}}.kv+.kv{border-top:1px solid var(--border)}.kv:hover{background:var(--surface-hover)}.kv-label{font-size:var(--text-sm);color:var(--fg-muted)}.kv-value{min-width:0;font-size:var(--text-sm);color:var(--fg);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.kv-value.is-empty{color:var(--fg-subtle)}.kv-actions{align-items:center;gap:var(--sp-2);justify-self:end;display:flex}.kv-note{font-size:var(--text-xs);color:var(--fg-subtle);grid-column:2/-1}.kv-note.is-error{color:var(--danger)}.kv.is-locked .kv-value{color:var(--fg-muted)}.kv-btn{font:inherit;font-size:var(--text-xs);color:var(--fg-subtle);border:1px solid var(--border);border-radius:var(--radius-sm);padding:2px var(--sp-2);cursor:pointer;background:0 0;flex:none;transition:color .12s,border-color .12s,background .12s}.kv:hover .kv-btn,.kv:focus-within .kv-btn{color:var(--fg-muted);border-color:var(--border-strong)}.kv-btn:hover{color:var(--fg);border-color:var(--accent);background:var(--accent-soft)}.kv-btn:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.kv-flag{font-size:var(--text-xs);color:var(--warn);background:var(--warn-soft);border-radius:var(--radius-pill);padding:1px var(--sp-2);flex:none}.kv-input{font:inherit;font-size:var(--text-sm);color:var(--fg);background:var(--bg,var(--surface));border:1px solid var(--border-strong);border-radius:var(--radius-sm);padding:var(--sp-1) var(--sp-2);width:100%;min-width:0}.kv-input:focus{outline:2px solid var(--accent);outline-offset:-1px}.kv-save,.kv-cancel{font:inherit;font-size:var(--text-xs);border-radius:var(--radius-sm);padding:var(--sp-1) var(--sp-2);cursor:pointer;flex:none}.kv-save{background:var(--accent);border:1px solid var(--accent);color:var(--accent-fg);font-weight:500}.kv-save:disabled{opacity:.6;cursor:default}.kv-cancel{border:1px solid var(--border-strong);color:var(--fg-muted);background:0 0}.kv-cancel:hover{color:var(--fg)}.cfg-notice{border-left:3px solid var(--warn)}.cfg-notice p{font-size:var(--text-sm);color:var(--warn);margin:0}@media (width<=700px){.kv-list{flex-direction:column;width:auto;display:flex}.kv{column-gap:var(--sp-4);grid-template-columns:minmax(0,1fr) auto}.kv-label{grid-column:1}.kv-actions{grid-area:1/2}.kv-value,.kv-note{white-space:normal;overflow-wrap:anywhere;grid-column:1/-1}}.cfg-note{color:var(--fg-muted);font-size:var(--text-sm);margin:0}.cfg-actions{gap:var(--sp-2);margin-top:var(--sp-3);flex-wrap:wrap;display:flex}.cfg-request-row{align-items:center;gap:var(--sp-2);margin-bottom:var(--sp-3);flex-wrap:wrap;display:flex}.cfg-request-row select,.cfg-request-row input{min-width:0;padding:var(--sp-2) var(--sp-3);background:var(--surface-hover);color:var(--fg);border:1px solid var(--border);border-radius:var(--radius-sm);font:inherit;font-size:var(--text-sm);flex:0 22rem}.cfg-pending{justify-content:space-between;align-items:center;gap:var(--sp-3);padding:var(--sp-3) 0;border-top:1px solid var(--hairline);flex-wrap:wrap;display:flex}.cfg-pending .cfg-actions{margin-top:0}.log-filters{gap:var(--sp-2);flex-wrap:wrap;align-items:center;display:flex}.log-status{gap:var(--sp-3);align-items:center;display:flex}.log-meta{font-size:var(--text-xs);color:var(--fg-subtle);font-family:var(--font-mono)}.log-select,.log-search{background:var(--bg-raised);border:1px solid var(--border-strong);color:var(--fg);border-radius:var(--radius-sm);padding:var(--sp-2) var(--sp-3);font:inherit;font-size:var(--text-sm)}.log-search{min-width:220px}.log-select:focus,.log-search:focus{outline:2px solid var(--accent);outline-offset:-1px}.log-list{max-height:62vh;font-family:var(--font-mono);font-size:var(--text-xs);border-top:1px solid var(--border);overflow-y:auto}.log-loading{padding:var(--sp-5);color:var(--fg-muted);text-align:center}.log-row{gap:var(--sp-3);padding:var(--sp-2) var(--sp-1);border-bottom:1px solid var(--border);grid-template-columns:62px 52px 1fr;align-items:baseline;display:grid}.log-row:hover{background:var(--surface-hover)}.log-time{color:var(--fg-subtle)}.log-level{letter-spacing:.04em;font-size:10px;font-weight:600}.log-danger .log-level{color:var(--danger)}.log-warn .log-level{color:var(--warn)}.log-info .log-level{color:var(--info)}.log-idle .log-level{color:var(--idle)}.log-danger .log-msg{color:var(--fg)}.log-body{gap:var(--sp-2);flex-wrap:wrap;align-items:baseline;min-width:0;display:flex}.log-msg{color:var(--fg);word-break:break-word}.log-field{color:var(--fg-muted);background:var(--bg-raised);border-radius:var(--radius-sm);padding:0 var(--sp-2);white-space:nowrap;text-overflow:ellipsis;max-width:100%;overflow:hidden}.log-field-key{color:var(--fg-subtle)}.log-field-key:after{content:"=";opacity:.6}@media (width<=860px){.log-row{grid-template-columns:56px 1fr}.log-level{display:none}.log-search{flex:1;min-width:0}}.capture-row{cursor:pointer}.capture-row:hover{background:var(--bg-raised)}.capture-row:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.capture-detail-row td{padding:var(--sp-3) var(--sp-3) var(--sp-4);border-bottom:1px solid var(--border)}.capture-detail{gap:var(--sp-4);grid-template-columns:1fr 1fr;display:grid}.capture-detail-section{min-width:0}.capture-detail-title{font-size:var(--text-xs);text-transform:uppercase;letter-spacing:.05em;color:var(--fg-subtle);margin-bottom:var(--sp-2)}.capture-payload{background:var(--bg-raised);border:1px solid var(--border-strong);border-radius:var(--radius-sm);padding:var(--sp-3);font-family:var(--font-mono);font-size:var(--text-xs);white-space:pre-wrap;word-break:break-word;max-height:24rem;overflow:auto}.capture-empty{color:var(--fg-muted);font-size:var(--text-sm)}@media (width<=640px){.capture-detail{grid-template-columns:1fr}}.mapping-form,.mapping-fields,.mapping-payload{margin-bottom:var(--sp-4);padding:var(--sp-4)}.mapping-form-row{gap:var(--sp-1);margin-bottom:var(--sp-3);font-size:var(--text-sm);color:var(--fg-subtle);flex-direction:column;display:flex}.mapping-input,.mapping-select{padding:var(--sp-2);border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--bg-raised);color:var(--fg);font:inherit}.mapping-section-title{font-size:var(--text-xs);text-transform:uppercase;letter-spacing:.05em;color:var(--fg-subtle);margin-bottom:var(--sp-2)}.mapping-fields-table .mapping-input{width:100%}.mapping-empty-fields{color:var(--fg-muted);font-size:var(--text-sm);padding:var(--sp-3) 0}.mapping-error{color:var(--danger,#e5484d);font-size:var(--text-sm);margin-bottom:var(--sp-3)}.mapping-tree-list{padding-left:var(--sp-4);font-family:var(--font-mono);font-size:var(--text-xs);margin:0;list-style:none}.mapping-tree-item{padding:2px 0}.mapping-tree-key,.mapping-tree-value{cursor:pointer;border-radius:var(--radius-sm);padding:0 4px}.mapping-tree-key:hover,.mapping-tree-value:hover{background:var(--bg-raised);outline:1px solid var(--accent)}.mapping-tree-value{color:var(--fg-subtle);margin-left:var(--sp-1)}.binding-form{margin-bottom:var(--sp-4);padding:var(--sp-4)}.binding-form-row{gap:var(--sp-1);margin-bottom:var(--sp-3);font-size:var(--text-sm);color:var(--fg-subtle);flex-direction:column;display:flex}.binding-input,.binding-select{padding:var(--sp-2);border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--bg-raised);color:var(--fg);font:inherit}.binding-error{color:var(--danger,#e5484d);font-size:var(--text-sm);margin-bottom:var(--sp-3)}.chat-panel-content{flex:auto;grid-template-rows:auto auto minmax(0,1fr);min-height:0;display:grid;overflow:hidden}.chat-bar{align-items:center;gap:var(--sp-2);padding:var(--sp-2) var(--sp-3);border-bottom:1px solid var(--border);display:flex}.chat-session-switch{flex:auto;min-width:0}.chat-session-switch select{background:var(--surface-hover);width:100%;color:var(--fg);border:1px solid var(--border);border-radius:var(--radius-sm);padding:var(--sp-2);font:inherit;font-size:var(--text-sm)}.chat-new,.chat-settings>summary{flex:none}.chat-settings{flex:none;position:relative}.chat-settings>summary{border-radius:var(--radius-sm);width:32px;height:32px;color:var(--fg-muted);cursor:pointer;place-items:center;list-style:none;display:grid}.chat-settings>summary::-webkit-details-marker{display:none}.chat-settings>summary:hover{background:var(--surface-hover);color:var(--fg)}.chat-settings-body{top:calc(100% + var(--sp-2));z-index:2;gap:var(--sp-3);width:15rem;padding:var(--sp-3);background:var(--bg-raised);border:1px solid var(--border);border-radius:var(--radius-md);box-shadow:var(--shadow-md);display:grid;position:absolute;right:0}.chat-settings-body label{gap:var(--sp-1);font-size:var(--text-xs);color:var(--fg-muted);display:grid}.chat-settings-body .chat-select{width:100%}.chat-layout{min-height:0;display:grid;overflow:hidden}.chat-workspace{grid-template-rows:auto minmax(0,1fr) auto;min-width:0;display:grid;overflow:hidden}.chat-workspace-head{align-items:center;gap:var(--sp-2);padding:var(--sp-2) var(--sp-3);border-bottom:1px solid var(--border);font-size:var(--text-xs);display:flex}.chat-update-panel{border:1px solid var(--border);color:var(--fg-muted);border-radius:.75rem;flex:none;justify-content:space-between;align-items:center;gap:1rem;margin:0 0 .75rem;padding:.7rem .9rem;font-size:.8rem;display:flex}.chat-update-panel>div:first-child{gap:.2rem;display:grid}.chat-update-panel strong{color:var(--fg)}.chat-update-actions{flex-shrink:0;gap:.45rem;display:flex}.chat-dangerous-panel{border:1px solid color-mix(in srgb, var(--danger) 45%, var(--border));border-radius:.75rem;flex:none;margin:0 0 .75rem;padding:.8rem .9rem}.chat-dangerous-head,.chat-dangerous-controls,.chat-dangerous-pending{justify-content:space-between;align-items:center;gap:.6rem;display:flex}.chat-dangerous-head{margin-bottom:.7rem}.chat-dangerous-controls{flex-wrap:wrap;align-items:stretch}.chat-dangerous-controls>div{flex:18rem;gap:.45rem;display:flex}.chat-dangerous-input{background:var(--surface-hover);min-width:0;color:var(--fg);border:1px solid var(--border-strong);font:inherit;border-radius:.5rem;flex:1;padding:.5rem .65rem}.chat-dangerous-pending-list{gap:.45rem;margin-top:.75rem;display:grid}.chat-dangerous-pending{border-top:1px solid var(--border);color:var(--fg-muted);padding-top:.55rem;font-size:.8rem}.chat-session-list{gap:.35rem;margin-top:1rem;display:grid}.chat-session{text-align:left;color:var(--fg-muted);cursor:pointer;background:0 0;border:1px solid #0000;border-radius:.65rem;gap:.25rem;padding:.7rem;display:grid}.chat-session:hover,.chat-session.active{background:var(--surface-hover);color:var(--fg);border-color:var(--border-strong)}.chat-session span{font-size:.72rem}.chat-session-tools{color:var(--fg-muted);margin-left:.6rem;font-size:.78rem;position:relative}.chat-session-tools summary{cursor:pointer}.chat-session-tool-list{z-index:2;background:var(--surface);border:1px solid var(--border-strong);border-radius:.65rem;flex-wrap:wrap;gap:.35rem;width:min(22rem,72vw);padding:.55rem;display:flex;position:absolute;top:calc(100% + .45rem);right:0;box-shadow:0 .7rem 2rem #0000004d}.chat-select{background:var(--surface-hover);color:var(--fg);border:1px solid var(--border-strong);border-radius:.5rem;padding:.5rem .65rem}.chat-transcript{padding:var(--sp-4);align-content:start;gap:var(--sp-4);display:grid;overflow:auto}.chat-empty-state{width:100%;padding:var(--sp-5) 0;text-align:center;place-self:center}.chat-empty-mark{width:2.2rem;height:2.2rem;margin:0 auto var(--sp-3);border:1px solid var(--border-strong);color:var(--accent);border-radius:.8rem;place-items:center;font-weight:700;display:grid}.chat-empty-state h2{font-size:var(--text-lg);letter-spacing:-.02em;margin:0}.chat-empty-state p{margin:var(--sp-2) 0 var(--sp-4);color:var(--fg-muted);font-size:var(--text-sm)}.chat-prompt-grid{gap:var(--sp-2);display:grid}.chat-prompt{padding:var(--sp-2) var(--sp-3);font-size:var(--text-sm);text-align:left;border:1px solid var(--border);background:var(--surface-hover);color:var(--fg-muted);cursor:pointer;border-radius:999px}.chat-prompt:hover{color:var(--fg);border-color:var(--border-strong)}.chat-bubble-row{display:flex}.chat-bubble-row.user{justify-content:flex-end}.chat-bubble{background:var(--surface-hover);border-radius:.85rem;max-width:min(78ch,86%);padding:.8rem 1rem;line-height:1.5}.chat-bubble-row.user .chat-bubble{background:color-mix(in srgb, var(--accent) 18%, var(--surface))}.chat-bubble-meta{color:var(--fg-muted);margin-bottom:.3rem;font-size:.7rem}.chat-bubble-text{white-space:pre-wrap;overflow-wrap:anywhere}.chat-bubble-text p{margin:0 0 .7rem}.chat-bubble-text p:last-child{margin-bottom:0}.chat-bubble-text h1,.chat-bubble-text h2,.chat-bubble-text h3{letter-spacing:-.02em;margin:.2rem 0 .6rem;line-height:1.2}.chat-bubble-text h1{font-size:1.25rem}.chat-bubble-text h2{font-size:1.1rem}.chat-bubble-text h3{font-size:1rem}.chat-bubble-text ul,.chat-bubble-text ol{margin:.25rem 0 .75rem;padding-left:1.35rem}.chat-bubble-text blockquote{border-left:3px solid var(--accent);color:var(--fg-muted);margin:.5rem 0;padding:.35rem .75rem}.chat-bubble-text code{background:color-mix(in srgb, var(--fg) 10%, transparent);border-radius:.3rem;padding:.1rem .3rem;font-size:.9em}.chat-bubble-text pre{border:1px solid var(--border);background:color-mix(in srgb, var(--surface) 75%, #000);border-radius:.5rem;margin:.6rem 0;padding:.75rem;overflow:auto}.chat-bubble-text pre code{background:0 0;padding:0}.chat-bubble-text a{color:var(--accent)}.chat-media-img{border:1px solid var(--border);object-fit:contain;background:var(--surface);cursor:pointer;border-radius:.5rem;max-width:100%;max-height:24rem;margin:.4rem 0;display:block}.chat-bubble-text table{border-collapse:collapse;width:100%;margin:.7rem 0;font-size:.92em}.chat-bubble-text th,.chat-bubble-text td{text-align:left;border:1px solid var(--border);padding:.45rem .6rem}.chat-bubble-text th{color:var(--fg);background:color-mix(in srgb, var(--surface) 70%, transparent);font-weight:700}.chat-tools{gap:.2rem;margin-bottom:.5rem;font-size:.78rem;display:grid}.chat-tools:empty{display:none}.chat-tool{color:var(--fg-muted);overflow-wrap:anywhere;align-items:baseline;gap:.4rem;display:flex}.chat-tool-name{color:var(--fg);font-weight:600}.chat-tool.failed .chat-tool-summary{color:var(--danger)}.chat-nav-chip{border:1px solid color-mix(in srgb, var(--accent) 45%, var(--border));background:var(--accent-soft);color:var(--accent);cursor:pointer;transition:background var(--transition), border-color var(--transition), color var(--transition);border-radius:999px;align-items:center;gap:.4rem;padding:.4rem .7rem;font-size:.82rem;font-weight:600;display:inline-flex}.chat-nav-chip:hover{border-color:var(--accent);background:color-mix(in srgb, var(--accent) 16%, var(--surface))}.chat-nav-chip:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.chat-nav-chip-icon{font-size:.8rem;line-height:1}.chat-compose{padding:var(--sp-3);border-top:1px solid var(--border)}.chat-composer-shell{align-items:flex-end;gap:var(--sp-2);background:var(--surface-hover);border:1px solid var(--border-strong);border-radius:.9rem;padding:.7rem .8rem;display:flex;position:relative}.chat-composer{resize:none;box-sizing:border-box;min-width:0;min-height:2.6rem;color:var(--fg);font:inherit;background:0 0;border:0;flex:auto;padding:.25rem 0}.chat-composer:focus{outline:0}.chat-command-menu{z-index:3;background:var(--surface);border:1px solid var(--border-strong);border-radius:.7rem;gap:.15rem;max-height:18rem;padding:.35rem;display:grid;position:absolute;bottom:calc(100% - .25rem);left:.8rem;right:.8rem;overflow:auto;box-shadow:0 .7rem 2rem #0000004d}.chat-command-menu[hidden]{display:none}.chat-command-option{text-align:left;color:var(--fg-muted);cursor:pointer;background:0 0;border:1px solid #0000;border-radius:.45rem;grid-template-columns:minmax(8rem,14rem) 1fr;align-items:center;gap:.65rem;padding:.5rem .6rem;display:grid}.chat-command-option:hover,.chat-command-option[aria-selected=true]{color:var(--fg);background:var(--surface-hover);border-color:var(--border)}.chat-command-option code{color:var(--fg)}.chat-compose-actions{align-items:center;gap:var(--sp-2);flex:none;display:flex}.chat-hint,.chat-empty{color:var(--fg-muted);font-size:.78rem}.chat-command-help{color:var(--fg-muted);margin-right:auto;font-size:.78rem}.chat-command-help summary{cursor:pointer}.chat-command-list{min-width:min(34rem,70vw);max-width:40rem;padding-top:.4rem;line-height:1.45}.chat-command-item{grid-template-columns:minmax(10rem,16rem) 1fr;gap:.7rem;padding:.3rem 0;display:grid}.chat-command-item code{color:var(--fg)}@media (width<=520px){.chat-update-panel{flex-direction:column;align-items:flex-start}} +@import "https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&display=swap";@layer components;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){:root,:host{--shimmer-angle:20deg}*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0;--scroll-fade-t:0;--scroll-fade-b:0;--scroll-fade-s:0;--scroll-fade-e:0;--scroll-fade-mask:initial;--shimmer-image:initial;--shimmer-text-fill:initial}}}@layer theme{:root,:host{--font-sans:"Geist Variable", sans-serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--font-weight-medium:500;--font-weight-semibold:600;--tracking-tight:-.025em;--tracking-widest:.1em;--radius-md:calc(var(--radius) - 2px);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:"Geist Variable", sans-serif;--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){*{outline-color:color-mix(in oklab, var(--ring) 50%, transparent)}}body{background-color:var(--background);color:var(--foreground);font-family:Geist Variable,sans-serif}}@layer utilities{.pointer-events-none{pointer-events:none}.absolute{position:absolute}.relative{position:relative}.right-2{right:calc(var(--spacing) * 2)}.z-50{z-index:50}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.-mx-1{margin-inline:calc(var(--spacing) * -1)}.my-1{margin-block:var(--spacing)}.mt-2{margin-top:calc(var(--spacing) * 2)}.ml-auto{margin-left:auto}.flex{display:flex}.inline-flex{display:inline-flex}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-px{height:1px}.max-h-\(--reka-dropdown-menu-content-available-height\){max-height:var(--reka-dropdown-menu-content-available-height)}.w-\(--reka-dropdown-menu-trigger-width\){width:var(--reka-dropdown-menu-trigger-width)}.max-w-\(--reka-dropdown-menu-content-available-width\){max-width:var(--reka-dropdown-menu-content-available-width)}.min-w-32{min-width:calc(var(--spacing) * 32)}.min-w-\[96px\]{min-width:96px}.shrink-0{flex-shrink:0}.origin-\(--reka-dropdown-menu-content-transform-origin\){transform-origin:var(--reka-dropdown-menu-content-transform-origin)}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.cursor-default{cursor:default}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.overflow-hidden{overflow:hidden}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded-\[min\(var\(--radius-md\)\,10px\)\]{border-radius:min(var(--radius-md), 10px)}.rounded-\[min\(var\(--radius-md\)\,12px\)\]{border-radius:min(var(--radius-md), 12px)}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.border{border-style:var(--tw-border-style);border-width:1px}.border-border{border-color:var(--border)}.border-transparent{border-color:#0000}.bg-background{background-color:var(--background)}.bg-border{background-color:var(--border)}.bg-destructive\/10{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.bg-destructive\/10{background-color:color-mix(in oklab, var(--destructive) 10%, transparent)}}.bg-popover{background-color:var(--popover)}.bg-primary{background-color:var(--primary)}.bg-secondary{background-color:var(--secondary)}.bg-clip-padding{background-clip:padding-box}.p-1{padding:var(--spacing)}.p-8{padding:calc(var(--spacing) * 8)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.py-1{padding-block:var(--spacing)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pl-1\.5{padding-left:calc(var(--spacing) * 1.5)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[0\.8rem\]{font-size:.8rem}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.whitespace-nowrap{white-space:nowrap}.text-destructive{color:var(--destructive)}.text-muted-foreground{color:var(--muted-foreground)}.text-popover-foreground{color:var(--popover-foreground)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.text-secondary-foreground{color:var(--secondary-foreground)}.underline-offset-4{text-underline-offset:4px}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-foreground\/10{--tw-ring-color:var(--foreground)}@supports (color:color-mix(in lab, red, red)){.ring-foreground\/10{--tw-ring-color:color-mix(in oklab, var(--foreground) 10%, transparent)}}.outline-hidden{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-100{--tw-duration:.1s;transition-duration:.1s}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.running{animation-play-state:running}.group-focus\/dropdown-menu-item\:text-accent-foreground:is(:where(.group\/dropdown-menu-item):focus *){color:var(--accent-foreground)}@media (hover:hover){.hover\:bg-destructive\/20:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-destructive\/20:hover{background-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.hover\:bg-muted:hover{background-color:var(--muted)}.hover\:bg-secondary\/80:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-secondary\/80:hover{background-color:color-mix(in oklab, var(--secondary) 80%, transparent)}}.hover\:text-foreground:hover{color:var(--foreground)}.hover\:underline:hover{text-decoration-line:underline}}.focus\:bg-accent:focus{background-color:var(--accent)}.focus\:text-accent-foreground:focus,:is(.focus\:\*\*\:text-accent-foreground:focus *),:is(.not-data-\[variant\=destructive\]\:focus\:\*\*\:text-accent-foreground:not([data-variant=destructive]):focus *){color:var(--accent-foreground)}.focus-visible\:border-destructive\/40:focus-visible{border-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.focus-visible\:border-destructive\/40:focus-visible{border-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.focus-visible\:border-ring:focus-visible{border-color:var(--ring)}.focus-visible\:ring-3:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:color-mix(in oklab, var(--ring) 50%, transparent)}}.active\:not-aria-\[haspopup\]\:translate-y-px:active:not([aria-haspopup]){--tw-translate-y:1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:opacity-50:disabled{opacity:.5}:where([data-slot=button-group]) .in-data-\[slot\=button-group\]\:rounded-lg{border-radius:var(--radius)}.has-data-\[icon\=inline-end\]\:pr-1\.5:has([data-icon=inline-end]){padding-right:calc(var(--spacing) * 1.5)}.has-data-\[icon\=inline-end\]\:pr-2:has([data-icon=inline-end]){padding-right:calc(var(--spacing) * 2)}.has-data-\[icon\=inline-start\]\:pl-1\.5:has([data-icon=inline-start]){padding-left:calc(var(--spacing) * 1.5)}.has-data-\[icon\=inline-start\]\:pl-2:has([data-icon=inline-start]){padding-left:calc(var(--spacing) * 2)}.aria-expanded\:bg-muted[aria-expanded=true]{background-color:var(--muted)}.aria-expanded\:bg-secondary[aria-expanded=true]{background-color:var(--secondary)}.aria-expanded\:text-foreground[aria-expanded=true]{color:var(--foreground)}.aria-expanded\:text-secondary-foreground[aria-expanded=true]{color:var(--secondary-foreground)}.aria-invalid\:border-destructive[aria-invalid=true]{border-color:var(--destructive)}.aria-invalid\:ring-3[aria-invalid=true]{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.data-inset\:pl-7[data-inset]{padding-left:calc(var(--spacing) * 7)}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:calc(2*var(--spacing)*-1)}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:calc(2*var(--spacing))}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:calc(2*var(--spacing))}.data-\[state\=closed\]\:overflow-hidden[data-state=closed]{overflow:hidden}.data-\[variant\=destructive\]\:text-destructive[data-variant=destructive]{color:var(--destructive)}.data-\[variant\=destructive\]\:focus\:bg-destructive\/10[data-variant=destructive]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.data-\[variant\=destructive\]\:focus\:bg-destructive\/10[data-variant=destructive]:focus{background-color:color-mix(in oklab, var(--destructive) 10%, transparent)}}.data-\[variant\=destructive\]\:focus\:text-destructive[data-variant=destructive]:focus{color:var(--destructive)}.dark\:border-input:is(.dark *){border-color:var(--input)}.dark\:bg-destructive\/20:is(.dark *){background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:bg-destructive\/20:is(.dark *){background-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.dark\:bg-input\/30:is(.dark *){background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.dark\:bg-input\/30:is(.dark *){background-color:color-mix(in oklab, var(--input) 30%, transparent)}}@media (hover:hover){.dark\:hover\:bg-destructive\/30:is(.dark *):hover{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-destructive\/30:is(.dark *):hover{background-color:color-mix(in oklab, var(--destructive) 30%, transparent)}}.dark\:hover\:bg-input\/50:is(.dark *):hover{background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-input\/50:is(.dark *):hover{background-color:color-mix(in oklab, var(--input) 50%, transparent)}}.dark\:hover\:bg-muted\/50:is(.dark *):hover{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-muted\/50:is(.dark *):hover{background-color:color-mix(in oklab, var(--muted) 50%, transparent)}}}.dark\:focus-visible\:ring-destructive\/40:is(.dark *):focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:focus-visible\:ring-destructive\/40:is(.dark *):focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.dark\:aria-invalid\:border-destructive\/50:is(.dark *)[aria-invalid=true]{border-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:aria-invalid\:border-destructive\/50:is(.dark *)[aria-invalid=true]{border-color:color-mix(in oklab, var(--destructive) 50%, transparent)}}.dark\:aria-invalid\:ring-destructive\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:aria-invalid\:ring-destructive\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/20:is(.dark *)[data-variant=destructive]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/20:is(.dark *)[data-variant=destructive]:focus{background-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.data-open\:animate-in:where([data-state=open]),.data-open\:animate-in:where([data-open]:not([data-open=false])){animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-open\:bg-accent:where([data-state=open]),.data-open\:bg-accent:where([data-open]:not([data-open=false])){background-color:var(--accent)}.data-open\:text-accent-foreground:where([data-state=open]),.data-open\:text-accent-foreground:where([data-open]:not([data-open=false])){color:var(--accent-foreground)}.data-open\:fade-in-0:where([data-state=open]),.data-open\:fade-in-0:where([data-open]:not([data-open=false])){--tw-enter-opacity:0}.data-open\:zoom-in-95:where([data-state=open]),.data-open\:zoom-in-95:where([data-open]:not([data-open=false])){--tw-enter-scale:.95}.data-closed\:animate-out:where([data-state=closed]),.data-closed\:animate-out:where([data-closed]:not([data-closed=false])){animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-closed\:fade-out-0:where([data-state=closed]),.data-closed\:fade-out-0:where([data-closed]:not([data-closed=false])){--tw-exit-opacity:0}.data-closed\:zoom-out-95:where([data-state=closed]),.data-closed\:zoom-out-95:where([data-closed]:not([data-closed=false])){--tw-exit-scale:.95}.data-disabled\:pointer-events-none:where([data-disabled=true]),.data-disabled\:pointer-events-none:where([data-disabled]:not([data-disabled=false])){pointer-events:none}.data-disabled\:opacity-50:where([data-disabled=true]),.data-disabled\:opacity-50:where([data-disabled]:not([data-disabled=false])){opacity:.5}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_svg\:not\(\[class\*\=size-\]\)\]\:size-3 svg:not([class*=size-]){width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.\[\&_svg\:not\(\[class\*\=size-\]\)\]\:size-3\.5 svg:not([class*=size-]){width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.\[\&_svg\:not\(\[class\*\=size-\]\)\]\:size-4 svg:not([class*=size-]){width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}@media (hover:hover){.\[a\]\:hover\:bg-primary\/80:is(a):hover{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.\[a\]\:hover\:bg-primary\/80:is(a):hover{background-color:color-mix(in oklab, var(--primary) 80%, transparent)}}}:is(.data-\[variant\=destructive\]\:\*\:\[svg\]\:text-destructive[data-variant=destructive]>*):is(svg){color:var(--destructive)}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}@property --scroll-fade-t{syntax:"";inherits:false;initial-value:0}@property --scroll-fade-b{syntax:"";inherits:false;initial-value:0}@property --scroll-fade-s{syntax:"";inherits:false;initial-value:0}@property --scroll-fade-e{syntax:"";inherits:false;initial-value:0}@property --scroll-fade-mask{syntax:"*";inherits:false}@property --shimmer-angle{syntax:"";inherits:true;initial-value:20deg}@property --shimmer-image{syntax:"*";inherits:false}@property --shimmer-text-fill{syntax:"*";inherits:false}@media (prefers-reduced-motion:reduce){.shimmer{-webkit-text-fill-color:currentColor;background-image:none;animation:none}}:root{--background:oklch(100% 0 0);--foreground:oklch(14.5% 0 0);--card:oklch(100% 0 0);--card-foreground:oklch(14.5% 0 0);--popover:oklch(100% 0 0);--popover-foreground:oklch(14.5% 0 0);--primary:oklch(20.5% 0 0);--primary-foreground:oklch(98.5% 0 0);--secondary:oklch(97% 0 0);--secondary-foreground:oklch(20.5% 0 0);--muted:oklch(97% 0 0);--muted-foreground:oklch(55.6% 0 0);--accent:oklch(97% 0 0);--accent-foreground:oklch(20.5% 0 0);--destructive:oklch(57.7% .245 27.325);--border:oklch(92.2% 0 0);--input:oklch(92.2% 0 0);--ring:oklch(70.8% 0 0);--chart-1:oklch(87% 0 0);--chart-2:oklch(55.6% 0 0);--chart-3:oklch(43.9% 0 0);--chart-4:oklch(37.1% 0 0);--chart-5:oklch(26.9% 0 0);--radius:.625rem;--sidebar:oklch(98.5% 0 0);--sidebar-foreground:oklch(14.5% 0 0);--sidebar-primary:oklch(20.5% 0 0);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(97% 0 0);--sidebar-accent-foreground:oklch(20.5% 0 0);--sidebar-border:oklch(92.2% 0 0);--sidebar-ring:oklch(70.8% 0 0)}.dark{--background:oklch(14.5% 0 0);--foreground:oklch(98.5% 0 0);--card:oklch(20.5% 0 0);--card-foreground:oklch(98.5% 0 0);--popover:oklch(20.5% 0 0);--popover-foreground:oklch(98.5% 0 0);--primary:oklch(92.2% 0 0);--primary-foreground:oklch(20.5% 0 0);--secondary:oklch(26.9% 0 0);--secondary-foreground:oklch(98.5% 0 0);--muted:oklch(26.9% 0 0);--muted-foreground:oklch(70.8% 0 0);--accent:oklch(26.9% 0 0);--accent-foreground:oklch(98.5% 0 0);--destructive:oklch(70.4% .191 22.216);--border:oklch(100% 0 0/.1);--input:oklch(100% 0 0/.15);--ring:oklch(55.6% 0 0);--chart-1:oklch(87% 0 0);--chart-2:oklch(55.6% 0 0);--chart-3:oklch(43.9% 0 0);--chart-4:oklch(37.1% 0 0);--chart-5:oklch(26.9% 0 0);--sidebar:oklch(20.5% 0 0);--sidebar-foreground:oklch(98.5% 0 0);--sidebar-primary:oklch(48.8% .243 264.376);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(26.9% 0 0);--sidebar-accent-foreground:oklch(98.5% 0 0);--sidebar-border:oklch(100% 0 0/.1);--sidebar-ring:oklch(55.6% 0 0)}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0));filter:blur(var(--tw-enter-blur,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0));filter:blur(var(--tw-exit-blur,0))}} diff --git a/ui/dist/assets/index.js b/ui/dist/assets/index.js index 2044ca1cc..45ae8e508 100644 --- a/ui/dist/assets/index.js +++ b/ui/dist/assets/index.js @@ -1,10 +1 @@ -(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var e,t,n,r,i,a,o,s,c,l,u,d,f,p,m={},h=[],g=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,_=Array.isArray;function v(e,t){for(var n in t)e[n]=t[n];return e}function y(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function b(t,n,r){var i,a,o,s={};for(o in n)o==`key`?i=n[o]:o==`ref`?a=n[o]:s[o]=n[o];if(arguments.length>2&&(s.children=arguments.length>3?e.call(arguments,2):r),typeof t==`function`&&t.defaultProps!=null)for(o in t.defaultProps)s[o]===void 0&&(s[o]=t.defaultProps[o]);return x(t,s,i,a,null)}function x(e,r,i,a,o){var s={type:e,props:r,key:i,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++n,__i:-1,__u:0};return o==null&&t.vnode!=null&&t.vnode(s),s}function S(e){return e.children}function C(e,t){this.props=e,this.context=t}function w(e,t){if(t==null)return e.__?w(e.__,e.__i+1):null;for(var n;tt&&r.sort(o),e=r.shift(),t=r.length,T(e)}finally{r.length=O.__r=0}}function k(e,t,n,r,i,a,o,s,c,l,u){var d,f,p,g,_,v,y=r&&r.__k||h,b=t.length;for(c=A(n,t,y,c,b),d=0;d0?o=e.__k[a]=x(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):e.__k[a]=o,c=a+f,o.__=e,o.__b=e.__b+1,s=null,(l=o.__i=M(o,n,c,d))!=-1&&(d--,(s=n[l])&&(s.__u|=2)),s==null||s.__v==null?(l==-1&&(i>u?f--:ic?f--:f++,o.__u|=4))):e.__k[a]=null;if(d)for(a=0;a+!!u){for(i=n-1,a=n+1;i>=0||a=0?i--:a++])!=null&&!(2&l.__u)&&s==l.key&&c==l.type)return o}return-1}function N(e,t,n){t[0]==`-`?e.setProperty(t,n??``):e[t]=n==null?``:typeof n!=`number`||g.test(t)?n:n+`px`}function P(e,t,n,r,i){var a,o;n:if(t==`style`)if(typeof n==`string`)e.style.cssText=n;else{if(typeof r==`string`&&(e.style.cssText=r=``),r)for(t in r)n&&t in n||N(e.style,t,``);if(n)for(t in n)r&&n[t]==r[t]||N(e.style,t,n[t])}else if(t[0]==`o`&&t[1]==`n`)a=t!=(t=t.replace(u,`$1`)),o=t.toLowerCase(),t=o in e||t==`onFocusOut`||t==`onFocusIn`?o.slice(2):t.slice(2),e.l||={},e.l[t+a]=n,n?r?n[l]=r[l]:(n[l]=d,e.addEventListener(t,a?p:f,a)):e.removeEventListener(t,a?p:f,a);else{if(i==`http://www.w3.org/2000/svg`)t=t.replace(/xlink(H|:h)/,`h`).replace(/sName$/,`s`);else if(t!=`width`&&t!=`height`&&t!=`href`&&t!=`list`&&t!=`form`&&t!=`tabIndex`&&t!=`download`&&t!=`rowSpan`&&t!=`colSpan`&&t!=`role`&&t!=`popover`&&t in e)try{e[t]=n??``;break n}catch{}typeof n==`function`||(n==null||!1===n&&t[4]!=`-`?e.removeAttribute(t):e.setAttribute(t,t==`popover`&&n==1?``:n))}}function F(e){return function(n){if(this.l){var r=this.l[n.type+e];if(n[c]==null)n[c]=d++;else if(n[c]0?e:_(e)?e.map(R):e.constructor===void 0?v({},e):null}function te(n,r,i,a,o,s,c,l,u){var d,f,p,h,g,v,b,x=i.props||m,S=r.props,C=r.type;if(C==`svg`?o=`http://www.w3.org/2000/svg`:C==`math`?o=`http://www.w3.org/1998/Math/MathML`:o||=`http://www.w3.org/1999/xhtml`,s!=null){for(d=0;d=n.__.length&&n.__.push({}),n.__[e]}function H(e){return ce=1,_e(Ee,e)}function _e(e,t,n){var r=ge(z++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Ee(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=B,!B.__f)){var i=function(e,t,n){if(!r.__c.__H)return!0;var i=!1,o=r.__c.props!==e;if(r.__c.__H.__.some(function(e){if(e.__N){i=!0;var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}}),a){var s=a.call(this,e,t,n);return i?s||o:s}return!i||o};B.__f=!0;var a=B.shouldComponentUpdate,o=B.componentWillUpdate;B.componentWillUpdate=function(e,t,n){if(this.__e){var r=a;a=void 0,i(e,t,n),a=r}o&&o.call(this,e,t,n)},B.shouldComponentUpdate=i}return r.__N||r.__}function U(e,t){var n=ge(z++,3);!V.__s&&Te(n.__H,t)&&(n.__=e,n.u=t,B.__H.__h.push(n))}function W(e){return ce=5,ve(function(){return{current:e}},[])}function ve(e,t){var n=ge(z++,7);return Te(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function ye(e,t){return ce=8,ve(function(){return e},t)}function be(){for(var e;e=le.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(Ce),t.__h.some(we),t.__h=[]}catch(n){t.__h=[],V.__e(n,e.__v)}}}V.__b=function(e){B=null,ue&&ue(e)},V.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),he&&he(e,t)},V.__r=function(e){de&&de(e),z=0;var t=(B=e.__c).__H;t&&(oe===B?(t.__h=[],B.__h=[],t.__.some(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.some(Ce),t.__h.some(we),t.__h=[],z=0)),oe=B},V.diffed=function(e){fe&&fe(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(le.push(t)!==1&&se===V.requestAnimationFrame||((se=V.requestAnimationFrame)||Se)(be)),t.__H.__.some(function(e){e.u&&=(e.__H=e.u,void 0)})),oe=B=null},V.__c=function(e,t){t.some(function(e){try{e.__h.some(Ce),e.__h=e.__h.filter(function(e){return!e.__||we(e)})}catch(n){t.some(function(e){e.__h&&=[]}),t=[],V.__e(n,e.__v)}}),pe&&pe(e,t)},V.unmount=function(e){me&&me(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.some(function(e){try{Ce(e)}catch(e){t=e}}),n.__H=void 0,t&&V.__e(t,n.__v))};var xe=typeof requestAnimationFrame==`function`;function Se(e){var t,n=function(){clearTimeout(r),xe&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);xe&&(t=requestAnimationFrame(n))}function Ce(e){var t=B,n=e.__c;typeof n==`function`&&(e.__c=void 0,n()),B=t}function we(e){var t=B;e.__c=e.__(),B=t}function Te(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function Ee(e,t){return typeof t==`function`?t(e):t}function De(e=globalThis.crypto){if(typeof e?.randomUUID==`function`)return e.randomUUID();let t=new Uint8Array(16);if(typeof e?.getRandomValues==`function`)e.getRandomValues(t);else for(let e=0;ee.toString(16).padStart(2,`0`));return`${n.slice(0,4).join(``)}-${n.slice(4,6).join(``)}-${n.slice(6,8).join(``)}-${n.slice(8,10).join(``)}-${n.slice(10).join(``)}`}function Oe(e){return e===0?`reconnecting`:e===1?`live`:`unavailable`}var ke=15e3;function Ae(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e||{}))r!==``&&r!=null&&t.set(n,r);let n=t.toString();return n?`?${n}`:``}async function je(e){try{let t=(await e.text()).trim();if(t)return t.split(` -`)[0].slice(0,200)}catch{}return`${e.status} ${e.statusText}`}var Me=class extends Error{constructor(e,t){super(e),this.status=t}};function Ne(e){let t=e instanceof Me?e.status:void 0,n=e?.message||`Action failed`;return t===401?{kind:`session-expired`,message:n}:t>=400&&t<500?{kind:`refused`,message:n}:{kind:`broken`,message:n}}async function Pe(e,t){let n=await fetch(e,t);if(!n.ok)throw new Me(await je(n),n.status);return n}async function G(e,{method:t=`GET`,body:n,timeoutMs:r=ke,parse:i=!0}={}){let a={Accept:`application/json`},o={method:t,headers:a,signal:AbortSignal.timeout(r)};t!==`GET`&&(a[`Content-Type`]=`application/json`,a[`X-Archie-CSRF`]=`1`),n!==void 0&&(o.body=JSON.stringify(n));let s=await Pe(e,o);return i?s.json():void 0}var K={summary:()=>G(`/api/summary`),tasks:()=>G(`/api/tasks`),taskMeta:()=>G(`/api/task-meta`),task:e=>G(`/api/tasks/${e}`),taskAttempts:e=>G(`/api/tasks/${e}/attempts`),taskChanges:(e,t)=>G(`/api/tasks/${e}/changes`+Ae(t)),taskDebug:(e,t)=>G(`/api/tasks/${e}/debug`+Ae(t)),taskAction:(e,t)=>G(`/api/tasks/${e}/action`,{method:`POST`,body:{action:t}}),setup:()=>G(`/api/setup`),capabilities:()=>G(`/api/capabilities`),workflows:()=>G(`/api/workflows`),workRequest:e=>G(`/api/work-requests`,{method:`POST`,body:e}),skills:()=>G(`/api/skills`),channels:()=>G(`/api/channels`),curators:()=>G(`/api/curators`),channelReload:e=>G(`/api/channels/${encodeURIComponent(e)}/reload`,{method:`POST`,body:{}}),config:()=>G(`/api/config`),version:()=>G(`/api/version`),configUpdate:e=>G(`/api/config`,{method:`PATCH`,body:{updates:e}}),configRepoUpdate:(e,t,n,r)=>G(`/api/config/repos/${encodeURIComponent(e)}/${encodeURIComponent(t)}`,{method:`PATCH`,body:{field:n,value:r}}),configReset:e=>G(`/api/config/reset`,{method:`POST`,body:{key:e}}),logs:e=>G(`/api/logs`+Ae(e)),taskLogs:(e,t)=>G(`/api/tasks/${e}/logs`+Ae(t)),taskLogDownloadURL:(e,t)=>`/api/tasks/${e}/logs/download`+(t==null?``:`?attempt=${t}`),captures:e=>G(`/api/captures`+Ae({limit:e})),mappings:()=>G(`/api/mappings`),mappingCreate:e=>G(`/api/mappings`,{method:`POST`,body:e}),mappingUpdate:(e,t)=>G(`/api/mappings/${e}`,{method:`PATCH`,body:t}),mappingDelete:e=>G(`/api/mappings/${e}`,{method:`DELETE`,parse:!1}),mappingPreview:(e,t)=>G(`/api/mappings/preview`,{method:`POST`,body:{capture_id:e,fields:t}}),bindings:()=>G(`/api/bindings`),bindingCreate:e=>G(`/api/bindings`,{method:`POST`,body:e}),bindingUpdate:(e,t)=>G(`/api/bindings/${e}`,{method:`PATCH`,body:t}),bindingDelete:e=>G(`/api/bindings/${e}`,{method:`DELETE`,parse:!1}),bindingApprove:e=>G(`/api/bindings/${e}/approve`,{method:`POST`}),chatSessions:()=>G(`/api/chat/sessions`),chatMessages:e=>G(`/api/chat/sessions/${encodeURIComponent(e)}/messages`),chatTurns:e=>G(`/api/chat/sessions/${encodeURIComponent(e)}/turns`),chatCancel:e=>G(`/api/chat/cancel`,{method:`POST`,body:{session_id:e}}),chatMessage:(e,t)=>G(`/api/chat/message`,{method:`POST`,body:{channel_id:e,source_id:De(),text:t,page:location.hash.slice(1)||`/`}}),chatPersona:(e,t)=>G(`/api/chat/persona`,{method:`POST`,body:{session_id:e,name:t}}),chatUpdate:()=>G(`/api/chat/update`),chatUpdateDefer:e=>G(`/api/chat/update/defer`,{method:`POST`,body:{snapshot:e}}),chatUpdateInstall:e=>G(`/api/chat/update/install`,{method:`POST`,body:{snapshot:e},timeoutMs:12e4}),chatDangerous:()=>G(`/api/chat/dangerous`),chatDangerousRequest:(e,t)=>G(`/api/chat/dangerous/${encodeURIComponent(e)}`,{method:`POST`,body:{spec:t}}),chatDangerousDecision:(e,t)=>G(`/api/chat/dangerous/${encodeURIComponent(e)}/decision`,{method:`POST`,body:{decision:t}}),chatStream:(e,{signal:t}={})=>Pe(`/api/chat/stream`,{method:`POST`,headers:{Accept:`text/event-stream`,"Content-Type":`application/json`,"X-Archie-CSRF":`1`},body:JSON.stringify(e),signal:t})};function Fe(e,t){let n=new EventSource(`/events`);return n.onopen=()=>t?.(`live`),n.onerror=()=>t?.(`reconnecting`),n.onmessage=t=>{try{e(JSON.parse(t.data))}catch{}},()=>n.close()}function Ie(e,t){let n=new EventSource(`/api/logs/stream`);return n.onopen=()=>t?.(`live`),n.onerror=()=>t?.(Oe(n.readyState)),n.onmessage=t=>{try{e(JSON.parse(t.data))}catch{}},()=>n.close()}function Le(e,t){return e?t.filter(t=>t.section&&e[t.section]===!1).map(e=>e.path):[]}var Re=[{id:`queued`,label:`Queued`,kind:`idle`},{id:`running`,label:`Working`,kind:`info`},{id:`waiting_human`,label:`Waiting for you`,kind:`warn`,needs_you:!0},{id:`pr_open`,label:`In review`,kind:`ok`},{id:`merged`,label:`Merged`,kind:`ok`},{id:`parked`,label:`Parked`,kind:`warn`,needs_you:!0},{id:`dead`,label:`Stopped (too many retries)`,kind:`danger`},{id:`rejected`,label:`Rejected`,kind:`danger`},{id:`closed_wont_do`,label:`Won't do`,kind:`idle`}],ze=[{id:`cancel`,label:`Cancel`,kind:`quiet`,confirm:`Cancel "{title}"? This closes the forge issue.`},{id:`stop`,label:`Stop`,kind:`primary`,confirm:`Stop "{title}"? Recoverable work will remain parked.`},{id:`approve`,label:`Approve`,kind:`primary`},{id:`reject`,label:`Reject`,kind:`quiet`,confirm:`Reject "{title}"? This closes the forge issue.`},{id:`retry`,label:`Retry`,kind:`primary`},{id:`abandon`,label:`Abandon`,kind:`quiet`,confirm:`Abandon "{title}"? This closes the forge issue.`},{id:`archive`,label:`Archive`,kind:`quiet`,confirm:`Archive the local record for "{title}"?`},{id:`open_pr`,label:`Open PR`,kind:`link`},{id:`open_issue`,label:`Open issue`,kind:`link`}],Be=[...Re],Ve=[...ze],He=new Map(Be.map(e=>[e.id,e])),Ue=new Map(Ve.map(e=>[e.id,e]));function We(){He=new Map(Be.map(e=>[e.id,e])),Ue=new Map(Ve.map(e=>[e.id,e]))}async function Ge(){try{let e=await K.taskMeta();Array.isArray(e?.statuses)&&(Be=e.statuses),Array.isArray(e?.actions)&&(Ve=e.actions),We()}catch{}}function Ke(e){return He.get(e)?.label||e||`Unknown`}function qe(e){return He.get(e)?.kind||`idle`}function Je(){return Be.map(e=>e.id)}function Ye(){return new Set(Be.filter(e=>e.needs_you).map(e=>e.id))}function Xe(e){return Ue.get(e)||null}var Ze=0;Array.isArray;function q(e,n,r,i,a,o){n||={};var s,c,l=n;if(`ref`in l)for(c in l={},n)c==`ref`?s=n[c]:l[c]=n[c];var u={type:e,props:l,key:r,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Ze,__i:-1,__u:0,__source:a,__self:o};if(typeof e==`function`&&(s=e.defaultProps))for(c in s)l[c]===void 0&&(l[c]=s[c]);return t.vnode&&t.vnode(u),u}var Qe={dashboard:``,chat:``,tasks:``,logs:``,skills:``,workflows:``,memory:``,channels:``,curators:``,captures:``,mappings:``,bindings:``,settings:``,search:``,moon:``,sun:``,refresh:``,bell:``,trendUp:``,trendDown:``,check:``,close:``,"message-circle-plus":``,help:``};function J({name:e,size:t=18,className:n=``}){return q(`svg`,{viewBox:`0 0 24 24`,width:t,height:t,fill:`none`,stroke:`currentColor`,"stroke-width":`1.6`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"aria-hidden":`true`,className:`ico ${n}`.trim(),dangerouslySetInnerHTML:{__html:Qe[e]||Qe.dashboard}})}function Y(e){if(!e)return`—`;let t=e instanceof Date?e:new Date(e),n=Math.floor((Date.now()-t.getTime())/1e3);if(!Number.isFinite(n))return`—`;if(n<45)return`just now`;let r=[[`min`,60],[`hr`,3600],[`day`,86400],[`wk`,604800]],i=`min`,a=60;for(let[e,t]of r)n>=t&&([i,a]=[e,t]);let o=Math.floor(n/a);return`${o} ${i}${o===1?``:`s`} ago`}function $e(e){return e==null||Number.isNaN(e)?`—`:new Intl.NumberFormat(void 0,{notation:`compact`,maximumFractionDigits:1}).format(e)}function X({label:e,value:t,unit:n,trend:r,compare:i,series:a=[],goodDirection:o=`up`}){let s=r==null?null:r>=0?`up`:`down`,c=s==null?null:s===o;return q(`div`,{className:`card stat`,children:[q(`div`,{className:`stat-head`,children:[q(`span`,{className:`stat-label`,children:e}),s?q(`span`,{className:`stat-trend ${c?`up`:`down`}`,children:[q(J,{name:s===`up`?`trendUp`:`trendDown`,size:13}),`${Math.abs(r).toFixed(1)}%`]}):null]}),q(`div`,{className:`stat-value`,children:[t,n?q(`span`,{className:`stat-unit`,children:n}):null]}),i?q(`div`,{className:`stat-compare`,children:i}):null,a.length>1?q(et,{series:a,stroke:c===!1?`var(--danger)`:`var(--ok)`}):null]})}function et({series:e,stroke:t=`var(--ok)`,width:n=220,height:r=34}){let i=Math.max(...e,1),a=Math.min(...e,0),o=i-a||1,s=e.length>1?n/(e.length-1):n,c=e.map((e,t)=>`${(t*s).toFixed(1)},${(r-(e-a)/o*r).toFixed(1)}`).join(` `);return q(`svg`,{className:`spark`,viewBox:`0 0 ${n} ${r}`,preserveAspectRatio:`none`,"aria-hidden":`true`,children:q(`polyline`,{points:c,fill:`none`,stroke:t,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"vector-effect":`non-scaling-stroke`})})}function tt({value:e,label:t,size:n=168}){let r=Math.max(0,Math.min(100,Number(e)||0)),i=r>=90?`var(--ok)`:r>=70?`var(--warn)`:`var(--danger)`,a=n/2,o=n/2,s=2*Math.PI*62*(240/360),c=(e,t)=>{let n=e*Math.PI/180,r=(e+t)*Math.PI/180,i=+(t>180);return[`M ${a+62*Math.cos(n)} ${o+62*Math.sin(n)}`,`A 62 62 0 ${i} 1 ${a+62*Math.cos(r)} ${o+62*Math.sin(r)}`].join(` `)};return q(`div`,{className:`gauge-wrap`,children:[q(`svg`,{className:`gauge`,viewBox:`0 0 ${n} ${n*.78}`,role:`img`,"aria-label":`${t}: ${r}%`,children:[q(`path`,{d:c(150,240),fill:`none`,stroke:`var(--border)`,"stroke-width":`12`,"stroke-linecap":`round`}),q(`path`,{d:c(150,240),fill:`none`,stroke:i,"stroke-width":`12`,"stroke-linecap":`round`,"stroke-dasharray":s,"stroke-dashoffset":s*(1-r/100),className:`gauge-value`})]}),q(`div`,{className:`gauge-center`,children:[q(`div`,{className:`gauge-pct`,children:`${Math.round(r)}%`}),q(`div`,{className:`gauge-label`,children:t})]})]})}function nt({segments:e}){let t=e.reduce((e,t)=>e+(t.value||0),0)||1;return q(`div`,{children:[q(`div`,{className:`segbar`,children:e.filter(e=>e.value>0).map(e=>q(`span`,{className:`segbar-part segbar-${e.kind||`idle`}`,style:`width:${(e.value/t*100).toFixed(1)}%`,title:`${e.label}: ${e.value}`},e.label))}),q(`div`,{className:`segbar-legend`,children:e.map(e=>q(`span`,{className:`segbar-key`,children:[q(`span`,{className:`segbar-dot segbar-${e.kind||`idle`}`}),e.label]},e.label))})]})}var rt=160;function it(e){let t=String(e?.detail||e?.message||``);if(!t)return{text:``,full:``,truncated:!1};let n=t.split(` -`).map(e=>e.trim()).find(Boolean)||``,r=n.length>rt?`${n.slice(0,rt).trimEnd()}…`:n;return{text:r,full:t,truncated:r!==t}}function Z({text:e,kind:t=`idle`}){return q(`span`,{className:`pill pill-${t}`,children:e})}var at=`archie.setup-complete.dismissed.v1`;function ot(e,t=globalThis.localStorage){if(!e?.steps?.length)return{kind:`omit`,remaining:[]};let n=e.steps.filter(e=>!e.done);return n.length?(t?.removeItem?.(at),{kind:`incomplete`,remaining:n}):t?.getItem?.(`archie.setup-complete.dismissed.v1`)===`1`?{kind:`dismissed`,remaining:[]}:{kind:`complete`,remaining:[]}}function st(e=globalThis.localStorage){e?.setItem?.(at,`1`)}var ct=new Set([`waiting_human`,`parked`]);function lt(e=[]){let t=e.filter(e=>ct.has(e.status)),n=e.filter(e=>e.status===`running`);return{attention:{count:t.length,href:t.length===1?`#/tasks?task=${encodeURIComponent(t[0].id)}`:`#/tasks?status=needs_you`},running:{count:n.length,href:`#/tasks?status=running`}}}function ut({title:e,detail:t}){return q(`div`,{className:`empty`,children:[q(`div`,{className:`empty-title`,children:e}),t&&q(`div`,{children:t})]})}function dt(e,t){return Number(e.task_id)>0?Number(e.task_id):!e.repo||!e.issue?0:Number(t.get(`${e.repo}#${e.issue}`))||0}function ft(){let e=new Date().getHours();return e<5?`Still up?`:e<12?`Good morning`:e<18?`Good afternoon`:`Good evening`}function pt(e){if(e.length<4)return null;let t=Math.floor(e.length/2),n=e.slice(0,t).reduce((e,t)=>e+t,0),r=e.slice(t).reduce((e,t)=>e+t,0);return n?(r-n)/n*100:null}function mt(){let[e,t]=H([]),[n,r]=H(`connecting`),[i,a]=H(`idle`),[o,s]=H(new Map),[c,l]=H(null),[u,d]=H(null),[f,p]=H(null),[m,h]=H(null),[g,_]=H(null),[,v]=H(!1),y=async()=>{_(null);try{let[e,t,n,r]=await Promise.all([K.summary(),K.setup().catch(()=>null),K.workflows().catch(()=>null),K.tasks().catch(()=>[])]),i=new Map;for(let e of r)e.owner&&e.repo&&e.issue_number&&i.set(`${e.owner}/${e.repo}#${e.issue_number}`,e.id);s(i),l(e),d(t),p(n),h(r)}catch(e){_(String(e.message||e))}};U(()=>(y(),Fe(e=>{t(t=>{let n=[e,...t];return n.splice(50),n})},e=>{r(e),a(e===`live`?`ok`:`warn`)})),[]);let b=()=>{st(),v(e=>!e)},x=u?.operator?`${ft()}, ${u.operator}`:ft(),C=null;if(g)C=q(`button`,{className:`btn btn-primary`,onClick:y,children:[q(J,{name:`refresh`,size:15}),` Retry`]});else if(m!==null){let e=lt(m),t=e.attention.count,n=e.running.count;C=q(S,{children:[t>0&&q(`a`,{className:`btn btn-attention`,href:e.attention.href,children:[q(J,{name:`tasks`,size:15}),` `,t,` need`,t===1?`s`:``,` you`]}),n>0&&q(`a`,{className:`btn`,href:e.running.href,children:[q(J,{name:`workflows`,size:15}),` `,n,` running`]}),q(`a`,{className:`btn`,href:`#/logs`,children:[q(J,{name:`logs`,size:15}),` Logs`]}),q(`button`,{className:`btn btn-primary`,onClick:y,children:[q(J,{name:`refresh`,size:15}),` Refresh`]})]})}let w=null;if(g)w=q(`div`,{className:`card`,children:q(ut,{title:`Cannot reach archied`,detail:g})});else if(c){let e=c?.statuses||{},t=(e.merged||0)+(e.pr_open||0),n=(e.parked||0)+(e.waiting_human||0),r=Object.values(e).reduce((e,t)=>e+t,0),i=c?.tokens_by_day||[];w=q(S,{children:[q(X,{label:`Working now`,value:e.running||0,compare:`${e.queued||0} waiting to start`,series:i.map(e=>e.tokens||0)}),q(X,{label:`Needs you`,value:n,compare:n?`Parked or awaiting a reply`:`Nothing is blocked`,goodDirection:`down`}),q(X,{label:`Delivered`,value:t,compare:r?`${Math.round(t/r*100)}% of all tasks`:`No tasks yet`}),q(X,{label:`Tokens used`,value:$e(i.reduce((e,t)=>e+(t.tokens||0),0)),compare:`Across ${i.length||0} days`,trend:pt(i.map(e=>e.tokens||0)),goodDirection:`down`,series:i.map(e=>e.tokens||0)})]})}let T=null,E=ot(u),D=E.kind===`omit`||E.kind===`dismissed`;if(!D){let e=E.remaining;if(e.length){let t=Math.round((u.steps.length-e.length)/u.steps.length*100);T=q(`div`,{className:`card setup`,children:[q(`div`,{className:`card-head`,children:[q(`div`,{children:[q(`h2`,{className:`card-title`,children:`Finish setting up`}),q(`p`,{className:`card-sub`,children:`Archie needs these before it can work on its own.`})]}),q(`span`,{className:`setup-pct`,children:[t,`%`]})]}),q(`div`,{className:`setup-bar`,children:q(`div`,{className:`setup-bar-fill`,style:{width:`${t}%`}})}),q(`ul`,{className:`setup-list`,children:u.steps.map((e,t)=>q(`li`,{className:`setup-step ${e.done?`done`:``}`,children:[q(`span`,{className:`setup-check`,children:e.done?q(J,{name:`check`,size:12}):``}),q(`div`,{children:[q(`div`,{className:`setup-step-title`,children:e.title}),e.detail&&q(`div`,{className:`setup-step-detail`,children:e.detail})]})]},t))})]})}else T=q(`div`,{className:`card setup setup-done`,children:q(`div`,{className:`card-head`,children:[q(`div`,{children:[q(`h2`,{className:`card-title`,children:`Setup complete`}),q(`p`,{className:`card-sub`,children:`Archie is configured and ready to work.`})]}),q(`div`,{className:`setup-complete-actions`,children:[q(`span`,{className:`setup-pct`,children:q(J,{name:`check`,size:16})}),q(`button`,{className:`icon-btn setup-dismiss`,type:`button`,title:`Dismiss setup complete`,"aria-label":`Dismiss setup complete`,onClick:b,children:`×`})]})]})})}let O=null;if(c){let e=f?.workflows||[],t=e.reduce((e,t)=>e+(t.runs||0),0),n=e.reduce((e,t)=>e+(t.merged||0)+(t.pr_open||0),0),r=e.reduce((e,t)=>e+(t.parked||0),0);if(!t)O=q(`div`,{className:`card`,children:[q(`div`,{className:`card-head`,children:q(`h2`,{className:`card-title`,children:`Gate pulse`})}),q(ut,{title:`No completed runs yet`,detail:`Once Archie finishes a task, its gate pass rate appears here.`})]});else{let i=n/t*100;O=q(`div`,{className:`card`,children:[q(`div`,{className:`card-head`,children:q(`div`,{children:[q(`h2`,{className:`card-title`,children:`Gate pulse`}),q(`p`,{className:`card-sub`,children:`Work that passed its quality gates`})]})}),q(tt,{value:i,label:`pass rate`}),q(`ul`,{className:`pulse-list`,children:[e.slice(0,3).map((e,t)=>q(`li`,{className:`pulse-item`,children:[q(`span`,{className:`pulse-name`,children:e.workflow||`workflow`}),q(Z,{text:`${e.merged||0}/${e.runs||0}`,kind:(e.merged||0)===(e.runs||0)?`ok`:(e.parked||0)>0?`warn`:`info`})]},t)),r>0&&q(`li`,{className:`pulse-item`,children:[q(`span`,{className:`pulse-name`,children:`Parked, awaiting you`}),q(Z,{text:String(r),kind:`warn`})]})]})]})}}let k=null;if(c){let e=c?.tokens_by_day||[],t=e.reduce((e,t)=>e+(t.tokens||0),0);if(!e.length)k=q(`div`,{className:`card`,children:[q(`div`,{className:`card-head`,children:q(`h2`,{className:`card-title`,children:`Token outlook`})}),q(ut,{title:`Nothing spent yet`,detail:`Usage appears here once Archie runs its first task.`})]});else{let n=t/e.length,r=Math.round(n*30),i=e.slice(-7).reduce((e,t)=>e+(t.tokens||0),0);k=q(`div`,{className:`card`,children:[q(`div`,{className:`card-head`,children:q(`div`,{children:[q(`h2`,{className:`card-title`,children:`Token outlook`}),q(`p`,{className:`card-sub`,children:`Next 30 days at the current rate`})]})}),q(`div`,{className:`forecast-value`,children:$e(r)}),q(`div`,{className:`forecast-note`,children:[`Based on `,$e(Math.round(n)),` per day over `,e.length,` days`]}),q(nt,{segments:[{label:`Last 7 days (${$e(i)})`,value:i,kind:`info`},{label:`Earlier (${$e(t-i)})`,value:Math.max(t-i,0),kind:`idle`}]})]})}}return q(S,{children:[q(`div`,{className:`hero`,children:[q(`div`,{children:[q(`h1`,{className:`hero-title`,children:x}),q(`p`,{className:`hero-sub`,children:`Your agent's control room — what it is working on, what needs you, and what it is spending.`})]}),q(`div`,{className:`hero-actions`,children:q(`div`,{className:`hero-actions-inner`,children:C})})]}),q(`div`,{className:`dash-section`,children:[q(`div`,{className:`dash-section-head`,children:q(`h2`,{className:`dash-section-title`,children:`Health`})}),q(`div`,{className:`dash-top ${D?`dash-top-standalone`:``}`,children:[q(`div`,{children:T}),q(`div`,{children:O})]})]}),q(`div`,{className:`dash-section`,children:[q(`div`,{className:`dash-section-head`,children:[q(`h2`,{className:`dash-section-title`,children:`Throughput`}),q(`span`,{className:`dash-section-note`,children:`Across all repositories`})]}),q(`div`,{className:`grid grid-4`,children:w})]}),q(`div`,{className:`dash-section`,children:[q(`div`,{className:`dash-section-head`,children:q(`h2`,{className:`dash-section-title`,children:`Right now`})}),q(`div`,{className:`dash-split`,children:[q(`div`,{children:k}),q(`div`,{className:`card`,children:[q(`div`,{className:`card-head`,children:[q(`div`,{children:[q(`h2`,{className:`card-title`,children:`Live activity`}),q(`p`,{className:`card-sub`,children:`Last 50, newest first`})]}),q(Z,{text:n,kind:i})]}),q(`div`,{className:`table-scroll`,children:q(`table`,{className:`table`,children:[q(`thead`,{children:q(`tr`,{children:[q(`th`,{children:`Event`}),q(`th`,{children:`Task`}),q(`th`,{children:`Detail`}),q(`th`,{children:`When`})]})}),q(`tbody`,{children:e.length?e.map((e,t)=>{let n=dt(e,o),r=n>0,i=it(e),a=()=>{r&&(location.hash=`#/tasks?task=${encodeURIComponent(n)}`)};return q(`tr`,{className:r?`activity-row`:``,role:r?`link`:void 0,tabIndex:r?`0`:void 0,title:r?`Open task details`:void 0,onClick:r?a:void 0,onKeyDown:r?e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),a())}:void 0,children:[q(`td`,{className:`strong`,children:q(`span`,{children:e.kind||e.type||`event`})}),q(`td`,{className:`mono`,children:r?`#${n}`:`—`}),q(`td`,{className:`activity-detail`,children:q(`span`,{title:i.truncated?i.full:void 0,children:i.text})}),q(`td`,{children:Y(e.at||Date.now())})]},t)}):q(`tr`,{children:q(`td`,{colSpan:`4`,children:q(ut,{title:`Waiting for activity`,detail:`Events appear here as Archie works.`})})})})]})})]})]})]})]})}function ht(){return q(mt,{})}function gt(e,t){let n=e.title||`untitled task`;return{"aria-expanded":String(t),"aria-controls":`task-timeline-${e.id}`,"aria-label":`${t?`Collapse`:`Expand`} timeline for ${n}`}}function _t(){return new Set([`needs_you`,...Je()])}function vt(e){let t=e?.get?.(`status`)||``;return _t().has(t)?t:``}function yt(e,t){return t?t===`needs_you`?Ye().has(e.status):e.status===t:!0}function bt(e){return String(e||`event`).replaceAll(`_`,` `).replace(/\b\w/g,e=>e.toUpperCase())}function xt(e){let t=Number(e);if(!Number.isFinite(t)||t<0)return``;if(t<1e3)return`${Math.round(t)} ms`;let n=t/1e3;if(n<60)return`${n.toFixed(+(n<10))} s`;let r=Math.round(n),i=Math.floor(r/60),a=r%60;if(i<60)return a===0?`${i} min`:`${i} min ${a} s`;let o=Math.floor(i/60),s=i-o*60;return s===0?`${o} h`:`${o} h ${s} min`}function St(e){let t=Number(e);return!Number.isFinite(t)||t<=0?``:t.toLocaleString(`en-US`)}function Ct(e={}){let t=e.data||{},n=e.stage||`unknown stage`,r=e.workflow?`${e.workflow} workflow`:``;if(e.kind===`stage_start`)return{title:`Started stage: ${n}`,detail:r};if(e.kind===`stage_finish`){let e=xt(t.duration_ms),i=[r,e&&`ran for ${e}`].filter(Boolean).join(` · `);return{title:t.interrupted?`Stage interrupted: ${n}`:t.error?`Stage failed: ${n}`:`Finished stage: ${n}`,detail:[i,t.error].filter(Boolean).join(` — `)}}if(e.kind===`task_retried`){let n=Number(t.retry_count);return{title:Number.isFinite(n)&&n>0?`Retry ${n}`:`Retry requested`,detail:[t.previous_stage&&`after ${t.previous_stage}`,t.previous_reason].filter(Boolean).join(`: `)||e.detail||``}}if(e.kind===`agent_finish`){let r=St(t.iterations),i=St(t.tokens),a=Number(t.cached_tokens)||0,o=St((Number(t.prompt_tokens)||0)-a),s=St(t.completion_tokens),c=St(t.cached_tokens),l=[r&&`${r} iterations`,i&&`${i} tokens`,o&&`${o} fresh prompt`,s&&`${s} completion`,c&&`${c} cached`,t.model].filter(Boolean);return{title:`Agent ${t.status||`finished`}: ${n}`,detail:l.join(` · `)||e.detail||``}}if(e.kind===`config_captured`)return{title:`Configuration captured`,detail:`The effective task-runtime configuration for this run.`};if(e.kind===`changes_captured`){let e=Number(t.totals?.files);return{title:`Change capture recorded`,detail:[Number.isFinite(e)&&e>0?`${e} file${e===1?``:`s`} changed`:``,t.captured_after?`captured after ${t.captured_after}`:``].filter(Boolean).join(` · `)}}return{title:bt(e.kind||e.type),detail:e.detail||``}}var wt=[{value:``,label:`All levels`},{value:`ERROR`,label:`Errors`},{value:`WARN,ERROR`,label:`Warnings and errors`},{value:`INFO,WARN,ERROR`,label:`Info and above`},{value:`DEBUG`,label:`Debug only`}];function Tt(e){switch((e||``).toUpperCase()){case`ERROR`:return`danger`;case`WARN`:return`warn`;case`DEBUG`:return`idle`;default:return`info`}}function Et({entry:e}){let t=e.fields||{};return q(`div`,{className:`log-row log-${Tt(e.level)}`,children:[q(`span`,{className:`log-time mono`,children:Ot(e.time)}),q(`span`,{className:`log-level`,children:(e.level||`info`).toUpperCase()}),q(`span`,{className:`log-body`,children:[q(`span`,{className:`log-msg`,children:e.message||e.msg||``}),Object.entries(t).map(([e,t])=>q(`span`,{className:`log-field`,children:[q(`span`,{className:`log-field-key`,children:e}),String(Dt(t))]},e))]})]})}function Dt(e){return e==null?``:typeof e==`object`?JSON.stringify(e):e}function Ot(e){let t=e instanceof Date?e:new Date(e);return Number.isNaN(t.getTime())?`--:--:--`:t.toTimeString().slice(0,8)}function kt(e,t){return`/api/tasks/${e}/logs/download`+(t==null?``:`?attempt=${t}`)}var At={level:``,stage:``};function jt(e,t,n=At){let r=n||At;return[e,Number(t)||0,r.level||``,r.stage||``].join(`|`)}function Mt({filters:e,onFilterChange:t,stages:n,attempt:r}){let i=n=>t?.({...e,...n}),a=Number(r)||0;return q(`div`,{className:`log-filters task-log-filters`,children:[q(`span`,{className:`task-log-attempt`,children:a>0?`Attempt ${a}`:`Current attempt`}),t?q(S,{children:[q(`label`,{className:`task-log-filter`,children:[q(`span`,{className:`task-log-filter-label`,children:`Level`}),q(`select`,{className:`task-filter`,value:e.level,"aria-label":`Filter log entries by level`,onChange:e=>i({level:e.target.value}),children:wt.map(e=>q(`option`,{value:e.value,children:e.label},e.value))})]}),q(`label`,{className:`task-log-filter`,children:[q(`span`,{className:`task-log-filter-label`,children:`Stage`}),q(`select`,{className:`task-filter`,value:e.stage,"aria-label":`Filter log entries by stage`,onChange:e=>i({stage:e.target.value}),children:[q(`option`,{value:``,children:`All stages`}),(n||[]).map(e=>q(`option`,{value:e,children:e},e))]})]}),e.stage?q(`p`,{className:`task-log-filter-note`,children:`A stage filter matches only log lines that record a stage. Agent and tool output carries none, so it is not shown while this filter is set.`}):null,!e.stage&&!(n||[]).length?q(`p`,{className:`task-log-filter-note`,children:`This attempt recorded no stage names, so the stage filter has nothing to match.`}):null]}):null]})}function Nt({text:e}){return q(`p`,{className:`visually-hidden`,role:`status`,"aria-live":`polite`,"aria-atomic":`true`,children:e})}function Pt({state:e,onRetry:t,taskId:n,attempt:r,filters:i=At,onFilterChange:a,stages:o=[]}){let s=Number(r)||Number(e?.attempt)||0,c,l;if(e===void 0)c=`Loading this attempt's log`,l=q(`div`,{className:`task-log-loading`,children:`Loading attempt log…`});else if(e===null)c=`This attempt's log could not be loaded`,l=q(`div`,{className:`task-log-error`,children:[q(`div`,{className:`task-timeline-detail`,children:`Could not load this attempt's log.`}),q(`button`,{className:`btn`,onClick:t,children:`Retry`})]});else if(e.found===!1&&!e.disabled)c=`No log recorded for this attempt`,l=q(`div`,{className:`empty`,children:[q(`div`,{className:`empty-title`,children:`No log recorded for this attempt`}),q(`div`,{children:`This attempt produced no output, or it has not started writing yet.`})]});else if(e.disabled)c=`This dashboard cannot read task logs`,l=q(`div`,{className:`empty`,children:[q(`div`,{className:`empty-title`,children:`No persisted log for this attempt`}),q(`div`,{children:`This dashboard cannot read task logs. The service that owns the log files is not reporting a log reader.`})]});else{let t=e.entries||[],r=n==null?null:kt(n,s||null),i=r?q(`a`,{className:`btn btn-small task-log-download`,href:r,download:!0,children:`Download log`}):null;t.length?(c=`${t.length} log entr${t.length===1?`y`:`ies`} shown`,l=q(S,{children:[q(`div`,{className:`log-list task-log-list`,children:t.map((e,t)=>q(Et,{entry:e},t))}),i]})):(c=`This attempt's log has no entries matching the current filter`,l=q(`div`,{className:`empty`,children:[q(`div`,{className:`empty-title`,children:`Nothing recorded`}),q(`div`,{children:`This attempt's log file has no entries matching the current filter.`}),i]}))}return q(S,{children:[q(Mt,{filters:i,onFilterChange:a,stages:o,attempt:s}),q(Nt,{text:c}),l]})}function Ft(){return typeof window<`u`&&window.matchMedia?.(`(prefers-reduced-motion: reduce)`)?.matches===!0}function It(){return Ft()?`auto`:`smooth`}function Lt({kind:e,message:t}){return e===`session-expired`?q(`span`,{className:`task-action-error task-action-error-session`,children:[`Your session has expired.`,` `,q(`button`,{className:`button btn btn-small`,type:`button`,onClick:()=>window.location.reload(),children:`Reload to sign in`})]}):e===`refused`?q(`span`,{className:`task-action-error task-action-error-refused`,children:[t,` — you can't do that.`]}):q(`span`,{className:`task-action-error task-action-error-broken`,children:[t,` — try again, or check the daemon.`]})}function Rt({title:e,detail:t}){return q(`div`,{className:`empty`,children:[q(`div`,{className:`empty-title`,children:e}),t&&q(`div`,{children:t})]})}function zt({taskId:e,attempt:t,state:n,onLoad:r,onRetry:i}){let a=W(r);return a.current=r,U(()=>{n===void 0&&a.current()},[n]),q(Pt,{state:n,taskId:e,attempt:t,onRetry:i})}function Bt({query:e}){let[t,n]=H(null),[r,i]=H(null),[a,o]=H(()=>vt(e)),[s,c]=H(``),l=Number(e.get(`task`)),u=Number.isFinite(l)&&l>0?l:null,[d,f]=H(u),[p,m]=H(u!==null),[h,g]=H(new Map),[_,v]=H(new Map),y=W(new Set),[b,x]=H(new Set),[C,w]=H(new Map),[T,E]=H(new Set),D=async()=>{try{i(null);let e=await K.tasks();return n(e),d&&e.some(e=>String(e.id)===String(d))&&(h.has(d)||O(d)),e}catch(e){return i(String(e.message||e)),n(null),null}};U(()=>{D()},[]);let O=async e=>{try{let t=await K.task(e);g(n=>new Map(n).set(e,t||[]))}catch{g(t=>new Map(t).set(e,null))}},k=async(e,t,{force:n=!1}={})=>{let r=jt(e,t);if(!(y.current.has(r)&&!n)){y.current.add(r),n&&v(e=>{let t=new Map(e);return t.delete(r),t});try{let n=await K.taskLogs(e,{attempt:t||void 0,limit:500});v(e=>new Map(e).set(r,n))}catch{v(e=>new Map(e).set(r,null))}}},A=e=>{g(t=>{let n=new Map(t);return n.delete(e),n})},j=async(e,t)=>{w(t=>{let n=new Map(t);return n.delete(e),n}),E(t=>new Set(t).add(e));try{await K.taskAction(e,t),E(t=>{let n=new Set(t);return n.delete(e),n}),t===`archive`&&f(null),A(e);let n=await D();Array.isArray(n)&&n.find(t=>String(t.id)===String(e))&&d===e&&O(e)}catch(t){E(t=>{let n=new Set(t);return n.delete(e),n}),w(n=>new Map(n).set(e,Ne(t)))}};U(()=>{p&&d&&t&&(m(!1),requestAnimationFrame(()=>{let e=document.getElementById(`task-row-${d}`);e&&(e.focus({preventScroll:!0}),e.scrollIntoView?.({block:`center`,behavior:It()}))}))},[p,d,t]);let M=(e,t)=>{t&&t.stopPropagation();let n=d!==e;f(n?e:null),n&&O(e)},N=e=>{x(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},P=()=>{if(!t)return null;let e=t.length,n={};for(let e of t)n[e.status]=(n[e.status]||0)+1;let r=n.running||0,i=(n.waiting_human||0)+(n.parked||0),a=(n.merged||0)+(n.pr_open||0);return q(`div`,{className:`grid grid-4 task-summary`,children:[q(X,{label:`Total tasks`,value:e,compare:e?`Everything archied has ever picked up`:`No tasks yet`}),q(X,{label:`Working now`,value:r,compare:e?`${r} of ${e} in progress`:`Nothing running`}),q(X,{label:`Needs you`,value:i,compare:i?`Parked or awaiting a reply`:`Nothing is blocked`,goodDirection:`down`}),q(X,{label:`Delivered`,value:a,compare:e?`${Math.round(a/e*100)}% of all tasks`:`No tasks yet`})]})},F=e=>{let t=C.get(e.id),n=t?Lt(t):null,r=T.has(e.id),i=e=>e===`quiet`?`btn-quiet`:e===`danger`?`btn-danger`:``,a=(e.actions||[]).map(t=>{let n=Xe(t);if(!n)return null;let a=e.title||`this task`,o=n.confirm?n.confirm.replaceAll(`{title}`,a):void 0,s=[`button`,`btn`,`btn-small`,i(n.kind)].filter(Boolean).join(` `);if(n.kind===`link`){if(t===`open_pr`)return I(e,`pull_request`,e.pr_number,n.label);if(t===`open_issue`)return I(e,`issue`,e.issue_number,n.label)}return q(`button`,{className:s,type:`button`,disabled:r,onClick:n=>{n.stopPropagation(),!(o&&!window.confirm(o))&&j(e.id,t)},children:n.label},t)}).filter(Boolean);return!a.length&&!n?`—`:q(`div`,{className:`task-actions`,children:[n,a]})},I=(e,t,n,r)=>{let i=t===`issue`?e.issue_url:e.pr_url;return!i||!n||t===`issue`&&e.source===`chat`?q(`button`,{className:`btn btn-small`,type:`button`,disabled:!0,title:`${r} is unavailable`,children:r}):q(`a`,{className:`btn btn-small`,href:i,target:`_blank`,rel:`noreferrer`,onClick:e=>e.stopPropagation(),children:r})},L=e=>{let t=e.repo_url;return t?q(`a`,{className:`task-source-link`,href:t,target:`_blank`,rel:`noreferrer`,title:`Open ${e.owner}/${e.repo} on the forge`,onClick:e=>e.stopPropagation(),children:[e.owner,`/`,e.repo]}):null},ee=e=>{let t=e.issue_url;return e.source===`chat`||!t||!e.issue_number?null:q(`a`,{className:`task-source-link`,href:t,target:`_blank`,rel:`noreferrer`,title:`Open issue #${e.issue_number} on the forge`,onClick:e=>e.stopPropagation(),children:[`#`,e.issue_number]})},R=e=>{let t=jt(e.id,e.attempt),n=h.get(e.id),r=b.has(e.id);return q(`tr`,{className:`task-timeline-row`,id:`task-timeline-${e.id}`,children:q(`td`,{colSpan:8,children:[q(`div`,{className:`task-detail-actions`,children:[q(`div`,{className:`task-decision-title`,children:`Available actions`}),F(e)]}),e.status===`waiting_human`&&e.plan&&q(`div`,{className:`task-decision`,children:[q(`div`,{className:`task-decision-title`,children:`Decision required`}),q(`div`,{className:`task-decision-plan`,children:e.plan})]}),e.status===`parked`&&e.park_reason&&q(`div`,{className:`task-decision`,children:[q(`div`,{className:`task-decision-title`,children:`Park reason`}),q(`div`,{className:`task-decision-plan`,children:e.park_reason})]}),n===void 0?q(`div`,{className:`task-timeline-loading`,children:`Loading timeline…`}):n===null?q(`div`,{className:`task-timeline-error`,children:[q(`div`,{className:`task-timeline-title`,children:`Could not load timeline`}),q(`div`,{className:`task-timeline-detail`,children:`archied did not answer for this task's events. It may be restarting — retry, or check the daemon.`}),q(`button`,{className:`btn`,onClick:()=>O(e.id),children:`Retry`})]}):n.length?q(`ul`,{className:`task-timeline`,children:n.map((e,t)=>{let n=Ct(e);return q(`li`,{className:`task-timeline-entry`,children:[q(`span`,{className:`task-timeline-dot`}),q(`div`,{children:[q(`div`,{className:`task-timeline-kind`,children:n.title}),n.detail&&q(`div`,{className:`task-timeline-detail`,children:n.detail}),q(`div`,{className:`task-timeline-when`,children:Y(e.at)})]})]},t)})}):q(Rt,{title:`No events yet`,detail:`This task has not recorded any transitions.`}),q(`div`,{className:`task-logs-section`,children:[q(`div`,{className:`task-decision-title`,children:[`Attempt log`,q(`button`,{className:`btn btn-small`,onClick:()=>N(e.id),style:{marginLeft:`10px`},children:r?`Hide`:`Show`})]}),r&&q(zt,{taskId:e.id,attempt:e.attempt,state:_.has(t)?_.get(t):void 0,onLoad:()=>k(e.id,e.attempt),onRetry:()=>k(e.id,e.attempt,{force:!0})})]})]})})};return q(`div`,{children:[q(`div`,{className:`page-head`,children:[q(`div`,{children:[q(`h1`,{className:`page-title`,children:`Tasks`}),q(`p`,{className:`page-sub`,children:`Every issue archied has picked up, and where it stands.`})]}),q(`div`,{className:`page-actions`,children:q(`button`,{className:`btn`,onClick:D,children:`Refresh`})})]}),r?q(`div`,{className:`grid grid-4 task-summary`,children:q(`div`,{className:`card`,children:q(Rt,{title:`Cannot reach archied`,detail:r})})}):P(),q(`div`,{className:`card`,children:[q(`div`,{className:`card-head`,children:[q(`div`,{children:[q(`h2`,{className:`card-title`,children:`All tasks`}),q(`p`,{className:`card-sub`,children:`Click a row for its timeline`})]}),q(`div`,{className:`task-filters`,children:[q(`input`,{className:`task-search`,type:`search`,placeholder:`Search by title or repo…`,value:s,onInput:e=>c(e.target.value.trim().toLowerCase())}),q(`select`,{className:`task-filter`,value:a,onChange:e=>o(e.target.value),children:[q(`option`,{value:``,children:`All statuses`}),q(`option`,{value:`needs_you`,children:`Needs you`}),Je().map(e=>q(`option`,{value:e,children:Ke(e)},e))]})]})]}),q(`div`,{className:`table-scroll`,children:q(`table`,{className:`table`,children:[q(`thead`,{children:q(`tr`,{children:[`Repo`,`Issue`,`Title`,`Status`,`Workflow`,`Stage`,`Last activity`,`Action`].map(e=>q(`th`,{children:e},e))})}),q(`tbody`,{children:(()=>{if(r)return q(`tr`,{children:q(`td`,{colSpan:8,children:q(Rt,{title:`Cannot reach archied`,detail:r})})});if(!t)return q(`tr`,{children:q(`td`,{colSpan:8,children:q(`div`,{className:`task-timeline-loading`,children:`Loading tasks...`})})});if(!t.length)return q(`tr`,{children:q(`td`,{colSpan:8,children:q(Rt,{title:`No tasks yet`,detail:`Tasks appear here once archied picks up an issue to work.`})})});let e=t.filter(e=>yt(e,a)?!s||`${e.title} ${e.repo}`.toLowerCase().includes(s):!1);return e.length?e.map(e=>{let t=d===e.id,n=`task-timeline-${e.id}`;return q(S,{children:[q(`tr`,{className:`task-row`,id:`task-row-${e.id}`,tabIndex:0,onKeyDown:t=>{(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),M(e.id,t))},onClick:t=>M(e.id,t),...gt(e,t),children:[q(`td`,{className:`mono`,"data-label":`Repository`,children:[q(`button`,{className:`task-expand`,type:`button`,"aria-expanded":String(t),"aria-controls":n,"aria-label":`${t?`Collapse`:`Expand`} timeline for ${e.title||`untitled task`}`,onClick:t=>M(e.id,t),children:t?`−`:`+`}),L(e)??`${e.owner}/${e.repo}`]}),q(`td`,{className:`mono`,"data-label":`Issue`,children:ee(e)??`#${e.issue_number}`}),q(`td`,{className:`strong`,"data-label":`Title`,children:q(`a`,{className:`task-detail-link`,href:`#/tasks/${e.id}`,title:`Open the run detail for this task`,onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),children:e.title||`(untitled)`})}),q(`td`,{"data-label":`Status`,children:q(Z,{text:Ke(e.status),kind:qe(e.status)})}),q(`td`,{"data-label":`Workflow`,children:e.workflow||`—`}),q(`td`,{"data-label":`Stage`,children:e.stage||`—`}),q(`td`,{"data-label":`Last activity`,title:e.created_at?`Created ${Y(e.created_at)}`:``,children:Y(e.updated_at)}),q(`td`,{"data-label":`Actions`,children:F(e)})]}),t&&R(e)]},e.id)}):q(`tr`,{children:q(`td`,{colSpan:8,children:q(Rt,{title:`No matching tasks`,detail:`Try a different search or status filter.`})})})})()})]})})]})]})}function Vt(e){return q(Bt,{query:e})}function Ht(e,t){return`${e}-tab-${t}`}function Ut(e,t){return`${e}-panel-${t}`}function Wt({tabs:e,active:t,onSelect:n,prefix:r=`run`,label:i=`Run detail views`}){let a=W([]),o=t=>{let r=e[t];r&&(n?.(r.id),a.current[t]?.focus?.())};return q(`div`,{className:`tab-bar`,role:`tablist`,"aria-label":i,onKeyDown:n=>{let r=e.findIndex(e=>e.id===t);if(r<0)return;let i;if(n.key===`ArrowRight`)i=(r+1)%e.length;else if(n.key===`ArrowLeft`)i=(r-1+e.length)%e.length;else if(n.key===`Home`)i=0;else if(n.key===`End`)i=e.length-1;else return;n.preventDefault(),o(i)},children:e.map((e,i)=>{let o=e.id===t;return q(`button`,{ref:e=>{a.current[i]=e},id:Ht(r,e.id),className:`tab${o?` is-selected`:``}`,type:`button`,role:`tab`,"aria-selected":o,"aria-controls":Ut(r,e.id),tabIndex:o?0:-1,onClick:()=>n?.(e.id),children:e.label},e.id)})})}var Gt={ok:{label:`ok`,kind:`ok`},failed:{label:`failed`,kind:`danger`},interrupted:{label:`interrupted`,kind:`warn`},running:{label:`running`,kind:`info`},unknown:{label:`unknown`,kind:`idle`}};function Kt(e){return Gt[e]||{label:e||`unknown`,kind:`idle`}}function qt(e,t,n){return(e||[]).filter(e=>e&&e.kind===`agent_finish`&&Number(e.attempt)===Number(t)&&(e.stage||``)===(n||``)).map(e=>Ct(e))}function Jt(e){let t=e instanceof Date?e:new Date(e);return Number.isNaN(t.getTime())?`start time not recorded`:`started ${t.toISOString().replace(`T`,` `).slice(0,16)} UTC`}function Yt({stage:e,attemptNumber:t,events:n}){let r=Kt(e.status),i=xt(e.duration_ms),a=qt(n,t,e.name);return q(`li`,{className:`run-stage`,"data-status":e.status||`unknown`,children:[q(`span`,{className:`run-stage-node`,"aria-hidden":`true`}),q(`div`,{className:`run-stage-body`,children:[q(`div`,{className:`run-stage-head`,children:[q(`span`,{className:`run-stage-name mono`,children:e.name||`(unnamed stage)`}),q(Z,{text:r.label,kind:r.kind}),q(`span`,{className:`run-stage-duration`,children:i?`ran for ${i}`:`duration not recorded`})]}),e.error?q(`div`,{className:`run-stage-error`,children:e.error}):null,a.map((e,t)=>q(`div`,{className:`run-agent-report`,children:[q(`span`,{className:`run-agent-report-label`,children:`Agent's own report, not verified by archie: `}),[e.title,e.detail].filter(Boolean).join(` · `)]},t))]})]})}function Xt({title:e,detail:t}){return q(`div`,{className:`empty`,children:[q(`div`,{className:`empty-title`,children:e}),t&&q(`div`,{children:t})]})}function Zt({count:e}){let t=Number(e)||0;return t?q(`p`,{className:`run-rail-note`,children:[t,` event`,t===1?``:`s`,` on this task predate attempt attribution and cannot be assigned to a run.`]}):null}function Qt({state:e,attemptNumber:t,events:n,onRetry:r}){if(e===void 0)return q(`div`,{className:`run-loading`,children:`Loading this task's attempts…`});if(e===null)return q(`div`,{className:`run-error`,children:[q(`div`,{className:`run-error-title`,children:`Could not load this task's attempts`}),q(`div`,{className:`run-error-detail`,children:`archied did not answer for this task's run history. It may be restarting — retry, or check the daemon.`}),r?q(`button`,{className:`btn`,type:`button`,onClick:r,children:`Retry`}):null]});let i=e?.attempts||[];if(!i.length)return q(S,{children:[q(Xt,{title:`No attempts recorded`,detail:`This task has no recorded run. An attempt is written when a stage event is emitted, and none exist here.`}),q(Zt,{count:e?.unattributed_events})]});let a=i.find(e=>Number(e.attempt)===Number(t));if(!a)return q(S,{children:[q(Xt,{title:`Attempt ${t} is not recorded for this task`,detail:`This task recorded attempt ${i.map(e=>e.attempt).join(`, `)}.`}),q(Zt,{count:e?.unattributed_events})]});let o=a.stages||[],s=Kt(a.status);return q(`div`,{className:`run-rail`,children:[q(`div`,{className:`run-rail-head`,children:[q(`span`,{className:`run-rail-attempt`,children:[`Attempt `,a.attempt]}),q(Z,{text:s.label,kind:s.kind}),q(`span`,{className:`run-rail-when`,children:Jt(a.started_at)})]}),o.length?q(`ol`,{className:`run-stages`,"aria-label":`Stages recorded in attempt ${a.attempt}`,children:o.map((e,t)=>q(Yt,{stage:e,attemptNumber:a.attempt,events:n},`${e.seq??t}:${e.name}`))}):q(Xt,{title:`No stages recorded for this attempt`,detail:`The attempt exists, but nothing recorded a stage for it.`}),q(`p`,{className:`run-rail-legend`,children:[q(`strong`,{children:`ok`}),` means the stage returned without error. Archie records no exit code and does not verify that the work was correct, so this is a progress status, not a check result.`]}),q(Zt,{count:e?.unattributed_events})]})}var $t={added:`Added`,modified:`Modified`,deleted:`Deleted`,renamed:`Renamed`,typechange:`Type changed`};function en(e){return $t[e]||e||`unknown`}function tn(e,t){let n=e?.repo_url||t?.repo_url||``,r=t&&String(t.pr_number??``)!==``&&String(t.pr_number)===String(e?.pr_number??``);return{repo:n,pr:e?.pr_url||r&&t.pr_url||``}}function nn(e={}){let t=Number(e.files)||0,n=[`${t} file${t===1?``:`s`}`];return e.additions&&n.push(`+${e.additions}`),e.deletions&&n.push(`−${e.deletions}`),n.join(` · `)}function rn({capture:e}){let t=e.files||[],n=Number(e.totals?.files)||t.length;return t.length?q(S,{children:[q(`table`,{className:`table run-changes-table`,children:[q(`thead`,{children:q(`tr`,{children:[q(`th`,{children:`Path`}),q(`th`,{children:`Change`}),q(`th`,{className:`run-changes-count`,children:`Added`}),q(`th`,{className:`run-changes-count`,children:`Deleted`})]})}),q(`tbody`,{children:t.map((e,t)=>q(`tr`,{children:[q(`td`,{className:`mono run-changes-path`,children:[e.old_path?q(`span`,{className:`run-changes-old`,children:[e.old_path,` → `]}):null,e.path]}),q(`td`,{children:[en(e.status),e.binary?q(`span`,{className:`run-changes-hint`,children:`no textual hunks`}):null]}),q(`td`,{className:`run-changes-count mono`,children:e.additions?`+${e.additions}`:`—`}),q(`td`,{className:`run-changes-count mono`,children:e.deletions?`−${e.deletions}`:`—`})]},`${e.path}:${t}`))})]}),e.truncated?q(`p`,{className:`run-changes-note`,children:[`Showing the first `,t.length,` of `,n,` files. The totals above cover every file in this capture.`]}):null]}):q(`div`,{className:`run-changes-empty`,children:[`This capture recorded no file entries`,n?`, though its totals cover ${n} file${n===1?``:`s`}`:``,`.`]})}function an({capture:e,task:t}){let n=tn(e,t),r=e.pr_number;return q(`section`,{className:`run-capture`,children:[q(`div`,{className:`run-capture-head`,children:[q(`span`,{className:`run-capture-when`,children:[e.captured_after?`Captured after ${e.captured_after}`:`Captured`,e.stage?` in stage ${e.stage}`:``]}),q(`span`,{className:`run-capture-at`,children:e.captured_at?Y(e.captured_at):``})]}),q(`div`,{className:`run-capture-meta`,children:[q(`span`,{className:`mono`,children:n.repo?q(`a`,{className:`run-capture-link`,href:n.repo,target:`_blank`,rel:`noreferrer`,children:[e.owner,`/`,e.repo]}):`${e.owner||``}/${e.repo||``}`}),e.branch?q(`span`,{className:`mono run-capture-branch`,children:[e.branch,e.base?` → ${e.base}`:``]}):null,e.head_sha?q(`span`,{className:`mono run-capture-sha`,children:String(e.head_sha).slice(0,8)}):null,r?n.pr?q(`a`,{className:`run-capture-link`,href:n.pr,target:`_blank`,rel:`noreferrer`,children:[`PR #`,r]}):q(`span`,{className:`mono`,children:[`PR #`,r]}):null,q(`span`,{className:`run-capture-totals`,children:nn(e.totals)})]}),q(rn,{capture:e})]})}function on({state:e,task:t,onRetry:n}){if(e===void 0)return q(`div`,{className:`run-loading`,children:`Loading changed files…`});if(e===null)return q(`div`,{className:`run-error`,children:[q(`div`,{className:`run-error-title`,children:`Could not load this attempt's changed files`}),q(`div`,{className:`run-error-detail`,children:`archied did not answer for this attempt. It may be restarting — retry, or check the daemon.`}),n?q(`button`,{className:`btn`,type:`button`,onClick:n,children:`Retry`}):null]});let r=e.captures||[];return e.found===!0&&!r.length?q(`div`,{className:`empty`,children:[q(`div`,{className:`empty-title`,children:`A change capture was recorded but could not be read`}),q(`div`,{children:`This attempt has a change capture event, but this dashboard could not decode its payload. That is a read failure, not a statement about what the attempt changed.`})]}):!e.found||!r.length?q(`div`,{className:`empty`,children:[q(`div`,{className:`empty-title`,children:`No change capture was recorded for this attempt`}),q(`div`,{children:`Archie records what an attempt changed when it commits or pushes that work. Nothing was recorded here — the attempt may predate capture, or it produced no commit. This is not the same as "no files changed".`})]}):q(`div`,{className:`run-changes`,children:r.map((e,n)=>q(an,{capture:e,task:t},`${e.captured_at||``}:${n}`))})}function sn(e,t){return(e||[]).find(e=>e&&e.kind===`config_captured`&&Number(e.attempt)===Number(t))||null}function cn({events:e,attempt:t,onRetry:n}){if(e===void 0)return q(`div`,{className:`run-loading`,children:`Loading this task's events…`});if(e===null)return q(`div`,{className:`run-error`,children:[q(`div`,{className:`run-error-title`,children:`Could not load this task's events`}),q(`div`,{className:`run-error-detail`,children:`The configuration is recorded as an event on the task, so it cannot be shown while the event stream is unreadable. archied did not answer — retry, or check the daemon.`}),n?q(`button`,{className:`btn`,type:`button`,onClick:n,children:`Retry`}):null]});let r=sn(e,t);if(!r)return q(`div`,{className:`empty`,children:[q(`div`,{className:`empty-title`,children:`Not captured for this run`}),q(`div`,{children:[`Archie records the effective configuration when it dispatches an attempt. Attempt `,t,` `,`has no such record — it predates the record, or the capture did not run. Nothing here says the run used the defaults.`]})]});let i=r.data||{},a=i.schema||``,o=i.document;return q(`div`,{className:`run-config`,children:[q(`p`,{className:`run-config-scope`,children:[`This is attempt `,r.attempt,`'s effective task-runtime configuration: a non-secret subset covering bot identity, models, limits, budgets, dispatch, diff cap, notifications, forge host and tool policy. It is not the dashboard configuration view — providers, repositories, identities, credentials and lock state are not part of it.`]}),q(`div`,{className:`run-config-when`,children:[`Captured `,r.at||`at an unrecorded time`,r.stage?` in stage ${r.stage}`:``]}),a===`archie/task-config@1`?q(`pre`,{className:`run-json`,children:JSON.stringify(o??{},null,2)}):q(S,{children:[q(`div`,{className:`run-config-unknown`,children:[`Recorded in an unknown schema`,a?` (${a})`:``,`. The raw payload is shown verbatim; nothing here reinterprets it.`]}),q(`pre`,{className:`run-json`,children:JSON.stringify(i,null,2)})]})]})}function ln({state:e,attempt:t,onRetry:n}){return e===void 0?q(`div`,{className:`run-loading`,children:`Loading the stored record…`}):e===null?q(`div`,{className:`run-error`,children:[q(`div`,{className:`run-error-title`,children:`Could not load the stored record`}),q(`div`,{className:`run-error-detail`,children:`archied did not answer for this task's debug view. It may be restarting — retry, or check the daemon.`}),n?q(`button`,{className:`btn`,type:`button`,onClick:n,children:`Retry`}):null]}):q(`div`,{className:`run-debug`,children:[q(`p`,{className:`run-debug-note`,children:[`The stored task record and its events, verbatim. Events are unfiltered on purpose: this is every event the task has, and each one carries the attempt it belongs to. Attempt `,t,` `,`is the one selected above.`]}),q(`pre`,{className:`run-json`,children:JSON.stringify(e,null,2)})]})}var un=[{id:`stages`,label:`Stages`},{id:`log`,label:`Log`},{id:`changes`,label:`Changed files`},{id:`config`,label:`Configuration`},{id:`debug`,label:`Debug`}],dn=`run`,fn=new Set(un.map(e=>e.id));function pn(e){let t=String(e??``).trim();if(!/^\d+$/.test(t))return null;let n=Number(t);return Number.isSafeInteger(n)&&n>0?n:null}function mn(e){let t=e?.get?.(`tab`)||``;return fn.has(t)?t:un[0].id}function hn(e){let t=e?.get?.(`attempt`);if(t==null||t===``)return null;let n=Number(t);return Number.isInteger(n)&&n>0?n:null}function gn(e,t,n){let r=new URLSearchParams;return r.set(`tab`,t||un[0].id),n&&r.set(`attempt`,String(n)),`#/tasks/${e}?${r.toString()}`}function _n(e,t,n){try{window.history.replaceState(null,``,`${location.pathname}${location.search}${gn(e,t,n)}`)}catch{}}function vn(e,t){return`${e}|${Number(t)||0}`}function yn({title:e,detail:t}){return q(`div`,{className:`empty`,children:[q(`div`,{className:`empty-title`,children:e}),t&&q(`div`,{children:t})]})}function bn({id:e}){return q(`div`,{children:[q(`div`,{className:`page-head`,children:[q(`div`,{children:[q(`h1`,{className:`page-title`,children:`Task not found`}),q(`p`,{className:`page-sub`,children:[`No task with id `,e,` in this deployment.`]})]}),q(`div`,{className:`page-actions`,children:q(`a`,{className:`btn`,href:`#/tasks`,children:`Back to tasks`})})]}),q(`div`,{className:`card`,children:q(`div`,{className:`empty`,children:[q(`div`,{className:`empty-title`,children:[`Nothing is recorded for task `,e]}),q(`div`,{children:`archied answered that this task does not exist, so there is no run history to show.`})]})})]})}function xn({raw:e}){return q(`div`,{children:[q(`div`,{className:`page-head`,children:[q(`div`,{children:[q(`h1`,{className:`page-title`,children:`Not a task id`}),q(`p`,{className:`page-sub`,children:`The run view addresses one task by its id: #/tasks/42`})]}),q(`div`,{className:`page-actions`,children:q(`a`,{className:`btn`,href:`#/tasks`,children:`Back to tasks`})})]}),q(`div`,{className:`card`,children:q(`div`,{className:`empty`,children:[q(`div`,{className:`empty-title`,children:[`“`,e,`” is not a task id`]}),q(`div`,{children:`A task id is a positive whole number. Nothing was requested.`})]})})]})}function Sn({attempts:e,selected:t,onSelect:n}){let r=e?.attempts||[];return r.length?q(`div`,{className:`run-attempts`,role:`group`,"aria-label":`Attempts of this task`,children:r.map(e=>{let r=Kt(e.status),i=Number(e.attempt)===Number(t);return q(`button`,{type:`button`,className:`run-attempt${i?` is-selected`:``}`,"aria-pressed":i,onClick:()=>n(e.attempt),children:[q(`span`,{className:`run-attempt-id`,children:[`Attempt `,e.attempt]}),q(Z,{text:r.label,kind:r.kind}),q(`span`,{className:`run-attempt-meta`,children:[(e.stages||[]).length,` stage`,(e.stages||[]).length===1?``:`s`]})]},e.attempt)})}):null}function Cn({id:e,query:t}){let[n,r]=H(()=>mn(t)),[i,a]=H(()=>hn(t)),[o,s]=H(void 0),[c,l]=H(void 0),[u,d]=H(!1),[f,p]=H(void 0),[m,h]=H(At),[g,_]=H(new Map),[v,y]=H(new Map),[b,x]=H(new Map),[S,C]=H(!1),[w,T]=H(null),[E,D]=H(0),O=W(new Set),k=Array.isArray(o)&&o.find(t=>String(t.id)===String(e))||null,A=Number(c?.current_attempt)>0?Number(c.current_attempt):null,j=i??A,M=(c?.attempts||[]).find(e=>Number(e.attempt)===Number(j)),N=[...new Set((M?.stages||[]).map(e=>e.name).filter(Boolean))],P=(e,t,n,{force:r=!1}={})=>{O.current.has(e)&&!r||(O.current.add(e),n(t=>new Map(t).set(e,void 0)),t().then(t=>n(n=>new Map(n).set(e,t))).catch(()=>n(t=>new Map(t).set(e,null))))},F=()=>{s(void 0),K.tasks().then(e=>s(e)).catch(()=>s(null))},I=()=>{l(void 0),d(!1),K.taskAttempts(e).then(e=>l(e)).catch(e=>{e?.status===404&&d(!0),l(null)})},L=()=>{p(void 0),K.task(e).then(e=>p(e||[])).catch(()=>p(null))},ee=(t,n)=>P(jt(e,t,m),()=>K.taskLogs(e,{attempt:t||void 0,level:m.level,stage:m.stage,limit:500}),_,n),R=(t,n)=>P(vn(e,t),()=>K.taskChanges(e,{attempt:t}),y,n),te=(t,n)=>P(vn(e,t),()=>K.taskDebug(e,{attempt:t}),x,n),ne=()=>{O.current=new Set,_(new Map),y(new Map),x(new Map),F(),I(),L(),D(e=>e+1)};U(()=>{F(),I(),L()},[]),U(()=>{j!=null&&(n===`log`?ee(j):n===`changes`?R(j):n===`debug`&&te(j))},[n,j,m,E]),U(()=>{_n(e,n,j)},[e,n,j]);let re=async()=>{let t=k?.title||`task ${e}`;if(window.confirm(`Start a new run for "${t}"? This is a new attempt, and the previous attempt's commits are discarded.`)){T(null),C(!0);try{await K.taskAction(e,`retry`),O.current=new Set,_(new Map),y(new Map),x(new Map),a(null),F(),I(),L(),D(e=>e+1)}catch(e){T(Ne(e))}finally{C(!1)}}};if(u)return q(bn,{id:e});let ie=j==null?null:jt(e,j,m),ae=vn(e,j),z=vn(e,j),B=()=>{if(n===`stages`)return q(Qt,{state:c,attemptNumber:j,events:f,onRetry:I});if(c===void 0)return q(`div`,{className:`run-loading`,children:`Loading this task's attempts…`});if(c===null)return q(`div`,{className:`run-error`,children:[q(`div`,{className:`run-error-title`,children:`Could not load this task's attempts`}),q(`div`,{className:`run-error-detail`,children:`This panel reads one attempt, and the task's run history could not be read.`}),q(`button`,{className:`btn`,type:`button`,onClick:I,children:`Retry`})]});if(j==null)return q(yn,{title:`No attempt recorded`,detail:`This task has no recorded run, so there is nothing to read for an attempt.`});switch(n){case`log`:return q(Pt,{state:ie&&g.has(ie)?g.get(ie):void 0,attempt:j,stages:N,filters:m,onFilterChange:h,taskId:e,onRetry:()=>ee(j,{force:!0})});case`changes`:return q(on,{state:v.has(ae)?v.get(ae):void 0,task:k,onRetry:()=>R(j,{force:!0})});case`config`:return q(cn,{events:f,attempt:j,onRetry:L});case`debug`:return q(ln,{state:b.has(z)?b.get(z):void 0,attempt:j,onRetry:()=>te(j,{force:!0})});default:return q(Qt,{state:c,attemptNumber:j,events:f,onRetry:I})}},oe=Xe(`retry`),se=!!(oe&&(k?.actions||[]).includes(`retry`));return q(`div`,{className:`run-page`,children:[q(`div`,{className:`page-head`,children:[q(`div`,{children:[q(`h1`,{className:`page-title`,children:k?.title||`Task #${e}`}),q(`p`,{className:`page-sub`,children:[`One run of task `,e,k?.workflow?` · ${k.workflow} workflow`:``,k?.repo?` · ${k.owner}/${k.repo}`:``]})]}),q(`div`,{className:`page-actions`,children:[q(`a`,{className:`btn`,href:`#/tasks`,children:`Back to tasks`}),q(`button`,{className:`btn`,type:`button`,onClick:ne,children:`Refresh`})]})]}),q(`div`,{className:`run-meta`,children:[q(`span`,{className:`run-meta-item`,children:[q(`span`,{className:`run-meta-label`,children:`Task status`}),o===void 0?q(`span`,{className:`run-meta-muted`,children:`loading…`}):k?q(Z,{text:Ke(k.status),kind:qe(k.status)}):q(`span`,{className:`run-meta-muted`,children:`not read`})]}),q(`span`,{className:`run-meta-item`,children:[q(`span`,{className:`run-meta-label`,children:`Attempt`}),q(`span`,{className:`run-meta-value`,children:c===null?`run history unreadable`:c===void 0?`loading…`:j==null?`none recorded`:`attempt ${j} of ${A??j}`})]}),k?.repo_url?q(`a`,{className:`run-meta-link`,href:k.repo_url,target:`_blank`,rel:`noreferrer`,children:[k.owner,`/`,k.repo]}):null,k?.issue_url&&k.issue_number?q(`a`,{className:`run-meta-link`,href:k.issue_url,target:`_blank`,rel:`noreferrer`,children:[`Issue #`,k.issue_number]}):null,k?.pr_url&&k.pr_number?q(`a`,{className:`run-meta-link`,href:k.pr_url,target:`_blank`,rel:`noreferrer`,children:[`PR #`,k.pr_number]}):null]}),o===null?q(`p`,{className:`run-note`,children:`The task list could not be read, so this page cannot show the task's current status or its operator controls. The run history below comes from the task's own endpoints.`}):null,Array.isArray(o)&&!k?q(`p`,{className:`run-note`,children:[`Task `,e,` is not among the tasks this dashboard lists (the list covers the 100 most recently updated). Its recorded attempts are shown below; the Debug tab holds the stored record verbatim.`]}):null,q(`section`,{className:`run-restart`,"aria-label":`Start a new run`,children:[q(`button`,{className:`btn ${oe?.kind===`primary`?`btn-primary`:``}`,type:`button`,disabled:!se||S,title:`Retry this task as a new run`,onClick:re,children:S?`Starting…`:`Start a new run`}),q(`p`,{className:`run-restart-copy`,children:`Starts a new attempt for this task: a fresh worktree reset onto the base branch. The previous attempt's commits are discarded — they are not carried into the new run.`}),!se&&o!==void 0?q(`p`,{className:`run-restart-unavailable`,children:k?`A new run can only start from a parked task. This task is ${Ke(k.status)}.`:`This task's operator controls could not be read, so a new run cannot be started from here.`}):null,w?q(`p`,{className:`run-restart-error run-restart-error-${w.kind}`,children:w.kind===`session-expired`?`Your session has expired. Reload to sign in.`:w.kind===`refused`?`${w.message} — this run cannot be restarted from here.`:`${w.message} — try again, or check the daemon.`}):null]}),q(Sn,{attempts:c,selected:j,onSelect:e=>a(e)}),q(`div`,{className:`card run-card`,children:[q(Wt,{tabs:un,active:n,onSelect:r,prefix:dn}),q(`div`,{className:`run-panel`,role:`tabpanel`,id:Ut(dn,n),"aria-labelledby":Ht(dn,n),tabIndex:0,children:B()})]})]})}function wn(e,t){let n=t?.id,r=pn(n);return r===null?q(xn,{raw:n??``}):q(Cn,{id:r,query:e},r)}function Tn({title:e,detail:t}){return q(`div`,{class:`empty`,children:[q(`div`,{class:`empty-title`,children:e}),t&&q(`div`,{children:t})]})}function En(e){return q(Dn,{query:e})}function Dn(){let[e,t]=H([]),[n,r]=H(``),[i,a]=H(null),o=async()=>{try{let e=await K.skills();t(e?.skills||[]),a(null)}catch(e){t([]),a(String(e.message||e))}};U(()=>{o()},[]);let s=(e,t)=>!t||`${e.name} ${e.description}`.toLowerCase().includes(t),c=ve(()=>e.filter(e=>s(e,n)),[e,n]);return q(`div`,{children:[q(`div`,{class:`page-head`,children:[q(`div`,{children:[q(`h1`,{class:`page-title`,children:`Skills`}),q(`p`,{class:`page-sub`,children:`What Archie can do, in plain language.`})]}),q(`div`,{class:`page-actions`,children:q(`button`,{class:`btn`,onClick:o,children:`Refresh`})})]}),q(`div`,{class:`card`,children:[q(`div`,{class:`card-head`,children:[q(`div`,{children:[q(`h2`,{class:`card-title`,children:`Catalogue`}),q(`p`,{class:`card-sub`,children:`Project, shared, and user-global skills`})]}),q(`input`,{class:`skill-search`,type:`search`,placeholder:`Search skills…`,onInput:e=>r(e.target.value.trim().toLowerCase())})]}),q(`div`,{class:`grid grid-2`,children:i?q(Tn,{title:`Cannot reach archied`,detail:i}):e.length?c.length?c.map(e=>q(`div`,{class:`card skill-card`,children:[q(`div`,{class:`card-head`,children:[q(`h3`,{class:`card-title`,children:e.name||`Untitled skill`}),e.workflow&&q(Z,{text:e.workflow,kind:`info`})]}),q(`p`,{class:`skill-desc`,children:e.description||`No description provided.`}),q(`div`,{class:`skill-source`,children:e.source||`Unknown source`})]},e.name)):q(Tn,{title:`No skills match`,detail:`Nothing found for "${n}".`}):q(Tn,{title:`No skills discovered yet`,detail:`Skills live as SKILL.md files under project, shared, or user-global .agents/skills// directories. Add one and refresh to make it available.`})})]})]})}function On(e,t){let n=new Map((e||[]).map(e=>[e.workflow,e])),r=[],i=new Set;for(let e of t||[])i.add(e.id),r.push({...e,...n.get(e.id)||{workflow:e.id,runs:0,merged:0}});for(let t of e||[])i.has(t.workflow)||r.push({id:t.workflow,name:t.workflow,...t});return r}var kn={bootstrap:`Bootstrap`,implement:`Implement`,tdd:`TDD`,feasibility:`Feasibility check`};function An(e){return kn[e]?kn[e]:e?e.charAt(0).toUpperCase()+e.slice(1).replace(/_/g,` `):`Unknown`}function jn(e,t){return t?Math.round(e/t*100):0}function Mn(e){if(!e)return`—`;if(e<1e3)return`${e} ms`;let t=e/1e3;return t<60?`${t.toFixed(1)} s`:`${(t/60).toFixed(1)} min`}function Nn({title:e,detail:t}){return q(`div`,{class:`empty`,children:[q(`div`,{class:`empty-title`,children:e}),t&&q(`div`,{children:t})]})}function Pn({fraction:e,kind:t=`ok`}){let n=Math.min(100,Math.max(0,e));return q(`div`,{class:`wf-bar`,children:q(`div`,{class:`wf-bar-fill wf-bar-${t}`,style:{width:`${n}%`}})})}function Fn(e){return q(In,{query:e})}function In(){let[e,t]=H([]),[n,r]=H([]),[i,a]=H([]),[o,s]=H(null),c=async()=>{try{let e=await K.workflows();t(e?.definitions||[]),r(e?.workflows||[]),a(e?.stages||[]),s(null)}catch(e){s(String(e.message||e))}};return U(()=>{c()},[]),q(`div`,{children:[q(`div`,{class:`page-head`,children:[q(`div`,{children:[q(`h1`,{class:`page-title`,children:`Workflows`}),q(`p`,{class:`page-sub`,children:`Run outcomes and spend per workflow, and where stages get stuck.`})]}),q(`div`,{class:`page-actions`,children:q(`button`,{class:`btn`,onClick:c,children:`Refresh`})})]}),q(Ln,{definitions:e}),o?q(`div`,{class:`card`,children:q(Nn,{title:`Cannot reach archied`,detail:o})}):q(S,{children:[q(Rn,{workflows:n,definitions:e}),q(zn,{stages:i})]})]})}function Ln({definitions:e}){if(!e.length)return null;let t=e.filter(e=>e.enabled)[0]?.id||``,[n,r]=H(``),[i,a]=H(``),[o,s]=H(t),[c,l]=H(``),[u,d]=H(``),[f,p]=H(!1),[m,h]=H(``);return U(()=>{!o&&t&&s(t)},[t,o]),q(`div`,{class:`card`,children:[q(`div`,{class:`card-head`,children:q(`div`,{children:[q(`h2`,{class:`card-title`,children:`Start work`}),q(`p`,{class:`card-sub`,children:`This enters Archie’s normal admitted task queue.`})]})}),q(`form`,{class:`wf-form`,onSubmit:async e=>{e.preventDefault(),p(!0),h(``);try{let e=await K.workRequest({identity:n,repository:i,workflow:o,title:c,instructions:u});h(`Queued task #${e.task_id}.`),r(``),a(``),s(t),l(``),d(``)}catch(e){h(String(e.message||e))}finally{p(!1)}},children:[q(`input`,{placeholder:`Identity`,required:!0,value:n,onInput:e=>r(e.target.value)}),q(`input`,{placeholder:`owner/repository`,required:!0,value:i,onInput:e=>a(e.target.value)}),q(`select`,{required:!0,value:o,onInput:e=>s(e.target.value),children:e.filter(e=>e.enabled).map(e=>q(`option`,{value:e.id,children:An(e.name||e.id)},e.id))}),q(`input`,{placeholder:`Short task title`,required:!0,value:c,onInput:e=>l(e.target.value)}),q(`textarea`,{placeholder:`Instructions for the work`,required:!0,rows:3,value:u,onInput:e=>d(e.target.value)}),q(`button`,{class:`btn`,type:`submit`,disabled:f,children:`Start work`}),m&&q(`p`,{class:`card-sub`,children:m})]})]})}function Rn({workflows:e,definitions:t}){let n=On(e,t);return n.length?q(`div`,{class:`card`,children:[q(`div`,{class:`card-head`,children:q(`div`,{children:[q(`h2`,{class:`card-title`,children:`Per workflow`}),q(`p`,{class:`card-sub`,children:`Success rate is merged tasks over all runs`})]})}),q(`div`,{class:`table-scroll`,children:q(`table`,{class:`table`,children:[q(`thead`,{children:q(`tr`,{children:[q(`th`,{children:`Workflow`}),q(`th`,{children:`Origin`}),q(`th`,{children:`Runs`}),q(`th`,{children:`Success rate`}),q(`th`,{children:`Avg tokens`}),q(`th`,{children:`Avg steps`})]})}),q(`tbody`,{children:n.map(e=>{let t=jn(e.merged,e.runs);return q(`tr`,{children:[q(`td`,{class:`strong`,children:An(e.workflow)}),q(`td`,{class:`mono`,children:e.origin||`registry`}),q(`td`,{children:`${e.runs} run${e.runs===1?``:`s`}`}),q(`td`,{children:[q(`div`,{class:`wf-rate`,children:[t,`%`,q(`span`,{class:`wf-rate-sub`,children:[e.merged,` of `,e.runs,` merged`]})]}),q(Pn,{fraction:t,kind:t>=50?`ok`:`warn`})]}),q(`td`,{class:`mono`,children:e.avg_tokens?e.avg_tokens.toLocaleString():`—`}),q(`td`,{class:`mono`,children:e.avg_steps?e.avg_steps.toFixed(1):`—`})]},e.workflow)})})]})})]}):q(`div`,{class:`card`,children:[q(`div`,{class:`card-head`,children:q(`div`,{children:q(`h2`,{class:`card-title`,children:`Per workflow`})})}),q(Nn,{title:`No workflow runs yet`,detail:`Stats appear here once a task has run through a workflow.`})]})}function zn({stages:e}){if(!e.length)return q(`div`,{class:`card wf-stage-card`,children:[q(`div`,{class:`card-head`,children:q(`div`,{children:q(`h2`,{class:`card-title`,children:`Per stage`})})}),q(Nn,{title:`No stage data yet`,detail:`Stage timing and failures appear here once workflows have run.`})]});let t=Math.max(...e.map(e=>e.avg_ms||0),1),n=[...e].sort((e,t)=>(t.avg_ms||0)-(e.avg_ms||0)),r=[...e].filter(e=>e.errors>0).sort((e,t)=>t.errors-e.errors);return q(`div`,{class:`grid grid-2 wf-stage-card`,children:[q(`div`,{class:`card`,children:[q(`div`,{class:`card-head`,children:q(`div`,{children:[q(`h2`,{class:`card-title`,children:`Slowest stages`}),q(`p`,{class:`card-sub`,children:`Average duration, this workflow's stages`})]})}),q(`div`,{class:`table-scroll`,children:q(`table`,{class:`table`,children:[q(`thead`,{children:q(`tr`,{children:[q(`th`,{children:`Workflow`}),q(`th`,{children:`Stage`}),q(`th`,{children:`Runs`}),q(`th`,{children:`Avg duration`})]})}),q(`tbody`,{children:n.map((e,n)=>q(`tr`,{children:[q(`td`,{children:An(e.workflow)}),q(`td`,{class:`strong`,children:e.stage}),q(`td`,{children:e.runs}),q(`td`,{children:[q(`div`,{class:`wf-rate`,children:Mn(e.avg_ms)}),q(Pn,{fraction:jn(e.avg_ms,t),kind:`info`})]})]},n))})]})})]}),q(`div`,{class:`card`,children:[q(`div`,{class:`card-head`,children:q(`div`,{children:[q(`h2`,{class:`card-title`,children:`Most failures`}),q(`p`,{class:`card-sub`,children:`Stages that error out, over their runs`})]})}),r.length?q(`div`,{class:`table-scroll`,children:q(`table`,{class:`table`,children:[q(`thead`,{children:q(`tr`,{children:[q(`th`,{children:`Workflow`}),q(`th`,{children:`Stage`}),q(`th`,{children:`Failures`})]})}),q(`tbody`,{children:r.map((e,t)=>q(`tr`,{children:[q(`td`,{children:An(e.workflow)}),q(`td`,{class:`strong`,children:e.stage}),q(`td`,{children:[q(`div`,{class:`wf-rate`,children:[e.errors,` of `,e.runs]}),q(Pn,{fraction:jn(e.errors,e.runs),kind:`danger`})]})]},t))})]})}):q(Nn,{title:`No failures recorded`,detail:`Every stage has completed cleanly so far.`})]})]})}function Bn({title:e,detail:t}){return q(`div`,{className:`empty`,children:[q(`div`,{className:`empty-title`,children:e}),t&&q(`div`,{children:t})]})}function Vn(e,t){return e===`running`?`ok`:e===`failed`||e===`degraded`?`warn`:`idle`}function Hn(){let[e,t]=H([]),[n,r]=H(null),i=async()=>{try{let e=await K.channels();t(e?.channels||[]),r(null)}catch(e){r(String(e.message||e))}};return U(()=>{i()},[]),q(`div`,{children:[q(`div`,{className:`page-head`,children:[q(`div`,{children:[q(`h1`,{className:`page-title`,children:`Channels`}),q(`p`,{className:`page-sub`,children:`The conversational front-ends Archie can be reached through.`})]}),q(`div`,{className:`page-actions`,children:q(`button`,{className:`btn`,onClick:i,children:`Refresh`})})]}),q(`div`,{className:`grid grid-2`,children:n?q(Bn,{title:`Cannot reach archied`,detail:n}):e.length===0?q(Bn,{title:`No channels configured`,detail:`Configure [chat.telegram] or [chat.webhook_addr] in config.toml to talk to Archie outside the dashboard.`}):e.map(e=>q(`div`,{className:`card channel-card`,children:[q(`div`,{className:`card-head`,children:[q(`h3`,{className:`card-title`,children:e.name}),q(Z,{text:e.state||(e.configured?`configured`:`stopped`),kind:Vn(e.state,e.configured)})]}),q(`p`,{className:`channel-desc`,children:e.description}),q(`p`,{className:`channel-detail`,children:e.detail}),e.reload_supported?q(`button`,{className:`btn`,onClick:async t=>{t.currentTarget.disabled=!0;try{await K.channelReload(e.id||e.name.toLowerCase()),await i()}catch{}finally{t.currentTarget&&(t.currentTarget.disabled=!1)}},children:`Reload`}):q(`p`,{className:`channel-detail`,children:`Reload requires a daemon restart for this adapter.`})]},e.id||e.name))})]})}function Un(e){return q(Hn,{query:e})}function Wn({title:e,detail:t}){return q(`div`,{className:`empty`,children:[q(`div`,{className:`empty-title`,children:e}),t&&q(`div`,{children:t})]})}function Gn(e){return q(Kn,{query:e})}function Kn({query:e}){let[t,n]=H([]),[r,i]=H(null),a=async()=>{try{let e=await K.curators();n(e?.curators||[]),i(null)}catch(e){i(String(e.message||e))}};return U(()=>{a()},[]),q(`div`,{children:[q(`div`,{className:`page-head`,children:[q(`div`,{children:[q(`h1`,{className:`page-title`,children:`Curators`}),q(`p`,{className:`page-sub`,children:`Background agents that maintain memory and skills: what ran, and why.`})]}),q(`div`,{className:`page-actions`,children:q(`button`,{className:`btn`,onClick:a,children:`Refresh`})})]}),q(`div`,{className:`grid grid-2`,children:r?q(Wn,{title:`Cannot reach archied`,detail:r}):t.length?t.map(e=>q(Jn,{curator:e},e.name)):q(Wn,{title:`No curators registered`,detail:`Curators are background agent loops that maintain memory and skills. None are registered on this daemon.`})})]})}function qn(e){switch(e){case`healthy`:return`ok`;case`degraded`:return`warn`;case`unhealthy`:return`danger`;default:return`idle`}}function Jn({curator:e}){let t=e.recent_actions||[];return q(`div`,{className:`card curator-card`,children:[q(`div`,{className:`card-head`,children:[q(`h3`,{className:`card-title`,children:e.name}),q(Z,{text:e.health?.status||`unknown`,kind:qn(e.health?.status)})]}),e.health?.message&&q(`p`,{className:`curator-health-message`,children:e.health.message}),q(`p`,{className:`curator-meta`,children:e.last_run_at?`Last ran ${Y(e.last_run_at)} · ${e.last_run_actions} action${e.last_run_actions===1?``:`s`}`:`Has not run yet`}),t.length?q(`ul`,{className:`curator-actions`,children:t.map((e,t)=>q(`li`,{className:`curator-action`,children:[q(`div`,{className:`curator-action-head`,children:[q(`span`,{className:`curator-action-type`,children:e.type||`action`}),q(`span`,{className:`curator-action-time`,children:Y(e.at)})]}),e.detail&&q(`p`,{className:`curator-action-detail`,children:e.detail}),e.reason&&q(`p`,{className:`curator-action-reason`,children:[`Why: `,e.reason]})]},t))}):q(`p`,{className:`curator-meta`,children:`No recorded activity yet.`})]})}function Yn(e){return e==null||e===``?`—`:String(e)}function Xn({label:e,value:t,opts:n}){let r=Yn(t),[i,a]=H(!1),[o,s]=H(``),[c,l]=H(null),[u,d]=H(!1),[f,p]=H(!1),m=n?.key;if(!m)return q(`div`,{className:`kv`,children:[q(`span`,{className:`kv-label`,title:n?.hint,children:e}),q(`span`,{className:`kv-value mono ${r===`—`?`is-empty`:``}`,title:r,children:r})]});let h=n.locked?.[m];if(h)return q(`div`,{className:`kv is-locked`,children:[q(`span`,{className:`kv-label`,title:n.hint,children:e}),q(`span`,{className:`kv-value mono ${r===`—`?`is-empty`:``}`,title:r,children:r}),q(`span`,{className:`kv-note`,children:h})]});if(n.editable===!1)return q(`div`,{className:`kv`,children:[q(`span`,{className:`kv-label`,title:n.hint,children:e}),q(`span`,{className:`kv-value mono ${r===`—`?`is-empty`:``}`,title:r,children:r})]});let g=n.overridden?.includes(m),_=()=>{s(String(n.raw??``)),l(null),a(!0)},v=async()=>{p(!0),l(null);try{await K.configReset(m),n.onSaved?.()}catch(e){l(String(e.message||e))}finally{p(!1)}},y=async()=>{let e=Zn(n.type,o);if(e.error){l(e.error);return}d(!0),l(null);try{await(n.save||(e=>K.configUpdate({[m]:e})))(e.value),a(!1),n.onSaved?.()}catch(e){l(String(e.message||e))}finally{d(!1)}};if(i){let t=W(null);U(()=>{t.current&&t.current.focus()},[]);let r=e=>{e.key===`Enter`&&(e.preventDefault(),y()),e.key===`Escape`&&a(!1)},i;return i=n.type===`bool`?q(`select`,{className:`kv-input`,value:o,onChange:e=>s(e.target.value),onKeyDown:r,ref:t,children:[q(`option`,{value:`true`,children:`true`}),q(`option`,{value:`false`,children:`false`})]}):n.type===`enum`?q(`select`,{className:`kv-input`,value:o,onChange:e=>s(e.target.value),onKeyDown:r,ref:t,children:(n.options||[]).map(e=>q(`option`,{value:e,children:e},e))}):q(`input`,{className:`kv-input`,type:`text`,value:o,onInput:e=>s(e.target.value),onKeyDown:r,ref:t}),q(`div`,{className:`kv`,children:[q(`span`,{className:`kv-label`,title:n.hint,children:e}),i,q(`div`,{className:`kv-actions`,children:[q(`button`,{className:`kv-save`,type:`button`,onClick:y,disabled:u,children:`Save`}),q(`button`,{className:`kv-cancel`,type:`button`,onClick:()=>a(!1),disabled:u,children:`Cancel`})]}),c&&q(`span`,{className:`kv-note is-error`,children:c})]})}return q(`div`,{className:`kv`,children:[q(`span`,{className:`kv-label`,title:n.hint,children:e}),q(`span`,{className:`kv-value mono ${r===`—`?`is-empty`:``}`,title:r,children:r}),q(`div`,{className:`kv-actions`,children:[g&&q(`span`,{className:`kv-flag`,title:`Set from the dashboard; this shadows the value in the config file`,children:`overridden`}),q(`button`,{className:`kv-btn`,type:`button`,title:`Edit ${e}`,onClick:_,children:`Edit`}),g&&q(`button`,{className:`kv-btn`,type:`button`,title:`Discard the dashboard value and fall back to the config file`,onClick:v,disabled:f,children:`Reset`})]}),c&&q(`span`,{className:`kv-note is-error`,children:c})]})}function Zn(e,t){switch(e){case`int`:{let e=parseInt(t,10);return Number.isNaN(e)?{error:`Enter a whole number`}:{value:e}}case`bool`:return{value:t===`true`};default:return{value:t}}}function Qn({title:e,detail:t}){return q(`div`,{className:`empty`,children:[q(`div`,{className:`empty-title`,children:e}),t&&q(`div`,{children:t})]})}function $n({sub:e,title:t,children:n}){return q(`div`,{className:`card cfg-section`,children:[q(`div`,{className:`card-head`,children:q(`div`,{children:[q(`h2`,{className:`card-title`,children:t||`Update status`}),q(`p`,{className:`card-sub`,children:e})]})}),n]})}var er={ok:`OK`,update_available:`Update available`,drift:`Drift`,unknown:`Unknown`},tr={ok:`ok`,update_available:`info`,drift:`danger`,unknown:`idle`};function nr({components:e}){return!e||!e.length?q($n,{sub:`How each component is deployed, and whether what's running matches what's installed.`,children:q(Qn,{title:`No components reported`,detail:`The configured update-check command returned nothing.`})}):q($n,{sub:`How each component is deployed, and whether what's running matches what's installed. Hover a row for the exact versions compared.`,children:q(`div`,{className:`table-scroll`,children:q(`table`,{className:`table`,children:[q(`thead`,{children:q(`tr`,{children:[q(`th`,{children:`Component`}),q(`th`,{children:`Install type`}),q(`th`,{children:`Running`}),q(`th`,{children:`Latest available`}),q(`th`,{children:`Status`})]})}),q(`tbody`,{children:e.map(e=>q(`tr`,{title:[`Installed claim: ${e.installed_claim||`unknown`}`,`Running: ${e.running_version||`not observed`}`,e.reference?`Reference: ${e.reference}`:null].filter(Boolean).join(` -`),children:[q(`td`,{className:`strong`,children:e.label||e.id}),q(`td`,{className:`mono`,children:e.install_type||`—`}),q(`td`,{className:`mono`,children:e.running_version||`—`}),q(`td`,{className:`mono`,children:e.latest_available||`—`}),q(`td`,{children:q(Z,{text:er[e.status]||e.status,kind:tr[e.status]||`idle`})})]},e.id||e.label))})]})})})}function rr({title:e,sub:t,children:n}){return q(`div`,{className:`card cfg-section`,children:[q(`div`,{className:`card-head`,children:q(`div`,{children:[q(`h2`,{className:`card-title`,children:e}),q(`p`,{className:`card-sub`,children:t})]})}),n]})}function ir(e){return e?.error?e.error:e?.snapshot?.deferred?`Update deferred.`:`Archie is up to date.`}function ar({data:e,onDefer:t,onInstall:n}){let r=e?.available||[];return r.length?q(rr,{title:`Updates`,sub:`Whether a newer release is available, and what to do about it.`,children:[q(`p`,{className:`cfg-note`,children:r.map(e=>`${e.Label||e.label}: ${e.Available||e.available}`).join(` · `)}),q(`div`,{className:`cfg-actions`,children:[q(`button`,{className:`btn`,type:`button`,onClick:()=>t?.(e.snapshot),children:`Defer`}),e.can_install&&q(`button`,{className:`btn btn-primary`,type:`button`,onClick:()=>n?.(e.snapshot),children:`Install update`})]})]}):q(rr,{title:`Updates`,sub:`Whether a newer release is available, and what to do about it.`,children:q(`p`,{className:`cfg-note`,children:ir(e)})})}var or=e=>e.Number??e.number,sr=e=>e.Label??e.label??`checkpoint`;function cr({data:e,onRequest:t,onDecide:n}){let[r,i]=H(``),[a,o]=H(``);if(e?.error)return q(rr,{title:`Dangerous actions`,sub:`Actions that need explicit approval before they run.`,children:q(`p`,{className:`cfg-note`,children:e.error})});let s=e?.pending||[];return q(rr,{title:`Dangerous actions`,sub:`Actions that need explicit approval before they run. Requesting one only queues it.`,children:[q(`div`,{className:`cfg-request-row`,children:[q(`select`,{"aria-label":`Checkpoint`,value:r,onChange:e=>i(e.target.value),children:[q(`option`,{value:``,children:`Select checkpoint`}),(e?.checkpoints||[]).map(e=>q(`option`,{value:String(or(e)),children:[or(e),` — `,sr(e)]},or(e)))]}),q(`button`,{className:`btn`,type:`button`,disabled:!r,onClick:()=>t?.(`rollback`,r),children:`Request rollback`})]}),q(`div`,{className:`cfg-request-row`,children:[q(`input`,{placeholder:`Process name or id`,"aria-label":`Process name or id`,value:a,onInput:e=>o(e.target.value)}),q(`button`,{className:`btn`,type:`button`,disabled:!a.trim(),onClick:()=>t?.(`stop`,a),children:`Request stop`})]}),s.length?q(S,{children:s.map(e=>q(`div`,{className:`cfg-pending`,children:[q(`span`,{children:e.description}),q(`div`,{className:`cfg-actions`,children:[q(`button`,{className:`btn`,type:`button`,onClick:()=>n?.(e.id,`approve`),children:`Approve`}),q(`button`,{className:`btn`,type:`button`,onClick:()=>n?.(e.id,`permanent`),children:`Approve for 24h`}),q(`button`,{className:`btn`,type:`button`,onClick:()=>n?.(e.id,`deny`),children:`Deny`})]})]},e.id))}):q(`p`,{className:`cfg-note`,children:`No pending dangerous actions.`})]})}function Q({title:e,detail:t}){return q(`div`,{className:`empty`,children:[q(`div`,{className:`empty-title`,children:e}),t&&q(`div`,{children:t})]})}function $({title:e,sub:t,children:n}){return q(`div`,{className:`card cfg-section`,children:[q(`div`,{className:`card-head`,children:q(`div`,{children:[q(`h2`,{className:`card-title`,children:e}),q(`p`,{className:`card-sub`,children:t})]})}),n]})}function lr({origins:e}){return e?.length?q($,{title:`Configuration sources`,sub:`Applied from top to bottom; later entries take precedence over earlier ones.`,children:q(`div`,{className:`kv-list`,children:e.map((e,t)=>q(Xn,{label:`${e.layer} ${e.role}${e.feature?` (${e.feature})`:``}`,value:e.path},t))})}):q($,{title:`Configuration sources`,sub:`The files that supplied the running configuration.`,children:q(Q,{title:`Source provenance is unavailable.`})})}function ur(e){return e===`quiet`?`btn-quiet`:e===`danger`?`btn-danger`:``}function dr({data:e,error:t}){if(t)return q($,{title:`Work lifecycle`,sub:`The task statuses and operator actions archied ships.`,children:q(Q,{title:`Lifecycle unavailable`,detail:t})});let n=e?.statuses||[],r=e?.actions||[];return q($,{title:`Work lifecycle`,sub:`The task statuses and operator actions archied ships. Add one on the backend and it appears here without a frontend change.`,children:[q(`h3`,{className:`cfg-subhead`,children:`Statuses`}),n.length?q(`div`,{className:`kv-list`,children:n.map(e=>{let t=e.label??Ke(e.id),n=e.kind??qe(e.id);return q(`div`,{className:`kv`,children:[q(`span`,{className:`kv-label`,children:e.id}),q(`span`,{className:`kv-value`,children:q(Z,{text:t,kind:n})})]},e.id)})}):q(Q,{title:`No statuses reported`,detail:`The server did not return any lifecycle statuses.`}),q(`h3`,{className:`cfg-subhead`,children:`Actions`}),r.length?q(`div`,{className:`kv-list`,children:r.map(e=>{let t=e.label??e.id,n=ur(e.kind);return q(`div`,{className:`kv`,children:[q(`span`,{className:`kv-label`,children:e.id}),q(`span`,{className:`kv-value`,children:q(`button`,{className:`btn btn-small ${n}`,type:`button`,disabled:!0,children:t})})]},e.id)})}):q(Q,{title:`No actions reported`,detail:`The server did not return any operator actions.`})]})}function fr({r:e,field:t,onSaved:n,editable:r=!0}){let[i,a]=H(!1),[o,s]=H(null),[c,l]=H(!!e[t]);return r?q(`td`,{children:[q(`input`,{className:`repo-field-checkbox`,type:`checkbox`,checked:c,onChange:async r=>{let i=r.target.checked;l(i),a(!0),s(null);try{await K.configRepoUpdate(e.owner,e.name,t,i),n?.()}catch(e){l(!i),s(String(e.message||e))}finally{a(!1)}},disabled:i}),o&&q(`span`,{className:`kv-note is-error`,children:o})]}):q(`td`,{children:c?`yes`:`no`})}function pr({r:e,field:t,onSaved:n,editable:r=!0}){let[i,a]=H(String(e[t]??0)),[o,s]=H(null),[c,l]=H(!1);return r?q(`td`,{children:[q(`input`,{className:`kv-input`,type:`text`,value:i,onChange:e=>a(e.target.value),onBlur:async()=>{let r=parseInt(i,10);if(Number.isNaN(r)){s(`Enter a whole number`);return}l(!0),s(null);try{await K.configRepoUpdate(e.owner,e.name,t,r),n?.()}catch(e){s(String(e.message||e))}finally{l(!1)}},onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),e.target.blur())},disabled:c}),o&&q(`span`,{className:`kv-note is-error`,children:o})]}):q(`td`,{className:`mono`,children:i})}function mr({repos:e,onSaved:t,editable:n=!0}){if(!e?.length)return q($,{title:`Repositories`,sub:`The repositories Archie polls for work.`,children:q(Q,{title:`No repositories configured`,detail:`Add a [[repos]] entry in config.toml so Archie has somewhere to work.`})});let r=e=>e?.length?e.map(e=>e.join(` `)).join(` → `):`—`;return q($,{title:`Repositories`,sub:`Each repository Archie polls, and the quality gate a change must pass before it opens a pull request. Concurrent tasks, retries, and self-review are per-repository overrides -- PATCH /api/config/repos/{owner}/{name}, not the file config.toml directly.`,children:q(`div`,{className:`table-scroll`,children:q(`table`,{className:`table`,children:[q(`thead`,{children:q(`tr`,{children:[q(`th`,{children:`Repository`}),q(`th`,{children:`Base branch`}),q(`th`,{children:`Ecosystem`}),q(`th`,{children:`Quality gate`}),q(`th`,{children:`Protected paths`}),q(`th`,{children:`Concurrent`}),q(`th`,{children:`Max retries`}),q(`th`,{children:`Self-review`})]})}),q(`tbody`,{children:e.map((e,i)=>q(`tr`,{children:[q(`td`,{className:`strong`,children:[e.owner,`/`,e.name]}),q(`td`,{className:`mono`,children:e.base}),q(`td`,{children:e.ecosystem||`go`}),q(`td`,{className:`mono`,children:r(e.gate)}),q(`td`,{className:`mono`,children:e.protect?.length?e.protect.join(`, `):`—`}),q(fr,{r:e,field:`allow_concurrent`,onSaved:t,editable:n}),q(pr,{r:e,field:`max_retries`,onSaved:t,editable:n}),q(fr,{r:e,field:`review_enabled`,onSaved:t,editable:n})]},i))})]})})})}function hr(e){return e?e.charAt(0).toUpperCase()+e.slice(1).replace(/_/g,` `):`Unknown role`}function gr({models:e,providers:t}){let n=Object.entries(e||{}),r=Object.entries(t||{});return q($,{title:`Models & providers`,sub:`Which model handles each stage of work, and which LLM providers are wired up. Only the environment variable NAME is shown, never its value.`,children:[q(`h3`,{className:`cfg-subhead`,children:`Model roles`}),n.length?q(`div`,{className:`kv-list`,children:n.map(([e,t])=>q(Xn,{label:hr(e),value:t},e))}):q(Q,{title:`No model roles configured`,detail:`Assign a model to at least one role (e.g. "builder") in [models].`}),q(`h3`,{className:`cfg-subhead`,children:`Providers`}),r.length?q(`div`,{className:`table-scroll`,children:q(`table`,{className:`table`,children:[q(`thead`,{children:q(`tr`,{children:[q(`th`,{children:`Provider`}),q(`th`,{children:`Class`}),q(`th`,{children:`Base URL`}),q(`th`,{children:`API key env var`}),q(`th`,{children:`Status`})]})}),q(`tbody`,{children:r.map(([e,t])=>q(`tr`,{children:[q(`td`,{className:`strong`,children:e}),q(`td`,{children:t.class}),q(`td`,{className:`mono`,children:t.base_url||`default`}),q(`td`,{className:`mono`,children:t.api_key_env||`—`}),q(`td`,{children:t.configured?q(Z,{text:`configured`,kind:`ok`}):q(Z,{text:`missing credentials`,kind:`warn`})})]},e))})]})}):q(Q,{title:`No providers configured`,detail:`Add a [providers.] entry so a model role above has something to run on.`})]})}function _r(){let[e,t]=H(null),[n,r]=H(null),[i,a]=H(null),[o,s]=H(null),[c,l]=H(!1),[u,d]=H(null),[f,p]=H(null),[m,h]=H(null),[g,_]=H(null),v=()=>{E(),D(),O(),y(),b()},y=async()=>{try{h(await K.chatUpdate())}catch(e){h(e?.status===501?null:{error:String(e.message||e)})}},b=async()=>{try{_(await K.chatDangerous())}catch(e){_(e?.status===501?null:{error:String(e.message||e)})}},x=async e=>{await K.chatUpdateDefer(e),await y()},C=async e=>{await K.chatUpdateInstall(e),await y()},w=async(e,t)=>{await K.chatDangerousRequest(e,t),await b()},T=async(e,t)=>{await K.chatDangerousDecision(e,t),await b()},E=async()=>{try{let e=await K.config();t(e),r(null)}catch(e){r(String(e.message||e))}},D=async()=>{try{let e=await K.version();a(e?.components||[]),s(null),l(!1)}catch(e){e?.status===501?l(!0):s(String(e.message||e))}},O=async()=>{try{let e=await K.taskMeta();d(e),p(null)}catch(e){p(String(e.message||e))}};return U(()=>{v()},[]),q(`div`,{className:`cfg-page`,children:[q(`div`,{className:`page-head`,children:[q(`div`,{children:[q(`h1`,{className:`page-title`,children:`Configuration`}),q(`p`,{className:`page-sub`,children:`What archied is actually running with right now.`})]}),q(`div`,{className:`page-actions`,children:q(`button`,{className:`btn`,onClick:v,children:`Refresh`})})]}),q(`div`,{children:c?q(`div`,{className:`card cfg-section`,children:q(`div`,{className:`card-head`,children:q(`div`,{children:[q(`h2`,{className:`card-title`,children:`Update status`}),q(`p`,{className:`card-sub`,children:`Not configured on this deployment, so there is nothing to check against.`})]})})}):o?q(`div`,{className:`card`,children:q(Q,{title:`Update status unavailable`,detail:o})}):i?q(nr,{components:i}):null}),m&&q(`div`,{children:q(ar,{data:m,onDefer:x,onInstall:C})}),g&&q(`div`,{children:q(cr,{data:g,onRequest:w,onDecide:T})}),q(`div`,{children:q(dr,{data:u,error:f})}),q(`div`,{children:n?q(`div`,{className:`card`,children:q(Q,{title:`Cannot reach archied`,detail:n})}):!e||Object.keys(e).length===0?q(`div`,{className:`card`,children:q(Q,{title:`No configuration loaded`,detail:`archied is running without a config file wired into the dashboard, so there is nothing to show.`})}):q(S,{children:[e.reload?.overlay_unavailable&&q(`div`,{className:`card cfg-notice`,children:q(`p`,{children:[`The runtime config overlay is not in effect: `,e.reload.overlay_unavailable]})}),e.reload?.last_error&&q(`div`,{className:`card cfg-notice`,children:q(`p`,{children:[`The last config reload failed; the running config is unchanged: `,e.reload.last_error]})}),(e.schema||[]).map((t,n)=>{let r=t.fields.filter(e=>e.type!==`structured`);return r.length?q($,{title:t.label,sub:t.description,children:q(`div`,{className:`kv-list`,children:r.map(t=>q(Xn,{label:t.label,value:t.value,opts:{key:t.key,type:t.type,options:t.options,raw:t.value,hint:t.description,editable:t.editable&&e.editable!==!1,locked:e.locked||{},overridden:e.overridden||[],onSaved:E}},t.key))})},n):null}),q(mr,{repos:e.repositories,onSaved:E,editable:e.editable!==!1}),q(gr,{models:e.models,providers:e.providers}),q(lr,{origins:e.provenance})]})})]})}function vr(e){return q(_r,{query:e})}function yr(e,t){return t===`unavailable`?`Log stream unavailable`:e?`No logs yet`:`Nothing matches`}function br(e,t){return t===`unavailable`?`The daemon is not serving /api/logs/stream. Reload once it is reachable.`:e?`This deployment keeps no durable history. Live daemon logs appear here while the page is open.`:`Try a wider level or clear the search.`}function xr({title:e,detail:t}){return q(`div`,{className:`empty`,children:[q(`div`,{className:`empty-title`,children:e}),t&&q(`div`,{children:t})]})}function Sr(e){return`${e.time||``}|${e.level||``}|${e.message||e.msg||``}|${JSON.stringify(e.fields||{})}`}function Cr(){let[e,t]=H({level:``,component:``,q:``}),[n,r]=H(!1),[i,a]=H([]),[o,s]=H([]),c=W(new Map),[l,u]=H(0),[d,f]=H(!1),[p,m]=H(`connecting`),[h,g]=H(`Refreshing…`),_=W(null),v=W(null),y=async()=>{g(`Refreshing…`);try{let t=await K.logs({level:e.level,component:e.component,q:e.q,limit:500});a(e=>{let n=t.components||[];return e.length===n.length&&e.every((e,t)=>e===n[t])?e:n}),f(!!t.disabled);let n=t.disabled?`Live only`:t.truncated?`showing the most recent matches from ${t.file}`:t.file||``;g(n),s(t.entries||[])}catch{g(`Cannot read logs`)}};U(()=>{y()},[e]),U(()=>{let e=Ie(e=>{if(b.current)return;let t=e;S.current(t)&&(c.current.set(Sr(t),t),t.fields?.component&&a(e=>e.includes(t.fields.component)?e:[...e,t.fields.component]),u(e=>e+1))},e=>{m(e)});return()=>e()},[]);let b=W(n);b.current=n;let x=t=>{if(e.level&&!e.level.split(`,`).includes((t.level||``).toUpperCase())||e.component&&t.fields?.component!==e.component)return!1;if(e.q){let n=e.q.toLowerCase();if(!`${t.message||t.msg||``} ${JSON.stringify(t.fields||{})}`.toLowerCase().includes(n))return!1}return!0},S=W(x);S.current=x;let C=ve(()=>{let e=new Map;for(let t of o)e.set(Sr(t),t);for(let[t,n]of c.current)e.set(t,n);return[...e.values()].filter(x).slice(-1e3)},[o,l,e]);return U(()=>{_.current&&(_.current.scrollTop=_.current.scrollHeight)},[C]),q(`div`,{children:[q(`div`,{className:`page-head`,children:[q(`div`,{children:[q(`h1`,{className:`page-title`,children:`Logs`}),q(`p`,{className:`page-sub`,children:`What Archie has been doing, newest last.`})]}),q(`div`,{className:`page-actions`,children:[q(`button`,{className:`btn ${n?`btn-primary`:``}`,onClick:()=>r(!n),children:n?`Resume`:`Pause`}),q(`button`,{className:`btn`,onClick:y,children:`Refresh`})]})]}),q(`div`,{className:`card`,children:[q(`div`,{className:`card-head`,children:[q(`div`,{className:`log-filters`,children:[q(`select`,{className:`log-select`,value:e.level,onChange:e=>t(t=>({...t,level:e.target.value})),children:wt.map(e=>q(`option`,{value:e.value,children:e.label},e.value))}),q(`select`,{className:`log-select`,value:e.component,onChange:e=>t(t=>({...t,component:e.target.value})),children:[q(`option`,{value:``,children:`All components`}),i.map(e=>q(`option`,{value:e,children:e},e))]}),q(`input`,{className:`log-search`,type:`search`,placeholder:`Search messages and fields…`,onInput:e=>{let n=e.target.value;v.current&&clearTimeout(v.current),v.current=setTimeout(()=>{t(e=>({...e,q:n}))},250)}})]}),q(`div`,{className:`log-status`,children:[q(`span`,{className:`log-meta`,children:h}),q(Z,{text:p,kind:p===`live`?`ok`:p===`unavailable`?`danger`:`warn`})]})]}),q(`div`,{className:`log-list`,ref:_,children:h===`Cannot read logs`?q(xr,{title:`Cannot read logs`}):C.length?C.map(e=>q(Et,{entry:e},Sr(e))):q(xr,{title:yr(d,p),detail:br(d,p)})})]})]})}function wr(e){return q(Cr,{query:e})}function Tr({capture:e,expanded:t,onToggle:n}){return q(S,{children:[q(`tr`,{className:`capture-row`,tabIndex:`0`,"aria-expanded":String(t),onClick:n,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),n(e))},children:[q(`td`,{className:`mono`,children:e.source||`(unknown)`}),q(`td`,{title:e.received_at||``,children:Y(e.received_at)}),q(`td`,{children:q(Z,{text:`Unbound`,kind:`idle`})}),q(`td`,{className:`mono`,children:e.content_type||`—`}),q(`td`,{children:q(`button`,{className:`btn btn-small`,type:`button`,children:t?`Hide`:`View`})})]}),t&&q(Er,{capture:e})]})}function Er({capture:e}){return q(`tr`,{className:`capture-detail-row`,children:q(`td`,{colSpan:`5`,children:q(`div`,{className:`capture-detail`,children:[q(`div`,{className:`capture-detail-section`,children:[q(`div`,{className:`capture-detail-title`,children:`Payload`}),q(Dr,{raw:e.body})]}),q(`div`,{className:`capture-detail-section`,children:[q(`div`,{className:`capture-detail-title`,children:`Headers`}),q(Dr,{raw:e.headers})]})]})})})}function Dr({raw:e}){return e?q(`pre`,{className:`capture-payload`,children:Or(e)}):q(`div`,{className:`capture-empty`,children:`(empty)`})}function Or(e){try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}}function kr({title:e,detail:t}){return q(`div`,{className:`empty`,children:[q(`div`,{className:`empty-title`,children:e}),t&&q(`div`,{children:t})]})}function Ar(e){return q(jr,{query:e})}function jr({query:e}){let[t,n]=H([]),[r,i]=H(null),[a,o]=H(null),[s,c]=H(!0),[l,u]=H({text:`connecting`,kind:`idle`}),d=async()=>{try{let e=await K.captures(100);c(e.enabled!==!1),n(e.captures||[]),o(null)}catch(e){o(String(e.message||e))}};return U(()=>{d();let e=Fe(e=>{e.kind===`capture`&&d()},e=>{u({text:e,kind:e===`live`?`ok`:`warn`})});return()=>e()},[]),q(`div`,{children:[q(`div`,{className:`page-head`,children:[q(`div`,{children:[q(`h1`,{className:`page-title`,children:`Event inspector`}),q(`p`,{className:`page-sub`,children:`Real inbound payloads archie has captured, most recent first.`})]}),q(`div`,{className:`page-actions`,children:[q(Z,{text:l.text,kind:l.kind}),q(`button`,{className:`btn`,onClick:d,children:`Refresh`})]})]}),q(`div`,{className:`card`,children:a?q(kr,{title:`Cannot reach archied`,detail:a}):s?t.length?q(`div`,{className:`table-scroll`,children:q(`table`,{className:`table`,children:[q(`thead`,{children:q(`tr`,{children:[`Source`,`Received`,`Binding`,`Content type`,``].map((e,t)=>q(`th`,{children:e},t))})}),q(`tbody`,{children:t.map(e=>q(Tr,{capture:e,expanded:r===e.id,onToggle:()=>i(r===e.id?null:e.id)},e.id))})]})}):q(kr,{title:`No captures yet`,detail:`Point a webhook at /webhooks/capture/ and it will show up here.`}):q(kr,{title:`Capture is not configured`,detail:`This deployment has no capture storage wired up.`})})]})}var Mr=[`string`,`number`,`bool`,`object`,`array`,`any`];function Nr(e){if(e==null)return`any`;if(Array.isArray(e))return`array`;switch(typeof e){case`string`:return`string`;case`number`:return`number`;case`boolean`:return`bool`;case`object`:return`object`;default:return`any`}}function Pr(e,t){return e?`${e}.${t}`:t}function Fr(e,t){return`${e}[${t}]`}function Ir({value:e,path:t=``,name:n=``,onPick:r}){return typeof e==`object`&&e?q(`ul`,{className:`mapping-tree-list`,children:(Array.isArray(e)?e.map((e,n)=>[String(n),e,Fr(t,n)]):Object.entries(e).map(([e,n])=>[e,n,Pr(t,e)])).map(([e,t,n])=>q(`li`,{className:`mapping-tree-item`,children:[q(`span`,{className:`mapping-tree-key`,onClick:i=>{i.stopPropagation(),r&&r({path:n,type:Nr(t),name:e})},children:e}),q(Ir,{value:t,path:n,name:e,onPick:r})]},n))}):q(`span`,{className:`mapping-tree-value`,onClick:i=>{i.stopPropagation(),r&&r({path:t,type:Nr(e),name:n})},children:JSON.stringify(e)})}function Lr({fields:e,preview:t,onRemove:n,onNameChange:r,onTypeChange:i,onRequiredChange:a}){if(!e.length)return q(`div`,{className:`mapping-empty-fields`,children:`Click a value in the payload to bind a field.`});let o=new Map((t?.failures||[]).map(e=>[e.field_name,e]));return q(`table`,{className:`table mapping-fields-table`,children:[q(`thead`,{children:q(`tr`,{children:[`Field name`,`Path`,`Type`,`Required`,`Preview`,``].map((e,t)=>q(`th`,{children:e},t))})}),q(`tbody`,{children:e.map((e,s)=>q(`tr`,{children:[q(`td`,{children:q(`input`,{className:`mapping-input`,value:e.name,onInput:e=>r?.(s,e.target.value)})}),q(`td`,{className:`mono`,children:e.path}),q(`td`,{children:q(`select`,{className:`mapping-select`,value:e.type,onChange:e=>i?.(s,e.target.value),children:Mr.map(e=>q(`option`,{value:e,children:e},e))})}),q(`td`,{children:q(`input`,{type:`checkbox`,checked:e.required,onChange:e=>a?.(s,e.target.checked)})}),q(`td`,{children:q(Rr,{field:e,preview:t,failureByField:o})}),q(`td`,{children:q(`button`,{className:`btn btn-small`,type:`button`,onClick:()=>n?.(s),children:`Remove`})})]},s))})]})}function Rr({field:e,preview:t,failureByField:n}){if(!t)return q(Z,{text:`not previewed`,kind:`idle`});let r=n.get(e.name);return r?q(Z,{text:r.reason,kind:`danger`}):Object.prototype.hasOwnProperty.call(t.values||{},e.name)?q(Z,{text:JSON.stringify(t.values[e.name]),kind:`ok`}):q(Z,{text:`skipped (optional)`,kind:`idle`})}function zr({mapping:e,onEdit:t,onDelete:n}){return q(`tr`,{children:[q(`td`,{children:e.name}),q(`td`,{className:`mono`,children:e.source_hint||`—`}),q(`td`,{children:String(e.fields?.length??0)}),q(`td`,{children:[q(`button`,{className:`btn btn-small`,type:`button`,onClick:()=>t?.(e),children:`Edit`}),q(`button`,{className:`btn btn-small`,type:`button`,onClick:()=>n?.(e),children:`Delete`})]})]})}function Br({title:e,detail:t}){return q(`div`,{className:`empty`,children:[q(`div`,{className:`empty-title`,children:e}),t&&q(`div`,{children:t})]})}function Vr(e){return q(Hr,{query:e})}function Hr({query:e}){let[t,n]=H([]),[r,i]=H([]),[a,o]=H(null),[s,c]=H(null),l=async()=>{try{let[e,t]=await Promise.all([K.mappings(),K.captures(100)]);n(e.mappings||[]),i(t.captures||[]),o(null)}catch(e){o(String(e.message||e))}};U(()=>{l()},[]);let u=()=>{c({id:null,name:``,sourceHint:``,fields:[],captureId:null,payload:null,payloadError:null,preview:null,actionError:null})},d=e=>{c({id:e.id,name:e.name,sourceHint:e.source_hint||``,fields:(e.fields||[]).map(e=>({...e})),captureId:null,payload:null,payloadError:null,preview:null,actionError:null})},f=async e=>{if(window.confirm(`Delete mapping "${e.name}"?`))try{await K.mappingDelete(e.id),await l()}catch(e){o(String(e.message||e))}},p=e=>{let t=r.find(t=>String(t.id)===String(e));c(e=>{let n={...e,captureId:t?t.id:null,preview:null};if(!t)n.payload=null,n.payloadError=null;else try{n.payload=JSON.parse(t.body),n.payloadError=null}catch{n.payload=null,n.payloadError=`This capture's body is not valid JSON, so its fields cannot be mapped by path.`}return n})},m=({path:e,type:t,name:n})=>{c(r=>{let i=new Set(r.fields.map(e=>e.name)),a=n||`field`,o=1;for(;i.has(a);)a=`${n||`field`}_${++o}`;let s=[...r.fields,{name:a,path:e,type:t,required:!0}];return{...r,fields:s,preview:null}})},h=e=>{c(t=>{let n=t.fields.slice();return n.splice(e,1),{...t,fields:n,preview:null}})},g=(e,t)=>{c(n=>{let r=n.fields.slice();return r[e]={...r[e],...t},{...n,fields:r,preview:null}})};return s?q(`div`,{children:[q(`div`,{className:`page-head`,children:[q(`div`,{children:q(`h1`,{className:`page-title`,children:s.id?`Edit mapping`:`New mapping`})}),q(`div`,{className:`page-actions`,children:[q(`button`,{className:`btn`,type:`button`,onClick:()=>{c(null)},children:`Cancel`}),q(`button`,{className:`btn btn-primary`,type:`button`,onClick:async()=>{let e={name:s.name,source_hint:s.sourceHint,fields:s.fields};try{s.id?await K.mappingUpdate(s.id,e):await K.mappingCreate(e),c(null),await l()}catch(e){c(t=>({...t,actionError:String(e.message||e)}))}},children:`Save`})]})]}),s.actionError&&q(`div`,{className:`mapping-error`,children:s.actionError}),q(`div`,{className:`card mapping-form`,children:[q(`label`,{className:`mapping-form-row`,children:[`Name`,q(`input`,{className:`mapping-input`,value:s.name,onInput:e=>c(t=>({...t,name:e.target.value}))})]}),q(`label`,{className:`mapping-form-row`,children:[`Source hint (organisational only)`,q(`input`,{className:`mapping-input`,value:s.sourceHint,onInput:e=>c(t=>({...t,sourceHint:e.target.value}))})]}),q(`label`,{className:`mapping-form-row`,children:[`Preview against captured event`,q(`select`,{className:`mapping-select`,value:s.captureId||``,onChange:e=>p(e.target.value),children:[q(`option`,{value:``,children:`— pick a captured event —`}),r.map(e=>q(`option`,{value:e.id,children:[e.source||`(unknown)`,` — `,e.received_at||``]},e.id))]})]})]}),q(`div`,{className:`card mapping-fields`,children:[q(`div`,{className:`mapping-section-title`,children:`Bound fields`}),q(Lr,{fields:s.fields,preview:s.preview,onRemove:h,onNameChange:(e,t)=>g(e,{name:t}),onTypeChange:(e,t)=>g(e,{type:t}),onRequiredChange:(e,t)=>g(e,{required:t})}),q(`button`,{className:`btn`,type:`button`,onClick:async()=>{if(!s.captureId){c(e=>({...e,actionError:`Pick a captured event to preview against.`}));return}try{let e=await K.mappingPreview(s.captureId,s.fields);c(t=>({...t,preview:e,actionError:null}))}catch(e){c(t=>({...t,actionError:String(e.message||e)}))}},children:`Preview`})]}),q(`div`,{className:`card mapping-payload`,children:[q(`div`,{className:`mapping-section-title`,children:`Payload — click a value to bind it`}),s.payloadError?q(`div`,{className:`mapping-error`,children:s.payloadError}):s.payload===null?q(`div`,{className:`mapping-empty-fields`,children:`Pick a captured event above to see its payload.`}):q(Ir,{value:s.payload,onPick:m})]})]}):q(`div`,{children:[q(`div`,{className:`page-head`,children:[q(`div`,{children:[q(`h1`,{className:`page-title`,children:`Field mappings`}),q(`p`,{className:`page-sub`,children:`Bind named fields to JSON paths from a real captured event, ready for a playbook binding.`})]}),q(`div`,{className:`page-actions`,children:q(`button`,{className:`btn btn-primary`,type:`button`,onClick:u,children:`New mapping`})})]}),a?q(Br,{title:`Cannot reach archied`,detail:a}):t.length?q(`div`,{className:`card`,children:q(`div`,{className:`table-scroll`,children:q(`table`,{className:`table`,children:[q(`thead`,{children:q(`tr`,{children:[`Name`,`Source hint`,`Fields`,``].map((e,t)=>q(`th`,{children:e},t))})}),q(`tbody`,{children:t.map(e=>q(zr,{mapping:e,onEdit:()=>d(e),onDelete:()=>f(e)},e.id))})]})})}):q(Br,{title:`No mappings yet`,detail:`Create one from a captured event to reuse fields in a future playbook binding.`})]})}var Ur={draft:`draft`,pending_approval:`pending approval`,armed:`armed`},Wr={draft:`idle`,pending_approval:`warn`,armed:`ok`};function Gr({status:e}){return q(Z,{text:Ur[e]||e,kind:Wr[e]||`idle`})}function Kr({binding:e,onEdit:t,onApprove:n,onDelete:r}){let i=e.owner&&e.repo?`${e.owner}/${e.repo}`:`—`;return q(`tr`,{children:[q(`td`,{children:e.name}),q(`td`,{className:`mono`,children:e.matcher?.source||`—`}),q(`td`,{children:e.workflow}),q(`td`,{className:`mono`,children:i}),q(`td`,{children:q(Gr,{status:e.status})}),q(`td`,{children:[q(`button`,{className:`btn btn-small`,type:`button`,onClick:()=>t?.(e),children:`Edit`}),e.status===`pending_approval`&&q(`button`,{className:`btn btn-small btn-primary`,type:`button`,onClick:()=>n?.(e),children:`Approve`}),q(`button`,{className:`btn btn-small`,type:`button`,onClick:()=>r?.(e),children:`Delete`})]})]})}function qr({title:e,detail:t}){return q(`div`,{className:`empty`,children:[q(`div`,{className:`empty-title`,children:e}),t&&q(`div`,{children:t})]})}function Jr(e){return q(Xr,{query:e})}function Yr(){return{id:null,name:``,source:``,mappingId:``,workflow:``,owner:``,repo:``,secret:``,actionError:null}}function Xr({query:e}){let[t,n]=H([]),[r,i]=H([]),[a,o]=H([]),[s,c]=H(null),[l,u]=H(null),d=async()=>{try{let[e,t,r]=await Promise.all([K.bindings(),K.mappings(),K.workflows()]);n(e.bindings||[]),i(t.mappings||[]),o((r.definitions||[]).filter(e=>e.enabled)),c(null)}catch(e){c(String(e.message||e))}};U(()=>{d()},[]);let f=()=>{u(Yr())},p=e=>{u({id:e.id,name:e.name,source:e.matcher?.source||``,mappingId:e.mapping_id?String(e.mapping_id):``,workflow:e.workflow||``,owner:e.owner||``,repo:e.repo||``,secret:``,actionError:null})},m=()=>u(null),h=async()=>{let e={name:l.name,matcher:{source:l.source},mapping_id:Number(l.mappingId)||0,workflow:l.workflow,owner:l.owner,repo:l.repo,secret:l.secret};try{l.id?await K.bindingUpdate(l.id,e):await K.bindingCreate(e),u(null),await d()}catch(e){u(t=>({...t,actionError:String(e.message||e)}))}},g=async e=>{try{await K.bindingApprove(e.id),await d()}catch(e){c(String(e.message||e))}},_=async e=>{if(window.confirm(`Delete binding "${e.name}"?`))try{await K.bindingDelete(e.id),await d()}catch(e){c(String(e.message||e))}};return l?q(`div`,{children:[q(`div`,{className:`page-head`,children:[q(`div`,{children:q(`h1`,{className:`page-title`,children:l.id?`Edit binding`:`New binding`})}),q(`div`,{className:`page-actions`,children:[q(`button`,{className:`btn`,type:`button`,onClick:m,children:`Cancel`}),q(`button`,{className:`btn btn-primary`,type:`button`,onClick:h,children:`Save`})]})]}),l.actionError&&q(`div`,{className:`binding-error`,children:l.actionError}),q(`div`,{className:`card binding-form`,children:[q(`label`,{className:`binding-form-row`,children:[`Name`,q(`input`,{className:`binding-input`,value:l.name,onInput:e=>u(t=>({...t,name:e.target.value}))})]}),q(`label`,{className:`binding-form-row`,children:[`Source (the path segment senders POST to, e.g. "sentry")`,q(`input`,{className:`binding-input`,value:l.source,onInput:e=>u(t=>({...t,source:e.target.value}))})]}),q(`label`,{className:`binding-form-row`,children:[`Field mapping`,q(`select`,{className:`binding-select`,value:l.mappingId,onChange:e=>u(t=>({...t,mappingId:e.target.value})),children:[q(`option`,{value:``,children:`— pick a saved mapping —`}),r.map(e=>q(`option`,{value:e.id,children:e.name},e.id))]})]}),q(`label`,{className:`binding-form-row`,children:[`Workflow`,q(`select`,{className:`binding-select`,value:l.workflow,onChange:e=>u(t=>({...t,workflow:e.target.value})),children:[q(`option`,{value:``,children:`— pick a workflow —`}),a.map(e=>q(`option`,{value:e.id,children:e.name},e.id))]})]}),q(`label`,{className:`binding-form-row`,children:[`Repo pin -- owner (optional; leave both blank for the single-configured-repo default)`,q(`input`,{className:`binding-input`,value:l.owner,onInput:e=>u(t=>({...t,owner:e.target.value}))})]}),q(`label`,{className:`binding-form-row`,children:[`Repo pin -- repo`,q(`input`,{className:`binding-input`,value:l.repo,onInput:e=>u(t=>({...t,repo:e.target.value}))})]}),q(`label`,{className:`binding-form-row`,children:[`Shared secret (`,l.id?`leave blank to keep the current secret`:`senders sign with this via HMAC-SHA256`,`)`,q(`input`,{className:`binding-input`,type:`password`,value:l.secret,onInput:e=>u(t=>({...t,secret:e.target.value}))})]})]})]}):q(`div`,{children:[q(`div`,{className:`page-head`,children:[q(`div`,{children:[q(`h1`,{className:`page-title`,children:`Playbook bindings`}),q(`p`,{className:`page-sub`,children:`Tie a matcher, a field mapping, and a workflow together. New and edited bindings need explicit approval before they can fire.`})]}),q(`div`,{className:`page-actions`,children:q(`button`,{className:`btn btn-primary`,type:`button`,onClick:f,children:`New binding`})})]}),s?q(qr,{title:`Cannot reach archied`,detail:s}):t.length?q(`div`,{className:`card`,children:q(`div`,{className:`table-scroll`,children:q(`table`,{className:`table`,children:[q(`thead`,{children:q(`tr`,{children:[`Name`,`Source`,`Workflow`,`Repo pin`,`Status`,``].map((e,t)=>q(`th`,{children:e},t))})}),q(`tbody`,{children:t.map(e=>q(Kr,{binding:e,onEdit:()=>p(e),onApprove:()=>g(e),onDelete:()=>_(e)},e.id))})]})})}):q(qr,{title:`No bindings yet`,detail:`Create one from a saved field mapping to turn a captured webhook into a workflow.`})]})}var Zr=/(!\[[^\]]*\]\((?:https?:\/\/[^\s)]+|data:image\/[^\s)]+|\/[^\s)]+)\)|~~[^~]+~~|\*\*[^*]+\*\*|__[^_]+__|`[^`]+`|\[[^\]]+\]\((?:https?:\/\/[^\s)]+|\/[^\s)]+)\)|\*[^*]+\*|_[^_]+_)/g;function Qr(e){let t=[],n=0,r=0;for(let i of String(e).matchAll(Zr)){i.index>n&&t.push(e.slice(n,i.index));let a=i[0];if(a.startsWith(`![`)){let e=a.match(/^!\[([^\]]*)\]\((.+)\)$/);e&&t.push(q(`img`,{className:`chat-media-img`,src:e[2],alt:e[1]||`Image`,loading:`lazy`},r++))}else if(a.startsWith(`~~`))t.push(q(`del`,{children:a.slice(2,-2)},r++));else if(a.startsWith(`**`)||a.startsWith(`__`))t.push(q(`strong`,{children:a.slice(2,-2)},r++));else if(a.startsWith("`"))t.push(q(`code`,{children:a.slice(1,-1)},r++));else if(a.startsWith(`[`)){let e=a.match(/^\[([^\]]+)\]\((https?:\/\/[^\s)]+|\/[^\s)]+)\)$/);e&&t.push(q(`a`,{href:e[2],target:`_blank`,rel:`noreferrer`,children:e[1]},r++))}else t.push(q(`em`,{children:a.slice(1,-1)},r++));n=i.index+a.length}return n{i.length&&(n.push(q(`p`,{children:Qr(i.join(` `))},s++)),i=[])},l=()=>{if(!a)return;let e=a.items.map((e,t)=>q(`li`,{children:Qr(e)},t));n.push(a.tag===`ol`?q(`ol`,{children:e},s++):q(`ul`,{children:e},s++)),a=null};for(let e=0;eq(`th`,{children:Qr(e)},t))})}),q(`tbody`,{children:t.map((e,t)=>q(`tr`,{children:e.map((e,t)=>q(`td`,{children:Qr(e)},t))},t))})]},s++));continue}if(!t.trim()){c(),l();continue}let f=t.match(/^(#{1,3})\s+(.+)$/);if(f){c(),l();let e=`h${f[1].length}`;n.push(q(e,{children:Qr(f[2])},s++));continue}let p=t.match(/^\s*[-*]\s+(.+)$/),m=t.match(/^\s*\d+[.)]\s+(.+)$/);if(p||m){c();let e=m?`ol`:`ul`;(!a||a.tag!==e)&&(l(),a={tag:e,items:[]}),a.items.push((p||m)[1]);continue}if(t.startsWith(`>`)){c(),l(),n.push(q(`blockquote`,{children:Qr(t.replace(/^>\s?/,``))},s++));continue}i.push(t)}return c(),l(),o&&n.push(q(`pre`,{children:q(`code`,{children:o.join(` -`)})},s++)),q(`div`,{className:t,children:n})}function ei(e){let t=String(e||``).trim();if(!t.includes(`|`))return null;let n=t.replace(/^\|/,``).replace(/\|$/,``).split(`|`).map(e=>e.trim());return n.length>1&&n.every(e=>e!==``)?n:null}function ti(e){return e.every(e=>/^:?-{3,}:?$/.test(e))}var ni=`archie.web.chat.channel`;function ri(){let e=localStorage.getItem(ni);return e||(e=De(),localStorage.setItem(ni,e)),e}function ii(e){return{text:e,sourceID:De()}}function ai(e){return{...e}}function oi(e,t){let n=!!(e&&typeof e==`object`&&e.turn&&typeof e.turn.text==`string`),r=n?e.turn.text:t.trim();return{text:r,turn:n?ai(e.turn):ii(r),isRetry:n}}function si({scrollTop:e,viewportHeight:t,optionTop:n,optionHeight:r}){if(r>=t||ne+t?i-t:e}function ci(e){return e.title||e.branch_name||`Conversation ${e.session_id.slice(0,8)}`}function li(e,t){if(!t)return`Archie`;let n=(e||[]).find(e=>e.session_id===t);return n?ci(n):`Archie`}function ui(){return location.hash.slice(1)||`/`}function di({open:e=!0}){let[t,n]=H([]),[r,i]=H(``),[a,o]=H([]),[s,c]=H(``),[l,u]=H(`Ready`),[d,f]=H(!1),[p,m]=H({}),[h,g]=H(``),[_,v]=H(``),[y,b]=H(``),[x,C]=H([]),[w,T]=H([]),[E,D]=H(0),[O,k]=H(!1),[A,j]=H(null),M=W(null),N=W(null),P=W(null),F=W(null),I=W(null),L=W(null),ee=W(d);ee.current=d,U(()=>{let e=e=>{let t=L.current;t?.open&&(e.target instanceof Node&&t.contains(e.target)||(t.open=!1))};return document.addEventListener(`pointerdown`,e),document.addEventListener(`focusin`,e),()=>{document.removeEventListener(`pointerdown`,e),document.removeEventListener(`focusin`,e)}},[]),U(()=>{e&&N.current?.focus()},[e]),U(()=>{if(!O)return;let e=I.current,t=e?.children?.[E];!e||!t||(e.scrollTop=si({scrollTop:e.scrollTop,viewportHeight:e.clientHeight,optionTop:t.offsetTop,optionHeight:t.offsetHeight}))},[E,O]),U(()=>{M.current&&(M.current.scrollTop=M.current.scrollHeight)},[a,A]),U(()=>{R().catch(e=>{u(e.message||`Chat unavailable`)});let e=()=>{P.current?.abort()};return window.addEventListener(`archie:teardown`,e),()=>{window.removeEventListener(`archie:teardown`,e),P.current?.abort()}},[]);async function R(){let e=await K.chatSessions(),t=e.sessions||[];n(t),m(e),g(e.active_persona||``);let i=e.providers||[],a=e.active_provider||i[0]||``;v(a),b(e.active_model||``);let o=(e.commands||[]).map(e=>typeof e==`string`?{command:e,usage:e,description:``}:e);C(o),!r&&t[0]&&await te(t[0].session_id,e,t)}async function te(e,t,n){let r=t||p;i(e),o([]),j(null);let a=r.active_personas?.[e]||r.active_persona||``;g(a);try{await K.chatMessage(ri(),`/resume ${e}`);let[t,n]=await Promise.all([K.chatMessages(e),K.chatTurns(e)]),r=new Map;for(let e of n||[]){let t=e.assistant_message_id||e.AssistantMessageID;t&&r.set(t,e)}let i=(t||[]).map(e=>{let t=e.message_id||e.MessageID,n=r.get(t);return n?{...e,tool_calls:n.tool_calls||n.ToolCalls||[]}:e});o(i)}catch(e){u(e.message||`Could not load session messages`)}}async function ne(e){if(r)try{u(`Working…`);let t=await K.chatMessage(ri(),e);t.session_id&&i(t.session_id),u(t.reply||`Session updated`),await R(),(t.session_id||r)&&await te(t.session_id||r),F.current&&(F.current.open=!1)}catch(e){u(e.message||`Session action failed`)}}function re(e,t){let n=window.prompt(t);n?.trim()&&ne(`${e} ${n.trim()}`)}function ie(e){let t=e.target.value;g(t),!(!r||!t)&&K.chatPersona(r,t).then(()=>{m(e=>({...e,active_personas:{...e.active_personas||{},[r]:t}})),u(`Personality: ${t}`)}).catch(e=>{u(e.message||`Failed to set personality`)})}async function ae(e){let t=e.target.value;if(v(t),t)try{let e=await K.chatMessage(ri(),`/model --provider ${t}`);u(e.reply||`Provider updated`),await R()}catch(e){u(`Provider update failed: ${e.message||e}`)}}async function z(e){let t=e.target.value;if(b(t),t)try{let e=await K.chatMessage(ri(),`/model ${t}`);u(e.reply||`Model updated`),await R()}catch(e){u(`Model update failed: ${e.message||e}`)}}function B(){c(`/new`),le({textOverride:`/new`})}function oe(e){let t=e.target.value;c(t);let n=t.slice(0,e.target.selectionStart).match(/(?:^|\s)\/([^\s]*)$/);if(n){let e=n[1].toLowerCase(),t=x.filter(t=>`${t.command} ${t.description}`.toLowerCase().includes(e)).slice(0,8);if(t.length){T(t),D(0),k(!0);return}}k(!1),T([])}function se(e){let t=w[e];if(!t||!N.current)return;let n=N.current,r=n.value.slice(0,n.selectionStart),i=n.value.slice(n.selectionStart),a=r.search(/(?:^|\s)\/[^\s]*$/),o=a<0?r.length:a+ +(r[a]===` `),s=`${r.slice(0,o)}${t.command} ${i}`;c(s),k(!1);let l=o+t.command.length+1;setTimeout(()=>{n.focus(),n.setSelectionRange(l,l)},0)}function ce(e){if(O&&w.length){if(e.key===`Enter`&&!e.shiftKey&&!e.ctrlKey&&!e.metaKey&&w.some(e=>e.command===s.trim())){e.preventDefault(),k(!1),le();return}if(e.key===`ArrowDown`){e.preventDefault(),D(e=>(e+1)%w.length);return}if(e.key===`ArrowUp`){e.preventDefault(),D(e=>(e+w.length-1)%w.length);return}if(e.key===`Enter`&&!e.shiftKey&&!e.ctrlKey&&!e.metaKey){e.preventDefault(),se(E);return}if(e.key===`Escape`){e.preventDefault(),k(!1);return}}e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),le())}async function le(e=null){let t=e?.textOverride,{text:n,turn:r,isRetry:a}=oi(e,t===void 0?s:t);if(!n||ee.current)return;k(!1),f(!0),u(a?`Retrying…`:`Thinking…`),a||(o(e=>[...e,{from:`web`,text:n}]),c(``));let l=[];j({text:``,tools:[],isError:!1,turn:r,isRetry:a});let d=``,p=!1,m=!1,h=null;try{let e=new AbortController;P.current=e,h=setTimeout(()=>{m=!0,e.abort()},12e4);let t=(await K.chatStream({channel_id:ri(),source_id:r.sourceID,text:r.text,page:ui()},{signal:e.signal})).body.getReader(),n=new TextDecoder,a=``;for(;;){let{value:e,done:r}=await t.read();a+=n.decode(e||new Uint8Array,{stream:!r});let o=a.split(` - -`);a=o.pop()||``;for(let e of o){let t=e.split(` -`).find(e=>e.startsWith(`data: `));if(!t)continue;let n=JSON.parse(t.slice(6));if(n.session_id&&i(n.session_id),n.type===`delta`&&(d+=n.text,j(e=>e?{...e,text:d}:null)),n.type===`tool`&&(l=[...l,n],j(e=>e?{...e,tools:l}:null)),n.type===`navigate`&&(l=[...l,n],j(e=>e?{...e,tools:l}:null)),n.type===`done`&&(p=!0,d||=n.text),n.type===`error`)throw Error(n.text)}if(r)break}if(!p)throw Error(`chat stream ended before completion`);o(e=>[...e,{from:`assistant`,text:d,tool_calls:l}]),j(null),u(`Ready`),await R()}catch(e){if(e.name===`AbortError`&&!m)j({text:`Turn stopped.`,tools:l,isError:!1,turn:r,isRetry:a}),u(`Stopped`);else{let t=`Unable to complete that turn: ${e.message||e}`;j({text:t,tools:l,isError:!0,turn:ai(r),isRetry:a}),u(`Error — retry available`)}}finally{clearTimeout(h),P.current=null,f(!1),N.current&&N.current.focus()}}function V(){u(`Stopping…`),r&&K.chatCancel(r).catch(()=>{}),P.current?.abort()}let ue=p.models_by_provider||{},de=_&&ue[_]?ue[_]:p.models||[];return q(`div`,{className:`chat-panel-content`,children:[q(`div`,{className:`chat-drawer-head`,children:[q(`strong`,{className:`chat-panel-title`,children:li(t,r)}),q(`div`,{className:`chat-head-actions`,children:q(`button`,{className:`icon-btn chat-new`,type:`button`,title:`New chat`,"aria-label":`New chat`,onClick:B,children:q(J,{name:`message-circle-plus`})})})]}),q(`div`,{className:`chat-bar`,children:[q(`label`,{className:`chat-session-switch`,children:[q(`span`,{className:`sr-only`,children:`Conversation`}),q(`select`,{value:r,onChange:e=>te(e.target.value),disabled:!t.length,children:t.length?t.map(e=>q(`option`,{value:e.session_id,children:ci(e)},e.session_id)):q(`option`,{value:``,children:`No conversations yet`})})]}),q(`details`,{className:`chat-settings`,ref:L,children:[q(`summary`,{"aria-label":`Chat settings`,title:`Chat settings`,children:q(`span`,{"aria-hidden":`true`,children:`⚙`})}),q(`div`,{className:`chat-settings-body`,children:[q(`span`,{className:`chat-status`,children:l}),q(`label`,{children:[`Personality`,q(`select`,{className:`chat-select`,"aria-label":`Personality`,value:h,onChange:ie,children:[q(`option`,{value:``,children:`Default`}),(p.personas||[]).map(e=>q(`option`,{value:e,children:e},e))]})]}),(p.providers||[]).length>0&&q(`label`,{children:[`Provider`,q(`select`,{className:`chat-select`,"aria-label":`Provider`,value:_,onChange:ae,children:[q(`option`,{value:``,children:`Default`}),(p.providers||[]).map(e=>q(`option`,{value:e,children:e},e))]})]}),q(`label`,{children:[`Model`,q(`select`,{className:`chat-select`,"aria-label":`Model`,value:y,onChange:z,children:[q(`option`,{value:``,children:`Default`}),de.map(e=>q(`option`,{value:e,children:e},e))]})]})]})]})]}),q(`div`,{className:`chat-layout`,children:q(`section`,{className:`chat-workspace`,children:[q(`div`,{className:`chat-workspace-head`,children:q(`details`,{className:`chat-session-tools`,ref:F,hidden:!r,children:[q(`summary`,{children:`Session actions`}),q(`div`,{className:`chat-session-tool-list`,children:[q(`button`,{className:`btn`,type:`button`,onClick:()=>ne(`/retry`),children:`Retry`}),q(`button`,{className:`btn`,type:`button`,onClick:()=>ne(`/undo`),children:`Undo`}),q(`button`,{className:`btn`,type:`button`,onClick:()=>re(`/title`,`Session title`),children:`Rename`}),q(`button`,{className:`btn`,type:`button`,onClick:()=>re(`/branch`,`Branch name (optional)`),children:`Branch`}),q(`button`,{className:`btn`,type:`button`,onClick:()=>ne(`/compress --preview`),children:`Preview compression`})]})]})}),q(`div`,{className:`chat-transcript`,ref:M,children:!a.length&&!A?q(`div`,{className:`chat-empty-state`,children:[q(`span`,{className:`chat-empty-mark`,children:`A`}),q(`h2`,{children:`What are we working on?`}),q(`p`,{children:`Ask Archie anything, or start with one of these prompts.`}),q(`div`,{className:`chat-prompt-grid`,children:[q(`button`,{className:`chat-prompt`,type:`button`,onClick:()=>{c(`Summarise active tasks`),N.current?.focus()},children:`Summarise active tasks`}),q(`button`,{className:`chat-prompt`,type:`button`,onClick:()=>{c(`Show running agents`),N.current?.focus()},children:`Show running agents`}),q(`button`,{className:`chat-prompt`,type:`button`,onClick:()=>{c(`Check system status`),N.current?.focus()},children:`Check system status`})]})]}):q(S,{children:[a.map((e,t)=>{let n=e.from??e.From??``,r=e.text??e.Text??``,i=n!==`web`,a=e.tool_calls||e.ToolCalls||[];return q(`div`,{className:`chat-bubble-row ${i?`assistant`:`user`}`,children:q(`div`,{className:`chat-bubble`,children:i?q(S,{children:[a.length>0&&q(`div`,{className:`chat-tools`,children:a.map((e,t)=>{if(e.path)return q(`a`,{className:`chat-nav-chip`,href:`#${e.path}`,title:`Go to ${e.label||e.path}`,children:[q(`span`,{className:`chat-nav-chip-icon`,"aria-hidden":`true`,children:`↗`}),q(`span`,{className:`chat-nav-chip-label`,children:e.label||e.path})]},t);let n=e.name||e.Name||e.tool||`tool`,r=e.parameters||e.Parameters||``,i=e.summary||e.Summary||e.text||e.err||e.Err||`done`;return q(`div`,{className:`chat-tool ${e.err||e.Err||e.failed?`failed`:``}`,children:[q(`span`,{className:`chat-tool-icon`,children:`🔧`}),q(`span`,{className:`chat-tool-name`,children:n}),r&&q(`code`,{className:`chat-tool-parameters`,children:r}),q(`span`,{className:`chat-tool-summary`,children:i})]},t)})}),q($r,{text:r})]}):q(`div`,{className:`chat-bubble-text`,children:r})})},t)}),A&&q(`div`,{className:`chat-bubble-row assistant`,children:q(`div`,{className:`chat-bubble`,children:[A.tools?.length>0&&q(`div`,{className:`chat-tools`,children:A.tools.map((e,t)=>{if(e.path)return q(`a`,{className:`chat-nav-chip`,href:`#${e.path}`,title:`Go to ${e.label||e.path}`,children:[q(`span`,{className:`chat-nav-chip-icon`,"aria-hidden":`true`,children:`↗`}),q(`span`,{className:`chat-nav-chip-label`,children:e.label||e.path})]},t);let n=e.name||e.tool||`tool`,r=e.parameters||``,i=e.summary||e.text||(e.failed?`failed`:`running…`);return q(`div`,{className:`chat-tool ${e.failed?`failed`:``}`,children:[q(`span`,{className:`chat-tool-icon`,children:`🔧`}),q(`span`,{className:`chat-tool-name`,children:n}),r&&q(`code`,{className:`chat-tool-parameters`,children:r}),q(`span`,{className:`chat-tool-summary`,children:i})]},t)})}),q($r,{text:A.text||`…`}),A.isError&&q(`button`,{className:`btn chat-retry`,type:`button`,onClick:()=>le({turn:A.turn}),children:`Retry`})]})})]})}),q(`div`,{className:`chat-compose`,children:q(`div`,{className:`chat-composer-shell`,children:[q(`textarea`,{ref:N,className:`chat-composer`,rows:3,placeholder:`Message Archie, or type / for commands`,"aria-label":`Message Archie`,value:s,onInput:oe,onKeyDown:ce}),O&&w.length>0&&q(`div`,{className:`chat-command-menu`,ref:I,role:`listbox`,"aria-label":`Commands`,children:w.map((e,t)=>q(`button`,{type:`button`,role:`option`,"aria-selected":String(t===E),className:`chat-command-option`,onMouseDown:e=>e.preventDefault(),onClick:()=>se(t),children:[q(`code`,{children:e.command}),q(`span`,{children:e.description||e.usage||``})]},e.command))}),q(`div`,{className:`chat-compose-actions`,children:[d&&q(`button`,{className:`btn`,type:`button`,onClick:V,children:`Stop`}),q(`button`,{className:`btn btn-primary`,type:`button`,disabled:d||!s.trim(),onClick:()=>le(),children:`Send`})]})]})})]})})]})}function fi(e,t){let n=mi(t);for(let t of e){let e=hi(t.path,n);if(e)return{route:t,params:e}}return null}function pi(e){return e?.navPath||e?.path||`/`}function mi(e){let t=String(e??`/`).split(`?`,1)[0].split(`#`,1)[0];return t?t.length>1&&t.endsWith(`/`)?t.slice(0,-1):t:`/`}function hi(e,t){let n=String(e).split(`/`),r=String(t).split(`/`);if(n.length!==r.length)return null;let i={};for(let e=0;et.nav!==!1&&!e.includes(t.path))}function xi({activePath:e,hidden:t,onNavigate:n,theme:r,onToggleTheme:i}){let[a,o]=H(!1),s=W(null),c=()=>o(!1);return q(`header`,{className:`topbar`,children:[q(`div`,{className:`brand`,children:[q(`span`,{className:`brand-mark`,children:`A`}),`Archie`]}),q(`nav`,{className:`nav`,children:bi(t).map(t=>q(`a`,{className:`nav-item`,href:`#${t.path}`,"aria-current":t.path===e?`page`:void 0,"aria-disabled":t.soon||void 0,title:t.soon?`Coming soon`:void 0,onClick:e=>{t.soon?e.preventDefault():n(t.path)},children:[q(J,{name:t.icon}),q(`span`,{className:`nav-label`,children:t.label}),t.soon?q(`span`,{className:`nav-soon`,children:`soon`}):null]},t.path))}),q(`div`,{className:`topbar-end`,children:[q(`div`,{className:`topbar-search${a?` is-open`:``}`,children:[q(`span`,{className:`topbar-search-icon`,"aria-hidden":`true`,children:q(J,{name:`search`,size:15})}),q(`button`,{className:`icon-btn mobile-search-toggle`,type:`button`,"aria-label":`Open Jump to navigation`,"aria-expanded":a?`true`:`false`,onClick:()=>{o(!0),s.current?.focus()},children:q(J,{name:`search`,size:15})}),q(`input`,{ref:s,type:`search`,placeholder:`Jump to…`,"aria-label":`Jump to a section`,onKeyDown:e=>{if(e.key===`Escape`){e.preventDefault(),c(),e.target.blur();return}if(e.key!==`Enter`)return;let t=e.target.value.trim().toLowerCase(),r=gi.find(e=>e.nav!==!1&&!e.soon&&e.label.toLowerCase().startsWith(t));r&&(n(r.path),e.target.value=``,e.target.blur(),c())}})]}),q(`button`,{className:`icon-btn`,title:`Documentation`,"aria-label":`Documentation`,children:q(J,{name:`help`})}),q(`button`,{className:`icon-btn`,title:`Toggle light and dark`,"aria-label":`Toggle light and dark`,onClick:i,children:q(J,{name:r===`dark`?`moon`:`sun`})}),q(`div`,{className:`avatar`,title:`Signed in locally`,children:`A`})]})]})}var Si=`chat-panel`;function Ci(){let[e,t]=H(!1),n=W(null),r=ye(()=>{t(!1),n.current?.focus()},[]);return U(()=>{if(!e)return;let t=e=>{e.defaultPrevented||e.key!==`Escape`||r()};return document.addEventListener(`keydown`,t),()=>document.removeEventListener(`keydown`,t)},[e,r]),q(`div`,{className:`chat-dock${e?` is-open`:``}`,children:[q(`aside`,{className:`chat-drawer${e?` is-open`:``}`,id:Si,"aria-label":`Chat with Archie`,"aria-hidden":e?void 0:`true`,children:q(`div`,{className:`chat-drawer-panel`,children:q(di,{open:e})})}),q(`button`,{ref:n,type:`button`,className:`chat-fab`,"aria-label":e?`Close chat`:`Chat with Archie`,title:e?`Close chat`:`Chat with Archie`,"aria-expanded":e?`true`:`false`,"aria-controls":Si,onClick:()=>e?r():t(!0),children:[q(`span`,{className:`chat-fab-icon chat-fab-icon-open`,"aria-hidden":`true`,children:q(J,{name:`chat`,size:22})}),q(`span`,{className:`chat-fab-icon chat-fab-icon-close`,"aria-hidden":`true`,children:q(J,{name:`close`,size:22})})]})]})}function wi({label:e}){return q(`div`,{children:[q(`div`,{className:`page-head`,children:q(`div`,{children:q(`h1`,{className:`page-title`,children:e})})}),q(`div`,{className:`card`,children:q(`div`,{className:`empty`,children:[q(`div`,{className:`empty-title`,children:`${e} is not built yet`}),q(`div`,{children:`This section is next up. Nothing is broken.`})]})})]})}function Ti({view:e,search:t,params:n}){return e(t,n)}var Ei=null,Di=null;function Oi(e){if(!Ei)return;let[t,n=``]=String(e).split(`?`,2),r=fi(gi,t),i=r?.route||gi[0],a=r?.params||{};ae(i.view?q(Ti,{view:i.view,search:new URLSearchParams(n),params:a},`${i.path}|${Object.values(a).join(`/`)}`):q(wi,{label:i.label}),Ei)}function ki(e){let[t]=String(e).split(`?`,2),n=fi(gi,t)?.route||gi[0];Ei?.firstElementChild?.dispatchEvent(new CustomEvent(`archie:teardown`)),Di?.setActive(pi(n)),Oi(e)}function Ai(e){location.hash===`#${e}`?ki(e):location.hash=e}window.addEventListener(`hashchange`,()=>ki(location.hash.slice(1)||`/`));function ji(){let[e,t]=H(`/`),[n,r]=H(vi),[i,a]=H([]),o=ye(e=>{Ei=e,Di={setActive:t}},[]);return U(()=>{yi(n)},[n]),U(()=>{K.capabilities().then(e=>a(Le(e?.sections,gi))).catch(()=>{})},[]),U(()=>{Ge().then(()=>Oi(location.hash.slice(1)||`/`))},[]),q(S,{children:[q(`div`,{className:`shell`,children:[q(xi,{activePath:e,hidden:i,onNavigate:Ai,theme:n,onToggleTheme:()=>r(e=>e===`dark`?`light`:`dark`)}),q(`main`,{className:`main`,ref:o})]}),q(Ci,{})]})}yi(vi()),ae(q(ji,{}),document.getElementById(`app`)),ki(location.hash.slice(1)||`/`); \ No newline at end of file +(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function e(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var t={},n=[],r=()=>{},i=()=>!1,a=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),o=e=>e.startsWith(`onUpdate:`),s=Object.assign,c=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},l=Object.prototype.hasOwnProperty,u=(e,t)=>l.call(e,t),d=Array.isArray,f=e=>x(e)===`[object Map]`,p=e=>x(e)===`[object Set]`,m=e=>x(e)===`[object Date]`,h=e=>typeof e==`function`,g=e=>typeof e==`string`,_=e=>typeof e==`symbol`,v=e=>typeof e==`object`&&!!e,y=e=>(v(e)||h(e))&&h(e.then)&&h(e.catch),b=Object.prototype.toString,x=e=>b.call(e),S=e=>x(e).slice(8,-1),C=e=>x(e)===`[object Object]`,w=e=>g(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,T=e(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),ee=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},te=/-\w/g,E=ee(e=>e.replace(te,e=>e.slice(1).toUpperCase())),ne=/\B([A-Z])/g,D=ee(e=>e.replace(ne,`-$1`).toLowerCase()),O=ee(e=>e.charAt(0).toUpperCase()+e.slice(1)),re=ee(e=>e?`on${O(e)}`:``),k=(e,t)=>!Object.is(e,t),ie=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},ae=e=>{let t=parseFloat(e);return isNaN(t)?e:t},oe,se=()=>oe||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{};function ce(e){if(d(e)){let t={};for(let n=0;ne.startsWith(`/*`)?``:e).split(le).forEach(e=>{if(e){let n=e.split(ue);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function j(e){let t=``;if(g(e))t=e;else if(d(e))for(let n=0;n!!(e&&e.__v_isRef===!0),Se=e=>g(e)?e:e==null?``:d(e)||v(e)&&(e.toString===b||!h(e.toString))?xe(e)?Se(e.value):JSON.stringify(e,Ce,2):String(e),Ce=(e,t)=>xe(t)?Ce(e,t.value):f(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[we(t,r)+` =>`]=n,e),{})}:p(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>we(e))}:_(t)?we(t):v(t)&&!d(t)&&!C(t)?String(t):t,we=(e,t=``)=>_(e)?`Symbol(${e.description??t})`:e,M,Te=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&M&&(M.active?(this.parent=M,this.index=(M.scopes||(M.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e0&&--this._on===0){if(M===this)M=this.prevScope;else{let e=M;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t0)return;if(je){let e=je;for(je=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Ae;){let t=Ae;for(Ae=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function Fe(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ie(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),ze(r),Be(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function Le(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Re(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Re(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ge)||(e.globalVersion=Ge,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Le(e))))return;e.flags|=2;let t=e.dep,n=N,r=P;N=e,P=!0;try{Fe(e);let n=e.fn(e._value);(t.version===0||k(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{N=n,P=r,Ie(e),e.flags&=-3}}function ze(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)ze(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Be(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var P=!0,Ve=[];function He(){Ve.push(P),P=!1}function Ue(){let e=Ve.pop();P=e===void 0||e}function We(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=N;N=void 0;try{t()}finally{N=e}}}var Ge=0,Ke=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},qe=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!N||!P||N===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==N)t=this.activeLink=new Ke(N,this),N.deps?(t.prevDep=N.depsTail,N.depsTail.nextDep=t,N.depsTail=t):N.deps=N.depsTail=t,Je(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=N.depsTail,t.nextDep=void 0,N.depsTail.nextDep=t,N.depsTail=t,N.deps===t&&(N.deps=e)}return t}trigger(e){this.version++,Ge++,this.notify(e)}notify(e){Ne();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Pe()}}};function Je(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)Je(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var Ye=new WeakMap,Xe=Symbol(``),Ze=Symbol(``),Qe=Symbol(``);function F(e,t,n){if(P&&N){let t=Ye.get(e);t||Ye.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new qe),r.map=t,r.key=n),r.track()}}function $e(e,t,n,r,i,a){let o=Ye.get(e);if(!o){Ge++;return}let s=e=>{e&&e.trigger()};if(Ne(),t===`clear`)o.forEach(s);else{let i=d(e),a=i&&w(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===Qe||!_(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(Qe)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(Xe)),f(e)&&s(o.get(Ze)));break;case`delete`:i||(s(o.get(Xe)),f(e)&&s(o.get(Ze)));break;case`set`:f(e)&&s(o.get(Xe))}}Pe()}function et(e){let t=R(e);return t===e||(F(t,`iterate`,Qe),L(e))?t:Lt(e)?It(e)?t.map(e=>Bt(z(e))):t.map(Bt):t.map(z)}function tt(e){return F(e=R(e),`iterate`,Qe),e}function I(e,t){return Lt(e)?Bt(It(e)?z(t):t):z(t)}var nt={__proto__:null,[Symbol.iterator](){return rt(this,Symbol.iterator,e=>I(this,e))},concat(...e){return et(this).concat(...e.map(e=>d(e)?et(e):e))},entries(){return rt(this,`entries`,e=>(e[1]=I(this,e[1]),e))},every(e,t){return at(this,`every`,e,t,void 0,arguments)},filter(e,t){return at(this,`filter`,e,t,e=>e.map(e=>I(this,e)),arguments)},find(e,t){return at(this,`find`,e,t,e=>I(this,e),arguments)},findIndex(e,t){return at(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return at(this,`findLast`,e,t,e=>I(this,e),arguments)},findLastIndex(e,t){return at(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return at(this,`forEach`,e,t,void 0,arguments)},includes(...e){return st(this,`includes`,e)},indexOf(...e){return st(this,`indexOf`,e)},join(e){return et(this).join(e)},lastIndexOf(...e){return st(this,`lastIndexOf`,e)},map(e,t){return at(this,`map`,e,t,void 0,arguments)},pop(){return ct(this,`pop`)},push(...e){return ct(this,`push`,e)},reduce(e,...t){return ot(this,`reduce`,e,t)},reduceRight(e,...t){return ot(this,`reduceRight`,e,t)},shift(){return ct(this,`shift`)},some(e,t){return at(this,`some`,e,t,void 0,arguments)},splice(...e){return ct(this,`splice`,e)},toReversed(){return et(this).toReversed()},toSorted(e){return et(this).toSorted(e)},toSpliced(...e){return et(this).toSpliced(...e)},unshift(...e){return ct(this,`unshift`,e)},values(){return rt(this,`values`,e=>I(this,e))}};function rt(e,t,n){let r=tt(e),i=r[t]();return r!==e&&!L(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var it=Array.prototype;function at(e,t,n,r,i,a){let o=tt(e),s=o!==e&&!L(e),c=o[t];if(c!==it[t]){let t=c.apply(e,a);return s?z(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,I(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function ot(e,t,n,r){let i=tt(e),a=i!==e&&!L(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=I(e,t)),n.call(this,t,I(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?I(e,c):c}function st(e,t,n){let r=R(e);F(r,`iterate`,Qe);let i=r[t](...n);return(i===-1||i===!1)&&Rt(n[0])?(n[0]=R(n[0]),r[t](...n)):i}function ct(e,t,n=[]){He(),Ne();let r=R(e)[t].apply(e,n);return Pe(),Ue(),r}var lt=e(`__proto__,__v_isRef,__isVue`),ut=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(_));function dt(e){_(e)||(e=String(e));let t=R(this);return F(t,`has`,e),t.hasOwnProperty(e)}var ft=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?At:kt:i?Ot:Dt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=d(e);if(!r){let e;if(a&&(e=nt[t]))return e;if(t===`hasOwnProperty`)return dt}let o=Reflect.get(e,t,B(e)?e:n);if((_(t)?ut.has(t):lt(t))||(r||F(e,`get`,t),i))return o;if(B(o)){let e=a&&w(t)?o:o.value;return r&&v(e)?Pt(e):e}return v(o)?r?Pt(o):Mt(o):o}},pt=class extends ft{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=d(e)&&w(t);if(!this._isShallow){let e=Lt(i);if(!L(n)&&!Lt(n)&&(i=R(i),n=R(n)),!a&&B(i)&&!B(n))return e||(i.value=n),!0}let o=a?Number(t)e,yt=e=>Reflect.getPrototypeOf(e);function bt(e,t,n){return function(...r){let i=this.__v_raw,a=R(i),o=f(a),c=e===`entries`||e===Symbol.iterator&&o,l=e===`keys`&&o,u=i[e](...r),d=n?vt:t?Bt:z;return!t&&F(a,`iterate`,l?Ze:Xe),s(Object.create(u),{next(){let{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:c?[d(e[0]),d(e[1])]:d(e),done:t}}})}}function xt(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function St(e,t){let n={get(n){let r=this.__v_raw,i=R(r),a=R(n);e||(k(n,a)&&F(i,`get`,n),F(i,`get`,a));let{has:o}=yt(i),s=t?vt:e?Bt:z;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&F(R(t),`iterate`,Xe),t.size},has(t){let n=this.__v_raw,r=R(n),i=R(t);return e||(k(t,i)&&F(r,`has`,t),F(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=R(a),s=t?vt:e?Bt:z;return!e&&F(o,`iterate`,Xe),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return s(n,e?{add:xt(`add`),set:xt(`set`),delete:xt(`delete`),clear:xt(`clear`)}:{add(e){let n=R(this),r=yt(n),i=R(e),a=!t&&!L(e)&&!Lt(e)?i:e;return r.has.call(n,a)||k(e,a)&&r.has.call(n,e)||k(i,a)&&r.has.call(n,i)||(n.add(a),$e(n,`add`,a,a)),this},set(e,n){!t&&!L(n)&&!Lt(n)&&(n=R(n));let r=R(this),{has:i,get:a}=yt(r),o=i.call(r,e);o||=(e=R(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?k(n,s)&&$e(r,`set`,e,n,s):$e(r,`add`,e,n),this},delete(e){let t=R(this),{has:n,get:r}=yt(t),i=n.call(t,e);i||=(e=R(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&$e(t,`delete`,e,void 0,a),o},clear(){let e=R(this),t=e.size!==0,n=e.clear();return t&&$e(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=bt(r,e,t)}),n}function Ct(e,t){let n=St(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(u(n,r)&&r in t?n:t,r,i)}var wt={get:Ct(!1,!1)},Tt={get:Ct(!1,!0)},Et={get:Ct(!0,!1)},Dt=new WeakMap,Ot=new WeakMap,kt=new WeakMap,At=new WeakMap;function jt(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function Mt(e){return Lt(e)?e:Ft(e,!1,ht,wt,Dt)}function Nt(e){return Ft(e,!1,_t,Tt,Ot)}function Pt(e){return Ft(e,!0,gt,Et,kt)}function Ft(e,t,n,r,i){if(!v(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let a=i.get(e);if(a)return a;let o=jt(S(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function It(e){return Lt(e)?It(e.__v_raw):!!(e&&e.__v_isReactive)}function Lt(e){return!!(e&&e.__v_isReadonly)}function L(e){return!!(e&&e.__v_isShallow)}function Rt(e){return e?!!e.__v_raw:!1}function R(e){let t=e&&e.__v_raw;return t?R(t):e}function zt(e){return!u(e,`__v_skip`)&&Object.isExtensible(e)&&A(e,`__v_skip`,!0),e}var z=e=>v(e)?Mt(e):e,Bt=e=>v(e)?Pt(e):e;function B(e){return e?e.__v_isRef===!0:!1}function Vt(e){return Ut(e,!1)}function Ht(e){return Ut(e,!0)}function Ut(e,t){return B(e)?e:new Wt(e,t)}var Wt=class{constructor(e,t){this.dep=new qe,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:R(e),this._value=t?e:z(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||L(e)||Lt(e);e=n?e:R(e),k(e,t)&&(this._rawValue=e,this._value=n?e:z(e),this.dep.trigger())}};function Gt(e){return B(e)?e.value:e}var Kt={get:(e,t,n)=>t===`__v_raw`?e:Gt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return B(i)&&!B(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function qt(e){return It(e)?e:new Proxy(e,Kt)}var Jt=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new qe(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ge-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&N!==this)return Me(this,!0),!0}get value(){let e=this.dep.track();return Re(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function Yt(e,t,n=!1){let r,i;return h(e)?r=e:(r=e.get,i=e.set),new Jt(r,i,n)}var Xt={},Zt=new WeakMap,Qt=void 0;function $t(e,t=!1,n=Qt){if(n){let t=Zt.get(n);t||Zt.set(n,t=[]),t.push(e)}}function en(e,n,i=t){let{immediate:a,deep:o,once:s,scheduler:l,augmentJob:u,call:f}=i,p=e=>o?e:L(e)||o===!1||o===0?tn(e,1):tn(e),m,g,_,v,y=!1,b=!1;if(B(e)?(g=()=>e.value,y=L(e)):It(e)?(g=()=>p(e),y=!0):d(e)?(b=!0,y=e.some(e=>It(e)||L(e)),g=()=>e.map(e=>{if(B(e))return e.value;if(It(e))return p(e);if(h(e))return f?f(e,2):e()})):g=h(e)?n?f?()=>f(e,2):e:()=>{if(_){He();try{_()}finally{Ue()}}let t=Qt;Qt=m;try{return f?f(e,3,[v]):e(v)}finally{Qt=t}}:r,n&&o){let e=g,t=o===!0?1/0:o;g=()=>tn(e(),t)}let x=Ee(),S=()=>{m.stop(),x&&x.active&&c(x.effects,m)};if(s&&n){let e=n;n=(...t)=>{let n=e(...t);return S(),n}}let C=b?Array(e.length).fill(Xt):Xt,w=e=>{if(m.flags&1&&(m.dirty||e)){if(n){let t=m.run();if(e||o||y||(b?t.some((e,t)=>k(e,C[t])):k(t,C))){_&&_();let e=Qt;Qt=m;try{let e=[t,C===Xt?void 0:b&&C[0]===Xt?[]:C,v];C=t,f?f(n,3,e):n(...e)}finally{Qt=e}}}else m.run()}};return u&&u(w),m=new Oe(g),m.scheduler=l?()=>l(w,!1):w,v=e=>$t(e,!1,m),_=m.onStop=()=>{let e=Zt.get(m);if(e){if(f)f(e,4);else for(let t of e)t();Zt.delete(m)}},n?a?w(!0):C=m.run():l?l(w.bind(null,!0),!0):m.run(),S.pause=m.pause.bind(m),S.resume=m.resume.bind(m),S.stop=S,S}function tn(e,t=1/0,n){if(t<=0||!v(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,B(e))tn(e.value,t,n);else if(d(e))for(let r=0;r{tn(e,t,n)});else if(C(e)){for(let r in e)tn(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&tn(e[r],t,n)}return e}function nn(e,t,n,r){try{return r?e(...r):e()}catch(e){rn(e,t,n)}}function V(e,t,n,r){if(h(e)){let i=nn(e,t,n,r);return i&&y(i)&&i.catch(e=>{rn(e,t,n)}),i}if(d(e)){let i=[];for(let a=0;a>>1,i=H[r],a=yn(i);a=yn(n)?H.push(e):H.splice(pn(t),0,e),e.flags|=1,hn()}}function hn(){dn||=un.then(bn)}function gn(e){if(!d(e))cn&&e.id===-1?cn.splice(ln+1,0,e):e.flags&1||(sn.push(e),e.flags|=1);else for(let t=0;tyn(e)-yn(t));if(sn.length=0,cn){for(let t=0;te.id==null?e.flags&2?-1:1/0:e.id;function bn(e){try{for(on=0;on{r._d&&Ni(-1);let i=Sn(t),a=ki.length,o;try{o=e(...n)}finally{for(let e=ki.length;e>a;e--)ji();Sn(i),r._d&&Ni(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function wn(e,t,n,r){let i=e.dirs,a=t&&t.dirs;for(let o=0;o1)return n&&h(t)?t.call(r&&r.proxy):t}}var Dn=Symbol.for(`v-scx`),On=()=>En(Dn);function kn(e,t,n){return An(e,t,n)}function An(e,n,i=t){let{immediate:a,deep:o,flush:c,once:l}=i,u=s({},i),d=n&&a||!n&&c!==`post`,f;if(oa){if(c===`sync`){let e=On();f=e.__watcherHandles||=[]}else if(!d){let e=()=>{};return e.stop=r,e.resume=r,e.pause=r,e}}let p=J;u.call=(e,t,n)=>V(e,p,t,n);let m=!1;c===`post`?u.scheduler=e=>{G(e,p&&p.suspense)}:c!==`sync`&&(m=!0,u.scheduler=(e,t)=>{t?e():mn(e)}),u.augmentJob=e=>{n&&(e.flags|=4),m&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};let h=en(e,n,u);return oa&&(f?f.push(h):d&&h()),h}function jn(e,t,n){let r=this.proxy,i=g(e)?e.includes(`.`)?Mn(r,e):()=>r[e]:e.bind(r,r),a;h(t)?a=t:(a=t.handler,n=t);let o=ra(this),s=An(i,a.bind(r),n);return o(),s}function Mn(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;ee.__isTeleport,Fn=Symbol(`_leaveCb`);function In(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==Di){t=n;break}}return t}function Ln(e){if(!Kn(e))return Pn(e.type)&&e.children?In(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&h(n.default))return n.default()}}function Rn(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;let n=e.component.subTree;Rn(Pn(n.type)&&Ln(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function zn(e,t){return h(e)?s({name:e.name},t,{setup:e}):e}function Bn(e){e.ids=[e.ids[0]+e.ids[2]+++`-`,0,0]}function Vn(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var Hn=new WeakMap;function Un(e,n,r,a,o=!1){if(d(e)){e.forEach((e,t)=>Un(e,n&&(d(n)?n[t]:n),r,a,o));return}if(Gn(a)&&!o){a.shapeFlag&512&&a.type.__asyncResolved&&a.component.subTree.component&&Un(e,n,r,a.component.subTree);return}let s=a.shapeFlag&4?pa(a.component):a.el,l=o?null:s,{i:f,r:p}=e,m=n&&n.r,_=f.refs===t?f.refs={}:f.refs,v=f.setupState,y=R(v),b=v===t?i:e=>!Vn(_,e)&&u(y,e),x=(e,t)=>!(t&&Vn(_,t));if(m!=null&&m!==p){if(Wn(n),g(m))_[m]=null,b(m)&&(v[m]=null);else if(B(m)){let e=n;x(m,e.k)&&(m.value=null),e.k&&(_[e.k]=null)}}if(h(p))nn(p,f,12,[l,_]);else{let t=g(p),n=B(p);if(t||n){let i=()=>{if(e.f){let n=t?b(p)?v[p]:_[p]:x(p)||!e.k?p.value:_[e.k];if(o)d(n)&&c(n,s);else if(d(n))n.includes(s)||n.push(s);else if(t)_[p]=[s],b(p)&&(v[p]=_[p]);else{let t=[s];x(p,e.k)&&(p.value=t),e.k&&(_[e.k]=t)}}else t?(_[p]=l,b(p)&&(v[p]=l)):n&&(x(p,e.k)&&(p.value=l),e.k&&(_[e.k]=l))};if(l){let t=()=>{i(),Hn.delete(e)};t.id=-1,Hn.set(e,t),G(t,r)}else Wn(e),i()}}}function Wn(e){let t=Hn.get(e);t&&(t.flags|=8,Hn.delete(e))}se().requestIdleCallback,se().cancelIdleCallback;var Gn=e=>!!e.type.__asyncLoader,Kn=e=>e.type.__isKeepAlive;function qn(e,t){Yn(e,`a`,t)}function Jn(e,t){Yn(e,`da`,t)}function Yn(e,t,n=J){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(Zn(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Kn(e.parent.vnode)&&Xn(r,t,n,e),e=e.parent}}function Xn(e,t,n,r){let i=Zn(t,e,r,!0);ir(()=>{c(r[t],i)},n)}function Zn(e,t,n=J,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{He();let i=ra(n),a=V(t,n,e,r);return i(),Ue(),a};return r?i.unshift(a):i.push(a),a}}var Qn=e=>(t,n=J)=>{(!oa||e===`sp`)&&Zn(e,(...e)=>t(...e),n)},$n=Qn(`bm`),er=Qn(`m`),tr=Qn(`bu`),nr=Qn(`u`),rr=Qn(`bum`),ir=Qn(`um`),ar=Qn(`sp`),or=Qn(`rtg`),sr=Qn(`rtc`);function cr(e,t=J){Zn(`ec`,e,t)}var lr=`components`;function ur(e,t){return fr(lr,e,!0,t)||e}var dr=Symbol.for(`v-ndc`);function fr(e,t,n=!0,r=!1){let i=U||J;if(i){let n=i.type;if(e===lr){let e=ma(n,!1);if(e&&(e===t||e===E(t)||e===O(E(t))))return n}let a=pr(i[e]||n[e],t)||pr(i.appContext[e],t);return!a&&r?n:a}}function pr(e,t){return e&&(e[t]||e[E(t)]||e[O(E(t))])}var mr=e=>e?aa(e)?pa(e):mr(e.parent):null,hr=s(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>mr(e.parent),$root:e=>mr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>wr(e),$forceUpdate:e=>e.f||=()=>{mn(e.update)},$nextTick:e=>e.n||=fn.bind(e.proxy),$watch:e=>jn.bind(e)}),gr=(e,n)=>e!==t&&!e.__isScriptSetup&&u(e,n),_r={get({_:e},n){if(n===`__v_skip`)return!0;let{ctx:r,setupState:i,data:a,props:o,accessCache:s,type:c,appContext:l}=e;if(n[0]!==`$`){let e=s[n];if(e!==void 0)switch(e){case 1:return i[n];case 2:return a[n];case 4:return r[n];case 3:return o[n]}else if(gr(i,n))return s[n]=1,i[n];else if(a!==t&&u(a,n))return s[n]=2,a[n];else if(u(o,n))return s[n]=3,o[n];else if(r!==t&&u(r,n))return s[n]=4,r[n];else yr&&(s[n]=0)}let d=hr[n],f,p;if(d)return n===`$attrs`&&F(e.attrs,`get`,``),d(e);if((f=c.__cssModules)&&(f=f[n]))return f;if(r!==t&&u(r,n))return s[n]=4,r[n];if(p=l.config.globalProperties,u(p,n))return p[n]},set({_:e},n,r){let{data:i,setupState:a,ctx:o}=e;return gr(a,n)?(a[n]=r,!0):i!==t&&u(i,n)?(i[n]=r,!0):u(e.props,n)||n[0]===`$`&&n.slice(1)in e?!1:(o[n]=r,!0)},has({_:{data:e,setupState:n,accessCache:r,ctx:i,appContext:a,props:o,type:s}},c){let l;return!!(r[c]||e!==t&&c[0]!==`$`&&u(e,c)||gr(n,c)||u(o,c)||u(i,c)||u(hr,c)||u(a.config.globalProperties,c)||(l=s.__cssModules)&&l[c])},defineProperty(e,t,n){return n.get==null?u(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}};function vr(e){return d(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}var yr=!0;function br(e){let t=wr(e),n=e.proxy,i=e.ctx;yr=!1,t.beforeCreate&&Sr(t.beforeCreate,e,`bc`);let{data:a,computed:o,methods:s,watch:c,provide:l,inject:u,created:f,beforeMount:p,mounted:m,beforeUpdate:g,updated:_,activated:y,deactivated:b,beforeDestroy:x,beforeUnmount:S,destroyed:C,unmounted:w,render:T,renderTracked:ee,renderTriggered:te,errorCaptured:E,serverPrefetch:ne,expose:D,inheritAttrs:O,components:re,directives:k,filters:ie}=t;if(u&&xr(u,i,null),s)for(let e in s){let t=s[e];h(t)&&(i[e]=t.bind(n))}if(a){let t=a.call(n,n);v(t)&&(e.data=Mt(t))}if(yr=!0,o)for(let e in o){let t=o[e],a=Y({get:h(t)?t.bind(n,n):h(t.get)?t.get.bind(n,n):r,set:!h(t)&&h(t.set)?t.set.bind(n):r});Object.defineProperty(i,e,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(c)for(let e in c)Cr(c[e],i,n,e);if(l){let e=h(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{Tn(t,e[t])})}f&&Sr(f,e,`c`);function A(e,t){d(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(A($n,p),A(er,m),A(tr,g),A(nr,_),A(qn,y),A(Jn,b),A(cr,E),A(sr,ee),A(or,te),A(rr,S),A(ir,w),A(ar,ne),d(D)){if(D.length){let t=e.exposed||={};D.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={}}T&&e.render===r&&(e.render=T),O!=null&&(e.inheritAttrs=O),re&&(e.components=re),k&&(e.directives=k),ne&&Bn(e)}function xr(e,t,n=r){d(e)&&(e=kr(e));for(let n in e){let r=e[n],i;i=v(r)?`default`in r?En(r.from||n,r.default,!0):En(r.from||n):En(r),B(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function Sr(e,t,n){V(d(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Cr(e,t,n,r){let i=r.includes(`.`)?Mn(n,r):()=>n[r];if(g(e)){let n=t[e];h(n)&&kn(i,n)}else if(h(e))kn(i,e.bind(n));else if(v(e)){if(d(e))e.forEach(e=>Cr(e,t,n,r));else{let r=h(e.handler)?e.handler.bind(n):t[e.handler];h(r)&&kn(i,r,e)}}}function wr(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>Tr(c,e,o,!0)),Tr(c,t,o)),v(t)&&a.set(t,c),c}function Tr(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&Tr(e,a,n,!0),i&&i.forEach(t=>Tr(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=Er[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var Er={data:Dr,props:jr,emits:jr,methods:Ar,computed:Ar,beforeCreate:W,created:W,beforeMount:W,mounted:W,beforeUpdate:W,updated:W,beforeDestroy:W,beforeUnmount:W,destroyed:W,unmounted:W,activated:W,deactivated:W,errorCaptured:W,serverPrefetch:W,components:Ar,directives:Ar,watch:Mr,provide:Dr,inject:Or};function Dr(e,t){return t?e?function(){return s(h(e)?e.call(this,this):e,h(t)?t.call(this,this):t)}:t:e}function Or(e,t){return Ar(kr(e),kr(t))}function kr(e){if(d(e)){let t={};for(let n=0;nt===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${E(t)}Modifiers`]||e[`${D(t)}Modifiers`];function Rr(e,n,...r){if(e.isUnmounted)return;let i=e.vnode.props||t,a=r,o=n.startsWith(`update:`),s=o&&Lr(i,n.slice(7));s&&(s.trim&&(a=r.map(e=>g(e)?e.trim():e)),s.number&&(a=a.map(ae)));let c,l=i[c=re(n)]||i[c=re(E(n))];!l&&o&&(l=i[c=re(D(n))]),l&&V(l,e,6,a);let u=i[c+`Once`];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,V(u,e,6,a)}}var zr=new WeakMap;function Br(e,t,n=!1){let r=n?zr:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},c=!1;if(!h(e)){let r=e=>{let n=Br(e,t,!0);n&&(c=!0,s(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!c?(v(e)&&r.set(e,null),null):(d(a)?a.forEach(e=>o[e]=null):s(o,a),v(e)&&r.set(e,o),o)}function Vr(e,t){return!e||!a(t)?!1:(t=t.slice(2),t=t===`Once`?t:t.replace(/Once$/,``),u(e,t[0].toLowerCase()+t.slice(1))||u(e,D(t))||u(e,t))}function Hr(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:s,attrs:c,emit:l,render:u,renderCache:d,props:f,data:p,setupState:m,ctx:h,inheritAttrs:g}=e,_=Sn(e),v,y;try{if(n.shapeFlag&4){let e=i||r,t=e;v=Ki(u.call(t,e,d,f,m,p,h)),y=c}else{let e=t;v=Ki(e.length>1?e(f,{attrs:c,slots:s,emit:l}):e(f,null)),y=t.props?c:Ur(c)}}catch(t){ki.length=0,rn(t,e,1),v=q(Di)}let b=v;if(y&&g!==!1){let e=Object.keys(y),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(o)&&(y=Wr(y,a)),b=Wi(b,y,!1,!0))}return n.dirs&&(b=Wi(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&Rn(Pn(b.type)&&Ln(b)||b,n.transition),v=b,Sn(_),v}var Ur=e=>{let t;for(let n in e)(n===`class`||n===`style`||a(n))&&((t||={})[n]=e[n]);return t},Wr=(e,t)=>{let n={};for(let r in e)(!o(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Gr(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Kr(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;tObject.create(Yr),Zr=e=>Object.getPrototypeOf(e)===Yr;function Qr(e,t,n,r=!1){let i={},a=Xr();e.propsDefaults=Object.create(null),ei(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);e.props=n?r?i:Nt(i):e.type.props?i:a,e.attrs=a}function $r(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=R(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r{p=!0;let[t,n]=ri(e,r,!0);s(l,t),n&&f.push(...n)};!i&&r.mixins.length&&r.mixins.forEach(t),e.extends&&t(e.extends),e.mixins&&e.mixins.forEach(t)}if(!c&&!p)return v(e)&&a.set(e,n),n;if(d(c))for(let e=0;ee===`_`||e===`_ctx`||e===`$stable`,oi=e=>d(e)?e.map(Ki):[Ki(e)],si=(e,t,n)=>{if(t._n)return t;let r=Cn((...e)=>oi(t(...e)),n);return r._c=!1,r},ci=(e,t,n)=>{let r=e._ctx;for(let n in e){if(ai(n))continue;let i=e[n];if(h(i))t[n]=si(n,i,r);else if(i!=null){let e=oi(i);t[n]=()=>e}}},li=(e,t)=>{let n=oi(t);e.slots.default=()=>n},ui=(e,t,n)=>{for(let r in t)(n||!ai(r))&&(e[r]=t[r])},di=(e,t,n)=>{let r=e.slots=Xr();if(e.vnode.shapeFlag&32){let e=t._;e?(ui(r,t,n),n&&A(r,`_`,e,!0)):ci(t,r)}else t&&li(e,t)},fi=(e,n,r)=>{let{vnode:i,slots:a}=e,o=!0,s=t;if(i.shapeFlag&32){let e=n._;e?r&&e===1?o=!1:ui(a,n,r):(o=!n.$stable,ci(n,a)),s=n}else n&&(li(e,n),s={default:1});if(o)for(let e in a)!ai(e)&&s[e]==null&&delete a[e]},G=wi;function pi(e){return mi(e)}function mi(e,i){let a=se();a.__VUE__=!0;let{insert:o,remove:s,patchProp:c,createElement:l,createText:u,createComment:d,setText:f,setElementText:p,parentNode:m,nextSibling:h,setScopeId:g=r,insertStaticContent:_}=e,v=(e,t,r,i=null,a=null,o=null,s=void 0,c=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!Ri(e,t)&&(i=_e(e),j(e,a,o,!0),e=null),t.patchFlag===-2&&(l=!1,t.dynamicChildren=null),t.dynamicChildren&&e&&e.dynamicChildren&&e.dynamicChildren.hasOnce&&(t.dynamicChildren===n&&(t.dynamicChildren=[]),t.dynamicChildren.hasOnce=!0);let{type:u,ref:d,shapeFlag:f}=t;switch(u){case Ei:y(e,t,r,i);break;case Di:b(e,t,r,i);break;case Oi:e??x(t,r,i,s);break;case Ti:re(e,t,r,i,a,o,s,c,l);break;default:f&1?w(e,t,r,i,a,o,s,c,l):f&6?k(e,t,r,i,a,o,s,c,l):(f&64||f&128)&&u.process(e,t,r,i,a,o,s,c,l,be)}d!=null&&a?Un(d,e&&e.ref,o,t||e,!t):d==null&&e&&e.ref!=null&&Un(e.ref,null,o,e,!0)},y=(e,t,n,r)=>{if(e==null)o(t.el=u(t.children),n,r);else{let n=t.el=e.el;t.children!==e.children&&f(n,t.children)}},b=(e,t,n,r)=>{e==null?o(t.el=d(t.children||``),n,r):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t},n,r)=>{let i;for(;e&&e!==t;)i=h(e),o(e,n,r),e=i;o(t,n,r)},C=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),s(e),e=n;s(t)},w=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)ee(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),ne(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},ee=(e,t,n,r,i,a,s,u)=>{let d,f,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(d=e.el=l(e.type,a,m&&m.is,m),h&8?p(d,e.children):h&16&&E(e.children,d,null,r,i,hi(e,a),s,u),_&&wn(e,null,r,`created`),te(d,e,e.scopeId,s,r),m){for(let e in m)e!==`value`&&!T(e)&&c(d,e,null,m[e],a,r);`value`in m&&c(d,`value`,null,m.value,a),(f=m.onVnodeBeforeMount)&&Xi(f,r,e)}_&&wn(e,null,r,`beforeMount`);let v=_i(i,g);v&&g.beforeEnter(d),o(d,t,n),((f=m&&m.onVnodeMounted)||v||_)&&G(()=>{try{f&&Xi(f,r,e),v&&g.enter(d),_&&wn(e,null,r,`mounted`)}finally{}},i)},te=(e,t,n,r,i)=>{if(n&&g(e,n),r)for(let t=0;t{for(let l=c;l{let l=n.el=e.el,{patchFlag:u,dynamicChildren:d,dirs:f}=n;u|=e.patchFlag&16;let m=e.props||t,h=n.props||t,g;if(r&&gi(r,!1),(g=h.onVnodeBeforeUpdate)&&Xi(g,r,n,e),f&&wn(n,e,r,`beforeUpdate`),r&&gi(r,!0),d&&(!e.dynamicChildren||e.dynamicChildren.length!==d.length)&&(u=0,s=!1,d=null),(m.innerHTML&&h.innerHTML==null||m.textContent&&h.textContent==null)&&p(l,``),d?D(e.dynamicChildren,d,l,r,i,hi(n,a),o):s||le(e,n,l,null,r,i,hi(n,a),o,!1),u>0){if(u&16)O(l,m,h,r,a);else if(u&2&&m.class!==h.class&&c(l,`class`,null,h.class,a),u&4&&c(l,`style`,m.style,h.style,a),u&8){let e=n.dynamicProps;for(let t=0;t{g&&Xi(g,r,n,e),f&&wn(n,e,r,`updated`)},i)},D=(e,t,n,r,i,a,o)=>{for(let s=0;s{if(n!==r){if(n!==t)for(let t in n)!T(t)&&!(t in r)&&c(e,t,n[t],null,a,i);for(let t in r){if(T(t))continue;let o=r[t],s=n[t];o!==s&&t!==`value`&&c(e,t,s,o,a,i)}`value`in r&&c(e,`value`,n.value,r.value,a)}},re=(e,t,n,r,i,a,s,c,l)=>{let d=t.el=e?e.el:u(``),f=t.anchor=e?e.anchor:u(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(c=c?c.concat(h):h),e==null?(o(d,n,r),o(f,n,r),E(t.children||[],n,f,i,a,s,c,l)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(D(e.dynamicChildren,m,n,i,a,s,c),(t.key!=null||i&&t===i.subTree)&&vi(e,t,!0)):le(e,t,n,f,i,a,s,c,l)},k=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):A(t,n,r,i,a,o,c):ae(e,t,c)},A=(e,t,n,r,i,a,o)=>{let s=e.component=$i(e,r,i);if(Kn(e)&&(s.ctx.renderer=be),sa(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,oe,o),!e.el){let r=s.subTree=q(Di);b(null,r,t,n),e.placeholder=r.el}}else oe(s,e,t,n,i,a,o)},ae=(e,t,n)=>{let r=t.component=e.component;if(Gr(e,t,n)){if(r.asyncDep&&!r.asyncResolved){t.el=e.el,ce(r,t,n);return}r.next=t,r.update()}else t.el=e.el,r.vnode=t},oe=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:c}=e;{let n=bi(e);if(n){t&&(t.el=c.el,ce(e,t,o)),n.asyncDep.then(()=>{G(()=>{e.isUnmounted||l()},i)});return}}let u=t,d;gi(e,!1),t?(t.el=c.el,ce(e,t,o)):t=c,n&&ie(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&Xi(d,s,t,c),gi(e,!0);let f=Hr(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el),_e(p),e,i,a),t.el=f.el,u===null&&Jr(e,f.el),r&&G(r,i),(d=t.props&&t.props.onVnodeUpdated)&&G(()=>Xi(d,s,t,c),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=Gn(t);if(gi(e,!1),l&&ie(l),!m&&(o=c&&c.onVnodeBeforeMount)&&Xi(o,d,t),gi(e,!0),s&&Se){let t=()=>{e.subTree=Hr(e),Se(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);let o=e.subTree=Hr(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&G(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;G(()=>Xi(o,d,e),i)}(t.shapeFlag&256||d&&Gn(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&G(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new Oe(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>mn(u),gi(e,!0),l()},ce=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,$r(e,t.props,r,n),fi(e,t.children,n),He(),_n(e),Ue()},le=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:m}=t;if(f>0){if(f&128){de(l,d,n,r,i,a,o,s,c);return}if(f&256){ue(l,d,n,r,i,a,o,s,c);return}}m&8?(u&16&&ge(l,i,a),d!==l&&p(n,d)):u&16?m&16?de(l,d,n,r,i,a,o,s,c):ge(l,i,a,!0):(u&8&&p(n,``),m&16&&E(d,n,r,i,a,o,s,c))},ue=(e,t,r,i,a,o,s,c,l)=>{e||=n,t||=n;let u=e.length,d=t.length,f=Math.min(u,d),p=0;for(;pd?ge(e,a,o,!0,!1,f):E(t,r,i,a,o,s,c,l,f)},de=(e,t,r,i,a,o,s,c,l)=>{let u=0,d=t.length,f=e.length-1,p=d-1;for(;u<=f&&u<=p;){let n=e[u],i=t[u]=l?qi(t[u]):Ki(t[u]);if(Ri(n,i))v(n,i,r,null,a,o,s,c,l);else break;u++}for(;u<=f&&u<=p;){let n=e[f],i=t[p]=l?qi(t[p]):Ki(t[p]);if(Ri(n,i))v(n,i,r,null,a,o,s,c,l);else break;f--,p--}if(u>f){if(u<=p){let e=p+1,n=ep)for(;u<=f;)j(e[u],a,o,!0),u++;else{let m=u,h=u,g=new Map;for(u=h;u<=p;u++){let e=t[u]=l?qi(t[u]):Ki(t[u]);e.key!=null&&g.set(e.key,u)}let _,y=0,b=p-h+1,x=!1,S=0,C=Array(b);for(u=0;u=b){j(n,a,o,!0);continue}let i;if(n.key!=null)i=g.get(n.key);else for(_=h;_<=p;_++)if(C[_-h]===0&&Ri(n,t[_])){i=_;break}i===void 0?j(n,a,o,!0):(C[i-h]=u+1,i>=S?S=i:x=!0,v(n,t[i],r,null,a,o,s,c,l),y++)}let w=x?yi(C):n;for(_=w.length-1,u=b-1;u>=0;u--){let e=h+u,n=t[e],f=t[e+1],p=e+1{let{el:a,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){fe(e.component.subTree,t,n,r);return}if(d&128){e.suspense.move(t,n,r);return}if(d&64){c.move(e,t,n,be);return}if(c===Ti){o(a,t,n);for(let e=0;el.enter(a),i));else{let{leave:r,delayLeave:i,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?s(a):o(a,t,n)},d=()=>{let e=a._isLeaving||!!a[Fn];a._isLeaving&&a[Fn](!0),l.persisted&&!e?u():r(a,()=>{u(),c&&c()})};i?i(a,u,d):d()}}else o(a,t,n)},j=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:m}=e;if((d===-2||l&&l.hasOnce)&&(i=!1),s!=null&&(He(),Un(s,null,n,e,!0),Ue()),p!=null&&(!e.ctx||e.ctx===t)&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let h=u&1&&f,g=!Gn(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&Xi(_,t,e),u&6)he(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&wn(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,be,r):l&&!l.hasOnce&&(a!==Ti||d>0&&d&64)?ge(l,t,n,!1,!0):(a===Ti&&d&384||!i&&u&16)&&ge(c,t,n),r&&pe(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&G(()=>{_&&Xi(_,t,e),h&&wn(e,null,t,`unmounted`),v&&(e.el=null)},n)},pe=e=>{let{type:t,el:n,anchor:r,transition:i}=e;if(t===Ti){me(n,r);return}if(t===Oi){C(e),i&&!i.persisted&&i.afterLeave&&i.afterLeave();return}let a=()=>{s(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(e.shapeFlag&1&&i&&!i.persisted){let{leave:t,delayLeave:r}=i,o=()=>t(n,a);r?r(e.el,a,o):o()}else a()},me=(e,t)=>{let n;for(;e!==t;)n=h(e),s(e),e=n;s(t)},he=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;xi(c),xi(l),r&&ie(r),i.stop(),a?(a.flags|=8,j(o,e,t,n)):e.vnode.el&&o&&(o.transition=e.vnode.transition,j(o,e,t,n)),s&&G(s,t),G(()=>{e.isUnmounted=!0},t)},ge=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o{if(e.shapeFlag&6)return _e(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=h(e.anchor||e.el),n=t&&t[Nn];return n?h(n):t},ve=!1,ye=(e,t,n)=>{let r;e==null?t._vnode&&(j(t._vnode,null,null,!0),r=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,ve||=(ve=!0,_n(r),vn(),!1)},be={p:v,um:j,m:fe,r:pe,mt:A,mc:E,pc:le,pbc:D,n:_e,o:e},xe,Se;return i&&([xe,Se]=i(be)),{render:ye,hydrate:xe,createApp:Fr(ye,xe)}}function hi({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function gi({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function _i(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function vi(e,t,n=!1){let r=e.children,i=t.children;if(d(r)&&d(i))for(let e=0;e>1,e[n[s]]0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-->0;)n[a]=o,o=t[o];return n}function bi(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:bi(t)}function xi(e){if(e)for(let t=0;te.__isSuspense;function wi(e,t){t&&t.pendingBranch?d(e)?t.effects.push(...e):t.effects.push(e):gn(e)}var Ti=Symbol.for(`v-fgt`),Ei=Symbol.for(`v-txt`),Di=Symbol.for(`v-cmt`),Oi=Symbol.for(`v-stc`),ki=[],K=null;function Ai(e=!1){ki.push(K=e?null:[])}function ji(){ki.pop(),K=ki[ki.length-1]||null}var Mi=1;function Ni(e,t=!1){Mi+=e,e<0&&K&&t&&(K.hasOnce=!0)}function Pi(e){return e.dynamicChildren=Mi>0?K||n:null,ji(),Mi>0&&K&&K.push(e),e}function Fi(e,t,n,r,i,a){return Pi(Vi(e,t,n,r,i,a,!0))}function Ii(e,t,n,r,i){return Pi(q(e,t,n,r,i,!0))}function Li(e){return e?e.__v_isVNode===!0:!1}function Ri(e,t){return e.type===t.type&&e.key===t.key}var zi=({key:e})=>e??null,Bi=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:g(e)||B(e)||h(e)?{i:U,r:e,k:t,f:!!n}:e);function Vi(e,t=null,n=null,r=0,i=null,a=e===Ti?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&zi(t),ref:t&&Bi(t),scopeId:xn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:U};return s?(Ji(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=g(n)?8:16),Mi>0&&!o&&K&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&K.push(c),c}var q=Hi;function Hi(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===dr)&&(e=Di),Li(e)){let r=Wi(e,t,!0);return n&&Ji(r,n),Mi>0&&!a&&K&&(r.shapeFlag&6?K[K.indexOf(e)]=r:K.push(r)),r.patchFlag=-2,r}if(ha(e)&&(e=e.__vccOpts),t){t=Ui(t);let{class:e,style:n}=t;e&&!g(e)&&(t.class=j(e)),v(n)&&(Rt(n)&&!d(n)&&(n=s({},n)),t.style=ce(n))}let o=g(e)?1:Ci(e)?128:Pn(e)?64:v(e)?4:h(e)?2:0;return Vi(e,t,n,r,i,o,a,!0)}function Ui(e){return e?Rt(e)||Zr(e)?s({},e):e:null}function Wi(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?Yi(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&zi(l),ref:t&&t.ref?n&&a?d(a)?a.concat(Bi(t)):[a,Bi(t)]:Bi(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ti?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Wi(e.ssContent),ssFallback:e.ssFallback&&Wi(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return c&&r&&Rn(u,c.clone(u)),u}function Gi(e=` `,t=0){return q(Ei,null,e,t)}function Ki(e){return e==null||typeof e==`boolean`?q(Di):d(e)?q(Ti,null,e.slice()):Li(e)?qi(e):q(Ei,null,String(e))}function qi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Wi(e)}function Ji(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(d(t))n=16;else if(typeof t==`object`){if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),Ji(e,n()),n._c&&(n._d=!0));return}{n=32;let r=t._;!r&&!Zr(t)?t._ctx=U:r===3&&U&&(U.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}}else if(h(t)){if(r&65){Ji(e,{default:t});return}t={default:t,_ctx:U},n=32}else t=String(t),r&64?(n=16,t=[Gi(t)]):n=8;e.children=t,e.shapeFlag|=n}function Yi(...e){let t={};for(let n=0;nJ||U,ta,na;{let e=se(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};ta=t(`__VUE_INSTANCE_SETTERS__`,e=>J=e),na=t(`__VUE_SSR_SETTERS__`,e=>oa=e)}var ra=e=>{let t=J;return ta(e),e.scope.on(),()=>{e.scope.off(),ta(t)}},ia=()=>{J&&J.scope.off(),ta(null)};function aa(e){return e.vnode.shapeFlag&4}var oa=!1;function sa(e,t=!1,n=!1){t&&na(t);let{props:r,children:i}=e.vnode,a=aa(e);Qr(e,r,a,t),di(e,i,n||t);let o=a?ca(e,t):void 0;return t&&na(!1),o}function ca(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,_r);let{setup:r}=n;if(r){He();let n=e.setupContext=r.length>1?fa(e):null,i=ra(e),a=nn(r,e,0,[e.props,n]),o=y(a);if(Ue(),i(),(o||e.sp)&&!Gn(e)&&Bn(e),o){if(a.then(ia,ia),t)return a.then(n=>{na(!0);try{la(e,n,t)}finally{na(!1)}}).catch(t=>{rn(t,e,0)});e.asyncDep=a}else la(e,a,t)}else ua(e,t)}function la(e,t,n){h(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:v(t)&&(e.setupState=qt(t)),ua(e,n)}function ua(e,t,n){let i=e.type;e.render||=i.render||r;{let t=ra(e);He();try{br(e)}finally{Ue(),t()}}}var da={get(e,t){return F(e,`get`,``),e[t]}};function fa(e){return{attrs:new Proxy(e.attrs,da),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function pa(e){return e.exposed?e.exposeProxy||=new Proxy(qt(zt(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in hr)return hr[n](e)},has(e,t){return t in e||t in hr}}):e.proxy}function ma(e,t=!0){return h(e)?e.displayName||e.name:e.name||t&&e.__name}function ha(e){return h(e)&&`__vccOpts`in e}var Y=(e,t)=>Yt(e,t,oa);function ga(e,t,n){try{Ni(-1);let r=arguments.length;return r===2?v(t)&&!d(t)?Li(t)?q(e,null,[t]):q(e,t):q(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Li(n)&&(n=[n]),q(e,t,n))}finally{Ni(1)}}var _a=`3.5.43`,va=void 0,ya=typeof window<`u`&&window.trustedTypes;if(ya)try{va=ya.createPolicy(`vue`,{createHTML:e=>e})}catch{}var ba=va?e=>va.createHTML(e):e=>e,xa=`http://www.w3.org/2000/svg`,Sa=`http://www.w3.org/1998/Math/MathML`,Ca=typeof document<`u`?document:null,wa=Ca&&Ca.createElement(`template`),Ta={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?Ca.createElementNS(xa,e):t===`mathml`?Ca.createElementNS(Sa,e):n?Ca.createElement(e,{is:n}):Ca.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>Ca.createTextNode(e),createComment:e=>Ca.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ca.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),i!==a&&(i=i.nextSibling););else{wa.innerHTML=ba(r===`svg`?`${e}`:r===`mathml`?`${e}`:e);let i=wa.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ea=Symbol(`_vtc`);function Da(e,t,n){let r=e[Ea];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var Oa=Symbol(`_vod`),ka=Symbol(`_vsh`),Aa=Symbol(``),ja=/(?:^|;)\s*display\s*:/;function Ma(e,t,n){let r=e.style,i=g(n),a=!1;if(n&&!i){if(t){if(g(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??Pa(r,t,``)}else for(let e in t)n[e]??Pa(r,e,``)}for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?Pa(r,i,``):Ra(e,i,!g(t)&&t?t[i]:void 0,o)||Pa(r,i,o)}}else if(i){if(t!==n){let e=r[Aa];e&&(n+=`;`+e),r.cssText=n,a=ja.test(n)}}else t&&e.removeAttribute(`style`);Oa in e&&(e[Oa]=a?r.display:``,e[ka]&&(r.display=`none`))}var Na=/\s*!important$/;function Pa(e,t,n){if(d(n))n.forEach(n=>Pa(e,t,n));else if(n??=``,t.startsWith(`--`))Na.test(n)?e.setProperty(t,n.replace(Na,``),`important`):e.setProperty(t,n);else{let r=La(e,t);Na.test(n)?e.setProperty(D(r),n.replace(Na,``),`important`):e[r]=n}}var Fa=[`Webkit`,`Moz`,`ms`],Ia={};function La(e,t){let n=Ia[t];if(n)return n;let r=E(t);if(r!==`filter`&&r in e)return Ia[t]=r;r=O(r);for(let n=0;nYa||=(Xa.then(()=>Ya=0),Date.now());function Qa(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(d(r)){let n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};let i=r.slice(),a=[e];for(let n=0;ne.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,eo=(e,t,n,r,i,s)=>{let c=i===`svg`;t===`class`?Da(e,r,c):t===`style`?Ma(e,n,r):a(t)?o(t)||Ga(e,t,n,r,s):(t[0]===`.`?(t=t.slice(1),1):t[0]===`^`?(t=t.slice(1),0):to(e,t,r,c))?(Va(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&Ba(e,t,r,c,s,t!==`value`)):e._isVueCE&&(no(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!g(r)))?Va(e,E(t),r,s,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),Ba(e,t,r,c))};function to(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&$a(t)&&h(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return $a(t)&&g(n)?!1:t in e}function no(e,t){let n=e._def.props;if(!n)return!1;let r=E(t);return Array.isArray(n)?n.some(e=>E(e)===r):Object.keys(n).some(e=>E(e)===r)}var ro=s({patchProp:eo},Ta),io;function ao(){return io||=pi(ro)}var oo=((...e)=>{let t=ao().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=co(e);if(!r)return;let i=t._component;!h(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,so(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t});function so(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function co(e){return g(e)?document.querySelector(e):e}var lo=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},uo={};function fo(e,t){let n=ur(`RouterView`);return Ai(),Ii(n)}var po=lo(uo,[[`render`,fo]]),mo=e=>e.startsWith(`/`);function ho(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function go(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&ho(e.default)}var X=Object.assign;function _o(e,t){let n={};for(let r in t){let i=t[r];n[r]=Z(i)?i.map(e):e(i)}return n}var vo=()=>{},Z=Array.isArray;function yo(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var bo=Symbol(``);function xo(e,t){return X(Error(),{type:e,[bo]:!0},t)}function So(e,t){return e instanceof Error&&bo in e&&(t==null||!!(e.type&t))}var Co=Symbol(``),wo=Symbol(``),To=Symbol(``),Eo=Symbol(``),Do=Symbol(``);function Oo(e){return En(Eo)}var ko=typeof document<`u`,Ao=/#/g,jo=/&/g,Mo=/\//g,No=/=/g,Po=/\?/g,Fo=/\+/g,Io=/%5B/g,Lo=/%5D/g,Ro=/%5E/g,zo=/%60/g,Bo=/%7B/g,Vo=/%7C/g,Ho=/%7D/g,Uo=/%20/g;function Wo(e){return e==null?``:encodeURI(``+e).replace(Vo,`|`).replace(Io,`[`).replace(Lo,`]`)}function Go(e){return Wo(e).replace(Bo,`{`).replace(Ho,`}`).replace(Ro,`^`)}function Ko(e){return Wo(e).replace(Fo,`%2B`).replace(Uo,`+`).replace(Ao,`%23`).replace(jo,`%26`).replace(zo,"`").replace(Bo,`{`).replace(Ho,`}`).replace(Ro,`^`)}function qo(e){return Ko(e).replace(No,`%3D`)}function Jo(e){return Wo(e).replace(Ao,`%23`).replace(Po,`%3F`)}function Yo(e){return Jo(e).replace(Mo,`%2F`)}function Xo(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var Zo=/\/$/,Qo=e=>e.replace(Zo,``);function $o(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=ss(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:Xo(o)}}function es(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function ts(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function ns(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&rs(t.matched[r],n.matched[i])&&is(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function rs(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function is(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!as(e[n],t[n]))return!1;return!0}function as(e,t){return Z(e)?os(e,t):Z(t)?os(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function os(e,t){return Z(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function ss(e,t){if(mo(e))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o1&&a--;else break}return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var Q={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0};function cs(e){if(!e){if(ko){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^/]+/,``)}else e=`/`}return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),Qo(e)}var ls=/^[^#]+#/;function us(e,t){return e.replace(ls,`#`)+t}function ds(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var fs=()=>history.scrollRestoration===`manual`?{left:window.scrollX,top:window.scrollY}:null;function ps(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=ds(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function ms(e,t){return(history.state?history.state.position-t:-1)+e}var hs=new Map;function gs(e){hs.set(e,fs())}function _s(e){let t=hs.get(e);return hs.delete(e),t}function vs(e){return typeof e==`string`||e&&typeof e==`object`}function ys(e){return typeof e==`string`||typeof e==`symbol`}function bs(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;ee&&Ko(e)):[r&&Ko(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function Ss(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=Z(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function Cs(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function ws(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(xo(4,{from:n,to:t})):e instanceof Error?c(e):vs(e)?c(xo(2,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function Ts(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(t===`beforeRouteEnter`||o.instances[e]){if(ho(s)){let c=(s.__vccOpts||s)[t];c&&a.push(ws(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=go(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&ws(c,n,r,o,e,i)()}))}}}return a}function Es(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;ors(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>rs(e,s))||i.push(s))}return[n,r,i]}var Ds=()=>location.protocol+`//`+location.host;function Os(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),ts(n,``)}return ts(n,e)+r+i}function ks(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=Os(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:`pop`,direction:u?u>0?`forward`:`back`:``})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){let{history:e}=window;e.state&&e.replaceState(X({},e.state,{scroll:fs()}),``)}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),{pauseListeners:c,listen:l,destroy:d}}function As(e,t,n,r=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:null}}function js(e){let{history:t,location:n}=window,r={value:Os(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:Ds()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,X({},t.state,As(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=X({},i.value,t.state,{forward:e,scroll:fs()});a(o.current,o,!0),a(e,X({},As(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function Ms(e){e=cs(e);let t=js(e),n=ks(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=X({location:``,base:e,go:r,createHref:us.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function Ns(e){return e=location.host?e||location.pathname+location.search:``,e.includes(`#`)||(e+=`#`),Ms(e)}var Ps={type:0,value:``},Fs=/[a-zA-Z0-9_]/;function Is(e){if(!e)return[[]];if(e===`/`)return[[Ps]];if(!mo(e))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=0,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===0?a.push({type:0,value:l}):n===1||n===2||n===3?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;st.length?t.length===1&&t[0]===80?1:-1:0}function Hs(e,t){let n=0,r=e.score,i=t.score;for(;n0&&t[t.length-1]<0}var Ws={strict:!1,end:!0,sensitive:!1};function Gs(e,t,n){let r=X(Bs(Is(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Ks(e,t){let n=[],r=new Map;t=yo(Ws,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=Js(e);s.aliasOf=r&&r.record;let l=yo(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(Js(X({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&!mo(u)){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=Gs(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!Xs(d)&&o(e.name)),ec(d)&&c(d),s.children){let e=s.children;for(let t=0;t{o(f)}:vo}function o(e){if(ys(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=Qs(e,n);n.splice(t,0,e),e.record.name&&!Xs(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw xo(1,{location:e});s=i.record.name,a=X(qs(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&qs(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name,i.keys.forEach(e=>{e.optional&&!a[e.name]&&delete a[e.name]}));else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw xo(1,{location:e,currentLocation:t});s=i.record.name,a=X({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:Zs(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function qs(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function Js(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Ys(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Ys(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function Xs(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Zs(e){return e.reduce((e,t)=>X(e,t.meta),{})}function Qs(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;Hs(e,t[i])<0?r=i:n=i+1}let i=$s(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function $s(e){let t=e;for(;t=t.parent;)if(ec(t)&&Hs(e,t)===0)return t}function ec({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function tc(e){let t=En(To),n=En(Eo),r=Y(()=>{let n=Gt(e.to);return t.resolve(n)}),i=Y(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(rs.bind(null,i));if(o>-1)return o;let s=oc(e[t-2]);return t>1&&oc(i)===s&&a[a.length-1].path!==s?a.findIndex(rs.bind(null,e[t-2])):o}),a=Y(()=>i.value>-1&&ac(n.params,r.value.params)),o=Y(()=>i.value>-1&&i.value===n.matched.length-1&&is(n.params,r.value.params));function s(n={}){if(ic(n)){let n=t[Gt(e.replace)?`replace`:`push`](Gt(e.to)).catch(vo);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:Y(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function nc(e){return e.length===1?e[0]:e}var rc=zn({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:tc,setup(e,{slots:t}){let n=Mt(tc(e)),{options:r}=En(To),i=Y(()=>({[sc(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[sc(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&nc(t.default(n));return e.custom?r:ga(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function ic(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(e.button===void 0||e.button===0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function ac(e,t){for(let n in t){let r=t[n],i=e[n];if(Z(r)){if(!Z(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}else if(r!==i)return!1}return!0}function oc(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var sc=(e,t,n)=>e??t??n,cc=zn({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=En(Do),i=Y(()=>e.route||r.value),a=En(wo,0),o=Y(()=>{let e=Gt(a),{matched:t}=i.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),s=Y(()=>i.value.matched[o.value]);Tn(wo,Y(()=>o.value+1)),Tn(Co,s),Tn(Do,i);let c=Vt();return kn(()=>[c.value,s.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!rs(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let r=i.value,a=e.name,o=s.value,l=o&&o.components[a];if(!l)return lc(n.default,{Component:l,route:r});let u=o.props[a],d=ga(l,X({},u?u===!0?r.params:typeof u==`function`?u(r):u:null,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[a]=null)},ref:c}));return lc(n.default,{Component:d,route:r})||d}}});function lc(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var uc=cc;function dc(e){let t=Ks(e.routes,e),n=e.parseQuery||bs,r=e.stringifyQuery||xs,i=e.history,a=Cs(),o=Cs(),s=Cs(),c=Ht(Q),l=Ht(0),u=Q;ko&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let d=_o.bind(null,e=>``+e),f=_o.bind(null,Yo),p=_o.bind(null,Xo);function m(e,n){let r,i;ys(e)?(r=t.getRecordMatcher(e),i=n):i=e;let a=t.addRoute(i,r);return l.value++,()=>{a(),l.value++}}function h(e){let n=t.getRecordMatcher(e);n&&(t.removeRoute(n),l.value++)}function g(){t.clearRoutes(),l.value++}function _(){return t.getRoutes().map(e=>e.record)}function v(e){return!!t.getRecordMatcher(e)}function y(e,a){if(l.value,typeof e==`string`){a||=e.startsWith(`/`)?Q:c.value;let r=$o(n,e,a.path),o=t.resolve({path:r.path},a),s=i.createHref(r.fullPath);return X(r,o,{params:p(o.params),redirectedFrom:void 0,href:s})}a=X({},a||(e.path!=null&&e.path.startsWith(`/`)&&!(`name`in e&&e.name)?Q:c.value));let o;if(e.path!=null)o=X({},e,{path:$o(n,e.path,a.path).path});else{let t=X({},e.params);for(let e in t)t[e]??delete t[e];o=X({},e,{params:f(t)}),a.params=f(a.params)}let s=t.resolve(o,a),u=e.hash||``;s.params=d(p(s.params));let m=es(r,X({},e,{hash:Go(u),path:s.path})),h=i.createHref(m);return X({fullPath:m,hash:u,query:r===xs?Ss(e.query):e.query||{}},s,{redirectedFrom:void 0,href:h})}function b(e){return typeof e==`string`?$o(n,e,c.value.path):X({},e)}function x(e,t){if(u!==e)return xo(8,{from:t,to:e})}function S(e){return T(e)}function C(e){return S(X(b(e),{replace:!0}))}function w(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=b(i):{path:i},i.params={}),X({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function T(e,t){let n=u=y(e),i=c.value,a=e.state,o=e.force,s=e.replace===!0,l=w(n,i);if(l)return T(X(b(l),{state:typeof l==`object`?X({},a,l.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&ns(r,i,n)&&(f=xo(16,{to:d,from:i}),ce(i,i,!0,!1)),(f?Promise.resolve(f):E(d,i)).catch(e=>So(e)?So(e,2)?e:se(e):ae(e,d,i)).then(e=>{if(e){if(So(e,2))return T(X({replace:s},b(e.to),{state:typeof e.to==`object`?X({},a,e.to.state):a,force:o}),t||d)}else e=D(d,i,!0,s,a);return ne(d,i,e),e})}function ee(e,t){let n=x(e,t);return n?Promise.reject(n):Promise.resolve()}function te(e){let t=de.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function E(e,t){let n,[r,i,s]=Es(e,t);n=Ts(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(ws(r,e,t))});let c=ee.bind(null,e,t);return n.push(c),j(n).then(()=>{n=[];for(let r of a.list())n.push(ws(r,e,t));return n.push(c),j(n)}).then(()=>{n=Ts(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(ws(r,e,t))});return n.push(c),j(n)}).then(()=>{n=[];for(let r of s)if(r.beforeEnter){if(Z(r.beforeEnter))for(let i of r.beforeEnter)n.push(ws(i,e,t));else n.push(ws(r.beforeEnter,e,t))}return n.push(c),j(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=Ts(s,`beforeRouteEnter`,e,t,te),n.push(c),j(n))).then(()=>{n=[];for(let r of o.list())n.push(ws(r,e,t));return n.push(c),j(n)}).catch(e=>So(e,8)?e:Promise.reject(e))}function ne(e,t,n){s.list().forEach(r=>te(()=>r(e,t,n)))}function D(e,t,n,r,a){let o=x(e,t);if(o)return o;let s=t===Q,l=ko?history.state:{};n&&(r||s?i.replace(e.fullPath,X({scroll:s&&l&&l.scroll},a)):i.push(e.fullPath,a)),c.value=e,ce(e,t,n,s),se()}let O;function re(){O||=i.listen((e,t,n)=>{if(!fe.listening)return;let r=y(e),a=w(r,fe.currentRoute.value);if(a){T(X(a,{replace:!0,force:!0}),r).catch(vo);return}u=r;let o=c.value;ko&&n.delta&&gs(ms(o.fullPath,n.delta)),E(r,o).catch(e=>So(e,12)?e:So(e,2)?(T(X(b(e.to),{force:!0}),r).then(e=>{So(e,20)&&!n.delta&&n.type===`pop`&&i.go(-1,!1)}).catch(vo),Promise.reject()):(n.delta&&i.go(-n.delta,!1),ae(e,r,o))).then(e=>{e||=D(r,o,!1),e&&(n.delta&&!So(e,8)?i.go(-n.delta,!1):n.type===`pop`&&So(e,20)&&i.go(-1,!1)),ne(r,o,e)}).catch(vo)})}let k=Cs(),ie=Cs(),A;function ae(e,t,n){se(e);let r=ie.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function oe(){return A&&c.value!==Q?Promise.resolve():new Promise((e,t)=>{k.add([e,t])})}function se(e){return A||(A=!e,re(),k.list().forEach(([t,n])=>e?n(e):t()),k.reset()),e}function ce(t,n,r,i){let{scrollBehavior:a}=e;if(!ko||!a)return Promise.resolve();let o=!r&&_s(ms(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return fn().then(()=>a(t,n,o)).then(e=>t===c.value&&e&&ps(e)).catch(e=>t===c.value&&ae(e,t,n))}let le=e=>i.go(e),ue,de=new Set,fe={currentRoute:c,listening:!0,addRoute:m,removeRoute:h,clearRoutes:g,hasRoute:v,getRoutes:_,resolve:y,options:e,push:S,replace:C,go:le,back:()=>le(-1),forward:()=>le(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:ie.add,isReady:oe,install(e){e.component(`RouterLink`,rc),e.component(`RouterView`,uc),e.config.globalProperties.$router=fe,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>Gt(c)}),ko&&!ue&&c.value===Q&&(ue=!0,S(i.location).catch(e=>{}));let t={};for(let e in Q)Object.defineProperty(t,e,{get:()=>c.value[e],enumerable:!0});e.provide(To,fe),e.provide(Eo,Nt(t)),e.provide(Do,c);let n=e.unmount;de.add(e),e.unmount=function(){de.delete(e),de.size<1&&(u=Q,O&&O(),O=null,c.value=Q,ue=!1,A=!1),n()}}};function j(e){return e.reduce((e,t)=>e.then(()=>te(t)),Promise.resolve())}return fe}var fc={class:`p-8`},pc={class:`text-2xl font-semibold tracking-tight`},$=zn({__name:`Placeholder`,setup(e){let t=Oo();return(e,n)=>(Ai(),Fi(`section`,fc,[Vi(`h1`,pc,Se(Gt(t).path),1),n[0]||=Vi(`p`,{class:`text-muted-foreground mt-2 text-sm`},`Not yet ported to Vue.`,-1)]))}}),mc=[{path:`/`,name:`dashboard`,label:`Dashboard`,component:$},{path:`/tasks`,name:`tasks`,label:`Tasks`,component:$},{path:`/tasks/:id`,name:`task-detail`,label:`Task run`,component:$,nav:!1},{path:`/logs`,name:`logs`,label:`Logs`,component:$,section:`logs`},{path:`/captures`,name:`captures`,label:`Event inspector`,component:$,section:`captures`},{path:`/mappings`,name:`mappings`,label:`Field mappings`,component:$,section:`mappings`},{path:`/bindings`,name:`bindings`,label:`Playbook bindings`,component:$,section:`bindings`},{path:`/skills`,name:`skills`,label:`Skills`,component:$,section:`skills`},{path:`/workflows`,name:`workflows`,label:`Workflows`,component:$,section:`workflows`},{path:`/curators`,name:`curators`,label:`Curators`,component:$,section:`curators`},{path:`/channels`,name:`channels`,label:`Channels`,component:$,section:`channels`},{path:`/settings`,name:`settings`,label:`Configuration`,component:$,section:`settings`}],hc=dc({history:Ns(),routes:mc});oo(po).use(hc).mount(`#app`); \ No newline at end of file diff --git a/ui/dist/favicon.svg b/ui/dist/favicon.svg new file mode 100644 index 000000000..6893eb132 --- /dev/null +++ b/ui/dist/favicon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/dist/icons.svg b/ui/dist/icons.svg new file mode 100644 index 000000000..e9522193d --- /dev/null +++ b/ui/dist/icons.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ui/dist/index.html b/ui/dist/index.html index 3e634bdba..181b31ee9 100644 --- a/ui/dist/index.html +++ b/ui/dist/index.html @@ -1,10 +1,10 @@ - + - - - - Archie + + + + archie-ui diff --git a/ui/index.html b/ui/index.html index c638d45ea..f18ed1fe6 100644 --- a/ui/index.html +++ b/ui/index.html @@ -1,13 +1,13 @@ - + - - - - Archie + + + + archie-ui
- + diff --git a/ui/package-lock.json b/ui/package-lock.json index 169c239bd..a657471d5 100644 --- a/ui/package-lock.json +++ b/ui/package-lock.json @@ -1,71 +1,33 @@ { - "name": "archie-dashboard", + "name": "archie-ui", + "version": "0.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "archie-dashboard", + "name": "archie-ui", + "version": "0.0.0", "dependencies": { - "preact": "^10.26.0" + "@lucide/vue": "^1.47.0", + "@tailwindcss/vite": "^4.3.3", + "@vueuse/core": "^15.0.0", + "class-variance-authority": "^0.7.1", + "clsx": "^2.1.1", + "reka-ui": "^2.10.4", + "tailwind-merge": "^3.7.0", + "tailwindcss": "^4.3.3", + "tw-animate-css": "^1.4.0", + "vue": "^3.5.42", + "vue-router": "^5.3.1" }, "devDependencies": { - "@preact/preset-vite": "^2.10.0", - "@testing-library/preact": "^3.2.4", - "jsdom": "^30.0.1", - "vite": "^8.0.0" - } - }, - "node_modules/@asamuzakjp/css-color": { - "version": "6.0.7", - "resolved": "https://registry.npmjs.org/@asamuzakjp/css-color/-/css-color-6.0.7.tgz", - "integrity": "sha512-vC/bk1Lz7Tn/EfU9/apOTBk80/8dyGyWMowPoV1tJ52muDGsDqt2HPT2klrFUiY60MQmQv9q8yIht15JnBgDGw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@csstools/css-calc": "^3.3.0", - "@csstools/css-color-parser": "^4.1.10", - "@csstools/css-parser-algorithms": "^4.0.0", - "@csstools/css-tokenizer": "^4.0.0", - "lru-cache": "^11.5.2" - }, - "engines": { - "node": "^22.13.0 || >=24.0.0" - } - }, - "node_modules/@asamuzakjp/css-color/node_modules/lru-cache": { - "version": "11.5.2", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.2.tgz", - "integrity": "sha512-4pfM1Ff0x50o0tQwb5ucw/RzNyD0/YJME6IVcStalZuMWxdt3sR3huStTtxz4PUmvZfRguvDejasvQ2kifR11g==", - "dev": true, - "license": "BlueOak-1.0.0", - "engines": { - "node": "20 || >=22" - } - }, - "node_modules/@asamuzakjp/dom-selector": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/@asamuzakjp/dom-selector/-/dom-selector-8.3.2.tgz", - "integrity": "sha512-93Z1N+BQNXysodoicpOIyNh2drHfz/CTf9nnT0FEx72GJcIiwgydD7tGAr78j41LsYn3hlRn+LdGPuBLn1Bl8Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "bidi-js": "^1.0.3", - "css-tree": "^3.2.1", - "is-potential-custom-element-name": "^1.0.1", - "lru-cache": "^11.5.2" - }, - "engines": { - "node": "^22.13.0 || >=24.0.0" - } - }, - "node_modules/@asamuzakjp/dom-selector/node_modules/lru-cache": { - "version": "11.5.2", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.2.tgz", - "integrity": "sha512-4pfM1Ff0x50o0tQwb5ucw/RzNyD0/YJME6IVcStalZuMWxdt3sR3huStTtxz4PUmvZfRguvDejasvQ2kifR11g==", - "dev": true, - "license": "BlueOak-1.0.0", - "engines": { - "node": "20 || >=22" + "@types/node": "^24.13.6", + "@vitejs/plugin-vue": "^6.0.8", + "@vue/tsconfig": "^0.9.1", + "shadcn-vue": "^2.8.2", + "typescript": "~6.0.2", + "vite": "^8.3.0", + "vue-tsc": "^3.3.11" } }, "node_modules/@babel/code-frame": { @@ -124,6 +86,16 @@ "url": "https://opencollective.com/babel" } }, + "node_modules/@babel/core/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, "node_modules/@babel/generator": { "version": "7.29.8", "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.8.tgz", @@ -171,6 +143,48 @@ "node": ">=6.9.0" } }, + "node_modules/@babel/helper-compilation-targets/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/helper-create-class-features-plugin": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.29.7.tgz", + "integrity": "sha512-IY3ZD9Tmooqr3TUhc3DUWxiuo8xx1DWLhd5M7hQ+ZWJamqM2BbalrBJb2MisSLoYorOj75U03qULCxQTY9r3hg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.29.7", + "@babel/helper-member-expression-to-functions": "^7.29.7", + "@babel/helper-optimise-call-expression": "^7.29.7", + "@babel/helper-replace-supers": "^7.29.7", + "@babel/helper-skip-transparent-expression-wrappers": "^7.29.7", + "@babel/traverse": "^7.29.7", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-create-class-features-plugin/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, "node_modules/@babel/helper-globals": { "version": "7.29.7", "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.29.7.tgz", @@ -181,6 +195,20 @@ "node": ">=6.9.0" } }, + "node_modules/@babel/helper-member-expression-to-functions": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.29.7.tgz", + "integrity": "sha512-j+7JYmk1JYDtACIGj0QJqqWZjoUpMoEikQGADMaHgCMCSDqd2+P32rfcibUNrGOMWrlzK1WJBdxrB3JJQZwWtg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.29.7", + "@babel/types": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, "node_modules/@babel/helper-module-imports": { "version": "7.29.7", "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.29.7.tgz", @@ -213,6 +241,19 @@ "@babel/core": "^7.0.0" } }, + "node_modules/@babel/helper-optimise-call-expression": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.29.7.tgz", + "integrity": "sha512-+kmGVjcT9RGYzoDwdwEqEvGgKe3BYq+O1iGzjFubaNgZHwYHP6lsF2Yghf4kEuv9BV7tYDZ913aBW9am6YKong==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, "node_modules/@babel/helper-plugin-utils": { "version": "7.29.7", "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.29.7.tgz", @@ -223,11 +264,42 @@ "node": ">=6.9.0" } }, + "node_modules/@babel/helper-replace-supers": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.29.7.tgz", + "integrity": "sha512-atfGXWSeCiF4DnKZIfmJfQRkSw9b9gNNXR1kqKjbhG4pGYCOnkp8OcTB8E3NXjBu8NpheSnOeNKz8KT7UNFTmQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-member-expression-to-functions": "^7.29.7", + "@babel/helper-optimise-call-expression": "^7.29.7", + "@babel/traverse": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-skip-transparent-expression-wrappers": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.29.7.tgz", + "integrity": "sha512-brcMGQaVzIeUb+6/bs1Av0f8YuNNjKY2JyvfRCsFuFsdKccEQ5Ges2y74D74NZ1Rz8lKJ9ksJkfqwQFJ/iNEyQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.29.7", + "@babel/types": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, "node_modules/@babel/helper-string-parser": { "version": "7.29.7", "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz", "integrity": "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==", - "dev": true, "license": "MIT", "engines": { "node": ">=6.9.0" @@ -237,7 +309,6 @@ "version": "7.29.7", "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz", "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==", - "dev": true, "license": "MIT", "engines": { "node": ">=6.9.0" @@ -268,10 +339,9 @@ } }, "node_modules/@babel/parser": { - "version": "7.29.8", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.8.tgz", - "integrity": "sha512-E8lTAYNB1KW+FH+VGJuZM1ioAx2E6oVlvQFRrf5P8ZZmsiJXYAD9vTFV7yyEURNzgh1dFqMZuO6tUwcARbqFCA==", - "dev": true, + "version": "7.29.9", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.9.tgz", + "integrity": "sha512-CjXrNHTnvqBVqHgdBysY3vk2T8tpJHb5/RMeHJBTyVa9xgugCB0CJTx/3oO8RV2QRQP391RWpB7D6hLjm8V9uA==", "license": "MIT", "dependencies": { "@babel/types": "^7.29.8" @@ -299,18 +369,51 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-react-jsx": { + "node_modules/@babel/plugin-syntax-typescript": { "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.29.7.tgz", - "integrity": "sha512-WsZulLVBUHXVj2cUcPVx6UE21TpalB6bHbSFErKT0Ib++ax24jjXe73FqlWvdylFOjiuPHYi6VCcgRad1ItN+A==", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.29.7.tgz", + "integrity": "sha512-ngr+82Sh0xMz25TPCZi+nC2iTzjfCdWS2ONXTp/PtSCHCgaCNBpdMqgvJ2ccdLlClVZ7sisIgB914j/JFe+RZA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-commonjs": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.29.7.tgz", + "integrity": "sha512-j0vCldybPC5b5dwCQOJ21uKtHzt7hxLygJTg9eF1ScfaikEDNfzn94XoW5Fi+seBR0nCyL23xaBFFkq7dTM8XQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-transforms": "^7.29.7", + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-typescript": { + "version": "7.29.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.29.9.tgz", + "integrity": "sha512-FFwIwzU+7SCOuxxV4YtJql6T9981ZVTm+FHO5GhVsRqCTdy0WwrEZh3l42ARpXruJUDGOptdduHW6Zr7pNPLNg==", "dev": true, "license": "MIT", "dependencies": { "@babel/helper-annotate-as-pure": "^7.29.7", - "@babel/helper-module-imports": "^7.29.7", + "@babel/helper-create-class-features-plugin": "^7.29.7", "@babel/helper-plugin-utils": "^7.29.7", - "@babel/plugin-syntax-jsx": "^7.29.7", - "@babel/types": "^7.29.7" + "@babel/helper-skip-transparent-expression-wrappers": "^7.29.7", + "@babel/plugin-syntax-typescript": "^7.29.7" }, "engines": { "node": ">=6.9.0" @@ -319,14 +422,18 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-react-jsx-development": { + "node_modules/@babel/preset-typescript": { "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-development/-/plugin-transform-react-jsx-development-7.29.7.tgz", - "integrity": "sha512-Xfy3UVMF04+ypnFbkhvfqtmvwfe92qwQdbGZVonhE+6v35GzlofmOnA1szaZqzb9xYWr0nl1e5EMmzi0DNON1g==", + "resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.29.7.tgz", + "integrity": "sha512-/Foi8vKY2EVbed/1eZx0gJEEwHAIxogrySI7rULcRIvhZzbvoE/b5qG5Ghc0WKAFKOHA9SD1x7RsFlOYdutIiQ==", "dev": true, "license": "MIT", "dependencies": { - "@babel/plugin-transform-react-jsx": "^7.29.7" + "@babel/helper-plugin-utils": "^7.29.7", + "@babel/helper-validator-option": "^7.29.7", + "@babel/plugin-syntax-jsx": "^7.29.7", + "@babel/plugin-transform-modules-commonjs": "^7.29.7", + "@babel/plugin-transform-typescript": "^7.29.7" }, "engines": { "node": ">=6.9.0" @@ -335,16 +442,6 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/runtime": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.29.7.tgz", - "integrity": "sha512-Nq8OhGWiZIZGV6hLHoyAKLLcJihP/xFeBMGJoUrxTX2psI8dCifzLhZISFb+VWS3wFMRDmCGw5R+dOySCqPLhw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, "node_modules/@babel/template": { "version": "7.29.7", "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.29.7.tgz", @@ -383,7 +480,6 @@ "version": "7.29.8", "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.8.tgz", "integrity": "sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==", - "dev": true, "license": "MIT", "dependencies": { "@babel/helper-string-parser": "^7.29.7", @@ -393,182 +489,371 @@ "node": ">=6.9.0" } }, - "node_modules/@bramus/specificity": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/@bramus/specificity/-/specificity-2.4.2.tgz", - "integrity": "sha512-ctxtJ/eA+t+6q2++vj5j7FYX3nRu311q1wfYH3xjlLOsczhlhxAg2FWNUXhpGvAw3BWo1xBcvOV6/YLc2r5FJw==", + "node_modules/@cacheable/memory": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@cacheable/memory/-/memory-2.2.0.tgz", + "integrity": "sha512-CTLKqLItRCEixEAewD3/j9DB3/o96gpTPD4eJ1v+DGOlxZRZncRQkGYqqnAGCscYd6RNeXfGeiuCphsPtqyIfQ==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { - "css-tree": "^3.0.0" + "@cacheable/utils": "^2.5.0", + "@keyv/bigmap": "^1.3.1", + "hookified": "^1.15.1", + "keyv": "^5.6.0" + } + }, + "node_modules/@cacheable/utils": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@cacheable/utils/-/utils-2.5.0.tgz", + "integrity": "sha512-buipgOVDkkPXNR5+xBpDw7Zk2n1EvU7qBJCNUcL7rhQ//kfpOXPAvQ511Os0vpLYJ1pZnvudNytkQt2hst3wqA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "hashery": "^1.5.1", + "keyv": "^5.6.0" + } + }, + "node_modules/@dotenvx/dotenvx": { + "version": "2.28.2", + "resolved": "https://registry.npmjs.org/@dotenvx/dotenvx/-/dotenvx-2.28.2.tgz", + "integrity": "sha512-8UZfVEj4rrYQcaq/3Ox7te1qC1znOUOavv6F0BQiGhLLjqaD4xDQ4j3ddla/afC5ukBrnWx3c4RPsh6i1SQUSw==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "@dotenvx/primitives": "^3.0.2", + "@dotenvx/tooling": "^1.0.3", + "global-agent": "^3.0.0", + "node-forge": "^1.4.0", + "undici": "^6.28.1", + "yocto-spinner": "^1.2.1" }, "bin": { - "specificity": "bin/cli.js" + "dotenvx": "src/cli/dotenvx.js", + "dx": "src/cli/dotenvx.js" + }, + "funding": { + "url": "https://dotenvx.com" } }, - "node_modules/@csstools/color-helpers": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/@csstools/color-helpers/-/color-helpers-6.1.1.tgz", - "integrity": "sha512-gLNsunvwf3mCi5u5o46/Z/JcJMnhbHSaZ69rkgPzNM3J4s8hWwpPUQB6/tt0EDFyCiWzxANlx+2LJwpYj4zS1w==", + "node_modules/@dotenvx/dotenvx/node_modules/undici": { + "version": "6.28.1", + "resolved": "https://registry.npmjs.org/undici/-/undici-6.28.1.tgz", + "integrity": "sha512-zWpdTVD54H48CIybL0rWQ3ukpb9d23wM7eH5RtfdmeP70cWHNjtfo7P4vZX+5CoDcO53J4Pu5uXp7lNfjc6DRA==", "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/csstools" - }, - { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - } - ], - "license": "MIT-0", - "engines": { - "node": ">=20.19.0" - } - }, - "node_modules/@csstools/css-calc": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/@csstools/css-calc/-/css-calc-3.3.0.tgz", - "integrity": "sha512-c5ihYsPkdG6JCkU2zTMm4+k6r7RXuGxtWYhu5DHMIiF1FHzrfmHL5so11AoFpUv/tu61xfcmT4AmKoFfMPoqdQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/csstools" - }, - { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - } - ], "license": "MIT", "engines": { - "node": ">=20.19.0" - }, - "peerDependencies": { - "@csstools/css-parser-algorithms": "^4.0.0", - "@csstools/css-tokenizer": "^4.0.0" + "node": ">=18.17" } }, - "node_modules/@csstools/css-color-parser": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/@csstools/css-color-parser/-/css-color-parser-4.2.2.tgz", - "integrity": "sha512-3QKjR/vxyjcSXBLgb6lP0S3MGdvwbmqSsvLPbYdVORqPDc8FX1HAJ0Spk38bxaRXgvENTA47tlhhbb5Z2e8hEg==", + "node_modules/@dotenvx/primitives": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@dotenvx/primitives/-/primitives-3.0.2.tgz", + "integrity": "sha512-qhddO125donMnxDZRK7Wvw1Oyd5744wJD5j7a8U5254IKwpnAxcpFcjwiUHhmIfGYnAuGBoCRIK5Rlm3bd6y7Q==", "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/csstools" - }, - { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - } - ], + "license": "BSD-3-Clause" + }, + "node_modules/@dotenvx/tooling": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@dotenvx/tooling/-/tooling-1.0.3.tgz", + "integrity": "sha512-Gd6qQol/ICb4MPRWpiIH56y+pR9AVB7kPBkbhrLSGLtAiF4Qgy+k651/f2pze0Xbm3H5XewbPfIm4y9K+ic30Q==", + "dev": true, + "license": "BSD-3-Clause" + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.10.1", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.10.1.tgz", + "integrity": "sha512-cuadcxVFE8sDK6iWJbs8Sn0av2Nrh2QSGQhVlBW9AaAHqHwjWsZHT8LJ4hFGPh7ASBV2deFdM7H/DPjulmh8rg==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "eslint-visitor-keys": "^3.4.3" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "license": "Apache-2.0", + "peer": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.12.2", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz", + "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/config-array": { + "version": "0.23.5", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.23.5.tgz", + "integrity": "sha512-Y3kKLvC1dvTOT+oGlqNQ1XLqK6D1HU2YXPc52NmAlJZbMMWDzGYXMiPRJ8TYD39muD/OTjlZmNJ4ib7dvSrMBA==", + "dev": true, + "license": "Apache-2.0", + "peer": true, + "dependencies": { + "@eslint/object-schema": "^3.0.5", + "debug": "^4.3.1", + "minimatch": "^10.2.4" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + } + }, + "node_modules/@eslint/config-helpers": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.7.0.tgz", + "integrity": "sha512-DObd/KKUsU+FaFv4PLxSRenpXfQWmPXXP3pPZ6/K1PCrMu2vQpMDMuQe/BqYeoLcz8ro0bVDF1RxOJgfVEdhUw==", + "dev": true, + "license": "Apache-2.0", + "peer": true, + "dependencies": { + "@eslint/core": "^1.2.1" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + } + }, + "node_modules/@eslint/core": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-1.2.1.tgz", + "integrity": "sha512-MwcE1P+AZ4C6DWlpin/OmOA54mmIZ/+xZuJiQd4SyB29oAJjN30UW9wkKNptW2ctp4cEsvhlLY/CsQ1uoHDloQ==", + "dev": true, + "license": "Apache-2.0", + "peer": true, + "dependencies": { + "@types/json-schema": "^7.0.15" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + } + }, + "node_modules/@eslint/object-schema": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-3.0.5.tgz", + "integrity": "sha512-vqTaUEgxzm+YDSdElad6PiRoX4t8VGDjCtt05zn4nU810UIx/uNEV7/lZJ6KwFThKZOzOxzXy48da+No7HZaMw==", + "dev": true, + "license": "Apache-2.0", + "peer": true, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + } + }, + "node_modules/@eslint/plugin-kit": { + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.7.3.tgz", + "integrity": "sha512-IkO+/KEUvwbVpiURZg+P7zF74z5Jxe0UgJxVni+RtoHQ6IZieXaO02kmadomap/q+l6bc/jdPGGqTjhuZnuz1Q==", + "dev": true, + "license": "Apache-2.0", + "peer": true, + "dependencies": { + "@eslint/core": "^1.2.1", + "levn": "^0.4.1" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + } + }, + "node_modules/@floating-ui/core": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.8.0.tgz", + "integrity": "sha512-0CIZ5itps/8x7BG8dEIhs53BvCUH2PCoogtakwRTut+Arm58sJooJ0AuZhLw2HJYIR5cMLNPBSS728sPho2khQ==", "license": "MIT", "dependencies": { - "@csstools/color-helpers": "^6.1.1", - "@csstools/css-calc": "^3.3.0" - }, - "engines": { - "node": ">=20.19.0" - }, - "peerDependencies": { - "@csstools/css-parser-algorithms": "^4.0.0", - "@csstools/css-tokenizer": "^4.0.0" + "@floating-ui/utils": "^0.2.12" } }, - "node_modules/@csstools/css-parser-algorithms": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@csstools/css-parser-algorithms/-/css-parser-algorithms-4.0.0.tgz", - "integrity": "sha512-+B87qS7fIG3L5h3qwJ/IFbjoVoOe/bpOdh9hAjXbvx0o8ImEmUsGXN0inFOnk2ChCFgqkkGFQ+TpM5rbhkKe4w==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/csstools" - }, - { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - } - ], + "node_modules/@floating-ui/dom": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.8.0.tgz", + "integrity": "sha512-yXSrzeHZBTZadLOlfyhCkJHNeLJnHRnRInwdZ40L7ZiaAtrBwoYlsDrX3v5zB1Utk7CLfzcOVnVVWoXEky7Ceg==", "license": "MIT", - "engines": { - "node": ">=20.19.0" - }, - "peerDependencies": { - "@csstools/css-tokenizer": "^4.0.0" + "dependencies": { + "@floating-ui/core": "^1.8.0", + "@floating-ui/utils": "^0.2.12" } }, - "node_modules/@csstools/css-syntax-patches-for-csstree": { - "version": "1.1.12", - "resolved": "https://registry.npmjs.org/@csstools/css-syntax-patches-for-csstree/-/css-syntax-patches-for-csstree-1.1.12.tgz", - "integrity": "sha512-3vLQK+dXxhBMR2Wx99PTCifE+vHtW2ndZWyla8yK813ev6oGhyn8Lja8jCyGAWTJ+LEYZK7EVtJxrDj8ztevJw==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/csstools" - }, - { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - } - ], - "license": "MIT-0", + "node_modules/@floating-ui/utils": { + "version": "0.2.12", + "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.12.tgz", + "integrity": "sha512-HpCo8tmWzLVad5s2d19EhAz5zqrrQ6s69qd6moPMQvkOuSwDT1YgRfWSVuc4ennqrgv3OHppiOGMQ7oC13yIww==", + "license": "MIT" + }, + "node_modules/@floating-ui/vue": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/@floating-ui/vue/-/vue-1.1.11.tgz", + "integrity": "sha512-HzHKCNVxnGS35r9fCHBc3+uCnjw9IWIlCPL683cGgM9Kgj2BiAl8x1mS7vtvP6F9S/e/q4O6MApwSHj8hNLGfw==", + "license": "MIT", + "dependencies": { + "@floating-ui/dom": "^1.7.6", + "@floating-ui/utils": "^0.2.11", + "vue-demi": ">=0.13.0" + } + }, + "node_modules/@floating-ui/vue/node_modules/vue-demi": { + "version": "0.14.10", + "resolved": "https://registry.npmjs.org/vue-demi/-/vue-demi-0.14.10.tgz", + "integrity": "sha512-nMZBOwuzabUO0nLgIcc6rycZEebF6eeUfaiQx9+WSk8e29IbLvPU9feI6tqW4kTo3hvoYAJkMh8n8D0fuISphg==", + "hasInstallScript": true, + "license": "MIT", + "bin": { + "vue-demi-fix": "bin/vue-demi-fix.js", + "vue-demi-switch": "bin/vue-demi-switch.js" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + }, "peerDependencies": { - "css-tree": "^3.2.1" + "@vue/composition-api": "^1.0.0-rc.1", + "vue": "^3.0.0-0 || ^2.6.0" }, "peerDependenciesMeta": { - "css-tree": { + "@vue/composition-api": { "optional": true } } }, - "node_modules/@csstools/css-tokenizer": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@csstools/css-tokenizer/-/css-tokenizer-4.0.0.tgz", - "integrity": "sha512-QxULHAm7cNu72w97JUNCBFODFaXpbDg+dP8b/oWFAZ2MTRppA3U00Y2L1HqaS4J6yBqxwa/Y3nMBaxVKbB/NsA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/csstools" - }, - { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - } - ], - "license": "MIT", - "engines": { - "node": ">=20.19.0" - } - }, - "node_modules/@exodus/bytes": { - "version": "1.15.1", - "resolved": "https://registry.npmjs.org/@exodus/bytes/-/bytes-1.15.1.tgz", - "integrity": "sha512-S6mL0yNB/Abt9Ei4tq8gDhcczc4S3+vQ4ra7vxnAf+YHC02srtqxKKZghx2Dq6p0e66THKwR6r8N6P95wEty7Q==", + "node_modules/@hono/node-server": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-2.1.1.tgz", + "integrity": "sha512-ELuehkj5VCBdgEw9zs+ivkKwyzzUCSQuE96YmiPvn1ECBoZCczbFXJLeEGMTYjphP6gydh4pHMqEYPVMYUVgQg==", "dev": true, "license": "MIT", "engines": { - "node": "^20.19.0 || ^22.12.0 || >=24.0.0" + "node": ">=20" }, "peerDependencies": { - "@noble/hashes": "^1.8.0 || ^2.0.0" + "hono": "^4" + } + }, + "node_modules/@humanfs/core": { + "version": "0.19.2", + "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.2.tgz", + "integrity": "sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA==", + "dev": true, + "license": "Apache-2.0", + "peer": true, + "dependencies": { + "@humanfs/types": "^0.15.0" }, - "peerDependenciesMeta": { - "@noble/hashes": { - "optional": true - } + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/node": { + "version": "0.16.8", + "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.8.tgz", + "integrity": "sha512-gE1eQNZ3R++kTzFUpdGlpmy8kDZD/MLyHqDwqjkVQI0JMdI1D51sy1H958PNXYkM2rAac7e5/CnIKZrHtPh3BQ==", + "dev": true, + "license": "Apache-2.0", + "peer": true, + "dependencies": { + "@humanfs/core": "^0.19.2", + "@humanfs/types": "^0.15.0", + "@humanwhocodes/retry": "^0.4.0" + }, + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/types": { + "version": "0.15.0", + "resolved": "https://registry.npmjs.org/@humanfs/types/-/types-0.15.0.tgz", + "integrity": "sha512-ZZ1w0aoQkwuUuC7Yf+7sdeaNfqQiiLcSRbfI08oAxqLtpXQr9AIVX7Ay7HLDuiLYAaFPu8oBYNq/QIi9URHJ3Q==", + "dev": true, + "license": "Apache-2.0", + "peer": true, + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "license": "Apache-2.0", + "peer": true, + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/retry": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz", + "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==", + "dev": true, + "license": "Apache-2.0", + "peer": true, + "engines": { + "node": ">=18.18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@internationalized/date": { + "version": "3.12.4", + "resolved": "https://registry.npmjs.org/@internationalized/date/-/date-3.12.4.tgz", + "integrity": "sha512-M1dEn4c1U1HsSlaVR8upZtSqvXrTkHDfv18H01uCSJyjVLDxnBR38v/fMxecmlwXKR4i9HeZcmgQAPE6A+aGJQ==", + "license": "Apache-2.0", + "dependencies": { + "@swc/helpers": "^0.5.0" + } + }, + "node_modules/@internationalized/number": { + "version": "3.6.8", + "resolved": "https://registry.npmjs.org/@internationalized/number/-/number-3.6.8.tgz", + "integrity": "sha512-8UmMFia46DUt+k97zKd9fKWXcWHR+k8ae3eYzILETuT2KbIvLyOfac7zesw+sJdRAAZ7Q9pM1Mk22aXp2LD0Ig==", + "license": "Apache-2.0", + "dependencies": { + "@swc/helpers": "^0.5.0" + } + }, + "node_modules/@isaacs/cliui": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-9.0.0.tgz", + "integrity": "sha512-AokJm4tuBHillT+FpMtxQ60n8ObyXBatq7jD2/JA9dxbDDokKQm8KMht5ibGzLVU9IJDIKK4TPKgMHEYMn3lMg==", + "dev": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=18" } }, "node_modules/@jridgewell/gen-mapping": { "version": "0.3.13", "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", - "dev": true, "license": "MIT", "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.0", @@ -579,7 +864,6 @@ "version": "2.3.5", "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", - "dev": true, "license": "MIT", "dependencies": { "@jridgewell/gen-mapping": "^0.3.5", @@ -590,7 +874,6 @@ "version": "3.1.2", "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", - "dev": true, "license": "MIT", "engines": { "node": ">=6.0.0" @@ -600,130 +883,164 @@ "version": "1.6.0", "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz", "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==", - "dev": true, "license": "MIT" }, "node_modules/@jridgewell/trace-mapping": { "version": "0.3.31", "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", - "dev": true, "license": "MIT", "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" } }, + "node_modules/@keyv/bigmap": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@keyv/bigmap/-/bigmap-1.3.1.tgz", + "integrity": "sha512-WbzE9sdmQtKy8vrNPa9BRnwZh5UF4s1KTmSK0KUVLo3eff5BlQNNWDnFOouNpKfPKDnms9xynJjsMYjMaT/aFQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "hashery": "^1.4.0", + "hookified": "^1.15.0" + }, + "engines": { + "node": ">= 18" + }, + "peerDependencies": { + "keyv": "^5.6.0" + } + }, + "node_modules/@keyv/serialize": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@keyv/serialize/-/serialize-1.1.1.tgz", + "integrity": "sha512-dXn3FZhPv0US+7dtJsIi2R+c7qWYiReoEh5zUntWCf4oSpMNib8FDhSoed6m3QyZdx5hK7iLFkYk3rNxwt8vTA==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/@lucide/vue": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@lucide/vue/-/vue-1.47.0.tgz", + "integrity": "sha512-S0/UX9zra4Z8xmqrA1MH5GiSKA8daAPFwkmORt/u+gUHAkYZoeOcr+DH3scZeyE9bdLWScGK+MJoDYi8rIU5Jg==", + "license": "ISC", + "peerDependencies": { + "vue": ">=3.0.1" + } + }, + "node_modules/@modelcontextprotocol/sdk": { + "version": "1.30.0", + "resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.30.0.tgz", + "integrity": "sha512-xKd8OIzlqNzcqcNumGAa6g+PW2kjD5vrpcKOnfldAUPP3j7lnqMPwlTXQm8gF+UwH72z0lqaRbjr9hqGz0eITA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@hono/node-server": "^1.19.9 || ^2.0.5", + "ajv": "^8.17.1", + "ajv-formats": "^3.0.1", + "content-type": "^1.0.5", + "cors": "^2.8.5", + "cross-spawn": "^7.0.5", + "eventsource": "^3.0.2", + "eventsource-parser": "^3.0.0", + "express": "^5.2.1", + "express-rate-limit": "^8.2.1", + "hono": "^4.11.4", + "jose": "^6.1.3", + "json-schema-typed": "^8.0.2", + "pkce-challenge": "^5.0.0", + "raw-body": "^3.0.0", + "zod": "^3.25 || ^4.0", + "zod-to-json-schema": "^3.25.1" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@cfworker/json-schema": "^4.1.1", + "zod": "^3.25 || ^4.0" + }, + "peerDependenciesMeta": { + "@cfworker/json-schema": { + "optional": true + }, + "zod": { + "optional": false + } + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, "node_modules/@oxc-project/types": { - "version": "0.142.0", - "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.142.0.tgz", - "integrity": "sha512-7W+2q5AKQVU36fkaryontrHn3YDt1RyUYXatw9i5H8ocYe2sPKSFB6eS8WNPeRKiN1qAWWZUPm7gwFzJGrccqQ==", - "dev": true, + "version": "0.150.0", + "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.150.0.tgz", + "integrity": "sha512-rDS5/31E9HfPl/CIzGrn0DOlvBbXFseQ5URJ9sYMfstbKLD/c6Gm9vmRzRGDdAXyOIL4zmO37lc9RIwYqVruZw==", "license": "MIT", "funding": { - "url": "https://github.com/sponsors/Boshen" + "url": "https://github.com/sponsors/oxc-project" } }, - "node_modules/@preact/preset-vite": { - "version": "2.10.6", - "resolved": "https://registry.npmjs.org/@preact/preset-vite/-/preset-vite-2.10.6.tgz", - "integrity": "sha512-ZZ5RIT2ZVXg8UxRA8VZpoT8CdpDG7RFIqOT4bELqNBp85+HKvQBbgmh3gsoW1UOQXx26TLe+ZRNKI7q281Kckw==", - "dev": true, + "node_modules/@rolldown/binding-android-arm-eabi": { + "version": "1.2.9", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm-eabi/-/binding-android-arm-eabi-1.2.9.tgz", + "integrity": "sha512-tNISae1QEf/vkb3xkRcjV5SEdzPE97We5IVaa2Z8jSszQPZ8U60B/YCYpw4QI7VidYsBtKavczXf+DyDs9WGxw==", + "cpu": [ + "arm" + ], "license": "MIT", - "dependencies": { - "@babel/plugin-transform-react-jsx": "^7.27.1", - "@babel/plugin-transform-react-jsx-development": "^7.27.1", - "@prefresh/vite": "^2.4.11", - "@rollup/pluginutils": "^5.0.0", - "babel-plugin-transform-hook-names": "^1.0.2", - "debug": "^4.4.3", - "magic-string": "^0.30.21", - "picocolors": "^1.1.1", - "vite-prerender-plugin": "^0.5.8", - "zimmerframe": "^1.1.4" - }, - "peerDependencies": { - "@babel/core": "7.x", - "vite": "2.x || 3.x || 4.x || 5.x || 6.x || 7.x || 8.x" - } - }, - "node_modules/@prefresh/babel-plugin": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/@prefresh/babel-plugin/-/babel-plugin-0.5.3.tgz", - "integrity": "sha512-57LX2SHs4BX2s1IwCjNzTE2OJeEepRCNf1VTEpbNcUyHfMO68eeOWGDIt4ob9aYlW6PEWZ1SuwNikuoIXANDtQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/@prefresh/core": { - "version": "1.5.11", - "resolved": "https://registry.npmjs.org/@prefresh/core/-/core-1.5.11.tgz", - "integrity": "sha512-Ml00PP8jeHaADxfQqxUs4+M5JS+T5J26UnvPVfsrmlpGw2I3e9XtM0DMeuzkmvg+Tn7VdHSMpLBrDPG0iHoDqQ==", - "dev": true, - "license": "MIT", - "peerDependencies": { - "preact": "^10.0.0 || ^11.0.0-0" - } - }, - "node_modules/@prefresh/utils": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@prefresh/utils/-/utils-1.2.1.tgz", - "integrity": "sha512-vq/sIuN5nYfYzvyayXI4C2QkprfNaHUQ9ZX+3xLD8nL3rWyzpxOm1+K7RtMbhd+66QcaISViK7amjnheQ/4WZw==", - "dev": true, - "license": "MIT" - }, - "node_modules/@prefresh/vite": { - "version": "2.4.12", - "resolved": "https://registry.npmjs.org/@prefresh/vite/-/vite-2.4.12.tgz", - "integrity": "sha512-FY1fzXpUjiuosznMV0YM7XAOPZjB5FIdWS0W24+XnlxYkt9hNAwwsiKYn+cuTEoMtD/ZVazS5QVssBr9YhpCQA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/core": "^7.22.1", - "@prefresh/babel-plugin": "^0.5.2", - "@prefresh/core": "^1.5.0", - "@prefresh/utils": "^1.2.0", - "@rollup/pluginutils": "^4.2.1" - }, - "peerDependencies": { - "preact": "^10.4.0 || ^11.0.0-0", - "vite": ">=2.0.0" - } - }, - "node_modules/@prefresh/vite/node_modules/@rollup/pluginutils": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-4.2.1.tgz", - "integrity": "sha512-iKnFXr7NkdZAIHiIWE+BX5ULi/ucVFYWD6TbAV+rZctiRTY2PL6tsIKhoIOaoskiWAkgu+VsbXgUVDNLHf+InQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "estree-walker": "^2.0.1", - "picomatch": "^2.2.2" - }, + "optional": true, + "os": [ + "android" + ], "engines": { - "node": ">= 8.0.0" - } - }, - "node_modules/@prefresh/vite/node_modules/picomatch": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz", - "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" + "node": "^20.19.0 || >=22.12.0" } }, "node_modules/@rolldown/binding-android-arm64": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.2.2.tgz", - "integrity": "sha512-l7x215OGvo1s52JWmR8U/DAVzEDWBCIbTm28aeJV/WDTSHgcKXaZTuBT0hJMs5NggilfJTW3clZVvd24yfKJxA==", + "version": "1.2.9", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.2.9.tgz", + "integrity": "sha512-YC8YsI30o606GTZi0VyzYlsDKFP8W61i/QzayHDkLbNEz/IShqAmTa+hsJRj13xTHA0H+6fk4b2UmGn+Q/cMlg==", "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -734,13 +1051,12 @@ } }, "node_modules/@rolldown/binding-darwin-arm64": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.2.2.tgz", - "integrity": "sha512-9u9Xv6c1AJZT0FfwH5vrMG5Jjcwhc1MlyrPu0XfTqkzsmqfks2M6W/o5XwAJgVVN/jHpqqngC1WevHKKTIUtIA==", + "version": "1.2.9", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.2.9.tgz", + "integrity": "sha512-IwhlH3qK5urrY8hZiEgGkHKEFN901p/p2bjxCxJlr4GyNnF7wYpUvK+Y43uaRYuC4hpfjzbR3SJC3arX1jGvmw==", "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -751,13 +1067,12 @@ } }, "node_modules/@rolldown/binding-darwin-x64": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.2.2.tgz", - "integrity": "sha512-9W1mbGZAfW3oqd85bhBkmpyHCCzL1TeG/zFFP3vg7b0rlly8cxOcre5nXwz+LHazCwac2MNWgPdPCHndABjpWQ==", + "version": "1.2.9", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.2.9.tgz", + "integrity": "sha512-XxpJfVzFh+jilRxIXUqcfYAYcunIc/XEzIizsOL1fcJee5Sf7H3mH8WlLmfHfluz5amqR88QQo9izKtmMlavAw==", "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -768,13 +1083,12 @@ } }, "node_modules/@rolldown/binding-freebsd-x64": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.2.2.tgz", - "integrity": "sha512-0p1lhiCSCyaerFwtrdZQUx7NqGk6LQnaRKWX7tFQqwQgvX0rjM15cIkm3pax1UpEakK14C4mOxx/jSqCBdBRqQ==", + "version": "1.2.9", + "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.2.9.tgz", + "integrity": "sha512-kSfvhmgeWyfkbT3p/1s5vSgboogoah2zkm9fX2zjg2hHxSV7T4KhMWRUUaRk4OXNqoD3QAUeRqLcs1aZOK4U1g==", "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -785,13 +1099,12 @@ } }, "node_modules/@rolldown/binding-linux-arm-gnueabihf": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.2.2.tgz", - "integrity": "sha512-e+cOJXrJ2L3zx6YzqPg+f6Wbk3V1cKB8bOhbaYdVYN3DdquzNdRAmrbETz1qnt5yp/c7JNlNjmITiA2cVneQ7w==", + "version": "1.2.9", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.2.9.tgz", + "integrity": "sha512-1RVzG17pxqbTfYLC352JlLt6kKLG+6Hr30n8DlIJqsnV5luUDd2Qdx9Ayw1Cabfyb1K9k0jXEZ7evxkRoT+uiw==", "cpu": [ "arm" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -802,13 +1115,15 @@ } }, "node_modules/@rolldown/binding-linux-arm64-gnu": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.2.2.tgz", - "integrity": "sha512-JsSMsj6sNat/MuhG5fnBD7QgbtpHKVe30x5/bAVirDHdhoQRXJkF6xc0Jqk8O4fiCUQAzMOoH9wZi3m60c8wtg==", + "version": "1.2.9", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.2.9.tgz", + "integrity": "sha512-BXqPvZ2drqVD+/Z8UpKwcs4Mp7grM+eGFku4CAEKrEtcbAsUpzREphK1sogCRZGreVPiMkiiBtw0n3TPteuqvw==", "cpu": [ "arm64" ], - "dev": true, + "libc": [ + "glibc" + ], "license": "MIT", "optional": true, "os": [ @@ -819,13 +1134,15 @@ } }, "node_modules/@rolldown/binding-linux-arm64-musl": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.2.2.tgz", - "integrity": "sha512-B5G/zJdHaoJn9vD50eGHWkiWfmq8Uhi3IiLPJTzmZTrAalk1bztUikSXo0qga18ibE0IXboyeMUnhPjhAJ45wQ==", + "version": "1.2.9", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.2.9.tgz", + "integrity": "sha512-11vWvo8YDwLzukt27J3aYDWU+gg2P7J+ZOmiJ0hkF5BXZDW7pVya7r40MXDy6ya0i9KamoENSVKIugvJNgFXIA==", "cpu": [ "arm64" ], - "dev": true, + "libc": [ + "musl" + ], "license": "MIT", "optional": true, "os": [ @@ -836,13 +1153,15 @@ } }, "node_modules/@rolldown/binding-linux-ppc64-gnu": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.2.2.tgz", - "integrity": "sha512-6mC/awzKka8W6EoekjegpfGkjz8jXWDX63pqu/HYVpyKtZfu65Jsh4QAH3Kej3CAv/c1oGX7psTmFEbr0mDxLA==", + "version": "1.2.9", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.2.9.tgz", + "integrity": "sha512-a1tijMkdwsIARtc0F39ApURROkf3NwqinI6TOiSSWCTR7dT96dffNvMUtDHnq64wKNTIZOIlzKrFvvFUznJiyw==", "cpu": [ "ppc64" ], - "dev": true, + "libc": [ + "glibc" + ], "license": "MIT", "optional": true, "os": [ @@ -853,13 +1172,15 @@ } }, "node_modules/@rolldown/binding-linux-s390x-gnu": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.2.2.tgz", - "integrity": "sha512-412MX9fJLdA1IK28EZnc8jYv2HRTleOZgfLQumJ5zy7OeJLZlg/CETwFaXjNmGVxG51cFHpKLqb5LKvBC+HsHA==", + "version": "1.2.9", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.2.9.tgz", + "integrity": "sha512-x6SQNdAvv4c3hWqTMaWuawzMX9myaCs/yEmlGsxJzkdClnHW7FbrjQuSiRDhuSYzEYoEMhsaJy9qHG/XNemJPQ==", "cpu": [ "s390x" ], - "dev": true, + "libc": [ + "glibc" + ], "license": "MIT", "optional": true, "os": [ @@ -870,13 +1191,15 @@ } }, "node_modules/@rolldown/binding-linux-x64-gnu": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.2.2.tgz", - "integrity": "sha512-Q/+HI/ToJafZ1iCqGgVQXUEkIjufHCTF0gBQ2a5o3cg7GJ2h0qyq3nvvSmU+bGda2/7ygXpTY4TM6gO9OhQ0ZA==", + "version": "1.2.9", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.2.9.tgz", + "integrity": "sha512-9s0AZ8BFK5/n7B/TBoa2yJE3gI3KURrbXcPBlsAsvjU4VeJKgE90y1YtNxyEUIcHPQkg6/yfF3qihUrcM/Kf0Q==", "cpu": [ "x64" ], - "dev": true, + "libc": [ + "glibc" + ], "license": "MIT", "optional": true, "os": [ @@ -887,13 +1210,15 @@ } }, "node_modules/@rolldown/binding-linux-x64-musl": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.2.2.tgz", - "integrity": "sha512-ZKp/w41n6wCvxzxQHtQSbuphfX3Y4cCvbjkKHusrLx4lh+JWLTU7StSltO/DKARISzbj368d+qUaCjI8K2wzXw==", + "version": "1.2.9", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.2.9.tgz", + "integrity": "sha512-P7VWAmV+WdJluH7ovnRGoiv2i8To7GAZ+kGzfGup635cyL7SyYl3lSUaA3Gp5THf0n/Co5EyEqb2zbqq+nMOHQ==", "cpu": [ "x64" ], - "dev": true, + "libc": [ + "musl" + ], "license": "MIT", "optional": true, "os": [ @@ -904,13 +1229,12 @@ } }, "node_modules/@rolldown/binding-openharmony-arm64": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.2.2.tgz", - "integrity": "sha512-pxE6xD4KS3eAROkKK5yrhB9/3+vhlhVGMvlQLbdpzrBGDbKrnzx3RLwPaHvasLo6jgaiBLn7e04Df9C4tYhjmA==", + "version": "1.2.9", + "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.2.9.tgz", + "integrity": "sha512-1qixtsE4BK8h+yS3BfmZ09UhA7O/N4IACva6YBr7EBvCJraByTuRcgOTaiA62Tm0vey3UcKXLOaoGHtYmNGEVg==", "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -921,13 +1245,12 @@ } }, "node_modules/@rolldown/binding-win32-arm64-msvc": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.2.2.tgz", - "integrity": "sha512-4MqEue5re+xIZzAWsB8sj0P1kqZySWqIuN4t6QaIO/YA6SFwySOLruvWQFzfmqk8LBK2P30KCSJwf6mJCZZ5/A==", + "version": "1.2.9", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.2.9.tgz", + "integrity": "sha512-ok8IQjcEPs1AKZfuEUznVBrJw+gK4soq+bx8b1X2XoMqVClarc1q5JDmVtWXY1xfr6ZuHTAsPXHTgTrqKTZeww==", "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -938,13 +1261,12 @@ } }, "node_modules/@rolldown/binding-win32-x64-msvc": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.2.2.tgz", - "integrity": "sha512-NweNxxD0Nf9t8v7kodun45Ijp3EIwYY+uydPP6qBEYvfBqhIjN6dZMzlQja3tqX/aLs3F3Uz+AxDpKgRhpOZQg==", + "version": "1.2.9", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.2.9.tgz", + "integrity": "sha512-Ip2mXoU0hM0boq3Rf+ekuT653OROSo6aSYcPT1VHE4q52KvyxgFkQgrgb/IEsxOuvQ2fZZbs8khJAyCEPM24/g==", "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -958,72 +1280,589 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.1.tgz", "integrity": "sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==", - "dev": true, "license": "MIT" }, - "node_modules/@rollup/pluginutils": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-5.4.0.tgz", - "integrity": "sha512-MfPp06CjRLfXQ3wY0R8vJDYBy/MvVcc9OulEfR0B8Iv9ko+GCNaRZ+EpJYFl27LhKsZK0o420sYCRHCjfCgeUg==", - "dev": true, + "node_modules/@swc/helpers": { + "version": "0.5.23", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.23.tgz", + "integrity": "sha512-5lSsMOTXURePglDfvuAQUqkGek9Hg2kksOYay2m0+XR++b2NWYL/4sWyuvVBIs8oKnJaxkdi9whaL/sqN13afw==", + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.8.0" + } + }, + "node_modules/@tailwindcss/node": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.3.3.tgz", + "integrity": "sha512-/T8IKEsf9VTU6tLjgC7+sv2mOPtQxzE2jMw7u4Tt40Tx+QSZxpzh95/H6cMKoja9XuW7iMdLJYBB0o9G1CaAgg==", "license": "MIT", "dependencies": { - "@types/estree": "^1.0.0", - "estree-walker": "^2.0.2", - "picomatch": "^4.0.2" + "@jridgewell/remapping": "^2.3.5", + "enhanced-resolve": "^5.24.1", + "jiti": "^2.7.0", + "lightningcss": "1.32.0", + "magic-string": "^0.30.21", + "source-map-js": "^1.2.1", + "tailwindcss": "4.3.3" + } + }, + "node_modules/@tailwindcss/node/node_modules/lightningcss": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.32.0.tgz", + "integrity": "sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==", + "license": "MPL-2.0", + "dependencies": { + "detect-libc": "^2.0.3" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "lightningcss-android-arm64": "1.32.0", + "lightningcss-darwin-arm64": "1.32.0", + "lightningcss-darwin-x64": "1.32.0", + "lightningcss-freebsd-x64": "1.32.0", + "lightningcss-linux-arm-gnueabihf": "1.32.0", + "lightningcss-linux-arm64-gnu": "1.32.0", + "lightningcss-linux-arm64-musl": "1.32.0", + "lightningcss-linux-x64-gnu": "1.32.0", + "lightningcss-linux-x64-musl": "1.32.0", + "lightningcss-win32-arm64-msvc": "1.32.0", + "lightningcss-win32-x64-msvc": "1.32.0" + } + }, + "node_modules/@tailwindcss/node/node_modules/lightningcss-android-arm64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.32.0.tgz", + "integrity": "sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==", + "cpu": [ + "arm64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@tailwindcss/node/node_modules/lightningcss-darwin-arm64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.32.0.tgz", + "integrity": "sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==", + "cpu": [ + "arm64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@tailwindcss/node/node_modules/lightningcss-darwin-x64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.32.0.tgz", + "integrity": "sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==", + "cpu": [ + "x64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@tailwindcss/node/node_modules/lightningcss-freebsd-x64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.32.0.tgz", + "integrity": "sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==", + "cpu": [ + "x64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@tailwindcss/node/node_modules/lightningcss-linux-arm-gnueabihf": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.32.0.tgz", + "integrity": "sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==", + "cpu": [ + "arm" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@tailwindcss/node/node_modules/lightningcss-linux-arm64-gnu": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.32.0.tgz", + "integrity": "sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==", + "cpu": [ + "arm64" + ], + "libc": [ + "glibc" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@tailwindcss/node/node_modules/lightningcss-linux-arm64-musl": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.32.0.tgz", + "integrity": "sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==", + "cpu": [ + "arm64" + ], + "libc": [ + "musl" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@tailwindcss/node/node_modules/lightningcss-linux-x64-gnu": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.32.0.tgz", + "integrity": "sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==", + "cpu": [ + "x64" + ], + "libc": [ + "glibc" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@tailwindcss/node/node_modules/lightningcss-linux-x64-musl": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.32.0.tgz", + "integrity": "sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==", + "cpu": [ + "x64" + ], + "libc": [ + "musl" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@tailwindcss/node/node_modules/lightningcss-win32-arm64-msvc": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.32.0.tgz", + "integrity": "sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==", + "cpu": [ + "arm64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@tailwindcss/node/node_modules/lightningcss-win32-x64-msvc": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.32.0.tgz", + "integrity": "sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==", + "cpu": [ + "x64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@tailwindcss/oxide": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.3.3.tgz", + "integrity": "sha512-krXjAikiaFSPaK/FkAQT5UTx3VormQaiZ5hBFlJZ9UFQGB/rwg1MZIhHAG9smMQRTdyJxP6Qt5MwMtdyU5FWrA==", + "license": "MIT", + "engines": { + "node": ">= 20" + }, + "optionalDependencies": { + "@tailwindcss/oxide-android-arm64": "4.3.3", + "@tailwindcss/oxide-darwin-arm64": "4.3.3", + "@tailwindcss/oxide-darwin-x64": "4.3.3", + "@tailwindcss/oxide-freebsd-x64": "4.3.3", + "@tailwindcss/oxide-linux-arm-gnueabihf": "4.3.3", + "@tailwindcss/oxide-linux-arm64-gnu": "4.3.3", + "@tailwindcss/oxide-linux-arm64-musl": "4.3.3", + "@tailwindcss/oxide-linux-x64-gnu": "4.3.3", + "@tailwindcss/oxide-linux-x64-musl": "4.3.3", + "@tailwindcss/oxide-wasm32-wasi": "4.3.3", + "@tailwindcss/oxide-win32-arm64-msvc": "4.3.3", + "@tailwindcss/oxide-win32-x64-msvc": "4.3.3" + } + }, + "node_modules/@tailwindcss/oxide-android-arm64": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.3.3.tgz", + "integrity": "sha512-Y85A2gmPSkl5Ve5qR86GL4HT509cFqQh1aes9p3sSkyTPwt0Pppf3GkwGe4JPACcRYjgJIEhQgM6dBClnr0NYw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-darwin-arm64": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.3.3.tgz", + "integrity": "sha512-BiaWatpBcERQFDlOjRDpIVXuFK5PJez5SA4JMg6VYZdBYU+qKfV/vqjcIs+IYmtitf1xYQZTwXvU/8y4lfZUGw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-darwin-x64": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.3.3.tgz", + "integrity": "sha512-fAeUqfV5ndhxRwai8cXGzdLvul9utWOmeTkv69unv4ZXixjn61Z+p9lCWdwOwA3TYboG3BwdVuN/RDjhBRl0mw==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-freebsd-x64": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.3.3.tgz", + "integrity": "sha512-iyf5bV6+wnAlflVeEy7R25dupxTNECZN5QMI0qNT6eT+EgaGdZcKhGkr5SdoaWiLJ3spLqIY9VCeSGrwmtg4kw==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-arm-gnueabihf": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.3.3.tgz", + "integrity": "sha512-aAYUprJAJQWWbRrPvtjdroZ56Md+JM8pMiopS6xGEwDfLhqj+2ver2p4nU4Mb3CRqcMmNBjo8KkUgcxhkzVQGQ==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-arm64-gnu": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.3.3.tgz", + "integrity": "sha512-nDxldcEENOxZRzC2uu9jrutZdAAQtb+8WWDCSnWL1zvBk1+FN+x6MtDViPB5AJMfttVCUhehGWus3XBPgatM/w==", + "cpu": [ + "arm64" + ], + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-arm64-musl": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.3.3.tgz", + "integrity": "sha512-Md44bD6veX/PC5iyF8cDVnw4HBIANZepRZZ7a8DQOvkfo5WUBwcp6iAuCUz23u+4SUkhJlD3eL7hNdW8ezd/kA==", + "cpu": [ + "arm64" + ], + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-x64-gnu": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.3.3.tgz", + "integrity": "sha512-tx7us1muwOKAKWao2v/GaafFeQboE6aj88vC6ziN2NCGcRm8gWUhwjzg+YdVB1e4boAtdtma4L43onunI6NS4w==", + "cpu": [ + "x64" + ], + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-x64-musl": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.3.3.tgz", + "integrity": "sha512-SJxX60smvHgasZoBy11dX6YRjXJFovwWBoedhbQPOBzgFWBHGB+TVPWB9BxzR7TTxU8FQZAI2AyiNCMzFm8Img==", + "cpu": [ + "x64" + ], + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-wasm32-wasi": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.3.3.tgz", + "integrity": "sha512-jx1+rPhY/5Ympkktd656HBWEBLxP7dH06losBLjjf5vgCODXvi9KhtftWcMIwTFIDqBr7cRnQkdLnAG+IOlGvQ==", + "bundleDependencies": [ + "@napi-rs/wasm-runtime", + "@emnapi/core", + "@emnapi/runtime", + "@tybys/wasm-util", + "@emnapi/wasi-threads", + "tslib" + ], + "cpu": [ + "wasm32" + ], + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/core": "^1.11.1", + "@emnapi/runtime": "^1.11.1", + "@emnapi/wasi-threads": "^1.2.2", + "@napi-rs/wasm-runtime": "^1.1.4", + "@tybys/wasm-util": "^0.10.2", + "tslib": "^2.8.1" }, "engines": { "node": ">=14.0.0" - }, - "peerDependencies": { - "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0" - }, - "peerDependenciesMeta": { - "rollup": { - "optional": true - } } }, - "node_modules/@testing-library/dom": { - "version": "8.20.1", - "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-8.20.1.tgz", - "integrity": "sha512-/DiOQ5xBxgdYRC8LNk7U+RWat0S3qRLeIw3ZIkMQ9kkVlRmwD/Eg8k8CqIpD6GW7u20JIUOfMKbxtiLutpjQ4g==", + "node_modules/@tailwindcss/oxide-win32-arm64-msvc": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.3.3.tgz", + "integrity": "sha512-3rc292Ca2ceK6Ulcc/bAVnTs/3nDtoPhyEKlgPv+yQJQi/JS/AMJlqzxvlDacL1nekbrcf6bTqp/jV4qgnPxNQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-win32-x64-msvc": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.3.3.tgz", + "integrity": "sha512-yJ0pwIVc/nYeGoV02WtsN8KYyLQv7kyI2wDnkezyJlGGjkd4QLwDGAwl47YpPJeuI0M0ObaXGSPjvWDPeTPggw==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/vite": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/vite/-/vite-4.3.3.tgz", + "integrity": "sha512-yYU8cogLeSh/ms2jh8Fj7jaba/EWa7Ja6GoUqYZaraEuCI5YS6ms6ObZgjjedm+jm6XZjdNRWBpPP6Z86oOxcw==", + "license": "MIT", + "dependencies": { + "@tailwindcss/node": "4.3.3", + "@tailwindcss/oxide": "4.3.3", + "tailwindcss": "4.3.3" + }, + "peerDependencies": { + "vite": "^5.2.0 || ^6 || ^7 || ^8" + } + }, + "node_modules/@tanstack/virtual-core": { + "version": "3.17.11", + "resolved": "https://registry.npmjs.org/@tanstack/virtual-core/-/virtual-core-3.17.11.tgz", + "integrity": "sha512-+ILjvtHup6Y2hzQ6YzwMgX1Q+oQpxEGOXCEsCNaPoIP0VxMbizIBTmYTDtkerkIQS8/CbP1BRuyt8V/8BCsy1g==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/tannerlinsley" + } + }, + "node_modules/@tanstack/vue-virtual": { + "version": "3.13.39", + "resolved": "https://registry.npmjs.org/@tanstack/vue-virtual/-/vue-virtual-3.13.39.tgz", + "integrity": "sha512-AG8sI+6nfrDvN6ixuHJL9LaJTf3//0V5VITZYW3UOaIuSVexnEzsbMu4LH/JhMfRTxwhUXPnLqkl1DlzkZbRtg==", + "license": "MIT", + "dependencies": { + "@tanstack/virtual-core": "3.17.11" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/tannerlinsley" + }, + "peerDependencies": { + "vue": "^2.7.0 || ^3.0.0" + } + }, + "node_modules/@ts-morph/common": { + "version": "0.29.0", + "resolved": "https://registry.npmjs.org/@ts-morph/common/-/common-0.29.0.tgz", + "integrity": "sha512-35oUmphHbJvQ/+UTwFNme/t2p3FoKiGJ5auTjjpNTop2dyREspirjMy82PLSC1pnDJ8ah1GU98hwpVt64YXQsg==", "dev": true, "license": "MIT", "dependencies": { - "@babel/code-frame": "^7.10.4", - "@babel/runtime": "^7.12.5", - "@types/aria-query": "^5.0.1", - "aria-query": "5.1.3", - "chalk": "^4.1.0", - "dom-accessibility-api": "^0.5.9", - "lz-string": "^1.5.0", - "pretty-format": "^27.0.2" - }, - "engines": { - "node": ">=12" + "minimatch": "^10.0.1", + "path-browserify": "^1.0.1", + "tinyglobby": "^0.2.14" } }, - "node_modules/@testing-library/preact": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/@testing-library/preact/-/preact-3.2.4.tgz", - "integrity": "sha512-F+kJ243LP6VmEK1M809unzTE/ijg+bsMNuiRN0JEDIJBELKKDNhdgC/WrUSZ7klwJvtlO3wQZ9ix+jhObG07Fg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@testing-library/dom": "^8.11.1" - }, - "engines": { - "node": ">= 12" - }, - "peerDependencies": { - "preact": ">=10 || ^10.0.0-alpha.0 || ^10.0.0-beta.0" - } - }, - "node_modules/@types/aria-query": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/@types/aria-query/-/aria-query-5.0.4.tgz", - "integrity": "sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==", + "node_modules/@types/esrecurse": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/@types/esrecurse/-/esrecurse-4.3.1.tgz", + "integrity": "sha512-xJBAbDifo5hpffDBuHl0Y8ywswbiAp/Wi7Y/GtAgSlZyIABppyurxVueOPE8LUQOxdlgi6Zqce7uoEpqNTeiUw==", "dev": true, "license": "MIT" }, @@ -1034,14 +1873,462 @@ "dev": true, "license": "MIT" }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/@types/node": { + "version": "24.13.6", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.13.6.tgz", + "integrity": "sha512-SGrw/h3KPFshy3OE6ZL53LMBG5vGQQ8/gIpiqz/kRZhPJ7HgwCEs8LBuNtWLa8dvGZVpSF7+Bf+c11HUrCb/yg==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "undici-types": "~7.18.0" + } + }, + "node_modules/@types/web-bluetooth": { + "version": "0.0.21", + "resolved": "https://registry.npmjs.org/@types/web-bluetooth/-/web-bluetooth-0.0.21.tgz", + "integrity": "sha512-oIQLCGWtcFZy2JW77j9k8nHzAOpqMHLQejDA48XXMWH6tjCQHz5RCFz1bzsmROyL6PUm+LLnUiI4BCn221inxA==", + "license": "MIT" + }, + "node_modules/@unovue/detypes": { + "version": "0.8.5", + "resolved": "https://registry.npmjs.org/@unovue/detypes/-/detypes-0.8.5.tgz", + "integrity": "sha512-Yz4JeWOHGa+w/3YudVdng8hgN/VGW9cvp8xmFkmPPFzalGblLPPSpIRiwVo853yLstMZO2LLwe0vOoLAQsUQXw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.24.5", + "@babel/preset-typescript": "^7.24.1", + "@vue/compiler-dom": "^3.4.27", + "@vue/compiler-sfc": "^3.4.27", + "@vuedx/template-ast-types": "0.7.1", + "fast-glob": "^3.3.2", + "prettier": "^3.2.5", + "typescript": "^5.4.5" + }, + "bin": { + "detypes": "detype.js" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@unovue/detypes/node_modules/typescript": { + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", + "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/@vitejs/plugin-vue": { + "version": "6.0.9", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-6.0.9.tgz", + "integrity": "sha512-rD/MORlhaZMlXWW0rEn4FB4wMinWC0z/D7Ye160S5+Rs1mC8ZDAdcDp4SjKfUhG5t8q1ktcPVw4xuTkPRlzrSA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@rolldown/pluginutils": "^1.0.1" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "peerDependencies": { + "vite": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0", + "vue": "^3.2.25" + } + }, + "node_modules/@volar/language-core": { + "version": "2.4.28", + "resolved": "https://registry.npmjs.org/@volar/language-core/-/language-core-2.4.28.tgz", + "integrity": "sha512-w4qhIJ8ZSitgLAkVay6AbcnC7gP3glYM3fYwKV3srj8m494E3xtrCv6E+bWviiK/8hs6e6t1ij1s2Endql7vzQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@volar/source-map": "2.4.28" + } + }, + "node_modules/@volar/source-map": { + "version": "2.4.28", + "resolved": "https://registry.npmjs.org/@volar/source-map/-/source-map-2.4.28.tgz", + "integrity": "sha512-yX2BDBqJkRXfKw8my8VarTyjv48QwxdJtvRgUpNE5erCsgEUdI2DsLbpa+rOQVAJYshY99szEcRDmyHbF10ggQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@volar/typescript": { + "version": "2.4.28", + "resolved": "https://registry.npmjs.org/@volar/typescript/-/typescript-2.4.28.tgz", + "integrity": "sha512-Ja6yvWrbis2QtN4ClAKreeUZPVYMARDYZl9LMEv1iQ1QdepB6wn0jTRxA9MftYmYa4DQ4k/DaSZpFPUfxl8giw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@volar/language-core": "2.4.28", + "path-browserify": "^1.0.1", + "vscode-uri": "^3.0.8" + } + }, + "node_modules/@vue-macros/common": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/@vue-macros/common/-/common-3.1.4.tgz", + "integrity": "sha512-/5Fv+6DgIcM9ajY05ZmKBv+LMX1M9A0X+IUwDRVdt67ciw8OV9bvG2r34p3RiEadlsQybjhKPRKNXDC8Bp23cw==", + "license": "MIT", + "dependencies": { + "@vue/compiler-sfc": "^3.5.22", + "ast-kit": "^2.1.2", + "local-pkg": "^1.1.2", + "magic-string-ast": "^1.0.2", + "unplugin-utils": "^0.3.0" + }, + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "url": "https://github.com/sponsors/vue-macros" + }, + "peerDependencies": { + "vue": "^2.7.0 || ^3.2.25" + }, + "peerDependenciesMeta": { + "vue": { + "optional": true + } + } + }, + "node_modules/@vue/compiler-core": { + "version": "3.5.43", + "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.5.43.tgz", + "integrity": "sha512-zdiLhnbe1QQqgDT8xZMpNmyqZ3qlI+/Q/FHQco57Kwl/b05HhCzN6eVGN9QU9rbga4CrS0H5SYY8VGHZCt/1Hg==", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.29.8", + "@vue/shared": "3.5.43", + "entities": "^7.0.1", + "estree-walker": "^2.0.2", + "source-map-js": "^1.2.1" + } + }, + "node_modules/@vue/compiler-dom": { + "version": "3.5.43", + "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.5.43.tgz", + "integrity": "sha512-PEZoAk3NQmsn/ejMzSOCyTYqwGqczrWm70PuhBKjjv1+TCoQAaO/zOqNwjV+honlNstT5ILxtc+8r8UUfj+iEQ==", + "license": "MIT", + "dependencies": { + "@vue/compiler-core": "3.5.43", + "@vue/shared": "3.5.43" + } + }, + "node_modules/@vue/compiler-sfc": { + "version": "3.5.43", + "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.5.43.tgz", + "integrity": "sha512-FCbrG3XNCRl+js3huuKx4IVHBLTvMkJhVepjbxSPu1gn4yWLaYtGNQdjJGZaMytXB6qb76qQDDmDSLy/vkmleQ==", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.29.8", + "@vue/compiler-core": "3.5.43", + "@vue/compiler-dom": "3.5.43", + "@vue/compiler-ssr": "3.5.43", + "@vue/shared": "3.5.43", + "estree-walker": "^2.0.2", + "magic-string": "^0.30.21", + "postcss": "^8.5.28", + "source-map-js": "^1.2.1" + } + }, + "node_modules/@vue/compiler-ssr": { + "version": "3.5.43", + "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.5.43.tgz", + "integrity": "sha512-GF62orf7KiJX9RqrHNGrYBudsQGD0OhJ5nDs90O8UiDuS40+YMYomiXu6w6EuvtXuRDc3MSNis3EaaSKAVSWpg==", + "license": "MIT", + "dependencies": { + "@vue/compiler-dom": "3.5.43", + "@vue/shared": "3.5.43" + } + }, + "node_modules/@vue/devtools-api": { + "version": "8.2.1", + "resolved": "https://registry.npmjs.org/@vue/devtools-api/-/devtools-api-8.2.1.tgz", + "integrity": "sha512-6u4vXBlIBAC1wMplIZgpyPn7uh/s4Bf6F5bMzvLv+EdJ0aHs/+4B7Ygv864EStQSjRbsRzTko/kUG1A1IejQ3A==", + "license": "MIT", + "dependencies": { + "@vue/devtools-kit": "^8.2.1" + } + }, + "node_modules/@vue/devtools-kit": { + "version": "8.2.1", + "resolved": "https://registry.npmjs.org/@vue/devtools-kit/-/devtools-kit-8.2.1.tgz", + "integrity": "sha512-FIGIuq3AWReEpbAHY/cRGeHDfI0qOb8OCQ3YjbEAX04uaxIDbGc9rhkbVcG7rnfHPXE3RsU5KrWOu9V/okd8AQ==", + "license": "MIT", + "dependencies": { + "@vue/devtools-shared": "^8.2.1", + "birpc": "^2.6.1", + "hookable": "^5.5.3", + "perfect-debounce": "^2.0.0" + } + }, + "node_modules/@vue/devtools-shared": { + "version": "8.2.1", + "resolved": "https://registry.npmjs.org/@vue/devtools-shared/-/devtools-shared-8.2.1.tgz", + "integrity": "sha512-Fkac7lUdGReh6pVOi3AYPRGe82LQqRmAfThW7RRligOAP0ZA/Z1z9XLHDM9dv34pV2HRc79DK8uKPeG2fLnA/g==", + "license": "MIT" + }, + "node_modules/@vue/language-core": { + "version": "3.3.11", + "resolved": "https://registry.npmjs.org/@vue/language-core/-/language-core-3.3.11.tgz", + "integrity": "sha512-QJmpliwAVpC/OxubIByPAhNzsQPRc8/gxlN2qnVzVfIMjMDz/9RnXRFoetjz5yEgXVXyp4LqhXq3V53PjmNzFw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@volar/language-core": "2.4.28", + "@vue/compiler-dom": "^3.5.0", + "@vue/shared": "^3.5.0", + "alien-signals": "^3.2.1", + "muggle-string": "^0.4.1", + "path-browserify": "^1.0.1", + "picomatch": "^4.0.4" + } + }, + "node_modules/@vue/reactivity": { + "version": "3.5.43", + "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.5.43.tgz", + "integrity": "sha512-G/c9GyOZNI2jVaaS6OX1EF1SSFSv7H0ERqNTl4+DTFMlZmB5eVAB53aLQNam/7NL2NPtaDD7RdVrzf8uJzMuOA==", + "license": "MIT", + "dependencies": { + "@vue/shared": "3.5.43" + } + }, + "node_modules/@vue/runtime-core": { + "version": "3.5.43", + "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.5.43.tgz", + "integrity": "sha512-hU6U6VnVhBGQDpvlnnDlIB8ZGJBiOcgk2lh/0InltHiz3D8oSkluvuvY+do1G2H3+udeKFsmaBlgVYP7gXQzEw==", + "license": "MIT", + "dependencies": { + "@vue/reactivity": "3.5.43", + "@vue/shared": "3.5.43" + } + }, + "node_modules/@vue/runtime-dom": { + "version": "3.5.43", + "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.5.43.tgz", + "integrity": "sha512-Bb2Jc0YjjJdMt1SJmb9b2L/IWd3I8lIT9x9eS/xvvP9CiVgna0ffua74xKRmt4/uSJ+0r4iN8ex1jrqkhQGWQw==", + "license": "MIT", + "dependencies": { + "@vue/reactivity": "3.5.43", + "@vue/runtime-core": "3.5.43", + "@vue/shared": "3.5.43", + "csstype": "^3.2.3" + } + }, + "node_modules/@vue/server-renderer": { + "version": "3.5.43", + "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.5.43.tgz", + "integrity": "sha512-l2Ygjv9NehV94PSBxNWsAHC0j/eIIKbn92mBuWXAPGLnn6HfJ6MH5ubsd+Nk0YoZ5FRuxWI1P2VSoh+dbPQhCQ==", + "license": "MIT", + "dependencies": { + "@vue/compiler-ssr": "3.5.43", + "@vue/runtime-dom": "3.5.43", + "@vue/shared": "3.5.43" + } + }, + "node_modules/@vue/shared": { + "version": "3.5.43", + "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.43.tgz", + "integrity": "sha512-uksS7YGMR5NZyr4JNq0Rp+QyLns0ueaz20KwzIPW9R0LH1Vnt4E+XUM29PNseEbf1www2gOuhuDi5AKOIXag9Q==", + "license": "MIT" + }, + "node_modules/@vue/tsconfig": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/@vue/tsconfig/-/tsconfig-0.9.1.tgz", + "integrity": "sha512-buvjm+9NzLCJL29KY1j1991YYJ5e6275OiK+G4jtmfIb+z4POywbdm0wXusT9adVWqe0xqg70TbI7+mRx4uU9w==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "typescript": ">= 5.8", + "vue": "^3.4.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + }, + "vue": { + "optional": true + } + } + }, + "node_modules/@vuedx/template-ast-types": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/@vuedx/template-ast-types/-/template-ast-types-0.7.1.tgz", + "integrity": "sha512-Mqugk/F0lFN2u9bhimH6G1kSu2hhLi2WoqgCVxrMvgxm2kDc30DtdvVGRq+UgEmKVP61OudcMtZqkUoGQeFBUQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vue/compiler-core": "^3.0.0" + }, + "funding": { + "type": "individual", + "url": "https://github.com/sponsors/znck" + } + }, + "node_modules/@vueuse/core": { + "version": "15.0.0", + "resolved": "https://registry.npmjs.org/@vueuse/core/-/core-15.0.0.tgz", + "integrity": "sha512-Zv67h5mrk7YHDJsRObx+DXaCBz6RKBUpxqLesJ+3xZNPG6yuQs7ja7kg3veFrrouYLWAqydQ7CwGEbLVxB43Ng==", + "license": "MIT", + "dependencies": { + "@types/web-bluetooth": "^0.0.21", + "@vueuse/metadata": "15.0.0", + "@vueuse/shared": "15.0.0" + }, + "engines": { + "node": ">=22" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + }, + "peerDependencies": { + "vue": "^3.5.0" + } + }, + "node_modules/@vueuse/core/node_modules/@vueuse/shared": { + "version": "15.0.0", + "resolved": "https://registry.npmjs.org/@vueuse/shared/-/shared-15.0.0.tgz", + "integrity": "sha512-vbNXhGrbV53xPOMSyOzMHQRvhMgZf7oNDw2RChUetVxwTIEkInQ1joZ9JbT0G3z2n2AJNjvmCWeM9ySYrnvogA==", + "license": "MIT", + "engines": { + "node": ">=22" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + }, + "peerDependencies": { + "vue": "^3.5.0" + } + }, + "node_modules/@vueuse/metadata": { + "version": "15.0.0", + "resolved": "https://registry.npmjs.org/@vueuse/metadata/-/metadata-15.0.0.tgz", + "integrity": "sha512-sfWE5LADAKJ0KnjtGliMdSN8Ij/L7uP6rXIZlgPloAI4zvvefbw6H5Lt7KJA6RqQOYgVqWF5Guj50HHMIzygBg==", + "license": "MIT", + "engines": { + "node": ">=22" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/@vueuse/shared": { + "version": "14.4.0", + "resolved": "https://registry.npmjs.org/@vueuse/shared/-/shared-14.4.0.tgz", + "integrity": "sha512-JRgY90Sz8DDtPMsaDflvPMp9xYk69JZAmbuDvAquUVXKr2gEjqtzGNTTthLfckH0BzBqvnu31gb4a8TGLRe79g==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/antfu" + }, + "peerDependencies": { + "vue": "^3.5.0" + } + }, + "node_modules/accepts": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz", + "integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==", + "dev": true, + "license": "MIT", + "dependencies": { + "mime-types": "^3.0.0", + "negotiator": "^1.0.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/acorn": { + "version": "8.18.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.18.0.tgz", + "integrity": "sha512-lGq+9yr1/GuAWaVYIHRjvvySG5/4VfKIvC8EWxStPdcDh/Ka7FG3twP6v4d5BkravUilhIAsG4Qj83t02LWUPQ==", + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/ajv": { + "version": "8.20.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.20.0.tgz", + "integrity": "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ajv-formats": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-3.0.1.tgz", + "integrity": "sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ajv": "^8.0.0" + }, + "peerDependencies": { + "ajv": "^8.0.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } + } + }, + "node_modules/alien-signals": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/alien-signals/-/alien-signals-3.2.1.tgz", + "integrity": "sha512-I8FjmltrfnDFoZedi5CG8DghVYNhzb/Ijluz7tCSJH0xpd0484Kowhbb1XDYOxfJpU1p5wnM2X54dA+IfGyD1g==", + "dev": true, + "license": "MIT" + }, "node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.3.0.tgz", + "integrity": "sha512-WpDfL7NO6j7tH88IDBNVdUJxDh9nmCteAVW9dsep846XdwF4naCBK+/tGLX3KJgcpgMRXCFlTM2hKGoK9FsdrQ==", "dev": true, "license": "MIT", "engines": { - "node": ">=8" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" } }, "node_modules/ansi-styles": { @@ -1060,63 +2347,115 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/aria-query": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.1.3.tgz", - "integrity": "sha512-R5iJ5lkuHybztUfuOAznmboyjWq8O6sqNqtK7CLOqdydi54VNbORp49mb14KbWgG1QD3JFO9hJdZ+y4KutfdOQ==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "deep-equal": "^2.0.5" - } - }, - "node_modules/array-buffer-byte-length": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.2.tgz", - "integrity": "sha512-LHE+8BuR7RYGDKvnrmcuSq3tDcKv9OFEXQt/HpbZhY7V6h0zlUXutnAD82GiFx9rdieCMjkvtcsPqBwgUl1Iiw==", - "dev": true, + "node_modules/aria-hidden": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/aria-hidden/-/aria-hidden-1.2.6.tgz", + "integrity": "sha512-ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA==", "license": "MIT", "dependencies": { - "call-bound": "^1.0.3", - "is-array-buffer": "^3.0.5" + "tslib": "^2.0.0" }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=10" } }, - "node_modules/available-typed-arrays": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", - "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", + "node_modules/ast-kit": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/ast-kit/-/ast-kit-2.2.0.tgz", + "integrity": "sha512-m1Q/RaVOnTp9JxPX+F+Zn7IcLYMzM8kZofDImfsKZd8MbR+ikdOzTeztStWqfrqIxZnYWryyI9ePm3NGjnZgGw==", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.28.5", + "pathe": "^2.0.3" + }, + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "url": "https://github.com/sponsors/sxzz" + } + }, + "node_modules/ast-types": { + "name": "ast-types-x", + "version": "1.18.0", + "resolved": "https://registry.npmjs.org/ast-types-x/-/ast-types-x-1.18.0.tgz", + "integrity": "sha512-ZtfIlyTCmnAXPCQo4mSDtFsHL7L3q0sJfpVYPmy5uYPjs+fynzOuc1Cg6yQ9fF6h61RjEWtOlRFwV1Kc80Qs6A==", "dev": true, "license": "MIT", "dependencies": { - "possible-typed-array-names": "^1.0.0" + "tslib": "^2.0.1" }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=4" } }, - "node_modules/babel-plugin-transform-hook-names": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-hook-names/-/babel-plugin-transform-hook-names-1.0.2.tgz", - "integrity": "sha512-5gafyjyyBTTdX/tQQ0hRgu4AhNHG/hqWi0ZZmg2xvs2FgRkJXzDNKBZCyoYqgFkovfDrgM8OoKg8karoUvWeCw==", + "node_modules/ast-types-x": { + "version": "1.18.0", + "resolved": "https://registry.npmjs.org/ast-types-x/-/ast-types-x-1.18.0.tgz", + "integrity": "sha512-ZtfIlyTCmnAXPCQo4mSDtFsHL7L3q0sJfpVYPmy5uYPjs+fynzOuc1Cg6yQ9fF6h61RjEWtOlRFwV1Kc80Qs6A==", "dev": true, "license": "MIT", - "peerDependencies": { - "@babel/core": "^7.12.10" + "dependencies": { + "tslib": "^2.0.1" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/ast-walker-scope": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/ast-walker-scope/-/ast-walker-scope-0.9.0.tgz", + "integrity": "sha512-IJdzo2vLiElBxKzwS36VsCue/62d6IdWjnPB2v3nuPKeWGynp6FF/CYoLa5i/3jXH/z97ZDdsXz6abpgM6w07A==", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.29.2", + "@babel/types": "^7.29.0", + "ast-kit": "^2.2.0" + }, + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "url": "https://github.com/sponsors/sxzz" + } + }, + "node_modules/astral-regex": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", + "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/atob": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", + "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==", + "devOptional": true, + "license": "(MIT OR Apache-2.0)", + "bin": { + "atob": "bin/atob.js" + }, + "engines": { + "node": ">= 4.5.0" + } + }, + "node_modules/balanced-match": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz", + "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "18 || 20 || >=22" } }, "node_modules/baseline-browser-mapping": { - "version": "2.11.20", - "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.11.20.tgz", - "integrity": "sha512-H0ulySigv6icDJ1F7SjtdCD6PrhTpdYCmP0CactWy1+ekh0AFd0o1Wn5T8b+hnTmdBx19u9yhL6wvCylXMY7zw==", + "version": "2.11.25", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.11.25.tgz", + "integrity": "sha512-gMmEShwwq7FJqMwvfRwvCl00v4kN+KOfJqXn+f4nrufak5gNHJOksd/60Dvjuz7sI8Y5WiSFBa8FEYr+zoyqCw==", "dev": true, "license": "Apache-2.0", "bin": { @@ -1126,14 +2465,52 @@ "node": ">=6.0.0" } }, - "node_modules/bidi-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/bidi-js/-/bidi-js-1.0.3.tgz", - "integrity": "sha512-RKshQI1R3YQ+n9YJz2QQ147P66ELpa1FQEg20Dk8oW9t2KgLbpDLLp9aGZ7y8WHSshDknG0bknqGw5/tyCs5tw==", + "node_modules/birpc": { + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/birpc/-/birpc-2.9.0.tgz", + "integrity": "sha512-KrayHS5pBi69Xi9JmvoqrIgYGDkD6mcSe/i6YKi3w5kekCLzrX4+nawcXqrj2tIp50Kw/mT/s3p+GVK0A0sKxw==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/body-parser": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.3.0.tgz", + "integrity": "sha512-2cGmJupaNgg+QUwVLAucDuWuoMZ6EX9iHDRswZ5lsNYEmwPaRknMPCLZz07yTzVq/83p4o/wzbDZbBrTvGGTIw==", "dev": true, "license": "MIT", "dependencies": { - "require-from-string": "^2.0.2" + "bytes": "^3.1.2", + "content-type": "^2.0.0", + "debug": "^4.4.3", + "http-errors": "^2.0.1", + "iconv-lite": "^0.7.2", + "on-finished": "^2.4.1", + "qs": "^6.15.2", + "raw-body": "^3.0.2", + "type-is": "^2.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/body-parser/node_modules/content-type": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-2.1.0.tgz", + "integrity": "sha512-mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" } }, "node_modules/boolbase": { @@ -1143,10 +2520,44 @@ "dev": true, "license": "ISC" }, + "node_modules/boolean": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/boolean/-/boolean-3.2.0.tgz", + "integrity": "sha512-d0II/GO9uf9lfUHH2BQsjxzRJZBdsjgsBiW4BvhWk/3qoKwQFjIDVN19PfX8F2D/r9PCMTtLWjYVCFrpeYUzsw==", + "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", + "dev": true, + "license": "MIT" + }, + "node_modules/brace-expansion": { + "version": "5.0.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.12.tgz", + "integrity": "sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^4.0.2" + }, + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "license": "MIT", + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/browserslist": { - "version": "4.28.8", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.8.tgz", - "integrity": "sha512-V2NpofLblG64mfOtSgDhOJESZEGogzDMBv/q+W6oc4LXWP/q75eOXoOaaOu1EOadB9U4Bwx/e0yzbvwKH8zalA==", + "version": "4.29.0", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.29.0.tgz", + "integrity": "sha512-3GSvyjvDI4Dur1Meg2BekJquu5uF+9R9a1+5M1Mde192eZoXbeXjzgOsgqPS2V8D5wrrip0gR5Hf/GhWQ9ZzaA==", "dev": true, "funding": [ { @@ -1164,11 +2575,11 @@ ], "license": "MIT", "dependencies": { - "baseline-browser-mapping": "^2.11.12", - "caniuse-lite": "^1.0.30001809", - "electron-to-chromium": "^1.5.402", - "node-releases": "^2.0.53", - "update-browserslist-db": "^1.3.0" + "baseline-browser-mapping": "^2.11.23", + "caniuse-lite": "^1.0.30001810", + "electron-to-chromium": "^1.5.427", + "node-releases": "^2.0.55", + "update-browserslist-db": "^1.3.3" }, "bin": { "browserslist": "cli.js" @@ -1177,23 +2588,74 @@ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" } }, - "node_modules/call-bind": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.9.tgz", - "integrity": "sha512-a/hy+pNsFUTR+Iz8TCJvXudKVLAnz/DyeSUo10I5yvFDQJBFU2s9uqQpoSrJlroHUKoKqzg+epxyP9lqFdzfBQ==", + "node_modules/bundle-name": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/bundle-name/-/bundle-name-4.1.0.tgz", + "integrity": "sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q==", "dev": true, "license": "MIT", "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "es-define-property": "^1.0.1", - "get-intrinsic": "^1.3.0", - "set-function-length": "^1.2.2" + "run-applescript": "^7.0.0" }, "engines": { - "node": ">= 0.4" + "node": ">=18" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/bytes": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/c12": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/c12/-/c12-3.3.4.tgz", + "integrity": "sha512-cM0ApFQSBXuourJejzwv/AuPRvAxordTyParRVcHjjtXirtkzM0uK2L9TTn9s0cXZbG7E55jCivRQzoxYmRAlA==", + "dev": true, + "license": "MIT", + "dependencies": { + "chokidar": "^5.0.0", + "confbox": "^0.2.4", + "defu": "^6.1.6", + "dotenv": "^17.3.1", + "exsolve": "^1.0.8", + "giget": "^3.2.0", + "jiti": "^2.6.1", + "ohash": "^2.0.11", + "pathe": "^2.0.3", + "perfect-debounce": "^2.1.0", + "pkg-types": "^2.3.0", + "rc9": "^3.0.1" + }, + "peerDependencies": { + "magicast": "*" + }, + "peerDependenciesMeta": { + "magicast": { + "optional": true + } + } + }, + "node_modules/cacheable": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/cacheable/-/cacheable-2.5.0.tgz", + "integrity": "sha512-60cyAOytib/OzBw1JNSoSV/boK1AtHryDIjvVBk7XbN4ugfkM3+Sry7fEjNgPMGgOjuaZPAp8ruZ0Cxafwyq9g==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@cacheable/memory": "^2.2.0", + "@cacheable/utils": "^2.5.0", + "hookified": "^1.15.0", + "keyv": "^5.6.0", + "qified": "^0.10.1" } }, "node_modules/call-bind-apply-helpers": { @@ -1249,22 +2711,148 @@ "license": "CC-BY-4.0" }, "node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "version": "5.6.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.6.2.tgz", + "integrity": "sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==", "dev": true, "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, "engines": { - "node": ">=10" + "node": "^12.17.0 || ^14.13 || >=16.0.0" }, "funding": { "url": "https://github.com/chalk/chalk?sponsor=1" } }, + "node_modules/chokidar": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-5.0.0.tgz", + "integrity": "sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==", + "license": "MIT", + "dependencies": { + "readdirp": "^5.0.0" + }, + "engines": { + "node": ">= 20.19.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/citty": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/citty/-/citty-0.2.2.tgz", + "integrity": "sha512-+6vJA3L98yv+IdfKGZHBNiGW5KHn22e/JwID0Strsz8h4S/csAu/OuICwxrg44k5MRiZHWIo8XXuJgQTriRP4w==", + "dev": true, + "license": "MIT" + }, + "node_modules/class-variance-authority": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/class-variance-authority/-/class-variance-authority-0.7.1.tgz", + "integrity": "sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg==", + "license": "Apache-2.0", + "dependencies": { + "clsx": "^2.1.1" + }, + "funding": { + "url": "https://polar.sh/cva" + } + }, + "node_modules/cli-cursor": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-5.0.0.tgz", + "integrity": "sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==", + "dev": true, + "license": "MIT", + "dependencies": { + "restore-cursor": "^5.0.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/cli-progress": { + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/cli-progress/-/cli-progress-3.12.0.tgz", + "integrity": "sha512-tRkV3HJ1ASwm19THiiLIXLO7Im7wlTuKnvkYaTkyoAPefqjNg7W7DHKUlGRxy9vxDvbyCYQkQozvptuMkGCg8A==", + "dev": true, + "license": "MIT", + "dependencies": { + "string-width": "^4.2.3" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/cli-progress/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/cli-progress/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cli-progress/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cli-spinners": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-3.4.0.tgz", + "integrity": "sha512-bXfOC4QcT1tKXGorxL3wbJm6XJPDqEnij2gQ2m7ESQuE+/z9YFIWnl/5RpTiKWbMq3EVKR4fRLJGn6DVfu0mpw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18.20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/clsx": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz", + "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/code-block-writer": { + "version": "13.0.3", + "resolved": "https://registry.npmjs.org/code-block-writer/-/code-block-writer-13.0.3.tgz", + "integrity": "sha512-Oofo0pq3IKnsFtuHqSF7TqBfr71aeyZDVJ0HpmqB7FBM2qEigL0iPONSCZSO9pE9dZTAxANe5XHG9Uy0YMv8cg==", + "dev": true, + "license": "MIT" + }, "node_modules/color-convert": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", @@ -1285,6 +2873,76 @@ "dev": true, "license": "MIT" }, + "node_modules/commander": { + "version": "15.0.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-15.0.0.tgz", + "integrity": "sha512-z67u4ZhzCL/Tydu1lJARtEZYWbWaN7oYLHbsuzocr6y4N6WZAagG3RQ4FW61V1/0+jImpj293XfrcYnd1qxtPg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=22.12.0" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "devOptional": true, + "license": "MIT" + }, + "node_modules/confbox": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.2.4.tgz", + "integrity": "sha512-ysOGlgTFbN2/Y6Cg3Iye8YKulHw+R2fNXHrgSmXISQdMnomY6eNDprVdW9R5xBguEqI954+S6709UyiO7B+6OQ==", + "license": "MIT" + }, + "node_modules/consola": { + "version": "3.4.2", + "resolved": "https://registry.npmjs.org/consola/-/consola-3.4.2.tgz", + "integrity": "sha512-5IKcdX0nnYavi6G7TtOhwkYzyjfJlatbjMjuLSfE2kYT5pMDOilZ4OvMhi637CcDICTmz3wARPoyhqyX1Y+XvA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^14.18.0 || >=16.10.0" + } + }, + "node_modules/content-disposition": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-1.1.0.tgz", + "integrity": "sha512-5jRCH9Z/+DRP7rkvY83B+yGIGX96OYdJmzngqnw2SBSxqCFPd0w2km3s5iawpGX8krnwSGmF0FW5Nhr0Hfai3g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/content-type": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", + "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/convert-hrtime": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/convert-hrtime/-/convert-hrtime-5.0.0.tgz", + "integrity": "sha512-lOETlkIeYSJWcbbcvjRKGxVMXJR+8+OQb/mTPbA4ObPMytYIsUbuOE0Jzy60hjARYszq1id0j8KgVhC+WGZVTg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/convert-source-map": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", @@ -1292,6 +2950,71 @@ "dev": true, "license": "MIT" }, + "node_modules/cookie": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz", + "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie-signature": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.2.2.tgz", + "integrity": "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.6.0" + } + }, + "node_modules/cors": { + "version": "2.8.6", + "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.6.tgz", + "integrity": "sha512-tJtZBBHA6vjIAaF6EnIaq6laBBP9aq/Y3ouVJjEfoHbRBcHBAHYcMh/w8LDrk2PvIMMq8gmopa5D4V8RmbrxGw==", + "dev": true, + "license": "MIT", + "dependencies": { + "object-assign": "^4", + "vary": "^1" + }, + "engines": { + "node": ">= 0.10" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/css": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/css/-/css-3.0.0.tgz", + "integrity": "sha512-DG9pFfwOrzc+hawpmqX/dHYHJG+Bsdb0klhyi1sDneOgGOXy9wQIC8hzyVp1e4NRYDBdxcylvywPkkXCHAzTyQ==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "inherits": "^2.0.4", + "source-map": "^0.6.1", + "source-map-resolve": "^0.6.0" + } + }, "node_modules/css-select": { "version": "5.2.2", "resolved": "https://registry.npmjs.org/css-select/-/css-select-5.2.2.tgz", @@ -1309,20 +3032,6 @@ "url": "https://github.com/sponsors/fb55" } }, - "node_modules/css-tree": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-3.2.1.tgz", - "integrity": "sha512-X7sjQzceUhu1u7Y/ylrRZFU2FS6LRiFVp6rKLPg23y3x3c3DOKAwuXGDp+PAGjh6CSnCjYeAul8pcT8bAl+lSA==", - "dev": true, - "license": "MIT", - "dependencies": { - "mdn-data": "2.27.1", - "source-map-js": "^1.2.1" - }, - "engines": { - "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0" - } - }, "node_modules/css-what": { "version": "6.2.2", "resolved": "https://registry.npmjs.org/css-what/-/css-what-6.2.2.tgz", @@ -1336,40 +3045,30 @@ "url": "https://github.com/sponsors/fb55" } }, - "node_modules/data-urls": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-7.0.0.tgz", - "integrity": "sha512-23XHcCF+coGYevirZceTVD7NdJOqVn+49IHyxgszm+JIiHLoB2TkmPtsYkNWT1pvRSGkc35L6NHs0yHkN2SumA==", + "node_modules/cssesc": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", + "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", "dev": true, "license": "MIT", - "dependencies": { - "whatwg-mimetype": "^5.0.0", - "whatwg-url": "^16.0.0" + "bin": { + "cssesc": "bin/cssesc" }, "engines": { - "node": "^20.19.0 || ^22.12.0 || >=24.0.0" + "node": ">=4" } }, - "node_modules/data-urls/node_modules/whatwg-url": { - "version": "16.0.1", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-16.0.1.tgz", - "integrity": "sha512-1to4zXBxmXHV3IiSSEInrreIlu02vUOvrhxJJH5vcxYTBDAx51cqZiKdyTxlecdKNSjj8EcxGBxNf6Vg+945gw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@exodus/bytes": "^1.11.0", - "tr46": "^6.0.0", - "webidl-conversions": "^8.0.1" - }, - "engines": { - "node": "^20.19.0 || ^22.12.0 || >=24.0.0" - } + "node_modules/csstype": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", + "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", + "license": "MIT" }, "node_modules/debug": { "version": "4.4.3", "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", - "dev": true, + "devOptional": true, "license": "MIT", "dependencies": { "ms": "^2.1.3" @@ -1383,44 +3082,85 @@ } } }, - "node_modules/decimal.js": { - "version": "10.6.0", - "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.6.0.tgz", - "integrity": "sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg==", + "node_modules/decode-uri-component": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.2.tgz", + "integrity": "sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==", + "devOptional": true, + "license": "MIT", + "engines": { + "node": ">=0.10" + } + }, + "node_modules/dedent": { + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.7.2.tgz", + "integrity": "sha512-WzMx3mW98SN+zn3hgemf4OzdmyNhhhKz5Ay0pUfQiMQ3e1g+xmTJWp/pKdwKVXhdSkAEGIIzqeuWrL3mV/AXbA==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "babel-plugin-macros": "^3.1.0" + }, + "peerDependenciesMeta": { + "babel-plugin-macros": { + "optional": true + } + } + }, + "node_modules/deep-diff": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/deep-diff/-/deep-diff-1.0.2.tgz", + "integrity": "sha512-aWS3UIVH+NPGCD1kki+DCU9Dua032iSsO43LqQpcs4R3+dVv7tX0qBGjiVHJHjplsoUM2XRO/KB92glqc68awg==", + "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "dev": true, "license": "MIT" }, - "node_modules/deep-equal": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-2.2.3.tgz", - "integrity": "sha512-ZIwpnevOurS8bpT4192sqAowWM76JDKSHYzMLty3BZGSswgq6pBaH3DhCSW5xVAZICZyKdOBPjwww5wfgT/6PA==", + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/deepmerge": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/default-browser": { + "version": "5.5.1", + "resolved": "https://registry.npmjs.org/default-browser/-/default-browser-5.5.1.tgz", + "integrity": "sha512-m1pAzaJgZ/gssEqlOhJkPJp8Xly7QyW6xcrkUa2KKcDeDSEMP7X8xipU3snUcfisTQx0w1AGae+9UtJSfVnXGw==", "dev": true, "license": "MIT", "dependencies": { - "array-buffer-byte-length": "^1.0.0", - "call-bind": "^1.0.5", - "es-get-iterator": "^1.1.3", - "get-intrinsic": "^1.2.2", - "is-arguments": "^1.1.1", - "is-array-buffer": "^3.0.2", - "is-date-object": "^1.0.5", - "is-regex": "^1.1.4", - "is-shared-array-buffer": "^1.0.2", - "isarray": "^2.0.5", - "object-is": "^1.1.5", - "object-keys": "^1.1.1", - "object.assign": "^4.1.4", - "regexp.prototype.flags": "^1.5.1", - "side-channel": "^1.0.4", - "which-boxed-primitive": "^1.0.2", - "which-collection": "^1.0.1", - "which-typed-array": "^1.1.13" + "bundle-name": "^4.1.0", + "default-browser-id": "^5.0.0" }, "engines": { - "node": ">= 0.4" + "node": ">=18" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/default-browser-id": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/default-browser-id/-/default-browser-id-5.0.1.tgz", + "integrity": "sha512-x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/define-data-property": { @@ -1441,6 +3181,19 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/define-lazy-prop": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-3.0.0.tgz", + "integrity": "sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/define-properties": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", @@ -1459,23 +3212,55 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/defu": { + "version": "6.1.7", + "resolved": "https://registry.npmjs.org/defu/-/defu-6.1.7.tgz", + "integrity": "sha512-7z22QmUWiQ/2d0KkdYmANbRUVABpZ9SNYyH5vx6PZ+nE5bcC0l7uFvEfHlyld/HcGBFTL536ClDt3DEcSlEJAQ==", + "license": "MIT" + }, + "node_modules/depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/destr": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/destr/-/destr-2.0.5.tgz", + "integrity": "sha512-ugFTXCtDZunbzasqBxrK93Ik/DRYsO6S/fedkWEMKqt04xZ4csmnmwGDBAb07QWNaGMAmnTIemsYZCksjATwsA==", + "dev": true, + "license": "MIT" + }, "node_modules/detect-libc": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", - "dev": true, "license": "Apache-2.0", "engines": { "node": ">=8" } }, - "node_modules/dom-accessibility-api": { - "version": "0.5.16", - "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.5.16.tgz", - "integrity": "sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==", + "node_modules/detect-node": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz", + "integrity": "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==", "dev": true, "license": "MIT" }, + "node_modules/diff": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-9.0.0.tgz", + "integrity": "sha512-svtcdpS8CgJyqAjEQIXdb3OjhFVVYjzGAPO8WGCmRbrml64SPw/jJD4GoE98aR7r25A0XcgrK3F02yw9R/vhQw==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.3.1" + } + }, "node_modules/dom-serializer": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz", @@ -1491,6 +3276,19 @@ "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" } }, + "node_modules/dom-serializer/node_modules/entities": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", + "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, "node_modules/domelementtype": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz", @@ -1535,6 +3333,19 @@ "url": "https://github.com/fb55/domutils?sponsor=1" } }, + "node_modules/dotenv": { + "version": "17.4.2", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-17.4.2.tgz", + "integrity": "sha512-nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://dotenvx.com" + } + }, "node_modules/dunder-proto": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", @@ -1550,18 +3361,54 @@ "node": ">= 0.4" } }, + "node_modules/ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", + "dev": true, + "license": "MIT" + }, "node_modules/electron-to-chromium": { - "version": "1.5.420", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.420.tgz", - "integrity": "sha512-2yD6XreGusOfNV+dUcvipJEXc3n/n7fgr7996aszTG+YY5E4mqM4tOq/3uhP129cazL9YHbVWSpc79ePotWtPA==", + "version": "1.5.433", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.433.tgz", + "integrity": "sha512-5lCAbyZBjtmUt/RAGHRqrL2q0oEFRThDAsZHHDn9XHa89Qw7gMYOeSicBTy+AHfvo0r6vwsZvqNJTQIQy1BLzA==", "dev": true, "license": "ISC" }, - "node_modules/entities": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", - "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", "dev": true, + "license": "MIT" + }, + "node_modules/encodeurl": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", + "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/enhanced-resolve": { + "version": "5.25.1", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.25.1.tgz", + "integrity": "sha512-nGXts5znJzmWPu+mIE9izCOzdg63oJca2mDzGWWTth7sr4aCToKcoyFVBQwN75Ij5Pf6p510EwkTqViTRzDV+w==", + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.4", + "tapable": "^2.3.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/entities": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/entities/-/entities-7.0.1.tgz", + "integrity": "sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA==", "license": "BSD-2-Clause", "engines": { "node": ">=0.12" @@ -1590,27 +3437,6 @@ "node": ">= 0.4" } }, - "node_modules/es-get-iterator": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/es-get-iterator/-/es-get-iterator-1.1.3.tgz", - "integrity": "sha512-sPZmqHBe6JIiTfN5q2pEi//TwxmAFHwj/XEuYjTuse78i8KxaqMTTzxPoFKuzRpDpTJ+0NAbpfenkmH2rePtuw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.3", - "has-symbols": "^1.0.3", - "is-arguments": "^1.1.1", - "is-map": "^2.0.2", - "is-set": "^2.0.2", - "is-string": "^1.0.7", - "isarray": "^2.0.5", - "stop-iteration-iterator": "^1.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/es-object-atoms": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.2.tgz", @@ -1624,6 +3450,13 @@ "node": ">= 0.4" } }, + "node_modules/es6-error": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz", + "integrity": "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==", + "dev": true, + "license": "MIT" + }, "node_modules/escalade": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", @@ -1634,18 +3467,410 @@ "node": ">=6" } }, + "node_modules/escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", + "dev": true, + "license": "MIT" + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "10.11.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-10.11.0.tgz", + "integrity": "sha512-P7a6UEEqb9G95MYAtqkmsTbVXIYyzIfl6NGOIJk162PaahFxFyeGcrlXYFSiagECg4sEm8IseJdZBKR3rx6MsQ==", + "dev": true, + "license": "MIT", + "peer": true, + "workspaces": [ + "packages/*" + ], + "dependencies": { + "@eslint-community/eslint-utils": "^4.8.0", + "@eslint-community/regexpp": "^4.12.2", + "@eslint/config-array": "^0.23.5", + "@eslint/config-helpers": "^0.7.0", + "@eslint/core": "^1.2.1", + "@eslint/plugin-kit": "^0.7.3", + "@humanfs/node": "^0.16.6", + "@humanwhocodes/module-importer": "^1.0.1", + "@humanwhocodes/retry": "^0.4.2", + "@types/estree": "^1.0.6", + "ajv": "^6.14.0", + "cross-spawn": "^7.0.6", + "debug": "^4.3.2", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^9.1.2", + "eslint-visitor-keys": "^5.0.1", + "espree": "^11.2.0", + "esquery": "^1.7.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "11.1.5 || >11.1.6 <12", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "minimatch": "^10.2.5", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://eslint.org/donate" + }, + "peerDependencies": { + "jiti": "*" + }, + "peerDependenciesMeta": { + "jiti": { + "optional": true + } + } + }, + "node_modules/eslint-scope": { + "version": "9.1.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-9.1.2.tgz", + "integrity": "sha512-xS90H51cKw0jltxmvmHy2Iai1LIqrfbw57b79w/J7MfvDfkIkFZ+kj6zC3BjtUwh150HsSSdxXZcsuv72miDFQ==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "@types/esrecurse": "^4.3.1", + "@types/estree": "^1.0.8", + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz", + "integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/ajv": { + "version": "6.15.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.15.0.tgz", + "integrity": "sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/eslint/node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "license": "ISC", + "peer": true, + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/eslint/node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/espree": { + "version": "11.2.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-11.2.0.tgz", + "integrity": "sha512-7p3DrVEIopW1B1avAGLuCSh1jubc01H2JHc8B4qqGblmg5gI9yumBgACjWo4JlIc04ufug4xJ3SQI8HkS/Rgzw==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "acorn": "^8.16.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^5.0.1" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esquery": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz", + "integrity": "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, "node_modules/estree-walker": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", + "license": "MIT" + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "license": "BSD-2-Clause", + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/eventsource": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-3.0.7.tgz", + "integrity": "sha512-CRT1WTyuQoD771GW56XEZFQ/ZoSfWid1alKGDYMmkt2yl8UXrVR4pspqWNEcqKvVIzg6PAltWjxcSSPrboA4iA==", + "dev": true, + "license": "MIT", + "dependencies": { + "eventsource-parser": "^3.0.1" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/eventsource-parser": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/eventsource-parser/-/eventsource-parser-3.1.1.tgz", + "integrity": "sha512-EKN1vKAMcZ8MlYMpaNuxN6R9yakzH6uajHcHVTqWJzvu5pWw9DyhbP35HH8MVBQ+dZjAfDxk+A8NiR9KWaXiyQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/express": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/express/-/express-5.2.1.tgz", + "integrity": "sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==", + "dev": true, + "license": "MIT", + "dependencies": { + "accepts": "^2.0.0", + "body-parser": "^2.2.1", + "content-disposition": "^1.0.0", + "content-type": "^1.0.5", + "cookie": "^0.7.1", + "cookie-signature": "^1.2.1", + "debug": "^4.4.0", + "depd": "^2.0.0", + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "etag": "^1.8.1", + "finalhandler": "^2.1.0", + "fresh": "^2.0.0", + "http-errors": "^2.0.0", + "merge-descriptors": "^2.0.0", + "mime-types": "^3.0.0", + "on-finished": "^2.4.1", + "once": "^1.4.0", + "parseurl": "^1.3.3", + "proxy-addr": "^2.0.7", + "qs": "^6.14.0", + "range-parser": "^1.2.1", + "router": "^2.2.0", + "send": "^1.1.0", + "serve-static": "^2.2.0", + "statuses": "^2.0.1", + "type-is": "^2.0.1", + "vary": "^1.1.2" + }, + "engines": { + "node": ">= 18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/express-rate-limit": { + "version": "8.7.0", + "resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-8.7.0.tgz", + "integrity": "sha512-hOwV7WOxXfjRpAM1DSJWZDXx3GhplwD8IfwuwvogD8i1Qnkgosw/H45s4ZnFAUHDAhPjlY9hLBvJhKmGMyY26g==", + "dev": true, + "license": "MIT", + "dependencies": { + "debug": "^4.4.3", + "ip-address": "^10.2.0" + }, + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://github.com/sponsors/express-rate-limit" + }, + "peerDependencies": { + "express": ">= 4.11" + } + }, + "node_modules/exsolve": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/exsolve/-/exsolve-1.1.1.tgz", + "integrity": "sha512-9U/jZUgjnSGyntRr6y5Muu1MJcwFl6kPu7k8qLF0IMNfLqvw0NZ4nnVDq0RVoZ0RvCyumib4Ez3KYrVfilrw+g==", + "license": "MIT" + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", "dev": true, "license": "MIT" }, + "node_modules/fast-diff": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.3.0.tgz", + "integrity": "sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==", + "dev": true, + "license": "Apache-2.0" + }, + "node_modules/fast-glob": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", + "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.8" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/fast-uri": { + "version": "3.1.8", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.8.tgz", + "integrity": "sha512-GZMtZUTNRpOVIECoXwLNZS5xUGE+mVNbTB8h/7Rwh2TFWcBQiPzTgyZi05BF9UMZKkLJv8XBRJTlU7zg8+ZfMg==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fastify" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fastify" + } + ], + "license": "BSD-3-Clause" + }, + "node_modules/fastq": { + "version": "1.20.3", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.3.tgz", + "integrity": "sha512-XKv5nnLs6nLF71NgiKJLIZFLkPyIEuOselLG7ujZnGrRfQK8HpvY+WqKhAJUAdLomwVHErVS4LfxFlPq0/FTAw==", + "dev": true, + "license": "ISC", + "dependencies": { + "reusify": "^1.0.4" + } + }, "node_modules/fdir": { "version": "6.5.0", "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", - "dev": true, "license": "MIT", "engines": { "node": ">=12.0.0" @@ -1659,27 +3884,154 @@ } } }, - "node_modules/for-each": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz", - "integrity": "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==", + "node_modules/file-entry-cache": { + "version": "11.1.5", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-11.1.5.tgz", + "integrity": "sha512-+PFTHITI08JIGhnNpGNI8T8inUpgZfk3GNEqfT9R2zZV2iFXg3CvqzSl/uEhs7TSGujYRELEANyDvS8Fj7+S7Q==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "flat-cache": "^6.1.23" + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dev": true, "license": "MIT", "dependencies": { - "is-callable": "^1.2.7" + "to-regex-range": "^5.0.1" }, "engines": { - "node": ">= 0.4" + "node": ">=8" + } + }, + "node_modules/finalhandler": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.1.1.tgz", + "integrity": "sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==", + "dev": true, + "license": "MIT", + "dependencies": { + "debug": "^4.4.0", + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "on-finished": "^2.4.1", + "parseurl": "^1.3.3", + "statuses": "^2.0.1" + }, + "engines": { + "node": ">= 18.0.0" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "type": "opencollective", + "url": "https://opencollective.com/express" } }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { + "version": "6.1.23", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-6.1.23.tgz", + "integrity": "sha512-f++BY9pTk+983xK1FLzlLpmM0i0z+jHmx3QESGkURMXujQZz1k5wzwX6hjnQ8goaD0B+sYnDK1yZ6MTyZfUaqA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "cacheable": "^2.5.0", + "flatted": "^3.4.2", + "hookified": "^1.15.0" + } + }, + "node_modules/flatted": { + "version": "3.4.4", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.4.tgz", + "integrity": "sha512-5+ybhBZANEJxaH3X5evAFatUxLfEHSr7n6kYJ+1Qd0mUqr4eu9gIf6GDbWHf8RJijHrjjO8G+la14SlL2SeS1Q==", + "dev": true, + "license": "ISC", + "peer": true + }, + "node_modules/foreground-child": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz", + "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==", + "dev": true, + "license": "ISC", + "dependencies": { + "cross-spawn": "^7.0.6", + "signal-exit": "^4.0.1" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/forwarded": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", + "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fresh": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-2.0.0.tgz", + "integrity": "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/fs-extra": { + "version": "11.4.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.4.0.tgz", + "integrity": "sha512-EQsFzMUJkCKGr1ePqlYADkIUmHW1s3ZXr5Yqy6wbGrfUCphpl2maM/kyOIRA2HpP3AaFQTZXD4ldjek+nccddA==", + "dev": true, + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=14.14" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "devOptional": true, + "license": "ISC" + }, "node_modules/fsevents": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, "hasInstallScript": true, "license": "MIT", "optional": true, @@ -1700,16 +4052,26 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/functions-have-names": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", - "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", + "node_modules/function-timeout": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/function-timeout/-/function-timeout-1.0.2.tgz", + "integrity": "sha512-939eZS4gJ3htTHAldmyyuzlrD58P03fHG49v2JfFXbV6OhvZKRC9j2yAtdHw/zrp2zXHuv05zMIy40F0ge7spA==", "dev": true, "license": "MIT", + "engines": { + "node": ">=18" + }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/fuzzysort": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/fuzzysort/-/fuzzysort-3.1.0.tgz", + "integrity": "sha512-sR9BNCjBg6LNgwvxlBd0sBABvQitkLzoVY9MYYROQVX/FvfJ4Mai9LsGhDgd8qYdds0bY77VzYd5iuB+v5rwQQ==", + "dev": true, + "license": "MIT" + }, "node_modules/gensync": { "version": "1.0.0-beta.2", "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", @@ -1720,6 +4082,19 @@ "node": ">=6.9.0" } }, + "node_modules/get-east-asian-width": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.7.0.tgz", + "integrity": "sha512-XjH1AECxf0giL2V1aU8vKyRR2ppRUb5c0EvT7zuJTokQ74bNo52zOtghqdWIqrhUD79fo3x0WfKZdOqxF6LG1Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/get-intrinsic": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", @@ -1745,6 +4120,19 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/get-own-enumerable-keys": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/get-own-enumerable-keys/-/get-own-enumerable-keys-1.0.0.tgz", + "integrity": "sha512-PKsK2FSrQCyxcGHsGrLDcK0lx+0Ke+6e8KFFozA9/fIQLhQzPaRvJFdcz7+Axg3jUH/Mq+NI4xa5u/UT2tQskA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/get-proto": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", @@ -1759,6 +4147,118 @@ "node": ">= 0.4" } }, + "node_modules/get-tsconfig": { + "version": "4.14.3", + "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.14.3.tgz", + "integrity": "sha512-++QEw4DIY7WGoukz+/+A/8dGYPT9l9yIadnmSgZ8Rjr3YVSVDipQSO9CdnJo9ePqFqUUqh+wk9uIaoiAwsiPkA==", + "dev": true, + "license": "MIT", + "dependencies": { + "resolve-pkg-maps": "^1.0.0" + }, + "funding": { + "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" + } + }, + "node_modules/giget": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/giget/-/giget-3.3.1.tgz", + "integrity": "sha512-r+mvuDjrjMpsdw46Kmeydb8bdHm7wOKw8wNBtTndkjbPjgAp5oUJUxRE76wZFknxIPokfWvep2qSXK37aXE6zg==", + "dev": true, + "license": "MIT", + "bin": { + "giget": "dist/cli.mjs" + } + }, + "node_modules/glob": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-11.1.0.tgz", + "integrity": "sha512-vuNwKSaKiqm7g0THUBu2x7ckSs3XJLXE+2ssL7/MfTGPLLcrJQ/4Uq1CjPTtO5cCIiRxqvN6Twy1qOwhL0Xjcw==", + "deprecated": "Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "foreground-child": "^3.3.1", + "jackspeak": "^4.1.1", + "minimatch": "^10.1.1", + "minipass": "^7.1.2", + "package-json-from-dist": "^1.0.0", + "path-scurry": "^2.0.0" + }, + "bin": { + "glob": "dist/esm/bin.mjs" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/global-agent": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/global-agent/-/global-agent-3.0.0.tgz", + "integrity": "sha512-PT6XReJ+D07JvGoxQMkT6qji/jVNfX/h364XHZOWeRzy64sSFr+xJ5OX7LI3b4MPQzdL4H8Y8M0xzPpsVMwA8Q==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "boolean": "^3.0.1", + "es6-error": "^4.1.1", + "matcher": "^3.0.0", + "roarr": "^2.15.3", + "semver": "^7.3.2", + "serialize-error": "^7.0.1" + }, + "engines": { + "node": ">=10.0" + } + }, + "node_modules/globalthis": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.4.tgz", + "integrity": "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "define-properties": "^1.2.1", + "gopd": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gonzales-pe": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/gonzales-pe/-/gonzales-pe-4.3.0.tgz", + "integrity": "sha512-otgSPpUmdWJ43VXyiNgEYE4luzHCL2pz4wQ0OnDluC6Eg4Ko3Vexy/SrSynglw/eR+OhkzmqFCZa/OFa/RgAOQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "minimist": "^1.2.5" + }, + "bin": { + "gonzales": "bin/gonzales.js" + }, + "engines": { + "node": ">=0.6.0" + } + }, "node_modules/gopd": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", @@ -1772,28 +4272,11 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/has-bigints": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.1.0.tgz", - "integrity": "sha512-R3pbpkcIqv2Pm3dUwgjclDRVmWpTJW2DcMzcIhEXEx1oh/CEMObMm3KLmRJOdvhM7o4uQBnwr8pzRK2sJWIqfg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "license": "ISC" }, "node_modules/has-property-descriptors": { "version": "1.0.2", @@ -1821,20 +4304,18 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/has-tostringtag": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", - "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "node_modules/hashery": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/hashery/-/hashery-1.5.1.tgz", + "integrity": "sha512-iZyKG96/JwPz1N55vj2Ie2vXbhu440zfUfJvSwEqEbeLluk7NnapfGqa7LH0mOsnDxTF85Mx8/dyR6HfqcbmbQ==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { - "has-symbols": "^1.0.3" + "hookified": "^1.15.0" }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=20" } }, "node_modules/hasown": { @@ -1860,289 +4341,370 @@ "he": "bin/he" } }, - "node_modules/html-encoding-sniffer": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-6.0.0.tgz", - "integrity": "sha512-CV9TW3Y3f8/wT0BRFc1/KAVQ3TUHiXmaAb6VW9vtiMFf7SLoMd1PdAc4W3KFOFETBJUb90KatHqlsZMWV+R9Gg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@exodus/bytes": "^1.6.0" - }, - "engines": { - "node": "^20.19.0 || ^22.12.0 || >=24.0.0" - } - }, - "node_modules/internal-slot": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.1.0.tgz", - "integrity": "sha512-4gd7VpWNQNB4UKKCFFVcp1AVv+FMOgs9NKzjHKusc8jTMhd5eL1NqQqOpE0KzMds804/yHlglp3uxgluOqAPLw==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "hasown": "^2.0.2", - "side-channel": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/is-arguments": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.2.0.tgz", - "integrity": "sha512-7bVbi0huj/wrIAOzb8U1aszg9kdi3KN/CyU19CTI7tAoZYEZoL9yCDXpbXN+uPsuWnP02cyug1gleqq+TU+YCA==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "has-tostringtag": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-array-buffer": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.5.tgz", - "integrity": "sha512-DDfANUiiG2wC1qawP66qlTugJeL5HyzMpfr8lLK+jMQirGzNod0B12cFB/9q838Ru27sBwfw78/rdoU7RERz6A==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "call-bound": "^1.0.3", - "get-intrinsic": "^1.2.6" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-bigint": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.1.0.tgz", - "integrity": "sha512-n4ZT37wG78iz03xPRKJrHTdZbe3IicyucEtdRsV5yglwc3GyUfbAfpSeD0FJ41NbUNSt5wbhqfp1fS+BgnvDFQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "has-bigints": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-boolean-object": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.2.2.tgz", - "integrity": "sha512-wa56o2/ElJMYqjCjGkXri7it5FbebW5usLw/nPmCMs5DeZ7eziSYZhSmPRn0txqeW4LnAmQQU7FgqLpsEFKM4A==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "has-tostringtag": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-callable": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", - "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", + "node_modules/hono": { + "version": "4.13.8", + "resolved": "https://registry.npmjs.org/hono/-/hono-4.13.8.tgz", + "integrity": "sha512-/Gng7NfoykZl2pjukW5Z6+8Yxm3BPRf86GTbQnt0SbySkvax4fyL4H3HhY1cCpBGmiW9XDRFzRV+CXK2W8QudQ==", "dev": true, "license": "MIT", "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=16.9.0" } }, - "node_modules/is-date-object": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.1.0.tgz", - "integrity": "sha512-PwwhEakHVKTdRNVOw+/Gyh0+MzlCl4R6qKvkhuvLtPMggI1WAHt9sOwZxQLSGpUaDnrdyDsomoRgNnCfKNSXXg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "has-tostringtag": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-map": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.3.tgz", - "integrity": "sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-number-object": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.1.1.tgz", - "integrity": "sha512-lZhclumE1G6VYD8VHe35wFaIif+CTy5SJIi5+3y4psDgWu4wPDoBhF8NxUOinEc7pHgiTsT6MaBb92rKhhD+Xw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "has-tostringtag": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-potential-custom-element-name": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", - "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==", - "dev": true, + "node_modules/hookable": { + "version": "5.5.3", + "resolved": "https://registry.npmjs.org/hookable/-/hookable-5.5.3.tgz", + "integrity": "sha512-Yc+BQe8SvoXH1643Qez1zqLRmbA5rCL+sSmk6TVos0LWVfNIB7PGncdlId77WzLGSIB5KaWgTaNTs2lNVEI6VQ==", "license": "MIT" }, - "node_modules/is-regex": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.2.1.tgz", - "integrity": "sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==", + "node_modules/hookified": { + "version": "1.15.1", + "resolved": "https://registry.npmjs.org/hookified/-/hookified-1.15.1.tgz", + "integrity": "sha512-MvG/clsADq1GPM2KGo2nyfaWVyn9naPiXrqIe4jYjXNZQt238kWyOGrsyc/DmRAQ+Re6yeo6yX/yoNCG5KAEVg==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/http-errors": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz", + "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==", "dev": true, "license": "MIT", "dependencies": { - "call-bound": "^1.0.2", - "gopd": "^1.2.0", - "has-tostringtag": "^1.0.2", - "hasown": "^2.0.2" + "depd": "~2.0.0", + "inherits": "~2.0.4", + "setprototypeof": "~1.2.0", + "statuses": "~2.0.2", + "toidentifier": "~1.0.1" }, "engines": { - "node": ">= 0.4" + "node": ">= 0.8" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "type": "opencollective", + "url": "https://opencollective.com/express" } }, - "node_modules/is-set": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.3.tgz", - "integrity": "sha512-iPAjerrse27/ygGLxw+EBR9agv9Y6uLeYVJMu+QNCoouJ1/1ri0mGrcWpfCqFZuzzx3WjtwxG098X+n4OuRkPg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-shared-array-buffer": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.4.tgz", - "integrity": "sha512-ISWac8drv4ZGfwKl5slpHG9OwPNty4jOWPRIhBpxOoD+hqITiwuipOQ2bNthAzwA3B4fIjO4Nln74N0S9byq8A==", + "node_modules/iconv-lite": { + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.3.tgz", + "integrity": "sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==", "dev": true, "license": "MIT", "dependencies": { - "call-bound": "^1.0.3" + "safer-buffer": ">= 2.1.2 < 3.0.0" }, "engines": { - "node": ">= 0.4" + "node": ">=0.10.0" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "type": "opencollective", + "url": "https://opencollective.com/express" } }, - "node_modules/is-string": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.1.1.tgz", - "integrity": "sha512-BtEeSsoaQjlSPBemMQIrY1MY0uM6vnS1g5fmufYOtnxLGUZM2178PKbhsk7Ffv58IX+ZtcvoGwccYsh0PglkAA==", + "node_modules/identifier-regex": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/identifier-regex/-/identifier-regex-1.1.0.tgz", + "integrity": "sha512-SLX4H/vtcYlYnL7XqnuJKHU7Z8517TgsW9nmQiGOgMCjQ8V/deLYu6bEmbGoXe7WMMhc9+EUGyFFneHja8KabA==", "dev": true, "license": "MIT", "dependencies": { - "call-bound": "^1.0.3", - "has-tostringtag": "^1.0.2" + "reserved-identifiers": "^1.0.0" }, "engines": { - "node": ">= 0.4" + "node": ">=18" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/is-symbol": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.1.1.tgz", - "integrity": "sha512-9gGx6GTtCQM73BgmHQXfDmLtfjjTUDSyoxTCbp5WtoixAhfgsDirWIcVQ/IHpvI5Vgd5i/J5F7B9cN/WlVbC/w==", + "node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", "dev": true, "license": "MIT", + "peer": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", + "devOptional": true, + "license": "ISC", "dependencies": { - "call-bound": "^1.0.2", - "has-symbols": "^1.1.0", - "safe-regex-test": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "once": "^1.3.0", + "wrappy": "1" } }, - "node_modules/is-weakmap": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.2.tgz", - "integrity": "sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-weakset": { + "node_modules/inherits": { "version": "2.0.4", - "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.4.tgz", - "integrity": "sha512-mfcwb6IzQyOKTs84CQMrOwW4gQcaTOAWJ0zzJCl2WSPDrWk/OzDaImWFH3djXhb24g4eudZfLRozAvPGw4d9hQ==", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "devOptional": true, + "license": "ISC" + }, + "node_modules/ip-address": { + "version": "10.7.2", + "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.7.2.tgz", + "integrity": "sha512-7H/2gFSIitxc0hG3nOI1glS8QLo/EHBFFLk8vEUjXY/xu0AdL8jZ9U1IzO2PUm0d2D/ofQcAifb0g6OBkt8U7w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 12" + } + }, + "node_modules/ipaddr.js": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/is-docker": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-3.0.0.tgz", + "integrity": "sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==", + "dev": true, + "license": "MIT", + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", "dev": true, "license": "MIT", "dependencies": { - "call-bound": "^1.0.3", - "get-intrinsic": "^1.2.6" + "is-extglob": "^2.1.1" }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=0.10.0" } }, - "node_modules/isarray": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", - "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", + "node_modules/is-identifier": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-identifier/-/is-identifier-1.1.0.tgz", + "integrity": "sha512-NhOds0mDx9lJu+1lBRO0xbwFo5nobA7GCk/0e5xjr6+6XugX985+0OyGX35BNrTkPAsdLcIKg02HUQJOK8D8kw==", + "dev": true, + "license": "MIT", + "dependencies": { + "identifier-regex": "^1.1.0", + "super-regex": "^1.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-in-ssh": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-in-ssh/-/is-in-ssh-1.0.0.tgz", + "integrity": "sha512-jYa6Q9rH90kR1vKB6NM7qqd1mge3Fx4Dhw5TVlK1MUBqhEOuCagrEHMevNuCcbECmXZ0ThXkRm+Ymr51HwEPAw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-inside-container": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-inside-container/-/is-inside-container-1.0.0.tgz", + "integrity": "sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-docker": "^3.0.0" + }, + "bin": { + "is-inside-container": "cli.js" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-interactive": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-2.0.0.tgz", + "integrity": "sha512-qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-obj": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-3.0.0.tgz", + "integrity": "sha512-IlsXEHOjtKhpN8r/tRFj2nDyTmHvcfNeu/nrRIcXE17ROeatXchkojffa1SpdqW4cr/Fj6QkEf/Gn4zf6KKvEQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-promise": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz", + "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==", "dev": true, "license": "MIT" }, + "node_modules/is-regexp": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/is-regexp/-/is-regexp-3.1.0.tgz", + "integrity": "sha512-rbku49cWloU5bSMI+zaRaXdQHXnthP6DZ/vLnfdSKyL4zUzuWnomtOEiZZOd+ioQ+avFo/qau3KPTc7Fjy1uPA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-unicode-supported": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-2.1.0.tgz", + "integrity": "sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-wsl": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-3.1.1.tgz", + "integrity": "sha512-e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-inside-container": "^1.0.0" + }, + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true, + "license": "ISC" + }, + "node_modules/jackspeak": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-4.2.3.tgz", + "integrity": "sha512-ykkVRwrYvFm1nb2AJfKKYPr0emF6IiXDYUaFx4Zn9ZuIH7MrzEZ3sD5RlqGXNRpHtvUHJyOnCEFxOlNDtGo7wg==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/cliui": "^9.0.0" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/jiti": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.7.0.tgz", + "integrity": "sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==", + "license": "MIT", + "bin": { + "jiti": "lib/jiti-cli.mjs" + } + }, + "node_modules/jose": { + "version": "6.2.12", + "resolved": "https://registry.npmjs.org/jose/-/jose-6.2.12.tgz", + "integrity": "sha512-9NiFmJEex0sy2Dk58j2UGBSHgUs2ypF9eZSu4L6vjOX3Dp96Sw1F3uL+H+D1sx02jZZdzUT0HgvCy59CuvXcWw==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/panva" + } + }, "node_modules/js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", @@ -2150,57 +4712,6 @@ "dev": true, "license": "MIT" }, - "node_modules/jsdom": { - "version": "30.0.1", - "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-30.0.1.tgz", - "integrity": "sha512-52v7mUVUfNQVYYqE1lcdaymWL0njO7lTLUog6ZvW2U5KsbiLk/GnZlVJ+qx0xfNJZ6Gn+KSpPNE52vurbxZwrA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@asamuzakjp/css-color": "^6.0.5", - "@asamuzakjp/dom-selector": "^8.3.0", - "@bramus/specificity": "^2.4.2", - "@csstools/css-syntax-patches-for-csstree": "^1.1.7", - "@exodus/bytes": "^1.15.1", - "css-tree": "^3.2.1", - "data-urls": "^7.0.0", - "decimal.js": "^10.6.0", - "html-encoding-sniffer": "^6.0.0", - "is-potential-custom-element-name": "^1.0.1", - "lru-cache": "^11.5.2", - "parse5": "^8.0.1", - "saxes": "^6.0.0", - "symbol-tree": "^3.2.4", - "tough-cookie": "^6.0.2", - "undici": "^8.9.0", - "w3c-xmlserializer": "^5.0.0", - "webidl-conversions": "^8.0.1", - "whatwg-mimetype": "^5.0.0", - "whatwg-url": "^17.1.0", - "xml-name-validator": "^5.0.0" - }, - "engines": { - "node": "^22.22.2 || ^24.15.0 || >=26.0.0" - }, - "peerDependencies": { - "canvas": "^3.2.3" - }, - "peerDependenciesMeta": { - "canvas": { - "optional": true - } - } - }, - "node_modules/jsdom/node_modules/lru-cache": { - "version": "11.5.2", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.2.tgz", - "integrity": "sha512-4pfM1Ff0x50o0tQwb5ucw/RzNyD0/YJME6IVcStalZuMWxdt3sR3huStTtxz4PUmvZfRguvDejasvQ2kifR11g==", - "dev": true, - "license": "BlueOak-1.0.0", - "engines": { - "node": "20 || >=22" - } - }, "node_modules/jsesc": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", @@ -2214,6 +4725,35 @@ "node": ">=6" } }, + "node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-schema-typed": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/json-schema-typed/-/json-schema-typed-8.0.2.tgz", + "integrity": "sha512-fQhoXdcvc3V28x7C7BMs4P5+kNlgUURe2jmUT1T//oBRMDrqy1QPelJimwZGo7Hg9VPV3EQV5Bnq4hbFy2vetA==", + "dev": true, + "license": "BSD-2-Clause" + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/json-stringify-safe": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==", + "dev": true, + "license": "ISC" + }, "node_modules/json5": { "version": "2.2.3", "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", @@ -2227,18 +4767,59 @@ "node": ">=6" } }, - "node_modules/kolorist": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/kolorist/-/kolorist-1.8.0.tgz", - "integrity": "sha512-Y+60/zizpJ3HRH8DCss+q95yr6145JXZo46OTpFvDZWLfRCE4qChOyk1b26nMaNpfHHgxagk9dXT5OP0Tfe+dQ==", + "node_modules/jsonfile": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz", + "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==", "dev": true, - "license": "MIT" + "license": "MIT", + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/keyv": { + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-5.6.0.tgz", + "integrity": "sha512-CYDD3SOtsHtyXeEORYRx2qBtpDJFjRTGXUtmNEMGyzYOKj1TE3tycdlho7kA1Ufx9OYWZzg52QFBGALTirzDSw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@keyv/serialize": "^1.1.1" + } + }, + "node_modules/kleur": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } }, "node_modules/lightningcss": { "version": "1.33.0", "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.33.0.tgz", "integrity": "sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==", - "dev": true, "license": "MPL-2.0", "dependencies": { "detect-libc": "^2.0.3" @@ -2271,7 +4852,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MPL-2.0", "optional": true, "os": [ @@ -2292,7 +4872,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MPL-2.0", "optional": true, "os": [ @@ -2313,7 +4892,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MPL-2.0", "optional": true, "os": [ @@ -2334,7 +4912,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MPL-2.0", "optional": true, "os": [ @@ -2355,7 +4932,6 @@ "cpu": [ "arm" ], - "dev": true, "license": "MPL-2.0", "optional": true, "os": [ @@ -2376,7 +4952,9 @@ "cpu": [ "arm64" ], - "dev": true, + "libc": [ + "glibc" + ], "license": "MPL-2.0", "optional": true, "os": [ @@ -2397,7 +4975,9 @@ "cpu": [ "arm64" ], - "dev": true, + "libc": [ + "musl" + ], "license": "MPL-2.0", "optional": true, "os": [ @@ -2418,7 +4998,9 @@ "cpu": [ "x64" ], - "dev": true, + "libc": [ + "glibc" + ], "license": "MPL-2.0", "optional": true, "os": [ @@ -2439,7 +5021,9 @@ "cpu": [ "x64" ], - "dev": true, + "libc": [ + "musl" + ], "license": "MPL-2.0", "optional": true, "os": [ @@ -2460,7 +5044,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MPL-2.0", "optional": true, "os": [ @@ -2481,7 +5064,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MPL-2.0", "optional": true, "os": [ @@ -2495,6 +5077,78 @@ "url": "https://opencollective.com/parcel" } }, + "node_modules/local-pkg": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/local-pkg/-/local-pkg-1.2.1.tgz", + "integrity": "sha512-++gUqRDEvcnN6Zhqrr+y/CkVEHhlrR96vZn3nZZPYzMcBUyBtTKzB9NadClFIsIVSsu+3i9tfk/erqy9kAmt7Q==", + "license": "MIT", + "dependencies": { + "mlly": "^1.7.4", + "pkg-types": "^2.3.0", + "quansync": "^0.2.11" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lodash-es": { + "version": "4.18.1", + "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.18.1.tgz", + "integrity": "sha512-J8xewKD/Gk22OZbhpOVSwcs60zhd95ESDwezOFuA3/099925PdHJ7OFHNTGtajL3AlZkykD32HykiMo+BIBI8A==", + "dev": true, + "license": "MIT" + }, + "node_modules/lodash.sortedlastindex": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/lodash.sortedlastindex/-/lodash.sortedlastindex-4.1.0.tgz", + "integrity": "sha512-s8xEQdsp2Tu5zUqVdFSe9C0kR8YlnAJYLqMdkh+pIRBRxF6/apWseLdHl3/+jv2I61dhPwtI/Ff+EqvCpc+N8w==", + "dev": true, + "license": "MIT" + }, + "node_modules/lodash.truncate": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz", + "integrity": "sha512-jttmRe7bRse52OsWIMDLaXxWqRAmtIUccAQ3garviCqJjafXOfNMO0yMfNpdD6zbGaTU0P5Nz7e7gAT6cKmJRw==", + "dev": true, + "license": "MIT" + }, + "node_modules/log-symbols": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-7.0.1.tgz", + "integrity": "sha512-ja1E3yCr9i/0hmBVaM0bfwDjnGy8I/s6PP4DFp+yP+a+mrHO4Rm7DtmnqROTUkHIkqffC84YY7AeqX6oFk0WFg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-unicode-supported": "^2.0.0", + "yoctocolors": "^2.1.1" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/lru-cache": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", @@ -2505,26 +5159,74 @@ "yallist": "^3.0.2" } }, - "node_modules/lz-string": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/lz-string/-/lz-string-1.5.0.tgz", - "integrity": "sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==", - "dev": true, - "license": "MIT", - "bin": { - "lz-string": "bin/bin.js" - } - }, "node_modules/magic-string": { "version": "0.30.21", "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==", - "dev": true, "license": "MIT", "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.5" } }, + "node_modules/magic-string-ast": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/magic-string-ast/-/magic-string-ast-1.0.3.tgz", + "integrity": "sha512-CvkkH1i81zl7mmb94DsRiFeG9V2fR2JeuK8yDgS8oiZSFa++wWLEgZ5ufEOyLHbvSbD1gTRKv9NdX69Rnvr9JA==", + "license": "MIT", + "dependencies": { + "magic-string": "^0.30.19" + }, + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "url": "https://github.com/sponsors/sxzz" + } + }, + "node_modules/make-asynchronous": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/make-asynchronous/-/make-asynchronous-1.1.0.tgz", + "integrity": "sha512-ayF7iT+44LXdxJLTrTd3TLQpFDDvPCBxXxbv+pMUSuHA5Q8zyAfwkRP6aHHwNVFBUFWtxAHqwNJxF8vMZLAbVg==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-event": "^6.0.0", + "type-fest": "^4.6.0", + "web-worker": "^1.5.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/make-asynchronous/node_modules/type-fest": { + "version": "4.41.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.41.0.tgz", + "integrity": "sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA==", + "dev": true, + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/matcher": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/matcher/-/matcher-3.0.0.tgz", + "integrity": "sha512-OkeDaAZ/bQCxeFAozM55PKcKU0yJMPGifLwV4Qgjitu+5MoAfSQN4lsLJeXZ1b8w0x+/Emda6MZgXS1jvsapng==", + "dev": true, + "license": "MIT", + "dependencies": { + "escape-string-regexp": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/math-intrinsics": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", @@ -2535,25 +5237,192 @@ "node": ">= 0.4" } }, - "node_modules/mdn-data": { - "version": "2.27.1", - "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.27.1.tgz", - "integrity": "sha512-9Yubnt3e8A0OKwxYSXyhLymGW4sCufcLG6VdiDdUGVkPhpqLxlvP5vl1983gQjJl3tqbrM731mjaZaP68AgosQ==", + "node_modules/media-typer": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.1.tgz", + "integrity": "sha512-yz3xRaG20c6/BOzvYoDaGtPmGscs7YivItZEEqe6GbwNfHuxu9YNmvnEkMzKldAGY4/80pRcQRZSEnhquk9XuQ==", "dev": true, - "license": "CC0-1.0" + "license": "MIT", + "engines": { + "node": ">= 0.8" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/merge-descriptors": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-2.0.0.tgz", + "integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "dev": true, + "license": "MIT", + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/micromatch/node_modules/picomatch": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz", + "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/mime-db": { + "version": "1.54.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz", + "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz", + "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==", + "dev": true, + "license": "MIT", + "dependencies": { + "mime-db": "^1.54.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/mimic-function": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/mimic-function/-/mimic-function-5.0.1.tgz", + "integrity": "sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/minimatch": { + "version": "10.2.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz", + "integrity": "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "brace-expansion": "^5.0.8" + }, + "engines": { + "node": "18 || 20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/minipass": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz", + "integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==", + "dev": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/mlly": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.8.2.tgz", + "integrity": "sha512-d+ObxMQFmbt10sretNDytwt85VrbkhhUA/JBGm1MPaWJ65Cl4wOgLaB1NYvJSZ0Ef03MMEU/0xpPMXUIQ29UfA==", + "license": "MIT", + "dependencies": { + "acorn": "^8.16.0", + "pathe": "^2.0.3", + "pkg-types": "^1.3.1", + "ufo": "^1.6.3" + } + }, + "node_modules/mlly/node_modules/confbox": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.1.8.tgz", + "integrity": "sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==", + "license": "MIT" + }, + "node_modules/mlly/node_modules/pkg-types": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.3.1.tgz", + "integrity": "sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==", + "license": "MIT", + "dependencies": { + "confbox": "^0.1.8", + "mlly": "^1.7.4", + "pathe": "^2.0.1" + } }, "node_modules/ms": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true, + "devOptional": true, + "license": "MIT" + }, + "node_modules/muggle-string": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/muggle-string/-/muggle-string-0.4.1.tgz", + "integrity": "sha512-VNTrAak/KhO2i8dqqnqnAHOa3cYBwXEZe9h+D5h/1ZqFSTEFHdM65lR7RoIqq3tBBYavsOXV84NoHXZ0AkPyqQ==", "license": "MIT" }, "node_modules/nanoid": { - "version": "3.3.17", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.17.tgz", - "integrity": "sha512-xQLf0A3HOMlgHq0n247/LRuAOYmB7dXJ/DvAxGvsSBij45XtBSmQycu+F8ODbHwns/XyFZagyL1+J0Offw1E0g==", - "dev": true, + "version": "3.3.19", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.19.tgz", + "integrity": "sha512-Y2tUNy4ouw6tq5oDSKeQYGOyhkUBhNOcGV/02KC+6kd9eDGqdZd++mjMiIDilrBYvjEnCYvVtsuHCuP+okSfug==", "funding": [ { "type": "github", @@ -2568,10 +5437,66 @@ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" } }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/negotiator": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.1.0.tgz", + "integrity": "sha512-NMPBRMJgiQHjbd8phG3Vebdx4kZ1H121rbl5IkMqeOsahptB9BKo/d7oJ3zTXqTgagn2bWlNSXkh0QUGM31RYg==", + "dev": true, + "license": "MIT", + "dependencies": { + "content-type": "^2.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/negotiator/node_modules/content-type": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-2.1.0.tgz", + "integrity": "sha512-mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/node-fetch-native": { + "version": "1.6.7", + "resolved": "https://registry.npmjs.org/node-fetch-native/-/node-fetch-native-1.6.7.tgz", + "integrity": "sha512-g9yhqoedzIUm0nTnTqAQvueMPVOuIY16bqgAJJC8XOOubYFNwz6IER9qs0Gq2Xd0+CecCKFjtdDTMA4u4xG06Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/node-forge": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.4.0.tgz", + "integrity": "sha512-LarFH0+6VfriEhqMMcLX2F7SwSXeWwnEAJEsYm5QKWchiVYVvJyV9v7UDvUv+w5HO23ZpQTXDv/GxdDdMyOuoQ==", + "dev": true, + "license": "(BSD-3-Clause OR GPL-2.0)", + "engines": { + "node": ">= 6.13.0" + } + }, "node_modules/node-html-parser": { - "version": "6.1.13", - "resolved": "https://registry.npmjs.org/node-html-parser/-/node-html-parser-6.1.13.tgz", - "integrity": "sha512-qIsTMOY4C/dAa5Q5vsobRpOOvPfC4pB61UVW2uSwZNUp0QU/jCekTal1vMmbO0DgdHeLUJpv/ARmDqErVxA3Sg==", + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/node-html-parser/-/node-html-parser-7.1.0.tgz", + "integrity": "sha512-iJo8b2uYGT40Y8BTyy5ufL6IVbN8rbm/1QK2xffXU/1a/v3AAa0d1YAoqBNYqaS4R/HajkWIpIfdE6KcyFh1AQ==", "dev": true, "license": "MIT", "dependencies": { @@ -2580,15 +5505,21 @@ } }, "node_modules/node-releases": { - "version": "2.0.54", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.54.tgz", - "integrity": "sha512-YHs7BmmcsdAI5Ozuf8JZo6PT0mv2GIWC9vMfvUC3dp65M8hn7Ux8CPL+2oBI7juNuj9d0ndhTcznq2ODBps9cQ==", + "version": "2.0.56", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.56.tgz", + "integrity": "sha512-x0InOIyzgdk+eyaWaRJFH5snEtiImgBgblZ2CyPrLmqqcuMQkEvcDPHbzqbD8eDsSeJbVOjn+crzyzHaM4D+/A==", "dev": true, "license": "MIT", "engines": { "node": ">=18" } }, + "node_modules/nostics": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/nostics/-/nostics-1.2.0.tgz", + "integrity": "sha512-FGqEfhQjrvo1lL8KFifdTQiNwwQHJxC1jtYE1Rc54qF/jxONUNL+kC9gS1krX8Q65PgrQ5fCqH/I4NhWBvdSqg==", + "license": "MIT" + }, "node_modules/nth-check": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", @@ -2602,6 +5533,34 @@ "url": "https://github.com/fb55/nth-check?sponsor=1" } }, + "node_modules/nypm": { + "version": "0.6.10", + "resolved": "https://registry.npmjs.org/nypm/-/nypm-0.6.10.tgz", + "integrity": "sha512-W72Hrj1petq+b3Hk2aAC+9zswetlIFTnDW4s5djseZh2nYqBbyQLOtj472HwcbcWykPBUW1WpWpjOd4nK6gMRw==", + "dev": true, + "license": "MIT", + "dependencies": { + "citty": "^0.2.2", + "pathe": "^2.0.3", + "tinyexec": "^1.3.1" + }, + "bin": { + "nypm": "dist/cli.mjs" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/object-inspect": { "version": "1.13.4", "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", @@ -2615,23 +5574,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/object-is": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/object-is/-/object-is-1.1.6.tgz", - "integrity": "sha512-F8cZ+KfGlSGi09lJT7/Nd6KJZ9ygtvYC0/UYYLI9nmQKLMnydpB9yvbv9K1uSkEu7FU9vYPmVwLg328tX+ot3Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/object-keys": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", @@ -2642,65 +5584,304 @@ "node": ">= 0.4" } }, - "node_modules/object.assign": { - "version": "4.1.7", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.7.tgz", - "integrity": "sha512-nK28WOo+QIjBkDduTINE4JkF/UJJKyf2EJxvJKfblDpyg0Q+pkOHNTL0Qwy6NP6FhE/EnzV73BxxqcJaXY9anw==", + "node_modules/ofetch": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/ofetch/-/ofetch-1.5.1.tgz", + "integrity": "sha512-2W4oUZlVaqAPAil6FUg/difl6YhqhUR7x2eZY4bQCko22UXg3hptq9KLQdqFClV+Wu85UX7hNtdGTngi/1BxcA==", "dev": true, "license": "MIT", "dependencies": { - "call-bind": "^1.0.8", - "call-bound": "^1.0.3", - "define-properties": "^1.2.1", - "es-object-atoms": "^1.0.0", - "has-symbols": "^1.1.0", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "destr": "^2.0.5", + "node-fetch-native": "^1.6.7", + "ufo": "^1.6.1" } }, - "node_modules/parse5": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-8.0.1.tgz", - "integrity": "sha512-z1e/HMG90obSGeidlli3hj7cbocou0/wa5HacvI3ASx34PecNjNQeaHNo5WIZpWofN9kgkqV1q5YvXe3F0FoPw==", + "node_modules/ohash": { + "version": "2.0.12", + "resolved": "https://registry.npmjs.org/ohash/-/ohash-2.0.12.tgz", + "integrity": "sha512-65S/5gk9YSsaRjcyf7Nfa6h/d3E8/1gslpXfI4W7Dxn/oap8IKRuNT5VXkLQ1YFKIEg4apRY4Pj6aiwFzrDdmw==", + "license": "MIT" + }, + "node_modules/on-finished": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", + "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", "dev": true, "license": "MIT", "dependencies": { - "entities": "^8.0.0" + "ee-first": "1.1.1" }, - "funding": { - "url": "https://github.com/inikulin/parse5?sponsor=1" + "engines": { + "node": ">= 0.8" } }, - "node_modules/parse5/node_modules/entities": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-8.0.0.tgz", - "integrity": "sha512-zwfzJecQ/Uej6tusMqwAqU/6KL2XaB2VZ2Jg54Je6ahNBGNH6Ek6g3jjNCF0fG9EWQKGZNddNjU5F1ZQn/sBnA==", + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "devOptional": true, + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/onetime": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-7.0.0.tgz", + "integrity": "sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==", "dev": true, - "license": "BSD-2-Clause", + "license": "MIT", + "dependencies": { + "mimic-function": "^5.0.0" + }, "engines": { - "node": ">=20.19.0" + "node": ">=18" }, "funding": { - "url": "https://github.com/fb55/entities?sponsor=1" + "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/open": { + "version": "11.0.4", + "resolved": "https://registry.npmjs.org/open/-/open-11.0.4.tgz", + "integrity": "sha512-++Zlftm0kVLPmzC06t6epuWmcRMDbI4z5P3NNX979WA/k23+NtSOynEGzsVfZwguKw2mi5umVgnBlJQMwRz4Pg==", + "dev": true, + "license": "MIT", + "dependencies": { + "default-browser": "^5.5.1", + "define-lazy-prop": "^3.0.0", + "is-in-ssh": "^1.0.0", + "is-inside-container": "^1.0.0", + "powershell-utils": "^0.2.1", + "wsl-utils": "^1.0.0" + }, + "engines": { + "node": ">=20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/optionator": { + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/ora": { + "version": "9.4.1", + "resolved": "https://registry.npmjs.org/ora/-/ora-9.4.1.tgz", + "integrity": "sha512-6VlU9MLXbjVQD04AZCMX28hVtA5bUoadvUqO76MUCVA0ilwJbMiHsITRPfyVm6p/BC0Av/BXMujx39WCe1LEqw==", + "dev": true, + "license": "MIT", + "dependencies": { + "chalk": "^5.6.2", + "cli-cursor": "^5.0.0", + "cli-spinners": "^3.2.0", + "is-interactive": "^2.0.0", + "is-unicode-supported": "^2.1.0", + "log-symbols": "^7.0.1", + "stdin-discarder": "^0.3.2", + "string-width": "^8.1.0" + }, + "engines": { + "node": ">=20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-event": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/p-event/-/p-event-6.0.1.tgz", + "integrity": "sha512-Q6Bekk5wpzW5qIyUP4gdMEujObYstZl6DMMOSenwBvV0BlE5LkDwkjs5yHbZmdCEq2o4RJx4tE1vwxFVf2FG1w==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-timeout": "^6.1.2" + }, + "engines": { + "node": ">=16.17" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-timeout": { + "version": "6.1.4", + "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-6.1.4.tgz", + "integrity": "sha512-MyIV3ZA/PmyBN/ud8vV9XzwTrNtR4jFrObymZYnZqMmW0zA8Z17vnT0rBgFE/TlohB+YCHqXMgZzb3Csp49vqg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/package-json-from-dist": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", + "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", + "dev": true, + "license": "BlueOak-1.0.0" + }, + "node_modules/parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/path-browserify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz", + "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==", + "dev": true, + "license": "MIT" + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "devOptional": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-scurry": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.2.tgz", + "integrity": "sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "lru-cache": "^11.0.0", + "minipass": "^7.1.2" + }, + "engines": { + "node": "18 || 20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/path-scurry/node_modules/lru-cache": { + "version": "11.5.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.3.tgz", + "integrity": "sha512-U4N8FgzmWxc8k1VH8Kr6lQg18U7Fjvby6wXHVRX/ZZ7IwWbRMgrRbP0Wrb5q5NVinryp4SQampHKdvtecItxUg==", + "dev": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/path-to-regexp": { + "version": "8.4.2", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.4.2.tgz", + "integrity": "sha512-qRcuIdP69NPm4qbACK+aDogI5CBDMi1jKe0ry5rSQJz8JVLsC7jV8XpiJjGRLLol3N+R5ihGYcrPLTno6pAdBA==", + "dev": true, + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/pathe": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", + "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", + "license": "MIT" + }, + "node_modules/perfect-debounce": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/perfect-debounce/-/perfect-debounce-2.1.0.tgz", + "integrity": "sha512-LjgdTytVFXeUgtHZr9WYViYSM/g8MkcTPYDlPa3cDqMirHjKiSZPYd6DoL7pK8AJQr+uWkQvCjHNdiMqsrJs+g==", + "license": "MIT" + }, "node_modules/picocolors": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", - "dev": true, "license": "ISC" }, "node_modules/picomatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.5.tgz", - "integrity": "sha512-RvwwcruNjI1ncT5xRakeyS9Lf8lcItv34KD+aif+VH9kduAyfYBipGh12274xtenIPZ119/R9BdTBa8gAwSh0A==", - "dev": true, + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz", + "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", "license": "MIT", "engines": { "node": ">=12" @@ -2709,21 +5890,37 @@ "url": "https://github.com/sponsors/jonschlinkert" } }, - "node_modules/possible-typed-array-names": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz", - "integrity": "sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==", + "node_modules/pkce-challenge": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/pkce-challenge/-/pkce-challenge-5.0.1.tgz", + "integrity": "sha512-wQ0b/W4Fr01qtpHlqSqspcj3EhBvimsdh0KlHhH8HRZnMsEa0ea2fTULOXOS9ccQr3om+GcGRk4e+isrZWV8qQ==", "dev": true, "license": "MIT", "engines": { - "node": ">= 0.4" + "node": ">=16.20.0" } }, + "node_modules/pkg-types": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-2.3.3.tgz", + "integrity": "sha512-j/lCFdcppV0JxWpCEITdbDltBxPP6cHT+yNJ6Go2OgoSA9518X847X9z0p6LtA4Nc16+eQzCZjRrWanTGvHJ5w==", + "license": "MIT", + "dependencies": { + "confbox": "^0.3.1", + "exsolve": "^1.1.1", + "pathe": "^2.0.3" + } + }, + "node_modules/pkg-types/node_modules/confbox": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.3.1.tgz", + "integrity": "sha512-cKUSoKa8YxFZZSmraVi7onONx3amu77ngK3kGpsYHDH7drPwCRkQE1RYMPlLRrMtnciRj274XNRxcHxnKmDSnA==", + "license": "MIT" + }, "node_modules/postcss": { - "version": "8.5.25", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.25.tgz", - "integrity": "sha512-DTPx3RWSSnWyzLxQnlH0rJP+EW5ekl16ZU4/psbIhA0e53kJfdgaN5vKM+xP7yJtXVu+nfdVFmlgFDEKAe4Pyw==", - "dev": true, + "version": "8.5.28", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.28.tgz", + "integrity": "sha512-RRuzqDtt5Y9h3quz5hWhK+TPnsmVs6WwSU6LkJMeY4HstUEDuYTG8UJSdawMRzmzAtV+KEoG8N3Qg2qLy5vM/A==", "funding": [ { "type": "opencollective", @@ -2740,7 +5937,7 @@ ], "license": "MIT", "dependencies": { - "nanoid": "^3.3.16", + "nanoid": "^3.3.18", "picocolors": "^1.1.1", "source-map-js": "^1.2.1" }, @@ -2748,50 +5945,164 @@ "node": "^10 || ^12 || >=14" } }, - "node_modules/preact": { - "version": "10.29.8", - "resolved": "https://registry.npmjs.org/preact/-/preact-10.29.8.tgz", - "integrity": "sha512-ej2aVZ+vZ8WO7tvlQWRM9N63A0KzF9q4mWJfDUHgYaIofWY9hu74QdnQrjoPMmZi2/nZ5gN0bJCQF49xQqx09Q==", + "node_modules/postcss-less": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/postcss-less/-/postcss-less-6.0.0.tgz", + "integrity": "sha512-FPX16mQLyEjLzEuuJtxA8X3ejDLNGGEG503d2YGZR5Ask1SpDN8KmZUMpzCvyalWRywAn1n1VOA5dcqfCLo5rg==", + "dev": true, "license": "MIT", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/preact" + "engines": { + "node": ">=12" }, "peerDependencies": { - "preact-render-to-string": ">=5" - }, - "peerDependenciesMeta": { - "preact-render-to-string": { - "optional": true - } + "postcss": "^8.3.5" } }, - "node_modules/pretty-format": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.5.1.tgz", - "integrity": "sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==", + "node_modules/postcss-sass": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/postcss-sass/-/postcss-sass-0.5.0.tgz", + "integrity": "sha512-qtu8awh1NMF3o9j/x9j3EZnd+BlF66X6NZYl12BdKoG2Z4hmydOt/dZj2Nq+g0kfk2pQy3jeYFBmvG9DBwynGQ==", "dev": true, "license": "MIT", "dependencies": { - "ansi-regex": "^5.0.1", - "ansi-styles": "^5.0.0", - "react-is": "^17.0.1" + "gonzales-pe": "^4.3.0", + "postcss": "^8.2.14" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^10 || ^12 || >=14" } }, - "node_modules/pretty-format/node_modules/ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "node_modules/postcss-scss": { + "version": "4.0.9", + "resolved": "https://registry.npmjs.org/postcss-scss/-/postcss-scss-4.0.9.tgz", + "integrity": "sha512-AjKOeiwAitL/MXxQW2DliT28EKukvvbEWx3LBmJIRN8KfBGZbRTxNYW0kSqi1COiTZ57nZ9NW06S6ux//N1c9A==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss-scss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "engines": { + "node": ">=12.0" + }, + "peerDependencies": { + "postcss": "^8.4.29" + } + }, + "node_modules/postcss-selector-parser": { + "version": "7.1.6", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-7.1.6.tgz", + "integrity": "sha512-7qASPzhKF2l2KLboRZux8CCTRMdGiV08vWmyKzPz22qZ7ZjQBOeY7rNzNoCLSUiftJ7HUq0GERHmxw/t0dCdMw==", + "dev": true, + "license": "MIT", + "dependencies": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/postcss-styl": { + "version": "0.12.3", + "resolved": "https://registry.npmjs.org/postcss-styl/-/postcss-styl-0.12.3.tgz", + "integrity": "sha512-8I7Cd8sxiEITIp32xBK4K/Aj1ukX6vuWnx8oY/oAH35NfQI4OZaY5nd68Yx8HeN5S49uhQ6DL0rNk0ZBu/TaLg==", + "dev": true, + "license": "MIT", + "dependencies": { + "debug": "^4.1.1", + "fast-diff": "^1.2.0", + "lodash.sortedlastindex": "^4.1.0", + "postcss": "^7.0.27 || ^8.0.0", + "stylus": "^0.57.0" + }, + "engines": { + "node": "^8.10.0 || ^10.13.0 || ^11.10.1 || >=12.13.0" + }, + "funding": { + "url": "https://opencollective.com/stylus" + } + }, + "node_modules/powershell-utils": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/powershell-utils/-/powershell-utils-0.2.1.tgz", + "integrity": "sha512-C+y9x90UElAddDZmV4qOx9W53B61PO7cIqWz2dQsWlwswuq4mr8NEwytdGKboYbQlGZ3awrkTeNvcZiZNHnQ8A==", "dev": true, "license": "MIT", "engines": { - "node": ">=10" + "node": ">=20" }, "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/prettier": { + "version": "3.9.8", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.9.8.tgz", + "integrity": "sha512-WRFq3Wn3WId7LLROfMLdH7xaFr2jR62wU8nLO6rQUOLOxNZUviyJQs1M0iIhLexSFy+L+w0ch66wtoO2jRjG0A==", + "dev": true, + "license": "MIT", + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/prompts": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", + "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/proxy-addr": { + "version": "2.0.8", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.8.tgz", + "integrity": "sha512-5nnx0yGyVUcY6t9RnWcARWtwT9F1D8O9rt08htPvnd49W1IgZtmLkhu9WfMzQj1cFxjHIO6connUNVW5k7AVyQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "forwarded": "0.2.0", + "ipaddr.js": "1.9.1" + }, + "engines": { + "node": ">= 0.10" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" } }, "node_modules/punycode": { @@ -2800,38 +6111,221 @@ "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=6" } }, - "node_modules/react-is": { - "version": "17.0.2", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", - "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==", - "dev": true, - "license": "MIT" - }, - "node_modules/regexp.prototype.flags": { - "version": "1.5.4", - "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.4.tgz", - "integrity": "sha512-dYqgNSZbDwkaJ2ceRd9ojCGjBq+mOm9LmtXnAnEGyHhN/5R7iDW2TRw3h+o/jCFxus3P2LfWIIiwowAjANm7IA==", + "node_modules/qified": { + "version": "0.10.1", + "resolved": "https://registry.npmjs.org/qified/-/qified-0.10.1.tgz", + "integrity": "sha512-+Owyggi9IxT1ePKGafcI87ubSmxol6smwJ+RAHDQlx9+9cPwFWDiKFFCPuWhr9ignlGpZ9vDQLw67N4dcTVFEA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { - "call-bind": "^1.0.8", - "define-properties": "^1.2.1", - "es-errors": "^1.3.0", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "set-function-name": "^2.0.2" + "hookified": "^2.1.1" }, "engines": { - "node": ">= 0.4" + "node": ">=20" + } + }, + "node_modules/qified/node_modules/hookified": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/hookified/-/hookified-2.2.0.tgz", + "integrity": "sha512-p/LgFzRN5FeoD3DLS6bkUapeye6E4SI6yJs6KetENd18S+FBthqYq2amJUWpt5z0EQwwHemidjY5OqJGEKm5uA==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/qs": { + "version": "6.16.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.16.0.tgz", + "integrity": "sha512-h6fhOIaRrID2CbEY2fqs+7t+UXZo+MLAnU5gRIq85uFtdiUPCdsApMlHhXogKVM4HM2DVbIjGNTTYH2OcmP1vA==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "es-define-property": "^1.0.1", + "side-channel": "^1.1.1" + }, + "engines": { + "node": ">=0.6" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/quansync": { + "version": "0.2.11", + "resolved": "https://registry.npmjs.org/quansync/-/quansync-0.2.11.tgz", + "integrity": "sha512-AifT7QEbW9Nri4tAwR5M/uzpBuqfZf+zwaEM/QkzEjj7NBuFD2rBuy0K3dE+8wltbezDV7JMA0WfnCPYRSYbXA==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/antfu" + }, + { + "type": "individual", + "url": "https://github.com/sponsors/sxzz" + } + ], + "license": "MIT" + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/quote-js-string": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/quote-js-string/-/quote-js-string-0.1.0.tgz", + "integrity": "sha512-Y3NoRtprEEZQD8RfxMCfS0ZTqc4e+i18OrXEXAvpM6TfC/3y+0L5rNbZiSnbBBEkDfFzbpd8o+cE8q3/anjMGA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=22" + }, + "funding": { + "url": "https://github.com/sindresorhus/quote-js-string?sponsor=1" + } + }, + "node_modules/range-parser": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.3.0.tgz", + "integrity": "sha512-hek2mFQpPuI4E1BBKrSto+BU3e3x4xuarsbiwr3+lf7p44juvFMV0XFWQAP3xUyqXA4RrXLIoaSUGbSt056ZMw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.6" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/raw-body": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.2.tgz", + "integrity": "sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==", + "dev": true, + "license": "MIT", + "dependencies": { + "bytes": "~3.1.2", + "http-errors": "~2.0.1", + "iconv-lite": "~0.7.0", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/rc9": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/rc9/-/rc9-3.1.0.tgz", + "integrity": "sha512-ufjkNVzbRHKcCOmTahZkmVsyc3W+MSk3jY03m+a7tGHkIsdVMG9l10/3HvFbWkkKzY5VFp3pkRsIo/UYgmFL7Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "defu": "^6.1.7", + "destr": "^2.0.5" + } + }, + "node_modules/readdirp": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-5.1.1.tgz", + "integrity": "sha512-Kko+Y5XQ6fM+Ce3dq3m9YGxnacYZYl9cA1wZjaF3Vbry2L3i1qVg8+CAgNPsXRArPMUMCaOR7oa9Nqntc43JKA==", + "license": "MIT", + "engines": { + "node": ">= 20.19.0" + }, + "funding": { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/recast-x": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/recast-x/-/recast-x-1.0.5.tgz", + "integrity": "sha512-CkfWKhQiYsMQYaWUkHdERXUxT2jJLBoa5y7zFv3dUAE7Ly5oU/0hsqrENyEfrCL03pDsQYbnoz17Cbagx/c2OA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ast-types": "npm:ast-types-x@1.18.0", + "source-map": "~0.6.1", + "tiny-invariant": "^1.3.3", + "tslib": "^2.0.1" + }, + "engines": { + "node": ">= 4" + } + }, + "node_modules/reka-ui": { + "version": "2.10.4", + "resolved": "https://registry.npmjs.org/reka-ui/-/reka-ui-2.10.4.tgz", + "integrity": "sha512-kbS5GAbkHkYj0EVKAg5ZPEPndhBjeUFSa1Aq5m5ftQwyHnB1v5tw8X6fcwfKH/ry3StPXblMWM1DW82MVS71cw==", + "license": "MIT", + "dependencies": { + "@floating-ui/dom": "^1.6.13", + "@floating-ui/vue": "^1.1.6", + "@internationalized/date": "^3.5.0", + "@internationalized/number": "^3.5.0", + "@tanstack/vue-virtual": "^3.12.0", + "@vueuse/core": "^14.1.0", + "@vueuse/shared": "^14.1.0", + "aria-hidden": "^1.2.4", + "defu": "^6.1.5", + "ohash": "^2.0.11" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/zernonia" + }, + "peerDependencies": { + "vue": ">= 3.4.0" + } + }, + "node_modules/reka-ui/node_modules/@vueuse/core": { + "version": "14.4.0", + "resolved": "https://registry.npmjs.org/@vueuse/core/-/core-14.4.0.tgz", + "integrity": "sha512-X4WHz1HlCzCBoYXesUkifzzWBAcZgXG8Fi5iNPQg/epdzOB3gu8Fawj3hvuwYR1nGcXGnvxwYYcUC/71++svtQ==", + "license": "MIT", + "dependencies": { + "@types/web-bluetooth": "^0.0.21", + "@vueuse/metadata": "14.4.0", + "@vueuse/shared": "14.4.0" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + }, + "peerDependencies": { + "vue": "^3.5.0" + } + }, + "node_modules/reka-ui/node_modules/@vueuse/metadata": { + "version": "14.4.0", + "resolved": "https://registry.npmjs.org/@vueuse/metadata/-/metadata-14.4.0.tgz", + "integrity": "sha512-swx/255R6JyHZFJhx845iz5CRWDZdCfvkZOpACWc5+c5WHcG24mv8gUT1WIdFQaHt6dq79rvILd9QnCWiyVm9g==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, "node_modules/require-from-string": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", @@ -2842,14 +6336,82 @@ "node": ">=0.10.0" } }, - "node_modules/rolldown": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.2.2.tgz", - "integrity": "sha512-opwpo1tQBAcpSUJDt94B7hhLNGOKjCdE//XXjeLrnx9b83bjnw45tXdg1b09yEw/VLFBJGZpwRULMmOZo7ol+A==", + "node_modules/reserved-identifiers": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/reserved-identifiers/-/reserved-identifiers-1.2.0.tgz", + "integrity": "sha512-yE7KUfFvaBFzGPs5H3Ops1RevfUEsDc5Iz65rOwWg4lE8HJSYtle77uul3+573457oHvBKuHYDl/xqUkKpEEdw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/resolve-pkg-maps": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", + "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" + } + }, + "node_modules/restore-cursor": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-5.1.0.tgz", + "integrity": "sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==", "dev": true, "license": "MIT", "dependencies": { - "@oxc-project/types": "=0.142.0", + "onetime": "^7.0.0", + "signal-exit": "^4.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/reusify": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", + "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", + "dev": true, + "license": "MIT", + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/roarr": { + "version": "2.15.4", + "resolved": "https://registry.npmjs.org/roarr/-/roarr-2.15.4.tgz", + "integrity": "sha512-CHhPh+UNHD2GTXNYhPWLnU8ONHdI+5DI+4EYIAOaiD63rHeYlZvyh8P+in5999TTSFgUYuKUAjzRI4mdh/p+2A==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "boolean": "^3.0.1", + "detect-node": "^2.0.4", + "globalthis": "^1.0.1", + "json-stringify-safe": "^5.0.1", + "semver-compare": "^1.0.0", + "sprintf-js": "^1.1.2" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/rolldown": { + "version": "1.2.9", + "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.2.9.tgz", + "integrity": "sha512-hx/Pv0N1haXRb11qkfnK5MXB/iqr7i0yjWQqmO9uHqZpBgQSqzc8UsSnEpalsh+j1I8qQ2CkXAkJC8Br3dKSlg==", + "license": "MIT", + "dependencies": { + "@oxc-project/types": "=0.150.0", "@rolldown/pluginutils": "^1.0.0" }, "bin": { @@ -2859,95 +6421,255 @@ "node": "^20.19.0 || >=22.12.0" }, "optionalDependencies": { - "@rolldown/binding-android-arm64": "1.2.2", - "@rolldown/binding-darwin-arm64": "1.2.2", - "@rolldown/binding-darwin-x64": "1.2.2", - "@rolldown/binding-freebsd-x64": "1.2.2", - "@rolldown/binding-linux-arm-gnueabihf": "1.2.2", - "@rolldown/binding-linux-arm64-gnu": "1.2.2", - "@rolldown/binding-linux-arm64-musl": "1.2.2", - "@rolldown/binding-linux-ppc64-gnu": "1.2.2", - "@rolldown/binding-linux-s390x-gnu": "1.2.2", - "@rolldown/binding-linux-x64-gnu": "1.2.2", - "@rolldown/binding-linux-x64-musl": "1.2.2", - "@rolldown/binding-openharmony-arm64": "1.2.2", - "@rolldown/binding-win32-arm64-msvc": "1.2.2", - "@rolldown/binding-win32-x64-msvc": "1.2.2" + "@rolldown/binding-android-arm-eabi": "1.2.9", + "@rolldown/binding-android-arm64": "1.2.9", + "@rolldown/binding-darwin-arm64": "1.2.9", + "@rolldown/binding-darwin-x64": "1.2.9", + "@rolldown/binding-freebsd-x64": "1.2.9", + "@rolldown/binding-linux-arm-gnueabihf": "1.2.9", + "@rolldown/binding-linux-arm64-gnu": "1.2.9", + "@rolldown/binding-linux-arm64-musl": "1.2.9", + "@rolldown/binding-linux-ppc64-gnu": "1.2.9", + "@rolldown/binding-linux-s390x-gnu": "1.2.9", + "@rolldown/binding-linux-x64-gnu": "1.2.9", + "@rolldown/binding-linux-x64-musl": "1.2.9", + "@rolldown/binding-openharmony-arm64": "1.2.9", + "@rolldown/binding-win32-arm64-msvc": "1.2.9", + "@rolldown/binding-win32-x64-msvc": "1.2.9" } }, - "node_modules/safe-regex-test": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.1.0.tgz", - "integrity": "sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==", + "node_modules/router": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/router/-/router-2.2.0.tgz", + "integrity": "sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==", "dev": true, "license": "MIT", "dependencies": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "is-regex": "^1.2.1" + "debug": "^4.4.0", + "depd": "^2.0.0", + "is-promise": "^4.0.0", + "parseurl": "^1.3.3", + "path-to-regexp": "^8.0.0" }, "engines": { - "node": ">= 0.4" + "node": ">= 18" + } + }, + "node_modules/run-applescript": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/run-applescript/-/run-applescript-7.1.0.tgz", + "integrity": "sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/saxes": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/saxes/-/saxes-6.0.0.tgz", - "integrity": "sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==", + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", "dev": true, - "license": "ISC", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", "dependencies": { - "xmlchars": "^2.2.0" - }, - "engines": { - "node": ">=v12.22.7" + "queue-microtask": "^1.2.2" } }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "devOptional": true, + "license": "MIT" + }, + "node_modules/sax": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", + "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", + "devOptional": true, + "license": "ISC" + }, + "node_modules/scule": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/scule/-/scule-1.3.0.tgz", + "integrity": "sha512-6FtHJEvt+pVMIB9IBY+IcCJ6Z5f1iQnytgyfKMhDKgmzYG+TeH/wx1y3l27rshSbLiSanrR9ffZDrEsmjlQF2g==", + "license": "MIT" + }, "node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "version": "7.8.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", + "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", "dev": true, "license": "ISC", "bin": { "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" } }, - "node_modules/set-function-length": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", - "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", + "node_modules/semver-compare": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz", + "integrity": "sha512-YM3/ITh2MJ5MtzaM429anh+x2jiLVjqILF4m4oyQB18W7Ggea7BfqdH/wGMK7dDiMghv/6WG7znWMwUDzJiXow==", + "dev": true, + "license": "MIT" + }, + "node_modules/send": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/send/-/send-1.2.1.tgz", + "integrity": "sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==", "dev": true, "license": "MIT", "dependencies": { - "define-data-property": "^1.1.4", - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.4", - "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.2" + "debug": "^4.4.3", + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "etag": "^1.8.1", + "fresh": "^2.0.0", + "http-errors": "^2.0.1", + "mime-types": "^3.0.2", + "ms": "^2.1.3", + "on-finished": "^2.4.1", + "range-parser": "^1.2.1", + "statuses": "^2.0.2" }, "engines": { - "node": ">= 0.4" + "node": ">= 18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" } }, - "node_modules/set-function-name": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.2.tgz", - "integrity": "sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==", + "node_modules/serialize-error": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/serialize-error/-/serialize-error-7.0.1.tgz", + "integrity": "sha512-8I8TjW5KMOKsZQTvoxjuSIa7foAwPWGOts+6o7sgjz41/qMD9VQHEDxi6PBvK2l0MXUmqZyNpUK+T2tQaaElvw==", "dev": true, "license": "MIT", "dependencies": { - "define-data-property": "^1.1.4", - "es-errors": "^1.3.0", - "functions-have-names": "^1.2.3", - "has-property-descriptors": "^1.0.2" + "type-fest": "^0.13.1" }, "engines": { - "node": ">= 0.4" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/serve-static": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-2.2.1.tgz", + "integrity": "sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==", + "dev": true, + "license": "MIT", + "dependencies": { + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "parseurl": "^1.3.3", + "send": "^1.2.0" + }, + "engines": { + "node": ">= 18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/setprototypeof": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", + "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", + "dev": true, + "license": "ISC" + }, + "node_modules/shadcn-vue": { + "version": "2.8.2", + "resolved": "https://registry.npmjs.org/shadcn-vue/-/shadcn-vue-2.8.2.tgz", + "integrity": "sha512-bO+sSuP8SmbBecXozN93S1sciZWwlLGK9JekZHLwJYPmiM5IT1N8NonA0WueEcEt9bd0o3ihz1REKIFLQgB4pQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@dotenvx/dotenvx": "^2.6.0", + "@modelcontextprotocol/sdk": "^1.29.0", + "@unovue/detypes": "^0.8.5", + "@vue/compiler-sfc": "^3.5", + "c12": "^3.3.4", + "commander": "^15.0.0", + "consola": "^3.4.2", + "dedent": "^1.7.2", + "deepmerge": "^4.3.1", + "diff": "^9.0.0", + "fs-extra": "^11.3.6", + "fuzzysort": "^3.1.0", + "get-tsconfig": "^4.14.0", + "giget": "^3.3.1", + "magic-string": "^0.30.21", + "nypm": "^0.6.8", + "ofetch": "^1.5.1", + "open": "^11.0.0", + "ora": "^9.4.1", + "pathe": "^2.0.3", + "postcss": "^8.5.19", + "postcss-selector-parser": "^7.1.4", + "prompts": "^2.4.2", + "reka-ui": "^2.10.1", + "semver": "^7.8.5", + "stringify-object": "^7.0.0", + "tailwindcss": "^4.3.2", + "tinyexec": "^1.2.4", + "tinyglobby": "^0.2.17", + "ts-morph": "^28.0.0", + "undici": "^8.9.0", + "validate-npm-package-name": "^8.0.0", + "vue-metamorph": "3.3.4", + "zod": "^3.25.76", + "zod-to-json-schema": "^3.25.2" + }, + "bin": { + "shadcn-vue": "dist/index.js" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" } }, "node_modules/side-channel": { @@ -3026,85 +6748,381 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/simple-code-frame": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/simple-code-frame/-/simple-code-frame-1.3.0.tgz", - "integrity": "sha512-MB4pQmETUBlNs62BBeRjIFGeuy/x6gGKh7+eRUemn1rCFhqo7K+4slPqsyizCbcbYLnaYqaoZ2FWsZ/jN06D8w==", + "node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/sisteransi": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "dev": true, + "license": "MIT" + }, + "node_modules/slice-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", + "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", "dev": true, "license": "MIT", "dependencies": { - "kolorist": "^1.6.0" + "ansi-styles": "^4.0.0", + "astral-regex": "^2.0.0", + "is-fullwidth-code-point": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/slice-ansi?sponsor=1" } }, "node_modules/source-map": { - "version": "0.7.6", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.6.tgz", - "integrity": "sha512-i5uvt8C3ikiWeNZSVZNWcfZPItFQOsYTUAOkcUPGd8DqDy1uOUikjt5dG+uRlwyvR108Fb9DOd4GvXfT0N2/uQ==", - "dev": true, + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "devOptional": true, "license": "BSD-3-Clause", "engines": { - "node": ">= 12" + "node": ">=0.10.0" } }, "node_modules/source-map-js": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", - "dev": true, "license": "BSD-3-Clause", "engines": { "node": ">=0.10.0" } }, - "node_modules/stack-trace": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/stack-trace/-/stack-trace-1.0.0.tgz", - "integrity": "sha512-H6D7134xi6qONvh7ZHKgviXf+rd3vhGBSvebPZCaUkd8zvQ+7PtDw6CljPTe4cXWNf2IKZGNqw6VJXSb9IgBpA==", + "node_modules/source-map-resolve": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.6.0.tgz", + "integrity": "sha512-KXBr9d/fO/bWo97NXsPIAW1bFSBOuCnjbNTBMO7N59hsv5i9yzRDfcYwwt0l04+VqnKC+EwzvJZIP/qkuMgR/w==", + "deprecated": "See https://github.com/lydell/source-map-resolve#deprecated", + "devOptional": true, + "license": "MIT", + "dependencies": { + "atob": "^2.1.2", + "decode-uri-component": "^0.2.0" + } + }, + "node_modules/sprintf-js": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz", + "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==", + "dev": true, + "license": "BSD-3-Clause" + }, + "node_modules/statuses": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz", + "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==", "dev": true, "license": "MIT", "engines": { - "node": ">=20.0.0" + "node": ">= 0.8" } }, - "node_modules/stop-iteration-iterator": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/stop-iteration-iterator/-/stop-iteration-iterator-1.1.0.tgz", - "integrity": "sha512-eLoXW/DHyl62zxY4SCaIgnRhuMr6ri4juEYARS8E6sCEqzKpOiE521Ucofdx+KnDZl5xmvGYaaKCk5FEOxJCoQ==", + "node_modules/stdin-discarder": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/stdin-discarder/-/stdin-discarder-0.3.2.tgz", + "integrity": "sha512-eCPu1qRxPVkl5605OTWF8Wz40b4Mf45NY5LQmVPQ599knfs5QhASUm9GbJ5BDMDOXgrnh0wyEdvzmL//YMlw0A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/string-width": { + "version": "8.2.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-8.2.2.tgz", + "integrity": "sha512-GaPUh5gfdrYzqeVNZvUfT23vYYxXzKYidUcnMtJg/3rxRV63EFZy3k6xfKlmfeJD0176lnUV/Usr3XcwSvFzpg==", "dev": true, "license": "MIT", "dependencies": { - "es-errors": "^1.3.0", - "internal-slot": "^1.1.0" + "get-east-asian-width": "^1.5.0", + "strip-ansi": "^7.1.2" }, "engines": { - "node": ">= 0.4" + "node": ">=20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/supports-color": { + "node_modules/stringify-object": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/stringify-object/-/stringify-object-7.0.0.tgz", + "integrity": "sha512-RQU1n5OVVXD9fhww7e/rqiKdMa+LPMFLz0zDTbZ+KUjMfiMmh9soT8aw5iwvCGVquUJOodoinyv3VECyY7aFBQ==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "get-own-enumerable-keys": "^1.0.0", + "is-identifier": "^1.0.1", + "is-obj": "^3.0.0", + "is-regexp": "^3.1.0", + "quote-js-string": "^0.1.0" + }, + "engines": { + "node": ">=22" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/strip-ansi": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz", + "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==", "dev": true, "license": "MIT", "dependencies": { - "has-flag": "^4.0.0" + "ansi-regex": "^6.2.2" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/stylus": { + "version": "0.57.0", + "resolved": "https://registry.npmjs.org/stylus/-/stylus-0.57.0.tgz", + "integrity": "sha512-yOI6G8WYfr0q8v8rRvE91wbxFU+rJPo760Va4MF6K0I6BZjO4r+xSynkvyPBP9tV1CIEUeRsiidjIs2rzb1CnQ==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "css": "^3.0.0", + "debug": "^4.3.2", + "glob": "^7.1.6", + "safer-buffer": "^2.1.2", + "sax": "~1.2.4", + "source-map": "^0.7.3" + }, + "bin": { + "stylus": "bin/stylus" + }, + "engines": { + "node": "*" + } + }, + "node_modules/stylus/node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "devOptional": true, + "license": "MIT" + }, + "node_modules/stylus/node_modules/brace-expansion": { + "version": "1.1.21", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.21.tgz", + "integrity": "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/stylus/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me", + "devOptional": true, + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/stylus/node_modules/minimatch": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz", + "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==", + "devOptional": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/stylus/node_modules/source-map": { + "version": "0.7.6", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.6.tgz", + "integrity": "sha512-i5uvt8C3ikiWeNZSVZNWcfZPItFQOsYTUAOkcUPGd8DqDy1uOUikjt5dG+uRlwyvR108Fb9DOd4GvXfT0N2/uQ==", + "devOptional": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">= 12" + } + }, + "node_modules/super-regex": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/super-regex/-/super-regex-1.1.0.tgz", + "integrity": "sha512-WHkws2ZflZe41zj6AolvvmaTrWds/VuyeYr9iPVv/oQeaIoVxMKaushfFWpOGDT+GuBrM/sVqF8KUCYQlSSTdQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "function-timeout": "^1.0.1", + "make-asynchronous": "^1.0.1", + "time-span": "^5.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/table": { + "version": "6.9.0", + "resolved": "https://registry.npmjs.org/table/-/table-6.9.0.tgz", + "integrity": "sha512-9kY+CygyYM6j02t5YFHbNz2FN5QmYGv9zAjVp4lCDjlCw7amdckXlEt/bjMhUIfj4ThGRE4gCUH5+yGnNuPo5A==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "ajv": "^8.0.1", + "lodash.truncate": "^4.4.2", + "slice-ansi": "^4.0.0", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/table/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/table/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" }, "engines": { "node": ">=8" } }, - "node_modules/symbol-tree": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", - "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", + "node_modules/table/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/tailwind-merge": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/tailwind-merge/-/tailwind-merge-3.7.0.tgz", + "integrity": "sha512-XPPUyAc+cvspz3lHTcR/QgPfW2A0lv/xQNIjX3HGhLR+Nq2lHaLq5MtTesHn8GUr3W3DguT2KT5x3NVgRtYwmA==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/dcastil" + } + }, + "node_modules/tailwindcss": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.3.3.tgz", + "integrity": "sha512-gOhV3P7ufE62QDGg1zVaTgCR+EtPv92k2nIhVcVKcLmxT1sUBsQGhnZj175j+MqRt4zLF7ic+sCYjfhxMxj7YQ==", + "license": "MIT" + }, + "node_modules/tapable": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.3.tgz", + "integrity": "sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==", + "license": "MIT", + "engines": { + "node": ">=6" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/time-span": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/time-span/-/time-span-5.1.0.tgz", + "integrity": "sha512-75voc/9G4rDIJleOo4jPvN4/YC4GRZrY8yy1uU4lwrB3XEQbWve8zXoO5No4eFrGcTAMYyoY67p8jRQdtA1HbA==", + "dev": true, + "license": "MIT", + "dependencies": { + "convert-hrtime": "^5.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/tiny-invariant": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.3.tgz", + "integrity": "sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==", "dev": true, "license": "MIT" }, + "node_modules/tinyexec": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.3.1.tgz", + "integrity": "sha512-GCvB3aoys96IuDFBMcTB46JOR6mdMtAToqwiW8JlWhsoh1mhHi/xn9ss/Dg7N555GiJyEt2qzoG/NHCwM6h1EA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + } + }, "node_modules/tinyglobby": { "version": "0.2.17", "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", - "dev": true, "license": "MIT", "dependencies": { "fdir": "^6.5.0", @@ -3117,66 +7135,250 @@ "url": "https://github.com/sponsors/SuperchupuDev" } }, - "node_modules/tldts": { - "version": "7.4.11", - "resolved": "https://registry.npmjs.org/tldts/-/tldts-7.4.11.tgz", - "integrity": "sha512-aBiNayCfTQxuIJBm06M+xR14cYaYlDlSXZbgsnKzKNxDKUVq7KFwTjwBSsb7m9Y5xO8WfPnBc63WaYFMTGlvqw==", + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", "dev": true, "license": "MIT", "dependencies": { - "tldts-core": "^7.4.11" + "is-number": "^7.0.0" }, - "bin": { - "tldts": "bin/cli.js" + "engines": { + "node": ">=8.0" } }, - "node_modules/tldts-core": { - "version": "7.4.11", - "resolved": "https://registry.npmjs.org/tldts-core/-/tldts-core-7.4.11.tgz", - "integrity": "sha512-CW3WN2rIIE/Of21mulhgnGOwoDyEFNygyIBOONSdyAuSATgMMUCpLeUlB+E8sAwA5xRV9hYPl+kyZ9citHCaKg==", + "node_modules/toidentifier": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", + "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.6" + } + }, + "node_modules/ts-morph": { + "version": "28.0.0", + "resolved": "https://registry.npmjs.org/ts-morph/-/ts-morph-28.0.0.tgz", + "integrity": "sha512-Wp3tnZ2bzwxyTZMtgWVzXDfm7lB1Drz+y9DmmYH/L702PQhPyVrp3pkou3yIz4qjS14GY9kcpmLiOOMvl8oG1g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@ts-morph/common": "~0.29.0", + "code-block-writer": "^13.0.3" + } + }, + "node_modules/tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", + "license": "0BSD" + }, + "node_modules/tw-animate-css": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/tw-animate-css/-/tw-animate-css-1.4.0.tgz", + "integrity": "sha512-7bziOlRqH0hJx80h/3mbicLW7o8qLsH5+RaLR2t+OHM3D0JlWGODQKQ4cxbK7WlvmUxpcj6Kgu6EKqjrGFe3QQ==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/Wombosvideo" + } + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-fest": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.13.1.tgz", + "integrity": "sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==", + "dev": true, + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/type-is": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-2.1.0.tgz", + "integrity": "sha512-faYHw0anBbc/kWF3zFTEnxSFOAGUX9GFbOBthvDdLsIlEoWOFOtS0zgCiQYwIskL9iGXZL3kAXD8OoZ4GmMATA==", + "dev": true, + "license": "MIT", + "dependencies": { + "content-type": "^2.0.0", + "media-typer": "^1.1.0", + "mime-types": "^3.0.0" + }, + "engines": { + "node": ">= 18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/type-is/node_modules/content-type": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-2.1.0.tgz", + "integrity": "sha512-mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/typescript": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz", + "integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==", + "devOptional": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/ufo": { + "version": "1.6.4", + "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.6.4.tgz", + "integrity": "sha512-JFNbkD1Svwe0KvGi8GOeLcP4kAWQ609twvCdcHxq1oSL8svv39ZuSvajcD8B+5D0eL4+s1Is2D/O6KN3qcTeRA==", "license": "MIT" }, - "node_modules/tough-cookie": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-6.0.2.tgz", - "integrity": "sha512-exgYmnmL/sJpR3upZfXG5PoatXQii55xAiXGXzY+sROLZ/Y+SLcp9PgJNI9Vz37HpQ74WvDcLT8eqm+kV3FzrA==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "tldts": "^7.0.5" - }, - "engines": { - "node": ">=16" - } - }, - "node_modules/tr46": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-6.0.0.tgz", - "integrity": "sha512-bLVMLPtstlZ4iMQHpFHTR7GAGj2jxi8Dg0s2h2MafAE4uSWF98FC/3MomU51iQAMf8/qDUbKWf5GxuvvVcXEhw==", - "dev": true, - "license": "MIT", - "dependencies": { - "punycode": "^2.3.1" - }, - "engines": { - "node": ">=20" - } - }, "node_modules/undici": { - "version": "8.10.1", - "resolved": "https://registry.npmjs.org/undici/-/undici-8.10.1.tgz", - "integrity": "sha512-YQ3WlbqjYMmNpdvDH64jAgLjxuAR9+649calDWhbshYaeQGO2bR4nI94ORJmwI3J9YhoKQnpyGOK+0zlWS5N5Q==", + "version": "8.10.2", + "resolved": "https://registry.npmjs.org/undici/-/undici-8.10.2.tgz", + "integrity": "sha512-/y4/bH9YNU5hi9NIrpOuvGXFcxrj3CMrV+/AYpowAYTpHn8gX/XPFjNy766FPoYY0miQhdW977JFWKGNhBdwyQ==", "dev": true, "license": "MIT", "engines": { "node": ">=22.19.0" } }, + "node_modules/undici-types": { + "version": "7.18.2", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.18.2.tgz", + "integrity": "sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w==", + "devOptional": true, + "license": "MIT" + }, + "node_modules/universalify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", + "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/unplugin": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/unplugin/-/unplugin-3.4.0.tgz", + "integrity": "sha512-9skdIFlCsPdFV7wUfZxNsFInlW+7nJmGu2gkTu0OUhF56aXGsHab9x52/QhdJ4lC7ZDPWTxbiC4ANqVlsuaW3w==", + "license": "MIT", + "dependencies": { + "@jridgewell/remapping": "^2.3.5", + "picomatch": "^4.0.7", + "webpack-virtual-modules": "^0.6.2" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "peerDependencies": { + "@farmfe/core": "*", + "@rsbuild/core": "*", + "@rspack/core": "*", + "bun-types-no-globals": "*", + "esbuild": "*", + "rolldown": "*", + "rollup": "*", + "unloader": "*", + "vite": "*", + "webpack": "*" + }, + "peerDependenciesMeta": { + "@farmfe/core": { + "optional": true + }, + "@rsbuild/core": { + "optional": true + }, + "@rspack/core": { + "optional": true + }, + "bun-types-no-globals": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "rolldown": { + "optional": true + }, + "rollup": { + "optional": true + }, + "unloader": { + "optional": true + }, + "vite": { + "optional": true + }, + "webpack": { + "optional": true + } + } + }, + "node_modules/unplugin-utils": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/unplugin-utils/-/unplugin-utils-0.3.2.tgz", + "integrity": "sha512-xVToRh2CTmLk2HnEG7ac4rl1MJTT3RFkpS8B++/SnB0kXvuaavD+n3m/vrzyWQOdJNSZQACnbz01pnppbwV5BA==", + "license": "MIT", + "dependencies": { + "pathe": "^2.0.3", + "picomatch": "^4.0.4" + }, + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "url": "https://github.com/sponsors/sxzz" + } + }, "node_modules/update-browserslist-db": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.3.2.tgz", - "integrity": "sha512-UQ+MSxlhRm1bzjhU+DcuXfjFO1FzNtqhK5+9Yvlp90ItDLk5vT932A0rFu619nf7RVS+Y/VeaUW1jaRDqZ8VJw==", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.3.3.tgz", + "integrity": "sha512-pJ2sYawQS0R/WI928Gj5GlPhTGzbMelq0+4INtSYNDV9ErKJcX6xjGWkoG/VnB3dpUm00zALaqkrUD77pO5TDQ==", "dev": true, "funding": [ { @@ -3204,17 +7406,54 @@ "browserslist": ">= 4.21.0" } }, - "node_modules/vite": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/vite/-/vite-8.2.0.tgz", - "integrity": "sha512-pn+CFpM0lwDeKwmOq1ZaBK/9sjorZcgqxki6MbY/jPEVd9vichIlmlD4HmQ5wdP5EgqQCFRaACBxMC7uEGc6lQ==", + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", "dev": true, + "license": "BSD-2-Clause", + "peer": true, + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "dev": true, + "license": "MIT" + }, + "node_modules/validate-npm-package-name": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/validate-npm-package-name/-/validate-npm-package-name-8.0.0.tgz", + "integrity": "sha512-SCv6OOV6Xj2/3cXy3dGmADluJTNcL3o7hZAglNPTe+WYuEuvxgJzxPrSDLZhF+CwyQOubqgecjMmTJGMVLWjYQ==", + "dev": true, + "license": "ISC", + "engines": { + "node": "^22.22.2 || ^24.15.0 || >=26.0.0" + } + }, + "node_modules/vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/vite": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/vite/-/vite-8.3.0.tgz", + "integrity": "sha512-lhZBVvEHefgE+HQZC9O7EBJgCU/nVzFNl7vkS4RE0APtWLP02/8QVIkQtzBxPquh7lq5/78NHipTj7ODQ6XuyQ==", "license": "MIT", "dependencies": { "lightningcss": "^1.33.0", - "picomatch": "^4.0.5", - "postcss": "^8.5.23", - "rolldown": "~1.2.0", + "picomatch": "^4.0.7", + "postcss": "^8.5.28", + "rolldown": "~1.2.6", "tinyglobby": "^0.2.17" }, "bin": { @@ -3231,7 +7470,7 @@ }, "peerDependencies": { "@types/node": "^20.19.0 || >=22.12.0", - "@vitejs/devtools": "^0.4.0", + "@vitejs/devtools": "^0.7.1", "esbuild": "^0.27.0 || ^0.28.0", "jiti": ">=1.21.0", "less": "^4.0.0", @@ -3282,150 +7521,255 @@ } } }, - "node_modules/vite-prerender-plugin": { - "version": "0.5.13", - "resolved": "https://registry.npmjs.org/vite-prerender-plugin/-/vite-prerender-plugin-0.5.13.tgz", - "integrity": "sha512-IKSpYkzDBsKAxa05naRbj7GvNVMSdww/Z/E89oO3xndz+gWnOBOKOAbEXv7qDhktY/j3vHgJmoV1pPzqU2tx9g==", - "dev": true, - "license": "MIT", - "dependencies": { - "kolorist": "^1.8.0", - "magic-string": "0.x >= 0.26.0", - "node-html-parser": "^6.1.12", - "simple-code-frame": "^1.3.0", - "source-map": "^0.7.4", - "stack-trace": "^1.0.0-pre2" - }, - "peerDependencies": { - "vite": "5.x || 6.x || 7.x || 8.x" - } - }, - "node_modules/w3c-xmlserializer": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-5.0.0.tgz", - "integrity": "sha512-o8qghlI8NZHU1lLPrpi2+Uq7abh4GGPpYANlalzWxyWteJOCsr/P+oPBA49TOLu5FTZO4d3F9MnWJfiMo4BkmA==", - "dev": true, - "license": "MIT", - "dependencies": { - "xml-name-validator": "^5.0.0" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/webidl-conversions": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-8.0.1.tgz", - "integrity": "sha512-BMhLD/Sw+GbJC21C/UgyaZX41nPt8bUTg+jWyDeg7e7YN4xOM05YPSIXceACnXVtqyEw/LMClUQMtMZ+PGGpqQ==", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=20" - } - }, - "node_modules/whatwg-mimetype": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-5.0.0.tgz", - "integrity": "sha512-sXcNcHOC51uPGF0P/D4NVtrkjSU2fNsm9iog4ZvZJsL3rjoDAzXZhkm2MWt1y+PUdggKAYVoMAIYcs78wJ51Cw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=20" - } - }, - "node_modules/whatwg-url": { - "version": "17.1.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-17.1.0.tgz", - "integrity": "sha512-3GeworPmc2ZfEEHP7lEbUfBX/L75wdEsi0rLNhXcXxnoN5jyq0SL5gCy06SGW2cyTIZdTvWIDQNQoza++vKeaw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@exodus/bytes": "^1.15.1", - "tr46": "^6.0.0", - "webidl-conversions": "^8.0.1" - }, - "engines": { - "node": "^22.14.0 || >=24.0.0" - } - }, - "node_modules/which-boxed-primitive": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.1.1.tgz", - "integrity": "sha512-TbX3mj8n0odCBFVlY8AxkqcHASw3L60jIuF8jFP78az3C2YhmGvqbHBpAjTRH2/xqYunrJ9g1jSyjCjpoWzIAA==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-bigint": "^1.1.0", - "is-boolean-object": "^1.2.1", - "is-number-object": "^1.1.1", - "is-string": "^1.1.1", - "is-symbol": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/which-collection": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.2.tgz", - "integrity": "sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-map": "^2.0.3", - "is-set": "^2.0.3", - "is-weakmap": "^2.0.2", - "is-weakset": "^2.0.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/which-typed-array": { - "version": "1.1.22", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.22.tgz", - "integrity": "sha512-fvO4ExWMFsqyhG3AiPAObMuY1lxaqgYcxbc49CNdWDDECOJNgQyvsOWVwbZc+qf3rzRtxojBK+CMEv0Ld5CYpw==", - "dev": true, - "license": "MIT", - "dependencies": { - "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.9", - "call-bound": "^1.0.4", - "for-each": "^0.3.5", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "has-tostringtag": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/xml-name-validator": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-5.0.0.tgz", - "integrity": "sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=18" - } - }, - "node_modules/xmlchars": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", - "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", + "node_modules/vscode-uri": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/vscode-uri/-/vscode-uri-3.2.0.tgz", + "integrity": "sha512-m2gXo3bn0G1kT9InzMf07fTbqMbGtyckj3bH5ktLO+1Ssv+yiATZ4dhwaQv9UZWxJh6E9IFGnQyjgWVDWVBDrg==", "dev": true, "license": "MIT" }, + "node_modules/vue": { + "version": "3.5.43", + "resolved": "https://registry.npmjs.org/vue/-/vue-3.5.43.tgz", + "integrity": "sha512-o5qZoksdnjIKvW1srZ3ab7pcDNYAerBjRe54D0LBLfRdCYFrSgBHVXokMas35czQc0//lmx4/tuY4ZNQ+Rf2Ng==", + "license": "MIT", + "dependencies": { + "@vue/compiler-dom": "3.5.43", + "@vue/compiler-sfc": "3.5.43", + "@vue/runtime-dom": "3.5.43", + "@vue/server-renderer": "3.5.43", + "@vue/shared": "3.5.43" + }, + "peerDependencies": { + "typescript": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/vue-eslint-parser": { + "version": "10.4.1", + "resolved": "https://registry.npmjs.org/vue-eslint-parser/-/vue-eslint-parser-10.4.1.tgz", + "integrity": "sha512-Gk6gRDj0n/fkRa3C3l0bBheoBckUq/Rs0F/TvMWIS6nzzx67amAViMe9CkNgsP2tXyQONvGiHQESHwFtZ3aYDA==", + "dev": true, + "license": "MIT", + "dependencies": { + "debug": "^4.4.0", + "eslint-scope": "^8.2.0 || ^9.0.0", + "eslint-visitor-keys": "^4.2.0 || ^5.0.0", + "espree": "^10.3.0 || ^11.0.0", + "esquery": "^1.6.0", + "semver": "^7.6.3" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://github.com/sponsors/mysticatea" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0" + } + }, + "node_modules/vue-metamorph": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/vue-metamorph/-/vue-metamorph-3.3.4.tgz", + "integrity": "sha512-WZ1xzHrmYh9UiZ7OC9eG1ASzgSybEB10jhop+k5KzMY9I1JmRKdreqUYzbV3hOnOMvLhyDn7y6f62mLE2jHFSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "8.0.0-alpha.12", + "ast-types-x": "1.18.0", + "chalk": "^5.3.0", + "cli-progress": "^3.12.0", + "commander": "^14.0.0", + "deep-diff": "^1.0.2", + "fs-extra": "^11.2.0", + "glob": "^11.0.0", + "lodash-es": "^4.17.21", + "magic-string": "^0.30.10", + "micromatch": "^4.0.8", + "node-html-parser": "^7.0.1", + "postcss": "^8.4.38", + "postcss-less": "^6.0.0", + "postcss-sass": "^0.5.0", + "postcss-scss": "^4.0.9", + "postcss-styl": "^0.12.3", + "recast-x": "1.0.5", + "table": "^6.8.2", + "vue-eslint-parser": "^10.1.0" + }, + "bin": { + "vue-metamorph": "scripts/scaffold.js" + } + }, + "node_modules/vue-metamorph/node_modules/@babel/parser": { + "version": "8.0.0-alpha.12", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-8.0.0-alpha.12.tgz", + "integrity": "sha512-AzWmrp4uJ+DcXVH0uoUpJVhRqxNirC0BbXsZ82AQuVod41CoaV5G+cwcvtYusrIIxv7BIJb6ce0dQ9L0wAl1iA==", + "dev": true, + "license": "MIT", + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": "^18.20.0 || ^20.10.0 || >=21.0.0" + } + }, + "node_modules/vue-metamorph/node_modules/commander": { + "version": "14.0.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-14.0.3.tgz", + "integrity": "sha512-H+y0Jo/T1RZ9qPP4Eh1pkcQcLRglraJaSLoyOtHxu6AapkjWVCy2Sit1QQ4x3Dng8qDlSsZEet7g5Pq06MvTgw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=20" + } + }, + "node_modules/vue-router": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-5.3.1.tgz", + "integrity": "sha512-GDBZzgmILxA/kFnkFbJjQZdZ2QQbngnIMMuoUcjhZIfH1RGMaPjPwX5ASnV38qamuA9uhO0RDjSBHTDNG2uXyQ==", + "license": "MIT", + "dependencies": { + "@vue-macros/common": "^3.1.3", + "@vue/devtools-api": "^8.1.5", + "ast-walker-scope": "^0.9.0", + "chokidar": "^5.0.0", + "confbox": "^0.2.4", + "local-pkg": "^1.2.1", + "magic-string": "^0.30.21", + "mlly": "^1.8.2", + "muggle-string": "^0.4.1", + "nostics": "^1.1.4", + "pathe": "^2.0.3", + "picomatch": "^4.0.5", + "scule": "^1.3.0", + "tinyglobby": "^0.2.17", + "unplugin": "^3.3.0", + "unplugin-utils": "^0.3.2" + }, + "funding": { + "url": "https://github.com/sponsors/posva" + }, + "peerDependencies": { + "@pinia/colada": ">=0.21.2", + "@vue/compiler-sfc": "^3.5.34 || ^4.0.0", + "pinia": "^3.0.4 || ^4.0.2", + "vite": "^7.3.0 || ^8.0.0", + "vue": "^3.5.34 || ^4.0.0" + }, + "peerDependenciesMeta": { + "@pinia/colada": { + "optional": true + }, + "@vue/compiler-sfc": { + "optional": true + }, + "pinia": { + "optional": true + }, + "vite": { + "optional": true + } + } + }, + "node_modules/vue-tsc": { + "version": "3.3.11", + "resolved": "https://registry.npmjs.org/vue-tsc/-/vue-tsc-3.3.11.tgz", + "integrity": "sha512-gOb0B9rtU2+f1dszwPqSH5kAieIF9ReeLhD3kSRNHv5WZZUQz/JdVXW0RTdqhNTMlQkqKzrTTviqKr/4FYZraQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@volar/typescript": "2.4.28", + "@vue/language-core": "3.3.11" + }, + "bin": { + "vue-tsc": "bin/vue-tsc.js" + }, + "peerDependencies": { + "typescript": ">=5.0.0" + } + }, + "node_modules/web-worker": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/web-worker/-/web-worker-1.5.0.tgz", + "integrity": "sha512-RiMReJrTAiA+mBjGONMnjVDP2u3p9R1vkcGz6gDIrOMT3oGuYwX2WRMYI9ipkphSuE5XKEhydbhNEJh4NY9mlw==", + "dev": true, + "license": "Apache-2.0" + }, + "node_modules/webpack-virtual-modules": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/webpack-virtual-modules/-/webpack-virtual-modules-0.6.2.tgz", + "integrity": "sha512-66/V2i5hQanC51vBQKPH4aI8NMAcBW59FVBs+rC7eGHupMyfn34q7rZIE+ETlJ+XTevqfUhVVBgSUNSW2flEUQ==", + "license": "MIT" + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/word-wrap": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "devOptional": true, + "license": "ISC" + }, + "node_modules/wsl-utils": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/wsl-utils/-/wsl-utils-1.0.0.tgz", + "integrity": "sha512-Hl0ZOAs672vg+06kfujwRhoS6/jehvULrlFkuF2dRu6pHgA8U06h3xqNIqNNU1LTXPcedxByAR4GS6pwQK0mgA==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-wsl": "^3.1.0", + "powershell-utils": "^0.1.0" + }, + "engines": { + "node": ">=20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/wsl-utils/node_modules/powershell-utils": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/powershell-utils/-/powershell-utils-0.1.0.tgz", + "integrity": "sha512-dM0jVuXJPsDN6DvRpea484tCUaMiXWjuCn++HGTqUWzGDjv5tZkEZldAJ/UMlqRYGFrD/etByo4/xOuC/snX2A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/yallist": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", @@ -3433,12 +7777,68 @@ "dev": true, "license": "ISC" }, - "node_modules/zimmerframe": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/zimmerframe/-/zimmerframe-1.1.5.tgz", - "integrity": "sha512-msJxIvYDYcoNL+PJsu+7qmpDWsYmAxTY+2TNYXXF0hzBzBk0BMecOqDOG/EckUoKCuKwObfbugIl8QpqHDXeFA==", + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", "dev": true, - "license": "MIT" + "license": "MIT", + "peer": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/yocto-spinner": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/yocto-spinner/-/yocto-spinner-1.2.2.tgz", + "integrity": "sha512-DODGl1wJjA/s5pnJFKau9lIYHT81lnhob1i3e1TjxZRxEhWRKl74nTbWE6H5KlkViQQTo/Z29YFdxzTZAMY3ng==", + "dev": true, + "license": "MIT", + "dependencies": { + "yoctocolors": "^2.1.1" + }, + "engines": { + "node": ">=18.19" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/yoctocolors": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/yoctocolors/-/yoctocolors-2.2.0.tgz", + "integrity": "sha512-xYqdZFUK/VYazNl/oCDYN+3WloWQwMfZxBoiNt6qNyk+xfOdi598muWE42rNZFp1kNOiqW936q5RhUdnpqElSg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/zod": { + "version": "3.25.76", + "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz", + "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } + }, + "node_modules/zod-to-json-schema": { + "version": "3.25.2", + "resolved": "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.25.2.tgz", + "integrity": "sha512-O/PgfnpT1xKSDeQYSCfRI5Gy3hPf91mKVDuYLUHZJMiDFptvP41MSnWofm8dnCm0256ZNfZIM7DSzuSMAFnjHA==", + "dev": true, + "license": "ISC", + "peerDependencies": { + "zod": "^3.25.28 || ^4" + } } } } diff --git a/ui/package.json b/ui/package.json index 9fcefaf48..0aa4eff95 100644 --- a/ui/package.json +++ b/ui/package.json @@ -1,19 +1,34 @@ { - "name": "archie-dashboard", + "name": "archie-ui", "private": true, + "version": "0.0.0", "type": "module", "scripts": { "dev": "vite", - "build": "vite build", - "test": "node --import ./test/register.js --test \"test/*.test.js\"" + "build": "vue-tsc -b && vite build", + "preview": "vite preview", + "typecheck": "vue-tsc --build --force" }, "dependencies": { - "preact": "^10.26.0" + "@lucide/vue": "^1.47.0", + "@tailwindcss/vite": "^4.3.3", + "@vueuse/core": "^15.0.0", + "class-variance-authority": "^0.7.1", + "clsx": "^2.1.1", + "reka-ui": "^2.10.4", + "tailwind-merge": "^3.7.0", + "tailwindcss": "^4.3.3", + "tw-animate-css": "^1.4.0", + "vue": "^3.5.42", + "vue-router": "^5.3.1" }, "devDependencies": { - "@preact/preset-vite": "^2.10.0", - "@testing-library/preact": "^3.2.4", - "jsdom": "^30.0.1", - "vite": "^8.0.0" + "@types/node": "^24.13.6", + "@vitejs/plugin-vue": "^6.0.8", + "@vue/tsconfig": "^0.9.1", + "shadcn-vue": "^2.8.2", + "typescript": "~6.0.2", + "vite": "^8.3.0", + "vue-tsc": "^3.3.11" } } diff --git a/ui/public/favicon.svg b/ui/public/favicon.svg new file mode 100644 index 000000000..6893eb132 --- /dev/null +++ b/ui/public/favicon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/public/icons.svg b/ui/public/icons.svg new file mode 100644 index 000000000..e9522193d --- /dev/null +++ b/ui/public/icons.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ui/src/App.vue b/ui/src/App.vue new file mode 100644 index 000000000..613fac02a --- /dev/null +++ b/ui/src/App.vue @@ -0,0 +1,5 @@ + + + diff --git a/ui/src/assets/vite.svg b/ui/src/assets/vite.svg new file mode 100644 index 000000000..5101b674d --- /dev/null +++ b/ui/src/assets/vite.svg @@ -0,0 +1 @@ +Vite diff --git a/ui/src/base/api.jsx b/ui/src/base/api.jsx deleted file mode 100644 index b019c02df..000000000 --- a/ui/src/base/api.jsx +++ /dev/null @@ -1,197 +0,0 @@ -// Single place that knows how to talk to archied. Every feature folder goes -// through api.* below, and every api.* method goes through send(), so the CSRF -// header, the Content-Type, the request timeout, and the error shape live in -// this one file. ui/test/api-client.test.js asserts that: it fails if a second -// fetch() call appears here, and it fails if any method omits a header the -// server requires. -import { randomUUID } from "./uuid.jsx"; -import { streamStateFor } from "./stream-state.js"; - -// DEFAULT_TIMEOUT_MS bounds a request so a daemon that accepts the connection -// but never answers cannot leave the UI in a loading state with no way back. -// The retry affordances rely on fetch settling, so bound it. -const DEFAULT_TIMEOUT_MS = 15000; - -// qs builds a query string, omitting empty values so the server sees an -// absent filter rather than an empty one. -function qs(params) { - const q = new URLSearchParams(); - for (const [k, v] of Object.entries(params || {})) { - if (v !== "" && v != null) q.set(k, v); - } - const s = q.toString(); - return s ? `?${s}` : ""; -} - -// errorMessage prefers what the server actually said. archied answers these -// with http.Error, i.e. a plain-text reason -- "task is not awaiting -// approval", "max retries reached (3/3)", "Content-Type must be -// application/json" -- and discarding it in favour of "409 Conflict" throws -// away the only part an operator can act on. -async function errorMessage(res) { - try { - const body = (await res.text()).trim(); - if (body) return body.split("\n")[0].slice(0, 200); - } catch { - // Body already consumed or unreadable; fall through to the status. - } - return `${res.status} ${res.statusText}`; -} - -export class ApiError extends Error { - constructor(message, status) { - super(message); - this.status = status; - } -} - -// classifyActionError turns a failed operator action into a rendering -// decision. archied's own handlers already return distinguishable status -// codes for a refused mutation (400/403/409/415 -- bad input, missing CSRF, -// cross-origin, conflicting state, a body that is not JSON) versus a broken -// one (5xx, or no status at all when fetch itself failed -- network drop, -// timeout); 401 additionally means the session -- archied's own token cookie, -// or an upstream forward-auth proxy sitting in front of it -- has expired -// rather than that the action was rejected or the daemon is unwell. -export function classifyActionError(err) { - const status = err instanceof ApiError ? err.status : undefined; - const message = err?.message || "Action failed"; - if (status === 401) return { kind: "session-expired", message }; - if (status >= 400 && status < 500) return { kind: "refused", message }; - return { kind: "broken", message }; -} - -// send is the only fetch() in the dashboard. It converts a non-ok response -// into an ApiError carrying the server's own explanation and a usable status, -// and hands the raw Response back so the streaming caller can read the body -// itself. -async function send(path, init) { - const res = await fetch(path, init); - if (!res.ok) throw new ApiError(await errorMessage(res), res.status); - return res; -} - -// request performs a JSON request. Every mutating method must declare a JSON -// body: archied's handlers run authorizeTaskMutation first, and it answers 415 -// unless Content-Type is application/json -- including for a mutation that has -// no body to send, because that requirement is what makes a simple cross-origin -// form post inexpressible. Sending the header on every mutation, rather than -// only where a payload happens to exist, is what keeps a bodyless DELETE or -// approve from being refused. -async function request(path, { method = "GET", body, timeoutMs = DEFAULT_TIMEOUT_MS, parse = true } = {}) { - const headers = { Accept: "application/json" }; - const init = { method, headers, signal: AbortSignal.timeout(timeoutMs) }; - if (method !== "GET") { - headers["Content-Type"] = "application/json"; - headers["X-Archie-CSRF"] = "1"; - } - if (body !== undefined) init.body = JSON.stringify(body); - - const res = await send(path, init); - return parse ? res.json() : undefined; -} - -export const api = { - summary: () => request("/api/summary"), - tasks: () => request("/api/tasks"), - taskMeta: () => request("/api/task-meta"), - task: (id) => request(`/api/tasks/${id}`), - taskAttempts: (id) => request(`/api/tasks/${id}/attempts`), - taskChanges: (id, params) => request(`/api/tasks/${id}/changes` + qs(params)), - taskDebug: (id, params) => request(`/api/tasks/${id}/debug` + qs(params)), - taskAction: (id, action) => request(`/api/tasks/${id}/action`, { method: "POST", body: { action } }), - setup: () => request("/api/setup"), - capabilities: () => request("/api/capabilities"), - workflows: () => request("/api/workflows"), - workRequest: (workRequest) => request("/api/work-requests", { method: "POST", body: workRequest }), - skills: () => request("/api/skills"), - channels: () => request("/api/channels"), - curators: () => request("/api/curators"), - channelReload: (id) => request(`/api/channels/${encodeURIComponent(id)}/reload`, { method: "POST", body: {} }), - config: () => request("/api/config"), - version: () => request("/api/version"), - configUpdate: (updates) => request("/api/config", { method: "PATCH", body: { updates } }), - configRepoUpdate: (owner, name, field, value) => - request(`/api/config/repos/${encodeURIComponent(owner)}/${encodeURIComponent(name)}`, { method: "PATCH", body: { field, value } }), - configReset: (key) => request("/api/config/reset", { method: "POST", body: { key } }), - logs: (params) => request("/api/logs" + qs(params)), - taskLogs: (id, params) => request(`/api/tasks/${id}/logs` + qs(params)), - // A download is a navigation, not a fetch: the browser must own the - // Content-Disposition filename and stream the body to disk rather than hold - // a whole log in memory. The URL builder is the client-side contract, and - // base/log-row's sibling module keeps it beside the panel that uses it. - taskLogDownloadURL: (id, attempt) => `/api/tasks/${id}/logs/download` + (attempt == null ? "" : `?attempt=${attempt}`), - captures: (limit) => request("/api/captures" + qs({ limit })), - mappings: () => request("/api/mappings"), - mappingCreate: (mapping) => request("/api/mappings", { method: "POST", body: mapping }), - mappingUpdate: (id, mapping) => request(`/api/mappings/${id}`, { method: "PATCH", body: mapping }), - // A delete answers 204, so there is no body to parse. - mappingDelete: (id) => request(`/api/mappings/${id}`, { method: "DELETE", parse: false }), - mappingPreview: (captureId, fields) => request("/api/mappings/preview", { method: "POST", body: { capture_id: captureId, fields } }), - bindings: () => request("/api/bindings"), - bindingCreate: (binding) => request("/api/bindings", { method: "POST", body: binding }), - bindingUpdate: (id, binding) => request(`/api/bindings/${id}`, { method: "PATCH", body: binding }), - bindingDelete: (id) => request(`/api/bindings/${id}`, { method: "DELETE", parse: false }), - bindingApprove: (id) => request(`/api/bindings/${id}/approve`, { method: "POST" }), - chatSessions: () => request("/api/chat/sessions"), - chatMessages: (id) => request(`/api/chat/sessions/${encodeURIComponent(id)}/messages`), - chatTurns: (id) => request(`/api/chat/sessions/${encodeURIComponent(id)}/turns`), - chatCancel: (sessionID) => request("/api/chat/cancel", { method: "POST", body: { session_id: sessionID } }), - chatMessage: (channelID, text) => - request("/api/chat/message", { - method: "POST", - body: { channel_id: channelID, source_id: randomUUID(), text, page: location.hash.slice(1) || "/" }, - }), - chatPersona: (sessionID, name) => request("/api/chat/persona", { method: "POST", body: { session_id: sessionID, name } }), - chatUpdate: () => request("/api/chat/update"), - chatUpdateDefer: (snapshot) => request("/api/chat/update/defer", { method: "POST", body: { snapshot } }), - // Installing restarts archied, so it is allowed far longer than a normal - // request before the UI gives up. - chatUpdateInstall: (snapshot) => request("/api/chat/update/install", { method: "POST", body: { snapshot }, timeoutMs: 120000 }), - chatDangerous: () => request("/api/chat/dangerous"), - chatDangerousRequest: (kind, spec) => - request(`/api/chat/dangerous/${encodeURIComponent(kind)}`, { method: "POST", body: { spec } }), - chatDangerousDecision: (id, decision) => - request(`/api/chat/dangerous/${encodeURIComponent(id)}/decision`, { method: "POST", body: { decision } }), - // A server-sent event stream cannot be parsed as JSON and outlives a normal - // request, so the caller owns the abort controller and the timeout, and - // reads the body itself. Only the URL, headers, and failure shape are shared. - chatStream: (payload, { signal } = {}) => - send("/api/chat/stream", { - method: "POST", - headers: { Accept: "text/event-stream", "Content-Type": "application/json", "X-Archie-CSRF": "1" }, - body: JSON.stringify(payload), - signal, - }), -}; - -/** - * Subscribe to archied's event stream. Returns an unsubscribe function. - * Reconnection is the browser's job via EventSource, but a closed stream is - * surfaced to the caller so the UI can show it rather than silently freezing. - */ -export function subscribeEvents(onEvent, onStateChange) { - const src = new EventSource("/events"); - src.onopen = () => onStateChange?.("live"); - src.onerror = () => onStateChange?.("reconnecting"); - src.onmessage = (e) => { - try { - onEvent(JSON.parse(e.data)); - } catch { - /* a malformed frame should not kill the stream */ - } - }; - return () => src.close(); -} - -export function subscribeLogs(onEntry, onStateChange) { - const src = new EventSource("/api/logs/stream"); - src.onopen = () => onStateChange?.("live"); - // onerror fires both for a drop the browser will retry and for one it has - // given up on; readyState is what tells them apart. - src.onerror = () => onStateChange?.(streamStateFor(src.readyState)); - src.onmessage = (event) => { - try { onEntry(JSON.parse(event.data)); } catch { /* malformed log frame */ } - }; - return () => src.close(); -} diff --git a/ui/src/base/format.jsx b/ui/src/base/format.jsx deleted file mode 100644 index 08b02dbf1..000000000 --- a/ui/src/base/format.jsx +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Display formatting shared across the dashboard pages. Pure functions: no - * DOM, no framework. - */ - -/** Humanised relative time: "2 min ago". Raw timestamps make people do maths. */ -export function ago(value) { - if (!value) return "—"; - const then = value instanceof Date ? value : new Date(value); - const secs = Math.floor((Date.now() - then.getTime()) / 1000); - if (!Number.isFinite(secs)) return "—"; - if (secs < 45) return "just now"; - const units = [ - ["min", 60], - ["hr", 3600], - ["day", 86400], - ["wk", 604800], - ]; - let label = "min", - size = 60; - for (const [l, s] of units) { - if (secs >= s) [label, size] = [l, s]; - } - const n = Math.floor(secs / size); - return `${n} ${label}${n === 1 ? "" : "s"} ago`; -} - -/** Compact number: 2_400_000 -> "2.4M". Long digit strings do not scan. */ -export function compact(n) { - if (n == null || Number.isNaN(n)) return "—"; - return new Intl.NumberFormat(undefined, { notation: "compact", maximumFractionDigits: 1 }).format(n); -} diff --git a/ui/src/base/gauge.jsx b/ui/src/base/gauge.jsx deleted file mode 100644 index 6a1837fe4..000000000 --- a/ui/src/base/gauge.jsx +++ /dev/null @@ -1,90 +0,0 @@ -import { h } from "preact"; - -/** - * Arc gauge for a single headline percentage. - * - * A percentage that decides whether you need to act deserves more than a line - * of text -- the arc is readable at a glance from across a room, which a - * number is not. Colour follows the value, so "is this bad" is answered before - * the digits are read. - */ -export function Gauge({ value, label, size = 168 }) { - const pct = Math.max(0, Math.min(100, Number(value) || 0)); - const stroke = pct >= 90 ? "var(--ok)" : pct >= 70 ? "var(--warn)" : "var(--danger)"; - - // 240-degree arc, opening downward, so the value reads left-to-right. - const r = 62; - const cx = size / 2; - const cy = size / 2; - const sweep = 240; - const start = 150; - const circumference = 2 * Math.PI * r * (sweep / 360); - - const arc = (from, deg) => { - const a0 = (from * Math.PI) / 180; - const a1 = ((from + deg) * Math.PI) / 180; - const large = deg > 180 ? 1 : 0; - return [ - `M ${cx + r * Math.cos(a0)} ${cy + r * Math.sin(a0)}`, - `A ${r} ${r} 0 ${large} 1 ${cx + r * Math.cos(a1)} ${cy + r * Math.sin(a1)}`, - ].join(" "); - }; - - return ( -
- - - - -
-
{`${Math.round(pct)}%`}
-
{label}
-
-
- ); -} - -/** - * Segmented proportional bar with a legend. - * - * segments: [{ label, value, kind }] where kind maps to a status token. - * Used for budget composition -- what is spent, committed and still free -- - * because three related quantities are easier to compare in one bar than in - * three separate numbers. - */ -export function SegmentBar({ segments }) { - const total = segments.reduce((a, s) => a + (s.value || 0), 0) || 1; - return ( -
-
- {segments - .filter((s) => s.value > 0) - .map((s) => ( - - ))} -
-
- {segments.map((s) => ( - - - {s.label} - - ))} -
-
- ); -} diff --git a/ui/src/base/icons.jsx b/ui/src/base/icons.jsx deleted file mode 100644 index e166266a5..000000000 --- a/ui/src/base/icons.jsx +++ /dev/null @@ -1,64 +0,0 @@ -import { h } from "preact"; - -/** - * Icon set. - * - * A single stroked 24-grid system rather than Unicode glyphs: glyphs render at - * different weights and baselines per platform, cannot inherit stroke width, - * and have no consistent optical size. Every icon here shares the same grid, - * stroke and cap style, so a row of them lines up. - */ - -const paths = { - dashboard: '', - chat: '', - tasks: '', - logs: '', - skills: '', - workflows: '', - memory: '', - channels: '', - curators: '', - captures: '', - mappings: '', - bindings: '', - settings: '', - search: '', - moon: '', - sun: '', - refresh: '', - bell: '', - trendUp: '', - trendDown: '', - check: '', - close: '', - "message-circle-plus": '', - help: '', -}; - -/** - * Icon draws one glyph from the set. size is the rendered box; the grid is - * always 24 so stroke weight stays optically consistent at any size. - * - * The glyph bodies are the `paths` strings above, injected as raw SVG. They are - * in-repo constants and Preact cannot turn markup into elements, so re-authoring - * twenty multi-element glyphs as JSX would trade a data table for code without - * changing a single drawn pixel. - */ -export function Icon({ name, size = 18, className = "" }) { - return ( - - ); -} diff --git a/ui/src/base/log-row.jsx b/ui/src/base/log-row.jsx deleted file mode 100644 index cf3ec5d46..000000000 --- a/ui/src/base/log-row.jsx +++ /dev/null @@ -1,65 +0,0 @@ -import { h } from "preact"; - -/** - * Shared log-entry rendering. Both the daemon-wide log page - * (ui/src/logs/logs.jsx) and a task's own attempt log - * (ui/src/tasks/task-logs.jsx) render the same Entry shape from - * internal/logging, so the row markup lives here rather than being - * duplicated a second time -- see CLAUDE.md's "extract to base on the - * second distinct consumer". - */ - -// The level filter vocabulary. Server-side level filtering takes a CSV of -// levels (`splitCSV` in internal/webui/api_tasks_logs.go), so the combined -// options are a wire concern too, not a display choice. It lives here because -// both the daemon log page and a task attempt's log pane filter by level. -export const LOG_LEVELS = [ - { value: "", label: "All levels" }, - { value: "ERROR", label: "Errors" }, - { value: "WARN,ERROR", label: "Warnings and errors" }, - { value: "INFO,WARN,ERROR", label: "Info and above" }, - { value: "DEBUG", label: "Debug only" }, -]; - -export function levelKind(level) { - switch ((level || "").toUpperCase()) { - case "ERROR": - return "danger"; - case "WARN": - return "warn"; - case "DEBUG": - return "idle"; - default: - return "info"; - } -} - -export function LogRow({ entry }) { - const fields = entry.fields || {}; - return ( -
- {shortTime(entry.time)} - {(entry.level || "info").toUpperCase()} - - {entry.message || entry.msg || ""} - {Object.entries(fields).map(([k, v]) => ( - - {k} - {String(fmtValue(v))} - - ))} - -
- ); -} - -export function fmtValue(v) { - if (v == null) return ""; - return typeof v === "object" ? JSON.stringify(v) : v; -} - -export function shortTime(value) { - const d = value instanceof Date ? value : new Date(value); - if (Number.isNaN(d.getTime())) return "--:--:--"; - return d.toTimeString().slice(0, 8); -} diff --git a/ui/src/base/pill.jsx b/ui/src/base/pill.jsx deleted file mode 100644 index cf9588a50..000000000 --- a/ui/src/base/pill.jsx +++ /dev/null @@ -1,13 +0,0 @@ -import { h } from "preact"; - -/** - * Status pill: a small labeled badge whose color follows a semantic kind - * (ok/warn/danger/info/idle -- see css/pill.css). Extracted from 11 - * independent, byte-identical local copies (tasks, logs, mappings, - * captures, settings, update-status, skills, dashboard, memory, channels, - * curators) per organisation.md's "extract on the second distinct - * consumer" rule -- archie-core-mlro. - */ -export function Pill({ text, kind = "idle" }) { - return {text}; -} diff --git a/ui/src/base/statTile.jsx b/ui/src/base/statTile.jsx deleted file mode 100644 index 2e13fc700..000000000 --- a/ui/src/base/statTile.jsx +++ /dev/null @@ -1,68 +0,0 @@ -import { h } from "preact"; -import { Icon } from "./icons.jsx"; - -/** - * A KPI tile: label, big value, trend against a stated comparison window, and - * a sparkline. The comparison line is not decoration -- a number without a - * baseline cannot be acted on, so `compare` is required. - * - * trend > 0 renders as an increase. `goodDirection` says whether that is good, - * because rising latency and rising success rate are not the same news. - * - * The headline value is rendered whatever its type, including 0 and "": a tile - * that showed a label and a comparison line with no number above them read as - * a broken dashboard on every fresh install. - */ -export function StatTile({ label, value, unit, trend, compare, series = [], goodDirection = "up" }) { - const dir = trend == null ? null : trend >= 0 ? "up" : "down"; - const good = dir == null ? null : dir === goodDirection; - - return ( -
-
- {label} - {dir ? ( - - - {`${Math.abs(trend).toFixed(1)}%`} - - ) : null} -
-
- {value} - {unit ? {unit} : null} -
- {compare ?
{compare}
: null} - {series.length > 1 ? : null} -
- ); -} - -/** - * Inline SVG sparkline. Shows shape, not exact values -- the tile's headline - * number carries the precision. - */ -export function Sparkline({ series, stroke = "var(--ok)", width = 220, height = 34 }) { - const max = Math.max(...series, 1); - const min = Math.min(...series, 0); - const span = max - min || 1; - const step = series.length > 1 ? width / (series.length - 1) : width; - - const points = series - .map((v, i) => `${(i * step).toFixed(1)},${(height - ((v - min) / span) * height).toFixed(1)}`) - .join(" "); - - return ( - - ); -} diff --git a/ui/src/base/stream-state.js b/ui/src/base/stream-state.js deleted file mode 100644 index 3c12ad9bb..000000000 --- a/ui/src/base/stream-state.js +++ /dev/null @@ -1,24 +0,0 @@ -// What an EventSource error actually means. -// -// In base/ rather than logs/ because this is EventSource semantics, not a -// logs concept, and base must not import a feature folder. -// -// EventSource fires onerror both for a dropped connection it will retry and -// for one it has given up on. Reporting "reconnecting" for both left the logs -// page showing a permanent amber "reconnecting" pill against a stream that had -// stopped for good, next to text claiming live logs were still arriving -// (archie-core-c5bz). -// -// readyState is the difference: CONNECTING means a retry is scheduled, CLOSED -// means the browser will not try again. - -/** - * streamStateFor maps an EventSource readyState to the state the UI reports: - * "live", "reconnecting", or "unavailable". - */ -export function streamStateFor(readyState) { - // Numeric literals rather than EventSource.* so this is testable without one. - if (readyState === 0) return "reconnecting"; - if (readyState === 1) return "live"; - return "unavailable"; -} diff --git a/ui/src/base/task-meta.jsx b/ui/src/base/task-meta.jsx deleted file mode 100644 index 775e3b7fa..000000000 --- a/ui/src/base/task-meta.jsx +++ /dev/null @@ -1,104 +0,0 @@ -// Central lifecycle vocabulary for the dashboard. The backend is the source of -// truth: /api/task-meta returns the statuses (label, pill severity, "needs you" -// grouping) and operator actions (label, button variant, confirm prompt). This -// module fetches that catalog and exposes the accessors the rest of the UI -// reads, so no surface keeps a hand-synced copy of the vocabulary. -// -// The defaults below are a freeze-dried snapshot that render immediately and -// keep working when archied is unreachable; loadTaskMeta() replaces them with -// the live catalog as soon as it arrives. They must match the backend catalog -// so drawing the page never flashes a stale label. -// -// loadTaskMeta() is called once at boot by main.jsx, and that call is the whole -// mechanism: without it these accessors serve the snapshot forever and a -// catalogue change on the server never reaches the browser, however true the -// paragraph above reads. -// -// The dashboard draws a line here between two kinds of vocabulary. Anything -// that is *presentation* -- a status's label, pill severity and "needs you" -// grouping, or a control's label and confirm prompt -- is served, because the -// server owns the words as well as the ids. A wire id the daemon produces and -// the dashboard merely labels is mirrored instead, with a literal pin on each -// side so a one-sided rename fails a test rather than drifting quietly: see -// tasks/changed-files.jsx (FILE_STATUS) and tasks/attempt-config.jsx -// (CONFIG_SCHEMA). -import { api } from "./api.jsx"; - -const DEFAULT_STATUSES = [ - { id: "queued", label: "Queued", kind: "idle" }, - { id: "running", label: "Working", kind: "info" }, - { id: "waiting_human", label: "Waiting for you", kind: "warn", needs_you: true }, - { id: "pr_open", label: "In review", kind: "ok" }, - { id: "merged", label: "Merged", kind: "ok" }, - { id: "parked", label: "Parked", kind: "warn", needs_you: true }, - { id: "dead", label: "Stopped (too many retries)", kind: "danger" }, - { id: "rejected", label: "Rejected", kind: "danger" }, - { id: "closed_wont_do", label: "Won't do", kind: "idle" }, -]; - -const DEFAULT_ACTIONS = [ - { id: "cancel", label: "Cancel", kind: "quiet", confirm: `Cancel "{title}"? This closes the forge issue.` }, - { id: "stop", label: "Stop", kind: "primary", confirm: `Stop "{title}"? Recoverable work will remain parked.` }, - { id: "approve", label: "Approve", kind: "primary" }, - { id: "reject", label: "Reject", kind: "quiet", confirm: `Reject "{title}"? This closes the forge issue.` }, - { id: "retry", label: "Retry", kind: "primary" }, - { id: "abandon", label: "Abandon", kind: "quiet", confirm: `Abandon "{title}"? This closes the forge issue.` }, - { id: "archive", label: "Archive", kind: "quiet", confirm: `Archive the local record for "{title}"?` }, - { id: "open_pr", label: "Open PR", kind: "link" }, - { id: "open_issue", label: "Open issue", kind: "link" }, -]; - -let statuses = [...DEFAULT_STATUSES]; -let actions = [...DEFAULT_ACTIONS]; -let statusById = new Map(statuses.map((s) => [s.id, s])); -let actionById = new Map(actions.map((a) => [a.id, a])); - -function rebuildIndexes() { - statusById = new Map(statuses.map((s) => [s.id, s])); - actionById = new Map(actions.map((a) => [a.id, a])); -} - -// loadTaskMeta upgrades the dashboard from the server catalog. It never throws: -// a failed fetch keeps the defaults so the UI still renders. -export async function loadTaskMeta() { - try { - const data = await api.taskMeta(); - if (Array.isArray(data?.statuses)) statuses = data.statuses; - if (Array.isArray(data?.actions)) actions = data.actions; - rebuildIndexes(); - } catch { - // archied unreachable or not yet serving this route; keep the defaults. - } -} - -// statusLabel is the human-readable name for a lifecycle status. -export function statusLabel(id) { - return statusById.get(id)?.label || id || "Unknown"; -} - -// statusKind is the pill severity token (idle, info, ok, warn, danger). -export function statusKind(id) { - return statusById.get(id)?.kind || "idle"; -} - -// statusList returns every known lifecycle status in display order. -export function statusList() { - return statuses; -} - -// statusIds returns every known lifecycle status id, in display order. -export function statusIds() { - return statuses.map((s) => s.id); -} - -// attentionStatusIds is the set of statuses that count toward the "Needs you" -// filter (work that is waiting on a human). -export function attentionStatusIds() { - return new Set(statuses.filter((s) => s.needs_you).map((s) => s.id)); -} - -// actionFor returns the presentation metadata for an operator control, or null -// if the backend has never seen it. -export function actionFor(id) { - return actionById.get(id) || null; -} diff --git a/ui/src/base/uuid.jsx b/ui/src/base/uuid.jsx deleted file mode 100644 index dfc80f3be..000000000 --- a/ui/src/base/uuid.jsx +++ /dev/null @@ -1,20 +0,0 @@ -// randomUUID keeps client-generated identifiers working on HTTP deployments. -// crypto.randomUUID is restricted to secure contexts, while getRandomValues -// remains available on the older browsers and plain-HTTP origins Archie -// supports. -export function randomUUID(cryptoAPI = globalThis.crypto) { - if (typeof cryptoAPI?.randomUUID === "function") return cryptoAPI.randomUUID(); - - const bytes = new Uint8Array(16); - if (typeof cryptoAPI?.getRandomValues === "function") { - cryptoAPI.getRandomValues(bytes); - } else { - for (let index = 0; index < bytes.length; index += 1) { - bytes[index] = Math.floor(Math.random() * 256); - } - } - bytes[6] = (bytes[6] & 0x0f) | 0x40; - bytes[8] = (bytes[8] & 0x3f) | 0x80; - const hex = Array.from(bytes, (byte) => byte.toString(16).padStart(2, "0")); - return `${hex.slice(0, 4).join("")}-${hex.slice(4, 6).join("")}-${hex.slice(6, 8).join("")}-${hex.slice(8, 10).join("")}-${hex.slice(10).join("")}`; -} diff --git a/ui/src/bindings/binding-editor.jsx b/ui/src/bindings/binding-editor.jsx deleted file mode 100644 index cee70896f..000000000 --- a/ui/src/bindings/binding-editor.jsx +++ /dev/null @@ -1,46 +0,0 @@ -import { h } from "preact"; -import { Pill } from "../base/pill.jsx"; - -/** - * Pure rendering logic for the bindings editor, split out from - * bindings.jsx so it is unit-testable without the page's fetch wiring, - * mirroring mappings/mapping-editor.jsx. - */ - -const STATUS_LABELS = { - draft: "draft", - pending_approval: "pending approval", - armed: "armed", -}; - -const STATUS_KINDS = { - draft: "idle", - pending_approval: "warn", - armed: "ok", -}; - -/** Renders a binding's Status as a labeled pill -- draft/pending_approval/armed. */ -export function StatusPill({ status }) { - return ; -} - -/** One saved binding's summary row for the bindings list. */ -export function BindingRow({ binding: b, onEdit, onApprove, onDelete }) { - const repoPin = b.owner && b.repo ? `${b.owner}/${b.repo}` : "—"; - return ( - - {b.name} - {b.matcher?.source || "—"} - {b.workflow} - {repoPin} - - - - {b.status === "pending_approval" && ( - - )} - - - - ); -} diff --git a/ui/src/bindings/bindings.css b/ui/src/bindings/bindings.css deleted file mode 100644 index f8934a4dc..000000000 --- a/ui/src/bindings/bindings.css +++ /dev/null @@ -1,32 +0,0 @@ -/* Playbook binding editor: tie a matcher, a field mapping, and a - workflow together, gated by an explicit approval state machine. */ - -.binding-form { - margin-bottom: var(--sp-4); - padding: var(--sp-4); -} - -.binding-form-row { - display: flex; - flex-direction: column; - gap: var(--sp-1); - margin-bottom: var(--sp-3); - font-size: var(--text-sm); - color: var(--fg-subtle); -} - -.binding-input, -.binding-select { - padding: var(--sp-2); - border: 1px solid var(--border-strong); - border-radius: var(--radius-sm); - background: var(--bg-raised); - color: var(--fg); - font: inherit; -} - -.binding-error { - color: var(--danger, #e5484d); - font-size: var(--text-sm); - margin-bottom: var(--sp-3); -} diff --git a/ui/src/bindings/bindings.jsx b/ui/src/bindings/bindings.jsx deleted file mode 100644 index 43c712565..000000000 --- a/ui/src/bindings/bindings.jsx +++ /dev/null @@ -1,221 +0,0 @@ -import { h } from "preact"; -import { useState, useEffect } from "preact/hooks"; -import "./bindings.css"; -import { api } from "../base/api.jsx"; -import { BindingRow } from "./binding-editor.jsx"; - -export function Empty({ title, detail }) { - return ( -
-
{title}
- {detail &&
{detail}
} -
- ); -} - -/** - * Playbook bindings (t2db.8): tie a matcher + payload mapping + workflow - * together, with a draft -> pending_approval -> armed state machine so - * nothing self-arms. See docs/architecture/bindings.md and - * docs/prds/payload-field-mapping.md. Owner/Repo optionally pin a - * multi-repo deployment's dispatch target (archie-core-t2db.8's backend - * fix, commit ac42f64). - */ -export function bindingsPage(query) { - return ; -} - -function emptyEditor() { - return { - id: null, - name: "", - source: "", - mappingId: "", - workflow: "", - owner: "", - repo: "", - secret: "", - actionError: null, - }; -} - -function BindingsApp({ query }) { - const [bindings, setBindings] = useState([]); - const [mappings, setMappings] = useState([]); - const [workflows, setWorkflows] = useState([]); - const [loadError, setLoadError] = useState(null); - const [editor, setEditor] = useState(null); - - const load = async () => { - try { - const [bRes, mRes, wRes] = await Promise.all([api.bindings(), api.mappings(), api.workflows()]); - setBindings(bRes.bindings || []); - setMappings(mRes.mappings || []); - setWorkflows((wRes.definitions || []).filter((d) => d.enabled)); - setLoadError(null); - } catch (err) { - setLoadError(String(err.message || err)); - } - }; - - useEffect(() => { - load(); - }, []); - - const startCreate = () => { - setEditor(emptyEditor()); - }; - - const startEdit = (b) => { - setEditor({ - id: b.id, - name: b.name, - source: b.matcher?.source || "", - mappingId: b.mapping_id ? String(b.mapping_id) : "", - workflow: b.workflow || "", - owner: b.owner || "", - repo: b.repo || "", - secret: "", - actionError: null, - }); - }; - - const cancel = () => setEditor(null); - - const save = async () => { - const body = { - name: editor.name, - matcher: { source: editor.source }, - mapping_id: Number(editor.mappingId) || 0, - workflow: editor.workflow, - owner: editor.owner, - repo: editor.repo, - secret: editor.secret, - }; - try { - if (editor.id) { - await api.bindingUpdate(editor.id, body); - } else { - await api.bindingCreate(body); - } - setEditor(null); - await load(); - } catch (err) { - setEditor((prev) => ({ ...prev, actionError: String(err.message || err) })); - } - }; - - const approve = async (b) => { - try { - await api.bindingApprove(b.id); - await load(); - } catch (err) { - setLoadError(String(err.message || err)); - } - }; - - const remove = async (b) => { - if (!window.confirm(`Delete binding "${b.name}"?`)) return; - try { - await api.bindingDelete(b.id); - await load(); - } catch (err) { - setLoadError(String(err.message || err)); - } - }; - - const renderList = () => ( -
-
-
-

Playbook bindings

-

Tie a matcher, a field mapping, and a workflow together. New and edited bindings need explicit approval before they can fire.

-
-
- -
-
- {loadError ? ( - - ) : bindings.length ? ( -
-
- - - - {["Name", "Source", "Workflow", "Repo pin", "Status", ""].map((h, i) => ( - - ))} - - - - {bindings.map((b) => ( - startEdit(b)} onApprove={() => approve(b)} onDelete={() => remove(b)} /> - ))} - -
{h}
-
-
- ) : ( - - )} -
- ); - - const renderEditor = () => ( -
-
-
-

{editor.id ? "Edit binding" : "New binding"}

-
-
- - -
-
- {editor.actionError &&
{editor.actionError}
} -
- - - - - - - -
-
- ); - - return editor ? renderEditor() : renderList(); -} diff --git a/ui/src/capabilities.jsx b/ui/src/capabilities.jsx deleted file mode 100644 index 39e79d21b..000000000 --- a/ui/src/capabilities.jsx +++ /dev/null @@ -1,18 +0,0 @@ -// Which dashboard sections the serving process can actually back. -// -// From the UI cutover the dashboard is served by one composition: the -// extracted UI service, which holds two remote contracts (Gateway ChatContract -// and the State Store) and no daemon runtime handles. A section with nothing -// behind it still answers -- an empty list, a "disabled" marker, a 501 -- and -// the browser cannot tell that from a quiet deployment. GET /api/capabilities -// says which sections are backed here, and the nav drops the rest -// (archie-core-8cda.5.4). - -// hiddenRoutes returns the paths whose section the server reported it cannot -// serve. An unreported section stays visible: a page that says "unavailable" -// is recoverable, a navigation entry that silently vanished is not, so an -// older server or a failed capabilities read shows everything. -export function hiddenRoutes(sections, routes) { - if (!sections) return []; - return routes.filter((r) => r.section && sections[r.section] === false).map((r) => r.path); -} diff --git a/ui/src/captures/capture-row.jsx b/ui/src/captures/capture-row.jsx deleted file mode 100644 index 280f69403..000000000 --- a/ui/src/captures/capture-row.jsx +++ /dev/null @@ -1,75 +0,0 @@ -import { h, Fragment } from "preact"; -import { ago } from "../base/format.jsx"; -import { Pill } from "../base/pill.jsx"; - -/** - * One captured event's summary row, plus its expandable detail row when - * expanded is true. Split out from captures.js so it can be unit tested - * without the page's fetch/SSE wiring, mirroring tasks/task-row.js. - */ -export function CaptureRow({ capture: c, expanded, onToggle }) { - const handleKeyDown = (e) => { - if (e.key !== "Enter" && e.key !== " ") return; - e.preventDefault(); - onToggle(e); - }; - - return ( - - - {c.source || "(unknown)"} - {ago(c.received_at)} - - {c.content_type || "—"} - - - - - {expanded && } - - ); -} - -export function CaptureDetailRow({ capture: c }) { - return ( - - -
-
-
Payload
- -
-
-
Headers
- -
-
- - - ); -} - -function PayloadView({ raw }) { - if (!raw) return
(empty)
; - return
{prettyPrint(raw)}
; -} - -// prettyPrint indents valid JSON for readability; a non-JSON payload (the -// capture endpoint stores whatever arrives, JSON or not, per -// docs/prds/webhook-intake-security.md) is shown as-is rather than failing -// to render. -export function prettyPrint(raw) { - try { - return JSON.stringify(JSON.parse(raw), null, 2); - } catch { - return raw; - } -} diff --git a/ui/src/captures/captures.css b/ui/src/captures/captures.css deleted file mode 100644 index d2452c9de..000000000 --- a/ui/src/captures/captures.css +++ /dev/null @@ -1,61 +0,0 @@ -/* Event inspector: captured payloads, explorable per row. */ - -.capture-row { - cursor: pointer; -} - -.capture-row:hover { - background: var(--bg-raised); -} - -.capture-row:focus-visible { - outline: 2px solid var(--accent); - outline-offset: -2px; -} - -.capture-detail-row td { - padding: var(--sp-3) var(--sp-3) var(--sp-4); - border-bottom: 1px solid var(--border); -} - -.capture-detail { - display: grid; - gap: var(--sp-4); - grid-template-columns: 1fr 1fr; -} - -.capture-detail-section { - min-width: 0; -} - -.capture-detail-title { - font-size: var(--text-xs); - text-transform: uppercase; - letter-spacing: 0.05em; - color: var(--fg-subtle); - margin-bottom: var(--sp-2); -} - -.capture-payload { - background: var(--bg-raised); - border: 1px solid var(--border-strong); - border-radius: var(--radius-sm); - padding: var(--sp-3); - font-family: var(--font-mono); - font-size: var(--text-xs); - white-space: pre-wrap; - word-break: break-word; - max-height: 24rem; - overflow: auto; -} - -.capture-empty { - color: var(--fg-muted); - font-size: var(--text-sm); -} - -@media (max-width: 640px) { - .capture-detail { - grid-template-columns: 1fr; - } -} diff --git a/ui/src/captures/captures.jsx b/ui/src/captures/captures.jsx deleted file mode 100644 index 2a10a546d..000000000 --- a/ui/src/captures/captures.jsx +++ /dev/null @@ -1,122 +0,0 @@ -import { h, Fragment } from "preact"; -import { useState, useEffect } from "preact/hooks"; -import "./captures.css"; -import { api, subscribeEvents } from "../base/api.jsx"; -import { CaptureRow } from "./capture-row.jsx"; -import { Pill } from "../base/pill.jsx"; - -export function Empty({ title, detail }) { - return ( -
-
{title}
- {detail &&
{detail}
} -
- ); -} - -/** - * Event inspector (t2db.2): the operator-facing half of capture. Recent - * inbound events, newest first, with the full redacted payload explorable - * per row -- see docs/prds/event-capture-storage.md for what the backend - * guarantees (retention, redaction, disk bounds). - * - * Live updates ride the same /events SSE stream every other page uses - * (Server.emit publishes a "capture" kind event on every successful - * capture) rather than polling, so a captured event appears here without a - * manual refresh. That event is deliberately lightweight (id + source only, - * no payload -- see handleCapture's comment on why): it is treated purely - * as an invalidation signal, triggering a refetch of the authoritative list - * rather than being merged into local state directly. - */ -export function capturesPage(query) { - return ; -} - -function CapturesApp({ query }) { - const [captures, setCaptures] = useState([]); - const [expandedId, setExpandedId] = useState(null); - const [loadError, setLoadError] = useState(null); - const [enabled, setEnabled] = useState(true); - const [streamState, setStreamState] = useState({ text: "connecting", kind: "idle" }); - - const load = async () => { - try { - const res = await api.captures(100); - setEnabled(res.enabled !== false); - setCaptures(res.captures || []); - setLoadError(null); - } catch (err) { - setLoadError(String(err.message || err)); - } - }; - - useEffect(() => { - load(); - const unsubscribe = subscribeEvents( - (event) => { - if (event.kind !== "capture") return; - load(); - }, - (state) => { - setStreamState({ - text: state, - kind: state === "live" ? "ok" : "warn", - }); - } - ); - return () => unsubscribe(); - }, []); - - const renderRows = () => { - if (loadError) { - return ; - } - if (!enabled) { - return ; - } - if (!captures.length) { - return ; - } - return ( -
- - - - {["Source", "Received", "Binding", "Content type", ""].map((h, i) => ( - - ))} - - - - {captures.map((c) => ( - setExpandedId(expandedId === c.id ? null : c.id)} - /> - ))} - -
{h}
-
- ); - }; - - return ( -
-
-
-

Event inspector

-

Real inbound payloads archie has captured, most recent first.

-
-
- - -
-
-
- {renderRows()} -
-
- ); -} diff --git a/ui/src/channels/channels.css b/ui/src/channels/channels.css deleted file mode 100644 index 67c1a50d0..000000000 --- a/ui/src/channels/channels.css +++ /dev/null @@ -1,19 +0,0 @@ -/* Channels-only styles. */ - -.channel-card { - display: flex; - flex-direction: column; - gap: var(--sp-1); -} - -.channel-desc { - color: var(--fg-muted); - font-size: var(--text-sm); - margin: 0; -} - -.channel-detail { - color: var(--fg-subtle); - font-size: var(--text-xs); - margin: 0; -} diff --git a/ui/src/channels/channels.jsx b/ui/src/channels/channels.jsx deleted file mode 100644 index beecb79fd..000000000 --- a/ui/src/channels/channels.jsx +++ /dev/null @@ -1,101 +0,0 @@ -import { h } from "preact"; -import { useState, useEffect } from "preact/hooks"; -import "./channels.css"; -import { api } from "../base/api.jsx"; -import { Pill } from "../base/pill.jsx"; - -export function Empty({ title, detail }) { - return ( -
-
{title}
- {detail &&
{detail}
} -
- ); -} - -function stateTone(state, configured) { - if (state === "running") return "ok"; - if (state === "failed" || state === "degraded") return "warn"; - return configured ? "idle" : "idle"; -} - -function ChannelsApp() { - const [channels, setChannels] = useState([]); - const [error, setError] = useState(null); - - const load = async () => { - try { - const res = await api.channels(); - setChannels(res?.channels || []); - setError(null); - } catch (err) { - setError(String(err.message || err)); - } - }; - - useEffect(() => { - load(); - }, []); - - return ( -
-
-
-

Channels

-

The conversational front-ends Archie can be reached through.

-
-
- -
-
-
- {error ? ( - - ) : channels.length === 0 ? ( - - ) : ( - channels.map(channel => ( -
-
-

{channel.name}

- -
-

{channel.description}

-

{channel.detail}

- {channel.reload_supported ? ( - - ) : ( -

Reload requires a daemon restart for this adapter.

- )} -
- )) - )} -
-
- ); -} - -export function channelsPage(query) { - return ; -} diff --git a/ui/src/chat/chat-render.jsx b/ui/src/chat/chat-render.jsx deleted file mode 100644 index aa912a0b5..000000000 --- a/ui/src/chat/chat-render.jsx +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Chat presentation helpers that are not components. - * - * The bubble row markup that used to live here is gone with the imperative DOM - * layer: `assistantBubble`/`chatBubble` were a parallel, unreachable renderer - * (nothing in `src/` called them except the equally unreachable chat-tools - * helpers), and chat.jsx builds those rows as JSX itself. - */ - -export function sessionTitle(session) { - return session.title || session.branch_name || `Conversation ${session.session_id.slice(0, 8)}`; -} - -/** - * panelTitle names the launcher panel's header. The panel is small and the - * session switcher sits below it, so the header says which conversation is - * open rather than repeating the product name. - */ -export function panelTitle(sessions, currentSession) { - if (!currentSession) return "Archie"; - const session = (sessions || []).find((item) => item.session_id === currentSession); - return session ? sessionTitle(session) : "Archie"; -} diff --git a/ui/src/chat/chat-retry.jsx b/ui/src/chat/chat-retry.jsx deleted file mode 100644 index 93b217926..000000000 --- a/ui/src/chat/chat-retry.jsx +++ /dev/null @@ -1,24 +0,0 @@ -import { randomUUID } from "../base/uuid.jsx"; - -export function newChatTurn(text) { - return { text, sourceID: randomUUID() }; -} - -export function retryChatTurn(turn) { - return { ...turn }; -} - -// resolveTurn decides what to send: a real retry descriptor's original turn, -// or a fresh turn built from the composer text. `retry` is untrusted here -- -// a DOM event handler bound as `el.onclick = sendMessage` (rather than -// `() => sendMessage()`) hands the click's MouseEvent to this function as -// `retry`, and a MouseEvent is truthy but has no `.turn`. Only an object -// carrying a `turn.text` string counts as a genuine retry; anything else -// (including no argument) falls back to the composer text instead of -// throwing on a missing property. -export function resolveTurn(retry, composerValue) { - const isRetry = !!(retry && typeof retry === "object" && retry.turn && typeof retry.turn.text === "string"); - const text = isRetry ? retry.turn.text : composerValue.trim(); - const turn = isRetry ? retryChatTurn(retry.turn) : newChatTurn(text); - return { text, turn, isRetry }; -} diff --git a/ui/src/chat/chat-state.jsx b/ui/src/chat/chat-state.jsx deleted file mode 100644 index 272ad8226..000000000 --- a/ui/src/chat/chat-state.jsx +++ /dev/null @@ -1,12 +0,0 @@ -import { randomUUID } from "../base/uuid.jsx"; - -const CHANNEL_KEY = "archie.web.chat.channel"; - -export function channelID() { - let id = localStorage.getItem(CHANNEL_KEY); - if (!id) { - id = randomUUID(); - localStorage.setItem(CHANNEL_KEY, id); - } - return id; -} diff --git a/ui/src/chat/chat-update-status.jsx b/ui/src/chat/chat-update-status.jsx deleted file mode 100644 index 91099c89c..000000000 --- a/ui/src/chat/chat-update-status.jsx +++ /dev/null @@ -1,15 +0,0 @@ -// updateUnavailableMessage decides what -- if anything -- refreshUpdate should -// show when fetching /api/chat/update fails. -// -// A 501 means the release-update-check feature simply isn't configured for -// this deployment (chat.telegram.update_check_command is unset) -- a normal -// state, the same category as an unconfigured chat channel, not a fetch -// failure. It gets no visible banner: callers should render nothing. -// -// Any other error (network failure, 500, ...) is a genuine problem and gets a -// clear, fixed human message -- never the raw fetch error text, which leaks -// implementation detail like literal HTTP status codes into the UI. -export function updateUnavailableMessage(err) { - if (err?.status === 501) return null; - return "Could not check for updates."; -} diff --git a/ui/src/chat/chat.css b/ui/src/chat/chat.css deleted file mode 100644 index 3be932fb8..000000000 --- a/ui/src/chat/chat.css +++ /dev/null @@ -1,226 +0,0 @@ -/* The panel's own column. ChatApp is mounted in a ~440px launcher panel, never - on a page, so there is one column and every row earns its height - (archie-core-hesx). */ -.chat-panel-content { - display: grid; - /* header, bar, then the conversation takes the rest: without the third - track the transcript sized to its content and left the composer floating - above dead space. */ - grid-template-rows: auto auto minmax(0, 1fr); - flex: 1 1 auto; - min-height: 0; - overflow: hidden; -} - -/* One row for everything that is not the conversation: which conversation, - a new one, and the model controls folded away behind a disclosure. */ -.chat-bar { - display: flex; - align-items: center; - gap: var(--sp-2); - padding: var(--sp-2) var(--sp-3); - border-bottom: 1px solid var(--border); -} - -.chat-session-switch { - flex: 1 1 auto; - min-width: 0; -} - -.chat-session-switch select { - width: 100%; - background: var(--surface-hover); - color: var(--fg); - border: 1px solid var(--border); - border-radius: var(--radius-sm); - padding: var(--sp-2); - font: inherit; - font-size: var(--text-sm); -} - -.chat-new, -.chat-settings > summary { - flex: none; -} - -.chat-settings { - position: relative; - flex: none; -} - -.chat-settings > summary { - display: grid; - place-items: center; - width: 32px; - height: 32px; - border-radius: var(--radius-sm); - color: var(--fg-muted); - cursor: pointer; - list-style: none; -} - -.chat-settings > summary::-webkit-details-marker { - display: none; -} - -.chat-settings > summary:hover { - background: var(--surface-hover); - color: var(--fg); -} - -/* Opens over the transcript rather than pushing it down: the panel is short - and the conversation should not jump when the controls are consulted. */ -.chat-settings-body { - position: absolute; - top: calc(100% + var(--sp-2)); - right: 0; - z-index: 2; - display: grid; - gap: var(--sp-3); - width: 15rem; - padding: var(--sp-3); - background: var(--bg-raised); - border: 1px solid var(--border); - border-radius: var(--radius-md); - box-shadow: var(--shadow-md); -} - -.chat-settings-body label { - display: grid; - gap: var(--sp-1); - font-size: var(--text-xs); - color: var(--fg-muted); -} - -.chat-settings-body .chat-select { - width: 100%; -} - -.chat-layout { - display: grid; - min-height: 0; - overflow: hidden; -} - -.chat-workspace { - display: grid; - grid-template-rows: auto minmax(0, 1fr) auto; - min-width: 0; - overflow: hidden; -} - -.chat-workspace-head { - display: flex; - align-items: center; - gap: var(--sp-2); - padding: var(--sp-2) var(--sp-3); - border-bottom: 1px solid var(--border); - font-size: var(--text-xs); -} - -.chat-update-panel { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 .75rem; padding: .7rem .9rem; border: 1px solid var(--border); border-radius: .75rem; color: var(--fg-muted); font-size: .8rem; } -.chat-update-panel > div:first-child { display: grid; gap: .2rem; } -.chat-update-panel strong { color: var(--fg); } -.chat-update-actions { display: flex; gap: .45rem; flex-shrink: 0; } -.chat-dangerous-panel { flex: 0 0 auto; margin: 0 0 .75rem; padding: .8rem .9rem; border: 1px solid color-mix(in srgb, var(--danger) 45%, var(--border)); border-radius: .75rem; } -.chat-dangerous-head, .chat-dangerous-controls, .chat-dangerous-pending { display: flex; align-items: center; justify-content: space-between; gap: .6rem; } -.chat-dangerous-head { margin-bottom: .7rem; } -.chat-dangerous-controls { align-items: stretch; flex-wrap: wrap; } -.chat-dangerous-controls > div { display: flex; gap: .45rem; flex: 1 1 18rem; } -.chat-dangerous-input { min-width: 0; flex: 1; padding: .5rem .65rem; background: var(--surface-hover); color: var(--fg); border: 1px solid var(--border-strong); border-radius: .5rem; font: inherit; } -.chat-dangerous-pending-list { display: grid; gap: .45rem; margin-top: .75rem; } -.chat-dangerous-pending { padding-top: .55rem; border-top: 1px solid var(--border); color: var(--fg-muted); font-size: .8rem; } -.chat-session-list { display: grid; gap: .35rem; margin-top: 1rem; } -.chat-session { display: grid; gap: .25rem; text-align: left; background: transparent; color: var(--fg-muted); border: 1px solid transparent; border-radius: .65rem; padding: .7rem; cursor: pointer; } -.chat-session:hover, .chat-session.active { background: var(--surface-hover); color: var(--fg); border-color: var(--border-strong); } -.chat-session span { font-size: .72rem; } -.chat-session-tools { position: relative; margin-left: .6rem; color: var(--fg-muted); font-size: .78rem; } -.chat-session-tools summary { cursor: pointer; } -.chat-session-tool-list { position: absolute; z-index: 2; right: 0; top: calc(100% + .45rem); display: flex; flex-wrap: wrap; gap: .35rem; width: min(22rem, 72vw); padding: .55rem; background: var(--surface); border: 1px solid var(--border-strong); border-radius: .65rem; box-shadow: 0 .7rem 2rem color-mix(in srgb, #000 30%, transparent); } -.chat-select { background: var(--surface-hover); color: var(--fg); border: 1px solid var(--border-strong); border-radius: .5rem; padding: .5rem .65rem; } -.chat-transcript { overflow: auto; padding: var(--sp-4); display: grid; align-content: start; gap: var(--sp-4); } -.chat-empty-state { align-self: center; justify-self: center; width: 100%; padding: var(--sp-5) 0; text-align: center; } -.chat-empty-mark { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; margin: 0 auto var(--sp-3); border: 1px solid var(--border-strong); border-radius: .8rem; color: var(--accent); font-weight: 700; } -.chat-empty-state h2 { margin: 0; font-size: var(--text-lg); letter-spacing: -.02em; } -.chat-empty-state p { margin: var(--sp-2) 0 var(--sp-4); color: var(--fg-muted); font-size: var(--text-sm); } -.chat-prompt-grid { display: grid; gap: var(--sp-2); } -.chat-prompt { padding: var(--sp-2) var(--sp-3); font-size: var(--text-sm); text-align: left; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-hover); color: var(--fg-muted); cursor: pointer; } -.chat-prompt:hover { color: var(--fg); border-color: var(--border-strong); } -.chat-bubble-row { display: flex; } -.chat-bubble-row.user { justify-content: flex-end; } -.chat-bubble { max-width: min(78ch, 86%); padding: .8rem 1rem; border-radius: .85rem; background: var(--surface-hover); line-height: 1.5; } -.chat-bubble-row.user .chat-bubble { background: color-mix(in srgb, var(--accent) 18%, var(--surface)); } -.chat-bubble-meta { font-size: .7rem; color: var(--fg-muted); margin-bottom: .3rem; } -.chat-bubble-text { white-space: pre-wrap; overflow-wrap: anywhere; } -.chat-bubble-text p { margin: 0 0 .7rem; } -.chat-bubble-text p:last-child { margin-bottom: 0; } -.chat-bubble-text h1, .chat-bubble-text h2, .chat-bubble-text h3 { margin: .2rem 0 .6rem; line-height: 1.2; letter-spacing: -.02em; } -.chat-bubble-text h1 { font-size: 1.25rem; } -.chat-bubble-text h2 { font-size: 1.1rem; } -.chat-bubble-text h3 { font-size: 1rem; } -.chat-bubble-text ul, .chat-bubble-text ol { margin: .25rem 0 .75rem; padding-left: 1.35rem; } -.chat-bubble-text blockquote { margin: .5rem 0; padding: .35rem .75rem; border-left: 3px solid var(--accent); color: var(--fg-muted); } -.chat-bubble-text code { padding: .1rem .3rem; border-radius: .3rem; background: color-mix(in srgb, var(--fg) 10%, transparent); font-size: .9em; } -.chat-bubble-text pre { margin: .6rem 0; padding: .75rem; overflow: auto; border: 1px solid var(--border); border-radius: .5rem; background: color-mix(in srgb, var(--surface) 75%, #000); } -.chat-bubble-text pre code { padding: 0; background: transparent; } -.chat-bubble-text a { color: var(--accent); } -.chat-media-img { max-width: 100%; max-height: 24rem; border-radius: .5rem; margin: .4rem 0; display: block; border: 1px solid var(--border); object-fit: contain; background: var(--surface); cursor: pointer; } -.chat-bubble-text table { width: 100%; margin: .7rem 0; border-collapse: collapse; font-size: .92em; } -.chat-bubble-text th, .chat-bubble-text td { padding: .45rem .6rem; text-align: left; border: 1px solid var(--border); } -.chat-bubble-text th { color: var(--fg); background: color-mix(in srgb, var(--surface) 70%, transparent); font-weight: 700; } -/* Tool activity: a quiet log above the answer it produced. It is deliberately - smaller and dimmer than the reply -- it is evidence, not the point. An empty - list renders nothing, so a turn that called no tools looks untouched. */ -.chat-tools { display: grid; gap: .2rem; margin-bottom: .5rem; font-size: .78rem; } -.chat-tools:empty { display: none; } -.chat-tool { display: flex; gap: .4rem; align-items: baseline; color: var(--fg-muted); overflow-wrap: anywhere; } -.chat-tool-name { color: var(--fg); font-weight: 600; } -.chat-tool.failed .chat-tool-summary { color: var(--danger); } - -/* A dashboard_navigate result: a clickable chip that routes the operator to a - dashboard page. It is an action, not evidence, so it is styled as a button - beside the tool list rather than a muted log line, and it visibly invites a - click. It is the only clickable navigation surface in the transcript. */ -.chat-nav-chip { - display: inline-flex; - align-items: center; - gap: .4rem; - padding: .4rem .7rem; - border-radius: 999px; - border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border)); - background: var(--accent-soft); - color: var(--accent); - font-size: .82rem; - font-weight: 600; - cursor: pointer; - transition: background var(--transition), border-color var(--transition), color var(--transition); -} -.chat-nav-chip:hover { - border-color: var(--accent); - background: color-mix(in srgb, var(--accent) 16%, var(--surface)); -} -.chat-nav-chip:focus-visible { - outline: 2px solid var(--accent); - outline-offset: 2px; -} -.chat-nav-chip-icon { font-size: .8rem; line-height: 1; } - -.chat-compose { padding: var(--sp-3); border-top: 1px solid var(--border); } -/* Text and actions share one row: the buttons sit at the right of the input, - not on a line of their own under it. */ -.chat-composer-shell { position: relative; display: flex; align-items: flex-end; gap: var(--sp-2); padding: .7rem .8rem; background: var(--surface-hover); border: 1px solid var(--border-strong); border-radius: .9rem; } -.chat-composer { flex: 1 1 auto; min-width: 0; min-height: 2.6rem; resize: none; box-sizing: border-box; background: transparent; color: var(--fg); border: 0; padding: .25rem 0; font: inherit; } -.chat-composer:focus { outline: 0; } -.chat-command-menu { position: absolute; z-index: 3; right: .8rem; bottom: calc(100% - .25rem); left: .8rem; display: grid; gap: .15rem; max-height: 18rem; overflow: auto; padding: .35rem; background: var(--surface); border: 1px solid var(--border-strong); border-radius: .7rem; box-shadow: 0 .7rem 2rem color-mix(in srgb, #000 30%, transparent); } -.chat-command-menu[hidden] { display: none; } -.chat-command-option { display: grid; grid-template-columns: minmax(8rem, 14rem) 1fr; gap: .65rem; align-items: center; padding: .5rem .6rem; text-align: left; color: var(--fg-muted); background: transparent; border: 1px solid transparent; border-radius: .45rem; cursor: pointer; } -.chat-command-option:hover, .chat-command-option[aria-selected="true"] { color: var(--fg); background: var(--surface-hover); border-color: var(--border); } -.chat-command-option code { color: var(--fg); } -.chat-compose-actions { display: flex; align-items: center; flex: none; gap: var(--sp-2); } -.chat-hint, .chat-empty { color: var(--fg-muted); font-size: .78rem; } -.chat-command-help { color: var(--fg-muted); font-size: .78rem; margin-right: auto; } -.chat-command-help summary { cursor: pointer; } -.chat-command-list { min-width: min(34rem, 70vw); max-width: 40rem; padding-top: .4rem; line-height: 1.45; } -.chat-command-item { display: grid; grid-template-columns: minmax(10rem, 16rem) 1fr; gap: .7rem; padding: .3rem 0; } -.chat-command-item code { color: var(--fg); } -@media (max-width: 520px) { .chat-update-panel { align-items: flex-start; flex-direction: column; } } diff --git a/ui/src/chat/chat.jsx b/ui/src/chat/chat.jsx deleted file mode 100644 index b2807066a..000000000 --- a/ui/src/chat/chat.jsx +++ /dev/null @@ -1,810 +0,0 @@ -import { h, Fragment } from "preact"; -import { useState, useEffect, useRef } from "preact/hooks"; -import { api } from "../base/api.jsx"; -import { Icon } from "../base/icons.jsx"; -import { ChatMarkdown } from "./markdown.jsx"; -import { channelID } from "./chat-state.jsx"; -import { newChatTurn, retryChatTurn, resolveTurn } from "./chat-retry.jsx"; -import { commandScrollTop } from "./command-scroll.js"; -import { panelTitle, sessionTitle } from "./chat-render.jsx"; - -import "./chat.css"; - -function currentPage() { - return location.hash.slice(1) || "/"; -} - -export function ChatApp({ open = true }) { - const [sessions, setSessions] = useState([]); - const [currentSession, setCurrentSession] = useState(""); - const [messages, setMessages] = useState([]); - const [composerText, setComposerText] = useState(""); - const [statusText, setStatusText] = useState("Ready"); - const [isSending, setIsSending] = useState(false); - - const [selectorData, setSelectorData] = useState({}); - const [selectedPersona, setSelectedPersona] = useState(""); - const [selectedProvider, setSelectedProvider] = useState(""); - const [selectedModel, setSelectedModel] = useState(""); - - const [commandSpecs, setCommandSpecs] = useState([]); - const [commandMatches, setCommandMatches] = useState([]); - const [commandSelection, setCommandSelection] = useState(0); - const [isCommandMenuOpen, setIsCommandMenuOpen] = useState(false); - - const [streamingTurn, setStreamingTurn] = useState(null); - // streamingTurn: { text: string, tools: [], isError: bool, turn: object, isRetry: bool } - - const transcriptRef = useRef(null); - const composerRef = useRef(null); - const activeControllerRef = useRef(null); - const sessionToolsRef = useRef(null); - const commandMenuRef = useRef(null); - const settingsRef = useRef(null); - const isSendingRef = useRef(isSending); - isSendingRef.current = isSending; - - useEffect(() => { - const closeSettings = (event) => { - const details = settingsRef.current; - if (!details?.open) return; - if (event.target instanceof Node && details.contains(event.target)) return; - details.open = false; - }; - document.addEventListener("pointerdown", closeSettings); - document.addEventListener("focusin", closeSettings); - return () => { - document.removeEventListener("pointerdown", closeSettings); - document.removeEventListener("focusin", closeSettings); - }; - }, []); - - // The panel stays mounted so the session survives navigation, so opening it - // is a prop change rather than a mount: focus the composer on that edge. - useEffect(() => { - if (open) composerRef.current?.focus(); - }, [open]); - - // Arrow keys move the palette selection; the list scrolls so the highlight - // stays visible once the matches run past the visible rows. - useEffect(() => { - if (!isCommandMenuOpen) return; - const menu = commandMenuRef.current; - const option = menu?.children?.[commandSelection]; - if (!menu || !option) return; - menu.scrollTop = commandScrollTop({ - scrollTop: menu.scrollTop, - viewportHeight: menu.clientHeight, - optionTop: option.offsetTop, - optionHeight: option.offsetHeight, - }); - }, [commandSelection, isCommandMenuOpen]); - - // Auto scroll transcript to bottom on new messages or streaming tokens - useEffect(() => { - if (transcriptRef.current) { - transcriptRef.current.scrollTop = transcriptRef.current.scrollHeight; - } - }, [messages, streamingTurn]); - - useEffect(() => { - refreshSessions().catch((err) => { - setStatusText(err.message || "Chat unavailable"); - }); - - const onTeardown = () => { - activeControllerRef.current?.abort(); - }; - window.addEventListener("archie:teardown", onTeardown); - return () => { - window.removeEventListener("archie:teardown", onTeardown); - activeControllerRef.current?.abort(); - }; - }, []); - - async function refreshSessions() { - const data = await api.chatSessions(); - const sessionList = data.sessions || []; - setSessions(sessionList); - setSelectorData(data); - - setSelectedPersona(data.active_persona || ""); - const provs = data.providers || []; - const activeProv = data.active_provider || provs[0] || ""; - setSelectedProvider(activeProv); - setSelectedModel(data.active_model || ""); - - const specs = (data.commands || []).map((item) => - typeof item === "string" ? { command: item, usage: item, description: "" } : item - ); - setCommandSpecs(specs); - - if (!currentSession && sessionList[0]) { - await selectSession(sessionList[0].session_id, data, sessionList); - } - } - - async function selectSession(id, dataOverride, listOverride) { - const data = dataOverride || selectorData; - setCurrentSession(id); - setMessages([]); - setStreamingTurn(null); - - const activePersona = data.active_personas?.[id] || data.active_persona || ""; - setSelectedPersona(activePersona); - - try { - await api.chatMessage(channelID(), `/resume ${id}`); - const [msgs, turns] = await Promise.all([api.chatMessages(id), api.chatTurns(id)]); - const byAssistantMessage = new Map(); - for (const turn of turns || []) { - const assistantID = turn.assistant_message_id || turn.AssistantMessageID; - if (assistantID) byAssistantMessage.set(assistantID, turn); - } - const hydrated = (msgs || []).map((message) => { - const messageID = message.message_id || message.MessageID; - const turn = byAssistantMessage.get(messageID); - return turn ? { ...message, tool_calls: turn.tool_calls || turn.ToolCalls || [] } : message; - }); - setMessages(hydrated); - } catch (err) { - setStatusText(err.message || "Could not load session messages"); - } - } - - async function runSessionCommand(command) { - if (!currentSession) return; - try { - setStatusText("Working…"); - const result = await api.chatMessage(channelID(), command); - if (result.session_id) setCurrentSession(result.session_id); - setStatusText(result.reply || "Session updated"); - await refreshSessions(); - if (result.session_id || currentSession) { - await selectSession(result.session_id || currentSession); - } - if (sessionToolsRef.current) sessionToolsRef.current.open = false; - } catch (err) { - setStatusText(err.message || "Session action failed"); - } - } - - function promptSessionCommand(command, message) { - const value = window.prompt(message); - if (value?.trim()) runSessionCommand(`${command} ${value.trim()}`); - } - - function handlePersonaChange(e) { - const val = e.target.value; - setSelectedPersona(val); - if (!currentSession || !val) return; - api.chatPersona(currentSession, val).then(() => { - setSelectorData((prev) => ({ - ...prev, - active_personas: { ...(prev.active_personas || {}), [currentSession]: val }, - })); - setStatusText(`Personality: ${val}`); - }).catch((err) => { - setStatusText(err.message || "Failed to set personality"); - }); - } - - async function handleProviderChange(e) { - const prov = e.target.value; - setSelectedProvider(prov); - if (!prov) return; - try { - const result = await api.chatMessage(channelID(), `/model --provider ${prov}`); - setStatusText(result.reply || "Provider updated"); - await refreshSessions(); - } catch (err) { - setStatusText(`Provider update failed: ${err.message || err}`); - } - } - - async function handleModelChange(e) { - const mod = e.target.value; - setSelectedModel(mod); - if (!mod) return; - try { - const result = await api.chatMessage(channelID(), `/model ${mod}`); - setStatusText(result.reply || "Model updated"); - await refreshSessions(); - } catch (err) { - setStatusText(`Model update failed: ${err.message || err}`); - } - } - - function handleNewChat() { - setComposerText("/new"); - sendMessage({ textOverride: "/new" }); - } - - function handleComposerInput(e) { - const val = e.target.value; - setComposerText(val); - - const before = val.slice(0, e.target.selectionStart); - const match = before.match(/(?:^|\s)\/([^\s]*)$/); - if (match) { - const query = match[1].toLowerCase(); - const matches = commandSpecs.filter((spec) => { - const haystack = `${spec.command} ${spec.description}`.toLowerCase(); - return haystack.includes(query); - }).slice(0, 8); - if (matches.length) { - setCommandMatches(matches); - setCommandSelection(0); - setIsCommandMenuOpen(true); - return; - } - } - setIsCommandMenuOpen(false); - setCommandMatches([]); - } - - function chooseCommand(index) { - const spec = commandMatches[index]; - if (!spec || !composerRef.current) return; - const input = composerRef.current; - const before = input.value.slice(0, input.selectionStart); - const after = input.value.slice(input.selectionStart); - const start = before.search(/(?:^|\s)\/[^\s]*$/); - const tokenStart = start < 0 ? before.length : start + (before[start] === " " ? 1 : 0); - const nextVal = `${before.slice(0, tokenStart)}${spec.command} ${after}`; - setComposerText(nextVal); - setIsCommandMenuOpen(false); - const cursor = tokenStart + spec.command.length + 1; - setTimeout(() => { - input.focus(); - input.setSelectionRange(cursor, cursor); - }, 0); - } - - function handleComposerKeyDown(event) { - if (isCommandMenuOpen && commandMatches.length) { - if ( - event.key === "Enter" && - !event.shiftKey && - !event.ctrlKey && - !event.metaKey && - commandMatches.some((spec) => spec.command === composerText.trim()) - ) { - event.preventDefault(); - setIsCommandMenuOpen(false); - sendMessage(); - return; - } - if (event.key === "ArrowDown") { - event.preventDefault(); - setCommandSelection((prev) => (prev + 1) % commandMatches.length); - return; - } - if (event.key === "ArrowUp") { - event.preventDefault(); - setCommandSelection((prev) => (prev + commandMatches.length - 1) % commandMatches.length); - return; - } - if (event.key === "Enter" && !event.shiftKey && !event.ctrlKey && !event.metaKey) { - event.preventDefault(); - chooseCommand(commandSelection); - return; - } - if (event.key === "Escape") { - event.preventDefault(); - setIsCommandMenuOpen(false); - return; - } - } - if (event.key === "Enter" && !event.shiftKey) { - event.preventDefault(); - sendMessage(); - } - } - - async function sendMessage(retryOpts = null) { - const explicitText = retryOpts?.textOverride; - const rawVal = explicitText !== undefined ? explicitText : composerText; - const { text, turn, isRetry } = resolveTurn(retryOpts, rawVal); - if (!text || isSendingRef.current) return; - - setIsCommandMenuOpen(false); - setIsSending(true); - setStatusText(isRetry ? "Retrying…" : "Thinking…"); - - if (!isRetry) { - setMessages((prev) => [...prev, { from: "web", text }]); - setComposerText(""); - } - - let activeTools = []; - setStreamingTurn({ text: "", tools: [], isError: false, turn, isRetry }); - - let streamedText = ""; - let finished = false; - let timedOut = false; - let timeoutId = null; - - try { - const controller = new AbortController(); - activeControllerRef.current = controller; - timeoutId = setTimeout(() => { - timedOut = true; - controller.abort(); - }, 120000); - - const response = await api.chatStream( - { - channel_id: channelID(), - source_id: turn.sourceID, - text: turn.text, - page: currentPage(), - }, - { signal: controller.signal }, - ); - - const reader = response.body.getReader(); - const decoder = new TextDecoder(); - let buffer = ""; - - for (;;) { - const { value, done } = await reader.read(); - buffer += decoder.decode(value || new Uint8Array(), { stream: !done }); - const frames = buffer.split("\n\n"); - buffer = frames.pop() || ""; - for (const frame of frames) { - const line = frame.split("\n").find((part) => part.startsWith("data: ")); - if (!line) continue; - const event = JSON.parse(line.slice(6)); - if (event.session_id) setCurrentSession(event.session_id); - if (event.type === "delta") { - streamedText += event.text; - setStreamingTurn((prev) => (prev ? { ...prev, text: streamedText } : null)); - } - if (event.type === "tool") { - activeTools = [...activeTools, event]; - setStreamingTurn((prev) => (prev ? { ...prev, tools: activeTools } : null)); - } - if (event.type === "navigate") { - activeTools = [...activeTools, event]; - setStreamingTurn((prev) => (prev ? { ...prev, tools: activeTools } : null)); - } - if (event.type === "done") { - finished = true; - if (!streamedText) { - streamedText = event.text; - } - } - if (event.type === "error") throw new Error(event.text); - } - if (done) break; - } - - if (!finished) throw new Error("chat stream ended before completion"); - - // Commit finished message into transcript - setMessages((prev) => [ - ...prev, - { - from: "assistant", - text: streamedText, - tool_calls: activeTools, - }, - ]); - setStreamingTurn(null); - setStatusText("Ready"); - await refreshSessions(); - } catch (err) { - if (err.name === "AbortError" && !timedOut) { - setStreamingTurn({ - text: "Turn stopped.", - tools: activeTools, - isError: false, - turn, - isRetry, - }); - setStatusText("Stopped"); - } else { - const failedText = `Unable to complete that turn: ${err.message || err}`; - setStreamingTurn({ - text: failedText, - tools: activeTools, - isError: true, - turn: retryChatTurn(turn), - isRetry, - }); - setStatusText("Error — retry available"); - } - } finally { - clearTimeout(timeoutId); - activeControllerRef.current = null; - setIsSending(false); - if (composerRef.current) composerRef.current.focus(); - } - } - - function handleStop() { - setStatusText("Stopping…"); - if (currentSession) { - void api.chatCancel(currentSession).catch(() => {}); - } - activeControllerRef.current?.abort(); - } - - const groupedModels = selectorData.models_by_provider || {}; - const currentModels = - selectedProvider && groupedModels[selectedProvider] - ? groupedModels[selectedProvider] - : selectorData.models || []; - - return ( -
-
- {panelTitle(sessions, currentSession)} -
- -
-
- -
- - -
- - - -
- {statusText} - - {(selectorData.providers || []).length > 0 && ( - - )} - -
-
-
- -
-
-
- -
- - {/* Transcript */} -
- {!messages.length && !streamingTurn ? ( -
- A -

What are we working on?

-

Ask Archie anything, or start with one of these prompts.

-
- - - -
-
- ) : ( - - {messages.map((message, idx) => { - const from = message.from ?? message.From ?? ""; - const text = message.text ?? message.Text ?? ""; - const isAssistant = from !== "web"; - const tools = message.tool_calls || message.ToolCalls || []; - - return ( -
-
- {isAssistant ? ( - - {tools.length > 0 && ( -
- {tools.map((tool, tIdx) => { - if (tool.path) { - return ( - - - - {tool.label || tool.path} - - - ); - } - const name = tool.name || tool.Name || tool.tool || "tool"; - const parameters = tool.parameters || tool.Parameters || ""; - const summary = - tool.summary || - tool.Summary || - tool.text || - tool.err || - tool.Err || - "done"; - const failed = Boolean(tool.err || tool.Err || tool.failed); - return ( -
- 🔧 - {name} - {parameters && ( - {parameters} - )} - {summary} -
- ); - })} -
- )} - -
- ) : ( -
{text}
- )} -
-
- ); - })} - - {/* Live streaming assistant turn */} - {streamingTurn && ( -
-
- {streamingTurn.tools?.length > 0 && ( -
- {streamingTurn.tools.map((tool, tIdx) => { - if (tool.path) { - return ( - - - - {tool.label || tool.path} - - - ); - } - const name = tool.name || tool.tool || "tool"; - const parameters = tool.parameters || ""; - const summary = tool.summary || tool.text || (tool.failed ? "failed" : "running…"); - const failed = Boolean(tool.failed); - return ( -
- 🔧 - {name} - {parameters && ( - {parameters} - )} - {summary} -
- ); - })} -
- )} - - {streamingTurn.isError && ( - - )} -
-
- )} -
- )} -
- - {/* Composer */} -
-
- - - {notice &&

{notice}

} - -
- ); -} - -function Workflows({ workflows, definitions }) { - const rows = workflowRows(workflows, definitions); - - if (!rows.length) { - return ( -
-
-

Per workflow

-
- -
- ); - } - - return ( -
-
-
-

Per workflow

-

Success rate is merged tasks over all runs

-
-
-
- - - - - - - - - - - - - {rows.map((w) => { - const rate = pct(w.merged, w.runs); - return ( - - - - - - - - - ); - })} - -
WorkflowOriginRunsSuccess rateAvg tokensAvg steps
{workflowLabel(w.workflow)}{w.origin || "registry"}{`${w.runs} run${w.runs === 1 ? "" : "s"}`} -
- {rate}%{w.merged} of {w.runs} merged -
- = 50 ? "ok" : "warn"} /> -
{w.avg_tokens ? w.avg_tokens.toLocaleString() : "—"}{w.avg_steps ? w.avg_steps.toFixed(1) : "—"}
-
-
- ); -} - -function Stages({ stages }) { - if (!stages.length) { - return ( -
-
-

Per stage

-
- -
- ); - } - - const maxMs = Math.max(...stages.map((s) => s.avg_ms || 0), 1); - const byDuration = [...stages].sort((a, b) => (b.avg_ms || 0) - (a.avg_ms || 0)); - const byErrors = [...stages].filter((s) => s.errors > 0).sort((a, b) => b.errors - a.errors); - - return ( -
-
-
-
-

Slowest stages

-

Average duration, this workflow's stages

-
-
-
- - - - - - - - - - - {byDuration.map((s, idx) => ( - - - - - - - ))} - -
WorkflowStageRunsAvg duration
{workflowLabel(s.workflow)}{s.stage}{s.runs} -
{formatMs(s.avg_ms)}
- -
-
-
-
-
-
-

Most failures

-

Stages that error out, over their runs

-
-
- {byErrors.length ? ( -
- - - - - - - - - - {byErrors.map((s, idx) => ( - - - - - - ))} - -
WorkflowStageFailures
{workflowLabel(s.workflow)}{s.stage} -
{s.errors} of {s.runs}
- -
-
- ) : ( - - )} -
-
- ); -} diff --git a/ui/test/activity-detail.test.js b/ui/test/activity-detail.test.js deleted file mode 100644 index 3d7519e74..000000000 --- a/ui/test/activity-detail.test.js +++ /dev/null @@ -1,43 +0,0 @@ -import { test } from "node:test"; -import assert from "node:assert/strict"; -import { activityDetail } from "../src/dashboard/activity-detail.js"; - -// Live activity renders whatever the daemon put in an event's detail. An -// agent_finish payload is a few thousand characters of transcript, and printed -// raw it turned one table row into six viewports (archie-core-qo7f). The cell -// shows a single scannable line; the full text stays reachable, never silently -// dropped. - -test("a short detail is shown as-is and needs no expansion", () => { - assert.deepEqual(activityDetail({ detail: "session-memory" }), { - text: "session-memory", - full: "session-memory", - truncated: false, - }); -}); - -test("a long detail is cut to one line and keeps the full text", () => { - const long = "x".repeat(5000); - const result = activityDetail({ detail: long }); - assert.equal(result.truncated, true); - assert.ok(result.text.length < 200, `cell text is still ${result.text.length} chars`); - assert.equal(result.full, long, "full payload was dropped rather than kept"); -}); - -test("a multi-line detail collapses to its first meaningful line", () => { - const result = activityDetail({ - detail: "stage fix: agent parked (gate_parked):\n[golangci-lint] run ./...\nlevel=warning msg=deprecated", - }); - assert.equal(result.text, "stage fix: agent parked (gate_parked):"); - assert.equal(result.truncated, true); -}); - -test("leading blank lines do not produce an empty cell", () => { - assert.equal(activityDetail({ detail: "\n\n real content\nmore" }).text, "real content"); -}); - -test("message is used when detail is absent, and absence is not an error", () => { - assert.equal(activityDetail({ message: "fallback" }).text, "fallback"); - assert.deepEqual(activityDetail({}), { text: "", full: "", truncated: false }); - assert.deepEqual(activityDetail(undefined), { text: "", full: "", truncated: false }); -}); diff --git a/ui/test/api-client.test.js b/ui/test/api-client.test.js deleted file mode 100644 index 0327634fb..000000000 --- a/ui/test/api-client.test.js +++ /dev/null @@ -1,240 +0,0 @@ -import { test } from "node:test"; -import assert from "node:assert/strict"; -import "./shim.js"; -import { api, classifyActionError } from "../src/base/api.js"; - -// archied's mutation handlers run authorizeTaskMutation before doing anything -// else, and it refuses a request that does not declare -// Content-Type: application/json with 415. The dashboard must therefore send -// that header on every mutation -- including the ones with no body. Three -// bodyless mutations (bindingApprove, mappingDelete, bindingDelete) did not, -// and were refused 415 on every click. -const JSON_CONTENT_TYPE = "application/json"; - -// Every mutating method, with arguments that satisfy its signature. The -// inventories below are checked for completeness, so a new api method cannot -// be added without these contract assertions applying to it. -const MUTATIONS = [ - ["taskAction", [1, "retry"]], - ["workRequest", [{ title: "t" }]], - ["channelReload", ["c1"]], - ["configUpdate", [{ "a.b": 1 }]], - ["configRepoUpdate", ["owner", "name", "field", 1]], - ["configReset", ["key"]], - ["mappingCreate", [{}]], - ["mappingUpdate", [1, {}]], - ["mappingDelete", [1]], - ["mappingPreview", [1, {}]], - ["bindingCreate", [{}]], - ["bindingUpdate", [1, {}]], - ["bindingDelete", [1]], - ["bindingApprove", [1]], - ["chatCancel", ["session"]], - ["chatMessage", ["channel", "hello"]], - ["chatPersona", ["session", "name"]], - ["chatUpdateDefer", [{}]], - ["chatUpdateInstall", [{}]], - ["chatDangerousRequest", ["kind", {}]], - ["chatDangerousDecision", ["id", "approve"]], -]; - -// Reads must not carry a mutation marker, and must ask for JSON. -const READS = [ - ["summary", []], - ["tasks", []], - ["taskMeta", []], - ["task", [1]], - ["taskAttempts", [1]], - ["taskChanges", [1, { attempt: 2 }]], - ["taskDebug", [1, { attempt: 2 }]], - ["setup", []], - ["capabilities", []], - ["workflows", []], - ["skills", []], - ["channels", []], - ["curators", []], - ["config", []], - ["version", []], - ["logs", [{}]], - ["taskLogs", [1, {}]], - ["captures", [10]], - ["mappings", []], - ["bindings", []], - ["chatSessions", []], - ["chatMessages", ["s"]], - ["chatTurns", ["s"]], - ["chatUpdate", []], - ["chatDangerous", []], -]; - -// The one streaming call: it cannot be parsed as JSON, so it is asserted -// separately rather than folded into either inventory above. -const STREAMS = ["chatStream"]; - -// URL builders make no request at all: they hand a browser navigation to a -// route the server serves as a file download, so the browser owns the -// Content-Disposition filename and streams the body to disk. They are listed -// separately because asserting a fetch contract on them would be wrong, and -// leaving them out of this suite entirely is how an unclassified method -// slipped through before. -const URLS = ["taskLogDownloadURL"]; - -let calls = []; - -function stubFetch(respond) { - calls = []; - globalThis.fetch = async (path, init = {}) => { - calls.push({ path, init }); - return respond(path, init); - }; -} - -function okResponse() { - return { - ok: true, - status: 200, - statusText: "OK", - json: async () => ({}), - text: async () => "", - }; -} - -test.after(() => { - delete globalThis.fetch; -}); - -test("every mutation satisfies archied's browser mutation contract", async () => { - for (const [name, args] of MUTATIONS) { - stubFetch(okResponse); - await api[name](...args); - - assert.equal(calls.length, 1, `${name} made ${calls.length} requests, expected 1`); - const { init } = calls[0]; - assert.ok(init.method && init.method !== "GET", `${name} must use a mutating method`); - assert.equal( - init.headers["Content-Type"], - JSON_CONTENT_TYPE, - `${name} must send Content-Type: ${JSON_CONTENT_TYPE}; archied answers 415 without it`, - ); - assert.equal(init.headers["X-Archie-CSRF"], "1", `${name} must send X-Archie-CSRF`); - } -}); - -test("every read asks for JSON and carries no mutation marker", async () => { - for (const [name, args] of READS) { - stubFetch(okResponse); - await api[name](...args); - - assert.equal(calls.length, 1, `${name} made ${calls.length} requests, expected 1`); - const { init } = calls[0]; - assert.equal(init.headers.Accept, JSON_CONTENT_TYPE, `${name} must accept JSON`); - assert.equal(init.headers["X-Archie-CSRF"], undefined, `${name} must not send a mutation marker`); - } -}); - -test("the chat stream posts its payload and asks for an event stream", async () => { - stubFetch(okResponse); - await api.chatStream({ text: "hi" }, {}); - - assert.equal(calls.length, 1); - const { path, init } = calls[0]; - assert.equal(path, "/api/chat/stream"); - assert.equal(init.method, "POST"); - assert.equal(init.headers.Accept, "text/event-stream"); - assert.equal(init.headers["Content-Type"], JSON_CONTENT_TYPE); - assert.equal(init.body, JSON.stringify({ text: "hi" })); -}); - -// A URL builder must not fetch: the browser has to own the navigation for the -// server's Content-Disposition filename to apply. A fetch here would consume -// the attachment and lose its name. -test("the task-log download URL is built, not fetched", async () => { - stubFetch(() => { - throw new Error("a download URL must not be fetched by the client"); - }); - - assert.equal(api.taskLogDownloadURL(7, 2), "/api/tasks/7/logs/download?attempt=2"); - assert.equal(api.taskLogDownloadURL(7, null), "/api/tasks/7/logs/download"); - assert.equal(calls.length, 0, "building a download URL must not make a request"); -}); - -test("a bodyless DELETE resolves on 204 without parsing a body", async () => { - stubFetch(() => ({ - ok: true, - status: 204, - statusText: "No Content", - json: async () => { - throw new Error("a 204 has no body to parse"); - }, - text: async () => "", - })); - - await api.mappingDelete(1); - await api.bindingDelete(1); -}); - -test("a 415 keeps the server's explanation and reads as refused", async () => { - stubFetch(() => ({ - ok: false, - status: 415, - statusText: "Unsupported Media Type", - text: async () => "Content-Type must be application/json\n", - json: async () => ({}), - })); - - await assert.rejects( - () => api.bindingApprove(1), - (err) => { - assert.equal(err.status, 415); - assert.equal(err.message, "Content-Type must be application/json"); - assert.equal(classifyActionError(err).kind, "refused"); - return true; - }, - ); -}); - -// The run detail page's reads. `qs` drops empty values, so an attempt the page -// has not resolved yet must not be sent as an empty string: the server treats an -// absent attempt as "the task's current attempt", and `attempt=` would be a -// different, malformed request. -test("the run detail reads build their URLs with absent filters absent", async () => { - stubFetch(okResponse); - await api.taskAttempts(42); - await api.taskChanges(42, { attempt: 2 }); - await api.taskDebug(42, { attempt: 0 }); - await api.taskChanges(42, {}); - - assert.deepEqual( - calls.map((call) => call.path), - [ - "/api/tasks/42/attempts", - "/api/tasks/42/changes?attempt=2", - "/api/tasks/42/debug?attempt=0", - "/api/tasks/42/changes", - ], - ); -}); - -test("every api method is classified by this suite", () => { - const classified = new Set([ - ...MUTATIONS.map(([name]) => name), - ...READS.map(([name]) => name), - ...STREAMS, - ...URLS, - ]); - const actual = Object.keys(api).filter((key) => typeof api[key] === "function"); - const unclassified = actual.filter((name) => !classified.has(name)).sort(); - - assert.deepEqual( - unclassified, - [], - "add each new api method to MUTATIONS, READS, or STREAMS so the contract assertions cover it", - ); -}); - -// Note: this suite asserts on the requests each method makes, never on the -// text of api.jsx. A source-scanning check ("api.jsx holds exactly one fetch -// call") was removed on purpose: it broke on a reformat and on a comment that -// merely mentioned fetch, so it tested the file's wording rather than the -// client's behaviour. Every method in the two inventories above is covered -// behaviourally instead. diff --git a/ui/test/attempt-config.test.js b/ui/test/attempt-config.test.js deleted file mode 100644 index e6bbe314e..000000000 --- a/ui/test/attempt-config.test.js +++ /dev/null @@ -1,111 +0,0 @@ -import { test } from "node:test"; -import assert from "node:assert/strict"; -import { render, cleanup } from "@testing-library/preact"; -import { AttemptConfig, CONFIG_SCHEMA, selectConfigEvent } from "../src/tasks/attempt-config.jsx"; - -const EVENTS = [ - { - kind: "config_captured", - attempt: 1, - at: "2026-09-18T07:00:00.100Z", - stage: "", - data: { schema: CONFIG_SCHEMA, document: { BotUser: "archie-attempt-one", Models: { main: "openai/gpt" } } }, - }, - { - kind: "config_captured", - attempt: 2, - at: "2026-09-18T07:05:00.100Z", - stage: "", - data: { schema: CONFIG_SCHEMA, document: { BotUser: "archie-attempt-two", Models: { main: "openai/gpt" } } }, - }, -]; - -function mount(props) { - const { container, unmount } = render(); - return { root: container, unmount }; -} - -// Selecting by kind alone would show the newest attempt's configuration on -// every attempt -- the merge-attempts bug the attempt column exists to prevent. -test("the configuration is selected by kind and attempt together", () => { - const { root, unmount } = mount({ events: EVENTS, attempt: 1 }); - assert.match(root.textContent, /archie-attempt-one/); - assert.doesNotMatch(root.textContent, /archie-attempt-two/); - assert.match(root.textContent, /attempt 1's effective task-runtime configuration/); - unmount(); -}); - -test("an attempt with no config event of its own says so, never another attempt's", () => { - const { root, unmount } = mount({ events: EVENTS, attempt: 3 }); - assert.equal(root.querySelector(".empty-title").textContent, "Not captured for this run"); - assert.doesNotMatch(root.textContent, /archie-attempt-one|archie-attempt-two/); - assert.match(root.textContent, /Nothing here says the run used the defaults/); - unmount(); -}); - -test("the document is passed through verbatim, pretty-printed", () => { - const { root, unmount } = mount({ events: EVENTS, attempt: 2 }); - const json = root.querySelector(".run-json").textContent; - assert.match(json, /"BotUser": "archie-attempt-two"/); - assert.match(json, /"Models"/); - unmount(); -}); - -// The page must not imply this document is the whole configuration: it is the -// non-secret task-runtime subset. -test("the panel states the scope of what was captured", () => { - const { root, unmount } = mount({ events: EVENTS, attempt: 1 }); - assert.match(root.textContent, /non-secret subset/); - assert.match(root.textContent, /not the dashboard configuration view/); - assert.match(root.textContent, /providers, repositories, identities, credentials and lock state/); - unmount(); -}); - -test("an unrecognised schema is named and its payload is still shown", () => { - const events = [ - { kind: "config_captured", attempt: 2, at: "2026-09-18T07:05:00.100Z", data: { schema: "archie/task-config@9", document: { future: true } } }, - ]; - const { root, unmount } = mount({ events, attempt: 2 }); - assert.match(root.textContent, /unknown schema \(archie\/task-config@9\)/); - assert.match(root.querySelector(".run-json").textContent, /"future": true/); - unmount(); -}); - -test("a config event with no data at all renders the raw payload rather than guessing", () => { - const events = [{ kind: "config_captured", attempt: 2, at: "2026-09-18T07:05:00.100Z" }]; - const { root, unmount } = mount({ events, attempt: 2 }); - assert.match(root.textContent, /unknown schema/); - assert.ok(root.querySelector(".run-json")); - unmount(); -}); - -test("loading and failure states are distinct, and the failure offers a retry", () => { - const loading = mount({ events: undefined, attempt: 1 }); - assert.match(loading.root.textContent, /Loading this task's events/); - loading.unmount(); - - const failed = mount({ events: null, attempt: 1, onRetry: () => {} }); - assert.match(failed.root.textContent, /Could not load this task's events/); - assert.equal(failed.root.querySelector("button").textContent, "Retry"); - failed.unmount(); -}); - -test("selectConfigEvent ignores other kinds and other attempts", () => { - const events = [ - { kind: "stage_finish", attempt: 2, data: {} }, - ...EVENTS, - ]; - assert.equal(selectConfigEvent(events, 2).attempt, 2); - assert.equal(selectConfigEvent(events, 3), null); - assert.equal(selectConfigEvent(undefined, 1), null); -}); - -// CONFIG_SCHEMA mirrors events.ConfigCapturedSchema (internal/events/events.go), -// which the Go suite pins by the same literal. Pinning both sides is what makes -// a one-sided rename a failing test rather than every attempt rendering as -// "unknown schema". -test("the config schema is the one the producer stamps", () => { - assert.equal(CONFIG_SCHEMA, "archie/task-config@1"); -}); - -test.after(() => cleanup()); diff --git a/ui/test/bindings.test.js b/ui/test/bindings.test.js deleted file mode 100644 index c1fa896d9..000000000 --- a/ui/test/bindings.test.js +++ /dev/null @@ -1,70 +0,0 @@ -import { test } from "node:test"; -import assert from "node:assert/strict"; -import { h } from "preact"; -import { render } from "@testing-library/preact"; -import { StatusPill, BindingRow } from "../src/bindings/binding-editor.jsx"; - -test("statusPill labels draft as idle", () => { - const { container } = render(h(StatusPill, { status: "draft" })); - assert.match(container.textContent, /draft/); - assert.ok(container.querySelector(".pill-idle")); -}); - -test("statusPill labels pending_approval as warn, with a human-readable label", () => { - const { container } = render(h(StatusPill, { status: "pending_approval" })); - assert.match(container.textContent, /pending approval/); - assert.ok(container.querySelector(".pill-warn")); -}); - -test("statusPill labels armed as ok", () => { - const { container } = render(h(StatusPill, { status: "armed" })); - assert.match(container.textContent, /armed/); - assert.ok(container.querySelector(".pill-ok")); -}); - -test("statusPill falls back to the raw status for an unrecognised value", () => { - const { container } = render(h(StatusPill, { status: "weird" })); - assert.match(container.textContent, /weird/); -}); - -test("bindingRow shows name, matcher source, workflow, and status", () => { - const { container } = render(h(BindingRow, { - binding: { id: 1, name: "sentry alerts", matcher: { source: "sentry" }, workflow: "implement", status: "draft" }, - onEdit: () => {}, - onApprove: () => {}, - onDelete: () => {}, - })); - assert.match(container.textContent, /sentry alerts/); - assert.match(container.textContent, /sentry/); - assert.match(container.textContent, /implement/); - assert.match(container.textContent, /draft/); -}); - -test("bindingRow shows the owner/repo pin when set, or a placeholder when not", () => { - const pinned = render(h(BindingRow, { - binding: { id: 1, name: "a", matcher: { source: "s" }, workflow: "implement", status: "draft", owner: "acme", repo: "widget" }, - })); - assert.match(pinned.container.textContent, /acme\/widget/); - - const unpinned = render(h(BindingRow, { - binding: { id: 2, name: "b", matcher: { source: "s" }, workflow: "implement", status: "draft" }, - })); - assert.match(unpinned.container.textContent, /—/); -}); - -test("bindingRow shows an Approve action only when pending_approval", () => { - const pending = render(h(BindingRow, { - binding: { id: 1, name: "a", matcher: { source: "s" }, workflow: "implement", status: "pending_approval" }, - })); - assert.match(pending.container.textContent, /Approve/); - - const draft = render(h(BindingRow, { - binding: { id: 2, name: "b", matcher: { source: "s" }, workflow: "implement", status: "draft" }, - })); - assert.doesNotMatch(draft.container.textContent, /Approve/); - - const armed = render(h(BindingRow, { - binding: { id: 3, name: "c", matcher: { source: "s" }, workflow: "implement", status: "armed" }, - })); - assert.doesNotMatch(armed.container.textContent, /Approve/); -}); diff --git a/ui/test/captures.test.js b/ui/test/captures.test.js deleted file mode 100644 index 7e6c31816..000000000 --- a/ui/test/captures.test.js +++ /dev/null @@ -1,111 +0,0 @@ -import { test } from "node:test"; -import assert from "node:assert/strict"; -import { h } from "preact"; -import { render, cleanup } from "@testing-library/preact"; -import { CaptureRow, CaptureDetailRow, prettyPrint } from "../src/captures/capture-row.jsx"; - -let container; -const afterRender = (cb) => { - const r = render(cb()); - container = r.container; - return container; -}; -const reset = () => cleanup(); - -test("prettyPrint indents valid JSON", () => { - const out = prettyPrint('{"action":"opened","n":1}'); - assert.equal(out, JSON.stringify({ action: "opened", n: 1 }, null, 2)); -}); - -test("prettyPrint returns non-JSON payloads unchanged rather than failing", () => { - assert.equal(prettyPrint("not json"), "not json"); -}); - -function renderRow(capture, opts = {}) { - afterRender(() => ( - - - - -
- )); - return container.querySelector("tbody"); -} - -test("collapsed capture row renders only the summary row", () => { - const tbody = renderRow( - { id: 1, source: "github", content_type: "application/json" }, - { expanded: false, onToggle: () => {} }, - ); - assert.equal(tbody.children.length, 1); - reset(); -}); - -test("expanded capture row appends a detail row", () => { - const tbody = renderRow( - { id: 1, source: "github", content_type: "application/json" }, - { expanded: true, onToggle: () => {} }, - ); - assert.equal(tbody.children.length, 2); - reset(); -}); - -test("capture row reflects expanded state via aria-expanded", () => { - const coll = renderRow({ id: 1 }, { expanded: false, onToggle: () => {} }); - assert.equal(coll.querySelector(".capture-row").getAttribute("aria-expanded"), "false"); - reset(); - const exp = renderRow({ id: 1 }, { expanded: true, onToggle: () => {} }); - assert.equal(exp.querySelector(".capture-row").getAttribute("aria-expanded"), "true"); - reset(); -}); - -test("capture row shows the source and content type", () => { - const tbody = renderRow( - { id: 1, source: "github", content_type: "application/json" }, - { expanded: false, onToggle: () => {} }, - ); - const row = tbody.querySelector(".capture-row"); - assert.match(row.textContent, /github/); - assert.match(row.textContent, /application\/json/); - reset(); -}); - -test("capture row shows an unknown source as a placeholder rather than blank", () => { - const tbody = renderRow({ id: 1 }, { expanded: false, onToggle: () => {} }); - const row = tbody.querySelector(".capture-row"); - assert.match(row.textContent, /\(unknown\)/); - reset(); -}); - -test("every capture row shows Unbound: no binding data model exists yet (t2db.4)", () => { - const tbody = renderRow({ id: 1, source: "github" }, { expanded: false, onToggle: () => {} }); - const row = tbody.querySelector(".capture-row"); - assert.match(row.textContent, /Unbound/); - reset(); -}); - -test("capture detail row pretty-prints a JSON payload", () => { - afterRender(() => ( - - - - -
- )); - const detail = container.querySelector(".capture-detail-row"); - assert.match(detail.textContent, /"a": 1/); - reset(); -}); - -test("capture detail row shows a placeholder for an empty payload", () => { - afterRender(() => ( - - - - -
- )); - const detail = container.querySelector(".capture-detail-row"); - assert.match(detail.textContent, /\(empty\)/); - reset(); -}); diff --git a/ui/test/changed-files.test.js b/ui/test/changed-files.test.js deleted file mode 100644 index d799d29a1..000000000 --- a/ui/test/changed-files.test.js +++ /dev/null @@ -1,169 +0,0 @@ -import { test } from "node:test"; -import assert from "node:assert/strict"; -import { render, cleanup } from "@testing-library/preact"; -import { ChangedFiles, fileStatusLabel } from "../src/tasks/changed-files.jsx"; - -const CAPTURE = { - captured_at: "2026-09-18T07:03:00.000Z", - captured_after: "commit", - stage: "commit", - owner: "o", - repo: "r", - base: "main", - branch: "feat/42-x", - head_sha: "abcdef1234567890", - base_sha: "0987654321fedcba", - pr_number: 7, - totals: { files: 3, additions: 40, deletions: 5 }, - truncated: false, - files: [ - { path: "internal/x.go", old_path: "", status: "modified", additions: 12, deletions: 3, binary: false }, - { path: "bin/app", old_path: "", status: "added", additions: 0, deletions: 0, binary: true }, - { path: "internal/new.go", old_path: "internal/old.go", status: "renamed", additions: 1, deletions: 1, binary: false }, - ], -}; - -const TASK = { - id: 42, - repo_url: "https://forge.example.internal/o/r", - pr_number: 7, - pr_url: "https://forge.example.internal/o/r/pull/7", -}; - -function mount(props) { - const { container, unmount } = render(); - return { root: container, unmount }; -} - -function rowFor(root, path) { - return [...root.querySelectorAll(".run-changes-table tbody tr")].find((row) => - row.querySelector(".run-changes-path")?.textContent.includes(path), - ); -} - -// F5: nothing predating the capture has one, and the forge cannot supply one, so -// an empty view must not read as "this run changed nothing". -test("no capture recorded is not reported as no files changed", () => { - const { root, unmount } = mount({ state: { task_id: 42, attempt: 2, found: false, captures: [] } }); - assert.equal(root.querySelector(".empty-title").textContent, "No change capture was recorded for this attempt"); - assert.match(root.textContent, /not the same as "no files changed"/); - assert.doesNotMatch(root.textContent, /Nothing changed/); - unmount(); -}); - -test("a capture renders its per-file counts and statuses", () => { - const { root, unmount } = mount({ state: { task_id: 42, attempt: 2, found: true, captures: [CAPTURE] }, task: TASK }); - const modified = rowFor(root, "internal/x.go"); - assert.match(modified.textContent, /Modified/); - assert.doesNotMatch(modified.textContent, /modified/, "the raw status code must not be shown as a word"); - assert.match(modified.textContent, /\+12/); - assert.equal(root.querySelector(".run-capture-totals").textContent, "3 files · +40 · −5"); - unmount(); -}); - -// found:true with no readable capture is a READ failure, not "nothing was -// captured": the server reports found from the capture event's existence, so -// conflating the two tells the operator no capture was recorded when one -// demonstrably was. -test("a capture that was recorded but could not be read is not reported as missing", () => { - const { root, unmount } = mount({ state: { task_id: 42, attempt: 2, found: true, captures: [] } }); - assert.match(root.textContent, /could not be read/i); - assert.doesNotMatch(root.textContent, /No change capture was recorded/); - unmount(); -}); - -test("a renamed file shows the path it came from", () => { - const { root, unmount } = mount({ state: { task_id: 42, attempt: 2, found: true, captures: [CAPTURE] } }); - const renamed = rowFor(root, "internal/new.go"); - assert.match(renamed.textContent, /Renamed/); - assert.match(renamed.textContent, /internal\/old\.go → internal\/new\.go/); - unmount(); -}); - -// A zero-hunk file is "no textual hunks", which is what the capture actually -// recorded -- not a claim about the file's type on disk. -test("a file with no textual hunks is described that way, not as a binary", () => { - const { root, unmount } = mount({ state: { task_id: 42, attempt: 2, found: true, captures: [CAPTURE] } }); - const binary = rowFor(root, "bin/app"); - assert.match(binary.textContent, /no textual hunks/); - assert.match(binary.textContent, /Added/); - assert.doesNotMatch(binary.textContent, /binary/i); - unmount(); -}); - -test("a truncated capture says so while still reporting complete totals", () => { - const truncated = { ...CAPTURE, truncated: true, totals: { files: 210, additions: 900, deletions: 40 } }; - const { root, unmount } = mount({ state: { task_id: 42, attempt: 2, found: true, captures: [truncated] } }); - assert.match(root.textContent, /Showing the first 3 of 210 files/); - assert.match(root.textContent, /210 files · \+900 · −40/); - unmount(); -}); - -test("the capture links to the repository and the pull request", () => { - const { root, unmount } = mount({ state: { task_id: 42, attempt: 2, found: true, captures: [CAPTURE] }, task: TASK }); - const hrefs = [...root.querySelectorAll("a")].map((a) => a.getAttribute("href")); - assert.ok(hrefs.includes("https://forge.example.internal/o/r")); - assert.ok(hrefs.includes("https://forge.example.internal/o/r/pull/7")); - assert.match(root.textContent, /feat\/42-x → main/); - assert.match(root.textContent, /abcdef12/); - unmount(); -}); - -// A link is only rendered when there is a URL behind it: a capture with no forge -// coordinates shows its owner/repo and PR number as text rather than a dead link. -test("a capture with no forge URL shows plain text instead of a dead link", () => { - const bare = { ...CAPTURE, pr_number: 9 }; - const { root, unmount } = mount({ state: { task_id: 42, attempt: 2, found: true, captures: [bare] } }); - assert.match(root.textContent, /PR #9/); - assert.equal(root.querySelectorAll("a").length, 0); - unmount(); -}); - -test("multiple captures in one attempt all render, oldest first", () => { - const second = { - ...CAPTURE, - captured_at: "2026-09-18T07:06:00.000Z", - captured_after: "commit-push", - stage: "push", - }; - const { root, unmount } = mount({ state: { task_id: 42, attempt: 2, found: true, captures: [CAPTURE, second] } }); - const heads = [...root.querySelectorAll(".run-capture-when")].map((n) => n.textContent); - assert.deepEqual(heads, ["Captured after commit in stage commit", "Captured after commit-push in stage push"]); - unmount(); -}); - -test("loading and failure states are distinct, and the failure offers a retry", () => { - const loading = mount({ state: undefined }); - assert.match(loading.root.textContent, /Loading changed files/); - loading.unmount(); - - const failed = mount({ state: null, onRetry: () => {} }); - assert.match(failed.root.textContent, /Could not load this attempt's changed files/); - assert.equal(failed.root.querySelector("button").textContent, "Retry"); - failed.unmount(); -}); - -test("the status vocabulary is words, and an unknown status is passed through", () => { - assert.equal(fileStatusLabel("added"), "Added"); - assert.equal(fileStatusLabel("typechange"), "Type changed"); - assert.equal(fileStatusLabel("submodule"), "submodule"); -}); - -// The five statuses are the producer's own vocabulary -// (internal/domain/workflow/task/changes.go), pinned by literal in the Go suite. -// This pins the dashboard half to the same five strings: without it, a rename on -// one side renders raw status codes beside words and both suites stay green. -test("the status vocabulary matches the strings the producer persists", () => { - const persisted = { - added: "Added", - modified: "Modified", - deleted: "Deleted", - renamed: "Renamed", - typechange: "Type changed", - }; - for (const [status, label] of Object.entries(persisted)) { - assert.equal(fileStatusLabel(status), label, `${status} must be a known status, not passed through`); - } -}); - -test.after(() => cleanup()); diff --git a/ui/test/chat-app.test.js b/ui/test/chat-app.test.js deleted file mode 100644 index db22d6db9..000000000 --- a/ui/test/chat-app.test.js +++ /dev/null @@ -1,66 +0,0 @@ -import { test } from "node:test"; -import assert from "node:assert/strict"; -import { render } from "@testing-library/preact"; -import { ChatApp } from "../src/chat/chat.jsx"; - -// ChatApp lives in a ~440px panel hung off the launcher, never on a page of its -// own. These tests hold that shape: one column, no page furniture, and the -// controls that are not conversation kept out of the reading area -// (archie-core-hesx). - -test("the panel is a single column: no page title, no persistent sidebar", () => { - const { container, unmount } = render(); - - assert.equal(container.querySelector(".chat-topbar"), null, "page topbar should be gone"); - assert.equal(container.querySelector(".chat-kicker"), null, "ARCHIE WORKSPACE kicker should be gone"); - assert.equal(container.querySelector(".page-title"), null, "the panel header already names Archie"); - assert.equal(container.querySelector(".chat-sidebar"), null, "conversations should not hold a column"); - unmount(); -}); - -test("the transcript and composer are the panel's own rows", () => { - const { container, unmount } = render(); - - assert.ok(container.querySelector(".chat-transcript"), "transcript should render"); - assert.ok(container.querySelector(".chat-composer"), "composer should render"); - unmount(); -}); - -test("conversations are a switcher in the bar, not a column", () => { - const { container, unmount } = render(); - - const bar = container.querySelector(".chat-bar"); - assert.ok(bar, "compact bar should render"); - assert.ok(bar.querySelector(".chat-session-switch"), "session switcher should live in the bar"); - unmount(); -}); - -test("model controls are behind one settings affordance, not laid out inline", () => { - const { container, unmount } = render(); - - const settings = container.querySelector(".chat-settings"); - assert.ok(settings, "settings popover should render"); - assert.ok(settings.querySelector('[aria-label="Personality"]'), "personality lives in the popover"); - assert.ok(settings.querySelector('[aria-label="Model"]'), "model lives in the popover"); - - // Closed by default: a 440px panel cannot spend its width on three selects. - assert.equal(settings.tagName, "DETAILS"); - assert.equal(settings.hasAttribute("open"), false); - unmount(); -}); - -test("operator panels are not rendered in the chat panel", () => { - const { container, unmount } = render(); - - assert.equal(container.querySelector(".chat-update-panel"), null, "update panel belongs to Configuration"); - assert.equal(container.querySelector(".chat-dangerous-panel"), null, "dangerous actions belong to Configuration"); - unmount(); -}); - -test("the empty state still offers its prompts", () => { - const { container, unmount } = render(); - - assert.ok(container.querySelector(".chat-empty-state"), "empty state should be present"); - assert.ok(container.querySelectorAll(".chat-prompt").length >= 3, "should have prompt buttons"); - unmount(); -}); diff --git a/ui/test/chat-fab.test.js b/ui/test/chat-fab.test.js deleted file mode 100644 index 291dcad7f..000000000 --- a/ui/test/chat-fab.test.js +++ /dev/null @@ -1,89 +0,0 @@ -import { test } from "node:test"; -import assert from "node:assert/strict"; -import { waitFor } from "@testing-library/preact"; - -// The chat is a FAB-opened panel, not a route. These tests hold that shape: -// there is exactly one way in (the floating button), the panel anchors beside -// it rather than filling the right edge, and `#/chat` is not a destination. -// -// main.jsx starts on import and cannot be imported twice, so this file drives -// the same live app the routing test does. -globalThis.fetch = async () => { - throw new Error("no daemon in this test"); -}; - -class InertEventSource { - close() {} -} -globalThis.EventSource = InertEventSource; - -const fab = () => document.querySelector(".chat-fab"); -const drawer = () => document.querySelector(".chat-drawer"); - -async function settle() { - await new Promise((resolve) => setTimeout(resolve, 0)); -} - -test("chat is reachable only from the floating button", async (t) => { - document.body.innerHTML = '
'; - location.hash = "#/"; - await import("../src/main.jsx"); - await waitFor(() => assert.ok(document.querySelector(".topbar"))); - - await t.test("the nav has no Chat entry", () => { - const labels = [...document.querySelectorAll("a.nav-item .nav-label")].map((el) => el.textContent); - assert.ok(!labels.includes("Chat"), `nav still offers Chat: ${labels.join(", ")}`); - assert.equal(document.querySelector('a.nav-item[href="#/chat"]'), null); - }); - - await t.test("the topbar has no chat icon button", () => { - assert.equal(document.querySelector(".topbar .icon-btn-chat"), null); - }); - - await t.test("the floating button is present and announces its state", () => { - assert.ok(fab(), "no .chat-fab rendered"); - assert.equal(fab().getAttribute("aria-expanded"), "false"); - assert.ok(fab().getAttribute("aria-controls"), "FAB does not point at the panel it opens"); - }); -}); - -test("the floating button opens and closes the panel", async () => { - assert.ok(fab(), "no .chat-fab rendered"); - assert.ok(!drawer().classList.contains("is-open")); - - fab().click(); - await waitFor(() => assert.ok(drawer().classList.contains("is-open"))); - assert.equal(fab().getAttribute("aria-expanded"), "true"); - - // The panel it controls is the one that actually opened. - assert.equal(document.getElementById(fab().getAttribute("aria-controls")), drawer()); - - fab().click(); - await waitFor(() => assert.ok(!drawer().classList.contains("is-open"))); - assert.equal(fab().getAttribute("aria-expanded"), "false"); -}); - -test("Escape closes the panel and returns focus to the button", async () => { - fab().click(); - await waitFor(() => assert.ok(drawer().classList.contains("is-open"))); - - // The class lands with the render, but the effect that binds Escape runs - // after paint. Pressing the key on each retry means the test waits for the - // binding rather than for a guessed number of milliseconds. - await waitFor(() => { - document.dispatchEvent(new window.KeyboardEvent("keydown", { key: "Escape", bubbles: true })); - assert.ok(!drawer().classList.contains("is-open")); - }); - assert.equal(document.activeElement, fab(), "focus was not returned to the launcher"); -}); - -test("#/chat is not a route and does not blank the page", async () => { - location.hash = "#/chat"; - await settle(); - await waitFor(() => { - const main = document.querySelector(".main"); - assert.ok(main && main.textContent.trim().length > 0, "#/chat rendered an empty page"); - }); - // It resolves to the dashboard rather than to a chat page. - assert.equal(document.querySelector('a.nav-item[href="#/"]')?.getAttribute("aria-current"), "page"); -}); diff --git a/ui/test/chat-markdown.test.js b/ui/test/chat-markdown.test.js deleted file mode 100644 index 316fa1f47..000000000 --- a/ui/test/chat-markdown.test.js +++ /dev/null @@ -1,55 +0,0 @@ -import { test } from "node:test"; -import assert from "node:assert/strict"; -import { h } from "preact"; -import { render, cleanup } from "@testing-library/preact"; -import { ChatMarkdown } from "../src/chat/markdown.jsx"; - -test("chat Markdown renders Telegram-style rich blocks as semantic HTML", () => { - const { container } = render( - quoted\n\n```go\nfmt.Println(\"hi\")\n```\n\n| Name | State |\n| --- | --- |\n| Archie | **live** |" - } - />, - ); - const rendered = container.querySelector(".chat-bubble-text"); - - assert.equal(rendered.querySelector("h1").textContent, "Summary"); - assert.equal(rendered.querySelector("strong").textContent, "bold"); - assert.equal(rendered.querySelector("em").textContent, "italic"); - assert.equal(rendered.querySelector("del").textContent, "removed"); - assert.equal(rendered.querySelector("a").getAttribute("href"), "https://example.com"); - assert.equal(rendered.querySelector("ul").children.length, 2); - assert.equal(rendered.querySelector("blockquote").textContent, "quoted"); - assert.match(rendered.querySelector("pre").textContent, /fmt\.Println/); - assert.equal(rendered.querySelector("table").querySelector("th").textContent, "Name"); - assert.equal(rendered.querySelector("table").querySelector("td").textContent, "Archie"); - cleanup(); -}); - -test("chat Markdown renders images as img elements with src and alt", () => { - const { container } = render( - , - ); - const img = container.querySelector("img"); - assert.ok(img, "img element should be present"); - assert.equal(img.getAttribute("src"), "https://example.com/image.png"); - assert.equal(img.getAttribute("alt"), "generated preview"); - cleanup(); -}); - -// The blocks are keyed, so a streamed reply that grows by one line re-renders -// only what changed. Preact reports a duplicate-key mistake by rendering the -// wrong thing, so the shapes with sibling lists and tables are worth pinning. -test("chat Markdown keeps sibling blocks distinct when the text grows", () => { - const { container, rerender } = render(); - assert.equal(container.querySelectorAll("ul").length, 1); - rerender(); - assert.equal(container.querySelectorAll("ul").length, 1); - assert.equal(container.querySelector("ul").children.length, 3); - - rerender(); - assert.equal(container.querySelectorAll("ul").length, 1); - assert.equal(container.querySelectorAll("ol").length, 1); - cleanup(); -}); diff --git a/ui/test/chat-panel.test.js b/ui/test/chat-panel.test.js deleted file mode 100644 index 0b094758e..000000000 --- a/ui/test/chat-panel.test.js +++ /dev/null @@ -1,68 +0,0 @@ -import { test } from "node:test"; -import assert from "node:assert/strict"; -import { render } from "@testing-library/preact"; -import { ChatApp } from "../src/chat/chat.jsx"; -import { panelTitle } from "../src/chat/chat-render.jsx"; - -// Remediation from testing the launcher panel (archie-core-ifay): the panel -// should read as a chat window, not as a toolbar with a transcript attached. - -test("the header names the open conversation", () => { - const sessions = [ - { session_id: "abc12345", title: "Gate failures" }, - { session_id: "def67890", branch_name: "spike/retry" }, - ]; - assert.equal(panelTitle(sessions, "abc12345"), "Gate failures"); - assert.equal(panelTitle(sessions, "def67890"), "spike/retry"); -}); - -test("with no conversation open the header falls back to the product name", () => { - assert.equal(panelTitle([], ""), "Archie"); - assert.equal(panelTitle(undefined, undefined), "Archie"); - // A session id with no matching record must not render "undefined". - assert.equal(panelTitle([], "missing"), "Archie"); -}); - -test("the commands accordion is gone; the slash palette is the only command surface", () => { - const { container, unmount } = render(); - assert.equal(container.querySelector(".chat-command-help"), null); - unmount(); -}); - -test("the composer carries no keyboard hint text", () => { - const { container, unmount } = render(); - assert.ok( - !/Enter to send/i.test(container.textContent), - "the Enter/Shift+Enter hint should be gone", - ); - unmount(); -}); - -test("Stop is absent while nothing is generating", () => { - const { container, unmount } = render(); - const labels = [...container.querySelectorAll(".chat-compose button")].map((b) => b.textContent.trim()); - assert.ok(!labels.includes("Stop"), `Stop should not render when idle: ${labels.join(", ")}`); - assert.ok(labels.includes("Send"), "Send should still render"); - unmount(); -}); - -test("new chat lives in the header, and the panel has no close button", () => { - const { container, unmount } = render(); - const head = container.querySelector(".chat-drawer-head"); - assert.ok(head, "the panel owns its header"); - assert.ok(head.querySelector(".chat-new"), "new chat should sit in the header"); - assert.equal(container.querySelector(".chat-bar .chat-new"), null, "and not in the bar"); - - // The launcher stays visible and is the only control that closes the panel. - const closers = [...container.querySelectorAll("button")].filter( - (b) => /close/i.test(b.getAttribute("aria-label") || ""), - ); - assert.deepEqual(closers, [], "the panel should carry no close button"); - unmount(); -}); - -test("message bubbles carry no speaker label", () => { - const { container, unmount } = render(); - assert.equal(container.querySelector(".chat-bubble-meta"), null); - unmount(); -}); diff --git a/ui/test/chat-retry.test.js b/ui/test/chat-retry.test.js deleted file mode 100644 index 45fdc4500..000000000 --- a/ui/test/chat-retry.test.js +++ /dev/null @@ -1,44 +0,0 @@ -import { test } from "node:test"; -import assert from "node:assert/strict"; -import { newChatTurn, retryChatTurn, resolveTurn } from "../src/chat/chat-retry.js"; - -test("retry preserves the logical turn identity and text", () => { - const turn = newChatTurn("keep this message"); - const retry = retryChatTurn(turn); - - assert.notEqual(turn.sourceID, undefined); - assert.deepEqual(retry, turn); -}); - -test("new turns receive distinct identities", () => { - const first = newChatTurn("same text"); - const second = newChatTurn("same text"); - - assert.notEqual(first.sourceID, second.sourceID); -}); - -test("resolveTurn with no retry arg builds a fresh turn from composer text", () => { - const { text, turn, isRetry } = resolveTurn(null, " hello there "); - assert.equal(text, "hello there"); - assert.equal(turn.text, "hello there"); - assert.equal(isRetry, false); -}); - -test("resolveTurn with a real retry descriptor reuses its turn", () => { - const original = newChatTurn("retry me"); - const { text, turn, isRetry } = resolveTurn({ turn: original, replyBubble: {} }, ""); - assert.equal(text, "retry me"); - assert.equal(turn.sourceID, original.sourceID); - assert.equal(isRetry, true); -}); - -test("resolveTurn does not throw when passed a DOM event instead of a retry descriptor", () => { - // send.onclick = sendMessage (not () => sendMessage()) hands the click's - // MouseEvent to sendMessage as `retry`. It's truthy and has no .turn, so - // this must be treated as "not a retry", not crash on retry.turn.text. - const clickEvent = { type: "click", isTrusted: true }; - const { text, turn, isRetry } = resolveTurn(clickEvent, "typed while a stray event arrived"); - assert.equal(text, "typed while a stray event arrived"); - assert.equal(turn.text, text); - assert.equal(isRetry, false); -}); diff --git a/ui/test/chat-update-status.test.js b/ui/test/chat-update-status.test.js deleted file mode 100644 index 7f0be511b..000000000 --- a/ui/test/chat-update-status.test.js +++ /dev/null @@ -1,22 +0,0 @@ -import { test } from "node:test"; -import assert from "node:assert/strict"; -import { ApiError } from "../src/base/api.js"; -import { updateUnavailableMessage } from "../src/chat/chat-update-status.js"; - -test("a 501 (feature not configured) is a quiet non-error, not a banner", () => { - assert.equal(updateUnavailableMessage(new ApiError("501: Not Implemented", 501)), null); -}); - -test("a genuine failure gets a clear human message, not the raw fetch error text", () => { - const err = new ApiError("500 Internal Server Error", 500); - const message = updateUnavailableMessage(err); - assert.ok(message); - assert.notEqual(message, err.message); -}); - -test("an error with no status (e.g. a network failure) also gets a human message", () => { - const err = new TypeError("Failed to fetch"); - const message = updateUnavailableMessage(err); - assert.ok(message); - assert.notEqual(message, err.message); -}); diff --git a/ui/test/classify-action-error.test.js b/ui/test/classify-action-error.test.js deleted file mode 100644 index 8e888efd7..000000000 --- a/ui/test/classify-action-error.test.js +++ /dev/null @@ -1,28 +0,0 @@ -import { test } from "node:test"; -import assert from "node:assert/strict"; -import "./shim.js"; -import { ApiError, classifyActionError } from "../src/base/api.js"; - -test("classifyActionError treats 401 as an expired session", () => { - assert.equal(classifyActionError(new ApiError("unauthorised", 401)).kind, "session-expired"); -}); - -test("classifyActionError treats 400/403/409 as refused", () => { - assert.equal(classifyActionError(new ApiError("bad id", 400)).kind, "refused"); - assert.equal(classifyActionError(new ApiError("cross-origin mutation refused", 403)).kind, "refused"); - assert.equal(classifyActionError(new ApiError("task changed state; refresh and try again", 409)).kind, "refused"); -}); - -test("classifyActionError treats 5xx as broken", () => { - assert.equal(classifyActionError(new ApiError("task action failed", 500)).kind, "broken"); - assert.equal(classifyActionError(new ApiError("runtime task control is unavailable", 503)).kind, "broken"); -}); - -test("classifyActionError treats a statusless error (network/timeout) as broken", () => { - assert.equal(classifyActionError(new TypeError("Failed to fetch")).kind, "broken"); - assert.equal(classifyActionError(new DOMException("The operation was aborted", "AbortError")).kind, "broken"); -}); - -test("classifyActionError preserves the server's message", () => { - assert.equal(classifyActionError(new ApiError("cross-origin mutation refused", 403)).message, "cross-origin mutation refused"); -}); diff --git a/ui/test/command-scroll.test.js b/ui/test/command-scroll.test.js deleted file mode 100644 index ead5af892..000000000 --- a/ui/test/command-scroll.test.js +++ /dev/null @@ -1,40 +0,0 @@ -import { test } from "node:test"; -import assert from "node:assert/strict"; -import { commandScrollTop } from "../src/chat/command-scroll.js"; - -const menu = { scrollTop: 0, viewportHeight: 100 }; - -test("an option already in view does not move the list", () => { - assert.equal(commandScrollTop({ ...menu, optionTop: 20, optionHeight: 30 }), 0); -}); - -test("an option below the fold scrolls down by the minimum", () => { - // Bottom at 150 against a viewport ending at 100: scroll the missing 50. - assert.equal(commandScrollTop({ ...menu, optionTop: 120, optionHeight: 30 }), 50); -}); - -test("an option above the fold scrolls up to its top", () => { - assert.equal( - commandScrollTop({ scrollTop: 200, viewportHeight: 100, optionTop: 120, optionHeight: 30 }), - 120, - ); -}); - -test("wrapping from the last option back to the first returns to the top", () => { - assert.equal( - commandScrollTop({ scrollTop: 400, viewportHeight: 100, optionTop: 0, optionHeight: 30 }), - 0, - ); -}); - -test("wrapping from the first option to the last scrolls to the end", () => { - assert.equal( - commandScrollTop({ scrollTop: 0, viewportHeight: 100, optionTop: 470, optionHeight: 30 }), - 400, - ); -}); - -test("an option taller than the viewport aligns to its top edge", () => { - // Scrolling to its bottom would hide the command name; the top is what matters. - assert.equal(commandScrollTop({ ...menu, optionTop: 40, optionHeight: 300 }), 40); -}); diff --git a/ui/test/config-row.test.js b/ui/test/config-row.test.js deleted file mode 100644 index 21c759d61..000000000 --- a/ui/test/config-row.test.js +++ /dev/null @@ -1,144 +0,0 @@ -import { test } from "node:test"; -import assert from "node:assert/strict"; -import { h } from "preact"; -import { render, cleanup } from "@testing-library/preact"; -import { Row, valueText, parseEdit } from "../src/settings/config-row.jsx"; - -// Walks a rendered row and returns the concatenated text of each direct -// child, so a test can assert on the row's *structure* rather than on a -// flattened string. The bugs this file guards against were all cases of -// two fields rendering as one visual run. -function cells(rowEl) { - return Array.from(rowEl.childNodes).map((child) => text(child)); -} - -function text(node) { - return node.textContent ?? ""; -} - -function classOf(node) { - return (node && node.className) || ""; -} - -function titleOf(node) { - return node && node.getAttribute ? node.getAttribute("title") : undefined; -} - -// Render a Row component and return its rendered .kv element. -function renderRow(label, value, opts = {}) { - const { container, unmount } = render(); - const el = container.querySelector(".kv"); - return { el, unmount }; -} - -test("a locked row keeps its reason in a separate element from the value", () => { - // Regression: the reason used to sit beside an overflowing value and - // render as "/home/sam/.local/share/archie/workpins the daemon's - // working layout". Assert on the cell count and per-cell text, never on - // the row's flattened text, so a future layout change cannot pass by - // merging them back into one node. - const { el: rowEl } = renderRow("Work directory", "/home/sam/.local/share/archie/work", { - key: "work_dir", - locked: { work_dir: "pins the daemon's working layout; cannot be changed at runtime" }, - }); - - const parts = cells(rowEl); - assert.equal(parts.length, 3, "expected label, value and note as separate children"); - assert.equal(parts[0], "Work directory"); - assert.equal(parts[1], "/home/sam/.local/share/archie/work"); - assert.equal(parts[2], "pins the daemon's working layout; cannot be changed at runtime"); - assert.ok(classOf(rowEl).includes("is-locked")); -}); - -test("a locked row offers no edit control", () => { - const { el: rowEl } = renderRow("State path prefix", "/home/sam/.local/share/archie/archie.db", { - key: "db_path", - locked: { db_path: "required for bootstrap" }, - }); - assert.equal(Array.from(rowEl.childNodes).filter((c) => classOf(c).includes("kv-actions")).length, 0); -}); - -test("an editable row separates value from its actions", () => { - // Regression: the value overflowed into the action column, so "400" - // rendered as "40" with Edit sitting on top of the last digit. Assert - // the value and the actions are distinct children. - const { el: rowEl } = renderRow("Max diff size (lines)", 400, { key: "diff_cap_lines", type: "int", raw: 400 }); - const parts = cells(rowEl); - assert.equal(parts.length, 3); - assert.equal(parts[1], "400", "the value must not be merged with the action label"); - assert.equal(parts[2], "Edit"); -}); - -test("an overridden row shows the marker and a reset alongside edit", () => { - const { el: rowEl } = renderRow("Max steps", 90, { - key: "budgets.max_steps", - type: "int", - raw: 90, - overridden: ["budgets.max_steps"], - }); - const actions = Array.from(rowEl.childNodes).find((c) => classOf(c).includes("kv-actions")); - assert.deepEqual(Array.from(actions.childNodes).map(text), ["overridden", "Edit", "Reset"]); -}); - -test("the full value is recoverable from the title when the column truncates", () => { - const long = "go vet ./... → go build ./... → go test ./... -count=1"; - const { el: rowEl } = renderRow("Quality gate", long); - const value = Array.from(rowEl.childNodes).find((c) => classOf(c).includes("kv-value")); - assert.equal(titleOf(value), long); -}); - -test("zero and false are real values, not missing ones", () => { - // `value ?? "—"` handled these, but a `value || "—"` refactor would - // silently turn a configured 0 into "not set". Pin the distinction. - assert.equal(valueText(0), "0"); - assert.equal(valueText(false), "false"); - assert.equal(valueText(""), "—"); - assert.equal(valueText(null), "—"); - assert.equal(valueText(undefined), "—"); -}); - -test("int edits reject a non-numeric entry before the round trip", () => { - assert.equal(parseEdit("int", "12").value, 12); - assert.ok(parseEdit("int", "twelve").error); - assert.equal(parseEdit("bool", "true").value, true); - assert.equal(parseEdit("bool", "false").value, false); - assert.equal(parseEdit("string", "1h0m0s").value, "1h0m0s"); -}); - -// archie-core-b6ew.3: a schema-driven field with editable: false (a -// structured field with no dedicated editor yet, or a field the backend -// deliberately doesn't allow editing) must not offer an Edit button, even -// though it has a key -- distinct from a locked row, which does have a key -// and a reason. -test("a field marked editable: false renders read-only with no note", () => { - const { el: rowEl } = renderRow("Model roles", "{...}", { key: "models", type: "structured", editable: false }); - const parts = cells(rowEl); - assert.equal(parts.length, 2, "expected only label and value, no actions or note"); - assert.ok(!classOf(rowEl).includes("is-locked")); -}); - -// A locked reason still takes priority over editable: true -- the runtime -// state (overlay.DeniedKeys) wins over the schema's static claim. -test("a locked reason is shown even when the field claims editable: true", () => { - const { el: rowEl } = renderRow("Work directory", "/work/archie", { - key: "work_dir", - editable: true, - locked: { work_dir: "pins the daemon's working layout; cannot be changed at runtime" }, - }); - assert.ok(classOf(rowEl).includes("is-locked")); -}); - -// archie-core-b6ew.3: the backend-authored field description rides as a -// tooltip on the label, so a generic renderer can carry "0 means -// unlimited." without any field-specific frontend code. -test("a field's hint becomes the label's title attribute", () => { - const { el: rowEl } = renderRow("Max steps", 0, { hint: "0 means unlimited." }); - const label = Array.from(rowEl.childNodes).find((c) => classOf(c).includes("kv-label")); - assert.equal(titleOf(label), "0 means unlimited."); -}); - -test("a field with no hint renders a plain label with no title", () => { - const { el: rowEl } = renderRow("Max steps", 0, {}); - const label = Array.from(rowEl.childNodes).find((c) => classOf(c).includes("kv-label")); - assert.equal(titleOf(label), null); -}); diff --git a/ui/test/hooks.js b/ui/test/hooks.js deleted file mode 100644 index 384872d89..000000000 --- a/ui/test/hooks.js +++ /dev/null @@ -1,53 +0,0 @@ -import babel from "@babel/core"; -import { fileURLToPath } from "node:url"; -import fs from "node:fs"; - -export async function resolve(specifier, context, nextResolve) { - try { - return await nextResolve(specifier, context); - } catch (err) { - if (err.code === "ERR_MODULE_NOT_FOUND" && specifier.endsWith(".js")) { - const jsxSpecifier = specifier.slice(0, -3) + ".jsx"; - return await nextResolve(jsxSpecifier, context); - } - throw err; - } -} - -export async function load(url, context, nextLoad) { - if (url.endsWith(".css")) { - return { format: "module", source: "export default {};", shortCircuit: true }; - } - if (url.includes("?raw") || url.endsWith(".html")) { - try { - const filePath = fileURLToPath(url.replace(/\?raw$/, "")); - const content = fs.readFileSync(filePath, "utf8"); - return { format: "module", source: `export default ${JSON.stringify(content)};`, shortCircuit: true }; - } catch { - return { format: "module", source: 'export default "";', shortCircuit: true }; - } - } - if (url.endsWith(".jsx") || url.endsWith(".test.js")) { - const result = await nextLoad(url, { ...context, format: "module" }); - let source = result.source; - if (typeof source !== "string") { - source = new TextDecoder().decode(source); - } - const transformed = babel.transformSync(source, { - plugins: [[ - "@babel/plugin-transform-react-jsx", - // The automatic runtime matches @preact/preset-vite, so JSX compiles - // to `import { jsx } from "preact/jsx-runtime"` rather than a bare `h`. - // This lets source files shadow `h` (e.g. a .map((h, i) => ...) in - // mapping-editor.jsx) without breaking, exactly as the Vite build does. - { runtime: "automatic", importSource: "preact" }, - ]], - filename: fileURLToPath(url), - configFile: false, - babelrc: false, - }); - source = transformed.code; - return { format: "module", source, shortCircuit: true }; - } - return nextLoad(url, context); -} diff --git a/ui/test/log-row.test.js b/ui/test/log-row.test.js deleted file mode 100644 index 9bfc1cb41..000000000 --- a/ui/test/log-row.test.js +++ /dev/null @@ -1,58 +0,0 @@ -import { test } from "node:test"; -import assert from "node:assert/strict"; -import { h } from "preact"; -import { render, cleanup } from "@testing-library/preact"; -import { LogRow, levelKind, fmtValue, shortTime } from "../src/base/log-row.jsx"; - -test("levelKind maps known levels to their pill kind", () => { - assert.equal(levelKind("ERROR"), "danger"); - assert.equal(levelKind("warn"), "warn"); - assert.equal(levelKind("Debug"), "idle"); - assert.equal(levelKind("info"), "info"); - assert.equal(levelKind(""), "info"); -}); - -test("fmtValue stringifies objects, passes scalars through, and blanks nullish", () => { - assert.equal(fmtValue(null), ""); - assert.equal(fmtValue(undefined), ""); - assert.equal(fmtValue(5), 5); - assert.equal(fmtValue({ a: 1 }), JSON.stringify({ a: 1 })); -}); - -test("shortTime falls back to a placeholder for an unparsable time", () => { - assert.equal(shortTime("not a date"), "--:--:--"); -}); - -test("LogRow renders every field generically, including the ones the daemon-wide feed drops", () => { - const { container } = render( - , - ); - const row = container.querySelector(".log-row"); - assert.match(row.className, /log-row/); - assert.match(row.textContent, /attempt finished/); - for (const key of ["stage", "prompt_tokens", "completion_tokens", "cached_tokens", "stop_reason", "model"]) { - assert.match(row.textContent, new RegExp(key), `missing field ${key}`); - } - cleanup(); -}); - -test("LogRow colours the row by level", () => { - const { container } = render(); - assert.match(container.querySelector(".log-row").className, /log-danger/); - assert.equal(container.querySelector(".log-level").textContent, "ERROR"); - cleanup(); -}); diff --git a/ui/test/logs-empty.test.js b/ui/test/logs-empty.test.js deleted file mode 100644 index 9ab3af3ac..000000000 --- a/ui/test/logs-empty.test.js +++ /dev/null @@ -1,30 +0,0 @@ -import { test } from "node:test"; -import assert from "node:assert/strict"; -import { logsEmptyTitle, logsEmptyDetail } from "../src/logs/logs-empty.js"; - -test("filters that match nothing say so", () => { - assert.equal(logsEmptyTitle(false, "live"), "Nothing matches"); - assert.match(logsEmptyDetail(false, "live"), /wider level/); -}); - -test("a deployment without durable history explains live-only", () => { - assert.equal(logsEmptyTitle(true, "live"), "No logs yet"); - assert.match(logsEmptyDetail(true, "live"), /no durable history/i); -}); - -// The bug: a dead stream still promised that live logs were on their way. -test("a dead stream does not promise live logs", () => { - assert.equal(logsEmptyTitle(true, "unavailable"), "Log stream unavailable"); - const detail = logsEmptyDetail(true, "unavailable"); - assert.ok(!/appear here while the page is open/.test(detail), `still promising live logs: ${detail}`); - assert.match(detail, /not serving/); -}); - -test("a dead stream outranks the durable-history message either way", () => { - assert.equal(logsEmptyTitle(false, "unavailable"), "Log stream unavailable"); - assert.equal(logsEmptyTitle(true, "unavailable"), "Log stream unavailable"); -}); - -test("a reconnecting stream still reads as a filter miss, not a failure", () => { - assert.equal(logsEmptyTitle(false, "reconnecting"), "Nothing matches"); -}); diff --git a/ui/test/main-routing.test.js b/ui/test/main-routing.test.js deleted file mode 100644 index 78768f74d..000000000 --- a/ui/test/main-routing.test.js +++ /dev/null @@ -1,112 +0,0 @@ -import { test } from "node:test"; -import assert from "node:assert/strict"; -import { waitFor } from "@testing-library/preact"; - -// The router as the browser actually uses it: main.jsx is imported once (it -// starts on import), and every step below navigates by changing the hash and -// waiting for the app to follow. This is the only place the wiring between the -// route table, the matcher and the navigation highlight is exercised -- the -// matcher's own unit tests cannot see whether `show` hands the nav the section -// path or the detail path. -// -// archied is absent on purpose: every request fails, which is itself a state -// these pages must render honestly rather than blankly. -globalThis.fetch = async () => { - throw new Error("no daemon in this test"); -}; - -// jsdom has no EventSource, and the dashboard subscribes to the daemon's event -// stream the moment it mounts. An inert stand-in keeps this test about routing -// rather than about the stream. -class InertEventSource { - close() {} -} -globalThis.EventSource = InertEventSource; - -function navCurrent(path) { - return document.querySelector(`a.nav-item[href="#${path}"]`)?.getAttribute("aria-current"); -} - -function title() { - return document.querySelector(".page-title")?.textContent; -} - -async function navigate(hash) { - location.hash = hash; - // jsdom queues its own hashchange for the assignment; waitFor lets it land. - await new Promise((resolve) => setTimeout(resolve, 0)); -} - -test("the app routes deep links and keeps the navigation highlight honest", async (t) => { - document.body.innerHTML = '
'; - location.hash = "#/tasks/42"; - await import("../src/main.jsx"); - await waitFor(() => assert.equal(title(), "Task #42")); - - await t.test("a per-task route renders the run page and keeps Tasks current", () => { - assert.equal(title(), "Task #42"); - assert.ok(document.querySelector(".run-restart"), "the run controls should render"); - assert.equal( - navCurrent("/tasks"), - "page", - "W9: a detail route must hand the nav its section, or Tasks silently loses aria-current", - ); - }); - - await t.test("the tasks list route still works", async () => { - await navigate("#/tasks"); - await waitFor(() => assert.equal(title(), "Tasks")); - assert.equal(navCurrent("/tasks"), "page"); - assert.equal(document.querySelector(".tab-bar"), null, "the run page is no longer mounted"); - }); - - // W10: #/tasks?task=N and #/tasks?status=... are pinned deep links. The steps - // below enter this route from the run page on purpose: the query string is an - // entry state, so a navigation that only changes the query of the page already - // mounted keeps the operator's own filter selection instead. - await t.test("a tab and attempt in the query string open that panel", async () => { - await navigate("#/tasks/7?tab=log&attempt=1"); - await waitFor(() => assert.equal(title(), "Task #7")); - const selected = [...document.querySelectorAll('[role="tab"]')].find( - (tab) => tab.getAttribute("aria-selected") === "true", - ); - assert.equal(selected.textContent, "Log"); - // The panels read one attempt, and this deployment answered no reads at - // all -- so the panel says that rather than claiming there is no attempt. - await waitFor(() => assert.match(document.body.textContent, /Could not load this task's attempts/)); - assert.equal(navCurrent("/tasks"), "page"); - }); - - // The real router, not a reconstruction of it: show() renders the run page with - // Preact's render() into one long-lived outlet, so two task ids on the same - // matched route must still be two component instances. Without a key on the - // page element the second id diffs the first one in place and the operator's - // Log tab from task 7 is still open on task 8. - await t.test("moving to another task id does not keep the previous task's panel", async () => { - await navigate("#/tasks/8"); - await waitFor(() => assert.equal(title(), "Task #8")); - const selected = [...document.querySelectorAll('[role="tab"]')].find( - (tab) => tab.getAttribute("aria-selected") === "true", - ); - assert.equal( - selected.textContent, - "Stages", - "W11: a new task id must remount the page, not inherit the previous task's open tab", - ); - assert.equal(navCurrent("/tasks"), "page"); - }); - - await t.test("the existing task deep links keep working", async () => { - await navigate("#/tasks?task=7&status=needs_you"); - await waitFor(() => assert.equal(title(), "Tasks")); - assert.equal(document.querySelector(".task-filter").value, "needs_you"); - assert.equal(navCurrent("/tasks"), "page"); - }); - - await t.test("an unmatched path falls back to the dashboard", async () => { - await navigate("#/nope/deep"); - await waitFor(() => assert.ok(document.querySelector(".hero-title"), "the dashboard should render")); - assert.equal(document.querySelector(".tab-bar"), null); - assert.equal(navCurrent("/"), "page"); - }); -}); diff --git a/ui/test/mappings.test.js b/ui/test/mappings.test.js deleted file mode 100644 index 0b5f697f8..000000000 --- a/ui/test/mappings.test.js +++ /dev/null @@ -1,97 +0,0 @@ -import { test } from "node:test"; -import assert from "node:assert/strict"; -import { h } from "preact"; -import { render } from "@testing-library/preact"; -import { - fieldTypeFromValue, - FieldsTable, - MappingRow, - pathAppendIndex, - pathAppendKey, - PayloadTree, -} from "../src/mappings/mapping-editor.jsx"; - -test("fieldTypeFromValue infers a FieldType from an example value", () => { - assert.equal(fieldTypeFromValue("x"), "string"); - assert.equal(fieldTypeFromValue(1), "number"); - assert.equal(fieldTypeFromValue(true), "bool"); - assert.equal(fieldTypeFromValue({}), "object"); - assert.equal(fieldTypeFromValue([]), "array"); - assert.equal(fieldTypeFromValue(null), "any"); - assert.equal(fieldTypeFromValue(undefined), "any"); -}); - -test("pathAppendKey joins with a dot, or starts fresh from an empty path", () => { - assert.equal(pathAppendKey("", "issue"), "issue"); - assert.equal(pathAppendKey("issue", "title"), "issue.title"); -}); - -test("pathAppendIndex appends a bracketed index", () => { - assert.equal(pathAppendIndex("items", 0), "items[0]"); - assert.equal(pathAppendIndex("", 2), "[2]"); -}); - -test("payloadTree renders every object key", () => { - const { container } = render(h(PayloadTree, { value: { issue: { title: "bug found" }, count: 3 } })); - assert.match(container.textContent, /issue/); - assert.match(container.textContent, /title/); - assert.match(container.textContent, /"bug found"/); - assert.match(container.textContent, /count/); - assert.match(container.textContent, /3/); -}); - -test("payloadTree renders array indices", () => { - const { container } = render(h(PayloadTree, { value: { items: [{ id: 1 }, { id: 2 }] } })); - assert.match(container.textContent, /items/); - assert.match(container.textContent, /id/); -}); - -test("fieldsTable shows a hint instead of a table when there are no fields", () => { - const { container } = render(h(FieldsTable, { fields: [], preview: null })); - assert.match(container.textContent, /Click a value in the payload/); -}); - -test("fieldsTable shows 'not previewed' for every field before a preview runs", () => { - const fields = [{ name: "title", path: "issue.title", type: "string", required: true }]; - const { container } = render(h(FieldsTable, { fields, preview: null })); - assert.match(container.textContent, /not previewed/); -}); - -test("fieldsTable surfaces a resolved value after a successful preview", () => { - const fields = [{ name: "title", path: "issue.title", type: "string", required: true }]; - const { container } = render(h(FieldsTable, { fields, preview: { values: { title: "bug found" }, failures: [] } })); - assert.match(container.textContent, /bug found/); - assert.doesNotMatch(container.textContent, /not previewed/); -}); - -test("fieldsTable surfaces a failure reason loudly, never a blank value", () => { - const fields = [{ name: "title", path: "issue.title", type: "string", required: true }]; - const { container } = render(h(FieldsTable, { fields, preview: { values: {}, failures: [{ field_name: "title", path: "issue.title", reason: "missing" }] } })); - assert.match(container.textContent, /missing/); -}); - -test("fieldsTable shows every bound field's name and path", () => { - const fields = [ - { name: "title", path: "issue.title", type: "string", required: true }, - { name: "count", path: "count", type: "number", required: false }, - ]; - const { container } = render(h(FieldsTable, { fields, preview: null })); - assert.match(container.textContent, /issue\.title/); - assert.match(container.textContent, /count/); -}); - -test("mappingRow shows name, source hint, and field count", () => { - const { container } = render(h(MappingRow, { - mapping: { id: 1, name: "sentry issue opened", source_hint: "sentry", fields: [{}, {}] }, - onEdit: () => {}, - onDelete: () => {}, - })); - assert.match(container.textContent, /sentry issue opened/); - assert.match(container.textContent, /sentry/); - assert.match(container.textContent, /2/); -}); - -test("mappingRow shows a placeholder when there is no source hint", () => { - const { container } = render(h(MappingRow, { mapping: { id: 1, name: "m", fields: [] }, onEdit: () => {}, onDelete: () => {} })); - assert.match(container.textContent, /—/); -}); diff --git a/ui/test/nav-capabilities.test.js b/ui/test/nav-capabilities.test.js deleted file mode 100644 index 653b371c7..000000000 --- a/ui/test/nav-capabilities.test.js +++ /dev/null @@ -1,31 +0,0 @@ -import { test } from "node:test"; -import assert from "node:assert/strict"; -import { hiddenRoutes } from "../src/capabilities.jsx"; - -const routes = [ - { path: "/", label: "Dashboard" }, - { path: "/logs", label: "Logs", section: "logs" }, - { path: "/skills", label: "Skills", section: "skills" }, - { path: "/tasks", label: "Tasks" }, -]; - -// The dashboard is served by two processes with different capabilities. A -// section the serving process cannot back renders as permanently empty, which -// reads as "nothing has happened" rather than "not served here". -test("a section the server cannot serve is hidden", () => { - assert.deepEqual(hiddenRoutes({ logs: false, skills: true }, routes), ["/logs"]); -}); - -test("sections with no capability entry stay visible", () => { - assert.deepEqual(hiddenRoutes({}, routes), []); -}); - -// Fail open: an older server, or a failed read, must not blank the nav. -test("no capabilities at all hides nothing", () => { - assert.deepEqual(hiddenRoutes(undefined, routes), []); - assert.deepEqual(hiddenRoutes(null, routes), []); -}); - -test("routes without a section are never hidden", () => { - assert.deepEqual(hiddenRoutes({ logs: false }, routes), ["/logs"]); -}); diff --git a/ui/test/operator-controls.test.js b/ui/test/operator-controls.test.js deleted file mode 100644 index 3882a27c8..000000000 --- a/ui/test/operator-controls.test.js +++ /dev/null @@ -1,48 +0,0 @@ -import { test } from "node:test"; -import assert from "node:assert/strict"; -import { dashboardTaskTargets } from "../src/dashboard/task-targets.js"; -import { - SETUP_DISMISSAL_KEY, - dismissSetupComplete, - setupPanelState, -} from "../src/dashboard/setup-preference.js"; -import { initialTaskFilter, taskMatchesStatus } from "../src/tasks/task-filters.js"; - -function memoryStorage() { - const values = new Map(); - return { - getItem: (key) => values.get(key) ?? null, - setItem: (key, value) => values.set(key, String(value)), - removeItem: (key) => values.delete(key), - }; -} - -test("dashboard links one attention task directly and groups multiple", () => { - assert.equal(dashboardTaskTargets([{ id: 7, status: "parked" }]).attention.href, "#/tasks?task=7"); - assert.equal(dashboardTaskTargets([ - { id: 7, status: "parked" }, - { id: 8, status: "waiting_human" }, - ]).attention.href, "#/tasks?status=needs_you"); - assert.equal(dashboardTaskTargets([{ id: 9, status: "running" }]).running.href, "#/tasks?status=running"); -}); - -test("setup completion dismissal is versioned and resets on regression", () => { - const storage = memoryStorage(); - const complete = { steps: [{ done: true }] }; - const incomplete = { steps: [{ done: false }] }; - assert.equal(setupPanelState(complete, storage).kind, "complete"); - dismissSetupComplete(storage); - assert.equal(storage.getItem(SETUP_DISMISSAL_KEY), "1"); - assert.equal(setupPanelState(complete, storage).kind, "dismissed"); - assert.equal(setupPanelState(incomplete, storage).kind, "incomplete"); - assert.equal(storage.getItem(SETUP_DISMISSAL_KEY), null); -}); - -test("needs-you filtering includes only parked and waiting tasks", () => { - const params = new URLSearchParams("status=needs_you"); - assert.equal(initialTaskFilter(params), "needs_you"); - assert.equal(taskMatchesStatus({ status: "parked" }, "needs_you"), true); - assert.equal(taskMatchesStatus({ status: "waiting_human" }, "needs_you"), true); - assert.equal(taskMatchesStatus({ status: "running" }, "needs_you"), false); - assert.equal(initialTaskFilter(new URLSearchParams("status=made_up")), ""); -}); diff --git a/ui/test/register.js b/ui/test/register.js deleted file mode 100644 index 590f475a9..000000000 --- a/ui/test/register.js +++ /dev/null @@ -1,43 +0,0 @@ -import { register } from "node:module"; -import { JSDOM } from "jsdom"; - -register("./hooks.js", import.meta.url); - -// A real DOM for @testing-library/preact: full DOM globals (document, window, -// getComputedStyle, MutationObserver, ...), which jsdom provides. Applied here -// so every test file sees them before importing source modules. -const dom = new JSDOM("", { url: "http://localhost/" }); -const { window } = dom; - -// Some globals (navigator, location) are read-only accessors on Node's -// globalThis, so assign via defineProperty rather than direct assignment. -const setGlobal = (key, value) => { - Object.defineProperty(globalThis, key, { value, configurable: true, writable: true }); -}; - -setGlobal("window", window); -setGlobal("document", window.document); -setGlobal("navigator", window.navigator); -setGlobal("HTMLElement", window.HTMLElement); -setGlobal("Element", window.Element); -setGlobal("Node", window.Node); -setGlobal("Text", window.Text); -setGlobal("TextNode", window.TextNode); -setGlobal("DocumentFragment", window.DocumentFragment); -setGlobal("CustomEvent", window.CustomEvent); -setGlobal("Event", window.Event); -setGlobal("AbortController", window.AbortController); -setGlobal("getComputedStyle", window.getComputedStyle.bind(window)); -setGlobal("MutationObserver", window.MutationObserver); -if (typeof window.requestAnimationFrame === "function") { - setGlobal("requestAnimationFrame", window.requestAnimationFrame.bind(window)); -} else { - setGlobal("requestAnimationFrame", (cb) => setTimeout(() => cb(Date.now()), 0)); -} -if (typeof window.cancelAnimationFrame === "function") { - setGlobal("cancelAnimationFrame", window.cancelAnimationFrame.bind(window)); -} else { - setGlobal("cancelAnimationFrame", (id) => clearTimeout(id)); -} -setGlobal("localStorage", window.localStorage); -setGlobal("location", window.location); diff --git a/ui/test/routing.test.js b/ui/test/routing.test.js deleted file mode 100644 index c9cdcf245..000000000 --- a/ui/test/routing.test.js +++ /dev/null @@ -1,57 +0,0 @@ -import { test } from "node:test"; -import assert from "node:assert/strict"; -import { matchRoute, navPath } from "../src/routing.jsx"; - -// The route table mirrors main.jsx's: a literal section and the parameterised -// detail page declared after it, which is the ordering that stops /tasks/:id -// from swallowing /tasks. -const routes = [ - { path: "/", label: "Dashboard" }, - { path: "/tasks", label: "Tasks", view: () => null }, - { path: "/tasks/:id", label: "Task run", view: () => null, nav: false, navPath: "/tasks" }, - { path: "/logs", label: "Logs", view: () => null }, -]; - -test("a literal path matches its own route, not a parameterised one", () => { - const match = matchRoute(routes, "/tasks"); - assert.equal(match.route.path, "/tasks"); - assert.deepEqual(match.params, {}); -}); - -test("a path segment is captured as a route param", () => { - const match = matchRoute(routes, "/tasks/42"); - assert.equal(match.route.path, "/tasks/:id"); - assert.deepEqual(match.params, { id: "42" }); -}); - -test("the query string is not part of the path", () => { - const match = matchRoute(routes, "/tasks/42?tab=changes&attempt=2"); - assert.equal(match.route.path, "/tasks/:id"); - assert.equal(match.params.id, "42"); -}); - -test("a trailing slash names the same route", () => { - assert.equal(matchRoute(routes, "/tasks/").route.path, "/tasks"); - assert.equal(matchRoute(routes, "/tasks/42/").params.id, "42"); -}); - -// A prefix rule would send every unknown path under a section to that section's -// page, so a typo would render something plausible instead of the dashboard. -test("an unmatched path matches nothing rather than the nearest prefix", () => { - assert.equal(matchRoute(routes, "/nope"), null); - assert.equal(matchRoute(routes, "/tasks/42/extra"), null); - assert.equal(matchRoute(routes, "/task"), null); -}); - -test("an encoded segment is decoded into the param", () => { - assert.equal(matchRoute(routes, "/tasks/a%20b").params.id, "a b"); -}); - -// W9: a detail route is not a nav entry, so it names the section it belongs to. -// Without this the Tasks item loses aria-current the moment the operator opens -// a run, and the whole nav reads as "nothing is current". -test("a parameterised route reports the section it keeps current", () => { - assert.equal(navPath(routes[2]), "/tasks"); - assert.equal(navPath(routes[1]), "/tasks"); - assert.equal(navPath(undefined), "/"); -}); diff --git a/ui/test/settings-lifecycle.test.js b/ui/test/settings-lifecycle.test.js deleted file mode 100644 index 686be4043..000000000 --- a/ui/test/settings-lifecycle.test.js +++ /dev/null @@ -1,80 +0,0 @@ -import { test } from "node:test"; -import assert from "node:assert/strict"; -import { register } from "node:module"; -import { render } from "@testing-library/preact"; - -const cssLoad = "data:text/javascript," + encodeURIComponent(` - export async function load(url, context, nextLoad) { - if (url.endsWith(".css")) { - return { format: "module", shortCircuit: true, source: "export default {};" }; - } - return nextLoad(url, context); - } -`); -register(cssLoad, import.meta.url); - -const { api } = await import("../src/base/api.jsx"); -const { settingsPage } = await import("../src/settings/settings.jsx"); - -async function renderSettings(meta) { - const original = { config: api.config, version: api.version, taskMeta: api.taskMeta }; - api.config = async () => ({}); - api.version = async () => ({ components: [] }); - api.taskMeta = async () => meta; - try { - const vnode = settingsPage(new URLSearchParams()); - const { container } = render(vnode); - await new Promise((resolve) => setTimeout(resolve, 0)); - return container; - } finally { - api.config = original.config; - api.version = original.version; - api.taskMeta = original.taskMeta; - } -} - -test("work lifecycle card renders a status pill and an action button from /api/task-meta", async () => { - const root = await renderSettings({ - statuses: [ - { id: "waiting_human", label: "Waiting for you", kind: "warn", needs_you: true }, - { id: "queued", label: "Queued", kind: "idle" }, - ], - actions: [ - { id: "cancel", label: "Cancel", kind: "quiet" }, - { id: "approve", label: "Approve", kind: "primary" }, - ], - }); - - const text = root.textContent; - assert.ok(text.includes("Work lifecycle"), "the lifecycle card should be present"); - - const warnPill = root.querySelector(".pill-warn"); - assert.ok(warnPill, "a warn-kind status should render a warn pill"); - assert.equal(warnPill.textContent, "Waiting for you"); - assert.ok(text.includes("Queued"), "a second status should render its label"); - - const cancelBtn = root.querySelector(".btn-quiet"); - assert.ok(cancelBtn, "a quiet action should render a quiet-variant button"); - assert.equal(cancelBtn.textContent, "Cancel"); - assert.ok(text.includes("Approve"), "a primary action should render its label"); -}); - -test("work lifecycle card shows a quiet empty state when the catalog fetch fails", async () => { - const original = { config: api.config, version: api.version, taskMeta: api.taskMeta }; - api.config = async () => ({}); - api.version = async () => ({ components: [] }); - api.taskMeta = async () => { - throw new Error("boom"); - }; - try { - const vnode = settingsPage(new URLSearchParams()); - const { container: root } = render(vnode); - await new Promise((resolve) => setTimeout(resolve, 0)); - assert.ok(root.textContent.includes("Work lifecycle"), "the card should still render"); - assert.ok(root.textContent.includes("Lifecycle unavailable"), "a failure should show the empty/error state"); - } finally { - api.config = original.config; - api.version = original.version; - api.taskMeta = original.taskMeta; - } -}); diff --git a/ui/test/settings-operator.test.js b/ui/test/settings-operator.test.js deleted file mode 100644 index e0dae7ad0..000000000 --- a/ui/test/settings-operator.test.js +++ /dev/null @@ -1,80 +0,0 @@ -import { test } from "node:test"; -import assert from "node:assert/strict"; -import { render } from "@testing-library/preact"; -import { UpdateActionsCard, DangerousActionsCard } from "../src/settings/operator-cards.jsx"; - -// Update install/defer and the dangerous-action approvals moved out of the -// chat panel and onto Configuration, where the operator controls live -// (archie-core-tf20). They keep the behaviour they had in chat. - -test("an up-to-date install says so rather than showing empty controls", () => { - const { container, unmount } = render(); - assert.match(container.textContent, /up to date/i); - assert.equal(container.querySelector("button"), null, "nothing to install, nothing to press"); - unmount(); -}); - -test("available updates are listed with install and defer", () => { - const data = { available: [{ label: "archied", available: "v1.31.0" }], can_install: true, snapshot: {} }; - const { container, unmount } = render(); - const labels = [...container.querySelectorAll("button")].map((b) => b.textContent.trim()); - assert.deepEqual(labels, ["Defer", "Install update"]); - assert.match(container.textContent, /archied: v1\.31\.0/); - unmount(); -}); - -test("an update that cannot be installed here offers only defer", () => { - const data = { available: [{ label: "agent", available: "v2" }], can_install: false, snapshot: {} }; - const { container, unmount } = render(); - const labels = [...container.querySelectorAll("button")].map((b) => b.textContent.trim()); - assert.deepEqual(labels, ["Defer"]); - unmount(); -}); - -test("a deferred update reports that rather than pretending to be current", () => { - const { container, unmount } = render( - , - ); - assert.match(container.textContent, /deferred/i); - unmount(); -}); - -test("the update card surfaces its own error", () => { - const { container, unmount } = render(); - assert.match(container.textContent, /check command failed/); - unmount(); -}); - -test("pending dangerous actions offer approve, 24h and deny", () => { - const data = { pending: [{ id: "a1", description: "rm -rf /srv/old" }], checkpoints: [] }; - const { container, unmount } = render(); - assert.match(container.textContent, /rm -rf \/srv\/old/); - const labels = [...container.querySelectorAll(".cfg-pending button")].map((b) => b.textContent.trim()); - assert.deepEqual(labels, ["Approve", "Approve for 24h", "Deny"]); - unmount(); -}); - -test("no pending actions says so", () => { - const { container, unmount } = render(); - assert.match(container.textContent, /No pending dangerous actions/i); - unmount(); -}); - -test("checkpoints are selectable by number and label", () => { - const data = { pending: [], checkpoints: [{ number: 7, label: "before migration" }] }; - const { container, unmount } = render(); - const option = [...container.querySelectorAll("option")].find((o) => o.value === "7"); - assert.ok(option, "checkpoint 7 should be selectable"); - assert.match(option.textContent, /before migration/); - unmount(); -}); - -test("the server's capitalised checkpoint fields are accepted too", () => { - // The API has returned both shapes; the chat panel read either. - const data = { pending: [], checkpoints: [{ Number: 9, Label: "pre-deploy" }] }; - const { container, unmount } = render(); - const option = [...container.querySelectorAll("option")].find((o) => o.value === "9"); - assert.ok(option, "checkpoint 9 should be selectable"); - assert.match(option.textContent, /pre-deploy/); - unmount(); -}); diff --git a/ui/test/settings-readonly.test.js b/ui/test/settings-readonly.test.js deleted file mode 100644 index ec773c895..000000000 --- a/ui/test/settings-readonly.test.js +++ /dev/null @@ -1,28 +0,0 @@ -import { test } from "node:test"; -import assert from "node:assert/strict"; -import { render, cleanup } from "@testing-library/preact"; -import { RepositoriesCard } from "../src/settings/settings.jsx"; - -const repos = [ - { owner: "acme", name: "widget", base: "main", allow_concurrent: true, max_retries: 3, review_enabled: false }, -]; - -// A process that renders a published configuration snapshot has no write -// path: its PATCH routes answer 503. Offering a checkbox that fails on click -// is worse than not offering one (archie-core-ymut). -test("read-only repositories render values, not controls", () => { - const { container, unmount } = render(); - assert.equal(container.querySelectorAll("input").length, 0, "a read-only page must render no repository inputs"); - const row = container.querySelector("tbody tr"); - assert.match(row.textContent, /acme\/widget/); - assert.match(row.textContent, /3/, "the value itself is still shown"); - unmount(); -}); - -test("editable repositories keep their controls", () => { - const { container, unmount } = render(); - assert.ok(container.querySelectorAll("input").length > 0, "the owning process still edits repository fields"); - unmount(); -}); - -test("cleanup", () => cleanup()); diff --git a/ui/test/settings-schema.test.js b/ui/test/settings-schema.test.js deleted file mode 100644 index c55c59e19..000000000 --- a/ui/test/settings-schema.test.js +++ /dev/null @@ -1,127 +0,0 @@ -import { test } from "node:test"; -import assert from "node:assert/strict"; -import { register } from "node:module"; -import { readFileSync } from "node:fs"; -import { fileURLToPath } from "node:url"; -import { render } from "@testing-library/preact"; - -const cssLoad = "data:text/javascript," + encodeURIComponent(` - export async function load(url, context, nextLoad) { - if (url.endsWith(".css")) { - return { format: "module", shortCircuit: true, source: "export default {};" }; - } - return nextLoad(url, context); - } -`); -register(cssLoad, import.meta.url); - -const { api } = await import("../src/base/api.jsx"); -const { settingsPage } = await import("../src/settings/settings.jsx"); - -const settingsJsPath = fileURLToPath(new URL("../src/settings/settings.jsx", import.meta.url)); -const settingsJsSource = readFileSync(settingsJsPath, "utf8"); - -const FIXTURE_SCHEMA = [ - { - id: "budgets", - label: "Budgets", - description: "The limits every autonomous stage runs under.", - fields: [ - { - key: "budgets.made_up_field_xyz", - label: "Totally invented setting", - description: "0 means unlimited.", - type: "int", - value: 0, - editable: true, - restart_required: false, - }, - { - key: "containers.pull_policy", - label: "How images are refreshed", - type: "enum", - value: "missing", - options: ["missing", "always"], - editable: true, - restart_required: true, - }, - { - key: "repos", - label: "Repositories", - type: "structured", - value: [], - editable: false, - }, - ], - }, -]; - -async function renderSettings(cfg) { - const original = { config: api.config, version: api.version, taskMeta: api.taskMeta }; - api.config = async () => cfg; - api.version = async () => ({ components: [] }); - api.taskMeta = async () => ({ statuses: [], actions: [] }); - try { - const vnode = settingsPage(new URLSearchParams()); - const { container } = render(vnode); - await new Promise((resolve) => setTimeout(resolve, 0)); - return container; - } finally { - api.config = original.config; - api.version = original.version; - api.taskMeta = original.taskMeta; - } -} - -test("a field the renderer has never seen still renders its label, value, and edit affordance", async () => { - const root = await renderSettings({ schema: FIXTURE_SCHEMA }); - const text = root.textContent; - assert.ok(text.includes("Totally invented setting"), "the fixture field's label should render"); - assert.ok(root.querySelector(".kv-btn"), "the fixture field should get an Edit affordance (editable: true)"); -}); - -test("an enum field's options reach the row's opts rather than being dropped", async () => { - const root = await renderSettings({ schema: FIXTURE_SCHEMA }); - assert.ok(root.textContent.includes("How images are refreshed")); -}); - -test("a structured field in a schema section renders no card of its own here", async () => { - const root = await renderSettings({ schema: FIXTURE_SCHEMA, repositories: [] }); - assert.ok(!root.textContent.includes("Repositories\n[]"), "a structured field should not get a generic value row"); -}); - -test("repositories render a checkbox and a text input reflecting each repo's current field values", async () => { - const root = await renderSettings({ - repositories: [ - { owner: "acme", name: "widget", base: "main", allow_concurrent: true, max_retries: 3, review_enabled: false }, - ], - }); - - const checkboxes = Array.from(root.querySelectorAll('input[type="checkbox"]')); - const textInputs = Array.from(root.querySelectorAll('input[type="text"]')); - - assert.equal(checkboxes.length, 2, "allow_concurrent and review_enabled should each render a checkbox"); - assert.ok(checkboxes[0].checked, "allow_concurrent=true should render checked"); - assert.equal(checkboxes[1].checked, false, "review_enabled=false should render unchecked"); - assert.ok( - textInputs.some((i) => String(i.value) === "3"), - "max_retries' current value should populate a text input", - ); -}); - -test("settings.jsx contains no literal field-specific branch for the generically-rendered sections", () => { - const genericFieldKeys = [ - "bot_user", "bot_email", "\"label\"", "forge.type", "forge.host", "diff_cap_lines", - "budgets.max_steps", "budgets.wall_clock", "budgets.gate_max_failures", - "skills_dir", "plugin_dir", "secret_engine_dir", - "containers.image", "containers.max_concurrency", "containers.max_uptime", - "containers.volume_ttl", "containers.pull_policy", "containers.network", - "web.listen", - ]; - for (const key of genericFieldKeys) { - assert.ok( - !settingsJsSource.includes(key), - `settings.jsx still references ${key} literally -- the generic renderer must not need per-field knowledge`, - ); - } -}); diff --git a/ui/test/settings-update-status.test.js b/ui/test/settings-update-status.test.js deleted file mode 100644 index dbb4088bd..000000000 --- a/ui/test/settings-update-status.test.js +++ /dev/null @@ -1,42 +0,0 @@ -import { test } from "node:test"; -import assert from "node:assert/strict"; -import { render, cleanup } from "@testing-library/preact"; -import { UpdateStatusCard } from "../src/settings/update-status.jsx"; - -function renderCard(components) { - const { container, unmount } = render(); - return { root: container, unmount }; -} - -test("update status card shows an empty state with no components", () => { - const { root } = renderCard([]); - assert.equal(root.querySelector("table"), null); -}); - -test("update status card renders one row per component with its status pill", () => { - const { root } = renderCard([ - { id: "daemon", label: "Gateway", install_type: "binary", running_version: "1.0.0", latest_available: "1.1.0", status: "update_available" }, - { id: "agent", label: "Runtime", install_type: "container", running_version: "1.0.0", status: "ok" }, - ]); - const rows = root.querySelector("tbody").children; - assert.equal(rows.length, 2); - assert.match(rows[0].textContent, /Gateway/); - assert.match(rows[0].textContent, /Update available/); - assert.match(rows[1].textContent, /OK/); -}); - -test("update status card's row title carries the comparison basis", () => { - const { root } = renderCard([ - { id: "agent", label: "Runtime", installed_claim: "1.1.0", running_version: "1.0.0", reference: "img@sha256:abc", status: "drift" }, - ]); - const row = root.querySelector("tbody").children[0]; - assert.match(row.getAttribute("title"), /Installed claim: 1\.1\.0/); - assert.match(row.getAttribute("title"), /Running: 1\.0\.0/); - assert.match(row.getAttribute("title"), /Reference: img@sha256:abc/); -}); - -test("update status card shows an unrecognised status as its own label rather than crashing", () => { - const { root } = renderCard([{ id: "x", status: "something-new" }]); - const row = root.querySelector("tbody").children[0]; - assert.match(row.textContent, /something-new/); -}); diff --git a/ui/test/shim.js b/ui/test/shim.js deleted file mode 100644 index 43fa3a81d..000000000 --- a/ui/test/shim.js +++ /dev/null @@ -1,244 +0,0 @@ -// Minimal DOM stand-in so DOM-building primitives and Preact components -// can be unit-tested under `node --test` without a full browser. - -class Node { - constructor() { - this.childNodes = []; - this.attrs = {}; - this._innerHTML = ""; - this.parentNode = null; - this.style = {}; - } - - appendChild(c) { - if (c == null || c === false) return c; - if (c instanceof DocumentFragment) { - for (const child of [...c.childNodes]) { - this.appendChild(child); - } - return c; - } - const node = c instanceof Node ? c : new TextNode(String(c)); - node.parentNode = this; - this.childNodes.push(node); - return node; - } - - insertBefore(newNode, refNode) { - if (!refNode) return this.appendChild(newNode); - if (newNode instanceof DocumentFragment) { - for (const child of [...newNode.childNodes]) { - this.insertBefore(child, refNode); - } - return newNode; - } - const node = newNode instanceof Node ? newNode : new TextNode(String(newNode)); - node.parentNode = this; - const idx = this.childNodes.indexOf(refNode); - if (idx === -1) { - this.childNodes.push(node); - } else { - this.childNodes.splice(idx, 0, node); - } - return node; - } - - removeChild(child) { - const idx = this.childNodes.indexOf(child); - if (idx !== -1) { - this.childNodes.splice(idx, 1); - child.parentNode = null; - } - return child; - } - - remove() { - if (this.parentNode) { - this.parentNode.removeChild(this); - } - } - - append(...cs) { - for (const c of cs.flat(Infinity)) { - if (c == null || c === false) continue; - this.appendChild(c); - } - } - - replaceChildren(...cs) { - for (const child of [...this.childNodes]) { - this.removeChild(child); - } - this.append(...cs); - } - - setAttribute(k, v) { - this.attrs[k] = String(v); - } - - getAttribute(k) { - return this.attrs[k] ?? null; - } - - removeAttribute(k) { - delete this.attrs[k]; - } - - addEventListener() {} - removeEventListener() {} - dispatchEvent() { return true; } - - set className(v) { - this.attrs["class"] = v; - } - - get className() { - return this.attrs["class"] ?? ""; - } - - get classList() { - return { - add: (...cls) => { - const set = new Set((this.className || "").split(/\s+/).filter(Boolean)); - cls.forEach((c) => set.add(c)); - this.className = [...set].join(" "); - }, - remove: (...cls) => { - const set = new Set((this.className || "").split(/\s+/).filter(Boolean)); - cls.forEach((c) => set.delete(c)); - this.className = [...set].join(" "); - }, - toggle: (c, force) => { - const set = new Set((this.className || "").split(/\s+/).filter(Boolean)); - const has = set.has(c); - const add = force !== undefined ? force : !has; - if (add) set.add(c); - else set.delete(c); - this.className = [...set].join(" "); - return add; - }, - contains: (c) => (this.className || "").split(/\s+/).includes(c), - }; - } - - set innerHTML(v) { - this._innerHTML = v; - } - - get innerHTML() { - return this._innerHTML; - } - - get textContent() { - return this.childNodes.map((c) => c.textContent).join(""); - } - - get children() { - return this.childNodes.filter((c) => c instanceof Element); - } - - get firstElementChild() { - return this.children[0] ?? null; - } - - get lastElementChild() { - const ch = this.children; - return ch[ch.length - 1] ?? null; - } - - get nextSibling() { - if (!this.parentNode) return null; - const idx = this.parentNode.childNodes.indexOf(this); - return idx !== -1 ? this.parentNode.childNodes[idx + 1] ?? null : null; - } - - /** Selector lookup for assertions to find .chat-topbar, button, etc. */ - querySelector(sel) { - return this.querySelectorAll(sel)[0] ?? null; - } - - querySelectorAll(sel) { - const parts = sel.trim().split(/\s+/); - let currentNodes = [this]; - for (const part of parts) { - const nextNodes = []; - const isClass = part.startsWith("."); - const tag = !isClass ? part.toLowerCase() : null; - const className = isClass ? part.slice(1) : null; - - for (const parent of currentNodes) { - const queue = [...parent.childNodes]; - while (queue.length) { - const c = queue.shift(); - if (c instanceof Element) { - let match = false; - if (isClass) { - const classes = (c.attrs["class"] || "").split(/\s+/).filter(Boolean); - if (classes.includes(className)) match = true; - } else if (tag && c.tagName.toLowerCase() === tag) { - match = true; - } - if (match) nextNodes.push(c); - queue.push(...c.childNodes); - } - } - } - currentNodes = nextNodes; - } - return currentNodes; - } -} - -class TextNode extends Node { - constructor(text) { - super(); - this._text = String(text); - this.nodeType = 3; - } - - get textContent() { - return this._text; - } - - set textContent(v) { - this._text = String(v); - } - - get data() { - return this._text; - } - - set data(v) { - this._text = String(v); - } -} - -class DocumentFragment extends Node { - constructor() { - super(); - this.nodeType = 11; - } -} - -class Element extends Node { - constructor(tag) { - super(); - this.tagName = tag.toUpperCase(); - this.nodeType = 1; - this.dataset = {}; - } -} - -globalThis.Node = Node; -globalThis.Element = Element; -globalThis.TextNode = TextNode; -globalThis.DocumentFragment = DocumentFragment; -globalThis.document = { - createElement: (tag) => new Element(tag), - createElementNS: (ns, tag) => new Element(tag || "svg"), - createDocumentFragment: () => new DocumentFragment(), - createTextNode: (text) => new TextNode(String(text)), -}; -globalThis.window = globalThis; -globalThis.addEventListener = () => {}; -globalThis.removeEventListener = () => {}; diff --git a/ui/test/stage-rail.test.js b/ui/test/stage-rail.test.js deleted file mode 100644 index 56b5de388..000000000 --- a/ui/test/stage-rail.test.js +++ /dev/null @@ -1,229 +0,0 @@ -import { test } from "node:test"; -import assert from "node:assert/strict"; -import { render, cleanup } from "@testing-library/preact"; -import { StageRail } from "../src/tasks/stage-rail.jsx"; - -// The frozen shape of GET /api/tasks/{id}/attempts. Attempt 1 failed on -// `implement`; attempt 2 is still running. The attempt-level duration_ms is -// present on purpose: the rail must not render it. -const ATTEMPTS = { - task_id: 42, - current_attempt: 2, - unattributed_events: 3, - attempts: [ - { - attempt: 1, - status: "failed", - started_at: "2026-09-18T07:00:00.000Z", - finished_at: "2026-09-18T07:04:00.000Z", - duration_ms: 1_000_000, - event_count: 14, - stages: [ - { name: "prepare", seq: 0, status: "ok", started_at: "2026-09-18T07:00:00.123Z", duration_ms: 1200, error: "" }, - { - name: "implement", - seq: 1, - status: "failed", - started_at: "2026-09-18T07:00:01.323Z", - duration_ms: 230000, - error: "stage implement: builder exited 1", - }, - ], - }, - { - attempt: 2, - status: "running", - started_at: "2026-09-18T07:05:00.000Z", - event_count: 2, - stages: [{ name: "analyse", seq: 0, status: "running", started_at: "2026-09-18T07:05:00.000Z" }], - }, - ], -}; - -function mount(props) { - const { container, unmount } = render(); - return { root: container, unmount }; -} - -function stageRow(root, name) { - return [...root.querySelectorAll(".run-stage")].find( - (row) => row.querySelector(".run-stage-name")?.textContent === name, - ); -} - -test("each stage renders its name, duration and terminal status", () => { - const { root, unmount } = mount({ state: ATTEMPTS, attemptNumber: 1, events: [] }); - const prepare = stageRow(root, "prepare"); - assert.ok(prepare, "the prepare stage should render"); - assert.match(prepare.textContent, /prepare/); - assert.match(prepare.textContent, /ok/); - assert.match(prepare.textContent, /ran for 1\.2 s/); - const implement = stageRow(root, "implement"); - assert.match(implement.textContent, /ran for 3 min 50 s/); - assert.match(implement.textContent, /stage implement: builder exited 1/); - unmount(); -}); - -// W2: merging attempts by stage name is the failure this whole feature exists to -// prevent. -test("the rail shows only the selected attempt's stages", () => { - const { root, unmount } = mount({ state: ATTEMPTS, attemptNumber: 1, events: [] }); - assert.ok(stageRow(root, "prepare")); - assert.ok(stageRow(root, "implement")); - assert.equal(stageRow(root, "analyse"), undefined, "attempt 2's stages must not appear in attempt 1's rail"); - assert.match(root.textContent, /Attempt 1/); - unmount(); -}); - -test("an interrupted stage is not labelled failed", () => { - const state = { - ...ATTEMPTS, - attempts: [ - { - attempt: 1, - status: "interrupted", - started_at: "2026-09-18T07:00:00.000Z", - stages: [{ name: "implement", seq: 0, status: "interrupted", duration_ms: 4200, error: "context canceled" }], - }, - ], - }; - const { root, unmount } = mount({ state, attemptNumber: 1, events: [] }); - const row = stageRow(root, "implement"); - assert.match(row.textContent, /interrupted/); - assert.doesNotMatch(row.textContent, /failed/); - unmount(); -}); - -test("a stage with no recorded start shows no invented duration", () => { - const state = { - ...ATTEMPTS, - attempts: [ - { - attempt: 1, - status: "ok", - stages: [{ name: "commit", seq: 0, status: "ok" }], - }, - ], - }; - const { root, unmount } = mount({ state, attemptNumber: 1, events: [] }); - const row = stageRow(root, "commit"); - assert.match(row.textContent, /duration not recorded/); - assert.doesNotMatch(row.textContent, /ran for/); - unmount(); -}); - -// F3: waiting_human can span days, so an attempt's wall time is not a duration -// of work and the page must not present it as one. -test("the attempt's own duration is never rendered", () => { - const { root, unmount } = mount({ state: ATTEMPTS, attemptNumber: 1, events: [] }); - assert.doesNotMatch(root.textContent, /ran for 16 min/); - assert.doesNotMatch(root.textContent, /1,000,000|1000000/); - unmount(); -}); - -test("events with no attempt are reported rather than guessed at", () => { - const { root, unmount } = mount({ state: ATTEMPTS, attemptNumber: 1, events: [] }); - assert.match(root.textContent, /3 events on this task predate attempt attribution/); - unmount(); -}); - -// F1: a stage is `ok` when its function returned without error. There is no -// exit code and no verification, and the agent's own verdict is a separate -// claim -- neither may be presented as a check result. -test("the agent's own verdict is shown separately from the stage's status", () => { - const events = [ - { - kind: "agent_finish", - attempt: 1, - stage: "implement", - data: { status: "passed", iterations: 7, tokens: 1234, model: "openai/gpt-5.6-luna" }, - }, - ]; - const { root, unmount } = mount({ state: ATTEMPTS, attemptNumber: 1, events }); - const row = stageRow(root, "implement"); - assert.match(row.textContent, /Agent's own report, not verified by archie/); - assert.match(row.textContent, /Agent passed: implement/); - assert.match(row.textContent, /failed/, "the stage keeps its own terminal status"); - assert.doesNotMatch(row.textContent, /exit code|exit status/i); - unmount(); -}); - -test("an agent report for another attempt is not attached to this attempt's stage", () => { - const events = [ - { kind: "agent_finish", attempt: 2, stage: "implement", data: { status: "passed" } }, - ]; - const { root, unmount } = mount({ state: ATTEMPTS, attemptNumber: 1, events }); - assert.doesNotMatch(root.textContent, /Agent's own report/); - unmount(); -}); - -test("the rail says what ok means instead of implying a gate ran", () => { - const { root, unmount } = mount({ state: ATTEMPTS, attemptNumber: 1, events: [] }); - assert.match(root.textContent, /ok means the stage returned without error/); - assert.match(root.textContent, /does not verify/); - unmount(); -}); - -test("an attempt with no stages says so instead of showing an empty rail", () => { - const state = { - task_id: 42, - current_attempt: 1, - unattributed_events: 0, - attempts: [{ attempt: 1, status: "unknown", stages: [] }], - }; - const { root, unmount } = mount({ state, attemptNumber: 1, events: [] }); - assert.match(root.textContent, /No stages recorded for this attempt/); - unmount(); -}); - -test("a task with no attempts says so", () => { - const { root, unmount } = mount({ - state: { task_id: 42, current_attempt: 0, unattributed_events: 0, attempts: [] }, - attemptNumber: null, - events: [], - }); - assert.match(root.textContent, /No attempts recorded/); - unmount(); -}); - -test("a selected attempt that was never recorded is reported, not faked", () => { - const { root, unmount } = mount({ state: ATTEMPTS, attemptNumber: 9, events: [] }); - assert.match(root.textContent, /Attempt 9 is not recorded for this task/); - assert.match(root.textContent, /attempt 1, 2/); - unmount(); -}); - -// A deployment where every event predates the attempt column answers with no -// attempts at all -- but the events are still there, unattributed. The count -// must be surfaced in the EMPTY rail too, not only beside a populated one, or -// the page presents unattributable history as "nothing happened". -test("unattributed events are surfaced even when no attempt is recorded", () => { - const { root, unmount } = mount({ - state: { task_id: 42, current_attempt: 0, unattributed_events: 4, attempts: [] }, - attemptNumber: null, - events: [], - }); - assert.match(root.textContent, /No attempts recorded/); - assert.match(root.textContent, /4 events on this task predate attempt attribution/); - unmount(); -}); - -test("unattributed events are surfaced when the selected attempt is not recorded", () => { - const { root, unmount } = mount({ state: ATTEMPTS, attemptNumber: 9, events: [] }); - assert.match(root.textContent, /Attempt 9 is not recorded/); - assert.match(root.textContent, /3 events on this task predate attempt attribution/); - unmount(); -}); - -test("loading and failure states are distinct, and the failure offers a retry", () => { - const loading = mount({ state: undefined, attemptNumber: null, events: [] }); - assert.match(loading.root.textContent, /Loading/); - loading.unmount(); - - const failed = mount({ state: null, attemptNumber: null, events: [], onRetry: () => {} }); - assert.match(failed.root.textContent, /Could not load this task's attempts/); - assert.equal(failed.root.querySelector("button").textContent, "Retry"); - failed.unmount(); -}); - -test.after(() => cleanup()); diff --git a/ui/test/statTile.test.js b/ui/test/statTile.test.js deleted file mode 100644 index 155e01471..000000000 --- a/ui/test/statTile.test.js +++ /dev/null @@ -1,55 +0,0 @@ -// KPI tile regression coverage, moved here when base/statTile.jsx stopped -// building DOM by hand. -// -// The regression this pins: `el("div.stat-value", 0, ...)` treated a falsy -// first child (0, "", false) as "no attributes" and dropped it, so stat tiles -// rendered an empty headline whenever the value was zero. The dashboards of -// fresh installs showed exactly that -- labels and comparison text, no number. -// JSX does not have that bug, which is precisely why the case is worth keeping: -// it is what a future `value &&
` refactor would break. - -import { test } from "node:test"; -import assert from "node:assert/strict"; -import { h } from "preact"; -import { render, cleanup } from "@testing-library/preact"; -import { StatTile, Sparkline } from "../src/base/statTile.jsx"; - -test("StatTile renders a zero headline value", () => { - const { container } = render(); - const tile = container.querySelector(".card.stat"); - assert.equal(tile.querySelector(".stat-label").textContent, "Working now"); - assert.equal(tile.querySelector(".stat-value").textContent, "0"); - assert.equal(tile.querySelector(".stat-compare").textContent, "Nothing running"); - cleanup(); -}); - -test("StatTile renders an empty-string headline value without dropping it", () => { - const { container } = render(); - assert.equal(container.querySelector(".stat-value").textContent, ""); - assert.equal(container.querySelector(".stat-compare").textContent, "Across 14 days"); - cleanup(); -}); - -test("StatTile renders a string headline value", () => { - const { container } = render(); - assert.equal(container.querySelector(".stat-value").textContent, "2.4M"); - cleanup(); -}); - -test("StatTile shows a trend direction only when a trend is supplied", () => { - const plain = render(); - assert.equal(plain.container.querySelector(".stat-trend"), null); - cleanup(); - const trended = render(); - assert.match(trended.container.querySelector(".stat-trend").textContent, /12\.5/); - cleanup(); -}); - -test("StatTile draws a sparkline only when a series has a shape to show", () => { - const flat = render(); - assert.equal(flat.container.querySelector("svg.spark"), null); - cleanup(); - const shaped = render(); - assert.ok(shaped.container.querySelector("svg.spark polyline")); - cleanup(); -}); diff --git a/ui/test/stream-state.test.js b/ui/test/stream-state.test.js deleted file mode 100644 index e155a232a..000000000 --- a/ui/test/stream-state.test.js +++ /dev/null @@ -1,22 +0,0 @@ -import { test } from "node:test"; -import assert from "node:assert/strict"; -import { streamStateFor } from "../src/base/stream-state.js"; - -test("a retrying connection reports reconnecting", () => { - assert.equal(streamStateFor(0), "reconnecting"); -}); - -test("an open connection reports live", () => { - assert.equal(streamStateFor(1), "live"); -}); - -// The bug: a 503 closes the stream for good, and the page claimed it was -// reconnecting forever. -test("a closed connection reports unavailable, not reconnecting", () => { - assert.equal(streamStateFor(2), "unavailable"); -}); - -test("an unexpected readyState is treated as unavailable rather than live", () => { - assert.equal(streamStateFor(undefined), "unavailable"); - assert.equal(streamStateFor(99), "unavailable"); -}); diff --git a/ui/test/task-detail.test.js b/ui/test/task-detail.test.js deleted file mode 100644 index 10050dec9..000000000 --- a/ui/test/task-detail.test.js +++ /dev/null @@ -1,466 +0,0 @@ -import { test } from "node:test"; -import assert from "node:assert/strict"; -import { render, cleanup, fireEvent, waitFor } from "@testing-library/preact"; -import { render as preactRender } from "preact"; -import { api, ApiError } from "../src/base/api.jsx"; -import { taskDetailPage } from "../src/tasks/task-detail.jsx"; - -const CONFIG_SCHEMA = "archie/task-config@1"; - -const TASK = { - id: 42, - title: "Fix the flaky test", - status: "parked", - owner: "o", - repo: "r", - workflow: "tdd", - attempt: 2, - actions: ["retry", "abandon", "reject"], - repo_url: "https://forge.example.internal/o/r", - issue_url: "https://forge.example.internal/o/r/issues/5", - issue_number: 5, - pr_number: 7, - pr_url: "https://forge.example.internal/o/r/pull/7", -}; - -const ATTEMPTS = { - task_id: 42, - current_attempt: 2, - unattributed_events: 0, - attempts: [ - { - attempt: 1, - status: "failed", - started_at: "2026-09-18T07:00:00.000Z", - finished_at: "2026-09-18T07:04:00.000Z", - duration_ms: 240333, - event_count: 3, - stages: [ - { name: "prepare", seq: 0, status: "ok", started_at: "2026-09-18T07:00:00.123Z", duration_ms: 1200, error: "" }, - { name: "implement", seq: 1, status: "failed", duration_ms: 230000, error: "stage implement: builder exited 1" }, - ], - }, - { - attempt: 2, - status: "running", - started_at: "2026-09-18T07:05:00.000Z", - event_count: 1, - stages: [{ name: "analyse", seq: 0, status: "running", started_at: "2026-09-18T07:05:00.000Z" }], - }, - ], -}; - -const EVENTS = [ - { - kind: "config_captured", - attempt: 2, - at: "2026-09-18T07:05:00.100Z", - stage: "", - data: { schema: CONFIG_SCHEMA, document: { BotUser: "archie", Models: { main: "openai/gpt" } } }, - }, - { kind: "stage_start", attempt: 2, stage: "analyse", at: "2026-09-18T07:05:00.000Z", data: {} }, -]; - -function install(overrides = {}) { - const original = { - tasks: api.tasks, - task: api.task, - taskAttempts: api.taskAttempts, - taskLogs: api.taskLogs, - taskChanges: api.taskChanges, - taskDebug: api.taskDebug, - taskAction: api.taskAction, - }; - const calls = { tasks: 0, task: 0, attempts: 0, logs: [], changes: [], debug: [], actions: [] }; - api.tasks = async () => { - calls.tasks += 1; - return [TASK]; - }; - api.task = async (id) => { - calls.task += 1; - return EVENTS; - }; - api.taskAttempts = async (id) => { - calls.attempts += 1; - return ATTEMPTS; - }; - api.taskLogs = async (id, params) => { - calls.logs.push(params); - return { found: true, attempt: params?.attempt ?? 2, disabled: false, entries: [{ level: "info", msg: "line", time: "2026-09-18T07:05:00Z" }] }; - }; - api.taskChanges = async (id, params) => { - calls.changes.push(params); - return { task_id: 42, attempt: params?.attempt ?? 2, found: false, captures: [] }; - }; - api.taskDebug = async (id, params) => { - calls.debug.push(params); - return { task_id: 42, attempt: params?.attempt ?? 2, task: TASK, events: EVENTS }; - }; - api.taskAction = async (id, action) => { - calls.actions.push({ id, action }); - return {}; - }; - for (const [key, value] of Object.entries(overrides)) api[key] = value; - const restore = () => Object.assign(api, original); - return { calls, restore }; -} - -function mount(queryString, id = "42") { - const { container, unmount } = render( - taskDetailPage(new URLSearchParams(queryString), { id }), - ); - return { root: container, unmount }; -} - -test("the page offers every panel as a tab and opens Stages by default", async () => { - const { restore } = install(); - const { root, unmount } = mount("tab="); - await waitFor(() => assert.ok(root.querySelector(".run-stages"), "the rail should render")); - const tabs = [...root.querySelectorAll('[role="tab"]')].map((tab) => tab.textContent); - assert.deepEqual(tabs, ["Stages", "Log", "Changed files", "Configuration", "Debug"]); - assert.equal(root.querySelector('[role="tab"]').getAttribute("aria-selected"), "true"); - // The panel is bound to the selected tab. - const panel = root.querySelector('[role="tabpanel"]'); - assert.equal(panel.getAttribute("aria-labelledby"), root.querySelector('[role="tab"]').id); - unmount(); - restore(); -}); - -test("the panel element is the selected tab's panel", () => { - const { root, unmount } = mount("tab=changes"); - const selected = [...root.querySelectorAll('[role="tab"]')].find( - (tab) => tab.getAttribute("aria-selected") === "true", - ); - assert.equal(selected.textContent, "Changed files"); - assert.equal(root.querySelector('[role="tabpanel"]').id, selected.getAttribute("aria-controls")); - unmount(); -}); - -// R8: the tabs are deep-linkable, so the query string alone decides which panel -// opens -- including on a reload with no client state. -test("?tab= decides which panel opens", async () => { - const { restore, calls } = install(); - const { root, unmount } = mount("tab=debug"); - await waitFor(() => assert.ok(root.querySelector(".run-json"), "the debug view should render")); - const json = root.querySelector(".run-json").textContent; - assert.match(json, /"title": "Fix the flaky test"/); - assert.match(json, /"attempt": 2/); - assert.match(root.textContent, /Attempt 2 is the one selected above/); - assert.deepEqual(calls.debug, [{ attempt: 2 }]); - // The debug envelope is only fetched for the visible tab. - assert.equal(calls.changes.length, 0); - unmount(); - restore(); -}); - -test("the debug view states that its event list is unfiltered", async () => { - const { restore } = install(); - const { root, unmount } = mount("tab=debug"); - await waitFor(() => assert.ok(root.querySelector(".run-json"))); - assert.match(root.textContent, /Events are unfiltered on purpose/); - unmount(); - restore(); -}); - -test("the default attempt is the task's current one", async () => { - const { restore } = install(); - const { root, unmount } = mount("tab=stages"); - await waitFor(() => assert.ok(root.querySelector(".run-stages"))); - assert.match(root.textContent, /Attempt 2/); - assert.equal( - [...root.querySelectorAll(".run-stage-name")].map((n) => n.textContent).join(","), - "analyse", - "attempt 1's stages must not appear on the current attempt's rail", - ); - const chips = [...root.querySelectorAll(".run-attempt")]; - assert.equal(chips.length, 2); - assert.equal(chips[1].getAttribute("aria-pressed"), "true"); - unmount(); - restore(); -}); - -test("?attempt= pins an earlier attempt and the rail follows it", async () => { - const { restore } = install(); - const { root, unmount } = mount("tab=stages&attempt=1"); - await waitFor(() => assert.ok(root.querySelector(".run-stages"))); - assert.deepEqual( - [...root.querySelectorAll(".run-stage-name")].map((n) => n.textContent), - ["prepare", "implement"], - ); - assert.equal(root.querySelectorAll(".run-attempt")[0].getAttribute("aria-pressed"), "true"); - unmount(); - restore(); -}); - -test("selecting another attempt re-reads the panels for that attempt", async () => { - const { restore } = install(); - const { root, unmount } = mount("tab=stages"); - await waitFor(() => assert.ok(root.querySelector(".run-stages"))); - fireEvent.click(root.querySelectorAll(".run-attempt")[0]); - await waitFor(() => - assert.deepEqual( - [...root.querySelectorAll(".run-stage-name")].map((n) => n.textContent), - ["prepare", "implement"], - ), - ); - unmount(); - restore(); -}); - -test("the log pane sends the selected attempt and the filters to the server", async () => { - const { restore, calls } = install(); - const { root, unmount } = mount("tab=log&attempt=1"); - await waitFor(() => assert.ok(root.querySelector(".log-list"))); - assert.deepEqual(calls.logs, [{ attempt: 1, level: "", stage: "", limit: 500 }]); - - const stageSelect = [...root.querySelectorAll(".task-log-filter select")][1]; - fireEvent.change(stageSelect, { target: { value: "prepare" } }); - await waitFor(() => assert.equal(calls.logs.length, 2)); - assert.deepEqual(calls.logs[1], { attempt: 1, level: "", stage: "prepare", limit: 500 }); - await waitFor(() => assert.match(root.textContent, /A stage filter matches only log lines that record a stage/)); - unmount(); - restore(); -}); - -// R4: the Config tab consumes the events response the page already holds, so it -// must issue no request of its own. -test("the configuration tab reads the captured document from the fetched events", async () => { - const { restore, calls } = install(); - const { root, unmount } = mount("tab=config"); - await waitFor(() => assert.ok(root.querySelector(".run-json"))); - assert.match(root.querySelector(".run-json").textContent, /"BotUser": "archie"/); - assert.equal(calls.task, 1, "the events are fetched once, by the page"); - assert.equal(calls.changes.length, 0); - assert.equal(calls.debug.length, 0); - unmount(); - restore(); -}); - -test("the configuration tab says nothing was captured for an attempt with no record", async () => { - const { restore } = install(); - const { root, unmount } = mount("tab=config&attempt=1"); - await waitFor(() => - assert.equal(root.querySelector(".empty-title").textContent, "Not captured for this run"), - ); - unmount(); - restore(); -}); - -test("changed files are read for the selected attempt and say a capture is missing", async () => { - const { restore, calls } = install(); - const { root, unmount } = mount("tab=changes&attempt=1"); - await waitFor(() => - assert.equal(root.querySelector(".empty-title").textContent, "No change capture was recorded for this attempt"), - ); - assert.deepEqual(calls.changes, [{ attempt: 1 }]); - unmount(); - restore(); -}); - -// R6: the control is labelled as a new run, and the copy says what it destroys. -test("the new-run control states that the previous attempt's commits are discarded", async () => { - const { restore } = install(); - const { root, unmount } = mount("tab=stages"); - await waitFor(() => assert.ok(root.querySelector(".run-restart"))); - const button = root.querySelector(".run-restart button"); - assert.equal(button.textContent, "Start a new run"); - assert.match(root.textContent, /The previous attempt's commits are discarded/); - assert.match(root.textContent, /fresh worktree reset onto the base branch/); - unmount(); - restore(); -}); - -test("a declined confirmation starts no run", async () => { - const { restore, calls } = install(); - const originalConfirm = window.confirm; - let asked = ""; - window.confirm = (text) => { - asked = text; - return false; - }; - const { root, unmount } = mount("tab=stages"); - await waitFor(() => assert.ok(root.querySelector(".run-restart button"))); - fireEvent.click(root.querySelector(".run-restart button")); - assert.match(asked, /previous attempt's commits are discarded/); - assert.deepEqual(calls.actions, []); - unmount(); - window.confirm = originalConfirm; - restore(); -}); - -test("a confirmed new run drops the old attempt's caches and selects the new run", async () => { - const NEW_ATTEMPTS = { - task_id: 42, - current_attempt: 3, - unattributed_events: 0, - attempts: [ - ...ATTEMPTS.attempts, - { attempt: 3, status: "running", started_at: "2026-09-18T07:09:00.000Z", event_count: 1, stages: [{ name: "bootstrap", seq: 0, status: "ok", duration_ms: 500 }] }, - ], - }; - let attemptReads = 0; - const { restore, calls } = install({ - taskAttempts: async () => { - attemptReads += 1; - return attemptReads === 1 ? ATTEMPTS : NEW_ATTEMPTS; - }, - }); - const originalConfirm = window.confirm; - window.confirm = () => true; - const { root, unmount } = mount("tab=stages"); - await waitFor(() => assert.ok(root.querySelector(".run-stages"))); - fireEvent.click(root.querySelector(".run-restart button")); - await waitFor(() => assert.equal(root.querySelectorAll(".run-attempt").length, 3)); - await waitFor(() => - assert.deepEqual( - [...root.querySelectorAll(".run-stage-name")].map((n) => n.textContent), - ["bootstrap"], - "the new run's stages are shown, not the previous attempt's", - ), - ); - assert.deepEqual(calls.actions, [{ id: 42, action: "retry" }]); - assert.equal(root.querySelectorAll(".run-attempt")[2].getAttribute("aria-pressed"), "true"); - assert.equal(calls.task, 2, "the ended attempt's events are refetched for the new run"); - unmount(); - window.confirm = originalConfirm; - restore(); -}); - -test("a task outside the listed rows is reported honestly rather than blank", async () => { - const { restore } = install({ tasks: async () => [] }); - const { root, unmount } = mount("tab=stages"); - await waitFor(() => assert.ok(root.querySelector(".run-stages"))); - assert.match(root.textContent, /not among the tasks this dashboard lists/); - assert.match(root.textContent, /Debug tab holds the stored record verbatim/); - assert.match(root.textContent, /operator controls could not be read/); - unmount(); - restore(); -}); - -test("a deployment that lists no tasks for this id still shows the recorded run", async () => { - const { restore } = install({ tasks: async () => [] }); - const { root, unmount } = mount("tab=stages&attempt=1"); - await waitFor(() => assert.ok(root.querySelector(".run-stages"))); - assert.match(root.textContent, /Task #42/); - assert.match(root.textContent, /prepare/); - unmount(); - restore(); -}); - -test("an unknown task renders an honest failure, not an empty page", async () => { - const { restore } = install({ - taskAttempts: async () => { - throw new ApiError("no such task", 404); - }, - }); - const { root, unmount } = mount("tab=stages"); - await waitFor(() => assert.ok(root.querySelector(".page-title"))); - assert.match(root.querySelector(".page-title").textContent, /Task not found/); - assert.match(root.textContent, /No task with id 42/); - unmount(); - restore(); -}); - -test("a non-numeric id is refused without asking the server anything", () => { - const { restore, calls } = install(); - const { root, unmount } = mount("tab=stages", "not-an-id"); - assert.match(root.textContent, /is not a task id/); - assert.deepEqual(calls, { tasks: 0, task: 0, attempts: 0, logs: [], changes: [], debug: [], actions: [] }); - unmount(); - restore(); -}); - -test("a task with no attempts says so on every panel", async () => { - const { restore } = install({ - taskAttempts: async () => ({ task_id: 42, current_attempt: 0, unattributed_events: 4, attempts: [] }), - }); - const { root, unmount } = mount("tab=stages"); - await waitFor(() => assert.match(root.textContent, /No attempts recorded/)); - fireEvent.click([...root.querySelectorAll('[role="tab"]')][3]); - await waitFor(() => assert.match(root.textContent, /No attempt recorded/)); - unmount(); - restore(); -}); - -test("a failure to load the attempts offers a retry", async () => { - let reads = 0; - const { restore } = install({ - taskAttempts: async () => { - reads += 1; - if (reads === 1) throw new Error("boom"); - return ATTEMPTS; - }, - }); - const { root, unmount } = mount("tab=stages"); - await waitFor(() => assert.match(root.textContent, /Could not load this task's attempts/)); - fireEvent.click([...root.querySelectorAll(".run-error button")][0]); - await waitFor(() => assert.ok(root.querySelector(".run-stages"))); - unmount(); - restore(); -}); - -// The router renders the run page with Preact's own render() into one long-lived -// outlet (main.jsx, show()), so moving from one task id to another diffs the same -// component in place rather than mounting a fresh one. Every piece of task-scoped -// state therefore has to be re-established when the id changes -- otherwise the -// new task is shown with the previous task's tab, pinned attempt, run history and -// events. RunDetail's own comment relies on this ("the route remounts it when -// that changes"), so navigating between two ids is the case to pin. -test("navigating to another task id re-establishes the task-scoped reads and selections", async () => { - const attemptReads = []; - const eventReads = []; - const { restore } = install({ - taskAttempts: async (id) => { - attemptReads.push(String(id)); - return ATTEMPTS; - }, - task: async (id) => { - eventReads.push(String(id)); - return EVENTS; - }, - }); - const host = document.createElement("div"); - document.body.appendChild(host); - - // Task 1, opened pinned to its earlier attempt and to the Log tab. - preactRender(taskDetailPage(new URLSearchParams("tab=log&attempt=1"), { id: "1" }), host); - await waitFor(() => assert.equal(attemptReads.length, 1)); - const selectedTab = () => - [...host.querySelectorAll('[role="tab"]')].find( - (tab) => tab.getAttribute("aria-selected") === "true", - ); - const pressedAttempt = () => - [...host.querySelectorAll(".run-attempt")].find( - (chip) => chip.getAttribute("aria-pressed") === "true", - ); - assert.equal(selectedTab().textContent, "Log"); - assert.match(pressedAttempt().textContent, /Attempt 1/); - - // The router's own navigation: the same matched route, a different captured id, - // the same outlet. Nothing unmounts, so no state is cleared for free. - preactRender(taskDetailPage(new URLSearchParams(""), { id: "2" }), host); - - await waitFor(() => - assert.equal(attemptReads.length, 2, "the new task's run history must be re-read"), - ); - assert.equal(attemptReads[1], "2", "the run history must be read for the new task's id"); - assert.equal(eventReads.length, 2, "the new task's events must be re-read"); - assert.equal(eventReads[1], "2", "the events must be read for the new task's id"); - - assert.equal( - selectedTab().textContent, - "Stages", - "the previous task's tab must not carry over to the new task", - ); - assert.match( - pressedAttempt().textContent, - /Attempt 2/, - "the previous task's pinned attempt must not carry over to the new task", - ); - - preactRender(null, host); - host.remove(); - restore(); -}); - -test.after(() => cleanup()); diff --git a/ui/test/task-filters.test.js b/ui/test/task-filters.test.js deleted file mode 100644 index b9552829e..000000000 --- a/ui/test/task-filters.test.js +++ /dev/null @@ -1,35 +0,0 @@ -import { test } from "node:test"; -import assert from "node:assert/strict"; -import "./shim.js"; -import { initialTaskFilter, taskMatchesStatus } from "../src/tasks/task-filters.js"; -import { attentionStatusIds, statusIds } from "../src/base/task-meta.js"; - -test("the needs_you filter group matches exactly the catalog's attention statuses", () => { - const attention = attentionStatusIds(); - // Every status the catalog marks as needing a human matches "needs_you". - for (const id of attention) { - assert.equal(taskMatchesStatus({ status: id }, "needs_you"), true, `${id} should match needs_you`); - } - // No non-attention catalog status does. - for (const id of statusIds()) { - if (!attention.has(id)) { - assert.equal(taskMatchesStatus({ status: id }, "needs_you"), false, `${id} should not match needs_you`); - } - } -}); - -test("initialTaskFilter accepts needs_you and every catalog status, and drops unknowns", () => { - assert.equal(initialTaskFilter(new URLSearchParams("status=needs_you")), "needs_you"); - // TASK_STATUSES is derived from the catalog, so every statusId is accepted. - for (const id of statusIds()) { - assert.equal(initialTaskFilter(new URLSearchParams(`status=${id}`)), id, `${id} should be accepted`); - } - assert.equal(initialTaskFilter(new URLSearchParams("status=quantum_superposition")), ""); - assert.equal(initialTaskFilter(new URLSearchParams("status=")), ""); -}); - -test("taskMatchesStatus matches a specific catalog status exactly", () => { - assert.equal(taskMatchesStatus({ status: "running" }, "running"), true); - assert.equal(taskMatchesStatus({ status: "running" }, "queued"), false); - assert.equal(taskMatchesStatus({ status: "running" }, ""), true); -}); diff --git a/ui/test/task-logs.test.js b/ui/test/task-logs.test.js deleted file mode 100644 index 69891c4dc..000000000 --- a/ui/test/task-logs.test.js +++ /dev/null @@ -1,248 +0,0 @@ -import { test } from "node:test"; -import assert from "node:assert/strict"; -import { render, cleanup, fireEvent } from "@testing-library/preact"; -import { TaskLogPanel, logCacheKey, taskLogDownloadURL } from "../src/tasks/task-logs.jsx"; - -function renderPanel(state, opts = {}) { - const { container, unmount } = render( - , - ); - return { root: container, unmount }; -} - -test("loading state renders a loading placeholder", () => { - const { root, unmount } = renderPanel(undefined); - assert.match(root.querySelector(".task-log-loading")?.className || "", /task-log-loading/); - assert.match(root.textContent, /Loading/); - unmount(); -}); - -test("fetch failure renders a retry control", () => { - const { root, unmount } = renderPanel(null, { onRetry: () => {} }); - assert.match(root.querySelector(".task-log-error")?.className || "", /task-log-error/); - const btn = root.querySelector("button"); - assert.ok(btn, "a retry button should render"); - assert.equal(btn.textContent, "Retry"); - unmount(); -}); - -// The panel used to answer every failed read with "Task logging is optional -// and was not enabled for this run", which was false in a deployment where -// logging is unconditional: the dashboard simply could not read the log. The -// two conditions are now stated differently, and this pins that they stay so. -test("a reader that is absent says the dashboard cannot read logs, not that logging is off", () => { - const { root, unmount } = renderPanel({ disabled: true, entries: [] }); - assert.match(root.textContent, /No persisted log/); - assert.doesNotMatch( - root.textContent, - /not enabled for this run/, - "this text blames a configuration setting for a process that simply cannot read logs", - ); - unmount(); -}); - -test("an attempt with a reader but no log file is not reported as disabled", () => { - const { root, unmount } = renderPanel({ found: false, entries: [], attempt: 0 }); - assert.match(root.textContent, /No log recorded for this attempt/); - assert.doesNotMatch(root.textContent, /was not enabled for this run/); - unmount(); -}); - -test("empty entries render a placeholder distinct from the disabled state", () => { - const { root, unmount } = renderPanel({ disabled: false, found: true, entries: [], attempt: 0 }); - assert.match(root.textContent, /Nothing recorded/); - unmount(); -}); - -test("entries render one row per entry with fields visible, surfacing stage/token detail", () => { - const { root, unmount } = renderPanel({ - found: true, - entries: [ - { - time: "2026-01-01T00:00:00Z", - level: "info", - msg: "stage complete", - fields: { stage: "implement", tokens: 1234, model: "sonnet" }, - }, - { - time: "2026-01-01T00:01:00Z", - level: "error", - msg: "agent failed", - fields: { iteration: 3 }, - }, - ], - }); - const list = root.querySelector(".log-list"); - assert.ok(list, "the log list wrapper should render"); - assert.equal(list.children.length, 2, "one .log-row per entry"); - assert.match(root.textContent, /stage complete/); - assert.match(root.textContent, /implement/); - assert.match(root.textContent, /1234/); - assert.match(root.textContent, /sonnet/); - assert.match(root.textContent, /agent failed/); - assert.match(root.textContent, /iteration/); - unmount(); -}); - -// The download is the feature the panel was missing: an operator who wants the -// log in their own tooling had no way to get it. -test("the download link points at the attempt being shown", () => { - assert.equal(taskLogDownloadURL(42, 3), "/api/tasks/42/logs/download?attempt=3"); - // No attempt yet resolved: let the server pick the task's current one. - assert.equal(taskLogDownloadURL(42, null), "/api/tasks/42/logs/download"); -}); - -test("a panel with entries offers the download for that attempt", () => { - const { root, unmount } = renderPanel({ found: true, attempt: 3, entries: [{ level: "info", msg: "hi" }] }, { taskId: 42 }); - const link = root.querySelector(".task-log-download"); - assert.ok(link, "a download control should render when the attempt has a log"); - assert.equal(link.getAttribute("href"), "/api/tasks/42/logs/download?attempt=3"); - unmount(); -}); - -test("a panel for an attempt with no log offers no download", () => { - const { root, unmount } = renderPanel({ found: false, attempt: 0, entries: [] }, { taskId: 42 }); - assert.equal(root.querySelector(".task-log-download"), null, "there is nothing to download"); - unmount(); -}); - -// W7: the filter controls must sit ABOVE the three read outcomes. Below the -// disabled early return they would replace the deployment-level message with an -// empty filtered pane in exactly the deployment that cannot read logs. -const FILTER_OPTS = { filters: { level: "", stage: "" }, onFilterChange: () => {}, stages: ["prepare"] }; - -test("the three read outcomes survive with the filter bar rendered above them", () => { - const disabled = renderPanel({ disabled: true, entries: [] }, FILTER_OPTS); - assert.ok(disabled.root.querySelector(".task-log-filters"), "the filter bar renders first"); - assert.match(disabled.root.textContent, /No persisted log for this attempt/); - assert.match(disabled.root.textContent, /cannot read task logs/); - disabled.unmount(); - - const absent = renderPanel({ found: false, entries: [], attempt: 0 }, FILTER_OPTS); - assert.match(absent.root.textContent, /No log recorded for this attempt/); - assert.doesNotMatch(absent.root.textContent, /cannot read task logs/); - absent.unmount(); - - const filtered = renderPanel({ disabled: false, found: true, entries: [], attempt: 0 }, FILTER_OPTS); - assert.equal(filtered.root.querySelector(".empty-title").textContent, "Nothing recorded"); - filtered.unmount(); -}); - -// W6: one cache entry per task could not represent two attempts, so a retry -// served the previous run's log under the new run's id. -test("the log cache key is keyed by task, attempt and filters", () => { - assert.equal(logCacheKey(7, 1), "7|1||"); - assert.notEqual(logCacheKey(7, 1), logCacheKey(7, 2), "two attempts must not share a cache entry"); - assert.notEqual(logCacheKey(7, 1), logCacheKey(71, 1), "two tasks must not share a cache entry"); - assert.notEqual( - logCacheKey(7, 1, { level: "ERROR", stage: "" }), - logCacheKey(7, 1, { level: "", stage: "" }), - "a filtered read is a different response and needs its own entry", - ); -}); - -// F2: a stage filter narrows to lines a stage tagged and nothing more. Agent and -// tool output has no stage, so a sparse result must be explained next to the -// control rather than left to look broken. -test("a stage filter states its coverage limit beside the control", () => { - const { root, unmount } = renderPanel( - { found: true, entries: [], attempt: 1 }, - { ...FILTER_OPTS, filters: { level: "", stage: "prepare" }, stages: ["prepare", "implement"] }, - ); - assert.match(root.textContent, /A stage filter matches only log lines that record a stage/); - assert.match(root.textContent, /Agent and tool output carries none/); - unmount(); -}); - -test("an attempt with no recorded stage names says the stage filter has nothing to match", () => { - const { root, unmount } = renderPanel( - { found: true, entries: [], attempt: 1 }, - { ...FILTER_OPTS, stages: [] }, - ); - assert.match(root.textContent, /recorded no stage names/); - unmount(); -}); - -test("changing a filter reports the whole filter set to the page", () => { - const seen = []; - const { root, unmount } = renderPanel( - { found: true, entries: [], attempt: 1 }, - { ...FILTER_OPTS, onFilterChange: (next) => seen.push(next) }, - ); - const level = root.querySelectorAll("select")[0]; - const stage = root.querySelectorAll("select")[1]; - fireEvent.change(level, { target: { value: "ERROR" } }); - fireEvent.change(stage, { target: { value: "prepare" } }); - assert.deepEqual(seen, [ - { level: "ERROR", stage: "" }, - { level: "", stage: "prepare" }, - ]); - unmount(); -}); - -// The pane names the attempt it is showing so it can never present attempt 1's -// log as attempt 2's. -test("the pane names the attempt it is showing", () => { - const explicit = renderPanel({ found: true, attempt: 1, entries: [] }, { attempt: 1 }); - assert.match(explicit.root.textContent, /Attempt 1/); - explicit.unmount(); - - const resolved = renderPanel({ found: true, attempt: 4, entries: [] }, { attempt: null, taskId: 42 }); - assert.match(resolved.root.textContent, /Attempt 4/); - assert.equal( - resolved.root.querySelector(".task-log-download").getAttribute("href"), - "/api/tasks/42/logs/download?attempt=4", - "a download follows the attempt the pane is showing, not whatever is current", - ); - resolved.unmount(); -}); - -test("a panel without a page to act on a filter renders no filter controls", () => { - const { root, unmount } = renderPanel({ found: true, entries: [], attempt: 1 }); - assert.equal(root.querySelector("select"), null, "a control that filters nothing is worse than none"); - assert.match(root.textContent, /Attempt 1/); - unmount(); -}); - -// R9: the pane carries one live region announcing its STATE, never a line at a -// time. A per-line live region would read the whole log aloud on every load, -// and a pane that loads 500 entries would be unusable with a screen reader. -test("the pane announces its state once, not every log line", () => { - const { root, unmount } = renderPanel({ - found: true, - attempt: 2, - entries: [ - { level: "info", msg: "one" }, - { level: "info", msg: "two" }, - ], - }); - const live = root.querySelector("[aria-live]"); - assert.ok(live, "the pane should carry a live region"); - assert.equal(live.getAttribute("role"), "status"); - assert.equal(live.getAttribute("aria-atomic"), "true"); - assert.match(live.textContent, /2 log entries/); - assert.ok(live.className.includes("visually-hidden"), "the live text is for assistive technology only"); - assert.equal(root.querySelector(".log-list").contains(live), false, "the live region is not the list itself"); - unmount(); -}); - -test("the live region says which of the log-unavailable cases applies", () => { - const disabled = renderPanel({ disabled: true, entries: [] }); - assert.match(disabled.root.querySelector("[aria-live]").textContent, /cannot read task logs/); - disabled.unmount(); - - const absent = renderPanel({ found: false, entries: [], attempt: 0 }); - assert.match(absent.root.querySelector("[aria-live]").textContent, /No log recorded for this attempt/); - assert.doesNotMatch(absent.root.querySelector("[aria-live]").textContent, /cannot read task logs/); - absent.unmount(); -}); - -test.after(() => cleanup()); diff --git a/ui/test/task-meta-boot.test.js b/ui/test/task-meta-boot.test.js deleted file mode 100644 index 65be97064..000000000 --- a/ui/test/task-meta-boot.test.js +++ /dev/null @@ -1,62 +0,0 @@ -import { test } from "node:test"; -import assert from "node:assert/strict"; -import { waitFor } from "@testing-library/preact"; - -// The dashboard's lifecycle vocabulary is *served*: /api/task-meta is the -// source of truth, and base/task-meta.jsx keeps a freeze-dried default only so -// the first paint has labels. That default is meant to be replaced at boot. -// -// This pins the boot step. Without it the module documents a single source of -// truth that never loads, so a server-side catalogue change silently stops -// reaching the browser -- which is exactly what had happened: loadTaskMeta() -// was exported with no callers, and everything read the frozen snapshot. -import { api } from "../src/base/api.jsx"; -import { actionFor, statusIds, statusKind, statusLabel } from "../src/base/task-meta.jsx"; - -globalThis.fetch = async () => { - throw new Error("no daemon in this test"); -}; - -// jsdom has no EventSource and the dashboard subscribes on mount. -class InertEventSource { - close() {} -} -globalThis.EventSource = InertEventSource; - -test("booting the dashboard replaces the freeze-dried vocabulary with the served catalog", async () => { - api.taskMeta = async () => ({ - statuses: [{ id: "custom_status", label: "Custom status", kind: "danger", needs_you: false }], - actions: [{ id: "custom_action", label: "Custom action", kind: "primary" }], - }); - api.capabilities = async () => ({}); - - document.body.innerHTML = '
'; - location.hash = "#/"; - await import("../src/main.jsx"); - - await waitFor(() => assert.equal(statusLabel("custom_status"), "Custom status")); - assert.equal(statusKind("custom_status"), "danger"); - assert.deepEqual(statusIds(), ["custom_status"]); - assert.equal(actionFor("custom_action")?.label, "Custom action"); -}); - -// The task filter used to capture the vocabulary in module-level constants at -// import, which froze the defaults for the life of the process: no catalog, -// however late or however correct, could reach it. -test("the task filter reads the served catalog rather than an import-time snapshot", async () => { - const { loadTaskMeta } = await import("../src/base/task-meta.jsx"); - const { initialTaskFilter, taskMatchesStatus } = await import("../src/tasks/task-filters.jsx"); - - api.taskMeta = async () => ({ - statuses: [ - { id: "custom_status", label: "Custom status", kind: "danger", needs_you: true }, - { id: "running", label: "Working", kind: "info" }, - ], - actions: [], - }); - await loadTaskMeta(); - - assert.equal(initialTaskFilter(new URLSearchParams("status=custom_status")), "custom_status"); - assert.equal(taskMatchesStatus({ status: "custom_status" }, "needs_you"), true); - assert.equal(taskMatchesStatus({ status: "queued" }, "needs_you"), false); -}); diff --git a/ui/test/task-meta-late-catalog.test.js b/ui/test/task-meta-late-catalog.test.js deleted file mode 100644 index d9c920b56..000000000 --- a/ui/test/task-meta-late-catalog.test.js +++ /dev/null @@ -1,52 +0,0 @@ -import { test } from "node:test"; -import assert from "node:assert/strict"; -import { waitFor } from "@testing-library/preact"; - -// Greptile's finding on the first cut of the served-vocabulary fix: the catalog -// resolves after a page has painted, and loadTaskMeta() only mutated module -// state. The route tree renders into its own root, so nothing re-rendered it -// and the painted page kept the freeze-dried labels. -// -// This lives in its own file because main.jsx boots on import and renders into -// #app: the module registry is per process, so a second test in the same file -// would reset the DOM of an app that never re-mounts and assert against a -// detached tree. -import { api } from "../src/base/api.jsx"; - -// A read that never settles. The page must not be able to pick up the catalog by -// re-rendering for its own reasons, or this test would pass without the -// re-render it exists to pin -- which is what the first version of it did: a -// failing fetch was enough to re-render the page and drag the served labels in. -// With the read pending, the catalog landing is the only thing that can re-render -// it. The status filter renders above the list's loading state, so it is on -// screen either way. -globalThis.fetch = () => new Promise(() => {}); - -class InertEventSource { - close() {} -} -globalThis.EventSource = InertEventSource; - -test("a page that painted before the catalog lands picks up the served vocabulary", async () => { - api.taskMeta = async () => ({ - statuses: [{ id: "custom_status", label: "Custom status", kind: "danger", needs_you: true }], - actions: [], - }); - api.capabilities = async () => ({}); - - document.body.innerHTML = '
'; - location.hash = "#/tasks"; - await import("../src/main.jsx"); - - // The status filter renders one option per known status, so its option list - // is the painted page's own view of the vocabulary. It renders above the - // list's loading and failure states, which is why this assertion does not - // depend on the tasks read (which cannot succeed here). - await waitFor(() => { - const options = [...document.querySelectorAll(".task-filter option")].map((option) => option.textContent); - assert.ok( - options.includes("Custom status"), - `the painted filter must re-render with the served statuses, got: ${options.join(" | ")}`, - ); - }); -}); diff --git a/ui/test/task-meta.test.js b/ui/test/task-meta.test.js deleted file mode 100644 index 0ebd60571..000000000 --- a/ui/test/task-meta.test.js +++ /dev/null @@ -1,61 +0,0 @@ -import { test } from "node:test"; -import assert from "node:assert/strict"; -import "./shim.js"; -import { - actionFor, - attentionStatusIds, - statusIds, - statusKind, - statusLabel, -} from "../src/base/task-meta.js"; - -test("statusLabel returns the human label for known statuses", () => { - assert.equal(statusLabel("pr_open"), "In review"); - assert.equal(statusLabel("waiting_human"), "Waiting for you"); -}); - -test("statusLabel falls back to the raw id for unknown statuses", () => { - assert.equal(statusLabel("quantum_superposition"), "quantum_superposition"); -}); - -test("statusKind returns the pill severity for a status", () => { - assert.equal(statusKind("running"), "info"); - assert.equal(statusKind("pr_open"), "ok"); - assert.equal(statusKind("parked"), "warn"); - assert.equal(statusKind("dead"), "danger"); -}); - -test("statusKind defaults to idle for unknown statuses", () => { - assert.equal(statusKind("quantum_superposition"), "idle"); -}); - -test("statusIds includes every lifecycle status", () => { - assert.deepEqual(new Set(statusIds()), new Set([ - "queued", "running", "waiting_human", "pr_open", "merged", - "parked", "dead", "rejected", "closed_wont_do", - ])); -}); - -test("attentionStatusIds groups the statuses that need a human", () => { - const ids = attentionStatusIds(); - assert.ok(ids.has("waiting_human")); - assert.ok(ids.has("parked")); - assert.ok(!ids.has("queued")); -}); - -test("actionFor returns label, kind and confirm from the catalog", () => { - const reject = actionFor("reject"); - assert.ok(reject); - assert.equal(reject.label, "Reject"); - assert.equal(reject.kind, "quiet"); - assert.ok(reject.confirm.includes("{title}")); -}); - -test("actionFor marks navigation links as link kind", () => { - assert.equal(actionFor("open_pr").kind, "link"); - assert.equal(actionFor("open_issue").kind, "link"); -}); - -test("actionFor returns null for an unknown action", () => { - assert.equal(actionFor("teleport"), null); -}); diff --git a/ui/test/task-tabs.test.js b/ui/test/task-tabs.test.js deleted file mode 100644 index 9fd656690..000000000 --- a/ui/test/task-tabs.test.js +++ /dev/null @@ -1,115 +0,0 @@ -import { test } from "node:test"; -import assert from "node:assert/strict"; -import { render, cleanup, fireEvent } from "@testing-library/preact"; -import { TabBar, panelId, tabId } from "../src/tasks/tab-bar.jsx"; - -const TABS = [ - { id: "stages", label: "Stages" }, - { id: "log", label: "Log" }, - { id: "changes", label: "Changed files" }, -]; - -import { useState } from "preact/hooks"; - -function Harness({ initial = "stages", onSelect }) { - const [active, setActive] = useState(initial); - return ( - { - onSelect?.(id); - setActive(id); - }} - prefix="run" - /> - ); -} - -function mount(active = "stages", onSelect) { - const { container, unmount } = render(); - return { root: container, unmount }; -} - -test("the tab list is a tablist of tabs with the active one selected", () => { - const { root, unmount } = mount("log"); - const list = root.querySelector('[role="tablist"]'); - assert.ok(list, "a tablist should render"); - const tabs = [...root.querySelectorAll('[role="tab"]')]; - assert.equal(tabs.length, 3); - assert.equal(tabs[0].getAttribute("aria-selected"), "false"); - assert.equal(tabs[1].getAttribute("aria-selected"), "true"); - assert.equal(tabs[0].textContent, "Stages"); - unmount(); -}); - -// The panel is a separate element in the page, so the relationship has to be -// declared explicitly or assistive technology cannot connect them. -test("each tab points at the panel it controls", () => { - const { root, unmount } = mount("stages"); - const tabs = [...root.querySelectorAll('[role="tab"]')]; - const expected = ["stages", "log", "changes"].map((id) => panelId("run", id)); - assert.deepEqual(tabs.map((tab) => tab.getAttribute("aria-controls")), expected); - assert.deepEqual(tabs.map((tab) => tab.id), ["stages", "log", "changes"].map((id) => tabId("run", id))); - unmount(); -}); - -// Roving tabindex: the tab list is one stop in the page's tab order, not three. -test("only the active tab is in the page tab order", () => { - const { root, unmount } = mount("changes"); - const tabs = [...root.querySelectorAll('[role="tab"]')]; - assert.deepEqual(tabs.map((tab) => tab.getAttribute("tabindex")), ["-1", "-1", "0"]); - unmount(); -}); - -test("clicking a tab selects it", () => { - const selected = []; - const { root, unmount } = mount("stages", (id) => selected.push(id)); - fireEvent.click(root.querySelectorAll('[role="tab"]')[2]); - assert.deepEqual(selected, ["changes"]); - unmount(); -}); - -test("arrow keys move between tabs, wrap around, and select as they go", () => { - const selected = []; - const { root, unmount } = mount("stages", (id) => selected.push(id)); - const first = root.querySelectorAll('[role="tab"]')[0]; - first.focus(); - fireEvent.keyDown(first, { key: "ArrowRight" }); - fireEvent.keyDown(root.querySelectorAll('[role="tab"]')[1], { key: "ArrowRight" }); - fireEvent.keyDown(root.querySelectorAll('[role="tab"]')[2], { key: "ArrowRight" }); - assert.deepEqual(selected, ["log", "changes", "stages"], "arrow-right wraps to the first tab"); - unmount(); -}); - -test("Home and End jump to the ends of the tab list", () => { - const selected = []; - const { root, unmount } = mount("log", (id) => selected.push(id)); - const active = root.querySelectorAll('[role="tab"]')[1]; - fireEvent.keyDown(active, { key: "End" }); - fireEvent.keyDown(root.querySelectorAll('[role="tab"]')[2], { key: "Home" }); - assert.deepEqual(selected, ["changes", "stages"]); - unmount(); -}); - -// Keyboard focus must follow selection: a roving-tabindex widget that moves the -// selection but leaves focus behind loses the keyboard user. -test("an arrow key moves keyboard focus with the selection", () => { - const { root, unmount } = mount("stages"); - const first = root.querySelectorAll('[role="tab"]')[0]; - first.focus(); - fireEvent.keyDown(first, { key: "ArrowRight" }); - const tabs = [...root.querySelectorAll('[role="tab"]')]; - assert.equal(document.activeElement, tabs[1]); - unmount(); -}); - -test("an unrelated key does nothing", () => { - const selected = []; - const { root, unmount } = mount("stages", (id) => selected.push(id)); - fireEvent.keyDown(root.querySelectorAll('[role="tab"]')[0], { key: "a" }); - assert.deepEqual(selected, []); - unmount(); -}); - -test.after(() => cleanup()); diff --git a/ui/test/tasks-a11y.test.js b/ui/test/tasks-a11y.test.js deleted file mode 100644 index 32dc14eb2..000000000 --- a/ui/test/tasks-a11y.test.js +++ /dev/null @@ -1,12 +0,0 @@ -import { test } from "node:test"; -import assert from "node:assert/strict"; -import "./shim.js"; -import { taskRowA11y } from "../src/tasks/task-row.js"; - -test("task rows expose an explicit keyboard-accessible timeline control", () => { - assert.deepEqual(taskRowA11y({ id: 42, title: "Keyboard task" }, false), { - "aria-expanded": "false", - "aria-controls": "task-timeline-42", - "aria-label": "Expand timeline for Keyboard task", - }); -}); diff --git a/ui/test/tasks-actions.test.js b/ui/test/tasks-actions.test.js deleted file mode 100644 index 2f6361b44..000000000 --- a/ui/test/tasks-actions.test.js +++ /dev/null @@ -1,292 +0,0 @@ -import { test } from "node:test"; -import assert from "node:assert/strict"; -import { register } from "node:module"; -import { render, waitFor, fireEvent } from "@testing-library/preact"; - -const cssLoad = "data:text/javascript," + encodeURIComponent(` - export async function load(url, context, nextLoad) { - if (url.endsWith(".css")) { - return { format: "module", shortCircuit: true, source: "export default {};" }; - } - return nextLoad(url, context); - } -`); -register(cssLoad, import.meta.url); - -const { api } = await import("../src/base/api.jsx"); -const { tasksPage } = await import("../src/tasks/tasks.jsx"); - -async function renderTask(task) { - const original = api.tasks; - api.tasks = async () => [task]; - try { - const vnode = tasksPage(new URLSearchParams()); - const { container } = render(vnode); - await waitFor(() => { - assert.ok(container.querySelector(".task-row"), "Wait for task to render"); - }); - return container; - } finally { - api.tasks = original; - } -} - -test("an action present in the catalog renders a button, not null", async () => { - const task = { - id: 7, - title: "Fix the flaky test", - status: "waiting_human", - repo: "sam/archie", - workflow: "tdd", - actions: ["cancel"], - }; - const root = await renderTask(task); - const container = root.querySelector(".task-actions"); - assert.ok(container, "a known action should render a .task-actions container"); - const btn = container.querySelector("button"); - assert.ok(btn, "a button should be rendered for a catalog action"); - assert.ok(btn.className.includes("btn-quiet"), "cancel maps to the quiet variant"); - assert.equal(btn.textContent, "Cancel"); -}); - -test("an id NOT in the catalog renders nothing", async () => { - const task = { - id: 8, - title: "Poltergeist task", - status: "waiting_human", - repo: "sam/archie", - workflow: "boot", - actions: ["teleport"], - }; - const root = await renderTask(task); - assert.equal(root.querySelector(".task-actions"), null, "unknown action renders nothing"); -}); - -test("a refused action (403) renders 'you can't do that' framing, not a generic failure", async () => { - const task = { - id: 10, - title: "Refused task", - status: "waiting_human", - repo: "sam/archie", - workflow: "tdd", - actions: ["retry"], - }; - const root = await renderTask(task); - const { ApiError } = await import("../src/base/api.jsx"); - const original = api.taskAction; - api.taskAction = async () => { throw new ApiError("cross-origin mutation refused", 403); }; - try { - root.querySelector(".task-actions button").click(); - await waitFor(() => { - assert.ok(root.querySelector(".task-action-error-refused"), "a refused action should render the refused variant"); - }); - const el = root.querySelector(".task-action-error-refused"); - assert.match(el.textContent, /you can't do that/i); - assert.equal(root.querySelector(".task-action-error-broken"), null); - assert.equal(root.querySelector(".task-action-error-session"), null); - } finally { - api.taskAction = original; - } -}); - -test("a broken action (500) renders 'try again or check the daemon' framing", async () => { - const task = { - id: 11, - title: "Broken task", - status: "waiting_human", - repo: "sam/archie", - workflow: "tdd", - actions: ["retry"], - }; - const root = await renderTask(task); - const { ApiError } = await import("../src/base/api.jsx"); - const original = api.taskAction; - api.taskAction = async () => { throw new ApiError("task action failed", 500); }; - try { - root.querySelector(".task-actions button").click(); - await waitFor(() => { - assert.ok(root.querySelector(".task-action-error-broken"), "a broken action should render the broken variant"); - }); - const el = root.querySelector(".task-action-error-broken"); - assert.match(el.textContent, /try again, or check the daemon/i); - assert.equal(root.querySelector(".task-action-error-refused"), null); - assert.equal(root.querySelector(".task-action-error-session"), null); - } finally { - api.taskAction = original; - } -}); - -test("a network failure with no status renders the broken variant", async () => { - const task = { - id: 12, - title: "Network failure task", - status: "waiting_human", - repo: "sam/archie", - workflow: "tdd", - actions: ["retry"], - }; - const root = await renderTask(task); - const original = api.taskAction; - api.taskAction = async () => { throw new TypeError("Failed to fetch"); }; - try { - root.querySelector(".task-actions button").click(); - await waitFor(() => { - assert.ok(root.querySelector(".task-action-error-broken"), "a network failure should render the broken variant"); - }); - } finally { - api.taskAction = original; - } -}); - -test("a 401 action failure prompts re-authentication instead of a generic failure", async () => { - const task = { - id: 13, - title: "Expired session task", - status: "waiting_human", - repo: "sam/archie", - workflow: "tdd", - actions: ["retry"], - }; - const root = await renderTask(task); - const { ApiError } = await import("../src/base/api.jsx"); - const original = api.taskAction; - api.taskAction = async () => { throw new ApiError("unauthorised", 401); }; - try { - root.querySelector(".task-actions button").click(); - await waitFor(() => { - assert.ok(root.querySelector(".task-action-error-session"), "a 401 should render the session-expired variant"); - }); - const el = root.querySelector(".task-action-error-session"); - assert.match(el.textContent, /session has expired/i); - const reloadBtn = el.querySelector("button"); - assert.ok(reloadBtn, "the session-expired message should offer a reload action"); - assert.match(reloadBtn.textContent, /reload/i); - assert.equal(root.querySelector(".task-action-error-refused"), null); - assert.equal(root.querySelector(".task-action-error-broken"), null); - } finally { - api.taskAction = original; - } -}); - -test("a link-kind action renders an anchor to the forge", async () => { - const task = { - id: 9, - title: "Open the PR", - status: "pr_open", - repo: "sam/archie", - workflow: "tdd", - issue_number: 12, - pr_number: 42, - pr_url: "https://forge.example.internal/sam/archie/pull/42", - actions: ["open_pr"], - }; - const root = await renderTask(task); - const link = root.querySelector(".task-actions")?.querySelector("a"); - assert.ok(link, "open_pr should render an not a