Skip to content

Improve argument type validation with automatic type conversion#11

Merged
anak10thn merged 5 commits into
mainfrom
fixed/flicker
Jul 31, 2025
Merged

Improve argument type validation with automatic type conversion#11
anak10thn merged 5 commits into
mainfrom
fixed/flicker

Conversation

@anak10thn

Copy link
Copy Markdown
Contributor

What this PR does

This PR enhances the argument parsing functionality by adding automatic type conversion capabilities and fixes the condense_conversation tool requirements.

Changes

  • Added automatic conversion of string values to number/boolean types in argument validation
  • Fixed condense_conversation tool to properly require the context parameter
  • Added comprehensive tests for type conversion scenarios
  • Bumped version to 0.2.1 and published to npm

Technical Details

  • Enhanced the validateArgumentTypes function to handle string-to-number and string-to-boolean conversions
  • Added proper validation for edge cases and error conditions
  • Updated tool definitions to properly specify required parameters

Testing

  • Added new test cases for type conversion functionality
  • All existing tests continue to pass
  • Manual testing confirms improved behavior with various input types

- Add automatic conversion of string to number/boolean types
- Fix condense_conversation tool to require context parameter
- Add comprehensive tests for type conversion scenarios
@anak10thn anak10thn merged commit 1140069 into main Jul 31, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant