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

@@ -43,6 +43,7 @@ function sessionAgent(session: Session, id = 'agent'): Agent {
inbox: new Inbox(session),
status: 'running',
ctx: new Context(),
send: () => {},
followup: () => {},
steer: () => {},
inject: () => { throw new Error('time-context must append directly to the open step') },

View File

@@ -99,6 +99,7 @@ function sessionAgent(session: Session, id = 'agent'): Agent {
inbox: new Inbox(session),
status: 'running',
ctx: new Context(),
send: () => {},
followup: () => {},
steer: () => {},
inject: () => { throw new Error('tmux-context must append directly to the open step') },

View File

@@ -178,6 +178,7 @@ function stubAgent(cwd?: string, seed: SessionEvent[] = []): Agent {
session,
inbox: new Inbox(session),
status: 'idle',
send: () => {},
followup: () => {},
steer: () => {},
inject: () => { throw new Error('workspace-context must append directly to the open step') },