feat(plugins): load portable agent components
This commit is contained in:
@@ -616,3 +616,30 @@ class TestSubdirInstallE2E:
|
||||
identifier = f"file://{repo_root}#does-not-exist"
|
||||
with pytest.raises(PluginOperationError, match="does not exist"):
|
||||
pc._install_plugin_core(identifier, force=False)
|
||||
|
||||
|
||||
def test_portable_manifest_is_visible_to_plugin_cli(tmp_path):
|
||||
import json
|
||||
|
||||
from hermes_cli.agent_plugins import PLUGIN_SCHEMA_V1
|
||||
from hermes_cli.plugins_cmd import _read_manifest_info
|
||||
|
||||
plugin = tmp_path / "portable"
|
||||
plugin.mkdir()
|
||||
(plugin / "plugin.json").write_text(
|
||||
json.dumps(
|
||||
{
|
||||
"$schema": PLUGIN_SCHEMA_V1,
|
||||
"name": "portable.test",
|
||||
"version": "1.0.0",
|
||||
"description": "Portable test plugin",
|
||||
}
|
||||
)
|
||||
)
|
||||
|
||||
assert _read_manifest_info(plugin, "") == (
|
||||
"portable.test",
|
||||
"1.0.0",
|
||||
"Portable test plugin",
|
||||
"portable.test",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user