chore: Fork als agenttwo-tools aufsetzen

Basis für die Tool-Calling- und Vision-Entwicklung. Die Historie von agenttwo
bleibt erhalten, damit sich Fixes aus der Basis per cherry-pick übernehmen
lassen; das Remote upstream zeigt dafür auf Jeuners/agenttwo.

Eigene Ports, damit beide Projekte gleichzeitig laufen können:
- Backend 8787 -> 8788, Vite 5173 -> 5174 samt Proxy-Zielen
- Origin-Allowlist in security.ts entsprechend auf 5174/8788
- OpenRouter-Attribution (HTTP-Referer, X-Title) angepasst

Die SQLite-Datei liegt wie gehabt neben dem Server, beide Instanzen haben
dadurch getrennte Sessions.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S1NXUpHbxTusqQmsjrFfbU
This commit is contained in:
Jeuner 2026-08-26 17:35:51 +02:00
parent e721540b80
commit e48228c570
7 changed files with 31 additions and 23 deletions

View file

@ -27,7 +27,7 @@ try {
/* keine .env vorhanden */
}
const PORT = Number(process.env.PORT ?? 8787);
const PORT = Number(process.env.PORT ?? 8788);
const OLLAMA_URL = process.env.OLLAMA_URL ?? "http://localhost:11434";
const app = Fastify({ logger: true, bodyLimit: MAX_AUDIO_BYTES });

View file

@ -50,8 +50,8 @@ export async function streamOpenRouter(
headers: {
Authorization: `Bearer ${apiKey}`,
"Content-Type": "application/json",
"HTTP-Referer": "http://localhost:5173",
"X-Title": "oxagenttwo",
"HTTP-Referer": "http://localhost:5174",
"X-Title": "agenttwo-tools",
},
body: JSON.stringify({
model: opts.model,

View file

@ -8,10 +8,10 @@
*/
const DEFAULT_ORIGINS = [
"http://localhost:5173",
"http://127.0.0.1:5173",
"http://localhost:8787",
"http://127.0.0.1:8787",
"http://localhost:5174",
"http://127.0.0.1:5174",
"http://localhost:8788",
"http://127.0.0.1:8788",
];
/** Zusätzliche Origins via ALLOWED_ORIGINS="https://a.example,https://b.example". */