// Same pattern as transformers.js: a class whose instances are functions, so `await pipe({...})` calls `_call`. export class Callable extends Function { constructor() { super(); const closure = function (...args) { return closure._call(...args); }; return Object.setPrototypeOf(closure, new.target.prototype); } _call() { throw new Error("_call not implemented"); } }