rvlib-shipkit 2.26.0 → 2.27.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 (442) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/package.json +1 -1
  3. package/src/agent-time/diet.ts +77 -0
  4. package/src/agent-time/family.ts +72 -0
  5. package/src/agent-time/hooks.ts +6 -4
  6. package/src/agent-time/limits.ts +44 -0
  7. package/src/agent-time/live.ts +1 -3
  8. package/src/agent-time/mask.ts +96 -18
  9. package/src/agent-time/refused.ts +45 -0
  10. package/src/agent-time/render.ts +122 -21
  11. package/src/agent-time/report-cache.ts +57 -0
  12. package/src/agent-time/report.ts +314 -40
  13. package/src/agent-time/shape.ts +50 -3
  14. package/src/agent-time/store.ts +320 -99
  15. package/src/agent-time/timeline.ts +140 -21
  16. package/src/agent-time/turns.ts +18 -8
  17. package/src/annex/offload.ts +17 -6
  18. package/src/annex/tidy.ts +70 -10
  19. package/src/asks/ask-after.ts +40 -0
  20. package/src/asks/asks-queue.ts +205 -47
  21. package/src/assets/kit-config.ts +7 -3
  22. package/src/assets/kits/identity-kit.ts +289 -10
  23. package/src/check.ts +3 -1
  24. package/src/checks/SK004-gitignore-policy.check.ts +12 -5
  25. package/src/checks/SK013-one-way-in-policy.check.ts +8 -3
  26. package/src/checks/SK026-asks-autoclose.check.ts +5 -5
  27. package/src/checks/SK028-readme.check.ts +7 -66
  28. package/src/checks/SK030-cache-audit.check.ts +6 -1
  29. package/src/checks/SK031-trace-audit.check.ts +2 -0
  30. package/src/checks/SK033-global-contribution.check.ts +3 -1
  31. package/src/checks/SK035-public-clean.check.ts +2 -2
  32. package/src/checks/SK043-scratch-on-the-mac.check.ts +59 -4
  33. package/src/checks/SK047-login-in-description.check.ts +36 -0
  34. package/src/checks/SK048-one-local-file.check.ts +36 -0
  35. package/src/cli/cmd_Asks.ts +71 -5
  36. package/src/cli/cmd_Backup.ts +2 -2
  37. package/src/cli/cmd_Capacity.ts +2 -2
  38. package/src/cli/cmd_CrossRepoActivity.ts +5 -4
  39. package/src/cli/cmd_Db.ts +253 -0
  40. package/src/cli/cmd_History.ts +212 -0
  41. package/src/cli/cmd_Home.ts +31 -3
  42. package/src/cli/cmd_Hq.ts +516 -0
  43. package/src/cli/cmd_Machines.ts +36 -0
  44. package/src/cli/cmd_Media.ts +38 -6
  45. package/src/cli/cmd_Reflect.ts +23 -2
  46. package/src/cli/cmd_Review.ts +548 -116
  47. package/src/cli/cmd_Secret.ts +62 -12
  48. package/src/cli/cmd_Social.ts +83 -1
  49. package/src/cli/cmd_Space.ts +324 -0
  50. package/src/cli/cmd_Time.ts +76 -5
  51. package/src/cli/cmd_Tmp.ts +28 -4
  52. package/src/cli/cmd_Trailer.ts +14 -10
  53. package/src/cli/cmd_Urls.ts +56 -0
  54. package/src/cli/cmd_Vault.ts +583 -0
  55. package/src/cli/family-help.ts +4 -2
  56. package/src/cli/family-pages.ts +1 -1
  57. package/src/cli/registry.ts +24 -3
  58. package/src/collections/actions.ts +63 -13
  59. package/src/collections/collection-types.ts +23 -1
  60. package/src/collections/providers.ts +117 -23
  61. package/src/collections/review.ts +4 -4
  62. package/src/contracts/contract-manifests.ts +6 -5
  63. package/src/contracts/contract-types.ts +6 -4
  64. package/src/contracts/contracts-engine.ts +11 -0
  65. package/src/contracts/manifests/chrome-web-store.contract.ts +31 -0
  66. package/src/core/budget.ts +12 -17
  67. package/src/core/capacity.ts +27 -18
  68. package/src/core/check-runner.ts +7 -4
  69. package/src/core/layout.ts +3 -0
  70. package/src/core/machine-busy.ts +127 -0
  71. package/src/core/machine-commit.ts +6 -1
  72. package/src/core/machine-db.ts +368 -20
  73. package/src/core/machine-layout.ts +137 -0
  74. package/src/core/machine-read.ts +81 -0
  75. package/src/core/migrate-layout.ts +1 -1
  76. package/src/core/one-way-in-policy.ts +64 -7
  77. package/src/core/polling-policy.ts +27 -0
  78. package/src/core/retention.ts +16 -2
  79. package/src/core/scope.ts +107 -14
  80. package/src/core/slots.ts +5 -4
  81. package/src/drill/clean.ts +25 -1
  82. package/src/drill/run.ts +1 -1
  83. package/src/drill/seal.ts +27 -4
  84. package/src/home/activity-shape.ts +2 -0
  85. package/src/home/activity.ts +66 -3
  86. package/src/home/app-sign.ts +15 -4
  87. package/src/home/daemon-jobs.ts +149 -7
  88. package/src/home/database-projects.ts +111 -0
  89. package/src/home/database-words.ts +203 -0
  90. package/src/home/databases.ts +460 -0
  91. package/src/home/global-units.ts +6 -0
  92. package/src/home/gui-app/ShipkitGui.swift +122 -1
  93. package/src/home/gui-app.ts +6 -3
  94. package/src/home/home-move.ts +514 -0
  95. package/src/home/home-paths.ts +12 -3
  96. package/src/home/home-routes.ts +68 -0
  97. package/src/home/inbox-shape.ts +24 -14
  98. package/src/home/machine-fold.ts +820 -0
  99. package/src/home/machine-host.ts +20 -5
  100. package/src/home/machine-repair.ts +503 -0
  101. package/src/home/machine-stores.ts +66 -15
  102. package/src/home/machine-temp.ts +547 -86
  103. package/src/home/resume.ts +79 -0
  104. package/src/home/run-daemon.ts +25 -4
  105. package/src/home/run-pm.ts +18 -5
  106. package/src/home/serve-daemon.ts +18 -3
  107. package/src/home/serve-web.ts +175 -7
  108. package/src/home/space-job.ts +115 -0
  109. package/src/home/space-page.ts +257 -0
  110. package/src/home/space-route.ts +167 -0
  111. package/src/home/space-words.ts +103 -0
  112. package/src/home/time-page-shape.ts +202 -0
  113. package/src/home/time-page.ts +64 -0
  114. package/src/home/vault-page.ts +482 -0
  115. package/src/home/vault-words.ts +132 -0
  116. package/src/hooks/leak-guard.ts +40 -13
  117. package/src/hooks/one-way-in-guard.ts +17 -4
  118. package/src/hq/cards.ts +581 -0
  119. package/src/hq/door-route.ts +43 -0
  120. package/src/hq/door.ts +163 -0
  121. package/src/hq/files-send.ts +348 -0
  122. package/src/hq/forgotten-log.ts +35 -0
  123. package/src/hq/history-check.ts +255 -0
  124. package/src/hq/history-place.ts +146 -0
  125. package/src/hq/history-send.ts +487 -0
  126. package/src/hq/hq-db.ts +99 -0
  127. package/src/hq/hq-local.ts +469 -0
  128. package/src/hq/hq-routes.ts +196 -0
  129. package/src/hq/hq-store.ts +599 -0
  130. package/src/hq/kinds/ask.ts +147 -0
  131. package/src/hq/kinds/card-gone.ts +83 -0
  132. package/src/hq/kinds/card-msg.ts +66 -0
  133. package/src/hq/kinds/card.ts +99 -0
  134. package/src/hq/kinds/index.ts +21 -0
  135. package/src/hq/kinds/kind.ts +126 -0
  136. package/src/hq/kinds/media.ts +125 -0
  137. package/src/hq/kinds/prompt.ts +219 -0
  138. package/src/hq/kinds/reflection.ts +128 -0
  139. package/src/hq/kinds/report.ts +55 -0
  140. package/src/hq/kinds/time-day.ts +236 -0
  141. package/src/hq/ledger.ts +473 -0
  142. package/src/hq/machine-key.ts +44 -0
  143. package/src/hq/machine-notes.ts +131 -0
  144. package/src/hq/outbox.ts +372 -0
  145. package/src/hq/replica.ts +168 -0
  146. package/src/hq/repo-id.ts +4 -0
  147. package/src/hq/report-facts.ts +117 -0
  148. package/src/hq/report.ts +274 -0
  149. package/src/hq/switch.ts +151 -0
  150. package/src/hq/vault-grant.ts +92 -0
  151. package/src/identities/identities.ts +15 -3
  152. package/src/identities/steps.ts +31 -0
  153. package/src/ledger/db.ts +73 -26
  154. package/src/ledger/gate-checks.ts +6 -2
  155. package/src/ledger/run-log.ts +11 -3
  156. package/src/ledger/store.ts +26 -4
  157. package/src/media-store/backup/daemon.ts +25 -17
  158. package/src/media-store/backup/kept.ts +241 -0
  159. package/src/media-store/backup/restore.ts +14 -4
  160. package/src/media-store/backup/run.ts +11 -11
  161. package/src/media-store/backup/secret.ts +6 -4
  162. package/src/media-store/backup/snapshot.ts +4 -2
  163. package/src/media-store/backup/sources.ts +67 -16
  164. package/src/media-store/copy/config.ts +77 -0
  165. package/src/media-store/copy/copy.ts +194 -0
  166. package/src/media-store/copy/lifecycle.ts +43 -0
  167. package/src/media-store/copy/night.ts +90 -0
  168. package/src/media-store/copy/proof.ts +151 -0
  169. package/src/media-store/copy/snapshot.ts +152 -0
  170. package/src/media-store/copy/store.ts +62 -0
  171. package/src/media-store/copy/stream.ts +176 -0
  172. package/src/media-store/daemon.ts +66 -16
  173. package/src/media-store/db.ts +22 -11
  174. package/src/media-store/forget.ts +23 -3
  175. package/src/media-store/hand.ts +4 -3
  176. package/src/media-store/hq-find.ts +75 -0
  177. package/src/media-store/hq-send.ts +277 -0
  178. package/src/media-store/kind.ts +2 -0
  179. package/src/media-store/purge.ts +18 -15
  180. package/src/media-store/put.ts +24 -8
  181. package/src/media-store/remote.ts +16 -7
  182. package/src/media-store/space-listing.ts +240 -0
  183. package/src/media-store/space.ts +40 -21
  184. package/src/media-store/sync.ts +5 -5
  185. package/src/media-store/tidy.ts +98 -0
  186. package/src/media-store/upload.ts +3 -3
  187. package/src/media-store/webp.ts +66 -0
  188. package/src/messages/model.ts +16 -7
  189. package/src/messages/routes.ts +14 -4
  190. package/src/messages/score.ts +2 -2
  191. package/src/messages/suggest.ts +96 -0
  192. package/src/pages/frame-client.ts +10 -0
  193. package/src/plan/planner.ts +28 -17
  194. package/src/recordings/media-kind.ts +1 -0
  195. package/src/recordings/model.ts +1 -1
  196. package/src/recordings/recorder-app/Capture.swift +9 -7
  197. package/src/reflect/hq-corpus.ts +56 -0
  198. package/src/reflect/prompt-corpus.ts +3 -1
  199. package/src/reflect/transcript.ts +129 -37
  200. package/src/release/machine-words.ts +67 -0
  201. package/src/release/public-clean.ts +8 -3
  202. package/src/releases/from-card.ts +1 -1
  203. package/src/releases/routes.ts +10 -5
  204. package/src/releases/store.ts +10 -1
  205. package/src/repo-config.ts +32 -2
  206. package/src/review/anim.ts +2 -2
  207. package/src/review/auto.ts +2 -2
  208. package/src/review/card-db.ts +244 -0
  209. package/src/review/card-rows.ts +266 -0
  210. package/src/review/cells.ts +76 -5
  211. package/src/review/draft-card.ts +41 -0
  212. package/src/review/draft-model.ts +78 -0
  213. package/src/review/format.ts +29 -10
  214. package/src/review/gone.ts +98 -0
  215. package/src/review/inbox-hook.ts +4 -4
  216. package/src/review/marks.ts +1 -1
  217. package/src/review/media-kind.ts +7 -5
  218. package/src/review/media-read.ts +9 -7
  219. package/src/review/media.ts +32 -5
  220. package/src/review/model.ts +202 -39
  221. package/src/review/move.ts +491 -0
  222. package/src/review/notes.ts +12 -20
  223. package/src/review/previews.ts +15 -19
  224. package/src/review/project.ts +1 -1
  225. package/src/review/rev.ts +8 -0
  226. package/src/review/role.ts +1 -1
  227. package/src/review/routes.ts +64 -13
  228. package/src/review/stage-card.ts +8 -4
  229. package/src/review/stage-routes.ts +1 -1
  230. package/src/review/store.ts +529 -83
  231. package/src/review/thread-fold.ts +51 -0
  232. package/src/review/threads.ts +147 -9
  233. package/src/review/trailer-auto-mock.ts +63 -0
  234. package/src/review/trailer-card.ts +4 -4
  235. package/src/review/trailer-desk.ts +41 -7
  236. package/src/review/trailer-media.ts +1 -0
  237. package/src/review/trailer-model.ts +8 -0
  238. package/src/review/trailer-notes.ts +1 -1
  239. package/src/review/trailer-routes.ts +9 -1
  240. package/src/review/unit.ts +6 -6
  241. package/src/review/watchers.ts +1 -1
  242. package/src/rules/untrack-generated.ts +92 -8
  243. package/src/secrets/held.ts +16 -0
  244. package/src/secrets/keychain.ts +113 -0
  245. package/src/secrets/list.ts +16 -6
  246. package/src/secrets/manager.ts +24 -10
  247. package/src/secrets/read.ts +257 -0
  248. package/src/secrets/who-reads.ts +49 -0
  249. package/src/serve/door-forward.ts +268 -0
  250. package/src/serve/door-names.ts +47 -0
  251. package/src/serve/embed.ts +1 -1
  252. package/src/serve/hub-app/activity-view.tsx +56 -32
  253. package/src/serve/hub-app/activity.css +7 -1
  254. package/src/serve/hub-app/asks-page.tsx +48 -0
  255. package/src/serve/hub-app/asks-st.ts +25 -0
  256. package/src/serve/hub-app/clock-svc.ts +1 -2
  257. package/src/serve/hub-app/col-card.tsx +64 -13
  258. package/src/serve/hub-app/col-list-page.tsx +122 -0
  259. package/src/serve/hub-app/col-list-st.ts +103 -0
  260. package/src/serve/hub-app/col-tables-view.tsx +10 -41
  261. package/src/serve/hub-app/col-tables.ts +76 -8
  262. package/src/serve/hub-app/cols-svc.ts +70 -16
  263. package/src/serve/hub-app/database-st.ts +260 -0
  264. package/src/serve/hub-app/database-view.tsx +289 -0
  265. package/src/serve/hub-app/database.css +32 -0
  266. package/src/serve/hub-app/entry-bar.css +14 -0
  267. package/src/serve/hub-app/entry-bar.tsx +33 -0
  268. package/src/serve/hub-app/entry-pick.ts +31 -0
  269. package/src/serve/hub-app/floating.tsx +1 -0
  270. package/src/serve/hub-app/hash-route.ts +11 -1
  271. package/src/serve/hub-app/header-bar.tsx +14 -18
  272. package/src/serve/hub-app/home-st.ts +89 -9
  273. package/src/serve/hub-app/home-strip.css +5 -19
  274. package/src/serve/hub-app/home-strip.tsx +58 -92
  275. package/src/serve/hub-app/home.html +7 -0
  276. package/src/serve/hub-app/hub-app.tsx +31 -142
  277. package/src/serve/hub-app/hub-types.ts +3 -1
  278. package/src/serve/hub-app/hub.css +109 -23
  279. package/src/serve/hub-app/icons.tsx +18 -1
  280. package/src/serve/hub-app/identities-st.ts +56 -6
  281. package/src/serve/hub-app/identities-view.tsx +100 -58
  282. package/src/serve/hub-app/identities.css +17 -15
  283. package/src/serve/hub-app/identity-address.ts +5 -0
  284. package/src/serve/hub-app/inbox-st.ts +41 -24
  285. package/src/serve/hub-app/inbox-view.tsx +37 -41
  286. package/src/serve/hub-app/inbox.css +2 -5
  287. package/src/serve/hub-app/index.html +7 -0
  288. package/src/serve/hub-app/kept-cols.tsx +7 -0
  289. package/src/serve/hub-app/keys.ts +28 -15
  290. package/src/serve/hub-app/later.tsx +26 -0
  291. package/src/serve/hub-app/list-filter.tsx +14 -0
  292. package/src/serve/hub-app/list-walk.ts +72 -3
  293. package/src/serve/hub-app/machines-st.ts +251 -0
  294. package/src/serve/hub-app/machines-view.tsx +224 -0
  295. package/src/serve/hub-app/machines.css +76 -0
  296. package/src/serve/hub-app/md-copy.tsx +79 -0
  297. package/src/serve/hub-app/media-view.tsx +2 -0
  298. package/src/serve/hub-app/messages/messages-page.tsx +79 -7
  299. package/src/serve/hub-app/messages/messages-st.ts +99 -3
  300. package/src/serve/hub-app/messages.css +14 -0
  301. package/src/serve/hub-app/page-keys.ts +175 -0
  302. package/src/serve/hub-app/pages-frames.tsx +11 -3
  303. package/src/serve/hub-app/palette-st.ts +58 -11
  304. package/src/serve/hub-app/palette-view.tsx +3 -1
  305. package/src/serve/hub-app/project-list.css +54 -8
  306. package/src/serve/hub-app/project-list.tsx +128 -59
  307. package/src/serve/hub-app/projects-svc.ts +78 -7
  308. package/src/serve/hub-app/reader-chips.tsx +13 -0
  309. package/src/serve/hub-app/readme-view.tsx +2 -3
  310. package/src/serve/hub-app/readme.css +27 -5
  311. package/src/serve/hub-app/reflections-page.tsx +42 -0
  312. package/src/serve/hub-app/reflections-st.ts +17 -0
  313. package/src/serve/hub-app/releases/releases-page.tsx +25 -2
  314. package/src/serve/hub-app/releases/releases-st.ts +1 -1
  315. package/src/serve/hub-app/repo-sections.ts +9 -5
  316. package/src/serve/hub-app/repo-st.ts +35 -8
  317. package/src/serve/hub-app/review/draft-card.tsx +163 -0
  318. package/src/serve/hub-app/review/kit.tsx +50 -7
  319. package/src/serve/hub-app/review/note-place.ts +1 -1
  320. package/src/serve/hub-app/review/review-board.tsx +2 -2
  321. package/src/serve/hub-app/review/review-cells.tsx +145 -65
  322. package/src/serve/hub-app/review/review-kit.ts +27 -1
  323. package/src/serve/hub-app/review/review-list.tsx +68 -30
  324. package/src/serve/hub-app/review/review-page.tsx +7 -8
  325. package/src/serve/hub-app/review/review-st.ts +111 -24
  326. package/src/serve/hub-app/review/review-thread.tsx +49 -19
  327. package/src/serve/hub-app/review/review-views.tsx +475 -144
  328. package/src/serve/hub-app/review/thread-control-st.ts +115 -0
  329. package/src/serve/hub-app/review/thread-control.tsx +74 -0
  330. package/src/serve/hub-app/review/thread-st.ts +73 -26
  331. package/src/serve/hub-app/review/trailer-card.tsx +1 -1
  332. package/src/serve/hub-app/review/trailer-page.tsx +37 -16
  333. package/src/serve/hub-app/review/trailer-st.ts +41 -7
  334. package/src/serve/hub-app/review.css +267 -61
  335. package/src/serve/hub-app/side-lists.ts +72 -0
  336. package/src/serve/hub-app/sidebar.tsx +6 -3
  337. package/src/serve/hub-app/site/site-part.tsx +2 -8
  338. package/src/serve/hub-app/site/site-st.ts +4 -4
  339. package/src/serve/hub-app/social/comms-page.tsx +20 -5
  340. package/src/serve/hub-app/social/kit.tsx +30 -4
  341. package/src/serve/hub-app/social/post-card.tsx +139 -49
  342. package/src/serve/hub-app/social/serial-writes.ts +13 -0
  343. package/src/serve/hub-app/social/social-model.ts +11 -0
  344. package/src/serve/hub-app/social/social-page.tsx +94 -35
  345. package/src/serve/hub-app/social/social-st.ts +120 -36
  346. package/src/serve/hub-app/social/stage-popup.tsx +1 -1
  347. package/src/serve/hub-app/social/stage-st.ts +1 -1
  348. package/src/serve/hub-app/social/step-layout.ts +1 -1
  349. package/src/serve/hub-app/social.css +3 -0
  350. package/src/serve/hub-app/space-st.ts +209 -0
  351. package/src/serve/hub-app/space-view.tsx +196 -0
  352. package/src/serve/hub-app/space.css +27 -0
  353. package/src/serve/hub-app/stores/stores-page.tsx +91 -23
  354. package/src/serve/hub-app/stores/stores-st.ts +44 -19
  355. package/src/serve/hub-app/stores.css +6 -1
  356. package/src/serve/hub-app/theme-st.ts +22 -9
  357. package/src/serve/hub-app/time-charts.tsx +291 -0
  358. package/src/serve/hub-app/time-pages.tsx +749 -0
  359. package/src/serve/hub-app/time-st.ts +162 -0
  360. package/src/serve/hub-app/time-view.tsx +76 -0
  361. package/src/serve/hub-app/time.css +138 -0
  362. package/src/serve/hub-app/tree-build.ts +52 -42
  363. package/src/serve/hub-app/tree-row.tsx +4 -4
  364. package/src/serve/hub-app/tree-svc.ts +18 -9
  365. package/src/serve/hub-app/urls-svc.ts +154 -0
  366. package/src/serve/hub-app/urls-view.tsx +117 -0
  367. package/src/serve/hub-app/urls.css +30 -0
  368. package/src/serve/hub-app/vault-st.ts +127 -0
  369. package/src/serve/hub-app/vault-view.tsx +154 -0
  370. package/src/serve/hub-app/vault.css +38 -0
  371. package/src/serve/hub-app/veille/veille-st.ts +12 -10
  372. package/src/serve/hub-app/waiting-svc.ts +29 -0
  373. package/src/serve/hub-app/wikis-view.tsx +2 -2
  374. package/src/serve/hub-runtime.ts +15 -2
  375. package/src/serve/project-gutter-route.ts +27 -14
  376. package/src/serve/project-gutter.ts +25 -12
  377. package/src/serve/same-origin.ts +10 -0
  378. package/src/serve/serve-hub.ts +13 -4
  379. package/src/shipkit-files.ts +16 -2
  380. package/src/shipkit.ts +1 -1
  381. package/src/shot/shooter.ts +616 -420
  382. package/src/shot/shot-ask.ts +246 -155
  383. package/src/site/desk.ts +2 -2
  384. package/src/smoke/run-smoke.ts +3 -2
  385. package/src/social/cover.ts +202 -0
  386. package/src/social/discord-layout.ts +37 -13
  387. package/src/social/drafts.ts +3 -0
  388. package/src/social/load.ts +23 -2
  389. package/src/social/media-kind.ts +2 -1
  390. package/src/social/publish/discord.ts +5 -2
  391. package/src/social/publish/secret.ts +2 -2
  392. package/src/social/release-stage.ts +28 -13
  393. package/src/social/routes.ts +26 -1
  394. package/src/social/stage.ts +1 -1
  395. package/src/social/stats.ts +12 -9
  396. package/src/social/strip.ts +4 -1
  397. package/src/social/thumbnail.ts +255 -0
  398. package/src/stores/collection.ts +15 -11
  399. package/src/stores/desk.ts +236 -42
  400. package/src/stores/model.ts +72 -6
  401. package/src/stores/routes.ts +37 -12
  402. package/src/stores/unit.ts +14 -8
  403. package/src/suite/judge-suites.ts +41 -11
  404. package/src/suite/select.ts +45 -3
  405. package/src/suite/suite-cli.ts +16 -10
  406. package/src/trailer/bed.ts +1 -1
  407. package/src/trailer/build.ts +134 -21
  408. package/src/trailer/ffmpeg.ts +7 -0
  409. package/src/trailer/fonts.ts +3 -2
  410. package/src/trailer/grammar.ts +201 -2
  411. package/src/trailer/graph.ts +42 -5
  412. package/src/trailer/look.ts +21 -0
  413. package/src/trailer/mock.ts +154 -0
  414. package/src/trailer/passage.ts +65 -26
  415. package/src/trailer/score/heard.ts +89 -0
  416. package/src/trailer/score/sound.ts +14 -8
  417. package/src/trailer/sound/run.ts +16 -6
  418. package/src/trailer/stitch.ts +26 -5
  419. package/src/trailer/titles.ts +82 -19
  420. package/src/trailer/versions.ts +1 -3
  421. package/src/trailer/vertical.ts +3 -1
  422. package/src/urls/frame.ts +195 -0
  423. package/src/urls/routes.ts +43 -0
  424. package/src/urls/rows.ts +171 -0
  425. package/src/urls/unit.ts +73 -0
  426. package/src/vault/house-keys.ts +42 -0
  427. package/src/vault/layout.ts +50 -0
  428. package/src/vault/policy.ts +165 -0
  429. package/src/vault/vault-audit.ts +276 -0
  430. package/src/vault/vault-client.ts +40 -0
  431. package/src/vault/vault-config.ts +159 -0
  432. package/src/vault/vault-destroy.ts +78 -0
  433. package/src/vault/vault-handover.ts +305 -0
  434. package/src/vault/vault-http.ts +352 -0
  435. package/src/vault/vault-import.ts +208 -0
  436. package/src/vault/vault-init.ts +328 -0
  437. package/src/vault/vault-minter.ts +271 -0
  438. package/src/vault/vault-restore.ts +333 -0
  439. package/src/vault/vault-serve.ts +342 -0
  440. package/src/vault/vault-snapshot.ts +281 -0
  441. package/src/veille/asks.ts +1 -1
  442. package/src/veille/desk.ts +2 -2
@@ -15,7 +15,7 @@
15
15
  the rows panel gives up the room, the foot stays put */
16
16
  .pjarch{flex:none;border-top:1px solid var(--line);max-height:40%;overflow-y:auto;scrollbar-width:none;padding:var(--s1) 0}
17
17
  .pjarch::-webkit-scrollbar{display:none}
18
- .pjarow{text-decoration:none;display:flex;align-items:center;gap:var(--s2);width:100%;height:22px;padding:0 var(--s2) 0 var(--s3);border:0;border-radius:0;background:none;color:var(--dim);font-size:12px;text-align:left;cursor:pointer;opacity:.6}
18
+ .pjarow{text-decoration:none;display:flex;align-items:center;gap:var(--s1);width:100%;height:22px;padding:0 var(--s1) 0 var(--s2);border:0;border-radius:0;background:none;color:var(--dim);font-size:12px;text-align:left;cursor:pointer;opacity:.6}
19
19
  .pjarow:hover,.pjarow.cur{opacity:1;background:var(--panel2)}
20
20
  .pjarow span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
21
21
  .pjarow img{flex:none;border-radius:3px;object-fit:contain}
@@ -44,20 +44,50 @@
44
44
  .pgmck{flex:none;width:12px;color:var(--accent)}
45
45
  .pjrows{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:var(--s1) 0;scrollbar-width:none}
46
46
  .pjrows::-webkit-scrollbar{display:none}
47
- .pjwait{display:flex;align-items:center;gap:var(--s2);padding:var(--s1) var(--s3);font-size:12px;color:var(--dim)}
48
- .pjrow{position:relative;display:flex;align-items:center;gap:var(--s2);width:100%;height:28px;padding:0 var(--s3);
47
+ /* the home's three groups, global, identities, projects: a header each that folds its group (projects-svc folds),
48
+ kept per browser; folded, it sums what waits on the owner inside it */
49
+ .pjgroup + .pjgroup{margin-top:var(--s2)}
50
+ /* a group's header is a full width band, a step darker than the rail, so the three groups read apart at a glance */
51
+ .pjgh{display:flex;align-items:center;gap:var(--s1);width:100%;height:26px;padding:0 var(--s1);border:0;border-radius:0;background:var(--bg-band);color:var(--ink);
52
+ font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;text-align:left;cursor:pointer}
53
+ .pjgh:hover{background:var(--bg-band);color:var(--accent)}
54
+ .pjgh .cvt{color:var(--dim)}
55
+ .pjghn{color:var(--dim)}
56
+ /* a folded group of pages or identities: its icons and avatars in wrapped rows under its band, a click each, the
57
+ name on hover, the one shown ringed or lit, the inbox's count on its corner */
58
+ .pjwrap{display:flex;flex-wrap:wrap;gap:var(--s0);padding:var(--s1) var(--s2)}
59
+ .pjrow.pjmini{width:28px;height:28px;padding:0;justify-content:center;border-radius:4px}
60
+ .pjrow.pjmini .pjname,.pjrow.pjmini .pjkey{display:none}
61
+ .pjrow.pjmini.cur{box-shadow:inset 0 -2px 0 var(--pjc,var(--accent))}
62
+ .pjrow.pjmini.pjid.cur{box-shadow:none}
63
+ .pjrow.pjmini .pgr{position:absolute;top:0;right:0;min-width:14px;height:14px;padding:0 var(--s0);border-radius:7px;font-size:9px;line-height:14px}
64
+ .pjgh:focus-visible{outline:1px solid var(--accent);outline-offset:-1px}
65
+ .pjghl{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
66
+ .pjghn{flex:1;font-weight:400;letter-spacing:0;font-variant-numeric:tabular-nums}
67
+ .pjgh .pgr,.pjgh .pga{letter-spacing:0;cursor:default}
68
+ /* a global page's row: the page's icon in the repo icons' place; lit in the accent while it shows */
69
+ .pjglobal .hico{flex:none;width:18px;height:16px}
70
+ .pjglobal.cur{color:var(--accent)}
71
+ .pgin{cursor:default}
72
+ /* an identity's row: its round avatar, else its initial on its colour; ringed in its colour while its view shows */
73
+ .pjid{--idr:transparent}
74
+ .pjid.cur{--idr:var(--idc,var(--accent));color:var(--ink)}
75
+ .pjrow .pjav{flex:none;width:18px;height:18px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 2px var(--idr);pointer-events:none}
76
+ .pjavi{display:grid;place-items:center;background:var(--idc,var(--dim));color:var(--bg);font-size:10px;font-weight:700;user-select:none}
77
+ .pjwait{display:flex;align-items:center;gap:var(--s1);padding:var(--s1) var(--s2);font-size:12px;color:var(--dim)}
78
+ .pjrow{position:relative;display:flex;align-items:center;gap:var(--s1);width:100%;height:26px;padding:0 var(--s1) 0 var(--s2);
49
79
  background:transparent;border:0;border-radius:0;text-align:left;color:var(--dim);font-size:13px;cursor:pointer}
50
80
  .pjrow:hover{background:var(--panel2);color:var(--ink)}
51
81
  /* the shown repo: its row lit, marked on the left in its identity colour
52
82
  (a global page's line: in the accent) */
53
83
  /* the repo's colour for the theme: colorDark, or colorLight on a light page (projects-svc idVars) */
54
84
  .pjrow{--pjc:var(--idd)}
55
- :root[data-theme=light] .pjrow{--pjc:var(--idl)}
85
+ :root[data-theme=light] .pjrow,:root[data-theme=grey] .pjrow{--pjc:var(--idl)}
56
86
  .pjrow.cur{background:var(--sel);color:var(--pjc,var(--ink));box-shadow:inset 3px 0 0 var(--pjc,var(--accent));font-weight:600}
57
87
  /* the selected repo while a global page is up: still marked, dimmer */
58
88
  .pjrow.cur.away{background:none;font-weight:500}
59
89
  .pjrow img,.pjrow .pgi{flex:none;width:18px;height:18px;border-radius:4px;object-fit:contain;pointer-events:none}
60
- .pjname{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
90
+ .pjname{flex:1;min-width:0;padding-left:var(--s0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
61
91
  /* the initial on a hue hashed from the name (projects-svc hueOf) */
62
92
  .pgi{display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:600;user-select:none;
63
93
  color:var(--c);background:color-mix(in srgb,var(--c) 22%,var(--panel2))}
@@ -71,12 +101,12 @@
71
101
  /* closed in VS Code: the name dims, never the icon (the icon is how a repo is found, and the rail has no name) */
72
102
  .pjrow.dim .pjname{opacity:.5}
73
103
  /* ⌘1 to ⌘9 select the first nine rows (keys.ts): the hint sits at the row's end */
74
- .pjkey{flex:none;font:10px/1 ui-monospace,Menlo,monospace;color:var(--dim);opacity:.6;background:none;border:0;padding:0}
104
+ .pjkey{flex:none;font:9px/1 ui-monospace,Menlo,monospace;color:var(--dim);opacity:.6;background:none;border:0;padding:0}
75
105
  .pjrow:hover .pjkey,.pjrow.cur .pjkey{opacity:1}
76
106
  /* what waits on the owner, at the end of the row: the review cards and the trailer lines to record (a click opens
77
107
  each), then the open asks */
78
- .pga,.pgr,.pgvox{flex:none;min-width:16px;height:16px;padding:0 var(--s1);border-radius:8px;
79
- font-size:10px;font-weight:700;line-height:16px;text-align:center;color:var(--bg);background:var(--warn)}
108
+ .pga,.pgr,.pgvox{flex:none;min-width:13px;height:13px;padding:0 var(--s0);border-radius:7px;
109
+ font-size:9px;font-weight:700;line-height:13px;text-align:center;color:var(--bg);background:var(--warn)}
80
110
  .pgr{background:var(--review);cursor:pointer}
81
111
  .pgr:hover{box-shadow:0 0 0 2px var(--review)}
82
112
  .pgvox{background:var(--accent);cursor:pointer}
@@ -150,6 +180,22 @@
150
180
  .pjlist.rail .pga,.pjlist.rail .pgr{position:absolute;top:0;min-width:14px;height:14px;padding:0 var(--s0);border-radius:7px;font-size:9px;line-height:14px}
151
181
  .pjlist.rail .pga{right:calc(50% - var(--ri,24px) / 2 - 4px)}
152
182
  .pjlist.rail .pgr{left:calc(50% - var(--ri,24px) / 2 - 4px)}
183
+ /* the rail: a header is its caret alone over a rule, its name and count in its title; a global row its icon, an
184
+ identity its avatar, each at the rail's icon size, the name in its title */
185
+ .pjlist.rail .pjghl,.pjlist.rail .pjghn{display:none}
186
+ .pjlist.rail .pjgh{justify-content:center;padding:0;height:16px}
187
+ .pjlist.rail .pjwrap{justify-content:center;padding:var(--s1) 0}
188
+ .pjlist.rail .pjgh .pgr,.pjlist.rail .pjgh .pga{position:static;margin-left:var(--s0)}
189
+ .pjlist.rail .pjglobal .hico{width:calc(var(--ri,24px) * .75);height:calc(var(--ri,24px) * .75)}
190
+ .pjlist.rail .pjrow img.pjav,.pjlist.rail .pjrow .pjav{width:var(--ri,24px);height:var(--ri,24px);border-radius:50%}
191
+ .pjlist.rail .pjavi{font-size:calc(var(--ri,24px) * .45)}
192
+ .pjlist.rail .pjglobal .pgin{left:auto;right:calc(50% - var(--ri,24px) / 2 - 4px)}
193
+ /* a folded group in the rail: its pages or its avatars small, three a row */
194
+ .pjlist.rail .pjwrap{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--s0);padding:var(--s1) var(--s0)}
195
+ .pjlist.rail .pjrow.pjmini{width:100%;height:auto;aspect-ratio:1;min-width:0}
196
+ .pjlist.rail .pjrow.pjmini .hico,.pjlist.rail .pjrow.pjmini img.pjav,.pjlist.rail .pjrow.pjmini .pjav{width:84%;height:84%}
197
+ .pjlist.rail .pjrow.pjmini .pjavi{font-size:calc(var(--ri,24px) * .2)}
198
+ .pjlist.rail .pjrow.pjmini .pgin{right:-2px;top:-2px;min-width:9px;height:9px;padding:0;font-size:7px;line-height:9px}
153
199
  /* the voice pill rides the icon's bottom left corner on the rail */
154
200
  .pjlist.rail .pgvox{position:absolute;bottom:0;left:calc(50% - var(--ri,24px) / 2 - 4px);min-width:14px;height:14px;padding:0 var(--s0);border-radius:7px;font-size:9px;line-height:14px}
155
201
  .pjlist.rail .pgd,.pjlist.rail .pgw{position:absolute;bottom:var(--s0);right:calc(50% - var(--ri,24px) / 2 - 2px)}
@@ -17,36 +17,33 @@
17
17
  // the foot never moving. ⌘B (or the foot's fold button, or a drag of the
18
18
  // separator below the list's min) folds the list to its icon rail: the
19
19
  // names, the ⌘ hints and the step hint hide, the pills ride the icon's
20
- // corners, the hover card still names the row; a phone width is always the rail. The home's places and the identities
21
- // ride the top bar (Places, Identities: home-strip.tsx), so the list holds only the repos. It renders from the first paint with the list this browser kept, so a
22
- // load moves nothing.
20
+ // corners, the hover card still names the row; a phone width is always the rail. On the home the list holds three
21
+ // groups under a header each, in this order: global (the home's pages, the picker first), identities, projects; a
22
+ // header folds its group, kept per browser, and a folded header still says what waits on the owner; folded, the pages
23
+ // and the identities stay as wrapped rows of their icons and avatars under it. A hub of its own
24
+ // has only its repos, and no header. It renders from the first paint with the list this browser kept, so a load
25
+ // moves nothing.
23
26
  import { autoUpdate, FloatingPortal, useDismiss, useFloating, useHover, useInteractions, useRole } from '@floating-ui/react'
24
27
  import { observer } from 'mobx-react-lite'
25
28
  import { useEffect, type CSSProperties } from 'react'
26
29
  import { middleware, OPEN_MS } from './floating.tsx'
27
30
  import { Icon, ICON } from './icons.tsx'
31
+ import { Caret } from './tree-row.tsx'
28
32
  import { plainClick } from './home-st.ts'
29
- import { PICKER_KEY, PLACE_KEY, RAIL_KEY, STEP_KEYS } from './keys.ts'
33
+ import { FIND_KEY, PICKER_KEY, PLACE_KEY, RAIL_KEY, STEP_KEYS } from './keys.ts'
30
34
  import type { RailIdentity } from '../../identities/machine.ts'
31
- import { cardModel, faceOf, hueOf, idVars, SORTS, type Place, type Project, type ProjectsSvc } from './projects-svc.ts'
35
+ import { cardModel, faceOf, hueOf, idVars, PLACES, SORTS, type Project, type ProjectsSvc, type RailGroup } from './projects-svc.ts'
36
+
37
+ export { PLACES }
32
38
  import { THEMES, type ThemePick } from './theme-st.ts'
33
39
  import { RAIL_ICONS, type RailIcon } from './layout-st.ts'
34
40
 
41
+ /** the theme as the foot's button and its list read it (theme-st.ts) */
42
+ export type ThemeHost = { pick: ThemePick; set(p: ThemePick): void; menuOpen: boolean; toggleMenu(): void; setMenu(v: boolean): void }
43
+
35
44
  /** what the list needs of its page: the hub and the home both carry one;
36
45
  * the layout, when the page can fold the list to its rail */
37
- export type ListHost = { projects: ProjectsSvc; layout?: { folded: boolean; toggleRail(): void; railIcon: RailIcon; cycleRailIcon(): void }; theme?: { pick: ThemePick; cycle(): void } }
38
-
39
- /** the lines on top of the list, in their order: the picker, the overview,
40
- * then the places, each with its shortcut (keys.ts) */
41
- const PLACES: { id: Place | 'picker'; label: string; title: string }[] = [
42
- { id: 'picker', label: 'jump to…', title: 'jump to a page, a repo or one of its resources' },
43
- { id: 'inbox', label: 'inbox', title: 'everything that waits on you in every repo: cards, questions, asks and what is red' },
44
- { id: 'overview', label: 'overview', title: 'the overview: shipkit, every global process and every repo on this machine' },
45
- { id: 'activity', label: 'activity', title: 'what every repo committed lately, what it holds uncommitted, its branch and whether it is pushed' },
46
- { id: 'planned', label: 'planned', title: 'every check the machine runs on its own: now, next, late, and why' },
47
- { id: 'insights', label: 'insights', title: 'boxes about every repo: the packages they use and by how many, version drift, script names' },
48
- { id: 'recordings', label: 'recordings', title: 'the screen recorder\'s takes of every repo: play, trim, crop, copy a link or the file' },
49
- ]
46
+ export type ListHost = { projects: ProjectsSvc; layout?: { folded: boolean; toggleRail(): void; railIcon: RailIcon; cycleRailIcon(): void }; theme?: ThemeHost }
50
47
 
51
48
  /** the icon's size on a row, in px, as attributes and in the sheet */
52
49
  export const ROW_ICON = 18
@@ -108,7 +105,7 @@ export const Row = observer(({ app, p, i }: { app: ListHost; p: Project; i: numb
108
105
  : <Face p={p} px={ROW_ICON} />}
109
106
  <span className="pjname">{p.name}</span>
110
107
  {face.cards != null ? (
111
- <b className="pgr" aria-label={`${face.cards} review card${face.cards === 1 ? '' : 's'} wait on you: open them`}
108
+ <b className="pgr" aria-label={`${face.cards} thread${face.cards === 1 ? '' : 's'} wait on you: open them`}
112
109
  onClick={(e) => { e.stopPropagation(); s.review(p.name) }} onDoubleClick={(e) => e.stopPropagation()}>{face.cards}</b>
113
110
  ) : null}
114
111
  {face.voices != null ? (
@@ -132,29 +129,62 @@ export const Row = observer(({ app, p, i }: { app: ListHost; p: Project; i: numb
132
129
  )
133
130
  })
134
131
 
135
- /** an identity in the top bar: its avatar, else its initial on its colour; lit in its colour while its view shows,
136
- * its name in the hover, a click its view */
137
- const IdentityFace = observer(({ s, i }: { s: ProjectsSvc; i: RailIdentity }) => {
132
+ /** an identity's row: its avatar, else its initial on its colour, and its name; lit while its view shows, a click
133
+ * its view. `mini`: the avatar alone, in the wrapped rows of a folded group, its name on hover */
134
+ const IdentityRow = observer(({ s, i, mini = false }: { s: ProjectsSvc; i: RailIdentity; mini?: boolean }) => {
138
135
  const style = i.colour == null ? undefined : ({ '--idc': i.colour } as CSSProperties)
139
136
  const on = s.identityLit() === i.id
140
137
  const repos = s.list.filter((p) => p.speaksAs === i.id || (p.speaksAs == null && i.default)).length
141
138
  return (
142
- <button className={`hid${on ? ' cur' : ''}`} style={style} aria-label={`identity ${i.name}`}
139
+ <button className={`pjrow pjid${mini ? ' pjmini' : ''}${on ? ' cur' : ''}`} style={style} aria-label={`identity ${i.name}`}
143
140
  title={`${i.name}${i.default ? ', the default identity' : ''}: its profile, its company, every account on its own page; ${repos} repo${repos === 1 ? '' : 's'} speak as it`}
144
141
  onClick={() => s.onIdentity?.(i.id)}>
145
- {i.mark != null ? <img className="hidm" src={i.mark} alt="" width={ID_ICON} height={ID_ICON} draggable={false} /> : <span className="hidm hidi">{i.name.charAt(0).toUpperCase()}</span>}
142
+ {i.mark != null ? <img className="pjav" src={i.mark} alt="" width={ROW_ICON} height={ROW_ICON} draggable={false} /> : <span className="pjav pjavi">{i.name.charAt(0).toUpperCase()}</span>}
143
+ <span className="pjname">{i.name}</span>
144
+ </button>
145
+ )
146
+ })
147
+
148
+ /** a global page's row: its icon, its name, the inbox's waiting cards, its key; lit while it shows. `mini`: the icon
149
+ * and the count alone, in the wrapped rows of a folded group, its name on hover */
150
+ const PlaceRow = observer(({ s, pl, mini = false }: { s: ProjectsSvc; pl: (typeof PLACES)[number]; mini?: boolean }) => {
151
+ const id = pl.id
152
+ const run = id === 'picker' ? s.onPicker : s.onPlace == null ? null : () => s.onPlace?.(id)
153
+ if (run == null) return null
154
+ const on = id === 'picker' ? s.pickerOpen() : s.place === id
155
+ const key = id === 'picker' ? FIND_KEY : PLACE_KEY[id]
156
+ const waiting = id === 'inbox' && s.waiting > 0 ? s.waiting : null
157
+ return (
158
+ <button className={`pjrow pjglobal${mini ? ' pjmini' : ''}${on ? ' cur' : ''}`} aria-label={pl.label} title={`${mini ? `${pl.label}: ` : ''}${pl.title}${key == null ? '' : ` (${id === 'picker' ? `${key} or ${PICKER_KEY}` : key})`}`} onClick={run}>
159
+ <Icon d={ICON[id === 'picker' ? 'search' : id === 'overview' ? 'home' : id]} />
160
+ <span className="pjname">{pl.label}</span>
161
+ {waiting == null ? null : <b className="pgr pgin" aria-label={`${waiting} thread${waiting === 1 ? '' : 's'} wait on you`}>{waiting}</b>}
162
+ {key == null ? null : <kbd className="pjkey">{key}</kbd>}
146
163
  </button>
147
164
  )
148
165
  })
149
166
 
150
- const ID_ICON = 28
167
+ const GROUP_WORDS: Record<RailGroup, { label: string; one: string; many: string }> = {
168
+ global: { label: 'global', one: 'page', many: 'pages' },
169
+ identities: { label: 'identities', one: 'identity', many: 'identities' },
170
+ projects: { label: 'projects', one: 'repo', many: 'repos' },
171
+ }
151
172
 
152
- /** the identities as avatars in the top bar, after the places (home-strip.tsx); nothing when the home has none */
153
- export const Identities = observer(({ s }: { s: ProjectsSvc }) => (s.onIdentity == null || s.identities.length === 0 ? null : (
154
- <span className="hids" aria-label="identities">
155
- {s.identities.map((i) => <IdentityFace key={i.id} s={s} i={i} />)}
156
- </span>
157
- )))
173
+ /** a group's header: a button that folds it, its name and count; folded, what waits on the owner inside it, summed */
174
+ export const GroupHead = observer(({ s, g, n, cards = 0, asks = 0 }: { s: ProjectsSvc; g: RailGroup; n: number; cards?: number; asks?: number }) => {
175
+ const open = !s.folds.has(g)
176
+ const w = GROUP_WORDS[g]
177
+ const what = `${w.label}, ${n} ${n === 1 ? w.one : w.many}`
178
+ return (
179
+ <button className={`pjgh${open ? '' : ' folded'}`} aria-expanded={open} aria-label={what} title={`${what}: a click ${open ? 'folds' : 'shows'} them`} onClick={() => s.toggleFold(g)}>
180
+ <Caret open={open} />
181
+ <span className="pjghl">{w.label}</span>
182
+ <span className="pjghn">{n}</span>
183
+ {open || cards === 0 ? null : <b className="pgr" aria-label={`${cards} thread${cards === 1 ? '' : 's'} wait on you inside`}>{cards}</b>}
184
+ {open || asks === 0 ? null : <b className="pga" aria-label={`${asks} ask${asks === 1 ? '' : 's'} inside`}>{asks}</b>}
185
+ </button>
186
+ )
187
+ })
158
188
 
159
189
  // the img carries its size as attributes too: an icon file is 512px, and
160
190
  // without them a sheet that fails to apply draws it at that size
@@ -216,12 +246,35 @@ export const ProjectList = observer(({ app }: { app: ListHost }) => {
216
246
  const s = app.projects
217
247
  const lay = app.layout
218
248
  const rail = lay?.folded === true
249
+ // the home's groups: a hub of its own has neither, and its repos need no header
250
+ const places = PLACES.filter((pl) => (pl.id === 'picker' ? s.onPicker != null : s.onPlace != null))
251
+ const ids = s.onIdentity != null && s.identities.length > 0
252
+ const headed = places.length > 0 || ids
219
253
  return (
220
254
  <nav className={`pjlist${rail ? ' rail' : ''}`} aria-label="projects" style={rail ? ({ '--ri': `${RAIL_ICONS[lay!.railIcon]}px` } as CSSProperties) : undefined}>
221
255
  {s.error !== '' ? <div className="pjhead"><span className="pgerr" title={s.error}>! {s.error}</span></div> : null}
222
256
  <div className="pjrows">
223
- {s.list.length === 0 && s.error === '' ? <span className="pjwait"><span className="spin" />reading the repos…</span> : null}
224
- {s.list.map((p, i) => <Row key={p.name} app={app} p={p} i={i} />)}
257
+ {places.length === 0 ? null : (
258
+ <div className="pjgroup" role="group" aria-label="global">
259
+ <GroupHead s={s} g="global" n={places.length} />
260
+ {s.folds.has('global')
261
+ ? <div className="pjwrap">{places.map((pl) => <PlaceRow key={pl.id} s={s} pl={pl} mini />)}</div>
262
+ : places.map((pl) => <PlaceRow key={pl.id} s={s} pl={pl} />)}
263
+ </div>
264
+ )}
265
+ {!ids ? null : (
266
+ <div className="pjgroup" role="group" aria-label="identities">
267
+ <GroupHead s={s} g="identities" n={s.identities.length} />
268
+ {s.folds.has('identities')
269
+ ? <div className="pjwrap">{s.identities.map((i) => <IdentityRow key={i.id} s={s} i={i} mini />)}</div>
270
+ : s.identities.map((i) => <IdentityRow key={i.id} s={s} i={i} />)}
271
+ </div>
272
+ )}
273
+ <div className="pjgroup" role="group" aria-label="projects">
274
+ {headed ? <GroupHead s={s} g="projects" n={s.list.length} cards={s.waiting} asks={s.asksOpen} /> : null}
275
+ {s.list.length === 0 && s.error === '' ? <span className="pjwait"><span className="spin" />reading the repos…</span> : null}
276
+ {headed && s.folds.has('projects') ? null : s.list.map((p, i) => <Row key={p.name} app={app} p={p} i={i} />)}
277
+ </div>
225
278
  </div>
226
279
  {s.archivedOpen && s.archived.length > 0 && s.onArchived != null ? (
227
280
  <div className="pjarch">
@@ -241,25 +294,6 @@ export const ProjectList = observer(({ app }: { app: ListHost }) => {
241
294
  )
242
295
  })
243
296
 
244
- /** the home's places as icon buttons (the picker's ⌘J, then each place's key): the top bar draws them
245
- * (home-strip.tsx), the list holds only the repos */
246
- export const Places = observer(({ s }: { s: ProjectsSvc }) => (
247
- <span className="hplaces" aria-label="the home's pages">
248
- {PLACES.map((pl) => {
249
- const id = pl.id
250
- const run = id === 'picker' ? s.onPicker : s.onPlace == null ? null : () => s.onPlace?.(id)
251
- if (run == null) return null
252
- const on = id === 'picker' ? s.pickerOpen() : s.place === id
253
- const key = id === 'picker' ? PICKER_KEY : PLACE_KEY[id]
254
- return (
255
- <button key={id} className={`hicon hpl${on ? ' cur' : ''}`} aria-label={pl.label} title={key == null ? pl.title : `${pl.title} (${key})`} onClick={run}>
256
- <Icon d={ICON[id === 'picker' ? 'search' : id === 'overview' ? 'home' : id]} />
257
- </button>
258
- )
259
- })}
260
- </span>
261
- ))
262
-
263
297
  /** the list's own controls (fold it to its rail, its icon size, the theme, the sort, the step keys, the archived
264
298
  * repos): the dock's bar draws them (dock-view.tsx), so the rail's foot holds nothing */
265
299
  export const ListFoot = observer(({ app }: { app: ListHost }) => {
@@ -296,18 +330,53 @@ export const ListFoot = observer(({ app }: { app: ListHost }) => {
296
330
 
297
331
  const SIZE_WORDS: Record<RailIcon, string> = { s: 'small', m: 'medium', l: 'large' }
298
332
 
299
- const THEME_ICON: Record<ThemePick, keyof typeof ICON> = { dark: 'moon', light: 'sun', auto: 'auto' }
333
+ const THEME_ICON: Record<ThemePick, keyof typeof ICON> = { dark: 'moon', dim: 'dusk', grey: 'cloud', light: 'sun', auto: 'auto' }
334
+ /** what each pick is, beside its name */
335
+ const THEME_WORDS: Record<ThemePick, string> = { dark: '', dim: 'slate, light text', grey: 'grey paper, dark text', light: '', auto: 'follows the system' }
300
336
 
301
- /** the theme: dark, light or auto (the system's), one click to the next */
302
- const ThemeButton = observer(({ t }: { t: { pick: ThemePick; cycle(): void } }) => {
303
- const next = THEMES[(THEMES.indexOf(t.pick) + 1) % THEMES.length]
337
+ /** the theme button: its icon is the theme picked, it opens the list of every theme and picks nothing itself */
338
+ const ThemeButton = observer(({ t }: { t: ThemeHost }) => {
339
+ const f = useFloating({
340
+ open: t.menuOpen,
341
+ onOpenChange: (v) => t.setMenu(v),
342
+ placement: 'top-start',
343
+ strategy: 'fixed',
344
+ middleware: middleware(6),
345
+ whileElementsMounted: autoUpdate,
346
+ })
347
+ const dismiss = useDismiss(f.context)
348
+ const role = useRole(f.context, { role: 'menu' })
349
+ const { getReferenceProps, getFloatingProps } = useInteractions([dismiss, role])
350
+ const words = THEME_WORDS[t.pick]
304
351
  return (
305
- <button className="pjfold" aria-label={`theme: ${t.pick}`} title={`theme: ${t.pick}${t.pick === 'auto' ? ' (follows the system)' : ''}; click for ${next}`} onClick={() => t.cycle()}>
306
- <Icon d={ICON[THEME_ICON[t.pick]]} />
307
- </button>
352
+ <>
353
+ <button ref={f.refs.setReference} className="pjfold" aria-label={`theme: ${t.pick}`} title={`theme: ${t.pick}${words === '' ? '' : ` (${words})`}: pick a theme`}
354
+ {...getReferenceProps({ onClick: () => t.toggleMenu() })}>
355
+ <Icon d={ICON[THEME_ICON[t.pick]]} />
356
+ </button>
357
+ {t.menuOpen ? (
358
+ <FloatingPortal>
359
+ <div ref={f.refs.setFloating} className="pgmenu" style={f.floatingStyles} {...getFloatingProps()}>
360
+ <ThemeMenu t={t} />
361
+ </div>
362
+ </FloatingPortal>
363
+ ) : null}
364
+ </>
308
365
  )
309
366
  })
310
367
 
368
+ /** the list's lines: one a theme with its icon and what it is, the picked one checked. A pick keeps the list open */
369
+ export const ThemeMenu = observer(({ t }: { t: Pick<ThemeHost, 'pick' | 'set'> }) => (
370
+ <>
371
+ <div className="pgmhead">the theme</div>
372
+ {THEMES.map((p) => (
373
+ <button key={p} role="menuitemradio" aria-checked={t.pick === p} className={`pgmi${t.pick === p ? ' on' : ''}`} onClick={() => t.set(p)}>
374
+ <span className="pgmck">{t.pick === p ? '✓' : ''}</span><Icon d={ICON[THEME_ICON[p]]} />{p}{THEME_WORDS[p] === '' ? null : <small>{THEME_WORDS[p]}</small>}
375
+ </button>
376
+ ))}
377
+ </>
378
+ ))
379
+
311
380
  /** the words for the order the list is in */
312
381
  const orderWords = (s: ProjectsSvc): string => {
313
382
  const m = s.sortMode
@@ -33,6 +33,21 @@ const keptOpen = (): boolean => {
33
33
  try { return globalThis.localStorage?.getItem(ARCHIVED_OPEN_KEY) === '1' } catch { return false }
34
34
  }
35
35
 
36
+ /** the rail's three groups, top to bottom: the home's pages, the identities, the repos */
37
+ export const RAIL_GROUPS = ['global', 'identities', 'projects'] as const
38
+ export type RailGroup = (typeof RAIL_GROUPS)[number]
39
+ /** where this browser keeps the groups folded in the rail */
40
+ export const RAIL_FOLDS_KEY = 'hub:rail-folds'
41
+
42
+ const keptFolds = (): Set<RailGroup> => {
43
+ try {
44
+ const v = JSON.parse(globalThis.localStorage?.getItem(RAIL_FOLDS_KEY) ?? '[]') as unknown
45
+ return new Set(Array.isArray(v) ? v.filter((g): g is RailGroup => (RAIL_GROUPS as readonly unknown[]).includes(g)) : [])
46
+ } catch {
47
+ return new Set()
48
+ }
49
+ }
50
+
36
51
  /** where this browser keeps the last sort it picked */
37
52
  export const SORT_KEY = 'hub:sort'
38
53
 
@@ -202,7 +217,27 @@ export function cardModel(p: Project, now: number): CardModel {
202
217
  }
203
218
 
204
219
  /** a page of the home that is no repo's */
205
- export type Place = 'overview' | 'inbox' | 'planned' | 'activity' | 'insights' | 'recordings'
220
+ export type Place = 'overview' | 'inbox' | 'machines' | 'database' | 'vault' | 'space' | 'planned' | 'activity' | 'insights' | 'time' | 'recordings'
221
+
222
+ /** the global group's rows, in their order: the picker, the inbox, the overview, then the places, each with its
223
+ * shortcut (keys.ts); ⌘↑ ⌘↓ walk them in this order, the picker aside (ProjectsSvc.step) */
224
+ export const PLACES: { id: Place | 'picker'; label: string; title: string }[] = [
225
+ { id: 'picker', label: 'jump to…', title: 'jump to a page, a repo or one of its resources' },
226
+ { id: 'inbox', label: 'inbox', title: 'everything that waits on you in every repo: cards, questions, asks and what is red' },
227
+ { id: 'overview', label: 'overview', title: 'the overview: shipkit, every global process and every repo on this machine' },
228
+ { id: 'machines', label: 'machines', title: 'every machine that reports to the hq: on or silent, its shipkit, its free disk, its repos, and what to look at' },
229
+ { id: 'database', label: 'database', title: 'every database of this machine: how much it takes on disk, its cap, each table with its rows and bytes, the hq\'s replica and drill' },
230
+ { id: 'vault', label: 'vault', title: 'the vault of this machine: how it stands, where it lives and how it is copied, every secret name with who reads it and whether it is held. Never a value' },
231
+ { id: 'space', label: 'space', title: 'the Space of the house: everything it holds and the room each folder takes, a folder opened down to a file, its versions, its copy. Read only' },
232
+ { id: 'activity', label: 'activity', title: 'what every repo committed lately, what it holds uncommitted, its branch and whether it is pushed' },
233
+ { id: 'planned', label: 'planned', title: 'every check the machine runs on its own: now, next, late, and why' },
234
+ { id: 'insights', label: 'insights', title: 'boxes about every repo: the packages they use and by how many, version drift, script names' },
235
+ { id: 'time', label: 'time', title: 'where the agents\' time went, for every repo or one: model, tools, waits, turns, slow and failing commands, hooks' },
236
+ { id: 'recordings', label: 'recordings', title: 'the screen recorder\'s takes of every repo: play, trim, crop, copy a link or the file' },
237
+ ]
238
+
239
+ /** an entry of the rail as ⌘↑ ⌘↓ walk it: a page of the home, an identity, a repo */
240
+ export type RailEntry = { t: 'place'; id: Place } | { t: 'identity'; id: string } | { t: 'repo'; name: string }
206
241
 
207
242
  export class ProjectsSvc {
208
243
  /** the last list this browser saw until the first poll answers, so the
@@ -221,6 +256,8 @@ export class ProjectsSvc {
221
256
  identityLit: () => string | null = () => null
222
257
  /** the archived button at the foot of the rail is on, its rows shown, per browser */
223
258
  archivedOpen = keptOpen()
259
+ /** the rail's groups folded to their header, per browser */
260
+ folds: Set<RailGroup> = keptFolds()
224
261
  /** the sort menu at the foot of the rail is open */
225
262
  sortMenuOpen = false
226
263
  /** the last sort picked in this browser; `sortMode` says whether the list
@@ -275,6 +312,21 @@ export class ProjectsSvc {
275
312
  makeAutoObservable<this, 'gen' | 'orderGen' | 'identitySaves' | 'saveIdentity' | 'kept' | 'keep' | 'keptIds'>(this, { gen: false, orderGen: false, identitySaves: false, saveIdentity: false, kept: false, keep: false, keptIds: false, list: observableRef, identities: observableRef, onIdentity: false, identityLit: false, onSelect: false, onPlace: false, onPicker: false, pickerOpen: false, onArchived: false, dotOf: false, warnOf: false })
276
313
  }
277
314
 
315
+ toggleFold(g: RailGroup): void {
316
+ if (!this.folds.delete(g)) this.folds.add(g)
317
+ try { globalThis.localStorage?.setItem(RAIL_FOLDS_KEY, JSON.stringify([...this.folds])) } catch { /* private window: the fold lasts the tab */ }
318
+ }
319
+
320
+ /** the review cards that wait on him in every repo: the inbox's number, the sum of the rows' pills */
321
+ get waiting(): number {
322
+ return this.list.reduce((n, p) => n + p.cards.length, 0)
323
+ }
324
+
325
+ /** the open asks of every repo, the sum of the rows' other pills */
326
+ get asksOpen(): number {
327
+ return this.list.reduce((n, p) => n + p.asks, 0)
328
+ }
329
+
278
330
  toggleArchivedOpen(): void {
279
331
  this.archivedOpen = !this.archivedOpen
280
332
  try { globalThis.localStorage?.setItem(ARCHIVED_OPEN_KEY, this.archivedOpen ? '1' : '0') } catch { /* private window: the choice lasts the tab */ }
@@ -324,14 +376,33 @@ export class ProjectsSvc {
324
376
  }
325
377
 
326
378
 
327
- /** the repo above (-1) or below (+1) the selected one, round the ends;
328
- * with none selected, down starts at the top and up at the bottom */
379
+ /** the rail's entries in the order drawn: the home's pages, its identities, its repos. A folded group keeps its
380
+ * entries, so the keys still reach them; a hub of its own has only its repos */
381
+ get railEntries(): RailEntry[] {
382
+ const places: RailEntry[] = this.onPlace == null ? [] : PLACES.flatMap((p) => (p.id === 'picker' ? [] : [{ t: 'place' as const, id: p.id }]))
383
+ const ids: RailEntry[] = this.onIdentity == null ? [] : this.identities.map((i) => ({ t: 'identity' as const, id: i.id }))
384
+ return [...places, ...ids, ...this.list.map((p) => ({ t: 'repo' as const, name: p.name }))]
385
+ }
386
+
387
+ /** the entry the page shows: its place, its identity, else the repo shown; none on another page */
388
+ isRailCurrent(e: RailEntry): boolean {
389
+ if (e.t === 'place') return this.place === e.id
390
+ if (e.t === 'identity') return this.identityLit() === e.id
391
+ const p = this.list.find((x) => x.name === e.name)
392
+ return p != null && !this.away && this.isCurrent(p)
393
+ }
394
+
395
+ /** the entry above (-1) or below (+1) the one shown, opened, round the ends; with none shown, down starts at the
396
+ * top and up at the bottom */
329
397
  step(by: -1 | 1): void {
330
- const n = this.list.length
398
+ const all = this.railEntries
399
+ const n = all.length
331
400
  if (n === 0) return
332
- const at = this.list.findIndex((p) => this.isCurrent(p))
333
- const next = at === -1 ? (by === 1 ? 0 : n - 1) : (at + by + n) % n
334
- this.select(this.list[next]!.name)
401
+ const at = all.findIndex((e) => this.isRailCurrent(e))
402
+ const next = all[at === -1 ? (by === 1 ? 0 : n - 1) : (at + by + n) % n]!
403
+ if (next.t === 'place') this.onPlace?.(next.id)
404
+ else if (next.t === 'identity') this.onIdentity?.(next.id)
405
+ else this.select(next.name)
335
406
  }
336
407
 
337
408
  /** a click selects once it is sure no second click follows */
@@ -0,0 +1,13 @@
1
+ // who reads a secret, drawn quiet on its name's line: a chip a reader (a repo, an identity with its count, `every
2
+ // repo`, `+n` past three), the full sentence its hover and its label. The secrets page and an ask's rows share it
3
+ import type { Readers } from '../../collections/collection-types.ts'
4
+
5
+ export const ReaderChips = ({ who, lead }: { who: Readers | undefined; lead: string }) => {
6
+ if (who == null || who.chips.length === 0) return null
7
+ const said = `${lead}: ${who.long}`
8
+ return (
9
+ <span className="stchips" title={said} aria-label={said}>
10
+ {who.chips.map((c, i) => <span key={i} className={`stchip who${c.known ? '' : ' unknown'}`}>{c.label}</span>)}
11
+ </span>
12
+ )
13
+ }
@@ -8,11 +8,10 @@ import type { RepoSt } from './repo-st.ts'
8
8
  export const ReadmeView = observer(({ app }: { app: RepoSt }) => {
9
9
  const r = app.readme
10
10
  useEffect(() => { void r.load() }, [r])
11
- if (r.error != null) return <div className="ph"><div className="errs">{r.error}</div>Pick a row on the left.</div>
12
- if (r.md == null) return <div className="ph">{r.loaded ? 'Pick a row on the left.' : ''}</div>
11
+ if (r.error != null) return <div className="ph"><div className="errs">{r.error}</div></div>
12
+ if (r.md == null) return <div className="ph">{r.loaded ? 'this repo has no README' : ''}</div>
13
13
  return (
14
14
  <div className="readme">
15
- <div className="readme-head">{r.file} · pick a row on the left for the rest</div>
16
15
  <div className="md readme-body" dangerouslySetInnerHTML={{ __html: renderReadme(r.md, r.fileUrl) }} />
17
16
  </div>
18
17
  )
@@ -1,11 +1,33 @@
1
1
  /* the README on a repo page with no row picked: a readable column held to the left
2
2
  (the pane centers its child, the auto right margin takes the slack), images at their width */
3
- .readme{width:100%;max-width:860px;margin:0 auto 0 var(--s3);padding:var(--s3) var(--s4)}
4
- .readme-head{color:var(--dim);font-size:11px;margin-bottom:var(--s2)}
3
+ .readme{width:100%;max-width:860px;margin:0 auto 0 var(--s3);padding:var(--s1) var(--s4) var(--s4)}
4
+ .stagewrap:has(> .readme){padding-top:var(--s2)}
5
5
  .readme-body{font-size:13.5px;line-height:1.6}
6
- .readme .readme-body h1{font-size:22px;margin:var(--s3) 0 var(--s2)}
7
- .readme .readme-body h2{font-size:17px;margin:var(--s3) 0 var(--s2);border-bottom:1px solid var(--line);padding-bottom:var(--s1)}
6
+ .readme .readme-body h1{font-size:22px;line-height:1.25;margin:var(--s3) 0 var(--s2)}
7
+ .readme .readme-body > :first-child{margin-top:0}
8
+ .readme .readme-body h2{font-size:17px;margin:var(--s4) 0 var(--s2);border-bottom:1px solid var(--line);padding-bottom:var(--s1)}
8
9
  .readme .readme-body h3{font-size:14px}
10
+ .readme .readme-body table{margin:var(--s3) 0 var(--s4)}
9
11
  .readme-body img{max-width:100%;height:auto;border-radius:4px}
10
12
  .readme-body pre{overflow-x:auto;padding:var(--s2);background:var(--hi3);border-radius:4px}
11
- .readme-body a{color:var(--blue)}
13
+ /* a link reads blue, a code span inside it too, underlined on hover */
14
+ .readme-body a,.readme-body a code{color:var(--blue);text-decoration:none}
15
+ .readme-body a code{border-color:color-mix(in srgb,var(--blue) 40%,var(--line))}
16
+ .readme-body a:hover{text-decoration:underline;text-underline-offset:2px}
17
+ .readme-body a:hover code{background:color-mix(in srgb,var(--blue) 14%,var(--bg))}
18
+
19
+ /* markdown a human copies values out of (md-copy.tsx, an ask): the readme's scale, a value a click copies, a block's
20
+ copy button at its corner. A copy tints what was copied and says so in a toast: no text is added, nothing moves.
21
+ Code reads on the dark panel: a cool tint and a clear border, never the page's own background */
22
+ .md.mdcopyable{font-size:13.5px;line-height:1.6}
23
+ .md.mdcopyable h1{font-size:16px}
24
+ .md.mdcopyable h2{font-size:14.5px;margin-top:var(--s4)}
25
+ .md.mdcopyable table{margin:var(--s2) 0 var(--s3);font-size:13px}
26
+ .md.mdcopyable th,.md.mdcopyable td{padding:var(--s1) var(--s2);vertical-align:middle}
27
+ .md.mdcopyable code{color:var(--ink);background:color-mix(in srgb,var(--accent) 16%,var(--panel));border-color:color-mix(in srgb,var(--accent) 45%,var(--line))}
28
+ .md.mdcopyable :not(pre) > code{font-size:12.5px;padding:var(--s0) var(--s1);cursor:copy;transition:border-color .1s,background .1s}
29
+ .md.mdcopyable :not(pre) > code:hover{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 28%,var(--panel))}
30
+ .md.mdcopyable code.copied,.md.mdcopyable pre.copied{border-color:var(--ok);background:color-mix(in srgb,var(--ok) 22%,var(--panel))}
31
+ .md.mdcopyable pre{position:relative;padding-right:calc(4 * var(--s4));background:color-mix(in srgb,var(--accent) 10%,var(--panel));border-color:color-mix(in srgb,var(--accent) 45%,var(--line));transition:border-color .1s,background .1s}
32
+ .md.mdcopyable pre code{font-size:12.5px;line-height:1.6;background:none;border:0}
33
+ .mdcopy{position:absolute;top:var(--s1);right:var(--s1);height:22px;padding:0 var(--s2);font-size:11.5px}
@@ -0,0 +1,42 @@
1
+ // a repo's reflections page: the friction it logged against the wiki on the left, the one picked on the right, whole
2
+ // (col-list-page.tsx draws both). This file holds what is the reflections' own: the row, the bands' names and the
3
+ // page's words
4
+ import { observer } from 'mobx-react-lite'
5
+ import { reflectionAt, type ReflectionGroupKey } from './col-tables.ts'
6
+ import { ColListPage, type ColListWords } from './col-list-page.tsx'
7
+ import type { Resource } from './hub-types.ts'
8
+ import { Icon, ICON } from './icons.tsx'
9
+ import type { RepoSt } from './repo-st.ts'
10
+ import { ageWords, stampWords } from './time-ago.tsx'
11
+ import { useInSight } from './tree-row.tsx'
12
+
13
+ /** a row of the list, the app's list row: the line whoever logged it wrote, its age at its end in short */
14
+ const ReflectionRow = observer(({ app, r, on }: { app: RepoSt; r: Resource; on: boolean }) => {
15
+ const el = useInSight<HTMLButtonElement>(on)
16
+ const at = reflectionAt(r)
17
+ return (
18
+ <button ref={el} type="button" className={`lrow${on ? ' on' : ''}`} data-k={r.id} aria-current={on ? 'page' : undefined}
19
+ title={[r.title, r.file ?? ''].filter((x) => x !== '').join('\n')} onClick={() => app.reflections.open(r.id)}>
20
+ <Icon d={ICON.reflections} />
21
+ <span className="lgrow">{r.title}</span>
22
+ {at == null ? null : <span className="ldim lnum" title={stampWords(at)}>{ageWords(at, app.clock.now).replace(/ ago$/, '')}</span>}
23
+ </button>
24
+ )
25
+ })
26
+
27
+ const WORDS: ColListWords<ReflectionGroupKey> = {
28
+ search: 'search the reflections',
29
+ nav: 'the reflections of this repo',
30
+ band: { unreadable: 'unreadable', request: 'change requests', note: 'notes' },
31
+ none: 'No reflection.',
32
+ noMatch: 'No reflection matches.',
33
+ reading: 'reading the reflections…',
34
+ nothingShown: () => 'No reflection: this repo logged no friction against the wiki, or every one was folded in.',
35
+ phoneTop: (st) => (st.all.length === 0 ? 'reflections · none' : `reflections · ${st.all.length}`),
36
+ back: '◂ reflections',
37
+ }
38
+ const PANELS = { cols: 'reflections', list: 'reflections-list', shown: 'reflections-one' }
39
+
40
+ export const ReflectionsPage = observer(({ app }: { app: RepoSt }) => (
41
+ <ColListPage app={app} st={app.reflections} words={WORDS} panels={PANELS} row={(r, on) => <ReflectionRow app={app} r={r} on={on} />} />
42
+ ))
@@ -0,0 +1,17 @@
1
+ // the reflections page's list (col-list-st.ts): every reflection of the repo under its band (a file that does not
2
+ // read, the change requests, the notes; the newest first), searched by its title, text and file. The bare page shows
3
+ // the first one
4
+ import { reflectionGroups, type ReflectionGroupKey } from './col-tables.ts'
5
+ import { onList, type ColList } from './col-list-st.ts'
6
+ import type { HashSel } from './hash-route.ts'
7
+
8
+ export const REFLECTIONS = 'reflections'
9
+
10
+ /** the address shows the reflections page: the page itself, or one reflection of it */
11
+ export const onReflections = (sel: HashSel | null): boolean => onList(sel, REFLECTIONS)
12
+
13
+ export const REFLECTION_LIST: ColList<ReflectionGroupKey> = {
14
+ col: REFLECTIONS,
15
+ groups: reflectionGroups,
16
+ words: (r) => [r.title, r.text, r.file ?? '', r.md ?? ''],
17
+ }