@kabmo-labs/kabmo 0.28.0 → 0.29.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 (225) hide show
  1. package/bunfig.toml +6 -0
  2. package/dist/client/index.html +2 -2
  3. package/dist/client/index.js +481 -472
  4. package/dist/client/static/js/{index-xzvyrxya.js → index-43z47ngg.js} +1193 -1049
  5. package/dist/client/static/js/index-naa91727.css +1 -0
  6. package/dist/client/static/{manifest-q6h8k9e0.webmanifest → manifest-vdvdqpre.webmanifest} +1 -0
  7. package/package.json +3 -2
  8. package/public/manifest.webmanifest +1 -0
  9. package/src/client/components/common/ComposerTextarea.test.tsx +109 -0
  10. package/src/client/components/common/ComposerTextarea.tsx +6 -0
  11. package/src/client/components/common/ReloadPageButton.test.tsx +14 -0
  12. package/src/client/components/common/ReloadPageButton.tsx +11 -2
  13. package/src/client/components/common/diagram-viewer/read-block.test.ts +71 -0
  14. package/src/client/components/common/diagram-viewer/read-block.ts +40 -16
  15. package/src/client/components/common/file-icon/index.tsx +7 -1
  16. package/src/client/components/common/harness-glyph/brands.ts +7 -1
  17. package/src/client/components/common/image-viewer/index.tsx +37 -165
  18. package/src/client/components/common/picker-search/index.tsx +70 -0
  19. package/src/client/components/common/search-select/index.tsx +2 -7
  20. package/src/client/components/common/zoom-pan-stage/index.tsx +258 -0
  21. package/src/client/components/common/zoom-pan-stage/zoom-pan-stage.test.tsx +87 -0
  22. package/src/client/components/layout/session-sidebar/ClassicView.tsx +1 -1
  23. package/src/client/components/layout/session-sidebar/SessionListNotice.tsx +7 -3
  24. package/src/client/components/layout/session-sidebar/about-modal/HarnessRow.tsx +4 -1
  25. package/src/client/components/layout/session-sidebar/about-modal/HarnessTable.tsx +12 -1
  26. package/src/client/components/layout/session-sidebar/about-modal/UpdateLogLine.test.tsx +82 -0
  27. package/src/client/components/layout/session-sidebar/about-modal/UpdateLogLine.tsx +23 -3
  28. package/src/client/components/layout/session-sidebar/about-modal/index.tsx +1 -0
  29. package/src/client/components/layout/session-sidebar/modern/index.tsx +1 -1
  30. package/src/client/components/layout/session-sidebar/scheduler-modal/TaskList.tsx +6 -4
  31. package/src/client/components/layout/session-sidebar/session-list-states.test.tsx +8 -0
  32. package/src/client/components/mobile/mobile-right-sidebar/EditorSurface.tsx +25 -0
  33. package/src/client/components/mobile/mobile-session-sidebar/ClassicDrawer.tsx +1 -1
  34. package/src/client/components/settings/Sidebar.tsx +6 -8
  35. package/src/client/components/settings/categories/HarnessSettings.tsx +4 -2
  36. package/src/client/components/settings/categories/PanelPluginSettings.tsx +2 -2
  37. package/src/client/components/settings/categories/PluginSettings.tsx +1 -1
  38. package/src/client/components/settings/categories/harness-settings/ConfigForm.tsx +3 -6
  39. package/src/client/components/settings/categories/panel-plugins/GitFreshness.test.tsx +36 -0
  40. package/src/client/components/settings/categories/panel-plugins/Section.tsx +1 -3
  41. package/src/client/components/settings/categories/panel-plugins/Toolbar.tsx +18 -4
  42. package/src/client/components/settings/categories/plugin-settings/MarketplacePane.tsx +64 -61
  43. package/src/client/components/settings/categories/plugin-settings/SidebarList.tsx +15 -4
  44. package/src/client/components/settings/groups.test.tsx +2 -2
  45. package/src/client/components/workspace/chat-timeline/IrcNotice.test.tsx +55 -0
  46. package/src/client/components/workspace/chat-timeline/IrcNotice.tsx +71 -0
  47. package/src/client/components/workspace/chat-timeline/MessageItem.tsx +4 -1
  48. package/src/client/components/workspace/chat-timeline/chat-input/Toolbar.test.ts +19 -0
  49. package/src/client/components/workspace/chat-timeline/chat-input/Toolbar.tsx +8 -3
  50. package/src/client/components/workspace/chat-timeline/chat-input/WaitingDependencyPicker.search.test.tsx +72 -0
  51. package/src/client/components/workspace/chat-timeline/chat-input/WaitingDependencyPicker.tsx +42 -15
  52. package/src/client/components/workspace/chat-timeline/target-picker/ParentSessionPicker.test.tsx +28 -0
  53. package/src/client/components/workspace/chat-timeline/target-picker/ParentSessionPicker.tsx +28 -10
  54. package/src/client/components/workspace/chat-timeline/target-picker/WorkspacePicker.test.tsx +47 -1
  55. package/src/client/components/workspace/chat-timeline/target-picker/WorkspacePicker.tsx +55 -5
  56. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Wait.tsx +3 -2
  57. package/src/client/components/workspace/editor/FilePane.tsx +32 -0
  58. package/src/client/components/workspace/editor/Toolbar.tsx +4 -0
  59. package/src/client/components/workspace/editor/toolbar-clusters.test.ts +1 -0
  60. package/src/client/components/workspace/editor/toolbar-clusters.tsx +5 -2
  61. package/src/client/components/workspace/editor/viewers/CsvGrid.tsx +52 -5
  62. package/src/client/components/workspace/editor/viewers/DataGrid.tsx +227 -41
  63. package/src/client/components/workspace/editor/viewers/DrawioView.tsx +93 -0
  64. package/src/client/components/workspace/editor/viewers/GridRow.tsx +91 -0
  65. package/src/client/components/workspace/editor/viewers/GridToolbar.tsx +53 -0
  66. package/src/client/components/workspace/editor/viewers/SheetView.tsx +152 -57
  67. package/src/client/components/workspace/editor/viewers/dispatch.tsx +42 -9
  68. package/src/client/components/workspace/editor/viewers/drawio-pages.test.ts +80 -0
  69. package/src/client/components/workspace/editor/viewers/drawio-pages.ts +63 -0
  70. package/src/client/components/workspace/editor/viewers/grid.test.ts +296 -0
  71. package/src/client/components/workspace/editor/viewers/use-cell-edit.ts +64 -0
  72. package/src/client/components/workspace/editor/viewers/use-grid-interaction.ts +216 -0
  73. package/src/client/components/workspace/editor/viewers/viewers.test.ts +47 -2
  74. package/src/client/components/workspace/editor/viewers/workbook.ts +149 -0
  75. package/src/client/components/workspace/file-explorer/ArchiveModals.tsx +262 -0
  76. package/src/client/components/workspace/file-explorer/ContextMenu.tsx +30 -6
  77. package/src/client/components/workspace/file-explorer/Modals.tsx +8 -3
  78. package/src/client/components/workspace/file-explorer/RootOverlays.tsx +60 -0
  79. package/src/client/components/workspace/file-explorer/RowLabel.tsx +6 -2
  80. package/src/client/components/workspace/file-explorer/TreeItem.tsx +39 -49
  81. package/src/client/components/workspace/file-explorer/TreeItemModals.tsx +80 -0
  82. package/src/client/components/workspace/file-explorer/index.tsx +53 -29
  83. package/src/client/components/workspace/file-explorer/selection.test.tsx +109 -0
  84. package/src/client/data/settings/omp-schema.json +169 -22
  85. package/src/client/glass.css +39 -14
  86. package/src/client/glass.test.ts +37 -0
  87. package/src/client/hooks/chat/composer/history.test.ts +267 -0
  88. package/src/client/hooks/chat/composer/history.ts +146 -0
  89. package/src/client/hooks/chat/timeline/ask-frames.test.ts +54 -0
  90. package/src/client/hooks/chat/timeline/ask-frames.ts +29 -1
  91. package/src/client/hooks/chat/timeline/timeline-rail.test.ts +34 -2
  92. package/src/client/hooks/chat/timeline/user-turns.ts +31 -2
  93. package/src/client/hooks/editor/file-editor-types.ts +15 -0
  94. package/src/client/hooks/editor/save-bytes.ts +79 -0
  95. package/src/client/hooks/editor/use-file-editor.test.ts +30 -0
  96. package/src/client/hooks/editor/use-file-editor.ts +53 -5
  97. package/src/client/hooks/editor/use-file-read.ts +21 -2
  98. package/src/client/hooks/editor/use-grid-selection.ts +160 -0
  99. package/src/client/hooks/models/use-harness-update.test.ts +35 -2
  100. package/src/client/hooks/models/use-harness-update.ts +49 -10
  101. package/src/client/hooks/workspace/diff-file.test.ts +72 -0
  102. package/src/client/hooks/workspace/diff-file.ts +12 -6
  103. package/src/client/hooks/workspace/file-archive.ts +220 -0
  104. package/src/client/hooks/workspace/file-clipboard.test.ts +4 -4
  105. package/src/client/hooks/workspace/file-clipboard.ts +37 -26
  106. package/src/client/hooks/workspace/file-selection.test.ts +67 -0
  107. package/src/client/hooks/workspace/file-selection.ts +156 -0
  108. package/src/client/hooks/workspace/file-tree-actions-clipboard.test.ts +5 -5
  109. package/src/client/hooks/workspace/file-tree-actions.ts +36 -8
  110. package/src/client/lib/editor/workbook-drafts.ts +42 -0
  111. package/src/client/lib/launch/file-handlers.ts +2 -2
  112. package/src/client/lib/scrollbar-activity.test.ts +21 -88
  113. package/src/client/lib/scrollbar-activity.ts +71 -73
  114. package/src/client/lib/scrollbar-events.ts +143 -0
  115. package/src/client/lib/scrollbar-input.test.ts +126 -0
  116. package/src/client/lib/scrollbar-probe.test-util.ts +107 -0
  117. package/src/client/tailwind.css +32 -1
  118. package/src/server/db.server.test.ts +50 -1
  119. package/src/server/db.server.ts +36 -3
  120. package/src/server/lib/chat/prompt-history.server.test.ts +92 -0
  121. package/src/server/lib/chat/prompt-history.server.ts +65 -0
  122. package/src/server/lib/chat/schema.server.ts +35 -0
  123. package/src/server/lib/db/schema.ts +3 -0
  124. package/src/server/lib/fs/archive.test.ts +139 -0
  125. package/src/server/lib/fs/archive.ts +259 -0
  126. package/src/server/lib/fs/git-diff.test.ts +26 -1
  127. package/src/server/lib/fs/git-diff.ts +43 -15
  128. package/src/server/lib/harness/launch-table.ts +19 -0
  129. package/src/server/lib/harness/provider-entry.ts +1 -1
  130. package/src/server/lib/harness/provider-file.server.ts +1 -1
  131. package/src/server/lib/harness/provider-sources.server.ts +2 -1
  132. package/src/server/lib/harness/provider-write.server.ts +2 -1
  133. package/src/server/lib/harness/update-job-store.ts +12 -0
  134. package/src/server/lib/harness/update-queue.server.ts +15 -10
  135. package/src/server/lib/omp/rpc/frame-fold-signals.test.ts +5 -1
  136. package/src/server/lib/omp/rpc/frame-fold.test.ts +5 -1
  137. package/src/server/lib/omp/rpc/lifecycle.test.ts +4 -0
  138. package/src/server/lib/omp/session/auto-title.server.test.ts +4 -0
  139. package/src/server/lib/omp/session/delete.server.ts +1 -0
  140. package/src/server/lib/omp/session/goal-driver.test.ts +5 -1
  141. package/src/server/lib/omp/session/goal-settings.test.ts +5 -1
  142. package/src/server/lib/panels/auto-update.server.test.ts +5 -2
  143. package/src/server/lib/panels/git-update.server.test.ts +5 -2
  144. package/src/server/lib/panels/install.server.test.ts +5 -2
  145. package/src/server/lib/panels/remove.server.test.ts +5 -2
  146. package/src/server/routes/agent/command.ts +11 -0
  147. package/src/server/routes/agent/new.ts +5 -0
  148. package/src/server/routes/chat/index.ts +5 -0
  149. package/src/server/routes/chat/prompt-history.test.ts +67 -0
  150. package/src/server/routes/chat/prompt-history.ts +31 -0
  151. package/src/server/routes/chat/stream.test.ts +21 -0
  152. package/src/server/routes/chat/stream.ts +5 -0
  153. package/src/server/routes/fs/action-archive.test.ts +128 -0
  154. package/src/server/routes/fs/action-bulk.ts +106 -0
  155. package/src/server/routes/fs/action-save-bytes.test.ts +59 -0
  156. package/src/server/routes/fs/action-transfer.test.ts +26 -0
  157. package/src/server/routes/fs/action.ts +91 -11
  158. package/src/server/routes/fs/archive.ts +20 -0
  159. package/src/server/routes/fs/grant.test.ts +5 -2
  160. package/src/server/routes/fs/index.ts +2 -0
  161. package/src/server/routes/fs/scope.test.ts +6 -2
  162. package/src/server/routes/harness/import-action.ts +1 -1
  163. package/src/server/routes/harness/root.ts +6 -1
  164. package/src/server/routes/harness/summary.test.ts +50 -0
  165. package/src/server/routes/harness/update-status.ts +41 -2
  166. package/src/server/routes/harness/update.test.ts +56 -2
  167. package/src/server/routes/sessions/delete.test.ts +4 -0
  168. package/src/shared/lib/chat/ask-form/index.ts +39 -31
  169. package/src/shared/lib/chat/ask-form/labels.ts +46 -0
  170. package/src/shared/lib/chat/ask-form/tokens.ts +11 -2
  171. package/src/shared/lib/chat/ask-form.test.ts +57 -0
  172. package/src/shared/lib/chat/ask-questions.ts +31 -0
  173. package/src/shared/lib/chat/composer/history.test.ts +67 -0
  174. package/src/shared/lib/chat/composer/history.ts +61 -0
  175. package/src/shared/lib/chat/irc-notice.ts +42 -0
  176. package/src/shared/lib/chat/timeline/fork-anchor.test.ts +2 -0
  177. package/src/shared/lib/chat/todo/parser.ts +6 -4
  178. package/src/shared/lib/fs/archive.test.ts +101 -0
  179. package/src/shared/lib/fs/archive.ts +191 -0
  180. package/src/shared/lib/fs/clipboard.test.ts +32 -7
  181. package/src/shared/lib/fs/clipboard.ts +59 -14
  182. package/src/shared/lib/fs/csv.test.ts +50 -0
  183. package/src/shared/lib/fs/csv.ts +40 -0
  184. package/src/shared/lib/fs/document-kind.test.ts +13 -6
  185. package/src/shared/lib/fs/document-kind.ts +18 -6
  186. package/src/shared/lib/fs/file-kind-classify.test.ts +4 -0
  187. package/src/shared/lib/fs/file-kind.test.ts +2 -7
  188. package/src/shared/lib/fs/file-kind.ts +4 -2
  189. package/src/shared/lib/fs/grid-edit.test.ts +24 -0
  190. package/src/shared/lib/fs/grid-edit.ts +29 -0
  191. package/src/shared/lib/fs/grid-selection.test.ts +137 -0
  192. package/src/shared/lib/fs/grid-selection.ts +138 -0
  193. package/src/shared/lib/harness/brand-color.ts +5 -0
  194. package/src/shared/lib/harness/catalog.test.ts +22 -0
  195. package/src/shared/lib/harness/catalog.ts +12 -1
  196. package/src/shared/lib/harness/config-fields.test.ts +25 -0
  197. package/src/shared/lib/harness/config-fields.ts +33 -3
  198. package/src/shared/lib/harness/dialects.ts +1 -1
  199. package/src/shared/lib/harness/mcp-facts.ts +4 -0
  200. package/src/shared/lib/harness/provider-contracts.ts +109 -0
  201. package/src/shared/lib/harness/provider-facts.test.ts +2 -1
  202. package/src/shared/lib/harness/provider-facts.ts +24 -115
  203. package/src/shared/lib/harness/provider-lookup.ts +37 -0
  204. package/src/shared/lib/harness/providers.ts +2 -1
  205. package/src/shared/lib/harness/updates.ts +10 -0
  206. package/src/shared/lib/omp/session/mapper.test.ts +31 -0
  207. package/src/shared/lib/omp/session/mapper.ts +17 -0
  208. package/src/shared/lib/omp/session/messages-map-notice.test.ts +68 -0
  209. package/src/shared/lib/omp/session/messages-map.test.ts +1 -35
  210. package/src/shared/lib/omp/session/messages-map.ts +17 -0
  211. package/src/shared/lib/omp/session/wait.ts +10 -1
  212. package/src/shared/lib/settings/sections.ts +8 -4
  213. package/src/shared/lib/ui/picker-filter.test.ts +23 -0
  214. package/src/shared/lib/ui/picker-filter.ts +20 -0
  215. package/src/shared/types/chat.ts +4 -0
  216. package/src/shared/types/harness.ts +5 -1
  217. package/src/shared/types/omp/session.ts +18 -0
  218. package/src/shared/types/settings/state.ts +6 -6
  219. package/src/shared/types/todo.ts +3 -1
  220. package/src/test-support/file-actions.test-util.ts +4 -0
  221. package/src/test-support/file-archive.test-util.ts +41 -0
  222. package/src/test-support/file-clipboard.test-util.ts +9 -6
  223. package/src/test-support/harness-table.test-util.ts +2 -0
  224. package/src/test-support/preload.ts +46 -0
  225. package/dist/client/static/js/index-81f7berm.css +0 -1
@@ -43,101 +43,7 @@
43
43
  */
44
44
 
45
45
  import type { HarnessId } from '@/shared/lib/harness/catalog';
46
- import type { CanonicalProtocol } from '@/shared/lib/harness/dialects';
47
-
48
- /** How a harness stores providers. */
49
- export type ProviderRegistryKind =
50
- /** A YAML document with a `providers` map (omp). */
51
- | 'yaml-providers'
52
- /** A JSON document with a `provider` map (opencode). */
53
- | 'json-provider'
54
- /** A TOML document with a `model_providers` table (codex). */
55
- | 'toml-model-providers'
56
- /** A JSON document with a `providers` map (pi). */
57
- | 'json-providers'
58
- /** A TOML document with a `providers` table (kimi). */
59
- | 'toml-providers'
60
- /** A JSON settings document with `modelProviders` (qwen). */
61
- | 'json-model-providers'
62
- /** ZCode's personal-provider rules: arrays under `config.providerConfigRules`
63
- * and `config.modelConfigRules` (3.12+). */
64
- | 'zcode-provider-rules'
65
- /** No provider registry this build writes; an env contract instead. */
66
- | 'env'
67
- /** A registry that exists but belongs to the agent's own writer. */
68
- | 'agent-managed'
69
- /** Nothing to offer. */
70
- | 'none';
71
-
72
- export interface ProviderRegistry {
73
- kind: ProviderRegistryKind;
74
- /** Path relative to the user's home, or null when there is no file. */
75
- file: string | null;
76
- /** Dot-path the providers live under, for the editors and the reader. */
77
- pointer: string;
78
- /** False when Kabmo may read the entries but must not write them. */
79
- writable: boolean;
80
- /** The base-URL field's name in THIS format, so a writer does not guess. */
81
- baseUrlField: string | null;
82
- /** The API-key field's name in this format. */
83
- apiKeyField: string | null;
84
- /** The dialect/SDK field's name, when the format has one. */
85
- dialectField?: string;
86
- /** How this format spells a model entry, for the model list. */
87
- modelsField: string | null;
88
- /**
89
- * Provider ids this registry ships itself. An entry under one of these is the
90
- * VENDOR's provider with an endpoint override — not a custom provider — and an
91
- * import must never offer or write one: copying `anthropic` out of omp into
92
- * codex would replace the vendor entry instead of adding a gateway.
93
- */
94
- bundledIds?: readonly string[];
95
- /**
96
- * False when this registry writes a MODEL TABLE beside the provider (kimi's
97
- * `[models.<alias>]`, codex's `model`), so a provider alone serves nothing.
98
- * The writer then emits the model rows too instead of leaving a husk.
99
- */
100
- modelsAreRows?: boolean;
101
- }
102
-
103
- /**
104
- * One picker alias a vendor SDK resolves from the environment. Claude Code's
105
- * `opus`/`sonnet`/`haiku`/`fable` aliases resolve to ids the VENDOR ships
106
- * unless `ANTHROPIC_DEFAULT_<FAMILY>_MODEL` pins them; a gateway that lists
107
- * only its own ids answers the vendor ids with `400 model not found`.
108
- */
109
- export interface EnvModelAlias {
110
- family: string;
111
- env: string;
112
- }
113
-
114
- /** The env names an `environment` harness reads, in the order its docs list. */
115
- export interface EnvProviderContract {
116
- baseUrl: string;
117
- apiKey: string;
118
- model?: string;
119
- modelAliases?: readonly EnvModelAlias[];
120
- }
121
-
122
- export interface HarnessProviderFacts {
123
- registry: ProviderRegistry;
124
- /** Present only for an `env` harness. */
125
- env?: EnvProviderContract;
126
- /**
127
- * The single wire protocol an `environment` harness's SDK speaks. Claude Code
128
- * is Anthropic Messages and Antigravity is Google GenAI — an endpoint that
129
- * speaks neither cannot be carried there, and an import has to say so instead
130
- * of writing a URL the agent will fail every request against.
131
- */
132
- envProtocol?: CanonicalProtocol;
133
- /** True when adding a provider ADDS a choice; false when it replaces the
134
- * agent's own endpoint (Claude Code, Antigravity). */
135
- createsChoice: boolean;
136
- /** Harnesses whose entries this one can import, because the fields line up. */
137
- importFrom: readonly HarnessId[];
138
- /** One sentence for the settings card, in the vendor's own vocabulary. */
139
- summary: string;
140
- }
46
+ import type { HarnessProviderFacts } from '@/shared/lib/harness/provider-contracts';
141
47
 
142
48
  /**
143
49
  * The table. A harness missing here is `none` — and `providerFacts` says so
@@ -249,6 +155,29 @@ export const HARNESS_PROVIDER_FACTS: Readonly<Partial<Record<HarnessId, HarnessP
249
155
  importFrom: [],
250
156
  summary: 'MiniMax stores BYOK providers itself; add one with `mcode`, and Kabmo will see the models it publishes.',
251
157
  },
158
+ jcode: {
159
+ registry: {
160
+ // jcode's own wizard/settings write this file, so Kabmo only reads it.
161
+ kind: 'agent-managed', file: '.jcode/config.toml', pointer: 'providers',
162
+ writable: false, baseUrlField: null, apiKeyField: null, modelsField: null,
163
+ },
164
+ createsChoice: true,
165
+ importFrom: [],
166
+ summary: 'jcode keeps providers in ~/.jcode/config.toml, written by its setup wizard and settings menu; Kabmo shows the models it publishes but does not edit that file.',
167
+ },
168
+ grok: {
169
+ registry: {
170
+ // MEASURED on 1.0.77: GROK_MODELS_BASE_URL + XAI_API_KEY alone still hit
171
+ // "Not signed in"; a `[model.<name>]` table with its own `api_key` runs
172
+ // without any xAI login (headless prompt answered). That TOML layout has
173
+ // no writer in Kabmo, so the file is read-only here.
174
+ kind: 'agent-managed', file: '.grok/config.toml', pointer: 'model',
175
+ writable: false, baseUrlField: null, apiKeyField: null, modelsField: null,
176
+ },
177
+ createsChoice: true,
178
+ importFrom: [],
179
+ summary: 'Grok takes custom models as [model.<name>] tables in ~/.grok/config.toml (model, base_url, api_key or env_key, context_window). Kabmo does not write that file; xAI models still need `grok login`.',
180
+ },
252
181
  claude: {
253
182
  registry: {
254
183
  kind: 'env', file: null, pointer: 'environment',
@@ -327,23 +256,3 @@ export const HARNESS_PROVIDER_FACTS: Readonly<Partial<Record<HarnessId, HarnessP
327
256
  summary: 'ZCode keeps user-added providers in ~/.zcode/v2/provider_config.json (3.12+), as provider rules plus one model rule per id. Kabmo merges one provider into that file and leaves the app’s legacy config.json untouched. Chats still need a ZCode runtime: the desktop app, or `zcode-app-cli` on PATH (`ZCODE_BIN` for a custom install).',
328
257
  },
329
258
  };
330
-
331
- /** The facts for a harness, or the honest "nothing to offer" record. */
332
- export function providerFacts(id: string | null | undefined): HarnessProviderFacts {
333
- const entry = id ? (HARNESS_PROVIDER_FACTS as Record<string, HarnessProviderFacts | undefined>)[id] : undefined;
334
- return entry ?? {
335
- registry: {
336
- kind: 'none', file: null, pointer: '—',
337
- writable: false, baseUrlField: null, apiKeyField: null, modelsField: null,
338
- },
339
- createsChoice: false,
340
- importFrom: [],
341
- summary: 'This build knows nothing about providers for that harness.',
342
- };
343
- }
344
-
345
- /** True when the settings page should draw a registry editor. */
346
- export function managesProviders(id: string | null | undefined): boolean {
347
- const registry = providerFacts(id).registry;
348
- return registry.writable && registry.kind !== 'env' && registry.kind !== 'none';
349
- }
@@ -0,0 +1,37 @@
1
+ /**
2
+ * @license
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ /**
7
+ * Lookups over the measured registry table in `provider-facts.ts`.
8
+ *
9
+ * Split from the table so the data module stays inside the file ceiling as the
10
+ * catalog grows; the table is the single owner of the facts, this module only
11
+ * answers "what does this harness say" for callers that do not need every row.
12
+ */
13
+
14
+ import {
15
+ HARNESS_PROVIDER_FACTS,
16
+ } from '@/shared/lib/harness/provider-facts';
17
+ import type { HarnessProviderFacts } from '@/shared/lib/harness/provider-contracts';
18
+
19
+ /** The facts for a harness, or the honest "nothing to offer" record. */
20
+ export function providerFacts(id: string | null | undefined): HarnessProviderFacts {
21
+ const entry = id ? (HARNESS_PROVIDER_FACTS as Record<string, HarnessProviderFacts | undefined>)[id] : undefined;
22
+ return entry ?? {
23
+ registry: {
24
+ kind: 'none', file: null, pointer: '—',
25
+ writable: false, baseUrlField: null, apiKeyField: null, modelsField: null,
26
+ },
27
+ createsChoice: false,
28
+ importFrom: [],
29
+ summary: 'This build knows nothing about providers for that harness.',
30
+ };
31
+ }
32
+
33
+ /** True when the settings page should draw a registry editor. */
34
+ export function managesProviders(id: string | null | undefined): boolean {
35
+ const registry = providerFacts(id).registry;
36
+ return registry.writable && registry.kind !== 'env' && registry.kind !== 'none';
37
+ }
@@ -21,7 +21,8 @@
21
21
  */
22
22
 
23
23
  import type { HarnessId } from '@/shared/lib/harness/catalog';
24
- import { providerFacts, type ProviderRegistryKind } from '@/shared/lib/harness/provider-facts';
24
+ import type { ProviderRegistryKind } from '@/shared/lib/harness/provider-contracts';
25
+ import { providerFacts } from '@/shared/lib/harness/provider-lookup';
25
26
 
26
27
  /** The level a settings panel is drawn at. */
27
28
  export type ProviderSupportLevel = 'full' | 'environment' | 'configurable' | 'none';
@@ -145,6 +145,16 @@ export const HARNESS_UPDATE_FACTS: Readonly<Partial<Record<HarnessId, HarnessUpd
145
145
  cli: { bin: 'zcode', name: 'ZCode' },
146
146
  note: 'The row reports the ACP bridge; the ZCode CLI it drives installs with the desktop app.',
147
147
  },
148
+ jcode: {
149
+ kind: 'self',
150
+ command: 'jcode update',
151
+ note: 'The CLI updates itself (and checks on launch); Kabmo runs its own subcommand rather than replacing the install.',
152
+ },
153
+ grok: {
154
+ kind: 'self',
155
+ command: 'grok update',
156
+ note: 'The CLI updates itself (`grok update`, plus `[cli] auto_update`); Kabmo runs its own subcommand.',
157
+ },
148
158
  };
149
159
 
150
160
  /** The facts for a harness, or "Kabmo knows nothing about updating it". */
@@ -63,6 +63,37 @@ describe('toChatMessage — custom frames', () => {
63
63
  expect(toChatMessage({ role: 'custom', customType: 'x', content: [] })).toBeNull();
64
64
  expect(toChatMessage({ role: 'custom', customType: 'x', content: ' ' })).toBeNull();
65
65
  });
66
+
67
+ test('reads an injected peer message from details, not the prompt envelope', () => {
68
+ // omp 18.18.9: a message that ends a wait arrives as its own turn; the
69
+ // content is the `<irc>` envelope, so the raw body must come from details.
70
+ const msg = toChatMessage({
71
+ role: 'custom',
72
+ id: 'irc-1',
73
+ customType: 'irc:incoming',
74
+ content: '<irc>\nIncoming IRC message from agent `Sleeper`:\n\ndone\n\nIf response expected, reply via `write`.</irc>',
75
+ details: { id: '159edc11', from: 'Sleeper', message: 'done', replyTo: 'main', progress: true },
76
+ });
77
+ expect(msg).toEqual({
78
+ id: 'irc-1',
79
+ role: 'ai',
80
+ content: '',
81
+ notice: 'done',
82
+ noticeSource: 'irc:incoming',
83
+ irc: { id: '159edc11', from: 'Sleeper', message: 'done', replyTo: 'main', progress: true },
84
+ });
85
+ expect(msg?.content).not.toContain('<irc>');
86
+ });
87
+
88
+ test('falls back to the envelope notice when an irc frame carries no details', () => {
89
+ const msg = toChatMessage({
90
+ role: 'custom',
91
+ customType: 'irc:incoming',
92
+ content: '<irc>from `Sleeper`: done</irc>',
93
+ });
94
+ expect(msg?.irc).toBeUndefined();
95
+ expect(msg?.notice).toBe('<irc>from `Sleeper`: done</irc>');
96
+ });
66
97
  });
67
98
 
68
99
  describe('toChatMessage — notice roles and reminder envelopes', () => {
@@ -15,6 +15,7 @@
15
15
  import type { ChatMessageData, ToolCallData } from '@/shared/types';
16
16
  import { extractInlinedTextAttachments, extractText, extractUserImageAttachments, parseMessageBlocks, stripInlinedTextAttachments, toToolCallData } from '@/shared/lib/omp/session/parse-message-blocks';
17
17
  import { developerTurnNotice, reminderPartIndex } from '@/shared/lib/chat/notice-row';
18
+ import { IRC_INCOMING_CUSTOM_TYPE, ircMessageFromDetails } from '@/shared/lib/chat/irc-notice';
18
19
  import { deriveTurnError } from '@/shared/lib/omp/session/turn-error';
19
20
  import { formatClock } from '@/shared/lib/format/time';
20
21
  import { toEpochMs } from '@/shared/lib/omp/session/timestamps';
@@ -42,6 +43,22 @@ export function toolResultText(value: unknown): string {
42
43
  export function toChatMessage(raw: Record<string, unknown>, streaming = true): ChatMessageData | null {
43
44
  if (raw.role === 'custom') {
44
45
  if (raw.customType === 'session_exit') return null; // runtime plumbing, not user-visible
46
+ // A peer agent's message is a real turn, not a runtime notice: omp 18.18.9
47
+ // delivers it here instead of inside a `wait` result. Its content is the
48
+ // `<irc>` prompt envelope, so the row is built from `details`.
49
+ if (raw.customType === IRC_INCOMING_CUSTOM_TYPE) {
50
+ const irc = ircMessageFromDetails(raw.details);
51
+ if (irc) {
52
+ return {
53
+ id: typeof raw.id === 'string' ? raw.id : `irc-${Date.now()}`,
54
+ role: 'ai',
55
+ content: '',
56
+ notice: irc.message,
57
+ noticeSource: IRC_INCOMING_CUSTOM_TYPE,
58
+ irc,
59
+ };
60
+ }
61
+ }
45
62
  const content = raw.content;
46
63
  const text = typeof content === 'string'
47
64
  ? content
@@ -0,0 +1,68 @@
1
+ /**
2
+ * @license
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ /**
7
+ * `noticeFromCustomMessage` — the JSONL reload branch for `custom_message` and
8
+ * `custom` entries.
9
+ *
10
+ * Split from `messages-map.test.ts` when the file reached the 350-line ceiling.
11
+ * Pinned here: runtime plumbing and Kabmo's mode bookkeeping never reach the
12
+ * timeline, notice text loses ANSI and the `system-notice` wrapper, and a peer
13
+ * agent's `irc:incoming` entry becomes a message card from `details` rather than
14
+ * printing omp's `<irc>` prompt envelope.
15
+ */
16
+
17
+ import { describe, expect, test } from 'bun:test';
18
+
19
+ import { noticeFromCustomMessage } from '@/shared/lib/omp/session/messages-map';
20
+
21
+ describe('noticeFromCustomMessage', () => {
22
+ test('drops session_exit and Kabmo mode bookkeeping entries', () => {
23
+ expect(noticeFromCustomMessage({ customType: 'session_exit', content: 'bye' })).toBeNull();
24
+ expect(noticeFromCustomMessage({ customType: 'chamber-goal-state', content: 'x' })).toBeNull();
25
+ expect(noticeFromCustomMessage({ customType: 'chamber-plan-state', content: 'x' })).toBeNull();
26
+ });
27
+
28
+ test('strips ANSI and the system-notice wrapper from the text', () => {
29
+ const msg = noticeFromCustomMessage({ customType: 'launch-completion', id: 'n1', timestamp: '2026-01-02T03:04:05.000Z', content: '\u001b[31mred\u001b[0m' });
30
+ expect(msg).toEqual({ id: 'n1', role: 'ai', content: '', notice: 'red', noticeSource: 'launch-completion', date: '2026-01-02T03:04:05.000Z' });
31
+ });
32
+
33
+ test('joins text blocks and ignores non-text blocks', () => {
34
+ const msg = noticeFromCustomMessage({ customType: 'goal-continuation', content: [{ type: 'text', text: 'a' }, { type: 'image' }, { type: 'text', text: 'b' }] });
35
+ expect(msg?.notice).toBe('ab');
36
+ expect(msg?.noticeSource).toBe('goal-continuation');
37
+ });
38
+
39
+ test('drops an entry with no prose', () => {
40
+ expect(noticeFromCustomMessage({ customType: 'x', content: ' ' })).toBeNull();
41
+ expect(noticeFromCustomMessage({ customType: 'x', content: { type: 'text', text: 'a' } })).toBeNull();
42
+ });
43
+
44
+ test('an entry with no customType is still a notice, without a source', () => {
45
+ const msg = noticeFromCustomMessage({ content: 'hi' });
46
+ expect(msg?.notice).toBe('hi');
47
+ expect(msg?.noticeSource).toBeUndefined();
48
+ });
49
+
50
+ test('reads a persisted peer message from details, keeping the entry clock', () => {
51
+ const msg = noticeFromCustomMessage({
52
+ customType: 'irc:incoming',
53
+ id: 'irc-1',
54
+ timestamp: '2026-01-02T03:04:05.000Z',
55
+ content: '<irc>\nIncoming IRC message from agent `Sleeper`:\n\ndone\n</irc>',
56
+ details: { id: '159edc11', from: 'Sleeper', message: 'done' },
57
+ });
58
+ expect(msg).toEqual({
59
+ id: 'irc-1',
60
+ role: 'ai',
61
+ content: '',
62
+ notice: 'done',
63
+ noticeSource: 'irc:incoming',
64
+ irc: { id: '159edc11', from: 'Sleeper', message: 'done' },
65
+ date: '2026-01-02T03:04:05.000Z',
66
+ });
67
+ });
68
+ });
@@ -28,11 +28,7 @@ import { mkdtempSync, rmSync, writeFileSync } from 'node:fs';
28
28
  import { tmpdir } from 'node:os';
29
29
  import { join } from 'node:path';
30
30
 
31
- import {
32
- collectToolOutputs,
33
- noticeFromCustomMessage,
34
- toChatMessage,
35
- } from '@/shared/lib/omp/session/messages-map';
31
+ import { collectToolOutputs, toChatMessage } from '@/shared/lib/omp/session/messages-map';
36
32
  import { parseAssistantContent, resultOutput, roleFor } from '@/shared/lib/omp/session/messages-parse';
37
33
  import type { OmpMessageEntry } from '@/shared/lib/omp/session/messages-parse';
38
34
  import { isNoticeRow } from '@/shared/lib/chat/notice-row';
@@ -225,36 +221,6 @@ describe('collectToolOutputs', () => {
225
221
  });
226
222
  });
227
223
 
228
- describe('noticeFromCustomMessage', () => {
229
- test('drops session_exit and Kabmo mode bookkeeping entries', () => {
230
- expect(noticeFromCustomMessage({ customType: 'session_exit', content: 'bye' })).toBeNull();
231
- expect(noticeFromCustomMessage({ customType: 'chamber-goal-state', content: 'x' })).toBeNull();
232
- expect(noticeFromCustomMessage({ customType: 'chamber-plan-state', content: 'x' })).toBeNull();
233
- });
234
-
235
- test('strips ANSI and the system-notice wrapper from the text', () => {
236
- const msg = noticeFromCustomMessage({ customType: 'launch-completion', id: 'n1', timestamp: '2026-01-02T03:04:05.000Z', content: '\u001b[31mred\u001b[0m' });
237
- expect(msg).toEqual({ id: 'n1', role: 'ai', content: '', notice: 'red', noticeSource: 'launch-completion', date: '2026-01-02T03:04:05.000Z' });
238
- });
239
-
240
- test('joins text blocks and ignores non-text blocks', () => {
241
- const msg = noticeFromCustomMessage({ customType: 'goal-continuation', content: [{ type: 'text', text: 'a' }, { type: 'image' }, { type: 'text', text: 'b' }] });
242
- expect(msg?.notice).toBe('ab');
243
- expect(msg?.noticeSource).toBe('goal-continuation');
244
- });
245
-
246
- test('drops an entry with no prose', () => {
247
- expect(noticeFromCustomMessage({ customType: 'x', content: ' ' })).toBeNull();
248
- expect(noticeFromCustomMessage({ customType: 'x', content: { type: 'text', text: 'a' } })).toBeNull();
249
- });
250
-
251
- test('an entry with no customType is still a notice, without a source', () => {
252
- const msg = noticeFromCustomMessage({ content: 'hi' });
253
- expect(msg?.notice).toBe('hi');
254
- expect(msg?.noticeSource).toBeUndefined();
255
- });
256
- });
257
-
258
224
  const tempDirs: string[] = [];
259
225
  afterAll(() => {
260
226
  for (const dir of tempDirs) rmSync(dir, { recursive: true, force: true });
@@ -10,6 +10,7 @@ import { isRecord } from '@/shared/lib/util/guards';
10
10
  import { withoutShellTrace } from '@/shared/lib/omp/session/shell-trace';
11
11
  import { normalizeNoticeText } from '@/shared/lib/chat/notice-text';
12
12
  import { developerTurnNotice, reminderPartIndex } from '@/shared/lib/chat/notice-row';
13
+ import { IRC_INCOMING_CUSTOM_TYPE, ircMessageFromDetails } from '@/shared/lib/chat/irc-notice';
13
14
  import { deriveTurnError } from '@/shared/lib/omp/session/turn-error';
14
15
  import { toEpochMs } from '@/shared/lib/omp/session/timestamps';
15
16
  import { CHAMBER_GOAL_STATE_ENTRY, CHAMBER_PLAN_STATE_ENTRY, KABMO_GOAL_STATE_ENTRY, KABMO_PLAN_STATE_ENTRY } from '@/shared/lib/omp/mode/types';
@@ -281,6 +282,22 @@ export function noticeFromCustomMessage(record: Record<string, unknown>): ChatMe
281
282
  const id = typeof record.id === 'string' ? record.id : `notice-${Date.now()}`;
282
283
 
283
284
  if (customType === 'session_exit') return null;
285
+ // A peer agent's message: omp 18.18.9 injects it as this custom turn, and its
286
+ // `details` holds the sender and the raw body behind the `<irc>` envelope.
287
+ if (customType === IRC_INCOMING_CUSTOM_TYPE) {
288
+ const irc = ircMessageFromDetails(record.details);
289
+ if (irc) {
290
+ return {
291
+ id,
292
+ role: 'ai',
293
+ content: '',
294
+ notice: irc.message,
295
+ noticeSource: IRC_INCOMING_CUSTOM_TYPE,
296
+ irc,
297
+ date,
298
+ };
299
+ }
300
+ }
284
301
  // The Kabmo's own mode bookkeeping. These entries carry no prose — they are
285
302
  // a transition log the console reads for the composer's toggles (see
286
303
  // `server/lib/omp/session/modes.ts`) — and rendering them would put a raw
@@ -15,9 +15,14 @@
15
15
  * resolvedModel?,resolvedThinkingLevel?,resultText?,errorText?,
16
16
  * agentUrlId?}] }
17
17
  * { op:'wait', jobs:[], interrupted:true } // cut short by a message
18
- * { op:'wait', from:<sender>, waited:[{from,to,body,ts}] } // peer messages woke it
18
+ * { op:'wait', from:<sender>, waited:[{from,to,body,ts}] } // omp ≤18.18.6 only
19
19
  * { op:'cancel', jobs:[...], cancelled:[{id,status}] }
20
20
  *
21
+ * omp 18.18.9 removed `waited`: a message that ends the wait is handed to the
22
+ * session, which injects it as its own `irc:incoming` turn, and the wait answers
23
+ * with `interrupted:true` and the prose "Wait interrupted by message." The field
24
+ * is still read because a session recorded on an older omp keeps it in its JSONL.
25
+ *
21
26
  * While the call is still blocking omp re-emits the SAME snapshot every 500 ms
22
27
  * (`PROGRESS_INTERVAL_MS`) with a fresh `durationMs`, so the elapsed clock is
23
28
  * the runtime's own measurement rather than a client-side guess.
@@ -180,6 +185,10 @@ function messageOf(value: unknown): WaitMessage | undefined {
180
185
  * on 18.16.0 keeps it in its JSONL. Reading only the array dropped the message
181
186
  * block and the `message received` chip on every new wait, silently: `isRecord`
182
187
  * refuses an array, so the old code answered `undefined` rather than failing.
188
+ *
189
+ * omp 18.18.9 stopped producing the field altogether (see the module header).
190
+ * These rows survive for sessions recorded before that, where the message has
191
+ * no independent transcript turn to render instead.
183
192
  */
184
193
  function messagesOf(value: unknown): WaitMessage[] {
185
194
  const rows = Array.isArray(value) ? value : [value];
@@ -14,11 +14,15 @@
14
14
  *
15
15
  * `HARNESSES` is its own group rather than a member of `OMP`: omp's pages are one
16
16
  * engine's own config (engine state, providers, agents, behavior, commands,
17
- * MCP), while that group holds OTHER agents entirely — a different transport, a
18
- * different config file, and per-agent sections. Filing them together made the
19
- * sidebar read as "omp settings" followed by seven pages that are not omp.
17
+ * MCP, plugins, skills), while that group holds OTHER agents entirely — a
18
+ * different transport, a different config file, and per-agent sections. Filing
19
+ * them together made the sidebar read as "omp settings" followed by seven pages
20
+ * that are not omp.
21
+ *
22
+ * There is no `LIBRARY` group: plugins, skills and the skills catalog are omp's
23
+ * own extension surface, so they file under `OMP` with the rest of its config.
20
24
  */
21
25
 
22
- export const SETTINGS_SECTIONS = ['KABMO', 'WORKSPACE', 'OMP', 'HARNESSES', 'LIBRARY'] as const;
26
+ export const SETTINGS_SECTIONS = ['KABMO', 'WORKSPACE', 'OMP', 'HARNESSES'] as const;
23
27
 
24
28
  export type SettingsSection = (typeof SETTINGS_SECTIONS)[number];
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @license
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ import { describe, expect, test } from 'bun:test';
7
+ import { matchesPickerQuery } from '@/shared/lib/ui/picker-filter';
8
+
9
+ describe('matchesPickerQuery', () => {
10
+ test('an empty query keeps every row', () => {
11
+ expect(matchesPickerQuery('anything', '')).toBe(true);
12
+ expect(matchesPickerQuery('anything', ' ')).toBe(true);
13
+ });
14
+
15
+ test('ignores case and separators, so a hyphenated id is found by its words', () => {
16
+ expect(matchesPickerQuery('claude-sonnet-5', 'sonnet 5')).toBe(true);
17
+ expect(matchesPickerQuery('Build pipeline', 'BUILD')).toBe(true);
18
+ });
19
+
20
+ test('does not match a term the row never contains', () => {
21
+ expect(matchesPickerQuery('Build pipeline', 'deploy')).toBe(false);
22
+ });
23
+ });
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @license
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ /**
7
+ * The match rule every searchable picker uses.
8
+ *
9
+ * Case- and separator-insensitive, so "claude sonnet" finds `claude-sonnet-5`
10
+ * and "build pipe" finds "Build pipeline". It lives in `shared/lib` because two
11
+ * surfaces ask the same question — `SearchSelect` in settings and the composer's
12
+ * target pickers — and a second copy of the fold rule drifts the moment one of
13
+ * them is tuned.
14
+ */
15
+ export function matchesPickerQuery(haystack: string, query: string): boolean {
16
+ const needle = query.trim();
17
+ if (!needle) return true;
18
+ const fold = (text: string) => text.toLowerCase().replace(/[^a-z0-9]+/g, '');
19
+ return fold(haystack).includes(fold(needle));
20
+ }
@@ -1,5 +1,6 @@
1
1
  import type { ReactNode } from 'preact/compat';
2
2
  import type { ApprovalMode } from '@/shared/lib/omp/config/access-mode';
3
+ import type { IrcMessageData } from '@/shared/types/omp/session';
3
4
 
4
5
  /** One image a tool result returned (a `read` of a picture, an `eval` that
5
6
  * painted one). Exactly one payload field is set: omp externalizes anything
@@ -178,6 +179,9 @@ export interface ChatMessageData {
178
179
  * renderer that draws a specific card for one kind reads it from here.
179
180
  */
180
181
  noticeSource?: string;
182
+ /** Set on an `irc:incoming` turn — a peer agent's message, drawn as its own
183
+ * card instead of a raw `<irc>` system notice. */
184
+ irc?: IrcMessageData;
181
185
  toolCalls?: ToolCallData[];
182
186
  actions?: (AgentActionData | ToolCallData)[];
183
187
  systemNote?: string;
@@ -15,7 +15,7 @@
15
15
  import type { HarnessCapabilities } from '@/server/lib/harness/capabilities';
16
16
  import type { HarnessConfig } from '@/shared/lib/harness/config';
17
17
  import type { CanonicalProtocol } from '@/shared/lib/harness/dialects';
18
- import type { EnvProviderContract } from '@/shared/lib/harness/provider-facts';
18
+ import type { EnvProviderContract } from '@/shared/lib/harness/provider-contracts';
19
19
 
20
20
  export type { HarnessConfig };
21
21
 
@@ -61,6 +61,10 @@ export interface HarnessSummary {
61
61
  /** The letter the UI draws when there is no vendor mark. */
62
62
  initial?: string;
63
63
  install?: string;
64
+ /** The launch line this build ships for the agent, as typeable text. The
65
+ * config form's placeholder and hint must name THIS harness's line: the box
66
+ * used to advertise `agy acp` on the omp and Claude cards alike. */
67
+ command?: string;
64
68
  note?: string;
65
69
  /** False when the user switched this harness off: it then leaves the settings
66
70
  * menu and the composer's picker, so a roster of twelve becomes the agents
@@ -154,3 +154,21 @@ export interface OmpSidebarData {
154
154
  /** ISO timestamp of the read (client can use it as a refresh cursor). */
155
155
  generatedAt: string;
156
156
  }
157
+
158
+ /** A peer (IRC) message omp injected into a session.
159
+ *
160
+ * Since omp 18.18.9 a message that ends a `wait` is delivered as its own
161
+ * `customType: "irc:incoming"` turn instead of riding in the wait result
162
+ * (`details.waited`). The turn's `details` is the only idle copy of the sender
163
+ * and the raw body — the rendered content is the model's `<irc>` prompt
164
+ * envelope — so both transcript mappers lift this shape out and the timeline
165
+ * draws a message card rather than a raw system notice. */
166
+ export interface IrcMessageData {
167
+ id?: string;
168
+ from: string;
169
+ /** The sender's own text, without omp's prompt envelope. */
170
+ message: string;
171
+ replyTo?: string;
172
+ progress?: boolean;
173
+ broadcast?: boolean;
174
+ }
@@ -16,7 +16,7 @@ export type SettingsCategoryId =
16
16
  | 'usage'
17
17
  | 'token-usage'
18
18
  /** Panel plugins — Kabmo's own extension surface (marketplaces of
19
- * sandboxed panel views). Deliberately NOT under LIBRARY, which holds omp's
19
+ * sandboxed panel views). Deliberately NOT under OMP → Plugins, which holds
20
20
  * plugins: these are Kabmo surfaces omp has no concept of. */
21
21
  | 'panel-plugins'
22
22
  // WORKSPACE
@@ -28,6 +28,10 @@ export type SettingsCategoryId =
28
28
  | 'behavior'
29
29
  | 'commands'
30
30
  | 'mcp'
31
+ // omp's extension surface: plugins, skills and the skills catalog.
32
+ | 'plugins'
33
+ | 'skills'
34
+ | 'skills-catalog'
31
35
  // HARNESSES — the agents Kabmo can drive, one PAGE each. Their own group in
32
36
  // the sidebar: a different transport and a different config file from omp.
33
37
  // The single-harness pages carry a dynamic id (`harness:claude`, from
@@ -35,11 +39,7 @@ export type SettingsCategoryId =
35
39
  // what decides which agents exist, and a build-time union entry per harness
36
40
  // would have to be edited for every adapter added at runtime.
37
41
  | 'harness-index'
38
- | `harness:${string}`
39
- // LIBRARY
40
- | 'plugins'
41
- | 'skills'
42
- | 'skills-catalog';
42
+ | `harness:${string}`;
43
43
 
44
44
  export interface SettingsCategoryItem {
45
45
  id: SettingsCategoryId;
@@ -18,7 +18,9 @@
18
18
  * timeline never rendered before: `blocked` (waiting on something, with an
19
19
  * optional note) and `abandoned` (deliberately dropped). Both are settled-but-
20
20
  * not-done, which is why `isClosedTodo` — not `status === 'completed'` — is
21
- * what any progress counter must use.
21
+ * what any progress counter must use. omp 18.19.0 removed `blocked` (and the
22
+ * `block` / `unblock` ops below); the type keeps them because snapshots saved
23
+ * before that pin still carry the status, and omp reads them back as `pending`.
22
24
  */
23
25
 
24
26
  /** Lifecycle state of one todo item (omp's `TodoStatus`). */