veryfront 0.1.728 → 0.1.729
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.
package/esm/deno.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-stream.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/streaming/data-stream.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"data-stream.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/streaming/data-stream.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAQ1E,iFAAiF;AACjF,wBAAgB,kCAAkC,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAmB1E;AAwBD,qCAAqC;AACrC,wBAAgB,mBAAmB,CAAC,gBAAgB,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAuDvF;AAED,yCAAyC;AACzC,wBAAgB,kBAAkB,CAAC,gBAAgB,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAoBtF;AAED,gCAAgC;AAChC,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAiB5E;AAED,qCAAqC;AACrC,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG;IACvD,MAAM,EAAE,sBAAsB,EAAE,CAAC;IACjC,SAAS,EAAE,MAAM,CAAC;CACnB,CAoBA;AAED,wCAAwC;AACxC,wBAAuB,sBAAsB,CAC3C,MAAM,EAAE,cAAc,CAAC,UAAU,CAAC,GACjC,cAAc,CAAC,sBAAsB,CAAC,CAsCxC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { serverLogger } from "../../utils/index.js";
|
|
2
|
+
const logger = serverLogger.component("agent-data-stream");
|
|
1
3
|
function isRecord(value) {
|
|
2
4
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
3
5
|
}
|
|
@@ -171,7 +173,12 @@ export async function* streamDataStreamEvents(stream) {
|
|
|
171
173
|
}
|
|
172
174
|
finally {
|
|
173
175
|
if (!completed) {
|
|
174
|
-
|
|
176
|
+
try {
|
|
177
|
+
await reader.cancel();
|
|
178
|
+
}
|
|
179
|
+
catch (error) {
|
|
180
|
+
logger.debug("Data stream reader cancellation failed during cleanup", { error });
|
|
181
|
+
}
|
|
175
182
|
}
|
|
176
183
|
reader.releaseLock();
|
|
177
184
|
}
|