Spaces:
Runtime error
Runtime error
File size: 1,815 Bytes
a3aed04 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | /**
* 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]));
}
|