Skip to content

Commit 6aba4a2

Browse files
committed
chore(wheelhouse): cascade template@cf15ef5a
Auto-applied by socket-wheelhouse sync-scaffolding into cascade-socket-bin-10507. 13 file(s) touched: - .claude/hooks/fleet/no-unmocked-network-in-tests-guard/README.md - .config/fleet/.markdownlint-cli2.jsonc - .config/fleet/oxlint-plugin/lib/fleet-paths.mts - .config/fleet/oxlintrc.json - .config/socket-wheelhouse-schema.json - CLAUDE.md - docs/claude.md/fleet/bypass-phrases.md - docs/claude.md/fleet/no-live-network-in-tests.md - scripts/fleet/check-paths/scan-code.mts - scripts/fleet/paths.mts - scripts/fleet/publish-release.mts - scripts/fleet/socket-wheelhouse-schema.mts - scripts/fleet/util/parse-args.mts
1 parent 1cd8c31 commit 6aba4a2

13 files changed

Lines changed: 174 additions & 95 deletions

File tree

.claude/hooks/fleet/no-unmocked-network-in-tests-guard/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ Type `Allow unmocked-network-in-tests bypass` verbatim in a recent message.
2828
live `api.anaconda.org` / `hub.docker.com`, timing out at 15s. Full rationale:
2929
`docs/claude.md/fleet/no-live-network-in-tests.md`.
3030

31-
Defense in depth with the fleet `test/setup.mts` (runtime `disableNetConnect()`)
31+
Defense in depth with the fleet `test/scripts/fleet/setup.mts` (runtime `disableNetConnect()`)
3232
and the CLAUDE.md rule.

.config/fleet/.markdownlint-cli2.jsonc

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.config/fleet/oxlint-plugin/lib/fleet-paths.mts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
* duplicating the path string + its rationale comment. Examples of
66
* consumers:
77
*
8-
* - `no-file-scope-oxlint-disable` exempts `scripts/paths.mts` (deliberate
9-
* flow-ordered exports, see PATHS_FILE constant below).
8+
* - `no-file-scope-oxlint-disable` exempts `scripts/fleet/paths.mts`
9+
* (deliberate flow-ordered exports, see PATHS_FILE constant below).
1010
* - `socket/prefer-cached-for-loop` and `socket/no-cached-for-on-iterable`
1111
* share `lib/iterable-kind.mts` for the binding-kind heuristic — sibling
1212
* pattern. When a new rule needs to recognize one of these path patterns,
@@ -41,7 +41,7 @@ export function isPluginInternalPath(filename: string): boolean {
4141
}
4242

4343
/**
44-
* True when `filename` points at the fleet-canonical `scripts/paths.mts`.
44+
* True when `filename` points at the fleet-canonical `scripts/fleet/paths.mts`.
4545
*/
4646
export function isPathsModule(filename: string): boolean {
4747
return filename.endsWith(PATHS_FILE)

.config/fleet/oxlintrc.json

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

.config/socket-wheelhouse-schema.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ When a regex matches against a path string, **normalize the path first** with `n
207207

208208
Never use `Bash(run_in_background: true)` for test / build commands (`vitest`, `pnpm test`, `pnpm build`, `tsgo`) — backgrounded runs you don't poll leak Node workers. Background mode is for dev servers and long migrations whose results you'll consume. Kill hangs with `pkill -f "vitest/dist/workers"`; `.claude/hooks/fleet/stale-process-sweeper/` reaps orphans on Stop. `.DS_Store` files swept at turn-end by `.claude/hooks/fleet/sweep-ds-store/` — no bypass; never wanted in a repo. When writing Bash-allowlist hooks, prefer **AST-based parsing** (via `.claude/hooks/_shared/shell-command.mts` / `findInvocation`, wraps `shell-quote`) over regex when the rule reasons about command structure — regex approves `git $(echo rm) foo.txt`; AST blocks it.
209209

210-
🚨 Tests never connect to third-party servers — mock HTTP with `nock` (`disableNetConnect()` + stubs; `registry-*.test.mts` are canonical). Fleet `test/setup.mts` fails closed; localhost stays allowed. Bypass: `Allow unmocked-network-in-tests bypass` (enforced by `.claude/hooks/fleet/no-unmocked-network-in-tests-guard/`).
210+
🚨 Tests never connect to third-party servers — mock HTTP with `nock` (`disableNetConnect()` + stubs; `registry-*.test.mts` are canonical). Fleet `test/scripts/fleet/setup.mts` fails closed; localhost stays allowed. Bypass: `Allow unmocked-network-in-tests bypass` (enforced by `.claude/hooks/fleet/no-unmocked-network-in-tests-guard/`).
211211

212212
### Judgment & self-evaluation
213213

0 commit comments

Comments
 (0)