| 7971 | } |
| 7972 | |
| 7973 | static void install_managed_agent_instructions(const char *label, const char *instructions_path, |
| 7974 | bool dry_run) { |
| 7975 | if (g_install_plan) { |
| 7976 | plan_record(label, "instructions", instructions_path); |
| 7977 | return; |
| 7978 | } |
| 7979 | bool installed = true; |
| 7980 | if (!dry_run && |
| 7981 | (!prepare_config_parent(instructions_path) || |
| 7982 | cbm_upsert_instructions(instructions_path, agent_instructions_content) != CLI_OK)) { |
| 7983 | installed = false; |
| 7984 | record_agent_config_error(false, label, "instructions_install", instructions_path); |
| 7985 | } |
| 7986 | if (installed) { |
| 7987 | printf(" instructions: %s\n", instructions_path); |
| 7988 | } |
| 7989 | } |
| 7990 | |
| 7991 | static void install_qoder_durable_context(const char *home, const char *binary_path, |
| 7992 | const char *settings_path, bool config_resolved, |
no test coverage detected