/** * Remote runtime bundle (3.0.0 cross-host bridge). * * Builds a reproducible, content-addressed, self-contained runtime bundle from * the CURRENT checkout. The bundle is a directory tree (compiled workspace dist * + hoisted third-party node_modules) tarballed into one payload. Identity is * the tarball SHA-256: `runtimeId = -`. * * The bundle is code/runtime only. It never contains Qwen weights, llama.cpp, * API keys, or Evidence content. */ export declare const RUNTIME_BUNDLE_SCHEMA_VERSION: 1; /** Remote-runtime handshake protocol version. */ export declare const RUNTIME_PROTOCOL_VERSION: 1; export interface RuntimeBundleFile { path: string; sha256: string; bytes: number; } export interface RuntimeBundleManifest { schemaVersion: typeof RUNTIME_BUNDLE_SCHEMA_VERSION; runtimeId: string; jensenCommit: string; runtimeProtocolVersion: typeof RUNTIME_PROTOCOL_VERSION; /** Shared-inference admission protocol version this runtime speaks. */ sharedInferenceProtocolVersion: number; packageVersions: Record; /** Content-address of the transfer payload (tarball SHA-256). */ tarballHash: string; /** Audit list of the workspace dist files (not the third-party closure). */ workspaceFiles: RuntimeBundleFile[]; } /** * Non-circular identity written INSIDE the tarball so a remote runtime can be * verified after extraction without a separate sidecar write (which races with * Windows file-handle release + Defender scanning). */ export interface RuntimeBundleIdentity { schemaVersion: typeof RUNTIME_BUNDLE_SCHEMA_VERSION; jensenCommit: string; runtimeProtocolVersion: typeof RUNTIME_PROTOCOL_VERSION; sharedInferenceProtocolVersion: number; packageVersions: Record; } export interface RuntimeBundlePackage { /** Directory name under packages/, e.g. "ai". */ dir: string; /** npm name, e.g. "@apholdings/jensen-ai". */ npmName: string; /** package.json version, read during build. */ version?: string; } export interface BuiltRuntimeBundle { tarballPath: string; manifestPath: string; runtimeId: string; tarballHash: string; jensenCommit: string; commitShort: string; manifest: RuntimeBundleManifest; identity: RuntimeBundleIdentity; } export interface BuildRuntimeBundleOptions { checkoutRoot: string; outDir: string; packages?: RuntimeBundlePackage[]; jensenCommit?: string; sharedInferenceProtocolVersion?: number; } /** * Build the runtime bundle + sidecar manifest. The third-party `node_modules` * closure is copied whole (self-contained; no reliance on the target's global * install). The workspace `@apholdings` packages are the freshly-built dist. */ export declare function buildRuntimeBundle(options: BuildRuntimeBundleOptions): Promise; //# sourceMappingURL=runtime-bundle.d.ts.map