kaizen-agent 1.86.0 → 1.87.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/cli/annotate-proxy.ts +6 -3
- package/cli/build-web.ts +46 -16
- package/cli/dev.ts +67 -0
- package/cli/docs.ts +1 -1
- package/cli/notes.ts +9 -3
- package/cli/ports.ts +121 -0
- package/cli/settings.ts +16 -17
- package/cli/state.ts +15 -29
- package/cli/task-service.ts +44 -14
- package/cli/tasks.ts +1 -1
- package/cli/term-image.ts +18 -0
- package/cli/ui-audit.allow.json +0 -1
- package/cli/ui-audit.ts +12 -12
- package/cli/web.ts +182 -58
- package/package.json +21 -4
- package/skills/kaizen/spec.md +10 -3
- package/tsconfig.json +16 -0
- package/web/README.md +105 -0
- package/web/{annotate.js → annotate/annotate.ts} +51 -50
- package/web/boot/boot.ts +7 -0
- package/web/components/annotate/annotate-bar.tsx +78 -0
- package/web/components/annotate/annotate-panel.tsx +20 -0
- package/web/components/annotate/annotate-settings.tsx +60 -0
- package/web/components/annotate/index.ts +1 -0
- package/web/components/annotate/notes-list.tsx +75 -0
- package/web/components/board/board-card.tsx +177 -0
- package/web/components/board/board-column.tsx +212 -0
- package/web/components/board/board-mode-switch.tsx +21 -0
- package/web/components/board/board-popups.tsx +45 -0
- package/web/components/board/card-footer.tsx +58 -0
- package/web/components/board/card-form.tsx +168 -0
- package/web/components/board/card-kids.tsx +53 -0
- package/web/components/board/clear-menu.tsx +36 -0
- package/web/components/board/filter-box.tsx +42 -0
- package/web/components/board/index.ts +6 -0
- package/web/components/board/run-form.tsx +129 -0
- package/web/components/board/severity-menu.tsx +44 -0
- package/web/components/board/status-strip.tsx +75 -0
- package/web/components/board/task-form.tsx +140 -0
- package/web/components/board/ws-card.tsx +38 -0
- package/web/components/context/context-panel.tsx +244 -0
- package/web/components/context/index.ts +1 -0
- package/web/components/decision/decision-bar.tsx +422 -0
- package/web/components/decision/index.ts +1 -0
- package/web/components/decision/inline-form.tsx +47 -0
- package/web/components/decision/plan-answers-form.tsx +78 -0
- package/web/components/decision/revise-form.tsx +65 -0
- package/web/components/decision/task-reply-form.tsx +48 -0
- package/web/components/footer/foot-bar.tsx +67 -0
- package/web/components/footer/index.ts +1 -0
- package/web/components/git/git-ask.tsx +88 -0
- package/web/components/git/git-commits.tsx +53 -0
- package/web/components/git/git-confirm.tsx +78 -0
- package/web/components/git/git-counts.tsx +10 -0
- package/web/components/git/git-files.tsx +113 -0
- package/web/components/git/git-head.tsx +70 -0
- package/web/components/git/git-icon.tsx +25 -0
- package/web/components/git/git-message.tsx +44 -0
- package/web/components/git/git-split.tsx +64 -0
- package/web/components/git/git-tab.tsx +55 -0
- package/web/components/git/index.ts +1 -0
- package/web/components/home/chat-list.tsx +57 -0
- package/web/components/home/home-composer.tsx +169 -0
- package/web/components/home/home-message.tsx +120 -0
- package/web/components/home/home-window.tsx +253 -0
- package/web/components/home/home-ws-add.tsx +47 -0
- package/web/components/home/index.ts +6 -0
- package/web/components/home/onboarding-dialog.tsx +371 -0
- package/web/components/icebox/board-chip.tsx +27 -0
- package/web/components/icebox/board-menu.tsx +41 -0
- package/web/components/icebox/bulk-bar.tsx +41 -0
- package/web/components/icebox/capture-box.tsx +155 -0
- package/web/components/icebox/choice-menu.tsx +39 -0
- package/web/components/icebox/collection-dialog.tsx +60 -0
- package/web/components/icebox/favicon.tsx +39 -0
- package/web/components/icebox/index.ts +10 -0
- package/web/components/icebox/kind-label.tsx +22 -0
- package/web/components/icebox/kind-menu.tsx +20 -0
- package/web/components/icebox/promote-form.tsx +93 -0
- package/web/components/icebox/reply-box.tsx +88 -0
- package/web/components/icebox/request-actions.tsx +141 -0
- package/web/components/icebox/request-badges.tsx +13 -0
- package/web/components/icebox/request-card.tsx +99 -0
- package/web/components/icebox/request-detail.tsx +43 -0
- package/web/components/icebox/request-images.tsx +33 -0
- package/web/components/icebox/request-phone-row.tsx +181 -0
- package/web/components/icebox/request-row.tsx +120 -0
- package/web/components/icebox/service-chip.tsx +58 -0
- package/web/components/icebox/snooze-menu.tsx +83 -0
- package/web/components/icebox/source-card.tsx +225 -0
- package/web/components/icebox/source-drawer.tsx +112 -0
- package/web/components/icebox/source-form.tsx +147 -0
- package/web/components/icebox/swipe-deck.tsx +242 -0
- package/web/components/layout/index.ts +1 -0
- package/web/components/layout/page-frame.tsx +44 -0
- package/web/components/markdown/index.ts +1 -0
- package/web/components/markdown/markdown.tsx +156 -0
- package/web/components/notebook/editor-pane.tsx +23 -0
- package/web/components/notebook/index.ts +5 -0
- package/web/components/notebook/note-body.tsx +172 -0
- package/web/components/notebook/note-tree.tsx +99 -0
- package/web/components/notebook/notes-head.tsx +37 -0
- package/web/components/notebook/notes-side.tsx +46 -0
- package/web/components/notes/index.ts +1 -0
- package/web/components/notes/note-composer.tsx +90 -0
- package/web/components/notes/notes-chat.tsx +58 -0
- package/web/components/panes/browser-pane.tsx +281 -0
- package/web/components/panes/index.ts +3 -0
- package/web/components/panes/preview-pane.tsx +91 -0
- package/web/components/panes/terminal-pane.tsx +52 -0
- package/web/components/phone/haptic.tsx +29 -0
- package/web/components/phone/index.ts +6 -0
- package/web/components/phone/phone-card.tsx +118 -0
- package/web/components/phone/phone-home.tsx +304 -0
- package/web/components/phone/phone-sheets.tsx +103 -0
- package/web/components/phone/qr-code.tsx +6 -0
- package/web/components/phone/usage-chips.tsx +85 -0
- package/web/components/phone/whatsapp-card.tsx +85 -0
- package/web/components/project/add-project-dialog.tsx +435 -0
- package/web/components/project/index.ts +3 -0
- package/web/components/project/project-bar.tsx +101 -0
- package/web/components/project/ws-menu.tsx +21 -0
- package/web/components/rail/agent-chips.tsx +110 -0
- package/web/components/rail/index.ts +4 -0
- package/web/components/rail/rail-filter.tsx +118 -0
- package/web/components/rail/rail-list.tsx +259 -0
- package/web/components/rail/source-marks.tsx +21 -0
- package/web/components/resources/index.ts +1 -0
- package/web/components/resources/resources-popup.tsx +490 -0
- package/web/components/run/doc-body.tsx +123 -0
- package/web/components/run/file-viewer.tsx +53 -0
- package/web/components/run/fix-form.tsx +88 -0
- package/web/components/run/index.ts +16 -0
- package/web/components/run/inline-md.tsx +30 -0
- package/web/components/run/key-hint.tsx +29 -0
- package/web/components/run/pane-gutter.tsx +52 -0
- package/web/components/run/pane-header.tsx +35 -0
- package/web/components/run/pane.tsx +140 -0
- package/web/components/run/panel-grip.tsx +49 -0
- package/web/components/run/panel-head.tsx +56 -0
- package/web/components/run/panel-tabs.tsx +35 -0
- package/web/components/run/phase-steps.tsx +37 -0
- package/web/components/run/project-notes.tsx +49 -0
- package/web/components/run/run-add-menu.tsx +80 -0
- package/web/components/run/run-bar.tsx +40 -0
- package/web/components/run/run-empty.tsx +10 -0
- package/web/components/run/run-footer.tsx +53 -0
- package/web/components/run/run-history.tsx +24 -0
- package/web/components/run/run-panes.tsx +78 -0
- package/web/components/run/run-picker.tsx +51 -0
- package/web/components/run/run-progress.tsx +30 -0
- package/web/components/run/run-tabs.tsx +147 -0
- package/web/components/run/run-wait.tsx +18 -0
- package/web/components/search/index.ts +1 -0
- package/web/components/search/search-palette.tsx +159 -0
- package/web/components/settings/account-rows.tsx +128 -0
- package/web/components/settings/agent-rows.tsx +249 -0
- package/web/components/settings/automation-rows.tsx +211 -0
- package/web/components/settings/browser-row.tsx +111 -0
- package/web/components/settings/cleanup-row.tsx +32 -0
- package/web/components/settings/commit-input.tsx +39 -0
- package/web/components/settings/index.ts +4 -0
- package/web/components/settings/integration-row.tsx +158 -0
- package/web/components/settings/mic-row.tsx +48 -0
- package/web/components/settings/orchestration-flow.tsx +87 -0
- package/web/components/settings/setting-row.tsx +131 -0
- package/web/components/settings/settings-item.tsx +78 -0
- package/web/components/settings/settings-loading.tsx +41 -0
- package/web/components/settings/settings-nav.tsx +119 -0
- package/web/components/settings/settings-scope.tsx +66 -0
- package/web/components/settings/settings-section.tsx +33 -0
- package/web/components/settings/skill-card.tsx +131 -0
- package/web/components/settings/stepper.tsx +74 -0
- package/web/components/settings/update-bar.tsx +167 -0
- package/web/components/shared/action-menu.tsx +76 -0
- package/web/components/shared/ask-host.tsx +18 -0
- package/web/components/shared/attach-button.tsx +23 -0
- package/web/components/shared/chip.tsx +19 -0
- package/web/components/shared/client-mark.tsx +15 -0
- package/web/components/shared/confirm-dialog.tsx +35 -0
- package/web/components/shared/empty-state.tsx +29 -0
- package/web/components/shared/field.tsx +77 -0
- package/web/components/shared/filter-popover.tsx +29 -0
- package/web/components/shared/form-frame.tsx +19 -0
- package/web/components/shared/icon-button.tsx +50 -0
- package/web/components/shared/index.ts +18 -0
- package/web/components/shared/mic-button.tsx +75 -0
- package/web/components/shared/pager.tsx +49 -0
- package/web/components/shared/picker.tsx +108 -0
- package/web/components/shared/project-mark.tsx +38 -0
- package/web/components/shared/segmented.tsx +43 -0
- package/web/components/shared/state-dot.tsx +4 -0
- package/web/components/shared/status-mark.tsx +26 -0
- package/web/components/shell/index.ts +3 -0
- package/web/components/shell/rail.tsx +259 -0
- package/web/components/shell/sprite.tsx +124 -0
- package/web/components/shell/wordmark.tsx +13 -0
- package/web/components/task/artifact-view.tsx +148 -0
- package/web/components/task/chat-bubble.tsx +43 -0
- package/web/components/task/filter-menu.tsx +38 -0
- package/web/components/task/index.ts +7 -0
- package/web/components/task/result-checks.tsx +34 -0
- package/web/components/task/result-view.tsx +103 -0
- package/web/components/task/status-badge.tsx +24 -0
- package/web/components/task/task-row.tsx +34 -0
- package/web/components/task/typing-dots.tsx +16 -0
- package/web/components/terminal/index.ts +3 -0
- package/web/components/terminal/terminal-bar.tsx +91 -0
- package/web/components/terminal/terminal-grid.tsx +149 -0
- package/web/components/terminal/terminal-modes.tsx +23 -0
- package/web/components/terminal/terminal-tile.tsx +139 -0
- package/web/dist/annotate.js +24 -0
- package/web/dist/board.css +718 -0
- package/web/dist/board.js +115 -0
- package/web/dist/boot.js +2 -0
- package/web/dist/notebook.css +319 -0
- package/web/dist/notebook.js +89 -0
- package/web/dist/popup.css +41 -0
- package/web/dist/popup.js +13 -0
- package/web/{term.js → dist/term.js} +48 -48
- package/web/dist/ui.css +3 -0
- package/web/dist/video.js +108 -0
- package/web/html/board.html +17 -0
- package/web/html/notes.html +14 -0
- package/web/html/popup.html +13 -0
- package/web/{video.html → html/video.html} +14 -15
- package/web/lib/annotate/index.ts +2 -0
- package/web/lib/annotate/notes.ts +105 -0
- package/web/lib/annotate/page.ts +121 -0
- package/web/lib/annotate/rules.ts +37 -0
- package/web/lib/annotate/session.ts +336 -0
- package/web/lib/board/board-actions.ts +119 -0
- package/web/lib/board/board-open.ts +12 -0
- package/web/lib/board/board-store.ts +159 -0
- package/web/lib/board/filter-box.ts +7 -0
- package/web/lib/board/index.ts +10 -0
- package/web/lib/board/nav.ts +29 -0
- package/web/lib/board/on-state.ts +90 -0
- package/web/lib/board/popups.ts +22 -0
- package/web/lib/board/snapshot.ts +105 -0
- package/web/lib/board/strip.ts +43 -0
- package/web/{board → lib/board}/ws-board.ts +1 -1
- package/web/lib/context/context-rules.ts +27 -0
- package/web/lib/context/context-store.ts +95 -0
- package/web/lib/context/feed.ts +28 -0
- package/web/lib/context/index.ts +3 -0
- package/web/lib/core/api.ts +86 -0
- package/web/lib/core/ask.ts +24 -0
- package/web/lib/core/board.ts +290 -0
- package/web/lib/core/brief.ts +31 -0
- package/web/lib/core/format.ts +8 -0
- package/web/lib/core/host.ts +107 -0
- package/web/lib/core/index.ts +16 -0
- package/web/{board → lib/core}/labels.ts +6 -5
- package/web/lib/core/layers.ts +7 -0
- package/web/lib/core/leave.ts +7 -0
- package/web/lib/core/motion.ts +10 -0
- package/web/{board/toast.ts → lib/core/notices.ts} +2 -20
- package/web/lib/core/notifier.ts +15 -0
- package/web/lib/core/store.ts +39 -0
- package/web/lib/core/term-handle.ts +8 -0
- package/web/lib/core/toast.ts +29 -0
- package/web/lib/core/utils.ts +15 -0
- package/web/lib/decision/index.ts +1 -0
- package/web/lib/decision/plan-questions.ts +39 -0
- package/web/lib/dictation/chunks.ts +93 -0
- package/web/lib/dictation/dictation-store.ts +22 -0
- package/web/lib/dictation/engine.ts +265 -0
- package/web/lib/dictation/index.ts +5 -0
- package/web/lib/dictation/mic.ts +42 -0
- package/web/lib/dictation/terminal-dictation.ts +50 -0
- package/web/lib/footer/footer-rules.ts +13 -0
- package/web/lib/footer/footer-store.ts +42 -0
- package/web/lib/footer/index.ts +2 -0
- package/web/lib/git/git-actions.ts +110 -0
- package/web/lib/git/git-panel.ts +43 -0
- package/web/lib/git/git-store.ts +47 -0
- package/web/lib/git/git.ts +170 -0
- package/web/lib/git/index.ts +4 -0
- package/web/lib/home/home-engine.ts +16 -0
- package/web/lib/home/home-events.ts +9 -0
- package/web/lib/home/home-store.ts +247 -0
- package/web/lib/home/home-window.ts +193 -0
- package/web/lib/home/home.ts +85 -0
- package/web/lib/home/index.ts +7 -0
- package/web/lib/home/onboarding.ts +199 -0
- package/web/lib/home/use-float-drag.ts +62 -0
- package/web/lib/icebox/icebox-actions.ts +518 -0
- package/web/lib/icebox/icebox-store.ts +112 -0
- package/web/lib/icebox/icebox-view.ts +48 -0
- package/web/lib/icebox/icebox.ts +273 -0
- package/web/lib/icebox/index.ts +8 -0
- package/web/lib/icebox/use-card-drag.ts +82 -0
- package/web/lib/icebox/use-ice-keys.ts +75 -0
- package/web/lib/icebox/use-icebox.ts +41 -0
- package/web/lib/icebox/use-row-swipe.ts +107 -0
- package/web/lib/markdown/index.ts +1 -0
- package/web/lib/markdown/markdown.ts +136 -0
- package/web/lib/notebook/autosave.ts +131 -0
- package/web/lib/notebook/deal.ts +58 -0
- package/web/lib/notebook/engine-complete.ts +128 -0
- package/web/lib/notebook/engine-preview.ts +287 -0
- package/web/lib/notebook/engine-types.ts +26 -0
- package/web/lib/notebook/engine-widgets.ts +218 -0
- package/web/lib/notebook/engine.ts +74 -0
- package/web/lib/notebook/index.ts +9 -0
- package/web/lib/notebook/kit-loader.ts +16 -0
- package/web/lib/notebook/kit.ts +12 -0
- package/web/{notes-lib.ts → lib/notebook/text.ts} +11 -10
- package/web/lib/notebook/vault-actions.ts +239 -0
- package/web/lib/notebook/vault-rules.ts +74 -0
- package/web/lib/notebook/vault-session.ts +73 -0
- package/web/lib/notebook/vault-store.ts +63 -0
- package/web/lib/notes/index.ts +4 -0
- package/web/lib/notes/md-html.ts +115 -0
- package/web/lib/notes/notes-actions.ts +32 -0
- package/web/lib/notes/notes-store.ts +22 -0
- package/web/lib/notes/notes.ts +58 -0
- package/web/{board → lib/notes}/rich.ts +1 -2
- package/web/lib/phone/index.ts +7 -0
- package/web/lib/phone/phone-actions.ts +77 -0
- package/web/lib/phone/phone-home.ts +102 -0
- package/web/lib/phone/phone-setup.ts +59 -0
- package/web/lib/phone/phone-sheet.ts +25 -0
- package/web/lib/phone/phone-store.ts +32 -0
- package/web/lib/phone/sheet-swipe.ts +55 -0
- package/web/lib/phone/use-phone-setup.ts +89 -0
- package/web/lib/project/add-project.ts +37 -0
- package/web/lib/project/branch.ts +14 -0
- package/web/lib/project/index.ts +5 -0
- package/web/lib/project/project-bar.ts +76 -0
- package/web/lib/project/project-pick.ts +36 -0
- package/web/lib/project/ws-menu.ts +8 -0
- package/web/lib/rail/agents.ts +63 -0
- package/web/lib/rail/card-links.ts +20 -0
- package/web/lib/rail/index.ts +7 -0
- package/web/lib/rail/rail-actions.ts +74 -0
- package/web/lib/rail/rail-boot.ts +99 -0
- package/web/lib/rail/rail-store.ts +85 -0
- package/web/lib/rail/rules.ts +241 -0
- package/web/lib/rail/source-marks.ts +17 -0
- package/web/lib/rail/use-rank-drag.ts +108 -0
- package/web/lib/resources/index.ts +3 -0
- package/web/lib/resources/resources-actions.ts +59 -0
- package/web/lib/resources/resources-store.ts +48 -0
- package/web/lib/resources/rules.ts +56 -0
- package/web/lib/router/index.ts +3 -0
- package/web/lib/router/route-rules.ts +96 -0
- package/web/lib/router/route-store.ts +115 -0
- package/web/lib/router/use-route-classes.ts +15 -0
- package/web/lib/run/browser.ts +53 -0
- package/web/lib/run/card-terminal.ts +32 -0
- package/web/lib/run/doc.ts +42 -0
- package/web/lib/run/grip.ts +8 -0
- package/web/lib/run/index.ts +19 -0
- package/web/lib/run/kept.ts +58 -0
- package/web/lib/run/layout-store.ts +156 -0
- package/web/lib/run/layout.ts +195 -0
- package/web/lib/run/panel-actions.ts +104 -0
- package/web/lib/run/panel-derive.ts +148 -0
- package/web/lib/run/panel-store.ts +125 -0
- package/web/lib/run/preview.ts +105 -0
- package/web/lib/run/run-actions.ts +118 -0
- package/web/lib/run/run-view-store.ts +134 -0
- package/web/lib/run/term-loader.ts +19 -0
- package/web/lib/run/use-panel-run.ts +125 -0
- package/web/lib/run/use-run-lifecycle.ts +70 -0
- package/web/lib/run/viewer.ts +12 -0
- package/web/lib/run/workspace.ts +281 -0
- package/web/lib/run/ws-actions.ts +293 -0
- package/web/lib/run/ws-derive.ts +50 -0
- package/web/lib/run/ws-draw.ts +102 -0
- package/web/lib/run/ws-store.ts +21 -0
- package/web/lib/run/ws-tabs.ts +125 -0
- package/web/lib/search/index.ts +3 -0
- package/web/lib/search/search-match.ts +48 -0
- package/web/lib/search/search-rows.ts +228 -0
- package/web/lib/search/search.ts +30 -0
- package/web/lib/search/use-search-rows.ts +22 -0
- package/web/lib/server/attention.ts +29 -0
- package/web/lib/server/index.ts +6 -0
- package/web/lib/server/poll-rules.ts +57 -0
- package/web/lib/server/poller.ts +210 -0
- package/web/lib/server/server-store.ts +39 -0
- package/web/lib/server/types.ts +31 -0
- package/web/lib/server/use-server.ts +19 -0
- package/web/lib/settings/agent-favicons.ts +14 -0
- package/web/lib/settings/index.ts +7 -0
- package/web/lib/settings/panel-settings.ts +29 -0
- package/web/lib/settings/settings-actions.ts +357 -0
- package/web/lib/settings/settings-store.ts +114 -0
- package/web/lib/settings/settings.ts +413 -0
- package/web/lib/settings/skill-icons.ts +24 -0
- package/web/lib/settings/update.ts +70 -0
- package/web/lib/shared/data-urls.ts +32 -0
- package/web/lib/shared/index.ts +4 -0
- package/web/lib/shared/use-draft.ts +38 -0
- package/web/lib/shared/use-narrow.ts +11 -0
- package/web/lib/shared/use-pager.ts +24 -0
- package/web/lib/shell/appearance.ts +97 -0
- package/web/lib/shell/help-store.ts +4 -0
- package/web/lib/shell/index.ts +4 -0
- package/web/lib/shell/shell-store.ts +23 -0
- package/web/lib/shell/stored-look.ts +47 -0
- package/web/lib/task/index.ts +7 -0
- package/web/lib/task/task-results.ts +92 -0
- package/web/lib/task/tasks.ts +132 -0
- package/web/lib/task/use-live-frame.ts +85 -0
- package/web/lib/task/use-saved-text.ts +25 -0
- package/web/lib/task/use-task.ts +161 -0
- package/web/lib/task/use-tasks.ts +50 -0
- package/web/{board → lib/task}/zoom.ts +25 -12
- package/web/lib/terminal/hidden-badge.ts +15 -0
- package/web/lib/terminal/index.ts +8 -0
- package/web/lib/terminal/layout.ts +138 -0
- package/web/{term-font.ts → lib/terminal/term-font.ts} +3 -2
- package/web/lib/terminal/terminal-store.ts +65 -0
- package/web/lib/terminal/terms-feed.ts +37 -0
- package/web/lib/terminal/use-arranged.ts +15 -0
- package/web/lib/terminal/use-terminal-keys.ts +37 -0
- package/web/lib/url/index.ts +1 -0
- package/web/lib/url/safe-url.ts +9 -0
- package/web/notebook/notebook.ts +27 -0
- package/web/notebook/notes-lib.ts +3 -0
- package/web/pages/board/App.tsx +76 -0
- package/web/pages/board/header.tsx +83 -0
- package/web/pages/board/help.tsx +59 -0
- package/web/pages/board/host-bridge.ts +94 -0
- package/web/pages/board/host.tsx +19 -0
- package/web/pages/board/keys.ts +112 -0
- package/web/pages/board/live.ts +39 -0
- package/web/pages/board/main.ts +32 -0
- package/web/pages/board/pages.tsx +86 -0
- package/web/pages/board/panel.tsx +157 -0
- package/web/pages/board/portal.tsx +39 -0
- package/web/pages/board/use-boot.ts +13 -0
- package/web/pages/board/views.ts +63 -0
- package/web/pages/board-page.tsx +62 -0
- package/web/pages/home-page.tsx +127 -0
- package/web/pages/icebox-page.tsx +440 -0
- package/web/pages/notebook/App.tsx +35 -0
- package/web/pages/notebook-page.tsx +50 -0
- package/web/pages/popup/App.tsx +207 -0
- package/web/pages/settings-page.tsx +111 -0
- package/web/pages/task-page.tsx +383 -0
- package/web/pages/tasks-page.tsx +151 -0
- package/web/pages/terminal-page.tsx +15 -0
- package/web/popup/popup.ts +7 -0
- package/web/{term.ts → term/term.ts} +48 -20
- package/web/ui/alert-dialog.tsx +39 -0
- package/web/ui/badge.tsx +20 -0
- package/web/ui/button.tsx +37 -0
- package/web/ui/checkbox.tsx +20 -0
- package/web/ui/command.tsx +41 -0
- package/web/ui/dialog.tsx +28 -0
- package/web/ui/dropdown-menu.tsx +54 -0
- package/web/ui/icon.tsx +17 -0
- package/web/ui/index.ts +21 -0
- package/web/ui/input.tsx +9 -0
- package/web/ui/label.tsx +7 -0
- package/web/ui/legacy/board.css +715 -0
- package/web/{notes.html → ui/legacy/notes.css} +23 -157
- package/web/ui/legacy/popup.css +40 -0
- package/web/ui/popover.tsx +28 -0
- package/web/ui/select.tsx +61 -0
- package/web/ui/sheet.tsx +43 -0
- package/web/ui/skeleton.tsx +6 -0
- package/web/ui/sonner.tsx +25 -0
- package/web/ui/spinner.tsx +12 -0
- package/web/ui/switch.tsx +18 -0
- package/web/ui/tabs.tsx +18 -0
- package/web/ui/textarea.tsx +14 -0
- package/web/ui/theme.css +125 -0
- package/web/ui/toggle.tsx +8 -0
- package/web/ui/tooltip.tsx +26 -0
- package/web/{video.ts → video/video.ts} +5 -5
- package/web/board/add-project.ts +0 -147
- package/web/board/agent-favicons.ts +0 -9
- package/web/board/agent-term.ts +0 -51
- package/web/board/annotate-lib.ts +0 -19
- package/web/board/annotate.ts +0 -221
- package/web/board/api.ts +0 -180
- package/web/board/approvals.ts +0 -109
- package/web/board/badge.ts +0 -115
- package/web/board/cards.ts +0 -1080
- package/web/board/chat.ts +0 -128
- package/web/board/context.ts +0 -248
- package/web/board/dictation.ts +0 -343
- package/web/board/dom.ts +0 -132
- package/web/board/drafts.ts +0 -21
- package/web/board/fixes.ts +0 -89
- package/web/board/git.ts +0 -416
- package/web/board/home-ws.ts +0 -266
- package/web/board/home.ts +0 -421
- package/web/board/icebox.ts +0 -1788
- package/web/board/keys.ts +0 -121
- package/web/board/live.ts +0 -87
- package/web/board/main.ts +0 -94
- package/web/board/markdown.ts +0 -210
- package/web/board/onboarding.ts +0 -227
- package/web/board/panel.ts +0 -437
- package/web/board/phone-setup.ts +0 -79
- package/web/board/phone.ts +0 -219
- package/web/board/projects.ts +0 -277
- package/web/board/resources.ts +0 -170
- package/web/board/run-pick.ts +0 -41
- package/web/board/run-view.ts +0 -1316
- package/web/board/search-match.ts +0 -20
- package/web/board/search.ts +0 -330
- package/web/board/settings-accounts.ts +0 -76
- package/web/board/settings-agents.ts +0 -102
- package/web/board/settings-automations.ts +0 -71
- package/web/board/settings-cleanup.ts +0 -42
- package/web/board/settings-orchestration.ts +0 -32
- package/web/board/settings-pages.ts +0 -62
- package/web/board/settings-skills.ts +0 -103
- package/web/board/settings-voice.ts +0 -28
- package/web/board/settings.ts +0 -490
- package/web/board/store.ts +0 -47
- package/web/board/task-page.ts +0 -628
- package/web/board/task-results.ts +0 -234
- package/web/board/tasks.ts +0 -242
- package/web/board/terms.ts +0 -390
- package/web/board/update.ts +0 -171
- package/web/board/viewer.ts +0 -47
- package/web/board/views.ts +0 -164
- package/web/board/whatsapp-setup.ts +0 -149
- package/web/board/workspace.ts +0 -650
- package/web/board/ws-board-ui.ts +0 -95
- package/web/board/ws-tabs.ts +0 -227
- package/web/board.html +0 -1563
- package/web/board.js +0 -505
- package/web/notebook.js +0 -519
- package/web/notebook.ts +0 -1254
- package/web/popup.html +0 -141
- package/web/video.js +0 -575
- /package/web/{term.css → dist/term.css} +0 -0
- /package/web/{board/term-sessions.ts → lib/terminal/sessions.ts} +0 -0
- /package/web/{board/terminal-viewport.ts → lib/terminal/viewport.ts} +0 -0
- /package/web/{term-paste.ts → term/term-paste.ts} +0 -0
|
@@ -1,16 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover">
|
|
6
|
-
<script>if(matchMedia("(display-mode:standalone)").matches||navigator.standalone){document.querySelector("meta[name=viewport]").content+=",maximum-scale=1,user-scalable=no";addEventListener("gesturestart",e=>e.preventDefault());if(navigator.standalone)addEventListener("resize",()=>scrollTo(0,0))}</script>
|
|
7
|
-
<title>kaizen notebook</title>
|
|
8
|
-
<link rel="icon" href="/favicon.ico" sizes="any">
|
|
9
|
-
<link rel="icon" type="image/png" href="/logo.png">
|
|
10
|
-
<link rel="apple-touch-icon" href="/logo.png">
|
|
11
|
-
<style>
|
|
12
|
-
/* Tokens: copied from web/board.html, line for line; cli/notes.test.ts holds them equal. */
|
|
1
|
+
/* Tokens: copied from web/html/board.html, line for line; cli/notes.test.ts holds them equal. */
|
|
13
2
|
/* Colour: monochrome by default; ok, warn and danger keep their hue because they carry meaning. data-color=blue is the navy palette (kz-color). */
|
|
3
|
+
/* Layers: as in board.html, this page's CSS (legacy) sits under the kit's Tailwind layers (web/dist/ui.css, linked above), so the popups the kit opens here are not restyled by it. The editor rules stay outside the layer: CodeMirror's own styles are unlayered and would beat them. */
|
|
4
|
+
@layer legacy, theme, base, components, utilities;
|
|
5
|
+
@layer legacy {
|
|
6
|
+
/* the page's one React root: its children lay out as body's own */
|
|
7
|
+
#root{display:contents}
|
|
14
8
|
:root{--bg:#f7f7f7;--bg-2:#fff;--line:#dedede;--ink:#171717;--ink-hi:#171717;--dim:#666;--accent:#171717;--run:#525252;--ok:#1f9d55;--warn:#a8720a;--danger:#c8322f;--on-accent:#fff;color-scheme:light}
|
|
15
9
|
@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#121212;--bg-2:#1a1a1a;--line:#2e2e2e;--ink:#ededed;--ink-hi:#fafafa;--dim:#a0a0a0;--accent:#ededed;--run:#c4c4c4;--ok:#5fd28a;--warn:#e6b450;--danger:#e85050;--on-accent:#121212;color-scheme:dark}}
|
|
16
10
|
:root[data-theme=dark]{--bg:#121212;--bg-2:#1a1a1a;--line:#2e2e2e;--ink:#ededed;--ink-hi:#fafafa;--dim:#a0a0a0;--accent:#ededed;--run:#c4c4c4;--ok:#5fd28a;--warn:#e6b450;--danger:#e85050;--on-accent:#121212;color-scheme:dark}
|
|
@@ -99,10 +93,6 @@ body .rail a.upd::after{left:calc(50% + 6px);top:4px}body .toast{left:16px;botto
|
|
|
99
93
|
.rail .psec button{width:var(--btn-xs);height:var(--btn-xs);display:grid;place-items:center;flex:none;border-radius:var(--r-s);color:var(--dim)}.rail .psec button:hover{background:var(--hover);color:var(--ink)}.rail .psec button svg{width:var(--ico);height:var(--ico)}
|
|
100
94
|
.rail .psec button[aria-pressed=true]{color:var(--accent)}.rail .psec button{position:relative}.rail .psec button[aria-pressed=true]::after{content:"";position:absolute;right:3px;top:3px;width:6px;height:6px;border-radius:50%;background:var(--accent)}
|
|
101
95
|
.rail .psec a.pbd{width:var(--btn-xs);height:var(--btn-xs);display:grid;place-items:center;flex:none;border-radius:var(--r-s);color:var(--dim)}.rail .psec a.pbd:hover{background:var(--hover);color:var(--ink)}.rail .psec a.pbd[aria-current=page]{color:var(--accent)}
|
|
102
|
-
.pfpop{position:fixed;z-index:40;min-width:220px;max-width:280px;max-height:60vh;overflow:hidden;padding:6px;display:flex;flex-direction:column;gap:1px;background:var(--bg-2);color:var(--ink);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow-2);font-size:12.5px}
|
|
103
|
-
.pfpop .sel{margin:2px 2px 6px;padding:5px 8px;border-radius:var(--r)}.pfrow{display:flex;align-items:center;gap:8px;padding:5px 8px;border-radius:var(--r-s);cursor:pointer;white-space:nowrap}.pfrow:hover{background:var(--hover)}.pfrow input{accent-color:var(--accent);margin:0}.pfrow .plogo{width:16px;height:16px;font-size:9px;border-radius:var(--r-xs);display:inline-grid;place-items:center;flex:none;font-weight:600;color:var(--dim);background:var(--hover)}.pfrow img.plogo{background:none}
|
|
104
|
-
.pfall{display:flex;align-items:center;gap:2px}.pfall .pfrow{flex:1;min-width:0}.pfb{all:unset;display:grid;place-items:center;width:24px;height:24px;flex:none;border-radius:var(--r-s);cursor:pointer;color:var(--dim)}.pfb:hover{background:var(--hover);color:var(--ink)}.pfb:focus-visible{outline:2px solid var(--accent)}
|
|
105
|
-
.pfpop .pfh{margin:8px 8px 2px;font-size:11px;font-weight:600;color:var(--dim)}.pfpop .pfl{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:1px}.pfpop .pff{flex:none;margin-top:4px;padding-top:2px;border-top:1px solid var(--line)}
|
|
106
96
|
.rail .plist{flex:1;min-height:40px;overflow:hidden auto;margin:0 -4px;padding:0 4px}
|
|
107
97
|
#kbd{display:none!important}.plist .proj{all:unset;box-sizing:border-box;display:flex;gap:8px;align-items:center;height:var(--row-h);margin:2px 0 0;padding:0 var(--padx);font-size:var(--fs-s);font-weight:500;color:var(--ink);white-space:nowrap;cursor:pointer;width:100%;border-radius:var(--r-s)}.proj:focus-visible{outline:2px solid var(--accent)}.proj .pname{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}.proj .fchev{width:12px;height:12px;flex:none;color:var(--dim);transition:transform .15s,opacity .15s;transform:rotate(90deg);opacity:0}.proj:hover .fchev,.proj:focus-visible .fchev{opacity:1}.proj.shut .fchev{transform:none}@media(hover:none){.proj .fchev{opacity:1}}.plist .proj .c{color:var(--dim);font-size:11px;font-weight:400}.plist .proj .plogo{width:16px;height:16px;font-size:9px;border-radius:var(--r-xs);display:inline-grid;place-items:center;flex:none;font-weight:600;color:var(--dim);background:var(--hover);object-fit:contain}.plist .proj img.plogo{background:none}
|
|
108
98
|
.plist .row{display:grid;grid-template-columns:14px minmax(0,1fr);gap:var(--gap);align-items:center;height:var(--row);padding:0 var(--padx);border-radius:var(--r-s);color:var(--ink);text-decoration:none}.plist .row:hover,.plist .row[aria-current]{background:var(--hover)}.plist .row .si{margin-top:0}
|
|
@@ -143,7 +133,7 @@ body .rail a.upd::after{left:calc(50% + 6px);top:4px}body .toast{left:16px;botto
|
|
|
143
133
|
@media(max-width:640px){
|
|
144
134
|
.rail a.it:is([data-view=board],[data-view=tasks],[data-view=sources]),#foot,#ctx-open,body .rail .rbot .ib.xs{display:none!important}
|
|
145
135
|
.rail a.it.ponly{display:flex}
|
|
146
|
-
.rail a.it[data-view=device]{order:1}.rail a.it.gs-it{order:
|
|
136
|
+
.rail a.it[data-view=device]{order:1}.rail a.it.gs-it{order:4}.rail a.it[data-view=home]{order:3}.rail a.it[data-view=chat]{order:4}.rail a.it[data-view=terminal]{order:5}.rail a.it[data-view=settings]{display:none}
|
|
147
137
|
.rail,[data-rail=min] .rail{padding:8px 8px max(2px,calc(env(safe-area-inset-bottom) - 8px));border-top:1px solid color-mix(in srgb,var(--line) 70%,transparent)}
|
|
148
138
|
.rail a.it,[data-rail=min] .rail a.it{min-height:46px;gap:3px;font-size:10.5px;letter-spacing:.01em}
|
|
149
139
|
.rail a.it svg{width:44px;height:26px;padding:4px 12px;box-sizing:border-box;border-radius:13px;transition:background .15s}
|
|
@@ -157,19 +147,23 @@ body .rail a.upd::after{left:calc(50% + 6px);top:4px}body .toast{left:16px;botto
|
|
|
157
147
|
the window's title bar, with room for the window buttons. */
|
|
158
148
|
@media (hover:hover) and (pointer:fine){*{scrollbar-width:thin;scrollbar-color:transparent transparent}*:hover{scrollbar-color:color-mix(in srgb,var(--ink) 28%,transparent) transparent}}
|
|
159
149
|
html.desk,html.desk body{overscroll-behavior:none}
|
|
160
|
-
html.desk :is(button,.btn,.ib,.rail,.hdr,nav,label,summary,[role=tab],[role=tablist],[role=menu],[role=menuitem],[role=option],.chip,.ice-chip,.tk-bar,.
|
|
150
|
+
html.desk :is(button,.btn,.ib,.rail,.hdr,nav,label,summary,[role=tab],[role=tablist],[role=menu],[role=menuitem],[role=option],.chip,.ice-chip,.tk-bar,.pstrip){-webkit-user-select:none;user-select:none}
|
|
161
151
|
html.desk :is(input,textarea,select,[contenteditable],pre,code,.xterm,.md,.ice-notes,.ice-t,.ice-ct){-webkit-user-select:text;user-select:text}
|
|
162
152
|
html.desk :is(button,.btn,.ib,a.it,[role=tab],[role=option],[role=menuitem],summary,.chip,.ice-chip){cursor:default}
|
|
163
153
|
html.desk :is(.hdr,.rail>.top){-webkit-app-region:drag}
|
|
164
|
-
html.desk :is(.hdr,.rail>.top) :is(button,a,input,select,textarea,.combo,.sel
|
|
154
|
+
html.desk :is(.hdr,.rail>.top) :is(button,a,input,select,textarea,.combo,.sel,[role=button],[role=group],[contenteditable],label,summary,details){-webkit-app-region:no-drag}
|
|
165
155
|
html.desk{--wco:max(0px,calc(100vw - env(titlebar-area-x,0px) - env(titlebar-area-width,100vw)));--wch:env(titlebar-area-height,0px)}
|
|
166
156
|
html.desk .hdr{padding-right:calc(16px + var(--wco))}
|
|
167
157
|
html.desk #rbar{padding-right:calc(6px + var(--wco));-webkit-app-region:drag}
|
|
168
|
-
html.desk #rbar :is(button,summary,details,a,input,select
|
|
158
|
+
html.desk #rbar :is(button,summary,details,a,input,select,[role=button],[role=tab]){-webkit-app-region:no-drag}
|
|
169
159
|
html.desk body.runv #panel>header{padding-right:calc(12px + var(--wco))}
|
|
170
160
|
html.desk body.runv .pstrip{padding-top:calc(10px + var(--wch))}
|
|
171
161
|
html.desk.mac .rail>.top{padding-top:22px}
|
|
162
|
+
/* Ranking projects by drag (use-rank-drag in lib/rail): the lifted bar dims, a 2px line marks where it lands. */
|
|
163
|
+
.rlist>.pgrp{position:relative}.rlist>.pgrp.rank-before::before,.rlist.rank-end::after{content:"";display:block;height:2px;margin:0 var(--padx);border-radius:1px;background:var(--accent)}.rlist>.pgrp.rank-before::before{position:absolute;left:0;right:0;top:-2px}#plist .proj.rank-lift{opacity:.45;cursor:grabbing}body:has(#plist .proj.rank-lift){cursor:grabbing;user-select:none}
|
|
172
164
|
/* end side menu */
|
|
165
|
+
/* the side menu's task links (the board has them in its own block) */
|
|
166
|
+
.rail .rtask{display:flex;gap:8px;align-items:center;padding:6px 8px 6px 18px;border-radius:var(--r-s);color:var(--ink);text-decoration:none}.rail .rtask:hover{background:var(--hover)}.rail .rtask>span:last-child{min-width:0}.rail .rtask b,.rail .rtask small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rail .rtask b{font-size:12px;font-weight:500}.rail .rtask small{font-size:11px;color:var(--dim)}[data-rail=min] .rail .rtask{display:none}
|
|
173
167
|
#kbd{display:none}
|
|
174
168
|
body.embed .rail,body.embed .hdr{display:none}body.embed .app{margin:0;border:0;border-radius:0}
|
|
175
169
|
/* the work area: an inset rounded panel on the canvas the side menu sits on */
|
|
@@ -182,13 +176,11 @@ body.embed .rail,body.embed .hdr{display:none}body.embed .app{margin:0;border:0;
|
|
|
182
176
|
pre.mark{margin:0;font:700 5px/1 var(--mono)}
|
|
183
177
|
pre.mark span:nth-child(1){color:var(--ink-hi)}pre.mark span:nth-child(2){color:color-mix(in srgb,var(--ink-hi),var(--accent))}pre.mark span:nth-child(3){color:var(--accent)}
|
|
184
178
|
.sel{border:1px solid var(--line);border-radius:var(--r-s);padding:4px 10px;background-color:var(--bg-2);color:var(--ink);font-size:13px}
|
|
185
|
-
/* One line, one height: a
|
|
186
|
-
|
|
187
|
-
select.sel{cursor:pointer;appearance:none;padding-right:30px;max-width:min(320px,100%);text-overflow:ellipsis;background-image:linear-gradient(45deg,transparent 50%,var(--dim) 50%),linear-gradient(135deg,var(--dim) 50%,transparent 50%);background-position:calc(100% - 16px) 50%,calc(100% - 11px) 50%;background-size:5px 5px;background-repeat:no-repeat}
|
|
179
|
+
/* One line, one height: a field stands as tall as .ib and .btn. */
|
|
180
|
+
input.sel{height:var(--btn-s)}
|
|
188
181
|
.sel:hover{border-color:var(--dim)}
|
|
189
182
|
.hdr h1{display:none;margin:0;font-weight:600}
|
|
190
183
|
@media(max-width:640px){.hdr{padding-top:28px;padding-bottom:12px}.hdr h1{display:block;flex:1 0 70%;font-size:20px;order:-2}#new{order:-1}.hdr .sp{display:none}.hdr>#side{order:1}.hdr>#proj{order:2}}
|
|
191
|
-
.hdr>#proj{padding:4px 30px 4px 10px}.hdr>#proj:not(:hover):not(:focus){border-color:transparent;background-color:transparent}
|
|
192
184
|
.sel:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 22%,transparent)}
|
|
193
185
|
.sel::placeholder{color:var(--dim)}
|
|
194
186
|
.sp{flex:1}
|
|
@@ -203,8 +195,6 @@ select.sel{cursor:pointer;appearance:none;padding-right:30px;max-width:min(320px
|
|
|
203
195
|
.chip{display:inline-flex;align-items:center;gap:5px;min-height:20px;padding:1px 8px;border-radius:var(--r-pill);font-size:11px;font-weight:500;color:var(--dim);box-shadow:inset 0 0 0 1px var(--line)}
|
|
204
196
|
.chip span{color:var(--dim);font-variant-numeric:tabular-nums}
|
|
205
197
|
.chip:hover,.chip.on{background:var(--hover);color:var(--ink)}.chip.on{box-shadow:inset 0 0 0 1px var(--accent)}
|
|
206
|
-
.toast{position:fixed;z-index:12;left:28px;bottom:28px;max-width:calc(100% - 56px);background:var(--ink);color:var(--bg);border-radius:var(--r);padding:10px 16px;font-size:13px;box-shadow:var(--shadow-2);opacity:0;transition:opacity .2s;pointer-events:none}
|
|
207
|
-
.toast.on{opacity:1}
|
|
208
198
|
|
|
209
199
|
/* sidebar: search, tags, the folder tree */
|
|
210
200
|
.wrap{flex:1;min-height:0;display:grid;grid-template-columns:260px 1fr}
|
|
@@ -250,12 +240,13 @@ select.sel{cursor:pointer;appearance:none;padding-right:30px;max-width:min(320px
|
|
|
250
240
|
#meta .ib{width:30px;height:30px}#meta .ib svg{width:16px;height:16px}
|
|
251
241
|
.links{margin-top:56px;padding-top:12px;border-top:1px solid var(--line)}.links h3{margin:0 0 6px 10px}
|
|
252
242
|
.blank{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:60vh;text-align:center;padding:0 16px}
|
|
253
|
-
/* The K mark, copied from web/board.html like the tokens. */
|
|
243
|
+
/* The K mark, copied from web/html/board.html like the tokens. */
|
|
254
244
|
.mascot{width:120px;height:112px;background:var(--ink);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 4 6%22%3E%3Cpath fill=%22currentColor%22 fill-rule=%22evenodd%22 d=%22M0 0h1v1h-1zM3 0h1v1h-1zM0 1h1v1h-1zM2 1h1v1h-1zM0 2h1v1h-1zM1 2h1v1h-1zM0 3h1v1h-1zM1 3h1v1h-1zM0 4h1v1h-1zM2 4h1v1h-1zM0 5h1v1h-1zM3 5h1v1h-1z%22/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 4 6%22%3E%3Cpath fill=%22currentColor%22 fill-rule=%22evenodd%22 d=%22M0 0h1v1h-1zM3 0h1v1h-1zM0 1h1v1h-1zM2 1h1v1h-1zM0 2h1v1h-1zM1 2h1v1h-1zM0 3h1v1h-1zM1 3h1v1h-1zM0 4h1v1h-1zM2 4h1v1h-1zM0 5h1v1h-1zM3 5h1v1h-1z%22/%3E%3C/svg%3E") center/contain no-repeat}
|
|
255
245
|
.blank{animation:fi .2s}@keyframes fi{from{opacity:0}}
|
|
256
246
|
.blank b{font-size:16px;font-weight:600}.blank p{margin:0 0 8px;color:var(--dim);max-width:44ch}
|
|
257
247
|
|
|
258
|
-
|
|
248
|
+
}
|
|
249
|
+
/* the editor: CodeMirror, typeset by the live preview in web/notebook/notebook.ts */
|
|
259
250
|
#editor .cm-editor{font:16px/1.7 var(--font);color:var(--ink);background:none}
|
|
260
251
|
#editor .cm-editor.cm-focused{outline:none}
|
|
261
252
|
#editor .cm-scroller{font:inherit;line-height:inherit;overflow:visible}
|
|
@@ -305,146 +296,21 @@ select.sel{cursor:pointer;appearance:none;padding-right:30px;max-width:min(320px
|
|
|
305
296
|
#editor .cm-completionLabel{flex:1}
|
|
306
297
|
#editor .cm-completionDetail{margin:0;font-style:normal;font-size:12px;color:var(--dim)}
|
|
307
298
|
#editor .cm-completionMatchedText{text-decoration:none;font-weight:600}
|
|
299
|
+
@layer legacy {
|
|
308
300
|
@media(max-width:900px){
|
|
309
301
|
.hdr{padding-inline:16px}
|
|
310
302
|
.wrap{grid-template-columns:1fr}
|
|
311
303
|
.side{display:none;position:fixed;z-index:11;inset:0 auto 0 0;width:min(300px,85vw);border-right:1px solid var(--line);box-shadow:var(--shadow-2)}
|
|
312
304
|
.side-open .side{display:flex}
|
|
313
305
|
.page{padding:24px 16px 30vh}
|
|
314
|
-
.toast{left:16px;max-width:calc(100% - 32px)}
|
|
315
306
|
}
|
|
316
307
|
@media(min-width:901px){#side{display:none}}
|
|
317
308
|
.skel{display:block;border-radius:var(--r-xs);background:linear-gradient(90deg,var(--line) 25%,color-mix(in srgb,var(--line) 45%,transparent) 50%,var(--line) 75%);background-size:200% 100%;animation:skel 1.2s ease-in-out infinite}@keyframes skel{from{background-position:200% 0}to{background-position:-200% 0}}
|
|
318
309
|
/* motion: data-motion (Settings) wins over the system's reduced-motion */
|
|
310
|
+
}
|
|
319
311
|
@view-transition{navigation:auto}
|
|
312
|
+
@layer legacy {
|
|
320
313
|
::view-transition-group(*){animation-duration:.2s}
|
|
321
314
|
@media(prefers-reduced-motion:reduce){:root:not([data-motion=full]) *,:root:not([data-motion=full]) *::before,:root:not([data-motion=full]) *::after,:root:not([data-motion=full])::view-transition-group(*),:root:not([data-motion=full])::view-transition-old(*),:root:not([data-motion=full])::view-transition-new(*){transition:none!important;animation:none!important}}
|
|
322
315
|
:root[data-motion=reduce] *,:root[data-motion=reduce] *::before,:root[data-motion=reduce] *::after,:root[data-motion=reduce]::view-transition-group(*),:root[data-motion=reduce]::view-transition-old(*),:root[data-motion=reduce]::view-transition-new(*){transition:none!important;animation:none!important}
|
|
323
|
-
|
|
324
|
-
</head>
|
|
325
|
-
<body>
|
|
326
|
-
<svg style="display:none"><defs>
|
|
327
|
-
<symbol id="s-idea" viewBox="0 0 16 16"><circle cx="8" cy="8" r="6" stroke-dasharray="2 2.5"/></symbol>
|
|
328
|
-
<symbol id="s-start" viewBox="0 0 16 16"><circle cx="8" cy="8" r="6" stroke-dasharray="2 2.5"/><path d="M6.5 5.5v5l4-2.5z" fill="currentColor" stroke="none"/></symbol>
|
|
329
|
-
<symbol id="s-run" viewBox="0 0 16 16"><circle cx="8" cy="8" r="6"/><path d="M8 2a6 6 0 0 1 0 12z" fill="currentColor" stroke="none"/></symbol>
|
|
330
|
-
<symbol id="s-stall" viewBox="0 0 16 16"><circle cx="8" cy="8" r="6"/><path d="M8 2a6 6 0 0 1 0 12z" fill="currentColor" stroke="none" opacity=".35"/></symbol>
|
|
331
|
-
<symbol id="s-wait" viewBox="0 0 16 16"><circle cx="8" cy="8" r="6"/><path d="M8 5v3.5M8 11v.1"/></symbol>
|
|
332
|
-
<symbol id="s-done" viewBox="0 0 16 16"><circle cx="8" cy="8" r="6" fill="currentColor" stroke="none"/><path d="M5.5 8l1.8 1.8L10.8 6" stroke="var(--bg-2)"/></symbol>
|
|
333
|
-
<symbol id="s-aband" viewBox="0 0 16 16"><circle cx="8" cy="8" r="6"/><path d="M5.5 5.5l5 5M10.5 5.5l-5 5"/></symbol>
|
|
334
|
-
<symbol id="i-gear" viewBox="0 0 24 24"><circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1.1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1.1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3H9a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8V9a1.7 1.7 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1z"/></symbol>
|
|
335
|
-
<symbol id="i-inbox" viewBox="0 0 24 24"><path d="M22 12h-6l-2 3h-4l-2-3H2"/><path d="M5.5 5.1L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.5-6.9A2 2 0 0 0 16.8 4H7.2a2 2 0 0 0-1.7 1.1z"/></symbol>
|
|
336
|
-
<symbol id="i-link" viewBox="0 0 24 24"><path d="M10 13a5 5 0 0 0 7.1.4l3-3a5 5 0 0 0-7.1-7.1l-1.7 1.7M14 11a5 5 0 0 0-7.1-.4l-3 3a5 5 0 0 0 7.1 7.1l1.7-1.7"/></symbol>
|
|
337
|
-
<symbol id="i-note" viewBox="0 0 24 24"><path d="M6 3h9l4 4v14H6z"/><path d="M14 3v5h5M9 13h6M9 17h6"/></symbol>
|
|
338
|
-
<symbol id="i-video" viewBox="0 0 24 24"><rect x="3" y="6" width="13" height="12" rx="2"/><path d="M16 10.5l5-3v9l-5-3z"/></symbol>
|
|
339
|
-
<symbol id="i-more" viewBox="0 0 24 24"><circle cx="5" cy="12" r="1.2" fill="currentColor"/><circle cx="12" cy="12" r="1.2" fill="currentColor"/><circle cx="19" cy="12" r="1.2" fill="currentColor"/></symbol>
|
|
340
|
-
<symbol id="i-home" viewBox="0 0 24 24"><path d="M4 11l8-7 8 7v8a1 1 0 0 1-1 1h-4v-6h-6v6H5a1 1 0 0 1-1-1z"/></symbol>
|
|
341
|
-
<symbol id="i-board" viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="16" rx="2"/><path d="M9 4v16M15 4v16"/></symbol>
|
|
342
|
-
<symbol id="i-side" viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="16" rx="2"/><path d="M9 4v16"/></symbol>
|
|
343
|
-
<symbol id="i-sun" viewBox="0 0 24 24"><circle cx="12" cy="12" r="4"/><path d="M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4"/></symbol>
|
|
344
|
-
<symbol id="i-moon" viewBox="0 0 24 24"><path d="M20 14.5A8 8 0 1 1 9.5 4a6.5 6.5 0 0 0 10.5 10.5z"/></symbol>
|
|
345
|
-
<symbol id="i-trash" viewBox="0 0 24 24"><path d="M3 6h18M8 6V4h8v2M6 6l1 14h10l1-14M10 11v6M14 11v6"/></symbol>
|
|
346
|
-
<symbol id="i-folder" viewBox="0 0 24 24"><path d="M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/></symbol>
|
|
347
|
-
<symbol id="i-chev" viewBox="0 0 24 24"><path d="M9 6l6 6-6 6"/></symbol>
|
|
348
|
-
<symbol id="i-wide" viewBox="0 0 24 24"><path d="M3 12h18M7 8l-4 4 4 4M17 8l4 4-4 4"/></symbol>
|
|
349
|
-
<symbol id="i-box" viewBox="0 0 24 24"><path d="M4 5v14M20 5v14M8 12h8M11 9l-3 3 3 3M13 9l3 3-3 3"/></symbol>
|
|
350
|
-
<symbol id="i-term" viewBox="0 0 24 24"><path d="M4 17l6-5-6-5M12 19h8"/></symbol>
|
|
351
|
-
<symbol id="i-max" viewBox="0 0 24 24"><path d="M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5"/></symbol>
|
|
352
|
-
<symbol id="i-min" viewBox="0 0 24 24"><path d="M9 4v5H4M15 4v5h5M9 20v-5H4M15 20v-5h5"/></symbol>
|
|
353
|
-
<symbol id="i-list" viewBox="0 0 24 24"><path d="M4 6h16M4 12h16M4 18h16"/></symbol>
|
|
354
|
-
<symbol id="i-ai" viewBox="0 0 24 24"><path d="M12 3l1.9 5.1L19 10l-5.1 1.9L12 17l-1.9-5.1L5 10l5.1-1.9z"/><path d="M19 15l.8 2.2L22 18l-2.2.8L19 21l-.8-2.2L16 18l2.2-.8z"/></symbol><symbol id="i-claude" viewBox="0 0 24 24"><path fill="#D97757" stroke="none" d="m4.7144 15.9555 4.7174-2.6471.079-.2307-.079-.1275h-.2307l-.7893-.0486-2.6956-.0729-2.3375-.0971-2.2646-.1214-.5707-.1215-.5343-.7042.0546-.3522.4797-.3218.686.0608 1.5179.1032 2.2767.1578 1.6514.0972 2.4468.255h.3886l.0546-.1579-.1336-.0971-.1032-.0972L6.973 9.8356l-2.55-1.6879-1.3356-.9714-.7225-.4918-.3643-.4614-.1578-1.0078.6557-.7225.8803.0607.2246.0607.8925.686 1.9064 1.4754 2.4893 1.8336.3643.3035.1457-.1032.0182-.0728-.164-.2733-1.3539-2.4467-1.445-2.4893-.6435-1.032-.17-.6194c-.0607-.255-.1032-.4674-.1032-.7285L6.287.1335 6.6997 0l.9957.1336.419.3642.6192 1.4147 1.0018 2.2282 1.5543 3.0296.4553.8985.2429.8318.091.255h.1579v-.1457l.1275-1.706.2368-2.0947.2307-2.6957.0789-.7589.3764-.9107.7468-.4918.5828.2793.4797.686-.0668.4433-.2853 1.8517-.5586 2.9021-.3643 1.9429h.2125l.2429-.2429.9835-1.3053 1.6514-2.0643.7286-.8196.85-.9046.5464-.4311h1.0321l.759 1.1293-.34 1.1657-1.0625 1.3478-.8804 1.1414-1.2628 1.7-.7893 1.36.0729.1093.1882-.0183 2.8535-.607 1.5421-.2794 1.8396-.3157.8318.3886.091.3946-.3278.8075-1.967.4857-2.3072.4614-3.4364.8136-.0425.0304.0486.0607 1.5482.1457.6618.0364h1.621l3.0175.2247.7892.522.4736.6376-.079.4857-1.2142.6193-1.6393-.3886-3.825-.9107-1.3113-.3279h-.1822v.1093l1.0929 1.0686 2.0035 1.8092 2.5075 2.3314.1275.5768-.3218.4554-.34-.0486-2.2039-1.6575-.85-.7468-1.9246-1.621h-.1275v.17l.4432.6496 2.3436 3.5214.1214 1.0807-.17.3521-.6071.2125-.6679-.1214-1.3721-1.9246L14.38 17.959l-1.1414-1.9428-.1397.079-.674 7.2552-.3156.3703-.7286.2793-.6071-.4614-.3218-.7468.3218-1.4753.3886-1.9246.3157-1.53.2853-1.9004.17-.6314-.0121-.0425-.1397.0182-1.4328 1.9672-2.1796 2.9446-1.7243 1.8456-.4128.164-.7164-.3704.0667-.6618.4008-.5889 2.386-3.0357 1.4389-1.882.929-1.0868-.0062-.1579h-.0546l-6.3385 4.1164-1.1293.1457-.4857-.4554.0608-.7467.2307-.2429 1.9064-1.3114Z"/></symbol><symbol id="i-gemini" viewBox="0 0 24 24"><path fill="#8E75B2" stroke="none" d="M11.04 19.32Q12 21.51 12 24q0-2.49.93-4.68.96-2.19 2.58-3.81t3.81-2.55Q21.51 12 24 12q-2.49 0-4.68-.93a12.3 12.3 0 0 1-3.81-2.58 12.3 12.3 0 0 1-2.58-3.81Q12 2.49 12 0q0 2.49-.96 4.68-.93 2.19-2.55 3.81a12.3 12.3 0 0 1-3.81 2.58Q2.49 12 0 12q2.49 0 4.68.96 2.19.93 3.81 2.55t2.55 3.81"/></symbol><symbol id="i-codex" viewBox="0 0 24 24"><path fill="currentColor" stroke="none" d="M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z"/></symbol></defs></svg>
|
|
355
|
-
|
|
356
|
-
<nav class="rail" aria-label="Main">
|
|
357
|
-
<div class="top"><a class="home" href="/" title="Home" aria-label="kaizen home"><pre class="mark"><span>█ █ ▄▀█ █ ▀▀█ █▀▀ █▄ █</span>
|
|
358
|
-
<span>█▀▄ █▀█ █ ▄▀ ██▄ █ ▀█</span>
|
|
359
|
-
<span>█ █ █ █ █ █▄▄ █▄▄ █ █</span></pre><span class="mascot"></span></a><button class="ib" id="fold" aria-label="Collapse menu" title="Collapse menu"><svg><use href="#i-side"/></svg></button></div>
|
|
360
|
-
<svg style="display:none"><defs>
|
|
361
|
-
<symbol id="r-bulb" viewBox="0 0 24 24"><path d="M9 18h6M10 21h4M12 3a6 6 0 0 0-4 10.5c.7.7 1 1.5 1 2.5h6c0-1 .3-1.8 1-2.5A6 6 0 0 0 12 3z"/></symbol>
|
|
362
|
-
<symbol id="r-tray" viewBox="0 0 24 24"><path d="M12 3v9M8.5 8.5 12 12l3.5-3.5"/><path d="M3 14h5l1.5 2.5h5L16 14h5"/><path d="M3 14v5a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1v-5l-2.5-6H15M9 8H5.5L3 14"/></symbol>
|
|
363
|
-
<symbol id="r-filter" viewBox="0 0 24 24"><path d="M4 5h16l-6 8v6l-4-2v-4z"/></symbol>
|
|
364
|
-
<symbol id="r-plus" viewBox="0 0 24 24"><path d="M12 5v14M5 12h14"/></symbol>
|
|
365
|
-
<symbol id="r-bug" viewBox="0 0 24 24"><rect x="8" y="6" width="8" height="14" rx="4"/><path d="M12 20v-9M8 12H4M20 12h-4M9 7 7 4M15 7l2-3M8 17l-3 2M16 17l3 2"/></symbol>
|
|
366
|
-
<symbol id="r-kbd" viewBox="0 0 24 24"><rect x="2" y="6" width="20" height="12" rx="2"/><path d="M6 10h.01M10 10h.01M14 10h.01M18 10h.01M7 14h10"/></symbol>
|
|
367
|
-
<symbol id="r-desk" viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="12" rx="2"/><path d="M8 20h8M12 16v4"/></symbol>
|
|
368
|
-
<symbol id="r-chat" viewBox="0 0 24 24"><path d="M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12z"/></symbol>
|
|
369
|
-
<symbol id="r-runs" viewBox="0 0 24 24"><path d="M9 6h11M9 12h11M9 18h11"/><circle cx="4.5" cy="6" r="1.2"/><circle cx="4.5" cy="12" r="1.2"/><circle cx="4.5" cy="18" r="1.2"/></symbol>
|
|
370
|
-
<symbol id="r-term" viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="16" rx="2"/><path d="m7 9 3 3-3 3M13 15h4"/></symbol>
|
|
371
|
-
</defs></svg>
|
|
372
|
-
<a class="it gs-it" href="#" id="gsearch" title="Search everything"><svg viewBox="0 0 24 24"><circle cx="11" cy="11" r="7" fill="none" stroke="currentColor" stroke-width="2"/><path d="M20 20l-4-4" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></svg><span class="lbl">Search</span></a>
|
|
373
|
-
<a class="it" href="/" data-view="home" title="Chat with the project's agent"><svg class="dkl"><use href="#r-chat"/></svg><svg class="phl"><use href="#i-home"/></svg><span class="lbl"><span class="dkl">Chat</span><span class="phl">Home</span></span></a>
|
|
374
|
-
<a class="it ponly" href="/?view=chat" data-view="chat" title="Chat with kaizen's agent"><svg><use href="#r-chat"/></svg><span class="lbl">Chat</span></a>
|
|
375
|
-
<a class="it ponly" href="/?view=device" data-view="device" title="This computer's runs"><svg><use href="#r-runs"/></svg><span class="lbl">Runs</span></a>
|
|
376
|
-
<a class="it ponly" href="/?view=terminal" data-view="terminal" title="Open terminals across all projects"><svg><use href="#r-term"/></svg><span class="lbl">Terminal</span></a>
|
|
377
|
-
<a class="it fold" href="/?view=icebox" data-view="sources" title="Icebox: requests gathered from your sources"><svg><use href="#r-tray"/></svg><span class="lbl">Icebox</span><span class="srcs" id="rail-srcs"></span><span class="n" id="ice-n"></span></a>
|
|
378
|
-
<a class="it" href="/?view=tasks" data-view="tasks" title="Tasks: every task and run, filtered"><svg><use href="#r-bulb"/></svg><span class="lbl">Tasks</span></a>
|
|
379
|
-
<a class="it" href="/?setup=1" id="rsetup" hidden title="Continue setup"><span class="ring"></span><span class="lbl">Setup</span></a>
|
|
380
|
-
<div class="psec"><span class="lbl">Projects</span><a class="pbd" href="/?view=board" data-view="board" title="Board" aria-label="Board"><svg><use href="#i-board"/></svg></a><button id="pfilter" title="Show one project" aria-label="Show one project"><svg><use href="#r-filter"/></svg></button><button id="padd" title="Add project or workspace" aria-label="Add project or workspace"><svg><use href="#r-plus"/></svg></button></div>
|
|
381
|
-
<div class="plist" id="plist" aria-label="Tasks and runs by project"></div>
|
|
382
|
-
<div class="rbot"><a class="it fold" href="/?view=settings" data-view="settings" title="Settings" aria-label="Settings"><svg><use href="#i-gear"/></svg><span class="lbl">Settings</span></a><a class="ib xs" href="/issue" target="_blank" rel="noopener" title="Report an issue" aria-label="Report an issue"><svg><use href="#r-bug"/></svg></a><button class="ib xs" id="kbd" title="Keyboard shortcuts" aria-label="Keyboard shortcuts"><svg><use href="#r-kbd"/></svg></button><button class="ib xs th" id="themet" title="Theme" aria-label="Theme"><svg class="sun"><use href="#i-sun"/></svg><svg class="moon"><use href="#i-moon"/></svg></button></div>
|
|
383
|
-
</nav>
|
|
384
|
-
<script>
|
|
385
|
-
// Side menu: theme and collapse, the same lines in board.html and notes.html. Runs before
|
|
386
|
-
// the page draws, so a stored theme or a collapsed menu never flashes the default first.
|
|
387
|
-
(()=>{const r=document.documentElement,wide=matchMedia("(max-width:1100px)"),phone=matchMedia("(max-width:640px)"),os=matchMedia("(prefers-color-scheme: dark)");
|
|
388
|
-
// The toggle's choice is kept per browser; with none, the width decides. A phone always gets icons.
|
|
389
|
-
let fold=null;try{fold=localStorage.getItem("kz-rail")}catch(e){}
|
|
390
|
-
const rail=()=>{const m=phone.matches||(fold?fold==="min":wide.matches),b=document.getElementById("fold");r.dataset.rail=m?"min":"full";r.dataset.hide=!phone.matches&&fold==="min"?"1":"0";b.title=m?"Expand menu":"Collapse menu";b.setAttribute("aria-label",b.title);b.setAttribute("aria-expanded",!m)};
|
|
391
|
-
wide.addEventListener("change",rail);phone.addEventListener("change",rail);rail();
|
|
392
|
-
document.getElementById("fold").onclick=()=>{fold=r.dataset.rail==="min"?"full":"min";try{localStorage.setItem("kz-rail",fold)}catch(e){}rail()};
|
|
393
|
-
// Theme: light, dark, or unset for system, in kz-theme. The toggle shows what is on screen and flips it.
|
|
394
|
-
// The desktop app: its own rules (html.desk, html.mac) and window buttons that follow the theme.
|
|
395
|
-
const desk=window.kaizenDesktop;if(desk){r.classList.add("desk");if(desk.platform==="darwin")r.classList.add("mac")}
|
|
396
|
-
const paint=()=>{const d=r.dataset.theme?r.dataset.theme==="dark":os.matches;desk&&desk.titleBar&&desk.titleBar(d);const b=document.getElementById("themet");if(b){b.dataset.dark=d;b.title=d?"Dark theme: switch to light":"Light theme: switch to dark";b.setAttribute("aria-label",b.title)}};
|
|
397
|
-
// Colour: unset for monochrome, or blue, in kz-color. kz-theme repaints the terminals and Settings.
|
|
398
|
-
window.setColor=c=>{if(c==="blue")r.dataset.color=c;else delete r.dataset.color;try{c==="blue"?localStorage.setItem("kz-color",c):localStorage.removeItem("kz-color")}catch(e){}dispatchEvent(new Event("kz-theme"))};
|
|
399
|
-
try{if(localStorage.getItem("kz-color")==="blue")r.dataset.color="blue"}catch(e){}
|
|
400
|
-
window.setTheme=t=>{if(t==="system")delete r.dataset.theme;else r.dataset.theme=t;try{t==="system"?localStorage.removeItem("kz-theme"):localStorage.setItem("kz-theme",t)}catch(e){}paint();dispatchEvent(new Event("kz-theme"))};
|
|
401
|
-
try{const t=localStorage.getItem("kz-theme");if(t)r.dataset.theme=t}catch(e){}
|
|
402
|
-
// Motion: full, reduce, or unset to follow the system's reduced-motion, in kz-motion.
|
|
403
|
-
window.setMotion=m=>{if(m==="system")delete r.dataset.motion;else r.dataset.motion=m;try{m==="system"?localStorage.removeItem("kz-motion"):localStorage.setItem("kz-motion",m)}catch(e){}};
|
|
404
|
-
try{const m=localStorage.getItem("kz-motion");if(m)r.dataset.motion=m}catch(e){}
|
|
405
|
-
// Settings changed in another window or tab apply here at once, not on the next reload.
|
|
406
|
-
addEventListener("storage",e=>{const m={"kz-theme":"theme","kz-color":"color","kz-motion":"motion"}[e.key];if(!m)return;if(e.newValue)r.dataset[m]=e.newValue;else delete r.dataset[m];dispatchEvent(new Event("kz-theme"))});
|
|
407
|
-
os.addEventListener("change",paint);paint();
|
|
408
|
-
document.getElementById("themet").onclick=e=>setTheme(e.currentTarget.dataset.dark==="true"?"light":"dark");
|
|
409
|
-
// Setup: while first-run onboarding is skipped or unfinished, a row that continues it; the board redraws it as it saves.
|
|
410
|
-
window.kzSetupRow=o=>{const a=document.getElementById("rsetup");if(!a)return;a.hidden=!(o&&o.resume);if(o&&o.resume){a.querySelector(".ring").style.setProperty("--p",Math.round(o.step/o.total*100)+"%");a.title="Continue setup: step "+(o.step+1)+" of "+o.total}};
|
|
411
|
-
fetch("/onboarding").then(r=>r.ok?r.json():null).then(window.kzSetupRow).catch(()=>{});
|
|
412
|
-
// Phones: More holds the tabs that do not fit; a pick or a tap elsewhere closes it.
|
|
413
|
-
const more=document.querySelector(".mtab");if(more){more.querySelectorAll("a").forEach(a=>a.addEventListener("click",()=>more.open=false));addEventListener("pointerdown",e=>{if(more.open&&!more.contains(e.target))more.open=false},true)}})();
|
|
414
|
-
</script>
|
|
415
|
-
<div class="app">
|
|
416
|
-
<div class="hdr">
|
|
417
|
-
<h1>Notes</h1>
|
|
418
|
-
<button class="ib" id="side" title="Notes list" aria-label="Notes list"><svg><use href="#i-list"/></svg></button>
|
|
419
|
-
<select class="sel" id="proj" aria-label="Project"></select>
|
|
420
|
-
<span class="sp"></span>
|
|
421
|
-
<button class="btn pri" id="new">New note</button>
|
|
422
|
-
</div>
|
|
423
|
-
|
|
424
|
-
<div class="wrap">
|
|
425
|
-
<nav class="side" aria-label="Notes">
|
|
426
|
-
<input class="sel" id="q" type="search" placeholder="Search notes, or #tag" aria-label="Search notes" spellcheck="false" autocomplete="off">
|
|
427
|
-
<h3 id="tagsh" hidden>Tags</h3>
|
|
428
|
-
<div class="tags" id="tags"></div>
|
|
429
|
-
<h3>Notes</h3>
|
|
430
|
-
<div class="tree" id="tree"><span class="skel" style="height:14px;margin:8px 0"></span><span class="skel" style="height:14px;margin:8px 0"></span><span class="skel" style="height:14px;margin:8px 0"></span><span class="skel" style="height:14px;margin:8px 0"></span><span class="skel" style="height:14px;margin:8px 0"></span></div>
|
|
431
|
-
</nav>
|
|
432
|
-
<main class="main">
|
|
433
|
-
<div class="page">
|
|
434
|
-
<div class="blank" id="empty" hidden><div class="mascot"></div><b>Nothing here yet</b><p>Notes are markdown files in this project's <code>.kaizen/notes</code> folder. Link them with <code>[[Note name]]</code>, tag them with <code>#tag</code>.</p><button class="btn pri" id="new2">New note</button></div>
|
|
435
|
-
<div class="blank" id="pick" hidden><p>Pick a note on the left, or start a new one.</p></div>
|
|
436
|
-
<article id="pane" hidden>
|
|
437
|
-
<input id="title" aria-label="Note name; a / puts it in a folder" spellcheck="false" autocomplete="off">
|
|
438
|
-
<div id="meta"></div>
|
|
439
|
-
<div id="editor"></div>
|
|
440
|
-
<section class="links" id="links" hidden></section>
|
|
441
|
-
</article>
|
|
442
|
-
</div>
|
|
443
|
-
</main>
|
|
444
|
-
</div>
|
|
445
|
-
</div>
|
|
446
|
-
<div class="toast" id="toast" role="status"></div>
|
|
447
|
-
|
|
448
|
-
<script src="/notebook.js"></script>
|
|
449
|
-
</body>
|
|
450
|
-
</html>
|
|
316
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
:root{--bg-2:#fff;--line:#dedede;--ink:#171717;--dim:#666;--accent:#171717;--danger:#c8322f;color-scheme:light}
|
|
2
|
+
@media(prefers-color-scheme:dark){:root{--bg-2:#1a1a1a;--line:#2e2e2e;--ink:#ededed;--dim:#a0a0a0;--accent:#6b6b6b;--danger:#e85050;color-scheme:dark}}
|
|
3
|
+
:root[data-theme=dark]{--bg-2:#1a1a1a;--line:#2e2e2e;--ink:#ededed;--dim:#a0a0a0;--accent:#6b6b6b;--danger:#e85050;color-scheme:dark}
|
|
4
|
+
:root[data-theme=light]{--bg-2:#fff;--line:#dedede;--ink:#171717;--dim:#666;--accent:#171717;--danger:#c8322f;color-scheme:light}
|
|
5
|
+
*{box-sizing:border-box}
|
|
6
|
+
/* No window background: only the bubbles, the input and the buttons show. */
|
|
7
|
+
html{background:transparent}
|
|
8
|
+
/* A soft dark glow behind the chat, fading to nothing at the edges, so text reads over any wallpaper. */
|
|
9
|
+
body{background:radial-gradient(closest-side at 50% 62%,#0005,#0002 60%,transparent)}
|
|
10
|
+
html,body{margin:0;height:100%;color:var(--ink);font:14px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
|
|
11
|
+
body{display:flex;gap:8px;padding:14px}
|
|
12
|
+
main{flex:1;min-width:0;display:flex;flex-direction:column}
|
|
13
|
+
/* The icon rail beside the chat, level with the input. */
|
|
14
|
+
nav{display:flex;flex-direction:column;gap:8px;padding-bottom:3px}
|
|
15
|
+
nav .sp{flex:1}
|
|
16
|
+
#drag{cursor:grab}
|
|
17
|
+
/* A soft shadow under every floating piece, so it reads over any wallpaper. */
|
|
18
|
+
:root{--shadow:0 1px 2px #0003,0 6px 18px #0006}
|
|
19
|
+
button{display:grid;place-items:center;width:36px;height:36px;padding:0;color:var(--dim);background:var(--bg-2);border:1px solid var(--line);border-radius:50%;cursor:pointer;box-shadow:var(--shadow)}
|
|
20
|
+
button[hidden]{display:none}
|
|
21
|
+
button svg{width:17px;height:17px}
|
|
22
|
+
button.on{color:#fff;background:var(--accent);border-color:var(--accent)}
|
|
23
|
+
button:hover{color:var(--ink);border-color:var(--accent)}
|
|
24
|
+
/* Older bubbles fade out toward the top as the chat grows. */
|
|
25
|
+
#log{flex:1;min-height:0;overflow-y:auto;scrollbar-width:none;margin:0 -6px 0 -14px;padding:10px 6px 10px 14px;display:flex;flex-direction:column;gap:8px;-webkit-mask-image:linear-gradient(transparent,#000 22%);mask-image:linear-gradient(transparent,#000 22%)}
|
|
26
|
+
#log::-webkit-scrollbar{display:none}
|
|
27
|
+
#log>:first-child{margin-top:auto}
|
|
28
|
+
.m{max-width:85%;padding:8px 12px;border-radius:18px;white-space:pre-wrap;word-wrap:break-word;box-shadow:var(--shadow)}
|
|
29
|
+
.m.pop{animation:pop .28s cubic-bezier(.2,1.4,.4,1) both}
|
|
30
|
+
@keyframes pop{from{opacity:0;transform:translateY(10px) scale(.85)}}
|
|
31
|
+
.u{align-self:flex-end;background:var(--accent);color:#fff;border-bottom-right-radius:6px;transform-origin:bottom right}
|
|
32
|
+
.a{align-self:flex-start;background:var(--bg-2);border:1px solid var(--line);border-bottom-left-radius:6px;transform-origin:bottom left}
|
|
33
|
+
.a.wait{color:var(--dim);font-style:italic}
|
|
34
|
+
.err{color:var(--danger)}
|
|
35
|
+
form{display:flex;margin-top:6px}
|
|
36
|
+
textarea{flex:1;resize:none;font:inherit;color:inherit;background:var(--bg-2);border:1px solid var(--line);border-radius:22px;padding:9px 16px;max-height:140px;outline:none;box-shadow:var(--shadow)}
|
|
37
|
+
textarea:focus{border-color:var(--accent)}
|
|
38
|
+
@media(prefers-reduced-motion:reduce){.m.pop{animation:none}}
|
|
39
|
+
/* the page's one React root: its children lay out as body's own */
|
|
40
|
+
#root{display:contents}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Popover as PopoverPrimitive } from "radix-ui";
|
|
2
|
+
import type { ComponentProps } from "react";
|
|
3
|
+
import { cn, portalRoot } from "@lib/core/utils.ts";
|
|
4
|
+
|
|
5
|
+
export const Popover = PopoverPrimitive.Root;
|
|
6
|
+
export const PopoverTrigger = PopoverPrimitive.Trigger;
|
|
7
|
+
export const PopoverAnchor = PopoverPrimitive.Anchor;
|
|
8
|
+
// A raised card: card colour, soft border, 10px radius, the second shadow.
|
|
9
|
+
export function PopoverContent({
|
|
10
|
+
className,
|
|
11
|
+
align = "end",
|
|
12
|
+
sideOffset = 4,
|
|
13
|
+
...props
|
|
14
|
+
}: ComponentProps<typeof PopoverPrimitive.Content>) {
|
|
15
|
+
return (
|
|
16
|
+
<PopoverPrimitive.Portal container={portalRoot()}>
|
|
17
|
+
<PopoverPrimitive.Content
|
|
18
|
+
align={align}
|
|
19
|
+
sideOffset={sideOffset}
|
|
20
|
+
className={cn(
|
|
21
|
+
"z-50 max-w-[calc(100vw-32px)] rounded-md border border-border bg-card p-1.5 text-base text-foreground shadow-md outline-none animate-fade-in",
|
|
22
|
+
className,
|
|
23
|
+
)}
|
|
24
|
+
{...props}
|
|
25
|
+
/>
|
|
26
|
+
</PopoverPrimitive.Portal>
|
|
27
|
+
);
|
|
28
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { Select as SelectPrimitive } from "radix-ui";
|
|
2
|
+
import type { ComponentProps } from "react";
|
|
3
|
+
import { cn, portalRoot } from "@lib/core/utils.ts";
|
|
4
|
+
import { Icon } from "./icon.tsx";
|
|
5
|
+
|
|
6
|
+
export const Select = SelectPrimitive.Root;
|
|
7
|
+
export const SelectValue = SelectPrimitive.Value;
|
|
8
|
+
// The board's .sel dropdown: 32px (sm: 28px), chevron on the right.
|
|
9
|
+
export function SelectTrigger({
|
|
10
|
+
className,
|
|
11
|
+
size = "md",
|
|
12
|
+
children,
|
|
13
|
+
...props
|
|
14
|
+
}: ComponentProps<typeof SelectPrimitive.Trigger> & { size?: "sm" | "md" }) {
|
|
15
|
+
return (
|
|
16
|
+
<SelectPrimitive.Trigger
|
|
17
|
+
className={cn(
|
|
18
|
+
"inline-flex max-w-full items-center justify-between gap-2 rounded-sm border border-border bg-card px-2.5 text-base text-foreground hover:border-muted-foreground data-[placeholder]:text-muted-foreground",
|
|
19
|
+
size === "sm" ? "h-7 text-sm" : "h-(--btn-s)",
|
|
20
|
+
className,
|
|
21
|
+
)}
|
|
22
|
+
{...props}
|
|
23
|
+
>
|
|
24
|
+
<span className="min-w-0 truncate">{children}</span>
|
|
25
|
+
<SelectPrimitive.Icon asChild>
|
|
26
|
+
<Icon name="chev" className="size-3 shrink-0 text-muted-foreground" />
|
|
27
|
+
</SelectPrimitive.Icon>
|
|
28
|
+
</SelectPrimitive.Trigger>
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
export function SelectContent({ className, children, ...props }: ComponentProps<typeof SelectPrimitive.Content>) {
|
|
32
|
+
return (
|
|
33
|
+
<SelectPrimitive.Portal container={portalRoot()}>
|
|
34
|
+
<SelectPrimitive.Content
|
|
35
|
+
position="popper"
|
|
36
|
+
sideOffset={4}
|
|
37
|
+
className={cn(
|
|
38
|
+
"z-50 max-h-72 min-w-(--radix-select-trigger-width) max-w-[calc(100vw-32px)] overflow-hidden rounded-md border border-border bg-card p-1.5 text-base text-foreground shadow-md animate-fade-in",
|
|
39
|
+
className,
|
|
40
|
+
)}
|
|
41
|
+
{...props}
|
|
42
|
+
>
|
|
43
|
+
<SelectPrimitive.Viewport>{children}</SelectPrimitive.Viewport>
|
|
44
|
+
</SelectPrimitive.Content>
|
|
45
|
+
</SelectPrimitive.Portal>
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
export const SelectItem = ({ className, children, ...props }: ComponentProps<typeof SelectPrimitive.Item>) => (
|
|
49
|
+
<SelectPrimitive.Item
|
|
50
|
+
className={cn(
|
|
51
|
+
"flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-muted-foreground outline-none data-[highlighted]:bg-muted data-[highlighted]:text-foreground data-[state=checked]:font-medium data-[state=checked]:text-foreground",
|
|
52
|
+
className,
|
|
53
|
+
)}
|
|
54
|
+
{...props}
|
|
55
|
+
>
|
|
56
|
+
<SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>
|
|
57
|
+
<SelectPrimitive.ItemIndicator className="ml-auto">
|
|
58
|
+
<Icon name="check" className="size-3.5 text-primary" />
|
|
59
|
+
</SelectPrimitive.ItemIndicator>
|
|
60
|
+
</SelectPrimitive.Item>
|
|
61
|
+
);
|
package/web/ui/sheet.tsx
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Dialog as DialogPrimitive } from "radix-ui";
|
|
2
|
+
import type { ComponentProps } from "react";
|
|
3
|
+
import { cn, portalRoot } from "@lib/core/utils.ts";
|
|
4
|
+
|
|
5
|
+
export const Sheet = DialogPrimitive.Root;
|
|
6
|
+
export const SheetTrigger = DialogPrimitive.Trigger;
|
|
7
|
+
export const SheetClose = DialogPrimitive.Close;
|
|
8
|
+
export const SheetTitle = ({ className, ...props }: ComponentProps<typeof DialogPrimitive.Title>) => (
|
|
9
|
+
<DialogPrimitive.Title className={cn("text-[16px] font-semibold text-strong", className)} {...props} />
|
|
10
|
+
);
|
|
11
|
+
export const SheetDescription = DialogPrimitive.Description;
|
|
12
|
+
// The board's right-hand drawer (the run panel's aside rules): full height, 520px, the page behind it dimmed and
|
|
13
|
+
// blurred. Opens and closes with a slide; Escape, the backdrop and SheetClose shut it, and focus goes back to
|
|
14
|
+
// the control that opened it.
|
|
15
|
+
export function SheetContent({ className, ...props }: ComponentProps<typeof DialogPrimitive.Content>) {
|
|
16
|
+
return (
|
|
17
|
+
<DialogPrimitive.Portal container={portalRoot()}>
|
|
18
|
+
<DialogPrimitive.Overlay className="fixed inset-0 z-50 bg-[color-mix(in_srgb,var(--bg)_60%,transparent)] backdrop-blur-[3px] data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=open]:animate-in data-[state=open]:fade-in" />
|
|
19
|
+
<DialogPrimitive.Content
|
|
20
|
+
className={cn(
|
|
21
|
+
"fixed inset-y-0 right-0 z-50 flex w-[520px] max-w-full flex-col border-l border-border bg-card text-foreground shadow-md outline-none data-[state=closed]:animate-out data-[state=closed]:slide-out-to-right data-[state=open]:animate-in data-[state=open]:slide-in-from-right",
|
|
22
|
+
className,
|
|
23
|
+
)}
|
|
24
|
+
{...props}
|
|
25
|
+
/>
|
|
26
|
+
</DialogPrimitive.Portal>
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
// A sheet rising from the bottom of a phone screen (the board's .pagsheet): full width, rounded top, the page dimmed.
|
|
30
|
+
export function BottomSheetContent({ className, ...props }: ComponentProps<typeof DialogPrimitive.Content>) {
|
|
31
|
+
return (
|
|
32
|
+
<DialogPrimitive.Portal container={portalRoot()}>
|
|
33
|
+
<DialogPrimitive.Overlay className="fixed inset-0 z-50 bg-black/45 data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=open]:animate-in data-[state=open]:fade-in" />
|
|
34
|
+
<DialogPrimitive.Content
|
|
35
|
+
className={cn(
|
|
36
|
+
"fixed inset-x-0 bottom-0 z-50 flex max-h-[85dvh] flex-col overflow-y-auto rounded-t-[16px] border-t border-border bg-card px-4 pb-[calc(20px+env(safe-area-inset-bottom))] pt-3 text-foreground outline-none data-[state=closed]:animate-out data-[state=closed]:slide-out-to-bottom data-[state=open]:animate-in data-[state=open]:slide-in-from-bottom",
|
|
37
|
+
className,
|
|
38
|
+
)}
|
|
39
|
+
{...props}
|
|
40
|
+
/>
|
|
41
|
+
</DialogPrimitive.Portal>
|
|
42
|
+
);
|
|
43
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ComponentProps } from "react";
|
|
2
|
+
import { cn } from "@lib/core/utils.ts";
|
|
3
|
+
|
|
4
|
+
export const Skeleton = ({ className, ...props }: ComponentProps<"span">) => (
|
|
5
|
+
<span className={cn("block rounded-sm bg-muted motion-safe:animate-pulse", className)} {...props} />
|
|
6
|
+
);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Toaster as Sonner } from "sonner";
|
|
2
|
+
|
|
3
|
+
// The one toaster, mounted once by each app (the board's portal, the Notebook's App). It looks like a Popover: the card
|
|
4
|
+
// colour, the soft border and the text colour of the page, in the app's own light or dark (`theme`, from the shell store),
|
|
5
|
+
// bottom left.
|
|
6
|
+
export const Toaster = ({ theme = "system" }: { theme?: "light" | "dark" | "system" }) => (
|
|
7
|
+
<Sonner
|
|
8
|
+
theme={theme}
|
|
9
|
+
position="bottom-left"
|
|
10
|
+
offset={{ left: 28, bottom: 56 }}
|
|
11
|
+
mobileOffset={{ left: 16, bottom: 68 }}
|
|
12
|
+
style={
|
|
13
|
+
{
|
|
14
|
+
"--normal-bg": "var(--bg-2)",
|
|
15
|
+
"--normal-text": "var(--ink)",
|
|
16
|
+
"--normal-border": "var(--line)",
|
|
17
|
+
fontFamily: "var(--font)",
|
|
18
|
+
} as React.CSSProperties
|
|
19
|
+
}
|
|
20
|
+
toastOptions={{
|
|
21
|
+
className: "toast",
|
|
22
|
+
style: { fontSize: "var(--fs)", borderRadius: "var(--r)", boxShadow: "var(--shadow-2)" },
|
|
23
|
+
}}
|
|
24
|
+
/>
|
|
25
|
+
);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { cn } from "@lib/core/utils.ts";
|
|
2
|
+
|
|
3
|
+
// The building spinner: a ring with one dark quarter. Still when motion is off.
|
|
4
|
+
export const Spinner = ({ className }: { className?: string }) => (
|
|
5
|
+
<span
|
|
6
|
+
aria-hidden="true"
|
|
7
|
+
className={cn(
|
|
8
|
+
"block size-[22px] rounded-full border-2 border-border border-t-foreground motion-safe:animate-spin",
|
|
9
|
+
className,
|
|
10
|
+
)}
|
|
11
|
+
/>
|
|
12
|
+
);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Switch as SwitchPrimitive } from "radix-ui";
|
|
2
|
+
import type { ComponentProps } from "react";
|
|
3
|
+
import { cn } from "@lib/core/utils.ts";
|
|
4
|
+
|
|
5
|
+
// The board's one switch (.chk): off is a quiet track, on is the accent; `sm` is the compact size.
|
|
6
|
+
export function Switch({ className, ...props }: ComponentProps<typeof SwitchPrimitive.Root>) {
|
|
7
|
+
return (
|
|
8
|
+
<SwitchPrimitive.Root
|
|
9
|
+
className={cn(
|
|
10
|
+
"inline-flex h-5 w-9 shrink-0 items-center rounded-full border border-border bg-muted p-0.5 transition-colors data-[state=checked]:border-primary data-[state=checked]:bg-primary",
|
|
11
|
+
className,
|
|
12
|
+
)}
|
|
13
|
+
{...props}
|
|
14
|
+
>
|
|
15
|
+
<SwitchPrimitive.Thumb className="block size-3.5 rounded-full bg-card shadow-sm transition-transform data-[state=checked]:translate-x-4 data-[state=checked]:bg-primary-foreground" />
|
|
16
|
+
</SwitchPrimitive.Root>
|
|
17
|
+
);
|
|
18
|
+
}
|
package/web/ui/tabs.tsx
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Tabs as TabsPrimitive } from "radix-ui";
|
|
2
|
+
import type { ComponentProps } from "react";
|
|
3
|
+
import { cn } from "@lib/core/utils.ts";
|
|
4
|
+
|
|
5
|
+
export const Tabs = TabsPrimitive.Root;
|
|
6
|
+
export const TabsList = ({ className, ...props }: ComponentProps<typeof TabsPrimitive.List>) => (
|
|
7
|
+
<TabsPrimitive.List className={cn("flex items-center gap-0.5", className)} {...props} />
|
|
8
|
+
);
|
|
9
|
+
// A tab is a quiet pill; the selected one is filled. Content stays with the caller (it draws the page itself).
|
|
10
|
+
export const TabsTrigger = ({ className, ...props }: ComponentProps<typeof TabsPrimitive.Trigger>) => (
|
|
11
|
+
<TabsPrimitive.Trigger
|
|
12
|
+
className={cn(
|
|
13
|
+
"inline-flex min-h-[26px] items-center gap-1.5 rounded-full px-2 text-sm text-muted-foreground data-[state=active]:bg-[color-mix(in_srgb,var(--dim)_14%,transparent)] data-[state=active]:font-medium data-[state=active]:text-foreground",
|
|
14
|
+
className,
|
|
15
|
+
)}
|
|
16
|
+
{...props}
|
|
17
|
+
/>
|
|
18
|
+
);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ComponentProps } from "react";
|
|
2
|
+
import { cn } from "@lib/core/utils.ts";
|
|
3
|
+
|
|
4
|
+
export function Textarea({ className, ...props }: ComponentProps<"textarea">) {
|
|
5
|
+
return (
|
|
6
|
+
<textarea
|
|
7
|
+
className={cn(
|
|
8
|
+
"w-full resize-none bg-transparent text-base leading-normal text-foreground outline-none placeholder:text-muted-foreground",
|
|
9
|
+
className,
|
|
10
|
+
)}
|
|
11
|
+
{...props}
|
|
12
|
+
/>
|
|
13
|
+
);
|
|
14
|
+
}
|