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,106 @@
import { FileText, User, Target, CheckSquare } from 'lucide-react';
export function RightPanel() {
return (
<aside className="w-80 bg-white border-l border-gray-200 flex flex-col flex-shrink-0">
{/* 顶部工具栏 */}
<div className="h-14 border-b border-gray-100 flex items-center justify-between px-4 flex-shrink-0">
<div className="flex items-center gap-3">
<div className="flex items-center gap-1 text-gray-600">
<Target className="w-4 h-4" />
<span className="font-medium">2268</span>
</div>
<button className="text-xs text-orange-600 hover:underline"></button>
</div>
<div className="flex items-center gap-3 text-gray-500">
<button className="hover:text-gray-700 flex items-center gap-1 text-xs">
<FileText className="w-4 h-4" />
<span></span>
</button>
<button className="hover:text-gray-700 flex items-center gap-1 text-xs">
<User className="w-4 h-4" />
<span>Agent</span>
</button>
</div>
</div>
{/* 内容区 */}
<div className="flex-1 overflow-y-auto custom-scrollbar p-4">
{/* 任务进度 */}
<div className="bg-gray-50 rounded-lg border border-gray-100 mb-6 overflow-hidden">
<div className="p-3">
<div className="flex justify-between text-xs mb-2">
<span className="text-gray-600"></span>
<span className="font-medium text-gray-900">65%</span>
</div>
<div className="w-full bg-gray-200 rounded-full h-2">
<div className="bg-orange-500 h-2 rounded-full transition-all" style={{ width: '65%' }}></div>
</div>
</div>
<div className="border-t border-gray-100 divide-y divide-gray-100 text-xs">
<div className="py-2 px-3 flex justify-between">
<span className="text-gray-600"></span>
<span className="text-green-600"> </span>
</div>
<div className="py-2 px-3 flex justify-between">
<span className="text-gray-600"></span>
<span className="text-orange-600">🔄 </span>
</div>
<div className="py-2 px-3 flex justify-between">
<span className="text-gray-600"> Agent </span>
<span className="text-gray-400"> </span>
</div>
</div>
</div>
{/* 今日统计 */}
<div className="mb-6">
<h3 className="font-bold text-gray-900 mb-3 text-sm"></h3>
<div className="bg-gray-50 rounded-lg border border-gray-100 p-3">
<div className="space-y-2 text-xs">
<div className="flex justify-between">
<span className="text-gray-600"></span>
<span className="font-medium text-gray-900">8 </span>
</div>
<div className="flex justify-between">
<span className="text-gray-600"></span>
<span className="font-medium text-green-600">6 </span>
</div>
<div className="flex justify-between">
<span className="text-gray-600"></span>
<span className="font-medium text-orange-600">2 </span>
</div>
</div>
</div>
</div>
{/* 下一步行动 */}
<div>
<h3 className="font-bold text-gray-900 mb-3 text-sm flex items-center gap-2">
<span className="w-5 h-5 bg-orange-500 rounded-full flex items-center justify-center text-white text-xs">
<Target className="w-3 h-3" />
</span>
</h3>
<div className="ml-7 space-y-2">
<h4 className="text-xs font-semibold text-gray-900 mb-2"> ()</h4>
<ul className="space-y-2">
<li className="flex items-start gap-2 text-xs text-gray-600">
<div className="w-3 h-3 border border-gray-300 rounded-sm mt-0.5 flex-shrink-0"></div>
<span></span>
</li>
<li className="flex items-start gap-2 text-xs text-gray-600">
<div className="w-3 h-3 border border-gray-300 rounded-sm mt-0.5 flex-shrink-0"></div>
<span></span>
</li>
<li className="flex items-start gap-2 text-xs text-gray-600">
<div className="w-3 h-3 border border-gray-300 rounded-sm mt-0.5 flex-shrink-0"></div>
<span> OpenClaw SDK</span>
</li>
</ul>
</div>
</div>
</div>
</aside>
);
}