rvlib-shipkit 2.28.0 → 2.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 (752) hide show
  1. package/CHANGELOG.md +55 -0
  2. package/package.json +10 -2
  3. package/src/advisors/acts.ts +277 -0
  4. package/src/advisors/advice.ts +384 -0
  5. package/src/advisors/advisor-view.ts +417 -0
  6. package/src/advisors/app-graph.ts +112 -0
  7. package/src/advisors/app.ts +75 -0
  8. package/src/advisors/door.ts +59 -0
  9. package/src/advisors/edge/api.ts +292 -0
  10. package/src/advisors/edge/bucket.ts +43 -0
  11. package/src/advisors/edge/certs.ts +20 -0
  12. package/src/advisors/edge/form.ts +45 -0
  13. package/src/advisors/edge/handler.ts +156 -0
  14. package/src/advisors/edge/jwt.ts +76 -0
  15. package/src/advisors/edge/shell.ts +27 -0
  16. package/src/advisors/edge/status.ts +12 -0
  17. package/src/advisors/edge/types.ts +137 -0
  18. package/src/advisors/edge/worker.ts +52 -0
  19. package/src/advisors/expose.ts +150 -0
  20. package/src/advisors/job.ts +35 -0
  21. package/src/advisors/owner-store.ts +226 -0
  22. package/src/advisors/photos.ts +182 -0
  23. package/src/advisors/project.ts +311 -0
  24. package/src/advisors/r2.ts +48 -0
  25. package/src/advisors/routes.ts +469 -0
  26. package/src/advisors/scan.ts +194 -0
  27. package/src/advisors/sync.ts +363 -0
  28. package/src/agent-time/accounts-usage-disk.ts +29 -0
  29. package/src/agent-time/accounts-usage.ts +97 -0
  30. package/src/agent-time/hooks.ts +64 -27
  31. package/src/agent-time/lane-name.ts +7 -0
  32. package/src/agent-time/leads.ts +95 -0
  33. package/src/agent-time/registry.ts +106 -41
  34. package/src/agent-time/render.ts +35 -4
  35. package/src/agent-time/report-cache.ts +4 -8
  36. package/src/agent-time/report.ts +19 -1
  37. package/src/agent-time/store.ts +10 -16
  38. package/src/annex/snapshots.ts +3 -3
  39. package/src/annex/tidy.ts +10 -23
  40. package/src/asks/ask-after.ts +2 -1
  41. package/src/asks/ask-carry.ts +190 -0
  42. package/src/asks/ask-close.ts +72 -0
  43. package/src/asks/ask-doc.ts +42 -0
  44. package/src/asks/ask-migrate.ts +9 -9
  45. package/src/asks/ask-steps-fold.ts +71 -114
  46. package/src/asks/ask-store.ts +170 -53
  47. package/src/asks/ask-words-fold.ts +208 -0
  48. package/src/checks/SK001-package-json-shape.check.ts +5 -7
  49. package/src/checks/SK004-gitignore-policy.check.ts +13 -13
  50. package/src/checks/SK010-undeclared-unit.check.ts +77 -64
  51. package/src/checks/SK013-one-way-in-policy.check.ts +20 -8
  52. package/src/checks/SK027-agent-wiki-links.check.ts +46 -6
  53. package/src/checks/SK033-global-contribution.check.ts +1 -1
  54. package/src/checks/SK036-draft-media-size.check.ts +5 -4
  55. package/src/checks/SK039-vscode-watch-generated.check.ts +1 -1
  56. package/src/checks/SK040-release-words.check.ts +39 -10
  57. package/src/checks/SK042-post-kinds.check.ts +2 -2
  58. package/src/checks/SK045-slow-hooks.check.ts +5 -2
  59. package/src/checks/SK049-thread-answers-hook.check.ts +6 -4
  60. package/src/checks/SK051-no-formatter.check.ts +485 -0
  61. package/src/cli/cmd_Advisors.ts +336 -0
  62. package/src/cli/cmd_Annex.ts +10 -10
  63. package/src/cli/cmd_Asks.ts +111 -10
  64. package/src/cli/cmd_Backup.ts +7 -7
  65. package/src/cli/cmd_CacheAudit.ts +1 -1
  66. package/src/cli/cmd_Check.ts +3 -3
  67. package/src/cli/cmd_Checks.ts +1 -1
  68. package/src/cli/cmd_Ci.ts +15 -16
  69. package/src/cli/cmd_Db.ts +9 -9
  70. package/src/cli/cmd_FleetPush.ts +1 -1
  71. package/src/cli/cmd_History.ts +2 -2
  72. package/src/cli/cmd_Home.ts +5 -6
  73. package/src/cli/cmd_Hooks.ts +13 -3
  74. package/src/cli/cmd_Hq.ts +30 -19
  75. package/src/cli/cmd_Keys.ts +1 -1
  76. package/src/cli/cmd_Lanes.ts +9 -3
  77. package/src/cli/cmd_Media.ts +59 -13
  78. package/src/cli/cmd_Orchestrator.ts +138 -0
  79. package/src/cli/cmd_Rec.ts +5 -2
  80. package/src/cli/cmd_Reflect.ts +17 -3
  81. package/src/cli/cmd_Releases.ts +38 -38
  82. package/src/cli/cmd_Review.ts +690 -316
  83. package/src/cli/cmd_Shot.ts +14 -6
  84. package/src/cli/cmd_Social.ts +5 -4
  85. package/src/cli/cmd_SocialDrafts.ts +23 -10
  86. package/src/cli/cmd_Space.ts +1 -1
  87. package/src/cli/cmd_Start.ts +1 -1
  88. package/src/cli/cmd_ThreadKinds.ts +18 -11
  89. package/src/cli/cmd_ThreadReflect.ts +20 -12
  90. package/src/cli/cmd_ThreadSyncNeeds.ts +7 -7
  91. package/src/cli/cmd_Time.ts +2 -1
  92. package/src/cli/cmd_Tmp.ts +9 -8
  93. package/src/cli/cmd_TraceAudit.ts +1 -1
  94. package/src/cli/cmd_Trailer.ts +5 -5
  95. package/src/cli/cmd_Urls.ts +3 -3
  96. package/src/cli/cmd_Vault.ts +4 -4
  97. package/src/cli/cmd_When.ts +1 -1
  98. package/src/cli/cmd_Worktrees.ts +109 -0
  99. package/src/cli/registry.ts +15 -4
  100. package/src/cli.ts +21 -13
  101. package/src/collections/actions.ts +2 -1
  102. package/src/collections/checks.ts +1 -1
  103. package/src/collections/collection-types.ts +16 -5
  104. package/src/collections/pings.ts +3 -0
  105. package/src/collections/providers.ts +15 -15
  106. package/src/collections/review.ts +25 -23
  107. package/src/collections/state-rules.ts +8 -7
  108. package/src/comfy/comfy-panel.ts +2 -2
  109. package/src/commands/model.ts +1 -1
  110. package/src/commands/routes.ts +1 -1
  111. package/src/commands/runs.ts +1 -1
  112. package/src/core/app-icon.ts +3 -9
  113. package/src/core/atomic-write.ts +36 -0
  114. package/src/core/budget.ts +16 -1
  115. package/src/core/bun-builtins.ts +7 -7
  116. package/src/core/canonical-scripts.ts +4 -6
  117. package/src/core/check-ctx.ts +17 -3
  118. package/src/core/day-stamp.ts +20 -0
  119. package/src/core/git-bin.ts +10 -0
  120. package/src/core/git.ts +60 -16
  121. package/src/core/hard-reset.ts +1 -2
  122. package/src/core/history-files.ts +4 -8
  123. package/src/core/house-layout.ts +3 -0
  124. package/src/core/hub-theme.ts +16 -0
  125. package/src/core/identity.ts +1 -1
  126. package/src/core/in-base.ts +19 -0
  127. package/src/core/instance.ts +15 -5
  128. package/src/core/last-good.ts +42 -133
  129. package/src/core/layout.ts +1 -1
  130. package/src/core/load-probe.ts +4 -8
  131. package/src/core/locked-write.ts +117 -47
  132. package/src/core/loop-watch.ts +24 -3
  133. package/src/core/machine-db.ts +54 -12
  134. package/src/core/machine-link.ts +1 -1
  135. package/src/core/memory-watch.ts +3 -2
  136. package/src/core/motherhome.ts +2 -1
  137. package/src/core/nearest.ts +23 -0
  138. package/src/core/on-loop.ts +57 -0
  139. package/src/core/one-way-in-policy.ts +26 -13
  140. package/src/core/raw-access.ts +9 -2
  141. package/src/core/reexec.ts +3 -5
  142. package/src/core/repo-walk.ts +104 -0
  143. package/src/core/retention.ts +10 -12
  144. package/src/core/run-dirs.ts +45 -0
  145. package/src/core/runs-matrix.ts +1 -1
  146. package/src/core/slots.ts +2 -2
  147. package/src/core/slug.ts +33 -0
  148. package/src/core/spawn-timeout.ts +3 -1
  149. package/src/core/squircle.ts +0 -8
  150. package/src/core/throwaway-worktree.ts +21 -2
  151. package/src/core/unit-files.ts +4 -4
  152. package/src/core/when-block.ts +4 -5
  153. package/src/core/when.ts +1 -3
  154. package/src/core/words.ts +33 -0
  155. package/src/fleet/push-fleet.ts +4 -11
  156. package/src/{core → gate}/cache-audit.ts +1 -1
  157. package/src/{core → gate}/check-runner.ts +24 -54
  158. package/src/{core → gate}/discover-checks.ts +5 -102
  159. package/src/{core → gate}/discover-legacy-checks.ts +3 -3
  160. package/src/{ledger → gate}/gate-checks.ts +5 -5
  161. package/src/gate/head-gate.ts +151 -0
  162. package/src/{core → gate}/job-follow.ts +1 -1
  163. package/src/{core → gate}/job-run.ts +3 -3
  164. package/src/{core → gate}/pre-commit-discovery.ts +2 -2
  165. package/src/{core → gate}/run-check.ts +7 -7
  166. package/src/{core → gate}/run-ci.ts +9 -9
  167. package/src/gate/run-fix.ts +173 -0
  168. package/src/{core → gate}/run-fixers.ts +14 -14
  169. package/src/{core → gate}/trace-audit.ts +8 -8
  170. package/src/home/activity-shape.ts +1 -1
  171. package/src/home/activity.ts +13 -11
  172. package/src/home/app-sign.ts +17 -9
  173. package/src/home/daemon-guard.ts +6 -0
  174. package/src/home/daemon-jobs.ts +52 -10
  175. package/src/home/database-words.ts +21 -27
  176. package/src/home/databases.ts +3 -3
  177. package/src/home/global-context.ts +2 -2
  178. package/src/home/global-units.ts +1 -1
  179. package/src/home/gui-app/ShipkitGui.swift +129 -55
  180. package/src/home/gui-app.ts +1 -1
  181. package/src/home/handover.ts +126 -0
  182. package/src/home/home-move.ts +29 -16
  183. package/src/home/home-paths.ts +30 -8
  184. package/src/home/home-routes.ts +75 -5
  185. package/src/home/home-start.ts +1 -1
  186. package/src/home/home-state.ts +12 -6
  187. package/src/home/hubs.ts +28 -5
  188. package/src/home/inbox-shape.ts +61 -38
  189. package/src/home/inbox.ts +2 -1
  190. package/src/home/lib-watch.ts +93 -74
  191. package/src/home/machine-fold.ts +46 -43
  192. package/src/home/machine-repair.ts +5 -6
  193. package/src/home/machine-stores.ts +3 -3
  194. package/src/home/machine-temp.ts +58 -67
  195. package/src/home/page-build.ts +330 -0
  196. package/src/home/page-held.ts +338 -0
  197. package/src/home/pm-config.ts +10 -2
  198. package/src/home/pm.ts +35 -1
  199. package/src/home/process-apps.ts +3 -3
  200. package/src/home/push-sources.ts +132 -0
  201. package/src/home/run-daemon.ts +54 -4
  202. package/src/home/run-pm.ts +2 -1
  203. package/src/home/run-web.ts +11 -6
  204. package/src/home/search-shape.ts +54 -0
  205. package/src/home/search.ts +114 -0
  206. package/src/home/serve-daemon.ts +40 -18
  207. package/src/home/serve-web.ts +86 -145
  208. package/src/home/space-page.ts +7 -7
  209. package/src/home/space-words.ts +11 -10
  210. package/src/home/supervise.ts +24 -0
  211. package/src/home/time-page-shape.ts +0 -13
  212. package/src/home/vault-page.ts +15 -15
  213. package/src/home/vault-reveal.ts +29 -0
  214. package/src/home/vault-words.ts +3 -3
  215. package/src/home/via-hub.ts +3 -4
  216. package/src/home/worktree-tidy.ts +236 -0
  217. package/src/hooks/edit-guard.ts +12 -0
  218. package/src/hooks/hook-gates.ts +2 -0
  219. package/src/hooks/leak-guard.ts +9 -3
  220. package/src/hooks/one-way-in-guard.ts +11 -3
  221. package/src/hooks/run-hooks.ts +58 -5
  222. package/src/hooks/shared-file.ts +174 -0
  223. package/src/{serve → house}/project-gutter.ts +5 -1
  224. package/src/hq/door-route.ts +2 -2
  225. package/src/hq/door.ts +3 -3
  226. package/src/hq/files-send.ts +5 -5
  227. package/src/hq/forgotten-log.ts +1 -1
  228. package/src/hq/history-check.ts +7 -6
  229. package/src/hq/history-send.ts +12 -14
  230. package/src/hq/hq-db.ts +1 -1
  231. package/src/hq/hq-local.ts +12 -10
  232. package/src/hq/hq-routes.ts +1 -1
  233. package/src/hq/hq-store.ts +4 -4
  234. package/src/hq/kinds/ask.ts +4 -3
  235. package/src/hq/kinds/index.ts +4 -4
  236. package/src/hq/kinds/{card-gone.ts → item-gone.ts} +24 -25
  237. package/src/hq/kinds/{card-msg.ts → item-msg.ts} +25 -27
  238. package/src/hq/kinds/{card.ts → item.ts} +31 -29
  239. package/src/hq/kinds/kind.ts +3 -0
  240. package/src/hq/kinds/media.ts +2 -3
  241. package/src/hq/kinds/prompt.ts +2 -1
  242. package/src/hq/kinds/time-day.ts +5 -4
  243. package/src/hq/ledger.ts +22 -22
  244. package/src/hq/machine-notes.ts +14 -15
  245. package/src/hq/outbox.ts +31 -22
  246. package/src/hq/report.ts +10 -12
  247. package/src/hq/switch.ts +20 -23
  248. package/src/hq/{cards.ts → thread-sync.ts} +127 -99
  249. package/src/hq/vault-route.ts +1 -1
  250. package/src/{serve → http}/door-forward.ts +11 -4
  251. package/src/http/loopback-serve.ts +84 -0
  252. package/src/{serve → http}/same-origin.ts +3 -2
  253. package/src/{serve → http}/tailnet-caller.ts +5 -4
  254. package/src/identities/machine-route.ts +2 -2
  255. package/src/identities/shown.ts +2 -6
  256. package/src/ledger/check-table.ts +1 -1
  257. package/src/ledger/db.ts +1 -0
  258. package/src/ledger/git-key.ts +9 -3
  259. package/src/ledger/git-scan.ts +2 -2
  260. package/src/ledger/ledger.ts +6 -16
  261. package/src/media-kinds.ts +4 -1
  262. package/src/media-store/backup/daemon.ts +3 -2
  263. package/src/media-store/backup/keys.ts +0 -3
  264. package/src/media-store/backup/manifest.ts +1 -1
  265. package/src/media-store/backup/prune.ts +15 -18
  266. package/src/media-store/backup/retention.ts +2 -2
  267. package/src/media-store/backup/run.ts +8 -27
  268. package/src/media-store/backup/sources.ts +11 -12
  269. package/src/media-store/backup/thread-copy.ts +8 -9
  270. package/src/media-store/backup/watch.ts +10 -6
  271. package/src/media-store/content.ts +3 -0
  272. package/src/media-store/copy/night.ts +4 -4
  273. package/src/media-store/daemon.ts +5 -4
  274. package/src/media-store/db.ts +10 -20
  275. package/src/media-store/forget-one.ts +247 -0
  276. package/src/media-store/forget.ts +23 -4
  277. package/src/media-store/hq-send.ts +5 -4
  278. package/src/media-store/purge.ts +2 -2
  279. package/src/media-store/remote.ts +2 -2
  280. package/src/media-store/space-listing.ts +0 -5
  281. package/src/media-store/space.ts +1 -0
  282. package/src/media-store/tidy.ts +3 -3
  283. package/src/media-store/upload.ts +2 -2
  284. package/src/media-store/webp.ts +3 -3
  285. package/src/messages/objects.ts +5 -3
  286. package/src/messages/score.ts +1 -3
  287. package/src/messages/store-doc.ts +114 -0
  288. package/src/messages/verdicts.ts +6 -0
  289. package/src/messages/write.ts +3 -3
  290. package/src/mv/mv-md.ts +43 -12
  291. package/src/orchestrator/brief.md +29 -0
  292. package/src/orchestrator/deliver.ts +81 -0
  293. package/src/orchestrator/drill.ts +129 -0
  294. package/src/orchestrator/guards.ts +63 -0
  295. package/src/orchestrator/keeper.ts +332 -0
  296. package/src/orchestrator/phone.ts +98 -0
  297. package/src/orchestrator/pm.ts +20 -0
  298. package/src/orchestrator/presence-shape.ts +17 -0
  299. package/src/orchestrator/presence.ts +68 -0
  300. package/src/orchestrator/push.ts +102 -0
  301. package/src/orchestrator/routes.ts +113 -0
  302. package/src/orchestrator/state.ts +92 -0
  303. package/src/orchestrator/switch.ts +86 -0
  304. package/src/orchestrator/tmux.ts +82 -0
  305. package/src/orchestrator/unheard.ts +68 -0
  306. package/src/pages/unit.ts +1 -1
  307. package/src/plan/repo-source.ts +1 -1
  308. package/src/recordings/load.ts +1 -1
  309. package/src/recordings/model.ts +18 -10
  310. package/src/recordings/place.ts +3 -3
  311. package/src/recordings/recorder-app/Capture.swift +69 -21
  312. package/src/recordings/recorder-app/Editor.swift +214 -11
  313. package/src/recordings/recorder-app/main.swift +229 -47
  314. package/src/recordings/recorder-app.ts +1 -1
  315. package/src/recordings/routes.ts +11 -1
  316. package/src/recordings/take.ts +7 -5
  317. package/src/recordings/view.ts +6 -0
  318. package/src/reflect/prompt-corpus.ts +5 -3
  319. package/src/reflect/thread-words.ts +51 -0
  320. package/src/reflections/reflection-close.ts +123 -0
  321. package/src/reflections/reflection-doc.ts +59 -0
  322. package/src/reflections/reflection-place.ts +60 -0
  323. package/src/release/gate-checkout.ts +122 -20
  324. package/src/release/git-facts.ts +9 -8
  325. package/src/release/machine-words.ts +21 -3
  326. package/src/release/public-clean.ts +78 -19
  327. package/src/release/run-bump.ts +3 -5
  328. package/src/release/run-release.ts +42 -38
  329. package/src/releases/add.ts +33 -87
  330. package/src/releases/{from-card.ts → from-thread.ts} +47 -46
  331. package/src/releases/model.ts +207 -36
  332. package/src/releases/routes.ts +2 -2
  333. package/src/releases/shape.ts +184 -0
  334. package/src/releases/store.ts +10 -10
  335. package/src/repo-config.ts +13 -3
  336. package/src/review/anim.ts +7 -7
  337. package/src/review/answer-kinds.ts +39 -10
  338. package/src/review/auto.ts +3 -3
  339. package/src/review/band.ts +95 -3
  340. package/src/review/branch-hold.ts +12 -5
  341. package/src/review/cells.ts +169 -46
  342. package/src/review/doc-card.ts +41 -0
  343. package/src/review/doc-model.ts +100 -0
  344. package/src/review/doc-routes.ts +66 -0
  345. package/src/review/doc-save.ts +152 -0
  346. package/src/review/{draft-card.ts → draft-item.ts} +10 -7
  347. package/src/review/draft-model.ts +125 -17
  348. package/src/review/events.ts +5 -12
  349. package/src/review/file-tags.ts +52 -0
  350. package/src/review/format.ts +84 -41
  351. package/src/review/gone.ts +20 -20
  352. package/src/review/hand-over.ts +58 -0
  353. package/src/review/heard.ts +29 -0
  354. package/src/review/house-kind-defs.ts +34 -4
  355. package/src/review/http.ts +1 -1
  356. package/src/review/inbox-hook.ts +55 -9
  357. package/src/review/inbox-read.ts +38 -13
  358. package/src/review/instructions.ts +42 -0
  359. package/src/review/{card-db.ts → item-db.ts} +32 -30
  360. package/src/review/{card-rows.ts → item-rows.ts} +77 -50
  361. package/src/review/kind-still.ts +125 -0
  362. package/src/review/kinds.ts +46 -10
  363. package/src/review/lane-ask.ts +6 -2
  364. package/src/review/live-post.ts +107 -0
  365. package/src/review/live-view.ts +137 -0
  366. package/src/review/media-kind.ts +4 -4
  367. package/src/review/media-read.ts +4 -4
  368. package/src/review/media.ts +3 -5
  369. package/src/review/mentions.ts +100 -0
  370. package/src/review/model-moved.ts +76 -0
  371. package/src/review/model.ts +471 -149
  372. package/src/review/move.ts +59 -58
  373. package/src/review/need-address.ts +5 -5
  374. package/src/review/need-threads.ts +15 -57
  375. package/src/review/notes.ts +2 -1
  376. package/src/review/one-block.ts +64 -0
  377. package/src/review/owner-read.ts +41 -0
  378. package/src/review/owner-verdict.ts +3 -3
  379. package/src/review/parties.ts +101 -9
  380. package/src/review/paste.ts +4 -4
  381. package/src/review/phone-push.ts +137 -0
  382. package/src/review/previews.ts +16 -16
  383. package/src/review/project.ts +1 -1
  384. package/src/review/push.ts +269 -0
  385. package/src/review/referring.ts +26 -4
  386. package/src/review/reflection-object.ts +13 -18
  387. package/src/review/rev.ts +1 -1
  388. package/src/review/role.ts +3 -3
  389. package/src/review/routes.ts +113 -74
  390. package/src/review/search-index.ts +218 -0
  391. package/src/review/search-job.ts +40 -0
  392. package/src/review/search-ocr.ts +138 -0
  393. package/src/review/search-text.ts +129 -0
  394. package/src/review/secret-route.ts +44 -14
  395. package/src/review/settle.ts +67 -0
  396. package/src/review/stage-routes.ts +15 -13
  397. package/src/review/{stage-card.ts → stage-thread.ts} +18 -17
  398. package/src/review/store-index.ts +49 -0
  399. package/src/review/store-parties.ts +20 -0
  400. package/src/review/store.ts +394 -214
  401. package/src/review/supersede.ts +23 -7
  402. package/src/review/take-back.ts +19 -6
  403. package/src/review/threads.ts +184 -63
  404. package/src/review/traces.ts +21 -33
  405. package/src/review/trailer-desk.ts +7 -7
  406. package/src/review/{trailer-card.ts → trailer-item.ts} +10 -10
  407. package/src/review/trailer-model.ts +4 -4
  408. package/src/review/trailer-notes.ts +2 -2
  409. package/src/review/trailer-routes.ts +5 -4
  410. package/src/review/trailer-shots.ts +3 -3
  411. package/src/review/unit.ts +70 -9
  412. package/src/review/uploads.ts +103 -0
  413. package/src/review/verdict-items.ts +2 -2
  414. package/src/review/verdict-write.ts +1 -1
  415. package/src/review/view-layout.ts +69 -0
  416. package/src/review/wait.ts +11 -5
  417. package/src/review/wakes.ts +115 -0
  418. package/src/review/watch-feed.ts +183 -0
  419. package/src/review/watchers.ts +27 -6
  420. package/src/rules/untrack-generated.ts +40 -39
  421. package/src/scaffold/files/bunfig.toml +1 -9
  422. package/src/scaffold/files/vscode-settings.json +1 -1
  423. package/src/scaffold/project-scaffold.ts +14 -10
  424. package/src/secrets/archive.ts +2 -1
  425. package/src/secrets/keychain-write.ts +11 -3
  426. package/src/secrets/lapse-mark.ts +8 -3
  427. package/src/secrets/lapse.ts +26 -15
  428. package/src/secrets/security-line.ts +19 -0
  429. package/src/serve/embed.ts +1 -1
  430. package/src/serve/house-runs.ts +1 -1
  431. package/src/serve/hub-app/accounts-line.tsx +67 -0
  432. package/src/serve/hub-app/activity-st.ts +46 -50
  433. package/src/serve/hub-app/advice-box.tsx +66 -0
  434. package/src/serve/hub-app/advisor-app.tsx +46 -0
  435. package/src/serve/hub-app/advisor-face.tsx +29 -0
  436. package/src/serve/hub-app/advisor-host.ts +142 -0
  437. package/src/serve/hub-app/advisor.html +22 -0
  438. package/src/serve/hub-app/advisors-st.ts +261 -0
  439. package/src/serve/hub-app/advisors-view.tsx +269 -0
  440. package/src/serve/hub-app/advisors.css +57 -0
  441. package/src/serve/hub-app/app-bridge.ts +27 -24
  442. package/src/serve/hub-app/ask-steps-st.ts +60 -0
  443. package/src/serve/hub-app/ask-steps.tsx +23 -0
  444. package/src/serve/hub-app/asks-page.tsx +8 -5
  445. package/src/serve/hub-app/asks-st.ts +1 -4
  446. package/src/serve/hub-app/auto-text.tsx +106 -14
  447. package/src/serve/hub-app/checks-svc.ts +1 -1
  448. package/src/serve/hub-app/clock-svc.ts +21 -5
  449. package/src/serve/hub-app/code-copy.ts +173 -12
  450. package/src/serve/hub-app/col-card.tsx +14 -21
  451. package/src/serve/hub-app/col-list-page.tsx +2 -2
  452. package/src/serve/hub-app/col-list-st.ts +6 -1
  453. package/src/serve/hub-app/col-tables.ts +14 -8
  454. package/src/serve/hub-app/cols-svc.ts +11 -1
  455. package/src/serve/hub-app/comfy-svc.ts +3 -2
  456. package/src/serve/hub-app/commands/commands-st.ts +36 -26
  457. package/src/serve/hub-app/controls.css +27 -11
  458. package/src/serve/hub-app/cursor-spot.ts +81 -0
  459. package/src/serve/hub-app/database-st.ts +31 -26
  460. package/src/serve/hub-app/database-view.tsx +12 -12
  461. package/src/serve/hub-app/dock-st.ts +51 -10
  462. package/src/serve/hub-app/dock-view.tsx +14 -1
  463. package/src/serve/hub-app/editor/doc-editor-st.ts +223 -0
  464. package/src/serve/hub-app/editor/doc-editor.tsx +116 -0
  465. package/src/serve/hub-app/editor/doc-saved.tsx +26 -0
  466. package/src/serve/hub-app/editor/doc-slot.ts +66 -0
  467. package/src/serve/hub-app/editor.css +36 -0
  468. package/src/serve/hub-app/emoji-names.ts +1915 -0
  469. package/src/serve/hub-app/emoji.ts +133 -0
  470. package/src/serve/hub-app/floating.tsx +162 -6
  471. package/src/serve/hub-app/git-st.ts +25 -19
  472. package/src/serve/hub-app/hash-route.ts +1 -1
  473. package/src/serve/hub-app/header-bar.tsx +4 -3
  474. package/src/serve/hub-app/held-keys.ts +25 -0
  475. package/src/serve/hub-app/home-st.ts +114 -16
  476. package/src/serve/hub-app/home-strip.css +3 -2
  477. package/src/serve/hub-app/home-strip.tsx +5 -2
  478. package/src/serve/hub-app/home.html +7 -0
  479. package/src/serve/hub-app/hub-app.tsx +56 -6
  480. package/src/serve/hub-app/hub.css +67 -31
  481. package/src/serve/hub-app/icons.tsx +10 -0
  482. package/src/serve/hub-app/identities-st.ts +35 -25
  483. package/src/serve/hub-app/identities-view.tsx +9 -6
  484. package/src/serve/hub-app/inbox-st.ts +39 -11
  485. package/src/serve/hub-app/inbox-view.tsx +10 -5
  486. package/src/serve/hub-app/inbox.css +6 -3
  487. package/src/serve/hub-app/index.html +7 -0
  488. package/src/serve/hub-app/insights-st.ts +27 -19
  489. package/src/serve/hub-app/instructions.css +9 -6
  490. package/src/serve/hub-app/kept-folds.ts +43 -0
  491. package/src/serve/hub-app/keys.ts +9 -3
  492. package/src/serve/hub-app/later.tsx +1 -1
  493. package/src/serve/hub-app/layout-st.ts +37 -6
  494. package/src/serve/hub-app/list-filter.tsx +1 -1
  495. package/src/serve/hub-app/live-bar.css +12 -0
  496. package/src/serve/hub-app/live-svc.ts +12 -2
  497. package/src/serve/hub-app/machine-st.ts +36 -10
  498. package/src/serve/hub-app/machines-st.ts +40 -34
  499. package/src/serve/hub-app/machines-view.tsx +5 -5
  500. package/src/serve/hub-app/markdown.css +81 -4
  501. package/src/serve/hub-app/md.ts +155 -9
  502. package/src/serve/hub-app/media-svc.ts +44 -11
  503. package/src/serve/hub-app/messages/messages-page.tsx +56 -12
  504. package/src/serve/hub-app/messages/messages-st.ts +26 -22
  505. package/src/serve/hub-app/new-thread.tsx +121 -0
  506. package/src/serve/hub-app/objects.css +1 -0
  507. package/src/serve/hub-app/orchestrator-line.tsx +104 -0
  508. package/src/serve/hub-app/orchestrator.css +37 -0
  509. package/src/serve/hub-app/page-keys.ts +7 -4
  510. package/src/serve/hub-app/page-reload.ts +111 -0
  511. package/src/serve/hub-app/pages-frames.tsx +2 -1
  512. package/src/serve/hub-app/pages-svc.ts +8 -3
  513. package/src/serve/hub-app/palette-st.ts +7 -2
  514. package/src/serve/hub-app/pane-boundary.tsx +13 -0
  515. package/src/serve/hub-app/pane-errors.ts +2 -1
  516. package/src/serve/hub-app/pano.css +20 -0
  517. package/src/serve/hub-app/plan-view.tsx +1 -1
  518. package/src/serve/hub-app/planned-st.ts +30 -26
  519. package/src/serve/hub-app/planned-view.tsx +16 -9
  520. package/src/serve/hub-app/polled.ts +201 -0
  521. package/src/serve/hub-app/presence-st.ts +110 -0
  522. package/src/serve/hub-app/project-list.css +98 -55
  523. package/src/serve/hub-app/project-list.tsx +136 -149
  524. package/src/serve/hub-app/projects-svc.ts +109 -57
  525. package/src/serve/hub-app/push-sign.tsx +15 -0
  526. package/src/serve/hub-app/push-svc.ts +273 -0
  527. package/src/serve/hub-app/quiet-st.ts +59 -0
  528. package/src/serve/hub-app/rail-fly.tsx +95 -0
  529. package/src/serve/hub-app/reach.ts +16 -0
  530. package/src/serve/hub-app/recordings-st.ts +169 -9
  531. package/src/serve/hub-app/recordings-take.ts +58 -0
  532. package/src/serve/hub-app/recordings-view.tsx +42 -35
  533. package/src/serve/hub-app/recordings.css +1 -1
  534. package/src/serve/hub-app/reflections-page.tsx +16 -4
  535. package/src/serve/hub-app/releases/releases-page.tsx +52 -19
  536. package/src/serve/hub-app/releases/releases-st.ts +39 -26
  537. package/src/serve/hub-app/releases.css +4 -0
  538. package/src/serve/hub-app/repo-sections.ts +21 -10
  539. package/src/serve/hub-app/repo-st.ts +36 -9
  540. package/src/serve/hub-app/review/advisor-bar.tsx +40 -0
  541. package/src/serve/hub-app/review/attach-st.ts +195 -0
  542. package/src/serve/hub-app/review/attach-view.tsx +260 -0
  543. package/src/serve/hub-app/review/clip-st.ts +1 -1
  544. package/src/serve/hub-app/review/cta.tsx +11 -0
  545. package/src/serve/hub-app/review/diff-view.tsx +37 -35
  546. package/src/serve/hub-app/review/doc-body.tsx +109 -0
  547. package/src/serve/hub-app/review/dock.tsx +36 -22
  548. package/src/serve/hub-app/review/draft-body.tsx +235 -0
  549. package/src/serve/hub-app/review/faces.tsx +26 -0
  550. package/src/serve/hub-app/review/group-block.tsx +75 -45
  551. package/src/serve/hub-app/review/heard-line.tsx +31 -0
  552. package/src/serve/hub-app/review/instructions-view.tsx +57 -32
  553. package/src/serve/hub-app/review/item-verdict.tsx +99 -26
  554. package/src/serve/hub-app/review/kind-states.tsx +148 -76
  555. package/src/serve/hub-app/review/kind-view.tsx +22 -7
  556. package/src/serve/hub-app/review/kit.tsx +4 -28
  557. package/src/serve/hub-app/review/lane-bar.tsx +4 -4
  558. package/src/serve/hub-app/review/lightbox.tsx +16 -0
  559. package/src/serve/hub-app/review/line-window.ts +149 -0
  560. package/src/serve/hub-app/review/live-bar-st.ts +145 -0
  561. package/src/serve/hub-app/review/live-bar.tsx +126 -0
  562. package/src/serve/hub-app/review/live-view.tsx +104 -0
  563. package/src/serve/hub-app/review/mention-st.ts +85 -0
  564. package/src/serve/hub-app/review/mesh-view.tsx +9 -0
  565. package/src/serve/hub-app/review/object-panel.tsx +35 -17
  566. package/src/serve/hub-app/review/pano-gl.ts +145 -0
  567. package/src/serve/hub-app/review/pano-view.tsx +192 -0
  568. package/src/serve/hub-app/review/phone-top.tsx +16 -0
  569. package/src/serve/hub-app/review/pictures-st.ts +38 -0
  570. package/src/serve/hub-app/review/question-views.tsx +107 -105
  571. package/src/serve/hub-app/review/review-board.tsx +1 -1
  572. package/src/serve/hub-app/review/review-cells.tsx +169 -111
  573. package/src/serve/hub-app/review/review-host.ts +69 -0
  574. package/src/serve/hub-app/review/review-kit.ts +34 -19
  575. package/src/serve/hub-app/review/review-list.tsx +123 -20
  576. package/src/serve/hub-app/review/review-page.tsx +7 -18
  577. package/src/serve/hub-app/review/review-st.ts +241 -138
  578. package/src/serve/hub-app/review/review-thread.tsx +463 -150
  579. package/src/serve/hub-app/review/review-views.tsx +540 -449
  580. package/src/serve/hub-app/review/scene-view.tsx +26 -0
  581. package/src/serve/hub-app/review/secret-facts.ts +26 -0
  582. package/src/serve/hub-app/review/space3d.tsx +114 -0
  583. package/src/serve/hub-app/review/splat-view.tsx +9 -0
  584. package/src/serve/hub-app/review/superseded-runs.ts +76 -0
  585. package/src/serve/hub-app/review/thread-close.tsx +17 -7
  586. package/src/serve/hub-app/review/thread-control-st.ts +2 -1
  587. package/src/serve/hub-app/review/thread-st.ts +528 -158
  588. package/src/serve/hub-app/review/thread-views.ts +71 -0
  589. package/src/serve/hub-app/review/{trailer-card.tsx → trailer-body.tsx} +34 -34
  590. package/src/serve/hub-app/review/trailer-page.tsx +23 -25
  591. package/src/serve/hub-app/review/trailer-st.ts +38 -38
  592. package/src/serve/hub-app/review/trailer-timeline.tsx +23 -19
  593. package/src/serve/hub-app/review/trailer-voices.tsx +3 -2
  594. package/src/serve/hub-app/review.css +259 -147
  595. package/src/serve/hub-app/search-st.ts +138 -0
  596. package/src/serve/hub-app/search-view.tsx +92 -0
  597. package/src/serve/hub-app/section-head.tsx +5 -4
  598. package/src/serve/hub-app/shell-rows.ts +126 -0
  599. package/src/serve/hub-app/site/site-st.ts +18 -23
  600. package/src/serve/hub-app/social/comms-page.tsx +14 -11
  601. package/src/serve/hub-app/social/group-editor.tsx +44 -0
  602. package/src/serve/hub-app/social/kit.tsx +7 -46
  603. package/src/serve/hub-app/social/next-release.tsx +2 -2
  604. package/src/serve/hub-app/social/post-card.tsx +16 -52
  605. package/src/serve/hub-app/social/problems.tsx +5 -4
  606. package/src/serve/hub-app/social/social-page.tsx +3 -3
  607. package/src/serve/hub-app/social/social-st.ts +31 -84
  608. package/src/serve/hub-app/social/stage-popup.tsx +6 -6
  609. package/src/serve/hub-app/social/stage-st.ts +9 -9
  610. package/src/serve/hub-app/social.css +0 -8
  611. package/src/serve/hub-app/space-st.ts +38 -48
  612. package/src/serve/hub-app/space-view.tsx +6 -6
  613. package/src/serve/hub-app/stores/stores-page.tsx +4 -4
  614. package/src/serve/hub-app/stores/stores-st.ts +19 -23
  615. package/src/serve/hub-app/terminal-input.ts +12 -0
  616. package/src/serve/hub-app/terminal-panel.tsx +40 -0
  617. package/src/serve/hub-app/terminal-st.ts +416 -0
  618. package/src/serve/hub-app/terminal.css +15 -0
  619. package/src/serve/hub-app/tests-svc.ts +3 -2
  620. package/src/serve/hub-app/theme-st.ts +1 -9
  621. package/src/serve/hub-app/thread-row.tsx +52 -17
  622. package/src/serve/hub-app/time-ago.tsx +39 -16
  623. package/src/serve/hub-app/time-st.ts +43 -27
  624. package/src/serve/hub-app/time-view.tsx +3 -3
  625. package/src/serve/hub-app/tree-build.ts +2 -2
  626. package/src/serve/hub-app/tree-row.tsx +43 -18
  627. package/src/serve/hub-app/tree-svc.ts +1 -1
  628. package/src/serve/hub-app/urls-svc.ts +6 -5
  629. package/src/serve/hub-app/vault-st.ts +32 -27
  630. package/src/serve/hub-app/vault-view.tsx +53 -2
  631. package/src/serve/hub-app/vault.css +2 -0
  632. package/src/serve/hub-app/veille/veille-page.tsx +4 -4
  633. package/src/serve/hub-app/veille/veille-st.ts +56 -49
  634. package/src/serve/hub-app/view-layout.css +90 -0
  635. package/src/serve/hub-app/waiting-svc.ts +2 -1
  636. package/src/serve/hub-app/wiki-st.ts +3 -2
  637. package/src/serve/hub-app/wikis-view.tsx +18 -15
  638. package/src/serve/hub-app/words.tsx +15 -0
  639. package/src/serve/hub-collections.ts +105 -0
  640. package/src/serve/hub-runtime.ts +67 -89
  641. package/src/serve/live-hop.ts +102 -0
  642. package/src/serve/other-repos.ts +1 -1
  643. package/src/serve/project-gutter-route.ts +53 -40
  644. package/src/serve/read-thread.ts +76 -0
  645. package/src/serve/read-worker.ts +53 -0
  646. package/src/serve/run-serve.ts +11 -7
  647. package/src/serve/secret-gate.ts +3 -3
  648. package/src/serve/serve-hub.ts +103 -34
  649. package/src/serve/terminal-guard.ts +50 -0
  650. package/src/serve/terminal-route.ts +176 -0
  651. package/src/shipkit.ts +8 -8
  652. package/src/shot/client.ts +32 -16
  653. package/src/shot/dom-clip.ts +30 -5
  654. package/src/shot/film-box.ts +23 -8
  655. package/src/shot/serve-shot.ts +16 -5
  656. package/src/shot/shooter.ts +72 -24
  657. package/src/shot/shot-ask.ts +17 -6
  658. package/src/shot/shot-guard.ts +53 -0
  659. package/src/shot/shot-theme.ts +70 -0
  660. package/src/shot/still-file.ts +60 -0
  661. package/src/site/desk.ts +4 -3
  662. package/src/social/compose.ts +13 -7
  663. package/src/social/cover.ts +4 -3
  664. package/src/social/desk-index.ts +2 -2
  665. package/src/social/draft-doc.ts +88 -0
  666. package/src/social/draft-versions.ts +80 -0
  667. package/src/social/drafts.ts +22 -4
  668. package/src/social/fit.ts +4 -3
  669. package/src/social/house.ts +1 -1
  670. package/src/social/import-drafts.ts +1 -1
  671. package/src/social/kinds.ts +1 -1
  672. package/src/social/load.ts +21 -13
  673. package/src/social/media-facts.ts +1 -19
  674. package/src/social/media-kind.ts +2 -2
  675. package/src/social/media-limit.ts +3 -18
  676. package/src/social/no-account.ts +38 -0
  677. package/src/social/post-sources.ts +4 -4
  678. package/src/social/post-text.ts +33 -13
  679. package/src/social/posts.ts +73 -18
  680. package/src/social/presence.ts +10 -8
  681. package/src/social/release-stage.ts +22 -22
  682. package/src/social/routes.ts +12 -30
  683. package/src/social/stage.ts +3 -3
  684. package/src/social/stats.ts +3 -4
  685. package/src/social/strip.ts +4 -6
  686. package/src/social/text.ts +2 -1
  687. package/src/social/{card-drafts.ts → thread-drafts.ts} +3 -3
  688. package/src/social/unit.ts +12 -3
  689. package/src/social/writes.ts +0 -6
  690. package/src/start-repo.ts +33 -13
  691. package/src/stores/desk.ts +1 -1
  692. package/src/suite/core-counters.ts +31 -3
  693. package/src/suite/judge-suites.ts +69 -47
  694. package/src/suite/select.ts +1 -27
  695. package/src/suite/suite-cli.ts +18 -8
  696. package/src/suite/suite-cpu-preload.ts +10 -6
  697. package/src/trace/tracer.ts +4 -5
  698. package/src/trailer/build.ts +30 -15
  699. package/src/trailer/ffmpeg.ts +90 -31
  700. package/src/trailer/fonts.ts +5 -6
  701. package/src/trailer/footage.ts +9 -3
  702. package/src/trailer/grammar.ts +2 -1
  703. package/src/trailer/graph.ts +12 -10
  704. package/src/trailer/load-unit.ts +1 -1
  705. package/src/trailer/passage.ts +4 -3
  706. package/src/trailer/prune.ts +4 -4
  707. package/src/trailer/score/sound.ts +3 -3
  708. package/src/trailer/shot-plan.ts +5 -5
  709. package/src/trailer/shot-state.ts +25 -31
  710. package/src/trailer/sound/eleven.ts +2 -1
  711. package/src/trailer/sound/gen.ts +3 -3
  712. package/src/trailer/sound/run.ts +76 -64
  713. package/src/trailer/sound/takes.ts +0 -3
  714. package/src/trailer/take-fault.ts +41 -0
  715. package/src/trailer/titles.ts +17 -13
  716. package/src/trailer/url.ts +1 -1
  717. package/src/trailer/vertical-draw.ts +7 -7
  718. package/src/trailer/vertical.ts +3 -3
  719. package/src/trailer/vocab.ts +3 -4
  720. package/src/ts/config.ts +60 -24
  721. package/src/ts/cycles.ts +3 -1
  722. package/src/ts/imports.ts +17 -3
  723. package/src/ts/rename.ts +6 -7
  724. package/src/ts/source-graph.ts +15 -9
  725. package/src/ts/workspaces.ts +26 -0
  726. package/src/tui/build-steps-panel.ts +3 -3
  727. package/src/tui/checks-panel.ts +2 -2
  728. package/src/urls/frame.ts +3 -3
  729. package/src/urls/routes.ts +1 -1
  730. package/src/urls/rows.ts +1 -1
  731. package/src/vault/house-keys.ts +1 -1
  732. package/src/vault/vault-audit.ts +2 -3
  733. package/src/vault/vault-config.ts +6 -2
  734. package/src/vault/vault-restore.ts +3 -9
  735. package/src/vault/vault-serve.ts +47 -11
  736. package/src/vault/vault-snapshot.ts +5 -14
  737. package/src/veille/desk.ts +2 -2
  738. package/src/veille/routes.ts +1 -1
  739. package/src/view3d/cam.ts +101 -0
  740. package/src/view3d/lib.ts +69 -0
  741. package/src/view3d/loop.ts +39 -0
  742. package/src/view3d/scene-cache.ts +62 -0
  743. package/src/view3d/viewer.ts +480 -0
  744. package/src/wiki/agent-paths.ts +55 -0
  745. package/src/wiki/run-wiki.ts +4 -1
  746. package/src/wiki/serve-graph.ts +2 -3
  747. package/src/core/run-fix.ts +0 -120
  748. package/src/home/hmr-keep.ts +0 -134
  749. package/src/serve/hub-app/review/draft-card.tsx +0 -163
  750. package/src/serve/hub-app/review/note-place.ts +0 -31
  751. /package/src/{serve → http}/door-names.ts +0 -0
  752. /package/src/{serve → http}/hub-port.ts +0 -0
@@ -13,7 +13,7 @@
13
13
  --bg-band:#050607;--panel2:#1b1e22;--line:#282c31;--ink:#e2e4e7;--dim:#8d9299;
14
14
  --accent:#6b8fb3;--sel:#1a2430;--chk1:#16181b;--chk2:#121417;
15
15
  /* state, and nothing else: red broken · orange taste pending · green measured passing */
16
- --red:#d2605c;--warn:#cf9a4e;--ok:#6faa86;--blue:#6f9bd1;
16
+ --orange:#ec8a2e;--red:#d2605c;--warn:#cf9a4e;--ok:#6faa86;--blue:#6f9bd1;
17
17
  /* the recorder tray's copy buttons: a blue, a green and a purple dark enough for white text on them (5 to 1 at
18
18
  least), the same in the tray, so a copy mode reads the same in both */
19
19
  --recfile:#0b63ce;--recwebp:#1a7f43;--reclink:#8a3fc4;--recink:#ffffff;
@@ -49,7 +49,7 @@
49
49
  :root[data-theme=light]{--bg:#f1f3f6;--panel:#ffffff;
50
50
  --bg-side:#e6e9ee;--bg-top:#eaedf1;--bg-dock:#e3e7ec;--bg-band:#cfd5dd;--panel2:#e3e7ec;--line:#bcc4ce;--ink:#16191d;--dim:#464b51;
51
51
  --accent:#355e87;--sel:#d2e0ef;--chk1:#e3e7ec;--chk2:#f7f8fa;
52
- --red:#a83733;--warn:#86550b;--ok:#256e45;--blue:#275fa0;
52
+ --orange:#cf6410;--red:#a83733;--warn:#86550b;--ok:#256e45;--blue:#275fa0;
53
53
  --recfile:#0b63ce;--recwebp:#1a7f43;--reclink:#8a3fc4;--recink:#ffffff;
54
54
  --scrim:rgba(20,24,30,.35);--shadow:rgba(20,24,30,.16);--solid:#000;
55
55
  --hi1:rgba(0,0,0,.2);--hi2:rgba(0,0,0,.11);--hi3:rgba(0,0,0,.045);
@@ -69,7 +69,7 @@
69
69
  :root[data-theme=dim]{--bg:#22262c;--panel:#2a2f36;
70
70
  --bg-side:#272b32;--bg-top:#2c3138;--bg-dock:#252a31;--bg-band:#1a1d22;--panel2:#323840;--line:#454c56;--ink:#e4e7ea;--dim:#a8afb8;
71
71
  --accent:#93b4d6;--sel:#2f4054;--chk1:#2c3138;--chk2:#262a30;
72
- --red:#ec908c;--warn:#dba95e;--ok:#82bd99;--blue:#88b0e0;
72
+ --orange:#f09a48;--red:#ec908c;--warn:#dba95e;--ok:#82bd99;--blue:#88b0e0;
73
73
  --recfile:#0b63ce;--recwebp:#1a7f43;--reclink:#8a3fc4;--recink:#ffffff;
74
74
  --scrim:rgba(0,0,0,.5);--shadow:rgba(0,0,0,.45);--solid:#000;
75
75
  --hi1:rgba(255,255,255,.28);--hi2:rgba(255,255,255,.16);--hi3:rgba(255,255,255,.07);
@@ -89,7 +89,7 @@
89
89
  :root[data-theme=grey]{--bg:#cfd3d9;--panel:#dbdee3;
90
90
  --bg-side:#c5cad1;--bg-top:#c9ced5;--bg-dock:#c2c7cf;--bg-band:#adb4be;--panel2:#c2c7cf;--line:#9aa2ad;--ink:#101317;--dim:#33383e;
91
91
  --accent:#274d74;--sel:#b1c4d9;--chk1:#c2c7cf;--chk2:#d5d9de;
92
- --red:#8a2622;--warn:#6b4204;--ok:#17532f;--blue:#1a4a82;
92
+ --orange:#b85808;--red:#8a2622;--warn:#6b4204;--ok:#17532f;--blue:#1a4a82;
93
93
  --recfile:#0b63ce;--recwebp:#1a7f43;--reclink:#8a3fc4;--recink:#ffffff;
94
94
  --scrim:rgba(20,24,30,.4);--shadow:rgba(20,24,30,.2);--solid:#000;
95
95
  --hi1:rgba(0,0,0,.22);--hi2:rgba(0,0,0,.13);--hi3:rgba(0,0,0,.06);
@@ -123,6 +123,10 @@
123
123
  .ptr.armed{color:var(--accent);border-color:var(--accent)}
124
124
  .ptr.go{animation:ptrspin .7s linear infinite}
125
125
  @keyframes ptrspin{to{rotate:360deg}}
126
+ /* the live stream is down, the threads read every few seconds (push-sign.tsx): quiet, in a corner of every page */
127
+ .pushsign{position:fixed;left:8px;bottom:calc(8px + env(safe-area-inset-bottom));z-index:150;display:flex;align-items:center;gap:var(--s1);
128
+ padding:var(--s0) var(--s2);border-radius:9px;background:var(--panel);border:1px solid var(--line);color:var(--dim);font-size:11px;opacity:.85}
129
+ .pushsign i{width:6px;height:6px;border-radius:50%;background:var(--dim)}
126
130
  @media (prefers-reduced-motion:reduce){.ptr{transition:none}.ptr.go{animation:none}}
127
131
  body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.5 system-ui,sans-serif;overflow:hidden}
128
132
  /* a link with no class of its own: the browser default is dark blue on this dark page */
@@ -142,8 +146,13 @@ a,a:visited{color:var(--accent)}
142
146
  .repo[hidden]{display:none}
143
147
  .appbody{flex:1;min-height:0}
144
148
  .pside{display:flex;flex-direction:column;container-type:inline-size}
145
- /* a narrow sidebar keeps the names: the key hints and the filter's letters go first */
146
- @container (max-width:200px){.tsec .pjkey,.ssearch .seg .sk{display:none}.ssearch{padding:var(--s2)}}
149
+ /* a narrow sidebar keeps the names and the head's two lines, a run's spinner included: the filter's letters go first
150
+ (under 262px), then the check… button's words for its icon (under 234px), then the head's and the filter's room */
151
+ @container (max-width:261px){.ssearch .seg .sk{display:none}}
152
+ @container (max-width:233px){.ssearch .hcheck{padding:0 var(--s1)}.ssearch .hcheck .hico{display:block}.ssearch .hcheck .hcheckl{display:none}}
153
+ @container (max-width:200px){.pside .ssearch{padding:var(--s2)}.ssearch .seg button{padding:0 var(--s1)}}
154
+ /* under 168px a run's spinner covers the check… icon, idle while a run goes, so the second line holds */
155
+ @container (max-width:167px){.ssearch .hrun{position:relative}.ssearch .hbusy{position:absolute;inset:0;width:auto;z-index:1;background:var(--panel)}}
147
156
  .pside > aside{flex:1}
148
157
  .pmain{display:flex;flex-direction:column}
149
158
  .pmain > main{flex:1}
@@ -157,7 +166,6 @@ a,a:visited{color:var(--accent)}
157
166
  button and its editor icons. A hub of its own names itself in its header (.hdr). Its trouble floats at the top
158
167
  right (home-strip.css .htoasts) ── */
159
168
  /* the repo's processes (serve.processes): a dot, its id, a link once up */
160
- .hprocs{display:inline-flex;gap:var(--s1);align-items:center}
161
169
  .hproc{display:inline-flex;align-items:center;gap:var(--s0)}
162
170
  .hproc button{padding:var(--s0) var(--s2);font-size:12px}
163
171
  .hproc a{color:var(--accent);text-decoration:none;font-size:12px}
@@ -167,11 +175,13 @@ a,a:visited{color:var(--accent)}
167
175
  .hdr .sp{flex:1}
168
176
  .hname{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--ink);font-weight:600;margin-right:var(--s2);white-space:nowrap}
169
177
  .hdr{white-space:nowrap}
170
- /* a repo's tools at the head of its tree: the filter has the first line to itself, its all, needs and red buttons
171
- and the tools share the second, the tools at its end */
172
- .ssearch:has(.stools) .sfield{flex-basis:100%}
173
- .stools{display:inline-flex;align-items:center;gap:var(--s0);margin-left:auto}
174
- .stools .hrun{margin-left:0}
178
+ /* a repo's tools at the head of its tree, two lines in a narrow column: the filter with the editor icons at its end,
179
+ then all, needs and red with modernize and the check… button at its end. The tools are items of the head's own
180
+ rows (display:contents), the field takes the first line less the two icons */
181
+ .ssearch:has(.stools) .sfield{order:-2;flex:1 1 calc(100% - 2 * (24px + var(--s2)))}
182
+ .stools{display:contents}
183
+ .stools .hicon{order:-1}
184
+ .stools .hrun{margin-left:auto}
175
185
  .hrun{display:inline-flex;align-items:center;gap:var(--s1);flex:none;margin-left:var(--s2)}
176
186
  .hbtn{display:inline-flex;align-items:center;gap:var(--s1);height:22px;padding:0 var(--s2);font-size:11.5px;white-space:nowrap;flex:none}
177
187
  .hbtn .hico{width:13px;height:13px}
@@ -208,28 +218,52 @@ aside > .tscroll::-webkit-scrollbar-thumb{background:var(--line);border-radius:3
208
218
  /* a section, the tree's top row: the project list's rows (project-list.css
209
219
  .pjrow), a little shorter, the current one lit and marked in the accent.
210
220
  The chevron column is the tree's own, so a section's rows line up under it */
211
- .tsec{display:grid;grid-template-columns:10px 16px minmax(0,1fr) auto auto;align-items:center;gap:var(--s1);height:26px;padding:0 var(--s1);color:var(--ink);font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap}
221
+ .tsec{display:grid;grid-template-columns:10px 16px minmax(0,1fr) auto auto;align-items:center;gap:var(--s1);height:26px;padding:0 var(--s1);color:var(--ink);font-size:13px;cursor:pointer;white-space:nowrap}
212
222
  .tsec:hover{background:var(--panel2);color:var(--ink)}
213
223
  .tsec.empty{opacity:.4}
214
224
  .tsec.noop{cursor:default}
215
225
  .tsec.noop:hover{background:none;color:var(--ink)}
216
226
  .tsec.on{box-shadow:inset 2px 0 0 var(--accent)}
217
- .tsec.cur{background:var(--sel);color:var(--ink);box-shadow:inset 3px 0 0 var(--accent);font-weight:600}
227
+ .tsec.cur{background:var(--sel);color:var(--ink);box-shadow:inset 3px 0 0 var(--accent)}
218
228
  .tsec .hico{width:16px;height:16px}
219
229
  .tsec.tpfirst{margin-top:var(--s2);box-shadow:inset 0 1px 0 var(--line)}
220
230
  .tsec.tpfirst.cur{box-shadow:inset 3px 0 0 var(--accent),inset 0 1px 0 var(--line)}
221
231
  .rsecl{min-width:0;padding-left:var(--s0);overflow:hidden;text-overflow:ellipsis}
222
- .rsecn{min-width:13px;height:13px;padding:0 var(--s0);border-radius:7px;font-size:9px;font-weight:700;line-height:13px;text-align:center;color:var(--bg)}
223
- /* a section's key: the project list's key (.pjkey), a size down so the name keeps the room */
224
- .tsec .pjkey{font-size:9px}
225
- .rsecn.nred{background:var(--red)}
226
- .rsecn.nwarn{background:var(--warn)}
232
+ /* a section's count: the project list's pill (project-list.css .pjpill), neutral; red for what is broken, the review hue
233
+ while a thread has something new to him */
234
+ .rsecn{min-width:14px;height:14px;padding:0 4px;border-radius:7px;font-size:9px;font-weight:700;line-height:14px;text-align:center;font-variant-numeric:tabular-nums;
235
+ color:var(--panel);background:color-mix(in srgb,var(--ink) 70%,var(--panel))}
236
+ /* a section's key: the project list's key (.pjkey), a size down; it takes no room on its row: the row's title says it,
237
+ and holding ⌥ shows every one (held-keys.ts) */
238
+ .tsec .pjkey{font-size:9px;display:none}
239
+ :root[data-alt] .pside:not(.ticons) .tsec .pjkey{display:inline-block}
240
+ /* the tree folded to its section icons (a drag below its min, or a narrow page), the main rail's twin: as wide as it,
241
+ each icon in a box of the rail's icon size (--ri, layout-st RAIL_ICONS) on a faint plate of the app icons' radius,
242
+ one row each at the rail's spacing; each name and its rows in its flyout (rail-fly.tsx), its count on the box's
243
+ bottom corner cut out of it by a ring of the pane; the head, the open sections' rows and the hints go. The shown
244
+ section's plate is the selection, a hovered one darker, the keyboard's cursor a ring; never the open tree's band */
245
+ .ticons :is(.ssearch,.tempty,.trow,.tw,.rsecl,.pjkey){display:none}
246
+ .ticons .tsec{position:relative;display:flex;justify-content:center;height:calc(var(--ri,24px) + 6px);padding:0;color:var(--dim)}
247
+ .ticons .tsec::before{content:'';position:absolute;top:3px;bottom:3px;left:calc(50% - var(--ri,24px) / 2);width:var(--ri,24px);border-radius:22%;
248
+ background:color-mix(in srgb,var(--ink) 5%,transparent)}
249
+ .ticons .tsec > *{position:relative}
250
+ .ticons .tsec .hico{width:calc(var(--ri,24px) * .5);height:calc(var(--ri,24px) * .5)}
251
+ .ticons .tsec:is(.cur,.on,:hover){background:none;box-shadow:none}
252
+ .ticons .tsec:hover::before{background:color-mix(in srgb,var(--ink) 11%,transparent)}
253
+ .ticons .tsec.cur{color:var(--accent)}
254
+ .ticons .tsec.cur::before{background:var(--sel)}
255
+ .ticons .tsec.on::before,.ticons .tsec:focus-visible::before{box-shadow:inset 0 0 0 1px var(--accent)}
256
+ .ticons .tsec:focus-visible{outline:none}
257
+ .ticons .tsec.tpfirst{box-shadow:inset 0 1px 0 var(--line)}
258
+ .ticons .rsecn{position:absolute;bottom:0;right:calc(50% - var(--ri,24px) / 2 - 5px);box-shadow:0 0 0 2px var(--panel)}
259
+ .rsecn.nred{color:var(--bg);background:var(--red)}
227
260
  .tsec:hover .pjkey,.tsec.cur .pjkey{opacity:1}
228
261
  /* review: its own hue on the icon, the label and the mark, empty or not, so the eye finds it */
229
262
  .tsec.s-review,.tsec.s-review:hover,.tsec.s-review.cur{color:var(--review)}
230
263
  .tsec.s-review.empty{opacity:.75}
231
264
  .tsec.s-review.cur{box-shadow:inset 3px 0 0 var(--review)}
232
- .tsec.s-review .rsecn.nwarn{background:var(--review)}
265
+ .ticons .tsec.s-review.cur{box-shadow:none}
266
+ .tsec.s-review .rsecn.nwarn:not(.quiet){color:var(--bg);background:var(--review)}
233
267
  /* ── A LIST'S ROWS AND BANDS: the rows of the B and C lists (the identities, the database page), in the tree's
234
268
  shape (.tsec): 26px, a 16px icon, the name, what it carries at its end (a figure, a dot), the picked one on the
235
269
  selection with the accent bar. The hub's one head titles its rows (section-head.tsx, controls.css .sh). A page
@@ -341,6 +375,14 @@ textarea{width:100%;min-height:64px;background:var(--bg);color:var(--ink);border
341
375
  /* auto-text.tsx: the box is as tall as its text (two lines at rest), up to a cap past which it scrolls; a sheet may
342
376
  cap it lower */
343
377
  textarea.autotext{box-sizing:border-box;min-height:0;resize:none;overflow-y:hidden;max-height:min(45vh,360px)}
378
+ /* auto-text.tsx: the emojis `:sm` lists, hugging the caret's line */
379
+ .emoji-list{z-index:60;margin:0;padding:var(--s1) 0;min-width:200px;max-width:min(320px,calc(100vw - 16px));background:var(--panel2);color:var(--ink);border:1px solid var(--line);border-radius:6px;box-shadow:0 6px 18px var(--shadow);font:inherit;font-size:13px}
380
+ .emoji-list ul{list-style:none;margin:0;padding:0}
381
+ .emoji-row{display:flex;gap:var(--s2);align-items:center;padding:var(--s1) var(--s2);cursor:pointer;min-width:0}
382
+ .emoji-row.on{background:var(--sel)}
383
+ .emoji-char{font-size:17px;line-height:1;width:20px;text-align:center;flex:none}
384
+ .emoji-name{color:var(--dim);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
385
+ .emoji-name mark{background:none;color:var(--ink);font-weight:600}
344
386
  .promptrow{display:flex;gap:var(--s1);align-items:flex-start}
345
387
  .promptrow .fold{flex:none;background:var(--panel2);color:var(--dim);border:1px solid var(--line);border-radius:3px;
346
388
  padding:var(--s1) var(--s2);font-size:11px;line-height:1.5}
@@ -533,10 +575,10 @@ kbd{background:var(--panel2);border:1px solid var(--line);border-radius:4px;padd
533
575
  .colcard .truth{margin-left:auto;font:11px ui-monospace,Menlo,monospace;color:var(--dim)}
534
576
  .colcard .rem{color:var(--ok);border-left:2px solid var(--ok);padding-left:var(--s2);font-size:12.5px;margin:var(--s2) 0;white-space:pre-wrap}
535
577
  .colcard .row{display:flex;gap:var(--s2);align-items:center;margin-top:var(--s2);flex-wrap:wrap}
536
- .colcard input{flex:1;min-width:220px;background:var(--bg);border:1px solid var(--line);border-radius:4px;color:var(--ink);padding:var(--s2);font-size:12.5px}
537
- .colcard code{display:block;background:var(--bg);border:1px solid var(--line);border-radius:4px;padding:var(--s2);font:12px ui-monospace,Menlo,monospace;white-space:pre-wrap;max-height:200px;overflow-y:auto;margin-top:var(--s2)}
578
+ /* an ask's steps are the thread's own widget (ask-steps.tsx): these fields and code blocks stay off them */
579
+ .colcard input:not(.rv-instr input){flex:1;min-width:220px;background:var(--bg);border:1px solid var(--line);border-radius:4px;color:var(--ink);padding:var(--s2);font-size:12.5px}
580
+ .colcard code:not(.rv-instr code){display:block;background:var(--bg);border:1px solid var(--line);border-radius:4px;padding:var(--s2);font:12px ui-monospace,Menlo,monospace;white-space:pre-wrap;max-height:200px;overflow-y:auto;margin-top:var(--s2)}
538
581
  .colcard .cand{background:var(--bg);border:1px solid var(--line);border-radius:3px;padding:var(--s2) var(--s3);margin-top:var(--s2)}
539
- .colcard .candhint{color:var(--dim);font-size:12.5px;white-space:pre-wrap}
540
582
  .colcard .err,.assetrem .err{color:var(--red);margin-top:var(--s2);font-size:12.5px}
541
583
  .colcard .said{color:var(--ok);margin-top:var(--s2);font-size:12.5px}
542
584
  .colcard .creds{border-bottom:1px solid var(--line);padding-bottom:var(--s3)}
@@ -548,7 +590,6 @@ kbd{background:var(--panel2);border:1px solid var(--line);border-radius:4px;padd
548
590
  .colcard .credheld.warn{color:var(--warn)}
549
591
  .colcard .credheld.red{color:var(--red)}
550
592
  .colcard .credheld.dim{color:var(--dim)}
551
- .colcard input.credacct{flex:1 1 100%}
552
593
  .colcard .credaccount{font:12.5px ui-monospace,Menlo,monospace;color:var(--dim)}
553
594
  .stchips{display:inline-flex;gap:var(--s1);flex-wrap:wrap;margin-left:var(--s2);vertical-align:middle}
554
595
  .stchip.who{color:var(--dim);border-color:var(--line);text-transform:none;letter-spacing:0;font-weight:500}
@@ -780,13 +821,9 @@ a.tok{color:var(--accent)}
780
821
  /* the switch: one select named by effect, and the reason that makes `never`
781
822
  sayable. It writes repo.config.ts, so the note under it is the file waiting
782
823
  for a commit */
783
- .wsel{min-width:150px}
784
824
  .winputs{display:flex;flex-wrap:wrap;gap:var(--s1);margin-top:var(--s1)}
785
825
  /* an age that moves: the one clock ticks, and only these repaint */
786
826
  .ago{color:var(--dim);font-size:11.5px}
787
- .wclear{background:var(--bg);color:var(--dim);border:1px solid var(--line);border-radius:3px;
788
- padding:var(--s0) var(--s2);font-size:10px;text-transform:uppercase;letter-spacing:.06em;cursor:pointer}
789
- .wclear:hover{color:var(--ink)}
790
827
  .wreason{width:100%;background:var(--bg);border:1px solid var(--line);border-radius:4px;color:var(--ink);
791
828
  padding:var(--s1) var(--s2);font-size:12.5px;outline:none;margin-top:var(--s2)}
792
829
  .wreason:focus{border-color:var(--accent)}
@@ -817,8 +854,7 @@ a.tok{color:var(--accent)}
817
854
  .ctid,.ctkind{font:11.5px ui-monospace,Menlo,monospace}
818
855
  .ctfind{font:11.5px ui-monospace,Menlo,monospace;color:var(--dim)}
819
856
  .ctdur{text-align:right;font:11.5px ui-monospace,Menlo,monospace}
820
- .ctbudget,.ctplan,.ctblocks{color:var(--dim)}
821
- .ctprobe{font-size:11.5px}
857
+ .ctbudget,.ctplan{color:var(--dim)}
822
858
  .cttable .c-dot{width:22px}.cttable .c-id{width:140px}.cttable .c-title{width:16%}.cttable .c-age{width:72px}.cttable .c-dur{width:152px}.cttable .c-plan{width:88px}
823
859
  .cttable .c-name{width:30%}.cttable .c-who{width:24%}.ctwho .stchips{margin-left:0}.cttable .c-file{width:34%}.cttable .c-kind{width:92px}.cttable .c-blocks{width:32%}.cttable .c-probe{width:84px}
824
860
  @container (max-width:760px){.cttable .c-title{width:0}.cttable .cttitle{display:none}.cttable .c-plan{width:0}.cttable .ctplan{display:none}}
@@ -837,7 +873,7 @@ a.tok{color:var(--accent)}
837
873
  .wsearch{position:relative;flex:0 1 360px;min-width:160px;display:flex}
838
874
  .wsearch input{flex:1;min-width:0;height:22px;background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:999px;padding:0 var(--s3);font:inherit;font-size:12px}
839
875
  .wsearch input:focus{outline:none;border-color:var(--accent)}
840
- .wslist{position:absolute;top:calc(100% + 4px);left:0;z-index:30;width:min(560px,80vw);max-height:60vh;overflow-y:auto;padding:var(--s1) 0;background:var(--panel);border:1px solid var(--line);border-radius:6px;box-shadow:0 6px 20px var(--shadow)}
876
+ .wslist{z-index:30;width:min(560px,80vw);max-height:60vh;overflow-y:auto;padding:var(--s1) 0;background:var(--panel);border:1px solid var(--line);border-radius:6px;box-shadow:0 6px 20px var(--shadow)}
841
877
  .wshit{padding:var(--s1) var(--s3);cursor:pointer}
842
878
  .wshit.on,.wshit:hover{background:var(--sel)}
843
879
  .wshead{display:flex;align-items:baseline;gap:var(--s2);min-width:0}
@@ -22,6 +22,8 @@ export const ICON = {
22
22
  // a padlock: the vault of the machine
23
23
  vault: 'M5 9h10v8H5zM7 9V6.5a3 3 0 0 1 6 0V9M10 12.25v2',
24
24
  // a cloud: the Space, the house's bucket
25
+ // two people, the second behind: the advisors
26
+ advisors: 'M7.5 9.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5zM3 16c0-2.5 2-4.5 4.5-4.5S12 13.5 12 16M13 9.25a2.25 2.25 0 1 0 0-4.5M14.25 11.6c1.6.45 2.75 2 2.75 3.9',
25
27
  space: 'M6 15.5h8.25a3.25 3.25 0 0 0 .35-6.48A4.75 4.75 0 0 0 5.4 9.3 3.1 3.1 0 0 0 6 15.5z',
26
28
  // a clock: where the agents' time went
27
29
  time: 'M10 3a7 7 0 1 0 0 14a7 7 0 1 0 0-14M10 6v4l3 2',
@@ -43,6 +45,9 @@ export const ICON = {
43
45
  foldAll: 'M6 3.5l4 4 4-4M6 16.5l4-4 4 4',
44
46
  unfoldAll: 'M6 7.5l4-4 4 4M6 12.5l4 4 4-4',
45
47
  wide: 'M3 7V3h4M13 3h4v4M17 13v4h-4M7 17H3v-4',
48
+ // a thread's bell: it pushes to his phone; struck through, it is muted
49
+ bell: 'M5 14V9a5 5 0 0 1 10 0v5l1.5 1.5h-13zM8.5 17.5h3',
50
+ bellOff: 'M5 14V9a5 5 0 0 1 10 0v5l1.5 1.5h-13zM8.5 17.5h3M3 3l14 14',
46
51
  // a repo page's sections, then its two runs and its editor
47
52
  readme: 'M5 2.5h7l3 3v12H5zM12 2.5v3h3M7.5 9h5M7.5 12h5M7.5 15h3',
48
53
  checks: 'M4 10.5 7.5 14 16 5.5',
@@ -90,18 +95,23 @@ export const ICON = {
90
95
  editor: 'M13 3l4 3v8l-4 3-7-6 7-5zM3 7.5l3 2.5-3 2.5',
91
96
  // the project list's fold: a panel with its rail marked
92
97
  rail: 'M3 4h14v12H3zM7.5 4v12',
98
+ terminal: 'M4 5l5 5-5 5M10.5 15H16',
93
99
  // a process's own switches on the overview
94
100
  play: 'M6.5 4.5v11l9-5.5z',
95
101
  stop: 'M5.5 5.5h9v9h-9z',
96
102
  link: 'M8.5 11.5a3.5 3.5 0 0 0 5 0l2.5-2.5a3.5 3.5 0 0 0-5-5l-1 1M11.5 8.5a3.5 3.5 0 0 0-5 0L4 11a3.5 3.5 0 0 0 5 5l1-1',
97
103
  clock: 'M10 2.5a7.5 7.5 0 1 0 0 15a7.5 7.5 0 1 0 0-15M10 6v4l2.5 2',
98
104
  restart: 'M15.5 10a5.5 5.5 0 1 1-1.6-3.9M14.2 3v3.3h-3.3',
105
+ back: 'M16 10H4M9 5l-5 5 5 5',
106
+ forward: 'M4 10h12M11 5l5 5-5 5',
99
107
  // the four verbs of his turn (review/wait.ts), drawn by thread-row.tsx VerbGlyph only: a verdict's scales, a
100
108
  // question's bubble, the action's bolt, a page to read
101
109
  judge: 'M10 3.5v13M6 16.5h8M4 6h12M4 6l-2 5h4zM16 6l-2 5h4z',
102
110
  answer: 'M3 4h14v9H8l-4 3.5V13H3zM8.3 7.2a1.8 1.8 0 1 1 2.5 1.6c-.5.3-.8.6-.8 1.1M10 11.3h.01',
103
111
  do: 'M11.5 2.5 4.5 11h5l-1 6.5 7-8.5h-5z',
104
112
  read: 'M10 5.5C8.5 4 6 3.5 3 4v11c3-.5 5.5 0 7 1.5c1.5-1.5 4-2 7-1.5V4c-3-.5-5.5 0-7 1.5zM10 5.5v11',
113
+ // a thread whose every item he validated, at the head of its row
114
+ check: 'M4.5 10.5l3.5 3.5 7.5-8',
105
115
  } as const
106
116
 
107
117
  /** THE caret of the hub, the left bar's: a 10 px chevron that points at what a click shows, its look in hub.css .caret
@@ -7,15 +7,16 @@ import { computed, makeAutoObservable, observableRef, runInAction, type ICompute
7
7
  import type { DataPlace, IdentitiesAnswer, MachineIdentity } from '../../identities/machine-route.ts'
8
8
  import type { HomeSt } from './home-st.ts'
9
9
  import { ACCOUNT_TABS, identityRows, isAccountTab, isSection, type AccountTab, type IdentityRow, type IdentitySel } from './identity-address.ts'
10
+ import { KeptFolds } from './kept-folds.ts'
10
11
  import { sideOf, walkKey, WalkEntry, type SideList, type WalkHost } from './list-walk.ts'
12
+ import { PolledResource } from './polled.ts'
11
13
  import { ownTrouble, reach } from './reach.ts'
12
14
  import { LEGAL, type DeskAccount } from './social/social-model.ts'
13
15
  import { SocialSt } from './social/social-st.ts'
14
16
 
15
17
  export class IdentitiesSt implements WalkHost<IdentityRow> {
16
- data: IdentitiesAnswer | null = null
17
- error = ''
18
- loading = false
18
+ /** `GET /api/home/identities.json`, read when the page shows or the picker first needs it */
19
+ readonly res: PolledResource<IdentitiesAnswer>
19
20
  /** what the address picked */
20
21
  sel: IdentitySel = { id: null, part: null, place: null }
21
22
  /** the account section picked last: a step to the next account keeps it (identities-view.tsx tabOf) */
@@ -26,7 +27,6 @@ export class IdentitiesSt implements WalkHost<IdentityRow> {
26
27
  desk: SocialSt | null = null
27
28
  /** one desk per repo read, kept for the life of the page */
28
29
  private desks = new Map<string, SocialSt>()
29
- private gen = 0
30
30
  /** the list's filter, `/` focuses it */
31
31
  query = ''
32
32
  searchEl: HTMLInputElement | null = null
@@ -36,9 +36,32 @@ export class IdentitiesSt implements WalkHost<IdentityRow> {
36
36
  readonly entry = new WalkEntry()
37
37
  /** each row's own « lit », so a step draws again the two rows it moves between, never the whole list */
38
38
  private litOf = new Map<string, IComputedValue<boolean>>()
39
+ /** the accounts and repos blocks folded or open, and the problems row */
40
+ readonly folds = new KeptFolds('hub:identities-folds')
39
41
 
40
42
  constructor(private readonly st: HomeSt) {
41
- makeAutoObservable<this, 'st' | 'gen' | 'desks' | 'litOf'>(this, { st: false, gen: false, desks: false, litOf: false, entry: false, searchEl: false, data: observableRef, desk: observableRef })
43
+ this.res = new PolledResource({
44
+ read: async () => {
45
+ const r = await reach('/api/home/identities.json', { cache: 'no-store' })
46
+ if (!r.ok) throw new Error(`${r.status} ${await r.text()}`)
47
+ return (await r.json()) as IdentitiesAnswer
48
+ },
49
+ trouble: (e) => ownTrouble(e, this.st.machine, (m) => `the identities could not be read: ${m}`),
50
+ landed: () => this.applyDesk(),
51
+ })
52
+ makeAutoObservable<this, 'st' | 'desks' | 'litOf'>(this, { st: false, res: false, desks: false, litOf: false, entry: false, folds: false, searchEl: false, desk: observableRef })
53
+ }
54
+
55
+ get data(): IdentitiesAnswer | null {
56
+ return this.res.value ?? null
57
+ }
58
+
59
+ get error(): string {
60
+ return this.res.error
61
+ }
62
+
63
+ get loading(): boolean {
64
+ return this.res.reading
42
65
  }
43
66
 
44
67
  start(): void {
@@ -63,11 +86,14 @@ export class IdentitiesSt implements WalkHost<IdentityRow> {
63
86
 
64
87
  // ── the list and its keys: the repo tree's (list-walk.ts) ────────────
65
88
 
66
- /** the shown identity's rows, the filter applied */
89
+ /** the shown identity's rows, the filter applied: a filter shows every match, else a folded block keeps only the
90
+ * row of the part shown */
67
91
  get rows(): IdentityRow[] {
68
92
  const i = this.shown
69
93
  if (i == null) return []
70
- return identityRows(i, this.desk?.identityOf(i.id)?.legal != null, this.query)
94
+ const all = identityRows(i, this.desk?.identityOf(i.id)?.legal != null, this.query)
95
+ if (this.query.trim() !== '') return all
96
+ return all.filter((r) => r.block === 'sections' || this.folds.isOpen(r.block, true) || (r.repo == null && r.part === this.sel.part))
71
97
  }
72
98
 
73
99
  /** the row of the part shown */
@@ -213,24 +239,8 @@ export class IdentitiesSt implements WalkHost<IdentityRow> {
213
239
  if (repo != null && this.st.machine?.data != null) void this.st.machine.hub(repo, 'ensure')
214
240
  }
215
241
 
216
- async load(): Promise<void> {
217
- const id = ++this.gen
218
- this.loading = true
219
- try {
220
- const r = await reach('/api/home/identities.json', { cache: 'no-store' })
221
- if (!r.ok) throw new Error(`${r.status} ${await r.text()}`)
222
- const j = (await r.json()) as IdentitiesAnswer
223
- runInAction(() => {
224
- if (id !== this.gen) return
225
- this.data = j
226
- this.error = ''
227
- this.applyDesk()
228
- })
229
- } catch (e) {
230
- runInAction(() => { if (id === this.gen) this.error = ownTrouble(e, this.st.machine, (m) => `the identities could not be read: ${m}`) })
231
- } finally {
232
- runInAction(() => { if (id === this.gen) this.loading = false })
233
- }
242
+ load(): Promise<void> {
243
+ return this.res.refresh()
234
244
  }
235
245
 
236
246
  /** a place of an identity's data, in VS Code or the Finder: the daemon resolves the path from the two names */
@@ -6,7 +6,7 @@
6
6
  import { observer } from 'mobx-react-lite'
7
7
  import { useEffect, type CSSProperties, type ReactNode } from 'react'
8
8
  import { Panel, Separator } from 'react-resizable-panels'
9
- import { KeptCols, LIST_COL } from './kept-cols.tsx'
9
+ import { KeptCols, LIST_COL, PANEL } from './kept-cols.tsx'
10
10
  import type { DataPlace, MachineIdentity } from '../../identities/machine-route.ts'
11
11
  import type { HomeSt } from './home-st.ts'
12
12
  import { plainClick, repoPage } from './home-st.ts'
@@ -16,7 +16,6 @@ import { SEARCH_B_KEY } from './keys.ts'
16
16
  import { filterKey, walkSide } from './list-walk.ts'
17
17
  import { useInSight } from './tree-row.tsx'
18
18
  import { SectionHead } from './section-head.tsx'
19
- import { PANEL } from './review/review-page.tsx'
20
19
  import { SitePart } from './site/site-part.tsx'
21
20
  import { Icon, ICON } from './icons.tsx'
22
21
  import { ErrorLine, Lightbox, Logo, Toast } from './social/kit.tsx'
@@ -113,6 +112,10 @@ const IdentityList = observer(({ app, i }: { app: HomeSt; i: MachineIdentity })
113
112
  const accounts = block('accounts')
114
113
  const repos = block('repos')
115
114
  const filtered = st.query.trim() !== ''
115
+ const open = (b: IdentityRow['block']): boolean => st.folds.isOpen(b, true)
116
+ const fold = (b: IdentityRow['block']): void => {
117
+ if (!filtered) st.folds.flipFold(b, true)
118
+ }
116
119
  return (
117
120
  <div className="idcol" style={style}>
118
121
  <header className="idhead" title={`${i.id}${i.default ? ': the default identity, it speaks for every repo whose repo.config.ts names no speaksAs' : ''}`}>
@@ -131,17 +134,17 @@ const IdentityList = observer(({ app, i }: { app: HomeSt; i: MachineIdentity })
131
134
  </span>
132
135
  </div>
133
136
  <div className="rv-scroll idlist">
134
- <Problems so={so} lines={problems} />
137
+ <Problems so={so} folds={st.folds} lines={problems} />
135
138
  <nav className="idrows" aria-label={`${i.name}: its sections`}>
136
139
  {block('sections').map((r) => <SectionRow key={r.key} app={app} i={i} d={d} r={r} />)}
137
140
  </nav>
138
- {filtered && accounts.length === 0 ? null : <SectionHead label="accounts" n={filtered ? `${accounts.length} of ${i.accounts.length}` : `${online}/${i.accounts.length}`} />}
141
+ {filtered && accounts.length === 0 ? null : <SectionHead label="accounts" n={filtered ? `${accounts.length} of ${i.accounts.length}` : `${online}/${i.accounts.length}`} open={filtered || open('accounts')} onFold={() => fold('accounts')} />}
139
142
  <nav className="idrows" aria-label={`${i.name}: its accounts`}>
140
143
  {accounts.map((r) => <AccountRow key={r.key} app={app} i={i} d={d} r={r} />)}
141
144
  </nav>
142
- {filtered && repos.length === 0 ? null : <SectionHead label="repos" n={filtered ? `${repos.length} of ${i.repos.length}` : i.repos.length} />}
145
+ {filtered && repos.length === 0 ? null : <SectionHead label="repos" n={filtered ? `${repos.length} of ${i.repos.length}` : i.repos.length} open={filtered || open('repos')} onFold={() => fold('repos')} />}
143
146
  <nav className="idrows" aria-label={`${i.name}: its repos`}>
144
- {i.repos.length === 0 ? <span className="iddim idrow">none speaks as it</span> : repos.map((r) => <RepoRow key={r.key} app={app} i={i} r={r} />)}
147
+ {i.repos.length === 0 && open('repos') ? <span className="iddim idrow">none speaks as it</span> : repos.map((r) => <RepoRow key={r.key} app={app} i={i} r={r} />)}
145
148
  </nav>
146
149
  {filtered && rows.length === 0 ? <div className="iddim idrow">nothing holds « {st.query.trim()} »</div> : null}
147
150
  </div>
@@ -2,7 +2,7 @@
2
2
  // in pages of `GET /api/inbox`, the folded lists (working, later, done) each read once it unfolds, and the item open in
3
3
  // place. Polled every few
4
4
  // seconds while the page shows and the tab is visible, 304 when nothing moved. An item opens in its repo's own state
5
- // (RepoSt): a card in that repo's review thread, an ask or a need in its item view, the same components as its hub
5
+ // (RepoSt): a thread in that repo's thread view, an ask or a need in its item view, the same components as its hub
6
6
  //
7
7
  // the filters (what to do, projects, state, group by) and the groups folded persist in the browser and live in the
8
8
  // address's hash, only what differs from the default; the verbs and the projects are asked of the server, so it filters
@@ -16,6 +16,8 @@ import { etagLoader, kept, type EtagLoader } from './review/review-kit.ts'
16
16
  import { ownTrouble } from './reach.ts'
17
17
  import { ClockSvc } from './clock-svc.ts'
18
18
  import type { HomeSt } from './home-st.ts'
19
+ import { PollGate } from './push-svc.ts'
20
+ import { SearchSt } from './search-st.ts'
19
21
 
20
22
  const POLL_MS = 4000
21
23
  const PREFS = 'shipkit.inbox.prefs'
@@ -52,7 +54,11 @@ export class InboxSt {
52
54
  phone = false
53
55
  /** every row's age reads it, ticking while the page shows */
54
56
  readonly clock = new ClockSvc()
57
+ /** the search over every thread, drawn in place of the lists while it has words */
58
+ readonly find: SearchSt
55
59
  private timer: ReturnType<typeof setInterval> | null = null
60
+ /** the poll rests while the server pushes the store's changes (push-svc.ts) */
61
+ private readonly gate = new PollGate(() => this.home.push)
56
62
  private readonly loadMain: EtagLoader<InboxAnswer>
57
63
  private readonly loadFold: Record<FoldList, EtagLoader<InboxAnswer>>
58
64
  private readonly onVisible = (): void => {
@@ -60,14 +66,16 @@ export class InboxSt {
60
66
  }
61
67
 
62
68
  constructor(private readonly home: HomeSt) {
69
+ this.find = new SearchSt(this, home)
63
70
  this.applyFilters(filtersOf(kept.get(PREFS) ?? ''))
64
71
  // the last lists drawn in the first frame: the daemon answers after, and only what moved draws again
65
- this.loadMain = etagLoader(() => `/api/inbox${inboxSearch({ ...this.query, limit: this.shown })}`, { keep: 'inbox.main' })
72
+ // the item open keeps its row in the main list whatever the filters, until he leaves it
73
+ this.loadMain = etagLoader(() => `/api/inbox${inboxSearch({ ...this.query, keep: this.open == null ? null : `${this.open.repo}/${this.open.id}`, limit: this.shown })}`, { keep: 'inbox.main' })
66
74
  const fold = (l: FoldList): EtagLoader<InboxAnswer> => etagLoader(() => `/api/inbox${inboxSearch({ ...this.query, list: l, limit: 500 })}`, { keep: `inbox.${l}` })
67
75
  this.loadFold = { working: fold('working'), waiting: fold('waiting'), later: fold('later'), done: fold('done') }
68
76
  this.page = this.loadMain.held()
69
77
  this.foldPages = this.heldFolds()
70
- makeAutoObservable<this, 'home' | 'timer' | 'loadMain' | 'loadFold' | 'onVisible'>(this, { home: false, timer: false, loadMain: false, loadFold: false, onVisible: false, clock: false, page: observableRef })
78
+ makeAutoObservable<this, 'home' | 'timer' | 'gate' | 'loadMain' | 'loadFold' | 'onVisible' | 'openAt'>(this, { home: false, timer: false, gate: false, loadMain: false, loadFold: false, onVisible: false, clock: false, find: false, page: observableRef, openAt: true })
71
79
  if (typeof window !== 'undefined' && typeof window.matchMedia === 'function') {
72
80
  const mq = window.matchMedia(`(max-width: ${INBOX_PHONE_PX - 1}px)`)
73
81
  this.phone = mq.matches
@@ -79,8 +87,18 @@ export class InboxSt {
79
87
  return { working: this.loadFold.working.held(), waiting: this.loadFold.waiting.held(), later: this.loadFold.later.held(), done: this.loadFold.done.held() }
80
88
  }
81
89
 
90
+ /** the open item's row and its place when it opened: a verdict, a close or a set aside there never moves it, so
91
+ * ↑ ↓ step to its real neighbours; it takes its new place once he opens another item */
92
+ private openAt: { key: string; at: number } | null = null
93
+
82
94
  get rows(): InboxRow[] {
83
- return this.page?.rows ?? []
95
+ const rows = this.page?.rows ?? []
96
+ const o = this.openAt
97
+ const i = o === null ? -1 : rows.findIndex((r) => r.key === o.key)
98
+ if (o === null || i < 0 || i === o.at) return rows
99
+ const rest = rows.filter((_r, j) => j !== i)
100
+ rest.splice(Math.min(o.at, rest.length), 0, rows[i]!)
101
+ return rest
84
102
  }
85
103
 
86
104
  foldRows(l: FoldList): InboxRow[] {
@@ -184,7 +202,10 @@ export class InboxSt {
184
202
 
185
203
  /** the address's part after /inbox */
186
204
  get search(): string {
187
- return this.open == null ? '' : `?open=${encodeURIComponent(`${this.open.repo}/${this.open.id}`)}`
205
+ const open = this.open == null ? [] : [`open=${encodeURIComponent(`${this.open.repo}/${this.open.id}`)}`]
206
+ const q = this.find.q.trim() === '' ? [] : [`q=${encodeURIComponent(this.find.q.trim())}`]
207
+ const all = [...open, ...q]
208
+ return all.length === 0 ? '' : `?${all.join('&')}`
188
209
  }
189
210
 
190
211
  /** the filters as the address's hash: what differs from the default, empty at it */
@@ -211,10 +232,16 @@ export class InboxSt {
211
232
 
212
233
  /** the address read back: the item it names, or the list */
213
234
  fromSearch(search: string): void {
235
+ this.find.fromAddress(new URLSearchParams(search).get('q') ?? '')
214
236
  const o = openOf(search)
215
237
  // the repo's state is made here, never while a view draws
216
238
  if (o != null) this.home.repo(o.repo)
217
- if (o?.repo !== this.open?.repo || o?.id !== this.open?.id) this.open = o
239
+ if (o?.repo !== this.open?.repo || o?.id !== this.open?.id) {
240
+ this.open = o
241
+ const key = o == null ? null : `${o.repo}/${o.id}`
242
+ const at = key === null ? -1 : (this.page?.rows ?? []).findIndex((r) => r.key === key)
243
+ this.openAt = key === null || at < 0 ? null : { key, at }
244
+ }
218
245
  }
219
246
 
220
247
  start(): void {
@@ -222,7 +249,7 @@ export class InboxSt {
222
249
  this.clock.start(10_000)
223
250
  void this.poll()
224
251
  this.timer = setInterval(() => {
225
- if (document.visibilityState === 'visible') void this.poll()
252
+ if (document.visibilityState === 'visible' && this.gate.due()) void this.poll()
226
253
  }, POLL_MS)
227
254
  document.addEventListener('visibilitychange', this.onVisible)
228
255
  }
@@ -244,6 +271,7 @@ export class InboxSt {
244
271
  (e: Error) => runInAction(() => (this.error = ownTrouble(e, this.home.machine, (m) => `the inbox cannot be read: ${m}`))),
245
272
  ),
246
273
  ...FOLDS.map((l) => (this.listOn(l) && this.foldShown(l) ? this.loadFold[l]().then((p) => runInAction(() => p !== this.foldPages[l] && (this.foldPages[l] = p)), () => undefined) : null)),
274
+ this.find.on ? this.find.run() : null,
247
275
  ])
248
276
  }
249
277
 
@@ -359,11 +387,11 @@ export class InboxSt {
359
387
 
360
388
  /** the next review thread of the list after the open one, round to the first: the thread's own « next » would step
361
389
  * its repo's review and leave this list's row behind */
362
- nextCard(): void {
390
+ nextThread(): void {
363
391
  const o = this.open
364
- const cards = this.rows.filter((r) => isReviewId(r.id))
365
- if (o == null || cards.length === 0) return
366
- const next = cards[(cards.findIndex((r) => r.repo === o.repo && r.id === o.id) + 1) % cards.length]!
392
+ const threads = this.rows.filter((r) => isReviewId(r.id))
393
+ if (o == null || threads.length === 0) return
394
+ const next = threads[(threads.findIndex((r) => r.repo === o.repo && r.id === o.id) + 1) % threads.length]!
367
395
  if (next.repo !== o.repo || next.id !== o.id) this.pick(next)
368
396
  }
369
397
 
@@ -1,7 +1,7 @@
1
1
  // the inbox page (wiki tools/shipkit/home-inbox.md): every repo's threads, newest first, each row with its repo's icon,
2
2
  // what it waits on from him (judge, answer, do, read), its title, its age and a thumb; working, later and done folded
3
3
  // at the bottom. A row opens
4
- // its item in place with its repo's own views: a card in the review thread (review-thread.tsx), an ask or a need in
4
+ // its item in place with its repo's own views: a thread in its thread view (review-thread.tsx), an ask or a need in
5
5
  // its item view (item-view.tsx). On the desktop the list and the item side by side; on a phone one pane at a time,
6
6
  // the list kept under the item so back finds it where it was. The head is one row: the title, the counts, and one icon
7
7
  // per filter (what to do, projects, state, group by), each opening its toggles in a popover
@@ -22,6 +22,7 @@ import type { RepoSt } from './repo-st.ts'
22
22
  import { SectionHead } from './section-head.tsx'
23
23
  import { ThreadColumn } from './review/review-thread.tsx'
24
24
  import { ThreadRow as ThreadRowView, VerbGlyph } from './thread-row.tsx'
25
+ import { SearchField, SearchResults } from './search-view.tsx'
25
26
 
26
27
  /** what each verb asks of him, on its badge's tooltip and its toggle */
27
28
  const WAIT_SAYS: Record<Wait, string> = {
@@ -40,7 +41,8 @@ export const InboxView = observer(({ app }: { app: HomeSt }) => {
40
41
  <div className="ib-phone">
41
42
  <div className="ib-pane">
42
43
  <Head app={app} />
43
- <InboxList app={app} />
44
+ <SearchField app={app} />
45
+ {ib.find.on ? <SearchResults app={app} /> : <InboxList app={app} />}
44
46
  </div>
45
47
  {open != null ? <OpenItem app={app} item={open} /> : null}
46
48
  </div>
@@ -49,7 +51,8 @@ export const InboxView = observer(({ app }: { app: HomeSt }) => {
49
51
  <div className="ib-desk">
50
52
  <div className="ib-pane ib-listcol">
51
53
  <Head app={app} />
52
- <InboxList app={app} />
54
+ <SearchField app={app} />
55
+ {ib.find.on ? <SearchResults app={app} /> : <InboxList app={app} />}
53
56
  </div>
54
57
  <div className="ib-itemcol">{open != null ? <OpenItem app={app} item={open} /> : <div className="ph">{ib.count > 0 ? 'pick a row: it opens here' : ''}</div>}</div>
55
58
  </div>
@@ -245,6 +248,7 @@ const InboxList = observer(({ app }: { app: HomeSt }) => {
245
248
 
246
249
  const Row = observer(({ app, r }: { app: HomeSt; r: InboxRow }) => {
247
250
  const ib = app.inbox
251
+ const proj = app.projects.list.find((x) => x.name === r.repo)
248
252
  return (
249
253
  <ThreadRowView
250
254
  head={r.id}
@@ -254,9 +258,10 @@ const Row = observer(({ app, r }: { app: HomeSt; r: InboxRow }) => {
254
258
  {...(r.unread ? { unread: true } : {})}
255
259
  thumb={r.thumb}
256
260
  // the verb of his turn; working and done are said by the list's own head
257
- {...(isOwnerWait(r.wait) ? { need: r.wait, needSays: WAIT_SAYS[r.wait] } : {})}
261
+ {...(isOwnerWait(r.wait) ? { need: r.wait, needSays: WAIT_SAYS[r.wait] } : r.owed ? { owed: r.owed } : {})}
258
262
  glyph={r.waitsOn ? waitGlyph(r.waitsOn, null) : null}
259
263
  project={r.repo}
264
+ face={<Face p={proj ?? { name: r.repo, icon: null }} px={16} />}
260
265
  words={r.sub != null ? [r.sub] : []}
261
266
  {...(r.at != null ? { at: r.at } : {})}
262
267
  clock={ib.clock}
@@ -301,7 +306,7 @@ const ItemTop = observer(({ app }: { app: HomeSt }) =>
301
306
 
302
307
  const ReviewItem = observer(({ app, repo, id }: { app: HomeSt; repo: RepoSt; id: string }) => {
303
308
  const rv = repo.review
304
- // before the first paint, so the column never draws the card the repo's page held
309
+ // before the first paint, so the column never draws the thread the repo's page held
305
310
  useLayoutEffect(() => {
306
311
  rv.select(id)
307
312
  rv.start()