@mastra/fastembed 0.0.0-fix-local-pkg-cwd-20251226155239 → 0.0.0-fix-11640-persist-workflow-events-to-memory-20260106220027
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 +12 -1
- package/dist/_types/@internal_ai-sdk-v5/dist/index.d.ts +122 -7
- package/dist/index.cjs +14 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +14 -14
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @mastra/fastembed
|
|
2
2
|
|
|
3
|
-
## 0.0.0-fix-
|
|
3
|
+
## 0.0.0-fix-11640-persist-workflow-events-to-memory-20260106220027
|
|
4
4
|
|
|
5
5
|
### Major Changes
|
|
6
6
|
|
|
@@ -12,6 +12,17 @@
|
|
|
12
12
|
|
|
13
13
|
### Patch Changes
|
|
14
14
|
|
|
15
|
+
- Add embedded documentation support for Mastra packages ([#11472](https://github.com/mastra-ai/mastra/pull/11472))
|
|
16
|
+
|
|
17
|
+
Mastra packages now include embedded documentation in the published npm package under `dist/docs/`. This enables coding agents and AI assistants to understand and use the framework by reading documentation directly from `node_modules`.
|
|
18
|
+
|
|
19
|
+
Each package includes:
|
|
20
|
+
- **SKILL.md** - Entry point explaining the package's purpose and capabilities
|
|
21
|
+
- **SOURCE_MAP.json** - Machine-readable index mapping exports to types and implementation files
|
|
22
|
+
- **Topic folders** - Conceptual documentation organized by feature area
|
|
23
|
+
|
|
24
|
+
Documentation is driven by the `packages` frontmatter field in MDX files, which maps docs to their corresponding packages. CI validation ensures all docs include this field.
|
|
25
|
+
|
|
15
26
|
- Embed AI types to fix peerdeps mismatches ([`9650cce`](https://github.com/mastra-ai/mastra/commit/9650cce52a1d917ff9114653398e2a0f5c3ba808))
|
|
16
27
|
|
|
17
28
|
- Added support for AI SDK v6 embedding models (specification version v3) in memory and vector modules. Fixed TypeScript error where `ModelRouterEmbeddingModel` was trying to implement a union type instead of `EmbeddingModelV2` directly. ([#11362](https://github.com/mastra-ai/mastra/pull/11362))
|
|
@@ -279,7 +279,9 @@ declare namespace _ai_sdk_provider_utils {
|
|
|
279
279
|
withUserAgentSuffix,
|
|
280
280
|
withoutTrailingSlash,
|
|
281
281
|
zodSchema,
|
|
282
|
-
|
|
282
|
+
StandardJSONSchemaV1,
|
|
283
|
+
StandardSchemaV1,
|
|
284
|
+
StandardTypedV1
|
|
283
285
|
}
|
|
284
286
|
}
|
|
285
287
|
|
|
@@ -5913,14 +5915,131 @@ declare type SpeechModelV2ProviderOptions = Record<string, Record<string, JSONVa
|
|
|
5913
5915
|
*/
|
|
5914
5916
|
export declare type SpeechWarning = SpeechModelV2CallWarning;
|
|
5915
5917
|
|
|
5918
|
+
/** The Standard JSON Schema interface. */
|
|
5919
|
+
declare interface StandardJSONSchemaV1<Input = unknown, Output = Input> {
|
|
5920
|
+
/** The Standard JSON Schema properties. */
|
|
5921
|
+
readonly "~standard": StandardJSONSchemaV1.Props<Input, Output>;
|
|
5922
|
+
}
|
|
5923
|
+
|
|
5924
|
+
declare namespace StandardJSONSchemaV1 {
|
|
5925
|
+
/** The Standard JSON Schema properties interface. */
|
|
5926
|
+
interface Props<Input = unknown, Output = Input> extends StandardTypedV1.Props<Input, Output> {
|
|
5927
|
+
/** Methods for generating the input/output JSON Schema. */
|
|
5928
|
+
readonly jsonSchema: StandardJSONSchemaV1.Converter;
|
|
5929
|
+
}
|
|
5930
|
+
/** The Standard JSON Schema converter interface. */
|
|
5931
|
+
interface Converter {
|
|
5932
|
+
/** Converts the input type to JSON Schema. May throw if conversion is not supported. */
|
|
5933
|
+
readonly input: (options: StandardJSONSchemaV1.Options) => Record<string, unknown>;
|
|
5934
|
+
/** Converts the output type to JSON Schema. May throw if conversion is not supported. */
|
|
5935
|
+
readonly output: (options: StandardJSONSchemaV1.Options) => Record<string, unknown>;
|
|
5936
|
+
}
|
|
5937
|
+
/**
|
|
5938
|
+
* The target version of the generated JSON Schema.
|
|
5939
|
+
*
|
|
5940
|
+
* It is *strongly recommended* that implementers support `"draft-2020-12"` and `"draft-07"`, as they are both in wide use. All other targets can be implemented on a best-effort basis. Libraries should throw if they don't support a specified target.
|
|
5941
|
+
*
|
|
5942
|
+
* The `"openapi-3.0"` target is intended as a standardized specifier for OpenAPI 3.0 which is a superset of JSON Schema `"draft-04"`.
|
|
5943
|
+
*/
|
|
5944
|
+
type Target = "draft-2020-12" | "draft-07" | "openapi-3.0" | ({} & string);
|
|
5945
|
+
/** The options for the input/output methods. */
|
|
5946
|
+
interface Options {
|
|
5947
|
+
/** Specifies the target version of the generated JSON Schema. Support for all versions is on a best-effort basis. If a given version is not supported, the library should throw. */
|
|
5948
|
+
readonly target: Target;
|
|
5949
|
+
/** Explicit support for additional vendor-specific parameters, if needed. */
|
|
5950
|
+
readonly libraryOptions?: Record<string, unknown> | undefined;
|
|
5951
|
+
}
|
|
5952
|
+
/** The Standard types interface. */
|
|
5953
|
+
interface Types<Input = unknown, Output = Input> extends StandardTypedV1.Types<Input, Output> {
|
|
5954
|
+
}
|
|
5955
|
+
/** Infers the input type of a Standard. */
|
|
5956
|
+
type InferInput<Schema extends StandardTypedV1> = StandardTypedV1.InferInput<Schema>;
|
|
5957
|
+
/** Infers the output type of a Standard. */
|
|
5958
|
+
type InferOutput<Schema extends StandardTypedV1> = StandardTypedV1.InferOutput<Schema>;
|
|
5959
|
+
}
|
|
5960
|
+
|
|
5916
5961
|
/** The Standard Schema interface. */
|
|
5917
5962
|
declare interface StandardSchemaV1<Input = unknown, Output = Input> {
|
|
5918
5963
|
/** The Standard Schema properties. */
|
|
5919
5964
|
readonly "~standard": StandardSchemaV1.Props<Input, Output>;
|
|
5920
|
-
}
|
|
5921
|
-
|
|
5965
|
+
}
|
|
5966
|
+
|
|
5967
|
+
declare namespace StandardSchemaV1 {
|
|
5968
|
+
/** The Standard Schema properties interface. */
|
|
5969
|
+
interface Props<Input = unknown, Output = Input> extends StandardTypedV1.Props<Input, Output> {
|
|
5970
|
+
/** Validates unknown input values. */
|
|
5971
|
+
readonly validate: (value: unknown, options?: StandardSchemaV1.Options | undefined) => Result<Output> | Promise<Result<Output>>;
|
|
5972
|
+
}
|
|
5973
|
+
/** The result interface of the validate function. */
|
|
5974
|
+
type Result<Output> = SuccessResult<Output> | FailureResult;
|
|
5975
|
+
/** The result interface if validation succeeds. */
|
|
5976
|
+
interface SuccessResult<Output> {
|
|
5977
|
+
/** The typed output value. */
|
|
5978
|
+
readonly value: Output;
|
|
5979
|
+
/** A falsy value for `issues` indicates success. */
|
|
5980
|
+
readonly issues?: undefined;
|
|
5981
|
+
}
|
|
5982
|
+
interface Options {
|
|
5983
|
+
/** Explicit support for additional vendor-specific parameters, if needed. */
|
|
5984
|
+
readonly libraryOptions?: Record<string, unknown> | undefined;
|
|
5985
|
+
}
|
|
5986
|
+
/** The result interface if validation fails. */
|
|
5987
|
+
interface FailureResult {
|
|
5988
|
+
/** The issues of failed validation. */
|
|
5989
|
+
readonly issues: ReadonlyArray<Issue>;
|
|
5990
|
+
}
|
|
5991
|
+
/** The issue interface of the failure output. */
|
|
5992
|
+
interface Issue {
|
|
5993
|
+
/** The error message of the issue. */
|
|
5994
|
+
readonly message: string;
|
|
5995
|
+
/** The path of the issue, if any. */
|
|
5996
|
+
readonly path?: ReadonlyArray<PropertyKey | PathSegment> | undefined;
|
|
5997
|
+
}
|
|
5998
|
+
/** The path segment interface of the issue. */
|
|
5999
|
+
interface PathSegment {
|
|
6000
|
+
/** The key representing a path segment. */
|
|
6001
|
+
readonly key: PropertyKey;
|
|
6002
|
+
}
|
|
6003
|
+
/** The Standard types interface. */
|
|
6004
|
+
interface Types<Input = unknown, Output = Input> extends StandardTypedV1.Types<Input, Output> {
|
|
6005
|
+
}
|
|
6006
|
+
/** Infers the input type of a Standard. */
|
|
6007
|
+
type InferInput<Schema extends StandardTypedV1> = StandardTypedV1.InferInput<Schema>;
|
|
6008
|
+
/** Infers the output type of a Standard. */
|
|
6009
|
+
type InferOutput<Schema extends StandardTypedV1> = StandardTypedV1.InferOutput<Schema>;
|
|
6010
|
+
}
|
|
6011
|
+
|
|
5922
6012
|
declare function standardSchemaValidator<OBJECT>(standardSchema: StandardSchemaV1<unknown, OBJECT>): Validator<OBJECT>;
|
|
5923
6013
|
|
|
6014
|
+
/** The Standard Typed interface. This is a base type extended by other specs. */
|
|
6015
|
+
declare interface StandardTypedV1<Input = unknown, Output = Input> {
|
|
6016
|
+
/** The Standard properties. */
|
|
6017
|
+
readonly "~standard": StandardTypedV1.Props<Input, Output>;
|
|
6018
|
+
}
|
|
6019
|
+
|
|
6020
|
+
declare namespace StandardTypedV1 {
|
|
6021
|
+
/** The Standard Typed properties interface. */
|
|
6022
|
+
interface Props<Input = unknown, Output = Input> {
|
|
6023
|
+
/** The version number of the standard. */
|
|
6024
|
+
readonly version: 1;
|
|
6025
|
+
/** The vendor name of the schema library. */
|
|
6026
|
+
readonly vendor: string;
|
|
6027
|
+
/** Inferred types associated with the schema. */
|
|
6028
|
+
readonly types?: Types<Input, Output> | undefined;
|
|
6029
|
+
}
|
|
6030
|
+
/** The Standard Typed types interface. */
|
|
6031
|
+
interface Types<Input = unknown, Output = Input> {
|
|
6032
|
+
/** The input type of the schema. */
|
|
6033
|
+
readonly input: Input;
|
|
6034
|
+
/** The output type of the schema. */
|
|
6035
|
+
readonly output: Output;
|
|
6036
|
+
}
|
|
6037
|
+
/** Infers the input type of a Standard Typed. */
|
|
6038
|
+
type InferInput<Schema extends StandardTypedV1> = NonNullable<Schema["~standard"]["types"]>["input"];
|
|
6039
|
+
/** Infers the output type of a Standard Typed. */
|
|
6040
|
+
type InferOutput<Schema extends StandardTypedV1> = NonNullable<Schema["~standard"]["types"]>["output"];
|
|
6041
|
+
}
|
|
6042
|
+
|
|
5924
6043
|
export declare type StaticToolCall<TOOLS extends ToolSet> = ValueOf<{
|
|
5925
6044
|
[NAME in keyof TOOLS]: {
|
|
5926
6045
|
type: 'tool-call';
|
|
@@ -8389,8 +8508,4 @@ export namespace Output {
|
|
|
8389
8508
|
export { output_Output as Output, output_object as object, output_text as text };
|
|
8390
8509
|
}
|
|
8391
8510
|
|
|
8392
|
-
export namespace StandardSchemaV1 {
|
|
8393
|
-
export { };
|
|
8394
|
-
}
|
|
8395
|
-
|
|
8396
8511
|
export { schemaSymbol, symbol$1, symbol$1_2, symbol$2, symbol$2_2, symbol$3, symbol$3_2, symbol$4, symbol$4_2, symbol$5, symbol$5_2, symbol$6, symbol$6_2, symbol$7, symbol$7_2, symbol$8, symbol$8_2, symbol$9, symbol$9_2, symbol$a, symbol$a_2, symbol$b, symbol$b_2, symbol$c, symbol$c_2, symbol$d, symbol$d_2, symbol$e, symbol, symbol_2, validatorSymbol };
|
package/dist/index.cjs
CHANGED
|
@@ -598,7 +598,7 @@ function secureJsonParse(text4) {
|
|
|
598
598
|
Error.stackTraceLimit = stackTraceLimit;
|
|
599
599
|
}
|
|
600
600
|
}
|
|
601
|
-
var validatorSymbol = Symbol.for("vercel.ai.validator");
|
|
601
|
+
var validatorSymbol = /* @__PURE__ */ Symbol.for("vercel.ai.validator");
|
|
602
602
|
function validator(validate) {
|
|
603
603
|
return { [validatorSymbol]: true, validate };
|
|
604
604
|
}
|
|
@@ -912,7 +912,7 @@ var getRelativePath = (pathA, pathB) => {
|
|
|
912
912
|
}
|
|
913
913
|
return [(pathA.length - i).toString(), ...pathB.slice(i)].join("/");
|
|
914
914
|
};
|
|
915
|
-
var ignoreOverride = Symbol(
|
|
915
|
+
var ignoreOverride = /* @__PURE__ */ Symbol(
|
|
916
916
|
"Let zodToJsonSchema decide on which parser to use"
|
|
917
917
|
);
|
|
918
918
|
var defaultOptions = {
|
|
@@ -2032,7 +2032,7 @@ function zodSchema(zodSchema22, options) {
|
|
|
2032
2032
|
return zod3Schema(zodSchema22);
|
|
2033
2033
|
}
|
|
2034
2034
|
}
|
|
2035
|
-
var schemaSymbol = Symbol.for("vercel.ai.schema");
|
|
2035
|
+
var schemaSymbol = /* @__PURE__ */ Symbol.for("vercel.ai.schema");
|
|
2036
2036
|
function jsonSchema(jsonSchema22, {
|
|
2037
2037
|
validate
|
|
2038
2038
|
} = {}) {
|
|
@@ -2087,7 +2087,7 @@ var require_get_context = chunkSG3GRV3O_cjs.__commonJS({
|
|
|
2087
2087
|
getContext: () => getContext3
|
|
2088
2088
|
});
|
|
2089
2089
|
module.exports = __toCommonJS(get_context_exports);
|
|
2090
|
-
var SYMBOL_FOR_REQ_CONTEXT = Symbol.for("@vercel/request-context");
|
|
2090
|
+
var SYMBOL_FOR_REQ_CONTEXT = /* @__PURE__ */ Symbol.for("@vercel/request-context");
|
|
2091
2091
|
function getContext3() {
|
|
2092
2092
|
const fromSymbol = globalThis;
|
|
2093
2093
|
return fromSymbol[SYMBOL_FOR_REQ_CONTEXT]?.get?.() ?? {};
|
|
@@ -3116,7 +3116,7 @@ function _makeCompatibilityCheck(ownVersion) {
|
|
|
3116
3116
|
}
|
|
3117
3117
|
var isCompatible = _makeCompatibilityCheck(VERSION22);
|
|
3118
3118
|
var major = VERSION22.split(".")[0];
|
|
3119
|
-
var GLOBAL_OPENTELEMETRY_API_KEY = Symbol.for("opentelemetry.js.api." + major);
|
|
3119
|
+
var GLOBAL_OPENTELEMETRY_API_KEY = /* @__PURE__ */ Symbol.for("opentelemetry.js.api." + major);
|
|
3120
3120
|
var _global = _globalThis;
|
|
3121
3121
|
function registerGlobal(type, instance, diag, allowOverride) {
|
|
3122
3122
|
var _a163;
|
|
@@ -4394,7 +4394,7 @@ function customProvider({
|
|
|
4394
4394
|
};
|
|
4395
4395
|
}
|
|
4396
4396
|
|
|
4397
|
-
// ../_vendored/ai_v4/dist/chunk-
|
|
4397
|
+
// ../_vendored/ai_v4/dist/chunk-OPIPXJLE.js
|
|
4398
4398
|
var __create = Object.create;
|
|
4399
4399
|
var __defProp2 = Object.defineProperty;
|
|
4400
4400
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -4724,7 +4724,7 @@ var createIdGenerator2 = ({
|
|
|
4724
4724
|
return (size) => `${prefix}${separator}${generator(size)}`;
|
|
4725
4725
|
};
|
|
4726
4726
|
createIdGenerator2();
|
|
4727
|
-
var validatorSymbol2 = Symbol.for("vercel.ai.validator");
|
|
4727
|
+
var validatorSymbol2 = /* @__PURE__ */ Symbol.for("vercel.ai.validator");
|
|
4728
4728
|
function validator2(validate) {
|
|
4729
4729
|
return { [validatorSymbol2]: true, validate };
|
|
4730
4730
|
}
|
|
@@ -4782,7 +4782,7 @@ function safeParseJSON2({
|
|
|
4782
4782
|
};
|
|
4783
4783
|
}
|
|
4784
4784
|
}
|
|
4785
|
-
var ignoreOverride2 = Symbol("Let zodToJsonSchema decide on which parser to use");
|
|
4785
|
+
var ignoreOverride2 = /* @__PURE__ */ Symbol("Let zodToJsonSchema decide on which parser to use");
|
|
4786
4786
|
var defaultOptions2 = {
|
|
4787
4787
|
name: void 0,
|
|
4788
4788
|
$refStrategy: "root",
|
|
@@ -6590,7 +6590,7 @@ function zodSchema2(zodSchema22, options) {
|
|
|
6590
6590
|
}
|
|
6591
6591
|
);
|
|
6592
6592
|
}
|
|
6593
|
-
var schemaSymbol2 = Symbol.for("vercel.ai.schema");
|
|
6593
|
+
var schemaSymbol2 = /* @__PURE__ */ Symbol.for("vercel.ai.schema");
|
|
6594
6594
|
function jsonSchema2(jsonSchema22, {
|
|
6595
6595
|
validate
|
|
6596
6596
|
} = {}) {
|
|
@@ -6677,7 +6677,7 @@ function _makeCompatibilityCheck2(ownVersion) {
|
|
|
6677
6677
|
}
|
|
6678
6678
|
var isCompatible2 = _makeCompatibilityCheck2(VERSION3);
|
|
6679
6679
|
var major2 = VERSION3.split(".")[0];
|
|
6680
|
-
var GLOBAL_OPENTELEMETRY_API_KEY2 = Symbol.for("opentelemetry.js.api." + major2);
|
|
6680
|
+
var GLOBAL_OPENTELEMETRY_API_KEY2 = /* @__PURE__ */ Symbol.for("opentelemetry.js.api." + major2);
|
|
6681
6681
|
var _global2 = _globalThis2;
|
|
6682
6682
|
function registerGlobal2(type, instance, diag, allowOverride) {
|
|
6683
6683
|
var _a172;
|
|
@@ -8596,7 +8596,7 @@ function addAdditionalPropertiesToJsonSchema(jsonSchema22) {
|
|
|
8596
8596
|
}
|
|
8597
8597
|
return jsonSchema22;
|
|
8598
8598
|
}
|
|
8599
|
-
var ignoreOverride3 = Symbol(
|
|
8599
|
+
var ignoreOverride3 = /* @__PURE__ */ Symbol(
|
|
8600
8600
|
"Let zodToJsonSchema decide on which parser to use"
|
|
8601
8601
|
);
|
|
8602
8602
|
var defaultOptions3 = {
|
|
@@ -9678,7 +9678,7 @@ var zod3ToJsonSchema = (schema, options) => {
|
|
|
9678
9678
|
combined.$schema = "http://json-schema.org/draft-07/schema#";
|
|
9679
9679
|
return combined;
|
|
9680
9680
|
};
|
|
9681
|
-
var schemaSymbol3 = Symbol.for("vercel.ai.schema");
|
|
9681
|
+
var schemaSymbol3 = /* @__PURE__ */ Symbol.for("vercel.ai.schema");
|
|
9682
9682
|
function lazySchema(createSchema) {
|
|
9683
9683
|
let schema;
|
|
9684
9684
|
return () => {
|
|
@@ -10079,7 +10079,7 @@ var require_get_context2 = chunkZUQPUTTO_cjs.__commonJS({
|
|
|
10079
10079
|
getContext: () => getContext3
|
|
10080
10080
|
});
|
|
10081
10081
|
module.exports = __toCommonJS(get_context_exports);
|
|
10082
|
-
var SYMBOL_FOR_REQ_CONTEXT = Symbol.for("@vercel/request-context");
|
|
10082
|
+
var SYMBOL_FOR_REQ_CONTEXT = /* @__PURE__ */ Symbol.for("@vercel/request-context");
|
|
10083
10083
|
function getContext3() {
|
|
10084
10084
|
const fromSymbol = globalThis;
|
|
10085
10085
|
return fromSymbol[SYMBOL_FOR_REQ_CONTEXT]?.get?.() ?? {};
|
|
@@ -11112,7 +11112,7 @@ function _makeCompatibilityCheck3(ownVersion) {
|
|
|
11112
11112
|
}
|
|
11113
11113
|
var isCompatible3 = _makeCompatibilityCheck3(VERSION23);
|
|
11114
11114
|
var major3 = VERSION23.split(".")[0];
|
|
11115
|
-
var GLOBAL_OPENTELEMETRY_API_KEY3 = Symbol.for("opentelemetry.js.api." + major3);
|
|
11115
|
+
var GLOBAL_OPENTELEMETRY_API_KEY3 = /* @__PURE__ */ Symbol.for("opentelemetry.js.api." + major3);
|
|
11116
11116
|
var _global3 = _globalThis3;
|
|
11117
11117
|
function registerGlobal3(type, instance, diag, allowOverride) {
|
|
11118
11118
|
var _a146;
|