feat(lib): implement A-4 M0~M1 BaseAgentAdapter pattern and resolve_home contract
This commit is contained in:
1 parent
e10db8966e
commit
caffd04f36
20 files changed
+743
-15
No files matched your search
@@ -0,0 +1 @@
|
||||
# Adapters package init
|
||||
@@ -0,0 +1,12 @@
|
||||
# agy.py — Antigravity (agy) agent adapter
|
||||
|
||||
from lib_py.agents.base import BaseAgentAdapter
|
||||
|
||||
class AgyAgentAdapter(BaseAgentAdapter):
|
||||
@property
|
||||
def name(self) -> str:
|
||||
return 'agy'
|
||||
|
||||
@property
|
||||
def own_key(self) -> str:
|
||||
return 'agy_conversation_id_own'
|
||||
@@ -0,0 +1,12 @@
|
||||
# claude.py — Claude Code agent adapter
|
||||
|
||||
from lib_py.agents.base import BaseAgentAdapter
|
||||
|
||||
class ClaudeAgentAdapter(BaseAgentAdapter):
|
||||
@property
|
||||
def name(self) -> str:
|
||||
return 'claude'
|
||||
|
||||
@property
|
||||
def own_key(self) -> str:
|
||||
return 'claude_session_id_own'
|
||||
@@ -0,0 +1,12 @@
|
||||
# cline.py — Cline agent adapter
|
||||
|
||||
from lib_py.agents.base import BaseAgentAdapter
|
||||
|
||||
class ClineAgentAdapter(BaseAgentAdapter):
|
||||
@property
|
||||
def name(self) -> str:
|
||||
return 'cline'
|
||||
|
||||
@property
|
||||
def own_key(self) -> str:
|
||||
return 'cline_conversation_id_own'
|
||||
@@ -0,0 +1,12 @@
|
||||
# hermes.py — Hermes agent adapter
|
||||
|
||||
from lib_py.agents.base import BaseAgentAdapter
|
||||
|
||||
class HermesAgentAdapter(BaseAgentAdapter):
|
||||
@property
|
||||
def name(self) -> str:
|
||||
return 'hermes'
|
||||
|
||||
@property
|
||||
def own_key(self) -> str:
|
||||
return 'hermes_conversation_id_own'
|
||||
Reference in new issue
Block a user