@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.
package/package.json
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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):
|