/** * Pure protocol helpers for the DSH adapter: operation→daemon-input mapping * and the session-start guidance snapshot renderer. Kept free of Cordis and * process dependencies so they are directly unit-testable. */ /** * A transport break after a daemon request has been sent leaves the mutation * outcome unknown: the daemon may have committed it before its response was * lost. Such a request must never be automatically replayed. */ export declare function isUncertainConnectionFailure(message: string): boolean; type CommandFailure = { code?: string; message?: string; outcome?: "known" | "unknown"; phase?: string; effect?: string; origin?: string; operation?: string; resource?: string; correlationId?: string; cause?: unknown; diagnostics?: unknown[]; }; /** Structured owner outcomes take precedence over legacy transport text. */ export declare function isUnknownCommandOutcome(error?: CommandFailure): boolean; export declare function operationFailureError(operation: string, error?: CommandFailure): Error; export declare function unknownOperationError(operation: string, primary: unknown, diagnostics?: unknown[]): Error; export declare function daemonInput(operation: string, args: Record): unknown; /** Render the session-start guidance snapshot injected at session start. * Aligns with the Codex adapter's session-start hook: consumes the full * `claw context --host dsh` payload — activeWorkflow snapshot, version-sync * notice, protocol check, search guidance, and a project fallback — so the * model gets the same recovery and startup context on DSH that Codex * receives. Host identity remains available even without recovered context. */ export declare function renderGuidanceSnapshot(context: Record | undefined): string; export {};