docs(guide): rewrite CLAUDE.md with ZCLAW-first perspective
Major changes: - Shift from "OpenFang desktop client" to "independent AI Agent desktop app" - Add decision principle: "Is this useful for ZCLAW? Does it affect ZCLAW?" - Simplify project structure and tech stack sections - Replace OpenClaw vs OpenFang comparison with unified backend approach - Consolidate troubleshooting from scattered sections into organized FAQ - Update Hands system documentation with 8 capabilities and status - Stream
This commit is contained in:
@@ -55,7 +55,7 @@ function App() {
|
||||
|
||||
const { connect, hands, approveHand, loadHands } = useGatewayStore();
|
||||
const { activeTeam, setActiveTeam, teams } = useTeamStore();
|
||||
const { setCurrentAgent } = useChatStore();
|
||||
const { setCurrentAgent, newConversation } = useChatStore();
|
||||
const { isNeeded: onboardingNeeded, isLoading: onboardingLoading, markCompleted } = useOnboarding();
|
||||
|
||||
useEffect(() => {
|
||||
@@ -190,6 +190,12 @@ function App() {
|
||||
setMainContentView(view);
|
||||
};
|
||||
|
||||
// 处理新对话
|
||||
const handleNewChat = () => {
|
||||
newConversation();
|
||||
setMainContentView('chat');
|
||||
};
|
||||
|
||||
const handleSelectTeam = (teamId: string) => {
|
||||
const team = teams.find(t => t.id === teamId);
|
||||
if (team) {
|
||||
@@ -233,6 +239,7 @@ function App() {
|
||||
onMainViewChange={handleMainViewChange}
|
||||
selectedTeamId={selectedTeamId}
|
||||
onSelectTeam={handleSelectTeam}
|
||||
onNewChat={handleNewChat}
|
||||
/>
|
||||
|
||||
{/* 主内容区 */}
|
||||
@@ -252,7 +259,7 @@ function App() {
|
||||
animate="animate"
|
||||
exit="exit"
|
||||
transition={defaultTransition}
|
||||
className="flex-1 overflow-hidden relative"
|
||||
className="flex-1 overflow-hidden relative flex flex-col"
|
||||
>
|
||||
{mainContentView === 'automation' ? (
|
||||
<motion.div
|
||||
|
||||
Reference in New Issue
Block a user