@mastra/core 1.13.0-alpha.0 → 1.13.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.
- package/CHANGELOG.md +45 -0
- package/dist/agent/index.cjs +8 -8
- package/dist/agent/index.js +1 -1
- package/dist/{chunk-ZS5PC5U5.js → chunk-2GKPFOQH.js} +8 -8
- package/dist/{chunk-ZS5PC5U5.js.map → chunk-2GKPFOQH.js.map} +1 -1
- package/dist/{chunk-RF7AUUHZ.cjs → chunk-2LYJXRD7.cjs} +7 -7
- package/dist/{chunk-RF7AUUHZ.cjs.map → chunk-2LYJXRD7.cjs.map} +1 -1
- package/dist/{chunk-TBJAIP6B.js → chunk-2QU52I7Q.js} +4 -4
- package/dist/{chunk-TBJAIP6B.js.map → chunk-2QU52I7Q.js.map} +1 -1
- package/dist/{chunk-QKBTNVET.js → chunk-3Y6B3RK4.js} +4 -4
- package/dist/{chunk-QKBTNVET.js.map → chunk-3Y6B3RK4.js.map} +1 -1
- package/dist/{chunk-ELX7FKS6.cjs → chunk-5MG3A5L4.cjs} +6 -6
- package/dist/{chunk-ELX7FKS6.cjs.map → chunk-5MG3A5L4.cjs.map} +1 -1
- package/dist/{chunk-I6VMOC3Y.cjs → chunk-632KY2FA.cjs} +30 -30
- package/dist/{chunk-I6VMOC3Y.cjs.map → chunk-632KY2FA.cjs.map} +1 -1
- package/dist/{chunk-T4XSYZME.cjs → chunk-6IM3BPH2.cjs} +7 -7
- package/dist/{chunk-T4XSYZME.cjs.map → chunk-6IM3BPH2.cjs.map} +1 -1
- package/dist/{chunk-DUJXXOGE.js → chunk-7UM6FE6A.js} +3 -3
- package/dist/{chunk-DUJXXOGE.js.map → chunk-7UM6FE6A.js.map} +1 -1
- package/dist/{chunk-KOIL5ZZE.cjs → chunk-CSVJ4ROQ.cjs} +5 -5
- package/dist/{chunk-KOIL5ZZE.cjs.map → chunk-CSVJ4ROQ.cjs.map} +1 -1
- package/dist/{chunk-LNEBCHJZ.cjs → chunk-CYZJ2HT2.cjs} +16 -16
- package/dist/{chunk-LNEBCHJZ.cjs.map → chunk-CYZJ2HT2.cjs.map} +1 -1
- package/dist/{chunk-7XUAWSN5.cjs → chunk-DH66HVHZ.cjs} +3 -3
- package/dist/chunk-DH66HVHZ.cjs.map +1 -0
- package/dist/{chunk-RHKJ6WAK.cjs → chunk-DORUEGYO.cjs} +53 -53
- package/dist/{chunk-RHKJ6WAK.cjs.map → chunk-DORUEGYO.cjs.map} +1 -1
- package/dist/{chunk-ZCIYZUTT.cjs → chunk-E7PW4ZAB.cjs} +3 -3
- package/dist/{chunk-ZCIYZUTT.cjs.map → chunk-E7PW4ZAB.cjs.map} +1 -1
- package/dist/{chunk-MYDWI26N.js → chunk-ENXNLZOX.js} +3 -3
- package/dist/{chunk-MYDWI26N.js.map → chunk-ENXNLZOX.js.map} +1 -1
- package/dist/{chunk-F57J45BC.js → chunk-FNVUZ3S2.js} +4 -4
- package/dist/{chunk-F57J45BC.js.map → chunk-FNVUZ3S2.js.map} +1 -1
- package/dist/{chunk-VLQRMYCU.js → chunk-GAQJFSFI.js} +7 -7
- package/dist/{chunk-VLQRMYCU.js.map → chunk-GAQJFSFI.js.map} +1 -1
- package/dist/{chunk-O4ID5LLN.cjs → chunk-HACNMOMO.cjs} +24 -24
- package/dist/{chunk-O4ID5LLN.cjs.map → chunk-HACNMOMO.cjs.map} +1 -1
- package/dist/{chunk-M3YX6I4U.js → chunk-ILVF3GQC.js} +4 -4
- package/dist/{chunk-M3YX6I4U.js.map → chunk-ILVF3GQC.js.map} +1 -1
- package/dist/{chunk-UWZSAUOC.js → chunk-K3M2OD5N.js} +8 -8
- package/dist/{chunk-UWZSAUOC.js.map → chunk-K3M2OD5N.js.map} +1 -1
- package/dist/{chunk-OT4YBOYT.cjs → chunk-K7QTTUTL.cjs} +9 -9
- package/dist/{chunk-OT4YBOYT.cjs.map → chunk-K7QTTUTL.cjs.map} +1 -1
- package/dist/{chunk-AIHI4CR3.cjs → chunk-KB3YS4NC.cjs} +51 -51
- package/dist/{chunk-AIHI4CR3.cjs.map → chunk-KB3YS4NC.cjs.map} +1 -1
- package/dist/{chunk-7IOPLGJX.js → chunk-KPKJY76F.js} +3 -3
- package/dist/{chunk-7IOPLGJX.js.map → chunk-KPKJY76F.js.map} +1 -1
- package/dist/{chunk-TULJME43.js → chunk-L66I3YSY.js} +5 -5
- package/dist/{chunk-TULJME43.js.map → chunk-L66I3YSY.js.map} +1 -1
- package/dist/{chunk-E7EYGTV2.cjs → chunk-MBWVMU2V.cjs} +185 -185
- package/dist/{chunk-E7EYGTV2.cjs.map → chunk-MBWVMU2V.cjs.map} +1 -1
- package/dist/{chunk-MHEZRQTB.js → chunk-O6EEO6H6.js} +3 -3
- package/dist/{chunk-MHEZRQTB.js.map → chunk-O6EEO6H6.js.map} +1 -1
- package/dist/{chunk-D3LPAKB6.js → chunk-RHU25VWO.js} +3 -3
- package/dist/{chunk-D3LPAKB6.js.map → chunk-RHU25VWO.js.map} +1 -1
- package/dist/{chunk-KQXXSDJK.cjs → chunk-SBVDJ5Z7.cjs} +15 -15
- package/dist/{chunk-KQXXSDJK.cjs.map → chunk-SBVDJ5Z7.cjs.map} +1 -1
- package/dist/{chunk-CLPYWUCZ.cjs → chunk-SHN25XWN.cjs} +9 -9
- package/dist/{chunk-CLPYWUCZ.cjs.map → chunk-SHN25XWN.cjs.map} +1 -1
- package/dist/{chunk-AV22GHNZ.js → chunk-TRUVWKEY.js} +3 -3
- package/dist/chunk-TRUVWKEY.js.map +1 -0
- package/dist/{chunk-XEBKZ4YL.js → chunk-VJJGOU4M.js} +4 -4
- package/dist/{chunk-XEBKZ4YL.js.map → chunk-VJJGOU4M.js.map} +1 -1
- package/dist/{chunk-ED7ICYXC.cjs → chunk-WKKUCOSS.cjs} +5 -5
- package/dist/{chunk-ED7ICYXC.cjs.map → chunk-WKKUCOSS.cjs.map} +1 -1
- package/dist/{chunk-M6T2TWG3.js → chunk-ZNIHEZDL.js} +3 -3
- package/dist/{chunk-M6T2TWG3.js.map → chunk-ZNIHEZDL.js.map} +1 -1
- package/dist/datasets/index.cjs +17 -17
- package/dist/datasets/index.js +2 -2
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +265 -265
- package/dist/docs/references/docs-memory-overview.md +3 -3
- package/dist/evals/index.cjs +5 -5
- package/dist/evals/index.js +2 -2
- package/dist/evals/scoreTraces/index.cjs +3 -3
- package/dist/evals/scoreTraces/index.js +1 -1
- package/dist/harness/index.cjs +17 -17
- package/dist/harness/index.js +7 -7
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/dist/integration/index.cjs +2 -2
- package/dist/integration/index.js +1 -1
- package/dist/llm/index.cjs +16 -16
- package/dist/llm/index.js +5 -5
- package/dist/loop/index.cjs +14 -14
- package/dist/loop/index.js +1 -1
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.js +1 -1
- package/dist/memory/index.cjs +14 -14
- package/dist/memory/index.js +1 -1
- package/dist/models-dev-562OPULG.js +3 -0
- package/dist/{models-dev-WZV7KXO6.js.map → models-dev-562OPULG.js.map} +1 -1
- package/dist/models-dev-6KB3OWD4.cjs +12 -0
- package/dist/{models-dev-PF6BNK5U.cjs.map → models-dev-6KB3OWD4.cjs.map} +1 -1
- package/dist/netlify-USTLHJSL.cjs +12 -0
- package/dist/{netlify-DAYWB6TP.cjs.map → netlify-USTLHJSL.cjs.map} +1 -1
- package/dist/netlify-Z5TEPY4B.js +3 -0
- package/dist/{netlify-2TIV7DOF.js.map → netlify-Z5TEPY4B.js.map} +1 -1
- package/dist/processor-provider/index.cjs +10 -10
- package/dist/processor-provider/index.js +1 -1
- package/dist/processors/index.cjs +42 -42
- package/dist/processors/index.js +1 -1
- package/dist/provider-registry-7DIG7MYE.cjs +40 -0
- package/dist/{provider-registry-DTJQ3BMU.cjs.map → provider-registry-7DIG7MYE.cjs.map} +1 -1
- package/dist/provider-registry-PVY4JPVT.js +3 -0
- package/dist/{provider-registry-Z3GQXZ4X.js.map → provider-registry-PVY4JPVT.js.map} +1 -1
- package/dist/relevance/index.cjs +3 -3
- package/dist/relevance/index.js +1 -1
- package/dist/storage/index.cjs +140 -140
- package/dist/storage/index.js +1 -1
- package/dist/stream/index.cjs +8 -8
- package/dist/stream/index.js +1 -1
- package/dist/test-utils/llm-mock.cjs +4 -4
- package/dist/test-utils/llm-mock.js +1 -1
- package/dist/tool-loop-agent/index.cjs +4 -4
- package/dist/tool-loop-agent/index.js +1 -1
- package/dist/tools/index.cjs +6 -6
- package/dist/tools/index.js +1 -1
- package/dist/tools/is-vercel-tool.cjs +2 -2
- package/dist/tools/is-vercel-tool.js +1 -1
- package/dist/utils.cjs +23 -23
- package/dist/utils.js +1 -1
- package/dist/vector/index.cjs +7 -7
- package/dist/vector/index.js +1 -1
- package/dist/workflows/evented/index.cjs +10 -10
- package/dist/workflows/evented/index.js +1 -1
- package/dist/workflows/index.cjs +24 -24
- package/dist/workflows/index.js +1 -1
- package/dist/workspace/index.cjs +67 -67
- package/dist/workspace/index.js +1 -1
- package/package.json +10 -10
- package/dist/chunk-7XUAWSN5.cjs.map +0 -1
- package/dist/chunk-AV22GHNZ.js.map +0 -1
- package/dist/models-dev-PF6BNK5U.cjs +0 -12
- package/dist/models-dev-WZV7KXO6.js +0 -3
- package/dist/netlify-2TIV7DOF.js +0 -3
- package/dist/netlify-DAYWB6TP.cjs +0 -12
- package/dist/provider-registry-DTJQ3BMU.cjs +0 -40
- package/dist/provider-registry-Z3GQXZ4X.js +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,50 @@
|
|
|
1
1
|
# @mastra/core
|
|
2
2
|
|
|
3
|
+
## 1.13.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- **Added observability storage domain schemas and implementations** ([#14214](https://github.com/mastra-ai/mastra/pull/14214))
|
|
8
|
+
|
|
9
|
+
Introduced comprehensive storage schemas and in-memory implementations for all observability signals (scores, logs, feedback, metrics, discovery). All schemas are zod-based with full type inference. The `ObservabilityStorage` base class includes default implementations for all new methods.
|
|
10
|
+
|
|
11
|
+
**Breaking changes:**
|
|
12
|
+
- `MetricType` (`counter`/`gauge`/`histogram`) is deprecated — metrics are now raw events with aggregation at query time
|
|
13
|
+
- Score schemas use `scorerId` instead of `scorerName` for scorer identification
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Update provider registry and model documentation with latest models and providers ([`ea86967`](https://github.com/mastra-ai/mastra/commit/ea86967449426e0a3673253bd1c2c052a99d970d))
|
|
18
|
+
|
|
19
|
+
- Fixed provider tools (e.g. `openai.tools.webSearch()`) being silently dropped when using a custom gateway that returns AI SDK v6 (V3) models. The router now remaps tool types from `provider-defined` to `provider` when delegating to V3 models, so provider tools work correctly through gateways. Fixes #13667. ([#13895](https://github.com/mastra-ai/mastra/pull/13895))
|
|
20
|
+
|
|
21
|
+
- Fixed TypeScript type errors in `onStepFinish` and `onFinish` callbacks, and resolved compatibility issues with `createOpenRouter()` across different AI SDK versions. ([#14229](https://github.com/mastra-ai/mastra/pull/14229))
|
|
22
|
+
|
|
23
|
+
- Fixed a bug where thread metadata (e.g. title, custom properties) passed via `options.memory.thread` was discarded when `MASTRA_THREAD_ID_KEY` was set in the request context. The thread ID from context still takes precedence, but all other user-provided thread properties are now preserved. ([#13146](https://github.com/mastra-ai/mastra/pull/13146))
|
|
24
|
+
|
|
25
|
+
- Fixed workspace tools such as `mastra_workspace_list_files` and `mastra_workspace_read_file` failing with `WorkspaceNotAvailableError` in some execution paths. ([#14228](https://github.com/mastra-ai/mastra/pull/14228))
|
|
26
|
+
|
|
27
|
+
Workspace tools now work consistently across execution paths.
|
|
28
|
+
|
|
29
|
+
- Added observer context optimization for Observational Memory. The `observation.previousObserverTokens` field reduces Observer input token costs for long-running conversations: ([#13568](https://github.com/mastra-ai/mastra/pull/13568))
|
|
30
|
+
- **previousObserverTokens** (default: `2000`): Truncates the 'Previous Observations' section to a token budget, keeping the most recent observations and automatically replacing already-reflected lines with the buffered reflection summary. Set to `0` to omit previous observations entirely, or `false` to disable truncation and keep the full observation history.
|
|
31
|
+
|
|
32
|
+
```typescript
|
|
33
|
+
const memory = new Memory({
|
|
34
|
+
options: {
|
|
35
|
+
observationalMemory: {
|
|
36
|
+
model: 'google/gemini-2.5-flash',
|
|
37
|
+
observation: {
|
|
38
|
+
previousObserverTokens: 10_000,
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
});
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
- Updated dependencies [[`a1d6b9c`](https://github.com/mastra-ai/mastra/commit/a1d6b9c907c909f259632a7ea26e9e3c221fb691), [`c562ec2`](https://github.com/mastra-ai/mastra/commit/c562ec228f1af63693e2984ffa9712aa6db8fea8)]:
|
|
46
|
+
- @mastra/schema-compat@1.2.2
|
|
47
|
+
|
|
3
48
|
## 1.13.0-alpha.0
|
|
4
49
|
|
|
5
50
|
### Minor Changes
|
package/dist/agent/index.cjs
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkDORUEGYO_cjs = require('../chunk-DORUEGYO.cjs');
|
|
4
4
|
var chunkCLKMJINC_cjs = require('../chunk-CLKMJINC.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "Agent", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkDORUEGYO_cjs.Agent; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "TripWire", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkDORUEGYO_cjs.TripWire; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "isSupportedLanguageModel", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkDORUEGYO_cjs.isSupportedLanguageModel; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "resolveThreadIdFromArgs", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkDORUEGYO_cjs.resolveThreadIdFromArgs; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "supportedLanguageModelSpecifications", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkDORUEGYO_cjs.supportedLanguageModelSpecifications; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "tryGenerateWithJsonFallback", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkDORUEGYO_cjs.tryGenerateWithJsonFallback; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "tryStreamWithJsonFallback", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkDORUEGYO_cjs.tryStreamWithJsonFallback; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "MessageList", {
|
|
37
37
|
enumerable: true,
|
package/dist/agent/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Agent, TripWire, isSupportedLanguageModel, resolveThreadIdFromArgs, supportedLanguageModelSpecifications, tryGenerateWithJsonFallback, tryStreamWithJsonFallback } from '../chunk-
|
|
1
|
+
export { Agent, TripWire, isSupportedLanguageModel, resolveThreadIdFromArgs, supportedLanguageModelSpecifications, tryGenerateWithJsonFallback, tryStreamWithJsonFallback } from '../chunk-K3M2OD5N.js';
|
|
2
2
|
export { MessageList, TypeDetector, aiV5ModelMessageToV2PromptMessage, convertMessages } from '../chunk-ESN5IH6I.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { WorkflowEventProcessor } from './chunk-
|
|
2
|
-
import { isToolLoopAgentLike, toolLoopAgentToMastraAgent } from './chunk-
|
|
3
|
-
import { DatasetsManager } from './chunk-
|
|
4
|
-
import { createOnScorerHook } from './chunk-
|
|
5
|
-
import { augmentWithInit } from './chunk-
|
|
1
|
+
import { WorkflowEventProcessor } from './chunk-L66I3YSY.js';
|
|
2
|
+
import { isToolLoopAgentLike, toolLoopAgentToMastraAgent } from './chunk-VJJGOU4M.js';
|
|
3
|
+
import { DatasetsManager } from './chunk-3Y6B3RK4.js';
|
|
4
|
+
import { createOnScorerHook } from './chunk-KPKJY76F.js';
|
|
5
|
+
import { augmentWithInit } from './chunk-K3M2OD5N.js';
|
|
6
6
|
import { registerHook } from './chunk-L54GIUCB.js';
|
|
7
7
|
import { noopLogger } from './chunk-PSCMWPLC.js';
|
|
8
8
|
import { InMemoryServerCache } from './chunk-GMSAGYTB.js';
|
|
@@ -2554,7 +2554,7 @@ var Mastra = class {
|
|
|
2554
2554
|
if (process.env.MASTRA_DEV !== "true" && process.env.MASTRA_DEV !== "1") {
|
|
2555
2555
|
return;
|
|
2556
2556
|
}
|
|
2557
|
-
import('./provider-registry-
|
|
2557
|
+
import('./provider-registry-PVY4JPVT.js').then(async ({ GatewayRegistry }) => {
|
|
2558
2558
|
const registry = GatewayRegistry.getInstance();
|
|
2559
2559
|
const customGateways = Object.values(this.#gateways || {});
|
|
2560
2560
|
registry.registerCustomGateways(customGateways);
|
|
@@ -2608,5 +2608,5 @@ var Mastra = class {
|
|
|
2608
2608
|
};
|
|
2609
2609
|
|
|
2610
2610
|
export { Mastra };
|
|
2611
|
-
//# sourceMappingURL=chunk-
|
|
2612
|
-
//# sourceMappingURL=chunk-
|
|
2611
|
+
//# sourceMappingURL=chunk-2GKPFOQH.js.map
|
|
2612
|
+
//# sourceMappingURL=chunk-2GKPFOQH.js.map
|