@dreb/coding-agent 2.21.0 → 2.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -482,6 +482,17 @@ dreb.on("message_end", async (event, ctx) => {
482
482
  });
483
483
  ```
484
484
 
485
+ #### stream_retry
486
+
487
+ Fired when a provider stream drops before its terminal event and dreb discards the partial assistant response before retrying.
488
+
489
+ ```typescript
490
+ dreb.on("stream_retry", async (event, ctx) => {
491
+ // event.attempt, event.maxAttempts, event.error
492
+ // event.discardedPartial - partial assistant message discarded before retry (debug/instrumentation only)
493
+ });
494
+ ```
495
+
485
496
  #### tool_execution_start / tool_execution_update / tool_execution_end
486
497
 
487
498
  Fired for tool execution lifecycle updates.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dreb/coding-agent",
3
- "version": "2.21.0",
3
+ "version": "2.22.0",
4
4
  "description": "Coding agent CLI with read, bash, edit, write tools and session management",
5
5
  "type": "module",
6
6
  "drebConfig": {
@@ -102,7 +102,7 @@
102
102
  "@types/proper-lockfile": "^4.1.4",
103
103
  "shx": "^0.4.0",
104
104
  "typescript": "^5.7.3",
105
- "vitest": "^3.2.4"
105
+ "vitest": "^4.1.8"
106
106
  },
107
107
  "keywords": [
108
108
  "coding-agent",