@mastra/mcp-docs-server 0.13.9-alpha.0 → 0.13.9-alpha.1
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/.docs/organized/changelogs/%40mastra%2Fclickhouse.md +15 -15
- package/.docs/organized/changelogs/%40mastra%2Fclient-js.md +11 -11
- package/.docs/organized/changelogs/%40mastra%2Fcore.md +13 -13
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloudflare.md +15 -15
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-netlify.md +13 -13
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-vercel.md +13 -13
- package/.docs/organized/changelogs/%40mastra%2Fdeployer.md +15 -15
- package/.docs/organized/changelogs/%40mastra%2Fdynamodb.md +16 -16
- package/.docs/organized/changelogs/%40mastra%2Fevals.md +17 -17
- package/.docs/organized/changelogs/%40mastra%2Ffirecrawl.md +14 -14
- package/.docs/organized/changelogs/%40mastra%2Flibsql.md +15 -15
- package/.docs/organized/changelogs/%40mastra%2Fmcp-docs-server.md +11 -11
- package/.docs/organized/changelogs/%40mastra%2Fmemory.md +14 -14
- package/.docs/organized/changelogs/%40mastra%2Fmongodb.md +16 -16
- package/.docs/organized/changelogs/%40mastra%2Fmssql.md +28 -1
- package/.docs/organized/changelogs/%40mastra%2Fplayground-ui.md +13 -13
- package/.docs/organized/changelogs/%40mastra%2Frag.md +13 -13
- package/.docs/organized/changelogs/%40mastra%2Fserver.md +11 -11
- package/.docs/organized/changelogs/%40mastra%2Fupstash.md +15 -15
- package/.docs/organized/changelogs/create-mastra.md +3 -3
- package/.docs/organized/changelogs/mastra.md +15 -15
- package/.docs/raw/memory/semantic-recall.mdx +2 -0
- package/.docs/raw/memory/working-memory.mdx +1 -1
- package/.docs/raw/rag/chunking-and-embedding.mdx +19 -3
- package/.docs/raw/reference/rag/chunk.mdx +169 -18
- package/package.json +4 -4
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @mastra/clickhouse
|
|
2
2
|
|
|
3
|
+
## 0.13.0-alpha.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- ea0c5f2: Add store support to new score api
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [ea0c5f2]
|
|
12
|
+
- Updated dependencies [b0e43c1]
|
|
13
|
+
- Updated dependencies [1fb812e]
|
|
14
|
+
- Updated dependencies [35c5798]
|
|
15
|
+
- @mastra/core@0.13.0-alpha.1
|
|
16
|
+
|
|
3
17
|
## 0.12.3
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -284,19 +298,5 @@
|
|
|
284
298
|
- Updated dependencies [f7f8293]
|
|
285
299
|
- @mastra/core@0.10.4-alpha.1
|
|
286
300
|
|
|
287
|
-
## 0.10.1
|
|
288
|
-
|
|
289
|
-
### Patch Changes
|
|
290
301
|
|
|
291
|
-
|
|
292
|
-
- c5bf1ce: Add backwards compat code for new MessageList in storage
|
|
293
|
-
- f0d559f: Fix peerdeps for alpha channel
|
|
294
|
-
- Updated dependencies [ee77e78]
|
|
295
|
-
- Updated dependencies [592a2db]
|
|
296
|
-
- Updated dependencies [e5dc18d]
|
|
297
|
-
- Updated dependencies [ab5adbe]
|
|
298
|
-
- Updated dependencies [1e8bb40]
|
|
299
|
-
- Updated dependencies [1b5fc55]
|
|
300
|
-
- Updated dependencies [195c428]
|
|
301
|
-
|
|
302
|
-
... 679 more lines hidden. See full changelog in package directory.
|
|
302
|
+
... 693 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @mastra/client-js
|
|
2
2
|
|
|
3
|
+
## 0.10.19-alpha.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [ea0c5f2]
|
|
8
|
+
- Updated dependencies [b0e43c1]
|
|
9
|
+
- Updated dependencies [1fb812e]
|
|
10
|
+
- Updated dependencies [35c5798]
|
|
11
|
+
- @mastra/core@0.13.0-alpha.1
|
|
12
|
+
|
|
3
13
|
## 0.10.19-alpha.0
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -288,15 +298,5 @@
|
|
|
288
298
|
|
|
289
299
|
- Updated dependencies [0b56518]
|
|
290
300
|
- Updated dependencies [2ba5b76]
|
|
291
|
-
- Updated dependencies [c3a30de]
|
|
292
|
-
- Updated dependencies [cf3a184]
|
|
293
|
-
- Updated dependencies [d6bfd60]
|
|
294
|
-
- @mastra/core@0.10.15-alpha.1
|
|
295
|
-
|
|
296
|
-
## 0.10.14-alpha.0
|
|
297
|
-
|
|
298
|
-
### Patch Changes
|
|
299
|
-
|
|
300
|
-
- 31f9f6b: Replace crypto randomUUID in client SDK"
|
|
301
301
|
|
|
302
|
-
...
|
|
302
|
+
... 1871 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @mastra/core
|
|
2
2
|
|
|
3
|
+
## 0.13.0-alpha.1
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- ea0c5f2: Update scorer api
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- b0e43c1: Fixed an issue where branching workflow steps maintained "suspended" status even after they've been successfully resumed and executed.
|
|
12
|
+
- 1fb812e: Fixed a bug in parallel workflow execution where resuming only one of multiple suspended parallel steps incorrectly completed the entire parallel block. The fix ensures proper execution and state management when resuming from suspension in parallel workflows.
|
|
13
|
+
- 35c5798: Add support for transpilePackages option
|
|
14
|
+
|
|
3
15
|
## 0.12.2-alpha.0
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -286,17 +298,5 @@
|
|
|
286
298
|
|
|
287
299
|
### Patch Changes
|
|
288
300
|
|
|
289
|
-
- db5cc15: Create thread if it does not exist yet in agent network stream, generate and loopStream
|
|
290
|
-
- 5237998: Fix foreach output
|
|
291
|
-
- 37c1acd: Format semantic recall messages grouped by dates and labeled by if they're from a different thread or not, to improve longmemeval scores
|
|
292
|
-
- 1aa60b1: Pipe runtimeContext to vNext network agent stream and generate steps, wire up runtimeContext for vNext Networks in cliet SDK & playground
|
|
293
|
-
- 89ec9d4: remove cohere-ai client dependency and just make a fetch call
|
|
294
|
-
- 626b0f4: [Cloud-126] Working Memory Playground - Added working memory to playground to allow users to view/edit working memory
|
|
295
|
-
- c22a91f: Fix nested workflow resume in loop workflow breaking
|
|
296
|
-
- f7403ab: Only change workflow status to success after all steps are successful
|
|
297
|
-
- 6c89d7f: Save runtimeContext in snapshot
|
|
298
|
-
|
|
299
|
-
## 0.10.14
|
|
300
|
-
|
|
301
301
|
|
|
302
|
-
...
|
|
302
|
+
... 2440 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @mastra/deployer-cloudflare
|
|
2
2
|
|
|
3
|
+
## 0.11.4-alpha.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 7b8172f: dependencies updates:
|
|
8
|
+
- Updated dependency [`rollup@~4.46.2` ↗︎](https://www.npmjs.com/package/rollup/v/4.46.2) (from `~4.44.2`, in `dependencies`)
|
|
9
|
+
- Updated dependencies [7b8172f]
|
|
10
|
+
- Updated dependencies [ea0c5f2]
|
|
11
|
+
- Updated dependencies [b0e43c1]
|
|
12
|
+
- Updated dependencies [1fb812e]
|
|
13
|
+
- Updated dependencies [35c5798]
|
|
14
|
+
- @mastra/deployer@0.13.0-alpha.1
|
|
15
|
+
- @mastra/core@0.13.0-alpha.1
|
|
16
|
+
|
|
3
17
|
## 0.11.4-alpha.0
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -284,19 +298,5 @@
|
|
|
284
298
|
- Updated dependencies [c22a91f]
|
|
285
299
|
- Updated dependencies [f7403ab]
|
|
286
300
|
- Updated dependencies [6c89d7f]
|
|
287
|
-
- @mastra/deployer@0.10.15
|
|
288
|
-
- @mastra/core@0.10.15
|
|
289
|
-
|
|
290
|
-
## 0.10.15-alpha.1
|
|
291
|
-
|
|
292
|
-
### Patch Changes
|
|
293
|
-
|
|
294
|
-
- fe4bbd4: Turn off installDependencies for cloudflare deployer build
|
|
295
|
-
- Updated dependencies [0b56518]
|
|
296
|
-
- Updated dependencies [2ba5b76]
|
|
297
|
-
- Updated dependencies [c3a30de]
|
|
298
|
-
- Updated dependencies [cf3a184]
|
|
299
|
-
- Updated dependencies [fe4bbd4]
|
|
300
|
-
- Updated dependencies [d6bfd60]
|
|
301
301
|
|
|
302
|
-
...
|
|
302
|
+
... 3062 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @mastra/deployer-netlify
|
|
2
2
|
|
|
3
|
+
## 0.11.11-alpha.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [7b8172f]
|
|
8
|
+
- Updated dependencies [ea0c5f2]
|
|
9
|
+
- Updated dependencies [b0e43c1]
|
|
10
|
+
- Updated dependencies [1fb812e]
|
|
11
|
+
- Updated dependencies [35c5798]
|
|
12
|
+
- @mastra/deployer@0.13.0-alpha.1
|
|
13
|
+
- @mastra/core@0.13.0-alpha.1
|
|
14
|
+
|
|
3
15
|
## 0.11.11-alpha.0
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -286,17 +298,5 @@
|
|
|
286
298
|
|
|
287
299
|
## 0.11.2
|
|
288
300
|
|
|
289
|
-
### Patch Changes
|
|
290
301
|
|
|
291
|
-
|
|
292
|
-
- Updated dependencies [9dda1ac]
|
|
293
|
-
- Updated dependencies [c984582]
|
|
294
|
-
- Updated dependencies [7e801dd]
|
|
295
|
-
- Updated dependencies [a606c75]
|
|
296
|
-
- Updated dependencies [7aa70a4]
|
|
297
|
-
- Updated dependencies [764f86a]
|
|
298
|
-
- Updated dependencies [1760a1c]
|
|
299
|
-
- Updated dependencies [038e5ae]
|
|
300
|
-
- Updated dependencies [7dda16a]
|
|
301
|
-
|
|
302
|
-
... 2857 more lines hidden. See full changelog in package directory.
|
|
302
|
+
... 2869 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @mastra/deployer-vercel
|
|
2
2
|
|
|
3
|
+
## 0.11.11-alpha.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [7b8172f]
|
|
8
|
+
- Updated dependencies [ea0c5f2]
|
|
9
|
+
- Updated dependencies [b0e43c1]
|
|
10
|
+
- Updated dependencies [1fb812e]
|
|
11
|
+
- Updated dependencies [35c5798]
|
|
12
|
+
- @mastra/deployer@0.13.0-alpha.1
|
|
13
|
+
- @mastra/core@0.13.0-alpha.1
|
|
14
|
+
|
|
3
15
|
## 0.11.11-alpha.0
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -286,17 +298,5 @@
|
|
|
286
298
|
|
|
287
299
|
## 0.11.2
|
|
288
300
|
|
|
289
|
-
### Patch Changes
|
|
290
301
|
|
|
291
|
-
|
|
292
|
-
- Updated dependencies [9dda1ac]
|
|
293
|
-
- Updated dependencies [c984582]
|
|
294
|
-
- Updated dependencies [7e801dd]
|
|
295
|
-
- Updated dependencies [a606c75]
|
|
296
|
-
- Updated dependencies [7aa70a4]
|
|
297
|
-
- Updated dependencies [764f86a]
|
|
298
|
-
- Updated dependencies [1760a1c]
|
|
299
|
-
- Updated dependencies [038e5ae]
|
|
300
|
-
- Updated dependencies [7dda16a]
|
|
301
|
-
|
|
302
|
-
... 2839 more lines hidden. See full changelog in package directory.
|
|
302
|
+
... 2851 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @mastra/deployer
|
|
2
2
|
|
|
3
|
+
## 0.13.0-alpha.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 7b8172f: dependencies updates:
|
|
8
|
+
- Updated dependency [`rollup@~4.46.2` ↗︎](https://www.npmjs.com/package/rollup/v/4.46.2) (from `~4.44.2`, in `dependencies`)
|
|
9
|
+
- 35c5798: Add support for transpilePackages option
|
|
10
|
+
- Updated dependencies [ea0c5f2]
|
|
11
|
+
- Updated dependencies [b0e43c1]
|
|
12
|
+
- Updated dependencies [1fb812e]
|
|
13
|
+
- Updated dependencies [35c5798]
|
|
14
|
+
- @mastra/core@0.13.0-alpha.1
|
|
15
|
+
- @mastra/server@0.13.0-alpha.1
|
|
16
|
+
|
|
3
17
|
## 0.12.2-alpha.0
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -284,19 +298,5 @@
|
|
|
284
298
|
- 45469c5: Resolve dependency of tsConfigPath modules
|
|
285
299
|
- 24eb25c: Provide fallback for extracted mastra options during bundling
|
|
286
300
|
- 703ac71: scores schema
|
|
287
|
-
- 4c06f06: Fix #tools import after the tools import rework
|
|
288
|
-
- 65e3395: Add Scores playground-ui and add scorer hooks
|
|
289
|
-
- 9de6f58: Unlocks the dev playground if auth is enabled
|
|
290
|
-
- 15ce274: Pipe all env vars in deloyer install
|
|
291
|
-
|
|
292
|
-
Fixes and issue with cloudflare
|
|
293
|
-
|
|
294
|
-
- Updated dependencies [f248d53]
|
|
295
|
-
- Updated dependencies [2affc57]
|
|
296
|
-
- Updated dependencies [66e13e3]
|
|
297
|
-
- Updated dependencies [edd9482]
|
|
298
|
-
- Updated dependencies [18344d7]
|
|
299
|
-
- Updated dependencies [35b1155]
|
|
300
|
-
- Updated dependencies [9d372c2]
|
|
301
301
|
|
|
302
|
-
...
|
|
302
|
+
... 3224 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @mastra/dynamodb
|
|
2
2
|
|
|
3
|
+
## 0.14.0-alpha.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- ea0c5f2: Add store support to new score api
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [ea0c5f2]
|
|
12
|
+
- Updated dependencies [b0e43c1]
|
|
13
|
+
- Updated dependencies [1fb812e]
|
|
14
|
+
- Updated dependencies [35c5798]
|
|
15
|
+
- @mastra/core@0.13.0-alpha.1
|
|
16
|
+
|
|
3
17
|
## 0.13.3
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -284,19 +298,5 @@
|
|
|
284
298
|
|
|
285
299
|
- 4051477: dependencies updates:
|
|
286
300
|
- Updated dependency [`@aws-sdk/client-dynamodb@^3.828.0` ↗︎](https://www.npmjs.com/package/@aws-sdk/client-dynamodb/v/3.828.0) (from `^3.826.0`, in `dependencies`)
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
- Updated dependency [`@aws-sdk/client-dynamodb@^3.828.0` ↗︎](https://www.npmjs.com/package/@aws-sdk/client-dynamodb/v/3.828.0) (from `^3.826.0`, in `dependencies`)
|
|
290
|
-
- Updated dependency [`@aws-sdk/lib-dynamodb@^3.828.0` ↗︎](https://www.npmjs.com/package/@aws-sdk/lib-dynamodb/v/3.828.0) (from `^3.826.0`, in `dependencies`)
|
|
291
|
-
- 63f6b7d: dependencies updates:
|
|
292
|
-
- Updated dependency [`@aws-sdk/client-dynamodb@^3.826.0` ↗︎](https://www.npmjs.com/package/@aws-sdk/client-dynamodb/v/3.826.0) (from `^3.823.0`, in `dependencies`)
|
|
293
|
-
- Updated dependency [`@aws-sdk/lib-dynamodb@^3.826.0` ↗︎](https://www.npmjs.com/package/@aws-sdk/lib-dynamodb/v/3.826.0) (from `^3.823.0`, in `dependencies`)
|
|
294
|
-
- Updated dependency [`electrodb@^3.4.3` ↗︎](https://www.npmjs.com/package/electrodb/v/3.4.3) (from `^3.4.1`, in `dependencies`)
|
|
295
|
-
- 6c3e021: chore(deps): update mastra dynamodb to ^1.10.0
|
|
296
|
-
- Updated dependencies [63f6b7d]
|
|
297
|
-
- Updated dependencies [12a95fc]
|
|
298
|
-
- Updated dependencies [4b0f8a6]
|
|
299
|
-
- Updated dependencies [51264a5]
|
|
300
|
-
- Updated dependencies [8e6f677]
|
|
301
|
-
|
|
302
|
-
... 272 more lines hidden. See full changelog in package directory.
|
|
301
|
+
|
|
302
|
+
... 286 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @mastra/evals
|
|
2
2
|
|
|
3
|
+
## 0.12.0-alpha.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- ea0c5f2: Add store support to new score api
|
|
8
|
+
- ea0c5f2: Update evals to use updated scorer API
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- 351b36e: update evals and rag ai sdk package versions
|
|
13
|
+
- Updated dependencies [ea0c5f2]
|
|
14
|
+
- Updated dependencies [b0e43c1]
|
|
15
|
+
- Updated dependencies [1fb812e]
|
|
16
|
+
- Updated dependencies [35c5798]
|
|
17
|
+
- @mastra/core@0.13.0-alpha.1
|
|
18
|
+
|
|
3
19
|
## 0.11.0
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
|
@@ -282,21 +298,5 @@
|
|
|
282
298
|
|
|
283
299
|
- 8dde0da: Fixed contextual recall metric
|
|
284
300
|
- Updated dependencies [ee77e78]
|
|
285
|
-
- Updated dependencies [2901125]
|
|
286
|
-
- @mastra/core@0.10.2-alpha.1
|
|
287
|
-
|
|
288
|
-
## 0.10.1
|
|
289
|
-
|
|
290
|
-
### Patch Changes
|
|
291
301
|
|
|
292
|
-
|
|
293
|
-
- Updated dependencies [d70b807]
|
|
294
|
-
- Updated dependencies [6d16390]
|
|
295
|
-
- Updated dependencies [1e4a421]
|
|
296
|
-
- Updated dependencies [200d0da]
|
|
297
|
-
- Updated dependencies [bf5f17b]
|
|
298
|
-
- Updated dependencies [5343f93]
|
|
299
|
-
- Updated dependencies [38aee50]
|
|
300
|
-
- Updated dependencies [5c41100]
|
|
301
|
-
|
|
302
|
-
... 1843 more lines hidden. See full changelog in package directory.
|
|
302
|
+
... 1859 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @mastra/firecrawl
|
|
2
2
|
|
|
3
|
+
## 1.2.11-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [ea0c5f2]
|
|
8
|
+
- Updated dependencies [351b36e]
|
|
9
|
+
- Updated dependencies [ccd519c]
|
|
10
|
+
- Updated dependencies [b0e43c1]
|
|
11
|
+
- Updated dependencies [1fb812e]
|
|
12
|
+
- Updated dependencies [35c5798]
|
|
13
|
+
- @mastra/core@0.13.0-alpha.1
|
|
14
|
+
- @mastra/rag@1.0.7-alpha.0
|
|
15
|
+
|
|
3
16
|
## 1.2.10
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -285,18 +298,5 @@
|
|
|
285
298
|
|
|
286
299
|
### Patch Changes
|
|
287
300
|
|
|
288
|
-
- 1ccccff: dependencies updates:
|
|
289
|
-
- Updated dependency [`zod@^3.25.56` ↗︎](https://www.npmjs.com/package/zod/v/3.25.56) (from `^3.24.3`, in `dependencies`)
|
|
290
|
-
- 1ccccff: dependencies updates:
|
|
291
|
-
- Updated dependency [`zod@^3.25.56` ↗︎](https://www.npmjs.com/package/zod/v/3.25.56) (from `^3.24.3`, in `dependencies`)
|
|
292
|
-
- Updated dependencies [1ccccff]
|
|
293
|
-
- Updated dependencies [1ccccff]
|
|
294
|
-
- Updated dependencies [f6fd25f]
|
|
295
|
-
- Updated dependencies [dffb67b]
|
|
296
|
-
- Updated dependencies [f1309d3]
|
|
297
|
-
- Updated dependencies [f7f8293]
|
|
298
|
-
- @mastra/rag@0.10.3-alpha.1
|
|
299
|
-
- @mastra/core@0.10.4-alpha.1
|
|
300
|
-
|
|
301
301
|
|
|
302
|
-
...
|
|
302
|
+
... 2545 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @mastra/libsql
|
|
2
2
|
|
|
3
|
+
## 0.13.0-alpha.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- ea0c5f2: Add store support to new score api
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [ea0c5f2]
|
|
12
|
+
- Updated dependencies [b0e43c1]
|
|
13
|
+
- Updated dependencies [1fb812e]
|
|
14
|
+
- Updated dependencies [35c5798]
|
|
15
|
+
- @mastra/core@0.13.0-alpha.1
|
|
16
|
+
|
|
3
17
|
## 0.12.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
|
@@ -284,19 +298,5 @@
|
|
|
284
298
|
- 63f6b7d: dependencies updates:
|
|
285
299
|
- Updated dependency [`@libsql/client@^0.15.9` ↗︎](https://www.npmjs.com/package/@libsql/client/v/0.15.9) (from `^0.15.8`, in `dependencies`)
|
|
286
300
|
- Updated dependencies [63f6b7d]
|
|
287
|
-
- Updated dependencies [36f1c36]
|
|
288
|
-
- Updated dependencies [10d352e]
|
|
289
|
-
- Updated dependencies [53d3c37]
|
|
290
|
-
- @mastra/core@0.10.6-alpha.0
|
|
291
|
-
|
|
292
|
-
## 0.10.2
|
|
293
|
-
|
|
294
|
-
### Patch Changes
|
|
295
|
-
|
|
296
|
-
- 5d3dc1e: dependencies updates:
|
|
297
|
-
- Updated dependency [`@libsql/client@^0.15.8` ↗︎](https://www.npmjs.com/package/@libsql/client/v/0.15.8) (from `^0.15.4`, in `dependencies`)
|
|
298
|
-
- dffb67b: updated stores to add alter table and change tests
|
|
299
|
-
- e0f9201: change how dedupe works for libsql and pg
|
|
300
|
-
- 14a2566: Add pagination to libsql storage APIs
|
|
301
301
|
|
|
302
|
-
...
|
|
302
|
+
... 489 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @mastra/mcp-docs-server
|
|
2
2
|
|
|
3
|
+
## 0.13.9-alpha.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [ea0c5f2]
|
|
8
|
+
- Updated dependencies [b0e43c1]
|
|
9
|
+
- Updated dependencies [1fb812e]
|
|
10
|
+
- Updated dependencies [35c5798]
|
|
11
|
+
- @mastra/core@0.13.0-alpha.1
|
|
12
|
+
|
|
3
13
|
## 0.13.9-alpha.0
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -288,15 +298,5 @@
|
|
|
288
298
|
- Updated dependencies [a8b194f]
|
|
289
299
|
- Updated dependencies [dc93062]
|
|
290
300
|
- @mastra/core@0.10.7-alpha.4
|
|
291
|
-
- @mastra/mcp@0.10.5-alpha.2
|
|
292
|
-
|
|
293
|
-
## 0.13.2-alpha.1
|
|
294
|
-
|
|
295
|
-
### Patch Changes
|
|
296
|
-
|
|
297
|
-
- 8e1b6e9: dependencies updates:
|
|
298
|
-
- Updated dependency [`zod@^3.25.67` ↗︎](https://www.npmjs.com/package/zod/v/3.25.67) (from `^3.25.57`, in `dependencies`)
|
|
299
|
-
- ee93d96: dependencies updates:
|
|
300
|
-
- Updated dependency [`@modelcontextprotocol/sdk@^1.12.3` ↗︎](https://www.npmjs.com/package/@modelcontextprotocol/sdk/v/1.12.3) (from `^1.12.1`, in `dependencies`)
|
|
301
301
|
|
|
302
|
-
...
|
|
302
|
+
... 1146 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @mastra/memory
|
|
2
2
|
|
|
3
|
+
## 0.12.1-alpha.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 7d53af4: dependencies updates:
|
|
8
|
+
- Updated dependency [`redis@^5.7.0` ↗︎](https://www.npmjs.com/package/redis/v/5.7.0) (from `^5.6.0`, in `dependencies`)
|
|
9
|
+
- Updated dependencies [ea0c5f2]
|
|
10
|
+
- Updated dependencies [b0e43c1]
|
|
11
|
+
- Updated dependencies [1fb812e]
|
|
12
|
+
- Updated dependencies [35c5798]
|
|
13
|
+
- @mastra/core@0.13.0-alpha.1
|
|
14
|
+
|
|
3
15
|
## 0.12.1-alpha.0
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -286,17 +298,5 @@
|
|
|
286
298
|
- Updated dependencies [c984582]
|
|
287
299
|
- Updated dependencies [7e801dd]
|
|
288
300
|
- Updated dependencies [a606c75]
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
- Updated dependencies [1760a1c]
|
|
292
|
-
- Updated dependencies [038e5ae]
|
|
293
|
-
- Updated dependencies [7dda16a]
|
|
294
|
-
- Updated dependencies [5ebfcdd]
|
|
295
|
-
- Updated dependencies [b2d0c91]
|
|
296
|
-
- Updated dependencies [4e809ad]
|
|
297
|
-
- Updated dependencies [57929df]
|
|
298
|
-
- Updated dependencies [b7852ed]
|
|
299
|
-
- Updated dependencies [6320a61]
|
|
300
|
-
- @mastra/core@0.10.9
|
|
301
|
-
|
|
302
|
-
... 2514 more lines hidden. See full changelog in package directory.
|
|
301
|
+
|
|
302
|
+
... 2526 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @mastra/mongodb
|
|
2
2
|
|
|
3
|
+
## 0.13.0-alpha.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- ea0c5f2: Add store support to new score api
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [ea0c5f2]
|
|
12
|
+
- Updated dependencies [b0e43c1]
|
|
13
|
+
- Updated dependencies [1fb812e]
|
|
14
|
+
- Updated dependencies [35c5798]
|
|
15
|
+
- @mastra/core@0.13.0-alpha.1
|
|
16
|
+
|
|
3
17
|
## 0.12.4
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -284,19 +298,5 @@
|
|
|
284
298
|
- Updated dependencies [4b0f8a6]
|
|
285
299
|
- Updated dependencies [51264a5]
|
|
286
300
|
- Updated dependencies [8e6f677]
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
- Updated dependencies [36f1c36]
|
|
290
|
-
- Updated dependencies [2a16996]
|
|
291
|
-
- Updated dependencies [10d352e]
|
|
292
|
-
- Updated dependencies [9589624]
|
|
293
|
-
- Updated dependencies [53d3c37]
|
|
294
|
-
- Updated dependencies [751c894]
|
|
295
|
-
- Updated dependencies [577ce3a]
|
|
296
|
-
- Updated dependencies [9260b3a]
|
|
297
|
-
- @mastra/core@0.10.6
|
|
298
|
-
|
|
299
|
-
## 0.11.0-alpha.1
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
... 497 more lines hidden. See full changelog in package directory.
|
|
301
|
+
|
|
302
|
+
... 511 more lines hidden. See full changelog in package directory.
|
|
@@ -1,4 +1,31 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @mastra/mssql
|
|
2
|
+
|
|
3
|
+
## 0.3.0-alpha.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 8c5a2b0: feat(mssql): implement comprehensive scoring system, enhance storage operations & format storage into domains
|
|
8
|
+
- Add full CRUD operations for scoring system (getScoreById, saveScore, getScoresByScorerId, etc.)
|
|
9
|
+
- Implement message deletion functionality with thread timestamp updates
|
|
10
|
+
- Enhance thread management with sorting options and improved pagination
|
|
11
|
+
- Add batch trace insertion for improved performance
|
|
12
|
+
- Implement proper storage domain initialization with all operation bindings
|
|
13
|
+
- Enhance message parsing and formatting with better v1/v2 support
|
|
14
|
+
- Improve table operations with better foreign key handling
|
|
15
|
+
- Add float data type support in schema creation
|
|
16
|
+
- Enhance timestamp handling with proper SQL DateTime2 usage
|
|
17
|
+
- Update core dependency to latest version
|
|
18
|
+
- Format storage into domains and separate these into different files
|
|
19
|
+
|
|
20
|
+
BREAKING CHANGE: deleteMessages support is now enabled (was previously false)
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- Updated dependencies [ea0c5f2]
|
|
25
|
+
- Updated dependencies [b0e43c1]
|
|
26
|
+
- Updated dependencies [1fb812e]
|
|
27
|
+
- Updated dependencies [35c5798]
|
|
28
|
+
- @mastra/core@0.13.0-alpha.1
|
|
2
29
|
|
|
3
30
|
## 0.2.3
|
|
4
31
|
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @mastra/playground-ui
|
|
2
2
|
|
|
3
|
+
## 5.1.18-alpha.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- ea0c5f2: Update to support new scorer api
|
|
8
|
+
- Updated dependencies [ea0c5f2]
|
|
9
|
+
- Updated dependencies [b0e43c1]
|
|
10
|
+
- Updated dependencies [1fb812e]
|
|
11
|
+
- Updated dependencies [35c5798]
|
|
12
|
+
- @mastra/core@0.13.0-alpha.1
|
|
13
|
+
- @mastra/client-js@0.10.19-alpha.1
|
|
14
|
+
|
|
3
15
|
## 5.1.18-alpha.0
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -286,17 +298,5 @@
|
|
|
286
298
|
|
|
287
299
|
## 5.1.13-alpha.2
|
|
288
300
|
|
|
289
|
-
### Patch Changes
|
|
290
|
-
|
|
291
|
-
- 794d9f3: Fix thread creation in playground
|
|
292
|
-
- dfbeec6: Fix navigation to vnext AgentNetwork agents
|
|
293
|
-
|
|
294
|
-
## 5.1.13-alpha.1
|
|
295
|
-
|
|
296
|
-
### Patch Changes
|
|
297
|
-
|
|
298
|
-
- d49334d: export tool list for usage in cloud
|
|
299
|
-
- 9cdfcb5: fix infinite rerenders on agents table + share runtime context for cloud
|
|
300
|
-
- 45174f3: share network list between core and cloud
|
|
301
301
|
|
|
302
|
-
...
|
|
302
|
+
... 2317 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @mastra/rag
|
|
2
2
|
|
|
3
|
+
## 1.0.7-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 351b36e: update evals and rag ai sdk package versions
|
|
8
|
+
- ccd519c: Add sentence chunking strategy and strategy-specific parameter validation for all existing strategies.
|
|
9
|
+
- Updated dependencies [ea0c5f2]
|
|
10
|
+
- Updated dependencies [b0e43c1]
|
|
11
|
+
- Updated dependencies [1fb812e]
|
|
12
|
+
- Updated dependencies [35c5798]
|
|
13
|
+
- @mastra/core@0.13.0-alpha.1
|
|
14
|
+
|
|
3
15
|
## 1.0.6
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -287,16 +299,4 @@
|
|
|
287
299
|
|
|
288
300
|
## 0.10.3-alpha.0
|
|
289
301
|
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
- 71999e9: dependencies updates:
|
|
293
|
-
- Updated dependency [`js-tiktoken@^1.0.20` ↗︎](https://www.npmjs.com/package/js-tiktoken/v/1.0.20) (from `^1.0.19`, in `dependencies`)
|
|
294
|
-
- Updated dependency [`node-html-better-parser@^1.4.11` ↗︎](https://www.npmjs.com/package/node-html-better-parser/v/1.4.11) (from `^1.4.7`, in `dependencies`)
|
|
295
|
-
- Updated dependencies [d1ed912]
|
|
296
|
-
- Updated dependencies [f1f1f1b]
|
|
297
|
-
- Updated dependencies [f9816ae]
|
|
298
|
-
- Updated dependencies [82090c1]
|
|
299
|
-
- Updated dependencies [1b443fd]
|
|
300
|
-
- Updated dependencies [ce97900]
|
|
301
|
-
|
|
302
|
-
... 2337 more lines hidden. See full changelog in package directory.
|
|
302
|
+
... 2349 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @mastra/deployer
|
|
2
2
|
|
|
3
|
+
## 0.13.0-alpha.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [ea0c5f2]
|
|
8
|
+
- Updated dependencies [b0e43c1]
|
|
9
|
+
- Updated dependencies [1fb812e]
|
|
10
|
+
- Updated dependencies [35c5798]
|
|
11
|
+
- @mastra/core@0.13.0-alpha.1
|
|
12
|
+
|
|
3
13
|
## 0.12.2-alpha.0
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -289,14 +299,4 @@
|
|
|
289
299
|
- Updated dependencies [6c89d7f]
|
|
290
300
|
- @mastra/core@0.10.15
|
|
291
301
|
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
### Patch Changes
|
|
295
|
-
|
|
296
|
-
- Updated dependencies [0b56518]
|
|
297
|
-
- Updated dependencies [2ba5b76]
|
|
298
|
-
- Updated dependencies [c3a30de]
|
|
299
|
-
- Updated dependencies [cf3a184]
|
|
300
|
-
- Updated dependencies [d6bfd60]
|
|
301
|
-
|
|
302
|
-
... 2658 more lines hidden. See full changelog in package directory.
|
|
302
|
+
... 2668 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @mastra/upstash
|
|
2
2
|
|
|
3
|
+
## 0.14.0-alpha.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- ea0c5f2: Add store support to new score api
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [ea0c5f2]
|
|
12
|
+
- Updated dependencies [b0e43c1]
|
|
13
|
+
- Updated dependencies [1fb812e]
|
|
14
|
+
- Updated dependencies [35c5798]
|
|
15
|
+
- @mastra/core@0.13.0-alpha.1
|
|
16
|
+
|
|
3
17
|
## 0.13.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
|
@@ -284,19 +298,5 @@
|
|
|
284
298
|
|
|
285
299
|
- 704d1ca: Thread Timestamp Auto-Update Enhancement
|
|
286
300
|
Added automatic thread updatedAt timestamp updates when messages are saved across all storage providers
|
|
287
|
-
Enhanced user experience: Threads now accurately reflect their latest activity with automatic timestamp updates when new messages are added
|
|
288
|
-
Universal implementation: Consistent behavior across all 7 storage backends (ClickHouse, Cloudflare D1, DynamoDB, MongoDB, PostgreSQL, Upstash, LibSQL)
|
|
289
|
-
Performance optimized: Updates execute in parallel with message saving operations for minimal performance impact
|
|
290
|
-
Backwards compatible: No breaking changes - existing code continues to work unchanged
|
|
291
|
-
Improved conversation ordering: Chat interfaces can now properly sort threads by actual last activity
|
|
292
|
-
This enhancement resolves the issue where active conversations appeared stale due to outdated thread timestamps, providing better conversation management and user experience in chat applications.
|
|
293
|
-
|
|
294
|
-
### Patch Changes
|
|
295
|
-
|
|
296
|
-
- 2fda031: Clarify upstash argument concepts.
|
|
297
|
-
- e8fdbdd: Fix dynamic require of crypto using upstash.
|
|
298
|
-
caused by a bad import was used in the monorepo
|
|
299
|
-
|
|
300
|
-
Fixes #4801
|
|
301
301
|
|
|
302
|
-
...
|
|
302
|
+
... 1801 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# create-mastra
|
|
2
2
|
|
|
3
|
+
## 0.10.19-alpha.1
|
|
4
|
+
|
|
3
5
|
## 0.10.19-alpha.0
|
|
4
6
|
|
|
5
7
|
## 0.10.15
|
|
@@ -296,7 +298,5 @@
|
|
|
296
298
|
### Patch Changes
|
|
297
299
|
|
|
298
300
|
- 44ba52d: Add proper error message when installation of mastra fails
|
|
299
|
-
- 3270d9d: Fix runtime context being undefined
|
|
300
|
-
- fc677d7: For final result for a workflow
|
|
301
301
|
|
|
302
|
-
...
|
|
302
|
+
... 1155 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# mastra
|
|
2
2
|
|
|
3
|
+
## 0.10.19-alpha.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- ea0c5f2: Update to support new scorer api
|
|
8
|
+
- 35c5798: Add support for transpilePackages option
|
|
9
|
+
- Updated dependencies [7b8172f]
|
|
10
|
+
- Updated dependencies [ea0c5f2]
|
|
11
|
+
- Updated dependencies [b0e43c1]
|
|
12
|
+
- Updated dependencies [1fb812e]
|
|
13
|
+
- Updated dependencies [35c5798]
|
|
14
|
+
- @mastra/deployer@0.13.0-alpha.1
|
|
15
|
+
- @mastra/core@0.13.0-alpha.1
|
|
16
|
+
|
|
3
17
|
## 0.10.19-alpha.0
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -284,19 +298,5 @@
|
|
|
284
298
|
- Updated dependencies [45469c5]
|
|
285
299
|
- Updated dependencies [40c2525]
|
|
286
300
|
- Updated dependencies [e473f27]
|
|
287
|
-
- Updated dependencies [032cb66]
|
|
288
|
-
- Updated dependencies [24eb25c]
|
|
289
|
-
- Updated dependencies [703ac71]
|
|
290
|
-
- Updated dependencies [a723d69]
|
|
291
|
-
- Updated dependencies [4c06f06]
|
|
292
|
-
- Updated dependencies [5889a31]
|
|
293
|
-
- Updated dependencies [65e3395]
|
|
294
|
-
- Updated dependencies [9de6f58]
|
|
295
|
-
- Updated dependencies [4933192]
|
|
296
|
-
- Updated dependencies [d1c77a4]
|
|
297
|
-
- Updated dependencies [bea9dd1]
|
|
298
|
-
- Updated dependencies [dcd4802]
|
|
299
|
-
- Updated dependencies [7ba91fa]
|
|
300
|
-
- Updated dependencies [15ce274]
|
|
301
301
|
|
|
302
|
-
...
|
|
302
|
+
... 4742 more lines hidden. See full changelog in package directory.
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
If you ask your friend what they did last weekend, they will search in their memory for events associated with "last weekend" and then tell you what they did. That's sort of like how semantic recall works in Mastra.
|
|
4
4
|
|
|
5
|
+
> **📹 Watch**: What semantic recall is, how it works, and how to configure it in Mastra → [YouTube (5 minutes)](https://youtu.be/UVZtK8cK8xQ)
|
|
6
|
+
|
|
5
7
|
## How Semantic Recall Works
|
|
6
8
|
|
|
7
9
|
Semantic recall is RAG-based search that helps agents maintain context across longer interactions when messages are no longer within [recent conversation history](./overview.mdx#conversation-history).
|
|
@@ -43,7 +43,7 @@ const agent = new Agent({
|
|
|
43
43
|
|
|
44
44
|
Working memory is a block of Markdown text that the agent is able to update over time to store continuously relevant information:
|
|
45
45
|
|
|
46
|
-
<YouTube id="
|
|
46
|
+
<YouTube id="UMy_JHLf1n8" />
|
|
47
47
|
|
|
48
48
|
## Memory Persistence Scopes
|
|
49
49
|
|
|
@@ -25,21 +25,37 @@ Use `chunk` to split documents into manageable pieces. Mastra supports multiple
|
|
|
25
25
|
- `html`: HTML structure-aware splitting
|
|
26
26
|
- `json`: JSON structure-aware splitting
|
|
27
27
|
- `latex`: LaTeX structure-aware splitting
|
|
28
|
+
- `sentence`: Sentence-aware splitting
|
|
29
|
+
|
|
30
|
+
**Note:** Each strategy accepts different parameters optimized for its chunking approach.
|
|
28
31
|
|
|
29
32
|
Here's an example of how to use the `recursive` strategy:
|
|
30
33
|
|
|
31
34
|
```ts showLineNumbers copy
|
|
32
35
|
const chunks = await doc.chunk({
|
|
33
36
|
strategy: "recursive",
|
|
34
|
-
|
|
37
|
+
maxSize: 512,
|
|
35
38
|
overlap: 50,
|
|
36
|
-
|
|
39
|
+
separators: ["\n"],
|
|
37
40
|
extract: {
|
|
38
41
|
metadata: true, // Optionally extract metadata
|
|
39
42
|
},
|
|
40
43
|
});
|
|
41
44
|
```
|
|
42
45
|
|
|
46
|
+
For text where preserving sentence structure is important, here's an example of how to use the `sentence` strategy:
|
|
47
|
+
|
|
48
|
+
```ts showLineNumbers copy
|
|
49
|
+
const chunks = await doc.chunk({
|
|
50
|
+
strategy: "sentence",
|
|
51
|
+
maxSize: 450,
|
|
52
|
+
minSize: 50,
|
|
53
|
+
overlap: 0,
|
|
54
|
+
sentenceEnders: ["."],
|
|
55
|
+
keepSeparator: true,
|
|
56
|
+
});
|
|
57
|
+
```
|
|
58
|
+
|
|
43
59
|
**Note:** Metadata extraction may use LLM calls, so ensure your API key is set.
|
|
44
60
|
|
|
45
61
|
We go deeper into chunking strategies in our [chunk documentation](/reference/rag/chunk.mdx).
|
|
@@ -130,7 +146,7 @@ const doc = MDocument.fromText(`
|
|
|
130
146
|
// Create chunks
|
|
131
147
|
const chunks = await doc.chunk({
|
|
132
148
|
strategy: "recursive",
|
|
133
|
-
|
|
149
|
+
maxSize: 256,
|
|
134
150
|
overlap: 50,
|
|
135
151
|
});
|
|
136
152
|
|
|
@@ -42,21 +42,30 @@ const chunksWithMetadata = await doc.chunk({
|
|
|
42
42
|
|
|
43
43
|
## Parameters
|
|
44
44
|
|
|
45
|
+
The following parameters are available for all chunking strategies.
|
|
46
|
+
**Important:** Each strategy will only utilize a subset of these parameters relevant to its specific use case.
|
|
47
|
+
|
|
45
48
|
<PropertiesTable
|
|
46
49
|
content={[
|
|
47
50
|
{
|
|
48
51
|
name: "strategy",
|
|
49
|
-
type: "'recursive' | 'character' | 'token' | 'markdown' | 'html' | 'json' | 'latex'",
|
|
52
|
+
type: "'recursive' | 'character' | 'token' | 'markdown' | 'html' | 'json' | 'latex' | 'sentence'",
|
|
50
53
|
isOptional: true,
|
|
51
54
|
description:
|
|
52
55
|
"The chunking strategy to use. If not specified, defaults based on document type. Depending on the chunking strategy, there are additional optionals. Defaults: .md files → 'markdown', .html/.htm → 'html', .json → 'json', .tex → 'latex', others → 'recursive'",
|
|
53
56
|
},
|
|
57
|
+
{
|
|
58
|
+
name: "maxSize",
|
|
59
|
+
type: "number",
|
|
60
|
+
isOptional: true,
|
|
61
|
+
defaultValue: "4000",
|
|
62
|
+
description: "Maximum size of each chunk. **Note:** Some strategy configurations (markdown with headers, HTML with headers) ignore this parameter.",
|
|
63
|
+
},
|
|
54
64
|
{
|
|
55
65
|
name: "size",
|
|
56
66
|
type: "number",
|
|
57
67
|
isOptional: true,
|
|
58
|
-
|
|
59
|
-
description: "Maximum size of each chunk",
|
|
68
|
+
description: "**Deprecated:** Use `maxSize` instead. This parameter will be removed in the next major version.",
|
|
60
69
|
},
|
|
61
70
|
{
|
|
62
71
|
name: "overlap",
|
|
@@ -66,33 +75,38 @@ const chunksWithMetadata = await doc.chunk({
|
|
|
66
75
|
description: "Number of characters/tokens that overlap between chunks.",
|
|
67
76
|
},
|
|
68
77
|
{
|
|
69
|
-
name: "
|
|
70
|
-
type: "string",
|
|
78
|
+
name: "lengthFunction",
|
|
79
|
+
type: "(text: string) => number",
|
|
80
|
+
isOptional: true,
|
|
81
|
+
description: "Function to calculate text length. Defaults to character count.",
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: "keepSeparator",
|
|
85
|
+
type: "boolean | 'start' | 'end'",
|
|
71
86
|
isOptional: true,
|
|
72
|
-
defaultValue: "\\n\\n",
|
|
73
87
|
description:
|
|
74
|
-
"
|
|
88
|
+
"Whether to keep the separator at the start or end of chunks",
|
|
75
89
|
},
|
|
76
90
|
{
|
|
77
|
-
name: "
|
|
91
|
+
name: "addStartIndex",
|
|
78
92
|
type: "boolean",
|
|
79
93
|
isOptional: true,
|
|
80
94
|
defaultValue: "false",
|
|
81
|
-
description: "Whether
|
|
95
|
+
description: "Whether to add start index metadata to chunks.",
|
|
82
96
|
},
|
|
83
97
|
{
|
|
84
|
-
name: "
|
|
85
|
-
type: "
|
|
98
|
+
name: "stripWhitespace",
|
|
99
|
+
type: "boolean",
|
|
86
100
|
isOptional: true,
|
|
87
|
-
|
|
88
|
-
|
|
101
|
+
defaultValue: "true",
|
|
102
|
+
description: "Whether to strip whitespace from chunks.",
|
|
89
103
|
},
|
|
90
104
|
{
|
|
91
105
|
name: "extract",
|
|
92
106
|
type: "ExtractParams",
|
|
93
107
|
isOptional: true,
|
|
94
108
|
description:
|
|
95
|
-
"Metadata extraction configuration. See [ExtractParams reference](
|
|
109
|
+
"Metadata extraction configuration. See [ExtractParams reference](/reference/rag/extract-params) for details.",
|
|
96
110
|
},
|
|
97
111
|
]}
|
|
98
112
|
/>
|
|
@@ -102,6 +116,32 @@ const chunksWithMetadata = await doc.chunk({
|
|
|
102
116
|
Strategy-specific options are passed as top-level parameters alongside the strategy parameter. For example:
|
|
103
117
|
|
|
104
118
|
```typescript showLineNumbers copy
|
|
119
|
+
// Character strategy example
|
|
120
|
+
const chunks = await doc.chunk({
|
|
121
|
+
strategy: "character",
|
|
122
|
+
separator: ".", // Character-specific option
|
|
123
|
+
isSeparatorRegex: false, // Character-specific option
|
|
124
|
+
maxSize: 300, // general option
|
|
125
|
+
});
|
|
126
|
+
|
|
127
|
+
// Recursive strategy example
|
|
128
|
+
const chunks = await doc.chunk({
|
|
129
|
+
strategy: "recursive",
|
|
130
|
+
separators: ["\n\n", "\n", " "], // Recursive-specific option
|
|
131
|
+
language: "markdown", // Recursive-specific option
|
|
132
|
+
maxSize: 500, // general option
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
// Sentence strategy example
|
|
136
|
+
const chunks = await doc.chunk({
|
|
137
|
+
strategy: "sentence",
|
|
138
|
+
maxSize: 450, // Required for sentence strategy
|
|
139
|
+
minSize: 50, // Sentence-specific option
|
|
140
|
+
sentenceEnders: ["."], // Sentence-specific option
|
|
141
|
+
fallbackToCharacters: false, // Sentence-specific option
|
|
142
|
+
keepSeparator: true, // general option
|
|
143
|
+
});
|
|
144
|
+
|
|
105
145
|
// HTML strategy example
|
|
106
146
|
const chunks = await doc.chunk({
|
|
107
147
|
strategy: "html",
|
|
@@ -109,8 +149,6 @@ const chunks = await doc.chunk({
|
|
|
109
149
|
["h1", "title"],
|
|
110
150
|
["h2", "subtitle"],
|
|
111
151
|
], // HTML-specific option
|
|
112
|
-
sections: [["div.content", "main"]], // HTML-specific option
|
|
113
|
-
size: 500, // general option
|
|
114
152
|
});
|
|
115
153
|
|
|
116
154
|
// Markdown strategy example
|
|
@@ -121,7 +159,6 @@ const chunks = await doc.chunk({
|
|
|
121
159
|
["##", "section"],
|
|
122
160
|
], // Markdown-specific option
|
|
123
161
|
stripHeaders: true, // Markdown-specific option
|
|
124
|
-
overlap: 50, // general option
|
|
125
162
|
});
|
|
126
163
|
|
|
127
164
|
// Token strategy example
|
|
@@ -129,12 +166,105 @@ const chunks = await doc.chunk({
|
|
|
129
166
|
strategy: "token",
|
|
130
167
|
encodingName: "gpt2", // Token-specific option
|
|
131
168
|
modelName: "gpt-3.5-turbo", // Token-specific option
|
|
132
|
-
|
|
169
|
+
maxSize: 1000, // general option
|
|
133
170
|
});
|
|
134
171
|
```
|
|
135
172
|
|
|
136
173
|
The options documented below are passed directly at the top level of the configuration object, not nested within a separate options object.
|
|
137
174
|
|
|
175
|
+
### Character
|
|
176
|
+
|
|
177
|
+
<PropertiesTable
|
|
178
|
+
content={[
|
|
179
|
+
{
|
|
180
|
+
name: "separator",
|
|
181
|
+
type: "string",
|
|
182
|
+
isOptional: true,
|
|
183
|
+
defaultValue: "\\n\\n",
|
|
184
|
+
description: "Character(s) to split on. Defaults to double newline for text content.",
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
name: "isSeparatorRegex",
|
|
188
|
+
type: "boolean",
|
|
189
|
+
isOptional: true,
|
|
190
|
+
defaultValue: "false",
|
|
191
|
+
description: "Whether the separator is a regex pattern",
|
|
192
|
+
},
|
|
193
|
+
]}
|
|
194
|
+
/>
|
|
195
|
+
|
|
196
|
+
### Recursive
|
|
197
|
+
|
|
198
|
+
<PropertiesTable
|
|
199
|
+
content={[
|
|
200
|
+
{
|
|
201
|
+
name: "separators",
|
|
202
|
+
type: "string[]",
|
|
203
|
+
isOptional: true,
|
|
204
|
+
description: "Array of separators to try in order of preference. The strategy will attempt to split on the first separator, then fall back to subsequent ones.",
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
name: "isSeparatorRegex",
|
|
208
|
+
type: "boolean",
|
|
209
|
+
isOptional: true,
|
|
210
|
+
defaultValue: "false",
|
|
211
|
+
description: "Whether the separators are regex patterns",
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
name: "language",
|
|
215
|
+
type: "Language",
|
|
216
|
+
isOptional: true,
|
|
217
|
+
description: "Programming or markup language for language-specific splitting behavior. See Language enum for supported values.",
|
|
218
|
+
},
|
|
219
|
+
]}
|
|
220
|
+
/>
|
|
221
|
+
|
|
222
|
+
### Sentence
|
|
223
|
+
|
|
224
|
+
<PropertiesTable
|
|
225
|
+
content={[
|
|
226
|
+
{
|
|
227
|
+
name: "maxSize",
|
|
228
|
+
type: "number",
|
|
229
|
+
description: "Maximum size of each chunk (required for sentence strategy)",
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
name: "minSize",
|
|
233
|
+
type: "number",
|
|
234
|
+
isOptional: true,
|
|
235
|
+
defaultValue: "50",
|
|
236
|
+
description: "Minimum size of each chunk. Chunks smaller than this will be merged with adjacent chunks when possible.",
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
name: "targetSize",
|
|
240
|
+
type: "number",
|
|
241
|
+
isOptional: true,
|
|
242
|
+
description: "Preferred target size for chunks. Defaults to 80% of maxSize. The strategy will try to create chunks close to this size.",
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
name: "sentenceEnders",
|
|
246
|
+
type: "string[]",
|
|
247
|
+
isOptional: true,
|
|
248
|
+
defaultValue: "['.', '!', '?']",
|
|
249
|
+
description: "Array of characters that mark sentence endings for splitting boundaries.",
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
name: "fallbackToWords",
|
|
253
|
+
type: "boolean",
|
|
254
|
+
isOptional: true,
|
|
255
|
+
defaultValue: "true",
|
|
256
|
+
description: "Whether to fall back to word-level splitting for sentences that exceed maxSize.",
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
name: "fallbackToCharacters",
|
|
260
|
+
type: "boolean",
|
|
261
|
+
isOptional: true,
|
|
262
|
+
defaultValue: "true",
|
|
263
|
+
description: "Whether to fall back to character-level splitting for words that exceed maxSize. Only applies if fallbackToWords is enabled.",
|
|
264
|
+
},
|
|
265
|
+
]}
|
|
266
|
+
/>
|
|
267
|
+
|
|
138
268
|
### HTML
|
|
139
269
|
|
|
140
270
|
<PropertiesTable
|
|
@@ -160,6 +290,8 @@ The options documented below are passed directly at the top level of the configu
|
|
|
160
290
|
]}
|
|
161
291
|
/>
|
|
162
292
|
|
|
293
|
+
**Important:** When using the HTML strategy, all general options are ignored. Use `headers` for header-based splitting or `sections` for section-based splitting. If used together, `sections` will be ignored.
|
|
294
|
+
|
|
163
295
|
### Markdown
|
|
164
296
|
|
|
165
297
|
<PropertiesTable
|
|
@@ -167,6 +299,7 @@ The options documented below are passed directly at the top level of the configu
|
|
|
167
299
|
{
|
|
168
300
|
name: "headers",
|
|
169
301
|
type: "Array<[string, string]>",
|
|
302
|
+
isOptional: true,
|
|
170
303
|
description: "Array of [header level, metadata key] pairs",
|
|
171
304
|
},
|
|
172
305
|
{
|
|
@@ -184,6 +317,8 @@ The options documented below are passed directly at the top level of the configu
|
|
|
184
317
|
]}
|
|
185
318
|
/>
|
|
186
319
|
|
|
320
|
+
**Important:** When using the `headers` option, the markdown strategy ignores all general options and content is split based on the markdown header structure. To use size-based chunking with markdown, omit the `headers` parameter.
|
|
321
|
+
|
|
187
322
|
### Token
|
|
188
323
|
|
|
189
324
|
<PropertiesTable
|
|
@@ -200,6 +335,18 @@ The options documented below are passed directly at the top level of the configu
|
|
|
200
335
|
isOptional: true,
|
|
201
336
|
description: "Name of the model for tokenization",
|
|
202
337
|
},
|
|
338
|
+
{
|
|
339
|
+
name: "allowedSpecial",
|
|
340
|
+
type: "Set<string> | 'all'",
|
|
341
|
+
isOptional: true,
|
|
342
|
+
description: "Set of special tokens allowed during tokenization, or 'all' to allow all special tokens",
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
name: "disallowedSpecial",
|
|
346
|
+
type: "Set<string> | 'all'",
|
|
347
|
+
isOptional: true,
|
|
348
|
+
description: "Set of special tokens to disallow during tokenization, or 'all' to disallow all special tokens",
|
|
349
|
+
},
|
|
203
350
|
]}
|
|
204
351
|
/>
|
|
205
352
|
|
|
@@ -233,6 +380,10 @@ The options documented below are passed directly at the top level of the configu
|
|
|
233
380
|
]}
|
|
234
381
|
/>
|
|
235
382
|
|
|
383
|
+
### Latex
|
|
384
|
+
|
|
385
|
+
The Latex strategy uses only the general chunking options listed above. It provides LaTeX-aware splitting optimized for mathematical and academic documents.
|
|
386
|
+
|
|
236
387
|
## Return Value
|
|
237
388
|
|
|
238
389
|
Returns a `MDocument` instance containing the chunked documents. Each chunk includes:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/mcp-docs-server",
|
|
3
|
-
"version": "0.13.9-alpha.
|
|
3
|
+
"version": "0.13.9-alpha.1",
|
|
4
4
|
"description": "MCP server for accessing Mastra.ai documentation, changelogs, and news.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"uuid": "^11.1.0",
|
|
33
33
|
"zod": "^3.25.67",
|
|
34
34
|
"zod-to-json-schema": "^3.24.5",
|
|
35
|
-
"@mastra/
|
|
36
|
-
"@mastra/
|
|
35
|
+
"@mastra/core": "0.13.0-alpha.1",
|
|
36
|
+
"@mastra/mcp": "^0.10.9"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@hono/node-server": "^1.17.1",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"typescript": "^5.8.3",
|
|
50
50
|
"vitest": "^3.2.4",
|
|
51
51
|
"@internal/lint": "0.0.26",
|
|
52
|
-
"@mastra/core": "0.
|
|
52
|
+
"@mastra/core": "0.13.0-alpha.1"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"prepare-docs": "cross-env PREPARE=true node dist/prepare-docs/prepare.js",
|