From 378560175fc0174bb74a7e6ddae4f3264b2f6b11 Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Sat, 28 Nov 2026 14:12:17 +1100 Subject: [PATCH] refactor(archie,webui,gateway): remove the dashboard, which now ships from archie-frontend --- .air.toml | 15 +- .dockerignore | 4 +- .github/workflows/deploy.yml | 9 - .github/workflows/quality.yml | 8 - .gitignore | 4 - .golangci.yml | 6 - .vale.ini | 4 - CLAUDE.md | 12 +- Dockerfile.archie | 11 - Dockerfile.archied | 9 - Taskfile.yml | 115 +- deployments/README.md | 4 +- e2e/.gitignore | 2 - e2e/README.md | 144 - e2e/archie-smoke.cjs | 75 - e2e/checks/accessibility.cjs | 176 - e2e/checks/audit-filters.cjs | 113 - e2e/checks/audit-phone.cjs | 42 - e2e/checks/audit-redirect.cjs | 50 - e2e/checks/audit-retention-live.cjs | 148 - e2e/checks/audit-revert.cjs | 69 - e2e/checks/audit-runtime.cjs | 36 - e2e/checks/audit-views-export.cjs | 50 - e2e/checks/catalogue-preview-modal.cjs | 49 - e2e/checks/chat-composer.cjs | 70 - e2e/checks/chat-dock-drafts.cjs | 42 - e2e/checks/chat-dock-drag-cancel.cjs | 27 - e2e/checks/chat-dock-layout.cjs | 46 - e2e/checks/chat-dock-phone.cjs | 41 - e2e/checks/chat-dock-picker.cjs | 59 - e2e/checks/chat-dock-pin.cjs | 52 - e2e/checks/chat-dock-resize.cjs | 37 - e2e/checks/execution-identities.cjs | 49 - e2e/checks/helpers/audit-helpers.cjs | 103 - e2e/checks/helpers/chat-dock.cjs | 63 - e2e/checks/helpers/org-helpers.cjs | 18 - e2e/checks/helpers/routes.cjs | 19 - e2e/checks/linked-user-identities.cjs | 103 - e2e/checks/loading-errors.cjs | 36 - e2e/checks/org-model-saving.cjs | 18 - e2e/checks/org-pages.cjs | 30 - e2e/checks/org-schedule-trigger.cjs | 31 - e2e/checks/org-selector.cjs | 44 - e2e/checks/phone-overflow.cjs | 69 - e2e/checks/policy-editor-modal.cjs | 80 - e2e/checks/proposals-refresh.cjs | 112 - e2e/checks/readiness-badges.cjs | 13 - e2e/checks/routes.cjs | 22 - e2e/checks/seeded.cjs | 9 - e2e/checks/settings-editing.cjs | 32 - e2e/checks/setup-checklist.cjs | 21 - e2e/checks/task-diagnostics.cjs | 21 - e2e/checks/task-recovery.cjs | 29 - e2e/checks/workflow-loading.cjs | 14 - e2e/checks/workflow-logic.cjs | 121 - e2e/checks/workflow-phone-layout.cjs | 101 - e2e/checks/workflow-validation.cjs | 24 - e2e/package.json | 12 - e2e/pnpm-lock.yaml | 191 - e2e/run.cjs | 186 - e2e/seed.sh | 77 - e2e/settings-save.cjs | 141 - e2e/stack.sh | 190 - internal/app/archie/gate.go | 37 +- internal/app/archie/gate_test.go | 34 +- internal/app/archie/run.go | 13 +- .../gateway/dashboard_pages.json | 0 internal/gateway/dashboard_tools.go | 30 +- internal/webui/assets_test.go | 26 - internal/webui/server.go | 47 +- modules/dashboard/dashboard.go | 69 - modules/dashboard/dashboard_test.go | 57 - modules/dashboard/stream.go | 1 + tools/cloud-setup.sh | 11 +- ui/AGENTS.md | 175 - ui/CLAUDE.md | 1 - ui/components.json | 25 - ui/embed.go | 17 - ui/embed_no_ui.go | 11 - ui/index.html | 44 - ui/package.json | 54 - ui/pages/pages.go | 37 - ui/pnpm-lock.yaml | 3254 ----------------- ui/pnpm-workspace.yaml | 5 - ui/public/favicon.svg | 1 - ui/public/icons.svg | 24 - ui/scripts/pages.ts | 130 - ui/src/App.vue | 160 - ui/src/accounts/AccountEntry.vue | 135 - ui/src/accounts/CreateAccount.vue | 29 - ui/src/accounts/LinkedChannels.vue | 120 - ui/src/accounts/PersonalTokensCard.vue | 128 - ui/src/accounts/accounts.ts | 58 - ui/src/audit/decisions.ts | 25 - ui/src/base/CodeView.vue | 38 - ui/src/base/ListFilter.vue | 35 - ui/src/base/LogTable.vue | 80 - ui/src/base/PageHeader.vue | 13 - ui/src/chat/ChatAskCard.vue | 43 - ui/src/chat/ChatBar.vue | 60 - ui/src/chat/ChatBubble.vue | 114 - ui/src/chat/ChatComposer.vue | 217 -- ui/src/chat/ChatDock.vue | 306 -- ui/src/chat/ChatDockLayout.ts | 157 - ui/src/chat/ChatEmptyState.vue | 37 - ui/src/chat/ChatJumpButton.vue | 45 - ui/src/chat/ChatMarkdown.vue | 76 - ui/src/chat/ChatNavChip.vue | 35 - ui/src/chat/ChatSessionActions.vue | 134 - ui/src/chat/ChatSessionList.vue | 70 - ui/src/chat/ChatSuggestions.vue | 93 - ui/src/chat/ChatThinking.vue | 47 - ui/src/chat/ChatToolCall.vue | 83 - ui/src/chat/ChatToolGroup.vue | 45 - ui/src/chat/ChatTopbarButton.vue | 42 - ui/src/chat/ChatTranscript.vue | 126 - ui/src/chat/dock-window.ts | 313 -- ui/src/chat/escape.ts | 22 - ui/src/chat/markdown.ts | 55 - ui/src/chat/prompt-tokens.ts | 9 - ui/src/chat/session.ts | 28 - ui/src/chat/state.ts | 445 --- ui/src/chat/stream.ts | 54 - ui/src/chat/suggestions.ts | 99 - ui/src/chat/transcript.ts | 48 - ui/src/chat/types.ts | 57 - ui/src/chat/unseen.ts | 42 - ui/src/components/AppSidebar.vue | 88 - ui/src/components/ChangeList.vue | 37 - ui/src/components/OptionSelect.vue | 20 - .../command-palette/CommandPalette.vue | 114 - ui/src/components/topbar/AccountMenu.vue | 39 - ui/src/components/topbar/Brand.vue | 37 - ui/src/components/topbar/ConnectionPill.vue | 28 - ui/src/components/topbar/Logo.vue | 39 - ui/src/components/topbar/OrgCrumb.vue | 18 - ui/src/components/topbar/SectionCrumb.vue | 64 - ui/src/components/topbar/hover-open.ts | 46 - ui/src/components/ui/accordion/Accordion.vue | 27 - .../ui/accordion/AccordionContent.vue | 28 - .../components/ui/accordion/AccordionItem.vue | 24 - .../ui/accordion/AccordionTrigger.vue | 37 - ui/src/components/ui/accordion/index.ts | 4 - .../ui/alert-dialog/AlertDialog.vue | 19 - .../ui/alert-dialog/AlertDialogAction.vue | 35 - .../ui/alert-dialog/AlertDialogCancel.vue | 35 - .../ui/alert-dialog/AlertDialogContent.vue | 55 - .../alert-dialog/AlertDialogDescription.vue | 28 - .../ui/alert-dialog/AlertDialogFooter.vue | 22 - .../ui/alert-dialog/AlertDialogHeader.vue | 22 - .../ui/alert-dialog/AlertDialogMedia.vue | 22 - .../ui/alert-dialog/AlertDialogTitle.vue | 28 - ui/src/components/ui/alert-dialog/index.ts | 9 - ui/src/components/ui/alert/Alert.vue | 21 - .../components/ui/alert/AlertDescription.vue | 22 - ui/src/components/ui/alert/AlertTitle.vue | 22 - ui/src/components/ui/alert/index.ts | 25 - ui/src/components/ui/avatar/Avatar.vue | 22 - .../components/ui/avatar/AvatarFallback.vue | 28 - ui/src/components/ui/avatar/index.ts | 23 - ui/src/components/ui/badge/Badge.vue | 29 - ui/src/components/ui/badge/index.ts | 39 - .../components/ui/breadcrumb/Breadcrumb.vue | 18 - .../ui/breadcrumb/BreadcrumbItem.vue | 17 - .../ui/breadcrumb/BreadcrumbLink.vue | 21 - .../ui/breadcrumb/BreadcrumbList.vue | 17 - .../ui/breadcrumb/BreadcrumbPage.vue | 20 - .../ui/breadcrumb/BreadcrumbSeparator.vue | 23 - ui/src/components/ui/breadcrumb/index.ts | 7 - ui/src/components/ui/bubble/Bubble.vue | 33 - ui/src/components/ui/bubble/BubbleContent.vue | 28 - ui/src/components/ui/bubble/index.ts | 26 - ui/src/components/ui/button/Button.vue | 31 - ui/src/components/ui/button/index.ts | 47 - .../ui/byte-size-input/ByteSizeInput.vue | 40 - ui/src/components/ui/byte-size-input/bytes.ts | 9 - ui/src/components/ui/byte-size-input/index.ts | 2 - ui/src/components/ui/card/Card.vue | 29 - ui/src/components/ui/card/CardAction.vue | 22 - ui/src/components/ui/card/CardContent.vue | 17 - ui/src/components/ui/card/CardDescription.vue | 17 - ui/src/components/ui/card/CardHeader.vue | 22 - ui/src/components/ui/card/CardTitle.vue | 28 - ui/src/components/ui/card/index.ts | 6 - ui/src/components/ui/checkbox/Checkbox.vue | 41 - ui/src/components/ui/checkbox/index.ts | 1 - ui/src/components/ui/code-block/CodeBlock.vue | 26 - .../ui/code-block/CodeBlockActions.vue | 20 - .../ui/code-block/CodeBlockContent.vue | 80 - .../ui/code-block/CodeBlockCopyButton.vue | 44 - .../ui/code-block/CodeBlockLine.vue | 41 - .../ui/code-block/CodeBlockToken.vue | 11 - .../components/ui/code-block/highlighter.ts | 110 - ui/src/components/ui/code-block/index.ts | 47 - .../ui/code-block/useHighlightedCode.ts | 72 - .../components/ui/collapsible/Collapsible.vue | 19 - .../ui/collapsible/CollapsibleContent.vue | 15 - .../ui/collapsible/CollapsibleTrigger.vue | 15 - ui/src/components/ui/collapsible/index.ts | 3 - ui/src/components/ui/command/Command.vue | 88 - .../components/ui/command/CommandDialog.vue | 40 - ui/src/components/ui/command/CommandEmpty.vue | 28 - ui/src/components/ui/command/CommandGroup.vue | 45 - ui/src/components/ui/command/CommandInput.vue | 46 - ui/src/components/ui/command/CommandItem.vue | 79 - ui/src/components/ui/command/CommandList.vue | 25 - ui/src/components/ui/command/index.ts | 23 - .../ui/context-menu/ContextMenu.vue | 18 - .../ui/context-menu/ContextMenuContent.vue | 37 - .../ui/context-menu/ContextMenuItem.vue | 38 - .../ui/context-menu/ContextMenuTrigger.vue | 22 - ui/src/components/ui/context-menu/index.ts | 7 - ui/src/components/ui/data-table/DataTable.vue | 193 - ui/src/components/ui/data-table/index.ts | 2 - ui/src/components/ui/data-table/types.ts | 17 - ui/src/components/ui/dialog/Dialog.vue | 15 - ui/src/components/ui/dialog/DialogContent.vue | 62 - .../ui/dialog/DialogDescription.vue | 30 - ui/src/components/ui/dialog/DialogFooter.vue | 33 - ui/src/components/ui/dialog/DialogHeader.vue | 17 - ui/src/components/ui/dialog/DialogOverlay.vue | 28 - ui/src/components/ui/dialog/DialogTitle.vue | 27 - ui/src/components/ui/dialog/DialogTrigger.vue | 12 - ui/src/components/ui/dialog/index.ts | 7 - .../ui/dropdown-menu/DropdownMenu.vue | 21 - .../DropdownMenuCheckboxItem.vue | 50 - .../ui/dropdown-menu/DropdownMenuContent.vue | 48 - .../ui/dropdown-menu/DropdownMenuGroup.vue | 12 - .../ui/dropdown-menu/DropdownMenuItem.vue | 41 - .../ui/dropdown-menu/DropdownMenuLabel.vue | 30 - .../dropdown-menu/DropdownMenuRadioGroup.vue | 21 - .../dropdown-menu/DropdownMenuRadioItem.vue | 51 - .../dropdown-menu/DropdownMenuSeparator.vue | 23 - .../ui/dropdown-menu/DropdownMenuSub.vue | 19 - .../dropdown-menu/DropdownMenuSubContent.vue | 34 - .../dropdown-menu/DropdownMenuSubTrigger.vue | 36 - .../ui/dropdown-menu/DropdownMenuTrigger.vue | 17 - ui/src/components/ui/dropdown-menu/index.ts | 14 - .../ui/duration-input/DurationInput.vue | 77 - .../components/ui/duration-input/duration.ts | 66 - ui/src/components/ui/duration-input/index.ts | 2 - ui/src/components/ui/empty/Empty.vue | 22 - ui/src/components/ui/empty/EmptyContent.vue | 22 - .../components/ui/empty/EmptyDescription.vue | 22 - ui/src/components/ui/empty/EmptyHeader.vue | 17 - ui/src/components/ui/empty/EmptyMedia.vue | 26 - ui/src/components/ui/empty/EmptyTitle.vue | 25 - ui/src/components/ui/empty/index.ts | 26 - ui/src/components/ui/field/Field.vue | 27 - ui/src/components/ui/field/FieldContent.vue | 22 - .../components/ui/field/FieldDescription.vue | 24 - ui/src/components/ui/field/FieldError.vue | 57 - ui/src/components/ui/field/FieldGroup.vue | 22 - ui/src/components/ui/field/FieldLabel.vue | 24 - ui/src/components/ui/field/index.ts | 29 - .../components/ui/input-group/InputGroup.vue | 23 - .../ui/input-group/InputGroupAddon.vue | 39 - .../ui/input-group/InputGroupInput.vue | 21 - .../ui/input-group/InputGroupText.vue | 21 - ui/src/components/ui/input-group/index.ts | 30 - ui/src/components/ui/input/Input.vue | 34 - ui/src/components/ui/input/classes.ts | 2 - ui/src/components/ui/input/index.ts | 1 - ui/src/components/ui/item/Item.vue | 31 - ui/src/components/ui/item/ItemActions.vue | 17 - ui/src/components/ui/item/ItemContent.vue | 17 - ui/src/components/ui/item/ItemDescription.vue | 20 - ui/src/components/ui/item/ItemGroup.vue | 18 - ui/src/components/ui/item/ItemMedia.vue | 21 - ui/src/components/ui/item/ItemTitle.vue | 17 - ui/src/components/ui/item/index.ts | 54 - ui/src/components/ui/kbd/Kbd.vue | 17 - ui/src/components/ui/kbd/index.ts | 1 - ui/src/components/ui/label/Label.vue | 26 - ui/src/components/ui/label/index.ts | 1 - .../ui/message-scroller/MessageScroller.vue | 27 - .../MessageScrollerButton.vue | 71 - .../MessageScrollerContent.vue | 76 - .../message-scroller/MessageScrollerItem.vue | 58 - .../MessageScrollerProvider.vue | 12 - .../MessageScrollerViewport.vue | 81 - .../components/ui/message-scroller/index.ts | 12 - .../ui/message-scroller/useMessageScroller.ts | 1096 ------ ui/src/components/ui/message/Message.vue | 30 - .../components/ui/message/MessageContent.vue | 27 - .../components/ui/message/MessageFooter.vue | 27 - ui/src/components/ui/message/index.ts | 4 - .../ui/metadata-list/MetadataList.vue | 15 - ui/src/components/ui/metadata-list/index.ts | 1 - ui/src/components/ui/more-menu/MoreMenu.vue | 20 - ui/src/components/ui/more-menu/index.ts | 1 - .../ui/number-field/NumberField.vue | 20 - .../ui/number-field/NumberFieldContent.vue | 14 - .../ui/number-field/NumberFieldDecrement.vue | 23 - .../ui/number-field/NumberFieldIncrement.vue | 23 - .../ui/number-field/NumberFieldInput.vue | 19 - ui/src/components/ui/number-field/index.ts | 5 - ui/src/components/ui/popover/Popover.vue | 15 - .../components/ui/popover/PopoverAnchor.vue | 12 - .../components/ui/popover/PopoverContent.vue | 41 - .../components/ui/popover/PopoverTrigger.vue | 12 - ui/src/components/ui/popover/index.ts | 4 - ui/src/components/ui/progress/Progress.vue | 35 - ui/src/components/ui/progress/index.ts | 1 - .../components/ui/radio-group/RadioGroup.vue | 26 - .../ui/radio-group/RadioGroupItem.vue | 42 - ui/src/components/ui/radio-group/index.ts | 3 - ui/src/components/ui/read-error/ReadError.vue | 21 - ui/src/components/ui/read-error/index.ts | 1 - .../ui/secret-reference/SecretReference.vue | 34 - .../components/ui/secret-reference/index.ts | 1 - ui/src/components/ui/section/Section.vue | 39 - ui/src/components/ui/section/index.ts | 1 - ui/src/components/ui/select/Select.vue | 15 - ui/src/components/ui/select/SelectContent.vue | 61 - ui/src/components/ui/select/SelectGroup.vue | 23 - ui/src/components/ui/select/SelectItem.vue | 49 - ui/src/components/ui/select/SelectLabel.vue | 19 - .../ui/select/SelectScrollDownButton.vue | 34 - .../ui/select/SelectScrollUpButton.vue | 34 - ui/src/components/ui/select/SelectTrigger.vue | 43 - ui/src/components/ui/select/SelectValue.vue | 12 - ui/src/components/ui/select/index.ts | 9 - ui/src/components/ui/separator/Separator.vue | 30 - ui/src/components/ui/separator/index.ts | 1 - .../components/ui/setting-row/SettingRow.vue | 34 - ui/src/components/ui/setting-row/index.ts | 1 - ui/src/components/ui/sheet/Sheet.vue | 15 - ui/src/components/ui/sheet/SheetContent.vue | 62 - .../components/ui/sheet/SheetDescription.vue | 23 - ui/src/components/ui/sheet/SheetFooter.vue | 15 - ui/src/components/ui/sheet/SheetHeader.vue | 15 - ui/src/components/ui/sheet/SheetOverlay.vue | 28 - ui/src/components/ui/sheet/SheetTitle.vue | 25 - ui/src/components/ui/sheet/index.ts | 6 - ui/src/components/ui/sidebar/SidebarInset.vue | 20 - .../components/ui/sidebar/SidebarProvider.vue | 82 - ui/src/components/ui/sidebar/index.ts | 2 - ui/src/components/ui/sidebar/utils.ts | 19 - ui/src/components/ui/skeleton/Skeleton.vue | 17 - ui/src/components/ui/skeleton/index.ts | 1 - ui/src/components/ui/spinner/Spinner.vue | 18 - ui/src/components/ui/spinner/index.ts | 1 - ui/src/components/ui/status-dot/StatusDot.vue | 23 - ui/src/components/ui/status-dot/index.ts | 1 - .../ui/suggest-input/SuggestInput.vue | 56 - ui/src/components/ui/suggest-input/index.ts | 1 - ui/src/components/ui/switch/Switch.vue | 47 - ui/src/components/ui/switch/index.ts | 1 - ui/src/components/ui/table/Table.vue | 20 - ui/src/components/ui/table/TableBody.vue | 17 - ui/src/components/ui/table/TableCell.vue | 22 - ui/src/components/ui/table/TableHead.vue | 22 - ui/src/components/ui/table/TableHeader.vue | 14 - ui/src/components/ui/table/TableRow.vue | 22 - ui/src/components/ui/table/index.ts | 6 - ui/src/components/ui/tabs/Tabs.vue | 27 - ui/src/components/ui/tabs/TabsContent.vue | 23 - ui/src/components/ui/tabs/TabsList.vue | 34 - ui/src/components/ui/tabs/TabsTrigger.vue | 34 - ui/src/components/ui/tabs/index.ts | 24 - ui/src/components/ui/tags-input/TagsInput.vue | 26 - .../ui/tags-input/TagsInputInput.vue | 17 - .../ui/tags-input/TagsInputItem.vue | 20 - .../ui/tags-input/TagsInputItemDelete.vue | 23 - .../ui/tags-input/TagsInputItemText.vue | 17 - ui/src/components/ui/tags-input/index.ts | 5 - ui/src/components/ui/textarea/Textarea.vue | 33 - ui/src/components/ui/textarea/index.ts | 1 - ui/src/components/ui/timestamp/Timestamp.vue | 27 - ui/src/components/ui/timestamp/index.ts | 1 - .../ui/toggle-group/ToggleGroup.vue | 59 - .../ui/toggle-group/ToggleGroupItem.vue | 50 - ui/src/components/ui/toggle-group/index.ts | 2 - ui/src/components/ui/toggle/Toggle.vue | 40 - ui/src/components/ui/toggle/index.ts | 28 - ui/src/components/ui/tooltip/Tooltip.vue | 23 - .../components/ui/tooltip/TooltipContent.vue | 49 - .../components/ui/tooltip/TooltipProvider.vue | 14 - .../components/ui/tooltip/TooltipTrigger.vue | 12 - ui/src/components/ui/tooltip/index.ts | 4 - ui/src/components/ui/trace/Trace.vue | 20 - .../components/ui/trace/TraceCollapsible.vue | 25 - .../ui/trace/TraceCollapsibleContent.vue | 26 - .../ui/trace/TraceCollapsibleTrigger.vue | 30 - .../components/ui/trace/TraceDescription.vue | 17 - ui/src/components/ui/trace/TraceIcon.vue | 18 - ui/src/components/ui/trace/TraceLine.vue | 22 - ui/src/components/ui/trace/TraceTitle.vue | 17 - ui/src/components/ui/trace/index.ts | 8 - .../components/ui/zone-select/ZoneSelect.vue | 47 - ui/src/components/ui/zone-select/index.ts | 1 - ui/src/controls/ActionTypeDetail.vue | 39 - ui/src/controls/PolicyText.vue | 98 - ui/src/copy/errors/accounts.ts | 5 - ui/src/copy/errors/app.ts | 4 - ui/src/copy/errors/base.ts | 6 - ui/src/copy/errors/channels.ts | 8 - ui/src/copy/errors/chat.ts | 29 - ui/src/copy/errors/common.ts | 7 - ui/src/copy/errors/components.ts | 9 - ui/src/copy/errors/dashboard.ts | 6 - ui/src/copy/errors/index.ts | 34 - ui/src/copy/errors/mappings.ts | 21 - ui/src/copy/errors/org.ts | 5 - ui/src/copy/errors/settings.ts | 11 - ui/src/copy/errors/stores.ts | 8 - ui/src/copy/errors/tasks.ts | 41 - ui/src/copy/errors/workflows.ts | 88 - ui/src/dashboard/HealthCard.vue | 65 - ui/src/dashboard/NeedsAttentionCard.vue | 83 - ui/src/dashboard/RecentRunsCard.vue | 81 - ui/src/layouts/CanvasLayout.vue | 5 - ui/src/layouts/DefaultLayout.vue | 3 - ui/src/layouts/OrgLayout.vue | 9 - ui/src/layouts/SettingsLayout.vue | 9 - ui/src/layouts/index.ts | 31 - ui/src/lib/api.ts | 1564 -------- ui/src/lib/archie-webmcp.ts | 15 - ui/src/lib/argv.ts | 41 - ui/src/lib/capabilities.ts | 44 - ui/src/lib/changes.ts | 101 - ui/src/lib/delivered.ts | 17 - ui/src/lib/format.ts | 87 - ui/src/lib/keep-unchanged.ts | 41 - ui/src/lib/lines.ts | 14 - ui/src/lib/log.ts | 63 - ui/src/lib/nav-icons.ts | 15 - ui/src/lib/nav-specs.ts | 83 - ui/src/lib/nav-tree.ts | 141 - ui/src/lib/nav.ts | 51 - ui/src/lib/needs-attention.ts | 23 - ui/src/lib/page-title.ts | 19 - ui/src/lib/status.ts | 6 - ui/src/lib/stream-state.ts | 33 - ui/src/lib/stream-url.ts | 8 - ui/src/lib/sys-query.ts | 72 - ui/src/lib/system-health.ts | 13 - ui/src/lib/task-meta-snapshot.ts | 30 - ui/src/lib/task-meta.ts | 29 - ui/src/lib/ui-agent.ts | 118 - ui/src/lib/use-read.ts | 46 - ui/src/lib/utils.ts | 13 - ui/src/lib/uuid.ts | 25 - ui/src/lib/webmcp-tools.ts | 76 - ui/src/lib/webmcp.ts | 129 - ui/src/main.ts | 25 - ui/src/org/UserReference.vue | 35 - ui/src/org/org.ts | 60 - ui/src/pages/[...path].vue | 24 - ui/src/pages/account/appearance.vue | 97 - ui/src/pages/account/index.vue | 76 - ui/src/pages/controls.vue | 55 - ui/src/pages/controls/action-types/[id].vue | 98 - ui/src/pages/controls/action-types/index.vue | 97 - ui/src/pages/controls/guards/[id].vue | 136 - ui/src/pages/controls/guards/index.vue | 97 - ui/src/pages/controls/index.vue | 27 - ui/src/pages/events.vue | 125 - .../pages/events/components/EventDetail.vue | 77 - ui/src/pages/events/components/EventList.vue | 103 - ui/src/pages/events/components/SourceList.vue | 290 -- .../pages/events/components/TriggerList.vue | 157 - ui/src/pages/events/index.vue | 25 - .../inspector/components/CaptureDetail.vue | 91 - .../inspector/components/CapturePayload.vue | 26 - .../inspector/components/CaptureRow.vue | 72 - .../inspector/components/CapturesCard.vue | 17 - .../inspector/components/CapturesList.vue | 78 - .../inspector/components/EventTypeDialog.vue | 121 - .../inspector/components/EventTypesCard.vue | 183 - .../inspector/components/RuleEditor.vue | 123 - ui/src/pages/events/inspector/index.vue | 116 - .../events/inspector/lib/capture-payload.ts | 13 - .../events/inspector/lib/capture-signature.ts | 23 - .../events/inspector/lib/event-type-state.ts | 178 - .../pages/events/inspector/lib/event-types.ts | 99 - ui/src/pages/events/inspector/lib/state.ts | 95 - ui/src/pages/events/lib/counts.ts | 74 - ui/src/pages/events/lib/tab-selection.ts | 98 - ui/src/pages/events/lib/trigger.ts | 15 - .../components/MappingActionError.vue | 18 - .../components/MappingDeleteDialog.vue | 46 - .../components/MappingEditorDialog.vue | 83 - .../mappings/components/MappingFieldRow.vue | 102 - .../components/MappingFieldsTable.vue | 64 - .../mappings/components/MappingForm.vue | 154 - .../components/MappingPreviewStatus.vue | 45 - .../events/mappings/components/MappingRow.vue | 40 - .../mappings/components/MappingsTable.vue | 74 - .../mappings/components/PayloadTree.vue | 87 - ui/src/pages/events/mappings/index.vue | 52 - .../events/mappings/lib/mapping-fields.ts | 79 - .../pages/events/mappings/lib/match-count.ts | 6 - ui/src/pages/events/mappings/lib/state.ts | 333 -- ui/src/pages/events/sources.vue | 17 - ui/src/pages/events/triggers.vue | 17 - ui/src/pages/index.vue | 28 - ui/src/pages/memory.vue | 177 - ui/src/pages/org.vue | 66 - ui/src/pages/org/approvals.vue | 187 - ui/src/pages/org/approvals/lib/settings.ts | 48 - ui/src/pages/org/audit.vue | 210 -- ui/src/pages/org/decisions.vue | 107 - ui/src/pages/org/index.vue | 188 - ui/src/pages/org/instructions.vue | 67 - ui/src/pages/org/members.vue | 318 -- ui/src/pages/org/policies.vue | 286 -- ui/src/pages/org/workspaces.vue | 227 -- ui/src/pages/proposals/[id].vue | 182 - ui/src/pages/proposals/index.vue | 89 - ui/src/pages/runs/[id].vue | 282 -- ui/src/pages/runs/index.vue | 41 - ui/src/pages/settings/authentication.vue | 315 -- ui/src/pages/settings/bundles.vue | 313 -- ui/src/pages/settings/credentials.vue | 184 - ui/src/pages/settings/extensions.vue | 58 - .../components/CatalogueInstallDialog.vue | 119 - .../components/CataloguePreviewDialog.vue | 107 - .../components/ExtensionsMarketplace.vue | 100 - .../components/InstallationDialog.vue | 192 - .../extensions/components/PackageList.vue | 175 - .../components/PackageVersionsDialog.vue | 89 - ui/src/pages/settings/extensions/index.vue | 314 -- .../extensions/lib/catalogue-preview.ts | 9 - .../pages/settings/extensions/marketplace.vue | 103 - ui/src/pages/settings/extensions/packages.vue | 73 - ui/src/pages/settings/memory.vue | 190 - ui/src/pages/settings/models.vue | 365 -- ui/src/pages/settings/organisations.vue | 71 - ui/src/pages/settings/secret-engines.vue | 44 - ui/src/pages/settings/status.vue | 49 - ui/src/pages/workflows/[id].vue | 143 - ui/src/pages/workflows/index.vue | 252 -- ui/src/proposals/state.ts | 64 - ui/src/router/index.ts | 23 - ui/src/router/redirects.ts | 84 - ui/src/runs/ApprovalsSection.vue | 95 - ui/src/runs/RunTable.vue | 55 - ui/src/runs/answer.ts | 16 - ui/src/runs/sequence.ts | 57 - ui/src/runs/state.ts | 45 - ui/src/settings/ExtensionSettingField.vue | 58 - ui/src/settings/HealthTables.vue | 70 - ui/src/settings/InstanceCard.vue | 44 - ui/src/settings/SecretRefField.vue | 70 - ui/src/settings/SettingsSaveBar.vue | 127 - ui/src/settings/SettingsShell.vue | 61 - ui/src/settings/provider-input.ts | 21 - ui/src/settings/validation.ts | 85 - ui/src/shadcn.css | 183 - ui/src/sources/source-signing.ts | 24 - ui/src/stores/appearance.ts | 179 - ui/src/stores/attention.ts | 22 - ui/src/stores/audit.ts | 82 - ui/src/stores/decisions.ts | 71 - ui/src/stores/extensions.ts | 137 - ui/src/stores/live-events.ts | 15 - ui/src/stores/org.ts | 88 - ui/src/stores/secret-engines.ts | 25 - ui/src/stores/session.ts | 166 - ui/src/stores/settings.ts | 196 - ui/src/stores/workflows.ts | 159 - ui/src/style.css | 377 -- ui/src/tasks/stage-rail.ts | 76 - ui/src/tasks/timeline-event.ts | 180 - ui/src/tasks/work-request.ts | 95 - ui/src/typed-router.d.ts | 759 ---- ui/src/workflows/AddStepMenu.vue | 30 - ui/src/workflows/AgentTranscript.vue | 306 -- ui/src/workflows/InsertEdge.vue | 33 - ui/src/workflows/RunWorkflowButton.vue | 128 - ui/src/workflows/SpecList.vue | 73 - ui/src/workflows/StepEditor.vue | 296 -- ui/src/workflows/StepNode.vue | 193 - ui/src/workflows/StepRun.vue | 51 - ui/src/workflows/StepTypeItems.vue | 44 - ui/src/workflows/WorkflowCanvas.vue | 460 --- ui/src/workflows/WorkflowDelivery.vue | 15 - ui/src/workflows/WorkflowEditor.vue | 659 ---- ui/src/workflows/WorkflowHistory.vue | 96 - ui/src/workflows/WorkflowLastRun.vue | 18 - ui/src/workflows/WorkflowPicker.vue | 20 - ui/src/workflows/WorkflowRowActions.vue | 32 - ui/src/workflows/WorkflowRuns.vue | 67 - ui/src/workflows/WorkflowSettings.vue | 61 - ui/src/workflows/WorkflowYaml.vue | 102 - ui/src/workflows/step-icons.ts | 43 - ui/src/workflows/use-workflow-list.ts | 106 - ui/src/workflows/workflow-edit.ts | 310 -- ui/src/workflows/workflow-graph.ts | 394 -- ui/src/workflows/workflow-revisions.ts | 115 - ui/src/workflows/workflow-rows.ts | 90 - ui/src/workflows/workflow-runs.ts | 176 - ui/src/workflows/workflow-summary.ts | 32 - ui/src/workflows/workflow-triggers.ts | 16 - ui/src/workflows/workflow-yaml.ts | 341 -- ui/test/api-paths.test.ts | 163 - ui/test/appearance.test.ts | 78 - ui/test/approvals-settings.test.ts | 48 - ui/test/byte-size-input.test.ts | 40 - ui/test/catalogue-preview.test.ts | 32 - ui/test/chat-dock-float.test.ts | 170 - ui/test/chat-markdown.test.ts | 41 - ui/test/chat-more-menu.test.ts | 412 --- ui/test/chat-suggestions.test.ts | 69 - ui/test/chat-thinking.test.ts | 106 - .../control-plane-validator-parity.test.ts | 84 - ui/test/delivered.test.ts | 21 - ui/test/describe-error.test.ts | 32 - ui/test/duration-input.test.ts | 101 - ui/test/duration.test.ts | 17 - ui/test/event-types.test.ts | 83 - ui/test/events-counts.test.ts | 45 - ui/test/events-tabs.test.ts | 31 - ui/test/extensions-preview.test.ts | 53 - ui/test/live-state.test.ts | 16 - ui/test/live-stream.test.ts | 15 - ui/test/nav-specs.test.ts | 22 - ui/test/nav-tree.test.ts | 142 - ui/test/needs-attention.test.ts | 25 - ui/test/page-title.test.ts | 21 - ui/test/prompt-tokens.test.ts | 18 - ui/test/provider-input.test.ts | 22 - ui/test/run-sequence.test.ts | 156 - ui/test/source-signing.test.ts | 61 - ui/test/ui-agent.test.ts | 59 - ui/test/webmcp.test.ts | 147 - ui/test/work-request.test.ts | 51 - ui/test/workflow-edit.test.ts | 125 - ui/test/workflow-graph.test.ts | 78 - ui/test/workflow-yaml.test.ts | 139 - ui/tsconfig.app.json | 19 - ui/tsconfig.json | 16 - ui/tsconfig.node.json | 23 - ui/vite.config.ts | 42 - 636 files changed, 77 insertions(+), 44027 deletions(-) delete mode 100644 e2e/.gitignore delete mode 100644 e2e/README.md delete mode 100644 e2e/archie-smoke.cjs delete mode 100644 e2e/checks/accessibility.cjs delete mode 100644 e2e/checks/audit-filters.cjs delete mode 100644 e2e/checks/audit-phone.cjs delete mode 100644 e2e/checks/audit-redirect.cjs delete mode 100644 e2e/checks/audit-retention-live.cjs delete mode 100644 e2e/checks/audit-revert.cjs delete mode 100644 e2e/checks/audit-runtime.cjs delete mode 100644 e2e/checks/audit-views-export.cjs delete mode 100644 e2e/checks/catalogue-preview-modal.cjs delete mode 100644 e2e/checks/chat-composer.cjs delete mode 100644 e2e/checks/chat-dock-drafts.cjs delete mode 100644 e2e/checks/chat-dock-drag-cancel.cjs delete mode 100644 e2e/checks/chat-dock-layout.cjs delete mode 100644 e2e/checks/chat-dock-phone.cjs delete mode 100644 e2e/checks/chat-dock-picker.cjs delete mode 100644 e2e/checks/chat-dock-pin.cjs delete mode 100644 e2e/checks/chat-dock-resize.cjs delete mode 100644 e2e/checks/execution-identities.cjs delete mode 100644 e2e/checks/helpers/audit-helpers.cjs delete mode 100644 e2e/checks/helpers/chat-dock.cjs delete mode 100644 e2e/checks/helpers/org-helpers.cjs delete mode 100644 e2e/checks/helpers/routes.cjs delete mode 100644 e2e/checks/linked-user-identities.cjs delete mode 100644 e2e/checks/loading-errors.cjs delete mode 100644 e2e/checks/org-model-saving.cjs delete mode 100644 e2e/checks/org-pages.cjs delete mode 100644 e2e/checks/org-schedule-trigger.cjs delete mode 100644 e2e/checks/org-selector.cjs delete mode 100644 e2e/checks/phone-overflow.cjs delete mode 100644 e2e/checks/policy-editor-modal.cjs delete mode 100644 e2e/checks/proposals-refresh.cjs delete mode 100644 e2e/checks/readiness-badges.cjs delete mode 100644 e2e/checks/routes.cjs delete mode 100644 e2e/checks/seeded.cjs delete mode 100644 e2e/checks/settings-editing.cjs delete mode 100644 e2e/checks/setup-checklist.cjs delete mode 100644 e2e/checks/task-diagnostics.cjs delete mode 100644 e2e/checks/task-recovery.cjs delete mode 100644 e2e/checks/workflow-loading.cjs delete mode 100644 e2e/checks/workflow-logic.cjs delete mode 100644 e2e/checks/workflow-phone-layout.cjs delete mode 100644 e2e/checks/workflow-validation.cjs delete mode 100644 e2e/package.json delete mode 100644 e2e/pnpm-lock.yaml delete mode 100644 e2e/run.cjs delete mode 100755 e2e/seed.sh delete mode 100644 e2e/settings-save.cjs delete mode 100755 e2e/stack.sh rename ui/pages/pages.json => internal/gateway/dashboard_pages.json (100%) delete mode 100644 internal/webui/assets_test.go delete mode 100644 modules/dashboard/dashboard.go delete mode 100644 modules/dashboard/dashboard_test.go delete mode 100644 ui/AGENTS.md delete mode 120000 ui/CLAUDE.md delete mode 100644 ui/components.json delete mode 100644 ui/embed.go delete mode 100644 ui/embed_no_ui.go delete mode 100644 ui/index.html delete mode 100644 ui/package.json delete mode 100644 ui/pages/pages.go delete mode 100644 ui/pnpm-lock.yaml delete mode 100644 ui/pnpm-workspace.yaml delete mode 100644 ui/public/favicon.svg delete mode 100644 ui/public/icons.svg delete mode 100644 ui/scripts/pages.ts delete mode 100644 ui/src/App.vue delete mode 100644 ui/src/accounts/AccountEntry.vue delete mode 100644 ui/src/accounts/CreateAccount.vue delete mode 100644 ui/src/accounts/LinkedChannels.vue delete mode 100644 ui/src/accounts/PersonalTokensCard.vue delete mode 100644 ui/src/accounts/accounts.ts delete mode 100644 ui/src/audit/decisions.ts delete mode 100644 ui/src/base/CodeView.vue delete mode 100644 ui/src/base/ListFilter.vue delete mode 100644 ui/src/base/LogTable.vue delete mode 100644 ui/src/base/PageHeader.vue delete mode 100644 ui/src/chat/ChatAskCard.vue delete mode 100644 ui/src/chat/ChatBar.vue delete mode 100644 ui/src/chat/ChatBubble.vue delete mode 100644 ui/src/chat/ChatComposer.vue delete mode 100644 ui/src/chat/ChatDock.vue delete mode 100644 ui/src/chat/ChatDockLayout.ts delete mode 100644 ui/src/chat/ChatEmptyState.vue delete mode 100644 ui/src/chat/ChatJumpButton.vue delete mode 100644 ui/src/chat/ChatMarkdown.vue delete mode 100644 ui/src/chat/ChatNavChip.vue delete mode 100644 ui/src/chat/ChatSessionActions.vue delete mode 100644 ui/src/chat/ChatSessionList.vue delete mode 100644 ui/src/chat/ChatSuggestions.vue delete mode 100644 ui/src/chat/ChatThinking.vue delete mode 100644 ui/src/chat/ChatToolCall.vue delete mode 100644 ui/src/chat/ChatToolGroup.vue delete mode 100644 ui/src/chat/ChatTopbarButton.vue delete mode 100644 ui/src/chat/ChatTranscript.vue delete mode 100644 ui/src/chat/dock-window.ts delete mode 100644 ui/src/chat/escape.ts delete mode 100644 ui/src/chat/markdown.ts delete mode 100644 ui/src/chat/prompt-tokens.ts delete mode 100644 ui/src/chat/session.ts delete mode 100644 ui/src/chat/state.ts delete mode 100644 ui/src/chat/stream.ts delete mode 100644 ui/src/chat/suggestions.ts delete mode 100644 ui/src/chat/transcript.ts delete mode 100644 ui/src/chat/types.ts delete mode 100644 ui/src/chat/unseen.ts delete mode 100644 ui/src/components/AppSidebar.vue delete mode 100644 ui/src/components/ChangeList.vue delete mode 100644 ui/src/components/OptionSelect.vue delete mode 100644 ui/src/components/command-palette/CommandPalette.vue delete mode 100644 ui/src/components/topbar/AccountMenu.vue delete mode 100644 ui/src/components/topbar/Brand.vue delete mode 100644 ui/src/components/topbar/ConnectionPill.vue delete mode 100644 ui/src/components/topbar/Logo.vue delete mode 100644 ui/src/components/topbar/OrgCrumb.vue delete mode 100644 ui/src/components/topbar/SectionCrumb.vue delete mode 100644 ui/src/components/topbar/hover-open.ts delete mode 100644 ui/src/components/ui/accordion/Accordion.vue delete mode 100644 ui/src/components/ui/accordion/AccordionContent.vue delete mode 100644 ui/src/components/ui/accordion/AccordionItem.vue delete mode 100644 ui/src/components/ui/accordion/AccordionTrigger.vue delete mode 100644 ui/src/components/ui/accordion/index.ts delete mode 100644 ui/src/components/ui/alert-dialog/AlertDialog.vue delete mode 100644 ui/src/components/ui/alert-dialog/AlertDialogAction.vue delete mode 100644 ui/src/components/ui/alert-dialog/AlertDialogCancel.vue delete mode 100644 ui/src/components/ui/alert-dialog/AlertDialogContent.vue delete mode 100644 ui/src/components/ui/alert-dialog/AlertDialogDescription.vue delete mode 100644 ui/src/components/ui/alert-dialog/AlertDialogFooter.vue delete mode 100644 ui/src/components/ui/alert-dialog/AlertDialogHeader.vue delete mode 100644 ui/src/components/ui/alert-dialog/AlertDialogMedia.vue delete mode 100644 ui/src/components/ui/alert-dialog/AlertDialogTitle.vue delete mode 100644 ui/src/components/ui/alert-dialog/index.ts delete mode 100644 ui/src/components/ui/alert/Alert.vue delete mode 100644 ui/src/components/ui/alert/AlertDescription.vue delete mode 100644 ui/src/components/ui/alert/AlertTitle.vue delete mode 100644 ui/src/components/ui/alert/index.ts delete mode 100644 ui/src/components/ui/avatar/Avatar.vue delete mode 100644 ui/src/components/ui/avatar/AvatarFallback.vue delete mode 100644 ui/src/components/ui/avatar/index.ts delete mode 100644 ui/src/components/ui/badge/Badge.vue delete mode 100644 ui/src/components/ui/badge/index.ts delete mode 100644 ui/src/components/ui/breadcrumb/Breadcrumb.vue delete mode 100644 ui/src/components/ui/breadcrumb/BreadcrumbItem.vue delete mode 100644 ui/src/components/ui/breadcrumb/BreadcrumbLink.vue delete mode 100644 ui/src/components/ui/breadcrumb/BreadcrumbList.vue delete mode 100644 ui/src/components/ui/breadcrumb/BreadcrumbPage.vue delete mode 100644 ui/src/components/ui/breadcrumb/BreadcrumbSeparator.vue delete mode 100644 ui/src/components/ui/breadcrumb/index.ts delete mode 100644 ui/src/components/ui/bubble/Bubble.vue delete mode 100644 ui/src/components/ui/bubble/BubbleContent.vue delete mode 100644 ui/src/components/ui/bubble/index.ts delete mode 100644 ui/src/components/ui/button/Button.vue delete mode 100644 ui/src/components/ui/button/index.ts delete mode 100644 ui/src/components/ui/byte-size-input/ByteSizeInput.vue delete mode 100644 ui/src/components/ui/byte-size-input/bytes.ts delete mode 100644 ui/src/components/ui/byte-size-input/index.ts delete mode 100644 ui/src/components/ui/card/Card.vue delete mode 100644 ui/src/components/ui/card/CardAction.vue delete mode 100644 ui/src/components/ui/card/CardContent.vue delete mode 100644 ui/src/components/ui/card/CardDescription.vue delete mode 100644 ui/src/components/ui/card/CardHeader.vue delete mode 100644 ui/src/components/ui/card/CardTitle.vue delete mode 100644 ui/src/components/ui/card/index.ts delete mode 100644 ui/src/components/ui/checkbox/Checkbox.vue delete mode 100644 ui/src/components/ui/checkbox/index.ts delete mode 100644 ui/src/components/ui/code-block/CodeBlock.vue delete mode 100644 ui/src/components/ui/code-block/CodeBlockActions.vue delete mode 100644 ui/src/components/ui/code-block/CodeBlockContent.vue delete mode 100644 ui/src/components/ui/code-block/CodeBlockCopyButton.vue delete mode 100644 ui/src/components/ui/code-block/CodeBlockLine.vue delete mode 100644 ui/src/components/ui/code-block/CodeBlockToken.vue delete mode 100644 ui/src/components/ui/code-block/highlighter.ts delete mode 100644 ui/src/components/ui/code-block/index.ts delete mode 100644 ui/src/components/ui/code-block/useHighlightedCode.ts delete mode 100644 ui/src/components/ui/collapsible/Collapsible.vue delete mode 100644 ui/src/components/ui/collapsible/CollapsibleContent.vue delete mode 100644 ui/src/components/ui/collapsible/CollapsibleTrigger.vue delete mode 100644 ui/src/components/ui/collapsible/index.ts delete mode 100644 ui/src/components/ui/command/Command.vue delete mode 100644 ui/src/components/ui/command/CommandDialog.vue delete mode 100644 ui/src/components/ui/command/CommandEmpty.vue delete mode 100644 ui/src/components/ui/command/CommandGroup.vue delete mode 100644 ui/src/components/ui/command/CommandInput.vue delete mode 100644 ui/src/components/ui/command/CommandItem.vue delete mode 100644 ui/src/components/ui/command/CommandList.vue delete mode 100644 ui/src/components/ui/command/index.ts delete mode 100644 ui/src/components/ui/context-menu/ContextMenu.vue delete mode 100644 ui/src/components/ui/context-menu/ContextMenuContent.vue delete mode 100644 ui/src/components/ui/context-menu/ContextMenuItem.vue delete mode 100644 ui/src/components/ui/context-menu/ContextMenuTrigger.vue delete mode 100644 ui/src/components/ui/context-menu/index.ts delete mode 100644 ui/src/components/ui/data-table/DataTable.vue delete mode 100644 ui/src/components/ui/data-table/index.ts delete mode 100644 ui/src/components/ui/data-table/types.ts delete mode 100644 ui/src/components/ui/dialog/Dialog.vue delete mode 100644 ui/src/components/ui/dialog/DialogContent.vue delete mode 100644 ui/src/components/ui/dialog/DialogDescription.vue delete mode 100644 ui/src/components/ui/dialog/DialogFooter.vue delete mode 100644 ui/src/components/ui/dialog/DialogHeader.vue delete mode 100644 ui/src/components/ui/dialog/DialogOverlay.vue delete mode 100644 ui/src/components/ui/dialog/DialogTitle.vue delete mode 100644 ui/src/components/ui/dialog/DialogTrigger.vue delete mode 100644 ui/src/components/ui/dialog/index.ts delete mode 100644 ui/src/components/ui/dropdown-menu/DropdownMenu.vue delete mode 100644 ui/src/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue delete mode 100644 ui/src/components/ui/dropdown-menu/DropdownMenuContent.vue delete mode 100644 ui/src/components/ui/dropdown-menu/DropdownMenuGroup.vue delete mode 100644 ui/src/components/ui/dropdown-menu/DropdownMenuItem.vue delete mode 100644 ui/src/components/ui/dropdown-menu/DropdownMenuLabel.vue delete mode 100644 ui/src/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue delete mode 100644 ui/src/components/ui/dropdown-menu/DropdownMenuRadioItem.vue delete mode 100644 ui/src/components/ui/dropdown-menu/DropdownMenuSeparator.vue delete mode 100644 ui/src/components/ui/dropdown-menu/DropdownMenuSub.vue delete mode 100644 ui/src/components/ui/dropdown-menu/DropdownMenuSubContent.vue delete mode 100644 ui/src/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue delete mode 100644 ui/src/components/ui/dropdown-menu/DropdownMenuTrigger.vue delete mode 100644 ui/src/components/ui/dropdown-menu/index.ts delete mode 100644 ui/src/components/ui/duration-input/DurationInput.vue delete mode 100644 ui/src/components/ui/duration-input/duration.ts delete mode 100644 ui/src/components/ui/duration-input/index.ts delete mode 100644 ui/src/components/ui/empty/Empty.vue delete mode 100644 ui/src/components/ui/empty/EmptyContent.vue delete mode 100644 ui/src/components/ui/empty/EmptyDescription.vue delete mode 100644 ui/src/components/ui/empty/EmptyHeader.vue delete mode 100644 ui/src/components/ui/empty/EmptyMedia.vue delete mode 100644 ui/src/components/ui/empty/EmptyTitle.vue delete mode 100644 ui/src/components/ui/empty/index.ts delete mode 100644 ui/src/components/ui/field/Field.vue delete mode 100644 ui/src/components/ui/field/FieldContent.vue delete mode 100644 ui/src/components/ui/field/FieldDescription.vue delete mode 100644 ui/src/components/ui/field/FieldError.vue delete mode 100644 ui/src/components/ui/field/FieldGroup.vue delete mode 100644 ui/src/components/ui/field/FieldLabel.vue delete mode 100644 ui/src/components/ui/field/index.ts delete mode 100644 ui/src/components/ui/input-group/InputGroup.vue delete mode 100644 ui/src/components/ui/input-group/InputGroupAddon.vue delete mode 100644 ui/src/components/ui/input-group/InputGroupInput.vue delete mode 100644 ui/src/components/ui/input-group/InputGroupText.vue delete mode 100644 ui/src/components/ui/input-group/index.ts delete mode 100644 ui/src/components/ui/input/Input.vue delete mode 100644 ui/src/components/ui/input/classes.ts delete mode 100644 ui/src/components/ui/input/index.ts delete mode 100644 ui/src/components/ui/item/Item.vue delete mode 100644 ui/src/components/ui/item/ItemActions.vue delete mode 100644 ui/src/components/ui/item/ItemContent.vue delete mode 100644 ui/src/components/ui/item/ItemDescription.vue delete mode 100644 ui/src/components/ui/item/ItemGroup.vue delete mode 100644 ui/src/components/ui/item/ItemMedia.vue delete mode 100644 ui/src/components/ui/item/ItemTitle.vue delete mode 100644 ui/src/components/ui/item/index.ts delete mode 100644 ui/src/components/ui/kbd/Kbd.vue delete mode 100644 ui/src/components/ui/kbd/index.ts delete mode 100644 ui/src/components/ui/label/Label.vue delete mode 100644 ui/src/components/ui/label/index.ts delete mode 100644 ui/src/components/ui/message-scroller/MessageScroller.vue delete mode 100644 ui/src/components/ui/message-scroller/MessageScrollerButton.vue delete mode 100644 ui/src/components/ui/message-scroller/MessageScrollerContent.vue delete mode 100644 ui/src/components/ui/message-scroller/MessageScrollerItem.vue delete mode 100644 ui/src/components/ui/message-scroller/MessageScrollerProvider.vue delete mode 100644 ui/src/components/ui/message-scroller/MessageScrollerViewport.vue delete mode 100644 ui/src/components/ui/message-scroller/index.ts delete mode 100644 ui/src/components/ui/message-scroller/useMessageScroller.ts delete mode 100644 ui/src/components/ui/message/Message.vue delete mode 100644 ui/src/components/ui/message/MessageContent.vue delete mode 100644 ui/src/components/ui/message/MessageFooter.vue delete mode 100644 ui/src/components/ui/message/index.ts delete mode 100644 ui/src/components/ui/metadata-list/MetadataList.vue delete mode 100644 ui/src/components/ui/metadata-list/index.ts delete mode 100644 ui/src/components/ui/more-menu/MoreMenu.vue delete mode 100644 ui/src/components/ui/more-menu/index.ts delete mode 100644 ui/src/components/ui/number-field/NumberField.vue delete mode 100644 ui/src/components/ui/number-field/NumberFieldContent.vue delete mode 100644 ui/src/components/ui/number-field/NumberFieldDecrement.vue delete mode 100644 ui/src/components/ui/number-field/NumberFieldIncrement.vue delete mode 100644 ui/src/components/ui/number-field/NumberFieldInput.vue delete mode 100644 ui/src/components/ui/number-field/index.ts delete mode 100644 ui/src/components/ui/popover/Popover.vue delete mode 100644 ui/src/components/ui/popover/PopoverAnchor.vue delete mode 100644 ui/src/components/ui/popover/PopoverContent.vue delete mode 100644 ui/src/components/ui/popover/PopoverTrigger.vue delete mode 100644 ui/src/components/ui/popover/index.ts delete mode 100644 ui/src/components/ui/progress/Progress.vue delete mode 100644 ui/src/components/ui/progress/index.ts delete mode 100644 ui/src/components/ui/radio-group/RadioGroup.vue delete mode 100644 ui/src/components/ui/radio-group/RadioGroupItem.vue delete mode 100644 ui/src/components/ui/radio-group/index.ts delete mode 100644 ui/src/components/ui/read-error/ReadError.vue delete mode 100644 ui/src/components/ui/read-error/index.ts delete mode 100644 ui/src/components/ui/secret-reference/SecretReference.vue delete mode 100644 ui/src/components/ui/secret-reference/index.ts delete mode 100644 ui/src/components/ui/section/Section.vue delete mode 100644 ui/src/components/ui/section/index.ts delete mode 100644 ui/src/components/ui/select/Select.vue delete mode 100644 ui/src/components/ui/select/SelectContent.vue delete mode 100644 ui/src/components/ui/select/SelectGroup.vue delete mode 100644 ui/src/components/ui/select/SelectItem.vue delete mode 100644 ui/src/components/ui/select/SelectLabel.vue delete mode 100644 ui/src/components/ui/select/SelectScrollDownButton.vue delete mode 100644 ui/src/components/ui/select/SelectScrollUpButton.vue delete mode 100644 ui/src/components/ui/select/SelectTrigger.vue delete mode 100644 ui/src/components/ui/select/SelectValue.vue delete mode 100644 ui/src/components/ui/select/index.ts delete mode 100644 ui/src/components/ui/separator/Separator.vue delete mode 100644 ui/src/components/ui/separator/index.ts delete mode 100644 ui/src/components/ui/setting-row/SettingRow.vue delete mode 100644 ui/src/components/ui/setting-row/index.ts delete mode 100644 ui/src/components/ui/sheet/Sheet.vue delete mode 100644 ui/src/components/ui/sheet/SheetContent.vue delete mode 100644 ui/src/components/ui/sheet/SheetDescription.vue delete mode 100644 ui/src/components/ui/sheet/SheetFooter.vue delete mode 100644 ui/src/components/ui/sheet/SheetHeader.vue delete mode 100644 ui/src/components/ui/sheet/SheetOverlay.vue delete mode 100644 ui/src/components/ui/sheet/SheetTitle.vue delete mode 100644 ui/src/components/ui/sheet/index.ts delete mode 100644 ui/src/components/ui/sidebar/SidebarInset.vue delete mode 100644 ui/src/components/ui/sidebar/SidebarProvider.vue delete mode 100644 ui/src/components/ui/sidebar/index.ts delete mode 100644 ui/src/components/ui/sidebar/utils.ts delete mode 100644 ui/src/components/ui/skeleton/Skeleton.vue delete mode 100644 ui/src/components/ui/skeleton/index.ts delete mode 100644 ui/src/components/ui/spinner/Spinner.vue delete mode 100644 ui/src/components/ui/spinner/index.ts delete mode 100644 ui/src/components/ui/status-dot/StatusDot.vue delete mode 100644 ui/src/components/ui/status-dot/index.ts delete mode 100644 ui/src/components/ui/suggest-input/SuggestInput.vue delete mode 100644 ui/src/components/ui/suggest-input/index.ts delete mode 100644 ui/src/components/ui/switch/Switch.vue delete mode 100644 ui/src/components/ui/switch/index.ts delete mode 100644 ui/src/components/ui/table/Table.vue delete mode 100644 ui/src/components/ui/table/TableBody.vue delete mode 100644 ui/src/components/ui/table/TableCell.vue delete mode 100644 ui/src/components/ui/table/TableHead.vue delete mode 100644 ui/src/components/ui/table/TableHeader.vue delete mode 100644 ui/src/components/ui/table/TableRow.vue delete mode 100644 ui/src/components/ui/table/index.ts delete mode 100644 ui/src/components/ui/tabs/Tabs.vue delete mode 100644 ui/src/components/ui/tabs/TabsContent.vue delete mode 100644 ui/src/components/ui/tabs/TabsList.vue delete mode 100644 ui/src/components/ui/tabs/TabsTrigger.vue delete mode 100644 ui/src/components/ui/tabs/index.ts delete mode 100644 ui/src/components/ui/tags-input/TagsInput.vue delete mode 100644 ui/src/components/ui/tags-input/TagsInputInput.vue delete mode 100644 ui/src/components/ui/tags-input/TagsInputItem.vue delete mode 100644 ui/src/components/ui/tags-input/TagsInputItemDelete.vue delete mode 100644 ui/src/components/ui/tags-input/TagsInputItemText.vue delete mode 100644 ui/src/components/ui/tags-input/index.ts delete mode 100644 ui/src/components/ui/textarea/Textarea.vue delete mode 100644 ui/src/components/ui/textarea/index.ts delete mode 100644 ui/src/components/ui/timestamp/Timestamp.vue delete mode 100644 ui/src/components/ui/timestamp/index.ts delete mode 100644 ui/src/components/ui/toggle-group/ToggleGroup.vue delete mode 100644 ui/src/components/ui/toggle-group/ToggleGroupItem.vue delete mode 100644 ui/src/components/ui/toggle-group/index.ts delete mode 100644 ui/src/components/ui/toggle/Toggle.vue delete mode 100644 ui/src/components/ui/toggle/index.ts delete mode 100644 ui/src/components/ui/tooltip/Tooltip.vue delete mode 100644 ui/src/components/ui/tooltip/TooltipContent.vue delete mode 100644 ui/src/components/ui/tooltip/TooltipProvider.vue delete mode 100644 ui/src/components/ui/tooltip/TooltipTrigger.vue delete mode 100644 ui/src/components/ui/tooltip/index.ts delete mode 100644 ui/src/components/ui/trace/Trace.vue delete mode 100644 ui/src/components/ui/trace/TraceCollapsible.vue delete mode 100644 ui/src/components/ui/trace/TraceCollapsibleContent.vue delete mode 100644 ui/src/components/ui/trace/TraceCollapsibleTrigger.vue delete mode 100644 ui/src/components/ui/trace/TraceDescription.vue delete mode 100644 ui/src/components/ui/trace/TraceIcon.vue delete mode 100644 ui/src/components/ui/trace/TraceLine.vue delete mode 100644 ui/src/components/ui/trace/TraceTitle.vue delete mode 100644 ui/src/components/ui/trace/index.ts delete mode 100644 ui/src/components/ui/zone-select/ZoneSelect.vue delete mode 100644 ui/src/components/ui/zone-select/index.ts delete mode 100644 ui/src/controls/ActionTypeDetail.vue delete mode 100644 ui/src/controls/PolicyText.vue delete mode 100644 ui/src/copy/errors/accounts.ts delete mode 100644 ui/src/copy/errors/app.ts delete mode 100644 ui/src/copy/errors/base.ts delete mode 100644 ui/src/copy/errors/channels.ts delete mode 100644 ui/src/copy/errors/chat.ts delete mode 100644 ui/src/copy/errors/common.ts delete mode 100644 ui/src/copy/errors/components.ts delete mode 100644 ui/src/copy/errors/dashboard.ts delete mode 100644 ui/src/copy/errors/index.ts delete mode 100644 ui/src/copy/errors/mappings.ts delete mode 100644 ui/src/copy/errors/org.ts delete mode 100644 ui/src/copy/errors/settings.ts delete mode 100644 ui/src/copy/errors/stores.ts delete mode 100644 ui/src/copy/errors/tasks.ts delete mode 100644 ui/src/copy/errors/workflows.ts delete mode 100644 ui/src/dashboard/HealthCard.vue delete mode 100644 ui/src/dashboard/NeedsAttentionCard.vue delete mode 100644 ui/src/dashboard/RecentRunsCard.vue delete mode 100644 ui/src/layouts/CanvasLayout.vue delete mode 100644 ui/src/layouts/DefaultLayout.vue delete mode 100644 ui/src/layouts/OrgLayout.vue delete mode 100644 ui/src/layouts/SettingsLayout.vue delete mode 100644 ui/src/layouts/index.ts delete mode 100644 ui/src/lib/api.ts delete mode 100644 ui/src/lib/archie-webmcp.ts delete mode 100644 ui/src/lib/argv.ts delete mode 100644 ui/src/lib/capabilities.ts delete mode 100644 ui/src/lib/changes.ts delete mode 100644 ui/src/lib/delivered.ts delete mode 100644 ui/src/lib/format.ts delete mode 100644 ui/src/lib/keep-unchanged.ts delete mode 100644 ui/src/lib/lines.ts delete mode 100644 ui/src/lib/log.ts delete mode 100644 ui/src/lib/nav-icons.ts delete mode 100644 ui/src/lib/nav-specs.ts delete mode 100644 ui/src/lib/nav-tree.ts delete mode 100644 ui/src/lib/nav.ts delete mode 100644 ui/src/lib/needs-attention.ts delete mode 100644 ui/src/lib/page-title.ts delete mode 100644 ui/src/lib/status.ts delete mode 100644 ui/src/lib/stream-state.ts delete mode 100644 ui/src/lib/stream-url.ts delete mode 100644 ui/src/lib/sys-query.ts delete mode 100644 ui/src/lib/system-health.ts delete mode 100644 ui/src/lib/task-meta-snapshot.ts delete mode 100644 ui/src/lib/task-meta.ts delete mode 100644 ui/src/lib/ui-agent.ts delete mode 100644 ui/src/lib/use-read.ts delete mode 100644 ui/src/lib/utils.ts delete mode 100644 ui/src/lib/uuid.ts delete mode 100644 ui/src/lib/webmcp-tools.ts delete mode 100644 ui/src/lib/webmcp.ts delete mode 100644 ui/src/main.ts delete mode 100644 ui/src/org/UserReference.vue delete mode 100644 ui/src/org/org.ts delete mode 100644 ui/src/pages/[...path].vue delete mode 100644 ui/src/pages/account/appearance.vue delete mode 100644 ui/src/pages/account/index.vue delete mode 100644 ui/src/pages/controls.vue delete mode 100644 ui/src/pages/controls/action-types/[id].vue delete mode 100644 ui/src/pages/controls/action-types/index.vue delete mode 100644 ui/src/pages/controls/guards/[id].vue delete mode 100644 ui/src/pages/controls/guards/index.vue delete mode 100644 ui/src/pages/controls/index.vue delete mode 100644 ui/src/pages/events.vue delete mode 100644 ui/src/pages/events/components/EventDetail.vue delete mode 100644 ui/src/pages/events/components/EventList.vue delete mode 100644 ui/src/pages/events/components/SourceList.vue delete mode 100644 ui/src/pages/events/components/TriggerList.vue delete mode 100644 ui/src/pages/events/index.vue delete mode 100644 ui/src/pages/events/inspector/components/CaptureDetail.vue delete mode 100644 ui/src/pages/events/inspector/components/CapturePayload.vue delete mode 100644 ui/src/pages/events/inspector/components/CaptureRow.vue delete mode 100644 ui/src/pages/events/inspector/components/CapturesCard.vue delete mode 100644 ui/src/pages/events/inspector/components/CapturesList.vue delete mode 100644 ui/src/pages/events/inspector/components/EventTypeDialog.vue delete mode 100644 ui/src/pages/events/inspector/components/EventTypesCard.vue delete mode 100644 ui/src/pages/events/inspector/components/RuleEditor.vue delete mode 100644 ui/src/pages/events/inspector/index.vue delete mode 100644 ui/src/pages/events/inspector/lib/capture-payload.ts delete mode 100644 ui/src/pages/events/inspector/lib/capture-signature.ts delete mode 100644 ui/src/pages/events/inspector/lib/event-type-state.ts delete mode 100644 ui/src/pages/events/inspector/lib/event-types.ts delete mode 100644 ui/src/pages/events/inspector/lib/state.ts delete mode 100644 ui/src/pages/events/lib/counts.ts delete mode 100644 ui/src/pages/events/lib/tab-selection.ts delete mode 100644 ui/src/pages/events/lib/trigger.ts delete mode 100644 ui/src/pages/events/mappings/components/MappingActionError.vue delete mode 100644 ui/src/pages/events/mappings/components/MappingDeleteDialog.vue delete mode 100644 ui/src/pages/events/mappings/components/MappingEditorDialog.vue delete mode 100644 ui/src/pages/events/mappings/components/MappingFieldRow.vue delete mode 100644 ui/src/pages/events/mappings/components/MappingFieldsTable.vue delete mode 100644 ui/src/pages/events/mappings/components/MappingForm.vue delete mode 100644 ui/src/pages/events/mappings/components/MappingPreviewStatus.vue delete mode 100644 ui/src/pages/events/mappings/components/MappingRow.vue delete mode 100644 ui/src/pages/events/mappings/components/MappingsTable.vue delete mode 100644 ui/src/pages/events/mappings/components/PayloadTree.vue delete mode 100644 ui/src/pages/events/mappings/index.vue delete mode 100644 ui/src/pages/events/mappings/lib/mapping-fields.ts delete mode 100644 ui/src/pages/events/mappings/lib/match-count.ts delete mode 100644 ui/src/pages/events/mappings/lib/state.ts delete mode 100644 ui/src/pages/events/sources.vue delete mode 100644 ui/src/pages/events/triggers.vue delete mode 100644 ui/src/pages/index.vue delete mode 100644 ui/src/pages/memory.vue delete mode 100644 ui/src/pages/org.vue delete mode 100644 ui/src/pages/org/approvals.vue delete mode 100644 ui/src/pages/org/approvals/lib/settings.ts delete mode 100644 ui/src/pages/org/audit.vue delete mode 100644 ui/src/pages/org/decisions.vue delete mode 100644 ui/src/pages/org/index.vue delete mode 100644 ui/src/pages/org/instructions.vue delete mode 100644 ui/src/pages/org/members.vue delete mode 100644 ui/src/pages/org/policies.vue delete mode 100644 ui/src/pages/org/workspaces.vue delete mode 100644 ui/src/pages/proposals/[id].vue delete mode 100644 ui/src/pages/proposals/index.vue delete mode 100644 ui/src/pages/runs/[id].vue delete mode 100644 ui/src/pages/runs/index.vue delete mode 100644 ui/src/pages/settings/authentication.vue delete mode 100644 ui/src/pages/settings/bundles.vue delete mode 100644 ui/src/pages/settings/credentials.vue delete mode 100644 ui/src/pages/settings/extensions.vue delete mode 100644 ui/src/pages/settings/extensions/components/CatalogueInstallDialog.vue delete mode 100644 ui/src/pages/settings/extensions/components/CataloguePreviewDialog.vue delete mode 100644 ui/src/pages/settings/extensions/components/ExtensionsMarketplace.vue delete mode 100644 ui/src/pages/settings/extensions/components/InstallationDialog.vue delete mode 100644 ui/src/pages/settings/extensions/components/PackageList.vue delete mode 100644 ui/src/pages/settings/extensions/components/PackageVersionsDialog.vue delete mode 100644 ui/src/pages/settings/extensions/index.vue delete mode 100644 ui/src/pages/settings/extensions/lib/catalogue-preview.ts delete mode 100644 ui/src/pages/settings/extensions/marketplace.vue delete mode 100644 ui/src/pages/settings/extensions/packages.vue delete mode 100644 ui/src/pages/settings/memory.vue delete mode 100644 ui/src/pages/settings/models.vue delete mode 100644 ui/src/pages/settings/organisations.vue delete mode 100644 ui/src/pages/settings/secret-engines.vue delete mode 100644 ui/src/pages/settings/status.vue delete mode 100644 ui/src/pages/workflows/[id].vue delete mode 100644 ui/src/pages/workflows/index.vue delete mode 100644 ui/src/proposals/state.ts delete mode 100644 ui/src/router/index.ts delete mode 100644 ui/src/router/redirects.ts delete mode 100644 ui/src/runs/ApprovalsSection.vue delete mode 100644 ui/src/runs/RunTable.vue delete mode 100644 ui/src/runs/answer.ts delete mode 100644 ui/src/runs/sequence.ts delete mode 100644 ui/src/runs/state.ts delete mode 100644 ui/src/settings/ExtensionSettingField.vue delete mode 100644 ui/src/settings/HealthTables.vue delete mode 100644 ui/src/settings/InstanceCard.vue delete mode 100644 ui/src/settings/SecretRefField.vue delete mode 100644 ui/src/settings/SettingsSaveBar.vue delete mode 100644 ui/src/settings/SettingsShell.vue delete mode 100644 ui/src/settings/provider-input.ts delete mode 100644 ui/src/settings/validation.ts delete mode 100644 ui/src/shadcn.css delete mode 100644 ui/src/sources/source-signing.ts delete mode 100644 ui/src/stores/appearance.ts delete mode 100644 ui/src/stores/attention.ts delete mode 100644 ui/src/stores/audit.ts delete mode 100644 ui/src/stores/decisions.ts delete mode 100644 ui/src/stores/extensions.ts delete mode 100644 ui/src/stores/live-events.ts delete mode 100644 ui/src/stores/org.ts delete mode 100644 ui/src/stores/secret-engines.ts delete mode 100644 ui/src/stores/session.ts delete mode 100644 ui/src/stores/settings.ts delete mode 100644 ui/src/stores/workflows.ts delete mode 100644 ui/src/style.css delete mode 100644 ui/src/tasks/stage-rail.ts delete mode 100644 ui/src/tasks/timeline-event.ts delete mode 100644 ui/src/tasks/work-request.ts delete mode 100644 ui/src/typed-router.d.ts delete mode 100644 ui/src/workflows/AddStepMenu.vue delete mode 100644 ui/src/workflows/AgentTranscript.vue delete mode 100644 ui/src/workflows/InsertEdge.vue delete mode 100644 ui/src/workflows/RunWorkflowButton.vue delete mode 100644 ui/src/workflows/SpecList.vue delete mode 100644 ui/src/workflows/StepEditor.vue delete mode 100644 ui/src/workflows/StepNode.vue delete mode 100644 ui/src/workflows/StepRun.vue delete mode 100644 ui/src/workflows/StepTypeItems.vue delete mode 100644 ui/src/workflows/WorkflowCanvas.vue delete mode 100644 ui/src/workflows/WorkflowDelivery.vue delete mode 100644 ui/src/workflows/WorkflowEditor.vue delete mode 100644 ui/src/workflows/WorkflowHistory.vue delete mode 100644 ui/src/workflows/WorkflowLastRun.vue delete mode 100644 ui/src/workflows/WorkflowPicker.vue delete mode 100644 ui/src/workflows/WorkflowRowActions.vue delete mode 100644 ui/src/workflows/WorkflowRuns.vue delete mode 100644 ui/src/workflows/WorkflowSettings.vue delete mode 100644 ui/src/workflows/WorkflowYaml.vue delete mode 100644 ui/src/workflows/step-icons.ts delete mode 100644 ui/src/workflows/use-workflow-list.ts delete mode 100644 ui/src/workflows/workflow-edit.ts delete mode 100644 ui/src/workflows/workflow-graph.ts delete mode 100644 ui/src/workflows/workflow-revisions.ts delete mode 100644 ui/src/workflows/workflow-rows.ts delete mode 100644 ui/src/workflows/workflow-runs.ts delete mode 100644 ui/src/workflows/workflow-summary.ts delete mode 100644 ui/src/workflows/workflow-triggers.ts delete mode 100644 ui/src/workflows/workflow-yaml.ts delete mode 100644 ui/test/api-paths.test.ts delete mode 100644 ui/test/appearance.test.ts delete mode 100644 ui/test/approvals-settings.test.ts delete mode 100644 ui/test/byte-size-input.test.ts delete mode 100644 ui/test/catalogue-preview.test.ts delete mode 100644 ui/test/chat-dock-float.test.ts delete mode 100644 ui/test/chat-markdown.test.ts delete mode 100644 ui/test/chat-more-menu.test.ts delete mode 100644 ui/test/chat-suggestions.test.ts delete mode 100644 ui/test/chat-thinking.test.ts delete mode 100644 ui/test/control-plane-validator-parity.test.ts delete mode 100644 ui/test/delivered.test.ts delete mode 100644 ui/test/describe-error.test.ts delete mode 100644 ui/test/duration-input.test.ts delete mode 100644 ui/test/duration.test.ts delete mode 100644 ui/test/event-types.test.ts delete mode 100644 ui/test/events-counts.test.ts delete mode 100644 ui/test/events-tabs.test.ts delete mode 100644 ui/test/extensions-preview.test.ts delete mode 100644 ui/test/live-state.test.ts delete mode 100644 ui/test/live-stream.test.ts delete mode 100644 ui/test/nav-specs.test.ts delete mode 100644 ui/test/nav-tree.test.ts delete mode 100644 ui/test/needs-attention.test.ts delete mode 100644 ui/test/page-title.test.ts delete mode 100644 ui/test/prompt-tokens.test.ts delete mode 100644 ui/test/provider-input.test.ts delete mode 100644 ui/test/run-sequence.test.ts delete mode 100644 ui/test/source-signing.test.ts delete mode 100644 ui/test/ui-agent.test.ts delete mode 100644 ui/test/webmcp.test.ts delete mode 100644 ui/test/work-request.test.ts delete mode 100644 ui/test/workflow-edit.test.ts delete mode 100644 ui/test/workflow-graph.test.ts delete mode 100644 ui/test/workflow-yaml.test.ts delete mode 100644 ui/tsconfig.app.json delete mode 100644 ui/tsconfig.json delete mode 100644 ui/tsconfig.node.json delete mode 100644 ui/vite.config.ts diff --git a/.air.toml b/.air.toml index 82feff8c5..703cb64e6 100644 --- a/.air.toml +++ b/.air.toml @@ -1,21 +1,14 @@ -# Live reload for the single archie binary during development. -# -# The frontend has its own loop -- `task dev:ui` runs Vite with HMR and proxies -# /api here -- so this watcher deliberately ignores ui/. Watching it would -# rebuild the Go binary on every keystroke in a CSS file, and rebuilding on -# ui/dist changes would loop against `task ui`. -# -# Built with `-tags no_ui`: during development Vite serves the frontend -# directly with HMR, so embedding ui/dist would only slow down reloads. +# Live reload for the single archie binary during development. The dashboard +# lives in archie-frontend and runs its own Vite server against this one. root = "." tmp_dir = ".air" [build] - cmd = "go build -tags no_ui -o ./.air/archie ./cmd/archie" + cmd = "go build -o ./.air/archie ./cmd/archie" # `bin` is deprecated in air; entrypoint is the current key. entrypoint = "./.air/archie" include_ext = ["go", "toml", "sql", "yaml", "cedar", "tmpl", "md"] - exclude_dir = ["ui", "bin", "docs", ".git", ".task", ".air", "tmp"] + exclude_dir = ["bin", "docs", ".git", ".task", ".air", "tmp"] exclude_regex = ["_test\\.go"] stop_on_error = true delay = 400 diff --git a/.dockerignore b/.dockerignore index 6e950b0cf..a0dc0c054 100644 --- a/.dockerignore +++ b/.dockerignore @@ -13,8 +13,8 @@ docs/ tmp/ .playwright-mcp/ # A trailing-slash pattern matches only the context root, so this is written to -# match a node_modules at any depth: ui/node_modules alone is 200MB and the -# agent image compiles Go, which needs none of it. +# match a node_modules at any depth; the agent image compiles Go, which needs +# none of it. **/node_modules/ # Stray host-built binaries committed at the repo root. diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c3883a2b6..cd7222ed5 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -43,15 +43,6 @@ jobs: go-version-file: go.mod cache: false - - uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 - with: - package_json_file: ui/package.json - - - name: Set up Node - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 - with: - node-version: "24" - - name: Install quality tools run: | go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@$(cat .golangci-version) diff --git a/.github/workflows/quality.yml b/.github/workflows/quality.yml index 76cd5a58f..0f47a0f22 100644 --- a/.github/workflows/quality.yml +++ b/.github/workflows/quality.yml @@ -25,14 +25,6 @@ jobs: with: go-version-file: go.mod - - uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 - with: - package_json_file: ui/package.json - - - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 - with: - node-version: "24" - - name: Install quality tools run: | go install github.com/go-task/task/v3/cmd/task@v3.48.0 diff --git a/.gitignore b/.gitignore index 02e110550..3e846edd4 100644 --- a/.gitignore +++ b/.gitignore @@ -23,10 +23,6 @@ config.production.toml *.png # Frontend -/ui/node_modules/ -/ui/.vite/ -/ui/*.tsbuildinfo -/ui/dist/ # air live-reload /.air/ diff --git a/.golangci.yml b/.golangci.yml index de0e38220..cf9a6f272 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -172,12 +172,6 @@ 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 - common-false-positives diff --git a/.vale.ini b/.vale.ini index c0b92d9d3..bf9fdfd45 100644 --- a/.vale.ini +++ b/.vale.ini @@ -98,10 +98,6 @@ BasedOnStyles = BasedOnStyles = [archipelago/**] BasedOnStyles = -[ui/node_modules/**] -BasedOnStyles = -[ui/dist/**] -BasedOnStyles = [.agents-run/**] BasedOnStyles = [.impeccable/**] diff --git a/CLAUDE.md b/CLAUDE.md index b2b5737d3..cc2f364f6 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -60,7 +60,9 @@ services: a core binary starts the extension as a plugin process and dials it. implements them. Every instruction sent to a model is a file in `internal/platform/prompts`, read through that package; never inline a prompt in code. The old `internal/prompts` serves the services until they go. -Dashboard work follows `ui/CLAUDE.md`. Workflow YAML and its step vocabulary +The dashboard is its own repository, archie-frontend, and ships as its own +image; it reaches this backend only through `/api`, `/oauth2` and `/hooks`. +Workflow YAML and its step vocabulary are in `WORKFLOWS.md`; the server catalogue is authoritative. ## Authority @@ -209,20 +211,18 @@ These protect users. Do not weaken them without the maintainer's say-so. ```bash task build # binaries into bin/ task test # go test -short ./... -task ui # dashboard into ui/dist task check # the gate go test -short ./internal/domain/workflow -run TestName # one test -task dev # every service + Vite at http://localhost:5173, from deployments/dev.toml -task e2e:up # seeded local stack; task e2e:check -- all runs the browser checks +task dev # archie with live reload on 127.0.0.1:8484 ``` `task proto:generate`, `task db:generate` and `task openapi:generate` write the committed generated output for `proto/`, `internal/infrastructure/postgres/` and `api/openapi.yaml`; `task check` runs their check variants and rejects stale -output. The e2e stack is not part of the gate. +output. -Requires Go 1.27, Task, golangci-lint, Node, pnpm and Docker. Adopt `task fmt` and +Requires Go 1.27, Task, golangci-lint and Docker. Adopt `task fmt` and `go fix` output as-is. - `task check` gates the commit: `task check && git commit ...`. Never claim a diff --git a/Dockerfile.archie b/Dockerfile.archie index 5483785b6..016567a31 100644 --- a/Dockerfile.archie +++ b/Dockerfile.archie @@ -1,16 +1,6 @@ # Production single-binary image for cmd/archie. # Build: docker build -f Dockerfile.archie --build-arg VERSION=v1.0.0 -t archie:v1.0.0 . -# ── dashboard ── -FROM node:24-trixie-slim AS ui -WORKDIR /src/ui -RUN corepack enable -COPY ui/package.json ui/pnpm-lock.yaml ui/pnpm-workspace.yaml ./ -RUN --mount=type=cache,target=/root/.local/share/pnpm/store \ - pnpm install --frozen-lockfile -COPY ui/ ./ -RUN pnpm run build - # ── builder ── FROM golang:1.27-trixie AS builder ARG VERSION=dev @@ -18,7 +8,6 @@ WORKDIR /src COPY go.mod go.sum ./ RUN --mount=type=cache,target=/go/pkg/mod go mod download COPY . . -COPY --from=ui /src/ui/dist ./ui/dist RUN --mount=type=cache,target=/go/pkg/mod \ --mount=type=cache,target=/root/.cache/go-build \ CGO_ENABLED=0 go build -trimpath \ diff --git a/Dockerfile.archied b/Dockerfile.archied index 7bdfec053..5ea707acb 100644 --- a/Dockerfile.archied +++ b/Dockerfile.archied @@ -1,14 +1,6 @@ # archied — the archie daemon # Run via docker compose alongside NATS. -FROM node:24-trixie-slim AS dashboard -WORKDIR /src/ui -RUN corepack enable -COPY ui/package.json ui/pnpm-lock.yaml ui/pnpm-workspace.yaml ./ -RUN pnpm install --frozen-lockfile -COPY ui/ ./ -RUN pnpm run build - FROM golang:1.27-trixie AS builder WORKDIR /src COPY go.mod go.sum ./ @@ -16,7 +8,6 @@ COPY go.mod go.sum ./ # them COPY . . makes every commit a cold compile. RUN --mount=type=cache,target=/go/pkg/mod go mod download COPY . . -COPY --from=dashboard /src/ui/dist ./ui/dist ARG GATEWAY_VERSION=dev ARG RUNTIME_VERSION=dev RUN --mount=type=cache,target=/go/pkg/mod \ diff --git a/Taskfile.yml b/Taskfile.yml index 2ae977b83..875f21fff 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -64,18 +64,6 @@ tasks: - task: db:generate - git diff --exit-code -- internal/infrastructure/postgres/postgresdb - pages:generate: - desc: Write the dashboard's page catalogue to ui/pages/pages.json - dir: ui - cmds: - - node --experimental-strip-types scripts/pages.ts - - pages:check: - desc: Regenerate the page catalogue and reject uncommitted differences - cmds: - - task: pages:generate - - git diff --exit-code -- ui/pages/pages.json - openapi:generate: desc: Write the API's OpenAPI document to api/openapi.yaml cmds: @@ -103,45 +91,18 @@ tasks: cmds: - golangci-lint run ./... - ui:deps: - desc: Install dashboard dependencies - internal: true - # Parallel UI checks must share one dependency install. - run: once - dir: ui - cmds: - - pnpm install --frozen-lockfile - - ui: - desc: Build the dashboard into ui/dist, which the Go build embeds - # check builds the dashboard and then build depends on it again; a second - # build empties ui/dist under the Go steps that embed it. - run: once - dir: ui - deps: [ui:deps] - cmds: - - pnpm run build - - test:ui: - desc: Test and type-check the dashboard - dir: ui - deps: [ui:deps] - cmds: - - pnpm test - - pnpm run typecheck - bench:prreview: desc: Run the PR review benchmark on the configured models and write docs/benchmarks/pr-review-*.md (-- -model ALIAS -judge-model REF; --help for flags) cmds: - go run ./cmd/archied prbench {{.CLI_ARGS}} dev: - desc: Run archie (with live reload) and Vite at http://localhost:5173 - deps: [dev:archie, dev:ui] + desc: Run archie with live reload on 127.0.0.1:8484; run the dashboard from archie-frontend + deps: [dev:archie] dev:legacy: - desc: Run the legacy multi-service stack and Vite at http://localhost:5173 - deps: [dev:daemon, dev:gateway, dev:messaging, dev:state-store, dev:dashboard, dev:ui] + desc: Run the legacy multi-service stack + deps: [dev:daemon, dev:gateway, dev:messaging, dev:state-store, dev:dashboard] dev:tls: desc: Issue the development CA and service certificates deployments/dev.toml names @@ -267,7 +228,7 @@ tasks: echo 'listen = "127.0.0.1:8484"' echo 'state_dir = "{{.ROOT_DIR}}/{{.DIR}}/state"' echo "admin_token_sha256 = \"$(printf dev | sha256sum | cut -d' ' -f1)\"" - echo "age_identity = \"$(go run -tags no_ui ./cmd/archie -new-age-identity)\"" + echo "age_identity = \"$(go run ./cmd/archie -new-age-identity)\"" echo '[database]' echo 'url = "postgres://archie_runtime:archie@127.0.0.1:5432/archie_dev?sslmode=disable"' echo 'owner_url = "postgres://archie_migrator:archie@127.0.0.1:5432/archie_dev?sslmode=disable"' @@ -279,42 +240,10 @@ tasks: if command -v air >/dev/null 2>&1; then exec air -build.args_bin="-config,{{.DIR}}/config.toml" fi - exec go run -tags no_ui ./cmd/archie -config {{.DIR}}/config.toml - - dev:ui: - desc: Run Vite (proxies API requests to 127.0.0.1:8484 by default; override with ARCHIE_DEV_API) - dir: ui - deps: [ui:deps] - cmds: - - pnpm run dev - - e2e:smoke: - desc: Run the single-binary smoke check against a disposable archie instance (defaults to dev:archie on 127.0.0.1:8484) - cmds: - - | - ARCHIE_SMOKE_URL="${ARCHIE_SMOKE_URL:-http://127.0.0.1:8484}" \ - ARCHIE_SMOKE_TOKEN="${ARCHIE_SMOKE_TOKEN:-dev}" \ - node e2e/archie-smoke.cjs - - e2e:up: - desc: Start the legacy local multi-service stack without Docker (PostgreSQL 18, services, Vite) and seed it - cmds: - - bash e2e/stack.sh start - - bash e2e/seed.sh - - e2e:down: - desc: Stop the legacy local e2e stack - cmds: - - bash e2e/stack.sh stop - - e2e:check: - desc: List legacy browser checks; use -- all or -- CHECK to run, add --headed to watch - cmds: - - node e2e/run.cjs {{.CLI_ARGS}} + exec go run ./cmd/archie -config {{.DIR}}/config.toml build: desc: Build archie services and agent binaries - deps: [ui] # Static, like the binaries a release ships, so `dist` reuses these # compiled packages and only links again. env: @@ -341,8 +270,6 @@ tasks: - "modules/**/*.yaml" - go.mod - go.sum - - "ui/dist/**" - - ui/pages/pages.json generates: - "{{.BIN_DIR}}/archied" - "{{.BIN_DIR}}/archie-gateway" @@ -360,7 +287,6 @@ tasks: dist: desc: Build the linux/amd64 binaries a release ships into dist/ (VERSION=1.2.3; needs jq) - deps: [ui] env: GOOS: linux GOARCH: amd64 @@ -398,12 +324,6 @@ tasks: desc: Run the full quality gate # Finish mutations before starting parallel checks. cmds: - # Node packages land under ui/, which `go test ./...` walks: installing - # them while the parallel checks scan the tree makes a lockfile update - # delete Go sources mid-walk. Install first, then fan out. Every Go step - # embeds ui/dist, so the dashboard is built before any of them. - - task: ui - - task: pages:check - task: fmt - task: proto:check - task: db:check @@ -411,9 +331,8 @@ tasks: - task: check:readonly wt:check: - desc: "Fix, format and check a worktree's Go packages, and the dashboard if ui/ changed (-- ./pkg/... to name packages; default: those changed since main)" - # A worktree has no ui/dist, so the Go steps build with no_ui. The full - # gate still runs once, on the merged tree. + desc: "Fix, format and check a worktree's Go packages (-- ./pkg/... to name packages; default: those changed since main)" + # The full gate still runs once, on the merged tree. cmds: - | set -eu @@ -421,7 +340,7 @@ tasks: changed="$( { git diff --name-only "$base"; git ls-files --others --exclude-standard; } | sort -u)" pkgs="{{.CLI_ARGS}}" if [ -z "$pkgs" ]; then - pkgs="$(printf '%s\n' "$changed" | grep '\.go$' | grep -v '^ui/' | xargs -r -n1 dirname | sort -u | while read -r d; do [ -d "$d" ] && echo "./$d"; done | tr '\n' ' ')" + pkgs="$(printf '%s\n' "$changed" | grep '\.go$' | xargs -r -n1 dirname | sort -u | while read -r d; do [ -d "$d" ] && echo "./$d"; done | tr '\n' ' ')" fi if [ -n "$pkgs" ]; then echo "packages: $pkgs" @@ -429,8 +348,8 @@ tasks: # packages only; see fmt for why go fix runs until it converges. converged=false for pass in 1 2 3 4 5 6 7 8 9 10; do - go fix -tags no_ui $pkgs - if go fix -tags no_ui -diff $pkgs >/dev/null; then + go fix $pkgs + if go fix -diff $pkgs >/dev/null; then converged=true break fi @@ -440,14 +359,11 @@ tasks: exit 1 fi golangci-lint fmt $pkgs - go vet -tags no_ui $pkgs - go test -short -tags no_ui $pkgs - golangci-lint run --build-tags no_ui $pkgs + go vet $pkgs + go test -short $pkgs + golangci-lint run $pkgs fi - if printf '%s\n' "$changed" | grep -q '^ui/'; then - "{{.TASK_EXE}}" test:ui - fi - if [ -z "$pkgs" ] && ! printf '%s\n' "$changed" | grep -q '^ui/'; then + if [ -z "$pkgs" ]; then echo "nothing changed since main" fi @@ -459,7 +375,6 @@ tasks: - task: lint - task: build - task: test - - task: test:ui release: desc: "Tag main as a release (RELEASE=major|minor|patch|1.2.3)" diff --git a/deployments/README.md b/deployments/README.md index a8a97794b..96e7bbfa5 100644 --- a/deployments/README.md +++ b/deployments/README.md @@ -87,8 +87,8 @@ schema and serves, which is what an install that has not split the roles does. ## Running the dashboard -The standalone UI Service (`archie-ui`) serves the dashboard, not -`archied`. +The standalone UI Service (`archie-ui`) serves the dashboard's API, not +`archied`. The dashboard itself ships from archie-frontend as its own image. It reads the same `config.toml`, dials the Gateway and State Store targets already configured there, and binds `[web].listen` (`127.0.0.1:8484` by default). Start it after the Gateway and the State Store: diff --git a/e2e/.gitignore b/e2e/.gitignore deleted file mode 100644 index 72aae85fa..000000000 --- a/e2e/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -node_modules/ -out/ diff --git a/e2e/README.md b/e2e/README.md deleted file mode 100644 index 05a30baf6..000000000 --- a/e2e/README.md +++ /dev/null @@ -1,144 +0,0 @@ -# e2e - -Validation of the whole stack, run by hand or by an agent, never by -`task check` or CI. It needs PostgreSQL 18, five services, Vite and a browser, -which the gate must not. Docker is not needed: without it tasks queue and -park, which is useful data for the dashboard. - -| File | What it does | -| --- | --- | -| `stack.sh` | Starts PostgreSQL 18 (port 55432) and the five services as local processes, then Vite on 5173 | -| `seed.sh` | Seeds the stack through the dashboard API; safe to rerun | -| `run.cjs` | Runs `checks/*.cjs` in Chromium; screenshots, manifest and `report.html` to `out//` | -| `checks/` | One module per behaviour | -| `results/` | One committed report per release | - -## Run - -```bash -task e2e:up # build, start everything, seed -task e2e:check # list available checks (no stack needed) -task e2e:check -- list # explicitly list checks -task e2e:check -- audit-redirect # one check -task e2e:check -- all # all checks -task e2e:check -- --headed accessibility # watch a check in Chromium -task e2e:check -- --headed all # watch every check -task e2e:down # stop; e2e/stack.sh reset also deletes the data -``` - -Headless is the default. `--headed` opens visible Chromium and slows browser -actions to 150ms so you can follow them; assertions and saved evidence are the -same in both modes. The terminal prints each check before it starts. Headed mode -requires a graphical desktop. - -Nothing reads the installed config: `stack.sh` points the XDG directories at -`${ARCHIE_DEV_DIR:-~/.local/state/archie-dev}` and writes its overlay from -`deployments/dev.toml`. Logs are in its `logs/`. `e2e/stack.sh restart archied` -restarts one service. Run `task e2e:down` before starting again: startup refuses -occupied service ports and checks that each launched process stays alive. - -The seed creates a local test administrator: `operator@example.test`, password -`archie-local-e2e-password`. Use it at `http://localhost:5173`; the browser -checks sign in with the same account. These are test fixtures for this -loopback-only stack. To use an existing test account, set `ARCHIE_E2E_EMAIL` -and `ARCHIE_E2E_PASSWORD` for both seeding and browser checks. Seeding never -resets an existing account or deletes test data. - -The first run needs `pnpm install --dir e2e` and `pnpm --dir e2e exec playwright -install chromium`. The cloud environment ships Chromium and Playwright -preinstalled; run with `NODE_PATH=$(pnpm root -g)`. - -## Mocked settings review - -With the dashboard running on local Vite and the browser dependencies installed, -run `node e2e/settings-save.cjs http://127.0.0.1:5173`. Playwright intercepts the -API in the browser; this check needs neither sign-in nor a running backend. -Set `CHROME_BIN` to use an installed Chromium instead of Playwright's browser. - -## Single-binary smoke check - -Point this check at an already running, disposable `archie` instance with its -own PostgreSQL database and no external delivery connectors. Set -`ARCHIE_SMOKE_TOKEN` to that instance's bootstrap token and -`ARCHIE_SMOKE_URL` to its IPv4 loopback URL (for example -`http://127.0.0.1:8080`), then run: - -```bash -node e2e/archie-smoke.cjs -``` - -The check saves a workflow and a one-minute schedule, then verifies that its -run links back to the schedule event and appears in the composer. It disables -the schedule after the check but leaves records for inspection. The check needs -no model or forge. The legacy `task e2e:up` stack is not the target of this check. -If Archie is running in WSL and its loopback URL is not reachable from -Windows, run the check with Node in the same Linux environment as Archie. -If the schedule starts but the run does not finish, check the `events` and -`runs` logs; readiness alone does not verify that either worker can claim work. - -## Release evidence - -```bash -node e2e/run.cjs --record v1.54.0 all -``` - -writes `results/v1.54.0.md`, the pass, fail or skip of every check for -that release. Commit it with the release. Screenshots stay in `out/`. - -## Writing a check - -A module in `checks/` exports `async ({ page, go, shot, fail, skip, settled, attach, tolerate })`. - -- `go(path)` loads a dashboard route: `waitUntil: 'load'` plus 1200ms. - Wait for elements, never for `networkidle`: the event stream never goes idle. -- `shot(label)` saves `-[-x].png` after a short settle, - and records `{file, w, h, check}` in the manifest. The label becomes a slug, - so `shot('/')` becomes `routes-home.png`; a viewport other than the - 1440x900 default adds a suffix (`-390x844`). Repeated labels get `-2`, - `-3`, so the test runner keeps every capture. -- `fail(msg)` records a problem without stopping. -- `skip(reason)` stops the check and records a skip: a missing - precondition, never a failure. -- `tolerate(re)` ignores console errors matching `re`, for a response the page survives by design. -- `attach(name, data)` saves a non-image artifact as `-`. -- `settled(sel?)` waits for a selector or URL, then settles briefly. - It is the test runner's wait; checks need no capture wrapper or - ad-hoc sleeps around screenshots. - -Each check gets a fresh page at 1440x900 with the login `storageState`; -a check that needs a phone viewport resizes it itself to 390x844. -Those are the only two viewports in use. A throw, a `fail`, or any -console or page error fails the check. One module covers one behaviour. -Families share a prefix: `audit-*` for the audit page (redirect, -filters, revert, runtime, views-export, retention-live, phone), and -`workflow-*` for the canvas (loading, validation, phone-layout, logic). -`chat-composer` covers chat input, and `chat-dock-*` covers the chat dock (pin, -drag-cancel, layout, resize, drafts, picker, phone). - -`routes` loads every static route and flags text with stray leading, -trailing or doubled spaces. `seeded` checks the seed is visible. -`routes` visits `/logs` but the whitespace lint skips it: log lines are -data, not copy. - -## Output - -Every run writes `out//` with the screenshots, -`results.json` (the manifest: `{check, ok, ms, problems, artifacts[]}`, -plus `skipped`/`skipReason` for skips) and `report.html`. The report is a -self-contained test record with the commit, totals and one row per check (status, -time, message and that check's artifacts, screenshots inline). `attach(name, data)` -adds a non-image artifact to the current check; a failed check also gets a -`failure` screenshot. - -Exits: 0 when every check passes or skips, 1 when any check fails, -2 when the test runner itself errors. `ARCHIE_E2E_URL` points the run at -a dashboard other than `http://localhost:5173`. - -## Pitfalls - -| Symptom | Cause | Fix | -| --- | --- | --- | -| State Store exits: server is older than PostgreSQL 18 | another server answered | `stack.sh` uses port 55432; set `ARCHIE_DEV_PGPORT` if another process holds that port | -| Startup says a port is in use | a stack or another process already owns it | Run `task e2e:down`, then `task e2e:up`; inspect any remaining listener with `ss -ltnp` | -| `pkill -f` kills your own shell (exit 144) | `pkill -f` matched its own command line | `stack.sh stop` or `restart`, which kill by PID | -| Postgres aborts in the cloud | `/tmp/claude-0` is reset to mode 700 | `stack.sh` keeps the root cluster in `/var/lib/archie-dev` | diff --git a/e2e/archie-smoke.cjs b/e2e/archie-smoke.cjs deleted file mode 100644 index 7981b8010..000000000 --- a/e2e/archie-smoke.cjs +++ /dev/null @@ -1,75 +0,0 @@ -const assert = require("node:assert/strict"); -const { randomUUID } = require("node:crypto"); -const { setTimeout: delay } = require("node:timers/promises"); - -async function main() { - assert.ok(process.env.ARCHIE_SMOKE_URL, "Set ARCHIE_SMOKE_URL to a disposable Archie stack"); - const origin = new URL(process.env.ARCHIE_SMOKE_URL); - const token = process.env.ARCHIE_SMOKE_TOKEN; - assert.equal(origin.protocol, "http:"); - assert.equal(origin.hostname, "127.0.0.1", "Use a disposable Archie stack on IPv4 loopback"); - assert.ok(token, "Set ARCHIE_SMOKE_TOKEN to the disposable stack's admin token"); - - async function request(path, { method = "GET", body, authenticated = true, status = 200 } = {}) { - const response = await fetch(new URL(path, origin), { - method, - redirect: "error", - signal: AbortSignal.timeout(10_000), - headers: { - ...(authenticated && { Authorization: `Bearer ${token}` }), - ...(body !== undefined && { "Content-Type": "application/json" }), - }, - body: body === undefined ? undefined : JSON.stringify(body), - }).catch((err) => { - throw new Error(`${method} ${path}: could not reach Archie at ${origin.origin}: ${err.cause?.message || err.message}`, { cause: err }); - }); - assert.equal(response.status, status, `${method} ${path}: expected HTTP ${status}, got ${response.status}`); - return response.json(); - } - - const ready = await request("/readyz", { authenticated: false }); - assert.equal(ready.ready, true, "Archie is not ready"); - await request("/api/workflows", { authenticated: false, status: 401 }); - - const name = `smoke-${randomUUID()}`; - const saved = await request("/api/workflows", { - method: "POST", - status: 201, - body: { name, body: `repository: none\nsteps:\n - id: notify\n type: run.notify\n settings: {title: ${name}}\n` }, - }); - const trigger = { name, workflow_id: saved.id, every: "1m" }; - const created = await request("/api/triggers", { method: "POST", body: trigger, status: 201 }); - try { - const deadline = Date.now() + 90_000; - let last = "no scheduled run"; - while (Date.now() < deadline) { - const recent = await request("/api/runs"); - const run = recent.find((row) => row.workflow_id === saved.id); - if (run) { - last = `run ${run.id}: ${run.state}`; - assert.ok(!["failed", "cancelled"].includes(run.state), `${last}: ${run.error || "no error returned"}`); - if (run.state === "succeeded") { - const trail = await request(`/api/runs/${run.id}`); - assert.equal(trail.run.workflow_version, saved.version, "Run used the wrong workflow version"); - assert.equal(trail.origin?.trigger_id, created.id, "Run trail is missing the schedule trigger"); - assert.ok(trail.origin?.event_id, "Run trail is missing the originating event"); - assert.equal(trail.origin.declared_event_type, "schedule.tick"); - const messages = await request("/api/composer/messages"); - assert.equal(messages.filter((m) => m.run_id === run.id && m.title === name).length, 1, - "Expected one composer notification linked to the run"); - console.log(`Schedule, run trail and composer notification verified for ${run.id}`); - return; - } - } - await delay(1_000); - } - throw new Error(`Timed out waiting for ${name}: ${last}`); - } finally { - await request(`/api/triggers/${created.id}`, { method: "PUT", body: { ...trigger, disabled: true } }); - } -} - -main().catch((err) => { - console.error(err.message); - process.exitCode = 1; -}); diff --git a/e2e/checks/accessibility.cjs b/e2e/checks/accessibility.cjs deleted file mode 100644 index 14b6ff270..000000000 --- a/e2e/checks/accessibility.cjs +++ /dev/null @@ -1,176 +0,0 @@ -// Keyboard and phone access: the task dialog fits and tabs in order, pages -// title correctly, the skip link and palette focus main content, and -// query-only tab switches keep focus where it is. Then the audit's two -// static sweeps (#1767): no unnamed controls on any route, and every keyboard -// focus stop's indicator clears 3:1 against the background behind it. -const assert = require('node:assert/strict'); -const { staticRoutes } = require('./helpers/routes.cjs'); - -module.exports = async ({ page, go, shot, fail, settled, tolerate }) => { - // The extension catalogue 502 is a stack-environment issue, not this check. - tolerate(/extensions\/catalogue/); - await page.setViewportSize({ width: 390, height: 844 }); - await go('/tasks'); - await page.getByRole('button', { name: 'Jump to', exact: true }).click(); - await page.getByRole('option', { name: 'New task', exact: true }).click(); - const dialog = page.getByRole('dialog', { name: 'New task' }); - await dialog.waitFor(); - await settled(); - const bounds = await dialog.boundingBox(); - assert.ok(bounds.y >= 0 && bounds.y + bounds.height <= 844, 'New task dialog extends outside viewport'); - await shot('phone-task-dialog-top'); - const start = dialog.getByRole('button', { name: 'Start task', exact: true }); - await start.scrollIntoViewIfNeeded(); - const button = await start.boundingBox(); - assert.ok(button.y >= 0 && button.y + button.height <= 844, 'Start task cannot be reached by scrolling'); - await shot('phone-task-dialog'); - const close = dialog.getByRole('button', { name: 'Close', exact: true }); - await dialog.getByRole('button', { name: 'Cancel', exact: true }).focus(); - await page.keyboard.press('Tab'); - assert.ok(await close.evaluate(el => el === document.activeElement), 'Close is missing from keyboard tab order'); - const closeBounds = await close.boundingBox(); - assert.ok(closeBounds.y >= 0 && closeBounds.y + closeBounds.height <= 844, 'Close cannot be reached by keyboard'); - await page.keyboard.press('Escape'); - for (const [path, title] of [['/tasks', 'Tasks'], ['/events', 'Events'], ['/account', 'Your account'], ['/settings/models', 'Models | Instance'], ['/org/models', 'Models | Organisation']]) { - await go(path); - assert.equal(await page.title(), `${title} | Archie`); - } - await page.keyboard.press('Tab'); - const skip = page.getByRole('link', { name: 'Skip to main content', exact: true }); - assert.ok(await skip.evaluate(el => el === document.activeElement), 'Skip link is not the first keyboard stop'); - await page.keyboard.press('Enter'); - assert.equal(await page.evaluate(() => document.activeElement?.id), 'main-content'); - await page.getByRole('button', { name: 'Sections', exact: true }).click(); - await page.getByRole('menuitem', { name: 'Tasks', exact: true }).click(); - await page.waitForFunction(() => document.activeElement?.id === 'main-content', null, { timeout: 5000 }).catch(() => {}); - assert.equal(await page.evaluate(() => document.activeElement?.id), 'main-content', 'route navigation did not focus main'); - await page.getByRole('button', { name: 'Jump to', exact: true }).click(); - await page.getByRole('option', { name: 'Events', exact: true }).click(); - await page.waitForFunction(() => document.activeElement?.id === 'main-content', null, { timeout: 5000 }).catch(() => {}); - assert.equal(await page.evaluate(() => document.activeElement?.id), 'main-content', 'palette navigation did not focus main'); - // The conversation panel is only open on some entries to this page; the - // focus check below needs it closed either way. - const hide = page.getByRole('button', { name: 'Hide conversation', exact: true }); - if (await hide.count()) await hide.click(); - const tab = page.getByRole('tab', { name: /^Map/ }); - await tab.click(); - assert.ok(await tab.evaluate(el => el === document.activeElement), 'query-only navigation stole focus'); - - await page.setViewportSize({ width: 1440, height: 900 }); - - // Unnamed controls: every visible input, textarea, select, button or - // widget role on each static route needs an accessible name (accname - // order: labelledby, label, content, value, placeholder, title). - for (const r of staticRoutes()) { - await go(r); - const unnamed = await page.evaluate(() => { - const name = (el) => { - const by = el.getAttribute('aria-labelledby'); - if (by) { - const t = by.split(/\s+/).map((id) => (document.getElementById(id)?.textContent || '')).join(' ').trim(); - if (t) return t; - } - const al = el.getAttribute('aria-label'); - if (al && al.trim()) return al.trim(); - if (el.id) { - const l = document.querySelector(`label[for="${CSS.escape(el.id)}"]`); - if (l && l.textContent.trim()) return l.textContent.trim(); - } - const wrap = el.closest('label'); - if (wrap && wrap.textContent.trim()) return wrap.textContent.trim(); - if (el.tagName === 'BUTTON' || el.getAttribute('role') === 'button' || el.getAttribute('role') === 'tab' || el.getAttribute('role') === 'switch') return el.textContent.trim(); - if (el.tagName === 'INPUT') { - const t = (el.getAttribute('type') || 'text').toLowerCase(); - if (t === 'submit' || t === 'button' || t === 'reset') return el.value.trim(); - if (t === 'image') return (el.getAttribute('alt') || '').trim(); - } - return (el.getAttribute('placeholder') || el.getAttribute('title') || '').trim(); - }; - return [...document.querySelectorAll('button, input, textarea, select, [role="button"], [role="tab"], [role="switch"], [role="checkbox"]')] - .filter((el) => el.type !== 'hidden' && el.getClientRects().length) - .filter((el) => !name(el)) - .map((el) => `${el.tagName.toLowerCase()}${el.id ? '#' + el.id : ''}: ${el.outerHTML.slice(0, 120)}`); - }); - for (const u of unnamed) fail(`unnamed control on ${r}: ${u}`); - } - - // Focus contrast: Tab through each static route; the focused element's - // outline or ring must clear 3:1 against the effective background behind it. - const focusProbe = () => page.evaluate(() => { - const el = document.activeElement; - if (!el || el === document.body || el === document.documentElement) return null; - const cs = getComputedStyle(el); - const parse = (c) => { - c = String(c).trim(); - let m = c.match(/rgba?\(([^)]+)\)/); - if (m) { - const p = m[1].split(',').map(Number); - return { r: p[0], g: p[1], b: p[2], a: p.length > 3 ? p[3] : 1 }; - } - m = c.match(/^#([0-9a-f]{3,8})$/i); - if (m) { - let h = m[1]; - if (h.length === 3 || h.length === 4) h = [...h].map((x) => x + x).join(''); - const n = parseInt(h.slice(0, 6), 16); - return { r: (n >> 16) & 255, g: (n >> 8) & 255, b: n & 255, a: h.length === 8 ? parseInt(h.slice(6, 8), 16) / 255 : 1 }; - } - return null; - }; - const bgBehind = (start) => { - for (let n = start; n; n = n.parentElement) { - const c = parse(getComputedStyle(n).backgroundColor); - if (c && c.a > 0) return c; - } - return { r: 255, g: 255, b: 255, a: 1 }; - }; - // An outer ring or outline is painted over the parent's background; an - // inset one over the element's own. Score against whichever is higher. - const bgSelf = bgBehind(el); - const bgParent = bgBehind(el.parentElement); - const over = (fg, bg) => { - const a = fg.a + bg.a * (1 - fg.a); - if (a === 0) return { r: 0, g: 0, b: 0 }; - return { r: (fg.r * fg.a + bg.r * bg.a * (1 - fg.a)) / a, g: (fg.g * fg.a + bg.g * bg.a * (1 - fg.a)) / a, b: (fg.b * fg.a + bg.b * bg.a * (1 - fg.a)) / a }; - }; - const lum = (c) => { - const f = (v) => { v /= 255; return v <= 0.03928 ? v / 12.92 : Math.pow((v + 0.055) / 1.055, 2.4); }; - return 0.2126 * f(c.r) + 0.7152 * f(c.g) + 0.0722 * f(c.b); - }; - const ratio = (c1, c2) => { - const l1 = lum(c1), l2 = lum(c2); - return (Math.max(l1, l2) + 0.05) / (Math.min(l1, l2) + 0.05); - }; - let fg = null; - // The ring lives in --tw-ring-shadow on :focus-visible; read the var - // directly, then fall back to outline, any shadow layer, focus border. - if (el.matches(':focus-visible')) { - const m = cs.getPropertyValue('--tw-ring-shadow').match(/rgba?\([^)]+\)|#[0-9a-f]{3,8}\b/i); - if (m) { const c = parse(m[0]); if (c && c.a > 0) fg = c; } - } - if (!fg && cs.outlineStyle !== 'none' && parseFloat(cs.outlineWidth) > 0) fg = parse(cs.outlineColor === 'currentcolor' ? cs.color : cs.outlineColor); - if (!fg && cs.boxShadow && cs.boxShadow !== 'none') { - for (const m of cs.boxShadow.matchAll(/rgba?\([^)]+\)|#[0-9a-f]{3,8}\b/gi)) { - const c = parse(m[0]); - if (c && c.a > 0) { fg = c; break; } - } - } - if (!fg && el.matches(':focus-visible') && parseFloat(cs.borderTopWidth) > 0) { - const c = parse(cs.borderTopColor); - if (c && c.a > 0) fg = c; - } - const sig = `${el.tagName}#${el.id}:${(el.textContent || '').trim().slice(0, 30)}`; - if (!fg) return { sig, ratio: 0 }; - return { sig, ratio: Math.max(ratio(over(fg, bgSelf), bgSelf), ratio(over(fg, bgParent), bgParent)) }; - }); - for (const r of staticRoutes()) { - await go(r); - let prev = ''; - for (let i = 0; i < 40; i++) { - await page.keyboard.press('Tab'); - const info = await focusProbe(); - if (!info || info.sig === prev) break; - prev = info.sig; - if (info.ratio < 3) fail(`focus indicator under 3:1 on ${r} at ${info.sig} (ratio ${info.ratio.toFixed(2)})`); - } - } -}; diff --git a/e2e/checks/audit-filters.cjs b/e2e/checks/audit-filters.cjs deleted file mode 100644 index f4908c06f..000000000 --- a/e2e/checks/audit-filters.cjs +++ /dev/null @@ -1,113 +0,0 @@ -// Audit filters are server-evaluated through the URL contract: search, -// category, time range, back/forward restore, denied, and the actor filter. -const assert = require('node:assert/strict'); -const { trackAudit } = require('./helpers/audit-helpers.cjs'); - -module.exports = async ({ page, go, shot, fail }) => { - const { requestMatching, waitForUrl } = trackAudit(page); - - await go('/org/audit'); - const status = await page.evaluate(async () => (await fetch('/api/auth/status')).json()); - const actor = status?.user?.id; - assert.ok(actor, 'signed-in identity has no id'); - - const search = page.getByLabel('Search events', { exact: true }); - let request = await requestMatching( - () => search.fill('repository'), - (u) => u.searchParams.get('q') === 'repository', - ); - assert.ok(request, 'search issued no matching /api/audit request'); - await waitForUrl((u) => u.searchParams.get('q') === 'repository'); - assert.equal((await search.inputValue()), 'repository'); - - await go('/org/audit'); - request = await requestMatching( - () => page.getByRole('button', { name: 'Runtime', exact: true }).click(), - (u) => u.searchParams.get('categories') === 'runtime', - ); - assert.ok(request, 'category filter issued no matching /api/audit request'); - await waitForUrl((u) => u.searchParams.get('categories') === 'runtime'); - assert.equal( - await page.getByRole('button', { name: 'Runtime', exact: true }).getAttribute('aria-pressed'), - 'true', - ); - - // Time: Any time drops the window from the request rather than guessing one. - await page.getByRole('combobox', { name: 'Time range', exact: true }).click(); - request = await requestMatching( - () => page.getByRole('option', { name: 'Any time', exact: true }).click(), - (u) => u.searchParams.get('from') === null && u.searchParams.get('categories') === 'runtime', - ); - assert.ok(request, 'Any time issued no matching /api/audit request'); - await waitForUrl((u) => u.searchParams.get('since') === 'any'); - assert.equal(await page.getByRole('combobox', { name: 'Time range', exact: true }).innerText(), 'Any time'); - - // Back/forward restore the controls the URL describes. - const backRequest = page.waitForRequest( - (r) => { - const u = new URL(r.url()); - return u.pathname === '/api/audit' && u.searchParams.get('categories') === 'runtime' && !!u.searchParams.get('from'); - }, - { timeout: 8000 }, - ); - await page.goBack(); - await backRequest; - await waitForUrl((u) => u.searchParams.get('categories') === 'runtime' && u.searchParams.get('since') === null); - assert.equal(await page.getByRole('combobox', { name: 'Time range', exact: true }).innerText(), 'Last 30 days'); - assert.equal( - await page.getByRole('button', { name: 'Runtime', exact: true }).getAttribute('aria-pressed'), - 'true', - 'back did not restore the category toggle', - ); - const forwardRequest = page.waitForRequest( - (r) => { - const u = new URL(r.url()); - return u.pathname === '/api/audit' && u.searchParams.get('categories') === 'runtime' && u.searchParams.get('from') === null; - }, - { timeout: 8000 }, - ); - await page.goForward(); - await forwardRequest; - await waitForUrl((u) => u.searchParams.get('since') === 'any'); - assert.equal(await page.getByRole('combobox', { name: 'Time range', exact: true }).innerText(), 'Any time'); - - // Denied reaches the server through the same URL contract as the other - // filters. It must both update the URL and issue a request. - await go('/org/audit'); - const denied = page.getByRole('button', { name: 'Denied', exact: true }); - request = await requestMatching( - () => denied.click(), - (u) => u.searchParams.get('outcome') === 'denied', - 3000, - ); - const deniedUrl = new URL(page.url()); - if (!request || deniedUrl.searchParams.get('outcome') !== 'denied') { - await shot('denied'); - fail( - `Denied filter did not reach the server: URL ${page.url()} has outcome=${deniedUrl.searchParams.get('outcome') ?? 'absent'}, ` + - `aria-pressed=${await denied.getAttribute('aria-pressed')}, no /api/audit request with outcome=denied`, - ); - } else { - assert.equal(await denied.getAttribute('aria-pressed'), 'true'); - } - - // Advanced actor filter: server-evaluated, in the URL, shown as a chip. - await go('/org/audit'); - await page.getByRole('button', { name: 'Filters', exact: true }).click(); - const actorInput = page.getByLabel('Actor', { exact: true }); - request = await requestMatching( - async () => { - await actorInput.fill(actor); - await actorInput.press('Enter'); - }, - (u) => u.searchParams.get('actor') === actor, - ); - assert.ok(request, 'advanced actor filter issued no matching /api/audit request'); - await waitForUrl((u) => u.searchParams.get('actor') === actor); - assert.match( - await page.locator('ul[aria-label="Active filters"] li', { hasText: 'Actor:' }).first().innerText(), - new RegExp(actor), - ); - await shot('filters'); - await page.keyboard.press('Escape'); -}; diff --git a/e2e/checks/audit-phone.cjs b/e2e/checks/audit-phone.cjs deleted file mode 100644 index 0fe1a531e..000000000 --- a/e2e/checks/audit-phone.cjs +++ /dev/null @@ -1,42 +0,0 @@ -// The audit page at phone width: secondary columns collapse, and the list, -// an expanded row and the filters dialog fit without horizontal overflow. -const assert = require('node:assert/strict'); -const { trackAudit } = require('./helpers/audit-helpers.cjs'); - -module.exports = async ({ page, go, shot, fail, settled }) => { - trackAudit(page); - - await page.setViewportSize({ width: 390, height: 844 }); - await go('/org/audit'); - const assertNoOverflow = async (label) => { - const { scrollWidth, innerWidth } = await page.evaluate(() => ({ - scrollWidth: document.documentElement.scrollWidth, - innerWidth, - })); - if (scrollWidth > innerWidth) { - fail(`${label} overflows 390px: documentElement.scrollWidth=${scrollWidth} > innerWidth=${innerWidth}`); - } - }; - await page.locator('[data-row-key]').first().waitFor(); - await assertNoOverflow('audit list'); - assert.equal( - await page.locator('thead th', { hasText: 'Target' }).first().evaluate((el) => getComputedStyle(el).display), - 'none', - 'secondary columns are still rendered on the phone', - ); - await shot('list'); - - const phoneRow = page.locator('[data-row-key]').first(); - await phoneRow.focus(); - await page.keyboard.press('Enter'); - await settled(); - assert.equal(await phoneRow.getAttribute('aria-expanded'), 'true', 'phone row did not expand'); - await assertNoOverflow('expanded change set'); - await shot('expanded'); - - await page.getByRole('button', { name: 'Filters', exact: true }).click(); - await page.getByRole('dialog').first().waitFor(); - await settled(); - await assertNoOverflow('advanced filters'); - await shot('filters'); -}; diff --git a/e2e/checks/audit-redirect.cjs b/e2e/checks/audit-redirect.cjs deleted file mode 100644 index 5e9a638d1..000000000 --- a/e2e/checks/audit-redirect.cjs +++ /dev/null @@ -1,50 +0,0 @@ -// A deep link to the old history route redirects to the audit page keeping -// section, actor, since and the hash, and the feed loads with filter chips. -const assert = require('node:assert/strict'); -const { trackAudit } = require('./helpers/audit-helpers.cjs'); - -module.exports = async ({ page, go, shot, fail }) => { - const { lastRequest } = trackAudit(page); - - await go('/org/audit'); - const status = await page.evaluate(async () => (await fetch('/api/auth/status')).json()); - const actor = status?.user?.id; - assert.ok(actor, 'signed-in identity has no id'); - - const deepLink = `/settings/history?section=container-runtime-policies&actor=${encodeURIComponent(actor)}&since=30d#deep`; - await go(deepLink); - assert.match(page.url(), /\/org\/audit\?/, 'history did not redirect to the audit route'); - assert.match(page.url(), /section=container-runtime-policies/, 'redirect dropped section'); - assert.match(page.url(), new RegExp(`actor=${encodeURIComponent(actor)}`), 'redirect dropped actor'); - assert.match(page.url(), /since=30d/, 'redirect dropped since'); - assert.match(page.url(), /#deep$/, 'redirect dropped the hash'); - const redirected = lastRequest(); - assert.ok(redirected, 'the redirect issued no /api/audit request'); - assert.equal(redirected.searchParams.get('kind'), 'container-runtime-policies'); - assert.equal(redirected.searchParams.get('actor'), actor); - - // The feed must be readable before anything below can mean anything. A 500 - // here is the whole page: say what the server answered instead of timing out. - const probe = await page.evaluate(async () => { - const response = await fetch('/api/audit?limit=1'); - return { status: response.status, body: await response.text() }; - }); - if (probe.status !== 200) { - await shot('unavailable'); - fail(`GET /api/audit returned ${probe.status}: ${probe.body.slice(0, 200)}`); - return; - } - - const kindChip = page.locator('ul[aria-label="Active filters"] li', { hasText: 'Kind:' }); - await kindChip.first().waitFor({ timeout: 8000 }); - assert.match(await kindChip.first().innerText(), /Container runtime policies/, 'kind chip missing its catalog title'); - assert.match( - await page.locator('ul[aria-label="Active filters"] li', { hasText: 'Actor:' }).first().innerText(), - new RegExp(actor), - 'actor chip missing', - ); - await shot('redirect'); - await go('/org/audit'); - await page.locator('[data-row-key]').first().waitFor(); - await shot('desktop'); -}; diff --git a/e2e/checks/audit-retention-live.cjs b/e2e/checks/audit-retention-live.cjs deleted file mode 100644 index 767c0c7c8..000000000 --- a/e2e/checks/audit-retention-live.cjs +++ /dev/null @@ -1,148 +0,0 @@ -// Audit retention reads the stored resource, the live tail prepends new rows -// without a reload and holds them behind a button while scrolled away, and a -// retention save persists. The save stays last: it must not stop the rest. -const assert = require('node:assert/strict'); -const { trackAudit } = require('./helpers/audit-helpers.cjs'); - -module.exports = async ({ page, go, shot, fail, settled }) => { - const { loadCount } = trackAudit(page); - - await go('/org/audit'); - const resourceResponse = await page.request.get(`${new URL(page.url()).origin}/api/control-plane/resources/audit-retention`); - assert.equal(resourceResponse.status(), 200, 'audit-retention resource is unreadable'); - const retentionResource = await resourceResponse.json(); - const retentionHours = (value) => { - const match = String(value || '').match(/^(\d+)h$/); - return match ? Number(match[1]) : 0; - }; - const originalHours = retentionHours(retentionResource.resource.value.runtime_event_retention); - - const openRetention = async () => { - await page.getByRole('button', { name: 'Audit actions', exact: true }).click(); - await page.getByRole('menuitem', { name: 'Retention', exact: true }).click(); - const dialog = page.getByRole('dialog'); - await dialog.waitFor(); - await dialog.getByLabel('Runtime event retention (hours)', { exact: true }).waitFor(); - return dialog; - }; - - let retentionDialog = await openRetention(); - assert.match(await retentionDialog.innerText(), /Audit retention/); - assert.equal( - await retentionDialog.getByLabel('Runtime event retention (hours)', { exact: true }).inputValue(), - String(originalHours), - 'retention dialog did not read the stored resource', - ); - await retentionDialog.getByRole('button', { name: 'Cancel', exact: true }).click(); - await retentionDialog.waitFor({ state: 'hidden', timeout: 5000 }).catch(() => {}); - assert.ok(!(await retentionDialog.isVisible().catch(() => false)), 'Cancel left the retention dialog open'); - - // ---- live tail ----------------------------------------------------------- - await go('/org/audit'); - await page.evaluate(() => window.scrollTo(0, 0)); - await settled(); - const topKey = await page.locator('[data-row-key]').first().getAttribute('data-row-key'); - const loadsBeforeWrite = loadCount(); - let resource = await (await page.request.get(`${new URL(page.url()).origin}/api/control-plane/resources/audit-retention`)).json(); - const toggleRetention = async () => { - const current = retentionHours(resource.resource.value.runtime_event_retention); - const next = current === 2160 ? 2161 : 2160; - const written = await page.request.post( - `${new URL(page.url()).origin}/api/control-plane/resources/audit-retention/commands/replace`, - { - headers: { 'X-Archie-CSRF': '1', Origin: new URL(page.url()).origin }, - data: { value: { runtime_event_retention: `${next}h` }, expected_version: resource.resource.version }, - }, - ); - const body = await written.text(); - assert.equal(written.status(), 200, `retention write answered ${written.status()}: ${body.slice(0, 200)}`); - resource = JSON.parse(body); - }; - - await toggleRetention(); - let liveKey = null; - for (let attempt = 0; attempt < 40; attempt += 1) { - const key = await page.locator('[data-row-key]').first().getAttribute('data-row-key'); - if (key !== topKey) { - liveKey = key; - break; - } - await page.waitForTimeout(300); - } - if (!liveKey) { - fail('live tail did not show a new row within 12s of a write'); - await shot('live'); - } else { - assert.equal(loadCount(), loadsBeforeWrite, 'the live row required a page reload'); - assert.match( - await page.locator(`[data-row-key="${liveKey}"]`).innerText(), - /audit-retention/i, - 'the live row is not the write that caused it', - ); - await shot('live'); - } - - // Scrolled away, a new event is held behind a button instead of jumping the - // list under the operator. - await page.evaluate(() => window.scrollTo(0, 900)); - await settled(); - const scrolledTo = await page.evaluate(() => window.scrollY); - assert.ok(scrolledTo > 80, 'the feed is too short to test held new events'); - const heldTop = await page.locator('[data-row-key]').first().getAttribute('data-row-key'); - await toggleRetention(); - const heldButton = page.getByRole('button', { name: /^\d+ new events?$/ }).first(); - let held = false; - for (let attempt = 0; attempt < 40; attempt += 1) { - if ((await heldButton.count()) && (await heldButton.isVisible().catch(() => false))) { - held = true; - break; - } - await page.waitForTimeout(300); - } - if (!held) { - fail('held new events did not appear while scrolled away'); - await shot('held'); - } else { - assert.equal( - await page.locator('[data-row-key]').first().getAttribute('data-row-key'), - heldTop, - 'a new row was prepended while the operator was scrolled away', - ); - await shot('held'); - await heldButton.click(); - await page.waitForFunction( - (top) => document.querySelector('[data-row-key]')?.getAttribute('data-row-key') !== top, - heldTop, - { timeout: 8000 }, - ).catch(() => {}); - await settled(); - assert.notEqual( - await page.locator('[data-row-key]').first().getAttribute('data-row-key'), - heldTop, - 'showing held events did not prepend the new row', - ); - assert.ok((await page.evaluate(() => window.scrollY)) < 10, 'showing held events did not return to the top'); - } - - // ---- retention: save ----------------------------------------------------- - // Kept last: the page error this currently raises must not stop the rest. - await go('/org/audit'); - retentionDialog = await openRetention(); - const hoursField = retentionDialog.getByLabel('Runtime event retention (hours)', { exact: true }); - const beforeSave = await (await page.request.get(`${new URL(page.url()).origin}/api/control-plane/resources/audit-retention`)).json(); - const beforeHours = retentionHours(beforeSave.resource.value.runtime_event_retention); - const wanted = beforeHours === 2160 ? 2161 : 2160; - await hoursField.fill(String(wanted)); - await retentionDialog.getByRole('button', { name: 'Save', exact: true }).click(); - await retentionDialog.waitFor({ state: 'hidden', timeout: 5000 }).catch(() => {}); - const stillOpen = await retentionDialog.isVisible().catch(() => false); - const afterSave = await (await page.request.get(`${new URL(page.url()).origin}/api/control-plane/resources/audit-retention`)).json(); - const afterHours = retentionHours(afterSave.resource.value.runtime_event_retention); - if (stillOpen || afterHours !== wanted) { - await shot('retention-save'); - fail( - `retention save did not complete: dialog ${stillOpen ? 'stayed open' : 'closed'}, ` + - `stored retention is ${afterHours}h (wanted ${wanted}h), URL ${page.url()}`, - ); - } -}; diff --git a/e2e/checks/audit-revert.cjs b/e2e/checks/audit-revert.cjs deleted file mode 100644 index 64502a731..000000000 --- a/e2e/checks/audit-revert.cjs +++ /dev/null @@ -1,69 +0,0 @@ -// A revertable change set expands to its Before/After diff, offers one Revert -// action whose dialog cancels cleanly, and toggles from the keyboard. -const assert = require('node:assert/strict'); -const { DEFAULT_WINDOW_MS, trackAudit } = require('./helpers/audit-helpers.cjs'); - -module.exports = async ({ page, go, shot, fail, settled }) => { - trackAudit(page); - - await go('/org/audit'); - await page.locator('[data-row-key]').first().waitFor(); - const from = new Date(Date.now() - DEFAULT_WINDOW_MS).toISOString(); - // The feed page size is 100: only rows in this response are rendered. - const feed = await page.evaluate( - async (iso) => (await fetch(`/api/audit?limit=100&from=${encodeURIComponent(iso)}`)).json(), - from, - ); - const records = feed.records || []; - assert.ok(records.length, 'the seeded feed is empty'); - - const changeSet = records.find( - (row) => - row.target?.kind === 'resource' && - (row.detail?.fields || []).length > 0 && - (row.detail?.version ?? 0) > 1, - ); - if (!changeSet) { - fail('no revertable settings change set in the feed; cannot exercise the diff or Revert'); - return; - } - - const row = page.locator(`[data-row-key="${changeSet.id}"]`); - await row.waitFor(); - await row.scrollIntoViewIfNeeded(); - await row.locator('td').first().click(); - assert.equal(await row.getAttribute('aria-expanded'), 'true', 'click did not expand the change set'); - const detail = row.locator('xpath=following-sibling::tr[1]'); - await detail.getByText('Before:', { exact: false }).first().waitFor(); - assert.match(await detail.innerText(), /After:/, 'expanded change set has no after value'); - assert.equal( - await detail.getByRole('button', { name: /^Revert \S/ }).count(), - 0, - 'the audit diff offers a per-field revert', - ); - const revertAll = page.getByRole('button', { name: 'Revert', exact: true }); - assert.ok((await revertAll.count()) > 0, 'no Revert action on a revertable change set'); - await shot('change-set'); - - await revertAll.first().click(); - const dialog = page.getByRole('alertdialog'); - await dialog.waitFor(); - assert.match(await dialog.innerText(), /Revert this change\?/); - assert.match(await dialog.innerText(), /previous version opens for review/i); - await dialog.getByRole('button', { name: 'Cancel', exact: true }).click(); - await dialog.waitFor({ state: 'hidden', timeout: 5000 }).catch(() => {}); - assert.ok(!(await dialog.isVisible().catch(() => false)), 'Cancel left the revert dialog open'); - assert.equal( - await page.getByRole('region', { name: 'Unsaved changes' }).count(), - 0, - 'Cancel touched the save bar', - ); - - // Enter is the keyboard equivalent of clicking the row. - await row.click(); - assert.equal(await row.getAttribute('aria-expanded'), 'false', 'the row did not collapse'); - await row.focus(); - await page.keyboard.press('Enter'); - await settled(); - assert.equal(await row.getAttribute('aria-expanded'), 'true', 'Enter did not expand the change set'); -}; diff --git a/e2e/checks/audit-runtime.cjs b/e2e/checks/audit-runtime.cjs deleted file mode 100644 index 7262f1f48..000000000 --- a/e2e/checks/audit-runtime.cjs +++ /dev/null @@ -1,36 +0,0 @@ -// A runtime event with a task target expands to its metadata and links to -// the task. The seed's work requests park and record the event; the feed is -// filtered to it so settings noise cannot push it off the page. Without it -// there is nothing to exercise, so the check skips instead of failing. -const assert = require('node:assert/strict'); -const { DEFAULT_WINDOW_MS, trackAudit } = require('./helpers/audit-helpers.cjs'); - -module.exports = async ({ page, go, skip }) => { - trackAudit(page); - - await go('/org/audit?kind=parked'); - await page.locator('[data-row-key]').first().waitFor(); - const from = new Date(Date.now() - DEFAULT_WINDOW_MS).toISOString(); - // The feed page size is 100: only rows in this response are rendered. - const feed = await page.evaluate( - async (iso) => (await fetch(`/api/audit?limit=100&kind=parked&from=${encodeURIComponent(iso)}`)).json(), - from, - ); - const records = feed.records || []; - const runtime = records.find((row) => row.category === 'runtime' && row.target?.kind === 'task' && row.target?.id); - if (!runtime) { - skip('no runtime event with a task target in the feed'); - } - - const row = page.locator(`[data-row-key="${runtime.id}"]`); - await row.waitFor(); - await row.scrollIntoViewIfNeeded(); - await row.locator('td').first().click(); - assert.equal(await row.getAttribute('aria-expanded'), 'true', 'runtime row did not expand'); - const detail = row.locator('xpath=following-sibling::tr[1]'); - await detail.locator('dl dt', { hasText: 'Target' }).first().waitFor(); - assert.match(await detail.innerText(), /Table/, 'runtime metadata has no table row'); - const link = detail.getByRole('link', { name: runtime.target.label || runtime.target.id, exact: true }); - assert.equal(await link.count(), 1, 'runtime target is not a link'); - assert.equal(await link.getAttribute('href'), `/tasks/${runtime.target.id}`); -}; diff --git a/e2e/checks/audit-views-export.cjs b/e2e/checks/audit-views-export.cjs deleted file mode 100644 index 4a7be942d..000000000 --- a/e2e/checks/audit-views-export.cjs +++ /dev/null @@ -1,50 +0,0 @@ -// Audit saved views round-trip through the URL, and CSV/JSON exports carry -// the resolved window and arrive as attachments. -const assert = require('node:assert/strict'); -const { trackAudit, exportOnce } = require('./helpers/audit-helpers.cjs'); - -module.exports = async ({ page, go, shot, fail, settled }) => { - const { waitForUrl } = trackAudit(page); - - await go('/org/audit'); - await page.getByRole('button', { name: 'Runtime', exact: true }).click(); - await waitForUrl((u) => u.searchParams.get('categories') === 'runtime'); - - const viewName = `e2e-view-${Date.now()}`; - await page.getByRole('button', { name: 'Audit actions', exact: true }).click(); - await page.getByRole('menuitem', { name: 'Save view…', exact: true }).click(); - const saveDialog = page.getByRole('dialog'); - await saveDialog.waitFor(); - await saveDialog.getByLabel('Name', { exact: true }).fill(viewName); - await saveDialog.getByRole('button', { name: 'Save', exact: true }).click(); - await settled(); - await saveDialog.waitFor({ state: 'hidden', timeout: 5000 }).catch(() => {}); - - const savedView = page.getByRole('combobox', { name: 'Saved view', exact: true }); - await savedView.waitFor(); - assert.equal((await savedView.innerText()).trim(), viewName); - await shot('saved-view'); - - await page.getByRole('button', { name: 'Runtime', exact: true }).click(); - await waitForUrl((u) => u.searchParams.get('categories') === null); - await savedView.click(); - await page.getByRole('option', { name: viewName, exact: true }).click(); - await waitForUrl((u) => u.searchParams.get('categories') === 'runtime'); - assert.equal((await savedView.innerText()).trim(), viewName, 'applying the saved view did not restore it'); - - await page.getByRole('button', { name: 'Audit actions', exact: true }).click(); - await page.getByRole('menuitem', { name: 'Delete view', exact: true }).click(); - await savedView.waitFor({ state: 'detached', timeout: 5000 }).catch(() => {}); - assert.equal(await savedView.count(), 0, 'deleting the saved view left it in the picker'); - - await go('/org/audit'); - await page.getByRole('button', { name: 'Export', exact: true }).click(); - await page.getByRole('menuitem', { name: 'CSV', exact: true }).waitFor(); - await shot('export'); - await page.keyboard.press('Escape'); - - const csvBody = await exportOnce(page, fail, 'CSV', 'csv'); - if (csvBody !== null) assert.ok(csvBody.split('\n')[0].trim().length > 0, 'CSV export is empty'); - const jsonBody = await exportOnce(page, fail, 'JSON', 'json'); - if (jsonBody !== null) assert.ok(jsonBody.trimStart().startsWith('['), 'JSON export is not an array'); -}; diff --git a/e2e/checks/catalogue-preview-modal.cjs b/e2e/checks/catalogue-preview-modal.cjs deleted file mode 100644 index ca488b415..000000000 --- a/e2e/checks/catalogue-preview-modal.cjs +++ /dev/null @@ -1,49 +0,0 @@ -const assert = require('node:assert/strict'); - -module.exports = async ({ page, go, shot }) => { - // An isolated catalogue entry keeps the check independent of the live source. - await page.route('**/api/extensions/catalogue', route => route.fulfill({ json: [{ - name: 'preview-extension', display_name: 'Preview extension', description: 'An extension to preview.', - contract: 'workflow', group: 'platform', latest: '1.0.0', default_version: '1.0.0', - versions: [{ version: '1.0.0', digest: 'preview-digest', registered: true, settings: [] }], - }] })); - await page.setViewportSize({ width: 390, height: 600 }); - await go('/settings/extensions?tab=marketplace'); - const opener = page.getByRole('button', { name: 'Details for Preview extension' }); - const preview = page.getByRole('dialog', { name: 'Preview extension' }); - const version = preview.getByRole('combobox', { name: 'Version' }); - const close = preview.getByRole('button', { name: 'Close' }); - - await opener.click(); - await page.keyboard.press('Tab'); - await page.keyboard.press('Shift+Tab'); - assert.ok(await version.evaluate(el => el === document.activeElement)); - await shot('version-focus'); - const { clearance, ring } = await version.evaluate(el => { - let scroll = el.parentElement; - while (getComputedStyle(scroll).overflowY !== 'auto') scroll = scroll.parentElement; - const bounds = scroll.getBoundingClientRect(); - const field = el.getBoundingClientRect(); - const css = getComputedStyle(el); - return { - clearance: Math.min(field.left - bounds.left, bounds.left + scroll.clientWidth - field.right), - ring: Math.max(3, parseFloat(css.outlineWidth) + parseFloat(css.outlineOffset)), - }; - }); - assert.ok(clearance + 0.1 >= ring, `Version focus ring: ${clearance}px clearance for ${ring}px ring`); - - await page.keyboard.press('Space'); - const options = page.getByRole('listbox'); - await options.waitFor(); - await page.keyboard.press('Escape'); - await options.waitFor({ state: 'hidden' }); - await preview.waitFor(); - await page.keyboard.press('Escape'); - await preview.waitFor({ state: 'detached' }); - assert.ok(await opener.evaluate(el => el === document.activeElement)); - - await opener.click(); - await close.click(); - await preview.waitFor({ state: 'detached' }); - assert.ok(await opener.evaluate(el => el === document.activeElement)); -}; diff --git a/e2e/checks/chat-composer.cjs b/e2e/checks/chat-composer.cjs deleted file mode 100644 index c3bda1cab..000000000 --- a/e2e/checks/chat-composer.cjs +++ /dev/null @@ -1,70 +0,0 @@ -// The chat composer: IME confirmation never submits the draft, Shift+Enter -// inserts a newline, ordinary Enter submits and clears, and # attaches a task. -const assert = require('node:assert/strict'); - -module.exports = async ({ page, go, shot, tolerate }) => { - tolerate(/api\/tasks/); - await go('/events'); - const composer = page.getByRole('combobox', { name: 'Message Archie', exact: true }); - await composer.waitFor(); - await composer.fill('Composition in progress'); - const sent = []; - await page.route('**/api/chat/stream', async route => { - sent.push(route.request().postDataJSON().text); - await route.fulfill({ contentType: 'text/event-stream', body: 'data: {"type":"done","text":"Test response"}\n\n' }); - }); - for (const event of [{ isComposing: true }, { keyCode: 229 }]) { - await composer.dispatchEvent('keydown', { key: 'Enter', bubbles: true, cancelable: true, ...event }); - assert.equal(await composer.inputValue(), 'Composition in progress', 'IME confirmation submitted the draft'); - } - assert.equal(sent.length, 0); - await composer.press('Shift+Enter'); - assert.ok((await composer.inputValue()).includes('\n'), 'Shift+Enter no longer inserts a newline'); - await composer.fill('Ordinary Enter submits'); - const request = page.waitForRequest('**/api/chat/stream'); - await composer.press('Enter'); - assert.equal((await request).postDataJSON().text, 'Ordinary Enter submits'); - assert.equal(await composer.inputValue(), ''); - - let failTasks = true; - await page.route('**/api/tasks?*', async route => { - if (failTasks) return route.fulfill({ status: 500, contentType: 'text/plain', body: 'task store down' }); - await route.fulfill({ - contentType: 'application/json', - body: JSON.stringify([ - { id: 1861, title: "Chat composer: '#' context dropdown", status: 'running' }, - { id: 1842, title: 'Retry stalled task runs', status: 'done' }, - ]), - }); - }); - - const tasksPalette = page.getByRole('listbox', { name: 'Tasks' }); - await composer.fill('Look at #'); - await tasksPalette.getByRole('alert').waitFor(); - assert.equal(await tasksPalette.getByRole('option').count(), 0); - - failTasks = false; - await tasksPalette.getByRole('button', { name: 'Retry' }).click(); - await tasksPalette.getByRole('option').first().waitFor(); - assert.equal(await tasksPalette.getByRole('option').count(), 2); - - await composer.press('Escape'); - await tasksPalette.waitFor({ state: 'hidden' }); - - await composer.fill('Look at #184 now'); - await composer.evaluate(el => el.setSelectionRange(12, 12)); - await composer.dispatchEvent('input'); - await tasksPalette.getByRole('option').first().waitFor(); - assert.equal(await tasksPalette.getByRole('option').count(), 1); - await composer.press('Tab'); - await tasksPalette.waitFor({ state: 'hidden' }); - assert.equal(await composer.inputValue(), 'Look at now'); - await page.getByRole('list', { name: 'Attached tasks' }).getByText('#1842').waitFor(); - - const tagged = page.waitForRequest('**/api/chat/stream'); - await composer.press('Enter'); - const text = (await tagged).postDataJSON().text; - assert.ok(text.startsWith('Look at now') && text.includes('#1842 Retry stalled task runs'), text); - assert.equal(await page.getByRole('list', { name: 'Attached tasks' }).count(), 0); - await shot('chat-composition'); -}; diff --git a/e2e/checks/chat-dock-drafts.cjs b/e2e/checks/chat-dock-drafts.cjs deleted file mode 100644 index d7285a6b3..000000000 --- a/e2e/checks/chat-dock-drafts.cjs +++ /dev/null @@ -1,42 +0,0 @@ -// Each conversation keeps its own unsent text and attached tasks. Starting a -// new chat opens an empty composer, switching back restores the earlier -// draft, and hiding and reopening the conversation loses nothing. -const assert = require('node:assert/strict'); -const h = require('./helpers/chat-dock.cjs'); - -module.exports = async ({ page, go, shot }) => { - await page.route('**/api/tasks?*', (route) => - route.fulfill({ contentType: 'application/json', body: JSON.stringify([{ id: 1861, title: 'Task picker', status: 'running' }]) }), - ); - await h.load(page, go); - await h.expand(page); - const composer = h.composerOf(page); - const tags = page.getByRole('list', { name: 'Attached tasks' }); - - await composer.fill('draft for the first chat'); - await composer.fill('#'); - await page.getByRole('listbox', { name: 'Tasks' }).getByRole('option').first().click(); - await tags.getByText('#1861').waitFor(); - await composer.fill('draft for the first chat'); - - await page.getByRole('button', { name: 'New chat' }).click(); - await h.until(async () => (await composer.inputValue()) === '' && (await tags.count()) === 0, 'a new chat inherited the first chat draft'); - await composer.fill('draft for the second chat'); - - await h.hideOf(page).click(); - await h.expand(page); - assert.equal(await composer.inputValue(), 'draft for the second chat', 'hiding the conversation lost the draft'); - - const pick = async (index) => { - await page.getByRole('combobox', { name: 'Conversation' }).click(); - await page.getByRole('option').nth(index).click(); - }; - await pick(1); - await h.until(async () => (await composer.inputValue()) === 'draft for the first chat', 'switching back did not restore the first draft'); - await tags.getByText('#1861').waitFor(); - await shot('first-chat-draft'); - - await pick(0); - await h.until(async () => (await composer.inputValue()) === 'draft for the second chat', 'switching forward did not restore the second draft'); - assert.equal(await tags.count(), 0, 'the first chat task tag leaked into the second chat'); -}; diff --git a/e2e/checks/chat-dock-drag-cancel.cjs b/e2e/checks/chat-dock-drag-cancel.cjs deleted file mode 100644 index 46be294aa..000000000 --- a/e2e/checks/chat-dock-drag-cancel.cjs +++ /dev/null @@ -1,27 +0,0 @@ -// A drag the browser cancels (a touch turned into a scroll, a lost pointer) -// leaves the dock where it was: nothing pins, nothing stays offset, and the -// next drag still works. -const assert = require('node:assert/strict'); -const h = require('./helpers/chat-dock.cjs'); - -module.exports = async ({ page, go }) => { - await h.load(page, go); - await h.expand(page); - const dock = h.dockOf(page); - const before = await dock.boundingBox(); - const header = dock.locator('div.cursor-grab'); - - await h.dragTo(page, 1430); - const dragging = await dock.getAttribute('style'); - assert.ok(/translate/.test(dragging || ''), 'the drag never started, so cancelling it proves nothing'); - await header.dispatchEvent('pointercancel'); - await page.mouse.up(); - - await h.until(async () => !/translate/.test((await dock.getAttribute('style')) || ''), 'the dock stayed offset after the drag was cancelled'); - assert.deepEqual(await dock.boundingBox(), before, 'cancelling the drag moved the dock'); - assert.equal((await h.saved(page)).side, null, 'a cancelled drag pinned the dock'); - - await h.dragTo(page, 1430); - await page.mouse.up(); - await h.until(async () => (await h.saved(page)).side === 'right', 'a drag after a cancelled one did not pin'); -}; diff --git a/e2e/checks/chat-dock-layout.cjs b/e2e/checks/chat-dock-layout.cjs deleted file mode 100644 index c98aa9753..000000000 --- a/e2e/checks/chat-dock-layout.cjs +++ /dev/null @@ -1,46 +0,0 @@ -// The saved dock layout: a stored mode and width are honoured, widths outside -// the allowed range are clamped, unreadable JSON falls back to a usable -// floating dock that saves again, and visiting phone width never overwrites -// the desktop choice. -const assert = require('node:assert/strict'); -const h = require('./helpers/chat-dock.cjs'); - -module.exports = async ({ page, go, shot, tolerate }) => { - tolerate(/JSON|SyntaxError/); - const dock = h.dockOf(page); - - await h.load(page, go, JSON.stringify({ mode: 'left', w: 500 })); - await h.expand(page); - let box = await dock.boundingBox(); - h.near(box.x, 0, 'saved left pin'); - h.near(box.width, 500, 'saved width'); - assert.ok((await h.mainRect(page)).x >= 499, 'page did not reflow beside the restored dock'); - - await h.load(page, go, JSON.stringify({ mode: 'right', w: -4 })); - await h.expand(page); - h.near((await dock.boundingBox()).width, 320, 'a negative width clamps to the minimum'); - - await h.load(page, go, JSON.stringify({ mode: 'right', w: 9999 })); - await h.expand(page); - h.near((await dock.boundingBox()).width, 720, 'a huge width clamps to the maximum'); - - await h.load(page, go, '{broken'); - await h.expand(page); - box = await dock.boundingBox(); - assert.ok(box.height < 900 && box.x > 0 && box.x + box.width < 1440, 'unreadable layout did not fall back to a floating dock'); - await h.composerOf(page).fill('still usable'); - await h.dragTo(page, 1430); - await page.mouse.up(); - await h.until(async () => (await h.saved(page)).mode === 'right', 'the dock did not save a layout over the unreadable one'); - await shot('recovered'); - - await h.load(page, go, JSON.stringify({ mode: 'left', w: 460 })); - const layout = await h.stored(page); - await page.setViewportSize({ width: 390, height: 844 }); - await h.expand(page); - box = await dock.boundingBox(); - assert.ok(box.x >= 0 && box.x + box.width <= 390, 'the dock overflows the phone viewport'); - await page.setViewportSize({ width: 1440, height: 900 }); - assert.equal(await h.stored(page), layout, 'visiting phone width rewrote the saved layout'); - await h.until(async () => Math.abs((await dock.boundingBox()).width - 460) <= 1, 'the desktop layout did not return after phone width'); -}; diff --git a/e2e/checks/chat-dock-phone.cjs b/e2e/checks/chat-dock-phone.cjs deleted file mode 100644 index a955fd9a5..000000000 --- a/e2e/checks/chat-dock-phone.cjs +++ /dev/null @@ -1,41 +0,0 @@ -// The chat dock at phone width: the bar and the open conversation fit the -// screen on a few pages, a stored desktop pin is ignored, the composer stays -// reachable, and the dock adds no sideways scroll. The page's own overflow is -// phone-overflow's to report, so the dock is measured against the page -// without it. -const assert = require('node:assert/strict'); -const h = require('./helpers/chat-dock.cjs'); - -module.exports = async ({ page, go, shot, tolerate }) => { - tolerate(/extensions\/catalogue/); - await page.setViewportSize({ width: 390, height: 844 }); - const fits = async (label) => { - const { scroll, bare, inner } = await page.evaluate(() => { - const root = document.querySelector('aside[aria-label="Chat with Archie"]').parentElement; - const scroll = document.documentElement.scrollWidth; - root.style.display = 'none'; - const bare = document.documentElement.scrollWidth; - root.style.display = ''; - return { scroll, bare, inner: window.innerWidth }; - }); - assert.ok(scroll <= Math.max(bare, inner), `${label}: the dock widens the page (${scroll} > ${Math.max(bare, inner)})`); - const box = await h.dockOf(page).boundingBox(); - assert.ok(box.x >= 0 && box.x + box.width <= inner, `${label}: dock leaves the screen (${box.x}..${box.x + box.width})`); - assert.ok(box.y >= 0 && box.y + box.height <= 844, `${label}: dock leaves the screen vertically`); - }; - - for (const path of ['/events', '/account', '/org/agents']) { - await h.load(page, go, JSON.stringify({ side: 'right', width: 420 })); - await go(path); - await fits(`${path} collapsed`); - await h.expand(page); - await fits(`${path} open`); - assert.equal(await page.evaluate(() => document.documentElement.style.getPropertyValue('--chat-pin-r')), '0px', `${path}: the page reserved room for a pin on a phone`); - const composer = await h.composerOf(page).boundingBox(); - assert.ok(composer.y + composer.height <= 844 && composer.x >= 0 && composer.x + composer.width <= 390, `${path}: composer is off screen`); - assert.equal(await h.dividerOf(page).count(), 0, `${path}: a phone shows the pin divider`); - await h.composerOf(page).fill('A long unbroken line '.repeat(20)); - await fits(`${path} long draft`); - await shot(path); - } -}; diff --git a/e2e/checks/chat-dock-picker.cjs b/e2e/checks/chat-dock-picker.cjs deleted file mode 100644 index 8e0460477..000000000 --- a/e2e/checks/chat-dock-picker.cjs +++ /dev/null @@ -1,59 +0,0 @@ -// The # task picker by keyboard: arrows move the selection and wrap, Enter -// attaches the selected task, Escape closes the picker and leaves the -// conversation open, and an IME confirmation Enter never picks. -const assert = require('node:assert/strict'); -const h = require('./helpers/chat-dock.cjs'); - -const tasks = [ - { id: 1861, title: 'Task picker', status: 'running' }, - { id: 1842, title: 'Retry stalled task runs', status: 'done' }, - { id: 1830, title: 'Filter forge text', status: 'queued' }, -]; - -module.exports = async ({ page, go, shot }) => { - await page.route('**/api/tasks?*', (route) => route.fulfill({ contentType: 'application/json', body: JSON.stringify(tasks) })); - await h.load(page, go); - await h.expand(page); - const composer = h.composerOf(page); - const palette = page.getByRole('listbox', { name: 'Tasks' }); - const options = palette.getByRole('option'); - const selected = () => options.evaluateAll((els) => els.findIndex((el) => el.getAttribute('aria-selected') === 'true')); - const tags = page.getByRole('list', { name: 'Attached tasks' }); - - await composer.fill('Look at #'); - await options.first().waitFor(); - assert.equal(await options.count(), 3); - assert.equal(await selected(), 0); - await shot('picker'); - - await composer.press('ArrowDown'); - assert.equal(await selected(), 1); - assert.equal(await composer.getAttribute('aria-activedescendant'), 'slash-palette-option-1'); - await composer.press('ArrowUp'); - await composer.press('ArrowUp'); - assert.equal(await selected(), 2, 'ArrowUp from the first row did not wrap to the last'); - await composer.press('ArrowDown'); - assert.equal(await selected(), 0, 'ArrowDown from the last row did not wrap to the first'); - await composer.press('ArrowDown'); - - for (const event of [{ isComposing: true }, { keyCode: 229 }]) { - await composer.dispatchEvent('keydown', { key: 'Enter', bubbles: true, cancelable: true, ...event }); - assert.equal(await options.count(), 3, 'an IME confirmation closed the picker'); - assert.equal(await tags.count(), 0, 'an IME confirmation attached a task'); - } - - await composer.press('Enter'); - await palette.waitFor({ state: 'hidden' }); - await tags.getByText('#1842').waitFor(); - assert.equal(await tags.getByRole('listitem').count(), 1); - assert.equal(await composer.inputValue(), 'Look at ', 'the # token stayed in the text'); - assert.ok(await composer.evaluate((el) => document.activeElement === el), 'focus left the composer'); - - await composer.fill('Look at #'); - await options.first().waitFor(); - await composer.press('Escape'); - await palette.waitFor({ state: 'hidden' }); - assert.equal(await h.hideOf(page).isVisible(), true, 'Escape on the picker also closed the conversation'); - await composer.press('Escape'); - await h.hideOf(page).waitFor({ state: 'hidden' }); -}; diff --git a/e2e/checks/chat-dock-pin.cjs b/e2e/checks/chat-dock-pin.cjs deleted file mode 100644 index 797069c82..000000000 --- a/e2e/checks/chat-dock-pin.cjs +++ /dev/null @@ -1,52 +0,0 @@ -// Pinning the chat dock: dragging its header to an edge pins it there and the -// page reflows beside it; double-clicking the header unpins it; hiding the -// conversation gives the page back its width; the choice survives a reload. -const assert = require('node:assert/strict'); -const h = require('./helpers/chat-dock.cjs'); - -module.exports = async ({ page, go, shot }) => { - await h.load(page, go); - await h.expand(page); - const dock = h.dockOf(page); - const free = await h.mainRect(page); - const floating = await dock.boundingBox(); - assert.ok(floating.height < 900, 'the dock starts as a floating card'); - - await h.dragTo(page, 1430); - await page.mouse.up(); - await h.until(async () => (await h.saved(page)).side === 'right', 'dragging to the right edge did not pin right'); - const right = await dock.boundingBox(); - h.near(right.x + right.width, 1440, 'right pin touches the right edge'); - h.near(right.height, 900, 'a pinned dock is full height'); - const reflowed = await h.mainRect(page); - assert.ok(reflowed.x + reflowed.width <= right.x + 1, `page content runs under the pinned dock: ${reflowed.x + reflowed.width} > ${right.x}`); - assert.ok(reflowed.width < free.width, 'the page did not give up any width'); - assert.ok(await page.evaluate(() => document.documentElement.scrollWidth <= window.innerWidth), 'pinning made the page scroll sideways'); - await shot('pinned-right'); - - await page.reload(); - await h.expand(page); - await h.until(async () => Math.abs((await dock.boundingBox()).x - right.x) <= 1, 'the right pin did not survive a reload'); - - await h.hideOf(page).click(); - await h.until(async () => Math.abs((await h.mainRect(page)).width - free.width) <= 1, 'hiding the conversation kept the page narrowed'); - await h.expand(page); - await h.until(async () => Math.abs((await dock.boundingBox()).x - right.x) <= 1, 'reopening did not restore the pin'); - - const strip = await h.grip(page); - await page.mouse.dblclick(strip.x, strip.y); - await h.until(async () => (await h.saved(page)).side === null, 'double-clicking the header did not unpin'); - assert.ok((await dock.boundingBox()).height < 900, 'an unpinned dock is a floating card again'); - h.near((await h.mainRect(page)).width, free.width, 'the page returns to its full width'); - - await h.dragTo(page, 10); - await page.mouse.up(); - await h.until(async () => (await h.saved(page)).side === 'left', 'dragging to the left edge did not pin left'); - const left = await dock.boundingBox(); - h.near(left.x, 0, 'left pin touches the left edge'); - assert.ok((await h.mainRect(page)).x >= left.x + left.width - 1, 'page content runs under the left-pinned dock'); - await shot('pinned-left'); - - await page.mouse.dblclick((await h.grip(page)).x, (await h.grip(page)).y); - await h.until(async () => (await h.saved(page)).side === null, 'double-clicking did not unpin the left pin'); -}; diff --git a/e2e/checks/chat-dock-resize.cjs b/e2e/checks/chat-dock-resize.cjs deleted file mode 100644 index 958e31a2d..000000000 --- a/e2e/checks/chat-dock-resize.cjs +++ /dev/null @@ -1,37 +0,0 @@ -// The pinned dock's divider is a keyboard separator: the arrow toward the -// page widens the dock, the arrow away narrows it, both stop at the allowed -// range, and the width is saved. -const assert = require('node:assert/strict'); -const h = require('./helpers/chat-dock.cjs'); - -const width = (page) => h.dockOf(page).boundingBox().then((b) => Math.round(b.width)); -const value = (page) => h.dividerOf(page).getAttribute('aria-valuenow').then(Number); - -module.exports = async ({ page, go }) => { - const divider = h.dividerOf(page); - for (const [side, grow, shrink] of [['right', 'ArrowLeft', 'ArrowRight'], ['left', 'ArrowRight', 'ArrowLeft']]) { - await h.load(page, go, JSON.stringify({ side, width: 420 })); - await h.expand(page); - await divider.focus(); - assert.equal(await value(page), 420); - assert.equal(await divider.getAttribute('aria-valuemin'), '320'); - - await page.keyboard.press(grow); - await h.until(async () => (await value(page)) === 436 && (await width(page)) === 436, `${side}: ${grow} did not widen by 16`); - await page.keyboard.press(shrink); - await page.keyboard.press(shrink); - await h.until(async () => (await value(page)) === 404 && (await width(page)) === 404, `${side}: ${shrink} did not narrow by 16`); - assert.equal((await h.saved(page)).width, 404, `${side}: the width was not saved`); - - await page.keyboard.press('ArrowUp'); - assert.equal(await value(page), 404, `${side}: a vertical arrow resized the dock`); - - for (let i = 0; i < 12; i++) await page.keyboard.press(shrink); - await h.until(async () => (await width(page)) === 320, `${side}: the dock narrowed past its minimum`); - assert.equal(await value(page), 320); - - for (let i = 0; i < 30; i++) await page.keyboard.press(grow); - await h.until(async () => (await width(page)) === 720, `${side}: the dock widened past its maximum`); - assert.equal(await value(page), 720); - } -}; diff --git a/e2e/checks/execution-identities.cjs b/e2e/checks/execution-identities.cjs deleted file mode 100644 index 3cd990823..000000000 --- a/e2e/checks/execution-identities.cjs +++ /dev/null @@ -1,49 +0,0 @@ -// Real local API records; workflow edits stay unsaved and the test agent retires. -const assert = require('node:assert/strict'); -module.exports = async ({ page, go, shot }) => { - const base = process.env.ARCHIE_E2E_URL || 'http://localhost:5173'; - const headers = { 'X-Archie-CSRF': '1', Origin: base }; - let agent; - const command = async (name, display_name = '') => { - const response = await page.request.post(`${base}/api/identities/${agent.id}/${name}`, { - headers, data: { expected_version: agent.version, display_name }, - }); - assert.equal(response.ok(), true, await response.text()); - agent = await response.json(); - }; - const openSettings = async () => { - await go('/workflows/implement'); - const runPicker = page.getByRole('combobox', { name: 'Run shown on the canvas' }); - if (await runPicker.count()) { await runPicker.click(); await page.getByRole('option', { name: 'Definition', exact: true }).click(); } - await page.locator('.vue-flow__node').filter({ hasText: 'Workflow' }).first().click(); - return page.getByRole('combobox', { name: 'Execution identity', exact: true }); - }; - try { - const created = await page.request.post(`${base}/api/identities`, { - headers, data: { display_name: `E2E execution agent ${Date.now()}`, kind: 'bot' }, - }); - assert.equal(created.ok(), true, await created.text()); - agent = await created.json(); - const trigger = await openSettings(); - await page.waitForFunction(() => !document.querySelector('[aria-label="Execution identity"]')?.hasAttribute('disabled')); - await trigger.click(); - await page.getByRole('option', { name: agent.display_name, exact: true }).click(); - assert.match(await trigger.innerText(), new RegExp(agent.display_name)); - await shot('named-execution-identity'); - await command('rename', agent.display_name + ' renamed'); - await page.reload(); - const renamed = await openSettings(); - await page.waitForFunction(() => !document.querySelector('[aria-label="Execution identity"]')?.hasAttribute('disabled')); - await renamed.click(); - await page.getByRole('option', { name: agent.display_name, exact: true }).waitFor(); - await page.keyboard.press('Escape'); - await command('suspend'); - await page.reload(); - const suspended = await openSettings(); - await page.waitForFunction(() => !document.querySelector('[aria-label="Execution identity"]')?.hasAttribute('disabled')); - await suspended.click(); - assert.equal(await page.getByRole('option', { name: agent.display_name, exact: true }).and(page.locator(':not([data-disabled])')).count(), 0); - } finally { - if (agent && agent.lifecycle !== 'retired') await command('retire'); - } -}; diff --git a/e2e/checks/helpers/audit-helpers.cjs b/e2e/checks/helpers/audit-helpers.cjs deleted file mode 100644 index 6d31c9ca3..000000000 --- a/e2e/checks/helpers/audit-helpers.cjs +++ /dev/null @@ -1,103 +0,0 @@ -// Shared setup for the audit-* checks: feed request tracking, URL waits, -// and the export download-or-popup accept. One behaviour per check module; -// this file holds only what several of them need. -const assert = require('node:assert/strict'); -const fs = require('node:fs'); - -const DEFAULT_WINDOW_MS = 30 * 24 * 60 * 60 * 1000; - -function isAudit(u) { - return u.pathname === '/api/audit'; -} - -// Installs request tracking on a fresh check page. Returns the helpers the -// audit checks share; a check destructures only what it uses. -function trackAudit(page) { - page.setDefaultTimeout(10000); - const auditRequests = []; - page.on('request', (request) => { - try { - const url = new URL(request.url()); - if (isAudit(url) || url.pathname === '/api/audit/export') auditRequests.push(url); - } catch { - // A non-URL request cannot be an audit call. - } - }); - let loads = 0; - page.on('load', () => (loads += 1)); - - const requestMatching = async (action, predicate, timeout = 6000) => { - const waiter = page - .waitForRequest( - (request) => { - try { - const url = new URL(request.url()); - return (isAudit(url) || url.pathname === '/api/audit/export') && predicate(url); - } catch { - return false; - } - }, - { timeout }, - ) - .catch(() => null); - await action(); - return waiter; - }; - - const waitForUrl = (predicate, timeout = 8000) => - page.waitForURL((url) => predicate(new URL(url)), { timeout }); - - const lastRequest = () => auditRequests[auditRequests.length - 1] || null; - const loadCount = () => loads; - - return { requestMatching, waitForUrl, lastRequest, loadCount }; -} - -// Export resolves its window at click time and opens a tab. A successful -// export arrives as an attachment download; a failed one stays visible in -// that tab, so the check accepts either and reads the response from it. -async function exportOnce(page, fail, label, extension) { - await page.getByRole('button', { name: 'Export', exact: true }).click(); - const item = page.getByRole('menuitem', { name: label, exact: true }); - await item.waitFor(); - const downloadP = page.waitForEvent('download', { timeout: 15000 }).then((download) => ({ download })).catch(() => null); - const popupP = page.waitForEvent('popup', { timeout: 15000 }).then((popup) => ({ popup })).catch(() => null); - await item.click(); - const settled = await Promise.race([downloadP, popupP]); - if (!settled) { - fail(`${label} export neither downloaded nor opened a tab`); - return null; - } - if (settled.popup) { - await settled.popup.waitForLoadState('load').catch(() => {}); - const url = new URL(settled.popup.url()); - assert.equal(url.pathname, '/api/audit/export', `${label} opened ${url.href}`); - assert.equal(url.searchParams.get('format'), extension); - assert.ok(url.searchParams.get('from'), `${label} export has no explicit start`); - assert.ok(url.searchParams.get('to'), `${label} export has no explicit end`); - const response = await page.request.get(url.href); - const body = await response.text(); - if (response.status() !== 200) { - fail(`${label} export failed (${response.status()}): ${body.slice(0, 200)}`); - return null; - } - if (!new RegExp(`attachment;.*\\.${extension}`).test(response.headers()['content-disposition'] || '')) { - fail(`${label} export opened a tab without an attachment filename`); - return null; - } - return body; - } - if (!new RegExp(`\\.${extension}$`).test(settled.download.suggestedFilename())) { - fail(`${label} export did not download a .${extension} file`); - return null; - } - const failure = await settled.download.failure(); - if (failure) { - fail(`${label} download failed: ${failure}`); - return null; - } - const saved = await settled.download.path(); - return saved ? fs.readFileSync(saved, 'utf8') : ''; -} - -module.exports = { DEFAULT_WINDOW_MS, isAudit, trackAudit, exportOnce }; diff --git a/e2e/checks/helpers/chat-dock.cjs b/e2e/checks/helpers/chat-dock.cjs deleted file mode 100644 index 8575d0b7b..000000000 --- a/e2e/checks/helpers/chat-dock.cjs +++ /dev/null @@ -1,63 +0,0 @@ -// Shared handles for the chat dock checks: the dock's own storage key, its -// landmarks, and the pointer gestures that pin it. -const assert = require('node:assert/strict'); - -const KEY = 'archie.chat.dock.v2'; - -const dockOf = (page) => page.getByRole('complementary', { name: 'Chat with Archie' }); -const composerOf = (page) => page.getByRole('combobox', { name: 'Message Archie', exact: true }); -const hideOf = (page) => page.getByRole('button', { name: 'Hide conversation' }); -const dividerOf = (page) => page.getByRole('separator', { name: 'Resize chat' }); - -const stored = (page) => page.evaluate((key) => localStorage.getItem(key), KEY); -const saved = async (page) => JSON.parse(await stored(page)); - -// Loads /events with the given stored layout (a string, or null for none). -async function load(page, go, layout = null) { - await go('/events'); - await page.evaluate(([key, value]) => (value === null ? localStorage.removeItem(key) : localStorage.setItem(key, value)), [KEY, layout]); - await go('/events'); -} - -// Focusing the composer is how the operator opens the conversation. -async function expand(page) { - await composerOf(page).focus(); - await hideOf(page).waitFor(); -} - -// Retries an assertion until it holds: the dock settles over a few frames. -async function until(check, message, timeout = 5000) { - const end = Date.now() + timeout; - let last; - for (;;) { - try { - const ok = await check(); - if (ok) return; - last = ok; - } catch (e) { - last = e; - } - if (Date.now() > end) throw new Error(`${message}${last instanceof Error ? `: ${last.message}` : ''}`); - await new Promise((r) => setTimeout(r, 50)); - } -} - -const near = (a, b, message, tolerance = 1) => assert.ok(Math.abs(a - b) <= tolerance, `${message}: ${a} is not within ${tolerance} of ${b}`); - -// The empty strip at the top of the header, where a drag starts. -async function grip(page) { - const box = await dockOf(page).boundingBox(); - return { x: box.x + box.width / 2, y: box.y + 8 }; -} - -async function dragTo(page, x, steps = 10) { - const from = await grip(page); - await page.mouse.move(from.x, from.y); - await page.mouse.down(); - await page.mouse.move(x, from.y, { steps }); - return from; -} - -const mainRect = (page) => page.locator('#main-content').boundingBox(); - -module.exports = { KEY, dockOf, composerOf, hideOf, dividerOf, stored, saved, load, expand, until, near, grip, dragTo, mainRect }; diff --git a/e2e/checks/helpers/org-helpers.cjs b/e2e/checks/helpers/org-helpers.cjs deleted file mode 100644 index 8096b29a9..000000000 --- a/e2e/checks/helpers/org-helpers.cjs +++ /dev/null @@ -1,18 +0,0 @@ -// Shared by the org-* and setup checks: acting in a seeded org and the 404s a -// fresh org's pages are built to survive. -const ORG = { home: 'org-sys', beta: 'org-beta', outsider: 'org-gamma' }; - -// A new org has written no documents, and the instance-only reads answer -// not found outside the system org. -const ABSENT = /status of 404.*\/api\/(control-plane|schedules|identities)/; - -// Selects an org the way the topbar does, over the page's own session. -async function selectOrg(page, id) { - const origin = new URL(page.url() === 'about:blank' ? 'http://localhost:5173' : page.url()).origin; - return page.request.put(`${origin}/api/orgs/current`, { - headers: { 'X-Archie-CSRF': '1', Origin: origin }, - data: { id }, - }); -} - -module.exports = { ORG, ABSENT, selectOrg }; diff --git a/e2e/checks/helpers/routes.cjs b/e2e/checks/helpers/routes.cjs deleted file mode 100644 index b5ff0d4dc..000000000 --- a/e2e/checks/helpers/routes.cjs +++ /dev/null @@ -1,19 +0,0 @@ -// The dashboard's static routes, read from the router source so a new page is -// swept automatically. Parameterised and redirect routes are skipped. -const fs = require('fs'); -const path = require('path'); - -function staticRoutes() { - const src = fs.readFileSync(path.join(__dirname, '../../../ui/src/router/index.ts'), 'utf8'); - const out = []; - for (const line of src.split('\n')) { - if (/redirect:/.test(line)) continue; - const m = line.match(/path: "([^"]*)"/); - if (!m || m[1].includes(':')) continue; - if (m[1].startsWith('/')) out.push(m[1]); - else if (m[1]) out.push('/org/' + m[1]); - } - return [...new Set(out)]; -} - -module.exports = { staticRoutes }; diff --git a/e2e/checks/linked-user-identities.cjs b/e2e/checks/linked-user-identities.cjs deleted file mode 100644 index 4c36e2006..000000000 --- a/e2e/checks/linked-user-identities.cjs +++ /dev/null @@ -1,103 +0,0 @@ -const assert = require('node:assert/strict'); - -const org = { id: 'example-org', name: 'Example', version: 1 }; -const user = { id: '11111111-1111-4111-8111-111111111111', name: 'Alex Rivera', kind: 'user' }; -const other = { id: '22222222-2222-4222-8222-222222222222', name: user.name, kind: 'user' }; -const bot = { id: '33333333-3333-4333-8333-333333333333', name: 'Nightly bot', kind: 'bot' }; -const missing = { id: '44444444-4444-4444-8444-444444444444' }; -const target = { id: '55555555-5555-4555-8555-555555555555', name: 'Riley Singh', kind: 'user' }; - -const member = (actor) => ({ - identity_id: actor.id, display_name: actor.name, kind: actor.kind, role: 'viewer', status: 'active', -}); - -// An audit actor link must resolve the exact user, not another member with the same name. -module.exports = async ({ page, go, shot }) => { - const at = new Date().toISOString(); - const records = [user, bot, missing].map((actor, i) => ({ - id: `audit-${i}`, at, category: 'runtime', kind: 'task', action: 'task.retry', severity: 'info', outcome: 'success', - actor, summary: `Task audit ${i}`, - target: i === 1 ? { kind: 'identity', id: target.id, label: target.name } : { kind: 'task', id: String(i + 1) }, - })); - await page.route('**/api/**', async (route) => { - const { pathname: path, searchParams } = new URL(route.request().url()); - const version = Number(searchParams.get('version')) || 2; - const fixtures = { - '/api/auth/status': { user: { id: 'operator', display_name: 'Operator' }, setup_required: false }, - '/api/capabilities': { sections: { settings: false } }, - '/api/orgs': { current: org.id, orgs: [org] }, - [`/api/orgs/${org.id}/members`]: { members: [member(user), { ...member(other), status: 'suspended' }, member(target)] }, - [`/api/orgs/${org.id}/member-candidates`]: { identities: [] }, - [`/api/orgs/${org.id}/history`]: { events: [{ id: 'history', kind: 'org', old_name: 'Previous', new_name: org.name, at, actor_id: user.id, actor_name: user.name }] }, - '/api/audit': { records }, - '/api/access/decisions': { decisions: [{ at, principal: user.id, outcome: 'allowed', action: 'read', kind: 'task', resource: '1', level: 'org', policies: [], count: 1 }] }, - '/api/alerts': { alerts: [] }, - '/api/proposals/example': { id: 'example', title: 'Example proposal', kind: 'policy', state: 'rejected', proposed_by_id: bot.id, answered_by_id: user.id, actions: [], created_at: at }, - '/api/runs/example': { - run: { id: 'example', workflow: 'Example run', state: 'succeeded', created_at: at, finished_at: at }, stages: [], - actions: [{ decision: { id: 'decision', level: 'ask', action: { connector: 'example', name: 'act' }, at, refused_by: 'policy-rule' }, approval: { state: 'approved', answered_by: user.name, answered_by_id: user.id, answered_via: 'web' } }], - }, - '/api/approvals': [], - '/api/policies/hard-rules': { version, body: '// example', created_at: at, created_by: user.id, versions: [{ version: 2 }, { version: 1 }] }, - '/api/policies/change-request': { version: 1, body: '', created_at: at, created_by: '00000000-0000-5000-8000-000000000001' }, - '/api/workflows': [{ id: 'workflow', name: 'Example workflow', version: 1, body: 'steps: []', created_by: user.id, created_at: at, enabled: true }], - '/api/workflow-drafts': [], - '/api/workflow-stats': [], - '/api/triggers': [], - }; - if (path === '/api/stream') return route.fulfill({ status: 200, contentType: 'text/event-stream', body: ': ready\n\n' }); - await route.fulfill({ json: fixtures[path] ?? {} }); - }); - await go('/org/audit'); - await page.getByText(user.name, { exact: true }).filter({ visible: true }).waitFor(); - const link = page.getByRole('link', { name: user.name, exact: true }); - assert.equal(await link.count(), 1, 'the visible audit user name should be a link'); - assert.equal(await page.getByRole('link', { name: bot.name, exact: true }).count(), 0); - assert.equal(await page.getByRole('link', { name: missing.id, exact: true }).count(), 0); - const targetLink = page.getByRole('link', { name: target.name, exact: true }); - const targetHref = await targetLink.getAttribute('href', { timeout: 1500 }).catch(() => null); - assert.equal(targetHref && new URL(targetHref, page.url()).searchParams.get('member'), target.id, 'an audit identity target should link to its user'); - await shot('audit-actor'); - await link.click(); - await page.waitForURL((url) => url.pathname === '/org/members' && url.searchParams.get('member') === user.id); - await page.getByRole('heading', { name: 'Members' }).waitFor(); - const row = page.getByRole('row').filter({ hasText: user.name }); - await row.first().waitFor(); - assert.equal(await row.count(), 1); - assert.match(await row.innerText(), /\bactive\b/); - await shot('target-member'); - await page.getByRole('link', { name: 'All members' }).click(); - await page.getByRole('button', { name: `Suspend ${user.name}` }).waitFor(); - assert.equal(await row.count(), 2); - await go(`/org/members?org=${org.id}&member=${missing.id}`); - await page.getByText('Member not found in this organisation', { exact: true }).waitFor(); - - const unresolved = []; - for (const [path, ready] of [ - ['/proposals/example', () => page.getByText('Rejected by', { exact: true }).waitFor()], - ['/runs/example', () => page.getByText('Refused by policy-rule', { exact: true }).waitFor()], - ['/controls', () => page.getByRole('textbox', { name: 'Hard rules', exact: true }).waitFor()], - ['/org', () => page.getByRole('heading', { name: 'Name changes' }).waitFor()], - ['/org/decisions', () => page.getByRole('cell', { name: 'Allowed' }).waitFor()], - ['/workflows', () => page.getByRole('link', { name: 'Example workflow', exact: true }).waitFor()], - ]) { - await go(path); - await ready(); - const credit = page.getByRole('link', { name: user.name, exact: true }); - const href = await credit.getAttribute('href', { timeout: 1500 }).catch(() => null); - if (!href || new URL(href, page.url()).searchParams.get('member') !== user.id) unresolved.push(path); - assert.equal(await page.getByRole('link', { name: bot.id, exact: true }).count(), 0); - assert.equal(await page.getByRole('link', { name: 'policy-rule', exact: true }).count(), 0); - if (path === '/controls') { - await page.getByText('System', { exact: true }).waitFor(); - assert.equal(await page.getByText('00000000-0000-5000-8000-000000000001', { exact: true }).count(), 0); - assert.equal(await page.getByRole('link', { name: 'System', exact: true }).count(), 0); - await page.getByRole('combobox', { name: 'Hard rules version' }).click(); - await page.getByRole('option', { name: 'Version 1' }).click(); - await page.getByRole('textbox', { name: 'Hard rules, version 1' }).waitFor(); - const oldHref = await credit.getAttribute('href', { timeout: 1500 }).catch(() => null); - if (!oldHref || new URL(oldHref, page.url()).searchParams.get('member') !== user.id) unresolved.push('/controls (previous version)'); - } - } - assert.deepEqual(unresolved, [], 'attribution should display the user name linked by ID'); -}; diff --git a/e2e/checks/loading-errors.cjs b/e2e/checks/loading-errors.cjs deleted file mode 100644 index f49a09940..000000000 --- a/e2e/checks/loading-errors.cjs +++ /dev/null @@ -1,36 +0,0 @@ -const assert=require('node:assert/strict'); -module.exports=async({page,go,shot,tolerate})=>{ - // The extension catalogue 502 is a stack-environment issue, not this check. - tolerate(/extensions\/catalogue/); - await page.route('**/api/access/policies',async route=>{await new Promise(r=>setTimeout(r,2200));await route.continue()}); - await go('/access/policies'); - assert.equal(await page.getByText('No policies yet.',{exact:true}).count(),0); - await page.getByText('Loading policies…',{exact:true}).waitFor({state:'hidden'}); - await page.route('**/api/tasks?**',async route=>{ - if(new URL(route.request().url()).searchParams.has('workflow')) await route.fulfill({status:200,contentType:'application/json',body:'unreadable response'}); - else await route.continue(); - }); - await go('/workflows/implement'); - await page.getByRole('alert').filter({hasText:'Could not load recent runs'}).waitFor(); - await page.getByRole('tab',{name:/^Runs/}).click(); - assert.equal(await page.getByText('No runs yet',{exact:true}).count(),0); - await page.unroute('**/api/tasks?**'); - await page.getByRole('button',{name:'Retry runs',exact:true}).click(); - await page.getByRole('alert').filter({hasText:'Could not load recent runs'}).waitFor({state:'hidden'}); - await shot('recovered'); - // A failed list read is an error, never the empty state (#1767): force each - // page's list API to 500 and check its empty-state copy stays hidden. - const failList = async (pattern,path,emptyTexts,errorSel='[role=alert]')=>{ - await page.route(pattern,route=>route.fulfill({status:200,contentType:'application/json',body:'unreadable response'})); - await go(path); - await page.locator(errorSel).first().waitFor(); - for(const text of emptyTexts) assert.equal(await page.getByText(text,{exact:true}).count(),0,`${path} shows its empty state ("${text}") while the list read fails`); - await page.unroute(pattern); - }; - await failList('**/api/tasks*','/tasks',['No tasks yet'],'text=Archie is not responding'); - await failList('**/api/captures*','/events',['No captures yet']); - await failList('**/api/event-types*','/events',['No event types yet']); - await failList('**/api/tokens*','/account',['No tokens yet']); - await failList('**/api/access/policies*','/org/policies',['No policies yet']); - await shot('failed-reads-show-errors'); -}; diff --git a/e2e/checks/org-model-saving.cjs b/e2e/checks/org-model-saving.cjs deleted file mode 100644 index e3854c2f6..000000000 --- a/e2e/checks/org-model-saving.cjs +++ /dev/null @@ -1,18 +0,0 @@ -// The save response is mocked; this checks the page's save path without changing models. -const assert=require('node:assert/strict'); -module.exports=async({page,go,shot})=>{ - let submitted; - await page.route('**/api/control-plane/resources/model-aliases/commands/replace',async route=>{ - submitted=route.request().postDataJSON(); - await route.fulfill({json:{resource:{kind:'model-aliases',version:submitted.expected_version+1,value:submitted.value}}}); - }); - await go('/access/models'); - await page.getByLabel('New alias',{exact:true}).fill('e2e-test'); - await page.getByRole('button',{name:'Add alias',exact:true}).click(); - await page.getByLabel('e2e-test',{exact:true}).fill('test/model'); - await page.getByRole('button',{name:'Review and save',exact:true}).click(); - await page.getByRole('button',{name:'Save',exact:true}).click(); - await page.getByRole('heading',{name:/^Review \d/}).waitFor({state:'hidden'}); - assert.equal(submitted?.value['e2e-test'],'test/model'); - await shot('saved'); -}; diff --git a/e2e/checks/org-pages.cjs b/e2e/checks/org-pages.cjs deleted file mode 100644 index 272a346db..000000000 --- a/e2e/checks/org-pages.cjs +++ /dev/null @@ -1,30 +0,0 @@ -// The organisation pages: each loads its form in the selected org, and the old -// settings audit route lands on the organisation's audit page. -const assert = require('node:assert/strict'); -const { trackAudit } = require('./helpers/audit-helpers.cjs'); - -const PAGES = [ - { path: '/org/channels', heading: 'Channels', text: 'Chat session defaults' }, - { path: '/org/scheduling-policy', heading: 'Scheduling policy', text: 'Retries and polling' }, - { path: '/org/alerts', heading: 'Alert webhook', text: 'Webhook severity' }, -]; - -module.exports = async ({ page, go, shot }) => { - for (const { path, heading, text } of PAGES) { - await go(path); - await page.getByRole('heading', { name: heading, exact: true }).waitFor(); - await page.getByText(text, { exact: true }).first().waitFor(); - assert.equal(new URL(page.url()).pathname, path); - await shot(path); - } - - trackAudit(page); - await go('/org/audit'); - await page.getByRole('heading', { name: 'Audit', exact: true }).first().waitFor(); - await page.locator('[data-row-key]').first().waitFor(); - await shot('/org/audit'); - await go('/settings/audit?since=7d'); - assert.equal(new URL(page.url()).pathname, '/org/audit', '/settings/audit did not redirect'); - assert.equal(new URL(page.url()).searchParams.get('since'), '7d', 'redirect dropped the query'); - await page.locator('[data-row-key]').first().waitFor(); -}; diff --git a/e2e/checks/org-schedule-trigger.cjs b/e2e/checks/org-schedule-trigger.cjs deleted file mode 100644 index 42f28eadb..000000000 --- a/e2e/checks/org-schedule-trigger.cjs +++ /dev/null @@ -1,31 +0,0 @@ -// A non-system org can arm a schedule trigger: the schedule source's built-in -// mapping is readable there, so a binding on it is accepted. The editor's own -// schedule list is instance-only, so the binding is written over the API. -const assert = require('node:assert/strict'); -const { ORG, ABSENT, selectOrg } = require('./helpers/org-helpers.cjs'); - -module.exports = async ({ page, go, shot, tolerate }) => { - tolerate(ABSENT); - await go('/'); - assert.equal((await selectOrg(page, ORG.beta)).status(), 204); - await go('/workflows/feasibility'); - const origin = new URL(page.url()).origin; - const headers = { 'X-Archie-CSRF': '1', Origin: origin }; - const created = await page.request.post(`${origin}/api/bindings`, { - headers, - data: { - name: 'e2e schedule trigger', matcher: { source: 'schedule' }, mapping_id: 'schedule-fired', - filter: 'schedule_id == "issue-discovery"', workflow: 'feasibility', repo_param: '', owner: '', repo: '', inputs: {}, - }, - }); - try { - assert.equal(created.status(), 201, `binding on the built-in schedule mapping refused: ${await created.text()}`); - const binding = await created.json(); - assert.equal(binding.org_id, ORG.beta); - await go('/workflows/feasibility'); - await page.getByText('Starts when').first().waitFor(); - await shot('beta-trigger'); - } finally { - if (created.ok()) await page.request.delete(`${origin}/api/bindings/${(await created.json()).id}`, { headers }); - } -}; diff --git a/e2e/checks/org-selector.cjs b/e2e/checks/org-selector.cjs deleted file mode 100644 index 30d064f5c..000000000 --- a/e2e/checks/org-selector.cjs +++ /dev/null @@ -1,44 +0,0 @@ -// The sidebar org switcher: choosing a member org reloads the dashboard into it, -// Tasks and Workflows then show only that org's work, and the API refuses an -// org the caller is not a member of. -const assert = require('node:assert/strict'); -const { ORG, ABSENT, selectOrg } = require('./helpers/org-helpers.cjs'); - -module.exports = async ({ page, go, shot, settled, tolerate }) => { - tolerate(ABSENT); - await go('/tasks'); - await page.getByText('Fix flaky login test').first().waitFor(); - const picker = page.getByRole('button', { name: /^Organisation: / }); - await picker.waitFor(); - const offered = await (async () => { - await picker.click(); - await page.getByRole('menuitem').first().waitFor(); - const names = (await page.getByRole('menuitem').allInnerTexts()).map(t => t.trim().split('\n').pop().trim()); - await page.keyboard.press('Escape'); - return names; - })(); - assert.deepEqual(offered.sort(), ['Beta', 'System'], 'selector must offer exactly the orgs the caller belongs to'); - await go('/workflows'); - await page.getByText('Parked', { exact: true }).first().waitFor(); - await shot('home-org-workflows'); - - await picker.click(); - await Promise.all([page.waitForEvent('load'), page.getByRole('menuitem', { name: 'Beta' }).click()]); - await settled('/workflows'); - await page.getByRole('button', { name: /^Organisation: / }).waitFor(); - assert.equal(await page.getByText('Parked', { exact: true }).count(), 0, 'workflow run counts leaked across orgs'); - await shot('beta-workflows'); - await go('/tasks'); - await page.getByText('No tasks yet').waitFor(); - assert.equal(await page.getByText('Fix flaky login test').count(), 0, 'tasks leaked across orgs'); - await shot('beta-tasks'); - - // The selector never writes an org the caller is outside of; the server decides. - const refused = await selectOrg(page, ORG.outsider); - assert.equal(refused.status(), 403, 'selecting a non-member org must be forbidden'); - await go('/tasks'); - await page.getByText('No tasks yet').waitFor(); - assert.equal((await selectOrg(page, ORG.home)).status(), 204); - await go('/tasks'); - await page.getByText('Fix flaky login test').first().waitFor(); -}; diff --git a/e2e/checks/phone-overflow.cjs b/e2e/checks/phone-overflow.cjs deleted file mode 100644 index 352610527..000000000 --- a/e2e/checks/phone-overflow.cjs +++ /dev/null @@ -1,69 +0,0 @@ -// Phone-width sweep of the views the November audit flagged (#1757): at -// 390x844 each must fit without horizontal scroll or clipped controls. The -// topbar (with its instance badge) is on every page; /account holds the -// token form, /org/agents the agent rows and the grants card, /events the -// sources table, the event-type rule editor and the mapping editor dialog. -const assert = require('node:assert/strict'); -const { staticRoutes } = require('./helpers/routes.cjs'); - -module.exports = async ({ page, go, shot, fail, settled, tolerate }) => { - // The extension catalogue 502 is a stack-environment issue, not this check. - tolerate(/extensions\/catalogue/); - await page.setViewportSize({ width: 390, height: 844 }); - - const assertNoOverflow = async (label) => { - const { scrollWidth, innerWidth } = await page.evaluate(() => ({ - scrollWidth: document.documentElement.scrollWidth, - innerWidth: window.innerWidth, - })); - if (scrollWidth > innerWidth) { - fail(`${label} overflows 390px: scrollWidth=${scrollWidth} > innerWidth=${innerWidth}`); - } - }; - - const visit = async (path, label, waitFor) => { - await go(path); - if (waitFor) await settled(waitFor); - await assertNoOverflow(label); - await shot(label); - }; - - await visit('/account', 'account-tokens', 'text=API tokens'); - await visit('/org/agents', 'org-agents', 'text=Credential grants'); - - await go('/events'); - await settled('[role=tab]'); - await assertNoOverflow('events'); - await shot('events'); - - // The seeded event type's rule editor (RuleEditor's condition row) opens - // from the Edit button on its row. - const editType = page.locator('button[aria-label^="Edit "]').first(); - if (await editType.count()) { - await editType.click(); - await page.getByRole('dialog').first().waitFor(); - await settled(); - await assertNoOverflow('event-type rule editor'); - await shot('rule-editor'); - await page.keyboard.press('Escape'); - await settled(); - } - - // The mappings tab's editor dialog carries the payload tree. - await page.getByRole('tab', { name: 'Map' }).click(); - await settled('text=New mapping'); - await assertNoOverflow('mappings list'); - const editMapping = page.locator('button', { hasText: 'Edit' }).first(); - if (await editMapping.count()) { - await editMapping.click(); - await page.getByRole('dialog').first().waitFor(); - await settled(); - await assertNoOverflow('mapping editor dialog'); - await shot('mapping-editor'); - } - - // Every static route fits 390px (#1767): horizontal scroll fails. - for (const r of staticRoutes()) { - await visit(r, `route ${r}`, null); - } -}; diff --git a/e2e/checks/policy-editor-modal.cjs b/e2e/checks/policy-editor-modal.cjs deleted file mode 100644 index 29e9b12ca..000000000 --- a/e2e/checks/policy-editor-modal.cjs +++ /dev/null @@ -1,80 +0,0 @@ -const assert = require('node:assert/strict'); - -module.exports = async ({ page, go, fail, shot }) => { - const opener = page.getByRole('button', { name: 'New policy', exact: true }); - const editor = page.getByRole('dialog', { name: /New policy|draft-policy/ }); - const confirm = page.getByRole('alertdialog', { name: 'Discard unsaved changes?' }); - const id = editor.getByRole('textbox', { name: 'Policy id' }); - const cedar = editor.getByRole('textbox', { name: 'Cedar policy' }); - const dismissals = { - Close: () => editor.getByRole('button', { name: 'Close', exact: true }).click({ timeout: 2000 }), - Cancel: () => editor.getByRole('button', { name: 'Cancel', exact: true }).click({ timeout: 2000 }), - Escape: () => page.keyboard.press('Escape'), - Backdrop: () => page.mouse.click(8, 8), - }; - const focused = (field) => field.evaluate(el => el === document.activeElement); - const closed = async () => { - await page.locator('[role="alertdialog"]').waitFor({ state: 'detached', timeout: 2000 }); - await page.locator('[role="dialog"]').waitFor({ state: 'detached', timeout: 2000 }); - assert.ok(await focused(opener), 'focus did not return to New policy'); - }; - const cases = async (scenario, rows, run) => { - for (const row of rows) { - // A failed modal must not block the next independently tested path. - await go('/org/policies'); - try { await run(row); } catch (error) { fail(`${scenario} ${row}: ${error.message}`); } - } - }; - - await cases('Mobile', ['focus clearance'], async () => { - await page.setViewportSize({ width: 390, height: 600 }); - await opener.click(); - for (const field of [id, cedar]) { - // Opening focuses the ID; Tab past the level selector to reach Cedar. - if (field === cedar) { - await page.keyboard.press('Tab'); - await page.keyboard.press('Tab'); - } - assert.ok(await focused(field), 'keyboard focus did not reach the policy field'); - const { name, clearance, ring } = await field.evaluate(el => { - const form = el.closest('form'); - const bounds = form.getBoundingClientRect(); - const field = el.getBoundingClientRect(); - const css = getComputedStyle(el); - return { - name: el.getAttribute('aria-label'), - clearance: Math.min(field.left - bounds.left, field.top - bounds.top, - bounds.left + form.clientWidth - field.right, bounds.top + form.clientHeight - field.bottom), - ring: Math.max(3, parseFloat(css.outlineWidth) + parseFloat(css.outlineOffset)), - }; - }); - if (clearance + 0.1 < ring) fail(`${name} focus ring: ${clearance}px clearance for ${ring}px ring`); - await shot(name); - } - }); - await page.setViewportSize({ width: 1440, height: 900 }); - - await cases('Clean', Object.keys(dismissals), async (action) => { - await opener.click(); - await dismissals[action](); - await closed(); - }); - - await cases('Dirty', Object.keys(dismissals), async (action) => { - await opener.click(); - await id.pressSequentially('draft-policy'); - await dismissals[action](); - const keep = confirm.getByRole('button', { name: 'Keep editing' }); - await keep.waitFor({ timeout: 2000 }); - if (action === 'Escape') await page.keyboard.press('Escape'); - else await keep.click({ timeout: 2000 }); - await page.locator('[role="alertdialog"]').waitFor({ state: 'detached', timeout: 2000 }); - assert.equal(await id.inputValue(), 'draft-policy'); - assert.ok(await editor.evaluate(el => el.contains(document.activeElement)), 'focus did not return to the editor'); - await dismissals[action](); - await confirm.getByRole('button', { name: 'Discard changes' }).click({ timeout: 2000 }); - await closed(); - await opener.click(); - assert.equal(await id.inputValue(), '', 'discarded policy reappeared on reopen'); - }); -}; diff --git a/e2e/checks/proposals-refresh.cjs b/e2e/checks/proposals-refresh.cjs deleted file mode 100644 index 9b53e0827..000000000 --- a/e2e/checks/proposals-refresh.cjs +++ /dev/null @@ -1,112 +0,0 @@ -const assert = require('node:assert/strict'); - -const waiting = { - id: '00000000-0000-4000-8000-000000000001', - title: 'Correct the workflow', - kind: 'workflow_change', - state: 'pending', - needs: 'owner', - actions: [], - created_at: '2026-01-01T00:00:00Z', -}; - -// Keep the last successful result and protect its tab from competing reads. -module.exports = async ({ page, go, shot, tolerate }) => { - const now = new Date(); - await page.clock.install({ time: now }); - await page.clock.pauseAt(new Date(now.getTime() + 60_000)); - tolerate(/503.*\/api\/proposals/); - - const pendingURL = '**/api/proposals?state=pending'; - let current = waiting; - let failNext; - await page.route(pendingURL, async route => { - if (failNext) { - const failing = failNext; - failNext = undefined; - await failing; - await route.fulfill({ status: 503, contentType: 'application/problem+json', json: { detail: 'Could not refresh proposals' } }); - return; - } - await route.fulfill({ json: [current] }); - }); - - await go('/proposals'); - const proposal = page.getByRole('link', { name: waiting.title, exact: true }); - const sort = page.getByRole('columnheader', { name: 'Proposal', exact: true }); - await proposal.waitFor(); - await sort.getByRole('button').press('Enter'); - await proposal.focus(); - - const failure = Promise.withResolvers(); - failNext = failure.promise; - const refresh = page.waitForRequest(pendingURL); - await page.clock.runFor(5000); - await refresh; - assert.equal(await proposal.isVisible(), true, 'the row should stay visible during a refresh'); - failure.resolve(); - - const error = page.getByRole('alert').filter({ hasText: 'Could not refresh proposals' }); - await error.waitFor(); - assert.equal(await proposal.isVisible(), true, 'a failed refresh must not replace the table'); - assert.equal(await sort.getAttribute('aria-sort'), 'ascending', 'the table should keep the operator’s sort'); - assert.equal(await proposal.evaluate(link => link === document.activeElement), true, 'the row should keep keyboard focus'); - await shot('failed-refresh-retains-table'); - - current = { ...waiting, title: 'Workflow correction updated' }; - await error.getByRole('button', { name: 'Retry' }).click(); - await page.getByRole('link', { name: current.title, exact: true }).waitFor(); - await error.waitFor({ state: 'hidden' }); - assert.equal(await sort.getAttribute('aria-sort'), 'ascending'); - - // A failed read belongs to its filter, not to the newly selected tab. - failNext = Promise.resolve(); - await page.clock.runFor(5000); - await error.waitFor(); - const published = Promise.withResolvers(); - await page.route('**/api/proposals?state=published', async route => { - await published.promise; - await route.fulfill({ json: [] }); - }); - const publishedTab = page.getByRole('tab', { name: 'Published' }); - await publishedTab.click(); - const loading = page.getByRole('status', { name: 'Loading proposals' }); - assert.equal(await loading.isVisible(), true, 'a new tab must not inherit the previous tab’s error'); - assert.equal(await error.isVisible(), false); - assert.equal(await page.getByRole('table').count(), 0, 'rows from the previous tab must not appear'); - published.resolve(); - const empty = page.getByText('No proposals', { exact: true }); - await empty.waitFor(); - - // A slow read must still take effect after a background poll ticks. - const slow = Promise.withResolvers(); - const stale = Promise.withResolvers(); - let first = true; - await page.route(pendingURL, async route => { - const read = first ? slow : stale; - first = false; - await read.promise; - await route.fulfill({ json: [waiting] }); - }); - const switched = page.waitForRequest(pendingURL); - await page.getByRole('tab', { name: 'Waiting' }).click(); - await switched; - await page.clock.runFor(5000); - slow.resolve(); - await proposal.waitFor({ timeout: 3000 }).catch(() => { - assert.fail('a slow read must render its result even after a background poll ticks'); - }); - - // A late response for Waiting cannot replace the Published result. - const nextPoll = page.waitForRequest(pendingURL); - await page.clock.runFor(5000); - await nextPoll; - await publishedTab.click(); - await empty.waitFor(); - const response = page.waitForResponse(pendingURL); - stale.resolve(); - await (await response).finished(); - await page.clock.runFor(50); - assert.equal(await proposal.isVisible(), false, 'a response for the previous tab must not replace the current one'); - assert.equal(await empty.isVisible(), true); -}; diff --git a/e2e/checks/readiness-badges.cjs b/e2e/checks/readiness-badges.cjs deleted file mode 100644 index b6cd77057..000000000 --- a/e2e/checks/readiness-badges.cjs +++ /dev/null @@ -1,13 +0,0 @@ -// Repositories and connections say what stops them serving work: the seeded -// repository has no connection, and the seeded connection's forge is not enabled. -module.exports = async ({ page, go, shot }) => { - await go('/org/repositories'); - await page.getByText('acme/widgets', { exact: true }).first().waitFor(); - await page.getByText('No connection', { exact: true }).waitFor(); - await shot('repositories'); - - await go('/org/connections'); - await page.getByText('github.com', { exact: true }).first().waitFor(); - await page.getByText('Forge not enabled', { exact: true }).waitFor(); - await shot('connections'); -}; diff --git a/e2e/checks/routes.cjs b/e2e/checks/routes.cjs deleted file mode 100644 index 6b7cbd7f2..000000000 --- a/e2e/checks/routes.cjs +++ /dev/null @@ -1,22 +0,0 @@ -// Every static route loads without errors, renders, and shows no text with -// stray leading, trailing or doubled spaces. -const { staticRoutes } = require('./helpers/routes.cjs'); - -module.exports = async ({ page, go, shot, fail }) => { - const stray = new Map(); - for (const r of staticRoutes()) { - await go(r); - await shot(r); - // Log lines are data, not copy. - if (r === '/logs') continue; - const bad = await page.evaluate(() => [...document.querySelectorAll('body *')] - .filter((el) => !el.children.length && !el.closest('pre,code,textarea,.xterm') && el.getClientRects().length && !getComputedStyle(el).whiteSpace.startsWith('pre')) - .map((el) => el.textContent) - .filter((t) => t.trim() && (t !== t.trim() || / /.test(t.trim())))); - for (const t of bad) { - const key = JSON.stringify(t.length > 60 ? t.slice(0, 60) + '…' : t); - stray.set(key, (stray.get(key) || new Set()).add(r)); - } - } - for (const [text, where] of stray) fail(`stray whitespace ${text} on ${[...where].join(', ')}`); -}; diff --git a/e2e/checks/seeded.cjs b/e2e/checks/seeded.cjs deleted file mode 100644 index ba4a702b1..000000000 --- a/e2e/checks/seeded.cjs +++ /dev/null @@ -1,9 +0,0 @@ -// The seed (e2e/seed.sh) is visible where an operator would look for it. -module.exports = async ({ page, go, shot }) => { - await go('/tasks'); - await page.getByText('Fix flaky login test').first().waitFor({ timeout: 10000 }); - await shot('tasks'); - await go('/events'); - await page.getByText('e2e-hook').first().waitFor({ timeout: 10000 }); - await shot('events'); -}; diff --git a/e2e/checks/settings-editing.cjs b/e2e/checks/settings-editing.cjs deleted file mode 100644 index f2d16a886..000000000 --- a/e2e/checks/settings-editing.cjs +++ /dev/null @@ -1,32 +0,0 @@ -// Draft edits only: no saved configuration is changed. -const assert = require('node:assert/strict'); -module.exports = async ({ page, go, shot }) => { - await go('/settings/channels'); - const workspace = page.getByLabel('Workspace', { exact: true }); - assert.equal(await page.getByRole('region', { name: 'Unsaved changes' }).count(), 0, 'unsaved bar before any edit'); - await workspace.fill('/srv/e2e-workspace'); - await page.getByRole('link', { name: 'Models', exact: true }).click(); - await page.getByRole('heading', { name: 'Models' }).waitFor(); - await page.getByRole('link', { name: 'Channels', exact: true }).click(); - assert.equal(await page.getByLabel('Workspace', { exact: true }).inputValue(), '/srv/e2e-workspace', 'edit lost on navigation'); - const form = await page.getByText('Chat session defaults', { exact: true }).evaluate(el => el.closest('[data-slot="card"]').getBoundingClientRect().width); - assert.ok(form <= 850, `settings form stretched to ${form}px`); - const review = page.getByRole('button', { name: 'Review and save', exact: true }); - await review.scrollIntoViewIfNeeded(); - const unobscured = await review.evaluate(el => { const r=el.getBoundingClientRect(); const hit=document.elementFromPoint(r.x+r.width/2,r.y+r.height/2); return hit && el.contains(hit); }); - assert.ok(unobscured, 'Review and save is covered'); - await review.click(); - await page.getByRole('heading', { name: /^Review \d/ }).waitFor(); - await page.getByText('/srv/e2e-workspace', { exact: false }).last().waitFor(); - await shot('review'); - await page.getByRole('button', { name: 'Discard all', exact: true }).click(); - assert.equal(await page.getByRole('region', { name: 'Unsaved changes' }).count(), 0); - assert.equal(await page.getByLabel('Workspace', { exact: true }).inputValue(), '', 'discard kept the edit'); - await page.setViewportSize({width:390,height:844}); - await page.getByLabel('Workspace', { exact: true }).fill('/srv/e2e-workspace'); - const mobileReview=page.getByRole('button',{name:'Review and save',exact:true}); - await mobileReview.scrollIntoViewIfNeeded(); - assert.ok(await mobileReview.evaluate(el=>{const r=el.getBoundingClientRect();return el.contains(document.elementFromPoint(r.x+r.width/2,r.y+r.height/2))}), 'mobile save action covered'); - await shot('mobile'); - await page.getByRole('button',{name:'Discard',exact:true}).click(); -}; diff --git a/e2e/checks/setup-checklist.cjs b/e2e/checks/setup-checklist.cjs deleted file mode 100644 index 9e1a6373e..000000000 --- a/e2e/checks/setup-checklist.cjs +++ /dev/null @@ -1,21 +0,0 @@ -// The setup checklist reads the selected org: an org with no model to run gets a -// Model step that leads to the page that fixes it. -const assert = require('node:assert/strict'); -const { ORG, ABSENT, selectOrg } = require('./helpers/org-helpers.cjs'); - -module.exports = async ({ page, go, shot, settled, tolerate }) => { - tolerate(ABSENT); - await go('/'); - await page.getByPlaceholder('Describe a task').waitFor(); - assert.equal(await page.getByRole('link', { name: 'Model', exact: true }).count(), 0, 'an org with a model got a Model step'); - assert.equal((await selectOrg(page, ORG.beta)).status(), 204); - await go('/'); - await page.getByText('Setup', { exact: true }).waitFor(); - const model = page.getByRole('link', { name: 'Model', exact: true }); - await model.waitFor(); - assert.equal(await model.getAttribute('href'), '/org/models'); - await shot('beta-dashboard'); - await model.click(); - await settled('/org/models'); - await shot('model-page'); -}; diff --git a/e2e/checks/task-diagnostics.cjs b/e2e/checks/task-diagnostics.cjs deleted file mode 100644 index 7587ddcab..000000000 --- a/e2e/checks/task-diagnostics.cjs +++ /dev/null @@ -1,21 +0,0 @@ -const assert=require('node:assert/strict'); -module.exports=async({page,go,shot})=>{ - await go('/tasks'); - const base=new URL(page.url()).origin; - const tasks=await (await page.request.get(base+'/api/tasks')).json(); - const task=tasks.find(t=>t.status==='parked' && t.attempt>0); - assert.ok(task,'seeded stack has no parked attempt to inspect'); - const state=await (await page.request.get(`${base}/api/tasks/${task.id}/attempts`)).json(); - assert.ok(state.attempts.some(a=>a.attempt===state.current_attempt),'claimed current attempt missing'); - await go(`/tasks/${task.id}`); - assert.equal(await page.getByText(`Attempt ${state.current_attempt} is not recorded`,{exact:true}).count(),0); - const logs=await (await page.request.get(`${base}/api/tasks/${task.id}/logs?attempt=${state.current_attempt}&level=ERROR&limit=1`)).json(); - await page.getByRole('button',{name:'Jump to log line',exact:true}).click(); - if(logs.entries?.[0]?.id){ - await page.locator(`[data-row-key="${logs.entries[0].id}"]`).waitFor(); - await page.waitForFunction(id=>document.activeElement?.getAttribute('data-row-key')===String(id),logs.entries[0].id); - }else{ - await page.getByText('No error log line was recorded for this attempt.',{exact:true}).waitFor(); - } - await shot('attempt'); -}; diff --git a/e2e/checks/task-recovery.cjs b/e2e/checks/task-recovery.cjs deleted file mode 100644 index ce76846ff..000000000 --- a/e2e/checks/task-recovery.cjs +++ /dev/null @@ -1,29 +0,0 @@ -// A parked task whose blocker has a fix links to the page that supplies it, from -// Needs attention on the dashboard and from the Stage Rail on the task page. -// The seed's work requests park for want of a repository connection. -const assert = require('node:assert/strict'); - -module.exports = async ({ page, go, shot, settled, skip }) => { - await go('/'); - const tasks = await page.evaluate(async () => (await fetch('/api/tasks?limit=100')).json()); - if (!tasks.some((task) => task.status === 'parked')) skip('no parked task'); - const parked = tasks.find((task) => task.status === 'parked' && task.recovery); - assert.ok(parked, 'no parked task in the list carries a recovery link'); - const { label, link } = parked.recovery; - - const row = page.getByRole('link', { name: parked.title, exact: true }).locator('xpath=ancestor::*[.//a[normalize-space()="' + label + '"]][1]'); - const fromDashboard = row.getByRole('link', { name: label, exact: true }); - await fromDashboard.waitFor(); - assert.equal(await fromDashboard.getAttribute('href'), link); - await shot('needs-attention'); - await fromDashboard.click(); - await settled(link); - - await go(`/tasks/${parked.id}`); - const fromRail = page.getByRole('complementary', { name: 'Task details' }).getByRole('link', { name: label, exact: true }); - await fromRail.waitFor(); - assert.equal(await fromRail.getAttribute('href'), link); - await shot('stage-rail'); - await fromRail.click(); - await settled(link); -}; diff --git a/e2e/checks/workflow-loading.cjs b/e2e/checks/workflow-loading.cjs deleted file mode 100644 index 122bf9acc..000000000 --- a/e2e/checks/workflow-loading.cjs +++ /dev/null @@ -1,14 +0,0 @@ -const assert = require('node:assert/strict'); -module.exports = async ({ page, go, shot }) => { - await page.route('**/api/control-plane/resources/workflow-definitions', async route => { - await new Promise(resolve => setTimeout(resolve, 2200)); - await route.continue(); - }); - await go('/workflows'); - assert.equal(await page.getByText('No workflows', { exact: true }).count(), 0, 'loading presented as empty'); - await page.getByText('Loading workflows…', { exact: true }).waitFor({ state: 'hidden' }); - await page.getByRole('link', { name: /^implement/ }).click(); - assert.equal(await page.getByText(/workflow implement has no steps/).count(), 0, 'late definition left an empty canvas'); - await page.locator('.vue-flow__node').filter({ hasText: 'Repository' }).first().waitFor(); - await shot('loaded'); -}; diff --git a/e2e/checks/workflow-logic.cjs b/e2e/checks/workflow-logic.cjs deleted file mode 100644 index ccc881076..000000000 --- a/e2e/checks/workflow-logic.cjs +++ /dev/null @@ -1,121 +0,0 @@ -// Workflow definition behaviour at desktop width: legacy title IDs migrate -// to slugs, invalid expressions flag the node and toolbar alike, a pinned -// historical run keeps its original step IDs inspectable, and handoff -// targets round-trip between the step form and YAML. -const assert = require('node:assert/strict'); - -module.exports = async ({ page, go, shot, settled }) => { - await page.route('**/api/control-plane/resources/workflow-drafts', async route => { - const response = await route.fetch(); - const data = await response.json(); - data.resource.value = { drafts: [] }; - await route.fulfill({ json: data }); - }); - const panTo = async node => { - const flow = page.locator('.vue-flow'); - await flow.hover(); - for (let adjustment = 0; adjustment < 3; adjustment++) { - const target = await node.boundingBox(), viewport = await flow.boundingBox(); - const delta = target.y + target.height / 2 - viewport.y - viewport.height / 2; - if (Math.abs(delta) < 30) break; - await page.mouse.wheel(0, delta * 2); - await settled(); - } - }; - // Reproduce a previously stored title ID without changing the test server. - await go('/workflows'); - const response = await page.request.get(new URL('/api/control-plane/resources/workflow-definitions', page.url()).href); - const resource = await response.json(); - const definition = resource.resource.value.definitions.find(entry => entry.id === 'feasibility'); - definition.yaml = definition.yaml.replace(/\bid: assess\b/, 'id: Write a Product Requirement Document').replaceAll('steps.assess.', 'steps.Write a Product Requirement Document.'); - await page.route('**/api/control-plane/resources/workflow-definitions', route => route.fulfill({ json: resource })); - await go('/workflows/feasibility'); - await page.getByRole('tab', { name: 'History', exact: true }).click(); - const yaml = await page.getByLabel('Workflow YAML', { exact: true }).inputValue(); - assert.ok(yaml.includes('id: write-a-product-requirement-document')); - assert.ok(yaml.includes('steps.write-a-product-requirement-document.result')); - assert.ok(!yaml.includes('steps.Write a Product Requirement Document')); - await page.getByRole('tab', { name: 'Canvas', exact: true }).first().click(); - const definitionPicker = page.getByRole('combobox', { name: 'Run shown on the canvas' }); - if (await definitionPicker.count()) { await definitionPicker.click(); await page.getByRole('option', { name: 'Definition', exact: true }).click(); } - const approval = page.locator('.vue-flow__node').filter({ hasText: 'Approval' }).first(); - await panTo(approval); - await approval.click(); - const chip = approval.getByRole('button', { name: 'write-a-product-requirement-document', exact: true }); - await chip.waitFor(); - await chip.click(); - assert.match(await approval.getByLabel('Plan', { exact: true }).inputValue(), /steps\.write-a-product-requirement-document\.summary/); - await shot('legacy-reference'); - await page.keyboard.press('Escape'); - await page.getByRole('tab', { name: 'History', exact: true }).click(); - const field = page.getByLabel('Workflow YAML', { exact: true }); - await field.fill((await field.inputValue()).replace('type: repo.prepare', 'type: repo.prepare\n when: not-a-valid-expression')); - await page.getByRole('tab', { name: 'Canvas', exact: true }).first().click(); - const problem = page.locator('.vue-flow__node').filter({ hasText: 'Prepare worktree' }).first().locator('svg.text-danger'); - await problem.waitFor(); - const toolbarProblem = page.getByRole('status').filter({ has: page.locator('svg') }); - assert.equal(await problem.evaluate(el => getComputedStyle(el).color), await toolbarProblem.evaluate(el => getComputedStyle(el).color)); - const invalidPage = await page.evaluate(() => ({ - scrollWidth: document.documentElement.scrollWidth, width: innerWidth, - })); - assert.equal(invalidPage.scrollWidth, invalidPage.width, 'invalid toolbar overflows'); - await shot('validation'); - // A pinned historical run keeps its original step IDs and remains inspectable. - const snapshot = definition.yaml; - await page.route('**/api/tasks?*', route => { - const workflow = new URL(route.request().url()).searchParams.get('workflow'); - return workflow === 'feasibility' - ? route.fulfill({ json: [{ id: 999999, workflow, title: 'Historical run', status: 'failed', workflow_definition_yaml: snapshot }] }) - : route.continue(); - }); - await page.route('**/api/tasks/999999/*?*', route => route.fulfill({ json: {} })); - await page.route('**/api/tasks/999999/debug', route => route.fulfill({ json: {} })); - await page.route('**/api/tasks/999999/attempts', route => route.fulfill({ json: { attempts: [{ attempt: 1, stages: [{ name: 'Write a Product Requirement Document', status: 'failed', error: 'Historical failure' }] }] } })); - await go('/workflows/feasibility'); - const picker = page.getByRole('combobox', { name: 'Run shown on the canvas' }); - await picker.waitFor(); - assert.match(await picker.innerText(), /Run #999999/); - const root = await page.locator('.vue-flow__node[data-id="workflow"]').boundingBox(); - const pinnedCanvas = await page.locator('.workflow-canvas').boundingBox(); - assert.ok(root.y >= pinnedCanvas.y, 'historical workflow header clipped above canvas'); - await shot('run-picker'); - await page.locator('.vue-flow').hover(); - await page.mouse.wheel(0, 550); - await settled(); - const historicalStep = page.locator('.vue-flow__node').filter({ hasText: 'Write a Product Requirement Document' }).first(); - await panTo(historicalStep); - await historicalStep.click(); - await page.getByText('Historical failure', { exact: true }).first().waitFor(); - await shot('historical-run'); - await page.keyboard.press('Escape'); - await picker.click(); - await page.getByRole('option', { name: 'Definition', exact: true }).click(); - assert.equal(await picker.innerText(), 'Definition'); - await shot('definition-picker'); - await go('/workflows/triage'); - const runPicker = page.getByRole('combobox', { name: 'Run shown on the canvas' }); - if (await runPicker.count()) { await runPicker.click(); await page.getByRole('option', { name: 'Definition', exact: true }).click(); } - await page.locator('.vue-flow').hover(); - await page.mouse.wheel(0, 650); - await settled(); - const handoff = page.locator('.vue-flow__node').filter({ hasText: 'Hand off' }).first(); - await panTo(handoff); - await handoff.click(); - const target = handoff.getByLabel('Workflow', { exact: true }); - await target.waitFor(); - assert.equal(await target.inputValue(), '{{ steps.classify.result.workflow }}'); - await target.fill('{{ steps.classify.result.alternative }}'); - await target.press('Home'); - await shot('dynamic-handoff'); - await page.keyboard.press('Escape'); - await page.getByRole('tab', { name: 'History', exact: true }).click(); - assert.ok((await page.getByLabel('Workflow YAML', { exact: true }).inputValue()).includes('steps.classify.result.alternative')); - await page.getByRole('tab', { name: 'Canvas', exact: true }).first().click(); - await panTo(handoff); - await handoff.click(); - await target.fill('implement'); - await page.keyboard.press('Escape'); - await page.keyboard.press('Escape'); - await page.getByRole('tab', { name: 'History', exact: true }).click(); - assert.ok((await page.getByLabel('Workflow YAML', { exact: true }).inputValue()).includes('workflow: implement')); -}; diff --git a/e2e/checks/workflow-phone-layout.cjs b/e2e/checks/workflow-phone-layout.cjs deleted file mode 100644 index 12819a5cb..000000000 --- a/e2e/checks/workflow-phone-layout.cjs +++ /dev/null @@ -1,101 +0,0 @@ -// The workflow canvas at phone width: no page scroll, a clean topbar, lanes -// inside the canvas, zoom controls below the graph, step and run dialogs -// that fit, YAML without page scroll, and a pinned run header that stays -// visible. -const assert = require('node:assert/strict'); - -module.exports = async ({ page, go, shot, settled }) => { - await page.setViewportSize({ width: 390, height: 844 }); - // The list is a page at phone width: rows open the workflow, and the - // enabled switch is on the row and on the workflow page. - await go('/workflows'); - const row = page.getByRole('link', { name: /^implement/ }); - await row.waitFor(); - const listWidth = await page.evaluate(() => ({ scrollWidth: document.documentElement.scrollWidth, width: innerWidth })); - assert.equal(listWidth.scrollWidth, listWidth.width, 'workflow list scrolls horizontally'); - await shot('list'); - await page.getByRole('switch', { name: 'implement enabled' }).waitFor(); - await row.click(); - await page.waitForURL(/\/workflows\/implement$/); - await page.locator('.workflow-canvas').waitFor(); - await page.getByRole('switch', { name: 'implement enabled' }).waitFor(); - await go('/workflows?workflow=implement'); - assert.match(page.url(), /\/workflows\/implement$/, 'legacy ?workflow= link did not reach the workflow page'); - for (const workflow of ['implement', 'feasibility']) { - await go(`/workflows/${workflow}`); - const canvas = page.locator('.workflow-canvas'); - await canvas.waitFor(); - const dimensions = await page.evaluate(() => ({ - height: innerHeight, width: innerWidth, - scrollHeight: document.documentElement.scrollHeight, - scrollWidth: document.documentElement.scrollWidth, - })); - assert.equal(dimensions.scrollHeight, dimensions.height, 'workflow page scrolls vertically'); - assert.equal(dimensions.scrollWidth, dimensions.width, 'workflow page scrolls horizontally'); - const topbar = page.locator('header').first(); - const bar = await topbar.boundingBox(); - assert.equal(bar.y, 0, 'blank band above topbar'); - assert.equal(await topbar.evaluate(el => getComputedStyle(el).backdropFilter), 'none'); - assert.ok(!await canvas.getByText('Works on a repository', { exact: true }).count()); - const run = page.getByRole('button', { name: new RegExp(`^(Run|Test) ${workflow}$`) }); - assert.ok(await run.isVisible(), 'Run hidden on phone'); - const box = await canvas.boundingBox(); - const start = await page.locator('.vue-flow__node[data-id="start"]').boundingBox(); - assert.ok(start.y >= box.y && start.y < box.y + box.height, 'start is outside initial viewport'); - const nodes = await page.locator('.vue-flow__node').evaluateAll(elements => elements.map(el => ({ - left: el.getBoundingClientRect().left, right: el.getBoundingClientRect().right, - }))); - assert.ok(nodes.every(node => node.left >= box.x && node.right <= box.x + box.width), 'branch lanes clipped horizontally'); - const controls = await page.getByRole('group', { name: 'Zoom', exact: true }).boundingBox(); - const covered = await page.locator('.vue-flow__node').evaluateAll((elements, c) => elements.some((el) => { - const r = el.getBoundingClientRect(); - return r.left < c.x + c.width && r.right > c.x && r.top < c.y + c.height && r.bottom > c.y; - }), controls); - assert.ok(!covered, 'zoom controls cover a step'); - await shot(workflow); - const step = page.locator('.vue-flow__node').filter({ hasText: 'Prepare worktree' }).first(); - assert.match(await step.innerText(), /^\d+\.\s+Prepare worktree$/); - await step.click(); - const dialog = page.locator('[role="dialog"][data-slot="dialog-content"]'); - await dialog.waitFor(); - const dialogBox = await dialog.boundingBox(); - assert.ok(dialogBox.x >= 0 && dialogBox.x + dialogBox.width <= 390, 'step editor exceeds phone width'); - const input = dialog.getByRole('textbox').first(); - if (await input.count()) assert.ok(await input.evaluate(el => el.getBoundingClientRect().height) >= 24, 'step form scaled down'); - await shot(`${workflow}-step`); - await page.keyboard.press('Escape'); - await run.click(); - await page.locator('[role="dialog"][data-slot="dialog-content"]').waitFor(); - await shot(`${workflow}-run`); - await page.keyboard.press('Escape'); - } - // YAML must not make the page scroll at phone width. - await go('/workflows/feasibility'); - await page.getByRole('tab', { name: 'History', exact: true }).click(); - await settled(); - const yamlPage = await page.evaluate(() => ({ - scrollHeight: document.documentElement.scrollHeight, height: innerHeight, - })); - assert.equal(yamlPage.scrollHeight, yamlPage.height, 'YAML causes page scroll'); - await page.getByRole('tab', { name: 'Canvas', exact: true }).first().click(); - // A pinned historical run keeps its header visible on the canvas. - const response = await page.request.get(new URL('/api/control-plane/resources/workflow-definitions', page.url()).href); - const resource = await response.json(); - const snapshot = resource.resource.value.definitions.find(entry => entry.id === 'feasibility').yaml; - await page.route('**/api/tasks?*', route => { - const workflow = new URL(route.request().url()).searchParams.get('workflow'); - return workflow === 'feasibility' - ? route.fulfill({ json: [{ id: 999999, workflow, title: 'Historical run', status: 'failed', workflow_definition_yaml: snapshot }] }) - : route.continue(); - }); - await page.route('**/api/tasks/999999/*?*', route => route.fulfill({ json: {} })); - await page.route('**/api/tasks/999999/debug', route => route.fulfill({ json: {} })); - await page.route('**/api/tasks/999999/attempts', route => route.fulfill({ json: { attempts: [{ attempt: 1, stages: [] }] } })); - await go('/workflows/feasibility'); - const picker = page.getByRole('combobox', { name: 'Run shown on the canvas' }); - await picker.waitFor(); - assert.match(await picker.innerText(), /Run #999999/); - const root = await page.locator('.vue-flow__node[data-id="workflow"]').boundingBox(); - const pinnedCanvas = await page.locator('.workflow-canvas').boundingBox(); - assert.ok(root.y >= pinnedCanvas.y, 'historical workflow header clipped above canvas'); -}; diff --git a/e2e/checks/workflow-validation.cjs b/e2e/checks/workflow-validation.cjs deleted file mode 100644 index 8188cd35f..000000000 --- a/e2e/checks/workflow-validation.cjs +++ /dev/null @@ -1,24 +0,0 @@ -const assert = require('node:assert/strict'); -module.exports = async ({ page, go, shot }) => { - await go('/workflows/implement'); - const runPicker = page.getByRole('combobox', { name: 'Run shown on the canvas' }); - if (await runPicker.count()) { await runPicker.click(); await page.getByRole('option', { name: 'Definition', exact: true }).click(); } - await page.locator('.vue-flow__node').filter({hasText:'Prepare worktree'}).first().click(); - const more=page.getByRole('button',{name:'More',exact:true}).filter({hasText:'More'}); - if (await more.getAttribute('aria-expanded')==='false') await more.click(); - const condition=page.getByLabel('Run only when', {exact:true}); - await condition.fill('what'); - await page.getByRole('alert').filter({hasText:'when must name'}).first().waitFor(); - await condition.fill('task.title'); - await page.getByRole('alert').filter({hasText:'when must name'}).first().waitFor({state:'hidden'}); - const backoff=page.getByLabel('Retry backoff',{exact:true}); - await backoff.fill('yes'); - await page.getByText('Enter a number zero or greater.',{exact:true}).waitFor(); - await backoff.fill('0.5'); - await page.getByLabel('Run only when',{exact:true}).focus(); - await page.getByText('Enter a number zero or greater.',{exact:true}).waitFor({state:'hidden'}); - await page.getByRole('combobox',{name:'Unit',exact:true}).selectOption('m'); - await page.getByRole('tab',{name:'History',exact:true}).click(); - assert.match(await page.getByLabel('Workflow YAML',{exact:true}).inputValue(), /backoff: 30s/); - await shot('validated'); -}; diff --git a/e2e/package.json b/e2e/package.json deleted file mode 100644 index 7d58c8dfc..000000000 --- a/e2e/package.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "name": "archie-e2e", - "private": true, - "description": "Validation of a running local stack; never part of the gate", - "scripts": { - "check": "node run.cjs" - }, - "devDependencies": { - "playwright": "1.64.0" - }, - "packageManager": "pnpm@12.10.1" -} diff --git a/e2e/pnpm-lock.yaml b/e2e/pnpm-lock.yaml deleted file mode 100644 index c36cf10b2..000000000 --- a/e2e/pnpm-lock.yaml +++ /dev/null @@ -1,191 +0,0 @@ ---- -lockfileVersion: '9.0' - -importers: - - .: - configDependencies: {} - packageManagerDependencies: - pnpm: - specifier: 12.10.1 - version: 12.10.1 - -packages: - - '@pnpm/exe.android-arm64@12.10.1': - resolution: {integrity: sha512-CVTlHPwNvadQCJD9bGSMzWIhFX8QpjtqC2c27dhdnn/9iKzEjZ3qL62o3gHpKbIuo6qn4WxTKRoaokgNdReBig==} - cpu: [arm64] - os: [android] - - '@pnpm/exe.android-x64@12.10.1': - resolution: {integrity: sha512-NFiYLIaodY7da0XIebwcU3JoP7IK/lzF7zgKSSP+9H+QcFnQ1GDfBkuBKCYJzZ+Xu0WH54neIPLBBCaOjaaauA==} - cpu: [x64] - os: [android] - - '@pnpm/exe.darwin-arm64@12.10.1': - resolution: {integrity: sha512-0O8tdQ8ijlPJudXspLMTcitMkdBEz6uUflazL5uQE0WMs85oQIp0U+5hfEktMFB64QqEhjqlvvujTwbzdr9oMg==} - cpu: [arm64] - os: [darwin] - - '@pnpm/exe.darwin-x64@12.10.1': - resolution: {integrity: sha512-ud+1/uZOKEo8P/AsPynOJc/LNwfI0j6WwCElibj71rU9l4nIBnsSn+wWTIPZPkZ4BBSH5+82azSnAARMyJ1lNA==} - cpu: [x64] - os: [darwin] - - '@pnpm/exe.freebsd-x64@12.10.1': - resolution: {integrity: sha512-mj9PE5rf8uAfQQ2K66HSATMSut+lNiB4eSqFd5+azFVCMnxNSy/32xpZQJT21PhnN3Y4qbK+iKHe5nWAxSuRhw==} - cpu: [x64] - os: [freebsd] - - '@pnpm/exe.linux-arm64-musl@12.10.1': - resolution: {integrity: sha512-xba+00wZJ8Um6rBJJjWl88uJj0tydB8dtomvjlCLvi0uL32vpa9CRP8Vv26FIXvbiZ1bo2RCzYt/eChxJVV52w==} - cpu: [arm64] - os: [linux] - libc: [musl] - - '@pnpm/exe.linux-arm64@12.10.1': - resolution: {integrity: sha512-oBdMp69ScC9UnniG4qZAQVr2fBDSXjm4yk/72vkEVyrlwS23yMxcRQl7Qdo3sgXPAygY6TWnPRKm4rXzjoyW7w==} - cpu: [arm64] - os: [linux] - libc: [glibc] - - '@pnpm/exe.linux-ppc64@12.10.1': - resolution: {integrity: sha512-Yyb3wu09h3c7mLme270uHFiVaAIUHC411Ru9LIU2BKUIstrGlXa9OqqVWoXaRgYRdFdOFknkwG7GNn6ygwLbnw==} - cpu: [ppc64] - os: [linux] - libc: [glibc] - - '@pnpm/exe.linux-riscv64@12.10.1': - resolution: {integrity: sha512-PdkeUFFkybknnGkWP0H22eMpIiS4OZXL5BcQzF4lh+vmrW3IaC2HOkbANKgot/PKO0Kl77pzA/6PKFxgbgfXIQ==} - cpu: [riscv64] - os: [linux] - libc: [glibc] - - '@pnpm/exe.linux-s390x@12.10.1': - resolution: {integrity: sha512-1okKuHKJwJPAbofDxfhZWAUxEWtee4ZSf7Pah8kcvocaJkf2WxFJ5KVTiNIvDml5GLidDQsgf7Pcf/WHbCak7Q==} - cpu: [s390x] - os: [linux] - libc: [glibc] - - '@pnpm/exe.linux-x64-musl@12.10.1': - resolution: {integrity: sha512-e6IqzVNkPa7srFKJKnY23uWJ+qz0LaRWiTUo/sHfFXRRMRzB5uNOr6qWWip/jqhdGwU91n9J7LrEYZ6e0tRczw==} - cpu: [x64] - os: [linux] - libc: [musl] - - '@pnpm/exe.linux-x64@12.10.1': - resolution: {integrity: sha512-ZByV0DRgWzGaDSjT5ddRBASdwz+r/qPMYh7o6RGmPQjtRGNFbSl94xY2DcAM8mqCOZJUUDtAXQ+wpBXcdpKlkg==} - cpu: [x64] - os: [linux] - libc: [glibc] - - '@pnpm/exe.win32-arm64@12.10.1': - resolution: {integrity: sha512-I7QZHcjioG7orFeCRUFUHByJ1G0zFPnAlaGGyrUvb6MGkv5oeNwNPl7t+Gp+7zHfnMcgLGJ1a+Wfim0IDw3lOw==} - cpu: [arm64] - os: [win32] - - '@pnpm/exe.win32-x64@12.10.1': - resolution: {integrity: sha512-4WJFdp58EKlCj0zLobrXU0vpszSZIr4X/3y/uNbAQqGW0zE+VdruZB0gFc3L2kzsUzVwTYbaCn+XEhnCYSAlTg==} - cpu: [x64] - os: [win32] - - pnpm@12.10.1: - resolution: {integrity: sha512-ukCjfrGjcNYP6oxM8dNkwTvMzvUY6YrSvO6VT1OdONo3RY5YJho/pV4GUjRQ6g//+fSXsTW+QfLBXBZCusrObA==} - engines: {node: '>=18.*'} - hasBin: true - -snapshots: - - '@pnpm/exe.android-arm64@12.10.1': - optional: true - - '@pnpm/exe.android-x64@12.10.1': - optional: true - - '@pnpm/exe.darwin-arm64@12.10.1': - optional: true - - '@pnpm/exe.darwin-x64@12.10.1': - optional: true - - '@pnpm/exe.freebsd-x64@12.10.1': - optional: true - - '@pnpm/exe.linux-arm64-musl@12.10.1': - optional: true - - '@pnpm/exe.linux-arm64@12.10.1': - optional: true - - '@pnpm/exe.linux-ppc64@12.10.1': - optional: true - - '@pnpm/exe.linux-riscv64@12.10.1': - optional: true - - '@pnpm/exe.linux-s390x@12.10.1': - optional: true - - '@pnpm/exe.linux-x64-musl@12.10.1': - optional: true - - '@pnpm/exe.linux-x64@12.10.1': - optional: true - - '@pnpm/exe.win32-arm64@12.10.1': - optional: true - - '@pnpm/exe.win32-x64@12.10.1': - optional: true - - pnpm@12.10.1: - optionalDependencies: - '@pnpm/exe.android-arm64': 12.10.1 - '@pnpm/exe.android-x64': 12.10.1 - '@pnpm/exe.darwin-arm64': 12.10.1 - '@pnpm/exe.darwin-x64': 12.10.1 - '@pnpm/exe.freebsd-x64': 12.10.1 - '@pnpm/exe.linux-arm64': 12.10.1 - '@pnpm/exe.linux-arm64-musl': 12.10.1 - '@pnpm/exe.linux-ppc64': 12.10.1 - '@pnpm/exe.linux-riscv64': 12.10.1 - '@pnpm/exe.linux-s390x': 12.10.1 - '@pnpm/exe.linux-x64': 12.10.1 - '@pnpm/exe.linux-x64-musl': 12.10.1 - '@pnpm/exe.win32-arm64': 12.10.1 - '@pnpm/exe.win32-x64': 12.10.1 - ---- -lockfileVersion: '9.0' - -settings: - autoInstallPeers: true - excludeLinksFromLockfile: false - -importers: - - .: - devDependencies: - playwright: - specifier: 1.64.0 - version: 1.64.0 - -packages: - - playwright-core@1.64.0: - resolution: {integrity: sha512-T9r+MZkTECl2+oUcZ26YgZzTrYidTsIhYYkJix+6iDOymOb1FB2RLLSOxRGnZGv5DStt+aduIVbt+E8WygXYpg==} - engines: {node: '>=20'} - hasBin: true - - playwright@1.64.0: - resolution: {integrity: sha512-kVzTnYFYEyQ9RGzBjNCd2+yEqWmVbxl3AHPynv3qQ6JTjv4a+kwRcnqQwIpuP3NnrnIrE/Q6wWAIAvMfIE2/Yg==} - engines: {node: '>=20'} - hasBin: true - -snapshots: - - playwright-core@1.64.0: {} - - playwright@1.64.0: - dependencies: - playwright-core: 1.64.0 diff --git a/e2e/run.cjs b/e2e/run.cjs deleted file mode 100644 index da587838f..000000000 --- a/e2e/run.cjs +++ /dev/null @@ -1,186 +0,0 @@ -// Drive the dashboard of a running local stack (e2e/stack.sh) in Chromium. Each module in checks/ exports async ({ page, go, shot, fail, skip, settled }). -// A check fails on a thrown error or any console or page error. skip(reason) -// records a skip for a missing precondition and never fails. -// -// node e2e/run.cjs [--headed] [--record VERSION] [list | all | check ...] -// -// Screenshots, results.json (the manifest) and report.html (the run report) go to -// e2e/out//. --record also writes e2e/results/VERSION.md, the committed -// evidence for a release. -const fs = require('fs'); -const path = require('path'); - -const DESKTOP = { width: 1440, height: 900 }; - -// Stable label naming: kebab-case, so a route like /org/members becomes -// org-members and / becomes home. -function slug(label) { - return String(label).toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/^-+|-+$/g, '') || 'home'; -} - -class SkipCheck extends Error {} - -const base = process.env.ARCHIE_E2E_URL || 'http://localhost:5173'; -const args = process.argv.slice(2); -const headed = args.includes('--headed'); -if (headed) args.splice(args.indexOf('--headed'), 1); -let record = ''; -if (args[0] === '--record') { - record = args[1]; - if (!record || record.startsWith('-')) { - console.error('Usage: --record VERSION all|check ...'); - process.exit(1); - } - args.splice(0, 2); -} -const available = fs.readdirSync(path.join(__dirname, 'checks')).filter((f) => f.endsWith('.cjs')).map((f) => f.slice(0, -4)).sort(); -if (!args.length || (args.length === 1 && args[0] === 'list')) { - console.log(`Available browser checks:\n${available.map(name => ` ${name}`).join('\n')}\n\nRun: task e2e:check -- \nAll: task e2e:check -- all\nWatch: task e2e:check -- --headed `); - process.exit(0); -} -const names = args.length === 1 && args[0] === 'all' ? available : args; -const unknown = names.filter(name => !available.includes(name)); -if (unknown.length) { - console.error(`Unknown checks: ${unknown.join(', ')}. Run task e2e:check to list available checks.`); - process.exit(1); -} -const { chromium } = require('playwright'); -const stamp = new Date().toISOString().replace(/[:.]/g, '-'); -const out = path.join(__dirname, 'out', stamp); -fs.mkdirSync(out, { recursive: true }); - -(async () => { - const browser = await chromium.launch({ headless: !headed, slowMo: headed ? 150 : 0 }); - const context = await browser.newContext({ viewport: { width: 1440, height: 900 } }); - const login = await context.request.post(base + '/api/auth/login', { - headers: { 'X-Archie-CSRF': '1', Origin: base }, - data: { email: process.env.ARCHIE_E2E_EMAIL || 'operator@example.test', password: process.env.ARCHIE_E2E_PASSWORD || 'archie-local-e2e-password' }, - }); - if (!login.ok()) { - const error = `Test account sign-in failed (${login.status()}): ${await login.text()}`; - await browser.close(); - throw new Error(error); - } - const storageState = await context.storageState(); - await context.close(); - const results = []; - for (const name of names) { - console.log(`run ${name}`); - const check = require(path.join(__dirname, 'checks', name + '.cjs')); - // A fresh page per check: open event streams pile up across navigations. - const page = await browser.newPage({ viewport: { width: 1440, height: 900 }, storageState }); - const errors = []; - const notes = []; - page.on('pageerror', (e) => errors.push(String(e))); - page.on('console', (m) => { - if (m.type() !== 'error') return; - const url = m.location().url; - errors.push(url ? `${m.text()} (${url})` : m.text()); - }); - // Wait for load, never networkidle: the event stream never goes idle. - const go = async (p) => { await page.goto(base + p, { waitUntil: 'load' }); await page.waitForTimeout(1200); }; - // Harness-owned wait: wait for a selector or URL, then settle briefly. - const settled = async (sel, timeout = 10000) => { - if (sel) { - if (/^https?:/.test(sel)) await page.waitForURL(sel, { timeout }); - else if (sel.startsWith('/')) await page.waitForURL('**' + sel, { timeout }); - else await page.locator(sel).first().waitFor({ timeout }); - } - await page.waitForTimeout(150); - }; - const artifacts = []; - // -[-x].png; the viewport suffix marks non-desktop - // shots. A short settle precedes every capture so checks need no capture - // wrapper of their own. Every capture is kept: a repeated label gets -2, -3... - const shot = async (label) => { - await page.waitForTimeout(150); - const vp = page.viewportSize() || DESKTOP; - const suffix = (vp.width === DESKTOP.width && vp.height === DESKTOP.height) ? '' : `-${vp.width}x${vp.height}`; - const stem = `${name}-${slug(label)}${suffix}`; - let file = `${stem}.png`; - for (let n = 2; fs.existsSync(path.join(out, file)); n++) file = `${stem}-${n}.png`; - await page.screenshot({ path: path.join(out, file) }); - artifacts.push({ file }); - return file; - }; - // Keep a non-image artifact for this case: written as -. - const attach = (fileName, data) => { - const file = `${name}-${fileName}`; - fs.writeFileSync(path.join(out, file), data); - artifacts.push({ file }); - }; - const fail = (msg) => notes.push(msg); - // Drop console errors matching re: a response the page is designed to survive. - const tolerated = []; - const tolerate = (re) => tolerated.push(re); - const skip = (reason) => { throw new SkipCheck(reason || 'precondition missing'); }; - const started = Date.now(); - let error = ''; - let skipped = ''; - try { await check({ page, go, shot, fail, skip, settled, attach, tolerate }); } catch (e) { - if (e instanceof SkipCheck) skipped = e.message; - else error = String(e && e.message || e); - } - if (error || notes.length) await shot('failure').catch(() => {}); - await page.close(); - const problems = skipped ? [] : [error, ...notes, ...errors.filter((e) => !tolerated.some((re) => re.test(e)))].filter(Boolean); - const result = { check: name, ok: problems.length === 0, ms: Date.now() - started, problems, artifacts }; - if (skipped) { result.skipped = true; result.skipReason = skipped; } - results.push(result); - console.log(`${skipped ? 'SKIP' : problems.length ? 'FAIL' : 'ok '} ${name}${skipped ? ` (${skipped})` : problems.length ? '\n ' + problems.join('\n ') : ''}`); - } - await browser.close(); - fs.writeFileSync(path.join(out, 'results.json'), JSON.stringify(results, null, 2)); - const commit = require('child_process').execFileSync('git', ['rev-parse', '--short', 'HEAD'], { cwd: __dirname, encoding: 'utf8' }).trim(); - fs.writeFileSync(path.join(out, 'report.html'), report(results, { time: new Date().toISOString(), commit })); - if (record) writeRecord(record, results); - console.log(`evidence: ${out}`); - process.exit(results.every((r) => r.ok) ? 0 : 1); -})().catch((e) => { console.error(e); process.exit(2); }); - -function esc(s) { - return String(s).replace(/&/g, '&').replace(//g, '>').replace(/"/g, '"'); -} - -// One self-contained page per run: a test plan and verification record. Each -// case carries the artifacts its own run produced; images are inlined. -function report(results, meta) { - const status = (r) => (r.skipped ? 'SKIP' : r.ok ? 'ok' : 'FAIL'); - const count = (s) => results.filter((r) => status(r) === s).length; - const artifact = (a) => { - const data = fs.readFileSync(path.join(out, a.file)); - if (!a.file.endsWith('.png')) return `${esc(a.file)}`; - const src = `data:image/png;base64,${data.toString('base64')}`; - return `
${esc(a.file)}
`; - }; - const rows = results.map((r) => { - const s = status(r); - const msg = r.skipped ? [r.skipReason] : r.problems; - return `${esc(r.check)}${s}${r.ms}ms` - + `${msg.map((m) => `
${esc(m)}
`).join('')}` - + `${r.artifacts.map(artifact).join('')}`; - }).join('\n'); - return ` -e2e ${esc(meta.time)} - -

e2e ${esc(meta.time)}

-

commit ${esc(meta.commit)} against ${esc(base)}: ${results.length} cases, ${count('ok')} ok, ${count('FAIL')} FAIL, ${count('SKIP')} SKIP

- -${rows} -
CaseStatusTimeMessageArtifacts
- - -`; -} - -function writeRecord(version, results) { - const dir = path.join(__dirname, 'results'); - fs.mkdirSync(dir, { recursive: true }); - const rows = results.map((r) => `| ${r.check} | ${r.skipped ? 'skip' : r.ok ? 'pass' : 'fail'} | ${r.problems.join('
').replace(/\|/g, '\\|') || ''} |`); - const passed = results.filter((r) => r.ok).length; - fs.writeFileSync(path.join(dir, `${version}.md`), [ - `# ${version}`, '', - `Run ${new Date().toISOString()} against ${base}: ${passed} of ${results.length} checks passed.`, '', - '| Check | Result | Problems |', '| --- | --- | --- |', ...rows, '', - ].join('\n')); -} diff --git a/e2e/seed.sh b/e2e/seed.sh deleted file mode 100755 index f62c7f5aa..000000000 --- a/e2e/seed.sh +++ /dev/null @@ -1,77 +0,0 @@ -#!/usr/bin/env bash -# Seed a running local stack (e2e/stack.sh) through the dashboard's own HTTP -# API, so the seed exercises real validation. Safe to run again: each step -# skips what already exists. -set -euo pipefail - -base=${ARCHIE_E2E_API:-http://localhost:8484} -here=$(cd "$(dirname "$0")" && pwd) -cookie=$(mktemp) -trap 'rm -f "$cookie"' EXIT -H=(-b "$cookie" -c "$cookie" -H 'Content-Type: application/json' -H 'X-Archie-CSRF: 1' -H "Origin: $base") - -get() { curl -fsS -b "$cookie" "$base$1"; } -post() { curl -fsS -X POST "$base$1" "${H[@]}" -d "$2"; } -# jq-free JSON reads: py EXPR, with the parsed body as d. -py() { python3 -c "import sys, json; d = json.load(sys.stdin); print($1)"; } - -# This account belongs only to the isolated local test stack. -email=${ARCHIE_E2E_EMAIL:-operator@example.test} -password=${ARCHIE_E2E_PASSWORD:-archie-local-e2e-password} -account=$(python3 -c 'import json,sys; print(json.dumps(dict(email=sys.argv[1], password=sys.argv[2], display_name="E2E operator", public_url=sys.argv[3])))' "$email" "$password" "${ARCHIE_E2E_URL:-http://localhost:5173}") -if [ "$(get /api/auth/status | py 'd["setup_required"]')" = "True" ]; then - post /api/auth/setup "$account" >/dev/null -else - if ! post /api/auth/login "$account" >/dev/null; then - echo "Test account sign-in failed. Set ARCHIE_E2E_EMAIL and ARCHIE_E2E_PASSWORD to this test stack's account credentials." >&2 - exit 1 - fi -fi - -# Repository policy. archied applies it live; the pause lets the watch publish it. -if ! get /api/control-plane/resources/repository-policies | grep -q '"widgets"'; then - version=$(get /api/control-plane/resources/repository-policies | py 'd["resource"]["version"]') - post /api/control-plane/resources/repository-policies/commands/replace \ - "{\"value\":[{\"owner\":\"acme\",\"name\":\"widgets\",\"base\":\"main\"}],\"expected_version\":$version}" >/dev/null - sleep 5 -fi - -# Work requests. Without Docker they park within a minute, which fills -# Needs you, Quality gates and the task pages. -tasks=$(get /api/tasks) -for t in "Fix flaky login test" "Add retry to webhook sender" "Document the gate" "Speed up the CI cache" "Recovery probe"; do - grep -qF "\"$t\"" <<<"$tasks" && continue - post /api/work-requests "{\"repository\":\"acme/widgets\",\"workflow\":\"triage\",\"title\":\"$t\",\"instructions\":\"Do it.\"}" >/dev/null -done - -# An unsigned capture source with one delivery, an event type, a mapping and -# a binding left pending approval. -src=e2e-hook -if ! get /api/sources | grep -q "\"$src\""; then - post /api/sources "{\"path\":\"$src\"}" >/dev/null - post "/api/sources/$src/signing" '{"signed":false}' >/dev/null - post "/api/sources/$src/approve-unsigned" '{}' >/dev/null - bash "$here/../tools/webhook-send.sh" --url "$base" --source "$src" --kind github-issue --quiet >/dev/null -fi -et=$(get /api/event-types | py '"".join(t["id"] for t in (d.get("event_types", []) if isinstance(d, dict) else d) if t["name"] == "issue-opened")') -if [ -z "$et" ]; then - et=$(post /api/event-types "{\"source\":\"$src\",\"name\":\"issue-opened\",\"rule\":{\"headers\":[],\"payload\":[{\"path\":\"action\",\"op\":\"equals\",\"value\":\"opened\"}]},\"example\":{\"headers\":{},\"body\":\"{\\\"action\\\":\\\"opened\\\",\\\"issue\\\":{\\\"title\\\":\\\"x\\\"}}\"}}" | py 'd["id"]') -fi -if ! get /api/bindings | grep -q '"e2e-binding"'; then - mapping=$(post /api/mappings "{\"name\":\"e2e-issue\",\"source_hint\":\"$src\",\"event_type_id\":\"$et\",\"fields\":[{\"name\":\"title\",\"path\":\"issue.title\",\"type\":\"string\",\"required\":true}]}" | py 'd["id"]') - post /api/bindings "{\"name\":\"e2e-binding\",\"matcher\":{\"source\":\"$src\"},\"mapping_id\":\"$mapping\",\"workflow\":\"feasibility\",\"owner\":\"acme\",\"repo\":\"widgets\"}" >/dev/null -fi - -# Two more orgs: the operator owns Beta, so the org selector offers it; Gamma -# belongs to an identity the operator is not a member of, so selecting it is refused. -orgs=$(get /api/orgs) -if ! grep -q '"org-beta"' <<<"$orgs"; then - operator=$(get /api/identities | py '"".join(i["id"] for i in d["identities"] if i["display_name"] == "E2E operator")') - post /api/orgs "{\"id\":\"org-beta\",\"name\":\"Beta\",\"owner_identity\":\"$operator\"}" >/dev/null -fi -if ! grep -q '"org-gamma"' <<<"$orgs"; then - outsider=$(post /api/identities '{"display_name":"E2E outsider","kind":"user"}' | py 'd["id"]') - post /api/orgs "{\"id\":\"org-gamma\",\"name\":\"Gamma\",\"owner_identity\":\"$outsider\"}" >/dev/null -fi - -echo "seeded: $(get /api/tasks | py 'len(d.get("tasks", d) if isinstance(d, dict) else d)') tasks" diff --git a/e2e/settings-save.cjs b/e2e/settings-save.cjs deleted file mode 100644 index 7d1c03e3a..000000000 --- a/e2e/settings-save.cjs +++ /dev/null @@ -1,141 +0,0 @@ -// Run against local Vite only: node e2e/settings-save.cjs [http://127.0.0.1:5173] -// Every API request is intercepted; no real settings can be changed. -const assert = require('node:assert/strict'); -const { test } = require('node:test'); -const { chromium } = require('playwright'); - -const base = new URL(process.argv[2] ?? 'http://127.0.0.1:5173'); -assert.equal(base.hostname, '127.0.0.1', 'use a local Vite server'); -const id = '11111111-1111-4111-8111-111111111111'; - -async function scenario(t, path) { - const browser = await chromium.launch({ executablePath: process.env.CHROME_BIN }); - t.after(() => browser.close()); - const page = await browser.newPage(); - page.setDefaultTimeout(5000); - const provider = { id, name: 'Example', class: 'openai', base_url: 'https://provider.example' }; - const saved = { - '/api/settings/agent-models': { default: { provider_id: id, model: 'original' } }, - '/api/settings/model-providers': [provider], - '/api/settings/model-classes': [{ class: 'openai' }], - '/api/settings/model-policy': { workflow_aliases: null, chat_aliases: null }, - '/api/settings/instructions': { text: 'Original instructions' }, - }; - const moduleWrites = { - '/api/settings/agent-model': (body) => (saved['/api/settings/agent-models'].default = body), - [`/api/settings/model-providers/${id}`]: (body) => Object.assign(provider, body), - '/api/settings/model-policy': (body) => (saved['/api/settings/model-policy'] = body), - '/api/settings/instructions': (body) => (saved['/api/settings/instructions'] = { text: body.text.trim() }), - '/api/settings/agent-model/test': (body) => ({ model: body.model, answer: 'Ready' }), - }; - const writes = []; - const failed = new Set(); - const legacy = []; - await page.route('**/*', async (r) => { - const request = r.request(); - const url = new URL(request.url()); - if (url.origin !== base.origin) return r.abort(); - const path = url.pathname; - if (!path.startsWith('/api/')) return r.continue(); - if (path.startsWith('/api/control-plane/')) legacy.push(path); - if (request.method() !== 'GET') { - const body = request.postDataJSON(); - writes.push([request.method(), path, body]); - if (failed.delete(path)) { - return r.fulfill({ status: 503, contentType: 'application/problem+json', body: '{"detail":"Save temporarily unavailable"}' }); - } - if (moduleWrites[path]) return r.fulfill({ json: moduleWrites[path](body) }); - return r.fulfill({ status: 404 }); - } - const context = { - '/api/auth/status': { setup_required: false, user: { id: 'u', display_name: 'Operator', kind: 'operator' }, instance: 'archie' }, - '/api/authentication': { public_url: base.origin, oidc_issuer: '', oidc_client_id: '', oidc_audience: '', trusted_proxies: [] }, - '/api/capabilities': { sections: { chat: false } }, - '/api/orgs': { orgs: [{ id: 'test', name: 'Test', role: 'owner', version: 1 }], current: 'test', instance_admin: true }, - '/api/alerts': { alerts: [] }, - '/api/credentials': [], - }; - return r.fulfill({ json: saved[path] ?? context[path] ?? {} }); - }); - await page.goto(new URL(path, base).href); - return { page, writes, failed, saved, legacy }; -} - -async function review(page) { - await page.getByRole('button', { name: 'Review and save', exact: true }).click({ timeout: 3500 }); - return page.getByRole('dialog'); -} - -test('Models reviews only staged edits and retries only the unfinished writes', async (t) => { - const { page, writes, failed, legacy } = await scenario(t, '/settings/models'); - const alias = page.locator('#model-default'); - await alias.fill('new-model'); - await page.getByRole('button', { name: /Example/ }).click(); - await page.getByLabel('Name for Example').fill('Renamed'); - await page.getByLabel('Aliases workflows may use').fill('default'); - await page.getByLabel('Aliases chat may use').fill('default'); - const nav = page.getByRole('navigation', { name: 'Instance', exact: true }); - await nav.getByRole('link', { name: 'Authentication', exact: true }).click(); - await nav.getByRole('link', { name: 'Models', exact: true }).click(); - assert.equal(await alias.inputValue(), 'new-model'); - const dialog = await review(page); - await dialog.getByText('new-model', { exact: false }).waitFor(); - await dialog.getByText('Renamed', { exact: false }).waitFor(); - await dialog.getByRole('button', { name: 'Revert chat', exact: true }).click(); - assert.deepEqual(writes, [], 'editing and opening the review must not write'); - - const providerPath = `/api/settings/model-providers/${id}`; - failed.add(providerPath); - const confirm = dialog.getByRole('button', { name: 'Save', exact: true }); - await confirm.click(); - await dialog.getByText('Save temporarily unavailable').waitFor(); - const aliasWrite = ['PUT', '/api/settings/agent-model', { provider_id: id, model: 'new-model' }]; - const providerWrite = ['PUT', providerPath, { name: 'Renamed', class: 'openai', base_url: 'https://provider.example' }]; - const policyWrite = ['PUT', '/api/settings/model-policy', { workflow_aliases: ['default'], chat_aliases: null }]; - assert.deepEqual(writes, [aliasWrite, providerWrite], 'stop after the rejected write'); - assert.equal(await dialog.getByText('new-model', { exact: false }).count(), 0, 'successful alias is no longer staged'); - await confirm.click(); - await dialog.waitFor({ state: 'hidden' }); - assert.deepEqual(writes, [aliasWrite, providerWrite, providerWrite, policyWrite]); - assert.deepEqual(legacy, []); -}); - -test('Testing a model runs immediately without saving its draft', async (t) => { - const { page, writes } = await scenario(t, '/settings/models'); - await page.locator('#model-default').fill('try-this'); - await page.getByRole('button', { name: 'Test', exact: true }).click(); - await page.getByText('try-this answered “Ready”').waitFor(); - const dialog = await review(page); - await dialog.getByText('After: try-this').waitFor(); - assert.deepEqual(writes, [['POST', '/api/settings/agent-model/test', { provider_id: id, model: 'try-this' }]]); -}); - -test('Instructions can be discarded or retried from the review', async (t) => { - const { page, writes, saved, failed, legacy } = await scenario(t, '/org/instructions'); - const text = page.getByRole('textbox', { name: 'Instructions' }); - await text.fill('Discard me'); - let dialog = await review(page); - await dialog.getByText('Discard me', { exact: false }).waitFor(); - await dialog.getByRole('button', { name: 'Discard all' }).click(); - assert.equal(await text.inputValue(), 'Original instructions'); - await text.fill('New instructions'); - dialog = await review(page); - const path = '/api/settings/instructions'; - assert.deepEqual(writes, [], 'discard and review do not write'); - const confirm = dialog.getByRole('button', { name: 'Save', exact: true }); - saved[path].text = 'Changed in another tab'; - await confirm.click(); - await dialog.getByText('Changed elsewhere. Latest values loaded.').waitFor(); - await dialog.getByText('Changed in another tab').waitFor(); - assert.deepEqual(writes, [], 'a newer value needs another review before it is overwritten'); - failed.add(path); - await confirm.click(); - await dialog.getByText('Save temporarily unavailable').waitFor(); - const command = ['PUT', path, { text: 'New instructions' }]; - assert.deepEqual(writes, [command]); - await confirm.click(); - await dialog.waitFor({ state: 'hidden' }); - assert.deepEqual(writes, [command, command]); - assert.equal(saved[path].text, 'New instructions'); - assert.deepEqual(legacy, []); -}); diff --git a/e2e/stack.sh b/e2e/stack.sh deleted file mode 100755 index 296d3a308..000000000 --- a/e2e/stack.sh +++ /dev/null @@ -1,190 +0,0 @@ -#!/usr/bin/env bash -# Run the whole stack as local processes against a throwaway PostgreSQL 18, -# for manual and scripted checks. Never part of the gate. Nothing here reads -# the installed config: XDG paths point into the dev directory. -# -# e2e/stack.sh start | stop | restart | status | reset -set -Eeuo pipefail - -repo=$(cd "$(dirname "$0")/.." && pwd) -dir=${ARCHIE_DEV_DIR:-${XDG_STATE_HOME:-$HOME/.local/state}/archie-dev} -pgport=${ARCHIE_DEV_PGPORT:-55432} -services=(archie-state-store archie-gateway archied archie-messaging archie-ui) - -# initdb refuses root, and postgres cannot traverse root's home. -if [ "$(id -u)" -eq 0 ]; then - pgdata=/var/lib/archie-dev/pg - as_pg() { runuser -u postgres -- "$@"; } -else - pgdata=$dir/pg - as_pg() { "$@"; } -fi - -export XDG_CONFIG_HOME=$dir/config XDG_DATA_HOME=$dir/data XDG_STATE_HOME=$dir/state - -pgbin() { - local d - for d in /usr/lib/postgresql/18/bin "$(dirname "$(command -v postgres 2>/dev/null || echo /x/x)")"; do - if [ -x "$d/postgres" ] && "$d/postgres" --version | grep -q ' 18\.'; then - echo "$d" - return - fi - done - echo "PostgreSQL 18 server not found" >&2 - exit 1 -} - -check_process() { - local pid - if [ ! -f "$dir/pids/$1" ] || ! pid=$(cat "$dir/pids/$1") || ! kill -0 "$pid" 2>/dev/null; then - echo "$1 exited; see $dir/logs/$1.log" >&2 - return 1 - fi -} - -wait_port() { - for _ in $(seq 1 "${3:-60}"); do - check_process "$2" || return 1 - (echo >"/dev/tcp/127.0.0.1/$1") 2>/dev/null && return 0 - sleep 1 - done - echo "$2 did not listen on $1; see $dir/logs/$2.log" >&2 - return 1 -} - -start_pg() { - local bin - bin=$(pgbin) - if [ ! -f "$pgdata/PG_VERSION" ]; then - mkdir -p "$pgdata" - [ "$(id -u)" -ne 0 ] || chown postgres "$pgdata" - as_pg "$bin/initdb" -D "$pgdata" -U archie --auth=trust >/dev/null - fi - if ! as_pg "$bin/pg_ctl" -D "$pgdata" status >/dev/null 2>&1; then - as_pg "$bin/pg_ctl" -D "$pgdata" -w -l "$pgdata/server.log" \ - -o "-p $pgport -k $pgdata -c listen_addresses=127.0.0.1" start >/dev/null - fi - "$bin/psql" -h 127.0.0.1 -p "$pgport" -U archie -d postgres -qtAc \ - "SELECT 1 FROM pg_database WHERE datname = 'archie'" | grep -q 1 || - "$bin/createdb" -h 127.0.0.1 -p "$pgport" -U archie archie -} - -prepare() { - mkdir -p "$dir"/{bin,logs,pids} "$XDG_CONFIG_HOME/archie" "$XDG_DATA_HOME" "$XDG_STATE_HOME" - [ -f "$XDG_CONFIG_HOME/archie/config.toml" ] || cp "$repo/config.example.toml" "$XDG_CONFIG_HOME/archie/config.toml" - # The services serve from the least-privilege role and migrate as the schema - # owner; initdb's archie role is the throwaway server's superuser only. - sed -e "s#^database_url = .*#database_url = \"postgres://archie_runtime@127.0.0.1:$pgport/archie?sslmode=disable\"#" \ - -e "s#^migration_database_url = .*#migration_database_url = \"postgres://archie_migrator@127.0.0.1:$pgport/archie?sslmode=disable\"#" \ - "$repo/deployments/dev.toml" >"$dir/dev.toml" - local version - version=$(git -C "$repo" describe --tags --exact-match --match 'v[0-9]*' 2>/dev/null || true) - version=${version#v} - [ -n "$version" ] || version="dev+$(git -C "$repo" rev-parse --short=12 HEAD)" - task --dir "$repo" dev:tls - task --dir "$repo" --force build BIN_DIR="$dir/bin" GATEWAY_VERSION="$version" RUNTIME_VERSION="$version" -} - -# spawn NAME DIR CMD...: a detached session leader, so stop takes its children. -spawn() { - local name=$1 cwd=$2 - shift 2 - rm -f "$dir/pids/$name" - setsid -f bash -c 'cd "$1" && echo $$ >"$2" && shift 2 && exec "$@"' _ "$cwd" "$dir/pids/$name" "$@" \ - "$dir/logs/$name.log" 2>&1 9>&- - for _ in $(seq 1 50); do - [ ! -f "$dir/pids/$name" ] || { check_process "$name"; return; } - sleep 0.1 - done - echo "$name did not start; see $dir/logs/$name.log" >&2 - return 1 -} - -start_service() { - spawn "$1" "$repo" "$dir/bin/$1" -config-overlay "$dir/dev.toml" -} - -# provision_roles creates the least-privilege roles the stack connects as. The -# throwaway server runs with trust auth, so the role URLs' passwords are never -# checked; they are here only because provision sets the role password it reads. -provision_roles() { - "$dir/bin/archie-state-store" provision \ - -admin-url "postgres://archie@127.0.0.1:$pgport/archie?sslmode=disable" \ - -runtime-url "postgres://archie_runtime:e2e@127.0.0.1:$pgport/archie?sslmode=disable" \ - -migration-url "postgres://archie_migrator:e2e@127.0.0.1:$pgport/archie?sslmode=disable" -} - -stop_pid() { - local f=$1 pid - [ -f "$f" ] || return 0 - pid=$(cat "$f") - if kill -- "-$pid" 2>/dev/null; then - for _ in $(seq 1 20); do kill -0 "$pid" 2>/dev/null || break; sleep 0.5; done - kill -9 -- "-$pid" 2>/dev/null || true - fi - rm -f "$f" -} - -start() { - local port - for port in 9091 8585 8586 8587 8485 8484 5173; do - if (echo >"/dev/tcp/127.0.0.1/$port") 2>/dev/null; then - echo "Port $port is already in use. Run task e2e:down before task e2e:up; if it stays occupied, inspect its owner with ss -ltnp." >&2 - return 1 - fi - done - trap 'trap - ERR; stop' ERR - prepare - start_pg 9>&- - provision_roles - start_service archie-state-store - wait_port 9091 archie-state-store 90 - local s - for s in archie-gateway archied archie-messaging archie-ui; do start_service "$s"; done - wait_port 8585 archie-gateway - wait_port 8586 archie-messaging - wait_port 8485 archied - wait_port 8484 archie-ui - [ -d "$repo/ui/node_modules" ] || (cd "$repo/ui" && pnpm install --frozen-lockfile >/dev/null) - spawn vite "$repo/ui" pnpm exec vite --host 127.0.0.1 --port 5173 --strictPort - wait_port 5173 vite - for s in "${services[@]}" vite; do check_process "$s"; done - trap - ERR - echo "dashboard: http://localhost:5173 logs: $dir/logs" -} - -stop() { - local f - for f in "$dir"/pids/*; do stop_pid "$f"; done - if [ -f "$pgdata/PG_VERSION" ]; then - as_pg "$(pgbin)/pg_ctl" -D "$pgdata" -m fast stop >/dev/null 2>&1 || true - fi -} - -# Keep concurrent invocations from replacing each other's process records. -mkdir -p "$dir" -exec 9>"$dir/stack.lock" -flock -n 9 || { echo "Another e2e stack command is running" >&2; exit 1; } - -case ${1:-} in -start) start ;; -stop) stop ;; -restart) - stop_pid "$dir/pids/${2:?service}" - start_service "$2" - ;; -status) - for f in "$dir"/pids/*; do - [ -f "$f" ] || continue - if kill -0 "$(cat "$f")" 2>/dev/null; then echo "up $(basename "$f")"; else echo "down $(basename "$f")"; fi - done - ;; -reset) - stop - rm -rf "$dir" "$pgdata" - ;; -*) - echo "usage: $0 start | stop | restart | status | reset" >&2 - exit 2 - ;; -esac diff --git a/internal/app/archie/gate.go b/internal/app/archie/gate.go index b77dc252a..a76362726 100644 --- a/internal/app/archie/gate.go +++ b/internal/app/archie/gate.go @@ -3,10 +3,8 @@ package archie import ( "context" "errors" - "io/fs" "log/slog" "net/http" - "strings" "sync" "time" @@ -50,10 +48,9 @@ type gate struct { problem string } -// newGate returns a closed gate over the operational handler and the dashboard -// build its assets come from. -func newGate(ops http.Handler, dist fs.FS) *gate { - return &gate{ops: ops, setup: setupSurface(ops, dist)} +// newGate returns a closed gate over the operational handler. +func newGate(ops http.Handler) *gate { + return &gate{ops: ops, setup: setupSurface(ops)} } func (g *gate) ServeHTTP(w http.ResponseWriter, r *http.Request) { @@ -112,9 +109,9 @@ func serveSurface(checks *health.Registry, g *gate) *http.ServeMux { } // setupSurface answers the routes the setup page needs and refuses the rest. -func setupSurface(ops http.Handler, dist fs.FS) http.Handler { +func setupSurface(ops http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - if !setupRequest(r, dist) { + if !setupRequest(r) { httpjson.Error(w, http.StatusNotFound, "not found") return } @@ -122,31 +119,17 @@ func setupSurface(ops http.Handler, dist fs.FS) http.Handler { }) } -// setupRequest is the whole routing decision while the gate is closed: the setup -// page, the files it loads, and the two account operations it calls. Nothing else -// passes, so neither a deep link into the SPA nor a setup route called with the -// wrong method reaches a handler. -func setupRequest(r *http.Request, dist fs.FS) bool { +// setupRequest is the whole routing decision while the gate is closed: the two +// account operations the dashboard's setup page calls. Nothing else passes, so +// a setup route called with the wrong method never reaches a handler. +func setupRequest(r *http.Request) bool { switch r.URL.Path { case setUpAccountPath: return r.Method == http.MethodPost case authStatusPath: return r.Method == http.MethodGet || r.Method == http.MethodHead } - if r.Method != http.MethodGet && r.Method != http.MethodHead { - return false - } - return r.URL.Path == "/" || builtFile(r.URL.Path, dist) -} - -// builtFile reports whether path names a file in the dashboard build. A route -// inside the SPA does not, so a deep link cannot be served the setup page. -func builtFile(path string, dist fs.FS) bool { - if dist == nil { - return false - } - info, err := fs.Stat(dist, strings.TrimPrefix(path, "/")) - return err == nil && !info.IsDir() + return false } // setupLookup reads whether owner setup is still required. Durable state is the diff --git a/internal/app/archie/gate_test.go b/internal/app/archie/gate_test.go index 2b70ce920..83854e56b 100644 --- a/internal/app/archie/gate_test.go +++ b/internal/app/archie/gate_test.go @@ -11,11 +11,9 @@ import ( "sync" "sync/atomic" "testing" - "testing/fstest" "time" "github.com/samcharles93/archie-core/internal/platform/health" - "github.com/samcharles93/archie-core/modules/dashboard" "github.com/samcharles93/archie-core/modules/governance" ) @@ -57,19 +55,13 @@ func (r *reached) paths() []string { return append([]string(nil), r.seen...) } -// testServer builds the surface Run serves, with a stand-in for the API beside -// the real dashboard handler. The stand-in answers the routes the setup page -// calls and records every other route a request can reach. +// testServer builds the surface Run serves, with a stand-in for the API. The +// stand-in answers the routes the setup page calls and records every other +// route a request can reach. func testServer(t *testing.T) (*http.ServeMux, *reached, *gate) { t.Helper() hit := &reached{} - dist := fstest.MapFS{ - "index.html": {Data: []byte("archie setup")}, - "favicon.svg": {Data: []byte("")}, - "assets/app.js": {Data: []byte("console.log(1)")}, - } ops := http.NewServeMux() - dashboard.Routes(ops, dist) ops.HandleFunc("GET "+authStatusPath, func(w http.ResponseWriter, _ *http.Request) { _, _ = w.Write([]byte(`{"setup_required":true,"user":null}`)) }) @@ -86,7 +78,7 @@ func testServer(t *testing.T) (*http.ServeMux, *reached, *gate) { checks := health.NewRegistry() checks.Register("database", func(context.Context) error { return nil }) - g := newGate(ops, dist) + g := newGate(ops) return serveSurface(checks, g), hit, g } @@ -112,16 +104,10 @@ func TestClosedGateServesOnlySetup(t *testing.T) { admin bool status int body string - // servedAsPage marks a response the dashboard handler writes, which must - // keep the CSP that stops chat-rendered Markdown loading a remote image. - servedAsPage bool }{ {name: "auth status", method: http.MethodGet, path: authStatusPath, status: http.StatusOK, body: `"setup_required":true`}, {name: "auth status by head", method: http.MethodHead, path: authStatusPath, status: http.StatusOK}, {name: "set up the owner", method: http.MethodPost, path: setUpAccountPath, status: http.StatusCreated}, - {name: "the setup page", method: http.MethodGet, path: "/", status: http.StatusOK, body: "archie setup", servedAsPage: true}, - {name: "a script the page loads", method: http.MethodGet, path: "/assets/app.js", status: http.StatusOK, body: "console.log(1)", servedAsPage: true}, - {name: "the page icon", method: http.MethodGet, path: "/favicon.svg", status: http.StatusOK, body: "", servedAsPage: true}, {name: "liveness", method: http.MethodGet, path: "/healthz", status: http.StatusOK, body: "ok\n"}, // From here down nothing reaches a handler, credential or not. @@ -139,9 +125,8 @@ func TestClosedGateServesOnlySetup(t *testing.T) { {name: "setup by GET", method: http.MethodGet, path: setUpAccountPath, status: http.StatusNotFound}, {name: "status by POST", method: http.MethodPost, path: authStatusPath, status: http.StatusNotFound}, {name: "status with a trailing slash", method: http.MethodGet, path: authStatusPath + "/", status: http.StatusNotFound}, - {name: "the page by POST", method: http.MethodPost, path: "/", status: http.StatusNotFound}, - {name: "a script by POST", method: http.MethodPost, path: "/assets/app.js", status: http.StatusNotFound}, - {name: "a file the build has no name for", method: http.MethodGet, path: "/assets/missing.js", status: http.StatusNotFound}, + {name: "the root path", method: http.MethodGet, path: "/", status: http.StatusNotFound}, + {name: "a dashboard asset", method: http.MethodGet, path: "/assets/app.js", status: http.StatusNotFound}, } for _, tc := range tests { @@ -157,12 +142,6 @@ func TestClosedGateServesOnlySetup(t *testing.T) { if got := hit.count(); got != 0 { t.Fatalf("%s %s: %d operational handlers ran, want none (reached %v)", tc.method, tc.path, got, hit.paths()) } - if tc.servedAsPage { - // Mirrors the dashboard's own header: the setup page must not lose it. - if got := rec.Header().Get("Content-Security-Policy"); got != "img-src 'self' data:" { - t.Fatalf("%s %s: Content-Security-Policy = %q, want the dashboard's", tc.method, tc.path, got) - } - } }) } } @@ -187,7 +166,6 @@ func TestOpenGateServesOperations(t *testing.T) { {name: "OpenAPI document", method: http.MethodGet, path: "/api/openapi", status: http.StatusOK, handled: 1}, {name: "sign in", method: http.MethodPost, path: "/api/auth/login", status: http.StatusOK, handled: 1}, {name: "OIDC sign in", method: http.MethodGet, path: "/oauth2/login", status: http.StatusOK, handled: 1}, - {name: "a route inside the SPA", method: http.MethodGet, path: "/tasks", status: http.StatusOK, body: "archie setup"}, } for _, tc := range tests { diff --git a/internal/app/archie/run.go b/internal/app/archie/run.go index 8fc77cfc3..7127941fb 100644 --- a/internal/app/archie/run.go +++ b/internal/app/archie/run.go @@ -25,6 +25,7 @@ import ( "github.com/samcharles93/archie-core/internal/platform/deletions" "github.com/samcharles93/archie-core/internal/platform/health" "github.com/samcharles93/archie-core/internal/platform/httpapi" + "github.com/samcharles93/archie-core/internal/platform/httpjson" "github.com/samcharles93/archie-core/internal/platform/hub" "github.com/samcharles93/archie-core/internal/platform/pg" "github.com/samcharles93/archie-core/internal/platform/seal" @@ -33,7 +34,6 @@ import ( "github.com/samcharles93/archie-core/modules/audit" "github.com/samcharles93/archie-core/modules/chat" "github.com/samcharles93/archie-core/modules/connectors" - "github.com/samcharles93/archie-core/modules/dashboard" "github.com/samcharles93/archie-core/modules/deliveries" "github.com/samcharles93/archie-core/modules/events" "github.com/samcharles93/archie-core/modules/governance" @@ -42,7 +42,6 @@ import ( "github.com/samcharles93/archie-core/modules/proposals" "github.com/samcharles93/archie-core/modules/runs" "github.com/samcharles93/archie-core/modules/system" - "github.com/samcharles93/archie-core/ui" ) // deletionRecordRetry is how often an incomplete record of a committed deletion @@ -277,9 +276,9 @@ func wire(log *slog.Logger, cfg Config, db *sqlx.DB, draining *atomic.Bool, metr hear: hear, judge: judge, engine: engine, chat: talk, proposals: proposed, notes: remember, auditLog: auditLog, db: db, bundleLog: log.With("module", "bundles"), live: live, }.register(api) - dashboard.Routes(mux, ui.DistDirFS) + mux.HandleFunc("/", unclaimed) - g := newGate(mux, ui.DistDirFS) + g := newGate(mux) served := http.Handler(serveSurface(checks, g)) if metrics != nil { served = metrics.Middleware(served) @@ -297,6 +296,12 @@ func wire(log *slog.Logger, cfg Config, db *sqlx.DB, draining *atomic.Bool, metr }, nil } +// unclaimed answers a path no module registered. The dashboard is served +// separately, so every such path is a JSON 404. +func unclaimed(w http.ResponseWriter, _ *http.Request) { + httpjson.Error(w, http.StatusNotFound, "no such route") +} + func wireMemory(db *sqlx.DB, log *slog.Logger, stateDir string, checks *health.Registry) (*memory.Module, error) { // The record of deletions outlives this process and its database, so the // log exists before anything can be deleted: an instance that has run this diff --git a/ui/pages/pages.json b/internal/gateway/dashboard_pages.json similarity index 100% rename from ui/pages/pages.json rename to internal/gateway/dashboard_pages.json diff --git a/internal/gateway/dashboard_tools.go b/internal/gateway/dashboard_tools.go index af8cca051..54b44d58e 100644 --- a/internal/gateway/dashboard_tools.go +++ b/internal/gateway/dashboard_tools.go @@ -2,38 +2,40 @@ package gateway import ( "context" + _ "embed" + json "encoding/json/v2" "errors" "fmt" "strings" "github.com/samcharles93/archie-core/internal/prompts" "github.com/samcharles93/archie-core/internal/tools" - "github.com/samcharles93/archie-core/ui/pages" ) // DashboardPage describes one dashboard surface so the chat agent can both -// understand what each place is for and point the operator there. It is the -// catalogue the dashboard's own navigation renders from (ui/pages), so a page -// the assistant can name is a page the operator can reach. +// understand what each place is for and point the operator there. type DashboardPage struct { // Path is the route (e.g. "/tasks"). It is what the browser hash becomes. - Path string + Path string `json:"path"` // Label is the human name the navigation shows (e.g. "Tasks"). - Label string + Label string `json:"label"` // Description is a one-line plain-language explanation of what the page // shows, so the agent can answer "where do I go for that?" correctly. - Description string + Description string `json:"description"` } +// dashboardPages is a snapshot of the dashboard's page catalogue, taken when +// the dashboard moved to its own repository. This service is being replaced, +// so the snapshot is not kept in step with the dashboard. +// +//go:embed dashboard_pages.json +var dashboardPages []byte + // DashboardPages returns the dashboard's page catalogue, in its own order. func DashboardPages() ([]DashboardPage, error) { - catalogue, err := pages.All() - if err != nil { - return nil, err - } - out := make([]DashboardPage, 0, len(catalogue)) - for _, p := range catalogue { - out = append(out, DashboardPage{Path: p.Path, Label: p.Label, Description: p.Description}) + var out []DashboardPage + if err := json.Unmarshal(dashboardPages, &out); err != nil { + return nil, fmt.Errorf("dashboard pages: %w", err) } return out, nil } diff --git a/internal/webui/assets_test.go b/internal/webui/assets_test.go deleted file mode 100644 index c9a8dfc8e..000000000 --- a/internal/webui/assets_test.go +++ /dev/null @@ -1,26 +0,0 @@ -package webui - -import ( - "net/http" - "net/http/httptest" - "testing" -) - -func TestAssetsFallbackStopsAtAPI(t *testing.T) { - tests := []struct { - path string - want int - }{ - {"/api/control-plane/unknown", http.StatusNotFound}, - {"/tasks/12", http.StatusOK}, - } - for _, tt := range tests { - t.Run(tt.path, func(t *testing.T) { - rec := httptest.NewRecorder() - new(Server).assets().ServeHTTP(rec, httptest.NewRequestWithContext(t.Context(), http.MethodGet, tt.path, nil)) - if rec.Code != tt.want { - t.Fatalf("status %d, want %d", rec.Code, tt.want) - } - }) - } -} diff --git a/internal/webui/server.go b/internal/webui/server.go index d26826682..79ec04743 100644 --- a/internal/webui/server.go +++ b/internal/webui/server.go @@ -4,7 +4,6 @@ package webui import ( "context" "encoding/json" - "io/fs" "log/slog" "net/http" "strconv" @@ -12,8 +11,6 @@ import ( "sync" "time" - "github.com/klauspost/compress/gzhttp" - controlpb "github.com/samcharles93/archie-core/internal/contracts/controlplane/v1" "github.com/samcharles93/archie-core/internal/domain/access" "github.com/samcharles93/archie-core/internal/domain/audit" @@ -28,7 +25,6 @@ import ( "github.com/samcharles93/archie-core/internal/logging" "github.com/samcharles93/archie-core/internal/ratelimit" "github.com/samcharles93/archie-core/internal/secret" - "github.com/samcharles93/archie-core/ui" ) type Server struct { @@ -395,45 +391,12 @@ func (s *Server) handleHealthz(w http.ResponseWriter, _ *http.Request) { _, _ = w.Write([]byte("ok")) } -// assets serves the embedded dashboard, falling back to index.html so client -// routes deep-link correctly. An unserved /api path is a 404, never the page. -// Under the no_ui build tag the assets are absent and a plain explanation is -// served instead of a confusing 404. +// assets answers every path no handler claimed. The dashboard ships as its own +// image, and this service does not serve it. func (s *Server) assets() http.Handler { - if ui.DistDirFS == nil { - return http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) { - http.Error(w, "dashboard not built into this binary (no_ui)", http.StatusNotFound) - }) - } - files := http.FileServerFS(ui.DistDirFS) - return gzhttp.GzipHandler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - if strings.HasPrefix(r.URL.Path, "/api/") { - http.Error(w, "this archied does not serve "+r.URL.Path, http.StatusNotFound) - return - } - if _, err := fs.Stat(ui.DistDirFS, trimLeadingSlash(r.URL.Path)); err != nil { - r = r.Clone(r.Context()) - r.URL.Path = "/" - } - // Asset names carry a content hash, so a cached copy never goes stale; - // index.html names the current hashes and must always be revalidated. - if strings.HasPrefix(r.URL.Path, "/assets/") { - w.Header().Set("Cache-Control", "public, max-age=31536000, immutable") - } else { - w.Header().Set("Cache-Control", "no-cache") - } - files.ServeHTTP(w, r) - })) -} - -func trimLeadingSlash(p string) string { - if len(p) > 0 && p[0] == '/' { - return p[1:] - } - if p == "" { - return "." - } - return p + return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + http.Error(w, "this service does not serve "+r.URL.Path, http.StatusNotFound) + }) } // healthDetailedRoute is the instance health report. diff --git a/modules/dashboard/dashboard.go b/modules/dashboard/dashboard.go deleted file mode 100644 index ad55e8345..000000000 --- a/modules/dashboard/dashboard.go +++ /dev/null @@ -1,69 +0,0 @@ -// Package dashboard serves the single binary's SPA: index.html and its -// assets from the embedded build. Every other route belongs to a module. -package dashboard - -import ( - "io/fs" - "net/http" - "strings" - - "github.com/samcharles93/archie-core/internal/platform/httpjson" -) - -const page = "index.html" - -// csp is the browser-side backstop for chat-rendered Markdown: no remote -// image may load, so a reply cannot leak data through an image request. It -// is image-only on purpose; every other directive would risk breaking the -// SPA's scripts and styles. -const csp = "img-src 'self' data:" - -// Routes serves the SPA from dist on mux. A path under /api/ that no module -// claimed is a JSON 404, never the page. With no build embedded, the page -// says how to build it. -// -// One pattern serves both: a method-scoped fallback beside the /api/ catch-all -// is a ServeMux conflict, since Go matches the more general pattern for the -// methods the other doesn't name. -func Routes(mux *http.ServeMux, dist fs.FS) { - mux.Handle("/", handler(dist)) -} - -func handler(dist fs.FS) http.Handler { - if dist == nil { - return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - if strings.HasPrefix(r.URL.Path, "/api/") { - httpjson.Error(w, http.StatusNotFound, "no such route") - return - } - w.Header().Set("Content-Security-Policy", csp) - http.Error(w, "this binary was built without the dashboard; run task ui and rebuild", http.StatusNotFound) - }) - } - files := http.FileServerFS(dist) - return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - if strings.HasPrefix(r.URL.Path, "/api/") { - httpjson.Error(w, http.StatusNotFound, "no such route") - return - } - w.Header().Set("Content-Security-Policy", csp) - if r.Method != http.MethodGet && r.Method != http.MethodHead { - w.Header().Set("Allow", "GET, HEAD") - http.Error(w, "the dashboard is read-only", http.StatusMethodNotAllowed) - return - } - name := strings.TrimPrefix(r.URL.Path, "/") - if name != "" && name != page { - if info, err := fs.Stat(dist, name); err == nil && !info.IsDir() { - if strings.HasPrefix(name, "assets/") { - w.Header().Set("Cache-Control", "public, max-age=31536000, immutable") - } - files.ServeHTTP(w, r) - return - } - } - // Every other path is a route inside the SPA. - w.Header().Set("Cache-Control", "no-store") - http.ServeFileFS(w, r, dist, page) - }) -} diff --git a/modules/dashboard/dashboard_test.go b/modules/dashboard/dashboard_test.go deleted file mode 100644 index c0336e676..000000000 --- a/modules/dashboard/dashboard_test.go +++ /dev/null @@ -1,57 +0,0 @@ -package dashboard - -import ( - "io/fs" - "net/http" - "net/http/httptest" - "strings" - "testing" - "testing/fstest" -) - -// TestRoutesServeThePageBesideTheAPICatchAll guards a boot-time panic: a -// method-scoped "GET /" fallback cannot sit beside the "/api/" catch-all on one -// ServeMux, so the binary crashed on start with the dashboard built in. It also -// pins what each path answers: an unclaimed API path is a JSON 404 rather than -// the page, and the page is read-only. -func TestRoutesServeThePageBesideTheAPICatchAll(t *testing.T) { - dist := fstest.MapFS{ - page: &fstest.MapFile{Data: []byte("archie")}, - "assets/app-1.js": &fstest.MapFile{Data: []byte("console.log(1)")}, - } - tests := []struct { - name string - dist fs.FS - method string - path string - wantStatus int - wantContent string - // wantCSP pins the image-only Content-Security-Policy backstop on - // every non-API response (#2073); API fallbacks must not carry it. - wantCSP string - }{ - {name: "the page serves a client route", dist: dist, method: http.MethodGet, path: "/runs/42", wantStatus: http.StatusOK, wantContent: "archie", wantCSP: "img-src 'self' data:"}, - {name: "an asset serves as itself", dist: dist, method: http.MethodGet, path: "/assets/app-1.js", wantStatus: http.StatusOK, wantContent: "console.log(1)", wantCSP: "img-src 'self' data:"}, - {name: "an unclaimed API path is JSON", dist: dist, method: http.MethodGet, path: "/api/nope", wantStatus: http.StatusNotFound, wantContent: "no such route"}, - {name: "an API path denies every method", dist: dist, method: http.MethodPost, path: "/api/nope", wantStatus: http.StatusNotFound, wantContent: "no such route"}, - {name: "the page is read-only", dist: dist, method: http.MethodPost, path: "/runs", wantStatus: http.StatusMethodNotAllowed, wantContent: "read-only", wantCSP: "img-src 'self' data:"}, - {name: "a build without the dashboard says how to make it", method: http.MethodGet, path: "/runs", wantStatus: http.StatusNotFound, wantContent: "task ui", wantCSP: "img-src 'self' data:"}, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - mux := http.NewServeMux() - Routes(mux, tt.dist) - w := httptest.NewRecorder() - mux.ServeHTTP(w, httptest.NewRequestWithContext(t.Context(), tt.method, tt.path, nil)) - if w.Code != tt.wantStatus { - t.Fatalf("status = %d, want %d", w.Code, tt.wantStatus) - } - if body := w.Body.String(); !strings.Contains(body, tt.wantContent) { - t.Fatalf("body = %q, want it to contain %q", body, tt.wantContent) - } - if csp := w.Header().Get("Content-Security-Policy"); csp != tt.wantCSP { - t.Fatalf("Content-Security-Policy = %q, want %q", csp, tt.wantCSP) - } - }) - } -} diff --git a/modules/dashboard/stream.go b/modules/dashboard/stream.go index d9066fc97..001af7582 100644 --- a/modules/dashboard/stream.go +++ b/modules/dashboard/stream.go @@ -1,3 +1,4 @@ +// Package dashboard serves the dashboard's live event stream. package dashboard import ( diff --git a/tools/cloud-setup.sh b/tools/cloud-setup.sh index 614a5e164..3bcbada5c 100755 --- a/tools/cloud-setup.sh +++ b/tools/cloud-setup.sh @@ -44,14 +44,6 @@ go install "github.com/bufbuild/buf/cmd/buf@$BUF_VERSION" go install "google.golang.org/protobuf/cmd/protoc-gen-go@$PROTOC_GEN_GO_VERSION" go install "google.golang.org/grpc/cmd/protoc-gen-go-grpc@$PROTOC_GEN_GO_GRPC_VERSION" -# PostgreSQL 18 for e2e/stack.sh, which runs its own cluster. Never for -# tests: they use fakes. -if [ ! -x /usr/lib/postgresql/18/bin/postgres ]; then - $SUDO apt-get install -y --no-install-recommends postgresql-common - $SUDO /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y - $SUDO apt-get install -y --no-install-recommends postgresql-18 -fi - # Commit and PR attribution stays off, matching local settings. mkdir -p "$HOME/.claude" settings="$HOME/.claude/settings.json" @@ -77,11 +69,10 @@ git config --global user.email sam@catlow.tech # tools onto the default PATH instead. $SUDO ln -sf /usr/local/go/bin/* "$GOBIN"/* /usr/local/bin/ -# Warm module and pnpm caches when the checkout is already present. +# Warm the module cache when the checkout is already present. repo=${CLAUDE_PROJECT_DIR:-$PWD} if [ -f "$repo/go.mod" ] && grep -q archie-core "$repo/go.mod"; then (cd "$repo" && go mod download && go -C tools mod download) - (cd "$repo/ui" && corepack enable pnpm && pnpm install --frozen-lockfile) fi go version diff --git a/ui/AGENTS.md b/ui/AGENTS.md deleted file mode 100644 index ff44b5681..000000000 --- a/ui/AGENTS.md +++ /dev/null @@ -1,175 +0,0 @@ -# UI agent rules - -These rules supplement the repository root's AGENTS.md. Its authority, service -boundaries, security invariants, issue workflow and commit gate still apply. -CLAUDE.md points here so both agents use one policy. - -## Scope - -The dashboard is Vue 3, TypeScript, Pinia and Vue Router, with Tailwind and -vendored shadcn-vue components backed by Reka UI. It talks to the control plane -through src/lib/api.ts. The server owns contracts, authorisation and durable -state; the UI presents them and submits operator choices. - -- Fix broken behaviour with the smallest complete change. Finish existing - features before adding new ones. Do not add an abstraction or dependency for a - few lines of code. -- Read the affected callers and existing components before editing. Keep feature - state and behaviour in its feature folder; shared code must have real - consumers. Do not extract production helpers solely to make them testable. -- Preserve server vocabulary and typed wire values. Do not invent local status, - action or model catalogues when the server supplies them. -- Keep requests in src/lib/api.ts and shared live updates in the existing store. - Preserve its authentication, CSRF, timeout and error handling. -- Keep unavailable, loading, empty and failed states distinct. Show failures - where they occur; an unreadable list must not look like an empty one. -- Async views must discard stale responses after their task, attempt or route - changes. A setting must save through the API and show its applied state. -- Build in safety. Edits go to a draft and reach the running workflow only when - you publish. -- Never lose work silently. If two things can write the same state (for example, - Archie and the operator), lock one out or merge them; never let one silently - overwrite the other. -- Phone width is a real target. No global CSS rule may deform controls. Desktop - layouts must collapse cleanly: dropdowns instead of side lists, stacked panes, - and nothing overlapping the canvas. - -## Routing and layout - -- Routes are files. `src/pages/` mirrors the URL: a list is `index.vue`, its - detail is `[id].vue`, and a section's shared frame is `.vue` beside the - `/` folder. Nav label, description, `section` and `navPath` go in the - page's `definePage` meta; `pages.json` is generated from it. -- A page's own code lives beside it: `components/` for `.vue` files (excluded - from routing) and `lib/` for modules. Code used by several pages goes in - `src/components`, `src/lib` or `src/stores`, never in another page's folder. -- Layouts are `src/layouts`, chosen by `meta.layout`. Change shared chrome there, - not in a page. -- State that picks a view (a tab, a step) is a route, not `?tab=`. Query strings - carry filters and selections only. - -## Product scope - -- Respect the existing feature set. New features honour instructions, policies, - grants and the access model (ReBAC/ABAC with Cedar). An agent tool never - reaches further than its caller could through the dashboard. -- Agentic automation, not a coding agent. A repository is one optional input to - a workflow, not the frame for anything. -- Smallest change first. Reuse what exists, such as the change-review list, - drafts and the existing MCP bridge, before adding new mechanism. - -## Components and interaction - -- Build pages only from components/ui and the page frame in src/base (PageHeader - for a page title and its actions, CodeView for code or a payload with a copy - button). Use Section for a titled card, SettingRow for a setting, MetadataList - for label/value pairs, and DataTable for a table with optional columns. Use - Item for a list row, Field for a form field, Badge and StatusDot for state, - and Timestamp for times. Use MoreMenu for overflow actions, Empty for empty - states (including an empty value or result), ReadError for a failed read, and - Skeleton while loading. Use Trace for an agent's steps and - CodeBlockCopyButton to copy an ID or value. Use the type scale (text-caption, - text-label, text-title) instead of pixel sizes. - Never hand-roll a card, heading, caption, status dot, copy button or date - format; if a pattern is missing, add it to components/ui with a real consumer - first. -- Add and update components/ui components with the shadcn-vue CLI, never by - writing or copying them by hand: `pnpm dlx shadcn-vue@latest add ` from - `ui/`, or the component's registry URL when the maintainer names one. Search - the registry before writing a missing pattern yourself, and write one only - when no registry has it. The CLI runs through `pnpm dlx`, so it never joins - the application's dependencies. -- Reuse components/ui and surrounding composition patterns before writing new - markup. -- Use semantic theme tokens, existing variants and cn() for conditional classes. - Support both themes, compact density and reduced motion. -- Keep controls compact and contextual. Use on-demand panels and inline - hover/focus icon actions rather than permanent chrome. Do not repeat labels in - explanatory text or add controls without working behaviour. -- Text states a problem or an action, nothing else. Delete lines that only - describe what the screen already shows (for example, "Compared with the - current definition", "Same as the current definition", "Refreshed every 5 - seconds", "Showing recent matches…", "Live only"). -- Do not label a control that explains itself. A switch needs no "Enabled" - beside it, and `+` needs no "New workflow" next to it. Put the name in the - accessible name or tooltip. -- Option labels do not repeat their category. Under "Checks", list "Repository", - "Diff size" and "Diff rules", not "Repository gate". -- Name things after what you are working with. The page sets context, so use - "Restore default" not "Restore shipped workflows". -- No filler or guidance text. Delete empty-state essays, hints that repeat the - label, and sentences explaining how the UI works. Don't say the UI hides - secret values when the control only displays credential names. -- Use Archie's product names. The editor helper is "Build with Archie" or - "Iterate with Archie", never generic terms like "Ask bar". -- Actions live where their scope lives. Bulk or instance-wide actions (for - example, restoring defaults) belong on the settings page for that area, not in - a working view's header menu. -- No side panels for editing workflows. Settings, trigger and steps expand in - place on the canvas, one at a time, with the main field first and the rest - tucked away. -- Editor and live view are one surface. Runs show on the same cards you edit. -- Use Select components for a known set of options. Avoid native selects and - free text. Use the same button and badge styles as the settings pages. -- Preserve keyboard operation, visible focus, accessible names, dialog titles - and table semantics. A hover action must also be reachable by keyboard. -- Keep filtering and pagination consistent with the server. State limitations - such as sorting only loaded rows when they affect the operator's decision. -- `@ui-sdk/vue` and `@ui-sdk/core` are adopted incrementally alongside - `components/ui` (`shadcn-vue` / Reka UI) for high-value interactive - components and custom behaviours. Before writing or editing `@ui-sdk` code, - read `node_modules/@ui-sdk/core/skills/ui-sdk/SKILL.md` and - `node_modules/@ui-sdk/vue/docs/llms.txt` (and `core.md` / `rendering.md` when - building a custom primitive). Give every `@ui-sdk` control a clear accessible - name, sync state through change callbacks, and mark destructive actions with - `data-agent-confirm`. - -## Tests - -The default is no new test. Add one for a reproduced bug or a change to a -security boundary or workflow contract, following the root policy. A regression -must fail on the relevant assertion before the fix. - -- Test observable behaviour with realistic inputs. Do not test source text, - imports, wiring, constants, defaults, type shapes, CSS classes, copied labels, - fakes or call order. A fake may support a behaviour test; it is not the - subject. -- Use one table-driven test per behaviour. Extend its cases rather than adding - tests for each branch. Retain meaningful edge cases; reducing the count alone - is not a cleanup. -- Keep tests fast and cheap to maintain. Test helpers and fixtures belong in - test/, never in production code solely for tests. -- For mirrored control-plane validators, extend the shared fixture at - internal/infrastructure/controlplanestore/testdata/dashboard-validators.json - rather than duplicating accept/reject cases in UI-only tests. -- Use browser checks for rendered behaviour. Matching a Vue file with a regex - does not verify the rendered result. Mocked API checks verify UI behaviour, - not live service integration; report that distinction. - -## Verification and delivery - -```bash -pnpm test # behaviour tests -pnpm run typecheck # TypeScript and Vue checks -pnpm run build # rebuild the embedded dashboard -pnpm audit # after dependency changes -``` - -- Run task check from the repository root before committing; stage only the - task's own paths. Follow the root's commit and push rules. -- ui/dist is build output: `task build` and CI build it before embedding it. - Never commit it. -- Reuse a running dev server for browser checks. Verify changed interactions, - not just a screenshot or successful HTTP response. -- Track work and follow-ups as Gitea issues (`tea`). Keep rules here only when - they change a decision; do not add task history or Markdown TODO lists. - -## Working with you - -- A clear direction is the go-ahead. Act in the same turn; do not restate the - plan, offer options, or ask whether to proceed. -- Say each correction once. When you correct something, fix every instance and - record the rule here so you do not repeat it. -- Delegate to pi workers when asked, and verify their output. Check for overlap - before merging, rerun their checks on the combined result, and fix what they - find. diff --git a/ui/CLAUDE.md b/ui/CLAUDE.md deleted file mode 120000 index 47dc3e3d8..000000000 --- a/ui/CLAUDE.md +++ /dev/null @@ -1 +0,0 @@ -AGENTS.md \ No newline at end of file diff --git a/ui/components.json b/ui/components.json deleted file mode 100644 index b9a36ae24..000000000 --- a/ui/components.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "$schema": "https://shadcn-vue.com/schema.json", - "style": "reka-nova", - "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/embed.go b/ui/embed.go deleted file mode 100644 index a6c3cc3aa..000000000 --- a/ui/embed.go +++ /dev/null @@ -1,17 +0,0 @@ -//go:build !no_ui - -// Package ui embeds the built dashboard in dist/. `task ui` builds it, and -// `task build` and CI build it before any Go build that embeds it. -package ui - -import ( - "embed" - "io/fs" -) - -//go:embed all:dist -var distDir embed.FS - -// DistDirFS is the built dashboard rooted at dist/, or nil when the binary -// was built with the no_ui tag. -var DistDirFS, _ = fs.Sub(distDir, "dist") diff --git a/ui/embed_no_ui.go b/ui/embed_no_ui.go deleted file mode 100644 index baeea0273..000000000 --- a/ui/embed_no_ui.go +++ /dev/null @@ -1,11 +0,0 @@ -//go:build no_ui - -package ui - -import "io/fs" - -// DistDirFS is deliberately nil under the no_ui build tag so the dashboard is -// not bundled. archie-agent has no use for it, and leaving it out keeps the -// per-task container image smaller. internal/webui serves an explanatory page -// rather than failing when this is nil. -var DistDirFS fs.FS diff --git a/ui/index.html b/ui/index.html deleted file mode 100644 index c2e1973a8..000000000 --- a/ui/index.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - Archie - - - -
- - - diff --git a/ui/package.json b/ui/package.json deleted file mode 100644 index a030edd43..000000000 --- a/ui/package.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "name": "archie-ui", - "private": true, - "version": "0.0.0", - "type": "module", - "scripts": { - "dev": "vite", - "build": "vue-tsc -b && vite build", - "preview": "vite preview", - "test": "node --test --experimental-strip-types test/*.test.ts", - "typecheck": "vue-tsc --build --force" - }, - "dependencies": { - "@fontsource-variable/ibm-plex-sans": "^5.3.0", - "@fontsource/ibm-plex-mono": "^5.3.0", - "@lucide/vue": "^1.61.0", - "@tailwindcss/vite": "^4.3.3", - "@tanstack/vue-form": "^1.33.5", - "@ui-sdk/core": "0.1.0-beta.16", - "@ui-sdk/vue": "0.1.0-beta.16", - "@vue-flow/background": "^1.3.2", - "@vue-flow/core": "^1.48.2", - "@vueuse/core": "^15.0.0", - "class-variance-authority": "^0.7.1", - "clsx": "^2.1.1", - "cn": "^0.5.1", - "pinia": "^4.0.3", - "qrcode": "^1.5.4", - "reka-ui": "^2.10.5", - "remark-gfm": "^4.0.1", - "remark-parse": "^11.0.0", - "remark-rehype": "^11.1.2", - "shiki": "^4.5.0", - "tailwind-merge": "^3.7.0", - "tailwindcss": "^4.3.3", - "tw-animate-css": "^1.4.0", - "unified": "^11.0.5", - "vue": "^3.5.42", - "vue-router": "^5.3.1", - "vue-sonner": "^2.0.9", - "yaml": "^2.9.1" - }, - "devDependencies": { - "@types/hast": "^3.0.5", - "@types/node": "^26.6.4", - "@types/qrcode": "^1.5.6", - "@vitejs/plugin-vue": "^6.0.8", - "@vue/tsconfig": "^0.9.1", - "typescript": "~6.0.3", - "vite": "^8.3.0", - "vue-tsc": "^3.3.11" - }, - "packageManager": "pnpm@12.10.1" -} diff --git a/ui/pages/pages.go b/ui/pages/pages.go deleted file mode 100644 index cefdc6c0e..000000000 --- a/ui/pages/pages.go +++ /dev/null @@ -1,37 +0,0 @@ -// Package pages is the dashboard's page catalogue: every route the operator can -// reach, with the label its navigation shows and the one-line description the -// assistant reads when it points someone at a page. -// -// pages.json is generated from the dashboard's own route table by -// `task pages:generate`, and `task check` rejects it when stale, so the -// catalogue cannot list a page the dashboard lost or miss one it gained. -package pages - -import ( - _ "embed" - "encoding/json" - "fmt" -) - -//go:embed pages.json -var file []byte - -// Page is one destination in the dashboard. -type Page struct { - // Path is the route, and what the browser's history entry becomes. - Path string `json:"path"` - // Label is the name the navigation shows. - Label string `json:"label"` - // Description says what the page is for, so the assistant can answer - // "where do I go for that?" without guessing. - Description string `json:"description"` -} - -// All returns the catalogue in the dashboard's own order. -func All() ([]Page, error) { - var out []Page - if err := json.Unmarshal(file, &out); err != nil { - return nil, fmt.Errorf("dashboard pages: %w", err) - } - return out, nil -} diff --git a/ui/pnpm-lock.yaml b/ui/pnpm-lock.yaml deleted file mode 100644 index 7abbbb4d0..000000000 --- a/ui/pnpm-lock.yaml +++ /dev/null @@ -1,3254 +0,0 @@ ---- -lockfileVersion: '9.0' - -importers: - - .: - configDependencies: {} - packageManagerDependencies: - pnpm: - specifier: 12.10.1 - version: 12.10.1 - -packages: - - '@pnpm/exe.android-arm64@12.10.1': - resolution: {integrity: sha512-CVTlHPwNvadQCJD9bGSMzWIhFX8QpjtqC2c27dhdnn/9iKzEjZ3qL62o3gHpKbIuo6qn4WxTKRoaokgNdReBig==} - cpu: [arm64] - os: [android] - - '@pnpm/exe.android-x64@12.10.1': - resolution: {integrity: sha512-NFiYLIaodY7da0XIebwcU3JoP7IK/lzF7zgKSSP+9H+QcFnQ1GDfBkuBKCYJzZ+Xu0WH54neIPLBBCaOjaaauA==} - cpu: [x64] - os: [android] - - '@pnpm/exe.darwin-arm64@12.10.1': - resolution: {integrity: sha512-0O8tdQ8ijlPJudXspLMTcitMkdBEz6uUflazL5uQE0WMs85oQIp0U+5hfEktMFB64QqEhjqlvvujTwbzdr9oMg==} - cpu: [arm64] - os: [darwin] - - '@pnpm/exe.darwin-x64@12.10.1': - resolution: {integrity: sha512-ud+1/uZOKEo8P/AsPynOJc/LNwfI0j6WwCElibj71rU9l4nIBnsSn+wWTIPZPkZ4BBSH5+82azSnAARMyJ1lNA==} - cpu: [x64] - os: [darwin] - - '@pnpm/exe.freebsd-x64@12.10.1': - resolution: {integrity: sha512-mj9PE5rf8uAfQQ2K66HSATMSut+lNiB4eSqFd5+azFVCMnxNSy/32xpZQJT21PhnN3Y4qbK+iKHe5nWAxSuRhw==} - cpu: [x64] - os: [freebsd] - - '@pnpm/exe.linux-arm64-musl@12.10.1': - resolution: {integrity: sha512-xba+00wZJ8Um6rBJJjWl88uJj0tydB8dtomvjlCLvi0uL32vpa9CRP8Vv26FIXvbiZ1bo2RCzYt/eChxJVV52w==} - cpu: [arm64] - os: [linux] - libc: [musl] - - '@pnpm/exe.linux-arm64@12.10.1': - resolution: {integrity: sha512-oBdMp69ScC9UnniG4qZAQVr2fBDSXjm4yk/72vkEVyrlwS23yMxcRQl7Qdo3sgXPAygY6TWnPRKm4rXzjoyW7w==} - cpu: [arm64] - os: [linux] - libc: [glibc] - - '@pnpm/exe.linux-ppc64@12.10.1': - resolution: {integrity: sha512-Yyb3wu09h3c7mLme270uHFiVaAIUHC411Ru9LIU2BKUIstrGlXa9OqqVWoXaRgYRdFdOFknkwG7GNn6ygwLbnw==} - cpu: [ppc64] - os: [linux] - libc: [glibc] - - '@pnpm/exe.linux-riscv64@12.10.1': - resolution: {integrity: sha512-PdkeUFFkybknnGkWP0H22eMpIiS4OZXL5BcQzF4lh+vmrW3IaC2HOkbANKgot/PKO0Kl77pzA/6PKFxgbgfXIQ==} - cpu: [riscv64] - os: [linux] - libc: [glibc] - - '@pnpm/exe.linux-s390x@12.10.1': - resolution: {integrity: sha512-1okKuHKJwJPAbofDxfhZWAUxEWtee4ZSf7Pah8kcvocaJkf2WxFJ5KVTiNIvDml5GLidDQsgf7Pcf/WHbCak7Q==} - cpu: [s390x] - os: [linux] - libc: [glibc] - - '@pnpm/exe.linux-x64-musl@12.10.1': - resolution: {integrity: sha512-e6IqzVNkPa7srFKJKnY23uWJ+qz0LaRWiTUo/sHfFXRRMRzB5uNOr6qWWip/jqhdGwU91n9J7LrEYZ6e0tRczw==} - cpu: [x64] - os: [linux] - libc: [musl] - - '@pnpm/exe.linux-x64@12.10.1': - resolution: {integrity: sha512-ZByV0DRgWzGaDSjT5ddRBASdwz+r/qPMYh7o6RGmPQjtRGNFbSl94xY2DcAM8mqCOZJUUDtAXQ+wpBXcdpKlkg==} - cpu: [x64] - os: [linux] - libc: [glibc] - - '@pnpm/exe.win32-arm64@12.10.1': - resolution: {integrity: sha512-I7QZHcjioG7orFeCRUFUHByJ1G0zFPnAlaGGyrUvb6MGkv5oeNwNPl7t+Gp+7zHfnMcgLGJ1a+Wfim0IDw3lOw==} - cpu: [arm64] - os: [win32] - - '@pnpm/exe.win32-x64@12.10.1': - resolution: {integrity: sha512-4WJFdp58EKlCj0zLobrXU0vpszSZIr4X/3y/uNbAQqGW0zE+VdruZB0gFc3L2kzsUzVwTYbaCn+XEhnCYSAlTg==} - cpu: [x64] - os: [win32] - - pnpm@12.10.1: - resolution: {integrity: sha512-ukCjfrGjcNYP6oxM8dNkwTvMzvUY6YrSvO6VT1OdONo3RY5YJho/pV4GUjRQ6g//+fSXsTW+QfLBXBZCusrObA==} - engines: {node: '>=18.*'} - hasBin: true - -snapshots: - - '@pnpm/exe.android-arm64@12.10.1': - optional: true - - '@pnpm/exe.android-x64@12.10.1': - optional: true - - '@pnpm/exe.darwin-arm64@12.10.1': - optional: true - - '@pnpm/exe.darwin-x64@12.10.1': - optional: true - - '@pnpm/exe.freebsd-x64@12.10.1': - optional: true - - '@pnpm/exe.linux-arm64-musl@12.10.1': - optional: true - - '@pnpm/exe.linux-arm64@12.10.1': - optional: true - - '@pnpm/exe.linux-ppc64@12.10.1': - optional: true - - '@pnpm/exe.linux-riscv64@12.10.1': - optional: true - - '@pnpm/exe.linux-s390x@12.10.1': - optional: true - - '@pnpm/exe.linux-x64-musl@12.10.1': - optional: true - - '@pnpm/exe.linux-x64@12.10.1': - optional: true - - '@pnpm/exe.win32-arm64@12.10.1': - optional: true - - '@pnpm/exe.win32-x64@12.10.1': - optional: true - - pnpm@12.10.1: - optionalDependencies: - '@pnpm/exe.android-arm64': 12.10.1 - '@pnpm/exe.android-x64': 12.10.1 - '@pnpm/exe.darwin-arm64': 12.10.1 - '@pnpm/exe.darwin-x64': 12.10.1 - '@pnpm/exe.freebsd-x64': 12.10.1 - '@pnpm/exe.linux-arm64': 12.10.1 - '@pnpm/exe.linux-arm64-musl': 12.10.1 - '@pnpm/exe.linux-ppc64': 12.10.1 - '@pnpm/exe.linux-riscv64': 12.10.1 - '@pnpm/exe.linux-s390x': 12.10.1 - '@pnpm/exe.linux-x64': 12.10.1 - '@pnpm/exe.linux-x64-musl': 12.10.1 - '@pnpm/exe.win32-arm64': 12.10.1 - '@pnpm/exe.win32-x64': 12.10.1 - ---- -lockfileVersion: '9.0' - -settings: - autoInstallPeers: true - excludeLinksFromLockfile: false - -importers: - - .: - dependencies: - '@fontsource-variable/ibm-plex-sans': - specifier: ^5.3.0 - version: 5.3.0 - '@fontsource/ibm-plex-mono': - specifier: ^5.3.0 - version: 5.3.0 - '@lucide/vue': - specifier: ^1.61.0 - version: 1.61.0(vue@3.5.44(typescript@6.0.3)) - '@tailwindcss/vite': - specifier: ^4.3.3 - version: 4.3.3(vite@8.3.5(@types/node@26.6.5)(jiti@2.7.0)(yaml@2.9.1)) - '@tanstack/vue-form': - specifier: ^1.33.5 - version: 1.33.5(vue@3.5.44(typescript@6.0.3)) - '@ui-sdk/core': - specifier: 0.1.0-beta.16 - version: 0.1.0-beta.16 - '@ui-sdk/vue': - specifier: 0.1.0-beta.16 - version: 0.1.0-beta.16(@ui-sdk/core@0.1.0-beta.16)(vue@3.5.44(typescript@6.0.3)) - '@vue-flow/background': - specifier: ^1.3.2 - version: 1.3.2(@vue-flow/core@1.48.2(vue@3.5.44(typescript@6.0.3)))(vue@3.5.44(typescript@6.0.3)) - '@vue-flow/core': - specifier: ^1.48.2 - version: 1.48.2(vue@3.5.44(typescript@6.0.3)) - '@vueuse/core': - specifier: ^15.0.0 - version: 15.0.0(vue@3.5.44(typescript@6.0.3)) - class-variance-authority: - specifier: ^0.7.1 - version: 0.7.1 - clsx: - specifier: ^2.1.1 - version: 2.1.1 - cn: - specifier: ^0.5.1 - version: 0.5.1 - pinia: - specifier: ^4.0.3 - version: 4.1.0(@vue/devtools-api@8.2.1)(typescript@6.0.3)(vue@3.5.44(typescript@6.0.3)) - qrcode: - specifier: ^1.5.4 - version: 1.5.4 - reka-ui: - specifier: ^2.10.5 - version: 2.11.0(vue@3.5.44(typescript@6.0.3)) - remark-gfm: - specifier: ^4.0.1 - version: 4.0.1 - remark-parse: - specifier: ^11.0.0 - version: 11.0.0 - remark-rehype: - specifier: ^11.1.2 - version: 11.1.2 - shiki: - specifier: ^4.5.0 - version: 4.5.0 - tailwind-merge: - specifier: ^3.7.0 - version: 3.7.0 - tailwindcss: - specifier: ^4.3.3 - version: 4.3.3 - tw-animate-css: - specifier: ^1.4.0 - version: 1.4.0 - unified: - specifier: ^11.0.5 - version: 11.0.5 - vue: - specifier: ^3.5.42 - version: 3.5.44(typescript@6.0.3) - vue-router: - specifier: ^5.3.1 - version: 5.4.0(@vue/compiler-sfc@3.5.44)(pinia@4.1.0(@vue/devtools-api@8.2.1)(typescript@6.0.3)(vue@3.5.44(typescript@6.0.3)))(rolldown@1.2.15)(vite@8.3.5(@types/node@26.6.5)(jiti@2.7.0)(yaml@2.9.1))(vue@3.5.44(typescript@6.0.3)) - vue-sonner: - specifier: ^2.0.9 - version: 2.0.9 - yaml: - specifier: ^2.9.1 - version: 2.9.1 - devDependencies: - '@types/hast': - specifier: ^3.0.5 - version: 3.0.5 - '@types/node': - specifier: ^26.6.4 - version: 26.6.5 - '@types/qrcode': - specifier: ^1.5.6 - version: 1.5.6 - '@vitejs/plugin-vue': - specifier: ^6.0.8 - version: 6.0.10(vite@8.3.5(@types/node@26.6.5)(jiti@2.7.0)(yaml@2.9.1))(vue@3.5.44(typescript@6.0.3)) - '@vue/tsconfig': - specifier: ^0.9.1 - version: 0.9.1(typescript@6.0.3)(vue@3.5.44(typescript@6.0.3)) - typescript: - specifier: ~6.0.3 - version: 6.0.3 - vite: - specifier: ^8.3.0 - version: 8.3.5(@types/node@26.6.5)(jiti@2.7.0)(yaml@2.9.1) - vue-tsc: - specifier: ^3.3.11 - version: 3.3.13(typescript@6.0.3) - -packages: - - '@babel/helper-string-parser@7.29.11': - resolution: {integrity: sha512-snZbO7MEDOof+hvNa97EjEY7qD7h2kwvQr5AJC3ZhQudKW5dnej6k3kP9NQV88hJwaS8vDqRLFo9rivLEhle2g==} - engines: {node: '>=6.9.0'} - - '@babel/helper-string-parser@8.0.8': - resolution: {integrity: sha512-fVM+gSuKbdv9cpmyRNh5EvsDHUZCdxQH3FdnFKSkNYHpbsn95bbrxm+ES3MVeQjcqwi2O5ur/DjLfmTQaO60ng==} - engines: {node: ^22.18.0 || >=24.11.0} - - '@babel/helper-validator-identifier@7.29.7': - resolution: {integrity: sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==} - engines: {node: '>=6.9.0'} - - '@babel/helper-validator-identifier@8.0.6': - resolution: {integrity: sha512-HYx0YmuchRxRSpnjvcNffnPS8DCauKNmnumIuHG3jnQAVewRA7kfJGwF13ayEpSZs7s4R/oBH4eppuXcAQd5JQ==} - engines: {node: ^22.18.0 || >=24.11.0} - - '@babel/parser@7.29.11': - resolution: {integrity: sha512-OZ6+oaK7GMyg3IfCpj8JOmn8n+w2rJbDT0LLfVDTLb1ZFeKDh3AiNELgCMUw175IJHSkLl74hG0M0VLsvx+gag==} - engines: {node: '>=6.0.0'} - hasBin: true - - '@babel/parser@8.0.8': - resolution: {integrity: sha512-Gq65JogAr0S2p0BzvfSJboyuiRnxDQApyOqHkKmkrvm+VlLK4gC3pKsiOKEdnhFBemrFbSnOu90mZZWDpiJnmQ==} - engines: {node: ^22.18.0 || >=24.11.0} - hasBin: true - - '@babel/types@7.29.11': - resolution: {integrity: sha512-WCsemW40Cpc6gouC1SrY6PBaZ+oLRlEVY9XBvZBI7il/HyUrb2nJ505wE1MHEFyDZNnrWDEuy4jL50WVHfTTSQ==} - engines: {node: '>=6.9.0'} - - '@babel/types@8.0.8': - resolution: {integrity: sha512-iXSSZAKQWmaeAwGtFw10v9fg5hUiUs0L+w+Z2K11kym3pDNK+SF0VcAQPsEFvWcTSZ7LMgClMXDBvTbH0IlICg==} - engines: {node: ^22.18.0 || >=24.11.0} - - '@floating-ui/core@1.8.0': - resolution: {integrity: sha512-0CIZ5itps/8x7BG8dEIhs53BvCUH2PCoogtakwRTut+Arm58sJooJ0AuZhLw2HJYIR5cMLNPBSS728sPho2khQ==} - - '@floating-ui/dom@1.8.0': - resolution: {integrity: sha512-yXSrzeHZBTZadLOlfyhCkJHNeLJnHRnRInwdZ40L7ZiaAtrBwoYlsDrX3v5zB1Utk7CLfzcOVnVVWoXEky7Ceg==} - - '@floating-ui/utils@0.2.12': - resolution: {integrity: sha512-HpCo8tmWzLVad5s2d19EhAz5zqrrQ6s69qd6moPMQvkOuSwDT1YgRfWSVuc4ennqrgv3OHppiOGMQ7oC13yIww==} - - '@floating-ui/vue@2.0.1': - resolution: {integrity: sha512-043dyEKD9TDSfz080YH2vobubgg+NIo/9Fw4RAl7sEMpD8Am1DNrrSTl/GpMBjyGHoD/FbJY2QLawY+HSQsEIA==} - peerDependencies: - vue: '>=3.3.0' - - '@fontsource-variable/ibm-plex-sans@5.3.0': - resolution: {integrity: sha512-agG8tXFEo0hD9+J7npa4vbbWult52eMLVaQ6WQRlhs/iCAojrMAoejru85W9HTVXHfyUj96KM7gp/KGAS87XaQ==} - - '@fontsource/ibm-plex-mono@5.3.0': - resolution: {integrity: sha512-eTgnZjZEGk1QtD3ZstF+Vclo2HLAni8YMy34/DxllwZvyz1lR/1RF/xTiAquOBO7MvqBx8D2Ig2WCPMVfdZu7Q==} - - '@internationalized/date@3.12.4': - resolution: {integrity: sha512-M1dEn4c1U1HsSlaVR8upZtSqvXrTkHDfv18H01uCSJyjVLDxnBR38v/fMxecmlwXKR4i9HeZcmgQAPE6A+aGJQ==} - - '@internationalized/number@3.6.9': - resolution: {integrity: sha512-GgWy2caO/+hV9sT/oCTWGHvbjmJMPT9kkXzoKRLnkEq7adghhR7UprhvY9sXrKfrp3NcDfhF6QQHXR1KfQbB8g==} - - '@jridgewell/gen-mapping@0.3.13': - resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==} - - '@jridgewell/remapping@2.3.5': - resolution: {integrity: sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==} - - '@jridgewell/resolve-uri@3.1.2': - resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} - engines: {node: '>=6.0.0'} - - '@jridgewell/sourcemap-codec@1.6.0': - resolution: {integrity: sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==} - - '@jridgewell/trace-mapping@0.3.31': - resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==} - - '@lucide/vue@1.61.0': - resolution: {integrity: sha512-XYclbwUQ6Mvf0UskBG9gJH91BdF3VK4Tt6Pv8PSntwPwNnf357PCQnma4TrzOEdwD49UYCtsTafpfytRIxm1cQ==} - peerDependencies: - vue: '>=3.0.1' - - '@oxc-project/types@0.155.0': - resolution: {integrity: sha512-SeE8JPwW1xs1tHeNycjUtUBdhorRa8o4jlvjwk49R7/Z291i+4DQa7JJIgOm/TaYQZx+QrPQbVJ/9c8dMIZN8Q==} - - '@rolldown/binding-android-arm-eabi@1.2.15': - resolution: {integrity: sha512-aLcgK9gIJ3YRvrrtfSBbRa27F5WrpiTaPulnFpsHPxpUHgFlSgnU4854MHwoRGEBhfRJDWCS2WQ7lIjskE9Olw==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [arm] - os: [android] - - '@rolldown/binding-android-arm64@1.2.15': - resolution: {integrity: sha512-xD7DdZCrbThKuxNg7ooQmvp07ys4J/pnSEMTG3/OdOWl6daC67m/Q4fL78sRHMxTH/N4fGUbYhcPM0MF5WFHkg==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [arm64] - os: [android] - - '@rolldown/binding-darwin-arm64@1.2.15': - resolution: {integrity: sha512-m2WuQ6r0B4OTYxyPpNLtXaMRbRDUbG8YQV2Q3KTdSSK8Th6KHCnC8jVCJt8bvYeSB5WivkkNbc85mKadaSdOxA==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [arm64] - os: [darwin] - - '@rolldown/binding-darwin-x64@1.2.15': - resolution: {integrity: sha512-5RtnsHM36nodM9WbMy+zip0LGS/G+y5wro5RHrpOlr4ac24+1zSi9kiV2MP1myZeZ/ifEHfulQcWjnAXzc2C2A==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [x64] - os: [darwin] - - '@rolldown/binding-freebsd-x64@1.2.15': - resolution: {integrity: sha512-g3l09pyFqhu+135JKkbkwiKGQmwU5hUMUPJ4VdBADvuqR8d33L6H578rh8m7rtxbdp+VmX/+nzI7nvhSZlzpUQ==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [x64] - os: [freebsd] - - '@rolldown/binding-linux-arm-gnueabihf@1.2.15': - resolution: {integrity: sha512-nIe3VugI97nGQtspPxDqA4sXMUpeiocKIP/CqpY/u/vgbT+alX+cVxu1C/oVBPKg4feNTmYovE91v4DgXvXNwQ==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [arm] - os: [linux] - - '@rolldown/binding-linux-arm64-gnu@1.2.15': - resolution: {integrity: sha512-iTBjXx+B5QSvgI89lJfmqh4wTh8NabR1YZIIN3hNx4zSG0EVfVqkOvLulNpG4251pbd6/IAmZ/LefVk1Y4rPhw==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [arm64] - os: [linux] - libc: [glibc] - - '@rolldown/binding-linux-arm64-musl@1.2.15': - resolution: {integrity: sha512-uN26XOnVR7rqQupG3V9oAG2EGGatWjcJHOeDOHUFCh4TBWmP2tHTFoVN13aYbwfm0aHqJAEmcwhAu6sooIjfqQ==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [arm64] - os: [linux] - libc: [musl] - - '@rolldown/binding-linux-ppc64-gnu@1.2.15': - resolution: {integrity: sha512-9nWkcdd+H+XhaA3fQIwpHnKIrfx/PQ6rO0pivr78Og07tXlUlctBBJoEYLPfhTmCR/QxEVdn6uPjHV5SymPhdw==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [ppc64] - os: [linux] - libc: [glibc] - - '@rolldown/binding-linux-s390x-gnu@1.2.15': - resolution: {integrity: sha512-Ggh0ciFjLwIusLSLz7LZYEaGdxOAUJXI+Qu5JCbhPJJHEt8vP+IjRATTJheiJsdzzTYgUiHUiw3X1Ea3ZpMBdA==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [s390x] - os: [linux] - libc: [glibc] - - '@rolldown/binding-linux-x64-gnu@1.2.15': - resolution: {integrity: sha512-FHg60rS6DBePAYZ9X9F67x+JObFdmgn6tupA1C/a3B+CufFmTD4mX+e8M75tCiAO3foR/6xwVBI0KQiI7sn/rw==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [x64] - os: [linux] - libc: [glibc] - - '@rolldown/binding-linux-x64-musl@1.2.15': - resolution: {integrity: sha512-/cvV/7v5VGz/moiz0XKRj2dE8DzsKyhIu1KpOvJGPjRywg3yscON889UGvAe8zfiJLHup7VLjBduoGWi3HusWQ==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [x64] - os: [linux] - libc: [musl] - - '@rolldown/binding-openharmony-arm64@1.2.15': - resolution: {integrity: sha512-MyzC5Hrv/sm+Z7TSGKP/j8001RO2xQm1zOpCNVL4j0cY/VhBZviludA2YFQ7i4lH6ZAXxQm0lcMdBzM+99mE7w==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [arm64] - os: [openharmony] - - '@rolldown/binding-win32-arm64-msvc@1.2.15': - resolution: {integrity: sha512-+PgYiS+AH5omy6L45ZLxybasauJaj3M8buoT83D+nzPmCayXlxUV9hydhciCKVyIg0B/v0BtXPDE1uGqNwCPpg==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [arm64] - os: [win32] - - '@rolldown/binding-win32-x64-msvc@1.2.15': - resolution: {integrity: sha512-HFZd2QNQYn1JbIi+Hpd7H+r/lkWxcfIu28nirZ6eCn2LafuvmExMlb/P96Sfx5tf7pPArw39IdhmCF8vmV+NhQ==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [x64] - os: [win32] - - '@rolldown/pluginutils@1.0.1': - resolution: {integrity: sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==} - - '@shikijs/core@4.5.0': - resolution: {integrity: sha512-6CIgwq+bt2JZ3OSjb/nBkkwEf/CfpHcbam+Mg5Pllco7HAGRQ2/EFhZrrJtbyNTgKwknfVS+llsXGygiDGwJWw==} - engines: {node: '>=20'} - - '@shikijs/engine-javascript@4.5.0': - resolution: {integrity: sha512-Ed6UdEj84LyYkwnxM5CvSMWAD+id9ExTYri0/+x41U9zrgNifPSS9lZm0JqBP0VfYI8yr8tY5nbNq9+p9R0kFA==} - engines: {node: '>=20'} - - '@shikijs/engine-oniguruma@4.5.0': - resolution: {integrity: sha512-dKVmbJecVdB9recl8a/CU4jdpNXyjJQrIcesIkpS70s5HS02ohpnCSpMUbotPnEUzbAcLQ+S4hwZYbkBBiTcJw==} - engines: {node: '>=20'} - - '@shikijs/langs@4.5.0': - resolution: {integrity: sha512-wwBTqwduXSz0X4v9Qa2EWeFaYJEw1clCncWjoRNQRbVDu3SPRTRWucnouYapKj3b8Q+sk/41Vbc4B5c8nuYzLA==} - engines: {node: '>=20'} - - '@shikijs/primitive@4.5.0': - resolution: {integrity: sha512-UM7ShlA8oz0OWxLLO8BmO9Ip6fVqdkt8yF0EH7nOCqHfrx1eEAzF0ZUVK7L+I8NEgeu1PEWSRlxaiPPeCb4iDg==} - engines: {node: '>=20'} - - '@shikijs/themes@4.5.0': - resolution: {integrity: sha512-zGb87H3UBbpuI4yoh5UguB1XbU+2BDU3kflM7UfZ+Cy2hWo9lBtqjSVK20gmLY6ukYl040hAypGXMgud9vul8Q==} - engines: {node: '>=20'} - - '@shikijs/types@4.5.0': - resolution: {integrity: sha512-drtPrtD8N0DENyD2cyt6Ajy+IWsiCLgMxODwLTpvH1UsN6a9jf90tNTPjqwHvA+0Lzu9e0txk8DjfqH1p9UJRw==} - engines: {node: '>=20'} - - '@shikijs/vscode-textmate@10.1.0': - resolution: {integrity: sha512-cVBuhDQjBZaNMTwBquYfPydrUP+E3hE6oYGasx8h6ZrODIM7/r+gxLDXdd66oszbrggZHEntdE6j+5gYIVyMWQ==} - - '@swc/helpers@0.5.23': - resolution: {integrity: sha512-5lSsMOTXURePglDfvuAQUqkGek9Hg2kksOYay2m0+XR++b2NWYL/4sWyuvVBIs8oKnJaxkdi9whaL/sqN13afw==} - - '@tailwindcss/node@4.3.3': - resolution: {integrity: sha512-/T8IKEsf9VTU6tLjgC7+sv2mOPtQxzE2jMw7u4Tt40Tx+QSZxpzh95/H6cMKoja9XuW7iMdLJYBB0o9G1CaAgg==} - - '@tailwindcss/oxide-android-arm64@4.3.3': - resolution: {integrity: sha512-Y85A2gmPSkl5Ve5qR86GL4HT509cFqQh1aes9p3sSkyTPwt0Pppf3GkwGe4JPACcRYjgJIEhQgM6dBClnr0NYw==} - engines: {node: '>= 20'} - cpu: [arm64] - os: [android] - - '@tailwindcss/oxide-darwin-arm64@4.3.3': - resolution: {integrity: sha512-BiaWatpBcERQFDlOjRDpIVXuFK5PJez5SA4JMg6VYZdBYU+qKfV/vqjcIs+IYmtitf1xYQZTwXvU/8y4lfZUGw==} - engines: {node: '>= 20'} - cpu: [arm64] - os: [darwin] - - '@tailwindcss/oxide-darwin-x64@4.3.3': - resolution: {integrity: sha512-fAeUqfV5ndhxRwai8cXGzdLvul9utWOmeTkv69unv4ZXixjn61Z+p9lCWdwOwA3TYboG3BwdVuN/RDjhBRl0mw==} - engines: {node: '>= 20'} - cpu: [x64] - os: [darwin] - - '@tailwindcss/oxide-freebsd-x64@4.3.3': - resolution: {integrity: sha512-iyf5bV6+wnAlflVeEy7R25dupxTNECZN5QMI0qNT6eT+EgaGdZcKhGkr5SdoaWiLJ3spLqIY9VCeSGrwmtg4kw==} - engines: {node: '>= 20'} - cpu: [x64] - os: [freebsd] - - '@tailwindcss/oxide-linux-arm-gnueabihf@4.3.3': - resolution: {integrity: sha512-aAYUprJAJQWWbRrPvtjdroZ56Md+JM8pMiopS6xGEwDfLhqj+2ver2p4nU4Mb3CRqcMmNBjo8KkUgcxhkzVQGQ==} - engines: {node: '>= 20'} - cpu: [arm] - os: [linux] - - '@tailwindcss/oxide-linux-arm64-gnu@4.3.3': - resolution: {integrity: sha512-nDxldcEENOxZRzC2uu9jrutZdAAQtb+8WWDCSnWL1zvBk1+FN+x6MtDViPB5AJMfttVCUhehGWus3XBPgatM/w==} - engines: {node: '>= 20'} - cpu: [arm64] - os: [linux] - libc: [glibc] - - '@tailwindcss/oxide-linux-arm64-musl@4.3.3': - resolution: {integrity: sha512-Md44bD6veX/PC5iyF8cDVnw4HBIANZepRZZ7a8DQOvkfo5WUBwcp6iAuCUz23u+4SUkhJlD3eL7hNdW8ezd/kA==} - engines: {node: '>= 20'} - cpu: [arm64] - os: [linux] - libc: [musl] - - '@tailwindcss/oxide-linux-x64-gnu@4.3.3': - resolution: {integrity: sha512-tx7us1muwOKAKWao2v/GaafFeQboE6aj88vC6ziN2NCGcRm8gWUhwjzg+YdVB1e4boAtdtma4L43onunI6NS4w==} - engines: {node: '>= 20'} - cpu: [x64] - os: [linux] - libc: [glibc] - - '@tailwindcss/oxide-linux-x64-musl@4.3.3': - resolution: {integrity: sha512-SJxX60smvHgasZoBy11dX6YRjXJFovwWBoedhbQPOBzgFWBHGB+TVPWB9BxzR7TTxU8FQZAI2AyiNCMzFm8Img==} - engines: {node: '>= 20'} - cpu: [x64] - os: [linux] - libc: [musl] - - '@tailwindcss/oxide-wasm32-wasi@4.3.3': - resolution: {integrity: sha512-jx1+rPhY/5Ympkktd656HBWEBLxP7dH06losBLjjf5vgCODXvi9KhtftWcMIwTFIDqBr7cRnQkdLnAG+IOlGvQ==} - engines: {node: '>=14.0.0'} - cpu: [wasm32] - bundledDependencies: - - '@napi-rs/wasm-runtime' - - '@emnapi/core' - - '@emnapi/runtime' - - '@tybys/wasm-util' - - '@emnapi/wasi-threads' - - tslib - - '@tailwindcss/oxide-win32-arm64-msvc@4.3.3': - resolution: {integrity: sha512-3rc292Ca2ceK6Ulcc/bAVnTs/3nDtoPhyEKlgPv+yQJQi/JS/AMJlqzxvlDacL1nekbrcf6bTqp/jV4qgnPxNQ==} - engines: {node: '>= 20'} - cpu: [arm64] - os: [win32] - - '@tailwindcss/oxide-win32-x64-msvc@4.3.3': - resolution: {integrity: sha512-yJ0pwIVc/nYeGoV02WtsN8KYyLQv7kyI2wDnkezyJlGGjkd4QLwDGAwl47YpPJeuI0M0ObaXGSPjvWDPeTPggw==} - engines: {node: '>= 20'} - cpu: [x64] - os: [win32] - - '@tailwindcss/oxide@4.3.3': - resolution: {integrity: sha512-krXjAikiaFSPaK/FkAQT5UTx3VormQaiZ5hBFlJZ9UFQGB/rwg1MZIhHAG9smMQRTdyJxP6Qt5MwMtdyU5FWrA==} - engines: {node: '>= 20'} - - '@tailwindcss/vite@4.3.3': - resolution: {integrity: sha512-yYU8cogLeSh/ms2jh8Fj7jaba/EWa7Ja6GoUqYZaraEuCI5YS6ms6ObZgjjedm+jm6XZjdNRWBpPP6Z86oOxcw==} - peerDependencies: - vite: ^5.2.0 || ^6 || ^7 || ^8 - - '@tanstack/devtools-event-client@0.4.4': - resolution: {integrity: sha512-6T5Yop/793YI+H+5J8Hsyj4kCih9sl4t3ElLgKioW5hk3ocn+ZdSJ94tT7vL7uabxSugWYBZlOTMPzEw2puvQw==} - engines: {node: '>=18'} - hasBin: true - - '@tanstack/form-core@1.33.5': - resolution: {integrity: sha512-3dfx9MBP0aq5sXKteikG629X9oviptrQj0IFRk9YGcb+lB7Kv5x8S17oOSk1wUWgjQZ4xVJEMbKwOAODymocgA==} - - '@tanstack/pacer-lite@0.1.1': - resolution: {integrity: sha512-y/xtNPNt/YeyoVxE/JCx+T7yjEzpezmbb+toK8DDD1P4m7Kzs5YR956+7OKexG3f8aXgC3rLZl7b1V+yNUSy5w==} - engines: {node: '>=18'} - - '@tanstack/store@0.11.2': - resolution: {integrity: sha512-sJ4mjol8uQsHV0gOJzzjwXfh2Fwm+Sz0+8deqiTm4jGbMdjzNSW+xZCFm0kUa870uhd8yi+DpKnZb5Kc4apa0Q==} - - '@tanstack/virtual-core@3.19.7': - resolution: {integrity: sha512-gxy5SvH0mFRJ0YujtrflB/1HAu9Wn1KGvL0bjZfQkYVVMsIpQiwcf1mR06/ViN4NjllUb4HNCjqE9FGwgTvMCQ==} - - '@tanstack/vue-form@1.33.5': - resolution: {integrity: sha512-IvNlJ1LGFqt2pkwwCM+ltMWeBpF/qUeP9vlQwknMJphrIjJtZfmVr+VaN4BsOEbZQVK2vDkglqT+u64LTTjyoA==} - peerDependencies: - vue: ^3.4.0 - - '@tanstack/vue-store@0.11.2': - resolution: {integrity: sha512-wZmkfsvc0dNvOg/Xb/a7uTPKejleI0dR3HHi0t3ZyVM/23MJ7AC0bH6C7rp2seSY4mIYo0pLLbGJGZ/UpO93Zw==} - peerDependencies: - '@vue/composition-api': ^1.2.1 - vue: ^2.5.0 || ^3.0.0 - peerDependenciesMeta: - '@vue/composition-api': - optional: true - - '@tanstack/vue-virtual@3.13.48': - resolution: {integrity: sha512-exH0/lELoCW9D6x8V1Uq61XY4zrN1AeDH4rDKUMTOJ93ndkeEVIY8zo366IBM13HSjhULpuWPdPhJ+ccidg58A==} - peerDependencies: - vue: ^2.7.0 || ^3.0.0 - - '@types/debug@4.1.13': - resolution: {integrity: sha512-KSVgmQmzMwPlmtljOomayoR89W4FynCAi3E8PPs7vmDVPe84hT+vGPKkJfThkmXs0x0jAaa9U8uW8bbfyS2fWw==} - - '@types/estree@1.0.9': - resolution: {integrity: sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==} - - '@types/hast@3.0.5': - resolution: {integrity: sha512-rp/ezSWaD1m44dPKICGhiskI13nVr7qTloFwDa/IYkhhf5nzwP+zIQcIJh3WIFSBOy/H1PzB40jPjMDksN4F+g==} - - '@types/mdast@4.0.4': - resolution: {integrity: sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==} - - '@types/ms@2.1.0': - resolution: {integrity: sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==} - - '@types/node@26.6.5': - resolution: {integrity: sha512-uMzsv9stDdofIZBx4UGh4Z9ZgXnGC9seRDscilBcTHAeOFk67MZg/k9bWVfO+bk4qZmG+l52hRnLwUiH2LnJTg==} - - '@types/qrcode@1.5.6': - resolution: {integrity: sha512-te7NQcV2BOvdj2b1hCAHzAoMNuj65kNBMz0KBaxM6c3VGBOhU0dURQKOtH8CFNI/dsKkwlv32p26qYQTWoB5bw==} - - '@types/unist@3.0.3': - resolution: {integrity: sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==} - - '@types/web-bluetooth@0.0.20': - resolution: {integrity: sha512-g9gZnnXVq7gM7v3tJCWV/qw7w+KeOlSHAhgF9RytFyifW6AF61hdT2ucrYhPq9hLs5JIryeupHV3qGk95dH9ow==} - - '@types/web-bluetooth@0.0.21': - resolution: {integrity: sha512-oIQLCGWtcFZy2JW77j9k8nHzAOpqMHLQejDA48XXMWH6tjCQHz5RCFz1bzsmROyL6PUm+LLnUiI4BCn221inxA==} - - '@ui-sdk/core@0.1.0-beta.16': - resolution: {integrity: sha512-I2GMqOviLS/lYfIj2lTqKLbae0V9uSnysK+bSdbhuw2De8zNvrLZiDTc0qzsPNiZvB/bMmUZJS5UDA5Q2Pq4Ng==} - - '@ui-sdk/vue@0.1.0-beta.16': - resolution: {integrity: sha512-9Y4aMVrrYrYDNBgiJs1AWW1S6giJQ7wfmyEvN6fU0j3gyO5qmLQ1xLBmZmuCQv1Wt0AIL9VfGpAclW4ZF45IOA==} - peerDependencies: - '@nuxt/kit': ^4.0.0 || ^5.0.0-0 - '@nuxt/schema': ^4.0.0 || ^5.0.0-0 - '@ui-sdk/core': ^0.1.0-beta.16 - nuxt: ^4.0.0 || ^5.0.0-0 - vue: '>=3.5' - peerDependenciesMeta: - '@nuxt/kit': - optional: true - '@nuxt/schema': - optional: true - nuxt: - optional: true - - '@ungap/structured-clone@1.4.0': - resolution: {integrity: sha512-1mEZtMKPM09vDmQt5y7YvmN2+DFTP7Tg0EWXdic8/C6VRnpb33e4ghisCIE3WZjsE2N8mf+QV1Zqh7ZFYLWInQ==} - - '@vitejs/plugin-vue@6.0.10': - resolution: {integrity: sha512-b80aUQh3n+qEzzZm5oQp3rT2QImeCx58K6eFl/RkJ3d65KW0kTuv5lNsLRVAjbW9YRUpo/wzmvzMgV34bTAItA==} - 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 || ^3.6.0-rc.10 - - '@volar/language-core@2.4.28': - resolution: {integrity: sha512-w4qhIJ8ZSitgLAkVay6AbcnC7gP3glYM3fYwKV3srj8m494E3xtrCv6E+bWviiK/8hs6e6t1ij1s2Endql7vzQ==} - - '@volar/source-map@2.4.28': - resolution: {integrity: sha512-yX2BDBqJkRXfKw8my8VarTyjv48QwxdJtvRgUpNE5erCsgEUdI2DsLbpa+rOQVAJYshY99szEcRDmyHbF10ggQ==} - - '@volar/typescript@2.4.28': - resolution: {integrity: sha512-Ja6yvWrbis2QtN4ClAKreeUZPVYMARDYZl9LMEv1iQ1QdepB6wn0jTRxA9MftYmYa4DQ4k/DaSZpFPUfxl8giw==} - peerDependencies: - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true - - '@vue-flow/background@1.3.2': - resolution: {integrity: sha512-eJPhDcLj1wEo45bBoqTXw1uhl0yK2RaQGnEINqvvBsAFKh/camHJd5NPmOdS1w+M9lggc9igUewxaEd3iCQX2w==} - peerDependencies: - '@vue-flow/core': ^1.23.0 - vue: ^3.3.0 - - '@vue-flow/core@1.48.2': - resolution: {integrity: sha512-raxhgKWE+G/mcEvXJjGFUDYW9rAI3GOtiHR3ZkNpwBWuIaCC1EYiBmKGwJOoNzVFgwO7COgErnK7i08i287AFA==} - peerDependencies: - vue: ^3.3.0 - - '@vue-macros/common@3.1.4': - resolution: {integrity: sha512-/5Fv+6DgIcM9ajY05ZmKBv+LMX1M9A0X+IUwDRVdt67ciw8OV9bvG2r34p3RiEadlsQybjhKPRKNXDC8Bp23cw==} - engines: {node: '>=20.19.0'} - peerDependencies: - vue: ^2.7.0 || ^3.2.25 - peerDependenciesMeta: - vue: - optional: true - - '@vue/compiler-core@3.5.44': - resolution: {integrity: sha512-k34nCytbK8PQ1gR2mGROYOw6Pnv/mumqIdrZ3x2tbyXZDWm7ViKGLTfdB+DRrWqEQsLgGJvn0WN9jBif5zCTLQ==} - - '@vue/compiler-dom@3.5.44': - resolution: {integrity: sha512-W5AoBFWdw1lQAKiHowkfgFKFab82oSRT6sGsPfw/q1GRjsy/ZJFLHGhJyBRIFN9APLTUduDH9U2JAiPOIyKuYg==} - - '@vue/compiler-sfc@3.5.44': - resolution: {integrity: sha512-dzHmQ4jXTpdr5FjIQUeykVakN/uzqFbUo9/C5ikBFg3a3PeM6uRxeczx1ZbXBML0/zJstEh3ygYipzR5Z7b2Pw==} - - '@vue/compiler-ssr@3.5.44': - resolution: {integrity: sha512-xr5gb1JVHlfXJwSlRz1FeP6uxoazdzHuMTVLE7up+4Vrqxk219CvxLPxD9NXBt47yvZW7+p4DXfyp4O1fkByIA==} - - '@vue/devtools-api@8.2.1': - resolution: {integrity: sha512-6u4vXBlIBAC1wMplIZgpyPn7uh/s4Bf6F5bMzvLv+EdJ0aHs/+4B7Ygv864EStQSjRbsRzTko/kUG1A1IejQ3A==} - - '@vue/devtools-kit@8.2.1': - resolution: {integrity: sha512-FIGIuq3AWReEpbAHY/cRGeHDfI0qOb8OCQ3YjbEAX04uaxIDbGc9rhkbVcG7rnfHPXE3RsU5KrWOu9V/okd8AQ==} - - '@vue/devtools-shared@8.2.1': - resolution: {integrity: sha512-Fkac7lUdGReh6pVOi3AYPRGe82LQqRmAfThW7RRligOAP0ZA/Z1z9XLHDM9dv34pV2HRc79DK8uKPeG2fLnA/g==} - - '@vue/language-core@3.3.13': - resolution: {integrity: sha512-axA0Xemn5LuUKuKWob0/kVq7xQ2mJJM6VqA9Exvt35nM9yRC31goWVve/G/Zb2ZCLsXC8FHYjjfXlnshknSCew==} - - '@vue/reactivity@3.5.44': - resolution: {integrity: sha512-u+QJdKeBBEADkPdevsL+6E12QlYVfBD8Zcw5qjDQKtamI6l14KyqazJMobhCKelhWN5zpyKUiEDoTyHE93cqWw==} - - '@vue/runtime-core@3.5.44': - resolution: {integrity: sha512-uEa/ndwjhrrhnOfb2p+sZy6zeoamJOISqaLSJGk/8R6nABT1ZldpzcJoPzKj+zHVomVBPcmQYyC2r4LtvDV6CQ==} - - '@vue/runtime-dom@3.5.44': - resolution: {integrity: sha512-3fc4ARcXVhVBaJ3ujWiNZJARD6pkyRcwG+ZYhMzjKtKUp7MAY0HLwr7r3Smep3Li6ZaWT6ewdmx8XqdaD5oNZg==} - - '@vue/server-renderer@3.5.44': - resolution: {integrity: sha512-R4S1UoH4h5Frrauv8Z5XE5TxV9oBiUSgWIC4TyVK1FK+RocRnOLwFA5Xcmo2011RlgJp+AbZCnw6afrhlgRuUQ==} - - '@vue/shared@3.5.44': - resolution: {integrity: sha512-H82XLH0DjmSOdbEwO15x3QTo1f5PWEtv237eLpYKc0mqLu+B8hnq16lFWmuBmNurkeiG3wr+oM1FhOll/YVFRg==} - - '@vue/tsconfig@0.9.1': - resolution: {integrity: sha512-buvjm+9NzLCJL29KY1j1991YYJ5e6275OiK+G4jtmfIb+z4POywbdm0wXusT9adVWqe0xqg70TbI7+mRx4uU9w==} - peerDependencies: - typescript: '>= 5.8' - vue: ^3.4.0 - peerDependenciesMeta: - typescript: - optional: true - vue: - optional: true - - '@vueuse/core@10.11.1': - resolution: {integrity: sha512-guoy26JQktXPcz+0n3GukWIy/JDNKti9v6VEMu6kV2sYBsWuGiTU8OWdg+ADfUbHg3/3DlqySDe7JmdHrktiww==} - - '@vueuse/core@14.4.0': - resolution: {integrity: sha512-X4WHz1HlCzCBoYXesUkifzzWBAcZgXG8Fi5iNPQg/epdzOB3gu8Fawj3hvuwYR1nGcXGnvxwYYcUC/71++svtQ==} - peerDependencies: - vue: ^3.5.0 - - '@vueuse/core@15.0.0': - resolution: {integrity: sha512-Zv67h5mrk7YHDJsRObx+DXaCBz6RKBUpxqLesJ+3xZNPG6yuQs7ja7kg3veFrrouYLWAqydQ7CwGEbLVxB43Ng==} - engines: {node: '>=22'} - peerDependencies: - vue: ^3.5.0 - - '@vueuse/metadata@10.11.1': - resolution: {integrity: sha512-IGa5FXd003Ug1qAZmyE8wF3sJ81xGLSqTqtQ6jaVfkeZ4i5kS2mwQF61yhVqojRnenVew5PldLyRgvdl4YYuSw==} - - '@vueuse/metadata@14.4.0': - resolution: {integrity: sha512-swx/255R6JyHZFJhx845iz5CRWDZdCfvkZOpACWc5+c5WHcG24mv8gUT1WIdFQaHt6dq79rvILd9QnCWiyVm9g==} - - '@vueuse/metadata@15.0.0': - resolution: {integrity: sha512-sfWE5LADAKJ0KnjtGliMdSN8Ij/L7uP6rXIZlgPloAI4zvvefbw6H5Lt7KJA6RqQOYgVqWF5Guj50HHMIzygBg==} - engines: {node: '>=22'} - - '@vueuse/shared@10.11.1': - resolution: {integrity: sha512-LHpC8711VFZlDaYUXEBbFBCQ7GS3dVU9mjOhhMhXP6txTV4EhYQg/KGnQuvt/sPAtoUKq7VVUnL6mVtFoL42sA==} - - '@vueuse/shared@14.4.0': - resolution: {integrity: sha512-JRgY90Sz8DDtPMsaDflvPMp9xYk69JZAmbuDvAquUVXKr2gEjqtzGNTTthLfckH0BzBqvnu31gb4a8TGLRe79g==} - peerDependencies: - vue: ^3.5.0 - - '@vueuse/shared@15.0.0': - resolution: {integrity: sha512-vbNXhGrbV53xPOMSyOzMHQRvhMgZf7oNDw2RChUetVxwTIEkInQ1joZ9JbT0G3z2n2AJNjvmCWeM9ySYrnvogA==} - engines: {node: '>=22'} - peerDependencies: - vue: ^3.5.0 - - acorn@8.19.0: - resolution: {integrity: sha512-oJlA3XiRm7Cyk6qFD2Jn8ak9B7jSy0qy00ADO3+8dpT0LSjFihQYv4C02LFCSYJV3Q37xYwwRy5m+IpIiUzqWw==} - engines: {node: '>=0.4.0'} - hasBin: true - - alien-signals@3.2.1: - resolution: {integrity: sha512-I8FjmltrfnDFoZedi5CG8DghVYNhzb/Ijluz7tCSJH0xpd0484Kowhbb1XDYOxfJpU1p5wnM2X54dA+IfGyD1g==} - - ansi-regex@5.0.1: - resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} - engines: {node: '>=8'} - - ansi-styles@4.3.0: - resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} - engines: {node: '>=8'} - - aria-hidden@1.2.6: - resolution: {integrity: sha512-ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA==} - engines: {node: '>=10'} - - ast-kit@2.2.0: - resolution: {integrity: sha512-m1Q/RaVOnTp9JxPX+F+Zn7IcLYMzM8kZofDImfsKZd8MbR+ikdOzTeztStWqfrqIxZnYWryyI9ePm3NGjnZgGw==} - engines: {node: '>=20.19.0'} - - ast-kit@3.0.0: - resolution: {integrity: sha512-8OG92q3R35qjC/4i6BLBMg8IB+fClWu/1PEwg2Z9Rn+BuNaiEgJzpzn+pxWOdHJWDCAwu2JP0wCDTozAM4QirQ==} - engines: {node: ^22.18.0 || >=24.11.0} - - ast-walker-scope@0.10.0: - resolution: {integrity: sha512-KzvoxDfXNz2Gm8KYLh47K3qcY3Zza3WKOuh2xoqa7LBu6MDKWAZLovJtU9DuAd/Er+rhQHCRn619lHS5U+qmhw==} - engines: {node: ^22.18.0 || >=24.11.0} - - bail@2.0.2: - resolution: {integrity: sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==} - - birpc@2.9.0: - resolution: {integrity: sha512-KrayHS5pBi69Xi9JmvoqrIgYGDkD6mcSe/i6YKi3w5kekCLzrX4+nawcXqrj2tIp50Kw/mT/s3p+GVK0A0sKxw==} - - camelcase@5.3.1: - resolution: {integrity: sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==} - engines: {node: '>=6'} - - ccount@2.0.1: - resolution: {integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==} - - character-entities-html4@2.1.0: - resolution: {integrity: sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==} - - character-entities-legacy@3.0.0: - resolution: {integrity: sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ==} - - character-entities@2.0.2: - resolution: {integrity: sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ==} - - chokidar@5.0.0: - resolution: {integrity: sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==} - engines: {node: '>= 20.19.0'} - - class-variance-authority@0.7.1: - resolution: {integrity: sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg==} - - cliui@6.0.0: - resolution: {integrity: sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==} - - clsx@2.1.1: - resolution: {integrity: sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==} - engines: {node: '>=6'} - - cn@0.5.1: - resolution: {integrity: sha512-SA06SpzSWXRNrt/EQWnRpck9jEVDfVJonw8ZewiNR6pOC4U0SQ81tWaQ9/PKNPh/lWvjuY4CMlxpc8tJViiX6Q==} - engines: {node: '>=22'} - hasBin: true - - color-convert@2.0.1: - resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} - engines: {node: '>=7.0.0'} - - color-name@1.1.4: - resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} - - comma-separated-tokens@2.0.3: - resolution: {integrity: sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==} - - confbox@0.1.8: - resolution: {integrity: sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==} - - confbox@0.3.1: - resolution: {integrity: sha512-cKUSoKa8YxFZZSmraVi7onONx3amu77ngK3kGpsYHDH7drPwCRkQE1RYMPlLRrMtnciRj274XNRxcHxnKmDSnA==} - - csstype@3.2.3: - resolution: {integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==} - - d3-color@3.1.0: - resolution: {integrity: sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==} - engines: {node: '>=12'} - - d3-dispatch@3.0.1: - resolution: {integrity: sha512-rzUyPU/S7rwUflMyLc1ETDeBj0NRuHKKAcvukozwhshr6g6c5d8zh4c2gQjY2bZ0dXeGLWc1PF174P2tVvKhfg==} - engines: {node: '>=12'} - - d3-drag@3.0.0: - resolution: {integrity: sha512-pWbUJLdETVA8lQNJecMxoXfH6x+mO2UQo8rSmZ+QqxcbyA3hfeprFgIT//HW2nlHChWeIIMwS2Fq+gEARkhTkg==} - engines: {node: '>=12'} - - d3-ease@3.0.1: - resolution: {integrity: sha512-wR/XK3D3XcLIZwpbvQwQ5fK+8Ykds1ip7A2Txe0yxncXSdq1L9skcG7blcedkOX+ZcgxGAmLX1FrRGbADwzi0w==} - engines: {node: '>=12'} - - d3-interpolate@3.0.1: - resolution: {integrity: sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==} - engines: {node: '>=12'} - - d3-selection@3.0.0: - resolution: {integrity: sha512-fmTRWbNMmsmWq6xJV8D19U/gw/bwrHfNXxrIN+HfZgnzqTHp9jOmKMhsTUjXOJnZOdZY9Q28y4yebKzqDKlxlQ==} - engines: {node: '>=12'} - - d3-timer@3.0.1: - resolution: {integrity: sha512-ndfJ/JxxMd3nw31uyKoY2naivF+r29V+Lc0svZxe1JvvIRmi8hUsrMvdOwgS1o6uBHmiz91geQ0ylPP0aj1VUA==} - engines: {node: '>=12'} - - d3-transition@3.0.1: - resolution: {integrity: sha512-ApKvfjsSR6tg06xrL434C0WydLr7JewBB3V+/39RMHsaXTOG0zmt/OAXeng5M5LBm0ojmxJrpomQVZ1aPvBL4w==} - engines: {node: '>=12'} - peerDependencies: - d3-selection: 2 - 3 - - d3-zoom@3.0.0: - resolution: {integrity: sha512-b8AmV3kfQaqWAuacbPuNbL6vahnOJflOhexLzMMNLga62+/nh0JzvJ0aO/5a5MVgUFGS7Hu1P9P03o3fJkDCyw==} - engines: {node: '>=12'} - - debug@4.4.3: - resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==} - engines: {node: '>=6.0'} - peerDependencies: - supports-color: '*' - peerDependenciesMeta: - supports-color: - optional: true - - decamelize@1.2.0: - resolution: {integrity: sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==} - engines: {node: '>=0.10.0'} - - decode-named-character-reference@1.3.0: - resolution: {integrity: sha512-GtpQYB283KrPp6nRw50q3U9/VfOutZOe103qlN7BPP6Ad27xYnOIWv4lPzo8HCAL+mMZofJ9KEy30fq6MfaK6Q==} - - defu@6.1.7: - resolution: {integrity: sha512-7z22QmUWiQ/2d0KkdYmANbRUVABpZ9SNYyH5vx6PZ+nE5bcC0l7uFvEfHlyld/HcGBFTL536ClDt3DEcSlEJAQ==} - - dequal@2.0.3: - resolution: {integrity: sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==} - engines: {node: '>=6'} - - detect-libc@2.1.2: - resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==} - engines: {node: '>=8'} - - devlop@1.1.0: - resolution: {integrity: sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==} - - dijkstrajs@1.0.3: - resolution: {integrity: sha512-qiSlmBq9+BCdCA/L46dw8Uy93mloxsPSbwnm5yrKn2vMPiy8KyAskTF6zuV/j5BMsmOGZDPs7KjU+mjb670kfA==} - - emoji-regex@8.0.0: - resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} - - enhanced-resolve@5.26.0: - resolution: {integrity: sha512-9vhedylFonb2YGogzUKX6+Ja72gOJbN1QHAqdrvqLwhdl/QWbKopzoUC9EbQNVsAns/bx/4uyqalrQAoy1IByw==} - engines: {node: '>=10.13.0'} - - entities@7.0.1: - resolution: {integrity: sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA==} - engines: {node: '>=0.12'} - - escape-string-regexp@5.0.0: - resolution: {integrity: sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==} - engines: {node: '>=12'} - - estree-walker@2.0.2: - resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==} - - estree-walker@3.0.3: - resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==} - - exsolve@1.1.3: - resolution: {integrity: sha512-kuzL9zherLQoqDeQaS55AiiIg1kb4KYXaSusTtgZTPlvKP2gGCI82LNmBNh5RjDVUXIcmgx+/Mx7vPwRzBbhJA==} - - extend@3.0.2: - resolution: {integrity: sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==} - - fdir@6.5.0: - resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==} - engines: {node: '>=12.0.0'} - peerDependencies: - picomatch: ^3 || ^4 - peerDependenciesMeta: - picomatch: - optional: true - - find-up@4.1.0: - resolution: {integrity: sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==} - engines: {node: '>=8'} - - fsevents@2.3.3: - resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} - engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} - os: [darwin] - - get-caller-file@2.0.5: - resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==} - engines: {node: 6.* || 8.* || >= 10.*} - - graceful-fs@4.2.11: - resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} - - hast-util-to-html@9.0.5: - resolution: {integrity: sha512-OguPdidb+fbHQSU4Q4ZiLKnzWo8Wwsf5bZfbvu7//a9oTYoqD/fWpe96NuHkoS9h0ccGOTe0C4NGXdtS0iObOw==} - - hast-util-whitespace@3.0.0: - resolution: {integrity: sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==} - - hookable@5.5.3: - resolution: {integrity: sha512-Yc+BQe8SvoXH1643Qez1zqLRmbA5rCL+sSmk6TVos0LWVfNIB7PGncdlId77WzLGSIB5KaWgTaNTs2lNVEI6VQ==} - - html-void-elements@3.0.0: - resolution: {integrity: sha512-bEqo66MRXsUGxWHV5IP0PUiAWwoEjba4VCzg0LjFJBpchPaTfyfCKTG6bc5F8ucKec3q5y6qOdGyYTSBEvhCrg==} - - is-fullwidth-code-point@3.0.0: - resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==} - engines: {node: '>=8'} - - is-plain-obj@4.1.0: - resolution: {integrity: sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==} - engines: {node: '>=12'} - - jiti@2.7.0: - resolution: {integrity: sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==} - hasBin: true - - lightningcss-android-arm64@1.32.0: - resolution: {integrity: sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==} - engines: {node: '>= 12.0.0'} - cpu: [arm64] - os: [android] - - lightningcss-android-arm64@1.33.0: - resolution: {integrity: sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==} - engines: {node: '>= 12.0.0'} - cpu: [arm64] - os: [android] - - lightningcss-darwin-arm64@1.32.0: - resolution: {integrity: sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==} - engines: {node: '>= 12.0.0'} - cpu: [arm64] - os: [darwin] - - lightningcss-darwin-arm64@1.33.0: - resolution: {integrity: sha512-Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==} - engines: {node: '>= 12.0.0'} - cpu: [arm64] - os: [darwin] - - lightningcss-darwin-x64@1.32.0: - resolution: {integrity: sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==} - engines: {node: '>= 12.0.0'} - cpu: [x64] - os: [darwin] - - lightningcss-darwin-x64@1.33.0: - resolution: {integrity: sha512-Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==} - engines: {node: '>= 12.0.0'} - cpu: [x64] - os: [darwin] - - lightningcss-freebsd-x64@1.32.0: - resolution: {integrity: sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==} - engines: {node: '>= 12.0.0'} - cpu: [x64] - os: [freebsd] - - lightningcss-freebsd-x64@1.33.0: - resolution: {integrity: sha512-QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==} - engines: {node: '>= 12.0.0'} - cpu: [x64] - os: [freebsd] - - lightningcss-linux-arm-gnueabihf@1.32.0: - resolution: {integrity: sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==} - engines: {node: '>= 12.0.0'} - cpu: [arm] - os: [linux] - - lightningcss-linux-arm-gnueabihf@1.33.0: - resolution: {integrity: sha512-N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==} - engines: {node: '>= 12.0.0'} - cpu: [arm] - os: [linux] - - lightningcss-linux-arm64-gnu@1.32.0: - resolution: {integrity: sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==} - engines: {node: '>= 12.0.0'} - cpu: [arm64] - os: [linux] - libc: [glibc] - - lightningcss-linux-arm64-gnu@1.33.0: - resolution: {integrity: sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==} - engines: {node: '>= 12.0.0'} - cpu: [arm64] - os: [linux] - libc: [glibc] - - lightningcss-linux-arm64-musl@1.32.0: - resolution: {integrity: sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==} - engines: {node: '>= 12.0.0'} - cpu: [arm64] - os: [linux] - libc: [musl] - - lightningcss-linux-arm64-musl@1.33.0: - resolution: {integrity: sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==} - engines: {node: '>= 12.0.0'} - cpu: [arm64] - os: [linux] - libc: [musl] - - lightningcss-linux-x64-gnu@1.32.0: - resolution: {integrity: sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==} - engines: {node: '>= 12.0.0'} - cpu: [x64] - os: [linux] - libc: [glibc] - - lightningcss-linux-x64-gnu@1.33.0: - resolution: {integrity: sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==} - engines: {node: '>= 12.0.0'} - cpu: [x64] - os: [linux] - libc: [glibc] - - lightningcss-linux-x64-musl@1.32.0: - resolution: {integrity: sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==} - engines: {node: '>= 12.0.0'} - cpu: [x64] - os: [linux] - libc: [musl] - - lightningcss-linux-x64-musl@1.33.0: - resolution: {integrity: sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==} - engines: {node: '>= 12.0.0'} - cpu: [x64] - os: [linux] - libc: [musl] - - lightningcss-win32-arm64-msvc@1.32.0: - resolution: {integrity: sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==} - engines: {node: '>= 12.0.0'} - cpu: [arm64] - os: [win32] - - lightningcss-win32-arm64-msvc@1.33.0: - resolution: {integrity: sha512-1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==} - engines: {node: '>= 12.0.0'} - cpu: [arm64] - os: [win32] - - lightningcss-win32-x64-msvc@1.32.0: - resolution: {integrity: sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==} - engines: {node: '>= 12.0.0'} - cpu: [x64] - os: [win32] - - lightningcss-win32-x64-msvc@1.33.0: - resolution: {integrity: sha512-OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==} - engines: {node: '>= 12.0.0'} - cpu: [x64] - os: [win32] - - lightningcss@1.32.0: - resolution: {integrity: sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==} - engines: {node: '>= 12.0.0'} - - lightningcss@1.33.0: - resolution: {integrity: sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==} - engines: {node: '>= 12.0.0'} - - local-pkg@1.2.1: - resolution: {integrity: sha512-++gUqRDEvcnN6Zhqrr+y/CkVEHhlrR96vZn3nZZPYzMcBUyBtTKzB9NadClFIsIVSsu+3i9tfk/erqy9kAmt7Q==} - engines: {node: '>=14'} - - locate-path@5.0.0: - resolution: {integrity: sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==} - engines: {node: '>=8'} - - longest-streak@3.1.0: - resolution: {integrity: sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==} - - magic-string-ast@1.0.3: - resolution: {integrity: sha512-CvkkH1i81zl7mmb94DsRiFeG9V2fR2JeuK8yDgS8oiZSFa++wWLEgZ5ufEOyLHbvSbD1gTRKv9NdX69Rnvr9JA==} - engines: {node: '>=20.19.0'} - - magic-string@0.30.21: - resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==} - - magic-string@1.4.3: - resolution: {integrity: sha512-z12OxmaPGE0F4xlpGdjuAUckipLpQlTAuAmyGhNoD7ODpYUzvDfvtxUbjM/jwznyP178oju/KDdyi220wNJ0RQ==} - - markdown-table@3.1.0: - resolution: {integrity: sha512-xpeSCdM+B+6P3ncfgaB7FoDbtJ30xAe6Z18TGT7AgXJsHqCElCICZovQqdRMm7kHgpTyYv36EupqewoFFSB8vw==} - - mdast-util-find-and-replace@3.0.4: - resolution: {integrity: sha512-z4B5c6jrnJ1ltOQemhWYPBSAo6y42Z8Gt2yEgfgNTMcLSU59B8bfj8Z8AnAlJrBGLnqkdAUZ7jdDEqQw3KuipQ==} - - mdast-util-from-markdown@2.1.0: - resolution: {integrity: sha512-KRLgmPaP2H1ul2bpoJkOS+9pAcDAAj9Nu1mqLnh8NLeJG5tlvj42TH80PIGBpROWlRXLk0lDrWNuZCFy/tsB4A==} - - mdast-util-gfm-autolink-literal@2.1.0: - resolution: {integrity: sha512-Jx6QSK8wDo558Bcf7q+1pe0v81g2PVs09Hlvu9xJHmCFRF3sAPW7vXFVIAwBncs3sde92WbsVqNxwdqViA2XnQ==} - - mdast-util-gfm-footnote@2.1.0: - resolution: {integrity: sha512-sqpDWlsHn7Ac9GNZQMeUzPQSMzR6Wv0WKRNvQRg0KqHh02fpTz69Qc1QSseNX29bhz1ROIyNyxExfawVKTm1GQ==} - - mdast-util-gfm-strikethrough@2.0.1: - resolution: {integrity: sha512-OuJHqvr455pwu2OaOrir7dbzqs4jlWKOtlu9L6GjcIjjQwNyw02VntQsr/Ek6/A13vgnXfUhBekWRUP1OkNivw==} - - mdast-util-gfm-table@2.0.1: - resolution: {integrity: sha512-fiIjPrAy4kz68/eFbPHhsiWDGHhqUSVoU1XsfLM5DsEPXw7MxgiVVyulUggFRckVWeT1KXQXkg5vm3kv4oMSOA==} - - mdast-util-gfm-task-list-item@2.0.1: - resolution: {integrity: sha512-jXVO1hvB2hs82g1esi7I9nIJDqiijbQLIyH2jDUb5s7jIAZMr/79h0VHSq7XHKTqpLARRm+DDNjduB7S9+6XZA==} - - mdast-util-gfm@3.1.0: - resolution: {integrity: sha512-0ulfdQOM3ysHhCJ1p06l0b0VKlhU0wuQs3thxZQagjcjPrlFRqY215uZGHHJan9GEAXd9MbfPjFJz+qMkVR6zQ==} - - mdast-util-phrasing@4.1.0: - resolution: {integrity: sha512-TqICwyvJJpBwvGAMZjj4J2n0X8QWp21b9l0o7eXyVJ25YNWYbJDVIyD1bZXE6WtV6RmKJVYmQAKWa0zWOABz2w==} - - mdast-util-to-hast@13.2.1: - resolution: {integrity: sha512-cctsq2wp5vTsLIcaymblUriiTcZd0CwWtCbLvrOzYCDZoWyMNV8sZ7krj09FSnsiJi3WVsHLM4k6Dq/yaPyCXA==} - - mdast-util-to-markdown@2.2.3: - resolution: {integrity: sha512-dImdB6VZRMRac1SwAW6o1c0ESk/7pFFAMCMuKM+9v7LpTSthMM5nzXpqKw4Mjo66aXVKhNkyrP4bMB9MurPyWg==} - - mdast-util-to-string@4.0.0: - resolution: {integrity: sha512-0H44vDimn51F0YwvxSJSm0eCDOJTRlmN0R1yBh4HLj9wiV1Dn0QoXGbvFAWj2hSItVTlCmBF1hqKlIyUBVFLPg==} - - micromark-core-commonmark@2.0.4: - resolution: {integrity: sha512-wxEeE8v8XVvOrxn1TZj74qYhAtTQsSqufHVS3uNVyT1MupXxhyaHk8/9xDNPh9BmL77QNDgWTkZ3RsYHB2ry7w==} - - micromark-extension-gfm-autolink-literal@2.1.0: - resolution: {integrity: sha512-oOg7knzhicgQ3t4QCjCWgTmfNhvQbDDnJeVu9v81r7NltNCVmhPy1fJRX27pISafdjL+SVc4d3l48Gb6pbRypw==} - - micromark-extension-gfm-footnote@2.1.0: - resolution: {integrity: sha512-/yPhxI1ntnDNsiHtzLKYnE3vf9JZ6cAisqVDauhp4CEHxlb4uoOTxOCJ+9s51bIB8U1N1FJ1RXOKTIlD5B/gqw==} - - micromark-extension-gfm-strikethrough@2.1.0: - resolution: {integrity: sha512-ADVjpOOkjz1hhkZLlBiYA9cR2Anf8F4HqZUO6e5eDcPQd0Txw5fxLzzxnEkSkfnD0wziSGiv7sYhk/ktvbf1uw==} - - micromark-extension-gfm-table@2.1.2: - resolution: {integrity: sha512-pRzm4kDTu0MjlmBkxmS9yYhw60nncfcEwu9NNdPFSQEFXS95ZKyIIyTSHu/o3ReBUrLKYEq+7YaXCRn/bPB4MA==} - - micromark-extension-gfm-tagfilter@2.0.0: - resolution: {integrity: sha512-xHlTOmuCSotIA8TW1mDIM6X2O1SiX5P9IuDtqGonFhEK0qgRI4yeC6vMxEV2dgyr2TiD+2PQ10o+cOhdVAcwfg==} - - micromark-extension-gfm-task-list-item@2.1.0: - resolution: {integrity: sha512-qIBZhqxqI6fjLDYFTBIa4eivDMnP+OZqsNwmQ3xNLE4Cxwc+zfQEfbs6tzAo2Hjq+bh6q5F+Z8/cksrLFYWQQw==} - - micromark-extension-gfm@3.0.0: - resolution: {integrity: sha512-vsKArQsicm7t0z2GugkCKtZehqUm31oeGBV/KVSorWSy8ZlNAv7ytjFhvaryUiCUJYqs+NoE6AFhpQvBTM6Q4w==} - - micromark-factory-destination@2.0.1: - resolution: {integrity: sha512-Xe6rDdJlkmbFRExpTOmRj9N3MaWmbAgdpSrBQvCFqhezUn4AHqJHbaEnfbVYYiexVSs//tqOdY/DxhjdCiJnIA==} - - micromark-factory-label@2.0.1: - resolution: {integrity: sha512-VFMekyQExqIW7xIChcXn4ok29YE3rnuyveW3wZQWWqF4Nv9Wk5rgJ99KzPvHjkmPXF93FXIbBp6YdW3t71/7Vg==} - - micromark-factory-space@2.1.0: - resolution: {integrity: sha512-fS8hnLIjnjvdQIj39Geug8wWsR0HrYZ43KShKxNfwT7t2LOHo/LbWZEzEaSOjwtjdCsjoE6syHhonEzW0zv0+Q==} - - micromark-factory-title@2.0.1: - resolution: {integrity: sha512-5bZ+3CjhAd9eChYTHsjy6TGxpOFSKgKKJPJxr293jTbfry2KDoWkhBb6TcPVB4NmzaPhMs1Frm9AZH7OD4Cjzw==} - - micromark-factory-whitespace@2.0.1: - resolution: {integrity: sha512-Ob0nuZ3PKt/n0hORHyvoD9uZhr+Za8sFoP+OnMcnWK5lngSzALgQYKMr9RJVOWLqQYuyn6ulqGWSXdwf6F80lQ==} - - micromark-util-character@2.1.1: - resolution: {integrity: sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q==} - - micromark-util-chunked@2.0.1: - resolution: {integrity: sha512-QUNFEOPELfmvv+4xiNg2sRYeS/P84pTW0TCgP5zc9FpXetHY0ab7SxKyAQCNCc1eK0459uoLI1y5oO5Vc1dbhA==} - - micromark-util-classify-character@2.0.1: - resolution: {integrity: sha512-K0kHzM6afW/MbeWYWLjoHQv1sgg2Q9EccHEDzSkxiP/EaagNzCm7T/WMKZ3rjMbvIpvBiZgwR3dKMygtA4mG1Q==} - - micromark-util-combine-extensions@2.0.1: - resolution: {integrity: sha512-OnAnH8Ujmy59JcyZw8JSbK9cGpdVY44NKgSM7E9Eh7DiLS2E9RNQf0dONaGDzEG9yjEl5hcqeIsj4hfRkLH/Bg==} - - micromark-util-decode-numeric-character-reference@2.0.2: - resolution: {integrity: sha512-ccUbYk6CwVdkmCQMyr64dXz42EfHGkPQlBj5p7YVGzq8I7CtjXZJrubAYezf7Rp+bjPseiROqe7G6foFd+lEuw==} - - micromark-util-decode-string@2.0.1: - resolution: {integrity: sha512-nDV/77Fj6eH1ynwscYTOsbK7rR//Uj0bZXBwJZRfaLEJ1iGBR6kIfNmlNqaqJf649EP0F3NWNdeJi03elllNUQ==} - - micromark-util-edit-map@1.0.0: - resolution: {integrity: sha512-Pa2ljlsEL6sVwFaYeyrOLSYbQt73JvGbPOYFq+9AElXiSnfI5Q4465RRZ1sHv7lDjDOnGRDDaqPXqClqWK/q1Q==} - - micromark-util-encode@2.0.1: - resolution: {integrity: sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw==} - - micromark-util-html-tag-name@2.0.1: - resolution: {integrity: sha512-2cNEiYDhCWKI+Gs9T0Tiysk136SnR13hhO8yW6BGNyhOC4qYFnwF1nKfD3HFAIXA5c45RrIG1ub11GiXeYd1xA==} - - micromark-util-normalize-identifier@2.0.1: - resolution: {integrity: sha512-sxPqmo70LyARJs0w2UclACPUUEqltCkJ6PhKdMIDuJ3gSf/Q+/GIe3WKl0Ijb/GyH9lOpUkRAO2wp0GVkLvS9Q==} - - micromark-util-resolve-all@2.0.1: - resolution: {integrity: sha512-VdQyxFWFT2/FGJgwQnJYbe1jjQoNTS4RjglmSjTUlpUMa95Htx9NHeYW4rGDJzbjvCsl9eLjMQwGeElsqmzcHg==} - - micromark-util-sanitize-uri@2.0.1: - resolution: {integrity: sha512-9N9IomZ/YuGGZZmQec1MbgxtlgougxTodVwDzzEouPKo3qFWvymFHWcnDi2vzV1ff6kas9ucW+o3yzJK9YB1AQ==} - - micromark-util-subtokenize@2.1.0: - resolution: {integrity: sha512-XQLu552iSctvnEcgXw6+Sx75GflAPNED1qx7eBJ+wydBb2KCbRZe+NwvIEEMM83uml1+2WSXpBAcp9IUCgCYWA==} - - micromark-util-symbol@2.0.1: - resolution: {integrity: sha512-vs5t8Apaud9N28kgCrRUdEed4UJ+wWNvicHLPxCa9ENlYuAY31M0ETy5y1vA33YoNPDFTghEbnh6efaE8h4x0Q==} - - micromark-util-types@2.0.3: - resolution: {integrity: sha512-oxB2Ik03hI0gv+VNn9tnh1t1YEe9MDPptViAEgfdf3YQHsn0pzGTgCdlSCJXcwhqm8phaEuM7zeEu3QQzVBrPg==} - - micromark@4.0.3: - resolution: {integrity: sha512-oGYfQzHSG5dOMovQcJ3fyTmZlWAWpi0XA0sJwJs+i6OT88o1+Jtw/8z0CmdowSLxGhhFK89rQ/oXph/wN02PNw==} - - mlly@1.8.2: - resolution: {integrity: sha512-d+ObxMQFmbt10sretNDytwt85VrbkhhUA/JBGm1MPaWJ65Cl4wOgLaB1NYvJSZ0Ef03MMEU/0xpPMXUIQ29UfA==} - - ms@2.1.3: - resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} - - muggle-string@0.4.1: - resolution: {integrity: sha512-VNTrAak/KhO2i8dqqnqnAHOa3cYBwXEZe9h+D5h/1ZqFSTEFHdM65lR7RoIqq3tBBYavsOXV84NoHXZ0AkPyqQ==} - - nanoid@3.3.20: - resolution: {integrity: sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ==} - engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} - hasBin: true - - nostics@1.3.0: - resolution: {integrity: sha512-wzRsrJwNlFbqIRQt8aCeL2WE8USip/uuvGSOZV1D02CxX8ABTMbw8IywKjH7yWHETMXbWJI4OBpihg9rmz2Vyg==} - - ohash@2.0.12: - resolution: {integrity: sha512-65S/5gk9YSsaRjcyf7Nfa6h/d3E8/1gslpXfI4W7Dxn/oap8IKRuNT5VXkLQ1YFKIEg4apRY4Pj6aiwFzrDdmw==} - - oniguruma-parser@0.12.2: - resolution: {integrity: sha512-6HVa5oIrgMC6aA6WF6XyyqbhRPJrKR02L20+2+zpDtO5QAzGHAUGw5TKQvwi5vctNnRHkJYmjAhRVQF2EKdTQw==} - - oniguruma-to-es@4.3.6: - resolution: {integrity: sha512-csuQ9x3Yr0cEIs/Zgx/OEt9iBw9vqIunAPQkx19R/fiMq2oGVTgcMqO/V3Ybqefr1TBvosI6jU539ksaBULJyA==} - - p-limit@2.3.0: - resolution: {integrity: sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==} - engines: {node: '>=6'} - - p-locate@4.1.0: - resolution: {integrity: sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==} - engines: {node: '>=8'} - - p-try@2.2.0: - resolution: {integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==} - engines: {node: '>=6'} - - path-browserify@1.0.1: - resolution: {integrity: sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==} - - path-exists@4.0.0: - resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==} - engines: {node: '>=8'} - - pathe@2.0.3: - resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==} - - perfect-debounce@2.1.0: - resolution: {integrity: sha512-LjgdTytVFXeUgtHZr9WYViYSM/g8MkcTPYDlPa3cDqMirHjKiSZPYd6DoL7pK8AJQr+uWkQvCjHNdiMqsrJs+g==} - - picocolors@1.1.1: - resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} - - picomatch@4.0.7: - resolution: {integrity: sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==} - engines: {node: '>=12'} - - pinia@4.1.0: - resolution: {integrity: sha512-+5/HMuVjYQfKlCD5xQ7zfXn1xUzYFEa7pd0DQK5SaMfZCaFRTHlaH/c02N1FoGOdlzSiwf5EOPgJx//1QDw6gw==} - peerDependencies: - '@vue/devtools-api': ^8.2.1 - typescript: '>=5.6.0' - vue: ^3.5.11 - peerDependenciesMeta: - typescript: - optional: true - - pkg-types@1.3.1: - resolution: {integrity: sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==} - - pkg-types@2.4.0: - resolution: {integrity: sha512-07Fys7iVx0X6TcviMOgogM1Lk33ZyqOezMnU79S+kffWqwolG/5W9V8EgQSeYCIfFTYVgssRbnH630Oa2+soBA==} - - pngjs@5.0.0: - resolution: {integrity: sha512-40QW5YalBNfQo5yRYmiw7Yz6TKKVr3h6970B2YE+3fQpsWcrbj1PzJgxeJ19DRQjhMbKPIuMY8rFaXc8moolVw==} - engines: {node: '>=10.13.0'} - - postcss@8.5.31: - resolution: {integrity: sha512-YUbWYCgErwnMAVkjUnYa+KlMBzGpHwiIt/DE7f0G33AuX2LH9UcTk6KgWxd3zRU+pN3u/C+Xl3EnMLM4Hea7Sg==} - engines: {node: ^10 || ^12 || >=14} - - property-information@7.2.0: - resolution: {integrity: sha512-IAtzIB6sUiWaJYrX9smp3V46pBGbBeLFRGdh25kg1334VcBlD8HzhPeNIWQH9zhGmo2itIe25EHt9dQP7G5hmg==} - - qrcode@1.5.4: - resolution: {integrity: sha512-1ca71Zgiu6ORjHqFBDpnSMTR2ReToX4l1Au1VFLyVeBTFavzQnv5JxMFr3ukHVKpSrSA2MCk0lNJSykjUfz7Zg==} - engines: {node: '>=10.13.0'} - hasBin: true - - quansync@0.2.11: - resolution: {integrity: sha512-AifT7QEbW9Nri4tAwR5M/uzpBuqfZf+zwaEM/QkzEjj7NBuFD2rBuy0K3dE+8wltbezDV7JMA0WfnCPYRSYbXA==} - - readdirp@5.1.1: - resolution: {integrity: sha512-Kko+Y5XQ6fM+Ce3dq3m9YGxnacYZYl9cA1wZjaF3Vbry2L3i1qVg8+CAgNPsXRArPMUMCaOR7oa9Nqntc43JKA==} - engines: {node: '>= 20.19.0'} - - regex-recursion@6.0.2: - resolution: {integrity: sha512-0YCaSCq2VRIebiaUviZNs0cBz1kg5kVS2UKUfNIx8YVs1cN3AV7NTctO5FOKBA+UT2BPJIWZauYHPqJODG50cg==} - - regex-utilities@2.3.0: - resolution: {integrity: sha512-8VhliFJAWRaUiVvREIiW2NXXTmHs4vMNnSzuJVhscgmGav3g9VDxLrQndI3dZZVVdp0ZO/5v0xmX516/7M9cng==} - - regex@6.1.0: - resolution: {integrity: sha512-6VwtthbV4o/7+OaAF9I5L5V3llLEsoPyq9P1JVXkedTP33c7MfCG0/5NOPcSJn0TzXcG9YUrR0gQSWioew3LDg==} - - reka-ui@2.11.0: - resolution: {integrity: sha512-ilkpm4bIAol4jwzm4tpm3WVcffyGOpqksNZL1k1qO9QmIwAA+q8jroxjkUGLEn/GddfdExFfvofWfQiKZszUeQ==} - peerDependencies: - vue: '>= 3.4.0' - - remark-gfm@4.0.1: - resolution: {integrity: sha512-1quofZ2RQ9EWdeN34S79+KExV1764+wCUGop5CPL1WGdD0ocPpu91lzPGbwWMECpEpd42kJGQwzRfyov9j4yNg==} - - remark-parse@11.0.0: - resolution: {integrity: sha512-FCxlKLNGknS5ba/1lmpYijMUzX2esxW5xQqjWxw2eHFfS2MSdaHVINFmhjo+qN1WhZhNimq0dZATN9pH0IDrpA==} - - remark-rehype@11.1.2: - resolution: {integrity: sha512-Dh7l57ianaEoIpzbp0PC9UKAdCSVklD8E5Rpw7ETfbTl3FqcOOgq5q2LVDhgGCkaBv7p24JXikPdvhhmHvKMsw==} - - remark-stringify@11.0.0: - resolution: {integrity: sha512-1OSmLd3awB/t8qdoEOMazZkNsfVTeY4fTsgzcQFdXNq8ToTN4ZGwrMnlda4K6smTFKD+GRV6O48i6Z4iKgPPpw==} - - require-directory@2.1.1: - resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==} - engines: {node: '>=0.10.0'} - - require-main-filename@2.0.0: - resolution: {integrity: sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==} - - rolldown@1.2.15: - resolution: {integrity: sha512-6odND+fel5zVw3I4Yc2e69gvguDnX0CAAGiNDZSq4ik5WUcaLrkD2GLuog0XcODbor31hZ5ayEMgVDno+KPV5g==} - engines: {node: ^20.19.0 || >=22.12.0} - hasBin: true - - scule@1.3.0: - resolution: {integrity: sha512-6FtHJEvt+pVMIB9IBY+IcCJ6Z5f1iQnytgyfKMhDKgmzYG+TeH/wx1y3l27rshSbLiSanrR9ffZDrEsmjlQF2g==} - - set-blocking@2.0.0: - resolution: {integrity: sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==} - - shiki@4.5.0: - resolution: {integrity: sha512-OcRW72ngQvc+MSVWBRIovC/BTW589iUE/Vxav7VeM4RcY9MUjqB+IR6ILG1k9nuW6LiG/nct9uma4/MBtnZbmQ==} - engines: {node: '>=20'} - - source-map-js@1.2.2: - resolution: {integrity: sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==} - engines: {node: '>=0.10.0'} - - space-separated-tokens@2.0.2: - resolution: {integrity: sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==} - - string-width@4.2.3: - resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} - engines: {node: '>=8'} - - stringify-entities@4.0.4: - resolution: {integrity: sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg==} - - strip-ansi@6.0.1: - resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} - engines: {node: '>=8'} - - tailwind-merge@3.7.0: - resolution: {integrity: sha512-XPPUyAc+cvspz3lHTcR/QgPfW2A0lv/xQNIjX3HGhLR+Nq2lHaLq5MtTesHn8GUr3W3DguT2KT5x3NVgRtYwmA==} - - tailwindcss@4.3.3: - resolution: {integrity: sha512-gOhV3P7ufE62QDGg1zVaTgCR+EtPv92k2nIhVcVKcLmxT1sUBsQGhnZj175j+MqRt4zLF7ic+sCYjfhxMxj7YQ==} - - tapable@2.3.3: - resolution: {integrity: sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==} - engines: {node: '>=6'} - - tinyglobby@0.2.17: - resolution: {integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==} - engines: {node: '>=12.0.0'} - - trim-lines@3.0.1: - resolution: {integrity: sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==} - - trough@2.2.0: - resolution: {integrity: sha512-tmMpK00BjZiUyVyvrBK7knerNgmgvcV/KLVyuma/SC+TQN167GrMRciANTz09+k3zW8L8t60jWO1GpfkZdjTaw==} - - tslib@2.8.1: - resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} - - tw-animate-css@1.4.0: - resolution: {integrity: sha512-7bziOlRqH0hJx80h/3mbicLW7o8qLsH5+RaLR2t+OHM3D0JlWGODQKQ4cxbK7WlvmUxpcj6Kgu6EKqjrGFe3QQ==} - - typescript@6.0.3: - resolution: {integrity: sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==} - engines: {node: '>=14.17'} - hasBin: true - - ufo@1.6.4: - resolution: {integrity: sha512-JFNbkD1Svwe0KvGi8GOeLcP4kAWQ609twvCdcHxq1oSL8svv39ZuSvajcD8B+5D0eL4+s1Is2D/O6KN3qcTeRA==} - - undici-types@8.9.0: - resolution: {integrity: sha512-KTDyRTYX8sWmKXAikPHHSyc63CRPETMctyjKFupcC6OBLXT3xsN0e9aF7m+mIXutFWpUXuedtowG7iLOzp0kQg==} - - unified@11.0.5: - resolution: {integrity: sha512-xKvGhPWw3k84Qjh8bI3ZeJjqnyadK+GEFtazSfZv/rKeTkTjOJho6mFqh2SM96iIcZokxiOpg78GazTSg8+KHA==} - - unist-util-is@6.0.1: - resolution: {integrity: sha512-LsiILbtBETkDz8I9p1dQ0uyRUWuaQzd/cuEeS1hoRSyW5E5XGmTzlwY1OrNzzakGowI9Dr/I8HVaw4hTtnxy8g==} - - unist-util-position@5.0.0: - resolution: {integrity: sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA==} - - unist-util-stringify-position@4.0.0: - resolution: {integrity: sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==} - - unist-util-visit-parents@6.1.0: - resolution: {integrity: sha512-vKXxz6O38sKDj1mtx/k2cWvkkFBuYGx6uGrlzBkVeWCRF/F8sdI0j3Wbkz/5rVNRRuVc8UrgRdbCxNhmYXgP3w==} - - unist-util-visit@5.2.0: - resolution: {integrity: sha512-fpsYs/VVoZxfGY9/j3FQpZmN8wdLJaV1Pt38AaJNZu9uKIHcFU3halCdBveEq1HGKO1OEfJY65w1zvoFV1b3qQ==} - - unplugin-utils@0.3.2: - resolution: {integrity: sha512-xVToRh2CTmLk2HnEG7ac4rl1MJTT3RFkpS8B++/SnB0kXvuaavD+n3m/vrzyWQOdJNSZQACnbz01pnppbwV5BA==} - engines: {node: '>=20.19.0'} - - unplugin@3.4.0: - resolution: {integrity: sha512-9skdIFlCsPdFV7wUfZxNsFInlW+7nJmGu2gkTu0OUhF56aXGsHab9x52/QhdJ4lC7ZDPWTxbiC4ANqVlsuaW3w==} - 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 - - vfile-message@4.0.3: - resolution: {integrity: sha512-QTHzsGd1EhbZs4AsQ20JX1rC3cOlt/IWJruk893DfLRr57lcnOeMaWG4K0JrRta4mIJZKth2Au3mM3u03/JWKw==} - - vfile@6.0.3: - resolution: {integrity: sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==} - - vite@8.3.5: - resolution: {integrity: sha512-z1YpjieJ9g0ebTmQpLBv/oq9E3F9EIlOe+7LahW8SrE3LTiG3udBRUXQOlYXP9b+IC2q2phHeVxj9xGlw34OEQ==} - engines: {node: ^20.19.0 || >=22.12.0} - hasBin: true - peerDependencies: - '@types/node': ^20.19.0 || >=22.12.0 - '@vitejs/devtools': ^0.7.1 || ^0.8.0 - esbuild: ^0.27.0 || ^0.28.0 - jiti: '>=1.21.0' - less: ^4.0.0 - sass: ^1.70.0 - sass-embedded: ^1.70.0 - stylus: '>=0.54.8' - sugarss: ^5.0.0 - terser: ^5.16.0 - tsx: ^4.8.1 - yaml: ^2.4.2 - peerDependenciesMeta: - '@types/node': - optional: true - '@vitejs/devtools': - optional: true - esbuild: - optional: true - jiti: - optional: true - less: - optional: true - sass: - optional: true - sass-embedded: - optional: true - stylus: - optional: true - sugarss: - optional: true - terser: - optional: true - tsx: - optional: true - yaml: - optional: true - - vscode-uri@3.2.0: - resolution: {integrity: sha512-m2gXo3bn0G1kT9InzMf07fTbqMbGtyckj3bH5ktLO+1Ssv+yiATZ4dhwaQv9UZWxJh6E9IFGnQyjgWVDWVBDrg==} - - vue-demi@0.14.10: - resolution: {integrity: sha512-nMZBOwuzabUO0nLgIcc6rycZEebF6eeUfaiQx9+WSk8e29IbLvPU9feI6tqW4kTo3hvoYAJkMh8n8D0fuISphg==} - engines: {node: '>=12'} - hasBin: true - peerDependencies: - '@vue/composition-api': ^1.0.0-rc.1 - vue: ^3.0.0-0 || ^2.6.0 - peerDependenciesMeta: - '@vue/composition-api': - optional: true - - vue-router@5.4.0: - resolution: {integrity: sha512-pFvcYcxinDHjZUlf7AzFBrT8r8Xqvv4uMHoJnjc+EqPawXQvHTkF8S4tfSmQLpriVHUGfkaKlI7Et0KRjTMTdw==} - 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 - - vue-sonner@2.0.9: - resolution: {integrity: sha512-i6BokNlNDL93fpzNxN/LZSn6D6MzlO+i3qXt6iVZne3x1k7R46d5HlFB4P8tYydhgqOrRbIZEsnRd3kG7qGXyw==} - peerDependencies: - '@nuxt/kit': ^4.0.3 - '@nuxt/schema': ^4.0.3 - nuxt: ^4.0.3 - peerDependenciesMeta: - '@nuxt/kit': - optional: true - '@nuxt/schema': - optional: true - nuxt: - optional: true - - vue-tsc@3.3.13: - resolution: {integrity: sha512-jE4/bXdOMSHVxEGgQCqNllJy+9N3Gx6tfSAsg0yhFK/MAN6eXqISihupnDEKSCt12VVnjN2gI3AqLYcqoh5x/A==} - hasBin: true - peerDependencies: - typescript: '>=5.0.0' - - vue@3.5.44: - resolution: {integrity: sha512-dvvmaOCG7lAMkJTPqPwWeGMsPS6DIsFsfZDUgBp9V6mHf9b3+/wyVwYR4Es+WV6uJC0FKRxp81Obcq0ZwUcGFQ==} - peerDependencies: - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true - - webpack-virtual-modules@0.6.2: - resolution: {integrity: sha512-66/V2i5hQanC51vBQKPH4aI8NMAcBW59FVBs+rC7eGHupMyfn34q7rZIE+ETlJ+XTevqfUhVVBgSUNSW2flEUQ==} - - which-module@2.0.1: - resolution: {integrity: sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==} - - wrap-ansi@6.2.0: - resolution: {integrity: sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==} - engines: {node: '>=8'} - - y18n@4.0.3: - resolution: {integrity: sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==} - - yaml@2.9.1: - resolution: {integrity: sha512-3NxN8+78OdzbT7C/WjGsyfPAtJaN3FNDsWxv7Y7mcDsT/oOmgW8BpyQQFFBnvZE3j9Y2Sdz1ULFLezL7Eb2yFw==} - engines: {node: '>= 14.6'} - hasBin: true - - yargs-parser@18.1.3: - resolution: {integrity: sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==} - engines: {node: '>=6'} - - yargs@15.4.1: - resolution: {integrity: sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==} - engines: {node: '>=8'} - - zwitch@2.0.4: - resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==} - -snapshots: - - '@babel/helper-string-parser@7.29.11': {} - - '@babel/helper-string-parser@8.0.8': {} - - '@babel/helper-validator-identifier@7.29.7': {} - - '@babel/helper-validator-identifier@8.0.6': {} - - '@babel/parser@7.29.11': - dependencies: - '@babel/types': 7.29.11 - - '@babel/parser@8.0.8': - dependencies: - '@babel/types': 8.0.8 - - '@babel/types@7.29.11': - dependencies: - '@babel/helper-string-parser': 7.29.11 - '@babel/helper-validator-identifier': 7.29.7 - - '@babel/types@8.0.8': - dependencies: - '@babel/helper-string-parser': 8.0.8 - '@babel/helper-validator-identifier': 8.0.6 - - '@floating-ui/core@1.8.0': - dependencies: - '@floating-ui/utils': 0.2.12 - - '@floating-ui/dom@1.8.0': - dependencies: - '@floating-ui/core': 1.8.0 - '@floating-ui/utils': 0.2.12 - - '@floating-ui/utils@0.2.12': {} - - '@floating-ui/vue@2.0.1(vue@3.5.44(typescript@6.0.3))': - dependencies: - '@floating-ui/dom': 1.8.0 - '@floating-ui/utils': 0.2.12 - vue: 3.5.44(typescript@6.0.3) - - '@fontsource-variable/ibm-plex-sans@5.3.0': {} - - '@fontsource/ibm-plex-mono@5.3.0': {} - - '@internationalized/date@3.12.4': - dependencies: - '@swc/helpers': 0.5.23 - - '@internationalized/number@3.6.9': - dependencies: - '@swc/helpers': 0.5.23 - - '@jridgewell/gen-mapping@0.3.13': - dependencies: - '@jridgewell/sourcemap-codec': 1.6.0 - '@jridgewell/trace-mapping': 0.3.31 - - '@jridgewell/remapping@2.3.5': - dependencies: - '@jridgewell/gen-mapping': 0.3.13 - '@jridgewell/trace-mapping': 0.3.31 - - '@jridgewell/resolve-uri@3.1.2': {} - - '@jridgewell/sourcemap-codec@1.6.0': {} - - '@jridgewell/trace-mapping@0.3.31': - dependencies: - '@jridgewell/resolve-uri': 3.1.2 - '@jridgewell/sourcemap-codec': 1.6.0 - - '@lucide/vue@1.61.0(vue@3.5.44(typescript@6.0.3))': - dependencies: - vue: 3.5.44(typescript@6.0.3) - - '@oxc-project/types@0.155.0': {} - - '@rolldown/binding-android-arm-eabi@1.2.15': - optional: true - - '@rolldown/binding-android-arm64@1.2.15': - optional: true - - '@rolldown/binding-darwin-arm64@1.2.15': - optional: true - - '@rolldown/binding-darwin-x64@1.2.15': - optional: true - - '@rolldown/binding-freebsd-x64@1.2.15': - optional: true - - '@rolldown/binding-linux-arm-gnueabihf@1.2.15': - optional: true - - '@rolldown/binding-linux-arm64-gnu@1.2.15': - optional: true - - '@rolldown/binding-linux-arm64-musl@1.2.15': - optional: true - - '@rolldown/binding-linux-ppc64-gnu@1.2.15': - optional: true - - '@rolldown/binding-linux-s390x-gnu@1.2.15': - optional: true - - '@rolldown/binding-linux-x64-gnu@1.2.15': - optional: true - - '@rolldown/binding-linux-x64-musl@1.2.15': - optional: true - - '@rolldown/binding-openharmony-arm64@1.2.15': - optional: true - - '@rolldown/binding-win32-arm64-msvc@1.2.15': - optional: true - - '@rolldown/binding-win32-x64-msvc@1.2.15': - optional: true - - '@rolldown/pluginutils@1.0.1': {} - - '@shikijs/core@4.5.0': - dependencies: - '@shikijs/primitive': 4.5.0 - '@shikijs/types': 4.5.0 - '@shikijs/vscode-textmate': 10.1.0 - '@types/hast': 3.0.5 - hast-util-to-html: 9.0.5 - - '@shikijs/engine-javascript@4.5.0': - dependencies: - '@shikijs/types': 4.5.0 - '@shikijs/vscode-textmate': 10.1.0 - oniguruma-to-es: 4.3.6 - - '@shikijs/engine-oniguruma@4.5.0': - dependencies: - '@shikijs/types': 4.5.0 - '@shikijs/vscode-textmate': 10.1.0 - - '@shikijs/langs@4.5.0': - dependencies: - '@shikijs/types': 4.5.0 - - '@shikijs/primitive@4.5.0': - dependencies: - '@shikijs/types': 4.5.0 - '@shikijs/vscode-textmate': 10.1.0 - '@types/hast': 3.0.5 - - '@shikijs/themes@4.5.0': - dependencies: - '@shikijs/types': 4.5.0 - - '@shikijs/types@4.5.0': - dependencies: - '@shikijs/vscode-textmate': 10.1.0 - '@types/hast': 3.0.5 - - '@shikijs/vscode-textmate@10.1.0': {} - - '@swc/helpers@0.5.23': - dependencies: - tslib: 2.8.1 - - '@tailwindcss/node@4.3.3': - dependencies: - '@jridgewell/remapping': 2.3.5 - enhanced-resolve: 5.26.0 - jiti: 2.7.0 - lightningcss: 1.32.0 - magic-string: 0.30.21 - source-map-js: 1.2.2 - tailwindcss: 4.3.3 - - '@tailwindcss/oxide-android-arm64@4.3.3': - optional: true - - '@tailwindcss/oxide-darwin-arm64@4.3.3': - optional: true - - '@tailwindcss/oxide-darwin-x64@4.3.3': - optional: true - - '@tailwindcss/oxide-freebsd-x64@4.3.3': - optional: true - - '@tailwindcss/oxide-linux-arm-gnueabihf@4.3.3': - optional: true - - '@tailwindcss/oxide-linux-arm64-gnu@4.3.3': - optional: true - - '@tailwindcss/oxide-linux-arm64-musl@4.3.3': - optional: true - - '@tailwindcss/oxide-linux-x64-gnu@4.3.3': - optional: true - - '@tailwindcss/oxide-linux-x64-musl@4.3.3': - optional: true - - '@tailwindcss/oxide-wasm32-wasi@4.3.3': - optional: true - - '@tailwindcss/oxide-win32-arm64-msvc@4.3.3': - optional: true - - '@tailwindcss/oxide-win32-x64-msvc@4.3.3': - optional: true - - '@tailwindcss/oxide@4.3.3': - 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 - - '@tailwindcss/vite@4.3.3(vite@8.3.5(@types/node@26.6.5)(jiti@2.7.0)(yaml@2.9.1))': - dependencies: - '@tailwindcss/node': 4.3.3 - '@tailwindcss/oxide': 4.3.3 - tailwindcss: 4.3.3 - vite: 8.3.5(@types/node@26.6.5)(jiti@2.7.0)(yaml@2.9.1) - - '@tanstack/devtools-event-client@0.4.4': {} - - '@tanstack/form-core@1.33.5': - dependencies: - '@tanstack/devtools-event-client': 0.4.4 - '@tanstack/pacer-lite': 0.1.1 - '@tanstack/store': 0.11.2 - - '@tanstack/pacer-lite@0.1.1': {} - - '@tanstack/store@0.11.2': {} - - '@tanstack/virtual-core@3.19.7': {} - - '@tanstack/vue-form@1.33.5(vue@3.5.44(typescript@6.0.3))': - dependencies: - '@tanstack/form-core': 1.33.5 - '@tanstack/vue-store': 0.11.2(vue@3.5.44(typescript@6.0.3)) - vue: 3.5.44(typescript@6.0.3) - transitivePeerDependencies: - - '@vue/composition-api' - - '@tanstack/vue-store@0.11.2(vue@3.5.44(typescript@6.0.3))': - dependencies: - '@tanstack/store': 0.11.2 - vue: 3.5.44(typescript@6.0.3) - vue-demi: 0.14.10(vue@3.5.44(typescript@6.0.3)) - - '@tanstack/vue-virtual@3.13.48(vue@3.5.44(typescript@6.0.3))': - dependencies: - '@tanstack/virtual-core': 3.19.7 - vue: 3.5.44(typescript@6.0.3) - - '@types/debug@4.1.13': - dependencies: - '@types/ms': 2.1.0 - - '@types/estree@1.0.9': {} - - '@types/hast@3.0.5': - dependencies: - '@types/unist': 3.0.3 - - '@types/mdast@4.0.4': - dependencies: - '@types/unist': 3.0.3 - - '@types/ms@2.1.0': {} - - '@types/node@26.6.5': - dependencies: - undici-types: 8.9.0 - - '@types/qrcode@1.5.6': - dependencies: - '@types/node': 26.6.5 - - '@types/unist@3.0.3': {} - - '@types/web-bluetooth@0.0.20': {} - - '@types/web-bluetooth@0.0.21': {} - - '@ui-sdk/core@0.1.0-beta.16': {} - - '@ui-sdk/vue@0.1.0-beta.16(@ui-sdk/core@0.1.0-beta.16)(vue@3.5.44(typescript@6.0.3))': - dependencies: - '@ui-sdk/core': 0.1.0-beta.16 - vue: 3.5.44(typescript@6.0.3) - - '@ungap/structured-clone@1.4.0': {} - - '@vitejs/plugin-vue@6.0.10(vite@8.3.5(@types/node@26.6.5)(jiti@2.7.0)(yaml@2.9.1))(vue@3.5.44(typescript@6.0.3))': - dependencies: - '@rolldown/pluginutils': 1.0.1 - vite: 8.3.5(@types/node@26.6.5)(jiti@2.7.0)(yaml@2.9.1) - vue: 3.5.44(typescript@6.0.3) - - '@volar/language-core@2.4.28': - dependencies: - '@volar/source-map': 2.4.28 - - '@volar/source-map@2.4.28': {} - - '@volar/typescript@2.4.28(typescript@6.0.3)': - dependencies: - '@volar/language-core': 2.4.28 - path-browserify: 1.0.1 - vscode-uri: 3.2.0 - optionalDependencies: - typescript: 6.0.3 - - '@vue-flow/background@1.3.2(@vue-flow/core@1.48.2(vue@3.5.44(typescript@6.0.3)))(vue@3.5.44(typescript@6.0.3))': - dependencies: - '@vue-flow/core': 1.48.2(vue@3.5.44(typescript@6.0.3)) - vue: 3.5.44(typescript@6.0.3) - - '@vue-flow/core@1.48.2(vue@3.5.44(typescript@6.0.3))': - dependencies: - '@vueuse/core': 10.11.1(vue@3.5.44(typescript@6.0.3)) - d3-drag: 3.0.0 - d3-interpolate: 3.0.1 - d3-selection: 3.0.0 - d3-zoom: 3.0.0 - vue: 3.5.44(typescript@6.0.3) - transitivePeerDependencies: - - '@vue/composition-api' - - '@vue-macros/common@3.1.4(vue@3.5.44(typescript@6.0.3))': - dependencies: - '@vue/compiler-sfc': 3.5.44 - ast-kit: 2.2.0 - local-pkg: 1.2.1 - magic-string-ast: 1.0.3 - unplugin-utils: 0.3.2 - optionalDependencies: - vue: 3.5.44(typescript@6.0.3) - - '@vue/compiler-core@3.5.44': - dependencies: - '@babel/parser': 7.29.11 - '@vue/shared': 3.5.44 - entities: 7.0.1 - estree-walker: 2.0.2 - source-map-js: 1.2.2 - - '@vue/compiler-dom@3.5.44': - dependencies: - '@vue/compiler-core': 3.5.44 - '@vue/shared': 3.5.44 - - '@vue/compiler-sfc@3.5.44': - dependencies: - '@babel/parser': 7.29.11 - '@vue/compiler-core': 3.5.44 - '@vue/compiler-dom': 3.5.44 - '@vue/compiler-ssr': 3.5.44 - '@vue/shared': 3.5.44 - estree-walker: 2.0.2 - magic-string: 0.30.21 - postcss: 8.5.31 - source-map-js: 1.2.2 - - '@vue/compiler-ssr@3.5.44': - dependencies: - '@vue/compiler-dom': 3.5.44 - '@vue/shared': 3.5.44 - - '@vue/devtools-api@8.2.1': - dependencies: - '@vue/devtools-kit': 8.2.1 - - '@vue/devtools-kit@8.2.1': - dependencies: - '@vue/devtools-shared': 8.2.1 - birpc: 2.9.0 - hookable: 5.5.3 - perfect-debounce: 2.1.0 - - '@vue/devtools-shared@8.2.1': {} - - '@vue/language-core@3.3.13': - dependencies: - '@volar/language-core': 2.4.28 - '@vue/compiler-dom': 3.5.44 - '@vue/shared': 3.5.44 - alien-signals: 3.2.1 - muggle-string: 0.4.1 - path-browserify: 1.0.1 - picomatch: 4.0.7 - - '@vue/reactivity@3.5.44': - dependencies: - '@vue/shared': 3.5.44 - - '@vue/runtime-core@3.5.44': - dependencies: - '@vue/reactivity': 3.5.44 - '@vue/shared': 3.5.44 - - '@vue/runtime-dom@3.5.44': - dependencies: - '@vue/reactivity': 3.5.44 - '@vue/runtime-core': 3.5.44 - '@vue/shared': 3.5.44 - csstype: 3.2.3 - - '@vue/server-renderer@3.5.44': - dependencies: - '@vue/compiler-ssr': 3.5.44 - '@vue/runtime-dom': 3.5.44 - '@vue/shared': 3.5.44 - - '@vue/shared@3.5.44': {} - - '@vue/tsconfig@0.9.1(typescript@6.0.3)(vue@3.5.44(typescript@6.0.3))': - optionalDependencies: - typescript: 6.0.3 - vue: 3.5.44(typescript@6.0.3) - - '@vueuse/core@10.11.1(vue@3.5.44(typescript@6.0.3))': - dependencies: - '@types/web-bluetooth': 0.0.20 - '@vueuse/metadata': 10.11.1 - '@vueuse/shared': 10.11.1(vue@3.5.44(typescript@6.0.3)) - vue-demi: 0.14.10(vue@3.5.44(typescript@6.0.3)) - transitivePeerDependencies: - - '@vue/composition-api' - - vue - - '@vueuse/core@14.4.0(vue@3.5.44(typescript@6.0.3))': - dependencies: - '@types/web-bluetooth': 0.0.21 - '@vueuse/metadata': 14.4.0 - '@vueuse/shared': 14.4.0(vue@3.5.44(typescript@6.0.3)) - vue: 3.5.44(typescript@6.0.3) - - '@vueuse/core@15.0.0(vue@3.5.44(typescript@6.0.3))': - dependencies: - '@types/web-bluetooth': 0.0.21 - '@vueuse/metadata': 15.0.0 - '@vueuse/shared': 15.0.0(vue@3.5.44(typescript@6.0.3)) - vue: 3.5.44(typescript@6.0.3) - - '@vueuse/metadata@10.11.1': {} - - '@vueuse/metadata@14.4.0': {} - - '@vueuse/metadata@15.0.0': {} - - '@vueuse/shared@10.11.1(vue@3.5.44(typescript@6.0.3))': - dependencies: - vue-demi: 0.14.10(vue@3.5.44(typescript@6.0.3)) - transitivePeerDependencies: - - '@vue/composition-api' - - vue - - '@vueuse/shared@14.4.0(vue@3.5.44(typescript@6.0.3))': - dependencies: - vue: 3.5.44(typescript@6.0.3) - - '@vueuse/shared@15.0.0(vue@3.5.44(typescript@6.0.3))': - dependencies: - vue: 3.5.44(typescript@6.0.3) - - acorn@8.19.0: {} - - alien-signals@3.2.1: {} - - ansi-regex@5.0.1: {} - - ansi-styles@4.3.0: - dependencies: - color-convert: 2.0.1 - - aria-hidden@1.2.6: - dependencies: - tslib: 2.8.1 - - ast-kit@2.2.0: - dependencies: - '@babel/parser': 7.29.11 - pathe: 2.0.3 - - ast-kit@3.0.0: - dependencies: - '@babel/parser': 8.0.8 - estree-walker: 3.0.3 - pathe: 2.0.3 - - ast-walker-scope@0.10.0: - dependencies: - '@babel/parser': 8.0.8 - '@babel/types': 8.0.8 - ast-kit: 3.0.0 - - bail@2.0.2: {} - - birpc@2.9.0: {} - - camelcase@5.3.1: {} - - ccount@2.0.1: {} - - character-entities-html4@2.1.0: {} - - character-entities-legacy@3.0.0: {} - - character-entities@2.0.2: {} - - chokidar@5.0.0: - dependencies: - readdirp: 5.1.1 - - class-variance-authority@0.7.1: - dependencies: - clsx: 2.1.1 - - cliui@6.0.0: - dependencies: - string-width: 4.2.3 - strip-ansi: 6.0.1 - wrap-ansi: 6.2.0 - - clsx@2.1.1: {} - - cn@0.5.1: {} - - color-convert@2.0.1: - dependencies: - color-name: 1.1.4 - - color-name@1.1.4: {} - - comma-separated-tokens@2.0.3: {} - - confbox@0.1.8: {} - - confbox@0.3.1: {} - - csstype@3.2.3: {} - - d3-color@3.1.0: {} - - d3-dispatch@3.0.1: {} - - d3-drag@3.0.0: - dependencies: - d3-dispatch: 3.0.1 - d3-selection: 3.0.0 - - d3-ease@3.0.1: {} - - d3-interpolate@3.0.1: - dependencies: - d3-color: 3.1.0 - - d3-selection@3.0.0: {} - - d3-timer@3.0.1: {} - - d3-transition@3.0.1(d3-selection@3.0.0): - dependencies: - d3-color: 3.1.0 - d3-dispatch: 3.0.1 - d3-ease: 3.0.1 - d3-interpolate: 3.0.1 - d3-selection: 3.0.0 - d3-timer: 3.0.1 - - d3-zoom@3.0.0: - dependencies: - d3-dispatch: 3.0.1 - d3-drag: 3.0.0 - d3-interpolate: 3.0.1 - d3-selection: 3.0.0 - d3-transition: 3.0.1(d3-selection@3.0.0) - - debug@4.4.3: - dependencies: - ms: 2.1.3 - - decamelize@1.2.0: {} - - decode-named-character-reference@1.3.0: - dependencies: - character-entities: 2.0.2 - - defu@6.1.7: {} - - dequal@2.0.3: {} - - detect-libc@2.1.2: {} - - devlop@1.1.0: - dependencies: - dequal: 2.0.3 - - dijkstrajs@1.0.3: {} - - emoji-regex@8.0.0: {} - - enhanced-resolve@5.26.0: - dependencies: - graceful-fs: 4.2.11 - tapable: 2.3.3 - - entities@7.0.1: {} - - escape-string-regexp@5.0.0: {} - - estree-walker@2.0.2: {} - - estree-walker@3.0.3: - dependencies: - '@types/estree': 1.0.9 - - exsolve@1.1.3: {} - - extend@3.0.2: {} - - fdir@6.5.0(picomatch@4.0.7): - optionalDependencies: - picomatch: 4.0.7 - - find-up@4.1.0: - dependencies: - locate-path: 5.0.0 - path-exists: 4.0.0 - - fsevents@2.3.3: - optional: true - - get-caller-file@2.0.5: {} - - graceful-fs@4.2.11: {} - - hast-util-to-html@9.0.5: - dependencies: - '@types/hast': 3.0.5 - '@types/unist': 3.0.3 - ccount: 2.0.1 - comma-separated-tokens: 2.0.3 - hast-util-whitespace: 3.0.0 - html-void-elements: 3.0.0 - mdast-util-to-hast: 13.2.1 - property-information: 7.2.0 - space-separated-tokens: 2.0.2 - stringify-entities: 4.0.4 - zwitch: 2.0.4 - - hast-util-whitespace@3.0.0: - dependencies: - '@types/hast': 3.0.5 - - hookable@5.5.3: {} - - html-void-elements@3.0.0: {} - - is-fullwidth-code-point@3.0.0: {} - - is-plain-obj@4.1.0: {} - - jiti@2.7.0: {} - - lightningcss-android-arm64@1.32.0: - optional: true - - lightningcss-android-arm64@1.33.0: - optional: true - - lightningcss-darwin-arm64@1.32.0: - optional: true - - lightningcss-darwin-arm64@1.33.0: - optional: true - - lightningcss-darwin-x64@1.32.0: - optional: true - - lightningcss-darwin-x64@1.33.0: - optional: true - - lightningcss-freebsd-x64@1.32.0: - optional: true - - lightningcss-freebsd-x64@1.33.0: - optional: true - - lightningcss-linux-arm-gnueabihf@1.32.0: - optional: true - - lightningcss-linux-arm-gnueabihf@1.33.0: - optional: true - - lightningcss-linux-arm64-gnu@1.32.0: - optional: true - - lightningcss-linux-arm64-gnu@1.33.0: - optional: true - - lightningcss-linux-arm64-musl@1.32.0: - optional: true - - lightningcss-linux-arm64-musl@1.33.0: - optional: true - - lightningcss-linux-x64-gnu@1.32.0: - optional: true - - lightningcss-linux-x64-gnu@1.33.0: - optional: true - - lightningcss-linux-x64-musl@1.32.0: - optional: true - - lightningcss-linux-x64-musl@1.33.0: - optional: true - - lightningcss-win32-arm64-msvc@1.32.0: - optional: true - - lightningcss-win32-arm64-msvc@1.33.0: - optional: true - - lightningcss-win32-x64-msvc@1.32.0: - optional: true - - lightningcss-win32-x64-msvc@1.33.0: - optional: true - - lightningcss@1.32.0: - dependencies: - detect-libc: 2.1.2 - 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 - - lightningcss@1.33.0: - dependencies: - detect-libc: 2.1.2 - optionalDependencies: - lightningcss-android-arm64: 1.33.0 - lightningcss-darwin-arm64: 1.33.0 - lightningcss-darwin-x64: 1.33.0 - lightningcss-freebsd-x64: 1.33.0 - lightningcss-linux-arm-gnueabihf: 1.33.0 - lightningcss-linux-arm64-gnu: 1.33.0 - lightningcss-linux-arm64-musl: 1.33.0 - lightningcss-linux-x64-gnu: 1.33.0 - lightningcss-linux-x64-musl: 1.33.0 - lightningcss-win32-arm64-msvc: 1.33.0 - lightningcss-win32-x64-msvc: 1.33.0 - - local-pkg@1.2.1: - dependencies: - mlly: 1.8.2 - pkg-types: 2.4.0 - quansync: 0.2.11 - - locate-path@5.0.0: - dependencies: - p-locate: 4.1.0 - - longest-streak@3.1.0: {} - - magic-string-ast@1.0.3: - dependencies: - magic-string: 0.30.21 - - magic-string@0.30.21: - dependencies: - '@jridgewell/sourcemap-codec': 1.6.0 - - magic-string@1.4.3: - dependencies: - '@jridgewell/sourcemap-codec': 1.6.0 - - markdown-table@3.1.0: {} - - mdast-util-find-and-replace@3.0.4: - dependencies: - '@types/mdast': 4.0.4 - escape-string-regexp: 5.0.0 - unist-util-is: 6.0.1 - unist-util-visit-parents: 6.1.0 - - mdast-util-from-markdown@2.1.0: - dependencies: - '@types/mdast': 4.0.4 - '@types/unist': 3.0.3 - decode-named-character-reference: 1.3.0 - devlop: 1.1.0 - mdast-util-to-string: 4.0.0 - micromark: 4.0.3 - micromark-util-decode-numeric-character-reference: 2.0.2 - micromark-util-decode-string: 2.0.1 - micromark-util-normalize-identifier: 2.0.1 - micromark-util-symbol: 2.0.1 - micromark-util-types: 2.0.3 - unist-util-stringify-position: 4.0.0 - transitivePeerDependencies: - - supports-color - - mdast-util-gfm-autolink-literal@2.1.0: - dependencies: - '@types/mdast': 4.0.4 - ccount: 2.0.1 - devlop: 1.1.0 - mdast-util-find-and-replace: 3.0.4 - micromark-util-character: 2.1.1 - - mdast-util-gfm-footnote@2.1.0: - dependencies: - '@types/mdast': 4.0.4 - devlop: 1.1.0 - mdast-util-from-markdown: 2.1.0 - mdast-util-to-markdown: 2.2.3 - micromark-util-normalize-identifier: 2.0.1 - transitivePeerDependencies: - - supports-color - - mdast-util-gfm-strikethrough@2.0.1: - dependencies: - '@types/mdast': 4.0.4 - mdast-util-from-markdown: 2.1.0 - mdast-util-to-markdown: 2.2.3 - transitivePeerDependencies: - - supports-color - - mdast-util-gfm-table@2.0.1: - dependencies: - '@types/mdast': 4.0.4 - devlop: 1.1.0 - markdown-table: 3.1.0 - mdast-util-from-markdown: 2.1.0 - mdast-util-to-markdown: 2.2.3 - mdast-util-to-string: 4.0.0 - unist-util-visit: 5.2.0 - transitivePeerDependencies: - - supports-color - - mdast-util-gfm-task-list-item@2.0.1: - dependencies: - '@types/mdast': 4.0.4 - devlop: 1.1.0 - mdast-util-from-markdown: 2.1.0 - mdast-util-to-markdown: 2.2.3 - transitivePeerDependencies: - - supports-color - - mdast-util-gfm@3.1.0: - dependencies: - mdast-util-from-markdown: 2.1.0 - mdast-util-gfm-autolink-literal: 2.1.0 - mdast-util-gfm-footnote: 2.1.0 - mdast-util-gfm-strikethrough: 2.0.1 - mdast-util-gfm-table: 2.0.1 - mdast-util-gfm-task-list-item: 2.0.1 - mdast-util-to-markdown: 2.2.3 - transitivePeerDependencies: - - supports-color - - mdast-util-phrasing@4.1.0: - dependencies: - '@types/mdast': 4.0.4 - unist-util-is: 6.0.1 - - mdast-util-to-hast@13.2.1: - dependencies: - '@types/hast': 3.0.5 - '@types/mdast': 4.0.4 - '@ungap/structured-clone': 1.4.0 - devlop: 1.1.0 - micromark-util-sanitize-uri: 2.0.1 - trim-lines: 3.0.1 - unist-util-position: 5.0.0 - unist-util-visit: 5.2.0 - vfile: 6.0.3 - - mdast-util-to-markdown@2.2.3: - dependencies: - '@types/mdast': 4.0.4 - '@types/unist': 3.0.3 - longest-streak: 3.1.0 - mdast-util-phrasing: 4.1.0 - mdast-util-to-string: 4.0.0 - micromark-util-character: 2.1.1 - micromark-util-classify-character: 2.0.1 - micromark-util-decode-string: 2.0.1 - micromark-util-html-tag-name: 2.0.1 - unist-util-visit: 5.2.0 - zwitch: 2.0.4 - - mdast-util-to-string@4.0.0: - dependencies: - '@types/mdast': 4.0.4 - - micromark-core-commonmark@2.0.4: - dependencies: - decode-named-character-reference: 1.3.0 - devlop: 1.1.0 - micromark-factory-destination: 2.0.1 - micromark-factory-label: 2.0.1 - micromark-factory-space: 2.1.0 - micromark-factory-title: 2.0.1 - micromark-factory-whitespace: 2.0.1 - micromark-util-character: 2.1.1 - micromark-util-chunked: 2.0.1 - micromark-util-classify-character: 2.0.1 - micromark-util-edit-map: 1.0.0 - micromark-util-html-tag-name: 2.0.1 - micromark-util-normalize-identifier: 2.0.1 - micromark-util-resolve-all: 2.0.1 - micromark-util-subtokenize: 2.1.0 - micromark-util-symbol: 2.0.1 - micromark-util-types: 2.0.3 - - micromark-extension-gfm-autolink-literal@2.1.0: - dependencies: - micromark-util-character: 2.1.1 - micromark-util-sanitize-uri: 2.0.1 - micromark-util-symbol: 2.0.1 - micromark-util-types: 2.0.3 - - micromark-extension-gfm-footnote@2.1.0: - dependencies: - devlop: 1.1.0 - micromark-core-commonmark: 2.0.4 - micromark-factory-space: 2.1.0 - micromark-util-character: 2.1.1 - micromark-util-normalize-identifier: 2.0.1 - micromark-util-sanitize-uri: 2.0.1 - micromark-util-symbol: 2.0.1 - micromark-util-types: 2.0.3 - - micromark-extension-gfm-strikethrough@2.1.0: - dependencies: - devlop: 1.1.0 - micromark-util-chunked: 2.0.1 - micromark-util-classify-character: 2.0.1 - micromark-util-resolve-all: 2.0.1 - micromark-util-symbol: 2.0.1 - micromark-util-types: 2.0.3 - - micromark-extension-gfm-table@2.1.2: - dependencies: - devlop: 1.1.0 - micromark-factory-space: 2.1.0 - micromark-util-character: 2.1.1 - micromark-util-symbol: 2.0.1 - micromark-util-types: 2.0.3 - - micromark-extension-gfm-tagfilter@2.0.0: - dependencies: - micromark-util-types: 2.0.3 - - micromark-extension-gfm-task-list-item@2.1.0: - dependencies: - devlop: 1.1.0 - micromark-factory-space: 2.1.0 - micromark-util-character: 2.1.1 - micromark-util-symbol: 2.0.1 - micromark-util-types: 2.0.3 - - micromark-extension-gfm@3.0.0: - dependencies: - micromark-extension-gfm-autolink-literal: 2.1.0 - micromark-extension-gfm-footnote: 2.1.0 - micromark-extension-gfm-strikethrough: 2.1.0 - micromark-extension-gfm-table: 2.1.2 - micromark-extension-gfm-tagfilter: 2.0.0 - micromark-extension-gfm-task-list-item: 2.1.0 - micromark-util-combine-extensions: 2.0.1 - micromark-util-types: 2.0.3 - - micromark-factory-destination@2.0.1: - dependencies: - micromark-util-character: 2.1.1 - micromark-util-symbol: 2.0.1 - micromark-util-types: 2.0.3 - - micromark-factory-label@2.0.1: - dependencies: - devlop: 1.1.0 - micromark-util-character: 2.1.1 - micromark-util-symbol: 2.0.1 - micromark-util-types: 2.0.3 - - micromark-factory-space@2.1.0: - dependencies: - micromark-util-character: 2.1.1 - micromark-util-types: 2.0.3 - - micromark-factory-title@2.0.1: - dependencies: - micromark-factory-space: 2.1.0 - micromark-util-character: 2.1.1 - micromark-util-symbol: 2.0.1 - micromark-util-types: 2.0.3 - - micromark-factory-whitespace@2.0.1: - dependencies: - micromark-factory-space: 2.1.0 - micromark-util-character: 2.1.1 - micromark-util-symbol: 2.0.1 - micromark-util-types: 2.0.3 - - micromark-util-character@2.1.1: - dependencies: - micromark-util-symbol: 2.0.1 - micromark-util-types: 2.0.3 - - micromark-util-chunked@2.0.1: - dependencies: - micromark-util-symbol: 2.0.1 - - micromark-util-classify-character@2.0.1: - dependencies: - micromark-util-character: 2.1.1 - micromark-util-symbol: 2.0.1 - micromark-util-types: 2.0.3 - - micromark-util-combine-extensions@2.0.1: - dependencies: - micromark-util-chunked: 2.0.1 - micromark-util-types: 2.0.3 - - micromark-util-decode-numeric-character-reference@2.0.2: - dependencies: - micromark-util-symbol: 2.0.1 - - micromark-util-decode-string@2.0.1: - dependencies: - decode-named-character-reference: 1.3.0 - micromark-util-character: 2.1.1 - micromark-util-decode-numeric-character-reference: 2.0.2 - micromark-util-symbol: 2.0.1 - - micromark-util-edit-map@1.0.0: - dependencies: - micromark-util-types: 2.0.3 - - micromark-util-encode@2.0.1: {} - - micromark-util-html-tag-name@2.0.1: {} - - micromark-util-normalize-identifier@2.0.1: - dependencies: - micromark-util-symbol: 2.0.1 - - micromark-util-resolve-all@2.0.1: - dependencies: - micromark-util-types: 2.0.3 - - micromark-util-sanitize-uri@2.0.1: - dependencies: - micromark-util-character: 2.1.1 - micromark-util-encode: 2.0.1 - micromark-util-symbol: 2.0.1 - - micromark-util-subtokenize@2.1.0: - dependencies: - devlop: 1.1.0 - micromark-util-chunked: 2.0.1 - micromark-util-symbol: 2.0.1 - micromark-util-types: 2.0.3 - - micromark-util-symbol@2.0.1: {} - - micromark-util-types@2.0.3: {} - - micromark@4.0.3: - dependencies: - '@types/debug': 4.1.13 - debug: 4.4.3 - decode-named-character-reference: 1.3.0 - devlop: 1.1.0 - micromark-core-commonmark: 2.0.4 - micromark-factory-space: 2.1.0 - micromark-util-character: 2.1.1 - micromark-util-chunked: 2.0.1 - micromark-util-combine-extensions: 2.0.1 - micromark-util-decode-numeric-character-reference: 2.0.2 - micromark-util-edit-map: 1.0.0 - micromark-util-encode: 2.0.1 - micromark-util-normalize-identifier: 2.0.1 - micromark-util-resolve-all: 2.0.1 - micromark-util-sanitize-uri: 2.0.1 - micromark-util-subtokenize: 2.1.0 - micromark-util-symbol: 2.0.1 - micromark-util-types: 2.0.3 - transitivePeerDependencies: - - supports-color - - mlly@1.8.2: - dependencies: - acorn: 8.19.0 - pathe: 2.0.3 - pkg-types: 1.3.1 - ufo: 1.6.4 - - ms@2.1.3: {} - - muggle-string@0.4.1: {} - - nanoid@3.3.20: {} - - nostics@1.3.0: {} - - ohash@2.0.12: {} - - oniguruma-parser@0.12.2: {} - - oniguruma-to-es@4.3.6: - dependencies: - oniguruma-parser: 0.12.2 - regex: 6.1.0 - regex-recursion: 6.0.2 - - p-limit@2.3.0: - dependencies: - p-try: 2.2.0 - - p-locate@4.1.0: - dependencies: - p-limit: 2.3.0 - - p-try@2.2.0: {} - - path-browserify@1.0.1: {} - - path-exists@4.0.0: {} - - pathe@2.0.3: {} - - perfect-debounce@2.1.0: {} - - picocolors@1.1.1: {} - - picomatch@4.0.7: {} - - pinia@4.1.0(@vue/devtools-api@8.2.1)(typescript@6.0.3)(vue@3.5.44(typescript@6.0.3)): - dependencies: - '@vue/devtools-api': 8.2.1 - nostics: 1.3.0 - vue: 3.5.44(typescript@6.0.3) - optionalDependencies: - typescript: 6.0.3 - - pkg-types@1.3.1: - dependencies: - confbox: 0.1.8 - mlly: 1.8.2 - pathe: 2.0.3 - - pkg-types@2.4.0: - dependencies: - confbox: 0.3.1 - exsolve: 1.1.3 - pathe: 2.0.3 - - pngjs@5.0.0: {} - - postcss@8.5.31: - dependencies: - nanoid: 3.3.20 - picocolors: 1.1.1 - source-map-js: 1.2.2 - - property-information@7.2.0: {} - - qrcode@1.5.4: - dependencies: - dijkstrajs: 1.0.3 - pngjs: 5.0.0 - yargs: 15.4.1 - - quansync@0.2.11: {} - - readdirp@5.1.1: {} - - regex-recursion@6.0.2: - dependencies: - regex-utilities: 2.3.0 - - regex-utilities@2.3.0: {} - - regex@6.1.0: - dependencies: - regex-utilities: 2.3.0 - - reka-ui@2.11.0(vue@3.5.44(typescript@6.0.3)): - dependencies: - '@floating-ui/vue': 2.0.1(vue@3.5.44(typescript@6.0.3)) - '@internationalized/date': 3.12.4 - '@internationalized/number': 3.6.9 - '@tanstack/vue-virtual': 3.13.48(vue@3.5.44(typescript@6.0.3)) - '@vueuse/core': 14.4.0(vue@3.5.44(typescript@6.0.3)) - '@vueuse/shared': 14.4.0(vue@3.5.44(typescript@6.0.3)) - aria-hidden: 1.2.6 - defu: 6.1.7 - ohash: 2.0.12 - vue: 3.5.44(typescript@6.0.3) - - remark-gfm@4.0.1: - dependencies: - '@types/mdast': 4.0.4 - mdast-util-gfm: 3.1.0 - micromark-extension-gfm: 3.0.0 - remark-parse: 11.0.0 - remark-stringify: 11.0.0 - unified: 11.0.5 - transitivePeerDependencies: - - supports-color - - remark-parse@11.0.0: - dependencies: - '@types/mdast': 4.0.4 - mdast-util-from-markdown: 2.1.0 - micromark-util-types: 2.0.3 - unified: 11.0.5 - transitivePeerDependencies: - - supports-color - - remark-rehype@11.1.2: - dependencies: - '@types/hast': 3.0.5 - '@types/mdast': 4.0.4 - mdast-util-to-hast: 13.2.1 - unified: 11.0.5 - vfile: 6.0.3 - - remark-stringify@11.0.0: - dependencies: - '@types/mdast': 4.0.4 - mdast-util-to-markdown: 2.2.3 - unified: 11.0.5 - - require-directory@2.1.1: {} - - require-main-filename@2.0.0: {} - - rolldown@1.2.15: - dependencies: - '@oxc-project/types': 0.155.0 - '@rolldown/pluginutils': 1.0.1 - optionalDependencies: - '@rolldown/binding-android-arm-eabi': 1.2.15 - '@rolldown/binding-android-arm64': 1.2.15 - '@rolldown/binding-darwin-arm64': 1.2.15 - '@rolldown/binding-darwin-x64': 1.2.15 - '@rolldown/binding-freebsd-x64': 1.2.15 - '@rolldown/binding-linux-arm-gnueabihf': 1.2.15 - '@rolldown/binding-linux-arm64-gnu': 1.2.15 - '@rolldown/binding-linux-arm64-musl': 1.2.15 - '@rolldown/binding-linux-ppc64-gnu': 1.2.15 - '@rolldown/binding-linux-s390x-gnu': 1.2.15 - '@rolldown/binding-linux-x64-gnu': 1.2.15 - '@rolldown/binding-linux-x64-musl': 1.2.15 - '@rolldown/binding-openharmony-arm64': 1.2.15 - '@rolldown/binding-win32-arm64-msvc': 1.2.15 - '@rolldown/binding-win32-x64-msvc': 1.2.15 - - scule@1.3.0: {} - - set-blocking@2.0.0: {} - - shiki@4.5.0: - dependencies: - '@shikijs/core': 4.5.0 - '@shikijs/engine-javascript': 4.5.0 - '@shikijs/engine-oniguruma': 4.5.0 - '@shikijs/langs': 4.5.0 - '@shikijs/themes': 4.5.0 - '@shikijs/types': 4.5.0 - '@shikijs/vscode-textmate': 10.1.0 - '@types/hast': 3.0.5 - - source-map-js@1.2.2: {} - - space-separated-tokens@2.0.2: {} - - string-width@4.2.3: - dependencies: - emoji-regex: 8.0.0 - is-fullwidth-code-point: 3.0.0 - strip-ansi: 6.0.1 - - stringify-entities@4.0.4: - dependencies: - character-entities-html4: 2.1.0 - character-entities-legacy: 3.0.0 - - strip-ansi@6.0.1: - dependencies: - ansi-regex: 5.0.1 - - tailwind-merge@3.7.0: {} - - tailwindcss@4.3.3: {} - - tapable@2.3.3: {} - - tinyglobby@0.2.17: - dependencies: - fdir: 6.5.0(picomatch@4.0.7) - picomatch: 4.0.7 - - trim-lines@3.0.1: {} - - trough@2.2.0: {} - - tslib@2.8.1: {} - - tw-animate-css@1.4.0: {} - - typescript@6.0.3: {} - - ufo@1.6.4: {} - - undici-types@8.9.0: {} - - unified@11.0.5: - dependencies: - '@types/unist': 3.0.3 - bail: 2.0.2 - devlop: 1.1.0 - extend: 3.0.2 - is-plain-obj: 4.1.0 - trough: 2.2.0 - vfile: 6.0.3 - - unist-util-is@6.0.1: - dependencies: - '@types/unist': 3.0.3 - - unist-util-position@5.0.0: - dependencies: - '@types/unist': 3.0.3 - - unist-util-stringify-position@4.0.0: - dependencies: - '@types/unist': 3.0.3 - - unist-util-visit-parents@6.1.0: - dependencies: - '@types/unist': 3.0.3 - unist-util-is: 6.0.1 - - unist-util-visit@5.2.0: - dependencies: - '@types/unist': 3.0.3 - unist-util-is: 6.0.1 - unist-util-visit-parents: 6.1.0 - - unplugin-utils@0.3.2: - dependencies: - pathe: 2.0.3 - picomatch: 4.0.7 - - unplugin@3.4.0(rolldown@1.2.15)(vite@8.3.5(@types/node@26.6.5)(jiti@2.7.0)(yaml@2.9.1)): - dependencies: - '@jridgewell/remapping': 2.3.5 - picomatch: 4.0.7 - webpack-virtual-modules: 0.6.2 - optionalDependencies: - rolldown: 1.2.15 - vite: 8.3.5(@types/node@26.6.5)(jiti@2.7.0)(yaml@2.9.1) - - vfile-message@4.0.3: - dependencies: - '@types/unist': 3.0.3 - unist-util-stringify-position: 4.0.0 - - vfile@6.0.3: - dependencies: - '@types/unist': 3.0.3 - vfile-message: 4.0.3 - - vite@8.3.5(@types/node@26.6.5)(jiti@2.7.0)(yaml@2.9.1): - dependencies: - lightningcss: 1.33.0 - picomatch: 4.0.7 - postcss: 8.5.31 - rolldown: 1.2.15 - tinyglobby: 0.2.17 - optionalDependencies: - '@types/node': 26.6.5 - fsevents: 2.3.3 - jiti: 2.7.0 - yaml: 2.9.1 - - vscode-uri@3.2.0: {} - - vue-demi@0.14.10(vue@3.5.44(typescript@6.0.3)): - dependencies: - vue: 3.5.44(typescript@6.0.3) - - vue-router@5.4.0(@vue/compiler-sfc@3.5.44)(pinia@4.1.0(@vue/devtools-api@8.2.1)(typescript@6.0.3)(vue@3.5.44(typescript@6.0.3)))(rolldown@1.2.15)(vite@8.3.5(@types/node@26.6.5)(jiti@2.7.0)(yaml@2.9.1))(vue@3.5.44(typescript@6.0.3)): - dependencies: - '@vue-macros/common': 3.1.4(vue@3.5.44(typescript@6.0.3)) - '@vue/devtools-api': 8.2.1 - ast-walker-scope: 0.10.0 - chokidar: 5.0.0 - confbox: 0.3.1 - local-pkg: 1.2.1 - magic-string: 1.4.3 - mlly: 1.8.2 - muggle-string: 0.4.1 - nostics: 1.3.0 - pathe: 2.0.3 - picomatch: 4.0.7 - scule: 1.3.0 - tinyglobby: 0.2.17 - unplugin: 3.4.0(rolldown@1.2.15)(vite@8.3.5(@types/node@26.6.5)(jiti@2.7.0)(yaml@2.9.1)) - unplugin-utils: 0.3.2 - vue: 3.5.44(typescript@6.0.3) - optionalDependencies: - '@vue/compiler-sfc': 3.5.44 - pinia: 4.1.0(@vue/devtools-api@8.2.1)(typescript@6.0.3)(vue@3.5.44(typescript@6.0.3)) - vite: 8.3.5(@types/node@26.6.5)(jiti@2.7.0)(yaml@2.9.1) - transitivePeerDependencies: - - '@farmfe/core' - - '@rsbuild/core' - - '@rspack/core' - - bun-types-no-globals - - esbuild - - rolldown - - rollup - - unloader - - webpack - - vue-sonner@2.0.9: {} - - vue-tsc@3.3.13(typescript@6.0.3): - dependencies: - '@volar/typescript': 2.4.28(typescript@6.0.3) - '@vue/language-core': 3.3.13 - typescript: 6.0.3 - - vue@3.5.44(typescript@6.0.3): - dependencies: - '@vue/compiler-dom': 3.5.44 - '@vue/compiler-sfc': 3.5.44 - '@vue/runtime-dom': 3.5.44 - '@vue/server-renderer': 3.5.44 - '@vue/shared': 3.5.44 - optionalDependencies: - typescript: 6.0.3 - - webpack-virtual-modules@0.6.2: {} - - which-module@2.0.1: {} - - wrap-ansi@6.2.0: - dependencies: - ansi-styles: 4.3.0 - string-width: 4.2.3 - strip-ansi: 6.0.1 - - y18n@4.0.3: {} - - yaml@2.9.1: {} - - yargs-parser@18.1.3: - dependencies: - camelcase: 5.3.1 - decamelize: 1.2.0 - - yargs@15.4.1: - dependencies: - cliui: 6.0.0 - decamelize: 1.2.0 - find-up: 4.1.0 - get-caller-file: 2.0.5 - require-directory: 2.1.1 - require-main-filename: 2.0.0 - set-blocking: 2.0.0 - string-width: 4.2.3 - which-module: 2.0.1 - y18n: 4.0.3 - yargs-parser: 18.1.3 - - zwitch@2.0.4: {} diff --git a/ui/pnpm-workspace.yaml b/ui/pnpm-workspace.yaml deleted file mode 100644 index 2d2558150..000000000 --- a/ui/pnpm-workspace.yaml +++ /dev/null @@ -1,5 +0,0 @@ -allowBuilds: - vue-demi: true -minimumReleaseAgeExclude: - - '@ui-sdk/core@0.1.0-beta.16' - - '@ui-sdk/vue@0.1.0-beta.16' diff --git a/ui/public/favicon.svg b/ui/public/favicon.svg deleted file mode 100644 index 12ee3939a..000000000 --- a/ui/public/favicon.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/ui/public/icons.svg b/ui/public/icons.svg deleted file mode 100644 index e9522193d..000000000 --- a/ui/public/icons.svg +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/ui/scripts/pages.ts b/ui/scripts/pages.ts deleted file mode 100644 index b3efff910..000000000 --- a/ui/scripts/pages.ts +++ /dev/null @@ -1,130 +0,0 @@ -// Writes pages/pages.json from the file-based pages under src/pages/ and the -// redirect table in src/router/redirects.ts. -// -// The dashboard's pages are the routes it serves, so deriving the catalogue -// from them is what stops the assistant naming a page the dashboard lost or -// missing one it gained. `task pages:check` fails when the committed file is -// stale, which is what makes a new route carry a catalogue entry. -import { readFileSync, writeFileSync } from "node:fs"; -import { dirname, join } from "node:path"; -import { fileURLToPath } from "node:url"; - -import ts from "typescript"; -import { createRoutesContext, resolveOptions } from "vue-router/unplugin"; - -import { redirects } from "../src/router/redirects.ts"; - -type Meta = { label?: string; description?: string; nav?: boolean }; -export type Page = { path: string; label: string; description: string }; - -const here = dirname(fileURLToPath(import.meta.url)); -const uiRoot = join(here, ".."); - -// dynamic is true for a route the operator reaches with an id in it; the -// assistant cannot name one, so it stays out of the catalogue. -const dynamic = (path: string): boolean => path.includes(":"); - -function readDefinePageMeta(file: string): Meta | undefined { - const sfc = readFileSync(file, "utf8"); - const scriptMatch = sfc.match(/]*\bsetup\b[^>]*>([\s\S]*?)<\/script>/); - if (!scriptMatch) return undefined; - - const sf = ts.createSourceFile(file, scriptMatch[1], ts.ScriptTarget.Latest, true); - let meta: Meta | undefined; - - const propName = (name: ts.PropertyName): string | undefined => { - if (ts.isIdentifier(name) || ts.isStringLiteral(name)) return name.text; - return undefined; - }; - - const visit = (node: ts.Node): void => { - if ( - ts.isCallExpression(node) && - ts.isIdentifier(node.expression) && - node.expression.text === "definePage" && - node.arguments.length > 0 && - ts.isObjectLiteralExpression(node.arguments[0]) - ) { - for (const prop of node.arguments[0].properties) { - if ( - ts.isPropertyAssignment(prop) && - propName(prop.name) === "meta" && - ts.isObjectLiteralExpression(prop.initializer) - ) { - const parsed: Meta = {}; - for (const field of prop.initializer.properties) { - if (!ts.isPropertyAssignment(field)) continue; - const key = propName(field.name); - if (key === "label" && ts.isStringLiteral(field.initializer)) { - parsed.label = field.initializer.text; - } else if (key === "description" && ts.isStringLiteral(field.initializer)) { - parsed.description = field.initializer.text; - } else if (key === "nav") { - if (field.initializer.kind === ts.SyntaxKind.FalseKeyword) parsed.nav = false; - if (field.initializer.kind === ts.SyntaxKind.TrueKeyword) parsed.nav = true; - } - } - meta = parsed; - } - } - } - ts.forEachChild(node, visit); - }; - - visit(sf); - return meta; -} - -const collected: Page[] = []; - -const opts = resolveOptions({ - root: uiRoot, - routesFolder: "src/pages", - exclude: ["**/components/**"], - dts: false, - extendRoute(route) { - const file = route.components.get("default"); - if (!file) return; - const path = route.fullPath; - if (!path || dynamic(path)) return; - const meta = readDefinePageMeta(file); - if (meta?.label && meta.nav !== false) { - collected.push({ - path, - label: meta.label, - description: meta.description ?? "", - }); - } - }, -}); - -const ctx = createRoutesContext(opts); -await ctx.scanPages(false); -ctx.generateRoutes(); - -for (const route of redirects) { - const meta = route.meta as Meta | undefined; - if (meta?.label && meta.nav !== false && route.path && !dynamic(route.path)) { - collected.push({ - path: route.path, - label: meta.label, - description: meta.description ?? "", - }); - } -} - -// Shell routes and their index children share a path (for example /org and -// /controls), so the first label for a path wins rather than listing it twice. -const seen = new Set(); -const pages = collected - .filter((page) => { - if (seen.has(page.path)) return false; - seen.add(page.path); - return true; - }) - .sort((a, b) => a.path.localeCompare(b.path)); - -const target = join(uiRoot, "pages", "pages.json"); -writeFileSync(target, `${JSON.stringify(pages, null, 2)}\n`); - -console.log(`pages: ${pages.length} written to ${target}`); diff --git a/ui/src/App.vue b/ui/src/App.vue deleted file mode 100644 index 5d1fb640e..000000000 --- a/ui/src/App.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - diff --git a/ui/src/accounts/AccountEntry.vue b/ui/src/accounts/AccountEntry.vue deleted file mode 100644 index 8c092daa1..000000000 --- a/ui/src/accounts/AccountEntry.vue +++ /dev/null @@ -1,135 +0,0 @@ - - - diff --git a/ui/src/accounts/CreateAccount.vue b/ui/src/accounts/CreateAccount.vue deleted file mode 100644 index 5c395dd15..000000000 --- a/ui/src/accounts/CreateAccount.vue +++ /dev/null @@ -1,29 +0,0 @@ - - diff --git a/ui/src/accounts/LinkedChannels.vue b/ui/src/accounts/LinkedChannels.vue deleted file mode 100644 index a3a6513a5..000000000 --- a/ui/src/accounts/LinkedChannels.vue +++ /dev/null @@ -1,120 +0,0 @@ - - - diff --git a/ui/src/accounts/PersonalTokensCard.vue b/ui/src/accounts/PersonalTokensCard.vue deleted file mode 100644 index 714b1eadd..000000000 --- a/ui/src/accounts/PersonalTokensCard.vue +++ /dev/null @@ -1,128 +0,0 @@ - - - diff --git a/ui/src/accounts/accounts.ts b/ui/src/accounts/accounts.ts deleted file mode 100644 index cfb834244..000000000 --- a/ui/src/accounts/accounts.ts +++ /dev/null @@ -1,58 +0,0 @@ -import { defineStore } from "pinia"; -import { computed, ref } from "vue"; -import { api, describeError } from "@/lib/api"; -import { errors } from "@/copy/errors"; - -interface AccountUser {id:string;display_name:string;kind:string} -interface AuthStatus {setup_required:boolean;user:AccountUser|null;oidc:boolean;public_url:string;instance?:string} -export const useAccountsStore=defineStore("accounts",()=>{ - const status=ref(null); - const error=ref(""); - async function load():Promise{try{status.value=await api.authStatus();error.value=""}catch(cause){error.value=describeError(cause, errors.common.unknown)}} - async function signOut():Promise{try{await api.signOut()}catch(cause){error.value=describeError(cause, errors.common.unknown);return}window.location.assign("/")} - // Empty for the default instance, which needs no label. - const instance=computed(()=>{const name=status.value?.instance||"";return name==="archie"?"":name}); - return {status,error,instance,load,signOut}; -}); - -export function passkeysAvailable(publicURL:string):boolean{ - if (!window.isSecureContext || !window.PublicKeyCredential) return false; - try{const url=new URL(publicURL);return url.origin===window.location.origin && (url.protocol==="https:"||url.hostname==="localhost")}catch{return false} -} - -// WebAuthn JSON conversion is native in current browsers. These conversions -// preserve support for browsers that implement credentials but not JSON helpers. -function decode(value:string):ArrayBuffer{ - const bytes=Uint8Array.from(atob(value.replace(/-/g,"+").replace(/_/g,"/")),c=>c.charCodeAt(0));return bytes.buffer; -} -function encode(value:ArrayBuffer|null):string|null{ - if(value===null)return null; - return btoa(String.fromCharCode(...new Uint8Array(value))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""); -} -export async function usePasskey(registration:boolean,name=""):Promise{ - const options=await api.beginPasskey<{publicKey:Record}>(registration); - const key=options.publicKey; - key.challenge=decode(key.challenge as string); - if(registration){const user=key.user as Record;user.id=decode(user.id as string)} - for(const list of ["excludeCredentials","allowCredentials"]){for(const entry of (key[list] as {id:string|ArrayBuffer}[]|undefined)??[]){entry.id=decode(entry.id as string)}} - const credential=(registration?await navigator.credentials.create({publicKey:key as unknown as PublicKeyCredentialCreationOptions}):await navigator.credentials.get({publicKey:key as unknown as PublicKeyCredentialRequestOptions})) as PublicKeyCredential|null; - if(!credential)throw new Error(errors.accounts.passkey.noneSelected); - await api.finishPasskey(registration,credentialJSON(credential),name); -} - -function credentialJSON(credential:PublicKeyCredential){ - const response=credential.response; - const common={clientDataJSON:encode(response.clientDataJSON)}; - const data=response instanceof AuthenticatorAttestationResponse?{...common,attestationObject:encode(response.attestationObject),transports:response.getTransports()}:{...common,authenticatorData:encode((response as AuthenticatorAssertionResponse).authenticatorData),signature:encode((response as AuthenticatorAssertionResponse).signature),userHandle:encode((response as AuthenticatorAssertionResponse).userHandle)}; - return {id:credential.id,rawId:encode(credential.rawId),type:credential.type,response:data,clientExtensionResults:credential.getClientExtensionResults(),authenticatorAttachment:credential.authenticatorAttachment}; -} - -/** Has the signed-in person's authenticator sign the challenge in options, and returns the assertion as the server reads it. */ -export async function getAssertion(options:{publicKey:Record}):Promise{ - const key=options.publicKey; - key.challenge=decode(key.challenge as string); - for(const entry of (key.allowCredentials as {id:string|ArrayBuffer}[]|undefined)??[]){entry.id=decode(entry.id as string)} - const credential=await navigator.credentials.get({publicKey:key as unknown as PublicKeyCredentialRequestOptions}) as PublicKeyCredential|null; - if(!credential)throw new Error(errors.accounts.passkey.noneSelected); - return credentialJSON(credential); -} diff --git a/ui/src/audit/decisions.ts b/ui/src/audit/decisions.ts deleted file mode 100644 index cb4f5dc0d..000000000 --- a/ui/src/audit/decisions.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** Access decisions as the dashboard reads them from /api/access/decisions: - * one recorded outcome, coalesced per minute into a count. */ -export interface AccessDecision { - principal: string; - org: string; - action: string; - kind: string; - resource: string; - outcome: "allowed" | "denied"; - level: string; - policies: string[]; - at: string; - count: number; -} - -export interface AccessDecisionsResponse { - decisions: AccessDecision[]; - /** Whether older decisions match beyond this page. */ - more: boolean; -} - -/** The resource column: the kind and id together, or just the kind. */ -export function decisionResource(d: AccessDecision): string { - return d.resource ? `${d.kind}/${d.resource}` : d.kind; -} diff --git a/ui/src/base/CodeView.vue b/ui/src/base/CodeView.vue deleted file mode 100644 index 48cca5c99..000000000 --- a/ui/src/base/CodeView.vue +++ /dev/null @@ -1,38 +0,0 @@ - - - diff --git a/ui/src/base/ListFilter.vue b/ui/src/base/ListFilter.vue deleted file mode 100644 index 27ae352b9..000000000 --- a/ui/src/base/ListFilter.vue +++ /dev/null @@ -1,35 +0,0 @@ - - - diff --git a/ui/src/base/LogTable.vue b/ui/src/base/LogTable.vue deleted file mode 100644 index 1100a7c8d..000000000 --- a/ui/src/base/LogTable.vue +++ /dev/null @@ -1,80 +0,0 @@ - - - diff --git a/ui/src/base/PageHeader.vue b/ui/src/base/PageHeader.vue deleted file mode 100644 index 0d228f5c9..000000000 --- a/ui/src/base/PageHeader.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - diff --git a/ui/src/chat/ChatAskCard.vue b/ui/src/chat/ChatAskCard.vue deleted file mode 100644 index befce5b09..000000000 --- a/ui/src/chat/ChatAskCard.vue +++ /dev/null @@ -1,43 +0,0 @@ - - - diff --git a/ui/src/chat/ChatBar.vue b/ui/src/chat/ChatBar.vue deleted file mode 100644 index 45841c77f..000000000 --- a/ui/src/chat/ChatBar.vue +++ /dev/null @@ -1,60 +0,0 @@ - - - diff --git a/ui/src/chat/ChatBubble.vue b/ui/src/chat/ChatBubble.vue deleted file mode 100644 index e3cd2fa46..000000000 --- a/ui/src/chat/ChatBubble.vue +++ /dev/null @@ -1,114 +0,0 @@ - - - diff --git a/ui/src/chat/ChatComposer.vue b/ui/src/chat/ChatComposer.vue deleted file mode 100644 index 6ba70719a..000000000 --- a/ui/src/chat/ChatComposer.vue +++ /dev/null @@ -1,217 +0,0 @@ - - - diff --git a/ui/src/chat/ChatDock.vue b/ui/src/chat/ChatDock.vue deleted file mode 100644 index bce42e41b..000000000 --- a/ui/src/chat/ChatDock.vue +++ /dev/null @@ -1,306 +0,0 @@ - - - diff --git a/ui/src/chat/ChatDockLayout.ts b/ui/src/chat/ChatDockLayout.ts deleted file mode 100644 index b5b067fb4..000000000 --- a/ui/src/chat/ChatDockLayout.ts +++ /dev/null @@ -1,157 +0,0 @@ -/** - * Geometry and persistence for the chat dock window. The dock floats freely on - * desktop-width screens: the header drags it anywhere, eight edges and corners - * resize it, and dragging near a side edge offers the pinned split, which - * reflows the page. On phone-width screens it stays a full-width bottom bar, - * riding above the on-screen keyboard. Pure functions live here so the - * placement rules are testable without a DOM; ChatDock.vue owns the pointer - * and keyboard events. - */ - -export type DockMode = "left" | "float" | "right"; - -export interface Rect { - x: number; - y: number; - w: number; - h: number; -} - -export interface DockLayout extends Rect { - mode: DockMode; -} - -export const DOCK_STORAGE_KEY = "archie.chat.dock.v2"; - -export const MIN_W = 320; -export const MIN_H = 280; -export const MAX_W = 720; -/** The minimised bar is at least this wide, screen permitting. */ -export const BAR_W = 640; -/** Margin kept between a floating window and the viewport edge. */ -export const INSET = 8; -/** Pointer distance from a side edge that offers the snap preview. */ -const EDGE = 64; -/** Pointer travel before a press on a drag surface becomes a drag. */ -export const DRAG_START = 4; -const KEY_STEP = 10; -const KEY_STEP_FAST = 40; - -export const RESIZE_DIRS = ["n", "s", "e", "w", "ne", "nw", "se", "sw"] as const; -export type ResizeDir = (typeof RESIZE_DIRS)[number]; - -function clamp(value: number, min: number, max: number): number { - return Math.min(Math.max(value, min), Math.max(min, max)); -} - -export function defaultLayout(vw: number, vh: number): DockLayout { - const w = Math.min(440, Math.max(MIN_W, vw - INSET * 2)); - const h = Math.min(560, Math.max(MIN_H, vh - INSET * 2)); - return { mode: "float", x: Math.max(INSET, vw - w - 24), y: Math.max(INSET, vh - h - 24), w, h }; -} - -/** Largest width the pinned split may take, leaving the page room to reflow. */ -export function pinnedWidth(w: number, vw: number): number { - return clamp(w, MIN_W, Math.max(MIN_W, Math.min(MAX_W, vw - 480))); -} - -/** Clamp a rectangle into the viewport, keeping its size within the minimums. */ -export function fitRect(rect: T, vw: number, vh: number, inset = INSET): T { - const availW = Math.max(1, vw - inset * 2); - const availH = Math.max(1, vh - inset * 2); - const w = clamp(rect.w, Math.min(MIN_W, availW), Math.min(MAX_W, availW)); - const h = clamp(rect.h, Math.min(MIN_H, availH), availH); - return { - ...rect, - x: clamp(rect.x, inset, vw - w - inset), - y: clamp(rect.y, inset, vh - h - inset), - w, - h, - }; -} - -/** Validate a stored value, filling any missing field from the defaults. */ -export function normalizeLayout(raw: unknown, vw: number, vh: number): DockLayout { - const d = defaultLayout(vw, vh); - if (!raw || typeof raw !== "object") return d; - const o = raw as Partial>; - const mode: DockMode = o.mode === "left" || o.mode === "right" || o.mode === "float" ? o.mode : "float"; - const num = (value: unknown, fallback: number): number => - typeof value === "number" && Number.isFinite(value) ? value : fallback; - return fitRect( - { mode, x: num(o.x, d.x), y: num(o.y, d.y), w: num(o.w, d.w), h: num(o.h, d.h) }, - vw, - vh, - ); -} - -/** Resize a rectangle from one of the eight edges/corners by a pointer delta. */ -export function resizeRect(origin: Rect, dir: ResizeDir, dx: number, dy: number, vw: number, vh: number): Rect { - const rect = { ...origin }; - const availW = Math.max(1, vw - INSET * 2); - const availH = Math.max(1, vh - INSET * 2); - const minW = Math.min(MIN_W, availW); - const maxW = Math.min(MAX_W, availW); - const minH = Math.min(MIN_H, availH); - if (dir.includes("e")) rect.w = clamp(origin.w + dx, minW, Math.min(maxW, Math.max(minW, vw - origin.x - INSET))); - if (dir.includes("s")) rect.h = clamp(origin.h + dy, minH, Math.max(minH, vh - origin.y - INSET)); - if (dir.includes("w")) { - const right = origin.x + origin.w; - rect.x = clamp(origin.x + dx, Math.max(INSET, right - maxW), right - minW); - rect.w = right - rect.x; - } - if (dir.includes("n")) { - rect.y = clamp(origin.y + dy, INSET, origin.y + origin.h - minH); - rect.h = origin.y + origin.h - rect.y; - } - return rect; -} - -/** The pinned side a pointer near an edge would commit to on release. */ -export function snapEdge(pointerX: number, vw: number, edge = EDGE): "left" | "right" | null { - if (pointerX <= edge) return "left"; - if (pointerX >= vw - edge) return "right"; - return null; -} - -/** - * Where the minimised bar sits: docked at the bottom of the screen, under the - * window's horizontal position or on the side the mode pins to. Returned as a - * bottom offset so the bar's own height never has to be known here. - */ -export function barPlacement(rect: Rect, mode: DockMode, vw: number): { x: number; bottom: number; w: number } { - const w = Math.max(rect.w, Math.min(BAR_W, vw - INSET * 2)); - const x = mode === "left" ? 0 : mode === "right" ? Math.max(0, vw - w) : clamp(rect.x, INSET, Math.max(INSET, vw - w - INSET)); - return { x, bottom: INSET, w }; -} - -/** Pointer travel down on the header that hides the conversation on a phone. */ -export const SWIPE = 48; - -/** - * How much of the layout viewport the on-screen keyboard covers, 0 when there - * is none. Fixed elements stay anchored to the layout viewport, so the phone - * bar offsets by this to ride above the keyboard. - */ -export function keyboardCover(innerHeight: number, vv: { height: number; offsetTop: number } | null): number { - return vv ? Math.max(0, Math.round(innerHeight - vv.height - vv.offsetTop)) : 0; -} - -/** The phone bar's bottom offset: above the keyboard while one is up, else the safe area. */ -export function phoneBarBottom(keyboard: number): string { - return keyboard > 0 ? `${keyboard + 8}px` : "max(0.5rem, env(safe-area-inset-bottom))"; -} - -export function keyStep(fast: boolean): number { - return fast ? KEY_STEP_FAST : KEY_STEP; -} - -/** The separator orientation announced for a resize handle. */ -export function handleOrientation(dir: ResizeDir): "horizontal" | "vertical" { - return dir === "e" || dir === "w" ? "vertical" : "horizontal"; -} - -/** The size a resize handle announces: its height on the north/south edges, else its width. */ -export function handleValue(dir: ResizeDir, rect: Rect): number { - return dir === "n" || dir === "s" ? Math.round(rect.h) : Math.round(rect.w); -} diff --git a/ui/src/chat/ChatEmptyState.vue b/ui/src/chat/ChatEmptyState.vue deleted file mode 100644 index bfdc5837d..000000000 --- a/ui/src/chat/ChatEmptyState.vue +++ /dev/null @@ -1,37 +0,0 @@ - - - diff --git a/ui/src/chat/ChatJumpButton.vue b/ui/src/chat/ChatJumpButton.vue deleted file mode 100644 index 579f385d7..000000000 --- a/ui/src/chat/ChatJumpButton.vue +++ /dev/null @@ -1,45 +0,0 @@ - - - diff --git a/ui/src/chat/ChatMarkdown.vue b/ui/src/chat/ChatMarkdown.vue deleted file mode 100644 index 08b7c29c0..000000000 --- a/ui/src/chat/ChatMarkdown.vue +++ /dev/null @@ -1,76 +0,0 @@ - - - diff --git a/ui/src/chat/ChatNavChip.vue b/ui/src/chat/ChatNavChip.vue deleted file mode 100644 index 022862433..000000000 --- a/ui/src/chat/ChatNavChip.vue +++ /dev/null @@ -1,35 +0,0 @@ - - - diff --git a/ui/src/chat/ChatSessionActions.vue b/ui/src/chat/ChatSessionActions.vue deleted file mode 100644 index ed01a68f7..000000000 --- a/ui/src/chat/ChatSessionActions.vue +++ /dev/null @@ -1,134 +0,0 @@ - - - diff --git a/ui/src/chat/ChatSessionList.vue b/ui/src/chat/ChatSessionList.vue deleted file mode 100644 index 3d6d1b03b..000000000 --- a/ui/src/chat/ChatSessionList.vue +++ /dev/null @@ -1,70 +0,0 @@ - - - diff --git a/ui/src/chat/ChatSuggestions.vue b/ui/src/chat/ChatSuggestions.vue deleted file mode 100644 index 74d7111a4..000000000 --- a/ui/src/chat/ChatSuggestions.vue +++ /dev/null @@ -1,93 +0,0 @@ - - - diff --git a/ui/src/chat/ChatThinking.vue b/ui/src/chat/ChatThinking.vue deleted file mode 100644 index 9fb560435..000000000 --- a/ui/src/chat/ChatThinking.vue +++ /dev/null @@ -1,47 +0,0 @@ - - - diff --git a/ui/src/chat/ChatToolCall.vue b/ui/src/chat/ChatToolCall.vue deleted file mode 100644 index 91023e272..000000000 --- a/ui/src/chat/ChatToolCall.vue +++ /dev/null @@ -1,83 +0,0 @@ - - - diff --git a/ui/src/chat/ChatToolGroup.vue b/ui/src/chat/ChatToolGroup.vue deleted file mode 100644 index 5d65c1bdb..000000000 --- a/ui/src/chat/ChatToolGroup.vue +++ /dev/null @@ -1,45 +0,0 @@ - - - diff --git a/ui/src/chat/ChatTopbarButton.vue b/ui/src/chat/ChatTopbarButton.vue deleted file mode 100644 index f6d9e42fc..000000000 --- a/ui/src/chat/ChatTopbarButton.vue +++ /dev/null @@ -1,42 +0,0 @@ - - - diff --git a/ui/src/chat/ChatTranscript.vue b/ui/src/chat/ChatTranscript.vue deleted file mode 100644 index 691f6d5b3..000000000 --- a/ui/src/chat/ChatTranscript.vue +++ /dev/null @@ -1,126 +0,0 @@ - - - diff --git a/ui/src/chat/dock-window.ts b/ui/src/chat/dock-window.ts deleted file mode 100644 index 47436ae25..000000000 --- a/ui/src/chat/dock-window.ts +++ /dev/null @@ -1,313 +0,0 @@ -import { - useDraggable, - useEventListener, - useMediaQuery, - usePointerSwipe, - useResizeObserver, - useStorage, - useWindowSize, -} from "@vueuse/core"; -import { computed, nextTick, onUnmounted, ref, watch, type Ref } from "vue"; - -import { - DOCK_STORAGE_KEY, - DRAG_START, - INSET, - MAX_W, - SWIPE, - barPlacement, - fitRect, - keyboardCover, - keyStep, - normalizeLayout, - phoneBarBottom, - pinnedWidth, - resizeRect, - snapEdge, - type DockLayout, - type DockMode, - type Rect, - type ResizeDir, -} from "./ChatDockLayout"; - -interface DockElements { - /** The dock itself: the target of every drag and resize. */ - dock: Ref; - /** The conversation header, which drags the expanded window. */ - header: Ref; - /** The composer bar, which drags the collapsed dock. */ - bar: Ref; -} - -const NOT_A_DRAG_SURFACE = - 'button, a, input, select, textarea, [role="combobox"], [role="separator"], [role="textbox"], [contenteditable="true"], [contenteditable=""]'; - -/** The horizontal and vertical step an arrow key asks for. */ -function arrowDelta(event: KeyboardEvent): { dx: number; dy: number } { - const step = keyStep(event.shiftKey); - return { - dx: event.key === "ArrowRight" ? step : event.key === "ArrowLeft" ? -step : 0, - dy: event.key === "ArrowDown" ? step : event.key === "ArrowUp" ? -step : 0, - }; -} - -/** - * The chat dock's window behaviour. On a desktop-width screen the dock floats - * or pins to a side: pointer drags move it, eight handles resize it, arrow keys - * do both, and dragging near a side edge offers the pinned split. On a phone - * it is a full-width bottom bar that rides above the on-screen keyboard and - * hides when its header is swiped down. The layout is stored per browser, and - * the page reads the dock's footprint from CSS variables on the root element. - */ -export function useDockWindow({ dock, header, bar }: DockElements, expanded: Ref) { - const stored = useStorage( - DOCK_STORAGE_KEY, - normalizeLayout(null, window.innerWidth, window.innerHeight), - localStorage, - ); - - const desktop = useMediaQuery("(min-width: 768px)"); - const { width: vw, height: vh } = useWindowSize(); - const layout = computed({ - get: () => normalizeLayout(stored.value, vw.value, vh.value), - set: (value) => { - stored.value = value; - }, - }); - const mode = computed(() => (desktop.value ? layout.value.mode : "float")); - const pinned = computed(() => desktop.value && expanded.value && mode.value !== "float"); - const pinW = computed(() => pinnedWidth(layout.value.w, vw.value)); - const pinMax = computed(() => pinnedWidth(MAX_W, vw.value)); - - function floatAt(rect: Rect): void { - layout.value = { ...layout.value, mode: "float", x: rect.x, y: rect.y, w: rect.w, h: rect.h }; - } - - // The rendered rectangle: full height at an edge when pinned, the clamped - // stored rectangle when floating. - const winRect = computed(() => { - if (!desktop.value) return { x: 0, y: 0, w: vw.value, h: vh.value }; - if (pinned.value) { - return { x: mode.value === "left" ? 0 : vw.value - pinW.value, y: 0, w: pinW.value, h: vh.value }; - } - return fitRect(layout.value, vw.value, vh.value); - }); - - // Fixed elements stay anchored to the layout viewport, so the dock offsets - // by the part the on-screen keyboard covers to stay above it. - const keyboard = ref(0); - const visibleHeight = ref(window.innerHeight); - // How far the browser has panned the page up to show the focused input. - const visibleTop = ref(0); - useEventListener(() => window.visualViewport, ["resize", "scroll"], () => { - const vv = window.visualViewport; - keyboard.value = keyboardCover(window.innerHeight, vv); - visibleHeight.value = vv ? vv.height : window.innerHeight; - visibleTop.value = vv ? Math.max(0, Math.round(vv.offsetTop)) : 0; - }); - - const wrapStyle = computed((): Record => { - if (!desktop.value) return { bottom: phoneBarBottom(keyboard.value) }; - const rect = winRect.value; - if (pinned.value) { - return { left: `${rect.x}px`, top: "0px", width: `${rect.w}px`, height: `${rect.h}px` }; - } - if (expanded.value) { - // A tablet's on-screen keyboard covers the bottom of the layout - // viewport; keep the window, and its composer, above it. - const fit = keyboard.value > 0 ? fitRect(rect, vw.value, visibleHeight.value) : rect; - const top = keyboard.value > 0 ? fit.y + visibleTop.value : fit.y; - return { left: `${fit.x}px`, top: `${top}px`, width: `${fit.w}px`, height: `${fit.h}px` }; - } - const placed = barPlacement(rect, mode.value, vw.value); - return { left: `${placed.x}px`, bottom: `${placed.bottom + keyboard.value}px`, width: `${placed.w}px` }; - }); - - // The page reserves the collapsed dock's height, read from the rendered bar, - // so the last line of any page can scroll clear of it. Only a bar in the - // bottom quarter of the screen reserves room. - const root = document.documentElement.style; - function reserve(): void { - if (expanded.value || !dock.value) return; - const rect = dock.value.getBoundingClientRect(); - const clear = rect.bottom >= window.innerHeight * 0.75 ? Math.ceil(window.innerHeight - rect.top) : 0; - root.setProperty("--chat-dock-clear", `${clear}px`); - } - useResizeObserver(dock, reserve); - useEventListener(window, "resize", reserve); - watch([expanded, desktop, () => layout.value.x, () => layout.value.y, () => layout.value.w, mode], () => - nextTick(reserve), - ); - - // The page makes room for a pinned dock through these two variables. - watch( - [pinned, mode, pinW], - () => { - root.setProperty("--chat-pin-l", pinned.value && mode.value === "left" ? `${pinW.value}px` : "0px"); - root.setProperty("--chat-pin-r", pinned.value && mode.value === "right" ? `${pinW.value}px` : "0px"); - }, - { immediate: true }, - ); - onUnmounted(() => { - root.removeProperty("--chat-dock-clear"); - root.removeProperty("--chat-pin-l"); - root.removeProperty("--chat-pin-r"); - }); - - // The header drags the open window and the bar drags the collapsed one. The - // controls inside them keep their own presses, except the move handle. - function onDragSurface(target: HTMLElement): boolean { - const surface = expanded.value ? header.value : bar.value; - if (!surface?.contains(target)) return false; - return !target.closest(NOT_A_DRAG_SURFACE) || !!target.closest("[data-move-handle]"); - } - - // The rectangle a drag or resize starts from. Collapsed, the bar can sit at - // an edge rather than at the stored x, so its rendered x and width are the - // origin; otherwise the first move would make it jump. - function dragOrigin(): Rect { - const rect = winRect.value; - if (expanded.value || !dock.value) return rect; - const shown = dock.value.getBoundingClientRect(); - return { ...rect, x: shown.left, w: shown.width }; - } - - function applyResize(origin: Rect, dir: ResizeDir, dx: number, dy: number): void { - floatAt(resizeRect(origin, dir, dx, dy, vw.value, vh.value)); - } - - const dragging = ref(false); - const resizing = ref(false); - const snapTarget = ref<"left" | "right" | null>(null); - - // A press becomes a drag only after DRAG_START pixels of travel, so a click - // or double-click on a drag surface never moves the dock. - let drag: { origin: Rect; x0: number; y0: number; moved: boolean } | null = null; - useDraggable(dock, { - disabled: () => !desktop.value, - onStart: (_, e) => { - if (!e.isPrimary || !onDragSurface(e.target as HTMLElement)) return false; - drag = { origin: dragOrigin(), x0: e.clientX, y0: e.clientY, moved: false }; - }, - onMove: (_, e) => { - if (!drag) return; - const dx = e.clientX - drag.x0; - const dy = e.clientY - drag.y0; - if (!drag.moved && Math.hypot(dx, dy) < DRAG_START) return; - drag.moved = true; - dragging.value = true; - if (!expanded.value) { - const x = Math.min(Math.max(drag.origin.x + dx, INSET), Math.max(INSET, vw.value - drag.origin.w - INSET)); - layout.value = { ...layout.value, mode: "float", x }; - return; - } - floatAt(fitRect({ ...drag.origin, x: drag.origin.x + dx, y: drag.origin.y + dy }, vw.value, vh.value)); - snapTarget.value = snapEdge(e.clientX, vw.value); - }, - onEnd: (_, e) => { - if (drag?.moved && e.type === "pointerup" && snapTarget.value) { - layout.value = { ...layout.value, mode: snapTarget.value }; - } - drag = null; - dragging.value = false; - snapTarget.value = null; - }, - }); - - // Every resize handle, the pinned divider included, carries data-resize. The - // delta is measured from the press and applied to the rectangle as it was - // then; applying it to the live rectangle would compound every move. - let resize: { dir: ResizeDir | "pin"; origin: Rect; w0: number; x0: number; y0: number } | null = null; - useDraggable(dock, { - disabled: () => !desktop.value, - preventDefault: true, - onStart: (_, e) => { - const handle = (e.target as HTMLElement).closest("[data-resize]"); - const dir = handle?.dataset.resize as ResizeDir | "pin" | undefined; - if (!e.isPrimary || !dir) return false; - resize = { dir, origin: dragOrigin(), w0: pinW.value, x0: e.clientX, y0: e.clientY }; - resizing.value = true; - }, - onMove: (_, e) => { - if (!resize) return; - const dx = e.clientX - resize.x0; - if (resize.dir === "pin") { - layout.value = { ...layout.value, w: pinnedWidth(resize.w0 + (mode.value === "left" ? dx : -dx), vw.value) }; - return; - } - applyResize(resize.origin, resize.dir, dx, e.clientY - resize.y0); - }, - onEnd: () => { - resize = null; - resizing.value = false; - }, - }); - - // On a phone the header is a swipe surface, not a drag surface: a downward - // swipe hides the conversation. - usePointerSwipe(header, { - threshold: SWIPE, - onSwipeEnd: (e, direction) => { - if (desktop.value || e.type !== "pointerup" || direction !== "down") return; - // The keyboard serves the composer, which is no longer in front of it. - (document.activeElement as HTMLElement | null)?.blur(); - expanded.value = false; - }, - }); - - function setMode(next: DockMode): void { - if (!desktop.value) return; - layout.value = { ...layout.value, mode: next }; - expanded.value = true; - } - - function togglePin(event: MouseEvent): void { - if (!desktop.value || !onDragSurface(event.target as HTMLElement)) return; - layout.value = { ...layout.value, mode: mode.value === "float" ? "right" : "float" }; - } - - function moveByKey(event: KeyboardEvent): void { - if (!desktop.value || !event.key.startsWith("Arrow")) return; - event.preventDefault(); - const { dx, dy } = arrowDelta(event); - const rect = winRect.value; - floatAt(fitRect({ ...rect, x: rect.x + dx, y: rect.y + dy }, vw.value, vh.value)); - } - - function resizeByKey(dir: ResizeDir, event: KeyboardEvent): void { - if (!desktop.value || !event.key.startsWith("Arrow")) return; - event.preventDefault(); - const { dx, dy } = arrowDelta(event); - applyResize(dragOrigin(), dir, dx, dy); - } - - function resizePinByKey(event: KeyboardEvent): void { - if (!desktop.value) return; - const grow = event.key === (mode.value === "right" ? "ArrowLeft" : "ArrowRight"); - const shrink = event.key === (mode.value === "right" ? "ArrowRight" : "ArrowLeft"); - if (!grow && !shrink) return; - event.preventDefault(); - layout.value = { ...layout.value, w: pinnedWidth(layout.value.w + (grow ? 16 : -16), vw.value) }; - } - - return { - desktop, - vw, - vh, - mode, - pinned, - pinW, - pinMax, - winRect, - wrapStyle, - visibleHeight, - dragging, - resizing, - snapTarget, - setMode, - togglePin, - moveByKey, - resizeByKey, - resizePinByKey, - }; -} diff --git a/ui/src/chat/escape.ts b/ui/src/chat/escape.ts deleted file mode 100644 index f90d0b76a..000000000 --- a/ui/src/chat/escape.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { onUnmounted, ref, watch, type Ref } from "vue"; - -/** - * How many layers inside the dock currently own Escape: an open popover, - * dialog or drawer. The dock collapses on Escape only when none is open, so - * dismissing a menu does not also hide the conversation behind it. - */ -const openLayers = ref(0); - -/** Registers a toggleable layer inside the dock for as long as it is mounted. */ -export function useEscapeLayer(open: Ref): void { - watch(open, (isOpen) => { - openLayers.value += isOpen ? 1 : -1; - }); - onUnmounted(() => { - if (open.value) openLayers.value -= 1; - }); -} - -export function escapeOwnedByLayer(): boolean { - return openLayers.value > 0; -} diff --git a/ui/src/chat/markdown.ts b/ui/src/chat/markdown.ts deleted file mode 100644 index 8dd006e3c..000000000 --- a/ui/src/chat/markdown.ts +++ /dev/null @@ -1,55 +0,0 @@ -import type { Element, ElementContent, Root, RootContent } from "hast"; -import remarkGfm from "remark-gfm"; -import remarkParse from "remark-parse"; -import remarkRehype from "remark-rehype"; -import { unified } from "unified"; - -/** - * Model-written Markdown (GitHub flavoured) parsed into an HTML syntax tree - * that ChatMarkdown renders as Vue nodes. Raw HTML in the source is dropped, - * and links and images keep only safe URLs. - */ -const processor = unified().use(remarkParse).use(remarkGfm).use(remarkRehype); - -const SAFE_HREF = /^(?:https?:\/\/|\/(?!\/)|#)/i; -// Images render only from same-origin paths and inline data: a remote image -// URL is a data-exfil sink, and /\ or // makes the browser treat the rest as -// a host, so both slash forms after the leading / are rejected too. -const SAFE_SRC = /^(?:\/(?![/\\])|data:image\/)/i; - -export function parseMarkdown(text: string | null | undefined): Root { - const tree = processor.runSync(processor.parse(text ?? "")) as Root; - tree.children = clean(tree.children) as RootContent[]; - return tree; -} - -function clean(nodes: Array): ElementContent[] { - const out: ElementContent[] = []; - for (const node of nodes) { - if (node.type === "text") { - out.push(node); - } else if (node.type === "element") { - const kept = safeElement(node); - if (!kept) continue; - if (kept !== node) { - out.push(...clean(kept.children)); - continue; - } - node.children = clean(node.children); - out.push(node); - } - } - return out; -} - -// safeElement returns the element, null to drop it, or a wrapper whose -// children replace a link with an unsafe URL. -function safeElement(node: Element): Element | null { - if (node.tagName === "img") { - return SAFE_SRC.test(String(node.properties.src ?? "")) ? node : null; - } - if (node.tagName === "a" && !SAFE_HREF.test(String(node.properties.href ?? ""))) { - return { ...node, tagName: "span", properties: {} }; - } - return node; -} diff --git a/ui/src/chat/prompt-tokens.ts b/ui/src/chat/prompt-tokens.ts deleted file mode 100644 index 488e131dd..000000000 --- a/ui/src/chat/prompt-tokens.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { TokenInputValue } from "@ui-sdk/core/token-input"; - -/** - * Serializes a TokenInputValue into the plain text sent in a chat turn. The - * only token is a workflow, sent as `@`. - */ -export function serializePromptValue(value: TokenInputValue): string { - return value.map((segment) => (typeof segment === "string" ? segment : `@${segment.label}`)).join(""); -} diff --git a/ui/src/chat/session.ts b/ui/src/chat/session.ts deleted file mode 100644 index 17a56acca..000000000 --- a/ui/src/chat/session.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { useAppearanceStore } from "@/stores/appearance"; -import type { ChatSession } from "./types"; - -// One formatter per zone, cached: the zone chosen under Appearance is applied -// here like Timestamp applies it, not the browser's zone. -const startedCache = new Map(); -function started(zone: string): Intl.DateTimeFormat { - const cached = startedCache.get(zone); - if (cached) return cached; - const format = new Intl.DateTimeFormat(undefined, { - month: "short", - day: "numeric", - hour: "numeric", - minute: "2-digit", - ...(zone ? { timeZone: zone } : {}), - }); - startedCache.set(zone, format); - return format; -} - -// An untitled conversation is named by when it began, which tells two apart -// where a raw id cannot. -export function sessionTitle(session: ChatSession): string { - if (session.title) return session.title; - return session.created_at - ? started(useAppearanceStore().timeZone).format(new Date(session.created_at)) - : "New chat"; -} diff --git a/ui/src/chat/state.ts b/ui/src/chat/state.ts deleted file mode 100644 index 3ed411920..000000000 --- a/ui/src/chat/state.ts +++ /dev/null @@ -1,445 +0,0 @@ -import { computed, onMounted, onUnmounted, ref, watch } from "vue"; - -import { errors } from "@/copy/errors"; -import { api, describeError } from "@/lib/api"; -import { router } from "@/router"; -import { answerApproval } from "@/runs/answer"; -import { readTurn } from "./stream"; -import { askOf, promptOf, transcriptOf } from "./transcript"; -import type { ChatAsk, ChatMessage, ChatSession, ChatToolCall, StreamingTurn } from "./types"; - -/** - * The chat dock's shared state. The dock and the topbar button are separate - * components and the dock survives a navigation, so the conversation lives in - * a module rather than in either component. - */ - -/** A turn that never settles must not hold the composer closed forever. */ -const STREAM_TIMEOUT_MS = 120000; -const STOPPED_TEXT = "Turn stopped."; - -export const sessions = ref([]); -export const currentSession = ref(""); -export const messages = ref([]); -export const streamingTurn = ref(null); -/** Messages sent while a turn runs, oldest first; each goes when the turn before it ends. */ -export const queuedMessages = ref([]); - -export const statusText = ref("Ready"); -export const isSending = ref(false); -export const isLoadingSession = ref(false); -/** A failed conversation load or action, shown in the transcript with a Retry. */ -export const sessionError = ref(""); - -/** Whether a chat model is configured, so a prompt sent now can be answered. */ -export const chatModelReady = ref(false); -/** Why no model can answer, when none can. */ -export const modelError = ref(""); - -/** Whether the dock shows the conversation; the dock, Ctrl+/ and the topbar button share it. */ -export const dockExpanded = ref(false); -/** A suggested prompt under the pointer or focus, previewed as the composer placeholder. */ -export const placeholderHint = ref(""); - -const drafts = ref>({}); -/** The unsent text of the open conversation; each conversation keeps its own. */ -export const composerText = computed({ - get: () => drafts.value[currentSession.value] ?? "", - set: (value: string) => { - drafts.value = { ...drafts.value, [currentSession.value]: value }; - }, -}); - -let activeController: AbortController | null = null; -// The turn the active controller is reading, once the server has it. -let activeTurnID = ""; -// Bumped on every conversation switch: a turn started in an earlier -// conversation is detached and must not write into the one now open. -let sessionEpoch = 0; -// Set by "New chat": the server creates the conversation with its first -// message, so until then the session list must not reopen an older one. -let startedFresh = false; - -function abortActiveTurn(): void { - activeController?.abort(); -} - -function isCurrentSession(id: string): boolean { - return currentSession.value === id; -} - -/** Clears the transcript for a conversation switch and detaches any running turn. */ -function resetConversation(id: string): void { - sessionEpoch++; - abortActiveTurn(); - currentSession.value = id; - messages.value = []; - streamingTurn.value = null; - queuedMessages.value = []; - sessionError.value = ""; -} - -async function refreshSessions(): Promise { - const data = await api.chatSessions(); - sessions.value = data.sessions ?? []; - chatModelReady.value = !!data.active_model; - modelError.value = data.model_error ?? ""; - const first = sessions.value[0]; - if (!currentSession.value && first && !startedFresh) await selectSession(first.session_id); -} - -/** The session list after a turn or delete; a failure is reported without failing the caller. */ -function refreshSessionsQuietly(): Promise { - return refreshSessions().catch((err) => { - sessionError.value = errors.chat.session.refreshList(describeError(err, errors.common.unknown)); - }); -} - -/** The open conversation, created on the server when there is none yet. */ -async function ensureSession(): Promise { - if (currentSession.value) return currentSession.value; - const created = await api.chatCreateSession(); - // The text typed into the new chat stays with it. - drafts.value = { ...drafts.value, [created.session_id]: drafts.value[""] ?? "" }; - currentSession.value = created.session_id; - startedFresh = false; - sessions.value = [created, ...sessions.value]; - return created.session_id; -} - -export async function selectSession(id: string): Promise { - if (!id) return; - resetConversation(id); - startedFresh = false; - isLoadingSession.value = true; - try { - const turns = await api.chatTurns(id); - if (!isCurrentSession(id)) return; - const last = turns.at(-1); - const open = last && (last.state === "queued" || last.state === "running") ? last : undefined; - // A turn still being answered is followed live rather than shown half done. - messages.value = transcriptOf(open ? turns.slice(0, -1) : turns); - if (open) { - messages.value = [...messages.value, promptOf(open)]; - void sendMessage({ follow: open.id, text: open.text }); - } - } catch (err) { - if (isCurrentSession(id)) sessionError.value = describeError(err, errors.chat.session.loadMessages); - } finally { - if (isCurrentSession(id)) isLoadingSession.value = false; - } -} - -/** Opens an empty conversation; the server creates it with its first message. */ -export function newChat(): void { - resetConversation(""); - startedFresh = true; -} - -export async function renameSession(title: string): Promise { - const id = currentSession.value; - if (!id) return; - try { - const renamed = await api.chatRenameSession(id, title); - sessions.value = sessions.value.map((s) => (s.session_id === id ? renamed : s)); - } catch (err) { - sessionError.value = describeError(err, errors.chat.session.rename); - } -} - -/** Deletes the open conversation and opens the next one. */ -export async function deleteSession(): Promise { - const id = currentSession.value; - if (!id) return; - try { - await api.chatDeleteSession(id); - } catch (err) { - sessionError.value = describeError(err, errors.chat.session.delete); - return; - } - newChat(); - startedFresh = false; - await refreshSessionsQuietly(); -} - -/** - * Re-reads the open conversation, so a message the server added (an approved - * action's outcome) appears. A turn in flight owns the transcript, so the reload - * is skipped until it ends. - */ -export async function reloadTranscript(): Promise { - const id = currentSession.value; - const inFlight = () => !!streamingTurn.value && !streamingTurn.value.stopped; - if (!id || inFlight()) return; - try { - const transcript = transcriptOf(await api.chatTurns(id)); - if (!isCurrentSession(id) || inFlight()) return; - messages.value = transcript; - streamingTurn.value = null; - } catch { - // The next outcome, or reopening the conversation, reads it again. - } -} - -/** - * Answers a held action. Throws when the server refuses the answer, so the - * card stays up with the error; on success the card leaves and the action's - * outcome arrives with the reloaded turn. - */ -export async function answerAsk(ask: ChatAsk, approve: boolean): Promise { - await answerApproval(ask.id, approve); - const without = (asks: ChatAsk[] = []) => asks.filter((a) => a.id !== ask.id); - messages.value = messages.value.map((m) => (m.approvals ? { ...m, approvals: without(m.approvals) } : m)); - if (streamingTurn.value) { - streamingTurn.value = { ...streamingTurn.value, approvals: without(streamingTurn.value.approvals) }; - } - void reloadTranscript(); -} - -export function removeQueued(index: number): void { - queuedMessages.value = queuedMessages.value.filter((_, i) => i !== index); -} - -/** Moves a queued message back into the composer, after anything already typed. */ -export function editQueued(index: number): void { - const text = queuedMessages.value[index]; - if (text === undefined) return; - removeQueued(index); - composerText.value = composerText.value.trim() ? `${composerText.value}\n${text}` : text; -} - -// A turn that ended, stopped included, sends the next queued message. A failed -// turn holds the queue so nothing overtakes its retry. -watch(isSending, (sending) => { - if (sending || streamingTurn.value?.isError) return; - const [next, ...rest] = queuedMessages.value; - if (next === undefined) return; - queuedMessages.value = rest; - void sendMessage({ text: next }); -}); - -/** The page the operator is on, without the hash the server never sees. */ -function currentPage(): string { - return router.currentRoute.value.fullPath.split("#")[0] || "/"; -} - -// The page whose tag the operator removed. Navigating elsewhere shows the tag -// again, so the dismissal never outlives the page it was made on. -const clearedPage = ref(""); -watch(currentPage, () => { - clearedPage.value = ""; -}); - -/** The page the next message is about, shown as a tag above the composer. */ -export const pageTag = computed(() => { - const page = currentPage(); - if (page === clearedPage.value) return null; - const route = router.currentRoute.value; - let label = page; - if (route.name === "workflow") label = `Workflow ${route.params.id}`; - else if (typeof route.meta.label === "string") label = route.meta.label; - return { page, label }; -}); - -export function clearPageTag(): void { - clearedPage.value = currentPage(); -} - -/** What a page that edits something Archie can change runs around a turn: save first, reload after. */ -let turnHooks: { before?: () => Promise; after?: () => void } = {}; -export function setTurnHooks(hooks: typeof turnHooks): void { - turnHooks = hooks; -} - -export interface SendOptions { - /** Text to send instead of the composer's, which is left as typed. */ - text?: string; - /** A failed turn's text, resent without adding it to the transcript again. */ - retry?: string; - /** A turn the server already has: follow its stream instead of sending. */ - follow?: string; -} - -export async function sendMessage(opts: SendOptions = {}): Promise { - // A conversation switch bumps sessionEpoch and detaches this turn. - const epoch = sessionEpoch; - const fromComposer = opts.text === undefined && opts.retry === undefined; - const text = (opts.retry ?? opts.text ?? composerText.value).trim(); - if (!text) return; - const isRetry = opts.retry !== undefined; - const { follow } = opts; - - // A message sent during a turn waits for it. Following a turn already sent - // never queues, and a retry has nothing to wait for. - if (isSending.value && !follow) { - if (isRetry) return; - queuedMessages.value = [...queuedMessages.value, text]; - if (fromComposer) composerText.value = ""; - return; - } - - isSending.value = true; - statusText.value = isRetry ? "Retrying…" : "Thinking…"; - if (!isRetry && !follow) { - messages.value = [...messages.value, { from: "web", text }]; - if (fromComposer) composerText.value = ""; - } - - let streamedText = ""; - let reasoning = ""; - let tools: ChatToolCall[] = []; - streamingTurn.value = { text: "", tools, reasoning, approvals: [], retryText: text, isError: false, stopped: false }; - const update = (patch: Partial) => { - if (streamingTurn.value) streamingTurn.value = { ...streamingTurn.value, ...patch }; - }; - const approvals = () => streamingTurn.value?.approvals ?? []; - - let timedOut = false; - let detached = false; - let timeoutId: ReturnType | undefined; - const controller = new AbortController(); - activeController = controller; - activeTurnID = follow ?? ""; - const arm = () => { - clearTimeout(timeoutId); - timeoutId = setTimeout(() => { - timedOut = true; - controller.abort(); - }, STREAM_TIMEOUT_MS); - }; - - try { - arm(); - if (!follow) { - await turnHooks.before?.(); - const session = await ensureSession(); - const sent = await api.chatSend(session, { text, page: pageTag.value?.page, page_label: pageTag.value?.label }); - if (activeController === controller) activeTurnID = sent.id; - // Stopped while the message was on its way: the turn exists now, so stop it. - if (controller.signal.aborted) { - void api.chatCancelTurn(sent.id).catch(() => {}); - throw new DOMException("stopped", "AbortError"); - } - } - - const last = await readTurn( - activeTurnID, - controller.signal, - (frame) => { - if (epoch !== sessionEpoch) throw new DOMException("detached", "AbortError"); - switch (frame.type) { - case "delta": - streamedText += frame.text ?? ""; - update({ text: streamedText }); - break; - case "reasoning": - reasoning += frame.text ?? ""; - update({ reasoning }); - break; - case "tool": - tools = [...tools, frame]; - update({ tools }); - break; - case "navigate": - tools = [...tools, { path: frame.path, label: frame.label, text_offset: Array.from(streamedText).length }]; - update({ tools }); - break; - case "approval": - // A held action does not stop the turn: its card waits in the reply. - if (frame.request_id) update({ approvals: [...approvals(), askOf(frame)] }); - break; - } - }, - () => { - // Any bytes, including the server's keepalive, show the turn is alive. - if (epoch === sessionEpoch) arm(); - }, - ); - if (epoch !== sessionEpoch) throw new DOMException("detached", "AbortError"); - if (last.type === "error") throw new Error(last.text); - if (last.type === "cancelled") throw new DOMException("stopped", "AbortError"); - - messages.value = [ - ...messages.value, - { from: "assistant", text: streamedText || last.text || "", tool_calls: tools, approvals: approvals() }, - ]; - streamingTurn.value = null; - statusText.value = "Ready"; - await refreshSessionsQuietly(); - } catch (err) { - if (epoch !== sessionEpoch) { - detached = true; - return; - } - // What already streamed is kept; the stop or failure note follows it. - let held = approvals(); - if (streamedText) { - messages.value = [...messages.value, { from: "assistant", text: streamedText, tool_calls: tools, approvals: held }]; - tools = []; - held = []; - } - const failure = err as Error; - const stopped = failure.name === "AbortError" && !timedOut; - streamingTurn.value = { - text: stopped ? STOPPED_TEXT : failureText(failure, timedOut, tools), - tools, - reasoning, - approvals: held, - retryText: stopped ? undefined : text, - isError: !stopped, - stopped, - }; - statusText.value = stopped ? "Stopped" : errors.chat.turn.failedStatus; - } finally { - clearTimeout(timeoutId); - // Only the turn that still owns the controller clears the sending flag: a - // detached turn must not unlock the composer for a turn already running in - // the conversation now open. - if (activeController === controller) { - activeController = null; - activeTurnID = ""; - isSending.value = false; - if (detached) statusText.value = "Ready"; - } - turnHooks.after?.(); - } -} - -function failureText(failure: Error, timedOut: boolean, tools: ChatToolCall[]): string { - if (timedOut) { - const last = tools.filter((tool) => tool.name).at(-1); - const step = last ? `, last step: ${last.name}` : ""; - return errors.chat.stream.timedOut(`${STREAM_TIMEOUT_MS / 60000} minutes${step}`); - } - if (failure instanceof TypeError) return errors.common.network; - return describeError(failure, errors.chat.turn.failed); -} - -export function stopTurn(): void { - statusText.value = "Stopping…"; - const id = activeTurnID; - // Without a turn yet, the abort stops the send. With one, the server stops - // it and the stream ends on its cancelled event, keeping what was said. - if (!id) { - abortActiveTurn(); - return; - } - void api.chatCancelTurn(id).catch((err) => { - sessionError.value = errors.chat.turn.stop(describeError(err, errors.common.unknown)); - abortActiveTurn(); - }); -} - -/** - * Runs the first sessions read and aborts an in-flight turn when the dock - * unmounts. The dock stays mounted while collapsed, so the conversation - * survives a navigation. - */ -export function useChat(): void { - onMounted(() => { - refreshSessions().catch((err: Error) => { - statusText.value = describeError(err, errors.chat.session.unavailable); - }); - }); - onUnmounted(abortActiveTurn); -} diff --git a/ui/src/chat/stream.ts b/ui/src/chat/stream.ts deleted file mode 100644 index 7630c8fee..000000000 --- a/ui/src/chat/stream.ts +++ /dev/null @@ -1,54 +0,0 @@ -import { errors } from "@/copy/errors"; -import { api } from "@/lib/api"; -import type { ChatToolCall } from "./types"; - -/** - * One `data: {...}` frame of a turn's event stream. A `tool` frame carries a - * ChatToolCall, a `navigate` frame its path and label, and an `approval` frame - * the held action. - */ -export interface ChatStreamFrame extends ChatToolCall { - seq?: number; - type?: string; - request_id?: string; - action?: string; - summary?: string; -} - -const TERMINAL = new Set(["done", "error", "cancelled"]); - -/** - * Reads a turn's recorded events from the server-sent stream until it ends, - * passing each frame to onFrame. Resolves with the terminal frame: done, error - * or cancelled. A stream that closes before a terminal frame is a failure. - */ -export async function readTurn( - turnID: string, - signal: AbortSignal | undefined, - onFrame: (frame: ChatStreamFrame) => void, - onBytes: () => void = () => {}, -): Promise { - const response = await api.chatTurnEvents(turnID, 0, { signal }); - if (!response.body) throw new Error(errors.chat.stream.noBody); - const reader = response.body.getReader(); - const decoder = new TextDecoder(); - let buffer = ""; - for (;;) { - const { value, done } = await reader.read(); - if (!done) onBytes(); - buffer += decoder.decode(value ?? new Uint8Array(), { stream: !done }); - const chunks = buffer.split("\n\n"); - buffer = chunks.pop() ?? ""; - for (const chunk of chunks) { - const line = chunk.split("\n").find((part) => part.startsWith("data: ")); - if (!line) continue; - const frame = JSON.parse(line.slice(6)) as ChatStreamFrame; - onFrame(frame); - if (frame.type && TERMINAL.has(frame.type)) { - await reader.cancel().catch(() => {}); - return frame; - } - } - if (done) throw new Error(errors.chat.stream.endedEarly); - } -} diff --git a/ui/src/chat/suggestions.ts b/ui/src/chat/suggestions.ts deleted file mode 100644 index af0d9b4b5..000000000 --- a/ui/src/chat/suggestions.ts +++ /dev/null @@ -1,99 +0,0 @@ -/** - * The suggested prompts shown beside the chat composer, keyed off the page - * the operator is on, chosen by the route's name. - * - * Prompts are questions an operator would actually ask on that page, not - * demonstrations of the feature. - */ - -/** The route as the page tag reads it; only these fields are consulted. */ -export interface SuggestionRoute { - name?: unknown; - path?: string; - params?: Record; - meta?: Record; -} - -/** The pages that get their own prompt set. */ -export type SuggestionPage = - | "run" - | "runs" - | "events" - | "workflows" - | "schedules" - | "settings" - | "default"; - -/** Which prompt set a route gets, by route name. */ -export function suggestionPage(route: SuggestionRoute): SuggestionPage { - const name = typeof route.name === "string" ? route.name : ""; - switch (name) { - case "run": - return "run"; - case "runs": - return "runs"; - case "events": - return "events"; - case "workflows": - return "workflows"; - case "schedules": - case "org-schedules": - case "org-schedule-runs": - return "schedules"; - default: - break; - } - const path = route.path ?? ""; - if (route.meta?.settings === true || name.startsWith("settings-") || path.startsWith("/settings")) { - return "settings"; - } - return "default"; -} - -/** The prompts for a route. */ -export function suggestionsForRoute(route: SuggestionRoute): string[] { - switch (suggestionPage(route)) { - case "run": - return [ - "What is this run doing right now?", - "Summarise what this run did", - "Why is this run waiting?", - ]; - case "runs": - return [ - "Which runs are waiting on an approval?", - "What failed in the last hour?", - "Which runs are still going?", - ]; - case "events": - return [ - "Which events fired today?", - "Why didn't my last event start a workflow?", - "Show recent event deliveries", - ]; - case "workflows": - return [ - "Which workflow ran most recently?", - "What did the last run change?", - "Which workflows failed recently?", - ]; - case "schedules": - return [ - "When is the next scheduled run?", - "Did the last scheduled run succeed?", - "Which schedules are enabled?", - ]; - case "settings": - return [ - "Which model is Archie using right now?", - "Which connectors are set up?", - "Show recent access decisions", - ]; - default: - return [ - "Summarise today's runs", - "What is waiting on me?", - "Check system status", - ]; - } -} diff --git a/ui/src/chat/transcript.ts b/ui/src/chat/transcript.ts deleted file mode 100644 index 29b4d9fa1..000000000 --- a/ui/src/chat/transcript.ts +++ /dev/null @@ -1,48 +0,0 @@ -import { errors } from "@/copy/errors"; -import type { ChatTurnRecord } from "@/lib/api"; -import type { ChatAsk, ChatMessage, ChatToolCall } from "./types"; - -/** The turns as the transcript shows them: each message, then its reply. */ -export function transcriptOf(turns: ChatTurnRecord[]): ChatMessage[] { - return turns.flatMap((turn): ChatMessage[] => [promptOf(turn), replyOf(turn)]); -} - -export function promptOf(turn: ChatTurnRecord): ChatMessage { - return { from: "web", text: turn.text, message_id: `${turn.id}:in` }; -} - -function replyOf(turn: ChatTurnRecord): ChatMessage { - const end = Array.from(turn.reply).length; - const settled = new Map(turn.actions.map((a) => [a.request_id, a])); - const tools: ChatToolCall[] = [ - ...turn.tool_calls, - // Opened pages and answered approvals carry no offset, so they follow the reply. - ...turn.navigate.map((n) => ({ ...n, text_offset: end })), - ...turn.approvals.flatMap((a) => { - const done = settled.get(a.request_id); - if (!done) return []; - return [{ - name: a.action, - text: done.result ? `${done.state}: ${done.result}` : done.state, - failed: !["approved", "running", "succeeded"].includes(done.state), - text_offset: end, - }]; - }), - ]; - const message: ChatMessage = { - from: "assistant", - message_id: `${turn.id}:out`, - text: turn.reply, - tool_calls: tools, - approvals: turn.approvals.filter((a) => !settled.has(a.request_id)).map(askOf), - }; - if (turn.state === "failed") { - return { ...message, text: turn.reply || turn.error || errors.chat.turn.failed, error: !turn.reply }; - } - if (turn.state === "cancelled") return { ...message, text: turn.reply || "Stopped before replying." }; - return message; -} - -export function askOf(a: { request_id?: string; action?: string; summary?: string }): ChatAsk { - return { id: a.request_id ?? "", prompt: a.action ?? "", detail: a.summary }; -} diff --git a/ui/src/chat/types.ts b/ui/src/chat/types.ts deleted file mode 100644 index 59012df21..000000000 --- a/ui/src/chat/types.ts +++ /dev/null @@ -1,57 +0,0 @@ -/** One web conversation, as GET /api/chat/sessions lists it. */ -export interface ChatSession { - session_id: string; - title?: string; - created_at?: string; -} - -/** - * A tool the assistant called, or a page it opened. A recorded turn and a live - * `tool` frame carry the same fields; a `navigate` frame carries only `path` - * and `label` and renders as a link instead of a tool line. - */ -export interface ChatToolCall { - name?: string; - parameters?: string; - /** The tool's output, or its error when `failed` is set. */ - text?: string; - failed?: boolean; - duration_ms?: number; - /** Runes of reply text before the call: where in the reply it happened. */ - text_offset?: number; - path?: string; - label?: string; -} - -/** An action a turn held for approval. */ -export interface ChatAsk { - id: string; - prompt: string; - detail?: string; -} - -/** One message in the transcript, from either side. */ -export interface ChatMessage { - from: "web" | "assistant"; - text: string; - message_id?: string; - tool_calls?: ChatToolCall[]; - /** A reply standing in for a turn that failed; the bubble shows it as an error. */ - error?: boolean; - /** Actions the turn held for approval that nobody has answered yet. */ - approvals?: ChatAsk[]; -} - -/** A turn in flight: what it shows so far, and the text to resend if it fails. */ -export interface StreamingTurn { - text: string; - tools: ChatToolCall[]; - /** The model's thinking so far, streamed on `reasoning` frames. */ - reasoning: string; - approvals: ChatAsk[]; - /** The text sent, for Retry; absent when the turn cannot be retried. */ - retryText?: string; - isError: boolean; - /** The operator stopped the turn; it is finished, not in flight. */ - stopped: boolean; -} diff --git a/ui/src/chat/unseen.ts b/ui/src/chat/unseen.ts deleted file mode 100644 index 9116c6f7a..000000000 --- a/ui/src/chat/unseen.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { computed, ref, watch } from "vue"; - -import { isLoadingSession, messages } from "./state"; - -/** - * Counts the replies the operator has not seen. A reply is seen once the - * conversation is open and scrolled to its end; one that lands before that, - * such as an approved action's outcome while the dock is collapsed or the reader - * is scrolled up, adds to the count until then. - * - * It counts replies by position, not by id: a streamed reply is appended - * locally without an id and a later reload returns it with one, and that must - * not count twice. - */ -const dockOpen = ref(false); -const atEnd = ref(false); -const seen = ref(0); - -const total = computed(() => messages.value.filter((message) => message.from !== "web").length); -const viewing = computed(() => dockOpen.value && atEnd.value); - -export const unseenCount = computed(() => Math.max(0, total.value - seen.value)); - -// Opening or switching a conversation loads it, which is not news; a reload -// that drops a message must also lower the mark so the next reply still counts. -watch( - [total, viewing, isLoadingSession], - ([count, watching, loading], [, , wasLoading]) => { - if (watching || loading || wasLoading || count < seen.value) seen.value = count; - }, - { immediate: true }, -); - -/** The dock reports whether the conversation is open above the composer. */ -export function setDockOpen(open: boolean): void { - dockOpen.value = open; -} - -/** The scroller's jump button reports whether the reader is at the end. */ -export function setAtEnd(end: boolean): void { - atEnd.value = end; -} diff --git a/ui/src/components/AppSidebar.vue b/ui/src/components/AppSidebar.vue deleted file mode 100644 index f38d1e0fc..000000000 --- a/ui/src/components/AppSidebar.vue +++ /dev/null @@ -1,88 +0,0 @@ - - - diff --git a/ui/src/components/ChangeList.vue b/ui/src/components/ChangeList.vue deleted file mode 100644 index b5895fc52..000000000 --- a/ui/src/components/ChangeList.vue +++ /dev/null @@ -1,37 +0,0 @@ - - - diff --git a/ui/src/components/OptionSelect.vue b/ui/src/components/OptionSelect.vue deleted file mode 100644 index 86c4f968e..000000000 --- a/ui/src/components/OptionSelect.vue +++ /dev/null @@ -1,20 +0,0 @@ - - - diff --git a/ui/src/components/command-palette/CommandPalette.vue b/ui/src/components/command-palette/CommandPalette.vue deleted file mode 100644 index 810af9e9b..000000000 --- a/ui/src/components/command-palette/CommandPalette.vue +++ /dev/null @@ -1,114 +0,0 @@ - - - diff --git a/ui/src/components/topbar/AccountMenu.vue b/ui/src/components/topbar/AccountMenu.vue deleted file mode 100644 index a22b84f27..000000000 --- a/ui/src/components/topbar/AccountMenu.vue +++ /dev/null @@ -1,39 +0,0 @@ - - - diff --git a/ui/src/components/topbar/Brand.vue b/ui/src/components/topbar/Brand.vue deleted file mode 100644 index 1cc36c8d5..000000000 --- a/ui/src/components/topbar/Brand.vue +++ /dev/null @@ -1,37 +0,0 @@ - - - diff --git a/ui/src/components/topbar/ConnectionPill.vue b/ui/src/components/topbar/ConnectionPill.vue deleted file mode 100644 index c8df9a839..000000000 --- a/ui/src/components/topbar/ConnectionPill.vue +++ /dev/null @@ -1,28 +0,0 @@ - - - diff --git a/ui/src/components/topbar/Logo.vue b/ui/src/components/topbar/Logo.vue deleted file mode 100644 index fe994c4e9..000000000 --- a/ui/src/components/topbar/Logo.vue +++ /dev/null @@ -1,39 +0,0 @@ - - - diff --git a/ui/src/components/topbar/OrgCrumb.vue b/ui/src/components/topbar/OrgCrumb.vue deleted file mode 100644 index 6ddaf88f5..000000000 --- a/ui/src/components/topbar/OrgCrumb.vue +++ /dev/null @@ -1,18 +0,0 @@ - - - diff --git a/ui/src/components/topbar/SectionCrumb.vue b/ui/src/components/topbar/SectionCrumb.vue deleted file mode 100644 index 454d8c893..000000000 --- a/ui/src/components/topbar/SectionCrumb.vue +++ /dev/null @@ -1,64 +0,0 @@ - - - diff --git a/ui/src/components/topbar/hover-open.ts b/ui/src/components/topbar/hover-open.ts deleted file mode 100644 index d1aa235fb..000000000 --- a/ui/src/components/topbar/hover-open.ts +++ /dev/null @@ -1,46 +0,0 @@ -import { onUnmounted, ref } from "vue"; - -/** - * Opens a topbar crumb's menu on hover as well as on click. Closing waits a - * moment so the pointer can cross from the crumb to the menu. While the pointer - * is on the trigger, the menu's own close request is ignored, so a click on a - * crumb the hover already opened does not snap it shut. Use with - * `:modal="false"`: a modal menu blocks the pointer events this relies on. - * Touch and pen pointers are ignored: a tap fires enter and leave around its - * click, and the leave would shut the menu the click just opened. - */ -export function useHoverOpen(closeDelay = 150) { - const open = ref(false); - let overTrigger = false; - let timer: ReturnType | undefined; - - const mouse = (event?: PointerEvent) => !event || event.pointerType === "mouse"; - - function enter(event?: PointerEvent): void { - if (!mouse(event)) return; - clearTimeout(timer); - open.value = true; - } - function leave(event?: PointerEvent): void { - if (!mouse(event)) return; - clearTimeout(timer); - timer = setTimeout(() => (open.value = false), closeDelay); - } - function enterTrigger(event: PointerEvent): void { - if (!mouse(event)) return; - overTrigger = true; - enter(); - } - function leaveTrigger(event: PointerEvent): void { - if (!mouse(event)) return; - overTrigger = false; - leave(); - } - function update(value: boolean): void { - if (!value && overTrigger) return; - open.value = value; - } - onUnmounted(() => clearTimeout(timer)); - - return { open, enter, leave, enterTrigger, leaveTrigger, update }; -} diff --git a/ui/src/components/ui/accordion/Accordion.vue b/ui/src/components/ui/accordion/Accordion.vue deleted file mode 100644 index 757d951f8..000000000 --- a/ui/src/components/ui/accordion/Accordion.vue +++ /dev/null @@ -1,27 +0,0 @@ - - - diff --git a/ui/src/components/ui/accordion/AccordionContent.vue b/ui/src/components/ui/accordion/AccordionContent.vue deleted file mode 100644 index 9383847d2..000000000 --- a/ui/src/components/ui/accordion/AccordionContent.vue +++ /dev/null @@ -1,28 +0,0 @@ - - - diff --git a/ui/src/components/ui/accordion/AccordionItem.vue b/ui/src/components/ui/accordion/AccordionItem.vue deleted file mode 100644 index 31a89dda2..000000000 --- a/ui/src/components/ui/accordion/AccordionItem.vue +++ /dev/null @@ -1,24 +0,0 @@ - - - diff --git a/ui/src/components/ui/accordion/AccordionTrigger.vue b/ui/src/components/ui/accordion/AccordionTrigger.vue deleted file mode 100644 index 8c3d9245e..000000000 --- a/ui/src/components/ui/accordion/AccordionTrigger.vue +++ /dev/null @@ -1,37 +0,0 @@ - - - diff --git a/ui/src/components/ui/accordion/index.ts b/ui/src/components/ui/accordion/index.ts deleted file mode 100644 index 9340ac065..000000000 --- a/ui/src/components/ui/accordion/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -export { default as Accordion } from './Accordion.vue' -export { default as AccordionContent } from './AccordionContent.vue' -export { default as AccordionItem } from './AccordionItem.vue' -export { default as AccordionTrigger } from './AccordionTrigger.vue' diff --git a/ui/src/components/ui/alert-dialog/AlertDialog.vue b/ui/src/components/ui/alert-dialog/AlertDialog.vue deleted file mode 100644 index 3177c8b63..000000000 --- a/ui/src/components/ui/alert-dialog/AlertDialog.vue +++ /dev/null @@ -1,19 +0,0 @@ - - - diff --git a/ui/src/components/ui/alert-dialog/AlertDialogAction.vue b/ui/src/components/ui/alert-dialog/AlertDialogAction.vue deleted file mode 100644 index 262be9dc6..000000000 --- a/ui/src/components/ui/alert-dialog/AlertDialogAction.vue +++ /dev/null @@ -1,35 +0,0 @@ - - - diff --git a/ui/src/components/ui/alert-dialog/AlertDialogCancel.vue b/ui/src/components/ui/alert-dialog/AlertDialogCancel.vue deleted file mode 100644 index 94aa324ab..000000000 --- a/ui/src/components/ui/alert-dialog/AlertDialogCancel.vue +++ /dev/null @@ -1,35 +0,0 @@ - - - diff --git a/ui/src/components/ui/alert-dialog/AlertDialogContent.vue b/ui/src/components/ui/alert-dialog/AlertDialogContent.vue deleted file mode 100644 index 3b03dd6d7..000000000 --- a/ui/src/components/ui/alert-dialog/AlertDialogContent.vue +++ /dev/null @@ -1,55 +0,0 @@ - - - diff --git a/ui/src/components/ui/alert-dialog/AlertDialogDescription.vue b/ui/src/components/ui/alert-dialog/AlertDialogDescription.vue deleted file mode 100644 index 6dcbca3fe..000000000 --- a/ui/src/components/ui/alert-dialog/AlertDialogDescription.vue +++ /dev/null @@ -1,28 +0,0 @@ - - - diff --git a/ui/src/components/ui/alert-dialog/AlertDialogFooter.vue b/ui/src/components/ui/alert-dialog/AlertDialogFooter.vue deleted file mode 100644 index d879f97e7..000000000 --- a/ui/src/components/ui/alert-dialog/AlertDialogFooter.vue +++ /dev/null @@ -1,22 +0,0 @@ - - - diff --git a/ui/src/components/ui/alert-dialog/AlertDialogHeader.vue b/ui/src/components/ui/alert-dialog/AlertDialogHeader.vue deleted file mode 100644 index 3e78aad6f..000000000 --- a/ui/src/components/ui/alert-dialog/AlertDialogHeader.vue +++ /dev/null @@ -1,22 +0,0 @@ - - - diff --git a/ui/src/components/ui/alert-dialog/AlertDialogMedia.vue b/ui/src/components/ui/alert-dialog/AlertDialogMedia.vue deleted file mode 100644 index f570df591..000000000 --- a/ui/src/components/ui/alert-dialog/AlertDialogMedia.vue +++ /dev/null @@ -1,22 +0,0 @@ - - - diff --git a/ui/src/components/ui/alert-dialog/AlertDialogTitle.vue b/ui/src/components/ui/alert-dialog/AlertDialogTitle.vue deleted file mode 100644 index 02f3e4d5a..000000000 --- a/ui/src/components/ui/alert-dialog/AlertDialogTitle.vue +++ /dev/null @@ -1,28 +0,0 @@ - - - diff --git a/ui/src/components/ui/alert-dialog/index.ts b/ui/src/components/ui/alert-dialog/index.ts deleted file mode 100644 index 5ab6bfcea..000000000 --- a/ui/src/components/ui/alert-dialog/index.ts +++ /dev/null @@ -1,9 +0,0 @@ -export { default as AlertDialog } from "./AlertDialog.vue"; -export { default as AlertDialogAction } from "./AlertDialogAction.vue"; -export { default as AlertDialogCancel } from "./AlertDialogCancel.vue"; -export { default as AlertDialogContent } from "./AlertDialogContent.vue"; -export { default as AlertDialogDescription } from "./AlertDialogDescription.vue"; -export { default as AlertDialogFooter } from "./AlertDialogFooter.vue"; -export { default as AlertDialogHeader } from "./AlertDialogHeader.vue"; -export { default as AlertDialogMedia } from "./AlertDialogMedia.vue"; -export { default as AlertDialogTitle } from "./AlertDialogTitle.vue"; diff --git a/ui/src/components/ui/alert/Alert.vue b/ui/src/components/ui/alert/Alert.vue deleted file mode 100644 index 1b985ccf2..000000000 --- a/ui/src/components/ui/alert/Alert.vue +++ /dev/null @@ -1,21 +0,0 @@ - - - diff --git a/ui/src/components/ui/alert/AlertDescription.vue b/ui/src/components/ui/alert/AlertDescription.vue deleted file mode 100644 index f0652a795..000000000 --- a/ui/src/components/ui/alert/AlertDescription.vue +++ /dev/null @@ -1,22 +0,0 @@ - - - diff --git a/ui/src/components/ui/alert/AlertTitle.vue b/ui/src/components/ui/alert/AlertTitle.vue deleted file mode 100644 index 5218436f6..000000000 --- a/ui/src/components/ui/alert/AlertTitle.vue +++ /dev/null @@ -1,22 +0,0 @@ - - - diff --git a/ui/src/components/ui/alert/index.ts b/ui/src/components/ui/alert/index.ts deleted file mode 100644 index 96f7c4f34..000000000 --- a/ui/src/components/ui/alert/index.ts +++ /dev/null @@ -1,25 +0,0 @@ -import type { VariantProps } from "class-variance-authority"; -import { cva } from "class-variance-authority"; - -export { default as Alert } from "./Alert.vue"; -export { default as AlertDescription } from "./AlertDescription.vue"; -export { default as AlertTitle } from "./AlertTitle.vue"; - -export const alertVariants = cva( - "grid gap-0.5 rounded-lg border px-2.5 py-2 text-left text-label has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*=size-])]:size-4 group/alert relative w-full", - { - variants: { - variant: { - default: "border-info/40 bg-info-soft text-foreground *:[svg]:text-info", - destructive: - "border-destructive/40 bg-destructive-soft text-destructive *:data-[slot=alert-description]:text-destructive *:[svg]:text-current", - warn: "border-warn/40 bg-warn-soft *:[svg]:text-warn", - }, - }, - defaultVariants: { - variant: "default", - }, - }, -); - -export type AlertVariants = VariantProps; diff --git a/ui/src/components/ui/avatar/Avatar.vue b/ui/src/components/ui/avatar/Avatar.vue deleted file mode 100644 index 8bf98fbcc..000000000 --- a/ui/src/components/ui/avatar/Avatar.vue +++ /dev/null @@ -1,22 +0,0 @@ - - - diff --git a/ui/src/components/ui/avatar/AvatarFallback.vue b/ui/src/components/ui/avatar/AvatarFallback.vue deleted file mode 100644 index 7dd1f71be..000000000 --- a/ui/src/components/ui/avatar/AvatarFallback.vue +++ /dev/null @@ -1,28 +0,0 @@ - - - diff --git a/ui/src/components/ui/avatar/index.ts b/ui/src/components/ui/avatar/index.ts deleted file mode 100644 index f05ad2848..000000000 --- a/ui/src/components/ui/avatar/index.ts +++ /dev/null @@ -1,23 +0,0 @@ -import type { VariantProps } from "class-variance-authority"; -import { cva } from "class-variance-authority"; - -export { default as Avatar } from "./Avatar.vue"; -export { default as AvatarFallback } from "./AvatarFallback.vue"; - -export const avatarVariants = cva( - "size-8 rounded-full after:rounded-full data-[size=lg]:size-10 data-[size=sm]:size-6 group/avatar relative flex shrink-0 select-none after:absolute after:inset-0 after:border after:border-border after:mix-blend-darken dark:after:mix-blend-lighten", - { - variants: { - size: { - sm: "", - default: "", - lg: "", - }, - }, - defaultVariants: { - size: "default", - }, - }, -); - -export type AvatarVariants = VariantProps; diff --git a/ui/src/components/ui/badge/Badge.vue b/ui/src/components/ui/badge/Badge.vue deleted file mode 100644 index 62ffbe109..000000000 --- a/ui/src/components/ui/badge/Badge.vue +++ /dev/null @@ -1,29 +0,0 @@ - - - diff --git a/ui/src/components/ui/badge/index.ts b/ui/src/components/ui/badge/index.ts deleted file mode 100644 index 752b2e080..000000000 --- a/ui/src/components/ui/badge/index.ts +++ /dev/null @@ -1,39 +0,0 @@ -import type { VariantProps } from "class-variance-authority"; -import { cva } from "class-variance-authority"; - -export { default as Badge } from "./Badge.vue"; - -export const badgeVariants = cva( - "h-5 gap-1 rounded-sm border border-transparent px-2 py-0.5 text-caption font-medium transition-all has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&>svg]:size-3! group/badge inline-flex w-fit shrink-0 items-center justify-center overflow-hidden whitespace-nowrap focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none", - { - variants: { - variant: { - default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80", - secondary: - "bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80", - destructive: - "bg-destructive/10 [a]:hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 text-destructive dark:bg-destructive/20", - outline: - "border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground", - ghost: - "hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50", - link: "text-link underline-offset-4 hover:underline", - // Status. The five semantic kinds the dashboard's pills used, and the - // only place status colour is decided: a task state, a gate result, a - // log level and a trend all draw from the same ramp, so the same - // colour always means the same thing. Soft background over the solid - // tone rather than white text, which would not hold contrast on the - // lighter kinds. - ok: "bg-ok-soft text-ok", - warn: "bg-warn-soft text-warn", - danger: "bg-danger-soft text-danger", - info: "bg-info-soft text-info", - idle: "bg-idle-soft text-idle", - }, - }, - defaultVariants: { - variant: "default", - }, - }, -); -export type BadgeVariants = VariantProps; diff --git a/ui/src/components/ui/breadcrumb/Breadcrumb.vue b/ui/src/components/ui/breadcrumb/Breadcrumb.vue deleted file mode 100644 index a034c1e62..000000000 --- a/ui/src/components/ui/breadcrumb/Breadcrumb.vue +++ /dev/null @@ -1,18 +0,0 @@ - - - diff --git a/ui/src/components/ui/breadcrumb/BreadcrumbItem.vue b/ui/src/components/ui/breadcrumb/BreadcrumbItem.vue deleted file mode 100644 index 25e8305ec..000000000 --- a/ui/src/components/ui/breadcrumb/BreadcrumbItem.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - diff --git a/ui/src/components/ui/breadcrumb/BreadcrumbLink.vue b/ui/src/components/ui/breadcrumb/BreadcrumbLink.vue deleted file mode 100644 index f399e1268..000000000 --- a/ui/src/components/ui/breadcrumb/BreadcrumbLink.vue +++ /dev/null @@ -1,21 +0,0 @@ - - - diff --git a/ui/src/components/ui/breadcrumb/BreadcrumbList.vue b/ui/src/components/ui/breadcrumb/BreadcrumbList.vue deleted file mode 100644 index f1b576647..000000000 --- a/ui/src/components/ui/breadcrumb/BreadcrumbList.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - diff --git a/ui/src/components/ui/breadcrumb/BreadcrumbPage.vue b/ui/src/components/ui/breadcrumb/BreadcrumbPage.vue deleted file mode 100644 index cc667bc5d..000000000 --- a/ui/src/components/ui/breadcrumb/BreadcrumbPage.vue +++ /dev/null @@ -1,20 +0,0 @@ - - - diff --git a/ui/src/components/ui/breadcrumb/BreadcrumbSeparator.vue b/ui/src/components/ui/breadcrumb/BreadcrumbSeparator.vue deleted file mode 100644 index 934aa1689..000000000 --- a/ui/src/components/ui/breadcrumb/BreadcrumbSeparator.vue +++ /dev/null @@ -1,23 +0,0 @@ - - - diff --git a/ui/src/components/ui/breadcrumb/index.ts b/ui/src/components/ui/breadcrumb/index.ts deleted file mode 100644 index e85a51d46..000000000 --- a/ui/src/components/ui/breadcrumb/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -export { default as Breadcrumb } from './Breadcrumb.vue' - -export { default as BreadcrumbItem } from './BreadcrumbItem.vue' -export { default as BreadcrumbLink } from './BreadcrumbLink.vue' -export { default as BreadcrumbList } from './BreadcrumbList.vue' -export { default as BreadcrumbPage } from './BreadcrumbPage.vue' -export { default as BreadcrumbSeparator } from './BreadcrumbSeparator.vue' diff --git a/ui/src/components/ui/bubble/Bubble.vue b/ui/src/components/ui/bubble/Bubble.vue deleted file mode 100644 index 017c29671..000000000 --- a/ui/src/components/ui/bubble/Bubble.vue +++ /dev/null @@ -1,33 +0,0 @@ - - - diff --git a/ui/src/components/ui/bubble/BubbleContent.vue b/ui/src/components/ui/bubble/BubbleContent.vue deleted file mode 100644 index feaf6555a..000000000 --- a/ui/src/components/ui/bubble/BubbleContent.vue +++ /dev/null @@ -1,28 +0,0 @@ - - - diff --git a/ui/src/components/ui/bubble/index.ts b/ui/src/components/ui/bubble/index.ts deleted file mode 100644 index 56db849d6..000000000 --- a/ui/src/components/ui/bubble/index.ts +++ /dev/null @@ -1,26 +0,0 @@ -import type { VariantProps } from 'class-variance-authority' -import { cva } from 'class-variance-authority' - -export { default as Bubble } from './Bubble.vue' -export { default as BubbleContent } from './BubbleContent.vue' - -export const bubbleVariants = cva( - 'gap-1 data-[align=end]:self-end max-w-[80%] data-[variant=ghost]:max-w-full group-data-[align=end]/message:self-end group/bubble relative flex w-fit min-w-0 flex-col', - { - variants: { - variant: { - default: '*:data-[slot=bubble-content]:bg-primary *:data-[slot=bubble-content]:text-primary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-primary/80', - secondary: '*:data-[slot=bubble-content]:bg-secondary *:data-[slot=bubble-content]:text-secondary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)]', - muted: '*:data-[slot=bubble-content]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--muted),var(--foreground)_5%)]', - tinted: '*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.93_calc(c*0.4)_h)] dark:*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.3_calc(c*0.4)_h)] *:data-[slot=bubble-content]:text-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.88_calc(c*0.5)_h)] dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.35_calc(c*0.5)_h)]', - outline: '*:data-[slot=bubble-content]:bg-background *:data-[slot=bubble-content]:border-border [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-input/30', - ghost: '*:data-[slot=bubble-content]:rounded-none *:data-[slot=bubble-content]:bg-transparent *:data-[slot=bubble-content]:p-0 [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted/50 border-none', - destructive: '*:data-[slot=bubble-content]:bg-destructive/10 dark:*:data-[slot=bubble-content]:bg-destructive/20 *:data-[slot=bubble-content]:text-destructive [&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/20 dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/30', - }, - }, - defaultVariants: { - variant: 'default', - }, - }, -) -export type BubbleVariants = VariantProps diff --git a/ui/src/components/ui/button/Button.vue b/ui/src/components/ui/button/Button.vue deleted file mode 100644 index 4a9a8af6c..000000000 --- a/ui/src/components/ui/button/Button.vue +++ /dev/null @@ -1,31 +0,0 @@ - - - diff --git a/ui/src/components/ui/button/index.ts b/ui/src/components/ui/button/index.ts deleted file mode 100644 index 46f2da802..000000000 --- a/ui/src/components/ui/button/index.ts +++ /dev/null @@ -1,47 +0,0 @@ -import type { VariantProps } from "class-variance-authority"; -import { cva } from "class-variance-authority"; - -export { default as Button } from "./Button.vue"; - -export const buttonVariants = cva( - "focus-visible:border-ring focus-visible:ring-ring aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-lg border border-transparent bg-clip-padding text-label font-medium focus-visible:ring-3 aria-invalid:ring-3 active:not-aria-[haspopup]:translate-y-px [&_svg:not([class*=size-])]:size-4 group/button inline-flex shrink-0 items-center justify-center whitespace-nowrap transition-all outline-none select-none disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", - { - variants: { - variant: { - default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80", - outline: - "border-border-strong bg-background hover:bg-muted hover:text-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 aria-expanded:bg-muted aria-expanded:text-foreground", - secondary: - "border-border-strong bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground", - ghost: - "hover:bg-muted hover:text-foreground dark:hover:bg-muted/50 aria-expanded:bg-muted aria-expanded:text-foreground", - destructive: - "bg-destructive/10 hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/20 text-destructive focus-visible:border-destructive/40 dark:hover:bg-destructive/30", - link: "text-link underline-offset-4 hover:underline", - // An action that exists because something needs attention has to look - // unlike one that is always present. `destructive` would overstate it: - // nothing is broken, it is waiting. - attention: - "border-warn bg-warn-soft font-medium text-warn hover:bg-warn-soft/80", - }, - size: { - default: - "h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2", - xs: "h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-caption in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*=size-])]:size-3", - sm: "h-8 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-label in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*=size-])]:size-3.5", - lg: "h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2", - icon: "size-9", - "icon-xs": - "size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*=size-])]:size-3", - "icon-sm": - "size-8 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg", - "icon-lg": "size-10", - }, - }, - defaultVariants: { - variant: "default", - size: "default", - }, - }, -); -export type ButtonVariants = VariantProps; diff --git a/ui/src/components/ui/byte-size-input/ByteSizeInput.vue b/ui/src/components/ui/byte-size-input/ByteSizeInput.vue deleted file mode 100644 index 416522b7a..000000000 --- a/ui/src/components/ui/byte-size-input/ByteSizeInput.vue +++ /dev/null @@ -1,40 +0,0 @@ - - - diff --git a/ui/src/components/ui/byte-size-input/bytes.ts b/ui/src/components/ui/byte-size-input/bytes.ts deleted file mode 100644 index 093181c5b..000000000 --- a/ui/src/components/ui/byte-size-input/bytes.ts +++ /dev/null @@ -1,9 +0,0 @@ -const BYTES_PER_MB = 1_000_000; - -export function bytesToMB(bytes: number): number { - return Number((bytes / BYTES_PER_MB).toFixed(6)); -} - -export function mbToBytes(mb: number): number { - return Math.round(mb * BYTES_PER_MB); -} diff --git a/ui/src/components/ui/byte-size-input/index.ts b/ui/src/components/ui/byte-size-input/index.ts deleted file mode 100644 index 9087f4dc2..000000000 --- a/ui/src/components/ui/byte-size-input/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { default as ByteSizeInput } from "./ByteSizeInput.vue"; -export * from "./bytes"; diff --git a/ui/src/components/ui/card/Card.vue b/ui/src/components/ui/card/Card.vue deleted file mode 100644 index f0451ff78..000000000 --- a/ui/src/components/ui/card/Card.vue +++ /dev/null @@ -1,29 +0,0 @@ - - - diff --git a/ui/src/components/ui/card/CardAction.vue b/ui/src/components/ui/card/CardAction.vue deleted file mode 100644 index 63585df4c..000000000 --- a/ui/src/components/ui/card/CardAction.vue +++ /dev/null @@ -1,22 +0,0 @@ - - - diff --git a/ui/src/components/ui/card/CardContent.vue b/ui/src/components/ui/card/CardContent.vue deleted file mode 100644 index c229c062c..000000000 --- a/ui/src/components/ui/card/CardContent.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - diff --git a/ui/src/components/ui/card/CardDescription.vue b/ui/src/components/ui/card/CardDescription.vue deleted file mode 100644 index 42fa13edd..000000000 --- a/ui/src/components/ui/card/CardDescription.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - diff --git a/ui/src/components/ui/card/CardHeader.vue b/ui/src/components/ui/card/CardHeader.vue deleted file mode 100644 index 2a9461ae3..000000000 --- a/ui/src/components/ui/card/CardHeader.vue +++ /dev/null @@ -1,22 +0,0 @@ - - - diff --git a/ui/src/components/ui/card/CardTitle.vue b/ui/src/components/ui/card/CardTitle.vue deleted file mode 100644 index cc62fbc17..000000000 --- a/ui/src/components/ui/card/CardTitle.vue +++ /dev/null @@ -1,28 +0,0 @@ - - - diff --git a/ui/src/components/ui/card/index.ts b/ui/src/components/ui/card/index.ts deleted file mode 100644 index 43d799d8b..000000000 --- a/ui/src/components/ui/card/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -export { default as Card } from "./Card.vue"; -export { default as CardAction } from "./CardAction.vue"; -export { default as CardContent } from "./CardContent.vue"; -export { default as CardDescription } from "./CardDescription.vue"; -export { default as CardHeader } from "./CardHeader.vue"; -export { default as CardTitle } from "./CardTitle.vue"; diff --git a/ui/src/components/ui/checkbox/Checkbox.vue b/ui/src/components/ui/checkbox/Checkbox.vue deleted file mode 100644 index 1928ea59d..000000000 --- a/ui/src/components/ui/checkbox/Checkbox.vue +++ /dev/null @@ -1,41 +0,0 @@ - - - diff --git a/ui/src/components/ui/checkbox/index.ts b/ui/src/components/ui/checkbox/index.ts deleted file mode 100644 index 75be342b8..000000000 --- a/ui/src/components/ui/checkbox/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as Checkbox } from "./Checkbox.vue"; diff --git a/ui/src/components/ui/code-block/CodeBlock.vue b/ui/src/components/ui/code-block/CodeBlock.vue deleted file mode 100644 index e1d3a0f8d..000000000 --- a/ui/src/components/ui/code-block/CodeBlock.vue +++ /dev/null @@ -1,26 +0,0 @@ - - - diff --git a/ui/src/components/ui/code-block/CodeBlockActions.vue b/ui/src/components/ui/code-block/CodeBlockActions.vue deleted file mode 100644 index 8fc19afbe..000000000 --- a/ui/src/components/ui/code-block/CodeBlockActions.vue +++ /dev/null @@ -1,20 +0,0 @@ - - - diff --git a/ui/src/components/ui/code-block/CodeBlockContent.vue b/ui/src/components/ui/code-block/CodeBlockContent.vue deleted file mode 100644 index d0ecd2f7e..000000000 --- a/ui/src/components/ui/code-block/CodeBlockContent.vue +++ /dev/null @@ -1,80 +0,0 @@ - - - diff --git a/ui/src/components/ui/code-block/CodeBlockCopyButton.vue b/ui/src/components/ui/code-block/CodeBlockCopyButton.vue deleted file mode 100644 index 288c34d3c..000000000 --- a/ui/src/components/ui/code-block/CodeBlockCopyButton.vue +++ /dev/null @@ -1,44 +0,0 @@ - - - diff --git a/ui/src/components/ui/code-block/CodeBlockLine.vue b/ui/src/components/ui/code-block/CodeBlockLine.vue deleted file mode 100644 index ade9531a7..000000000 --- a/ui/src/components/ui/code-block/CodeBlockLine.vue +++ /dev/null @@ -1,41 +0,0 @@ - - - diff --git a/ui/src/components/ui/code-block/CodeBlockToken.vue b/ui/src/components/ui/code-block/CodeBlockToken.vue deleted file mode 100644 index 211bb5b02..000000000 --- a/ui/src/components/ui/code-block/CodeBlockToken.vue +++ /dev/null @@ -1,11 +0,0 @@ - - - diff --git a/ui/src/components/ui/code-block/highlighter.ts b/ui/src/components/ui/code-block/highlighter.ts deleted file mode 100644 index b52177b38..000000000 --- a/ui/src/components/ui/code-block/highlighter.ts +++ /dev/null @@ -1,110 +0,0 @@ -import type { GrammarState, HighlighterCore } from 'shiki/core' -import { createHighlighterCore } from 'shiki/core' -import { createJavaScriptRegexEngine } from 'shiki/engine/javascript' - -export interface HighlightedToken { - content: string - htmlStyle?: Record -} - -// Add the languages you need. Each one loads the first time it is used. -const languages = { - bash: () => import('shiki/langs/shellscript.mjs'), - css: () => import('shiki/langs/css.mjs'), - diff: () => import('shiki/langs/diff.mjs'), - go: () => import('shiki/langs/go.mjs'), - html: () => import('shiki/langs/html.mjs'), - javascript: () => import('shiki/langs/javascript.mjs'), - json: () => import('shiki/langs/json.mjs'), - markdown: () => import('shiki/langs/markdown.mjs'), - python: () => import('shiki/langs/python.mjs'), - sql: () => import('shiki/langs/sql.mjs'), - toml: () => import('shiki/langs/toml.mjs'), - typescript: () => import('shiki/langs/typescript.mjs'), - yaml: () => import('shiki/langs/yaml.mjs'), -} - -const aliases: Record = { - js: 'javascript', - md: 'markdown', - py: 'python', - sh: 'bash', - shell: 'bash', - shellscript: 'bash', - ts: 'typescript', - yml: 'yaml', - zsh: 'bash', -} - -let highlighter: Promise | undefined - -function getHighlighter() { - highlighter ??= createHighlighterCore({ - themes: [ - import('shiki/themes/github-light-high-contrast.mjs'), - import('shiki/themes/github-dark.mjs'), - ], - langs: [], - engine: createJavaScriptRegexEngine({ forgiving: true }), - }) - - return highlighter -} - -function getLanguage(language: string) { - const name = language.toLowerCase() - - if (name === 'ansi') - return name - - if (name in languages) - return name as keyof typeof languages - - return aliases[name] ?? null -} - -// Loads a language and returns a highlighter for it, or null for a language -// that is not listed. -export async function loadHighlighter(language: string) { - const lang = getLanguage(language) - - if (!lang) - return null - - const shiki = await getHighlighter() - - if (lang !== 'ansi' && !shiki.getLoadedLanguages().includes(lang)) - await shiki.loadLanguage(languages[lang]) - - return { - // Returns the tokens of each line, and the grammar state after the last - // line. Pass that state back to continue where the code left off. - highlight(code: string, state?: GrammarState) { - const tokenize = (text: string) => - shiki.codeToTokens(text, { - lang, - themes: { light: 'github-light-high-contrast', dark: 'github-dark' }, - defaultColor: false, - grammarState: state, - }).tokens - - // ANSI has no grammar state, so each line is tokenized on its own and - // gets the same colors whether it arrives in one piece or streams. - const tokens = lang === 'ansi' - ? code.split('\n').flatMap(line => tokenize(line)) - : tokenize(code) - - return { - lines: tokens.map(line => - line.map((token): HighlightedToken => ({ - content: token.content, - htmlStyle: token.htmlStyle as Record | undefined, - })), - ), - state: shiki.getLastGrammarState(tokens), - } - }, - } -} - -export type Highlighter = NonNullable>> diff --git a/ui/src/components/ui/code-block/index.ts b/ui/src/components/ui/code-block/index.ts deleted file mode 100644 index 9fc41599a..000000000 --- a/ui/src/components/ui/code-block/index.ts +++ /dev/null @@ -1,47 +0,0 @@ -import type { VariantProps } from 'class-variance-authority' -import { cva } from 'class-variance-authority' - -export { default as CodeBlock } from './CodeBlock.vue' -export { default as CodeBlockActions } from './CodeBlockActions.vue' -export { default as CodeBlockContent } from './CodeBlockContent.vue' -export { default as CodeBlockCopyButton } from './CodeBlockCopyButton.vue' - -export { default as CodeBlockLine } from './CodeBlockLine.vue' - -export { default as CodeBlockToken } from './CodeBlockToken.vue' - -export { useHighlightedCode } from './useHighlightedCode' - -export const codeBlockVariants = cva( - 'rounded-lg text-label data-[size=sm]:text-caption has-[>[data-slot=code-block-content]:focus-visible]:ring-3 has-[>[data-slot=code-block-content]:focus-visible]:ring-ring group/code-block relative flex w-full min-w-0 flex-col overflow-hidden', - { - variants: { - variant: { - default: 'border border-input text-foreground dark:bg-input/30 has-[>[data-slot=code-block-content]:focus-visible]:border-ring', - destructive: 'border border-destructive/30 text-destructive dark:border-destructive/40', - }, - }, - defaultVariants: { - variant: 'default', - }, - }, -) -export type CodeBlockVariants = VariantProps - -export const codeBlockLineVariants = cva( - '-mx-3 px-3 in-data-numbered:gap-x-3 before:min-w-6 before:text-end before:text-muted-foreground after:start-1 after:text-muted-foreground group-data-[size=sm]/code-block:-mx-2.5 group-data-[size=sm]/code-block:px-2.5 relative block min-h-lh after:absolute after:top-0 after:select-none in-data-numbered:col-span-2 in-data-numbered:grid in-data-numbered:grid-cols-subgrid in-data-numbered:[counter-increment:line] in-data-numbered:before:content-[counter(line)] in-data-numbered:before:select-none in-data-numbered:supports-[content:counter(line)_/_\'\']:before:content-[counter(line)_/_\'\']', - { - variants: { - variant: { - default: '', - added: 'bg-muted after:content-[\'+\']', - removed: 'bg-destructive/10 after:text-destructive after:content-[\'−\']', - highlighted: 'bg-muted', - }, - }, - defaultVariants: { - variant: 'default', - }, - }, -) -export type CodeBlockLineVariants = VariantProps diff --git a/ui/src/components/ui/code-block/useHighlightedCode.ts b/ui/src/components/ui/code-block/useHighlightedCode.ts deleted file mode 100644 index f58513437..000000000 --- a/ui/src/components/ui/code-block/useHighlightedCode.ts +++ /dev/null @@ -1,72 +0,0 @@ -import type { GrammarState } from 'shiki/core' -import type { MaybeRefOrGetter } from 'vue' -import type { HighlightedToken, Highlighter } from './highlighter' -import { computed, shallowRef, toValue, watch } from 'vue' -import { loadHighlighter } from './highlighter' - -export function useHighlightedCode( - value: MaybeRefOrGetter, - language: MaybeRefOrGetter, -) { - const highlighter = shallowRef(null) - - watch(() => toValue(language), (lang, _, onCleanup) => { - // Highlighting runs in the browser. The server renders the plain lines. - if (typeof window === 'undefined') - return - - let cancelled = false - onCleanup(() => (cancelled = true)) - highlighter.value = null - - loadHighlighter(lang) - .then((next) => { - if (!cancelled) - highlighter.value = next - }) - .catch(() => {}) - }, { immediate: true }) - - // The complete lines, highlighted. While the code streams, only the new - // lines are tokenized, starting from the grammar state of the last one. - let done: { - highlighter: Highlighter | null - text: string - lines: HighlightedToken[][] - state?: GrammarState - } = { highlighter: null, text: '', lines: [] } - - return computed(() => { - const raw = toValue(value) - // A trailing newline would render as an extra empty line. - const code = raw.endsWith('\n') ? raw.slice(0, -1) : raw - const current = highlighter.value - - if (!current) - return code.split('\n').map(line => (line ? [{ content: line }] : [])) - - if (done.highlighter !== current || !code.startsWith(done.text)) - done = { highlighter: current, text: '', lines: [] } - - const end = code.lastIndexOf('\n') + 1 - - if (end > done.text.length) { - const result = current.highlight( - code.slice(done.text.length, end - 1), - done.state, - ) - - done = { - highlighter: current, - text: code.slice(0, end), - lines: [...done.lines, ...result.lines], - state: result.state, - } - } - - // The last line is still being written, so it is tokenized on every change. - const tail = current.highlight(code.slice(end), done.state).lines[0] ?? [] - - return [...done.lines, tail] - }) -} diff --git a/ui/src/components/ui/collapsible/Collapsible.vue b/ui/src/components/ui/collapsible/Collapsible.vue deleted file mode 100644 index fc726dfe6..000000000 --- a/ui/src/components/ui/collapsible/Collapsible.vue +++ /dev/null @@ -1,19 +0,0 @@ - - - diff --git a/ui/src/components/ui/collapsible/CollapsibleContent.vue b/ui/src/components/ui/collapsible/CollapsibleContent.vue deleted file mode 100644 index 918f8b5b9..000000000 --- a/ui/src/components/ui/collapsible/CollapsibleContent.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - diff --git a/ui/src/components/ui/collapsible/CollapsibleTrigger.vue b/ui/src/components/ui/collapsible/CollapsibleTrigger.vue deleted file mode 100644 index ca6b60c89..000000000 --- a/ui/src/components/ui/collapsible/CollapsibleTrigger.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - diff --git a/ui/src/components/ui/collapsible/index.ts b/ui/src/components/ui/collapsible/index.ts deleted file mode 100644 index abab9567d..000000000 --- a/ui/src/components/ui/collapsible/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export { default as Collapsible } from './Collapsible.vue' -export { default as CollapsibleContent } from './CollapsibleContent.vue' -export { default as CollapsibleTrigger } from './CollapsibleTrigger.vue' diff --git a/ui/src/components/ui/command/Command.vue b/ui/src/components/ui/command/Command.vue deleted file mode 100644 index 4e6a5e8b7..000000000 --- a/ui/src/components/ui/command/Command.vue +++ /dev/null @@ -1,88 +0,0 @@ - - - diff --git a/ui/src/components/ui/command/CommandDialog.vue b/ui/src/components/ui/command/CommandDialog.vue deleted file mode 100644 index 48054ff2f..000000000 --- a/ui/src/components/ui/command/CommandDialog.vue +++ /dev/null @@ -1,40 +0,0 @@ - - - diff --git a/ui/src/components/ui/command/CommandEmpty.vue b/ui/src/components/ui/command/CommandEmpty.vue deleted file mode 100644 index e9677de2c..000000000 --- a/ui/src/components/ui/command/CommandEmpty.vue +++ /dev/null @@ -1,28 +0,0 @@ - - - diff --git a/ui/src/components/ui/command/CommandGroup.vue b/ui/src/components/ui/command/CommandGroup.vue deleted file mode 100644 index f1d0d4161..000000000 --- a/ui/src/components/ui/command/CommandGroup.vue +++ /dev/null @@ -1,45 +0,0 @@ - - - diff --git a/ui/src/components/ui/command/CommandInput.vue b/ui/src/components/ui/command/CommandInput.vue deleted file mode 100644 index 8a24830fa..000000000 --- a/ui/src/components/ui/command/CommandInput.vue +++ /dev/null @@ -1,46 +0,0 @@ - - - diff --git a/ui/src/components/ui/command/CommandItem.vue b/ui/src/components/ui/command/CommandItem.vue deleted file mode 100644 index 780b11d17..000000000 --- a/ui/src/components/ui/command/CommandItem.vue +++ /dev/null @@ -1,79 +0,0 @@ - - - diff --git a/ui/src/components/ui/command/CommandList.vue b/ui/src/components/ui/command/CommandList.vue deleted file mode 100644 index 90b1dd359..000000000 --- a/ui/src/components/ui/command/CommandList.vue +++ /dev/null @@ -1,25 +0,0 @@ - - - diff --git a/ui/src/components/ui/command/index.ts b/ui/src/components/ui/command/index.ts deleted file mode 100644 index bf0f68459..000000000 --- a/ui/src/components/ui/command/index.ts +++ /dev/null @@ -1,23 +0,0 @@ -import type { Ref } from 'vue' -import { createContext } from 'reka-ui' - -export { default as Command } from './Command.vue' -export { default as CommandDialog } from './CommandDialog.vue' -export { default as CommandEmpty } from './CommandEmpty.vue' -export { default as CommandGroup } from './CommandGroup.vue' -export { default as CommandInput } from './CommandInput.vue' -export { default as CommandItem } from './CommandItem.vue' -export { default as CommandList } from './CommandList.vue' - -export const [useCommand, provideCommandContext] = createContext<{ - allItems: Ref> - allGroups: Ref>> - filterState: { - search: string - filtered: { count: number, items: Map, groups: Set } - } -}>('Command') - -export const [useCommandGroup, provideCommandGroupContext] = createContext<{ - id?: string -}>('CommandGroup') diff --git a/ui/src/components/ui/context-menu/ContextMenu.vue b/ui/src/components/ui/context-menu/ContextMenu.vue deleted file mode 100644 index 0692a9833..000000000 --- a/ui/src/components/ui/context-menu/ContextMenu.vue +++ /dev/null @@ -1,18 +0,0 @@ - - - diff --git a/ui/src/components/ui/context-menu/ContextMenuContent.vue b/ui/src/components/ui/context-menu/ContextMenuContent.vue deleted file mode 100644 index 6cd9b87a0..000000000 --- a/ui/src/components/ui/context-menu/ContextMenuContent.vue +++ /dev/null @@ -1,37 +0,0 @@ - - - diff --git a/ui/src/components/ui/context-menu/ContextMenuItem.vue b/ui/src/components/ui/context-menu/ContextMenuItem.vue deleted file mode 100644 index fac24458d..000000000 --- a/ui/src/components/ui/context-menu/ContextMenuItem.vue +++ /dev/null @@ -1,38 +0,0 @@ - - - diff --git a/ui/src/components/ui/context-menu/ContextMenuTrigger.vue b/ui/src/components/ui/context-menu/ContextMenuTrigger.vue deleted file mode 100644 index 3c04ccf3c..000000000 --- a/ui/src/components/ui/context-menu/ContextMenuTrigger.vue +++ /dev/null @@ -1,22 +0,0 @@ - - - diff --git a/ui/src/components/ui/context-menu/index.ts b/ui/src/components/ui/context-menu/index.ts deleted file mode 100644 index 8e8d5e322..000000000 --- a/ui/src/components/ui/context-menu/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -export { default as ContextMenu } from './ContextMenu.vue' - -export { default as ContextMenuContent } from './ContextMenuContent.vue' - -export { default as ContextMenuItem } from './ContextMenuItem.vue' - -export { default as ContextMenuTrigger } from './ContextMenuTrigger.vue' diff --git a/ui/src/components/ui/data-table/DataTable.vue b/ui/src/components/ui/data-table/DataTable.vue deleted file mode 100644 index 46d7b6e41..000000000 --- a/ui/src/components/ui/data-table/DataTable.vue +++ /dev/null @@ -1,193 +0,0 @@ - - - diff --git a/ui/src/components/ui/data-table/index.ts b/ui/src/components/ui/data-table/index.ts deleted file mode 100644 index eb9b5bdd0..000000000 --- a/ui/src/components/ui/data-table/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { default as DataTable } from "./DataTable.vue"; -export type { DataTableColumn } from "./types"; diff --git a/ui/src/components/ui/data-table/types.ts b/ui/src/components/ui/data-table/types.ts deleted file mode 100644 index d7011cac2..000000000 --- a/ui/src/components/ui/data-table/types.ts +++ /dev/null @@ -1,17 +0,0 @@ -export interface DataTableColumn { - id: string; - label: string; - /** Always shown and not offered in the column picker. */ - fixed?: boolean; - /** Hidden until the operator turns it on. */ - hidden?: boolean; - /** A CSS length, or "auto" for the column that takes the space the others - * leave. The table lays columns out at fixed widths: a column without one - * is 10rem wide, and the first column grows unless another is "auto". */ - width?: string; - /** Hides the column, header and cells, below this breakpoint. */ - hide?: "sm" | "md"; - class?: string; - /** Makes the header sort the loaded rows by this value. */ - sort?: (row: Row) => string | number; -} diff --git a/ui/src/components/ui/dialog/Dialog.vue b/ui/src/components/ui/dialog/Dialog.vue deleted file mode 100644 index add079844..000000000 --- a/ui/src/components/ui/dialog/Dialog.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - diff --git a/ui/src/components/ui/dialog/DialogContent.vue b/ui/src/components/ui/dialog/DialogContent.vue deleted file mode 100644 index a580c5aa9..000000000 --- a/ui/src/components/ui/dialog/DialogContent.vue +++ /dev/null @@ -1,62 +0,0 @@ - - - diff --git a/ui/src/components/ui/dialog/DialogDescription.vue b/ui/src/components/ui/dialog/DialogDescription.vue deleted file mode 100644 index 247b6c22a..000000000 --- a/ui/src/components/ui/dialog/DialogDescription.vue +++ /dev/null @@ -1,30 +0,0 @@ - - - diff --git a/ui/src/components/ui/dialog/DialogFooter.vue b/ui/src/components/ui/dialog/DialogFooter.vue deleted file mode 100644 index 6101a5b54..000000000 --- a/ui/src/components/ui/dialog/DialogFooter.vue +++ /dev/null @@ -1,33 +0,0 @@ - - - diff --git a/ui/src/components/ui/dialog/DialogHeader.vue b/ui/src/components/ui/dialog/DialogHeader.vue deleted file mode 100644 index 39de37d6b..000000000 --- a/ui/src/components/ui/dialog/DialogHeader.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - diff --git a/ui/src/components/ui/dialog/DialogOverlay.vue b/ui/src/components/ui/dialog/DialogOverlay.vue deleted file mode 100644 index 45bbe3e0c..000000000 --- a/ui/src/components/ui/dialog/DialogOverlay.vue +++ /dev/null @@ -1,28 +0,0 @@ - - - diff --git a/ui/src/components/ui/dialog/DialogTitle.vue b/ui/src/components/ui/dialog/DialogTitle.vue deleted file mode 100644 index 4561c143b..000000000 --- a/ui/src/components/ui/dialog/DialogTitle.vue +++ /dev/null @@ -1,27 +0,0 @@ - - - diff --git a/ui/src/components/ui/dialog/DialogTrigger.vue b/ui/src/components/ui/dialog/DialogTrigger.vue deleted file mode 100644 index 24dbf1b3b..000000000 --- a/ui/src/components/ui/dialog/DialogTrigger.vue +++ /dev/null @@ -1,12 +0,0 @@ - - - diff --git a/ui/src/components/ui/dialog/index.ts b/ui/src/components/ui/dialog/index.ts deleted file mode 100644 index 3b798c803..000000000 --- a/ui/src/components/ui/dialog/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -export { default as Dialog } from "./Dialog.vue"; -export { default as DialogContent } from "./DialogContent.vue"; -export { default as DialogDescription } from "./DialogDescription.vue"; -export { default as DialogFooter } from "./DialogFooter.vue"; -export { default as DialogHeader } from "./DialogHeader.vue"; -export { default as DialogTitle } from "./DialogTitle.vue"; -export { default as DialogTrigger } from "./DialogTrigger.vue"; diff --git a/ui/src/components/ui/dropdown-menu/DropdownMenu.vue b/ui/src/components/ui/dropdown-menu/DropdownMenu.vue deleted file mode 100644 index 887956d6f..000000000 --- a/ui/src/components/ui/dropdown-menu/DropdownMenu.vue +++ /dev/null @@ -1,21 +0,0 @@ - - - diff --git a/ui/src/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue b/ui/src/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue deleted file mode 100644 index fea4b8f28..000000000 --- a/ui/src/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue +++ /dev/null @@ -1,50 +0,0 @@ - - - diff --git a/ui/src/components/ui/dropdown-menu/DropdownMenuContent.vue b/ui/src/components/ui/dropdown-menu/DropdownMenuContent.vue deleted file mode 100644 index 1b84e85ce..000000000 --- a/ui/src/components/ui/dropdown-menu/DropdownMenuContent.vue +++ /dev/null @@ -1,48 +0,0 @@ - - - diff --git a/ui/src/components/ui/dropdown-menu/DropdownMenuGroup.vue b/ui/src/components/ui/dropdown-menu/DropdownMenuGroup.vue deleted file mode 100644 index d22b02475..000000000 --- a/ui/src/components/ui/dropdown-menu/DropdownMenuGroup.vue +++ /dev/null @@ -1,12 +0,0 @@ - - - diff --git a/ui/src/components/ui/dropdown-menu/DropdownMenuItem.vue b/ui/src/components/ui/dropdown-menu/DropdownMenuItem.vue deleted file mode 100644 index f88125a88..000000000 --- a/ui/src/components/ui/dropdown-menu/DropdownMenuItem.vue +++ /dev/null @@ -1,41 +0,0 @@ - - - diff --git a/ui/src/components/ui/dropdown-menu/DropdownMenuLabel.vue b/ui/src/components/ui/dropdown-menu/DropdownMenuLabel.vue deleted file mode 100644 index e70996943..000000000 --- a/ui/src/components/ui/dropdown-menu/DropdownMenuLabel.vue +++ /dev/null @@ -1,30 +0,0 @@ - - - diff --git a/ui/src/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue b/ui/src/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue deleted file mode 100644 index eb8f848e8..000000000 --- a/ui/src/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue +++ /dev/null @@ -1,21 +0,0 @@ - - - diff --git a/ui/src/components/ui/dropdown-menu/DropdownMenuRadioItem.vue b/ui/src/components/ui/dropdown-menu/DropdownMenuRadioItem.vue deleted file mode 100644 index af183c1d4..000000000 --- a/ui/src/components/ui/dropdown-menu/DropdownMenuRadioItem.vue +++ /dev/null @@ -1,51 +0,0 @@ - - - diff --git a/ui/src/components/ui/dropdown-menu/DropdownMenuSeparator.vue b/ui/src/components/ui/dropdown-menu/DropdownMenuSeparator.vue deleted file mode 100644 index 6f3568af8..000000000 --- a/ui/src/components/ui/dropdown-menu/DropdownMenuSeparator.vue +++ /dev/null @@ -1,23 +0,0 @@ - - - diff --git a/ui/src/components/ui/dropdown-menu/DropdownMenuSub.vue b/ui/src/components/ui/dropdown-menu/DropdownMenuSub.vue deleted file mode 100644 index fba0ca599..000000000 --- a/ui/src/components/ui/dropdown-menu/DropdownMenuSub.vue +++ /dev/null @@ -1,19 +0,0 @@ - - - diff --git a/ui/src/components/ui/dropdown-menu/DropdownMenuSubContent.vue b/ui/src/components/ui/dropdown-menu/DropdownMenuSubContent.vue deleted file mode 100644 index 46e6c098f..000000000 --- a/ui/src/components/ui/dropdown-menu/DropdownMenuSubContent.vue +++ /dev/null @@ -1,34 +0,0 @@ - - - diff --git a/ui/src/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue b/ui/src/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue deleted file mode 100644 index e07398621..000000000 --- a/ui/src/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue +++ /dev/null @@ -1,36 +0,0 @@ - - - diff --git a/ui/src/components/ui/dropdown-menu/DropdownMenuTrigger.vue b/ui/src/components/ui/dropdown-menu/DropdownMenuTrigger.vue deleted file mode 100644 index 53b4bd916..000000000 --- a/ui/src/components/ui/dropdown-menu/DropdownMenuTrigger.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - diff --git a/ui/src/components/ui/dropdown-menu/index.ts b/ui/src/components/ui/dropdown-menu/index.ts deleted file mode 100644 index f93160d02..000000000 --- a/ui/src/components/ui/dropdown-menu/index.ts +++ /dev/null @@ -1,14 +0,0 @@ -export { default as DropdownMenu } from "./DropdownMenu.vue"; - -export { default as DropdownMenuCheckboxItem } from "./DropdownMenuCheckboxItem.vue"; -export { default as DropdownMenuContent } from "./DropdownMenuContent.vue"; -export { default as DropdownMenuGroup } from "./DropdownMenuGroup.vue"; -export { default as DropdownMenuItem } from "./DropdownMenuItem.vue"; -export { default as DropdownMenuLabel } from "./DropdownMenuLabel.vue"; -export { default as DropdownMenuRadioGroup } from "./DropdownMenuRadioGroup.vue"; -export { default as DropdownMenuRadioItem } from "./DropdownMenuRadioItem.vue"; -export { default as DropdownMenuSeparator } from "./DropdownMenuSeparator.vue"; -export { default as DropdownMenuSub } from "./DropdownMenuSub.vue"; -export { default as DropdownMenuSubContent } from "./DropdownMenuSubContent.vue"; -export { default as DropdownMenuSubTrigger } from "./DropdownMenuSubTrigger.vue"; -export { default as DropdownMenuTrigger } from "./DropdownMenuTrigger.vue"; diff --git a/ui/src/components/ui/duration-input/DurationInput.vue b/ui/src/components/ui/duration-input/DurationInput.vue deleted file mode 100644 index 44b07b019..000000000 --- a/ui/src/components/ui/duration-input/DurationInput.vue +++ /dev/null @@ -1,77 +0,0 @@ - - - diff --git a/ui/src/components/ui/duration-input/duration.ts b/ui/src/components/ui/duration-input/duration.ts deleted file mode 100644 index fcf982476..000000000 --- a/ui/src/components/ui/duration-input/duration.ts +++ /dev/null @@ -1,66 +0,0 @@ -export type DurationUnit = "ms" | "s" | "m" | "h"; - -const UNIT_MS: Record = { - ns: 1e-6, - us: 1e-3, - "µs": 1e-3, - ms: 1, - s: 1000, - m: 60_000, - h: 3_600_000, -}; - -export const DURATION_UNITS: DurationUnit[] = ["ms", "s", "m", "h"]; - -/** Parses a Go duration string ("1h0m0s", "1m30s", "500ms", "0") to milliseconds. */ -export function parseGoDuration(input: string): number | null { - const text = input.trim(); - if (text === "0") return 0; - const sign = text.startsWith("-") ? -1 : 1; - const body = text.replace(/^[-+]/, ""); - if (body === "") return null; - const re = /(\d+(?:\.\d*)?|\.\d+)(ns|us|µs|ms|s|m|h)/gy; - let total = 0; - let consumed = 0; - let match: RegExpExecArray | null; - while ((match = re.exec(body)) !== null) { - total += Number(match[1]) * UNIT_MS[match[2]]; - consumed = re.lastIndex; - } - if (consumed !== body.length) return null; - return sign * total; -} - -function trimFraction(n: number): string { - return Number(n.toFixed(9)).toString(); -} - -/** Formats milliseconds the way Go's time.Duration.String does. */ -export function formatGoDuration(ms: number): string { - if (ms === 0) return "0s"; - const sign = ms < 0 ? "-" : ""; - let rest = Math.abs(ms); - if (rest < 1000) return `${sign}${trimFraction(rest)}ms`; - const h = Math.floor(rest / 3_600_000); - rest -= h * 3_600_000; - const m = Math.floor(rest / 60_000); - rest -= m * 60_000; - const s = `${trimFraction(rest / 1000)}s`; - if (h > 0) return `${sign}${h}h${m}m${s}`; - if (m > 0) return `${sign}${m}m${s}`; - return `${sign}${s}`; -} - -/** Picks the largest unit that expresses ms as a whole number. */ -export function splitDuration(ms: number): { value: number; unit: DurationUnit } { - for (const unit of ["h", "m", "s"] as const) { - const size = UNIT_MS[unit]; - if (ms !== 0 && ms % size === 0) return { value: ms / size, unit }; - } - if (ms === 0) return { value: 0, unit: "s" }; - return { value: ms, unit: "ms" }; -} - -export function joinDuration(value: number, unit: DurationUnit): number { - return value * UNIT_MS[unit]; -} diff --git a/ui/src/components/ui/duration-input/index.ts b/ui/src/components/ui/duration-input/index.ts deleted file mode 100644 index c3fcc3f0f..000000000 --- a/ui/src/components/ui/duration-input/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { default as DurationInput } from "./DurationInput.vue"; -export * from "./duration"; diff --git a/ui/src/components/ui/empty/Empty.vue b/ui/src/components/ui/empty/Empty.vue deleted file mode 100644 index 044a418f9..000000000 --- a/ui/src/components/ui/empty/Empty.vue +++ /dev/null @@ -1,22 +0,0 @@ - - - diff --git a/ui/src/components/ui/empty/EmptyContent.vue b/ui/src/components/ui/empty/EmptyContent.vue deleted file mode 100644 index 3c1c277a5..000000000 --- a/ui/src/components/ui/empty/EmptyContent.vue +++ /dev/null @@ -1,22 +0,0 @@ - - - diff --git a/ui/src/components/ui/empty/EmptyDescription.vue b/ui/src/components/ui/empty/EmptyDescription.vue deleted file mode 100644 index ce5905983..000000000 --- a/ui/src/components/ui/empty/EmptyDescription.vue +++ /dev/null @@ -1,22 +0,0 @@ - - - diff --git a/ui/src/components/ui/empty/EmptyHeader.vue b/ui/src/components/ui/empty/EmptyHeader.vue deleted file mode 100644 index ca6e60e4e..000000000 --- a/ui/src/components/ui/empty/EmptyHeader.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - diff --git a/ui/src/components/ui/empty/EmptyMedia.vue b/ui/src/components/ui/empty/EmptyMedia.vue deleted file mode 100644 index dec14aed9..000000000 --- a/ui/src/components/ui/empty/EmptyMedia.vue +++ /dev/null @@ -1,26 +0,0 @@ - - - diff --git a/ui/src/components/ui/empty/EmptyTitle.vue b/ui/src/components/ui/empty/EmptyTitle.vue deleted file mode 100644 index c4de31977..000000000 --- a/ui/src/components/ui/empty/EmptyTitle.vue +++ /dev/null @@ -1,25 +0,0 @@ - - - diff --git a/ui/src/components/ui/empty/index.ts b/ui/src/components/ui/empty/index.ts deleted file mode 100644 index dd4298356..000000000 --- a/ui/src/components/ui/empty/index.ts +++ /dev/null @@ -1,26 +0,0 @@ -import type { VariantProps } from "class-variance-authority"; -import { cva } from "class-variance-authority"; - -export { default as Empty } from "./Empty.vue"; -export { default as EmptyContent } from "./EmptyContent.vue"; -export { default as EmptyDescription } from "./EmptyDescription.vue"; -export { default as EmptyHeader } from "./EmptyHeader.vue"; -export { default as EmptyMedia } from "./EmptyMedia.vue"; -export { default as EmptyTitle } from "./EmptyTitle.vue"; - -export const emptyMediaVariants = cva( - "mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0", - { - variants: { - variant: { - default: "bg-transparent", - icon: "bg-muted text-foreground flex size-8 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*=size-])]:size-4", - }, - }, - defaultVariants: { - variant: "default", - }, - }, -); - -export type EmptyMediaVariants = VariantProps; diff --git a/ui/src/components/ui/field/Field.vue b/ui/src/components/ui/field/Field.vue deleted file mode 100644 index 15ae768de..000000000 --- a/ui/src/components/ui/field/Field.vue +++ /dev/null @@ -1,27 +0,0 @@ - - - diff --git a/ui/src/components/ui/field/FieldContent.vue b/ui/src/components/ui/field/FieldContent.vue deleted file mode 100644 index 1471cf127..000000000 --- a/ui/src/components/ui/field/FieldContent.vue +++ /dev/null @@ -1,22 +0,0 @@ - - - diff --git a/ui/src/components/ui/field/FieldDescription.vue b/ui/src/components/ui/field/FieldDescription.vue deleted file mode 100644 index f1c71100e..000000000 --- a/ui/src/components/ui/field/FieldDescription.vue +++ /dev/null @@ -1,24 +0,0 @@ - - - diff --git a/ui/src/components/ui/field/FieldError.vue b/ui/src/components/ui/field/FieldError.vue deleted file mode 100644 index cb6da343c..000000000 --- a/ui/src/components/ui/field/FieldError.vue +++ /dev/null @@ -1,57 +0,0 @@ - - - diff --git a/ui/src/components/ui/field/FieldGroup.vue b/ui/src/components/ui/field/FieldGroup.vue deleted file mode 100644 index 0bed97f85..000000000 --- a/ui/src/components/ui/field/FieldGroup.vue +++ /dev/null @@ -1,22 +0,0 @@ - - - diff --git a/ui/src/components/ui/field/FieldLabel.vue b/ui/src/components/ui/field/FieldLabel.vue deleted file mode 100644 index 68ab34b8d..000000000 --- a/ui/src/components/ui/field/FieldLabel.vue +++ /dev/null @@ -1,24 +0,0 @@ - - - diff --git a/ui/src/components/ui/field/index.ts b/ui/src/components/ui/field/index.ts deleted file mode 100644 index 1f4d78447..000000000 --- a/ui/src/components/ui/field/index.ts +++ /dev/null @@ -1,29 +0,0 @@ -import type { VariantProps } from "class-variance-authority"; -import { cva } from "class-variance-authority"; - -export const fieldVariants = cva( - "data-[invalid=true]:text-destructive gap-2 group/field flex w-full", - { - variants: { - orientation: { - vertical: "flex-col *:w-full [&>.sr-only]:w-auto", - horizontal: - "flex-row items-center has-[>[data-slot=field-content]]:items-start *:data-[slot=field-label]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px", - responsive: - "flex-col *:w-full @md/field-group:flex-row @md/field-group:items-center @md/field-group:*:w-auto @md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:*:data-[slot=field-label]:flex-auto [&>.sr-only]:w-auto @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px", - }, - }, - defaultVariants: { - orientation: "vertical", - }, - }, -); - -export type FieldVariants = VariantProps; - -export { default as Field } from "./Field.vue"; -export { default as FieldContent } from "./FieldContent.vue"; -export { default as FieldDescription } from "./FieldDescription.vue"; -export { default as FieldError } from "./FieldError.vue"; -export { default as FieldGroup } from "./FieldGroup.vue"; -export { default as FieldLabel } from "./FieldLabel.vue"; diff --git a/ui/src/components/ui/input-group/InputGroup.vue b/ui/src/components/ui/input-group/InputGroup.vue deleted file mode 100644 index 92da8887f..000000000 --- a/ui/src/components/ui/input-group/InputGroup.vue +++ /dev/null @@ -1,23 +0,0 @@ - - - diff --git a/ui/src/components/ui/input-group/InputGroupAddon.vue b/ui/src/components/ui/input-group/InputGroupAddon.vue deleted file mode 100644 index c6f9ce838..000000000 --- a/ui/src/components/ui/input-group/InputGroupAddon.vue +++ /dev/null @@ -1,39 +0,0 @@ - - - diff --git a/ui/src/components/ui/input-group/InputGroupInput.vue b/ui/src/components/ui/input-group/InputGroupInput.vue deleted file mode 100644 index 984374dcd..000000000 --- a/ui/src/components/ui/input-group/InputGroupInput.vue +++ /dev/null @@ -1,21 +0,0 @@ - - - diff --git a/ui/src/components/ui/input-group/InputGroupText.vue b/ui/src/components/ui/input-group/InputGroupText.vue deleted file mode 100644 index 20b01093e..000000000 --- a/ui/src/components/ui/input-group/InputGroupText.vue +++ /dev/null @@ -1,21 +0,0 @@ - - - diff --git a/ui/src/components/ui/input-group/index.ts b/ui/src/components/ui/input-group/index.ts deleted file mode 100644 index b51369070..000000000 --- a/ui/src/components/ui/input-group/index.ts +++ /dev/null @@ -1,30 +0,0 @@ -import type { VariantProps } from "class-variance-authority"; -import { cva } from "class-variance-authority"; - -export { default as InputGroup } from "./InputGroup.vue"; -export { default as InputGroupAddon } from "./InputGroupAddon.vue"; -export { default as InputGroupInput } from "./InputGroupInput.vue"; -export { default as InputGroupText } from "./InputGroupText.vue"; - -export const inputGroupAddonVariants = cva( - "text-muted-foreground h-auto gap-2 py-1.5 text-label font-medium group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius-lg)-5px)] [&>svg:not([class*=size-])]:size-4 flex cursor-text items-center justify-center select-none", - { - variants: { - align: { - "inline-start": - "pl-2 has-[>button]:ml-[-0.3rem] has-[>kbd]:ml-[-0.15rem] order-first", - "inline-end": - "pr-2 has-[>button]:mr-[-0.3rem] has-[>kbd]:mr-[-0.15rem] order-last", - "block-start": - "px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2 order-first w-full justify-start", - "block-end": - "px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2 order-last w-full justify-start", - }, - }, - defaultVariants: { - align: "inline-start", - }, - }, -); - -export type InputGroupVariants = VariantProps; diff --git a/ui/src/components/ui/input/Input.vue b/ui/src/components/ui/input/Input.vue deleted file mode 100644 index f5a23f42a..000000000 --- a/ui/src/components/ui/input/Input.vue +++ /dev/null @@ -1,34 +0,0 @@ - - - diff --git a/ui/src/components/ui/input/classes.ts b/ui/src/components/ui/input/classes.ts deleted file mode 100644 index 94d385e0e..000000000 --- a/ui/src/components/ui/input/classes.ts +++ /dev/null @@ -1,2 +0,0 @@ -export const inputClass = - "dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 disabled:bg-input/50 dark:disabled:bg-input/80 h-9 rounded-lg border bg-card px-2.5 py-1 text-label transition-colors pointer-coarse:text-title file:h-6 file:text-label file:font-medium focus-visible:ring-3 aria-invalid:ring-3 w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent file:text-foreground placeholder:text-fg-muted disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50"; diff --git a/ui/src/components/ui/input/index.ts b/ui/src/components/ui/input/index.ts deleted file mode 100644 index 110f0460e..000000000 --- a/ui/src/components/ui/input/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as Input } from "./Input.vue"; diff --git a/ui/src/components/ui/item/Item.vue b/ui/src/components/ui/item/Item.vue deleted file mode 100644 index b7c6bb4d3..000000000 --- a/ui/src/components/ui/item/Item.vue +++ /dev/null @@ -1,31 +0,0 @@ - - - diff --git a/ui/src/components/ui/item/ItemActions.vue b/ui/src/components/ui/item/ItemActions.vue deleted file mode 100644 index 6d387dc4b..000000000 --- a/ui/src/components/ui/item/ItemActions.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - diff --git a/ui/src/components/ui/item/ItemContent.vue b/ui/src/components/ui/item/ItemContent.vue deleted file mode 100644 index 699f1ac70..000000000 --- a/ui/src/components/ui/item/ItemContent.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - diff --git a/ui/src/components/ui/item/ItemDescription.vue b/ui/src/components/ui/item/ItemDescription.vue deleted file mode 100644 index ea6241fff..000000000 --- a/ui/src/components/ui/item/ItemDescription.vue +++ /dev/null @@ -1,20 +0,0 @@ - - - diff --git a/ui/src/components/ui/item/ItemGroup.vue b/ui/src/components/ui/item/ItemGroup.vue deleted file mode 100644 index 4eb481e83..000000000 --- a/ui/src/components/ui/item/ItemGroup.vue +++ /dev/null @@ -1,18 +0,0 @@ - - - diff --git a/ui/src/components/ui/item/ItemMedia.vue b/ui/src/components/ui/item/ItemMedia.vue deleted file mode 100644 index 47cce2ac2..000000000 --- a/ui/src/components/ui/item/ItemMedia.vue +++ /dev/null @@ -1,21 +0,0 @@ - - - diff --git a/ui/src/components/ui/item/ItemTitle.vue b/ui/src/components/ui/item/ItemTitle.vue deleted file mode 100644 index caa4522b8..000000000 --- a/ui/src/components/ui/item/ItemTitle.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - diff --git a/ui/src/components/ui/item/index.ts b/ui/src/components/ui/item/index.ts deleted file mode 100644 index ae03b2f3d..000000000 --- a/ui/src/components/ui/item/index.ts +++ /dev/null @@ -1,54 +0,0 @@ -import type { VariantProps } from 'class-variance-authority' -import { cva } from 'class-variance-authority' - -export { default as Item } from './Item.vue' -export { default as ItemActions } from './ItemActions.vue' -export { default as ItemContent } from './ItemContent.vue' -export { default as ItemDescription } from './ItemDescription.vue' - -export { default as ItemGroup } from './ItemGroup.vue' - -export { default as ItemMedia } from './ItemMedia.vue' - -export { default as ItemTitle } from './ItemTitle.vue' - -export const itemVariants = cva( - '[a]:hover:bg-muted rounded-lg border text-label group/item flex w-full flex-wrap items-center transition-colors duration-100 outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring [a]:transition-colors', - { - variants: { - variant: { - default: 'border-transparent', - outline: 'border-border', - muted: 'bg-muted/50 border-transparent', - }, - size: { - default: 'gap-2.5 px-3 py-2.5', - sm: 'gap-2.5 px-3 py-2.5', - xs: 'gap-2 px-2.5 py-2 in-data-[slot=dropdown-menu-content]:p-0', - }, - }, - defaultVariants: { - variant: 'default', - size: 'default', - }, - }, -) - -export const itemMediaVariants = cva( - 'gap-2 group-has-data-[slot=item-description]/item:translate-y-0.5 group-has-data-[slot=item-description]/item:self-start flex shrink-0 items-center justify-center [&_svg]:pointer-events-none', - { - variants: { - variant: { - default: 'bg-transparent', - icon: '[&_svg:not([class*=size-])]:size-4', - image: 'size-10 overflow-hidden rounded-sm group-data-[size=sm]/item:size-8 group-data-[size=xs]/item:size-6 [&_img]:size-full [&_img]:object-cover', - }, - }, - defaultVariants: { - variant: 'default', - }, - }, -) - -export type ItemVariants = VariantProps -export type ItemMediaVariants = VariantProps diff --git a/ui/src/components/ui/kbd/Kbd.vue b/ui/src/components/ui/kbd/Kbd.vue deleted file mode 100644 index 041eae814..000000000 --- a/ui/src/components/ui/kbd/Kbd.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - diff --git a/ui/src/components/ui/kbd/index.ts b/ui/src/components/ui/kbd/index.ts deleted file mode 100644 index 0a7d6d2a3..000000000 --- a/ui/src/components/ui/kbd/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as Kbd } from './Kbd.vue' diff --git a/ui/src/components/ui/label/Label.vue b/ui/src/components/ui/label/Label.vue deleted file mode 100644 index 5296bd63d..000000000 --- a/ui/src/components/ui/label/Label.vue +++ /dev/null @@ -1,26 +0,0 @@ - - - diff --git a/ui/src/components/ui/label/index.ts b/ui/src/components/ui/label/index.ts deleted file mode 100644 index 38eaa356d..000000000 --- a/ui/src/components/ui/label/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as Label } from "./Label.vue"; diff --git a/ui/src/components/ui/message-scroller/MessageScroller.vue b/ui/src/components/ui/message-scroller/MessageScroller.vue deleted file mode 100644 index d6090734e..000000000 --- a/ui/src/components/ui/message-scroller/MessageScroller.vue +++ /dev/null @@ -1,27 +0,0 @@ - - - diff --git a/ui/src/components/ui/message-scroller/MessageScrollerButton.vue b/ui/src/components/ui/message-scroller/MessageScrollerButton.vue deleted file mode 100644 index 58a190361..000000000 --- a/ui/src/components/ui/message-scroller/MessageScrollerButton.vue +++ /dev/null @@ -1,71 +0,0 @@ - - - diff --git a/ui/src/components/ui/message-scroller/MessageScrollerContent.vue b/ui/src/components/ui/message-scroller/MessageScrollerContent.vue deleted file mode 100644 index d477a77f3..000000000 --- a/ui/src/components/ui/message-scroller/MessageScrollerContent.vue +++ /dev/null @@ -1,76 +0,0 @@ - - - diff --git a/ui/src/components/ui/message-scroller/MessageScrollerItem.vue b/ui/src/components/ui/message-scroller/MessageScrollerItem.vue deleted file mode 100644 index d103aa512..000000000 --- a/ui/src/components/ui/message-scroller/MessageScrollerItem.vue +++ /dev/null @@ -1,58 +0,0 @@ - - - diff --git a/ui/src/components/ui/message-scroller/MessageScrollerProvider.vue b/ui/src/components/ui/message-scroller/MessageScrollerProvider.vue deleted file mode 100644 index ffc2eab5a..000000000 --- a/ui/src/components/ui/message-scroller/MessageScrollerProvider.vue +++ /dev/null @@ -1,12 +0,0 @@ - - - diff --git a/ui/src/components/ui/message-scroller/MessageScrollerViewport.vue b/ui/src/components/ui/message-scroller/MessageScrollerViewport.vue deleted file mode 100644 index 782d8d195..000000000 --- a/ui/src/components/ui/message-scroller/MessageScrollerViewport.vue +++ /dev/null @@ -1,81 +0,0 @@ - - - diff --git a/ui/src/components/ui/message-scroller/index.ts b/ui/src/components/ui/message-scroller/index.ts deleted file mode 100644 index d7ff32e47..000000000 --- a/ui/src/components/ui/message-scroller/index.ts +++ /dev/null @@ -1,12 +0,0 @@ -export { default as MessageScroller } from "./MessageScroller.vue"; -export { default as MessageScrollerButton } from "./MessageScrollerButton.vue"; -export { default as MessageScrollerContent } from "./MessageScrollerContent.vue"; -export { default as MessageScrollerItem } from "./MessageScrollerItem.vue"; -export { default as MessageScrollerProvider } from "./MessageScrollerProvider.vue"; -export { default as MessageScrollerViewport } from "./MessageScrollerViewport.vue"; - -export { - - useMessageScrollerScrollable, - -} from "./useMessageScroller"; diff --git a/ui/src/components/ui/message-scroller/useMessageScroller.ts b/ui/src/components/ui/message-scroller/useMessageScroller.ts deleted file mode 100644 index 400f4b9e3..000000000 --- a/ui/src/components/ui/message-scroller/useMessageScroller.ts +++ /dev/null @@ -1,1096 +0,0 @@ -import type { ComputedRef, InjectionKey, Ref, ShallowRef } from "vue"; -import { - computed, - inject, - onMounted, - onScopeDispose, - provide, - shallowRef, - watch, -} from "vue"; - -// ----------------------------------------------------------------------------- -// Public types -// ----------------------------------------------------------------------------- - -type MessageScrollerDefaultScrollPosition = - "start" | "end" | "last-anchor"; -export type MessageScrollerButtonDirection = "start" | "end"; -type MessageScrollerScrollAlign = "start" | "center" | "end" | "nearest"; - -interface MessageScrollerScrollOptions { - align?: MessageScrollerScrollAlign; - behavior?: ScrollBehavior; - scrollMargin?: number; -} - -export interface MessageScrollerScrollable { - start: boolean; - end: boolean; -} - -interface MessageScrollerVisibilityState { - currentAnchorId: string | null; - visibleMessageIds: string[]; -} - -export interface MessageScrollerProviderProps { - autoScroll?: boolean; - defaultScrollPosition?: MessageScrollerDefaultScrollPosition; - scrollEdgeThreshold?: number; - scrollPreviousItemPeek?: number; - scrollMargin?: number; -} - -// ----------------------------------------------------------------------------- -// Constants -// ----------------------------------------------------------------------------- - -const DEFAULT_SCROLL_EDGE_THRESHOLD = 8; -const DEFAULT_SCROLL_PREVIOUS_ITEM_PEEK = 64; -const DEFAULT_SCROLL_MARGIN = 0; -const SCROLL_EPSILON = 0.5; -const AUTOSCROLLING_TIMEOUT = 180; - -const SCROLL_KEYS = new Set([ - "ArrowDown", - "ArrowUp", - "End", - "Home", - "PageDown", - "PageUp", - " ", -]); - -const EMPTY_SCROLLABLE: MessageScrollerScrollable = { - start: false, - end: false, -}; -const EMPTY_VISIBLE_IDS: string[] = []; -const EMPTY_VISIBILITY: MessageScrollerVisibilityState = { - currentAnchorId: null, - visibleMessageIds: EMPTY_VISIBLE_IDS, -}; - -type Mode = - | "following-bottom" - | "free-scrolling" - | "anchored-to-message" - | "settling-jump"; - -interface PrependRestore { - element: HTMLElement; - viewportTop: number; -} - -interface PendingScrollToMessage { - messageId: string; - options?: MessageScrollerScrollOptions; -} - -function scrollableEqual( - a: MessageScrollerScrollable, - b: MessageScrollerScrollable, -) { - return a.start === b.start && a.end === b.end; -} - -function visibilityEqual( - a: MessageScrollerVisibilityState, - b: MessageScrollerVisibilityState, -) { - if ( - a.currentAnchorId !== b.currentAnchorId || - a.visibleMessageIds.length !== b.visibleMessageIds.length - ) { - return false; - } - return a.visibleMessageIds.every( - (id, index) => id === b.visibleMessageIds[index], - ); -} - -// ----------------------------------------------------------------------------- -// DOM measurement helpers -// ----------------------------------------------------------------------------- - -function parseNumber(value: string | null | undefined): number { - if (!value) return 0; - const parsed = Number.parseFloat(value); - return Number.isFinite(parsed) ? parsed : 0; -} - -function getPadding(element: HTMLElement): { start: number; end: number } { - const style = window.getComputedStyle(element); - return { - end: parseNumber(style.paddingBlockEnd || style.paddingBottom), - start: parseNumber(style.paddingBlockStart || style.paddingTop), - }; -} - -function getContentPadding(spacer: HTMLElement | null): { - start: number; - end: number; -} { - const parent = spacer?.parentElement; - return parent ? getPadding(parent) : { end: 0, start: 0 }; -} - -function getRowGap(element: HTMLElement | null): number { - if (!element) return 0; - const style = window.getComputedStyle(element); - const gap = style.rowGap === "normal" ? style.gap : style.rowGap; - return parseNumber(gap); -} - -function getMessageChildren( - content: HTMLElement, - spacer: HTMLElement | null, -): HTMLElement[] { - return Array.from(content.children).filter( - (child): child is HTMLElement => - child instanceof HTMLElement && child !== spacer, - ); -} - -function getElementOffsetTop( - element: HTMLElement, - viewport: HTMLElement, -): number { - const elementRect = element.getBoundingClientRect(); - const viewportRect = viewport.getBoundingClientRect(); - return elementRect.top - viewportRect.top + viewport.scrollTop; -} - -function getRelativeTop(element: HTMLElement, viewport: HTMLElement): number { - return ( - element.getBoundingClientRect().top - viewport.getBoundingClientRect().top - ); -} - -function measureContentHeight({ - content, - spacer, - viewport, -}: { - content: HTMLElement; - spacer: HTMLElement | null; - viewport: HTMLElement; -}): number { - const children = getMessageChildren(content, spacer); - const padding = getPadding(content); - const viewportRect = viewport.getBoundingClientRect(); - const scrollTop = viewport.scrollTop; - let height = padding.start + padding.end; - for (const child of children) { - const rect = child.getBoundingClientRect(); - height = Math.max( - height, - rect.bottom - viewportRect.top + scrollTop + padding.end, - ); - } - return height; -} - -function maxScrollTop(element: HTMLElement): number { - return Math.max(0, element.scrollHeight - element.clientHeight); -} - -function computeSpacerHeight({ - content, - scrollTop, - spacer, - viewport, -}: { - content: HTMLElement; - scrollTop: number; - spacer: HTMLElement | null; - viewport: HTMLElement; -}): number { - const contentHeight = measureContentHeight({ content, spacer, viewport }); - return scrollTop + viewport.clientHeight - contentHeight; -} - -function computeScrollTopForElement({ - align, - element, - scrollMargin, - spacer, - viewport, -}: { - align: MessageScrollerScrollAlign; - element: HTMLElement; - scrollMargin: number; - spacer: HTMLElement | null; - viewport: HTMLElement; -}): number { - const offsetTop = getElementOffsetTop(element, viewport); - const height = element.getBoundingClientRect().height; - const padding = getContentPadding(spacer); - - if (align === "center") { - const available = Math.max( - 0, - viewport.clientHeight - padding.start - padding.end, - ); - return offsetTop - padding.start - (available - height) / 2 - scrollMargin; - } - if (align === "end") - return ( - offsetTop - viewport.clientHeight + height + padding.end + scrollMargin - ); - if (align === "nearest") { - const bottom = offsetTop + height; - const visibleTop = viewport.scrollTop + padding.start; - const visibleBottom = - viewport.scrollTop + viewport.clientHeight - padding.end; - if (offsetTop >= visibleTop && bottom <= visibleBottom) - return viewport.scrollTop; - return offsetTop < visibleTop - ? offsetTop - padding.start - scrollMargin - : bottom - viewport.clientHeight + padding.end + scrollMargin; - } - return offsetTop - padding.start - scrollMargin; -} - -function computeScrollable({ - content, - scrollEdgeThreshold, - spacer, - viewport, -}: { - content: HTMLElement | null; - scrollEdgeThreshold: number; - spacer: HTMLElement | null; - viewport: HTMLElement | null; -}): MessageScrollerScrollable { - if (!viewport || !content) return EMPTY_SCROLLABLE; - const contentHeight = measureContentHeight({ content, spacer, viewport }); - return { - start: viewport.scrollTop > scrollEdgeThreshold, - end: - contentHeight - viewport.scrollTop - viewport.clientHeight > - scrollEdgeThreshold, - }; -} - -function computeVisibility({ - content, - scrollMargin, - scrollPreviousItemPeek, - spacer, - viewport, - visibleMessageIds, -}: { - content: HTMLElement | null; - scrollMargin: number; - scrollPreviousItemPeek: number; - spacer: HTMLElement | null; - viewport: HTMLElement | null; - visibleMessageIds: Set; -}): MessageScrollerVisibilityState { - if (!content || !viewport) return EMPTY_VISIBILITY; - const viewportRect = viewport.getBoundingClientRect(); - const anchorLine = viewportRect.top + scrollMargin + scrollPreviousItemPeek; - const noIntersectionObserver = typeof IntersectionObserver === "undefined"; - const visible: string[] = []; - let currentAnchorId: string | null = null; - - for (const child of getMessageChildren(content, spacer)) { - const messageId = child.dataset.messageId; - if (!messageId) continue; - const isAnchor = child.dataset.scrollAnchor === "true"; - const rect = - isAnchor || noIntersectionObserver ? child.getBoundingClientRect() : null; - const isVisible = - noIntersectionObserver && rect - ? rect.bottom > anchorLine && rect.top < viewportRect.bottom - : visibleMessageIds.has(messageId); - if (isVisible) visible.push(messageId); - if (isAnchor && rect && rect.top <= anchorLine + SCROLL_EPSILON) - currentAnchorId = messageId; - } - - return visible.length === 0 && currentAnchorId === null - ? EMPTY_VISIBILITY - : { currentAnchorId, visibleMessageIds: visible }; -} - -function findFirstAnchorFrom( - elements: HTMLElement[], - startIndex: number, -): HTMLElement | null { - for (let i = startIndex; i < elements.length; i++) { - const element = elements[i]; - if (element?.dataset.scrollAnchor === "true") return element; - } - return null; -} - -function findFirstUnhandledAnchor( - elements: HTMLElement[], - handled: WeakSet, -): HTMLElement | null { - for (const element of elements) { - if (element.dataset.scrollAnchor === "true" && !handled.has(element)) - return element; - } - return null; -} - -function hasMultipleAnchorsFrom( - elements: HTMLElement[], - startIndex: number, -): boolean { - let count = 0; - for (let i = startIndex; i < elements.length; i++) { - if (elements[i]?.dataset.scrollAnchor === "true") { - count += 1; - if (count > 1) return true; - } - } - return false; -} - -function findLastAnchor(elements: HTMLElement[]): HTMLElement | null { - for (let i = elements.length - 1; i >= 0; i--) { - const element = elements[i]; - if (element?.dataset.scrollAnchor === "true") return element; - } - return null; -} - -function findFirstVisibleMessage({ - content, - spacer, - viewport, -}: { - content: HTMLElement; - spacer: HTMLElement | null; - viewport: HTMLElement; -}): HTMLElement | null { - const viewportRect = viewport.getBoundingClientRect(); - for (const child of getMessageChildren(content, spacer)) { - if (!child.dataset.messageId) continue; - const rect = child.getBoundingClientRect(); - if (rect.bottom > viewportRect.top && rect.top < viewportRect.bottom) - return child; - } - return null; -} - -// ----------------------------------------------------------------------------- -// Engine -// ----------------------------------------------------------------------------- - -export interface MessageScrollerContext { - autoscrolling: Readonly>; - scrollable: Readonly>; - scrollableAttr: ComputedRef; - visibility: Readonly>; - acquireVisibility: () => void; - releaseVisibility: () => void; - handleContentChange: () => void; - handleResize: () => void; - scrollToEnd: (options?: { behavior?: ScrollBehavior }) => boolean; - scrollToMessage: ( - messageId: string, - options?: MessageScrollerScrollOptions, - ) => boolean; - scrollToStart: (options?: { behavior?: ScrollBehavior }) => boolean; - setContentElement: (element: HTMLElement | null) => void; - setSpacerElement: (element: HTMLElement | null) => void; - setViewportElement: (element: HTMLElement | null) => void; - setPreserveScrollOnPrepend: (value: boolean) => void; - syncAfterScroll: () => void; - userScrollIntent: () => void; -} - -export type RegisterMessage = ( - messageId: string, - element: HTMLElement | null, - previousElement: HTMLElement | null, -) => void; - -const CONTEXT_KEY: InjectionKey = Symbol( - "MessageScrollerContext", -); -const REGISTER_KEY: InjectionKey = Symbol( - "MessageScrollerRegister", -); - -function createEngine(props: MessageScrollerProviderProps) { - const autoScroll = () => props.autoScroll ?? false; - const defaultScrollPosition = () => props.defaultScrollPosition ?? "end"; - const scrollEdgeThreshold = () => - props.scrollEdgeThreshold ?? DEFAULT_SCROLL_EDGE_THRESHOLD; - const scrollPreviousItemPeek = () => - props.scrollPreviousItemPeek ?? DEFAULT_SCROLL_PREVIOUS_ITEM_PEEK; - const scrollMargin = () => props.scrollMargin ?? DEFAULT_SCROLL_MARGIN; - - let viewport: HTMLElement | null = null; - let content: HTMLElement | null = null; - let spacer: HTMLElement | null = null; - let spacerGap = 0; - let spacerHeight = 0; - let mode: Mode = autoScroll() ? "following-bottom" : "free-scrolling"; - let streamingTurn: HTMLElement | null = null; - let firstItem: HTMLElement | null = null; - let itemCount = 0; - let lastScrollTop = 0; - let defaultScrollPositionApplied = false; - let preserveScrollOnPrepend = true; - let prependRestore: PrependRestore | null = null; - let pendingScrollToMessage: PendingScrollToMessage | null = null; - let stateFrame: number | null = null; - let visibilityFrame: number | null = null; - let pendingScrollFrame: number | null = null; - let autoscrollingTimeout: number | null = null; - let visibilityObserver: IntersectionObserver | null = null; - let visibilityConsumers = 0; - const messageElements = new Map(); - const visibleMessageIds = new Set(); - const handledScrollAnchors = new WeakSet(); - - const autoscrolling = shallowRef(false); - const scrollable = shallowRef(EMPTY_SCROLLABLE); - const visibility = - shallowRef(EMPTY_VISIBILITY); - const scrollableAttr = computed(() => { - const attr = [ - scrollable.value.start && "start", - scrollable.value.end && "end", - ] - .filter(Boolean) - .join(" "); - return attr || undefined; - }); - - // --- scroll-state commit / visibility scheduling --------------------------- - - function updateModeFromScroll(next: MessageScrollerScrollable) { - const scrollTop = viewport?.scrollTop ?? 0; - const scrolledUp = scrollTop < lastScrollTop - SCROLL_EPSILON; - lastScrollTop = scrollTop; - if ( - autoScroll() && - !next.end && - mode !== "settling-jump" && - mode !== "anchored-to-message" - ) { - mode = "following-bottom"; - } else if ( - mode === "following-bottom" && - next.end && - scrolledUp && - !autoscrolling.value - ) { - mode = "free-scrolling"; - } - } - - function commitScrollState() { - const measured = computeScrollable({ - content, - scrollEdgeThreshold: scrollEdgeThreshold(), - spacer, - viewport, - }); - updateModeFromScroll(measured); - const next = - mode === "following-bottom" ? { ...measured, end: false } : measured; - if (!scrollableEqual(scrollable.value, next)) scrollable.value = next; - } - - function scheduleStateCommit() { - if (stateFrame === null) { - stateFrame = window.requestAnimationFrame(() => { - stateFrame = null; - commitScrollState(); - }); - } - } - - function scheduleVisibilitySync() { - if (visibilityConsumers === 0) return; - if (visibilityFrame === null) { - visibilityFrame = window.requestAnimationFrame(() => { - visibilityFrame = null; - if (visibilityConsumers > 0) { - const next = computeVisibility({ - content, - scrollMargin: scrollMargin(), - scrollPreviousItemPeek: scrollPreviousItemPeek(), - spacer, - viewport, - visibleMessageIds, - }); - if (!visibilityEqual(visibility.value, next)) visibility.value = next; - } - }); - } - } - - // --- imperative scroll primitives ------------------------------------------ - - function setAutoscrolling(active: boolean) { - if (autoscrollingTimeout !== null) { - window.clearTimeout(autoscrollingTimeout); - autoscrollingTimeout = null; - } - if (autoscrolling.value !== active) { - autoscrolling.value = active; - commitScrollState(); - } - if (active) { - autoscrollingTimeout = window.setTimeout(() => { - autoscrollingTimeout = null; - autoscrolling.value = false; - commitScrollState(); - }, AUTOSCROLLING_TIMEOUT); - } - } - - function setSpacerHeight(height: number) { - if (!spacer) return; - const next = Math.max(0, Math.ceil(height)); - if (spacerHeight !== next) { - spacerHeight = next; - spacer.hidden = next === 0; - spacer.style.height = `${next}px`; - spacer.style.marginTop = next > 0 ? `${-spacerGap}px` : ""; - } - } - - function scrollTo( - top: number, - { - behavior = "auto", - autoscrolling: isAutoscrolling = false, - }: { behavior?: ScrollBehavior; autoscrolling?: boolean } = {}, - ) { - if (!viewport) return; - const target = Math.max(0, top); - if (Math.abs(viewport.scrollTop - target) <= SCROLL_EPSILON) { - viewport.scrollTop = target; - commitScrollState(); - return; - } - if (isAutoscrolling) setAutoscrolling(true); - viewport.scrollTo({ top: target, behavior }); - scheduleStateCommit(); - } - - function scrollToStart({ - behavior = "auto", - }: { behavior?: ScrollBehavior } = {}): boolean { - if (!viewport) return false; - setSpacerHeight(0); - streamingTurn = null; - mode = "free-scrolling"; - scrollTo(0, { behavior }); - scheduleVisibilitySync(); - return true; - } - - function scrollToEnd({ - behavior = "auto", - }: { behavior?: ScrollBehavior } = {}): boolean { - if (!viewport) return false; - setSpacerHeight(0); - streamingTurn = null; - mode = autoScroll() ? "following-bottom" : "free-scrolling"; - scrollTo(maxScrollTop(viewport), { autoscrolling: true, behavior }); - scheduleVisibilitySync(); - return true; - } - - function scrollToElement( - element: HTMLElement, - { - align = "start", - behavior = "auto", - scrollMargin: margin = scrollMargin(), - }: MessageScrollerScrollOptions = {}, - { keepPreviousPeek = false }: { keepPreviousPeek?: boolean } = {}, - ): boolean { - if (!content || !viewport || !content.contains(element)) return false; - const targetScrollTop = computeScrollTopForElement({ - align, - element, - scrollMargin: keepPreviousPeek - ? margin + scrollPreviousItemPeek() - : margin, - spacer, - viewport, - }); - setSpacerHeight( - computeSpacerHeight({ - content, - scrollTop: targetScrollTop, - spacer, - viewport, - }), - ); - prependRestore = { - element, - viewportTop: getRelativeTop(element, viewport), - }; - mode = keepPreviousPeek ? "anchored-to-message" : "settling-jump"; - streamingTurn = keepPreviousPeek ? element : null; - scrollTo(targetScrollTop, { behavior }); - scheduleVisibilitySync(); - return true; - } - - function reanchorToAnchoredMessage(): boolean { - if ( - !streamingTurn || - !streamingTurn.isConnected || - mode !== "anchored-to-message" - ) - return false; - return scrollToElement( - streamingTurn, - { align: "start" }, - { keepPreviousPeek: true }, - ); - } - - function scrollToMessage( - messageId: string, - options?: MessageScrollerScrollOptions, - ): boolean { - const element = messageElements.get(messageId); - if (element) { - defaultScrollPositionApplied = true; - if (scrollToElement(element, options)) { - pendingScrollToMessage = null; - return true; - } - pendingScrollToMessage = { messageId, options }; - return true; - } - if (itemCount === 0) { - pendingScrollToMessage = { messageId, options }; - defaultScrollPositionApplied = true; - return true; - } - return false; - } - - function flushPendingScrollToMessage(): boolean { - if (!pendingScrollToMessage) return false; - const element = messageElements.get(pendingScrollToMessage.messageId); - if (!element || !scrollToElement(element, pendingScrollToMessage.options)) - return false; - pendingScrollToMessage = null; - defaultScrollPositionApplied = true; - return true; - } - - // --- prepend preservation -------------------------------------------------- - - function applyPrependRestore(): boolean { - if (!prependRestore || !viewport || !prependRestore.element.isConnected) - return false; - const delta = - getRelativeTop(prependRestore.element, viewport) - - prependRestore.viewportTop; - if (Math.abs(delta) <= SCROLL_EPSILON) return false; - viewport.scrollTop += delta; - prependRestore.viewportTop = getRelativeTop( - prependRestore.element, - viewport, - ); - scheduleStateCommit(); - scheduleVisibilitySync(); - return true; - } - - function capturePrependAnchor() { - if (!content || !viewport) { - prependRestore = null; - return; - } - const element = findFirstVisibleMessage({ content, spacer, viewport }); - prependRestore = element - ? { element, viewportTop: getRelativeTop(element, viewport) } - : null; - } - - function schedulePrependFlush() { - if (pendingScrollFrame === null) { - pendingScrollFrame = window.requestAnimationFrame(() => { - pendingScrollFrame = null; - if (flushPendingScrollToMessage()) capturePrependAnchor(); - }); - } - } - - // --- default scroll position ----------------------------------------------- - - function applyDefaultScrollPosition(): boolean { - if (defaultScrollPositionApplied || itemCount === 0) return false; - const position = defaultScrollPosition(); - let applied = false; - if (position === "last-anchor") { - const lastAnchor = - content && viewport - ? findLastAnchor(getMessageChildren(content, spacer)) - : null; - if (!content || !viewport || !lastAnchor) { - applied = scrollToEnd({ behavior: "auto" }); - } else { - const anchorOffset = getElementOffsetTop(lastAnchor, viewport); - const contentHeight = measureContentHeight({ - content, - spacer, - viewport, - }); - applied = - contentHeight - anchorOffset <= viewport.clientHeight - ? scrollToEnd({ behavior: "auto" }) - : scrollToElement( - lastAnchor, - { align: "start" }, - { keepPreviousPeek: true }, - ); - } - } else { - applied = - position === "end" - ? scrollToEnd({ behavior: "auto" }) - : scrollToStart({ behavior: "auto" }); - } - if (applied) { - defaultScrollPositionApplied = true; - return true; - } - return false; - } - - // --- content / resize handling --------------------------------------------- - - function applyContentChange( - children: HTMLElement[], - previousCount: number, - previousFirst: HTMLElement | null, - ) { - if (flushPendingScrollToMessage()) return; - if (previousCount === 0) { - if ( - applyDefaultScrollPosition() || - (children.length > 0 && - autoScroll() && - scrollToEnd({ behavior: "auto" })) - ) { - return; - } - commitScrollState(); - scheduleVisibilitySync(); - return; - } - const previousIndex = previousFirst ? children.indexOf(previousFirst) : -1; - if (preserveScrollOnPrepend && previousIndex > 0) { - applyPrependRestore(); - return; - } - if (children.length > previousCount) { - const anchor = findFirstAnchorFrom(children, previousCount); - if (anchor) { - if ( - autoScroll() && - mode === "following-bottom" && - hasMultipleAnchorsFrom(children, previousCount) - ) { - scrollToEnd({ behavior: "auto" }); - return; - } - scrollToElement(anchor, { align: "start" }, { keepPreviousPeek: true }); - handledScrollAnchors.add(anchor); - return; - } - } - if (children.length === previousCount) { - const anchor = findFirstUnhandledAnchor(children, handledScrollAnchors); - if (anchor) { - scrollToElement(anchor, { align: "start" }, { keepPreviousPeek: true }); - handledScrollAnchors.add(anchor); - return; - } - } - if (mode === "following-bottom" && autoScroll()) { - scrollToEnd({ behavior: "auto" }); - } else { - commitScrollState(); - scheduleVisibilitySync(); - } - } - - function handleContentChange() { - if (!content) return; - const children = getMessageChildren(content, spacer); - const previousCount = itemCount; - const previousFirst = firstItem; - itemCount = children.length; - firstItem = children[0] ?? null; - - applyContentChange(children, previousCount, previousFirst); - capturePrependAnchor(); - } - - function handleResize() { - if (mode === "following-bottom" && autoScroll()) { - scrollToEnd({ behavior: "auto" }); - return; - } - const previousSpacerHeight = spacerHeight; - if (reanchorToAnchoredMessage()) { - // The reply streaming below the anchor consumes the tail spacer as it - // grows. Once the last of it is gone the reply has filled the viewport - // and the reader is genuinely at the live edge, so autoScroll hands off - // from the anchor hold to following the bottom. Requiring the >0 → 0 - // transition keeps a turn taller than the viewport (placed with no - // spacer) held instead of yanked to the end. - if (autoScroll() && previousSpacerHeight > 0 && spacerHeight === 0) - scrollToEnd({ behavior: "auto" }); - return; - } - scheduleStateCommit(); - scheduleVisibilitySync(); - } - - // --- visibility observation ------------------------------------------------ - - function observeVisibility() { - if (!viewport || visibilityConsumers === 0) return; - if (typeof IntersectionObserver === "undefined") { - scheduleVisibilitySync(); - return; - } - if (!visibilityObserver) { - visibilityObserver = new IntersectionObserver( - (entries) => { - for (const entry of entries) { - const messageId = (entry.target as HTMLElement).dataset.messageId; - if (!messageId) continue; - if (entry.isIntersecting) visibleMessageIds.add(messageId); - else visibleMessageIds.delete(messageId); - } - scheduleVisibilitySync(); - }, - { - root: viewport, - rootMargin: `${-(scrollMargin() + scrollPreviousItemPeek())}px 0px 0px 0px`, - threshold: [0, 0.01, 0.5, 1], - }, - ); - } - messageElements.forEach((element) => { - visibilityObserver?.observe(element); - }); - scheduleVisibilitySync(); - } - - function unobserveVisibility() { - if (visibilityFrame !== null) { - window.cancelAnimationFrame(visibilityFrame); - visibilityFrame = null; - } - visibilityObserver?.disconnect(); - visibilityObserver = null; - visibleMessageIds.clear(); - if (!visibilityEqual(visibility.value, EMPTY_VISIBILITY)) - visibility.value = EMPTY_VISIBILITY; - } - - function acquireVisibility() { - visibilityConsumers += 1; - if (visibilityConsumers === 1) observeVisibility(); - } - - function releaseVisibility() { - visibilityConsumers -= 1; - if (visibilityConsumers === 0) unobserveVisibility(); - } - - const registerMessage: RegisterMessage = ( - messageId, - element, - previousElement, - ) => { - if (element) { - messageElements.set(messageId, element); - visibilityObserver?.observe(element); - scheduleVisibilitySync(); - if (pendingScrollToMessage?.messageId === messageId) - schedulePrependFlush(); - return; - } - if (previousElement && messageElements.get(messageId) === previousElement) { - messageElements.delete(messageId); - visibleMessageIds.delete(messageId); - visibilityObserver?.unobserve(previousElement); - scheduleVisibilitySync(); - } - }; - - // --- user intent + element setters ----------------------------------------- - - function userScrollIntent() { - if ( - mode === "following-bottom" || - mode === "anchored-to-message" || - mode === "settling-jump" - ) { - streamingTurn = null; - mode = "free-scrolling"; - } - } - - function setViewportElement(element: HTMLElement | null) { - viewport = element; - // A visibility consumer may have subscribed before the viewport mounted, - // in which case observeVisibility() bailed out. Retry now it exists. - if (element) observeVisibility(); - } - - function setContentElement(element: HTMLElement | null) { - content = element; - } - - function setSpacerElement(element: HTMLElement | null) { - spacer = element; - spacerGap = getRowGap(element?.parentElement ?? null); - } - - function setPreserveScrollOnPrepend(value: boolean) { - preserveScrollOnPrepend = value; - } - - function syncAfterScroll() { - commitScrollState(); - scheduleVisibilitySync(); - capturePrependAnchor(); - } - - function onAutoScrollChange() { - if (autoScroll() && mode === "following-bottom" && itemCount > 0) { - scrollToEnd({ behavior: "auto" }); - return; - } - commitScrollState(); - } - - function destroy() { - if (stateFrame !== null) { - window.cancelAnimationFrame(stateFrame); - stateFrame = null; - } - if (visibilityFrame !== null) { - window.cancelAnimationFrame(visibilityFrame); - visibilityFrame = null; - } - if (autoscrollingTimeout !== null) { - window.clearTimeout(autoscrollingTimeout); - autoscrollingTimeout = null; - } - if (pendingScrollFrame !== null) { - window.cancelAnimationFrame(pendingScrollFrame); - pendingScrollFrame = null; - } - visibilityObserver?.disconnect(); - visibilityObserver = null; - } - - const context: MessageScrollerContext = { - autoscrolling, - scrollable, - scrollableAttr, - visibility, - acquireVisibility, - releaseVisibility, - handleContentChange, - handleResize, - scrollToEnd, - scrollToMessage, - scrollToStart, - setContentElement, - setSpacerElement, - setViewportElement, - setPreserveScrollOnPrepend, - syncAfterScroll, - userScrollIntent, - }; - - return { - context, - registerMessage, - applyDefaultScrollPosition, - onAutoScrollChange, - destroy, - }; -} - -// ----------------------------------------------------------------------------- -// Provider wiring (provide/inject) -// ----------------------------------------------------------------------------- - -export function provideMessageScroller(props: MessageScrollerProviderProps) { - const engine = createEngine(props); - provide(CONTEXT_KEY, engine.context); - provide(REGISTER_KEY, engine.registerMessage); - - watch( - () => props.autoScroll ?? false, - () => engine.onAutoScrollChange(), - ); - - onMounted(() => { - engine.applyDefaultScrollPosition(); - // The viewport element attaches in MessageScrollerViewport's onMounted, - // after MessageScrollerContent ran its initial handleContentChange without - // it. Re-sync now that every element is wired up. - engine.context.syncAfterScroll(); - }); - - onScopeDispose(() => engine.destroy()); - - return engine; -} - -export function useMessageScrollerContext(): MessageScrollerContext { - const context = inject(CONTEXT_KEY, null); - if (!context) - throw new Error( - "useMessageScroller must be used within a MessageScroller.", - ); - return context; -} - -export function useMessageScrollerRegister(): RegisterMessage { - const register = inject(REGISTER_KEY, null); - if (!register) - throw new Error( - "MessageScrollerItem must be used within a MessageScroller.", - ); - return register; -} - -// ----------------------------------------------------------------------------- -// Public composables -// ----------------------------------------------------------------------------- - -export function useMessageScroller() { - const { scrollToEnd, scrollToMessage, scrollToStart } = - useMessageScrollerContext(); - return { scrollToEnd, scrollToMessage, scrollToStart }; -} - -export function useMessageScrollerScrollable(): Ref { - const { scrollable } = useMessageScrollerContext(); - return computed(() => scrollable.value); -} - -export { SCROLL_KEYS }; diff --git a/ui/src/components/ui/message/Message.vue b/ui/src/components/ui/message/Message.vue deleted file mode 100644 index 880eb33e5..000000000 --- a/ui/src/components/ui/message/Message.vue +++ /dev/null @@ -1,30 +0,0 @@ - - - diff --git a/ui/src/components/ui/message/MessageContent.vue b/ui/src/components/ui/message/MessageContent.vue deleted file mode 100644 index 09c9b3049..000000000 --- a/ui/src/components/ui/message/MessageContent.vue +++ /dev/null @@ -1,27 +0,0 @@ - - - diff --git a/ui/src/components/ui/message/MessageFooter.vue b/ui/src/components/ui/message/MessageFooter.vue deleted file mode 100644 index 3639f180f..000000000 --- a/ui/src/components/ui/message/MessageFooter.vue +++ /dev/null @@ -1,27 +0,0 @@ - - - diff --git a/ui/src/components/ui/message/index.ts b/ui/src/components/ui/message/index.ts deleted file mode 100644 index 7fddf1422..000000000 --- a/ui/src/components/ui/message/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -export { default as Message } from './Message.vue' - -export { default as MessageContent } from './MessageContent.vue' -export { default as MessageFooter } from './MessageFooter.vue' diff --git a/ui/src/components/ui/metadata-list/MetadataList.vue b/ui/src/components/ui/metadata-list/MetadataList.vue deleted file mode 100644 index 2f23fe7f5..000000000 --- a/ui/src/components/ui/metadata-list/MetadataList.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - diff --git a/ui/src/components/ui/metadata-list/index.ts b/ui/src/components/ui/metadata-list/index.ts deleted file mode 100644 index c817911a8..000000000 --- a/ui/src/components/ui/metadata-list/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as MetadataList } from "./MetadataList.vue"; diff --git a/ui/src/components/ui/more-menu/MoreMenu.vue b/ui/src/components/ui/more-menu/MoreMenu.vue deleted file mode 100644 index bdb65be2f..000000000 --- a/ui/src/components/ui/more-menu/MoreMenu.vue +++ /dev/null @@ -1,20 +0,0 @@ - - - diff --git a/ui/src/components/ui/more-menu/index.ts b/ui/src/components/ui/more-menu/index.ts deleted file mode 100644 index dfc888a95..000000000 --- a/ui/src/components/ui/more-menu/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as MoreMenu } from "./MoreMenu.vue"; diff --git a/ui/src/components/ui/number-field/NumberField.vue b/ui/src/components/ui/number-field/NumberField.vue deleted file mode 100644 index de03b2f0e..000000000 --- a/ui/src/components/ui/number-field/NumberField.vue +++ /dev/null @@ -1,20 +0,0 @@ - - - diff --git a/ui/src/components/ui/number-field/NumberFieldContent.vue b/ui/src/components/ui/number-field/NumberFieldContent.vue deleted file mode 100644 index 2cde64ce4..000000000 --- a/ui/src/components/ui/number-field/NumberFieldContent.vue +++ /dev/null @@ -1,14 +0,0 @@ - - - diff --git a/ui/src/components/ui/number-field/NumberFieldDecrement.vue b/ui/src/components/ui/number-field/NumberFieldDecrement.vue deleted file mode 100644 index eab12e0c4..000000000 --- a/ui/src/components/ui/number-field/NumberFieldDecrement.vue +++ /dev/null @@ -1,23 +0,0 @@ - - - diff --git a/ui/src/components/ui/number-field/NumberFieldIncrement.vue b/ui/src/components/ui/number-field/NumberFieldIncrement.vue deleted file mode 100644 index 3a6b8d4b6..000000000 --- a/ui/src/components/ui/number-field/NumberFieldIncrement.vue +++ /dev/null @@ -1,23 +0,0 @@ - - - diff --git a/ui/src/components/ui/number-field/NumberFieldInput.vue b/ui/src/components/ui/number-field/NumberFieldInput.vue deleted file mode 100644 index aaee51981..000000000 --- a/ui/src/components/ui/number-field/NumberFieldInput.vue +++ /dev/null @@ -1,19 +0,0 @@ - - - diff --git a/ui/src/components/ui/number-field/index.ts b/ui/src/components/ui/number-field/index.ts deleted file mode 100644 index 5489697dc..000000000 --- a/ui/src/components/ui/number-field/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -export { default as NumberField } from './NumberField.vue' -export { default as NumberFieldContent } from './NumberFieldContent.vue' -export { default as NumberFieldDecrement } from './NumberFieldDecrement.vue' -export { default as NumberFieldIncrement } from './NumberFieldIncrement.vue' -export { default as NumberFieldInput } from './NumberFieldInput.vue' diff --git a/ui/src/components/ui/popover/Popover.vue b/ui/src/components/ui/popover/Popover.vue deleted file mode 100644 index e43a385bd..000000000 --- a/ui/src/components/ui/popover/Popover.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - diff --git a/ui/src/components/ui/popover/PopoverAnchor.vue b/ui/src/components/ui/popover/PopoverAnchor.vue deleted file mode 100644 index 44a429658..000000000 --- a/ui/src/components/ui/popover/PopoverAnchor.vue +++ /dev/null @@ -1,12 +0,0 @@ - - - diff --git a/ui/src/components/ui/popover/PopoverContent.vue b/ui/src/components/ui/popover/PopoverContent.vue deleted file mode 100644 index 4e8bd3155..000000000 --- a/ui/src/components/ui/popover/PopoverContent.vue +++ /dev/null @@ -1,41 +0,0 @@ - - - diff --git a/ui/src/components/ui/popover/PopoverTrigger.vue b/ui/src/components/ui/popover/PopoverTrigger.vue deleted file mode 100644 index 748f02838..000000000 --- a/ui/src/components/ui/popover/PopoverTrigger.vue +++ /dev/null @@ -1,12 +0,0 @@ - - - diff --git a/ui/src/components/ui/popover/index.ts b/ui/src/components/ui/popover/index.ts deleted file mode 100644 index 94275eb3c..000000000 --- a/ui/src/components/ui/popover/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -export { default as Popover } from "./Popover.vue"; -export { default as PopoverAnchor } from "./PopoverAnchor.vue"; -export { default as PopoverContent } from "./PopoverContent.vue"; -export { default as PopoverTrigger } from "./PopoverTrigger.vue"; diff --git a/ui/src/components/ui/progress/Progress.vue b/ui/src/components/ui/progress/Progress.vue deleted file mode 100644 index cd3333a62..000000000 --- a/ui/src/components/ui/progress/Progress.vue +++ /dev/null @@ -1,35 +0,0 @@ - - - diff --git a/ui/src/components/ui/progress/index.ts b/ui/src/components/ui/progress/index.ts deleted file mode 100644 index e934a9bbf..000000000 --- a/ui/src/components/ui/progress/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as Progress } from "./Progress.vue"; diff --git a/ui/src/components/ui/radio-group/RadioGroup.vue b/ui/src/components/ui/radio-group/RadioGroup.vue deleted file mode 100644 index af98fd469..000000000 --- a/ui/src/components/ui/radio-group/RadioGroup.vue +++ /dev/null @@ -1,26 +0,0 @@ - - - - diff --git a/ui/src/components/ui/radio-group/RadioGroupItem.vue b/ui/src/components/ui/radio-group/RadioGroupItem.vue deleted file mode 100644 index 1b86bcd49..000000000 --- a/ui/src/components/ui/radio-group/RadioGroupItem.vue +++ /dev/null @@ -1,42 +0,0 @@ - - - - diff --git a/ui/src/components/ui/radio-group/index.ts b/ui/src/components/ui/radio-group/index.ts deleted file mode 100644 index 99a6dbadd..000000000 --- a/ui/src/components/ui/radio-group/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export { default as RadioGroup } from './RadioGroup.vue' -export { default as RadioGroupItem } from './RadioGroupItem.vue' - diff --git a/ui/src/components/ui/read-error/ReadError.vue b/ui/src/components/ui/read-error/ReadError.vue deleted file mode 100644 index a00c5ffbc..000000000 --- a/ui/src/components/ui/read-error/ReadError.vue +++ /dev/null @@ -1,21 +0,0 @@ - - - diff --git a/ui/src/components/ui/read-error/index.ts b/ui/src/components/ui/read-error/index.ts deleted file mode 100644 index 420933599..000000000 --- a/ui/src/components/ui/read-error/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as ReadError } from "./ReadError.vue"; diff --git a/ui/src/components/ui/secret-reference/SecretReference.vue b/ui/src/components/ui/secret-reference/SecretReference.vue deleted file mode 100644 index 9f82a124e..000000000 --- a/ui/src/components/ui/secret-reference/SecretReference.vue +++ /dev/null @@ -1,34 +0,0 @@ - - - diff --git a/ui/src/components/ui/secret-reference/index.ts b/ui/src/components/ui/secret-reference/index.ts deleted file mode 100644 index a774a6a26..000000000 --- a/ui/src/components/ui/secret-reference/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as SecretReference } from "./SecretReference.vue"; diff --git a/ui/src/components/ui/section/Section.vue b/ui/src/components/ui/section/Section.vue deleted file mode 100644 index 15d55e182..000000000 --- a/ui/src/components/ui/section/Section.vue +++ /dev/null @@ -1,39 +0,0 @@ - - - diff --git a/ui/src/components/ui/section/index.ts b/ui/src/components/ui/section/index.ts deleted file mode 100644 index 869c5237c..000000000 --- a/ui/src/components/ui/section/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as Section } from "./Section.vue"; diff --git a/ui/src/components/ui/select/Select.vue b/ui/src/components/ui/select/Select.vue deleted file mode 100644 index f58547d1d..000000000 --- a/ui/src/components/ui/select/Select.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - diff --git a/ui/src/components/ui/select/SelectContent.vue b/ui/src/components/ui/select/SelectContent.vue deleted file mode 100644 index 987117843..000000000 --- a/ui/src/components/ui/select/SelectContent.vue +++ /dev/null @@ -1,61 +0,0 @@ - - - diff --git a/ui/src/components/ui/select/SelectGroup.vue b/ui/src/components/ui/select/SelectGroup.vue deleted file mode 100644 index 7e2f3c3ff..000000000 --- a/ui/src/components/ui/select/SelectGroup.vue +++ /dev/null @@ -1,23 +0,0 @@ - - - diff --git a/ui/src/components/ui/select/SelectItem.vue b/ui/src/components/ui/select/SelectItem.vue deleted file mode 100644 index 45fad201a..000000000 --- a/ui/src/components/ui/select/SelectItem.vue +++ /dev/null @@ -1,49 +0,0 @@ - - - diff --git a/ui/src/components/ui/select/SelectLabel.vue b/ui/src/components/ui/select/SelectLabel.vue deleted file mode 100644 index b9efcc24d..000000000 --- a/ui/src/components/ui/select/SelectLabel.vue +++ /dev/null @@ -1,19 +0,0 @@ - - - diff --git a/ui/src/components/ui/select/SelectScrollDownButton.vue b/ui/src/components/ui/select/SelectScrollDownButton.vue deleted file mode 100644 index 52f979d01..000000000 --- a/ui/src/components/ui/select/SelectScrollDownButton.vue +++ /dev/null @@ -1,34 +0,0 @@ - - - diff --git a/ui/src/components/ui/select/SelectScrollUpButton.vue b/ui/src/components/ui/select/SelectScrollUpButton.vue deleted file mode 100644 index 4f557e0d8..000000000 --- a/ui/src/components/ui/select/SelectScrollUpButton.vue +++ /dev/null @@ -1,34 +0,0 @@ - - - diff --git a/ui/src/components/ui/select/SelectTrigger.vue b/ui/src/components/ui/select/SelectTrigger.vue deleted file mode 100644 index 48b193366..000000000 --- a/ui/src/components/ui/select/SelectTrigger.vue +++ /dev/null @@ -1,43 +0,0 @@ - - - diff --git a/ui/src/components/ui/select/SelectValue.vue b/ui/src/components/ui/select/SelectValue.vue deleted file mode 100644 index 381152834..000000000 --- a/ui/src/components/ui/select/SelectValue.vue +++ /dev/null @@ -1,12 +0,0 @@ - - - diff --git a/ui/src/components/ui/select/index.ts b/ui/src/components/ui/select/index.ts deleted file mode 100644 index ddf823377..000000000 --- a/ui/src/components/ui/select/index.ts +++ /dev/null @@ -1,9 +0,0 @@ -export { default as Select } from "./Select.vue"; -export { default as SelectContent } from "./SelectContent.vue"; -export { default as SelectGroup } from "./SelectGroup.vue"; -export { default as SelectItem } from "./SelectItem.vue"; -export { default as SelectLabel } from "./SelectLabel.vue"; -export { default as SelectScrollDownButton } from "./SelectScrollDownButton.vue"; -export { default as SelectScrollUpButton } from "./SelectScrollUpButton.vue"; -export { default as SelectTrigger } from "./SelectTrigger.vue"; -export { default as SelectValue } from "./SelectValue.vue"; diff --git a/ui/src/components/ui/separator/Separator.vue b/ui/src/components/ui/separator/Separator.vue deleted file mode 100644 index d9f584299..000000000 --- a/ui/src/components/ui/separator/Separator.vue +++ /dev/null @@ -1,30 +0,0 @@ - - - diff --git a/ui/src/components/ui/separator/index.ts b/ui/src/components/ui/separator/index.ts deleted file mode 100644 index aae7f1a62..000000000 --- a/ui/src/components/ui/separator/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as Separator } from "./Separator.vue"; diff --git a/ui/src/components/ui/setting-row/SettingRow.vue b/ui/src/components/ui/setting-row/SettingRow.vue deleted file mode 100644 index 74a4c4172..000000000 --- a/ui/src/components/ui/setting-row/SettingRow.vue +++ /dev/null @@ -1,34 +0,0 @@ - - - diff --git a/ui/src/components/ui/setting-row/index.ts b/ui/src/components/ui/setting-row/index.ts deleted file mode 100644 index 75a9af0a7..000000000 --- a/ui/src/components/ui/setting-row/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as SettingRow } from "./SettingRow.vue"; diff --git a/ui/src/components/ui/sheet/Sheet.vue b/ui/src/components/ui/sheet/Sheet.vue deleted file mode 100644 index ecdbffe0c..000000000 --- a/ui/src/components/ui/sheet/Sheet.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - diff --git a/ui/src/components/ui/sheet/SheetContent.vue b/ui/src/components/ui/sheet/SheetContent.vue deleted file mode 100644 index 5e9326ba8..000000000 --- a/ui/src/components/ui/sheet/SheetContent.vue +++ /dev/null @@ -1,62 +0,0 @@ - - - diff --git a/ui/src/components/ui/sheet/SheetDescription.vue b/ui/src/components/ui/sheet/SheetDescription.vue deleted file mode 100644 index bf5906516..000000000 --- a/ui/src/components/ui/sheet/SheetDescription.vue +++ /dev/null @@ -1,23 +0,0 @@ - - - diff --git a/ui/src/components/ui/sheet/SheetFooter.vue b/ui/src/components/ui/sheet/SheetFooter.vue deleted file mode 100644 index 884a950f5..000000000 --- a/ui/src/components/ui/sheet/SheetFooter.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - diff --git a/ui/src/components/ui/sheet/SheetHeader.vue b/ui/src/components/ui/sheet/SheetHeader.vue deleted file mode 100644 index 2cba90f5e..000000000 --- a/ui/src/components/ui/sheet/SheetHeader.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - diff --git a/ui/src/components/ui/sheet/SheetOverlay.vue b/ui/src/components/ui/sheet/SheetOverlay.vue deleted file mode 100644 index 774506437..000000000 --- a/ui/src/components/ui/sheet/SheetOverlay.vue +++ /dev/null @@ -1,28 +0,0 @@ - - - diff --git a/ui/src/components/ui/sheet/SheetTitle.vue b/ui/src/components/ui/sheet/SheetTitle.vue deleted file mode 100644 index 54da2bdec..000000000 --- a/ui/src/components/ui/sheet/SheetTitle.vue +++ /dev/null @@ -1,25 +0,0 @@ - - - diff --git a/ui/src/components/ui/sheet/index.ts b/ui/src/components/ui/sheet/index.ts deleted file mode 100644 index f3c554903..000000000 --- a/ui/src/components/ui/sheet/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -export { default as Sheet } from "./Sheet.vue"; -export { default as SheetContent } from "./SheetContent.vue"; -export { default as SheetDescription } from "./SheetDescription.vue"; -export { default as SheetFooter } from "./SheetFooter.vue"; -export { default as SheetHeader } from "./SheetHeader.vue"; -export { default as SheetTitle } from "./SheetTitle.vue"; diff --git a/ui/src/components/ui/sidebar/SidebarInset.vue b/ui/src/components/ui/sidebar/SidebarInset.vue deleted file mode 100644 index 4aec54ca3..000000000 --- a/ui/src/components/ui/sidebar/SidebarInset.vue +++ /dev/null @@ -1,20 +0,0 @@ - - - diff --git a/ui/src/components/ui/sidebar/SidebarProvider.vue b/ui/src/components/ui/sidebar/SidebarProvider.vue deleted file mode 100644 index 36d19e742..000000000 --- a/ui/src/components/ui/sidebar/SidebarProvider.vue +++ /dev/null @@ -1,82 +0,0 @@ - - - diff --git a/ui/src/components/ui/sidebar/index.ts b/ui/src/components/ui/sidebar/index.ts deleted file mode 100644 index c291daa33..000000000 --- a/ui/src/components/ui/sidebar/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { default as SidebarInset } from './SidebarInset.vue' -export { default as SidebarProvider } from './SidebarProvider.vue' diff --git a/ui/src/components/ui/sidebar/utils.ts b/ui/src/components/ui/sidebar/utils.ts deleted file mode 100644 index d487bd85c..000000000 --- a/ui/src/components/ui/sidebar/utils.ts +++ /dev/null @@ -1,19 +0,0 @@ -import type { ComputedRef, Ref } from 'vue' -import { createContext } from 'reka-ui' - -export const SIDEBAR_COOKIE_NAME = 'sidebar_state' -export const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7 -export const SIDEBAR_WIDTH = '16rem' -export const SIDEBAR_WIDTH_ICON = '3rem' -export const SIDEBAR_KEYBOARD_SHORTCUT = 'b' -export const SIDEBAR_MOBILE_BREAKPOINT = 768 - -export const [useSidebar, provideSidebarContext] = createContext<{ - state: ComputedRef<'expanded' | 'collapsed'> - open: Ref - setOpen: (value: boolean) => void - isMobile: Ref - openMobile: Ref - setOpenMobile: (value: boolean) => void - toggleSidebar: () => void -}>('Sidebar') diff --git a/ui/src/components/ui/skeleton/Skeleton.vue b/ui/src/components/ui/skeleton/Skeleton.vue deleted file mode 100644 index 2ea9f771d..000000000 --- a/ui/src/components/ui/skeleton/Skeleton.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - diff --git a/ui/src/components/ui/skeleton/index.ts b/ui/src/components/ui/skeleton/index.ts deleted file mode 100644 index 72cb1d965..000000000 --- a/ui/src/components/ui/skeleton/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as Skeleton } from "./Skeleton.vue"; diff --git a/ui/src/components/ui/spinner/Spinner.vue b/ui/src/components/ui/spinner/Spinner.vue deleted file mode 100644 index 9d0c46b9d..000000000 --- a/ui/src/components/ui/spinner/Spinner.vue +++ /dev/null @@ -1,18 +0,0 @@ - - - diff --git a/ui/src/components/ui/spinner/index.ts b/ui/src/components/ui/spinner/index.ts deleted file mode 100644 index 8a95e7a74..000000000 --- a/ui/src/components/ui/spinner/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as Spinner } from "./Spinner.vue"; diff --git a/ui/src/components/ui/status-dot/StatusDot.vue b/ui/src/components/ui/status-dot/StatusDot.vue deleted file mode 100644 index fce0a46c9..000000000 --- a/ui/src/components/ui/status-dot/StatusDot.vue +++ /dev/null @@ -1,23 +0,0 @@ - - - diff --git a/ui/src/components/ui/status-dot/index.ts b/ui/src/components/ui/status-dot/index.ts deleted file mode 100644 index db1d14373..000000000 --- a/ui/src/components/ui/status-dot/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as StatusDot } from "./StatusDot.vue"; diff --git a/ui/src/components/ui/suggest-input/SuggestInput.vue b/ui/src/components/ui/suggest-input/SuggestInput.vue deleted file mode 100644 index 62ae52505..000000000 --- a/ui/src/components/ui/suggest-input/SuggestInput.vue +++ /dev/null @@ -1,56 +0,0 @@ - - - diff --git a/ui/src/components/ui/suggest-input/index.ts b/ui/src/components/ui/suggest-input/index.ts deleted file mode 100644 index f94bc46c3..000000000 --- a/ui/src/components/ui/suggest-input/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as SuggestInput } from './SuggestInput.vue' diff --git a/ui/src/components/ui/switch/Switch.vue b/ui/src/components/ui/switch/Switch.vue deleted file mode 100644 index b71749231..000000000 --- a/ui/src/components/ui/switch/Switch.vue +++ /dev/null @@ -1,47 +0,0 @@ - - - diff --git a/ui/src/components/ui/switch/index.ts b/ui/src/components/ui/switch/index.ts deleted file mode 100644 index c986f8abc..000000000 --- a/ui/src/components/ui/switch/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as Switch } from "./Switch.vue"; diff --git a/ui/src/components/ui/table/Table.vue b/ui/src/components/ui/table/Table.vue deleted file mode 100644 index 574b88c9a..000000000 --- a/ui/src/components/ui/table/Table.vue +++ /dev/null @@ -1,20 +0,0 @@ - - - diff --git a/ui/src/components/ui/table/TableBody.vue b/ui/src/components/ui/table/TableBody.vue deleted file mode 100644 index 0b4b89936..000000000 --- a/ui/src/components/ui/table/TableBody.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - diff --git a/ui/src/components/ui/table/TableCell.vue b/ui/src/components/ui/table/TableCell.vue deleted file mode 100644 index dd3d53102..000000000 --- a/ui/src/components/ui/table/TableCell.vue +++ /dev/null @@ -1,22 +0,0 @@ - - - diff --git a/ui/src/components/ui/table/TableHead.vue b/ui/src/components/ui/table/TableHead.vue deleted file mode 100644 index 01314683c..000000000 --- a/ui/src/components/ui/table/TableHead.vue +++ /dev/null @@ -1,22 +0,0 @@ - - - diff --git a/ui/src/components/ui/table/TableHeader.vue b/ui/src/components/ui/table/TableHeader.vue deleted file mode 100644 index dd62d5529..000000000 --- a/ui/src/components/ui/table/TableHeader.vue +++ /dev/null @@ -1,14 +0,0 @@ - - - diff --git a/ui/src/components/ui/table/TableRow.vue b/ui/src/components/ui/table/TableRow.vue deleted file mode 100644 index 69fda4e1c..000000000 --- a/ui/src/components/ui/table/TableRow.vue +++ /dev/null @@ -1,22 +0,0 @@ - - - diff --git a/ui/src/components/ui/table/index.ts b/ui/src/components/ui/table/index.ts deleted file mode 100644 index 6f5a10dd6..000000000 --- a/ui/src/components/ui/table/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -export { default as Table } from "./Table.vue"; -export { default as TableBody } from "./TableBody.vue"; -export { default as TableCell } from "./TableCell.vue"; -export { default as TableHead } from "./TableHead.vue"; -export { default as TableHeader } from "./TableHeader.vue"; -export { default as TableRow } from "./TableRow.vue"; diff --git a/ui/src/components/ui/tabs/Tabs.vue b/ui/src/components/ui/tabs/Tabs.vue deleted file mode 100644 index 59aca1419..000000000 --- a/ui/src/components/ui/tabs/Tabs.vue +++ /dev/null @@ -1,27 +0,0 @@ - - - diff --git a/ui/src/components/ui/tabs/TabsContent.vue b/ui/src/components/ui/tabs/TabsContent.vue deleted file mode 100644 index b90375b95..000000000 --- a/ui/src/components/ui/tabs/TabsContent.vue +++ /dev/null @@ -1,23 +0,0 @@ - - - diff --git a/ui/src/components/ui/tabs/TabsList.vue b/ui/src/components/ui/tabs/TabsList.vue deleted file mode 100644 index 96b805ff2..000000000 --- a/ui/src/components/ui/tabs/TabsList.vue +++ /dev/null @@ -1,34 +0,0 @@ - - - diff --git a/ui/src/components/ui/tabs/TabsTrigger.vue b/ui/src/components/ui/tabs/TabsTrigger.vue deleted file mode 100644 index 040ed6845..000000000 --- a/ui/src/components/ui/tabs/TabsTrigger.vue +++ /dev/null @@ -1,34 +0,0 @@ - - - diff --git a/ui/src/components/ui/tabs/index.ts b/ui/src/components/ui/tabs/index.ts deleted file mode 100644 index 284fc5daa..000000000 --- a/ui/src/components/ui/tabs/index.ts +++ /dev/null @@ -1,24 +0,0 @@ -import type { VariantProps } from "class-variance-authority"; -import { cva } from "class-variance-authority"; - -export { default as Tabs } from "./Tabs.vue"; -export { default as TabsContent } from "./TabsContent.vue"; -export { default as TabsList } from "./TabsList.vue"; -export { default as TabsTrigger } from "./TabsTrigger.vue"; - -export const tabsListVariants = cva( - "rounded-lg p-0.75 group-data-horizontal/tabs:h-9 data-[variant=line]:rounded-none group/tabs-list inline-flex w-fit items-center justify-center text-muted-foreground group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col", - { - variants: { - variant: { - default: "bg-muted", - line: "gap-1 bg-transparent", - }, - }, - defaultVariants: { - variant: "default", - }, - }, -); - -export type TabsListVariants = VariantProps; diff --git a/ui/src/components/ui/tags-input/TagsInput.vue b/ui/src/components/ui/tags-input/TagsInput.vue deleted file mode 100644 index c95248291..000000000 --- a/ui/src/components/ui/tags-input/TagsInput.vue +++ /dev/null @@ -1,26 +0,0 @@ - - - diff --git a/ui/src/components/ui/tags-input/TagsInputInput.vue b/ui/src/components/ui/tags-input/TagsInputInput.vue deleted file mode 100644 index eb8e6dbd4..000000000 --- a/ui/src/components/ui/tags-input/TagsInputInput.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - diff --git a/ui/src/components/ui/tags-input/TagsInputItem.vue b/ui/src/components/ui/tags-input/TagsInputItem.vue deleted file mode 100644 index 3add8b664..000000000 --- a/ui/src/components/ui/tags-input/TagsInputItem.vue +++ /dev/null @@ -1,20 +0,0 @@ - - - diff --git a/ui/src/components/ui/tags-input/TagsInputItemDelete.vue b/ui/src/components/ui/tags-input/TagsInputItemDelete.vue deleted file mode 100644 index 4e11312d1..000000000 --- a/ui/src/components/ui/tags-input/TagsInputItemDelete.vue +++ /dev/null @@ -1,23 +0,0 @@ - - - diff --git a/ui/src/components/ui/tags-input/TagsInputItemText.vue b/ui/src/components/ui/tags-input/TagsInputItemText.vue deleted file mode 100644 index 19beeedb3..000000000 --- a/ui/src/components/ui/tags-input/TagsInputItemText.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - diff --git a/ui/src/components/ui/tags-input/index.ts b/ui/src/components/ui/tags-input/index.ts deleted file mode 100644 index 31305f348..000000000 --- a/ui/src/components/ui/tags-input/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -export { default as TagsInput } from './TagsInput.vue' -export { default as TagsInputInput } from './TagsInputInput.vue' -export { default as TagsInputItem } from './TagsInputItem.vue' -export { default as TagsInputItemDelete } from './TagsInputItemDelete.vue' -export { default as TagsInputItemText } from './TagsInputItemText.vue' diff --git a/ui/src/components/ui/textarea/Textarea.vue b/ui/src/components/ui/textarea/Textarea.vue deleted file mode 100644 index 691a3ec13..000000000 --- a/ui/src/components/ui/textarea/Textarea.vue +++ /dev/null @@ -1,33 +0,0 @@ - - -