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

Function agent_json_owned

src/cli/agent_clients.c:1145–1154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1143}
1144
1145static bool agent_json_owned(const char *document, size_t start, size_t end,
1146 const char *canonical) {
1147 char *actual_compact = agent_json_compact(document + start, end - start);
1148 char *canonical_compact = agent_json_compact(canonical, strlen(canonical));
1149 bool equal =
1150 actual_compact && canonical_compact && strcmp(actual_compact, canonical_compact) == 0;
1151 free(actual_compact);
1152 free(canonical_compact);
1153 return equal;
1154}
1155
1156static const char *agent_json_section(cbm_agent_client_id_t id) {
1157 if (id == CBM_AGENT_CLIENT_AMP) {

Callers 1

agent_json_editFunction · 0.85

Calls 1

agent_json_compactFunction · 0.85

Tested by

no test coverage detected