import { type EarlyReturnMatch, type SkipMatch } from '@czap/gauntlet'; import type { CommandContext } from '../registry.js'; /** * Build the shared Node host context. Pass the adapter's `cwd` so EVERY path * capability resolves against it (manifest, cache, file reads, asset/scene * loading, CZAP_CAPSULE_MANIFEST) — not just manifest + cache. * * `skipDetector` and `earlyReturnDetector` are OPTIONAL host-built SOUND AST detectors * (`@czap/audit`'s `detectSkipsAST` / `detectEarlyReturnBeforeExpectAST`). They are * injected by the ADAPTER, not imported here: `@czap/command` must NOT depend on * `@czap/audit` (it would drag the TS compiler into `@czap/mcp-server`). So the CLI * adapter — which already deps `@czap/audit` — passes them, and the in-process * `runGauntlet` (`czap check`) gains parser-backed skip and early-return detection. The * MCP adapter omits them → the lean token fallback (the documented degradation, exactly * like `runCheckInvariants`, which is likewise CLI-only because it needs `@czap/audit`). */ export declare function createNodeCommandContext(opts?: { readonly cwd?: string; readonly skipDetector?: (source: string) => readonly SkipMatch[]; readonly earlyReturnDetector?: (source: string) => readonly EarlyReturnMatch[]; }): CommandContext; //# sourceMappingURL=context.d.ts.map