MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / on_gbuf_dump

Function on_gbuf_dump

src/cli/progress_sink.c:143–152  ·  view source on GitHub ↗

Handle gbuf.dump event — capture node/edge counts. */

Source from the content-addressed store, hash-verified

141
142/* Handle gbuf.dump event — capture node/edge counts. */
143static void on_gbuf_dump(const char *line) {
144 char n[CBM_SZ_32] = {0};
145 char e[CBM_SZ_32] = {0};
146 if (extract_kv(line, "nodes", n, (int)sizeof(n))) {
147 s_gbuf_nodes = (int)strtol(n, NULL, CBM_DECIMAL_BASE);
148 }
149 if (extract_kv(line, "edges", e, (int)sizeof(e))) {
150 s_gbuf_edges = (int)strtol(e, NULL, CBM_DECIMAL_BASE);
151 }
152}
153
154/* Handle pipeline.done event. */
155static void on_done(const char *line) {

Callers

nothing calls this directly

Calls 1

extract_kvFunction · 0.85

Tested by

no test coverage detected