@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
9 lines (8 loc) • 736 B
TypeScript
/** Install ordinary-command cleanup and its maximum flush duration. */
export declare function initializeCliLifecycle(cleanup: () => Promise<void>, timeoutMs?: number): void;
/** Delegate signals to a long-lived command that owns draining and exit. */
export declare function registerCliShutdownOwner(handler: (signal: NodeJS.Signals) => Promise<void>): void;
/** Flush ordinary commands once; an active shutdown owner manages its own cleanup. */
export declare function cleanupCliLifecycle(): Promise<void>;
/** Bound best-effort cleanup without allowing rejection to escape a signal handler. */
export declare function runBoundedCliCleanup(cleanup: () => Promise<unknown>, timeoutMs?: number, onTimeout?: () => void): Promise<void>;