UNPKG

@juspay/neurolink

Version:

The pipe layer of an AI nervous system: one interface connecting provider neurons to your application, across three inference types — generate, stream and decide. `decide` returns typed, calibrated judgements from a non-generative model (~400ms, ~$0.00002

19 lines (18 loc) • 1.03 kB
/** * Local usage: token spend read from each CLI's own session logs. * * The proxy's ledger can only account for traffic that went through it, which * caps coverage at the CLIs that expose a base-URL override. Every CLI writes * a local transcript regardless, so reading those covers the rest — and covers * history from before the proxy existed. */ import type { LocalUsageAggregateOptions, LocalUsageAggregateReport } from "../types/index.js"; export { createLocalUsageReader, getLocalUsageDescriptors, getRegisteredLocalUsageCliIds, registerLocalUsageReader, } from "./localUsageReaderRegistry.js"; /** * Scan every registered reader whose CLI is actually present on this machine. * * "Not installed" and "failed" are reported separately and deliberately: a CLI * the user never installed is not an error, and collapsing the two would make * a broken reader indistinguishable from an absent one. */ export declare function readAllLocalUsage(options?: LocalUsageAggregateOptions): Promise<LocalUsageAggregateReport>;