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

Function readSmallTextFile

src/index.js:543–549  ·  view source on GitHub ↗
(filePath, maxBytes = 120_000)

Source from the content-addressed store, hash-verified

541 else
542 delete merged[key];
543 }
544 return merged;
545}
546function mergeStateJobs(baseJobs, intendedJobs, currentJobs) {
547 const byID = (jobs) => new Map((jobs || []).filter((job) => job?.id).map((job) => [job.id, job]));
548 const base = byID(baseJobs);
549 const intended = byID(intendedJobs);
550 const current = byID(currentJobs);
551 const merged = [];
552 for (const currentJob of currentJobs || []) {

Callers 2

buildGoalPromptFunction · 0.85
buildPromptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected