docs: add self-evolution documentation and fix SOUL.md persistence
Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled
Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled
- Create 01-identity-evolution.md: Identity system architecture (SOUL.md, USER.md, change proposals, version management) - Create 04-heartbeat-engine.md: Proactive behavior system (heartbeat config, alerts, proactivity levels) - Create 06-context-compaction.md: Context compression system (token management, summarization, information retention) - Update ZCLAW_AGENT_INTELLIGENCE_EVOLUTION.md: Add Phase 5 self-evolution UX roadmap - Fix AgentOnboardingWizard: Persist SOUL.md and USER.md after agent creation - Fix llm-service: Add Tauri kernel mode detection for memory system LLM calls - Fix kernel: Kernel config takes priority over agent's persisted model Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -25,6 +25,8 @@ import { EmojiPicker } from './ui/EmojiPicker';
|
||||
import { PersonalitySelector } from './PersonalitySelector';
|
||||
import { ScenarioTags } from './ScenarioTags';
|
||||
import type { Clone } from '../store/agentStore';
|
||||
import { intelligenceClient } from '../lib/intelligence-client';
|
||||
import { generateSoulContent, generateUserContent } from '../lib/personality-presets';
|
||||
|
||||
// === Types ===
|
||||
|
||||
@@ -192,6 +194,33 @@ export function AgentOnboardingWizard({ isOpen, onClose, onSuccess }: AgentOnboa
|
||||
}
|
||||
|
||||
if (clone) {
|
||||
// Persist SOUL.md and USER.md to the identity system
|
||||
try {
|
||||
const soulContent = generateSoulContent({
|
||||
agentName: formData.agentName,
|
||||
emoji: formData.emoji,
|
||||
personality: formData.personality,
|
||||
scenarios: formData.scenarios,
|
||||
});
|
||||
|
||||
const userContent = generateUserContent({
|
||||
userName: formData.userName,
|
||||
userRole: formData.userRole,
|
||||
scenarios: formData.scenarios,
|
||||
});
|
||||
|
||||
// Write SOUL.md (agent personality)
|
||||
await intelligenceClient.identity.updateFile(clone.id, 'soul', soulContent);
|
||||
|
||||
// Write USER.md (user profile)
|
||||
await intelligenceClient.identity.updateFile(clone.id, 'user_profile', userContent);
|
||||
|
||||
console.log('[Onboarding] SOUL.md and USER.md persisted for agent:', clone.id);
|
||||
} catch (err) {
|
||||
console.warn('[Onboarding] Failed to persist identity files:', err);
|
||||
// Don't fail the whole onboarding if identity persistence fails
|
||||
}
|
||||
|
||||
setSubmitStatus('success');
|
||||
setTimeout(() => {
|
||||
onSuccess?.(clone);
|
||||
|
||||
Reference in New Issue
Block a user