"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.StepRegistry = void 0;
class StepRegistry {
    constructor() {
        this.handlers = new Map();
    }
    register(op, handler) {
        if (this.handlers.has(op)) {
            throw new Error(`Step handler already registered for op: "${op}"`);
        }
        this.handlers.set(op, handler);
    }
    get(op) {
        const handler = this.handlers.get(op);
        if (!handler) {
            throw new Error(`No step handler registered for op: "${op}"`);
        }
        return handler;
    }
    has(op) {
        return this.handlers.has(op);
    }
}
exports.StepRegistry = StepRegistry;
//# sourceMappingURL=step-registry.js.map