@zenning/ai 5.2.0 → 5.3.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.
package/dist/index.mjs CHANGED
@@ -711,7 +711,7 @@ import {
711
711
  } from "@zenning/provider-utils";
712
712
 
713
713
  // src/version.ts
714
- var VERSION = true ? "5.2.0" : "0.0.0-test";
714
+ var VERSION = true ? "5.3.0" : "0.0.0-test";
715
715
 
716
716
  // src/util/download/download.ts
717
717
  var download = async ({ url }) => {
@@ -2995,6 +2995,11 @@ var uiMessageChunkSchema = z7.union([
2995
2995
  mediaType: z7.string(),
2996
2996
  providerMetadata: providerMetadataSchema.optional()
2997
2997
  }),
2998
+ z7.strictObject({
2999
+ type: z7.literal("source-execution-file"),
3000
+ sourceId: z7.string(),
3001
+ providerMetadata: providerMetadataSchema.optional()
3002
+ }),
2998
3003
  z7.strictObject({
2999
3004
  type: z7.custom(
3000
3005
  (value) => typeof value === "string" && value.startsWith("data-"),
@@ -3629,6 +3634,15 @@ function processUIMessageStream({
3629
3634
  write();
3630
3635
  break;
3631
3636
  }
3637
+ case "source-execution-file": {
3638
+ state.message.parts.push({
3639
+ type: "source-execution-file",
3640
+ sourceId: chunk.sourceId,
3641
+ providerMetadata: chunk.providerMetadata
3642
+ });
3643
+ write();
3644
+ break;
3645
+ }
3632
3646
  case "source-document": {
3633
3647
  state.message.parts.push({
3634
3648
  type: "source-document",
@@ -10200,6 +10214,11 @@ var dynamicToolUIPartSchemas = [
10200
10214
  callProviderMetadata: providerMetadataSchema.optional()
10201
10215
  })
10202
10216
  ];
10217
+ var sourceExecutionFileUIPartSchema = z10.object({
10218
+ type: z10.literal("source-execution-file"),
10219
+ sourceId: z10.string(),
10220
+ providerMetadata: providerMetadataSchema.optional()
10221
+ });
10203
10222
  var toolUIPartSchemas = [
10204
10223
  z10.object({
10205
10224
  type: z10.string().startsWith("tool-"),
@@ -10254,6 +10273,7 @@ var uiMessageSchema = z10.object({
10254
10273
  sourceDocumentUIPartSchema,
10255
10274
  fileUIPartSchema,
10256
10275
  stepStartUIPartSchema,
10276
+ sourceExecutionFileUIPartSchema,
10257
10277
  dataUIPartSchema,
10258
10278
  ...dynamicToolUIPartSchemas,
10259
10279
  ...toolUIPartSchemas