Download ProjectDNA.ts from VoidBreach/Chancellor: direct link, hf CLI and curl.
- Browser
- Download file 4.31 kB
-
https://huggingface.co/VoidBreach/Chancellor/resolve/main/ProjectDNA.ts
- Command line
-
hf download hf://VoidBreach/Chancellor/ProjectDNA.ts
-
curl -L -o ProjectDNA.ts https://huggingface.co/VoidBreach/Chancellor/resolve/main/ProjectDNA.ts
4.31 kB
| 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 ( | |
| <div className="h-screen w-full bg-surface-base text-white flex overflow-hidden font-sans selection:bg-primary selection:text-black"> | |
| {/* Mobile Header */} | |
| <div className="lg:hidden fixed top-0 left-0 right-0 h-14 border-b border-white/5 bg-surface-base/80 backdrop-blur-xl z-[70] flex items-center justify-between px-4"> | |
| <div className="flex items-center gap-3"> | |
| <button | |
| onClick={() => setShowMobileSidebar(!showMobileSidebar)} | |
| className="p-2 bg-primary/10 rounded-lg text-primary" | |
| > | |
| <ShieldAlert size={20} /> | |
| </button> | |
| <span className="font-bold text-sm tracking-widest text-primary">LYCEUM</span> | |
| </div> | |
| <IDESwarmToggle /> | |
| </div> | |
| {/* Modular Desktop Layout */} | |
| <NexusSidebar /> | |
| <main className="flex-1 flex flex-col relative min-w-0 lg:pt-0 pt-14"> | |
| <div className="flex-1 flex overflow-hidden"> | |
| <NexusWorkbench /> | |
| <div className={cn( | |
| "fixed inset-y-0 right-0 w-full lg:relative lg:w-96 lg:translate-x-0 transition-transform duration-300 z-[80]", | |
| mobileView === 'chat' ? 'translate-x-0' : 'translate-x-full lg:translate-x-0' | |
| )}> | |
| <AIPanel /> | |
| </div> | |
| </div> | |
| <NexusTerminal /> | |
| </main> | |
| <SecurityModals /> | |
| <Omnibar /> | |
| </div> | |
| ); | |
| } | |
| export default function App() { | |
| return ( | |
| <HiveProvider> | |
| <HiveApp /> | |
| </HiveProvider> | |
| ); | |
| }`, | |
| }, | |
| { | |
| 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 <HiveContextSimulator.Provider value={value}>{children}</HiveContextSimulator.Provider>; | |
| };`, | |
| }, | |
| ]; | |