Update @runt/schema to commit 8d3bd82 with proper type validation#205
Merged
Conversation
- Update RichOutput to use proper MediaContainer types - Fix AI tool output components to use correct schema field names - Remove unused imports and fix linter errors - Update output index to re-export schema types - All tests passing (58/58)
- Replace raw strings with AI_TOOL_CALL_MIME_TYPE and AI_TOOL_RESULT_MIME_TYPE - Use TEXT_MIME_TYPES, APPLICATION_MIME_TYPES, IMAGE_MIME_TYPES arrays - Add support for Jupyter MIME types (Plotly, Vega-Lite, etc.) - Improve type safety and consistency with schema definitions
- Use flexible validation instead of strict schema type guard
- Handle actual data structure: {tool_call_id, result, status}
- Remove unused imports
- Tool results now display correctly with success/error icons
- Use proper schema validation with fixed AiToolResultData interface - Restore isAiToolResultData type guard usage - Remove flexible workaround now that schema matches runtime behavior - Clean up component types to use proper AiToolResultData interface - All tests passing with proper type safety
…commit - Keep new schema commit 8d3bd82a1c2e54cf46b0f133d327d4ca6de6acdc - Use proper isAiToolResultData type guard instead of flexible workaround - Maintain clean component interfaces with AiToolResultData schema type - All tests passing after merge resolution
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates @runt/schema to commit 8d3bd82a1c2e54cf46b0f133d327d4ca6de6acdc which includes the fixed AiToolResultData interface, allowing us to use proper schema validation instead of flexible workarounds.
Changes Made
Schema Update
14c2c60f5576eebc509ed76b5cde0c3cab4246a4to8d3bd82a1c2e54cf46b0f133d327d4ca6de6acdcAiToolResultDatainterface with optional fieldsCode Cleanup
isAiToolResultDatatype guard usageAiToolResultDatainterfaceBenefits
Testing
This completes the schema update cycle: the runt schema was fixed to match actual runtime behavior, and now anode uses the corrected schema types properly.