feat: add agent response scheduler

This commit is contained in:
2026-07-01 23:50:38 +01:00
parent 9aaefda216
commit e3a00fe632
33 changed files with 1690 additions and 505 deletions

View File

@@ -166,6 +166,16 @@ export class PiQueryAgent implements QueryAgent {
this.handlePiEvent(event, pushRunEvent)
})
input.signal?.addEventListener(
"abort",
async () => {
await session.abort()
close()
unsubscribe()
},
{ once: true },
)
session
.prompt(input.message)
.then(() => {