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

Function ha_obj_str

src/cli/hook_augment.c:131–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129/* ── JSON helpers ─────────────────────────────────────────────────── */
130
131static const char *ha_obj_str(yyjson_val *obj, const char *key) {
132 yyjson_val *v = obj ? yyjson_obj_get(obj, key) : NULL;
133 return (v && yyjson_is_str(v)) ? yyjson_get_str(v) : NULL;
134}
135
136/* Build the search_graph args JSON: {"project":..,"name_pattern":".*tok.*",
137 * "limit":N}. `token` is a pure identifier so regex embedding is safe. */

Callers 2

ha_format_contextFunction · 0.85
cbm_cmd_hook_augmentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected