@demicodes/agent 0.25.10 → 0.25.11

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.
Files changed (2) hide show
  1. package/dist/index.mjs +1 -0
  2. package/package.json +5 -5
package/dist/index.mjs CHANGED
@@ -1087,6 +1087,7 @@ var ProviderTurnLoop = class {
1087
1087
  ...event,
1088
1088
  diagnostics
1089
1089
  };
1090
+ if (this.host.transcript.removeDanglingToolCalls().length > 0) await this.host.commitTranscript();
1090
1091
  if (findResumePoint(this.host.transcript.blocks).cut <= attemptStart && attempt < policy.maxAttempts && isRetryableCode(policy, errorEvent.code)) {
1091
1092
  if (this.host.transcript.truncateFrom(attemptStart)) await this.host.commitTranscript();
1092
1093
  return {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@demicodes/agent",
3
3
  "description": "Session runtime and transport-neutral client and server protocol for Demi.",
4
- "version": "0.25.10",
4
+ "version": "0.25.11",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "exports": {
@@ -19,10 +19,10 @@
19
19
  }
20
20
  },
21
21
  "dependencies": {
22
- "@demicodes/core": "^0.25.10",
23
- "@demicodes/provider": "^0.25.10",
24
- "@demicodes/shell": "^0.25.10",
25
- "@demicodes/utils": "^0.25.10",
22
+ "@demicodes/core": "^0.25.11",
23
+ "@demicodes/provider": "^0.25.11",
24
+ "@demicodes/shell": "^0.25.11",
25
+ "@demicodes/utils": "^0.25.11",
26
26
  "zod": "^4.0.0"
27
27
  },
28
28
  "license": "Apache-2.0",