| 3141 | } |
| 3142 | |
| 3143 | static const char *detect_arch(void) { |
| 3144 | #if defined(__aarch64__) || defined(_M_ARM64) |
| 3145 | return "arm64"; |
| 3146 | #else |
| 3147 | return "amd64"; |
| 3148 | #endif |
| 3149 | } |
| 3150 | |
| 3151 | /* ── Agent config install/refresh (shared by install + update) ── */ |
| 3152 |