Commit Graph
1391 Commits
Author SHA1 Message Date
hy 96bf2b6bd0 fix: clarify handling instructions for document formats in system prompt 2026-09-03 14:21:54 +08:00
hy c51381f56f refactor: simplify descriptions for document handling skills in the skill catalog 2026-09-03 14:20:47 +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
hy 9f7bc6043b refactor: update documentation and improve clarity across multiple files; streamline code structure and remove unused exports 2026-09-03 12:29:57 +08:00
hy 6b9755c5e6 refactor: update tidy process documentation for clarity and structure; enhance auditing and review guidelines 2026-09-03 11:40:19 +08:00
hy 9e492362ab fix: update references to sections in documentation for consistency and clarity 2026-09-03 11:34:06 +08:00
hy 9db50b2c16 Refactor test plans and tidy documentation; streamline AI event processing and tool specifications
- Updated workbench test plan to clarify AI tool responsibilities and remove redundant assertions.
- Revised tidy process documentation to enhance clarity and enforce a structured review process.
- Refactored AI event processing functions to use private scope for internal utility functions.
- Removed deprecated constants and streamlined tool result persistence logic.
- Adjusted DOCX tool specifications to consolidate write and mutation tool specs.
- Cleaned up terminal constants to use updated character limits.
- Removed unused image processing tests to simplify unit tests.
- Enhanced workspace-related end-to-end tests for clarity and accuracy in assertions.
2026-09-03 11:21:00 +08:00
hy 202174161f feat: update human harness documentation and brain prompt formatting; adjust compacted history rendering order and test cases 2026-09-03 10:32:23 +08:00
hy 625526d7f5 feat: refine brain message handling; adjust active state injection logic and improve task board persistence across runs 2026-09-03 10:12:42 +08:00
hy acefc5fe15 feat: implement brain user snapshot handling; enhance context management and message projection for improved session continuity 2026-09-03 09:55:14 +08:00
hy d080018106 feat: update context compaction window size for improved compression handling; enhance browser menu window focus check 2026-09-03 09:34:13 +08:00
hy b5db190e92 feat: update database schema and migrations; refine HTTP page fetch error handling and message processing 2026-09-02 18:21:26 +08:00
hy 222b706687 feat: add chat search turn functionality and related migrations
- Introduced new migration to drop chat session skill state and chat message tables.
- Added migration to create chat_search_turn table with necessary fields and constraints.
- Updated schema version to reflect new migrations.
- Refactored chat message handling to utilize chat_search_turn for storing conversation turns.
- Implemented conversation projection logic to merge AI messages with search turns.
- Updated tests to cover new functionality and ensure proper integration with existing systems.
2026-09-02 18:09:20 +08:00
hy b50b69d740 Refactor documentation for agents, architecture, and tool design
- Updated AGENTS.md to clarify document structure and added references to new documents in the ai-harness directory.
- Enhanced human-harness.md with detailed flowcharts and node responsibilities for the human graph process.
- Expanded tool-design.md with comprehensive design principles, structured descriptions, and unified result delivery guidelines.
- Revised architecture.md to include references to ai-harness documents and clarified the AI runtime process.
2026-09-02 17:27:43 +08:00
hy 8c91ee664a feat: refine user context handling in resume mechanism and clarify message structure 2026-09-02 17:22:27 +08:00
hy 8d2c1dbd9e feat: add documentation for tool design and delivery constraints 2026-09-02 17:15:53 +08:00
hy 2b58c552b3 feat: refine message handling for user context in AI session continuity and recovery 2026-09-02 15:50:50 +08:00
hy 8283cbfd88 feat: implement context compaction enhancements and streamline message handling 2026-09-02 14:59:38 +08:00
hy 905fe1219d feat: enhance context compaction logic and add tests for message handling 2026-09-02 13:44:58 +08:00
hy 374ce61d07 Refactor tests and enhance functionality across multiple test files
- Updated message log handling in `approval-denied-restricted-delivery.test.ts` to include tool message names.
- Removed unnecessary snapshot retrieval in `human-interruption-message-repair.test.ts` and adjusted assertions for dangling messages.
- Improved tool entry filtering in `human-mixed-tool-dispatch.test.ts`.
- Modified prompt formatting expectations in `brain-prompt-formatting.test.ts` to reflect new state structure and skill representation.
- Enhanced context budget node tests in `context-budget-node.test.ts` to include new error handling for oversized messages.
- Introduced new tests for LLM finish reasons in `llm-finish-reason.test.ts` to validate response handling.
- Added message log recovery tests in `message-log-recovery.test.ts` to ensure proper handling of checkpoints and tool calls.
- Updated message tail handling in `message-tail.test.ts` to correctly identify compressible messages.
- Refined message transcript repair logic in `message-transcript-repair.test.ts` to ensure accurate user entry handling.
- Adjusted persistence tests in `chat-run-service-contract.test.ts` to reflect changes in message log structure.
- Enhanced structured chat activity tests in `structured-chat-activity.test.ts` to validate retry logic.
- Cleaned up SQLite storage tests in `sqlite-storage.test.ts` to ensure legacy tables are removed post-migration.
- Refined end-to-end tests in `user-message-actions.e2e.test.ts`, `stop-running-or-approval-run.e2e.test.ts`, and `interrupted-task-resume-flow.e2e.test.ts` to improve snapshot handling and assertions.
- Updated scripted structured output driver to handle streaming and tool call emissions more effectively.
2026-09-02 13:05:39 +08:00
hy 1397c40d7f feat: update WEB_SEARCH_SCHEMA descriptions for clarity 2026-09-02 12:55:06 +08:00
hy a31eaef279 feat: enhance web search functionality with improved loopback handling and error management 2026-09-02 10:49:25 +08:00
hy 48b52ec7c3 feat: enhance web search functionality and improve handling of search results in Workbench 2026-09-02 10:37:51 +08:00
hy 5e43d721eb feat: enhance model settings form to include provider kind and improve e2e tests for model configurations 2026-09-02 09:00:09 +08:00
hy bf6c9c3d94 feat: update test fixtures paths to use workspace directory and enhance fixture handling 2026-09-01 18:28:45 +08:00
hy a2608a9f55 feat: update package size budgets and enhance runtime package pruning logic for optimized builds 2026-09-01 18:03:14 +08:00
hy 7cd3782f1e Refactor macOS release handling: remove x64 support and streamline metadata processing
- Removed support for macos-x64 in fragment definitions and related scripts.
- Updated finalize-macos script to only handle macos-arm64, simplifying signature checks and metadata writing.
- Deleted merge-mac-metadata script as it is no longer needed.
- Adjusted storage layout and release status checks to reflect the removal of x64.
- Updated tests to ensure they only validate macos-arm64 functionality.
2026-09-01 16:36:09 +08:00
hy c193edf338 Refactor web crawler sidecar build process and improve Playwright browser handling
- Removed bundled Playwright browser assertions and adjusted driver bundle copying to ignore local browsers.
- Introduced new assertions to ensure no Playwright browser files are bundled with the sidecar.
- Updated macOS and Windows release scripts to remove references to the sidecar browser cache.
- Enhanced WebCrawlerService to utilize an isolated Electron CDP connection for better browser context management.
- Added ElectronWebCrawlerBrowserHost class to manage browser connections and views.
- Updated tests to reflect changes in the web crawler service and ensure proper handling of CDP connections.
- Improved message rendering for AI interactions, including better formatting for tool calls and AI messages.
- Adjusted various test cases to align with new functionality and ensure robustness.
2026-09-01 15:53:33 +08:00
hy 1056080782 feat: enhance message handling and compaction logic for AI interactions 2026-09-01 15:05:58 +08:00
hy c3faf5d1e5 feat: enhance terminal command handling for Excel file mutations and update context compaction window 2026-09-01 13:44:08 +08:00
hy 54530878d4 refactor: update environment variable names for release storage configuration 2026-09-01 12:30:39 +08:00
hy d622985d55 refactor: update URLs and storage configurations to use domestic services
- Changed external links in settings-test.md and package.json to point to the new domestic website (guanzhangai.cn).
- Updated electron-builder.yml to publish updates from the new domestic URL.
- Introduced a new storage client for Tencent COS and refactored existing R2 client code to support both storage options.
- Implemented environment variable checks and configurations for Tencent COS and Cloudflare R2.
- Added tests for release storage configuration and ensured proper handling of live publish locks.
- Updated telemetry service to use the new official website URL for event reporting.
2026-09-01 11:44:56 +08:00
hy a9960a7dbe refactor: streamline DOCX tool specifications for improved readability 2026-09-01 11:17:44 +08:00
hy 1de47c5e18 feat: enhance path handling and testing for terminal commands and workspace management 2026-09-01 10:51:20 +08:00
hy c30180ac92 feat: update AI test cases and constants for improved functionality and accuracy 2026-08-31 18:51:43 +08:00
hy b5bb0e221b refactor: reorganize test fixtures and update references
- Moved test fixtures from `tests/fixtures/workspace` to `tests/fixtures/backend` for better structure and clarity.
- Updated all references in test cases to point to the new fixture paths.
- Removed obsolete fixture generation scripts for Excel and DOCX files.
- Enforced read-only constraints on fixture files, ensuring tests do not modify them directly.
- Added new binary files for backend fixtures to support ongoing tests.
2026-08-31 15:51:52 +08:00
hy 233ae1110c fix(build): update main obfuscation markers to match current system prompt text 2026-08-31 14:44:39 +08:00
hy 42b362c9c8 feat: enhance update recovery page and related tests for database version handling 2026-08-31 14:37:38 +08:00
hy a61209a164 Remove unused chromium-bidi/utf-8-validate deps and add knip dead-code audit config 2026-08-31 14:36:24 +08:00
hy 691099444b feat: update UI text for update retry actions and enhance SQLite migration tests for version handling 2026-08-31 13:48:10 +08:00
hy e9bef184bb feat: implement update required page and app startup status handling
- Added a new UpdateRequiredPage component to handle scenarios where an application update is required before accessing the main interface.
- Integrated app startup status retrieval in the App component to determine if the application is in a normal state or requires an update.
- Updated routing logic to conditionally render the UpdateRequiredPage or the main application layout based on the startup status.
- Enhanced the AppUpdateContext to manage update actions and states effectively.
- Introduced new selectors for testing the update required page and its components.
- Added constants for app startup channels to facilitate communication between the main and renderer processes.
- Updated shared types to include AppStartupStatus for better type safety.
- Created unit tests for SQLite migration to ensure database integrity during updates.
- Implemented end-to-end tests to verify the update flow and recovery page functionality.
2026-08-31 12:39:39 +08:00
hy 226e4bb976 feat: update workbench test plan to clarify context compression check and its execution criteria 2026-08-31 11:50:24 +08:00
hy 2d52d852a4 Refactor workspace settings panel by removing legacy migration status handling and related UI elements; update constants for clarity; delete unused WorkspaceQuickSelect component; enhance utility functions for better data handling; remove deprecated serialization and event utility files; add new test case for memory maintenance in AI human mock-llm; clean up various test files and adjust imports for consistency. 2026-08-31 11:41:19 +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
Yoan Huang e0cede0e35 feat: Enhance AI tool contracts and output structures
- Updated AI test plan to include detailed coverage for text-file and terminal tools, ensuring proper unit testing and integration.
- Modified output types for DOCX and Excel tools to include total and returned match counts for search results.
- Refactored agent control tools to remove unnecessary messages and streamline output.
- Improved Excel tool runtime to accurately report total matches and handle search results more effectively.
- Added new unit tests for terminal and text-file tools to validate schema and output consistency.
- Removed outdated tool prompt contract tests to simplify the testing framework.
- Ensured all tools adhere to updated rendering and output specifications, enhancing overall reliability and maintainability.
2026-08-30 16:53:20 +08:00
Yoan Huang e8598fda19 feat: add output types and schemas for various AI tools; enhance test coverage and improve layout in PPT tests 2026-08-30 16:23:08 +08:00