import { FileEntry } from '../types';
export const PROJECT_DNA: FileEntry[] = [
{
id: 'dna-app',
name: 'App.tsx',
type: 'typescript',
language: 'typescript',
isDirty: false,
content: `import React from 'react';
import { HiveProvider, useHive } from './context/HiveContext';
import NexusSidebar from './components/layout/NexusSidebar';
import NexusWorkbench from './components/layout/NexusWorkbench';
import AIPanel from './components/layout/AIPanel';
import NexusTerminal from './components/layout/NexusTerminal';
import SecurityModals from './components/layout/SecurityModals';
import Omnibar from './components/Omnibar';
import IDESwarmToggle from './components/layout/IDESwarmToggle';
import { cn } from './lib/utils';
import { ShieldAlert, Brain } from 'lucide-react';
function HiveApp() {
const {
isOmnibarOpen, setIsOmnibarOpen,
setCurrentActivity, appendLog,
swarmMode, mobileView, setMobileView,
showMobileSidebar, setShowMobileSidebar
} = useHive();
return (
{/* Mobile Header */}
LYCEUM
{/* Modular Desktop Layout */}
);
}
export default function App() {
return (
);
}`,
},
{
id: 'dna-types',
name: 'types.ts',
type: 'typescript',
language: 'typescript',
isDirty: false,
content: `export interface FileEntry {
id: string;
name: string;
content: string;
type: string;
language?: string;
isDirty: boolean;
}
export type ActivityType = 'dashboard' | 'explorer' | 'search' | 'git' | 'apps' | 'security' | 'workflows' | 'library' | 'settings' | 'topology' | 'editor' | 'swarm' | 'harmonizer' | 'evolution' | 'root' | 'mapping' | 'splice' | 'obfuscation' | 'ledger' | 'sterile' | 'neurosynthesis' | 'queen' | 'vram' | 'training' | 'scriptorium' | 'nexus_reflection' | 'recursive_cascade';
export interface Agent {
id: string;
name: string;
evolutionLevel: number;
meritLevel: number;
securityStatus: 'Healthy' | 'Warning' | 'Quarantined';
}
// [Truncated for DNA payload...]`,
},
{
id: 'dna-gemini',
name: 'geminiService.ts',
type: 'typescript',
language: 'typescript',
isDirty: false,
content:
'import { GoogleGenAI } from "@google/genai";\n\nconst ai = new GoogleGenAI({ apiKey: process.env.GEMINI_API_KEY });\n\nexport const ScholasticAPI = {\n async selfEvolveCode(fileName: string, content: string, goal: string) {\n const prompt = `RECURSIVE_PROTOCOL: SELF_EVOLUTION\\nFILE: ${fileName}...`;\n return this.generateSecureText(prompt, "Chancellor Directive");\n }\n};',
},
{
id: 'dna-context',
name: 'HiveContext.tsx',
type: 'typescript',
language: 'typescript',
isDirty: false,
content: `export const HiveProvider = ({ children }) => {
const [files, setFiles] = useState([...]);
// The Academy's heart.
return {children};
};`,
},
];