/** * package-smoke (CUT A5) — the release-grade pack/install/import smoke as a * finite, structured command (migrated from `scripts/package-smoke.ts`). It fails * when a publishable `@czap/*` scope would ship broken: a tarball that won't pack, * a `workspace:` protocol leaked into a packed manifest, a consumer install that * doesn't materialize the package, an import specifier that won't resolve, or a * `czap` binstub that won't run. * * The engine (per-package `pnpm pack`, `pnpm install` into an isolated consumer * fixture, `tar` extraction, `node` import-smoke) is INJECTED via * `context.runPackageSmoke`, never imported here, so `@czap/command` (and the MCP * server that re-uses it) stays free of the subprocess/child_process edge. Unlike * `plumb`/`check-invariants` (whose scans are pure `node:fs` and are provisioned * in the shared host factory), this gate is a terminal-streaming SUBPROCESS * orchestrator — minutes of `pnpm pack`/`install`/`tar`/`node` mutating a scratch * tree — in the same category as `gauntlet`/`ship`. So like `audit-floor` it is * CLI-only and NOT MCP-exposed: only `@czap/cli` injects `runPackageSmoke`, and * over MCP the command degrades to a structured `capabilityUnavailable` failure. * * @module */ import { Schema } from 'effect'; import { type HandledCommand } from '../registry.js'; /** * Structured payload returned by `package-smoke` — ONE Effect Schema is the * source of both {@link PackageSmokePayload} and the descriptor's `outputSchema`. */ export declare const PackageSmokePayloadSchema: Schema.Struct<{ readonly ok: Schema.Boolean; /** Number of `@czap/*` (+ unscoped) scopes packed via `pnpm pack`. */ readonly packagesPacked: Schema.Number; /** Number of module specifiers the import-smoke resolved (0 when it never ran). */ readonly importsSmoked: Schema.Number; /** The bracketed step label of the first failure, or null on success. */ readonly failedStep: Schema.NullOr; /** The failure message of the first failure, or null on success. */ readonly failure: Schema.NullOr; }>; /** Structured payload returned by `package-smoke`. */ export type PackageSmokePayload = Schema.Schema.Type; /** `package-smoke` — pack/install/import-smoke every publishable scope; emit a structured pass/fail verdict. */ export declare const packageSmokeCommand: HandledCommand; //# sourceMappingURL=package-smoke.d.ts.map