@juspay/neurolink 9.67.2 → 9.67.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -248,3 +248,23 @@ export type OpenAICompatBuildBodyArgs = {
248
248
  streaming: boolean;
249
249
  responseFormat?: OpenAICompatResponseFormat;
250
250
  };
251
+ /**
252
+ * Per-stream lifecycle listeners returned from an OpenAIChatCompletionsProvider
253
+ * subclass's `onStreamStart` hook. Every property is optional — provide only
254
+ * what the subclass cares about. Used by LiteLLM to wire an OTel span around
255
+ * the deferred analytics promises.
256
+ */
257
+ export type OpenAICompatStreamLifecycleListeners = {
258
+ /** Fired once the deferred usage promise resolves with the final aggregated token counts. */
259
+ onUsage?: (usage: {
260
+ promptTokens: number;
261
+ completionTokens: number;
262
+ totalTokens: number;
263
+ }) => void;
264
+ /**
265
+ * Fired once the deferred finish promise resolves. `reason` is "stop",
266
+ * "length", "tool-calls", "content-filter", or "error". When the loop
267
+ * errored, the upstream cause is passed as `capturedError`.
268
+ */
269
+ onFinish?: (reason: string, capturedError?: unknown) => void;
270
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juspay/neurolink",
3
- "version": "9.67.2",
3
+ "version": "9.67.3",
4
4
  "packageManager": "pnpm@10.15.1",
5
5
  "description": "Universal AI Development Platform with working MCP integration, multi-provider support, voice (TTS/STT/realtime), and professional CLI. 58+ external MCP servers discoverable, multimodal file processing, RAG pipelines. Build, test, and deploy AI applications with 21+ providers: OpenAI, Anthropic, Google AI Studio, Google Vertex, AWS Bedrock, Azure OpenAI, Mistral, LiteLLM, SageMaker, Hugging Face, Ollama, OpenAI-compatible, OpenRouter, DeepSeek, NVIDIA NIM, LM Studio, llama.cpp, plus voice (OpenAI TTS, ElevenLabs, Deepgram, Azure Speech).",
6
6
  "author": {