@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
11 lines • 529 B
TypeScript
import type { OpErrorCode } from "./types.ts";
/** An error raised by the operation layer itself; filesystem and spawn errors pass through unchanged. */
export declare class MachineOpError extends Error {
readonly code: OpErrorCode;
constructor(code: OpErrorCode, message: string, options?: {
cause?: unknown;
});
}
/** Classify any error an operation rejected with, so a wire answer can carry one code. */
export declare function opErrorCode(error: unknown): OpErrorCode;
//# sourceMappingURL=errors.d.ts.map