@kabmo-labs/kabmo 0.11.1 → 0.13.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 (2168) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +72 -422
  3. package/bunfig.toml +20 -0
  4. package/dist/client/index.html +1 -1
  5. package/dist/client/index.js +452 -438
  6. package/dist/client/static/js/index-68w8h33q.css +1 -0
  7. package/dist/client/static/js/{index-amss8pge.js → index-vzb1qz51.js} +1125 -749
  8. package/extensions/kabmo-modes/commands.test.ts +1 -1
  9. package/extensions/kabmo-modes/commands.ts +1 -1
  10. package/extensions/kabmo-modes/goal.test.ts +1 -1
  11. package/extensions/kabmo-modes/goal.ts +1 -1
  12. package/extensions/kabmo-modes/index.ts +1 -1
  13. package/extensions/kabmo-modes/omp-modules.d.ts +1 -1
  14. package/extensions/kabmo-modes/parked.test.ts +1 -1
  15. package/extensions/kabmo-modes/parked.ts +1 -1
  16. package/extensions/kabmo-modes/plan.test.ts +1 -1
  17. package/extensions/kabmo-modes/plan.ts +1 -1
  18. package/extensions/kabmo-modes/prompts.test.ts +1 -1
  19. package/extensions/kabmo-modes/prompts.ts +1 -1
  20. package/extensions/kabmo-modes/protocol.test.ts +1 -1
  21. package/extensions/kabmo-modes/protocol.ts +1 -1
  22. package/extensions/kabmo-modes/session.ts +1 -1
  23. package/marketplace/marketplace.json +13 -3
  24. package/marketplace/plugins/command-runner/package.json +4 -2
  25. package/marketplace/plugins/command-runner/src/app.tsx +1 -1
  26. package/marketplace/plugins/command-runner/src/panel/Custom.test.tsx +1 -1
  27. package/marketplace/plugins/command-runner/src/panel/CustomForm.tsx +1 -1
  28. package/marketplace/plugins/command-runner/src/panel/Glyph.tsx +1 -1
  29. package/marketplace/plugins/command-runner/src/panel/Groups.test.tsx +1 -1
  30. package/marketplace/plugins/command-runner/src/panel/Groups.tsx +1 -1
  31. package/marketplace/plugins/command-runner/src/panel/Header.tsx +1 -1
  32. package/marketplace/plugins/command-runner/src/panel/Output.tsx +1 -1
  33. package/marketplace/plugins/command-runner/src/panel/Row.test.tsx +1 -1
  34. package/marketplace/plugins/command-runner/src/panel/Row.tsx +1 -1
  35. package/marketplace/plugins/command-runner/src/panel/format.ts +1 -1
  36. package/marketplace/plugins/command-runner/src/panel/index.tsx +1 -1
  37. package/marketplace/plugins/command-runner/src/panel/use-custom-dialog.ts +1 -1
  38. package/marketplace/plugins/command-runner/src/protocol.ts +1 -1
  39. package/marketplace/plugins/command-runner/src/server/custom.test.ts +1 -1
  40. package/marketplace/plugins/command-runner/src/server/custom.ts +1 -1
  41. package/marketplace/plugins/command-runner/src/server/detectors/detectors.test.ts +1 -1
  42. package/marketplace/plugins/command-runner/src/server/detectors/js.ts +1 -1
  43. package/marketplace/plugins/command-runner/src/server/detectors/jsonc.ts +1 -1
  44. package/marketplace/plugins/command-runner/src/server/detectors/make.ts +1 -1
  45. package/marketplace/plugins/command-runner/src/server/detectors/native.ts +1 -1
  46. package/marketplace/plugins/command-runner/src/server/detectors/python.ts +1 -1
  47. package/marketplace/plugins/command-runner/src/server/detectors/table.ts +1 -1
  48. package/marketplace/plugins/command-runner/src/server/detectors/types.ts +1 -1
  49. package/marketplace/plugins/command-runner/src/server/discovery.test.ts +1 -1
  50. package/marketplace/plugins/command-runner/src/server/kill.ts +1 -1
  51. package/marketplace/plugins/command-runner/src/server/package-manager.ts +1 -1
  52. package/marketplace/plugins/command-runner/src/server/resolve.test.ts +72 -11
  53. package/marketplace/plugins/command-runner/src/server/resolve.ts +1 -1
  54. package/marketplace/plugins/command-runner/src/server/ring.ts +1 -1
  55. package/marketplace/plugins/command-runner/src/server/run-store.ts +1 -1
  56. package/marketplace/plugins/command-runner/src/server/run-types.ts +1 -1
  57. package/marketplace/plugins/command-runner/src/server/runner.test.ts +1 -1
  58. package/marketplace/plugins/command-runner/src/server/runner.ts +3 -3
  59. package/marketplace/plugins/command-runner/src/server/scan.ts +1 -1
  60. package/marketplace/plugins/command-runner/src/server/sweeps.test.ts +1 -1
  61. package/marketplace/plugins/command-runner/src/server.ts +1 -1
  62. package/marketplace/plugins/command-runner/src/watch.test.ts +1 -1
  63. package/marketplace/plugins/command-runner/src/watch.ts +1 -1
  64. package/marketplace/plugins/git-forge/README.md +239 -0
  65. package/marketplace/plugins/git-forge/icon.svg +20 -0
  66. package/marketplace/plugins/git-forge/package.json +56 -0
  67. package/marketplace/plugins/git-forge/src/app.tsx +71 -0
  68. package/marketplace/plugins/git-forge/src/command.test.ts +181 -0
  69. package/marketplace/plugins/git-forge/src/command.ts +119 -0
  70. package/marketplace/plugins/git-forge/src/panel/Badge.tsx +76 -0
  71. package/marketplace/plugins/git-forge/src/panel/Change.tsx +150 -0
  72. package/marketplace/plugins/git-forge/src/panel/CiBadge.tsx +51 -0
  73. package/marketplace/plugins/git-forge/src/panel/Credential.tsx +107 -0
  74. package/marketplace/plugins/git-forge/src/panel/Glyph.tsx +70 -0
  75. package/marketplace/plugins/git-forge/src/panel/Header.tsx +255 -0
  76. package/marketplace/plugins/git-forge/src/panel/ItemView.tsx +198 -0
  77. package/marketplace/plugins/git-forge/src/panel/List.tsx +94 -0
  78. package/marketplace/plugins/git-forge/src/panel/Row.tsx +68 -0
  79. package/marketplace/plugins/git-forge/src/panel/Sidebar.tsx +100 -0
  80. package/marketplace/plugins/git-forge/src/panel/Write.tsx +264 -0
  81. package/marketplace/plugins/git-forge/src/panel/format.ts +78 -0
  82. package/marketplace/plugins/git-forge/src/panel/index.test.tsx +329 -0
  83. package/marketplace/plugins/git-forge/src/panel/index.tsx +193 -0
  84. package/marketplace/plugins/git-forge/src/panel/test-fixtures.ts +81 -0
  85. package/marketplace/plugins/git-forge/src/panel/use-forge.ts +250 -0
  86. package/marketplace/plugins/git-forge/src/panel/write.test.tsx +260 -0
  87. package/marketplace/plugins/git-forge/src/protocol.ts +319 -0
  88. package/marketplace/plugins/git-forge/src/server/adapters.test.ts +289 -0
  89. package/marketplace/plugins/git-forge/src/server/bitbucket.ts +321 -0
  90. package/marketplace/plugins/git-forge/src/server/capabilities.test.ts +148 -0
  91. package/marketplace/plugins/git-forge/src/server/capabilities.ts +119 -0
  92. package/marketplace/plugins/git-forge/src/server/ci.test.ts +88 -0
  93. package/marketplace/plugins/git-forge/src/server/ci.ts +118 -0
  94. package/marketplace/plugins/git-forge/src/server/context.ts +76 -0
  95. package/marketplace/plugins/git-forge/src/server/diff.test.ts +127 -0
  96. package/marketplace/plugins/git-forge/src/server/diff.ts +120 -0
  97. package/marketplace/plugins/git-forge/src/server/filters.test.ts +138 -0
  98. package/marketplace/plugins/git-forge/src/server/filters.ts +138 -0
  99. package/marketplace/plugins/git-forge/src/server/forges.test.ts +235 -0
  100. package/marketplace/plugins/git-forge/src/server/gitea.ts +307 -0
  101. package/marketplace/plugins/git-forge/src/server/github-extras.ts +92 -0
  102. package/marketplace/plugins/git-forge/src/server/github.ts +320 -0
  103. package/marketplace/plugins/git-forge/src/server/gitlab-detail.ts +207 -0
  104. package/marketplace/plugins/git-forge/src/server/gitlab.test.ts +260 -0
  105. package/marketplace/plugins/git-forge/src/server/gitlab.ts +220 -0
  106. package/marketplace/plugins/git-forge/src/server/http.test.ts +270 -0
  107. package/marketplace/plugins/git-forge/src/server/http.ts +329 -0
  108. package/marketplace/plugins/git-forge/src/server/map.ts +120 -0
  109. package/marketplace/plugins/git-forge/src/server/provider.ts +77 -0
  110. package/marketplace/plugins/git-forge/src/server/registry.ts +47 -0
  111. package/marketplace/plugins/git-forge/src/server/remote.test.ts +146 -0
  112. package/marketplace/plugins/git-forge/src/server/remote.ts +188 -0
  113. package/marketplace/plugins/git-forge/src/server/scope-probe.test.ts +98 -0
  114. package/marketplace/plugins/git-forge/src/server/scope-probe.ts +128 -0
  115. package/marketplace/plugins/git-forge/src/server/scope.ts +66 -0
  116. package/marketplace/plugins/git-forge/src/server/test-context.ts +67 -0
  117. package/marketplace/plugins/git-forge/src/server/test-host.ts +51 -0
  118. package/marketplace/plugins/git-forge/src/server/token.test.ts +196 -0
  119. package/marketplace/plugins/git-forge/src/server/token.ts +229 -0
  120. package/marketplace/plugins/git-forge/src/server/write-calls.ts +253 -0
  121. package/marketplace/plugins/git-forge/src/server/write-http.test.ts +127 -0
  122. package/marketplace/plugins/git-forge/src/server/write-http.ts +148 -0
  123. package/marketplace/plugins/git-forge/src/server/writes.test.ts +302 -0
  124. package/marketplace/plugins/git-forge/src/server/writes.ts +127 -0
  125. package/marketplace/plugins/git-forge/src/server.ts +251 -0
  126. package/marketplace/plugins/git-forge/tsconfig.json +16 -0
  127. package/marketplace/plugins/session-info/package.json +4 -2
  128. package/marketplace/plugins/session-info/src/app.test.tsx +1 -1
  129. package/marketplace/plugins/session-info/src/server.ts +1 -1
  130. package/marketplace/plugins/stats/package.json +4 -2
  131. package/marketplace/plugins/stats/src/HeaderReadout.test.tsx +1 -1
  132. package/marketplace/plugins/stats/src/HeaderReadout.tsx +1 -1
  133. package/marketplace/plugins/stats/src/ProcessTable.tsx +1 -1
  134. package/marketplace/plugins/stats/src/RefreshButton.tsx +1 -1
  135. package/marketplace/plugins/stats/src/Sparkline.tsx +1 -1
  136. package/marketplace/plugins/stats/src/TotalsBar.test.tsx +1 -1
  137. package/marketplace/plugins/stats/src/TotalsBar.tsx +1 -1
  138. package/marketplace/plugins/stats/src/app.test.tsx +1 -1
  139. package/marketplace/plugins/stats/src/app.tsx +1 -1
  140. package/marketplace/plugins/stats/src/daemons.ts +1 -1
  141. package/marketplace/plugins/stats/src/format.test.ts +1 -1
  142. package/marketplace/plugins/stats/src/format.ts +1 -1
  143. package/marketplace/plugins/stats/src/groups.test.ts +1 -1
  144. package/marketplace/plugins/stats/src/groups.ts +1 -1
  145. package/marketplace/plugins/stats/src/labels.test.ts +1 -1
  146. package/marketplace/plugins/stats/src/labels.ts +1 -1
  147. package/marketplace/plugins/stats/src/proc/darwin.ts +1 -1
  148. package/marketplace/plugins/stats/src/proc/identity.ts +1 -1
  149. package/marketplace/plugins/stats/src/proc/index.ts +1 -1
  150. package/marketplace/plugins/stats/src/proc/linux.ts +1 -1
  151. package/marketplace/plugins/stats/src/proc/ps.ts +1 -1
  152. package/marketplace/plugins/stats/src/proc/types.ts +1 -1
  153. package/marketplace/plugins/stats/src/sampler.test.ts +1 -1
  154. package/marketplace/plugins/stats/src/sampler.ts +1 -1
  155. package/marketplace/plugins/stats/src/server.ts +1 -1
  156. package/marketplace/plugins/stats/src/sessions.test.ts +1 -1
  157. package/marketplace/plugins/stats/src/sessions.ts +1 -1
  158. package/marketplace/plugins/stats/src/snapshot.ts +1 -1
  159. package/package.json +12 -6
  160. package/src/cli/lib/path-utils.test.js +1 -1
  161. package/src/cli/lib/process-lifecycle.test.js +1 -1
  162. package/src/cli/lib/restart-scope.test.js +1 -1
  163. package/src/cli/lib/serve-mode.test.js +1 -1
  164. package/src/cli/lib/stop-instance.test.js +1 -1
  165. package/src/cli/lib/stop-scope.test.js +1 -1
  166. package/src/client/App.tsx +1 -1
  167. package/src/client/components/auth/login-screen/index.tsx +1 -1
  168. package/src/client/components/common/FolderPicker.tsx +1 -1
  169. package/src/client/components/common/MarkdownRenderer.tsx +1 -1
  170. package/src/client/components/common/ReloadPageButton.test.tsx +1 -1
  171. package/src/client/components/common/SignOutButton.test.tsx +1 -1
  172. package/src/client/components/common/SignOutButton.tsx +1 -1
  173. package/src/client/components/common/batch-selection/BatchActionBar.test.ts +1 -1
  174. package/src/client/components/common/batch-selection/BatchActionBar.tsx +1 -1
  175. package/src/client/components/common/batch-selection/BatchDeleteModal.tsx +1 -1
  176. package/src/client/components/common/batch-selection/SelectionCheckbox.tsx +1 -1
  177. package/src/client/components/common/batch-selection/folder-state.test.ts +1 -1
  178. package/src/client/components/common/batch-selection/folder-state.ts +1 -1
  179. package/src/client/components/common/batch-selection/types.ts +1 -1
  180. package/src/client/components/common/brand-wordmark/index.test.tsx +1 -1
  181. package/src/client/components/common/code-surface/blame-hover.ts +188 -0
  182. package/src/client/components/common/code-surface/blame-panel.test.ts +304 -0
  183. package/src/client/components/common/code-surface/blame-panel.ts +306 -0
  184. package/src/client/components/common/code-surface/blame.test.ts +303 -0
  185. package/src/client/components/common/code-surface/blame.ts +227 -0
  186. package/src/client/components/common/code-surface/bracket-guide.test.ts +1 -1
  187. package/src/client/components/common/code-surface/bracket-guide.ts +1 -1
  188. package/src/client/components/common/code-surface/conflict-markers.test.ts +135 -0
  189. package/src/client/components/common/code-surface/conflict-markers.ts +144 -0
  190. package/src/client/components/common/code-surface/documents-budget.test.ts +54 -0
  191. package/src/client/components/common/code-surface/documents-budget.ts +62 -0
  192. package/src/client/components/common/code-surface/documents.test.ts +37 -1
  193. package/src/client/components/common/code-surface/documents.ts +61 -12
  194. package/src/client/components/common/code-surface/extensions.test.ts +5 -1
  195. package/src/client/components/common/code-surface/extensions.ts +45 -1
  196. package/src/client/components/common/code-surface/fold-stack.test.ts +5 -1
  197. package/src/client/components/common/code-surface/fold.test.ts +1 -1
  198. package/src/client/components/common/code-surface/fold.ts +1 -1
  199. package/src/client/components/common/code-surface/handle.ts +1 -1
  200. package/src/client/components/common/code-surface/indent-guide.ts +1 -1
  201. package/src/client/components/common/code-surface/indent.test.ts +6 -1
  202. package/src/client/components/common/code-surface/indent.ts +1 -1
  203. package/src/client/components/common/code-surface/index.tsx +17 -3
  204. package/src/client/components/common/code-surface/keymap.test.ts +1 -1
  205. package/src/client/components/common/code-surface/keymap.ts +1 -1
  206. package/src/client/components/common/code-surface/line-commands.test.ts +1 -1
  207. package/src/client/components/common/code-surface/line-commands.ts +1 -1
  208. package/src/client/components/common/code-surface/lint-parsers.test.ts +109 -0
  209. package/src/client/components/common/code-surface/lint-parsers.ts +134 -0
  210. package/src/client/components/common/code-surface/lint.test.ts +101 -0
  211. package/src/client/components/common/code-surface/lint.ts +85 -0
  212. package/src/client/components/common/code-surface/marks.ts +1 -1
  213. package/src/client/components/common/code-surface/props.ts +18 -1
  214. package/src/client/components/common/code-surface/shiki.ts +1 -1
  215. package/src/client/components/common/code-surface/stream-language.test.ts +1 -1
  216. package/src/client/components/common/code-surface/stream-language.ts +1 -1
  217. package/src/client/components/common/code-surface/surface-failures.test.ts +132 -0
  218. package/src/client/components/common/code-surface/sync.test.ts +1 -1
  219. package/src/client/components/common/code-surface/sync.ts +1 -1
  220. package/src/client/components/common/code-surface/theme.test.ts +1 -1
  221. package/src/client/components/common/code-surface/theme.ts +72 -1
  222. package/src/client/components/common/code-surface/typing.test.ts +1 -1
  223. package/src/client/components/common/code-surface/typing.ts +1 -1
  224. package/src/client/components/common/context-usage-button/Ring.tsx +1 -1
  225. package/src/client/components/common/context-usage-button/index.test.tsx +1 -1
  226. package/src/client/components/common/context-usage-button/index.tsx +1 -1
  227. package/src/client/components/common/diagram-viewer/index.tsx +1 -1
  228. package/src/client/components/common/diagram-viewer/read-block.ts +1 -1
  229. package/src/client/components/common/editor-view-buttons/index.test.tsx +1 -1
  230. package/src/client/components/common/header-controls/MoreMenu.tsx +1 -1
  231. package/src/client/components/common/header-controls/index.test.tsx +2 -2
  232. package/src/client/components/common/header-controls/plugin-entry.test.tsx +2 -2
  233. package/src/client/components/common/header-controls/shell-chrome.test.tsx +2 -2
  234. package/src/client/components/common/header-panel-buttons/entries.test.ts +1 -1
  235. package/src/client/components/common/header-panel-buttons/entries.ts +1 -1
  236. package/src/client/components/common/header-panel-buttons/index.test.tsx +96 -0
  237. package/src/client/components/common/header-panel-buttons/index.tsx +17 -1
  238. package/src/client/components/common/image-viewer/index.tsx +1 -1
  239. package/src/client/components/common/outline-kind-icon/index.tsx +1 -1
  240. package/src/client/components/common/plugin-render-boundary/index.tsx +77 -0
  241. package/src/client/components/common/provider-icon/Plate.tsx +88 -0
  242. package/src/client/components/common/provider-icon/glyphs.test.ts +1 -1
  243. package/src/client/components/common/provider-icon/glyphs.ts +1 -1
  244. package/src/client/components/common/provider-icon/index.plugin.test.ts +1 -1
  245. package/src/client/components/common/provider-icon/index.test.ts +1 -1
  246. package/src/client/components/common/provider-icon/index.tsx +56 -12
  247. package/src/client/components/common/provider-icon/resolve.test.ts +1 -1
  248. package/src/client/components/common/provider-icon/resolve.ts +1 -1
  249. package/src/client/components/common/server-switcher/index.test.tsx +1 -1
  250. package/src/client/components/common/server-switcher/index.tsx +1 -1
  251. package/src/client/components/common/session-actions-menu/index.tsx +1 -1
  252. package/src/client/components/common/session-delete-modal/index.tsx +1 -1
  253. package/src/client/components/common/session-state-provider/index.test.ts +1 -1
  254. package/src/client/components/common/shell-update-button/Modal.tsx +1 -1
  255. package/src/client/components/common/shell-update-button/index.test.tsx +1 -1
  256. package/src/client/components/common/shell-update-button/index.tsx +1 -1
  257. package/src/client/components/common/sort-menu/index.tsx +1 -1
  258. package/src/client/components/common/sort-menu/options.ts +1 -1
  259. package/src/client/components/common/todo-row/index.test.ts +1 -1
  260. package/src/client/components/common/todo-row/index.tsx +1 -1
  261. package/src/client/components/common/toolbar-row/index.test.tsx +1 -1
  262. package/src/client/components/common/toolbar-row/index.tsx +1 -1
  263. package/src/client/components/common/viewport.ts +1 -1
  264. package/src/client/components/common/window-controls/index.test.tsx +1 -1
  265. package/src/client/components/common/workspace-options-menu/index.tsx +1 -1
  266. package/src/client/components/layout/ActivityBar.test.ts +1 -1
  267. package/src/client/components/layout/ActivityBar.tsx +1 -1
  268. package/src/client/components/layout/LeftActivityBar.test.ts +1 -1
  269. package/src/client/components/layout/LeftDock.tsx +1 -1
  270. package/src/client/components/layout/desktop-layout/LeftColumn.tsx +1 -1
  271. package/src/client/components/layout/desktop-layout/resizer/panel.test.ts +1 -1
  272. package/src/client/components/layout/desktop-layout/resizer/utils.test.ts +1 -1
  273. package/src/client/components/layout/session-sidebar/CategoryHeader.tsx +1 -1
  274. package/src/client/components/layout/session-sidebar/CategoryHeader.worktree.test.tsx +1 -1
  275. package/src/client/components/layout/session-sidebar/Header.test.ts +1 -1
  276. package/src/client/components/layout/session-sidebar/OverflowMenu.test.ts +1 -1
  277. package/src/client/components/layout/session-sidebar/OverflowMenu.tsx +1 -1
  278. package/src/client/components/layout/session-sidebar/SessionItem.batch.test.ts +1 -1
  279. package/src/client/components/layout/session-sidebar/SessionItem.test.ts +1 -1
  280. package/src/client/components/layout/session-sidebar/SessionsView.tsx +5 -2
  281. package/src/client/components/layout/session-sidebar/Skeleton.tsx +1 -1
  282. package/src/client/components/layout/session-sidebar/Toolbar.test.ts +1 -1
  283. package/src/client/components/layout/session-sidebar/WorktreeBadge.test.ts +1 -1
  284. package/src/client/components/layout/session-sidebar/WorktreeBadge.tsx +1 -1
  285. package/src/client/components/layout/session-sidebar/new-session-context.test.ts +1 -1
  286. package/src/client/components/layout/session-sidebar/new-workspace-modal/CloneField.tsx +1 -1
  287. package/src/client/components/layout/session-sidebar/new-workspace-modal/DirectoryList.tsx +1 -1
  288. package/src/client/components/layout/session-sidebar/new-workspace-modal/LocationBar.tsx +1 -1
  289. package/src/client/components/layout/session-sidebar/new-workspace-modal/index.tsx +1 -1
  290. package/src/client/components/layout/session-sidebar/new-workspace-modal/use-browse.ts +1 -1
  291. package/src/client/components/layout/session-sidebar/scheduler-modal/TaskForm.tsx +1 -1
  292. package/src/client/components/layout/session-sidebar/scheduler-modal/TaskList.tsx +1 -1
  293. package/src/client/components/layout/session-sidebar/scheduler-modal/folders.ts +1 -1
  294. package/src/client/components/layout/session-sidebar/scheduler-modal/index.tsx +1 -1
  295. package/src/client/components/mobile/SessionSidebar.tsx +2 -10
  296. package/src/client/components/mobile/header-titlebar.test.tsx +1 -1
  297. package/src/client/components/mobile/mobile-right-sidebar/FullEditor.tsx +6 -0
  298. package/src/client/components/mobile/mobile-right-sidebar/OutlineButton.test.tsx +1 -1
  299. package/src/client/components/mobile/mobile-right-sidebar/OutlineButton.tsx +1 -1
  300. package/src/client/components/mobile/mobile-right-sidebar/PreviewScroller.tsx +1 -1
  301. package/src/client/components/mobile/mobile-right-sidebar/StatusBar.tsx +9 -1
  302. package/src/client/components/mobile/mobile-right-sidebar/editor-props.ts +1 -1
  303. package/src/client/components/mobile/mobile-session-sidebar/Dialogs.tsx +1 -1
  304. package/src/client/components/mobile/mobile-session-sidebar/Dock.tsx +1 -1
  305. package/src/client/components/mobile/mobile-session-sidebar/RevealRow.tsx +1 -1
  306. package/src/client/components/mobile/mobile-session-sidebar/SessionRow.test.ts +1 -1
  307. package/src/client/components/mobile/mobile-session-sidebar/Skeleton.tsx +1 -1
  308. package/src/client/components/mobile/mobile-session-sidebar/Toolbar.test.ts +1 -1
  309. package/src/client/components/mobile/mobile-session-sidebar/WorktreeDialog.tsx +1 -1
  310. package/src/client/components/mobile/mobile-session-sidebar/folder-gap.test.ts +1 -1
  311. package/src/client/components/mobile/mobile-session-sidebar/folder-gap.ts +1 -1
  312. package/src/client/components/mobile/mobile-session-sidebar/use-dock.ts +1 -1
  313. package/src/client/components/mobile/open-file-payload.test.ts +1 -1
  314. package/src/client/components/mobile/open-file-payload.ts +1 -1
  315. package/src/client/components/mobile/panel-chips.test.tsx +1 -1
  316. package/src/client/components/mobile/panel-chips.tsx +1 -1
  317. package/src/client/components/mobile/worktree-session.ts +1 -1
  318. package/src/client/components/settings/LazyModal.tsx +1 -1
  319. package/src/client/components/settings/Modal.tsx +9 -19
  320. package/src/client/components/settings/Sidebar.test.tsx +1 -1
  321. package/src/client/components/settings/Sidebar.tsx +1 -1
  322. package/src/client/components/settings/categories/AppearanceSettings.tsx +3 -0
  323. package/src/client/components/settings/categories/ChatSettings.tsx +3 -1
  324. package/src/client/components/settings/categories/OmpSettings.tsx +1 -1
  325. package/src/client/components/settings/categories/ProviderSettings.tsx +43 -41
  326. package/src/client/components/settings/categories/appearance-settings/EditorBlameSection.tsx +97 -0
  327. package/src/client/components/settings/categories/appearance-settings/EditorFontSection.tsx +1 -1
  328. package/src/client/components/settings/categories/appearance-settings/EditorIndentSection.tsx +1 -1
  329. package/src/client/components/settings/categories/appearance-settings/EditorThemeSection.test.tsx +1 -1
  330. package/src/client/components/settings/categories/appearance-settings/EditorThemeSection.tsx +1 -1
  331. package/src/client/components/settings/categories/appearance-settings/EditorTypingSection.tsx +1 -1
  332. package/src/client/components/settings/categories/appearance-settings/ThemeCard.tsx +1 -1
  333. package/src/client/components/settings/categories/appearance-settings/ThemeGrid.tsx +1 -1
  334. package/src/client/components/settings/categories/chat-settings/GoalSection.tsx +1 -1
  335. package/src/client/components/settings/categories/chat-settings/LayoutSection.tsx +112 -0
  336. package/src/client/components/settings/categories/omp-settings/ConfigTabs.tsx +1 -1
  337. package/src/client/components/settings/categories/omp-settings/ExtensionsPanel.tsx +1 -1
  338. package/src/client/components/settings/categories/omp-settings/PresetBar.tsx +1 -1
  339. package/src/client/components/settings/categories/omp-settings/RoleEditor.test.ts +1 -1
  340. package/src/client/components/settings/categories/omp-settings/RoleEditor.tsx +1 -1
  341. package/src/client/components/settings/categories/omp-settings/RoleRow.tsx +1 -1
  342. package/src/client/components/settings/categories/omp-settings/RowEditor.tsx +1 -1
  343. package/src/client/components/settings/categories/panel-plugins/AvailableList.tsx +106 -54
  344. package/src/client/components/settings/categories/panel-plugins/GitFreshness.test.tsx +1 -1
  345. package/src/client/components/settings/categories/panel-plugins/GitFreshness.tsx +15 -2
  346. package/src/client/components/settings/categories/panel-plugins/InstalledList.tsx +39 -150
  347. package/src/client/components/settings/categories/panel-plugins/LeftDockSettings.tsx +1 -1
  348. package/src/client/components/settings/categories/panel-plugins/Meta.test.tsx +143 -0
  349. package/src/client/components/settings/categories/panel-plugins/Meta.tsx +157 -0
  350. package/src/client/components/settings/categories/panel-plugins/Placement.test.tsx +149 -0
  351. package/src/client/components/settings/categories/panel-plugins/Placement.tsx +99 -0
  352. package/src/client/components/settings/categories/panel-plugins/PluginCard.tsx +270 -0
  353. package/src/client/components/settings/categories/panel-plugins/PluginMark.test.ts +1 -1
  354. package/src/client/components/settings/categories/panel-plugins/Section.tsx +11 -3
  355. package/src/client/components/settings/categories/panel-plugins/SyncBlockedNotice.tsx +1 -1
  356. package/src/client/components/settings/categories/panel-plugins/Toolbar.tsx +1 -1
  357. package/src/client/components/settings/categories/plugin-settings/selection.ts +1 -1
  358. package/src/client/components/settings/categories/project-settings/WorktreeSettings.tsx +1 -1
  359. package/src/client/components/settings/categories/project-settings/worktree-row.test.ts +1 -1
  360. package/src/client/components/settings/categories/project-settings/worktree-row.ts +1 -1
  361. package/src/client/components/settings/categories/provider-settings/AddModelModal.tsx +25 -0
  362. package/src/client/components/settings/categories/provider-settings/AuthSection.tsx +135 -80
  363. package/src/client/components/settings/categories/provider-settings/DeleteProviderModal.tsx +51 -21
  364. package/src/client/components/settings/categories/provider-settings/EntryAdvanced.tsx +175 -0
  365. package/src/client/components/settings/categories/provider-settings/EntryModal.tsx +275 -0
  366. package/src/client/components/settings/categories/provider-settings/Header.tsx +40 -9
  367. package/src/client/components/settings/categories/provider-settings/LoginModal.tsx +142 -160
  368. package/src/client/components/settings/categories/provider-settings/LogoutProviderModal.tsx +2 -2
  369. package/src/client/components/settings/categories/provider-settings/ModelCapabilitiesModal.tsx +84 -46
  370. package/src/client/components/settings/categories/provider-settings/ModelsList.tsx +217 -102
  371. package/src/client/components/settings/categories/provider-settings/PresetPicker.tsx +5 -2
  372. package/src/client/components/settings/categories/provider-settings/SidebarList.plugin.test.ts +4 -4
  373. package/src/client/components/settings/categories/provider-settings/SidebarList.tsx +158 -102
  374. package/src/client/components/settings/categories/provider-settings/auth-section.test.tsx +135 -0
  375. package/src/client/components/settings/categories/provider-settings/groups.test.ts +98 -0
  376. package/src/client/components/settings/categories/provider-settings/groups.ts +108 -0
  377. package/src/client/components/settings/categories/provider-settings/layout.test.tsx +325 -0
  378. package/src/client/components/settings/categories/provider-settings/model-dialogs.test.tsx +135 -0
  379. package/src/client/components/settings/categories/provider-settings/preset-picker.test.tsx +73 -0
  380. package/src/client/components/settings/categories/usage-settings/ProviderCard.tsx +22 -2
  381. package/src/client/components/settings/categories/usage-settings/ProviderDetail.tsx +2 -0
  382. package/src/client/components/settings/categories/usage-settings/SidebarList.tsx +16 -6
  383. package/src/client/components/settings/categories/usage-settings/providers.ts +3 -0
  384. package/src/client/components/settings/categories/usage-settings/usage-and-picker.test.ts +20 -1
  385. package/src/client/components/settings/categories/usage-settings/usage-icons.test.tsx +143 -0
  386. package/src/client/components/settings/master-detail/index.tsx +1 -1
  387. package/src/client/components/workspace/browser-panel/Screencast.test.ts +112 -0
  388. package/src/client/components/workspace/browser-panel/Screencast.tsx +37 -11
  389. package/src/client/components/workspace/browser-panel/index.tsx +2 -2
  390. package/src/client/components/workspace/btw-panel/AskCard.tsx +1 -1
  391. package/src/client/components/workspace/btw-panel/Messages.tsx +1 -1
  392. package/src/client/components/workspace/btw-panel/index.tsx +1 -1
  393. package/src/client/components/workspace/chat-timeline/AiMessageFooter.plugin.test.ts +1 -1
  394. package/src/client/components/workspace/chat-timeline/ChatOverlays.tsx +1 -1
  395. package/src/client/components/workspace/chat-timeline/ComposerDock.tsx +1 -1
  396. package/src/client/components/workspace/chat-timeline/EmptyWorkspacePrompt.tsx +2 -2
  397. package/src/client/components/workspace/chat-timeline/GeneratingIndicator.test.ts +1 -1
  398. package/src/client/components/workspace/chat-timeline/GoalNotice.tsx +1 -1
  399. package/src/client/components/workspace/chat-timeline/MessageItem.gutter.test.ts +1 -1
  400. package/src/client/components/workspace/chat-timeline/MessageList.test.ts +60 -1
  401. package/src/client/components/workspace/chat-timeline/MessageList.tsx +24 -4
  402. package/src/client/components/workspace/chat-timeline/MinimapShortcuts.test.ts +3 -2
  403. package/src/client/components/workspace/chat-timeline/PendingChatView.tsx +1 -1
  404. package/src/client/components/workspace/chat-timeline/PluginMessageActions.test.ts +1 -1
  405. package/src/client/components/workspace/chat-timeline/PluginMessageActions.tsx +1 -1
  406. package/src/client/components/workspace/chat-timeline/QueueList.test.ts +1 -1
  407. package/src/client/components/workspace/chat-timeline/SessionSkeleton.tsx +2 -2
  408. package/src/client/components/workspace/chat-timeline/SubagentControls.tsx +1 -1
  409. package/src/client/components/workspace/chat-timeline/SubagentView.tsx +2 -2
  410. package/src/client/components/workspace/chat-timeline/SystemNotice.test.ts +1 -1
  411. package/src/client/components/workspace/chat-timeline/TimelineBody.tsx +11 -5
  412. package/src/client/components/workspace/chat-timeline/ToolCallCard.plugin.test.ts +1 -1
  413. package/src/client/components/workspace/chat-timeline/ToolCallCard.tsx +1 -1
  414. package/src/client/components/workspace/chat-timeline/ToolCallingSection.test.ts +1 -1
  415. package/src/client/components/workspace/chat-timeline/ToolCallingSection.tsx +1 -1
  416. package/src/client/components/workspace/chat-timeline/chat-input/GoalBanner.test.ts +24 -20
  417. package/src/client/components/workspace/chat-timeline/chat-input/GoalBanner.tsx +1 -1
  418. package/src/client/components/workspace/chat-timeline/chat-input/GoalModal.tsx +1 -1
  419. package/src/client/components/workspace/chat-timeline/chat-input/GoalSurfaces.tsx +1 -1
  420. package/src/client/components/workspace/chat-timeline/chat-input/ModeToggles.test.ts +24 -20
  421. package/src/client/components/workspace/chat-timeline/chat-input/ModeToggles.tsx +1 -1
  422. package/src/client/components/workspace/chat-timeline/chat-input/PluginComposerSlots.test.ts +1 -1
  423. package/src/client/components/workspace/chat-timeline/chat-input/PluginComposerSlots.tsx +1 -1
  424. package/src/client/components/workspace/chat-timeline/chat-input/Toolbar.test.ts +21 -19
  425. package/src/client/components/workspace/chat-timeline/chat-input/VoiceNotice.tsx +1 -1
  426. package/src/client/components/workspace/chat-timeline/chat-input/WaitingDependencyPicker.test.ts +1 -1
  427. package/src/client/components/workspace/chat-timeline/chat-input/WaitingDependencyPicker.tsx +1 -1
  428. package/src/client/components/workspace/chat-timeline/chat-input/compact.test.tsx +20 -7
  429. package/src/client/components/workspace/chat-timeline/chat-input/expansion.test.ts +1 -1
  430. package/src/client/components/workspace/chat-timeline/chat-input/expansion.ts +10 -2
  431. package/src/client/components/workspace/chat-timeline/chat-input/index.tsx +15 -10
  432. package/src/client/components/workspace/chat-timeline/chat-input/modes-props.ts +1 -1
  433. package/src/client/components/workspace/chat-timeline/chat-input/props.ts +5 -5
  434. package/src/client/components/workspace/chat-timeline/chat-input/selection.ts +1 -1
  435. package/src/client/components/workspace/chat-timeline/chat-input/stretch-send.test.tsx +1 -1
  436. package/src/client/components/workspace/chat-timeline/index.tsx +11 -18
  437. package/src/client/components/workspace/chat-timeline/plan-review/index.tsx +1 -1
  438. package/src/client/components/workspace/chat-timeline/target-picker/WorkspacePicker.test.tsx +1 -1
  439. package/src/client/components/workspace/chat-timeline/target-picker/WorkspacePicker.tsx +1 -1
  440. package/src/client/components/workspace/chat-timeline/target-picker/WorktreePicker.test.tsx +1 -1
  441. package/src/client/components/workspace/chat-timeline/target-picker/WorktreePicker.tsx +1 -1
  442. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/FrameControl.tsx +1 -1
  443. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/GroupedAsk.tsx +1 -1
  444. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/OptionRow.tsx +1 -1
  445. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/OrphanAsks.test.tsx +1 -1
  446. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/OrphanAsks.tsx +1 -1
  447. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/PluginPendingInteractions.test.ts +1 -1
  448. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/PluginPendingInteractions.tsx +3 -50
  449. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/QuestionBlock.tsx +1 -1
  450. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/QuestionCard.tsx +1 -1
  451. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/drafts.ts +1 -1
  452. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/index.tsx +1 -1
  453. package/src/client/components/workspace/chat-timeline/tool-renderers/extension-dialog/ApprovalBody.tsx +1 -1
  454. package/src/client/components/workspace/chat-timeline/tool-renderers/extension-dialog/approval-gate.test.tsx +1 -1
  455. package/src/client/components/workspace/chat-timeline/tool-renderers/extension-dialog/shortcuts.tsx +1 -1
  456. package/src/client/components/workspace/chat-timeline/tool-renderers/hashline-patch/index.tsx +1 -1
  457. package/src/client/components/workspace/chat-timeline/tool-renderers/index.tsx +1 -1
  458. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Edit.test.ts +1 -1
  459. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Eval.test.tsx +1 -1
  460. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/FileMatches.test.ts +1 -1
  461. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/FileMatches.tsx +1 -1
  462. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/GoalRecord.tsx +1 -1
  463. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Proc.test.ts +1 -1
  464. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Proc.tsx +1 -1
  465. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Read.test.ts +1 -1
  466. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Todo.test.ts +1 -1
  467. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Todo.tsx +1 -1
  468. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Wait.missing.test.ts +100 -0
  469. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Wait.test.ts +4 -48
  470. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Wait.tsx +9 -2
  471. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/wait-test-util.ts +62 -0
  472. package/src/client/components/workspace/chat-timeline/tool-renderers/plugin-renderers.test.ts +1 -1
  473. package/src/client/components/workspace/chat-timeline/tool-renderers/plugin-renderers.ts +1 -1
  474. package/src/client/components/workspace/chat-timeline/tool-renderers/registry.test.ts +1 -1
  475. package/src/client/components/workspace/chat-timeline/tool-renderers/registry.ts +1 -1
  476. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ArtifactBody.test.ts +1 -1
  477. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ArtifactBody.tsx +1 -1
  478. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ArtifactChip.tsx +1 -1
  479. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/DiffView.test.ts +1 -1
  480. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/DiffView.tsx +1 -1
  481. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/HighlightedCode.tsx +1 -1
  482. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/OutputWindow.tsx +1 -1
  483. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolCardShell.test.ts +1 -1
  484. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolCardShell.tsx +1 -1
  485. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolFactChips.tsx +1 -1
  486. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolPanelHeader.tsx +1 -1
  487. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/card-header.test.ts +1 -1
  488. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/card-header.ts +1 -1
  489. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/card-helpers.tsx +1 -1
  490. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/numbered-code.test.tsx +1 -1
  491. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/numbered-code.tsx +1 -1
  492. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/read-line-meta.test.ts +1 -1
  493. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/tool-input.test.ts +1 -1
  494. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/truncate.test.ts +1 -1
  495. package/src/client/components/workspace/context-panel/pure-helpers.test.ts +1 -1
  496. package/src/client/components/workspace/diff-panel/HunkStepper.tsx +62 -0
  497. package/src/client/components/workspace/diff-panel/MergeDiffView.tsx +30 -1
  498. package/src/client/components/workspace/diff-panel/ThemedMergeDiffView.tsx +1 -1
  499. package/src/client/components/workspace/diff-panel/Toolbar.tsx +32 -1
  500. package/src/client/components/workspace/diff-panel/ToolbarSegments.tsx +1 -1
  501. package/src/client/components/workspace/diff-panel/changes.ts +69 -0
  502. package/src/client/components/workspace/diff-panel/chunks.ts +85 -0
  503. package/src/client/components/workspace/diff-panel/folding.test.ts +1 -1
  504. package/src/client/components/workspace/diff-panel/folding.ts +1 -1
  505. package/src/client/components/workspace/diff-panel/index.tsx +21 -1
  506. package/src/client/components/workspace/diff-panel/merge.test.ts +145 -0
  507. package/src/client/components/workspace/diff-panel/merge.ts +64 -69
  508. package/src/client/components/workspace/editor/CommandPalette.test.ts +1 -1
  509. package/src/client/components/workspace/editor/CommandPalette.tsx +1 -1
  510. package/src/client/components/workspace/editor/ConflictStrip.tsx +1 -1
  511. package/src/client/components/workspace/editor/Dialogs.tsx +1 -1
  512. package/src/client/components/workspace/editor/EditorDropOverlay.tsx +6 -1
  513. package/src/client/components/workspace/editor/EmptyEditor.tsx +1 -1
  514. package/src/client/components/workspace/editor/ExternalChangeStrip.tsx +1 -1
  515. package/src/client/components/workspace/editor/FileDocument.tsx +51 -1
  516. package/src/client/components/workspace/editor/FilePane.tsx +25 -1
  517. package/src/client/components/workspace/editor/FindWidget.test.ts +1 -1
  518. package/src/client/components/workspace/editor/FindWidget.tsx +1 -1
  519. package/src/client/components/workspace/editor/GoToLineModal.tsx +1 -1
  520. package/src/client/components/workspace/editor/Notices.tsx +1 -1
  521. package/src/client/components/workspace/editor/Pane.tsx +1 -1
  522. package/src/client/components/workspace/editor/PluginColumn.tsx +1 -1
  523. package/src/client/components/workspace/editor/PluginRail.tsx +1 -1
  524. package/src/client/components/workspace/editor/QuickOpenModal.tsx +1 -1
  525. package/src/client/components/workspace/editor/SaveAsModal.tsx +1 -1
  526. package/src/client/components/workspace/editor/SplitColumn.tsx +1 -1
  527. package/src/client/components/workspace/editor/SplitPane.tsx +1 -1
  528. package/src/client/components/workspace/editor/StatusBar.tsx +20 -1
  529. package/src/client/components/workspace/editor/TabContextMenu.tsx +1 -1
  530. package/src/client/components/workspace/editor/Tabs.test.ts +1 -1
  531. package/src/client/components/workspace/editor/Toolbar.tsx +29 -5
  532. package/src/client/components/workspace/editor/plugin-file-view.test.ts +1 -1
  533. package/src/client/components/workspace/editor/plugin-file-view.tsx +1 -1
  534. package/src/client/components/workspace/editor/plugin-rail.test.tsx +1 -1
  535. package/src/client/components/workspace/editor/props.ts +1 -1
  536. package/src/client/components/workspace/editor/toolbar-clusters.test.ts +86 -0
  537. package/src/client/components/workspace/editor/toolbar-clusters.tsx +49 -17
  538. package/src/client/components/workspace/editor/viewers/CsvGrid.tsx +1 -1
  539. package/src/client/components/workspace/editor/viewers/DataGrid.tsx +1 -1
  540. package/src/client/components/workspace/editor/viewers/DocxView.tsx +1 -1
  541. package/src/client/components/workspace/editor/viewers/ImageView.tsx +1 -1
  542. package/src/client/components/workspace/editor/viewers/PdfView.tsx +1 -1
  543. package/src/client/components/workspace/editor/viewers/SheetView.tsx +1 -1
  544. package/src/client/components/workspace/editor/viewers/SvgPreview.tsx +1 -1
  545. package/src/client/components/workspace/editor/viewers/ViewerError.tsx +1 -1
  546. package/src/client/components/workspace/editor/viewers/bytes.test.ts +1 -1
  547. package/src/client/components/workspace/editor/viewers/bytes.ts +17 -1
  548. package/src/client/components/workspace/editor/viewers/dispatch.tsx +1 -1
  549. package/src/client/components/workspace/editor/viewers/mammoth-browser.d.ts +1 -1
  550. package/src/client/components/workspace/editor/viewers/use-byte-document.test.ts +1 -1
  551. package/src/client/components/workspace/editor/viewers/use-byte-document.ts +1 -1
  552. package/src/client/components/workspace/editor/viewers/use-byte-url.test.ts +1 -1
  553. package/src/client/components/workspace/editor/viewers/use-byte-url.ts +1 -1
  554. package/src/client/components/workspace/editor/viewers/viewers.test.ts +1 -1
  555. package/src/client/components/workspace/file-explorer/ContextMenu.tsx +1 -1
  556. package/src/client/components/workspace/file-explorer/OutlineSection.test.tsx +1 -1
  557. package/src/client/components/workspace/file-explorer/OutlineSection.tsx +1 -1
  558. package/src/client/components/workspace/file-explorer/RootMenu.tsx +1 -1
  559. package/src/client/components/workspace/file-explorer/Toolbar.tsx +1 -1
  560. package/src/client/components/workspace/file-explorer/clipboard.test.ts +1 -1
  561. package/src/client/components/workspace/file-explorer/drag.test.ts +1 -1
  562. package/src/client/components/workspace/file-explorer/filter.ts +1 -1
  563. package/src/client/components/workspace/file-explorer/index.test.ts +1 -1
  564. package/src/client/components/workspace/file-explorer/local-edit.test.ts +1 -1
  565. package/src/client/components/workspace/file-explorer/root-menu.test.ts +1 -1
  566. package/src/client/components/workspace/git-panel/StashSection.test.tsx +1 -1
  567. package/src/client/components/workspace/git-panel/commit-modal/CommitRow.test.ts +1 -1
  568. package/src/client/components/workspace/git-panel/commit-modal.test.ts +1 -1
  569. package/src/client/components/workspace/git-panel/confirm-request.test.ts +1 -1
  570. package/src/client/components/workspace/git-panel/index.test.ts +47 -2
  571. package/src/client/components/workspace/git-panel/index.tsx +11 -38
  572. package/src/client/components/workspace/git-panel/init-state.test.ts +1 -1
  573. package/src/client/components/workspace/model-dropdown/Item.plugin.test.ts +67 -1
  574. package/src/client/components/workspace/model-dropdown/Item.tsx +82 -63
  575. package/src/client/components/workspace/model-dropdown/Panel.tsx +39 -3
  576. package/src/client/components/workspace/model-dropdown/Section.test.tsx +131 -0
  577. package/src/client/components/workspace/model-dropdown/Section.tsx +37 -17
  578. package/src/client/components/workspace/model-dropdown/SpecsTooltip.test.tsx +126 -0
  579. package/src/client/components/workspace/model-dropdown/SpecsTooltip.tsx +119 -74
  580. package/src/client/components/workspace/model-dropdown/collapsed.ts +68 -0
  581. package/src/client/components/workspace/model-dropdown/groups.test.ts +1 -1
  582. package/src/client/components/workspace/model-dropdown/groups.ts +1 -1
  583. package/src/client/components/workspace/model-dropdown/index.tsx +42 -19
  584. package/src/client/components/workspace/model-dropdown/refresh.test.tsx +310 -0
  585. package/src/client/components/workspace/model-dropdown/trigger.test.ts +35 -1
  586. package/src/client/components/workspace/model-dropdown/use-catalog.ts +13 -2
  587. package/src/client/components/workspace/panels/builtin.test.ts +1 -1
  588. package/src/client/components/workspace/plan-panel/Nav.tsx +1 -1
  589. package/src/client/components/workspace/plan-panel/PageView.tsx +1 -1
  590. package/src/client/components/workspace/plan-panel/index.tsx +1 -1
  591. package/src/client/components/workspace/plugin-panel/RowScope.test.tsx +1 -1
  592. package/src/client/components/workspace/plugin-panel/catalog.tsx +7 -2
  593. package/src/client/components/workspace/repo-picker/Modal.test.tsx +1 -1
  594. package/src/client/components/workspace/repo-picker/Modal.tsx +1 -1
  595. package/src/client/components/workspace/repo-picker/Row.tsx +1 -1
  596. package/src/client/components/workspace/repo-picker/index.test.tsx +1 -1
  597. package/src/client/components/workspace/repo-picker/index.tsx +1 -1
  598. package/src/client/components/workspace/search-panel/Body.test.ts +1 -1
  599. package/src/client/components/workspace/search-panel/Results.tsx +1 -1
  600. package/src/client/components/workspace/search-panel/Row.tsx +1 -1
  601. package/src/client/components/workspace/terminal-panel/Header.test.ts +1 -1
  602. package/src/client/components/workspace/terminal-panel/RealtimeXtermView.tsx +28 -1
  603. package/src/client/components/workspace/terminal-panel/index.tsx +4 -1
  604. package/src/client/components/workspace/terminal-panel/mount.ts +15 -19
  605. package/src/client/components/workspace/terminal-panel/webgl.test.ts +75 -0
  606. package/src/client/components/workspace/terminal-panel/webgl.ts +108 -0
  607. package/src/client/components/workspace/todo-panel/PhaseGroup.tsx +1 -1
  608. package/src/client/components/workspace/todo-panel/index.tsx +1 -1
  609. package/src/client/components/workspace/usage-panel/ProviderSelect.tsx +19 -3
  610. package/src/client/components/workspace/usage-panel/report.test.ts +1 -1
  611. package/src/client/components/workspace/usage-panel/report.ts +1 -1
  612. package/src/client/components/workspace/wiki-panel/Nav.tsx +1 -1
  613. package/src/client/components/workspace/wiki-panel/PageView.tsx +1 -1
  614. package/src/client/components/workspace/wiki-panel/index.tsx +1 -1
  615. package/src/client/components/workspace/worktree-modal/index.test.tsx +1 -1
  616. package/src/client/components/workspace/worktree-modal/index.tsx +1 -1
  617. package/src/client/data/context-data/index.test.ts +1 -1
  618. package/src/client/hooks/browser/use-screencast.ts +17 -9
  619. package/src/client/hooks/chat/btw/index.ts +1 -1
  620. package/src/client/hooks/chat/btw/intercept.test.ts +1 -1
  621. package/src/client/hooks/chat/btw/intercept.ts +1 -1
  622. package/src/client/hooks/chat/btw/mode.ts +1 -1
  623. package/src/client/hooks/chat/composer/attachments.test.ts +1 -1
  624. package/src/client/hooks/chat/composer/attachments.ts +1 -1
  625. package/src/client/hooks/chat/composer/auto-grow.test.ts +60 -6
  626. package/src/client/hooks/chat/composer/auto-grow.ts +71 -19
  627. package/src/client/hooks/chat/composer/browser-context.ts +1 -1
  628. package/src/client/hooks/chat/composer/compact.ts +1 -1
  629. package/src/client/hooks/chat/composer/drop-entries.test.ts +1 -1
  630. package/src/client/hooks/chat/composer/drop-entries.ts +1 -1
  631. package/src/client/hooks/chat/composer/drop-payload.test.ts +1 -1
  632. package/src/client/hooks/chat/composer/drop-payload.ts +1 -1
  633. package/src/client/hooks/chat/composer/drop-references.ts +1 -1
  634. package/src/client/hooks/chat/composer/file-drop.test.ts +1 -1
  635. package/src/client/hooks/chat/composer/file-drop.ts +1 -1
  636. package/src/client/hooks/chat/composer/file-reads.test.ts +1 -1
  637. package/src/client/hooks/chat/composer/file-reads.ts +1 -1
  638. package/src/client/hooks/chat/composer/items.test.ts +1 -1
  639. package/src/client/hooks/chat/composer/items.ts +1 -1
  640. package/src/client/hooks/chat/composer/model-selection.ts +1 -1
  641. package/src/client/hooks/chat/composer/pipeline.test.ts +1 -1
  642. package/src/client/hooks/chat/composer/pipeline.ts +1 -1
  643. package/src/client/hooks/chat/composer/publish-state.ts +1 -1
  644. package/src/client/hooks/chat/composer/speech-to-text.ts +1 -1
  645. package/src/client/hooks/chat/composer/use-draft.ts +1 -1
  646. package/src/client/hooks/chat/composer/voice-input.ts +1 -1
  647. package/src/client/hooks/chat/context/telemetry.ts +1 -1
  648. package/src/client/hooks/chat/omp/folder-auto-expand.ts +113 -0
  649. package/src/client/hooks/chat/omp/index-probe.test.ts +1 -1
  650. package/src/client/hooks/chat/omp/index.ts +20 -0
  651. package/src/client/hooks/chat/omp/owner-redirect.test.ts +1 -1
  652. package/src/client/hooks/chat/omp/owner-redirect.ts +1 -1
  653. package/src/client/hooks/chat/omp/pending-rows.ts +22 -1
  654. package/src/client/hooks/chat/omp/pending-sessions.test.ts +17 -2
  655. package/src/client/hooks/chat/omp/pending-sessions.ts +1 -1
  656. package/src/client/hooks/chat/omp/pending-sessions.waiting.test.ts +1 -1
  657. package/src/client/hooks/chat/omp/pending-waiting.ts +1 -1
  658. package/src/client/hooks/chat/omp/prompt-send.test.ts +1 -1
  659. package/src/client/hooks/chat/omp/prompt-send.ts +1 -1
  660. package/src/client/hooks/chat/omp/reconnect.test.ts +1 -1
  661. package/src/client/hooks/chat/omp/reconnect.ts +1 -1
  662. package/src/client/hooks/chat/omp/run-liveness.test.ts +1 -1
  663. package/src/client/hooks/chat/omp/run-liveness.ts +1 -1
  664. package/src/client/hooks/chat/omp/run-switch.test.ts +1 -1
  665. package/src/client/hooks/chat/omp/run-switch.ts +1 -1
  666. package/src/client/hooks/chat/omp/session-list.activity.test.ts +1 -1
  667. package/src/client/hooks/chat/omp/session-list.test-util.ts +1 -1
  668. package/src/client/hooks/chat/omp/session-list.test.ts +1 -1
  669. package/src/client/hooks/chat/omp/session-list.tsx +1 -1
  670. package/src/client/hooks/chat/omp/session-sidebar-controller.test.ts +103 -1
  671. package/src/client/hooks/chat/omp/session-sidebar-controller.ts +22 -2
  672. package/src/client/hooks/chat/omp/session-statuses.test.ts +1 -1
  673. package/src/client/hooks/chat/omp/session-statuses.ts +1 -1
  674. package/src/client/hooks/chat/omp/sidebar-overlay.ts +1 -1
  675. package/src/client/hooks/chat/omp/status.ts +1 -1
  676. package/src/client/hooks/chat/omp/stream-rpc.test.ts +1 -1
  677. package/src/client/hooks/chat/omp/stream.test.ts +1 -1
  678. package/src/client/hooks/chat/omp/stream.ts +9 -2
  679. package/src/client/hooks/chat/timeline/access-mode.ts +1 -1
  680. package/src/client/hooks/chat/timeline/actions.test.ts +1 -1
  681. package/src/client/hooks/chat/timeline/actions.ts +1 -1
  682. package/src/client/hooks/chat/timeline/ask-frames-grouped.test.ts +1 -1
  683. package/src/client/hooks/chat/timeline/ask-frames.test.ts +1 -1
  684. package/src/client/hooks/chat/timeline/ask-frames.ts +1 -1
  685. package/src/client/hooks/chat/timeline/auto-scroll.ts +1 -1
  686. package/src/client/hooks/chat/timeline/composer-local-actions.test.ts +1 -1
  687. package/src/client/hooks/chat/timeline/composer-modes.ts +1 -1
  688. package/src/client/hooks/chat/timeline/composer-refs.ts +1 -1
  689. package/src/client/hooks/chat/timeline/deferred-model.test.ts +1 -1
  690. package/src/client/hooks/chat/timeline/deferred-model.ts +1 -1
  691. package/src/client/hooks/chat/timeline/enqueue-follow-up.ts +1 -1
  692. package/src/client/hooks/chat/timeline/extension-dialog.ts +1 -1
  693. package/src/client/hooks/chat/timeline/generating.test.ts +1 -1
  694. package/src/client/hooks/chat/timeline/generating.ts +1 -1
  695. package/src/client/hooks/chat/timeline/goal-command.ts +1 -1
  696. package/src/client/hooks/chat/timeline/index.ts +14 -10
  697. package/src/client/hooks/chat/timeline/jump-rail.ts +63 -0
  698. package/src/client/hooks/chat/timeline/local-commands.ts +1 -1
  699. package/src/client/hooks/chat/timeline/lost-run.test.ts +1 -1
  700. package/src/client/hooks/chat/timeline/lost-run.ts +1 -1
  701. package/src/client/hooks/chat/timeline/mode-marker-spellings.test.ts +1 -1
  702. package/src/client/hooks/chat/timeline/mode-markers.ts +1 -1
  703. package/src/client/hooks/chat/timeline/modes.test.ts +1 -1
  704. package/src/client/hooks/chat/timeline/modes.ts +1 -1
  705. package/src/client/hooks/chat/timeline/new-chat-open.ts +60 -0
  706. package/src/client/hooks/chat/timeline/new-chat.test.ts +1 -1
  707. package/src/client/hooks/chat/timeline/new-chat.ts +1 -1
  708. package/src/client/hooks/chat/timeline/plan-review.test.ts +1 -1
  709. package/src/client/hooks/chat/timeline/plan-review.ts +1 -1
  710. package/src/client/hooks/chat/timeline/plugin-commands.test.ts +1 -1
  711. package/src/client/hooks/chat/timeline/plugin-commands.ts +1 -1
  712. package/src/client/hooks/chat/timeline/prompt-text.test.ts +1 -1
  713. package/src/client/hooks/chat/timeline/prompt-text.ts +1 -1
  714. package/src/client/hooks/chat/timeline/queue-actions.ts +1 -1
  715. package/src/client/hooks/chat/timeline/queue-rewind.test.ts +1 -1
  716. package/src/client/hooks/chat/timeline/queue.ts +1 -1
  717. package/src/client/hooks/chat/timeline/rail-jump.test.ts +32 -2
  718. package/src/client/hooks/chat/timeline/rail-jump.ts +39 -20
  719. package/src/client/hooks/chat/timeline/rewind-actions.test.ts +1 -1
  720. package/src/client/hooks/chat/timeline/rewind-actions.ts +1 -1
  721. package/src/client/hooks/chat/timeline/rewind.ts +1 -1
  722. package/src/client/hooks/chat/timeline/row-window.test.ts +211 -0
  723. package/src/client/hooks/chat/timeline/row-window.ts +350 -0
  724. package/src/client/hooks/chat/timeline/run-identity.ts +1 -1
  725. package/src/client/hooks/chat/timeline/scope.ts +1 -1
  726. package/src/client/hooks/chat/timeline/scroll-probe.test-util.ts +1 -1
  727. package/src/client/hooks/chat/timeline/scroll-reading-back.test.ts +1 -1
  728. package/src/client/hooks/chat/timeline/scroll.test.ts +1 -1
  729. package/src/client/hooks/chat/timeline/scroll.ts +32 -3
  730. package/src/client/hooks/chat/timeline/send-execute.test.ts +1 -1
  731. package/src/client/hooks/chat/timeline/send-helpers.ts +1 -1
  732. package/src/client/hooks/chat/timeline/send-refusal.test.ts +1 -1
  733. package/src/client/hooks/chat/timeline/send-steer.test.ts +1 -1
  734. package/src/client/hooks/chat/timeline/send.test-util.ts +1 -1
  735. package/src/client/hooks/chat/timeline/send.test.ts +1 -1
  736. package/src/client/hooks/chat/timeline/send.ts +1 -1
  737. package/src/client/hooks/chat/timeline/session-jump.ts +142 -0
  738. package/src/client/hooks/chat/timeline/session-load.test-util.ts +1 -1
  739. package/src/client/hooks/chat/timeline/session-load.test.ts +1 -1
  740. package/src/client/hooks/chat/timeline/session-load.ts +1 -1
  741. package/src/client/hooks/chat/timeline/session-pagination.test.ts +16 -1
  742. package/src/client/hooks/chat/timeline/session-pagination.ts +83 -77
  743. package/src/client/hooks/chat/timeline/session-scope.test.ts +1 -1
  744. package/src/client/hooks/chat/timeline/session-switch.test.ts +1 -1
  745. package/src/client/hooks/chat/timeline/session-switch.ts +1 -1
  746. package/src/client/hooks/chat/timeline/session-title.ts +1 -1
  747. package/src/client/hooks/chat/timeline/spawn-target.ts +1 -1
  748. package/src/client/hooks/chat/timeline/subagent-view.ts +1 -1
  749. package/src/client/hooks/chat/timeline/timeline-mode-state.test.ts +1 -1
  750. package/src/client/hooks/chat/timeline/timeline-rail.test.ts +6 -10
  751. package/src/client/hooks/chat/timeline/tool-open.test.ts +1 -1
  752. package/src/client/hooks/chat/timeline/tool-open.ts +1 -1
  753. package/src/client/hooks/chat/timeline/tui-only-guard.ts +1 -1
  754. package/src/client/hooks/chat/timeline/user-turns.ts +24 -28
  755. package/src/client/hooks/chat/timeline/width-mode.test.ts +82 -0
  756. package/src/client/hooks/chat/timeline/width-mode.ts +68 -0
  757. package/src/client/hooks/chat/waiting/cancel.ts +1 -1
  758. package/src/client/hooks/chat/waiting/choice.ts +1 -1
  759. package/src/client/hooks/chat/waiting/dispatch.ts +1 -1
  760. package/src/client/hooks/chat/waiting/held.ts +1 -1
  761. package/src/client/hooks/chat/waiting/hold.test.ts +1 -1
  762. package/src/client/hooks/chat/waiting/hold.ts +1 -1
  763. package/src/client/hooks/chat/waiting/store.ts +1 -1
  764. package/src/client/hooks/code/deferred-highlight.test.ts +1 -1
  765. package/src/client/hooks/code/deferred-highlight.ts +1 -1
  766. package/src/client/hooks/desktop/servers.ts +1 -1
  767. package/src/client/hooks/editor/blame-settings.ts +67 -0
  768. package/src/client/hooks/editor/blame.test.ts +272 -0
  769. package/src/client/hooks/editor/blame.ts +232 -0
  770. package/src/client/hooks/editor/caret-position.test.ts +1 -1
  771. package/src/client/hooks/editor/caret-position.ts +1 -1
  772. package/src/client/hooks/editor/file-actions.ts +1 -1
  773. package/src/client/hooks/editor/file-editor-types.ts +24 -1
  774. package/src/client/hooks/editor/find-harness.test-util.ts +1 -1
  775. package/src/client/hooks/editor/find-history.test.ts +1 -1
  776. package/src/client/hooks/editor/find-history.ts +1 -1
  777. package/src/client/hooks/editor/find-selection-range.test.ts +1 -1
  778. package/src/client/hooks/editor/find-selection-range.ts +1 -1
  779. package/src/client/hooks/editor/find-state.ts +1 -1
  780. package/src/client/hooks/editor/font.test.ts +1 -1
  781. package/src/client/hooks/editor/font.ts +1 -1
  782. package/src/client/hooks/editor/indent-settings.test.ts +1 -1
  783. package/src/client/hooks/editor/indent-settings.ts +1 -1
  784. package/src/client/hooks/editor/quick-open.test.ts +1 -1
  785. package/src/client/hooks/editor/quick-open.ts +1 -1
  786. package/src/client/hooks/editor/resolve-viewer.test.ts +1 -1
  787. package/src/client/hooks/editor/resolve-viewer.ts +1 -1
  788. package/src/client/hooks/editor/save-as.test.ts +1 -1
  789. package/src/client/hooks/editor/save-as.ts +1 -1
  790. package/src/client/hooks/editor/save-file.test.ts +21 -1
  791. package/src/client/hooks/editor/save-file.ts +1 -1
  792. package/src/client/hooks/editor/theme.test.ts +1 -1
  793. package/src/client/hooks/editor/theme.ts +1 -1
  794. package/src/client/hooks/editor/typing-settings.test.ts +1 -1
  795. package/src/client/hooks/editor/typing-settings.ts +1 -1
  796. package/src/client/hooks/editor/use-close-guard.ts +1 -1
  797. package/src/client/hooks/editor/use-editor-document.test.ts +1 -1
  798. package/src/client/hooks/editor/use-editor-document.ts +1 -1
  799. package/src/client/hooks/editor/use-editor-drop-overlay.test.ts +1 -1
  800. package/src/client/hooks/editor/use-editor-drop.shell.test.ts +1 -1
  801. package/src/client/hooks/editor/use-editor-drop.test-util.ts +198 -0
  802. package/src/client/hooks/editor/use-editor-drop.test.ts +71 -176
  803. package/src/client/hooks/editor/use-editor-drop.ts +20 -37
  804. package/src/client/hooks/editor/use-editor-find-write.test.ts +1 -1
  805. package/src/client/hooks/editor/use-editor-find.test.ts +1 -1
  806. package/src/client/hooks/editor/use-editor-find.ts +1 -1
  807. package/src/client/hooks/editor/use-editor-outline-bridge.ts +1 -1
  808. package/src/client/hooks/editor/use-editor-panel-keys.ts +1 -1
  809. package/src/client/hooks/editor/use-editor-tab-state.ts +1 -1
  810. package/src/client/hooks/editor/use-external-change-notice.ts +1 -1
  811. package/src/client/hooks/editor/use-external-change.test.ts +1 -1
  812. package/src/client/hooks/editor/use-external-change.ts +1 -1
  813. package/src/client/hooks/editor/use-file-editor-writes.test.ts +1 -1
  814. package/src/client/hooks/editor/use-file-editor.test.ts +1 -1
  815. package/src/client/hooks/editor/use-file-editor.ts +7 -1
  816. package/src/client/hooks/editor/use-file-read.ts +1 -1
  817. package/src/client/hooks/editor/use-file-transfer.ts +1 -1
  818. package/src/client/hooks/editor/use-file-writes.ts +1 -1
  819. package/src/client/hooks/editor/use-heading-jump.test.ts +1 -1
  820. package/src/client/hooks/editor/use-heading-jump.ts +1 -1
  821. package/src/client/hooks/editor/use-line-jump.test.ts +1 -1
  822. package/src/client/hooks/editor/use-line-jump.ts +1 -1
  823. package/src/client/hooks/editor/use-line-reveal.ts +1 -1
  824. package/src/client/hooks/editor/use-mobile-editor-find.ts +1 -1
  825. package/src/client/hooks/editor/use-mobile-reveal.ts +1 -1
  826. package/src/client/hooks/editor/use-outline-view.test.ts +1 -1
  827. package/src/client/hooks/editor/use-outline-view.ts +1 -1
  828. package/src/client/hooks/editor/use-scroll-restore.test.ts +1 -1
  829. package/src/client/hooks/editor/use-scroll-restore.ts +1 -1
  830. package/src/client/hooks/editor/use-search-reveal-jump.ts +1 -1
  831. package/src/client/hooks/editor/use-search-reveal.ts +1 -1
  832. package/src/client/hooks/editor/use-split-editor.test.tsx +1 -1
  833. package/src/client/hooks/editor/use-split-editor.ts +1 -1
  834. package/src/client/hooks/editor/use-unload-guard.tsx +1 -1
  835. package/src/client/hooks/editor/use-write-conflict.test.ts +1 -1
  836. package/src/client/hooks/editor/use-write-conflict.ts +1 -1
  837. package/src/client/hooks/editor/wheel-zoom.test.ts +1 -1
  838. package/src/client/hooks/editor/wheel-zoom.ts +1 -1
  839. package/src/client/hooks/settings/crud-list.test.ts +1 -1
  840. package/src/client/hooks/settings/model-roles.ts +1 -1
  841. package/src/client/hooks/settings/plugins.ts +1 -1
  842. package/src/client/hooks/settings/providers/actions.ts +91 -195
  843. package/src/client/hooks/settings/providers/api.ts +8 -2
  844. package/src/client/hooks/settings/providers/index.ts +171 -59
  845. package/src/client/hooks/settings/providers/login.test.ts +79 -0
  846. package/src/client/hooks/settings/providers/login.ts +276 -0
  847. package/src/client/hooks/settings/providers/logout.ts +1 -1
  848. package/src/client/hooks/settings/providers/messages.ts +29 -1
  849. package/src/client/hooks/settings/providers/model-actions.ts +178 -0
  850. package/src/client/hooks/settings/reload-engine.ts +1 -1
  851. package/src/client/hooks/settings/restart-kabmo.test.ts +1 -1
  852. package/src/client/hooks/settings/restart-kabmo.ts +1 -1
  853. package/src/client/hooks/settings/settings-siblings.test.ts +1 -1
  854. package/src/client/hooks/settings/workspace-roots.ts +1 -1
  855. package/src/client/hooks/ui/auth.test.ts +1 -1
  856. package/src/client/hooks/ui/auth.ts +1 -1
  857. package/src/client/hooks/ui/drag-presence.test.ts +1 -1
  858. package/src/client/hooks/ui/drag-presence.ts +1 -1
  859. package/src/client/hooks/ui/editor-error-toast.ts +47 -0
  860. package/src/client/hooks/ui/inline-rename.ts +1 -1
  861. package/src/client/hooks/ui/input-required-alert.ts +1 -1
  862. package/src/client/hooks/ui/keyboard-inset.test.ts +1 -1
  863. package/src/client/hooks/ui/keyboard-inset.ts +1 -1
  864. package/src/client/hooks/ui/long-press.test.ts +1 -1
  865. package/src/client/hooks/ui/long-press.ts +1 -1
  866. package/src/client/hooks/ui/media-query.ts +1 -1
  867. package/src/client/hooks/ui/open-file.ts +7 -0
  868. package/src/client/hooks/ui/output-reveal.ts +1 -1
  869. package/src/client/hooks/ui/realtime.test.ts +1 -1
  870. package/src/client/hooks/ui/realtime.ts +1 -1
  871. package/src/client/hooks/ui/settings-modal.test.ts +1 -1
  872. package/src/client/hooks/ui/settings-modal.ts +1 -1
  873. package/src/client/hooks/ui/show-more.ts +1 -1
  874. package/src/client/hooks/ui/syntax-ready.ts +1 -1
  875. package/src/client/hooks/ui/text-overflow.test.ts +1 -1
  876. package/src/client/hooks/ui/text-overflow.ts +1 -1
  877. package/src/client/hooks/ui/theme.ts +1 -1
  878. package/src/client/hooks/ui/toasts.ts +7 -0
  879. package/src/client/hooks/ui/touch-device.ts +1 -1
  880. package/src/client/hooks/ui/ui-alert.test.ts +1 -1
  881. package/src/client/hooks/ui/ui-environment.test.ts +1 -1
  882. package/src/client/hooks/ui/ui-feedback.test.ts +1 -1
  883. package/src/client/hooks/ui/ui-inline-rename.test.ts +1 -1
  884. package/src/client/hooks/ui/ui-listeners.test.ts +1 -1
  885. package/src/client/hooks/ui/ui-sounds.test.ts +1 -1
  886. package/src/client/hooks/ui/ui-syntax-ready.test.ts +1 -1
  887. package/src/client/hooks/ui/updates/index.test.ts +1 -1
  888. package/src/client/hooks/ui/updates/restart.test.ts +1 -1
  889. package/src/client/hooks/ui/updates/restart.ts +1 -1
  890. package/src/client/hooks/ui/updates/shell-download.test.ts +1 -1
  891. package/src/client/hooks/ui/updates/shell-offer.test.ts +1 -1
  892. package/src/client/hooks/ui/updates/shell-update.test.ts +1 -1
  893. package/src/client/hooks/ui/updates/shell-update.ts +1 -1
  894. package/src/client/hooks/ui/window-chrome.ts +1 -1
  895. package/src/client/hooks/workspace/batch-delete-run.ts +1 -1
  896. package/src/client/hooks/workspace/batch-delete.ts +1 -1
  897. package/src/client/hooks/workspace/batch-selection.ts +1 -1
  898. package/src/client/hooks/workspace/commit-box.test.ts +1 -1
  899. package/src/client/hooks/workspace/commit-box.ts +1 -1
  900. package/src/client/hooks/workspace/commit-layer.test.ts +1 -1
  901. package/src/client/hooks/workspace/diff-git-actions.ts +1 -1
  902. package/src/client/hooks/workspace/directives.ts +1 -1
  903. package/src/client/hooks/workspace/editor-view.ts +1 -1
  904. package/src/client/hooks/workspace/expanded-sessions.ts +1 -1
  905. package/src/client/hooks/workspace/file-clipboard.test.ts +1 -1
  906. package/src/client/hooks/workspace/file-clipboard.ts +1 -1
  907. package/src/client/hooks/workspace/file-create.ts +1 -1
  908. package/src/client/hooks/workspace/file-listing.ts +1 -1
  909. package/src/client/hooks/workspace/file-row-drag.ts +1 -1
  910. package/src/client/hooks/workspace/file-tabs.test.ts +1 -1
  911. package/src/client/hooks/workspace/file-tabs.ts +4 -1
  912. package/src/client/hooks/workspace/file-tree-actions-clipboard.test.ts +1 -1
  913. package/src/client/hooks/workspace/file-tree-actions.test.ts +1 -1
  914. package/src/client/hooks/workspace/file-tree-actions.ts +1 -1
  915. package/src/client/hooks/workspace/file-tree-edits.ts +1 -1
  916. package/src/client/hooks/workspace/folder-expansion.test.ts +62 -0
  917. package/src/client/hooks/workspace/folder-expansion.ts +33 -0
  918. package/src/client/hooks/workspace/git-action-outcome.ts +86 -0
  919. package/src/client/hooks/workspace/git-actions.ts +29 -2
  920. package/src/client/hooks/workspace/git-status.test.ts +1 -1
  921. package/src/client/hooks/workspace/git-tree.test.ts +1 -1
  922. package/src/client/hooks/workspace/keybindings.ts +1 -1
  923. package/src/client/hooks/workspace/left-dock.ts +1 -1
  924. package/src/client/hooks/workspace/list-slots.test.ts +1 -1
  925. package/src/client/hooks/workspace/list-slots.ts +1 -1
  926. package/src/client/hooks/workspace/missing-files.test.ts +1 -1
  927. package/src/client/hooks/workspace/missing-files.ts +1 -1
  928. package/src/client/hooks/workspace/navbar-session-actions.ts +1 -1
  929. package/src/client/hooks/workspace/new-workspace.ts +1 -1
  930. package/src/client/hooks/workspace/open-panel.ts +1 -1
  931. package/src/client/hooks/workspace/panel-order.ts +1 -1
  932. package/src/client/hooks/workspace/panel-registry.ts +1 -1
  933. package/src/client/hooks/workspace/panel-reorder.ts +1 -1
  934. package/src/client/hooks/workspace/panel-widths.test.ts +1 -1
  935. package/src/client/hooks/workspace/plugin-contributions.test.ts +117 -0
  936. package/src/client/hooks/workspace/plugin-contributions.ts +146 -0
  937. package/src/client/hooks/workspace/renaming-sessions.ts +1 -1
  938. package/src/client/hooks/workspace/repo-details.ts +1 -1
  939. package/src/client/hooks/workspace/repo-scope/index.test.ts +1 -1
  940. package/src/client/hooks/workspace/repo-scope/index.ts +1 -1
  941. package/src/client/hooks/workspace/repo-scope/store.test.ts +1 -1
  942. package/src/client/hooks/workspace/repo-scope/store.ts +1 -1
  943. package/src/client/hooks/workspace/scheduled-tasks.ts +1 -1
  944. package/src/client/hooks/workspace/search-stream.test.ts +1 -1
  945. package/src/client/hooks/workspace/session-actions.test.ts +1 -1
  946. package/src/client/hooks/workspace/session-actions.ts +1 -1
  947. package/src/client/hooks/workspace/session-delete.ts +1 -1
  948. package/src/client/hooks/workspace/terminal/index.ts +1 -1
  949. package/src/client/hooks/workspace/terminal/socket.ts +5 -2
  950. package/src/client/hooks/workspace/toolbar-row-width.ts +1 -1
  951. package/src/client/hooks/workspace/wiki.ts +1 -1
  952. package/src/client/hooks/workspace/workspace-folder-actions.ts +1 -1
  953. package/src/client/hooks/workspace/worktree/index.ts +1 -1
  954. package/src/client/lib/browser/frame-canvas.test.ts +131 -0
  955. package/src/client/lib/browser/frame-canvas.ts +73 -0
  956. package/src/client/lib/desktop/bridge.ts +1 -1
  957. package/src/client/lib/desktop/dropped-paths.ts +1 -1
  958. package/src/client/lib/desktop/titlebar.test.ts +1 -1
  959. package/src/client/lib/desktop/titlebar.ts +1 -1
  960. package/src/client/lib/editor/tab-menu.test.ts +1 -1
  961. package/src/client/lib/editor/tab-menu.ts +1 -1
  962. package/src/client/lib/editor-dirty-tabs.test.ts +1 -1
  963. package/src/client/lib/editor-dirty-tabs.ts +1 -1
  964. package/src/client/lib/editor-document.ts +1 -1
  965. package/src/client/lib/editor-errors.test.ts +85 -0
  966. package/src/client/lib/editor-errors.ts +71 -0
  967. package/src/client/lib/fs/resolve-open.test.ts +125 -0
  968. package/src/client/lib/fs/resolve-open.ts +90 -0
  969. package/src/client/lib/git/action-message.test.ts +82 -0
  970. package/src/client/lib/git/action-message.ts +160 -0
  971. package/src/client/lib/heading-reveal.ts +1 -1
  972. package/src/client/lib/launch/device-files.test.ts +160 -0
  973. package/src/client/lib/launch/device-files.ts +197 -0
  974. package/src/client/lib/launch/file-handlers.test.ts +3 -2
  975. package/src/client/lib/launch/file-handlers.ts +1 -1
  976. package/src/client/lib/launch/types.ts +1 -1
  977. package/src/client/lib/line-reveal.ts +1 -1
  978. package/src/client/lib/native/back.test.ts +1 -1
  979. package/src/client/lib/native/back.ts +1 -1
  980. package/src/client/lib/native/open-paths.test.ts +140 -0
  981. package/src/client/lib/native/open-paths.ts +157 -0
  982. package/src/client/lib/native/palette.test.ts +1 -1
  983. package/src/client/lib/native/palette.ts +1 -1
  984. package/src/client/lib/native/resume.test.ts +1 -1
  985. package/src/client/lib/native/resume.ts +1 -1
  986. package/src/client/lib/outline-stores.test.ts +1 -1
  987. package/src/client/lib/plugins/bootstrap.test.ts +2 -2
  988. package/src/client/lib/plugins/composer-bridge.ts +1 -1
  989. package/src/client/lib/plugins/content-scripts-root.test.ts +1 -1
  990. package/src/client/lib/plugins/content-scripts.test.ts +1 -1
  991. package/src/client/lib/plugins/content-scripts.ts +1 -1
  992. package/src/client/lib/plugins/context.ts +1 -1
  993. package/src/client/lib/plugins/directives.test.tsx +1 -1
  994. package/src/client/lib/plugins/directives.tsx +1 -1
  995. package/src/client/lib/plugins/kit.test.ts +118 -1
  996. package/src/client/lib/plugins/kit.ts +21 -1
  997. package/src/client/lib/plugins/list-slots.test.ts +1 -1
  998. package/src/client/lib/plugins/list-slots.ts +1 -1
  999. package/src/client/lib/plugins/loader.ts +1 -1
  1000. package/src/client/lib/plugins/readiness.ts +126 -0
  1001. package/src/client/lib/plugins/repo-scope-service.test.ts +1 -1
  1002. package/src/client/lib/plugins/repo-scope-service.ts +1 -1
  1003. package/src/client/lib/plugins/runtime.ts +1 -1
  1004. package/src/client/lib/plugins/sidebar-bridge.test.ts +1 -1
  1005. package/src/client/lib/plugins/sidebar-bridge.ts +1 -1
  1006. package/src/client/lib/plugins/slots.test.ts +1 -1
  1007. package/src/client/lib/plugins/slots.ts +1 -1
  1008. package/src/client/lib/plugins/stylesheets.test.ts +1 -1
  1009. package/src/client/lib/plugins/stylesheets.ts +1 -1
  1010. package/src/client/lib/plugins/topic.ts +1 -1
  1011. package/src/client/lib/scrollbar-activity.test.ts +76 -27
  1012. package/src/client/lib/scrollbar-activity.ts +133 -32
  1013. package/src/client/lib/search-reveal.ts +1 -1
  1014. package/src/client/lib/signals.ts +1 -1
  1015. package/src/client/lib/ui/with-chord.ts +1 -1
  1016. package/src/client/main.tsx +28 -0
  1017. package/src/client/stubs/elkjs.ts +1 -1
  1018. package/src/client/tailwind.css +42 -2
  1019. package/src/server/db.server.test.ts +46 -4
  1020. package/src/server/db.server.ts +22 -3
  1021. package/src/server/index.ts +5 -0
  1022. package/src/server/lib/assets/compressed-cache.server.test.ts +1 -1
  1023. package/src/server/lib/assets/compressed-cache.server.ts +8 -5
  1024. package/src/server/lib/assets/conditional.server.test.ts +1 -1
  1025. package/src/server/lib/assets/conditional.server.ts +1 -1
  1026. package/src/server/lib/assets/dev-assets.server.test.ts +1 -1
  1027. package/src/server/lib/assets/dev-assets.server.ts +1 -1
  1028. package/src/server/lib/assets/font-css.server.test.ts +1 -1
  1029. package/src/server/lib/assets/font-css.server.ts +1 -1
  1030. package/src/server/lib/assets/font-faces.ts +1 -1
  1031. package/src/server/lib/assets/fonts.server.ts +1 -1
  1032. package/src/server/lib/assets/theme-shell.server.ts +1 -1
  1033. package/src/server/lib/assets/theme-shell.test.ts +1 -1
  1034. package/src/server/lib/auth/client-address.ts +1 -1
  1035. package/src/server/lib/auth/config.ts +1 -1
  1036. package/src/server/lib/auth/env-password.test.ts +1 -1
  1037. package/src/server/lib/auth/env-password.ts +1 -1
  1038. package/src/server/lib/auth/guard.test.ts +1 -1
  1039. package/src/server/lib/auth/guard.ts +1 -1
  1040. package/src/server/lib/auth/handover-guard.test.ts +1 -1
  1041. package/src/server/lib/auth/rate-limit.test.ts +1 -1
  1042. package/src/server/lib/auth/rate-limit.ts +1 -1
  1043. package/src/server/lib/auth/token.test.ts +1 -1
  1044. package/src/server/lib/auth/token.ts +1 -1
  1045. package/src/server/lib/browser/runtime.test.ts +1 -1
  1046. package/src/server/lib/browser/runtime.ts +1 -1
  1047. package/src/server/lib/btw/child.server.test.ts +1 -1
  1048. package/src/server/lib/btw/child.server.ts +1 -1
  1049. package/src/server/lib/btw/frames.test.ts +1 -1
  1050. package/src/server/lib/btw/frames.ts +1 -1
  1051. package/src/server/lib/btw/lifecycle.server.test.ts +1 -1
  1052. package/src/server/lib/btw/lifecycle.server.ts +1 -1
  1053. package/src/server/lib/btw/prompt.ts +1 -1
  1054. package/src/server/lib/btw/purge.server.ts +1 -1
  1055. package/src/server/lib/btw/registry.server.test.ts +1 -1
  1056. package/src/server/lib/btw/registry.server.ts +1 -1
  1057. package/src/server/lib/btw/reply.ts +1 -1
  1058. package/src/server/lib/btw/runtime.server.test.ts +1 -1
  1059. package/src/server/lib/btw/runtime.server.ts +1 -1
  1060. package/src/server/lib/btw/schema.server.test.ts +17 -5
  1061. package/src/server/lib/btw/schema.server.ts +1 -1
  1062. package/src/server/lib/btw/service.server.test.ts +1 -1
  1063. package/src/server/lib/btw/service.server.ts +1 -1
  1064. package/src/server/lib/btw/session-copy.server.ts +1 -1
  1065. package/src/server/lib/btw/session-copy.test.ts +1 -1
  1066. package/src/server/lib/btw/store.server.test.ts +1 -1
  1067. package/src/server/lib/btw/store.server.ts +1 -1
  1068. package/src/server/lib/bundler/build-errors.server.ts +1 -1
  1069. package/src/server/lib/bundler/build-errors.test.ts +1 -1
  1070. package/src/server/lib/bundler/css.test.ts +1 -1
  1071. package/src/server/lib/bundler/css.ts +1 -1
  1072. package/src/server/lib/bundler/dependencies.test.ts +1 -1
  1073. package/src/server/lib/bundler/nested-at-rules.test.ts +1 -1
  1074. package/src/server/lib/bundler/nested-at-rules.ts +1 -1
  1075. package/src/server/lib/bundler/titlebar-css.test.ts +1 -1
  1076. package/src/server/lib/bundler/tsconfig-paths.test.ts +1 -1
  1077. package/src/server/lib/chat/session-store.server.ts +1 -1
  1078. package/src/server/lib/db/compact-chat-overlay.test.ts +1 -1
  1079. package/src/server/lib/db/compact-chat-overlay.ts +1 -1
  1080. package/src/server/lib/db/schema.test.ts +1 -1
  1081. package/src/server/lib/db/schema.ts +3 -1
  1082. package/src/server/lib/db/seed-terminal.test.ts +1 -1
  1083. package/src/server/lib/db/seed.test.ts +1 -1
  1084. package/src/server/lib/db/seed.ts +1 -1
  1085. package/src/server/lib/db/workspace-sync.test.ts +1 -1
  1086. package/src/server/lib/db/workspace-sync.ts +1 -1
  1087. package/src/server/lib/db/worktree-registry.server.ts +1 -1
  1088. package/src/server/lib/dictation/language.server.test.ts +16 -11
  1089. package/src/server/lib/dictation/language.server.ts +1 -1
  1090. package/src/server/lib/dictation/omp-stt-worker.ts +1 -1
  1091. package/src/server/lib/fs/atomic-write.ts +1 -1
  1092. package/src/server/lib/fs/canonical.ts +1 -1
  1093. package/src/server/lib/fs/child-env.test.ts +1 -1
  1094. package/src/server/lib/fs/child-env.ts +1 -1
  1095. package/src/server/lib/fs/config-lock.ts +1 -1
  1096. package/src/server/lib/fs/external-roots.test.ts +100 -0
  1097. package/src/server/lib/fs/external-roots.ts +101 -0
  1098. package/src/server/lib/fs/fs-path.test.ts +10 -1
  1099. package/src/server/lib/fs/fs-write-git.test.ts +1 -1
  1100. package/src/server/lib/fs/git-actions-branch.ts +16 -3
  1101. package/src/server/lib/fs/git-actions-history.ts +1 -1
  1102. package/src/server/lib/fs/git-actions-shared.ts +25 -1
  1103. package/src/server/lib/fs/git-actions-sync.test.ts +19 -8
  1104. package/src/server/lib/fs/git-actions-worktree.ts +6 -2
  1105. package/src/server/lib/fs/git-actions.ts +1 -1
  1106. package/src/server/lib/fs/git-blame.test.ts +206 -0
  1107. package/src/server/lib/fs/git-blame.ts +189 -0
  1108. package/src/server/lib/fs/git-branch.ts +1 -1
  1109. package/src/server/lib/fs/git-diff.test.ts +1 -1
  1110. package/src/server/lib/fs/git-ignore.ts +1 -1
  1111. package/src/server/lib/fs/git-index-lock.test.ts +1 -1
  1112. package/src/server/lib/fs/git-log-parse.test.ts +1 -1
  1113. package/src/server/lib/fs/git-log.test.ts +1 -1
  1114. package/src/server/lib/fs/git-merge-conflict.test.ts +1 -1
  1115. package/src/server/lib/fs/git-merge.ts +1 -1
  1116. package/src/server/lib/fs/git-porcelain-v2.ts +1 -1
  1117. package/src/server/lib/fs/git-publish.test.ts +1 -1
  1118. package/src/server/lib/fs/git-publish.ts +1 -1
  1119. package/src/server/lib/fs/git-repo-details.test.ts +1 -1
  1120. package/src/server/lib/fs/git-repo-details.ts +1 -1
  1121. package/src/server/lib/fs/git-repos.test.ts +1 -1
  1122. package/src/server/lib/fs/git-repos.ts +1 -1
  1123. package/src/server/lib/fs/git-revert.ts +1 -1
  1124. package/src/server/lib/fs/git-run.ts +5 -3
  1125. package/src/server/lib/fs/git-stash.ts +1 -1
  1126. package/src/server/lib/fs/git-state-verbs.test.ts +1 -1
  1127. package/src/server/lib/fs/git-state.test.ts +1 -1
  1128. package/src/server/lib/fs/git-state.ts +1 -1
  1129. package/src/server/lib/fs/git-status-read.test.ts +1 -1
  1130. package/src/server/lib/fs/git-status-read.ts +1 -1
  1131. package/src/server/lib/fs/git-sync.test.ts +1 -1
  1132. package/src/server/lib/fs/listing.test.ts +1 -1
  1133. package/src/server/lib/fs/listing.ts +1 -1
  1134. package/src/server/lib/fs/path-segment.test.ts +1 -1
  1135. package/src/server/lib/fs/path-segment.ts +1 -1
  1136. package/src/server/lib/fs/relative-path.ts +1 -1
  1137. package/src/server/lib/fs/reveal.ts +1 -1
  1138. package/src/server/lib/fs/ripgrep.test.ts +1 -1
  1139. package/src/server/lib/fs/ripgrep.ts +1 -1
  1140. package/src/server/lib/fs/root-worktree.test.ts +1 -1
  1141. package/src/server/lib/fs/root.ts +14 -0
  1142. package/src/server/lib/fs/shell.ts +10 -3
  1143. package/src/server/lib/fs/transfer.test.ts +1 -1
  1144. package/src/server/lib/fs/transfer.ts +1 -1
  1145. package/src/server/lib/fs/worktree/carry.ts +1 -1
  1146. package/src/server/lib/fs/worktree/create.test.ts +1 -1
  1147. package/src/server/lib/fs/worktree/create.ts +1 -1
  1148. package/src/server/lib/fs/worktree/errors.ts +1 -1
  1149. package/src/server/lib/fs/worktree/list.test.ts +1 -1
  1150. package/src/server/lib/fs/worktree/list.ts +1 -1
  1151. package/src/server/lib/fs/worktree/location.test.ts +1 -1
  1152. package/src/server/lib/fs/worktree/location.ts +1 -1
  1153. package/src/server/lib/fs/worktree/project-id.ts +1 -1
  1154. package/src/server/lib/fs/worktree/remove.test.ts +1 -1
  1155. package/src/server/lib/fs/worktree/remove.ts +1 -1
  1156. package/src/server/lib/fs/worktree/settings.server.ts +1 -1
  1157. package/src/server/lib/fs/worktree/topology.ts +1 -1
  1158. package/src/server/lib/fs/write-conflict.test.ts +1 -1
  1159. package/src/server/lib/fs/write-conflict.ts +1 -1
  1160. package/src/server/lib/http/same-origin.ts +29 -8
  1161. package/src/server/lib/lifecycle/argv-flags.ts +1 -1
  1162. package/src/server/lib/lifecycle/bun.ts +1 -1
  1163. package/src/server/lib/lifecycle/claim-port.test.ts +1 -1
  1164. package/src/server/lib/lifecycle/fd-pressure.ts +1 -1
  1165. package/src/server/lib/lifecycle/flock.test.ts +1 -1
  1166. package/src/server/lib/lifecycle/flock.ts +1 -1
  1167. package/src/server/lib/lifecycle/identity.ts +1 -1
  1168. package/src/server/lib/lifecycle/instance.test.ts +1 -1
  1169. package/src/server/lib/lifecycle/instance.ts +1 -1
  1170. package/src/server/lib/lifecycle/kill-tree.test.ts +1 -1
  1171. package/src/server/lib/lifecycle/kill-tree.ts +1 -1
  1172. package/src/server/lib/lifecycle/launch-mode.ts +1 -1
  1173. package/src/server/lib/lifecycle/listener.ts +1 -1
  1174. package/src/server/lib/lifecycle/memory.test.ts +88 -0
  1175. package/src/server/lib/lifecycle/memory.ts +173 -0
  1176. package/src/server/lib/lifecycle/occupant.ts +1 -1
  1177. package/src/server/lib/lifecycle/paths.ts +1 -1
  1178. package/src/server/lib/lifecycle/port-guard.test.ts +1 -1
  1179. package/src/server/lib/lifecycle/port-guard.ts +1 -1
  1180. package/src/server/lib/lifecycle/probe-health.test.ts +1 -1
  1181. package/src/server/lib/lifecycle/probe.test.ts +1 -1
  1182. package/src/server/lib/lifecycle/probe.ts +1 -1
  1183. package/src/server/lib/lifecycle/proc/darwin.ts +1 -1
  1184. package/src/server/lib/lifecycle/proc/index.ts +1 -1
  1185. package/src/server/lib/lifecycle/proc/linux.ts +1 -1
  1186. package/src/server/lib/lifecycle/proc/proc.test.ts +1 -1
  1187. package/src/server/lib/lifecycle/proc/ps.ts +1 -1
  1188. package/src/server/lib/lifecycle/proc/types.ts +1 -1
  1189. package/src/server/lib/lifecycle/proc/win32.ts +1 -1
  1190. package/src/server/lib/lifecycle/restart.test.ts +1 -1
  1191. package/src/server/lib/lifecycle/restart.ts +1 -1
  1192. package/src/server/lib/lifecycle/shell-route.ts +1 -1
  1193. package/src/server/lib/lifecycle/tls.test.ts +1 -1
  1194. package/src/server/lib/lifecycle/tls.ts +1 -1
  1195. package/src/server/lib/model-roles/catalog.server.test.ts +1 -1
  1196. package/src/server/lib/model-roles/catalog.server.ts +1 -1
  1197. package/src/server/lib/model-roles/mock.server.ts +1 -1
  1198. package/src/server/lib/model-roles/schema.server.ts +1 -1
  1199. package/src/server/lib/model-roles/store.server.test.ts +1 -1
  1200. package/src/server/lib/model-roles/store.server.ts +1 -1
  1201. package/src/server/lib/models/catalog.server.ts +230 -0
  1202. package/src/server/lib/models/catalog.test.ts +83 -0
  1203. package/src/server/lib/models/credential-origin.server.ts +108 -0
  1204. package/src/server/lib/models/credential-origin.test.ts +132 -0
  1205. package/src/server/lib/models/detected-registry.server.ts +1 -1
  1206. package/src/server/lib/models/preferences.server.ts +1 -1
  1207. package/src/server/lib/models/provider-icon-fetch.test.ts +91 -0
  1208. package/src/server/lib/models/provider-icon-fetch.ts +124 -0
  1209. package/src/server/lib/models/provider-icon-parse.test.ts +173 -0
  1210. package/src/server/lib/models/provider-icon-parse.ts +212 -0
  1211. package/src/server/lib/models/provider-icon-store.server.ts +118 -0
  1212. package/src/server/lib/models/provider-icon-store.test.ts +107 -0
  1213. package/src/server/lib/models/provider-icon.server.ts +209 -0
  1214. package/src/server/lib/models/provider-items.server.ts +212 -38
  1215. package/src/server/lib/models/provider-items.test.ts +201 -0
  1216. package/src/server/lib/models/provider-listing.server.test.ts +1 -1
  1217. package/src/server/lib/models/provider-listing.server.ts +1 -1
  1218. package/src/server/lib/models/provider-registry.server.test.ts +28 -10
  1219. package/src/server/lib/models/provider-registry.server.ts +161 -68
  1220. package/src/server/lib/models/registry.server.test.ts +4 -4
  1221. package/src/server/lib/models/registry.server.ts +9 -1
  1222. package/src/server/lib/models/selected-context-limit.server.test.ts +1 -1
  1223. package/src/server/lib/models/selected-context-limit.server.ts +1 -1
  1224. package/src/server/lib/observer-ws.ts +1 -1
  1225. package/src/server/lib/omp/config/agents.ts +1 -1
  1226. package/src/server/lib/omp/config/behavior.ts +1 -1
  1227. package/src/server/lib/omp/config/commands.test.ts +1 -1
  1228. package/src/server/lib/omp/config/commands.ts +1 -1
  1229. package/src/server/lib/omp/config/config-cli.test.ts +1 -1
  1230. package/src/server/lib/omp/config/config-cli.ts +1 -1
  1231. package/src/server/lib/omp/config/definitions.test.ts +10 -10
  1232. package/src/server/lib/omp/config/disabled-providers.ts +1 -1
  1233. package/src/server/lib/omp/config/discovery-roots.test.ts +1 -1
  1234. package/src/server/lib/omp/config/discovery-roots.ts +1 -1
  1235. package/src/server/lib/omp/config/document.test.ts +1 -1
  1236. package/src/server/lib/omp/config/document.ts +1 -1
  1237. package/src/server/lib/omp/config/extensions.ts +1 -1
  1238. package/src/server/lib/omp/config/instructions.ts +1 -1
  1239. package/src/server/lib/omp/config/mcp-and-cli.test.ts +1 -1
  1240. package/src/server/lib/omp/config/mcp-test.ts +1 -1
  1241. package/src/server/lib/omp/config/mcp.ts +1 -1
  1242. package/src/server/lib/omp/config/model-overrides.ts +1 -1
  1243. package/src/server/lib/omp/config/models-config.ts +43 -1
  1244. package/src/server/lib/omp/config/models-validation.test.ts +1 -1
  1245. package/src/server/lib/omp/config/models-validation.ts +1 -1
  1246. package/src/server/lib/omp/config/omp-config-files.test.ts +1 -1
  1247. package/src/server/lib/omp/config/path-scoped.ts +1 -1
  1248. package/src/server/lib/omp/config/plugin-actions.ts +1 -1
  1249. package/src/server/lib/omp/config/plugin-cli.ts +1 -1
  1250. package/src/server/lib/omp/config/plugin-registry.test.ts +1 -1
  1251. package/src/server/lib/omp/config/plugin-registry.ts +1 -1
  1252. package/src/server/lib/omp/config/plugins.test.ts +14 -6
  1253. package/src/server/lib/omp/config/plugins.ts +1 -1
  1254. package/src/server/lib/omp/config/provider-entry.test.ts +205 -0
  1255. package/src/server/lib/omp/config/provider-entry.ts +197 -0
  1256. package/src/server/lib/omp/config/provider-seeds.test.ts +1 -1
  1257. package/src/server/lib/omp/config/provider-seeds.ts +11 -1
  1258. package/src/server/lib/omp/config/providers-write.test.ts +1 -1
  1259. package/src/server/lib/omp/config/providers.ts +1 -1
  1260. package/src/server/lib/omp/config/roles.ts +1 -1
  1261. package/src/server/lib/omp/config/roots-watch.server.test.ts +1 -1
  1262. package/src/server/lib/omp/config/roots-watch.server.ts +1 -1
  1263. package/src/server/lib/omp/config/scope.test.ts +1 -1
  1264. package/src/server/lib/omp/config/scope.ts +1 -1
  1265. package/src/server/lib/omp/config/skills-catalog.ts +1 -1
  1266. package/src/server/lib/omp/config/skills.test.ts +1 -1
  1267. package/src/server/lib/omp/config/skills.ts +1 -1
  1268. package/src/server/lib/omp/config/yaml.ts +1 -1
  1269. package/src/server/lib/omp/core/auth-credentials.ts +1 -1
  1270. package/src/server/lib/omp/core/cli.ts +1 -1
  1271. package/src/server/lib/omp/core/host-resolution.test.ts +1 -1
  1272. package/src/server/lib/omp/core/models-json.ts +69 -0
  1273. package/src/server/lib/omp/core/paths.test.ts +1 -1
  1274. package/src/server/lib/omp/core/paths.ts +1 -1
  1275. package/src/server/lib/omp/core/registry.test.ts +1 -1
  1276. package/src/server/lib/omp/core/registry.ts +1 -1
  1277. package/src/server/lib/omp/core/startup.ts +1 -1
  1278. package/src/server/lib/omp/core/worktree.ts +1 -1
  1279. package/src/server/lib/omp/extensions/locator.test.ts +1 -1
  1280. package/src/server/lib/omp/extensions/locator.ts +1 -1
  1281. package/src/server/lib/omp/mode/command-type.test.ts +1 -1
  1282. package/src/server/lib/omp/mode/live-selection.test.ts +1 -1
  1283. package/src/server/lib/omp/mode/live-selection.ts +1 -1
  1284. package/src/server/lib/omp/mode/request.test.ts +1 -1
  1285. package/src/server/lib/omp/mode/request.ts +1 -1
  1286. package/src/server/lib/omp/rpc/agent-start-watchdog.ts +1 -1
  1287. package/src/server/lib/omp/rpc/child-config.ts +1 -1
  1288. package/src/server/lib/omp/rpc/constants.test.ts +1 -1
  1289. package/src/server/lib/omp/rpc/constants.ts +1 -1
  1290. package/src/server/lib/omp/rpc/destroy-stream-row.test.ts +1 -1
  1291. package/src/server/lib/omp/rpc/errors.ts +1 -1
  1292. package/src/server/lib/omp/rpc/event-fanout.ts +1 -1
  1293. package/src/server/lib/omp/rpc/forked-resume.test.ts +1 -1
  1294. package/src/server/lib/omp/rpc/frame-fold-signals.test.ts +1 -1
  1295. package/src/server/lib/omp/rpc/frame-fold.test.ts +1 -1
  1296. package/src/server/lib/omp/rpc/frame-fold.ts +1 -1
  1297. package/src/server/lib/omp/rpc/idle-reaper.ts +1 -1
  1298. package/src/server/lib/omp/rpc/lifecycle.test.ts +1 -1
  1299. package/src/server/lib/omp/rpc/lines.ts +1 -1
  1300. package/src/server/lib/omp/rpc/manager.ts +1 -1
  1301. package/src/server/lib/omp/rpc/mode-mirror.test.ts +1 -1
  1302. package/src/server/lib/omp/rpc/mode-mirror.ts +1 -1
  1303. package/src/server/lib/omp/rpc/peer-proxy.server.test.ts +1 -1
  1304. package/src/server/lib/omp/rpc/peer-proxy.server.ts +1 -1
  1305. package/src/server/lib/omp/rpc/pending-ui-dialogs.ts +1 -1
  1306. package/src/server/lib/omp/rpc/prewarm-pool.ts +1 -1
  1307. package/src/server/lib/omp/rpc/process-helpers.ts +2 -2
  1308. package/src/server/lib/omp/rpc/process.ts +6 -6
  1309. package/src/server/lib/omp/rpc/reload-plugins.ts +1 -1
  1310. package/src/server/lib/omp/rpc/rpc-primitives.test.ts +1 -1
  1311. package/src/server/lib/omp/rpc/rpc-timers.test.ts +1 -1
  1312. package/src/server/lib/omp/rpc/run-model.ts +1 -1
  1313. package/src/server/lib/omp/rpc/run-settle.server.ts +1 -1
  1314. package/src/server/lib/omp/rpc/run-settle.test.ts +1 -1
  1315. package/src/server/lib/omp/rpc/session-command-guards.ts +1 -1
  1316. package/src/server/lib/omp/rpc/session-commands-dialog.test.ts +2 -2
  1317. package/src/server/lib/omp/rpc/session-commands-harness.ts +1 -1
  1318. package/src/server/lib/omp/rpc/session-commands.test.ts +1 -1
  1319. package/src/server/lib/omp/rpc/session-commands.ts +1 -1
  1320. package/src/server/lib/omp/rpc/session-registration.ts +1 -1
  1321. package/src/server/lib/omp/rpc/session-registry.test.ts +1 -1
  1322. package/src/server/lib/omp/rpc/session-registry.ts +1 -1
  1323. package/src/server/lib/omp/rpc/spawn-provenance.ts +1 -1
  1324. package/src/server/lib/omp/rpc/stream-reader.test.ts +1 -1
  1325. package/src/server/lib/omp/rpc/subagent-liveness.test.ts +1 -1
  1326. package/src/server/lib/omp/rpc/subagent-liveness.ts +1 -1
  1327. package/src/server/lib/omp/rpc/terminal-settle.ts +1 -1
  1328. package/src/server/lib/omp/rpc/utility.test.ts +1 -1
  1329. package/src/server/lib/omp/rpc/utility.ts +1 -1
  1330. package/src/server/lib/omp/rpc/web-state.ts +1 -1
  1331. package/src/server/lib/omp/session/artifacts.server.test.ts +1 -1
  1332. package/src/server/lib/omp/session/artifacts.server.ts +1 -1
  1333. package/src/server/lib/omp/session/auto-title.server.test.ts +1 -1
  1334. package/src/server/lib/omp/session/auto-title.server.ts +1 -1
  1335. package/src/server/lib/omp/session/blobs.server.test.ts +1 -1
  1336. package/src/server/lib/omp/session/blobs.server.ts +1 -1
  1337. package/src/server/lib/omp/session/data-mock.ts +1 -1
  1338. package/src/server/lib/omp/session/delete-flow.server.ts +1 -1
  1339. package/src/server/lib/omp/session/delete.server.ts +1 -1
  1340. package/src/server/lib/omp/session/file-scan.ts +1 -1
  1341. package/src/server/lib/omp/session/files.test.ts +1 -1
  1342. package/src/server/lib/omp/session/files.ts +1 -1
  1343. package/src/server/lib/omp/session/goal-auditor.server.ts +1 -1
  1344. package/src/server/lib/omp/session/goal-auditor.test.ts +1 -1
  1345. package/src/server/lib/omp/session/goal-driver.server.ts +1 -1
  1346. package/src/server/lib/omp/session/goal-driver.test.ts +1 -1
  1347. package/src/server/lib/omp/session/goal-settings.server.ts +1 -1
  1348. package/src/server/lib/omp/session/goal-settings.test.ts +1 -1
  1349. package/src/server/lib/omp/session/jsonl-tail.test.ts +151 -0
  1350. package/src/server/lib/omp/session/jsonl-tail.ts +67 -0
  1351. package/src/server/lib/omp/session/lease-flock.server.ts +1 -1
  1352. package/src/server/lib/omp/session/lease-holder.server.ts +1 -1
  1353. package/src/server/lib/omp/session/local-runs.server.ts +1 -1
  1354. package/src/server/lib/omp/session/locator.ts +1 -1
  1355. package/src/server/lib/omp/session/merge-stored-anchor.test.ts +1 -1
  1356. package/src/server/lib/omp/session/merge-stored-notices.test.ts +1 -1
  1357. package/src/server/lib/omp/session/merge-stored-overlay-rows.test.ts +1 -1
  1358. package/src/server/lib/omp/session/merge-stored.test.ts +1 -1
  1359. package/src/server/lib/omp/session/merge-stored.ts +1 -1
  1360. package/src/server/lib/omp/session/messages.test.ts +1 -1
  1361. package/src/server/lib/omp/session/messages.ts +61 -25
  1362. package/src/server/lib/omp/session/modes.test.ts +1 -1
  1363. package/src/server/lib/omp/session/modes.ts +1 -1
  1364. package/src/server/lib/omp/session/ownership.server.test.ts +1 -1
  1365. package/src/server/lib/omp/session/ownership.server.ts +1 -1
  1366. package/src/server/lib/omp/session/plan-mode-env.test.ts +1 -1
  1367. package/src/server/lib/omp/session/plans.test.ts +1 -1
  1368. package/src/server/lib/omp/session/plans.ts +1 -1
  1369. package/src/server/lib/omp/session/reader.ts +1 -1
  1370. package/src/server/lib/omp/session/reload.server.test.ts +1 -1
  1371. package/src/server/lib/omp/session/reload.server.ts +1 -1
  1372. package/src/server/lib/omp/session/rename-with-ai.server.test.ts +1 -1
  1373. package/src/server/lib/omp/session/rename-with-ai.server.ts +1 -1
  1374. package/src/server/lib/omp/session/resumable-model.recovery.test.ts +1 -1
  1375. package/src/server/lib/omp/session/resumable-model.server.test.ts +1 -1
  1376. package/src/server/lib/omp/session/resumable-model.server.ts +1 -1
  1377. package/src/server/lib/omp/session/rewind-file.test.ts +1 -1
  1378. package/src/server/lib/omp/session/rewind-file.ts +1 -1
  1379. package/src/server/lib/omp/session/scan.ts +1 -1
  1380. package/src/server/lib/omp/session/session-discovery.test.ts +1 -1
  1381. package/src/server/lib/omp/session/session-reads.test.ts +1 -1
  1382. package/src/server/lib/omp/session/sessions-watch.server.ts +1 -1
  1383. package/src/server/lib/omp/session/sidebar-activity.server.test.ts +1 -1
  1384. package/src/server/lib/omp/session/sidebar-activity.server.ts +1 -1
  1385. package/src/server/lib/omp/session/sidebar-data.canonical.test.ts +14 -4
  1386. package/src/server/lib/omp/session/sidebar-data.server.ts +1 -1
  1387. package/src/server/lib/omp/session/standby.server.test.ts +1 -1
  1388. package/src/server/lib/omp/session/standby.server.ts +1 -1
  1389. package/src/server/lib/omp/session/subagent-presence.ts +1 -1
  1390. package/src/server/lib/omp/session/telemetry/scan.ts +1 -1
  1391. package/src/server/lib/omp/session/telemetry-raw.ts +1 -1
  1392. package/src/server/lib/omp/session/telemetry.test.ts +1 -1
  1393. package/src/server/lib/omp/session/title-model-overlay.server.test.ts +1 -1
  1394. package/src/server/lib/omp/session/title-model-overlay.server.ts +1 -1
  1395. package/src/server/lib/omp/session/title-request.server.test.ts +1 -1
  1396. package/src/server/lib/omp/session/title-request.server.ts +1 -1
  1397. package/src/server/lib/omp/session/title-slot.ts +1 -1
  1398. package/src/server/lib/omp/session/todos.ts +1 -1
  1399. package/src/server/lib/omp/session/usage/aggregate-shaping.test.ts +1 -1
  1400. package/src/server/lib/omp/session/usage/aggregate.test.ts +1 -1
  1401. package/src/server/lib/omp/session/usage/aggregate.ts +1 -1
  1402. package/src/server/lib/omp/session/usage/shaping.ts +1 -1
  1403. package/src/server/lib/omp/subagent/history/fold.ts +1 -1
  1404. package/src/server/lib/omp/subagent/history/index.ts +1 -1
  1405. package/src/server/lib/omp/subagent/history/paths.ts +1 -1
  1406. package/src/server/lib/omp/subagent/history/transcript.test.ts +1 -1
  1407. package/src/server/lib/omp/subagent/history/transcript.ts +1 -1
  1408. package/src/server/lib/panels/assets.server.ts +1 -1
  1409. package/src/server/lib/panels/auto-update.server.test.ts +1 -1
  1410. package/src/server/lib/panels/auto-update.server.ts +1 -1
  1411. package/src/server/lib/panels/baseline.server.test.ts +1 -1
  1412. package/src/server/lib/panels/baseline.server.ts +1 -1
  1413. package/src/server/lib/panels/build-targets.server.ts +1 -1
  1414. package/src/server/lib/panels/build.server.test.ts +1 -1
  1415. package/src/server/lib/panels/build.server.ts +1 -1
  1416. package/src/server/lib/panels/bundled-catalog.server.ts +8 -1
  1417. package/src/server/lib/panels/catalog-offers.server.ts +68 -0
  1418. package/src/server/lib/panels/catalog.server.test.ts +1 -1
  1419. package/src/server/lib/panels/catalog.server.ts +1 -1
  1420. package/src/server/lib/panels/compat.server.test.ts +1 -1
  1421. package/src/server/lib/panels/compat.server.ts +1 -1
  1422. package/src/server/lib/panels/files.server.test.ts +1 -1
  1423. package/src/server/lib/panels/files.server.ts +1 -1
  1424. package/src/server/lib/panels/git-clone.server.ts +1 -1
  1425. package/src/server/lib/panels/git-status.server.ts +1 -1
  1426. package/src/server/lib/panels/git-update.server.test.ts +15 -1
  1427. package/src/server/lib/panels/git-update.server.ts +64 -2
  1428. package/src/server/lib/panels/install.server.test.ts +1 -1
  1429. package/src/server/lib/panels/install.server.ts +1 -1
  1430. package/src/server/lib/panels/link.server.ts +1 -1
  1431. package/src/server/lib/panels/local-edits.server.test.ts +1 -1
  1432. package/src/server/lib/panels/local-edits.server.ts +1 -1
  1433. package/src/server/lib/panels/manifest.test.ts +66 -1
  1434. package/src/server/lib/panels/manifest.ts +56 -2
  1435. package/src/server/lib/panels/offers.server.test.ts +191 -0
  1436. package/src/server/lib/panels/offers.server.ts +108 -0
  1437. package/src/server/lib/panels/registry-bundled.server.test.ts +1 -1
  1438. package/src/server/lib/panels/registry.server.test.ts +36 -2
  1439. package/src/server/lib/panels/registry.server.ts +52 -143
  1440. package/src/server/lib/panels/remove.server.test.ts +1 -1
  1441. package/src/server/lib/panels/scan.server.ts +162 -0
  1442. package/src/server/lib/panels/seed.server.ts +1 -1
  1443. package/src/server/lib/panels/shim.test.ts +1 -1
  1444. package/src/server/lib/panels/shim.ts +1 -1
  1445. package/src/server/lib/panels/state.server.test.ts +1 -1
  1446. package/src/server/lib/panels/state.server.ts +1 -1
  1447. package/src/server/lib/panels/sync.fixture.test-util.ts +1 -1
  1448. package/src/server/lib/panels/sync.local-edits.test.ts +1 -1
  1449. package/src/server/lib/panels/sync.server.test.ts +1 -1
  1450. package/src/server/lib/panels/sync.server.ts +1 -1
  1451. package/src/server/lib/plugins/background.server.ts +1 -1
  1452. package/src/server/lib/plugins/background.test.ts +1 -1
  1453. package/src/server/lib/plugins/build-server.test.ts +15 -7
  1454. package/src/server/lib/plugins/e2e.test.ts +1 -1
  1455. package/src/server/lib/plugins/events.server.ts +1 -1
  1456. package/src/server/lib/plugins/http.server.ts +1 -1
  1457. package/src/server/lib/plugins/loader.server.ts +51 -16
  1458. package/src/server/lib/plugins/log.server.ts +1 -1
  1459. package/src/server/lib/plugins/platform.test.ts +1 -1
  1460. package/src/server/lib/plugins/realtime.server.ts +1 -1
  1461. package/src/server/lib/plugins/rpc.server.ts +1 -1
  1462. package/src/server/lib/plugins/schema.server.ts +1 -1
  1463. package/src/server/lib/plugins/settings.server.ts +1 -1
  1464. package/src/server/lib/plugins/shutdown.test.ts +1 -1
  1465. package/src/server/lib/plugins/storage.server.ts +1 -1
  1466. package/src/server/lib/queue/delivery-dispatch.server.test.ts +1 -1
  1467. package/src/server/lib/queue/delivery-harness.ts +1 -1
  1468. package/src/server/lib/queue/delivery.server.test.ts +1 -1
  1469. package/src/server/lib/queue/delivery.server.ts +1 -1
  1470. package/src/server/lib/queue/payload.ts +1 -1
  1471. package/src/server/lib/queue/schema-migration.server.ts +1 -1
  1472. package/src/server/lib/queue/store.server.test.ts +1 -1
  1473. package/src/server/lib/queue/store.server.ts +1 -1
  1474. package/src/server/lib/realtime/hub.server.test.ts +1 -1
  1475. package/src/server/lib/realtime/hub.server.ts +1 -1
  1476. package/src/server/lib/realtime/hub.types.ts +1 -1
  1477. package/src/server/lib/realtime/signals.server.ts +1 -1
  1478. package/src/server/lib/realtime/topics/btw.server.ts +1 -1
  1479. package/src/server/lib/realtime/topics/catalog.server.ts +1 -1
  1480. package/src/server/lib/realtime/topics/global.server.test.ts +1 -1
  1481. package/src/server/lib/realtime/topics/global.server.ts +1 -1
  1482. package/src/server/lib/realtime/topics/peer-relay.server.test.ts +1 -1
  1483. package/src/server/lib/realtime/topics/peer-relay.server.ts +1 -1
  1484. package/src/server/lib/realtime/topics/plugin.server.ts +1 -1
  1485. package/src/server/lib/realtime/topics/session-data.server.ts +1 -1
  1486. package/src/server/lib/realtime/topics/session.server.ts +1 -1
  1487. package/src/server/lib/realtime/topics/workspace.server.ts +1 -1
  1488. package/src/server/lib/realtime/topics.server.test.ts +1 -1
  1489. package/src/server/lib/realtime/topics.server.ts +1 -1
  1490. package/src/server/lib/route-adapter.test.ts +1 -1
  1491. package/src/server/lib/route-adapter.ts +13 -2
  1492. package/src/server/lib/schedule/rows.server.ts +1 -1
  1493. package/src/server/lib/schedule/runtime.server.test.ts +1 -1
  1494. package/src/server/lib/schedule/runtime.server.ts +1 -1
  1495. package/src/server/lib/schedule/schema.server.ts +1 -1
  1496. package/src/server/lib/schedule/store.server.test.ts +1 -1
  1497. package/src/server/lib/schedule/store.server.ts +1 -1
  1498. package/src/server/lib/sse.ts +1 -1
  1499. package/src/server/lib/terminal/foreground.test.ts +1 -1
  1500. package/src/server/lib/terminal/foreground.ts +1 -1
  1501. package/src/server/lib/terminal/history.test.ts +1 -1
  1502. package/src/server/lib/terminal/history.ts +1 -1
  1503. package/src/server/lib/terminal/liveness.server.ts +1 -1
  1504. package/src/server/lib/terminal/runtime.server.ts +1 -1
  1505. package/src/server/lib/terminal/session.server.ts +3 -2
  1506. package/src/server/lib/terminal/shell.test.ts +1 -1
  1507. package/src/server/lib/terminal/shell.ts +1 -1
  1508. package/src/server/lib/terminal/spawn.test.ts +1 -1
  1509. package/src/server/lib/terminal/spawn.ts +1 -1
  1510. package/src/server/lib/terminal/store-liveness.test.ts +1 -1
  1511. package/src/server/lib/terminal/store.ts +1 -1
  1512. package/src/server/lib/tray/autostart.ts +1 -1
  1513. package/src/server/lib/tray/config.ts +1 -1
  1514. package/src/server/lib/tray/credential.test.ts +1 -1
  1515. package/src/server/lib/tray/credential.ts +1 -1
  1516. package/src/server/lib/tray/entry.ts +1 -1
  1517. package/src/server/lib/tray/hosts.ts +1 -1
  1518. package/src/server/lib/tray/runtime.server.ts +1 -1
  1519. package/src/server/lib/tray/tray.test.ts +2 -1
  1520. package/src/server/lib/updates/changelog.test.ts +1 -1
  1521. package/src/server/lib/updates/install-steps.ts +1 -1
  1522. package/src/server/lib/updates/installed-cli.test.ts +1 -1
  1523. package/src/server/lib/updates/installed-cli.ts +1 -1
  1524. package/src/server/lib/updates/npm.test.ts +1 -1
  1525. package/src/server/lib/updates/omp.test.ts +20 -5
  1526. package/src/server/lib/updates/shell-assets.test.ts +1 -1
  1527. package/src/server/lib/updates/shell-cache.ts +1 -1
  1528. package/src/server/lib/updates/shell-pages.test.ts +1 -1
  1529. package/src/server/lib/updates/shell-release-desktop.test.ts +1 -1
  1530. package/src/server/lib/updates/shell-release.test.ts +1 -1
  1531. package/src/server/lib/updates/shell-release.ts +1 -1
  1532. package/src/server/lib/usage/kenari-accounts.test.ts +1 -1
  1533. package/src/server/lib/usage/kenari.test.ts +1 -1
  1534. package/src/server/lib/usage/omp-usage.server.test.ts +1 -1
  1535. package/src/server/lib/usage/omp-usage.server.ts +1 -1
  1536. package/src/server/lib/usage/provider-key.test.ts +1 -1
  1537. package/src/server/lib/usage/providers.server.test.ts +1 -1
  1538. package/src/server/lib/usage/providers.server.ts +5 -2
  1539. package/src/server/lib/usage/report.server.ts +1 -1
  1540. package/src/server/lib/usage/reset.server.test.ts +18 -6
  1541. package/src/server/lib/usage/reset.server.ts +1 -1
  1542. package/src/server/lib/usage/vendor-balance.server.test.ts +1 -1
  1543. package/src/server/lib/usage/vendor-balance.server.ts +1 -1
  1544. package/src/server/lib/util/with-timeout.ts +1 -1
  1545. package/src/server/lib/waiting/row-clock.server.ts +1 -1
  1546. package/src/server/lib/waiting/runtime.server.test.ts +1 -1
  1547. package/src/server/lib/waiting/runtime.server.ts +1 -1
  1548. package/src/server/lib/waiting/schema.server.ts +1 -1
  1549. package/src/server/lib/waiting/settle.test.ts +1 -1
  1550. package/src/server/lib/waiting/settle.ts +1 -1
  1551. package/src/server/lib/waiting/store.server.test.ts +1 -1
  1552. package/src/server/lib/waiting/store.server.ts +1 -1
  1553. package/src/server/lib/waiting/sweep-trigger.ts +1 -1
  1554. package/src/server/lib/wiki/git.test.ts +1 -1
  1555. package/src/server/lib/wiki/git.ts +1 -1
  1556. package/src/server/lib/wiki/mirror-reads.test.ts +1 -1
  1557. package/src/server/lib/wiki/mirror.server.ts +1 -1
  1558. package/src/server/lib/wiki/payload.server.ts +1 -1
  1559. package/src/server/lib/wiki/provider.server.ts +1 -1
  1560. package/src/server/lib/wiki/remote.test.ts +1 -1
  1561. package/src/server/lib/wiki/remote.ts +1 -1
  1562. package/src/server/lib/workspace/register-folder.server.ts +1 -1
  1563. package/src/server/mock.server.ts +1 -1
  1564. package/src/server/plugins/compress.ts +7 -6
  1565. package/src/server/plugins/shell.server.test.ts +1 -1
  1566. package/src/server/plugins/shell.server.ts +1 -1
  1567. package/src/server/plugins/static.test.ts +5 -2
  1568. package/src/server/plugins/static.ts +2 -1
  1569. package/src/server/routes/agent/command.test.ts +1 -1
  1570. package/src/server/routes/auth/login.ts +1 -1
  1571. package/src/server/routes/auth/logout.ts +1 -1
  1572. package/src/server/routes/auth/password.ts +1 -1
  1573. package/src/server/routes/auth/revoke.test.ts +1 -1
  1574. package/src/server/routes/auth/revoke.ts +1 -1
  1575. package/src/server/routes/auth/routes.test.ts +1 -1
  1576. package/src/server/routes/auth/state.ts +1 -1
  1577. package/src/server/routes/browser/stream.test.ts +1 -1
  1578. package/src/server/routes/browser/stream.ts +1 -1
  1579. package/src/server/routes/btw/topics.ts +1 -1
  1580. package/src/server/routes/chat/session.ts +7 -1
  1581. package/src/server/routes/chat/stream.test.ts +1 -1
  1582. package/src/server/routes/chat/turns.ts +1 -1
  1583. package/src/server/routes/console/restart.test.ts +1 -1
  1584. package/src/server/routes/console/restart.ts +1 -1
  1585. package/src/server/routes/dictation/ws.ts +1 -1
  1586. package/src/server/routes/folders/batch-delete.ts +1 -1
  1587. package/src/server/routes/folders/clone.test.ts +1 -1
  1588. package/src/server/routes/folders/clone.ts +1 -1
  1589. package/src/server/routes/folders/create.ts +1 -1
  1590. package/src/server/routes/folders/mkdir.ts +1 -1
  1591. package/src/server/routes/folders/routes.test.ts +1 -1
  1592. package/src/server/routes/fs/action-create.test.ts +1 -1
  1593. package/src/server/routes/fs/action-nested.test.ts +1 -1
  1594. package/src/server/routes/fs/action-save-as.test.ts +1 -1
  1595. package/src/server/routes/fs/action-transfer.test.ts +1 -1
  1596. package/src/server/routes/fs/action.test.ts +1 -1
  1597. package/src/server/routes/fs/exists.test.ts +1 -1
  1598. package/src/server/routes/fs/exists.ts +1 -1
  1599. package/src/server/routes/fs/git-action.test.ts +1 -1
  1600. package/src/server/routes/fs/git-blame-loader.test.ts +146 -0
  1601. package/src/server/routes/fs/git-branch.test.ts +1 -1
  1602. package/src/server/routes/fs/git-init-action.test.ts +1 -1
  1603. package/src/server/routes/fs/git-loader.test.ts +1 -1
  1604. package/src/server/routes/fs/git-merge.test.ts +1 -1
  1605. package/src/server/routes/fs/git-repo-details.test.ts +1 -1
  1606. package/src/server/routes/fs/git-stash.test.ts +1 -1
  1607. package/src/server/routes/fs/git.ts +18 -1
  1608. package/src/server/routes/fs/grant.test.ts +135 -0
  1609. package/src/server/routes/fs/grant.ts +79 -0
  1610. package/src/server/routes/fs/index.ts +2 -0
  1611. package/src/server/routes/fs/raw.test.ts +1 -1
  1612. package/src/server/routes/fs/raw.ts +1 -1
  1613. package/src/server/routes/fs/read.test.ts +1 -1
  1614. package/src/server/routes/fs/read.ts +1 -1
  1615. package/src/server/routes/fs/scope.test.ts +1 -1
  1616. package/src/server/routes/fs/scope.ts +35 -18
  1617. package/src/server/routes/fs/search.test.ts +1 -1
  1618. package/src/server/routes/fs/validate.ts +1 -1
  1619. package/src/server/routes/health/probe.test.ts +71 -0
  1620. package/src/server/routes/health/probe.ts +11 -0
  1621. package/src/server/routes/omp/artifact.ts +1 -1
  1622. package/src/server/routes/omp/blob.ts +3 -2
  1623. package/src/server/routes/omp/login.ts +42 -15
  1624. package/src/server/routes/omp/reload-engine.ts +1 -1
  1625. package/src/server/routes/omp/routes.test.ts +24 -11
  1626. package/src/server/routes/panels/bindings.ts +1 -1
  1627. package/src/server/routes/panels/build.ts +1 -1
  1628. package/src/server/routes/panels/bundle.ts +1 -1
  1629. package/src/server/routes/panels/css.test.ts +1 -1
  1630. package/src/server/routes/panels/css.ts +1 -1
  1631. package/src/server/routes/panels/icon.ts +1 -1
  1632. package/src/server/routes/panels/install.ts +1 -1
  1633. package/src/server/routes/panels/panel-routes.test-util.ts +1 -1
  1634. package/src/server/routes/panels/readme.ts +1 -1
  1635. package/src/server/routes/panels/registry.ts +1 -1
  1636. package/src/server/routes/panels/routes.test.ts +1 -1
  1637. package/src/server/routes/panels/server-half.test.ts +1 -1
  1638. package/src/server/routes/plugins/bindings.ts +1 -1
  1639. package/src/server/routes/plugins/http.ts +1 -1
  1640. package/src/server/routes/plugins/routes.test.ts +1 -1
  1641. package/src/server/routes/plugins/rpc.ts +1 -1
  1642. package/src/server/routes/plugins/state.ts +1 -1
  1643. package/src/server/routes/realtime/ws.ts +1 -1
  1644. package/src/server/routes/schedule/body.ts +1 -1
  1645. package/src/server/routes/schedule/index.ts +1 -1
  1646. package/src/server/routes/schedule/runs.ts +1 -1
  1647. package/src/server/routes/sessions/batch-delete.test.ts +1 -1
  1648. package/src/server/routes/sessions/batch-delete.ts +1 -1
  1649. package/src/server/routes/sessions/delete.test.ts +1 -1
  1650. package/src/server/routes/sessions/delete.ts +1 -1
  1651. package/src/server/routes/sessions/list.ts +1 -1
  1652. package/src/server/routes/sessions/queue.ts +1 -1
  1653. package/src/server/routes/sessions/routes-queue.test.ts +1 -1
  1654. package/src/server/routes/sessions/routes-read.test.ts +1 -1
  1655. package/src/server/routes/sessions/routes.test.ts +1 -1
  1656. package/src/server/routes/sessions/subagent-control.ts +1 -1
  1657. package/src/server/routes/settings/index.ts +8 -0
  1658. package/src/server/routes/settings/provider-entry.ts +108 -0
  1659. package/src/server/routes/settings/provider-icon.ts +100 -0
  1660. package/src/server/routes/settings/provider-logout.test.ts +1 -1
  1661. package/src/server/routes/settings/provider-logout.ts +1 -1
  1662. package/src/server/routes/settings/provider-model.ts +4 -1
  1663. package/src/server/routes/settings/provider-refresh.ts +87 -0
  1664. package/src/server/routes/settings/providers.ts +31 -2
  1665. package/src/server/routes/settings/settings-config-routes.test.ts +1 -1
  1666. package/src/server/routes/settings/settings-store-routes.test.ts +1 -1
  1667. package/src/server/routes/terminal/sessions.ts +1 -1
  1668. package/src/server/routes/terminal/ws.ts +1 -1
  1669. package/src/server/routes/updates/routes.test.ts +1 -1
  1670. package/src/server/routes/waiting/index.ts +1 -1
  1671. package/src/server/routes/waiting/routes.test.ts +1 -1
  1672. package/src/server/routes/wiki/asset.ts +3 -2
  1673. package/src/server/routes/wiki/index.ts +1 -1
  1674. package/src/server/routes/wiki/page.ts +1 -1
  1675. package/src/server/routes/wiki/repo.ts +1 -1
  1676. package/src/server/routes/worktrees/create.ts +1 -1
  1677. package/src/server/routes/worktrees/list.ts +1 -1
  1678. package/src/server/routes/worktrees/remove.ts +1 -1
  1679. package/src/server/routes/worktrees/routes.test.ts +1 -1
  1680. package/src/server/routes/worktrees/shared.ts +1 -1
  1681. package/src/shared/lib/auth/handover.test.ts +1 -1
  1682. package/src/shared/lib/auth/handover.ts +1 -1
  1683. package/src/shared/lib/auth/password.ts +1 -1
  1684. package/src/shared/lib/browser/activity.ts +1 -1
  1685. package/src/shared/lib/browser/browser-cdp.test.ts +1 -1
  1686. package/src/shared/lib/browser/browser-helpers.test.ts +1 -1
  1687. package/src/shared/lib/browser/browser-viewer.test.ts +5 -2
  1688. package/src/shared/lib/browser/browser-watcher.test.ts +1 -1
  1689. package/src/shared/lib/browser/cdp.ts +1 -1
  1690. package/src/shared/lib/browser/connection.ts +1 -1
  1691. package/src/shared/lib/browser/observer.ts +1 -1
  1692. package/src/shared/lib/browser/page-context.ts +1 -1
  1693. package/src/shared/lib/browser/targets.test.ts +1 -1
  1694. package/src/shared/lib/browser/targets.ts +1 -1
  1695. package/src/shared/lib/browser/url.ts +1 -1
  1696. package/src/shared/lib/browser/util.ts +1 -1
  1697. package/src/shared/lib/browser/viewer.ts +17 -4
  1698. package/src/shared/lib/browser/watcher.ts +1 -1
  1699. package/src/shared/lib/chat/ask-questions.test.ts +1 -1
  1700. package/src/shared/lib/chat/ask-questions.ts +1 -1
  1701. package/src/shared/lib/chat/attachments.test.ts +1 -1
  1702. package/src/shared/lib/chat/attachments.ts +1 -1
  1703. package/src/shared/lib/chat/btw/client.ts +1 -1
  1704. package/src/shared/lib/chat/chat-display.test.ts +1 -1
  1705. package/src/shared/lib/chat/composer/client.test.ts +1 -1
  1706. package/src/shared/lib/chat/composer/commands.test.ts +1 -1
  1707. package/src/shared/lib/chat/composer/composer.test.ts +1 -1
  1708. package/src/shared/lib/chat/composer/draft.ts +1 -1
  1709. package/src/shared/lib/chat/composer/filter.test.ts +1 -1
  1710. package/src/shared/lib/chat/composer/keybindings.test.ts +1 -1
  1711. package/src/shared/lib/chat/composer/keybindings.ts +1 -1
  1712. package/src/shared/lib/chat/composer/owned-commands.test.ts +1 -1
  1713. package/src/shared/lib/chat/composer/scope.test.ts +1 -1
  1714. package/src/shared/lib/chat/composer/translate.test.ts +1 -1
  1715. package/src/shared/lib/chat/composer/trigger.test.ts +1 -1
  1716. package/src/shared/lib/chat/composer/tui-only.test.ts +1 -1
  1717. package/src/shared/lib/chat/composer/tui-only.ts +1 -1
  1718. package/src/shared/lib/chat/context/usage.test.ts +1 -1
  1719. package/src/shared/lib/chat/context/usage.ts +1 -1
  1720. package/src/shared/lib/chat/duration.ts +1 -1
  1721. package/src/shared/lib/chat/excerpt.ts +1 -1
  1722. package/src/shared/lib/chat/new-chat-seed.test.ts +1 -1
  1723. package/src/shared/lib/chat/new-chat-seed.ts +1 -1
  1724. package/src/shared/lib/chat/notice-row.test.ts +1 -1
  1725. package/src/shared/lib/chat/notice-row.ts +1 -1
  1726. package/src/shared/lib/chat/notice-text.ts +1 -1
  1727. package/src/shared/lib/chat/omp/abort.ts +1 -1
  1728. package/src/shared/lib/chat/omp/agent-events.test.ts +1 -1
  1729. package/src/shared/lib/chat/omp/agent-events.ts +1 -1
  1730. package/src/shared/lib/chat/omp/approval-gate.test.ts +1 -1
  1731. package/src/shared/lib/chat/omp/approval-gate.ts +1 -1
  1732. package/src/shared/lib/chat/omp/available-commands-cache.test.ts +1 -1
  1733. package/src/shared/lib/chat/omp/command-output-ansi.test.ts +1 -1
  1734. package/src/shared/lib/chat/omp/fold-deps.ts +1 -1
  1735. package/src/shared/lib/chat/omp/fold.test.ts +35 -1
  1736. package/src/shared/lib/chat/omp/mode-marker.test.ts +1 -1
  1737. package/src/shared/lib/chat/omp/status.ts +1 -1
  1738. package/src/shared/lib/chat/omp/subagent-frames.ts +1 -1
  1739. package/src/shared/lib/chat/omp/terminal-messages.ts +1 -1
  1740. package/src/shared/lib/chat/omp/tool-details.test.ts +1 -1
  1741. package/src/shared/lib/chat/omp/tool-frames.test.ts +21 -1
  1742. package/src/shared/lib/chat/omp/tool-frames.ts +6 -2
  1743. package/src/shared/lib/chat/omp/tool-results.ts +30 -4
  1744. package/src/shared/lib/chat/omp/transport-frames.test.ts +1 -1
  1745. package/src/shared/lib/chat/omp/transport-frames.ts +1 -1
  1746. package/src/shared/lib/chat/read-sse.ts +1 -1
  1747. package/src/shared/lib/chat/text-file.ts +1 -1
  1748. package/src/shared/lib/chat/timeline/command-output.ts +1 -1
  1749. package/src/shared/lib/chat/timeline/gutter.test.ts +1 -1
  1750. package/src/shared/lib/chat/timeline/gutter.ts +1 -1
  1751. package/src/shared/lib/chat/timeline/omp-callbacks.test.ts +1 -1
  1752. package/src/shared/lib/chat/timeline/omp-callbacks.ts +1 -1
  1753. package/src/shared/lib/chat/timeline/provider-retry.test.ts +1 -1
  1754. package/src/shared/lib/chat/timeline/provider-retry.ts +1 -1
  1755. package/src/shared/lib/chat/timeline/row-window.test.ts +161 -0
  1756. package/src/shared/lib/chat/timeline/row-window.ts +182 -0
  1757. package/src/shared/lib/chat/timeline/run-footer.test.ts +1 -1
  1758. package/src/shared/lib/chat/timeline/run-footer.ts +1 -1
  1759. package/src/shared/lib/chat/timeline/run-signals.test.ts +1 -1
  1760. package/src/shared/lib/chat/timeline/run-signals.ts +1 -1
  1761. package/src/shared/lib/chat/timeline/steer-report.ts +1 -1
  1762. package/src/shared/lib/chat/timeline/stream-callbacks.ts +1 -1
  1763. package/src/shared/lib/chat/timeline/stream-coalescer.ts +1 -1
  1764. package/src/shared/lib/chat/timeline/stream-raf.ts +1 -1
  1765. package/src/shared/lib/chat/timeline/stream.test.ts +1 -1
  1766. package/src/shared/lib/chat/timeline/tool-phrases.test.ts +1 -1
  1767. package/src/shared/lib/chat/timeline/tool-phrases.ts +1 -1
  1768. package/src/shared/lib/chat/timeline/tool-verbs.test.ts +1 -1
  1769. package/src/shared/lib/chat/timeline/tool-verbs.ts +1 -1
  1770. package/src/shared/lib/chat/timeline/turns.ts +1 -1
  1771. package/src/shared/lib/chat/timeline/width-mode.test.ts +60 -0
  1772. package/src/shared/lib/chat/timeline/width-mode.ts +84 -0
  1773. package/src/shared/lib/chat/todo/nested-phase.ts +1 -1
  1774. package/src/shared/lib/chat/todo/parser.test.ts +1 -1
  1775. package/src/shared/lib/chat/todo/parser.ts +1 -1
  1776. package/src/shared/lib/chat/todo/progress.test.ts +1 -1
  1777. package/src/shared/lib/chat/todo/progress.ts +1 -1
  1778. package/src/shared/lib/chat/todo/snapshot.test.ts +1 -1
  1779. package/src/shared/lib/chat/todo/snapshot.ts +1 -1
  1780. package/src/shared/lib/chat/tool/artifact-view.test.ts +1 -1
  1781. package/src/shared/lib/chat/tool/artifact-view.ts +1 -1
  1782. package/src/shared/lib/chat/tool/artifact.test.ts +1 -1
  1783. package/src/shared/lib/chat/tool/artifact.ts +1 -1
  1784. package/src/shared/lib/chat/tool/labels.ts +1 -1
  1785. package/src/shared/lib/chat/tool/output-window.test.ts +1 -1
  1786. package/src/shared/lib/chat/tool/output-window.ts +1 -1
  1787. package/src/shared/lib/chat/tool/proc-facts.ts +1 -1
  1788. package/src/shared/lib/chat/tool/summary-proc.test.ts +1 -1
  1789. package/src/shared/lib/chat/tool/summary-wait.test.ts +1 -1
  1790. package/src/shared/lib/chat/tool/summary.test.ts +1 -1
  1791. package/src/shared/lib/chat/tool/summary.ts +1 -1
  1792. package/src/shared/lib/chat/tool/wait-facts.ts +5 -1
  1793. package/src/shared/lib/chat/tool-output.test.ts +1 -1
  1794. package/src/shared/lib/chat/tool-output.ts +1 -1
  1795. package/src/shared/lib/chat/xml-envelope.test.ts +1 -1
  1796. package/src/shared/lib/chat/xml-envelope.ts +1 -1
  1797. package/src/shared/lib/chat/xml-tag.test.ts +1 -1
  1798. package/src/shared/lib/chat/xml-tag.ts +1 -1
  1799. package/src/shared/lib/code/ansi.ts +1 -1
  1800. package/src/shared/lib/code/editor/comment-syntax.test.ts +1 -1
  1801. package/src/shared/lib/code/editor/comment-syntax.ts +1 -1
  1802. package/src/shared/lib/code/editor/find-replace.test.ts +1 -1
  1803. package/src/shared/lib/code/editor/find-replace.ts +1 -1
  1804. package/src/shared/lib/code/editor/find-scan.test.ts +1 -1
  1805. package/src/shared/lib/code/editor/find-scan.ts +1 -1
  1806. package/src/shared/lib/code/editor/find-selection.test.ts +1 -1
  1807. package/src/shared/lib/code/editor/find-status.test.ts +1 -1
  1808. package/src/shared/lib/code/editor/find-status.ts +1 -1
  1809. package/src/shared/lib/code/editor/indent-guide-rule.test.ts +1 -1
  1810. package/src/shared/lib/code/editor/indent-guide-rule.ts +1 -1
  1811. package/src/shared/lib/code/editor/indent-rules.test.ts +1 -1
  1812. package/src/shared/lib/code/editor/indent-rules.ts +1 -1
  1813. package/src/shared/lib/code/editor/keymap.test.ts +1 -1
  1814. package/src/shared/lib/code/editor/keymap.ts +1 -1
  1815. package/src/shared/lib/code/editor/lines.test.ts +1 -1
  1816. package/src/shared/lib/code/editor/lines.ts +1 -1
  1817. package/src/shared/lib/code/editor/marks.test.ts +1 -1
  1818. package/src/shared/lib/code/editor/marks.ts +1 -1
  1819. package/src/shared/lib/code/editor/palette.test.ts +1 -1
  1820. package/src/shared/lib/code/editor/palette.ts +1 -1
  1821. package/src/shared/lib/code/editor/stream-modes.ts +1 -1
  1822. package/src/shared/lib/code/editor/theme-loader.ts +1 -1
  1823. package/src/shared/lib/code/editor/themes.generated.ts +1 -1
  1824. package/src/shared/lib/code/editor/themes.test.ts +1 -1
  1825. package/src/shared/lib/code/editor/themes.ts +1 -1
  1826. package/src/shared/lib/code/editor/typography.test.ts +1 -1
  1827. package/src/shared/lib/code/editor/typography.ts +1 -1
  1828. package/src/shared/lib/code/format.ts +1 -1
  1829. package/src/shared/lib/code/highlight-cache.test.ts +1 -1
  1830. package/src/shared/lib/code/highlight-cache.ts +1 -1
  1831. package/src/shared/lib/code/highlight-memo.test.ts +1 -1
  1832. package/src/shared/lib/code/highlight-memo.ts +1 -1
  1833. package/src/shared/lib/code/highlighter-lazy.ts +1 -1
  1834. package/src/shared/lib/code/highlighter-warmup.ts +1 -1
  1835. package/src/shared/lib/code/highlighter.ts +1 -1
  1836. package/src/shared/lib/code/idle.ts +1 -1
  1837. package/src/shared/lib/code/language.ts +1 -1
  1838. package/src/shared/lib/code/line-endings.test.ts +1 -1
  1839. package/src/shared/lib/code/line-endings.ts +1 -1
  1840. package/src/shared/lib/code/outline/document.ts +1 -1
  1841. package/src/shared/lib/code/outline/extract.test.ts +1 -1
  1842. package/src/shared/lib/code/outline/extract.ts +1 -1
  1843. package/src/shared/lib/code/outline/languages.test.ts +1 -1
  1844. package/src/shared/lib/code/outline/languages.ts +1 -1
  1845. package/src/shared/lib/code/outline/rows.test.ts +1 -1
  1846. package/src/shared/lib/code/outline/rows.ts +1 -1
  1847. package/src/shared/lib/code/outline/rules.ts +1 -1
  1848. package/src/shared/lib/code/outline/scan.ts +1 -1
  1849. package/src/shared/lib/code/outline/spec.ts +1 -1
  1850. package/src/shared/lib/code/outline/types.ts +1 -1
  1851. package/src/shared/lib/code/outline/walk.ts +1 -1
  1852. package/src/shared/lib/code/shiki-langs.ts +1 -1
  1853. package/src/shared/lib/code/shiki-themes.ts +1 -1
  1854. package/src/shared/lib/code/syntax-highlight.test.ts +1 -1
  1855. package/src/shared/lib/dictation/audio.ts +1 -1
  1856. package/src/shared/lib/dictation/models.test.ts +1 -1
  1857. package/src/shared/lib/dictation/models.ts +1 -1
  1858. package/src/shared/lib/dictation/protocol.ts +1 -1
  1859. package/src/shared/lib/fonts/nerd-symbols.css +1 -1
  1860. package/src/shared/lib/fonts/nerd-symbols.test.ts +1 -1
  1861. package/src/shared/lib/format/number.test.ts +1 -1
  1862. package/src/shared/lib/format/number.ts +1 -1
  1863. package/src/shared/lib/format/time.test.ts +1 -1
  1864. package/src/shared/lib/format/time.ts +1 -1
  1865. package/src/shared/lib/fs/browse.ts +1 -1
  1866. package/src/shared/lib/fs/clipboard.test.ts +1 -1
  1867. package/src/shared/lib/fs/clipboard.ts +1 -1
  1868. package/src/shared/lib/fs/commit-count.test.ts +1 -1
  1869. package/src/shared/lib/fs/csv.ts +1 -1
  1870. package/src/shared/lib/fs/document-kind.test.ts +1 -1
  1871. package/src/shared/lib/fs/document-kind.ts +1 -1
  1872. package/src/shared/lib/fs/excerpt-diff.test.ts +1 -1
  1873. package/src/shared/lib/fs/excerpt-diff.ts +1 -1
  1874. package/src/shared/lib/fs/file-kind-classify.test.ts +1 -1
  1875. package/src/shared/lib/fs/file-kind.test.ts +1 -1
  1876. package/src/shared/lib/fs/file-kind.ts +1 -1
  1877. package/src/shared/lib/fs/file-tree.test.ts +1 -1
  1878. package/src/shared/lib/fs/file-url.test.ts +1 -1
  1879. package/src/shared/lib/fs/file-url.ts +1 -1
  1880. package/src/shared/lib/fs/folder-chain.test.ts +1 -1
  1881. package/src/shared/lib/fs/folder-chain.ts +1 -1
  1882. package/src/shared/lib/fs/fs-helpers.test.ts +1 -1
  1883. package/src/shared/lib/fs/git-blame.test.ts +266 -0
  1884. package/src/shared/lib/fs/git-blame.ts +246 -0
  1885. package/src/shared/lib/fs/git-graph.test.ts +1 -1
  1886. package/src/shared/lib/fs/git-status.test.ts +1 -1
  1887. package/src/shared/lib/fs/git-unmerged.test.ts +1 -1
  1888. package/src/shared/lib/fs/git-unmerged.ts +1 -1
  1889. package/src/shared/lib/fs/patch-sides.test.ts +1 -1
  1890. package/src/shared/lib/fs/patch-sides.ts +1 -1
  1891. package/src/shared/lib/fs/paths.test.ts +1 -1
  1892. package/src/shared/lib/fs/repo-groups.ts +1 -1
  1893. package/src/shared/lib/fs/repo-label.test.ts +1 -1
  1894. package/src/shared/lib/fs/repo-label.ts +1 -1
  1895. package/src/shared/lib/fs/search-list.test.ts +1 -1
  1896. package/src/shared/lib/fs/search-list.ts +1 -1
  1897. package/src/shared/lib/fs/search-row.test.ts +1 -1
  1898. package/src/shared/lib/fs/search-row.ts +1 -1
  1899. package/src/shared/lib/fs/worktree/settings-keys.ts +1 -1
  1900. package/src/shared/lib/git/url.test.ts +1 -1
  1901. package/src/shared/lib/git/url.ts +19 -1
  1902. package/src/shared/lib/markdown/autolink.test.ts +1 -1
  1903. package/src/shared/lib/markdown/autolink.ts +1 -1
  1904. package/src/shared/lib/markdown/directives.ts +1 -1
  1905. package/src/shared/lib/markdown/document-urls.test.ts +1 -1
  1906. package/src/shared/lib/markdown/document-urls.ts +1 -1
  1907. package/src/shared/lib/markdown/fira-code-fonts.css +1 -1
  1908. package/src/shared/lib/markdown/headings.test.ts +1 -1
  1909. package/src/shared/lib/markdown/headings.ts +1 -1
  1910. package/src/shared/lib/markdown/katex-fonts.css +1 -1
  1911. package/src/shared/lib/markdown/katex.ts +1 -1
  1912. package/src/shared/lib/markdown/marked.ts +1 -1
  1913. package/src/shared/lib/markdown/math.test.ts +1 -1
  1914. package/src/shared/lib/markdown/mermaid.ts +1 -1
  1915. package/src/shared/lib/markdown/sanitize.test.ts +57 -0
  1916. package/src/shared/lib/markdown/sanitize.ts +31 -8
  1917. package/src/shared/lib/markdown/table.test.ts +1 -1
  1918. package/src/shared/lib/models/client.ts +1 -1
  1919. package/src/shared/lib/models/identity.ts +1 -1
  1920. package/src/shared/lib/models/models-shared.test.ts +1 -1
  1921. package/src/shared/lib/models/picker-collapsed.ts +46 -0
  1922. package/src/shared/lib/models/preferences.test.ts +1 -1
  1923. package/src/shared/lib/models/preferences.ts +1 -1
  1924. package/src/shared/lib/models/provider/connection.ts +136 -1
  1925. package/src/shared/lib/models/provider/dialect.test.ts +5 -3
  1926. package/src/shared/lib/models/provider/dialect.ts +77 -7
  1927. package/src/shared/lib/models/provider/glyph.test.ts +1 -1
  1928. package/src/shared/lib/models/provider/glyph.ts +1 -1
  1929. package/src/shared/lib/models/provider/models.test.ts +1 -1
  1930. package/src/shared/lib/models/provider/models.ts +2 -0
  1931. package/src/shared/lib/models/provider/origin.ts +94 -0
  1932. package/src/shared/lib/models/provider/presets.test.ts +1 -1
  1933. package/src/shared/lib/models/provider/presets.ts +1 -1
  1934. package/src/shared/lib/models/provider/provider-ui.test.ts +8 -1
  1935. package/src/shared/lib/models/server-cache.ts +9 -4
  1936. package/src/shared/lib/models/thinking-levels.test.ts +1 -1
  1937. package/src/shared/lib/models/thinking-levels.ts +1 -1
  1938. package/src/shared/lib/omp/config/access-mode.server.ts +1 -1
  1939. package/src/shared/lib/omp/config/access-mode.ts +1 -1
  1940. package/src/shared/lib/omp/config/model-roles.ts +1 -1
  1941. package/src/shared/lib/omp/config/schema-extras.ts +1 -1
  1942. package/src/shared/lib/omp/config/schema-types.ts +1 -1
  1943. package/src/shared/lib/omp/config/schema.test.ts +1 -1
  1944. package/src/shared/lib/omp/config/schema.ts +1 -1
  1945. package/src/shared/lib/omp/dialog-methods.ts +1 -1
  1946. package/src/shared/lib/omp/mode/budget.ts +1 -1
  1947. package/src/shared/lib/omp/mode/client-signal.ts +1 -1
  1948. package/src/shared/lib/omp/mode/constants.ts +1 -1
  1949. package/src/shared/lib/omp/mode/format.ts +1 -1
  1950. package/src/shared/lib/omp/mode/markers.test.ts +1 -1
  1951. package/src/shared/lib/omp/mode/markers.ts +1 -1
  1952. package/src/shared/lib/omp/mode/notice.test.ts +1 -1
  1953. package/src/shared/lib/omp/mode/notice.ts +1 -1
  1954. package/src/shared/lib/omp/mode/status.ts +1 -1
  1955. package/src/shared/lib/omp/mode/tables.test.ts +1 -1
  1956. package/src/shared/lib/omp/mode/types.ts +1 -1
  1957. package/src/shared/lib/omp/rpc/frame.test.ts +1 -1
  1958. package/src/shared/lib/omp/rpc/frame.ts +1 -1
  1959. package/src/shared/lib/omp/session/default-title.test.ts +1 -1
  1960. package/src/shared/lib/omp/session/default-title.ts +1 -1
  1961. package/src/shared/lib/omp/session/hashline-patch.ts +1 -1
  1962. package/src/shared/lib/omp/session/inlined-attachments.test.ts +1 -1
  1963. package/src/shared/lib/omp/session/job-progress.test.ts +1 -1
  1964. package/src/shared/lib/omp/session/job-progress.ts +1 -1
  1965. package/src/shared/lib/omp/session/jsonl.test.ts +1 -1
  1966. package/src/shared/lib/omp/session/jsonl.ts +1 -1
  1967. package/src/shared/lib/omp/session/mapper.test.ts +1 -1
  1968. package/src/shared/lib/omp/session/mapper.ts +1 -1
  1969. package/src/shared/lib/omp/session/messages-map-pending.test.ts +110 -0
  1970. package/src/shared/lib/omp/session/messages-map.test.ts +1 -1
  1971. package/src/shared/lib/omp/session/messages-map.ts +35 -3
  1972. package/src/shared/lib/omp/session/messages-parse.ts +1 -1
  1973. package/src/shared/lib/omp/session/narration.test.ts +1 -1
  1974. package/src/shared/lib/omp/session/operator-title.test.ts +1 -1
  1975. package/src/shared/lib/omp/session/operator-title.ts +1 -1
  1976. package/src/shared/lib/omp/session/parse-message-blocks-attachments.test.ts +1 -1
  1977. package/src/shared/lib/omp/session/parse-message-blocks-toolcall.test.ts +1 -1
  1978. package/src/shared/lib/omp/session/parse-message-blocks.test.ts +1 -1
  1979. package/src/shared/lib/omp/session/parse-message-blocks.ts +1 -1
  1980. package/src/shared/lib/omp/session/prewarm-misc.test.ts +8 -91
  1981. package/src/shared/lib/omp/session/prewarm.test.ts +133 -0
  1982. package/src/shared/lib/omp/session/prewarm.ts +23 -1
  1983. package/src/shared/lib/omp/session/proc.test.ts +1 -1
  1984. package/src/shared/lib/omp/session/proc.ts +1 -1
  1985. package/src/shared/lib/omp/session/schema-migrations.ts +1 -1
  1986. package/src/shared/lib/omp/session/sidebar.test.ts +1 -1
  1987. package/src/shared/lib/omp/session/sidebar.ts +1 -1
  1988. package/src/shared/lib/omp/session/skill-bubble.test.ts +1 -1
  1989. package/src/shared/lib/omp/session/stream-heal.server.test.ts +1 -1
  1990. package/src/shared/lib/omp/session/stream-heal.server.ts +1 -1
  1991. package/src/shared/lib/omp/session/stream-state.server.test.ts +1 -1
  1992. package/src/shared/lib/omp/session/stream-state.server.ts +1 -1
  1993. package/src/shared/lib/omp/session/telemetry-blocks.ts +1 -1
  1994. package/src/shared/lib/omp/session/timestamps.ts +1 -1
  1995. package/src/shared/lib/omp/session/tool-duration.test.ts +1 -1
  1996. package/src/shared/lib/omp/session/tool-images.test.ts +1 -1
  1997. package/src/shared/lib/omp/session/tool-images.ts +1 -1
  1998. package/src/shared/lib/omp/session/turn-error.ts +1 -1
  1999. package/src/shared/lib/omp/session/wait.test.ts +29 -1
  2000. package/src/shared/lib/omp/session/wait.ts +39 -4
  2001. package/src/shared/lib/omp/subagent/control.ts +1 -1
  2002. package/src/shared/lib/omp/subagent/history/client.ts +1 -1
  2003. package/src/shared/lib/omp/subagent/history/settlement.test.ts +1 -1
  2004. package/src/shared/lib/omp/subagent/history/settlement.ts +1 -1
  2005. package/src/shared/lib/omp/subagent/history/status.ts +1 -1
  2006. package/src/shared/lib/omp/subagent/label.test.ts +1 -1
  2007. package/src/shared/lib/omp/subagent/label.ts +1 -1
  2008. package/src/shared/lib/omp/subagent/parse.test.ts +1 -1
  2009. package/src/shared/lib/omp/subagent/parse.ts +1 -1
  2010. package/src/shared/lib/omp/subagent/result-details.ts +1 -1
  2011. package/src/shared/lib/omp/subagent/transcript-client.test.ts +1 -1
  2012. package/src/shared/lib/omp/subagent/transcript-client.ts +1 -1
  2013. package/src/shared/lib/panels/capabilities.test.ts +1 -1
  2014. package/src/shared/lib/panels/capabilities.ts +1 -1
  2015. package/src/shared/lib/panels/css-scope.test.ts +1 -1
  2016. package/src/shared/lib/panels/css-scope.ts +1 -1
  2017. package/src/shared/lib/panels/resolve-asset.test.ts +1 -1
  2018. package/src/shared/lib/panels/resolve-asset.ts +1 -1
  2019. package/src/shared/lib/panels/slot-labels.test.ts +61 -0
  2020. package/src/shared/lib/panels/slot-labels.ts +133 -0
  2021. package/src/shared/lib/plugins/protocol.ts +1 -1
  2022. package/src/shared/lib/realtime/client.ts +1 -1
  2023. package/src/shared/lib/realtime/connection.test.ts +1 -1
  2024. package/src/shared/lib/realtime/connection.ts +1 -1
  2025. package/src/shared/lib/realtime/frozen-recovery.test.ts +1 -1
  2026. package/src/shared/lib/realtime/protocol.ts +1 -1
  2027. package/src/shared/lib/realtime/resume.ts +1 -1
  2028. package/src/shared/lib/realtime/state.ts +1 -1
  2029. package/src/shared/lib/realtime/watchdog-wiring.test.ts +1 -1
  2030. package/src/shared/lib/realtime/watchdog.test.ts +1 -1
  2031. package/src/shared/lib/realtime/watchdog.ts +1 -1
  2032. package/src/shared/lib/schedule/parse.test.ts +1 -1
  2033. package/src/shared/lib/schedule/parse.ts +1 -1
  2034. package/src/shared/lib/settings/client.ts +1 -1
  2035. package/src/shared/lib/settings/defaults.ts +42 -0
  2036. package/src/shared/lib/settings/diff.ts +1 -1
  2037. package/src/shared/lib/settings/keys.ts +1 -1
  2038. package/src/shared/lib/theme/catalog.test.ts +1 -1
  2039. package/src/shared/lib/theme/catalog.ts +1 -1
  2040. package/src/shared/lib/theme/chrome.test.ts +1 -1
  2041. package/src/shared/lib/theme/chrome.ts +1 -1
  2042. package/src/shared/lib/theme/color.test.ts +1 -1
  2043. package/src/shared/lib/theme/color.ts +1 -1
  2044. package/src/shared/lib/theme/css.ts +1 -1
  2045. package/src/shared/lib/theme/palettes/dark.ts +1 -1
  2046. package/src/shared/lib/theme/palettes/kabmo.ts +1 -1
  2047. package/src/shared/lib/theme/palettes/light.ts +1 -1
  2048. package/src/shared/lib/theme/shell-palette.test.ts +1 -1
  2049. package/src/shared/lib/theme/shell-palette.ts +1 -1
  2050. package/src/shared/lib/theme/theme.test.ts +1 -1
  2051. package/src/shared/lib/ui/key-binding.test.ts +1 -1
  2052. package/src/shared/lib/ui/key-binding.ts +1 -1
  2053. package/src/shared/lib/ui/scroll-reveal.test.ts +1 -1
  2054. package/src/shared/lib/ui/scroll-reveal.ts +1 -1
  2055. package/src/shared/lib/ui/titlebar.test.ts +1 -1
  2056. package/src/shared/lib/ui/titlebar.ts +1 -1
  2057. package/src/shared/lib/ui/toolbar-overflow.test.ts +1 -1
  2058. package/src/shared/lib/ui/toolbar-overflow.ts +1 -1
  2059. package/src/shared/lib/updates/popup-state.test.ts +1 -1
  2060. package/src/shared/lib/updates/semver.test.ts +1 -1
  2061. package/src/shared/lib/updates/shell-arch.ts +1 -1
  2062. package/src/shared/lib/updates/shell-ua.test.ts +1 -1
  2063. package/src/shared/lib/util/bytes.test.ts +41 -0
  2064. package/src/shared/lib/util/bytes.ts +31 -0
  2065. package/src/shared/lib/util/guards.test.ts +1 -1
  2066. package/src/shared/lib/util/guards.ts +1 -1
  2067. package/src/shared/lib/util/platform.test.ts +1 -1
  2068. package/src/shared/lib/util/platform.ts +1 -1
  2069. package/src/shared/lib/wiki/document-urls.test.ts +1 -1
  2070. package/src/shared/lib/wiki/document-urls.ts +1 -1
  2071. package/src/shared/lib/wiki/pages.test.ts +1 -1
  2072. package/src/shared/lib/wiki/pages.ts +1 -1
  2073. package/src/shared/lib/wiki/sidebar.test.ts +1 -1
  2074. package/src/shared/lib/wiki/sidebar.ts +1 -1
  2075. package/src/shared/lib/workspace/batch-select.test.ts +1 -1
  2076. package/src/shared/lib/workspace/batch-select.ts +1 -1
  2077. package/src/shared/lib/workspace/editor-view-mode.test.ts +1 -1
  2078. package/src/shared/lib/workspace/editor-view-mode.ts +1 -1
  2079. package/src/shared/lib/workspace/file-tab-id.ts +1 -1
  2080. package/src/shared/lib/workspace/keymap.test.ts +1 -1
  2081. package/src/shared/lib/workspace/keymap.ts +1 -1
  2082. package/src/shared/lib/workspace/left-dock-width.ts +1 -1
  2083. package/src/shared/lib/workspace/left-dock.test.ts +1 -1
  2084. package/src/shared/lib/workspace/left-dock.ts +1 -1
  2085. package/src/shared/lib/workspace/mobile-dock.test.ts +1 -1
  2086. package/src/shared/lib/workspace/mobile-dock.ts +1 -1
  2087. package/src/shared/lib/workspace/panel-ids.test.ts +1 -1
  2088. package/src/shared/lib/workspace/panel-ids.ts +12 -1
  2089. package/src/shared/lib/workspace/panel-open.test.ts +1 -1
  2090. package/src/shared/lib/workspace/panel-open.ts +1 -1
  2091. package/src/shared/lib/workspace/panel-order.test.ts +1 -1
  2092. package/src/shared/lib/workspace/panel-order.ts +1 -1
  2093. package/src/shared/lib/workspace/panel-widths.test.ts +1 -1
  2094. package/src/shared/lib/workspace/project-settings.test.ts +1 -1
  2095. package/src/shared/lib/workspace/refresh-cadence.test.ts +1 -1
  2096. package/src/shared/lib/workspace/refresh-cadence.ts +1 -1
  2097. package/src/shared/lib/workspace/scroll-positions.test.ts +1 -1
  2098. package/src/shared/lib/workspace/scroll-positions.ts +1 -1
  2099. package/src/shared/lib/workspace/session-state/cache.ts +1 -1
  2100. package/src/shared/lib/workspace/session-state/harness.test-util.ts +1 -1
  2101. package/src/shared/lib/workspace/session-state/listeners.ts +1 -1
  2102. package/src/shared/lib/workspace/session-state/merge.ts +1 -1
  2103. package/src/shared/lib/workspace/session-state/replacement.test.ts +1 -1
  2104. package/src/shared/lib/workspace/session-state/store-load.test.ts +1 -1
  2105. package/src/shared/lib/workspace/session-state/store.test.ts +1 -1
  2106. package/src/shared/lib/workspace/session-visibility.test.ts +1 -1
  2107. package/src/shared/lib/workspace/session-visibility.ts +1 -1
  2108. package/src/shared/lib/workspace/sidebar-sort.test.ts +1 -1
  2109. package/src/shared/lib/workspace/sidebar-sort.ts +1 -1
  2110. package/src/shared/lib/workspace/sidebar-toolbar.test.ts +1 -1
  2111. package/src/shared/lib/workspace/sidebar-toolbar.ts +1 -1
  2112. package/src/shared/lib/workspace/sidebar-width.test.ts +1 -1
  2113. package/src/shared/lib/workspace/split-editor.test.ts +1 -1
  2114. package/src/shared/lib/workspace/split-editor.ts +1 -1
  2115. package/src/shared/lib/workspace/terminal/keys.test.ts +1 -1
  2116. package/src/shared/lib/workspace/terminal/keys.ts +1 -1
  2117. package/src/shared/lib/workspace/terminal/protocol.test.ts +1 -1
  2118. package/src/shared/lib/workspace/terminal/protocol.ts +1 -1
  2119. package/src/shared/lib/workspace/workspace-modules.test.ts +1 -1
  2120. package/src/shared/lib/workspace/workspace-panel-widths.ts +1 -1
  2121. package/src/shared/lib/workspace/worktree/branch-name.test.ts +1 -1
  2122. package/src/shared/lib/workspace/worktree/branch-name.ts +1 -1
  2123. package/src/shared/lib/workspace/worktree/types.ts +1 -1
  2124. package/src/shared/types/btw.ts +1 -1
  2125. package/src/shared/types/fs.ts +6 -0
  2126. package/src/shared/types/index.ts +1 -0
  2127. package/src/shared/types/model-roles.ts +1 -1
  2128. package/src/shared/types/models.ts +13 -1
  2129. package/src/shared/types/omp/agent.ts +1 -1
  2130. package/src/shared/types/omp/instructions.ts +1 -1
  2131. package/src/shared/types/omp/session.ts +1 -1
  2132. package/src/shared/types/omp/subagent.ts +1 -1
  2133. package/src/shared/types/panels-registry.ts +277 -0
  2134. package/src/shared/types/panels.ts +46 -213
  2135. package/src/shared/types/plan.ts +1 -1
  2136. package/src/shared/types/realtime.ts +1 -1
  2137. package/src/shared/types/schedule.ts +1 -1
  2138. package/src/shared/types/settings/provider.ts +58 -0
  2139. package/src/shared/types/settings/state.ts +11 -0
  2140. package/src/shared/types/settings/usage.ts +10 -0
  2141. package/src/shared/types/styles.d.ts +19 -0
  2142. package/src/shared/types/theme.ts +1 -1
  2143. package/src/shared/types/todo.ts +1 -1
  2144. package/src/shared/types/waiting.ts +1 -1
  2145. package/src/shared/types/wiki.ts +1 -1
  2146. package/src/test-support/executable-stub.ts +40 -5
  2147. package/src/test-support/fake-git.ts +1 -1
  2148. package/src/test-support/fake-omp-fork.ts +1 -1
  2149. package/src/test-support/fake-omp-restore.ts +1 -1
  2150. package/src/test-support/file-actions.test-util.ts +1 -1
  2151. package/src/test-support/file-clipboard.test-util.ts +1 -1
  2152. package/src/test-support/file-editor.test-util.ts +1 -1
  2153. package/src/test-support/file-explorer-disk.test-util.ts +1 -1
  2154. package/src/test-support/file-explorer.test-util.ts +1 -1
  2155. package/src/test-support/isolated-db.ts +1 -1
  2156. package/src/test-support/loopback.ts +1 -1
  2157. package/src/test-support/peer-harness.ts +1 -1
  2158. package/src/test-support/platform.test.ts +1 -1
  2159. package/src/test-support/platform.ts +1 -1
  2160. package/src/test-support/pristine-globals.ts +8 -1
  2161. package/src/test-support/realtime-server.ts +1 -1
  2162. package/src/test-support/remove-dir.ts +1 -1
  2163. package/src/test-support/silent-socket.ts +1 -1
  2164. package/src/test-support/stub-cache.test.ts +107 -0
  2165. package/src/test-support/stub-cache.ts +76 -0
  2166. package/tsconfig.json +0 -1
  2167. package/dist/client/static/js/index-bq6qeayr.css +0 -1
  2168. package/src/client/components/settings/categories/provider-settings/ReconnectModal.tsx +0 -184
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Wijanarko Putra Rajeb
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -17,6 +17,7 @@
17
17
  </p>
18
18
 
19
19
  <p align="center">
20
+ <a href="https://github.com/kabmo-labs/kabmo/wiki">Wiki</a> ·
20
21
  <a href="AGENTS.md">Architecture</a> ·
21
22
  <a href="DESIGN.md">Design</a> ·
22
23
  <a href="CHANGELOG.md">Changelog</a> ·
@@ -28,13 +29,13 @@
28
29
 
29
30
  ## What it is
30
31
 
31
- The browser view onto a live `omp` install. It is not a terminal wrapper: Kabmo reads
32
- omp's own session JSONL, project registry, config and subagent transcripts, folds them into one
33
- live view, and writes back through omp's RPC mode.
32
+ The browser view onto a live `omp` install. It is not a terminal wrapper: Kabmo reads omp's own
33
+ session JSONL, project registry, config and subagent transcripts, folds them into one live view, and
34
+ writes back through omp's RPC mode.
34
35
 
35
36
  ```bash
36
37
  kabmo serve # production server + prebuilt client on :3000
37
- bun run dev # source checkout: one process, HMR, no build step
38
+ bun run dev # source checkout: one process, HMR, no build step
38
39
  ```
39
40
 
40
41
  - **One process.** Elysia serves the API and the client bundle, and the agent event stream is a
@@ -63,331 +64,99 @@ bun run dev # source checkout: one process, HMR, no build st
63
64
  | ![Panel plugins](docs/assets/settings-panel-plugins.png)<br>**Panel plugins** — every view is a plugin, including the eleven bundled ones | ![Providers](docs/assets/settings-providers.png)<br>**Providers** — dialects, discovery, hand-added models, credential removal |
64
65
  | ![Mobile view](docs/assets/mobile.png)<br>**Mobile view** — the same session on a phone: chat, sessions drawer, and the panel drawer | ![Light theme](docs/assets/hero-light.png)<br>**Any palette** — 45 light and dark themes, applied to the whole console |
65
66
 
66
- - **Chat timeline** — streaming thinking blocks (with omp's narrated prose promoted to answer
67
- text), a structured renderer per tool (bash, LSP, AST edit, `proc://` services, `wait` with a
68
- clock and progress, mermaid diagrams you can zoom), usage footers, a persistent follow-up queue,
69
- a jump rail that reaches any user turn, drag-and-drop attachments, one-shot auto-titling, and
70
- in-place undo that rewinds a session by truncating its JSONL behind a confirmation step.
71
- - **Steering, not cancelling** — a mid-run prompt is delivered INTO the running turn
72
- (`POST /api/agent/:id {type:'steer'}`); the answer you were watching survives. A subagent can be
73
- steered or stopped on its own, from the roster or its transcript.
74
- - **Side questions** (`/btw [question]`) — replaces the composer with a panel that answers from a
75
- private copy of the session file, so the parent transcript is never written; a topic can be
76
- promoted into a session of its own, and it runs the same tool cards, thinking and usage rows as
77
- the chat.
67
+ - **Chat timeline** — streaming thinking blocks (omp's narrated prose promoted to answer text), a
68
+ structured renderer per tool (bash, LSP, AST edit, `proc://` services, `wait` with a clock and
69
+ progress, zoomable mermaid), usage footers, a persistent follow-up queue, a jump rail, drag-and-drop
70
+ attachments, one-shot auto-titling and in-place undo that rewinds a session.
71
+ - **Steering, not cancelling** — a mid-run prompt is delivered INTO the running turn, so the answer
72
+ you were watching survives. A subagent can be steered or stopped on its own.
73
+ - **Side questions** (`/btw [question]`) — answer from a private copy of the session file, without
74
+ writing the parent transcript; a topic can be promoted into a session of its own.
78
75
  - **Workspace sidebar** — folder → session tree off omp's project registry, with search, sort,
79
- archive, per-session stream status, subagent rows, scheduled tasks, and a New Workspace dialog
80
- that can register a directory or clone a repository.
81
- - **Eleven right-panel views** — context & telemetry, files, search, source control, wiki,
82
- terminal, your browser, the agent browser, usage, todos and plan; each remembers its own width
83
- per session, and the bar is drag-reorderable.
84
- - **A plugin platform, not a fixed panel list** — a panel plugin can ship a Preact view, a server
85
- half, its own storage, RPC methods, a realtime topic and declared settings. Three are bundled
86
- (`Runner` — 18 command sources across 15 toolchains — plus `Stats` and `Session Info`),
87
- and they are auto-synced on upgrade.
88
- - **Full omp settings surface** — engine config keys (generated from omp's own schema, 554
89
- settings across 10 tabs), providers, agents, `AGENTS.md` / `RULES.md`, slash commands, MCP
90
- servers with live connection tests, skills and the skills catalog, token usage, notifications,
91
- and dictation.
92
- - **Self-update** — `kabmo update` installs the latest version from npm, and **About → Updates**
93
- does the same from the console, restarting the server and reloading the page into the new build.
94
- - **Opt-in password, HTTPS and session revocation** — the UI is open by default and locked only when
95
- you ask for it (`--ui-password` / `KABMO_UI_PASSWORD`), with `--tls` for a self-signed HTTPS
96
- listener and `POST /api/auth/revoke` to end every session at once. See [Security](#security).
97
- - **Tray icon and start at login** — `serve --tray` / `--startup`, with the icon as a child of the
98
- server so it can never outlive it.
99
- - **Dictation** — the composer's mic button runs omp's own speech-to-text worker (no API key, a
100
- local model) and streams the transcript into the draft.
76
+ archive, per-session stream status, subagent rows, scheduled tasks, and a New Workspace dialog that
77
+ registers a directory or clones a repository.
78
+ - **Eleven right-panel views, each a plugin** — context & telemetry, files, search, source control,
79
+ wiki, terminal, your browser, the agent browser, usage, todos and plan; each remembers its own width
80
+ per session. A plugin can ship a Preact view, a server half, storage, RPC methods, a realtime topic
81
+ and settings; three are bundled (`Runner`, `Stats`, `Session Info`).
82
+ - **The whole omp settings surface** — engine config generated from omp's own schema, providers,
83
+ agents, `AGENTS.md` / `RULES.md`, slash commands, MCP servers with live connection tests, skills,
84
+ token usage, notifications and dictation.
85
+ - **Self-update, opt-in auth, tray and dictation** — `kabmo update` and **About → Updates** restart
86
+ into the new build; a password and HTTPS are opt-in; `serve --tray` puts the icon in the menu bar;
87
+ the composer's mic runs omp's own local speech-to-text.
101
88
 
102
89
  ## Themes
103
90
 
104
- ![The palette picker in Settings → Appearance](docs/assets/settings-themes.png)
105
-
106
- ![Eight of the 45 palettes, same surface](docs/assets/theme-grid.png)
107
-
108
91
  45 palettes in one catalog (`src/shared/lib/theme/`): Kabmo's own three (`paper`, `contrast`,
109
92
  `one-dark-pro-soft`) and 21 light/dark pairs — Catppuccin, Gruvbox, Tokyo Night, Nord, Dracula,
110
93
  Solarized, Kanagawa, Vesper, Ayu, Monokai and more. Switching repaints everything, syntax
111
- highlighting and Mermaid diagrams included, through one writer (`applyDocumentTheme`) that sets
112
- `data-theme` and announces it — so an open editor, a live terminal and a diagram in the transcript
113
- all follow with no reload.
94
+ highlighting and Mermaid diagrams included, through one writer that sets `data-theme` and announces
95
+ it — so an open editor, a live terminal and a diagram in the transcript all follow with no reload.
114
96
 
115
- ![Theme cycle in motion](docs/assets/themes.gif)
97
+ ![Eight of the 45 palettes, same surface](docs/assets/theme-grid.png)
116
98
 
117
99
  ## Install
118
100
 
119
- Kabmo is published to npm and runs on Bun, not Node:
120
-
121
- > **Bun only** — the server imports `bun:sqlite` and `Bun.YAML`, neither of which Node can load.
122
- > Bun 1.4 or newer is required.
123
-
124
- > **omp required** — every live capability (agent sessions, omp config, session state, updates)
125
- > shells out to the `omp` binary, so `serve` refuses to start when it is not on `PATH` (or set via
126
- > `KABMO_OMP_BIN`). `MOCK=true` is the only mode that runs without a real omp install.
101
+ Kabmo is published to npm and runs on **Bun 1.4+**, not Node. Live capabilities need the `omp`
102
+ binary on `PATH` (or `KABMO_OMP_BIN`); `MOCK=true` is the only mode that runs without one.
127
103
 
128
104
  ```bash
129
105
  bun add -g @kabmo-labs/kabmo # puts the `kabmo` command on your PATH
130
106
  kabmo serve # start the server on :3000
131
107
  ```
132
108
 
133
- An install that predates the rename keeps its state: the first boot moves
134
- `~/.ompchamber` to `~/.kabmo` (database, login, sessions and marketplace), and the
135
- `OMPCHAMBER_*` environment names are still read as fallbacks.
136
-
137
- The published tarball carries the source, the CLI and the prebuilt client bundle, so there is no
138
- build step after install. `npm install -g @kabmo-labs/kabmo` works too — the `kabmo` bin is a Bun
139
- script, so Bun still has to be on `PATH`.
140
-
141
- ### From source
142
-
143
- ```bash
144
- git clone https://github.com/kabmo-labs/kabmo.git
145
- cd kabmo
146
- bun install
147
- bun run build # dist/client — the only build artifact
148
-
149
- bun run start # NODE_ENV=production bun run src/server/index.ts
150
- bun link # then: kabmo status
151
- ```
152
-
153
- > Without `dist/client` the server answers `503` with the exact command to run — never a bare `500`.
154
-
155
- ### Updating
109
+ From a checkout:
156
110
 
157
111
  ```bash
158
- kabmo update --check # report only: current version, latest release
159
- kabmo update # install it, then restart a running instance
160
- kabmo update --force # reinstall even when already up to date
112
+ git clone https://github.com/kabmo-labs/kabmo.git && cd kabmo
113
+ bun install && bun run build # dist/client — the only build artifact
114
+ bun run start # or: bun link, then `kabmo status`
161
115
  ```
162
116
 
163
- A **bun global** install is refreshed with `bun add -g @kabmo-labs/kabmo@<version>`; a **git checkout** is
164
- fast-forwarded to the release tag and rebuilt. Uncommitted work is never merged over (the update asks
165
- you to commit or stash first), and an install owned by another package manager is left alone and told
166
- which command to run.
167
-
168
- A server Kabmo did not start is never restarted: `bun run dev`, `bun run start`, a manual
169
- `bun src/server/index.ts` and instances owned by a supervisor (systemd, pm2, a container) all record
170
- themselves as `direct`, so the update leaves them running and says so. `--no-restart` turns the
171
- restart off entirely. The console's **About → Updates** runs the same install, restarts the instance
172
- serving that console, and reloads the page once the replacement answers on the same port.
173
-
174
- ## CLI
175
-
176
- `kabmo [COMMAND] [OPTIONS]` — `serve` is the default command.
177
-
178
- | Command | Purpose |
179
- |---|---|
180
- | `serve` | Start the web server (daemon by default) |
181
- | `update` | Install the latest version from npm, then restart the instance it started |
182
- | `stop` | Stop the instances the CLI started — `--port`/`--all` to stop any |
183
- | `restart` | Stop, then start again — leaving servers started from source alone |
184
- | `status` | Report whether an instance is running |
185
- | `logs` | Print or follow the server log |
186
- | `plugin` | Build, type, scaffold or list panel plugins |
187
-
188
- | Option | Purpose |
189
- |---|---|
190
- | `-p, --port <port>` | Web server port (default `3000`); scopes `status`/`stop`/`restart`/`logs` |
191
- | `--host <address>` (`--hostname`) | Bind address (default `127.0.0.1`) |
192
- | `--lan` | Bind to `0.0.0.0` for LAN access (warns when the traffic is unencrypted) |
193
- | `--tls` | Serve HTTPS from a self-signed certificate, generated once into `~/.kabmo/tls/` |
194
- | `--tray` | Show a menu-bar/notification-area icon for this server |
195
- | `--startup` | Start the server at login (and show the tray icon now) |
196
- | `--no-startup` | Remove the login entry |
197
- | `--ui-password [value]` | Require a password for the browser UI; generates one when the value is omitted |
198
- | `--no-ui-password` | Ignore `KABMO_UI_PASSWORD` for this start |
199
- | `--prod` | Accepted for compatibility — production is the default |
200
- | `--dev` | Run the dev server from source (HMR, unminified) instead |
201
- | `--foreground` (`--no-daemon`) | Run in the foreground (no daemon) |
202
- | `--all` | Apply the command to every running instance |
203
- | `-c, --check` | Report whether a newer release exists without installing it |
204
- | `--force` | Reinstall even when already up to date |
205
- | `--no-restart` | Do not restart a running instance after updating |
206
- | `-f, --follow` / `-n, --lines <count>` | Tail the log, optionally from a line count |
207
- | `--json` / `-q, --quiet` | Machine-readable output / suppress non-essential output |
208
-
209
- ### Tray icon and start at login
210
-
211
- `kabmo serve --tray` puts a Kabmo icon in the menu bar (macOS) or the notification area
212
- (Windows, Linux). `--startup` additionally registers the server to start at every login, and
213
- `--no-startup` removes that registration:
117
+ Updating, the full CLI reference, the tray and login entry, and multi-instance ports:
118
+ **[Installation →](https://github.com/kabmo-labs/kabmo/wiki/Installation)**
214
119
 
215
- ```bash
216
- kabmo serve --tray # start the server with a tray icon
217
- kabmo serve --startup # also start at every login
218
- kabmo serve --no-startup # remove the login entry
219
- ```
120
+ ## Configuration
220
121
 
221
- The icon's menu reflects the server as it is **right now** — rebuilt on every open: Open Console,
222
- Open Logs, Start at Login / Disable Start at Login, Quit Kabmo.
223
-
224
- - **The tray is a child of the server.** It exits when the server does (it watches its parent), so a
225
- killed or crashed server leaves no orphan icon, and **Quit Kabmo signals the server** — the
226
- icon and the console end together. There is no pid file, no `status`/`stop` for the icon, and
227
- nothing to keep in sync: the process tree is the registration.
228
- - **The login entry runs `serve --foreground`.** launchd reaps a job's whole process tree when the
229
- job's program exits, so an entry that ran a detached `serve` (which returns once the health check
230
- passes) produced no server at all. In the foreground the CLI is the long-lived job, the server is
231
- its child, and the tray is the server's child. Verified against `launchctl print`: the entry is
232
- `state = running` with the CLI as its program.
233
- - **macOS** registers `~/Library/LaunchAgents/dev.kabmo.tray.plist` (`RunAtLoad`, no
234
- `KeepAlive` — a server stopped on purpose stays stopped). **Linux** writes
235
- `$XDG_CONFIG_HOME/autostart/kabmo-tray.desktop`, which every freedesktop session reads.
236
- **Windows** sets the HKCU `…\CurrentVersion\Run` value through `reg`, so registering never needs
237
- elevation.
238
- - **What draws the icon is the platform's own tray API**: an AppKit status item on macOS (via
239
- `osascript -l JavaScript`), `System.Windows.Forms.NotifyIcon` on Windows, and `yad`/`zenity`
240
- `--notification` on Linux. Only Linux can lack a client — the icon is then skipped with the
241
- package to install in the log, and the server keeps running.
242
- - `--startup` without `--tray` is a supported shape: the login-started server comes up without an
243
- icon.
244
-
245
- ### Ports and multiple instances
246
-
247
- One port is served by exactly one process, and `bun run dev`, `kabmo serve` and the production
248
- server all default to `3000`. **A starting instance never stops another one** — if the port is taken
249
- by Kabmo, the newcomer reports who holds it and exits non-zero so you can pick another port:
122
+ Environment variables (`PORT`, `HOST`, `MOCK`, `KABMO_DATA_DIR`, `KABMO_OMP_BIN`, …), the SQLite
123
+ state and the two data modes: **[Configuration →](https://github.com/kabmo-labs/kabmo/wiki/Configuration)**
250
124
 
251
125
  ```bash
252
- kabmo serve --port 3001 # CLI flag
253
- KABMO_PORT=3001 kabmo serve
254
- PORT=3001 bun run dev # or: PORT=3001 bun run start
126
+ PORT=3001 kabmo serve # one port, one process; a second instance never steals it
127
+ MOCK=true bun run dev # demo datasets, no omp install needed
255
128
  ```
256
129
 
257
- - Nothing is ever signalled to free a port; `kabmo stop --port 3000` is the deliberate way.
258
- - A process that is **not** Kabmo is never signalled either: the server names the port and
259
- prints the `lsof -nP -iTCP:<port> -sTCP:LISTEN` command to identify it.
260
- - **`localhost` is two addresses, and the port is taken if either one is.** `Bun.serve` binds only
261
- the family a name resolves to first (`[::1]` for `localhost`), so a check aimed at that family
262
- alone reported a free port while another instance held `127.0.0.1` — two servers answering "port
263
- 3000", and a browser landing on whichever one it resolved. Both `127.0.0.1` and `::1` are now
264
- probed (and both are asked over `/api/health`, which is what `status`/`stop` use to find a live
265
- instance), and the refusal names the address that is held. A literal address (`--host 0.0.0.0`,
266
- `127.0.0.1`) is one address and is probed as exactly that.
267
- - `bun run dev` hot reload is unaffected: `--hot` re-evaluates the entry inside the running
268
- process, and a port held by that process is recognized as its own.
269
- - `status` and `logs` report **every** live instance by default; `--port <port>` narrows them to one.
270
- `stop` acts on the instances the CLI started, and `restart`/`update` skip the rest: `bun run dev`
271
- is a supervisor whose only job is to mirror the script under it, so stopping that server exits
272
- the dev loop with it. Name the instance — `kabmo stop --port <port>`, or `--all` — to end
273
- one anyway.
274
-
275
- The server writes `~/.kabmo/run/<port>.json` (`pid`, `host`, `mode`, `launchMode`, `startedAt`)
276
- once it owns the port, which is how `status`/`stop`/`logs` also see servers started by `bun run dev`
277
- or `--foreground`. `launchMode` is derived from the process's **argv**, never from an environment
278
- variable — env is inherited, so a `bun run dev` started inside a Kabmo shell would otherwise be
279
- replaced by an update. Records left by a killed server are pruned once their PID stops answering.
280
-
281
- - `stop` reports what actually happened. The record is dropped only once the process is gone, so a
282
- stop that could not end the server keeps it — `kabmo status` still finds the instance, the
283
- message says so, and the command exits non-zero. Deleting the record over a live process was how a
284
- failed stop turned into a deadlock: `status` said "not running" while `serve` refused the port.
285
- - A PID whose identity cannot be read (Windows cannot read another process's command line, so every
286
- PID there reads back as unverified) is resolved through the **port** instead: `/api/health` names
287
- the instance serving it. Only when the port names a different PID — a recycled PID, a foreign
288
- listener — is the record treated as stale and cleared without signalling anything.
289
-
290
- ## Configuration
291
-
292
- Environment variables, read from `.env` (see [`.env.example`](.env.example)):
293
-
294
- | Variable | Default | Purpose |
295
- |---|---|---|
296
- | `PORT` | `3000` | Server port |
297
- | `HOST` | `localhost` | Server bind address |
298
- | `MOCK` | `false` | `true` = demo datasets, `false` = real SQLite + workspace only |
299
- | `SYNC_WORKSPACE` | `true` | Seed the workspace list from discovered omp projects — only while the list is still empty (one-time bootstrap; a curated list is never appended to) |
300
- | `KABMO_DATA_DIR` (`OMPCHAMBER_DATA_DIR`) | `~/.kabmo` | CLI registry, logs, database, wiki mirrors and TLS certificate root |
301
- | `KABMO_PORT` / `KABMO_HOST` | — | Defaults for the CLI when no flag is passed |
302
- | `KABMO_UI_PASSWORD` (`OMPCHAMBER_UI_PASSWORD`) | — | Require a UI password (see [Security](#security)); erased from the environment at boot |
303
- | `KABMO_DB_PATH` (`OMPCHAMBER_DB_PATH`, `DB_PATH`) | `~/.kabmo/db.sqlite` | SQLite database path |
304
- | `KABMO_BUN` | — | Explicit Bun binary for the CLI to spawn |
305
- | `KABMO_OMP_BIN` (`OMPCHAMBER_OMP_BIN`) | — | Explicit `omp` binary path |
306
- | `KABMO_MARKETPLACE_DIR` / `KABMO_BUNDLED_MARKETPLACE_DIR` | — | Override where plugin marketplaces are read from |
307
- | `PI_CONFIG_DIR` / `PI_CODING_AGENT_DIR` | `~/.omp` | Oh-My-Pi config root overrides |
308
- | `SKILLS_API_URL` | `https://skills.sh` | Skills catalog source |
309
- | `NPM_CONFIG_REGISTRY` | `https://registry.npmjs.org` | Registry the update check reads |
310
-
311
- Runtime state, sessions and settings live in SQLite (`~/.kabmo/db.sqlite`), the single source
312
- of truth for persisted settings. Per-session UI state (open tabs, panel widths, the picked repo,
313
- drafts) lives beside it, keyed by session id, so a reload restores the layout that session was left
314
- in.
315
-
316
130
  ## Security
317
131
 
318
- **Off by default.** A plain `bun run dev` requires no password, and no file on disk can change that:
319
- the password is supplied per run and hashed in memory. Only a session *signing* secret is persisted
320
- (`~/.kabmo/auth.json`, mode 0600), so `bun run --hot` does not sign you out on every save while
321
- nothing durable can enable authentication on its own.
132
+ The UI is **open by default**; a password is supplied per run and hashed in memory, so nothing on
133
+ disk can enable authentication on its own.
322
134
 
323
135
  ```bash
324
- kabmo serve --ui-password my-secret # or KABMO_UI_PASSWORD
325
- kabmo serve --ui-password # generates one and prints it once
326
- kabmo serve --tls --ui-password … # HTTPS, cookie gains Secure
136
+ kabmo serve --ui-password # generates one and prints it once
137
+ kabmo serve --tls --ui-password …
327
138
  ```
328
139
 
329
- - **Password** — argon2id, verified in constant time. Login is throttled per socket address
330
- (10 per 5 minutes, then a 15-minute lockout); `x-forwarded-for` is deliberately not trusted, so a
331
- forged header cannot buy a fresh budget.
332
- - **Sessions** — a stateless HMAC token in a cookie named per port (`omp_session_<port>`), because
333
- browsers key a cookie jar by host and ignore the port. `HttpOnly`, `SameSite=Lax`, and `Secure`
334
- whenever the request arrived over https — including through a proxy that sets
335
- `x-forwarded-proto`. Changing the password or calling `POST /api/auth/revoke` rotates the signing
336
- secret and ends every session everywhere. The token binds to a key derived from the password, so a
337
- restart with the same password keeps your session and a different one kills it.
338
- - **TLS** — `--tls` generates a self-signed certificate (SAN covering `localhost`, `127.0.0.1` and
339
- the machine's LAN addresses) into `~/.kabmo/tls/`. Your browser warns once, then the
340
- connection is encrypted. Without it, a password and the session cookie cross the network in
341
- cleartext, which is what `--lan` warns about.
342
- - **No TLS locally?** A tunnel terminates TLS at the edge and needs no certificate:
343
- `cloudflared tunnel --url http://127.0.0.1:3000`. Verified end to end — login, the API gate, SSE
344
- and the terminal WebSocket all work through the public URL, in dev and in the production build.
345
- - **Local sockets are origin-checked.** The terminal PTY and dictation WebSockets verify the
346
- upgrade's origin with the same predicate, because both trigger real work on this machine.
347
-
348
- Bind to loopback (the default) and reach it over SSH port-forwarding, a VPN, or a tunnel. Exposing
349
- the port directly is the option with the least margin for error.
140
+ Sessions are stateless HMAC cookies named per port, login is throttled per socket address, `--tls`
141
+ generates a self-signed certificate, and the terminal and dictation sockets are origin-checked.
142
+ Bind to loopback and reach it over SSH, a VPN or a tunnel — full detail in
143
+ **[Security →](https://github.com/kabmo-labs/kabmo/wiki/Security)**
350
144
 
351
145
  ## Architecture
352
146
 
353
147
  ```text
354
148
  src/
355
149
  ├─ client/ Preact UI — zero React packages
356
- │ ├─ components/ layout, workspace, settings, mobile, common
357
- │ ├─ hooks/ chat, workspace, ui, browser, models, settings
358
- │ ├─ data/ mock datasets, samples, themes, model + agent catalogs
359
- │ └─ tailwind.css theme tokens (--theme-ink, --theme-paper, …)
360
150
  ├─ server/ Bun-only — Elysia routes, SQLite, omp RPC bridge, fs/git/terminal
361
- │ ├─ routes/ one plugin per domain, mounted in routes/index.ts
362
- │ ├─ lib/ omp session/subagent/config, panels, wiki, updates, lifecycle
363
- │ └─ plugins/ SSR shell, static assets, compression, dev assets
364
151
  ├─ shared/ Imported by both — types, chat timeline folding, pure helpers
365
152
  └─ cli/ kabmo command (plain ESM, runs under Bun)
366
-
367
- packages/
368
- ├─ kabmo-sdk/ the panel-plugin contract (types, backend API, slots)
369
- └─ kabmo-ui/ the Preact kit a plugin builds against
370
-
371
- marketplace/plugins/
372
- ├─ command-runner/ a repository's commands, 18 sources across 15 toolchains
373
- ├─ stats/ CPU and RAM of the whole omp stack
374
- └─ session-info/ active workspace and a note per session
153
+ packages/ kabmo-sdk (plugin contract) · kabmo-ui (Preact kit)
154
+ marketplace/ command-runner · stats · session-info
375
155
  ```
376
156
 
377
- Non-obvious invariants worth reading before you edit:
378
-
379
- - **`src/shared/**` must never import a `node:` builtin or `bun:sqlite`** — it also runs in the
380
- browser. Server-only helpers belong in `src/server/lib/**`.
381
- - **Route modules keep the ported Remix shape** (`loader` for GET, `action` for mutations) so status
382
- codes stay identical; `action` owns method dispatch and returns its own `405`.
383
- - **Every internal import uses the `@/` alias**, folders mirror component names in kebab-case, and
384
- every `.ts`/`.tsx` file stays under 350 lines.
385
- - **Every right-panel view is a plugin**, including the eleven Kabmo ships: one catalog merges
386
- the built-ins and the installed ones, so a view cannot be a table in one layout and a fetch in the
387
- other.
388
-
389
- [`AGENTS.md`](AGENTS.md) is the normative reference for all of the above — the invariants behind the
390
- panels, the BTW subsystem, the PTY terminal, the plugin platform and the build/dev loop.
157
+ [`AGENTS.md`](AGENTS.md) is the short binding contract for contributors and agents. The detail —
158
+ every subsystem, the invariants and the measured reason behind each one — lives in the
159
+ **[wiki](https://github.com/kabmo-labs/kabmo/wiki)**.
391
160
 
392
161
  ## Development
393
162
 
@@ -396,16 +165,9 @@ bun run dev # watched server; the client bundle is built on demand
396
165
  bun run dev:lan # same, bound to the LAN
397
166
  ```
398
167
 
399
- One process. Bun serves the HTML shell and bundles its assets itself, so there is no separate
400
- client watcher to run and no build step before the first request: saving a server file restarts the
401
- server, saving a client file is pushed to the browser over HMR (`import.meta.hot`, wired by Bun).
402
- A dev server keeps the whole module graph open for HMR (~3.5k descriptors after one page load), so
403
- `GET /api/health` reports `fds.open` and `kabmo status` prints it — a long-lived session belongs
404
- on a production server.
405
-
406
- `bun run build` produces the production bundle — `scripts/build-client.ts` writes `dist/client`, which
407
- `kabmo serve` runs. The CLI builds it on demand the first time when it is missing, so a source
408
- checkout needs no manual build; `--dev` skips the bundle entirely.
168
+ One process: Bun serves the HTML shell and bundles its assets itself, so there is no separate client
169
+ watcher and no build before the first request — a server save restarts, a client save is pushed over
170
+ HMR. `bun run build` writes `dist/client`, which `kabmo serve` runs.
409
171
 
410
172
  Verification gates, all mandatory:
411
173
 
@@ -417,143 +179,31 @@ bun test # unit + route sui
417
179
  bun run typecheck:e2e # the Playwright specs
418
180
  ```
419
181
 
420
- The browser layer is Playwright (`tests/e2e/`, 22 specs, `*.e2e.ts`) and boots a real server
421
- subprocess against an isolated temp root per spec; `bun run test:e2e` runs it, and CI runs it on
422
- every push to `main` plus label-gated pull requests.
423
-
424
- The screenshots, GIFs and the MP4 in [`docs/assets`](docs/assets) are generated by
425
- `bun run readme:media` ([`scripts/readme-media.ts`](scripts/readme-media.ts)), which boots an
426
- isolated `MOCK=true` server (its own data dir, database, agent dir and marketplace root) and drives
427
- the real UI through Playwright, so they contain demo data only — never a real workspace. Pass
428
- `--shots` or `--video` to regenerate one half. The wordmark at the top is
429
- [`public/kabmo-wordmark.svg`](public/kabmo-wordmark.svg): the icon's K lockup with the word
430
- outlined (no font required), one ink that holds on a light *and* a dark README, and an
431
- `aria-label` so the image is still named for assistive tech.
432
-
433
- The three logos in the badge row live in [`docs/assets/brand`](docs/assets/brand) — Elysia and
434
- Shiki have no Simple Icons slug and shields rejects a remote `logo=` URL, so each mark is inlined
435
- in the badge as a base64 data URI. Their provenance, licences and recolouring are documented
436
- beside them, and `docs/assets/brand/badges.test.ts` fails if a mark and its embedded payload drift
437
- apart.
438
-
439
- ## Releasing
440
-
441
- A push to `main` cuts the release — there is no manual version bump
442
- ([`.github/workflows/release.yml`](.github/workflows/release.yml)). The workflow calls the same
443
- reusable gates a pull request runs, then publishes as the last jobs of its own run:
444
-
445
- ```text
446
- gates → e2e → packages → packages-publish
447
- → marketplace → app → app-publish
448
- ```
449
-
450
- 1. `semantic-release` reads the Conventional Commits since the last tag, decides the next
451
- version, writes it into `package.json` and a `## [x.y.z]` section of `CHANGELOG.md`, commits
452
- both, then creates the tag and the GitHub Release.
453
- 2. `publish-app.yml` checks out the tag, verifies it against `package.json`, typechecks, runs
454
- `bun test`, builds `dist/client`, packs a dry run, and runs `bun publish`. Publishing is the
455
- **last action of the release run** rather than a second run dispatched beside it, so a release
456
- cannot report success while its publish is still queued, still waiting on the `npm` environment,
457
- or already failed.
458
- 3. The same run releases `@kabmo-labs/kabmo-sdk` and `@kabmo-labs/kabmo-ui` FIRST (the app pins them, and
459
- a `workspace:` spec is substituted from `bun.lock`), then bumps the bundled marketplace plugins
460
- by their own commit history — a bundled plugin's manifest version is the whole delivery
461
- mechanism, since `syncBundledPlugins` applies a new copy only when the store's version is
462
- strictly newer.
463
-
464
- What a commit does to the version is one table, in
465
- [`release/release-rules.js`](release/release-rules.js), and `release/bump.test.js` asserts it:
466
-
467
- | Commit | Version |
468
- | --- | --- |
469
- | `feat` | minor |
470
- | `fix`, `perf`, `revert` | patch |
471
- | `feat!` / `fix!` / `perf!` / `refactor!`, or a `BREAKING CHANGE:` footer | major |
472
- | `docs`, `refactor`, `chore`, `style`, `test`, `build`, `ci` | no release |
473
-
474
- Two of those rows exist because the toolchain's own defaults are wrong here: a `!` on a type that
475
- cannot carry a breaking change (`chore!`, `docs!`, an unknown `foo!`) used to cut a major version
476
- through the analyzer's built-in `{ breaking: true }` fallback, and the parser's note regex is
477
- case-insensitive, so any body line starting with `breaking change` — colon optional — counted as a
478
- breaking note. The second one is not hypothetical: a `docs` commit whose body wrapped onto
479
- `breaking-change (!) footer` cut **v1.0.0** where the `feat`s in the range asked for v0.9.0, and the
480
- changelog printed that prose as its breaking note. Both are fixed in `release/release-rules.js`, and
481
- both are locked by `release/bump.test.js`.
482
-
483
- A `BREAKING CHANGE:` footer is therefore read only in uppercase, and only where the type allows it.
484
-
485
- Two things to set up once and one to never do:
486
-
487
- - GitHub environment **`npm`** with a secret `NPM_TOKEN`: a granular npm token with read/write on
488
- `kabmo` (and the two packages), 2FA bypass enabled and the `publish and stage` action (a
489
- stage-only token is rejected — Bun has no `npm stage publish`).
490
- - A failed publish is retried with `gh workflow run publish.yml -f tag=vX.Y.Z`, which leaves the
491
- release itself untouched. `publish.yml` is now only a TRIGGER (a published release, or that
492
- dispatch); the steps it runs live in `publish-app.yml`, which `release.yml` also calls.
493
- - **Never** write a skip marker (`[skip ci]`, `[ci skip]`, `[no ci]`) into a message pushed to
494
- `main` — it scans the whole message and silently skips the release run. Only the bot's release
495
- commit carries one, so that it does not re-trigger the workflow.
496
-
497
- ### GitHub Packages (optional, second destination)
498
-
499
- npmjs.org is the registry every install path reads, and nothing about it changes. A separate
500
- **manual** workflow can additionally publish the same packages to GitHub Packages
501
- ([`publish-github-packages.yml`](.github/workflows/publish-github-packages.yml)):
502
-
503
- ```bash
504
- gh workflow run publish-github-packages.yml -f packages="packages/kabmo-sdk packages/kabmo-ui"
505
- ```
506
-
507
- It is not part of a release, and no manifest carries `publishConfig.registry` — that one field
508
- would redirect the whole pipeline, and GitHub Packages refuses **anonymous** reads for every
509
- package, public ones included. Moving the app's release there would turn
510
- `registry.npmjs.org/@kabmo-labs%2fkabmo/latest` (what `kabmo update` asks) into a 401 for every
511
- user. Use it only for the case the public registry cannot serve: a private fork, an internal
512
- mirror, a plugin author who already has a GitHub credential.
513
-
514
- A consumer then needs two lines in `.npmrc` and a token with `read:packages`:
515
-
516
- ```ini
517
- @kabmo-labs:registry=https://npm.pkg.github.com
518
- //npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}
519
- ```
182
+ `bun run check:fast` (`bun check --no-script`) is the same program on all cores in ~0.3 s instead of
183
+ ~10 s. It is a local-loop convenience, not a gate: it uses Bun's own checker, whose verdict is not
184
+ interchangeable with `tsc`'s.
520
185
 
521
- Three facts about that registry, each measured rather than assumed:
522
-
523
- - **A first publish is private.** Visibility is per package in the repository settings; no
524
- manifest field or workflow input can set it.
525
- - **A version is never overwritten.** A republish is refused with `409`, and
526
- `bun publish --tolerate-republish` does **not** suppress it — so the script skips a version that
527
- is already there, which is also what makes a re-run finish a half-published run.
528
- - **`bun publish` needs `--registry` AND `NPM_CONFIG_TOKEN` together.** A `.npmrc`
529
- `_authToken=${VAR}` is sent literally (bun does not expand the environment), and a bare
530
- `@kabmo-labs:registry` line is ignored by `bun publish` — which would silently publish to
531
- npmjs.org instead. `tests/publish-github-packages.test.ts` pins all of it.
532
-
533
- **Token.** The workflow's own `GITHUB_TOKEN` (`packages: write`) is enough **once each package is
534
- associated with this repository**, which the `repository` field in every `package.json` already
535
- does. The one case it cannot cover is a first publish that answers
536
- `403 … The requested installation does not exist` / `permission_denied: create_package` — a
537
- `GITHUB_TOKEN` may only write to a package associated with its own repository. Add a repository
538
- secret **`GH_PACKAGES_TOKEN`** for that: a PAT **classic** with `write:packages` (GitHub Packages
539
- does not accept granular tokens). It takes precedence over the job token when present, and the
540
- script prints both possible causes on a 403 rather than echoing the registry's text.
186
+ The browser layer is Playwright (`tests/e2e/`, `*.e2e.ts`) and boots a real server subprocess against
187
+ an isolated temp root per spec; `bun run test:e2e` runs it, and CI runs it on every push to `main`
188
+ plus label-gated pull requests. The screenshots and GIFs in [`docs/assets`](docs/assets) are generated
189
+ by `bun run readme:media` against an isolated `MOCK=true` server, so they contain demo data only.
541
190
 
542
191
  ## Contributing
543
192
 
544
193
  Issues and pull requests both get an automated first pass: a GitHub App runs the `omp` agent headlessly
545
194
  to triage a new issue and to review a pull request, and its verdict is published as a `review:*` label.
546
195
 
547
- - [`CONTRIBUTING.md`](CONTRIBUTING.md) is the policy — the four mandatory gates, the pull request
548
- sections the reviewer checks, what counts as evidence, and the label a review moves through.
549
- - The command surface is `@<bot> help | review | summarize | triage | reproduce` as the first line of a
550
- comment. Run the **bot config check** workflow to print the name this repository answers to.
196
+ - [`CONTRIBUTING.md`](CONTRIBUTING.md) is the policy — the mandatory gates, the pull request sections
197
+ the reviewer checks, what counts as evidence, and the label a review moves through.
198
+ - The command surface is `@<bot> help | review | summarize | triage | reproduce` as the first line of
199
+ a comment. Run the **bot config check** workflow to print the name this repository answers to.
551
200
  - Bugs go through the issue form; requests through the feature form. Design and scope stay the
552
- maintainer's call, and `AGENTS.md` is the normative reference for the code rules.
201
+ maintainer's call, and [`AGENTS.md`](AGENTS.md) plus the wiki are the normative reference for the
202
+ code rules.
553
203
 
554
204
  ## License
555
205
 
556
- No license file is included. The source is public on GitHub and published to npm, but all rights are
557
- reserved by the author — no license is granted for redistribution or reuse.
206
+ MIT — see [`LICENSE`](LICENSE). The terms cover the application and the published packages
207
+ (`@kabmo-labs/kabmo-sdk`, `@kabmo-labs/kabmo-ui`).
558
208
 
559
209
  See [CHANGELOG.md](CHANGELOG.md) for the release history.