import { i as GeneratedRuntimeManifest, o as ResolvedPiPackage } from "./types-B9VBF8le.mjs"; import { Context } from "@deepseek-ai/cordis"; //#region src/host.d.ts type UnknownRecord = Record; interface PiHostPackageSpec { /** npm package name as installed in the host bundle's node_modules. */ name: string; /** Optional per-package config forwarded to the runtime. */ config?: UnknownRecord; /** * Resolution anchor for THIS package (a package.json path). A suite's * members are its own dependencies, so under pnpm's isolated layout they * resolve from the suite package, not from the profile root. */ anchor?: string; } interface PiHostConfig { packages: Array; /** Image-admission companions: default automatic; `false` off; explicit map narrows. */ visionCompanions?: false | Record; } interface PreparedPiHostPackage { readonly name: string; readonly rootUrl: URL; readonly manifest: GeneratedRuntimeManifest; readonly config?: UnknownRecord; } /** Build a runtime manifest in place over an installed Pi package directory. */ declare function manifestForInstalled(pkg: ResolvedPiPackage): Promise; /** * Mount every configured Pi package from the host bundle's own node_modules. * Packages that fail to mount report their error and do not take down the * host or their siblings — matching Pi's own per-extension error isolation. */ declare function applyPiHost(ctx: Context, config: PiHostConfig, anchor?: string): Promise; /** Resolve installed Pi packages and build immutable manifests without mounting their runtimes. */ declare function preparePiHost(config: PiHostConfig, anchor?: string): Promise; /** * Mount prepared Pi package runtimes into one exact DSH context. * @returns per-package mount failures (empty when every package mounted) — * Pi's per-extension error isolation, consumable by bindExtensions' onError. */ declare function applyPreparedPiHost(ctx: Context, prepared: readonly PreparedPiHostPackage[], ownerAgent?: UnknownRecord, mode?: { hostAnchor?: boolean; }): Promise>; //#endregion export { PiHostConfig, PiHostPackageSpec, PreparedPiHostPackage, applyPiHost, applyPreparedPiHost, manifestForInstalled, preparePiHost }; //# sourceMappingURL=host.d.mts.map