@timmeck/brain 3.36.70 → 3.36.72

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1333,6 +1333,20 @@ export class IpcRouter {
1333
1333
  throw new Error('GovernanceLayer not available'); s.governanceLayer.restore(p(params).id, p(params).reason ?? 'manual', 0, 'manual'); return { restored: true }; }],
1334
1334
  ['governance.layer_status', () => { if (!s.governanceLayer)
1335
1335
  throw new Error('GovernanceLayer not available'); return s.governanceLayer.getStatus(); }],
1336
+ // ─── Token Budgets ──────────────────────────────────────
1337
+ ['governance.token_budgets', () => { if (!s.tokenBudgetTracker)
1338
+ throw new Error('TokenBudgetTracker not available'); return s.tokenBudgetTracker.getStatus(); }],
1339
+ ['governance.engine_budget', (params) => { if (!s.tokenBudgetTracker)
1340
+ throw new Error('TokenBudgetTracker not available'); return s.tokenBudgetTracker.getEngineStatus(p(params).id); }],
1341
+ ['governance.set_budget', (params) => { if (!s.parameterRegistry)
1342
+ throw new Error('ParameterRegistry not available'); const pp = p(params); s.parameterRegistry.set(pp.engine, pp.name, pp.value, 'ipc', pp.reason ?? 'manual budget change'); return { updated: true }; }],
1343
+ // ─── Cycle Outcomes ─────────────────────────────────────
1344
+ ['cycle.rates', (params) => { if (!s.cycleOutcomeTracker)
1345
+ throw new Error('CycleOutcomeTracker not available'); return s.cycleOutcomeTracker.getRates(p(params).hours ?? 0); }],
1346
+ ['cycle.rates_history', (params) => { if (!s.cycleOutcomeTracker)
1347
+ throw new Error('CycleOutcomeTracker not available'); return s.cycleOutcomeTracker.getRateHistory(p(params).days ?? 30); }],
1348
+ ['cycle.recent', (params) => { if (!s.cycleOutcomeTracker)
1349
+ throw new Error('CycleOutcomeTracker not available'); return s.cycleOutcomeTracker.getRecent(p(params).limit ?? 20); }],
1336
1350
  // ─── Guardrails ────────────────────────────────────────
1337
1351
  ['guardrail.status', () => { if (!s.guardrailEngine)
1338
1352
  throw new Error('GuardrailEngine not available'); return s.guardrailEngine.getStatus(); }],