mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
refactor(commands): drop /provider, /plan handler, and clean up slash registry (#15047)
* refactor(commands): drop /provider and clean up slash registry * refactor(commands): drop /plan special handler — use plain skill dispatch
This commit is contained in:
parent
b29287258a
commit
b2e124d082
20 changed files with 21 additions and 535 deletions
|
|
@ -3237,29 +3237,6 @@ def _(rid, params: dict) -> dict:
|
|||
# Fallback: no active run, treat as next-turn message
|
||||
return _ok(rid, {"type": "send", "message": arg})
|
||||
|
||||
if name == "plan":
|
||||
try:
|
||||
from agent.skill_commands import (
|
||||
build_skill_invocation_message as _bsim,
|
||||
build_plan_path,
|
||||
)
|
||||
|
||||
user_instruction = arg or ""
|
||||
plan_path = build_plan_path(user_instruction)
|
||||
msg = _bsim(
|
||||
"/plan",
|
||||
user_instruction,
|
||||
task_id=session.get("session_key", "") if session else "",
|
||||
runtime_note=(
|
||||
"Save the markdown plan with write_file to this exact relative path "
|
||||
f"inside the active workspace/backend cwd: {plan_path}"
|
||||
),
|
||||
)
|
||||
if msg:
|
||||
return _ok(rid, {"type": "send", "message": msg})
|
||||
except Exception as e:
|
||||
return _err(rid, 5030, f"plan skill failed: {e}")
|
||||
|
||||
return _err(rid, 4018, f"not a quick/plugin/skill command: {name}")
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue