@zenning/ai 6.0.30 → 6.0.32
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 +16 -0
- package/dist/index.d.mts +10 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +20 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +20 -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.32" : "0.0.0-test";
|
|
902
902
|
|
|
903
903
|
// src/util/download/download.ts
|
|
904
904
|
var download = async ({ url }) => {
|
|
@@ -5143,6 +5143,11 @@ function processUIMessageStream({
|
|
|
5143
5143
|
onError == null ? void 0 : onError(new Error(chunk.errorText));
|
|
5144
5144
|
break;
|
|
5145
5145
|
}
|
|
5146
|
+
case "compaction": {
|
|
5147
|
+
state.message.parts.push(chunk);
|
|
5148
|
+
write();
|
|
5149
|
+
break;
|
|
5150
|
+
}
|
|
5146
5151
|
default: {
|
|
5147
5152
|
if (isDataUIMessageChunk(chunk)) {
|
|
5148
5153
|
if ((dataPartSchemas == null ? void 0 : dataPartSchemas[chunk.type]) != null) {
|
|
@@ -5516,7 +5521,8 @@ function runToolsTransformation({
|
|
|
5516
5521
|
case "source":
|
|
5517
5522
|
case "response-metadata":
|
|
5518
5523
|
case "error":
|
|
5519
|
-
case "raw":
|
|
5524
|
+
case "raw":
|
|
5525
|
+
case "compaction": {
|
|
5520
5526
|
controller.enqueue(chunk);
|
|
5521
5527
|
break;
|
|
5522
5528
|
}
|
|
@@ -6583,6 +6589,10 @@ var DefaultStreamTextResult = class {
|
|
|
6583
6589
|
}
|
|
6584
6590
|
break;
|
|
6585
6591
|
}
|
|
6592
|
+
case "compaction": {
|
|
6593
|
+
controller.enqueue(chunk);
|
|
6594
|
+
break;
|
|
6595
|
+
}
|
|
6586
6596
|
default: {
|
|
6587
6597
|
const exhaustiveCheck = chunkType;
|
|
6588
6598
|
throw new Error(`Unknown chunk type: ${exhaustiveCheck}`);
|
|
@@ -7119,6 +7129,14 @@ var DefaultStreamTextResult = class {
|
|
|
7119
7129
|
case "raw": {
|
|
7120
7130
|
break;
|
|
7121
7131
|
}
|
|
7132
|
+
case "compaction": {
|
|
7133
|
+
controller.enqueue({
|
|
7134
|
+
type: "compaction",
|
|
7135
|
+
id: part.id,
|
|
7136
|
+
encrypted_content: part.encrypted_content
|
|
7137
|
+
});
|
|
7138
|
+
break;
|
|
7139
|
+
}
|
|
7122
7140
|
default: {
|
|
7123
7141
|
const exhaustiveCheck = partType;
|
|
7124
7142
|
throw new Error(`Unknown chunk type: ${exhaustiveCheck}`);
|