claude-code-session-manager 0.134.0 → 0.135.1

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 (59) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/dist/assets/{AgentLibrary-C9KFGJQq.js → AgentLibrary-BBY7E1ag.js} +1 -1
  3. package/dist/assets/{AppSettings-CvVQ6ot5.js → AppSettings-vMiIi0xn.js} +1 -1
  4. package/dist/assets/{Button-BHvploNk.js → Button-C0Z090Ui.js} +1 -1
  5. package/dist/assets/{DocumentEditorPane-DaX4xag_.js → DocumentEditorPane-Ds10W8SZ.js} +1 -1
  6. package/dist/assets/{Extensions-DbRY-KEz.js → Extensions-CjPiz2I5.js} +2 -2
  7. package/dist/assets/{History-BE_mjM24.js → History-Bm3KXXs1.js} +1 -1
  8. package/dist/assets/{Library-I37dQ6pB.js → Library-D-khizDg.js} +1 -1
  9. package/dist/assets/{ListDetail-DJYMWYQd.js → ListDetail-CJYpp8fW.js} +1 -1
  10. package/dist/assets/{Panel-DP8eSKSs.js → Panel-BHFGylfy.js} +1 -1
  11. package/dist/assets/{ProjectClaudeConfig-Cw8lc3Qi.js → ProjectClaudeConfig-DIzNAala.js} +1 -1
  12. package/dist/assets/{ProvenanceBadge-DUwhsmdA.js → ProvenanceBadge-CYryeTYF.js} +1 -1
  13. package/dist/assets/{Scheduler-B9D2gZqs.js → Scheduler-BS82wfRP.js} +1 -1
  14. package/dist/assets/{Settings-DSk7bn-1.js → Settings-DWPHJ94d.js} +1 -1
  15. package/dist/assets/{SkillReferenceGraph-DtJcJJHR.js → SkillReferenceGraph-Cf2M7YNq.js} +1 -1
  16. package/dist/assets/{Skills-BPZnSjsB.js → Skills-DLq55Odf.js} +1 -1
  17. package/dist/assets/{SourceChip-DUxulNOp.js → SourceChip-CHxAzRlD.js} +1 -1
  18. package/dist/assets/{SystemPrompt-BXAugVle.js → SystemPrompt-BYtKMAr3.js} +1 -1
  19. package/dist/assets/{TiptapBody-CDC1vrOo.js → TiptapBody-O_Gfq0Ha.js} +1 -1
  20. package/dist/assets/{Toggle-CrgM7OTR.js → Toggle-BJOUI5NY.js} +1 -1
  21. package/dist/assets/{ViewTabs-DLwaU9RB.js → ViewTabs-kkvNGu-S.js} +1 -1
  22. package/dist/assets/{VoiceButton-C4hIBxIP.js → VoiceButton-3i-6ju2L.js} +1 -1
  23. package/dist/assets/{historyTotals-itA00dXm.js → historyTotals-CHrIptK1.js} +1 -1
  24. package/dist/assets/{index-Cjt8B7H9.css → index-CjQ_p5y7.css} +1 -1
  25. package/dist/assets/{index-Cznhnxhq.js → index-D9qgN9_V.js} +362 -362
  26. package/dist/index.html +2 -2
  27. package/dist-web/app.css +1 -1
  28. package/dist-web/app.js +392 -392
  29. package/package.json +1 -1
  30. package/plugins/CLAUDE.md +7 -8
  31. package/plugins/session-manager-dev/.claude-plugin/plugin.json +1 -1
  32. package/plugins/session-manager-dev/skills/builder/SKILL.md +113 -91
  33. package/plugins/session-manager-dev/skills/builder/manual.md +80 -0
  34. package/plugins/session-manager-dev/skills/develop/SKILL.md +29 -56
  35. package/plugins/session-manager-dev/skills/develop/standards.md +12 -20
  36. package/plugins/session-manager-dev/skills/send-feedback/SKILL.md +13 -18
  37. package/src/main/build-info.json +4 -4
  38. package/src/main/lib/CLAUDE.md +2 -0
  39. package/src/main/lib/epic/epicTranscriptPath.cjs +5 -4
  40. package/src/main/lib/epic/restorableSessions.cjs +16 -8
  41. package/src/main/lib/persona-macro/macroJobDispatch.cjs +3 -2
  42. package/src/main/lib/persona-macro/shippedPersonaSeeds.cjs +34 -0
  43. package/src/main/lib/prd/prdFrontmatter.cjs +25 -1
  44. package/src/main/lib/scheduler/scheduleJobSchema.cjs +3 -0
  45. package/src/main/promptSessionEvents.cjs +7 -1
  46. package/src/main/runVerify.cjs +2 -2
  47. package/src/main/scheduler/prdParser.cjs +17 -1
  48. package/src/main/scheduler.cjs +137 -15
  49. package/src/main/templates/PRD_AUTHORING.md +2 -2
  50. package/src/preload/api.d.ts +8 -2
  51. package/src/seed/agents/demo-video-builder.md +25 -32
  52. package/src/seed/agents/dev-lead.md +3 -3
  53. package/src/seed/agents/project-home-builder.md +4 -2
  54. package/plugins/session-manager-dev/skills/builder/0-diff/SKILL.md +0 -44
  55. package/plugins/session-manager-dev/skills/builder/1-classify-and-bump/SKILL.md +0 -37
  56. package/plugins/session-manager-dev/skills/builder/2-gate/SKILL.md +0 -37
  57. package/plugins/session-manager-dev/skills/builder/3-publish/SKILL.md +0 -137
  58. package/plugins/session-manager-dev/skills/builder/4-manual/SKILL.md +0 -124
  59. package/plugins/session-manager-dev/skills/builder/5-report/SKILL.md +0 -35
@@ -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.