@mastra/core 1.11.0-alpha.1 → 1.11.0-alpha.2
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 +6 -0
- package/dist/agent/index.cjs +13 -13
- package/dist/agent/index.js +2 -2
- package/dist/agent/message-list/conversion/output-converter.d.ts.map +1 -1
- package/dist/agent/message-list/index.cjs +18 -18
- package/dist/agent/message-list/index.js +1 -1
- package/dist/{chunk-2CSKXHM7.cjs → chunk-6NZQ52RZ.cjs} +22 -10
- package/dist/chunk-6NZQ52RZ.cjs.map +1 -0
- package/dist/{chunk-PUTCRAH6.cjs → chunk-6VSVQ62A.cjs} +43 -43
- package/dist/{chunk-PUTCRAH6.cjs.map → chunk-6VSVQ62A.cjs.map} +1 -1
- package/dist/{chunk-C574TBOV.js → chunk-VVX2O7XN.js} +3 -3
- package/dist/{chunk-C574TBOV.js.map → chunk-VVX2O7XN.js.map} +1 -1
- package/dist/{chunk-GQRY6HEY.js → chunk-WD467XGW.js} +22 -10
- package/dist/chunk-WD467XGW.js.map +1 -0
- package/dist/datasets/index.cjs +16 -16
- package/dist/datasets/index.js +1 -1
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +182 -182
- package/dist/evals/index.cjs +4 -4
- package/dist/evals/index.js +1 -1
- package/dist/evals/scoreTraces/index.cjs +3 -3
- package/dist/evals/scoreTraces/index.js +1 -1
- package/dist/harness/index.cjs +3 -3
- package/dist/harness/index.js +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/dist/llm/index.cjs +6 -6
- package/dist/llm/index.js +1 -1
- 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/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/relevance/index.cjs +3 -3
- package/dist/relevance/index.js +1 -1
- package/dist/storage/index.cjs +64 -64
- package/dist/storage/index.js +1 -1
- package/dist/stream/index.cjs +11 -11
- package/dist/stream/index.js +2 -2
- package/dist/test-utils/llm-mock.cjs +12 -12
- package/dist/test-utils/llm-mock.js +3 -3
- package/dist/tool-loop-agent/index.cjs +4 -4
- package/dist/tool-loop-agent/index.js +1 -1
- package/dist/utils.cjs +23 -23
- package/dist/utils.js +1 -1
- package/dist/vector/index.cjs +9 -9
- package/dist/vector/index.js +2 -2
- 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/package.json +5 -5
- package/dist/chunk-2CSKXHM7.cjs.map +0 -1
- package/dist/chunk-GQRY6HEY.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @mastra/core
|
|
2
2
|
|
|
3
|
+
## 1.11.0-alpha.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fixed OpenAI reasoning models (e.g. gpt-5-mini) failing with "function*call was provided without its required reasoning item" when the agent loops back after a tool call. The issue was that `callProviderMetadata.openai` carrying `fc*\*`item IDs was not being stripped alongside reasoning parts, causing the AI SDK to send`item_reference`instead of inline`function_call` content. ([#14144](https://github.com/mastra-ai/mastra/pull/14144))
|
|
8
|
+
|
|
3
9
|
## 1.11.0-alpha.1
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/dist/agent/index.cjs
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunk6VSVQ62A_cjs = require('../chunk-6VSVQ62A.cjs');
|
|
4
|
+
var chunk6NZQ52RZ_cjs = require('../chunk-6NZQ52RZ.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 chunk6VSVQ62A_cjs.Agent; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "TripWire", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunk6VSVQ62A_cjs.TripWire; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "isSupportedLanguageModel", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunk6VSVQ62A_cjs.isSupportedLanguageModel; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "resolveThreadIdFromArgs", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunk6VSVQ62A_cjs.resolveThreadIdFromArgs; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "supportedLanguageModelSpecifications", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunk6VSVQ62A_cjs.supportedLanguageModelSpecifications; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "tryGenerateWithJsonFallback", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunk6VSVQ62A_cjs.tryGenerateWithJsonFallback; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "tryStreamWithJsonFallback", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunk6VSVQ62A_cjs.tryStreamWithJsonFallback; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "MessageList", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunk6NZQ52RZ_cjs.MessageList; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "TypeDetector", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunk6NZQ52RZ_cjs.TypeDetector; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "aiV5ModelMessageToV2PromptMessage", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunk6NZQ52RZ_cjs.aiV5ModelMessageToV2PromptMessage; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "convertMessages", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunk6NZQ52RZ_cjs.convertMessages; }
|
|
51
51
|
});
|
|
52
52
|
//# sourceMappingURL=index.cjs.map
|
|
53
53
|
//# sourceMappingURL=index.cjs.map
|
package/dist/agent/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Agent, TripWire, isSupportedLanguageModel, resolveThreadIdFromArgs, supportedLanguageModelSpecifications, tryGenerateWithJsonFallback, tryStreamWithJsonFallback } from '../chunk-
|
|
2
|
-
export { MessageList, TypeDetector, aiV5ModelMessageToV2PromptMessage, convertMessages } from '../chunk-
|
|
1
|
+
export { Agent, TripWire, isSupportedLanguageModel, resolveThreadIdFromArgs, supportedLanguageModelSpecifications, tryGenerateWithJsonFallback, tryStreamWithJsonFallback } from '../chunk-VVX2O7XN.js';
|
|
2
|
+
export { MessageList, TypeDetector, aiV5ModelMessageToV2PromptMessage, convertMessages } from '../chunk-WD467XGW.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"output-converter.d.ts","sourceRoot":"","sources":["../../../../src/agent/message-list/conversion/output-converter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW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,QAAQ,EAAE,WAAW,EAAE,GAAG,aAAa,EAAE,CAEzF;AAED;;;;;;;GAOG;AACH,wBAAgB,iCAAiC,CAC/C,QAAQ,EAAE,QAAQ,CAAC,SAAS,EAAE,EAC9B,UAAU,EAAE,eAAe,EAAE,EAC7B,yBAAyB,UAAQ,GAChC,QAAQ,CAAC,YAAY,EAAE,CAmEzB;AAED;;GAEG;AACH,wBAAgB,mCAAmC,CACjD,QAAQ,EAAE,aAAa,EAAE,EACzB,MAAM,EAAE,aAAa,EACrB,cAAc,EAAE,cAAc,EAC9B,UAAU,EAAE,eAAe,EAAE,GAC5B,QAAQ,CAAC,YAAY,EAAE,CAKzB;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,aAAa,GAAG,QAAQ,CAAC,YAAY,GAAG,eAAe,GAAG,MAAM,GACxE,aAAa,CAef"}
|
|
@@ -1,76 +1,76 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk6NZQ52RZ_cjs = require('../../chunk-6NZQ52RZ.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "AIV4Adapter", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunk6NZQ52RZ_cjs.AIV4Adapter; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "AIV5Adapter", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk6NZQ52RZ_cjs.AIV5Adapter; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "CacheKeyGenerator", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk6NZQ52RZ_cjs.CacheKeyGenerator; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "MessageList", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunk6NZQ52RZ_cjs.MessageList; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "MessageMerger", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunk6NZQ52RZ_cjs.MessageMerger; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "MessageStateManager", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunk6NZQ52RZ_cjs.MessageStateManager; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "TypeDetector", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunk6NZQ52RZ_cjs.TypeDetector; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "aiV4CoreMessageToV1PromptMessage", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunk6NZQ52RZ_cjs.aiV4CoreMessageToV1PromptMessage; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "aiV5ModelMessageToV2PromptMessage", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunk6NZQ52RZ_cjs.aiV5ModelMessageToV2PromptMessage; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "convertMessages", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunk6NZQ52RZ_cjs.convertMessages; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "coreContentToString", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunk6NZQ52RZ_cjs.coreContentToString; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "ensureAnthropicCompatibleMessages", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunk6NZQ52RZ_cjs.ensureAnthropicCompatibleMessages; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "ensureGeminiCompatibleMessages", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunk6NZQ52RZ_cjs.ensureGeminiCompatibleMessages; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "findToolCallArgs", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunk6NZQ52RZ_cjs.findToolCallArgs; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "getOpenAIReasoningItemId", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunk6NZQ52RZ_cjs.getOpenAIReasoningItemId; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "hasOpenAIReasoningItemId", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunk6NZQ52RZ_cjs.hasOpenAIReasoningItemId; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "messagesAreEqual", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunk6NZQ52RZ_cjs.messagesAreEqual; }
|
|
74
74
|
});
|
|
75
75
|
//# sourceMappingURL=index.cjs.map
|
|
76
76
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { AIV4Adapter, AIV5Adapter, CacheKeyGenerator, MessageList, MessageMerger, MessageStateManager, TypeDetector, aiV4CoreMessageToV1PromptMessage, aiV5ModelMessageToV2PromptMessage, convertMessages, coreContentToString, ensureAnthropicCompatibleMessages, ensureGeminiCompatibleMessages, findToolCallArgs, getOpenAIReasoningItemId, hasOpenAIReasoningItemId, messagesAreEqual } from '../../chunk-
|
|
1
|
+
export { AIV4Adapter, AIV5Adapter, CacheKeyGenerator, MessageList, MessageMerger, MessageStateManager, TypeDetector, aiV4CoreMessageToV1PromptMessage, aiV5ModelMessageToV2PromptMessage, convertMessages, coreContentToString, ensureAnthropicCompatibleMessages, ensureGeminiCompatibleMessages, findToolCallArgs, getOpenAIReasoningItemId, hasOpenAIReasoningItemId, messagesAreEqual } from '../../chunk-WD467XGW.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -10836,14 +10836,26 @@ function sanitizeV5UIMessages(messages, filterIncompleteToolCalls = false) {
|
|
|
10836
10836
|
const sanitized = {
|
|
10837
10837
|
...m,
|
|
10838
10838
|
parts: safeParts.map((part) => {
|
|
10839
|
-
if (hasOpenAIReasoning
|
|
10840
|
-
|
|
10841
|
-
|
|
10842
|
-
|
|
10843
|
-
|
|
10844
|
-
|
|
10845
|
-
|
|
10846
|
-
|
|
10839
|
+
if (hasOpenAIReasoning) {
|
|
10840
|
+
if ("providerMetadata" in part && part.providerMetadata) {
|
|
10841
|
+
const meta = part.providerMetadata;
|
|
10842
|
+
if ("openai" in meta) {
|
|
10843
|
+
const { openai: _, ...restMeta } = meta;
|
|
10844
|
+
part = {
|
|
10845
|
+
...part,
|
|
10846
|
+
providerMetadata: Object.keys(restMeta).length > 0 ? restMeta : void 0
|
|
10847
|
+
};
|
|
10848
|
+
}
|
|
10849
|
+
}
|
|
10850
|
+
if ("callProviderMetadata" in part && part.callProviderMetadata) {
|
|
10851
|
+
const callMeta = part.callProviderMetadata;
|
|
10852
|
+
if ("openai" in callMeta) {
|
|
10853
|
+
const { openai: _, ...restCallMeta } = callMeta;
|
|
10854
|
+
part = {
|
|
10855
|
+
...part,
|
|
10856
|
+
callProviderMetadata: Object.keys(restCallMeta).length > 0 ? restCallMeta : void 0
|
|
10857
|
+
};
|
|
10858
|
+
}
|
|
10847
10859
|
}
|
|
10848
10860
|
}
|
|
10849
10861
|
if (chunkTYXLVOEC_cjs.isToolUIPart(part) && part.state === "output-available") {
|
|
@@ -13018,5 +13030,5 @@ exports.sanitizeToolName = sanitizeToolName;
|
|
|
13018
13030
|
exports.simulateReadableStream = simulateReadableStream;
|
|
13019
13031
|
exports.streamObject = streamObject;
|
|
13020
13032
|
exports.streamText = streamText;
|
|
13021
|
-
//# sourceMappingURL=chunk-
|
|
13022
|
-
//# sourceMappingURL=chunk-
|
|
13033
|
+
//# sourceMappingURL=chunk-6NZQ52RZ.cjs.map
|
|
13034
|
+
//# sourceMappingURL=chunk-6NZQ52RZ.cjs.map
|