| 8045 | } |
| 8046 | |
| 8047 | static bool cbm_devin_user_dir(const cbm_agent_registry_context_t *registry, char *path, |
| 8048 | size_t path_size) { |
| 8049 | const char *base = registry->options.home_dir; |
| 8050 | const char *suffix = ".config/devin"; |
| 8051 | if (registry->options.is_windows && registry->options.appdata_dir && |
| 8052 | registry->options.appdata_dir[0]) { |
| 8053 | base = registry->options.appdata_dir; |
| 8054 | suffix = "devin"; |
| 8055 | } |
| 8056 | int written = snprintf(path, path_size, "%s/%s", base, suffix); |
| 8057 | return written > 0 && (size_t)written < path_size; |
| 8058 | } |
| 8059 | |
| 8060 | static void install_gitlab_durable_context(const cbm_agent_registry_context_t *registry, |
| 8061 | const char *binary_path, bool dry_run) { |
no outgoing calls
no test coverage detected