export interface NpmInstallResult { exitCode: number; stderr: string; stdout: string; } /** * Run `npm ci --omit=dev` in installDir. * Returns exitCode + collected stderr on failure. * Throws with installCode = BUNDLE.NPM_CI_FAILED on non-zero exit or timeout. */ export declare function runNpmCi(installDir: string): Promise; /** * Verify that dist/bundle/server.js still exists after npm install. * * Why dist/bundle/server.js (2026-04-26 Day -1 fix): * shared/contracts/envelope-v2/skill-distribution.ts BUNDLE_REQUIRED_ENTRY_FILES * declares 'dist/bundle/server.js' as the canonical entry (esbuild single-file inline * bundle). tar-extractor already validates this at extract time. This post-install * hook is a defense-in-depth re-check (catches accidental removal during npm install). * * Pre-fix bug: this checked installDir/runtime/server.js — wrong path entirely * (TS source dir, no .js file would ever exist there in production). Test fixtures * put server.js at runtime/ which masked the bug until live agent installation hit. */ export declare function verifyServerJs(installDir: string): void; //# sourceMappingURL=npm-installer.d.ts.map