feat: implement task management store with IPC integration

- Added a new task store in `src-react/stores/task.ts` to manage tasks and their statuses.
- Implemented functions for creating, executing, and retrying tasks, along with handling task progress and completion.
- Introduced persistence for tasks using IPC.
- Created utility functions for normalizing room types and building subtasks.
- Added a new CSS file for global styles in `src-react/styles.css`.
- Created runtime types in `src-react/types/runtime.ts` and exported them.
- Updated the main entry points for Vue and React applications to support dynamic framework loading.
- Refactored chat model interfaces and utility functions into `src/shared/chat-model.ts`.
- Updated TypeScript configuration to include paths for React components and types.
- Enhanced Vite configuration to support both Vue and React frameworks.
This commit is contained in:
duanshuwen
2026-04-17 07:09:56 +08:00
parent d233b94b2a
commit b1dea9a5c2
68 changed files with 5910 additions and 397 deletions

View File

@@ -48,8 +48,11 @@
"@types/electron-squirrel-startup": "^1.0.2",
"@types/lodash-es": "^4.17.12",
"@types/node": "^25.3.0",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@typescript-eslint/parser": "^5.62.0",
"@vitejs/plugin-vue": "^6.0.3",
"@vitejs/plugin-react": "^5.0.0",
"electron": "^40.8.5",
"electron-builder": "^26.8.1",
"esbuild": "^0.27.4",
@@ -97,6 +100,9 @@
"openai": "^6.14.0",
"pinia": "^2.3.1",
"playwright": "^1.58.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^7.13.0",
"ts-node": "^10.9.2",
"uuid": "^13.0.0",
"vue": "^3.5.22",