export function autoApproveHandler(request) {
    switch (request.type) {
        case 'plan_approval':
            return Promise.resolve({ action: 'approve_plan' });
        case 'tool_review':
            return Promise.resolve({ action: 'approve_tools' });
        case 'iteration_checkpoint':
            return Promise.resolve({ action: 'continue' });
        default: {
            const _exhaustive = request;
            throw new Error(`Unhandled HITL request type: ${_exhaustive.type}`);
        }
    }
}
//# sourceMappingURL=index.js.map