MCPcopy
hub / github.com/callstack/agent-device / readDaemonInfo

Function readDaemonInfo

test/integration/smoke-daemon-http.test.ts:64–67  ·  view source on GitHub ↗
(stateDir: string)

Source from the content-addressed store, hash-verified

62});
63
64function readDaemonInfo(stateDir: string): DaemonInfo {
65 const infoPath = path.join(stateDir, 'daemon.json');
66 return JSON.parse(fs.readFileSync(infoPath, 'utf8')) as DaemonInfo;
67}
68
69async function callCommandRpc(
70 info: DaemonInfo,

Callers 2

stopDaemonForStateDirFunction · 0.70

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected