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

Function agent_json_owned

src/cli/agent_clients.c:1129–1138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1127}
1128
1129static bool agent_json_owned(const char *document, size_t start, size_t end,
1130 const char *canonical) {
1131 char *actual_compact = agent_json_compact(document + start, end - start);
1132 char *canonical_compact = agent_json_compact(canonical, strlen(canonical));
1133 bool equal =
1134 actual_compact && canonical_compact && strcmp(actual_compact, canonical_compact) == 0;
1135 free(actual_compact);
1136 free(canonical_compact);
1137 return equal;
1138}
1139
1140static const char *agent_json_section(cbm_agent_client_id_t id) {
1141 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