@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.
Files changed (295) hide show
  1. package/README.md +7 -2
  2. package/dist/client/index.html +9 -8
  3. package/dist/client/index.js +334 -334
  4. package/dist/client/static/js/{index-zg32n2sk.js → index-297dck9a.js} +784 -791
  5. package/dist/client/static/js/index-7ppta1pb.css +1 -0
  6. package/extensions/kabmo-modes/commands.ts +17 -3
  7. package/extensions/kabmo-modes/goal-start.ts +101 -0
  8. package/extensions/kabmo-modes/goal.test.ts +80 -5
  9. package/extensions/kabmo-modes/goal.ts +13 -38
  10. package/extensions/kabmo-modes/prompts.test.ts +12 -0
  11. package/extensions/kabmo-modes/prompts.ts +9 -2
  12. package/index.html +8 -7
  13. package/package.json +2 -2
  14. package/src/cli/lib/args.js +9 -0
  15. package/src/cli/lib/args.test.js +26 -0
  16. package/src/cli/lib/commands/doctor.js +153 -0
  17. package/src/cli/lib/commands/doctor.test.js +139 -0
  18. package/src/cli/lib/commands/serve.js +23 -10
  19. package/src/cli/lib/commands/status.js +22 -3
  20. package/src/cli/lib/omp-setup.js +131 -0
  21. package/src/cli/lib/omp-setup.test.js +115 -0
  22. package/src/cli/main.js +1 -1
  23. package/src/client/components/common/DemoDataBadge.tsx +52 -0
  24. package/src/client/components/common/FolderPicker.tsx +2 -2
  25. package/src/client/components/common/Modal.tsx +15 -1
  26. package/src/client/components/common/code-surface/blame-panel.ts +1 -1
  27. package/src/client/components/common/context-usage-button/index.test.tsx +1 -1
  28. package/src/client/components/common/context-usage-button/index.tsx +4 -4
  29. package/src/client/components/common/demo-data-badge.test.tsx +58 -0
  30. package/src/client/components/common/diagram-viewer/index.tsx +2 -2
  31. package/src/client/components/common/editor-view-buttons/index.tsx +2 -2
  32. package/src/client/components/common/header-controls/MoreMenu.tsx +1 -1
  33. package/src/client/components/common/header-controls/index.tsx +4 -1
  34. package/src/client/components/common/markdown-review/ReviewPopover.tsx +2 -2
  35. package/src/client/components/common/markdown-review/ReviewSummary.tsx +1 -1
  36. package/src/client/components/common/panel-mark/index.tsx +2 -1
  37. package/src/client/components/common/server-control/Panel.tsx +3 -3
  38. package/src/client/components/common/server-control/index.tsx +1 -1
  39. package/src/client/components/common/shell-update-button/Modal.tsx +1 -1
  40. package/src/client/components/common/todo-row/index.tsx +1 -1
  41. package/src/client/components/layout/ActivityBar.tsx +4 -0
  42. package/src/client/components/layout/ShellNotice.tsx +33 -0
  43. package/src/client/components/layout/desktop-layout/index.tsx +14 -16
  44. package/src/client/components/layout/desktop-layout/resizer/index.tsx +14 -1
  45. package/src/client/components/layout/session-sidebar/CategoryHeader.tsx +2 -1
  46. package/src/client/components/layout/session-sidebar/ClassicView.tsx +5 -1
  47. package/src/client/components/layout/session-sidebar/SessionList.tsx +1 -1
  48. package/src/client/components/layout/session-sidebar/SessionListNotice.tsx +56 -0
  49. package/src/client/components/layout/session-sidebar/SessionsView.tsx +2 -0
  50. package/src/client/components/layout/session-sidebar/about-modal/UpdateSection.tsx +1 -1
  51. package/src/client/components/layout/session-sidebar/about-modal/index.tsx +12 -1
  52. package/src/client/components/layout/session-sidebar/modern/WorkspaceHeader.tsx +2 -1
  53. package/src/client/components/layout/session-sidebar/modern/index.tsx +6 -2
  54. package/src/client/components/layout/session-sidebar/new-workspace-modal/CloneField.tsx +1 -1
  55. package/src/client/components/layout/session-sidebar/new-workspace-modal/index.tsx +2 -2
  56. package/src/client/components/layout/session-sidebar/scheduler-modal/TaskForm.tsx +1 -1
  57. package/src/client/components/layout/session-sidebar/scheduler-modal/TaskList.tsx +3 -3
  58. package/src/client/components/layout/session-sidebar/scheduler-modal/index.tsx +1 -1
  59. package/src/client/components/layout/session-sidebar/session-list-states.test.tsx +150 -0
  60. package/src/client/components/layout/session-sidebar/variant-props.ts +6 -0
  61. package/src/client/components/mobile/LayoutWrapper.tsx +20 -30
  62. package/src/client/components/mobile/MainView.tsx +5 -2
  63. package/src/client/components/mobile/RightSidebar.tsx +1 -1
  64. package/src/client/components/mobile/SessionSidebar.tsx +3 -0
  65. package/src/client/components/mobile/mobile-main-view/Header.tsx +2 -2
  66. package/src/client/components/mobile/mobile-session-sidebar/ClassicDrawer.tsx +7 -1
  67. package/src/client/components/mobile/mobile-session-sidebar/Toolbar.tsx +1 -1
  68. package/src/client/components/settings/Modal.tsx +15 -1
  69. package/src/client/components/settings/ProjectSelectorDropdown.tsx +1 -1
  70. package/src/client/components/settings/Sidebar.tsx +2 -2
  71. package/src/client/components/settings/categories/OmpSettings.tsx +1 -1
  72. package/src/client/components/settings/categories/TokenUsageSettings.tsx +1 -1
  73. package/src/client/components/settings/categories/agent-settings/DetailPane.tsx +3 -3
  74. package/src/client/components/settings/categories/appearance-settings/EditorFontSection.tsx +1 -1
  75. package/src/client/components/settings/categories/appearance-settings/EditorThemeSection.tsx +2 -2
  76. package/src/client/components/settings/categories/appearance-settings/IconStyleSection.tsx +5 -5
  77. package/src/client/components/settings/categories/appearance-settings/SidebarStyleSection.tsx +1 -1
  78. package/src/client/components/settings/categories/appearance-settings/SurfaceStyleSection.tsx +1 -1
  79. package/src/client/components/settings/categories/appearance-settings/ThemeCard.tsx +1 -1
  80. package/src/client/components/settings/categories/chat-settings/ComposerStyleSection.tsx +1 -1
  81. package/src/client/components/settings/categories/chat-settings/GoalSection.tsx +1 -1
  82. package/src/client/components/settings/categories/command-settings/DetailPane.tsx +2 -2
  83. package/src/client/components/settings/categories/omp-settings/ConfigTabs.tsx +5 -5
  84. package/src/client/components/settings/categories/omp-settings/EngineHeader.tsx +3 -3
  85. package/src/client/components/settings/categories/omp-settings/RoleRow.tsx +2 -2
  86. package/src/client/components/settings/categories/panel-plugins/LeftDockSettings.tsx +1 -1
  87. package/src/client/components/settings/categories/panel-plugins/PluginCard.tsx +1 -1
  88. package/src/client/components/settings/categories/panel-plugins/PluginMark.tsx +4 -3
  89. package/src/client/components/settings/categories/plugin-settings/SidebarList.tsx +2 -2
  90. package/src/client/components/settings/categories/project-settings/AddProjectModal.tsx +1 -1
  91. package/src/client/components/settings/categories/project-settings/NameInput.tsx +1 -1
  92. package/src/client/components/settings/categories/project-settings/PathField.tsx +1 -1
  93. package/src/client/components/settings/categories/provider-settings/AddModelModal.tsx +3 -3
  94. package/src/client/components/settings/categories/provider-settings/AddProviderModal.tsx +1 -1
  95. package/src/client/components/settings/categories/provider-settings/AuthSection.tsx +2 -2
  96. package/src/client/components/settings/categories/provider-settings/DeleteProviderModal.tsx +1 -1
  97. package/src/client/components/settings/categories/provider-settings/EntryAdvanced.tsx +4 -4
  98. package/src/client/components/settings/categories/provider-settings/EntryModal.tsx +2 -2
  99. package/src/client/components/settings/categories/provider-settings/LoginModal.tsx +1 -1
  100. package/src/client/components/settings/categories/provider-settings/ModelCapabilitiesModal.tsx +1 -1
  101. package/src/client/components/settings/categories/provider-settings/ModelsList.tsx +2 -2
  102. package/src/client/components/settings/categories/provider-settings/PriceFields.tsx +1 -1
  103. package/src/client/components/settings/categories/token-usage-settings/Breakdown.tsx +4 -4
  104. package/src/client/components/settings/categories/token-usage-settings/Chart.tsx +2 -2
  105. package/src/client/components/settings/categories/token-usage-settings/Controls.tsx +1 -1
  106. package/src/client/components/settings/categories/token-usage-settings/MetricsGrid.tsx +1 -1
  107. package/src/client/components/settings/categories/usage-settings/KenariCard.tsx +5 -5
  108. package/src/client/components/workspace/browser-panel/AddressBar.tsx +1 -1
  109. package/src/client/components/workspace/browser-panel/Screencast.tsx +6 -6
  110. package/src/client/components/workspace/browser-panel/TabStrip.tsx +1 -1
  111. package/src/client/components/workspace/browser-panel/index.tsx +1 -1
  112. package/src/client/components/workspace/browser-toolbar/index.tsx +5 -5
  113. package/src/client/components/workspace/chat-timeline/AttachmentChips.tsx +1 -1
  114. package/src/client/components/workspace/chat-timeline/GeneratingIndicator.tsx +13 -26
  115. package/src/client/components/workspace/chat-timeline/GoalNotice.tsx +2 -2
  116. package/src/client/components/workspace/chat-timeline/MessageItem.tsx +1 -1
  117. package/src/client/components/workspace/chat-timeline/MinimapShortcuts.tsx +1 -1
  118. package/src/client/components/workspace/chat-timeline/QueueList.tsx +1 -1
  119. package/src/client/components/workspace/chat-timeline/SubagentView.tsx +1 -1
  120. package/src/client/components/workspace/chat-timeline/SystemNotice.tsx +5 -5
  121. package/src/client/components/workspace/chat-timeline/TaskResultContent.tsx +2 -2
  122. package/src/client/components/workspace/chat-timeline/ThinkingSection.tsx +4 -4
  123. package/src/client/components/workspace/chat-timeline/ToolCallingSection.tsx +1 -1
  124. package/src/client/components/workspace/chat-timeline/chat-input/AccessDropdown.tsx +1 -1
  125. package/src/client/components/workspace/chat-timeline/chat-input/ArmedGoalStrip.tsx +71 -0
  126. package/src/client/components/workspace/chat-timeline/chat-input/AttachmentToolbar.tsx +4 -3
  127. package/src/client/components/workspace/chat-timeline/chat-input/GoalBanner.test.ts +1 -1
  128. package/src/client/components/workspace/chat-timeline/chat-input/GoalBanner.tsx +3 -3
  129. package/src/client/components/workspace/chat-timeline/chat-input/GoalModal.test.ts +176 -0
  130. package/src/client/components/workspace/chat-timeline/chat-input/GoalModal.tsx +70 -81
  131. package/src/client/components/workspace/chat-timeline/chat-input/GoalSurfaces.tsx +10 -1
  132. package/src/client/components/workspace/chat-timeline/chat-input/ModeToggles.test.ts +20 -0
  133. package/src/client/components/workspace/chat-timeline/chat-input/ModeToggles.tsx +13 -7
  134. package/src/client/components/workspace/chat-timeline/chat-input/ThinkingLevelDropdown.tsx +1 -1
  135. package/src/client/components/workspace/chat-timeline/chat-input/Toolbar.test.ts +65 -3
  136. package/src/client/components/workspace/chat-timeline/chat-input/Toolbar.tsx +69 -19
  137. package/src/client/components/workspace/chat-timeline/chat-input/WaitingDependencyPicker.tsx +2 -2
  138. package/src/client/components/workspace/chat-timeline/chat-input/composer-portal.test.tsx +174 -0
  139. package/src/client/components/workspace/chat-timeline/chat-input/goal-modal-parts.tsx +80 -0
  140. package/src/client/components/workspace/chat-timeline/chat-input/modes-props.ts +15 -3
  141. package/src/client/components/workspace/chat-timeline/chat-input/styles.test.tsx +3 -1
  142. package/src/client/components/workspace/chat-timeline/plan-review/index.tsx +1 -1
  143. package/src/client/components/workspace/chat-timeline/target-picker/WorkspacePicker.tsx +1 -1
  144. package/src/client/components/workspace/chat-timeline/target-picker/WorktreePicker.tsx +1 -1
  145. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/FrameControl.tsx +1 -1
  146. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/OptionRow.tsx +1 -1
  147. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/OrphanAsks.tsx +1 -1
  148. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/QuestionBlock.tsx +2 -2
  149. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/QuestionCard.tsx +4 -4
  150. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/index.tsx +2 -2
  151. package/src/client/components/workspace/chat-timeline/tool-renderers/extension-dialog/Header.tsx +1 -1
  152. package/src/client/components/workspace/chat-timeline/tool-renderers/extension-dialog/SelectBody.tsx +1 -1
  153. package/src/client/components/workspace/chat-timeline/tool-renderers/hashline-patch/index.tsx +4 -4
  154. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/AstEdit.tsx +6 -6
  155. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Bash.tsx +13 -13
  156. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Checkpoint.tsx +1 -1
  157. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/ContextNotes.tsx +2 -2
  158. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Debug.tsx +3 -3
  159. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Edit.tsx +9 -9
  160. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Eval.tsx +10 -10
  161. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/FileMatches.tsx +1 -1
  162. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Goal.tsx +5 -5
  163. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/GoalRecord.tsx +5 -5
  164. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Lsp.tsx +6 -6
  165. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/ManageSkill.tsx +5 -5
  166. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Mcp.tsx +2 -2
  167. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Memory.tsx +3 -3
  168. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Proc.tsx +15 -15
  169. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Read.tsx +2 -2
  170. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Resolve.tsx +4 -4
  171. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/SearchFs.tsx +2 -2
  172. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/SearchTool.tsx +1 -1
  173. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/SecurityScan.tsx +4 -4
  174. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/TaskResult.tsx +7 -7
  175. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Think.tsx +2 -2
  176. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Todo.tsx +2 -2
  177. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Wait.missing.test.ts +4 -2
  178. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Wait.tsx +17 -17
  179. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/WebSearch.tsx +3 -3
  180. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ArtifactChip.tsx +1 -1
  181. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/EnvelopeHeader.tsx +2 -2
  182. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ExcerptCode.tsx +3 -3
  183. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/FallbackOutput.tsx +3 -3
  184. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/JsonCodeBlock.tsx +3 -3
  185. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/OutputWindow.tsx +2 -2
  186. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolBody.tsx +2 -2
  187. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolFactChips.tsx +2 -2
  188. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolPanelHeader.tsx +1 -1
  189. package/src/client/components/workspace/chat-timeline/tool-renderers/styles/Minimal.tsx +1 -1
  190. package/src/client/components/workspace/context-panel/RawJsonViewer.tsx +2 -2
  191. package/src/client/components/workspace/context-panel/StatsGrid.tsx +1 -1
  192. package/src/client/components/workspace/context-panel/index.tsx +1 -1
  193. package/src/client/components/workspace/diff-panel/ConflictBanner.tsx +1 -1
  194. package/src/client/components/workspace/editor/EmptyEditor.tsx +1 -1
  195. package/src/client/components/workspace/editor/FindWidget.tsx +1 -1
  196. package/src/client/components/workspace/editor/Tabs.tsx +1 -1
  197. package/src/client/components/workspace/editor/Toolbar.tsx +1 -1
  198. package/src/client/components/workspace/file-explorer/OutlineSection.tsx +2 -2
  199. package/src/client/components/workspace/file-explorer/RowLabel.tsx +1 -1
  200. package/src/client/components/workspace/file-explorer/index.tsx +1 -1
  201. package/src/client/components/workspace/git-panel/BranchToolbar.tsx +2 -2
  202. package/src/client/components/workspace/git-panel/ChangesList.tsx +3 -3
  203. package/src/client/components/workspace/git-panel/ConflictItem.tsx +3 -3
  204. package/src/client/components/workspace/git-panel/FileItem.tsx +2 -2
  205. package/src/client/components/workspace/git-panel/StashSection.tsx +5 -5
  206. package/src/client/components/workspace/git-panel/TreeItem.tsx +2 -2
  207. package/src/client/components/workspace/git-panel/branch-modal/BranchRow.tsx +4 -4
  208. package/src/client/components/workspace/git-panel/branch-modal/DeleteDialog.tsx +2 -2
  209. package/src/client/components/workspace/git-panel/index.tsx +1 -1
  210. package/src/client/components/workspace/model-dropdown/Item.tsx +3 -3
  211. package/src/client/components/workspace/model-dropdown/Section.tsx +1 -1
  212. package/src/client/components/workspace/model-dropdown/index.tsx +3 -3
  213. package/src/client/components/workspace/plan-panel/index.tsx +2 -2
  214. package/src/client/components/workspace/repo-picker/Modal.tsx +1 -1
  215. package/src/client/components/workspace/repo-picker/Row.tsx +6 -6
  216. package/src/client/components/workspace/search-panel/Body.tsx +2 -2
  217. package/src/client/components/workspace/search-panel/Results.tsx +1 -1
  218. package/src/client/components/workspace/search-panel/index.tsx +1 -1
  219. package/src/client/components/workspace/terminal-panel/index.tsx +1 -1
  220. package/src/client/components/workspace/todo-panel/PhaseGroup.tsx +1 -1
  221. package/src/client/components/workspace/todo-panel/index.tsx +2 -2
  222. package/src/client/components/workspace/user-browser-panel/AddressBar.tsx +5 -5
  223. package/src/client/components/workspace/user-browser-panel/AnnotateBar.test.tsx +13 -13
  224. package/src/client/components/workspace/user-browser-panel/AnnotateBar.tsx +4 -4
  225. package/src/client/components/workspace/user-browser-panel/AnnotateLayer.tsx +1 -1
  226. package/src/client/components/workspace/user-browser-panel/AnnotateTarget.tsx +7 -7
  227. package/src/client/components/workspace/user-browser-panel/Frame.tsx +1 -1
  228. package/src/client/components/workspace/wiki-panel/Nav.tsx +1 -1
  229. package/src/client/components/workspace/wiki-panel/index.tsx +2 -2
  230. package/src/client/glass.css +50 -0
  231. package/src/client/glass.test.ts +68 -24
  232. package/src/client/hooks/chat/composer/browser-context.test.ts +6 -6
  233. package/src/client/hooks/chat/composer/use-draft.test.ts +2 -2
  234. package/src/client/hooks/chat/omp/prompt-send.test.ts +36 -0
  235. package/src/client/hooks/chat/omp/prompt-send.ts +24 -18
  236. package/src/client/hooks/chat/omp/session-list.tsx +24 -70
  237. package/src/client/hooks/chat/omp/session-merges.ts +89 -0
  238. package/src/client/hooks/chat/omp/session-sidebar-controller.ts +4 -1
  239. package/src/client/hooks/chat/timeline/armed-goal-send.test.ts +168 -0
  240. package/src/client/hooks/chat/timeline/armed-goal.test.ts +178 -0
  241. package/src/client/hooks/chat/timeline/goal-command.ts +57 -27
  242. package/src/client/hooks/chat/timeline/index.ts +7 -4
  243. package/src/client/hooks/chat/timeline/mode-post.ts +46 -0
  244. package/src/client/hooks/chat/timeline/modes-contract.ts +94 -0
  245. package/src/client/hooks/chat/timeline/modes.ts +60 -95
  246. package/src/client/hooks/chat/timeline/send-props.ts +97 -0
  247. package/src/client/hooks/chat/timeline/send-steer.test.ts +6 -0
  248. package/src/client/hooks/chat/timeline/send.test-util.ts +55 -8
  249. package/src/client/hooks/chat/timeline/send.test.ts +17 -1
  250. package/src/client/hooks/chat/timeline/send.ts +64 -72
  251. package/src/client/hooks/ui/dialog-behaviour.ts +143 -0
  252. package/src/client/hooks/ui/theme.ts +17 -0
  253. package/src/client/hooks/workspace/copy-tab-path.ts +23 -0
  254. package/src/client/hooks/workspace/mobile-back.ts +71 -0
  255. package/src/client/palette-class.test.ts +93 -0
  256. package/src/client/tailwind-contrast.test.ts +194 -0
  257. package/src/client/tailwind.css +327 -8
  258. package/src/server/lib/assets/theme-shell.server.ts +4 -10
  259. package/src/server/lib/omp/config/provider-seeds.test.ts +39 -1
  260. package/src/server/lib/omp/config/provider-seeds.ts +32 -3
  261. package/src/server/lib/omp/config/provider-vision-compat.test.ts +140 -0
  262. package/src/server/lib/omp/core/host-resolution.test.ts +1 -55
  263. package/src/server/lib/omp/core/install-hint.test.ts +48 -0
  264. package/src/server/lib/omp/core/install-hint.ts +64 -0
  265. package/src/server/lib/omp/core/startup.test.ts +125 -0
  266. package/src/server/lib/omp/core/startup.ts +5 -1
  267. package/src/server/lib/omp/mode/request.ts +14 -6
  268. package/src/server/plugins/ssr.ts +2 -1
  269. package/src/shared/lib/browser/annotate.test.ts +22 -22
  270. package/src/shared/lib/browser/annotate.ts +14 -14
  271. package/src/shared/lib/browser/page-context.ts +6 -6
  272. package/src/shared/lib/icons/icon-paint-authority.test.ts +86 -0
  273. package/src/shared/lib/icons/icon-paint-authority.ts +94 -0
  274. package/src/shared/lib/icons/icon-paint-css.test.ts +139 -25
  275. package/src/shared/lib/icons/icon-paint-css.ts +76 -50
  276. package/src/shared/lib/icons/icon-paint-panel.ts +15 -18
  277. package/src/shared/lib/icons/icon-paint-weight.ts +142 -0
  278. package/src/shared/lib/icons/icon-tone.ts +58 -13
  279. package/src/shared/lib/icons/tint-hues.generated.ts +51 -6
  280. package/src/shared/lib/icons/tint-tones.test.ts +257 -0
  281. package/src/shared/lib/icons/tint.test.ts +3 -211
  282. package/src/shared/lib/icons/tint.ts +23 -25
  283. package/src/shared/lib/omp/mode/actions.ts +40 -0
  284. package/src/shared/lib/omp/mode/types.ts +12 -0
  285. package/src/shared/lib/theme/css.ts +21 -0
  286. package/src/shared/lib/theme/first-frame.ts +38 -0
  287. package/src/shared/lib/theme/ink-scale.test.ts +151 -0
  288. package/src/shared/lib/theme/ink-scale.ts +103 -0
  289. package/src/shared/lib/theme/shell-palette.test.ts +22 -5
  290. package/src/shared/lib/theme/shell-palette.ts +9 -4
  291. package/src/shared/lib/theme/theme.test.ts +28 -3
  292. package/src/shared/lib/workspace/project-accent.test.ts +33 -1
  293. package/src/shared/lib/workspace/project-accent.ts +23 -0
  294. package/src/shared/types/omp/agent.ts +24 -9
  295. package/dist/client/static/js/index-0721wrkf.css +0 -1
@@ -0,0 +1,174 @@
1
+ /**
2
+ * @license
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ /**
7
+ * Nothing the composer mounts may be a `fixed` overlay INSIDE its card.
8
+ *
9
+ * The composer card can become a containing block for `position: fixed` through
10
+ * any of `backdrop-filter` (its own `glass` style), a `transform`, or
11
+ * `contain: layout`. Measured in Chromium at 1440x900 by re-parenting the Goal
12
+ * dialog's scrim into `[data-composer-style]`: it went from `1440x900` at
13
+ * `(0,0)` to `710x164` at the card's box, i.e. the dialog centred on the
14
+ * composer instead of the screen.
15
+ *
16
+ * The rule that follows, and what this file guards: a composer-mounted dialog
17
+ * PORTALS to `<body>`. `ChatInput` is mounted for real here (all five styles),
18
+ * the Goal modal is opened through the same button the operator presses, and
19
+ * the assertion is about the TREE — the scrim must not be a descendant of the
20
+ * card, whatever the browser later does with layout.
21
+ */
22
+
23
+ import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, test } from 'bun:test';
24
+ import { Window } from 'happy-dom';
25
+ import { h, render } from 'preact';
26
+ import { act } from 'preact/test-utils';
27
+ import { ChatInput } from '@/client/components/workspace/chat-timeline/chat-input';
28
+ import { primeKabmoSettings } from '@/shared/lib/settings/client';
29
+ import { delay } from '@/client/hooks/chat/composer/file-reads';
30
+ import { restoreRealtime, silenceRealtime } from '@/test-support/silent-socket';
31
+ import { COMPOSER_STYLES, type ComposerStyle } from '@/shared/lib/chat/composer/style';
32
+
33
+ const DOM_GLOBALS = ['window', 'document', 'navigator', 'Node', 'Element', 'HTMLElement', 'HTMLInputElement', 'HTMLTextAreaElement', 'Event', 'MouseEvent', 'KeyboardEvent', 'FocusEvent'] as const;
34
+ const nativeGlobals: Partial<Record<(typeof DOM_GLOBALS)[number], unknown>> = {};
35
+
36
+ beforeAll(() => {
37
+ const win = new Window({ url: 'http://localhost' });
38
+ const target = globalThis as unknown as Record<string, unknown>;
39
+ for (const key of DOM_GLOBALS) {
40
+ if (!(key in nativeGlobals)) nativeGlobals[key] = target[key];
41
+ target[key] = (win as unknown as Record<string, unknown>)[key];
42
+ }
43
+ });
44
+
45
+ afterAll(() => {
46
+ const target = globalThis as unknown as Record<string, unknown>;
47
+ for (const key of DOM_GLOBALS) {
48
+ if (nativeGlobals[key] === undefined) delete target[key];
49
+ else target[key] = nativeGlobals[key];
50
+ }
51
+ });
52
+
53
+ let container: HTMLElement | null = null;
54
+
55
+ beforeEach(() => {
56
+ silenceRealtime();
57
+ });
58
+
59
+ afterEach(async () => {
60
+ const host = container;
61
+ if (host) {
62
+ await act(async () => { render(null, host); });
63
+ host.remove();
64
+ }
65
+ container = null;
66
+ restoreRealtime();
67
+ await delay(50);
68
+ // Any dialog a case left open must not outlive it: the portal is outside the
69
+ // mount host, so unmounting the host is not enough.
70
+ for (const node of document.querySelectorAll('.modal-scrim')) node.remove();
71
+ });
72
+
73
+ /** Mount the composer with its Goal modal reachable, as the operator sees it. */
74
+ async function mountComposer(style: ComposerStyle): Promise<HTMLElement> {
75
+ primeKabmoSettings({ kabmo_settings: { composerStyle: style } });
76
+ const host = document.createElement('div');
77
+ document.body.appendChild(host);
78
+ container = host;
79
+
80
+ await act(async () => {
81
+ render(
82
+ h(ChatInput, {
83
+ value: '',
84
+ onChange: () => {},
85
+ onSend: () => {},
86
+ isGenerating: false,
87
+ composerModelRef: { current: null },
88
+ variant: 'desktop',
89
+ sessionId: 'composer-portal-test',
90
+ expandable: true,
91
+ accessMode: 'always-ask',
92
+ onAccessModeChange: () => {},
93
+ modes: {
94
+ plan: false,
95
+ goal: false,
96
+ goalOpen: false,
97
+ goalRecord: null,
98
+ goalContinuation: null,
99
+ goalEvaluating: false,
100
+ goalArm: null,
101
+ disarmGoal: () => {},
102
+ pending: false,
103
+ planAvailable: true,
104
+ error: null,
105
+ clearError: () => {},
106
+ onTogglePlan: () => {},
107
+ onGoalAction: async () => ({ ok: true }),
108
+ },
109
+ }),
110
+ host,
111
+ );
112
+ });
113
+ await act(async () => { await delay(20); });
114
+ return host;
115
+ }
116
+
117
+ /** Open the Goal modal through the toolbar button, the real entry point. */
118
+ async function openGoalModal(host: HTMLElement): Promise<void> {
119
+ const button = host.querySelector('[aria-label="Set a goal"]') as HTMLButtonElement | null;
120
+ if (!button) throw new Error('no Goal button on the composer');
121
+ await act(async () => { button.click(); });
122
+ await act(async () => { await delay(20); });
123
+ }
124
+
125
+ describe('a composer-mounted dialog', () => {
126
+ for (const style of COMPOSER_STYLES) {
127
+ test(`${style}: the goal dialog lives in <body>, not in the composer card`, async () => {
128
+ const host = await mountComposer(style);
129
+ await openGoalModal(host);
130
+
131
+ const card = host.querySelector('[data-composer-style]') as HTMLElement;
132
+ const scrim = document.body.querySelector('.glass-overlay')?.parentElement as HTMLElement | null;
133
+
134
+ expect(scrim).not.toBeNull();
135
+ // The tree assertion. If this fails, the browser will size `inset-0`
136
+ // against whichever containing block the style happens to create, and the
137
+ // dialog centres on the composer — the bug this file exists for.
138
+ expect(card.contains(scrim)).toBe(false);
139
+ expect(scrim?.parentElement).toBe(document.body);
140
+ expect(scrim?.className).toContain('fixed');
141
+ expect(scrim?.className).toContain('inset-0');
142
+ });
143
+ }
144
+
145
+ test('no `fixed` overlay survives INSIDE the composer card', async () => {
146
+ // The generic form of the rule, so a future dialog added to the composer
147
+ // fails here instead of shipping: any descendant of the card that declares
148
+ // `position: fixed` would be sized by the card, not the viewport.
149
+ const host = await mountComposer('glass');
150
+ await openGoalModal(host);
151
+
152
+ const card = host.querySelector('[data-composer-style]') as HTMLElement;
153
+ // The class is the source of truth here: Tailwind's `fixed` is what SETS the
154
+ // property, and reading the computed value in this DOM would only re-ask
155
+ // the same question through a stylesheet that the test window does not load.
156
+ const offenders = [...card.querySelectorAll('*')].filter((node) =>
157
+ /(^|\s)fixed(\s|$)/.test((node as Element).className || ''),
158
+ );
159
+ expect(offenders.map((node) => node.className)).toEqual([]);
160
+ });
161
+
162
+ test('closing it removes the portal, leaving nothing in <body>', async () => {
163
+ const host = await mountComposer('classic');
164
+ await openGoalModal(host);
165
+ expect(document.body.querySelector('.glass-overlay')).not.toBeNull();
166
+
167
+ const cancel = [...document.querySelectorAll('button')].find((node) => node.textContent?.trim() === 'Cancel');
168
+ expect(cancel).toBeDefined();
169
+ await act(async () => { (cancel as HTMLButtonElement).click(); });
170
+ await act(async () => { await delay(20); });
171
+
172
+ expect(document.body.querySelector('.glass-overlay')).toBeNull();
173
+ });
174
+ });
@@ -0,0 +1,80 @@
1
+ /**
2
+ * @license
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ /**
7
+ * The Goal modal's props, its two field parsers, and its two small rows.
8
+ *
9
+ * Split from `GoalModal.tsx` for the repo's per-file ceiling; the seam is that
10
+ * none of this knows about the dialog's state — the parsers turn one field into
11
+ * a value or a sentence, and the rows are presentational.
12
+ */
13
+
14
+ import type { ComponentChildren } from 'preact';
15
+ import type { GoalRecord } from '@/shared/lib/omp/mode/types';
16
+ import type { GoalAction } from '@/shared/lib/omp/mode/actions';
17
+ import type { GoalActionResult } from '@/client/hooks/chat/timeline/goal-command';
18
+
19
+ export interface GoalModalProps {
20
+ open: boolean;
21
+ goal: boolean;
22
+ goalRecord: GoalRecord | null;
23
+ pending: boolean;
24
+ /** The default token budget a NEW goal starts with (Settings → Chats → Goal
25
+ * Mode). Null means no budget, which is also what an empty field means. */
26
+ defaultBudget?: number | null;
27
+ onClose: () => void;
28
+ /** Resolves with the outcome. The modal closes ITSELF only on success; on a
29
+ * refusal it stays open with the objective (`error`) so the user can read
30
+ * the reason and retry — closing on submit threw away what they typed. */
31
+ onSubmit: (action: GoalAction) => Promise<GoalActionResult>;
32
+ }
33
+
34
+ export function parseBudget(raw: string): { value: number | 'off' } | { error: string } {
35
+ const trimmed = raw.trim();
36
+ if (!trimmed) return { value: 'off' };
37
+ if (trimmed === 'off') return { value: 'off' };
38
+ const parsed = Number.parseInt(trimmed, 10);
39
+ if (!Number.isInteger(parsed) || parsed <= 0) return { error: 'Budget must be a positive integer, or `off`.' };
40
+ return { value: parsed };
41
+ }
42
+
43
+ /** An empty field means "whatever this install defaults to" — not zero. */
44
+ export function parseMaxTurns(raw: string): { value: number | 'default' } | { error: string } {
45
+ const trimmed = raw.trim();
46
+ if (!trimmed) return { value: 'default' };
47
+ const parsed = Number.parseInt(trimmed, 10);
48
+ if (!Number.isInteger(parsed) || parsed <= 0) return { error: 'Max turns must be a positive integer.' };
49
+ return { value: parsed };
50
+ }
51
+
52
+ export function Stat({ label, value }: { label: string; value: string }) {
53
+ return (
54
+ <div className="rounded-lg border border-ink/10 bg-canvas/30 p-2">
55
+ <div className="text-[10px] font-semibold uppercase tracking-wider text-ink/40">{label}</div>
56
+ <div className="mt-0.5 truncate font-mono text-[11.5px] text-ink">{value}</div>
57
+ </div>
58
+ );
59
+ }
60
+
61
+ export function ActionButton({
62
+ children,
63
+ onClick,
64
+ disabled,
65
+ }: {
66
+ children: ComponentChildren;
67
+ onClick: () => void;
68
+ disabled?: boolean;
69
+ }) {
70
+ return (
71
+ <button
72
+ type="button"
73
+ onClick={onClick}
74
+ disabled={disabled}
75
+ className="rounded border border-ink/20 px-3 py-1.5 text-[11px] text-ink transition-colors hover:bg-ink/5 disabled:opacity-50"
76
+ >
77
+ {children}
78
+ </button>
79
+ );
80
+ }
@@ -13,7 +13,8 @@
13
13
  */
14
14
 
15
15
  import type { GoalContinuation, GoalRecord } from '@/shared/lib/omp/mode/types';
16
- import type { GoalAction } from '@/client/hooks/chat/timeline/modes';
16
+ import type { ArmedGoal, GoalAction } from '@/shared/lib/omp/mode/actions';
17
+ import type { GoalActionResult } from '@/client/hooks/chat/timeline/goal-command';
17
18
 
18
19
  export interface ComposerModes {
19
20
  plan: boolean;
@@ -27,6 +28,14 @@ export interface ComposerModes {
27
28
  goalContinuation: GoalContinuation | null;
28
29
  /** The loop is deciding whether to open another automatic turn. */
29
30
  goalEvaluating: boolean;
31
+ /**
32
+ * A goal the operator set but has not started. It is NOT `goalOpen`: no child
33
+ * record exists until the next prompt creates it, so this is what the strip
34
+ * and the button read while the goal waits.
35
+ */
36
+ goalArm: ArmedGoal | null;
37
+ /** Cancel the armed goal. */
38
+ disarmGoal: () => void;
30
39
  pending: boolean;
31
40
  /** Plan is hidden while Goal is on: omp refuses to enter one mode while the
32
41
  * other is active, so offering both would present a button whose only
@@ -44,6 +53,9 @@ export interface ComposerModes {
44
53
  onTogglePlan: (enabled: boolean) => void;
45
54
  /** The Goal modal's outcome. Opening the modal is the TOOLBAR's business
46
55
  * (the modal itself lives in `ChatInput`), so that handler is passed
47
- * separately and does not belong to the shared mode shape. */
48
- onGoalAction: (action: GoalAction) => void;
56
+ * separately and does not belong to the shared mode shape.
57
+ *
58
+ * Resolves with the outcome: the modal closes on `ok` and keeps the form
59
+ * otherwise, so a refusal can be read and retried. */
60
+ onGoalAction: (action: GoalAction) => Promise<GoalActionResult>;
49
61
  }
@@ -93,12 +93,14 @@ async function mount(style: ComposerStyle): Promise<HTMLElement> {
93
93
  goalRecord: null,
94
94
  goalContinuation: null,
95
95
  goalEvaluating: false,
96
+ goalArm: null,
97
+ disarmGoal: () => {},
96
98
  pending: false,
97
99
  planAvailable: true,
98
100
  error: null,
99
101
  clearError: () => {},
100
102
  onTogglePlan: () => {},
101
- onGoalAction: () => {},
103
+ onGoalAction: async () => ({ ok: true }),
102
104
  },
103
105
  }),
104
106
  host,
@@ -79,7 +79,7 @@ export function PlanReviewPanel({ proposal, deciding, error, onDecide, onDismiss
79
79
  type="button"
80
80
  onClick={onDismiss}
81
81
  aria-label="Dismiss the review without deciding"
82
- title="Dismiss without deciding — the plan stays parked"
82
+ title="Dismiss without deciding: the plan stays parked"
83
83
  className="rounded p-1 text-ink/50 transition-colors hover:bg-ink/5 hover:text-ink"
84
84
  >
85
85
  <X size={14} />
@@ -68,7 +68,7 @@ export function WorkspacePicker({
68
68
  aria-haspopup="menu"
69
69
  aria-expanded={open}
70
70
  onClick={() => setOpen((value) => !value)}
71
- className="group flex items-center space-x-1.5 px-1.5 py-1 rounded-md text-xs font-medium text-ink/75 hover:text-ink hover:bg-ink/5 focus-visible:bg-ink/5 transition-all outline-none cursor-pointer select-none"
71
+ className="tap-chip group flex items-center space-x-1.5 px-1.5 py-1 rounded-md text-xs font-medium text-muted hover:text-ink hover:bg-ink/5 focus-visible:bg-ink/5 transition-all cursor-pointer select-none"
72
72
  >
73
73
  <Folder size={13} className="text-ink/50 group-hover:text-ink/80 transition-colors flex-shrink-0" />
74
74
  <span className="max-w-[260px] truncate tracking-tight">{label}</span>
@@ -151,7 +151,7 @@ export function WorktreePicker({ folders, selectedFolderId, target, setTarget, o
151
151
  aria-haspopup="menu"
152
152
  aria-expanded={open}
153
153
  onClick={() => setOpen((value) => !value)}
154
- className="group flex items-center space-x-1.5 px-1.5 py-1 rounded-md text-xs font-medium text-ink/75 hover:text-ink hover:bg-ink/5 focus-visible:bg-ink/5 transition-all outline-none cursor-pointer select-none"
154
+ className="tap-chip group flex items-center space-x-1.5 px-1.5 py-1 rounded-md text-xs font-medium text-muted hover:text-ink hover:bg-ink/5 focus-visible:bg-ink/5 transition-all cursor-pointer select-none"
155
155
  >
156
156
  {dirty > 0 ? (
157
157
  <AlertTriangle
@@ -137,7 +137,7 @@ export function FrameControl({ frame, multi, selected, onAnswer, onToggle, onRes
137
137
  {!multi && (
138
138
  <input
139
139
  value={text}
140
- placeholder="Other — type your own answer…"
140
+ placeholder="Other: type your own answer…"
141
141
  onChange={(event) => setText(event.currentTarget.value)}
142
142
  onKeyDown={(event) => {
143
143
  if (event.key !== 'Enter' || !text.trim()) return;
@@ -71,7 +71,7 @@ export function OptionRow({
71
71
  <span className="flex items-center gap-1.5 font-medium">
72
72
  <span className="truncate">{label}</span>
73
73
  {suggested && (
74
- <span className="shrink-0 rounded-full bg-ink/5 px-1.5 py-px font-mono text-[9px] uppercase tracking-wider text-ink/45">
74
+ <span className="shrink-0 rounded-full bg-ink/5 px-1.5 py-px font-mono text-[10px] uppercase tracking-wider text-ink/45">
75
75
  suggested
76
76
  </span>
77
77
  )}
@@ -42,7 +42,7 @@ function OrphanAskCard({ frame, onRespond }: {
42
42
  <div className="rounded-lg border border-ink/12 bg-paper p-3 shadow-xs">
43
43
  <div className="mb-2 flex items-center gap-1.5 text-[10.5px] text-ink/50">
44
44
  <HelpCircle size={11} className="shrink-0" />
45
- <span>Input needed — the agent is blocked until you answer.</span>
45
+ <span>Input needed: the agent is blocked until you answer.</span>
46
46
  </div>
47
47
  <GroupedAsk
48
48
  frame={frame}
@@ -128,7 +128,7 @@ export function QuestionBlock({
128
128
  <span className="block truncate">
129
129
  {option.label}
130
130
  {question.recommended === optionIndex && (
131
- <span className="ml-1.5 font-mono text-[9px] uppercase tracking-wider text-ink/35">
131
+ <span className="ml-1.5 font-mono text-[10px] uppercase tracking-wider text-ink/35">
132
132
  suggested
133
133
  </span>
134
134
  )}
@@ -147,7 +147,7 @@ export function QuestionBlock({
147
147
  {settled ? (
148
148
  <div className="flex items-center gap-1.5 pt-0.5 text-[10.5px] text-ink/40">
149
149
  <Ban size={10} className="shrink-0" />
150
- <span>Not answered — the ask was cut short.</span>
150
+ <span>Not answered: the ask was cut short.</span>
151
151
  </div>
152
152
  ) : (
153
153
  <div className="flex items-center gap-1.5 pt-0.5 text-[10.5px] text-ink/40">
@@ -39,12 +39,12 @@ export function QuestionCard({ index, total, header, question, multi, answered,
39
39
  return (
40
40
  <div className="rounded-lg border border-ink/10 bg-paper p-2.5 shadow-xs">
41
41
  <div className="flex items-start gap-2">
42
- <span className="mt-px flex h-4 w-4 shrink-0 items-center justify-center rounded bg-ink/5 font-mono text-[9px] font-semibold text-ink/60">
42
+ <span className="mt-px flex h-4 w-4 shrink-0 items-center justify-center rounded bg-ink/5 font-mono text-[10px] font-semibold text-ink/60">
43
43
  {index + 1}
44
44
  </span>
45
45
  <div className="min-w-0 flex-1">
46
46
  <div className="flex items-center gap-1.5">
47
- <span className="text-[9px] font-semibold uppercase tracking-wider text-ink/40">
47
+ <span className="text-[10px] font-semibold uppercase tracking-wider text-ink/40">
48
48
  {header ?? `Question ${index + 1}`}
49
49
  </span>
50
50
  {multi && (
@@ -56,7 +56,7 @@ export function QuestionCard({ index, total, header, question, multi, answered,
56
56
  </span>
57
57
  )}
58
58
  {total > 1 && (
59
- <span className="ml-auto font-mono text-[9px] text-ink/35">
59
+ <span className="ml-auto font-mono text-[10px] text-ink/35">
60
60
  {index + 1}/{total}
61
61
  </span>
62
62
  )}
@@ -94,7 +94,7 @@ export function AnswerList({ parts, note }: { parts: string[]; note?: string })
94
94
  <span className="min-w-0 flex-1 break-words">{part}</span>
95
95
  </div>
96
96
  ))}
97
- {note && <div className="font-mono text-[9px] text-ink/45">{note}</div>}
97
+ {note && <div className="font-mono text-[10px] text-ink/45">{note}</div>}
98
98
  </div>
99
99
  );
100
100
  }
@@ -117,7 +117,7 @@ export function AskPanel({ tool }: { tool: ToolCallData }) {
117
117
  {waiting && (
118
118
  <div className="flex items-center gap-1.5 text-[10.5px] text-ink/50">
119
119
  <HelpCircle size={11} className="shrink-0" />
120
- <span>Input needed — the agent is blocked until you answer.</span>
120
+ <span>Input needed: the agent is blocked until you answer.</span>
121
121
  </div>
122
122
  )}
123
123
  <GroupedAsk
@@ -142,7 +142,7 @@ export function AskPanel({ tool }: { tool: ToolCallData }) {
142
142
  {waiting && (
143
143
  <div className="flex items-center gap-1.5 text-[10.5px] text-ink/50">
144
144
  <HelpCircle size={11} className="shrink-0" />
145
- <span>Input needed — the agent is blocked until you answer.</span>
145
+ <span>Input needed: the agent is blocked until you answer.</span>
146
146
  </div>
147
147
  )}
148
148
 
@@ -46,7 +46,7 @@ export function ExtensionDialogHeader({
46
46
  <h3 className="truncate text-[14px] font-semibold tracking-tight text-ink">
47
47
  {heading}
48
48
  </h3>
49
- <span className="flex items-center gap-1 rounded-full border border-ink/10 bg-paper px-2 py-0.5 font-mono text-[9px] font-medium tracking-wider text-ink/60 uppercase">
49
+ <span className="flex items-center gap-1 rounded-full border border-ink/10 bg-paper px-2 py-0.5 font-mono text-[10px] font-medium tracking-wider text-ink/60 uppercase">
50
50
  <Sparkles size={9} className="text-ink/40" />
51
51
  {badge}
52
52
  </span>
@@ -103,7 +103,7 @@ export function ExtensionDialogSelectBody({
103
103
  An approval gate has no "Other" option, so it draws no field. */}
104
104
  {!hideCustomAnswer && (
105
105
  <div className="space-y-1.5 pt-1">
106
- <div className="text-[11px] font-medium tracking-wider text-ink/50 uppercase">Other — type your own answer</div>
106
+ <div className="text-[11px] font-medium tracking-wider text-ink/50 uppercase">Other: type your own answer</div>
107
107
  <input
108
108
  ref={customInputRef}
109
109
  type="text"
@@ -55,10 +55,10 @@ function OpBody({ body, lang }: { body: string[]; lang: string }) {
55
55
  export function HashlinePatch({ sections }: { sections: HashlineSection[] }) {
56
56
  return (
57
57
  <div className="space-y-1.5">
58
- <div className="flex items-center justify-between text-[9.5px] font-semibold uppercase tracking-[0.14em] text-ink/40">
58
+ <div className="flex items-center justify-between text-[10px] font-semibold uppercase tracking-[0.14em] text-ink/40">
59
59
  <span>Hashline Patch</span>
60
60
  {sections[0].tag && (
61
- <span className="font-mono text-[9px] font-normal tracking-normal text-ink/50">
61
+ <span className="font-mono text-[10px] font-normal tracking-normal text-ink/50">
62
62
  snapshot {sections[0].tag}
63
63
  </span>
64
64
  )}
@@ -72,7 +72,7 @@ export function HashlinePatch({ sections }: { sections: HashlineSection[] }) {
72
72
  <span className="shrink-0 font-mono text-[10px] text-ink/50">→ {section.moveTo}</span>
73
73
  )}
74
74
  {section.removed && (
75
- <span className="shrink-0 rounded bg-error/10 px-1.5 font-mono text-[9px] uppercase tracking-wider text-error">
75
+ <span className="shrink-0 rounded bg-error/10 px-1.5 font-mono text-[10px] uppercase tracking-wider text-error">
76
76
  Removes file
77
77
  </span>
78
78
  )}
@@ -81,7 +81,7 @@ export function HashlinePatch({ sections }: { sections: HashlineSection[] }) {
81
81
  {section.ops.map((op, index) => (
82
82
  <div key={`${op.verb}-${op.spec}-${index}`}>
83
83
  <div className="flex items-center gap-2 px-2.5 py-1">
84
- <span className={`shrink-0 rounded px-1.5 font-mono text-[9px] font-semibold ${opTone(op.verb)}`}>
84
+ <span className={`shrink-0 rounded px-1.5 font-mono text-[10px] font-semibold ${opTone(op.verb)}`}>
85
85
  {op.verb}
86
86
  </span>
87
87
  {op.spec && <span className="font-mono text-[10.5px] text-ink/70">{op.spec}</span>}
@@ -80,7 +80,7 @@ export function AstEdit({ tool }: { tool: ToolCallData }) {
80
80
  </div>
81
81
 
82
82
  <span
83
- className={`inline-flex items-center gap-1 rounded-full px-2 py-0.5 font-mono text-[9px] font-semibold ${
83
+ className={`inline-flex items-center gap-1 rounded-full px-2 py-0.5 font-mono text-[10px] font-semibold ${
84
84
  isStaged ? 'bg-warning/10 text-warning' : 'bg-success/10 text-success'
85
85
  }`}
86
86
  >
@@ -92,7 +92,7 @@ export function AstEdit({ tool }: { tool: ToolCallData }) {
92
92
  {/* Operations: Pattern -> Replacement */}
93
93
  {ops.length > 0 && (
94
94
  <div className="border-b border-ink/6 p-2.5 bg-canvas/20">
95
- <span className="text-[9px] font-semibold uppercase tracking-wider text-ink/40">
95
+ <span className="text-[10px] font-semibold uppercase tracking-wider text-ink/40">
96
96
  Pattern Transformation
97
97
  </span>
98
98
  <div className="mt-1 space-y-1">
@@ -158,8 +158,8 @@ export function AstEdit({ tool }: { tool: ToolCallData }) {
158
158
  return (
159
159
  <div className="overflow-hidden rounded-lg border border-ink/8 select-text">
160
160
  <div className="border-b border-ink/8 bg-paper px-2.5 py-1.5">
161
- <span className="text-[9.5px] font-semibold uppercase tracking-[0.14em] text-ink/40">AST Changes</span>
162
- <span className="ml-2 rounded-full bg-ink/5 px-1.5 py-px font-mono text-[9.5px] text-ink/45">
161
+ <span className="text-[10px] font-semibold uppercase tracking-[0.14em] text-ink/40">AST Changes</span>
162
+ <span className="ml-2 rounded-full bg-ink/5 px-1.5 py-px font-mono text-[10px] text-ink/45">
163
163
  {structuredItems.length}
164
164
  </span>
165
165
  </div>
@@ -175,10 +175,10 @@ export function AstEdit({ tool }: { tool: ToolCallData }) {
175
175
  <span className="min-w-0 flex-1 break-words">
176
176
  {file && <span className="font-mono text-[10px] text-ink/45">{file}: </span>}
177
177
  <span className="text-ink/80">{msg}</span>
178
- {kind && <span className="ml-1 font-mono text-[9.5px] text-ink/35">({kind})</span>}
178
+ {kind && <span className="ml-1 font-mono text-[10px] text-ink/35">({kind})</span>}
179
179
  </span>
180
180
  {changes !== undefined && (
181
- <span className="shrink-0 rounded-full bg-ink/5 px-1.5 py-px font-mono text-[9px] text-ink/45">
181
+ <span className="shrink-0 rounded-full bg-ink/5 px-1.5 py-px font-mono text-[10px] text-ink/45">
182
182
  {changes} changes
183
183
  </span>
184
184
  )}
@@ -95,7 +95,7 @@ export function Bash({ tool }: { tool: ToolCallData }) {
95
95
  about a live dev server was its exit code. */}
96
96
  {service && (
97
97
  <div className="flex flex-wrap items-center gap-x-4 gap-y-1 rounded-lg border border-ink/8 bg-paper px-3 py-2 font-mono text-[10.5px]">
98
- <span className="flex items-center gap-1.5 text-[9.5px] font-semibold uppercase tracking-wider text-ink/40">
98
+ <span className="flex items-center gap-1.5 text-[10px] font-semibold uppercase tracking-wider text-ink/40">
99
99
  <Server size={11} className="text-ink/40" />
100
100
  Service
101
101
  </span>
@@ -151,7 +151,7 @@ export function Bash({ tool }: { tool: ToolCallData }) {
151
151
  omp's own TUI does; the full output is behind the artifact chip. */}
152
152
  {minimized && (
153
153
  <div className="flex flex-wrap items-center gap-x-3 gap-y-1 rounded-lg border border-ink/8 bg-paper px-3 py-2 font-mono text-[10.5px]">
154
- <span className="flex items-center gap-1.5 text-[9.5px] font-semibold uppercase tracking-wider text-ink/40">
154
+ <span className="flex items-center gap-1.5 text-[10px] font-semibold uppercase tracking-wider text-ink/40">
155
155
  <Shrink size={11} className="text-ink/40" />
156
156
  Minimized
157
157
  </span>
@@ -172,7 +172,7 @@ export function Bash({ tool }: { tool: ToolCallData }) {
172
172
  <Terminal size={11} className="shrink-0 text-ink/45" />
173
173
  <span className="font-mono text-[10px] font-semibold text-ink/50">bash</span>
174
174
  {cwd && (
175
- <span className="truncate font-mono text-[9.5px] text-ink/40" title={cwd}>
175
+ <span className="truncate font-mono text-[10px] text-ink/40" title={cwd}>
176
176
  {cwd}
177
177
  </span>
178
178
  )}
@@ -181,7 +181,7 @@ export function Bash({ tool }: { tool: ToolCallData }) {
181
181
  <div className="flex items-center gap-2">
182
182
  {exitCode !== undefined && (
183
183
  <span
184
- className={`rounded-full px-1.5 py-0.2 font-mono text-[9px] font-semibold ${
184
+ className={`rounded-full px-1.5 py-0.2 font-mono text-[10px] font-semibold ${
185
185
  exitCode === 0 ? 'bg-success/10 text-success' : 'bg-error/10 text-error'
186
186
  }`}
187
187
  >
@@ -189,14 +189,14 @@ export function Bash({ tool }: { tool: ToolCallData }) {
189
189
  </span>
190
190
  )}
191
191
  {duration && (
192
- <span className="flex items-center gap-1 font-mono text-[9.5px] text-ink/45">
192
+ <span className="flex items-center gap-1 font-mono text-[10px] text-ink/45">
193
193
  <Clock size={10} />
194
194
  <span>{duration}</span>
195
195
  </span>
196
196
  )}
197
197
  <CopyButton
198
198
  text={command}
199
- className="flex cursor-pointer items-center gap-1 rounded px-1.5 py-0.5 text-[9.5px] text-ink/45 transition-colors hover:bg-ink/5 hover:text-ink"
199
+ 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"
200
200
  title="Copy command"
201
201
  label="Copy"
202
202
  />
@@ -226,20 +226,20 @@ export function Bash({ tool }: { tool: ToolCallData }) {
226
226
  <div className="overflow-hidden rounded-lg border border-ink/8 bg-paper">
227
227
  <div className="flex items-center justify-between border-b border-ink/6 bg-canvas/30 px-3 py-1.5">
228
228
  <div className="flex items-center gap-1.5">
229
- <span className="text-[9.5px] font-semibold uppercase tracking-[0.14em] text-ink/40">Console Output</span>
230
- <span className="rounded bg-ink/5 px-1.5 py-0.2 font-mono text-[9px] uppercase tracking-wider text-ink/50">JSON</span>
229
+ <span className="text-[10px] font-semibold uppercase tracking-[0.14em] text-ink/40">Console Output</span>
230
+ <span className="rounded bg-ink/5 px-1.5 py-0.2 font-mono text-[10px] uppercase tracking-wider text-ink/50">JSON</span>
231
231
  {jsonResult.linesCount && jsonResult.linesCount > 1 && (
232
- <span className="font-mono text-[9.5px] text-ink/40">{jsonResult.linesCount} lines</span>
232
+ <span className="font-mono text-[10px] text-ink/40">{jsonResult.linesCount} lines</span>
233
233
  )}
234
234
  </div>
235
235
  <CopyButton
236
236
  text={jsonResult.isValid && jsonResult.pretty ? jsonResult.pretty : output}
237
- className="flex cursor-pointer items-center gap-1 rounded px-1.5 py-0.5 text-[9.5px] text-ink/45 transition-colors hover:bg-ink/5 hover:text-ink"
237
+ 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"
238
238
  label="Copy"
239
239
  />
240
240
  </div>
241
241
  {truncatedPretty && truncatedPretty.skipped > 0 && (
242
- <div className="border-b border-ink/6 bg-canvas/40 px-3 py-1 font-mono text-[9.5px] text-ink/45">
242
+ <div className="border-b border-ink/6 bg-canvas/40 px-3 py-1 font-mono text-[10px] text-ink/45">
243
243
  … {truncatedPretty.skipped} earlier lines hidden
244
244
  </div>
245
245
  )}
@@ -252,10 +252,10 @@ export function Bash({ tool }: { tool: ToolCallData }) {
252
252
  ) : (
253
253
  <div className="overflow-hidden rounded-lg border border-ink/8 bg-paper">
254
254
  <div className="flex items-center justify-between border-b border-ink/6 bg-canvas/30 px-3 py-1.5">
255
- <span className="text-[9.5px] font-semibold uppercase tracking-[0.14em] text-ink/40">Console Output</span>
255
+ <span className="text-[10px] font-semibold uppercase tracking-[0.14em] text-ink/40">Console Output</span>
256
256
  <CopyButton
257
257
  text={copyText}
258
- className="flex cursor-pointer items-center gap-1 rounded px-1.5 py-0.5 text-[9.5px] text-ink/45 transition-colors hover:bg-ink/5 hover:text-ink"
258
+ 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"
259
259
  label="Copy"
260
260
  />
261
261
  </div>
@@ -37,7 +37,7 @@ export function Checkpoint({ tool }: { tool: ToolCallData }) {
37
37
  </span>
38
38
  <div className="min-w-0 flex-1 space-y-0.5">
39
39
  {message && <div className="text-[11.5px] text-ink/85">{message}</div>}
40
- <div className="flex flex-wrap gap-x-2 gap-y-0.5 font-mono text-[9.5px] text-ink/45">
40
+ <div className="flex flex-wrap gap-x-2 gap-y-0.5 font-mono text-[10px] text-ink/45">
41
41
  {id && <span>{id}</span>}
42
42
  {ts && <span>{ts}</span>}
43
43
  {fileCount !== undefined && <span>{fileCount} files</span>}