feat(agent): deprecate and completely remove cline agent support
- Delete adapters/cline.py and unregister from registry.py - Remove cline branches from lib.sh and all 8 skill scripts (create, resume, stop, status, reconcile, update_yaml_resumed, resolve_session_id, orc_onboard) - Narrow own-key mapping dictionaries across lib_py core modules to 4 supported agents - Delete cline-exclusive tests and retarget shared fixtures to grok/hermes/claude - Update skills documentation and installation guides (439 passed, 0 failures) - Archive cline deprecation consensus and review reports
This commit is contained in:
+4
-28
@@ -537,8 +537,7 @@ elif cmd1 == "agent":
|
||||
buffer_content = {
|
||||
"claude": "Anthropic Claude Ready",
|
||||
"agy": "Antigravity Ready",
|
||||
"hermes": "Hermes Ready",
|
||||
"cline": "Cline Chat Ready"
|
||||
"hermes": "Hermes Ready"
|
||||
}.get(agent_type, "Ready")
|
||||
|
||||
# Look up cwd from target pane in state if not explicitly passed
|
||||
@@ -577,8 +576,7 @@ elif cmd1 == "agent":
|
||||
own_key_map = {
|
||||
"claude": "claude_session_id_own",
|
||||
"agy": "agy_conversation_id_own",
|
||||
"hermes": "hermes_conversation_id_own",
|
||||
"cline": "cline_conversation_id_own"
|
||||
"hermes": "hermes_conversation_id_own"
|
||||
}
|
||||
own_key = own_key_map.get(agent_type)
|
||||
if own_key:
|
||||
@@ -629,15 +627,6 @@ elif cmd1 == "agent":
|
||||
conn.execute("INSERT OR REPLACE INTO sessions (id, cwd) VALUES (?, ?)", (session_uuid, ws_abs))
|
||||
conn.commit()
|
||||
conn.close()
|
||||
elif agent_type == "cline":
|
||||
clin_base = os.path.join(home_dir, ".cline", "data", "sessions")
|
||||
if "agent_homes" in home_dir:
|
||||
clin_base = os.path.join(home_dir, "sessions")
|
||||
session_dir = os.path.join(clin_base, session_uuid)
|
||||
os.makedirs(session_dir, exist_ok=True)
|
||||
json_file = os.path.join(session_dir, f"{session_uuid}.json")
|
||||
with open(json_file, 'w') as jf:
|
||||
jf.write(json.dumps({"id": session_uuid}))
|
||||
|
||||
state["agents"] = agents
|
||||
save_state()
|
||||
@@ -913,7 +902,7 @@ sys.exit(0)
|
||||
@pytest.fixture
|
||||
def mock_agents(mam_sandbox, monkeypatch):
|
||||
"""
|
||||
Generates mock agent binaries (claude, agy, hermes, cline)
|
||||
Generates mock agent binaries (claude, agy, hermes)
|
||||
and places them in the sandboxed bin folder to satisfy preflight checks.
|
||||
"""
|
||||
tmp_path = mam_sandbox
|
||||
@@ -957,20 +946,7 @@ sys.exit(0)
|
||||
""")
|
||||
hermes_bin.chmod(0o755)
|
||||
|
||||
# 4. cline mock
|
||||
cline_bin = bin_dir / "cline"
|
||||
cline_bin.write_text("""#!/usr/bin/env python3
|
||||
import sys
|
||||
import json
|
||||
args = sys.argv[1:]
|
||||
if len(args) >= 1 and args[0] == "history":
|
||||
print(json.dumps([]))
|
||||
sys.exit(0)
|
||||
sys.exit(0)
|
||||
""")
|
||||
cline_bin.chmod(0o755)
|
||||
|
||||
# 5. uuidgen mock to guarantee isolated creation UUIDs
|
||||
# 4. uuidgen mock to guarantee isolated creation UUIDs
|
||||
uuidgen_bin = bin_dir / "uuidgen"
|
||||
uuidgen_bin.write_text("""#!/usr/bin/env python3
|
||||
import uuid
|
||||
|
||||
Reference in New Issue
Block a user