@kabmo-labs/kabmo 0.21.0 → 0.22.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 +7 -2
- package/dist/client/index.html +9 -8
- package/dist/client/index.js +334 -334
- package/dist/client/static/js/{index-zg32n2sk.js → index-297dck9a.js} +784 -791
- package/dist/client/static/js/index-7ppta1pb.css +1 -0
- package/extensions/kabmo-modes/commands.ts +17 -3
- package/extensions/kabmo-modes/goal-start.ts +101 -0
- package/extensions/kabmo-modes/goal.test.ts +80 -5
- package/extensions/kabmo-modes/goal.ts +13 -38
- package/extensions/kabmo-modes/prompts.test.ts +12 -0
- package/extensions/kabmo-modes/prompts.ts +9 -2
- package/index.html +8 -7
- package/package.json +2 -2
- package/src/cli/lib/args.js +9 -0
- package/src/cli/lib/args.test.js +26 -0
- package/src/cli/lib/commands/doctor.js +153 -0
- package/src/cli/lib/commands/doctor.test.js +139 -0
- package/src/cli/lib/commands/serve.js +23 -10
- package/src/cli/lib/commands/status.js +22 -3
- package/src/cli/lib/omp-setup.js +131 -0
- package/src/cli/lib/omp-setup.test.js +115 -0
- package/src/cli/main.js +1 -1
- package/src/client/components/common/DemoDataBadge.tsx +52 -0
- package/src/client/components/common/FolderPicker.tsx +2 -2
- package/src/client/components/common/Modal.tsx +15 -1
- package/src/client/components/common/code-surface/blame-panel.ts +1 -1
- package/src/client/components/common/context-usage-button/index.test.tsx +1 -1
- package/src/client/components/common/context-usage-button/index.tsx +4 -4
- package/src/client/components/common/demo-data-badge.test.tsx +58 -0
- package/src/client/components/common/diagram-viewer/index.tsx +2 -2
- package/src/client/components/common/editor-view-buttons/index.tsx +2 -2
- package/src/client/components/common/header-controls/MoreMenu.tsx +1 -1
- package/src/client/components/common/header-controls/index.tsx +4 -1
- package/src/client/components/common/markdown-review/ReviewPopover.tsx +2 -2
- package/src/client/components/common/markdown-review/ReviewSummary.tsx +1 -1
- package/src/client/components/common/panel-mark/index.tsx +2 -1
- package/src/client/components/common/server-control/Panel.tsx +3 -3
- package/src/client/components/common/server-control/index.tsx +1 -1
- package/src/client/components/common/shell-update-button/Modal.tsx +1 -1
- package/src/client/components/common/todo-row/index.tsx +1 -1
- package/src/client/components/layout/ActivityBar.tsx +4 -0
- package/src/client/components/layout/ShellNotice.tsx +33 -0
- package/src/client/components/layout/desktop-layout/index.tsx +14 -16
- package/src/client/components/layout/desktop-layout/resizer/index.tsx +14 -1
- package/src/client/components/layout/session-sidebar/CategoryHeader.tsx +2 -1
- package/src/client/components/layout/session-sidebar/ClassicView.tsx +5 -1
- package/src/client/components/layout/session-sidebar/SessionList.tsx +1 -1
- package/src/client/components/layout/session-sidebar/SessionListNotice.tsx +56 -0
- package/src/client/components/layout/session-sidebar/SessionsView.tsx +2 -0
- package/src/client/components/layout/session-sidebar/about-modal/UpdateSection.tsx +1 -1
- package/src/client/components/layout/session-sidebar/about-modal/index.tsx +12 -1
- package/src/client/components/layout/session-sidebar/modern/WorkspaceHeader.tsx +2 -1
- package/src/client/components/layout/session-sidebar/modern/index.tsx +6 -2
- package/src/client/components/layout/session-sidebar/new-workspace-modal/CloneField.tsx +1 -1
- package/src/client/components/layout/session-sidebar/new-workspace-modal/index.tsx +2 -2
- package/src/client/components/layout/session-sidebar/scheduler-modal/TaskForm.tsx +1 -1
- package/src/client/components/layout/session-sidebar/scheduler-modal/TaskList.tsx +3 -3
- package/src/client/components/layout/session-sidebar/scheduler-modal/index.tsx +1 -1
- package/src/client/components/layout/session-sidebar/session-list-states.test.tsx +150 -0
- package/src/client/components/layout/session-sidebar/variant-props.ts +6 -0
- package/src/client/components/mobile/LayoutWrapper.tsx +20 -30
- package/src/client/components/mobile/MainView.tsx +5 -2
- package/src/client/components/mobile/RightSidebar.tsx +1 -1
- package/src/client/components/mobile/SessionSidebar.tsx +3 -0
- package/src/client/components/mobile/mobile-main-view/Header.tsx +2 -2
- package/src/client/components/mobile/mobile-session-sidebar/ClassicDrawer.tsx +7 -1
- package/src/client/components/mobile/mobile-session-sidebar/Toolbar.tsx +1 -1
- package/src/client/components/settings/Modal.tsx +15 -1
- package/src/client/components/settings/ProjectSelectorDropdown.tsx +1 -1
- package/src/client/components/settings/Sidebar.tsx +2 -2
- package/src/client/components/settings/categories/OmpSettings.tsx +1 -1
- package/src/client/components/settings/categories/TokenUsageSettings.tsx +1 -1
- package/src/client/components/settings/categories/agent-settings/DetailPane.tsx +3 -3
- package/src/client/components/settings/categories/appearance-settings/EditorFontSection.tsx +1 -1
- package/src/client/components/settings/categories/appearance-settings/EditorThemeSection.tsx +2 -2
- package/src/client/components/settings/categories/appearance-settings/IconStyleSection.tsx +5 -5
- package/src/client/components/settings/categories/appearance-settings/SidebarStyleSection.tsx +1 -1
- package/src/client/components/settings/categories/appearance-settings/SurfaceStyleSection.tsx +1 -1
- package/src/client/components/settings/categories/appearance-settings/ThemeCard.tsx +1 -1
- package/src/client/components/settings/categories/chat-settings/ComposerStyleSection.tsx +1 -1
- package/src/client/components/settings/categories/chat-settings/GoalSection.tsx +1 -1
- package/src/client/components/settings/categories/command-settings/DetailPane.tsx +2 -2
- package/src/client/components/settings/categories/omp-settings/ConfigTabs.tsx +5 -5
- package/src/client/components/settings/categories/omp-settings/EngineHeader.tsx +3 -3
- package/src/client/components/settings/categories/omp-settings/RoleRow.tsx +2 -2
- package/src/client/components/settings/categories/panel-plugins/LeftDockSettings.tsx +1 -1
- package/src/client/components/settings/categories/panel-plugins/PluginCard.tsx +1 -1
- package/src/client/components/settings/categories/panel-plugins/PluginMark.tsx +4 -3
- package/src/client/components/settings/categories/plugin-settings/SidebarList.tsx +2 -2
- package/src/client/components/settings/categories/project-settings/AddProjectModal.tsx +1 -1
- package/src/client/components/settings/categories/project-settings/NameInput.tsx +1 -1
- package/src/client/components/settings/categories/project-settings/PathField.tsx +1 -1
- package/src/client/components/settings/categories/provider-settings/AddModelModal.tsx +3 -3
- package/src/client/components/settings/categories/provider-settings/AddProviderModal.tsx +1 -1
- package/src/client/components/settings/categories/provider-settings/AuthSection.tsx +2 -2
- package/src/client/components/settings/categories/provider-settings/DeleteProviderModal.tsx +1 -1
- package/src/client/components/settings/categories/provider-settings/EntryAdvanced.tsx +4 -4
- package/src/client/components/settings/categories/provider-settings/EntryModal.tsx +2 -2
- package/src/client/components/settings/categories/provider-settings/LoginModal.tsx +1 -1
- package/src/client/components/settings/categories/provider-settings/ModelCapabilitiesModal.tsx +1 -1
- package/src/client/components/settings/categories/provider-settings/ModelsList.tsx +2 -2
- package/src/client/components/settings/categories/provider-settings/PriceFields.tsx +1 -1
- package/src/client/components/settings/categories/token-usage-settings/Breakdown.tsx +4 -4
- package/src/client/components/settings/categories/token-usage-settings/Chart.tsx +2 -2
- package/src/client/components/settings/categories/token-usage-settings/Controls.tsx +1 -1
- package/src/client/components/settings/categories/token-usage-settings/MetricsGrid.tsx +1 -1
- package/src/client/components/settings/categories/usage-settings/KenariCard.tsx +5 -5
- package/src/client/components/workspace/browser-panel/AddressBar.tsx +1 -1
- package/src/client/components/workspace/browser-panel/Screencast.tsx +6 -6
- package/src/client/components/workspace/browser-panel/TabStrip.tsx +1 -1
- package/src/client/components/workspace/browser-panel/index.tsx +1 -1
- package/src/client/components/workspace/browser-toolbar/index.tsx +5 -5
- package/src/client/components/workspace/chat-timeline/AttachmentChips.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/GeneratingIndicator.tsx +13 -26
- package/src/client/components/workspace/chat-timeline/GoalNotice.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/MessageItem.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/MinimapShortcuts.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/QueueList.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/SubagentView.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/SystemNotice.tsx +5 -5
- package/src/client/components/workspace/chat-timeline/TaskResultContent.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/ThinkingSection.tsx +4 -4
- package/src/client/components/workspace/chat-timeline/ToolCallingSection.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/AccessDropdown.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/ArmedGoalStrip.tsx +71 -0
- package/src/client/components/workspace/chat-timeline/chat-input/AttachmentToolbar.tsx +4 -3
- package/src/client/components/workspace/chat-timeline/chat-input/GoalBanner.test.ts +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/GoalBanner.tsx +3 -3
- package/src/client/components/workspace/chat-timeline/chat-input/GoalModal.test.ts +176 -0
- package/src/client/components/workspace/chat-timeline/chat-input/GoalModal.tsx +70 -81
- package/src/client/components/workspace/chat-timeline/chat-input/GoalSurfaces.tsx +10 -1
- package/src/client/components/workspace/chat-timeline/chat-input/ModeToggles.test.ts +20 -0
- package/src/client/components/workspace/chat-timeline/chat-input/ModeToggles.tsx +13 -7
- package/src/client/components/workspace/chat-timeline/chat-input/ThinkingLevelDropdown.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/Toolbar.test.ts +65 -3
- package/src/client/components/workspace/chat-timeline/chat-input/Toolbar.tsx +69 -19
- package/src/client/components/workspace/chat-timeline/chat-input/WaitingDependencyPicker.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/chat-input/composer-portal.test.tsx +174 -0
- package/src/client/components/workspace/chat-timeline/chat-input/goal-modal-parts.tsx +80 -0
- package/src/client/components/workspace/chat-timeline/chat-input/modes-props.ts +15 -3
- package/src/client/components/workspace/chat-timeline/chat-input/styles.test.tsx +3 -1
- package/src/client/components/workspace/chat-timeline/plan-review/index.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/target-picker/WorkspacePicker.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/target-picker/WorktreePicker.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/FrameControl.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/OptionRow.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/OrphanAsks.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/QuestionBlock.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/QuestionCard.tsx +4 -4
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/index.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/extension-dialog/Header.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/extension-dialog/SelectBody.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/hashline-patch/index.tsx +4 -4
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/AstEdit.tsx +6 -6
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Bash.tsx +13 -13
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Checkpoint.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/ContextNotes.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Debug.tsx +3 -3
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Edit.tsx +9 -9
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Eval.tsx +10 -10
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/FileMatches.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Goal.tsx +5 -5
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/GoalRecord.tsx +5 -5
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Lsp.tsx +6 -6
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/ManageSkill.tsx +5 -5
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Mcp.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Memory.tsx +3 -3
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Proc.tsx +15 -15
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Read.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Resolve.tsx +4 -4
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/SearchFs.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/SearchTool.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/SecurityScan.tsx +4 -4
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/TaskResult.tsx +7 -7
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Think.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Todo.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Wait.missing.test.ts +4 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Wait.tsx +17 -17
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/WebSearch.tsx +3 -3
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ArtifactChip.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/EnvelopeHeader.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ExcerptCode.tsx +3 -3
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/FallbackOutput.tsx +3 -3
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/JsonCodeBlock.tsx +3 -3
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/OutputWindow.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolBody.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolFactChips.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolPanelHeader.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/styles/Minimal.tsx +1 -1
- package/src/client/components/workspace/context-panel/RawJsonViewer.tsx +2 -2
- package/src/client/components/workspace/context-panel/StatsGrid.tsx +1 -1
- package/src/client/components/workspace/context-panel/index.tsx +1 -1
- package/src/client/components/workspace/diff-panel/ConflictBanner.tsx +1 -1
- package/src/client/components/workspace/editor/EmptyEditor.tsx +1 -1
- package/src/client/components/workspace/editor/FindWidget.tsx +1 -1
- package/src/client/components/workspace/editor/Tabs.tsx +1 -1
- package/src/client/components/workspace/editor/Toolbar.tsx +1 -1
- package/src/client/components/workspace/file-explorer/OutlineSection.tsx +2 -2
- package/src/client/components/workspace/file-explorer/RowLabel.tsx +1 -1
- package/src/client/components/workspace/file-explorer/index.tsx +1 -1
- package/src/client/components/workspace/git-panel/BranchToolbar.tsx +2 -2
- package/src/client/components/workspace/git-panel/ChangesList.tsx +3 -3
- package/src/client/components/workspace/git-panel/ConflictItem.tsx +3 -3
- package/src/client/components/workspace/git-panel/FileItem.tsx +2 -2
- package/src/client/components/workspace/git-panel/StashSection.tsx +5 -5
- package/src/client/components/workspace/git-panel/TreeItem.tsx +2 -2
- package/src/client/components/workspace/git-panel/branch-modal/BranchRow.tsx +4 -4
- package/src/client/components/workspace/git-panel/branch-modal/DeleteDialog.tsx +2 -2
- package/src/client/components/workspace/git-panel/index.tsx +1 -1
- package/src/client/components/workspace/model-dropdown/Item.tsx +3 -3
- package/src/client/components/workspace/model-dropdown/Section.tsx +1 -1
- package/src/client/components/workspace/model-dropdown/index.tsx +3 -3
- package/src/client/components/workspace/plan-panel/index.tsx +2 -2
- package/src/client/components/workspace/repo-picker/Modal.tsx +1 -1
- package/src/client/components/workspace/repo-picker/Row.tsx +6 -6
- package/src/client/components/workspace/search-panel/Body.tsx +2 -2
- package/src/client/components/workspace/search-panel/Results.tsx +1 -1
- package/src/client/components/workspace/search-panel/index.tsx +1 -1
- package/src/client/components/workspace/terminal-panel/index.tsx +1 -1
- package/src/client/components/workspace/todo-panel/PhaseGroup.tsx +1 -1
- package/src/client/components/workspace/todo-panel/index.tsx +2 -2
- package/src/client/components/workspace/user-browser-panel/AddressBar.tsx +5 -5
- package/src/client/components/workspace/user-browser-panel/AnnotateBar.test.tsx +13 -13
- package/src/client/components/workspace/user-browser-panel/AnnotateBar.tsx +4 -4
- package/src/client/components/workspace/user-browser-panel/AnnotateLayer.tsx +1 -1
- package/src/client/components/workspace/user-browser-panel/AnnotateTarget.tsx +7 -7
- package/src/client/components/workspace/user-browser-panel/Frame.tsx +1 -1
- package/src/client/components/workspace/wiki-panel/Nav.tsx +1 -1
- package/src/client/components/workspace/wiki-panel/index.tsx +2 -2
- package/src/client/glass.css +50 -0
- package/src/client/glass.test.ts +68 -24
- package/src/client/hooks/chat/composer/browser-context.test.ts +6 -6
- package/src/client/hooks/chat/composer/use-draft.test.ts +2 -2
- package/src/client/hooks/chat/omp/prompt-send.test.ts +36 -0
- package/src/client/hooks/chat/omp/prompt-send.ts +24 -18
- package/src/client/hooks/chat/omp/session-list.tsx +24 -70
- package/src/client/hooks/chat/omp/session-merges.ts +89 -0
- package/src/client/hooks/chat/omp/session-sidebar-controller.ts +4 -1
- package/src/client/hooks/chat/timeline/armed-goal-send.test.ts +168 -0
- package/src/client/hooks/chat/timeline/armed-goal.test.ts +178 -0
- package/src/client/hooks/chat/timeline/goal-command.ts +57 -27
- package/src/client/hooks/chat/timeline/index.ts +7 -4
- package/src/client/hooks/chat/timeline/mode-post.ts +46 -0
- package/src/client/hooks/chat/timeline/modes-contract.ts +94 -0
- package/src/client/hooks/chat/timeline/modes.ts +60 -95
- package/src/client/hooks/chat/timeline/send-props.ts +97 -0
- package/src/client/hooks/chat/timeline/send-steer.test.ts +6 -0
- package/src/client/hooks/chat/timeline/send.test-util.ts +55 -8
- package/src/client/hooks/chat/timeline/send.test.ts +17 -1
- package/src/client/hooks/chat/timeline/send.ts +64 -72
- package/src/client/hooks/ui/dialog-behaviour.ts +143 -0
- package/src/client/hooks/ui/theme.ts +17 -0
- package/src/client/hooks/workspace/copy-tab-path.ts +23 -0
- package/src/client/hooks/workspace/mobile-back.ts +71 -0
- package/src/client/palette-class.test.ts +93 -0
- package/src/client/tailwind-contrast.test.ts +194 -0
- package/src/client/tailwind.css +327 -8
- package/src/server/lib/assets/theme-shell.server.ts +4 -10
- package/src/server/lib/omp/config/provider-seeds.test.ts +39 -1
- package/src/server/lib/omp/config/provider-seeds.ts +32 -3
- package/src/server/lib/omp/config/provider-vision-compat.test.ts +140 -0
- package/src/server/lib/omp/core/host-resolution.test.ts +1 -55
- package/src/server/lib/omp/core/install-hint.test.ts +48 -0
- package/src/server/lib/omp/core/install-hint.ts +64 -0
- package/src/server/lib/omp/core/startup.test.ts +125 -0
- package/src/server/lib/omp/core/startup.ts +5 -1
- package/src/server/lib/omp/mode/request.ts +14 -6
- package/src/server/plugins/ssr.ts +2 -1
- package/src/shared/lib/browser/annotate.test.ts +22 -22
- package/src/shared/lib/browser/annotate.ts +14 -14
- package/src/shared/lib/browser/page-context.ts +6 -6
- package/src/shared/lib/icons/icon-paint-authority.test.ts +86 -0
- package/src/shared/lib/icons/icon-paint-authority.ts +94 -0
- package/src/shared/lib/icons/icon-paint-css.test.ts +139 -25
- package/src/shared/lib/icons/icon-paint-css.ts +76 -50
- package/src/shared/lib/icons/icon-paint-panel.ts +15 -18
- package/src/shared/lib/icons/icon-paint-weight.ts +142 -0
- package/src/shared/lib/icons/icon-tone.ts +58 -13
- package/src/shared/lib/icons/tint-hues.generated.ts +51 -6
- package/src/shared/lib/icons/tint-tones.test.ts +257 -0
- package/src/shared/lib/icons/tint.test.ts +3 -211
- package/src/shared/lib/icons/tint.ts +23 -25
- package/src/shared/lib/omp/mode/actions.ts +40 -0
- package/src/shared/lib/omp/mode/types.ts +12 -0
- package/src/shared/lib/theme/css.ts +21 -0
- package/src/shared/lib/theme/first-frame.ts +38 -0
- package/src/shared/lib/theme/ink-scale.test.ts +151 -0
- package/src/shared/lib/theme/ink-scale.ts +103 -0
- package/src/shared/lib/theme/shell-palette.test.ts +22 -5
- package/src/shared/lib/theme/shell-palette.ts +9 -4
- package/src/shared/lib/theme/theme.test.ts +28 -3
- package/src/shared/lib/workspace/project-accent.test.ts +33 -1
- package/src/shared/lib/workspace/project-accent.ts +23 -0
- package/src/shared/types/omp/agent.ts +24 -9
- package/dist/client/static/js/index-0721wrkf.css +0 -1
|
@@ -103,7 +103,7 @@ export function TaskResult({ tool }: { tool: ToolCallData }) {
|
|
|
103
103
|
{rows.length > 0 && (
|
|
104
104
|
<div className="overflow-hidden rounded-lg border border-ink/8 bg-paper">
|
|
105
105
|
<div className="flex items-center gap-2 border-b border-ink/8 px-2.5 py-1.5">
|
|
106
|
-
<span className="flex items-center gap-1 text-[
|
|
106
|
+
<span className="flex items-center gap-1 text-[10px] font-semibold uppercase tracking-[0.14em] text-ink/50">
|
|
107
107
|
<Bot size={11} className="text-ink/60" />
|
|
108
108
|
Subagents
|
|
109
109
|
</span>
|
|
@@ -134,11 +134,11 @@ export function TaskResult({ tool }: { tool: ToolCallData }) {
|
|
|
134
134
|
{name || agent}
|
|
135
135
|
</span>
|
|
136
136
|
{name && (
|
|
137
|
-
<span className="rounded bg-ink/5 px-1.5 py-0.2 font-mono text-[
|
|
137
|
+
<span className="rounded bg-ink/5 px-1.5 py-0.2 font-mono text-[10px] text-ink/50">
|
|
138
138
|
{agent}
|
|
139
139
|
</span>
|
|
140
140
|
)}
|
|
141
|
-
<span className="ml-auto shrink-0 font-mono text-[
|
|
141
|
+
<span className="ml-auto shrink-0 font-mono text-[10px] text-ink/40">
|
|
142
142
|
{right || (status === 'done' ? 'settled' : 'running')}
|
|
143
143
|
</span>
|
|
144
144
|
</div>
|
|
@@ -156,7 +156,7 @@ export function TaskResult({ tool }: { tool: ToolCallData }) {
|
|
|
156
156
|
onClick={() => setContextExpanded(prev => !prev)}
|
|
157
157
|
className="flex w-full cursor-pointer items-center justify-between px-2.5 py-1.5 text-left transition-colors hover:bg-ink/[0.02]"
|
|
158
158
|
>
|
|
159
|
-
<span className="flex items-center gap-1.5 text-[
|
|
159
|
+
<span className="flex items-center gap-1.5 text-[10px] font-semibold uppercase tracking-[0.14em] text-ink/50">
|
|
160
160
|
<Target size={11} className="text-ink/60" />
|
|
161
161
|
Goal & Constraints
|
|
162
162
|
</span>
|
|
@@ -181,7 +181,7 @@ export function TaskResult({ tool }: { tool: ToolCallData }) {
|
|
|
181
181
|
onClick={() => setTasksExpanded(prev => !prev)}
|
|
182
182
|
className="flex w-full cursor-pointer items-center justify-between px-2.5 py-1.5 text-left transition-colors hover:bg-ink/[0.02]"
|
|
183
183
|
>
|
|
184
|
-
<span className="flex items-center gap-1.5 text-[
|
|
184
|
+
<span className="flex items-center gap-1.5 text-[10px] font-semibold uppercase tracking-[0.14em] text-ink/50">
|
|
185
185
|
<FileText size={11} className="text-ink/60" />
|
|
186
186
|
Task Brief & Specification
|
|
187
187
|
</span>
|
|
@@ -197,7 +197,7 @@ export function TaskResult({ tool }: { tool: ToolCallData }) {
|
|
|
197
197
|
<div className="flex items-center gap-2">
|
|
198
198
|
<span className="font-semibold text-ink text-[12px]">{t.name || `Task #${idx + 1}`}</span>
|
|
199
199
|
{t.agent && (
|
|
200
|
-
<span className="rounded bg-ink/5 px-1.5 py-0.2 font-mono text-[
|
|
200
|
+
<span className="rounded bg-ink/5 px-1.5 py-0.2 font-mono text-[10px] text-ink/60">
|
|
201
201
|
{t.agent}
|
|
202
202
|
</span>
|
|
203
203
|
)}
|
|
@@ -225,7 +225,7 @@ export function TaskResult({ tool }: { tool: ToolCallData }) {
|
|
|
225
225
|
/>
|
|
226
226
|
) : (
|
|
227
227
|
<div className="overflow-hidden rounded-lg border border-ink/8 bg-paper">
|
|
228
|
-
<div className="flex items-center gap-1.5 border-b border-ink/8 px-2.5 py-1.5 text-[
|
|
228
|
+
<div className="flex items-center gap-1.5 border-b border-ink/8 px-2.5 py-1.5 text-[10px] font-semibold uppercase tracking-[0.14em] text-ink/50">
|
|
229
229
|
<Bot size={11} className="text-ink/60" />
|
|
230
230
|
<span>Yield Output</span>
|
|
231
231
|
</div>
|
|
@@ -32,14 +32,14 @@ export function Think({ tool }: { tool: ToolCallData }) {
|
|
|
32
32
|
<div className="flex items-center justify-between border-b border-ink/6 bg-canvas/40 px-3 py-1.5">
|
|
33
33
|
<div className="flex items-center gap-1.5">
|
|
34
34
|
<BrainCircuit size={12} className="text-ink/50" />
|
|
35
|
-
<span className="text-[
|
|
35
|
+
<span className="text-[10px] font-semibold uppercase tracking-[0.14em] text-ink/40">
|
|
36
36
|
Internal Reasoning
|
|
37
37
|
</span>
|
|
38
38
|
</div>
|
|
39
39
|
|
|
40
40
|
<CopyButton
|
|
41
41
|
text={thoughtText}
|
|
42
|
-
className="flex cursor-pointer items-center gap-1 rounded px-1.5 py-0.5 text-[
|
|
42
|
+
className="flex cursor-pointer items-center gap-1 rounded px-1.5 py-0.5 text-[10px] text-ink/45 transition-colors hover:bg-ink/5 hover:text-ink"
|
|
43
43
|
label="Copy"
|
|
44
44
|
/>
|
|
45
45
|
</div>
|
|
@@ -35,7 +35,7 @@ function PhaseBlock({ name, index, tasks }: { name: string; index: number; tasks
|
|
|
35
35
|
<span className="text-[10px] font-semibold uppercase tracking-wider text-ink/50">
|
|
36
36
|
{index + 1}. {name}
|
|
37
37
|
</span>
|
|
38
|
-
<span className="font-mono text-[
|
|
38
|
+
<span className="font-mono text-[10px] text-ink/40">
|
|
39
39
|
{closed}/{tasks.length}
|
|
40
40
|
</span>
|
|
41
41
|
</div>
|
|
@@ -69,7 +69,7 @@ export function Todo({ tool }: { tool: ToolCallData }) {
|
|
|
69
69
|
<ListTodo size={13} className="text-ink/60" />
|
|
70
70
|
<span className="text-[11px] font-semibold text-ink">Todo</span>
|
|
71
71
|
{opBadge && (
|
|
72
|
-
<span className="rounded bg-success/10 px-2 py-0.5 font-mono text-[
|
|
72
|
+
<span className="rounded bg-success/10 px-2 py-0.5 font-mono text-[10px] font-medium text-success">
|
|
73
73
|
{opBadge}
|
|
74
74
|
</span>
|
|
75
75
|
)}
|
package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Wait.missing.test.ts
CHANGED
|
@@ -86,8 +86,10 @@ describe('Wait panel — a result it cannot read', () => {
|
|
|
86
86
|
const el = await mount({ type: 'wait', name: 'wait', status: 'success', output: 'Nothing to wait for.', details: {} });
|
|
87
87
|
expect(el.textContent ?? '').toContain('Nothing to wait for.');
|
|
88
88
|
// No clock is invented either: with no start entry and no measured span the
|
|
89
|
-
// stopwatch reads
|
|
90
|
-
|
|
89
|
+
// stopwatch reads an EN DASH, which is the honest answer (an em dash is a
|
|
90
|
+
// punctuation mark the copy rules reserve, so the placeholder is the en
|
|
91
|
+
// dash everywhere in the app).
|
|
92
|
+
expect(el.textContent ?? '').toContain('–');
|
|
91
93
|
});
|
|
92
94
|
|
|
93
95
|
test('a call whose result was never written says so', async () => {
|
|
@@ -160,35 +160,35 @@ function JobRow({ job }: { job: WaitJob }) {
|
|
|
160
160
|
{label.split('\n')[0]}
|
|
161
161
|
</span>
|
|
162
162
|
{typeof percent === 'number' && (
|
|
163
|
-
<span className="shrink-0 font-mono text-[
|
|
163
|
+
<span className="shrink-0 font-mono text-[10px] text-ink/60">{Math.round(percent)}%</span>
|
|
164
164
|
)}
|
|
165
165
|
{job.exitCode !== undefined && (
|
|
166
|
-
<span className={`shrink-0 font-mono text-[
|
|
166
|
+
<span className={`shrink-0 font-mono text-[10px] font-semibold ${job.exitCode === 0 ? TONE_CLASSES.ok : TONE_CLASSES.error}`}>
|
|
167
167
|
exit {job.exitCode}
|
|
168
168
|
</span>
|
|
169
169
|
)}
|
|
170
170
|
{typeof job.durationMs === 'number' && (
|
|
171
|
-
<span className="shrink-0 font-mono text-[
|
|
171
|
+
<span className="shrink-0 font-mono text-[10px] tabular-nums text-ink/40">
|
|
172
172
|
{formatWaitClock(job.durationMs)}
|
|
173
173
|
</span>
|
|
174
174
|
)}
|
|
175
175
|
{job.status && (
|
|
176
|
-
<span className={`shrink-0 font-mono text-[
|
|
176
|
+
<span className={`shrink-0 font-mono text-[10px] font-semibold ${TONE_CLASSES[tone]}`}>{job.status}</span>
|
|
177
177
|
)}
|
|
178
178
|
</div>
|
|
179
179
|
{running && percent !== undefined && (
|
|
180
180
|
<ProgressTrack percent={percent} active />
|
|
181
181
|
)}
|
|
182
182
|
{subject.secondary && (
|
|
183
|
-
<div className="truncate font-mono text-[
|
|
183
|
+
<div className="truncate font-mono text-[10px] text-ink/45" title={subject.secondary}>
|
|
184
184
|
{subject.secondary.split('\n')[0]}
|
|
185
185
|
</div>
|
|
186
186
|
)}
|
|
187
187
|
{progress && (
|
|
188
|
-
<div className="truncate font-mono text-[
|
|
188
|
+
<div className="truncate font-mono text-[10px] text-ink/40">{progress}</div>
|
|
189
189
|
)}
|
|
190
190
|
{job.resolvedModel && (
|
|
191
|
-
<div className="truncate font-mono text-[
|
|
191
|
+
<div className="truncate font-mono text-[10px] text-ink/40">{job.resolvedModel}</div>
|
|
192
192
|
)}
|
|
193
193
|
</div>
|
|
194
194
|
);
|
|
@@ -203,7 +203,7 @@ function AgentRow({ agent }: { agent: WaitAgent }) {
|
|
|
203
203
|
<span className="shrink-0 font-mono text-[10px] font-semibold text-ink/80">{agent.id}</span>
|
|
204
204
|
<span className="min-w-0 flex-1 truncate text-ink/85">{agent.activity ?? 'agent'}</span>
|
|
205
205
|
{typeof agent.ageMs === 'number' && (
|
|
206
|
-
<span className="shrink-0 font-mono text-[
|
|
206
|
+
<span className="shrink-0 font-mono text-[10px] tabular-nums text-ink/40">{formatWaitClock(agent.ageMs)}</span>
|
|
207
207
|
)}
|
|
208
208
|
</div>
|
|
209
209
|
);
|
|
@@ -268,21 +268,21 @@ export function Wait({ tool }: { tool: ToolCallData }) {
|
|
|
268
268
|
<div className="overflow-hidden rounded-lg border border-ink/8 bg-paper px-3 py-2.5">
|
|
269
269
|
<div className="flex items-baseline gap-2">
|
|
270
270
|
<span className="font-mono text-[22px] font-semibold leading-none tabular-nums text-ink">
|
|
271
|
-
{elapsed !== undefined ? formatWaitClock(elapsed) : '
|
|
271
|
+
{elapsed !== undefined ? formatWaitClock(elapsed) : '–'}
|
|
272
272
|
</span>
|
|
273
273
|
<span className="text-[10.5px] text-ink/45">{running ? 'waiting' : 'waited'}</span>
|
|
274
274
|
{interrupted && (
|
|
275
|
-
<span className={`ml-auto font-mono text-[
|
|
275
|
+
<span className={`ml-auto font-mono text-[10px] font-semibold uppercase tracking-wider ${TONE_CLASSES.warn}`}>
|
|
276
276
|
interrupted
|
|
277
277
|
</span>
|
|
278
278
|
)}
|
|
279
279
|
{!interrupted && running && remainingMs !== undefined && (
|
|
280
|
-
<span className="ml-auto font-mono text-[
|
|
280
|
+
<span className="ml-auto font-mono text-[10px] tabular-nums text-ink/40" title="omp caps one wait at 30 minutes">
|
|
281
281
|
{formatWaitClock(remainingMs)} left of {formatWaitClock(WAIT_MAX_MS)}
|
|
282
282
|
</span>
|
|
283
283
|
)}
|
|
284
284
|
{!running && hitLimit && (
|
|
285
|
-
<span className={`ml-auto font-mono text-[
|
|
285
|
+
<span className={`ml-auto font-mono text-[10px] font-semibold uppercase tracking-wider ${TONE_CLASSES.warn}`}>
|
|
286
286
|
limit reached
|
|
287
287
|
</span>
|
|
288
288
|
)}
|
|
@@ -296,7 +296,7 @@ export function Wait({ tool }: { tool: ToolCallData }) {
|
|
|
296
296
|
{/* A peer message that ended the wait — the reason it returned early. */}
|
|
297
297
|
{waited && (
|
|
298
298
|
<div className="overflow-hidden rounded-lg border border-ink/8 bg-paper px-3 py-2">
|
|
299
|
-
<div className="flex items-center gap-1.5 text-[
|
|
299
|
+
<div className="flex items-center gap-1.5 text-[10px] font-semibold uppercase tracking-[0.14em] text-ink/40">
|
|
300
300
|
<MessageSquare size={10} />
|
|
301
301
|
<span>Message</span>
|
|
302
302
|
{waited.from && <span className="font-mono normal-case tracking-normal text-ink/55">from {waited.from}</span>}
|
|
@@ -308,8 +308,8 @@ export function Wait({ tool }: { tool: ToolCallData }) {
|
|
|
308
308
|
{view.jobs.length > 0 && (
|
|
309
309
|
<div className="overflow-hidden rounded-lg border border-ink/8">
|
|
310
310
|
<div className="flex items-center gap-2 border-b border-ink/8 bg-paper px-3 py-1.5">
|
|
311
|
-
<span className="text-[
|
|
312
|
-
<span className="rounded-full bg-ink/5 px-1.5 py-px font-mono text-[
|
|
311
|
+
<span className="text-[10px] font-semibold uppercase tracking-[0.14em] text-ink/40">Jobs</span>
|
|
312
|
+
<span className="rounded-full bg-ink/5 px-1.5 py-px font-mono text-[10px] text-ink/45">{counts.total}</span>
|
|
313
313
|
</div>
|
|
314
314
|
<div className="divide-y divide-ink/6 bg-canvas/40 py-1">
|
|
315
315
|
{view.jobs.map((job, index) => (
|
|
@@ -322,8 +322,8 @@ export function Wait({ tool }: { tool: ToolCallData }) {
|
|
|
322
322
|
{view.agents.length > 0 && (
|
|
323
323
|
<div className="overflow-hidden rounded-lg border border-ink/8">
|
|
324
324
|
<div className="flex items-center gap-2 border-b border-ink/8 bg-paper px-3 py-1.5">
|
|
325
|
-
<span className="text-[
|
|
326
|
-
<span className="rounded-full bg-ink/5 px-1.5 py-px font-mono text-[
|
|
325
|
+
<span className="text-[10px] font-semibold uppercase tracking-[0.14em] text-ink/40">Agents</span>
|
|
326
|
+
<span className="rounded-full bg-ink/5 px-1.5 py-px font-mono text-[10px] text-ink/45">{view.agents.length}</span>
|
|
327
327
|
</div>
|
|
328
328
|
<div className="divide-y divide-ink/6 bg-canvas/40 py-1">
|
|
329
329
|
{view.agents.map((agent, index) => (
|
|
@@ -68,7 +68,7 @@ export function WebSearch({ tool }: { tool: ToolCallData }) {
|
|
|
68
68
|
return (
|
|
69
69
|
<div className="overflow-hidden rounded-lg border border-ink/8 bg-canvas/40">
|
|
70
70
|
{provider && (
|
|
71
|
-
<div className="flex items-center justify-between border-b border-ink/6 bg-paper px-2.5 py-1 text-[
|
|
71
|
+
<div className="flex items-center justify-between border-b border-ink/6 bg-paper px-2.5 py-1 text-[10px]">
|
|
72
72
|
<span className="font-semibold uppercase tracking-wider text-ink/40">Sources</span>
|
|
73
73
|
<span className="rounded bg-ink/5 px-1.5 py-0.2 font-mono text-ink/50 uppercase">
|
|
74
74
|
{provider}
|
|
@@ -82,7 +82,7 @@ export function WebSearch({ tool }: { tool: ToolCallData }) {
|
|
|
82
82
|
return (
|
|
83
83
|
<li key={index} className="px-2.5 py-2 text-[11.5px]">
|
|
84
84
|
<div className="flex items-center gap-1.5">
|
|
85
|
-
<span className="flex h-4 w-4 shrink-0 items-center justify-center rounded bg-ink/5 font-mono text-[
|
|
85
|
+
<span className="flex h-4 w-4 shrink-0 items-center justify-center rounded bg-ink/5 font-mono text-[10px] text-ink/45">
|
|
86
86
|
{index + 1}
|
|
87
87
|
</span>
|
|
88
88
|
<span className="min-w-0 flex-1 truncate font-medium text-ink">{resultTitle(r)}</span>
|
|
@@ -98,7 +98,7 @@ export function WebSearch({ tool }: { tool: ToolCallData }) {
|
|
|
98
98
|
</a>
|
|
99
99
|
)}
|
|
100
100
|
</div>
|
|
101
|
-
<div className="flex items-center gap-2 pl-[22px] font-mono text-[
|
|
101
|
+
<div className="flex items-center gap-2 pl-[22px] font-mono text-[10px] text-ink/40">
|
|
102
102
|
{url && <span className="truncate">{url}</span>}
|
|
103
103
|
{pubDate && (
|
|
104
104
|
<span className="shrink-0 rounded bg-ink/5 px-1 py-0.2 text-[8.5px] text-ink/50">
|
package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ArtifactChip.tsx
CHANGED
|
@@ -127,7 +127,7 @@ function ArtifactModal({ url, elidedBytes, path, onClose }: ArtifactModalProps)
|
|
|
127
127
|
<FileText size={14} className="shrink-0 text-ink/60" />
|
|
128
128
|
<span className="text-[13px] font-semibold text-ink">Full output</span>
|
|
129
129
|
{viewKind && (
|
|
130
|
-
<span className="shrink-0 rounded bg-ink/5 px-1.5 py-0.2 font-mono text-[
|
|
130
|
+
<span className="shrink-0 rounded bg-ink/5 px-1.5 py-0.2 font-mono text-[10px] uppercase tracking-wider text-ink/50">
|
|
131
131
|
{viewKind}
|
|
132
132
|
</span>
|
|
133
133
|
)}
|
package/src/client/components/workspace/chat-timeline/tool-renderers/shared/EnvelopeHeader.tsx
CHANGED
|
@@ -25,14 +25,14 @@ function EnvelopeRow({ envelope }: { envelope: XmlEnvelope }) {
|
|
|
25
25
|
<span className={`flex h-5 w-5 shrink-0 items-center justify-center rounded ${tone.badge}`}>
|
|
26
26
|
{tone.icon}
|
|
27
27
|
</span>
|
|
28
|
-
<span className="text-[
|
|
28
|
+
<span className="text-[10px] font-semibold uppercase tracking-[0.14em] text-ink/60">
|
|
29
29
|
{toTitleCase(envelope.tag)}
|
|
30
30
|
</span>
|
|
31
31
|
{Object.entries(envelope.attributes).map(([key, value]) => (
|
|
32
32
|
<span
|
|
33
33
|
key={key}
|
|
34
34
|
title={`${key}=${value}`}
|
|
35
|
-
className="max-w-[240px] truncate rounded bg-ink/5 px-1.5 py-0.5 font-mono text-[
|
|
35
|
+
className="max-w-[240px] truncate rounded bg-ink/5 px-1.5 py-0.5 font-mono text-[10px] text-ink/60"
|
|
36
36
|
>
|
|
37
37
|
{value ? `${key}=${value}` : key}
|
|
38
38
|
</span>
|
|
@@ -73,20 +73,20 @@ export function ExcerptCode({ lines, path = '', tag }: ExcerptCodeProps) {
|
|
|
73
73
|
<div className="flex min-w-0 items-center gap-2 border-b border-ink/6 bg-canvas/40 px-2.5 py-1.5">
|
|
74
74
|
<span className="truncate font-mono text-[10.5px] font-medium text-ink/70">{path}</span>
|
|
75
75
|
{tag && (
|
|
76
|
-
<span className="shrink-0 rounded bg-ink/5 px-1.5 py-0.5 font-mono text-[
|
|
76
|
+
<span className="shrink-0 rounded bg-ink/5 px-1.5 py-0.5 font-mono text-[10px] uppercase tracking-wider text-ink/45">
|
|
77
77
|
{tag}
|
|
78
78
|
</span>
|
|
79
79
|
)}
|
|
80
80
|
<CopyButton
|
|
81
81
|
text={visibleRows.map((row) => row.code).join('\n')}
|
|
82
|
-
className="ml-auto flex shrink-0 cursor-pointer items-center gap-1 rounded px-1.5 py-0.5 text-[
|
|
82
|
+
className="ml-auto flex shrink-0 cursor-pointer items-center gap-1 rounded px-1.5 py-0.5 text-[10px] text-ink/45 transition-colors hover:bg-ink/5 hover:text-ink"
|
|
83
83
|
iconSize={10}
|
|
84
84
|
label="Copy"
|
|
85
85
|
/>
|
|
86
86
|
</div>
|
|
87
87
|
)}
|
|
88
88
|
{hidden > 0 && (
|
|
89
|
-
<div className="border-b border-ink/6 px-2.5 py-1 font-mono text-[
|
|
89
|
+
<div className="border-b border-ink/6 px-2.5 py-1 font-mono text-[10px] text-ink/45">
|
|
90
90
|
… {hidden} earlier lines hidden
|
|
91
91
|
</div>
|
|
92
92
|
)}
|
package/src/client/components/workspace/chat-timeline/tool-renderers/shared/FallbackOutput.tsx
CHANGED
|
@@ -26,14 +26,14 @@ export function FallbackOutput({ text }: FallbackOutputProps) {
|
|
|
26
26
|
return (
|
|
27
27
|
<div className="space-y-1.5">
|
|
28
28
|
<div className="flex items-center justify-between">
|
|
29
|
-
<div className="flex items-center gap-1.5 text-[
|
|
29
|
+
<div className="flex items-center gap-1.5 text-[10px] font-semibold uppercase tracking-[0.14em] text-ink/40">
|
|
30
30
|
<Code size={11} className="text-ink/40" />
|
|
31
31
|
<span>Output</span>
|
|
32
|
-
<span className="rounded bg-ink/5 px-1.5 py-0.2 font-mono text-[
|
|
32
|
+
<span className="rounded bg-ink/5 px-1.5 py-0.2 font-mono text-[10px] text-ink/45">
|
|
33
33
|
{output.format}
|
|
34
34
|
</span>
|
|
35
35
|
{lines > 1 && (
|
|
36
|
-
<span className="font-mono text-[
|
|
36
|
+
<span className="font-mono text-[10px] text-ink/35">
|
|
37
37
|
{lines} lines
|
|
38
38
|
</span>
|
|
39
39
|
)}
|
package/src/client/components/workspace/chat-timeline/tool-renderers/shared/JsonCodeBlock.tsx
CHANGED
|
@@ -56,17 +56,17 @@ export function JsonCodeBlock({
|
|
|
56
56
|
<span className={`font-mono ${compact ? 'text-[10px]' : 'text-[10.5px]'} font-semibold text-ink truncate`}>
|
|
57
57
|
{title || 'JSON'}
|
|
58
58
|
</span>
|
|
59
|
-
<span className={`rounded bg-ink/5 px-1.5 py-0.2 font-mono ${compact ? 'text-[8.5px]' : 'text-[
|
|
59
|
+
<span className={`rounded bg-ink/5 px-1.5 py-0.2 font-mono ${compact ? 'text-[8.5px]' : 'text-[10px]'} uppercase tracking-wider text-ink/50 shrink-0`}>
|
|
60
60
|
JSON
|
|
61
61
|
</span>
|
|
62
|
-
<span className={`font-mono ${compact ? 'text-[
|
|
62
|
+
<span className={`font-mono ${compact ? 'text-[10px]' : 'text-[10px]'} text-ink/40 shrink-0`}>
|
|
63
63
|
{lines.length} {lines.length === 1 ? 'line' : 'lines'}
|
|
64
64
|
</span>
|
|
65
65
|
</div>
|
|
66
66
|
|
|
67
67
|
<CopyButton
|
|
68
68
|
text={jsonString}
|
|
69
|
-
className="flex cursor-pointer items-center gap-1 rounded px-1.5 py-0.5 text-[
|
|
69
|
+
className="flex cursor-pointer items-center gap-1 rounded px-1.5 py-0.5 text-[10px] text-ink/45 transition-colors hover:bg-ink/5 hover:text-ink shrink-0"
|
|
70
70
|
title="Copy JSON"
|
|
71
71
|
onClick={(e) => e.stopPropagation()}
|
|
72
72
|
label="Copy"
|
package/src/client/components/workspace/chat-timeline/tool-renderers/shared/OutputWindow.tsx
CHANGED
|
@@ -41,14 +41,14 @@ export function OutputWindow({ lines, render, className }: OutputWindowProps) {
|
|
|
41
41
|
return (
|
|
42
42
|
<>
|
|
43
43
|
{window.hidden > 0 && (
|
|
44
|
-
<div className="flex items-center gap-2 border-b border-ink/6 bg-canvas/40 px-3 py-1 font-mono text-[
|
|
44
|
+
<div className="flex items-center gap-2 border-b border-ink/6 bg-canvas/40 px-3 py-1 font-mono text-[10px] text-ink/45">
|
|
45
45
|
<Info size={10} className="shrink-0" />
|
|
46
46
|
<span>… {window.hidden} earlier lines hidden</span>
|
|
47
47
|
{more && (
|
|
48
48
|
<button
|
|
49
49
|
type="button"
|
|
50
50
|
onClick={reveal}
|
|
51
|
-
className="ml-auto flex cursor-pointer items-center gap-1 rounded px-1.5 py-0.5 text-[
|
|
51
|
+
className="ml-auto flex cursor-pointer items-center gap-1 rounded px-1.5 py-0.5 text-[10px] text-ink/55 transition-colors hover:bg-ink/5 hover:text-ink"
|
|
52
52
|
>
|
|
53
53
|
<ChevronUp size={10} />
|
|
54
54
|
Show earlier
|
|
@@ -33,7 +33,7 @@ import { usePluginSlotContext } from '@/client/hooks/workspace/list-slots';
|
|
|
33
33
|
|
|
34
34
|
function SectionLabel({ children }: { children: string }) {
|
|
35
35
|
return (
|
|
36
|
-
<div className="text-[
|
|
36
|
+
<div className="text-[10px] font-semibold uppercase tracking-[0.14em] text-ink/40">
|
|
37
37
|
{children}
|
|
38
38
|
</div>
|
|
39
39
|
);
|
|
@@ -63,7 +63,7 @@ export function ToolBody({ tool, view }: { tool: ToolCallData; view: ToolView })
|
|
|
63
63
|
<div className="flex items-center gap-1.5">
|
|
64
64
|
<SectionLabel>Input</SectionLabel>
|
|
65
65
|
{view.inputJson?.isValid && (
|
|
66
|
-
<span className="rounded bg-ink/5 px-1.5 py-0.2 font-mono text-[
|
|
66
|
+
<span className="rounded bg-ink/5 px-1.5 py-0.2 font-mono text-[10px] uppercase tracking-wider text-ink/45">
|
|
67
67
|
JSON
|
|
68
68
|
</span>
|
|
69
69
|
)}
|
package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolFactChips.tsx
CHANGED
|
@@ -68,7 +68,7 @@ const BADGE_KINDS: ReadonlySet<ToolFact['kind']> = new Set(['exit', 'diff', 'pro
|
|
|
68
68
|
const ICONLESS_KINDS: ReadonlySet<ToolFact['kind']> = new Set(['diff']);
|
|
69
69
|
|
|
70
70
|
function chipClass(fact: ToolFact): string {
|
|
71
|
-
const base = 'inline-flex shrink-0 items-center gap-1 px-1 py-0.5 font-mono text-[
|
|
71
|
+
const base = 'inline-flex shrink-0 items-center gap-1 px-1 py-0.5 font-mono text-[10px]';
|
|
72
72
|
if (fact.parts && fact.parts.length > 0) return `${base} font-semibold text-ink/60`;
|
|
73
73
|
if (fact.tone && fact.tone !== 'muted') return `${base} font-semibold ${TONE_CLASSES[fact.tone]}`;
|
|
74
74
|
if (BADGE_KINDS.has(fact.kind)) return `${base} font-semibold text-ink/60`;
|
|
@@ -110,7 +110,7 @@ export function ToolFactChips({ facts, max = 4 }: { facts: ToolFact[]; max?: num
|
|
|
110
110
|
</span>
|
|
111
111
|
))}
|
|
112
112
|
{overflow > 0 && (
|
|
113
|
-
<span className="shrink-0 font-mono text-[
|
|
113
|
+
<span className="shrink-0 font-mono text-[10px] text-ink/35">+{overflow}</span>
|
|
114
114
|
)}
|
|
115
115
|
</span>
|
|
116
116
|
);
|
package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolPanelHeader.tsx
CHANGED
|
@@ -44,7 +44,7 @@ export function ToolPanelHeader({ icon, label, badge, copyText, copyLabel = 'Cop
|
|
|
44
44
|
{label}
|
|
45
45
|
</span>
|
|
46
46
|
{badge && (
|
|
47
|
-
<span className="shrink-0 rounded bg-ink/5 px-1.5 py-0.5 font-mono text-[
|
|
47
|
+
<span className="shrink-0 rounded bg-ink/5 px-1.5 py-0.5 font-mono text-[10px] uppercase tracking-wider text-ink/50">
|
|
48
48
|
{badge}
|
|
49
49
|
</span>
|
|
50
50
|
)}
|
|
@@ -55,7 +55,7 @@ export const MinimalRow = memo(function MinimalRow({ tool, isOpen, onToggle, def
|
|
|
55
55
|
</span>
|
|
56
56
|
<span className="sr-only">{status.word}</span>
|
|
57
57
|
<span className="shrink-0 font-medium text-ink/70">{view.header.title}</span>
|
|
58
|
-
{(view.subtitle || factsLine) && <span className="text-ink/25"
|
|
58
|
+
{(view.subtitle || factsLine) && <span className="text-ink/25">·</span>}
|
|
59
59
|
<span className="min-w-0 truncate font-mono text-ink/45">
|
|
60
60
|
{view.subtitle}
|
|
61
61
|
{factsLine}
|
|
@@ -58,8 +58,8 @@ export function RawJsonViewer({ data }: RawJsonViewerProps) {
|
|
|
58
58
|
>
|
|
59
59
|
{copied ? (
|
|
60
60
|
<>
|
|
61
|
-
<Check size={11} className="text-
|
|
62
|
-
<span className="text-
|
|
61
|
+
<Check size={11} className="text-success" />
|
|
62
|
+
<span className="text-success font-sans font-medium">Copied</span>
|
|
63
63
|
</>
|
|
64
64
|
) : (
|
|
65
65
|
<>
|
|
@@ -35,7 +35,7 @@ export function ContextStatsGrid({
|
|
|
35
35
|
<StatCard
|
|
36
36
|
variant="compact"
|
|
37
37
|
label="Cache Hit"
|
|
38
|
-
value={cacheHitAverage !== undefined ? `${cacheHitAverage.toFixed(1)}%` : '
|
|
38
|
+
value={cacheHitAverage !== undefined ? `${cacheHitAverage.toFixed(1)}%` : '–'}
|
|
39
39
|
/>
|
|
40
40
|
<div className="relative bg-canvas border border-ink/10 rounded-lg px-2.5 py-1.5 flex flex-col gap-0.5 flex-1 min-w-0">
|
|
41
41
|
<span className="text-[10px] font-medium text-ink/50 flex items-center gap-1">
|
|
@@ -83,7 +83,7 @@ export function ContextPanel({
|
|
|
83
83
|
if (!enabled) {
|
|
84
84
|
return (
|
|
85
85
|
<div className={`flex flex-col h-full bg-paper items-center justify-center text-ink/40 ${className}`}>
|
|
86
|
-
<span className="text-xs font-mono">No session selected</span>
|
|
86
|
+
<span className="text-xs font-mono text-muted">No session selected</span>
|
|
87
87
|
</div>
|
|
88
88
|
);
|
|
89
89
|
}
|
|
@@ -58,7 +58,7 @@ export function ConflictBanner({ markers, isBusy, error, onResolve, onDismissErr
|
|
|
58
58
|
type="button"
|
|
59
59
|
onClick={() => onResolve('')}
|
|
60
60
|
disabled={isBusy}
|
|
61
|
-
title="Mark resolved
|
|
61
|
+
title="Mark resolved: the file was edited by hand, this stages it"
|
|
62
62
|
className="px-2 py-0.5 text-[10px] font-mono rounded border border-ink/20 hover:bg-ink/5 text-ink/80 hover:text-ink transition-colors cursor-pointer disabled:opacity-40"
|
|
63
63
|
>
|
|
64
64
|
mark resolved
|
|
@@ -15,7 +15,7 @@ import { FileIcon } from '@/client/components/common/file-icon';
|
|
|
15
15
|
|
|
16
16
|
export function EmptyEditor({ className = '' }: { className?: string }) {
|
|
17
17
|
return (
|
|
18
|
-
<div className={`flex flex-col h-full bg-canvas items-center justify-center text-
|
|
18
|
+
<div className={`flex flex-col h-full bg-canvas items-center justify-center text-muted ${className}`}>
|
|
19
19
|
<FileIcon name="placeholder.txt" size={48} className="mb-4 opacity-20" />
|
|
20
20
|
<p className="font-mono text-sm">Select a file to open</p>
|
|
21
21
|
</div>
|
|
@@ -199,7 +199,7 @@ export function FindWidget({ find }: FindWidgetProps) {
|
|
|
199
199
|
nobody has used. */}
|
|
200
200
|
{find.history.length > 0 && (
|
|
201
201
|
<div className="flex items-center gap-1 overflow-x-auto no-scrollbar">
|
|
202
|
-
<span className="text-[
|
|
202
|
+
<span className="text-[10px] uppercase tracking-wide text-ink/40 flex-shrink-0">Recent</span>
|
|
203
203
|
{find.history.slice(0, 6).map((entry) => (
|
|
204
204
|
<button
|
|
205
205
|
key={entry}
|
|
@@ -135,7 +135,7 @@ export function EditorTabs({
|
|
|
135
135
|
the one convention that reads as "this is gone" at a glance. */}
|
|
136
136
|
<span className={`text-xs font-mono truncate flex-1${isMissing ? ' text-error line-through' : ''}`}>{file.name}</span>
|
|
137
137
|
{statusInfo && (
|
|
138
|
-
<span className={`px-1 text-[
|
|
138
|
+
<span className={`px-1 text-[10px] font-mono font-bold rounded ${statusInfo.badgeBgClass}`}>
|
|
139
139
|
{statusInfo.charStatus}
|
|
140
140
|
</span>
|
|
141
141
|
)}
|
|
@@ -155,7 +155,7 @@ export function EditorToolbar({
|
|
|
155
155
|
aria-label={saveTitle}
|
|
156
156
|
>
|
|
157
157
|
{saveStatus === 'saving' ? (
|
|
158
|
-
<Save size={14} className="text-
|
|
158
|
+
<Save size={14} className="text-warning animate-pulse" />
|
|
159
159
|
) : saveStatus === 'saved' ? (
|
|
160
160
|
<Check size={14} className="text-success" />
|
|
161
161
|
) : saveStatus === 'error' ? (
|
|
@@ -114,7 +114,7 @@ export function OutlineSection() {
|
|
|
114
114
|
<ListTree size={12} />
|
|
115
115
|
<span>Outline</span>
|
|
116
116
|
{total > 0 && (
|
|
117
|
-
<span className="font-normal ml-1 border border-ink/20 rounded-full px-1.5 text-[
|
|
117
|
+
<span className="font-normal ml-1 border border-ink/20 rounded-full px-1.5 text-[10px] text-ink/50">
|
|
118
118
|
{truncated ? `${symbols.length}/${total.toLocaleString()}` : total}
|
|
119
119
|
</span>
|
|
120
120
|
)}
|
|
@@ -156,7 +156,7 @@ export function OutlineSection() {
|
|
|
156
156
|
<OutlineKindIcon kind={symbol.kind} />
|
|
157
157
|
<span className="min-w-0 flex-1 truncate text-[11px] font-mono text-ink/80">{symbol.name}</span>
|
|
158
158
|
{!preview && (
|
|
159
|
-
<span className="flex-shrink-0 font-mono text-[
|
|
159
|
+
<span className="flex-shrink-0 font-mono text-[10px] text-ink/35">{symbol.line}</span>
|
|
160
160
|
)}
|
|
161
161
|
</button>
|
|
162
162
|
))}
|
|
@@ -47,7 +47,7 @@ export function TreeRowLabel({ name, path, isFolder, isOpen, ignored, gitStatus,
|
|
|
47
47
|
|
|
48
48
|
{gitStatus && (
|
|
49
49
|
<span
|
|
50
|
-
className={`font-mono text-[
|
|
50
|
+
className={`font-mono text-[10px] font-bold px-1 rounded flex-shrink-0 ${gitStatus.colorClass}`}
|
|
51
51
|
title={`Git: ${gitStatus.label}`}
|
|
52
52
|
>
|
|
53
53
|
{gitStatus.charStatus}
|
|
@@ -185,7 +185,7 @@ export function FileExplorer({ className = '', enabled = true, rootPath, onOpenF
|
|
|
185
185
|
if (!enabled) {
|
|
186
186
|
return (
|
|
187
187
|
<div className={`flex flex-col h-full bg-paper items-center justify-center text-ink/40 ${className}`}>
|
|
188
|
-
<span className="text-xs font-mono">No session selected</span>
|
|
188
|
+
<span className="text-xs font-mono text-muted">No session selected</span>
|
|
189
189
|
</div>
|
|
190
190
|
);
|
|
191
191
|
}
|
|
@@ -75,7 +75,7 @@ export function GitBranchToolbar({
|
|
|
75
75
|
<div className="max-h-48 scrollbar-overlay-container py-1">
|
|
76
76
|
{branches.length > 0 && (
|
|
77
77
|
<>
|
|
78
|
-
<div className="px-3 py-1 text-[
|
|
78
|
+
<div className="px-3 py-1 text-[10px] uppercase tracking-wider text-ink/40 font-semibold">Local</div>
|
|
79
79
|
{branches.map(b => (
|
|
80
80
|
<div key={b} className="flex items-center group/branch">
|
|
81
81
|
<button
|
|
@@ -108,7 +108,7 @@ export function GitBranchToolbar({
|
|
|
108
108
|
)}
|
|
109
109
|
{remoteBranches.length > 0 && (
|
|
110
110
|
<>
|
|
111
|
-
<div className="px-3 py-1 text-[
|
|
111
|
+
<div className="px-3 py-1 text-[10px] uppercase tracking-wider text-ink/40 font-semibold">Remote</div>
|
|
112
112
|
{remoteBranches.map(b => (
|
|
113
113
|
<div key={b} className="flex items-center group/branch">
|
|
114
114
|
<button
|
|
@@ -77,7 +77,7 @@ export function GitChangesList({ changes, isLoading, viewMode, repo, rootPath, o
|
|
|
77
77
|
<div className="flex items-center space-x-1 font-semibold text-warning text-xs">
|
|
78
78
|
<span className="w-3 text-center">{conflictsExpanded ? '▾' : '▸'}</span>
|
|
79
79
|
<span>Conflicts</span>
|
|
80
|
-
<span className="text-warning/70 font-normal ml-1 border border-warning/30 rounded-full px-1.5 text-[
|
|
80
|
+
<span className="text-warning/70 font-normal ml-1 border border-warning/30 rounded-full px-1.5 text-[10px] bg-paper">
|
|
81
81
|
{conflictedChanges.length}
|
|
82
82
|
</span>
|
|
83
83
|
</div>
|
|
@@ -104,7 +104,7 @@ export function GitChangesList({ changes, isLoading, viewMode, repo, rootPath, o
|
|
|
104
104
|
<div className="flex items-center space-x-1 font-semibold text-ink text-xs">
|
|
105
105
|
<span className="w-3 text-center">{stagedExpanded ? '▾' : '▸'}</span>
|
|
106
106
|
<span>Staged Changes</span>
|
|
107
|
-
<span className="text-ink/40 font-normal ml-1 border border-ink/20 rounded-full px-1.5 text-[
|
|
107
|
+
<span className="text-ink/40 font-normal ml-1 border border-ink/20 rounded-full px-1.5 text-[10px] bg-paper">
|
|
108
108
|
{stagedChanges.length}
|
|
109
109
|
</span>
|
|
110
110
|
</div>
|
|
@@ -157,7 +157,7 @@ export function GitChangesList({ changes, isLoading, viewMode, repo, rootPath, o
|
|
|
157
157
|
<div className="flex items-center space-x-1 font-semibold text-ink text-xs">
|
|
158
158
|
<span className="w-3 text-center">{unstagedExpanded ? '▾' : '▸'}</span>
|
|
159
159
|
<span>Changes</span>
|
|
160
|
-
<span className="text-ink/40 font-normal ml-1 border border-ink/20 rounded-full px-1.5 text-[
|
|
160
|
+
<span className="text-ink/40 font-normal ml-1 border border-ink/20 rounded-full px-1.5 text-[10px] bg-paper">
|
|
161
161
|
{unstagedChanges.length}
|
|
162
162
|
</span>
|
|
163
163
|
</div>
|
|
@@ -77,9 +77,9 @@ export function GitConflictItem({ change, repo, rootPath, onResolve }: GitConfli
|
|
|
77
77
|
<FileWarning size={11} className="text-warning flex-shrink-0" />
|
|
78
78
|
<FileIcon name={fileName} size={12} className="flex-shrink-0" />
|
|
79
79
|
<span className="truncate text-warning" title={change.file}>{fileName}</span>
|
|
80
|
-
{dirPath && <span className="text-[
|
|
80
|
+
{dirPath && <span className="text-[10px] text-ink/40 truncate ml-1">{dirPath}</span>}
|
|
81
81
|
{isUnmergedCode(change.status) && (
|
|
82
|
-
<span className="text-[
|
|
82
|
+
<span className="text-[10px] text-warning/70 font-mono flex-shrink-0">{change.status}</span>
|
|
83
83
|
)}
|
|
84
84
|
</div>
|
|
85
85
|
<button
|
|
@@ -115,7 +115,7 @@ export function GitConflictItem({ change, repo, rootPath, onResolve }: GitConfli
|
|
|
115
115
|
<button
|
|
116
116
|
type="button"
|
|
117
117
|
onClick={() => onResolve(change.file, '')}
|
|
118
|
-
title="Mark resolved
|
|
118
|
+
title="Mark resolved: the file was edited by hand, this stages it"
|
|
119
119
|
className="px-2 py-0.5 text-[10px] font-mono rounded border border-ink/20 hover:bg-ink/5 text-ink/80 hover:text-ink transition-colors cursor-pointer flex items-center gap-1"
|
|
120
120
|
>
|
|
121
121
|
<Check size={10} />
|