Commit ddcfc51
authored
Update @runt/schema to commit 8d3bd82 with proper type validation (#205)
* Update @runt/schema to commit 14c2c60f5576eebc509ed76b5cde0c3cab4246a4
* Fix type safety issues with updated @runt/schema
- 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)
* Use exported MIME type constants from @runt/schema
- 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
* Fix AI tool result validation to handle actual runtime data structure
- 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
* Update @runt/schema to commit 8d3bd82a1c2e54cf46b0f133d327d4ca6de6acdc
- 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 safety1 parent 2201772 commit ddcfc51
4 files changed
Lines changed: 11 additions & 30 deletions
File tree
- src/components
- notebook
- outputs
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
195 | 196 | | |
196 | 197 | | |
197 | 198 | | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
| 199 | + | |
207 | 200 | | |
208 | 201 | | |
209 | | - | |
| 202 | + | |
210 | 203 | | |
211 | 204 | | |
212 | 205 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
| 6 | + | |
14 | 7 | | |
15 | 8 | | |
16 | 9 | | |
| |||
57 | 50 | | |
58 | 51 | | |
59 | 52 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | 53 | | |
66 | 54 | | |
67 | 55 | | |
| |||
0 commit comments