repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
public Clawd ADK gateway launch mirror
stars
latest
clone command
git clone gitlawb://did:key:z6Mkq5mY...iFZ5/my-project-publ...git clone gitlawb://did:key:z6Mkq5mY.../my-project-publ...2fa351d6docs: add automaton and perps launch sources15d ago| #1 | """ |
| #2 | Mnemosyne Plugin for Hermes Agent |
| #3 | Entry point at repo root for `hermes plugins install` compatibility. |
| #4 | """ |
| #5 | |
| #6 | import sys |
| #7 | from pathlib import Path |
| #8 | |
| #9 | # Ensure this directory is on path so `hermes_plugin` is discoverable |
| #10 | _repo_root = Path(__file__).resolve().parent |
| #11 | if str(_repo_root) not in sys.path: |
| #12 | sys.path.insert(0, str(_repo_root)) |
| #13 | |
| #14 | # Re-export __version__ / __author__ from the inner mnemosyne subpackage so |
| #15 | # `from mnemosyne import __version__` works in either install layout: |
| #16 | # - Hermes plugin tree: outer `mnemosyne/` is the resolved package, inner |
| #17 | # `mnemosyne/mnemosyne/` is the subpackage `mnemosyne.mnemosyne`. |
| #18 | # - pip / repo-direct install: inner `mnemosyne/` is the resolved package |
| #19 | # directly and this stub is never loaded. |
| #20 | # Without this re-export, `hermes mnemosyne version` (and any other caller |
| #21 | # doing `from mnemosyne import __version__`) crashed with ImportError under |
| #22 | # the Hermes plugin layout. See issue #53. |
| #23 | try: |
| #24 | from .mnemosyne import __version__, __author__ |
| #25 | except ImportError: |
| #26 | __version__ = "unknown" |
| #27 | __author__ = "Abdias J" |
| #28 | |
| #29 | # Graceful fallback when Hermes framework is not present |
| #30 | # (e.g. pip-only / standalone installs without hermes_plugin) |
| #31 | try: |
| #32 | from hermes_plugin import register |
| #33 | __all__ = ["register", "__version__", "__author__"] |
| #34 | except ImportError: |
| #35 | __all__ = ["__version__", "__author__"] |
| #36 |