Fresh history cut from cynarAI/evoo antigravity-handoff/project-timeline (Voice First + project timeline). Brand docs/titles as evOo; keep @rakazo/* packages as tech debt. Excludes node_modules, caches, secrets, voice blobs.
47 lines
1.9 KiB
TypeScript
47 lines
1.9 KiB
TypeScript
import { createDb } from "../packages/db/src/index.js";
|
|
|
|
async function run() {
|
|
const { prisma } = createDb("postgres://ingowagner@127.0.0.1:5432/evoo");
|
|
const session = await prisma.session.findFirst({ orderBy: { createdAt: "desc" } });
|
|
if (!session) throw new Error("No session");
|
|
|
|
const architect = await prisma.bot.findFirst({ where: { name: "Code Architect" } });
|
|
const quant = await prisma.bot.findFirst({ where: { name: "Apex Quant" } });
|
|
|
|
console.log("Triggering Code Architect P0 implementation...");
|
|
const res1 = await fetch("http://127.0.0.1:3100/rpc/threads/send", {
|
|
method: "POST",
|
|
headers: {
|
|
"Content-Type": "application/json",
|
|
Authorization: `Bearer ${session.token}`,
|
|
},
|
|
body: JSON.stringify({
|
|
json: {
|
|
botId: architect!.id,
|
|
text: "[P0 Implementierung] 🔴 Beginne JETZT mit der Code-Änderung: Refaktoriere `apex-trading/src/strategies/momentum.py` und `apex-trading/src/risk/risk_guard.py`. Nutze die Pydantic/Decimal-Modelle aus `schemas.py`. Führe danach `python3 -m unittest` mit shell aus und melde das fertige Ergebnis via `message_bot` an Steve Jobs.",
|
|
},
|
|
}),
|
|
});
|
|
console.log("Code Architect response status:", res1.status);
|
|
|
|
console.log("Triggering Apex Quant P0 stress-testing...");
|
|
const res2 = await fetch("http://127.0.0.1:3100/rpc/threads/send", {
|
|
method: "POST",
|
|
headers: {
|
|
"Content-Type": "application/json",
|
|
Authorization: `Bearer ${session.token}`,
|
|
},
|
|
body: JSON.stringify({
|
|
json: {
|
|
botId: quant!.id,
|
|
text: "[P0 Stress-Testing] 🔴 Erstelle `apex-trading/tests/test_stress_latency.py` zur Simulation von 10.000 Ticks und Circuit-Breaker Stress-Tests. Führe den Test mit shell aus und melde das Ergebnis via `message_bot` an Steve Jobs.",
|
|
},
|
|
}),
|
|
});
|
|
console.log("Apex Quant response status:", res2.status);
|
|
}
|
|
|
|
run()
|
|
.catch(console.error)
|
|
.finally(() => process.exit(0));
|