rvlib-shipkit 2.29.0 → 2.30.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 (512) hide show
  1. package/CHANGELOG.md +20 -1
  2. package/package.json +2 -1
  3. package/src/advisors/app-graph.ts +1 -1
  4. package/src/advisors/expose.ts +5 -1
  5. package/src/advisors/r2.ts +7 -9
  6. package/src/advisors/routes.ts +29 -2
  7. package/src/advisors/scan.ts +11 -0
  8. package/src/agent-time/accounts-usage.ts +8 -0
  9. package/src/agent-time/claude-sessions.ts +32 -0
  10. package/src/agent-time/hooks.ts +1 -1
  11. package/src/agent-time/live.ts +5 -2
  12. package/src/agent-time/registry.ts +186 -89
  13. package/src/agent-time/store.ts +6 -4
  14. package/src/asks/ask-doc.ts +2 -2
  15. package/src/asks/ask-store.ts +22 -7
  16. package/src/check.ts +9 -1
  17. package/src/checks/SK001-package-json-shape.check.ts +1 -0
  18. package/src/checks/SK003-claude-md-shape.check.ts +1 -0
  19. package/src/checks/SK004-gitignore-policy.check.ts +12 -6
  20. package/src/checks/SK008-reviewer-agent.check.ts +4 -7
  21. package/src/checks/SK013-one-way-in-policy.check.ts +1 -0
  22. package/src/checks/SK017-vscode-hub-task.check.ts +1 -0
  23. package/src/checks/SK024-identity-colors.check.ts +1 -1
  24. package/src/checks/SK027-agent-wiki-links.check.ts +2 -1
  25. package/src/checks/SK033-global-contribution.check.ts +1 -0
  26. package/src/checks/SK034-commit-gates-armed.check.ts +1 -0
  27. package/src/checks/SK039-vscode-watch-generated.check.ts +1 -0
  28. package/src/checks/SK049-thread-answers-hook.check.ts +9 -5
  29. package/src/checks/SK050-retired-commands.check.ts +1 -0
  30. package/src/checks/SK051-no-formatter.check.ts +1 -0
  31. package/src/cli/channel-run.ts +17 -0
  32. package/src/cli/cmd_Advisors.ts +28 -7
  33. package/src/cli/cmd_Asks.ts +2 -2
  34. package/src/cli/cmd_Backup.ts +5 -1
  35. package/src/cli/cmd_CacheAudit.ts +1 -1
  36. package/src/cli/cmd_Channel.ts +43 -0
  37. package/src/cli/cmd_GlobalProcesses.ts +1 -0
  38. package/src/cli/cmd_Home.ts +12 -5
  39. package/src/cli/cmd_Hooks.ts +1 -1
  40. package/src/cli/cmd_Hq.ts +43 -0
  41. package/src/cli/cmd_Lanes.ts +15 -3
  42. package/src/cli/cmd_Media.ts +8 -3
  43. package/src/cli/cmd_Orchestrator.ts +253 -84
  44. package/src/cli/cmd_OrchestratorRole.ts +163 -0
  45. package/src/cli/cmd_Review.ts +142 -165
  46. package/src/cli/cmd_Secret.ts +44 -14
  47. package/src/cli/cmd_Shot.ts +2 -4
  48. package/src/cli/cmd_Sound.ts +1 -0
  49. package/src/cli/cmd_Urls.ts +3 -3
  50. package/src/cli/inbox-hook-run.ts +109 -0
  51. package/src/cli/registry.ts +6 -2
  52. package/src/cli/review-here.ts +136 -0
  53. package/src/cli.ts +45 -14
  54. package/src/collections/actions.ts +5 -4
  55. package/src/collections/checks.ts +5 -0
  56. package/src/collections/collection-types.ts +4 -3
  57. package/src/collections/pings.ts +4 -1
  58. package/src/collections/providers.ts +6 -4
  59. package/src/collections/tests.ts +7 -4
  60. package/src/core/app-icon-frame.ts +62 -0
  61. package/src/core/app-icon.ts +179 -17
  62. package/src/core/archived.ts +10 -7
  63. package/src/core/check-ctx.ts +38 -4
  64. package/src/core/check-pass.ts +7 -0
  65. package/src/core/foreign.ts +87 -0
  66. package/src/core/gui-color.ts +75 -0
  67. package/src/core/hub-theme.ts +1 -3
  68. package/src/core/layout.ts +3 -0
  69. package/src/core/machine-commit.ts +9 -1
  70. package/src/core/one-lib.ts +2 -1
  71. package/src/core/one-way-in-policy.ts +17 -12
  72. package/src/core/owner-word-policy.ts +123 -0
  73. package/src/core/panel-shades.ts +140 -0
  74. package/src/core/repo-gui-color.ts +16 -0
  75. package/src/core/role-policy.ts +17 -0
  76. package/src/core/scope.ts +6 -3
  77. package/src/core/tmux-policy.ts +264 -0
  78. package/src/core/unit-icon.ts +43 -0
  79. package/src/fleet/push-fleet.ts +2 -0
  80. package/src/fleet/scan-fleet.ts +3 -0
  81. package/src/gate/cache-audit.ts +7 -1
  82. package/src/gate/gate-checks.ts +14 -9
  83. package/src/gate/run-fix.ts +30 -5
  84. package/src/gate/run-fixers.ts +8 -3
  85. package/src/home/activity-shape.ts +2 -0
  86. package/src/home/activity.ts +2 -1
  87. package/src/home/daemon-guard.ts +20 -2
  88. package/src/home/daemon-jobs.ts +26 -18
  89. package/src/home/gui-app/ShipkitGui.swift +2012 -144
  90. package/src/home/gui-app/icon.svg +8 -0
  91. package/src/home/gui-app.ts +94 -30
  92. package/src/home/home-routes.ts +53 -9
  93. package/src/home/home-start.ts +27 -3
  94. package/src/home/inbox-shape.ts +7 -3
  95. package/src/home/log-follow.ts +117 -0
  96. package/src/home/machine-fold.ts +1 -1
  97. package/src/home/open-app.ts +9 -3
  98. package/src/home/page-build.ts +5 -1
  99. package/src/home/page-held.ts +1 -1
  100. package/src/home/pm-config.ts +0 -8
  101. package/src/home/pm.ts +62 -5
  102. package/src/home/process-apps.ts +70 -23
  103. package/src/home/process-rows.ts +16 -1
  104. package/src/home/push-sources.ts +18 -13
  105. package/src/home/resources.ts +16 -7
  106. package/src/home/run-daemon.ts +4 -1
  107. package/src/home/run-pm.ts +1 -1
  108. package/src/home/serve-daemon.ts +13 -4
  109. package/src/home/serve-web.ts +141 -17
  110. package/src/home/space-page.ts +3 -3
  111. package/src/home/space-route.ts +2 -2
  112. package/src/home/supervise.ts +2 -1
  113. package/src/home/vault-page.ts +2 -1
  114. package/src/home/web-places.ts +239 -0
  115. package/src/home/widgets.ts +16 -2
  116. package/src/hooks/commit-message.ts +11 -9
  117. package/src/hooks/one-way-in-guard.ts +145 -68
  118. package/src/hooks/run-hooks.ts +15 -5
  119. package/src/hooks/shared-file.ts +273 -83
  120. package/src/hooks/shell-writes.ts +620 -0
  121. package/src/hooks/write-log.ts +149 -0
  122. package/src/hq/door-route.ts +63 -7
  123. package/src/hq/door.ts +45 -12
  124. package/src/hq/history-send.ts +3 -1
  125. package/src/hq/hq-db.ts +10 -3
  126. package/src/hq/hq-local.ts +24 -5
  127. package/src/hq/hq-routes.ts +3 -1
  128. package/src/hq/hq-store.ts +9 -3
  129. package/src/hq/kinds/index.ts +2 -1
  130. package/src/hq/kinds/kind.ts +9 -4
  131. package/src/hq/kinds/presence-rule.ts +56 -0
  132. package/src/hq/kinds/presence.ts +210 -0
  133. package/src/hq/kinds/report.ts +8 -5
  134. package/src/hq/lead-order.ts +68 -0
  135. package/src/hq/outbox.ts +7 -0
  136. package/src/hq/replica.ts +5 -7
  137. package/src/hq/report-facts.ts +14 -7
  138. package/src/hq/report.ts +47 -2
  139. package/src/hq/switch.ts +1 -0
  140. package/src/hq/terminal-hop.ts +64 -0
  141. package/src/hq/thread-sync.ts +13 -6
  142. package/src/http/door-forward.ts +10 -12
  143. package/src/http/door-names.ts +9 -0
  144. package/src/http/hop-caller.ts +23 -0
  145. package/src/http/hop-names.ts +14 -0
  146. package/src/http/loopback-serve.ts +28 -6
  147. package/src/http/owner-word.ts +128 -0
  148. package/src/http/same-origin.ts +12 -0
  149. package/src/{serve → http}/secret-gate.ts +3 -3
  150. package/src/ledger/run-log.ts +25 -1
  151. package/src/media-store/backup/sources.ts +53 -6
  152. package/src/media-store/backup/thread-copy.ts +9 -5
  153. package/src/media-store/copy/config.ts +10 -9
  154. package/src/media-store/daemon.ts +5 -2
  155. package/src/media-store/put.ts +3 -0
  156. package/src/media-store/space.ts +14 -16
  157. package/src/media-store/upload.ts +4 -0
  158. package/src/messages/collection.ts +2 -2
  159. package/src/messages/model.ts +6 -1
  160. package/src/messages/routes.ts +3 -0
  161. package/src/orchestrator/brief.md +8 -6
  162. package/src/orchestrator/channel-declare.ts +58 -0
  163. package/src/orchestrator/channel.ts +226 -0
  164. package/src/orchestrator/guards.ts +12 -3
  165. package/src/orchestrator/host.ts +35 -0
  166. package/src/orchestrator/lead-shape.ts +86 -0
  167. package/src/orchestrator/now.ts +88 -0
  168. package/src/orchestrator/phone.ts +4 -1
  169. package/src/orchestrator/places-file.ts +38 -0
  170. package/src/orchestrator/places-look.ts +180 -0
  171. package/src/orchestrator/places-shape.ts +151 -0
  172. package/src/orchestrator/places.ts +50 -0
  173. package/src/orchestrator/presence-shape.ts +13 -2
  174. package/src/orchestrator/presence.ts +26 -15
  175. package/src/orchestrator/push.ts +5 -10
  176. package/src/orchestrator/role-shape.ts +270 -0
  177. package/src/orchestrator/role.ts +242 -0
  178. package/src/orchestrator/routes.ts +136 -31
  179. package/src/orchestrator/sessions-shape.ts +78 -0
  180. package/src/orchestrator/sessions.ts +86 -0
  181. package/src/orchestrator/share.ts +71 -0
  182. package/src/orchestrator/start-notice.ts +61 -0
  183. package/src/orchestrator/start.ts +137 -0
  184. package/src/orchestrator/started.ts +55 -0
  185. package/src/orchestrator/stuck.ts +196 -0
  186. package/src/orchestrator/unheard.ts +18 -7
  187. package/src/pages/frame-client.ts +44 -6
  188. package/src/problems/failure-words.ts +80 -0
  189. package/src/release/run-bump.ts +26 -5
  190. package/src/release/run-release.ts +34 -14
  191. package/src/repo-config.ts +37 -9
  192. package/src/review/aside-at.ts +19 -0
  193. package/src/review/band.ts +3 -3
  194. package/src/review/doc-save.ts +1 -1
  195. package/src/review/inbox-hook.ts +12 -4
  196. package/src/review/inbox-read.ts +20 -7
  197. package/src/review/instruction-guards.ts +137 -0
  198. package/src/review/instructions.ts +14 -2
  199. package/src/review/item-db.ts +52 -2
  200. package/src/review/mentions.ts +6 -4
  201. package/src/review/model.ts +3 -2
  202. package/src/review/parties.ts +88 -19
  203. package/src/review/push.ts +32 -15
  204. package/src/review/routes.ts +12 -4
  205. package/src/review/secret-route.ts +5 -5
  206. package/src/review/snooze.ts +1 -16
  207. package/src/review/store-parties.ts +4 -2
  208. package/src/review/take-back.ts +2 -1
  209. package/src/review/threads.ts +13 -2
  210. package/src/review/unit.ts +3 -2
  211. package/src/review/view-layout.ts +8 -1
  212. package/src/review/watchers.ts +25 -4
  213. package/src/secrets/key-pair.ts +14 -0
  214. package/src/secrets/lapse.ts +3 -3
  215. package/src/secrets/manager.ts +5 -1
  216. package/src/secrets/name-template.ts +83 -0
  217. package/src/secrets/name.ts +3 -0
  218. package/src/secrets/read.ts +10 -6
  219. package/src/secrets/secrets-view.ts +299 -0
  220. package/src/secrets/who-reads.ts +2 -1
  221. package/src/serve/frame-part.ts +49 -0
  222. package/src/serve/hub-app/accounts-line.tsx +33 -45
  223. package/src/serve/hub-app/activity-st.ts +6 -5
  224. package/src/serve/hub-app/activity-view.tsx +10 -9
  225. package/src/serve/hub-app/advice-box.tsx +6 -5
  226. package/src/serve/hub-app/advisor-app.tsx +2 -0
  227. package/src/serve/hub-app/advisor-face.tsx +3 -2
  228. package/src/serve/hub-app/advisor.html +1 -0
  229. package/src/serve/hub-app/advisors-view.tsx +52 -10
  230. package/src/serve/hub-app/advisors.css +4 -0
  231. package/src/serve/hub-app/app-bridge.ts +31 -5
  232. package/src/serve/hub-app/asked-page.ts +24 -0
  233. package/src/serve/hub-app/asks-page.tsx +10 -6
  234. package/src/serve/hub-app/auto-text.tsx +7 -5
  235. package/src/serve/hub-app/card-head.tsx +3 -2
  236. package/src/serve/hub-app/check-view.tsx +10 -9
  237. package/src/serve/hub-app/checks-svc.ts +96 -32
  238. package/src/serve/hub-app/clock-svc.ts +24 -8
  239. package/src/serve/hub-app/code-copy.ts +1 -1
  240. package/src/serve/hub-app/col-card.tsx +2 -1
  241. package/src/serve/hub-app/col-list-page.tsx +12 -6
  242. package/src/serve/hub-app/col-list-st.ts +12 -2
  243. package/src/serve/hub-app/col-tables-view.tsx +8 -44
  244. package/src/serve/hub-app/col-tables.ts +0 -14
  245. package/src/serve/hub-app/cols-svc.ts +6 -12
  246. package/src/serve/hub-app/columns.ts +94 -0
  247. package/src/serve/hub-app/comfy-view.tsx +8 -7
  248. package/src/serve/hub-app/commands/commands-page.tsx +4 -3
  249. package/src/serve/hub-app/commands/commands-st.ts +2 -2
  250. package/src/serve/hub-app/controls.css +69 -23
  251. package/src/serve/hub-app/cycle-button.tsx +2 -1
  252. package/src/serve/hub-app/database-st.ts +1 -1
  253. package/src/serve/hub-app/database-view.tsx +4 -2
  254. package/src/serve/hub-app/deaf.tsx +27 -0
  255. package/src/serve/hub-app/dock-st.ts +21 -16
  256. package/src/serve/hub-app/dock-view.tsx +19 -12
  257. package/src/serve/hub-app/empty-section.tsx +30 -0
  258. package/src/serve/hub-app/entry-bar.css +1 -1
  259. package/src/serve/hub-app/entry-bar.tsx +11 -6
  260. package/src/serve/hub-app/entry-list.css +32 -0
  261. package/src/serve/hub-app/entry-list.tsx +123 -0
  262. package/src/serve/hub-app/entry-pick.ts +1 -1
  263. package/src/serve/hub-app/entry-sections.ts +140 -0
  264. package/src/serve/hub-app/event-stream-reader.ts +56 -0
  265. package/src/serve/hub-app/floating.tsx +68 -14
  266. package/src/serve/hub-app/geometry-view.tsx +3 -2
  267. package/src/serve/hub-app/git-view.tsx +3 -2
  268. package/src/serve/hub-app/hash-route.ts +14 -2
  269. package/src/serve/hub-app/header-bar.tsx +53 -36
  270. package/src/serve/hub-app/home-st.ts +131 -14
  271. package/src/serve/hub-app/home-strip.css +24 -13
  272. package/src/serve/hub-app/home-strip.tsx +131 -66
  273. package/src/serve/hub-app/home.html +5 -0
  274. package/src/serve/hub-app/hub-app.tsx +94 -102
  275. package/src/serve/hub-app/hub.css +61 -94
  276. package/src/serve/hub-app/icons.tsx +16 -0
  277. package/src/serve/hub-app/identities-st.ts +19 -54
  278. package/src/serve/hub-app/identities-view.tsx +25 -24
  279. package/src/serve/hub-app/identity-address.ts +2 -2
  280. package/src/serve/hub-app/in-sight.ts +10 -0
  281. package/src/serve/hub-app/inbox-st.ts +20 -2
  282. package/src/serve/hub-app/inbox-view.tsx +16 -9
  283. package/src/serve/hub-app/inbox.css +1 -0
  284. package/src/serve/hub-app/index.html +5 -0
  285. package/src/serve/hub-app/insights-view.tsx +6 -5
  286. package/src/serve/hub-app/instructions.css +4 -1
  287. package/src/serve/hub-app/kept-cols.tsx +83 -20
  288. package/src/serve/hub-app/kept-width.tsx +76 -0
  289. package/src/serve/hub-app/keys.ts +116 -38
  290. package/src/serve/hub-app/layout-st.ts +109 -99
  291. package/src/serve/hub-app/lightbox-zoom.css +36 -0
  292. package/src/serve/hub-app/list-filter.tsx +15 -6
  293. package/src/serve/hub-app/list-head.tsx +29 -0
  294. package/src/serve/hub-app/list-row.ts +8 -0
  295. package/src/serve/hub-app/list-walk.ts +26 -105
  296. package/src/serve/hub-app/live-socket.ts +274 -0
  297. package/src/serve/hub-app/live-sources.ts +189 -0
  298. package/src/serve/hub-app/live-svc.ts +2 -2
  299. package/src/serve/hub-app/machine-st.ts +75 -14
  300. package/src/serve/hub-app/main-panel.css +211 -0
  301. package/src/serve/hub-app/main-panel.tsx +259 -0
  302. package/src/serve/hub-app/md.ts +4 -4
  303. package/src/serve/hub-app/media-svc.ts +5 -5
  304. package/src/serve/hub-app/media-view.tsx +13 -12
  305. package/src/serve/hub-app/messages/messages-page.tsx +8 -7
  306. package/src/serve/hub-app/messages/messages-st.ts +5 -2
  307. package/src/serve/hub-app/new-thread-st.ts +170 -0
  308. package/src/serve/hub-app/new-thread.tsx +133 -107
  309. package/src/serve/hub-app/orchestrator-line.tsx +115 -45
  310. package/src/serve/hub-app/orchestrator-places.tsx +86 -0
  311. package/src/serve/hub-app/orchestrator.css +57 -5
  312. package/src/serve/hub-app/page-keys.ts +107 -68
  313. package/src/serve/hub-app/page-reload.ts +46 -6
  314. package/src/serve/hub-app/pages-frames.tsx +40 -3
  315. package/src/serve/hub-app/pages-svc.ts +3 -1
  316. package/src/serve/hub-app/palette-st.ts +198 -43
  317. package/src/serve/hub-app/palette-view.tsx +32 -8
  318. package/src/serve/hub-app/panel-head-action.tsx +39 -0
  319. package/src/serve/hub-app/panel-head.tsx +70 -0
  320. package/src/serve/hub-app/panel-repo.ts +42 -0
  321. package/src/serve/hub-app/panel-source.ts +195 -0
  322. package/src/serve/hub-app/panel-tint.css +6 -0
  323. package/src/serve/hub-app/panel-tint.ts +23 -0
  324. package/src/serve/hub-app/panel-walk.ts +107 -0
  325. package/src/serve/hub-app/pill-row.tsx +2 -1
  326. package/src/serve/hub-app/place-path.ts +4 -0
  327. package/src/serve/hub-app/places-svc.ts +75 -0
  328. package/src/serve/hub-app/plan-view.tsx +3 -2
  329. package/src/serve/hub-app/polled.ts +11 -1
  330. package/src/serve/hub-app/presence-st.ts +66 -32
  331. package/src/serve/hub-app/processes-view.tsx +2 -2
  332. package/src/serve/hub-app/project-bar.tsx +116 -0
  333. package/src/serve/hub-app/project-list.css +20 -173
  334. package/src/serve/hub-app/project-list.tsx +30 -298
  335. package/src/serve/hub-app/projects-svc.ts +59 -32
  336. package/src/serve/hub-app/push-sign.tsx +2 -1
  337. package/src/serve/hub-app/push-svc.ts +86 -69
  338. package/src/serve/hub-app/quiet-st.ts +5 -3
  339. package/src/serve/hub-app/rail-groups.ts +144 -0
  340. package/src/serve/hub-app/reader-chips.tsx +2 -1
  341. package/src/serve/hub-app/recordings-st.ts +2 -1
  342. package/src/serve/hub-app/recordings-view.tsx +19 -47
  343. package/src/serve/hub-app/recordings.css +0 -2
  344. package/src/serve/hub-app/reflections-page.tsx +10 -6
  345. package/src/serve/hub-app/releases/releases-page.tsx +6 -5
  346. package/src/serve/hub-app/repo-sections.ts +127 -38
  347. package/src/serve/hub-app/repo-st.ts +57 -36
  348. package/src/serve/hub-app/review/advisor-bar.tsx +3 -2
  349. package/src/serve/hub-app/review/ask-proof.tsx +79 -0
  350. package/src/serve/hub-app/review/attach-view.tsx +11 -10
  351. package/src/serve/hub-app/review/box-view.ts +479 -0
  352. package/src/serve/hub-app/review/box-zoom.tsx +70 -0
  353. package/src/serve/hub-app/review/diff-view.tsx +3 -2
  354. package/src/serve/hub-app/review/doc-body.tsx +2 -1
  355. package/src/serve/hub-app/review/dock.tsx +3 -2
  356. package/src/serve/hub-app/review/draft-body.tsx +4 -3
  357. package/src/serve/hub-app/review/faces.tsx +0 -8
  358. package/src/serve/hub-app/review/group-block.tsx +8 -7
  359. package/src/serve/hub-app/review/heard-line.tsx +4 -3
  360. package/src/serve/hub-app/review/instructions-view.tsx +3 -2
  361. package/src/serve/hub-app/review/item-verdict.tsx +40 -40
  362. package/src/serve/hub-app/review/kind-states.tsx +5 -4
  363. package/src/serve/hub-app/review/kit.tsx +24 -4
  364. package/src/serve/hub-app/review/lane-bar.tsx +30 -28
  365. package/src/serve/hub-app/review/lightbox.tsx +6 -4
  366. package/src/serve/hub-app/review/live-bar.tsx +7 -6
  367. package/src/serve/hub-app/review/live-view.tsx +6 -5
  368. package/src/serve/hub-app/review/object-card.tsx +2 -1
  369. package/src/serve/hub-app/review/object-panel.tsx +11 -10
  370. package/src/serve/hub-app/review/pano-view.tsx +3 -2
  371. package/src/serve/hub-app/review/question-views.tsx +6 -5
  372. package/src/serve/hub-app/review/review-cells.tsx +21 -20
  373. package/src/serve/hub-app/review/review-host.ts +3 -0
  374. package/src/serve/hub-app/review/review-kit.ts +7 -5
  375. package/src/serve/hub-app/review/review-list.tsx +98 -52
  376. package/src/serve/hub-app/review/review-page.tsx +3 -3
  377. package/src/serve/hub-app/review/review-st.ts +70 -14
  378. package/src/serve/hub-app/review/review-thread.tsx +234 -138
  379. package/src/serve/hub-app/review/review-views.tsx +166 -191
  380. package/src/serve/hub-app/review/space3d.tsx +17 -9
  381. package/src/serve/hub-app/review/thread-close.tsx +24 -32
  382. package/src/serve/hub-app/review/thread-st.ts +39 -25
  383. package/src/serve/hub-app/review/trailer-body.tsx +5 -4
  384. package/src/serve/hub-app/review/trailer-page.tsx +18 -16
  385. package/src/serve/hub-app/review/trailer-st.ts +3 -2
  386. package/src/serve/hub-app/review/trailer-timeline.tsx +10 -9
  387. package/src/serve/hub-app/review/trailer-voices.tsx +29 -28
  388. package/src/serve/hub-app/review.css +159 -42
  389. package/src/serve/hub-app/row-acts.tsx +126 -0
  390. package/src/serve/hub-app/row-face.tsx +29 -0
  391. package/src/serve/hub-app/running-rows.tsx +142 -0
  392. package/src/serve/hub-app/running-st.ts +110 -0
  393. package/src/serve/hub-app/search-view.tsx +3 -2
  394. package/src/serve/hub-app/secrets-page.tsx +290 -0
  395. package/src/serve/hub-app/secrets-st.ts +181 -0
  396. package/src/serve/hub-app/secrets.css +65 -0
  397. package/src/serve/hub-app/section-head.tsx +3 -2
  398. package/src/serve/hub-app/session-chips.tsx +55 -0
  399. package/src/serve/hub-app/shell.ts +56 -0
  400. package/src/serve/hub-app/site/site-part.tsx +6 -5
  401. package/src/serve/hub-app/site/site-st.ts +0 -6
  402. package/src/serve/hub-app/site.css +0 -1
  403. package/src/serve/hub-app/social/calendar.tsx +7 -6
  404. package/src/serve/hub-app/social/comms-page.tsx +29 -26
  405. package/src/serve/hub-app/social/group-editor.tsx +2 -1
  406. package/src/serve/hub-app/social/kit.tsx +12 -11
  407. package/src/serve/hub-app/social/next-release.tsx +3 -2
  408. package/src/serve/hub-app/social/post-card.tsx +21 -20
  409. package/src/serve/hub-app/social/post-page.tsx +2 -1
  410. package/src/serve/hub-app/social/problems.tsx +3 -2
  411. package/src/serve/hub-app/social/social-page.tsx +29 -27
  412. package/src/serve/hub-app/social/social-st.ts +4 -2
  413. package/src/serve/hub-app/social/stage-popup.tsx +11 -10
  414. package/src/serve/hub-app/social.css +7 -5
  415. package/src/serve/hub-app/source-acts.ts +79 -0
  416. package/src/serve/hub-app/source-page.tsx +17 -0
  417. package/src/serve/hub-app/space-view.tsx +5 -4
  418. package/src/serve/hub-app/stores/stores-page.tsx +21 -19
  419. package/src/serve/hub-app/stores/stores-st.ts +1 -1
  420. package/src/serve/hub-app/stores.css +1 -1
  421. package/src/serve/hub-app/terminal-history-st.ts +112 -0
  422. package/src/serve/hub-app/terminal-keys.ts +79 -0
  423. package/src/serve/hub-app/terminal-lib.ts +110 -0
  424. package/src/serve/hub-app/terminal-links.ts +55 -0
  425. package/src/serve/hub-app/terminal-list-st.ts +304 -0
  426. package/src/serve/hub-app/terminal-log-st.ts +242 -0
  427. package/src/serve/hub-app/terminal-out.ts +135 -0
  428. package/src/serve/hub-app/terminal-pages.tsx +115 -0
  429. package/src/serve/hub-app/terminal-panel.tsx +60 -9
  430. package/src/serve/hub-app/terminal-sources.tsx +335 -0
  431. package/src/serve/hub-app/terminal-st.ts +447 -167
  432. package/src/serve/hub-app/terminal-stream.ts +233 -0
  433. package/src/serve/hub-app/terminal-tab.tsx +64 -0
  434. package/src/serve/hub-app/terminal-widths.ts +30 -0
  435. package/src/serve/hub-app/terminal.css +50 -4
  436. package/src/serve/hub-app/test-view.tsx +5 -3
  437. package/src/serve/hub-app/tests-view.tsx +16 -15
  438. package/src/serve/hub-app/theme-st.ts +5 -0
  439. package/src/serve/hub-app/thread-row.tsx +39 -31
  440. package/src/serve/hub-app/time-ago.tsx +3 -2
  441. package/src/serve/hub-app/time-view.tsx +2 -1
  442. package/src/serve/hub-app/time.css +1 -1
  443. package/src/serve/hub-app/timeline-chart.tsx +5 -4
  444. package/src/serve/hub-app/timeline-view.tsx +10 -9
  445. package/src/serve/hub-app/tips.ts +247 -0
  446. package/src/serve/hub-app/tree-build.ts +40 -8
  447. package/src/serve/hub-app/tree-svc.ts +167 -134
  448. package/src/serve/hub-app/unit-icons.ts +26 -0
  449. package/src/serve/hub-app/url-address.ts +154 -0
  450. package/src/serve/hub-app/url-faces.ts +88 -0
  451. package/src/serve/hub-app/url-forms.tsx +183 -0
  452. package/src/serve/hub-app/urls-svc.ts +167 -5
  453. package/src/serve/hub-app/urls-view.tsx +56 -20
  454. package/src/serve/hub-app/urls.css +26 -0
  455. package/src/serve/hub-app/vault-view.tsx +5 -4
  456. package/src/serve/hub-app/veille/veille-page.tsx +34 -33
  457. package/src/serve/hub-app/veille/veille-st.ts +6 -3
  458. package/src/serve/hub-app/view-layout.css +3 -3
  459. package/src/serve/hub-app/when-view.tsx +5 -4
  460. package/src/serve/hub-app/wikis-view.tsx +6 -5
  461. package/src/serve/hub-app/words.tsx +9 -2
  462. package/src/serve/hub-runtime.ts +3 -2
  463. package/src/serve/orchestrator-host.ts +58 -0
  464. package/src/serve/page-live.ts +147 -0
  465. package/src/serve/project-gutter-route.ts +63 -2
  466. package/src/serve/read-worker.ts +7 -2
  467. package/src/serve/runs-stamp.ts +33 -0
  468. package/src/serve/secrets-read.ts +156 -0
  469. package/src/serve/serve-hub.ts +71 -22
  470. package/src/serve/terminal-claudes.ts +185 -0
  471. package/src/serve/terminal-guard.ts +10 -5
  472. package/src/serve/terminal-host.ts +517 -0
  473. package/src/serve/terminal-record.ts +104 -0
  474. package/src/serve/terminal-route.ts +466 -103
  475. package/src/serve/terminal-shells.ts +3 -0
  476. package/src/serve/terminal-watch.ts +102 -0
  477. package/src/shipkit-files.ts +9 -4
  478. package/src/shot/client.ts +4 -9
  479. package/src/shot/shooter.ts +2 -4
  480. package/src/shot/shot-ask.ts +2 -7
  481. package/src/shot/shot-theme.ts +6 -17
  482. package/src/social/routes.ts +2 -2
  483. package/src/social/writes.ts +3 -0
  484. package/src/suite/test-units.ts +6 -2
  485. package/src/trailer/sound/eleven.ts +1 -0
  486. package/src/urls/added.ts +111 -0
  487. package/src/urls/icons.ts +294 -0
  488. package/src/urls/places.ts +139 -0
  489. package/src/urls/routes.ts +17 -7
  490. package/src/urls/rows.ts +48 -15
  491. package/src/urls/unit.ts +57 -3
  492. package/src/urls/write-routes.ts +207 -0
  493. package/src/vault/vault-destroy.ts +2 -1
  494. package/src/vault/vault-import.ts +4 -11
  495. package/src/vault/vault-restore.ts +3 -2
  496. package/src/veille/chrome.ts +18 -3
  497. package/src/veille/identity.ts +6 -0
  498. package/src/view3d/cam.ts +30 -46
  499. package/src/view3d/lib.ts +20 -2
  500. package/src/view3d/viewer.ts +62 -88
  501. package/src/wiki/agent-paths.ts +2 -1
  502. package/src/orchestrator/deliver.ts +0 -81
  503. package/src/orchestrator/drill.ts +0 -129
  504. package/src/orchestrator/keeper.ts +0 -332
  505. package/src/orchestrator/pm.ts +0 -20
  506. package/src/orchestrator/state.ts +0 -92
  507. package/src/orchestrator/switch.ts +0 -86
  508. package/src/orchestrator/tmux.ts +0 -82
  509. package/src/serve/hub-app/rail-fly.tsx +0 -95
  510. package/src/serve/hub-app/side-lists.ts +0 -72
  511. package/src/serve/hub-app/sidebar.tsx +0 -62
  512. package/src/serve/hub-app/tree-row.tsx +0 -125
@@ -5,6 +5,7 @@ import { observer } from 'mobx-react-lite'
5
5
  import { useEffect } from 'react'
6
6
  import type { ComfySvc } from './comfy-svc.ts'
7
7
  import type { RepoSt } from './repo-st.ts'
8
+ import { tip } from './tips.ts'
8
9
 
9
10
  const PANEL_CHIP: Record<ComfySvc['state'], { label: string; cls: string; title: string }> = {
10
11
  idle: { label: 'idle', cls: '', title: 'nothing started yet' },
@@ -26,13 +27,13 @@ export const ComfyOverlay = observer(({ app }: { app: RepoSt }) => {
26
27
  <div className="cfbox" onClick={(e) => e.stopPropagation()}>
27
28
  <div className="gvhead">
28
29
  <span className="gvtext">{c.live?.module ?? ''}{c.live != null ? ` · ${c.live.draft}` : ''}</span>
29
- <span className={`stchip ${chip.cls}`} title={chip.title}>{chip.label}</span>
30
+ <span className={`stchip ${chip.cls}`} {...tip(chip.title)}>{chip.label}</span>
30
31
  {box != null ? (
31
- <span className={`stchip ${box.up ? 'ok' : 'miss'}`} title={box.err ?? box.url}>
32
+ <span className={`stchip ${box.up ? 'ok' : 'miss'}`} {...tip(box.err ?? box.url)}>
32
33
  {box.up ? 'box up' : `box unreachable — ${box.url}`}
33
34
  </span>
34
35
  ) : null}
35
- <button className="ghost" title="restart the panel process — the only way an edited .cflow.ts module reaches it"
36
+ <button className="ghost" {...tip('restart the panel process: the only way an edited .cflow.ts module reaches it')}
36
37
  onClick={() => void c.restart()}>restart panel</button>
37
38
  <button className="ghost" onClick={() => c.closeOverlay()}>close</button>
38
39
  </div>
@@ -59,14 +60,14 @@ export const ComfyView = observer(({ app, id }: { app: RepoSt; id: string }) =>
59
60
  <div className="comfyview">
60
61
  <div className="gvhead">
61
62
  <span className="gvtext">{c.live?.module ?? wf}{c.live != null ? ` · ${c.live.draft}` : ''}</span>
62
- <span className={`stchip ${chip.cls}`} title={chip.title}>{chip.label}</span>
63
+ <span className={`stchip ${chip.cls}`} {...tip(chip.title)}>{chip.label}</span>
63
64
  {box != null ? (
64
- <span className={`stchip ${box.up ? 'ok' : 'miss'}`} title={box.err ?? box.url}>
65
+ <span className={`stchip ${box.up ? 'ok' : 'miss'}`} {...tip(box.err ?? box.url)}>
65
66
  {box.up ? 'box up' : `box unreachable — ${box.url}`}
66
67
  </span>
67
68
  ) : null}
68
- <button className="ghost" title="re-probe the box" onClick={() => void c.probeBox()}>↻</button>
69
- <button className="ghost" title="restart the panel process — the only way an edited .cflow.ts module reaches it"
69
+ <button className="ghost" {...tip('re-probe the box')} onClick={() => void c.probeBox()}>↻</button>
70
+ <button className="ghost" {...tip('restart the panel process: the only way an edited .cflow.ts module reaches it')}
70
71
  onClick={() => void c.restart()}>restart panel</button>
71
72
  </div>
72
73
  {c.err !== '' ? <div className="err">✗ {c.err}</div> : null}
@@ -7,6 +7,7 @@ import type { CommandRow } from '../../../cli/cmd_Commands.ts'
7
7
  import { exampleArgs, type RunView } from '../../../commands/model.ts'
8
8
  import type { RepoSt } from '../repo-st.ts'
9
9
  import type { CommandsSt } from './commands-st.ts'
10
+ import { tip } from '../tips.ts'
10
11
 
11
12
  /** a run's length as he reads it: 4.2 s, 73 s, 3 min 12 s */
12
13
  export const fmtDur = (ms: number): string => {
@@ -24,7 +25,7 @@ const RunLine = observer(({ app, r }: { app: RepoSt; r: RunView }) => {
24
25
  const c = app.commands
25
26
  const took = r.exit != null ? fmtDur(r.exit.finishedAt - r.startedAt) : r.state === 'running' ? fmtDur(app.clock.now - r.startedAt) : ''
26
27
  return (
27
- <button className={`cmdrunline${c.runId === r.id ? ' on' : ''}`} onClick={() => app.showCommands(r.path, r.id)} title={new Date(r.startedAt).toLocaleString()}>
28
+ <button className={`cmdrunline${c.runId === r.id ? ' on' : ''}`} onClick={() => app.showCommands(r.path, r.id)} {...tip(new Date(r.startedAt).toLocaleString())}>
28
29
  <span className={`tl ${runTone(r)}`}>{r.state === 'running' ? '●' : r.exit?.code === 0 ? '✓' : '✗'}</span>
29
30
  <code>{r.line}</code>
30
31
  <span className="dim">{r.exit != null ? `exit ${r.exit.code}` : STATE_WORD[r.state]}{took ? `, ${took}` : ''}{r.reach === 'tailnet' ? ', from another device' : ''}</span>
@@ -45,7 +46,7 @@ const CommandCard = observer(({ app, row }: { app: RepoSt; row: CommandRow }) =>
45
46
  const a = exampleArgs(c.bin, row.path, line)
46
47
  return (
47
48
  <div key={line} className="cmdex">
48
- <button className="primary" disabled={a == null || c.starting} title={a == null ? 'an example of another command' : `run ${line}`} onClick={() => a != null && void c.runIt(row, a)}>▶</button>
49
+ <button className="primary" disabled={a == null || c.starting} {...tip(a == null ? 'an example of another command' : `run ${line}`)} onClick={() => a != null && void c.runIt(row, a)}>▶</button>
49
50
  <code>{line}</code>
50
51
  <span className="dim">{label}</span>
51
52
  </div>
@@ -109,7 +110,7 @@ export const CommandsPage = observer(({ app }: { app: RepoSt }) => {
109
110
  <div className="usays">the project CLI, run from here: a command that acts beyond this machine, and any run from another device, asks first</div>
110
111
  {c.error !== '' ? <div className="warnline">{c.error}</div> : null}
111
112
  {c.view == null && c.error === '' ? <div className="dim twait"><span className="spin" />reading the commands…</div> : null}
112
- {row != null ? <CommandCard app={app} row={row} /> : c.rows.length > 0 ? <div className="dim">{c.rows.length} commands: pick one in the tree, under commands</div> : null}
113
+ {row != null ? <CommandCard app={app} row={row} /> : c.rows.length > 0 ? <div className="dim">{c.rows.length} commands: pick one in the list</div> : null}
113
114
  <LogPane app={app} c={c} />
114
115
  {runs.length > 0 ? (
115
116
  <section className="csec">
@@ -5,7 +5,7 @@
5
5
  import { makeAutoObservable, observableRef, runInAction } from 'mobx'
6
6
  import type { CommandRow } from '../../../cli/cmd_Commands.ts'
7
7
  import { type CommandsView, confirmWhy, type LogView, type RunView } from '../../../commands/model.ts'
8
- import { PolledResource } from '../polled.ts'
8
+ import { hidden, PolledResource } from '../polled.ts'
9
9
  import { ownTrouble, reach } from '../reach.ts'
10
10
  import type { RepoSt } from '../repo-st.ts'
11
11
 
@@ -114,7 +114,7 @@ export class CommandsSt {
114
114
  if (this.timer != null) return
115
115
  try { this.drafts = JSON.parse(localStorage.getItem(draftsKey(this.st.key)) ?? '{}') as Record<string, string> } catch { this.drafts = {} }
116
116
  void this.res.start().then(() => this.tail())
117
- this.timer = setInterval(() => { if (this.run?.state === 'running') void this.tail() }, TAIL_MS)
117
+ this.timer = setInterval(() => { if (this.run?.state === 'running' && !hidden()) void this.tail() }, TAIL_MS)
118
118
  }
119
119
 
120
120
  stop(): void {
@@ -57,48 +57,91 @@ button.sh:focus-visible{outline:1px solid var(--accent);outline-offset:-1px}
57
57
  .chn{flex:none;color:var(--dim);font-variant-numeric:tabular-nums}
58
58
  .chm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--dim);font-size:12px}
59
59
  .ch > :not(.chf):not(.chl):not(.chn):not(.chm){flex:none}
60
+ /* THE head of a list panel (list-head.tsx): its title (.ch, at the list's own gutter), then what stands in its rows,
61
+ one figure a state in its colour (.tg tones), wrapping in a narrow column and giving up its words under 200px, then
62
+ its search (.rv-filters) */
63
+ .lhead > .ch{min-height:30px;padding:var(--s1) var(--s2) 0}
64
+ .lhsum{display:flex;flex-wrap:wrap;gap:var(--s0) var(--s2);padding:0 var(--s2) var(--s1);font-size:11px;line-height:16px;font-variant-numeric:tabular-nums;color:var(--dim)}
65
+ .lhs{display:inline-flex;align-items:baseline;gap:var(--s0);white-space:nowrap}
66
+ .lhs .tg{font-size:11px;font-style:normal}
67
+ .lhs b{font-weight:600;color:var(--ink)}
68
+ .lhs.red b{color:var(--red)}
69
+ .lhs.warn b{color:var(--warn)}
70
+ @container (max-width:200px){.lhs .lhw{display:none}}
60
71
  /* THE thread row of every list (thread-row.tsx), its look here and nowhere else. A row with a verb of his (.waiting)
61
- keeps full contrast, one with none (.idle) reads dim, one he validated (.validated) a quiet green. A fixed 20px lead
62
- slot first (its picture, else the icon of what waits on him, else the green check), so every title starts on one x;
63
- the unread dot sits in the gutter left of it. Two lines by default: the title, the muted meta under it. `.one` in a
64
- list at least 320px wide (the title keeps about 30 characters): one line, the title cut with an ellipsis, at the
65
- right only the pill, the verb glyph and the age, the holder's light on hover (the rest in the title's tooltip).
72
+ keeps full contrast, one with none (.idle) reads dim, one he validated (.validated) a quiet green. The title starts
73
+ at the row's padding: no lead column, every title on one x. At the right the list panel's own token (--s2); at the
74
+ left the gutter (--s3), which holds the selection bar and, on the title's first line, the unread dot, 5px in so the
75
+ pointer on it is clear of the column's resize handle. Two lines by default: the title (two lines
76
+ at most), ONE muted meta line under it that never wraps (the holder's name gives way first). `.one` in a list at
77
+ least 320px wide (the title keeps about 30 characters): one line, the title cut with an ellipsis, at the right only
78
+ the pill, the still, the verb glyph and the age, the holder's light on hover (the rest in the title's tooltip).
66
79
  Rows part by a hairline; the open one wears the left bar's selection (.idrow.on); one hue a dot, one pill at most */
67
- .rv-row{position:relative;display:flex;gap:var(--s2);align-items:flex-start;padding:var(--s2) var(--s3);border-bottom:1px solid var(--line);cursor:pointer;color:var(--ink);text-decoration:none}
80
+ .rv-row{position:relative;display:flex;gap:var(--s2);align-items:flex-start;padding:calc(var(--s1) + var(--s0)) var(--s2) calc(var(--s1) + var(--s0)) var(--s3);border-bottom:1px solid var(--line);cursor:pointer;color:var(--ink);text-decoration:none}
68
81
  .rv-row:hover{background:var(--panel2)}
69
- .rv-row.on{background:var(--sel);box-shadow:inset 3px 0 0 var(--accent)}
70
82
  .rv-row.muted:not(.on) > *{opacity:.55}
71
83
  .rv-row.validated.muted:not(.on) > *{opacity:.8}
72
- .trlead{flex:none;width:20px;height:18px;display:flex;align-items:center;justify-content:center}
73
84
  .trproj{flex:none;width:16px;height:18px;display:flex;align-items:center}
74
85
  .trproj img,.trproj .pgi{width:16px;height:16px;border-radius:4px;object-fit:contain}
75
86
  .trbody{flex:1;min-width:0;display:flex;flex-direction:column;gap:var(--s0)}
76
- .rv-rowtitle{font-size:13px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
87
+ .rv-rowtitle{font-size:13px;line-height:17px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
77
88
  .rv-row.waiting .rv-rowtitle{font-weight:500}
78
89
  .rv-row.idle .rv-rowtitle{color:var(--dim)}
79
90
  .rv-row.idle.on .rv-rowtitle{color:var(--ink)}
80
91
  .rv-row.validated.idle .rv-rowtitle{color:color-mix(in srgb,var(--ok) 75%,var(--ink))}
92
+ .rv-row .trunreadtip{position:absolute;left:5px;top:calc(var(--s1) + var(--s0));height:17px;display:flex;align-items:center}
81
93
  @container (min-width:320px){
82
94
  .rv-row.one{align-items:center;padding:var(--s1) var(--s2) var(--s1) var(--s3)}
83
95
  .rv-row.one .trbody{flex-direction:row;align-items:center;gap:var(--s2)}
84
96
  .rv-row.one .rv-rowtitle{flex:1 1 0;min-width:0;display:block;white-space:nowrap;text-overflow:ellipsis;line-height:18px}
85
- .rv-row.one .trmeta{flex:none;flex-wrap:nowrap;gap:0 var(--s1)}
97
+ .rv-row.one .trmeta{flex:none;gap:0 var(--s1)}
86
98
  .rv-row.one .trm:not(.trholder):not(.trage),.rv-row.one .trholder .rv-holderchip{display:none}
87
99
  .rv-row.one .trm::before{content:none}
88
- .rv-row.one .trholder{opacity:0}
100
+ .rv-row.one .trholder{flex:none;opacity:0}
89
101
  .rv-row.one:hover .trholder,.rv-row.one.on .trholder{opacity:1}
102
+ .rv-row.one .trunreadtip{top:0;height:100%}
103
+ }
104
+ /* a list column dragged down to a few marks (layout-st.ts LEAST, 40px): the row gives up what does not fit, whole,
105
+ never a glyph cut in half. Under 150px the meta line keeps its marks (the turn, the verb, the age) and drops its
106
+ words, its pill and its still; under 76px the title is one line and the age goes; under 56px the right padding is
107
+ the least, and the turn's dot goes where a verb says it. The title's tip still says the whole row */
108
+ @container (max-width:150px){
109
+ .rv-row .trm:not(.trage),.rv-row .trpill,.rv-row .trthumb{display:none}
110
+ .rv-row .trmeta .trm.trage::before{content:none}
111
+ }
112
+ @container (max-width:76px){
113
+ .rv-row .rv-rowtitle{-webkit-line-clamp:1}
114
+ .rv-row .trage{display:none}
115
+ }
116
+ @container (max-width:56px){
117
+ .rv-row{padding-right:var(--s1)}
118
+ .rv-row .trmeta:has(.trverb,.trok) .trturn{display:none}
119
+ }
120
+ /* a list that asks for it (.tr-table: a list across its page's top) draws its one line rows as a table from 560px:
121
+ after the title, the still, the verb, the holder's light and name, the version and the age each in a column of its
122
+ own, on one x in every row. The other words stay in the title's tooltip, as on every one line row */
123
+ @container (min-width:560px){
124
+ .tr-table .rv-row.one .trmeta{display:grid;grid-template-columns:[turn] auto [pill] auto [still] 20px [verb] 14px [holder] 18ch [ver] 3ch [age] 4ch;column-gap:var(--s2);align-items:center}
125
+ .tr-table .rv-row.one .trmeta > *{grid-row:1}
126
+ .tr-table .rv-row.one .trturn{grid-column:turn}
127
+ .tr-table .rv-row.one .trpill{grid-column:pill}
128
+ .tr-table .rv-row.one .trthumb{grid-column:still}
129
+ .tr-table .rv-row.one .trverb,.tr-table .rv-row.one .trok{grid-column:verb}
130
+ .tr-table .rv-row.one .trholder{grid-column:holder;opacity:1}
131
+ .tr-table .rv-row.one .trholder .rv-holderchip{display:inline}
132
+ .tr-table .rv-row.one .trm:has(> .rv-rowv){display:block;grid-column:ver}
133
+ .tr-table .rv-row.one .trage{grid-column:age;text-align:right}
90
134
  }
91
135
  .trverb{flex:none;display:inline-flex;color:var(--accent)}
92
136
  .trverb .hico{width:13px;height:13px;color:inherit}
93
- .rv-row .trverb{color:var(--dim)}
137
+ /* a row's meta line reads a step fainter than --dim, which in a light theme sits close to the ink: the title leads */
138
+ .rv-row{--rowmeta:color-mix(in srgb,var(--dim) 70%,var(--panel))}
139
+ .rv-row .trmeta,.rv-row .trmeta .ago,.rv-row .trverb,.rv-row .rv-rowaside,.rv-row .rv-rowstate{color:var(--rowmeta)}
94
140
  .rv-row .trverb.owed{opacity:.55}
95
- /* the icon of what waits on him first (a question, a secret field, a reflection), in the lead slot */
96
- .trglyph{display:inline-flex;color:var(--dim)}
97
- .trglyph .hico{width:14px;height:14px}
98
- .rv-row.waiting .trglyph{color:var(--ink)}
99
- .trok{display:inline-flex;color:var(--ok)}
100
- .trok .hico{width:14px;height:14px;stroke-width:2.2}
101
- .rv-row .trunread{margin:0}
141
+ /* the green check of a thread he validated, where a verb of his would stand */
142
+ .trok{flex:none;display:inline-flex;color:var(--ok)}
143
+ .trok .hico{width:13px;height:13px;stroke-width:2.2}
144
+ .rv-row .trunread{margin:0;width:5px;height:5px}
102
145
  /* THE verb filter of a thread list (all, then judge, answer, do, read): one row that never wraps, each verb its glyph
103
146
  (.trverb) and its count, its word only where the list is wide enough (the list column is a size container) */
104
147
  .verbs{display:flex;flex-wrap:nowrap;margin:var(--s1) var(--s2) 0;min-width:0}
@@ -109,10 +152,11 @@ button.sh:focus-visible{outline:1px solid var(--accent);outline-offset:-1px}
109
152
  .verbs .verbn{font-size:11px;font-weight:600;color:var(--accent);font-variant-numeric:tabular-nums}
110
153
  @container (min-width:340px){.verbs .verbw{display:inline}}
111
154
  .trunread{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--accent);margin-right:var(--s1);vertical-align:middle}
112
- .trmeta{display:flex;flex-wrap:wrap;align-items:center;gap:0 var(--s1);min-width:0;font-size:11.5px;line-height:16px;color:var(--dim);white-space:nowrap}
155
+ .trmeta{display:flex;flex-wrap:nowrap;align-items:center;gap:0 var(--s1);min-width:0;font-size:11.5px;line-height:16px;color:var(--dim);white-space:nowrap}
113
156
  .trm{min-width:0;overflow:hidden;text-overflow:ellipsis}
114
157
  .trm + .trm::before{content:'·';margin-right:var(--s1)}
115
- .trholder,.trage{flex:none}
158
+ .trholder{flex:0 4 auto}
159
+ .trage{flex:none}
116
160
  .trmeta .ago{font-size:inherit}
117
161
  .trturn{flex:none;width:6px;height:6px;border-radius:50%;background:var(--dim)}
118
162
  .trturn.turn-yours{background:var(--accent)}
@@ -125,7 +169,9 @@ button.sh:focus-visible{outline:1px solid var(--accent);outline-offset:-1px}
125
169
  .trpill.warn{color:var(--warn);background:color-mix(in srgb,var(--warn) 16%,transparent)}
126
170
  /* a search's row: the line that matched under the title, aligned with it, each matched word marked */
127
171
  .rv-row.matched{flex-wrap:wrap;row-gap:0}
128
- .trmatch{flex:1 0 100%;min-width:0;padding-left:calc(var(--s4) + var(--s4) + var(--s1) + 2 * var(--s2));font-size:12px;line-height:16px;color:var(--dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
172
+ .trmatch{flex:1 0 100%;min-width:0;font-size:12px;line-height:16px;color:var(--dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
129
173
  .trmatch mark{background:color-mix(in srgb,var(--accent) 22%,transparent);color:var(--ink);border-radius:2px;padding:0 var(--s0)}
130
174
  .trmatch .trwho{color:var(--ink);opacity:.7;margin-right:var(--s1)}
131
- .trthumb{flex:none;width:20px;height:18px;border-radius:3px;object-fit:cover;background:repeating-conic-gradient(var(--chk1) 0 25%,var(--chk2) 0 50%) 0 0/6px 6px}
175
+ .trproj ~ .trmatch{padding-left:calc(var(--s4) + var(--s2))}
176
+ /* a thread's picture, a small still in the meta line */
177
+ .trthumb{flex:none;width:20px;height:16px;border-radius:3px;object-fit:cover;background:repeating-conic-gradient(var(--chk1) 0 25%,var(--chk2) 0 50%) 0 0/6px 6px}
@@ -2,6 +2,7 @@
2
2
  // option's label, then one dot per option (the current one lit), then its
3
3
  // shortcut. A click moves to the next option, the last one wrapping to the
4
4
  // first; the page's key handler calls the same move for the shortcut.
5
+ import { tip } from './tips.ts'
5
6
 
6
7
  export type CycleOption<T extends string> = { readonly value: T; readonly label: string }
7
8
 
@@ -25,7 +26,7 @@ export function CycleButton<T extends string>(p: {
25
26
  const next = p.options.find((o) => o.value === nextOption(p.options, p.value))
26
27
  const hint = `${p.title == null ? '' : `${p.title}\n`}click${p.shortcut == null ? '' : ` or ${p.shortcut}`}: ${next?.label ?? ''}`
27
28
  return (
28
- <button className={`cycle${p.className == null ? '' : ` ${p.className}`}`} title={hint} onClick={() => p.onChange(nextOption(p.options, p.value))}>
29
+ <button className={`cycle${p.className == null ? '' : ` ${p.className}`}`} {...tip(hint)} onClick={() => p.onChange(nextOption(p.options, p.value))}>
29
30
  <span className="cyclbl">{cur?.label ?? p.value}</span>
30
31
  <span className="cycdots" aria-hidden="true">
31
32
  {p.options.map((o) => <i key={o.value} className={`cycdot${o.value === p.value ? ' on' : ''}`} />)}
@@ -157,7 +157,7 @@ export class DatabaseList {
157
157
  return all.find((e) => e.id === this.picked) ?? all[0] ?? null
158
158
  }
159
159
 
160
- /** the entries the list shows and the arrows walk: a folded band hides its own, never the one shown */
160
+ /** the entries the list shows and ⇧↑ ⇧↓ step: a folded band hides its own, never the one shown */
161
161
  get visible(): DbEntry[] {
162
162
  const cur = this.current?.id
163
163
  return this.entries.filter((e) => e.id === cur || this.db.isOpen(bandCard(bandOf(e)), true))
@@ -5,6 +5,7 @@
5
5
  // The constraint a reader breaks first: nothing here is drawn its own way. The rows and bands are the app's list rows
6
6
  // (hub.css .lrow, .lband), the subject the identity page's head and folding cards (social/kit.tsx KeptFold), the
7
7
  // tables the shared Table; every phrase is `sk db`'s (home/database-words.ts), and colour is state only.
8
+ import { listRow } from './list-row.ts'
8
9
  import { observer } from 'mobx-react-lite'
9
10
  import type { CSSProperties, ReactNode } from 'react'
10
11
  import { Panel, Separator } from 'react-resizable-panels'
@@ -17,8 +18,9 @@ import { Icon, ICON } from './icons.tsx'
17
18
  import { KeptCols, LIST_COL, PANEL } from './kept-cols.tsx'
18
19
  import { KeptBand, KeptFold } from './social/kit.tsx'
19
20
  import { type Col, Hint, type Num, RankBars, type Row, Table } from './time-charts.tsx'
20
- import { useInSight } from './tree-row.tsx'
21
+ import { useInSight } from './in-sight.ts'
21
22
  import { ageWords, bytesWords } from '../../core/words.ts'
23
+ import { tip } from './tips.ts'
22
24
 
23
25
  const clock = (at: number): string => new Date(at).toTimeString().slice(0, 5)
24
26
  /** a count of a table, in the words' marks (4,880): sorted by its figure */
@@ -228,7 +230,7 @@ const ENTRY_ICON: Record<DbEntry['subject']['t'], string> = { summary: ICON.insi
228
230
  const Entry = observer(({ st, e, on }: { st: DatabaseSt; e: DbEntry; on: boolean }) => {
229
231
  const el = useInSight<HTMLButtonElement>(on)
230
232
  return (
231
- <button ref={el} type="button" className={`lrow${on ? ' on' : ''}${e.gone ? ' off' : ''}`} aria-current={on ? 'page' : undefined} title={`${e.name}: ${e.note}`} onClick={() => st.list.open(e.id)}>
233
+ <button ref={el} type="button" className={`lrow${on ? ' on' : ''}${e.gone ? ' off' : ''}`} {...listRow(e.id, on)} {...tip(`${e.name}: ${e.note}`)} onClick={() => st.list.open(e.id)}>
232
234
  <Icon d={ENTRY_ICON[e.subject.t]} />
233
235
  <span className="lgrow">{e.name}</span>
234
236
  {e.figure === '' ? null : <span className="ldim lnum">{e.figure}</span>}
@@ -0,0 +1,27 @@
1
+ // the one mark of « a word you write here reaches nobody »: a red crossed ear, the same on a project's head line and
2
+ // on a thread's row, its reason in the hub's instant tip. Heard is the normal state and says nothing. Who hears a
3
+ // project is read by orchestrator/presence-shape.ts projectHearing, from its live watches
4
+ import { ICON } from './icons.tsx'
5
+ import { tip } from './tips.ts'
6
+
7
+ export const DEAF_PROJECT = "Nobody hears a thread nobody holds here: this project has no default session that listens.\n+ in the CLAUDE section starts a session; a session becomes the default with sk session default."
8
+
9
+ /** `holder`: who held the thread, as its chip says it; null when nobody ever did */
10
+ export const deafThread = (holder: string | null): string => (holder === null ? 'Nobody holds this thread and no default session listens: nobody hears it now.' : `${holder} held this thread and is gone: nobody hears it now.`)
11
+
12
+ /** which rows of a list wear the mark, one answer a row. A deaf row wears it, except where every row is deaf and the
13
+ * list's head line wears the mark (`headSays`): the head says it once. A list with no such head (one that mixes
14
+ * projects, a head line that names a listener) marks each */
15
+ export function rowMarks(deaf: readonly boolean[], headSays: boolean): boolean[] {
16
+ const all = headSays && deaf.length > 0 && deaf.every(Boolean)
17
+ return deaf.map((d) => d && !all)
18
+ }
19
+
20
+ /** the mark: one small icon, no sentence beside it */
21
+ export const DeafMark = ({ why }: { why: string }) => (
22
+ <span className="deaf" role="img" aria-label="nobody hears this" {...tip(why)}>
23
+ <svg viewBox="0 0 20 20" width="15" height="15" aria-hidden="true" fill="none" stroke="currentColor" strokeWidth="1.6" strokeLinecap="round" strokeLinejoin="round">
24
+ <path d={ICON.deaf} />
25
+ </svg>
26
+ </span>
27
+ )
@@ -3,9 +3,9 @@
3
3
  // something in the window. A node of the root (home-st.ts).
4
4
  //
5
5
  // Three sizes, cycled by one key (keys.ts), and never nothing: the line, one
6
- // row saying what runs, what waits and the last check that ended; slim, the
7
- // last two minutes in thin lanes; open, the last ten in the full chart, its
8
- // height dragged and kept. The size and the height are read from this browser
6
+ // row saying what runs, what waits and the last check that ended, the size it
7
+ // opens at until he picks one; slim, the last two minutes in thin lanes; open,
8
+ // the last ten in the full chart, its height dragged and kept. The size and the height are read from this browser
9
9
  // before the first render, so the page paints at its final layout and a
10
10
  // toggle moves nothing but the boundary.
11
11
  //
@@ -34,7 +34,7 @@ export const DOCK_SIZES = [{ value: 'line', label: 'line' }, { value: 'slim', la
34
34
  export const nextSize = (s: DockSize): DockSize => nextOption(DOCK_SIZES, s)
35
35
 
36
36
  /** where this browser keeps the dock, and its heights in px */
37
- export const DOCK = { sizeKey: 'hub:dock', heightKey: 'hub:dock-height', line: 22, slim: 72, min: 140, max: 720, def: 280 } as const
37
+ export const DOCK = { sizeKey: 'hub:dock-size', heightKey: 'hub:dock-height', line: 22, slim: 72, min: 140, max: 720, def: 280 } as const
38
38
 
39
39
  /** how often it asks while it shows: the server shares one answer a second,
40
40
  * and the open dock redraws at this pace */
@@ -48,8 +48,8 @@ export const LABEL_PX = 14
48
48
  /** the fewest lanes a group takes at a lane size, so its label fits */
49
49
  export const minLanesFor = (rows: RowSize): number => Math.ceil(LABEL_PX / (ROWS[rows].lane + ROWS[rows].gap))
50
50
 
51
- /** a kept size, read. `hidden`, which an older build kept, is the line now */
52
- export const parseSize = (v: unknown): DockSize => (v === 'line' || v === 'hidden' ? 'line' : v === 'open' ? 'open' : 'slim')
51
+ /** a kept size, read: the line for anything he did not pick */
52
+ export const parseSize = (v: unknown): DockSize => (v === 'slim' || v === 'open' ? v : 'line')
53
53
 
54
54
  /** an open height in its bounds, or the default for anything else */
55
55
  export const clampHeight = (v: unknown): number => {
@@ -57,13 +57,13 @@ export const clampHeight = (v: unknown): number => {
57
57
  return Number.isFinite(n) && n >= DOCK.min && n <= DOCK.max ? Math.round(n) : DOCK.def
58
58
  }
59
59
 
60
- /** the dock as this browser left it: slim at the default height when it
61
- * kept nothing or cannot say */
60
+ /** the dock as this browser left it: the line, no chart, at the default
61
+ * height when it kept nothing or cannot say */
62
62
  export function readDock(): { size: DockSize; height: number } {
63
63
  try {
64
64
  return { size: parseSize(globalThis.localStorage?.getItem(DOCK.sizeKey)), height: clampHeight(globalThis.localStorage?.getItem(DOCK.heightKey)) }
65
65
  } catch {
66
- return { size: 'slim', height: DOCK.def }
66
+ return { size: 'line', height: DOCK.def }
67
67
  }
68
68
  }
69
69
 
@@ -96,7 +96,8 @@ export function lineWords(view: HouseView | null, now: number): string {
96
96
  }
97
97
 
98
98
  /** a pill of the dock's header: a word or two in a dim box, its hover the
99
- * whole story. The last run adds its repo, its verdict and its age */
99
+ * whole story. The last run adds its repo, its verdict and when it ended, on the server's clock: its age is drawn by
100
+ * the one component that reads the second (dock-view.tsx PillFace), so a tick moves no pill */
100
101
  export type DockPill = {
101
102
  key: 'state' | 'queued' | `held:${number}` | 'deferred' | 'last' | 'settling' | 'window'
102
103
  tone: 'dim' | 'accent' | 'warn'
@@ -105,7 +106,7 @@ export type DockPill = {
105
106
  repo?: string
106
107
  mark?: string
107
108
  markTone?: 'ok' | 'red' | 'warn' | 'dim'
108
- age?: string
109
+ at?: number
109
110
  }
110
111
 
111
112
  /** the verdict glyph a pill wears, and its colour */
@@ -127,7 +128,7 @@ const DEFERRED = /^deferred: (.+?), .* waits (\d+m)$/
127
128
  /** the header's status, left to right: what runs or idle, what waits, what
128
129
  * holds the plan, the deferred repos as one, the last check that ended, the settling repos as one,
129
130
  * and slim and open their window. The row folds from the end */
130
- export function dockPills(view: HouseView | null, now: number, size: DockSize): DockPill[] {
131
+ export function dockPills(view: HouseView | null, size: DockSize): DockPill[] {
131
132
  if (view == null) return [{ key: 'state', tone: 'dim', text: 'reading…', title: 'the runs of every repo are being read' }]
132
133
  let last: { repo: string; bar: TimelineBar } | null = null
133
134
  let queued = 0
@@ -158,8 +159,8 @@ export function dockPills(view: HouseView | null, now: number, size: DockSize):
158
159
  if (last != null) {
159
160
  const v = PILL_MARK[last.bar.status]
160
161
  out.push({
161
- key: 'last', tone: 'dim', repo: last.repo, mark: v.mark, markTone: v.tone, text: cutId(last.bar.id), age: ageWords(last.bar.end, now),
162
- title: `the last check that ended: ${last.repo} ${last.bar.id} ${v.mark}${last.bar.replayed ? ' cached' : ''} ${ageWords(last.bar.end, now)}`,
162
+ key: 'last', tone: 'dim', repo: last.repo, mark: v.mark, markTone: v.tone, text: cutId(last.bar.id), at: last.bar.end,
163
+ title: `the last check that ended: ${last.repo} ${last.bar.id} ${v.mark}${last.bar.replayed ? ' cached' : ''}, at ${new Date(last.bar.end).toLocaleTimeString([], { hour12: false })}`,
163
164
  })
164
165
  }
165
166
  if (settling.length > 0) out.push({ key: 'settling', tone: 'dim', text: `settling ${settling.length}`, title: settling.join('\n') })
@@ -249,9 +250,13 @@ export class DockSt {
249
250
  get line(): string {
250
251
  return lineWords(this.view, this.now)
251
252
  }
252
- /** the header's status as pills, on the clock */
253
+ /** the header's status as pills: they move with an answer, never with the clock */
253
254
  get pills(): DockPill[] {
254
- return dockPills(this.view, this.now, this.size)
255
+ return dockPills(this.view, this.size)
256
+ }
257
+ /** a moment of the server's clock on the page's own (`clock`), for an age that ticks */
258
+ pageAt(at: number): number {
259
+ return this.view == null ? at : at - this.view.now + this.receivedAt
255
260
  }
256
261
 
257
262
  cycle(): void {
@@ -14,8 +14,10 @@ import { DOCK_KEY, TERMINAL_KEY } from './keys.ts'
14
14
  import { DOCK_SIZES, SLIM_WINDOW_MS, windowWords, type DockPill } from './dock-st.ts'
15
15
  import { PillRow } from './pill-row.tsx'
16
16
  import { ListFoot } from './project-list.tsx'
17
+ import { Age } from './time-ago.tsx'
17
18
  import { TimelineChart } from './timeline-chart.tsx'
18
19
  import type { PlacedGroup } from './timeline-geometry.ts'
20
+ import { tip } from './tips.ts'
19
21
 
20
22
  /** what the dock is, on its size button's hover */
21
23
  export const DOCK_HELP = `every check shipkit runs in every repo, whoever started it: a page, an agent in a terminal, the plan. The line, the pills alone; slim, the last two minutes, one group of lanes per repo; open, the last ten, zoomed by the wheel and panned by a drag, its height dragged at the top edge`
@@ -58,7 +60,7 @@ const GroupLabel = observer(({ app, g }: { app: HomeSt; g: PlacedGroup }) => {
58
60
  const id = app.projects.identityOf(g.key)
59
61
  return (
60
62
  <button className="dgroup" onClick={() => app.dock.openRepo(g.key)}
61
- title={`${g.key}: open the repo${g.hidden > 0 ? `\n${g.hidden} check run(s) did not fit in its lanes` : ''}`}>
63
+ {...tip(`${g.key}: open the repo${g.hidden > 0 ? `\n${g.hidden} check run(s) did not fit in its lanes` : ''}`)}>
62
64
  {p?.icon != null ? <img src={p.icon} alt="" width={12} height={12} draggable={false} /> : <i className="dgico idb" style={idVars(id) as CSSProperties} />}
63
65
  <span className="idc" style={idVars(id) as CSSProperties}>{g.key}</span>
64
66
  {/* slim folds its lanes on purpose: the count is news only open */}
@@ -77,7 +79,7 @@ const PillFace = observer(({ app, p }: { app: HomeSt; p: DockPill }) => {
77
79
  : <i className="dgico idb" style={idVars(app.projects.identityOf(p.repo)) as CSSProperties} />}
78
80
  {p.mark == null ? null : <b className={`pcmark ${p.markTone ?? 'dim'}`}>{p.mark}</b>}
79
81
  <span className="pctext">{p.text}</span>
80
- {p.age == null ? null : <span className="pcage">{p.age}</span>}
82
+ {p.at == null ? null : <span className="pcage"><Age clock={app.dock.clock} at={app.dock.pageAt(p.at)} /></span>}
81
83
  </span>
82
84
  )
83
85
  })
@@ -88,16 +90,27 @@ const TermToggle = observer(({ app }: { app: HomeSt }) => {
88
90
  const t = app.terminal as HomeSt['terminal'] | undefined
89
91
  if (t?.available !== true) return null
90
92
  return (
91
- <button className="pjfold dterm" aria-pressed={t.open} title={`${t.open ? 'close' : 'open'} the terminal at the right (${TERMINAL_KEY})`} onClick={() => t.toggle()}>
93
+ <button className="pjfold dterm" aria-pressed={t.open} {...tip(`${t.open ? 'close' : 'open'} the terminal panel at the right`, TERMINAL_KEY)} onClick={() => t.toggle()}>
92
94
  <Icon d={ICON.terminal} />
93
95
  </button>
94
96
  )
95
97
  })
96
98
 
97
- export const Dock = observer(({ app }: { app: HomeSt }) => {
99
+ /** the chart under the header, slim and open: the one part of the dock that slides with the clock */
100
+ const DockBody = observer(({ app }: { app: HomeSt }) => {
98
101
  const d = app.dock
99
102
  const v = d.view
100
- const groups = d.groups
103
+ if (v == null) return null
104
+ if (d.groups.length === 0) return <div className="dempty">nothing ran in the {windowWords(d.size === 'open' ? v.historyMs : SLIM_WINDOW_MS)}</div>
105
+ return (
106
+ <TimelineChart view={d.chart} compact={d.size === 'slim'} rows={d.rows} follow zoomable={d.size === 'open'}
107
+ onBar={(b) => { if (b.group != null) d.openCheck(b.group, b.id) }}
108
+ groupLabel={(g) => <GroupLabel app={app} g={g} />} />
109
+ )
110
+ })
111
+
112
+ export const Dock = observer(({ app }: { app: HomeSt }) => {
113
+ const d = app.dock
101
114
  return (
102
115
  <div className={`dock ${d.size}`}>
103
116
  <div className="dhead">
@@ -108,13 +121,7 @@ export const Dock = observer(({ app }: { app: HomeSt }) => {
108
121
  <CopyUrl />
109
122
  <TermToggle app={app} />
110
123
  </div>
111
- {d.size === 'line' ? null : <div className="dbody">
112
- {v == null ? null : groups.length === 0
113
- ? <div className="dempty">nothing ran in the {windowWords(d.size === 'open' ? v.historyMs : SLIM_WINDOW_MS)}</div>
114
- : <TimelineChart view={d.chart} compact={d.size === 'slim'} rows={d.rows} follow zoomable={d.size === 'open'}
115
- onBar={(b) => { if (b.group != null) d.openCheck(b.group, b.id) }}
116
- groupLabel={(g) => <GroupLabel app={app} g={g} />} />}
117
- </div>}
124
+ {d.size === 'line' ? null : <div className="dbody"><DockBody app={app} /></div>}
118
125
  </div>
119
126
  )
120
127
  })
@@ -0,0 +1,30 @@
1
+ // the page of a section this repo has nothing in (repo-sections.ts lack): what the page is for, why it is empty, how a
2
+ // first one comes and the command that makes it, a click on it copies it (code-copy.ts COPIES). Every greyed row of the
3
+ // tree opens here, so ⌘↑ ⌘↓ step through every row; the review and trailer pages draw their own (OWN_EMPTY).
4
+ // It holds the page's own read (hold), so the page comes back by itself once a first one lands
5
+ import { observer } from 'mobx-react-lite'
6
+ import { useEffect } from 'react'
7
+ import { Icon, ICON } from './icons.tsx'
8
+ import type { RepoSection } from './repo-sections.ts'
9
+ import { tip } from './tips.ts'
10
+
11
+ export const EmptySection = observer(({ s }: { s: RepoSection }) => {
12
+ const hold = s.hold
13
+ useEffect(() => hold?.(), [s.id])
14
+ return (
15
+ <div className="stagewrap">
16
+ <div className="emptysec">
17
+ <div className="chead">
18
+ <Icon d={ICON[s.id]} />
19
+ <h3 className="ctitle">{s.label}</h3>
20
+ </div>
21
+ <div className="usays">{s.title}</div>
22
+ <p className="emptynone">{s.lack?.none}</p>
23
+ <div className="mdwords emptyfill">
24
+ <span>{s.lack?.fill}</span>
25
+ {s.lack?.cmd == null ? null : <code className="mdic" tabIndex={0} {...tip('a click copies it')}>{s.lack.cmd}</code>}
26
+ </div>
27
+ </div>
28
+ </div>
29
+ )
30
+ })
@@ -11,4 +11,4 @@
11
11
  .enttabs .entrows{flex-direction:row}
12
12
  .enttabs .lrow{flex:1;justify-content:center;height:36px}
13
13
  .enttabs .lrow .lgrow{flex:none}
14
- .enttabs .lrow.on{box-shadow:inset 0 -3px 0 var(--accent)}
14
+ .enttabs .lrow.on,:root .enttabs .lrow[data-row][aria-current=page]{box-shadow:inset 0 -3px 0 var(--accent)}
@@ -1,7 +1,11 @@
1
1
  // a page of entries (the vault, the Space): a narrow bar of them on the left, the one picked alone on the right; a
2
2
  // phone draws the bar as one row of tabs on top, both in one scroll. The hub's side list rows (hub.css .lrow, .ldot)
3
+ import { listRow } from './list-row.ts'
4
+ import { ListFoldBar } from './kept-cols.tsx'
5
+ import type { LayoutSt } from './layout-st.ts'
3
6
  import { observer } from 'mobx-react-lite'
4
7
  import type { ReactNode } from 'react'
8
+ import { tip } from './tips.ts'
5
9
 
6
10
  /** an entry's dot: red when it holds a DANGER, orange when it holds a fact to look at; its counts are the title */
7
11
  export type EntryMark = { tone: 'red' | 'warn' | ''; title: string }
@@ -14,9 +18,9 @@ export const EntryBar = observer(({ label, entries, current, open, mark, tabs, h
14
18
  const on = current === e
15
19
  const m = mark?.(e) ?? { tone: '', title: '' }
16
20
  return (
17
- <button key={e} type="button" data-entry={e} className={`lrow${on ? ' on' : ''}`} aria-current={on ? 'page' : undefined} onClick={() => open(e)}>
21
+ <button key={e} type="button" data-entry={e} className={`lrow${on ? ' on' : ''}`} {...listRow(e, on)} onClick={() => open(e)}>
18
22
  <span className="lgrow">{e}</span>
19
- {m.tone === '' ? null : <i className={`ldot t-${m.tone}`} title={m.title} aria-label={m.title} />}
23
+ {m.tone === '' ? null : <i className={`ldot t-${m.tone}`} {...tip(m.title)} aria-label={m.title} />}
20
24
  </button>
21
25
  )
22
26
  })}
@@ -24,10 +28,11 @@ export const EntryBar = observer(({ label, entries, current, open, mark, tabs, h
24
28
  </nav>
25
29
  ))
26
30
 
27
- /** the bar and the entry beside it, or under it on a phone */
28
- export const EntryCols = ({ narrow, bar, children }: { narrow: boolean; bar: ReactNode; children: ReactNode }) => (
31
+ /** the bar and the entry beside it, or under it on a phone; W folds the bar of a wide page (`fold`: its page's fold
32
+ * id and the layout) */
33
+ export const EntryCols = observer(({ narrow, bar, children, fold }: { narrow: boolean; bar: ReactNode; children: ReactNode; fold?: { layout: LayoutSt; id: string } }) => (
29
34
  <div className={narrow ? 'entnarrow rv-scroll' : 'entcols'}>
30
- {bar}
35
+ {!narrow && fold?.layout.foldedOn(fold.id, 'left') ? <ListFoldBar layout={fold.layout} id={fold.id} /> : bar}
31
36
  <div className={narrow ? 'entmain' : 'entmain rv-scroll'}>{children}</div>
32
37
  </div>
33
- )
38
+ ))
@@ -0,0 +1,32 @@
1
+ /* the entry's list (entry-list.tsx): one column between the main panel and the page */
2
+ .elrow{flex:1;display:flex;min-height:0;min-width:0}
3
+ .elalone{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden}
4
+ .elmain{flex:1;display:flex;flex-direction:column;min-width:0;min-height:0}
5
+ .elmain > main{flex:1}
6
+ .elcol{min-height:0;display:flex;flex-direction:column;overflow:hidden;background:var(--panel);container-type:inline-size}
7
+ .elist{flex:1;min-height:0;display:flex;flex-direction:column;padding:var(--s1) 0;overflow-x:hidden;overflow-y:auto;scrollbar-width:thin}
8
+ .elent{flex:none;display:flex;align-items:center;gap:var(--s2);width:100%;min-width:0;height:26px;padding:0 var(--s2) 0 calc(var(--s2) + var(--d,0) * var(--s3));
9
+ background:none;border:0;border-radius:0;color:var(--ink);font:inherit;font-size:12.5px;text-align:left;cursor:pointer}
10
+ .elent:hover,.elent:focus-visible{background:var(--sel);outline:none}
11
+ .elent.on .ell{font-weight:600}
12
+ .elent .ty{flex:none;width:14px;font-style:normal}
13
+ .elent .hico{flex:none;width:15px;height:15px;color:var(--dim)}
14
+ .elent.on .hico{color:var(--accent)}
15
+ /* a section of the list (entry-sections.ts): its head (section-head.tsx), its rows; a step between two */
16
+ .elsec{flex:none;display:flex;flex-direction:column;min-width:0}
17
+ .elsec + .elsec{margin-top:var(--s2)}
18
+ .ell{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
19
+ .eln{flex:none;color:var(--dim);font-size:11px;font-variant-numeric:tabular-nums}
20
+ .elent .tg{flex:none;font-style:normal;font-size:11px}
21
+ .elent.zero .ell,.elent.zero .hico{color:var(--dim)}
22
+ .elent.zero .eln{font-style:italic}
23
+ .elgrp{flex:none;padding:var(--s2) var(--s2) var(--s0) calc(var(--s2) + var(--d,0) * var(--s3));color:var(--dim);font-size:11px;text-transform:lowercase;letter-spacing:.02em;
24
+ overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
25
+ /* the column at any width (layout-st.ts LEAST): nothing in a row holds it wide. As it narrows the count leaves first,
26
+ then the state and the indent, so a row's icon stays in view beside the handle */
27
+ @container (max-width:96px){.elent .eln{display:none}}
28
+ @container (max-width:64px){.elent .tg{display:none}.elent,.elgrp{padding-left:var(--s2)}}
29
+ .elhidden{margin-top:auto;padding:var(--s2);background:none;border:0;color:var(--dim);font:inherit;font-size:11px;text-align:left;cursor:pointer}
30
+ .elhidden:hover{color:var(--ink)}
31
+ .elent .pjkey{display:none}
32
+ :root[data-alt] .elent .pjkey{display:inline-block}