MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / pending

Function pending

__tests__/sync-synthesis-interval.test.ts:54–62  ·  view source on GitHub ↗

`synthesis_pending` as stored, read through a connection of its own.

(dir: string)

Source from the content-addressed store, hash-verified

52
53/** `synthesis_pending` as stored, read through a connection of its own. */
54function pending(dir: string): string | null {
55 const { db } = createDatabase(path.join(dir, '.codegraph', 'codegraph.db'), { readOnly: true });
56 try {
57 const row = db.prepare("SELECT value FROM project_metadata WHERE key = 'synthesis_pending'").get() as { value: string } | undefined;
58 return row?.value ?? null;
59 } finally {
60 db.close();
61 }
62}
63
64/** Every synthesized edge between functions, as `caller->callee`. */
65function synthesized(cg: CodeGraph): string[] {

Callers 2

indexedFunction · 0.70

Calls 5

createDatabaseFunction · 0.90
getMethod · 0.65
prepareMethod · 0.65
closeMethod · 0.65
joinMethod · 0.45

Tested by

no test coverage detected