@windyroad/retrospective 0.12.2-preview.254 → 0.12.3-preview.257

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.
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "wr-retrospective",
3
- "version": "0.12.2",
3
+ "version": "0.12.3",
4
4
  "description": "Session retrospective reminders and plan review for Claude Code"
5
5
  }
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env bash
2
+ exec "$(dirname "$0")/../scripts/measure-context-budget.sh" "$@"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windyroad/retrospective",
3
- "version": "0.12.2-preview.254",
3
+ "version": "0.12.3-preview.257",
4
4
  "description": "Session retrospectives that update briefings and create problem tickets",
5
5
  "bin": {
6
6
  "windyroad-retrospective": "./bin/install.mjs"
@@ -42,9 +42,11 @@ If the script is missing or not executable, halt with a directive: *"measure-con
42
42
  Invoke the script to capture the canonical per-source-bucket byte totals. Identical contract to run-retro Step 2c:
43
43
 
44
44
  ```bash
45
- bash packages/retrospective/scripts/measure-context-budget.sh "${CLAUDE_PROJECT_DIR:-.}"
45
+ wr-retrospective-measure-context-budget "${CLAUDE_PROJECT_DIR:-.}"
46
46
  ```
47
47
 
48
+ The `wr-retrospective-measure-context-budget` command is a `$PATH`-resolved shim shipped in `packages/retrospective/bin/` that dispatches the canonical `packages/retrospective/scripts/measure-context-budget.sh` body. ADR-049 — never invoke the canonical script via repo-relative path; the path does not resolve in adopter trees.
49
+
48
50
  The output is the deep layer's baseline. Parse each `BUCKET <name> bytes=<N>` row into a structured map; preserve `BUCKET <name> not-measured reason=<reason>` rows verbatim — the sentinels carry into the report unchanged.
49
51
 
50
52
  ### 2. Decompose per-plugin attribution
@@ -176,9 +176,11 @@ Per **ADR-043** (Progressive context-usage measurement and reporting for retrosp
176
176
  1. **Invoke the diagnostic script**:
177
177
 
178
178
  ```bash
179
- bash packages/retrospective/scripts/measure-context-budget.sh "${CLAUDE_PROJECT_DIR:-.}"
179
+ wr-retrospective-measure-context-budget "${CLAUDE_PROJECT_DIR:-.}"
180
180
  ```
181
181
 
182
+ The `wr-retrospective-measure-context-budget` command is a `$PATH`-resolved shim shipped in `packages/retrospective/bin/` that dispatches the canonical `packages/retrospective/scripts/measure-context-budget.sh` body. ADR-049 — never invoke the canonical script via repo-relative path; the path does not resolve in adopter trees.
183
+
182
184
  The script is read-only, exits 0 on advisory output and 2 on parse error (project root missing). It emits one row per bucket: `BUCKET <name> bytes=<N>` for measured surfaces, `BUCKET <name> not-measured reason=<reason>` for absent or framework-injected surfaces, plus a trailing `THRESHOLD bytes=<N>` row for the configurable ceiling. See `packages/retrospective/scripts/test/measure-context-budget.bats` for the exact contract.
183
185
 
184
186
  2. **Read the prior snapshot** (when present):