|
4 | 4 | // Blocks Edit/Write tool calls that target a fleet-canonical file |
5 | 5 | // path inside a downstream fleet repo. The fleet rule |
6 | 6 | // ("Never fork fleet-canonical files locally") says these files |
7 | | -// MUST be edited in socket-repo-template/template/... and cascaded |
| 7 | +// MUST be edited in socket-wheelhouse/template/... and cascaded |
8 | 8 | // out via sync-scaffolding — never branched locally in a downstream |
9 | 9 | // repo. Local forks turn into "drift to preserve" hacks that block |
10 | 10 | // fleet-wide improvements from reaching the forked repo. |
11 | 11 | // |
12 | 12 | // The hook detects a fleet-canonical edit by: |
13 | 13 | // 1. Resolving the absolute file path of the Edit/Write target. |
14 | | -// 2. Checking if the path is INSIDE socket-repo-template/template/ |
| 14 | +// 2. Checking if the path is INSIDE socket-wheelhouse/template/ |
15 | 15 | // → allow (this IS the canonical home). |
16 | 16 | // 3. Otherwise, checking if the path matches a fleet-canonical |
17 | 17 | // surface prefix: |
@@ -86,16 +86,16 @@ const BYPASS_PHRASE = 'Allow fleet-fork bypass' |
86 | 86 | // the no-revert-guard hook's window. |
87 | 87 | const BYPASS_LOOKBACK_USER_TURNS = 8 |
88 | 88 |
|
89 | | -// File-path tokens that identify the socket-repo-template canonical |
| 89 | +// File-path tokens that identify the socket-wheelhouse canonical |
90 | 90 | // home. If the resolved absolute path contains one of these, we're |
91 | 91 | // editing the source of truth — allow. |
92 | 92 | // |
93 | | -// `socket-repo-template/template/` covers the standard checkout shape |
94 | | -// (e.g. /Users/<user>/projects/socket-repo-template/template/...). |
| 93 | +// `socket-wheelhouse/template/` covers the standard checkout shape |
| 94 | +// (e.g. /Users/<user>/projects/socket-wheelhouse/template/...). |
95 | 95 | // `repo-template/template/` covers any rename / mirror / fork that |
96 | 96 | // keeps the trailing component. |
97 | 97 | const TEMPLATE_PATH_TOKENS = [ |
98 | | - '/socket-repo-template/template/', |
| 98 | + '/socket-wheelhouse/template/', |
99 | 99 | '/repo-template/template/', |
100 | 100 | ] |
101 | 101 |
|
@@ -267,12 +267,12 @@ async function main(): Promise<number> { |
267 | 267 | `Repo: ${path.basename(repoRoot)}`, |
268 | 268 | ``, |
269 | 269 | `Fleet-canonical files (anything tracked by`, |
270 | | - `socket-repo-template/scripts/sync-scaffolding/manifest.mts) MUST`, |
271 | | - `be edited in socket-repo-template/template/${relToRepo} and`, |
| 270 | + `socket-wheelhouse/scripts/sync-scaffolding/manifest.mts) MUST`, |
| 271 | + `be edited in socket-wheelhouse/template/${relToRepo} and`, |
272 | 272 | `cascaded out — never branched locally in a downstream fleet repo.`, |
273 | 273 | ``, |
274 | 274 | `Fix path:`, |
275 | | - ` 1. Edit socket-repo-template/template/${relToRepo}`, |
| 275 | + ` 1. Edit socket-wheelhouse/template/${relToRepo}`, |
276 | 276 | ` 2. Commit + push template`, |
277 | 277 | ` 3. Cascade with: node scripts/sync-scaffolding/main.mts \\`, |
278 | 278 | ` --target ${repoRoot} --fix`, |
|
0 commit comments