@mastra/rag 2.6.6-alpha.0 → 2.6.7-alpha.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.
@@ -3,7 +3,7 @@ name: mastra-rag
3
3
  description: Documentation for @mastra/rag. Use when working with @mastra/rag APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/rag"
6
- version: "2.6.6-alpha.0"
6
+ version: "2.6.7-alpha.0"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.6.6-alpha.0",
2
+ "version": "2.6.7-alpha.0",
3
3
  "package": "@mastra/rag",
4
4
  "exports": {},
5
5
  "modules": {}
@@ -210,8 +210,6 @@ Observations are added in stable chunks, which helps providers reuse the existin
210
210
 
211
211
  ## Signals
212
212
 
213
- > **Beta:** Signals may change without a major version bump until the API is stable.
214
-
215
213
  [Signals](https://mastra.ai/docs/harness/signals) add messages or system-generated context to a memory-backed thread. Delivery depends on the thread's state: a signal can wake an idle agent or enter an active loop. It can also wait for the next turn or persist without waking the agent.
216
214
 
217
215
  State signals require memory and an existing thread. Notification inbox signals require a storage adapter with notification support.
package/dist/index.cjs CHANGED
@@ -634,7 +634,7 @@ var UnsupportedFunctionalityError = class extends AISDKError {
634
634
  };
635
635
  _a14 = symbol14;
636
636
  //#endregion
637
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/nanoid/3.3.19/bb8b18de8c5719d31b4e1eca475b7409a05b078fc371f92d1bbba7aa803c85d0/node_modules/nanoid/non-secure/index.js
637
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/nanoid/5.1.16/f16424b532a5e69aacddcb2977ac17378b6f79695bbd27ead3d90c703848f22f/node_modules/nanoid/non-secure/index.js
638
638
  let customAlphabet = (alphabet, defaultSize = 21) => {
639
639
  return (size = defaultSize) => {
640
640
  let id = "";
@@ -644,7 +644,7 @@ let customAlphabet = (alphabet, defaultSize = 21) => {
644
644
  };
645
645
  };
646
646
  //#endregion
647
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@ai-sdk/provider-utils/2.2.8/52151efd10e124b032de4a62b4d25d0e5353c6829a00b02bce7f27fe8c7063b7/node_modules/@ai-sdk/provider-utils/dist/index.mjs
647
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@ai-sdk/provider-utils/2.2.8/fd79a5c5f5d36120acbfd746754884c17798c35178b46bd11cca9dff89c013d2/node_modules/@ai-sdk/provider-utils/dist/index.mjs
648
648
  var import_secure_json_parse = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
649
649
  const hasBuffer = typeof Buffer !== "undefined";
650
650
  const suspectProtoRx = /"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/;
@@ -1187,7 +1187,7 @@ function withoutTrailingSlash(url) {
1187
1187
  return url == null ? void 0 : url.replace(/\/$/, "");
1188
1188
  }
1189
1189
  //#endregion
1190
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@ai-sdk/openai/1.3.24/312581640555a819e614bdf1b3844a7ef4b79558f9ec4d5dbd71d5b6eb519752/node_modules/@ai-sdk/openai/dist/index.mjs
1190
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@ai-sdk/openai/1.3.24/016fac41d998ff168d98fde7926aa7713f8ffc38160a6b4427bfdc41fae1bc99/node_modules/@ai-sdk/openai/dist/index.mjs
1191
1191
  function convertToOpenAIChatMessages({ prompt, useLegacyFunctionCalling = false, systemMessageMode = "system" }) {
1192
1192
  const messages = [];
1193
1193
  const warnings = [];
@@ -6088,8 +6088,8 @@ var MDocument = class MDocument {
6088
6088
  attributes: {
6089
6089
  action: "chunk",
6090
6090
  strategy,
6091
- chunkSize: chunkOptions?.size,
6092
- chunkOverlap: chunkOptions?.overlap
6091
+ chunkSize: "maxSize" in chunkOptions ? chunkOptions.maxSize : void 0,
6092
+ chunkOverlap: "overlap" in chunkOptions ? chunkOptions.overlap : void 0
6093
6093
  }
6094
6094
  });
6095
6095
  try {