Spaces:
Runtime error
Runtime error
| /** | |
| * TIA-β Activation Script | |
| * Boots TIA, scans the ecosystem, maps lineage, detects drift, | |
| * identifies resurrection targets, and generates the Guided Builder queue. | |
| */ | |
| import { bootTIA } from "./bootloader"; | |
| import { scanQGTNL } from "./scanner"; | |
| import { generateLineageReport } from "./lineage"; | |
| import { generateResurrectionPlan } from "./resurrection"; | |
| import { generateDriftReport } from "./drift"; | |
| import { buildGuidedQueue, formatPrompt } from "./guided"; | |
| import { getMode } from "./mode"; | |
| export function activateTIA() { | |
| console.log("=== Booting TIA-β ==="); | |
| const tia = bootTIA(); | |
| console.log("Status:", tia.status); | |
| console.log("Mode:", getMode().current); | |
| console.log("\n=== Scanning QGTNL ==="); | |
| const scan = scanQGTNL(); | |
| if (scan.status !== "ok") { | |
| console.log("Scan failed:", scan.message); | |
| return; | |
| } | |
| console.log("Scan complete."); | |
| console.log("\n=== Mapping Lineage ==="); | |
| const lineage = generateLineageReport(scan.structure); | |
| console.log("Lineage mapped."); | |
| console.log("\n=== Detecting Resurrection Targets ==="); | |
| const resurrection = generateResurrectionPlan(lineage); | |
| console.log(`Found ${resurrection.proposals.length} resurrection candidates.`); | |
| console.log("\n=== Detecting Drift ==="); | |
| const drift = generateDriftReport(lineage); | |
| console.log(`Found ${drift.issues.length} drift issues.`); | |
| console.log("\n=== Building Guided Builder Queue ==="); | |
| const queue = buildGuidedQueue(resurrection, drift); | |
| console.log(`Generated ${queue.prompts.length} actionable prompts.`); | |
| console.log("\n=== TIA-β Ready ==="); | |
| console.log("Presenting first prompt:\n"); | |
| if (queue.prompts.length === 0) { | |
| console.log("No issues detected. System appears stable."); | |
| return; | |
| } | |
| console.log(formatPrompt(queue.prompts[0])); | |
| } | |