@kabmo-labs/kabmo 0.21.1 → 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-thwqf24c.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 +44 -8
- package/src/shared/lib/icons/icon-paint-css.ts +18 -1
- package/src/shared/lib/icons/icon-paint-panel.ts +15 -18
- package/src/shared/lib/icons/icon-paint-weight.ts +20 -1
- 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
package/src/client/components/workspace/chat-timeline/tool-renderers/panels/ContextNotes.tsx
CHANGED
|
@@ -38,10 +38,10 @@ export function ContextNotes({ tool }: { tool: ToolCallData }) {
|
|
|
38
38
|
return (
|
|
39
39
|
<div className="overflow-hidden rounded-lg border border-ink/8">
|
|
40
40
|
<div className="border-b border-ink/8 bg-paper px-2.5 py-1.5">
|
|
41
|
-
<span className="text-[
|
|
41
|
+
<span className="text-[10px] font-semibold uppercase tracking-[0.14em] text-ink/40">
|
|
42
42
|
{isNew ? 'New Context' : 'Notes'}
|
|
43
43
|
</span>
|
|
44
|
-
<span className="ml-2 rounded-full bg-ink/5 px-1.5 py-px font-mono text-[
|
|
44
|
+
<span className="ml-2 rounded-full bg-ink/5 px-1.5 py-px font-mono text-[10px] text-ink/45">
|
|
45
45
|
{items.length}
|
|
46
46
|
</span>
|
|
47
47
|
</div>
|
|
@@ -58,8 +58,8 @@ export function Debug({ tool }: { tool: ToolCallData }) {
|
|
|
58
58
|
return (
|
|
59
59
|
<div className="overflow-hidden rounded-lg border border-ink/8">
|
|
60
60
|
<div className="flex items-center gap-2 border-b border-ink/8 bg-paper px-2.5 py-1.5">
|
|
61
|
-
<span className="text-[
|
|
62
|
-
<span className="ml-auto flex items-center gap-1.5 font-mono text-[
|
|
61
|
+
<span className="text-[10px] font-semibold uppercase tracking-[0.14em] text-ink/40">Debug Session</span>
|
|
62
|
+
<span className="ml-auto flex items-center gap-1.5 font-mono text-[10px]">
|
|
63
63
|
{counts.attached > 0 && <span className="rounded-full bg-success/10 px-1.5 py-px text-success">{counts.attached} attached</span>}
|
|
64
64
|
{counts.running > 0 && <span className="rounded-full bg-ink/8 px-1.5 py-px text-ink/60">{counts.running} run</span>}
|
|
65
65
|
{counts.detached > 0 && <span className="rounded-full bg-error/10 px-1.5 py-px text-error">{counts.detached} detach</span>}
|
|
@@ -79,7 +79,7 @@ export function Debug({ tool }: { tool: ToolCallData }) {
|
|
|
79
79
|
<Target size={11} className="shrink-0 text-ink/40" />
|
|
80
80
|
)}
|
|
81
81
|
<span className="min-w-0 flex-1 truncate font-mono text-[10.5px] text-ink/75">{label}</span>
|
|
82
|
-
<span className={`shrink-0 rounded-full px-1.5 py-px font-mono text-[
|
|
82
|
+
<span className={`shrink-0 rounded-full px-1.5 py-px font-mono text-[10px] ${STATE_STYLES[state]}`}>
|
|
83
83
|
{state}
|
|
84
84
|
</span>
|
|
85
85
|
</div>
|
|
@@ -228,7 +228,7 @@ export function Edit({ tool }: { tool: ToolCallData }) {
|
|
|
228
228
|
{/* Unified Diff if available */}
|
|
229
229
|
{diffText && (
|
|
230
230
|
<div className="space-y-1">
|
|
231
|
-
<div className="text-[
|
|
231
|
+
<div className="text-[10px] font-semibold uppercase tracking-[0.14em] text-ink/40">Diff Changes</div>
|
|
232
232
|
<DiffView text={diffText} path={targetPath} />
|
|
233
233
|
</div>
|
|
234
234
|
)}
|
|
@@ -240,15 +240,15 @@ export function Edit({ tool }: { tool: ToolCallData }) {
|
|
|
240
240
|
{/* Replacement Diff (old_string vs new_string) */}
|
|
241
241
|
{!diffText && (oldString || newString) && (
|
|
242
242
|
<div className="space-y-1.5">
|
|
243
|
-
<div className="text-[
|
|
243
|
+
<div className="text-[10px] font-semibold uppercase tracking-[0.14em] text-ink/40">Replacement Changes</div>
|
|
244
244
|
<div className="overflow-hidden rounded-lg border border-ink/8">
|
|
245
245
|
{oldString && (
|
|
246
246
|
<div className="border-b border-ink/6 bg-error/[0.04] p-2.5">
|
|
247
|
-
<div className="mb-1 flex items-center gap-1 text-[
|
|
247
|
+
<div className="mb-1 flex items-center gap-1 text-[10px] font-semibold uppercase tracking-wider text-error">
|
|
248
248
|
<span>- Original Content</span>
|
|
249
249
|
</div>
|
|
250
250
|
{truncatedOld && truncatedOld.skipped > 0 && (
|
|
251
|
-
<div className="mb-1 font-mono text-[
|
|
251
|
+
<div className="mb-1 font-mono text-[10px] text-ink/45">… {truncatedOld.skipped} earlier lines hidden</div>
|
|
252
252
|
)}
|
|
253
253
|
<pre
|
|
254
254
|
className="max-h-40 overflow-x-auto font-mono text-[11px] leading-relaxed text-error/90 whitespace-pre-wrap break-words"
|
|
@@ -258,11 +258,11 @@ export function Edit({ tool }: { tool: ToolCallData }) {
|
|
|
258
258
|
)}
|
|
259
259
|
{newString && (
|
|
260
260
|
<div className="bg-success/[0.04] p-2.5">
|
|
261
|
-
<div className="mb-1 flex items-center gap-1 text-[
|
|
261
|
+
<div className="mb-1 flex items-center gap-1 text-[10px] font-semibold uppercase tracking-wider text-success">
|
|
262
262
|
<span>+ Replaced With</span>
|
|
263
263
|
</div>
|
|
264
264
|
{truncatedNew && truncatedNew.skipped > 0 && (
|
|
265
|
-
<div className="mb-1 font-mono text-[
|
|
265
|
+
<div className="mb-1 font-mono text-[10px] text-ink/45">… {truncatedNew.skipped} earlier lines hidden</div>
|
|
266
266
|
)}
|
|
267
267
|
<pre
|
|
268
268
|
className="max-h-48 overflow-x-auto font-mono text-[11px] leading-relaxed text-success/90 whitespace-pre-wrap break-words"
|
|
@@ -277,12 +277,12 @@ export function Edit({ tool }: { tool: ToolCallData }) {
|
|
|
277
277
|
{/* Written File Content Preview for write/create_file */}
|
|
278
278
|
{!diffText && !oldString && !newString && newContent && (
|
|
279
279
|
<div className="space-y-1.5">
|
|
280
|
-
<div className="flex items-center justify-between text-[
|
|
280
|
+
<div className="flex items-center justify-between text-[10px] font-semibold uppercase tracking-[0.14em] text-ink/40">
|
|
281
281
|
<span className="flex items-center gap-1">
|
|
282
282
|
<FileCode size={11} />
|
|
283
283
|
<span>Written File Preview</span>
|
|
284
284
|
</span>
|
|
285
|
-
<span className="font-mono text-[
|
|
285
|
+
<span className="font-mono text-[10px] text-ink/50">
|
|
286
286
|
{previewLineCount} lines · {formatBytes(newContent.length)}
|
|
287
287
|
</span>
|
|
288
288
|
</div>
|
|
@@ -299,7 +299,7 @@ export function Edit({ tool }: { tool: ToolCallData }) {
|
|
|
299
299
|
{/* Execution Result — excerpt rows bergutter per file, catatan sebagai markdown */}
|
|
300
300
|
{sections.length > 0 && (
|
|
301
301
|
<div className="space-y-2 rounded-lg border border-ink/8 bg-paper p-2.5 select-text">
|
|
302
|
-
<div className="flex items-center gap-1.5 text-[
|
|
302
|
+
<div className="flex items-center gap-1.5 text-[10px] font-semibold uppercase tracking-wider text-ink/40">
|
|
303
303
|
<ArrowRight size={11} className="text-success" />
|
|
304
304
|
<span>Execution Output</span>
|
|
305
305
|
</div>
|
|
@@ -63,11 +63,11 @@ export function Eval({ tool }: { tool: ToolCallData }) {
|
|
|
63
63
|
<span className="font-mono text-[10.5px] font-semibold text-ink">
|
|
64
64
|
Script Evaluation
|
|
65
65
|
</span>
|
|
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/50">
|
|
67
67
|
{language}
|
|
68
68
|
</span>
|
|
69
69
|
{timeout && (
|
|
70
|
-
<span className="flex items-center gap-1 font-mono text-[
|
|
70
|
+
<span className="flex items-center gap-1 font-mono text-[10px] text-ink/40">
|
|
71
71
|
<Clock size={10} />
|
|
72
72
|
<span>{timeout}</span>
|
|
73
73
|
</span>
|
|
@@ -76,13 +76,13 @@ export function Eval({ tool }: { tool: ToolCallData }) {
|
|
|
76
76
|
|
|
77
77
|
<CopyButton
|
|
78
78
|
text={code}
|
|
79
|
-
className="flex cursor-pointer items-center gap-1 rounded px-1.5 py-0.5 text-[
|
|
79
|
+
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"
|
|
80
80
|
label="Copy"
|
|
81
81
|
/>
|
|
82
82
|
</div>
|
|
83
83
|
|
|
84
84
|
{truncatedCode.skipped > 0 && (
|
|
85
|
-
<div className="border-b border-ink/6 bg-canvas/40 px-3 py-1 font-mono text-[
|
|
85
|
+
<div className="border-b border-ink/6 bg-canvas/40 px-3 py-1 font-mono text-[10px] text-ink/45">
|
|
86
86
|
… {truncatedCode.skipped} earlier lines hidden
|
|
87
87
|
</div>
|
|
88
88
|
)}
|
|
@@ -122,30 +122,30 @@ export function Eval({ tool }: { tool: ToolCallData }) {
|
|
|
122
122
|
{isError ? (
|
|
123
123
|
<>
|
|
124
124
|
<AlertCircle size={11} className="text-error" />
|
|
125
|
-
<span className="text-[
|
|
125
|
+
<span className="text-[10px] font-semibold uppercase tracking-wider text-error">
|
|
126
126
|
Execution Error
|
|
127
127
|
</span>
|
|
128
128
|
</>
|
|
129
129
|
) : isAborted ? (
|
|
130
130
|
<>
|
|
131
131
|
<Ban size={11} className="text-warning" />
|
|
132
|
-
<span className="text-[
|
|
132
|
+
<span className="text-[10px] font-semibold uppercase tracking-wider text-warning">
|
|
133
133
|
Evaluation Aborted
|
|
134
134
|
</span>
|
|
135
135
|
</>
|
|
136
136
|
) : (
|
|
137
137
|
<>
|
|
138
138
|
<Play size={11} className="text-success" />
|
|
139
|
-
<span className="text-[
|
|
139
|
+
<span className="text-[10px] font-semibold uppercase tracking-wider text-ink/50">
|
|
140
140
|
Evaluation Result
|
|
141
141
|
</span>
|
|
142
142
|
{jsonResult.isValid && (
|
|
143
143
|
<>
|
|
144
|
-
<span className="rounded bg-ink/5 px-1.5 py-0.2 font-mono text-[
|
|
144
|
+
<span className="rounded bg-ink/5 px-1.5 py-0.2 font-mono text-[10px] uppercase tracking-wider text-ink/50">
|
|
145
145
|
JSON
|
|
146
146
|
</span>
|
|
147
147
|
{jsonResult.linesCount && jsonResult.linesCount > 1 && (
|
|
148
|
-
<span className="font-mono text-[
|
|
148
|
+
<span className="font-mono text-[10px] text-ink/40">
|
|
149
149
|
{jsonResult.linesCount} lines
|
|
150
150
|
</span>
|
|
151
151
|
)}
|
|
@@ -157,7 +157,7 @@ export function Eval({ tool }: { tool: ToolCallData }) {
|
|
|
157
157
|
|
|
158
158
|
<CopyButton
|
|
159
159
|
text={jsonResult.isValid && jsonResult.pretty ? jsonResult.pretty : output}
|
|
160
|
-
className="flex cursor-pointer items-center gap-1 rounded px-1.5 py-0.5 text-[
|
|
160
|
+
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"
|
|
161
161
|
label="Copy"
|
|
162
162
|
/>
|
|
163
163
|
</div>
|
|
@@ -63,7 +63,7 @@ export function FileMatches({ path, lines, matchCount, isGlobList }: FileMatches
|
|
|
63
63
|
<span className="truncate font-mono text-[11px] font-medium text-ink/85">{path}</span>
|
|
64
64
|
</div>
|
|
65
65
|
{matchCount > 0 && !isGlobList && (
|
|
66
|
-
<span className="ml-2 shrink-0 rounded bg-ink/5 px-1.5 py-0.2 font-mono text-[
|
|
66
|
+
<span className="ml-2 shrink-0 rounded bg-ink/5 px-1.5 py-0.2 font-mono text-[10px] text-ink/50">
|
|
67
67
|
{matchCount} {matchCount === 1 ? 'hit' : 'hits'}
|
|
68
68
|
</span>
|
|
69
69
|
)}
|
|
@@ -114,7 +114,7 @@ export function Goal({ tool }: { tool: ToolCallData }) {
|
|
|
114
114
|
</span>
|
|
115
115
|
</div>
|
|
116
116
|
{(payload.status || (isError ? 'error' : 'success')) && (
|
|
117
|
-
<span className={`rounded-full px-2 py-0.5 font-mono text-[
|
|
117
|
+
<span className={`rounded-full px-2 py-0.5 font-mono text-[10px] font-medium uppercase ${isError || payload.error ? 'bg-error/10 text-error' : 'bg-success/10 text-success'}`}>
|
|
118
118
|
{payload.status || (isError ? 'failed' : 'success')}
|
|
119
119
|
</span>
|
|
120
120
|
)}
|
|
@@ -205,10 +205,10 @@ export function Goal({ tool }: { tool: ToolCallData }) {
|
|
|
205
205
|
return (
|
|
206
206
|
<div className="overflow-hidden rounded-lg border border-ink/8">
|
|
207
207
|
<div className="border-b border-ink/8 bg-paper px-2.5 py-1.5">
|
|
208
|
-
<span className="text-[
|
|
208
|
+
<span className="text-[10px] font-semibold uppercase tracking-[0.14em] text-ink/40">
|
|
209
209
|
{isYield ? 'Yield' : 'Goals'}
|
|
210
210
|
</span>
|
|
211
|
-
<span className="ml-2 rounded-full bg-ink/5 px-1.5 py-px font-mono text-[
|
|
211
|
+
<span className="ml-2 rounded-full bg-ink/5 px-1.5 py-px font-mono text-[10px] text-ink/45">
|
|
212
212
|
{items.length}
|
|
213
213
|
</span>
|
|
214
214
|
</div>
|
|
@@ -227,7 +227,7 @@ export function Goal({ tool }: { tool: ToolCallData }) {
|
|
|
227
227
|
<Flag size={11} className="mt-0.5 shrink-0 text-ink/40" />
|
|
228
228
|
)}
|
|
229
229
|
<span className="min-w-0 flex-1 break-words text-ink/80">{label}</span>
|
|
230
|
-
<span className={`shrink-0 rounded-full px-1.5 py-px font-mono text-[
|
|
230
|
+
<span className={`shrink-0 rounded-full px-1.5 py-px font-mono text-[10px] ${STATUS_STYLES[status]}`}>
|
|
231
231
|
{status}
|
|
232
232
|
</span>
|
|
233
233
|
</div>
|
|
@@ -239,7 +239,7 @@ export function Goal({ tool }: { tool: ToolCallData }) {
|
|
|
239
239
|
style={{ width: `${Math.min(100, Math.max(0, Math.round(progress * 100)))}%` }}
|
|
240
240
|
/>
|
|
241
241
|
</div>
|
|
242
|
-
<span className="flex shrink-0 items-center gap-0.5 font-mono text-[
|
|
242
|
+
<span className="flex shrink-0 items-center gap-0.5 font-mono text-[10px] text-ink/45">
|
|
243
243
|
<CircleDot size={8} />
|
|
244
244
|
{Math.round(progress * 100)}%
|
|
245
245
|
</span>
|
|
@@ -75,7 +75,7 @@ export function GoalRecordPanel({ tool }: { tool: ToolCallData }) {
|
|
|
75
75
|
<span className="text-[10px] font-semibold uppercase tracking-wider text-ink/60">Goal</span>
|
|
76
76
|
{op && <span className="font-mono text-[10px] text-ink/40">{op}</span>}
|
|
77
77
|
</div>
|
|
78
|
-
<span className={`rounded-full px-2 py-0.5 font-mono text-[
|
|
78
|
+
<span className={`rounded-full px-2 py-0.5 font-mono text-[10px] font-medium uppercase ${style.className}`}>
|
|
79
79
|
{style.label}
|
|
80
80
|
</span>
|
|
81
81
|
</div>
|
|
@@ -87,11 +87,11 @@ export function GoalRecordPanel({ tool }: { tool: ToolCallData }) {
|
|
|
87
87
|
|
|
88
88
|
<div className="grid grid-cols-2 gap-2 text-[11px]">
|
|
89
89
|
<div className="rounded-md border border-ink/8 bg-canvas/30 p-2">
|
|
90
|
-
<div className="text-[
|
|
90
|
+
<div className="text-[10px] font-semibold uppercase tracking-wider text-ink/40">Tokens</div>
|
|
91
91
|
<div className="mt-0.5 font-mono text-[11px] text-ink/85">{formatTokens(record)}</div>
|
|
92
92
|
</div>
|
|
93
93
|
<div className="rounded-md border border-ink/8 bg-canvas/30 p-2">
|
|
94
|
-
<div className="text-[
|
|
94
|
+
<div className="text-[10px] font-semibold uppercase tracking-wider text-ink/40">Time</div>
|
|
95
95
|
<div className="mt-0.5 font-mono text-[11px] text-ink/85">{formatGoalDuration(record.timeUsedSeconds)}</div>
|
|
96
96
|
</div>
|
|
97
97
|
</div>
|
|
@@ -106,14 +106,14 @@ export function GoalRecordPanel({ tool }: { tool: ToolCallData }) {
|
|
|
106
106
|
{!completionReport && status === 'paused' && (
|
|
107
107
|
<div className="flex items-start gap-2 rounded-md bg-warning/10 p-2.5 text-[11.5px] text-warning">
|
|
108
108
|
<Pause size={13} className="mt-0.5 shrink-0" />
|
|
109
|
-
<span>Paused
|
|
109
|
+
<span>Paused: the agent is not taking further steps until this is resumed.</span>
|
|
110
110
|
</div>
|
|
111
111
|
)}
|
|
112
112
|
|
|
113
113
|
{!completionReport && status === 'active' && (
|
|
114
114
|
<div className="flex items-center gap-1.5 text-[10.5px] text-ink/45">
|
|
115
115
|
<CircleDot size={11} className="shrink-0" />
|
|
116
|
-
<span>Automatic continuation is on
|
|
116
|
+
<span>Automatic continuation is on: the agent keeps working after each turn.</span>
|
|
117
117
|
</div>
|
|
118
118
|
)}
|
|
119
119
|
</div>
|
|
@@ -176,7 +176,7 @@ export function Lsp({ tool }: { tool: ToolCallData }) {
|
|
|
176
176
|
<div className="flex items-center gap-2">
|
|
177
177
|
<Server size={13} className="text-ink/60" />
|
|
178
178
|
<span className="font-mono text-[10.5px] font-semibold text-ink">Language Servers</span>
|
|
179
|
-
<span className="rounded bg-ink/5 px-1.5 py-0.2 font-mono text-[
|
|
179
|
+
<span className="rounded bg-ink/5 px-1.5 py-0.2 font-mono text-[10px] uppercase tracking-wider text-ink/50">
|
|
180
180
|
Capabilities
|
|
181
181
|
</span>
|
|
182
182
|
</div>
|
|
@@ -194,7 +194,7 @@ export function Lsp({ tool }: { tool: ToolCallData }) {
|
|
|
194
194
|
<div className="flex items-center gap-2">
|
|
195
195
|
<Cpu size={12} className="text-ink/50" />
|
|
196
196
|
<span className="font-mono font-medium text-ink">{srv.name}</span>
|
|
197
|
-
<span className="ml-auto inline-flex items-center gap-1 font-mono text-[
|
|
197
|
+
<span className="ml-auto inline-flex items-center gap-1 font-mono text-[10px] text-success">
|
|
198
198
|
<CheckCircle2 size={10} />
|
|
199
199
|
Connected
|
|
200
200
|
</span>
|
|
@@ -205,7 +205,7 @@ export function Lsp({ tool }: { tool: ToolCallData }) {
|
|
|
205
205
|
{capKeys.map((cap, i) => (
|
|
206
206
|
<span
|
|
207
207
|
key={i}
|
|
208
|
-
className="rounded bg-ink/5 px-1.5 py-0.5 font-mono text-[
|
|
208
|
+
className="rounded bg-ink/5 px-1.5 py-0.5 font-mono text-[10px] text-ink/60"
|
|
209
209
|
>
|
|
210
210
|
{cap}
|
|
211
211
|
</span>
|
|
@@ -236,7 +236,7 @@ export function Lsp({ tool }: { tool: ToolCallData }) {
|
|
|
236
236
|
return (
|
|
237
237
|
<div className="overflow-hidden rounded-lg border border-ink/8 select-text">
|
|
238
238
|
<div className="flex items-center gap-2 border-b border-ink/8 bg-paper px-2.5 py-1.5">
|
|
239
|
-
<span className="text-[
|
|
239
|
+
<span className="text-[10px] font-semibold uppercase tracking-[0.14em] text-ink/40">
|
|
240
240
|
Diagnostics
|
|
241
241
|
</span>
|
|
242
242
|
<span className="ml-auto flex items-center gap-2 font-mono text-[10px]">
|
|
@@ -264,8 +264,8 @@ export function Lsp({ tool }: { tool: ToolCallData }) {
|
|
|
264
264
|
<span className="min-w-0 flex-1 break-words leading-5">
|
|
265
265
|
{loc && <span className="font-mono text-[10px] text-ink/45 mr-1">{loc}:</span>}
|
|
266
266
|
<span className={textColor}>{msg}</span>
|
|
267
|
-
{source && <span className="ml-1.5 font-mono text-[
|
|
268
|
-
{code && <span className="ml-1 font-mono text-[
|
|
267
|
+
{source && <span className="ml-1.5 font-mono text-[10px] text-ink/35">[{source}]</span>}
|
|
268
|
+
{code && <span className="ml-1 font-mono text-[10px] text-ink/35">({code})</span>}
|
|
269
269
|
</span>
|
|
270
270
|
</div>
|
|
271
271
|
);
|
|
@@ -57,8 +57,8 @@ export function ManageSkill({ tool }: { tool: ToolCallData }) {
|
|
|
57
57
|
return (
|
|
58
58
|
<div className="overflow-hidden rounded-lg border border-ink/8">
|
|
59
59
|
<div className="border-b border-ink/8 bg-paper px-2.5 py-1.5">
|
|
60
|
-
<span className="text-[
|
|
61
|
-
<span className="ml-2 rounded-full bg-ink/5 px-1.5 py-px font-mono text-[
|
|
60
|
+
<span className="text-[10px] font-semibold uppercase tracking-[0.14em] text-ink/40">Skills</span>
|
|
61
|
+
<span className="ml-2 rounded-full bg-ink/5 px-1.5 py-px font-mono text-[10px] text-ink/45">
|
|
62
62
|
{items.length}
|
|
63
63
|
</span>
|
|
64
64
|
</div>
|
|
@@ -78,10 +78,10 @@ export function ManageSkill({ tool }: { tool: ToolCallData }) {
|
|
|
78
78
|
<PackageCheck size={11} className="shrink-0 text-ink/40" />
|
|
79
79
|
)}
|
|
80
80
|
<span className="shrink-0 font-mono text-[10px] font-semibold text-ink/70">{name}</span>
|
|
81
|
-
{scope && <span className="rounded-full bg-ink/5 px-1.5 py-px font-mono text-[
|
|
82
|
-
{version && <span className="font-mono text-[
|
|
81
|
+
{scope && <span className="rounded-full bg-ink/5 px-1.5 py-px font-mono text-[10px] text-ink/45">{scope}</span>}
|
|
82
|
+
{version && <span className="font-mono text-[10px] text-ink/35">v{version}</span>}
|
|
83
83
|
{msg && <span className="min-w-0 flex-1 truncate text-ink/65">{msg}</span>}
|
|
84
|
-
<span className={`ml-auto shrink-0 rounded-full px-1.5 py-px font-mono text-[
|
|
84
|
+
<span className={`ml-auto shrink-0 rounded-full px-1.5 py-px font-mono text-[10px] ${STATUS_STYLES[status]}`}>
|
|
85
85
|
{status}
|
|
86
86
|
</span>
|
|
87
87
|
</div>
|
|
@@ -39,7 +39,7 @@ function ListNode({ items }: { items: unknown[] }) {
|
|
|
39
39
|
<ol className="divide-y divide-ink/6 overflow-hidden rounded-lg border border-ink/8 bg-canvas/40">
|
|
40
40
|
{shown.map((item, index) => (
|
|
41
41
|
<li key={index} className="flex items-start gap-2 px-2.5 py-1.5">
|
|
42
|
-
<span className="mt-0.5 flex h-4 w-4 shrink-0 items-center justify-center rounded bg-ink/5 font-mono text-[
|
|
42
|
+
<span className="mt-0.5 flex h-4 w-4 shrink-0 items-center justify-center rounded bg-ink/5 font-mono text-[10px] text-ink/45">
|
|
43
43
|
{index + 1}
|
|
44
44
|
</span>
|
|
45
45
|
<div className="min-w-0 flex-1">
|
|
@@ -132,7 +132,7 @@ export function Mcp({ tool }: { tool: ToolCallData }) {
|
|
|
132
132
|
|
|
133
133
|
{tool.output && outputStructured ? (
|
|
134
134
|
<div className="space-y-1">
|
|
135
|
-
<div className="text-[
|
|
135
|
+
<div className="text-[10px] font-semibold uppercase tracking-[0.14em] text-ink/40">Result</div>
|
|
136
136
|
<ValueNode value={outputData} />
|
|
137
137
|
</div>
|
|
138
138
|
) : tool.output ? (
|
|
@@ -65,8 +65,8 @@ export function Memory({ tool }: { tool: ToolCallData }) {
|
|
|
65
65
|
return (
|
|
66
66
|
<div className="overflow-hidden rounded-lg border border-ink/8">
|
|
67
67
|
<div className="border-b border-ink/8 bg-paper px-2.5 py-1.5">
|
|
68
|
-
<span className="text-[
|
|
69
|
-
<span className="ml-2 rounded-full bg-ink/5 px-1.5 py-px font-mono text-[
|
|
68
|
+
<span className="text-[10px] font-semibold uppercase tracking-[0.14em] text-ink/40">{meta.label}</span>
|
|
69
|
+
<span className="ml-2 rounded-full bg-ink/5 px-1.5 py-px font-mono text-[10px] text-ink/45">
|
|
70
70
|
{items.length}
|
|
71
71
|
</span>
|
|
72
72
|
</div>
|
|
@@ -80,7 +80,7 @@ export function Memory({ tool }: { tool: ToolCallData }) {
|
|
|
80
80
|
<span className="mt-0.5 shrink-0 text-ink/40">{meta.icon}</span>
|
|
81
81
|
<span className="min-w-0 flex-1 break-words text-ink/80">{text}</span>
|
|
82
82
|
{score !== undefined && (
|
|
83
|
-
<span className="shrink-0 rounded-full bg-ink/5 px-1.5 py-px font-mono text-[
|
|
83
|
+
<span className="shrink-0 rounded-full bg-ink/5 px-1.5 py-px font-mono text-[10px] text-ink/45">
|
|
84
84
|
{Math.round(score * 100)}%
|
|
85
85
|
</span>
|
|
86
86
|
)}
|
|
@@ -120,21 +120,21 @@ function JobRow({ job }: { job: ProcJob }) {
|
|
|
120
120
|
{subject.primary ?? job.resultText ?? job.errorText ?? ''}
|
|
121
121
|
</span>
|
|
122
122
|
{job.resolvedModel && (
|
|
123
|
-
<span className="hidden max-w-[120px] truncate font-mono text-[
|
|
123
|
+
<span className="hidden max-w-[120px] truncate font-mono text-[10px] text-ink/40 sm:inline-block">
|
|
124
124
|
{job.resolvedModel}
|
|
125
125
|
</span>
|
|
126
126
|
)}
|
|
127
|
-
{duration && <span className="shrink-0 font-mono text-[
|
|
127
|
+
{duration && <span className="shrink-0 font-mono text-[10px] text-ink/40">{duration}</span>}
|
|
128
128
|
{job.status && (
|
|
129
|
-
<span className={`shrink-0 font-mono text-[
|
|
129
|
+
<span className={`shrink-0 font-mono text-[10px] font-semibold ${TONE_CLASSES[tone]}`}>{job.status}</span>
|
|
130
130
|
)}
|
|
131
131
|
</div>
|
|
132
132
|
{subject.secondary && (
|
|
133
|
-
<div className="truncate font-mono text-[
|
|
133
|
+
<div className="truncate font-mono text-[10px] text-ink/45" title={subject.secondary}>
|
|
134
134
|
{subject.secondary}
|
|
135
135
|
</div>
|
|
136
136
|
)}
|
|
137
|
-
{progress && <div className="truncate font-mono text-[
|
|
137
|
+
{progress && <div className="truncate font-mono text-[10px] text-ink/40">{progress}</div>}
|
|
138
138
|
</div>
|
|
139
139
|
);
|
|
140
140
|
}
|
|
@@ -148,12 +148,12 @@ function DaemonRow({ daemon, now }: { daemon: ProcDaemon; now: number }) {
|
|
|
148
148
|
<div className="flex items-center gap-2 px-3 py-1.5 text-[11.5px]">
|
|
149
149
|
<Server size={11} className="shrink-0 text-ink/50" />
|
|
150
150
|
<span className="shrink-0 font-mono text-[10px] font-semibold text-ink/80">{daemon.name}</span>
|
|
151
|
-
<span className={`shrink-0 font-mono text-[
|
|
152
|
-
<span className="min-w-0 flex-1 truncate font-mono text-[
|
|
151
|
+
<span className={`shrink-0 font-mono text-[10px] font-semibold ${TONE_CLASSES[tone]}`}>{daemon.state}</span>
|
|
152
|
+
<span className="min-w-0 flex-1 truncate font-mono text-[10px] text-ink/40" title={daemon.readyMatch}>
|
|
153
153
|
{daemon.pid !== undefined ? `pid ${daemon.pid}` : ''}
|
|
154
154
|
</span>
|
|
155
155
|
{uptime && (
|
|
156
|
-
<span className="shrink-0 font-mono text-[
|
|
156
|
+
<span className="shrink-0 font-mono text-[10px] text-ink/40">
|
|
157
157
|
{exited ? 'ran ' : 'up '}
|
|
158
158
|
{uptime.label}
|
|
159
159
|
</span>
|
|
@@ -170,7 +170,7 @@ function AgentRow({ agent }: { agent: ProcAgent }) {
|
|
|
170
170
|
<span className="shrink-0 font-mono text-[10px] font-semibold text-ink/80">{agent.id}</span>
|
|
171
171
|
<span className="min-w-0 flex-1 truncate text-ink/85">{agent.activity ?? 'agent'}</span>
|
|
172
172
|
{typeof agent.ageMs === 'number' && (
|
|
173
|
-
<span className="shrink-0 font-mono text-[
|
|
173
|
+
<span className="shrink-0 font-mono text-[10px] text-ink/40">{formatProcDuration(agent.ageMs)}</span>
|
|
174
174
|
)}
|
|
175
175
|
</div>
|
|
176
176
|
);
|
|
@@ -181,8 +181,8 @@ function Group({ label, count, children }: { label: string; count: number; child
|
|
|
181
181
|
return (
|
|
182
182
|
<div className="overflow-hidden rounded-lg border border-ink/8">
|
|
183
183
|
<div className="flex items-center gap-2 border-b border-ink/8 bg-paper px-3 py-1.5">
|
|
184
|
-
<span className="text-[
|
|
185
|
-
<span className="rounded-full bg-ink/5 px-1.5 py-px font-mono text-[
|
|
184
|
+
<span className="text-[10px] font-semibold uppercase tracking-[0.14em] text-ink/40">{label}</span>
|
|
185
|
+
<span className="rounded-full bg-ink/5 px-1.5 py-px font-mono text-[10px] text-ink/45">{count}</span>
|
|
186
186
|
</div>
|
|
187
187
|
<div className="divide-y divide-ink/6 bg-canvas/40 py-1">{children}</div>
|
|
188
188
|
</div>
|
|
@@ -195,10 +195,10 @@ function LogBlock({ lines }: { lines: string[] }) {
|
|
|
195
195
|
if (lines.length === 0) return null;
|
|
196
196
|
return (
|
|
197
197
|
<div className="space-y-1.5">
|
|
198
|
-
<div className="flex items-center gap-1.5 text-[
|
|
198
|
+
<div className="flex items-center gap-1.5 text-[10px] font-semibold uppercase tracking-[0.14em] text-ink/40">
|
|
199
199
|
<Terminal size={11} className="text-ink/40" />
|
|
200
200
|
<span>Log</span>
|
|
201
|
-
<span className="font-mono text-[
|
|
201
|
+
<span className="font-mono text-[10px] text-ink/35">{lines.length} lines</span>
|
|
202
202
|
</div>
|
|
203
203
|
<div className="max-h-72 overflow-auto rounded-lg border border-ink/8 bg-paper px-3 py-2.5 font-mono text-[11px] leading-relaxed whitespace-pre-wrap break-words text-ink/80 select-text">
|
|
204
204
|
{lines.map((line, index) => (
|
|
@@ -246,7 +246,7 @@ export function Proc({ tool }: { tool: ToolCallData }) {
|
|
|
246
246
|
<DaemonFacts daemon={view.daemon} now={now} />
|
|
247
247
|
{view.input !== undefined && (
|
|
248
248
|
<div className="pt-2">
|
|
249
|
-
<span className="text-[
|
|
249
|
+
<span className="text-[10px] font-semibold uppercase tracking-wider text-ink/40">Stdin</span>
|
|
250
250
|
<div className="mt-1 rounded border border-ink/6 bg-canvas/40 p-2 font-mono text-[10.5px] whitespace-pre-wrap break-all text-ink/80">
|
|
251
251
|
{view.input.trim() || '(Enter)'}
|
|
252
252
|
</div>
|
|
@@ -277,7 +277,7 @@ export function Proc({ tool }: { tool: ToolCallData }) {
|
|
|
277
277
|
<span className="min-w-0 flex-1 truncate text-ink/70" title={subject.primary}>
|
|
278
278
|
{subject.primary ?? subject.secondary ?? ''}
|
|
279
279
|
</span>
|
|
280
|
-
<span className={`shrink-0 font-mono text-[
|
|
280
|
+
<span className={`shrink-0 font-mono text-[10px] font-semibold ${TONE_CLASSES[tone]}`}>
|
|
281
281
|
{outcome.status}
|
|
282
282
|
</span>
|
|
283
283
|
</div>
|
|
@@ -276,9 +276,9 @@ export function Read({ tool, targetFilePath, output }: ReadPanelProps) {
|
|
|
276
276
|
{entry.name}
|
|
277
277
|
{entry.isDir && '/'}
|
|
278
278
|
</span>
|
|
279
|
-
{entry.size && <span className="shrink-0 font-mono text-[
|
|
279
|
+
{entry.size && <span className="shrink-0 font-mono text-[10px] text-ink/40">{entry.size}</span>}
|
|
280
280
|
{entry.time && (
|
|
281
|
-
<span className="shrink-0 rounded bg-ink/5 px-1 py-0.2 font-mono text-[
|
|
281
|
+
<span className="shrink-0 rounded bg-ink/5 px-1 py-0.2 font-mono text-[10px] text-ink/45">
|
|
282
282
|
{entry.time}
|
|
283
283
|
</span>
|
|
284
284
|
)}
|
|
@@ -41,13 +41,13 @@ export function Resolve({ tool }: { tool: ToolCallData }) {
|
|
|
41
41
|
<span className="font-mono text-[11px] font-semibold text-ink">
|
|
42
42
|
{isReject ? 'Proposal Discarded' : 'Proposal Applied'}
|
|
43
43
|
</span>
|
|
44
|
-
<span className="rounded bg-ink/5 px-1.5 py-0.5 font-mono text-[
|
|
44
|
+
<span className="rounded bg-ink/5 px-1.5 py-0.5 font-mono text-[10px] uppercase tracking-wider text-ink/50">
|
|
45
45
|
{sourceTool}
|
|
46
46
|
</span>
|
|
47
47
|
</div>
|
|
48
48
|
|
|
49
49
|
<span
|
|
50
|
-
className={`rounded-full px-2 py-0.5 font-mono text-[
|
|
50
|
+
className={`rounded-full px-2 py-0.5 font-mono text-[10px] font-semibold ${
|
|
51
51
|
isReject ? 'bg-warning/10 text-warning' : 'bg-success/10 text-success'
|
|
52
52
|
}`}
|
|
53
53
|
>
|
|
@@ -57,7 +57,7 @@ export function Resolve({ tool }: { tool: ToolCallData }) {
|
|
|
57
57
|
|
|
58
58
|
{reason && (
|
|
59
59
|
<div className="pt-2.5">
|
|
60
|
-
<span className="text-[
|
|
60
|
+
<span className="text-[10px] font-semibold uppercase tracking-wider text-ink/40">
|
|
61
61
|
Reason
|
|
62
62
|
</span>
|
|
63
63
|
<p className="mt-0.5 text-[12px] leading-relaxed text-ink/85 italic">
|
|
@@ -74,7 +74,7 @@ export function Resolve({ tool }: { tool: ToolCallData }) {
|
|
|
74
74
|
|
|
75
75
|
{files.length > 0 && (
|
|
76
76
|
<div className="mt-2.5 space-y-1 border-t border-ink/6 pt-2">
|
|
77
|
-
<div className="flex items-center justify-between text-[
|
|
77
|
+
<div className="flex items-center justify-between text-[10px] font-semibold uppercase tracking-wider text-ink/40">
|
|
78
78
|
<span>Touched Files ({files.length})</span>
|
|
79
79
|
{typeof replacements === 'number' && (
|
|
80
80
|
<span>{replacements} replacement{replacements === 1 ? '' : 's'}</span>
|
|
@@ -72,7 +72,7 @@ export function SearchFs({ tool }: { tool: ToolCallData }) {
|
|
|
72
72
|
<div className="flex items-center gap-2">
|
|
73
73
|
<FolderSearch size={13} className="text-ink/60" />
|
|
74
74
|
<span className="text-[11px] font-semibold text-ink">Filesystem Search</span>
|
|
75
|
-
<span className="rounded-full bg-ink/5 px-2 py-0.5 font-mono text-[
|
|
75
|
+
<span className="rounded-full bg-ink/5 px-2 py-0.5 font-mono text-[10px] text-ink/50">
|
|
76
76
|
{items.length} {items.length === 1 ? 'entry' : 'entries'}
|
|
77
77
|
</span>
|
|
78
78
|
</div>
|
|
@@ -115,7 +115,7 @@ export function SearchFs({ tool }: { tool: ToolCallData }) {
|
|
|
115
115
|
<span className="min-w-0 flex-1 truncate font-mono text-[11px] text-ink/80">{path}</span>
|
|
116
116
|
{type !== 'unknown' && (
|
|
117
117
|
<span
|
|
118
|
-
className={`shrink-0 rounded px-1.5 py-0.5 font-mono text-[
|
|
118
|
+
className={`shrink-0 rounded px-1.5 py-0.5 font-mono text-[10px] uppercase tracking-wider ${
|
|
119
119
|
type === 'dir' ? 'bg-ink/8 text-ink/60' : 'bg-ink/5 text-ink/45'
|
|
120
120
|
}`}
|
|
121
121
|
>
|
|
@@ -229,7 +229,7 @@ export function SearchTool({ tool }: { tool: ToolCallData }) {
|
|
|
229
229
|
placeholder="Filter paths..."
|
|
230
230
|
value={filterText}
|
|
231
231
|
onChange={(e) => setFilterText(e.currentTarget.value)}
|
|
232
|
-
className="h-6 w-28 rounded border border-ink/10 bg-canvas px-2 text-[10.5px] text-ink placeholder:text-ink/
|
|
232
|
+
className="h-6 w-28 rounded border border-ink/10 bg-canvas px-2 text-[10.5px] text-ink placeholder:text-ink/35 focus:border-ink/30 focus:outline-none"
|
|
233
233
|
/>
|
|
234
234
|
)}
|
|
235
235
|
<CopyButton
|
package/src/client/components/workspace/chat-timeline/tool-renderers/panels/SecurityScan.tsx
CHANGED
|
@@ -70,8 +70,8 @@ export function SecurityScan({ tool }: { tool: ToolCallData }) {
|
|
|
70
70
|
return (
|
|
71
71
|
<div className="overflow-hidden rounded-lg border border-ink/8">
|
|
72
72
|
<div className="flex items-center gap-2 border-b border-ink/8 bg-paper px-2.5 py-1.5">
|
|
73
|
-
<span className="text-[
|
|
74
|
-
<span className="ml-auto flex items-center gap-1.5 font-mono text-[
|
|
73
|
+
<span className="text-[10px] font-semibold uppercase tracking-[0.14em] text-ink/40">Findings</span>
|
|
74
|
+
<span className="ml-auto flex items-center gap-1.5 font-mono text-[10px]">
|
|
75
75
|
{counts.high > 0 && <span className="rounded-full bg-error/10 px-1.5 py-px text-error">{counts.high} high</span>}
|
|
76
76
|
{counts.medium > 0 && <span className="rounded-full bg-warning/10 px-1.5 py-px text-warning">{counts.medium} med</span>}
|
|
77
77
|
{counts.low > 0 && <span className="rounded-full bg-ink/8 px-1.5 py-px text-ink/55">{counts.low} low</span>}
|
|
@@ -88,10 +88,10 @@ export function SecurityScan({ tool }: { tool: ToolCallData }) {
|
|
|
88
88
|
<div key={index} className="flex items-start gap-2 px-2.5 py-1.5 text-[11.5px]">
|
|
89
89
|
<ShieldAlert size={11} className={`mt-0.5 shrink-0 ${sev === 'high' ? 'text-error' : sev === 'medium' ? 'text-warning' : 'text-ink/40'}`} />
|
|
90
90
|
<span className="min-w-0 flex-1 break-words">
|
|
91
|
-
<span className={`mr-1.5 rounded-full px-1.5 py-px font-mono text-[
|
|
91
|
+
<span className={`mr-1.5 rounded-full px-1.5 py-px font-mono text-[10px] ${SEVERITY_STYLES[sev]}`}>{sev}</span>
|
|
92
92
|
{file && <span className="font-mono text-[10px] text-ink/45">{file}{line !== undefined ? `:${line}` : ''}: </span>}
|
|
93
93
|
<span className="text-ink/80">{msg}</span>
|
|
94
|
-
{rule && <span className="ml-1 font-mono text-[
|
|
94
|
+
{rule && <span className="ml-1 font-mono text-[10px] text-ink/35">({rule})</span>}
|
|
95
95
|
</span>
|
|
96
96
|
</div>
|
|
97
97
|
);
|