| 9975 | } |
| 9976 | |
| 9977 | static void uninstall_pi_durable_context(const char *home, bool dry_run) { |
| 9978 | char instructions_path[CLI_BUF_1K]; |
| 9979 | char skills_dir[CLI_BUF_1K]; |
| 9980 | snprintf(instructions_path, sizeof(instructions_path), "%s/.pi/agent/AGENTS.md", home); |
| 9981 | snprintf(skills_dir, sizeof(skills_dir), "%s/.pi/agent/skills", home); |
| 9982 | if (!dry_run && cbm_remove_managed_instructions(instructions_path) != CLI_OK) { |
| 9983 | record_agent_config_error(true, "Pi", "instructions_uninstall", instructions_path); |
| 9984 | } |
| 9985 | printf(" instructions: removed managed context\n"); |
| 9986 | uninstall_agent_skill("Pi", skills_dir, dry_run); |
| 9987 | char extension_path[CLI_BUF_1K]; |
| 9988 | snprintf(extension_path, sizeof(extension_path), "%s/.pi/agent/extensions/cbmem.ts", home); |
| 9989 | uninstall_generated_client_extension("Pi", extension_path, dry_run); |
| 9990 | } |
| 9991 | |
| 9992 | static void uninstall_managed_agent_instructions(const char *label, const char *instructions_path, |
| 9993 | bool dry_run) { |
no test coverage detected