Commit 0358eab
committed
feat(acp-nats): add new_session handler with session.ready lifecycle
- Add new_session handler aligned with initialize.rs patterns
(handler-specific error mapping, single-line generics, local subject variable)
- Add spawn_session_ready to publish ext.session.ready after successful session creation
- Add SessionReady extension type for bridge-backend coordination
- Add session_new and ext_session_ready NATS subject functions
- Add record_session_created() and record_error() to Metrics
- Add Bridge task tracking for session_ready publish tasks
- Add comprehensive test suite mirroring initialize handler tests
Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>1 parent 2f05030 commit 0358eab
6 files changed
Lines changed: 418 additions & 13 deletions
File tree
- rsworkspace/crates/acp-nats/src
- agent
- nats
- telemetry
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
| 52 | + | |
| 53 | + | |
56 | 54 | | |
57 | 55 | | |
58 | 56 | | |
| |||
109 | 107 | | |
110 | 108 | | |
111 | 109 | | |
112 | | - | |
| 110 | + | |
113 | 111 | | |
114 | 112 | | |
115 | 113 | | |
| |||
137 | 135 | | |
138 | 136 | | |
139 | 137 | | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | 138 | | |
147 | 139 | | |
148 | 140 | | |
| |||
0 commit comments