Orchestrator SDK docs
The package is @zeusai/orchestrator in this repository under an MIT license. It is not on the public npm registry. Install it from the repo: npm install ./packages/zeusai-orchestrator.
Register a capability
orch.registerCapabilities();
Locks
await orch.withLock("orders", async () => work());Circuit breakers
await orch.safeRun("syncPrices", () => orch.syncPrices());Predictive health
orch.updatePrediction("syncPrices", 120);systemd
ExecStart=/usr/bin/node backend/modules/orchestrator/index.js
Docker
CMD ["node", "backend/modules/orchestrator/index.js"]
Migration
Keep the old orchestrators loaded. Point new work at this facade. Do not delete the old processes from this page.