MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / currentContent

Method currentContent

src/orchestration/staging.ts:93–98  ·  view source on GitHub ↗

Current best-known content of a file: staged > committed > disk.

(rel: string)

Source from the content-addressed store, hash-verified

91
92 /** Current best-known content of a file: staged > committed > disk. */
93 private async currentContent(rel: string): Promise<string | null> {
94 if (this.staged.has(rel)) return this.staged.get(rel)!.content;
95 if (this.committed.has(rel)) return this.committed.get(rel)!;
96 if (this.deleted.has(rel)) return null;
97 try { return await fs.readFile(this.abs(rel), 'utf-8'); } catch { return null; }
98 }
99
100 /**
101 * Dry-run a candidate result. Stages its edits provisionally, then runs the

Callers 1

dryRunMergeMethod · 0.95

Calls 3

absMethod · 0.95
hasMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected