- Add myhermes entrypoint and myagents hermes subcommand - Hermes sessions read from global SQLite store (~/.hermes/state.db) - Default args: --yolo - Update README, AGENTS.md, Makefile, pyproject.toml - Add tests for hermes subcommand, passthrough, and session listing
61 lines
1.4 KiB
Python
61 lines
1.4 KiB
Python
"""Standalone entrypoints for myclaude, mykimi, mycodex, and myhermes."""
|
|
|
|
from myagents.launcher import build_cli
|
|
|
|
claude_cli = build_cli("claude", prog_name="myclaude")
|
|
kimi_cli = build_cli("kimi", prog_name="mykimi")
|
|
codex_cli = build_cli("codex", prog_name="mycodex")
|
|
hermes_cli = build_cli("hermes", prog_name="myhermes")
|
|
|
|
|
|
def _progs():
|
|
from myagents.cli import cli
|
|
|
|
return [
|
|
("myagents", lambda: cli),
|
|
("myclaude", lambda: claude_cli),
|
|
("mykimi", lambda: kimi_cli),
|
|
("mycodex", lambda: codex_cli),
|
|
("myhermes", lambda: hermes_cli),
|
|
]
|
|
|
|
|
|
def claude_main() -> None:
|
|
"""Run ``myclaude``."""
|
|
from myagents.commands.completion_install import (
|
|
ensure_completions_installed,
|
|
)
|
|
|
|
ensure_completions_installed(_progs())
|
|
claude_cli()
|
|
|
|
|
|
def kimi_main() -> None:
|
|
"""Run ``mykimi``."""
|
|
from myagents.commands.completion_install import (
|
|
ensure_completions_installed,
|
|
)
|
|
|
|
ensure_completions_installed(_progs())
|
|
kimi_cli()
|
|
|
|
|
|
def codex_main() -> None:
|
|
"""Run ``mycodex``."""
|
|
from myagents.commands.completion_install import (
|
|
ensure_completions_installed,
|
|
)
|
|
|
|
ensure_completions_installed(_progs())
|
|
codex_cli()
|
|
|
|
|
|
def hermes_main() -> None:
|
|
"""Run ``myhermes``."""
|
|
from myagents.commands.completion_install import (
|
|
ensure_completions_installed,
|
|
)
|
|
|
|
ensure_completions_installed(_progs())
|
|
hermes_cli()
|