MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / executeRefinement

Method executeRefinement

out/cli.cjs:32459–32468  ·  view source on GitHub ↗
(acc)

Source from the content-addressed store, hash-verified

32457 }
32458 if (effect.type === "refinement") {
32459 const executeRefinement = (acc) => {
32460 const result = effect.refinement(acc, checkCtx);
32461 if (ctx.common.async) {
32462 return Promise.resolve(result);
32463 }
32464 if (result instanceof Promise) {
32465 throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");
32466 }
32467 return acc;
32468 };
32469 if (ctx.common.async === false) {
32470 const inner = this._def.schema._parseSync({
32471 data: ctx.data,

Callers

nothing calls this directly

Calls 1

refinementMethod · 0.80

Tested by

no test coverage detected