From 67639e54f835182ac3caf8484845cc7b8ec5f055 Mon Sep 17 00:00:00 2001 From: Willie Date: Wed, 18 Nov 2026 22:37:24 +0800 Subject: [PATCH] build(ui): adopt Oxc formatting and type-aware linting (#956) Format the dashboard with Oxfmt and use tsrs for project builds and Oxlint type analysis. Fix the initial typed findings and check formatting and typed lint in CI to keep new changes consistent. --- .devcontainer/devcontainer.json | 3 +- .github/workflows/test.yaml | 22 + scripts/design/tokens.py | 6 +- ui/.oxfmtrc.json | 7 + ui/.oxlintrc.json | 23 + ui/README.md | 78 +- ui/eslint.config.js | 31 - ui/index.html | 19 +- ui/package.json | 20 +- ui/pnpm-lock.yaml | 1705 ++----- ui/src/App.tsx | 244 +- ui/src/api/audit.ts | 30 +- ui/src/api/backups.ts | 37 +- ui/src/api/client.test.ts | 36 +- ui/src/api/client.ts | 12 +- ui/src/api/config.ts | 15 +- ui/src/api/extras.ts | 62 +- ui/src/api/git.ts | 16 +- ui/src/api/hooks.ts | 208 +- ui/src/api/http.ts | 54 +- ui/src/api/hubDrafts.test.ts | 5 +- ui/src/api/hubDrafts.ts | 32 +- ui/src/api/install.ts | 64 +- ui/src/api/instructions.ts | 156 +- ui/src/api/kindQuery.test.ts | 5 +- ui/src/api/log.ts | 6 +- ui/src/api/mcp.test.ts | 13 +- ui/src/api/mcp.ts | 177 +- ui/src/api/mcpCheck.ts | 22 +- ui/src/api/memory.ts | 75 +- ui/src/api/ompExtensions.ts | 19 +- ui/src/api/piExtensions.ts | 52 +- ui/src/api/plugins.test.ts | 97 +- ui/src/api/plugins.ts | 293 +- ui/src/api/resources.test.ts | 36 +- ui/src/api/resources.ts | 63 +- ui/src/api/sseStream.test.ts | 6 +- ui/src/api/sync.ts | 39 +- ui/src/api/system.ts | 29 +- ui/src/api/targets.ts | 69 +- ui/src/api/types/extras.ts | 8 +- ui/src/api/types/targets.ts | 6 +- ui/src/api/types/update.ts | 1 - ui/src/api/update.ts | 24 +- ui/src/components.css | 4462 ++++++++++++++--- ui/src/components/AgentIcon.tsx | 38 +- ui/src/components/Badge.tsx | 16 +- ui/src/components/Button.tsx | 7 +- ui/src/components/Card.tsx | 11 +- ui/src/components/Checkbox.tsx | 12 +- ui/src/components/CodeEditor.tsx | 104 +- ui/src/components/CodeView.tsx | 20 +- ui/src/components/CollectDialog.tsx | 209 +- ui/src/components/ConfigInstallPanel.tsx | 83 +- ui/src/components/ConfirmDialog.tsx | 15 +- ui/src/components/CopyButton.tsx | 3 +- ui/src/components/DialogShell.tsx | 4 +- ui/src/components/DrawnCheck.tsx | 13 +- ui/src/components/ErrorBoundary.tsx | 10 +- ui/src/components/FindingList.tsx | 24 +- ui/src/components/FolderPicker.tsx | 28 +- ui/src/components/Input.tsx | 12 +- ui/src/components/InstallDialog.test.tsx | 215 +- ui/src/components/InstallDialog.tsx | 714 ++- ui/src/components/KeyboardShortcutsModal.tsx | 26 +- ui/src/components/LanguagePopover.tsx | 7 +- ui/src/components/Layout.test.tsx | 88 +- ui/src/components/Layout.tsx | 270 +- ui/src/components/MarkdownView.test.tsx | 14 +- ui/src/components/MarkdownView.tsx | 167 +- ui/src/components/NewFolderFields.tsx | 36 +- ui/src/components/PageHeader.tsx | 22 +- ui/src/components/Pagination.tsx | 28 +- ui/src/components/ProgressBar.tsx | 30 +- ui/src/components/Reveal.tsx | 16 +- ui/src/components/ScrollToTop.tsx | 8 +- ui/src/components/SegmentedControl.tsx | 8 +- ui/src/components/Select.tsx | 498 +- ui/src/components/Skeleton.tsx | 27 +- ui/src/components/SourceBadge.tsx | 6 +- ui/src/components/SourcePathButton.tsx | 46 +- ui/src/components/StatusRail.tsx | 133 +- ui/src/components/StreamProgressBar.tsx | 23 +- ui/src/components/SyncPreviewModal.tsx | 102 +- ui/src/components/SyncResultList.tsx | 75 +- ui/src/components/TargetMenu.tsx | 151 +- ui/src/components/ThemePopover.tsx | 44 +- ui/src/components/Toast.tsx | 53 +- ui/src/components/Tooltip.tsx | 98 +- ui/src/components/TruncateTip.tsx | 12 +- ui/src/components/UpdateDialog.test.tsx | 36 +- ui/src/components/UpdateDialog.tsx | 56 +- ui/src/components/analyze/AnalyzePanel.tsx | 266 +- .../components/audit/AuditAssistantPanel.tsx | 42 +- ui/src/components/audit/AuditOverview.tsx | 8 +- ui/src/components/audit/PatternSummary.tsx | 6 +- ui/src/components/audit/RegexTester.tsx | 28 +- ui/src/components/audit/RiskMeter.tsx | 22 +- ui/src/components/audit/RuleDetailCard.tsx | 13 +- ui/src/components/audit/helpers.ts | 30 +- ui/src/components/backups/FileBackups.tsx | 82 +- .../components/backups/FileRestoreDialog.tsx | 109 +- ui/src/components/backups/HooksBackups.tsx | 42 +- ui/src/components/backups/MCPBackups.tsx | 58 +- .../components/backups/RetentionPopover.tsx | 99 +- ui/src/components/backups/backupView.test.ts | 20 +- ui/src/components/backups/backupView.ts | 53 +- ui/src/components/config/AssistantPanel.tsx | 44 +- ui/src/components/config/DiffPreview.tsx | 14 +- ui/src/components/config/FieldDocs.tsx | 20 +- ui/src/components/config/StructureTree.tsx | 26 +- ui/src/components/extras/ExtraEditDialogs.tsx | 267 +- .../git/PullConflictDialog.test.tsx | 12 +- ui/src/components/git/PullConflictDialog.tsx | 95 +- ui/src/components/git/gitView.test.ts | 15 +- ui/src/components/git/gitView.ts | 7 +- ui/src/components/hooks/CodexTrustDialog.tsx | 104 +- ui/src/components/hooks/HookBindingEditor.tsx | 552 +- ui/src/components/hooks/HookDialog.test.tsx | 367 +- ui/src/components/hooks/HookDialog.tsx | 376 +- ui/src/components/hooks/HooksConfigView.tsx | 190 +- ui/src/components/hooks/HooksImportDialog.tsx | 494 +- ui/src/components/hooks/HooksImportEditor.tsx | 67 +- ui/src/components/hooks/HooksImportRow.tsx | 177 +- ui/src/components/hooks/HooksList.tsx | 121 +- ui/src/components/hooks/HooksPreview.tsx | 248 +- .../hooks/HooksProjectScope.test.tsx | 164 +- ui/src/components/hooks/HooksRemoveDialog.tsx | 151 +- .../components/hooks/HooksRestoreDialog.tsx | 94 +- ui/src/components/hooks/HooksScope.tsx | 296 +- ui/src/components/hooks/HooksSyncBox.tsx | 253 +- .../components/hooks/HooksUnmanagedNote.tsx | 19 +- ui/src/components/hooks/hookCatalog.test.ts | 119 +- ui/src/components/hooks/hookCatalog.ts | 391 +- ui/src/components/hooks/hooksImport.test.ts | 98 +- ui/src/components/hooks/hooksImport.ts | 99 +- ui/src/components/hooks/hooksView.test.ts | 372 +- ui/src/components/hooks/hooksView.ts | 411 +- ui/src/components/hub/AddHubMenu.tsx | 68 +- ui/src/components/hub/AddSkillDialog.tsx | 173 +- ui/src/components/hub/HubEditor.tsx | 109 +- ui/src/components/hub/HubEntryEditor.tsx | 93 +- ui/src/components/hub/HubList.tsx | 19 +- ui/src/components/hub/HubView.tsx | 45 +- ui/src/components/hub/MoreMenu.tsx | 18 +- ui/src/components/hub/ShareDialog.tsx | 82 +- ui/src/components/hub/hubShared.ts | 36 +- .../instructions/AddLocationDialog.test.tsx | 29 +- .../instructions/AddLocationDialog.tsx | 191 +- .../components/instructions/ConvertDialog.tsx | 243 +- .../instructions/InstructionFileList.tsx | 63 +- .../InstructionsEditorDialog.test.tsx | 47 +- .../instructions/InstructionsEditorDialog.tsx | 125 +- .../components/instructions/LocationRows.tsx | 168 +- .../instructions/NewSharedDialog.tsx | 135 +- .../instructions/ProjectInstructions.tsx | 64 +- .../instructions/ProjectSharedFiles.tsx | 210 +- .../instructions/RestorePreviewDialog.tsx | 113 +- .../instructions/SharedInstructions.test.tsx | 75 +- .../instructions/SharedInstructions.tsx | 824 ++- .../instructions/TargetFileDialog.tsx | 113 +- .../instructions/TargetInstructions.test.tsx | 111 +- .../instructions/TargetInstructions.tsx | 474 +- ui/src/components/instructions/ViewTabs.tsx | 91 +- .../instructions/instructionsView.test.ts | 373 +- .../instructions/instructionsView.ts | 223 +- .../instructions/useSaveShortcut.ts | 6 +- ui/src/components/mcp/AgentOptionsFields.tsx | 24 +- ui/src/components/mcp/MCPCheckFindings.tsx | 35 +- ui/src/components/mcp/MCPCheckNote.tsx | 41 +- ui/src/components/mcp/MCPConfigView.tsx | 197 +- ui/src/components/mcp/MCPDefaults.test.tsx | 7 +- ui/src/components/mcp/MCPDefaults.tsx | 25 +- ui/src/components/mcp/MCPFileActions.tsx | 63 +- .../components/mcp/MCPImportDialog.test.tsx | 147 +- ui/src/components/mcp/MCPImportDialog.tsx | 504 +- ui/src/components/mcp/MCPNotices.tsx | 7 +- ui/src/components/mcp/MCPPreview.tsx | 145 +- .../mcp/MCPProjectSettings.test.tsx | 24 +- ui/src/components/mcp/MCPProjectSettings.tsx | 36 +- ui/src/components/mcp/MCPProjectView.test.tsx | 62 +- ui/src/components/mcp/MCPProjectView.tsx | 524 +- .../components/mcp/MCPRemoveDialog.test.tsx | 55 +- ui/src/components/mcp/MCPRemoveDialog.tsx | 106 +- .../components/mcp/MCPRestoreDialog.test.tsx | 23 +- ui/src/components/mcp/MCPRestoreDialog.tsx | 80 +- .../components/mcp/MCPServerDialog.test.tsx | 346 +- ui/src/components/mcp/MCPServerDialog.tsx | 495 +- ui/src/components/mcp/MCPServerList.tsx | 82 +- ui/src/components/mcp/MCPSyncBox.test.tsx | 43 +- ui/src/components/mcp/MCPSyncBox.tsx | 176 +- ui/src/components/mcp/MCPUnmanagedNote.tsx | 17 +- ui/src/components/mcp/PiSettingsFields.tsx | 75 +- ui/src/components/mcp/TargetPicker.tsx | 91 +- ui/src/components/mcp/ToolPolicyFields.tsx | 324 +- ui/src/components/mcp/mcpServerDraft.test.ts | 41 +- ui/src/components/mcp/mcpServerDraft.ts | 176 +- ui/src/components/mcp/mcpView.test.ts | 425 +- ui/src/components/mcp/mcpView.ts | 402 +- ui/src/components/mcp/useMCPCheck.ts | 15 +- ui/src/components/mcp/useMCPToggle.ts | 12 +- ui/src/components/memory/MemoryBrowser.tsx | 338 +- .../components/memory/MemoryGuidance.test.tsx | 89 +- ui/src/components/memory/MemoryGuidance.tsx | 468 +- ui/src/components/memory/MemoryNotes.test.tsx | 169 +- ui/src/components/memory/MemoryNotes.tsx | 356 +- .../components/memory/MemoryOverview.test.tsx | 93 +- ui/src/components/memory/MemoryOverview.tsx | 184 +- ui/src/components/memory/MemoryTools.test.tsx | 134 +- ui/src/components/memory/MemoryTools.tsx | 174 +- ui/src/components/memory/memoryView.test.ts | 21 +- ui/src/components/memory/memoryView.ts | 9 +- .../plugins/PluginAddDialog.test.tsx | 105 +- ui/src/components/plugins/PluginAddDialog.tsx | 410 +- ui/src/components/plugins/PluginAgents.tsx | 138 +- ui/src/components/plugins/PluginDocsLink.tsx | 18 +- .../components/plugins/PluginFilesDialog.tsx | 133 +- ui/src/components/plugins/PluginList.test.tsx | 49 +- ui/src/components/plugins/PluginList.tsx | 291 +- ui/src/components/plugins/PluginRuns.tsx | 112 +- .../components/plugins/PluginShareDialog.tsx | 71 +- .../components/plugins/PluginUpdateDialog.tsx | 527 +- ui/src/components/plugins/agentReasons.ts | 19 +- ui/src/components/plugins/outcomeText.test.ts | 29 +- ui/src/components/plugins/outcomeText.ts | 28 +- ui/src/components/plugins/pluginsFlow.test.ts | 756 ++- ui/src/components/plugins/pluginsFlow.ts | 447 +- .../projects/AddProjectDialog.test.tsx | 56 +- .../components/projects/AddProjectDialog.tsx | 168 +- .../projects/ProjectSyncDialog.test.tsx | 158 +- .../components/projects/ProjectSyncDialog.tsx | 136 +- .../components/projects/ProjectTools.test.tsx | 12 +- ui/src/components/projects/ProjectTools.tsx | 17 +- ui/src/components/projects/RadioOption.tsx | 9 +- .../projects/RemoveProjectDialog.test.tsx | 29 +- .../projects/RemoveProjectDialog.tsx | 47 +- .../projects/projectActions.test.ts | 75 +- ui/src/components/projects/projectActions.ts | 15 +- .../components/projects/projectView.test.ts | 82 +- ui/src/components/projects/projectView.ts | 60 +- ui/src/components/resources/ArrangeMenu.tsx | 25 +- .../components/resources/LinkFolderDialog.tsx | 86 +- .../components/resources/MoveDialog.test.tsx | 299 +- ui/src/components/resources/MoveDialog.tsx | 401 +- ui/src/components/resources/SkillTree.tsx | 148 +- .../components/resources/TreeDetailPane.tsx | 103 +- ui/src/components/resources/TreeSplit.tsx | 36 +- .../components/resources/UninstallDialog.tsx | 120 +- .../resources/UnlinkFolderDialog.tsx | 32 +- ui/src/components/resources/tree.test.ts | 49 +- ui/src/components/resources/tree.ts | 82 +- ui/src/components/skill-editor/DiffView.tsx | 42 +- .../skill-editor/FrontmatterEditor.tsx | 213 +- .../components/skill-editor/SkillEditor.tsx | 178 +- .../components/sync/FolderConflictNotice.tsx | 82 +- ui/src/components/sync/SyncError.tsx | 26 +- ui/src/components/sync/SyncResult.tsx | 39 +- ui/src/components/sync/UnmatchedNotices.tsx | 46 +- ui/src/components/sync/syncView.test.ts | 608 ++- ui/src/components/sync/syncView.ts | 305 +- .../targetFiles/AddFileDialog.test.tsx | 26 +- .../components/targetFiles/AddFileDialog.tsx | 82 +- ui/src/components/targetFiles/FileTabMenu.tsx | 33 +- .../targetFiles/TargetFileTab.test.tsx | 59 +- .../components/targetFiles/TargetFileTab.tsx | 167 +- .../targets/AddTargetDialog.test.tsx | 133 +- ui/src/components/targets/AddTargetDialog.tsx | 597 ++- .../targets/ExtensionsReviewDialog.tsx | 80 +- ui/src/components/targets/FilterSection.tsx | 301 +- ui/src/components/targets/PatternInput.tsx | 15 +- .../components/targets/RemoveTargetDialog.tsx | 58 +- .../targets/SkillsOffDialog.test.tsx | 26 +- ui/src/components/targets/SkillsOffDialog.tsx | 174 +- .../components/targets/TargetHooks.test.tsx | 109 +- ui/src/components/targets/TargetHooks.tsx | 109 +- ui/src/components/targets/TargetMCP.test.tsx | 58 +- ui/src/components/targets/TargetMCP.tsx | 134 +- .../targets/TargetOmpExtensions.test.tsx | 122 +- .../targets/TargetOmpExtensions.tsx | 515 +- .../targets/TargetPiExtensions.test.tsx | 423 +- .../components/targets/TargetPiExtensions.tsx | 722 ++- ui/src/components/targets/targetView.test.ts | 124 +- ui/src/components/targets/targetView.ts | 46 +- ui/src/components/tour/TourOverlay.tsx | 7 +- ui/src/components/tour/TourProvider.tsx | 146 +- ui/src/components/tour/TourTooltip.tsx | 112 +- ui/src/components/tour/tourSteps.test.ts | 4 +- ui/src/components/tour/tourSteps.ts | 17 +- ui/src/components/useNewFolderStep.tsx | 18 +- ui/src/context/ThemeContext.tsx | 34 +- .../__tests__/useAuditYamlValidation.test.ts | 21 +- ui/src/hooks/__tests__/useCursorField.test.ts | 19 +- .../hooks/__tests__/useEditableFile.test.tsx | 28 +- ui/src/hooks/__tests__/useLineDiff.test.ts | 4 +- .../hooks/__tests__/useRouteReport.test.tsx | 9 +- ui/src/hooks/__tests__/useSlow.test.ts | 12 +- ui/src/hooks/useAuditYamlValidation.ts | 22 +- ui/src/hooks/useEditableFile.ts | 5 +- ui/src/hooks/useGlobalShortcuts.ts | 14 +- ui/src/hooks/useInstallFromConfig.ts | 56 +- ui/src/hooks/useLineDiff.ts | 37 +- ui/src/hooks/usePresence.ts | 6 +- ui/src/hooks/useRegexTester.ts | 31 +- ui/src/hooks/useRepoUpdate.ts | 21 +- ui/src/hooks/useSharedQueries.ts | 35 +- ui/src/hooks/useSlow.ts | 5 +- ui/src/hooks/useSyncMatrix.ts | 2 +- ui/src/hooks/useUpdatePolicy.ts | 3 +- ui/src/hooks/useYamlValidation.ts | 105 +- ui/src/i18n/README.md | 2 +- ui/src/i18n/format.ts | 9 +- ui/src/i18n/i18n.test.ts | 16 +- ui/src/i18n/keys.test.ts | 32 +- ui/src/i18n/locales.ts | 14 +- ui/src/index.css | 124 +- ui/src/lib/__tests__/auditFieldDocs.test.ts | 13 +- ui/src/lib/__tests__/fieldDocs.test.ts | 6 +- ui/src/lib/__tests__/formatYaml.test.ts | 38 +- ui/src/lib/__tests__/paths.test.ts | 11 +- ui/src/lib/auditCache.ts | 10 +- ui/src/lib/auditDisplay.test.ts | 23 +- ui/src/lib/auditDisplay.ts | 37 +- ui/src/lib/auditFieldDocs.ts | 31 +- ui/src/lib/auditMessage.test.ts | 24 +- ui/src/lib/auditMessage.ts | 47 +- ui/src/lib/codemirror-theme.ts | 11 +- ui/src/lib/doctorUpdates.test.ts | 56 +- ui/src/lib/doctorUpdates.ts | 4 +- ui/src/lib/exitGhost.ts | 17 +- ui/src/lib/extrasSyncToast.ts | 34 +- ui/src/lib/fieldDocs.ts | 350 +- ui/src/lib/fileTree.ts | 7 +- ui/src/lib/folderOptions.tsx | 21 +- ui/src/lib/formatYaml.ts | 36 +- ui/src/lib/frontmatter.test.ts | 53 +- ui/src/lib/frontmatter.ts | 35 +- ui/src/lib/highlight.tsx | 69 +- ui/src/lib/highlightArgs.tsx | 4 +- ui/src/lib/logFormat.test.ts | 31 +- ui/src/lib/logFormat.ts | 13 +- ui/src/lib/moveFolders.test.ts | 80 +- ui/src/lib/moveFolders.ts | 41 +- ui/src/lib/queryClient.ts | 4 +- ui/src/lib/queryEvents.test.ts | 43 +- ui/src/lib/queryEvents.ts | 43 +- ui/src/lib/queryKeys.ts | 68 +- ui/src/lib/resourceGrouping.test.ts | 96 +- ui/src/lib/resourceGrouping.ts | 115 +- ui/src/lib/resourceNames.ts | 6 +- ui/src/lib/scalarText.ts | 6 + ui/src/lib/segSlide.ts | 21 +- ui/src/lib/severity.ts | 54 +- ui/src/lib/skillsAddCommand.test.ts | 82 +- ui/src/lib/skillsAddCommand.ts | 6 +- ui/src/lib/targetFilter.test.ts | 41 +- ui/src/lib/targetFilter.ts | 20 +- ui/src/lib/upgradeError.test.ts | 36 +- ui/src/lib/upgradeError.ts | 3 +- ui/src/main.tsx | 18 +- ui/src/pages/AuditPage.test.tsx | 109 +- ui/src/pages/AuditPage.tsx | 361 +- ui/src/pages/AuditRulesPage.tsx | 287 +- ui/src/pages/AuditRulesYaml.tsx | 53 +- ui/src/pages/BackupPage.test.tsx | 158 +- ui/src/pages/BackupPage.tsx | 371 +- ui/src/pages/ConfigPage.test.tsx | 49 +- ui/src/pages/ConfigPage.tsx | 379 +- ui/src/pages/DashboardPage.test.tsx | 226 +- ui/src/pages/DashboardPage.tsx | 556 +- ui/src/pages/DoctorPage.tsx | 233 +- ui/src/pages/ExtrasPage.test.tsx | 93 +- ui/src/pages/ExtrasPage.tsx | 892 +++- ui/src/pages/GitSyncPage.test.tsx | 181 +- ui/src/pages/GitSyncPage.tsx | 733 ++- ui/src/pages/HooksPage.test.tsx | 314 +- ui/src/pages/HooksPage.tsx | 13 +- ui/src/pages/HubPage.test.tsx | 151 +- ui/src/pages/HubPage.tsx | 196 +- ui/src/pages/LogPage.tsx | 189 +- ui/src/pages/MCPPage.test.tsx | 189 +- ui/src/pages/MCPPage.tsx | 677 ++- ui/src/pages/NewSkillPage.tsx | 112 +- ui/src/pages/PluginsPage.test.tsx | 486 +- ui/src/pages/PluginsPage.tsx | 756 ++- ui/src/pages/ProjectDetailPage.test.tsx | 71 +- ui/src/pages/ProjectDetailPage.tsx | 332 +- ui/src/pages/ProjectsPage.tsx | 183 +- ui/src/pages/ResourceDetailPage.test.tsx | 212 +- ui/src/pages/ResourceDetailPage.tsx | 1025 +++- ui/src/pages/ResourcesPage.test.tsx | 402 +- ui/src/pages/ResourcesPage.tsx | 1720 +++++-- ui/src/pages/SettingsPage.tsx | 224 +- ui/src/pages/SyncPage.test.tsx | 252 +- ui/src/pages/SyncPage.tsx | 900 +++- ui/src/pages/TargetDetailPage.test.tsx | 89 +- ui/src/pages/TargetDetailPage.tsx | 546 +- ui/src/pages/TargetsPage.tsx | 159 +- ui/src/pages/TrashPage.test.tsx | 4 +- ui/src/pages/TrashPage.tsx | 49 +- ui/src/pages/UpdatePage.test.tsx | 276 +- ui/src/pages/UpdatePage.tsx | 1073 ++-- ui/tsconfig.json | 5 +- ui/vite.config.ts | 16 +- wiki/frontend.md | 2 +- 404 files changed, 46462 insertions(+), 12333 deletions(-) create mode 100644 ui/.oxfmtrc.json create mode 100644 ui/.oxlintrc.json delete mode 100644 ui/eslint.config.js create mode 100644 ui/src/lib/scalarText.ts diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 37683972e..358819fdc 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -23,8 +23,7 @@ "extensions": [ "golang.go", "bradlc.vscode-tailwindcss", - "dbaeumer.vscode-eslint", - "esbenp.prettier-vscode" + "oxc.oxc-vscode" ] } } diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index fe7e9b194..2fe023423 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -65,6 +65,28 @@ jobs: env: SKILLSHARE_TEST_BINARY: ${{ github.workspace }}/bin/skillshare + dashboard-check: + if: *not-release-duplicate + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + ref: ${{ inputs.ref || github.sha }} + - uses: pnpm/action-setup@v4 + with: + version: 12.6.0 + - uses: actions/setup-node@v4 + with: + node-version: "22" + cache: pnpm + cache-dependency-path: ui/pnpm-lock.yaml + - name: Check dashboard formatting and type-aware lint + working-directory: ui + run: | + pnpm install --frozen-lockfile + pnpm format:check + pnpm lint:typed + integration-test: if: *not-release-duplicate runs-on: ${{ matrix.os }} diff --git a/scripts/design/tokens.py b/scripts/design/tokens.py index 76a21657a..dc89cf9a2 100644 --- a/scripts/design/tokens.py +++ b/scripts/design/tokens.py @@ -18,8 +18,8 @@ import sys ROOT = Path(__file__).resolve().parents[2] CSS_PATH = "ui/src/components.css" -LIGHT = ':root:not([data-theme="playful"])' -DARK = ':root:not([data-theme="playful"]).dark' +LIGHT = ":root:not([data-theme='playful'])" +DARK = LIGHT + ".dark" # Every Clean color variable needs a usage note here, or the export fails. COLOR_USAGE = { @@ -80,7 +80,7 @@ SHADOW_USAGE = { def block(css, selector): - match = re.search(r"^" + re.escape(selector) + r" \{", css, re.M) + match = re.search(r"^[ \t]*" + re.escape(selector) + r" \{", css, re.M) if not match: raise ValueError(f"{CSS_PATH}: no rule for {selector}") return css[match.start():css.index("}", match.start())] diff --git a/ui/.oxfmtrc.json b/ui/.oxfmtrc.json new file mode 100644 index 000000000..cc934151f --- /dev/null +++ b/ui/.oxfmtrc.json @@ -0,0 +1,7 @@ +{ + "$schema": "./node_modules/oxfmt/configuration_schema.json", + "singleQuote": true, + "printWidth": 100, + "sortImports": false, + "ignorePatterns": ["dist/**", "public/**", "src/assets/**", "pnpm-lock.yaml"] +} diff --git a/ui/.oxlintrc.json b/ui/.oxlintrc.json new file mode 100644 index 000000000..31e75faf0 --- /dev/null +++ b/ui/.oxlintrc.json @@ -0,0 +1,23 @@ +{ + "$schema": "./node_modules/oxlint/configuration_schema.json", + "plugins": ["typescript", "react", "oxc", "unicorn"], + "categories": { + "correctness": "error" + }, + "rules": { + "react/rules-of-hooks": "error", + "react/exhaustive-deps": "warn", + "react/only-export-components": [ + "warn", + { + "allowConstantExport": true + } + ], + "typescript/no-explicit-any": "warn", + "react/preserve-manual-memoization": "warn", + "react/purity": "warn", + "react/refs": "warn", + "react/set-state-in-effect": "warn" + }, + "ignorePatterns": ["dist/**", "public/**"] +} diff --git a/ui/README.md b/ui/README.md index d2e77611f..82f93ca7c 100644 --- a/ui/README.md +++ b/ui/README.md @@ -1,73 +1,9 @@ -# React + TypeScript + Vite +# Dashboard development -This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. +From `ui/` inside the devcontainer: -Currently, two official plugins are available: - -- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) (or [oxc](https://oxc.rs) when used in [rolldown-vite](https://vite.dev/guide/rolldown)) for Fast Refresh -- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh - -## React Compiler - -The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation). - -## Expanding the ESLint configuration - -If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules: - -```js -export default defineConfig([ - globalIgnores(['dist']), - { - files: ['**/*.{ts,tsx}'], - extends: [ - // Other configs... - - // Remove tseslint.configs.recommended and replace with this - tseslint.configs.recommendedTypeChecked, - // Alternatively, use this for stricter rules - tseslint.configs.strictTypeChecked, - // Optionally, add this for stylistic rules - tseslint.configs.stylisticTypeChecked, - - // Other configs... - ], - languageOptions: { - parserOptions: { - project: ['./tsconfig.node.json', './tsconfig.app.json'], - tsconfigRootDir: import.meta.dirname, - }, - // other options... - }, - }, -]) -``` - -You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules: - -```js -// eslint.config.js -import reactX from 'eslint-plugin-react-x' -import reactDom from 'eslint-plugin-react-dom' - -export default defineConfig([ - globalIgnores(['dist']), - { - files: ['**/*.{ts,tsx}'], - extends: [ - // Other configs... - // Enable lint rules for React - reactX.configs['recommended-typescript'], - // Enable lint rules for React DOM - reactDom.configs.recommended, - ], - languageOptions: { - parserOptions: { - project: ['./tsconfig.node.json', './tsconfig.app.json'], - tsconfigRootDir: import.meta.dirname, - }, - // other options... - }, - }, -]) -``` +- `pnpm lint` checks TypeScript and React code with Oxlint. +- `pnpm lint:typed` runs the same configuration with type information from tsrs. CI runs this check and `pnpm format:check` for the dashboard. +- `pnpm format` applies Oxfmt; `pnpm format:check` checks formatting without writing. +- `pnpm typecheck` checks project references with tsrs. `pnpm build` runs it before Vite. +- `pnpm test` runs the dashboard tests with Vitest. diff --git a/ui/eslint.config.js b/ui/eslint.config.js deleted file mode 100644 index 7d7b25fd5..000000000 --- a/ui/eslint.config.js +++ /dev/null @@ -1,31 +0,0 @@ -import js from '@eslint/js' -import globals from 'globals' -import reactHooks from 'eslint-plugin-react-hooks' -import reactRefresh from 'eslint-plugin-react-refresh' -import tseslint from 'typescript-eslint' -import { defineConfig, globalIgnores } from 'eslint/config' - -export default defineConfig([ - globalIgnores(['dist']), - { - files: ['**/*.{ts,tsx}'], - extends: [ - js.configs.recommended, - tseslint.configs.recommended, - reactHooks.configs.flat.recommended, - reactRefresh.configs.vite, - ], - languageOptions: { - ecmaVersion: 2020, - globals: globals.browser, - }, - rules: { - '@typescript-eslint/no-explicit-any': 'warn', - 'react-refresh/only-export-components': 'warn', - 'react-hooks/preserve-manual-memoization': 'warn', - 'react-hooks/purity': 'warn', - 'react-hooks/refs': 'warn', - 'react-hooks/set-state-in-effect': 'warn', - }, - }, -]) diff --git a/ui/index.html b/ui/index.html index 54cb28666..ac1b0f0f6 100644 --- a/ui/index.html +++ b/ui/index.html @@ -14,19 +14,24 @@ - + diff --git a/ui/package.json b/ui/package.json index ae9e082dc..271e67a03 100644 --- a/ui/package.json +++ b/ui/package.json @@ -1,12 +1,16 @@ { "name": "ui", - "private": true, "version": "0.0.0", + "private": true, "type": "module", "scripts": { "dev": "vite", - "build": "tsc -b && vite build", - "lint": "eslint .", + "build": "pnpm typecheck && vite build", + "typecheck": "tsrs -b", + "lint": "oxlint .", + "lint:typed": "oxlint --type-aware .", + "format": "oxfmt --write", + "format:check": "oxfmt --check", "preview": "vite preview", "test": "vitest run" }, @@ -39,7 +43,6 @@ "yaml": "^2.8.2" }, "devDependencies": { - "@eslint/js": "^9.39.1", "@tanstack/react-query-devtools": "^5.91.3", "@testing-library/jest-dom": "^6.9.1", "@testing-library/react": "^16.3.2", @@ -48,13 +51,10 @@ "@types/react": "^19.3.0", "@types/react-dom": "^19.3.0", "@vitejs/plugin-react": "^6.1.1", - "eslint": "^9.39.1", - "eslint-plugin-react-hooks": "^7.0.1", - "eslint-plugin-react-refresh": "^0.4.24", - "globals": "^16.5.0", "jsdom": "^28.1.0", - "typescript": "~6.0.3", - "typescript-eslint": "^8.70.0", + "oxfmt": "^0.79.0", + "oxlint": "^1.94.0", + "tsrs": "0.25.0-ts7.1.0-beta", "vite": "^8.3.1", "vitest": "^4.1.0" } diff --git a/ui/pnpm-lock.yaml b/ui/pnpm-lock.yaml index 1764770c3..04b9d6b44 100644 --- a/ui/pnpm-lock.yaml +++ b/ui/pnpm-lock.yaml @@ -95,9 +95,6 @@ importers: specifier: ^2.8.2 version: 2.8.2 devDependencies: - '@eslint/js': - specifier: ^9.39.1 - version: 9.39.2 '@tanstack/react-query-devtools': specifier: ^5.91.3 version: 5.91.3(@tanstack/react-query@5.90.21(react@19.3.0))(react@19.3.0) @@ -122,27 +119,18 @@ importers: '@vitejs/plugin-react': specifier: ^6.1.1 version: 6.1.1(vite@8.3.1(@types/node@24.10.11)(esbuild@0.27.3)(jiti@2.7.0)(yaml@2.8.2)) - eslint: - specifier: ^9.39.1 - version: 9.39.2(jiti@2.7.0)(supports-color@7.2.0) - eslint-plugin-react-hooks: - specifier: ^7.0.1 - version: 7.0.1(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0) - eslint-plugin-react-refresh: - specifier: ^0.4.24 - version: 0.4.26(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0)) - globals: - specifier: ^16.5.0 - version: 16.5.0 jsdom: specifier: ^28.1.0 version: 28.1.0(supports-color@7.2.0) - typescript: - specifier: ~6.0.3 - version: 6.0.3 - typescript-eslint: - specifier: ^8.70.0 - version: 8.70.0(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3) + oxfmt: + specifier: ^0.79.0 + version: 0.79.0 + oxlint: + specifier: ^1.94.0 + version: 1.94.0 + tsrs: + specifier: 0.25.0-ts7.1.0-beta + version: 0.25.0-ts7.1.0-beta vite: specifier: ^8.3.1 version: 8.3.1(@types/node@24.10.11)(esbuild@0.27.3)(jiti@2.7.0)(yaml@2.8.2) @@ -168,85 +156,18 @@ packages: '@asamuzakjp/nwsapi@2.3.9': resolution: {integrity: sha512-n8GuYSrI9bF7FFZ/SjhwevlHc8xaVlb/7HmHelnc/PZXBD2ZR49NnN9sMMuDdEGPeeRQ5d0hqlSlEpgCX3Wl0Q==} - '@babel/code-frame@7.29.0': - resolution: {integrity: sha512-9NhCeYjq9+3uxgdtp20LSiJXJvN0FeCtNGpJxuMFZ1Kv3cWUNb6DOhJwUvcVCzKGR66cw4njwM6hrJLqgOwbcw==} - engines: {node: '>=6.9.0'} - '@babel/code-frame@7.29.7': resolution: {integrity: sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==} engines: {node: '>=6.9.0'} - '@babel/compat-data@7.29.0': - resolution: {integrity: sha512-T1NCJqT/j9+cn8fvkt7jtwbLBfLC/1y1c7NtCeXFRgzGTsafi68MRv8yzkYSapBnFA6L3U2VSc02ciDzoAJhJg==} - engines: {node: '>=6.9.0'} - - '@babel/core@7.29.0': - resolution: {integrity: sha512-CGOfOJqWjg2qW/Mb6zNsDm+u5vFQ8DxXfbM09z69p5Z6+mE1ikP2jUXw+j42Pf1XTYED2Rni5f95npYeuwMDQA==} - engines: {node: '>=6.9.0'} - - '@babel/generator@7.29.1': - resolution: {integrity: sha512-qsaF+9Qcm2Qv8SRIMMscAvG4O3lJ0F1GuMo5HR/Bp02LopNgnZBC/EkbevHFeGs4ls/oPz9v+Bsmzbkbe+0dUw==} - engines: {node: '>=6.9.0'} - - '@babel/helper-compilation-targets@7.28.6': - resolution: {integrity: sha512-JYtls3hqi15fcx5GaSNL7SCTJ2MNmjrkHXg4FSpOA/grxK8KwyZ5bubHsCq8FXCkua6xhuaaBit+3b7+VZRfcA==} - engines: {node: '>=6.9.0'} - - '@babel/helper-globals@7.28.0': - resolution: {integrity: sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==} - engines: {node: '>=6.9.0'} - - '@babel/helper-module-imports@7.28.6': - resolution: {integrity: sha512-l5XkZK7r7wa9LucGw9LwZyyCUscb4x37JWTPz7swwFE/0FMQAGpiWUZn8u9DzkSBWEcK25jmvubfpw2dnAMdbw==} - engines: {node: '>=6.9.0'} - - '@babel/helper-module-transforms@7.28.6': - resolution: {integrity: sha512-67oXFAYr2cDLDVGLXTEABjdBJZ6drElUSI7WKp70NrpyISso3plG9SAGEF6y7zbha/wOzUByWWTJvEDVNIUGcA==} - engines: {node: '>=6.9.0'} - peerDependencies: - '@babel/core': ^7.0.0 - - '@babel/helper-string-parser@7.27.1': - resolution: {integrity: sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==} - engines: {node: '>=6.9.0'} - - '@babel/helper-validator-identifier@7.28.5': - resolution: {integrity: sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==} - engines: {node: '>=6.9.0'} - '@babel/helper-validator-identifier@7.29.7': resolution: {integrity: sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==} engines: {node: '>=6.9.0'} - '@babel/helper-validator-option@7.27.1': - resolution: {integrity: sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==} - engines: {node: '>=6.9.0'} - - '@babel/helpers@7.28.6': - resolution: {integrity: sha512-xOBvwq86HHdB7WUDTfKfT/Vuxh7gElQ+Sfti2Cy6yIWNW05P8iUslOVcZ4/sKbE+/jQaukQAdz/gf3724kYdqw==} - engines: {node: '>=6.9.0'} - - '@babel/parser@7.29.0': - resolution: {integrity: sha512-IyDgFV5GeDUVX4YdF/3CPULtVGSXXMLh1xVIgdCgxApktqnQV0r7/8Nqthg+8YLGaAtdyIlo2qIdZrbCv4+7ww==} - engines: {node: '>=6.0.0'} - hasBin: true - '@babel/runtime@7.28.6': resolution: {integrity: sha512-05WQkdpL9COIMz4LjTxGpPNCdlpyimKppYNoJ5Di5EUObifl8t4tuLuUBBZEpoLYOmfvIWrsp9fCl0HoPRVTdA==} engines: {node: '>=6.9.0'} - '@babel/template@7.28.6': - resolution: {integrity: sha512-YA6Ma2KsCdGb+WC6UpBVFJGXL58MDA6oyONbjyF/+5sBgxY/dwkhLogbMT2GXXyU84/IhRw/2D1Os1B/giz+BQ==} - engines: {node: '>=6.9.0'} - - '@babel/traverse@7.29.0': - resolution: {integrity: sha512-4HPiQr0X7+waHfyXPZpWPfWL/J7dcN1mx9gL6WdQVMbPnF3+ZhSMs8tCxN7oHddJE9fhNE7+lxdnlyemKfJRuA==} - engines: {node: '>=6.9.0'} - - '@babel/types@7.29.0': - resolution: {integrity: sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==} - engines: {node: '>=6.9.0'} - '@bramus/specificity@2.4.2': resolution: {integrity: sha512-ctxtJ/eA+t+6q2++vj5j7FYX3nRu311q1wfYH3xjlLOsczhlhxAg2FWNUXhpGvAw3BWo1xBcvOV6/YLc2r5FJw==} hasBin: true @@ -474,44 +395,6 @@ packages: cpu: [x64] os: [win32] - '@eslint-community/eslint-utils@4.9.1': - resolution: {integrity: sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - peerDependencies: - eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 - - '@eslint-community/regexpp@4.12.2': - resolution: {integrity: sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==} - engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} - - '@eslint/config-array@0.21.1': - resolution: {integrity: sha512-aw1gNayWpdI/jSYVgzN5pL0cfzU02GT3NBpeT/DXbx1/1x7ZKxFPd9bwrzygx/qiwIQiJ1sw/zD8qY/kRvlGHA==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - '@eslint/config-helpers@0.4.2': - resolution: {integrity: sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - '@eslint/core@0.17.0': - resolution: {integrity: sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - '@eslint/eslintrc@3.3.3': - resolution: {integrity: sha512-Kr+LPIUVKz2qkx1HAMH8q1q6azbqBAsXJUxBl/ODDuVPX45Z9DfwB8tPjTi6nNZ8BuM3nbJxC5zCAg5elnBUTQ==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - '@eslint/js@9.39.2': - resolution: {integrity: sha512-q1mjIoW1VX4IvSocvM/vbTiveKC4k9eLrajNEuSsmjymSDEbpGddtpfOoN7YGAqBK3NG+uqo8ia4PDTt8buCYA==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - '@eslint/object-schema@2.1.7': - resolution: {integrity: sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - '@eslint/plugin-kit@0.4.1': - resolution: {integrity: sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@exodus/bytes@1.15.0': resolution: {integrity: sha512-UY0nlA+feH81UGSHv92sLEPLCeZFjXOuHhrIo0HQydScuQc8s0A7kL/UdgwgDq8g8ilksmuoF35YVTNphV2aBQ==} engines: {node: ^20.19.0 || ^22.12.0 || >=24.0.0} @@ -521,22 +404,6 @@ packages: '@noble/hashes': optional: true - '@humanfs/core@0.19.1': - resolution: {integrity: sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==} - engines: {node: '>=18.18.0'} - - '@humanfs/node@0.16.7': - resolution: {integrity: sha512-/zUx+yOsIrG4Y43Eh2peDeKCxlRt/gET6aHfaKpuq267qXdYDFViVHfMaLyygZOnl0kGWxFIgsBy8QFuTLUXEQ==} - engines: {node: '>=18.18.0'} - - '@humanwhocodes/module-importer@1.0.1': - resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==} - engines: {node: '>=12.22'} - - '@humanwhocodes/retry@0.4.3': - resolution: {integrity: sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==} - engines: {node: '>=18.18'} - '@jridgewell/gen-mapping@0.3.13': resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==} @@ -583,6 +450,250 @@ packages: '@oxc-project/types@0.151.0': resolution: {integrity: sha512-J1yXrIlNDZVzE3ada310xeAw7nH8yCAyLPuUIsjKatFPmfn5bS1oW+cM+QsGOtVWd5nhSpbwZWx/rue+r5Z+PA==} + '@oxfmt/binding-android-arm-eabi@0.79.0': + resolution: {integrity: sha512-xOCQ/rvokUXs8SxOQY5Wy2ukPaZJZ0PmdJovN0ryB1c8DVEtbcvliLdYtINUYh8QOTpmBOctIisSJk9tvh+J6w==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [android] + + '@oxfmt/binding-android-arm64@0.79.0': + resolution: {integrity: sha512-WMLDvCjjchUYtI6zXKOdzTDGm72BaYZiz1/VhB1rrxdakUZRlJh1aMr3CT6ui51uHcWVBycULIXSZHpw6u2pTQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [android] + + '@oxfmt/binding-darwin-arm64@0.79.0': + resolution: {integrity: sha512-+LzSN7w7tULz96ntS1Uqe5oI00XZ0o/m/t3+eSfiQp3aTPnj2eGUafqEWryMLk84j7x9NiF+GEP2YT4/BfClgA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [darwin] + + '@oxfmt/binding-darwin-x64@0.79.0': + resolution: {integrity: sha512-KFiMRhKeiiooaS1dKc4r8AZgOrfOhwVe1yf/aRef+8BajJwtVjMtlsQl/BNRxtkFbq13GjEo/4Q+9YhFGU4o6g==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [darwin] + + '@oxfmt/binding-freebsd-x64@0.79.0': + resolution: {integrity: sha512-lHVIp0g8ZOFKiqVscvttp+3HJkkRH6XkGgfAA0lVexIlE1mMFVp4V7RBdxz/P9p7T8pSNsYdapFWvdT21Mib9w==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [freebsd] + + '@oxfmt/binding-linux-arm-gnueabihf@0.79.0': + resolution: {integrity: sha512-Pt35GoxiMUfnr+23cuzk07XQVvISDFxxPcp/aFVB87+RQvJoQaBo/XN7Re9XxgElvbELdyxTLnV9XM2aTfJeUA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [linux] + + '@oxfmt/binding-linux-arm-musleabihf@0.79.0': + resolution: {integrity: sha512-zPi9Dni58VKp3r1QUcFvnbJNfBr49qyecq0vlM4SaX/MSjmguq77VngirghDua5tyhIDfqdUMTCK2KRlnZFp/g==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [linux] + + '@oxfmt/binding-linux-arm64-gnu@0.79.0': + resolution: {integrity: sha512-XhRehATEWjwX7VVEgDUD+7pfHYncQIJaEU0qsHvEKtu9XX0QYzcKvXhU9+URfiGX9WRh3wy2Ow+YCc3EeHtImg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@oxfmt/binding-linux-arm64-musl@0.79.0': + resolution: {integrity: sha512-gbVjFZYug0MEyqvuTAzXGNxFJmBqBO32o1Fud1lG8bGs6oVz48ZtNQyEcAzqrOwaaG+Sxtv4gVzcsfht9aqmkg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@oxfmt/binding-linux-ppc64-gnu@0.79.0': + resolution: {integrity: sha512-0N0sD3vnllyuiNh1r6zKvNXWE/CakcPKJAespg7XE2+sfvxpz5Q1iFah8sF5aedsOmVvbZaOPZcSHVmMosT1fA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@oxfmt/binding-linux-riscv64-gnu@0.79.0': + resolution: {integrity: sha512-YtjqUHolcX6cv0ZMZuKQCM4H0ae/okcowy0wGcPHJk4O+8zjy3TvNhzDQ1/KGCkMJO8Fwulm1JcPJsraVJ3p+w==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [riscv64] + os: [linux] + libc: [glibc] + + '@oxfmt/binding-linux-riscv64-musl@0.79.0': + resolution: {integrity: sha512-H2gb9bEBr5tcdP5FU8JYTfgOavXDorWcAAlwci/zEKF2jzgh/oEr/SAw6aHB9n3FLEvnKvOh0A1fjku+vgYoUA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [riscv64] + os: [linux] + libc: [musl] + + '@oxfmt/binding-linux-s390x-gnu@0.79.0': + resolution: {integrity: sha512-aZUbyWW5dSOxT/u6suWc4S9GVDt7YPPNMKQon+z79M8dpXmosadcFHAb7jBhpU7Hdsd2GN6/y3nd0JFTsGddZw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@oxfmt/binding-linux-x64-gnu@0.79.0': + resolution: {integrity: sha512-5pW/ZHYfjjQ71gQR+EKzDz8ZzWIDHlTUtWtxVFNgZbKxVZnRxiSXVrllbjpJtx1q8VtSPZ+Lyg9BLny3yw+PTA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@oxfmt/binding-linux-x64-musl@0.79.0': + resolution: {integrity: sha512-3IVUerTDB7Dvd90c1EurAzlVnlE9Azl7Wn8e33qX3wL/IqnslF+P7HvwkD+VeMbHxRtuw0EEBGSArZFXpUAZrQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [musl] + + '@oxfmt/binding-openharmony-arm64@0.79.0': + resolution: {integrity: sha512-C5QDgJBtu9+/2BQScoP7ynv54PLOqfoSqhRWwI0D0RPOwYD4tYj0TUdJbXMO1fNegL/5zJiSOxkq6II2xvttWg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [openharmony] + + '@oxfmt/binding-win32-arm64-msvc@0.79.0': + resolution: {integrity: sha512-zlW1m8M49vNGgqQF/ze80KW8pZMicnW2XDZGBHuYtXTRYn4ewvgpqN9wwoqb6uLZZfb1R1zaQWKEB8cs7KYjwA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [win32] + + '@oxfmt/binding-win32-ia32-msvc@0.79.0': + resolution: {integrity: sha512-wbb7hFv2wK3SCTfu8dl1ydNsXM5dmH+PJMU3sojCkfKcG29VDpITL5/AtouCzXjkOc90QRkcAZcg36gP0KqoHA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [ia32] + os: [win32] + + '@oxfmt/binding-win32-x64-msvc@0.79.0': + resolution: {integrity: sha512-JLaeaQ+4LkQiVXY06JIV1dBFEDJzssvDieK/3Poi6CsY+c4UxghZVrrsfcKGJ5R/0F2Sw3C5Lf5Hu0sM5qJfPw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [win32] + + '@oxlint/binding-android-arm-eabi@1.94.0': + resolution: {integrity: sha512-730FKSBsKg/NawYnpI3gXRroXptOVqY32iYBPLUZaSx0vgYzOeiNtwojZL4gJdzo9wDvHUlstShmGRHrWcbRYg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [android] + + '@oxlint/binding-android-arm64@1.94.0': + resolution: {integrity: sha512-8v8TICIiZpXLot1HSq5+vsG9NEKQ5czQBYlUqJR75OVfFDr3cGOmRU/CtHDWnS4tm8nW+Z4Y357qGToSfYqFvA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [android] + + '@oxlint/binding-darwin-arm64@1.94.0': + resolution: {integrity: sha512-NePcRMO/ltt1Pnytohl6pl0bd/QyRX8HbpptuDz9LK7FTsFD4lKxDMBt7di9k6IFLO0J05jO2nm7wGqIh6dRHA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [darwin] + + '@oxlint/binding-darwin-x64@1.94.0': + resolution: {integrity: sha512-QV+m+OaEgLmYyillvP1wKXhMm6tDZEWx3vG7Wjmx9ybg15+6YMfqzvp6e+uPukC6zNywuule0vMn0fZgihZzZA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [darwin] + + '@oxlint/binding-freebsd-x64@1.94.0': + resolution: {integrity: sha512-KVZjca581nrV6P71kZ9M1otBib9LH0IMn9rr4mrnbRp18V0HiZhBHbU26gji/Ieq2G34qMacnMc3zrmKmvWqWA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [freebsd] + + '@oxlint/binding-linux-arm-gnueabihf@1.94.0': + resolution: {integrity: sha512-AMQtgQJk8DgdIV+qaQ5sFoHAko4iKa8zo+gYqELy2grtU8hXWB08DAGB3u90aQL1YSxbd3zqHjgcODBHDFyzBQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [linux] + + '@oxlint/binding-linux-arm-musleabihf@1.94.0': + resolution: {integrity: sha512-ZLzoGVGAmQkp9leeB5rNxAXLcvlmkmd/GY71LKd5uikk+28NEApY3S2FB3pq6MkfOCFFnFg6QgD9lJIjd07D0Q==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [linux] + + '@oxlint/binding-linux-arm64-gnu@1.94.0': + resolution: {integrity: sha512-N1dW6o7cY90hLVkDsvz8nWIFOwbO+n272pvW7uLYB7u47HagJVnLChfK6QA9dWFdiPudud9zfksVUOciHc5PNA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@oxlint/binding-linux-arm64-musl@1.94.0': + resolution: {integrity: sha512-7tCF4OV/bGDQ2xxgb+sDI97SpmmDrUII4JxTG553voJVA9cnkbXSGSXzo78Ax73BuhEOPoQc2Qi6VrfT0cDG2A==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@oxlint/binding-linux-ppc64-gnu@1.94.0': + resolution: {integrity: sha512-B5vUHE4wNisVEuaYxwFUn6tY+vw7A+9APxxqGKI+UmP3yKLpkhnt0qsaCrzjpX55F8rCRHBaTvIDdYo32NE36g==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@oxlint/binding-linux-riscv64-gnu@1.94.0': + resolution: {integrity: sha512-/U0b15+c4hTodo8YhEqDlQ6OjnGKvc8igjM/mh23ukqqCUBKiBCaxqUV8bcaofK9uZ+f8wCygkyXLS6LN25YSA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [riscv64] + os: [linux] + libc: [glibc] + + '@oxlint/binding-linux-riscv64-musl@1.94.0': + resolution: {integrity: sha512-ba94Vwl0qOnwXIXNDR33AEbLXuX++ckM74t+9Te7CiPSPAHivhOYyeEkUAicrvOEei1pxXkWggLbFeBFFBTuHA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [riscv64] + os: [linux] + libc: [musl] + + '@oxlint/binding-linux-s390x-gnu@1.94.0': + resolution: {integrity: sha512-GVwwwms3O8pdgbCiPavwq2vltyB4661GkDz6kJduZ0E5nsSJUDJ0svaP+ePYpuDVYi4+K1qhCKnWa/Ec8I4LUA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@oxlint/binding-linux-x64-gnu@1.94.0': + resolution: {integrity: sha512-iUfCFJN8ZIresSnpTfiIkhF3s8X+XA4I9KJ249QwR2QYTMwh0+pla1pj1xaFi+HtR9McjM4Jaemf70HzX7ilOQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@oxlint/binding-linux-x64-musl@1.94.0': + resolution: {integrity: sha512-RqWVeWpDACS4Oh0m21OBmy+CQ50CbbhuHFmNNPVS2P/4R3d188MjEuEuV7So82/tAM8UAT+UuMDtRDESd9NJ7g==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [musl] + + '@oxlint/binding-openharmony-arm64@1.94.0': + resolution: {integrity: sha512-K/2DHOUoypwYVqzxJMRPdMuBKjAetZEAsGPP7rHimd+2+5J1TxM+17pG8kw+ayH4+rqBXiPd+H9wgPcU+fF77A==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [openharmony] + + '@oxlint/binding-win32-arm64-msvc@1.94.0': + resolution: {integrity: sha512-hYOCaOJiB4ZCGswBWKl3JQrhqu6mnC5DCUw/1UMNzRXgsHIJ0V226J43LAVICVIDGlhFUZTYShFW+wHWpt6qCQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [win32] + + '@oxlint/binding-win32-ia32-msvc@1.94.0': + resolution: {integrity: sha512-1l1FDlzbPmAeDoZ8UGspOE2dOmz1ZL6SlDsvOmRCmWSQjCdTy5LzUepS8mO/SGpAoz4D6WAt/yNZAUyHqbkmkQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [ia32] + os: [win32] + + '@oxlint/binding-win32-x64-msvc@1.94.0': + resolution: {integrity: sha512-I3eZdd4bemIJQDNv9XDV/FEofDxIoN32tzCv98wIgLdW05EqxZb5hF4AwPrRzHD/dQhl0n7KgPy5AQPfM0HWrA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [win32] + '@rolldown/binding-android-arm-eabi@1.2.11': resolution: {integrity: sha512-A5kXfGKvKWWZE0TtPrfsvT+q4Y5d1QG8gGUzpYjGydM+fARM9MuX90PrXYXe0XbsDVgyxxNzHo6giCj90bsFNw==} engines: {node: ^20.19.0 || >=22.12.0} @@ -825,6 +936,58 @@ packages: peerDependencies: '@testing-library/dom': '>=7.21.4' + '@tsrs/darwin-arm64@0.25.0-ts7.1.0-beta': + resolution: {integrity: sha512-+pYoQ+AqpdUolO4kJBQlQmwxJOoc5INuusw/2AZnR4frfnyVGza+gEn0br8Z0LOk7nklQuILuMKH93BU3hpHvA==} + engines: {node: '>=16.20.0'} + cpu: [arm64] + os: [darwin] + + '@tsrs/darwin-x64@0.25.0-ts7.1.0-beta': + resolution: {integrity: sha512-MnD5Bv48TdIcTpNavsg7PV6RUuwAKhozJ29CZDlKq6oZwGjGulcQLI3Sok6MvvCG7U6v4l9RONKO8BhNXCytvQ==} + engines: {node: '>=16.20.0'} + cpu: [x64] + os: [darwin] + + '@tsrs/linux-arm64-gnu@0.25.0-ts7.1.0-beta': + resolution: {integrity: sha512-Mc/YuFQa7APDuX39UMr8NMQHKkCOmEx8SfUXVnew7eljJHKnUkpLHpoQFQA0aKnzIqDAxnNudXhIWB0DjZEX2A==} + engines: {node: '>=16.20.0'} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@tsrs/linux-arm64-musl@0.25.0-ts7.1.0-beta': + resolution: {integrity: sha512-ZTZxIv/W4qiqDBCXcDlr8ma76JCO0DQHbUukuhpSpKHz3E2m5FCwLcra/NTqAVniyLU6/RjIOCIcDRpVQvq6cQ==} + engines: {node: '>=16.20.0'} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@tsrs/linux-x64-gnu@0.25.0-ts7.1.0-beta': + resolution: {integrity: sha512-dGRvubxWQXNP3aow+RLgFAbW3pR4oQ+UPfwrSgdggKCKKL9sAPr8nFGYM50JWAiqGQYSwRJl48AzIC7bHuQ2cQ==} + engines: {node: '>=16.20.0'} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@tsrs/linux-x64-musl@0.25.0-ts7.1.0-beta': + resolution: {integrity: sha512-zm89HYpXAv36XuXrEsfxAEmGTehY5K0L27+tFmJzxX2CqLwki0AX4FGA78Fy97x8Yk8kOR8FJO2xTvSW9vXBIg==} + engines: {node: '>=16.20.0'} + cpu: [x64] + os: [linux] + libc: [musl] + + '@tsrs/win32-arm64@0.25.0-ts7.1.0-beta': + resolution: {integrity: sha512-fVqAnHvFD2vxIHxVJEeQq9W63QZUW6WLy1+qFVuMUdM5ViURhjzcuLgOx8EIGqp6qOqFDpuAlNPQmjUpTXYg2g==} + engines: {node: '>=16.20.0'} + cpu: [arm64] + os: [win32] + + '@tsrs/win32-x64@0.25.0-ts7.1.0-beta': + resolution: {integrity: sha512-BfRCSI5E0LQ3kim43dBqX3Dq3dmRUI2aMWLGcgUxbTEkyvsESX01tM7u31flzRRajw3zVZwVB95kh5xvUeIOkA==} + engines: {node: '>=16.20.0'} + cpu: [x64] + os: [win32] + '@types/aria-query@5.0.4': resolution: {integrity: sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==} @@ -846,9 +1009,6 @@ packages: '@types/hast@3.0.4': resolution: {integrity: sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==} - '@types/json-schema@7.0.15': - resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} - '@types/mdast@4.0.4': resolution: {integrity: sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==} @@ -872,65 +1032,6 @@ packages: '@types/unist@3.0.3': resolution: {integrity: sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==} - '@typescript-eslint/eslint-plugin@8.70.0': - resolution: {integrity: sha512-/v8HZt6RlyIZxB3ntehELOcUcfxKPVGWXnQdJuHRmzrqgF8nQypcC/oxGW+Ot4VGKDq81XugPKxx0n5PBtf9PA==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - '@typescript-eslint/parser': ^8.70.0 - eslint: ^8.57.0 || ^9.0.0 || ^10.0.0 - typescript: '>=4.8.4 <6.1.0' - - '@typescript-eslint/parser@8.70.0': - resolution: {integrity: sha512-zYvrmj9Yxd63UGaXw+kdt6A0F0s0qveJyuatIM77bYC2DE4pgmg7a50u8LR7PRtXd0x+h+Tl3eXabGm06SWd3Q==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - eslint: ^8.57.0 || ^9.0.0 || ^10.0.0 - typescript: '>=4.8.4 <6.1.0' - - '@typescript-eslint/project-service@8.70.0': - resolution: {integrity: sha512-hFHbTNqhU9G+2eKFXCBVb1tjFT/LceiJ4+HfLO4pTpDI0KHi6iajpcFFkaSQ9gXmCh7n82A0PthaayEdN6mspQ==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - typescript: '>=4.8.4 <6.1.0' - - '@typescript-eslint/scope-manager@8.70.0': - resolution: {integrity: sha512-8nP3Kwh5hlgZ4FicGvmznAmJe8UL4sdU8tLukrPaMuQmDuk4Y8xYfzu/aYZW4xT2JCgc7H/TpDI5cGlxcWJSqQ==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - '@typescript-eslint/tsconfig-utils@8.70.0': - resolution: {integrity: sha512-adnkeeNq9Sq1sUf4+FRVc0KdgYghzsgFpZSQVZVvY0LCuUuN0FnQgyGzCJeC4fW1cdXseBAjU2EOqUIjbNcZUw==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - typescript: '>=4.8.4 <6.1.0' - - '@typescript-eslint/type-utils@8.70.0': - resolution: {integrity: sha512-NUMKIhYVaVIVLnRL9CRt+VVcuLgSHUCpXn4/+K8wql+vdInUzvx8BjUO1oJ7cG9shjFJKtF8F8Hh2kCh3/KBVw==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - eslint: ^8.57.0 || ^9.0.0 || ^10.0.0 - typescript: '>=4.8.4 <6.1.0' - - '@typescript-eslint/types@8.70.0': - resolution: {integrity: sha512-asTOIYhDg4zdzOScCyaytrsV3cR6B4ecPQlXw/dJIm7J/MZTtCtfVII9JD8Geh4jTCrK/Xe6cg5UevoleMcoJQ==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - '@typescript-eslint/typescript-estree@8.70.0': - resolution: {integrity: sha512-d9NmHMPEKQ7QCLLm1jI3zmoQBwT5KwFYjXBJ9ymZfKCUU+5rmTRykKAFvH5Qn/ZCds3CEAFS9OC9M/jkl0X2bA==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - typescript: '>=4.8.4 <6.1.0' - - '@typescript-eslint/utils@8.70.0': - resolution: {integrity: sha512-oZmtKJz/4fufZ2p3+Cn3ijEojcdfR+1zYDH2xKYrEly0dR/Q/1xUPRCOlKGxod78nWlU2UnDe09GZ3TaknBFGA==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - eslint: ^8.57.0 || ^9.0.0 || ^10.0.0 - typescript: '>=4.8.4 <6.1.0' - - '@typescript-eslint/visitor-keys@8.70.0': - resolution: {integrity: sha512-BoC8PiO4Hkdo0TVJh9Ntxr5MxPDI7/oFsrygN5ADelFSeXG/qgNuucIGA+L5Z6JpPTE/uRfcTWtscjbUaufepQ==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@uiw/codemirror-extensions-basic-setup@4.25.4': resolution: {integrity: sha512-YzNwkm0AbPv1EXhCHYR5v0nqfemG2jEB0Z3Att4rBYqKrlG7AA9Rhjc3IyBaOzsBu18wtrp9/+uhTyu7TXSRng==} peerDependencies: @@ -1002,38 +1103,18 @@ packages: '@vitest/utils@4.1.0': resolution: {integrity: sha512-XfPXT6a8TZY3dcGY8EdwsBulFCIw+BeeX0RZn2x/BtiY/75YGh8FeWGG8QISN/WhaqSrE2OrlDgtF8q5uhOTmw==} - acorn-jsx@5.3.2: - resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} - peerDependencies: - acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 - - acorn@8.15.0: - resolution: {integrity: sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==} - engines: {node: '>=0.4.0'} - hasBin: true - agent-base@7.1.4: resolution: {integrity: sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==} engines: {node: '>= 14'} - ajv@6.12.6: - resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==} - 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'} - ansi-styles@5.2.0: resolution: {integrity: sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==} engines: {node: '>=10'} - argparse@2.0.1: - resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} - aria-query@5.3.0: resolution: {integrity: sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==} @@ -1048,39 +1129,9 @@ packages: bail@2.0.2: resolution: {integrity: sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==} - balanced-match@1.0.2: - resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} - - balanced-match@4.0.4: - resolution: {integrity: sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==} - engines: {node: 18 || 20 || >=22} - - baseline-browser-mapping@2.9.19: - resolution: {integrity: sha512-ipDqC8FrAl/76p2SSWKSI+H9tFwm7vYqXQrItCuiVPt26Km0jS+NzSsBWAaBusvSbQcfJG+JitdMm+wZAgTYqg==} - hasBin: true - bidi-js@1.0.3: resolution: {integrity: sha512-RKshQI1R3YQ+n9YJz2QQ147P66ELpa1FQEg20Dk8oW9t2KgLbpDLLp9aGZ7y8WHSshDknG0bknqGw5/tyCs5tw==} - brace-expansion@1.1.12: - resolution: {integrity: sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==} - - brace-expansion@5.0.12: - resolution: {integrity: sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==} - engines: {node: 20 || >=22} - - browserslist@4.28.1: - resolution: {integrity: sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA==} - engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} - hasBin: true - - callsites@3.1.0: - resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} - engines: {node: '>=6'} - - caniuse-lite@1.0.30001769: - resolution: {integrity: sha512-BCfFL1sHijQlBGWBMuJyhZUhzo7wer5sVj9hqekB/7xn0Ypy+pER/edCYQm4exbXj4WiySGp40P8UuTh6w1srg==} - ccount@2.0.1: resolution: {integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==} @@ -1088,10 +1139,6 @@ packages: resolution: {integrity: sha512-NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg==} engines: {node: '>=18'} - chalk@4.1.2: - resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} - engines: {node: '>=10'} - character-entities-html4@2.1.0: resolution: {integrity: sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==} @@ -1107,19 +1154,9 @@ packages: codemirror@6.0.2: resolution: {integrity: sha512-VhydHotNW5w1UGK0Qj96BwSk/Zqbp9WbnyK2W/eVMv4QyF41INRGpjUhFJY7/uDNuudSc33a/PKr4iDqRduvHw==} - 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==} - concat-map@0.0.1: - resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} - convert-source-map@2.0.0: resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} @@ -1130,10 +1167,6 @@ packages: crelt@1.0.7: resolution: {integrity: sha512-aK6BbWfhf4U/wCcLHKPJl/xa6VkVstRaPywWtMKGwuOLc/wZTyQYuoxgvZnNsBvv7Kg3YTBQYYBCggcviQczuA==} - cross-spawn@7.0.6: - resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} - engines: {node: '>= 8'} - css-tree@3.2.1: resolution: {integrity: sha512-X7sjQzceUhu1u7Y/ylrRZFU2FS6LRiFVp6rKLPg23y3x3c3DOKAwuXGDp+PAGjh6CSnCjYeAul8pcT8bAl+lSA==} engines: {node: ^10 || ^12.20.0 || ^14.13.0 || >=15.0.0} @@ -1167,9 +1200,6 @@ packages: decode-named-character-reference@1.3.0: resolution: {integrity: sha512-GtpQYB283KrPp6nRw50q3U9/VfOutZOe103qlN7BPP6Ad27xYnOIWv4lPzo8HCAL+mMZofJ9KEy30fq6MfaK6Q==} - deep-is@0.1.4: - resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==} - dequal@2.0.3: resolution: {integrity: sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==} engines: {node: '>=6'} @@ -1187,9 +1217,6 @@ packages: dom-accessibility-api@0.6.3: resolution: {integrity: sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==} - electron-to-chromium@1.5.286: - resolution: {integrity: sha512-9tfDXhJ4RKFNerfjdCcZfufu49vg620741MNs26a9+bhLThdB+plgMeou98CAaHu/WATj2iHOOHTp1hWtABj2A==} - enhanced-resolve@5.21.6: resolution: {integrity: sha512-aNnGCvbJ/RIyWo1IuhNdVjnNF+EjH9wpzpNHt+ci/m9He9LJvUN8wrCcXjp9cWsGNAuvSpVFTx/vraAFQ8qGjQ==} engines: {node: '>=10.13.0'} @@ -1206,82 +1233,16 @@ packages: engines: {node: '>=18'} hasBin: true - escalade@3.2.0: - resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==} - engines: {node: '>=6'} - - escape-string-regexp@4.0.0: - resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} - engines: {node: '>=10'} - escape-string-regexp@5.0.0: resolution: {integrity: sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==} engines: {node: '>=12'} - eslint-plugin-react-hooks@7.0.1: - resolution: {integrity: sha512-O0d0m04evaNzEPoSW+59Mezf8Qt0InfgGIBJnpC0h3NH/WjUAR7BIKUfysC6todmtiZ/A0oUVS8Gce0WhBrHsA==} - engines: {node: '>=18'} - peerDependencies: - eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0 - - eslint-plugin-react-refresh@0.4.26: - resolution: {integrity: sha512-1RETEylht2O6FM/MvgnyvT+8K21wLqDNg4qD51Zj3guhjt433XbnnkVttHMyaVyAFD03QSV4LPS5iE3VQmO7XQ==} - peerDependencies: - eslint: '>=8.40' - - eslint-scope@8.4.0: - resolution: {integrity: sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - eslint-visitor-keys@3.4.3: - resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - - eslint-visitor-keys@4.2.1: - resolution: {integrity: sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - eslint-visitor-keys@5.0.1: - resolution: {integrity: sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==} - engines: {node: ^20.19.0 || ^22.13.0 || >=24} - - eslint@9.39.2: - resolution: {integrity: sha512-LEyamqS7W5HB3ujJyvi0HQK/dtVINZvd5mAAp9eT5S/ujByGjiZLCzPcHVzuXbpJDJF/cxwHlfceVUDZ2lnSTw==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options. - hasBin: true - peerDependencies: - jiti: '*' - peerDependenciesMeta: - jiti: - optional: true - - espree@10.4.0: - resolution: {integrity: sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - esquery@1.7.0: - resolution: {integrity: sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==} - engines: {node: '>=0.10'} - - esrecurse@4.3.0: - resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==} - engines: {node: '>=4.0'} - - estraverse@5.3.0: - resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==} - engines: {node: '>=4.0'} - estree-util-is-identifier-name@3.0.0: resolution: {integrity: sha512-hFtqIDZTIUZ9BXLb8y4pYGyk6+wekIivNVTcmvk8NoOh+VeRn5y6cEHzbURrWbfp1fIqdVipilzj+lfaadNZmg==} estree-walker@3.0.3: resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==} - esutils@2.0.3: - resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} - engines: {node: '>=0.10.0'} - expect-type@1.3.0: resolution: {integrity: sha512-knvyeauYhqjOYvQ66MznSMs83wmHrCycNEN6Ao+2AeYEfxUIkuiVxdEa1qlGEPK+We3n0THiDciYSsCcgW/DoA==} engines: {node: '>=12.0.0'} @@ -1289,15 +1250,6 @@ packages: extend@3.0.2: resolution: {integrity: sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==} - fast-deep-equal@3.1.3: - resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} - - fast-json-stable-stringify@2.1.0: - resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==} - - fast-levenshtein@2.0.6: - resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==} - fdir@6.5.0: resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==} engines: {node: '>=12.0.0'} @@ -1307,21 +1259,6 @@ packages: picomatch: optional: true - file-entry-cache@8.0.0: - resolution: {integrity: sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==} - engines: {node: '>=16.0.0'} - - find-up@5.0.0: - resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==} - engines: {node: '>=10'} - - flat-cache@4.0.1: - resolution: {integrity: sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==} - engines: {node: '>=16'} - - flatted@3.3.3: - resolution: {integrity: sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==} - fsevents@2.3.3: resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} @@ -1330,22 +1267,6 @@ packages: gemoji@8.1.0: resolution: {integrity: sha512-HA4Gx59dw2+tn+UAa7XEV4ufUKI4fH1KgcbenVA9YKSj1QJTT0xh5Mwv5HMFNN3l2OtUe3ZIfuRwSyZS5pLIWw==} - gensync@1.0.0-beta.2: - resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==} - engines: {node: '>=6.9.0'} - - glob-parent@6.0.2: - resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==} - engines: {node: '>=10.13.0'} - - globals@14.0.0: - resolution: {integrity: sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==} - engines: {node: '>=18'} - - globals@16.5.0: - resolution: {integrity: sha512-c/c15i26VrJ4IRt5Z89DnIzCGDn9EcebibhAOjw5ibqEHsE1wLUgkPn9RDmNcUKyU87GeaL633nyJ+pplFR2ZQ==} - engines: {node: '>=18'} - graceful-fs@4.2.11: resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} @@ -1377,12 +1298,6 @@ packages: hastscript@9.0.1: resolution: {integrity: sha512-g7df9rMFX/SPi34tyGCyUBREQoKkapwdY/T04Qn9TDWfHhAYt4/I0gMVirzK5wEzeUqIjEB+LXC/ypb7Aqno5w==} - hermes-estree@0.25.1: - resolution: {integrity: sha512-0wUoCcLp+5Ev5pDW2OriHC2MJCbwLwuRx+gAqMTOkGKJJiBCLjtrvy4PWUGn6MIVefecRpzoOZ/UV6iGdOr+Cw==} - - hermes-parser@0.25.1: - resolution: {integrity: sha512-6pEjquH3rqaI6cYAXYPcz9MS4rY6R4ngRgrgfDshRptUZIc3lw0MCIJIGDj9++mfySOuPTHB4nrSW99BCvOPIA==} - html-encoding-sniffer@6.0.0: resolution: {integrity: sha512-CV9TW3Y3f8/wT0BRFc1/KAVQ3TUHiXmaAb6VW9vtiMFf7SLoMd1PdAc4W3KFOFETBJUb90KatHqlsZMWV+R9Gg==} engines: {node: ^20.19.0 || ^22.12.0 || >=24.0.0} @@ -1401,22 +1316,6 @@ packages: resolution: {integrity: sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==} engines: {node: '>= 14'} - ignore@5.3.2: - resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==} - engines: {node: '>= 4'} - - ignore@7.0.5: - resolution: {integrity: sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==} - engines: {node: '>= 4'} - - import-fresh@3.3.1: - resolution: {integrity: sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==} - engines: {node: '>=6'} - - imurmurhash@0.1.4: - resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==} - engines: {node: '>=0.8.19'} - indent-string@4.0.0: resolution: {integrity: sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==} engines: {node: '>=8'} @@ -1433,14 +1332,6 @@ packages: is-decimal@2.0.1: resolution: {integrity: sha512-AAB9hiomQs5DXWcRB1rqsxGUstbRroFOPPVAomNk/3XHR5JyEZChOyTWe2oayKnsSsr/kcGqF+z6yuH6HHpN0A==} - is-extglob@2.1.1: - resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} - engines: {node: '>=0.10.0'} - - is-glob@4.0.3: - resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} - engines: {node: '>=0.10.0'} - is-hexadecimal@2.0.1: resolution: {integrity: sha512-DgZQp241c8oO6cA1SbTEWiXeoxV42vlcJxgH+B3hi1AiqqKruZR3ZGF8In3fj4+/y/7rHvlOZLZtgJ/4ttYGZg==} @@ -1451,9 +1342,6 @@ packages: is-potential-custom-element-name@1.0.1: resolution: {integrity: sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==} - isexe@2.0.0: - resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} - jiti@2.7.0: resolution: {integrity: sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==} hasBin: true @@ -1461,10 +1349,6 @@ packages: js-tokens@4.0.0: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} - js-yaml@4.1.1: - resolution: {integrity: sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==} - hasBin: true - jsdom@28.1.0: resolution: {integrity: sha512-0+MoQNYyr2rBHqO1xilltfDjV9G7ymYGlAUazgcDLQaUf8JDHbuGwsxN6U9qWaElZ4w1B2r7yEGIL3GdeW3Rug==} engines: {node: ^20.19.0 || ^22.12.0 || >=24.0.0} @@ -1474,32 +1358,6 @@ packages: canvas: optional: true - jsesc@3.1.0: - resolution: {integrity: sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==} - engines: {node: '>=6'} - hasBin: true - - json-buffer@3.0.1: - resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==} - - json-schema-traverse@0.4.1: - resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==} - - json-stable-stringify-without-jsonify@1.0.1: - resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==} - - json5@2.2.3: - resolution: {integrity: sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==} - engines: {node: '>=6'} - hasBin: true - - keyv@4.5.4: - resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==} - - levn@0.4.1: - resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} - engines: {node: '>= 0.8.0'} - lightningcss-android-arm64@1.32.0: resolution: {integrity: sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==} engines: {node: '>= 12.0.0'} @@ -1648,13 +1506,6 @@ packages: resolution: {integrity: sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==} engines: {node: '>= 12.0.0'} - locate-path@6.0.0: - resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==} - engines: {node: '>=10'} - - lodash.merge@4.6.2: - resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} - longest-streak@3.1.0: resolution: {integrity: sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==} @@ -1662,9 +1513,6 @@ packages: resolution: {integrity: sha512-ESL2CrkS/2wTPfuend7Zhkzo2u0daGJ/A2VucJOgQ/C48S/zB8MMeMHSGKYpXhIjbPxfuezITkaBH1wqv00DDQ==} engines: {node: 20 || >=22} - lru-cache@5.1.1: - resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==} - lucide-react@0.563.0: resolution: {integrity: sha512-8dXPB2GI4dI8jV4MgUDGBeLdGk8ekfqVZ0BdLcrRzocGgG75ltNEmWS+gE7uokKF/0oSUuczNDT+g9hFJ23FkA==} peerDependencies: @@ -1819,13 +1667,6 @@ packages: resolution: {integrity: sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==} engines: {node: '>=4'} - minimatch@10.2.6: - resolution: {integrity: sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==} - engines: {node: 18 || 20 || >=22} - - minimatch@3.1.2: - resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} - ms@2.1.3: resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} @@ -1834,30 +1675,37 @@ packages: engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} hasBin: true - natural-compare@1.4.0: - resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} - - node-releases@2.0.27: - resolution: {integrity: sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==} - obug@2.1.1: resolution: {integrity: sha512-uTqF9MuPraAQ+IsnPf366RG4cP9RtUi7MLO1N3KEc+wb0a6yKpeL0lmk2IB1jY5KHPAlTc6T/JRdC/YqxHNwkQ==} - optionator@0.9.4: - resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==} - engines: {node: '>= 0.8.0'} + oxfmt@0.79.0: + resolution: {integrity: sha512-92iLHGxAgtYk6jLp/1ZBnEeABveNduHZgMDQj7tyqO9iafuJG3q+YHJq0R5Aa4YT+E6xswMQXdmPZYMwynS8ig==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + peerDependencies: + '@astrojs/compiler-rs': ^0.5.0 + svelte: ^5.0.0 + vite-plus: '*' + peerDependenciesMeta: + '@astrojs/compiler-rs': + optional: true + svelte: + optional: true + vite-plus: + optional: true - p-limit@3.1.0: - resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==} - engines: {node: '>=10'} - - p-locate@5.0.0: - resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==} - engines: {node: '>=10'} - - parent-module@1.0.1: - resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==} - engines: {node: '>=6'} + oxlint@1.94.0: + resolution: {integrity: sha512-Fnt+3wSKRhtLmvgRfxgRX0excSPCoyiXRol4eWKZLtXxWMQtwQ3KjKQUYXOw5loyinfnZfGzh4RCYf7opfL0vw==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + peerDependencies: + oxlint-tsgolint: '>=7.0.2007' + vite-plus: '*' + peerDependenciesMeta: + oxlint-tsgolint: + optional: true + vite-plus: + optional: true parse-entities@4.0.2: resolution: {integrity: sha512-GG2AQYWoLgL877gQIKeRPGO1xF9+eG1ujIb5soS5gPvLQ1y2o8FL90w2QWNdf9I361Mpp7726c+lj3U0qK1uGw==} @@ -1868,14 +1716,6 @@ packages: parse5@8.0.0: resolution: {integrity: sha512-9m4m5GSgXjL4AjumKzq1Fgfp3Z8rsvjRNbnkVwfu2ImRqE5D0LnY2QfDen18FSY9C573YU5XxSapdHZTZ2WolA==} - path-exists@4.0.0: - resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==} - engines: {node: '>=8'} - - path-key@3.1.1: - resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} - engines: {node: '>=8'} - pathe@2.0.3: resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==} @@ -1894,10 +1734,6 @@ packages: resolution: {integrity: sha512-RRuzqDtt5Y9h3quz5hWhK+TPnsmVs6WwSU6LkJMeY4HstUEDuYTG8UJSdawMRzmzAtV+KEoG8N3Qg2qLy5vM/A==} engines: {node: ^10 || ^12 || >=14} - prelude-ls@1.2.1: - resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} - engines: {node: '>= 0.8.0'} - pretty-format@27.5.1: resolution: {integrity: sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==} engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} @@ -1982,10 +1818,6 @@ packages: resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==} engines: {node: '>=0.10.0'} - resolve-from@4.0.0: - resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} - engines: {node: '>=4'} - rolldown@1.2.11: resolution: {integrity: sha512-qpSwIyz0jHQq5qXBTNxFmE6664rJ7O+4TvPFOiOaBSrz8IOHc1koKKSqTM2H6u1UG1+TveuC6vaDHKXFOvb1Kw==} engines: {node: ^20.19.0 || >=22.12.0} @@ -1998,26 +1830,9 @@ packages: scheduler@0.28.0: resolution: {integrity: sha512-juorfCmIkIw8tT+p5BXSm6PJjQF/ycEYmKyzURCIt/RaZIhL+PulbQ9Yu2z1HdOJDdqDTlxA1+xKBmHXJsczAw==} - semver@6.3.1: - resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==} - hasBin: true - - semver@7.7.4: - resolution: {integrity: sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==} - engines: {node: '>=10'} - hasBin: true - set-cookie-parser@2.7.2: resolution: {integrity: sha512-oeM1lpU/UvhTxw+g3cIfxXHyJRc/uidd3yK1P242gzHds0udQBYzs3y8j4gCCW+ZJ7ad0yctld8RYO+bdurlvw==} - shebang-command@2.0.0: - resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} - engines: {node: '>=8'} - - shebang-regex@3.0.0: - resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} - engines: {node: '>=8'} - siginfo@2.0.0: resolution: {integrity: sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==} @@ -2041,10 +1856,6 @@ packages: resolution: {integrity: sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==} engines: {node: '>=8'} - strip-json-comments@3.1.1: - resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} - engines: {node: '>=8'} - style-mod@4.1.4: resolution: {integrity: sha512-XXWIQt633/EpAFx8aZDOTjBzrCaGmhvEQlQo6MVPfa2OzO2cWo+4hV9h+6UkHYlXGfy+ODXKUdP7Pthmcu5ATw==} @@ -2083,6 +1894,10 @@ packages: resolution: {integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==} engines: {node: '>=12.0.0'} + tinypool@2.2.0: + resolution: {integrity: sha512-jBrmx4lYmaC9k/mgPbylxs7kBUxHtD8256up+HjLaDFfXScKJQyil+SWXSvhAtT7XHo+yTVlpB81PGmHP8oLSQ==} + engines: {node: ^20.0.0 || >=22.0.0} + tinyrainbow@3.0.3: resolution: {integrity: sha512-PSkbLUoxOFRzJYjjxHJt9xro7D+iilgMX/C9lawzVuYiIdcihh9DXmVibBe8lmcFrRi/VzlPjBxbN7rH24q8/Q==} engines: {node: '>=14.0.0'} @@ -2108,26 +1923,9 @@ packages: trough@2.2.0: resolution: {integrity: sha512-tmMpK00BjZiUyVyvrBK7knerNgmgvcV/KLVyuma/SC+TQN167GrMRciANTz09+k3zW8L8t60jWO1GpfkZdjTaw==} - ts-api-utils@2.5.0: - resolution: {integrity: sha512-OJ/ibxhPlqrMM0UiNHJ/0CKQkoKF243/AEmplt3qpRgkW8VG7IfOS41h7V8TjITqdByHzrjcS/2si+y4lIh8NA==} - engines: {node: '>=18.12'} - peerDependencies: - typescript: '>=4.8.4' - - type-check@0.4.0: - resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} - engines: {node: '>= 0.8.0'} - - typescript-eslint@8.70.0: - resolution: {integrity: sha512-P/W5cz70/cQAuKfY3xwQMWWTV7BvJ0mAQmi+9mBcsVPaBUpd6Ohpa+fECv9rBFrQcig86jAiNBFNWUqnTjr4pw==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - eslint: ^8.57.0 || ^9.0.0 || ^10.0.0 - typescript: '>=4.8.4 <6.1.0' - - typescript@6.0.3: - resolution: {integrity: sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==} - engines: {node: '>=14.17'} + tsrs@0.25.0-ts7.1.0-beta: + resolution: {integrity: sha512-J7eAkkriIwHExX2TzwTW6flJ/fmg3U+FDQwmTUkvaYmo02iva69YPmxFaCXGYIlsED3l1Aa62hSsEDJewBrIKA==} + engines: {node: '>=16.20.0'} hasBin: true undici-types@7.16.0: @@ -2155,15 +1953,6 @@ packages: unist-util-visit@5.1.0: resolution: {integrity: sha512-m+vIdyeCOpdr/QeQCu2EzxX/ohgS8KbnPDgFni4dQsfSCtpz8UqDyY5GjRru8PDKuYn7Fq19j1CQ+nJSsGKOzg==} - update-browserslist-db@1.2.3: - resolution: {integrity: sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==} - hasBin: true - peerDependencies: - browserslist: '>= 4.21.0' - - uri-js@4.4.1: - resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} - vfile-location@5.0.3: resolution: {integrity: sha512-5yXvWDEgqeiYiBe1lbxYF7UMAIm/IcopxMHrMQDq3nvKcjPKIhZklUKL+AE7J7uApI4kwe2snsK+eI6UTj9EHg==} @@ -2273,20 +2062,11 @@ packages: resolution: {integrity: sha512-1to4zXBxmXHV3IiSSEInrreIlu02vUOvrhxJJH5vcxYTBDAx51cqZiKdyTxlecdKNSjj8EcxGBxNf6Vg+945gw==} engines: {node: ^20.19.0 || ^22.12.0 || >=24.0.0} - which@2.0.2: - resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} - engines: {node: '>= 8'} - hasBin: true - why-is-node-running@2.3.0: resolution: {integrity: sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==} engines: {node: '>=8'} hasBin: true - word-wrap@1.2.5: - resolution: {integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==} - engines: {node: '>=0.10.0'} - xml-name-validator@5.0.0: resolution: {integrity: sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg==} engines: {node: '>=18'} @@ -2294,27 +2074,11 @@ packages: xmlchars@2.2.0: resolution: {integrity: sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==} - yallist@3.1.1: - resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==} - yaml@2.8.2: resolution: {integrity: sha512-mplynKqc1C2hTVYxd0PU2xQAc22TI1vShAYGksCCfxbn/dFwnHTNi1bvYsBTkhdUNtGIf5xNOg938rrSSYvS9A==} engines: {node: '>= 14.6'} hasBin: true - yocto-queue@0.1.0: - resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} - engines: {node: '>=10'} - - zod-validation-error@4.0.2: - resolution: {integrity: sha512-Q6/nZLe6jxuU80qb/4uJ4t5v2VEZ44lzQjPDhYJNztRQ4wyWc6VF3D3Kb/fAuPetZQnhS3hnajCf9CsWesghLQ==} - engines: {node: '>=18.0.0'} - peerDependencies: - zod: ^3.25.0 || ^4.0.0 - - zod@4.3.6: - resolution: {integrity: sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg==} - zwitch@2.0.4: resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==} @@ -2342,116 +2106,16 @@ snapshots: '@asamuzakjp/nwsapi@2.3.9': {} - '@babel/code-frame@7.29.0': - dependencies: - '@babel/helper-validator-identifier': 7.28.5 - js-tokens: 4.0.0 - picocolors: 1.1.1 - '@babel/code-frame@7.29.7': dependencies: '@babel/helper-validator-identifier': 7.29.7 js-tokens: 4.0.0 picocolors: 1.1.1 - '@babel/compat-data@7.29.0': {} - - '@babel/core@7.29.0(supports-color@7.2.0)': - dependencies: - '@babel/code-frame': 7.29.0 - '@babel/generator': 7.29.1 - '@babel/helper-compilation-targets': 7.28.6 - '@babel/helper-module-transforms': 7.28.6(@babel/core@7.29.0(supports-color@7.2.0))(supports-color@7.2.0) - '@babel/helpers': 7.28.6 - '@babel/parser': 7.29.0 - '@babel/template': 7.28.6 - '@babel/traverse': 7.29.0(supports-color@7.2.0) - '@babel/types': 7.29.0 - '@jridgewell/remapping': 2.3.5 - convert-source-map: 2.0.0 - debug: 4.4.3(supports-color@7.2.0) - gensync: 1.0.0-beta.2 - json5: 2.2.3 - semver: 6.3.1 - transitivePeerDependencies: - - supports-color - - '@babel/generator@7.29.1': - dependencies: - '@babel/parser': 7.29.0 - '@babel/types': 7.29.0 - '@jridgewell/gen-mapping': 0.3.13 - '@jridgewell/trace-mapping': 0.3.31 - jsesc: 3.1.0 - - '@babel/helper-compilation-targets@7.28.6': - dependencies: - '@babel/compat-data': 7.29.0 - '@babel/helper-validator-option': 7.27.1 - browserslist: 4.28.1 - lru-cache: 5.1.1 - semver: 6.3.1 - - '@babel/helper-globals@7.28.0': {} - - '@babel/helper-module-imports@7.28.6(supports-color@7.2.0)': - dependencies: - '@babel/traverse': 7.29.0(supports-color@7.2.0) - '@babel/types': 7.29.0 - transitivePeerDependencies: - - supports-color - - '@babel/helper-module-transforms@7.28.6(@babel/core@7.29.0(supports-color@7.2.0))(supports-color@7.2.0)': - dependencies: - '@babel/core': 7.29.0(supports-color@7.2.0) - '@babel/helper-module-imports': 7.28.6(supports-color@7.2.0) - '@babel/helper-validator-identifier': 7.28.5 - '@babel/traverse': 7.29.0(supports-color@7.2.0) - transitivePeerDependencies: - - supports-color - - '@babel/helper-string-parser@7.27.1': {} - - '@babel/helper-validator-identifier@7.28.5': {} - '@babel/helper-validator-identifier@7.29.7': {} - '@babel/helper-validator-option@7.27.1': {} - - '@babel/helpers@7.28.6': - dependencies: - '@babel/template': 7.28.6 - '@babel/types': 7.29.0 - - '@babel/parser@7.29.0': - dependencies: - '@babel/types': 7.29.0 - '@babel/runtime@7.28.6': {} - '@babel/template@7.28.6': - dependencies: - '@babel/code-frame': 7.29.0 - '@babel/parser': 7.29.0 - '@babel/types': 7.29.0 - - '@babel/traverse@7.29.0(supports-color@7.2.0)': - dependencies: - '@babel/code-frame': 7.29.0 - '@babel/generator': 7.29.1 - '@babel/helper-globals': 7.28.0 - '@babel/parser': 7.29.0 - '@babel/template': 7.28.6 - '@babel/types': 7.29.0 - debug: 4.4.3(supports-color@7.2.0) - transitivePeerDependencies: - - supports-color - - '@babel/types@7.29.0': - dependencies: - '@babel/helper-string-parser': 7.27.1 - '@babel/helper-validator-identifier': 7.28.5 - '@bramus/specificity@2.4.2': dependencies: css-tree: 3.2.1 @@ -2642,65 +2306,8 @@ snapshots: '@esbuild/win32-x64@0.27.3': optional: true - '@eslint-community/eslint-utils@4.9.1(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))': - dependencies: - eslint: 9.39.2(jiti@2.7.0)(supports-color@7.2.0) - eslint-visitor-keys: 3.4.3 - - '@eslint-community/regexpp@4.12.2': {} - - '@eslint/config-array@0.21.1(supports-color@7.2.0)': - dependencies: - '@eslint/object-schema': 2.1.7 - debug: 4.4.3(supports-color@7.2.0) - minimatch: 3.1.2 - transitivePeerDependencies: - - supports-color - - '@eslint/config-helpers@0.4.2': - dependencies: - '@eslint/core': 0.17.0 - - '@eslint/core@0.17.0': - dependencies: - '@types/json-schema': 7.0.15 - - '@eslint/eslintrc@3.3.3(supports-color@7.2.0)': - dependencies: - ajv: 6.12.6 - debug: 4.4.3(supports-color@7.2.0) - espree: 10.4.0 - globals: 14.0.0 - ignore: 5.3.2 - import-fresh: 3.3.1 - js-yaml: 4.1.1 - minimatch: 3.1.2 - strip-json-comments: 3.1.1 - transitivePeerDependencies: - - supports-color - - '@eslint/js@9.39.2': {} - - '@eslint/object-schema@2.1.7': {} - - '@eslint/plugin-kit@0.4.1': - dependencies: - '@eslint/core': 0.17.0 - levn: 0.4.1 - '@exodus/bytes@1.15.0': {} - '@humanfs/core@0.19.1': {} - - '@humanfs/node@0.16.7': - dependencies: - '@humanfs/core': 0.19.1 - '@humanwhocodes/retry': 0.4.3 - - '@humanwhocodes/module-importer@1.0.1': {} - - '@humanwhocodes/retry@0.4.3': {} - '@jridgewell/gen-mapping@0.3.13': dependencies: '@jridgewell/sourcemap-codec': 1.5.5 @@ -2760,6 +2367,120 @@ snapshots: '@oxc-project/types@0.151.0': {} + '@oxfmt/binding-android-arm-eabi@0.79.0': + optional: true + + '@oxfmt/binding-android-arm64@0.79.0': + optional: true + + '@oxfmt/binding-darwin-arm64@0.79.0': + optional: true + + '@oxfmt/binding-darwin-x64@0.79.0': + optional: true + + '@oxfmt/binding-freebsd-x64@0.79.0': + optional: true + + '@oxfmt/binding-linux-arm-gnueabihf@0.79.0': + optional: true + + '@oxfmt/binding-linux-arm-musleabihf@0.79.0': + optional: true + + '@oxfmt/binding-linux-arm64-gnu@0.79.0': + optional: true + + '@oxfmt/binding-linux-arm64-musl@0.79.0': + optional: true + + '@oxfmt/binding-linux-ppc64-gnu@0.79.0': + optional: true + + '@oxfmt/binding-linux-riscv64-gnu@0.79.0': + optional: true + + '@oxfmt/binding-linux-riscv64-musl@0.79.0': + optional: true + + '@oxfmt/binding-linux-s390x-gnu@0.79.0': + optional: true + + '@oxfmt/binding-linux-x64-gnu@0.79.0': + optional: true + + '@oxfmt/binding-linux-x64-musl@0.79.0': + optional: true + + '@oxfmt/binding-openharmony-arm64@0.79.0': + optional: true + + '@oxfmt/binding-win32-arm64-msvc@0.79.0': + optional: true + + '@oxfmt/binding-win32-ia32-msvc@0.79.0': + optional: true + + '@oxfmt/binding-win32-x64-msvc@0.79.0': + optional: true + + '@oxlint/binding-android-arm-eabi@1.94.0': + optional: true + + '@oxlint/binding-android-arm64@1.94.0': + optional: true + + '@oxlint/binding-darwin-arm64@1.94.0': + optional: true + + '@oxlint/binding-darwin-x64@1.94.0': + optional: true + + '@oxlint/binding-freebsd-x64@1.94.0': + optional: true + + '@oxlint/binding-linux-arm-gnueabihf@1.94.0': + optional: true + + '@oxlint/binding-linux-arm-musleabihf@1.94.0': + optional: true + + '@oxlint/binding-linux-arm64-gnu@1.94.0': + optional: true + + '@oxlint/binding-linux-arm64-musl@1.94.0': + optional: true + + '@oxlint/binding-linux-ppc64-gnu@1.94.0': + optional: true + + '@oxlint/binding-linux-riscv64-gnu@1.94.0': + optional: true + + '@oxlint/binding-linux-riscv64-musl@1.94.0': + optional: true + + '@oxlint/binding-linux-s390x-gnu@1.94.0': + optional: true + + '@oxlint/binding-linux-x64-gnu@1.94.0': + optional: true + + '@oxlint/binding-linux-x64-musl@1.94.0': + optional: true + + '@oxlint/binding-openharmony-arm64@1.94.0': + optional: true + + '@oxlint/binding-win32-arm64-msvc@1.94.0': + optional: true + + '@oxlint/binding-win32-ia32-msvc@1.94.0': + optional: true + + '@oxlint/binding-win32-x64-msvc@1.94.0': + optional: true + '@rolldown/binding-android-arm-eabi@1.2.11': optional: true @@ -2926,6 +2647,30 @@ snapshots: dependencies: '@testing-library/dom': 10.4.1 + '@tsrs/darwin-arm64@0.25.0-ts7.1.0-beta': + optional: true + + '@tsrs/darwin-x64@0.25.0-ts7.1.0-beta': + optional: true + + '@tsrs/linux-arm64-gnu@0.25.0-ts7.1.0-beta': + optional: true + + '@tsrs/linux-arm64-musl@0.25.0-ts7.1.0-beta': + optional: true + + '@tsrs/linux-x64-gnu@0.25.0-ts7.1.0-beta': + optional: true + + '@tsrs/linux-x64-musl@0.25.0-ts7.1.0-beta': + optional: true + + '@tsrs/win32-arm64@0.25.0-ts7.1.0-beta': + optional: true + + '@tsrs/win32-x64@0.25.0-ts7.1.0-beta': + optional: true + '@types/aria-query@5.0.4': {} '@types/chai@5.2.3': @@ -2949,8 +2694,6 @@ snapshots: dependencies: '@types/unist': 3.0.3 - '@types/json-schema@7.0.15': {} - '@types/mdast@4.0.4': dependencies: '@types/unist': 3.0.3 @@ -2973,97 +2716,6 @@ snapshots: '@types/unist@3.0.3': {} - '@typescript-eslint/eslint-plugin@8.70.0(@typescript-eslint/parser@8.70.0(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3))(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)': - dependencies: - '@eslint-community/regexpp': 4.12.2 - '@typescript-eslint/parser': 8.70.0(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3) - '@typescript-eslint/scope-manager': 8.70.0 - '@typescript-eslint/type-utils': 8.70.0(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3) - '@typescript-eslint/utils': 8.70.0(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3) - '@typescript-eslint/visitor-keys': 8.70.0 - eslint: 9.39.2(jiti@2.7.0)(supports-color@7.2.0) - ignore: 7.0.5 - natural-compare: 1.4.0 - ts-api-utils: 2.5.0(typescript@6.0.3) - typescript: 6.0.3 - transitivePeerDependencies: - - supports-color - - '@typescript-eslint/parser@8.70.0(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)': - dependencies: - '@typescript-eslint/scope-manager': 8.70.0 - '@typescript-eslint/types': 8.70.0 - '@typescript-eslint/typescript-estree': 8.70.0(supports-color@7.2.0)(typescript@6.0.3) - '@typescript-eslint/visitor-keys': 8.70.0 - debug: 4.4.3(supports-color@7.2.0) - eslint: 9.39.2(jiti@2.7.0)(supports-color@7.2.0) - typescript: 6.0.3 - transitivePeerDependencies: - - supports-color - - '@typescript-eslint/project-service@8.70.0(supports-color@7.2.0)(typescript@6.0.3)': - dependencies: - '@typescript-eslint/tsconfig-utils': 8.70.0(typescript@6.0.3) - '@typescript-eslint/types': 8.70.0 - debug: 4.4.3(supports-color@7.2.0) - typescript: 6.0.3 - transitivePeerDependencies: - - supports-color - - '@typescript-eslint/scope-manager@8.70.0': - dependencies: - '@typescript-eslint/types': 8.70.0 - '@typescript-eslint/visitor-keys': 8.70.0 - - '@typescript-eslint/tsconfig-utils@8.70.0(typescript@6.0.3)': - dependencies: - typescript: 6.0.3 - - '@typescript-eslint/type-utils@8.70.0(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)': - dependencies: - '@typescript-eslint/types': 8.70.0 - '@typescript-eslint/typescript-estree': 8.70.0(supports-color@7.2.0)(typescript@6.0.3) - '@typescript-eslint/utils': 8.70.0(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3) - debug: 4.4.3(supports-color@7.2.0) - eslint: 9.39.2(jiti@2.7.0)(supports-color@7.2.0) - ts-api-utils: 2.5.0(typescript@6.0.3) - typescript: 6.0.3 - transitivePeerDependencies: - - supports-color - - '@typescript-eslint/types@8.70.0': {} - - '@typescript-eslint/typescript-estree@8.70.0(supports-color@7.2.0)(typescript@6.0.3)': - dependencies: - '@typescript-eslint/project-service': 8.70.0(supports-color@7.2.0)(typescript@6.0.3) - '@typescript-eslint/tsconfig-utils': 8.70.0(typescript@6.0.3) - '@typescript-eslint/types': 8.70.0 - '@typescript-eslint/visitor-keys': 8.70.0 - debug: 4.4.3(supports-color@7.2.0) - minimatch: 10.2.6 - semver: 7.7.4 - tinyglobby: 0.2.17 - ts-api-utils: 2.5.0(typescript@6.0.3) - typescript: 6.0.3 - transitivePeerDependencies: - - supports-color - - '@typescript-eslint/utils@8.70.0(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)': - dependencies: - '@eslint-community/eslint-utils': 4.9.1(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0)) - '@typescript-eslint/scope-manager': 8.70.0 - '@typescript-eslint/types': 8.70.0 - '@typescript-eslint/typescript-estree': 8.70.0(supports-color@7.2.0)(typescript@6.0.3) - eslint: 9.39.2(jiti@2.7.0)(supports-color@7.2.0) - typescript: 6.0.3 - transitivePeerDependencies: - - supports-color - - '@typescript-eslint/visitor-keys@8.70.0': - dependencies: - '@typescript-eslint/types': 8.70.0 - eslint-visitor-keys: 5.0.1 - '@uiw/codemirror-extensions-basic-setup@4.25.4(@codemirror/autocomplete@6.20.0)(@codemirror/commands@6.11.1)(@codemirror/language@6.12.4)(@codemirror/lint@6.9.7)(@codemirror/search@6.6.0)(@codemirror/state@6.7.6)(@codemirror/view@6.43.13)': dependencies: '@codemirror/autocomplete': 6.20.0 @@ -3139,31 +2791,12 @@ snapshots: convert-source-map: 2.0.0 tinyrainbow: 3.0.3 - acorn-jsx@5.3.2(acorn@8.15.0): - dependencies: - acorn: 8.15.0 - - acorn@8.15.0: {} - agent-base@7.1.4: {} - ajv@6.12.6: - dependencies: - fast-deep-equal: 3.1.3 - fast-json-stable-stringify: 2.1.0 - json-schema-traverse: 0.4.1 - uri-js: 4.4.1 - ansi-regex@5.0.1: {} - ansi-styles@4.3.0: - dependencies: - color-convert: 2.0.1 - ansi-styles@5.2.0: {} - argparse@2.0.1: {} - aria-query@5.3.0: dependencies: dequal: 2.0.3 @@ -3174,46 +2807,14 @@ snapshots: bail@2.0.2: {} - balanced-match@1.0.2: {} - - balanced-match@4.0.4: {} - - baseline-browser-mapping@2.9.19: {} - bidi-js@1.0.3: dependencies: require-from-string: 2.0.2 - brace-expansion@1.1.12: - dependencies: - balanced-match: 1.0.2 - concat-map: 0.0.1 - - brace-expansion@5.0.12: - dependencies: - balanced-match: 4.0.4 - - browserslist@4.28.1: - dependencies: - baseline-browser-mapping: 2.9.19 - caniuse-lite: 1.0.30001769 - electron-to-chromium: 1.5.286 - node-releases: 2.0.27 - update-browserslist-db: 1.2.3(browserslist@4.28.1) - - callsites@3.1.0: {} - - caniuse-lite@1.0.30001769: {} - ccount@2.0.1: {} chai@6.2.2: {} - chalk@4.1.2: - dependencies: - ansi-styles: 4.3.0 - supports-color: 7.2.0 - character-entities-html4@2.1.0: {} character-entities-legacy@3.0.0: {} @@ -3232,28 +2833,14 @@ snapshots: '@codemirror/state': 6.7.6 '@codemirror/view': 6.43.13 - color-convert@2.0.1: - dependencies: - color-name: 1.1.4 - - color-name@1.1.4: {} - comma-separated-tokens@2.0.3: {} - concat-map@0.0.1: {} - convert-source-map@2.0.0: {} cookie@1.1.1: {} crelt@1.0.7: {} - cross-spawn@7.0.6: - dependencies: - path-key: 3.1.1 - shebang-command: 2.0.0 - which: 2.0.2 - css-tree@3.2.1: dependencies: mdn-data: 2.27.1 @@ -3289,8 +2876,6 @@ snapshots: dependencies: character-entities: 2.0.2 - deep-is@0.1.4: {} - dequal@2.0.3: {} detect-libc@2.1.2: {} @@ -3303,8 +2888,6 @@ snapshots: dom-accessibility-api@0.6.3: {} - electron-to-chromium@1.5.286: {} - enhanced-resolve@5.21.6: dependencies: graceful-fs: 4.2.11 @@ -3344,113 +2927,18 @@ snapshots: '@esbuild/win32-x64': 0.27.3 optional: true - escalade@3.2.0: {} - - escape-string-regexp@4.0.0: {} - escape-string-regexp@5.0.0: {} - eslint-plugin-react-hooks@7.0.1(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0): - dependencies: - '@babel/core': 7.29.0(supports-color@7.2.0) - '@babel/parser': 7.29.0 - eslint: 9.39.2(jiti@2.7.0)(supports-color@7.2.0) - hermes-parser: 0.25.1 - zod: 4.3.6 - zod-validation-error: 4.0.2(zod@4.3.6) - transitivePeerDependencies: - - supports-color - - eslint-plugin-react-refresh@0.4.26(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0)): - dependencies: - eslint: 9.39.2(jiti@2.7.0)(supports-color@7.2.0) - - eslint-scope@8.4.0: - dependencies: - esrecurse: 4.3.0 - estraverse: 5.3.0 - - eslint-visitor-keys@3.4.3: {} - - eslint-visitor-keys@4.2.1: {} - - eslint-visitor-keys@5.0.1: {} - - eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0): - dependencies: - '@eslint-community/eslint-utils': 4.9.1(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0)) - '@eslint-community/regexpp': 4.12.2 - '@eslint/config-array': 0.21.1(supports-color@7.2.0) - '@eslint/config-helpers': 0.4.2 - '@eslint/core': 0.17.0 - '@eslint/eslintrc': 3.3.3(supports-color@7.2.0) - '@eslint/js': 9.39.2 - '@eslint/plugin-kit': 0.4.1 - '@humanfs/node': 0.16.7 - '@humanwhocodes/module-importer': 1.0.1 - '@humanwhocodes/retry': 0.4.3 - '@types/estree': 1.0.8 - ajv: 6.12.6 - chalk: 4.1.2 - cross-spawn: 7.0.6 - debug: 4.4.3(supports-color@7.2.0) - escape-string-regexp: 4.0.0 - eslint-scope: 8.4.0 - eslint-visitor-keys: 4.2.1 - espree: 10.4.0 - esquery: 1.7.0 - esutils: 2.0.3 - fast-deep-equal: 3.1.3 - file-entry-cache: 8.0.0 - find-up: 5.0.0 - glob-parent: 6.0.2 - ignore: 5.3.2 - imurmurhash: 0.1.4 - is-glob: 4.0.3 - json-stable-stringify-without-jsonify: 1.0.1 - lodash.merge: 4.6.2 - minimatch: 3.1.2 - natural-compare: 1.4.0 - optionator: 0.9.4 - optionalDependencies: - jiti: 2.7.0 - transitivePeerDependencies: - - supports-color - - espree@10.4.0: - dependencies: - acorn: 8.15.0 - acorn-jsx: 5.3.2(acorn@8.15.0) - eslint-visitor-keys: 4.2.1 - - esquery@1.7.0: - dependencies: - estraverse: 5.3.0 - - esrecurse@4.3.0: - dependencies: - estraverse: 5.3.0 - - estraverse@5.3.0: {} - estree-util-is-identifier-name@3.0.0: {} estree-walker@3.0.3: dependencies: '@types/estree': 1.0.8 - esutils@2.0.3: {} - expect-type@1.3.0: {} extend@3.0.2: {} - fast-deep-equal@3.1.3: {} - - fast-json-stable-stringify@2.1.0: {} - - fast-levenshtein@2.0.6: {} - fdir@6.5.0(picomatch@4.0.3): optionalDependencies: picomatch: 4.0.3 @@ -3459,40 +2947,15 @@ snapshots: optionalDependencies: picomatch: 4.0.7 - file-entry-cache@8.0.0: - dependencies: - flat-cache: 4.0.1 - - find-up@5.0.0: - dependencies: - locate-path: 6.0.0 - path-exists: 4.0.0 - - flat-cache@4.0.1: - dependencies: - flatted: 3.3.3 - keyv: 4.5.4 - - flatted@3.3.3: {} - fsevents@2.3.3: optional: true gemoji@8.1.0: {} - gensync@1.0.0-beta.2: {} - - glob-parent@6.0.2: - dependencies: - is-glob: 4.0.3 - - globals@14.0.0: {} - - globals@16.5.0: {} - graceful-fs@4.2.11: {} - has-flag@4.0.0: {} + has-flag@4.0.0: + optional: true hast-util-from-parse5@8.0.3: dependencies: @@ -3573,12 +3036,6 @@ snapshots: property-information: 7.1.0 space-separated-tokens: 2.0.2 - hermes-estree@0.25.1: {} - - hermes-parser@0.25.1: - dependencies: - hermes-estree: 0.25.1 - html-encoding-sniffer@6.0.0: dependencies: '@exodus/bytes': 1.15.0 @@ -3603,17 +3060,6 @@ snapshots: transitivePeerDependencies: - supports-color - ignore@5.3.2: {} - - ignore@7.0.5: {} - - import-fresh@3.3.1: - dependencies: - parent-module: 1.0.1 - resolve-from: 4.0.0 - - imurmurhash@0.1.4: {} - indent-string@4.0.0: {} inline-style-parser@0.2.7: {} @@ -3627,28 +3073,16 @@ snapshots: is-decimal@2.0.1: {} - is-extglob@2.1.1: {} - - is-glob@4.0.3: - dependencies: - is-extglob: 2.1.1 - is-hexadecimal@2.0.1: {} is-plain-obj@4.1.0: {} is-potential-custom-element-name@1.0.1: {} - isexe@2.0.0: {} - jiti@2.7.0: {} js-tokens@4.0.0: {} - js-yaml@4.1.1: - dependencies: - argparse: 2.0.1 - jsdom@28.1.0(supports-color@7.2.0): dependencies: '@acemir/cssom': 0.9.31 @@ -3676,25 +3110,6 @@ snapshots: - '@noble/hashes' - supports-color - jsesc@3.1.0: {} - - json-buffer@3.0.1: {} - - json-schema-traverse@0.4.1: {} - - json-stable-stringify-without-jsonify@1.0.1: {} - - json5@2.2.3: {} - - keyv@4.5.4: - dependencies: - json-buffer: 3.0.1 - - levn@0.4.1: - dependencies: - prelude-ls: 1.2.1 - type-check: 0.4.0 - lightningcss-android-arm64@1.32.0: optional: true @@ -3793,20 +3208,10 @@ snapshots: lightningcss-win32-arm64-msvc: 1.33.0 lightningcss-win32-x64-msvc: 1.33.0 - locate-path@6.0.0: - dependencies: - p-locate: 5.0.0 - - lodash.merge@4.6.2: {} - longest-streak@3.1.0: {} lru-cache@11.2.6: {} - lru-cache@5.1.1: - dependencies: - yallist: 3.1.1 - lucide-react@0.563.0(react@19.3.0): dependencies: react: 19.3.0 @@ -4172,44 +3577,57 @@ snapshots: min-indent@1.0.1: {} - minimatch@10.2.6: - dependencies: - brace-expansion: 5.0.12 - - minimatch@3.1.2: - dependencies: - brace-expansion: 1.1.12 - ms@2.1.3: {} nanoid@3.3.19: {} - natural-compare@1.4.0: {} - - node-releases@2.0.27: {} - obug@2.1.1: {} - optionator@0.9.4: + oxfmt@0.79.0: dependencies: - deep-is: 0.1.4 - fast-levenshtein: 2.0.6 - levn: 0.4.1 - prelude-ls: 1.2.1 - type-check: 0.4.0 - word-wrap: 1.2.5 + tinypool: 2.2.0 + optionalDependencies: + '@oxfmt/binding-android-arm-eabi': 0.79.0 + '@oxfmt/binding-android-arm64': 0.79.0 + '@oxfmt/binding-darwin-arm64': 0.79.0 + '@oxfmt/binding-darwin-x64': 0.79.0 + '@oxfmt/binding-freebsd-x64': 0.79.0 + '@oxfmt/binding-linux-arm-gnueabihf': 0.79.0 + '@oxfmt/binding-linux-arm-musleabihf': 0.79.0 + '@oxfmt/binding-linux-arm64-gnu': 0.79.0 + '@oxfmt/binding-linux-arm64-musl': 0.79.0 + '@oxfmt/binding-linux-ppc64-gnu': 0.79.0 + '@oxfmt/binding-linux-riscv64-gnu': 0.79.0 + '@oxfmt/binding-linux-riscv64-musl': 0.79.0 + '@oxfmt/binding-linux-s390x-gnu': 0.79.0 + '@oxfmt/binding-linux-x64-gnu': 0.79.0 + '@oxfmt/binding-linux-x64-musl': 0.79.0 + '@oxfmt/binding-openharmony-arm64': 0.79.0 + '@oxfmt/binding-win32-arm64-msvc': 0.79.0 + '@oxfmt/binding-win32-ia32-msvc': 0.79.0 + '@oxfmt/binding-win32-x64-msvc': 0.79.0 - p-limit@3.1.0: - dependencies: - yocto-queue: 0.1.0 - - p-locate@5.0.0: - dependencies: - p-limit: 3.1.0 - - parent-module@1.0.1: - dependencies: - callsites: 3.1.0 + oxlint@1.94.0: + optionalDependencies: + '@oxlint/binding-android-arm-eabi': 1.94.0 + '@oxlint/binding-android-arm64': 1.94.0 + '@oxlint/binding-darwin-arm64': 1.94.0 + '@oxlint/binding-darwin-x64': 1.94.0 + '@oxlint/binding-freebsd-x64': 1.94.0 + '@oxlint/binding-linux-arm-gnueabihf': 1.94.0 + '@oxlint/binding-linux-arm-musleabihf': 1.94.0 + '@oxlint/binding-linux-arm64-gnu': 1.94.0 + '@oxlint/binding-linux-arm64-musl': 1.94.0 + '@oxlint/binding-linux-ppc64-gnu': 1.94.0 + '@oxlint/binding-linux-riscv64-gnu': 1.94.0 + '@oxlint/binding-linux-riscv64-musl': 1.94.0 + '@oxlint/binding-linux-s390x-gnu': 1.94.0 + '@oxlint/binding-linux-x64-gnu': 1.94.0 + '@oxlint/binding-linux-x64-musl': 1.94.0 + '@oxlint/binding-openharmony-arm64': 1.94.0 + '@oxlint/binding-win32-arm64-msvc': 1.94.0 + '@oxlint/binding-win32-ia32-msvc': 1.94.0 + '@oxlint/binding-win32-x64-msvc': 1.94.0 parse-entities@4.0.2: dependencies: @@ -4229,10 +3647,6 @@ snapshots: dependencies: entities: 6.0.1 - path-exists@4.0.0: {} - - path-key@3.1.1: {} - pathe@2.0.3: {} picocolors@1.1.1: {} @@ -4247,8 +3661,6 @@ snapshots: picocolors: 1.1.1 source-map-js: 1.2.1 - prelude-ls@1.2.1: {} - pretty-format@27.5.1: dependencies: ansi-regex: 5.0.1 @@ -4369,8 +3781,6 @@ snapshots: require-from-string@2.0.2: {} - resolve-from@4.0.0: {} - rolldown@1.2.11: dependencies: '@oxc-project/types': 0.151.0 @@ -4398,18 +3808,8 @@ snapshots: scheduler@0.28.0: {} - semver@6.3.1: {} - - semver@7.7.4: {} - set-cookie-parser@2.7.2: {} - shebang-command@2.0.0: - dependencies: - shebang-regex: 3.0.0 - - shebang-regex@3.0.0: {} - siginfo@2.0.0: {} source-map-js@1.2.1: {} @@ -4429,8 +3829,6 @@ snapshots: dependencies: min-indent: 1.0.1 - strip-json-comments@3.1.1: {} - style-mod@4.1.4: {} style-to-js@1.1.21: @@ -4444,6 +3842,7 @@ snapshots: supports-color@7.2.0: dependencies: has-flag: 4.0.0 + optional: true symbol-tree@3.2.4: {} @@ -4465,6 +3864,8 @@ snapshots: fdir: 6.5.0(picomatch@4.0.7) picomatch: 4.0.7 + tinypool@2.2.0: {} + tinyrainbow@3.0.3: {} tldts-core@7.0.25: {} @@ -4485,26 +3886,16 @@ snapshots: trough@2.2.0: {} - ts-api-utils@2.5.0(typescript@6.0.3): - dependencies: - typescript: 6.0.3 - - type-check@0.4.0: - dependencies: - prelude-ls: 1.2.1 - - typescript-eslint@8.70.0(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3): - dependencies: - '@typescript-eslint/eslint-plugin': 8.70.0(@typescript-eslint/parser@8.70.0(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3))(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3) - '@typescript-eslint/parser': 8.70.0(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3) - '@typescript-eslint/typescript-estree': 8.70.0(supports-color@7.2.0)(typescript@6.0.3) - '@typescript-eslint/utils': 8.70.0(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3) - eslint: 9.39.2(jiti@2.7.0)(supports-color@7.2.0) - typescript: 6.0.3 - transitivePeerDependencies: - - supports-color - - typescript@6.0.3: {} + tsrs@0.25.0-ts7.1.0-beta: + optionalDependencies: + '@tsrs/darwin-arm64': 0.25.0-ts7.1.0-beta + '@tsrs/darwin-x64': 0.25.0-ts7.1.0-beta + '@tsrs/linux-arm64-gnu': 0.25.0-ts7.1.0-beta + '@tsrs/linux-arm64-musl': 0.25.0-ts7.1.0-beta + '@tsrs/linux-x64-gnu': 0.25.0-ts7.1.0-beta + '@tsrs/linux-x64-musl': 0.25.0-ts7.1.0-beta + '@tsrs/win32-arm64': 0.25.0-ts7.1.0-beta + '@tsrs/win32-x64': 0.25.0-ts7.1.0-beta undici-types@7.16.0: {} @@ -4543,16 +3934,6 @@ snapshots: unist-util-is: 6.0.1 unist-util-visit-parents: 6.0.2 - update-browserslist-db@1.2.3(browserslist@4.28.1): - dependencies: - browserslist: 4.28.1 - escalade: 3.2.0 - picocolors: 1.1.1 - - uri-js@4.4.1: - dependencies: - punycode: 2.3.1 - vfile-location@5.0.3: dependencies: '@types/unist': 3.0.3 @@ -4630,31 +4011,15 @@ snapshots: transitivePeerDependencies: - '@noble/hashes' - which@2.0.2: - dependencies: - isexe: 2.0.0 - why-is-node-running@2.3.0: dependencies: siginfo: 2.0.0 stackback: 0.0.2 - word-wrap@1.2.5: {} - xml-name-validator@5.0.0: {} xmlchars@2.2.0: {} - yallist@3.1.1: {} - yaml@2.8.2: {} - yocto-queue@0.1.0: {} - - zod-validation-error@4.0.2(zod@4.3.6): - dependencies: - zod: 4.3.6 - - zod@4.3.6: {} - zwitch@2.0.4: {} diff --git a/ui/src/App.tsx b/ui/src/App.tsx index fd7bea3a8..93068028b 100644 --- a/ui/src/App.tsx +++ b/ui/src/App.tsx @@ -1,5 +1,14 @@ import { lazy, Suspense } from 'react'; -import { createBrowserRouter, RouterProvider, Routes, Route, Navigate, useRouteError, useParams, useSearchParams } from 'react-router-dom'; +import { + createBrowserRouter, + RouterProvider, + Routes, + Route, + Navigate, + useRouteError, + useParams, + useSearchParams, +} from 'react-router-dom'; import { QueryClientProvider } from '@tanstack/react-query'; import { ReactQueryDevtools } from '@tanstack/react-query-devtools'; import { queryClient } from './lib/queryClient'; @@ -46,7 +55,8 @@ function Lazy({ children }: { children: React.ReactNode }) { function LegacyResourceRedirect() { const { name } = useParams(); const [params] = useSearchParams(); - const base = params.get('kind') === 'agent' || params.get('tab') === 'agents' ? '/agents' : '/skills'; + const base = + params.get('kind') === 'agent' || params.get('tab') === 'agents' ? '/agents' : '/skills'; return ; } @@ -63,7 +73,9 @@ function LegacyTargetRedirect() { const target = name ?? params.get('target'); if (!target) return ; const agents = params.get('kind') === 'agent' || params.get('scope') === 'agent'; - return ; + return ( + + ); } function AppRoutes() { @@ -77,41 +89,202 @@ function AppRoutes() { }> } /> - } /> - } /> - } /> - } /> - } /> - } /> + + + + } + /> + + + + } + /> + + + + } + /> + + + + } + /> + + + + } + /> + + + + } + /> } /> } /> } /> } /> - } /> - } /> + + + + } + /> + + + + } + /> } /> - } /> + + + + } + /> } /> - } /> - } /> - } /> - } /> - } /> - } /> + + + + } + /> + + + + } + /> + + + + } + /> + + + + } + /> + + + + } + /> + + + + } + /> } /> - } /> + + + + } + /> } /> - } /> + + + + } + /> } /> } /> } /> - } /> - } /> + + + + } + /> + + + + } + /> } /> - } /> - } /> - } /> - } /> + + + + } + /> + + + + } + /> + + + + } + /> + + + + } + /> @@ -120,9 +293,24 @@ function AppRoutes() { } // Forward router failures to the same fallback as render failures. -function RouteError(): never { throw useRouteError(); } +function RouteError(): never { + throw useRouteError(); +} -const router = createBrowserRouter([{ path: "*", element: , errorElement: }], { basename: BASE_PATH }); +const router = createBrowserRouter( + [ + { + path: '*', + element: , + errorElement: ( + + + + ), + }, + ], + { basename: BASE_PATH }, +); export default function App() { return ( diff --git a/ui/src/api/audit.ts b/ui/src/api/audit.ts index 960a6d965..5fb4c5467 100644 --- a/ui/src/api/audit.ts +++ b/ui/src/api/audit.ts @@ -1,11 +1,18 @@ import { apiFetch, BASE, createSSEStream, kindQuery } from './http'; -import type { AuditAllResponse, AuditPolicy, AuditRulesResponse, AuditSkillResponse, CompiledRulesResponse } from './types/audit'; +import type { + AuditAllResponse, + AuditPolicy, + AuditRulesResponse, + AuditSkillResponse, + CompiledRulesResponse, +} from './types/audit'; export const auditApi = { - auditAll: (kind?: 'skills' | 'agents') => - apiFetch(`/audit${kindQuery(kind)}`), + auditAll: (kind?: 'skills' | 'agents') => apiFetch(`/audit${kindQuery(kind)}`), auditSkill: (name: string, kind?: 'skill' | 'agent') => - apiFetch(`/audit/${encodeURIComponent(name)}${kindQuery(kind === 'agent' ? kind : undefined)}`), + apiFetch( + `/audit/${encodeURIComponent(name)}${kindQuery(kind === 'agent' ? kind : undefined)}`, + ), auditAllStream: ( onStart: (total: number) => void, onProgress: (scanned: number) => void, @@ -13,11 +20,16 @@ export const auditApi = { onError: (err: Error) => void, kind?: 'skills' | 'agents', ): EventSource => - createSSEStream(BASE + `/audit/stream${kindQuery(kind)}`, { - start: (d) => onStart(d.total), - progress: (d) => onProgress(d.scanned), - done: onDone, - }, onError, 'Audit stream failed'), + createSSEStream( + BASE + `/audit/stream${kindQuery(kind)}`, + { + start: (d) => onStart(d.total), + progress: (d) => onProgress(d.scanned), + done: onDone, + }, + onError, + 'Audit stream failed', + ), getAuditRules: () => apiFetch('/audit/rules'), putAuditRules: (raw: string) => apiFetch<{ success: boolean }>('/audit/rules', { diff --git a/ui/src/api/backups.ts b/ui/src/api/backups.ts index d1531ec42..9f0e1baa3 100644 --- a/ui/src/api/backups.ts +++ b/ui/src/api/backups.ts @@ -1,5 +1,11 @@ import { apiFetch, kindQuery } from './http'; -import type { BackupListResponse, FileBackup, FileBackupVersions, RestoreValidateResponse, TrashListResponse } from './types/backups'; +import type { + BackupListResponse, + FileBackup, + FileBackupVersions, + RestoreValidateResponse, + TrashListResponse, +} from './types/backups'; export const backupsApi = { listBackups: () => apiFetch('/backups'), @@ -23,13 +29,17 @@ export const backupsApi = { deleteAllBackups: () => apiFetch<{ success: boolean; removed: number }>('/backups', { method: 'DELETE' }), deleteBackup: (timestamp: string) => - apiFetch<{ success: boolean }>(`/backups/${encodeURIComponent(timestamp)}`, { method: 'DELETE' }), + apiFetch<{ success: boolean }>(`/backups/${encodeURIComponent(timestamp)}`, { + method: 'DELETE', + }), // File history: earlier versions of single files skillshare rewrote listFileBackups: () => apiFetch<{ files: FileBackup[] }>('/file-backups'), getFileBackupVersions: (path: string) => apiFetch(`/file-backups/versions?path=${encodeURIComponent(path)}`), getFileBackupVersion: (path: string, id: string) => - apiFetch<{ content: string; current: string }>(`/file-backups/version?path=${encodeURIComponent(path)}&id=${encodeURIComponent(id)}`), + apiFetch<{ content: string; current: string }>( + `/file-backups/version?path=${encodeURIComponent(path)}&id=${encodeURIComponent(id)}`, + ), restoreFileBackup: (body: { path: string; id: string; unlink?: boolean }) => apiFetch<{ success: boolean; backup_id?: string }>('/file-backups/restore', { method: 'POST', @@ -37,18 +47,15 @@ export const backupsApi = { }), listTrash: () => apiFetch('/trash'), restoreTrash: (name: string, kind?: 'skill' | 'agent') => - apiFetch<{ success: boolean }>( - `/trash/${encodeURIComponent(name)}/restore${kindQuery(kind)}`, - { method: 'POST' }, - ), + apiFetch<{ success: boolean }>(`/trash/${encodeURIComponent(name)}/restore${kindQuery(kind)}`, { + method: 'POST', + }), deleteTrash: (name: string, kind?: 'skill' | 'agent') => - apiFetch<{ success: boolean }>( - `/trash/${encodeURIComponent(name)}${kindQuery(kind)}`, - { method: 'DELETE' }, - ), + apiFetch<{ success: boolean }>(`/trash/${encodeURIComponent(name)}${kindQuery(kind)}`, { + method: 'DELETE', + }), emptyTrash: (kind: 'skill' | 'agent' | 'all' = 'all') => - apiFetch<{ success: boolean; removed: number }>( - `/trash/empty${kindQuery(kind)}`, - { method: 'POST' }, - ), + apiFetch<{ success: boolean; removed: number }>(`/trash/empty${kindQuery(kind)}`, { + method: 'POST', + }), }; diff --git a/ui/src/api/client.test.ts b/ui/src/api/client.test.ts index bf4544caa..0d238dc36 100644 --- a/ui/src/api/client.test.ts +++ b/ui/src/api/client.test.ts @@ -3,13 +3,19 @@ import { parseApiErrorPayload } from './client'; describe('parseApiErrorPayload', () => { it('parses the new structured error format', () => { - expect(parseApiErrorPayload({ - error: { - code: 'target.not_found', - message: 'target not found: claude', - params: { target: 'claude' }, - }, - }, 404, 'Not Found')).toEqual({ + expect( + parseApiErrorPayload( + { + error: { + code: 'target.not_found', + message: 'target not found: claude', + params: { target: 'claude' }, + }, + }, + 404, + 'Not Found', + ), + ).toEqual({ code: 'target.not_found', message: 'target not found: claude', params: { target: 'claude' }, @@ -17,11 +23,17 @@ describe('parseApiErrorPayload', () => { }); it('parses legacy string errors with sidecar codes', () => { - expect(parseApiErrorPayload({ - error: 'target not found: claude', - error_code: 'target.not_found', - error_params: { target: 'claude' }, - }, 404, 'Not Found')).toEqual({ + expect( + parseApiErrorPayload( + { + error: 'target not found: claude', + error_code: 'target.not_found', + error_params: { target: 'claude' }, + }, + 404, + 'Not Found', + ), + ).toEqual({ code: 'target.not_found', message: 'target not found: claude', params: { target: 'claude' }, diff --git a/ui/src/api/client.ts b/ui/src/api/client.ts index 9d23180e5..2e49373f4 100644 --- a/ui/src/api/client.ts +++ b/ui/src/api/client.ts @@ -46,12 +46,8 @@ export const api = { ...gitApi, // Aliases go through `api` so tests that replace it still intercept them. - getSkill: (name: string, kind?: 'skill' | 'agent') => - api.getResource(name, kind), - deleteSkill: (name: string, kind?: 'skill' | 'agent') => - api.deleteResource(name, kind), - disableSkill: (name: string, kind?: 'skill' | 'agent') => - api.disableResource(name, kind), - enableSkill: (name: string, kind?: 'skill' | 'agent') => - api.enableResource(name, kind), + getSkill: (name: string, kind?: 'skill' | 'agent') => api.getResource(name, kind), + deleteSkill: (name: string, kind?: 'skill' | 'agent') => api.deleteResource(name, kind), + disableSkill: (name: string, kind?: 'skill' | 'agent') => api.disableResource(name, kind), + enableSkill: (name: string, kind?: 'skill' | 'agent') => api.enableResource(name, kind), }; diff --git a/ui/src/api/config.ts b/ui/src/api/config.ts index d6df9d45e..c988a9bc0 100644 --- a/ui/src/api/config.ts +++ b/ui/src/api/config.ts @@ -1,10 +1,21 @@ import { apiFetch } from './http'; -import type { AgentignoreResponse, AvailableTarget, ConfigSaveResponse, SkillignoreResponse } from './types/config'; +import type { + AgentignoreResponse, + AvailableTarget, + ConfigSaveResponse, + SkillignoreResponse, +} from './types/config'; export const configApi = { getConfig: () => apiFetch<{ config: unknown; raw: string }>('/config'), /** Settings the Settings page owns; the rest of config.yaml stays untouched. */ - patchConfig: (body: { mode?: string; logMaxEntries?: number; backupMaxCount?: number; backupMaxSizeMB?: number; autoUpdateCheck?: boolean }) => + patchConfig: (body: { + mode?: string; + logMaxEntries?: number; + backupMaxCount?: number; + backupMaxSizeMB?: number; + autoUpdateCheck?: boolean; + }) => apiFetch<{ mode: string; logMaxEntries: number | null }>('/config', { method: 'PATCH', body: JSON.stringify(body), diff --git a/ui/src/api/extras.ts b/ui/src/api/extras.ts index 4dbad4eb5..07ae1629b 100644 --- a/ui/src/api/extras.ts +++ b/ui/src/api/extras.ts @@ -1,16 +1,31 @@ import { apiFetch } from './http'; -import type { ExtensionInfo, Extra, ExtraDiffResult, ExtraEditResult, ExtraFilterEntry, ExtrasSyncResult } from './types/extras'; +import type { + ExtensionInfo, + Extra, + ExtraDiffResult, + ExtraEditResult, + ExtraFilterEntry, + ExtrasSyncResult, +} from './types/extras'; export const extrasApi = { listExtras: () => apiFetch<{ extras: Extra[] }>('/extras'), diffExtras: (name?: string) => - apiFetch<{ extras: ExtraDiffResult[] }>(`/extras/diff${name ? '?name=' + encodeURIComponent(name) : ''}`), + apiFetch<{ extras: ExtraDiffResult[] }>( + `/extras/diff${name ? '?name=' + encodeURIComponent(name) : ''}`, + ), createExtra: (data: { name: string; source?: string; folder?: string; // a folder in the shared extras folder; the server stores it as the source file?: string; // single-file extra: the file in the source folder - targets: Array<{ path: string; mode: string; flatten?: boolean; extension?: string; as?: string }>; + targets: Array<{ + path: string; + mode: string; + flatten?: boolean; + extension?: string; + as?: string; + }>; }) => apiFetch<{ success: boolean }>('/extras', { method: 'POST', @@ -31,14 +46,19 @@ export const extrasApi = { method: 'POST', body: JSON.stringify({ name }), }), - openExtensionsDir: () => - apiFetch<{ path: string }>('/extensions/open', { method: 'POST' }), + openExtensionsDir: () => apiFetch<{ path: string }>('/extensions/open', { method: 'POST' }), removeExtension: (name: string) => apiFetch<{ success: boolean; name: string }>(`/extensions/${encodeURIComponent(name)}`, { method: 'DELETE', }), // extension: undefined = leave unchanged; '' = clear; name = set (forces copy mode) - setExtraMode: (name: string, target: string, mode: string, flatten?: boolean, extension?: string) => + setExtraMode: ( + name: string, + target: string, + mode: string, + flatten?: boolean, + extension?: string, + ) => apiFetch<{ success: boolean }>(`/extras/${encodeURIComponent(name)}/mode`, { method: 'PATCH', body: JSON.stringify({ @@ -48,18 +68,36 @@ export const extrasApi = { ...(extension !== undefined && { extension }), }), }), - addExtraTarget: (name: string, target: { path: string; mode?: string; flatten?: boolean; as?: string }) => + addExtraTarget: ( + name: string, + target: { path: string; mode?: string; flatten?: boolean; as?: string }, + ) => apiFetch<{ success: boolean }>(`/extras/${encodeURIComponent(name)}/targets`, { method: 'POST', body: JSON.stringify(target), }), previewExtraFilter: (name: string, include: string[], exclude: string[]) => - apiFetch<{ files: ExtraFilterEntry[]; unmatched: string[] | null }>(`/extras/${encodeURIComponent(name)}/preview`, { - method: 'POST', - body: JSON.stringify({ include, exclude }), - }), + apiFetch<{ files: ExtraFilterEntry[]; unmatched: string[] | null }>( + `/extras/${encodeURIComponent(name)}/preview`, + { + method: 'POST', + body: JSON.stringify({ include, exclude }), + }, + ), // A new path or file name also clears the old place and syncs. - editExtraTarget: (name: string, path: string, target: { path: string; mode: string; flatten: boolean; extension: string; as: string; include: string[]; exclude: string[] }) => + editExtraTarget: ( + name: string, + path: string, + target: { + path: string; + mode: string; + flatten: boolean; + extension: string; + as: string; + include: string[]; + exclude: string[]; + }, + ) => apiFetch(`/extras/${encodeURIComponent(name)}/targets`, { method: 'PUT', body: JSON.stringify({ path, target }), diff --git a/ui/src/api/git.ts b/ui/src/api/git.ts index a59778378..c9d609c63 100644 --- a/ui/src/api/git.ts +++ b/ui/src/api/git.ts @@ -1,5 +1,12 @@ import { apiFetch } from './http'; -import type { GitBranches, GitCheckoutResponse, GitPullResolution, GitStatus, PullResponse, PushResponse } from './types/git'; +import type { + GitBranches, + GitCheckoutResponse, + GitPullResolution, + GitStatus, + PullResponse, + PushResponse, +} from './types/git'; export const gitApi = { gitStatus: () => apiFetch('/git/status'), @@ -36,7 +43,12 @@ export const gitApi = { body: JSON.stringify(opts), }), /** force replaces local files with the remote when a first pull cannot merge (error code merge_failed). */ - pull: (opts?: { dryRun?: boolean; force?: boolean; resolution?: GitPullResolution; alwaysSync?: boolean }) => + pull: (opts?: { + dryRun?: boolean; + force?: boolean; + resolution?: GitPullResolution; + alwaysSync?: boolean; + }) => apiFetch('/pull', { method: 'POST', body: JSON.stringify(opts ?? {}), diff --git a/ui/src/api/hooks.ts b/ui/src/api/hooks.ts index b60337992..ecd05e8ff 100644 --- a/ui/src/api/hooks.ts +++ b/ui/src/api/hooks.ts @@ -1,14 +1,28 @@ import { apiFetch } from './client'; /** The Agents hooks can be managed for, in display order. */ -export const hookAgents = ['claude', 'codex', 'gemini', 'copilot', 'cursor', 'droid', 'qwen', 'antigravity', 'pi', 'omp', 'amp', 'opencode', 'git'] as const; +export const hookAgents = [ + 'claude', + 'codex', + 'gemini', + 'copilot', + 'cursor', + 'droid', + 'qwen', + 'antigravity', + 'pi', + 'omp', + 'amp', + 'opencode', + 'git', +] as const; export type HookAgent = (typeof hookAgents)[number]; /** Agents whose hooks are one standalone native TypeScript/JavaScript file, not a command event map. */ export const hookCodeAgents: readonly string[] = ['pi', 'omp', 'amp', 'opencode']; /** One Agent's part of a hook. Command Agents fill `events`, code Agents fill `code`. */ export interface HookBinding { - commands?: Record; + commands?: Record; /** The Agent's own event map, passed through as written. */ events?: Record; code?: string; @@ -41,35 +55,118 @@ export interface HookMutation { } /** `root`: the hooks.projects root a native file belongs to; left out for the global files. */ /** Events a change adds to, updates in, or removes from a shared hooks file. */ -export interface HookEventChanges { added?: string[]; updated?: string[]; removed?: string[] } -export interface HookChange { target: string; path: string; name: string; root?: string; action: string; message?: string; inactiveReason?: string; events?: HookEventChanges } +export interface HookEventChanges { + added?: string[]; + updated?: string[]; + removed?: string[]; +} +export interface HookChange { + target: string; + path: string; + name: string; + root?: string; + action: string; + message?: string; + inactiveReason?: string; + events?: HookEventChanges; +} /** `fingerprint` covers the hook content the plan proposes, which `changes` (no contents) cannot show: equal shape, different command, different fingerprint. */ /** `warnings`: advisory only, such as event names an Agent does not document; they never block. */ -export interface HookPlan { revision: string; fingerprint: string; sourcePath: string; blocked: boolean; changes: HookChange[]; warnings?: string[] } -export interface HookCatalogEvent { name: string; description: string; matcher: boolean } +export interface HookPlan { + revision: string; + fingerprint: string; + sourcePath: string; + blocked: boolean; + changes: HookChange[]; + warnings?: string[]; +} +export interface HookCatalogEvent { + name: string; + description: string; + matcher: boolean; +} /** A command Agent's documented events; code Agents are not listed. */ -export interface HookAgentCatalog { events: HookCatalogEvent[]; timeoutUnit: 'seconds' | 'milliseconds' | '' } +export interface HookAgentCatalog { + events: HookCatalogEvent[]; + timeoutUnit: 'seconds' | 'milliseconds' | ''; +} /** A native file the preview would change: full text now (`""` when missing) and exactly what sync writes (`""` when removed). */ -export interface HookFileDiff { target: string; path: string; root?: string; before: string; after: string } +export interface HookFileDiff { + target: string; + path: string; + root?: string; + before: string; + after: string; +} /** Only POST /hooks/preview carries `files`. */ export type HookPreview = HookPlan & { files?: HookFileDiff[] }; -export interface HookResult { plan?: HookPlan; applied: string[]; backupIds: string[] } -export interface HookTargetDef { name: string; agent?: string; kind: string; note?: string } +export interface HookResult { + plan?: HookPlan; + applied: string[]; + backupIds: string[]; +} +export interface HookTargetDef { + name: string; + agent?: string; + kind: string; + note?: string; +} /** Hooks in an Agent's native configuration that Skillshare does not manage. */ -export interface HookUnmanaged { target: string; path: string; names: string[]; project?: string } -export interface HookBackup { id: string; target: string; path: string; root?: string; time?: string } +export interface HookUnmanaged { + target: string; + path: string; + names: string[]; + project?: string; +} +export interface HookBackup { + id: string; + target: string; + path: string; + root?: string; + time?: string; +} /** `editable`: the hook can be changed or removed in its target file without importing it. `source`: the Antigravity block or Copilot file it was read from. */ -export interface HookCandidate { name: string; entry: HookEntry; problems: string[]; warnings: string[]; editable?: boolean; source?: string } +export interface HookCandidate { + name: string; + entry: HookEntry; + problems: string[]; + warnings: string[]; + editable?: boolean; + source?: string; +} /** A change to hooks Skillshare does not manage: `before` as the import listed them, `after` their replacement (left out removes them). `source` is the candidate's. */ -export interface HookNativeEdit { target: string; root?: string; source?: string; before: Record; after?: Record } -export interface HookImportRequest { from: string; content?: string; name?: string; /** Reads the Agent's file under this hooks.projects root. */ root?: string } +export interface HookNativeEdit { + target: string; + root?: string; + source?: string; + before: Record; + after?: Record; +} +export interface HookImportRequest { + from: string; + content?: string; + name?: string; + /** Reads the Agent's file under this hooks.projects root. */ root?: string; +} /** One root under hooks.projects: hooks that live in that folder's own native files. */ -export interface HookProject { entries?: Record } -export interface HookRendered { target: string; path?: string; content?: string; error?: string } +export interface HookProject { + entries?: Record; +} +export interface HookRendered { + target: string; + path?: string; + content?: string; + error?: string; +} export interface HookInventory { - git?: HookGitInfo; - projectGit?: Record; - source: { path: string; configPath: string; entries: Record; projects?: Record }; + git?: HookGitInfo; + projectGit?: Record; + source: { + path: string; + configPath: string; + entries: Record; + projects?: Record; + }; /** Project roots that also have their own .skillshare/config.yaml. */ projectConfigs?: string[]; targets: HookTargetDef[]; @@ -83,43 +180,84 @@ export interface HookInventory { } export interface HookGitInfo { - version: string; configHooks: boolean; parallel: boolean; hooksFile: string; - include: { target: string; resolved: string; present: boolean; owned: boolean; writable: boolean; lines: string; conditional?: boolean; active?: boolean }; - hooksPath: { value: string; origin: string }; reason?: string; + version: string; + configHooks: boolean; + parallel: boolean; + hooksFile: string; + include: { + target: string; + resolved: string; + present: boolean; + owned: boolean; + writable: boolean; + lines: string; + conditional?: boolean; + active?: boolean; + }; + hooksPath: { value: string; origin: string }; + reason?: string; } /** One Codex hook Skillshare owns. `needed`: not trusted yet or its command changed; `unchanged`: already trusted; `trusted`: recorded by this call. */ -export interface CodexTrustHook { target: string; entry: string; key: string; command?: string; action: 'needed' | 'unchanged' | 'trusted'; disabled?: boolean } -export interface CodexTrustPlan { hooks: CodexTrustHook[]; revision: string; /** Homes Codex could not list; their hooks are left out. */ failed?: { target: string; error: string }[] } +export interface CodexTrustHook { + target: string; + entry: string; + key: string; + command?: string; + action: 'needed' | 'unchanged' | 'trusted'; + disabled?: boolean; +} +export interface CodexTrustPlan { + hooks: CodexTrustHook[]; + revision: string; + /** Homes Codex could not list; their hooks are left out. */ failed?: { + target: string; + error: string; + }[]; +} -const post = (path: string, body: unknown) => apiFetch(path, { method: 'POST', body: JSON.stringify(body) }); +const post = (path: string, body: unknown) => + apiFetch(path, { method: 'POST', body: JSON.stringify(body) }); export const hooksApi = { list: () => apiFetch('/hooks'), catalog: () => apiFetch>('/hooks/catalog'), /** An empty mutation previews synchronizing the current source. */ preview: (mutation: HookMutation = {}) => post('/hooks/preview', { mutation }), - configure: (mutation: HookMutation, revision: string, sync: boolean) => post('/hooks', { mutation, revision, sync }), + configure: (mutation: HookMutation, revision: string, sync: boolean) => + post('/hooks', { mutation, revision, sync }), /** Save to the source only. The server refuses a write it has not previewed; the revision also catches concurrent edits. */ save: async (mutation: HookMutation) => - post('/hooks', { mutation, revision: (await post('/hooks/preview', { mutation })).revision, sync: false }), + post('/hooks', { + mutation, + revision: (await post('/hooks/preview', { mutation })).revision, + sync: false, + }), /** Each Agent's native contribution of one hook, as sync would write it: its own file(s) and scripts only, never the shared settings. Writes nothing. */ - render: (mutation: HookMutation) => post<{ rendered: HookRendered[] }>('/hooks/render', { mutation }), + render: (mutation: HookMutation) => + post<{ rendered: HookRendered[] }>('/hooks/render', { mutation }), /** Apply only the changes of one hooks.projects root; the global scope and other projects stay pending. */ - syncProject: (root: string, revision: string) => post('/hooks', { mutation: {}, revision, sync: true, root }), + syncProject: (root: string, revision: string) => + post('/hooks', { mutation: {}, revision, sync: true, root }), /** Reads native configuration or code, or the pasted `content`; nothing is executed. */ import: async (body: HookImportRequest) => { - const res = await post<{ candidates: HookCandidate[] } | HookCandidate[]>('/hooks/import', body); - return Array.isArray(res) ? res : res.candidates ?? []; + const res = await post<{ candidates: HookCandidate[] } | HookCandidate[]>( + '/hooks/import', + body, + ); + return Array.isArray(res) ? res : (res.candidates ?? []); }, /** What editing or removing unmanaged hooks would write to their target files. Writes nothing. */ previewNative: (edits: HookNativeEdit[]) => post('/hooks/native/preview', { edits }), /** Writes previewed edits, with a backup per file. The hooks stay unmanaged. */ - applyNative: (edits: HookNativeEdit[], revision: string) => post('/hooks/native', { edits, revision }), + applyNative: (edits: HookNativeEdit[], revision: string) => + post('/hooks/native', { edits, revision }), /** Starts a Codex process to list the hooks, so call it only when the user asks. Global scope only. */ previewCodexTrust: () => post('/hooks/codex-trust/preview', {}), /** Records trust for the previewed hooks. Refused (409) when they changed since the preview. */ trustCodex: (revision: string) => post('/hooks/codex-trust', { revision }), - previewRestore: (backupId: string) => post('/hooks/restore', { backupId, preview: true }), - restore: (backupId: string, revision: string) => post('/hooks/restore', { backupId, revision }), + previewRestore: (backupId: string) => + post('/hooks/restore', { backupId, preview: true }), + restore: (backupId: string, revision: string) => + post('/hooks/restore', { backupId, revision }), }; diff --git a/ui/src/api/http.ts b/ui/src/api/http.ts index b811d05de..40048fe15 100644 --- a/ui/src/api/http.ts +++ b/ui/src/api/http.ts @@ -45,28 +45,36 @@ function defaultErrorCode(status: number): string { } } -export function parseApiErrorPayload(data: any, status: number, statusText: string): ParsedApiError { +export function parseApiErrorPayload( + data: any, + status: number, + statusText: string, +): ParsedApiError { const rawError = data?.error; if (rawError && typeof rawError === 'object') { const code = typeof rawError.code === 'string' ? rawError.code : defaultErrorCode(status); - const message = typeof rawError.message === 'string' ? rawError.message : statusText || 'Request failed'; - const params = rawError.params && typeof rawError.params === 'object' - ? rawError.params as Record - : undefined; + const message = + typeof rawError.message === 'string' ? rawError.message : statusText || 'Request failed'; + const params = + rawError.params && typeof rawError.params === 'object' + ? (rawError.params as Record) + : undefined; return { code, message, params }; } const message = typeof rawError === 'string' ? rawError : statusText || 'Request failed'; - const code = typeof data?.error_code === 'string' - ? data.error_code - : typeof data?.code === 'string' - ? data.code - : defaultErrorCode(status); - const params = data?.error_params && typeof data.error_params === 'object' - ? data.error_params as Record - : data?.params && typeof data.params === 'object' - ? data.params as Record - : undefined; + const code = + typeof data?.error_code === 'string' + ? data.error_code + : typeof data?.code === 'string' + ? data.code + : defaultErrorCode(status); + const params = + data?.error_params && typeof data.error_params === 'object' + ? (data.error_params as Record) + : data?.params && typeof data.params === 'object' + ? (data.params as Record) + : undefined; return { code, message, params }; } @@ -89,9 +97,13 @@ export async function apiFetch(path: string, init?: RequestInit): Promise } const text = await res.text(); if (!text) { - throw new ApiError(res.status || 502, 'Empty response from server (request may have timed out)', { - code: 'empty_response', - }); + throw new ApiError( + res.status || 502, + 'Empty response from server (request may have timed out)', + { + code: 'empty_response', + }, + ); } let data: any; try { @@ -145,7 +157,11 @@ export function createSSEStream( const data = (e as MessageEvent).data; let reason: unknown; if (typeof data === 'string') { - try { reason = JSON.parse(data)?.error; } catch { /* not JSON: use the fallback message */ } + try { + reason = JSON.parse(data)?.error; + } catch { + /* not JSON: use the fallback message */ + } } onError(new Error(typeof reason === 'string' && reason ? reason : errorMessage)); }); diff --git a/ui/src/api/hubDrafts.test.ts b/ui/src/api/hubDrafts.test.ts index 6c54d5895..8d5804e30 100644 --- a/ui/src/api/hubDrafts.test.ts +++ b/ui/src/api/hubDrafts.test.ts @@ -3,7 +3,8 @@ import { hubAddCommand } from './hubDrafts'; describe('Hub sharing command', () => { it('quotes shell metacharacters as data', () => { - expect(hubAddCommand('https://host/hub.json', "team's $(touch /tmp/no)")) - .toBe(`skillshare hub add 'https://host/hub.json' --label 'team'"'"'s $(touch /tmp/no)'`); + expect(hubAddCommand('https://host/hub.json', "team's $(touch /tmp/no)")).toBe( + `skillshare hub add 'https://host/hub.json' --label 'team'"'"'s $(touch /tmp/no)'`, + ); }); }); diff --git a/ui/src/api/hubDrafts.ts b/ui/src/api/hubDrafts.ts index 76b456dda..8b26759fd 100644 --- a/ui/src/api/hubDrafts.ts +++ b/ui/src/api/hubDrafts.ts @@ -2,7 +2,14 @@ import { apiFetch } from './client'; export interface HubEntry { id: string; - data: { name?: string; description?: string; source?: string; skill?: string; tags?: string[]; [key: string]: unknown }; + data: { + name?: string; + description?: string; + source?: string; + skill?: string; + tags?: string[]; + [key: string]: unknown; + }; } export interface HubDraft { id: string; @@ -13,7 +20,10 @@ export interface HubDraft { entries: HubEntry[]; fields: Record; } -export interface HubProblem { entryId: string; code: string } +export interface HubProblem { + entryId: string; + code: string; +} export interface DraftResponse { draft: HubDraft; problems: HubProblem[]; @@ -36,17 +46,27 @@ export const hubDrafts = { get: (id: string) => apiFetch(`${root}/${encodeURIComponent(id)}`), candidates: () => apiFetch(`${root}/candidates`), create: (draft: Partial) => apiFetch(root, json('POST', draft)), - save: (draft: HubDraft) => apiFetch(`${root}/${encodeURIComponent(draft.id)}`, json('PUT', draft)), - remove: (draft: HubDraft) => apiFetch(`${root}/${encodeURIComponent(draft.id)}?revision=${encodeURIComponent(draft.revision)}`, { method: 'DELETE' }), + save: (draft: HubDraft) => + apiFetch(`${root}/${encodeURIComponent(draft.id)}`, json('PUT', draft)), + remove: (draft: HubDraft) => + apiFetch( + `${root}/${encodeURIComponent(draft.id)}?revision=${encodeURIComponent(draft.revision)}`, + { method: 'DELETE' }, + ), import: (raw: string) => apiFetch(`${root}/import`, { method: 'POST', body: raw }), - export: (draft: HubDraft) => apiFetch>(`${root}/${encodeURIComponent(draft.id)}/export`, json('POST', { revision: draft.revision })), + export: (draft: HubDraft) => + apiFetch>( + `${root}/${encodeURIComponent(draft.id)}/export`, + json('POST', { revision: draft.revision }), + ), }; /** Lists a source's branches and tags; with `ref` ("" = default branch), also returns the source rewritten to it. */ export const hubRefs = (source: string, ref?: string) => apiFetch('/hub/refs', json('POST', ref === undefined ? { source } : { source, ref })); /** Lists a git source's branches and tags, also when its URL cannot pin a ref (SSH, other hosts). */ -export const gitRefs = (source: string) => apiFetch('/hub/refs', json('POST', { source, anyGit: true })); +export const gitRefs = (source: string) => + apiFetch('/hub/refs', json('POST', { source, anyGit: true })); export function hubAddCommand(location: string, label: string): string { const quote = (s: string) => `'${s.replace(/'/g, `'"'"'`)}'`; diff --git a/ui/src/api/install.ts b/ui/src/api/install.ts index b8950c3ff..c5ede98ce 100644 --- a/ui/src/api/install.ts +++ b/ui/src/api/install.ts @@ -1,5 +1,18 @@ import { apiFetch, BASE, createSSEStream } from './http'; -import type { BatchInstallResult, CheckResult, ConfigEntry, DiscoverResult, DiscoveredSkill, HubConfigResponse, HubIndex, HubSavedEntry, InstallFromConfigResult, InstallResult, SearchResult, SkillPreview } from './types/install'; +import type { + BatchInstallResult, + CheckResult, + ConfigEntry, + DiscoverResult, + DiscoveredSkill, + HubConfigResponse, + HubIndex, + HubSavedEntry, + InstallFromConfigResult, + InstallResult, + SearchResult, + SkillPreview, +} from './types/install'; export const installApi = { hubIndex: () => apiFetch('/hub/index'), @@ -21,7 +34,9 @@ export const installApi = { search: (q: string, limit = 20) => apiFetch<{ results: SearchResult[] }>(`/search?q=${encodeURIComponent(q)}&limit=${limit}`), searchHub: (q: string, hubURL: string) => - apiFetch<{ results: SearchResult[] }>(`/search?q=${encodeURIComponent(q)}&hub=${encodeURIComponent(hubURL)}`), + apiFetch<{ results: SearchResult[] }>( + `/search?q=${encodeURIComponent(q)}&hub=${encodeURIComponent(hubURL)}`, + ), preview: (source: string) => apiFetch(`/preview?source=${encodeURIComponent(source)}`), check: () => apiFetch('/check'), @@ -32,26 +47,51 @@ export const installApi = { onDone: (data: CheckResult) => void, onError: (err: Error) => void, ): EventSource => - createSSEStream(BASE + '/check/stream', { - discovering: () => onDiscovering(), - start: (d) => onStart(d.total), - progress: (d) => onProgress(d.checked), - done: onDone, - }, onError, 'Check stream failed'), + createSSEStream( + BASE + '/check/stream', + { + discovering: () => onDiscovering(), + start: (d) => onStart(d.total), + progress: (d) => onProgress(d.checked), + done: onDone, + }, + onError, + 'Check stream failed', + ), discover: (source: string, branch?: string) => apiFetch('/discover', { method: 'POST', body: JSON.stringify({ source, branch }), }), - install: (opts: { source: string; name?: string; force?: boolean; skipAudit?: boolean; track?: boolean; into?: string; branch?: string; kind?: 'skill' | 'agent' }) => + install: (opts: { + source: string; + name?: string; + force?: boolean; + skipAudit?: boolean; + track?: boolean; + into?: string; + branch?: string; + kind?: 'skill' | 'agent'; + }) => apiFetch('/install', { method: 'POST', body: JSON.stringify(opts), }), // Entries recorded in config but not on disk (bare `skillshare install`) - missingConfigEntries: () => apiFetch<{ entries: ConfigEntry[]; file: string }>('/install/missing'), - installFromConfig: () => apiFetch('/install/from-config', { method: 'POST' }), - installBatch: (opts: { source: string; skills: DiscoveredSkill[]; force?: boolean; skipAudit?: boolean; into?: string; name?: string; branch?: string; kind?: 'skill' | 'agent' }) => + missingConfigEntries: () => + apiFetch<{ entries: ConfigEntry[]; file: string }>('/install/missing'), + installFromConfig: () => + apiFetch('/install/from-config', { method: 'POST' }), + installBatch: (opts: { + source: string; + skills: DiscoveredSkill[]; + force?: boolean; + skipAudit?: boolean; + into?: string; + name?: string; + branch?: string; + kind?: 'skill' | 'agent'; + }) => apiFetch('/install/batch', { method: 'POST', body: JSON.stringify(opts), diff --git a/ui/src/api/instructions.ts b/ui/src/api/instructions.ts index 60f78130f..4f8fca4fd 100644 --- a/ui/src/api/instructions.ts +++ b/ui/src/api/instructions.ts @@ -1,5 +1,18 @@ import { apiFetch } from './http'; -import type { ConvertMethod, InstructionsChange, InstructionsWarning, ProjectInstructions, SharedCopyResult, SharedInstructionsFile, SharedInstructionsTarget, SharedRestorePreview, TargetFile, TargetFileList, TargetInstructions, TargetInstructionsSetup } from './types/instructions'; +import type { + ConvertMethod, + InstructionsChange, + InstructionsWarning, + ProjectInstructions, + SharedCopyResult, + SharedInstructionsFile, + SharedInstructionsTarget, + SharedRestorePreview, + TargetFile, + TargetFileList, + TargetInstructions, + TargetInstructionsSetup, +} from './types/instructions'; export const instructionsApi = { getTargetInstructions: (name: string) => @@ -9,84 +22,141 @@ export const instructionsApi = { method: 'PUT', body: JSON.stringify({ content }), }), - convertTargetInstructions: (name: string, body: { method: ConvertMethod; keep_tool_lines: boolean; share_as?: string; share_into?: string; apply: boolean }) => - apiFetch<{ changes: InstructionsChange[] }>(`/targets/${encodeURIComponent(name)}/instructions/convert`, { - method: 'POST', - body: JSON.stringify(body), - }), + convertTargetInstructions: ( + name: string, + body: { + method: ConvertMethod; + keep_tool_lines: boolean; + share_as?: string; + share_into?: string; + apply: boolean; + }, + ) => + apiFetch<{ changes: InstructionsChange[] }>( + `/targets/${encodeURIComponent(name)}/instructions/convert`, + { + method: 'POST', + body: JSON.stringify(body), + }, + ), setTargetInstructionsSetup: (name: string, setup: TargetInstructionsSetup) => apiFetch<{ success: boolean }>(`/targets/${encodeURIComponent(name)}/instructions/setup`, { method: 'PUT', body: JSON.stringify(setup), }), removeTargetInstructionsSetup: (name: string) => - apiFetch<{ success: boolean }>(`/targets/${encodeURIComponent(name)}/instructions/setup`, { method: 'DELETE' }), + apiFetch<{ success: boolean }>(`/targets/${encodeURIComponent(name)}/instructions/setup`, { + method: 'DELETE', + }), // A target's other files listTargetFiles: (name: string) => apiFetch(`/targets/${encodeURIComponent(name)}/files`), getTargetFile: (name: string, path: string) => - apiFetch(`/targets/${encodeURIComponent(name)}/files/content?path=${encodeURIComponent(path)}`), + apiFetch( + `/targets/${encodeURIComponent(name)}/files/content?path=${encodeURIComponent(path)}`, + ), putTargetFile: (name: string, path: string, content: string) => - apiFetch(`/targets/${encodeURIComponent(name)}/files/content?path=${encodeURIComponent(path)}`, { - method: 'PUT', - body: JSON.stringify({ content }), - }), + apiFetch( + `/targets/${encodeURIComponent(name)}/files/content?path=${encodeURIComponent(path)}`, + { + method: 'PUT', + body: JSON.stringify({ content }), + }, + ), addTargetFile: (name: string, path: string) => apiFetch(`/targets/${encodeURIComponent(name)}/files`, { method: 'POST', body: JSON.stringify({ path }), }), removeTargetFile: (name: string, path: string) => - apiFetch(`/targets/${encodeURIComponent(name)}/files?path=${encodeURIComponent(path)}`, { method: 'DELETE' }), + apiFetch( + `/targets/${encodeURIComponent(name)}/files?path=${encodeURIComponent(path)}`, + { method: 'DELETE' }, + ), listSharedInstructions: () => - apiFetch<{ files: SharedInstructionsFile[]; targets: SharedInstructionsTarget[]; file_links: boolean }>('/instructions'), + apiFetch<{ + files: SharedInstructionsFile[]; + targets: SharedInstructionsTarget[]; + file_links: boolean; + }>('/instructions'), createSharedInstructions: (body: { name: string; content?: string; from_target?: string }) => apiFetch<{ success: boolean; path: string }>('/instructions', { method: 'POST', body: JSON.stringify(body), }), getSharedInstructionsContent: (name: string) => - apiFetch<{ name: string; path: string; exists: boolean; content: string }>(`/instructions/${encodeURIComponent(name)}/content`), + apiFetch<{ name: string; path: string; exists: boolean; content: string }>( + `/instructions/${encodeURIComponent(name)}/content`, + ), /** Saves the shared file; its copy targets are rewritten too (copies). */ putSharedInstructionsContent: (name: string, content: string) => - apiFetch<{ success: boolean; copies?: SharedCopyResult[] }>(`/instructions/${encodeURIComponent(name)}/content`, { - method: 'PUT', - body: JSON.stringify({ content }), - }), + apiFetch<{ success: boolean; copies?: SharedCopyResult[] }>( + `/instructions/${encodeURIComponent(name)}/content`, + { + method: 'PUT', + body: JSON.stringify({ content }), + }, + ), /** Sets exactly which shared files each target uses; [] restores their own files. */ assignSharedInstructions: (targets: string[], extras: string[]) => - apiFetch<{ success: boolean; errors: string[]; warnings?: InstructionsWarning[] }>('/instructions/assign', { - method: 'POST', - body: JSON.stringify({ targets, extras }), - }), + apiFetch<{ success: boolean; errors: string[]; warnings?: InstructionsWarning[] }>( + '/instructions/assign', + { + method: 'POST', + body: JSON.stringify({ targets, extras }), + }, + ), restoreSharedInstructions: (name: string, target: string) => - apiFetch<{ success: boolean; errors: string[] }>(`/instructions/${encodeURIComponent(name)}/restore`, { - method: 'POST', - body: JSON.stringify({ target }), - }), + apiFetch<{ success: boolean; errors: string[] }>( + `/instructions/${encodeURIComponent(name)}/restore`, + { + method: 'POST', + body: JSON.stringify({ target }), + }, + ), setSharedInstructionsMode: (name: string, target: string, mode: string) => - apiFetch<{ success: boolean; warnings?: InstructionsWarning[] }>(`/instructions/${encodeURIComponent(name)}/targets/${encodeURIComponent(target)}/mode`, { - method: 'PUT', - body: JSON.stringify({ mode }), - }), + apiFetch<{ success: boolean; warnings?: InstructionsWarning[] }>( + `/instructions/${encodeURIComponent(name)}/targets/${encodeURIComponent(target)}/mode`, + { + method: 'PUT', + body: JSON.stringify({ mode }), + }, + ), getSharedRestorePreview: (name: string, target: string) => - apiFetch(`/instructions/${encodeURIComponent(name)}/restore-preview?target=${encodeURIComponent(target)}`), + apiFetch( + `/instructions/${encodeURIComponent(name)}/restore-preview?target=${encodeURIComponent(target)}`, + ), addInstructionLocation: (name: string, body: { path: string; as?: string; mode?: string }) => - apiFetch<{ success: boolean; warnings?: InstructionsWarning[] }>(`/instructions/${encodeURIComponent(name)}/locations`, { - method: 'POST', - body: JSON.stringify(body), - }), + apiFetch<{ success: boolean; warnings?: InstructionsWarning[] }>( + `/instructions/${encodeURIComponent(name)}/locations`, + { + method: 'POST', + body: JSON.stringify(body), + }, + ), setInstructionLocationMode: (name: string, path: string, mode: string) => - apiFetch<{ success: boolean; warnings?: InstructionsWarning[] }>(`/instructions/${encodeURIComponent(name)}/locations/mode`, { - method: 'PUT', - body: JSON.stringify({ path, mode }), - }), + apiFetch<{ success: boolean; warnings?: InstructionsWarning[] }>( + `/instructions/${encodeURIComponent(name)}/locations/mode`, + { + method: 'PUT', + body: JSON.stringify({ path, mode }), + }, + ), removeInstructionLocation: (name: string, path: string) => - apiFetch<{ success: boolean; warnings?: InstructionsWarning[] }>(`/instructions/${encodeURIComponent(name)}/locations?path=${encodeURIComponent(path)}`, { method: 'DELETE' }), + apiFetch<{ success: boolean; warnings?: InstructionsWarning[] }>( + `/instructions/${encodeURIComponent(name)}/locations?path=${encodeURIComponent(path)}`, + { method: 'DELETE' }, + ), getLocationRestorePreview: (name: string, path: string) => - apiFetch(`/instructions/${encodeURIComponent(name)}/locations/restore-preview?path=${encodeURIComponent(path)}`), + apiFetch( + `/instructions/${encodeURIComponent(name)}/locations/restore-preview?path=${encodeURIComponent(path)}`, + ), /** Settles a modified target, or a location when `on` has its `path`. */ - resolveSharedInstructions: (name: string, on: { target: string } | { path: string }, action: 'collect' | 'reapply') => + resolveSharedInstructions: ( + name: string, + on: { target: string } | { path: string }, + action: 'collect' | 'reapply', + ) => apiFetch<{ success: boolean }>(`/instructions/${encodeURIComponent(name)}/resolve`, { method: 'POST', body: JSON.stringify({ ...on, action }), diff --git a/ui/src/api/kindQuery.test.ts b/ui/src/api/kindQuery.test.ts index 0d966ce76..9523bd949 100644 --- a/ui/src/api/kindQuery.test.ts +++ b/ui/src/api/kindQuery.test.ts @@ -3,7 +3,10 @@ import { apiFetch } from './http'; import { auditApi } from './audit'; import { resourcesApi } from './resources'; -vi.mock('./http', async (load) => ({ ...await load(), apiFetch: vi.fn() })); +vi.mock('./http', async (load) => ({ + ...(await load()), + apiFetch: vi.fn(), +})); // The kind unions are closed today; a cast stands in for a value that needs escaping. const odd = 'a&b' as 'skill'; diff --git a/ui/src/api/log.ts b/ui/src/api/log.ts index a4b4bbeed..97bd12856 100644 --- a/ui/src/api/log.ts +++ b/ui/src/api/log.ts @@ -2,7 +2,11 @@ import { apiFetch } from './http'; import type { LogListResponse, LogStatsResponse } from './types/log'; export const logApi = { - listLog: (type?: string, limit?: number, filters?: { cmd?: string; status?: string; since?: string }) => { + listLog: ( + type?: string, + limit?: number, + filters?: { cmd?: string; status?: string; since?: string }, + ) => { const params = new URLSearchParams(); params.set('type', type ?? 'ops'); params.set('limit', String(limit ?? 100)); diff --git a/ui/src/api/mcp.test.ts b/ui/src/api/mcp.test.ts index 8c75d3d02..823b0dcc6 100644 --- a/ui/src/api/mcp.test.ts +++ b/ui/src/api/mcp.test.ts @@ -6,10 +6,19 @@ vi.mock('./client', () => ({ apiFetch: vi.fn() })); describe('mcpApi.save', () => { it('previews the mutation and saves with its revision', async () => { - vi.mocked(apiFetch).mockResolvedValueOnce({ revision: 'rev-1' }).mockResolvedValueOnce({ applied: [] }); + vi.mocked(apiFetch) + .mockResolvedValueOnce({ revision: 'rev-1' }) + .mockResolvedValueOnce({ applied: [] }); const mutation = { name: 'docs', server: { url: 'https://docs.example/mcp' } }; await mcpApi.save(mutation); - expect(vi.mocked(apiFetch).mock.calls.map(([path, init]) => [path, JSON.parse(String(init?.body))])).toEqual([ + expect( + vi + .mocked(apiFetch) + .mock.calls.map(([path, init]) => [ + path, + typeof init?.body === 'string' ? JSON.parse(init.body) : init?.body, + ]), + ).toEqual([ ['/mcp/preview', { mutation }], ['/mcp', { mutation, revision: 'rev-1', sync: false }], ]); diff --git a/ui/src/api/mcp.ts b/ui/src/api/mcp.ts index 36f110092..f91773d28 100644 --- a/ui/src/api/mcp.ts +++ b/ui/src/api/mcp.ts @@ -1,13 +1,44 @@ import { apiFetch } from './client'; -export const mcpTargets = ['claude', 'codex', 'cursor', 'vscode', 'opencode', 'kilocode', 'grok', 'antigravity', 'amp', 'claude-desktop', 'cline', 'copilot', 'factory', 'gemini', 'goose', 'hermes', 'junie', 'kiro', 'lmstudio', 'warp', 'windsurf', 'pi', 'omp'] as const; +export const mcpTargets = [ + 'claude', + 'codex', + 'cursor', + 'vscode', + 'opencode', + 'kilocode', + 'grok', + 'antigravity', + 'amp', + 'claude-desktop', + 'cline', + 'copilot', + 'factory', + 'gemini', + 'goose', + 'hermes', + 'junie', + 'kiro', + 'lmstudio', + 'warp', + 'windsurf', + 'pi', + 'omp', +] as const; export type MCPValue = string | { fromEnv: string }; /** A scope's defaults. A save replaces them, so a value left out is cleared. */ -export interface MCPSettings { targets?: string[] } +export interface MCPSettings { + targets?: string[]; +} /** One root under the global config's mcp.projects. */ -export interface MCPProject extends MCPSettings { servers?: Record } +export interface MCPProject extends MCPSettings { + servers?: Record; +} /** Which of a server's tools reach the model, written once and translated per Agent. Names may use `*`. */ -export interface MCPToolPolicy { allow?: string[]; deny?: string[] } +export interface MCPToolPolicy { + allow?: string[]; + deny?: string[]; +} export interface MCPServer { command?: string; args?: string[]; @@ -48,51 +79,125 @@ export interface MCPPlan { /** Syncing also saves the config without the settings 0.23.0 retired, even when no Agent file changes. */ migrates?: boolean; /** `switch`: the entry only turns a global server off for one project, so adding it turns the server off there. */ - changes: { target: string; path: string; name: string; root?: string; switch?: boolean; action: string; message?: string; fields?: { added?: string[]; updated?: string[]; removed?: string[] } }[]; + changes: { + target: string; + path: string; + name: string; + root?: string; + switch?: boolean; + action: string; + message?: string; + fields?: { added?: string[]; updated?: string[]; removed?: string[] }; + }[]; } /** `migrated`: config files the sync also saved without the settings 0.23.0 retired, and each one's backup. */ -export interface MCPResult { plan?: MCPPlan; applied: string[]; backupIds: string[]; migrated?: { path: string; backup?: string }[] } +export interface MCPResult { + plan?: MCPPlan; + applied: string[]; + backupIds: string[]; + migrated?: { path: string; backup?: string }[]; +} /** Servers in one Agent file that skillshare does not manage; `project` is a root under mcp.projects. */ -export interface MCPUnmanaged { target: string; project?: string; path: string; names: string[] } +export interface MCPUnmanaged { + target: string; + project?: string; + path: string; + names: string[]; +} /** `servers`: what the write the backup was taken before changed; `time`: when it was taken. */ -export interface MCPBackup { id: string; target: string; path: string; time?: string; servers?: { name: string; change: 'added' | 'changed' | 'removed' }[] } -export interface MCPCandidate { name: string; server: MCPServer; problems: string[]; warnings: string[]; from?: string } +export interface MCPBackup { + id: string; + target: string; + path: string; + time?: string; + servers?: { name: string; change: 'added' | 'changed' | 'removed' }[]; +} +export interface MCPCandidate { + name: string; + server: MCPServer; + problems: string[]; + warnings: string[]; + from?: string; +} /** `piExtension` only tells Pi's files apart: `builtin` is mcp.json, `pi-mcp-adapter` the legacy mcp-adapter.json. */ -export interface MCPImportSource { target: string; path: string; piExtension?: string } -const post = (path: string, body: unknown) => apiFetch(path, { method: 'POST', body: JSON.stringify(body) }); +export interface MCPImportSource { + target: string; + path: string; + piExtension?: string; +} +const post = (path: string, body: unknown) => + apiFetch(path, { method: 'POST', body: JSON.stringify(body) }); export const mcpApi = { - list: () => apiFetch<{ - source: { path: string; configPath: string; targets: string[] | null; servers: Record; projects?: Record; /** Targets that are another config folder of an Agent, by name */ accounts?: Record; - /** Settings the config still has that no longer apply, worded by the server in English. */ - notices?: string[] }; - /** Project roots that also have their own .skillshare/config.yaml. */ - projectConfigs: string[]; - paths: Record; detected: string[]; - /** This browser runs on the dashboard's machine, so it can open files and folders there. */ - local: boolean; - /** Targets whose file in `paths` exists and this browser, on the dashboard's machine, can open. */ - openable: string[]; - /** For each mcp.projects root: its Agents' paths, and the targets whose file exists there, whoever views them. */ - projectPaths: Record>; projectExisting: Record; plan: MCPPlan | null; previewError: string; - /** Native import files by scope: the empty key is this config, others are project roots. */ - importSources?: Record; - backups: MCPBackup[]; - unmanaged: MCPUnmanaged[]; - }>('/mcp'), + list: () => + apiFetch<{ + source: { + path: string; + configPath: string; + targets: string[] | null; + servers: Record; + projects?: Record; + /** Targets that are another config folder of an Agent, by name */ accounts?: Record< + string, + { agent: string; configDir: string } + >; + /** Settings the config still has that no longer apply, worded by the server in English. */ + notices?: string[]; + }; + /** Project roots that also have their own .skillshare/config.yaml. */ + projectConfigs: string[]; + paths: Record; + detected: string[]; + /** This browser runs on the dashboard's machine, so it can open files and folders there. */ + local: boolean; + /** Targets whose file in `paths` exists and this browser, on the dashboard's machine, can open. */ + openable: string[]; + /** For each mcp.projects root: its Agents' paths, and the targets whose file exists there, whoever views them. */ + projectPaths: Record>; + projectExisting: Record; + plan: MCPPlan | null; + previewError: string; + /** Native import files by scope: the empty key is this config, others are project roots. */ + importSources?: Record; + backups: MCPBackup[]; + unmanaged: MCPUnmanaged[]; + }>('/mcp'), preview: (mutation: MCPMutation = {}) => post('/mcp/preview', { mutation }), - configure: (mutation: MCPMutation, revision: string, sync: boolean) => post('/mcp', { mutation, revision, sync }), + configure: (mutation: MCPMutation, revision: string, sync: boolean) => + post('/mcp', { mutation, revision, sync }), /** Apply only the changes of one mcp.projects root; the global scope and other projects stay pending. */ - syncProject: (root: string, revision: string) => post('/mcp', { mutation: {}, revision, sync: true, root }), + syncProject: (root: string, revision: string) => + post('/mcp', { mutation: {}, revision, sync: true, root }), /** Save to the source only. The server refuses a write it has not previewed; the revision also catches concurrent edits. */ save: async (mutation: MCPMutation) => - post('/mcp', { mutation, revision: (await post('/mcp/preview', { mutation })).revision, sync: false }), + post('/mcp', { + mutation, + revision: (await post('/mcp/preview', { mutation })).revision, + sync: false, + }), /** One server as each of its targets' config files would hold it. Reads configuration only; no server is executed and no file is written. */ /** `toolGaps`: the parts of the server's tool policy that Agent does not apply. */ - render: (mutation: MCPMutation) => post<{ rendered: { target: string; path: string; content?: string; error?: string; toolGaps?: string[] }[] }>('/mcp/render', { mutation }), + render: (mutation: MCPMutation) => + post<{ + rendered: { + target: string; + path: string; + content?: string; + error?: string; + toolGaps?: string[]; + }[]; + }>('/mcp/render', { mutation }), /** `root` reads the `from` target's file in that mcp.projects root. */ - import: (body: { from?: string; content?: string; name?: string; root?: string; piExtension?: string }) => post<{ candidates: MCPCandidate[] }>('/mcp/import', body), + import: (body: { + from?: string; + content?: string; + name?: string; + root?: string; + piExtension?: string; + }) => post<{ candidates: MCPCandidate[] }>('/mcp/import', body), previewRestore: (backupId: string) => post('/mcp/restore', { backupId, preview: true }), - restore: (backupId: string, revision: string) => post('/mcp/restore', { backupId, revision }), + restore: (backupId: string, revision: string) => + post('/mcp/restore', { backupId, revision }), /** Open one Agent's config file, as listed in `paths` or `projectPaths`, the way the skill page opens a skill; `folder` opens its directory instead. */ - open: (target: string, opts: { project?: string; folder?: boolean } = {}) => post<{ editor: string; path: string; pid: number }>('/mcp/open', { target, ...opts }), + open: (target: string, opts: { project?: string; folder?: boolean } = {}) => + post<{ editor: string; path: string; pid: number }>('/mcp/open', { target, ...opts }), }; diff --git a/ui/src/api/mcpCheck.ts b/ui/src/api/mcpCheck.ts index 6b1b13397..c72badcef 100644 --- a/ui/src/api/mcpCheck.ts +++ b/ui/src/api/mcpCheck.ts @@ -11,15 +11,29 @@ export interface MCPCheckFinding { } /** `project` is the mcp.projects root a server belongs to; absent for a global server. */ /** `live`: what the server reported when probed, only with `?live=1`. */ -export interface MCPCheckServer { name: string; project?: string; ok: boolean; findings: MCPCheckFinding[]; live?: { tools: number; toolNames?: string[] } } -export interface MCPCheckReport { servers: MCPCheckServer[]; summary: { errors: number; warnings: number } } +export interface MCPCheckServer { + name: string; + project?: string; + ok: boolean; + findings: MCPCheckFinding[]; + live?: { tools: number; toolNames?: string[] }; +} +export interface MCPCheckReport { + servers: MCPCheckServer[]; + summary: { errors: number; warnings: number }; +} /** Why a probe failed, for the dashboard to phrase; `error` is the raw detail. */ export type MCPProbeErrorKind = 'connect' | 'timeout' | 'auth' | 'protocol' | 'command' | 'unknown'; -export interface MCPProbe { live?: { tools: number; toolNames?: string[] }; errorKind?: MCPProbeErrorKind; error?: string } +export interface MCPProbe { + live?: { tools: number; toolNames?: string[] }; + errorKind?: MCPProbeErrorKind; + error?: string; +} export const mcpCheckApi = { /** Read-only. Findings that are errors still resolve; only a check that cannot run rejects. */ run: () => apiFetch('/mcp/check'), /** Starts the server as the form describes it, saved or not, and asks for its tools. Saves nothing. */ - probe: (mutation: MCPMutation) => apiFetch('/mcp/probe', { method: 'POST', body: JSON.stringify({ mutation }) }), + probe: (mutation: MCPMutation) => + apiFetch('/mcp/probe', { method: 'POST', body: JSON.stringify({ mutation }) }), }; diff --git a/ui/src/api/memory.ts b/ui/src/api/memory.ts index d63416acf..badf6eef1 100644 --- a/ui/src/api/memory.ts +++ b/ui/src/api/memory.ts @@ -40,7 +40,14 @@ export interface MemoryGuidancePlan { token: string; changes: { path: string; before: string; after: string; targets: string[]; created: boolean }[]; skipped: { target: string; reason: string }[]; - warnings: { code: string; path: string; targets?: string[]; target?: string; limit?: number; chars?: number }[]; + warnings: { + code: string; + path: string; + targets?: string[]; + target?: string; + limit?: number; + chars?: number; + }[]; } export interface MemoryNotesResponse { @@ -60,26 +67,50 @@ export interface MemoryOverviewResponse { export const memoryApi = { getMemoryOverview: () => apiFetch('/extras/memory/recent'), - listMemoryNotes: (search = '') => apiFetch(`/extras/memory/notes?search=${encodeURIComponent(search)}`), - initMemory: () => apiFetch<{ success: boolean; root: string }>('/extras/memory/init', { method: 'POST' }), + listMemoryNotes: (search = '') => + apiFetch(`/extras/memory/notes?search=${encodeURIComponent(search)}`), + initMemory: () => + apiFetch<{ success: boolean; root: string }>('/extras/memory/init', { method: 'POST' }), getMemoryGuidance: () => apiFetch('/extras/memory/guidance'), - planMemoryGuidance: (targets: string[], modes: Record) => apiFetch('/extras/memory/guidance/plan', { - method: 'POST', body: JSON.stringify({ targets, modes }), - }), - applyMemoryGuidance: (targets: string[], modes: Record, token: string) => apiFetch<{ success: boolean; applied: string[]; errors: { path: string; error: string }[]; targets: MemoryGuidanceTarget[] }>('/extras/memory/guidance/apply', { - method: 'POST', body: JSON.stringify({ targets, modes, token }), - }), - linkMemoryIndex: (path: string, version: string) => apiFetch('/extras/memory/index', { - method: 'PUT', body: JSON.stringify({ path, version }), - }), - readMemoryNote: (path: string) => apiFetch(`/extras/memory/notes/content?path=${encodeURIComponent(path)}`), - writeMemoryNote: (path: string, content: string, version: string) => apiFetch('/extras/memory/notes/content', { - method: 'PUT', body: JSON.stringify({ path, content, version }), - }), - moveMemoryNote: (path: string, newPath: string, version: string) => apiFetch('/extras/memory/move', { - method: 'POST', body: JSON.stringify({ path, new_path: newPath, version }), - }), - deleteMemoryNote: (path: string, version: string) => apiFetch<{ success: boolean; path: string }>('/extras/memory/notes/content', { - method: 'DELETE', body: JSON.stringify({ path, version }), - }), + planMemoryGuidance: (targets: string[], modes: Record) => + apiFetch('/extras/memory/guidance/plan', { + method: 'POST', + body: JSON.stringify({ targets, modes }), + }), + applyMemoryGuidance: ( + targets: string[], + modes: Record, + token: string, + ) => + apiFetch<{ + success: boolean; + applied: string[]; + errors: { path: string; error: string }[]; + targets: MemoryGuidanceTarget[]; + }>('/extras/memory/guidance/apply', { + method: 'POST', + body: JSON.stringify({ targets, modes, token }), + }), + linkMemoryIndex: (path: string, version: string) => + apiFetch('/extras/memory/index', { + method: 'PUT', + body: JSON.stringify({ path, version }), + }), + readMemoryNote: (path: string) => + apiFetch(`/extras/memory/notes/content?path=${encodeURIComponent(path)}`), + writeMemoryNote: (path: string, content: string, version: string) => + apiFetch('/extras/memory/notes/content', { + method: 'PUT', + body: JSON.stringify({ path, content, version }), + }), + moveMemoryNote: (path: string, newPath: string, version: string) => + apiFetch('/extras/memory/move', { + method: 'POST', + body: JSON.stringify({ path, new_path: newPath, version }), + }), + deleteMemoryNote: (path: string, version: string) => + apiFetch<{ success: boolean; path: string }>('/extras/memory/notes/content', { + method: 'DELETE', + body: JSON.stringify({ path, version }), + }), }; diff --git a/ui/src/api/ompExtensions.ts b/ui/src/api/ompExtensions.ts index e2b53d7c7..d7ccbc61a 100644 --- a/ui/src/api/ompExtensions.ts +++ b/ui/src/api/ompExtensions.ts @@ -45,7 +45,10 @@ export interface OmpExtensionsView { rows: OmpExtensionRow[]; } -export interface OmpExtensionChange { key: string; enabled: boolean } +export interface OmpExtensionChange { + key: string; + enabled: boolean; +} /** The preview's `revision` is a plan token; apply sends it back, so only that reviewed plan is written. */ export interface OmpExtensionsPlan { @@ -58,15 +61,21 @@ export interface OmpExtensionsPlan { const base = (target: string) => `/targets/${encodeURIComponent(target)}/omp-extensions`; const post = (target: string, verb: string, changes: OmpExtensionChange[], revision: string) => - apiFetch(`${base(target)}/${verb}`, { method: 'POST', body: JSON.stringify({ changes, revision }) }); + apiFetch(`${base(target)}/${verb}`, { + method: 'POST', + body: JSON.stringify({ changes, revision }), + }); export const ompExtensionsApi = { get: (target: string) => apiFetch(base(target)), /** Writes nothing; `revision` is the view's. */ - preview: (target: string, changes: OmpExtensionChange[], revision: string) => post(target, 'preview', changes, revision), + preview: (target: string, changes: OmpExtensionChange[], revision: string) => + post(target, 'preview', changes, revision), /** `revision` is the previewed plan's. */ - apply: (target: string, changes: OmpExtensionChange[], revision: string) => post(target, 'apply', changes, revision), + apply: (target: string, changes: OmpExtensionChange[], revision: string) => + post(target, 'apply', changes, revision), }; /** A target whose Agent is Oh My Pi: omp itself or an omp account. A project's omp has its tab on the project page. */ -export const isOmpTarget = (t: { name: string; agent?: string }) => t.name === 'omp' || t.agent === 'omp'; +export const isOmpTarget = (t: { name: string; agent?: string }) => + t.name === 'omp' || t.agent === 'omp'; diff --git a/ui/src/api/piExtensions.ts b/ui/src/api/piExtensions.ts index 998ef3e79..0cf6c355f 100644 --- a/ui/src/api/piExtensions.ts +++ b/ui/src/api/piExtensions.ts @@ -47,7 +47,13 @@ export interface PiExtensionFolder { /** Project view only: whose settings decide these rows. */ scope?: 'global' | 'project'; problem?: string; - rows: { path: string; file: 'present' | 'missing'; selection: PiSelection; provenance: 'native' | 'extras'; extra?: string }[]; + rows: { + path: string; + file: 'present' | 'missing'; + selection: PiSelection; + provenance: 'native' | 'extras'; + extra?: string; + }[]; } export interface PiExtensionsView { @@ -72,17 +78,40 @@ export interface PiExtensionsView { * project, a global package is changed by a new project override; the global file is * never written. */ -export interface PiExtensionChange { scope: 'global' | 'project'; index: number; source: string; path: string; action: PiExtensionAction } +export interface PiExtensionChange { + scope: 'global' | 'project'; + index: number; + source: string; + path: string; + action: PiExtensionAction; +} export interface PiExtensionsPlan { revision: string; settingsPath: string; entries: { - scope?: 'global' | 'project'; index: number; source: string; identity: string; before: string[] | null; after: string[] | null; converted: boolean; keptKeys: string[]; + scope?: 'global' | 'project'; + index: number; + source: string; + identity: string; + before: string[] | null; + after: string[] | null; + converted: boolean; + keptKeys: string[]; /** Project only: a new override written with `reference` as its source, or an override left with no rule and removed. */ - created?: boolean; removed?: boolean; reference?: string; + created?: boolean; + removed?: boolean; + reference?: string; + }[]; + rows: { + scope?: 'global' | 'project'; + index: number; + path: string; + before: PiSelection; + after: PiSelection; + removed: string[]; + added: string[]; }[]; - rows: { scope?: 'global' | 'project'; index: number; path: string; before: PiSelection; after: PiSelection; removed: string[]; added: string[] }[]; backupId?: string; } @@ -92,10 +121,17 @@ export const piExtensionsApi = { get: (target: string) => apiFetch(base(target)), /** Writes nothing; the plan's revision is what apply checks the file against. */ preview: (target: string, changes: PiExtensionChange[]) => - apiFetch(`${base(target)}/preview`, { method: 'POST', body: JSON.stringify({ changes }) }), + apiFetch(`${base(target)}/preview`, { + method: 'POST', + body: JSON.stringify({ changes }), + }), apply: (target: string, changes: PiExtensionChange[], revision: string) => - apiFetch(`${base(target)}/apply`, { method: 'POST', body: JSON.stringify({ changes, revision }) }), + apiFetch(`${base(target)}/apply`, { + method: 'POST', + body: JSON.stringify({ changes, revision }), + }), }; /** A target whose Agent is Pi: pi itself or a Pi account. A project's Pi has its tab on the project page. */ -export const isPiTarget = (t: { name: string; agent?: string }) => t.name === 'pi' || t.agent === 'pi'; +export const isPiTarget = (t: { name: string; agent?: string }) => + t.name === 'pi' || t.agent === 'pi'; diff --git a/ui/src/api/plugins.test.ts b/ui/src/api/plugins.test.ts index dd6498b5e..5da5a8b03 100644 --- a/ui/src/api/plugins.test.ts +++ b/ui/src/api/plugins.test.ts @@ -1,6 +1,13 @@ import { describe, expect, it, vi } from 'vitest'; import { apiFetch } from './client'; -import { type PluginBinding, bindingStatus, piShareCommand, pluginShareCommand, pluginsApi, syncAction } from './plugins'; +import { + type PluginBinding, + bindingStatus, + piShareCommand, + pluginShareCommand, + pluginsApi, + syncAction, +} from './plugins'; vi.mock('./client', () => ({ apiFetch: vi.fn() })); @@ -8,7 +15,15 @@ describe('pluginsApi.list', () => { it('reads a null installed list as empty', async () => { vi.mocked(apiFetch).mockResolvedValueOnce({ packages: {}, - hosts: [{ target: 'opencode', version: '1.18.32', status: 'blocked', error: 'both opencode.json and opencode.jsonc exist', installed: null }], + hosts: [ + { + target: 'opencode', + version: '1.18.32', + status: 'blocked', + error: 'both opencode.json and opencode.jsonc exist', + installed: null, + }, + ], }); const inv = await pluginsApi.list(); expect(inv.hosts[0].installed).toEqual([]); @@ -17,11 +32,20 @@ describe('pluginsApi.list', () => { describe('pluginShareCommand', () => { it('adds the plugin from its source with what picked it there', () => { - expect(pluginShareCommand('mine', { source: 'https://github.com/owner/market.git', plugin: 'demo', sourceRef: 'v1.2' })) - .toBe('skillshare plugin add https://github.com/owner/market.git --plugin demo --name mine --source-ref v1.2 -g'); + expect( + pluginShareCommand('mine', { + source: 'https://github.com/owner/market.git', + plugin: 'demo', + sourceRef: 'v1.2', + }), + ).toBe( + 'skillshare plugin add https://github.com/owner/market.git --plugin demo --name mine --source-ref v1.2 -g', + ); }); it('quotes values the shell would split', () => { - expect(pluginShareCommand('demo', { source: 'https://example.com/a b.git' })).toBe("skillshare plugin add 'https://example.com/a b.git' -g"); + expect(pluginShareCommand('demo', { source: 'https://example.com/a b.git' })).toBe( + "skillshare plugin add 'https://example.com/a b.git' -g", + ); }); it('offers nothing for a local directory', () => { expect(pluginShareCommand('demo', { source: '/Users/me/plugins/demo' })).toBe(''); @@ -30,13 +54,19 @@ describe('pluginShareCommand', () => { describe('piShareCommand', () => { it('names the built-in Pi target when nobody is asked', () => { - expect(piShareCommand('pi-subagents', 'npm:pi-subagents', false)).toBe('skillshare plugin add npm:pi-subagents --target pi -g'); + expect(piShareCommand('pi-subagents', 'npm:pi-subagents', false)).toBe( + 'skillshare plugin add npm:pi-subagents --target pi -g', + ); }); it('leaves the target to the prompt when asking', () => { - expect(piShareCommand('tools', 'npm:@acme/tools@1.2.0', true)).toBe('skillshare plugin add npm:@acme/tools@1.2.0 -g'); + expect(piShareCommand('tools', 'npm:@acme/tools@1.2.0', true)).toBe( + 'skillshare plugin add npm:@acme/tools@1.2.0 -g', + ); }); it('keeps a name the package would not get by itself', () => { - expect(piShareCommand('mine', 'npm:@acme/tools', false)).toBe('skillshare plugin add npm:@acme/tools --name mine --target pi -g'); + expect(piShareCommand('mine', 'npm:@acme/tools', false)).toBe( + 'skillshare plugin add npm:@acme/tools --name mine --target pi -g', + ); }); it('offers nothing for a package that is not from npm', () => { expect(piShareCommand('demo', '/Users/me/pkgs/demo', false)).toBe(''); @@ -44,20 +74,29 @@ describe('piShareCommand', () => { }); describe('syncAction', () => { - const host = (managedMarketplaces?: string[]) => ({ target: 'claude' as const, version: '1', status: 'ready', installed: [], managedMarketplaces }); - const excluded = { id: 'demo@skillshare-demo-0123', source: 'https://example.com/demo', sync: false }; + const host = (managedMarketplaces?: string[]) => ({ + target: 'claude' as const, + version: '1', + status: 'ready', + installed: [], + managedMarketplaces, + }); + const excluded = { + id: 'demo@skillshare-demo-0123', + source: 'https://example.com/demo', + sync: false, + }; it('still has work for an excluded plugin whose Skillshare marketplace is left', () => { expect(syncAction(excluded, host(['skillshare-demo-0123']))).toBe('uninstall'); }); - it('leaves an excluded plugin alone when its marketplace is gone or not Skillshare\'s', () => { + it("leaves an excluded plugin alone when its marketplace is gone or not Skillshare's", () => { expect(syncAction(excluded, host([]))).toBe(''); }); - it('never claims an imported plugin\'s marketplace', () => { + it("never claims an imported plugin's marketplace", () => { expect(syncAction({ id: 'demo@team', sync: false }, host(['team']))).toBe(''); }); }); - describe('host-local bindings', () => { const host = { target: 'omp', version: '1', status: 'ready', installed: [] }; it('keeps an unbound import visible without proposing an install', () => { @@ -86,18 +125,30 @@ describe('host-local bindings', () => { }); }); - describe('shared ref reconciliation', () => { const binding: PluginBinding = { id: '/local/old', source: 'owner/repo', refChanged: true }; - const ready = { target: 'pi', version: '1', status: 'ready', installed: [{ id: binding.id, enabled: true }] }; + const ready = { + target: 'pi', + version: '1', + status: 'ready', + installed: [{ id: binding.id, enabled: true }], + }; it.each([ - [{}, ready, 'update'], [{}, { ...ready, installed: [] }, 'install'], - [{ sync: false }, ready, 'uninstall'], [{ sync: false }, { ...ready, installed: [] }, ''], - [{ cleanup: true }, ready, 'remove'], [{ contextChanged: true }, ready, ''], - [{ imported: true, id: '' }, ready, ''], [{ pending: 'remove' }, ready, 'update'], - [{}, undefined, ''], [{}, { ...ready, status: 'missing', installed: [] }, 'install'], + [{}, ready, 'update'], + [{}, { ...ready, installed: [] }, 'install'], + [{ sync: false }, ready, 'uninstall'], + [{ sync: false }, { ...ready, installed: [] }, ''], + [{ cleanup: true }, ready, 'remove'], + [{ contextChanged: true }, ready, ''], + [{ imported: true, id: '' }, ready, ''], + [{ pending: 'remove' }, ready, 'update'], + [{}, undefined, ''], + [{}, { ...ready, status: 'missing', installed: [] }, 'install'], [{}, { ...ready, error: 'unavailable' }, ''], - ] as [Partial, typeof ready | undefined, string][])('keeps reconciliation precedence: %o / %o', (changes, host, action) => { - expect(syncAction({ ...binding, ...changes }, host)).toBe(action); - }); + ] as [Partial, typeof ready | undefined, string][])( + 'keeps reconciliation precedence: %o / %o', + (changes, host, action) => { + expect(syncAction({ ...binding, ...changes }, host)).toBe(action); + }, + ); }); diff --git a/ui/src/api/plugins.ts b/ui/src/api/plugins.ts index 1f9f6e297..ef40a4387 100644 --- a/ui/src/api/plugins.ts +++ b/ui/src/api/plugins.ts @@ -3,20 +3,91 @@ import { BASE, createSSEStream, parseApiErrorPayload } from './http'; export type PluginTarget = string; /** `npm`: the target installs npm: sources (Pi, or a Pi account that runs pi). */ -export interface PluginTargetDefinition { target: string; label: string; project: boolean; operations: string[]; reason?: string; reasonKey?: string; npm?: boolean } -export const targetMap = (definitions: PluginTargetDefinition[] = []) => Object.fromEntries(definitions.map((d) => [d.target, d])); -export type PluginAction = 'add' | 'import' | 'unimport' | 'sync' | 'check' | 'update' | 'remove' | 'enable' | 'disable'; -export interface PluginRequest { action: PluginAction; name?: string; source?: string; sourceRef?: string; entry?: string; plugin?: string; targets?: PluginTarget[]; from?: PluginTarget } -export interface PluginBinding { refChanged?: boolean; imported?: boolean; importRetained?: boolean; cleanup?: boolean; contextChanged?: boolean; piRegistration?: string; id: string; source?: string; sourceRef?: string; commit?: string; entry?: string; plugin?: string; digest?: string; version?: string; pending?: string; sync?: boolean; components?: string[] } -export interface NativePlugin { id: string; version?: string; enabled: boolean; enabledKnown?: boolean; scope?: string; filtered?: boolean; importable?: boolean } -export interface PluginPackage { version?: string; source?: string; sourceRef?: string; plugin?: string; entry?: string; bindings: Partial> } +export interface PluginTargetDefinition { + target: string; + label: string; + project: boolean; + operations: string[]; + reason?: string; + reasonKey?: string; + npm?: boolean; +} +export const targetMap = (definitions: PluginTargetDefinition[] = []) => + Object.fromEntries(definitions.map((d) => [d.target, d])); +export type PluginAction = + | 'add' + | 'import' + | 'unimport' + | 'sync' + | 'check' + | 'update' + | 'remove' + | 'enable' + | 'disable'; +export interface PluginRequest { + action: PluginAction; + name?: string; + source?: string; + sourceRef?: string; + entry?: string; + plugin?: string; + targets?: PluginTarget[]; + from?: PluginTarget; +} +export interface PluginBinding { + refChanged?: boolean; + imported?: boolean; + importRetained?: boolean; + cleanup?: boolean; + contextChanged?: boolean; + piRegistration?: string; + id: string; + source?: string; + sourceRef?: string; + commit?: string; + entry?: string; + plugin?: string; + digest?: string; + version?: string; + pending?: string; + sync?: boolean; + components?: string[]; +} +export interface NativePlugin { + id: string; + version?: string; + enabled: boolean; + enabledKnown?: boolean; + scope?: string; + filtered?: boolean; + importable?: boolean; +} +export interface PluginPackage { + version?: string; + source?: string; + sourceRef?: string; + plugin?: string; + entry?: string; + bindings: Partial>; +} export interface PluginInventory { targetDefinitions?: PluginTargetDefinition[]; /** `source` and the rest are set when the plugin was added, so it stays managed with no Agent bound. */ packages: Record; /** `status`: 'ready' | 'missing' (its CLI is not on PATH here) | 'blocked' (deal with it in the Agent). */ /** `managedMarketplaces`: the Claude/Codex marketplaces Skillshare registered from its own state directory. */ - hosts: { target: PluginTarget; version: string; status: string; error?: string; errorKey?: string; errorArgs?: Record; note?: string; noteKey?: string; installed: NativePlugin[]; managedMarketplaces?: string[] }[]; + hosts: { + target: PluginTarget; + version: string; + status: string; + error?: string; + errorKey?: string; + errorArgs?: Record; + note?: string; + noteKey?: string; + installed: NativePlugin[]; + managedMarketplaces?: string[]; + }[]; } /** * What Sync would do to one binding, '' when nothing. Without `host` (the Agents have not @@ -29,7 +100,11 @@ export const syncAction = (b: PluginBinding, host?: PluginInventory['hosts'][num if (b.imported && !b.id) return ''; const exists = host?.installed.some((i) => i.id === b.id); // The plugin is gone but the marketplace Skillshare registered for it is still there. - const leftover = !exists && !!b.source && b.id.includes('@') && !!host?.managedMarketplaces?.includes(b.id.slice(b.id.indexOf('@') + 1)); + const leftover = + !exists && + !!b.source && + b.id.includes('@') && + !!host?.managedMarketplaces?.includes(b.id.slice(b.id.indexOf('@') + 1)); if (b.cleanup) return host && !host.error ? 'remove' : ''; if (b.sync === false) return exists || leftover ? 'uninstall' : ''; if (b.refChanged && host?.status === 'ready' && !host.error) return exists ? 'update' : 'install'; @@ -46,17 +121,25 @@ export const bindingStatus = (b: PluginBinding, host?: PluginInventory['hosts'][ if (!host) return ''; if (host.error) return 'plugins.unverified'; const installed = host.installed.find((i) => i.id === b.id); - return installed && installed.enabledKnown !== false && !installed.enabled ? 'plugins.nativeDisabled' : ''; + return installed && installed.enabledKnown !== false && !installed.enabled + ? 'plugins.nativeDisabled' + : ''; }; /** * A binding's version: what config recorded, else what the Agent reports installed. On a Pi * target Pi's answer comes first: it reads each installed package's package.json, npm, git or * local, and a version recorded at import goes stale with the next pi update. */ -export const bindingVersion = (inventory: Pick, target: PluginTarget, b: PluginBinding) => { - const installed = inventory.hosts.find((h) => h.target === target)?.installed.find((i) => i.id === b.id)?.version; +export const bindingVersion = ( + inventory: Pick, + target: PluginTarget, + b: PluginBinding, +) => { + const installed = inventory.hosts + .find((h) => h.target === target) + ?.installed.find((i) => i.id === b.id)?.version; const pi = inventory.targetDefinitions?.some((d) => d.target === target && d.npm); - return pi ? installed ?? b.version : b.version ?? installed; + return pi ? (installed ?? b.version) : (b.version ?? installed); }; /** * The command that adds this plugin from its source on another machine, '' when the source is a @@ -64,10 +147,23 @@ export const bindingVersion = (inventory: Pick (/^[\w@%+=:,./-]+$/.test(s) ? s : `'${s.replace(/'/g, `'"'"'`)}'`); -export const pluginShareCommand = (name: string, p: { source?: string; sourceRef?: string; plugin?: string; entry?: string }) => { +export const pluginShareCommand = ( + name: string, + p: { source?: string; sourceRef?: string; plugin?: string; entry?: string }, +) => { if (!p.source?.startsWith('https://')) return ''; - const flags: [string, string | undefined][] = [['--plugin', p.plugin], ['--name', p.plugin && p.plugin !== name ? name : undefined], ['--source-ref', p.sourceRef], ['--entry', p.entry]]; - return ['skillshare plugin add', quote(p.source), ...flags.filter(([, v]) => v).map(([flag, v]) => `${flag} ${quote(v!)}`), '-g'].join(' '); + const flags: [string, string | undefined][] = [ + ['--plugin', p.plugin], + ['--name', p.plugin && p.plugin !== name ? name : undefined], + ['--source-ref', p.sourceRef], + ['--entry', p.entry], + ]; + return [ + 'skillshare plugin add', + quote(p.source), + ...flags.filter(([, v]) => v).map(([flag, v]) => `${flag} ${quote(v!)}`), + '-g', + ].join(' '); }; /** The name an npm source is recorded under when none is given, as the server derives it (npmSpec): the package name without its version or @scope. */ export function npmDefaultName(source: string) { @@ -84,15 +180,77 @@ export function npmDefaultName(source: string) { export const piShareCommand = (name: string, id: string, ask: boolean) => { if (!/^npm:\S+$/.test(id)) return ''; const named = npmDefaultName(id) === name ? [] : [`--name ${quote(name)}`]; - return ['skillshare plugin add', quote(id), ...named, ...(ask ? [] : ['--target pi']), '-g'].join(' '); + return ['skillshare plugin add', quote(id), ...named, ...(ask ? [] : ['--target pi']), '-g'].join( + ' ', + ); }; -export interface PluginCandidate { name: string; description: string; version: string; targets: PluginTarget[]; components: string[]; problem?: string; problemKey?: string; problemArgs?: Record; targetInfo?: Record }> } +export interface PluginCandidate { + name: string; + description: string; + version: string; + targets: PluginTarget[]; + components: string[]; + problem?: string; + problemKey?: string; + problemArgs?: Record; + targetInfo?: Record< + string, + { + manifest: string; + path?: string; + version?: string; + logo?: string; + entry?: string; + components: string[]; + problem?: string; + problemKey?: string; + problemArgs?: Record; + } + >; +} export interface PluginDiscovery { - warnings?: string[]; source: string; sourceRef?: string; commit?: string; targetDefinitions?: PluginTargetDefinition[]; digest: string; candidates: PluginCandidate[] } -export interface PluginPlan { revision: string; blocked: boolean; changes: { name: string; target: PluginTarget; id: string; action: string; failed?: boolean; guidance?: boolean; message?: string; messageKey?: string; messageArgs?: Record; components?: string[]; preservedKeys?: string[]; logo?: string; binding?: PluginBinding }[] } -export interface PluginOutcome { name: string; target: PluginTarget; status: string; guidance?: boolean; message?: string; messageKey?: string; messageArgs?: Record } + warnings?: string[]; + source: string; + sourceRef?: string; + commit?: string; + targetDefinitions?: PluginTargetDefinition[]; + digest: string; + candidates: PluginCandidate[]; +} +export interface PluginPlan { + revision: string; + blocked: boolean; + changes: { + name: string; + target: PluginTarget; + id: string; + action: string; + failed?: boolean; + guidance?: boolean; + message?: string; + messageKey?: string; + messageArgs?: Record; + components?: string[]; + preservedKeys?: string[]; + logo?: string; + binding?: PluginBinding; + }[]; +} +export interface PluginOutcome { + name: string; + target: PluginTarget; + status: string; + guidance?: boolean; + message?: string; + messageKey?: string; + messageArgs?: Record; +} -export interface PluginRun { name: string; target: string; version?: string } +export interface PluginRun { + name: string; + target: string; + version?: string; +} /** Rows that differ only by Agent become one row naming every Agent; `key` says what else must match. */ export function byPlugin(rows: R[], key: (r: R) => string = () => '') { @@ -105,29 +263,66 @@ export function byPlugin(rows: R[], key: (r: R) => string = } return [...groups.values()]; } -export interface PluginResult { result: { results: PluginOutcome[] } | null; failure: string } +export interface PluginResult { + result: { results: PluginOutcome[] } | null; + failure: string; +} /** What a check showed for one Agent of a plugin: the version an update would bring, and the source it came from. */ -export interface PluginUpdate { version: string; commit?: string; digest?: string; id?: string; source?: string; sourceRef?: string; plugin?: string; entry?: string } +export interface PluginUpdate { + version: string; + commit?: string; + digest?: string; + id?: string; + source?: string; + sourceRef?: string; + plugin?: string; + entry?: string; +} /** One plugin of a batch update, with what the check showed per Agent so a source that moved since is not installed. */ -export interface PluginUpdateItem { name: string; targets: PluginTarget[]; seen?: Record } +export interface PluginUpdateItem { + name: string; + targets: PluginTarget[]; + seen?: Record; +} export type PluginUpdateEvent = | { event: 'start'; name: string } | { event: 'plan'; name: string; plan: PluginPlan } - | { event: 'result'; name: string; plan: PluginPlan | null; result: PluginResult['result']; failure: string; stale: boolean } + | { + event: 'result'; + name: string; + plan: PluginPlan | null; + result: PluginResult['result']; + failure: string; + stale: boolean; + } | { event: 'done'; failure: string }; /** One plugin's answer from the update check: its plan, or why it could not be checked. */ -export interface PluginCheckEvent { name: string; plan: PluginPlan | null; error?: string; error_code?: string; error_params?: Record } +export interface PluginCheckEvent { + name: string; + plan: PluginPlan | null; + error?: string; + error_code?: string; + error_params?: Record; +} /** Reads the server's event stream for a batch update until `done`. EventSource (createSSEStream) cannot POST the picks, so fetch reads the stream. */ async function updateStream(items: PluginUpdateItem[], on: (e: PluginUpdateEvent) => void) { - const res = await fetch(BASE + '/plugins/update/stream', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ items }) }); - if (!res.ok || !res.body) throw new Error(parseApiErrorPayload(await res.json().catch(() => null), res.status, res.statusText).message); + const res = await fetch(BASE + '/plugins/update/stream', { + method: 'POST', + headers: { 'Content-Type': 'application/json' }, + body: JSON.stringify({ items }), + }); + if (!res.ok || !res.body) + throw new Error( + parseApiErrorPayload(await res.json().catch(() => null), res.status, res.statusText).message, + ); const reader = res.body.pipeThrough(new TextDecoderStream()).getReader(); let buffer = ''; for (;;) { const { value, done } = await reader.read(); - if (done) throw new Error('The update stream closed before it finished; refresh to see what changed.'); + if (done) + throw new Error('The update stream closed before it finished; refresh to see what changed.'); buffer += value; for (let end = buffer.indexOf('\n\n'); end >= 0; end = buffer.indexOf('\n\n')) { const block = buffer.slice(0, end); @@ -141,27 +336,45 @@ async function updateStream(items: PluginUpdateItem[], on: (e: PluginUpdateEvent } } -const post = (path: string, body: unknown) => apiFetch(path, { method: 'POST', body: JSON.stringify(body) }); +const post = (path: string, body: unknown) => + apiFetch(path, { method: 'POST', body: JSON.stringify(body) }); export const pluginsApi = { /** `hosts: false` answers from config alone, without waiting on any Agent's CLI; `hosts` comes back empty. */ list: (hosts = true) => apiFetch(hosts ? '/plugins' : '/plugins?hosts=false').then((inv) => ({ ...inv, // A failed inventory could arrive as null; one Agent must not break the whole page. - hosts: inv.hosts.map((h) => ({ ...h, installed: (h.installed as NativePlugin[] | null) ?? [] })), + hosts: inv.hosts.map((h) => ({ + ...h, + installed: (h.installed as NativePlugin[] | null) ?? [], + })), })), /** `name` is a plugin already managed here: its reviewed copy answers instead of downloading the source again. */ - discover: (source: string, sourceRef?: string, entry?: string, name?: string) => post('/plugins/discover', { source, sourceRef, entry, name }), + discover: (source: string, sourceRef?: string, entry?: string, name?: string) => + post('/plugins/discover', { source, sourceRef, entry, name }), /** The reviewed local copy of the plugin's source; empty for an imported plugin, which has none. */ - files: (name: string) => apiFetch<{ files: string[] }>(`/plugins/${encodeURIComponent(name)}/files`), - file: (name: string, path: string) => apiFetch<{ content: string }>(`/plugins/${encodeURIComponent(name)}/files/${path.split('/').map(encodeURIComponent).join('/')}`), + files: (name: string) => + apiFetch<{ files: string[] }>(`/plugins/${encodeURIComponent(name)}/files`), + file: (name: string, path: string) => + apiFetch<{ content: string }>( + `/plugins/${encodeURIComponent(name)}/files/${path.split('/').map(encodeURIComponent).join('/')}`, + ), preview: (request: PluginRequest) => post('/plugins/preview', { request }), /** Checks every plugin at once on the server; each plugin's answer arrives through `on` as soon as it is ready. */ - check: (on: (e: PluginCheckEvent) => void) => new Promise((resolve, reject) => { - createSSEStream(BASE + '/plugins/check/stream', { plan: on, done: (d: { failure: string }) => (d.failure ? reject(new Error(d.failure)) : resolve()) }, - reject, 'The update check stopped before it finished.'); - }), - apply: (request: PluginRequest, revision: string) => post('/plugins/apply', { request, revision }), + check: (on: (e: PluginCheckEvent) => void) => + new Promise((resolve, reject) => { + createSSEStream( + BASE + '/plugins/check/stream', + { + plan: on, + done: (d: { failure: string }) => (d.failure ? reject(new Error(d.failure)) : resolve()), + }, + reject, + 'The update check stopped before it finished.', + ); + }), + apply: (request: PluginRequest, revision: string) => + post('/plugins/apply', { request, revision }), /** Updates the plugins one after another on the server; each one's progress arrives through `on`. */ update: updateStream, /** The plugin under way finishes; no other starts. */ diff --git a/ui/src/api/resources.test.ts b/ui/src/api/resources.test.ts index 6a77383aa..cd9280fe7 100644 --- a/ui/src/api/resources.test.ts +++ b/ui/src/api/resources.test.ts @@ -10,12 +10,25 @@ describe('source links API', () => { vi.stubGlobal('fetch', fetch); const body = { path: '/work/team', name: '_team', enable: true }; expect(await resourcesApi.createSourceLink(body)).toEqual(result); - expect(fetch).toHaveBeenCalledWith('/api/source-links', expect.objectContaining({ method: 'POST', body: JSON.stringify(body) })); + expect(fetch).toHaveBeenCalledWith( + '/api/source-links', + expect.objectContaining({ method: 'POST', body: JSON.stringify(body) }), + ); }); it('preserves the HTTP 400 guard message', async () => { - vi.stubGlobal('fetch', vi.fn().mockResolvedValue(new Response(JSON.stringify({ error: 'target is missing' }), { status: 400 }))); - await expect(resourcesApi.createSourceLink({ path: '/missing' })).rejects.toMatchObject({ status: 400, message: 'target is missing' }); + vi.stubGlobal( + 'fetch', + vi + .fn() + .mockResolvedValue( + new Response(JSON.stringify({ error: 'target is missing' }), { status: 400 }), + ), + ); + await expect(resourcesApi.createSourceLink({ path: '/missing' })).rejects.toMatchObject({ + status: 400, + message: 'target is missing', + }); }); it('deletes the encoded first-level link name', async () => { @@ -23,21 +36,28 @@ describe('source links API', () => { const fetch = vi.fn().mockResolvedValue(new Response(JSON.stringify(result))); vi.stubGlobal('fetch', fetch); expect(await resourcesApi.removeSourceLink('_my team')).toEqual(result); - expect(fetch).toHaveBeenCalledWith('/api/source-links/_my%20team', expect.objectContaining({ method: 'DELETE' })); + expect(fetch).toHaveBeenCalledWith( + '/api/source-links/_my%20team', + expect.objectContaining({ method: 'DELETE' }), + ); }); }); - describe('repo removal intent', () => { afterEach(() => vi.unstubAllGlobals()); it.each<[boolean, boolean, string]>([ - [false, false, ''], [true, false, '?force=true'], - [false, true, '?recordOnly=true'], [true, true, '?force=true&recordOnly=true'], + [false, false, ''], + [true, false, '?force=true'], + [false, true, '?recordOnly=true'], + [true, true, '?force=true&recordOnly=true'], ])('encodes force=%s and recordOnly=%s', async (force, recordOnly, query) => { const fetch = vi.fn().mockResolvedValue(new Response(JSON.stringify({ success: true }))); vi.stubGlobal('fetch', fetch); await resourcesApi.deleteRepo('org/_team', force, recordOnly); - expect(fetch).toHaveBeenCalledWith(`/api/repos/org%2F_team${query}`, expect.objectContaining({ method: 'DELETE' })); + expect(fetch).toHaveBeenCalledWith( + `/api/repos/org%2F_team${query}`, + expect.objectContaining({ method: 'DELETE' }), + ); }); }); diff --git a/ui/src/api/resources.ts b/ui/src/api/resources.ts index a0c5a0364..2427ce7d7 100644 --- a/ui/src/api/resources.ts +++ b/ui/src/api/resources.ts @@ -1,32 +1,58 @@ import { apiFetch, kindQuery } from './http'; -import type { BatchToggleResult, MoveRequest, MoveResult, BatchUninstallRequest, BatchUninstallResult, CollectResult, CollectScanResult, CreateSkillRequest, CreateSkillResponse, Overview, LinkedRepo, LocalFileChange, Skill, SkillFileContent, SourceLink, SourceLinkRequest, SourceLinkResult, TemplatesResponse } from './types/resources'; +import type { + BatchToggleResult, + MoveRequest, + MoveResult, + BatchUninstallRequest, + BatchUninstallResult, + CollectResult, + CollectScanResult, + CreateSkillRequest, + CreateSkillResponse, + Overview, + LinkedRepo, + LocalFileChange, + Skill, + SkillFileContent, + SourceLink, + SourceLinkRequest, + SourceLinkResult, + TemplatesResponse, +} from './types/resources'; export const resourcesApi = { createSourceLink: (body: SourceLinkRequest) => apiFetch('/source-links', { method: 'POST', body: JSON.stringify(body) }), removeSourceLink: (name: string) => - apiFetch<{ success: boolean; name: string; warning?: string }>(`/source-links/${encodeURIComponent(name)}`, { method: 'DELETE' }), + apiFetch<{ success: boolean; name: string; warning?: string }>( + `/source-links/${encodeURIComponent(name)}`, + { method: 'DELETE' }, + ), getOverview: () => apiFetch('/overview'), listSkills: (kind?: 'skill' | 'agent') => - apiFetch<{ resources: Skill[]; sourceLinks?: SourceLink[]; sourceLinkWarnings?: string[]; linked_repos?: LinkedRepo[] }>(`/resources${kindQuery(kind)}`), + apiFetch<{ + resources: Skill[]; + sourceLinks?: SourceLink[]; + sourceLinkWarnings?: string[]; + linked_repos?: LinkedRepo[]; + }>(`/resources${kindQuery(kind)}`), getResource: (name: string, kind?: 'skill' | 'agent') => apiFetch<{ resource: Skill; skillMdContent: string; files: string[] }>( - `/resources/${encodeURIComponent(name)}${kindQuery(kind)}` + `/resources/${encodeURIComponent(name)}${kindQuery(kind)}`, ), deleteResource: (name: string, kind?: 'skill' | 'agent') => - apiFetch<{ success: boolean }>( - `/resources/${encodeURIComponent(name)}${kindQuery(kind)}`, - { method: 'DELETE' } - ), + apiFetch<{ success: boolean }>(`/resources/${encodeURIComponent(name)}${kindQuery(kind)}`, { + method: 'DELETE', + }), disableResource: (name: string, kind?: 'skill' | 'agent') => apiFetch<{ success: boolean; name: string; disabled: boolean }>( `/resources/${encodeURIComponent(name)}/disable${kindQuery(kind)}`, - { method: 'POST' } + { method: 'POST' }, ), enableResource: (name: string, kind?: 'skill' | 'agent') => apiFetch<{ success: boolean; name: string; disabled: boolean }>( `/resources/${encodeURIComponent(name)}/enable${kindQuery(kind)}`, - { method: 'POST' } + { method: 'POST' }, ), batchUninstall: (opts: BatchUninstallRequest) => apiFetch('/uninstall/batch', { @@ -72,7 +98,10 @@ export const resourcesApi = { }), // Repo uninstall deleteRepo: (name: string, force = false, recordOnly = false) => - apiFetch<{ success: boolean; name: string; movedToTrash: boolean }>(`/repos/${encodeURIComponent(name)}${force ? '?force=true' : ''}${recordOnly ? `${force ? '&' : '?'}recordOnly=true` : ''}`, { method: 'DELETE' }), + apiFetch<{ success: boolean; name: string; movedToTrash: boolean }>( + `/repos/${encodeURIComponent(name)}${force ? '?force=true' : ''}${recordOnly ? `${force ? '&' : '?'}recordOnly=true` : ''}`, + { method: 'DELETE' }, + ), // Skill file content getSkillFile: (skillName: string, filepath: string) => apiFetch(`/resources/${encodeURIComponent(skillName)}/files/${filepath}`), @@ -100,16 +129,13 @@ export const resourcesApi = { }, ), // Launch an external editor (VS Code / Cursor / $EDITOR) against the skill file. - openSkillInEditor: ( - name: string, - opts?: { editor?: string; kind?: 'skill' | 'agent' } - ) => + openSkillInEditor: (name: string, opts?: { editor?: string; kind?: 'skill' | 'agent' }) => apiFetch<{ editor: string; path: string; pid: number }>( `/resources/${encodeURIComponent(name)}/open-in-editor${kindQuery(opts?.kind)}`, { method: 'POST', body: JSON.stringify({ editor: opts?.editor ?? 'auto' }), - } + }, ), collectScan: (target?: string, kind?: 'skill' | 'agent') => { const params = new URLSearchParams(); @@ -118,7 +144,10 @@ export const resourcesApi = { const qs = params.toString(); return apiFetch(`/collect/scan${qs ? '?' + qs : ''}`); }, - collect: (opts: { skills: { name: string; targetName: string; kind?: string }[]; force?: boolean }) => + collect: (opts: { + skills: { name: string; targetName: string; kind?: string }[]; + force?: boolean; + }) => apiFetch('/collect', { method: 'POST', body: JSON.stringify(opts), diff --git a/ui/src/api/sseStream.test.ts b/ui/src/api/sseStream.test.ts index eda77b7fc..0f1cc0a4d 100644 --- a/ui/src/api/sseStream.test.ts +++ b/ui/src/api/sseStream.test.ts @@ -17,7 +17,11 @@ it("reports the server's error event with its message", () => { const onError = vi.fn(); createSSEStream('/api/x/stream', {}, onError, 'Stream failed'); - FakeEventSource.last.dispatchEvent(new MessageEvent('error', { data: JSON.stringify({ error: 'doctor check failed: exit status 2' }) })); + FakeEventSource.last.dispatchEvent( + new MessageEvent('error', { + data: JSON.stringify({ error: 'doctor check failed: exit status 2' }), + }), + ); expect(onError).toHaveBeenCalledWith(new Error('doctor check failed: exit status 2')); }); diff --git a/ui/src/api/sync.ts b/ui/src/api/sync.ts index 5ef5a99c7..ce5c62392 100644 --- a/ui/src/api/sync.ts +++ b/ui/src/api/sync.ts @@ -1,12 +1,24 @@ import { apiFetch, BASE, createSSEStream } from './http'; -import type { DiffTarget, FolderConflict, IgnoreSources, SyncMatrixEntry, SyncResponse } from './types/sync'; +import type { + DiffTarget, + FolderConflict, + IgnoreSources, + SyncMatrixEntry, + SyncResponse, +} from './types/sync'; export const syncApi = { getSyncMatrix: (target?: string) => apiFetch<{ entries: SyncMatrixEntry[] }>( - `/sync-matrix${target ? '?target=' + encodeURIComponent(target) : ''}` + `/sync-matrix${target ? '?target=' + encodeURIComponent(target) : ''}`, ), - previewSyncMatrix: (target: string, include: string[], exclude: string[], agentInclude?: string[], agentExclude?: string[]) => + previewSyncMatrix: ( + target: string, + include: string[], + exclude: string[], + agentInclude?: string[], + agentExclude?: string[], + ) => apiFetch<{ entries: SyncMatrixEntry[] }>('/sync-matrix/preview', { method: 'POST', body: JSON.stringify({ @@ -24,7 +36,9 @@ export const syncApi = { body: JSON.stringify(opts), }), diff: (target?: string) => - apiFetch<{ diffs: DiffTarget[]; folder_conflicts?: FolderConflict[] } & IgnoreSources>(`/diff${target ? '?target=' + encodeURIComponent(target) : ''}`), + apiFetch<{ diffs: DiffTarget[]; folder_conflicts?: FolderConflict[] } & IgnoreSources>( + `/diff${target ? '?target=' + encodeURIComponent(target) : ''}`, + ), diffStream: ( onDiscovering: () => void, onStart: (total: number) => void, @@ -32,10 +46,15 @@ export const syncApi = { onDone: (data: { diffs: DiffTarget[] } & IgnoreSources) => void, onError: (err: Error) => void, ): EventSource => - createSSEStream(BASE + '/diff/stream', { - discovering: () => onDiscovering(), - start: (d) => onStart(d.total), - result: (d) => onResult(d.diff, d.checked), - done: onDone, - }, onError, 'Diff stream failed'), + createSSEStream( + BASE + '/diff/stream', + { + discovering: () => onDiscovering(), + start: (d) => onStart(d.total), + result: (d) => onResult(d.diff, d.checked), + done: onDone, + }, + onError, + 'Diff stream failed', + ), }; diff --git a/ui/src/api/system.ts b/ui/src/api/system.ts index a7e4ac851..eea49964b 100644 --- a/ui/src/api/system.ts +++ b/ui/src/api/system.ts @@ -1,10 +1,24 @@ import { apiFetch, BASE, createSSEStream } from './http'; -import type { AnalyzeResponse, DoctorCheck, DoctorResponse, VersionCheck } from './types/diagnostics'; +import type { + AnalyzeResponse, + DoctorCheck, + DoctorResponse, + VersionCheck, +} from './types/diagnostics'; export const systemApi = { - getUpdatePolicy: () => apiFetch<{ enabled: boolean; configured: boolean; envOverride: boolean }>('/update-settings'), - getVersionCheck: (manual = false) => apiFetch(manual ? '/version?manual=true' : '/version'), - upgradeApp: () => apiFetch<{ ok: boolean; updated: boolean; devMode?: boolean; latestVersion?: string; output?: string }>('/upgrade', { method: 'POST' }), + getUpdatePolicy: () => + apiFetch<{ enabled: boolean; configured: boolean; envOverride: boolean }>('/update-settings'), + getVersionCheck: (manual = false) => + apiFetch(manual ? '/version?manual=true' : '/version'), + upgradeApp: () => + apiFetch<{ + ok: boolean; + updated: boolean; + devMode?: boolean; + latestVersion?: string; + output?: string; + }>('/upgrade', { method: 'POST' }), restartApp: (opts?: { clearCache?: boolean }) => apiFetch<{ ok: boolean; restarting: boolean }>('/restart', { method: 'POST', @@ -14,7 +28,12 @@ export const systemApi = { /** Runs doctor, passing each check to onCheck as it is found; resolves with the full result. */ doctorStream: (onCheck: (check: DoctorCheck) => void, signal?: AbortSignal) => new Promise((resolve, reject) => { - const es = createSSEStream(BASE + '/doctor/stream', { check: onCheck, done: resolve }, reject, 'Health check failed'); + const es = createSSEStream( + BASE + '/doctor/stream', + { check: onCheck, done: resolve }, + reject, + 'Health check failed', + ); signal?.addEventListener('abort', () => es.close()); }), analyze: () => apiFetch('/analyze'), diff --git a/ui/src/api/targets.ts b/ui/src/api/targets.ts index 2b80700e4..4e2d3e195 100644 --- a/ui/src/api/targets.ts +++ b/ui/src/api/targets.ts @@ -1,27 +1,76 @@ import { apiFetch } from './http'; import type { TargetInstructionsSetup } from './types/instructions'; -import type { ProjectInput, ProjectList, ProjectMutation, SkillsDetach, SkillsOffPreview, Target } from './types/targets'; +import type { + ProjectInput, + ProjectList, + ProjectMutation, + SkillsDetach, + SkillsOffPreview, + Target, +} from './types/targets'; export const targetsApi = { /** Own targets by default. 'projects' lists the targets of projects alone, 'all' what a sync writes. */ - listTargets: (scope?: 'projects' | 'all') => apiFetch<{ targets: Target[]; sourceSkillCount: number }>(`/targets${scope ? `?scope=${scope}` : ''}`), + listTargets: (scope?: 'projects' | 'all') => + apiFetch<{ targets: Target[]; sourceSkillCount: number }>( + `/targets${scope ? `?scope=${scope}` : ''}`, + ), listProjects: () => apiFetch('/projects'), - saveProject: (project: ProjectInput) => apiFetch('/projects', { method: 'PUT', body: JSON.stringify(project) }), - removeProject: (root: string, shared = false) => apiFetch(`/projects?root=${encodeURIComponent(root)}${shared ? '&shared=true' : ''}`, { method: 'DELETE' }), - convertProject: (root: string) => apiFetch('/projects/convert', { method: 'POST', body: JSON.stringify({ root }) }), + saveProject: (project: ProjectInput) => + apiFetch('/projects', { method: 'PUT', body: JSON.stringify(project) }), + removeProject: (root: string, shared = false) => + apiFetch( + `/projects?root=${encodeURIComponent(root)}${shared ? '&shared=true' : ''}`, + { method: 'DELETE' }, + ), + convertProject: (root: string) => + apiFetch('/projects/convert', { + method: 'POST', + body: JSON.stringify({ root }), + }), /** skillsEnabled false adds a target that skillshare writes no skills to, and creates no skills folder. */ - addTarget: (name: string, path: string, agentPath?: string, instructions?: TargetInstructionsSetup, skillsEnabled = true) => + addTarget: ( + name: string, + path: string, + agentPath?: string, + instructions?: TargetInstructionsSetup, + skillsEnabled = true, + ) => apiFetch<{ success: boolean }>('/targets', { method: 'POST', - body: JSON.stringify({ name, path, ...(agentPath && { agentPath }), ...(instructions && { instructions }), ...(!skillsEnabled && { skills_enabled: false }) }), + body: JSON.stringify({ + name, + path, + ...(agentPath && { agentPath }), + ...(instructions && { instructions }), + ...(!skillsEnabled && { skills_enabled: false }), + }), }), /** Adds another config folder of a built-in Agent, such as a second account. cli runs its plugin commands instead of the Agent's executable. */ addAgentConfigDir: (name: string, agent: string, configDir: string, cli?: string) => - apiFetch<{ success: boolean }>('/targets', { method: 'POST', body: JSON.stringify({ name, agent, configDir, ...(cli && { cli }) }) }), + apiFetch<{ success: boolean }>('/targets', { + method: 'POST', + body: JSON.stringify({ name, agent, configDir, ...(cli && { cli }) }), + }), removeTarget: (name: string) => - apiFetch<{ success: boolean; warnings?: string[] }>(`/targets/${encodeURIComponent(name)}`, { method: 'DELETE' }), + apiFetch<{ success: boolean; warnings?: string[] }>(`/targets/${encodeURIComponent(name)}`, { + method: 'DELETE', + }), /** skills_enabled false also removes the links skillshare made in the skills folder; detach says what went and what stayed. */ - updateTarget: (name: string, opts: { include?: string[]; exclude?: string[]; mode?: string; target_naming?: string; agent_mode?: string; agent_include?: string[]; agent_exclude?: string[]; agent_extension?: string; skills_enabled?: boolean }) => + updateTarget: ( + name: string, + opts: { + include?: string[]; + exclude?: string[]; + mode?: string; + target_naming?: string; + agent_mode?: string; + agent_include?: string[]; + agent_exclude?: string[]; + agent_extension?: string; + skills_enabled?: boolean; + }, + ) => apiFetch<{ success: boolean; detach?: SkillsDetach }>(`/targets/${encodeURIComponent(name)}`, { method: 'PATCH', body: JSON.stringify(opts), diff --git a/ui/src/api/types/extras.ts b/ui/src/api/types/extras.ts index ded862782..04eef9d71 100644 --- a/ui/src/api/types/extras.ts +++ b/ui/src/api/types/extras.ts @@ -3,19 +3,19 @@ export interface ExtraTarget { path: string; mode: string; flatten: boolean; - extension?: string; // transform extension name; presence implies copy mode + extension?: string; // transform extension name; presence implies copy mode as?: string; // single-file extra: target filename include?: string[]; exclude?: string[]; file_count: number; // source files this target syncs after include/exclude - status: string; // "synced" | "drift" | "modified" | "not synced" | "no source" + status: string; // "synced" | "drift" | "modified" | "not synced" | "no source" } export interface Extra { name: string; file?: string; // single-file extra: the file in source_dir (AGENTS.md ones are shared instruction files) source_dir: string; - source_type: "per-extra" | "extras_source" | "default"; + source_type: 'per-extra' | 'extras_source' | 'default'; file_count: number; source_exists: boolean; targets: ExtraTarget[]; @@ -43,7 +43,7 @@ export interface ExtensionInfo { } export interface ExtraDiffItem { - action: string; // "create" | "update" | "prune" + action: string; // "create" | "update" | "prune" file: string; reason: string; } diff --git a/ui/src/api/types/targets.ts b/ui/src/api/types/targets.ts index 2158191d3..762f7613d 100644 --- a/ui/src/api/types/targets.ts +++ b/ui/src/api/types/targets.ts @@ -27,7 +27,11 @@ export interface Project { hasOwnConfig: boolean; } -export type ProjectInput = Pick & { name?: string; create?: boolean; /** Where a new project is saved; used only with `create`. */ storage?: ProjectStorage }; +export type ProjectInput = Pick & { + name?: string; + create?: boolean; + /** Where a new project is saved; used only with `create`. */ storage?: ProjectStorage; +}; export type ProjectStorage = 'shared' | 'local'; diff --git a/ui/src/api/types/update.ts b/ui/src/api/types/update.ts index f46b23c78..7326d4e78 100644 --- a/ui/src/api/types/update.ts +++ b/ui/src/api/types/update.ts @@ -15,4 +15,3 @@ export interface UpdateStreamSummary { errors: number; skipped: number; } - diff --git a/ui/src/api/update.ts b/ui/src/api/update.ts index 8cd752f6c..5aa12905c 100644 --- a/ui/src/api/update.ts +++ b/ui/src/api/update.ts @@ -2,7 +2,14 @@ import { apiFetch, BASE, createSSEStream } from './http'; import type { UpdateResultItem, UpdateStreamSummary } from './types/update'; export const updateApi = { - update: (opts: { name?: string; kind?: 'skill' | 'agent'; force?: boolean; all?: boolean; skipAudit?: boolean; branch?: string }) => + update: (opts: { + name?: string; + kind?: 'skill' | 'agent'; + force?: boolean; + all?: boolean; + skipAudit?: boolean; + branch?: string; + }) => apiFetch<{ results: UpdateResultItem[] }>('/update', { method: 'POST', body: JSON.stringify(opts), @@ -19,10 +26,15 @@ export const updateApi = { if (opts?.kind) params.set('kind', opts.kind); if (opts?.force) params.set('force', 'true'); if (opts?.skipAudit) params.set('skipAudit', 'true'); - return createSSEStream(`${BASE}/update/stream?${params.toString()}`, { - start: (d) => onStart(d.total), - result: onResult, - done: onDone, - }, onError, 'Update stream failed'); + return createSSEStream( + `${BASE}/update/stream?${params.toString()}`, + { + start: (d) => onStart(d.total), + result: onResult, + done: onDone, + }, + onError, + 'Update stream failed', + ); }, }; diff --git a/ui/src/components.css b/ui/src/components.css index f27dd5ba9..5480fc60f 100644 --- a/ui/src/components.css +++ b/ui/src/components.css @@ -2,820 +2,3716 @@ light and dark. Ported from the approved redesign mockups. Style: html[data-theme="playful"] (absent = Clean). Mode: html.dark. */ -:root:not([data-theme="playful"]) { - --bg: #F7F6F3; --side: #F1EFEA; --surface: #FFFFFF; --sunken: #F4F2ED; --ink: #141312; --ink-2: #57544D; --ink-3: #726E66; - --line: #E6E3DC; --line-soft: #E6E3DC; --line-2: #D6D2C9; --sep: 1px solid #ECE9E3; --frame: 1px solid #E2DFD7; - --accent: #2D5DA1; --accent-bg: #EBF1FA; --sel: rgba(20,19,18,.065); --sel-ink: #141312; - --pri: #141312; --on-pri: #FFFFFF; - --ok: #1B7345; --ok-bg: #E7F4EC; --warn: #8A5200; --warn-bg: #FBF0DA; --bad: #B3261E; --bad-bg: #FBEAE8; - --c-skill: #2D5DA1; --c-skill-bg: #EBF1FA; --c-agent: #B83B2B; --c-agent-bg: #FBECE9; --c-extra: #4D7C0F; --c-extra-bg: #EEF5E1; --c-mcp: #6D45A8; --c-mcp-bg: #F1EBFA; --c-target: #1B7345; --c-target-bg: #E7F4EC; --c-plugin: #A82A74; --c-plugin-bg: #FAEAF3; - --f: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif; --fh: var(--f); --fm: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace; - --h1: 700 28px/1.15 var(--fh); --h1-track: -0.022em; --h2: 600 15px/1.3 var(--fh); --h2-track: -0.008em; - --r-ctl: 8px; --r-btn: 999px; --r-box: 12px; --r-tag: 5px; --bw: 1px; - --sh-box: 0 1px 2px rgba(20,19,18,.04); --sh-btn: none; --sh-float: 0 12px 32px rgba(20,19,18,.16), 0 0 0 1px rgba(20,19,18,.06); --sh-dialog: 0 24px 64px rgba(20,19,18,.24), 0 0 0 1px rgba(20,19,18,.06); - --isw: 1.75; --dots: transparent; - --glass-menu: rgba(255,255,255,.76); --glass-bar: rgba(247,246,243,.72); - --mat: blur(20px) saturate(180%); --mat-menu: blur(24px) saturate(180%); +:root:not([data-theme='playful']) { + --bg: #f7f6f3; + --side: #f1efea; + --surface: #ffffff; + --sunken: #f4f2ed; + --ink: #141312; + --ink-2: #57544d; + --ink-3: #726e66; + --line: #e6e3dc; + --line-soft: #e6e3dc; + --line-2: #d6d2c9; + --sep: 1px solid #ece9e3; + --frame: 1px solid #e2dfd7; + --accent: #2d5da1; + --accent-bg: #ebf1fa; + --sel: rgba(20, 19, 18, 0.065); + --sel-ink: #141312; + --pri: #141312; + --on-pri: #ffffff; + --ok: #1b7345; + --ok-bg: #e7f4ec; + --warn: #8a5200; + --warn-bg: #fbf0da; + --bad: #b3261e; + --bad-bg: #fbeae8; + --c-skill: #2d5da1; + --c-skill-bg: #ebf1fa; + --c-agent: #b83b2b; + --c-agent-bg: #fbece9; + --c-extra: #4d7c0f; + --c-extra-bg: #eef5e1; + --c-mcp: #6d45a8; + --c-mcp-bg: #f1ebfa; + --c-target: #1b7345; + --c-target-bg: #e7f4ec; + --c-plugin: #a82a74; + --c-plugin-bg: #faeaf3; + --f: + -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI Variable Text', 'Segoe UI', + system-ui, sans-serif; + --fh: var(--f); + --fm: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace; + --h1: 700 28px/1.15 var(--fh); + --h1-track: -0.022em; + --h2: 600 15px/1.3 var(--fh); + --h2-track: -0.008em; + --r-ctl: 8px; + --r-btn: 999px; + --r-box: 12px; + --r-tag: 5px; + --bw: 1px; + --sh-box: 0 1px 2px rgba(20, 19, 18, 0.04); + --sh-btn: none; + --sh-float: 0 12px 32px rgba(20, 19, 18, 0.16), 0 0 0 1px rgba(20, 19, 18, 0.06); + --sh-dialog: 0 24px 64px rgba(20, 19, 18, 0.24), 0 0 0 1px rgba(20, 19, 18, 0.06); + --isw: 1.75; + --dots: transparent; + --glass-menu: rgba(255, 255, 255, 0.76); + --glass-bar: rgba(247, 246, 243, 0.72); + --mat: blur(20px) saturate(180%); + --mat-menu: blur(24px) saturate(180%); } -:root:not([data-theme="playful"]).dark { - --bg: #111110; --side: #161514; --surface: #1C1B19; --sunken: #181715; --ink: #EDEBE6; --ink-2: #A9A59D; --ink-3: #8B877F; - --line: #2A2825; --line-soft: #2A2825; --line-2: #3A3833; --sep: 1px solid #262421; --frame: 1px solid #2C2A26; - --accent: #8FB4EC; --accent-bg: #1A2535; --sel: rgba(255,255,255,.08); --sel-ink: #EDEBE6; --pri: #EDEBE6; --on-pri: #141312; - --ok: #5CC98A; --ok-bg: #14261C; --warn: #F0B840; --warn-bg: #2A2110; --bad: #F2837A; --bad-bg: #2E1716; - --c-skill: #8FB4EC; --c-skill-bg: #1A2535; --c-agent: #F2937F; --c-agent-bg: #2E1A16; --c-extra: #A3CF62; --c-extra-bg: #1D2612; --c-mcp: #BFA0F0; --c-mcp-bg: #231A33; --c-target: #5CC98A; --c-target-bg: #14261C; --c-plugin: #F09CCB; --c-plugin-bg: #2E1726; - --sh-box: none; --sh-float: 0 12px 32px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08); --sh-dialog: 0 24px 64px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08); - --glass-menu: rgba(38,37,34,.76); --glass-bar: rgba(17,17,16,.72); +:root:not([data-theme='playful']).dark { + --bg: #111110; + --side: #161514; + --surface: #1c1b19; + --sunken: #181715; + --ink: #edebe6; + --ink-2: #a9a59d; + --ink-3: #8b877f; + --line: #2a2825; + --line-soft: #2a2825; + --line-2: #3a3833; + --sep: 1px solid #262421; + --frame: 1px solid #2c2a26; + --accent: #8fb4ec; + --accent-bg: #1a2535; + --sel: rgba(255, 255, 255, 0.08); + --sel-ink: #edebe6; + --pri: #edebe6; + --on-pri: #141312; + --ok: #5cc98a; + --ok-bg: #14261c; + --warn: #f0b840; + --warn-bg: #2a2110; + --bad: #f2837a; + --bad-bg: #2e1716; + --c-skill: #8fb4ec; + --c-skill-bg: #1a2535; + --c-agent: #f2937f; + --c-agent-bg: #2e1a16; + --c-extra: #a3cf62; + --c-extra-bg: #1d2612; + --c-mcp: #bfa0f0; + --c-mcp-bg: #231a33; + --c-target: #5cc98a; + --c-target-bg: #14261c; + --c-plugin: #f09ccb; + --c-plugin-bg: #2e1726; + --sh-box: none; + --sh-float: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08); + --sh-dialog: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08); + --glass-menu: rgba(38, 37, 34, 0.76); + --glass-bar: rgba(17, 17, 16, 0.72); } /* Reduce transparency: every material turns back into the solid surface it floats over. */ @media (prefers-reduced-transparency: reduce) { - :root:not([data-theme="playful"]), :root:not([data-theme="playful"]).dark { - --glass-menu: var(--surface); --glass-bar: var(--bg); --mat: none; --mat-menu: none; + :root:not([data-theme='playful']), + :root:not([data-theme='playful']).dark { + --glass-menu: var(--surface); + --glass-bar: var(--bg); + --mat: none; + --mat-menu: none; } } -:root[data-theme="playful"] { - --bg: #FFF8E8; --side: #FFF8E8; --surface: #FFFDF8; --sunken: #F8EDD6; --ink: #26201A; --ink-2: #574F44; --ink-3: #7A705F; - --pa: #FFDC73; --pb: #FFB9CC; --pc: #A9DBFF; --pd: #BFE6A8; --pe: #FFF0C2; - --line: #26201A; --line-soft: #E2D2B0; --line-2: #26201A; --sep: 1.5px dashed #E2D2B0; --frame: 2px solid #26201A; - --accent: #2D5DA1; --accent-bg: #E6EEF9; --sel: #FFDC73; --sel-ink: #26201A; - --pri: #FFDC73; --on-pri: #26201A; - --ok: #1B7345; --ok-bg: #DDF1E3; --warn: #8A5200; --warn-bg: #FFEDC4; --bad: #B3261E; --bad-bg: #FFDFDA; - --c-skill: #2D5DA1; --c-skill-bg: #E6EEF9; --c-agent: #C8372D; --c-agent-bg: #FFE4DF; --c-extra: #4D7C0F; --c-extra-bg: #ECF6D8; --c-mcp: #6D45A8; --c-mcp-bg: #EFE6FB; --c-target: #1B7345; --c-target-bg: #DDF1E3; --c-plugin: #B02A78; --c-plugin-bg: #FDE3F1; - --f: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif; --fh: 'Kalam', var(--f); --fm: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace; - --h1: 700 38px/1.05 var(--fh); --h1-track: -0.005em; --h2: 700 22px/1.2 var(--fh); --h2-track: 0; - --r-ctl: 10px; --r-btn: 999px; --r-box: 14px; --r-tag: 6px; --bw: 2px; - --sh-box: 4px 4px 0 #26201A; --sh-btn: 3px 3px 0 #26201A; --sh-float: 5px 5px 0 #26201A; --sh-dialog: 8px 8px 0 #26201A; - --isw: 2.1; --dots: #26201A1A; +:root[data-theme='playful'] { + --bg: #fff8e8; + --side: #fff8e8; + --surface: #fffdf8; + --sunken: #f8edd6; + --ink: #26201a; + --ink-2: #574f44; + --ink-3: #7a705f; + --pa: #ffdc73; + --pb: #ffb9cc; + --pc: #a9dbff; + --pd: #bfe6a8; + --pe: #fff0c2; + --line: #26201a; + --line-soft: #e2d2b0; + --line-2: #26201a; + --sep: 1.5px dashed #e2d2b0; + --frame: 2px solid #26201a; + --accent: #2d5da1; + --accent-bg: #e6eef9; + --sel: #ffdc73; + --sel-ink: #26201a; + --pri: #ffdc73; + --on-pri: #26201a; + --ok: #1b7345; + --ok-bg: #ddf1e3; + --warn: #8a5200; + --warn-bg: #ffedc4; + --bad: #b3261e; + --bad-bg: #ffdfda; + --c-skill: #2d5da1; + --c-skill-bg: #e6eef9; + --c-agent: #c8372d; + --c-agent-bg: #ffe4df; + --c-extra: #4d7c0f; + --c-extra-bg: #ecf6d8; + --c-mcp: #6d45a8; + --c-mcp-bg: #efe6fb; + --c-target: #1b7345; + --c-target-bg: #ddf1e3; + --c-plugin: #b02a78; + --c-plugin-bg: #fde3f1; + --f: + -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI Variable Text', 'Segoe UI', + system-ui, sans-serif; + --fh: 'Kalam', var(--f); + --fm: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace; + --h1: 700 38px/1.05 var(--fh); + --h1-track: -0.005em; + --h2: 700 22px/1.2 var(--fh); + --h2-track: 0; + --r-ctl: 10px; + --r-btn: 999px; + --r-box: 14px; + --r-tag: 6px; + --bw: 2px; + --sh-box: 4px 4px 0 #26201a; + --sh-btn: 3px 3px 0 #26201a; + --sh-float: 5px 5px 0 #26201a; + --sh-dialog: 8px 8px 0 #26201a; + --isw: 2.1; + --dots: #26201a1a; } -:root[data-theme="playful"].dark { - --bg: #1B1916; --side: #1B1916; --surface: #25221D; --sunken: #201D19; --ink: #F1EBDD; --ink-2: #B8B1A2; --ink-3: #979080; - --line: #D8D1C0; --line-soft: #403B31; --line-2: #D8D1C0; --sep: 1.5px dashed #403B31; --frame: 2px solid #D8D1C0; - --accent: #9DBDF0; --accent-bg: #1E2939; --sel: #E8A84C; --sel-ink: #1B1916; --pri: #E8A84C; --on-pri: #1B1916; - --pa: #E8A84C; --pb: #D98BA3; --pc: #7FB4E0; --pd: #94C27A; --pe: #4A3C1C; - --ok: #6FD39A; --ok-bg: #17281E; --warn: #F2C053; --warn-bg: #2E2411; --bad: #F58C82; --bad-bg: #321A18; - --c-skill: #9DBDF0; --c-skill-bg: #1E2939; --c-agent: #F59A88; --c-agent-bg: #321C18; --c-extra: #A9D46A; --c-extra-bg: #1F2813; --c-mcp: #C4A8F2; --c-mcp-bg: #261D36; --c-target: #6FD39A; --c-target-bg: #17281E; --c-plugin: #F2A6D1; --c-plugin-bg: #321A2A; - --sh-box: 4px 4px 0 #000; --sh-btn: 3px 3px 0 #000; --sh-float: 5px 5px 0 #000; --sh-dialog: 8px 8px 0 #000; --dots: #2B2721; +:root[data-theme='playful'].dark { + --bg: #1b1916; + --side: #1b1916; + --surface: #25221d; + --sunken: #201d19; + --ink: #f1ebdd; + --ink-2: #b8b1a2; + --ink-3: #979080; + --line: #d8d1c0; + --line-soft: #403b31; + --line-2: #d8d1c0; + --sep: 1.5px dashed #403b31; + --frame: 2px solid #d8d1c0; + --accent: #9dbdf0; + --accent-bg: #1e2939; + --sel: #e8a84c; + --sel-ink: #1b1916; + --pri: #e8a84c; + --on-pri: #1b1916; + --pa: #e8a84c; + --pb: #d98ba3; + --pc: #7fb4e0; + --pd: #94c27a; + --pe: #4a3c1c; + --ok: #6fd39a; + --ok-bg: #17281e; + --warn: #f2c053; + --warn-bg: #2e2411; + --bad: #f58c82; + --bad-bg: #321a18; + --c-skill: #9dbdf0; + --c-skill-bg: #1e2939; + --c-agent: #f59a88; + --c-agent-bg: #321c18; + --c-extra: #a9d46a; + --c-extra-bg: #1f2813; + --c-mcp: #c4a8f2; + --c-mcp-bg: #261d36; + --c-target: #6fd39a; + --c-target-bg: #17281e; + --c-plugin: #f2a6d1; + --c-plugin-bg: #321a2a; + --sh-box: 4px 4px 0 #000; + --sh-btn: 3px 3px 0 #000; + --sh-float: 5px 5px 0 #000; + --sh-dialog: 8px 8px 0 #000; + --dots: #2b2721; } /* Diffs are the one place the Clean style uses colour: removed lines red, added lines green. */ /* Spring easings: --spring is critically damped (no overshoot); its duration is 1.23 x the spring's response (.37s for .30, .43s for .35, .49s for .40). --spring-bounce is damping .8, response .30, over .36s. */ -:root { --spring: linear(0, 0.041, 0.135, 0.249, 0.365, 0.474, 0.571, 0.654, 0.724, 0.781, 0.828, 0.866, 0.895, 0.919, 0.937, 0.952, 0.963, 0.972, 0.979, 0.984, 0.988, 0.991, 0.993, 0.995, 1); --spring-bounce: linear(0, 0.041, 0.137, 0.261, 0.392, 0.517, 0.63, 0.726, 0.806, 0.868, 0.917, 0.952, 0.977, 0.995, 1.005, 1.012, 1.014, 1.015, 1.014, 1.013, 1.011, 1.009, 1.007, 1.005, 1); } -:root { --diff-add: var(--ok); --diff-add-bg: var(--ok-bg); --diff-del: var(--bad); --diff-del-bg: var(--bad-bg); } +:root { + --spring: linear( + 0, + 0.041, + 0.135, + 0.249, + 0.365, + 0.474, + 0.571, + 0.654, + 0.724, + 0.781, + 0.828, + 0.866, + 0.895, + 0.919, + 0.937, + 0.952, + 0.963, + 0.972, + 0.979, + 0.984, + 0.988, + 0.991, + 0.993, + 0.995, + 1 + ); + --spring-bounce: linear( + 0, + 0.041, + 0.137, + 0.261, + 0.392, + 0.517, + 0.63, + 0.726, + 0.806, + 0.868, + 0.917, + 0.952, + 0.977, + 0.995, + 1.005, + 1.012, + 1.014, + 1.015, + 1.014, + 1.013, + 1.011, + 1.009, + 1.007, + 1.005, + 1 + ); +} +:root { + --diff-add: var(--ok); + --diff-add-bg: var(--ok-bg); + --diff-del: var(--bad); + --diff-del-bg: var(--bad-bg); +} /* Base */ -body { font: 400 14px/1.45 var(--f); color: var(--ink); background-color: var(--bg); background-image: radial-gradient(var(--dots) 1px, transparent 1px); background-size: 24px 24px; -webkit-font-smoothing: antialiased; font-feature-settings: 'tnum' 1; } -svg.lucide { flex: none; stroke-width: var(--isw); } -:root:not([data-theme="playful"]) .ss-only-playful, :root[data-theme="playful"] .ss-only-clean { display: none !important; } +body { + font: 400 14px/1.45 var(--f); + color: var(--ink); + background-color: var(--bg); + background-image: radial-gradient(var(--dots) 1px, transparent 1px); + background-size: 24px 24px; + -webkit-font-smoothing: antialiased; + font-feature-settings: 'tnum' 1; +} +svg.lucide { + flex: none; + stroke-width: var(--isw); +} +:root:not([data-theme='playful']) .ss-only-playful, +:root[data-theme='playful'] .ss-only-clean { + display: none !important; +} @layer components { -.ss-side { width: 232px; flex: none; display: flex; flex-direction: column; padding: 18px 12px 12px; background: var(--side); border-right: 1px solid var(--line); } -:root[data-theme="playful"] .ss-side { border-right: 2px dashed #DCC9A3; } -:root[data-theme="playful"].dark .ss-side { border-right-color: #4A453A; } -.ss-wm { padding: 4px 10px 18px; display: flex; flex-direction: column; gap: 2px; } -.ss-wm b { font: 700 19px/1.1 var(--f); letter-spacing: -0.02em; } -:root[data-theme="playful"] .ss-wm b { font: 700 30px/1 var(--fh); letter-spacing: 0; align-self: flex-start; } -.ss-wm span { font-size: 12px; color: var(--ink-3); } -.ss-nvg { padding: 16px 10px 6px; font: 600 11px/1 var(--f); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); } -.ss-nv { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; margin-bottom: 1px; border-radius: 8px; color: var(--ink-2); font-weight: 500; border: var(--bw) solid transparent; } -.ss-nv.on { background: var(--sel); color: var(--sel-ink); font-weight: 600; } -:root[data-theme="playful"] .ss-nv { height: 36px; } -:root[data-theme="playful"] .ss-nv.on { border-color: var(--line); border-radius: 10px; box-shadow: 2px 2px 0 var(--line); } -.ss-nv .n { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; border-radius: 9px; font: 600 11px/1 var(--f); background: var(--warn-bg); color: var(--warn); } -:root[data-theme="playful"] .ss-nv .n { border: 1.5px solid currentColor; } -.ss-sidefoot { margin-top: auto; padding: 10px 6px 0; border-top: var(--sep); display: flex; align-items: center; justify-content: space-between; } -.ss-wrap { max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; } -/* Page headers space themselves for pages that lay out their own children; inside + .ss-side { + width: 232px; + flex: none; + display: flex; + flex-direction: column; + padding: 18px 12px 12px; + background: var(--side); + border-right: 1px solid var(--line); + } + :root[data-theme='playful'] .ss-side { + border-right: 2px dashed #dcc9a3; + } + :root[data-theme='playful'].dark .ss-side { + border-right-color: #4a453a; + } + .ss-wm { + padding: 4px 10px 18px; + display: flex; + flex-direction: column; + gap: 2px; + } + .ss-wm b { + font: 700 19px/1.1 var(--f); + letter-spacing: -0.02em; + } + :root[data-theme='playful'] .ss-wm b { + font: 700 30px/1 var(--fh); + letter-spacing: 0; + align-self: flex-start; + } + .ss-wm span { + font-size: 12px; + color: var(--ink-3); + } + .ss-nvg { + padding: 16px 10px 6px; + font: 600 11px/1 var(--f); + letter-spacing: 0.05em; + text-transform: uppercase; + color: var(--ink-3); + } + .ss-nv { + display: flex; + align-items: center; + gap: 10px; + height: 34px; + padding: 0 10px; + margin-bottom: 1px; + border-radius: 8px; + color: var(--ink-2); + font-weight: 500; + border: var(--bw) solid transparent; + } + .ss-nv.on { + background: var(--sel); + color: var(--sel-ink); + font-weight: 600; + } + :root[data-theme='playful'] .ss-nv { + height: 36px; + } + :root[data-theme='playful'] .ss-nv.on { + border-color: var(--line); + border-radius: 10px; + box-shadow: 2px 2px 0 var(--line); + } + .ss-nv .n { + margin-left: auto; + min-width: 18px; + height: 18px; + padding: 0 5px; + display: grid; + place-items: center; + border-radius: 9px; + font: 600 11px/1 var(--f); + background: var(--warn-bg); + color: var(--warn); + } + :root[data-theme='playful'] .ss-nv .n { + border: 1.5px solid currentColor; + } + .ss-sidefoot { + margin-top: auto; + padding: 10px 6px 0; + border-top: var(--sep); + display: flex; + align-items: center; + justify-content: space-between; + } + .ss-wrap { + max-width: 1080px; + margin: 0 auto; + display: flex; + flex-direction: column; + gap: 28px; + } + /* Page headers space themselves for pages that lay out their own children; inside .ss-wrap the 28px flex gap already does it, and both together left a 56px hole. */ -.ss-pgh { margin-bottom: 28px; } -.ss-wrap > .ss-pgh { margin-bottom: 0; } -/* The title keeps at least 280px; when the actions do not fit beside it they wrap below. */ -.ss-ph { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; } -.ss-ph .tt { display: flex; flex: 1 1 280px; flex-direction: column; gap: 6px; } -.ss-ph p { color: var(--ink-2); } -:root[data-theme="playful"] .ss-ph h1 span { background: linear-gradient(transparent 58%, var(--pa) 58%, var(--pa) 92%, transparent 92%); padding: 0 4px; margin: 0 -4px; } -:root[data-theme="playful"].dark .ss-ph h1 span { background: linear-gradient(transparent 58%, rgba(232,168,76,.45) 58%, rgba(232,168,76,.45) 92%, transparent 92%); } -.ss-crumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); margin-bottom: -16px; } -.ss-sec { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; } -.ss-sec .more { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--accent); } -.ss-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 14px; font: 600 13px/1 var(--f); white-space: nowrap; color: var(--ink); background: var(--surface); border: var(--bw) solid var(--line-2); border-radius: var(--r-btn); box-shadow: var(--sh-btn); } -.ss-btn.pri { background: var(--pri); color: var(--on-pri); border-color: var(--pri); } -:root[data-theme="playful"] .ss-btn.pri { border-color: var(--line); } -.ss-btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink-2); padding: 0 10px; } -/* A borderless button under a heading: pulled left by its padding so the icon lines up with the text above. */ -.ss-btn.ghost.flush { margin-left: -11px; } -.ss-btn.dng { color: var(--bad); border-color: var(--bad); } -:root[data-theme="playful"] .ss-btn.dng { background: #FF5C2B; color: #FFFDF7; border-color: var(--line); } -.ss-btn.sm { height: 28px; padding: 0 11px; font-size: 12.5px; } -.ss-btn.lg { height: 42px; padding: 0 20px; font-size: 14px; } -.ss-ib { width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: 8px; color: var(--ink-3); } -.ss-inp { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 11px; background: var(--surface); border: var(--bw) solid var(--line-2); border-radius: var(--r-ctl); color: var(--ink); font-size: 13px; } -:root:not([data-theme="playful"]) .ss-inp { border-radius: 8px; } -.ss-inp.area { height: auto; min-height: 84px; align-items: flex-start; padding: 9px 11px; line-height: 1.55; } -:root[data-theme="playful"] .ss-inp.area { border-radius: 12px; } -.ss-inp:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); } -.ss-inp.err { border-color: var(--bad); } -.ss-inp .k { margin-left: auto; font: 500 11px/1 var(--fm); color: var(--ink-3); padding: 3px 5px; border: 1px solid var(--line); border-radius: 4px; } -/* Filter chip (Select `chip`): dashed while unset, filled with a clear button once set. */ -.ss-chip { display: inline-flex; align-items: center; gap: 2px; height: 30px; max-width: 200px; padding: 0 10px 0 12px; border: var(--bw) dashed var(--line-2); border-radius: 999px; color: var(--ink-2); font-size: 13px; cursor: pointer; transition: background-color .12s, color .12s; } -.ss-chip:hover, .ss-chip.open { background: var(--sel); color: var(--sel-ink); } -.ss-chip:has(:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; } -.ss-chip>button { cursor: pointer; height: 100%; } -.ss-chip.set { border-style: solid; border-color: var(--pri); background: var(--pri); color: var(--on-pri); padding-right: 4px; } -.ss-chip.set .p { opacity: .7; } -/* A door on a target row: one thing the target gets, linking to the tab that manages it. Ghost: text with a hover fill, like .ss-btn.ghost. */ -.ss-door { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 999px; color: var(--ink-2); font-size: 12.5px; font-weight: 500; white-space: nowrap; transition: background-color .12s, color .12s; } -.ss-door:hover { background: var(--sel); color: var(--sel-ink); } -.ss-door>b { font-weight: 600; font-size: 11px; color: var(--ink-3); } -.ss-chip .x { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 999px; } -.ss-chip .x:hover { background: color-mix(in srgb, var(--on-pri) 20%, transparent); } -:root[data-theme="playful"] .ss-chip.set { border-color: var(--line); box-shadow: var(--sh-btn); } -.ss-fld { display: flex; flex-direction: column; gap: 6px; } -.ss-fld label { font-weight: 600; font-size: 13px; } -.ss-fld .hp { font-size: 12.5px; color: var(--ink-3); } -.ss-seg { display: inline-flex; padding: 2px; gap: 2px; background: var(--sunken); border: var(--bw) solid var(--line); border-radius: 9px; } -.ss-seg>* { height: 28px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; font: 500 13px/1 var(--f); color: var(--ink-2); border-radius: 7px; } -.ss-seg>*.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(20,19,18,.12); } -.ss-seg>*:disabled { opacity: .45; } -:root[data-theme="playful"] .ss-seg { border-radius: var(--r-ctl); background: var(--surface); padding: 3px; } -:root[data-theme="playful"] .ss-seg>* { border-radius: var(--r-ctl); } -:root[data-theme="playful"] .ss-seg>*.on { background: var(--sel); color: var(--sel-ink); box-shadow: none; outline: 1.5px solid var(--line); } -.ss-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); } -:root[data-theme="playful"] .ss-tabs { border-bottom: 2px solid var(--line); } -.ss-tabs>* { display: inline-flex; align-items: center; gap: 7px; padding: 0 1px 10px; margin-bottom: -1px; font-weight: 500; color: var(--ink-2); border-bottom: 2px solid transparent; } -.ss-tabs>*.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); } -:root[data-theme="playful"] .ss-tabs>* { margin-bottom: -2px; border-bottom-width: 4px; } -:root[data-theme="playful"] .ss-tabs>*.on { border-bottom-color: #C8372D; } -.ss-cnt { font: 500 12px/1 var(--f); color: var(--ink-3); } -.ss-chk { position: relative; width: 16px; height: 16px; flex: none; display: grid; place-items: center; background: var(--surface); border: 1.5px solid var(--line-2); border-radius: 4px; color: var(--on-pri); } -/* The 16px box is under the 24px WCAG 2.2 minimum, and these sit in rows that navigate on click. + .ss-pgh { + margin-bottom: 28px; + } + .ss-wrap > .ss-pgh { + margin-bottom: 0; + } + /* The title keeps at least 280px; when the actions do not fit beside it they wrap below. */ + .ss-ph { + display: flex; + flex-wrap: wrap; + align-items: flex-end; + justify-content: space-between; + gap: 12px 24px; + } + .ss-ph .tt { + display: flex; + flex: 1 1 280px; + flex-direction: column; + gap: 6px; + } + .ss-ph p { + color: var(--ink-2); + } + :root[data-theme='playful'] .ss-ph h1 span { + background: linear-gradient(transparent 58%, var(--pa) 58%, var(--pa) 92%, transparent 92%); + padding: 0 4px; + margin: 0 -4px; + } + :root[data-theme='playful'].dark .ss-ph h1 span { + background: linear-gradient( + transparent 58%, + rgba(232, 168, 76, 0.45) 58%, + rgba(232, 168, 76, 0.45) 92%, + transparent 92% + ); + } + .ss-crumb { + display: flex; + align-items: center; + gap: 6px; + font-size: 13px; + color: var(--ink-3); + margin-bottom: -16px; + } + .ss-sec { + display: flex; + align-items: baseline; + gap: 10px; + margin-bottom: 12px; + } + .ss-sec .more { + margin-left: auto; + font-size: 13px; + font-weight: 500; + color: var(--accent); + } + .ss-btn { + display: inline-flex; + align-items: center; + justify-content: center; + gap: 7px; + height: 34px; + padding: 0 14px; + font: 600 13px/1 var(--f); + white-space: nowrap; + color: var(--ink); + background: var(--surface); + border: var(--bw) solid var(--line-2); + border-radius: var(--r-btn); + box-shadow: var(--sh-btn); + } + .ss-btn.pri { + background: var(--pri); + color: var(--on-pri); + border-color: var(--pri); + } + :root[data-theme='playful'] .ss-btn.pri { + border-color: var(--line); + } + .ss-btn.ghost { + background: transparent; + border-color: transparent; + box-shadow: none; + color: var(--ink-2); + padding: 0 10px; + } + /* A borderless button under a heading: pulled left by its padding so the icon lines up with the text above. */ + .ss-btn.ghost.flush { + margin-left: -11px; + } + .ss-btn.dng { + color: var(--bad); + border-color: var(--bad); + } + :root[data-theme='playful'] .ss-btn.dng { + background: #ff5c2b; + color: #fffdf7; + border-color: var(--line); + } + .ss-btn.sm { + height: 28px; + padding: 0 11px; + font-size: 12.5px; + } + .ss-btn.lg { + height: 42px; + padding: 0 20px; + font-size: 14px; + } + .ss-ib { + width: 30px; + height: 30px; + display: inline-grid; + place-items: center; + border-radius: 8px; + color: var(--ink-3); + } + .ss-inp { + display: flex; + align-items: center; + gap: 8px; + height: 34px; + padding: 0 11px; + background: var(--surface); + border: var(--bw) solid var(--line-2); + border-radius: var(--r-ctl); + color: var(--ink); + font-size: 13px; + } + :root:not([data-theme='playful']) .ss-inp { + border-radius: 8px; + } + .ss-inp.area { + height: auto; + min-height: 84px; + align-items: flex-start; + padding: 9px 11px; + line-height: 1.55; + } + :root[data-theme='playful'] .ss-inp.area { + border-radius: 12px; + } + .ss-inp:focus-within { + border-color: var(--accent); + box-shadow: 0 0 0 3px var(--accent-bg); + } + .ss-inp.err { + border-color: var(--bad); + } + .ss-inp .k { + margin-left: auto; + font: 500 11px/1 var(--fm); + color: var(--ink-3); + padding: 3px 5px; + border: 1px solid var(--line); + border-radius: 4px; + } + /* Filter chip (Select `chip`): dashed while unset, filled with a clear button once set. */ + .ss-chip { + display: inline-flex; + align-items: center; + gap: 2px; + height: 30px; + max-width: 200px; + padding: 0 10px 0 12px; + border: var(--bw) dashed var(--line-2); + border-radius: 999px; + color: var(--ink-2); + font-size: 13px; + cursor: pointer; + transition: + background-color 0.12s, + color 0.12s; + } + .ss-chip:hover, + .ss-chip.open { + background: var(--sel); + color: var(--sel-ink); + } + .ss-chip:has(:focus-visible) { + outline: 2px solid var(--accent); + outline-offset: 2px; + } + .ss-chip > button { + cursor: pointer; + height: 100%; + } + .ss-chip.set { + border-style: solid; + border-color: var(--pri); + background: var(--pri); + color: var(--on-pri); + padding-right: 4px; + } + .ss-chip.set .p { + opacity: 0.7; + } + /* A door on a target row: one thing the target gets, linking to the tab that manages it. Ghost: text with a hover fill, like .ss-btn.ghost. */ + .ss-door { + display: inline-flex; + align-items: center; + gap: 5px; + height: 24px; + padding: 0 8px; + border-radius: 999px; + color: var(--ink-2); + font-size: 12.5px; + font-weight: 500; + white-space: nowrap; + transition: + background-color 0.12s, + color 0.12s; + } + .ss-door:hover { + background: var(--sel); + color: var(--sel-ink); + } + .ss-door > b { + font-weight: 600; + font-size: 11px; + color: var(--ink-3); + } + .ss-chip .x { + width: 22px; + height: 22px; + display: grid; + place-items: center; + border-radius: 999px; + } + .ss-chip .x:hover { + background: color-mix(in srgb, var(--on-pri) 20%, transparent); + } + :root[data-theme='playful'] .ss-chip.set { + border-color: var(--line); + box-shadow: var(--sh-btn); + } + .ss-fld { + display: flex; + flex-direction: column; + gap: 6px; + } + .ss-fld label { + font-weight: 600; + font-size: 13px; + } + .ss-fld .hp { + font-size: 12.5px; + color: var(--ink-3); + } + .ss-seg { + display: inline-flex; + padding: 2px; + gap: 2px; + background: var(--sunken); + border: var(--bw) solid var(--line); + border-radius: 9px; + } + .ss-seg > * { + height: 28px; + padding: 0 12px; + display: inline-flex; + align-items: center; + gap: 6px; + font: 500 13px/1 var(--f); + color: var(--ink-2); + border-radius: 7px; + } + .ss-seg > *.on { + background: var(--surface); + color: var(--ink); + font-weight: 600; + box-shadow: 0 1px 2px rgba(20, 19, 18, 0.12); + } + .ss-seg > *:disabled { + opacity: 0.45; + } + :root[data-theme='playful'] .ss-seg { + border-radius: var(--r-ctl); + background: var(--surface); + padding: 3px; + } + :root[data-theme='playful'] .ss-seg > * { + border-radius: var(--r-ctl); + } + :root[data-theme='playful'] .ss-seg > *.on { + background: var(--sel); + color: var(--sel-ink); + box-shadow: none; + outline: 1.5px solid var(--line); + } + .ss-tabs { + display: flex; + gap: 22px; + border-bottom: 1px solid var(--line); + } + :root[data-theme='playful'] .ss-tabs { + border-bottom: 2px solid var(--line); + } + .ss-tabs > * { + display: inline-flex; + align-items: center; + gap: 7px; + padding: 0 1px 10px; + margin-bottom: -1px; + font-weight: 500; + color: var(--ink-2); + border-bottom: 2px solid transparent; + } + .ss-tabs > *.on { + color: var(--ink); + font-weight: 600; + border-bottom-color: var(--ink); + } + :root[data-theme='playful'] .ss-tabs > * { + margin-bottom: -2px; + border-bottom-width: 4px; + } + :root[data-theme='playful'] .ss-tabs > *.on { + border-bottom-color: #c8372d; + } + .ss-cnt { + font: 500 12px/1 var(--f); + color: var(--ink-3); + } + .ss-chk { + position: relative; + width: 16px; + height: 16px; + flex: none; + display: grid; + place-items: center; + background: var(--surface); + border: 1.5px solid var(--line-2); + border-radius: 4px; + color: var(--on-pri); + } + /* The 16px box is under the 24px WCAG 2.2 minimum, and these sit in rows that navigate on click. Grow the hit area only; the visual box and the layout stay put. */ -.ss-chk::after { content: ''; position: absolute; inset: -8px; border-radius: 8px; } -:root:not([data-theme="playful"]) .ss-chk:not(.on) { border-color: #B9B5AC; } -:root[data-theme="playful"] .ss-chk { width: 17px; height: 17px; border: 2px solid var(--line); border-radius: 5px; } -:root[data-theme="playful"] .ss-chk.rad { border-radius: 99px; } -.ss-chk.on { background: var(--pri); border-color: var(--pri); } -.ss-chk.rad { border-radius: 99px; } -.ss-chk.rad.on { background: var(--surface); border-width: 5px; } -/* Toggle whose icon is the checkbox: faded when off, full colour with a check badge when on */ -.ss-tgl { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); transition: color .15s; } -.ss-tgl .ic { position: relative; display: grid; place-items: center; width: 24px; height: 24px; filter: grayscale(1); opacity: .45; transition: filter .15s, opacity .15s; } -/* The badge pops in when ticked and shrinks away, quicker, when unticked; transitions, so rapid clicks reverse it midway. */ -.ss-tgl .ic>i { position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 14px; height: 14px; border-radius: 99px; background: var(--pri); color: var(--on-pri); box-shadow: 0 0 0 2px var(--surface); opacity: 0; transform: scale(.6); transition: opacity .12s, transform .12s cubic-bezier(.23,1,.32,1); } -.ss-tgl.on { color: var(--ink); } -.ss-tgl.on .ic>i { transition-duration: .18s; } -/* Applying a selection shells out to the agent's own CLI and takes seconds, so + .ss-chk::after { + content: ''; + position: absolute; + inset: -8px; + border-radius: 8px; + } + :root:not([data-theme='playful']) .ss-chk:not(.on) { + border-color: #b9b5ac; + } + :root[data-theme='playful'] .ss-chk { + width: 17px; + height: 17px; + border: 2px solid var(--line); + border-radius: 5px; + } + :root[data-theme='playful'] .ss-chk.rad { + border-radius: 99px; + } + .ss-chk.on { + background: var(--pri); + border-color: var(--pri); + } + .ss-chk.rad { + border-radius: 99px; + } + .ss-chk.rad.on { + background: var(--surface); + border-width: 5px; + } + /* Toggle whose icon is the checkbox: faded when off, full colour with a check badge when on */ + .ss-tgl { + display: inline-flex; + align-items: center; + gap: 8px; + font-size: 13px; + color: var(--ink-3); + transition: color 0.15s; + } + .ss-tgl .ic { + position: relative; + display: grid; + place-items: center; + width: 24px; + height: 24px; + filter: grayscale(1); + opacity: 0.45; + transition: + filter 0.15s, + opacity 0.15s; + } + /* The badge pops in when ticked and shrinks away, quicker, when unticked; transitions, so rapid clicks reverse it midway. */ + .ss-tgl .ic > i { + position: absolute; + right: -4px; + bottom: -4px; + display: grid; + place-items: center; + width: 14px; + height: 14px; + border-radius: 99px; + background: var(--pri); + color: var(--on-pri); + box-shadow: 0 0 0 2px var(--surface); + opacity: 0; + transform: scale(0.6); + transition: + opacity 0.12s, + transform 0.12s cubic-bezier(0.23, 1, 0.32, 1); + } + .ss-tgl.on { + color: var(--ink); + } + .ss-tgl.on .ic > i { + transition-duration: 0.18s; + } + /* Applying a selection shells out to the agent's own CLI and takes seconds, so the badge stays visible in both states (.working) to carry a spinner. Without it the row just freezes and reads as a hang. */ -.ss-tgl:is(.on, .working) .ic { filter: none; opacity: 1; } -.ss-tgl:is(.on, .working) .ic>i { opacity: 1; transform: none; } -/* Touch screens keep :hover after a tap, which would leave an unticked logo half lit. */ -@media (hover: hover) and (pointer: fine) { .ss-tgl:not(.on):not(:disabled):hover .ic { opacity: .75; } } -.ss-tgl:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; } -:root[data-theme="playful"] .ss-tgl .ic>i { background: var(--ink); color: var(--pa); } -:root[data-theme="playful"].dark .ss-tgl .ic>i { background: var(--pa); color: #1B1916; } -.ss-sw { width: 34px; height: 20px; flex: none; padding: 2px; display: flex; border-radius: 99px; background: var(--line-2); } -.ss-sw i { width: 16px; height: 16px; border-radius: 99px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); } -.ss-sw.on { background: var(--ink); } -.ss-sw.on i { background: var(--surface); } -/* Some of the items it covers are on: half-tone track, centered knob with a dash. */ -.ss-sw.mix { background: var(--ink-3); } -.ss-sw.mix i { display: grid; place-items: center; } -.ss-sw.mix i::after { content: ''; width: 8px; height: 2px; border-radius: 1px; background: var(--ink-3); } -:root[data-theme="playful"] .ss-sw { width: 38px; height: 22px; background: var(--surface); border: 2px solid var(--line); padding: 2px; } -:root[data-theme="playful"] .ss-sw i { width: 14px; height: 14px; background: var(--ink-3); box-shadow: none; } -:root[data-theme="playful"] .ss-sw.on { background: var(--ok-bg); } -:root[data-theme="playful"] .ss-sw.on i { background: var(--ok); } -:root[data-theme="playful"] .ss-sw.mix i::after { width: 6px; background: var(--surface); } -.ss-st { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; white-space: nowrap; } -.ss-st::before { content: ''; width: 7px; height: 7px; border-radius: 99px; background: var(--ink-3); } -.ss-st.ok::before { background: var(--ok); } -.ss-st.warn::before { background: var(--warn); } -.ss-st.bad::before { background: var(--bad); } -.ss-st.warn { color: var(--warn); } -.ss-st.bad { color: var(--bad); } -.ss-st.off { color: var(--ink-3); } -/* Server messages have no length limit, so they wrap instead of pushing the row wider. */ -.ss-st.wrap { display: flex; align-items: flex-start; white-space: normal; } -.ss-st.wrap::before { margin-top: 5px; } -.ss-tag { display: inline-flex; align-items: center; gap: 4px; height: 19px; padding: 0 6px; font: 500 11px/1 var(--fm); letter-spacing: 0; color: var(--ink-2); background: var(--sunken); border: 1px solid var(--line); border-radius: var(--r-tag); white-space: nowrap; } -:root[data-theme="playful"] .ss-tag { border: 1.5px solid var(--ink-3); background: var(--surface); } -.ss-tag.ok { color: var(--ok); background: var(--ok-bg); border-color: transparent; } -.ss-tag.warn { color: var(--warn); background: var(--warn-bg); border-color: transparent; } -.ss-tag.bad { color: var(--bad); background: var(--bad-bg); border-color: transparent; } -.ss-tag.inf { color: var(--accent); background: var(--accent-bg); border-color: transparent; } -:root[data-theme="playful"] .ss-tag.ok, :root[data-theme="playful"] .ss-tag.warn, :root[data-theme="playful"] .ss-tag.bad, :root[data-theme="playful"] .ss-tag.inf { border-color: currentColor; } -.ss-cat { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 9px; color: var(--c); background: var(--cb); } -:root[data-theme="playful"] .ss-cat { border-radius: 99px; border: 2px solid var(--c); } -.ss-cat.skill { --c: var(--c-skill); --cb: var(--c-skill-bg); } -.ss-cat.agent { --c: var(--c-agent); --cb: var(--c-agent-bg); } -.ss-cat.extra { --c: var(--c-extra); --cb: var(--c-extra-bg); } -.ss-cat.mcp { --c: var(--c-mcp); --cb: var(--c-mcp-bg); } -.ss-cat.hooks { --c: var(--c-extra); --cb: var(--c-extra-bg); } -.ss-cat.target { --c: var(--c-target); --cb: var(--c-target-bg); } -.ss-cat.plugin { --c: var(--c-plugin); --cb: var(--c-plugin-bg); } -.ss-cat.warn { --c: var(--warn); --cb: var(--warn-bg); } -.ss-cat.bad { --c: var(--bad); --cb: var(--bad-bg); } -.ss-cat.ok { --c: var(--ok); --cb: var(--ok-bg); } -.ss-cat.sm { width: 26px; height: 26px; border-radius: 7px; } -:root[data-theme="playful"] .ss-cat.sm { border-radius: 99px; border-width: 1.5px; } -.ss-at { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); } -:root[data-theme="playful"] .ss-at { border: 1.5px solid var(--line); border-radius: 8px; } -.ss-at.lg { width: 44px; height: 44px; border-radius: 11px; } -.ss-stack { display: inline-flex; align-items: center; } -.ss-stack .ss-at { border-width: 1px; width: 24px; height: 24px; border-radius: 99px; margin-left: -6px; box-shadow: 0 0 0 2px var(--surface); } -.ss-stack .ss-at:first-child { margin-left: 0; } -/* A stack whose logos each sit in a Tooltip wrapper. */ -.ss-stack > :not(:first-child) > .ss-at:first-child { margin-left: -6px; } -.ss-stack .ss-at:focus-visible { position: relative; z-index: 1; } -/* The ring that separates stacked logos takes the color of what it sits on. */ -.ss-r.sel .ss-stack .ss-at { box-shadow: 0 0 0 2px var(--accent-bg); } -:root[data-theme="playful"] .ss-r.sel .ss-stack .ss-at { box-shadow: 0 0 0 2px var(--pe); } -:root[data-theme="playful"].dark .ss-r.sel .ss-stack .ss-at { box-shadow: 0 0 0 2px #332B17; } -.ss-note .ss-stack .ss-at { box-shadow: 0 0 0 2px var(--sunken); } -.ss-note.warn .ss-stack .ss-at { box-shadow: 0 0 0 2px var(--warn-bg); } -.ss-pj { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 99px; background: var(--sunken); border: 1px solid var(--line); font: 600 12px/1 var(--f); color: var(--ink-2); } -:root[data-theme="playful"] .ss-stack .ss-at { border-radius: 99px; } -.ss-list { background: var(--surface); border: var(--frame); border-radius: var(--r-box); box-shadow: var(--sh-box); overflow: hidden; } -:root:not([data-theme="playful"]) .ss-list { border-radius: 12px; } -.ss-r { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 16px; } -.ss-r+.ss-r { border-top: var(--sep); } -.ss-r.sel { background: var(--accent-bg); } -:root[data-theme="playful"] .ss-r.sel { background: var(--pe); } -:root[data-theme="playful"].dark .ss-r.sel { background: #332B17; } -.ss-r .nm { font-weight: 600; } -.ss-r .nm.m { font-size: 13px; font-weight: 600; letter-spacing: -0.015em; } -.ss-nr .nm.m { font-size: 13px; font-weight: 600; letter-spacing: -0.015em; } -/* A package's skills hang off a faint spine under its checkbox; each curves in and stops short of its own checkbox. + .ss-tgl:is(.on, .working) .ic { + filter: none; + opacity: 1; + } + .ss-tgl:is(.on, .working) .ic > i { + opacity: 1; + transform: none; + } + /* Touch screens keep :hover after a tap, which would leave an unticked logo half lit. */ + @media (hover: hover) and (pointer: fine) { + .ss-tgl:not(.on):not(:disabled):hover .ic { + opacity: 0.75; + } + } + .ss-tgl:focus-visible { + outline: 2px solid var(--accent); + outline-offset: 3px; + border-radius: 6px; + } + :root[data-theme='playful'] .ss-tgl .ic > i { + background: var(--ink); + color: var(--pa); + } + :root[data-theme='playful'].dark .ss-tgl .ic > i { + background: var(--pa); + color: #1b1916; + } + .ss-sw { + width: 34px; + height: 20px; + flex: none; + padding: 2px; + display: flex; + border-radius: 99px; + background: var(--line-2); + } + .ss-sw i { + width: 16px; + height: 16px; + border-radius: 99px; + background: #fff; + box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); + } + .ss-sw.on { + background: var(--ink); + } + .ss-sw.on i { + background: var(--surface); + } + /* Some of the items it covers are on: half-tone track, centered knob with a dash. */ + .ss-sw.mix { + background: var(--ink-3); + } + .ss-sw.mix i { + display: grid; + place-items: center; + } + .ss-sw.mix i::after { + content: ''; + width: 8px; + height: 2px; + border-radius: 1px; + background: var(--ink-3); + } + :root[data-theme='playful'] .ss-sw { + width: 38px; + height: 22px; + background: var(--surface); + border: 2px solid var(--line); + padding: 2px; + } + :root[data-theme='playful'] .ss-sw i { + width: 14px; + height: 14px; + background: var(--ink-3); + box-shadow: none; + } + :root[data-theme='playful'] .ss-sw.on { + background: var(--ok-bg); + } + :root[data-theme='playful'] .ss-sw.on i { + background: var(--ok); + } + :root[data-theme='playful'] .ss-sw.mix i::after { + width: 6px; + background: var(--surface); + } + .ss-st { + display: inline-flex; + align-items: center; + gap: 7px; + font-size: 13px; + font-weight: 500; + white-space: nowrap; + } + .ss-st::before { + content: ''; + width: 7px; + height: 7px; + border-radius: 99px; + background: var(--ink-3); + } + .ss-st.ok::before { + background: var(--ok); + } + .ss-st.warn::before { + background: var(--warn); + } + .ss-st.bad::before { + background: var(--bad); + } + .ss-st.warn { + color: var(--warn); + } + .ss-st.bad { + color: var(--bad); + } + .ss-st.off { + color: var(--ink-3); + } + /* Server messages have no length limit, so they wrap instead of pushing the row wider. */ + .ss-st.wrap { + display: flex; + align-items: flex-start; + white-space: normal; + } + .ss-st.wrap::before { + margin-top: 5px; + } + .ss-tag { + display: inline-flex; + align-items: center; + gap: 4px; + height: 19px; + padding: 0 6px; + font: 500 11px/1 var(--fm); + letter-spacing: 0; + color: var(--ink-2); + background: var(--sunken); + border: 1px solid var(--line); + border-radius: var(--r-tag); + white-space: nowrap; + } + :root[data-theme='playful'] .ss-tag { + border: 1.5px solid var(--ink-3); + background: var(--surface); + } + .ss-tag.ok { + color: var(--ok); + background: var(--ok-bg); + border-color: transparent; + } + .ss-tag.warn { + color: var(--warn); + background: var(--warn-bg); + border-color: transparent; + } + .ss-tag.bad { + color: var(--bad); + background: var(--bad-bg); + border-color: transparent; + } + .ss-tag.inf { + color: var(--accent); + background: var(--accent-bg); + border-color: transparent; + } + :root[data-theme='playful'] .ss-tag.ok, + :root[data-theme='playful'] .ss-tag.warn, + :root[data-theme='playful'] .ss-tag.bad, + :root[data-theme='playful'] .ss-tag.inf { + border-color: currentColor; + } + .ss-cat { + width: 34px; + height: 34px; + flex: none; + display: grid; + place-items: center; + border-radius: 9px; + color: var(--c); + background: var(--cb); + } + :root[data-theme='playful'] .ss-cat { + border-radius: 99px; + border: 2px solid var(--c); + } + .ss-cat.skill { + --c: var(--c-skill); + --cb: var(--c-skill-bg); + } + .ss-cat.agent { + --c: var(--c-agent); + --cb: var(--c-agent-bg); + } + .ss-cat.extra { + --c: var(--c-extra); + --cb: var(--c-extra-bg); + } + .ss-cat.mcp { + --c: var(--c-mcp); + --cb: var(--c-mcp-bg); + } + .ss-cat.hooks { + --c: var(--c-extra); + --cb: var(--c-extra-bg); + } + .ss-cat.target { + --c: var(--c-target); + --cb: var(--c-target-bg); + } + .ss-cat.plugin { + --c: var(--c-plugin); + --cb: var(--c-plugin-bg); + } + .ss-cat.warn { + --c: var(--warn); + --cb: var(--warn-bg); + } + .ss-cat.bad { + --c: var(--bad); + --cb: var(--bad-bg); + } + .ss-cat.ok { + --c: var(--ok); + --cb: var(--ok-bg); + } + .ss-cat.sm { + width: 26px; + height: 26px; + border-radius: 7px; + } + :root[data-theme='playful'] .ss-cat.sm { + border-radius: 99px; + border-width: 1.5px; + } + .ss-at { + width: 30px; + height: 30px; + flex: none; + display: grid; + place-items: center; + border-radius: 8px; + background: var(--surface); + border: 1px solid var(--line); + color: var(--ink); + } + :root[data-theme='playful'] .ss-at { + border: 1.5px solid var(--line); + border-radius: 8px; + } + .ss-at.lg { + width: 44px; + height: 44px; + border-radius: 11px; + } + .ss-stack { + display: inline-flex; + align-items: center; + } + .ss-stack .ss-at { + border-width: 1px; + width: 24px; + height: 24px; + border-radius: 99px; + margin-left: -6px; + box-shadow: 0 0 0 2px var(--surface); + } + .ss-stack .ss-at:first-child { + margin-left: 0; + } + /* A stack whose logos each sit in a Tooltip wrapper. */ + .ss-stack > :not(:first-child) > .ss-at:first-child { + margin-left: -6px; + } + .ss-stack .ss-at:focus-visible { + position: relative; + z-index: 1; + } + /* The ring that separates stacked logos takes the color of what it sits on. */ + .ss-r.sel .ss-stack .ss-at { + box-shadow: 0 0 0 2px var(--accent-bg); + } + :root[data-theme='playful'] .ss-r.sel .ss-stack .ss-at { + box-shadow: 0 0 0 2px var(--pe); + } + :root[data-theme='playful'].dark .ss-r.sel .ss-stack .ss-at { + box-shadow: 0 0 0 2px #332b17; + } + .ss-note .ss-stack .ss-at { + box-shadow: 0 0 0 2px var(--sunken); + } + .ss-note.warn .ss-stack .ss-at { + box-shadow: 0 0 0 2px var(--warn-bg); + } + .ss-pj { + display: inline-flex; + align-items: center; + gap: 4px; + height: 24px; + padding: 0 8px; + border-radius: 99px; + background: var(--sunken); + border: 1px solid var(--line); + font: 600 12px/1 var(--f); + color: var(--ink-2); + } + :root[data-theme='playful'] .ss-stack .ss-at { + border-radius: 99px; + } + .ss-list { + background: var(--surface); + border: var(--frame); + border-radius: var(--r-box); + box-shadow: var(--sh-box); + overflow: hidden; + } + :root:not([data-theme='playful']) .ss-list { + border-radius: 12px; + } + .ss-r { + position: relative; + display: flex; + align-items: center; + gap: 12px; + min-height: 52px; + padding: 8px 16px; + } + .ss-r + .ss-r { + border-top: var(--sep); + } + .ss-r.sel { + background: var(--accent-bg); + } + :root[data-theme='playful'] .ss-r.sel { + background: var(--pe); + } + :root[data-theme='playful'].dark .ss-r.sel { + background: #332b17; + } + .ss-r .nm { + font-weight: 600; + } + .ss-r .nm.m { + font-size: 13px; + font-weight: 600; + letter-spacing: -0.015em; + } + .ss-nr .nm.m { + font-size: 13px; + font-weight: 600; + letter-spacing: -0.015em; + } + /* A package's skills hang off a faint spine under its checkbox; each curves in and stops short of its own checkbox. The line colour is opaque so the spine and an elbow overlap without a darker seam. The spine starts --lift above the first skill, inside the padding, so the reveal's clipping does not cut it off. */ -/* The right margin plus a nested row's 12px padding lines its actions up with the top-level rows' 16px. */ -.ss-pk-top { --lift: 9px; margin: -13px 4px 8px 16px; } -.ss-pk-top+.ss-r { border-top: var(--sep); } -/* Rows revealed inside a list keep the separators a plain run of rows would have. */ -.ss-r+.ss-rv>div>.ss-r:first-child, .ss-rv+.ss-r { border-top: var(--sep); } -.ss-pk { --guide: -8px; --elbow: 6px; --tl: color-mix(in srgb, var(--ink) 10%, var(--surface)); padding: var(--lift) 0 0 16px; } -.ss-pk .ss-collapse { --lift: 4px; margin-top: -4px; } -.ss-pk .ss-pk { padding-left: 0; } -.ss-pi { --l: 0px; position: relative; } -.ss-pi:first-child { --l: var(--lift); } -.ss-pi::before, .ss-pi:not(:last-child)::after { content: ""; position: absolute; left: var(--guide); border-left: 1px solid var(--tl); pointer-events: none; } -.ss-pi::before { top: calc(-1 * var(--l)); height: calc(18px + var(--l)); width: calc(var(--elbow) - var(--guide)); border-bottom: 1px solid var(--tl); border-bottom-left-radius: 8px; } -.ss-pi:not(:last-child)::after { top: 10px; bottom: 0; } -.ss-nr { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 4px 12px; border-radius: 8px; } -.ss-nr.sel { background: var(--accent-bg); } -.ss-pill { display: inline-flex; flex: none; align-items: center; gap: 2px; height: 24px; padding: 0 6px 0 9px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 8%, transparent); font-size: 12px; font-weight: 500; color: var(--ink-2); white-space: nowrap; cursor: pointer; } -.ss-pill:hover { color: var(--ink); } -.ss-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } -.ss-hit { background: var(--accent-bg); color: var(--accent); border-radius: 3px; } -.ss-desc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } -/* Keyboard focus in a row shows its whole description; the mouse gets the title tooltip. */ -:is(.ss-r, .ss-nr):has(:focus-visible) .ss-desc { white-space: normal; overflow: visible; } -.ss-lh { display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 16px; font: 500 12px/1 var(--f); color: var(--ink-3); border-bottom: var(--sep); background: var(--sunken); } -.ss-gh { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 16px; background: var(--sunken); border-top: var(--sep); font-size: 13px; } -.ss-gh:first-child { border-top: 0; } -.ss-plain .ss-r { padding-left: 0; padding-right: 0; min-height: 44px; } -/* A toolbar that sticks to the top while its list scrolls; .stick lists keep their header and group heads under it */ -.ss-stickbar { position: sticky; top: 0; z-index: 20; margin: 0 -12px; padding: 12px; background: var(--bg); } -.ss-stickbar.stuck { box-shadow: 0 1px 0 var(--line); } -.ss-btnpair { display: inline-flex; } -.ss-btnpair>.ss-btn:first-child:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; padding-right: 12px; } -.ss-btnpair>.ss-btn:last-child:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; padding: 0 9px; border-left: 1px solid color-mix(in srgb, var(--on-pri) 22%, transparent); } -.ss-list.stick { overflow: clip; } -.ss-list.stick>.ss-lh { position: sticky; top: var(--stick, 0px); z-index: 3; } -.ss-list.stick>.ss-gh { position: sticky; top: calc(var(--stick, 0px) + 34px); z-index: 2; } -/* Update progress: a bar on the status card, a light that sweeps the status text of the row being updated, and a pop when a row finishes. + /* The right margin plus a nested row's 12px padding lines its actions up with the top-level rows' 16px. */ + .ss-pk-top { + --lift: 9px; + margin: -13px 4px 8px 16px; + } + .ss-pk-top + .ss-r { + border-top: var(--sep); + } + /* Rows revealed inside a list keep the separators a plain run of rows would have. */ + .ss-r + .ss-rv > div > .ss-r:first-child, + .ss-rv + .ss-r { + border-top: var(--sep); + } + .ss-pk { + --guide: -8px; + --elbow: 6px; + --tl: color-mix(in srgb, var(--ink) 10%, var(--surface)); + padding: var(--lift) 0 0 16px; + } + .ss-pk .ss-collapse { + --lift: 4px; + margin-top: -4px; + } + .ss-pk .ss-pk { + padding-left: 0; + } + .ss-pi { + --l: 0px; + position: relative; + } + .ss-pi:first-child { + --l: var(--lift); + } + .ss-pi::before, + .ss-pi:not(:last-child)::after { + content: ''; + position: absolute; + left: var(--guide); + border-left: 1px solid var(--tl); + pointer-events: none; + } + .ss-pi::before { + top: calc(-1 * var(--l)); + height: calc(18px + var(--l)); + width: calc(var(--elbow) - var(--guide)); + border-bottom: 1px solid var(--tl); + border-bottom-left-radius: 8px; + } + .ss-pi:not(:last-child)::after { + top: 10px; + bottom: 0; + } + .ss-nr { + display: flex; + align-items: center; + gap: 10px; + min-height: 36px; + padding: 4px 12px; + border-radius: 8px; + } + .ss-nr.sel { + background: var(--accent-bg); + } + .ss-pill { + display: inline-flex; + flex: none; + align-items: center; + gap: 2px; + height: 24px; + padding: 0 6px 0 9px; + border-radius: 999px; + background: color-mix(in srgb, var(--ink) 8%, transparent); + font-size: 12px; + font-weight: 500; + color: var(--ink-2); + white-space: nowrap; + cursor: pointer; + } + .ss-pill:hover { + color: var(--ink); + } + .ss-pill:focus-visible { + outline: 2px solid var(--accent); + outline-offset: 2px; + } + .ss-hit { + background: var(--accent-bg); + color: var(--accent); + border-radius: 3px; + } + .ss-desc { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } + /* Keyboard focus in a row shows its whole description; the mouse gets the title tooltip. */ + :is(.ss-r, .ss-nr):has(:focus-visible) .ss-desc { + white-space: normal; + overflow: visible; + } + .ss-lh { + display: flex; + align-items: center; + gap: 12px; + height: 34px; + padding: 0 16px; + font: 500 12px/1 var(--f); + color: var(--ink-3); + border-bottom: var(--sep); + background: var(--sunken); + } + .ss-gh { + display: flex; + align-items: center; + gap: 10px; + min-height: 40px; + padding: 6px 16px; + background: var(--sunken); + border-top: var(--sep); + font-size: 13px; + } + .ss-gh:first-child { + border-top: 0; + } + .ss-plain .ss-r { + padding-left: 0; + padding-right: 0; + min-height: 44px; + } + /* A toolbar that sticks to the top while its list scrolls; .stick lists keep their header and group heads under it */ + .ss-stickbar { + position: sticky; + top: 0; + z-index: 20; + margin: 0 -12px; + padding: 12px; + background: var(--bg); + } + .ss-stickbar.stuck { + box-shadow: 0 1px 0 var(--line); + } + .ss-btnpair { + display: inline-flex; + } + .ss-btnpair > .ss-btn:first-child:not(:last-child) { + border-top-right-radius: 0; + border-bottom-right-radius: 0; + padding-right: 12px; + } + .ss-btnpair > .ss-btn:last-child:not(:first-child) { + border-top-left-radius: 0; + border-bottom-left-radius: 0; + padding: 0 9px; + border-left: 1px solid color-mix(in srgb, var(--on-pri) 22%, transparent); + } + .ss-list.stick { + overflow: clip; + } + .ss-list.stick > .ss-lh { + position: sticky; + top: var(--stick, 0px); + z-index: 3; + } + .ss-list.stick > .ss-gh { + position: sticky; + top: calc(var(--stick, 0px) + 34px); + z-index: 2; + } + /* Update progress: a bar on the status card, a light that sweeps the status text of the row being updated, and a pop when a row finishes. Those two are the only things that keep moving; icons stay still. */ -.ss-update-icon { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: 11px; background: var(--sunken); color: var(--ink); transition: background-color .3s, color .3s; } -.ss-update-icon.ok { background: var(--ok-bg); color: var(--ok); } -.ss-update-icon.warn { background: var(--warn-bg); color: var(--warn); } -/* ProgressBar.tsx: ::before is a faint runner that shows work even at zero, the fill that covers it. */ -.ss-bar { position: relative; display: block; height: 6px; border-radius: 99px; background: var(--sunken); overflow: hidden; transition: opacity .2s ease-out; } -.ss-bar::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 30%; border-radius: inherit; background: var(--ink); opacity: .18; transition: opacity .2s ease-out; animation: ss-indet 1.8s ease-in-out infinite; } -.ss-bar>i { position: absolute; inset: 0; border-radius: inherit; background: var(--ink); transition: transform .45s cubic-bezier(.3,.7,.3,1); } -/* Nothing to count: the runner alone, at full strength. */ -.ss-bar.indet::before { width: 35%; opacity: 1; } -/* Ended: the runner stops, the fill gets .6s to arrive and be seen, then the bar fades and its slot closes. */ -.ss-bar.end { opacity: 0; transition-delay: .6s; } -.ss-bar.end::before { opacity: 0; animation: none; } -.ss-bar.indet.end { transition-delay: 0s; } -.ss-barslot { display: grid; grid-template-rows: 1fr; margin-top: calc(-1 * var(--bar-gap, 0px)); transition: grid-template-rows .25s cubic-bezier(.3,.7,.3,1); } -.ss-barslot>span { display: block; min-height: 0; overflow: hidden; } -.ss-barslot .ss-bar { margin-top: var(--bar-gap, 0px); } -/* First in its column: the gap it takes back is the one below it. */ -.ss-barslot.lead { margin-top: 0; margin-bottom: calc(-1 * var(--bar-gap, 0px)); } -.ss-barslot.lead .ss-bar { margin-top: 0; margin-bottom: var(--bar-gap, 0px); } -.ss-barslot.shut { grid-template-rows: 0fr; transition-delay: .8s; } -.ss-barslot.shut:has(.indet) { transition-delay: .2s; } -/* A row status that is under way: an ink dot, no spinner. */ -.ss-st.on { font-weight: 600; } -.ss-st.on::before { background: var(--ink); } -.ss-r.dim .nm { color: var(--ink-3); } -.ss-r.updating { background: var(--sunken); } -/* Text of something under way: a light sweeps across it, in step with the bar's runner. */ -.ss-shimmer { background: linear-gradient(90deg, var(--ink-2) 0 40%, var(--ink) 50%, var(--ink-2) 60% 100%) 0 0 / 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: ss-shimmer 1.8s linear infinite; } -.ss-r.flash { animation: ss-flash 1.1s ease-out; } -.ss-pop { animation: ss-pop .32s cubic-bezier(.22,.9,.24,1); } -/* DrawnCheck.tsx: the check that ends a run draws itself once. */ -.ss-draw path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: ss-draw .32s cubic-bezier(.23,1,.32,1) .12s forwards; } -@keyframes ss-draw { to { stroke-dashoffset: 0; } } -@keyframes ss-indet { from { transform: translateX(-100%); } to { transform: translateX(340%); } } -@keyframes ss-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } } -@keyframes ss-breathe { 0%, 100% { opacity: .08; } 50% { opacity: .24; } } -@keyframes ss-flash { from { background: var(--ok-bg); } to { background: transparent; } } -@keyframes ss-pop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } } -/* Collapse a block to nothing: wrap it in .ss-collapse and add .shut */ -.ss-collapse { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .45s cubic-bezier(.3,.7,.3,1), opacity .3s; } -.ss-collapse>* { overflow: hidden; min-height: 0; } -.ss-collapse.shut { grid-template-rows: 0fr; opacity: 0; } -/* A disclosure grows open from nothing and shrinks shut, quicker than a removal; its margins close with it. */ -.ss-collapse.grow { transition: grid-template-rows .25s cubic-bezier(.3,.7,.3,1), opacity .2s, margin .25s cubic-bezier(.3,.7,.3,1); } -/* Shutting, the content fades first and the height follows. Reveal.tsx waits for the whole of it. */ -.ss-collapse.grow.shut { margin-block: 0; transition: opacity .12s, grid-template-rows .25s cubic-bezier(.3,.7,.3,1) .1s, margin .25s cubic-bezier(.3,.7,.3,1) .1s; } -@starting-style { .ss-collapse.grow:not(.shut) { grid-template-rows: 0fr; opacity: 0; margin-block: 0; } } -/* A removed row slides out, then its .ss-collapse wrapper closes the gap */ -/* --d staggers the rows of one batch: each row and its gap start that much later. */ -.ss-collapse.out { grid-template-rows: 0fr; transition-duration: .25s, .3s; transition-delay: calc(.18s + var(--d, 0s)); } -.ss-collapse.out .ss-r { transform: translateX(-24px); opacity: 0; transition-delay: var(--d, 0s); } -.ss-collapse .ss-r { transition: transform .22s cubic-bezier(.5,0,.75,0), opacity .22s, background .3s; } -.ss-note.ok { background: var(--ok-bg); border-color: transparent; } -.ss-note.ok>svg { color: var(--ok); } -.ss-note.live { position: relative; overflow: hidden; transition: background .45s; } -@media (prefers-reduced-motion: reduce) { - .ss-r.flash, .ss-pop { animation: none; } - .ss-shimmer { background: none; color: var(--ink); animation: none; } - /* Nothing travels: the track breathes instead, and the fill steps. */ - .ss-bar:not(.end)::before { width: 100%; animation: ss-breathe 1.4s ease-in-out infinite; } - .ss-draw path { stroke-dashoffset: 0; animation: none; } - /* The slot keeps its delay, so the finished bar is still seen before it goes. */ - .ss-barslot { transition-duration: 0s; } - /* The badge only fades. */ - .ss-tgl .ic>i { transform: none; } - /* .grow and .grow.shut set their own transitions, so they are named to outrank them. */ - .ss-bar>i, .ss-prog i, .ss-collapse, .ss-collapse.grow, .ss-collapse.grow.shut, .ss-collapse .ss-r, .ss-note.live { transition: none; } -} -.ss-note { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border-radius: 10px; background: var(--sunken); border: 1px solid var(--line); font-size: 13px; line-height: 1.5; } -:root[data-theme="playful"] .ss-note { border: 2px solid var(--line); border-radius: 12px; } -.ss-note.warn { background: var(--warn-bg); border-color: transparent; } -.ss-note.bad { background: var(--bad-bg); border-color: transparent; } -.ss-note.inf { background: var(--accent-bg); border-color: transparent; } -.ss-note.warn>svg { color: var(--warn); } -.ss-note.bad>svg { color: var(--bad); } -.ss-note.inf>svg { color: var(--accent); } -:root[data-theme="playful"] .ss-note.warn { border-color: var(--warn); } -:root[data-theme="playful"] .ss-note.bad { border-color: var(--bad); } -:root[data-theme="playful"] .ss-note.inf { border-color: var(--accent); } -.ss-note>svg { margin-top: 2px; } -.ss-box { background: var(--surface); border: var(--frame); border-radius: var(--r-box); box-shadow: var(--sh-box); padding: 18px 20px; } -:root:not([data-theme="playful"]) .ss-box { border-radius: 12px; } -/* Rendered markdown (MarkdownView) */ -.ss-prose { display: flex; flex-direction: column; gap: 12px; color: var(--ink-2); line-height: 1.7; overflow-wrap: anywhere; } -.ss-prose > * { margin: 0; } -.ss-prose :is(h1, h2, h3, h4, h5, h6) { margin-top: 8px; font: 600 14px/1.35 var(--f); color: var(--ink); } -.ss-prose h1 { margin-top: 12px; padding-bottom: 6px; border-bottom: var(--sep); font-size: 19px; } -.ss-prose h2 { margin-top: 12px; padding-bottom: 5px; border-bottom: var(--sep); font-size: 16.5px; } -.ss-prose h3 { font-size: 15px; } -.ss-prose h4 { font-size: 14px; } -.ss-prose h5 { font-size: 13.5px; } -.ss-prose h6 { font-size: 13px; color: var(--ink-3); } -.ss-prose.lg { gap: 14px; font-size: 14.5px; } -.ss-prose.lg h1 { margin-top: 14px; font: 650 22px/1.25 var(--fh); letter-spacing: -0.015em; } -.ss-prose.lg h2 { margin-top: 20px; padding-bottom: 8px; border-bottom: var(--sep); font: 600 17px/1.3 var(--fh); letter-spacing: -0.01em; } -.ss-prose.lg h3 { margin-top: 12px; font: 600 15px/1.35 var(--fh); } -.ss-prose.lg h4 { font-size: 14.5px; } -.ss-prose.lg h5 { font-size: 14px; } -.ss-prose.lg h6 { font-size: 13px; } -:root[data-theme="playful"] .ss-prose.lg h1 { font: 700 30px/1.15 var(--fh); letter-spacing: 0; } -:root[data-theme="playful"] .ss-prose.lg h2 { font: 700 23px/1.2 var(--fh); letter-spacing: 0; } -:root[data-theme="playful"] .ss-prose.lg h3 { font: 700 18px/1.25 var(--fh); } -.ss-prose > :first-child { margin-top: 0; } -.ss-prose :is(b, strong) { color: var(--ink); font-weight: 600; } -.ss-prose :is(ul, ol) { display: flex; flex-direction: column; gap: 4px; padding-left: 22px; } -.ss-prose ul { list-style: disc; } -.ss-prose ul ul { list-style: circle; } -.ss-prose ul ul ul { list-style: square; } -.ss-prose ol { list-style: decimal; } -.ss-prose li::marker { color: var(--ink-3); } -.ss-prose li > :is(ul, ol) { margin-top: 4px; } -.ss-prose li.task-list-item { margin-left: -20px; list-style: none; } -.ss-prose li.task-list-item input { margin-right: 7px; accent-color: var(--accent); vertical-align: -1px; } -.ss-prose :not(pre) > code { padding: 1px 6px; font: 12.5px var(--fm); color: var(--ink); background: var(--sunken); border: 1px solid var(--line-soft); border-radius: 6px; overflow-wrap: break-word; } -.ss-prose :not(pre) > code.nw { white-space: nowrap; } -.ss-prose a { color: var(--accent); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); text-underline-offset: 3px; } -.ss-prose a:hover { text-decoration-color: currentColor; } -.ss-prose blockquote { display: flex; flex-direction: column; gap: 8px; padding: 10px 14px; background: var(--sunken); border-radius: 10px; } -:root[data-theme="playful"] .ss-prose blockquote { background: var(--pe); border: 2px solid var(--line); border-radius: 12px; color: var(--ink); } -.ss-prose blockquote blockquote, :root[data-theme="playful"] .ss-prose blockquote blockquote { padding: 0 0 0 12px; background: none; border: 0; border-left: 3px solid var(--line); border-radius: 0; } -.ss-prose blockquote.alert { --c: var(--accent); padding: 4px 0 4px 14px; background: none; border-left: 3px solid var(--c); border-radius: 0; } -.ss-prose blockquote.tip { --c: var(--ok); } -.ss-prose blockquote.warning { --c: var(--warn); } -.ss-prose blockquote.caution { --c: var(--bad); } -:root[data-theme="playful"] .ss-prose blockquote.alert { padding: 10px 14px; background: var(--pe); border: 2px solid var(--c); border-radius: 12px; } -.ss-prose .alert-title { display: flex; align-items: center; gap: 7px; font-weight: 600; color: var(--c); } -.ss-prose details { padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; } -.ss-prose details[open] { display: flex; flex-direction: column; gap: 10px; } -:root[data-theme="playful"] .ss-prose details { border-width: 2px; border-radius: 12px; } -.ss-prose summary { cursor: pointer; font-weight: 600; color: var(--ink); } -.ss-prose kbd { padding: 0 6px; font: 11.5px/1.7 var(--fm); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; } -.ss-prose del { color: var(--ink-3); } -.ss-prose .footnotes { padding-top: 12px; font-size: 12.5px; color: var(--ink-3); border-top: var(--sep); } -.ss-prose hr { border: 0; border-top: var(--sep); } -.ss-prose img { max-width: 100%; max-height: 420px; border-radius: 8px; } -.ss-prose p > img { display: inline-block; vertical-align: top; } -.ss-prose mark { padding: 0 3px; color: var(--ink); background: var(--warn-bg); border-radius: 3px; } -.ss-prose ins { text-decoration-color: var(--ok); text-underline-offset: 3px; } -.ss-pre { position: relative; } -.ss-pre pre { padding: 14px 16px; font: 400 12.5px/1.65 var(--fm); color: var(--ink-2); background: var(--sunken); border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; } -.ss-pre:has(> .lang) pre { padding-top: 32px; } -.ss-pre .lang { position: absolute; top: 11px; left: 17px; font: 600 10.5px/1 var(--f); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); } -:root[data-theme="playful"] .ss-pre pre { border: 2px solid var(--line); border-radius: 12px; background: var(--surface); } -:root[data-theme="playful"] .ss-pre .lang { top: 12px; left: 18px; } -.ss-tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; } -:root[data-theme="playful"] .ss-tbl { border: 2px solid var(--line); border-radius: 12px; } -.ss-tbl table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.5; } -.ss-tbl :is(th, td) { padding: 8px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); overflow-wrap: break-word; } -.ss-tbl :is(th, td) + :is(th, td) { border-left: 1px solid var(--line-soft); } -.ss-tbl tr:last-child > :is(th, td) { border-bottom: 0; } -.ss-tbl thead th { background: var(--sunken); color: var(--ink); font-weight: 600; } -.ss-tbl.fm tbody th { width: 1%; white-space: nowrap; font: 500 12.5px/1.5 var(--fm); color: var(--ink-2); background: var(--sunken); } -.ss-tbl.fm td { color: var(--ink); } -.ss-bulk { position: fixed; z-index: 40; left: 50%; bottom: 28px; transform: translateX(-50%); margin-left: 116px; display: flex; align-items: center; gap: 6px; width: max-content; max-width: calc(100vw - 24px); height: 46px; padding: 0 8px 0 16px; color: var(--ink); background: rgba(255,255,255,.82); backdrop-filter: blur(18px) saturate(180%); border-radius: 14px; box-shadow: var(--sh-float); font-size: 13px; } -:root:not([data-theme="playful"]).dark .ss-bulk { background: rgba(40,38,35,.82); } -:root[data-theme="playful"] .ss-bulk { background: var(--sel); color: var(--sel-ink); border: 2px solid var(--line); border-radius: var(--r-btn); backdrop-filter: none; } -.ss-bulk .dv { width: 1px; height: 20px; background: var(--line-2); margin: 0 6px; } -.ss-bulk .ss-btn { background: transparent; border-color: transparent; box-shadow: none; } -.ss-counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: var(--frame); border-radius: 12px; box-shadow: var(--sh-box); } -:root[data-theme="playful"] .ss-counts { border-radius: var(--r-box); } -.ss-counts>:is(a,button,div) { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-left: var(--sep); text-align: left; } -.ss-counts>:is(a,button,div):first-child { border-left: 0; } -.ss-counts>button:disabled { cursor: default; } -.ss-counts b { font: 700 22px/1 var(--f); letter-spacing: -0.02em; } -:root[data-theme="playful"] .ss-counts b { font: 700 28px/0.9 var(--fh); } -.ss-board { position: relative; height: 440px; background: #F6EEDB; border: 2px solid var(--line); border-radius: 16px; box-shadow: 5px 5px 0 var(--line); background-image: radial-gradient(#E0D4B8 1.2px, transparent 1.2px); background-size: 22px 22px; overflow: hidden; } -:root[data-theme="playful"].dark .ss-board { background-color: #24201A; background-image: radial-gradient(#352F25 1.2px, transparent 1.2px); box-shadow: 5px 5px 0 #000; } -.ss-board svg.strings { position: absolute; inset: 0; } -.ss-pinnote { position: absolute; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 16px; background: var(--surface); border: 2px solid var(--line); box-shadow: 3px 3px 0 var(--line); color: var(--ink); } -:root[data-theme="playful"].dark .ss-pinnote { box-shadow: 3px 3px 0 #000; } -.ss-pinnote.off { background: transparent; border-style: dashed; border-color: var(--ink-3); box-shadow: none; color: var(--ink-3); } -.ss-pin { position: absolute; width: 14px; height: 14px; border-radius: 99px; background: radial-gradient(circle at 35% 30%, #FF9A93 0 18%, #E5484D 19% 100%); border: 1.5px solid #8E1F22; box-shadow: 1px 2px 0 rgba(0,0,0,.25); } -.ss-pin.off { background: #CFC7B6; border-color: #9A917F; box-shadow: none; } -.ss-pin.blue { background: radial-gradient(circle at 35% 30%, #9DBDF0 0 18%, #2D5DA1 19% 100%); border-color: #1B3C6B; } -/* Counts in the source note link to their pages; currentColor is the note's own ink. */ -.ss-pinnote.src a { margin: 0 -7px; padding: 0 7px; border-radius: 8px; transition: background .12s; } -.ss-pinnote.src a:hover { background: color-mix(in srgb, currentColor 13%, transparent); } -.ss-squig { display: block; margin-top: -2px; color: #C8372D; } -.ss-tabs .ss-cnt { position: relative; top: 0; } -.ss-scrim { position: fixed; z-index: 60; inset: 0; background: rgba(20,19,18,.36); display: grid; place-items: center; animation: ss-fade-in .2s ease-out; } -/* The backdrop darkens first; closing, it lightens as the dialog shrinks back (dialogGhost in lib/exitGhost.ts). */ -@keyframes ss-fade-in { from { opacity: 0; } } -/* An exit copy (lib/exitGhost.ts) must not replay its entrances; its exit runs on the Web Animations API. */ -.ss-ghost, .ss-ghost * { animation: none !important; transition: none !important; } -:root:not([data-theme="playful"]) .ss-scrim { backdrop-filter: blur(3px); } -.ss-dlg { width: 440px; display: flex; flex-direction: column; background: var(--surface); border: var(--frame); border-radius: 16px; box-shadow: var(--sh-dialog); overflow: hidden; } -:root[data-theme="playful"] .ss-dlg { border-radius: 16px; } -.ss-dlg .dh { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 22px 0; } -/* A long scrolling body slides under the title, so mark the edge the way the footer does */ -.ss-dlg .dh.sep { padding-bottom: 14px; border-bottom: var(--sep); } -/* The body is what scrolls, so the header and the footer's actions stay in reach on a short window */ -.ss-dlg .db { padding: 14px 22px 20px; display: flex; flex-direction: column; gap: 16px; min-height: 0; overflow-y: auto; } -/* Children keep their height so a long body scrolls instead of squashing (and clipping) its lists */ -.ss-dlg .db > * { flex-shrink: 0; } -.ss-dlg .df { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: var(--sep); background: var(--sunken); } -.ss-toast { display: inline-flex; align-items: center; gap: 12px; height: 42px; padding: 0 8px 0 14px; background: #1E1D1B; color: #F4F2ED; border-radius: 11px; box-shadow: var(--sh-float); font-size: 13px; font-weight: 500; } -:root[data-theme="playful"] .ss-toast { border: 2px solid #2D2D2D; border-radius: 21px; } -.ss-toast .ss-btn { background: transparent; color: #FFE27A; border-color: transparent; box-shadow: none; height: 28px; padding: 0 10px; } -.ss-menu { width: 210px; padding: 5px; background: var(--surface); border: var(--frame); border-radius: 11px; box-shadow: var(--sh-float); display: flex; flex-direction: column; } -:root[data-theme="playful"] .ss-menu { border-radius: 12px; } -.ss-menu>:is(a,button) { display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 9px; border-radius: 7px; font-size: 13px; font-weight: 500; } -.ss-menu>:is(a,button).hv { background: var(--sel); color: var(--sel-ink); } -.ss-menu>:is(a,button).dng { color: var(--bad); } -.ss-menu hr { border: 0; border-top: var(--sep); margin: 5px 0; } -.ss-menu .k { margin-left: auto; font: 500 11px/1 var(--fm); color: var(--ink-3); } -.ss-tip { display: inline-block; padding: 6px 9px; background: #1E1D1B; color: #F4F2ED; font-size: 12px; font-weight: 500; border-radius: 7px; } -.ss-top { position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 99px; background: var(--surface); color: var(--ink-2); border: 1px solid var(--line-2); box-shadow: 0 4px 14px rgba(20,19,18,.14); cursor: pointer; } -.ss-top:hover { color: var(--ink); } -:root[data-theme="playful"] .ss-top { border: 2px solid var(--line); color: var(--ink); box-shadow: 3px 3px 0 var(--line); } -:root[data-theme="playful"] .ss-top:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--line); } -.ss-prog { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; display: flex; } -.ss-prog i { background: var(--accent); border-radius: 99px; transition: width .45s cubic-bezier(.3,.7,.3,1); } -:root[data-theme="playful"] .ss-prog { height: 12px; background: var(--surface); border: 2px solid var(--line); } -:root[data-theme="playful"] .ss-prog i { border-radius: 0; background: repeating-linear-gradient(-45deg, var(--accent) 0 5px, transparent 5px 8px); } -.ss-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 24px; text-align: center; border: 1.5px dashed var(--line-2); border-radius: 12px; color: var(--ink-2); } -:root[data-theme="playful"] .ss-empty { border: 2px dashed var(--ink-3); border-radius: var(--r-box); } -.ss-skel { height: 10px; border-radius: 5px; background: var(--line); } -.ss-sev { display: inline-flex; align-items: center; height: 19px; padding: 0 6px; font: 600 10.5px/1 var(--fm); letter-spacing: .04em; text-transform: uppercase; border-radius: var(--r-tag); border: 1px solid transparent; } -.ss-sev.c { background: var(--bad); color: #fff; } -:root.dark .ss-sev.c { color: #1B1916; } -.ss-sev.h { background: var(--bad-bg); color: var(--bad); } -.ss-sev.md { background: var(--warn-bg); color: var(--warn); } -.ss-sev.l { background: var(--sunken); color: var(--ink-2); border-color: var(--line); } -.ss-sev.n { color: var(--ink-3); border-color: var(--line); } -:root[data-theme="playful"] .ss-sev { border: 1.5px solid currentColor; } -:root[data-theme="playful"] .ss-sev.c { border-color: var(--line); } -.ss-kv { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 9px 14px; font-size: 13px; } -.ss-kv dt { color: var(--ink-3); } -.ss-kv dd { font-weight: 500; min-width: 0; } -.ss-setrow { display: flex; align-items: center; gap: 24px; min-height: 60px; padding: 12px 18px; } -.ss-setrow+.ss-setrow { border-top: var(--sep); } -.ss-setrow .l { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; } -.ss-setrow .l span { font-size: 13px; color: var(--ink-2); } -.ss-code { font: 400 12.5px/1.65 var(--fm); padding: 14px 16px; border-radius: 10px; background: var(--sunken); border: 1px solid var(--line); color: var(--ink-2); white-space: pre; overflow: hidden; } -:root[data-theme="playful"] .ss-code { border: 2px solid var(--line); border-radius: 12px; } -.ss-code .ln { color: var(--ink-3); opacity: .7; margin-right: 14px; user-select: none; } -/* Syntax colors (lib/highlight) */ -:is(.ss-code, .ss-pre) :is(.tok-keyword, .tok-heading, .tok-link) { color: var(--accent); } -:is(.ss-code, .ss-pre) :is(.tok-string, .tok-string2, .tok-inserted) { color: var(--ok); } -:is(.ss-code, .ss-pre) :is(.tok-number, .tok-bool, .tok-atom, .tok-typeName, .tok-className, .tok-list, .tok-arg) { color: var(--warn); } -:is(.ss-code, .ss-pre) :is(.tok-comment, .tok-meta, .tok-punctuation, .tok-quote) { color: var(--ink-3); } -:is(.ss-code, .ss-pre) .tok-propertyName { color: var(--c-mcp); } -:is(.ss-code, .ss-pre) :is(.tok-definition, .tok-macroName, .tok-deleted) { color: var(--c-agent); } -:is(.ss-code, .ss-pre) :is(.tok-heading, .tok-strong) { font-weight: 600; } -/* Body editor: a transparent textarea over the highlighted copy. Weights stay regular so both wrap identically */ -.ss-ed :is(.tok-heading, .tok-strong) { font-weight: inherit; } -.ss-ed textarea { color: transparent; -webkit-text-fill-color: transparent; caret-color: var(--ink); } -.ss-ed textarea::selection { background: color-mix(in srgb, var(--accent) 24%, transparent); } -.ss-code .add { background: var(--ok-bg); color: var(--ok); display: block; margin: 0 -16px; padding: 0 16px; } -.ss-code .del { background: var(--bad-bg); color: var(--bad); display: block; margin: 0 -16px; padding: 0 16px; } -.ss-disc { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink-2); } -.ss-pick { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: var(--bw) solid var(--line-2); border-radius: 10px; background: var(--surface); } -:root[data-theme="playful"] .ss-pick { border-radius: 12px; } -.ss-pick.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); } -:root[data-theme="playful"] .ss-pick.on { border-color: var(--line); background: var(--pe); box-shadow: 3px 3px 0 var(--line); } -:root[data-theme="playful"].dark .ss-pick.on { background: #332B17; } -.ss-bulk.static { position: static; transform: none; margin: 0; align-self: flex-start; } -.ss-pager { display: flex; align-items: center; gap: 4px; } -.ss-pager>* { min-width: 28px; height: 28px; padding: 0 6px; display: grid; place-items: center; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--ink-2); } -.ss-pager>*.on { background: var(--sel); color: var(--sel-ink); font-weight: 600; } -:root[data-theme="playful"] .ss-pager>*.on { outline: 1.5px solid var(--line); } -b.ok, svg.ok { color: var(--ok); } -span.warn, b.warn, svg.warn { color: var(--warn); } -span.bad, b.bad, svg.bad { color: var(--bad); } -.ss-btn:hover:not(:disabled) { filter: brightness(.94); } -:root[data-theme="playful"] .ss-btn:hover:not(:disabled) { filter: none; } -/* Lifts and sinks only under a real pointer, so a tap does not leave the control stuck out of place. */ -@media (hover: hover) and (pointer: fine) { - :root[data-theme="playful"] .ss-btn:hover:not(:disabled) { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--line); } -} -.ss-btn:disabled { opacity: .42; } -.ss-btn .spin { width: 13px; height: 13px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; } -.ss-btn .spin + svg { display: none; } -.ss-tabs .ss-cnt { padding: 2px 6px; margin: 0; border: 0; border-radius: 99px; background: var(--sunken); font: 600 11px/1.2 var(--f); color: var(--ink-2); } -:root[data-theme="playful"] .ss-tabs .ss-cnt { margin: 0; border: 1.5px solid var(--ink-3); background: transparent; } -:root[data-theme="playful"] .ss-bulk .ss-btn, :root[data-theme="playful"] .ss-bulk .ss-ib { color: var(--sel-ink); } -:root[data-theme="playful"] .ss-bulk .dv { background: currentColor; opacity: .35; } -:root[data-theme="playful"] .ss-btn.sm { box-shadow: 2px 2px 0 var(--line); } -:root[data-theme="playful"] .ss-btn.ghost, :root[data-theme="playful"] .ss-bulk .ss-btn, :root[data-theme="playful"] .ss-toast .ss-btn { box-shadow: none; } -:root[data-theme="playful"] .ss-inp:focus-within { border-color: var(--line); box-shadow: 3px 3px 0 var(--accent); } -:root[data-theme="playful"] .ss-inp.err { box-shadow: 3px 3px 0 var(--bad); } -:root[data-theme="playful"] .ss-lh { background: transparent; border-bottom: 2px solid var(--line); height: 36px; font: 600 10.5px/1 var(--fm); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); } -:root[data-theme="playful"] .ss-gh { background: var(--pe); border-top: 2px solid var(--line); border-bottom: 1.5px dashed var(--line); } -:root[data-theme="playful"] .ss-gh:first-child { border-top: 0; } -:root[data-theme="playful"] .ss-lh+.ss-gh { border-top: 0; } -:root[data-theme="playful"] .ss-list.stick>.ss-lh { background: var(--surface); } -:root[data-theme="playful"] .ss-list.stick>.ss-gh { top: calc(var(--stick, 0px) + 36px); } -:root[data-theme="playful"] .ss-gh+.ss-r { border-top: 0; } -:root[data-theme="playful"] .ss-tabs { border-bottom: 0; gap: 8px; } -:root[data-theme="playful"] .ss-tabs>* { margin: 0; padding: 0 14px; height: 34px; border: 2px solid transparent; border-radius: 999px; } -:root[data-theme="playful"] .ss-tabs>*.on { background: var(--pa); color: var(--sel-ink); border-color: var(--line); box-shadow: 3px 3px 0 var(--line); } -/* Tabs with controls on the right; the bar carries the underline so it spans the controls too. + .ss-update-icon { + width: 40px; + height: 40px; + flex-shrink: 0; + display: grid; + place-items: center; + border-radius: 11px; + background: var(--sunken); + color: var(--ink); + transition: + background-color 0.3s, + color 0.3s; + } + .ss-update-icon.ok { + background: var(--ok-bg); + color: var(--ok); + } + .ss-update-icon.warn { + background: var(--warn-bg); + color: var(--warn); + } + /* ProgressBar.tsx: ::before is a faint runner that shows work even at zero, the fill that covers it. */ + .ss-bar { + position: relative; + display: block; + height: 6px; + border-radius: 99px; + background: var(--sunken); + overflow: hidden; + transition: opacity 0.2s ease-out; + } + .ss-bar::before { + content: ''; + position: absolute; + top: 0; + bottom: 0; + left: 0; + width: 30%; + border-radius: inherit; + background: var(--ink); + opacity: 0.18; + transition: opacity 0.2s ease-out; + animation: ss-indet 1.8s ease-in-out infinite; + } + .ss-bar > i { + position: absolute; + inset: 0; + border-radius: inherit; + background: var(--ink); + transition: transform 0.45s cubic-bezier(0.3, 0.7, 0.3, 1); + } + /* Nothing to count: the runner alone, at full strength. */ + .ss-bar.indet::before { + width: 35%; + opacity: 1; + } + /* Ended: the runner stops, the fill gets .6s to arrive and be seen, then the bar fades and its slot closes. */ + .ss-bar.end { + opacity: 0; + transition-delay: 0.6s; + } + .ss-bar.end::before { + opacity: 0; + animation: none; + } + .ss-bar.indet.end { + transition-delay: 0s; + } + .ss-barslot { + display: grid; + grid-template-rows: 1fr; + margin-top: calc(-1 * var(--bar-gap, 0px)); + transition: grid-template-rows 0.25s cubic-bezier(0.3, 0.7, 0.3, 1); + } + .ss-barslot > span { + display: block; + min-height: 0; + overflow: hidden; + } + .ss-barslot .ss-bar { + margin-top: var(--bar-gap, 0px); + } + /* First in its column: the gap it takes back is the one below it. */ + .ss-barslot.lead { + margin-top: 0; + margin-bottom: calc(-1 * var(--bar-gap, 0px)); + } + .ss-barslot.lead .ss-bar { + margin-top: 0; + margin-bottom: var(--bar-gap, 0px); + } + .ss-barslot.shut { + grid-template-rows: 0fr; + transition-delay: 0.8s; + } + .ss-barslot.shut:has(.indet) { + transition-delay: 0.2s; + } + /* A row status that is under way: an ink dot, no spinner. */ + .ss-st.on { + font-weight: 600; + } + .ss-st.on::before { + background: var(--ink); + } + .ss-r.dim .nm { + color: var(--ink-3); + } + .ss-r.updating { + background: var(--sunken); + } + /* Text of something under way: a light sweeps across it, in step with the bar's runner. */ + .ss-shimmer { + background: linear-gradient(90deg, var(--ink-2) 0 40%, var(--ink) 50%, var(--ink-2) 60% 100%) 0 + 0 / 250% 100%; + -webkit-background-clip: text; + background-clip: text; + color: transparent; + animation: ss-shimmer 1.8s linear infinite; + } + .ss-r.flash { + animation: ss-flash 1.1s ease-out; + } + .ss-pop { + animation: ss-pop 0.32s cubic-bezier(0.22, 0.9, 0.24, 1); + } + /* DrawnCheck.tsx: the check that ends a run draws itself once. */ + .ss-draw path { + stroke-dasharray: 24; + stroke-dashoffset: 24; + animation: ss-draw 0.32s cubic-bezier(0.23, 1, 0.32, 1) 0.12s forwards; + } + @keyframes ss-draw { + to { + stroke-dashoffset: 0; + } + } + @keyframes ss-indet { + from { + transform: translateX(-100%); + } + to { + transform: translateX(340%); + } + } + @keyframes ss-shimmer { + from { + background-position: 100% 0; + } + to { + background-position: 0 0; + } + } + @keyframes ss-breathe { + 0%, + 100% { + opacity: 0.08; + } + 50% { + opacity: 0.24; + } + } + @keyframes ss-flash { + from { + background: var(--ok-bg); + } + to { + background: transparent; + } + } + @keyframes ss-pop { + from { + transform: scale(0.5); + opacity: 0; + } + to { + transform: scale(1); + opacity: 1; + } + } + /* Collapse a block to nothing: wrap it in .ss-collapse and add .shut */ + .ss-collapse { + display: grid; + grid-template-rows: 1fr; + transition: + grid-template-rows 0.45s cubic-bezier(0.3, 0.7, 0.3, 1), + opacity 0.3s; + } + .ss-collapse > * { + overflow: hidden; + min-height: 0; + } + .ss-collapse.shut { + grid-template-rows: 0fr; + opacity: 0; + } + /* A disclosure grows open from nothing and shrinks shut, quicker than a removal; its margins close with it. */ + .ss-collapse.grow { + transition: + grid-template-rows 0.25s cubic-bezier(0.3, 0.7, 0.3, 1), + opacity 0.2s, + margin 0.25s cubic-bezier(0.3, 0.7, 0.3, 1); + } + /* Shutting, the content fades first and the height follows. Reveal.tsx waits for the whole of it. */ + .ss-collapse.grow.shut { + margin-block: 0; + transition: + opacity 0.12s, + grid-template-rows 0.25s cubic-bezier(0.3, 0.7, 0.3, 1) 0.1s, + margin 0.25s cubic-bezier(0.3, 0.7, 0.3, 1) 0.1s; + } + @starting-style { + .ss-collapse.grow:not(.shut) { + grid-template-rows: 0fr; + opacity: 0; + margin-block: 0; + } + } + /* A removed row slides out, then its .ss-collapse wrapper closes the gap */ + /* --d staggers the rows of one batch: each row and its gap start that much later. */ + .ss-collapse.out { + grid-template-rows: 0fr; + transition-duration: 0.25s, 0.3s; + transition-delay: calc(0.18s + var(--d, 0s)); + } + .ss-collapse.out .ss-r { + transform: translateX(-24px); + opacity: 0; + transition-delay: var(--d, 0s); + } + .ss-collapse .ss-r { + transition: + transform 0.22s cubic-bezier(0.5, 0, 0.75, 0), + opacity 0.22s, + background 0.3s; + } + .ss-note.ok { + background: var(--ok-bg); + border-color: transparent; + } + .ss-note.ok > svg { + color: var(--ok); + } + .ss-note.live { + position: relative; + overflow: hidden; + transition: background 0.45s; + } + @media (prefers-reduced-motion: reduce) { + .ss-r.flash, + .ss-pop { + animation: none; + } + .ss-shimmer { + background: none; + color: var(--ink); + animation: none; + } + /* Nothing travels: the track breathes instead, and the fill steps. */ + .ss-bar:not(.end)::before { + width: 100%; + animation: ss-breathe 1.4s ease-in-out infinite; + } + .ss-draw path { + stroke-dashoffset: 0; + animation: none; + } + /* The slot keeps its delay, so the finished bar is still seen before it goes. */ + .ss-barslot { + transition-duration: 0s; + } + /* The badge only fades. */ + .ss-tgl .ic > i { + transform: none; + } + /* .grow and .grow.shut set their own transitions, so they are named to outrank them. */ + .ss-bar > i, + .ss-prog i, + .ss-collapse, + .ss-collapse.grow, + .ss-collapse.grow.shut, + .ss-collapse .ss-r, + .ss-note.live { + transition: none; + } + } + .ss-note { + display: flex; + align-items: flex-start; + gap: 10px; + padding: 11px 14px; + border-radius: 10px; + background: var(--sunken); + border: 1px solid var(--line); + font-size: 13px; + line-height: 1.5; + } + :root[data-theme='playful'] .ss-note { + border: 2px solid var(--line); + border-radius: 12px; + } + .ss-note.warn { + background: var(--warn-bg); + border-color: transparent; + } + .ss-note.bad { + background: var(--bad-bg); + border-color: transparent; + } + .ss-note.inf { + background: var(--accent-bg); + border-color: transparent; + } + .ss-note.warn > svg { + color: var(--warn); + } + .ss-note.bad > svg { + color: var(--bad); + } + .ss-note.inf > svg { + color: var(--accent); + } + :root[data-theme='playful'] .ss-note.warn { + border-color: var(--warn); + } + :root[data-theme='playful'] .ss-note.bad { + border-color: var(--bad); + } + :root[data-theme='playful'] .ss-note.inf { + border-color: var(--accent); + } + .ss-note > svg { + margin-top: 2px; + } + .ss-box { + background: var(--surface); + border: var(--frame); + border-radius: var(--r-box); + box-shadow: var(--sh-box); + padding: 18px 20px; + } + :root:not([data-theme='playful']) .ss-box { + border-radius: 12px; + } + /* Rendered markdown (MarkdownView) */ + .ss-prose { + display: flex; + flex-direction: column; + gap: 12px; + color: var(--ink-2); + line-height: 1.7; + overflow-wrap: anywhere; + } + .ss-prose > * { + margin: 0; + } + .ss-prose :is(h1, h2, h3, h4, h5, h6) { + margin-top: 8px; + font: 600 14px/1.35 var(--f); + color: var(--ink); + } + .ss-prose h1 { + margin-top: 12px; + padding-bottom: 6px; + border-bottom: var(--sep); + font-size: 19px; + } + .ss-prose h2 { + margin-top: 12px; + padding-bottom: 5px; + border-bottom: var(--sep); + font-size: 16.5px; + } + .ss-prose h3 { + font-size: 15px; + } + .ss-prose h4 { + font-size: 14px; + } + .ss-prose h5 { + font-size: 13.5px; + } + .ss-prose h6 { + font-size: 13px; + color: var(--ink-3); + } + .ss-prose.lg { + gap: 14px; + font-size: 14.5px; + } + .ss-prose.lg h1 { + margin-top: 14px; + font: 650 22px/1.25 var(--fh); + letter-spacing: -0.015em; + } + .ss-prose.lg h2 { + margin-top: 20px; + padding-bottom: 8px; + border-bottom: var(--sep); + font: 600 17px/1.3 var(--fh); + letter-spacing: -0.01em; + } + .ss-prose.lg h3 { + margin-top: 12px; + font: 600 15px/1.35 var(--fh); + } + .ss-prose.lg h4 { + font-size: 14.5px; + } + .ss-prose.lg h5 { + font-size: 14px; + } + .ss-prose.lg h6 { + font-size: 13px; + } + :root[data-theme='playful'] .ss-prose.lg h1 { + font: 700 30px/1.15 var(--fh); + letter-spacing: 0; + } + :root[data-theme='playful'] .ss-prose.lg h2 { + font: 700 23px/1.2 var(--fh); + letter-spacing: 0; + } + :root[data-theme='playful'] .ss-prose.lg h3 { + font: 700 18px/1.25 var(--fh); + } + .ss-prose > :first-child { + margin-top: 0; + } + .ss-prose :is(b, strong) { + color: var(--ink); + font-weight: 600; + } + .ss-prose :is(ul, ol) { + display: flex; + flex-direction: column; + gap: 4px; + padding-left: 22px; + } + .ss-prose ul { + list-style: disc; + } + .ss-prose ul ul { + list-style: circle; + } + .ss-prose ul ul ul { + list-style: square; + } + .ss-prose ol { + list-style: decimal; + } + .ss-prose li::marker { + color: var(--ink-3); + } + .ss-prose li > :is(ul, ol) { + margin-top: 4px; + } + .ss-prose li.task-list-item { + margin-left: -20px; + list-style: none; + } + .ss-prose li.task-list-item input { + margin-right: 7px; + accent-color: var(--accent); + vertical-align: -1px; + } + .ss-prose :not(pre) > code { + padding: 1px 6px; + font: 12.5px var(--fm); + color: var(--ink); + background: var(--sunken); + border: 1px solid var(--line-soft); + border-radius: 6px; + overflow-wrap: break-word; + } + .ss-prose :not(pre) > code.nw { + white-space: nowrap; + } + .ss-prose a { + color: var(--accent); + text-decoration: underline; + text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); + text-underline-offset: 3px; + } + .ss-prose a:hover { + text-decoration-color: currentColor; + } + .ss-prose blockquote { + display: flex; + flex-direction: column; + gap: 8px; + padding: 10px 14px; + background: var(--sunken); + border-radius: 10px; + } + :root[data-theme='playful'] .ss-prose blockquote { + background: var(--pe); + border: 2px solid var(--line); + border-radius: 12px; + color: var(--ink); + } + .ss-prose blockquote blockquote, + :root[data-theme='playful'] .ss-prose blockquote blockquote { + padding: 0 0 0 12px; + background: none; + border: 0; + border-left: 3px solid var(--line); + border-radius: 0; + } + .ss-prose blockquote.alert { + --c: var(--accent); + padding: 4px 0 4px 14px; + background: none; + border-left: 3px solid var(--c); + border-radius: 0; + } + .ss-prose blockquote.tip { + --c: var(--ok); + } + .ss-prose blockquote.warning { + --c: var(--warn); + } + .ss-prose blockquote.caution { + --c: var(--bad); + } + :root[data-theme='playful'] .ss-prose blockquote.alert { + padding: 10px 14px; + background: var(--pe); + border: 2px solid var(--c); + border-radius: 12px; + } + .ss-prose .alert-title { + display: flex; + align-items: center; + gap: 7px; + font-weight: 600; + color: var(--c); + } + .ss-prose details { + padding: 10px 14px; + border: 1px solid var(--line); + border-radius: 10px; + } + .ss-prose details[open] { + display: flex; + flex-direction: column; + gap: 10px; + } + :root[data-theme='playful'] .ss-prose details { + border-width: 2px; + border-radius: 12px; + } + .ss-prose summary { + cursor: pointer; + font-weight: 600; + color: var(--ink); + } + .ss-prose kbd { + padding: 0 6px; + font: 11.5px/1.7 var(--fm); + color: var(--ink); + background: var(--surface); + border: 1px solid var(--line); + border-bottom-width: 2px; + border-radius: 5px; + } + .ss-prose del { + color: var(--ink-3); + } + .ss-prose .footnotes { + padding-top: 12px; + font-size: 12.5px; + color: var(--ink-3); + border-top: var(--sep); + } + .ss-prose hr { + border: 0; + border-top: var(--sep); + } + .ss-prose img { + max-width: 100%; + max-height: 420px; + border-radius: 8px; + } + .ss-prose p > img { + display: inline-block; + vertical-align: top; + } + .ss-prose mark { + padding: 0 3px; + color: var(--ink); + background: var(--warn-bg); + border-radius: 3px; + } + .ss-prose ins { + text-decoration-color: var(--ok); + text-underline-offset: 3px; + } + .ss-pre { + position: relative; + } + .ss-pre pre { + padding: 14px 16px; + font: 400 12.5px/1.65 var(--fm); + color: var(--ink-2); + background: var(--sunken); + border: 1px solid var(--line); + border-radius: 10px; + overflow-x: auto; + } + .ss-pre:has(> .lang) pre { + padding-top: 32px; + } + .ss-pre .lang { + position: absolute; + top: 11px; + left: 17px; + font: 600 10.5px/1 var(--f); + letter-spacing: 0.06em; + text-transform: uppercase; + color: var(--ink-3); + } + :root[data-theme='playful'] .ss-pre pre { + border: 2px solid var(--line); + border-radius: 12px; + background: var(--surface); + } + :root[data-theme='playful'] .ss-pre .lang { + top: 12px; + left: 18px; + } + .ss-tbl { + overflow-x: auto; + border: 1px solid var(--line); + border-radius: 10px; + } + :root[data-theme='playful'] .ss-tbl { + border: 2px solid var(--line); + border-radius: 12px; + } + .ss-tbl table { + width: 100%; + border-collapse: collapse; + font-size: 13px; + line-height: 1.5; + } + .ss-tbl :is(th, td) { + padding: 8px 12px; + text-align: left; + vertical-align: top; + border-bottom: 1px solid var(--line-soft); + overflow-wrap: break-word; + } + .ss-tbl :is(th, td) + :is(th, td) { + border-left: 1px solid var(--line-soft); + } + .ss-tbl tr:last-child > :is(th, td) { + border-bottom: 0; + } + .ss-tbl thead th { + background: var(--sunken); + color: var(--ink); + font-weight: 600; + } + .ss-tbl.fm tbody th { + width: 1%; + white-space: nowrap; + font: 500 12.5px/1.5 var(--fm); + color: var(--ink-2); + background: var(--sunken); + } + .ss-tbl.fm td { + color: var(--ink); + } + .ss-bulk { + position: fixed; + z-index: 40; + left: 50%; + bottom: 28px; + transform: translateX(-50%); + margin-left: 116px; + display: flex; + align-items: center; + gap: 6px; + width: max-content; + max-width: calc(100vw - 24px); + height: 46px; + padding: 0 8px 0 16px; + color: var(--ink); + background: rgba(255, 255, 255, 0.82); + backdrop-filter: blur(18px) saturate(180%); + border-radius: 14px; + box-shadow: var(--sh-float); + font-size: 13px; + } + :root:not([data-theme='playful']).dark .ss-bulk { + background: rgba(40, 38, 35, 0.82); + } + :root[data-theme='playful'] .ss-bulk { + background: var(--sel); + color: var(--sel-ink); + border: 2px solid var(--line); + border-radius: var(--r-btn); + backdrop-filter: none; + } + .ss-bulk .dv { + width: 1px; + height: 20px; + background: var(--line-2); + margin: 0 6px; + } + .ss-bulk .ss-btn { + background: transparent; + border-color: transparent; + box-shadow: none; + } + .ss-counts { + display: grid; + grid-template-columns: repeat(4, minmax(0, 1fr)); + background: var(--surface); + border: var(--frame); + border-radius: 12px; + box-shadow: var(--sh-box); + } + :root[data-theme='playful'] .ss-counts { + border-radius: var(--r-box); + } + .ss-counts > :is(a, button, div) { + display: flex; + align-items: center; + gap: 12px; + padding: 16px 18px; + border-left: var(--sep); + text-align: left; + } + .ss-counts > :is(a, button, div):first-child { + border-left: 0; + } + .ss-counts > button:disabled { + cursor: default; + } + .ss-counts b { + font: 700 22px/1 var(--f); + letter-spacing: -0.02em; + } + :root[data-theme='playful'] .ss-counts b { + font: 700 28px/0.9 var(--fh); + } + .ss-board { + position: relative; + height: 440px; + background: #f6eedb; + border: 2px solid var(--line); + border-radius: 16px; + box-shadow: 5px 5px 0 var(--line); + background-image: radial-gradient(#e0d4b8 1.2px, transparent 1.2px); + background-size: 22px 22px; + overflow: hidden; + } + :root[data-theme='playful'].dark .ss-board { + background-color: #24201a; + background-image: radial-gradient(#352f25 1.2px, transparent 1.2px); + box-shadow: 5px 5px 0 #000; + } + .ss-board svg.strings { + position: absolute; + inset: 0; + } + .ss-pinnote { + position: absolute; + display: flex; + align-items: center; + gap: 10px; + padding: 0 12px 0 16px; + background: var(--surface); + border: 2px solid var(--line); + box-shadow: 3px 3px 0 var(--line); + color: var(--ink); + } + :root[data-theme='playful'].dark .ss-pinnote { + box-shadow: 3px 3px 0 #000; + } + .ss-pinnote.off { + background: transparent; + border-style: dashed; + border-color: var(--ink-3); + box-shadow: none; + color: var(--ink-3); + } + .ss-pin { + position: absolute; + width: 14px; + height: 14px; + border-radius: 99px; + background: radial-gradient(circle at 35% 30%, #ff9a93 0 18%, #e5484d 19% 100%); + border: 1.5px solid #8e1f22; + box-shadow: 1px 2px 0 rgba(0, 0, 0, 0.25); + } + .ss-pin.off { + background: #cfc7b6; + border-color: #9a917f; + box-shadow: none; + } + .ss-pin.blue { + background: radial-gradient(circle at 35% 30%, #9dbdf0 0 18%, #2d5da1 19% 100%); + border-color: #1b3c6b; + } + /* Counts in the source note link to their pages; currentColor is the note's own ink. */ + .ss-pinnote.src a { + margin: 0 -7px; + padding: 0 7px; + border-radius: 8px; + transition: background 0.12s; + } + .ss-pinnote.src a:hover { + background: color-mix(in srgb, currentColor 13%, transparent); + } + .ss-squig { + display: block; + margin-top: -2px; + color: #c8372d; + } + .ss-tabs .ss-cnt { + position: relative; + top: 0; + } + .ss-scrim { + position: fixed; + z-index: 60; + inset: 0; + background: rgba(20, 19, 18, 0.36); + display: grid; + place-items: center; + animation: ss-fade-in 0.2s ease-out; + } + /* The backdrop darkens first; closing, it lightens as the dialog shrinks back (dialogGhost in lib/exitGhost.ts). */ + @keyframes ss-fade-in { + from { + opacity: 0; + } + } + /* An exit copy (lib/exitGhost.ts) must not replay its entrances; its exit runs on the Web Animations API. */ + .ss-ghost, + .ss-ghost * { + animation: none !important; + transition: none !important; + } + :root:not([data-theme='playful']) .ss-scrim { + backdrop-filter: blur(3px); + } + .ss-dlg { + width: 440px; + display: flex; + flex-direction: column; + background: var(--surface); + border: var(--frame); + border-radius: 16px; + box-shadow: var(--sh-dialog); + overflow: hidden; + } + :root[data-theme='playful'] .ss-dlg { + border-radius: 16px; + } + .ss-dlg .dh { + display: flex; + align-items: flex-start; + justify-content: space-between; + gap: 16px; + padding: 20px 22px 0; + } + /* A long scrolling body slides under the title, so mark the edge the way the footer does */ + .ss-dlg .dh.sep { + padding-bottom: 14px; + border-bottom: var(--sep); + } + /* The body is what scrolls, so the header and the footer's actions stay in reach on a short window */ + .ss-dlg .db { + padding: 14px 22px 20px; + display: flex; + flex-direction: column; + gap: 16px; + min-height: 0; + overflow-y: auto; + } + /* Children keep their height so a long body scrolls instead of squashing (and clipping) its lists */ + .ss-dlg .db > * { + flex-shrink: 0; + } + .ss-dlg .df { + display: flex; + align-items: center; + justify-content: flex-end; + gap: 8px; + padding: 14px 22px; + border-top: var(--sep); + background: var(--sunken); + } + .ss-toast { + display: inline-flex; + align-items: center; + gap: 12px; + height: 42px; + padding: 0 8px 0 14px; + background: #1e1d1b; + color: #f4f2ed; + border-radius: 11px; + box-shadow: var(--sh-float); + font-size: 13px; + font-weight: 500; + } + :root[data-theme='playful'] .ss-toast { + border: 2px solid #2d2d2d; + border-radius: 21px; + } + .ss-toast .ss-btn { + background: transparent; + color: #ffe27a; + border-color: transparent; + box-shadow: none; + height: 28px; + padding: 0 10px; + } + .ss-menu { + width: 210px; + padding: 5px; + background: var(--surface); + border: var(--frame); + border-radius: 11px; + box-shadow: var(--sh-float); + display: flex; + flex-direction: column; + } + :root[data-theme='playful'] .ss-menu { + border-radius: 12px; + } + .ss-menu > :is(a, button) { + display: flex; + align-items: center; + gap: 9px; + height: 32px; + padding: 0 9px; + border-radius: 7px; + font-size: 13px; + font-weight: 500; + } + .ss-menu > :is(a, button).hv { + background: var(--sel); + color: var(--sel-ink); + } + .ss-menu > :is(a, button).dng { + color: var(--bad); + } + .ss-menu hr { + border: 0; + border-top: var(--sep); + margin: 5px 0; + } + .ss-menu .k { + margin-left: auto; + font: 500 11px/1 var(--fm); + color: var(--ink-3); + } + .ss-tip { + display: inline-block; + padding: 6px 9px; + background: #1e1d1b; + color: #f4f2ed; + font-size: 12px; + font-weight: 500; + border-radius: 7px; + } + .ss-top { + position: fixed; + right: 24px; + bottom: 24px; + z-index: 40; + width: 40px; + height: 40px; + display: grid; + place-items: center; + border-radius: 99px; + background: var(--surface); + color: var(--ink-2); + border: 1px solid var(--line-2); + box-shadow: 0 4px 14px rgba(20, 19, 18, 0.14); + cursor: pointer; + } + .ss-top:hover { + color: var(--ink); + } + :root[data-theme='playful'] .ss-top { + border: 2px solid var(--line); + color: var(--ink); + box-shadow: 3px 3px 0 var(--line); + } + :root[data-theme='playful'] .ss-top:hover { + transform: translate(2px, 2px); + box-shadow: 1px 1px 0 var(--line); + } + .ss-prog { + height: 6px; + border-radius: 99px; + background: var(--line); + overflow: hidden; + display: flex; + } + .ss-prog i { + background: var(--accent); + border-radius: 99px; + transition: width 0.45s cubic-bezier(0.3, 0.7, 0.3, 1); + } + :root[data-theme='playful'] .ss-prog { + height: 12px; + background: var(--surface); + border: 2px solid var(--line); + } + :root[data-theme='playful'] .ss-prog i { + border-radius: 0; + background: repeating-linear-gradient(-45deg, var(--accent) 0 5px, transparent 5px 8px); + } + .ss-empty { + display: flex; + flex-direction: column; + align-items: center; + gap: 8px; + padding: 40px 24px; + text-align: center; + border: 1.5px dashed var(--line-2); + border-radius: 12px; + color: var(--ink-2); + } + :root[data-theme='playful'] .ss-empty { + border: 2px dashed var(--ink-3); + border-radius: var(--r-box); + } + .ss-skel { + height: 10px; + border-radius: 5px; + background: var(--line); + } + .ss-sev { + display: inline-flex; + align-items: center; + height: 19px; + padding: 0 6px; + font: 600 10.5px/1 var(--fm); + letter-spacing: 0.04em; + text-transform: uppercase; + border-radius: var(--r-tag); + border: 1px solid transparent; + } + .ss-sev.c { + background: var(--bad); + color: #fff; + } + :root.dark .ss-sev.c { + color: #1b1916; + } + .ss-sev.h { + background: var(--bad-bg); + color: var(--bad); + } + .ss-sev.md { + background: var(--warn-bg); + color: var(--warn); + } + .ss-sev.l { + background: var(--sunken); + color: var(--ink-2); + border-color: var(--line); + } + .ss-sev.n { + color: var(--ink-3); + border-color: var(--line); + } + :root[data-theme='playful'] .ss-sev { + border: 1.5px solid currentColor; + } + :root[data-theme='playful'] .ss-sev.c { + border-color: var(--line); + } + .ss-kv { + display: grid; + grid-template-columns: 96px minmax(0, 1fr); + gap: 9px 14px; + font-size: 13px; + } + .ss-kv dt { + color: var(--ink-3); + } + .ss-kv dd { + font-weight: 500; + min-width: 0; + } + .ss-setrow { + display: flex; + align-items: center; + gap: 24px; + min-height: 60px; + padding: 12px 18px; + } + .ss-setrow + .ss-setrow { + border-top: var(--sep); + } + .ss-setrow .l { + flex: 1 1 0; + min-width: 0; + display: flex; + flex-direction: column; + gap: 2px; + } + .ss-setrow .l span { + font-size: 13px; + color: var(--ink-2); + } + .ss-code { + font: 400 12.5px/1.65 var(--fm); + padding: 14px 16px; + border-radius: 10px; + background: var(--sunken); + border: 1px solid var(--line); + color: var(--ink-2); + white-space: pre; + overflow: hidden; + } + :root[data-theme='playful'] .ss-code { + border: 2px solid var(--line); + border-radius: 12px; + } + .ss-code .ln { + color: var(--ink-3); + opacity: 0.7; + margin-right: 14px; + user-select: none; + } + /* Syntax colors (lib/highlight) */ + :is(.ss-code, .ss-pre) :is(.tok-keyword, .tok-heading, .tok-link) { + color: var(--accent); + } + :is(.ss-code, .ss-pre) :is(.tok-string, .tok-string2, .tok-inserted) { + color: var(--ok); + } + :is(.ss-code, .ss-pre) + :is(.tok-number, .tok-bool, .tok-atom, .tok-typeName, .tok-className, .tok-list, .tok-arg) { + color: var(--warn); + } + :is(.ss-code, .ss-pre) :is(.tok-comment, .tok-meta, .tok-punctuation, .tok-quote) { + color: var(--ink-3); + } + :is(.ss-code, .ss-pre) .tok-propertyName { + color: var(--c-mcp); + } + :is(.ss-code, .ss-pre) :is(.tok-definition, .tok-macroName, .tok-deleted) { + color: var(--c-agent); + } + :is(.ss-code, .ss-pre) :is(.tok-heading, .tok-strong) { + font-weight: 600; + } + /* Body editor: a transparent textarea over the highlighted copy. Weights stay regular so both wrap identically */ + .ss-ed :is(.tok-heading, .tok-strong) { + font-weight: inherit; + } + .ss-ed textarea { + color: transparent; + -webkit-text-fill-color: transparent; + caret-color: var(--ink); + } + .ss-ed textarea::selection { + background: color-mix(in srgb, var(--accent) 24%, transparent); + } + .ss-code .add { + background: var(--ok-bg); + color: var(--ok); + display: block; + margin: 0 -16px; + padding: 0 16px; + } + .ss-code .del { + background: var(--bad-bg); + color: var(--bad); + display: block; + margin: 0 -16px; + padding: 0 16px; + } + .ss-disc { + display: flex; + align-items: center; + gap: 7px; + font-size: 13px; + font-weight: 600; + color: var(--ink-2); + } + .ss-pick { + display: flex; + align-items: center; + gap: 12px; + padding: 12px 14px; + border: var(--bw) solid var(--line-2); + border-radius: 10px; + background: var(--surface); + } + :root[data-theme='playful'] .ss-pick { + border-radius: 12px; + } + .ss-pick.on { + border-color: var(--ink); + box-shadow: 0 0 0 1px var(--ink); + } + :root[data-theme='playful'] .ss-pick.on { + border-color: var(--line); + background: var(--pe); + box-shadow: 3px 3px 0 var(--line); + } + :root[data-theme='playful'].dark .ss-pick.on { + background: #332b17; + } + .ss-bulk.static { + position: static; + transform: none; + margin: 0; + align-self: flex-start; + } + .ss-pager { + display: flex; + align-items: center; + gap: 4px; + } + .ss-pager > * { + min-width: 28px; + height: 28px; + padding: 0 6px; + display: grid; + place-items: center; + border-radius: 7px; + font-size: 13px; + font-weight: 500; + color: var(--ink-2); + } + .ss-pager > *.on { + background: var(--sel); + color: var(--sel-ink); + font-weight: 600; + } + :root[data-theme='playful'] .ss-pager > *.on { + outline: 1.5px solid var(--line); + } + b.ok, + svg.ok { + color: var(--ok); + } + span.warn, + b.warn, + svg.warn { + color: var(--warn); + } + span.bad, + b.bad, + svg.bad { + color: var(--bad); + } + .ss-btn:hover:not(:disabled) { + filter: brightness(0.94); + } + :root[data-theme='playful'] .ss-btn:hover:not(:disabled) { + filter: none; + } + /* Lifts and sinks only under a real pointer, so a tap does not leave the control stuck out of place. */ + @media (hover: hover) and (pointer: fine) { + :root[data-theme='playful'] .ss-btn:hover:not(:disabled) { + transform: translate(2px, 2px); + box-shadow: 1px 1px 0 var(--line); + } + } + .ss-btn:disabled { + opacity: 0.42; + } + .ss-btn .spin { + width: 13px; + height: 13px; + border-radius: 50%; + border: 2px solid currentColor; + border-right-color: transparent; + } + .ss-btn .spin + svg { + display: none; + } + .ss-tabs .ss-cnt { + padding: 2px 6px; + margin: 0; + border: 0; + border-radius: 99px; + background: var(--sunken); + font: 600 11px/1.2 var(--f); + color: var(--ink-2); + } + :root[data-theme='playful'] .ss-tabs .ss-cnt { + margin: 0; + border: 1.5px solid var(--ink-3); + background: transparent; + } + :root[data-theme='playful'] .ss-bulk .ss-btn, + :root[data-theme='playful'] .ss-bulk .ss-ib { + color: var(--sel-ink); + } + :root[data-theme='playful'] .ss-bulk .dv { + background: currentColor; + opacity: 0.35; + } + :root[data-theme='playful'] .ss-btn.sm { + box-shadow: 2px 2px 0 var(--line); + } + :root[data-theme='playful'] .ss-btn.ghost, + :root[data-theme='playful'] .ss-bulk .ss-btn, + :root[data-theme='playful'] .ss-toast .ss-btn { + box-shadow: none; + } + :root[data-theme='playful'] .ss-inp:focus-within { + border-color: var(--line); + box-shadow: 3px 3px 0 var(--accent); + } + :root[data-theme='playful'] .ss-inp.err { + box-shadow: 3px 3px 0 var(--bad); + } + :root[data-theme='playful'] .ss-lh { + background: transparent; + border-bottom: 2px solid var(--line); + height: 36px; + font: 600 10.5px/1 var(--fm); + letter-spacing: 0.09em; + text-transform: uppercase; + color: var(--ink-2); + } + :root[data-theme='playful'] .ss-gh { + background: var(--pe); + border-top: 2px solid var(--line); + border-bottom: 1.5px dashed var(--line); + } + :root[data-theme='playful'] .ss-gh:first-child { + border-top: 0; + } + :root[data-theme='playful'] .ss-lh + .ss-gh { + border-top: 0; + } + :root[data-theme='playful'] .ss-list.stick > .ss-lh { + background: var(--surface); + } + :root[data-theme='playful'] .ss-list.stick > .ss-gh { + top: calc(var(--stick, 0px) + 36px); + } + :root[data-theme='playful'] .ss-gh + .ss-r { + border-top: 0; + } + :root[data-theme='playful'] .ss-tabs { + border-bottom: 0; + gap: 8px; + } + :root[data-theme='playful'] .ss-tabs > * { + margin: 0; + padding: 0 14px; + height: 34px; + border: 2px solid transparent; + border-radius: 999px; + } + :root[data-theme='playful'] .ss-tabs > *.on { + background: var(--pa); + color: var(--sel-ink); + border-color: var(--line); + box-shadow: 3px 3px 0 var(--line); + } + /* Tabs with controls on the right; the bar carries the underline so it spans the controls too. Controls that do not fit wrap above the tabs, so the tabs stay on the line. */ -.ss-tabbar { display: flex; flex-wrap: wrap-reverse; align-items: flex-end; justify-content: space-between; gap: 8px 16px; border-bottom: 1px solid var(--line); } -.ss-tabbar>.ss-tabs { border-bottom: 0; } -.ss-tabbar>:not(.ss-tabs) { margin-bottom: 6px; margin-left: auto; } -:root[data-theme="playful"] .ss-tabbar { align-items: center; border-bottom: 0; } -:root[data-theme="playful"] .ss-tabbar>:not(.ss-tabs) { margin-bottom: 0; } -:root[data-theme="playful"] .ss-tabs .ss-cnt { height: auto; padding: 1px 6px; border: 1.5px solid currentColor; box-shadow: none; background: transparent; color: inherit; opacity: .8; } -:root[data-theme="playful"] .ss-seg { border-radius: 999px; border: 2px solid var(--line); padding: 2px; } -:root[data-theme="playful"] .ss-seg>* { border-radius: 999px; } -:root[data-theme="playful"] .ss-seg>*.on { background: var(--pa); outline: 0; box-shadow: inset 0 0 0 1.5px var(--line); } -:root[data-theme="playful"] .ss-counts { background: transparent; border: 0; box-shadow: none; gap: 16px; border-radius: 0; } -:root[data-theme="playful"] .ss-counts>a { border: 2px solid var(--line); border-radius: 14px; box-shadow: 4px 4px 0 var(--line); background: var(--pa); color: var(--sel-ink); } -:root[data-theme="playful"] .ss-counts>a:first-child { border-left: 2px solid var(--line); } -:root[data-theme="playful"] .ss-counts>a:nth-child(4n+2) { background: var(--pb); } -:root[data-theme="playful"] .ss-counts>a:nth-child(4n+3) { background: var(--pc); } -:root[data-theme="playful"] .ss-counts>a:nth-child(4n+4) { background: var(--pd); } -:root[data-theme="playful"] .ss-counts>a:nth-child(5) { background: var(--surface); color: var(--ink); } -:root[data-theme="playful"] .ss-counts>a .lbl { color: inherit; opacity: .75; } -:root[data-theme="playful"] .ss-counts>a .lbl { font: 600 10.5px/1.2 var(--fm); letter-spacing: .08em; text-transform: uppercase; } -:root[data-theme="playful"] .ss-counts b { font: 700 32px/0.9 var(--fh); } -:root[data-theme="playful"] .ss-note { box-shadow: 3px 3px 0 var(--line); border-color: var(--line) !important; } -:root[data-theme="playful"] .ss-note.warn { background: var(--pe); } -:root[data-theme="playful"] .ss-note.bad { background: var(--pb); color: var(--ink); } -:root[data-theme="playful"] .ss-note.inf { background: var(--pc); color: var(--ink); } -:root[data-theme="playful"].dark .ss-note.bad, :root[data-theme="playful"].dark .ss-note.inf, :root[data-theme="playful"].dark .ss-note.warn { color: #1B1916; } -/* --pe is a dark tint in dark mode; warn notes need a light pastel like bad/inf so the dark text stays readable. */ -:root[data-theme="playful"].dark .ss-note.warn { background: var(--pa); } -:root[data-theme="playful"].dark .ss-note .ss-btn { color: var(--ink); } -:root[data-theme="playful"] .ss-note svg { color: inherit; } -:root[data-theme="playful"] .ss-box { box-shadow: 4px 4px 0 var(--line); } -:root[data-theme="playful"] .ss-code { box-shadow: none; background: var(--surface); } -:root[data-theme="playful"] .ss-bulk { background: var(--pa); box-shadow: 5px 5px 0 var(--line); } -:root[data-theme="playful"] .ss-toast { border-color: var(--line); box-shadow: 4px 4px 0 var(--pa); } -:root[data-theme="playful"] .ss-menu>:is(a,button).hv { background: var(--pa); } -:root[data-theme="playful"] .ss-pager>*.on { background: var(--pa); outline: 2px solid var(--line); } -:root[data-theme="playful"] .ss-pinnote { border-radius: 12px; } -:root[data-theme="playful"] .ss-pinnote.src { background: var(--pa); color: var(--sel-ink); --ink: var(--sel-ink); --ink-2: color-mix(in srgb, var(--sel-ink) 80%, transparent); --ink-3: color-mix(in srgb, var(--sel-ink) 62%, transparent); } -:root[data-theme="playful"] .ss-sev { border-radius: 6px; } -:root[data-theme="playful"] .ss-sw { box-shadow: 2px 2px 0 var(--line); } -:root[data-theme="playful"] .ss-chk.on { background: var(--ink); } -:root[data-theme="playful"] .ss-chk.on { background: var(--ink); border-color: var(--line); color: var(--pa); } -:root[data-theme="playful"] .ss-chk.rad.on { background: var(--surface); } -:root[data-theme="playful"] .ss-gh:last-child { border-bottom: 0; } -.ss-ph h1 span.m { font: 700 27px/1.15 var(--fm); letter-spacing: -0.03em; } -:root[data-theme="playful"] .ss-ph h1 span.m { font-size: 29px; padding: 2px 6px; margin: 0 -6px; } -:root[data-theme="playful"].dark .ss-chk.on { background: var(--pa); color: #1B1916; border-color: var(--pa); } -.ss-seg.ic>* { padding: 0 9px; display: inline-grid; place-items: center; } -.ss-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } -.ss-tile { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; min-height: 132px; background: var(--surface); border: var(--frame); border-radius: 12px; box-shadow: var(--sh-box); } -:root[data-theme="playful"] .ss-tile { border-radius: 14px; } -.ss-tile.sel { background: var(--accent-bg); border-color: var(--accent); } -:root[data-theme="playful"] .ss-tile.sel { background: var(--pe); border-color: var(--line); } -.ss-tile .ft { margin-top: auto; display: flex; align-items: center; justify-content: space-between; } -.ss-tile .ds { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } -.ss-tile .nm { font: 600 13px/1.3 var(--fm); letter-spacing: -0.015em; } -.ss-gl { display: flex; align-items: center; gap: 10px; font-size: 13px; margin: 8px 0 -2px; } -.ss-r.fold { min-height: 42px; background: var(--sunken); gap: 9px; font-size: 13px; } -:root[data-theme="playful"] .ss-r.fold { background: var(--pe); } -/* Skills tree view: framed box with the tree left, a detail pane right and a draggable divider. */ -.ss-split { display: flex; height: clamp(420px, calc(100vh - 260px), 760px); } -.ss-split .lp.settle { transition: width .36s var(--spring-bounce); } -/* Reduced motion: no spring, just a brief fade as the pane takes its limit. */ -@media (prefers-reduced-motion: reduce) { .ss-split .lp.settle { transition: none; animation: ss-settle-fade .2s ease-out; } } -@keyframes ss-settle-fade { from { opacity: .5; } } -.ss-split>.lp { flex: none; min-width: 0; overflow: auto; padding: 6px; } -.ss-split>.rp { flex: 1 1 0; min-width: 0; overflow: auto; } -.ss-split>.dv { position: relative; flex: none; width: 9px; margin: 0 -4px; z-index: 1; cursor: col-resize; touch-action: none; } -.ss-split>.dv::before { content: ''; position: absolute; top: 0; bottom: 0; left: 4px; border-left: var(--sep); } -.ss-split>.dv:is(:hover, :focus-visible)::before { border-left: 2px solid var(--accent); left: 3.5px; } -.ss-split>.dv:focus-visible { outline: 0; } -.ss-tn { position: relative; display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px 0 calc(4px + var(--d, 0) * 18px); border-radius: 6px; font-size: 13px; color: var(--ink); cursor: pointer; user-select: none; } -.ss-tn:hover { background: var(--sunken); } -.ss-tn.sel { background: var(--sel); color: var(--sel-ink); } -.ss-tn.in { background: color-mix(in srgb, var(--sel) 45%, transparent); } -/* A selected folder and the rows inside it read as one block, so only its outer corners are round. */ -.ss-tn.sel:has(+ .ss-tn.in), .ss-tn.in { border-bottom-left-radius: 0; border-bottom-right-radius: 0; } -.ss-tn.in { border-top-left-radius: 0; border-top-right-radius: 0; } -.ss-tn.in:not(:has(+ .ss-tn.in)) { border-bottom-left-radius: 6px; border-bottom-right-radius: 6px; } -:root[data-theme="playful"] .ss-tn.sel { outline: 1.5px solid var(--line); outline-offset: -1.5px; } -:root[data-theme="playful"] .ss-tn.in { background: var(--pe); } -.ss-tn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; } -.ss-tree { --tl: color-mix(in srgb, var(--ink) 10%, var(--surface)); } -/* A folder's line runs down from its chevron; each child curves in from it, and the last child's curve ends it. */ -.ss-tn .gd { position: absolute; top: 0; bottom: 0; left: calc(16px + var(--g) * 18px); border-left: 1px solid var(--tl); } -.ss-tn .gd.el { bottom: auto; height: 16px; width: var(--w); border-bottom: 1px solid var(--tl); border-bottom-left-radius: 6px; } -.ss-tn .gd.el.on::after { content: ""; position: absolute; left: -1px; top: 10px; height: 22px; border-left: 1px solid var(--tl); } -/* Rows a folder opens grow in; the rows of a folder being closed shrink away first. */ -@keyframes ss-tn-grow { from { height: 0; opacity: 0; } } -.ss-tree .ss-tn { transition: height .18s ease-in, opacity .15s; } -.ss-tree .ss-tn.grow { overflow: hidden; animation: ss-tn-grow .2s ease-out; } -.ss-tree .ss-tn.shut { height: 0; opacity: 0; overflow: hidden; } -@media (prefers-reduced-motion: reduce) { - .ss-tree .ss-tn { transition: none; } - .ss-tree .ss-tn.grow { animation: none; } -} -.ss-tn .cv { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 5px; color: var(--ink-3); } -.ss-tn button.cv:hover { color: var(--ink); } -.ss-tn .ic { color: var(--ink-2); } -.ss-tn .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 13px/1 var(--fm); letter-spacing: -0.015em; } -.ss-tn .nm.f { font-weight: 600; } -.ss-tn .nm .sl { padding: 0 4px; font-weight: 400; color: var(--ink-3); } -.ss-tn.off .nm { color: var(--ink-3); } -.ss-tn.sel :is(.ic, .cv, .sl, .hv) { color: inherit; } -.ss-tn.sel.off .nm { color: inherit; opacity: .6; } -.ss-tn .hv { display: none; flex: none; align-items: center; gap: 8px; margin-left: 2px; font-size: 12px; color: var(--ink-3); } -.ss-tn:is(:hover, :focus-visible) .hv { display: inline-flex; } -.ss-tree-props { display: flex; flex-direction: column; border-top: var(--sep); } -.ss-tree-props>div { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 8px 0; border-bottom: var(--sep); } -.ss-tree-props .lb { flex: none; width: 96px; font-size: 13px; color: var(--ink-3); } -.ss-tree-item { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 10px; margin: 0 -10px; border-radius: 6px; } -.ss-tree-item:hover { background: var(--sunken); } -:root[data-theme="playful"] .ss-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 38px 24px; padding-top: 14px; } -:root[data-theme="playful"] .ss-tile { position: relative; min-height: 196px; padding: 26px 16px 14px 18px; gap: 8px; --paper: #FFF3A6; - background: linear-gradient(rgba(38,32,26,.055), rgba(38,32,26,0) 30px), linear-gradient(168deg, rgba(255,255,255,.35), rgba(255,255,255,0) 45%), var(--paper); - border: 2px solid var(--line); border-radius: 225px 12px 245px 18px / 18px 240px 12px 230px; box-shadow: 5px 6px 0 rgba(38,32,26,.2); } -:root[data-theme="playful"] .ss-tile:nth-child(6n+2) { --paper: #FFD3DF; border-radius: 240px 20px 210px 10px / 12px 215px 22px 250px; } -:root[data-theme="playful"] .ss-tile:nth-child(6n+3) { --paper: #CFE8FF; border-radius: 215px 8px 255px 14px / 20px 250px 10px 220px; } -:root[data-theme="playful"] .ss-tile:nth-child(6n+4) { --paper: #D6F0C4; border-radius: 250px 18px 220px 12px / 10px 230px 16px 245px; } -:root[data-theme="playful"] .ss-tile:nth-child(6n+5) { --paper: #FFE1BD; border-radius: 230px 10px 240px 22px / 16px 245px 8px 215px; } -:root[data-theme="playful"] .ss-tile:nth-child(6n+6) { --paper: #E9DAF7; border-radius: 245px 14px 225px 16px / 14px 225px 18px 240px; } -:root[data-theme="playful"].dark .ss-tile { background: linear-gradient(rgba(0,0,0,.18), rgba(0,0,0,0) 30px), color-mix(in srgb, var(--paper) 22%, var(--surface)); border-color: rgba(255,255,255,.22); box-shadow: 5px 6px 0 rgba(0,0,0,.55); } -:root[data-theme="playful"] .ss-tile::before { content: ''; position: absolute; top: -13px; left: 50%; width: 84px; height: 25px; transform: translateX(-50%) rotate(-2deg); - background: linear-gradient(rgba(255,255,255,.35), rgba(255,255,255,0) 40%, rgba(120,110,80,.10)), rgba(222, 214, 186, .62); - clip-path: polygon(0 0, 3% 14%, 0 28%, 3% 42%, 0 57%, 3% 71%, 0 86%, 2% 100%, 98% 100%, 100% 86%, 97% 71%, 100% 57%, 97% 42%, 100% 28%, 97% 14%, 100% 0); } -:root[data-theme="playful"].dark .ss-tile::before { background: rgba(232, 224, 198, .30); } -:root[data-theme="playful"] .ss-tile:nth-child(4n+1)::before { left: 33%; transform: translateX(-50%) rotate(-4deg); width: 78px; } -:root[data-theme="playful"] .ss-tile:nth-child(4n+2)::before { left: 60%; transform: translateX(-50%) rotate(3deg); width: 90px; } -:root[data-theme="playful"] .ss-tile:nth-child(4n+3)::before { left: 44%; transform: translateX(-50%) rotate(-1.5deg); } -:root[data-theme="playful"] .ss-tile:nth-child(4n+4)::before { left: 66%; transform: translateX(-50%) rotate(4.5deg); width: 74px; } -/* 22px, not the 25px of other headings: the name shares its row with a checkbox and a menu, which leaves + .ss-tabbar { + display: flex; + flex-wrap: wrap-reverse; + align-items: flex-end; + justify-content: space-between; + gap: 8px 16px; + border-bottom: 1px solid var(--line); + } + .ss-tabbar > .ss-tabs { + border-bottom: 0; + } + .ss-tabbar > :not(.ss-tabs) { + margin-bottom: 6px; + margin-left: auto; + } + :root[data-theme='playful'] .ss-tabbar { + align-items: center; + border-bottom: 0; + } + :root[data-theme='playful'] .ss-tabbar > :not(.ss-tabs) { + margin-bottom: 0; + } + :root[data-theme='playful'] .ss-tabs .ss-cnt { + height: auto; + padding: 1px 6px; + border: 1.5px solid currentColor; + box-shadow: none; + background: transparent; + color: inherit; + opacity: 0.8; + } + :root[data-theme='playful'] .ss-seg { + border-radius: 999px; + border: 2px solid var(--line); + padding: 2px; + } + :root[data-theme='playful'] .ss-seg > * { + border-radius: 999px; + } + :root[data-theme='playful'] .ss-seg > *.on { + background: var(--pa); + outline: 0; + box-shadow: inset 0 0 0 1.5px var(--line); + } + :root[data-theme='playful'] .ss-counts { + background: transparent; + border: 0; + box-shadow: none; + gap: 16px; + border-radius: 0; + } + :root[data-theme='playful'] .ss-counts > a { + border: 2px solid var(--line); + border-radius: 14px; + box-shadow: 4px 4px 0 var(--line); + background: var(--pa); + color: var(--sel-ink); + } + :root[data-theme='playful'] .ss-counts > a:first-child { + border-left: 2px solid var(--line); + } + :root[data-theme='playful'] .ss-counts > a:nth-child(4n + 2) { + background: var(--pb); + } + :root[data-theme='playful'] .ss-counts > a:nth-child(4n + 3) { + background: var(--pc); + } + :root[data-theme='playful'] .ss-counts > a:nth-child(4n + 4) { + background: var(--pd); + } + :root[data-theme='playful'] .ss-counts > a:nth-child(5) { + background: var(--surface); + color: var(--ink); + } + :root[data-theme='playful'] .ss-counts > a .lbl { + color: inherit; + opacity: 0.75; + } + :root[data-theme='playful'] .ss-counts > a .lbl { + font: 600 10.5px/1.2 var(--fm); + letter-spacing: 0.08em; + text-transform: uppercase; + } + :root[data-theme='playful'] .ss-counts b { + font: 700 32px/0.9 var(--fh); + } + :root[data-theme='playful'] .ss-note { + box-shadow: 3px 3px 0 var(--line); + border-color: var(--line) !important; + } + :root[data-theme='playful'] .ss-note.warn { + background: var(--pe); + } + :root[data-theme='playful'] .ss-note.bad { + background: var(--pb); + color: var(--ink); + } + :root[data-theme='playful'] .ss-note.inf { + background: var(--pc); + color: var(--ink); + } + :root[data-theme='playful'].dark .ss-note.bad, + :root[data-theme='playful'].dark .ss-note.inf, + :root[data-theme='playful'].dark .ss-note.warn { + color: #1b1916; + } + /* --pe is a dark tint in dark mode; warn notes need a light pastel like bad/inf so the dark text stays readable. */ + :root[data-theme='playful'].dark .ss-note.warn { + background: var(--pa); + } + :root[data-theme='playful'].dark .ss-note .ss-btn { + color: var(--ink); + } + :root[data-theme='playful'] .ss-note svg { + color: inherit; + } + :root[data-theme='playful'] .ss-box { + box-shadow: 4px 4px 0 var(--line); + } + :root[data-theme='playful'] .ss-code { + box-shadow: none; + background: var(--surface); + } + :root[data-theme='playful'] .ss-bulk { + background: var(--pa); + box-shadow: 5px 5px 0 var(--line); + } + :root[data-theme='playful'] .ss-toast { + border-color: var(--line); + box-shadow: 4px 4px 0 var(--pa); + } + :root[data-theme='playful'] .ss-menu > :is(a, button).hv { + background: var(--pa); + } + :root[data-theme='playful'] .ss-pager > *.on { + background: var(--pa); + outline: 2px solid var(--line); + } + :root[data-theme='playful'] .ss-pinnote { + border-radius: 12px; + } + :root[data-theme='playful'] .ss-pinnote.src { + background: var(--pa); + color: var(--sel-ink); + --ink: var(--sel-ink); + --ink-2: color-mix(in srgb, var(--sel-ink) 80%, transparent); + --ink-3: color-mix(in srgb, var(--sel-ink) 62%, transparent); + } + :root[data-theme='playful'] .ss-sev { + border-radius: 6px; + } + :root[data-theme='playful'] .ss-sw { + box-shadow: 2px 2px 0 var(--line); + } + :root[data-theme='playful'] .ss-chk.on { + background: var(--ink); + } + :root[data-theme='playful'] .ss-chk.on { + background: var(--ink); + border-color: var(--line); + color: var(--pa); + } + :root[data-theme='playful'] .ss-chk.rad.on { + background: var(--surface); + } + :root[data-theme='playful'] .ss-gh:last-child { + border-bottom: 0; + } + .ss-ph h1 span.m { + font: 700 27px/1.15 var(--fm); + letter-spacing: -0.03em; + } + :root[data-theme='playful'] .ss-ph h1 span.m { + font-size: 29px; + padding: 2px 6px; + margin: 0 -6px; + } + :root[data-theme='playful'].dark .ss-chk.on { + background: var(--pa); + color: #1b1916; + border-color: var(--pa); + } + .ss-seg.ic > * { + padding: 0 9px; + display: inline-grid; + place-items: center; + } + .ss-tiles { + display: grid; + grid-template-columns: repeat(3, minmax(0, 1fr)); + gap: 14px; + } + .ss-tile { + display: flex; + flex-direction: column; + gap: 10px; + padding: 14px 16px; + min-height: 132px; + background: var(--surface); + border: var(--frame); + border-radius: 12px; + box-shadow: var(--sh-box); + } + :root[data-theme='playful'] .ss-tile { + border-radius: 14px; + } + .ss-tile.sel { + background: var(--accent-bg); + border-color: var(--accent); + } + :root[data-theme='playful'] .ss-tile.sel { + background: var(--pe); + border-color: var(--line); + } + .ss-tile .ft { + margin-top: auto; + display: flex; + align-items: center; + justify-content: space-between; + } + .ss-tile .ds { + display: -webkit-box; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; + overflow: hidden; + } + .ss-tile .nm { + font: 600 13px/1.3 var(--fm); + letter-spacing: -0.015em; + } + .ss-gl { + display: flex; + align-items: center; + gap: 10px; + font-size: 13px; + margin: 8px 0 -2px; + } + .ss-r.fold { + min-height: 42px; + background: var(--sunken); + gap: 9px; + font-size: 13px; + } + :root[data-theme='playful'] .ss-r.fold { + background: var(--pe); + } + /* Skills tree view: framed box with the tree left, a detail pane right and a draggable divider. */ + .ss-split { + display: flex; + height: clamp(420px, calc(100vh - 260px), 760px); + } + .ss-split .lp.settle { + transition: width 0.36s var(--spring-bounce); + } + /* Reduced motion: no spring, just a brief fade as the pane takes its limit. */ + @media (prefers-reduced-motion: reduce) { + .ss-split .lp.settle { + transition: none; + animation: ss-settle-fade 0.2s ease-out; + } + } + @keyframes ss-settle-fade { + from { + opacity: 0.5; + } + } + .ss-split > .lp { + flex: none; + min-width: 0; + overflow: auto; + padding: 6px; + } + .ss-split > .rp { + flex: 1 1 0; + min-width: 0; + overflow: auto; + } + .ss-split > .dv { + position: relative; + flex: none; + width: 9px; + margin: 0 -4px; + z-index: 1; + cursor: col-resize; + touch-action: none; + } + .ss-split > .dv::before { + content: ''; + position: absolute; + top: 0; + bottom: 0; + left: 4px; + border-left: var(--sep); + } + .ss-split > .dv:is(:hover, :focus-visible)::before { + border-left: 2px solid var(--accent); + left: 3.5px; + } + .ss-split > .dv:focus-visible { + outline: 0; + } + .ss-tn { + position: relative; + display: flex; + align-items: center; + gap: 6px; + height: 32px; + padding: 0 8px 0 calc(4px + var(--d, 0) * 18px); + border-radius: 6px; + font-size: 13px; + color: var(--ink); + cursor: pointer; + user-select: none; + } + .ss-tn:hover { + background: var(--sunken); + } + .ss-tn.sel { + background: var(--sel); + color: var(--sel-ink); + } + .ss-tn.in { + background: color-mix(in srgb, var(--sel) 45%, transparent); + } + /* A selected folder and the rows inside it read as one block, so only its outer corners are round. */ + .ss-tn.sel:has(+ .ss-tn.in), + .ss-tn.in { + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; + } + .ss-tn.in { + border-top-left-radius: 0; + border-top-right-radius: 0; + } + .ss-tn.in:not(:has(+ .ss-tn.in)) { + border-bottom-left-radius: 6px; + border-bottom-right-radius: 6px; + } + :root[data-theme='playful'] .ss-tn.sel { + outline: 1.5px solid var(--line); + outline-offset: -1.5px; + } + :root[data-theme='playful'] .ss-tn.in { + background: var(--pe); + } + .ss-tn:focus-visible { + outline: 2px solid var(--accent); + outline-offset: -2px; + } + .ss-tree { + --tl: color-mix(in srgb, var(--ink) 10%, var(--surface)); + } + /* A folder's line runs down from its chevron; each child curves in from it, and the last child's curve ends it. */ + .ss-tn .gd { + position: absolute; + top: 0; + bottom: 0; + left: calc(16px + var(--g) * 18px); + border-left: 1px solid var(--tl); + } + .ss-tn .gd.el { + bottom: auto; + height: 16px; + width: var(--w); + border-bottom: 1px solid var(--tl); + border-bottom-left-radius: 6px; + } + .ss-tn .gd.el.on::after { + content: ''; + position: absolute; + left: -1px; + top: 10px; + height: 22px; + border-left: 1px solid var(--tl); + } + /* Rows a folder opens grow in; the rows of a folder being closed shrink away first. */ + @keyframes ss-tn-grow { + from { + height: 0; + opacity: 0; + } + } + .ss-tree .ss-tn { + transition: + height 0.18s ease-in, + opacity 0.15s; + } + .ss-tree .ss-tn.grow { + overflow: hidden; + animation: ss-tn-grow 0.2s ease-out; + } + .ss-tree .ss-tn.shut { + height: 0; + opacity: 0; + overflow: hidden; + } + @media (prefers-reduced-motion: reduce) { + .ss-tree .ss-tn { + transition: none; + } + .ss-tree .ss-tn.grow { + animation: none; + } + } + .ss-tn .cv { + flex: none; + width: 24px; + height: 24px; + display: grid; + place-items: center; + border-radius: 5px; + color: var(--ink-3); + } + .ss-tn button.cv:hover { + color: var(--ink); + } + .ss-tn .ic { + color: var(--ink-2); + } + .ss-tn .nm { + min-width: 0; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + font: 500 13px/1 var(--fm); + letter-spacing: -0.015em; + } + .ss-tn .nm.f { + font-weight: 600; + } + .ss-tn .nm .sl { + padding: 0 4px; + font-weight: 400; + color: var(--ink-3); + } + .ss-tn.off .nm { + color: var(--ink-3); + } + .ss-tn.sel :is(.ic, .cv, .sl, .hv) { + color: inherit; + } + .ss-tn.sel.off .nm { + color: inherit; + opacity: 0.6; + } + .ss-tn .hv { + display: none; + flex: none; + align-items: center; + gap: 8px; + margin-left: 2px; + font-size: 12px; + color: var(--ink-3); + } + .ss-tn:is(:hover, :focus-visible) .hv { + display: inline-flex; + } + .ss-tree-props { + display: flex; + flex-direction: column; + border-top: var(--sep); + } + .ss-tree-props > div { + display: flex; + align-items: center; + gap: 14px; + min-height: 52px; + padding: 8px 0; + border-bottom: var(--sep); + } + .ss-tree-props .lb { + flex: none; + width: 96px; + font-size: 13px; + color: var(--ink-3); + } + .ss-tree-item { + display: flex; + align-items: center; + gap: 10px; + min-height: 36px; + padding: 0 10px; + margin: 0 -10px; + border-radius: 6px; + } + .ss-tree-item:hover { + background: var(--sunken); + } + :root[data-theme='playful'] .ss-tiles { + grid-template-columns: repeat(4, minmax(0, 1fr)); + gap: 38px 24px; + padding-top: 14px; + } + :root[data-theme='playful'] .ss-tile { + position: relative; + min-height: 196px; + padding: 26px 16px 14px 18px; + gap: 8px; + --paper: #fff3a6; + background: + linear-gradient(rgba(38, 32, 26, 0.055), rgba(38, 32, 26, 0) 30px), + linear-gradient(168deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 45%), var(--paper); + border: 2px solid var(--line); + border-radius: 225px 12px 245px 18px / 18px 240px 12px 230px; + box-shadow: 5px 6px 0 rgba(38, 32, 26, 0.2); + } + :root[data-theme='playful'] .ss-tile:nth-child(6n + 2) { + --paper: #ffd3df; + border-radius: 240px 20px 210px 10px / 12px 215px 22px 250px; + } + :root[data-theme='playful'] .ss-tile:nth-child(6n + 3) { + --paper: #cfe8ff; + border-radius: 215px 8px 255px 14px / 20px 250px 10px 220px; + } + :root[data-theme='playful'] .ss-tile:nth-child(6n + 4) { + --paper: #d6f0c4; + border-radius: 250px 18px 220px 12px / 10px 230px 16px 245px; + } + :root[data-theme='playful'] .ss-tile:nth-child(6n + 5) { + --paper: #ffe1bd; + border-radius: 230px 10px 240px 22px / 16px 245px 8px 215px; + } + :root[data-theme='playful'] .ss-tile:nth-child(6n + 6) { + --paper: #e9daf7; + border-radius: 245px 14px 225px 16px / 14px 225px 18px 240px; + } + :root[data-theme='playful'].dark .ss-tile { + background: + linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0) 30px), + color-mix(in srgb, var(--paper) 22%, var(--surface)); + border-color: rgba(255, 255, 255, 0.22); + box-shadow: 5px 6px 0 rgba(0, 0, 0, 0.55); + } + :root[data-theme='playful'] .ss-tile::before { + content: ''; + position: absolute; + top: -13px; + left: 50%; + width: 84px; + height: 25px; + transform: translateX(-50%) rotate(-2deg); + background: + linear-gradient( + rgba(255, 255, 255, 0.35), + rgba(255, 255, 255, 0) 40%, + rgba(120, 110, 80, 0.1) + ), + rgba(222, 214, 186, 0.62); + clip-path: polygon( + 0 0, + 3% 14%, + 0 28%, + 3% 42%, + 0 57%, + 3% 71%, + 0 86%, + 2% 100%, + 98% 100%, + 100% 86%, + 97% 71%, + 100% 57%, + 97% 42%, + 100% 28%, + 97% 14%, + 100% 0 + ); + } + :root[data-theme='playful'].dark .ss-tile::before { + background: rgba(232, 224, 198, 0.3); + } + :root[data-theme='playful'] .ss-tile:nth-child(4n + 1)::before { + left: 33%; + transform: translateX(-50%) rotate(-4deg); + width: 78px; + } + :root[data-theme='playful'] .ss-tile:nth-child(4n + 2)::before { + left: 60%; + transform: translateX(-50%) rotate(3deg); + width: 90px; + } + :root[data-theme='playful'] .ss-tile:nth-child(4n + 3)::before { + left: 44%; + transform: translateX(-50%) rotate(-1.5deg); + } + :root[data-theme='playful'] .ss-tile:nth-child(4n + 4)::before { + left: 66%; + transform: translateX(-50%) rotate(4.5deg); + width: 74px; + } + /* 22px, not the 25px of other headings: the name shares its row with a checkbox and a menu, which leaves about 150px, and at 25px a single word such as "brainstorming" was one pixel too wide and broke mid-word. */ -:root[data-theme="playful"] .ss-tile .nm { font: 700 22px/1.15 var(--fh); white-space: normal; } -:root[data-theme="playful"] .ss-tile .ds { font-size: 13.5px; color: var(--ink-2); -webkit-line-clamp: 3; } -:root[data-theme="playful"] .ss-tile .ft { padding-top: 10px; border-top: 1.5px dashed rgba(38,32,26,.22); } -:root[data-theme="playful"].dark .ss-tile .ft { border-top-color: rgba(255,255,255,.16); } -:root[data-theme="playful"] .ss-tile.sel { box-shadow: 7px 8px 0 var(--line); translate: -2px -2px; background: linear-gradient(rgba(38,32,26,.055), rgba(38,32,26,0) 30px), var(--paper); } -:root[data-theme="playful"].dark .ss-tile.sel { box-shadow: 7px 8px 0 var(--pa); border-color: var(--pa); background: color-mix(in srgb, var(--paper) 32%, var(--surface)); } -:root[data-theme="playful"] .ss-tile>.hd { align-items: flex-start; } -:root[data-theme="playful"] .ss-tile>.hd>:is(.ss-chk, label) { margin-top: 5px; } -.ss-code .cur { margin: 0 -16px; padding: 0 16px; background: var(--accent-bg); color: var(--ink); } -.ss-code .mark { margin: 0 -16px; padding: 0 16px; background: var(--warn-bg); color: var(--ink); } -.ss-code .mark .ln { color: var(--warn); opacity: 1; } -:root[data-theme="playful"] .ss-code .cur { background: var(--pe); } + :root[data-theme='playful'] .ss-tile .nm { + font: 700 22px/1.15 var(--fh); + white-space: normal; + } + :root[data-theme='playful'] .ss-tile .ds { + font-size: 13.5px; + color: var(--ink-2); + -webkit-line-clamp: 3; + } + :root[data-theme='playful'] .ss-tile .ft { + padding-top: 10px; + border-top: 1.5px dashed rgba(38, 32, 26, 0.22); + } + :root[data-theme='playful'].dark .ss-tile .ft { + border-top-color: rgba(255, 255, 255, 0.16); + } + :root[data-theme='playful'] .ss-tile.sel { + box-shadow: 7px 8px 0 var(--line); + translate: -2px -2px; + background: linear-gradient(rgba(38, 32, 26, 0.055), rgba(38, 32, 26, 0) 30px), var(--paper); + } + :root[data-theme='playful'].dark .ss-tile.sel { + box-shadow: 7px 8px 0 var(--pa); + border-color: var(--pa); + background: color-mix(in srgb, var(--paper) 32%, var(--surface)); + } + :root[data-theme='playful'] .ss-tile > .hd { + align-items: flex-start; + } + :root[data-theme='playful'] .ss-tile > .hd > :is(.ss-chk, label) { + margin-top: 5px; + } + .ss-code .cur { + margin: 0 -16px; + padding: 0 16px; + background: var(--accent-bg); + color: var(--ink); + } + .ss-code .mark { + margin: 0 -16px; + padding: 0 16px; + background: var(--warn-bg); + color: var(--ink); + } + .ss-code .mark .ln { + color: var(--warn); + opacity: 1; + } + :root[data-theme='playful'] .ss-code .cur { + background: var(--pe); + } -/* Interaction states and app-only pieces the static mockups do not show */ -.ss-h1 { font: var(--h1); letter-spacing: var(--h1-track); } -.ss-h2, .ss-sec h2 { font: var(--h2); letter-spacing: var(--h2-track); } -/* A button should read as clickable; the browser default cursor does not say that. */ -button:not(:disabled), summary { cursor: pointer; } -button:disabled { cursor: not-allowed; } -.ss-btn { transition: filter .12s, transform .1s ease-out, box-shadow .12s; } -.ss-btn:active:not(:disabled) { transform: scale(.97); } -/* A playful button stands on a hard shadow, so a press pushes it flat onto the shadow instead. */ -:root[data-theme="playful"] .ss-btn:not(.ghost, .ss-bulk *, .ss-toast *):active:not(:disabled) { transform: translate(3px, 3px); box-shadow: none; } -:root[data-theme="playful"] .ss-btn:disabled { transform: none; box-shadow: var(--sh-btn); } -/* Frameless buttons have nothing to cast a shadow from, and the hover and disabled rules above outrank + /* Interaction states and app-only pieces the static mockups do not show */ + .ss-h1 { + font: var(--h1); + letter-spacing: var(--h1-track); + } + .ss-h2, + .ss-sec h2 { + font: var(--h2); + letter-spacing: var(--h2-track); + } + /* A button should read as clickable; the browser default cursor does not say that. */ + button:not(:disabled), + summary { + cursor: pointer; + } + button:disabled { + cursor: not-allowed; + } + .ss-btn { + transition: + filter 0.12s, + transform 0.1s ease-out, + box-shadow 0.12s; + } + .ss-btn:active:not(:disabled) { + transform: scale(0.97); + } + /* A playful button stands on a hard shadow, so a press pushes it flat onto the shadow instead. */ + :root[data-theme='playful'] .ss-btn:not(.ghost, .ss-bulk *, .ss-toast *):active:not(:disabled) { + transform: translate(3px, 3px); + box-shadow: none; + } + :root[data-theme='playful'] .ss-btn:disabled { + transform: none; + box-shadow: var(--sh-btn); + } + /* Frameless buttons have nothing to cast a shadow from, and the hover and disabled rules above outrank their box-shadow: none, so without this a lone shadow arc appears under them. */ -:root[data-theme="playful"] :is(.ss-btn.ghost, .ss-bulk .ss-btn, .ss-toast .ss-btn):is(:hover, :disabled) { transform: none; box-shadow: none; } -/* Next to 2px ink frames a bare label does not read as a button, so ghost gets a soft outline here. */ -:root[data-theme="playful"] .ss-btn.ghost { color: var(--ink); border-color: var(--line-soft); } -:root[data-theme="playful"] .ss-btn.ghost:hover:not(:disabled) { background: var(--sunken); border-color: var(--ink-3); } -/* Its outline is what has to line up here, so the pull that lined up the bare icon is undone. */ -:root[data-theme="playful"] .ss-btn.ghost.flush { margin-left: 0; } -.ss-btn:focus-visible, .ss-ib:focus-visible, .ss-nv:focus-visible, .ss-door:focus-visible, .ss-rl:focus-visible, .ss-seg>*:focus-visible, .ss-tabs>*:focus-visible, .ss-menu>:is(a,button):focus-visible, .ss-sw:focus-visible, .ss-r.link:focus-visible, .ss-counts>a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } -.ss-ib { transition: background-color .12s, color .12s; } -.ss-ib:hover:not(:disabled) { background: var(--sel); color: var(--ink); } -.ss-ib:disabled { opacity: .42; } -.ss-nv:not(.on):hover { color: var(--ink); background: color-mix(in srgb, var(--sel) 55%, transparent); } -:root[data-theme="playful"] .ss-nv:not(.on):hover { background: var(--sunken); } -.ss-inp input, .ss-inp textarea { flex: 1 1 0; min-width: 0; height: 100%; background: transparent; border: 0; outline: 0; padding: 0; font: inherit; color: var(--ink); } -.ss-inp input::placeholder, .ss-inp textarea::placeholder { color: var(--ink-3); } -.ss-inp.area textarea { resize: vertical; min-height: 64px; line-height: 1.55; } -.ss-seg>*, .ss-tabs>*, .ss-pager>*, .ss-menu>a, .ss-more { cursor: pointer; } -.ss-seg>*:not(.on):not(:disabled):hover, .ss-tabs>*:not(.on):hover { color: var(--ink); } -.ss-menu>:is(a,button) { width: 100%; text-align: left; } -.ss-menu>:is(a,button):not(.dng):hover { background: var(--sel); color: var(--sel-ink); } -:root[data-theme="playful"] .ss-menu>:is(a,button):not(.dng):hover { background: var(--pa); } -.ss-menu>:is(a,button).dng:hover { background: var(--bad-bg); } -.ss-r.link { cursor: pointer; } -.ss-r.link:hover { background: var(--sunken); } -/* A row whose name is the link: the whole row lights up, as if the row were the link. */ -.ss-rl { cursor: pointer; } -.ss-r:has(>.ss-rl:hover) { background: var(--sunken); } -.ss-counts>:is(a, button) { transition: background-color .12s, transform .12s, box-shadow .12s; } -.ss-counts>a .lbl { font-size: 13px; color: var(--ink-2); } -:root:not([data-theme="playful"]) .ss-counts>a:hover { background: var(--sunken); } -:root:not([data-theme="playful"]) .ss-counts>a:first-child { border-radius: 12px 0 0 12px; } -:root:not([data-theme="playful"]) .ss-counts>a:last-child { border-radius: 0 12px 12px 0; } -@media (hover: hover) and (pointer: fine) { - :root[data-theme="playful"] .ss-counts>a:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--line); } -} -/* A count that filters lights on hover, gives under the press and stays tinted while its filter is on. */ -.ss-counts>button:not(:disabled, [aria-pressed="true"]):hover { background: var(--sunken); } -.ss-counts>button:not(:disabled):active { transform: scale(.97); } -.ss-counts>button[aria-pressed="true"] { background: var(--accent-bg); } -:root:not([data-theme="playful"]) .ss-counts>button:first-child { border-radius: 12px 0 0 12px; } -:root:not([data-theme="playful"]) .ss-counts>button:last-child { border-radius: 0 12px 12px 0; } -.ss-sw { transition: background-color .15s; } -/* The knob slides rather than jumps: on moves it the track's inner width minus the knob's, mixed half + :root[data-theme='playful'] + :is(.ss-btn.ghost, .ss-bulk .ss-btn, .ss-toast .ss-btn):is(:hover, :disabled) { + transform: none; + box-shadow: none; + } + /* Next to 2px ink frames a bare label does not read as a button, so ghost gets a soft outline here. */ + :root[data-theme='playful'] .ss-btn.ghost { + color: var(--ink); + border-color: var(--line-soft); + } + :root[data-theme='playful'] .ss-btn.ghost:hover:not(:disabled) { + background: var(--sunken); + border-color: var(--ink-3); + } + /* Its outline is what has to line up here, so the pull that lined up the bare icon is undone. */ + :root[data-theme='playful'] .ss-btn.ghost.flush { + margin-left: 0; + } + .ss-btn:focus-visible, + .ss-ib:focus-visible, + .ss-nv:focus-visible, + .ss-door:focus-visible, + .ss-rl:focus-visible, + .ss-seg > *:focus-visible, + .ss-tabs > *:focus-visible, + .ss-menu > :is(a, button):focus-visible, + .ss-sw:focus-visible, + .ss-r.link:focus-visible, + .ss-counts > a:focus-visible { + outline: 2px solid var(--accent); + outline-offset: 2px; + } + .ss-ib { + transition: + background-color 0.12s, + color 0.12s; + } + .ss-ib:hover:not(:disabled) { + background: var(--sel); + color: var(--ink); + } + .ss-ib:disabled { + opacity: 0.42; + } + .ss-nv:not(.on):hover { + color: var(--ink); + background: color-mix(in srgb, var(--sel) 55%, transparent); + } + :root[data-theme='playful'] .ss-nv:not(.on):hover { + background: var(--sunken); + } + .ss-inp input, + .ss-inp textarea { + flex: 1 1 0; + min-width: 0; + height: 100%; + background: transparent; + border: 0; + outline: 0; + padding: 0; + font: inherit; + color: var(--ink); + } + .ss-inp input::placeholder, + .ss-inp textarea::placeholder { + color: var(--ink-3); + } + .ss-inp.area textarea { + resize: vertical; + min-height: 64px; + line-height: 1.55; + } + .ss-seg > *, + .ss-tabs > *, + .ss-pager > *, + .ss-menu > a, + .ss-more { + cursor: pointer; + } + .ss-seg > *:not(.on):not(:disabled):hover, + .ss-tabs > *:not(.on):hover { + color: var(--ink); + } + .ss-menu > :is(a, button) { + width: 100%; + text-align: left; + } + .ss-menu > :is(a, button):not(.dng):hover { + background: var(--sel); + color: var(--sel-ink); + } + :root[data-theme='playful'] .ss-menu > :is(a, button):not(.dng):hover { + background: var(--pa); + } + .ss-menu > :is(a, button).dng:hover { + background: var(--bad-bg); + } + .ss-r.link { + cursor: pointer; + } + .ss-r.link:hover { + background: var(--sunken); + } + /* A row whose name is the link: the whole row lights up, as if the row were the link. */ + .ss-rl { + cursor: pointer; + } + .ss-r:has(> .ss-rl:hover) { + background: var(--sunken); + } + .ss-counts > :is(a, button) { + transition: + background-color 0.12s, + transform 0.12s, + box-shadow 0.12s; + } + .ss-counts > a .lbl { + font-size: 13px; + color: var(--ink-2); + } + :root:not([data-theme='playful']) .ss-counts > a:hover { + background: var(--sunken); + } + :root:not([data-theme='playful']) .ss-counts > a:first-child { + border-radius: 12px 0 0 12px; + } + :root:not([data-theme='playful']) .ss-counts > a:last-child { + border-radius: 0 12px 12px 0; + } + @media (hover: hover) and (pointer: fine) { + :root[data-theme='playful'] .ss-counts > a:hover { + transform: translate(-1px, -1px); + box-shadow: 5px 5px 0 var(--line); + } + } + /* A count that filters lights on hover, gives under the press and stays tinted while its filter is on. */ + .ss-counts > button:not(:disabled, [aria-pressed='true']):hover { + background: var(--sunken); + } + .ss-counts > button:not(:disabled):active { + transform: scale(0.97); + } + .ss-counts > button[aria-pressed='true'] { + background: var(--accent-bg); + } + :root:not([data-theme='playful']) .ss-counts > button:first-child { + border-radius: 12px 0 0 12px; + } + :root:not([data-theme='playful']) .ss-counts > button:last-child { + border-radius: 0 12px 12px 0; + } + .ss-sw { + transition: background-color 0.15s; + } + /* The knob slides rather than jumps: on moves it the track's inner width minus the knob's, mixed half that. Mixed centers by transform too, so a change between any two states is one slide. */ -.ss-sw i { transition: transform .37s var(--spring), background-color .15s; } -@media (prefers-reduced-motion: reduce) { .ss-sw i { transition: background-color .15s; } } -.ss-sw.on i { transform: translateX(14px); } -:root[data-theme="playful"] .ss-sw.on i { transform: translateX(16px); } -.ss-sw.mix i { transform: translateX(7px); } -:root[data-theme="playful"] .ss-sw.mix i { transform: translateX(8px); } -.ss-sw:disabled { opacity: .42; } -.ss-chk-input:focus-visible + .ss-chk { outline: 2px solid var(--accent); outline-offset: 2px; } -.ss-more { font-size: 13px; font-weight: 500; color: var(--accent); } -.ss-more:hover { text-decoration: underline; text-underline-offset: 3px; } -.ss-hand { font: 400 17px/1.15 var(--fh); color: var(--ink-2); } -.ss-pinnote { transition: transform .12s; } -a.ss-pinnote:hover { transform: translate(-1px, -1px); } -/* The floating selection bar rises from the bottom edge like a material arriving: blur 6 -> 0 and + .ss-sw i { + transition: + transform 0.37s var(--spring), + background-color 0.15s; + } + @media (prefers-reduced-motion: reduce) { + .ss-sw i { + transition: background-color 0.15s; + } + } + .ss-sw.on i { + transform: translateX(14px); + } + :root[data-theme='playful'] .ss-sw.on i { + transform: translateX(16px); + } + .ss-sw.mix i { + transform: translateX(7px); + } + :root[data-theme='playful'] .ss-sw.mix i { + transform: translateX(8px); + } + .ss-sw:disabled { + opacity: 0.42; + } + .ss-chk-input:focus-visible + .ss-chk { + outline: 2px solid var(--accent); + outline-offset: 2px; + } + .ss-more { + font-size: 13px; + font-weight: 500; + color: var(--accent); + } + .ss-more:hover { + text-decoration: underline; + text-underline-offset: 3px; + } + .ss-hand { + font: 400 17px/1.15 var(--fh); + color: var(--ink-2); + } + .ss-pinnote { + transition: transform 0.12s; + } + a.ss-pinnote:hover { + transform: translate(-1px, -1px); + } + /* The floating selection bar rises from the bottom edge like a material arriving: blur 6 -> 0 and scale .97 -> 1 with the rise. It leaves the same way (bulkGhost in lib/exitGhost.ts). */ -.ss-bulk:not(.static) { transition: transform .49s var(--spring), filter .49s var(--spring), opacity .2s ease-out; } -@starting-style { .ss-bulk:not(.static) { opacity: 0; transform: translateX(-50%) translateY(100%) scale(.97); filter: blur(6px); } } -@media (prefers-reduced-motion: reduce) { - .ss-bulk:not(.static) { transition: opacity .15s ease-out; } - @starting-style { .ss-bulk:not(.static) { transform: translateX(-50%); filter: none; } } -} + .ss-bulk:not(.static) { + transition: + transform 0.49s var(--spring), + filter 0.49s var(--spring), + opacity 0.2s ease-out; + } + @starting-style { + .ss-bulk:not(.static) { + opacity: 0; + transform: translateX(-50%) translateY(100%) scale(0.97); + filter: blur(6px); + } + } + @media (prefers-reduced-motion: reduce) { + .ss-bulk:not(.static) { + transition: opacity 0.15s ease-out; + } + @starting-style { + .ss-bulk:not(.static) { + transform: translateX(-50%); + filter: none; + } + } + } -/* The hint shown while the shortcut modifier is held. */ -.ss-hud { display: inline-flex; align-items: center; gap: 16px; padding: 10px 18px; background: var(--surface); border: var(--frame); border-radius: 14px; box-shadow: var(--sh-float); font-size: 13px; color: var(--ink-2); } + /* The hint shown while the shortcut modifier is held. */ + .ss-hud { + display: inline-flex; + align-items: center; + gap: 16px; + padding: 10px 18px; + background: var(--surface); + border: var(--frame); + border-radius: 14px; + box-shadow: var(--sh-float); + font-size: 13px; + color: var(--ink-2); + } -/* Clean materials: only layers that float over scrolling content are frosted glass (menus, the + /* Clean materials: only layers that float over scrolling content are frosted glass (menus, the shortcut hint, the sticky toolbar); the page, cards and sidebar stay solid. The toolbar paints its glass on a ::before so it is not a backdrop root: a menu opened inside it still blurs the page. */ -:root:not([data-theme="playful"]) .ss-stickbar { background: none; } -/* Keep the glass continuous through the lower edge so scrolled rows stay blurred. */ -:root:not([data-theme="playful"]) .ss-stickbar.stuck { box-shadow: none; } -:root:not([data-theme="playful"]) .ss-stickbar::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--glass-bar); backdrop-filter: var(--mat); -webkit-backdrop-filter: var(--mat); } -:root:not([data-theme="playful"]) :is(.ss-menu, .ss-hud) { background: var(--glass-menu); border-color: transparent; backdrop-filter: var(--mat-menu); -webkit-backdrop-filter: var(--mat-menu); } -:root:not([data-theme="playful"]) .ss-menu { padding: 6px; border-radius: 14px; } -/* Clean segmented controls: the selected surface is one pill that slides between segments (segSlide). */ -:root:not([data-theme="playful"]) .ss-seg[data-slide] { position: relative; isolation: isolate; } -:root:not([data-theme="playful"]) .ss-seg[data-slide]::before { content: ''; position: absolute; z-index: -1; top: 0; left: 0; width: var(--seg-w); height: var(--seg-h); transform: translate(var(--seg-x), var(--seg-y)); border-radius: 7px; background: var(--surface); box-shadow: 0 1px 2px rgba(20,19,18,.12); } -:root:not([data-theme="playful"]) .ss-seg[data-slide="move"]::before { transition: transform .43s var(--spring), width .43s var(--spring), height .43s var(--spring); } -:root:not([data-theme="playful"]) .ss-seg[data-slide]>.on { background: transparent; box-shadow: none; } -@media (prefers-reduced-motion: reduce) { :root:not([data-theme="playful"]) .ss-seg[data-slide="move"]::before { transition: none; } } - + :root:not([data-theme='playful']) .ss-stickbar { + background: none; + } + /* Keep the glass continuous through the lower edge so scrolled rows stay blurred. */ + :root:not([data-theme='playful']) .ss-stickbar.stuck { + box-shadow: none; + } + :root:not([data-theme='playful']) .ss-stickbar::before { + content: ''; + position: absolute; + inset: 0; + z-index: -1; + background: var(--glass-bar); + backdrop-filter: var(--mat); + -webkit-backdrop-filter: var(--mat); + } + :root:not([data-theme='playful']) :is(.ss-menu, .ss-hud) { + background: var(--glass-menu); + border-color: transparent; + backdrop-filter: var(--mat-menu); + -webkit-backdrop-filter: var(--mat-menu); + } + :root:not([data-theme='playful']) .ss-menu { + padding: 6px; + border-radius: 14px; + } + /* Clean segmented controls: the selected surface is one pill that slides between segments (segSlide). */ + :root:not([data-theme='playful']) .ss-seg[data-slide] { + position: relative; + isolation: isolate; + } + :root:not([data-theme='playful']) .ss-seg[data-slide]::before { + content: ''; + position: absolute; + z-index: -1; + top: 0; + left: 0; + width: var(--seg-w); + height: var(--seg-h); + transform: translate(var(--seg-x), var(--seg-y)); + border-radius: 7px; + background: var(--surface); + box-shadow: 0 1px 2px rgba(20, 19, 18, 0.12); + } + :root:not([data-theme='playful']) .ss-seg[data-slide='move']::before { + transition: + transform 0.43s var(--spring), + width 0.43s var(--spring), + height 0.43s var(--spring); + } + :root:not([data-theme='playful']) .ss-seg[data-slide] > .on { + background: transparent; + box-shadow: none; + } + @media (prefers-reduced-motion: reduce) { + :root:not([data-theme='playful']) .ss-seg[data-slide='move']::before { + transition: none; + } + } } diff --git a/ui/src/components/AgentIcon.tsx b/ui/src/components/AgentIcon.tsx index 6567d9242..b3bdf32db 100644 --- a/ui/src/components/AgentIcon.tsx +++ b/ui/src/components/AgentIcon.tsx @@ -140,13 +140,43 @@ export default function AgentIcon({ target, size = 16 }: { target: string; size? // universal is the cross-client ~/.agents/skills convention: the Agent Skills hexagon in a // multi-color gradient so the shared path stands apart from single-vendor marks. if (target === 'universal') { - return