feat: add tool status management and localization for skill installation

- Updated chat message types to include tool statuses.
- Enhanced localization files for English, Thai, and Chinese to support new tool status messages.
- Modified HomePage and SkillsPage components to handle tool statuses in chat messages.
- Implemented tool status merging and updating logic in the chat store.
- Added handling for tool status events in the gateway event processing.
- Created tests for chat message rendering with tool statuses and skill installation shortcuts.
- Improved gateway event dispatching for tool lifecycle events.
This commit is contained in:
duanshuwen
2026-04-23 20:27:54 +08:00
parent 979fb0a0f6
commit df600272d6
29 changed files with 2041 additions and 384 deletions

View File

@@ -1,4 +1,4 @@
import { randomUUID } from 'node:crypto';
import { createRandomId } from './random-id';
export interface JsonRpcRequest {
jsonrpc: '2.0';
@@ -67,7 +67,7 @@ export function createRequest(
): JsonRpcRequest {
return {
jsonrpc: '2.0',
id: id ?? randomUUID(),
id: id ?? createRandomId(),
method,
params,
};