Import verified AzerothAI snapshot from GitHub
Core tests / core (push) Successful in 9m57s
Full verification / application (push) Failing after 5m16s
Full verification / local-brain (push) Failing after 6m15s
Realm simulation / simulated-live-world (push) Failing after 5m32s
WoW integration lab / real-worldserver (push) Canceled after 17m23s

Source branch: feature/ai-brain-router
Source commit: c2a09e0460465201a58aaab56c71424e9a96405e
This commit is contained in:
Richard Clark
2026-09-22 13:12:54 -04:00
commit 5f0fc86cf9
175 changed files with 25807 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
import {env} from 'cloudflare:workers';
import {runConversationTick} from '@/core/conversation';
import {D1Store} from '@/core/store';
import type {RuntimeConfig} from '@/core/types';
function authorized(request:Request,config:RuntimeConfig){
const token=config.AUTONOMY_TOKEN;
if(!token)return false;
return request.headers.get('authorization')===`Bearer ${token}`;
}
export async function POST(request:Request){
const config=env as unknown as RuntimeConfig;
if(!authorized(request,config))return Response.json({error:'Unauthorized conversation heartbeat'},{status:401});
try{
return Response.json(await runConversationTick(new D1Store(),env.DB!,config));
}catch(e){
return Response.json({error:e instanceof Error?e.message:'Conversation heartbeat failed'},{status:500});
}
}