Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

786 B
Raw Blame
// GET /api/cron/event-markets-feed: turns new picks and status changes into odds
// snapshots and notable-move rows even when nobody is watching the live stream.
// The stream hub runs the same processor while it has listeners, so this is the
// floor that keeps event_market_moves complete. Idempotent: the batch is claimed
// by compare-and-set, so overlapping runs never double-process.

import { json, method, wrapCron } from '../_lib/http.js';
import { requireCron } from '../_lib/cron-auth.js';
import { processFeed } from '../_lib/event-markets/feed.js';

export default wrapCron(async (req, res) => {
	if (!method(req, res, ['GET', 'POST'])) return;
	if (!requireCron(req, res)) return;
	const result = await processFeed();
	return json(res, 200, { ok: true, ...result });
});