Commit 66441a9
committed
core: rename session entry to message and expose full session lifecycle events in SDK
Renamed SessionEntry to SessionMessage for clearer, more intuitive API terminology
that better represents the message-based nature of session interactions.
Exposed 22 new session lifecycle event types in the JavaScript SDK including
prompted, step started/ended, text/reasoning/tool deltas, tool calls with
progress tracking, retries, and compaction events. This enables SDK consumers
to build real-time UIs that accurately reflect agent session state as it evolves,
providing users with visibility into thinking steps, tool execution, and retries.1 parent 5ebaa13 commit 66441a9
9 files changed
Lines changed: 2223 additions & 104 deletions
File tree
- packages
- opencode
- migration/20260427172553_slow_nightmare
- src
- session
- v2
- sdk/js/src/v2/gen
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
0 commit comments