// ---------------------------------------------------------------------------
// Error Types
// Minimal — just enough for the loop to distinguish error kinds.
// ---------------------------------------------------------------------------
export class HeddleError extends Error {
    constructor(message) {
        super(message);
        this.name = 'HeddleError';
    }
}
export class ToolExecutionError extends HeddleError {
    toolName;
    constructor(toolName, message) {
        super(`Tool "${toolName}": ${message}`);
        this.toolName = toolName;
        this.name = 'ToolExecutionError';
    }
}
export class LlmError extends HeddleError {
    constructor(message) {
        super(message);
        this.name = 'LlmError';
    }
}
export class BudgetExhaustedError extends HeddleError {
    constructor(maxSteps) {
        super(`Budget exhausted after ${maxSteps} steps`);
        this.name = 'BudgetExhaustedError';
    }
}
//# sourceMappingURL=errors.js.map