pub fn prompt_service_for_repo(repo_path: impl AsRef<Path>) -> PromptServiceExpand description
Creates a PromptService for the given repository path.
This is the canonical way to create a PromptService from MCP or CLI layers.
Configuration is loaded from the default location and merged with repo settings.
§Arguments
repo_path- Path to or within a git repository
§Returns
A fully configured PromptService with storage backends initialized.
§Example
ⓘ
use subcog::services::prompt_service_for_repo;
let service = prompt_service_for_repo("/path/to/repo")?;
let prompts = service.list(PromptFilter::new())?;