fix(desktop): component cleanup + dead code removal + DeerFlow ai-elements
- ChatArea: DeerFlow ai-elements annotations for accessibility - Conversation: remove unused Context, simplify message rendering - Delete dead modules: audit-logger.ts, gateway-reconnect.ts - Replace console.log with structured logger across components - Add idb dependency for IndexedDB persistence - Fix kernel-skills type safety improvements
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
|
||||
import { invoke } from '@tauri-apps/api/core';
|
||||
import type { KernelClient } from './kernel-client';
|
||||
import { useConversationStore } from '../store/chat/conversationStore';
|
||||
|
||||
/** Skill shape returned by list/refresh/create/update operations. */
|
||||
type SkillItem = {
|
||||
@@ -107,12 +108,16 @@ export function installSkillMethods(ClientClass: { prototype: KernelClient }): v
|
||||
error?: string;
|
||||
durationMs?: number;
|
||||
}> {
|
||||
const convStore = useConversationStore.getState();
|
||||
const agent = convStore.currentAgent;
|
||||
const sessionKey = convStore.sessionKey;
|
||||
|
||||
return invoke('skill_execute', {
|
||||
id,
|
||||
context: {
|
||||
agentId: '',
|
||||
sessionId: '',
|
||||
workingDir: '',
|
||||
agentId: agent?.id || 'zclaw-main',
|
||||
sessionId: sessionKey || crypto.randomUUID(),
|
||||
workingDir: null,
|
||||
},
|
||||
input: input || {},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user