feat: initialize ZCLAW project with core systems and Tauri desktop

- Created backend core systems:
  - Remote Execution System (远程执行系统)
  - Task Orchestration Engine (任务编排引擎)
  - Persistent Memory System (持续记忆系统)
  - Proactive Service System (主动服务系统)

- Created Tauri desktop app:
  - Three-column layout based on AutoClaw design
  - React + TypeScript + Tailwind CSS
  - Zustand state management
  - Lucide React icons

- Components:
  - Sidebar (Agent list, IM channels, scheduled tasks)
  - ChatArea (Chat interface with message bubbles)
  - RightPanel (Task progress, statistics, next actions)

Next: Test Tauri dev server and integrate with OpenClaw backend
This commit is contained in:
iven
2026-03-11 22:06:07 +08:00
commit 045e9cef5b
59 changed files with 2819 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
import { create } from 'zustand';
export interface Message {
id: string;
role: 'user' | 'assistant';
content: string;
timestamp: Date;
}
export interface Agent {
id: string;
name: string;
icon: string;
color: string;
lastMessage: string;
time: string;
}
interface ChatState {
messages: Message[];
agents: Agent[];
currentAgent: Agent | null;
addMessage: (message: Message) => void;
setCurrentAgent: (agent: Agent) => void;
}
export const useChatStore = create<ChatState>((set) => ({
messages: [],
agents: [
{
id: '1',
name: 'ZCLAW',
icon: '🦞',
color: 'bg-gradient-to-br from-orange-500 to-red-500',
lastMessage: '好的!选项 A 确认...',
time: '21:58',
},
],
currentAgent: null,
addMessage: (message) => set((state) => ({ messages: [...state.messages, message] })),
setCurrentAgent: (agent) => set({ currentAgent: agent }),
}));