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

Function presetDefaults

src/index.js:498–512  ·  view source on GitHub ↗
(name, args)

Source from the content-addressed store, hash-verified

496 await delay(25 * (attempt + 1));
497 }
498 }
499 try {
500 await fs.writeFile(target, contents, encoding);
501 return;
502 } catch (error) {
503 if (lastError && !error.cause)
504 error.cause = lastError;
505 throw error;
506 }
507 } finally {
508 try {
509 await fs.rm(temp, { force: true });
510 } catch {}
511 }
512}
513function stateValuesEqual(left, right) {
514 if (Object.is(left, right))
515 return true;

Callers 1

handleCommandFunction · 0.85

Calls 2

splitFirstFunction · 0.85
parseDurationFunction · 0.85

Tested by

no test coverage detected