"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.registerLogStep = registerLogStep;
function registerLogStep(registry) {
    registry.register("util.log", async (_ctx, step) => {
        const input = (step.with ?? {});
        if (!input.message) {
            throw new Error('Missing "message" in step.with for op "util.log"');
        }
        if (input.data !== undefined) {
            console.log(input.message, input.data);
        }
        else {
            console.log(input.message);
        }
    });
}
//# sourceMappingURL=log.step.js.map