/** * Bridges a discovered `SourceManifest` to the shell adapter runtime so a * packaged/installed source is enabled with `{ kind: "" }` alone. The * synthetic adapter's `kind` is the manifest name; its config schema accepts * light overrides (`name`, `env`, `timeouts`, `enabled`) that merge over the * manifest defaults. Full command control stays with the generic `kind:"shell"` * adapter. `create` materializes the scripts (idempotent) before building the * TaskSource, so enabling a source is also what installs it. */ import type { AdapterDefinition, AdapterMeta, AdapterOrigin } from "../../adapterDefinition.ts"; import { type SourceManifest } from "./manifest.ts"; import type { ShellAdapterConfig } from "./schema.ts"; export interface ManifestOverrides { name?: string | undefined; env?: Record | undefined; timeouts?: ShellAdapterConfig["timeouts"] | undefined; } export declare function shellConfigFromManifest(manifest: SourceManifest, overrides?: ManifestOverrides): ShellAdapterConfig; /** * Descriptive metadata for the unified catalog, derived from the manifest. A * source `requiresCredentials` when it declares any `secrets`; `origin` is where * discovery found it (bundled `package` vs. user-installed `user`). */ export declare function manifestMeta(manifest: SourceManifest, origin: AdapterOrigin): AdapterMeta; export declare function manifestAdapter(manifest: SourceManifest, manifestDir: string, origin: AdapterOrigin): AdapterDefinition; //# sourceMappingURL=manifestAdapter.d.ts.map