Repository navigation
feat: Add code execution tool support - #1077
Merged
Merged
Conversation
Contributor
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
Add support for Anthropic's bash and text editor code execution tools: - Add BashCodeExecutionToolCall and TextEditorCodeExecutionToolCall types - Add response types with operation-specific variants (view, create, str_replace) - Handle code execution content blocks in streaming responses - Register code execution tools for schema generation Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Update generated schemas and TypeScript types to include: - bash_code_execution tool call and response types - text_editor_code_execution tool with view/create/str_replace variants - Result types with stdout, stderr, return_code, diff lines, etc. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add frontend components for displaying code execution results: - BashCodeExecution: shows truncated command preview, expandable output - TextEditorCodeExecution: shows file operations with expandable diffs - CodeFence component for collapsible code blocks with caret toggle - Register handlers in tool handler map Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The generate-dcs-tools.ts script was not properly handling JSON Schema patterns where $ref has sibling properties (like discriminator fields). json-schema-to-typescript ignores the $ref content when siblings exist. - Add preprocessSchemaForRefs() to convert $ref + siblings into allOf - Add deduplicateTypes() to remove duplicate nested type definitions - Regenerate tool schemas and types with correct fields - Update TextEditorCodeExecution.tsx to use new type structure Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
… Rust - Add document_cognition_service_tools_schema binary to generate AI tools JSON schema directly from Rust types - Update generate-dcs-types.ts to run the binary and regenerate tools.json before generating TypeScript types - This ensures tools.json stays in sync with Rust type definitions Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…son from Rust" This reverts commit b12a424.
synoet
approved these changes
Jan 21, 2026
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.
Summary
Test plan
🤖 Generated with Claude Code