rvlib-shipkit 2.13.0 → 2.14.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 (268) hide show
  1. package/CHANGELOG.md +32 -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 +1 -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 +4 -4
  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/collections/collection-types.ts +2 -2
  57. package/src/collections/review.ts +1 -1
  58. package/src/comfy/comfy-panel.ts +2 -2
  59. package/src/contracts/manifests/discord.contract.ts +1 -1
  60. package/src/contracts/manifests/identity.contract.ts +1 -1
  61. package/src/contracts/manifests/itch.contract.ts +1 -1
  62. package/src/contracts/manifests/steam.contract.ts +1 -1
  63. package/src/core/agent-dir-at.ts +12 -0
  64. package/src/core/agent-dir.ts +16 -0
  65. package/src/core/budget.ts +1 -1
  66. package/src/core/canonical-scripts.ts +2 -2
  67. package/src/core/discover-checks.ts +1 -1
  68. package/src/core/global-contribution.ts +4 -1
  69. package/src/core/ignored-block.ts +1 -1
  70. package/src/core/ignored-inputs.ts +3 -2
  71. package/src/core/layout.ts +3 -3
  72. package/src/core/loop-watch.ts +1 -1
  73. package/src/core/motherhome.ts +2 -2
  74. package/src/core/one-way-in-policy.ts +8 -8
  75. package/src/core/run-ci.ts +3 -3
  76. package/src/core/runs-matrix.ts +1 -1
  77. package/src/core/slots.ts +14 -5
  78. package/src/core/trace-audit.ts +50 -9
  79. package/src/core/tree-rev.ts +1 -1
  80. package/src/drill/run.ts +1 -1
  81. package/src/home/daemon-jobs.ts +1 -1
  82. package/src/home/global-context.ts +11 -8
  83. package/src/home/gui-app/ShipkitGui.swift +91 -2
  84. package/src/home/inbox-shape.ts +1 -1
  85. package/src/home/inbox.ts +1 -1
  86. package/src/home/pm-config.ts +4 -1
  87. package/src/home/pm-inputs.ts +2 -0
  88. package/src/home/resources.ts +7 -2
  89. package/src/home/run-pm.ts +1 -1
  90. package/src/home/serve-web.ts +2 -2
  91. package/src/hooks/commit-message.ts +1 -1
  92. package/src/hooks/hook-gates.ts +1 -1
  93. package/src/hooks/leak-guard.ts +61 -8
  94. package/src/hooks/run-hooks.ts +18 -18
  95. package/src/identities/identities.ts +1 -1
  96. package/src/identities/machine-route.ts +1 -1
  97. package/src/identities/machine.ts +1 -1
  98. package/src/init-repo.ts +2 -2
  99. package/src/ledger/gate-checks.ts +1 -1
  100. package/src/ledger/record-kept.ts +1 -1
  101. package/src/media-kinds.ts +1 -1
  102. package/src/media-store/backup/daemon.ts +1 -1
  103. package/src/media-store/backup/keys.ts +1 -1
  104. package/src/media-store/backup/manifest.ts +1 -1
  105. package/src/media-store/backup/restore.ts +1 -1
  106. package/src/media-store/backup/run.ts +1 -1
  107. package/src/media-store/backup/secret.ts +1 -1
  108. package/src/media-store/backup/snapshot.ts +1 -1
  109. package/src/media-store/backup/sources.ts +1 -1
  110. package/src/media-store/content.ts +1 -1
  111. package/src/media-store/daemon.ts +1 -1
  112. package/src/media-store/db.ts +1 -1
  113. package/src/media-store/fact.ts +1 -1
  114. package/src/media-store/hand.ts +1 -1
  115. package/src/media-store/kind.ts +1 -1
  116. package/src/media-store/purge.ts +1 -1
  117. package/src/media-store/put.ts +1 -1
  118. package/src/media-store/remote.ts +1 -1
  119. package/src/media-store/space.ts +1 -1
  120. package/src/mv/mv-md.ts +63 -22
  121. package/src/pages/forward.ts +1 -1
  122. package/src/pages/frame-client.ts +1 -1
  123. package/src/pages/routes.ts +1 -1
  124. package/src/pages/unit.ts +1 -1
  125. package/src/plan/planner.ts +1 -1
  126. package/src/plan/repo-source.ts +1 -1
  127. package/src/release/public-clean.ts +25 -7
  128. package/src/release/run-bump.ts +1 -1
  129. package/src/release/run-release.ts +3 -3
  130. package/src/repo-config.ts +23 -16
  131. package/src/review/anim.ts +1 -1
  132. package/src/review/auto.ts +1 -1
  133. package/src/review/cells.ts +15 -1
  134. package/src/review/format.ts +2 -2
  135. package/src/review/marks.ts +1 -1
  136. package/src/review/media-kind.ts +1 -1
  137. package/src/review/media-read.ts +1 -1
  138. package/src/review/model.ts +14 -4
  139. package/src/review/notes.ts +52 -4
  140. package/src/review/previews.ts +1 -1
  141. package/src/review/project.ts +1 -1
  142. package/src/review/role.ts +1 -1
  143. package/src/review/routes.ts +14 -2
  144. package/src/review/store.ts +2 -2
  145. package/src/review/threads.ts +1 -1
  146. package/src/review/trailer-desk.ts +3 -3
  147. package/src/review/trailer-media.ts +1 -1
  148. package/src/review/trailer-model.ts +1 -1
  149. package/src/review/trailer-routes.ts +1 -1
  150. package/src/review/trailer-shots.ts +1 -1
  151. package/src/review/unit.ts +1 -1
  152. package/src/scaffold/files/tsconfig.json +1 -1
  153. package/src/scaffold/project-scaffold.ts +1 -1
  154. package/src/serve/embed.ts +1 -1
  155. package/src/serve/hub-app/check-words.ts +1 -1
  156. package/src/serve/hub-app/frames-st.ts +1 -1
  157. package/src/serve/hub-app/hash-route.ts +1 -1
  158. package/src/serve/hub-app/home-st.ts +1 -1
  159. package/src/serve/hub-app/home-strip.css +1 -1
  160. package/src/serve/hub-app/hub-app.tsx +2 -2
  161. package/src/serve/hub-app/identities-st.ts +1 -1
  162. package/src/serve/hub-app/identities-view.tsx +5 -4
  163. package/src/serve/hub-app/identity-address.ts +1 -1
  164. package/src/serve/hub-app/inbox-st.ts +1 -1
  165. package/src/serve/hub-app/inbox-view.tsx +1 -1
  166. package/src/serve/hub-app/kept-cols.tsx +30 -0
  167. package/src/serve/hub-app/keys.ts +1 -1
  168. package/src/serve/hub-app/media-svc.ts +1 -1
  169. package/src/serve/hub-app/pages-frames.tsx +1 -1
  170. package/src/serve/hub-app/pages-svc.ts +1 -1
  171. package/src/serve/hub-app/projects-svc.ts +1 -1
  172. package/src/serve/hub-app/repo-st.ts +1 -1
  173. package/src/serve/hub-app/review/review-board.tsx +1 -1
  174. package/src/serve/hub-app/review/review-cells.tsx +3 -2
  175. package/src/serve/hub-app/review/review-page.tsx +5 -4
  176. package/src/serve/hub-app/review/review-st.ts +15 -7
  177. package/src/serve/hub-app/review/review-thread.tsx +52 -5
  178. package/src/serve/hub-app/review/review-views.tsx +50 -33
  179. package/src/serve/hub-app/review/thread-st.ts +79 -27
  180. package/src/serve/hub-app/review/trailer-page.tsx +5 -4
  181. package/src/serve/hub-app/review/trailer-st.ts +1 -1
  182. package/src/serve/hub-app/review.css +9 -1
  183. package/src/serve/hub-app/site/site-part.tsx +1 -1
  184. package/src/serve/hub-app/site/site-st.ts +1 -1
  185. package/src/serve/hub-app/social/calendar.tsx +1 -1
  186. package/src/serve/hub-app/social/comms-page.tsx +29 -5
  187. package/src/serve/hub-app/social/kit.tsx +1 -1
  188. package/src/serve/hub-app/social/post-card.tsx +1 -1
  189. package/src/serve/hub-app/social/social-model.ts +1 -1
  190. package/src/serve/hub-app/social/social-page.tsx +12 -5
  191. package/src/serve/hub-app/social/social-st.ts +31 -3
  192. package/src/serve/hub-app/social.css +1 -1
  193. package/src/serve/hub-app/stores/stores-page.tsx +5 -4
  194. package/src/serve/hub-app/stores/stores-st.ts +1 -1
  195. package/src/serve/hub-app/stores.css +1 -1
  196. package/src/serve/hub-app/tree-row.tsx +1 -1
  197. package/src/serve/hub-app/veille/veille-page.tsx +5 -4
  198. package/src/serve/hub-app/veille/veille-st.ts +1 -1
  199. package/src/serve/hub-app/veille.css +1 -1
  200. package/src/serve/hub-runtime.ts +6 -2
  201. package/src/serve/project-gutter-route.ts +1 -1
  202. package/src/shot/box.ts +5 -7
  203. package/src/shot/browser-slot.ts +18 -6
  204. package/src/shot/client.ts +1 -2
  205. package/src/shot/clip-encoder.ts +16 -13
  206. package/src/shot/film-box.ts +132 -28
  207. package/src/shot/shooter.ts +21 -2
  208. package/src/shot/stepped-clip.ts +1 -1
  209. package/src/site/desk.ts +2 -2
  210. package/src/site/routes.ts +1 -1
  211. package/src/site/unit.ts +1 -1
  212. package/src/social/card-drafts.ts +24 -0
  213. package/src/social/compose.ts +2 -2
  214. package/src/social/desk-index.ts +1 -1
  215. package/src/social/desk-wire.ts +1 -1
  216. package/src/social/drafts.ts +3 -3
  217. package/src/social/load.ts +14 -1
  218. package/src/social/media-facts.ts +1 -1
  219. package/src/social/media-kind.ts +1 -1
  220. package/src/social/media-limit.ts +1 -1
  221. package/src/social/media-of.ts +1 -1
  222. package/src/social/migrate.ts +1 -1
  223. package/src/social/post-url.ts +1 -1
  224. package/src/social/presence.ts +2 -2
  225. package/src/social/public-read.ts +1 -1
  226. package/src/social/publish/bluesky.ts +1 -1
  227. package/src/social/publish/discord.ts +1 -1
  228. package/src/social/push.ts +10 -4
  229. package/src/social/richtext.ts +1 -1
  230. package/src/social/routes.ts +10 -4
  231. package/src/social/stats.ts +1 -1
  232. package/src/social/text.ts +1 -1
  233. package/src/social/tracker-route.ts +1 -1
  234. package/src/social/tracker.ts +1 -1
  235. package/src/social/unit.ts +1 -1
  236. package/src/social/writes.ts +1 -1
  237. package/src/stores/collection.ts +1 -1
  238. package/src/stores/desk.ts +1 -1
  239. package/src/stores/model.ts +1 -1
  240. package/src/stores/routes.ts +1 -1
  241. package/src/stores/unit.ts +1 -1
  242. package/src/suite/judge-suites.ts +1 -1
  243. package/src/trace/tracer.ts +12 -5
  244. package/src/trailer/adapter.ts +1 -1
  245. package/src/trailer/build.ts +6 -4
  246. package/src/trailer/holes.ts +1 -1
  247. package/src/trailer/passage.ts +1 -1
  248. package/src/trailer/prune.ts +1 -1
  249. package/src/trailer/states.ts +1 -1
  250. package/src/trailer/versions.ts +1 -1
  251. package/src/trailer/words.ts +1 -1
  252. package/src/tui/run-tui.ts +1 -1
  253. package/src/tui/tui-store.ts +1 -1
  254. package/src/veille/asks.ts +1 -1
  255. package/src/veille/auto.ts +1 -1
  256. package/src/veille/batch.ts +1 -1
  257. package/src/veille/chrome.ts +1 -1
  258. package/src/veille/collection.ts +1 -1
  259. package/src/veille/desk.ts +1 -1
  260. package/src/veille/identity.ts +1 -1
  261. package/src/veille/import.ts +1 -1
  262. package/src/veille/log.ts +1 -1
  263. package/src/veille/platforms.ts +1 -1
  264. package/src/veille/reads.ts +1 -1
  265. package/src/veille/replied.ts +1 -1
  266. package/src/veille/routes.ts +2 -2
  267. package/src/veille/watch.ts +1 -1
  268. package/src/veille/worth.ts +2 -2
@@ -1,4 +1,4 @@
1
- // SK013 — the harness half of ONE WAY IN (build/shipkit/one-way-in.md). Rule SK001 routes
1
+ // SK013 — the harness half of ONE WAY IN (tools/shipkit/one-way-in.md). Rule SK001 routes
2
2
  // the package.json scripts, and that alone is not enough: `bun test` is a bun
3
3
  // BUILTIN, so no script can intercept it and the reflex stays open. This rule
4
4
  // makes the repo carry the two things that CAN close it, and repairs them:
@@ -20,7 +20,7 @@ import type { RepoConfig } from '../repo-config.ts'
20
20
  import { repoOff } from '../core/when.ts'
21
21
  import { check, type CheckCtx, type FixResult } from '../check.ts'
22
22
 
23
- const OWNER = 'build/shipkit/one-way-in.md'
23
+ const OWNER = 'tools/shipkit/one-way-in.md'
24
24
  export const SETTINGS_PATH = '.claude/settings.json'
25
25
 
26
26
  type Settings = {
@@ -1,4 +1,4 @@
1
- // SK015 nested repo (build/shipkit.md): a repo.config.ts inside a larger git
1
+ // SK015 nested repo (tools/shipkit/index.md): a repo.config.ts inside a larger git
2
2
  // work tree declares `nested: true`, and a work tree root never does. The call
3
3
  // sites that write history refuse on the disk fact either way (core/nesting.ts),
4
4
  // so this rule is about the declaration telling the truth to the next reader.
@@ -11,7 +11,7 @@ export const nestedRepo = check({
11
11
  blocking: true,
12
12
  title: 'nested repo',
13
13
  description: 'a config inside a larger work tree declares `nested: true`, and only there',
14
- owner: 'build/shipkit/config-keys.md',
14
+ owner: 'tools/shipkit/config-keys.md',
15
15
  runs: { onPreCommit: false, onCi: true, onFull: true, onRelease: true, onHealth: true, onSave: 'moved', onClock: false },
16
16
  // the declaration, and where the git work tree root sits, which no tree
17
17
  // id describes, so its path is the rest of the key
@@ -1,5 +1,5 @@
1
1
  // SK016 — the shapes the check file replaced, and the machine that
2
- // rewrites them (build/shipkit/writing-a-check.md owns the shape itself).
2
+ // rewrites them (tools/shipkit/writing-a-check.md owns the shape itself).
3
3
  //
4
4
  // The window: every shape below is still READ, named once per run, and
5
5
  // refused at the first release after `shipkit fleet` shows no repo below 0.40
@@ -37,7 +37,7 @@ const inOwnProcess = (c: CheckCtx): ConfigRewriter => async (plan) => {
37
37
  }
38
38
  }
39
39
 
40
- const OWNER = 'build/shipkit/writing-a-check.md'
40
+ const OWNER = 'tools/shipkit/writing-a-check.md'
41
41
 
42
42
  export const legacyCheckShapes = check({
43
43
  id: 'SK016',
@@ -1,4 +1,4 @@
1
- // SK017 vscode hub task (build/vscode-tasks.md): no folder-open task starts
1
+ // SK017 vscode hub task (patterns/vscode-tasks/index.md): no folder-open task starts
2
2
  // the shipkit hub (it runs in the home, and VS Code needs no task for it), and
3
3
  // no `👁 TSC` watcher runs beside a gate that already runs `typecheck`.
4
4
  //
@@ -190,7 +190,7 @@ export const vscodeHubTask = check({
190
190
  blocking: false,
191
191
  title: 'vscode hub task',
192
192
  description: 'no vscode task starts the shipkit hub, and no extra tsc watcher runs',
193
- owner: 'build/vscode-tasks.md',
193
+ owner: 'patterns/vscode-tasks/index.md',
194
194
  runs: { onPreCommit: false, onCi: true, onFull: true, onRelease: false, onHealth: true, onSave: 'moved', onClock: false },
195
195
  cache: { by: 'reads' },
196
196
  fix: 'ci',
@@ -1,4 +1,4 @@
1
- // SK018 — every test file runs in a check (build/shipkit/test-runner.md).
1
+ // SK018 — every test file runs in a check (tools/shipkit/test-runner.md).
2
2
  // A `*.test.ts` that no check runs is a green nobody measured: the file says
3
3
  // something is proved, and nothing proves it. Each file belongs to the release
4
4
  // unit whose dir holds it (the root takes the rest), and the unit's own
@@ -12,7 +12,7 @@ export const testFilesRun = check({
12
12
  blocking: true,
13
13
  title: 'test files run',
14
14
  description: 'every test file in the repo runs in a test check or is ignored on purpose',
15
- owner: 'build/shipkit/test-runner.md',
15
+ owner: 'tools/shipkit/test-runner.md',
16
16
  runs: { onPreCommit: false, onCi: true, onFull: true, onRelease: true, onHealth: true, onSave: 'moved', onClock: false },
17
17
  cache: { by: 'reads' },
18
18
  fix: 'none',
@@ -1,4 +1,4 @@
1
- // SK019 — tests run through the generated test checks only (build/shipkit/test-runner.md).
1
+ // SK019 — tests run through the generated test checks only (tools/shipkit/test-runner.md).
2
2
  // The floor `test` slot and one `test:<unit>` per declared
3
3
  // unit are the ONE way tests run: in the unit's dir with its bunfig and
4
4
  // preload, parallel, timed against the budget, and planned file by file by
@@ -37,7 +37,7 @@ export const testsRunInUnits = check({
37
37
  blocking: true,
38
38
  title: 'tests run in unit checks',
39
39
  description: 'no check runs the test runner itself: tests run only in the generated test checks',
40
- owner: 'build/shipkit/test-runner.md',
40
+ owner: 'tools/shipkit/test-runner.md',
41
41
  runs: { onPreCommit: false, onCi: true, onFull: true, onRelease: true, onHealth: true, onSave: 'moved', onClock: false },
42
42
  cache: { by: 'reads' },
43
43
  fix: 'none',
@@ -1,4 +1,4 @@
1
- // SK020: a check file never spawns itself (build/shipkit/writing-a-check.md
1
+ // SK020: a check file never spawns itself (tools/shipkit/writing-a-check.md
2
2
  // owns the one body shape, `run: (c) => …`). A `cmd` that names the file's
3
3
  // own path runs the file a second time, in its own process, behind an
4
4
  // `import.meta.main` guard: a second way to write a body, with none of what
@@ -11,7 +11,7 @@ import { check } from '../check.ts'
11
11
  import { isLegacyCheckSource } from '../core/check-file-names.ts'
12
12
  import { repoCheckSources } from '../core/legacy-shapes.ts'
13
13
 
14
- const OWNER = 'build/shipkit/writing-a-check.md'
14
+ const OWNER = 'tools/shipkit/writing-a-check.md'
15
15
 
16
16
  /** the source with every comment blanked, so a file that MENTIONS the
17
17
  * shape in a comment is not a file that has it, and a `/*` inside a glob
@@ -1,4 +1,4 @@
1
- // SK022 machine runs the pin (build/shipkit/home.md): on a machine with a house
1
+ // SK022 machine runs the pin (tools/shipkit/home.md): on a machine with a house
2
2
  // every shipkit runs the house copy, whatever a repo installed, so a repo's
3
3
  // rvlib-shipkit pin is a minimum. It warns when the repo asks for a version
4
4
  // newer than the one this process runs: a rule or an api that pin relies on
@@ -24,7 +24,7 @@ export const machineRunsThePin = check({
24
24
  blocking: false,
25
25
  title: 'machine runs the pin',
26
26
  description: 'the shipkit this machine runs is at least the version this repo pins',
27
- owner: 'build/shipkit/home.md',
27
+ owner: 'tools/shipkit/home.md',
28
28
  runs: { onPreCommit: false, onCi: false, onFull: true, onRelease: true, onHealth: true, onSave: 'moved', onClock: false },
29
29
  // the pin, the install (gitignored) and the version this machine runs,
30
30
  // which is no file of the repo
@@ -17,7 +17,7 @@ export const identityColors = check({
17
17
  blocking: false,
18
18
  title: 'identity colors',
19
19
  description: 'repo.config.ts declares identity colours: colorLight and colorDark, two hex',
20
- owner: 'build/shipkit/built-in-checks.md',
20
+ owner: 'tools/shipkit/built-in-checks.md',
21
21
  runs: { onPreCommit: false, onCi: false, onFull: false, onRelease: false, onHealth: true, onSave: 'moved', onClock: false },
22
22
  // the config, and the installed lib that says whether it knows the key
23
23
  cache: { by: 'files', inputs: [CONFIG_FILE], key: (env) => `installed=${fileStamp(join(env.root, INSTALLED_CONFIG_SRC))}` },
@@ -1,4 +1,4 @@
1
- // SK025 release drift (build/shipkit/built-in-checks.md): every unit this repo
1
+ // SK025 release drift (tools/shipkit/built-in-checks.md): every unit this repo
2
2
  // releases matches what npm serves and what its push remote holds, the same
3
3
  // survey `shipkit releases` prints. It replaces a drift copy per page. A repo
4
4
  // that releases nothing (a private root with no release config and no units)
@@ -40,7 +40,7 @@ export const releaseDrift = check({
40
40
  blocking: false,
41
41
  title: 'release drift',
42
42
  description: 'every unit this repo releases matches npm and its push remote',
43
- owner: 'build/shipkit/built-in-checks.md',
43
+ owner: 'tools/shipkit/built-in-checks.md',
44
44
  runs: { onPreCommit: false, onCi: false, onFull: false, onRelease: false, onHealth: true, onSave: false, onClock: { every: (last) => (last?.status === 'pass' ? ['20h', '28h'] : '4h'), inactive: 'wait' } },
45
45
  cache: { by: 'ttl', span: '20h', key: (env) => releasedUnits(env.root, env.config).map((u) => `${u.id}@${u.version}`).join(',') },
46
46
  fix: 'none',
@@ -1,4 +1,4 @@
1
- // SK026 asks auto close (build/shipkit/built-in-checks.md): probe every open
1
+ // SK026 asks auto close (tools/shipkit/built-in-checks.md): probe every open
2
2
  // ask's own `check:` and archive the ones that pass, so an act done in the
3
3
  // world leaves the queue without anyone editing a file. An open queue is no
4
4
  // warning: the hub and `shipkit needs` show it. A repo with no queue skips.
@@ -13,7 +13,7 @@ export const asksAutoclose = check({
13
13
  blocking: false,
14
14
  title: 'asks auto close',
15
15
  description: 'no open ask whose own probe passes stays in the queue',
16
- owner: 'build/shipkit/built-in-checks.md',
16
+ owner: 'tools/shipkit/built-in-checks.md',
17
17
  runs: { onPreCommit: false, onCi: false, onFull: false, onRelease: false, onHealth: true, onSave: false, onClock: { every: ['20h', '28h'], inactive: 'wait' } },
18
18
  cache: { by: 'never', why: "runs each open ask's own probe, a shell command that reads the world" },
19
19
  fix: 'none',
@@ -1,4 +1,4 @@
1
- // SK027 agent wiki links (build/shipkit/built-in-checks.md): a repo's agent/
1
+ // SK027 agent wiki links (tools/shipkit/built-in-checks.md): a repo's agent/
2
2
  // IS an md wiki, entered by agent/index.md. Every page is LISTED by an index
3
3
  // (src/wiki/agent-index.ts: one bullet, numbered item, table row or @ include
4
4
  // names it or its folder), every index is in sight of what a session loads,
@@ -9,6 +9,8 @@
9
9
  import { existsSync, readFileSync } from 'fs'
10
10
  import { basename, dirname, join } from 'path'
11
11
  import { check } from '../check.ts'
12
+ import { DEFAULT_AGENT_DIR, nestedAgentDir } from '../core/agent-dir.ts'
13
+ import { agentDirAt } from '../core/agent-dir-at.ts'
12
14
  import { CONTRIBUTION_FILE } from '../core/global-contribution.ts'
13
15
  import { indexCovers, indexesOutOfSight, loadedFiles, unlisted } from '../wiki/agent-index.ts'
14
16
  import { lintMd } from '../wiki/lint-md.ts'
@@ -18,13 +20,17 @@ export const agentWikiLinks = check({
18
20
  blocking: true,
19
21
  title: 'agent wiki links',
20
22
  description: 'every agent/ page is listed by an index a session sees, and every agent/ link resolves',
21
- owner: 'meta/agent-folder.md',
23
+ owner: 'meta/agent-folder/index.md',
22
24
  runs: { onPreCommit: false, onCi: true, onFull: true, onRelease: true, onHealth: true, onSave: 'moved', onClock: false },
23
25
  // the md lint walks agent/ on disk rather than through `c`; the loaded context starts at CLAUDE.md
24
26
  cache: { by: 'files', inputs: ['agent', 'CLAUDE.md', 'CLAUDE.local.md'], key: null },
25
27
  fix: 'none',
26
28
  applies: 'always',
27
29
  run: (c) => {
30
+ // a nested agent folder is a folder of another wiki, whose lint (and wiki-root relative routes) cover it
31
+ const dir = agentDirAt(c.root)
32
+ if (nestedAgentDir(dir)) return void c.lines.push({ kind: 'skip', text: `the agent folder ${dir}/ is a folder of another wiki, whose own lint covers it` })
33
+ if (dir !== DEFAULT_AGENT_DIR) return void c.fail(`CLAUDE.md names ${dir}/ as the agent folder: it is agent/, or a folder of another wiki (meta/agent-folder/index.md)`)
28
34
  if (!existsSync(join(c.root, 'agent/index.md'))) return void c.lines.push({ kind: 'skip', text: 'no agent/ wiki in this repo' })
29
35
  const lint = lintMd({ root: join(c.root, 'agent'), index: 'index.md', boundary: c.root })
30
36
  const read = (p: string): string | null => {
@@ -1,4 +1,4 @@
1
- // SK028 readme (build/shipkit/built-in-checks.md): the README.md a repo's hub
1
+ // SK028 readme (tools/shipkit/built-in-checks.md): the README.md a repo's hub
2
2
  // page shows exists and carries what makes the repo recognizable at a glance.
3
3
  // A list of named requirements, each reporting its own line, so a new
4
4
  // mandatory item is one more entry. Read through `c` only, so the answer is
@@ -67,7 +67,7 @@ export const readme = check({
67
67
  blocking: false,
68
68
  title: 'readme',
69
69
  description: 'README.md exists and shows at least one screenshot',
70
- owner: 'build/shipkit/built-in-checks.md',
70
+ owner: 'tools/shipkit/built-in-checks.md',
71
71
  runs: { onPreCommit: false, onCi: false, onFull: false, onRelease: false, onHealth: true, onSave: 'moved', onClock: false },
72
72
  cache: { by: 'reads' },
73
73
  fix: 'none',
@@ -1,4 +1,4 @@
1
- // SK029 explicit check files (build/shipkit/runs.md owns the declaration):
1
+ // SK029 explicit check files (tools/shipkit/runs.md owns the declaration):
2
2
  // every check file of the repo declares runs, cache, fix and applies, with
3
3
  // no retired key. A file that does not does not load, and discovery shows
4
4
  // it as one failing row. The repair ports it with the values the retired
@@ -49,7 +49,7 @@ export const explicitCheckFiles = check({
49
49
  id: 'SK029',
50
50
  title: 'explicit check files',
51
51
  description: 'every check file declares runs, cache, fix and applies, and the config says only off',
52
- owner: 'build/shipkit/runs.md',
52
+ owner: 'tools/shipkit/runs.md',
53
53
  blocking: true,
54
54
  runs: { onPreCommit: false, onCi: true, onFull: true, onRelease: true, onHealth: true, onSave: 'moved', onClock: false },
55
55
  // the listing of check files and their sources, read through `c`
@@ -79,7 +79,7 @@ export const explicitCheckFiles = check({
79
79
  if (run.did.length > 0) did.push(`ported ${run.did.join('; ')}`)
80
80
  hand.push(...run.hand)
81
81
  } catch {
82
- hand.push(`the port did not answer (exit ${r.code}: ${r.out.trim().slice(0, 160)}): port ${files.map((f) => f.rel).join(', ')} by hand (build/shipkit/runs.md)`)
82
+ hand.push(`the port did not answer (exit ${r.code}: ${r.out.trim().slice(0, 160)}): port ${files.map((f) => f.rel).join(', ')} by hand (tools/shipkit/runs.md)`)
83
83
  }
84
84
  }
85
85
  if (cfg.keys.length > 0) {
@@ -1,4 +1,4 @@
1
- // SK030 cache audit (build/shipkit/runs.md owns the cache): a sample of the
1
+ // SK030 cache audit (tools/shipkit/runs.md owns the cache): a sample of the
2
2
  // checks the cache answers is re-run fresh about once a day, and a cached
3
3
  // green a fresh run disagrees with fails, naming the check whose key misses a
4
4
  // path. The work is `sk cache-audit` (core/cache-audit.ts), in its own
@@ -12,11 +12,13 @@ export const cacheAudit = check({
12
12
  id: 'SK030',
13
13
  title: 'cache audit',
14
14
  description: 'a sample of cached answers matches what a fresh run of each check says',
15
- owner: 'build/shipkit/runs.md',
15
+ owner: 'tools/shipkit/runs.md',
16
16
  blocking: true,
17
- // never a gate: it re-runs other checks. The daemon asks it about once a
18
- // day, and only while somebody works in the repo
19
- runs: { onPreCommit: false, onCi: false, onFull: false, onRelease: false, onHealth: true, onSave: false, onClock: { every: ['20h', '28h'], inactive: 'wait' } },
17
+ // never a gate and never the health pass: it re-runs other checks fresh,
18
+ // minutes of work that made a plain `sk check` take ten. The daemon asks
19
+ // it about once a day, only while somebody works in the repo; by hand:
20
+ // `sk cache-audit`
21
+ runs: { onPreCommit: false, onCi: false, onFull: false, onRelease: false, onHealth: false, onSave: false, onClock: { every: ['20h', '28h'], inactive: 'wait' } },
20
22
  cache: { by: 'never', why: 'it runs other checks fresh, so its answer is that run itself' },
21
23
  fix: 'none',
22
24
  applies: 'always',
@@ -1,6 +1,6 @@
1
- // SK031 traced audit (build/shipkit/cache.md owns the key): about once a day
2
- // each gate task runs under the tracer, and a gitignored path it reads that
3
- // its key misses joins that task's key from the kept answer. SK032 carries the
1
+ // SK031 traced audit (tools/shipkit/cache.md owns the key): about once a day
2
+ // each gate task runs under the tracer, and a path it reads that its key
3
+ // misses (gitignored, or tracked outside a declared list) joins that task's key from the kept answer. SK032 carries the
4
4
  // kept proposals into repo.config.ts in the gate's fix pass. The work is
5
5
  // `sk trace-audit` (core/trace-audit.ts), in its own process, because it runs
6
6
  // the gate's tasks. On wherever the tracer runs, unless the machine opted out.
@@ -13,8 +13,8 @@ const CLI = join(import.meta.dir, '../cli.ts')
13
13
  export const traceAuditCheck = check({
14
14
  id: 'SK031',
15
15
  title: 'traced audit',
16
- description: 'every gitignored path a gate task reads is in its key',
17
- owner: 'build/shipkit/cache.md',
16
+ description: 'every path a gate task reads is in its key, gitignored or outside a declared list',
17
+ owner: 'tools/shipkit/cache.md',
18
18
  blocking: false,
19
19
  // never a gate: it runs the gate's tasks. The daemon asks it about once a
20
20
  // day, and only while somebody works in the repo
@@ -33,8 +33,8 @@ export const traceAuditCheck = check({
33
33
  const missing = out.tasks.filter((x) => x.uncovered.length > 0)
34
34
  // a finding joins its task's key at once (core/audit-report.ts), so it
35
35
  // is news, never a failure: SK032 carries it into repo.config.ts
36
- for (const t of missing) c.ok(`${t.id} reads ${t.uncovered.length} gitignored path(s) the config does not name, keyed from this audit: ${t.propose.join(', ')}`)
37
- if (missing.length === 0) c.ok(`${out.tasks.filter((x) => x.status === 'audited').length} gate task(s) audited: every gitignored path they read is in their key`)
36
+ for (const t of missing) c.ok(`${t.id} reads ${t.uncovered.length} path(s) outside its key the config does not name, keyed from this audit: ${t.propose.join(', ')}`)
37
+ if (missing.length === 0) c.ok(`${out.tasks.filter((x) => x.status === 'audited').length} gate task(s) audited: every path they read is in their key`)
38
38
  },
39
39
  })
40
40
 
@@ -1,4 +1,4 @@
1
- // SK032 ignored inputs current (build/shipkit/cache.md owns the key): what the
1
+ // SK032 ignored inputs current (tools/shipkit/cache.md owns the key): what the
2
2
  // last traced audit (SK031) found a task reading outside its key is in
3
3
  // repo.config.ts ignoredInputs, so other machines and clones key it too. The repair writes the missing entries into
4
4
  // the managed block, so the gate's fix pass carries each finding into the
@@ -46,8 +46,8 @@ function kept(text: string | null): AuditReport | null {
46
46
  export const ignoredInputsCheck = check({
47
47
  id: 'SK032',
48
48
  title: 'ignored inputs current',
49
- description: 'every gitignored path the traced audit saw a task read is in ignoredInputs',
50
- owner: 'build/shipkit/cache.md',
49
+ description: 'every path the traced audit saw a task read outside its key is in ignoredInputs',
50
+ owner: 'tools/shipkit/cache.md',
51
51
  blocking: false,
52
52
  runs: { onPreCommit: false, onCi: true, onFull: true, onRelease: false, onHealth: true, onSave: false, onClock: false },
53
53
  cache: { by: 'reads' },
@@ -1,4 +1,4 @@
1
- // SK033 global contribution (meta/agent-folder.md): every house repo carries
1
+ // SK033 global contribution (meta/agent-folder/index.md): every house repo carries
2
2
  // agent/global-contribution.md, what it offers every agent of every house
3
3
  // repo (a house whose index loads @generated/global-context.md), which the house concatenates into the context each session loads
4
4
  // (home/global-context.ts). A new one is a comment only, so it contributes
@@ -7,7 +7,8 @@
7
7
  // the house index, never from agent/index.md, so SK027 leaves it out.
8
8
  import { homedir } from 'os'
9
9
  import { check, type FixResult } from '../check.ts'
10
- import { CONTRIBUTION_FILE, CONTRIBUTION_STUB, CONTEXT_INCLUDE, contributionBody, contributionOver, loadsContext } from '../core/global-contribution.ts'
10
+ import { agentDirOf } from '../core/agent-dir.ts'
11
+ import { CONTRIBUTION_STUB, CONTEXT_INCLUDE, contributionBody, contributionOver, loadsContext } from '../core/global-contribution.ts'
11
12
  import { homeRepo, houseIndex } from '../serve/project-gutter.ts'
12
13
 
13
14
  /** why a repo gives SK033 nothing to do, or null in a repo whose house
@@ -19,17 +20,22 @@ export function notHouse(root: string, home: string = homedir()): string | null
19
20
  return null
20
21
  }
21
22
 
23
+ /** the contribution file, in the agent folder CLAUDE.md names */
24
+ const fileOf = (c: { read(rel: string): string | null }): string => `${agentDirOf(c.read('CLAUDE.md'))}/global-contribution.md`
25
+
22
26
  export const globalContribution = check({
23
27
  id: 'SK033',
24
28
  blocking: true,
25
29
  title: 'global contribution',
26
30
  description: 'agent/global-contribution.md exists and fits in the house context',
27
- owner: 'meta/agent-folder.md',
31
+ owner: 'meta/agent-folder/index.md',
28
32
  runs: { onPreCommit: false, onCi: true, onFull: true, onRelease: true, onHealth: true, onSave: 'moved', onClock: false },
29
- cache: { by: 'files', inputs: [CONTRIBUTION_FILE], key: null },
33
+ // the file sits in the agent folder CLAUDE.md names: agent/, or a folder of the repo's wiki/
34
+ cache: { by: 'files', inputs: ['CLAUDE.md', 'agent/global-contribution.md', 'wiki'], key: null },
30
35
  fix: 'ci',
31
36
  applies: (env) => notHouse(env.root),
32
37
  run: (c) => {
38
+ const CONTRIBUTION_FILE = fileOf(c)
33
39
  const text = c.read(CONTRIBUTION_FILE)
34
40
  if (text == null) return void c.fail(`${CONTRIBUTION_FILE} is missing: every house repo carries one, empty until it has something to offer`, 'shipkit ci writes the empty one')
35
41
  const body = contributionBody(text)
@@ -38,6 +44,7 @@ export const globalContribution = check({
38
44
  c.ok(body === '' ? `${CONTRIBUTION_FILE} is there, contributing nothing yet` : `${CONTRIBUTION_FILE} contributes ${body.split('\n').length} line(s)`)
39
45
  },
40
46
  repair: (c): FixResult => {
47
+ const CONTRIBUTION_FILE = fileOf(c)
41
48
  if (c.read(CONTRIBUTION_FILE) != null) return { changed: false, summary: `${CONTRIBUTION_FILE} is there: its size is the author's to fix` }
42
49
  c.write(CONTRIBUTION_FILE, CONTRIBUTION_STUB)
43
50
  return { changed: true, summary: `wrote the empty ${CONTRIBUTION_FILE}` }
@@ -1,4 +1,4 @@
1
- // SK034 commit gates armed (build/shipkit/commit-gates.md): the leak guard and
1
+ // SK034 commit gates armed (tools/shipkit/commit-gates.md): the leak guard and
2
2
  // the message gate run only from git's hooks, so a repo whose hooksPath is
3
3
  // unset, or points at a foreign dir that never calls shipkit, commits with
4
4
  // both dark and nothing says so. `sk ci` arms an unset path; a foreign one is
@@ -58,7 +58,7 @@ export const commitGatesArmed = check({
58
58
  blocking: true,
59
59
  title: 'commit gates armed',
60
60
  description: 'git runs the shipkit pre-commit and commit-msg gates on every commit',
61
- owner: 'build/shipkit/commit-gates.md',
61
+ owner: 'tools/shipkit/commit-gates.md',
62
62
  runs: { onPreCommit: false, onCi: true, onFull: true, onRelease: true, onHealth: true, onSave: 'moved', onClock: false },
63
63
  // git config and hook files outside any tree id, so they are the key
64
64
  cache: { by: 'files', inputs: [CONFIG_FILE], key: gatesKey },
@@ -1,4 +1,4 @@
1
- // SK035 public clean (build/shipkit/units.md, What a unit publishes): what each npm unit would pack names no house
1
+ // SK035 public clean (tools/shipkit/units.md, What a unit publishes): what each npm unit would pack names no house
2
2
  // repo, no identity, no keyword row, and ships no browser extension. Keyed on the work tree and on what no tracked
3
3
  // file carries (release/public-clean.ts publicCleanKey): each unit's tree on disk, gitignored files included, the
4
4
  // house repos, the identity, keyword and allow files. A release scans fresh
@@ -13,7 +13,7 @@ export const publicCleanCheck = check({
13
13
  blocking: true,
14
14
  title: 'public clean',
15
15
  description: 'what an npm unit publishes names no house repo, identity or keyword row',
16
- owner: 'build/shipkit/units.md',
16
+ owner: 'tools/shipkit/units.md',
17
17
  runs: { onPreCommit: false, onCi: true, onFull: true, onRelease: true, onHealth: true, onSave: 'moved', onClock: false },
18
18
  cache: { by: 'files', inputs: ['.'], key: (env) => publicCleanKey(env.root, npmUnits(env)) },
19
19
  fix: 'none',
@@ -34,8 +34,8 @@ export const publicCleanCheck = check({
34
34
  for (const [w, n] of waived) c.note(`${unit.id}: waived in ${n} file${n === 1 ? '' : 's'}, ${w}`)
35
35
  for (const x of r.refused) c.fail(`${x.file}: ${x.why}`, { fix: `keep it out of the tarball: a "!<path>" row in the unit's package.json files`, at: { file: x.file } })
36
36
  for (const h of r.hits)
37
- c.fail(`${h.file}:${h.line}: names ${h.what} (${h.masked}, ${h.fingerprint}): this file ships on npm`, {
38
- fix: `say it without the name (« a project », « the project's own page »); a word that must stay: a hooks.leakAllow entry with its reason; one site: sk-disable-next-line ${PUBLIC_CLEAN_ID} -- <reason>`,
37
+ c.fail(`${h.file}:${h.line}: names ${h.what} (${h.masked}, ${h.fingerprint}): this file ships on npm${h.over == null ? '' : `, and holds it ${h.count} times where ${h.over.source} allows ${h.over.count}`}`, {
38
+ fix: `say it without the name (« a project », « the project's own page »); a word that must stay, reviewed: hooks.leakAllow += { reason: '<why>', paths: ['${h.file}'], patterns: ['${h.fingerprint}'], count: ${h.count} }; one site: sk-disable-next-line ${PUBLIC_CLEAN_ID} -- <reason>`,
39
39
  at: { file: h.file, line: h.line },
40
40
  })
41
41
  if (r.refused.length === 0 && r.hits.filter((h) => h.directive == null).length === 0) c.ok(`${unit.id}: the ${r.files.length} files npm packs name nothing of the house`)
@@ -1,4 +1,4 @@
1
- // SK036 draft media size (build/shipkit/built-in-checks.md): no file git would commit under `.shipkit/social/` is over
1
+ // SK036 draft media size (tools/shipkit/built-in-checks.md): no file git would commit under `.shipkit/social/` is over
2
2
  // 95 MB. GitHub refuses a file over 100 MB, and the desk pushes its commits in the background, so the refusal would
3
3
  // come after the commit, with the draft stuck on this Mac. It reads the index (staged and tracked), never the files
4
4
  import { check } from '../check.ts'
@@ -10,7 +10,7 @@ export const draftMediaSize = check({
10
10
  blocking: true,
11
11
  title: 'draft media size',
12
12
  description: 'no file git would commit under .shipkit/social/ is over 95 MB (GitHub refuses 100)',
13
- owner: 'build/shipkit/social.md',
13
+ owner: 'tools/shipkit/social.md',
14
14
  runs: { onPreCommit: { budgetMs: 60 }, onCi: true, onFull: true, onRelease: true, onHealth: true, onSave: 'moved', onClock: false },
15
15
  // the folder's files; the hook runs it raw on the index, so a file staged since a cached green is still seen there
16
16
  cache: { by: 'files', inputs: [LAYOUT.social], key: null },
@@ -0,0 +1,43 @@
1
+ // SK037 keyword additions (tools/shipkit/commit-gates.md, the leak guard): the banned keyword list lives in ONE
2
+ // place, the machine's ~/.shipkit/private/banned-keywords.txt, and the secret shapes are built into the guard. A
3
+ // repo's own .shipkit/private/banned-keywords.txt holds its ADDITIONS only. A row it shares with either is a copy,
4
+ // and a copy rots: it keeps a shape the list has since changed (a substring row the list made whole word stays
5
+ // stricter in that one repo) and survives the list dropping it. The file is gitignored, so the run strips copies in
6
+ // place; a frozen run warns. Reads the machine list, which no repo key covers, so it is never cached
7
+ import { readFileSync } from 'fs'
8
+ import { check } from '../check.ts'
9
+ import { KEYWORD_FILE } from '../core/layout.ts'
10
+ import { globalKeywordFile, repoAdditions } from '../hooks/leak-guard.ts'
11
+
12
+ export const keywordAdditions = check({
13
+ id: 'SK037',
14
+ blocking: false,
15
+ title: 'keyword additions',
16
+ description: "the repo's banned keyword file holds its additions only, never a copy of the official list",
17
+ owner: 'tools/shipkit/commit-gates.md',
18
+ writes: true,
19
+ // it reads the machine list, a world fact no quick gate reads: the health pass, and the daemon about daily
20
+ runs: { onPreCommit: false, onCi: false, onFull: false, onRelease: false, onHealth: true, onSave: false, onClock: { every: '24h', inactive: 'wait' } },
21
+ cache: { by: 'never', why: 'it reads the machine list outside the repo, and the read costs a millisecond' },
22
+ fix: 'none',
23
+ applies: 'always',
24
+ run: (c) => {
25
+ const rel = c.config.hooks?.keywordFile ?? KEYWORD_FILE
26
+ const text = c.read(rel)
27
+ if (text == null) return c.ok(`no ${rel}: this repo adds nothing to the official list`)
28
+ const official = globalKeywordFile()
29
+ const r = repoAdditions(text, official == null ? '' : readFileSync(official, 'utf8'))
30
+ const own = `${r.own} row${r.own === 1 ? '' : 's'} of its own`
31
+ if (r.copies.length === 0) return c.ok(`${rel}: ${own}, no copy of the official list${official == null ? ' (no machine list on this machine)' : ''}`)
32
+ const n = `${r.copies.length} row${r.copies.length === 1 ? '' : 's'}`
33
+ if (c.frozen) {
34
+ c.warn(`${rel} copies ${n} the official list or the built-in shapes already hold, beside ${own}`)
35
+ c.lines.push({ kind: 'fix-warn', text: 'any run that is not frozen strips them (sk check)' })
36
+ return
37
+ }
38
+ c.write(rel, r.text)
39
+ c.note(`${rel}: ${n} the official list or the built-in shapes already hold stripped, ${own} kept`)
40
+ },
41
+ })
42
+
43
+ export default keywordAdditions
@@ -1,9 +1,9 @@
1
1
  // sk backup: the machine-only state of the house kept in the private Space (media-store/backup/, wiki
2
- // build/shipkit/media-store.md, Backup): a run now, what is not backed up yet, the runs, a restore, the drill.
2
+ // tools/shipkit/media-store.md, Backup): a run now, what is not backed up yet, the runs, a restore, the drill.
3
3
  // Every module loads inside execute: the cli registers this file on every `sk` call
4
4
  import { Command, Option } from 'clipanion'
5
5
 
6
- const DETAILS = `the files of the house that no git and no Space keeps (the veille logs, the media index and the machine db as sqlite snapshots, the rail order, the machine's private folder, the agents' memories, each house repo's untracked .shipkit/ files, its hand tuned .comfy-ts/ files, its gitignored *.local.* files, and what its repo.config.ts names under backup: paths kept whole, sqlite files) go up to the owner's private Space under backup/<sha256>, each run under backup/runs/ with its parts under backup/parts/ (a part unchanged since the last run is not written again). Every version stays: nothing is ever deleted. Secrets never go: a file whose name or text says it holds one is refused, with the reason. The daemon runs it on change (debounced) and every 6 h. Page: wiki build/shipkit/media-store.md, Backup`
6
+ const DETAILS = `the files of the house that no git and no Space keeps (the veille logs, the media index and the machine db as sqlite snapshots, the rail order, the machine's private folder, the agents' memories, each house repo's untracked .shipkit/ files, its hand tuned .comfy-ts/ files, its gitignored *.local.* files, and what its repo.config.ts names under backup: paths kept whole, sqlite files) go up to the owner's private Space under backup/<sha256>, each run under backup/runs/ with its parts under backup/parts/ (a part unchanged since the last run is not written again). Every version stays: nothing is ever deleted. Secrets never go: a file whose name or text says it holds one is refused, with the reason. The daemon runs it on change (debounced) and every 6 h. Page: wiki tools/shipkit/media-store.md, Backup`
7
7
 
8
8
  type Ctx = { stdout: NodeJS.WritableStream; stderr: NodeJS.WritableStream }
9
9
 
@@ -18,7 +18,7 @@ export type CommandRow = {
18
18
  examples: [string, string][]
19
19
  /** a filmable command (cli/kit/verb.ts): takes --out, a clip also --seconds */
20
20
  film?: Film
21
- /** a filmable command's take version and length (build/trailer.md, Film lines) */
21
+ /** a filmable command's take version and length (tools/trailer/index.md, Film lines) */
22
22
  version?: number | string
23
23
  length?: 'own'
24
24
  words?: Record<string, unknown>
@@ -119,7 +119,7 @@ export function renderMarkdown(rows: CommandRow[], bin = 'sk'): string {
119
119
  /** the eager form: one line per command, its positional arguments and its
120
120
  * description. Flags and examples are `<bin> <command> --help`, so a page every
121
121
  * session loads costs a line per command, not a screen. `pages` puts each
122
- * family's owner page in its heading: `### Trailer → build/trailer.md` */
122
+ * family's owner page in its heading: `### Trailer → tools/trailer/index.md` */
123
123
  export function renderCompact(rows: CommandRow[], bin = 'sk', pages: Readonly<Record<string, string>> | null = null): string {
124
124
  const out: string[] = []
125
125
  let cat = ''
@@ -211,8 +211,8 @@ export class CommandsCommand extends Command {
211
211
  ['markdown index', 'sk commands'],
212
212
  ['machine-readable', 'sk commands --json'],
213
213
  ['write into a docs page between the markers', 'sk commands --out docs/commands.md'],
214
- ['one line per command, for a page every session loads', 'sk commands --compact --out wiki/build/shipkit-cli.md'],
215
- ['fail if that page is stale (lint mode)', 'sk commands --compact --out wiki/build/shipkit-cli.md --check'],
214
+ ['one line per command, for a page every session loads', 'sk commands --compact --out wiki/tools/shipkit/commands.md'],
215
+ ['fail if that page is stale (lint mode)', 'sk commands --compact --out wiki/tools/shipkit/commands.md --check'],
216
216
  ],
217
217
  })
218
218
 
@@ -24,8 +24,8 @@ export class ConfigKeysCommand extends Command {
24
24
  examples: [
25
25
  ['markdown reference', 'sk config-keys'],
26
26
  ['machine-readable', 'sk config-keys --json'],
27
- ['write into a docs page between the markers', 'sk config-keys --out wiki/build/shipkit/config-keys.md'],
28
- ['fail if that page is stale (lint mode)', 'sk config-keys --out wiki/build/shipkit/config-keys.md --check'],
27
+ ['write into a docs page between the markers', 'sk config-keys --out wiki/tools/shipkit/config-keys.md'],
28
+ ['fail if that page is stale (lint mode)', 'sk config-keys --out wiki/tools/shipkit/config-keys.md --check'],
29
29
  ['name the keys carrying no doc comment', 'sk config-keys --undocumented'],
30
30
  ],
31
31
  })
@@ -1,4 +1,4 @@
1
- // `sk drill`: the records of a measured drill (wiki build/speed-up-agents.md). report = one run's transcript
1
+ // `sk drill`: the records of a measured drill (wiki meta/speed-up-agents/index.md). report = one run's transcript
2
2
  // as run<n>.json + run<n>.md, verdict = the judged quality added to a run, compare = every run of a drill side
3
3
  // by side. It reads transcripts and writes files; it never starts an agent (core/agent-spawn.ts). Exit 0 with
4
4
  // the files written, 1 when a transcript or a run is missing or an argument does not parse, 2 on a bad verdict or --out.
@@ -89,7 +89,7 @@ export class DaemonJobCommand extends Command {
89
89
  static override usage = Command.Usage({
90
90
  category: 'Serve',
91
91
  description: 'a daemon background job now, in this process: backup, retention sweep, media store, global context',
92
- details: 'what the daemon runs off its loop: it starts each job as this command in a child process, niced, its lines appended to the daemon\'s log, and never runs a job\'s body itself, so a walk, a VACUUM or a hash pass never holds a page. The backup looks every 2 min and runs when its sources moved and held still, the retention sweep runs hourly, the media store passes every 30 s, the global context is written when the stamp of its sources moved. What a job remembers between two runs lives in the machine db. Page: wiki build/shipkit/home.md, Nothing heavy on the daemon\'s loop',
92
+ details: 'what the daemon runs off its loop: it starts each job as this command in a child process, niced, its lines appended to the daemon\'s log, and never runs a job\'s body itself, so a walk, a VACUUM or a hash pass never holds a page. The backup looks every 2 min and runs when its sources moved and held still, the retention sweep runs hourly, the media store passes every 30 s, the global context is written when the stamp of its sources moved. What a job remembers between two runs lives in the machine db. Page: wiki tools/shipkit/home.md, Nothing heavy on the daemon\'s loop',
93
93
  examples: [
94
94
  ['a retention sweep now', 'sk daemon job "retention sweep"'],
95
95
  ['one media store pass', 'sk daemon job "media store"'],
@@ -13,7 +13,7 @@ export class InitCommand extends Command {
13
13
  examples: [
14
14
  ['wire the repo you are standing in', 'sk init'],
15
15
  ['local git and the first commit, never touch github', 'sk init --no-github'],
16
- ['in-repo-source consumer: scripts run the CLI by path', 'sk init --bin wiki/build/shipkit/rvlib-shipkit/src/cli.ts'],
16
+ ['in-repo-source consumer: scripts run the CLI by path', 'sk init --bin packages/rvlib-shipkit/src/cli.ts'],
17
17
  ],
18
18
  })
19
19
 
@@ -1,9 +1,9 @@
1
- // sk media: the machine's one media store (media-store/, wiki build/shipkit/media-store.md): what each kind of each repo
1
+ // sk media: the machine's one media store (media-store/, wiki tools/shipkit/media-store.md): what each kind of each repo
2
2
  // holds on the disk and in the private Space, every waiting file sent up now, the disk freed of what the Space holds.
3
3
  // Every module loads inside execute: the cli registers this file on every `sk` call
4
4
  import { Command, Option } from 'clipanion'
5
5
 
6
- const DETAILS = `the machine's one media store: every media file a kind names (review: a card's files; trailer: each render's video and strip, a kept version's own) is known by its sha256, goes up to the owner's private Space as <kind>/<sha256>.<ext>, and leaves the disk once the Space holds it and its kind no longer pins it; it comes back on demand. One sqlite index for the machine. Page: wiki build/shipkit/media-store.md`
6
+ const DETAILS = `the machine's one media store: every media file a kind names (review: a card's files; trailer: each render's video and strip, a kept version's own) is known by its sha256, goes up to the owner's private Space as <kind>/<sha256>.<ext>, and leaves the disk once the Space holds it and its kind no longer pins it; it comes back on demand. One sqlite index for the machine. Page: wiki tools/shipkit/media-store.md`
7
7
 
8
8
  type Ctx = { stdout: NodeJS.WritableStream; stderr: NodeJS.WritableStream }
9
9
  type Kind = import('../media-store/kind.ts').MediaKind
@@ -162,7 +162,7 @@ export class MediaPurgeCommand extends Command {
162
162
  }
163
163
  }
164
164
 
165
- const PUT_DETAILS = `The one way an agent of any repo keeps a file in the owner's private Space: never call the Space client directly. Each file is kept by its content as <label>/<sha256>.<ext>, private: its index row (its repo, its place, its original name) first, then the upload, checked by a HEAD of its size; a content the Space already holds is only marked. The object never expires and nothing deletes it from the Space; the file stays on the disk, purgeable by the usual rules (sk media purge). A link is signed on the CDN edge and downloads under the file's name; it lasts at most 7d, the SigV4 limit of a signed URL, and sk media link makes a new one at any time. Page: wiki build/shipkit/media-store.md, Put a file from any repo`
165
+ const PUT_DETAILS = `The one way an agent of any repo keeps a file in the owner's private Space: never call the Space client directly. Each file is kept by its content as <label>/<sha256>.<ext>, private: its index row (its repo, its place, its original name) first, then the upload, checked by a HEAD of its size; a content the Space already holds is only marked. The object never expires and nothing deletes it from the Space; the file stays on the disk, purgeable by the usual rules (sk media purge). A link is signed on the CDN edge and downloads under the file's name; it lasts at most 7d, the SigV4 limit of a signed URL, and sk media link makes a new one at any time. Page: wiki tools/shipkit/media-store.md, Put a file from any repo`
166
166
 
167
167
  export class MediaPutCommand extends Command {
168
168
  static override paths = [['media', 'put']]
@@ -229,7 +229,7 @@ export class MediaVersioningCommand extends Command {
229
229
  static override usage = Command.Usage({
230
230
  category: 'Media',
231
231
  description: "turn on the Space's versioning: a delete from outside can be undone; --check reads it",
232
- details: `PutBucketVersioning, then GetBucketVersioning to confirm: an object deleted or overwritten from the DigitalOcean dashboard or by a stray key keeps its older version. DigitalOcean offers it through the S3 API only. Once on, it can only be suspended, never turned off. The house key is limited to the bucket's objects and cannot change it: --key names a full access key pair kept once in the keychain for this call. Page: wiki build/shipkit/media-store.md, Versioning`,
232
+ details: `PutBucketVersioning, then GetBucketVersioning to confirm: an object deleted or overwritten from the DigitalOcean dashboard or by a stray key keeps its older version. DigitalOcean offers it through the S3 API only. Once on, it can only be suspended, never turned off. The house key is limited to the bucket's objects and cannot change it: --key names a full access key pair kept once in the keychain for this call. Page: wiki tools/shipkit/media-store.md, Versioning`,
233
233
  examples: [
234
234
  ['turn it on', 'sk media versioning'],
235
235
  ['turn it on with a one time full access key', 'sk media versioning --key rv/shipkit/spaces-admin'],