| 12066 | } |
| 12067 | |
| 12068 | static void uninstall_omp_durable_context(const cbm_agent_registry_context_t *registry, |
| 12069 | bool dry_run) { |
| 12070 | const char *agent_dir = registry->options.omp_agent_dir && registry->options.omp_agent_dir[0] |
| 12071 | ? registry->options.omp_agent_dir |
| 12072 | : NULL; |
| 12073 | char resolved_dir[CLI_BUF_1K]; |
| 12074 | if (!agent_dir) { |
| 12075 | int written = snprintf(resolved_dir, sizeof(resolved_dir), "%s/.omp/agent", |
| 12076 | registry->options.home_dir); |
| 12077 | if (written < 0 || (size_t)written >= sizeof(resolved_dir)) { |
| 12078 | record_agent_config_error(true, "Oh My Pi (omp)", "context_resolve", "omp"); |
| 12079 | return; |
| 12080 | } |
| 12081 | agent_dir = resolved_dir; |
| 12082 | } |
| 12083 | char skills_dir[CLI_BUF_1K]; |
| 12084 | char agent_path[CLI_BUF_1K]; |
| 12085 | snprintf(skills_dir, sizeof(skills_dir), "%s/skills", agent_dir); |
| 12086 | snprintf(agent_path, sizeof(agent_path), "%s/agents/codebase-memory.md", agent_dir); |
| 12087 | uninstall_agent_skill("Oh My Pi (omp)", skills_dir, dry_run); |
| 12088 | uninstall_tiered_agent_profiles( |
| 12089 | (cbm_tiered_profile_set_t){ |
| 12090 | .label = "Oh My Pi (omp)", |
| 12091 | .verify_path = agent_path, |
| 12092 | .legacy_verify_content = legacy_omp_verify_agent_content, |
| 12093 | .dialect = CBM_GRAPH_DIALECT_OMP, |
| 12094 | }, |
| 12095 | dry_run); |
| 12096 | } |
| 12097 | |
| 12098 | static void uninstall_agent_client_registry(const char *home, bool dry_run) { |
| 12099 | cbm_agent_registry_context_t registry; |
no test coverage detected