mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-06-14 09:11:54 +00:00
Support installing a plugin that lives in a subdirectory of a larger repo (docs/tests at root, plugin in a subdir) without forcing a dedicated single-plugin repo. Identifier syntax: owner/repo/path/to/plugin (shorthand + subpath) <url>.git/path/to/plugin (.git boundary on GitHub-style URLs) <url>#path/to/plugin (explicit fragment, any scheme) _resolve_git_url now returns (git_url, subdir); _install_plugin_core reads the manifest from and moves only the subdir, so root-level docs and tests no longer leak into ~/.hermes/plugins. _resolve_subdir_within guards against path traversal, missing dirs, and non-directories. Both the CLI (hermes plugins install) and the dashboard install endpoint inherit this for free since they share _install_plugin_core. Dashboard install hint + placeholder updated to advertise the subdir syntax. Co-authored-by: Austin Pickett <pickett.austin@gmail.com> |
||
|---|---|---|
| .. | ||
| af.ts | ||
| context.tsx | ||
| de.ts | ||
| en.ts | ||
| es.ts | ||
| fr.ts | ||
| ga.ts | ||
| hu.ts | ||
| index.ts | ||
| it.ts | ||
| ja.ts | ||
| ko.ts | ||
| pt.ts | ||
| ru.ts | ||
| tr.ts | ||
| types.ts | ||
| uk.ts | ||
| zh-hant.ts | ||
| zh.ts | ||