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

31 lines (30 loc) • 1.21 kB
/** * Shared CLI formatting utilities * * Common formatting functions used across CLI command modules. */ import type { ExporterStatus } from "../../types/index.js"; /** * Format a table row with padding */ export declare function formatRow(label: string, value: string, width?: number): string; /** * Format the status rows of the registered exporters */ export declare function formatExporterLines(exporters: ExporterStatus[]): string[]; /** * @description Labels NeuroLink's OpenTelemetry export for the status commands. Beside a host TracerProvider NeuroLink exports nothing to the endpoint, so it is shown as ignored rather than active. * @param otel {{ enabled: boolean; endpoint?: string; usingExternalProvider?: boolean }} - `getTelemetryStatus().openTelemetry`. * @param on {string} - Label for an export NeuroLink runs. * @param off {string} - Label for no export. * @returns {string} The coloured label. */ export declare function formatOtelStatus(otel: { enabled: boolean; endpoint?: string; usingExternalProvider?: boolean; }, on: string, off: string): string; /** * Format currency value */ export declare function formatCost(cost: number, currency?: string): string;