/** * Shell-adapter `TaskSource` factory. Wires `invokeShellCommand` to the * TaskSource operations and applies the ShellIssue Zod schema for runtime * validation of script stdout. * * Fallback behavior for omitted commands: * - `verify` absent → no-op (always succeeds). * - `resolveOne` absent → invoke `fetch` and scan its result for the natural * id. This means each fallback resolveOne pays a full fetch — fine for * most CLI use (crew setup is rare) but users with expensive fetch * commands should configure `resolveOne` explicitly. No cross-call cache * in MVP-2. * - `markInProgress` absent → silent no-op. * - `markInReview` absent → reports unsupported. * - `markDone` absent → reports unsupported. * - `createTask` absent → method omitted entirely (source reports it cannot * create tasks; the optional method is attached only when configured). * - `validate` absent → method omitted entirely (same capability-detection * contract as createTask). * - `fetch` is required by the Zod schema. */ import type { AdapterContext } from "../../adapterDefinition.ts"; import { type Issue as CanonicalIssue, type TaskSource } from "../../taskSource.ts"; import { type ShellAdapterConfig, type ShellIssue } from "./schema.ts"; export declare function toCanonicalIssue(shellIssue: ShellIssue, sourceName: string): CanonicalIssue; export declare function createShellTaskSource(config: ShellAdapterConfig, _context: AdapterContext): TaskSource; //# sourceMappingURL=factory.d.ts.map