@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/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, isToolCallContent, isToolChoiceActive, isToolResultPart, jsonProtocol, logParseFailure, logParsedChunk, logParsedSummary, logRawChunk, mergePipelineConfigs, normalizeCloseTagsHeuristic, originalToolsSchema, parse, repairAgainstSchemaHeuristic, stringify, toolChoiceStream, transform, transformParams, wrapGenerate, wrapStream, xmlProtocol, xmlToolMiddleware, yamlProtocol, yamlToolMiddleware };
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, isToolCallContent, isToolChoiceActive, isToolResultPart, jsonProtocol, logParseFailure, logParsedChunk, logParsedSummary, logRawChunk, mergePipelineConfigs, normalizeCloseTagsHeuristic, originalToolsSchema, parse, repairAgainstSchemaHeuristic, stringify, toolChoiceStream, transform, transformParams, wrapGenerate, wrapStream, xmlProtocol, xmlToolMiddleware, yamlProtocol, yamlToolMiddleware };
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-JVQVEA3K.js";
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.0",
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.1",
34
- "@ai-sdk/provider-utils": "4.0.2",
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.2",
39
+ "@ai-sdk/openai-compatible": "2.0.4",
40
40
  "@types/node": "^25.0.3",
41
- "ai": "6.0.6",
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"