aicodeman 1.49.0 → 1.50.1

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 (324) hide show
  1. package/README.md +30 -4
  2. package/dist/cli-install-runner.d.ts +112 -0
  3. package/dist/cli-install-runner.d.ts.map +1 -0
  4. package/dist/cli-install-runner.js +289 -0
  5. package/dist/cli-install-runner.js.map +1 -0
  6. package/dist/cli.d.ts.map +1 -1
  7. package/dist/cli.js +2 -2
  8. package/dist/cli.js.map +1 -1
  9. package/dist/config/attachment-guard.d.ts +11 -0
  10. package/dist/config/attachment-guard.d.ts.map +1 -1
  11. package/dist/config/attachment-guard.js +21 -1
  12. package/dist/config/attachment-guard.js.map +1 -1
  13. package/dist/config/local-model-catalog.d.ts +188 -0
  14. package/dist/config/local-model-catalog.d.ts.map +1 -0
  15. package/dist/config/local-model-catalog.js +556 -0
  16. package/dist/config/local-model-catalog.js.map +1 -0
  17. package/dist/config-backup.js +1 -1
  18. package/dist/config-backup.js.map +1 -1
  19. package/dist/custom-model-hosts-writer.d.ts +50 -0
  20. package/dist/custom-model-hosts-writer.d.ts.map +1 -0
  21. package/dist/custom-model-hosts-writer.js +110 -0
  22. package/dist/custom-model-hosts-writer.js.map +1 -0
  23. package/dist/git-clone.d.ts.map +1 -1
  24. package/dist/git-clone.js +21 -1
  25. package/dist/git-clone.js.map +1 -1
  26. package/dist/git-fetch.d.ts.map +1 -1
  27. package/dist/git-fetch.js +6 -0
  28. package/dist/git-fetch.js.map +1 -1
  29. package/dist/git-workspace-status.d.ts.map +1 -1
  30. package/dist/git-workspace-status.js +4 -0
  31. package/dist/git-workspace-status.js.map +1 -1
  32. package/dist/git-worktrees.d.ts.map +1 -1
  33. package/dist/git-worktrees.js +6 -0
  34. package/dist/git-worktrees.js.map +1 -1
  35. package/dist/hooks-config.d.ts +15 -3
  36. package/dist/hooks-config.d.ts.map +1 -1
  37. package/dist/hooks-config.js +108 -4
  38. package/dist/hooks-config.js.map +1 -1
  39. package/dist/live-worktree.d.ts +73 -15
  40. package/dist/live-worktree.d.ts.map +1 -1
  41. package/dist/live-worktree.js +200 -32
  42. package/dist/live-worktree.js.map +1 -1
  43. package/dist/local-model/connect.d.ts +155 -0
  44. package/dist/local-model/connect.d.ts.map +1 -0
  45. package/dist/local-model/connect.js +243 -0
  46. package/dist/local-model/connect.js.map +1 -0
  47. package/dist/local-model/developer-tools.d.ts +45 -0
  48. package/dist/local-model/developer-tools.d.ts.map +1 -0
  49. package/dist/local-model/developer-tools.js +105 -0
  50. package/dist/local-model/developer-tools.js.map +1 -0
  51. package/dist/local-model/format.d.ts +39 -0
  52. package/dist/local-model/format.d.ts.map +1 -0
  53. package/dist/local-model/format.js +48 -0
  54. package/dist/local-model/format.js.map +1 -0
  55. package/dist/local-model/hardware.d.ts +125 -0
  56. package/dist/local-model/hardware.d.ts.map +1 -0
  57. package/dist/local-model/hardware.js +336 -0
  58. package/dist/local-model/hardware.js.map +1 -0
  59. package/dist/local-model/harness-facts.d.ts +77 -0
  60. package/dist/local-model/harness-facts.d.ts.map +1 -0
  61. package/dist/local-model/harness-facts.js +145 -0
  62. package/dist/local-model/harness-facts.js.map +1 -0
  63. package/dist/local-model/install-job.d.ts +431 -0
  64. package/dist/local-model/install-job.d.ts.map +1 -0
  65. package/dist/local-model/install-job.js +1822 -0
  66. package/dist/local-model/install-job.js.map +1 -0
  67. package/dist/local-model/ollama-client.d.ts +216 -0
  68. package/dist/local-model/ollama-client.d.ts.map +1 -0
  69. package/dist/local-model/ollama-client.js +636 -0
  70. package/dist/local-model/ollama-client.js.map +1 -0
  71. package/dist/local-model/paths.d.ts +64 -0
  72. package/dist/local-model/paths.d.ts.map +1 -0
  73. package/dist/local-model/paths.js +75 -0
  74. package/dist/local-model/paths.js.map +1 -0
  75. package/dist/local-model/recommend.d.ts +118 -0
  76. package/dist/local-model/recommend.d.ts.map +1 -0
  77. package/dist/local-model/recommend.js +430 -0
  78. package/dist/local-model/recommend.js.map +1 -0
  79. package/dist/local-model/runtime.d.ts +339 -0
  80. package/dist/local-model/runtime.d.ts.map +1 -0
  81. package/dist/local-model/runtime.js +1240 -0
  82. package/dist/local-model/runtime.js.map +1 -0
  83. package/dist/local-model/state-store.d.ts +45 -0
  84. package/dist/local-model/state-store.d.ts.map +1 -0
  85. package/dist/local-model/state-store.js +261 -0
  86. package/dist/local-model/state-store.js.map +1 -0
  87. package/dist/readmymind-collectors.d.ts.map +1 -1
  88. package/dist/readmymind-collectors.js +4 -0
  89. package/dist/readmymind-collectors.js.map +1 -1
  90. package/dist/reboot-restore.d.ts +3 -1
  91. package/dist/reboot-restore.d.ts.map +1 -1
  92. package/dist/reboot-restore.js.map +1 -1
  93. package/dist/session.d.ts +29 -7
  94. package/dist/session.d.ts.map +1 -1
  95. package/dist/session.js +63 -10
  96. package/dist/session.js.map +1 -1
  97. package/dist/types/common.d.ts +5 -0
  98. package/dist/types/common.d.ts.map +1 -1
  99. package/dist/types/index.d.ts +4 -0
  100. package/dist/types/index.d.ts.map +1 -1
  101. package/dist/types/index.js +4 -0
  102. package/dist/types/index.js.map +1 -1
  103. package/dist/types/local-model-install.d.ts +533 -0
  104. package/dist/types/local-model-install.d.ts.map +1 -0
  105. package/dist/types/local-model-install.js +169 -0
  106. package/dist/types/local-model-install.js.map +1 -0
  107. package/dist/types/local-model.d.ts +551 -0
  108. package/dist/types/local-model.d.ts.map +1 -0
  109. package/dist/types/local-model.js +115 -0
  110. package/dist/types/local-model.js.map +1 -0
  111. package/dist/types/session.d.ts +17 -6
  112. package/dist/types/session.d.ts.map +1 -1
  113. package/dist/types/session.js.map +1 -1
  114. package/dist/utils/cli-executable-resolver.d.ts +18 -0
  115. package/dist/utils/cli-executable-resolver.d.ts.map +1 -1
  116. package/dist/utils/cli-executable-resolver.js +34 -2
  117. package/dist/utils/cli-executable-resolver.js.map +1 -1
  118. package/dist/utils/git-availability.d.ts +65 -0
  119. package/dist/utils/git-availability.d.ts.map +1 -0
  120. package/dist/utils/git-availability.js +134 -0
  121. package/dist/utils/git-availability.js.map +1 -0
  122. package/dist/web/agent-skill-default-migration.d.ts +60 -0
  123. package/dist/web/agent-skill-default-migration.d.ts.map +1 -0
  124. package/dist/web/agent-skill-default-migration.js +97 -0
  125. package/dist/web/agent-skill-default-migration.js.map +1 -0
  126. package/dist/web/approval-inbox.d.ts +10 -0
  127. package/dist/web/approval-inbox.d.ts.map +1 -1
  128. package/dist/web/approval-inbox.js +15 -0
  129. package/dist/web/approval-inbox.js.map +1 -1
  130. package/dist/web/case-state-sync.d.ts +28 -0
  131. package/dist/web/case-state-sync.d.ts.map +1 -0
  132. package/dist/web/case-state-sync.js +41 -0
  133. package/dist/web/case-state-sync.js.map +1 -0
  134. package/dist/web/ports/config-port.d.ts +1 -1
  135. package/dist/web/ports/config-port.d.ts.map +1 -1
  136. package/dist/web/public/admin-ui.js.gz +0 -0
  137. package/dist/web/public/api-client.c9b1cddc.js.gz +0 -0
  138. package/dist/web/public/{app.9ea37070.js → app.07398d90.js} +1 -1
  139. package/dist/web/public/app.07398d90.js.br +0 -0
  140. package/dist/web/public/app.07398d90.js.gz +0 -0
  141. package/dist/web/public/approvals-ui.js.gz +0 -0
  142. package/dist/web/public/constants.782170e1.js.gz +0 -0
  143. package/dist/web/public/cron-ui.js.gz +0 -0
  144. package/dist/web/public/edit-history-ui.js.gz +0 -0
  145. package/dist/web/public/entrance-animations.js.gz +0 -0
  146. package/dist/web/public/foreign-sessions.js.gz +0 -0
  147. package/dist/web/public/git-status-ui.js.gz +0 -0
  148. package/dist/web/public/header-divider.eb2d2463.js.gz +0 -0
  149. package/dist/web/public/home-sessions.js +38 -18
  150. package/dist/web/public/home-sessions.js.br +0 -0
  151. package/dist/web/public/home-sessions.js.gz +0 -0
  152. package/dist/web/public/host-wake-ui.js.gz +0 -0
  153. package/dist/web/public/{i18n.a5e82c95.js → i18n.519d025e.js} +2 -2
  154. package/dist/web/public/i18n.519d025e.js.br +0 -0
  155. package/dist/web/public/i18n.519d025e.js.gz +0 -0
  156. package/dist/web/public/image-input.a5d0f8f3.js.gz +0 -0
  157. package/dist/web/public/index.html +88 -13
  158. package/dist/web/public/index.html.br +0 -0
  159. package/dist/web/public/index.html.gz +0 -0
  160. package/dist/web/public/input-cjk.8bc46081.js.gz +0 -0
  161. package/dist/web/public/{keyboard-accessory.b941676c.js → keyboard-accessory.0800fc44.js} +160 -2
  162. package/dist/web/public/keyboard-accessory.0800fc44.js.br +0 -0
  163. package/dist/web/public/keyboard-accessory.0800fc44.js.gz +0 -0
  164. package/dist/web/public/local-model-ui.js +1735 -0
  165. package/dist/web/public/local-model-ui.js.br +0 -0
  166. package/dist/web/public/local-model-ui.js.gz +0 -0
  167. package/dist/web/public/mobile-handlers.f7c3f692.js.gz +0 -0
  168. package/dist/web/public/mobile-ime-preview.2dbaf262.js.gz +0 -0
  169. package/dist/web/public/mobile-overview.js +30 -14
  170. package/dist/web/public/mobile-overview.js.br +0 -0
  171. package/dist/web/public/mobile-overview.js.gz +0 -0
  172. package/dist/web/public/mobile.4dfd5c55.css +1 -0
  173. package/dist/web/public/mobile.4dfd5c55.css.br +0 -0
  174. package/dist/web/public/mobile.4dfd5c55.css.gz +0 -0
  175. package/dist/web/public/notification-manager.feb82c04.js.gz +0 -0
  176. package/dist/web/public/orchestrator-panel.js.gz +0 -0
  177. package/dist/web/public/{panels-ui.8bcd4473.js → panels-ui.9ba2683e.js} +100 -98
  178. package/dist/web/public/panels-ui.9ba2683e.js.br +0 -0
  179. package/dist/web/public/panels-ui.9ba2683e.js.gz +0 -0
  180. package/dist/web/public/ralph-panel.b350e2ef.js.gz +0 -0
  181. package/dist/web/public/ralph-wizard.b6c0dd19.js.gz +0 -0
  182. package/dist/web/public/readmymind-ui.js.gz +0 -0
  183. package/dist/web/public/reboot-restore-ui.js +2 -0
  184. package/dist/web/public/reboot-restore-ui.js.br +0 -0
  185. package/dist/web/public/reboot-restore-ui.js.gz +0 -0
  186. package/dist/web/public/respawn-ui.304ba0d4.js.gz +0 -0
  187. package/dist/web/public/sanitize-html.e7147e76.js.gz +0 -0
  188. package/dist/web/public/session-lineage.js.gz +0 -0
  189. package/dist/web/public/{session-ui.a7c8c095.js → session-ui.8f300b14.js} +21 -21
  190. package/dist/web/public/session-ui.8f300b14.js.br +0 -0
  191. package/dist/web/public/session-ui.8f300b14.js.gz +0 -0
  192. package/dist/web/public/{settings-ui.18f92052.js → settings-ui.8b37cf07.js} +14 -14
  193. package/dist/web/public/settings-ui.8b37cf07.js.br +0 -0
  194. package/dist/web/public/settings-ui.8b37cf07.js.gz +0 -0
  195. package/dist/web/public/spreadsheet-preview-worker.js.gz +0 -0
  196. package/dist/web/public/spreadsheet-preview.75c751de.js.gz +0 -0
  197. package/dist/web/public/spreadsheet-xlsx-core.js.gz +0 -0
  198. package/dist/web/public/styles.21b93520.css +1 -0
  199. package/dist/web/public/styles.21b93520.css.br +0 -0
  200. package/dist/web/public/styles.21b93520.css.gz +0 -0
  201. package/dist/web/public/subagent-windows.07277a58.js.gz +0 -0
  202. package/dist/web/public/sw.js +2 -2
  203. package/dist/web/public/sw.js.br +0 -0
  204. package/dist/web/public/sw.js.gz +0 -0
  205. package/dist/web/public/tab-layout-browser.2d6189f7.js.gz +0 -0
  206. package/dist/web/public/tab-rail-resize.b5cdceaf.js.gz +0 -0
  207. package/dist/web/public/terminal-keycode229-recovery.98843069.js.gz +0 -0
  208. package/dist/web/public/terminal-split.js.gz +0 -0
  209. package/dist/web/public/terminal-tile.js.gz +0 -0
  210. package/dist/web/public/{terminal-ui.a7883640.js → terminal-ui.f92eae28.js} +2 -2
  211. package/dist/web/public/terminal-ui.f92eae28.js.br +0 -0
  212. package/dist/web/public/terminal-ui.f92eae28.js.gz +0 -0
  213. package/dist/web/public/tile-grid.js.gz +0 -0
  214. package/dist/web/public/ultracode-panel.js.gz +0 -0
  215. package/dist/web/public/ultracode-windows.js.gz +0 -0
  216. package/dist/web/public/vendor/dompurify.min.js.gz +0 -0
  217. package/dist/web/public/vendor/exceljs.min.js.gz +0 -0
  218. package/dist/web/public/vendor/fflate.min.js.gz +0 -0
  219. package/dist/web/public/vendor/marked.min.js.gz +0 -0
  220. package/dist/web/public/vendor/xterm-addon-fit.min.js.gz +0 -0
  221. package/dist/web/public/vendor/xterm-addon-serialize.min.js.gz +0 -0
  222. package/dist/web/public/vendor/xterm-addon-unicode11.min.js.gz +0 -0
  223. package/dist/web/public/vendor/xterm-addon-webgl.min.js.gz +0 -0
  224. package/dist/web/public/vendor/xterm-predictive-echo.276b11d9.js.gz +0 -0
  225. package/dist/web/public/vendor/xterm-zerolag-input.1be42307.js.gz +0 -0
  226. package/dist/web/public/vendor/xterm.css.gz +0 -0
  227. package/dist/web/public/vendor/xterm.min.js.gz +0 -0
  228. package/dist/web/public/{voice-input.2342c37b.js → voice-input.d0580528.js} +232 -137
  229. package/dist/web/public/voice-input.d0580528.js.br +0 -0
  230. package/dist/web/public/voice-input.d0580528.js.gz +0 -0
  231. package/dist/web/public/voice-pcm-worklet.js.gz +0 -0
  232. package/dist/web/public/webview-tabs.js.gz +0 -0
  233. package/dist/web/public/whats-new.json +9 -9
  234. package/dist/web/repo-status.d.ts.map +1 -1
  235. package/dist/web/repo-status.js +4 -0
  236. package/dist/web/repo-status.js.map +1 -1
  237. package/dist/web/route-helpers.d.ts +29 -0
  238. package/dist/web/route-helpers.d.ts.map +1 -1
  239. package/dist/web/route-helpers.js +37 -0
  240. package/dist/web/route-helpers.js.map +1 -1
  241. package/dist/web/routes/approval-routes.d.ts.map +1 -1
  242. package/dist/web/routes/approval-routes.js +3 -2
  243. package/dist/web/routes/approval-routes.js.map +1 -1
  244. package/dist/web/routes/case-routes.d.ts.map +1 -1
  245. package/dist/web/routes/case-routes.js +31 -5
  246. package/dist/web/routes/case-routes.js.map +1 -1
  247. package/dist/web/routes/cli-registry-routes.d.ts +1 -27
  248. package/dist/web/routes/cli-registry-routes.d.ts.map +1 -1
  249. package/dist/web/routes/cli-registry-routes.js +11 -202
  250. package/dist/web/routes/cli-registry-routes.js.map +1 -1
  251. package/dist/web/routes/custom-model-routes.d.ts +15 -0
  252. package/dist/web/routes/custom-model-routes.d.ts.map +1 -1
  253. package/dist/web/routes/custom-model-routes.js +114 -33
  254. package/dist/web/routes/custom-model-routes.js.map +1 -1
  255. package/dist/web/routes/file-routes.d.ts +4 -2
  256. package/dist/web/routes/file-routes.d.ts.map +1 -1
  257. package/dist/web/routes/file-routes.js +160 -24
  258. package/dist/web/routes/file-routes.js.map +1 -1
  259. package/dist/web/routes/html-view-routes.d.ts.map +1 -1
  260. package/dist/web/routes/html-view-routes.js +12 -3
  261. package/dist/web/routes/html-view-routes.js.map +1 -1
  262. package/dist/web/routes/index.d.ts +1 -0
  263. package/dist/web/routes/index.d.ts.map +1 -1
  264. package/dist/web/routes/index.js +1 -0
  265. package/dist/web/routes/index.js.map +1 -1
  266. package/dist/web/routes/local-model-routes.d.ts +103 -0
  267. package/dist/web/routes/local-model-routes.d.ts.map +1 -0
  268. package/dist/web/routes/local-model-routes.js +210 -0
  269. package/dist/web/routes/local-model-routes.js.map +1 -0
  270. package/dist/web/routes/reboot-restore-routes.d.ts.map +1 -1
  271. package/dist/web/routes/reboot-restore-routes.js +16 -0
  272. package/dist/web/routes/reboot-restore-routes.js.map +1 -1
  273. package/dist/web/routes/session-routes.d.ts.map +1 -1
  274. package/dist/web/routes/session-routes.js +22 -27
  275. package/dist/web/routes/session-routes.js.map +1 -1
  276. package/dist/web/routes/system-routes.d.ts +2 -2
  277. package/dist/web/routes/system-routes.d.ts.map +1 -1
  278. package/dist/web/routes/system-routes.js +23 -4
  279. package/dist/web/routes/system-routes.js.map +1 -1
  280. package/dist/web/schemas.d.ts +30 -0
  281. package/dist/web/schemas.d.ts.map +1 -1
  282. package/dist/web/schemas.js +52 -5
  283. package/dist/web/schemas.js.map +1 -1
  284. package/dist/web/self-update.d.ts.map +1 -1
  285. package/dist/web/self-update.js +4 -0
  286. package/dist/web/self-update.js.map +1 -1
  287. package/dist/web/sensitive-path.d.ts.map +1 -1
  288. package/dist/web/sensitive-path.js +5 -0
  289. package/dist/web/sensitive-path.js.map +1 -1
  290. package/dist/web/server.d.ts +20 -0
  291. package/dist/web/server.d.ts.map +1 -1
  292. package/dist/web/server.js +83 -7
  293. package/dist/web/server.js.map +1 -1
  294. package/dist/web/voice-stream.d.ts +4 -3
  295. package/dist/web/voice-stream.d.ts.map +1 -1
  296. package/dist/web/voice-stream.js +5 -4
  297. package/dist/web/voice-stream.js.map +1 -1
  298. package/package.json +2 -1
  299. package/skills/codeman/SKILL.md +318 -24
  300. package/skills/codeman/preamble.sh +242 -16
  301. package/skills/codeman/reference/recipes.md +1 -1
  302. package/skills/codeman/reference/verbs.md +101 -1
  303. package/dist/web/public/app.9ea37070.js.br +0 -0
  304. package/dist/web/public/app.9ea37070.js.gz +0 -0
  305. package/dist/web/public/i18n.a5e82c95.js.br +0 -0
  306. package/dist/web/public/i18n.a5e82c95.js.gz +0 -0
  307. package/dist/web/public/keyboard-accessory.b941676c.js.br +0 -0
  308. package/dist/web/public/keyboard-accessory.b941676c.js.gz +0 -0
  309. package/dist/web/public/mobile.67c8eb5b.css +0 -1
  310. package/dist/web/public/mobile.67c8eb5b.css.br +0 -0
  311. package/dist/web/public/mobile.67c8eb5b.css.gz +0 -0
  312. package/dist/web/public/panels-ui.8bcd4473.js.br +0 -0
  313. package/dist/web/public/panels-ui.8bcd4473.js.gz +0 -0
  314. package/dist/web/public/session-ui.a7c8c095.js.br +0 -0
  315. package/dist/web/public/session-ui.a7c8c095.js.gz +0 -0
  316. package/dist/web/public/settings-ui.18f92052.js.br +0 -0
  317. package/dist/web/public/settings-ui.18f92052.js.gz +0 -0
  318. package/dist/web/public/styles.6a718331.css +0 -1
  319. package/dist/web/public/styles.6a718331.css.br +0 -0
  320. package/dist/web/public/styles.6a718331.css.gz +0 -0
  321. package/dist/web/public/terminal-ui.a7883640.js.br +0 -0
  322. package/dist/web/public/terminal-ui.a7883640.js.gz +0 -0
  323. package/dist/web/public/voice-input.2342c37b.js.br +0 -0
  324. package/dist/web/public/voice-input.2342c37b.js.gz +0 -0
@@ -16,8 +16,8 @@
16
16
  <link rel="manifest" href="manifest.json">
17
17
  <title>Codeman</title>
18
18
  <link rel="icon" type="image/svg+xml" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%2360a5fa'/%3E%3Cstop offset='100%25' stop-color='%233b82f6'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='32' height='32' rx='6' fill='%230a0a0a'/%3E%3Cpath d='M18 4L8 18h6l-2 10 10-14h-6z' fill='url(%23g)'/%3E%3C/svg%3E">
19
- <link rel="stylesheet" href="styles.6a718331.css">
20
- <link rel="stylesheet" href="mobile.67c8eb5b.css" media="(max-width: 1023px)">
19
+ <link rel="stylesheet" href="styles.21b93520.css">
20
+ <link rel="stylesheet" href="mobile.4dfd5c55.css" media="(max-width: 1023px)">
21
21
  <!-- xterm.css loaded async — terminal won't display until xterm.js runs anyway -->
22
22
  <link rel="preload" href="vendor/xterm.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
23
23
  <noscript><link rel="stylesheet" href="vendor/xterm.css"></noscript>
@@ -28,7 +28,7 @@
28
28
  leaves tofu in xterm's glyph atlas until something forces a re-render. -->
29
29
  <link rel="preload" href="fonts/symbols-nerd-font-mono.woff2" as="font" type="font/woff2" crossorigin>
30
30
  <link rel="preload" href="constants.782170e1.js" as="script">
31
- <link rel="preload" href="app.9ea37070.js" as="script">
31
+ <link rel="preload" href="app.07398d90.js" as="script">
32
32
  <!-- Self-hosted xterm.js — eliminates CDN DNS/TLS latency (~100ms).
33
33
  'defer' preserves execution order (xterm loads before fit addon). -->
34
34
  <script defer src="vendor/xterm.min.js"></script>
@@ -510,6 +510,17 @@
510
510
  it sits under them as a quiet link; settings-ui.js rewrites its
511
511
  contents on every state change and owns its inline display. -->
512
512
  <div class="welcome-actions">
513
+ <!-- A model that runs on the Mac the server runs on (local-model-ui.js).
514
+ The first thing on the start screen, above the launchers, in the size of
515
+ the primary button. A sibling of the launcher slot and never inside it (renderWelcomeCliActions empties that slot on every
516
+ state change). Ships `hidden`: only that module reveals it, once the
517
+ server has answered for a Mac. It opens the chooser window
518
+ (#localModelModal) and the module writes its label through its own
519
+ translator call, hence data-i18n-skip. -->
520
+ <button type="button" class="welcome-chip welcome-local-model" id="welcomeLocalModelBtn" data-i18n-skip hidden onclick="app.openLocalModelWindow()">
521
+ <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="6" y="6" width="12" height="12" rx="2"/><path d="M9.5 2.5v3.5M14.5 2.5v3.5M9.5 18v3.5M14.5 18v3.5M2.5 9.5H6M2.5 14.5H6M18 9.5h3.5M18 14.5h3.5"/></svg>
522
+ <span class="welcome-label" id="welcomeLocalModelLabel">Run a local model</span>
523
+ </button>
513
524
  <div class="welcome-cli-actions" id="welcomeCliActions"></div>
514
525
  <button type="button" class="welcome-tunnel-link" id="welcomeTunnelBtn" style="display: none;" onclick="app.toggleTunnelFromWelcome()">
515
526
  <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 2L2 7l10 5 10-5-10-5z"/><path d="M2 17l10 5 10-5"/><path d="M2 12l10 5 10-5"/></svg>
@@ -590,7 +601,6 @@
590
601
  <div class="foreign-sessions" id="foreignSessions" hidden></div>
591
602
  </div>
592
603
  <p class="welcome-hint">Or click Run to start</p>
593
- <button class="welcome-ralph-link" onclick="app.showRalphWizard()">Start Ralph Loop &rarr;</button>
594
604
  </div>
595
605
  </div>
596
606
 
@@ -2867,6 +2877,28 @@
2867
2877
  </div>
2868
2878
  </div>
2869
2879
  </div>
2880
+
2881
+ <!-- The model that runs on the Mac the server runs on (local-model-ui.js). One row:
2882
+ the state in a few words, written by the module from GET /api/local-model
2883
+ through its own translator call (hence data-i18n-skip on the text and on the
2884
+ button), and a button that opens the chooser window (#localModelModal), where
2885
+ everything happens. The module shows the group only once the server has
2886
+ answered for a Mac: it hides it for a server on another system (the title
2887
+ and hint are about "this Mac"), while the first request is in flight, and
2888
+ for a non-admin in multi-user mode (the routes are admin-only). Not gated on
2889
+ the endpoints toggle above: an install switches that on itself. -->
2890
+ <div class="set-group" id="localModelGroup">
2891
+ <div class="set-group-head"><h4>Model on this Mac</h4></div>
2892
+ <p class="set-group-hint">Run a coding model on the Mac that Codeman runs on. No account and no API key.</p>
2893
+ <div class="set-group-body">
2894
+ <div class="set-row" data-search="local model mac apple silicon memory llm offline install download ollama">
2895
+ <div class="set-row-text" id="localModelSettings" data-i18n-skip aria-live="polite"></div>
2896
+ <div class="set-row-actions">
2897
+ <button type="button" class="btn-toolbar btn-sm" id="localModelSettingsOpen" data-i18n-skip onclick="app.openLocalModelWindow()">Open</button>
2898
+ </div>
2899
+ </div>
2900
+ </div>
2901
+ </div>
2870
2902
  </section>
2871
2903
 
2872
2904
  <!-- ══ Agents &amp; CLIs ═════════════════════════════════════════ -->
@@ -2941,7 +2973,7 @@
2941
2973
  <div class="set-row" data-search="agent skill codeman api workers codex gemini opencode pi grok deepseek omp antigravity">
2942
2974
  <div class="set-row-text">
2943
2975
  <span class="set-row-label">Codeman Agent Skill</span>
2944
- <span class="set-row-desc">Write Codeman's agent skill into each new session's folder, where that CLI looks for skills, so the agent in it can start workers in any installed CLI, send them prompts and wait for results. Every CLI except Pi and a plain shell.</span>
2976
+ <span class="set-row-desc">Write Codeman's agent skill into each new session's folder, where that CLI looks for skills, so the agent in it can start workers in any installed CLI, send them prompts and wait for results. Every CLI except Pi, GitHub Copilot and a plain shell. On by default. The copy ignores itself in git, so your repository never lists it as a new file. Off stops new copies but removes none: <code>codeman skill uninstall --case &lt;name&gt;</code> does that.</span>
2945
2977
  </div>
2946
2978
  <label class="switch switch-sm"><input type="checkbox" id="appSettingsAgentSkill"><span class="slider"></span></label>
2947
2979
  </div>
@@ -3424,6 +3456,20 @@
3424
3456
  <option value="compose">Compose dialog</option>
3425
3457
  </select>
3426
3458
  </div>
3459
+ <div class="set-row has-field" data-search="voice silence pause timeout manual stop recording">
3460
+ <div class="set-row-text">
3461
+ <label class="set-row-label" for="voiceSilenceTimeout">Stop after silence</label>
3462
+ <span class="set-row-desc">Allow time to think between phrases. Manual keeps listening until you tap the mic again.</span>
3463
+ </div>
3464
+ <select id="voiceSilenceTimeout" class="set-select">
3465
+ <option value="default">Provider default</option>
3466
+ <option value="3">3 seconds</option>
3467
+ <option value="6">6 seconds</option>
3468
+ <option value="15">15 seconds</option>
3469
+ <option value="30">30 seconds</option>
3470
+ <option value="0">Manual</option>
3471
+ </select>
3472
+ </div>
3427
3473
  <div class="set-row has-field" data-search="voice language">
3428
3474
  <div class="set-row-text">
3429
3475
  <span class="set-row-label">Language</span>
@@ -3540,6 +3586,13 @@
3540
3586
  </div>
3541
3587
  <input type="text" id="appSettingsDefaultDir" class="set-input" placeholder="~/projects">
3542
3588
  </div>
3589
+ <div class="set-row" data-search="sync cases across devices selected case agent teams opus 1m">
3590
+ <div class="set-row-text">
3591
+ <span class="set-row-label">Sync cases across devices</span>
3592
+ <span class="set-row-desc">Keeps each case's Agent Teams and Opus 1M options on the server and switches this device to the case you last chose on another one when you return to the tab. Off by default: each browser keeps its own. The case names are stored in the shared settings file.</span>
3593
+ </div>
3594
+ <label class="switch switch-sm"><input type="checkbox" id="appSettingsSyncCaseState" aria-label="Sync cases across devices"><span class="slider"></span></label>
3595
+ </div>
3543
3596
  </div>
3544
3597
  </div>
3545
3598
 
@@ -3645,6 +3698,27 @@
3645
3698
  </div>
3646
3699
  </div>
3647
3700
 
3701
+ <!-- The local model window (local-model-ui.js): choose a model, confirm the sizes,
3702
+ watch the download, start a session. Opened by the welcome button and by the
3703
+ row in App Settings > Models; placed AFTER #appSettingsModal so it stacks above
3704
+ it when opened from there. The module fills the body from GET /api/local-model
3705
+ through its own translator call (model, agent and chip names are someone
3706
+ else's text), hence data-i18n-skip on the body; the title and the close button
3707
+ are static and go through the page translator. -->
3708
+ <div class="modal" id="localModelModal" role="dialog" aria-modal="true" aria-labelledby="localModelModalTitle">
3709
+ <div class="modal-backdrop" onclick="app.closeLocalModelWindow()"></div>
3710
+ <div class="modal-content local-model-window">
3711
+ <div class="modal-header">
3712
+ <h3 id="localModelModalTitle">Run a model on this Mac</h3>
3713
+ <button class="modal-close" onclick="app.closeLocalModelWindow()" aria-label="Close">&times;</button>
3714
+ </div>
3715
+ <div class="modal-body lm-body" id="localModelWindowBody" data-i18n-skip></div>
3716
+ <!-- The buttons of the current screen. Outside the body, so they keep their
3717
+ place while the body changes and scrolls. -->
3718
+ <div class="lm-foot-slot" id="localModelWindowFoot" data-i18n-skip></div>
3719
+ </div>
3720
+ </div>
3721
+
3648
3722
  <!-- Shortcut Overlay Modal -->
3649
3723
  <div class="modal shortcut-overlay-modal" id="shortcutOverlayModal" tabindex="-1">
3650
3724
  <div class="modal-backdrop" onclick="app.closeShortcutOverlay()"></div>
@@ -4645,11 +4719,11 @@
4645
4719
  </div>
4646
4720
 
4647
4721
  <script defer src="constants.782170e1.js"></script>
4648
- <script defer src="i18n.a5e82c95.js"></script>
4722
+ <script defer src="i18n.519d025e.js"></script>
4649
4723
  <script defer src="mobile-handlers.f7c3f692.js"></script>
4650
- <script defer src="voice-input.2342c37b.js"></script>
4724
+ <script defer src="voice-input.d0580528.js"></script>
4651
4725
  <script defer src="notification-manager.feb82c04.js"></script>
4652
- <script defer src="keyboard-accessory.b941676c.js"></script>
4726
+ <script defer src="keyboard-accessory.0800fc44.js"></script>
4653
4727
  <script defer src="input-cjk.8bc46081.js"></script>
4654
4728
  <!-- Shows iOS Safari IME composition text inside the terminal. Must precede terminal-ui.js. -->
4655
4729
  <script defer src="mobile-ime-preview.2dbaf262.js"></script>
@@ -4659,10 +4733,10 @@
4659
4733
  <script defer src="sanitize-html.e7147e76.js"></script>
4660
4734
  <!-- Owner tab layout projection (grouped vertical rail); pure, read by app.js. -->
4661
4735
  <script defer src="tab-layout-browser.2d6189f7.js"></script>
4662
- <script defer src="app.9ea37070.js"></script>
4736
+ <script defer src="app.07398d90.js"></script>
4663
4737
  <script defer src="tab-rail-resize.b5cdceaf.js"></script>
4664
4738
  <script defer src="header-divider.eb2d2463.js"></script>
4665
- <script defer src="terminal-ui.a7883640.js"></script>
4739
+ <script defer src="terminal-ui.f92eae28.js"></script>
4666
4740
  <script defer src="terminal-tile.js"></script>
4667
4741
  <script defer src="terminal-split.js"></script>
4668
4742
  <script defer src="tile-grid.js"></script>
@@ -4670,14 +4744,14 @@
4670
4744
  <script defer src="ralph-panel.b350e2ef.js"></script>
4671
4745
  <script defer src="orchestrator-panel.js"></script>
4672
4746
  <script defer src="cron-ui.js"></script>
4673
- <script defer src="settings-ui.18f92052.js"></script>
4674
- <script defer src="panels-ui.8bcd4473.js"></script>
4747
+ <script defer src="settings-ui.8b37cf07.js"></script>
4748
+ <script defer src="panels-ui.9ba2683e.js"></script>
4675
4749
  <script defer src="readmymind-ui.js"></script>
4676
4750
  <script defer src="ultracode-panel.js"></script>
4677
4751
  <script defer src="approvals-ui.js"></script>
4678
4752
  <script defer src="reboot-restore-ui.js"></script>
4679
4753
  <script defer src="admin-ui.js"></script>
4680
- <script defer src="session-ui.a7c8c095.js"></script>
4754
+ <script defer src="session-ui.8f300b14.js"></script>
4681
4755
  <script defer src="host-wake-ui.js"></script>
4682
4756
  <script defer src="webview-tabs.js"></script>
4683
4757
  <script defer src="mobile-overview.js"></script>
@@ -4685,6 +4759,7 @@
4685
4759
  <script defer src="foreign-sessions.js"></script>
4686
4760
  <script defer src="git-status-ui.js"></script>
4687
4761
  <script defer src="edit-history-ui.js"></script>
4762
+ <script defer src="local-model-ui.js"></script>
4688
4763
  <script defer src="entrance-animations.js"></script>
4689
4764
  <script defer src="ralph-wizard.b6c0dd19.js"></script>
4690
4765
  <script defer src="api-client.c9b1cddc.js"></script>
Binary file
Binary file
@@ -74,6 +74,8 @@ const PathPicker = {
74
74
  _previewOverlay: null,
75
75
  _previewRequestSequence: 0,
76
76
  _previewPreviousFocus: null,
77
+ _previewImageCleanup: null,
78
+ _previewImageZoom: null,
77
79
  _showHidden: false,
78
80
  _sortMode: PATH_PICKER_DEFAULT_SORT,
79
81
 
@@ -563,6 +565,11 @@ const PathPicker = {
563
565
  <strong class="path-preview-title"></strong>
564
566
  <span class="path-preview-path"></span>
565
567
  </div>
568
+ <div class="path-preview-zoom" hidden aria-label="Image zoom controls">
569
+ <button type="button" data-zoom="out" aria-label="Zoom out">−</button>
570
+ <button type="button" data-zoom="fit" aria-label="Fit image">Fit</button>
571
+ <button type="button" data-zoom="in" aria-label="Zoom in">+</button>
572
+ </div>
566
573
  <a class="path-preview-open" target="_blank" rel="noopener noreferrer">Open</a>
567
574
  <button type="button" class="path-preview-close" aria-label="Close preview">&times;</button>
568
575
  </div>
@@ -580,13 +587,30 @@ const PathPicker = {
580
587
 
581
588
  const body = overlay.querySelector('.path-preview-body');
582
589
  if (entry.previewKind === 'image') {
590
+ const zoomControls = overlay.querySelector('.path-preview-zoom');
591
+ body.classList.add('path-preview-image-viewport');
583
592
  const image = document.createElement('img');
584
593
  image.className = 'path-preview-image';
585
594
  image.alt = entry.name;
586
- image.addEventListener('load', () => body.querySelector('.path-preview-loading')?.remove());
587
- image.addEventListener('error', () => this.showPreviewError('Image preview failed to load'));
595
+ image.draggable = false;
596
+ // Both handlers check the sequence like the text branch: an image whose preview was already
597
+ // replaced can still finish loading, and `this._previewOverlay` and the zoom state are then
598
+ // the newer preview's. The controls show only once there is an image to zoom.
599
+ image.addEventListener('load', () => {
600
+ if (requestSequence !== this._previewRequestSequence) return;
601
+ body.querySelector('.path-preview-loading')?.remove();
602
+ zoomControls.hidden = false;
603
+ this._setPreviewImageZoom(1);
604
+ });
605
+ image.addEventListener('error', () => {
606
+ if (requestSequence !== this._previewRequestSequence) return;
607
+ zoomControls.hidden = true;
608
+ this._previewImageCleanup?.();
609
+ this.showPreviewError('Image preview failed to load');
610
+ });
588
611
  image.src = previewUrl;
589
612
  body.appendChild(image);
613
+ this._bindPreviewImageGestures(image, body, zoomControls);
590
614
  } else if (entry.previewKind === 'text') {
591
615
  fetch(previewUrl)
592
616
  .then(async (response) => {
@@ -630,8 +654,142 @@ const PathPicker = {
630
654
  body.replaceChildren(error);
631
655
  },
632
656
 
657
+ _setPreviewImageZoom(scale, focalPoint) {
658
+ const state = this._previewImageZoom;
659
+ if (!state) return;
660
+ const nextScale = Math.max(1, Math.min(6, scale));
661
+ if (focalPoint) {
662
+ const rect = state.body.getBoundingClientRect();
663
+ const qx = focalPoint.x - (rect.left + rect.width / 2);
664
+ const qy = focalPoint.y - (rect.top + rect.height / 2);
665
+ const ratio = nextScale / state.scale;
666
+ state.x = qx + (state.x - qx) * ratio;
667
+ state.y = qy + (state.y - qy) * ratio;
668
+ }
669
+ state.scale = nextScale;
670
+ this._clampPreviewImagePan();
671
+ state.image.style.transform = `translate(${state.x}px, ${state.y}px) scale(${state.scale})`;
672
+ const fitButton = state.controls.querySelector('[data-zoom="fit"]');
673
+ if (fitButton) fitButton.textContent = `${Math.round(state.scale * 100)}%`;
674
+ state.image.classList.toggle('is-zoomed', state.scale > 1);
675
+ },
676
+
677
+ /** Size the image is drawn at before zoom: `object-fit: scale-down` in the viewport box, so never
678
+ * larger than its natural size. The box until the image has loaded (no natural size yet). */
679
+ _previewImageFitSize(state, rect) {
680
+ const naturalWidth = state.image.naturalWidth;
681
+ const naturalHeight = state.image.naturalHeight;
682
+ if (!naturalWidth || !naturalHeight) return { width: rect.width, height: rect.height };
683
+ const fit = Math.min(1, rect.width / naturalWidth, rect.height / naturalHeight);
684
+ return { width: naturalWidth * fit, height: naturalHeight * fit };
685
+ },
686
+
687
+ /** Keep the zoomed image covering the viewport: it may move until its edge reaches the viewport's
688
+ * edge, never further, and an axis on which it is still smaller than the viewport stays centred.
689
+ * Clamping to the image box instead let a small or letterboxed image be panned out of view. */
690
+ _clampPreviewImagePan() {
691
+ const state = this._previewImageZoom;
692
+ if (!state) return;
693
+ const rect = state.body.getBoundingClientRect();
694
+ const fitted = this._previewImageFitSize(state, rect);
695
+ const maxX = Math.max(0, (fitted.width * state.scale - rect.width) / 2);
696
+ const maxY = Math.max(0, (fitted.height * state.scale - rect.height) / 2);
697
+ state.x = Math.max(-maxX, Math.min(maxX, state.x));
698
+ state.y = Math.max(-maxY, Math.min(maxY, state.y));
699
+ },
700
+
701
+ /** Zoom factor for one wheel event, proportional to `deltaY` (d3-zoom's scale: about 15% per
702
+ * 100px mouse notch, ten times that for ctrl+wheel, which is how Chrome and Firefox deliver a
703
+ * trackpad pinch), so a trackpad's stream of small deltas zooms smoothly instead of 20% per
704
+ * event. Clamped per event so one large delta cannot jump to the maximum; no vertical delta
705
+ * (a sideways scroll) zooms nothing. */
706
+ _previewWheelZoomFactor(event) {
707
+ const deltaY = Number(event?.deltaY) || 0;
708
+ if (!deltaY) return 1;
709
+ const perUnit = event.deltaMode === 1 ? 0.05 : event.deltaMode ? 1 : 0.002;
710
+ const exponent = -deltaY * perUnit * (event.ctrlKey ? 10 : 1);
711
+ return 2 ** Math.max(-0.5, Math.min(0.5, exponent));
712
+ },
713
+
714
+ _bindPreviewImageGestures(image, body, controls) {
715
+ this._previewImageZoom = { image, body, controls, scale: 1, x: 0, y: 0, pointers: new Map(), gesture: null };
716
+ const state = this._previewImageZoom;
717
+ const cleanups = [];
718
+ const listen = (target, name, handler, options) => {
719
+ target.addEventListener(name, handler, options);
720
+ cleanups.push(() => target.removeEventListener(name, handler, options));
721
+ };
722
+ const pointer = (event) => ({ x: event.clientX, y: event.clientY });
723
+ const midpoint = (a, b) => ({ x: (a.x + b.x) / 2, y: (a.y + b.y) / 2 });
724
+ const distance = (a, b) => Math.hypot(a.x - b.x, a.y - b.y);
725
+ const startGesture = () => {
726
+ const points = Array.from(state.pointers.values());
727
+ if (points.length > 1) {
728
+ state.gesture = {
729
+ kind: 'pinch',
730
+ scale: state.scale,
731
+ distance: Math.max(1, distance(points[0], points[1])),
732
+ midpoint: midpoint(points[0], points[1]),
733
+ };
734
+ } else if (points.length === 1) {
735
+ state.gesture = { kind: 'pan', point: points[0], x: state.x, y: state.y };
736
+ }
737
+ };
738
+ listen(image, 'pointerdown', (event) => {
739
+ event.preventDefault();
740
+ image.setPointerCapture?.(event.pointerId);
741
+ state.pointers.set(event.pointerId, pointer(event));
742
+ startGesture();
743
+ });
744
+ listen(image, 'pointermove', (event) => {
745
+ if (!state.pointers.has(event.pointerId) || !state.gesture) return;
746
+ event.preventDefault();
747
+ state.pointers.set(event.pointerId, pointer(event));
748
+ if (state.pointers.size > 1) {
749
+ const points = Array.from(state.pointers.values());
750
+ this._setPreviewImageZoom(
751
+ state.gesture.scale * distance(points[0], points[1]) / state.gesture.distance,
752
+ state.gesture.midpoint
753
+ );
754
+ } else if (state.gesture.kind === 'pan' && state.scale > 1) {
755
+ const point = state.pointers.values().next().value;
756
+ state.x = state.gesture.x + point.x - state.gesture.point.x;
757
+ state.y = state.gesture.y + point.y - state.gesture.point.y;
758
+ this._setPreviewImageZoom(state.scale);
759
+ }
760
+ });
761
+ const endPointer = (event) => {
762
+ state.pointers.delete(event.pointerId);
763
+ startGesture();
764
+ };
765
+ listen(image, 'pointerup', endPointer);
766
+ listen(image, 'pointercancel', endPointer);
767
+ listen(image, 'lostpointercapture', endPointer);
768
+ listen(image, 'dblclick', (event) => {
769
+ event.preventDefault();
770
+ this._setPreviewImageZoom(state.scale > 1 ? 1 : 2, pointer(event));
771
+ });
772
+ listen(body, 'wheel', (event) => {
773
+ event.preventDefault();
774
+ const factor = this._previewWheelZoomFactor(event);
775
+ if (factor !== 1) this._setPreviewImageZoom(state.scale * factor, pointer(event));
776
+ }, { passive: false });
777
+ listen(controls, 'click', (event) => {
778
+ const button = event.target.closest('[data-zoom]');
779
+ if (!button) return;
780
+ if (button.dataset.zoom === 'fit') this._setPreviewImageZoom(1);
781
+ else this._setPreviewImageZoom(state.scale * (button.dataset.zoom === 'in' ? 1.5 : 1 / 1.5));
782
+ });
783
+ this._previewImageCleanup = () => {
784
+ cleanups.forEach((cleanup) => cleanup());
785
+ this._previewImageZoom = null;
786
+ this._previewImageCleanup = null;
787
+ };
788
+ },
789
+
633
790
  closePreview(restoreFocus = true) {
634
791
  this._previewRequestSequence += 1;
792
+ this._previewImageCleanup?.();
635
793
  this._previewOverlay?.remove();
636
794
  this._previewOverlay = null;
637
795
  const previousFocus = this._previewPreviousFocus;