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.

769 B
Raw Blame
// @ts-check
// GET/POST /api/cron/creator-payout-reconcile: check our creator-payout records
// against the chain and alert on drift (every three hours, Cloud Scheduler).
// Read-only on the chain; the checks are in reconcilePayouts().
//
// Response: { ok, checked: { stuck_batches, sent_signatures, vaults }, drift[] }.
//
// Auth: CRON_SECRET Bearer (same gate as every cron endpoint).

import { json, method, wrapCron } from '../_lib/http.js';
import { requireCron } from '../_lib/cron-auth.js';
import { reconcilePayouts } from '../_lib/creator-payouts.js';

export default wrapCron(async (req, res) => {
	if (!method(req, res, ['GET', 'POST'])) return;
	if (!requireCron(req, res)) return;
	const out = await reconcilePayouts();
	return json(res, 200, out);
});