pub fn install_amp_plugin(project_root: Option<&Path>) -> Result<PathBuf>Expand description
Install the TraceVault Amp plugin as tracevault/index.ts in an Amp
plugins directory: <project_root>/.amp/plugins/ for a repo, or with
None the user-level one Amp loads for every session,
$XDG_CONFIG_HOME/amp/plugins/ or ~/.config/amp/plugins/. Amp uses
that XDG path on every platform, so this does not use dirs::config_dir
(which is ~/Library/Application Support on macOS). Returns the path
written. Fails loudly, like the other agents’ installers: a swallowed
error would report success with no plugin in place.