Commit 95574bd
Add email-agent runner with suspend/resume agent loop
Introduce EmailAgentRunner Durable Object and email-agent nodes that
send a message and park until a reply arrives. The agent loop gains a
suspend/resume path: suspending tools return an AgentLoopSuspension the
caller fulfils asynchronously, then resumes via resumeState +
resumeToolResults. MailboxDO tags threads with an owning agent run so
inbound replies route to the runner instead of re-triggering workflows.
Extract LLM dispatch (agent-llm.ts) and tool/service wiring
(agent-services.ts) out of AgentRunner so both runners share them. Also
bump hono, react-router, vite, and exifreader.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 983c50c commit 95574bd
30 files changed
Lines changed: 2740 additions & 632 deletions
File tree
- apps
- api
- src
- durable-objects
- runtime
- utils
- app
- www
- packages/runtime
- src
- nodes/email
- utils
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
0 commit comments