ai 5.1.0-beta.6 → 5.1.0-beta.8

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
@@ -12,6 +12,7 @@ import {
12
12
  dynamicTool as dynamicTool2,
13
13
  generateId as generateId2,
14
14
  jsonSchema as jsonSchema2,
15
+ parseJsonEventStream as parseJsonEventStream3,
15
16
  tool as tool2,
16
17
  zodSchema
17
18
  } from "@ai-sdk/provider-utils";
@@ -678,7 +679,7 @@ import {
678
679
  } from "@ai-sdk/provider-utils";
679
680
 
680
681
  // src/version.ts
681
- var VERSION = true ? "5.1.0-beta.6" : "0.0.0-test";
682
+ var VERSION = true ? "5.1.0-beta.8" : "0.0.0-test";
682
683
 
683
684
  // src/util/download/download.ts
684
685
  var download = async ({ url }) => {
@@ -2922,11 +2923,6 @@ var uiMessageChunkSchema = z7.union([
2922
2923
  providerExecuted: z7.boolean().optional(),
2923
2924
  dynamic: z7.boolean().optional()
2924
2925
  }),
2925
- z7.strictObject({
2926
- type: z7.literal("reasoning"),
2927
- text: z7.string(),
2928
- providerMetadata: providerMetadataSchema.optional()
2929
- }),
2930
2926
  z7.strictObject({
2931
2927
  type: z7.literal("reasoning-start"),
2932
2928
  id: z7.string(),
@@ -2943,9 +2939,6 @@ var uiMessageChunkSchema = z7.union([
2943
2939
  id: z7.string(),
2944
2940
  providerMetadata: providerMetadataSchema.optional()
2945
2941
  }),
2946
- z7.strictObject({
2947
- type: z7.literal("reasoning-part-finish")
2948
- }),
2949
2942
  z7.strictObject({
2950
2943
  type: z7.literal("source-url"),
2951
2944
  sourceId: z7.string(),
@@ -2968,7 +2961,10 @@ var uiMessageChunkSchema = z7.union([
2968
2961
  providerMetadata: providerMetadataSchema.optional()
2969
2962
  }),
2970
2963
  z7.strictObject({
2971
- type: z7.string().startsWith("data-"),
2964
+ type: z7.custom(
2965
+ (value) => typeof value === "string" && value.startsWith("data-"),
2966
+ { message: 'Type must start with "data-"' }
2967
+ ),
2972
2968
  id: z7.string().optional(),
2973
2969
  data: z7.unknown(),
2974
2970
  transient: z7.boolean().optional()
@@ -10451,6 +10447,7 @@ export {
10451
10447
  jsonSchema2 as jsonSchema,
10452
10448
  lastAssistantMessageIsCompleteWithToolCalls,
10453
10449
  modelMessageSchema,
10450
+ parseJsonEventStream3 as parseJsonEventStream,
10454
10451
  parsePartialJson,
10455
10452
  pipeTextStreamToResponse,
10456
10453
  pipeUIMessageStreamToResponse,
@@ -10465,6 +10462,7 @@ export {
10465
10462
  systemModelMessageSchema,
10466
10463
  tool2 as tool,
10467
10464
  toolModelMessageSchema,
10465
+ uiMessageChunkSchema,
10468
10466
  userModelMessageSchema,
10469
10467
  validateUIMessages,
10470
10468
  wrapLanguageModel,