| 9565 | } |
| 9566 | |
| 9567 | static void install_omp_durable_context(const cbm_agent_registry_context_t *registry, bool force, |
| 9568 | bool dry_run) { |
| 9569 | const char *agent_dir = registry->options.omp_agent_dir && registry->options.omp_agent_dir[0] |
| 9570 | ? registry->options.omp_agent_dir |
| 9571 | : NULL; |
| 9572 | char resolved_dir[CLI_BUF_1K]; |
| 9573 | if (!agent_dir) { |
| 9574 | int written = snprintf(resolved_dir, sizeof(resolved_dir), "%s/.omp/agent", |
| 9575 | registry->options.home_dir); |
| 9576 | if (written < 0 || (size_t)written >= sizeof(resolved_dir)) { |
| 9577 | record_agent_config_error(false, "Oh My Pi (omp)", "context_resolve", "omp"); |
| 9578 | return; |
| 9579 | } |
| 9580 | agent_dir = resolved_dir; |
| 9581 | } |
| 9582 | char skills_dir[CLI_BUF_1K]; |
| 9583 | char agent_path[CLI_BUF_1K]; |
| 9584 | snprintf(skills_dir, sizeof(skills_dir), "%s/skills", agent_dir); |
| 9585 | snprintf(agent_path, sizeof(agent_path), "%s/agents/codebase-memory.md", agent_dir); |
| 9586 | install_agent_skill("Oh My Pi (omp)", skills_dir, force, dry_run); |
| 9587 | install_tiered_agent_profiles( |
| 9588 | (cbm_tiered_profile_set_t){ |
| 9589 | .label = "Oh My Pi (omp)", |
| 9590 | .verify_path = agent_path, |
| 9591 | .legacy_verify_content = legacy_omp_verify_agent_content, |
| 9592 | .dialect = CBM_GRAPH_DIALECT_OMP, |
| 9593 | }, |
| 9594 | dry_run); |
| 9595 | } |
| 9596 | |
| 9597 | static void install_agent_client_registry(const char *home, const char *binary_path, |
| 9598 | bool inherit_claude_session, bool force, bool dry_run) { |
no test coverage detected