| 10419 | } |
| 10420 | |
| 10421 | static void uninstall_pi_durable_context(const char *home, bool dry_run) { |
| 10422 | char instructions_path[CLI_BUF_1K]; |
| 10423 | char skills_dir[CLI_BUF_1K]; |
| 10424 | snprintf(instructions_path, sizeof(instructions_path), "%s/.pi/agent/AGENTS.md", home); |
| 10425 | snprintf(skills_dir, sizeof(skills_dir), "%s/.pi/agent/skills", home); |
| 10426 | if (!dry_run && cbm_remove_managed_instructions(instructions_path) != CLI_OK) { |
| 10427 | record_agent_config_error(true, "Pi", "instructions_uninstall", instructions_path); |
| 10428 | } |
| 10429 | printf(" instructions: removed managed context\n"); |
| 10430 | uninstall_agent_skill("Pi", skills_dir, dry_run); |
| 10431 | char extension_path[CLI_BUF_1K]; |
| 10432 | snprintf(extension_path, sizeof(extension_path), "%s/.pi/agent/extensions/cbmem.ts", home); |
| 10433 | uninstall_generated_client_extension("Pi", extension_path, dry_run); |
| 10434 | } |
| 10435 | |
| 10436 | static void uninstall_managed_agent_instructions(const char *label, const char *instructions_path, |
| 10437 | bool dry_run) { |
no test coverage detected