pub fn resolve_regular_resource_path(
manifest: &Manifest,
dep: &ResourceDependency,
artifact_type: &str,
resource_type: ResourceType,
source_filename: &str,
) -> Result<String>Expand description
Resolves the installation path for regular file-based resources.
Handles agents, commands, snippets, and scripts by:
- Getting the base artifact path from tool configuration
- Applying custom target overrides if specified
- Computing the relative path based on flatten behavior
- Avoiding redundant directory prefixes
§Arguments
manifest- The project manifest containing tool configurationsdep- The resource dependency specificationartifact_type- The tool name (e.g., “claude-code”, “opencode”)resource_type- The resource type (Agent, Command, Snippet, Script)source_filename- The filename/path from the source repository
§Returns
The normalized installation path, or an error if the resource type is not supported.
§Errors
Returns an error if the resource type is not supported by the specified tool.