MCPcopy Create free account
hub / github.com/garrytan/gstack / buildMemorySnapshotJson

Function buildMemorySnapshotJson

browse/src/memory-command.ts:112–115  ·  view source on GitHub ↗
(bm: BrowserManager)

Source from the content-addressed store, hash-verified

110
111/** Entry point used by the /memory HTTP endpoint — same data, always JSON. */
112export async function buildMemorySnapshotJson(bm: BrowserManager): Promise<MemorySnapshot> {
113 const structures = collectStructureStats();
114 return bm.getMemorySnapshot(structures);
115}

Callers 2

makeFetchHandlerFunction · 0.85

Calls 2

collectStructureStatsFunction · 0.85
getMemorySnapshotMethod · 0.80

Tested by

no test coverage detected