aicodeman 1.50.1 → 1.51.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 (249) hide show
  1. package/README.md +11 -9
  2. package/dist/config/attachment-guard.d.ts +5 -1
  3. package/dist/config/attachment-guard.d.ts.map +1 -1
  4. package/dist/config/attachment-guard.js +4 -2
  5. package/dist/config/attachment-guard.js.map +1 -1
  6. package/dist/config/cli-registry/schema.d.ts +2 -0
  7. package/dist/config/cli-registry/schema.d.ts.map +1 -1
  8. package/dist/config/cli-registry/schema.js +11 -0
  9. package/dist/config/cli-registry/schema.js.map +1 -1
  10. package/dist/config/cli-registry/stock.d.ts.map +1 -1
  11. package/dist/config/cli-registry/stock.js +155 -4
  12. package/dist/config/cli-registry/stock.js.map +1 -1
  13. package/dist/config/cli-registry/types.d.ts +33 -2
  14. package/dist/config/cli-registry/types.d.ts.map +1 -1
  15. package/dist/config/file-editing.d.ts +7 -3
  16. package/dist/config/file-editing.d.ts.map +1 -1
  17. package/dist/config/file-editing.js +12 -3
  18. package/dist/config/file-editing.js.map +1 -1
  19. package/dist/config/local-model-catalog.d.ts +95 -20
  20. package/dist/config/local-model-catalog.d.ts.map +1 -1
  21. package/dist/config/local-model-catalog.js +172 -37
  22. package/dist/config/local-model-catalog.js.map +1 -1
  23. package/dist/custom-model-injection.d.ts.map +1 -1
  24. package/dist/custom-model-injection.js +22 -14
  25. package/dist/custom-model-injection.js.map +1 -1
  26. package/dist/hooks-config.d.ts +62 -0
  27. package/dist/hooks-config.d.ts.map +1 -1
  28. package/dist/hooks-config.js +156 -0
  29. package/dist/hooks-config.js.map +1 -1
  30. package/dist/local-model/connect.d.ts +16 -2
  31. package/dist/local-model/connect.d.ts.map +1 -1
  32. package/dist/local-model/connect.js +17 -3
  33. package/dist/local-model/connect.js.map +1 -1
  34. package/dist/local-model/harness-facts.d.ts +8 -4
  35. package/dist/local-model/harness-facts.d.ts.map +1 -1
  36. package/dist/local-model/harness-facts.js +13 -5
  37. package/dist/local-model/harness-facts.js.map +1 -1
  38. package/dist/local-model/install-job.d.ts +208 -28
  39. package/dist/local-model/install-job.d.ts.map +1 -1
  40. package/dist/local-model/install-job.js +846 -92
  41. package/dist/local-model/install-job.js.map +1 -1
  42. package/dist/local-model/recommend.d.ts +11 -5
  43. package/dist/local-model/recommend.d.ts.map +1 -1
  44. package/dist/local-model/recommend.js +11 -5
  45. package/dist/local-model/recommend.js.map +1 -1
  46. package/dist/local-model/runtime.d.ts +12 -0
  47. package/dist/local-model/runtime.d.ts.map +1 -1
  48. package/dist/local-model/runtime.js +42 -0
  49. package/dist/local-model/runtime.js.map +1 -1
  50. package/dist/local-model/state-store.d.ts.map +1 -1
  51. package/dist/local-model/state-store.js +40 -0
  52. package/dist/local-model/state-store.js.map +1 -1
  53. package/dist/mux-interface.d.ts +3 -1
  54. package/dist/mux-interface.d.ts.map +1 -1
  55. package/dist/proc-tree.d.ts +23 -0
  56. package/dist/proc-tree.d.ts.map +1 -1
  57. package/dist/proc-tree.js +28 -0
  58. package/dist/proc-tree.js.map +1 -1
  59. package/dist/session-auto-ops.d.ts +95 -8
  60. package/dist/session-auto-ops.d.ts.map +1 -1
  61. package/dist/session-auto-ops.js +146 -32
  62. package/dist/session-auto-ops.js.map +1 -1
  63. package/dist/session-cli-registry-bridge.d.ts +2 -1
  64. package/dist/session-cli-registry-bridge.d.ts.map +1 -1
  65. package/dist/session-cli-registry-bridge.js.map +1 -1
  66. package/dist/session.d.ts +16 -1
  67. package/dist/session.d.ts.map +1 -1
  68. package/dist/session.js +29 -5
  69. package/dist/session.js.map +1 -1
  70. package/dist/tmux-manager.d.ts +10 -1
  71. package/dist/tmux-manager.d.ts.map +1 -1
  72. package/dist/tmux-manager.js +45 -6
  73. package/dist/tmux-manager.js.map +1 -1
  74. package/dist/tui/tui-app.d.ts.map +1 -1
  75. package/dist/tui/tui-app.js +1 -0
  76. package/dist/tui/tui-app.js.map +1 -1
  77. package/dist/tui/tui-client.d.ts +1 -1
  78. package/dist/tui/tui-client.d.ts.map +1 -1
  79. package/dist/types/local-model-install.d.ts +202 -15
  80. package/dist/types/local-model-install.d.ts.map +1 -1
  81. package/dist/types/local-model-install.js +21 -4
  82. package/dist/types/local-model-install.js.map +1 -1
  83. package/dist/types/local-model.d.ts +32 -6
  84. package/dist/types/local-model.d.ts.map +1 -1
  85. package/dist/types/local-model.js.map +1 -1
  86. package/dist/types/session.d.ts +26 -4
  87. package/dist/types/session.d.ts.map +1 -1
  88. package/dist/types/session.js +2 -1
  89. package/dist/types/session.js.map +1 -1
  90. package/dist/usage-telemetry.d.ts +3 -0
  91. package/dist/usage-telemetry.d.ts.map +1 -1
  92. package/dist/usage-telemetry.js +4 -0
  93. package/dist/usage-telemetry.js.map +1 -1
  94. package/dist/utils/token-validation.d.ts +3 -3
  95. package/dist/utils/token-validation.d.ts.map +1 -1
  96. package/dist/utils/token-validation.js +3 -3
  97. package/dist/utils/token-validation.js.map +1 -1
  98. package/dist/web/public/admin-ui.js.gz +0 -0
  99. package/dist/web/public/api-client.c9b1cddc.js.gz +0 -0
  100. package/dist/web/public/{app.07398d90.js → app.bddc2382.js} +9 -7
  101. package/dist/web/public/app.bddc2382.js.br +0 -0
  102. package/dist/web/public/app.bddc2382.js.gz +0 -0
  103. package/dist/web/public/approvals-ui.js.gz +0 -0
  104. package/dist/web/public/constants.782170e1.js.gz +0 -0
  105. package/dist/web/public/cron-ui.js.gz +0 -0
  106. package/dist/web/public/edit-history-ui.js.gz +0 -0
  107. package/dist/web/public/entrance-animations.js.gz +0 -0
  108. package/dist/web/public/foreign-sessions.js.gz +0 -0
  109. package/dist/web/public/git-status-ui.js.gz +0 -0
  110. package/dist/web/public/header-divider.eb2d2463.js.gz +0 -0
  111. package/dist/web/public/home-sessions.js.gz +0 -0
  112. package/dist/web/public/host-wake-ui.js.gz +0 -0
  113. package/dist/web/public/i18n.2e0cdcee.js +2 -0
  114. package/dist/web/public/i18n.2e0cdcee.js.br +0 -0
  115. package/dist/web/public/i18n.2e0cdcee.js.gz +0 -0
  116. package/dist/web/public/{image-input.a5d0f8f3.js → image-input.b75c41ca.js} +17 -1
  117. package/dist/web/public/image-input.b75c41ca.js.br +0 -0
  118. package/dist/web/public/image-input.b75c41ca.js.gz +0 -0
  119. package/dist/web/public/index.html +15 -12
  120. package/dist/web/public/index.html.br +0 -0
  121. package/dist/web/public/index.html.gz +0 -0
  122. package/dist/web/public/input-cjk.8bc46081.js.gz +0 -0
  123. package/dist/web/public/keyboard-accessory.0800fc44.js.gz +0 -0
  124. package/dist/web/public/local-model-ui.js +618 -32
  125. package/dist/web/public/local-model-ui.js.br +0 -0
  126. package/dist/web/public/local-model-ui.js.gz +0 -0
  127. package/dist/web/public/mobile-handlers.f7c3f692.js.gz +0 -0
  128. package/dist/web/public/mobile-ime-preview.2dbaf262.js.gz +0 -0
  129. package/dist/web/public/mobile-overview.js +1 -0
  130. package/dist/web/public/mobile-overview.js.br +0 -0
  131. package/dist/web/public/mobile-overview.js.gz +0 -0
  132. package/dist/web/public/mobile.984e9058.css +1 -0
  133. package/dist/web/public/mobile.984e9058.css.br +0 -0
  134. package/dist/web/public/mobile.984e9058.css.gz +0 -0
  135. package/dist/web/public/notification-manager.feb82c04.js.gz +0 -0
  136. package/dist/web/public/orchestrator-panel.js.gz +0 -0
  137. package/dist/web/public/{panels-ui.9ba2683e.js → panels-ui.ee2330a4.js} +1 -1
  138. package/dist/web/public/panels-ui.ee2330a4.js.br +0 -0
  139. package/dist/web/public/panels-ui.ee2330a4.js.gz +0 -0
  140. package/dist/web/public/ralph-panel.b350e2ef.js.gz +0 -0
  141. package/dist/web/public/ralph-wizard.b6c0dd19.js.gz +0 -0
  142. package/dist/web/public/readmymind-ui.js.gz +0 -0
  143. package/dist/web/public/reboot-restore-ui.js.gz +0 -0
  144. package/dist/web/public/respawn-ui.304ba0d4.js.gz +0 -0
  145. package/dist/web/public/sanitize-html.e7147e76.js.gz +0 -0
  146. package/dist/web/public/session-lineage.js.gz +0 -0
  147. package/dist/web/public/{session-ui.8f300b14.js → session-ui.4273cbc5.js} +7 -7
  148. package/dist/web/public/session-ui.4273cbc5.js.br +0 -0
  149. package/dist/web/public/session-ui.4273cbc5.js.gz +0 -0
  150. package/dist/web/public/settings-ui.8b37cf07.js.gz +0 -0
  151. package/dist/web/public/spreadsheet-preview-worker.js.gz +0 -0
  152. package/dist/web/public/spreadsheet-preview.75c751de.js.gz +0 -0
  153. package/dist/web/public/spreadsheet-xlsx-core.js.gz +0 -0
  154. package/dist/web/public/styles.81d95f50.css +1 -0
  155. package/dist/web/public/styles.81d95f50.css.br +0 -0
  156. package/dist/web/public/styles.81d95f50.css.gz +0 -0
  157. package/dist/web/public/subagent-windows.07277a58.js.gz +0 -0
  158. package/dist/web/public/sw.js +2 -2
  159. package/dist/web/public/sw.js.br +0 -0
  160. package/dist/web/public/sw.js.gz +0 -0
  161. package/dist/web/public/tab-layout-browser.2d6189f7.js.gz +0 -0
  162. package/dist/web/public/tab-rail-resize.b5cdceaf.js.gz +0 -0
  163. package/dist/web/public/terminal-keycode229-recovery.98843069.js.gz +0 -0
  164. package/dist/web/public/terminal-split.js.gz +0 -0
  165. package/dist/web/public/terminal-tile.js +1 -1
  166. package/dist/web/public/terminal-tile.js.br +0 -0
  167. package/dist/web/public/terminal-tile.js.gz +0 -0
  168. package/dist/web/public/{terminal-ui.f92eae28.js → terminal-ui.8e4c2017.js} +1 -1
  169. package/dist/web/public/terminal-ui.8e4c2017.js.br +0 -0
  170. package/dist/web/public/terminal-ui.8e4c2017.js.gz +0 -0
  171. package/dist/web/public/tile-grid.js.gz +0 -0
  172. package/dist/web/public/ultracode-panel.js.gz +0 -0
  173. package/dist/web/public/ultracode-windows.js.gz +0 -0
  174. package/dist/web/public/vendor/dompurify.min.js.gz +0 -0
  175. package/dist/web/public/vendor/exceljs.min.js.gz +0 -0
  176. package/dist/web/public/vendor/fflate.min.js.gz +0 -0
  177. package/dist/web/public/vendor/marked.min.js.gz +0 -0
  178. package/dist/web/public/vendor/xterm-addon-fit.min.js.gz +0 -0
  179. package/dist/web/public/vendor/xterm-addon-serialize.min.js.gz +0 -0
  180. package/dist/web/public/vendor/xterm-addon-unicode11.min.js.gz +0 -0
  181. package/dist/web/public/vendor/xterm-addon-webgl.min.js.gz +0 -0
  182. package/dist/web/public/vendor/xterm-predictive-echo.276b11d9.js.gz +0 -0
  183. package/dist/web/public/vendor/xterm-zerolag-input.1be42307.js.gz +0 -0
  184. package/dist/web/public/vendor/xterm.css.gz +0 -0
  185. package/dist/web/public/vendor/xterm.min.js.gz +0 -0
  186. package/dist/web/public/voice-input.d0580528.js.gz +0 -0
  187. package/dist/web/public/voice-pcm-worklet.js.gz +0 -0
  188. package/dist/web/public/webview-tabs.js.gz +0 -0
  189. package/dist/web/public/whats-new.json +9 -9
  190. package/dist/web/routes/file-routes.d.ts.map +1 -1
  191. package/dist/web/routes/file-routes.js +20 -4
  192. package/dist/web/routes/file-routes.js.map +1 -1
  193. package/dist/web/routes/hook-event-routes.d.ts.map +1 -1
  194. package/dist/web/routes/hook-event-routes.js +45 -16
  195. package/dist/web/routes/hook-event-routes.js.map +1 -1
  196. package/dist/web/routes/local-model-routes.d.ts +18 -6
  197. package/dist/web/routes/local-model-routes.d.ts.map +1 -1
  198. package/dist/web/routes/local-model-routes.js +47 -10
  199. package/dist/web/routes/local-model-routes.js.map +1 -1
  200. package/dist/web/routes/session-routes.d.ts.map +1 -1
  201. package/dist/web/routes/session-routes.js +52 -4
  202. package/dist/web/routes/session-routes.js.map +1 -1
  203. package/dist/web/routes/status-telemetry-routes.d.ts.map +1 -1
  204. package/dist/web/routes/status-telemetry-routes.js +6 -0
  205. package/dist/web/routes/status-telemetry-routes.js.map +1 -1
  206. package/dist/web/routes/system-routes.d.ts.map +1 -1
  207. package/dist/web/routes/system-routes.js +12 -0
  208. package/dist/web/routes/system-routes.js.map +1 -1
  209. package/dist/web/schemas.d.ts +23 -0
  210. package/dist/web/schemas.d.ts.map +1 -1
  211. package/dist/web/schemas.js +42 -4
  212. package/dist/web/schemas.js.map +1 -1
  213. package/dist/web/sensitive-path.d.ts +8 -1
  214. package/dist/web/sensitive-path.d.ts.map +1 -1
  215. package/dist/web/sensitive-path.js +23 -4
  216. package/dist/web/sensitive-path.js.map +1 -1
  217. package/dist/web/server.d.ts.map +1 -1
  218. package/dist/web/server.js +1 -0
  219. package/dist/web/server.js.map +1 -1
  220. package/dist/web/session-wait-registry.d.ts +19 -4
  221. package/dist/web/session-wait-registry.d.ts.map +1 -1
  222. package/dist/web/session-wait-registry.js +26 -5
  223. package/dist/web/session-wait-registry.js.map +1 -1
  224. package/package.json +1 -1
  225. package/skills/codeman/SKILL.md +147 -42
  226. package/skills/codeman/preamble.sh +102 -26
  227. package/skills/codeman/reference/endpoints.md +13 -9
  228. package/skills/codeman/reference/messaging.md +2 -2
  229. package/skills/codeman/reference/recipes.md +2 -2
  230. package/skills/codeman/reference/verbs.md +46 -15
  231. package/dist/web/public/app.07398d90.js.br +0 -0
  232. package/dist/web/public/app.07398d90.js.gz +0 -0
  233. package/dist/web/public/i18n.519d025e.js +0 -2
  234. package/dist/web/public/i18n.519d025e.js.br +0 -0
  235. package/dist/web/public/i18n.519d025e.js.gz +0 -0
  236. package/dist/web/public/image-input.a5d0f8f3.js.br +0 -0
  237. package/dist/web/public/image-input.a5d0f8f3.js.gz +0 -0
  238. package/dist/web/public/mobile.4dfd5c55.css +0 -1
  239. package/dist/web/public/mobile.4dfd5c55.css.br +0 -0
  240. package/dist/web/public/mobile.4dfd5c55.css.gz +0 -0
  241. package/dist/web/public/panels-ui.9ba2683e.js.br +0 -0
  242. package/dist/web/public/panels-ui.9ba2683e.js.gz +0 -0
  243. package/dist/web/public/session-ui.8f300b14.js.br +0 -0
  244. package/dist/web/public/session-ui.8f300b14.js.gz +0 -0
  245. package/dist/web/public/styles.21b93520.css +0 -1
  246. package/dist/web/public/styles.21b93520.css.br +0 -0
  247. package/dist/web/public/styles.21b93520.css.gz +0 -0
  248. package/dist/web/public/terminal-ui.f92eae28.js.br +0 -0
  249. package/dist/web/public/terminal-ui.f92eae28.js.gz +0 -0
@@ -6,6 +6,14 @@
6
6
  * runtime, model, verify, agent, connect; `agent` is left out when the coding agent is
7
7
  * installed). Its state is one of five (`LocalModelInstallState`), stored in the state file.
8
8
  *
9
+ * A LIBRARY with ONE model in use. The store can hold several models; exactly one of them is
10
+ * the model in use: the one the saved endpoint record lists, the runtime is started for and a
11
+ * session may be launched on. `LocalModelStateFile.library` lists every model that passed the
12
+ * check through Codeman. A job makes its model the one in use when it ends: an install (also
13
+ * from `installed`, which adds a model and keeps the earlier ones) or a switch (`use`, the two
14
+ * steps `USE_JOB_STEPS`: nothing is downloaded, the model is loaded and checked again and its
15
+ * digest must still be the stored one).
16
+ *
9
17
  * The state table. "On disk" names what lies under the local model folder; the two writes
10
18
  * outside it belong to the `connect` step.
11
19
  *
@@ -17,12 +25,15 @@
17
25
  * | | the current step has written so far | same step; nothing resumes | the same step | |
18
26
  * | | (see the step table) | without a click | | |
19
27
  * | `paused` | as `installing` at that step, nothing in | stays `paused` | refused (409) | resume, install (another |
20
- * | | flight | | | choice), remove |
28
+ * | | flight | | | choice), use (a checked model), |
29
+ * | | | | | delete a model, remove |
21
30
  * | `failed` | as `installing` at that step, nothing in | stays `failed`, same error | refused (409) | resume (try again), install |
22
- * | | flight | | | (another choice), remove |
31
+ * | | flight | | | (another choice), use, delete a |
32
+ * | | | | | model, remove |
23
33
  * | `installed` | the runtime, the private home, the model | stays `installed`; the | refused (409) | start a session, start or stop |
24
- * | | | runtime is started again | | the runtime, remove |
25
- * | | | when it was not stopped | | |
34
+ * | | in use and every other model of the | runtime is started again | | the runtime, install (add a |
35
+ * | | library | when it was not stopped | | model), use, delete a model, |
36
+ * | | | | | install a coding agent, remove |
26
37
  *
27
38
  * The step table. Every step is IDEMPOTENT, so Resume and "Try again" re-enter the step the
28
39
  * job stopped in; they first make sure the runtime runs when the step needs it.
@@ -62,16 +73,39 @@
62
73
  * `mutateLocalModelState()` and never change the state.
63
74
  * - A job read as `installing` at boot was interrupted by the restart: the service applies
64
75
  * the event `restart` before anything else, so it is `paused` and waits for a click.
65
- * - A new install from `paused` or `failed` REPLACES the job. When it names another model,
66
- * what the old job left of its model is deleted from the store first: the model through the
67
- * runtime when it was downloaded whole, and the partial blobs of a download that was
68
- * interrupted (the runtime knows no model for those, so they are deleted as files).
76
+ * - A new install or a switch from `paused` or `failed` REPLACES the job. When it names another
77
+ * model, what the old job left of its model is deleted from the store first: the model
78
+ * through the runtime when it was downloaded whole, and the partial blobs of a download that
79
+ * was interrupted (the runtime knows no model for those, so they are deleted as files). A
80
+ * model of the library is never deleted that way: it was checked, and it stays until the
81
+ * person deletes it.
82
+ * - Installing another model and switching change which model the runtime holds (it holds
83
+ * one), and often its context. Both are refused (409 `sessions-open`) while live sessions
84
+ * use the endpoint, like Stop: their coding agents were started with the other model's name.
85
+ * - While a job that started from `installed` is not finished (`installing`, `paused`,
86
+ * `failed`), no session is started: the launch check wants the state `installed`. `use` on
87
+ * the earlier model is the way back.
88
+ * - A model is deleted ONLY through the runtime (`deleteModel()`), by a name that is in the
89
+ * server's own listing (the library or the runtime's tags), never by a path. The model of
90
+ * the installation or of the current job is refused (`model-active`): switch first, or
91
+ * Remove. Deleting moves no state: it is not an event of the reducer, and whether a state
92
+ * allows it is the `delete-model` action of its row in `INSTALL_STATE_TABLE`.
69
93
  * - Install is checked before anything is downloaded: admin only in multi-user mode; the
70
94
  * model, the context and the coding agent must be a row the current recommendation offers;
71
95
  * the coding agent must be a harness row of the catalogue; `acknowledgedBytes` must be the
72
96
  * server's own total.
73
97
  * - No CLI id is compared with a literal here: the coding agent is a catalogue row plus a
74
98
  * `HarnessFact`.
99
+ * - The coding agent is chosen PER SESSION. The state file's `cli` is the agent of the job
100
+ * and, once installed, the default one; the view's `harnesses` lists every catalogue harness
101
+ * the model in use can be run with (`buildHarnessRows()`). The launch check
102
+ * (`launchRefusalMessage()`) asks about the endpoint and the model, never about the agent.
103
+ * - Installing one more coding agent beside an installed model (`installAgent()`,
104
+ * `POST /api/local-model/agent`) is NOT a job and not an event of the reducer: the state
105
+ * stays `installed` whatever the installer does, so a failed `npm install` never blocks a
106
+ * session on a model that works. It runs in the background through the same install slot
107
+ * and the same stock command as the `agent` step, one at a time, and what it leaves behind
108
+ * is in memory only (`LocalModelHarnessRow.status` `installing`, or its `error`).
75
109
  *
76
110
  * The service (`createLocalModelService()`), beyond the reducer:
77
111
  * - Verbs run one at a time on one queue, so two installs sent together cannot both find the
@@ -106,11 +140,15 @@
106
140
  * process runs no job, which is what a restart leaves too.
107
141
  * - Stop and "Use another port" are refused (409 `sessions-open`) while live sessions use
108
142
  * the model: their coding agents were given the address when they started.
143
+ * - The view's `library` joins the state file's checked models with what the running runtime
144
+ * lists, and `store` is the disk use of the blob folder. Neither is asked for on every
145
+ * one-second poll: both are cached (`TAGS_RECHECK_MS`, `STORE_RECHECK_MS`), refreshed in the
146
+ * background, and thrown away by every verb and step that changes them.
109
147
  */
110
148
  import { type CliInstallResult, type RunInstallCommandOptions } from '../cli-install-runner.js';
111
- import { type HardwareFacts, type HarnessFact, type LocalModelAction, type LocalModelCatalog, type LocalModelConflict, type LocalModelDeveloperTools, type LocalModelErrorCode, type LocalModelInstallError, type LocalModelInstallMessage, type LocalModelInstallRequest, type LocalModelInstallState, type LocalModelInstallStep, type LocalModelInstallView, type LocalModelNextStep, type LocalModelRemoveRequest, type LocalModelResumeRequest, type LocalModelRuntimePin, type LocalModelRuntimeRequest, type LocalModelStateFile, type Recommendation, type RecommendOptions } from '../types.js';
149
+ import { type HardwareFacts, type HarnessFact, type LocalModelAction, type LocalModelAgentRequest, type LocalModelCatalog, type LocalModelConflict, type LocalModelDeleteRequest, type LocalModelDeveloperTools, type LocalModelErrorCode, type LocalModelInstallError, type LocalModelInstallMessage, type LocalModelInstallRequest, type LocalModelInstallState, type LocalModelInstallStep, type LocalModelInstallView, type LocalModelHarnessRow, type LocalModelLibraryEntry, type LocalModelLibraryRow, type LocalModelNextStep, type LocalModelRemoveRequest, type LocalModelResumeRequest, type LocalModelRuntimePin, type LocalModelRuntimeRequest, type LocalModelStateFile, type LocalModelUseRequest, type Recommendation, type RecommendOptions } from '../types.js';
112
150
  import { type ConnectLocalModelInput, type ConnectResult, type LocalEndpointInput, type LocalEndpointInspection } from './connect.js';
113
- import { type OllamaPsModel, type OllamaTarget, type PullOptions, type PullResult, type VerifyResult } from './ollama-client.js';
151
+ import { type OllamaPsModel, type OllamaTagModel, type OllamaTarget, type PullOptions, type PullResult, type VerifyResult } from './ollama-client.js';
114
152
  import { type LocalModelPaths } from './paths.js';
115
153
  import { type ChooseRuntimePortOptions, type RemoveLocalModelFilesOptions, type RuntimeInstallOptions, type RuntimeInstallResult, type RuntimeStatus, type RuntimeSupervisor } from './runtime.js';
116
154
  /** One row of the state table. */
@@ -128,7 +166,10 @@ export interface InstallStateRow {
128
166
  /**
129
167
  * Every action a client may take in this state. The view's `actions` is this list narrowed
130
168
  * by what is live (`allowedActions()`): `start` only while the runtime is down, `stop` and
131
- * `start-session` only while it runs, `start-session` only when nothing blocks a session.
169
+ * `start-session` only while it runs, `start-session` only when nothing blocks a session,
170
+ * `use` and `delete-model` only while a row of the library offers them, `install-agent` only
171
+ * while a row of `harnesses` offers it, and in `idle` `remove` only while the model store
172
+ * still holds something.
132
173
  */
133
174
  actions: readonly LocalModelAction[];
134
175
  }
@@ -153,9 +194,14 @@ export interface InstallStepRow {
153
194
  }
154
195
  /** The step table of the file header, as data. */
155
196
  export declare const INSTALL_STEP_TABLE: Readonly<Record<LocalModelInstallStep, InstallStepRow>>;
197
+ /** The steps of a switch to a checked model: it is loaded and checked again, then connected. Nothing is downloaded. */
198
+ export declare const USE_JOB_STEPS: readonly LocalModelInstallStep[];
156
199
  /** What moves the job. */
157
200
  export type InstallJobEvent =
158
- /** A new job: `POST /api/local-model/install` passed its checks. From `idle`, `paused` or `failed`. */
201
+ /**
202
+ * A new job: `POST /api/local-model/install` passed its checks. From `idle`, `paused` or
203
+ * `failed`, and from `installed`, where it adds a model: the earlier ones stay in the library.
204
+ */
159
205
  {
160
206
  type: 'install';
161
207
  model: {
@@ -170,6 +216,24 @@ export type InstallJobEvent =
170
216
  /** The steps of this job in order (`jobSteps()`). */
171
217
  steps: LocalModelInstallStep[];
172
218
  }
219
+ /**
220
+ * A switch: `POST /api/local-model/use` passed its checks. From `installed`, `paused` or
221
+ * `failed`. The model must be one of the library; its stored `digest` rides along, and the
222
+ * `verify` step fails with `model-changed` when the runtime reports another one.
223
+ */
224
+ | {
225
+ type: 'use';
226
+ model: {
227
+ id: string;
228
+ label: string;
229
+ context: number;
230
+ digest: string;
231
+ };
232
+ cli: {
233
+ id: string;
234
+ label: string;
235
+ };
236
+ }
173
237
  /** A download moved. Changes `progress` only. */
174
238
  | {
175
239
  type: 'progress';
@@ -212,6 +276,14 @@ export type InstallJobEventType = InstallJobEvent['type'];
212
276
  * finished was the last of the job's `steps`.
213
277
  */
214
278
  export declare const INSTALL_TRANSITIONS: Readonly<Record<LocalModelInstallState, Readonly<Partial<Record<InstallJobEventType, LocalModelInstallState>>>>>;
279
+ /**
280
+ * The checked models of a state: its `library`, and for an `installed` state whose model is
281
+ * not in it (a file an earlier build wrote has no list) that model too, first. A model without
282
+ * a stored digest is never one of them: nothing could be compared when it is switched to. Pure.
283
+ */
284
+ export declare function libraryOf(state: LocalModelStateFile): LocalModelLibraryEntry[];
285
+ /** `library` with `entry` in the place of the one with its id, or at the end. Pure. */
286
+ export declare function upsertLibraryEntry(library: readonly LocalModelLibraryEntry[], entry: LocalModelLibraryEntry): LocalModelLibraryEntry[];
215
287
  /** The steps a job runs, in order: all of `LOCAL_MODEL_INSTALL_STEPS`, without `agent` when the coding agent is installed. Pure. */
216
288
  export declare function jobSteps(input: {
217
289
  agentInstalled: boolean;
@@ -219,12 +291,13 @@ export declare function jobSteps(input: {
219
291
  /**
220
292
  * The state file after `event`. Pure: no IO, no clock (`updatedAt` is the state store's
221
293
  * business). Refuses an event the transition table does not list for the current state by
222
- * returning `current` itself. Keeps `runtime` and `connection` across a new install, because
223
- * what they record is still on disk; `remove` drops everything.
294
+ * returning `current` itself. Keeps `runtime`, `connection` and `library` across a new install
295
+ * or a switch, because what they record is still on disk; `remove` drops everything.
224
296
  *
225
297
  * An event that is listed but cannot be applied is refused the same way: an `install` whose
226
- * steps are not a job's, a `progress` that is not two byte counts, a `step-done` on a state
227
- * without a step, and a last `step-done` on a job that has no runtime recorded.
298
+ * steps are not a job's, a `use` of a model that is not in the library or on a state without a
299
+ * runtime, a `progress` that is not two byte counts, a `step-done` on a state without a step,
300
+ * and a last `step-done` on a job that has no runtime recorded.
228
301
  */
229
302
  export declare function reduceInstallJob(current: LocalModelStateFile, event: InstallJobEvent): LocalModelStateFile;
230
303
  /** What is live and not in the state file, for the view. Gathered by the service on every GET. */
@@ -254,6 +327,27 @@ export interface InstallLiveFacts {
254
327
  pin: LocalModelRuntimePin;
255
328
  /** `LocalModelPaths.root`, for the "where it goes" line. */
256
329
  folder: string;
330
+ /**
331
+ * What the RUNNING runtime lists on disk (`/api/tags`), as last read. Absent while the
332
+ * runtime is down or before the first read: the library then shows the state file's entries
333
+ * as they were recorded, and offers no delete.
334
+ */
335
+ tags?: readonly {
336
+ name: string;
337
+ size: number;
338
+ digest: string;
339
+ }[];
340
+ /** What the model store takes on disk (`measureModelStore()`), once measured. */
341
+ storeBytes?: number;
342
+ /** The catalogue's label per model id, for a model the runtime lists and the state file does not know. */
343
+ labels?: Readonly<Record<string, string>>;
344
+ /**
345
+ * The coding agents of the model in use (`buildHarnessRows()`), without their
346
+ * `start-session` action: the view adds it once it knows whether a session can be started.
347
+ * Absent while nothing is installed, and when the catalogue or the CLI registry could not be
348
+ * read: the view then lists none.
349
+ */
350
+ harnesses?: readonly LocalModelHarnessRow[];
257
351
  }
258
352
  /** An error code with its sentence, its slots and its one next step. Pure. */
259
353
  export declare function buildInstallError(code: LocalModelErrorCode, extra?: {
@@ -272,10 +366,55 @@ export declare function buildInstallError(code: LocalModelErrorCode, extra?: {
272
366
  * changed. `undefined` when nothing does, which includes a runtime the person stopped. Pure.
273
367
  */
274
368
  export declare function installedBlocker(state: LocalModelStateFile, live: InstallLiveFacts): LocalModelInstallError | undefined;
275
- /** The actions the server accepts right now: the state row's list narrowed by what is live. Pure. */
276
- export declare function allowedActions(state: LocalModelStateFile, live: InstallLiveFacts): LocalModelAction[];
369
+ /**
370
+ * The models on this Mac, for the view: the checked models of the state file joined with what
371
+ * the running runtime lists. The model in use first, then the other checked models in the
372
+ * order they were checked, then what the runtime lists beside them, by name. Pure.
373
+ *
374
+ * What a row offers:
375
+ * - `use`: a checked model the runtime does not contradict (`ready`), in a state whose row of
376
+ * `INSTALL_STATE_TABLE` lists `use`, unless it is the model of the installation (in use
377
+ * already) or of the stopped job (Resume goes on with that one).
378
+ * - `delete`: any model the running runtime lists, in a state that lists `delete-model`,
379
+ * unless it is the model of the installation or of the current job, and unless its name is
380
+ * not a plain `name:tag` (`LOCAL_MODEL_ID_PATTERN`): the delete route takes no other name.
381
+ * A checked model the runtime no longer lists (`missing`) can be deleted too: that drops
382
+ * its entry.
383
+ */
384
+ export declare function buildLibraryRows(state: LocalModelStateFile, live: InstallLiveFacts): LocalModelLibraryRow[];
385
+ /** What the service remembers of installs of a coding agent beside an installed model. In memory only. */
386
+ export interface AgentInstallMemory {
387
+ /** The CLI id of the agent whose installer runs right now. */
388
+ running?: string;
389
+ /** The agents whose last install failed, by CLI id, with the end of what the installer printed. */
390
+ failed?: Readonly<Record<string, {
391
+ detail?: string;
392
+ }>>;
393
+ }
394
+ /**
395
+ * The coding agents the model in use can be run with: every catalogue harness that is not
396
+ * gated, has a fact, works at the model's context and accepts its name. The default agent
397
+ * first, then the higher catalogue rank. The default is the agent of the installation
398
+ * (`state.cli`) while it can be started, else the first one that can, so a client that names
399
+ * no agent never starts one that is gone. Rows carry no `start-session` action yet: whether a
400
+ * session can be started at all is the view's knowledge (`buildInstallView()`). Empty unless
401
+ * the state is `installed`. Pure, and it compares no CLI id with a literal.
402
+ */
403
+ export declare function buildHarnessRows(state: LocalModelStateFile, catalog: Pick<LocalModelCatalog, 'harnesses'>, facts: readonly HarnessFact[], memory?: AgentInstallMemory): LocalModelHarnessRow[];
404
+ /**
405
+ * The actions the server accepts right now: the state row's list narrowed by what is live.
406
+ * `rows` is `buildLibraryRows()` of the same two arguments, for a caller that has it. Pure.
407
+ */
408
+ export declare function allowedActions(state: LocalModelStateFile, live: InstallLiveFacts, rows?: readonly LocalModelLibraryRow[]): LocalModelAction[];
277
409
  /** The `install` object of the GET. Pure: every size text comes from `formatGb()`, every sentence from `LOCAL_MODEL_INSTALL_LABELS`. */
278
410
  export declare function buildInstallView(state: LocalModelStateFile, live: InstallLiveFacts): LocalModelInstallView;
411
+ /**
412
+ * `recommendation` with every row marked that is a checked model of the library at the row's
413
+ * context (`Candidate.library`): `active` for the model in use, `ready` for one a switch can
414
+ * take. The chooser then says the model is on this Mac and switches without a download. A
415
+ * recommendation with nothing to mark is handed back as it is. Pure.
416
+ */
417
+ export declare function markLibraryCandidates(recommendation: Recommendation, view: LocalModelInstallView): Recommendation;
279
418
  /** A sentence of the install as plain English text, its slots filled. For an API error message and the log. Pure. */
280
419
  export declare function formatInstallMessage(message: LocalModelInstallMessage): string;
281
420
  /** Who asked, for the admin audit entry of the coding agent install. */
@@ -288,10 +427,13 @@ export type LocalModelVerbResult = {
288
427
  ok: true;
289
428
  view: LocalModelInstallView;
290
429
  }
291
- /** 400: the request is not something the server offers. 507: nothing could be started because the disk is full. */
430
+ /**
431
+ * 400: the request is not something the server offers. 507: nothing could be started because
432
+ * the disk is full. 500: the runtime answered a delete with an error.
433
+ */
292
434
  | {
293
435
  ok: false;
294
- status: 400 | 507;
436
+ status: 400 | 500 | 507;
295
437
  message: LocalModelInstallMessage;
296
438
  } | {
297
439
  ok: false;
@@ -322,8 +464,12 @@ export interface LocalModelServiceDeps {
322
464
  listRunning: (target: OllamaTarget, signal?: AbortSignal) => Promise<OllamaPsModel[]>;
323
465
  getRuntimeVersion: (target: OllamaTarget, signal?: AbortSignal) => Promise<string | undefined>;
324
466
  deleteModel: (target: OllamaTarget, modelId: string, signal?: AbortSignal) => Promise<boolean>;
467
+ /** The models the runtime has on disk, with their sizes and digests: the library's live half. */
468
+ listTags: (target: OllamaTarget, signal?: AbortSignal) => Promise<OllamaTagModel[]>;
325
469
  /** `removePartialModelBlobs()` of src/local-model/runtime.ts: what an interrupted download left in the model store. Resolves with the bytes freed. */
326
470
  removePartialModelBlobs: (paths?: LocalModelPaths) => Promise<number>;
471
+ /** `measureModelStore()` of src/local-model/runtime.ts: what the model store takes on disk, in bytes. */
472
+ measureModelStore: (paths?: LocalModelPaths) => Promise<number>;
327
473
  checkDeveloperTools: () => Promise<LocalModelDeveloperTools>;
328
474
  stockInstallCommand: (id: string) => string | undefined;
329
475
  tryBeginCliInstall: (id: string) => (() => void) | null;
@@ -362,14 +508,22 @@ export interface LocalModelServiceDeps {
362
508
  }
363
509
  /** The install as the routes and the server see it. One per process. */
364
510
  export interface LocalModelService {
365
- /** The `install` object of the GET. Never throws. */
366
- view(): Promise<LocalModelInstallView>;
511
+ /**
512
+ * The `install` object of the GET. Never throws. `harnessFacts`: the facts a caller already
513
+ * built for the same answer (the GET builds them for the recommendation), so they are not
514
+ * built twice; without them the service builds its own.
515
+ */
516
+ view(options?: {
517
+ harnessFacts?: readonly HarnessFact[];
518
+ }): Promise<LocalModelInstallView>;
367
519
  /**
368
520
  * Whether a session may be started on the saved endpoint `endpointId` right now. `undefined`:
369
521
  * yes, which is also the answer for every endpoint that is not this feature's. Otherwise the
370
- * error that refuses the launch. While the runtime child Codeman started is not alive
371
- * (whatever answers on the port then is not ours), the reason is the one that is known:
372
- * `port-in-use`, `runtime-stopped`, `runtime-start-failed`, else `runtime-not-running`.
522
+ * error that refuses the launch. While a job that changes the model in use is running or
523
+ * stopped (any state but `installed` that holds a connection of ours) it is `job-unfinished`.
524
+ * While the runtime child Codeman started is not alive (whatever answers on the port then
525
+ * is not ours), the reason is the one that is known: `port-in-use`, `runtime-stopped`,
526
+ * `runtime-start-failed`, else `runtime-not-running`.
373
527
  * While it runs, the digest is read again: `model-changed` when it is not the stored one or
374
528
  * the model is gone. Every path that starts a coding agent on the managed endpoint asks
375
529
  * this first (see the file header for the list). Never throws.
@@ -384,8 +538,34 @@ export interface LocalModelService {
384
538
  launchRefusalMessage(endpointId: string, modelId: string): Promise<string | undefined>;
385
539
  /** What the GET passes to `recommend()`: the stored measured total and the runtime download that is still needed. */
386
540
  recommendOptions(): Promise<RecommendOptions>;
387
- /** `POST /api/local-model/install`. Answers once the job is STARTED; the job runs on in the server. */
388
- install(request: LocalModelInstallRequest, actor: LocalModelActor): Promise<LocalModelVerbResult>;
541
+ /**
542
+ * `POST /api/local-model/install`. Answers once the job is STARTED; the job runs on in the
543
+ * server. From `installed` it adds a model: the earlier ones stay in the library, and the new
544
+ * one becomes the model in use when the job ends. `liveSessionNames` as for `remove()`: not
545
+ * empty answers 409 `sessions-open` while a connection of ours exists.
546
+ */
547
+ install(request: LocalModelInstallRequest, actor: LocalModelActor, liveSessionNames?: readonly string[]): Promise<LocalModelVerbResult>;
548
+ /**
549
+ * `POST /api/local-model/use`: switch to a checked model of the library. Answers once the
550
+ * job (`USE_JOB_STEPS`) is STARTED. Nothing is downloaded. `liveSessionNames` as for
551
+ * `remove()`.
552
+ */
553
+ use(request: LocalModelUseRequest, actor: LocalModelActor, liveSessionNames?: readonly string[]): Promise<LocalModelVerbResult>;
554
+ /**
555
+ * `DELETE /api/local-model/models`: delete one model from the store, through the runtime.
556
+ * The name must be in the server's own listing (the library or the runtime's tags). Refused
557
+ * for the model of the installation or of the current job, while a job runs and while the
558
+ * runtime is down.
559
+ */
560
+ deleteLibraryModel(request: LocalModelDeleteRequest, actor?: LocalModelActor): Promise<LocalModelVerbResult>;
561
+ /**
562
+ * `POST /api/local-model/agent`: install one more coding agent beside an installed model.
563
+ * Answers once the installer is STARTED; it runs on in the server, and the view's
564
+ * `harnesses` says how it stands. Not a job: the state stays `installed` and sessions go on.
565
+ * The agent must be a row of `harnesses` that offers `install`; one that can already be
566
+ * started answers with the view as it is. One installer at a time (409 `job-running`).
567
+ */
568
+ installAgent(request: LocalModelAgentRequest, actor: LocalModelActor): Promise<LocalModelVerbResult>;
389
569
  /** `POST /api/local-model/cancel`. Answers once the step in flight was interrupted. */
390
570
  cancel(): Promise<LocalModelVerbResult>;
391
571
  /**
@@ -421,7 +601,7 @@ export interface LocalModelService {
421
601
  shutdown(): Promise<void>;
422
602
  /** What the runtime supervisor reports through `onChange`: the pid of a child the moment it is spawned, a new pid after a restart, the budget line. Stored, never thrown. */
423
603
  onRuntimeChange(status: RuntimeStatus): void;
424
- /** Resolves once no job is in flight. For `shutdown()` and for tests. */
604
+ /** Resolves once no job is in flight and no coding agent is being installed. For `shutdown()` and for tests. */
425
605
  idle(): Promise<void>;
426
606
  }
427
607
  /** A service over `deps`. A test builds its own with fakes. */
@@ -1 +1 @@
1
- {"version":3,"file":"install-job.d.ts","sourceRoot":"","sources":["../../src/local-model/install-job.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4GG;AAGH,OAAO,EAML,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAC9B,MAAM,0BAA0B,CAAC;AAKlC,OAAO,EAQL,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC7B,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB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