/** * Smoke test for `contextatlas init` per v0.6 Step 4.4 (Q4.0.7 + * Q4.4.1 + Q4.4.2 locks at Step 4.0 + Step 4.4 design adjudications). * Verifies atlas extraction wired correctly by reading first symbol * from extracted atlas + invoking in-process buildBundle (atlas-only * mode per A4 lazy-spawn from Step 3.1). * * Per Q4.4.1 lock: stub adapter (NEVER_CALLED_ADAPTER) + atlasOnlyAvailable= * true + atlas-only-safe scope (intent + git only) — A4 lazy-spawn * gates adapter calls so smoke test never invokes the stub. Doctor's * deep health check (Step 3.2.a A6 sample symbol traversal) covers * LSP path separately. * * Per Q4.4.2 lock: first symbol by id from listAllSymbols * (deterministic; sorted by id; works across all language adapters). */ import type { SymbolKind } from "../types.js"; export type SmokeTestResult = { readonly status: "pass"; readonly symbolId: string; /** * Last segment of symbolId (after final ":") — used by Step 4.5 * success message for language-aware first-query suggestions * per Q4.5.4 lock at Step 4.5 surface review. */ readonly symbolName: string; /** Symbol kind (class / function / method / etc) per AtlasSymbol. */ readonly symbolKind: SymbolKind; readonly claims: number; readonly references: number; readonly durationMs: number; /** * Total atlas symbol count (from listAllSymbols result). Used * by Step 4.5 success message Setup section per Q4.5.3 lock. */ readonly atlasSymbolCount: number; } | { readonly status: "fail"; readonly reason: string; }; /** * Extract symbol name (last segment) from canonical SymbolId format * `sym:::` per ADR-01. Returns the name segment * (e.g., "BaseProcessor" from "sym:ts:src/orders/base.ts:BaseProcessor"). * * Exported for testability. */ export declare function extractSymbolName(symbolId: string): string; export interface SmokeTestOptions { readonly configRoot: string; /** Path to atlas.json relative to configRoot. */ readonly atlasPath: string; /** Path to local cache db relative to configRoot. */ readonly localCachePath: string; } /** * Run smoke test: load atlas → pick first symbol → invoke buildBundle * with atlas-only-safe scope (intent + git) → verify return. * * Helper-managed db lifecycle per Q4.4 Point 6 lock (caller doesn't * manage db open/close). */ export declare function runSmokeTest(opts: SmokeTestOptions): Promise; //# sourceMappingURL=smoke-test.d.ts.map