Commit Graph

297 Commits

Author SHA1 Message Date
duanshuwen
85d92b937f feat: add models management and usage history components
- Introduced RequestContentDialog for displaying request content details.
- Added UsageBarChart for visualizing token usage data.
- Implemented UsageHistorySection to manage and display usage history with filtering and pagination.
- Created provider-types for managing provider-related types.
- Developed ModelsPage to encapsulate models configuration, providers, and usage history.
- Defined usage-history types and utility functions for managing usage data.
- Updated routing to include models page and redirect agents to models.
- Refactored chat store to integrate models instead of agents.
- Established models store for managing model-related state and data fetching.
2026-04-18 09:41:59 +08:00
duanshuwen
1205a96661 feat: update ChatHistoryPanel layout and styling for improved UI consistency 2026-04-18 00:05:20 +08:00
duanshuwen
33e428cc94 feat: update ChatHistoryPanel with improved state management and UI enhancements 2026-04-17 23:36:43 +08:00
duanshuwen
c93f7ae2c8 feat: enhance WindowService with improved DevTools setup and update Sidebar layout with logo integration 2026-04-17 21:59:50 +08:00
duanshuwen
e9f3a29886 feat: implement OpenClaw process owner and runtime path utilities
- Add OpenClawProcessOwner class to manage the lifecycle of the OpenClaw process.
- Introduce utility functions for managing OpenClaw runtime paths.
- Update session store to normalize agent session keys and migrate existing keys.
- Refactor main process to handle local provider API routing through a new dispatch function.
- Enhance token usage writer to utilize a new session key parsing function.
- Create agents management store to handle agent data and interactions.
- Update chat store to integrate agent selection and session management.
- Introduce AgentsSection component for displaying agent information in the UI.
- Refactor HomePage to support agent selection and display current agent.
- Update routing to reflect new agents page structure.
2026-04-17 21:32:06 +08:00
DEV_DSW
eca70425cf feat(i18n): integrate internationalization into sidebar, title bar, and settings components
- Added useI18n hook to Sidebar and TitleBar components for translation support.
- Updated sidebar navigation items to use translation keys instead of hardcoded labels.
- Enhanced TitleBar buttons with localized titles for minimize, maximize, and close actions.
- Expanded i18n constants to include new namespaces for sidebar and login.
- Implemented translation messages for sidebar, settings, and login components in English, Chinese, and Japanese.
- Refactored Knowledge and Skills pages to utilize useLocale for locale management.
- Updated Login page to display localized text for form labels, placeholders, and error messages.
- Enhanced Account and General settings panels with localized titles and descriptions.
- Modified SettingMenu to use translation keys for menu items.
2026-04-17 17:16:18 +08:00
DEV_DSW
bc3de923ed chore: remove unused artifacts and error logs from the project 2026-04-17 16:29:19 +08:00
DEV_DSW
a2f4eb341e feat: update Sidebar and Login components with icon integration and localization improvements 2026-04-17 16:23:11 +08:00
DEV_DSW
79bea4f107 Refactor UUID generation, remove unused logger and encryption utilities, and clean up request handling
- Updated `generateUUID` function for improved readability and performance.
- Deleted `logger.ts`, `other.ts`, `request.ts`, `storage.ts`, `tansParams.ts`, and `validate.ts` as they were no longer needed.
- Simplified TypeScript configuration by removing unnecessary paths and aliases.
- Enhanced Vite configuration for better project structure and maintainability.
2026-04-17 15:38:08 +08:00
duanshuwen
b1dea9a5c2 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.
2026-04-17 07:09:56 +08:00
duanshuwen
d233b94b2a feat: update TaskList component to display script execution time range and remove real-time timer 2026-04-16 18:45:56 +08:00
DEV_DSW
210e8eb363 feat: add task management and progress reporting
- Implemented task and subtask structures with progress tracking.
- Added reporting functionality to log progress at various stages in hotel room status management scripts.
- Created a task store to manage tasks and their states, including persistence to local storage.
- Updated UI components to display task lists and handle task actions (retry, remove).
- Removed deprecated TaskCard and TaskList components, replacing them with a new structure for better maintainability.
- Enhanced script execution service to emit progress events for UI updates.
2026-04-16 16:59:49 +08:00
DEV_DSW
b1f589a674 feat: enhance theme management and image caching functionality 2026-04-16 15:43:35 +08:00
DEV_DSW
411f4f3421 feat: Refactor channel management and UI components
- Removed hardcoded channel data from `channel.ts` and replaced it with a dynamic channel dictionary.
- Introduced a new Pinia store `channel.ts` to manage selected and available channels.
- Reworked `AddChannelDialog.vue` to allow users to search and select channels dynamically.
- Updated `TaskCenter.vue` to utilize the new channel store and handle empty channel selections gracefully.
- Enhanced IPC communication for loading and saving selected channels in the configuration.
- Adjusted `runTaskOperationService.ts` to ensure proper handling of channel data.
- Improved styling and structure of UI components for better user experience.
2026-04-16 15:13:30 +08:00
DEV_DSW
7bd5a1aa20 feat: update language storage key and enhance theme button styles 2026-04-16 09:49:24 +08:00
duanshuwen
ad898b757a feat: add AddChannelDialog component and integrate channel settings in TaskCenter 2026-04-15 23:02:43 +08:00
duanshuwen
0191969a1b feat: enhance dialog styles and structure in ChatHistory and TaskOperationDialog components 2026-04-15 22:36:25 +08:00
duanshuwen
d8c99ce38d feat: enhance TaskOperationDialog with improved form labels and structure 2026-04-15 22:30:19 +08:00
duanshuwen
83015e388e feat: enhance dialog titles and layout in ChatHistory component 2026-04-15 22:20:34 +08:00
duanshuwen
5a8e5e4ac2 feat: add channel open interval configuration and improve page navigation logic 2026-04-15 22:08:54 +08:00
duanshuwen
e77c815a86 feat: add new stores for cron, locale, providers, script, shared data, skills, and user info
- Implemented `cron` store to manage scheduled tasks with CRUD operations.
- Created `locale` store for language settings with persistence and system language detection.
- Added `providers` store to handle provider accounts and configurations with API interactions.
- Developed `script` store for managing automation scripts, including recording and execution.
- Introduced `sharedStore` for managing shared data across components.
- Established `skills` store for fetching, installing, and managing skills from a marketplace.
- Created `userinfo` store for user authentication and session management.

chore: update path aliases from `@store` to `@stores` in TypeScript configuration and Vite config
2026-04-15 21:49:25 +08:00
duanshuwen
364db041eb feat: enhance dark mode support across various components
- Updated styles in AccountSetting, SystemConfig, Version, and other components to improve dark mode visibility.
- Added dark mode classes for text and background colors to ensure better contrast and readability.
- Modified CSS variables in dark.css for consistent theming.
- Improved accessibility by ensuring all text elements are legible in dark mode.
2026-04-15 21:17:08 +08:00
duanshuwen
43801ba51b feat: refactor settings page by removing unused components and updating Task component integration 2026-04-15 19:31:15 +08:00
duanshuwen
9769856fe0 feat: remove unused components and related files from rate and order pages 2026-04-15 19:17:41 +08:00
DEV_DSW
78d3235ab6 feat: enhance token usage tracking and history management
- Updated HTML assets for improved loading.
- Integrated token usage tracking in chat processing, appending usage details to transcripts.
- Enhanced OpenAIProvider to include usage data in chat completion responses.
- Implemented asynchronous retrieval of recent token usage history.
- Added utility functions for managing transcript files and parsing usage data.
- Updated UI components to reflect changes in usage status handling.
- Ensured consistent usage status definitions across the application.
2026-04-15 11:45:33 +08:00
DEV_DSW
9afb518a19 feat: update TitleBar component for platform-specific styling and integrate into login page 2026-04-15 10:31:43 +08:00
duanshuwen
b5a67ff650 feat: implement custom window controls and replace header bar with title bar
- Add window handlers for minimize, maximize, close, and check if maximized in ipcMain.
- Update preload script to use new window control IPC events.
- Refactor window service to remove old IPC event handlers and use new handlers.
- Remove old HeaderBar and DragRegion components, replacing them with a new TitleBar component.
- Update Layout component to use TitleBar instead of HeaderBar.
- Remove useWinManager hook as its functionality is now integrated into TitleBar.
- Update login page to remove HeaderBar and adjust layout accordingly.
- Update constants to remove old window IPC events.
- Update package dependencies to replace @iconify/vue with @lucide/vue.
2026-04-14 23:38:42 +08:00
DEV_DSW
6fd51d04dd feat: 移除对销售任务项的处理逻辑 2026-04-14 20:56:11 +08:00
DEV_DSW
fbec7088c6 feat: 完善对话功能,自动设置默认模型账户并优化界面布局 2026-04-14 20:54:54 +08:00
DEV_DSW
c61e41049f feat: 重构对话功能 2026-04-14 17:02:20 +08:00
duanshuwen
b3f07c4cfe feat: 新增开发规划 2026-04-14 07:36:40 +08:00
duanshuwen
66db6c462e feat: 脚本录制功能完善 2026-04-12 22:12:57 +08:00
duanshuwen
6432634d17 feat: 调整脚本功能 2026-04-12 17:01:04 +08:00
duanshuwen
c16fc93685 feat: 新增脚本录制功能 2026-04-12 15:46:28 +08:00
duanshuwen
66bb07faf2 feat: 移除渠道md文件 2026-04-11 23:41:33 +08:00
duanshuwen
67808a459e feat: 新增定时任务功能 2026-04-11 23:17:54 +08:00
duanshuwen
37ed157e4a feat: 修复Mac打包编译 2026-04-11 17:22:29 +08:00
duanshuwen
b1ca06bb07 feat: 新增技能功能 2026-04-11 10:55:11 +08:00
duanshuwen
825fe36967 feat: 新增技能相关功能 2026-04-10 23:03:56 +08:00
duanshuwen
90a3ff6f77 feat: 修复ts语法报错 2026-04-10 21:32:41 +08:00
duanshuwen
d2d6ecaa68 feat: 修改侧边菜单样式 2026-04-10 21:32:41 +08:00
duanshuwen
b0539c895a feat: add skills file 2026-04-10 21:32:41 +08:00
duanshuwen
5f542715cb feat(models): add models configuration page with provider management and token usage
- Replace "Task Center" with "Models" in sidebar and routing
- Add new models configuration page with AI provider account management
- Implement token usage history with filtering, grouping, and visualization
- Create provider store with Pinia for state management
- Add internationalization support for models feature
- Include development analysis documentation for feature implementation
2026-04-09 21:49:52 +08:00
duanshuwen
6d2991e595 feat(i18n): add internationalization support for knowledge module
- Add English, Chinese, and Japanese translations for knowledge management UI
- Update knowledge page and components to use i18n strings
- Fix menu ID inconsistency in sidebar component
- Improve sidebar active state handling with route watcher
- Update text color binding in sidebar to use style binding
2026-04-09 20:05:51 +08:00
DEV_DSW
064856ab2d feat(i18n): add internationalization support for settings pages
- Initialize locale store in App.vue alongside theme store
- Replace hardcoded menu labels with i18n keys in system-config.ts
- Add English, Chinese, and Japanese translations for settings content
- Integrate vue-i18n in SystemConfig, AccountSetting, and Version components
- Update UI components to use translated strings for all user-facing text
- Implement language switching functionality in settings page
2026-04-09 16:52:54 +08:00
DEV_DSW
1aa28a7808 feat: add auto-update functionality with settings UI
- Implement electron-updater integration with IPC handlers for update operations
- Add Pinia store for managing update state and user preferences
- Create settings UI with version display, update controls, and auto-update toggles
- Update IPC constants and preload API for update-related communication
- Refactor preload invoke methods to use async IPC consistently
- Add rounded corners to settings page layout for better visual consistency
2026-04-09 15:15:23 +08:00
duanshuwen
a8bfbff0e9 feat(theme): implement comprehensive theme management system
Add full theme support with light, dark, and system modes, including:
- Theme store using Pinia for state management
- useTheme composable for reactive theme handling
- Theme setting UI in settings page
- Enhanced CSS variable system with Tailwind integration
- IPC communication for theme persistence
- Internationalization support for theme texts
- System theme detection and auto-switching

The implementation follows ClawX's architecture while adapting to Vue 3 and zn-ai's existing infrastructure.
2026-04-08 23:46:41 +08:00
duanshuwen
3ef3392808 Merge branch 'feature/package' of https://git.nianxx.cn/duanshuwen/zn-ai into feature/package 2026-04-08 21:24:57 +08:00
duanshuwen
c3825e6d43 feat(ui): add hover effects to window control buttons
Add hover background and text color changes to minimize, maximize, and close buttons in the header bar for better visual feedback. The close button now turns red on hover for clearer destructive action indication.

Remove backup package.json file and add comprehensive agent system development plan document (agents.md) detailing architecture analysis and implementation roadmap.
2026-04-08 21:24:51 +08:00
DEV_DSW
f0e3c12da6 feat: 更新gitignore配置 2026-04-08 09:19:24 +08:00