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.

feat(launch-copilot): warn when no market-maker engine is sweeping the policy

nirholas2dd52ec97d91
diff --git a/src/launch-copilot.js b/src/launch-copilot.js
index 212396486..a05d18aa5 100644
--- a/src/launch-copilot.js
+++ b/src/launch-copilot.js
@@ -407,6 +407,8 @@ export function mountLaunchCopilot(host, opts = {}) {
// ── dashboard ─────────────────────────────────────────────────────────────────
function buildDashboard() {
const wrap = el('div', { class: 'lc-dash' });
+ const engineNotice = buildEngineNotice();
+ if (engineNotice) wrap.appendChild(engineNotice);
wrap.appendChild(buildStats());
wrap.appendChild(buildBudgets());
wrap.appendChild(buildControls());
@@ -415,6 +417,26 @@ export function mountLaunchCopilot(host, opts = {}) {
return wrap;
}
+ // The policy is only half the machine: the other half is a market-maker worker
+ // sweeping it. When no worker has checked in, an armed policy would otherwise
+ // render as a maker that is working, so say plainly that nothing will execute.
+ function buildEngineNotice() {
+ const engine = state.data.engine;
+ const p = state.data.policy;
+ if (!engine || engine.live) return null;
+ if (!p || !p.enabled || p.status === 'killed' || p.status === 'graduated') return null;
+ const last = engine.last_beat_at
+ ? `The engine last checked in ${timeAgo(engine.last_beat_at)}.`
+ : 'No engine has ever checked in for this network.';
+ return el('div', { class: 'lc-notice', role: 'status' }, [
+ el('span', { class: 'lc-notice__icon', 'aria-hidden': 'true', text: '◍' }),
+ el('div', {}, [
+ el('p', { class: 'lc-notice__title', text: 'Market-maker engine is not running' }),
+ el('p', { class: 'lc-muted', text: `${last} Your policy, floor and budgets are saved and untouched, but no action will execute until it is back.` }),
+ ]),
+ ]);
+ }
+
function buildStats() {
const p = state.data.policy;
const r = p.realized || {};