rvlib-shipkit 2.27.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 (855) hide show
  1. package/CHANGELOG.md +71 -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 +73 -29
  31. package/src/agent-time/lane-name.ts +7 -0
  32. package/src/agent-time/leads.ts +95 -0
  33. package/src/agent-time/live.ts +11 -5
  34. package/src/agent-time/registry.ts +354 -0
  35. package/src/agent-time/render.ts +35 -4
  36. package/src/agent-time/report-cache.ts +4 -8
  37. package/src/agent-time/report.ts +19 -1
  38. package/src/agent-time/store.ts +10 -16
  39. package/src/annex/born.ts +2 -2
  40. package/src/annex/offload.ts +12 -11
  41. package/src/annex/snapshots.ts +3 -3
  42. package/src/annex/tidy.ts +10 -23
  43. package/src/asks/ask-after.ts +8 -3
  44. package/src/asks/ask-bar-fold.ts +57 -0
  45. package/src/asks/ask-carry.ts +190 -0
  46. package/src/asks/ask-close.ts +72 -0
  47. package/src/asks/ask-doc.ts +42 -0
  48. package/src/asks/ask-migrate.ts +280 -0
  49. package/src/asks/ask-steps-fold.ts +123 -0
  50. package/src/asks/ask-store.ts +703 -0
  51. package/src/asks/ask-words-fold.ts +208 -0
  52. package/src/assets/kits/identity-kit.ts +106 -38
  53. package/src/assets/kits/poster-thumbnail.ts +282 -0
  54. package/src/checks/SK001-package-json-shape.check.ts +5 -7
  55. package/src/checks/SK003-claude-md-shape.check.ts +92 -25
  56. package/src/checks/SK004-gitignore-policy.check.ts +21 -17
  57. package/src/checks/SK010-undeclared-unit.check.ts +77 -64
  58. package/src/checks/SK013-one-way-in-policy.check.ts +27 -5
  59. package/src/checks/SK026-asks-autoclose.check.ts +9 -23
  60. package/src/checks/SK027-agent-wiki-links.check.ts +46 -6
  61. package/src/checks/SK033-global-contribution.check.ts +1 -1
  62. package/src/checks/SK036-draft-media-size.check.ts +5 -4
  63. package/src/checks/SK038-speaks-as.check.ts +3 -3
  64. package/src/checks/SK039-vscode-watch-generated.check.ts +1 -1
  65. package/src/checks/SK040-release-words.check.ts +39 -10
  66. package/src/checks/SK042-post-kinds.check.ts +26 -24
  67. package/src/checks/SK045-slow-hooks.check.ts +5 -2
  68. package/src/checks/SK049-thread-answers-hook.check.ts +83 -0
  69. package/src/checks/SK050-retired-commands.check.ts +127 -0
  70. package/src/checks/SK051-no-formatter.check.ts +485 -0
  71. package/src/cli/cmd_Advisors.ts +336 -0
  72. package/src/cli/cmd_Annex.ts +10 -10
  73. package/src/cli/cmd_Asks.ts +303 -51
  74. package/src/cli/cmd_Backup.ts +157 -14
  75. package/src/cli/cmd_CacheAudit.ts +1 -1
  76. package/src/cli/cmd_Calls.ts +1 -0
  77. package/src/cli/cmd_Check.ts +3 -3
  78. package/src/cli/cmd_Checks.ts +1 -1
  79. package/src/cli/cmd_Ci.ts +15 -16
  80. package/src/cli/cmd_Commands.ts +140 -34
  81. package/src/cli/cmd_Contracts.ts +1 -0
  82. package/src/cli/cmd_Db.ts +9 -9
  83. package/src/cli/cmd_FleetPush.ts +1 -1
  84. package/src/cli/cmd_History.ts +2 -2
  85. package/src/cli/cmd_Home.ts +5 -6
  86. package/src/cli/cmd_Hooks.ts +13 -3
  87. package/src/cli/cmd_Hq.ts +30 -19
  88. package/src/cli/cmd_Keys.ts +2 -1
  89. package/src/cli/cmd_Lanes.ts +21 -4
  90. package/src/cli/cmd_Media.ts +59 -13
  91. package/src/cli/cmd_Messages.ts +152 -1
  92. package/src/cli/cmd_Needs.ts +1 -0
  93. package/src/cli/cmd_Orchestrator.ts +138 -0
  94. package/src/cli/cmd_Rec.ts +5 -2
  95. package/src/cli/cmd_Reflect.ts +17 -3
  96. package/src/cli/cmd_Releases.ts +38 -38
  97. package/src/cli/cmd_Review.ts +1500 -424
  98. package/src/cli/cmd_Secret.ts +255 -34
  99. package/src/cli/cmd_Shot.ts +14 -6
  100. package/src/cli/cmd_Social.ts +41 -37
  101. package/src/cli/cmd_SocialDrafts.ts +248 -0
  102. package/src/cli/cmd_Sound.ts +22 -1
  103. package/src/cli/cmd_Space.ts +1 -1
  104. package/src/cli/cmd_Start.ts +3 -2
  105. package/src/cli/cmd_ThreadHolds.ts +34 -0
  106. package/src/cli/cmd_ThreadKinds.ts +153 -0
  107. package/src/cli/cmd_ThreadReflect.ts +91 -0
  108. package/src/cli/cmd_ThreadSyncNeeds.ts +62 -0
  109. package/src/cli/cmd_Time.ts +2 -1
  110. package/src/cli/cmd_Tmp.ts +9 -8
  111. package/src/cli/cmd_TraceAudit.ts +1 -1
  112. package/src/cli/cmd_Trailer.ts +5 -5
  113. package/src/cli/cmd_Urls.ts +3 -3
  114. package/src/cli/cmd_Vault.ts +5 -5
  115. package/src/cli/cmd_When.ts +2 -1
  116. package/src/cli/cmd_Worktrees.ts +109 -0
  117. package/src/cli/family-help.ts +2 -2
  118. package/src/cli/family-pages.ts +1 -1
  119. package/src/cli/kit/builtins.ts +1 -0
  120. package/src/cli/kit/verb.ts +6 -2
  121. package/src/cli/registry.ts +35 -5
  122. package/src/cli.ts +26 -15
  123. package/src/collections/actions.ts +27 -75
  124. package/src/collections/checks.ts +1 -1
  125. package/src/collections/collection-types.ts +23 -8
  126. package/src/collections/md-body.ts +5 -3
  127. package/src/collections/pings.ts +16 -6
  128. package/src/collections/providers.ts +63 -71
  129. package/src/collections/reflections.ts +9 -4
  130. package/src/collections/review.ts +25 -23
  131. package/src/collections/state-rules.ts +8 -7
  132. package/src/comfy/comfy-panel.ts +2 -2
  133. package/src/commands/model.ts +1 -1
  134. package/src/commands/routes.ts +1 -1
  135. package/src/commands/runs.ts +1 -1
  136. package/src/core/app-icon.ts +3 -9
  137. package/src/core/atomic-write.ts +36 -0
  138. package/src/core/budget.ts +16 -1
  139. package/src/core/bun-builtins.ts +7 -7
  140. package/src/core/canonical-scripts.ts +4 -6
  141. package/src/core/check-ctx.ts +17 -3
  142. package/src/core/day-stamp.ts +20 -0
  143. package/src/core/git-bin.ts +10 -0
  144. package/src/core/git.ts +75 -0
  145. package/src/core/hard-reset.ts +1 -2
  146. package/src/core/history-files.ts +4 -8
  147. package/src/core/house-layout.ts +20 -0
  148. package/src/core/hub-theme.ts +16 -0
  149. package/src/core/identity.ts +1 -1
  150. package/src/core/in-base.ts +19 -0
  151. package/src/core/instance.ts +15 -5
  152. package/src/core/last-good.ts +42 -133
  153. package/src/core/layout.ts +11 -6
  154. package/src/core/load-probe.ts +4 -8
  155. package/src/core/locked-write.ts +116 -43
  156. package/src/core/loop-watch.ts +24 -3
  157. package/src/core/machine-db.ts +58 -14
  158. package/src/core/machine-link.ts +1 -1
  159. package/src/core/memory-watch.ts +3 -2
  160. package/src/core/migrate-layout.ts +8 -10
  161. package/src/core/motherhome.ts +2 -1
  162. package/src/core/nearest.ts +23 -0
  163. package/src/core/on-loop.ts +57 -0
  164. package/src/core/one-way-in-policy.ts +26 -13
  165. package/src/core/raw-access.ts +9 -2
  166. package/src/core/reexec.ts +3 -5
  167. package/src/core/repo-walk.ts +104 -0
  168. package/src/core/retention.ts +10 -12
  169. package/src/core/run-dirs.ts +45 -0
  170. package/src/core/runs-matrix.ts +1 -1
  171. package/src/core/slots.ts +2 -2
  172. package/src/core/slug.ts +33 -0
  173. package/src/core/spawn-timeout.ts +3 -1
  174. package/src/core/squircle.ts +0 -8
  175. package/src/core/throwaway-worktree.ts +21 -2
  176. package/src/core/unit-files.ts +4 -4
  177. package/src/core/when-block.ts +4 -5
  178. package/src/core/when.ts +1 -3
  179. package/src/core/words.ts +33 -0
  180. package/src/fleet/push-fleet.ts +4 -11
  181. package/src/{core → gate}/cache-audit.ts +1 -1
  182. package/src/{core → gate}/check-runner.ts +24 -54
  183. package/src/{core → gate}/discover-checks.ts +19 -101
  184. package/src/{core → gate}/discover-legacy-checks.ts +3 -3
  185. package/src/{ledger → gate}/gate-checks.ts +5 -5
  186. package/src/gate/head-gate.ts +151 -0
  187. package/src/{core → gate}/job-follow.ts +1 -1
  188. package/src/{core → gate}/job-run.ts +3 -3
  189. package/src/{core → gate}/pre-commit-discovery.ts +2 -2
  190. package/src/{core → gate}/run-check.ts +7 -7
  191. package/src/{core → gate}/run-ci.ts +9 -9
  192. package/src/gate/run-fix.ts +173 -0
  193. package/src/{core → gate}/run-fixers.ts +14 -14
  194. package/src/{core → gate}/trace-audit.ts +8 -8
  195. package/src/home/activity-shape.ts +1 -1
  196. package/src/home/activity.ts +21 -26
  197. package/src/home/app-sign.ts +17 -9
  198. package/src/home/daemon-guard.ts +6 -0
  199. package/src/home/daemon-jobs.ts +64 -10
  200. package/src/home/database-words.ts +21 -27
  201. package/src/home/databases.ts +3 -3
  202. package/src/home/global-context.ts +2 -2
  203. package/src/home/global-units.ts +1 -1
  204. package/src/home/gui-app/ShipkitGui.swift +129 -55
  205. package/src/home/gui-app.ts +1 -1
  206. package/src/home/handover.ts +126 -0
  207. package/src/home/home-move.ts +29 -16
  208. package/src/home/home-paths.ts +33 -8
  209. package/src/home/home-routes.ts +83 -5
  210. package/src/home/home-start.ts +1 -1
  211. package/src/home/home-state.ts +12 -6
  212. package/src/home/hubs.ts +28 -5
  213. package/src/home/inbox-shape.ts +250 -94
  214. package/src/home/inbox.ts +27 -71
  215. package/src/home/lib-watch.ts +93 -74
  216. package/src/home/machine-fold.ts +54 -56
  217. package/src/home/machine-host.ts +19 -1
  218. package/src/home/machine-repair.ts +5 -6
  219. package/src/home/machine-stores.ts +3 -3
  220. package/src/home/machine-temp.ts +58 -67
  221. package/src/home/other-macs.ts +2 -2
  222. package/src/home/page-build.ts +330 -0
  223. package/src/home/page-held.ts +338 -0
  224. package/src/home/pm-config.ts +10 -2
  225. package/src/home/pm.ts +35 -1
  226. package/src/home/process-apps.ts +3 -3
  227. package/src/home/push-sources.ts +132 -0
  228. package/src/home/run-daemon.ts +54 -4
  229. package/src/home/run-pm.ts +2 -1
  230. package/src/home/run-web.ts +11 -6
  231. package/src/home/search-shape.ts +54 -0
  232. package/src/home/search.ts +114 -0
  233. package/src/home/serve-daemon.ts +40 -18
  234. package/src/home/serve-web.ts +90 -148
  235. package/src/home/space-page.ts +8 -8
  236. package/src/home/space-words.ts +11 -10
  237. package/src/home/supervise.ts +24 -0
  238. package/src/home/time-page-shape.ts +0 -13
  239. package/src/home/vault-page.ts +64 -30
  240. package/src/home/vault-reveal.ts +29 -0
  241. package/src/home/vault-words.ts +5 -5
  242. package/src/home/via-hub.ts +3 -4
  243. package/src/home/worktree-tidy.ts +236 -0
  244. package/src/hooks/edit-guard.ts +12 -0
  245. package/src/hooks/hook-gates.ts +2 -0
  246. package/src/hooks/leak-guard.ts +9 -3
  247. package/src/hooks/one-way-in-guard.ts +32 -2
  248. package/src/hooks/run-hooks.ts +58 -5
  249. package/src/hooks/shared-file.ts +174 -0
  250. package/src/{serve → house}/project-gutter.ts +11 -54
  251. package/src/hq/door-route.ts +2 -2
  252. package/src/hq/door.ts +3 -3
  253. package/src/hq/files-send.ts +32 -33
  254. package/src/hq/forgotten-log.ts +1 -1
  255. package/src/hq/history-check.ts +7 -6
  256. package/src/hq/history-send.ts +12 -14
  257. package/src/hq/hq-db.ts +5 -2
  258. package/src/hq/hq-local.ts +48 -13
  259. package/src/hq/hq-routes.ts +10 -2
  260. package/src/hq/hq-store.ts +10 -6
  261. package/src/hq/kinds/ask.ts +9 -8
  262. package/src/hq/kinds/index.ts +4 -4
  263. package/src/hq/kinds/{card-gone.ts → item-gone.ts} +24 -25
  264. package/src/hq/kinds/{card-msg.ts → item-msg.ts} +25 -27
  265. package/src/hq/kinds/{card.ts → item.ts} +31 -29
  266. package/src/hq/kinds/kind.ts +3 -0
  267. package/src/hq/kinds/media.ts +2 -3
  268. package/src/hq/kinds/prompt.ts +2 -1
  269. package/src/hq/kinds/time-day.ts +5 -4
  270. package/src/hq/ledger.ts +22 -22
  271. package/src/hq/machine-notes.ts +14 -15
  272. package/src/hq/outbox.ts +35 -24
  273. package/src/hq/replica.ts +1 -2
  274. package/src/hq/report.ts +10 -12
  275. package/src/hq/switch.ts +20 -23
  276. package/src/hq/{cards.ts → thread-sync.ts} +127 -99
  277. package/src/hq/vault-route.ts +112 -0
  278. package/src/{serve → http}/door-forward.ts +11 -4
  279. package/src/http/loopback-serve.ts +84 -0
  280. package/src/{serve → http}/same-origin.ts +6 -2
  281. package/src/http/tailnet-caller.ts +118 -0
  282. package/src/identities/collection.ts +2 -2
  283. package/src/identities/identities.ts +9 -8
  284. package/src/identities/machine-route.ts +8 -3
  285. package/src/identities/shown.ts +2 -6
  286. package/src/ledger/check-table.ts +1 -1
  287. package/src/ledger/db.ts +9 -1
  288. package/src/ledger/git-key.ts +9 -3
  289. package/src/ledger/git-scan.ts +2 -2
  290. package/src/ledger/ledger.ts +6 -16
  291. package/src/media-kinds.ts +4 -1
  292. package/src/media-store/backup/daemon.ts +51 -10
  293. package/src/media-store/backup/keys.ts +1 -4
  294. package/src/media-store/backup/manifest.ts +21 -3
  295. package/src/media-store/backup/prune.ts +362 -0
  296. package/src/media-store/backup/retention.ts +122 -0
  297. package/src/media-store/backup/run.ts +22 -35
  298. package/src/media-store/backup/sources.ts +27 -27
  299. package/src/media-store/backup/thread-copy.ts +339 -0
  300. package/src/media-store/backup/watch.ts +10 -6
  301. package/src/media-store/content.ts +3 -0
  302. package/src/media-store/copy/config.ts +3 -4
  303. package/src/media-store/copy/night.ts +4 -4
  304. package/src/media-store/copy/store.ts +2 -2
  305. package/src/media-store/daemon.ts +5 -4
  306. package/src/media-store/db.ts +10 -20
  307. package/src/media-store/forget-one.ts +247 -0
  308. package/src/media-store/forget.ts +141 -4
  309. package/src/media-store/hq-send.ts +5 -4
  310. package/src/media-store/purge.ts +5 -4
  311. package/src/media-store/remote.ts +2 -2
  312. package/src/media-store/space-listing.ts +20 -9
  313. package/src/media-store/space.ts +7 -5
  314. package/src/media-store/tidy.ts +3 -3
  315. package/src/media-store/upload.ts +2 -2
  316. package/src/media-store/webp.ts +3 -3
  317. package/src/messages/guard.ts +49 -0
  318. package/src/messages/model.ts +1 -1
  319. package/src/messages/objects.ts +203 -0
  320. package/src/messages/routes.ts +2 -2
  321. package/src/messages/score.ts +2 -4
  322. package/src/messages/store-doc.ts +114 -0
  323. package/src/messages/verdicts.ts +6 -0
  324. package/src/messages/write.ts +285 -0
  325. package/src/mv/mv-md.ts +43 -12
  326. package/src/orchestrator/brief.md +29 -0
  327. package/src/orchestrator/deliver.ts +81 -0
  328. package/src/orchestrator/drill.ts +129 -0
  329. package/src/orchestrator/guards.ts +63 -0
  330. package/src/orchestrator/keeper.ts +332 -0
  331. package/src/orchestrator/phone.ts +98 -0
  332. package/src/orchestrator/pm.ts +20 -0
  333. package/src/orchestrator/presence-shape.ts +17 -0
  334. package/src/orchestrator/presence.ts +68 -0
  335. package/src/orchestrator/push.ts +102 -0
  336. package/src/orchestrator/routes.ts +113 -0
  337. package/src/orchestrator/state.ts +92 -0
  338. package/src/orchestrator/switch.ts +86 -0
  339. package/src/orchestrator/tmux.ts +82 -0
  340. package/src/orchestrator/unheard.ts +68 -0
  341. package/src/pages/frame-client.ts +181 -4
  342. package/src/pages/unit.ts +1 -1
  343. package/src/plan/repo-source.ts +1 -1
  344. package/src/recordings/load.ts +1 -1
  345. package/src/recordings/model.ts +18 -10
  346. package/src/recordings/place.ts +3 -3
  347. package/src/recordings/recorder-app/Capture.swift +69 -21
  348. package/src/recordings/recorder-app/Editor.swift +214 -11
  349. package/src/recordings/recorder-app/main.swift +229 -47
  350. package/src/recordings/recorder-app.ts +1 -1
  351. package/src/recordings/routes.ts +11 -1
  352. package/src/recordings/take.ts +7 -5
  353. package/src/recordings/view.ts +6 -0
  354. package/src/reflect/prompt-corpus.ts +5 -3
  355. package/src/reflect/thread-words.ts +51 -0
  356. package/src/reflections/reflection-close.ts +123 -0
  357. package/src/reflections/reflection-doc.ts +59 -0
  358. package/src/reflections/reflection-place.ts +60 -0
  359. package/src/reflections/reflections-queue.ts +1 -1
  360. package/src/release/gate-checkout.ts +124 -21
  361. package/src/release/git-facts.ts +11 -9
  362. package/src/release/machine-words.ts +21 -3
  363. package/src/release/public-clean.ts +81 -21
  364. package/src/release/run-bump.ts +3 -5
  365. package/src/release/run-release.ts +42 -38
  366. package/src/releases/add.ts +33 -87
  367. package/src/releases/{from-card.ts → from-thread.ts} +47 -46
  368. package/src/releases/model.ts +207 -36
  369. package/src/releases/routes.ts +2 -2
  370. package/src/releases/shape.ts +184 -0
  371. package/src/releases/store.ts +10 -10
  372. package/src/repo-config.ts +53 -21
  373. package/src/review/anim.ts +8 -8
  374. package/src/review/answer-kinds.ts +160 -0
  375. package/src/review/auto.ts +3 -3
  376. package/src/review/band.ts +145 -0
  377. package/src/review/branch-hold.ts +91 -0
  378. package/src/review/cells.ts +451 -96
  379. package/src/review/close.ts +92 -0
  380. package/src/review/doc-card.ts +41 -0
  381. package/src/review/doc-model.ts +100 -0
  382. package/src/review/doc-routes.ts +66 -0
  383. package/src/review/doc-save.ts +152 -0
  384. package/src/review/draft-item.ts +36 -0
  385. package/src/review/draft-model.ts +125 -17
  386. package/src/review/events.ts +164 -0
  387. package/src/review/file-tags.ts +52 -0
  388. package/src/review/format.ts +195 -38
  389. package/src/review/glyphs.ts +63 -0
  390. package/src/review/gone.ts +21 -21
  391. package/src/review/hand-over.ts +58 -0
  392. package/src/review/heard.ts +29 -0
  393. package/src/review/holds-sync.ts +62 -0
  394. package/src/review/holds.ts +85 -0
  395. package/src/review/house-kind-defs.ts +71 -0
  396. package/src/review/http.ts +1 -1
  397. package/src/review/inbox-hook.ts +69 -10
  398. package/src/review/inbox-read.ts +226 -0
  399. package/src/review/instructions.ts +241 -0
  400. package/src/review/{card-db.ts → item-db.ts} +48 -36
  401. package/src/review/{card-rows.ts → item-rows.ts} +79 -51
  402. package/src/review/kind-apply.ts +61 -0
  403. package/src/review/kind-catalog.ts +96 -0
  404. package/src/review/kind-still.ts +125 -0
  405. package/src/review/kinds.ts +314 -0
  406. package/src/review/lane-ask.ts +113 -0
  407. package/src/review/live-post.ts +107 -0
  408. package/src/review/live-view.ts +137 -0
  409. package/src/review/media-kind.ts +4 -4
  410. package/src/review/media-read.ts +4 -4
  411. package/src/review/media.ts +3 -5
  412. package/src/review/mentions.ts +100 -0
  413. package/src/review/model-moved.ts +76 -0
  414. package/src/review/model.ts +846 -214
  415. package/src/review/move.ts +62 -61
  416. package/src/review/need-address.ts +15 -0
  417. package/src/review/need-threads.ts +51 -0
  418. package/src/review/notes.ts +2 -1
  419. package/src/review/object-card.ts +48 -0
  420. package/src/review/object-read.ts +31 -0
  421. package/src/review/one-block.ts +64 -0
  422. package/src/review/owner-read.ts +41 -0
  423. package/src/review/owner-verdict.ts +36 -0
  424. package/src/review/parties.ts +274 -0
  425. package/src/review/paste.ts +4 -4
  426. package/src/review/phone-push.ts +137 -0
  427. package/src/review/previews.ts +19 -17
  428. package/src/review/project.ts +1 -1
  429. package/src/review/projections.ts +235 -0
  430. package/src/review/push.ts +269 -0
  431. package/src/review/referring.ts +76 -0
  432. package/src/review/reflection-object.ts +190 -0
  433. package/src/review/rev.ts +1 -1
  434. package/src/review/role.ts +3 -3
  435. package/src/review/routes.ts +227 -83
  436. package/src/review/search-index.ts +218 -0
  437. package/src/review/search-job.ts +40 -0
  438. package/src/review/search-ocr.ts +138 -0
  439. package/src/review/search-text.ts +129 -0
  440. package/src/review/secret-route.ts +110 -0
  441. package/src/review/settle.ts +67 -0
  442. package/src/review/snooze.ts +38 -0
  443. package/src/review/stage-routes.ts +15 -13
  444. package/src/review/{stage-card.ts → stage-thread.ts} +22 -21
  445. package/src/review/store-index.ts +49 -0
  446. package/src/review/store-parties.ts +20 -0
  447. package/src/review/store.ts +721 -260
  448. package/src/review/supersede.ts +132 -0
  449. package/src/review/take-back.ts +65 -0
  450. package/src/review/thread-fold.ts +20 -7
  451. package/src/review/threads.ts +397 -79
  452. package/src/review/traces.ts +206 -0
  453. package/src/review/trailer-desk.ts +7 -7
  454. package/src/review/{trailer-card.ts → trailer-item.ts} +12 -12
  455. package/src/review/trailer-model.ts +4 -4
  456. package/src/review/trailer-notes.ts +2 -2
  457. package/src/review/trailer-routes.ts +5 -4
  458. package/src/review/trailer-shots.ts +3 -3
  459. package/src/review/unit.ts +140 -13
  460. package/src/review/uploads.ts +103 -0
  461. package/src/review/verdict-items.ts +73 -0
  462. package/src/review/verdict-write.ts +15 -0
  463. package/src/review/view-layout.ts +69 -0
  464. package/src/review/wait.ts +91 -0
  465. package/src/review/wakes.ts +115 -0
  466. package/src/review/watch-feed.ts +183 -0
  467. package/src/review/watchers.ts +44 -10
  468. package/src/rules/untrack-generated.ts +40 -39
  469. package/src/scaffold/files/bunfig.toml +1 -9
  470. package/src/scaffold/files/claude-settings-local.json +2 -0
  471. package/src/scaffold/files/vscode-settings.json +1 -1
  472. package/src/scaffold/project-scaffold.ts +14 -10
  473. package/src/secrets/archive-mark.ts +52 -0
  474. package/src/secrets/archive.ts +84 -0
  475. package/src/secrets/copy.ts +14 -14
  476. package/src/secrets/keychain-write.ts +56 -0
  477. package/src/secrets/keychain.ts +8 -5
  478. package/src/secrets/lapse-mark.ts +38 -0
  479. package/src/secrets/lapse.ts +71 -0
  480. package/src/secrets/list.ts +16 -22
  481. package/src/secrets/manager.ts +31 -16
  482. package/src/secrets/read.ts +161 -33
  483. package/src/secrets/security-line.ts +19 -0
  484. package/src/secrets/tail.ts +31 -0
  485. package/src/serve/embed.ts +1 -1
  486. package/src/serve/house-runs.ts +1 -1
  487. package/src/serve/hub-app/accounts-line.tsx +67 -0
  488. package/src/serve/hub-app/activity-st.ts +46 -50
  489. package/src/serve/hub-app/advice-box.tsx +66 -0
  490. package/src/serve/hub-app/advisor-app.tsx +46 -0
  491. package/src/serve/hub-app/advisor-face.tsx +29 -0
  492. package/src/serve/hub-app/advisor-host.ts +142 -0
  493. package/src/serve/hub-app/advisor.html +22 -0
  494. package/src/serve/hub-app/advisors-st.ts +261 -0
  495. package/src/serve/hub-app/advisors-view.tsx +269 -0
  496. package/src/serve/hub-app/advisors.css +57 -0
  497. package/src/serve/hub-app/app-bridge.ts +27 -24
  498. package/src/serve/hub-app/ask-steps-st.ts +60 -0
  499. package/src/serve/hub-app/ask-steps.tsx +23 -0
  500. package/src/serve/hub-app/asks-page.tsx +9 -5
  501. package/src/serve/hub-app/asks-st.ts +1 -4
  502. package/src/serve/hub-app/auto-text.tsx +118 -18
  503. package/src/serve/hub-app/benign-errors.ts +15 -1
  504. package/src/serve/hub-app/card-head.tsx +49 -0
  505. package/src/serve/hub-app/check-view.tsx +3 -2
  506. package/src/serve/hub-app/checks-svc.ts +1 -1
  507. package/src/serve/hub-app/clock-svc.ts +21 -5
  508. package/src/serve/hub-app/code-copy.ts +196 -0
  509. package/src/serve/hub-app/col-card.tsx +24 -40
  510. package/src/serve/hub-app/col-list-page.tsx +7 -4
  511. package/src/serve/hub-app/col-list-st.ts +6 -1
  512. package/src/serve/hub-app/col-tables-view.tsx +7 -4
  513. package/src/serve/hub-app/col-tables.ts +19 -13
  514. package/src/serve/hub-app/cols-svc.ts +15 -80
  515. package/src/serve/hub-app/comfy-svc.ts +3 -2
  516. package/src/serve/hub-app/commands/commands-page.tsx +2 -1
  517. package/src/serve/hub-app/commands/commands-st.ts +36 -26
  518. package/src/serve/hub-app/controls.css +99 -0
  519. package/src/serve/hub-app/cursor-spot.ts +81 -0
  520. package/src/serve/hub-app/database-st.ts +31 -26
  521. package/src/serve/hub-app/database-view.tsx +12 -12
  522. package/src/serve/hub-app/dock-st.ts +51 -10
  523. package/src/serve/hub-app/dock-view.tsx +14 -1
  524. package/src/serve/hub-app/editor/doc-editor-st.ts +223 -0
  525. package/src/serve/hub-app/editor/doc-editor.tsx +116 -0
  526. package/src/serve/hub-app/editor/doc-saved.tsx +26 -0
  527. package/src/serve/hub-app/editor/doc-slot.ts +66 -0
  528. package/src/serve/hub-app/editor.css +36 -0
  529. package/src/serve/hub-app/emoji-names.ts +1915 -0
  530. package/src/serve/hub-app/emoji.ts +133 -0
  531. package/src/serve/hub-app/floating.tsx +162 -6
  532. package/src/serve/hub-app/frames-st.ts +17 -1
  533. package/src/serve/hub-app/git-st.ts +25 -19
  534. package/src/serve/hub-app/git-view.tsx +3 -2
  535. package/src/serve/hub-app/hash-route.ts +1 -1
  536. package/src/serve/hub-app/header-bar.tsx +4 -3
  537. package/src/serve/hub-app/held-keys.ts +25 -0
  538. package/src/serve/hub-app/home-st.ts +167 -18
  539. package/src/serve/hub-app/home-strip.css +4 -8
  540. package/src/serve/hub-app/home-strip.tsx +7 -3
  541. package/src/serve/hub-app/home.html +10 -0
  542. package/src/serve/hub-app/house-wiki-view.tsx +20 -0
  543. package/src/serve/hub-app/hub-app.tsx +102 -36
  544. package/src/serve/hub-app/hub-types.ts +2 -0
  545. package/src/serve/hub-app/hub.css +117 -92
  546. package/src/serve/hub-app/icons.tsx +24 -4
  547. package/src/serve/hub-app/identities-st.ts +35 -25
  548. package/src/serve/hub-app/identities-view.tsx +11 -7
  549. package/src/serve/hub-app/inbox-st.ts +241 -52
  550. package/src/serve/hub-app/inbox-view.tsx +198 -105
  551. package/src/serve/hub-app/inbox.css +53 -47
  552. package/src/serve/hub-app/index.html +10 -0
  553. package/src/serve/hub-app/insights-st.ts +27 -19
  554. package/src/serve/hub-app/instructions.css +33 -0
  555. package/src/serve/hub-app/kept-folds.ts +43 -0
  556. package/src/serve/hub-app/keys.ts +13 -5
  557. package/src/serve/hub-app/later.tsx +1 -1
  558. package/src/serve/hub-app/layout-st.ts +37 -6
  559. package/src/serve/hub-app/list-filter.tsx +1 -1
  560. package/src/serve/hub-app/live-bar.css +12 -0
  561. package/src/serve/hub-app/live-svc.ts +12 -2
  562. package/src/serve/hub-app/machine-st.ts +38 -12
  563. package/src/serve/hub-app/machines-st.ts +40 -34
  564. package/src/serve/hub-app/machines-view.tsx +9 -16
  565. package/src/serve/hub-app/machines.css +0 -9
  566. package/src/serve/hub-app/markdown.css +128 -0
  567. package/src/serve/hub-app/md-copy.tsx +18 -40
  568. package/src/serve/hub-app/md.ts +176 -14
  569. package/src/serve/hub-app/media-svc.ts +44 -11
  570. package/src/serve/hub-app/media-view.tsx +2 -2
  571. package/src/serve/hub-app/messages/messages-page.tsx +57 -12
  572. package/src/serve/hub-app/messages/messages-st.ts +27 -23
  573. package/src/serve/hub-app/messages.css +0 -1
  574. package/src/serve/hub-app/new-thread.tsx +121 -0
  575. package/src/serve/hub-app/objects.css +52 -0
  576. package/src/serve/hub-app/orchestrator-line.tsx +104 -0
  577. package/src/serve/hub-app/orchestrator.css +37 -0
  578. package/src/serve/hub-app/page-keys.ts +8 -5
  579. package/src/serve/hub-app/page-reload.ts +111 -0
  580. package/src/serve/hub-app/pages-frames.tsx +12 -1
  581. package/src/serve/hub-app/pages-svc.ts +8 -3
  582. package/src/serve/hub-app/palette-st.ts +11 -6
  583. package/src/serve/hub-app/pane-boundary.tsx +85 -0
  584. package/src/serve/hub-app/pane-errors.ts +55 -0
  585. package/src/serve/hub-app/pano.css +20 -0
  586. package/src/serve/hub-app/plan-view.tsx +4 -3
  587. package/src/serve/hub-app/planned-st.ts +30 -26
  588. package/src/serve/hub-app/planned-view.tsx +17 -10
  589. package/src/serve/hub-app/planned.css +0 -4
  590. package/src/serve/hub-app/polled.ts +201 -0
  591. package/src/serve/hub-app/presence-st.ts +110 -0
  592. package/src/serve/hub-app/processes-view.tsx +3 -2
  593. package/src/serve/hub-app/project-list.css +101 -66
  594. package/src/serve/hub-app/project-list.tsx +139 -155
  595. package/src/serve/hub-app/projects-svc.ts +113 -57
  596. package/src/serve/hub-app/push-sign.tsx +15 -0
  597. package/src/serve/hub-app/push-svc.ts +273 -0
  598. package/src/serve/hub-app/quiet-st.ts +59 -0
  599. package/src/serve/hub-app/rail-fly.tsx +95 -0
  600. package/src/serve/hub-app/reach.ts +16 -0
  601. package/src/serve/hub-app/readme.css +9 -15
  602. package/src/serve/hub-app/recordings-st.ts +169 -9
  603. package/src/serve/hub-app/recordings-take.ts +58 -0
  604. package/src/serve/hub-app/recordings-view.tsx +42 -35
  605. package/src/serve/hub-app/recordings.css +1 -1
  606. package/src/serve/hub-app/reflections-page.tsx +70 -5
  607. package/src/serve/hub-app/releases/releases-page.tsx +54 -20
  608. package/src/serve/hub-app/releases/releases-st.ts +39 -26
  609. package/src/serve/hub-app/releases.css +4 -1
  610. package/src/serve/hub-app/repo-sections.ts +21 -10
  611. package/src/serve/hub-app/repo-st.ts +36 -9
  612. package/src/serve/hub-app/review/advisor-bar.tsx +40 -0
  613. package/src/serve/hub-app/review/attach-st.ts +195 -0
  614. package/src/serve/hub-app/review/attach-view.tsx +260 -0
  615. package/src/serve/hub-app/review/clip-st.ts +1 -1
  616. package/src/serve/hub-app/review/code-colors.ts +30 -0
  617. package/src/serve/hub-app/review/cta.tsx +11 -0
  618. package/src/serve/hub-app/review/diff-view.tsx +77 -0
  619. package/src/serve/hub-app/review/doc-body.tsx +109 -0
  620. package/src/serve/hub-app/review/dock.tsx +118 -0
  621. package/src/serve/hub-app/review/draft-body.tsx +235 -0
  622. package/src/serve/hub-app/review/faces.tsx +26 -0
  623. package/src/serve/hub-app/review/group-block.tsx +239 -0
  624. package/src/serve/hub-app/review/heard-line.tsx +31 -0
  625. package/src/serve/hub-app/review/instructions-view.tsx +141 -0
  626. package/src/serve/hub-app/review/item-verdict.tsx +111 -0
  627. package/src/serve/hub-app/review/kind-states.tsx +265 -0
  628. package/src/serve/hub-app/review/kind-view.tsx +23 -44
  629. package/src/serve/hub-app/review/kit.tsx +54 -75
  630. package/src/serve/hub-app/review/lane-bar.tsx +64 -0
  631. package/src/serve/hub-app/review/lightbox.tsx +16 -0
  632. package/src/serve/hub-app/review/line-window.ts +149 -0
  633. package/src/serve/hub-app/review/live-bar-st.ts +145 -0
  634. package/src/serve/hub-app/review/live-bar.tsx +126 -0
  635. package/src/serve/hub-app/review/live-view.tsx +104 -0
  636. package/src/serve/hub-app/review/mention-st.ts +85 -0
  637. package/src/serve/hub-app/review/mesh-view.tsx +9 -0
  638. package/src/serve/hub-app/review/object-card.tsx +62 -0
  639. package/src/serve/hub-app/review/object-panel.tsx +197 -0
  640. package/src/serve/hub-app/review/pano-gl.ts +145 -0
  641. package/src/serve/hub-app/review/pano-view.tsx +192 -0
  642. package/src/serve/hub-app/review/phone-top.tsx +16 -0
  643. package/src/serve/hub-app/review/pictures-st.ts +38 -0
  644. package/src/serve/hub-app/review/question-views.tsx +387 -0
  645. package/src/serve/hub-app/review/review-board.tsx +1 -1
  646. package/src/serve/hub-app/review/review-cells.tsx +223 -184
  647. package/src/serve/hub-app/review/review-host.ts +69 -0
  648. package/src/serve/hub-app/review/review-kit.ts +34 -19
  649. package/src/serve/hub-app/review/review-list.tsx +211 -51
  650. package/src/serve/hub-app/review/review-page.tsx +10 -20
  651. package/src/serve/hub-app/review/review-st.ts +294 -151
  652. package/src/serve/hub-app/review/review-thread.tsx +605 -161
  653. package/src/serve/hub-app/review/review-views.tsx +547 -452
  654. package/src/serve/hub-app/review/scene-view.tsx +26 -0
  655. package/src/serve/hub-app/review/secret-facts.ts +26 -0
  656. package/src/serve/hub-app/review/space3d.tsx +114 -0
  657. package/src/serve/hub-app/review/splat-view.tsx +9 -0
  658. package/src/serve/hub-app/review/superseded-runs.ts +76 -0
  659. package/src/serve/hub-app/review/thread-close.tsx +134 -0
  660. package/src/serve/hub-app/review/thread-control-st.ts +2 -1
  661. package/src/serve/hub-app/review/thread-control.tsx +4 -4
  662. package/src/serve/hub-app/review/thread-st.ts +710 -140
  663. package/src/serve/hub-app/review/thread-views.ts +71 -0
  664. package/src/serve/hub-app/review/{trailer-card.tsx → trailer-body.tsx} +35 -35
  665. package/src/serve/hub-app/review/trailer-page.tsx +23 -25
  666. package/src/serve/hub-app/review/trailer-st.ts +38 -38
  667. package/src/serve/hub-app/review/trailer-timeline.tsx +24 -20
  668. package/src/serve/hub-app/review/trailer-voices.tsx +3 -2
  669. package/src/serve/hub-app/review.css +459 -188
  670. package/src/serve/hub-app/search-st.ts +138 -0
  671. package/src/serve/hub-app/search-view.tsx +92 -0
  672. package/src/serve/hub-app/section-head.tsx +52 -0
  673. package/src/serve/hub-app/shell-rows.ts +126 -0
  674. package/src/serve/hub-app/site/site-st.ts +18 -23
  675. package/src/serve/hub-app/social/calendar.tsx +5 -11
  676. package/src/serve/hub-app/social/comms-page.tsx +36 -20
  677. package/src/serve/hub-app/social/group-editor.tsx +44 -0
  678. package/src/serve/hub-app/social/kit.tsx +15 -61
  679. package/src/serve/hub-app/social/next-release.tsx +5 -7
  680. package/src/serve/hub-app/social/post-card.tsx +19 -52
  681. package/src/serve/hub-app/social/post-page.tsx +80 -0
  682. package/src/serve/hub-app/social/problems.tsx +9 -12
  683. package/src/serve/hub-app/social/social-model.ts +13 -5
  684. package/src/serve/hub-app/social/social-page.tsx +4 -4
  685. package/src/serve/hub-app/social/social-st.ts +67 -83
  686. package/src/serve/hub-app/social/stage-popup.tsx +6 -6
  687. package/src/serve/hub-app/social/stage-st.ts +9 -9
  688. package/src/serve/hub-app/social.css +7 -25
  689. package/src/serve/hub-app/space-st.ts +38 -48
  690. package/src/serve/hub-app/space-view.tsx +6 -6
  691. package/src/serve/hub-app/space.css +1 -1
  692. package/src/serve/hub-app/stores/stores-page.tsx +10 -6
  693. package/src/serve/hub-app/stores/stores-st.ts +19 -23
  694. package/src/serve/hub-app/terminal-input.ts +12 -0
  695. package/src/serve/hub-app/terminal-panel.tsx +40 -0
  696. package/src/serve/hub-app/terminal-st.ts +416 -0
  697. package/src/serve/hub-app/terminal.css +15 -0
  698. package/src/serve/hub-app/tests-svc.ts +3 -2
  699. package/src/serve/hub-app/theme-st.ts +1 -9
  700. package/src/serve/hub-app/thread-row.tsx +136 -0
  701. package/src/serve/hub-app/time-ago.tsx +40 -16
  702. package/src/serve/hub-app/time-st.ts +43 -27
  703. package/src/serve/hub-app/time-view.tsx +4 -3
  704. package/src/serve/hub-app/time.css +2 -5
  705. package/src/serve/hub-app/tree-build.ts +2 -2
  706. package/src/serve/hub-app/tree-row.tsx +44 -27
  707. package/src/serve/hub-app/tree-svc.ts +1 -1
  708. package/src/serve/hub-app/urls-svc.ts +6 -5
  709. package/src/serve/hub-app/vault-st.ts +32 -27
  710. package/src/serve/hub-app/vault-view.tsx +57 -6
  711. package/src/serve/hub-app/vault.css +2 -0
  712. package/src/serve/hub-app/veille/veille-page.tsx +5 -14
  713. package/src/serve/hub-app/veille/veille-st.ts +56 -49
  714. package/src/serve/hub-app/veille.css +0 -1
  715. package/src/serve/hub-app/view-layout.css +90 -0
  716. package/src/serve/hub-app/waiting-svc.ts +5 -4
  717. package/src/serve/hub-app/when-view.tsx +6 -3
  718. package/src/serve/hub-app/wiki-st.ts +33 -6
  719. package/src/serve/hub-app/wikis-view.tsx +22 -18
  720. package/src/serve/hub-app/words.tsx +15 -0
  721. package/src/serve/hub-collections.ts +105 -0
  722. package/src/serve/hub-runtime.ts +83 -91
  723. package/src/serve/live-hop.ts +102 -0
  724. package/src/serve/other-repos.ts +1 -1
  725. package/src/serve/project-gutter-route.ts +69 -46
  726. package/src/serve/read-thread.ts +76 -0
  727. package/src/serve/read-worker.ts +53 -0
  728. package/src/serve/run-serve.ts +11 -7
  729. package/src/serve/secret-gate.ts +21 -0
  730. package/src/serve/serve-hub.ts +129 -51
  731. package/src/serve/terminal-guard.ts +50 -0
  732. package/src/serve/terminal-route.ts +176 -0
  733. package/src/shipkit.ts +10 -10
  734. package/src/shot/client.ts +32 -16
  735. package/src/shot/dom-clip.ts +30 -5
  736. package/src/shot/film-box.ts +23 -8
  737. package/src/shot/serve-shot.ts +16 -5
  738. package/src/shot/shooter.ts +72 -24
  739. package/src/shot/shot-ask.ts +17 -6
  740. package/src/shot/shot-guard.ts +53 -0
  741. package/src/shot/shot-theme.ts +70 -0
  742. package/src/shot/still-file.ts +60 -0
  743. package/src/site/desk.ts +6 -5
  744. package/src/smoke/run-smoke.ts +3 -4
  745. package/src/social/brands.ts +4 -0
  746. package/src/social/compose.ts +13 -7
  747. package/src/social/cover.ts +4 -3
  748. package/src/social/desk-index.ts +34 -13
  749. package/src/social/draft-doc.ts +88 -0
  750. package/src/social/draft-versions.ts +80 -0
  751. package/src/social/drafts.ts +26 -8
  752. package/src/social/fit.ts +4 -3
  753. package/src/social/house.ts +1 -1
  754. package/src/social/import-drafts.ts +244 -0
  755. package/src/social/kind-pages.ts +3 -3
  756. package/src/social/kinds.ts +2 -2
  757. package/src/social/load.ts +106 -73
  758. package/src/social/media-facts.ts +1 -19
  759. package/src/social/media-kind.ts +68 -161
  760. package/src/social/media-limit.ts +3 -18
  761. package/src/social/media-of.ts +5 -4
  762. package/src/social/no-account.ts +38 -0
  763. package/src/social/open.ts +3 -2
  764. package/src/social/post-object.ts +120 -0
  765. package/src/social/post-sources.ts +136 -0
  766. package/src/social/post-text.ts +123 -0
  767. package/src/social/posts.ts +433 -0
  768. package/src/social/presence.ts +17 -13
  769. package/src/social/publish/index.ts +17 -5
  770. package/src/social/publish/secret.ts +2 -2
  771. package/src/social/release-stage.ts +76 -75
  772. package/src/social/routes.ts +72 -50
  773. package/src/social/stage.ts +45 -60
  774. package/src/social/stats.ts +3 -4
  775. package/src/social/strip.ts +4 -6
  776. package/src/social/text.ts +6 -4
  777. package/src/social/thread-drafts.ts +16 -0
  778. package/src/social/thumbnail.ts +135 -43
  779. package/src/social/tracker.ts +1 -1
  780. package/src/social/unit.ts +12 -3
  781. package/src/social/writes.ts +8 -31
  782. package/src/start-repo.ts +33 -13
  783. package/src/stores/desk.ts +17 -12
  784. package/src/stores/unit.ts +2 -2
  785. package/src/suite/core-counters.ts +31 -3
  786. package/src/suite/judge-suites.ts +69 -47
  787. package/src/suite/select.ts +1 -27
  788. package/src/suite/suite-cli.ts +18 -8
  789. package/src/suite/suite-cpu-preload.ts +10 -6
  790. package/src/trace/tracer.ts +4 -5
  791. package/src/trailer/build.ts +30 -15
  792. package/src/trailer/ffmpeg.ts +90 -31
  793. package/src/trailer/fonts.ts +5 -6
  794. package/src/trailer/footage.ts +9 -3
  795. package/src/trailer/grammar.ts +2 -1
  796. package/src/trailer/graph.ts +12 -10
  797. package/src/trailer/load-unit.ts +1 -1
  798. package/src/trailer/passage.ts +4 -3
  799. package/src/trailer/prune.ts +4 -4
  800. package/src/trailer/score/sound.ts +3 -3
  801. package/src/trailer/shot-plan.ts +5 -5
  802. package/src/trailer/shot-state.ts +25 -31
  803. package/src/trailer/sound/eleven.ts +34 -3
  804. package/src/trailer/sound/gen.ts +3 -3
  805. package/src/trailer/sound/run.ts +76 -64
  806. package/src/trailer/sound/takes.ts +0 -3
  807. package/src/trailer/take-fault.ts +41 -0
  808. package/src/trailer/titles.ts +17 -13
  809. package/src/trailer/url.ts +1 -1
  810. package/src/trailer/vertical-draw.ts +7 -7
  811. package/src/trailer/vertical.ts +3 -3
  812. package/src/trailer/vocab.ts +3 -4
  813. package/src/ts/config.ts +60 -24
  814. package/src/ts/cycles.ts +3 -1
  815. package/src/ts/imports.ts +17 -3
  816. package/src/ts/rename.ts +6 -7
  817. package/src/ts/source-graph.ts +15 -9
  818. package/src/ts/workspaces.ts +26 -0
  819. package/src/tui/build-steps-panel.ts +3 -3
  820. package/src/tui/checks-panel.ts +2 -2
  821. package/src/urls/frame.ts +3 -3
  822. package/src/urls/routes.ts +1 -1
  823. package/src/urls/rows.ts +2 -2
  824. package/src/vault/house-keys.ts +1 -1
  825. package/src/vault/vault-audit.ts +2 -3
  826. package/src/vault/vault-config.ts +6 -2
  827. package/src/vault/vault-http.ts +11 -3
  828. package/src/vault/vault-import.ts +6 -1
  829. package/src/vault/vault-restore.ts +3 -9
  830. package/src/vault/vault-serve.ts +47 -11
  831. package/src/vault/vault-snapshot.ts +5 -14
  832. package/src/veille/desk.ts +2 -2
  833. package/src/veille/identity.ts +2 -2
  834. package/src/veille/routes.ts +1 -1
  835. package/src/view3d/cam.ts +101 -0
  836. package/src/view3d/lib.ts +69 -0
  837. package/src/view3d/loop.ts +39 -0
  838. package/src/view3d/scene-cache.ts +62 -0
  839. package/src/view3d/viewer.ts +480 -0
  840. package/src/wiki/agent-paths.ts +55 -0
  841. package/src/wiki/graph-pages.ts +13 -1
  842. package/src/wiki/run-wiki.ts +4 -1
  843. package/src/wiki/scan-md.ts +1 -1
  844. package/src/wiki/serve-graph.ts +2 -3
  845. package/src/asks/asks-queue.ts +0 -424
  846. package/src/core/run-fix.ts +0 -120
  847. package/src/home/hmr-keep.ts +0 -134
  848. package/src/messages/suggest.ts +0 -96
  849. package/src/review/draft-card.ts +0 -41
  850. package/src/serve/hub-app/review/draft-card.tsx +0 -163
  851. package/src/serve/hub-app/review/note-place.ts +0 -31
  852. package/src/social/card-drafts.ts +0 -24
  853. package/src/social/migrate.ts +0 -123
  854. /package/src/{serve → http}/door-names.ts +0 -0
  855. /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;
@@ -23,6 +23,8 @@
23
23
  --ground:#1b2521;--groundline:#2a3630;--tag:#eef2f6;
24
24
  /* the KIND hues: a row's type, never its state (tree-build TYPE_MARK) */
25
25
  --k1:#8ca8c7;--k2:#a892c9;--k3:#6fb0b8;--k4:#c792b4;--k5:#9198a1;--k6:#8f95cf;
26
+ /* a kind's icon (review/glyphs.ts KIND_HUES): one muted tone for every hue, so none shouts on the calm rows */
27
+ --kind-s:58%;--kind-l:66%;
26
28
  /* the chart series (the time page): four hues told apart as neighbours on --panel in each theme, colour blind
27
29
  views included (measured as a set, in this order); a series keeps its hue on every chart, never a state */
28
30
  --viz1:#3987e5;--viz2:#d95926;--viz3:#199e70;--viz4:#9085e9;
@@ -34,6 +36,8 @@
34
36
  --errbg:#2a1a1a;--errline:#4a2c2c;--errink:#e3bebe;
35
37
  /* a running thing's wash, the green twin of errbg and errline */
36
38
  --okbg:#15251c;--okline:#2f5a40;
39
+ /* inline code in markdown (markdown.css): an amber text on a faint amber wash, AA on every surface of its theme */
40
+ --code:#e3b45c;--codebg:rgba(227,180,92,.12);
37
41
  /* the ONE spacing scale: every padding, margin and gap in this sheet is a
38
42
  value from it or 0, and tests/hub-css-invariants.test.ts fails the rest */
39
43
  --s0:2px;--s1:4px;--s2:8px;--s3:12px;--s4:16px}
@@ -45,52 +49,61 @@
45
49
  :root[data-theme=light]{--bg:#f1f3f6;--panel:#ffffff;
46
50
  --bg-side:#e6e9ee;--bg-top:#eaedf1;--bg-dock:#e3e7ec;--bg-band:#cfd5dd;--panel2:#e3e7ec;--line:#bcc4ce;--ink:#16191d;--dim:#464b51;
47
51
  --accent:#355e87;--sel:#d2e0ef;--chk1:#e3e7ec;--chk2:#f7f8fa;
48
- --red:#a83733;--warn:#86550b;--ok:#256e45;--blue:#275fa0;
52
+ --orange:#cf6410;--red:#a83733;--warn:#86550b;--ok:#256e45;--blue:#275fa0;
49
53
  --recfile:#0b63ce;--recwebp:#1a7f43;--reclink:#8a3fc4;--recink:#ffffff;
50
54
  --scrim:rgba(20,24,30,.35);--shadow:rgba(20,24,30,.16);--solid:#000;
51
55
  --hi1:rgba(0,0,0,.2);--hi2:rgba(0,0,0,.11);--hi3:rgba(0,0,0,.045);
52
56
  --ground:#e3ede6;--groundline:#c6d6cb;--tag:#eef2f6;
53
57
  --k1:#3b6087;--k2:#695099;--k3:#24676f;--k4:#8e4470;--k5:#585f67;--k6:#4f56a8;
58
+ /* a kind's icon (review/glyphs.ts KIND_HUES): one muted tone for every hue, so none shouts on the calm rows */
59
+ --kind-s:55%;--kind-l:38%;
54
60
  --viz1:#2a78d6;--viz2:#eb6834;--viz3:#1baf7a;--viz4:#6250d6;
55
61
  --review:#a72288;
56
62
  --ref-lazy:#944d0a;--ref-eager:#1d5abd;
57
63
  --wash:rgba(59,104,150,.12);--wash2:rgba(59,104,150,.08);--hair:rgba(59,104,150,.45);
58
64
  --errbg:#fbe9e8;--errline:#efc4c2;--errink:#8a2520;
59
- --okbg:#e6f3eb;--okline:#9ccdaf}
65
+ --okbg:#e6f3eb;--okline:#9ccdaf;
66
+ --code:#7a4b00;--codebg:rgba(176,122,12,.13)}
60
67
  /* THE DIM TOKENS: between the two, on the dark side: slate surfaces a clear step up from the dark page, the same
61
68
  light inks. Light text, so it reads as a dark scheme to the browser and to a framed page */
62
69
  :root[data-theme=dim]{--bg:#22262c;--panel:#2a2f36;
63
70
  --bg-side:#272b32;--bg-top:#2c3138;--bg-dock:#252a31;--bg-band:#1a1d22;--panel2:#323840;--line:#454c56;--ink:#e4e7ea;--dim:#a8afb8;
64
71
  --accent:#93b4d6;--sel:#2f4054;--chk1:#2c3138;--chk2:#262a30;
65
- --red:#ec908c;--warn:#dba95e;--ok:#82bd99;--blue:#88b0e0;
72
+ --orange:#f09a48;--red:#ec908c;--warn:#dba95e;--ok:#82bd99;--blue:#88b0e0;
66
73
  --recfile:#0b63ce;--recwebp:#1a7f43;--reclink:#8a3fc4;--recink:#ffffff;
67
74
  --scrim:rgba(0,0,0,.5);--shadow:rgba(0,0,0,.45);--solid:#000;
68
75
  --hi1:rgba(255,255,255,.28);--hi2:rgba(255,255,255,.16);--hi3:rgba(255,255,255,.07);
69
76
  --ground:#2b3a33;--groundline:#3c4d44;--tag:#eef2f6;
70
77
  --k1:#9db8d5;--k2:#b7a3d6;--k3:#80bfc7;--k4:#d3a2c1;--k5:#a9b0b9;--k6:#a7addf;
78
+ /* a kind's icon (review/glyphs.ts KIND_HUES): one muted tone for every hue, so none shouts on the calm rows */
79
+ --kind-s:55%;--kind-l:68%;
71
80
  --viz1:#3987e5;--viz2:#d95926;--viz3:#199e70;--viz4:#9085e9;
72
81
  --review:#ee8fdc;
73
82
  --ref-lazy:#eea65f;--ref-eager:#82b5f4;
74
83
  --wash:rgba(132,168,204,.17);--wash2:rgba(132,168,204,.12);--hair:rgba(132,168,204,.5);
75
84
  --errbg:#402c2c;--errline:#633f3f;--errink:#eecccc;
76
- --okbg:#27392f;--okline:#427054}
85
+ --okbg:#27392f;--okline:#427054;
86
+ --code:#f0c66e;--codebg:rgba(240,198,110,.13)}
77
87
  /* THE GREY TOKENS: between the two, on the light side: grey paper a clear step down from the light page, darker inks
78
88
  to keep their contrast on it. Dark text, so it reads as a light scheme */
79
89
  :root[data-theme=grey]{--bg:#cfd3d9;--panel:#dbdee3;
80
90
  --bg-side:#c5cad1;--bg-top:#c9ced5;--bg-dock:#c2c7cf;--bg-band:#adb4be;--panel2:#c2c7cf;--line:#9aa2ad;--ink:#101317;--dim:#33383e;
81
91
  --accent:#274d74;--sel:#b1c4d9;--chk1:#c2c7cf;--chk2:#d5d9de;
82
- --red:#8a2622;--warn:#6b4204;--ok:#17532f;--blue:#1a4a82;
92
+ --orange:#b85808;--red:#8a2622;--warn:#6b4204;--ok:#17532f;--blue:#1a4a82;
83
93
  --recfile:#0b63ce;--recwebp:#1a7f43;--reclink:#8a3fc4;--recink:#ffffff;
84
94
  --scrim:rgba(20,24,30,.4);--shadow:rgba(20,24,30,.2);--solid:#000;
85
95
  --hi1:rgba(0,0,0,.22);--hi2:rgba(0,0,0,.13);--hi3:rgba(0,0,0,.06);
86
96
  --ground:#bfcdc4;--groundline:#a3b6aa;--tag:#eef2f6;
87
97
  --k1:#2c4d70;--k2:#523b80;--k3:#17525a;--k4:#74325a;--k5:#434950;--k6:#3c438c;
98
+ /* a kind's icon (review/glyphs.ts KIND_HUES): one muted tone for every hue, so none shouts on the calm rows */
99
+ --kind-s:55%;--kind-l:30%;
88
100
  --viz1:#2a78d6;--viz2:#eb6834;--viz3:#1baf7a;--viz4:#6250d6;
89
101
  --review:#8a1570;
90
102
  --ref-lazy:#7a3d04;--ref-eager:#14479c;
91
103
  --wash:rgba(39,77,116,.14);--wash2:rgba(39,77,116,.09);--hair:rgba(39,77,116,.5);
92
104
  --errbg:#e6cfcd;--errline:#d0a5a2;--errink:#7a1f1a;
93
- --okbg:#c9dccf;--okline:#84b497}
105
+ --okbg:#c9dccf;--okline:#84b497;
106
+ --code:#5c3a00;--codebg:rgba(168,116,10,.16)}
94
107
  /* a repo's own colour, the one fit for the theme: the light one where the text is dark (projects-svc idVars) */
95
108
  .idc{color:var(--idd)}
96
109
  :root[data-theme=light] .idc,:root[data-theme=grey] .idc{color:var(--idl)}
@@ -110,6 +123,10 @@
110
123
  .ptr.armed{color:var(--accent);border-color:var(--accent)}
111
124
  .ptr.go{animation:ptrspin .7s linear infinite}
112
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)}
113
130
  @media (prefers-reduced-motion:reduce){.ptr{transition:none}.ptr.go{animation:none}}
114
131
  body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.5 system-ui,sans-serif;overflow:hidden}
115
132
  /* a link with no class of its own: the browser default is dark blue on this dark page */
@@ -129,8 +146,13 @@ a,a:visited{color:var(--accent)}
129
146
  .repo[hidden]{display:none}
130
147
  .appbody{flex:1;min-height:0}
131
148
  .pside{display:flex;flex-direction:column;container-type:inline-size}
132
- /* a narrow sidebar keeps the names: the key hints and the filter's letters go first */
133
- @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)}}
134
156
  .pside > aside{flex:1}
135
157
  .pmain{display:flex;flex-direction:column}
136
158
  .pmain > main{flex:1}
@@ -144,7 +166,6 @@ a,a:visited{color:var(--accent)}
144
166
  button and its editor icons. A hub of its own names itself in its header (.hdr). Its trouble floats at the top
145
167
  right (home-strip.css .htoasts) ── */
146
168
  /* the repo's processes (serve.processes): a dot, its id, a link once up */
147
- .hprocs{display:inline-flex;gap:var(--s1);align-items:center}
148
169
  .hproc{display:inline-flex;align-items:center;gap:var(--s0)}
149
170
  .hproc button{padding:var(--s0) var(--s2);font-size:12px}
150
171
  .hproc a{color:var(--accent);text-decoration:none;font-size:12px}
@@ -154,11 +175,13 @@ a,a:visited{color:var(--accent)}
154
175
  .hdr .sp{flex:1}
155
176
  .hname{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--ink);font-weight:600;margin-right:var(--s2);white-space:nowrap}
156
177
  .hdr{white-space:nowrap}
157
- /* a repo's tools at the head of its tree: the filter has the first line to itself, its all, needs and red buttons
158
- and the tools share the second, the tools at its end */
159
- .ssearch:has(.stools) .sfield{flex-basis:100%}
160
- .stools{display:inline-flex;align-items:center;gap:var(--s0);margin-left:auto}
161
- .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}
162
185
  .hrun{display:inline-flex;align-items:center;gap:var(--s1);flex:none;margin-left:var(--s2)}
163
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}
164
187
  .hbtn .hico{width:13px;height:13px}
@@ -167,11 +190,16 @@ a,a:visited{color:var(--accent)}
167
190
  .hicon:hover{color:var(--accent)}
168
191
  .hicon .hico{width:15px;height:15px}
169
192
  /* the home's places at the start of the top bar, apart from the page's own pieces; the page shown is lit */
170
- /* every fold's caret (icons.tsx Caret): 14 px, turned by its state, never a text glyph a font draws at 6 px */
171
- .caret{flex:none;display:inline-block;width:14px;height:14px;vertical-align:-2px;transition:transform .12s ease}
193
+ /* THE caret (icons.tsx Caret), the left bar's: a thin 10 px chevron, dim, lit when what it folds is hovered, turned by
194
+ its state, never a text glyph. No other sheet sizes, colours or turns it (tests/hub-caret-card-head.test.ts): a page
195
+ places it, never draws it */
196
+ .caret{flex:none;display:inline-block;width:10px;height:10px;vertical-align:middle;color:var(--dim);transition:transform .12s ease}
172
197
  .caret.open{transform:rotate(90deg)}
173
198
  .caret.v{transform:rotate(90deg)}
174
199
  .caret.v.open{transform:rotate(-90deg)}
200
+ .caret.side{transform:rotate(180deg)}
201
+ .caret.side.open{transform:none}
202
+ :is(button,.tsec,.trow,.rline,.vbar):hover .caret{color:var(--ink)}
175
203
  @media (prefers-reduced-motion:reduce){.caret{transition:none}}
176
204
 
177
205
  /* a row of a (?) legend: one glyph or word, then its meaning */
@@ -190,39 +218,56 @@ aside > .tscroll::-webkit-scrollbar-thumb{background:var(--line);border-radius:3
190
218
  /* a section, the tree's top row: the project list's rows (project-list.css
191
219
  .pjrow), a little shorter, the current one lit and marked in the accent.
192
220
  The chevron column is the tree's own, so a section's rows line up under it */
193
- .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}
194
222
  .tsec:hover{background:var(--panel2);color:var(--ink)}
195
223
  .tsec.empty{opacity:.4}
196
224
  .tsec.noop{cursor:default}
197
225
  .tsec.noop:hover{background:none;color:var(--ink)}
198
226
  .tsec.on{box-shadow:inset 2px 0 0 var(--accent)}
199
- .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)}
200
228
  .tsec .hico{width:16px;height:16px}
201
229
  .tsec.tpfirst{margin-top:var(--s2);box-shadow:inset 0 1px 0 var(--line)}
202
230
  .tsec.tpfirst.cur{box-shadow:inset 3px 0 0 var(--accent),inset 0 1px 0 var(--line)}
203
- .tsec:hover .tw{color:var(--ink)}
204
231
  .rsecl{min-width:0;padding-left:var(--s0);overflow:hidden;text-overflow:ellipsis}
205
- .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)}
206
- /* a section's key: the project list's key (.pjkey), a size down so the name keeps the room */
207
- .tsec .pjkey{font-size:9px}
208
- .rsecn.nred{background:var(--red)}
209
- .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)}
210
260
  .tsec:hover .pjkey,.tsec.cur .pjkey{opacity:1}
211
261
  /* review: its own hue on the icon, the label and the mark, empty or not, so the eye finds it */
212
262
  .tsec.s-review,.tsec.s-review:hover,.tsec.s-review.cur{color:var(--review)}
213
263
  .tsec.s-review.empty{opacity:.75}
214
264
  .tsec.s-review.cur{box-shadow:inset 3px 0 0 var(--review)}
215
- .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)}
216
267
  /* ── A LIST'S ROWS AND BANDS: the rows of the B and C lists (the identities, the database page), in the tree's
217
268
  shape (.tsec): 26px, a 16px icon, the name, what it carries at its end (a figure, a dot), the picked one on the
218
- selection with the accent bar. A band titles its rows on a faint wash; a band that folds is a button with the
219
- app's caret. A page never draws these its own way (tests/database-page.test.tsx holds its sheet to it) ── */
220
- .idband,.lband{display:flex;align-items:center;gap:var(--s1);height:24px;margin-top:var(--s2);padding:0 var(--s3);font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--ink);background:var(--hi3);box-shadow:inset 0 1px 0 var(--line)}
221
- .idband span,.lband .lbandn{color:var(--dim);font-weight:400;letter-spacing:0;margin-left:auto;font-variant-numeric:tabular-nums}
222
- .lband{width:100%;border:0;border-radius:0;text-align:left;cursor:pointer;font-family:inherit}
223
- .lband:hover{color:var(--accent)}
224
- .lband .caret{color:var(--dim)}
225
- .lband:focus-visible{outline:1px solid var(--accent);outline-offset:-1px}
269
+ selection with the accent bar. The hub's one head titles its rows (section-head.tsx, controls.css .sh). A page
270
+ never draws these its own way (tests/database-page.test.tsx holds its sheet to it) ── */
226
271
  .idrows,.lrows{display:flex;flex-direction:column;padding-top:var(--s1)}
227
272
  .idrow,.lrow{display:flex;align-items:center;gap:var(--s2);height:26px;padding:0 var(--s3);color:var(--dim);font-size:13px;text-decoration:none;white-space:nowrap;min-width:0;cursor:pointer}
228
273
  .lrow{width:100%;border:0;border-radius:0;background:none;text-align:left;font-family:inherit}
@@ -270,12 +315,8 @@ aside > .tscroll::-webkit-scrollbar-thumb{background:var(--line);border-radius:3
270
315
  align-items:center;gap:var(--s1);padding:0 var(--s1);height:20px;line-height:20px;cursor:pointer;white-space:nowrap}
271
316
  .trow:hover{background:var(--panel2)}
272
317
  .trow.on{background:var(--sel);box-shadow:inset 2px 0 0 var(--accent)}
273
- /* the fold marker: a thin 10px chevron with the whole first column as its hit
274
- target, and it turns rather than swapping for another glyph */
275
- .tw{display:flex;align-items:center;justify-content:flex-end;height:20px;color:var(--dim);user-select:none}
276
- .trow:hover .tw{color:var(--ink)}
277
- .cvt{transition:transform .12s ease;transform-origin:50% 50%;flex:none}
278
- .cvt.open{transform:rotate(90deg)}
318
+ /* the caret's hit target: the whole first column */
319
+ .tw{display:flex;align-items:center;justify-content:flex-end;height:20px;user-select:none}
279
320
  /* WHAT a row is: one glyph, one hue per kind. The hue is the kind's
280
321
  identity and carries no state, which is why it is its own slot */
281
322
  .ty{font-size:11px;text-align:center;user-select:none;color:var(--dim)}
@@ -329,9 +370,19 @@ main{display:flex;flex-direction:column;min-height:0;overflow:hidden}
329
370
  scrolls only past ~14 lines), then ONE slim toolbar row */
330
371
  .bar{display:flex;flex-direction:column;gap:var(--s2);padding:var(--s2) var(--s4);border-bottom:1px solid var(--line);background:var(--panel)}
331
372
  textarea{width:100%;min-height:64px;background:var(--bg);color:var(--ink);border:1px solid var(--line);
332
- border-radius:3px;padding:var(--s2) var(--s3);font:12px/1.5 ui-monospace,Menlo,monospace;resize:vertical}
333
- /* auto-text.tsx: the box is as tall as its text, so it never drags nor scrolls (a sheet's max-height may cap it) */
334
- textarea.autotext{box-sizing:border-box;min-height:0;resize:none;overflow-y:hidden}
373
+ border-radius:3px;padding:var(--s2) var(--s3);font:12px/1.5 ui-monospace,Menlo,monospace;resize:vertical;
374
+ white-space:pre-wrap;overflow-wrap:anywhere;overflow-x:hidden}
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
376
+ cap it lower */
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}
335
386
  .promptrow{display:flex;gap:var(--s1);align-items:flex-start}
336
387
  .promptrow .fold{flex:none;background:var(--panel2);color:var(--dim);border:1px solid var(--line);border-radius:3px;
337
388
  padding:var(--s1) var(--s2);font-size:11px;line-height:1.5}
@@ -367,6 +418,11 @@ kbd{background:var(--panel2);border:1px solid var(--line);border-radius:4px;padd
367
418
  .help{font-size:11px;color:var(--dim);padding:var(--s1) var(--s4);border-top:1px solid var(--line)}
368
419
  .errs{background:var(--errbg);border-bottom:1px solid var(--errline);color:var(--errink);font:12px/1.5 ui-monospace,Menlo,monospace;
369
420
  padding:var(--s1) var(--s4);white-space:pre-wrap}
421
+ /* one pane that failed to draw (pane-boundary.tsx): small, in its own place, the rest of the hub untouched */
422
+ .pane-err{display:flex;flex-direction:column;gap:var(--s1);margin:var(--s2);padding:var(--s2) var(--s3);border:1px solid var(--errline);
423
+ border-radius:6px;background:var(--errbg);color:var(--errink);font-size:12.5px;min-width:0}
424
+ .pane-err code{font:12px/1.4 ui-monospace,Menlo,monospace;white-space:pre-wrap;overflow-wrap:anywhere}
425
+ .pane-errrow{display:flex;gap:var(--s2);flex-wrap:wrap}
370
426
 
371
427
  /* ── per-asset info chips ── */
372
428
  .info{flex-wrap:wrap;gap:var(--s1);align-items:center;padding:var(--s1) var(--s4);border-bottom:1px solid var(--line);background:var(--panel2)}
@@ -519,10 +575,10 @@ kbd{background:var(--panel2);border:1px solid var(--line);border-radius:4px;padd
519
575
  .colcard .truth{margin-left:auto;font:11px ui-monospace,Menlo,monospace;color:var(--dim)}
520
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}
521
577
  .colcard .row{display:flex;gap:var(--s2);align-items:center;margin-top:var(--s2);flex-wrap:wrap}
522
- .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}
523
- .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)}
524
581
  .colcard .cand{background:var(--bg);border:1px solid var(--line);border-radius:3px;padding:var(--s2) var(--s3);margin-top:var(--s2)}
525
- .colcard .candhint{color:var(--dim);font-size:12.5px;white-space:pre-wrap}
526
582
  .colcard .err,.assetrem .err{color:var(--red);margin-top:var(--s2);font-size:12.5px}
527
583
  .colcard .said{color:var(--ok);margin-top:var(--s2);font-size:12.5px}
528
584
  .colcard .creds{border-bottom:1px solid var(--line);padding-bottom:var(--s3)}
@@ -534,7 +590,6 @@ kbd{background:var(--panel2);border:1px solid var(--line);border-radius:4px;padd
534
590
  .colcard .credheld.warn{color:var(--warn)}
535
591
  .colcard .credheld.red{color:var(--red)}
536
592
  .colcard .credheld.dim{color:var(--dim)}
537
- .colcard input.credacct{flex:1 1 100%}
538
593
  .colcard .credaccount{font:12.5px ui-monospace,Menlo,monospace;color:var(--dim)}
539
594
  .stchips{display:inline-flex;gap:var(--s1);flex-wrap:wrap;margin-left:var(--s2);vertical-align:middle}
540
595
  .stchip.who{color:var(--dim);border-color:var(--line);text-transform:none;letter-spacing:0;font-weight:500}
@@ -654,7 +709,6 @@ kbd{background:var(--panel2);border:1px solid var(--line);border-radius:4px;padd
654
709
  .rran{color:var(--accent)}
655
710
  .rcached{color:var(--dim)}
656
711
  .rran.zero,.rcached.zero{opacity:.4}
657
- .rcaret{color:var(--dim)}
658
712
  .rwho{border:1px solid var(--line);border-radius:3px;padding:0 var(--s1);font-size:10px;line-height:16px;text-align:center;text-transform:uppercase;letter-spacing:.04em;color:var(--dim)}
659
713
  .rchild .rid{grid-column:2/5;display:flex;gap:var(--s2);align-items:center;padding-left:var(--s4)}
660
714
  .rchild .rname{min-width:0;overflow:hidden;text-overflow:ellipsis}
@@ -673,20 +727,11 @@ kbd{background:var(--panel2);border:1px solid var(--line);border-radius:4px;padd
673
727
  /* it holds its width: a label growing from `run it now` to `running` used
674
728
  to resize the header under the pointer */
675
729
  .urun{min-width:104px;display:inline-flex;gap:var(--s1);align-items:center;justify-content:center}
676
- /* a titled card and its label and value facts: the runs page lists and the
677
- project card read these */
678
- .wcard{background:var(--bg);border:1px solid var(--line);border-radius:3px;padding:var(--s3);min-width:0}
679
- .wcard.wide{grid-column:1/-1}
680
- .wtitle{display:flex;gap:var(--s1);align-items:center;font-size:11px;text-transform:uppercase;letter-spacing:.08em;
681
- color:var(--dim);margin-bottom:var(--s2)}
730
+ /* label and value facts: the project card reads these */
682
731
  .wbody{font-size:12.5px;min-width:0}
683
732
  .wfact{display:flex;gap:var(--s2);align-items:baseline;padding:var(--s1) 0;border-top:1px solid var(--line);min-width:0}
684
733
  .wk{flex:0 0 88px;color:var(--dim);font-size:11px;display:flex;gap:var(--s0);align-items:center}
685
734
  .wv{flex:1;min-width:0;word-break:break-word}
686
- .wcard code{display:inline;background:var(--panel2);border:1px solid var(--line);border-radius:3px;
687
- padding:0 var(--s1);margin:0;font:11.5px ui-monospace,Menlo,monospace;max-height:none;white-space:normal}
688
- .wcard .dim{color:var(--dim)}
689
- .wcard .md{min-height:120px;max-height:320px;overflow-y:auto}
690
735
  /* the head: the id as a small tag, then the title, then the run button */
691
736
  .chead{display:flex;gap:var(--s2);align-items:baseline;flex-wrap:wrap}
692
737
  .chead .sp{flex:1}
@@ -717,8 +762,11 @@ a.tok{color:var(--accent)}
717
762
  /* a path never breaks mid token: it truncates, and its tooltip is the whole */
718
763
  .checkcard .cpath{display:inline-block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom}
719
764
  .checkcard .dim{color:var(--dim)}
720
- /* what is not a fact: the output and the slow suites, titled, unboxed */
765
+ /* what is not a fact: the output and the slow suites, each a card titled by the one card head (card-head.tsx), the
766
+ head at the card's edges as in every card */
721
767
  .csec{margin-top:var(--s4)}
768
+ .colcard>.csec>.ch{margin:0 calc(-1 * var(--s3))}
769
+ .colcard>.csec>.ch:first-child{margin-top:calc(-1 * var(--s2))}
722
770
  /* where it runs: one line per context, the value then its meaning. A context
723
771
  that never runs the check stays dim, so the lit lines read down the list */
724
772
  .cruns{display:grid;grid-template-columns:auto auto minmax(0,1fr);column-gap:var(--s3);row-gap:var(--s0);align-items:baseline}
@@ -728,8 +776,6 @@ a.tok{color:var(--accent)}
728
776
  .crun.cache .crv{color:var(--ink)}
729
777
  .crm{font-size:11.5px;color:var(--dim);opacity:.8}
730
778
  .crun:not(.on) .crm{opacity:.5}
731
- .cstitle{display:flex;gap:var(--s1);align-items:center;font-size:11px;text-transform:uppercase;letter-spacing:.08em;
732
- color:var(--dim);margin-bottom:var(--s2)}
733
779
  .wline{margin-bottom:var(--s1);word-break:break-word}
734
780
  /* the check's own sentence, under the title: it answers "what is this row",
735
781
  and the grid below it is detail. Rendered as markdown, so a code span and a
@@ -775,13 +821,9 @@ a.tok{color:var(--accent)}
775
821
  /* the switch: one select named by effect, and the reason that makes `never`
776
822
  sayable. It writes repo.config.ts, so the note under it is the file waiting
777
823
  for a commit */
778
- .wsel{min-width:150px}
779
824
  .winputs{display:flex;flex-wrap:wrap;gap:var(--s1);margin-top:var(--s1)}
780
825
  /* an age that moves: the one clock ticks, and only these repaint */
781
826
  .ago{color:var(--dim);font-size:11.5px}
782
- .wclear{background:var(--bg);color:var(--dim);border:1px solid var(--line);border-radius:3px;
783
- padding:var(--s0) var(--s2);font-size:10px;text-transform:uppercase;letter-spacing:.06em;cursor:pointer}
784
- .wclear:hover{color:var(--ink)}
785
827
  .wreason{width:100%;background:var(--bg);border:1px solid var(--line);border-radius:4px;color:var(--ink);
786
828
  padding:var(--s1) var(--s2);font-size:12.5px;outline:none;margin-top:var(--s2)}
787
829
  .wreason:focus{border-color:var(--accent)}
@@ -805,19 +847,14 @@ a.tok{color:var(--accent)}
805
847
  .ctbox{background:var(--panel);border:1px solid var(--line);border-radius:4px;padding:var(--s1) 0}
806
848
  .cttable{font-variant-numeric:tabular-nums}
807
849
  .cttable td{padding:var(--s0) var(--s2);vertical-align:baseline}
808
- .ctgrp td{padding:var(--s2) var(--s2) var(--s1);color:var(--ink);font-size:12.5px;font-weight:600;border-bottom:1px solid var(--line);cursor:pointer;user-select:none}
809
- .ctgrp:hover td{color:var(--accent)}
810
- .ctgrp.g-fail td{color:var(--red)}
811
- .ctgrp.g-warn td{color:var(--warn)}
812
- .ctcaret{display:inline-flex;width:18px}
850
+ .cttable .ctgrp td{padding:var(--s2) 0 0}
813
851
  .ctrow{cursor:pointer}
814
852
  .ctrow:hover{background:var(--panel2)}
815
853
  .ctdot{font-size:10px}
816
854
  .ctid,.ctkind{font:11.5px ui-monospace,Menlo,monospace}
817
855
  .ctfind{font:11.5px ui-monospace,Menlo,monospace;color:var(--dim)}
818
856
  .ctdur{text-align:right;font:11.5px ui-monospace,Menlo,monospace}
819
- .ctbudget,.ctplan,.ctblocks{color:var(--dim)}
820
- .ctprobe{font-size:11.5px}
857
+ .ctbudget,.ctplan{color:var(--dim)}
821
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}
822
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}
823
860
  @container (max-width:760px){.cttable .c-title{width:0}.cttable .cttitle{display:none}.cttable .c-plan{width:0}.cttable .ctplan{display:none}}
@@ -836,7 +873,7 @@ a.tok{color:var(--accent)}
836
873
  .wsearch{position:relative;flex:0 1 360px;min-width:160px;display:flex}
837
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}
838
875
  .wsearch input:focus{outline:none;border-color:var(--accent)}
839
- .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)}
840
877
  .wshit{padding:var(--s1) var(--s3);cursor:pointer}
841
878
  .wshit.on,.wshit:hover{background:var(--sel)}
842
879
  .wshead{display:flex;align-items:baseline;gap:var(--s2);min-width:0}
@@ -861,6 +898,8 @@ a.tok{color:var(--accent)}
861
898
  .wpbody a[data-ref=lazy] code{color:var(--ref-lazy)}
862
899
  .wpbody a[data-ref=eager]{color:var(--ref-eager);font-weight:700}
863
900
  .wpbody{flex:1;min-height:0;overflow-y:auto;padding:var(--s2) var(--s4) var(--s4)}
901
+ /* an icon in a table's cell (the objects page) keeps its own size: a narrow column never shrinks it away */
902
+ .wpbody td img{max-width:none;vertical-align:middle}
864
903
  .wpbody a[data-wiki]{text-decoration:underline;text-decoration-style:dotted;text-underline-offset:2px;cursor:pointer}
865
904
 
866
905
  /* ── comfy item view (comfy-ts's own panel fills the stage) ── */
@@ -878,25 +917,7 @@ a.tok{color:var(--accent)}
878
917
  .cfbox .err{color:var(--red);font-size:12.5px}
879
918
  .cfbox .ph{flex:1;display:flex;align-items:center;justify-content:center}
880
919
 
881
- /* ── md output (truth-file card bodies — marked + sanitize allowlist) ── */
882
- .md{font-size:12px;line-height:1.5;color:var(--ink)}
883
- .md table{border-collapse:collapse;margin:var(--s1) 0;font-size:11.5px;max-width:100%}
884
- .md th,.md td{border:1px solid var(--line);padding:var(--s0) var(--s2);text-align:left;vertical-align:top}
885
- /* a table's header row, every table of the app: the readme's and the shared Table's (time-charts.tsx) */
886
- .md th,.tvtable th{color:var(--accent);font-weight:650;font-size:10.5px;letter-spacing:.05em;text-transform:uppercase;background:var(--panel2)}
887
- .md blockquote{margin:var(--s1) 0;padding:var(--s0) var(--s2);border-left:2px solid var(--line);color:var(--dim)}
888
- .md hr{border:0;border-top:1px solid var(--line);margin:var(--s2) 0}
889
- .md h1,.md h2,.md h3{font-size:12.5px;margin:var(--s2) 0 var(--s1);color:var(--accent);letter-spacing:.02em}
890
- .md h1{font-size:13.5px}
891
- .md p{margin:var(--s1) 0}
892
- .md ul{margin:var(--s1) 0;padding-left:var(--s4)}
893
- .md li{margin:var(--s0) 0}
894
- .md code{display:inline;background:var(--bg);border:1px solid var(--line);border-radius:4px;padding:0 var(--s1);
895
- font:11px ui-monospace,Menlo,monospace;color:var(--ink);white-space:pre-wrap;max-height:none;margin:0}
896
- .md pre{background:var(--bg);border:1px solid var(--line);border-radius:4px;padding:var(--s2);margin:var(--s1) 0;
897
- overflow-x:auto;font:11px/1.5 ui-monospace,Menlo,monospace;white-space:pre}
898
- .md pre code{background:none;border:0;padding:0}
899
- .md a{color:var(--accent)}
920
+ /* ── md output: markdown.css ── */
900
921
 
901
922
  /* ── secret (cred) cards ── */
902
923
  .credname{font:600 13px ui-monospace,Menlo,monospace}
@@ -971,3 +992,7 @@ pre{background:var(--panel);border:1px solid var(--line);border-radius:3px;paddi
971
992
  .gitkind.staged{color:var(--ok)}
972
993
  .gitkind.untracked{color:var(--warn)}
973
994
  .gitpath{font:12px ui-monospace,Menlo,monospace;overflow-wrap:anywhere}
995
+ /* a kind's icon in its hue (review/glyphs.ts KIND_HUES, its `--kh` set where it is drawn), the tone of the theme; its
996
+ square takes the same hue, faint. Never a pill, never a row's ground */
997
+ [data-hue],.rv-cglyph[data-hue],.rv-objglyph[data-hue],.rv-row.waiting .trglyph[data-hue]{color:hsl(var(--kh) var(--kind-s) var(--kind-l))}
998
+ .rv-objglyph[data-hue]{background:color-mix(in srgb,currentColor 14%,transparent)}
@@ -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',
@@ -67,6 +72,8 @@ export const ICON = {
67
72
  comms: 'M3 8h3l8-4v12l-8-4H3zM6 12l1.5 4.5',
68
73
  social: 'M7 9a2.5 2.5 0 1 0 0-5a2.5 2.5 0 1 0 0 5M2.5 16c0-2.5 2-4.5 4.5-4.5s4.5 2 4.5 4.5M13.5 9a2 2 0 1 0 0-4M13 11.5c2.5 0 4.5 1.8 4.5 4.5',
69
74
  wikis: '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',
75
+ // the house wiki, a global page: the same open book
76
+ wiki: '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',
70
77
  admin: 'M4 5h12M4 10h12M4 15h12M7 3.5v3M13 8.5v3M9 13.5v3',
71
78
  health: 'M2 10h3.5l2-5 5 10 2-5H18',
72
79
  gate: 'M10 2.5 16 5v4.5c0 4-2.7 6.5-6 8c-3.3-1.5-6-4-6-8V5zM7.5 10l2 2 3.5-3.5',
@@ -88,18 +95,31 @@ export const ICON = {
88
95
  editor: 'M13 3l4 3v8l-4 3-7-6 7-5zM3 7.5l3 2.5-3 2.5',
89
96
  // the project list's fold: a panel with its rail marked
90
97
  rail: 'M3 4h14v12H3zM7.5 4v12',
98
+ terminal: 'M4 5l5 5-5 5M10.5 15H16',
91
99
  // a process's own switches on the overview
92
100
  play: 'M6.5 4.5v11l9-5.5z',
93
101
  stop: 'M5.5 5.5h9v9h-9z',
94
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',
95
103
  clock: 'M10 2.5a7.5 7.5 0 1 0 0 15a7.5 7.5 0 1 0 0-15M10 6v4l2.5 2',
96
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',
107
+ // the four verbs of his turn (review/wait.ts), drawn by thread-row.tsx VerbGlyph only: a verdict's scales, a
108
+ // question's bubble, the action's bolt, a page to read
109
+ judge: 'M10 3.5v13M6 16.5h8M4 6h12M4 6l-2 5h4zM16 6l-2 5h4z',
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',
111
+ do: 'M11.5 2.5 4.5 11h5l-1 6.5 7-8.5h-5z',
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',
97
115
  } as const
98
116
 
99
- /** every fold's caret: a chevron that points at what a click shows. `v`: a word button that unfolds below
100
- * (« more », « show »), down while folded and up once open; else right while folded, down once open */
101
- export const Caret = ({ open, v = false }: { open: boolean; v?: boolean }) => (
102
- <svg className={`caret${v ? ' v' : ''}${open ? ' open' : ''}`} viewBox="0 0 20 20" width="14" height="14" aria-hidden="true" fill="none" stroke="currentColor" strokeWidth="2.2" strokeLinecap="round" strokeLinejoin="round"><path d="M7.5 4.5 13 10l-5.5 5.5" /></svg>
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
118
+ * and nowhere else (tests/hub-caret-card-head.test.ts). Right while folded, down once open; `v`: a word button that
119
+ * unfolds below (« more », « show »), down while folded and up once open; `side`: a drawer at the right edge, left
120
+ * while shut and right once out */
121
+ export const Caret = ({ open, v = false, side = false }: { open: boolean; v?: boolean; side?: boolean }) => (
122
+ <svg className={`caret${v ? ' v' : ''}${side ? ' side' : ''}${open ? ' open' : ''}`} viewBox="0 0 24 24" width="10" height="10" aria-hidden="true" fill="none" stroke="currentColor" strokeWidth="2.4" strokeLinecap="round" strokeLinejoin="round"><path d="M9 5l7 7-7 7" /></svg>
103
123
  )
104
124
 
105
125
  export const Icon = ({ d }: { d: string }) => (
@@ -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 */