rvlib-shipkit 2.13.0 โ†’ 2.15.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 (270) hide show
  1. package/CHANGELOG.md +38 -13
  2. package/package.json +1 -1
  3. package/src/assets/run-assets.ts +2 -2
  4. package/src/assets/server/studio-server.ts +27 -23
  5. package/src/check.ts +3 -3
  6. package/src/checks/SK001-package-json-shape.check.ts +4 -4
  7. package/src/checks/SK002-contracts-fulfillness.check.ts +2 -2
  8. package/src/checks/SK003-claude-md-shape.check.ts +19 -12
  9. package/src/checks/SK004-gitignore-policy.check.ts +18 -4
  10. package/src/checks/SK005-rvlib-versions.check.ts +1 -1
  11. package/src/checks/SK006-npm-publish-safety.check.ts +3 -3
  12. package/src/checks/SK007-github-visibility.check.ts +2 -2
  13. package/src/checks/SK008-reviewer-agent.check.ts +1 -1
  14. package/src/checks/SK010-undeclared-unit.check.ts +2 -2
  15. package/src/checks/SK011-sibling-unit-ranges.check.ts +2 -2
  16. package/src/checks/SK012-config-barrel-import.check.ts +1 -1
  17. package/src/checks/SK013-one-way-in-policy.check.ts +2 -2
  18. package/src/checks/SK015-nested-repo.check.ts +2 -2
  19. package/src/checks/SK016-legacy-check-shapes.check.ts +2 -2
  20. package/src/checks/SK017-vscode-hub-task.check.ts +2 -2
  21. package/src/checks/SK018-test-files-run.check.ts +2 -2
  22. package/src/checks/SK019-tests-run-in-units.check.ts +2 -2
  23. package/src/checks/SK020-self-spawning-check.check.ts +2 -2
  24. package/src/checks/SK022-machine-runs-the-pin.check.ts +2 -2
  25. package/src/checks/SK024-identity-colors.check.ts +1 -1
  26. package/src/checks/SK025-release-drift.check.ts +2 -2
  27. package/src/checks/SK026-asks-autoclose.check.ts +2 -2
  28. package/src/checks/SK027-agent-wiki-links.check.ts +8 -2
  29. package/src/checks/SK028-readme.check.ts +2 -2
  30. package/src/checks/SK029-explicit-check-files.check.ts +3 -3
  31. package/src/checks/SK030-cache-audit.check.ts +7 -5
  32. package/src/checks/SK031-trace-audit.check.ts +7 -7
  33. package/src/checks/SK032-ignored-inputs.check.ts +3 -3
  34. package/src/checks/SK033-global-contribution.check.ts +11 -4
  35. package/src/checks/SK034-commit-gates-armed.check.ts +2 -2
  36. package/src/checks/SK035-public-clean.check.ts +4 -4
  37. package/src/checks/SK036-draft-media-size.check.ts +2 -2
  38. package/src/checks/SK037-keyword-additions.check.ts +43 -0
  39. package/src/cli/cmd_Backup.ts +2 -2
  40. package/src/cli/cmd_Commands.ts +4 -4
  41. package/src/cli/cmd_ConfigKeys.ts +2 -2
  42. package/src/cli/cmd_Drill.ts +30 -1
  43. package/src/cli/cmd_Home.ts +1 -1
  44. package/src/cli/cmd_Init.ts +1 -1
  45. package/src/cli/cmd_Media.ts +5 -5
  46. package/src/cli/cmd_Mv.ts +14 -7
  47. package/src/cli/cmd_Review.ts +2 -2
  48. package/src/cli/cmd_Smoke.ts +1 -1
  49. package/src/cli/cmd_Social.ts +3 -3
  50. package/src/cli/cmd_Sound.ts +1 -1
  51. package/src/cli/cmd_TraceAudit.ts +6 -6
  52. package/src/cli/cmd_Trailer.ts +2 -2
  53. package/src/cli/cmd_Veille.ts +2 -2
  54. package/src/cli/cmd_When.ts +2 -2
  55. package/src/cli/family-pages.ts +19 -19
  56. package/src/cli/registry.ts +2 -1
  57. package/src/collections/collection-types.ts +2 -2
  58. package/src/collections/review.ts +1 -1
  59. package/src/comfy/comfy-panel.ts +2 -2
  60. package/src/contracts/manifests/discord.contract.ts +1 -1
  61. package/src/contracts/manifests/identity.contract.ts +1 -1
  62. package/src/contracts/manifests/itch.contract.ts +1 -1
  63. package/src/contracts/manifests/steam.contract.ts +1 -1
  64. package/src/core/agent-dir-at.ts +12 -0
  65. package/src/core/agent-dir.ts +28 -0
  66. package/src/core/budget.ts +1 -1
  67. package/src/core/canonical-scripts.ts +2 -2
  68. package/src/core/discover-checks.ts +1 -1
  69. package/src/core/global-contribution.ts +4 -1
  70. package/src/core/ignored-block.ts +1 -1
  71. package/src/core/ignored-inputs.ts +3 -2
  72. package/src/core/layout.ts +3 -3
  73. package/src/core/loop-watch.ts +1 -1
  74. package/src/core/motherhome.ts +2 -2
  75. package/src/core/one-way-in-policy.ts +8 -8
  76. package/src/core/run-ci.ts +3 -3
  77. package/src/core/runs-matrix.ts +1 -1
  78. package/src/core/slots.ts +14 -5
  79. package/src/core/trace-audit.ts +50 -9
  80. package/src/core/tree-rev.ts +1 -1
  81. package/src/drill/clean.ts +54 -0
  82. package/src/drill/run.ts +1 -1
  83. package/src/home/daemon-jobs.ts +1 -1
  84. package/src/home/global-context.ts +11 -8
  85. package/src/home/gui-app/ShipkitGui.swift +91 -2
  86. package/src/home/inbox-shape.ts +1 -1
  87. package/src/home/inbox.ts +1 -1
  88. package/src/home/pm-config.ts +4 -1
  89. package/src/home/pm-inputs.ts +2 -0
  90. package/src/home/resources.ts +7 -2
  91. package/src/home/run-pm.ts +1 -1
  92. package/src/home/serve-web.ts +2 -2
  93. package/src/hooks/commit-message.ts +1 -1
  94. package/src/hooks/hook-gates.ts +1 -1
  95. package/src/hooks/leak-guard.ts +61 -8
  96. package/src/hooks/run-hooks.ts +18 -18
  97. package/src/identities/identities.ts +1 -1
  98. package/src/identities/machine-route.ts +1 -1
  99. package/src/identities/machine.ts +1 -1
  100. package/src/init-repo.ts +2 -2
  101. package/src/ledger/gate-checks.ts +1 -1
  102. package/src/ledger/record-kept.ts +1 -1
  103. package/src/media-kinds.ts +1 -1
  104. package/src/media-store/backup/daemon.ts +1 -1
  105. package/src/media-store/backup/keys.ts +1 -1
  106. package/src/media-store/backup/manifest.ts +1 -1
  107. package/src/media-store/backup/restore.ts +1 -1
  108. package/src/media-store/backup/run.ts +1 -1
  109. package/src/media-store/backup/secret.ts +1 -1
  110. package/src/media-store/backup/snapshot.ts +1 -1
  111. package/src/media-store/backup/sources.ts +1 -1
  112. package/src/media-store/content.ts +1 -1
  113. package/src/media-store/daemon.ts +1 -1
  114. package/src/media-store/db.ts +1 -1
  115. package/src/media-store/fact.ts +1 -1
  116. package/src/media-store/hand.ts +1 -1
  117. package/src/media-store/kind.ts +1 -1
  118. package/src/media-store/purge.ts +1 -1
  119. package/src/media-store/put.ts +1 -1
  120. package/src/media-store/remote.ts +1 -1
  121. package/src/media-store/space.ts +1 -1
  122. package/src/mv/mv-md.ts +63 -22
  123. package/src/pages/forward.ts +1 -1
  124. package/src/pages/frame-client.ts +1 -1
  125. package/src/pages/routes.ts +1 -1
  126. package/src/pages/unit.ts +1 -1
  127. package/src/plan/planner.ts +1 -1
  128. package/src/plan/repo-source.ts +1 -1
  129. package/src/release/public-clean.ts +25 -7
  130. package/src/release/run-bump.ts +1 -1
  131. package/src/release/run-release.ts +3 -3
  132. package/src/repo-config.ts +23 -16
  133. package/src/review/anim.ts +1 -1
  134. package/src/review/auto.ts +1 -1
  135. package/src/review/cells.ts +15 -1
  136. package/src/review/format.ts +2 -2
  137. package/src/review/marks.ts +1 -1
  138. package/src/review/media-kind.ts +1 -1
  139. package/src/review/media-read.ts +1 -1
  140. package/src/review/model.ts +14 -4
  141. package/src/review/notes.ts +52 -4
  142. package/src/review/previews.ts +1 -1
  143. package/src/review/project.ts +1 -1
  144. package/src/review/role.ts +1 -1
  145. package/src/review/routes.ts +14 -2
  146. package/src/review/store.ts +2 -2
  147. package/src/review/threads.ts +1 -1
  148. package/src/review/trailer-desk.ts +3 -3
  149. package/src/review/trailer-media.ts +1 -1
  150. package/src/review/trailer-model.ts +1 -1
  151. package/src/review/trailer-routes.ts +1 -1
  152. package/src/review/trailer-shots.ts +1 -1
  153. package/src/review/unit.ts +1 -1
  154. package/src/scaffold/files/tsconfig.json +1 -1
  155. package/src/scaffold/project-scaffold.ts +1 -1
  156. package/src/serve/embed.ts +1 -1
  157. package/src/serve/hub-app/check-words.ts +1 -1
  158. package/src/serve/hub-app/frames-st.ts +1 -1
  159. package/src/serve/hub-app/hash-route.ts +1 -1
  160. package/src/serve/hub-app/home-st.ts +1 -1
  161. package/src/serve/hub-app/home-strip.css +1 -1
  162. package/src/serve/hub-app/hub-app.tsx +2 -2
  163. package/src/serve/hub-app/identities-st.ts +1 -1
  164. package/src/serve/hub-app/identities-view.tsx +5 -4
  165. package/src/serve/hub-app/identity-address.ts +1 -1
  166. package/src/serve/hub-app/inbox-st.ts +1 -1
  167. package/src/serve/hub-app/inbox-view.tsx +1 -1
  168. package/src/serve/hub-app/kept-cols.tsx +30 -0
  169. package/src/serve/hub-app/keys.ts +1 -1
  170. package/src/serve/hub-app/media-svc.ts +1 -1
  171. package/src/serve/hub-app/pages-frames.tsx +1 -1
  172. package/src/serve/hub-app/pages-svc.ts +1 -1
  173. package/src/serve/hub-app/projects-svc.ts +1 -1
  174. package/src/serve/hub-app/repo-st.ts +1 -1
  175. package/src/serve/hub-app/review/review-board.tsx +1 -1
  176. package/src/serve/hub-app/review/review-cells.tsx +3 -2
  177. package/src/serve/hub-app/review/review-page.tsx +5 -4
  178. package/src/serve/hub-app/review/review-st.ts +15 -7
  179. package/src/serve/hub-app/review/review-thread.tsx +52 -5
  180. package/src/serve/hub-app/review/review-views.tsx +50 -33
  181. package/src/serve/hub-app/review/thread-st.ts +79 -27
  182. package/src/serve/hub-app/review/trailer-page.tsx +5 -4
  183. package/src/serve/hub-app/review/trailer-st.ts +1 -1
  184. package/src/serve/hub-app/review.css +9 -1
  185. package/src/serve/hub-app/site/site-part.tsx +1 -1
  186. package/src/serve/hub-app/site/site-st.ts +1 -1
  187. package/src/serve/hub-app/social/calendar.tsx +1 -1
  188. package/src/serve/hub-app/social/comms-page.tsx +29 -5
  189. package/src/serve/hub-app/social/kit.tsx +1 -1
  190. package/src/serve/hub-app/social/post-card.tsx +1 -1
  191. package/src/serve/hub-app/social/social-model.ts +1 -1
  192. package/src/serve/hub-app/social/social-page.tsx +12 -5
  193. package/src/serve/hub-app/social/social-st.ts +31 -3
  194. package/src/serve/hub-app/social.css +1 -1
  195. package/src/serve/hub-app/stores/stores-page.tsx +5 -4
  196. package/src/serve/hub-app/stores/stores-st.ts +1 -1
  197. package/src/serve/hub-app/stores.css +1 -1
  198. package/src/serve/hub-app/tree-row.tsx +1 -1
  199. package/src/serve/hub-app/veille/veille-page.tsx +5 -4
  200. package/src/serve/hub-app/veille/veille-st.ts +1 -1
  201. package/src/serve/hub-app/veille.css +1 -1
  202. package/src/serve/hub-runtime.ts +6 -2
  203. package/src/serve/project-gutter-route.ts +1 -1
  204. package/src/shot/box.ts +5 -7
  205. package/src/shot/browser-slot.ts +18 -6
  206. package/src/shot/client.ts +1 -2
  207. package/src/shot/clip-encoder.ts +16 -13
  208. package/src/shot/film-box.ts +132 -28
  209. package/src/shot/shooter.ts +21 -2
  210. package/src/shot/stepped-clip.ts +1 -1
  211. package/src/site/desk.ts +2 -2
  212. package/src/site/routes.ts +1 -1
  213. package/src/site/unit.ts +1 -1
  214. package/src/social/card-drafts.ts +24 -0
  215. package/src/social/compose.ts +2 -2
  216. package/src/social/desk-index.ts +1 -1
  217. package/src/social/desk-wire.ts +1 -1
  218. package/src/social/drafts.ts +3 -3
  219. package/src/social/load.ts +14 -1
  220. package/src/social/media-facts.ts +1 -1
  221. package/src/social/media-kind.ts +1 -1
  222. package/src/social/media-limit.ts +1 -1
  223. package/src/social/media-of.ts +1 -1
  224. package/src/social/migrate.ts +1 -1
  225. package/src/social/post-url.ts +1 -1
  226. package/src/social/presence.ts +2 -2
  227. package/src/social/public-read.ts +1 -1
  228. package/src/social/publish/bluesky.ts +1 -1
  229. package/src/social/publish/discord.ts +1 -1
  230. package/src/social/push.ts +10 -4
  231. package/src/social/richtext.ts +1 -1
  232. package/src/social/routes.ts +10 -4
  233. package/src/social/stats.ts +1 -1
  234. package/src/social/text.ts +1 -1
  235. package/src/social/tracker-route.ts +1 -1
  236. package/src/social/tracker.ts +1 -1
  237. package/src/social/unit.ts +1 -1
  238. package/src/social/writes.ts +1 -1
  239. package/src/stores/collection.ts +1 -1
  240. package/src/stores/desk.ts +1 -1
  241. package/src/stores/model.ts +1 -1
  242. package/src/stores/routes.ts +1 -1
  243. package/src/stores/unit.ts +1 -1
  244. package/src/suite/judge-suites.ts +1 -1
  245. package/src/trace/tracer.ts +12 -5
  246. package/src/trailer/adapter.ts +1 -1
  247. package/src/trailer/build.ts +6 -4
  248. package/src/trailer/holes.ts +1 -1
  249. package/src/trailer/passage.ts +1 -1
  250. package/src/trailer/prune.ts +1 -1
  251. package/src/trailer/states.ts +1 -1
  252. package/src/trailer/versions.ts +1 -1
  253. package/src/trailer/words.ts +1 -1
  254. package/src/tui/run-tui.ts +1 -1
  255. package/src/tui/tui-store.ts +1 -1
  256. package/src/veille/asks.ts +1 -1
  257. package/src/veille/auto.ts +1 -1
  258. package/src/veille/batch.ts +1 -1
  259. package/src/veille/chrome.ts +1 -1
  260. package/src/veille/collection.ts +1 -1
  261. package/src/veille/desk.ts +1 -1
  262. package/src/veille/identity.ts +1 -1
  263. package/src/veille/import.ts +1 -1
  264. package/src/veille/log.ts +1 -1
  265. package/src/veille/platforms.ts +1 -1
  266. package/src/veille/reads.ts +1 -1
  267. package/src/veille/replied.ts +1 -1
  268. package/src/veille/routes.ts +2 -2
  269. package/src/veille/watch.ts +1 -1
  270. package/src/veille/worth.ts +2 -2
@@ -1,4 +1,4 @@
1
- // the trailer view's cuts, renders and timelines (wiki build/trailer.md, Frame notes), and the still a note on a frame
1
+ // the trailer view's cuts, renders and timelines (wiki tools/trailer/index.md, Frame notes), and the still a note on a frame
2
2
  // is raised with: the note itself is an item of the one store, its subject the frame, anchored on its shot's name, so it
3
3
  // survives a new render of the cut. A cut is a `trailer/<id>/<cut>.trailer` and its render `out/<name>.mp4` (`<name>`
4
4
  // its `trailer` line), or a render with no file beside it. The trailer core (src/trailer/) is read, never changed
@@ -83,7 +83,7 @@ const versionFile = (dir: string, v: string, end: string): string | null => {
83
83
  return f ? join(d, f) : null
84
84
  }
85
85
 
86
- /** a trailer's kept versions (wiki build/trailer.md, Versions): each `versions/<v>.trailer`, its render in its folder
86
+ /** a trailer's kept versions (wiki tools/trailer/index.md, Versions): each `versions/<v>.trailer`, its render in its folder
87
87
  * when the machine still holds it */
88
88
  function versionsOf(dir: string): CutFiles[] {
89
89
  const vd = join(dir, 'versions')
@@ -147,7 +147,7 @@ const SETTLE_MS = 2500
147
147
  const settled = (mtime: number, now: number): boolean => now - mtime > SETTLE_MS
148
148
 
149
149
  /** where each finished render is recorded as the page plays it: its json, and an APFS clone of its video and strip
150
- * (free, untouched by the next render) until the media store holds them (wiki build/trailer.md, Frame notes) */
150
+ * (free, untouched by the next render) until the media store holds them (wiki tools/trailer/index.md, Frame notes) */
151
151
  export const viewDir = (root: string): string => join(root, LAYOUT.cache, 'trailer-view')
152
152
 
153
153
  /** a render's files by their content, filled by the media store's scan (src/review/trailer-media.ts) */
@@ -1,4 +1,4 @@
1
- // the trailer renders as a kind of the media store (wiki build/trailer.md, Renders in the media store): each settled
1
+ // the trailer renders as a kind of the media store (wiki tools/trailer/index.md, Renders in the media store): each settled
2
2
  // render's clone in the view folder and a kept version's own files, by the facts its view record keeps, and the shots
3
3
  // folders (trailer-shots.ts). Kept on the
4
4
  // disk: the newest render of each live cut, the render an open frame note was written on, and any render seen in the
@@ -1,4 +1,4 @@
1
- // the trailer view's shapes (wiki build/trailer.md, Frame notes): what the hub answers about a repo's cuts, and a frame
1
+ // the trailer view's shapes (wiki tools/trailer/index.md, Frame notes): what the hub answers about a repo's cuts, and a frame
2
2
  // note as the view shows it, read from its item of the one store. Pure: the routes and the page share them
3
3
  import { isFrame, isReply, partyOf, stateOf, type ReviewItem } from './model.ts'
4
4
 
@@ -1,4 +1,4 @@
1
- // the hub's trailer routes (wiki build/trailer.md, Frame notes): a repo's cuts with their timelines and notes, a kept
1
+ // the hub's trailer routes (wiki tools/trailer/index.md, Frame notes): a repo's cuts with their timelines and notes, a kept
2
2
  // render with byte ranges, and the owner's frame notes, each an item of the one review store. Paths are relative to the
3
3
  // repo hub's base. null: not a path of these
4
4
  import { existsSync, mkdtempSync, rmSync } from 'node:fs'
@@ -1,4 +1,4 @@
1
- // the shots folders of the trailer kind (wiki build/trailer.md, Renders in the media store): each build's shelf
1
+ // the shots folders of the trailer kind (wiki tools/trailer/index.md, Renders in the media store): each build's shelf
2
2
  // `out/<cut>-shots/` and each kept version's `versions/<v>/shots/`. Their facts sit in the folder's own `.media.json`,
3
3
  // which a build's new shelf drops with the old files. The shelf of each trailer's newest build stays on the disk. A
4
4
  // trailer's `voice/` folder is its source clips (paid, never rebuilt): up the same way, never purged
@@ -1,4 +1,4 @@
1
- // a repo's parts of the one store (wiki build/shipkit/review.md, A project's parts): its subject kinds, topics, sources,
1
+ // a repo's parts of the one store (wiki tools/shipkit/review.md, A project's parts): its subject kinds, topics, sources,
2
2
  // auto rules and the dispatcher switch, declared once in a `review({...})` unit of any `<name>.shipkit.ts`. Every unit
3
3
  // file imports this module, so it stays light: the store reads the pure part through specOf(dir), project.ts finds,
4
4
  // imports and serves the rest
@@ -29,7 +29,7 @@
29
29
  // every file is a module even with no import/export (standalone scripts)
30
30
  "moduleDetection": "force",
31
31
 
32
- // the house TS standard is all five, always on (meta/rv-conventions):
32
+ // the house TS standard is all five, always on (patterns/rv-conventions):
33
33
  // strict alone leaves dead locals and fallthrough bugs in the codebase
34
34
  "strict": true,
35
35
  "noUncheckedIndexedAccess": true,
@@ -249,7 +249,7 @@ export function adoptCli(root: string, opts: { name: string; print?: (line: stri
249
249
  const pkg = readPackage(root)
250
250
  if (pkg == null) { p(`FAIL: no readable package.json in ${root} โ€” the project CLI needs one`); return null }
251
251
  const found = existingCli(pkg, cliFiles(root))
252
- if (found != null) { p(`skip: ${opts.name} already has a CLI (${found}) โ€” extend it; a project CLI beside a product's bin is wired by hand (build/cli-tool.md)`); return null }
252
+ if (found != null) { p(`skip: ${opts.name} already has a CLI (${found}) โ€” extend it; a project CLI beside a product's bin is wired by hand (guides/cli-tool/index.md)`); return null }
253
253
  const lib = installedLib(root)
254
254
  if (kitInstalled(lib) === false) { p(`skip: the installed rvlib-shipkit ${lib?.version ?? ''} predates the CLI kit โ€” bun add -d rvlib-shipkit@latest once a release carries it, then re-run`); return null }
255
255
  const written: string[] = []
@@ -1,4 +1,4 @@
1
- // a repo's review or trailer page alone, for another tool to frame (wiki build/shipkit/review.md, The review page):
1
+ // a repo's review or trailer page alone, for another tool to frame (wiki tools/shipkit/review.md, The review page):
2
2
  // `<base>/embed/?page=review` serves the same app bundled with RELATIVE asset paths, so the page and every request it
3
3
  // makes work under any prefix a proxy puts in front of the hub (a project's admin frames it under its own origin). The
4
4
  // bundle is made once a process, in memory
@@ -106,7 +106,7 @@ export function repoPath(p: string, root: string): ShortPath {
106
106
  }
107
107
 
108
108
  /** a docs page: repo relative when it is in the repo, else relative to the
109
- * wiki it belongs to (`meta/rv-conventions/package-json.md`) */
109
+ * wiki it belongs to (`patterns/rv-conventions/package-json.md`) */
110
110
  export function docPath(p: string, root: string): ShortPath {
111
111
  const outside = p.startsWith('/') || p.startsWith('~/')
112
112
  const r = root.replace(/\/+$/, '')
@@ -1,4 +1,4 @@
1
- // the repo pages' frames kept alive (wiki build/shipkit/project-pages.md, Kept frames): the last few opened, across
1
+ // the repo pages' frames kept alive (wiki tools/shipkit/project-pages.md, Kept frames): the last few opened, across
2
2
  // repos, newest first. A switch back to one is a show, never a load; one past the cap unloads the oldest, and of the
3
3
  // hidden ones one 3D page at most: its scene holds gigabytes while hidden. A node of the home (home-st.ts)
4
4
  import { makeAutoObservable } from 'mobx'
@@ -49,7 +49,7 @@ export type HashSel =
49
49
  | { t: 'comms'; draft: string | null; part?: string | null; q?: string }
50
50
  /** Social: an identity, null for the repo's; its company (`@legal`) or an account, null for its card; a place */
51
51
  | { t: 'social'; identity: string | null; account?: string | null; place?: string | null }
52
- /** a repo's own page (wiki build/shipkit/project-pages.md): the repo, the page, the page's own keys as a query */
52
+ /** a repo's own page (wiki tools/shipkit/project-pages.md): the repo, the page, the page's own keys as a query */
53
53
  | { t: 'page'; repo: string; id: string; q?: string }
54
54
 
55
55
  /** whose a gate check is */
@@ -1,4 +1,4 @@
1
- // HomeSt: THE root of the page (build/app-state-tree), exposed as window.app.
1
+ // HomeSt: THE root of the page (patterns/app-state-tree), exposed as window.app.
2
2
  // One tree for every page the home serves, '/', '/planned', '/activity' and
3
3
  // '/r/<repo>/': the machine, the project list, the plan, the activity, and one RepoSt per repo visited, built on
4
4
  // the first visit and kept for the life of the page (same name, same
@@ -159,7 +159,7 @@
159
159
  .pdetail>.cstitle{margin:var(--s3) 0 var(--s1)}
160
160
  .pdetail>.cstitle:first-child{margin-top:0}
161
161
  .pdetail .hlog{margin-top:0}
162
- /* the identities after the places (wiki build/shipkit/social.md, Identities): one round avatar each, its initial on
162
+ /* the identities after the places (wiki tools/shipkit/social.md, Identities): one round avatar each, its initial on
163
163
  its colour without one, ringed in its colour while its view shows */
164
164
  .hids{flex:none;display:inline-flex;align-items:center;gap:var(--s1);margin-right:var(--s2);padding-right:var(--s2);border-right:1px solid var(--line)}
165
165
  .hid{display:grid;place-items:center;flex:none;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:none;--idr:transparent}
@@ -1,6 +1,6 @@
1
1
  // THE page (Bun.serve HTML import โ€” no vite, no build step), one single page
2
2
  // app for every page the home serves ('/', '/planned', '/activity', '/r/<repo>/') and for a
3
- // hub serving on its own at '/'. mobx+react per build/app-state-tree: HomeSt
3
+ // hub serving on its own at '/'. mobx+react per patterns/app-state-tree: HomeSt
4
4
  // is the single root (window.app), each repo a RepoSt under it, services own
5
5
  // state, components read and call. A repo's page is ONE tree whose top rows
6
6
  // are its sections and whose rows under them are every repo resource
@@ -61,7 +61,7 @@ type EmbedPage = (typeof EMBED_PAGES)[number]
61
61
  const asked = new URLSearchParams(location.search).get('page')
62
62
  const embed: EmbedPage | null = embedAt == null ? null : (EMBED_PAGES.find((p) => p === asked) ?? 'review')
63
63
  const home = new HomeSt(embedAt == null ? { home: document.body.dataset.home != null } : { home: false, base: embedAt[1] ?? '' })
64
- // the root as a global โ€” app code, console debugging (build/app-state-tree)
64
+ // the root as a global โ€” app code, console debugging (patterns/app-state-tree)
65
65
  ;(window as unknown as { app: HomeSt }).app = home
66
66
  home.boot()
67
67
 
@@ -1,4 +1,4 @@
1
- // the identity view's state (wiki build/shipkit/social.md, Identities; home.md, Identities): every identity as the
1
+ // the identity view's state (wiki tools/shipkit/social.md, Identities; home.md, Identities): every identity as the
2
2
  // daemon reads its folder, the one picked from the address (`/identities#<id>[/<part>[/<place>]]`), and the desk
3
3
  // its accounts, setup and messages come from. The desk is a repo's Social desk read again: its identities are the
4
4
  // machine's whatever the repo, its drafts that repo's, so an identity reads the desk of the repo that speaks as it
@@ -1,11 +1,12 @@
1
- // `/identities#<id>[/<part>[/<place>]]`: one identity (wiki build/shipkit/social.md, Identities). On the left its
1
+ // `/identities#<id>[/<part>[/<place>]]`: one identity (wiki tools/shipkit/social.md, Identities). On the left its
2
2
  // head, its sections (profile, company, Veille, site), one row per account with the platform's logo and its state,
3
3
  // the repos that speak as it; on the right the part picked: the profile (rows, brand, links, pictures, where its data
4
4
  // lives), the company, the Veille, the site (site/site-part.tsx), or an account's whole page (its head, setup, places, profile, the drafts
5
5
  // waiting for it). Its parts are the repo Social page's (social-page.tsx), on a desk the identity reads (identities-st.ts)
6
6
  import { observer } from 'mobx-react-lite'
7
7
  import { useEffect, type CSSProperties, type ReactNode } from 'react'
8
- import { Group, Panel, Separator } from 'react-resizable-panels'
8
+ import { Panel, Separator } from 'react-resizable-panels'
9
+ import { KeptCols } from './kept-cols.tsx'
9
10
  import type { DataPlace, MachineIdentity } from '../../identities/machine-route.ts'
10
11
  import type { HomeSt } from './home-st.ts'
11
12
  import { plainClick, repoPage } from './home-st.ts'
@@ -69,7 +70,7 @@ export const IdentitiesView = observer(({ app }: { app: HomeSt }) => {
69
70
  )
70
71
  return (
71
72
  <div className="so-page idview">
72
- <Group className="rv-cols" orientation="horizontal">
73
+ <KeptCols id="identities">
73
74
  <Panel id="identity-list" defaultSize="30%" minSize={260} className="rv-pane" style={PANEL}>
74
75
  <IdentityList app={app} i={i} />
75
76
  </Panel>
@@ -79,7 +80,7 @@ export const IdentitiesView = observer(({ app }: { app: HomeSt }) => {
79
80
  <PartPage app={app} i={i} />
80
81
  </div>
81
82
  </Panel>
82
- </Group>
83
+ </KeptCols>
83
84
  {so == null ? null : <Lightbox so={so} />}
84
85
  {so == null ? null : <Toast so={so} />}
85
86
  </div>
@@ -1,4 +1,4 @@
1
- // the address of the home's identity view (wiki build/shipkit/social.md, Identities): `/identities#<id>[/<part>[/<place>]]`,
1
+ // the address of the home's identity view (wiki tools/shipkit/social.md, Identities): `/identities#<id>[/<part>[/<place>]]`,
2
2
  // the part a section (`@legal`, `@veille`, `@site`) or an account, the place one of that account's; no part, the profile.
3
3
  // And the rows of its list, in the order the arrows walk them
4
4
  import type { MachineIdentity } from '../../identities/machine-route.ts'
@@ -1,4 +1,4 @@
1
- // the inbox page as state (wiki build/shipkit/home.md, The inbox), a node of the root (home-st.ts): the main list in
1
+ // the inbox page as state (wiki tools/shipkit/home.md, The inbox), a node of the root (home-st.ts): the main list in
2
2
  // pages of `GET /api/inbox`, the folded yellow list read once it unfolds, and the item open in place. Polled every few
3
3
  // seconds while the page shows and the tab is visible, 304 when nothing moved. An item opens in its repo's own state
4
4
  // (RepoSt): a card in that repo's review thread, an ask or a need in its item view, the same components as its hub
@@ -1,4 +1,4 @@
1
- // the inbox page (wiki build/shipkit/home.md, The inbox): every repo's items that wait on the owner, newest first, each
1
+ // the inbox page (wiki tools/shipkit/home.md, The inbox): every repo's items that wait on the owner, newest first, each
2
2
  // row with its repo's icon, its kind, its title, its age and a thumb; what can wait folded at the bottom. A row opens
3
3
  // its item in place with its repo's own views: a card in the review thread (review-thread.tsx), an ask or a need in
4
4
  // its item view (item-view.tsx). On the desktop the list and the item side by side; on a phone one pane at a time,
@@ -0,0 +1,30 @@
1
+ // a page's columns (the identities, social, comms, stores, Veille, review and trailer pages): the widths his drags
2
+ // leave are kept per browser and page, so a reload draws them as he left them from the first paint. One group per
3
+ // page id; the panel ids inside must stay the same for a kept layout to apply (useDefaultLayout's own rule).
4
+ import type { ReactNode } from 'react'
5
+ import { Group, useDefaultLayout, type LayoutStorage } from 'react-resizable-panels'
6
+
7
+ /** the browser's storage, or nothing: a private window or blocked site data keeps the layout for the tab only */
8
+ const STORE: LayoutStorage = {
9
+ getItem: (k) => {
10
+ try {
11
+ return globalThis.localStorage?.getItem(k) ?? null
12
+ } catch {
13
+ return null
14
+ }
15
+ },
16
+ setItem: (k, v) => {
17
+ try {
18
+ globalThis.localStorage?.setItem(k, v)
19
+ } catch { /* the layout lasts the tab */ }
20
+ },
21
+ }
22
+
23
+ export const KeptCols = ({ id, children }: { id: string; children: ReactNode }) => {
24
+ const kept = useDefaultLayout({ id: `hub:cols:${id}`, storage: STORE, onlySaveAfterUserInteractions: true })
25
+ return (
26
+ <Group className="rv-cols" orientation="horizontal" defaultLayout={kept.defaultLayout} onLayoutChanged={kept.onLayoutChanged}>
27
+ {children}
28
+ </Group>
29
+ )
30
+ }
@@ -75,7 +75,7 @@ export function sectionKey(e: KeyLike): SectionId | null {
75
75
  return hit == null ? null : (hit[0] as SectionId)
76
76
  }
77
77
 
78
- /** a repo's own page on โŒฅโ‡ง and its letter (wiki build/shipkit/project-pages.md, Keys): shipkit's โŒฅ letters stay its
78
+ /** a repo's own page on โŒฅโ‡ง and its letter (wiki tools/shipkit/project-pages.md, Keys): shipkit's โŒฅ letters stay its
79
79
  * own. The letter, read from the physical key, or null */
80
80
  export function pageLetterKey(e: KeyLike): string | null {
81
81
  if (!e.altKey || !e.shiftKey || e.metaKey || e.ctrlKey) return null
@@ -1,4 +1,4 @@
1
- // Media (atelier) service โ€” the studio state, per build/app-state-tree:
1
+ // Media (atelier) service โ€” the studio state, per patterns/app-state-tree:
2
2
  // observable state + actions + computeds live HERE; components read and
3
3
  // call. Talks to the media API the hub mounts at /media/*. Kind/asset
4
4
  // structure is read-only (kit.ts is code-reviewed); this edits WORKSPACE
@@ -1,4 +1,4 @@
1
- // the hub side of a repo page's frame (wiki build/shipkit/project-pages.md, The frame contract): every kept frame of
1
+ // the hub side of a repo page's frame (wiki tools/shipkit/project-pages.md, The frame contract): every kept frame of
2
2
  // this repo, the shown one displayed, the others hidden but alive (frames-st.ts). A frame loads through the hub's
3
3
  // proxy, on this origin, and speaks `{ shipkit: <verb> }` messages, checked by source and origin. Its process down,
4
4
  // the pane shows the start button, never a blank frame
@@ -1,4 +1,4 @@
1
- // a repo's own pages (wiki build/shipkit/project-pages.md), as the hub page holds them: the declared list, each
1
+ // a repo's own pages (wiki tools/shipkit/project-pages.md), as the hub page holds them: the declared list, each
2
2
  // page's badge (its declared route read through the proxy, else what its frame posted) and the words its frame
3
3
  // gave. The frames themselves are the home's (FrameCache, pages-frames.tsx): they outlive a repo switch
4
4
  import { makeAutoObservable, runInAction } from 'mobx'
@@ -211,7 +211,7 @@ export class ProjectsSvc {
211
211
  /** the repos whose repo.config.ts says `archived: true`: never in `list`,
212
212
  * only on the archived page */
213
213
  archived: ArchivedRow[] = []
214
- /** every identity of the machine, in their order: the rail's middle band (wiki build/shipkit/social.md, Identities) */
214
+ /** every identity of the machine, in their order: the rail's middle band (wiki tools/shipkit/social.md, Identities) */
215
215
  identities: RailIdentity[] = loadIdentityList()
216
216
  /** a click on an identity: the home opens its identity view; a hub of its own has none */
217
217
  onIdentity: ((id: string) => void) | null = null
@@ -1,5 +1,5 @@
1
1
  // RepoSt: one repo's hub page as a node of the page tree (home-st.ts owns
2
- // the root, build/app-state-tree). Owns cross-service state: selection, the
2
+ // the root, patterns/app-state-tree). Owns cross-service state: selection, the
3
3
  // severity filter (an ADDRESS: ?f=needs ยท ?f=red), and the hash router: every
4
4
  // page and every tab is a selection, every selection has an address
5
5
  // (hash-route.ts), and setSel is the one place both move together. A repo
@@ -1,4 +1,4 @@
1
- // the dispatcher's board (wiki build/shipkit/review.md, Raised items): what the owner, a player or a rule raised, by state,
1
+ // the dispatcher's board (wiki tools/shipkit/review.md, Raised items): what the owner, a player or a rule raised, by state,
2
2
  // each with its topic and its worker, a stale claim marked (`GET /api/review/board`); who holds the dispatcher role. A row
3
3
  // opens its item
4
4
  import { observer } from 'mobx-react-lite'
@@ -1,4 +1,4 @@
1
- // the cells of a thread, one framed card each (wiki build/shipkit/review.md, The review page): a header bar (who, when,
1
+ // the cells of a thread, one framed card each (wiki tools/shipkit/review.md, The review page): a header bar (who, when,
2
2
  // the kind, `v2`, fold, copy the id), then the body, or one line of summary when folded. A folded cell draws no media.
3
3
  // A version holds its words and its views, a verdict points back at the version it judged and lists his notes (a
4
4
  // click shows the view they sit on), a reply and a note are words; a run of state changes is one thin line
@@ -117,6 +117,7 @@ const VersionBody = observer(({ rv, card, c }: { rv: ReviewSt; card: ThreadSt; c
117
117
  const VersionMain = observer(({ rv, card, c }: { rv: ReviewSt; card: ThreadSt; c: VersionCell }) => {
118
118
  const r = c.item
119
119
  const live = c.id === card.head?.id && card.takesVerdict
120
+ const claim = c.id === card.newest?.id && card.claims
120
121
  const stamp = card.cells.findLast((x) => x.on === c.id)?.id ?? c.id
121
122
  return (
122
123
  <>
@@ -129,7 +130,7 @@ const VersionMain = observer(({ rv, card, c }: { rv: ReviewSt; card: ThreadSt; c
129
130
  </div>
130
131
  <KindView app={rv} item={r} stamp={stamp} />
131
132
  <AnimPanel app={rv} item={r} />
132
- {r.views.length > 0 ? <VersionViews ver={{ rv, card, cell: c, live }} /> : null}
133
+ {r.views.length > 0 ? <VersionViews ver={{ rv, card, cell: c, live, claim }} /> : null}
133
134
  </>
134
135
  )
135
136
  })
@@ -1,9 +1,10 @@
1
- // a repo's review page (`#page:review`, wiki build/shipkit/review.md, The review page): the cards on the left, the open
1
+ // a repo's review page (`#page:review`, wiki tools/shipkit/review.md, The review page): the cards on the left, the open
2
2
  // one as a chat on the right (review-thread.tsx). On a phone one pane at a time: the cards, or the card with its answer
3
3
  // box and the verdicts under the thumb. Everything is read while the page shows
4
4
  import { observer } from 'mobx-react-lite'
5
5
  import { useEffect } from 'react'
6
- import { Group, Panel, Separator } from 'react-resizable-panels'
6
+ import { Panel, Separator } from 'react-resizable-panels'
7
+ import { KeptCols } from '../kept-cols.tsx'
7
8
  import type { RepoSt } from '../repo-st.ts'
8
9
  import { ReviewList } from './review-list.tsx'
9
10
  import type { ReviewSt } from './review-st.ts'
@@ -32,7 +33,7 @@ export const ReviewPage = observer(({ app }: { app: RepoSt }) => {
32
33
  return (
33
34
  <>
34
35
  <Toast rv={rv} />
35
- <Group className="rv-cols" orientation="horizontal">
36
+ <KeptCols id="review">
36
37
  <Panel id="review-list" defaultSize="24%" minSize={180} className="rv-pane" style={PANEL}>
37
38
  <ReviewList rv={rv} />
38
39
  </Panel>
@@ -40,7 +41,7 @@ export const ReviewPage = observer(({ app }: { app: RepoSt }) => {
40
41
  <Panel id="review-thread" defaultSize="76%" minSize={360} className="rv-pane" style={PANEL}>
41
42
  <ThreadColumn rv={rv} />
42
43
  </Panel>
43
- </Group>
44
+ </KeptCols>
44
45
  </>
45
46
  )
46
47
  })
@@ -1,4 +1,4 @@
1
- // a repo's review page as state (wiki build/shipkit/review.md, The review page): the list as pages of threads
1
+ // a repo's review page as state (wiki tools/shipkit/review.md, The review page): the list as pages of threads
2
2
  // (`GET /api/review/threads`, the filters and the search asked of the server), the open card as a thread
3
3
  // (thread-st.ts), the watches, the board, his prefs. Every read is polled every 2 s while the page shows and answered
4
4
  // 304 when the store did not move. His drafts are kept in the browser until they are sent
@@ -537,18 +537,26 @@ export class ReviewSt {
537
537
  await this.copied(text, `copied for an agent: title, repo, sk review show, ${w?.phone ? 'links' : 'link'}`)
538
538
  }
539
539
 
540
+ /** a draft this card was turned into, opened in Communications: the hub's own, or the host's in a frame */
541
+ openDraft(slug: string): void {
542
+ if (this.st.home.embedded && window.parent !== window) window.parent.postMessage({ shipkit: 'show', page: 'comms', hash: `#page:comms:${slug}` }, location.origin)
543
+ else this.st.showComms(slug, null)
544
+ }
545
+
540
546
  /** one cell's id, for an agent to name it */
541
547
  async copyId(id: string): Promise<void> {
542
548
  await this.copied(id, `copied ${id}`)
543
549
  }
544
550
 
545
551
  private async copied(text: string, said: string): Promise<void> {
546
- const ok = await copyText(text)
547
- runInAction(() => {
548
- this.toast = ok ? said : 'the browser refused the copy'
549
- if (this.toastTimer !== null) clearTimeout(this.toastTimer)
550
- this.toastTimer = setTimeout(() => runInAction(() => (this.toast = null)), 2600)
551
- })
552
+ this.say((await copyText(text)) ? said : 'the browser refused the copy')
553
+ }
554
+
555
+ /** one line in the toast, gone after a few seconds */
556
+ say(text: string): void {
557
+ this.toast = text
558
+ if (this.toastTimer !== null) clearTimeout(this.toastTimer)
559
+ this.toastTimer = setTimeout(() => runInAction(() => (this.toast = null)), 2600)
552
560
  }
553
561
 
554
562
  /** the page's keys, as the atelier takes its own: true when it used the key. V approves, F ok with a fix, R rejects,
@@ -1,10 +1,10 @@
1
- // the open card as one chat (wiki build/shipkit/review.md, The review page): a bar on top (the title, where it stands,
1
+ // the open card as one chat (wiki tools/shipkit/review.md, The review page): a bar on top (the title, where it stands,
2
2
  // fold or unfold all, on a phone the contents), the cells in time order with the newest at the bottom, the contents strip beside
3
3
  // them (every version, view, verdict and reply: a click scrolls there and unfolds it), and his answer box pinned under
4
4
  // them: one word, sent with a verdict or as a reply. The column opens scrolled to the newest cell
5
5
  import { observer } from 'mobx-react-lite'
6
6
  import { useEffect, useRef } from 'react'
7
- import { MOVE_LABEL, STATUS_LABEL, subjectLabel, viewName, viewTag } from '../../../review/model.ts'
7
+ import { isPostSubject, MOVE_LABEL, STATUS_LABEL, subjectLabel, viewName, viewTag, type ItemState } from '../../../review/model.ts'
8
8
  import { AutoText } from '../auto-text.tsx'
9
9
  import { Icon, ICON } from '../icons.tsx'
10
10
  import { AutoTag, Empty, keepFocus, LaneTag, Listeners, Rework, toneOf, VERDICTS } from './kit.tsx'
@@ -55,6 +55,43 @@ export const ThreadColumn = observer(({ rv, back }: { rv: ReviewSt; back?: (() =
55
55
  )
56
56
  })
57
57
 
58
+ const POST_STATE = (s: ItemState): string => (s.state === 'closed' ? (s.why === 'fixed' ? 'written' : s.why ?? 'closed') : s.state === 'claimed' ? 'in work' : 'asked')
59
+
60
+ /** ยซ ๐Ÿ“ฃ post ยป: this card deserves its own public post; each post already asked, where it stands, a click away */
61
+ const PostAsk = observer(({ rv, card }: { rv: ReviewSt; card: ThreadSt }) => {
62
+ const v = card.data
63
+ if (!v || isPostSubject(v.subject)) return null
64
+ return (
65
+ <>
66
+ {v.drafts.map((d) => (
67
+ <button key={d.slug} className="ghost rv-chip" title={`the draft written from this card: ${d.slug}, in comms`} onMouseDown={keepFocus} onClick={() => rv.openDraft(d.slug)}>๐Ÿ“ {d.title}</button>
68
+ ))}
69
+ {v.posts.map((p) => (
70
+ <button key={p.id} className="ghost rv-chip" title={`the post asked from this card: ${p.id}`} onMouseDown={keepFocus} onClick={() => rv.pick(p.id)}>๐Ÿ“ฃ {POST_STATE(p.state)}</button>
71
+ ))}
72
+ <button className={card.postBox !== null ? 'on' : ''} title="this card deserves its own post: an agent writes the draft in comms" onMouseDown={keepFocus} onClick={() => (card.postBox === null ? card.openPost() : card.closePost())}>๐Ÿ“ฃ post</button>
73
+ </>
74
+ )
75
+ })
76
+
77
+ /** his word on the post he asks: the angle, the account; Enter asks, an empty word too */
78
+ const PostBox = observer(({ card }: { card: ThreadSt }) => {
79
+ if (card.postBox === null) return null
80
+ return (
81
+ <div className="rv-postbox">
82
+ <AutoText autoFocus placeholder="its own post: the angle, the account (optional). Enter asks, Escape closes" value={card.postBox}
83
+ onText={(t) => card.setPost(t)}
84
+ onKeyDown={(e) => {
85
+ if (e.key === 'Enter' && !e.shiftKey) {
86
+ e.preventDefault()
87
+ void card.askPost()
88
+ } else if (e.key === 'Escape') card.closePost()
89
+ }} />
90
+ <button disabled={card.busy} onClick={() => void card.askPost()}>ask</button>
91
+ </div>
92
+ )
93
+ })
94
+
58
95
  /** the card's bar: its title, where it stands, its lane, who listens, the copy for an agent, fold or unfold all; on the
59
96
  * phone the contents and a way back to the cards */
60
97
  const TopBar = observer(({ rv, card, back }: { rv: ReviewSt; card: ThreadSt; back?: (() => void) | null }) => {
@@ -70,6 +107,7 @@ const TopBar = observer(({ rv, card, back }: { rv: ReviewSt; card: ThreadSt; bac
70
107
  <Icon d={ICON.copy} />
71
108
  </button>
72
109
  </div>
110
+ <PostBox card={card} />
73
111
  {rv.phone.on && v ? <Minimap rv={rv} card={card} dir="row" /> : null}
74
112
  {v ? (
75
113
  <div className="rv-meta">
@@ -87,6 +125,7 @@ const TopBar = observer(({ rv, card, back }: { rv: ReviewSt; card: ThreadSt; bac
87
125
  ) : null}
88
126
  <Rework r={v.rework} />
89
127
  <span className="sp" />
128
+ <PostAsk rv={rv} card={card} />
90
129
  <span className="seg">
91
130
  <button className="rv-iconbtn" title="fold every cell" aria-label="fold every cell" onMouseDown={keepFocus} onClick={() => card.foldAll(false)}><Icon d={ICON.foldAll} /></button>
92
131
  <button className="rv-iconbtn" title="unfold every cell (it loads every image)" aria-label="unfold every cell" onMouseDown={keepFocus} onClick={() => card.foldAll(true)}><Icon d={ICON.unfoldAll} /></button>
@@ -262,13 +301,21 @@ const Composer = observer(({ rv, card }: { rv: ReviewSt; card: ThreadSt }) => {
262
301
  const verdicts = card.takesVerdict
263
302
  const sent = h?.kind === 'version' ? card.verdictsOn(h.id).findLast((x) => x.current)?.verdict : undefined
264
303
  const newest = card.newest
304
+ const parked = card.parked === null ? null : card.versionOf(card.parked)
265
305
  return (
266
306
  <div className="rv-composer">
267
- {card.draftOn !== null && !card.keptOn && newest?.kind === 'version' && n !== null ? (
307
+ {card.draftOn !== null && newest?.kind === 'version' && n !== null ? (
308
+ <div className="rv-moved" role="status">
309
+ <span>your answer goes to v{n}, your draft is there; v{newest.n} is newer and takes your marks too</span>
310
+ <button className="primary" onClick={() => card.moveDraft()}>move it to v{newest.n}</button>
311
+ <button onClick={() => card.answerNewest()}>answer v{newest.n}</button>
312
+ </div>
313
+ ) : parked !== null && newest?.kind === 'version' ? (
268
314
  <div className="rv-moved" role="status">
269
- <span>your draft is on v{n}; v{newest.n} landed while you wrote</span>
315
+ <span>an unsent draft waits on v{parked.n}</span>
270
316
  <button className="primary" onClick={() => card.moveDraft()}>move it to v{newest.n}</button>
271
- <button onClick={() => card.keepDraftOn()}>keep it on v{n}</button>
317
+ <button onClick={() => card.answerParked()}>answer v{parked.n} with it</button>
318
+ <button className="ghost" onClick={() => card.dropParked()}>drop it</button>
272
319
  </div>
273
320
  ) : null}
274
321
  <div className="rv-goes">