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

Function main_daemon_endpoint_new

src/main.c:1263–1276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1261}
1262
1263static cbm_daemon_ipc_endpoint_t *main_daemon_endpoint_new(void) {
1264 const char *runtime_parent = NULL;
1265#ifdef CBM_ENABLE_TEST_SEAMS
1266 /* Product daemon coordination is deliberately account-wide. Product-level
1267 * lifecycle guards need an isolated rendezvous namespace so they cannot
1268 * attach to or retire a developer's real daemon while exercising exact
1269 * start/open/stop behavior. The seam is opt-in at compile time and the
1270 * detached child inherits the same environment value. */
1271 char seam_runtime_parent[MAIN_PATH_CAP];
1272 runtime_parent = cbm_safe_getenv("CBM_TEST_DAEMON_RUNTIME_PARENT", seam_runtime_parent,
1273 sizeof(seam_runtime_parent), NULL);
1274#endif
1275 return cbm_daemon_bootstrap_endpoint_new(runtime_parent);
1276}
1277
1278static bool main_local_cli_feedback_enabled(int argc, char **argv) {
1279 bool requested = false;

Callers 1

mainFunction · 0.85

Calls 2

cbm_safe_getenvFunction · 0.85

Tested by

no test coverage detected