mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-10 17:29:41 +02:00
With the sweep done, LEGACY_FIXED_PORT_FILES and its staleness test go. A second rule flags a raw listen(<number or …PORT>) and a port: with a number or …PORT constant inside listen({ … }) or new WebSocketServer({ … }); a socket path and a lower-case variable pass. CLAUDE.md, AGENTS.md, CONTRIBUTING.md and the wiki's Contributing page lose the mobile exception, and CLAUDE.md names closedPort() instead of port + 1.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1021 B
1021 B
Repository Guidelines
Canonical agent/contributor guidance for this repository lives in CLAUDE.md —
project structure, build/test/lint commands, code style, testing safety rules
(npm test is the CI gate and is safe to run bare; the three excluded suites
have their own runners), security notes, and
the deployment workflow are all maintained there. Please read it before making
changes, and keep it the single source of truth rather than duplicating
sections here.
Quick pointers:
- Type check:
tsc --noEmit· Lint:npm run lint· Format:npm run format:check - Tests:
npm test(the CI gate, safe to run bare) ornpm test -- test/<file>.test.tsfor one file - Route tests use
app.inject(); new tests needing a socket bind port 0 (new WebServer(0, …)+boundPort); mobile tests usecreateTestServer()and readserver.boundPort - Branch off
masterfor all work; Conventional Commit-style messages (fix(mobile): ...) - Never commit secrets or local state from
~/.codeman/