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
@@ -37,6 +37,7 @@ function stubAgent(ctx: Context, id: string): { agent: Agent; session: Session }
inbox: new Inbox(session),
ctx: new Context(),
get status() { return status },
send: () => {},
followup: () => {},
steer: () => {},
inject(input) { appendInjection(session, input) },
+1
View File
@@ -47,6 +47,7 @@ function stubAgentForSession(session: Session): StubAgent {
inbox: new Inbox(session),
ctx: new Context(),
get status() { return status },
send: () => {},
followup: () => {},
steer: () => {},
inject(input) {
@@ -38,6 +38,7 @@ function liveAgent(ctx: Context, session: Session): Agent {
inbox: new Inbox(session),
ctx,
get status() { return status },
send: () => {},
followup: () => {},
steer: () => {},
inject(input: UserMessage) {
@@ -32,6 +32,7 @@ function stubAgent(rawId: string, supplied?: Session): StubAgent {
inbox: new Inbox(session),
get status() { return status },
ctx: new Context(),
send: () => {},
followup: () => {},
steer: () => {},
inject(input) {