MCPcopy
hub / github.com/Doorman11991/smallcode / read

Method read

src/session/bootstrap.js:65–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63 const cwd = this.workdir;
64 const exists = f => { try { return fs.existsSync(path.join(cwd, f)); } catch { return false; } };
65 const read = f => { try { return fs.readFileSync(path.join(cwd, f), 'utf-8'); } catch { return ''; } };
66 const readJson = f => { try { return JSON.parse(read(f)); } catch { return null; } };
67
68 const parts = {};

Callers 3

streamFinalResponseFunction · 0.45
sendToModelFunction · 0.45
streamFinalResponseFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected