@friskai/frisk-js 0.2.0 → 0.2.1

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.js CHANGED
@@ -74451,7 +74451,10 @@ function wrapToolWithLlmReasoning2(originalTool) {
74451
74451
  ...baseSchema,
74452
74452
  ...llmReasoningZodShape
74453
74453
  };
74454
- return tool(originalTool.name, originalTool.description, schemaWithReasoning, originalTool.handler);
74454
+ return tool(originalTool.name, originalTool.description, schemaWithReasoning, (args, extra) => {
74455
+ const strippedArgs = removeLlmReasoningArg(args);
74456
+ return originalTool.handler(strippedArgs, extra);
74457
+ });
74455
74458
  }
74456
74459
 
74457
74460
  // src/adapters/claude/claude-framework-adapter/claude-framework-adapter.ts
@@ -74509,7 +74512,7 @@ class ClaudeFrameworkAdapter {
74509
74512
  }
74510
74513
  wrapTool(tool2, options = DefaultWrapToolOptions) {
74511
74514
  let result = tool2;
74512
- if (options.captureReasoning) {
74515
+ if (options?.captureReasoning !== false) {
74513
74516
  result = wrapToolWithLlmReasoning2(tool2);
74514
74517
  }
74515
74518
  return result;
@@ -74567,7 +74570,7 @@ class FriskClaudeSession extends FriskSession {
74567
74570
  const toolCall = {
74568
74571
  id: input.tool_use_id,
74569
74572
  name: resolveClaudeToolName(input.tool_name),
74570
- args: removeLlmReasoningArg(input.tool_input)
74573
+ args: input.tool_input
74571
74574
  };
74572
74575
  const toolCallDecision = this.decideToolCall({
74573
74576
  toolCall,
@@ -74656,5 +74659,5 @@ export {
74656
74659
  AccessTokenProvider
74657
74660
  };
74658
74661
 
74659
- //# debugId=7E29E627772FDB7264756E2164756E21
74662
+ //# debugId=D0BA917D6B96B3B564756E2164756E21
74660
74663
  //# sourceMappingURL=index.js.map