claude-code-session-manager 0.135.0 → 0.136.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/dist/assets/{AgentLibrary-DRlcF1YD.js → AgentLibrary-BFztz90B.js} +1 -1
  3. package/dist/assets/{AppSettings-CBhYHKGI.js → AppSettings-6_dqi9Ti.js} +1 -1
  4. package/dist/assets/{Button-DtBUGvGI.js → Button-5wbUTtD5.js} +1 -1
  5. package/dist/assets/{DocumentEditorPane-C82c7Qtl.js → DocumentEditorPane-CRgJFjka.js} +1 -1
  6. package/dist/assets/{Extensions-Kn-oUD2_.js → Extensions-ZXSJbnK7.js} +2 -2
  7. package/dist/assets/{History-B4c3Uz9u.js → History-CmSTZeiu.js} +1 -1
  8. package/dist/assets/{Library-1RpLT-aH.js → Library-DcTnW9kq.js} +1 -1
  9. package/dist/assets/{ListDetail-xr0oxNkv.js → ListDetail-BGsdNFiK.js} +1 -1
  10. package/dist/assets/{Panel-O8XPrpJu.js → Panel-BR2PeMf6.js} +1 -1
  11. package/dist/assets/{ProjectClaudeConfig-DBGhhzg2.js → ProjectClaudeConfig-DJYcUU1G.js} +1 -1
  12. package/dist/assets/{ProvenanceBadge-DSaizfZL.js → ProvenanceBadge-B_TDAI3k.js} +1 -1
  13. package/dist/assets/{Scheduler-D2_5NyiR.js → Scheduler-DqocyumD.js} +1 -1
  14. package/dist/assets/{Settings-Clgqb3Lq.js → Settings-BzPe2TH6.js} +1 -1
  15. package/dist/assets/{SkillReferenceGraph-D80RA7kR.js → SkillReferenceGraph-DfdO0Q_N.js} +1 -1
  16. package/dist/assets/{Skills-DNG7tHSf.js → Skills-CGPJxKhR.js} +1 -1
  17. package/dist/assets/{SourceChip-D-Imzszd.js → SourceChip-CI8xpHRi.js} +1 -1
  18. package/dist/assets/{SystemPrompt-CGlOpUQA.js → SystemPrompt-BbzGIHoz.js} +1 -1
  19. package/dist/assets/{TiptapBody-CJFGfBdz.js → TiptapBody-CTmjUhAI.js} +1 -1
  20. package/dist/assets/{Toggle-0Ff0bPa_.js → Toggle-CWx9Rq6E.js} +1 -1
  21. package/dist/assets/{ViewTabs-BCMYQwo_.js → ViewTabs-BnjD0Crp.js} +1 -1
  22. package/dist/assets/{VoiceButton-JzyC6DAB.js → VoiceButton-C-iQGCL1.js} +1 -1
  23. package/dist/assets/{historyTotals-B01WPBwh.js → historyTotals-BaxAMu7r.js} +1 -1
  24. package/dist/assets/{index-CjQ_p5y7.css → index-62tyjEQB.css} +1 -1
  25. package/dist/assets/index-Cob2iZhR.js +3116 -0
  26. package/dist/index.html +2 -2
  27. package/dist-web/app.css +1 -1
  28. package/dist-web/app.js +412 -412
  29. package/package.json +1 -1
  30. package/plugins/CLAUDE.md +9 -8
  31. package/plugins/packs/apple-design/.claude-plugin/plugin.json +6 -0
  32. package/plugins/packs/apple-design/laws.md +14 -0
  33. package/plugins/packs/apple-design/skills/hig-layout-and-accessibility/SKILL.md +152 -0
  34. package/plugins/packs/apple-design/skills/liquid-glass-adoption/SKILL.md +132 -0
  35. package/plugins/packs/apple-design/sm-pack.json +5 -0
  36. package/plugins/packs/apple-swift-core/.claude-plugin/plugin.json +12 -0
  37. package/plugins/packs/apple-swift-core/laws.md +13 -0
  38. package/plugins/packs/apple-swift-core/skills/swift-concurrency/SKILL.md +160 -0
  39. package/plugins/packs/apple-swift-core/skills/swiftui-state-and-navigation/SKILL.md +165 -0
  40. package/plugins/packs/apple-swift-core/sm-pack.json +5 -0
  41. package/plugins/session-manager-dev/.claude-plugin/plugin.json +1 -1
  42. package/plugins/session-manager-dev/skills/builder/SKILL.md +136 -91
  43. package/plugins/session-manager-dev/skills/builder/manual.md +80 -0
  44. package/plugins/session-manager-dev/skills/develop/SKILL.md +29 -56
  45. package/plugins/session-manager-dev/skills/develop/standards.md +11 -19
  46. package/plugins/session-manager-dev/skills/maintaining-md-network/SKILL.md +9 -0
  47. package/plugins/session-manager-dev/skills/maintaining-md-network/drift-check.md +5 -2
  48. package/plugins/session-manager-dev/skills/maintaining-md-network/scripts/drift-check.cjs +100 -5
  49. package/plugins/session-manager-dev/skills/send-feedback/SKILL.md +65 -21
  50. package/scripts/scheduler-mcp-server.cjs +65 -5
  51. package/src/main/build-info.json +4 -4
  52. package/src/main/chatRunner.cjs +26 -2
  53. package/src/main/index.cjs +4 -0
  54. package/src/main/ipcSchemas.cjs +13 -0
  55. package/src/main/lib/CLAUDE.md +2 -0
  56. package/src/main/lib/claude/agentModelResolve.cjs +23 -0
  57. package/src/main/lib/epic/epicMint.cjs +12 -6
  58. package/src/main/lib/epic/epicTranscriptPath.cjs +5 -4
  59. package/src/main/lib/epic/promptSessionsCreateEpic.cjs +8 -4
  60. package/src/main/lib/epic/restorableSessions.cjs +16 -8
  61. package/src/main/lib/feedback-remote/crossProjectFeedback.cjs +201 -8
  62. package/src/main/lib/feedback-remote/crossProjectReply.cjs +375 -0
  63. package/src/main/lib/feedback-remote/remoteIpcDispatch.cjs +2 -0
  64. package/src/main/lib/mcpToolCatalog.cjs +38 -4
  65. package/src/main/lib/mdNetworkScan.cjs +61 -11
  66. package/src/main/lib/mdReviewRecord.cjs +287 -0
  67. package/src/main/lib/packs/packCatalog.cjs +120 -0
  68. package/src/main/lib/packs/packSpawnArgs.cjs +59 -0
  69. package/src/main/lib/packs/packsIpc.cjs +76 -0
  70. package/src/main/lib/persona-macro/builtinMacros.cjs +3 -2
  71. package/src/main/lib/persona-macro/shippedPersonaSeeds.cjs +34 -0
  72. package/src/main/lib/prd/prdCreate.cjs +2 -2
  73. package/src/main/lib/promptSessionSchema.cjs +8 -0
  74. package/src/main/projectPages.cjs +19 -0
  75. package/src/main/promptSessionEvents.cjs +8 -1
  76. package/src/main/scheduler.cjs +23 -2
  77. package/src/preload/api.d.ts +71 -0
  78. package/src/preload/apiSurface.json +21 -0
  79. package/src/preload/index.cjs +7 -0
  80. package/src/seed/agents/demo-video-builder.md +28 -33
  81. package/src/seed/agents/dev-lead.md +3 -3
  82. package/dist/assets/index-rt7pTODX.js +0 -3116
  83. package/plugins/session-manager-dev/skills/builder/0-diff/SKILL.md +0 -44
  84. package/plugins/session-manager-dev/skills/builder/1-classify-and-bump/SKILL.md +0 -37
  85. package/plugins/session-manager-dev/skills/builder/2-gate/SKILL.md +0 -37
  86. package/plugins/session-manager-dev/skills/builder/3-publish/SKILL.md +0 -137
  87. package/plugins/session-manager-dev/skills/builder/4-manual/SKILL.md +0 -124
  88. package/plugins/session-manager-dev/skills/builder/5-report/SKILL.md +0 -35
@@ -1,44 +0,0 @@
1
- ---
2
- name: builder:diff
3
- description: Step 0 of builder — determine everything on HEAD that hasn't been published yet. Prefer the project's actual npm registry state over git tags, since a tag can exist without a matching publish (or vice versa); fall back to the last git tag when there's no resolvable package name or no network.
4
- ---
5
-
6
- # builder:diff
7
-
8
- Resolve what "already published" means for this project, then list every commit on `HEAD`
9
- since that point.
10
-
11
- ## 1. Resolve the build target
12
-
13
- Read `session-manager-operations/architecture/build-target.json` via
14
- `resolveBuildTarget(cwd)` in `src/main/lib/buildTarget.cjs` (falls back to `package.json`'s
15
- `name` if no explicit config exists). If `buildTarget.cjs` isn't present yet in this repo,
16
- read `package.json`'s `name` field directly and note in the final report that the config
17
- reader was missing — this does not block the pipeline.
18
-
19
- ## 2. Determine the last published point
20
-
21
- Preferred: `npm view <packageName> version` — the actual registry state, not just a local
22
- tag. This catches the case where a tag was pushed but the publish itself failed partway
23
- (the tag would lie; the registry won't).
24
-
25
- Fallback (no network, or `npm view` 404s because the package was never published): use the
26
- last git tag instead — `git describe --tags --abbrev=0`.
27
-
28
- ## 3. Diff
29
-
30
- ```
31
- git log <last-published-version-or-tag>..HEAD --oneline
32
- ```
33
-
34
- If `npm view` returned a version not tagged locally, resolve its tag first (`git tag -l
35
- 'v<version>'`); if no matching local tag exists, fall back to comparing against
36
- `git describe --tags --abbrev=0` and note the discrepancy in the report.
37
-
38
- ## Output
39
-
40
- - The resolved package name and last-published version/tag (and which method resolved it —
41
- registry or git tag).
42
- - The full commit list (subject lines) since that point.
43
- - If the list is empty: stop here and report "nothing to publish" — do not proceed to
44
- `builder:classify-and-bump`.
@@ -1,37 +0,0 @@
1
- ---
2
- name: builder:classify-and-bump
3
- description: Step 1 of builder — parse conventional-commit prefixes from the commit list produced by builder:diff and decide the semver bump. Never guess when the history doesn't follow the convention — ask the user instead.
4
- ---
5
-
6
- # builder:classify-and-bump
7
-
8
- Classify every commit subject from `builder:diff`'s output and pick the highest-severity
9
- bump that applies.
10
-
11
- ## Rules (conventional commits)
12
-
13
- - Any commit containing `BREAKING CHANGE:` in its body, or a `!:` right after the type/scope
14
- (e.g. `feat(api)!:`) → **major**.
15
- - Any `feat:`/`feat(scope):` commit (and no breaking marker above) → **minor**.
16
- - Any `fix:`/`fix(scope):` commit (and nothing higher) → **patch**.
17
- - `chore:`, `docs:`, `refactor:`, `test:`, `ci:` etc. with no `fix`/`feat`/breaking commit
18
- alongside them → **patch** (matches this project's own convention — see recent history,
19
- e.g. `chore(release): bump to v0.47.1` following a patch-only commit set).
20
-
21
- Take the **highest** bump implied by the whole commit list (one `feat:` among ten `fix:`
22
- commits still means minor; one breaking marker anywhere means major).
23
-
24
- ## When commits don't follow the convention
25
-
26
- If a meaningful fraction of the commit list has no recognizable `type:` prefix at all (not
27
- just an unconventional scope — genuinely no prefix, e.g. a bare "wip" or "updates"), **do
28
- not guess**. Say so explicitly and ask the user which bump to apply, listing the
29
- unclassifiable commits. This is a needs-decision carve-out: classification stops for a human call instead of
30
- proceeding — guessing wrong here ships an incorrect semver bump that's hard to walk back once published.
31
-
32
- ## Output
33
-
34
- - The bump kind: `patch` | `minor` | `major`.
35
- - The commit list grouped by which rule matched each one (for the eventual report step).
36
- - If ambiguous: the question posed to the user instead of a bump kind, and the pipeline
37
- pauses here until answered.
@@ -1,37 +0,0 @@
1
- ---
2
- name: builder:gate
3
- description: Step 2 of builder — run typecheck and unit tests, both time-bounded, as the hard pre-publish gate. A failing gate stops the pipeline; builder:publish never runs on a red gate.
4
- ---
5
-
6
- # builder:gate
7
-
8
- Run this project's own check commands against `HEAD` exactly as they run in CI/manually —
9
- no shortcuts, no `--skip` flags.
10
-
11
- ```
12
- timeout 180 npm run typecheck
13
- timeout 300 npm run test:unit
14
- ```
15
-
16
- (Adjust bounds per project if `CLAUDE.md` documents different timing expectations — these
17
- values match session-manager's own commands: `tsc --noEmit` and `vitest run`.) Always wrap
18
- in `timeout` — an unbounded gate command is exactly the kind of stuck-job failure mode
19
- `PRD_AUTHORING.md` warns about elsewhere in this repo; a hang here should surface as a
20
- timeout, not run forever.
21
-
22
- ## On failure
23
-
24
- Stop immediately. Do not proceed to `builder:publish`. Report:
25
- - which command failed (typecheck or test:unit)
26
- - the actual failure output (not just "gate failed")
27
- - that no version bump, tag, or publish happened
28
-
29
- ## On success
30
-
31
- Proceed to `builder:publish` with no pause for reconfirmation — see the orchestrator's hard
32
- rules on this.
33
-
34
- ## Output
35
-
36
- - `PASS` or `FAIL` per command.
37
- - Full failure output on `FAIL`, empty on `PASS`.
@@ -1,137 +0,0 @@
1
- ---
2
- name: builder:publish
3
- description: Step 3 of builder — the ISOLATED WORKTREE publish technique. Bumps the version, tags, then does the actual build+publish from a clean git worktree checked out at that tag so the live/dirty working directory is never touched by prepublishOnly's build step. Every command below was run for real 4 times in the session that originated this skill (session-manager v0.45.1 → v0.47.1).
4
- ---
5
-
6
- # builder:publish
7
-
8
- A dirty working tree in the main repo is **not** a blocker for this step — that's the whole
9
- point of the isolated-worktree technique. Run the sequence below in order, without pausing
10
- to ask for reconfirmation once `builder:gate` has passed.
11
-
12
- ## Procedure (exact order — verified across 4 real publishes)
13
-
14
- 1. **Bump the version, package.json only:**
15
- ```
16
- npm version <bump> --no-git-tag-version
17
- ```
18
- (`<bump>` is the kind decided by `builder:classify-and-bump` — `patch`/`minor`/`major`.)
19
- `--no-git-tag-version` matters: it updates `package.json`/`package-lock.json` without
20
- creating a git tag yet, so the tag step below can carry a proper message.
21
-
22
- 2. **Stage only the two version files — never `-A`:**
23
- ```
24
- git add package.json package-lock.json
25
- ```
26
-
27
- 3. **Commit, with a message listing the commits this release covers:**
28
- ```
29
- git commit -m "chore(release): bump to v<version>
30
-
31
- - <commit 1 subject>
32
- - <commit 2 subject>
33
- - ..."
34
- ```
35
-
36
- 4. **Tag the release commit:**
37
- ```
38
- git tag v<version>
39
- ```
40
-
41
- 5. **Create the isolated worktree from that tag:**
42
- ```
43
- mkdir -p "$HOME/.cache/sm-publish"
44
- git worktree add "$HOME/.cache/sm-publish/v<version>" v<version>
45
- ```
46
- **Never under `/tmp`** (or anywhere under `os.tmpdir()`): the test suite treats such paths as
47
- test fixtures, so `src/main/__tests__/opsErrorLog.test.cjs` ("a real project root is
48
- refused") fails inside a `/tmp` worktree.
49
-
50
- 6. **Move into the worktree, build clean, and run the in-tree gate:**
51
- ```
52
- cd "$HOME/.cache/sm-publish/v<version>"
53
- npm ci
54
- npm run typecheck
55
- npm run test:unit
56
- ```
57
- `npm ci` gives a fully clean `node_modules` from the lockfile — no leftover local state
58
- from the dirty main repo can leak into the published artifact. Typecheck and unit tests
59
- must both pass here; stop before `npm publish` on any failure.
60
-
61
- After the build step (run the project's build, e.g. `npm run build` plus any web build that
62
- produces `dist-web/`), check that every `files` entry exists:
63
- ```
64
- test -f dist-web/index.html && test -f dist/index.html
65
- ```
66
- If either is missing, stop before `npm publish` and report.
67
-
68
- 7. **Publish from inside the worktree:**
69
- ```
70
- npm publish
71
- ```
72
- This project's `prepublishOnly` script runs `vite build` — because step 6 already `cd`'d
73
- into `$HOME/.cache/sm-publish/v<version>`, that build runs **inside the clean worktree**, never
74
- touching (or being affected by) the live/dirty working directory back in the main repo.
75
- This is the entire reason the worktree exists: it decouples "what's uncommitted in my
76
- editor right now" from "what gets built and shipped."
77
-
78
- **If this 403s with `Two-factor authentication or granular access token with bypass 2fa
79
- enabled is required to publish packages`**, this is NOT a login/auth-token problem (`npm
80
- whoami` can succeed while this still fails) — it's npm's separate write-path 2FA gate. Do
81
- not retry `npm login`. Run `npm profile get` and `npm token list` to confirm (2FA disabled
82
- + a legacy "classic" token = structurally blocked, and the CLI cannot mint a
83
- granular/bypass-2FA token — that's npmjs.com-web-UI-only). Stop here and report; see the
84
- `builder` agent persona's "Publish auth" section for the full decision tree and why a
85
- bypass-2FA token is a bridge, not a durable fix (npm is deprecating it — Phase 2 ~Jan 2027
86
- removes its publish capability entirely).
87
-
88
- 8. **Back in the main repo, push:**
89
- ```
90
- cd <main repo path>
91
- git push origin main
92
- git push origin v<version>
93
- ```
94
-
95
- 9. **Clean up the worktree:**
96
- ```
97
- git worktree remove "$HOME/.cache/sm-publish/v<version>" --force
98
- ```
99
-
100
- 10. **Verify the publish actually landed on the registry.** `npm view` is cached and lags for
101
- minutes after a real publish, so check a cache-busted packument and the tarball first:
102
- ```
103
- curl -s "https://registry.npmjs.org/<packageName>?t=$(date +%s)" # dist-tags.latest + versions
104
- curl -sI <tarball URL from versions["<version>"].dist.tarball> # expect HTTP 200
105
- npm view <packageName> version
106
- npm view <packageName> dist-tags
107
- ```
108
- Confirm `dist-tags.latest` is `<version>`, `<version>` is in `versions`, and the tarball
109
- returns 200 (unless the project intentionally publishes to a different dist-tag). If the
110
- packument is current, an unchanged `npm view` for a few minutes is normal lag, not a
111
- failure — do not republish.
112
-
113
- 11. **Post-publish: verify the installer release.** Pushing `v<version>` (step 8) triggers
114
- `.github/workflows/release.yml`. Confirm the tag push succeeded, then poll (bounded: at most
115
- 20 tries x 30 s, never open-ended):
116
- ```
117
- for i in $(seq 1 20); do
118
- gh release view v<version> --json assets --jq '.assets[].name' && break
119
- sleep 30
120
- done
121
- ```
122
- Check the asset names include a `.dmg`, an `.exe` and an `.AppImage`. Report any that are
123
- missing (or that the release never appeared); do not retry beyond the bound.
124
-
125
- ## On any step failing
126
-
127
- Stop at that step. Do not proceed. Report which step failed and its output. If the worktree
128
- was already created (step 5+), leave it in place if its state is relevant evidence for
129
- diagnosing the failure; otherwise remove it (step 9) before reporting, so a retry doesn't
130
- collide with a stale `$HOME/.cache/sm-publish/v<version>` path.
131
-
132
- ## Output
133
-
134
- - Version published.
135
- - Confirmation the worktree was removed.
136
- - `npm view` output proving the registry has the new version and correct dist-tag.
137
- - Confirmation both `git push` calls succeeded (main + tag).
@@ -1,124 +0,0 @@
1
- ---
2
- name: builder:manual
3
- description: Keep The Session Manager Field Manual — the free guide published at bilko.run/manual — in step with what actually shipped. Runs after builder:publish (or standalone), diffs the just-released commits against the manual's chapter map, revises the affected chapters, bumps the manual's own version, builds the release bundle into the Bilko repo, and reports what changed. Invoked as the last step of /builder, or directly via "/builder:manual", "update the manual", "does the manual need a revision".
4
- ---
5
-
6
- # builder:manual (step 5)
7
-
8
- The manual is a **product we publish**, not documentation we generate. It has its own version
9
- line, its own release cadence, and readers who follow it step by step and are owed accuracy. This
10
- step exists so a shipped feature never silently invalidates a chapter.
11
-
12
- - **Source of truth:** `session-manager-operations/manual/` (see its `README.md` for the
13
- on-disk shape and the release checklist).
14
- - **Build:** `npm run manual:build` → `~/Projects/Bilko/data/manual/releases/<version>/`.
15
- - **Price:** free — every chapter and both downloads (root `CLAUDE.md`, open-core law). The
16
- legacy `session_manager` Stripe SKU stays wired only so late payments resolve; it sells nothing.
17
-
18
- ## Inputs
19
-
20
- The commit list from `builder:diff` (step 0) and the version `builder:publish` (step 3) just
21
- shipped. When run standalone, derive both the same way step 0 does.
22
-
23
- ## Procedure
24
-
25
- ### 1. Decide whether a revision is owed
26
-
27
- Read `session-manager-operations/manual/manual.json`. Compare its `documentsAppVersion`
28
- against the version just published.
29
-
30
- Then map the release's commits onto the chapter list. A chapter is **affected** when a commit
31
- in the diff touched a surface that chapter describes — check the chapter body for the file
32
- paths, tab names, flags, and CLI invocations it names, and grep the diff for those.
33
-
34
- Three outcomes, and only one of them is work:
35
-
36
- | Finding | Action |
37
- | --- | --- |
38
- | No commit touches any documented surface | Bump `documentsAppVersion` only, note "no content change", stop. Do **not** cut a manual release for a version bump alone. |
39
- | A commit changes behaviour a chapter describes | Revise that chapter. Continue to step 2. |
40
- | A commit ships a surface no chapter covers | Report it as a **gap** — propose the new chapter, but do not author a whole chapter unprompted; that's a scope decision for the human or an Epic. |
41
-
42
- ### 2. Revise the affected chapters
43
-
44
- Edit the chapter HTML in `session-manager-operations/manual/chapters/`.
45
-
46
- Hard rules — these are the ones that protect a reader:
47
-
48
- - **Follow `manual/STYLE.md`** (voice, reading level, component vocabulary) — it is the single
49
- writing contract for every chapter, revisions included.
50
- - **Every claim must be checkable against real code right now.** Read the file, run the
51
- command, confirm the constant. A wrong instruction breaks every reader who follows it.
52
- - **Never invent a screenshot.** A figure slot that has no captured image stays a
53
- `manual-figure__frame` placeholder stating what still needs capturing. Placeholder text is
54
- honest; a fabricated UI is not.
55
- - **Don't restate the codebase.** The manual is an operator's guide — what a surface is for,
56
- the one thing people get wrong, the workflow that pays off. If a paragraph would be equally
57
- at home in `CLAUDE.md`, cut it.
58
- - **Every chapter stays free.** Every chapter, a new one included, must carry `free: true` —
59
- Bilko keys its chapter lock on that flag, and `web/manual/build.mjs` refuses to build a
60
- release where any chapter lacks it.
61
-
62
- ### 3. Bump the manual's own version
63
-
64
- In `manual.json`:
65
-
66
- - `documentsAppVersion` → the app version just published, always.
67
- - `version` → **patch** for corrections and figure fills, **minor** for a revised or added
68
- chapter, **major** for a restructure that changes the chapter map. This is independent of
69
- the app's version — a reader tracks the manual's line, not the app's.
70
- - `releasedAt` → today, in the user's local timezone (America/Los_Angeles).
71
-
72
- ### 4. Build and verify
73
-
74
- ```bash
75
- npm run manual:check # sources valid, nothing written
76
- npm run manual:build # emits into ../Bilko/data/manual/releases/<version>/
77
- ```
78
-
79
- The build is the gate. It refuses on a missing chapter file, a malformed or duplicated slug,
80
- an asset declared without a source, or a chapter not marked `free: true`. A refusal is a stop,
81
- not a warning.
82
-
83
- Then confirm the bundle is real — the manifest must not over-promise:
84
-
85
- ```bash
86
- ls ~/Projects/Bilko/data/manual/releases/<version>/
87
- cd ~/Projects/Bilko && npx vitest run tests/manual.test.ts
88
- ```
89
-
90
- That test walks the shipped manifest and asserts every chapter and asset it advertises
91
- actually exists on disk.
92
-
93
- ### 5. Commit both repos
94
-
95
- The bundle is served from the Bilko repo on Render, so an uncommitted bundle is an
96
- unpublished manual. Two commits, one logical release:
97
-
98
- - `session-manager`: the chapter sources + `manual.json`.
99
- - `~/Projects/Bilko`: `data/manual/releases/<version>/`.
100
-
101
- Per the project's standing rule, commit locally as soon as the build and test pass — don't
102
- wait to be asked. Pushing the Bilko side is what actually ships it to readers, so treat that
103
- push with the same release trigger the npm publish gets.
104
-
105
- ## Output
106
-
107
- Report, in this order:
108
-
109
- 1. Manual version before → after, and `documentsAppVersion` before → after.
110
- 2. Chapters revised, one line each, saying what changed and why.
111
- 3. Coverage gaps found (shipped surfaces with no chapter) — as proposals, not as work done.
112
- 4. Figures still pending capture, by chapter.
113
- 5. Whether the Bilko-side bundle is committed and pushed. If it isn't pushed, say plainly
114
- that readers are still seeing the previous edition.
115
-
116
- ## What this step is not
117
-
118
- - Not a screenshot pipeline. Capturing and annotating real app screenshots is its own PRD;
119
- until it lands, figures are placed by hand and unplaced slots render as honest placeholders.
120
- - Not a marketing-copy editor. The product page (`Bilko:src/pages/session-manager-landing/` in the Bilko repo) is
121
- separate from the manual it links to.
122
- - Not a pricing or entitlement change. The manual is free. The legacy `session_manager` SKU and
123
- the `MANUAL_PRODUCT_KEY` mapping in `Bilko:shared/manual-catalog.ts` stay wired only so late payments
124
- resolve and past buyers keep their rows — removing either is an explicit decision, not a step.
@@ -1,35 +0,0 @@
1
- ---
2
- name: builder:report
3
- description: Step 4 of builder — summarize the completed (or stopped) publish run in one report — version bumped, commits covered, npm dist-tag verified, git push confirmed.
4
- ---
5
-
6
- # builder:report
7
-
8
- Produce one concise summary of what happened, whether the pipeline reached publish or
9
- stopped early.
10
-
11
- ## On a successful publish
12
-
13
- Report:
14
- - **Version**: previous → new (and bump kind: patch/minor/major).
15
- - **Commits covered**: the full list from `builder:diff`, grouped by the classification
16
- `builder:classify-and-bump` assigned.
17
- - **Gate result**: typecheck + test:unit, both PASS.
18
- - **npm verification**: `npm view <packageName> version` and `dist-tags` output, confirming
19
- the registry matches.
20
- - **Git state**: both `git push origin main` and `git push origin v<version>` confirmed;
21
- worktree removed.
22
-
23
- ## On an early stop (no diff, failed gate, ambiguous bump, or a publish-step failure)
24
-
25
- Report exactly which step stopped the pipeline and why:
26
- - `builder:diff` — "nothing to publish" (no commits since last release).
27
- - `builder:classify-and-bump` — the question posed to the user, still unanswered.
28
- - `builder:gate` — which command failed and its output.
29
- - `builder:publish` — which numbered step failed, its output, and whether a worktree or
30
- local tag was left behind that a retry needs to account for.
31
-
32
- ## Output
33
-
34
- One report, plain text, suitable for pasting into an Epic/PRD completion note or relaying
35
- directly to the user — no separate file is written by this step.