Commit graph

7 commits

Author SHA1 Message Date
lin onetwo
6f01c36dd2 fix: ai not response for tool result 2025-08-14 20:55:09 +08:00
lin onetwo
4b55a8b346 test: Fix Electron test process cleanup and update test config
Update test:unit script to use cross-env for ELECTRON_RUN_AS_NODE, ensuring child processes inherit the variable and preventing resource leaks. Remove manual process.env setting from vitest.config.ts and add documentation on handling related errors in Testing.md. Also, add 'hanging-process' reporter to Vitest config for improved diagnostics.
2025-08-12 18:23:30 +08:00
lin onetwo
697466d11f test: Refactor test mocks to dedicated __mocks__ directory
Moved common test mocks from setup-vitest.ts into separate files under src/__tests__/__mocks__ for better organization and maintainability. Updated documentation to reflect the new structure. Removed fileMock.js and updated setup-vitest.ts to import and use the new centralized mocks.
2025-08-12 17:27:54 +08:00
lin onetwo
c72563b0d8 refactor: run tool in plugin, simplify abstraction 2025-07-27 15:14:32 +08:00
lin onetwo
6a1b534089 feat: tools and rag 2025-06-19 17:22:24 +08:00
lin onetwo
654911ad15 docs: test with vitest 2025-06-16 00:52:57 +08:00
lin onetwo
14177cb76a docs: test 2025-06-13 13:56:30 +08:00