@mastra/codemod 0.0.0-feat-mcp-embedded-docs-tools-clean-20260108083625 → 0.0.0-feat-mcp-embedded-docs-tools-clean-20260108085651
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 +43 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @mastra/codemod
|
|
2
2
|
|
|
3
|
-
## 0.0.0-feat-mcp-embedded-docs-tools-clean-
|
|
3
|
+
## 0.0.0-feat-mcp-embedded-docs-tools-clean-20260108085651
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
@@ -56,6 +56,48 @@
|
|
|
56
56
|
- Make package ESM-only
|
|
57
57
|
- Add new codemods
|
|
58
58
|
|
|
59
|
+
## 0.1.0-beta.5
|
|
60
|
+
|
|
61
|
+
### Patch Changes
|
|
62
|
+
|
|
63
|
+
- **Breaking Change:** `memory.readOnly` has been moved to `memory.options.readOnly` ([#11523](https://github.com/mastra-ai/mastra/pull/11523))
|
|
64
|
+
|
|
65
|
+
The `readOnly` option now lives inside `memory.options` alongside other memory configuration like `lastMessages` and `semanticRecall`.
|
|
66
|
+
|
|
67
|
+
**Before:**
|
|
68
|
+
|
|
69
|
+
```typescript
|
|
70
|
+
agent.stream('Hello', {
|
|
71
|
+
memory: {
|
|
72
|
+
thread: threadId,
|
|
73
|
+
resource: resourceId,
|
|
74
|
+
readOnly: true,
|
|
75
|
+
},
|
|
76
|
+
});
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
**After:**
|
|
80
|
+
|
|
81
|
+
```typescript
|
|
82
|
+
agent.stream('Hello', {
|
|
83
|
+
memory: {
|
|
84
|
+
thread: threadId,
|
|
85
|
+
resource: resourceId,
|
|
86
|
+
options: {
|
|
87
|
+
readOnly: true,
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
});
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
**Migration:** Run the codemod to update your code automatically:
|
|
94
|
+
|
|
95
|
+
```shell
|
|
96
|
+
npx @mastra/codemod@beta v1/memory-readonly-to-options .
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
This also fixes issue #11519 where `readOnly: true` was being ignored and messages were saved to memory anyway.
|
|
100
|
+
|
|
59
101
|
## 0.1.0-beta.4
|
|
60
102
|
|
|
61
103
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/codemod",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.0-feat-mcp-embedded-docs-tools-clean-
|
|
4
|
+
"version": "0.0.0-feat-mcp-embedded-docs-tools-clean-20260108085651",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"description": "Codemod CLI for Mastra",
|
|
7
7
|
"bin": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"tsup": "^8.5.0",
|
|
35
35
|
"typescript": "^5.9.3",
|
|
36
36
|
"vitest": "4.0.16",
|
|
37
|
-
"@internal/lint": "0.0.0-feat-mcp-embedded-docs-tools-clean-
|
|
37
|
+
"@internal/lint": "0.0.0-feat-mcp-embedded-docs-tools-clean-20260108085651"
|
|
38
38
|
},
|
|
39
39
|
"homepage": "https://mastra.ai",
|
|
40
40
|
"repository": {
|