Skip to content

refactor: add zod typed metadata for tool calls#691

Closed
jonathanlab wants to merge 3 commits intomainfrom
01-29-refactor_add_zod_typed_metadata_for_tool_calls
Closed

refactor: add zod typed metadata for tool calls#691
jonathanlab wants to merge 3 commits intomainfrom
01-29-refactor_add_zod_typed_metadata_for_tool_calls

Conversation

@jonathanlab
Copy link
Contributor

@jonathanlab jonathanlab commented Jan 29, 2026

  • Created a new tool-meta.ts module that defines structured types for different tool kinds (bash, edit, write, read, switch_mode, question)
  • Added type guards like isSwitchModeToolMeta to safely check tool types

This is better than using rawInput and is needed for the upcoming tool call UI rework

Copy link
Contributor Author

jonathanlab commented Jan 29, 2026

@jonathanlab jonathanlab marked this pull request as ready for review January 29, 2026 18:50
@jonathanlab jonathanlab requested a review from a team as a code owner January 29, 2026 18:50
Base automatically changed from feat/plan-mode-permission-integration to main January 29, 2026 22:47
@jonathanlab
Copy link
Contributor Author

did this in #736

@jonathanlab jonathanlab closed this Feb 3, 2026
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