@ai-sdk-tool/parser 3.1.0 → 3.1.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/dist/{chunk-JVQVEA3K.js → chunk-TQT6XSP7.js} +66 -69
- package/dist/chunk-TQT6XSP7.js.map +1 -0
- package/dist/community.cjs +61 -68
- package/dist/community.cjs.map +1 -1
- package/dist/community.js +1 -1
- package/dist/index.cjs +65 -69
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +1 -3
- package/package.json +5 -5
- package/dist/chunk-JVQVEA3K.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -305,7 +305,6 @@ declare function parse(text: string, optsOrReviver?: ParseOptions | ((key: strin
|
|
|
305
305
|
*/
|
|
306
306
|
declare function stringify(obj: unknown): string;
|
|
307
307
|
|
|
308
|
-
declare function isToolCallContent(content: unknown): content is LanguageModelV3ToolCall;
|
|
309
308
|
declare function isToolResultPart(content: unknown): content is ToolResultPart;
|
|
310
309
|
declare function hasInputProperty(obj: unknown): obj is {
|
|
311
310
|
input?: unknown;
|
|
@@ -424,4 +423,4 @@ declare function transformParams({ params, protocol, toolSystemPromptTemplate, t
|
|
|
424
423
|
toolChoice: undefined;
|
|
425
424
|
};
|
|
426
425
|
|
|
427
|
-
export { type DebugLevel, type HeuristicEngineOptions, type HeuristicPhase, type HeuristicResult, type IntermediateCall, type OnErrorFn, type ParseOptions, type PipelineConfig$1 as PipelineConfig, type TCMCoreProtocol, type TCMProtocol, type ToolCallHeuristic$1 as ToolCallHeuristic, type ToolCallMiddlewareProviderOptions, type XmlProtocolOptions, type YamlProtocolOptions, applyHeuristicPipeline, balanceTagsHeuristic, createDynamicIfThenElseSchema, createIntermediateCall, createToolMiddleware, decodeOriginalTools, dedupeShellStringTagsHeuristic, defaultPipelineConfig, encodeOriginalTools, escapeInvalidLtHeuristic, escapeRegExp, extractOnErrorOption, extractToolNamesFromOriginalTools, getDebugLevel, getPotentialStartIndex, hasInputProperty, hermesToolMiddleware, isProtocolFactory, isTCMProtocolFactory,
|
|
426
|
+
export { type DebugLevel, type HeuristicEngineOptions, type HeuristicPhase, type HeuristicResult, type IntermediateCall, type OnErrorFn, type ParseOptions, type PipelineConfig$1 as PipelineConfig, type TCMCoreProtocol, type TCMProtocol, type ToolCallHeuristic$1 as ToolCallHeuristic, type ToolCallMiddlewareProviderOptions, type XmlProtocolOptions, type YamlProtocolOptions, applyHeuristicPipeline, balanceTagsHeuristic, createDynamicIfThenElseSchema, createIntermediateCall, createToolMiddleware, decodeOriginalTools, dedupeShellStringTagsHeuristic, defaultPipelineConfig, encodeOriginalTools, escapeInvalidLtHeuristic, escapeRegExp, extractOnErrorOption, extractToolNamesFromOriginalTools, getDebugLevel, getPotentialStartIndex, hasInputProperty, hermesToolMiddleware, isProtocolFactory, isTCMProtocolFactory, isToolChoiceActive, isToolResultPart, jsonProtocol, logParseFailure, logParsedChunk, logParsedSummary, logRawChunk, mergePipelineConfigs, normalizeCloseTagsHeuristic, originalToolsSchema, parse, repairAgainstSchemaHeuristic, stringify, toolChoiceStream, transform, transformParams, wrapGenerate, wrapStream, xmlProtocol, xmlToolMiddleware, yamlProtocol, yamlToolMiddleware };
|
package/dist/index.d.ts
CHANGED
|
@@ -305,7 +305,6 @@ declare function parse(text: string, optsOrReviver?: ParseOptions | ((key: strin
|
|
|
305
305
|
*/
|
|
306
306
|
declare function stringify(obj: unknown): string;
|
|
307
307
|
|
|
308
|
-
declare function isToolCallContent(content: unknown): content is LanguageModelV3ToolCall;
|
|
309
308
|
declare function isToolResultPart(content: unknown): content is ToolResultPart;
|
|
310
309
|
declare function hasInputProperty(obj: unknown): obj is {
|
|
311
310
|
input?: unknown;
|
|
@@ -424,4 +423,4 @@ declare function transformParams({ params, protocol, toolSystemPromptTemplate, t
|
|
|
424
423
|
toolChoice: undefined;
|
|
425
424
|
};
|
|
426
425
|
|
|
427
|
-
export { type DebugLevel, type HeuristicEngineOptions, type HeuristicPhase, type HeuristicResult, type IntermediateCall, type OnErrorFn, type ParseOptions, type PipelineConfig$1 as PipelineConfig, type TCMCoreProtocol, type TCMProtocol, type ToolCallHeuristic$1 as ToolCallHeuristic, type ToolCallMiddlewareProviderOptions, type XmlProtocolOptions, type YamlProtocolOptions, applyHeuristicPipeline, balanceTagsHeuristic, createDynamicIfThenElseSchema, createIntermediateCall, createToolMiddleware, decodeOriginalTools, dedupeShellStringTagsHeuristic, defaultPipelineConfig, encodeOriginalTools, escapeInvalidLtHeuristic, escapeRegExp, extractOnErrorOption, extractToolNamesFromOriginalTools, getDebugLevel, getPotentialStartIndex, hasInputProperty, hermesToolMiddleware, isProtocolFactory, isTCMProtocolFactory,
|
|
426
|
+
export { type DebugLevel, type HeuristicEngineOptions, type HeuristicPhase, type HeuristicResult, type IntermediateCall, type OnErrorFn, type ParseOptions, type PipelineConfig$1 as PipelineConfig, type TCMCoreProtocol, type TCMProtocol, type ToolCallHeuristic$1 as ToolCallHeuristic, type ToolCallMiddlewareProviderOptions, type XmlProtocolOptions, type YamlProtocolOptions, applyHeuristicPipeline, balanceTagsHeuristic, createDynamicIfThenElseSchema, createIntermediateCall, createToolMiddleware, decodeOriginalTools, dedupeShellStringTagsHeuristic, defaultPipelineConfig, encodeOriginalTools, escapeInvalidLtHeuristic, escapeRegExp, extractOnErrorOption, extractToolNamesFromOriginalTools, getDebugLevel, getPotentialStartIndex, hasInputProperty, hermesToolMiddleware, isProtocolFactory, isTCMProtocolFactory, isToolChoiceActive, isToolResultPart, jsonProtocol, logParseFailure, logParsedChunk, logParsedSummary, logRawChunk, mergePipelineConfigs, normalizeCloseTagsHeuristic, originalToolsSchema, parse, repairAgainstSchemaHeuristic, stringify, toolChoiceStream, transform, transformParams, wrapGenerate, wrapStream, xmlProtocol, xmlToolMiddleware, yamlProtocol, yamlToolMiddleware };
|
package/dist/index.js
CHANGED
|
@@ -18,7 +18,6 @@ import {
|
|
|
18
18
|
hermesToolMiddleware,
|
|
19
19
|
isProtocolFactory,
|
|
20
20
|
isTCMProtocolFactory,
|
|
21
|
-
isToolCallContent,
|
|
22
21
|
isToolChoiceActive,
|
|
23
22
|
isToolResultPart,
|
|
24
23
|
jsonProtocol,
|
|
@@ -41,7 +40,7 @@ import {
|
|
|
41
40
|
xmlToolMiddleware,
|
|
42
41
|
yamlProtocol,
|
|
43
42
|
yamlToolMiddleware
|
|
44
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-TQT6XSP7.js";
|
|
45
44
|
export {
|
|
46
45
|
applyHeuristicPipeline,
|
|
47
46
|
balanceTagsHeuristic,
|
|
@@ -62,7 +61,6 @@ export {
|
|
|
62
61
|
hermesToolMiddleware,
|
|
63
62
|
isProtocolFactory,
|
|
64
63
|
isTCMProtocolFactory,
|
|
65
|
-
isToolCallContent,
|
|
66
64
|
isToolChoiceActive,
|
|
67
65
|
isToolResultPart,
|
|
68
66
|
jsonProtocol,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-sdk-tool/parser",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.2",
|
|
4
4
|
"description": "AI SDK middleware for tool call parsing",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -30,15 +30,15 @@
|
|
|
30
30
|
"access": "public"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@ai-sdk/provider": "3.0.
|
|
34
|
-
"@ai-sdk/provider-utils": "4.0.
|
|
33
|
+
"@ai-sdk/provider": "3.0.2",
|
|
34
|
+
"@ai-sdk/provider-utils": "4.0.4",
|
|
35
35
|
"yaml": "^2.7.0",
|
|
36
36
|
"@ai-sdk-tool/rxml": "0.1.2"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@ai-sdk/openai-compatible": "2.0.
|
|
39
|
+
"@ai-sdk/openai-compatible": "2.0.4",
|
|
40
40
|
"@types/node": "^25.0.3",
|
|
41
|
-
"ai": "6.0.
|
|
41
|
+
"ai": "6.0.23",
|
|
42
42
|
"tsup": "^8.5.1",
|
|
43
43
|
"zod": "^4.3.5",
|
|
44
44
|
"@ai-sdkx/tsconfig": "0.0.1"
|