| 8186 | } |
| 8187 | |
| 8188 | static void install_managed_agent_instructions(const char *label, const char *instructions_path, |
| 8189 | bool dry_run) { |
| 8190 | if (g_install_plan) { |
| 8191 | plan_record(label, "instructions", instructions_path); |
| 8192 | return; |
| 8193 | } |
| 8194 | bool installed = true; |
| 8195 | if (!dry_run && |
| 8196 | (!prepare_config_parent(instructions_path) || |
| 8197 | cbm_upsert_instructions(instructions_path, agent_instructions_content) != CLI_OK)) { |
| 8198 | installed = false; |
| 8199 | record_agent_config_error(false, label, "instructions_install", instructions_path); |
| 8200 | } |
| 8201 | if (installed) { |
| 8202 | printf(" instructions: %s\n", instructions_path); |
| 8203 | } |
| 8204 | } |
| 8205 | |
| 8206 | static void install_qoder_durable_context(const char *home, const char *binary_path, |
| 8207 | const char *settings_path, bool config_resolved, |
no test coverage detected