@mastra/schema-compat 1.2.9-alpha.1 → 1.2.9

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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # @mastra/schema-compat
2
2
 
3
+ ## 1.2.9
4
+
5
+ ### Patch Changes
6
+
7
+ - Fixed MCP tool validation failures when tools use JSON Schema draft 2020-12. Tools from providers like Firecrawl that declare `$schema: "https://json-schema.org/draft/2020-12/schema"` now validate correctly instead of throwing "no schema with key or ref" errors. ([#14530](https://github.com/mastra-ai/mastra/pull/14530))
8
+
9
+ - Fixed MCP tools with recursive JSON Schema refs so they stay serializable when loaded. ([#15400](https://github.com/mastra-ai/mastra/pull/15400))
10
+
3
11
  ## 1.2.9-alpha.1
4
12
 
5
13
  ### Patch Changes
@@ -195,6 +195,8 @@ export declare interface Attachment {
195
195
  * Attributes is a map from string to attribute values.
196
196
  *
197
197
  * Note: only the own enumerable keys are counted as valid attribute keys.
198
+ *
199
+ * @since 1.3.0
198
200
  */
199
201
  declare interface Attributes {
200
202
  [attributeKey: string]: AttributeValue | undefined;
@@ -204,6 +206,8 @@ declare interface Attributes {
204
206
  * Attribute values may be any non-nullish primitive value except an object.
205
207
  *
206
208
  * null or undefined attribute values are invalid and will result in undefined behavior.
209
+ *
210
+ * @since 1.3.0
207
211
  */
208
212
  declare type AttributeValue = string | number | boolean | Array<null | undefined | string> | Array<null | undefined | number> | Array<null | undefined | boolean>;
209
213
 
@@ -1057,6 +1061,9 @@ declare type ConsumeStreamOptions = {
1057
1061
  onError?: (error: unknown) => void;
1058
1062
  };
1059
1063
 
1064
+ /**
1065
+ * @since 1.0.0
1066
+ */
1060
1067
  declare interface Context {
1061
1068
  /**
1062
1069
  * Get a value from the context.
@@ -1735,6 +1742,8 @@ declare const errorStreamPart: AssistantStreamPart<'3', 'error', string>;
1735
1742
  * Defines Exception.
1736
1743
  *
1737
1744
  * string or an object with one of (message or name or code) and optional stack
1745
+ *
1746
+ * @since 1.0.0
1738
1747
  */
1739
1748
  declare type Exception = ExceptionWithCode | ExceptionWithMessage | ExceptionWithName | string;
1740
1749
 
@@ -2770,6 +2779,8 @@ export declare interface GenerateTextResult<TOOLS extends ToolSet, OUTPUT> {
2770
2779
  * The second number is calculated by converting the digits after the decimal point of the subtraction, (1609504210150 / 1000) - HrTime[0], to nanoseconds:
2771
2780
  * HrTime[1] = Number((1609504210.150 - HrTime[0]).toFixed(9)) * 1e9 = 150000000.
2772
2781
  * This is represented in HrTime format as [1609504210, 150000000].
2782
+ *
2783
+ * @since 1.0.0
2773
2784
  */
2774
2785
  declare type HrTime = [number, number];
2775
2786
 
@@ -4420,6 +4431,8 @@ declare interface LanguageModelV1ToolResultPart {
4420
4431
  * However, it is desirable to associate incoming SpanContext to new trace
4421
4432
  * initiated on service provider side so two traces (from Client and from
4422
4433
  * Service Provider) can be correlated.
4434
+ *
4435
+ * @since 1.0.0
4423
4436
  */
4424
4437
  declare interface Link {
4425
4438
  /** The {@link SpanContext} of a linked span. */
@@ -5289,6 +5302,8 @@ declare type SourceUIPart = {
5289
5302
  * may have children.
5290
5303
  *
5291
5304
  * Spans are created by the {@link Tracer.startSpan} method.
5305
+ *
5306
+ * @since 1.0.0
5292
5307
  */
5293
5308
  declare interface Span {
5294
5309
  /**
@@ -5348,11 +5363,21 @@ declare interface Span {
5348
5363
  */
5349
5364
  addLinks(links: Link[]): this;
5350
5365
  /**
5351
- * Sets a status to the span. If used, this will override the default Span
5352
- * status. Default is {@link SpanStatusCode.UNSET}. SetStatus overrides the value
5353
- * of previous calls to SetStatus on the Span.
5366
+ * Sets the status of the span.
5367
+ *
5368
+ * By default, a span has status {@link SpanStatusCode.UNSET}.
5369
+ * Calling this method overrides that default.
5370
+ *
5371
+ * The status codes have a total order: `OK > ERROR > UNSET`.
5372
+ *
5373
+ * - Once {@link SpanStatusCode.OK} is set, any further attempts to change
5374
+ * the status are ignored.
5375
+ * - Any attempt to set {@link SpanStatusCode.UNSET} is always ignored.
5376
+ *
5377
+ * The `message` field is only used when {@link SpanStatusCode.ERROR} is set.
5378
+ * For all other status codes, `message` is ignored.
5354
5379
  *
5355
- * @param status the SpanStatus to set.
5380
+ * @param status The {@link SpanStatus} to set.
5356
5381
  */
5357
5382
  setStatus(status: SpanStatus): this;
5358
5383
  /**
@@ -5397,17 +5422,21 @@ declare interface Span {
5397
5422
 
5398
5423
  /**
5399
5424
  * @deprecated please use {@link Attributes}
5425
+ * @since 1.0.0
5400
5426
  */
5401
5427
  declare type SpanAttributes = Attributes;
5402
5428
 
5403
5429
  /**
5404
5430
  * @deprecated please use {@link AttributeValue}
5431
+ * @since 1.0.0
5405
5432
  */
5406
5433
  declare type SpanAttributeValue = AttributeValue;
5407
5434
 
5408
5435
  /**
5409
5436
  * A SpanContext represents the portion of a {@link Span} which must be
5410
5437
  * serialized and propagated along side of a {@link Baggage}.
5438
+ *
5439
+ * @since 1.0.0
5411
5440
  */
5412
5441
  declare interface SpanContext {
5413
5442
  /**
@@ -5457,6 +5486,9 @@ declare interface SpanContext {
5457
5486
  traceState?: TraceState;
5458
5487
  }
5459
5488
 
5489
+ /**
5490
+ * @since 1.0.0
5491
+ */
5460
5492
  declare enum SpanKind {
5461
5493
  /** Default value. Indicates that the span is used internally. */
5462
5494
  INTERNAL = 0,
@@ -5486,6 +5518,8 @@ declare enum SpanKind {
5486
5518
 
5487
5519
  /**
5488
5520
  * Options needed for span creation
5521
+ *
5522
+ * @since 1.0.0
5489
5523
  */
5490
5524
  declare interface SpanOptions {
5491
5525
  /**
@@ -5494,7 +5528,7 @@ declare interface SpanOptions {
5494
5528
  */
5495
5529
  kind?: SpanKind;
5496
5530
  /** A span's attributes */
5497
- attributes?: SpanAttributes;
5531
+ attributes?: Attributes;
5498
5532
  /** {@link Link}s span to other spans */
5499
5533
  links?: Link[];
5500
5534
  /** A manually specified start time for the created `Span` object. */
@@ -5503,6 +5537,9 @@ declare interface SpanOptions {
5503
5537
  root?: boolean;
5504
5538
  }
5505
5539
 
5540
+ /**
5541
+ * @since 1.0.0
5542
+ */
5506
5543
  declare interface SpanStatus {
5507
5544
  /** The status code of this message. */
5508
5545
  code: SpanStatusCode;
@@ -5512,6 +5549,8 @@ declare interface SpanStatus {
5512
5549
 
5513
5550
  /**
5514
5551
  * An enumeration of status codes.
5552
+ *
5553
+ * @since 1.0.0
5515
5554
  */
5516
5555
  declare enum SpanStatusCode {
5517
5556
  /**
@@ -6741,6 +6780,8 @@ declare type TextUIPart = {
6741
6780
  * Defines TimeInput.
6742
6781
  *
6743
6782
  * hrtime, epoch milliseconds, performance.now() or Date
6783
+ *
6784
+ * @since 1.0.0
6744
6785
  */
6745
6786
  declare type TimeInput = HrTime | number | Date;
6746
6787
 
@@ -7087,6 +7128,8 @@ declare type ToToolsWithExecute<TOOLS extends ToolSet> = {
7087
7128
 
7088
7129
  /**
7089
7130
  * Tracer provides an interface for creating {@link Span}s.
7131
+ *
7132
+ * @since 1.0.0
7090
7133
  */
7091
7134
  declare interface Tracer {
7092
7135
  /**
@@ -7153,6 +7196,9 @@ declare interface Tracer {
7153
7196
  startActiveSpan<F extends (span: Span) => unknown>(name: string, options: SpanOptions, context: Context, fn: F): ReturnType<F>;
7154
7197
  }
7155
7198
 
7199
+ /**
7200
+ * @since 1.0.0
7201
+ */
7156
7202
  declare interface TraceState {
7157
7203
  /**
7158
7204
  * Create a new TraceState which inherits from this TraceState and has the
@@ -435,6 +435,8 @@ export declare type AsyncIterableStream<T> = AsyncIterable<T> & ReadableStream<T
435
435
  * Attributes is a map from string to attribute values.
436
436
  *
437
437
  * Note: only the own enumerable keys are counted as valid attribute keys.
438
+ *
439
+ * @since 1.3.0
438
440
  */
439
441
  declare interface Attributes {
440
442
  [attributeKey: string]: AttributeValue | undefined;
@@ -444,6 +446,8 @@ declare interface Attributes {
444
446
  * Attribute values may be any non-nullish primitive value except an object.
445
447
  *
446
448
  * null or undefined attribute values are invalid and will result in undefined behavior.
449
+ *
450
+ * @since 1.3.0
447
451
  */
448
452
  declare type AttributeValue = string | number | boolean | Array<null | undefined | string> | Array<null | undefined | number> | Array<null | undefined | boolean>;
449
453
 
@@ -778,6 +782,9 @@ export declare type ContentPart<TOOLS extends ToolSet> = {
778
782
  providerMetadata?: ProviderMetadata;
779
783
  });
780
784
 
785
+ /**
786
+ * @since 1.0.0
787
+ */
781
788
  declare interface Context {
782
789
  /**
783
790
  * Get a value from the context.
@@ -1705,6 +1712,8 @@ declare class EventSourceParserStream extends TransformStream<string, EventSourc
1705
1712
  * Defines Exception.
1706
1713
  *
1707
1714
  * string or an object with one of (message or name or code) and optional stack
1715
+ *
1716
+ * @since 1.0.0
1708
1717
  */
1709
1718
  declare type Exception = ExceptionWithCode | ExceptionWithMessage | ExceptionWithName | string;
1710
1719
 
@@ -2973,6 +2982,8 @@ export declare function hasToolCall(toolName: string): StopCondition<any>;
2973
2982
  * The second number is calculated by converting the digits after the decimal point of the subtraction, (1609504210150 / 1000) - HrTime[0], to nanoseconds:
2974
2983
  * HrTime[1] = Number((1609504210.150 - HrTime[0]).toFixed(9)) * 1e9 = 150000000.
2975
2984
  * This is represented in HrTime format as [1609504210, 150000000].
2985
+ *
2986
+ * @since 1.0.0
2976
2987
  */
2977
2988
  declare type HrTime = [number, number];
2978
2989
 
@@ -5546,6 +5557,8 @@ declare function lazyValidator<OBJECT>(createValidator: () => Validator<OBJECT>)
5546
5557
  * However, it is desirable to associate incoming SpanContext to new trace
5547
5558
  * initiated on service provider side so two traces (from Client and from
5548
5559
  * Service Provider) can be correlated.
5560
+ *
5561
+ * @since 1.0.0
5549
5562
  */
5550
5563
  declare interface Link {
5551
5564
  /** The {@link SpanContext} of a linked span. */
@@ -7019,6 +7032,8 @@ export declare type SourceUrlUIPart = {
7019
7032
  * may have children.
7020
7033
  *
7021
7034
  * Spans are created by the {@link Tracer.startSpan} method.
7035
+ *
7036
+ * @since 1.0.0
7022
7037
  */
7023
7038
  declare interface Span {
7024
7039
  /**
@@ -7078,11 +7093,21 @@ declare interface Span {
7078
7093
  */
7079
7094
  addLinks(links: Link[]): this;
7080
7095
  /**
7081
- * Sets a status to the span. If used, this will override the default Span
7082
- * status. Default is {@link SpanStatusCode.UNSET}. SetStatus overrides the value
7083
- * of previous calls to SetStatus on the Span.
7096
+ * Sets the status of the span.
7097
+ *
7098
+ * By default, a span has status {@link SpanStatusCode.UNSET}.
7099
+ * Calling this method overrides that default.
7100
+ *
7101
+ * The status codes have a total order: `OK > ERROR > UNSET`.
7102
+ *
7103
+ * - Once {@link SpanStatusCode.OK} is set, any further attempts to change
7104
+ * the status are ignored.
7105
+ * - Any attempt to set {@link SpanStatusCode.UNSET} is always ignored.
7106
+ *
7107
+ * The `message` field is only used when {@link SpanStatusCode.ERROR} is set.
7108
+ * For all other status codes, `message` is ignored.
7084
7109
  *
7085
- * @param status the SpanStatus to set.
7110
+ * @param status The {@link SpanStatus} to set.
7086
7111
  */
7087
7112
  setStatus(status: SpanStatus): this;
7088
7113
  /**
@@ -7127,17 +7152,21 @@ declare interface Span {
7127
7152
 
7128
7153
  /**
7129
7154
  * @deprecated please use {@link Attributes}
7155
+ * @since 1.0.0
7130
7156
  */
7131
7157
  declare type SpanAttributes = Attributes;
7132
7158
 
7133
7159
  /**
7134
7160
  * @deprecated please use {@link AttributeValue}
7161
+ * @since 1.0.0
7135
7162
  */
7136
7163
  declare type SpanAttributeValue = AttributeValue;
7137
7164
 
7138
7165
  /**
7139
7166
  * A SpanContext represents the portion of a {@link Span} which must be
7140
7167
  * serialized and propagated along side of a {@link Baggage}.
7168
+ *
7169
+ * @since 1.0.0
7141
7170
  */
7142
7171
  declare interface SpanContext {
7143
7172
  /**
@@ -7187,6 +7216,9 @@ declare interface SpanContext {
7187
7216
  traceState?: TraceState;
7188
7217
  }
7189
7218
 
7219
+ /**
7220
+ * @since 1.0.0
7221
+ */
7190
7222
  declare enum SpanKind {
7191
7223
  /** Default value. Indicates that the span is used internally. */
7192
7224
  INTERNAL = 0,
@@ -7216,6 +7248,8 @@ declare enum SpanKind {
7216
7248
 
7217
7249
  /**
7218
7250
  * Options needed for span creation
7251
+ *
7252
+ * @since 1.0.0
7219
7253
  */
7220
7254
  declare interface SpanOptions {
7221
7255
  /**
@@ -7224,7 +7258,7 @@ declare interface SpanOptions {
7224
7258
  */
7225
7259
  kind?: SpanKind;
7226
7260
  /** A span's attributes */
7227
- attributes?: SpanAttributes;
7261
+ attributes?: Attributes;
7228
7262
  /** {@link Link}s span to other spans */
7229
7263
  links?: Link[];
7230
7264
  /** A manually specified start time for the created `Span` object. */
@@ -7233,6 +7267,9 @@ declare interface SpanOptions {
7233
7267
  root?: boolean;
7234
7268
  }
7235
7269
 
7270
+ /**
7271
+ * @since 1.0.0
7272
+ */
7236
7273
  declare interface SpanStatus {
7237
7274
  /** The status code of this message. */
7238
7275
  code: SpanStatusCode;
@@ -7242,6 +7279,8 @@ declare interface SpanStatus {
7242
7279
 
7243
7280
  /**
7244
7281
  * An enumeration of status codes.
7282
+ *
7283
+ * @since 1.0.0
7245
7284
  */
7246
7285
  declare enum SpanStatusCode {
7247
7286
  /**
@@ -8798,6 +8837,8 @@ export declare type TextUIPart = {
8798
8837
  * Defines TimeInput.
8799
8838
  *
8800
8839
  * hrtime, epoch milliseconds, performance.now() or Date
8840
+ *
8841
+ * @since 1.0.0
8801
8842
  */
8802
8843
  declare type TimeInput = HrTime | number | Date;
8803
8844
 
@@ -9142,6 +9183,8 @@ export declare class TooManyEmbeddingValuesForCallError extends AISDKError {
9142
9183
 
9143
9184
  /**
9144
9185
  * Tracer provides an interface for creating {@link Span}s.
9186
+ *
9187
+ * @since 1.0.0
9145
9188
  */
9146
9189
  declare interface Tracer {
9147
9190
  /**
@@ -9208,6 +9251,9 @@ declare interface Tracer {
9208
9251
  startActiveSpan<F extends (span: Span) => unknown>(name: string, options: SpanOptions, context: Context, fn: F): ReturnType<F>;
9209
9252
  }
9210
9253
 
9254
+ /**
9255
+ * @since 1.0.0
9256
+ */
9211
9257
  declare interface TraceState {
9212
9258
  /**
9213
9259
  * Create a new TraceState which inherits from this TraceState and has the
@@ -732,6 +732,8 @@ export declare type AsyncIterableStream<T> = AsyncIterable<T> & ReadableStream<T
732
732
  * Attributes is a map from string to attribute values.
733
733
  *
734
734
  * Note: only the own enumerable keys are counted as valid attribute keys.
735
+ *
736
+ * @since 1.3.0
735
737
  */
736
738
  declare interface Attributes {
737
739
  [attributeKey: string]: AttributeValue | undefined;
@@ -741,6 +743,8 @@ declare interface Attributes {
741
743
  * Attribute values may be any non-nullish primitive value except an object.
742
744
  *
743
745
  * null or undefined attribute values are invalid and will result in undefined behavior.
746
+ *
747
+ * @since 1.3.0
744
748
  */
745
749
  declare type AttributeValue = string | number | boolean | Array<null | undefined | string> | Array<null | undefined | number> | Array<null | undefined | boolean>;
746
750
 
@@ -1125,6 +1129,9 @@ export declare type ContentPart<TOOLS extends ToolSet> = {
1125
1129
  providerMetadata?: ProviderMetadata;
1126
1130
  }) | ToolApprovalRequestOutput<TOOLS>;
1127
1131
 
1132
+ /**
1133
+ * @since 1.0.0
1134
+ */
1128
1135
  declare interface Context {
1129
1136
  /**
1130
1137
  * Get a value from the context.
@@ -2680,6 +2687,8 @@ declare class EventSourceParserStream extends TransformStream<string, EventSourc
2680
2687
  * Defines Exception.
2681
2688
  *
2682
2689
  * string or an object with one of (message or name or code) and optional stack
2690
+ *
2691
+ * @since 1.0.0
2683
2692
  */
2684
2693
  declare type Exception = ExceptionWithCode | ExceptionWithMessage | ExceptionWithName | string;
2685
2694
 
@@ -4237,6 +4246,8 @@ export declare function hasToolCall(toolName: string): StopCondition<any>;
4237
4246
  * The second number is calculated by converting the digits after the decimal point of the subtraction, (1609504210150 / 1000) - HrTime[0], to nanoseconds:
4238
4247
  * HrTime[1] = Number((1609504210.150 - HrTime[0]).toFixed(9)) * 1e9 = 150000000.
4239
4248
  * This is represented in HrTime format as [1609504210, 150000000].
4249
+ *
4250
+ * @since 1.0.0
4240
4251
  */
4241
4252
  declare type HrTime = [number, number];
4242
4253
 
@@ -7445,6 +7456,8 @@ declare function lazySchema_2<SCHEMA>(createSchema: () => Schema<SCHEMA>): LazyS
7445
7456
  * However, it is desirable to associate incoming SpanContext to new trace
7446
7457
  * initiated on service provider side so two traces (from Client and from
7447
7458
  * Service Provider) can be correlated.
7459
+ *
7460
+ * @since 1.0.0
7448
7461
  */
7449
7462
  declare interface Link {
7450
7463
  /** The {@link SpanContext} of a linked span. */
@@ -10006,6 +10019,8 @@ export declare type SourceUrlUIPart = {
10006
10019
  * may have children.
10007
10020
  *
10008
10021
  * Spans are created by the {@link Tracer.startSpan} method.
10022
+ *
10023
+ * @since 1.0.0
10009
10024
  */
10010
10025
  declare interface Span {
10011
10026
  /**
@@ -10065,11 +10080,21 @@ declare interface Span {
10065
10080
  */
10066
10081
  addLinks(links: Link[]): this;
10067
10082
  /**
10068
- * Sets a status to the span. If used, this will override the default Span
10069
- * status. Default is {@link SpanStatusCode.UNSET}. SetStatus overrides the value
10070
- * of previous calls to SetStatus on the Span.
10083
+ * Sets the status of the span.
10084
+ *
10085
+ * By default, a span has status {@link SpanStatusCode.UNSET}.
10086
+ * Calling this method overrides that default.
10087
+ *
10088
+ * The status codes have a total order: `OK > ERROR > UNSET`.
10089
+ *
10090
+ * - Once {@link SpanStatusCode.OK} is set, any further attempts to change
10091
+ * the status are ignored.
10092
+ * - Any attempt to set {@link SpanStatusCode.UNSET} is always ignored.
10093
+ *
10094
+ * The `message` field is only used when {@link SpanStatusCode.ERROR} is set.
10095
+ * For all other status codes, `message` is ignored.
10071
10096
  *
10072
- * @param status the SpanStatus to set.
10097
+ * @param status The {@link SpanStatus} to set.
10073
10098
  */
10074
10099
  setStatus(status: SpanStatus): this;
10075
10100
  /**
@@ -10114,17 +10139,21 @@ declare interface Span {
10114
10139
 
10115
10140
  /**
10116
10141
  * @deprecated please use {@link Attributes}
10142
+ * @since 1.0.0
10117
10143
  */
10118
10144
  declare type SpanAttributes = Attributes;
10119
10145
 
10120
10146
  /**
10121
10147
  * @deprecated please use {@link AttributeValue}
10148
+ * @since 1.0.0
10122
10149
  */
10123
10150
  declare type SpanAttributeValue = AttributeValue;
10124
10151
 
10125
10152
  /**
10126
10153
  * A SpanContext represents the portion of a {@link Span} which must be
10127
10154
  * serialized and propagated along side of a {@link Baggage}.
10155
+ *
10156
+ * @since 1.0.0
10128
10157
  */
10129
10158
  declare interface SpanContext {
10130
10159
  /**
@@ -10174,6 +10203,9 @@ declare interface SpanContext {
10174
10203
  traceState?: TraceState;
10175
10204
  }
10176
10205
 
10206
+ /**
10207
+ * @since 1.0.0
10208
+ */
10177
10209
  declare enum SpanKind {
10178
10210
  /** Default value. Indicates that the span is used internally. */
10179
10211
  INTERNAL = 0,
@@ -10203,6 +10235,8 @@ declare enum SpanKind {
10203
10235
 
10204
10236
  /**
10205
10237
  * Options needed for span creation
10238
+ *
10239
+ * @since 1.0.0
10206
10240
  */
10207
10241
  declare interface SpanOptions {
10208
10242
  /**
@@ -10211,7 +10245,7 @@ declare interface SpanOptions {
10211
10245
  */
10212
10246
  kind?: SpanKind;
10213
10247
  /** A span's attributes */
10214
- attributes?: SpanAttributes;
10248
+ attributes?: Attributes;
10215
10249
  /** {@link Link}s span to other spans */
10216
10250
  links?: Link[];
10217
10251
  /** A manually specified start time for the created `Span` object. */
@@ -10220,6 +10254,9 @@ declare interface SpanOptions {
10220
10254
  root?: boolean;
10221
10255
  }
10222
10256
 
10257
+ /**
10258
+ * @since 1.0.0
10259
+ */
10223
10260
  declare interface SpanStatus {
10224
10261
  /** The status code of this message. */
10225
10262
  code: SpanStatusCode;
@@ -10229,6 +10266,8 @@ declare interface SpanStatus {
10229
10266
 
10230
10267
  /**
10231
10268
  * An enumeration of status codes.
10269
+ *
10270
+ * @since 1.0.0
10232
10271
  */
10233
10272
  declare enum SpanStatusCode {
10234
10273
  /**
@@ -11981,6 +12020,8 @@ export declare type TextUIPart = {
11981
12020
  * Defines TimeInput.
11982
12021
  *
11983
12022
  * hrtime, epoch milliseconds, performance.now() or Date
12023
+ *
12024
+ * @since 1.0.0
11984
12025
  */
11985
12026
  declare type TimeInput = HrTime | number | Date;
11986
12027
 
@@ -13421,6 +13462,8 @@ export declare class TooManyEmbeddingValuesForCallError extends AISDKError {
13421
13462
 
13422
13463
  /**
13423
13464
  * Tracer provides an interface for creating {@link Span}s.
13465
+ *
13466
+ * @since 1.0.0
13424
13467
  */
13425
13468
  declare interface Tracer {
13426
13469
  /**
@@ -13487,6 +13530,9 @@ declare interface Tracer {
13487
13530
  startActiveSpan<F extends (span: Span) => unknown>(name: string, options: SpanOptions, context: Context, fn: F): ReturnType<F>;
13488
13531
  }
13489
13532
 
13533
+ /**
13534
+ * @since 1.0.0
13535
+ */
13490
13536
  declare interface TraceState {
13491
13537
  /**
13492
13538
  * Create a new TraceState which inherits from this TraceState and has the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/schema-compat",
3
- "version": "1.2.9-alpha.1",
3
+ "version": "1.2.9",
4
4
  "description": "Tool schema compatibility layer for Mastra.ai",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -107,24 +107,24 @@
107
107
  "@standard-schema/spec": "^1.1.0",
108
108
  "@types/json-schema": "^7.0.15",
109
109
  "@types/node": "22.19.15",
110
- "@vitest/coverage-v8": "4.0.18",
111
- "@vitest/ui": "4.0.18",
110
+ "@vitest/coverage-v8": "4.1.4",
111
+ "@vitest/ui": "4.1.4",
112
112
  "ajv": "^8.18.0",
113
113
  "arktype": "^2.2.0",
114
- "eslint": "^9.39.4",
114
+ "eslint": "^10.2.1",
115
115
  "json-schema-traverse": "^1.0.0",
116
116
  "tsup": "^8.5.1",
117
117
  "typescript": "^5.9.3",
118
- "vitest": "4.0.18",
118
+ "vitest": "4.1.4",
119
119
  "zod": "^4.3.6",
120
120
  "zod-v3": "npm:zod@^3.25.76",
121
- "@internal/ai-sdk-v4": "0.0.30",
122
- "@internal/ai-sdk-v5": "0.0.30",
123
- "@internal/llm-recorder": "0.0.19",
124
- "@internal/lint": "0.0.83",
125
- "@internal/test-utils": "0.0.19",
126
- "@internal/types-builder": "0.0.58",
127
- "@internal/ai-v6": "0.0.30"
121
+ "@internal/ai-sdk-v4": "0.0.31",
122
+ "@internal/ai-sdk-v5": "0.0.31",
123
+ "@internal/llm-recorder": "0.0.20",
124
+ "@internal/test-utils": "0.0.20",
125
+ "@internal/lint": "0.0.84",
126
+ "@internal/types-builder": "0.0.59",
127
+ "@internal/ai-v6": "0.0.31"
128
128
  },
129
129
  "homepage": "https://mastra.ai",
130
130
  "repository": {