canon-hermes-plugin 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- canon_hermes_plugin-0.1.0/PKG-INFO +39 -0
- canon_hermes_plugin-0.1.0/README.md +28 -0
- canon_hermes_plugin-0.1.0/pyproject.toml +32 -0
- canon_hermes_plugin-0.1.0/setup.cfg +4 -0
- canon_hermes_plugin-0.1.0/src/canon_hermes_plugin/__init__.py +11 -0
- canon_hermes_plugin-0.1.0/src/canon_hermes_plugin/adapter.py +1909 -0
- canon_hermes_plugin-0.1.0/src/canon_hermes_plugin/cli.py +166 -0
- canon_hermes_plugin-0.1.0/src/canon_hermes_plugin/client.py +492 -0
- canon_hermes_plugin-0.1.0/src/canon_hermes_plugin/constants.py +35 -0
- canon_hermes_plugin-0.1.0/src/canon_hermes_plugin/models.py +36 -0
- canon_hermes_plugin-0.1.0/src/canon_hermes_plugin/plugin.yaml +60 -0
- canon_hermes_plugin-0.1.0/src/canon_hermes_plugin/profiles.py +628 -0
- canon_hermes_plugin-0.1.0/src/canon_hermes_plugin/runtime.py +153 -0
- canon_hermes_plugin-0.1.0/src/canon_hermes_plugin/runtime_tool.py +334 -0
- canon_hermes_plugin-0.1.0/src/canon_hermes_plugin.egg-info/PKG-INFO +39 -0
- canon_hermes_plugin-0.1.0/src/canon_hermes_plugin.egg-info/SOURCES.txt +21 -0
- canon_hermes_plugin-0.1.0/src/canon_hermes_plugin.egg-info/dependency_links.txt +1 -0
- canon_hermes_plugin-0.1.0/src/canon_hermes_plugin.egg-info/entry_points.txt +5 -0
- canon_hermes_plugin-0.1.0/src/canon_hermes_plugin.egg-info/requires.txt +2 -0
- canon_hermes_plugin-0.1.0/src/canon_hermes_plugin.egg-info/top_level.txt +1 -0
- canon_hermes_plugin-0.1.0/tests/test_client_and_runtime.py +141 -0
- canon_hermes_plugin-0.1.0/tests/test_package_contract.py +108 -0
- canon_hermes_plugin-0.1.0/tests/test_profiles.py +80 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: canon-hermes-plugin
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Canon messaging platform plugin for Hermes Agent
|
|
5
|
+
Author: Canon
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Requires-Python: <3.14,>=3.11
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
Requires-Dist: hermes-agent<0.18,>=0.17
|
|
10
|
+
Requires-Dist: httpx<0.29,>=0.28
|
|
11
|
+
|
|
12
|
+
# Canon Hermes Plugin
|
|
13
|
+
|
|
14
|
+
Canon messaging platform plugin for Hermes Agent.
|
|
15
|
+
|
|
16
|
+
## Install
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
pip install canon-hermes-plugin
|
|
20
|
+
canon-hermes install
|
|
21
|
+
hermes gateway setup canon
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
`canon-hermes install` enables the Hermes plugin in the active Hermes profile
|
|
25
|
+
and sets `CANON_ALLOW_ALL_USERS=true` for the first setup unless a Canon
|
|
26
|
+
allowlist is already configured. Canon still enforces agent identity,
|
|
27
|
+
membership, owner approval, and conversation policy before Hermes receives a
|
|
28
|
+
turn.
|
|
29
|
+
|
|
30
|
+
## Development
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
cd packages/hermes-plugin
|
|
34
|
+
python -m pip install -e .
|
|
35
|
+
python -m pytest
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
The plugin uses Canon's REST and SSE APIs. It does not require a public webhook
|
|
39
|
+
server and does not require npm at runtime.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Canon Hermes Plugin
|
|
2
|
+
|
|
3
|
+
Canon messaging platform plugin for Hermes Agent.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pip install canon-hermes-plugin
|
|
9
|
+
canon-hermes install
|
|
10
|
+
hermes gateway setup canon
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
`canon-hermes install` enables the Hermes plugin in the active Hermes profile
|
|
14
|
+
and sets `CANON_ALLOW_ALL_USERS=true` for the first setup unless a Canon
|
|
15
|
+
allowlist is already configured. Canon still enforces agent identity,
|
|
16
|
+
membership, owner approval, and conversation policy before Hermes receives a
|
|
17
|
+
turn.
|
|
18
|
+
|
|
19
|
+
## Development
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
cd packages/hermes-plugin
|
|
23
|
+
python -m pip install -e .
|
|
24
|
+
python -m pytest
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
The plugin uses Canon's REST and SSE APIs. It does not require a public webhook
|
|
28
|
+
server and does not require npm at runtime.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=77.0,<83", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "canon-hermes-plugin"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "Canon messaging platform plugin for Hermes Agent"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.11,<3.14"
|
|
11
|
+
authors = [{ name = "Canon" }]
|
|
12
|
+
license = "MIT"
|
|
13
|
+
dependencies = [
|
|
14
|
+
"hermes-agent>=0.17,<0.18",
|
|
15
|
+
"httpx>=0.28,<0.29",
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
[project.entry-points."hermes_agent.plugins"]
|
|
19
|
+
canon-hermes = "canon_hermes_plugin"
|
|
20
|
+
|
|
21
|
+
[project.scripts]
|
|
22
|
+
canon-hermes = "canon_hermes_plugin.cli:main"
|
|
23
|
+
|
|
24
|
+
[tool.setuptools.packages.find]
|
|
25
|
+
where = ["src"]
|
|
26
|
+
|
|
27
|
+
[tool.setuptools.package-data]
|
|
28
|
+
canon_hermes_plugin = ["plugin.yaml"]
|
|
29
|
+
|
|
30
|
+
[tool.pytest.ini_options]
|
|
31
|
+
testpaths = ["tests"]
|
|
32
|
+
pythonpath = ["src"]
|