// Memory — AGENTS.md editor. Stored instructions the agent reads on every turn. const MEMORY_FILES = [ { id: 'global', name: 'AGENTS.md', scope: 'Global', path: '~/.scarf/AGENTS.md', updated: '2 days ago', size: '1.2 KB' }, { id: 'wizemann', name: 'AGENTS.md', scope: 'Org · Wizemann', path: '~/.scarf/orgs/wizemann/AGENTS.md', updated: '1 week ago', size: '3.4 KB' }, { id: 'project', name: 'AGENTS.md', scope: 'Project · sera', path: 'sera/AGENTS.md', updated: '14m ago', size: '5.8 KB' }, ]; const SAMPLE_AGENTS = `# Sera — agent instructions You are working on **Sera**, a CLI for building Anthropic-style applications. The codebase is TypeScript + Bun. Tests live next to source as \`*.test.ts\`. ## Style - Prefer named exports. - 2-space indent, no semicolons in TS. - Avoid default exports except for React components. - Lowercase filenames except for React components (PascalCase). ## Workflow - Run \`bun test\` after every meaningful change. - Open a draft PR early; flip to ready when CI is green. - Update CHANGELOG.md when changing public API. ## Don't - Touch \`scripts/release.ts\` — owned by ops. - Pull in dependencies without flagging it first. - Push directly to main. `; function Memory() { const [active, setActive] = React.useState('project'); const [draft, setDraft] = React.useState(SAMPLE_AGENTS); const [dirty, setDirty] = React.useState(false); React.useEffect(() => { requestAnimationFrame(() => window.lucide && window.lucide.createIcons()); }); const file = MEMORY_FILES.find(f => f.id === active); return (