@lunarbase-lab/pmm-v2-client
v0.4.1
Published
Universal LunarBase TypeScript runtime and execution engine
Maintainers
Readme
@lunarbase-lab/pmm-v2-client
Realtime TypeScript client for LunarBase quotes.
Status: fully supported.
Install
npm install @lunarbase-lab/pmm-v2-math @lunarbase-lab/pmm-v2-clientUse
import { connect } from "@lunarbase-lab/pmm-v2-client";
const client = await connect(config, dataSource, optionalCheckpoint);
const quote = client.quote(request);
const quotes = client.quoteMany(requests);
const health = client.health();
await client.shutdown(); // bounded to 10 seconds by defaultGuarantees
quoteandquoteManyread one coherent in-memory state snapshot.ChainDataSourcecovers bootstrap, backfill, ordered updates, and checkpoint validation.- Gaps and canonical mismatches suspend readiness until recovery completes.
queueBoundandqueueByteBoundjointly cap the source/reducer handoff; overflow fails closed into canonical recovery.sourceOperationTimeoutMillisecondsbounds subscription, snapshot, and recovery source calls. Caller-owned deployment and filter objects are copied and frozen before the first asynchronous boundary.- Runtime queues use fixed-capacity O(1) ring buffers. Shutdown stops ingestion, drains accepted reducer updates, and rejects if its deadline is exceeded.
