@cloverleaf/reference-impl 0.6.2 → 0.6.3

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.
@@ -115,6 +115,7 @@ export function prepWorktree(mainRoot, worktreePath) {
115
115
  // EEXIST on vite/node_modules/.bin on second invocation).
116
116
  primeCopy(mainStandardNm, wtStandardNm);
117
117
  primeCopy(mainRefImplNm, wtRefImplNm);
118
+ primeCopy(join(resolvedMain, 'reference-impl', 'dist'), join(worktreePath, 'reference-impl', 'dist'));
118
119
  execSync('npm run build', {
119
120
  cwd: join(worktreePath, 'standard'),
120
121
  stdio: 'pipe',
@@ -128,6 +128,7 @@ export function prepWorktree(mainRoot: string, worktreePath: string): void {
128
128
  // EEXIST on vite/node_modules/.bin on second invocation).
129
129
  primeCopy(mainStandardNm, wtStandardNm);
130
130
  primeCopy(mainRefImplNm, wtRefImplNm);
131
+ primeCopy(join(resolvedMain, 'reference-impl', 'dist'), join(worktreePath, 'reference-impl', 'dist'));
131
132
 
132
133
  execSync('npm run build', {
133
134
  cwd: join(worktreePath, 'standard'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloverleaf/reference-impl",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "description": "Reference implementation of the Cloverleaf methodology as Claude Code skills. Implements the Tight Loop (Implementer + Reviewer).",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -45,7 +45,7 @@
45
45
  "typecheck": "tsc --noEmit",
46
46
  "build": "tsc -p tsconfig.build.json && node scripts/rename-to-mjs.mjs",
47
47
  "acceptance:walker": "bash scripts/acceptance-walker.sh",
48
- "prepublishOnly": "npm test && npm run build"
48
+ "prepublishOnly": "node scripts/check-standard-prepped.mjs && npm test && npm run build"
49
49
  },
50
50
  "dependencies": {
51
51
  "@cloverleaf/standard": "^0.4.0",
@@ -7,7 +7,9 @@ description: End-to-end orchestrator. Reads task.risk_class to dispatch fast lan
7
7
 
8
8
  ## Branch discipline
9
9
 
10
- Each sub-skill runs from `main`. Between steps, confirm branch is `main` before proceeding. All sub-skills return the user to `main`.
10
+ `<repo_root>` is `$(git rev-parse --show-toplevel)` of your current working directory. In walker context (Session B inside `$WORKTREE_ROOT`), this is the worktree path, NOT the primary repo. Pass `<repo_root>` explicitly to every `cloverleaf-cli` invocation, and run `git add .cloverleaf/ && git commit` from `<repo_root>` so state-advance commits land on the worktree's current branch (`cloverleaf/<TASK-ID>` in walker mode).
11
+
12
+ Do NOT `git checkout main` from a walker worktree — main is held by the primary repo. To compare against main, use `git diff main..HEAD` or `git show main:<path>`. Sub-skills run from the worktree's current branch and stay on it; the walker (in the primary repo) does the final merge to main itself after all tasks reach final-gate.
11
13
 
12
14
  ## Per-agent bounce budget
13
15
 
@@ -178,6 +178,18 @@ description: Autonomous DAG walker for Cloverleaf Plans. Given a PLAN-ID in stat
178
178
 
179
179
  If every task in the plan's `task_dag.nodes` has `state: "merged"`, print: "✓ Plan `<PLAN-ID>` complete."
180
180
 
181
+ ## Next steps (release publishing)
182
+
183
+ Once all tasks are merged, run the following commands in order to tag and publish the release:
184
+
185
+ ```bash
186
+ git tag -a reference-impl-v<VERSION> -m "reference-impl v<VERSION>"
187
+ git push origin main
188
+ git push origin reference-impl-v<VERSION>
189
+ (cd reference-impl && npm publish --access public)
190
+ gh release create reference-impl-v<VERSION> --title "reference-impl v<VERSION>" --notes-from-tag
191
+ ```
192
+
181
193
  ## Session brief template
182
194
 
183
195
  The walker constructs a per-task `scenario_brief` roughly like:
@@ -191,6 +203,13 @@ cloverleaf/<TASK-ID> (already created from main). Task risk_class: <class>.
191
203
  working directory is the worktree root, not whatever directory the session
192
204
  inherited.**
193
205
 
206
+ **DO NOT run `git checkout main` from this worktree.** The `main` branch is
207
+ held by the primary repo — attempting to check it out here will fail because
208
+ the same branch cannot be checked out in two worktrees simultaneously. To
209
+ compare your work against main, use `git diff main..HEAD` (safe diff) or
210
+ `git show main:<path>` (safe file inspection). All state-advance commits must
211
+ stay on the worktree's current branch (`cloverleaf/<TASK-ID>`).
212
+
194
213
  Plan: invoke `/cloverleaf-run <TASK-ID>`.
195
214
 
196
215
  **DO NOT invoke `/cloverleaf-merge`**. Fast lane stops after `/cloverleaf-review`