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

Function cbm_tree_table_header

src/mcp/compact_out.c:394–405  ·  view source on GitHub ↗

Tree-syntax table header: `key: N (cols: a b c)` — count first (agents * read scale before rows), column names once, rows indented beneath. */

Source from the content-addressed store, hash-verified

392/* Tree-syntax table header: `key: N (cols: a b c)` — count first (agents
393 * read scale before rows), column names once, rows indented beneath. */
394void cbm_tree_table_header(cbm_sb_t *sb, const char *key, int n, const char *const *cols,
395 int ncols) {
396 char num[32];
397 snprintf(num, sizeof(num), ": %d (cols:", n);
398 append_key(sb, key);
399 cbm_sb_append(sb, num);
400 for (int i = 0; i < ncols; i++) {
401 cbm_sb_append_n(sb, " ", 1);
402 append_key(sb, cols[i]);
403 }
404 cbm_sb_append_n(sb, ")\n", 2);
405}
406
407void cbm_tree_row_begin(cbm_sb_t *sb) {
408 cbm_sb_append_n(sb, " ", 2);

Callers 15

handle_list_projectsFunction · 0.85
bm25_renderFunction · 0.85
handle_get_architectureFunction · 0.85
bfs_to_toon_tableFunction · 0.85
file_doc_candidates_treeFunction · 0.85
handle_get_file_outlineFunction · 0.85

Calls 3

append_keyFunction · 0.85
cbm_sb_appendFunction · 0.85
cbm_sb_append_nFunction · 0.85

Tested by

no test coverage detected