Skip to content

Commit 7a02534

Browse files
author
DavidQ
committed
BUILD PR: add simple script to run shared extraction guard.
1 parent c58d3e8 commit 7a02534

6 files changed

Lines changed: 40 additions & 7 deletions

File tree

docs/dev/CODEX_COMMANDS.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
MODEL: GPT-5.3-codex
22
REASONING: high
33
COMMAND:
4-
Execute docs/pr/BUILD_PR_SHARED_EXTRACTION_21_OPTIONAL_NPM_PREHOOK_GUARD.md exactly.
5-
Edit only package.json under defined rules.
6-
Fail fast if conditions not met.
7-
Package delta to <project folder>/tmp/BUILD_PR_SHARED_EXTRACTION_21_OPTIONAL_NPM_PREHOOK_GUARD_delta.zip
4+
Execute docs/pr/BUILD_PR_SHARED_EXTRACTION_22_ADD_GUARD_RUN_SCRIPT.md exactly.
5+
Create only:
6+
- tools/dev/runSharedExtractionGuard.sh
7+
Do not expand scope.
8+
Package delta to <project folder>/tmp/BUILD_PR_SHARED_EXTRACTION_22_ADD_GUARD_RUN_SCRIPT_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: optional npm prehook for shared extraction guard.
1+
BUILD PR: add simple script to run shared extraction guard.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Optional guard auto-run via npm prehooks.
1+
Adds simple guard runner script.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
prehook added correctly
1+
script added correctly
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# BUILD_PR_SHARED_EXTRACTION_22_ADD_GUARD_RUN_SCRIPT
2+
3+
## Purpose
4+
Provide a simple cross-platform way to execute the shared-extraction guard without relying on npm scripts.
5+
6+
## Single PR Purpose
7+
Create a single script:
8+
9+
tools/dev/runSharedExtractionGuard.sh
10+
11+
## Exact Files Allowed
12+
1. tools/dev/runSharedExtractionGuard.sh (new file)
13+
14+
## Exact File Content
15+
16+
```bash
17+
#!/usr/bin/env bash
18+
node tools/dev/checkSharedExtractionGuard.mjs
19+
```
20+
21+
## Rules
22+
- no other files
23+
- no logic changes
24+
- no npm dependency
25+
- no config changes
26+
27+
## Validation
28+
1. file exists
29+
2. script runs guard
30+
3. no other files changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env bash
2+
node tools/dev/checkSharedExtractionGuard.mjs

0 commit comments

Comments
 (0)