@ai-sdk-tool/parser 3.0.0-canary.3 → 3.1.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/README.md +7 -9
- package/dist/{chunk-2B2YNKXY.js → chunk-JVQVEA3K.js} +2681 -2489
- package/dist/chunk-JVQVEA3K.js.map +1 -0
- package/dist/community.cjs +2696 -2520
- package/dist/community.cjs.map +1 -1
- package/dist/community.d.cts +0 -14
- package/dist/community.d.ts +0 -14
- package/dist/community.js +8 -6
- package/dist/community.js.map +1 -1
- package/dist/index.cjs +2778 -2561
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +159 -132
- package/dist/index.d.ts +159 -132
- package/dist/index.js +27 -13
- package/package.json +9 -8
- package/dist/chunk-2B2YNKXY.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -12,29 +12,36 @@ import {
|
|
|
12
12
|
escapeRegExp,
|
|
13
13
|
extractOnErrorOption,
|
|
14
14
|
extractToolNamesFromOriginalTools,
|
|
15
|
-
gemmaToolMiddleware,
|
|
16
15
|
getDebugLevel,
|
|
17
16
|
getPotentialStartIndex,
|
|
18
17
|
hasInputProperty,
|
|
19
18
|
hermesToolMiddleware,
|
|
19
|
+
isProtocolFactory,
|
|
20
|
+
isTCMProtocolFactory,
|
|
20
21
|
isToolCallContent,
|
|
21
22
|
isToolChoiceActive,
|
|
22
23
|
isToolResultPart,
|
|
23
|
-
|
|
24
|
+
jsonProtocol,
|
|
24
25
|
logParseFailure,
|
|
25
26
|
logParsedChunk,
|
|
26
27
|
logParsedSummary,
|
|
27
28
|
logRawChunk,
|
|
28
29
|
mergePipelineConfigs,
|
|
29
|
-
morphXmlProtocol,
|
|
30
|
-
morphXmlToolMiddleware,
|
|
31
30
|
normalizeCloseTagsHeuristic,
|
|
32
31
|
originalToolsSchema,
|
|
33
32
|
parse,
|
|
34
33
|
repairAgainstSchemaHeuristic,
|
|
35
34
|
stringify,
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
toolChoiceStream,
|
|
36
|
+
transform,
|
|
37
|
+
transformParams,
|
|
38
|
+
wrapGenerate,
|
|
39
|
+
wrapStream,
|
|
40
|
+
xmlProtocol,
|
|
41
|
+
xmlToolMiddleware,
|
|
42
|
+
yamlProtocol,
|
|
43
|
+
yamlToolMiddleware
|
|
44
|
+
} from "./chunk-JVQVEA3K.js";
|
|
38
45
|
export {
|
|
39
46
|
applyHeuristicPipeline,
|
|
40
47
|
balanceTagsHeuristic,
|
|
@@ -49,27 +56,34 @@ export {
|
|
|
49
56
|
escapeRegExp,
|
|
50
57
|
extractOnErrorOption,
|
|
51
58
|
extractToolNamesFromOriginalTools,
|
|
52
|
-
gemmaToolMiddleware,
|
|
53
59
|
getDebugLevel,
|
|
54
60
|
getPotentialStartIndex,
|
|
55
61
|
hasInputProperty,
|
|
56
62
|
hermesToolMiddleware,
|
|
63
|
+
isProtocolFactory,
|
|
64
|
+
isTCMProtocolFactory,
|
|
57
65
|
isToolCallContent,
|
|
58
66
|
isToolChoiceActive,
|
|
59
67
|
isToolResultPart,
|
|
60
|
-
|
|
68
|
+
jsonProtocol,
|
|
61
69
|
logParseFailure,
|
|
62
70
|
logParsedChunk,
|
|
63
71
|
logParsedSummary,
|
|
64
72
|
logRawChunk,
|
|
65
73
|
mergePipelineConfigs,
|
|
66
|
-
morphXmlProtocol,
|
|
67
|
-
morphXmlToolMiddleware,
|
|
68
74
|
normalizeCloseTagsHeuristic,
|
|
69
75
|
originalToolsSchema,
|
|
70
|
-
parse
|
|
76
|
+
parse,
|
|
71
77
|
repairAgainstSchemaHeuristic,
|
|
72
|
-
stringify
|
|
73
|
-
|
|
78
|
+
stringify,
|
|
79
|
+
toolChoiceStream,
|
|
80
|
+
transform,
|
|
81
|
+
transformParams,
|
|
82
|
+
wrapGenerate,
|
|
83
|
+
wrapStream,
|
|
84
|
+
xmlProtocol,
|
|
85
|
+
xmlToolMiddleware,
|
|
86
|
+
yamlProtocol,
|
|
87
|
+
yamlToolMiddleware
|
|
74
88
|
};
|
|
75
89
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-sdk-tool/parser",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "AI SDK middleware for tool call parsing",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -30,17 +30,18 @@
|
|
|
30
30
|
"access": "public"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@ai-sdk/provider": "3.0.
|
|
34
|
-
"@ai-sdk/provider-utils": "4.0.
|
|
35
|
-
"
|
|
33
|
+
"@ai-sdk/provider": "3.0.1",
|
|
34
|
+
"@ai-sdk/provider-utils": "4.0.2",
|
|
35
|
+
"yaml": "^2.7.0",
|
|
36
|
+
"@ai-sdk-tool/rxml": "0.1.2"
|
|
36
37
|
},
|
|
37
38
|
"devDependencies": {
|
|
38
|
-
"@ai-sdk/openai-compatible": "2.0.
|
|
39
|
+
"@ai-sdk/openai-compatible": "2.0.2",
|
|
39
40
|
"@types/node": "^25.0.3",
|
|
40
|
-
"ai": "6.0.
|
|
41
|
+
"ai": "6.0.6",
|
|
41
42
|
"tsup": "^8.5.1",
|
|
42
|
-
"zod": "^4.
|
|
43
|
-
"@ai-sdkx/tsconfig": "0.0.1
|
|
43
|
+
"zod": "^4.3.5",
|
|
44
|
+
"@ai-sdkx/tsconfig": "0.0.1"
|
|
44
45
|
},
|
|
45
46
|
"keywords": [],
|
|
46
47
|
"author": "",
|