fix(agent): restore public send method

This commit is contained in:
_Kerman
2026-07-31 10:01:35 +08:00
parent c891cb6f6f
commit 060c0f78f0
28 changed files with 76 additions and 32 deletions

View File

@@ -46,6 +46,7 @@ function agentForCwd(cwd: string): Agent {
session,
inbox: new Inbox(session),
status: 'idle',
send: () => {},
followup: () => {},
steer: () => {},
inject: () => { throw new Error('step-boundary catalog must not use agent.inject()') },
@@ -62,6 +63,7 @@ function sessionAgent(session: Session, id = 'tool-skill-agent'): Agent {
inbox: new Inbox(session),
status: 'running',
ctx: new Context(),
send: () => {},
followup: () => {},
steer: () => {},
inject: () => { throw new Error('step-boundary catalog must not use agent.inject()') },