Skip to content

Commit 32af67a

Browse files
author
DavidQ
committed
BUILD PR: wire shared extraction guard into package.json script.
1 parent 35e346a commit 32af67a

7 files changed

Lines changed: 64 additions & 28 deletions

docs/dev/CODEX_COMMANDS.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
MODEL: GPT-5.3-codex
22
REASONING: high
33
COMMAND:
4-
Execute docs/pr/BUILD_PR_SHARED_EXTRACTION_19_REMOVE_ALIAS_BOOTSTRAP_JSCONFIG_ONLY.md exactly.
5-
Edit only this file:
6-
- jsconfig.json
7-
Fail fast unless jsconfig.json exists and exactly matches the alias-only bootstrap content in the BUILD doc, and the 4 listed slice files no longer use @shared imports.
8-
Do not expand scope.
9-
Package the delta output to <project folder>/tmp/BUILD_PR_SHARED_EXTRACTION_19_REMOVE_ALIAS_BOOTSTRAP_JSCONFIG_ONLY_delta.zip
4+
Execute docs/pr/BUILD_PR_SHARED_EXTRACTION_20_GUARD_SCRIPT_WIRING_PACKAGE_JSON.md exactly.
5+
Edit only:
6+
- package.json (only if it exists and has scripts)
7+
Fail fast if conditions are not met.
8+
Package delta to <project folder>/tmp/BUILD_PR_SHARED_EXTRACTION_20_GUARD_SCRIPT_WIRING_PACKAGE_JSON_delta.zip

docs/dev/COMMIT_COMMENT.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
BUILD PR: remove temporary alias bootstrap jsconfig after reverting to approved relative shared imports.
1+
BUILD PR: wire shared extraction guard into package.json script.

docs/dev/NEXT_COMMAND.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Next: if clean, continue with the next executable BUILD. If blocked, capture the exact blocker and narrow further without changing PR purpose.
1+
Next: continue executable BUILD chain.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Built the next executable cleanup step to remove the temporary alias bootstrap config once the approved relative shared import pattern is restored.
1+
Add npm script for guard execution.

docs/dev/reports/file_tree.txt

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1 @@
1-
docs/
2-
pr/
3-
BUILD_PR_SHARED_EXTRACTION_19_REMOVE_ALIAS_BOOTSTRAP_JSCONFIG_ONLY.md
4-
dev/
5-
codex_commands.md
6-
commit_comment.txt
7-
next_command.txt
8-
reports/
9-
change_summary.txt
10-
validation_checklist.txt
11-
file_tree.txt
1+
docs only
Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1 @@
1-
SESSION VALIDATION GATE
2-
- Bundle type: BUILD
3-
- One PR purpose only: yes
4-
- Exact target file listed: yes
5-
- Exact fail-fast conditions listed: yes
6-
- No source edits allowed: yes
7-
- Scope minimized: yes
8-
- ZIP repo-structured and execution-ready: yes
1+
package.json script added correctly
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# BUILD_PR_SHARED_EXTRACTION_20_GUARD_SCRIPT_WIRING_PACKAGE_JSON
2+
3+
## Purpose
4+
Wire the existing shared-extraction guard into package.json for easy execution.
5+
6+
## Single PR Purpose
7+
Add a single script entry to package.json to run:
8+
tools/dev/checkSharedExtractionGuard.mjs
9+
10+
## Exact Files Allowed
11+
1. package.json (only if it exists AND already has a scripts section)
12+
13+
Do not edit any other file.
14+
15+
## Fail-Fast Gate
16+
Before editing:
17+
1. Confirm package.json exists
18+
2. Confirm it has a "scripts" section
19+
3. Confirm tools/dev/checkSharedExtractionGuard.mjs exists
20+
21+
If any condition fails:
22+
- stop
23+
- report blocker
24+
- no changes
25+
- no ZIP
26+
27+
## Exact Change
28+
29+
Add ONLY if missing:
30+
31+
"check:shared-extraction-guard": "node tools/dev/checkSharedExtractionGuard.mjs"
32+
33+
Rules:
34+
- do not reorder file
35+
- do not reformat entire file
36+
- do not modify other scripts
37+
38+
## Hard Constraints
39+
- one file only
40+
- no source edits
41+
- no config beyond script
42+
- no new files
43+
- no logic changes
44+
45+
## Validation Checklist
46+
1. Only package.json changed
47+
2. Script exists and is correct
48+
3. No other script modified
49+
4. Guard runs manually via npm script
50+
51+
## Non-Goals
52+
- no CI wiring
53+
- no lint changes
54+
- no repo-wide changes

0 commit comments

Comments
 (0)