Skip to content

restructure PR 1: move acp_adapter/ → hermes_agent/acp/ (canary) #14586

@alt-glitch

Description

@alt-glitch

Parent: #14182

Goal

Move acp_adapter/ into hermes_agent/acp/. This is the canary PR — the smallest possible move (9 files, 1 external prod import) that creates the hermes_agent/ package and proves the workflow.

What moves

Current Path New Path
acp_adapter/__init__.py hermes_agent/acp/__init__.py
acp_adapter/__main__.py hermes_agent/acp/__main__.py
acp_adapter/server.py hermes_agent/acp/server.py
acp_adapter/session.py hermes_agent/acp/session.py
acp_adapter/tools.py hermes_agent/acp/tools.py
acp_adapter/auth.py hermes_agent/acp/auth.py
acp_adapter/permissions.py hermes_agent/acp/permissions.py
acp_adapter/events.py hermes_agent/acp/events.py
acp_adapter/entry.py hermes_agent/acp/entry.py

New files

  • hermes_agent/__init__.py (creates the package)

Import rewrites

Internal (within moved files): acp_adapter.*hermes_agent.acp.*

External callers (1 file):

# hermes_cli/main.py:
from acp_adapter.entry import main as acp_mainfrom hermes_agent.acp.entry import main as acp_main

Test files: ~11 import refs across tests/acp_adapter/

pyproject.toml changes

  • ADD hermes_agent, hermes_agent.* to packages.find include
  • REMOVE acp_adapter from packages.find include
  • UPDATE entry point: hermes-acp = "hermes_agent.acp.entry:main"

What this PR does NOT do

  • No logic changes
  • No __init__.py re-exports (deferred to PR 6 when all packages exist)
  • No infrastructure changes beyond pyproject.toml

Verification

rg "from acp_adapter[\. ]" --type py       # should return 0
rg "import acp_adapter" --type py           # should return 0
pytest
hermes-acp --help

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low — cosmetic, nice to havecomp/acpAgent Communication Protocol adaptertype/refactorCode restructuring, no behavior change

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions