MCPcopy Create free account
hub / github.com/ByBrawe/opencode-loop / normalizeArgsForKey

Function normalizeArgsForKey

src/index.js:464–469  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

462}
463async function delay(ms) {
464 await new Promise((resolve) => setTimeout(resolve, ms));
465}
466async function writeFileAtomically(target, contents, options = {}) {
467 const encoding = options.encoding || "utf8";
468 const attempts = Math.max(1, Number(options.attempts) || 5);
469 const temp = path.join(os.tmpdir(), `opencode-loop-${process.pid}-${Date.now()}-${Math.random().toString(16).slice(2)}.tmp`);
470 await fs.writeFile(temp, contents, encoding);
471 try {
472 let lastError;

Callers 1

commandKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected