Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ Before the first release, configure PyPI Trusted Publishing for this repository
Release example:

```bash
git tag 0.1.0
git push origin 0.1.0
git tag 0.1.1
git push origin 0.1.1
```

Tags like `v0.1.0`, `0.1`, or `0.1.0rc1` will not publish.
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "hermes-github-app-plugin"
version = "0.1.0"
version = "0.1.1"
description = "Hermes plugin for per-agent GitHub App identity, gh/git wrappers, and GitHub App-aware tools."
readme = "README.md"
requires-python = ">=3.10"
Expand All @@ -26,7 +26,7 @@ dev = [
]

[project.entry-points."hermes_agent.plugins"]
github-app = "hermes_github_app_plugin:register"
github-app = "hermes_github_app_plugin"

[project.scripts]
gh-app = "hermes_github_app_plugin.cli:gh_app_main"
Expand Down
10 changes: 10 additions & 0 deletions tests/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from __future__ import annotations

from importlib.metadata import entry_points
from pathlib import Path
from typing import Any

Expand Down Expand Up @@ -33,3 +34,12 @@ def test_register_adds_tools_cli_and_skill() -> None:
assert "github_app_create_pr" in ctx.tools
assert ctx.cli_commands == ["hermes-github-app"]
assert ctx.skills[0][0] == "github-app-workflow"


def test_plugin_entry_point_loads_module_with_register() -> None:
matches = [ep for ep in entry_points(group="hermes_agent.plugins") if ep.name == "github-app"]

assert len(matches) == 1
loaded = matches[0].load()
assert loaded.__name__ == "hermes_github_app_plugin"
assert loaded.register is register
Loading