rvlib-shipkit 2.12.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.
- package/CHANGELOG.md +75 -21
- package/README.md +1 -1
- package/package.json +4 -2
- package/src/agent-time/store.ts +2 -2
- package/src/assets/run-assets.ts +2 -2
- package/src/assets/server/studio-server.ts +27 -23
- package/src/check.ts +4 -4
- package/src/checks/SK001-package-json-shape.check.ts +8 -4
- package/src/checks/SK002-contracts-fulfillness.check.ts +2 -2
- package/src/checks/SK003-claude-md-shape.check.ts +20 -13
- package/src/checks/SK004-gitignore-policy.check.ts +45 -6
- package/src/checks/SK005-rvlib-versions.check.ts +2 -2
- package/src/checks/SK006-npm-publish-safety.check.ts +3 -3
- package/src/checks/SK007-github-visibility.check.ts +2 -2
- package/src/checks/SK008-reviewer-agent.check.ts +3 -3
- package/src/checks/SK010-undeclared-unit.check.ts +2 -2
- package/src/checks/SK011-sibling-unit-ranges.check.ts +2 -2
- package/src/checks/SK012-config-barrel-import.check.ts +2 -2
- package/src/checks/SK013-one-way-in-policy.check.ts +2 -2
- package/src/checks/SK015-nested-repo.check.ts +3 -3
- package/src/checks/SK016-legacy-check-shapes.check.ts +2 -2
- package/src/checks/SK017-vscode-hub-task.check.ts +2 -2
- package/src/checks/SK018-test-files-run.check.ts +2 -2
- package/src/checks/SK019-tests-run-in-units.check.ts +2 -2
- package/src/checks/SK020-self-spawning-check.check.ts +2 -2
- package/src/checks/SK022-machine-runs-the-pin.check.ts +2 -2
- package/src/checks/SK024-identity-colors.check.ts +1 -1
- package/src/checks/SK025-release-drift.check.ts +2 -2
- package/src/checks/SK026-asks-autoclose.check.ts +2 -2
- package/src/checks/SK027-agent-wiki-links.check.ts +8 -2
- package/src/checks/SK028-readme.check.ts +2 -2
- package/src/checks/SK029-explicit-check-files.check.ts +3 -3
- package/src/checks/SK030-cache-audit.check.ts +7 -5
- package/src/checks/SK031-trace-audit.check.ts +7 -7
- package/src/checks/SK032-ignored-inputs.check.ts +3 -3
- package/src/checks/SK033-global-contribution.check.ts +11 -4
- package/src/checks/SK034-commit-gates-armed.check.ts +2 -2
- package/src/checks/SK035-public-clean.check.ts +46 -0
- package/src/checks/SK036-draft-media-size.check.ts +28 -0
- package/src/checks/SK037-keyword-additions.check.ts +43 -0
- package/src/cli/cmd_Backup.ts +152 -0
- package/src/cli/cmd_Ci.ts +8 -11
- package/src/cli/cmd_Commands.ts +4 -4
- package/src/cli/cmd_ConfigKeys.ts +2 -2
- package/src/cli/cmd_Drill.ts +145 -0
- package/src/cli/cmd_Home.ts +50 -3
- package/src/cli/cmd_Init.ts +1 -1
- package/src/cli/cmd_Media.ts +10 -8
- package/src/cli/cmd_Mv.ts +14 -7
- package/src/cli/cmd_Review.ts +6 -4
- package/src/cli/cmd_Shot.ts +5 -2
- package/src/cli/cmd_Smoke.ts +5 -2
- package/src/cli/cmd_Social.ts +226 -0
- package/src/cli/cmd_Sound.ts +1 -1
- package/src/cli/cmd_Start.ts +1 -1
- package/src/cli/cmd_Time.ts +1 -1
- package/src/cli/cmd_TraceAudit.ts +6 -6
- package/src/cli/cmd_Trailer.ts +7 -4
- package/src/cli/cmd_Veille.ts +173 -0
- package/src/cli/cmd_When.ts +2 -2
- package/src/cli/family-pages.ts +19 -16
- package/src/cli/registry.ts +13 -2
- package/src/cli.ts +5 -2
- package/src/collections/actions.ts +1 -49
- package/src/collections/checks.ts +2 -1
- package/src/collections/collection-types.ts +12 -3
- package/src/collections/providers.ts +4 -4
- package/src/collections/review.ts +3 -2
- package/src/collections/tests.ts +19 -8
- package/src/comfy/comfy-panel.ts +2 -2
- package/src/contracts/apply-contracts.ts +1 -3
- package/src/contracts/contract-manifests.ts +2 -3
- package/src/contracts/contract-types.ts +0 -1
- package/src/contracts/contracts-engine.ts +0 -3
- package/src/contracts/manifests/discord.contract.ts +1 -1
- package/src/contracts/manifests/identity.contract.ts +1 -1
- package/src/contracts/manifests/itch.contract.ts +1 -1
- package/src/contracts/manifests/steam.contract.ts +1 -1
- package/src/core/agent-dir-at.ts +12 -0
- package/src/core/agent-dir.ts +16 -0
- package/src/core/app-icon.ts +9 -3
- package/src/core/budget.ts +1 -1
- package/src/core/bun-builtins.ts +2 -2
- package/src/core/canonical-scripts.ts +2 -2
- package/src/core/discover-checks.ts +38 -6
- package/src/core/fix-scope.ts +4 -2
- package/src/core/floor-resolve.ts +68 -48
- package/src/core/floor.ts +9 -0
- package/src/core/git-root.ts +24 -0
- package/src/core/global-contribution.ts +4 -1
- package/src/core/ignored-block.ts +1 -1
- package/src/core/ignored-inputs.ts +3 -2
- package/src/core/last-good.ts +3 -1
- package/src/core/layout.ts +8 -0
- package/src/core/log-stamp.ts +36 -0
- package/src/core/loop-watch.ts +93 -0
- package/src/core/machine-link.ts +134 -0
- package/src/core/memory-watch.ts +41 -0
- package/src/core/motherhome.ts +2 -2
- package/src/core/one-way-in-policy.ts +34 -26
- package/src/core/run-ci.ts +9 -11
- package/src/core/run-fixers.ts +9 -9
- package/src/core/runs-matrix.ts +1 -1
- package/src/core/slots.ts +30 -0
- package/src/core/trace-audit.ts +50 -9
- package/src/core/tree-rev.ts +60 -0
- package/src/core/unit-files.ts +42 -0
- package/src/drill/render.ts +140 -0
- package/src/drill/run.ts +269 -0
- package/src/fleet/scan-fleet.ts +6 -5
- package/src/home/daemon-jobs.ts +201 -0
- package/src/home/global-context.ts +44 -8
- package/src/home/gui-app/ShipkitGui.swift +91 -2
- package/src/home/home-routes.ts +22 -15
- package/src/home/hubs.ts +10 -3
- package/src/home/inbox-shape.ts +54 -5
- package/src/home/inbox.ts +17 -2
- package/src/home/lib-watch.ts +10 -3
- package/src/home/machine-stores.ts +15 -29
- package/src/home/pm-config.ts +4 -1
- package/src/home/pm-inputs.ts +2 -0
- package/src/home/resources.ts +7 -2
- package/src/home/run-daemon.ts +15 -18
- package/src/home/run-pm.ts +3 -1
- package/src/home/serve-daemon.ts +4 -3
- package/src/home/serve-web.ts +104 -1
- package/src/hooks/commit-message.ts +29 -20
- package/src/hooks/hook-gates.ts +1 -1
- package/src/hooks/leak-guard.ts +69 -9
- package/src/hooks/run-hooks.ts +18 -22
- package/src/identities/identities.ts +334 -0
- package/src/identities/machine-route.ts +126 -0
- package/src/identities/machine.ts +62 -0
- package/src/init-repo.ts +3 -3
- package/src/ledger/check-stats.ts +10 -9
- package/src/ledger/gate-checks.ts +32 -1
- package/src/ledger/record-kept.ts +112 -0
- package/src/ledger/repo-view.ts +10 -0
- package/src/ledger/run-log.ts +17 -12
- package/src/ledger/run-timeline.ts +8 -4
- package/src/ledger/store.ts +7 -0
- package/src/ledger/suite-log.ts +17 -13
- package/src/media-kinds.ts +3 -2
- package/src/media-store/backup/daemon.ts +73 -0
- package/src/media-store/backup/keys.ts +25 -0
- package/src/media-store/backup/manifest.ts +193 -0
- package/src/media-store/backup/restore.ts +192 -0
- package/src/media-store/backup/run.ts +278 -0
- package/src/media-store/backup/secret.ts +86 -0
- package/src/media-store/backup/snapshot.ts +64 -0
- package/src/media-store/backup/sources.ts +199 -0
- package/src/media-store/content.ts +1 -1
- package/src/media-store/daemon.ts +56 -70
- package/src/media-store/db.ts +1 -1
- package/src/media-store/fact.ts +1 -1
- package/src/media-store/hand.ts +1 -1
- package/src/media-store/kind.ts +1 -1
- package/src/media-store/purge.ts +1 -1
- package/src/media-store/put.ts +5 -3
- package/src/media-store/remote.ts +1 -1
- package/src/media-store/space.ts +24 -5
- package/src/mv/mv-md.ts +63 -22
- package/src/pages/forward.ts +35 -0
- package/src/pages/frame-client.ts +118 -0
- package/src/pages/routes.ts +29 -0
- package/src/pages/unit.ts +92 -0
- package/src/plan/planner.ts +12 -0
- package/src/plan/repo-source.ts +19 -5
- package/src/reflect/transcript.ts +35 -10
- package/src/release/public-clean.ts +319 -0
- package/src/release/published-here.ts +22 -0
- package/src/release/run-bump.ts +3 -2
- package/src/release/run-release.ts +7 -4
- package/src/repo-config.ts +71 -13
- package/src/review/anim.ts +1 -1
- package/src/review/auto.ts +1 -1
- package/src/review/cells.ts +15 -1
- package/src/review/format.ts +2 -2
- package/src/review/http.ts +16 -2
- package/src/review/marks.ts +1 -1
- package/src/review/media-kind.ts +1 -1
- package/src/review/media-read.ts +1 -1
- package/src/review/model.ts +27 -6
- package/src/review/notes.ts +125 -0
- package/src/review/previews.ts +1 -1
- package/src/review/project.ts +7 -39
- package/src/review/role.ts +1 -1
- package/src/review/routes.ts +18 -14
- package/src/review/store.ts +42 -2
- package/src/review/threads.ts +1 -1
- package/src/review/trailer-desk.ts +3 -3
- package/src/review/trailer-media.ts +8 -5
- package/src/review/trailer-model.ts +1 -1
- package/src/review/trailer-routes.ts +1 -1
- package/src/review/trailer-shots.ts +22 -5
- package/src/review/unit.ts +2 -2
- package/src/scaffold/files/agent-handoff.md +3 -0
- package/src/scaffold/files/agent-index.md +4 -12
- package/src/scaffold/files/tsconfig.json +1 -1
- package/src/scaffold/project-scaffold.ts +6 -5
- package/src/serve/embed.ts +2 -2
- package/src/serve/hub-app/check-words.ts +1 -1
- package/src/serve/hub-app/col-card.tsx +3 -17
- package/src/serve/hub-app/col-tables-view.tsx +2 -1
- package/src/serve/hub-app/cols-svc.ts +0 -13
- package/src/serve/hub-app/dock-st.ts +4 -2
- package/src/serve/hub-app/dock-view.tsx +2 -0
- package/src/serve/hub-app/frames-st.ts +35 -0
- package/src/serve/hub-app/hash-route.ts +64 -1
- package/src/serve/hub-app/home-st.ts +32 -8
- package/src/serve/hub-app/home-strip.css +9 -1
- package/src/serve/hub-app/home-strip.tsx +7 -6
- package/src/serve/hub-app/home.html +5 -0
- package/src/serve/hub-app/hub-app.tsx +51 -7
- package/src/serve/hub-app/hub.css +29 -11
- package/src/serve/hub-app/icons.tsx +16 -1
- package/src/serve/hub-app/identities-st.ts +210 -0
- package/src/serve/hub-app/identities-view.tsx +353 -0
- package/src/serve/hub-app/identities.css +48 -0
- package/src/serve/hub-app/identity-address.ts +52 -0
- package/src/serve/hub-app/inbox-st.ts +60 -7
- package/src/serve/hub-app/inbox-view.tsx +49 -7
- package/src/serve/hub-app/inbox.css +12 -1
- package/src/serve/hub-app/index.html +3 -0
- package/src/serve/hub-app/kept-cols.tsx +30 -0
- package/src/serve/hub-app/keys.ts +10 -2
- package/src/serve/hub-app/list-walk.ts +89 -0
- package/src/serve/hub-app/machine-st.ts +12 -0
- package/src/serve/hub-app/media-svc.ts +1 -1
- package/src/serve/hub-app/media-view.tsx +2 -1
- package/src/serve/hub-app/pages-frames.tsx +134 -0
- package/src/serve/hub-app/pages-svc.ts +111 -0
- package/src/serve/hub-app/palette-st.ts +18 -3
- package/src/serve/hub-app/palette-view.tsx +9 -2
- package/src/serve/hub-app/planned-view.tsx +2 -1
- package/src/serve/hub-app/project-list.css +18 -14
- package/src/serve/hub-app/project-list.tsx +88 -49
- package/src/serve/hub-app/projects-svc.ts +33 -3
- package/src/serve/hub-app/repo-sections.ts +19 -2
- package/src/serve/hub-app/repo-st.ts +76 -20
- package/src/serve/hub-app/review/review-board.tsx +1 -1
- package/src/serve/hub-app/review/review-cells.tsx +6 -5
- package/src/serve/hub-app/review/review-kit.ts +30 -7
- package/src/serve/hub-app/review/review-page.tsx +6 -5
- package/src/serve/hub-app/review/review-st.ts +34 -15
- package/src/serve/hub-app/review/review-thread.tsx +63 -14
- package/src/serve/hub-app/review/review-views.tsx +133 -51
- package/src/serve/hub-app/review/thread-st.ts +80 -37
- package/src/serve/hub-app/review/trailer-page.tsx +7 -5
- package/src/serve/hub-app/review/trailer-st.ts +1 -1
- package/src/serve/hub-app/review.css +26 -9
- package/src/serve/hub-app/site/site-part.tsx +173 -0
- package/src/serve/hub-app/site/site-st.ts +157 -0
- package/src/serve/hub-app/site.css +35 -0
- package/src/serve/hub-app/social/calendar.tsx +182 -0
- package/src/serve/hub-app/social/comms-page.tsx +330 -0
- package/src/serve/hub-app/social/kit.tsx +244 -0
- package/src/serve/hub-app/social/post-card.tsx +456 -0
- package/src/serve/hub-app/social/problems.tsx +60 -0
- package/src/serve/hub-app/social/social-model.ts +154 -0
- package/src/serve/hub-app/social/social-page.tsx +681 -0
- package/src/serve/hub-app/social/social-st.ts +1014 -0
- package/src/serve/hub-app/social.css +289 -0
- package/src/serve/hub-app/stores/stores-page.tsx +312 -0
- package/src/serve/hub-app/stores/stores-st.ts +286 -0
- package/src/serve/hub-app/stores.css +54 -0
- package/src/serve/hub-app/timeline-geometry.ts +1 -1
- package/src/serve/hub-app/timeline-view.tsx +3 -2
- package/src/serve/hub-app/tree-build.ts +6 -0
- package/src/serve/hub-app/tree-row.tsx +27 -4
- package/src/serve/hub-app/tree-svc.ts +18 -49
- package/src/serve/hub-app/veille/veille-page.tsx +515 -0
- package/src/serve/hub-app/veille/veille-st.ts +443 -0
- package/src/serve/hub-app/veille.css +84 -0
- package/src/serve/hub-runtime.ts +20 -11
- package/src/serve/project-gutter-route.ts +44 -12
- package/src/serve/run-lanes.ts +7 -4
- package/src/serve/same-origin.ts +1 -1
- package/src/serve/serve-hub.ts +20 -12
- package/src/serve/tracked-watch.ts +24 -3
- package/src/serve/warm-cell.ts +5 -1
- package/src/shipkit-files.ts +15 -4
- package/src/shipkit.ts +0 -1
- package/src/shot/box.ts +160 -0
- package/src/shot/browser-slot.ts +74 -0
- package/src/shot/client.ts +42 -7
- package/src/shot/clip-encoder.ts +108 -24
- package/src/shot/film-box.ts +292 -0
- package/src/shot/shooter.ts +71 -17
- package/src/shot/shot-ask.ts +10 -2
- package/src/shot/stepped-clip.ts +5 -4
- package/src/site/desk.ts +242 -0
- package/src/site/routes.ts +66 -0
- package/src/site/unit.ts +62 -0
- package/src/social/brands.ts +22 -0
- package/src/social/card-drafts.ts +24 -0
- package/src/social/compose.ts +97 -0
- package/src/social/desk-index.ts +123 -0
- package/src/social/desk-wire.ts +64 -0
- package/src/social/drafts.ts +183 -0
- package/src/social/house.ts +24 -0
- package/src/social/load.ts +332 -0
- package/src/social/md.ts +70 -0
- package/src/social/media-facts.ts +53 -0
- package/src/social/media-kind.ts +189 -0
- package/src/social/media-limit.ts +42 -0
- package/src/social/media-of.ts +30 -0
- package/src/social/migrate.ts +123 -0
- package/src/social/open.ts +17 -0
- package/src/social/post-url.ts +158 -0
- package/src/social/presence.ts +332 -0
- package/src/social/public-read.ts +53 -0
- package/src/social/publish/bluesky.ts +168 -0
- package/src/social/publish/discord.ts +76 -0
- package/src/social/publish/index.ts +24 -0
- package/src/social/publish/secret.ts +13 -0
- package/src/social/push.ts +37 -0
- package/src/social/richtext.ts +37 -0
- package/src/social/routes.ts +186 -0
- package/src/social/stats.ts +134 -0
- package/src/social/text.ts +267 -0
- package/src/social/tracker-route.ts +39 -0
- package/src/social/tracker.ts +255 -0
- package/src/social/unit.ts +53 -0
- package/src/social/writes.ts +130 -0
- package/src/start-repo.ts +14 -9
- package/src/stores/collection.ts +27 -0
- package/src/stores/desk.ts +336 -0
- package/src/stores/model.ts +187 -0
- package/src/stores/routes.ts +126 -0
- package/src/stores/unit.ts +57 -0
- package/src/suite/calibrate.ts +127 -0
- package/src/suite/core-counters.ts +91 -0
- package/src/suite/judge-suites.ts +95 -35
- package/src/suite/suite-cli.ts +44 -10
- package/src/suite/suite-cpu-preload.ts +34 -9
- package/src/trace/tracer.ts +12 -5
- package/src/trailer/adapter.ts +5 -1
- package/src/trailer/build.ts +45 -12
- package/src/trailer/ffmpeg.ts +11 -0
- package/src/trailer/footage.ts +30 -13
- package/src/trailer/grammar.ts +18 -2
- package/src/trailer/graph.ts +28 -6
- package/src/trailer/holes.ts +1 -1
- package/src/trailer/passage.ts +18 -6
- package/src/trailer/plan.ts +74 -3
- package/src/trailer/prune.ts +1 -1
- package/src/trailer/states.ts +1 -1
- package/src/trailer/stitch.ts +67 -26
- package/src/trailer/url.ts +1 -1
- package/src/trailer/versions.ts +24 -0
- package/src/trailer/words.ts +1 -1
- package/src/ts/gate-typecheck.ts +32 -0
- package/src/ts/typecheck-cli.ts +9 -11
- package/src/tui/run-tui.ts +1 -1
- package/src/tui/tui-app.tsx +0 -1
- package/src/tui/tui-store.ts +1 -1
- package/src/veille/asks.ts +155 -0
- package/src/veille/auto.ts +31 -0
- package/src/veille/batch.ts +27 -0
- package/src/veille/chrome.ts +127 -0
- package/src/veille/collection.ts +28 -0
- package/src/veille/desk.ts +242 -0
- package/src/veille/identity.ts +80 -0
- package/src/veille/import.ts +68 -0
- package/src/veille/log.ts +183 -0
- package/src/veille/platforms.ts +118 -0
- package/src/veille/reads.ts +66 -0
- package/src/veille/replied.ts +110 -0
- package/src/veille/routes.ts +185 -0
- package/src/veille/service.ts +81 -0
- package/src/veille/watch.ts +116 -0
- package/src/veille/worth.ts +46 -0
- package/src/wiki/scan-md.ts +18 -0
- package/src/collections/posts.ts +0 -142
- package/src/contracts/manifests/social.contract.ts +0 -20
- package/src/scaffold/files/agent-coding.md +0 -35
- package/src/ts/typecheck-cache.ts +0 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,57 @@
|
|
|
1
|
+
## 2.14.0
|
|
2
|
+
|
|
3
|
+
- **`sk mv` turns a page into a topic folder.** `sk mv wiki/a/x.md wiki/b/x/index.md` makes the page's asset dir the folder and the page its `index.md`, in place too (`wiki/a/x.md` → `wiki/a/x/index.md`); an existing folder is refused, never merged into. An empty leftover dir no longer stops a move, and a renamed page renames its `.check.shipkit.ts`, `.check.ts` and `.shipkit.ts` files with it.
|
|
4
|
+
- **`sk mv --map <file>` moves many pages in one run**, one `<old> <new>` pair per line, in order, with the repo's `mv:after` script run once at the end.
|
|
5
|
+
- **The agent folder is the one CLAUDE.md names.** Its last include, `@./<dir>/index.md`, declares it (`agent/` when none does), and SK003, SK027, SK033, the hub's agent graph and the house context read it there. A repo that hosts a base wiki may name a folder of it: SK027 and the agent graph leave a nested folder to that wiki's own lint and graph, and a top level folder that is not `agent/` fails SK027.
|
|
6
|
+
- **The traced audit finds a tracked file a declared key misses.** A unit's `test:<unit>` is keyed on its dir and siblings, so a test reading a doc outside it replayed a green after an edit to that doc broke it. `sk trace-audit` now reports a tracked file a task with a declared list reads outside the list, beside the gitignored paths: the finding joins the key on this machine at once and the fix pass writes it into the `ignoredInputs` block, as before. The toolkit's own files (keyed by code) and a tracked dir a task only lists are never findings.
|
|
7
|
+
- **A task that spawns git is audited again.** The traceable copy of Xcode's git missed the `git` in its exec path, which shipkit spawns, so every task running the suite runner came back unaudited. That path maps to the copy too, a copy left behind by another developer dir is rebuilt, and a rebuilt remap is written to disk.
|
|
8
|
+
- **The macOS app saves a download.** A link marked `download` (the ⬇ of a picture or a draft's media) or a file the window cannot show lands in `~/Downloads` under a free name and bounces the dock's Downloads stack, instead of showing the file full window. A failed download says so in a panel. `--self-test-download` proves it in the real binary.
|
|
9
|
+
- **An identity's picture has its 📂**, beside ⬇: the Finder opens on its folder with the file selected, on the desktop only. `POST /api/social/reveal` takes `{ identity, file }` beside a draft's `{ slug, name }`.
|
|
10
|
+
- **A piped `sk ci` is refused like a piped `shipkit ci`.** The guard knew only the long name, so `sk ci | tail` read green over a red gate. `bunx sk ci | tail` is refused too, and the refusal no longer names a page of one repo.
|
|
11
|
+
- **One official banned keyword list, each repo adds to it.** The list is the machine's `~/.shipkit/private/banned-keywords.txt`; the generic secret shapes are built into the leak guard and SK035, never copied. A repo's `.shipkit/private/banned-keywords.txt` holds its additions only: SK037 strips any row the list or the built-in shapes already hold (any case, a `w:` row and a substring row of one word are one row, and the list's shape wins), keeping the repo's own rows and comments; a frozen run warns. `hooks install` seeds the repo file with comments only. A word one repo must say stays `hooks.leakAllow`.
|
|
12
|
+
- **A rectangle's note box names the side it marks** (`before` or `after`, on a pair) **and repeats the view's OK, Fix and No** on a second row under the words.
|
|
13
|
+
- **A leak allowlist entry can say « this word, this file, this many ».** `hooks.leakAllow` takes `count`: the most matches the one file in `paths` may hold, with one fingerprint in `patterns`. One more match blocks again and names the count it outgrew. SK035 prints the filled entry beside each hit, so a reviewed list is pasted, never typed.
|
|
14
|
+
- **A stale SK004 block renders itself again.** When shipkit's policy moves, every run that may write (`sk check` and the daemon's run after a save included) rewrites the managed `.gitignore` block in place instead of failing in every repo until each runs its gate. A frozen run warns and writes nothing.
|
|
15
|
+
- **`sk check` no longer runs the SK030 cache audit.** The audit re-runs other checks fresh, which took a plain `sk check` to its ten minute cap on a loaded machine. The daemon still runs it about daily; `sk cache-audit` runs it by hand.
|
|
16
|
+
|
|
17
|
+
- **A frame note being typed stays over the sticky rows of the review page**, never cut by the next view's verdict row.
|
|
18
|
+
- **A release never publishes a tarball that names a checkout the house skips.** Before `npm publish`, the release reads `start.skip` from the house config and refuses any packed file that names one of those repos, in any case; no waiver lifts it, and the refusal names the file, never the word.
|
|
19
|
+
|
|
20
|
+
## 2.13.0
|
|
21
|
+
|
|
22
|
+
- **The identities ride the home's top bar**, one round avatar each after the places, and the bar grows to 40 px; the project list holds only the repos.
|
|
23
|
+
- **`sk media versioning --key <secret>`** turns versioning on with a one time full access key pair, in place of the house key, which is limited to the bucket's objects.
|
|
24
|
+
- **`sk start` reads the repos it never touches from the house config, `start.skip`.** The published lib carried a day-job checkout's name as its skip list; the names now live on the machine (`start: { skip: [<repo names>] }` in the house `repo.config.ts`, validated by `defineRepo`), `--skip` still replaces them, and with no house nothing is skipped. `HOUSE_SKIP` is gone.
|
|
25
|
+
- **The backup knows no dolt.** `backup.dolt` in `repo.config.ts` is gone, with its `dolt dump` read and the refusal printed on every run when dolt was not installed. A config that still names it is a type error: delete the line.
|
|
26
|
+
- **`sk drill report | verdict | compare`: the records of a measured drill** (wiki meta/speed-up-agents/index.md). `report` reads one run's Claude Code transcript (a path, or a session or agent id) and writes `run<n>.json` and `run<n>.md`: calls, turns, model and wall time, failed calls, searches, every md page read with the second it was first read, the first write inside the run and the first check after it, tokens counted once per message id, context at end, the patch stats, the final report. `verdict` adds the judged result (done, quality, tests, design), `compare` writes `compare.md` with every run side by side, first and previous to last. It reads and writes files, and never starts an agent.
|
|
27
|
+
- **The scaffold writes no `agent/coding.md`, and writes `agent/handoff.md`.** The house rules already load from the wiki, so a copy only rots; a repo writes its `coding.md` once it has a rule of its own. The index template routes to `agent/handoff.md`, which a new repo now gets, so its first `sk ci` no longer fails SK027 on a dangling link, and it shows the folder shape of `agent/`.
|
|
28
|
+
- **`sk time` names the file of a Read, Edit, Write, Grep or Glob call.** The transcript reader gives those calls their path or pattern as detail, so a failed edit is told apart from the next one; the index version is bumped, so the next `sk time` reads every transcript once again.
|
|
29
|
+
|
|
30
|
+
- **The site desk: every identity's website in its identity view** (`/identities#<id>/@site`, wiki tools/shipkit/site.md). The address asked online, the repo that builds it, then through a `site({...})` unit its pages, each live from the local preview at the desktop's width or a phone's, what is online (a deploy record, else Cloudflare Pages), what changed since the deploy by page, the dated entries since, and « Deploy », the unit's own command on his press with its log streamed. `GET /api/home/sites/<id>`, `POST .../preview`, `POST .../deploy`, each naming an identity. `site` is a unit kind.
|
|
31
|
+
- **The gate type checks with `bun check`.** The typecheck slot, a plain `tsc --noEmit` or `bun check` script and every `typecheck:<unit>` run `bun check --no-pretty --no-script --all -b -p <tsconfig>`: tsc's error lines, every core, no build info (measured fresh on four repos: 3 to 6 times faster than the cold tsc it replaces, a 4,600 file repo in 1.5 s). `-b` follows references, and a config that compiles nothing exits 1. A bun older than 1.4.4 falls back to the cold tsc runner and prints a `skip:` line on every run. The one way in guard refuses tsc with `bun check` as the command to use, and never refuses `bun check`. SK001 warns on a package.json `check` script, which runs in place of `bun check`. `sk start` writes `typecheck: bun check`.
|
|
32
|
+
- **`sk shot --video <s> --step <hook>` films a slow canvas page frame by frame in the page's own WebCodecs.** Before frame n the page draws n / fps in `window[hook](t)`, then the canvas frame is encoded H.264 at exactly n / fps and ffmpeg only muxes: a page whose hook takes 100 ms a frame films 30 distinct frames a second (the real time clip of the same page repeated 19 of 30). A WebGPU canvas is read at the queue submit of its draw. The trailer's `page ... step` film uses it; a page with no big canvas keeps the screenshot a frame. `--at <s>` draws a stepped still.
|
|
33
|
+
- **Every `sk ci` repairs before it gates.** A whole gate repairs all it can, an `--only` run what its named checks own, under the fix lease and beside the other runs. A repair is mechanical, so it runs in a tree other agents share too. `--no-fix` and `--no-fix-rules` are accepted and ignored with a note on stderr until 2026-11-18. A gate the hub starts on one check repairs the same way. Internal report-only runs (a release, the hub's own background runs) still skip it.
|
|
34
|
+
- **The commit gate stops refusing what is not wrong.** The message predicate blocks the em dash, an en dash unless digits sit on both sides, and an inline " - " in the subject only; quoted and backticked spans are exempt. French needs two signals on one line (function words on unicode letter boundaries, accented words), so one accented name passes. SK003, SK008, SK012 and SK015 leave the pre-commit hook: they check the repo's shape, not what a commit stages, and still run in every `sk ci`.
|
|
35
|
+
- **Shipkit typechecks under noUnusedLocals, noUnusedParameters and noFallthroughCasesInSwitch**, the flags its consumers use, so an unused name here no longer breaks a strict repo's typecheck through the link.
|
|
36
|
+
- **The suite runner never judges or keeps a suite its run's ignores exclude** (bunfig plus command line), so a timing kept from a run that once collected `data/` no longer fails the budget forever.
|
|
37
|
+
- **`sk fleet` reads the version this machine just published** (`~/.cache/shipkit/published.json`, written by `sk release`) when npm's cached latest still answers an older one.
|
|
38
|
+
|
|
39
|
+
- **Every cut of a trailer folder keeps its own versions.** `main.trailer` keeps `v<n>` as before; any other cut keeps `<stem>-v<n>` (`sk trailer keep v1 trailer/degen/tease.trailer` writes `versions/tease-v1.trailer`, `versions/tease-v1/degen-tease-v1.mp4`, the tag `trailer-degen-tease-v1`), never a bare `v<n>`. `clip --version` reads the cut's own version, and its shots folder goes to the media store like main's.
|
|
40
|
+
- **The suite budget no longer charges a suite for the core it ran on.** On Apple silicon a loaded machine spills a run onto the efficiency cores, where the same retired instructions cost 3 to 4x the CPU time, so a green tree went red at random and suspects ran alone again and again. A suite's CPU is now what its main thread would burn on a performance core, read per core type through `bun:ffi` (`proc_pidinfo` PROC_PIDTHREADCOUNTS): its time there, plus what it retired on an efficiency core at its own rate there, or at the machine's rate (a reference workload kept in the home dir as `suite-calibration.json`) when it barely ran there, plus the CPU of its other threads (a Worker, bun's native pool, the GC and JIT) and its children as measured. The converted part takes a rate no faster than the low end of real suites (0.7 of the reference workload, the newest measure standing) and never passes the main thread's own CPU. A suite is never charged more than its process CPU, a spilled compute bound suite can be charged down to about two thirds of its cost, and a lone run more than a quarter CPU charged as measured (other threads, children) runs once more; linux keeps the process CPU and says so. Measured in one repo at load 18 to 32: alone runs per gate from 3 (5.8 to 6.4 s) to 0 or 1 (0 to 1.9 s), and no suite over the budget, where one failed 2 runs in 3.
|
|
41
|
+
- **Two cuts of one trailer share their renders.** A section render or a mix missing under its cut's name is cloned from the same key under another cut's or section's name, never rendered again: a teaser that copies a 34 shot, 11 section cut and swaps one shot renders one section (3.7 s, was 11 sections and the mix, 14.6 s). A take's stamp keeps one hash per part of its world, so `sk trailer check` names what moved (`filmed on an older world, 2 h ago: src moved`); the world's id is unchanged, so no take goes stale on upgrade. The trailer unit's new `ref: 'main'` reads the world from that commit, for a page served from a commit. A vertical cut's finish is keyed on its pieces, so it encodes once more after the upgrade.
|
|
42
|
+
- **The daemon's loop holds no page past 200 ms at rest.** The stall watch reports from 200 ms (was 1 s) and names each hub's prepare, load, start and warm and each plan add. The house's global context is a daemon job (`sk daemon job "global context"`), written in a niced child only when the stamp of its sources moved: its unit imports cost the loop 1 to 2.7 s a minute. Each hub's save watch moves its tree's revision (`src/core/tree-rev.ts`), and the repo listing, the repo view, the read side's inventory and each md scan are kept on it. A run record's `runs` and `suites` are read whole once (in pages, the loop given back between two), then by the rows written since. The plan reads its records one repo at a time before its tick, each read kept on the record's stamp, each query off the `(id, at)` index (the biggest repo: 231 ms to 57 ms). The check stats read two fields of the answers instead of their 53 MB. A review store's first read goes in steps of 250 items. The slowest checks list no longer copies each check's list on every row (1 s on a 168k row record). Measured on 19 house repos: a trial daemon polled every second went from 25 stalls over 200 ms in 95 s, worst 7.8 s, to 5, worst 0.4 s.
|
|
43
|
+
|
|
44
|
+
- **Identities: who speaks.** An identity (its name, bio, brand, site, accounts and their places) lives in the house repo's `.shipkit/identities/<id>/`, never in a project; `sk identities` lists them, its accounts online over its accounts, and the repos speaking as each. A repo names its own with `speaksAs: '<id>'` in `repo.config.ts`; a draft may say another.
|
|
45
|
+
- **The Communications and Social desks in the hub** (⌥U, ⌥I, wiki tools/shipkit/social.md): every draft of a repo with its calendar, families, channels, notes, preview and media, and every account of an identity with its places, setup steps and links, filtered by identity, framed by a tool as `/embed/?page=comms|social`. Drafts are contract v3, `.shipkit/social/drafts/<stamp>-<topic>/draft.md`; `sk social migrate` turns the old channel files into drafts once, and the v2 reader is gone. `sk social`, `plan`, `coverage`, `post`, `state`, `timeline`. A pasted profile or post link whose host is not the account's platform is refused at its field. Draft media go to the media store as the kind `social`; a tracked one is never purged.
|
|
46
|
+
- **The Veille in the hub** (⌥Y, `sk veille feed|reply|pass|import`, wiki tools/shipkit/veille.md): the posts an identity scrolls past, ranked by the worth of a reply, one log per identity in the shipkit home, never committed. The browser extension posts to the daemon with its profile's header, mapped to an identity; it is loaded unpacked and never published.
|
|
47
|
+
- **A house repo runs the machine's shipkit on every path.** Any `sk` run in a house repo turns its installed `rvlib-shipkit` into a link to the copy the machine runs, so bun test, scripts, tsc, the editor and the hooks load it; off the machine a clone keeps its npm copy and says so once.
|
|
48
|
+
- **`sk backup`: the machine-only state of the house in the private Space.** Each file once by its content under `backup/<sha>`, a sqlite copied in one read transaction, a manifest in parts written only when a part changed, nothing ever deleted; a file with a secret's name or shape is refused and listed. `sk backup --check`, `runs`, `restore [--at] (--to <empty dir> | --in-place)`, `drill` (restore into a scratch folder, every sha compared). The daemon runs it on change and every 6 h. A repo adds its own files under `backup` in its config.
|
|
49
|
+
- **Guards on drafts.** SK004 warns when a public repo still tracks its plans or drafts; SK036 refuses a draft media file over 95 MB; a desk's background push that fails shows as an error.
|
|
50
|
+
- **A private repo tracks its social drafts, like its plans.** SK004 re-includes `!.shipkit/social/` in a private repo's managed block, posted drafts and their media included, and ignores `.shipkit/social/drafts/**/*-trailer.mp4` (a render its command makes again). A repo declared `visibility: 'public'` gets no re-include, through the same filter as its plans. The next `sk ci` fix pass rewrites the block; nothing is deleted or moved, a draft that was local shows up as untracked. A desk write in a repo that ignores its drafts now saves the file alone instead of answering 400 after writing it.
|
|
51
|
+
- **The social desk answers in milliseconds.** `GET /api/social/desk.json` is kept while nothing it is built from moves (a stamp of stats over the social folder, the identities, the config, the unit and the day; HEAD moves only the calendar), carries an ETag over its text, answers 304 to a page that holds it, and is gzipped. On the wire a message leaves out what its draft and its account say and an account's messages are its drafts' again (`src/social/desk-wire.ts`); the page rebuilds the exact desk. The calendar's posted commits are walked once and kept per HEAD in `.shipkit/cache/social-moments-<day>.json`, a new HEAD walking only what it adds. Measured on a game's 47 drafts: 0.2 to 3.3 s and 2.95 MB before; cold 106 ms, warm 4.5 ms, a 304 in 4 ms, 68 KB gzipped after. At 517 drafts: warm 10 ms, cold 430 ms, 579 KB gzipped.
|
|
52
|
+
- **SK035 public clean: what a unit publishes on npm names nothing of the house.** npm's own pack list (`npm pack --dry-run --json --ignore-scripts`, every npm unit at once) is scanned for every house repo on this disk, every identity's id, name, handles, site domain, site repo and email, and every row of the keyword file; a browser extension in the list fails too. The package name, its declared author and its dependencies are allowed, each printed with its reason; a waiver is a `hooks.leakAllow` entry or an `sk-disable-next-line SK035` directive. A hit is file:line and the masked word. Cached on the work tree and on each unit's tree on disk (a gitignored file under `files` ships), the house repos, the identity, keyword and allow files. `sk release` and `sk bump` refuse on the same scan before the gate. The Veille extension stays out of the tarball (`!src/veille/extension` in `files`): it is loaded unpacked.
|
|
53
|
+
- **The stores page: a repo's Steam and itch pages as one desk** (`#page:stores`, wiki tools/shipkit/stores.md). Every text to paste with « Copy » (Steam markup for « About this game »), its length or tag count against the store's limit, « Edit » writing one section back byte for byte and committed on its own path; every picture at its real size or fitted, its size checked against the store's, the lightbox, « copy image », the Finder; the account's ask steps and `sk contracts --venue` on each store's card; his note on any field or picture raised in the review store, its next notes replies on it. A project adds its extra texts, the account's ask and the commands that make capsules or screenshots again through a `stores({...})` unit. The seller shown is the repo's `speaksAs`. The review store gains the builtin subject kind `store` and `src/review/notes.ts`, the one path for an owner's note on a thing.
|
|
54
|
+
|
|
1
55
|
## 2.12.0
|
|
2
56
|
|
|
3
57
|
- **`sk media versioning [--check]`: the Space's versioning, turned on or read.** PutBucketVersioning then GetBucketVersioning, signed by hand (SigV4) since Bun's S3 client has no verb for them (`Space.versioning`, `Space.enableVersioning`). On the house Space today the read answers `off` and the PUT answers 403 AccessDenied: its key is limited to the bucket's objects.
|
|
@@ -5,11 +59,11 @@
|
|
|
5
59
|
- **The inbox folds the red checks of a quiet repo into « can wait ».** A repo whose last commit of its own is older than 7 days (a subject 3 house repos share, numbers taken out, is a sweep and never counts: the toolkit bumps landed in every repo yesterday; the log asked at most once every 10 minutes per repo) keeps its review cards and asks in the main list, but its red checks go to the folded list, still red, their line saying « quiet repo, last commit <day> ». A repo git cannot date stays as it was. 23 of the main rows were red checks of repos nobody works in.
|
|
6
60
|
- **`sk media put` and `sk media link`: any repo keeps a file in the private Space through the store.** `sk media put <file…> --kind <label> [--link <dur>] [--json]` keeps each file by its content as `<label>/<sha256>.<ext>` (`files` when no label is given): its index row with its original name first, then the upload, checked by a HEAD; a content already up is only marked. A label no `MediaKind` owns is the generic kind under that prefix, purgeable off the Mac by the usual rules (its bytes must still hash to its key), never deleted from the Space; `review` and `trailer` are refused. `sk media link <key|sha|path> [--for <dur>] [--name <filename>] [--json]` signs a fresh link at any time. Every link carries `response-content-disposition: attachment; filename="<name>"` and `response-content-type`, inside the signature, so a download keeps its name through the CDN edge. A link lasts at most 7d, the SigV4 limit; more is refused with that reason. `--json` prints one line a file, `{ key, sha, size, name, url, expires }`. The content types gain zip, gz, tar, dmg, pdf, gif, json, txt, md and csv.
|
|
7
61
|
|
|
8
|
-
- **A hub page loads a quarter of the bytes.** `/api/resources.json` is serialized once per compute, carries an ETag over the list and its live parts, is gzipped for a browser that takes it, and answers 304 to a page that holds it; the page then parses and swaps nothing on that poll. A test file carries its last run only in the list, and its page reads the whole list from `GET /api/test-runs.json?file=<file>`. The web answers 304 for a page file whose ETag the browser holds, so the 3.3 MB bundle no longer comes again on every load. The review page's boot reads its list, its watchers and the unit's words once, not three times. Measured on
|
|
62
|
+
- **A hub page loads a quarter of the bytes.** `/api/resources.json` is serialized once per compute, carries an ETag over the list and its live parts, is gzipped for a browser that takes it, and answers 304 to a page that holds it; the page then parses and swaps nothing on that poll. A test file carries its last run only in the list, and its page reads the whole list from `GET /api/test-runs.json?file=<file>`. The web answers 304 for a page file whose ETag the browser holds, so the 3.3 MB bundle no longer comes again on every load. The review page's boot reads its list, its watchers and the unit's words once, not three times. Measured on a game's review page: 12.8 MB on the wire before, 3.7 MB cold and 1.3 to 1.5 MB warm after; its list 2.18 MB to 1.18 MB (107 kB gzipped).
|
|
9
63
|
|
|
10
64
|
## 2.11.0
|
|
11
65
|
|
|
12
|
-
- **One media store for any kind of media, and the trailer renders join it.** `src/review/space/` becomes `src/media-store/`, the machine's one store: a caller writes a `MediaKind` (where its files live in a repo, what they are, what stays on the disk) and adds it to `src/media-kinds.ts`; the store does the index, the upload, the signed URL, the fetch back and the purge. Keys are `<kind>/<sha256>.<ext>`. Review is the kind `review`, unchanged on the Space. The trailer renders are the kind `trailer`: each settled render's video and strip (the desk's clones in `.shipkit/cache/trailer-view/`, recorded by the daemon even when the desk never opened) and each kept version's own files go up; the newest render of each live cut and a render an open frame note was written on stay on the disk, the rest goes once quiet for 14 days and only after its bytes hash to its key. The desk plays a render the disk let go from a URL signed on the CDN edge; a new note fetches its video back; `sk trailer clip --version` fetches a version's video back. `sk trailer prune` no longer deletes views: an old render was lost there before it went up. A purge never deletes a file a process holds open. The verbs move: `sk media`, `sk media upload [--kind]`, `sk media purge [--kind] [--dry --list] [--auto on|off]` replace `sk review media`, `sk review media upload` and `sk review purge`; the daemon's switch is `media-purge-auto` (off until turned on). The house config key is `serve.mediaSpace`; the index file is `media.sqlite` (`SHIPKIT_MEDIA_DB`). The purge works six files at a time and sends a review image's previews with a PUT and a HEAD each, none when they are up: 524 ms a file down to 62 ms on a fake S3 at 40 ms a request. Page:
|
|
66
|
+
- **One media store for any kind of media, and the trailer renders join it.** `src/review/space/` becomes `src/media-store/`, the machine's one store: a caller writes a `MediaKind` (where its files live in a repo, what they are, what stays on the disk) and adds it to `src/media-kinds.ts`; the store does the index, the upload, the signed URL, the fetch back and the purge. Keys are `<kind>/<sha256>.<ext>`. Review is the kind `review`, unchanged on the Space. The trailer renders are the kind `trailer`: each settled render's video and strip (the desk's clones in `.shipkit/cache/trailer-view/`, recorded by the daemon even when the desk never opened) and each kept version's own files go up; the newest render of each live cut and a render an open frame note was written on stay on the disk, the rest goes once quiet for 14 days and only after its bytes hash to its key. The desk plays a render the disk let go from a URL signed on the CDN edge; a new note fetches its video back; `sk trailer clip --version` fetches a version's video back. `sk trailer prune` no longer deletes views: an old render was lost there before it went up. A purge never deletes a file a process holds open. The verbs move: `sk media`, `sk media upload [--kind]`, `sk media purge [--kind] [--dry --list] [--auto on|off]` replace `sk review media`, `sk review media upload` and `sk review purge`; the daemon's switch is `media-purge-auto` (off until turned on). The house config key is `serve.mediaSpace`; the index file is `media.sqlite` (`SHIPKIT_MEDIA_DB`). The purge works six files at a time and sends a review image's previews with a PUT and a HEAD each, none when they are up: 524 ms a file down to 62 ms on a fake S3 at 40 ms a request. Page: tools/shipkit/media-store.md.
|
|
13
67
|
- **Review media go up to a private S3 bucket, and the disk lets the old ones go.** Every media file of a card (image, clip, poster, sound, waveform, tile) is known by its sha256: `item.json` holds `media`, `{ sha, size, type }` per file name, written by every writer of the head, and filled on an old head at its next index. The bucket keeps each content once, `review/<sha256>.<ext>`, private: an upload never asks a public ACL, an anonymous read is refused (`tests/review-space/space-live.test.ts`, `SHIPKIT_SPACES_LIVE=1`). The house config names it, `serve.reviewSpace: { endpoint, bucket, region, cdn, secret }`, and its key pair is read through `credsReadCommand`. The daemon syncs each house repo's store after a write, uploads what waits (a HEAD first, then a HEAD of the same size before it counts as up, retried later on a failure with one line in its log). `GET /api/review/<id>/<name>` and the preview routes answer the disk's file, else a 302 to a URL signed for one hour on the CDN edge (signed for the origin host, which the edge checks it against). A tool that needs the bytes (a preview, `sk review anim`, a poster's lit frame) fetches the file back first, checked by its sha. `sk review media` counts per store what is on the disk, up, purged, waiting and gone; `sk review media upload [--repo] [--dry]` sends every waiting file now; `sk review purge [--dry] [--older <days>] [--repo]` deletes a file only when it is up and a HEAD answers its size, never one of an active thread or of a thread with a message in the last 14 days, and sends an image's previews up first. `sk review purge --auto on` lets the daemon purge on its own under 40 GB free (off by default).
|
|
14
68
|
- **One machine index for every review store.** The item reads move from the json file beside each store (`.shipkit/.review-index.shipkit.json`, rewritten whole on any change, removed now) into one sqlite file in the home's state folder (`~/.config/shipkit/home/review.sqlite`, `SHIPKIT_REVIEW_DB`), beside each media file's state and each object's. The reads are kept per code hash: two copies of the lib reading one store (the daemon's, a repo's own install) had thrown each other's index away, and each paid the whole read again (2.3 s on a store of 3330 items). Only moved rows are written. It is derived: deleted, it builds again from the files, a HEAD finding what is up.
|
|
15
69
|
- **A head is rewritten under its lock.** `add-view`, a draft's refresh, `ready` and the media facts go through `updateHead`: under the item's lock, from the file as it is then, so two writers never lose each other's change.
|
|
@@ -26,7 +80,7 @@
|
|
|
26
80
|
- **Views are lettered, never numbered: `3.A`, `3.B`, then `AA`.** In the page (sub cells, rows, contents, verdict notes, the pick) and the CLI (`[B voice 1]`, `view B added`).
|
|
27
81
|
- **The review card reads like a notebook.** A version's gutter carries a big sticky `v3`; each view has one sticky header row (its `3.A`, title, kind, labelled OK / Fix / No, its tools). A clip opened under its row has one clock (its own bar), the downloads say « save mp4 » and « show in Finder ». The minimap (the thin strip, the contents' head, a row under the title on the phone) shows every version and, under the one he answers, a mark per view coloured by his answer, and the card's head says « 3 of 5 views waiting for you ». His draft notes are listed under their view, marked a draft the verdict sends. Long agent texts fold to « more », runs of state changes say their count and time span, forks are links, an agent with no lane names its session, a verdict on a raised item says « on the note », a view whose media the store lost says so.
|
|
28
82
|
- **A clip that opens on black previews on a lit frame.** A black poster (a trailer fading in) is previewed from the first frame of its clip at 10, 25 or 50 % of its length that is not black, cached like every preview.
|
|
29
|
-
- **The review card reads as one chat of framed cells.** The open card is one thread top to bottom, the newest at the bottom, the column opening on the newest version (or the agent word he has not read, or the version an old link names), his answer box pinned under it. Every version, verdict, reply and note is a framed cell with a header bar (who, when, the kind, `v2`, fold, copy the id); a folded cell is its header and one line, and loads no media. Inside a version each view is its own numbered sub cell (`3.2`) with a big title and its kind, drawn as before (image, the four compare modes, clip, sound, gallery, option rows), and what each answer said on it (rectangles in his pink, reactions, words) sits right under it. A verdict points back at its version and lists his notes, each a click from its view. A contents strip lists every version, view, verdict and reply, a click unfolds and scrolls there: beside the cells on a wide column, else a thin strip of version pills that opens it as a sheet. One word box sends a verdict with his marks or a reply alone (⌘Enter); his draft starts empty on each version. The list reads `GET /api/review/threads` a page at a time, its search and filters asked of the server; the thread reads `GET /api/review/threads/<id>`; images come at the column's or the list's size, the full file only on zoom. On
|
|
83
|
+
- **The review card reads as one chat of framed cells.** The open card is one thread top to bottom, the newest at the bottom, the column opening on the newest version (or the agent word he has not read, or the version an old link names), his answer box pinned under it. Every version, verdict, reply and note is a framed cell with a header bar (who, when, the kind, `v2`, fold, copy the id); a folded cell is its header and one line, and loads no media. Inside a version each view is its own numbered sub cell (`3.2`) with a big title and its kind, drawn as before (image, the four compare modes, clip, sound, gallery, option rows), and what each answer said on it (rectangles in his pink, reactions, words) sits right under it. A verdict points back at its version and lists his notes, each a click from its view. A contents strip lists every version, view, verdict and reply, a click unfolds and scrolls there: beside the cells on a wide column, else a thin strip of version pills that opens it as a sheet. One word box sends a verdict with his marks or a reply alone (⌘Enter); his draft starts empty on each version. The list reads `GET /api/review/threads` a page at a time, its search and filters asked of the server; the thread reads `GET /api/review/threads/<id>`; images come at the column's or the list's size, the full file only on zoom. On a game's review page a card's title shows in 0.52 s warm (was 0.8 to 1.8 s) and 4.0 s cold (was 6.7 to 7.3 s), and a card open moves 0.24 to 0.5 MB of review data (was 9 MB and more). The phone shows the same thread one pane at a time, the verdicts and « Reply » in one row under the thumb. The old layout (`top`, `left`, `auto`, the answer column) is gone; `GET /api/review/board` serves the dispatcher's board; `GET /api/review` stays for a tool that frames the hub, only.
|
|
30
84
|
- **A review card reads as one thread of cells, and the hub can fetch one page and one thread.** A supersedes chain (v1, v2, v3…) folds at read time into one thread, nothing rewritten: each version, verdict, reply, raised note and state change is a cell in time order, with a one line summary and its default fold (`src/review/cells.ts`). `GET /api/review/threads` answers one page of the list (the waiting cards first, handled ones with `handled=1`, `subject`, `whose`, `status`, `lane`, a search over every version and message, `offset`, `limit`), about 1 to 6 KB where the whole list was 1.1 MB gzipped. `GET /api/review/threads/<id>` answers one thread by any of its ids, an old version's included. Both carry an ETag.
|
|
31
85
|
- **Review previews: a thumb and a fit size, made once per image.** `GET /api/review/<id>/preview/thumb|fit/<name>`, a webp 480 or 1600 px wide, kept in `.shipkit/cache/review-previews/` instead of the store's `.thumbs/` (that folder can be deleted); the active cards' previews are made ahead in the background. `…/thumb/<name>` answers the thumb preview.
|
|
32
86
|
|
|
@@ -40,18 +94,18 @@
|
|
|
40
94
|
|
|
41
95
|
- **A brand's `icon` draws the favicon family at each size.** `icon: canvas(draw)` in `.shipkit/identity/brand.ts` draws `favicon.png` (512), `favicon-32.png`, `favicon-16.png` and `apple-touch-icon.png` (180, flattened on `palette.bg`), each at its own size, `asset.id` naming the file, so a 16 px tab reads a shape made for it, never a shrunk logo. Without one the favicon is the logo master resized, as before.
|
|
42
96
|
- **comfy-ts is an optional peer, no longer a dependency.** A repo that never declares comfy no longer installs it (npm and bun both skip an optional peer). The toolkit names comfy-ts in no import, a type import included, so importing it, `sk ci`, `sk serve`, the hub and `sk assets identity` never load it. It is loaded at the first workflow load, from the repo's copy. A repo with comfy kinds or `.cflow.ts` modules installs it itself: `bun add -d comfy-ts`. Without it, a workflow load fails loud with that line, and `sk sound` fails loud when no `comfy-ts` is on PATH. `LoadedWorkflow.wf` is typed by the toolkit's own `CflowWorkflow`, the slice of comfy-ts it drives, held to comfy-ts's types by a test.
|
|
43
|
-
- **`og.png` is written small.** The identity writer encodes the og card as a 256 colour palette png at maximum compression: invisible at preview size, and a photo card drops about 3x (
|
|
97
|
+
- **`og.png` is written small.** The identity writer encodes the og card as a 256 colour palette png at maximum compression: invisible at preview size, and a photo card drops about 3x (a game's banner card: 970 KB → 280 KB), under the size where some chat apps stop showing a preview. The file name and format stay `og.png`.
|
|
44
98
|
|
|
45
99
|
## 2.7.0
|
|
46
100
|
|
|
47
101
|
- **What waits on the owner is a pill on every repo's row of the project list.** Beside the open asks badge, a pill in the review hue counts the cards that wait on the owner's verdict or answer; zero draws none, and folded it rides the icon's top left corner. A click opens that repo's review page on its first waiting card, the list on the owner's move. One count, `waitingCards` (`collections/review.ts`), read by the tree's review row, `sk needs`, the review page and the list; `/api/projects.json` reads it on every request, so a new card shows within one poll and a verdict at once. Below 768 px the list is always the rail, so the pills show on a phone.
|
|
48
|
-
- **A trailer's score is the game's waveform, not only its level.** A note starts on its time's nearest sample frame, as the game's synth now rounds it (a time a hair past a frame, 14.450000000000001, no longer starts a frame late); a noise note's playback rate is held per 128 frame block, the browser's k-rate, its sweep starting at the next block (risers and whooshes were another noise).
|
|
102
|
+
- **A trailer's score is the game's waveform, not only its level.** A note starts on its time's nearest sample frame, as the game's synth now rounds it (a time a hair past a frame, 14.450000000000001, no longer starts a frame late); a noise note's playback rate is held per 128 frame block, the browser's k-rate, its sweep starting at the next block (risers and whooshes were another noise). A game's main cut: 38 of 38 sections within 0.1 dB and every one the same waveform, the difference at least 40 dB under it (four were about 10 dB). Every score renders again once.
|
|
49
103
|
- **`sk fleet` skips a linked worktree.** A dir whose `.git` is a file is its main checkout again, as the home already reads it: `--update` no longer dirties a checkout that only follows main (a `-live` one) and blocks its own updater.
|
|
50
104
|
- **A « fix » or a « no » the agent read is still owed.** It stays `claimed` and active (« hide handled » no longer hides it) until `sk review done`, `wontfix` or a new version; `sk review inbox` lists it under `owed`.
|
|
51
105
|
|
|
52
106
|
## 2.6.0
|
|
53
107
|
|
|
54
|
-
- **A trailer's score sounds as the game's browser synth, section for section.** A note that starts inside a 128 frame block takes the phase the browser gives it (it runs at the default 440 Hz until its own frame of that block), so overlapping notes of one pitch, a timpani roll, add or cancel as in the browser; `osc: 'square'` is the browser's own square wave, no longer a sine; the master's compressor and limiter are the browser's kernel (32 frame divisions, adaptive release, the sine warp on the gain).
|
|
108
|
+
- **A trailer's score sounds as the game's browser synth, section for section.** A note that starts inside a 128 frame block takes the phase the browser gives it (it runs at the default 440 Hz until its own frame of that block), so overlapping notes of one pitch, a timpani roll, add or cancel as in the browser; `osc: 'square'` is the browser's own square wave, no longer a sine; the master's compressor and limiter are the browser's kernel (32 frame divisions, adaptive release, the sine warp on the gain). A game's main cut score: 38 of 38 sections within 0.1 dB of the game's render (were 18), each octave band within 0.15 dB. Every score renders again once.
|
|
55
109
|
|
|
56
110
|
## 2.5.0
|
|
57
111
|
|
|
@@ -70,13 +124,13 @@
|
|
|
70
124
|
- **`sk review`: the dispatcher, the workers and every generic verb.** `dispatcher --as <name> [--take]` (one holder, 30 minutes idle before another takes it), `dispatch`, `ask`, `drop`, `reassign`, `next <topic> | --lane <lane>`, `blocked`, `done`, `topics`, `board`, `ready`, `delete` (a player's test report at its source and here), `marks`, `anim` (a pair as a looping cut, fade or wipe, mp4 or gif, cached), `auto` and `auto run <id> [--dry]`. `inbox` and `watch` list the items nobody takes (2 minutes after the last message, then every 2 hours); `inbox`, `board`, `next` and `watch` pull the unit's sources first; `show` and `seen` take a report's ref (`live#3`). Without a dispatcher in the unit, a worker claims a new item as it is. Routes `POST /api/review/raise` and `/api/review/rate` raise an owner's note and his mark from any tool.
|
|
71
125
|
- **`sk review` answers in about 0.15 s on a 3318 item store.** Its threads index their links once per list (420 ms of lookups became 21), the store stamps two directories an item, and the index is its own file, `.review-index.shipkit.json`, so a second code reading the store no longer throws it away.
|
|
72
126
|
|
|
73
|
-
- **`sk trailer`: a score composed in the `.trailer` file, rendered offline in Bun.** The header reads `score tempo <bpm> [meter] [grid] [reverb <s> <mix>] [fade-in] [volume]`, `track <name> <instrument> [volume]` (up to 16), `drums <letter>=<instrument> …` and a `code` block of TypeScript; a section reads `play <track> <expression>` (a quoted string is a melody, `play *` a record of tracks, deeper lines continue it), `drums`, `mark`, and `stop at <time>`, which cuts the score and its reverb dead so a sound after it plays alone. The syntax is
|
|
127
|
+
- **`sk trailer`: a score composed in the `.trailer` file, rendered offline in Bun.** The header reads `score tempo <bpm> [meter] [grid] [reverb <s> <mix>] [fade-in] [volume]`, `track <name> <instrument> [volume]` (up to 16), `drums <letter>=<instrument> …` and a `code` block of TypeScript; a section reads `play <track> <expression>` (a quoted string is a melody, `play *` a record of tracks, deeper lines continue it), `drums`, `mark`, and `stop at <time>`, which cuts the score and its reverb dead so a sound after it plays alone. The syntax is the one a game's own score used, verbatim, `stop` added. The compose helpers are in scope (`mel`, `arp`, `bass`, `voice`, `chart`, `rep`, `seq`, `transpose`, `rest`, `parseChord`, `midiToNote`, `INST`, `KIT`, `additive`), and with no `export const instruments` the score plays the default palette, now with `sub` and `clap`. `sk trailer check` compiles the score in about 0.1 s, every error at its line (a play of the wrong length in bars, an unknown instrument or token, the TypeScript failing). The synth (`src/trailer/score/synth.ts`) renders every note as the browser synth the language comes from does (band limited tables softened per pitch band, ADSR, biquad, unison, vibrato, sweep, glide, pan), through a convolution room and the master chain (compressor, limiter, soft ceiling), in Bun with no browser: about 0.25 s for 9 s of music, cached on its notes and the synth's code. The build mixes it under the voices and sfx, ducked by `duck`, prints each section's RMS and peak, and refuses a section whose notes make no sound. New verb `sk trailer score [file]`: the score alone as `out/<cut>.score.wav` and `out/<cut>.score.png` (the waveform over the spectrum, a line at each section and the stop), with the integrated loudness.
|
|
74
128
|
|
|
75
129
|
- **`sk time`: where the agents' time went, from every Claude Code transcript on the machine.** Every config root (`~/.claude`, `~/.claude-<name>`), sub-agent runs included, read into one index, `~/.shipkit/agent-time.sqlite`: a file is read again only when it changed, a live session only from where the last read stopped, and a session copied into a second account counts once (a tool use id is unique). The index keeps the sessions Claude Code prunes. The first build read 65 GB in about 70 s, niced, resumable, one progress line; a warm query answers in about 0.2 s for a week of a busy repo, under 1 s for all of it. The summary opens on what costs the most, each line a measured total with its cause: file edits through Bash (`python3 (edit)`, `sed -i (edit)`, `cat > (write)`) against the Edit tool's p50, failed runs and their reruns, polling loops and their timeouts, the auto mode classifier (cheap commands it checked against the same commands a rule allowed, an estimate), and the calls that waited for a human allow. Then the wall cut once per moment (model, tools, a human allow, sub-agent wait, background wait, waiting on the human, idle left out), the commands grouped by shape (`git commit`, `bun test <file>`, `sk ci --only lint`, `(until) grep`) with calls, total, p50, p95 and max, and the human's prompts with three signals by rule (status ping, slowness, correction), each joined to the longest calls of the 10 minutes before. Views `commands`, `tools`, `slow`, `fails`, `feedback`, `sessions`; `--since`, `--all`, repo paths, `--top`, `--json`. Commands and prompts print through the leak guard's keyword lists and token shapes.
|
|
76
130
|
- **One transcript reader for `sk reflect` and `sk time`** (`src/reflect/transcript.ts`): a line in, its events out (a typed or queued prompt, a wake, a tool use, its result with how it ended and how it was allowed, a reply). `sk reflect` keeps the same prompts as before, now through it, and skips the `api-request` lines (most of a transcript's bytes) before parsing them.
|
|
77
131
|
|
|
78
|
-
- **`sk time` shows turn count, what makes agents slow when no command is.** Every call costs a model turn before it. The summary gives, for the main sessions and for the sub-agents, the model time before each call, the share of single read calls and the share sent in parallel. The sub-agent lines lead with a verdict (turn count or command speed, with a fix line when reads pile up one per turn), then their work split (model, tools, their own waits), run length p50 and p90, and calls per run. The `turns` view lists the runs that worked longest with their turns, read and parallel shares and model per turn, then the read shapes by the model time of the turns that issued them. A read is Read, Grep, Glob, or a Bash command of a read shape whose every part reads (a redirect to a file, `sed -i`, `find -delete` or `-exec`, `tee`, or a second command that writes or runs makes it not one), judged when a call is indexed and again when the rules change (`src/agent-time/turns.ts`). A call is parallel when it starts while the previous call still runs, within 2 s of its start. The model stretch before a call comes from the same sweep that cuts the wall.
|
|
79
|
-
- **A message relayed into a sub-agent ends its park.** The harness writes "The coordinator sent a message while you were working" (or the user, or another session) into a sub-agent as an `isMeta` user entry with no peer origin, which the transcript reader dropped, so a sub-agent that handed back and sat for hours until someone wrote to it counted those hours as model: 352h of
|
|
132
|
+
- **`sk time` shows turn count, what makes agents slow when no command is.** Every call costs a model turn before it. The summary gives, for the main sessions and for the sub-agents, the model time before each call, the share of single read calls and the share sent in parallel. The sub-agent lines lead with a verdict (turn count or command speed, with a fix line when reads pile up one per turn), then their work split (model, tools, their own waits), run length p50 and p90, and calls per run. The `turns` view lists the runs that worked longest with their turns, read and parallel shares and model per turn, then the read shapes by the model time of the turns that issued them. A read is Read, Grep, Glob, or a Bash command of a read shape whose every part reads (a redirect to a file, `sed -i`, `find -delete` or `-exec`, `tee`, or a second command that writes or runs makes it not one), judged when a call is indexed and again when the rules change (`src/agent-time/turns.ts`). A call is parallel when it starts while the previous call still runs, within 2 s of its start. The model stretch before a call comes from the same sweep that cuts the wall. A game repo, every recorded session: sub-agents worked 905.4h, model 67%, 7.7 s of model before each of 283,821 calls, 51% single reads, 2.3% in parallel.
|
|
133
|
+
- **A message relayed into a sub-agent ends its park.** The harness writes "The coordinator sent a message while you were working" (or the user, or another session) into a sub-agent as an `isMeta` user entry with no peer origin, which the transcript reader dropped, so a sub-agent that handed back and sat for hours until someone wrote to it counted those hours as model: 352h of one repo's sub-agent time. It is now a `message` event that counts as a prompt (idle past 30 minutes). The index version moves to 6, so every file is read again once.
|
|
80
134
|
|
|
81
135
|
## 2.4.0
|
|
82
136
|
|
|
@@ -106,14 +160,14 @@
|
|
|
106
160
|
|
|
107
161
|
- **`sk trailer`: a word that opens on a single quote fails at its line.** The language quotes with double quotes only, so `film take 'clip=walk&cam=low'` handed the project CLI a word with the quotes inside it, and the film took a wrong key without a word. The error names the double quoted form to write. A tokenizer error on a film line no longer adds "films nothing" for its shot.
|
|
108
162
|
|
|
109
|
-
- **`sk time` books a wait on a sub-agent as background wait, never as model time.** A sub-agent hand-back or another session's message reaches the session as a user entry flagged `isMeta` (`turnOrigin: 'peer'`), which the transcript reader skipped, so the gap before it counted as model thinking:
|
|
163
|
+
- **`sk time` books a wait on a sub-agent as background wait, never as model time.** A sub-agent hand-back or another session's message reaches the session as a user entry flagged `isMeta` (`turnOrigin: 'peer'`), which the transcript reader skipped, so the gap before it counted as model thinking: one repo showed model 35% where it is 14%, and background wait 34% where it is 55%. The index version moves to 5, so every file is read again once (about 70 s).
|
|
110
164
|
|
|
111
165
|
## 2.2.0
|
|
112
166
|
|
|
113
167
|
- **The project CLI kit, `rvlib-shipkit/cli-kit`, and a project CLI from `sk start`.** A repo's own CLI is `runProjectCli({ name, root, families })`: the first word loads only its family, the bare listing prints one line per command (0.027 s on a fresh repo), and every run is logged to `.shipkit/logs/<cli>-calls.jsonl`. A command over code that exists is a row, `verbs([{ path, category, description, examples, run: { bun } | { cmd } | { tool, cold } }])`, never a second implementation. A row marked `essential` lands on the everyday page, and a row marked `film: 'still' | 'clip'` takes `--out` (resolved against the caller's cwd), a clip also `--seconds`, and fails when it exits 0 without writing `--out`. The kit adds `<cli> commands` (`--out` and `--essentials` write the agent pages, `--check` fails on a stale page or a row with no category, a long description or no example starting with its words, `--json` is the registry for other tools) and `<cli> calls`. `sk start` writes the skeleton on day one: `src/cli.ts`, `src/cli/cmd_Dev.ts` with a dev row and a commented shot row, both agent pages generated, the agent index loading the essentials page, package.json `cli` and a `bin` of the repo name. `sk start <name> --cli` writes it into a repo with history, and refuses one that already has a CLI. The scaffold tsconfig names `types: ["bun"]`, which TypeScript 7 needs for Bun's globals.
|
|
114
168
|
- **`sk calls`: every sk run logged machine wide** (`~/.shipkit/logs/sk-calls.jsonl`, `SK_LOG=off` to stop), read back per command with the slowest runs, `--here` for one repo. It adds no measurable time to `sk --help`, and `sk start` now loads its scaffold only when it runs.
|
|
115
|
-
- **`sk trailer`: a `.trailer` file in any repo becomes an mp4 and its contact strip.** The trailer language, its core words: a header (`trailer`, `size`, `fps`, `music`, `duck`, `fade-in`), shots with one film line each, titles, cuts, `from`, `push`, `frame`, `lift`, `shake`, `flash`, sections in bars with their tempo and meter, `mark`, `starts on`, and music, sfx and voice from files. Every error is at its file and line, all at once, and a file with one error never builds. A film line is `clip <video>`, `image <picture>`, `card`, `run "<command {out}>"`, or a film row of the repo's own CLI: `film <words>` runs `<cli> <words> --out <file>`, with `--seconds <n>` for a clip, the rows read from `<cli> commands --json` only when a line needs them. A take is filmed once into `.shipkit/cache/trailer/footage/<key>`, keyed on what films (the key formula of
|
|
116
|
-
- **`sk trailer`: the vertical short from brand data, and `film url <route>`.** The header word `vertical [mark left|right] [outro card|none|<video>]` makes the cut a 9:16 short (1080x1920 unless `size` says otherwise, upright only) finished with the brand's `trailer.vertical` look: a lockup that pops in over every frame under the platforms' top tabs (a wordmark image, else the logo and the name, and a tag pill), a watermark in a bottom corner, an optional outro clip, and an end card whose image hops in, its lines with `*word*` in the accent. Each part takes its colours and face from the brand's look, each is `false` to leave it out, and a repo with no brand gets its logo and its folder name. The finish is cached on the pieces and the mix it reads: an unchanged build stays about 1 s, a title edit renders one section and the finish. `film url <route> [viewport WxH] [wait <time>] [still]` films a page of the repo's dev url (the `url` of its global process, `base <id>` when it has several, started through pm when down) through `shotUrl` and `clipUrl`, a portrait cut at a phone's width. Lifted from
|
|
169
|
+
- **`sk trailer`: a `.trailer` file in any repo becomes an mp4 and its contact strip.** The trailer language, its core words: a header (`trailer`, `size`, `fps`, `music`, `duck`, `fade-in`), shots with one film line each, titles, cuts, `from`, `push`, `frame`, `lift`, `shake`, `flash`, sections in bars with their tempo and meter, `mark`, `starts on`, and music, sfx and voice from files. Every error is at its file and line, all at once, and a file with one error never builds. A film line is `clip <video>`, `image <picture>`, `card`, `run "<command {out}>"`, or a film row of the repo's own CLI: `film <words>` runs `<cli> <words> --out <file>`, with `--seconds <n>` for a clip, the rows read from `<cli> commands --json` only when a line needs them. A take is filmed once into `.shipkit/cache/trailer/footage/<key>`, keyed on what films (the key formula of a game's own trailer tool, verbatim), and stamped with the repo's world: a stale take is reported and filmed again only on `--refilm`. The stitch renders one piece per section, cached on its ffmpeg arguments and its inputs, so a title edit renders one section and a build with nothing changed takes about 0.6 s. Five title styles (`logo`, `big`, `caption`, `corner`, `line`) and the card wear the repo's brand: the palette of `.shipkit/identity/brand.ts`, its new optional `trailer` section for the face, the logo and each colour, and a house look for a repo with no brand. A `trailer({ sound })` unit in any `<name>.shipkit.ts` resolves sound ids that are not files. Verbs `sk trailer [file]`, `sk trailer check`, `sk trailer shot <name>` (its nine frames on one png).
|
|
170
|
+
- **`sk trailer`: the vertical short from brand data, and `film url <route>`.** The header word `vertical [mark left|right] [outro card|none|<video>]` makes the cut a 9:16 short (1080x1920 unless `size` says otherwise, upright only) finished with the brand's `trailer.vertical` look: a lockup that pops in over every frame under the platforms' top tabs (a wordmark image, else the logo and the name, and a tag pill), a watermark in a bottom corner, an optional outro clip, and an end card whose image hops in, its lines with `*word*` in the accent. Each part takes its colours and face from the brand's look, each is `false` to leave it out, and a repo with no brand gets its logo and its folder name. The finish is cached on the pieces and the mix it reads: an unchanged build stays about 1 s, a title edit renders one section and the finish. `film url <route> [viewport WxH] [wait <time>] [still]` films a page of the repo's dev url (the `url` of its global process, `base <id>` when it has several, started through pm when down) through `shotUrl` and `clipUrl`, a portrait cut at a phone's width. Lifted from a game's own vertical tool; the footage key formula is unchanged.
|
|
117
171
|
- **`sk shot <url>`: a png of any url through one warm browser for the whole machine, `--video <s>` a clip.** The `shot` global process (declared in the lib, `src/shot/shot.shipkit.ts`) starts on the first `sk shot` and never at login. It holds one headless chromium and one booted page, one request at a time. A still of the url the page already shows is a ready check plus chromium's fast capture: 33 to 52 ms in the service, 0.11 to 0.23 s for the whole command, measured on a running vite app. A page with `<meta name="shot-ready" content="wait">` is shot once it sets `content="ready"`, any other page `--wait` ms (300) after its load. `--video` films the page's largest canvas through its own WebCodecs H.264 encoder on its animation frames and muxes the stream into an mp4 with no second encode. It stays out of the way of other work: the browser runs at nice 10, the page is frozen 10 s after a request and loaded again before the next still, and the browser closes after 60 s idle. Code calls `shotUrl` and `clipUrl` from `src/shot/client.ts`. Playwright resolves from the repo that runs the service through `loadPlaywright`, now generic over the slice its caller types.
|
|
118
172
|
- **`sk shot --video` films any web page, canvas or not.** A page that a canvas fills (half the viewport or more) still films that canvas through its WebCodecs encoder. Any other page, or any page with `--dom`, films as chromium paints it: CDP `Page.startScreencast` takes every painted frame, a frame holds on the clip's fixed grid until the next one paints (a still page fills its seconds from one frame), and ffmpeg encodes the jpegs to H.264 as they arrive. Measured on a 3 s animated page against Playwright's `recordVideo`: 90 of 90 distinct frames against 65 of 89, 3.29 s against 3.43 s from the start of filming to the closed file, and 1.8 s of CPU above an idle page against 2.7 s. A 3 s DOM clip takes 3.7 s for the whole command, the canvas path 3.6 s as before. A DOM clip is in css pixels whatever `--dpr`. `clipUrl` takes an optional `dom`, and a clip's request cap now adds its own seconds, so a `--long` clip past about 110 s no longer fails at the 120 s cap.
|
|
119
173
|
- **Plans get a tracked home, `.shipkit/plans/`.** SK004 re-includes `!.shipkit/plans/` in a private repo's managed block, so a dated plan, an arc's board and its lane files survive a cleanup of the scratch, and a lost machine once committed. A repo declared `visibility: 'public'` gets no re-include, through the same filter that keeps its comfy drafts local. The next `sk ci` fix pass rewrites the block, and nothing else changes for anyone. The old root layout migration files the dated plans at the top of `tmp/` (`YYYYMMDD-HHMMSS-<slug>.md`) under `.shipkit/plans/` and moves the rest of the scratch under `.shipkit/tmp/` as before. A plan already in `.shipkit/tmp/` is not moved: the scratch holds other files, and only a human or an agent knows which one is a plan.
|
|
@@ -262,7 +316,7 @@
|
|
|
262
316
|
|
|
263
317
|
- **An app icon fills its tile, on the repo's colour.** The shipkit app and every process app drew the repo's mark as it was, transparent margin included, so a small mark was a dot on the dock. The icon now cuts the mark to its own box (faint alpha noise, which generated images carry over the whole canvas, counts as margin) and sets it on a rounded plate in the identity colour it stands out on most, on the macOS icon grid. A mark that already fills its box, a photo or a tile, becomes the plate. New colours rebuild the app at its next open.
|
|
264
318
|
|
|
265
|
-
- **The identity colours moved to the admin page, with a preview of the app icon.** The two pickers left the strip. The admin page opens on an identity card: the app icon drawn in the colours being picked (`/api/projects/app-icon/<repo>`, the same drawing the app build uses), and the repo name on a dark and on a light page. The card reads a repo by the name the project list knows, so a repo whose config names it otherwise
|
|
319
|
+
- **The identity colours moved to the admin page, with a preview of the app icon.** The two pickers left the strip. The admin page opens on an identity card: the app icon drawn in the colours being picked (`/api/projects/app-icon/<repo>`, the same drawing the app build uses), and the repo name on a dark and on a light page. The card reads a repo by the name the project list knows, so a repo whose config names it otherwise shows its own colours and icon.
|
|
266
320
|
|
|
267
321
|
- **A broken comfy setup no longer takes the whole media page down.** The workflows load only when a kind generates with comfy. When they fail to load, the media API still mounts: the rolls, the picks and every other kind stay served, and the reason shows in the page errors and in every comfy roll that fails.
|
|
268
322
|
|
|
@@ -412,7 +466,7 @@
|
|
|
412
466
|
- **The open in Fork button leads each repo's commit list on the activity page.** It left the repo name cell for a narrow column of its own right before the commits, on the same line as the first commit (or the red uncommitted line), still dim until its row is hovered.
|
|
413
467
|
- **The ⌘K picker shows icons.** Every repo entry wears its repo icon (its letter tile when it has none), as the project list shows it, and home, planned, activity and archived wear the icons of their buttons. The order is unchanged. `bun run activity:check` checks it in headless Chrome, with the activity status dot.
|
|
414
468
|
- **The activity page names what is wrong behind each status dot.** A red or orange dot is a button: hovering it floats the failing and warning checks at once, failing first, each with its id, its title, how old that outcome is and the first line it printed about the problem. A click lists the same checks under the repo's row, so they read without hover (the macOS app shows no native tooltip), and a second click hides them. Each id links to that repo's check page. The daemon's activity answer carries them as `failing` on each row, titles from the plan (`Planner.titles`).
|
|
415
|
-
- **Fix: `bun run home:check` reported
|
|
469
|
+
- **Fix: `bun run home:check` reported one repo's tree as taking 20s on its first visit.** It loads in about 40ms from what was read ahead. The walk waited for a title starting with the home's key (`<repo> ·`), but the title carries the name the repo's own config declares (`<its name> · hub`), so the wait ran to its timeout and the timeout was then reported as a load time. The walk now matches the shown repo by its home key, and reports a load time only for a tree that showed.
|
|
416
470
|
- **Fix: `bun run home:check` read the four buttons on top of the project list as missing.** Its probe quoted `⌘'` inside a single quoted string, the page could not parse it, and the walk's wait read the parse error as "not yet" for 20s. The expected labels are now quoted by `JSON.stringify`, and a probe that does not parse now throws instead of timing out.
|
|
417
471
|
- **A private repo commits its comfy drafts through a `.comfy-ts/` block.** The `blocked-paths` pre-commit gate lets `.comfy-ts/drafts/` through when the repo declares `visibility: 'private'`; `hosts/`, `cache/`, `outputs/` and every other `.comfy-ts/` path stay blocked. A public repo and a repo with no declared visibility keep the full block, and a prefix naming the drafts folder itself still blocks it. Before, a `.comfy-ts/` block contradicted the SK004 `!.comfy-ts/drafts/` re-include, and drafts stayed uncommitted forever. `blockedStaged` is exported from `hooks/run-hooks.ts`, and `shipkit hooks list` names the exemption.
|
|
418
472
|
- **A public repo and an npm unit keep their own files.** Two declared facts, each on its owner. The root unit's `release: { npm: true }` says a package strangers install and work on: SK001 asks only that it can publish (no `"private": true`, a `license`), never routes or renames its scripts, and its fixer writes nothing; SK005 names an rvlib bump and its command and never runs it; SK006 reads it as publishing by design; SK013 and SK017 report green and never write its `.claude/settings.json` or `.vscode/tasks.json`. The repo's `visibility: 'public'` says strangers read its tree: SK004 keeps `.comfy-ts/drafts/` ignored, and SK007 and SK009 read the declared visibility only (absent is private). A public repo with no npm target, like a site, keeps SK013 and SK017. A `shipkit ci` over a public fixture whose root unit declares npm, with its own cli, leaves package.json, `.claude/settings.json` and `.vscode/tasks.json` byte for byte (`tests/public-npm-repo.test.ts`, with a private app control that is rewritten).
|
|
@@ -617,7 +671,7 @@
|
|
|
617
671
|
- **Readers of other repos accept the old layout for now.** The hub's project gutter reads a repo's `asks/` when it has no `.shipkit/asks/`, and the reflections queue reads `.rv-reflections/` when it has no `.shipkit/reflections/`. Both reads go once `shipkit fleet` shows no repo on the old layout.
|
|
618
672
|
|
|
619
673
|
|
|
620
|
-
- **BREAKING: the concept is a unit, and `ReleaseUnitDecl` is `UnitDecl`.** A `release: false` unit releases nothing, so "release unit" named the wrong thing. The exported type is renamed, SK010 is titled `units declared` (file `SK010-undeclared-unit.check.ts`, owner page `
|
|
674
|
+
- **BREAKING: the concept is a unit, and `ReleaseUnitDecl` is `UnitDecl`.** A `release: false` unit releases nothing, so "release unit" named the wrong thing. The exported type is renamed, SK010 is titled `units declared` (file `SK010-undeclared-unit.check.ts`, owner page `tools/shipkit/units.md`), and the words a person reads say unit: `bump` bumps a unit, `shipkit releases` lists every unit that releases, SK010 counts `releasing unit(s) declared`, an unknown id says `no unit '<id>' — releasing units: …`, SK011 and SK006 name sibling and releasing units, the suite runner says `no test file outside the units`, and the hub test page help says unit.
|
|
621
675
|
|
|
622
676
|
- **No user facing string says `replayed` or `measured`.** A test reads every string, template chunk and JSX text in `src/` and fails on either word; keys, kinds, SQL columns, identifiers and comments pass. Three lines were reworded: SK001 says `would run nothing`, a secret probe line says `did not check it`, and the repo.config scaffold says `are cached on the tracked tree` and `runs every time`. `ts/lex.ts` is the source lexer both this test and SK019 read with. Only a whole quoted literal can be a key: a template chunk, an operand of `+` and a label value are prose. `lexSource` resolves escapes and reports which strings are template chunks (`template`).
|
|
623
677
|
|
|
@@ -897,7 +951,7 @@
|
|
|
897
951
|
|
|
898
952
|
- **SK014 stops blocking a semicolon.** The class moves from the hard tier to the soft one, so it WARNs like passive voice and sentence length and never fails a gate. Blocking it was the standard taken to an extreme: the join carries meaning, and a gate that refuses it forces a rewrite of prose nobody found unclear. `vague` is the only hard class left, which is the one repair a machine can demand without changing what a sentence says. The preference stays on the page and in the report, so a writer still reads "write two sentences". The table row exemption is untouched.
|
|
899
953
|
|
|
900
|
-
- **A rule's fix pointer follows its documentation.** SK010 now points at `
|
|
954
|
+
- **A rule's fix pointer follows its documentation.** SK010 now points at `tools/shipkit/units.md`, SK011 at `tools/shipkit/built-in-checks.md`, SK012 and SK015 at `tools/shipkit/config-keys.md`, because the page that states an invariant is the page a reader lands on. The scaffolded `repo.config.ts` closes with the line that answers "what else can this file carry", `shipkit config-keys`, and its `blockedPaths` comment says what the key is for instead of teaching one project's folders. The paths stay: a scaffold shipping an empty list teaches nothing about the shape.
|
|
901
955
|
|
|
902
956
|
- **A declared slow suite sits at its file, says where it runs, and has a page.** Its row was filed under an invented `health/release-unit/<dir>/` folder, so a suite with a real file on disk appeared in a directory that does not exist; it sits at that file now, with `file` set and `virtual` gone, and the only virtual case left is a declaration naming a file nobody wrote. Its note read `slow`, the config keyword rather than an answer, and reads `release only`. And its page said "this row is not a gate unit" and stopped, which made every suite row a dead end: a suite has its own page now, with what it is and where it was declared, `catches` and `why not fast` as the two answers `defineRepo` demands, and release only with the button back to the quick tier, offered for a ROOT declaration only, since the managed block owns the root `tests` key and a release unit's own entry must be edited where it lives. Honest gap: no per suite timing is persisted anywhere, so the page states the quick tier BUDGET it broke rather than inventing a duration.
|
|
903
957
|
- **`shipkit config-keys`: the repo config surface documents itself.** Every `repo.config.ts` key and every key nested under one, rendered from the JSDoc above the field into markdown, json, or a marked block inside a docs page (`--out`, `--check`, the shape `shipkit commands` already uses). `--undocumented` names the keys that carry no doc comment and exits non zero, because a key nobody documented is a key nobody uses. `src/core/config-keys.ts` is the scanner: it follows an import to the type a field names and expands an inline object, and it follows only a bare identifier, since a scanner guessing its way into a type documents the wrong shape. Every field of `RepoConfig` and of the types under it now carries a doc comment, the ones that never had one included: `logDir`, `untrackGenerated`, `contracts.extra`, `creds`, and a task's `env`, `cwd` and `group`.
|
|
@@ -991,7 +1045,7 @@
|
|
|
991
1045
|
|
|
992
1046
|
- **`shipkit ci` no longer pre-warms a release survey nothing in the gate reads.** `runCi` started `collectReports` next to the tasks and awaited it before the checks, to hide ~3s of npm registry and `gh` network behind the task DAG. Its only consumer was ever the lib-drift probe, which asks what is PUBLISHED and therefore belongs to `shipkit releases` and the bump gate rather than to a gate that asks whether this change is good. Measured on a repo whose drift checks had left the gate: warm no-op 4.3s with the pre-warm, 1.2s without. Deleted rather than made conditional, because nothing is left to condition it on and a second mechanism guessing which check wants a survey is exactly the source-sniffing this scanner already retired. `collectChecks` creates, shares and cleans up the share path when it was not handed one, so the checks that DO want a survey still pay for exactly one between them, and `shipkit check` is unchanged. Honest cost: a repo that keeps a lib-drift check inside its gate loses the overlap and is up to 3s slower there.
|
|
993
1047
|
- **`export const gate = false` was parsed, filtered on, and never honoured** (the fix itself shipped in 0.35.6, which carried no note for it). The CLI declares `--only` as `Option.Array('--only', [])`, so a plain `shipkit ci` hands the check filter an EMPTY ARRAY and never `undefined`. The guard tested `only == null`, which is false for `[]`, so every gate run read as a narrowed one and no check ever opted out: a repo could declare fifteen world probes off-gate and watch all fifteen run anyway. `matchesOnly`, two hundred lines up in the same file, already used the right predicate, and the `only` field's own doc comment already said "Empty or absent means everything". Both readers of the CHECK filter now call one exported `isNarrowed`. `--only` also names rules and discovered checks, so the task runner is handed those ids too rather than answering `unknown task id` for a check it was never asked to run. Pinned by three tests that call `collectChecks` the way the CLI calls it: the gate skips a `gate = false` check, `shipkit check` still runs it, and naming it in `--only` still reaches it.
|
|
994
|
-
- **The adopt path writes `.vscode/tasks.json` alone, and derives what goes in it.** 0.35.6 wrote `settings.json` too, which turns eslint off and hands formatting to an oxc extension: landing that in a repo that lints with eslint silences the linter that repo chose, and that is an answer only its own author gets to give. It also wrote a canned `👁 TSC` watcher pointed at `tsconfig.json`. Against a solution config (`files: []` plus `references`) that watcher needs `--build`, type checks ZERO files without it, and reports a clean problems pane forever, which is worse than no task at all. The TSC subtask is now written only when the root tsconfig resolves inputs, `
|
|
1048
|
+
- **The adopt path writes `.vscode/tasks.json` alone, and derives what goes in it.** 0.35.6 wrote `settings.json` too, which turns eslint off and hands formatting to an oxc extension: landing that in a repo that lints with eslint silences the linter that repo chose, and that is an answer only its own author gets to give. It also wrote a canned `👁 TSC` watcher pointed at `tsconfig.json`. Against a solution config (`files: []` plus `references`) that watcher needs `--build`, type checks ZERO files without it, and reports a clean problems pane forever, which is worse than no task at all. The TSC subtask is now written only when the root tsconfig resolves inputs, `patterns/vscode-tasks/index.md` stays the owner of the per-project analysis for every other watcher, and `init` names that page in its output rather than implying the file is finished.
|
|
995
1049
|
- **A symlinked `.vscode/` is left alone.** It is a dotfiles pattern pointing at a SHARED directory, and writing through it landed files outside the repo being wired.
|
|
996
1050
|
- **A `repo.config.ts` with no `name` no longer kills `init` with an opaque `TypeError`.** The config loader validates nothing and hands back the raw default export, and the port arithmetic iterates the name it is given. That resolution now sits inside the same guard as the write, falls back to the directory name, and a failure there costs one WARN after everything else has already landed.
|
|
997
1051
|
- **`shipkit start` advertises the port the hub will actually listen on.** The scaffold derived it from `package.json` while `init` names the config from the CALLER first, so a dir found holding a forked manifest got a tasks file pointing at a port nothing answers on. The caller now passes the port it resolved.
|
|
@@ -1061,7 +1115,7 @@
|
|
|
1061
1115
|
|
|
1062
1116
|
- **The typecheck slot could report green over a file that does not compile.** A solution-style `tsconfig.json` (`"files": []` plus `references`, which is the standard vite shape) makes `tsc --noEmit` compile ZERO files and exit 0, so the built-in typecheck floor printed `ok: typecheck (0.1s)` with a type error sitting in `src/`. Every other failure in this tool is loud; this one was a green indistinguishable from a measured one. `ts/tsconfig-projects.ts` now resolves the set of projects a typecheck must visit: it walks `references`, and it keeps a referencing config in that set whenever the config compiles inputs of its OWN, because `references` does not suppress them. Only `"files": []` with no `include`, or an empty `include`, makes a config compile nothing; a bare `{ references: [...] }` still compiles the whole tree, since tsc defaults `include` to `**/*`. A reference may name a directory, cycles terminate, and a config reaching nothing that compiles is reported as VACUOUS. The floor spawns `ts/typecheck-cli.ts`, which resolves at RUN time so a tsconfig edited after resolution still counts, runs every project instead of stopping at the first red, and on success NAMES the projects it checked. A vacuous config or a dangling reference registers that runner too and exits non-zero, rather than leaving the slot unfilled: an unfilled slot is a skip, the gate still exits 0, and a repo with no typecheck coverage would read exactly like one that passed. `release/unit-gate.ts` ran the same vacuous command as a PUBLISH gate and got the same treatment.
|
|
1063
1117
|
- **`parseJsonc` is a quote-aware scanner instead of two regexes**, because tsconfig is the one dialect where the regex version cannot work: `"src/**/*"` is a `/*` carrying its own `*/`, so a block-comment regex eats an arbitrary span of a valid file. Measured over the real tsconfigs on this machine, the old version THREW on 8 of them and silently rewrote `"src/**/*.ts"` to `"src*.ts"` in 8 more. It parses 80 of 80 now. This matters more than it did yesterday: the same parser gates typecheck and publish.
|
|
1064
|
-
- **`bun run test:raw` takes a FILE filter, not a name filter.** Measured: bun's positional argument matches the test file path, and a single test by name is `bun run test:raw -- -t "<name>"`. The wrong form was in 0.33.0's own notes, in two verify-skill templates, on `
|
|
1118
|
+
- **`bun run test:raw` takes a FILE filter, not a name filter.** Measured: bun's positional argument matches the test file path, and a single test by name is `bun run test:raw -- -t "<name>"`. The wrong form was in 0.33.0's own notes, in two verify-skill templates, on `tools/shipkit/index.md`, and in the refusal message an agent reads at the exact moment it is blocked.
|
|
1065
1119
|
|
|
1066
1120
|
## 0.33.0
|
|
1067
1121
|
|
|
@@ -1476,7 +1530,7 @@ never red and never cached.
|
|
|
1476
1530
|
Motherhome reporting: `check`/`ci` (and `init` on an already-configured
|
|
1477
1531
|
repo) upsert one row for the repo — name, path, version (`+src` suffix
|
|
1478
1532
|
when consumed by path/link), npm|link|file|path mode, last-seen day —
|
|
1479
|
-
into `<docsBase>/
|
|
1533
|
+
into `<docsBase>/tools/shipkit/local-projects.md`, ONLY when that page
|
|
1480
1534
|
already exists on this disk. The lib never creates the page and never
|
|
1481
1535
|
writes into a relative or URL docsBase — a consumer using docsBase as a
|
|
1482
1536
|
plain fix-pointer prefix will never find surprise files in its docs tree.
|
|
@@ -1741,7 +1795,7 @@ New (wave 1 of the shipkit expansion — uniform repo setup):
|
|
|
1741
1795
|
`assets:identity`, `pretty`→`fmt`, `check-types`→`typecheck`; body-matched
|
|
1742
1796
|
so an unrelated `serve` is left alone) and a missing `test`/`lint`/`fmt`
|
|
1743
1797
|
baseline. rvlib-* roots invert (MIT required, private banned). Spec:
|
|
1744
|
-
wiki `
|
|
1798
|
+
wiki `patterns/rv-conventions/package-json.md`. Doctor surface only — not in
|
|
1745
1799
|
the ci gate.
|
|
1746
1800
|
- `init` scaffolds the full canonical script set: `ci check contracts tui
|
|
1747
1801
|
hub` (hub runs `shipkit serve`) + a `test: bun test` baseline — was
|
|
@@ -1807,7 +1861,7 @@ New:
|
|
|
1807
1861
|
- `shipkit assets check` prints workflow provenance (W2-3): one `ok:` line
|
|
1808
1862
|
per bound pair with its repo-relative `.{json,ts}` path — there is no
|
|
1809
1863
|
global workflow store, git owns each repo's pairs; the sharing doctrine
|
|
1810
|
-
lives in
|
|
1864
|
+
lives in tools/comfyui/index.md.
|
|
1811
1865
|
- a second `shipkit serve` launch on an already-owned port now prints the
|
|
1812
1866
|
full clickable tool URLs (from the owner's `/hub.json`), not just the hub
|
|
1813
1867
|
root — a re-run terminal is as clickable as a first run.
|
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ import { defineRepo } from 'rvlib-shipkit'
|
|
|
14
14
|
export default defineRepo({
|
|
15
15
|
name: 'my-game',
|
|
16
16
|
venues: ['itch'], // which release contracts are REQUIRED
|
|
17
|
-
|
|
17
|
+
speaksAs: 'me', // the identity that speaks for the repo (sk identities)
|
|
18
18
|
})
|
|
19
19
|
```
|
|
20
20
|
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rvlib-shipkit",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.14.0",
|
|
4
4
|
"funding": "https://github.com/sponsors/rvion",
|
|
5
5
|
"description": "All-in-one repo companion: ci gate (task DAG), auto-discovered health checks, release-contract fulfillness, asks queue, md-wiki tools, asset atelier, live tui",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"files": [
|
|
9
9
|
"src",
|
|
10
|
+
"!src/veille/extension",
|
|
10
11
|
"README.md",
|
|
11
12
|
"CHANGELOG.md"
|
|
12
13
|
],
|
|
@@ -26,7 +27,8 @@
|
|
|
26
27
|
"@types/react": "^19.2.17",
|
|
27
28
|
"@types/react-dom": "^19.2.3",
|
|
28
29
|
"@types/sanitize-html": "^2.16.1",
|
|
29
|
-
"comfy-ts": "^2.9.0"
|
|
30
|
+
"comfy-ts": "^2.9.0",
|
|
31
|
+
"linkedom": "0.18.12"
|
|
30
32
|
},
|
|
31
33
|
"overrides": {
|
|
32
34
|
"mobx": "^7.0.0",
|
package/src/agent-time/store.ts
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
// transaction that reads its row again first, so two indexers never both
|
|
15
15
|
// append the same lines, and a killed build resumes at the next file.
|
|
16
16
|
import { Database } from 'bun:sqlite'
|
|
17
|
-
import { closeSync,
|
|
17
|
+
import { closeSync, mkdirSync, openSync, readSync, readdirSync, statSync } from 'fs'
|
|
18
18
|
import { homedir } from 'os'
|
|
19
19
|
import { basename, dirname, join } from 'path'
|
|
20
20
|
import { ensureWal } from '../ledger/db.ts'
|
|
@@ -27,7 +27,7 @@ import type { Call, Mark } from './timeline.ts'
|
|
|
27
27
|
export const AGENT_TIME_DB_ENV = 'SHIPKIT_AGENT_TIME_DB'
|
|
28
28
|
|
|
29
29
|
/** bumped when what a row holds changes: every file is read again */
|
|
30
|
-
export const INDEX_VERSION =
|
|
30
|
+
export const INDEX_VERSION = 7
|
|
31
31
|
|
|
32
32
|
export function agentTimeDbPath(): string {
|
|
33
33
|
const env = process.env[AGENT_TIME_DB_ENV]
|
package/src/assets/run-assets.ts
CHANGED
|
@@ -197,7 +197,7 @@ export const runAssetsCheck = (root: string, io: AssetsIo): Promise<number> =>
|
|
|
197
197
|
io.print(`ok: ${wfs.size} comfy-ts workflow(s) loaded`)
|
|
198
198
|
// provenance: where each module lives + its declared knobs.
|
|
199
199
|
// Git owns each repo's modules; the house library
|
|
200
|
-
// (wiki/
|
|
200
|
+
// (wiki/tools/comfyui/references) is the copy-from source.
|
|
201
201
|
for (const lw of wfs.values())
|
|
202
202
|
io.print(`ok: workflow '${lw.id}' → ${relative(root, lw.file)} (vars: ${lw.wf.entries().map(([n, d]) => `${n}:${d.kind}`).join(', ')})`)
|
|
203
203
|
} catch (e) {
|
|
@@ -272,7 +272,7 @@ export const runAssetsCheck = (root: string, io: AssetsIo): Promise<number> =>
|
|
|
272
272
|
else if (idn.state === 'rendered') io.print(`ok: identity re-rendered (brand.ts changed) — ${idn.detail}`)
|
|
273
273
|
else if (idn.state === 'blocked') { io.print(`FAIL: identity blocked — ${idn.detail}`); bad++ }
|
|
274
274
|
// manual assets: no rolls = nothing to ship = RED (the missing list
|
|
275
|
-
// is the shopping list —
|
|
275
|
+
// is the shopping list — tools/game-audio doctrine); rolls-but-no-pick = WARN
|
|
276
276
|
const manuals = allAssets(kit).filter((f) => f.kind.generate.backend === 'manual')
|
|
277
277
|
let manualBad = 0
|
|
278
278
|
for (const f of manuals) {
|
|
@@ -48,18 +48,26 @@ export async function studioRoutes(deps: StudioDeps): Promise<StudioRoutes> {
|
|
|
48
48
|
const { kit, root } = deps
|
|
49
49
|
const workspace = join(root, kit.workspace)
|
|
50
50
|
const dirOf = (id: string): string => assetDir(workspace, id)
|
|
51
|
+
// the workflows load on the first comfy roll, never at boot: a kit whose comfy kind is done (an identity mark
|
|
52
|
+
// picked long ago) never pays their import, and a missing folder is said on the roll that needed it, never on
|
|
53
|
+
// the page at rest. One load shared by every roll; a failed one is tried again on the next roll
|
|
51
54
|
let workflows: Map<string, LoadedWorkflow> | null = null
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
55
|
+
let loading: Promise<Map<string, LoadedWorkflow>> | null = null
|
|
56
|
+
const comfyKit = kit.comfy != null && kit.kinds.some((k) => k.generate.backend === 'comfy') ? kit.comfy : null
|
|
57
|
+
const loadWorkflows = (): Promise<Map<string, LoadedWorkflow>> => {
|
|
58
|
+
if (comfyKit == null) return Promise.reject(new Error('kit has no comfy config — only canvas kinds can generate'))
|
|
59
|
+
loading ??= loadCflowWorkflows(root, join(root, comfyKit.workflows)).then(
|
|
60
|
+
async (w) => {
|
|
61
|
+
workflows = w
|
|
62
|
+
await seedDrafts(w)
|
|
63
|
+
return w
|
|
64
|
+
},
|
|
65
|
+
(e: Error) => {
|
|
66
|
+
loading = null
|
|
67
|
+
throw new Error(`comfy workflows not loaded: ${e.message}`)
|
|
68
|
+
},
|
|
69
|
+
)
|
|
70
|
+
return loading
|
|
63
71
|
}
|
|
64
72
|
|
|
65
73
|
// custom panel scripts fail-fast here too (tests/embedders may bypass loadKit)
|
|
@@ -87,7 +95,8 @@ export async function studioRoutes(deps: StudioDeps): Promise<StudioRoutes> {
|
|
|
87
95
|
else if (workflows != null) note = `names no workflow; ${workflows.size} loaded — set workflow on the kind`
|
|
88
96
|
}
|
|
89
97
|
const lw = id != null && workflows != null ? workflows.get(id) : undefined
|
|
90
|
-
|
|
98
|
+
// before the first comfy roll nothing is loaded, and that is no fault of the kind
|
|
99
|
+
if (id != null && lw == null && note == null && workflows != null) note = `workflow '${id}' not loaded`
|
|
91
100
|
const path = lw != null ? relOf(lw.file) : id != null && kit.comfy != null ? join(kit.comfy.workflows, `${id}.cflow.ts`) : null
|
|
92
101
|
workflow = { id, path, note }
|
|
93
102
|
}
|
|
@@ -104,9 +113,9 @@ export async function studioRoutes(deps: StudioDeps): Promise<StudioRoutes> {
|
|
|
104
113
|
const promptOf = async (f: FoundAsset): Promise<string> =>
|
|
105
114
|
(await readPromptOverlay(dirOf(f.asset.id))).prompt ?? f.asset.prompt
|
|
106
115
|
|
|
107
|
-
// one draft per comfy asset, seeded
|
|
108
|
-
// every asset as a tweakable entry under its workflow
|
|
109
|
-
|
|
116
|
+
// one draft per comfy asset, seeded once the workflows load so `bunx comfy-ts tui`
|
|
117
|
+
// lists every asset as a tweakable entry under its workflow
|
|
118
|
+
async function seedDrafts(workflows: Map<string, LoadedWorkflow>): Promise<void> {
|
|
110
119
|
for (const f of allAssets(kit).filter((x) => x.kind.generate.backend === 'comfy')) {
|
|
111
120
|
try {
|
|
112
121
|
const gen = f.kind.generate as { workflow?: string }
|
|
@@ -119,13 +128,8 @@ export async function studioRoutes(deps: StudioDeps): Promise<StudioRoutes> {
|
|
|
119
128
|
}
|
|
120
129
|
}
|
|
121
130
|
|
|
122
|
-
//
|
|
123
|
-
|
|
124
|
-
const resolveComfy = async (): Promise<ComfyTsRuntime> => {
|
|
125
|
-
if (comfyErr != null) throw new Error(comfyErr)
|
|
126
|
-
if (kit.comfy == null || workflows == null) throw new Error('kit has no comfy config — only canvas kinds can generate')
|
|
127
|
-
return { workflows, heal: kit.comfy.heal }
|
|
128
|
-
}
|
|
131
|
+
// the shared roll generator asks for the runtime: the first comfy roll loads it
|
|
132
|
+
const resolveComfy = async (): Promise<ComfyTsRuntime> => ({ workflows: await loadWorkflows(), ...(comfyKit?.heal != null ? { heal: comfyKit.heal } : {}) })
|
|
129
133
|
const generateOne = deps.generateOne ?? ((found, prompt, seed, destDir, onProgress, context?: ParentContext) =>
|
|
130
134
|
generateRoll(found, { prompt, seed, destDir, onProgress, context, rollFormat: kit.rollFormat }, resolveComfy))
|
|
131
135
|
|
|
@@ -255,7 +259,7 @@ export async function studioRoutes(deps: StudioDeps): Promise<StudioRoutes> {
|
|
|
255
259
|
derived: parentIdsOf(f).length > 0, stale: await isStale(kit, workspace, f),
|
|
256
260
|
}
|
|
257
261
|
}))
|
|
258
|
-
return json({ ...queue.state, queued: queue.queuedCount, pending: queue.pendingIds(), errors:
|
|
262
|
+
return json({ ...queue.state, queued: queue.queuedCount, pending: queue.pendingIds(), errors: queue.errors.slice(-5), assets })
|
|
259
263
|
}
|
|
260
264
|
|
|
261
265
|
if (pathname === '/api/asset') {
|
package/src/check.ts
CHANGED
|
@@ -69,7 +69,7 @@ export type CheckDef = {
|
|
|
69
69
|
* cached on what it read. One of `run` or `cmd`, never both. */
|
|
70
70
|
run?: (c: CheckCtx) => void | Promise<void>
|
|
71
71
|
/** a TOOL run as the body: argv without a shell, the repo root as the
|
|
72
|
-
* working directory (`bun run build`, `
|
|
72
|
+
* working directory (`bun run build`, `bun check`). The exit code is truth: a
|
|
73
73
|
* non-zero exit with no `FAIL:` line still fails loud. It never names the
|
|
74
74
|
* check file itself: a body of the file's own is `run` (SK020). */
|
|
75
75
|
cmd?: string[]
|
|
@@ -186,8 +186,8 @@ export function check(d: CheckDef): CheckDef {
|
|
|
186
186
|
throw new Error(`check${name}: declare exactly one body, \`run\` (in process) or \`cmd\` (argv)`)
|
|
187
187
|
const raw = d as unknown as Record<string, unknown>
|
|
188
188
|
const retired = Object.keys(RETIRED_KEYS).filter((k) => raw[k] !== undefined)
|
|
189
|
-
if (retired.length > 0) throw new Error(`check${name}: ${retired.map((k) => `\`${k}\` is retired, declare ${RETIRED_KEYS[k]}`).join('; ')} (
|
|
190
|
-
if (typeof raw.fix === 'function') throw new Error(`check${name}: \`fix\` is now the word 'none' | 'ci' | 'manual', and the function is \`repair\` (
|
|
189
|
+
if (retired.length > 0) throw new Error(`check${name}: ${retired.map((k) => `\`${k}\` is retired, declare ${RETIRED_KEYS[k]}`).join('; ')} (tools/shipkit/runs.md)`)
|
|
190
|
+
if (typeof raw.fix === 'function') throw new Error(`check${name}: \`fix\` is now the word 'none' | 'ci' | 'manual', and the function is \`repair\` (tools/shipkit/runs.md)`)
|
|
191
191
|
const runs = runsProblem(d.runs)
|
|
192
192
|
if (runs != null) throw new Error(`check${name}: ${runs}`)
|
|
193
193
|
const cache = cacheProblem(d.cache)
|
|
@@ -239,7 +239,7 @@ export type TaskDef = {
|
|
|
239
239
|
/** CONTENT population: the repo-relative paths this task reads. Declaring
|
|
240
240
|
* them is what makes it keyable (ledger/git-key.ts). Undeclared is the
|
|
241
241
|
* DEFAULT: the task is keyed on the whole work tree plus the repo's
|
|
242
|
-
* `ignoredInputs` (
|
|
242
|
+
* `ignoredInputs` (tools/shipkit/cache.md). A list MISSING a path
|
|
243
243
|
* the command reads is the one that costs correctness: the key cannot
|
|
244
244
|
* move when that path changes, so a cached answer comes back over a tree
|
|
245
245
|
* it no longer describes. */
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
// SK001 — canonical package.json shape (
|
|
1
|
+
// SK001 — canonical package.json shape (patterns/rv-conventions/package-json.md):
|
|
2
2
|
// private:true, no license, capability-required script names FAIL, banned
|
|
3
3
|
// aliases + missing baseline scripts WARN. Blocking, so it runs in `shipkit
|
|
4
4
|
// ci` like every other rule. It reads only through `c`, so it is cached on
|
|
5
5
|
// what it read: package.json, the probes below, the test file listing, and
|
|
6
6
|
// whatever the floor resolution read.
|
|
7
7
|
//
|
|
8
|
-
// It also enforces the package.json half of ONE WAY IN (
|
|
8
|
+
// It also enforces the package.json half of ONE WAY IN (tools/shipkit/one-way-in.md):
|
|
9
9
|
// `test` and `typecheck` ROUTE to `shipkit ci --only <id>` and the
|
|
10
10
|
// tool body they used to hold sits at `<id>:raw`. That is what makes a cache
|
|
11
11
|
// worth having: `bun run test` is the reflex, and the reflex has to land in
|
|
@@ -22,7 +22,7 @@ import { check, type FixResult } from '../check.ts'
|
|
|
22
22
|
type Deps = Record<string, string>
|
|
23
23
|
type Pkg = { name?: string; private?: boolean; license?: string; scripts?: Record<string, string>; dependencies?: Deps; devDependencies?: Deps; optionalDependencies?: Deps }
|
|
24
24
|
|
|
25
|
-
const OWNER = '
|
|
25
|
+
const OWNER = 'patterns/rv-conventions/package-json.md'
|
|
26
26
|
|
|
27
27
|
// alias → { canonical, bodyMatch } — WARN only when the body proves the
|
|
28
28
|
// alias really is the canonical capability (a `serve` that serves a dist/
|
|
@@ -71,7 +71,7 @@ export function evaluatePackageJson(t: CheckCtx): void {
|
|
|
71
71
|
// still handled so a future lib-root repo fails correctly, not absurdly
|
|
72
72
|
const isLib = pkg.name?.startsWith('rvlib-') === true
|
|
73
73
|
|
|
74
|
-
// published rvlib-* roots invert the field rules (
|
|
74
|
+
// published rvlib-* roots invert the field rules (guides/npm owns them)
|
|
75
75
|
if (isLib) {
|
|
76
76
|
if (pkg.license !== 'MIT') t.fail(`package.json: rvlib-* package must carry license MIT`)
|
|
77
77
|
if (pkg.private === true) t.fail(`package.json: rvlib-* package must not be private`)
|
|
@@ -131,6 +131,10 @@ export function evaluatePackageJson(t: CheckCtx): void {
|
|
|
131
131
|
for (const n of ['lint', 'fmt'] as const)
|
|
132
132
|
if (scripts[n] != null && bunfigDeclares(bunfig, n))
|
|
133
133
|
t.warn(`package.json: script '${n}' shadows \`bun ${n}\`, which bunfig.toml turns on with [${n}] — delete it${scripts[rawName(n)] != null ? ` and '${rawName(n)}'` : ''}`)
|
|
134
|
+
// `bun check` is the type checker an agent types, with no section to turn it
|
|
135
|
+
// on, so a `check` script always takes its place, with its own exit code
|
|
136
|
+
if (scripts['check'] != null)
|
|
137
|
+
t.warn(`package.json: script 'check' shadows \`bun check\`, the type checker an agent runs: rename it (until then \`bun check --no-script\` type checks)`)
|
|
134
138
|
if (missingBaseline.length > 0)
|
|
135
139
|
t.warn(`package.json: missing baseline: ${missingBaseline.map((n) => (n === 'test' ? `script 'test'` : `[${n}] in bunfig.toml (or a '${n}' script)`)).join(', ')}`)
|
|
136
140
|
for (const r of RETIRED) {
|