Skip to content

Commit 10a82c8

Browse files
committed
chore(wheelhouse): cascade template@c3b4cc0c
Auto-applied by socket-wheelhouse sync-scaffolding into socket-bin. 153 file(s) touched: - .claude/commands/fleet/update-coverage.md - .claude/hooks/fleet/no-file-scope-oxlint-disable-guard/README.md - .claude/hooks/fleet/no-file-scope-oxlint-disable-guard/index.mts - .claude/hooks/fleet/no-fleet-fork-guard/README.md - .claude/hooks/fleet/no-fleet-fork-guard/index.mts - .claude/hooks/fleet/no-fleet-fork-guard/test/index.test.mts - .claude/hooks/fleet/no-underscore-identifier-guard/README.md - .claude/hooks/fleet/no-underscore-identifier-guard/index.mts - .claude/hooks/fleet/prefer-async-spawn-guard/index.mts - .claude/hooks/fleet/prefer-async-spawn-guard/test/index.test.mts - .claude/hooks/fleet/prefer-function-declaration-guard/index.mts - .claude/hooks/fleet/prefer-function-declaration-guard/test/index.test.mts - .claude/hooks/fleet/readme-fleet-shape-guard/README.md - .claude/hooks/fleet/readme-fleet-shape-guard/index.mts - .claude/settings.json - .claude/skills/fleet/regenerating-plugin-patches/SKILL.md - .claude/skills/fleet/rule-pack-migrations/SKILL.md - .claude/skills/fleet/scanning-quality/scans/deadcode-removal.md - .claude/skills/fleet/trimming-bundle/SKILL.md - .config/fleet/markdownlint-rules/_shared/wheelhouse-self-skip.mts ... and 133 more
1 parent 4e309db commit 10a82c8

153 files changed

Lines changed: 16855 additions & 97 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.claude/commands/fleet/update-coverage.md

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.claude/hooks/fleet/no-file-scope-oxlint-disable-guard/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ File-scope disables (without `-next-line`) silently exempt every line of the fil
1717

1818
## Exemptions
1919

20-
Files under `.config/oxlint-plugin/rules/` and `.config/oxlint-plugin/test/` may file-scope-disable their own rule (the banned shape is lookup-table data in the rule definition or test fixture).
20+
Files under `.config/fleet/oxlint-plugin/rules/` and `.config/fleet/oxlint-plugin/test/` may file-scope-disable their own rule (the banned shape is lookup-table data in the rule definition or test fixture).
2121

2222
## Disabling
2323

.claude/hooks/fleet/no-file-scope-oxlint-disable-guard/index.mts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
// // oxlint-disable-next-line <rule> (line, per call)
2222
// /* oxlint-enable <rule> */ (re-enables; pairs with disables)
2323
//
24-
// Exemption: files under `.config/oxlint-plugin/rules/` and
25-
// `.config/oxlint-plugin/test/` are allowed to file-scope-disable
24+
// Exemption: files under `.config/fleet/oxlint-plugin/rules/` and
25+
// `.config/fleet/oxlint-plugin/test/` are allowed to file-scope-disable
2626
// their own rule (the banned shape is lookup-table data in the rule
2727
// definition or in test fixtures).
2828
//
@@ -50,8 +50,8 @@ const FILE_SCOPE_DISABLE_RE =
5050
// Plugin-internal rule + test files are exempt — the banned shape is
5151
// lookup-table data in the rule definition or test fixture.
5252
const EXEMPT_PATH_SUFFIXES: readonly string[] = [
53-
'.config/oxlint-plugin/rules/',
54-
'.config/oxlint-plugin/test/',
53+
'.config/fleet/oxlint-plugin/rules/',
54+
'.config/fleet/oxlint-plugin/test/',
5555
]
5656

5757
interface Finding {

.claude/hooks/fleet/no-fleet-fork-guard/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The fleet rule "Never fork fleet-canonical files locally" (CLAUDE.md fleet block
88

99
Fleet-canonical surfaces (anything tracked by `socket-wheelhouse/scripts/sync-scaffolding/manifest.mts`):
1010

11-
- `.config/oxlint-plugin/` — oxlint plugin index + rules
11+
- `.config/fleet/oxlint-plugin/` — oxlint plugin index + rules
1212
- `.git-hooks/` — commit-msg / pre-commit / pre-push entry shims + .mts helpers (git invokes the shims when `core.hooksPath` is set to this directory)
1313
- `.claude/hooks/` — PreToolUse / PostToolUse hooks
1414
- `.claude/skills/_shared/` — shared skill helpers

.claude/hooks/fleet/no-fleet-fork-guard/index.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
// → allow (this IS the canonical home).
1616
// 3. Otherwise, checking if the path matches a fleet-canonical
1717
// surface prefix:
18-
// - .config/oxlint-plugin/
18+
// - .config/fleet/oxlint-plugin/
1919
// - .git-hooks/
2020
// - .claude/hooks/
2121
// - .claude/skills/_shared/
@@ -66,7 +66,7 @@ type ToolInput = {
6666
// Order matters for nested prefixes (more-specific first), but these
6767
// are all leaves — no nesting between them.
6868
const CANONICAL_PREFIXES = [
69-
'.config/oxlint-plugin/',
69+
'.config/fleet/oxlint-plugin/',
7070
'.git-hooks/',
7171
'.claude/hooks/',
7272
'.claude/skills/_shared/',

.claude/hooks/fleet/no-fleet-fork-guard/test/index.test.mts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ test('Edit on a canonical path outside a fleet repo passes', async () => {
113113
// Tmp dir without CLAUDE.md → the walk-up never finds a fleet root.
114114
const dir = mkdtempSync(path.join(os.tmpdir(), 'non-fleet-'))
115115
try {
116-
const file = path.join(dir, '.config/oxlint-plugin/rules/foo.mts')
116+
const file = path.join(dir, '.config/fleet/oxlint-plugin/rules/foo.mts')
117117
mkdirSync(path.dirname(file), { recursive: true })
118118
writeFileSync(file, '// content\n')
119119
const result = await runHook({
@@ -126,12 +126,12 @@ test('Edit on a canonical path outside a fleet repo passes', async () => {
126126
}
127127
})
128128

129-
test('Edit on .config/oxlint-plugin/rules/* in a fleet repo is BLOCKED', async () => {
129+
test('Edit on .config/fleet/oxlint-plugin/rules/* in a fleet repo is BLOCKED', async () => {
130130
const repo = makeFakeFleetRepo()
131131
try {
132132
const file = makeCanonicalFile(
133133
repo,
134-
'.config/oxlint-plugin/rules/example.mts',
134+
'.config/fleet/oxlint-plugin/rules/example.mts',
135135
)
136136
const result = await runHook({
137137
tool_input: { file_path: file, new_string: 'x' },
@@ -211,7 +211,7 @@ test('Write tool also blocked, not just Edit', async () => {
211211
try {
212212
const file = makeCanonicalFile(
213213
repo,
214-
'.config/oxlint-plugin/rules/new-rule.mts',
214+
'.config/fleet/oxlint-plugin/rules/new-rule.mts',
215215
)
216216
const result = await runHook({
217217
tool_input: { file_path: file, content: 'export default {}' },
@@ -226,7 +226,7 @@ test('Write tool also blocked, not just Edit', async () => {
226226
test('MultiEdit tool also blocked', async () => {
227227
const repo = makeFakeFleetRepo()
228228
try {
229-
const file = makeCanonicalFile(repo, '.config/oxlint-plugin/rules/foo.mts')
229+
const file = makeCanonicalFile(repo, '.config/fleet/oxlint-plugin/rules/foo.mts')
230230
const result = await runHook({
231231
tool_input: { file_path: file, edits: [] },
232232
tool_name: 'MultiEdit',
@@ -242,7 +242,7 @@ test('repo without FLEET-CANONICAL marker passes through', async () => {
242242
// sees CLAUDE.md but no marker, so the path doesn't qualify.
243243
const repo = makeFakeFleetRepo({ hasFleetCanonical: false })
244244
try {
245-
const file = makeCanonicalFile(repo, '.config/oxlint-plugin/rules/x.mts')
245+
const file = makeCanonicalFile(repo, '.config/fleet/oxlint-plugin/rules/x.mts')
246246
const result = await runHook({
247247
tool_input: { file_path: file, new_string: 'x' },
248248
tool_name: 'Edit',

.claude/hooks/fleet/no-underscore-identifier-guard/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ adds noise to `git blame` and IDE autocomplete.
3434
## See also
3535

3636
- CLAUDE.md → "No underscore-prefixed identifiers"
37-
- `.config/oxlint-plugin/rules/no-underscore-identifier.mts` (commit-time
37+
- `.config/fleet/oxlint-plugin/rules/no-underscore-identifier.mts` (commit-time
3838
partner of this edit-time hook)

.claude/hooks/fleet/no-underscore-identifier-guard/index.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,9 @@ export function isPluginOrHookTestPath(filePath: string): boolean {
143143
return (
144144
filePath.includes('/.claude/hooks/fleet/no-underscore-identifier-guard/') ||
145145
filePath.includes(
146-
'/.config/oxlint-plugin/rules/no-underscore-identifier.',
146+
'/.config/fleet/oxlint-plugin/rules/no-underscore-identifier.',
147147
) ||
148-
filePath.includes('/.config/oxlint-plugin/test/no-underscore-identifier')
148+
filePath.includes('/.config/fleet/oxlint-plugin/test/no-underscore-identifier')
149149
)
150150
}
151151

.claude/hooks/fleet/prefer-async-spawn-guard/index.mts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,16 @@ export function isExemptPath(filePath: string): boolean {
6464
filePath.includes('/build/') ||
6565
filePath.includes('/node_modules/') ||
6666
filePath.includes('/.claude/hooks/fleet/prefer-async-spawn-guard/') ||
67-
filePath.includes('/.config/oxlint-plugin/rules/prefer-async-spawn.') ||
67+
filePath.includes('/.config/fleet/oxlint-plugin/rules/prefer-async-spawn.') ||
6868
filePath.includes(
69-
'/.config/oxlint-plugin/rules/prefer-spawn-over-execsync.',
69+
'/.config/fleet/oxlint-plugin/rules/prefer-spawn-over-execsync.',
7070
) ||
71-
filePath.includes('/.config/oxlint-plugin/test/prefer-async-spawn') ||
71+
filePath.includes('/.config/fleet/oxlint-plugin/test/prefer-async-spawn') ||
7272
filePath.includes(
73-
'/.config/oxlint-plugin/test/prefer-spawn-over-execsync',
73+
'/.config/fleet/oxlint-plugin/test/prefer-spawn-over-execsync',
7474
) ||
7575
filePath.includes(
76-
'/.config/markdownlint-rules/_shared/wheelhouse-self-skip.',
76+
'/.config/fleet/markdownlint-rules/_shared/wheelhouse-self-skip.',
7777
)
7878
)
7979
}

.claude/hooks/fleet/prefer-async-spawn-guard/test/index.test.mts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ describe('prefer-async-spawn-guard / isExemptPath', () => {
6969
test('exempts the hook + rule + self-skip files', () => {
7070
for (const p of [
7171
'/repo/.claude/hooks/fleet/prefer-async-spawn-guard/index.mts',
72-
'/repo/.config/oxlint-plugin/rules/prefer-async-spawn.mts',
73-
'/repo/.config/oxlint-plugin/rules/prefer-spawn-over-execsync.mts',
74-
'/repo/.config/markdownlint-rules/_shared/wheelhouse-self-skip.mjs',
72+
'/repo/.config/fleet/oxlint-plugin/rules/prefer-async-spawn.mts',
73+
'/repo/.config/fleet/oxlint-plugin/rules/prefer-spawn-over-execsync.mts',
74+
'/repo/.config/fleet/markdownlint-rules/_shared/wheelhouse-self-skip.mjs',
7575
'/repo/dist/foo.js',
7676
'/repo/node_modules/x/y.js',
7777
]) {

0 commit comments

Comments
 (0)