(
install_dir: &Path,
tracedecay_bin: &str,
scope: InstallScope,
profile_home: &Path,
)
| 503 | } |
| 504 | |
| 505 | fn install_codex_plugin_bundle( |
| 506 | install_dir: &Path, |
| 507 | tracedecay_bin: &str, |
| 508 | scope: InstallScope, |
| 509 | profile_home: &Path, |
| 510 | ) -> Result<()> { |
| 511 | let policy = CodexBundlePolicy::for_scope(scope); |
| 512 | write_codex_plugin_bundle_base(install_dir, tracedecay_bin, policy)?; |
| 513 | install_codex_managed_skill_overlay(profile_home, install_dir)?; |
| 514 | if policy.include_memory_digest() { |
| 515 | let profile_root = |
| 516 | crate::automation::skill_targets::profile_root_for_agent_home(profile_home); |
| 517 | crate::automation::memory_digest::sync_memory_digest_export( |
| 518 | &profile_root, |
| 519 | crate::automation::skill_targets::SkillInstallTarget::Codex, |
| 520 | install_dir, |
| 521 | )?; |
| 522 | } |
| 523 | Ok(()) |
| 524 | } |
| 525 | |
| 526 | /// Export a complete shareable Codex plugin bundle with active managed skills. |
| 527 | pub fn export_codex_plugin_artifact( |
no test coverage detected