@zenning/ai 6.0.30 → 6.0.31
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/CHANGELOG.md +10 -0
- package/dist/index.d.mts +10 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +15 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -2
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +1 -1
- package/dist/internal/index.mjs +1 -1
- package/package.json +6 -6
package/dist/index.mjs
CHANGED
|
@@ -898,7 +898,7 @@ import {
|
|
|
898
898
|
} from "@zenning/provider-utils";
|
|
899
899
|
|
|
900
900
|
// src/version.ts
|
|
901
|
-
var VERSION = true ? "6.0.
|
|
901
|
+
var VERSION = true ? "6.0.31" : "0.0.0-test";
|
|
902
902
|
|
|
903
903
|
// src/util/download/download.ts
|
|
904
904
|
var download = async ({ url }) => {
|
|
@@ -5516,7 +5516,8 @@ function runToolsTransformation({
|
|
|
5516
5516
|
case "source":
|
|
5517
5517
|
case "response-metadata":
|
|
5518
5518
|
case "error":
|
|
5519
|
-
case "raw":
|
|
5519
|
+
case "raw":
|
|
5520
|
+
case "compaction": {
|
|
5520
5521
|
controller.enqueue(chunk);
|
|
5521
5522
|
break;
|
|
5522
5523
|
}
|
|
@@ -6583,6 +6584,10 @@ var DefaultStreamTextResult = class {
|
|
|
6583
6584
|
}
|
|
6584
6585
|
break;
|
|
6585
6586
|
}
|
|
6587
|
+
case "compaction": {
|
|
6588
|
+
controller.enqueue(chunk);
|
|
6589
|
+
break;
|
|
6590
|
+
}
|
|
6586
6591
|
default: {
|
|
6587
6592
|
const exhaustiveCheck = chunkType;
|
|
6588
6593
|
throw new Error(`Unknown chunk type: ${exhaustiveCheck}`);
|
|
@@ -7119,6 +7124,14 @@ var DefaultStreamTextResult = class {
|
|
|
7119
7124
|
case "raw": {
|
|
7120
7125
|
break;
|
|
7121
7126
|
}
|
|
7127
|
+
case "compaction": {
|
|
7128
|
+
controller.enqueue({
|
|
7129
|
+
type: "compaction",
|
|
7130
|
+
id: part.id,
|
|
7131
|
+
encrypted_content: part.encrypted_content
|
|
7132
|
+
});
|
|
7133
|
+
break;
|
|
7134
|
+
}
|
|
7122
7135
|
default: {
|
|
7123
7136
|
const exhaustiveCheck = partType;
|
|
7124
7137
|
throw new Error(`Unknown chunk type: ${exhaustiveCheck}`);
|