pub fn compute_merge_target_install_path(
manifest: &Manifest,
artifact_type: &str,
resource_type: ResourceType,
) -> StringExpand description
Computes the installation path for a merge-target resource (Hook or McpServer).
These resources are not installed as files but are merged into configuration files. The installation path is determined by the tool’s merge target configuration or hardcoded defaults.
§Arguments
manifest- The project manifest containing tool configurationsartifact_type- The tool name (e.g., “claude-code”, “opencode”)resource_type- The resource type (Hook or McpServer)
§Returns
The normalized path to the merge target configuration file.
§Examples
use agpm_cli::core::ResourceType;
use agpm_cli::manifest::Manifest;
use agpm_cli::resolver::path_resolver::compute_merge_target_install_path;
let manifest = Manifest::new();
let path = compute_merge_target_install_path(&manifest, "claude-code", ResourceType::Hook);
assert_eq!(path, ".claude/settings.local.json");