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
@@ -11,11 +11,11 @@ import { canvasOf, printTime, type Crop } from '../../recordings/edit.ts'
11
11
  import { drawMark, type Ctx2D } from '../../recordings/marks-draw.ts'
12
12
  import { boundsOf, COLORS, HEX, moved, type Mark, type Pt } from '../../recordings/marks.ts'
13
13
  import { ANIM_MAX_SECONDS, fileUrl, parseRecordingHash, type RecView } from '../../recordings/view.ts'
14
- import { Popover } from './floating.tsx'
15
14
  import type { HomeSt } from './home-st.ts'
16
15
  import { COPY_MODES, TOOLS, type CopyMode, type EditorSt, type RecordingsSt, type Tool } from './recordings-st.ts'
17
16
  import type { RecorderBridge } from './recordings-take.ts'
18
17
  import { bytesWords } from '../../core/words.ts'
18
+ import { tip } from './tips.ts'
19
19
 
20
20
  const length = (r: RecView): string => (r.still ? 'still' : printTime(r.seconds).replace(/\.\d$/, ''))
21
21
  const poster = (r: RecView): string => fileUrl(r, 'poster.webp', `${r.current}-${r.edit.length}`)
@@ -84,9 +84,9 @@ const CopyPick = observer(({ st, r }: { st: RecordingsSt; r: RecView }) => (
84
84
  const off = m === 'webp-hq' && !r.still && r.seconds > ANIM_MAX_SECONDS
85
85
  // a spinner while this mode cannot answer at once: its copy runs, or a link waits for the upload
86
86
  const waits = st.copying === m || (m === 'link' && !r.up)
87
- const tip = off ? `a video past ${ANIM_MAX_SECONDS} s makes no animated WebP: cut it first, or copy its file` : `⌘C copies ${COPY_WORDS[m].tip}${m === 'link' && !r.up ? ' (once the upload ends)' : ''}`
87
+ const says = off ? `a video past ${ANIM_MAX_SECONDS} s makes no animated WebP: cut it first, or copy its file` : `⌘C copies ${COPY_WORDS[m].tip}${m === 'link' && !r.up ? ' (once the upload ends)' : ''}`
88
88
  return (
89
- <button key={m} type="button" role="radio" aria-checked={st.copyMode === m} className={`rcmode-${m}${st.copyMode === m ? ' on' : ''}`} disabled={off} onClick={() => st.setCopyMode(m)} data-tip={tip} aria-label={`⌘C copies ${COPY_WORDS[m].label}`}>
89
+ <button key={m} type="button" role="radio" aria-checked={st.copyMode === m} className={`rcmode-${m}${st.copyMode === m ? ' on' : ''}`} disabled={off} onClick={() => st.setCopyMode(m)} {...tip(says)} aria-label={`⌘C copies ${COPY_WORDS[m].label}`}>
90
90
  {waits ? <span className="rcspin sm" aria-hidden /> : <i aria-hidden />}
91
91
  {COPY_WORDS[m].label}
92
92
  </button>
@@ -96,32 +96,6 @@ const CopyPick = observer(({ st, r }: { st: RecordingsSt; r: RecView }) => (
96
96
  </span>
97
97
  ))
98
98
 
99
- /** the page's tooltips: one float for every [data-tip], under its element (above when no room is left below), kept
100
- * inside the window by floating.tsx, where a css box centred on its element runs off the edge */
101
- const TipLayer = () => {
102
- const [tip, setTip] = useState<{ text: string; at: Element } | null>(null)
103
- useEffect(() => {
104
- const over = (e: PointerEvent): void => {
105
- const el = (e.target as Element | null)?.closest?.('[data-tip]')
106
- setTip(el ? { text: el.getAttribute('data-tip') ?? '', at: el } : null)
107
- }
108
- const away = (): void => setTip(null)
109
- document.addEventListener('pointerover', over)
110
- document.addEventListener('pointerdown', away)
111
- window.addEventListener('scroll', away, true)
112
- return () => {
113
- document.removeEventListener('pointerover', over)
114
- document.removeEventListener('pointerdown', away)
115
- window.removeEventListener('scroll', away, true)
116
- }
117
- }, [])
118
- return (
119
- <Popover open={tip !== null && tip.text !== ''} anchor={tip?.at ?? null} onClose={() => setTip(null)} placement="bottom" fallbacks={['top']} role="tooltip" className="rctip">
120
- {tip?.text}
121
- </Popover>
122
- )
123
- }
124
-
125
99
  // ---- the strip and the gallery
126
100
 
127
101
  const ThumbActions = observer(({ st, r }: { st: RecordingsSt; r: RecView }) => {
@@ -140,9 +114,9 @@ const ThumbActions = observer(({ st, r }: { st: RecordingsSt; r: RecView }) => {
140
114
  const Thumb = observer(({ st, r, big }: { st: RecordingsSt; r: RecView; big?: boolean }) => {
141
115
  const on = !big && st.current?.repo === r.repo && st.current.id === r.id
142
116
  return (
143
- <div className={`rcthumb${on ? ' on' : ''}${big ? ' big' : ''}`} role="button" tabIndex={0} title={`${r.repo}/${r.name}`} onClick={() => st.select(r)} onKeyDown={(e) => { if (e.key === 'Enter') st.select(r) }}>
117
+ <div className={`rcthumb${on ? ' on' : ''}${big ? ' big' : ''}`} role="button" tabIndex={0} {...tip(`${r.repo}/${r.name}`)} onClick={() => st.select(r)} onKeyDown={(e) => { if (e.key === 'Enter') st.select(r) }}>
144
118
  <img src={poster(r)} alt="" loading="lazy" />
145
- <span className="rctname">{r.name}{st.hasDraft(r) ? <i title="an edit not saved yet"> •</i> : null}</span>
119
+ <span className="rctname">{r.name}{st.hasDraft(r) ? <i {...tip('an edit not saved yet')}> •</i> : null}</span>
146
120
  <span className="rctmeta">{r.repo} · {length(r)}{r.version > 0 ? ` · v${r.version}` : ''}{r.local ? '' : ' · ☁︎'}{r.up ? '' : ' · uploading…'}</span>
147
121
  <ThumbActions st={st} r={r} />
148
122
  </div>
@@ -394,7 +368,7 @@ const Timeline = observer(({ ed }: { ed: EditorSt }) => {
394
368
  const seek = (e: React.PointerEvent<HTMLDivElement>): void => dragTime(e, e.currentTarget, ed.length, (t) => ed.seek(t), (t) => ed.seek(t))
395
369
  return (
396
370
  <div className="rctl">
397
- <div ref={track} className="rcline" onPointerDown={seek} title="click or drag to move the playhead">
371
+ <div ref={track} className="rcline" onPointerDown={seek} {...tip('click or drag to move the playhead')}>
398
372
  {kept.map((k, i) => <span key={`k${i}`} className="rckeep" style={{ left: pct(k.from), width: pct(k.to - k.from) }} />)}
399
373
  {ed.edit.speed.map((p, i) => <span key={`s${i}`} className="rcspeed" style={{ left: pct(p.from), width: pct(p.to - p.from) }}>{p.factor}×</span>)}
400
374
  {s ? <span className="rcsel" style={{ left: pct(s.from), width: pct(s.to - s.from) }} /> : null}
@@ -425,7 +399,7 @@ const Timeline = observer(({ ed }: { ed: EditorSt }) => {
425
399
  dragTime(e, track.current!, ed.length, (t) => setLane({ i, ...span(t) }), (t) => { setLane(null); ed.setMarkSpan(i, span(t)) })
426
400
  }
427
401
  return (
428
- <div key={i} className={`rclane${ed.selected === i ? ' on' : ''}`} title={`${word}: drag its ends to show it only there`}>
402
+ <div key={i} className={`rclane${ed.selected === i ? ' on' : ''}`} {...tip(`${word}: drag its ends to show it only there`)}>
429
403
  <span className="rcspan" style={{ left: pct(sp.from), width: pct(sp.to - sp.from), background: color }} onPointerDown={(e) => grab(e, 'both')}>
430
404
  <i className="rcedge" onPointerDown={(e) => grab(e, 'from')} />
431
405
  <b>{word}</b>
@@ -444,8 +418,8 @@ type Light = 'ok' | 'busy' | 'todo' | 'warn'
444
418
 
445
419
  /** one step of where the capture stands: a light (green done, spinning now, hollow not yet, amber it waits on you),
446
420
  * what the step is, and what is true of it */
447
- const Chip = ({ light, name, text, tip, onClick, children }: { light: Light; name: string; text: string; tip: string; onClick?: () => void; children?: React.ReactNode }) => (
448
- <span className={`rcchip ${light}${onClick ? ' act' : ''}`} data-tip={tip} role={onClick ? 'button' : 'status'} tabIndex={onClick ? 0 : undefined} onClick={onClick} onKeyDown={onClick ? (e) => { if (e.key === 'Enter') onClick() } : undefined}>
421
+ const Chip = ({ light, name, text, tip: says, onClick, children }: { light: Light; name: string; text: string; tip: string; onClick?: () => void; children?: React.ReactNode }) => (
422
+ <span className={`rcchip ${light}${onClick ? ' act' : ''}`} {...tip(says)} role={onClick ? 'button' : 'status'} tabIndex={onClick ? 0 : undefined} onClick={onClick} onKeyDown={onClick ? (e) => { if (e.key === 'Enter') onClick() } : undefined}>
449
423
  {light === 'busy' ? <span className="rcspin sm" aria-hidden /> : <i className="rclight" aria-hidden />}
450
424
  <b>{name}</b>
451
425
  <span>{text}</span>
@@ -627,13 +601,13 @@ const Editor = observer(({ st, ed }: { st: RecordingsSt; ed: EditorSt }) => {
627
601
  <div className="rctransport">
628
602
  <button type="button" className="rctool rcalone" onClick={() => ed.toggle()} data-tip="Play or pause, the edit previewed · Space" aria-label="play or pause"><Ico n={ed.playing ? 'pause' : 'play'} /></button>
629
603
  <span className="rctime">{printTime(ed.time)} / {printTime(ed.length)}</span>
630
- <button type="button" className="acpill" onClick={() => ed.setIn()} title="a part starts here (i)">in</button>
631
- <button type="button" className="acpill" onClick={() => ed.setOut()} title="the part ends here (o)">out</button>
632
- <button type="button" className="acpill" disabled={!ed.selection} onClick={() => ed.cut()} title="take the marked part out (x)">cut</button>
633
- <button type="button" className="acpill" disabled={!ed.selection} onClick={() => ed.trim()} title="keep only the marked part (k)">keep only</button>
634
- <button type="button" className="acpill" disabled={!ed.selection} onClick={() => ed.speed(2)} title="the marked part twice as fast (f)">2×</button>
635
- <button type="button" className="acpill" disabled={!ed.selection} onClick={() => ed.speed(1)} title="the marked part at its own speed">1×</button>
636
- <button type="button" className={`acpill${ed.edit.mute ? ' on' : ''}`} disabled={!r.audio} onClick={() => ed.toggleMute()} title="no sound in the export (m)">mute</button>
604
+ <button type="button" className="acpill" onClick={() => ed.setIn()} {...tip('a part starts here', 'i')}>in</button>
605
+ <button type="button" className="acpill" onClick={() => ed.setOut()} {...tip('the part ends here', 'o')}>out</button>
606
+ <button type="button" className="acpill" disabled={!ed.selection} onClick={() => ed.cut()} {...tip('take the marked part out', 'x')}>cut</button>
607
+ <button type="button" className="acpill" disabled={!ed.selection} onClick={() => ed.trim()} {...tip('keep only the marked part', 'k')}>keep only</button>
608
+ <button type="button" className="acpill" disabled={!ed.selection} onClick={() => ed.speed(2)} {...tip('the marked part twice as fast', 'f')}>2×</button>
609
+ <button type="button" className="acpill" disabled={!ed.selection} onClick={() => ed.speed(1)} {...tip('the marked part at its own speed')}>1×</button>
610
+ <button type="button" className={`acpill${ed.edit.mute ? ' on' : ''}`} disabled={!r.audio} onClick={() => ed.toggleMute()} {...tip('no sound in the export', 'm')}>mute</button>
637
611
  </div>
638
612
  </>
639
613
  )}
@@ -704,7 +678,6 @@ export const RecordingsView = observer(({ app, solo }: { app: HomeSt; solo?: boo
704
678
  if (solo)
705
679
  return (
706
680
  <div className="hall recordings rcapp rcsolo">
707
- <TipLayer />
708
681
  {st.said ? <div className="rcsaid">{st.said}</div> : null}
709
682
  {st.error !== '' ? <div className="hnote">{st.error}</div> : null}
710
683
  {ed?.unfiled != null ? <div className="hnote">Not saved to the disk: {ed.unfiled}. It shows from the recorder's memory only, and is lost when the recorder quits.</div> : null}
@@ -713,21 +686,20 @@ export const RecordingsView = observer(({ app, solo }: { app: HomeSt; solo?: boo
713
686
  )
714
687
  return (
715
688
  <div className="hall recordings rcapp">
716
- <TipLayer />
717
689
  <div className="rctop">
718
690
  <div className="seg" role="radiogroup" aria-label="which repo">
719
691
  <button role="radio" aria-checked={st.repo === ''} className={st.repo === '' ? 'on' : ''} onClick={() => st.setRepo('')}>all</button>
720
692
  {st.repos.map((r) => <button key={r} role="radio" aria-checked={st.repo === r} className={st.repo === r ? 'on' : ''} onClick={() => st.setRepo(r)}>{r}</button>)}
721
693
  </div>
722
694
  {(d?.presets ?? []).map((p) => (
723
- <button key={p.id} type="button" className="acpill" disabled={st.busy !== ''} onClick={() => void st.record(p.id)} title={`run ${p.id} in the recorder; the take goes to ${st.repo || d?.repo || 'the menu\'s repo'}`}>
695
+ <button key={p.id} type="button" className="acpill" disabled={st.busy !== ''} onClick={() => void st.record(p.id)} {...tip(`run ${p.id} in the recorder; the take goes to ${st.repo || d?.repo || 'the menu\'s repo'}`)}>
724
696
  <span className="rcdot">●</span> {p.label}{p.key ? <span className="acdim"> {p.key.replace('alt', '⌥').replace('shift', '⇧').replace('cmd', '⌘').replace('ctrl', '⌃').replace(/\+/g, '').toUpperCase()}</span> : null}
725
697
  </button>
726
698
  ))}
727
699
  <span className="sp" />
728
700
  {st.said ? <span className="rcsaid">{st.said}</span> : null}
729
- <button type="button" className={`acpill${st.gallery ? ' on' : ''}`} onClick={() => st.setGallery(!st.gallery)} title="every capture at once, big">▦ gallery</button>
730
- <button type="button" className="acpill" disabled={st.loading} onClick={() => void st.load()} title="read the captures again">
701
+ <button type="button" className={`acpill${st.gallery ? ' on' : ''}`} onClick={() => st.setGallery(!st.gallery)} {...tip('every capture at once, big')}>▦ gallery</button>
702
+ <button type="button" className="acpill" disabled={st.loading} onClick={() => void st.load()} {...tip('read the captures again')}>
731
703
  <span className={`acring${st.loading ? ' on' : ''}`}>↻</span>
732
704
  </button>
733
705
  </div>
@@ -105,8 +105,6 @@
105
105
  .rcsolo .rcgallery{padding-bottom:var(--s2)}
106
106
  .rcsolo{position:fixed;inset:0;background:var(--bg)}
107
107
  .rcsolo .rcsaid{position:absolute;right:var(--s3);bottom:var(--s2);z-index:2}
108
- /* instant tooltips: the native one waits a second; these show on hover at once */
109
- .rctip{z-index:50;max-width:min(420px,calc(100vw - 12px));padding:var(--s1) var(--s2);border-radius:4px;background:var(--ink);color:var(--bg);font:500 11.5px -apple-system,Helvetica,sans-serif;pointer-events:none}
110
108
  /* what ⌘C copies: one bar, each mode a dot of the recorder tray's own colour; the one picked is filled with it */
111
109
  .rccopy{display:inline-flex;align-items:center;gap:var(--s1)}
112
110
  .rcseg{display:inline-flex;border:1px solid var(--line);border-radius:6px;background:var(--bg);overflow:hidden}
@@ -1,6 +1,7 @@
1
1
  // a repo's reflections page: the friction it logged against the wiki on the left, the one picked on the right, whole
2
2
  // (col-list-page.tsx draws both). This file holds what is the reflections' own: the row, the bands' names, the page's
3
3
  // words, and « ✎ edit », its file whole in the hub's one editor (reflections/reflection-doc.ts)
4
+ import { listRow } from './list-row.ts'
4
5
  import { observer } from 'mobx-react-lite'
5
6
  import { useState } from 'react'
6
7
  import { HOUSE_KINDS } from '../../review/kinds.ts'
@@ -12,23 +13,26 @@ import type { Resource } from './hub-types.ts'
12
13
  import { Icon, ICON } from './icons.tsx'
13
14
  import type { RepoSt } from './repo-st.ts'
14
15
  import { Age, stampWords } from './time-ago.tsx'
15
- import { useInSight } from './tree-row.tsx'
16
+ import { useInSight } from './in-sight.ts'
17
+ import { tip } from './tips.ts'
16
18
 
17
19
  /** a row of the list, the app's list row: the line whoever logged it wrote, its age at its end in short */
18
20
  const ReflectionRow = observer(({ app, r, on }: { app: RepoSt; r: Resource; on: boolean }) => {
19
21
  const el = useInSight<HTMLButtonElement>(on)
20
22
  const at = reflectionAt(r)
21
23
  return (
22
- <button ref={el} type="button" className={`lrow${on ? ' on' : ''}`} data-k={r.id} aria-current={on ? 'page' : undefined}
23
- title={[r.title, r.file ?? ''].filter((x) => x !== '').join('\n')} onClick={() => app.reflections.open(r.id)}>
24
+ <button ref={el} type="button" className={`lrow${on ? ' on' : ''}`} data-k={r.id} {...listRow(r.id, on)}
25
+ {...tip([r.title, r.file ?? ''].filter((x) => x !== '').join('\n'))} onClick={() => app.reflections.open(r.id)}>
24
26
  <Icon d={ICON.reflections} />
25
27
  <span className="lgrow">{r.title}</span>
26
- {at == null ? null : <span className="ldim lnum" title={stampWords(at)}><Age clock={app.clock} at={at} short /></span>}
28
+ {at == null ? null : <span className="ldim lnum" {...tip(stampWords(at))}><Age clock={app.clock} at={at} short /></span>}
27
29
  </button>
28
30
  )
29
31
  })
30
32
 
31
33
  const WORDS: ColListWords<ReflectionGroupKey> = {
34
+ title: 'reflections',
35
+ tone: { unreadable: 'red', request: 'warn' },
32
36
  search: 'search the reflections',
33
37
  nav: 'the reflections of this repo',
34
38
  band: { unreadable: 'unreadable', request: 'change requests', note: 'notes' },
@@ -74,12 +78,12 @@ const ReflectionObject = observer(({ app, r }: { app: RepoSt; r: Resource }) =>
74
78
  </div>
75
79
  <div className="rv-askopts">
76
80
  {file !== '' ? (
77
- <button type="button" className="rv-askopt" data-act="edit" title="its file whole in the editor: the save is its next version in its thread" onClick={() => docs.open('reflection', key)}>
81
+ <button type="button" className="rv-askopt" data-act="edit" {...tip('its file whole in the editor: the save is its next version in its thread')} onClick={() => docs.open('reflection', key)}>
78
82
  ✎ edit
79
83
  </button>
80
84
  ) : null}
81
85
  {Object.entries(actions).map(([name, a]) => (
82
- <button key={name} type="button" className={`rv-askopt${sent?.name === name ? ' picked' : ''}`} title={a.what ?? name} disabled={busy || file === '' || (a.words === true && text.trim() === '')} onClick={() => void send(name)}>
86
+ <button key={name} type="button" className={`rv-askopt${sent?.name === name ? ' picked' : ''}`} {...tip(a.what ?? name)} disabled={busy || file === '' || (a.words === true && text.trim() === '')} onClick={() => void send(name)}>
83
87
  {a.icon ? `${a.icon} ` : ''}
84
88
  {a.label}
85
89
  </button>
@@ -17,6 +17,7 @@ import { NEXT_PICK } from '../social/social-model.ts'
17
17
  import type { ReleasesSt } from './releases-st.ts'
18
18
  import { ThreadControl } from '../review/thread-control.tsx'
19
19
  import { SectionHead } from '../section-head.tsx'
20
+ import { tip } from '../tips.ts'
20
21
 
21
22
 
22
23
  /** what next.md holds, said over the editor */
@@ -66,7 +67,7 @@ const ChangePicture = observer(({ rs, ch }: { rs: ReleasesSt; ch: Change }) => {
66
67
  </button>
67
68
  </div>
68
69
  ) : null}
69
- <span className={`rel-rating ${ratingOf(shown)}`} title="what this picture shows: a venue takes it only up to its ceiling">
70
+ <span className={`rel-rating ${ratingOf(shown)}`} {...tip('what this picture shows: a venue takes it only up to its ceiling')}>
70
71
  {ratingLabel(shown)}
71
72
  </span>
72
73
  {isClip(shown.url) ? <video key={shown.url} src={rs.src(shown.url)} muted loop autoPlay playsInline /> : <img key={shown.url} src={rs.src(shown.url)} alt={shown.alt} loading="lazy" />}
@@ -106,7 +107,7 @@ export const ChangeCard = observer(({ rs, ch }: { rs: ReleasesSt; ch: Change })
106
107
  <footer>
107
108
  {thread ? <a href={`#${thread}`}>thread</a> : <span>written by hand</span>}
108
109
  {ch.commit ? <code>{ch.commit.slice(0, 8)}</code> : null}
109
- {picturesOf(ch).some((p) => isPrivate(p) && ratingOf(p) === 'safe') ? <span className="rel-private" title="kept private in the Space: sk bump makes it public">private until released</span> : null}
110
+ {picturesOf(ch).some((p) => isPrivate(p) && ratingOf(p) === 'safe') ? <span className="rel-private" {...tip('kept private in the Space: sk bump makes it public')}>private until released</span> : null}
110
111
  </footer>
111
112
  </div>
112
113
  </article>
@@ -167,7 +168,7 @@ export const ReleasePost = ({ r, drafts }: { r: Release; drafts: Record<string,
167
168
  {slug == null ? (
168
169
  'no post staged for this version'
169
170
  ) : (
170
- <a href={`#${hashFor({ t: 'comms', draft: slug })}`} title={r.version === NEXT ? 'not staged yet: the draft a release would stage from next.md' : `the draft ${slug}`}>
171
+ <a href={`#${hashFor({ t: 'comms', draft: slug })}`} {...tip(r.version === NEXT ? 'not staged yet: the draft a release would stage from next.md' : `the draft ${slug}`)}>
171
172
  📤 {r.version === NEXT ? 'its post, as the release would stage it' : 'its post draft in Communications'}
172
173
  </a>
173
174
  )}
@@ -194,7 +195,7 @@ export const ReleasesPage = observer(({ app }: { app: RepoSt }) => {
194
195
  </button>
195
196
  ))}
196
197
  {rs.view && !rs.releases.some((x) => x.version === NEXT) && rs.docs.editor == null ? (
197
- <button type="button" className="ghost" title="start next.md, or open it when it does not parse" onClick={() => rs.startEdit()}>
198
+ <button type="button" className="ghost" {...tip('start next.md, or open it when it does not parse')} onClick={() => rs.startEdit()}>
198
199
  + next
199
200
  </button>
200
201
  ) : null}
@@ -219,7 +220,7 @@ export const ReleasesPage = observer(({ app }: { app: RepoSt }) => {
219
220
  {r.version === NEXT ? 'Next release' : r.version}
220
221
  {r.title ? `: ${r.title}` : ''}
221
222
  {r.version === NEXT ? (
222
- <button type="button" className="ghost rel-edit-btn" title="next.md whole, as markdown" onClick={() => rs.startEdit()}>
223
+ <button type="button" className="ghost rel-edit-btn" {...tip('next.md whole, as markdown')} onClick={() => rs.startEdit()}>
223
224
  ✎ Edit
224
225
  </button>
225
226
  ) : null}
@@ -1,10 +1,10 @@
1
1
  // A repo page's sections: the pages reached for most, threads first and the
2
- // README down by the wikis, the top rows of the left pane's tree (tree-row.tsx draws them the way the project list draws its
3
- // lines: an icon, a label, a count where it says something, its ⌥ shortcut at
4
- // the end, keys.ts, the current one lit). Every repo draws the same rows, so
2
+ // README in the wikis, the main panel's entries (main-panel.tsx draws them: an icon, a label, a count where it says
3
+ // something, its ⌥ shortcut while ⌥ is held, keys.ts, the current one lit). Every repo draws the same rows, so
5
4
  // the list reads the same from repo to repo: a section this repo has nothing
6
- // in is a greyed row, and only opens a page that can say it is empty (the
7
- // processes page). Plan, git and admin come from the machine, so a hub of its
5
+ // in is a greyed row, read cheaply (the collections), and its page shows the
6
+ // empty page only once that page's own data answered and holds nothing (Gap):
7
+ // a store the collections miss still shows. Plan, git and admin come from the machine, so a hub of its
8
8
  // own has none of the three. The counts read the severity filter, like everything under them,
9
9
  // and come from what the page already holds (the kept screen on a reload), so
10
10
  // none arrives late and moves the tree.
@@ -13,19 +13,35 @@ import { MESSAGES_COL, RELEASES_COL, REVIEW_COL, RUNS_ID, STORES_COL, TRAILER_CO
13
13
  import type { CheckOwner, HashSel } from './hash-route.ts'
14
14
  import { sectionLabel, type SectionId } from './keys.ts'
15
15
  import type { RepoSt } from './repo-st.ts'
16
- import { passesFilter } from './tree-build.ts'
16
+ import { KIND_SECTION, passesFilter } from './tree-build.ts'
17
17
  import { openWikis, WIKIS } from './wikis-view.tsx'
18
18
 
19
+ /** what an empty section lacks, as its empty page says it (empty-section.tsx): why it is empty, how a first one comes,
20
+ * and the command that makes it when one does */
21
+ export type Lack = { none: string; fill: string; cmd: string | null }
22
+
23
+ /** what the page itself read: null until it answered, else whether it holds nothing. `hold` keeps that read going
24
+ * while the empty page shows, so a first one appears without a reload */
25
+ type Own = { bare: boolean | null; hold?: () => () => void }
26
+
27
+ /** a section that can be empty: `rail` greys its row before its page read anything (the collections, what the tree
28
+ * already holds); the page's own answer wins once there is one */
29
+ type Gap = Own & { rail: boolean; why: Lack }
30
+
19
31
  export type RepoSection = {
20
32
  id: SectionId
21
33
  label: string
34
+ /** what the page is for, in one line */
22
35
  title: string
23
36
  /** null when a number would say nothing */
24
37
  count: number | null
25
- /** this repo has nothing there: the row is greyed */
38
+ /** this repo has nothing there: the row is greyed, its words why and how a first one comes (lack) */
26
39
  empty: boolean
27
- /** its click opens a page: false for an empty section with no empty page */
28
- opens: boolean
40
+ lack: Lack | null
41
+ /** its page's own data answered and holds nothing: the empty page shows in its place (empty-section.tsx); null
42
+ * while it has not answered */
43
+ bare: boolean | null
44
+ hold?: () => () => void
29
45
  tone: 'red' | 'warn' | null
30
46
  /** the count says what waits, nothing new: drawn outlined, never filled */
31
47
  quiet?: boolean
@@ -44,6 +60,8 @@ export function sectionOfSel(sel: HashSel | null, ownerOf: (checkItemId: string)
44
60
  case 'readme': return 'readme'
45
61
  case 'processes': return 'processes'
46
62
  case 'urls': return 'urls'
63
+ // a source's row: no repo section, its own line in the panel's source section lights
64
+ case 'src': return null
47
65
  case 'plan': return 'plan'
48
66
  case 'git': return 'git'
49
67
  case 'commands': return 'commands'
@@ -82,9 +100,53 @@ export function sectionOfSel(sel: HashSel | null, ownerOf: (checkItemId: string)
82
100
  /** the section a repo's current page belongs to, a check read off its
83
101
  * resource for whose it is */
84
102
  export const sectionOfRepo = (app: RepoSt): SectionId | null =>
85
- sectionOfSel(app.sel, (id) => app.cols.find('checks', id)?.check?.from ?? null)
103
+ sectionOfSel(app.sel, (id) => app.cols.find('checks', id)?.check?.from ?? null) ?? sectionOfListed(app)
104
+
105
+ /** a collection's page the table above names no section for (the comfy workflows, the posts): the section the tree
106
+ * lists its rows under (KIND_SECTION), so a row of an entry's list never opens a page outside its entry */
107
+ function sectionOfListed(app: RepoSt): SectionId | null {
108
+ const sel = app.sel
109
+ if (sel?.t !== 'col' && sel?.t !== 'item') return null
110
+ const col = sel.t === 'col' ? sel.id : sel.col
111
+ // the checks have owners the table above reads: their whole table, and a check of no owner, light none
112
+ if (col === 'checks') return null
113
+ const kind = app.cols.resources.find((r) => r.collection === col)?.type
114
+ return kind == null ? null : KIND_SECTION[kind]
115
+ }
86
116
 
87
117
  /** open a section's own page, through the calls a click makes */
118
+ /** the address of a section's page as a new tab loads it: the page on its default, the address openSection writes
119
+ * when nothing on it is picked */
120
+ export function sectionSel(app: RepoSt, id: SectionId): HashSel {
121
+ switch (id) {
122
+ case 'readme': return { t: 'readme' }
123
+ case 'contracts': return { t: 'col', id: 'contracts' }
124
+ case 'shipkit': case 'repo': return { t: 'checks', from: id }
125
+ case 'secrets': return { t: 'col', id: 'creds' }
126
+ case 'runs': return { t: 'item', col: 'runs', id: RUNS_ID }
127
+ case 'processes': return { t: 'processes', id: null }
128
+ case 'urls': return { t: 'urls', id: null }
129
+ case 'plan': return { t: 'plan' }
130
+ case 'git': return { t: 'git' }
131
+ case 'commands': return { t: 'commands', cmd: null }
132
+ case 'when': return { t: 'when' }
133
+ case 'reflections': return { t: 'col', id: 'reflections' }
134
+ case 'asks': return { t: 'col', id: 'asks' }
135
+ case 'tests': return { t: 'tests', check: null }
136
+ case 'media': return { t: 'cat', cat: app.media.assets[0]?.cat ?? app.cols.cachedCat ?? '' }
137
+ case 'wikis': return { t: 'col', id: WIKIS }
138
+ case 'admin': return { t: 'admin' }
139
+ case 'review': return { t: 'review', id: null }
140
+ case 'trailer': return { t: 'trailer', trailer: null, cut: null }
141
+ case 'stores': return { t: 'stores', store: null }
142
+ case 'releases': return { t: 'releases', version: null }
143
+ case 'messages': return { t: 'messages', tab: 'messages' }
144
+ case 'veille': return { t: 'veille', post: null }
145
+ case 'comms': return { t: 'comms', draft: null }
146
+ case 'social': return { t: 'social', identity: null }
147
+ }
148
+ }
149
+
88
150
  export function openSection(app: RepoSt, id: SectionId): void {
89
151
  switch (id) {
90
152
  case 'readme': return app.showReadme()
@@ -102,9 +164,9 @@ export function openSection(app: RepoSt, id: SectionId): void {
102
164
  case 'asks': return app.showCol('asks')
103
165
  case 'tests': return app.showTests(null)
104
166
  case 'media': {
167
+ // no asset kit: the empty page of the media (empty-section.tsx), on no category
105
168
  const cat = app.media.assets[0]?.cat ?? app.cols.cachedCat ?? undefined
106
- if (cat != null) app.showCat(cat)
107
- return
169
+ return cat != null ? app.showCat(cat) : app.setSel({ t: 'cat', cat: '' })
108
170
  }
109
171
  case 'wikis': return openWikis(app)
110
172
  case 'admin': return app.showAdmin()
@@ -119,9 +181,11 @@ export function openSection(app: RepoSt, id: SectionId): void {
119
181
  }
120
182
  }
121
183
 
122
- /** the sections whose page says it is empty, so an empty row still opens it: the review and trailer pages say how a
123
- * first version or a first cut comes */
124
- const EMPTY_PAGES = new Set<SectionId>(['processes', 'urls', 'review', 'trailer'])
184
+ /** the sections whose own page says it is empty: the review and trailer pages say how a first version or a first cut
185
+ * comes; every other empty section opens on the one empty page (empty-section.tsx) */
186
+ export const OWN_EMPTY: ReadonlySet<SectionId> = new Set<SectionId>(['review', 'trailer'])
187
+
188
+ const lack = (none: string, fill: string, cmd: string | null = null): Lack => ({ none, fill, cmd })
125
189
 
126
190
  export function repoSections(app: RepoSt): RepoSection[] {
127
191
  const has = (col: string): boolean => app.cols.colMeta.some((c) => c.id === col)
@@ -129,61 +193,86 @@ export function repoSections(app: RepoSt): RepoSection[] {
129
193
  const res = app.cols.resources.filter((r) => passesFilter(r, app.filter))
130
194
  const reds = (col: string): number => res.filter((r) => r.collection === col && r.state === 'red').length
131
195
  const none = { count: null, tone: null }
132
- const line = (id: SectionId, title: string, count: Pick<RepoSection, 'count' | 'tone' | 'quiet'>, empty: string | null = null): RepoSection => {
133
- const opens = empty == null || EMPTY_PAGES.has(id)
134
- return { id, label: sectionLabel(id), title: empty ?? title, ...(empty == null ? count : none), empty: empty != null, opens, on: opens && cur === id, go: opens ? () => openSection(app, id) : () => {} }
196
+ // the collections answered (or a kept screen of them): a page drawn from them reads its emptiness there
197
+ const colsRead = app.cols.loaded || app.cols.cached
198
+ // every section opens, an empty one too: ⌘↑ ⌘↓ step through every row, and its page says why it is empty
199
+ const line = (id: SectionId, title: string, count: Pick<RepoSection, 'count' | 'tone' | 'quiet'>, g: Gap | null = null): RepoSection => {
200
+ const bare = g == null ? false : g.bare
201
+ const empty = g != null && (bare ?? g.rail)
202
+ return { id, label: sectionLabel(id), title, ...(empty ? none : count), empty, lack: empty ? g.why : null, bare, ...(g?.hold ? { hold: g.hold } : {}), on: cur === id, go: () => openSection(app, id) }
135
203
  }
136
204
  const out: RepoSection[] = []
137
205
  const ownReds = (from: CheckOwner): number => res.filter((r) => r.check?.from === from && r.state === 'red').length
138
- const unless = (on: boolean, why: string): string | null => (on ? null : why)
206
+ /** a section drawn from the collections: empty where its collection is missing, once they answered */
207
+ const unless = (on: boolean, why: Lack): Gap => ({ rail: !on, why, bare: colsRead ? !on : null })
208
+ /** a section whose page reads its own route: the rail greys it from `rail`, the page from what it read */
209
+ const own = (rail: boolean, why: Lack, o: Own): Gap => ({ rail, why, ...o })
210
+ const held = (r: { start(): void; stop(): void }) => (): (() => void) => (r.start(), () => r.stop())
139
211
  // threads first, then trailer: the pages he answers
140
212
  // the threads row: what is new to him filled (review/owner-read.ts), else his turn outlined; a repo the rail does not
141
213
  // list (a hub of its own) fills its turn
142
214
  const yours = res.filter((r) => r.type === 'thread').length
143
- const listed = app.home.projects.list.find((p) => p.name === app.name)
215
+ const listed = app.home.projects.list.find((p) => p.name === app.houseName)
144
216
  const unread = listed?.unread.length ?? 0
145
217
  const threads: Pick<RepoSection, 'count' | 'tone' | 'quiet'> = unread > 0 ? counted(unread, 'warn') : listed !== undefined && yours > 0 ? { ...counted(yours, 'warn'), quiet: true } : counted(yours, 'warn')
146
218
  out.push(line('review', unread > 0 ? `${unread} thread${unread === 1 ? '' : 's'} with something new since you read ${unread === 1 ? 'it' : 'them'}` : listed !== undefined && yours > 0 ? `${yours} thread${yours === 1 ? '' : 's'} wait on you, nothing new` : 'the threads between you and the agents, your turn first: approve, fix, reject, circle a detail, answer a question, apply a change', threads,
147
- unless(has(REVIEW_COL), 'no thread yet: an agent starts one with sk thread post <address>')))
219
+ unless(has(REVIEW_COL), lack('no thread yet', 'an agent starts one the first time it shows you a change', 'sk thread post <address>'))))
148
220
  out.push(line('trailer', 'the trailer cuts: play one with its timeline, pin a note on any frame, record the lines your own voice reads', counted(res.filter((r) => r.type === 'voice').length, 'warn'),
149
- unless(has(TRAILER_COL), 'no trailer: write trailer/<name>/main.trailer, then sk trailer')))
221
+ unless(has(TRAILER_COL), lack('no trailer yet', 'write trailer/<name>/main.trailer, then render its cuts', 'sk trailer'))))
222
+ const so = app.stores
150
223
  out.push(line('stores', 'the store pages (Steam, itch): every text to paste, every picture to upload, a note on each', none,
151
- unless(has(STORES_COL), 'no store page: write .shipkit/steam/store.md or .shipkit/itch/listing.md')))
224
+ own(!has(STORES_COL), lack('no store page yet', 'write .shipkit/steam/store.md, .shipkit/itch/listing.md or .shipkit/chrome-web-store/listing.md: one section a field of the store form'), { bare: so.desk == null ? null : so.stores.length === 0, hold: held(so) })))
225
+ const rs = app.releases
226
+ // a release file that does not parse is no release yet, and the page says why
152
227
  out.push(line('releases', 'the release notes: next first, then each version, each change a card with its picture and its thread', none,
153
- unless(has(RELEASES_COL), 'no releases: an approved version sent with --changelog starts .shipkit/releases/next.md')))
228
+ own(!has(RELEASES_COL), lack('no release yet', 'an approved version sent with --changelog starts .shipkit/releases/next.md; a thread you approved goes in with', 'sk releases add --thread <id>'),
229
+ { bare: rs.view == null ? null : rs.releases.length === 0 && rs.view.errors.length === 0, hold: held(rs) })))
230
+ const mv = app.messages.view
154
231
  out.push(line('messages', 'the messages a public line says, each phrasing scored by simulated readers: value for its cost, personas, page tops, notes', none,
155
- unless(has(MESSAGES_COL), 'no messages: write .shipkit/messages/messages.md, then sk messages lint')))
232
+ own(!has(MESSAGES_COL), lack('no persona and no message yet', 'propose the first persona, then the messages it reads; each one you approve lands in .shipkit/messages/', 'sk messages propose persona <id> --role reader --who "…" "<why>"'),
233
+ { bare: app.messages.none ? true : mv == null ? null : mv.messages.length + mv.personas.length + mv.surfaces.length === 0, hold: held(app.messages) })))
234
+ const vl = app.veille
156
235
  out.push(line('veille', 'the posts its identity scrolls past, ranked by the worth of a reply, a reply drafted in its voice', none,
157
- unless(has(VEILLE_COL), "no Veille: the identity this repo speaks as has no watch list (its veille.md)")))
236
+ own(!has(VEILLE_COL), lack('no watch list yet', 'the identity this repo speaks as needs a veille.md: the accounts and the words it watches'), { bare: vl.none ? true : vl.feed == null ? null : false, hold: held(vl) })))
158
237
  // every repo has both: a repo with no draft yet still opens the page that says how a first one comes
159
238
  out.push(line('comms', 'every draft of the repo, posted from one page: a card a platform, its link pasted back', none))
160
239
  out.push(line('social', 'every identity side by side, its accounts and places, its setup and its messages', none))
161
- out.push(line('contracts', 'what a release venue asks of this repo, and what it still lacks', counted(reds('contracts'), 'red'), unless(has('contracts'), 'no contract: no release venue applies to this repo')))
162
- const noChecks = unless(has('checks'), 'no checks yet: its hub has not answered')
240
+ out.push(line('contracts', 'what a release venue asks of this repo, and what it still lacks', counted(reds('contracts'), 'red'), unless(has('contracts'), lack('no contract yet', 'a release venue in repo.config.ts (npm, itch, Steam…) brings what it asks of this repo'))))
241
+ const noChecks = unless(has('checks'), lack('no check yet', 'the hub reads them from the gate: run it once', 'sk ci'))
163
242
  out.push(line('shipkit', 'the checks shipkit ships to every repo, one page each', counted(ownReds('shipkit'), 'red'), noChecks))
164
243
  out.push(line('repo', 'the checks this repo declares itself, one page each', counted(ownReds('repo'), 'red'), noChecks))
165
- out.push(line('secrets', 'the credentials this repo needs, present or missing', counted(reds('creds'), 'red'), unless(has('creds'), 'no secrets: this repo needs no credential')))
244
+ // the page reads its own route: every name the repo reads, its identity's and the house's with its own
245
+ const sv = app.secrets.view
246
+ out.push(line('secrets', 'the secrets this repo reads, by who reads them: its own, its identity\'s, every repo\'s', counted(reds('creds'), 'red'),
247
+ own(!has('creds'), lack('no secret yet', 'a service this repo calls brings its credential, stored in the vault', 'sk secret set <name>'), { bare: sv == null ? null : sv.rows.length === 0, hold: held(app.secrets) })))
166
248
  out.push(line('when', 'what runs when: every check on every context (commit, ci, full, release, health, save, clock), with the legend', none, noChecks))
167
249
  // a page, never a resource: every hub keeps a run record
168
250
  out.push(line('runs', 'every run on record, the slowest checks and the longest runs', none))
169
251
  // the plan and git come from the machine, so a hub of its own has neither
170
252
  if (app.home.machine != null) out.push(line('plan', 'what the machine runs here on its own time, and when', none))
171
253
  const procs = app.processStates
254
+ // a hub of its own talks to no pm, so it has none; on the machine, none until pm answered
255
+ const pmRead = app.home.machine == null || app.home.machine.pm != null
256
+ // the rows of the project's other places count too: a project moved to another machine still lists its own
257
+ const elsewhere = app.urls.places
258
+ const noProc = procs.length === 0 && elsewhere.processes.length === 0
172
259
  out.push(line('processes', 'the processes this repo declares: start, stop, open, their description and their log', counted(procs.filter((r) => r.dot === 'crashed').length, 'red'),
173
- unless(procs.length > 0, 'no process: this repo declares no global process (a <id>.shipkit.ts file with globalProcess adds one)')))
174
- out.push(line('urls', 'every url of the repo, dev and prod: a click frames one, a click copies its login', none,
175
- unless(app.urls.list.length > 0, 'no url: a global process with a url, a urls([...]) unit or smoke.base adds one')))
260
+ own(noProc, lack('no process yet', 'a <id>.shipkit.ts file with globalProcess declares one; pm starts it on its own'), { bare: pmRead ? noProc : null })))
261
+ const noUrl = app.urls.list.length === 0 && elsewhere.urls.length === 0
262
+ out.push(line('urls', 'every url of the repo, dev, prod and ext: a click frames one, a click copies its login', none,
263
+ own(noUrl, lack('no url yet', 'a global process with a url, a urls([...]) unit or smoke.base in repo.config.ts adds one'), { bare: app.urls.loaded ? noUrl : null })))
176
264
  if (app.home.machine != null) out.push(line('git', 'the branch, its upstream, what is not committed, the last commits', none))
177
265
  out.push(line('commands', "the repo's project CLI: every command with its description, run from here, its log live", counted(app.commands.running, 'warn'),
178
- unless(app.hasCli, 'no project CLI: package.json has no `cli` script')))
266
+ own(!app.hasCli, lack('no project CLI yet', 'a cli script in package.json: each command it registers runs from here'), { bare: app.hubRead ? !app.hasCli : null })))
179
267
  const open = res.filter((r) => r.collection === 'asks' && r.type === 'ask' && !isClosedAskState(r.slot) && r.ask?.later !== true).length
180
- out.push(line('asks', 'what waits on a human', counted(open, 'warn'), unless(has('asks'), 'no asks: nothing has ever waited on a human here')))
181
- out.push(line('reflections', 'friction this repo logged against the wiki, waiting to be folded in', counted(res.filter((r) => r.type === 'reflection').length, 'warn'), unless(has('reflections'), 'no reflections: this repo logged no friction')))
182
- out.push(line('tests', 'every test file, slowest first, then each test check', counted(reds('tests'), 'red'), unless(has('tests'), 'no tests: this repo has no test file')))
183
- out.push(line('media', 'the assets, in the atelier', none, unless((app.media.assets[0]?.cat ?? app.cols.cachedCat) != null, 'no media: this repo has no asset kit')))
268
+ out.push(line('asks', 'what waits on a human', counted(open, 'warn'), unless(has('asks'), lack('no ask yet', 'an agent asks here for an act only you can do', 'sk ask "<title>" --why "<line>"'))))
269
+ out.push(line('reflections', 'friction this repo logged against the wiki, waiting to be folded in', counted(res.filter((r) => r.type === 'reflection').length, 'warn'), unless(has('reflections'), lack('no reflection yet', 'an agent logs here the friction it met with the wiki', 'sk thread reflect "<title>" --body <file>'))))
270
+ out.push(line('tests', 'every test file, slowest first, then each test check', counted(reds('tests'), 'red'), unless(has('tests'), lack('no test yet', 'a *.test.ts file beside the code it tests; the gate runs it', 'sk ci'))))
271
+ const noAsset = (app.media.assets[0]?.cat ?? app.cols.cachedCat) == null
272
+ out.push(line('media', 'the assets, in the atelier', none, own(noAsset, lack('no asset yet', 'an asset kit declares what to make; the atelier rolls each one', 'sk assets add 1'), { bare: noAsset ? (app.media.listed ? true : null) : false })))
184
273
  // the README sits by the wikis, the pages that say what the repo is
185
274
  out.push(line('readme', 'the README, what the repo is', none))
186
- out.push(line('wikis', 'every wiki this repo mounts, as a link graph', none, unless(has(WIKIS), 'no wiki: this repo mounts none')))
275
+ out.push(line('wikis', 'every wiki this repo mounts, as a link graph', none, unless(has(WIKIS), lack('no wiki yet', 'an agent/ folder with an index.md at the repo root is its wiki'))))
187
276
  if (app.home.machine != null) out.push(line('admin', 'reload the hub, keep the repo active, archive it', none))
188
277
  return out
189
278
  }