Commit Graph
8 Commits
Author SHA1 Message Date
hy b5825487e8 feat: update browser tool handling to remove success field and enhance error reporting 2026-09-04 14:51:31 +08:00
hy 8c0d05a216 refactor: update assistant execution summary and related tests
- Removed unused 'wait' status and replaced with 'learning' in assistant execution types.
- Enhanced assistant execution summary text for various tool actions, including improved translations for user feedback.
- Refactored logic for building execution summaries to streamline handling of tool statuses and text segments.
- Updated tests to reflect changes in execution summary behavior and ensure accurate assertions for tool actions.
- Improved terminal command handling in tests, allowing for detached execution scenarios and refining assertions for terminal command results.
- Adjusted e2e tests to validate rendering of process activities and final answers, ensuring compliance with updated requirements.
2026-09-03 15:28:17 +08:00
hy bb20a1ecdf fix: update documentation and test plan for AI tool prompt audit generation
- Updated architecture documentation to clarify the generation of AI tool prompt audit examples.
- Revised workbench test plan to specify Excel tool coverage and ensure accurate validation of user workflows without redundant operation enumeration.
- Modified script comments for generating AI tool prompt audit to reflect new command usage and clarify that generated examples are not stored in the repository.
2026-09-03 13:32:50 +08:00
Yoan Huang a0e32c98fe refactor: update web search tool to use type-based input for fetching and searching
- Changed the web search tool to differentiate between 'fetch' and 'search' types using a discriminated union in the input schema.
- Updated the handling of web search results to return structured outputs for both fetching a URL and searching for content.
- Refactored related functions and types to accommodate the new structure, including output types and error handling.
- Adjusted tests to reflect the new input structure and ensure proper functionality for both fetching and searching scenarios.
- Enhanced the rendering of web search results to align with the new output format.
2026-08-30 19:16:30 +08:00
Yoan Huang 006eb43ca2 feat: enhance web search result rendering with markdown support and update documentation 2026-08-30 19:03:37 +08:00
Yoan Huang cf372c5522 feat: enhance AI tool prompt audit with detailed input cases and improved output structures
- Added input fields to OutputCase type for better context in terminal and file operations.
- Updated terminal run cases to include command explanations and refined output data.
- Expanded text file edit cases to cover batch replacements and detailed error messages.
- Enhanced knowledge base search and document listing with additional metadata and improved error handling.
- Improved PDF and DOCX handling with more comprehensive data structures and examples.
- Refined Excel operations to include detailed input parameters and error messages.
- Added new image generation cases with specific input requirements and output details.
2026-08-30 19:03:25 +08:00
Yoan Huang 4c5c4e945d feat: implement rendering functions for file envelopes, grouped sections, and prose
- Added `renderFileEnvelope`, `renderNumberedFileLines`, and `formatReadRangeFooter` in `envelope.ts`.
- Introduced `renderGroupedHeader`, `renderGroupedFooter`, `joinGroupedSections`, and `renderNoMatches` in `grouped.ts`.
- Created `renderUntrustedWebContent` in `markdownWeb.ts` to handle untrusted web content rendering.
- Developed prose rendering functions in `prose.ts` including `renderProse`, `renderFileMutationProse`, and `renderResourceMutationProse`.
- Implemented shared utility functions in `shared.ts` for XML escaping and line wrapping.
- Added terminal rendering functions in `terminal.ts` for output streams and markers.
- Updated terminal tool schemas to reflect changes in output types and statuses.
- Refactored terminal status handling in `terminalToolStatus.ts` for better clarity and consistency.
- Enhanced terminal tool tests to validate new status mappings and output structures.
- Created unit tests for model tool result renderers to ensure correct output formatting.
2026-08-30 18:54:46 +08:00
Yoan Huang 37d5789995 feat: add script to generate AI tool prompt audit documentation
- Implemented a new script `generate-ai-tool-prompt-audit.mts` that generates a markdown document for auditing AI tool prompts.
- The script extracts input and output specifications from the tool registry and formats them into a structured markdown format.
- Includes detailed examples for each tool, enhancing documentation clarity and usability.
2026-08-30 17:39:30 +08:00