mirror of
https://github.com/DeusData/codebase-memory-mcp.git
synced 2026-11-07 08:43:35 +08:00
risk_labels: adds CRITICAL/HIGH/MEDIUM/LOW classification to BFS results based on hop distance. Opt-in via risk_labels=true. --progress: human-readable indexing progress on stderr. Log sink replaces default output, maps pipeline events to [1/9]..[9/9] phases. Co-Authored-By: halindrome <halindrome@users.noreply.github.com> Co-Authored-By: gdilla <gdilla@users.noreply.github.com>
20 lines
478 B
C
20 lines
478 B
C
/*
|
|
* progress_sink.h — Human-readable progress output for --progress CLI flag.
|
|
*
|
|
* Installs a log sink that maps structured pipeline events to phase labels.
|
|
* Usage:
|
|
* cbm_progress_sink_init(stderr);
|
|
* // ... run pipeline ...
|
|
* cbm_progress_sink_fini();
|
|
*/
|
|
#ifndef CBM_PROGRESS_SINK_H
|
|
#define CBM_PROGRESS_SINK_H
|
|
|
|
#include <stdio.h>
|
|
|
|
void cbm_progress_sink_init(FILE *out);
|
|
void cbm_progress_sink_fini(void);
|
|
void cbm_progress_sink_fn(const char *line);
|
|
|
|
#endif
|