@juspay/neurolink 7.53.1 → 7.53.2

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,5 @@
1
+ ## [7.53.2](https://github.com/juspay/neurolink/compare/v7.53.1...v7.53.2) (2025-10-28)
2
+
1
3
  ## [7.53.1](https://github.com/juspay/neurolink/compare/v7.53.0...v7.53.1) (2025-10-27)
2
4
 
3
5
  ### Bug Fixes
package/dist/index.d.ts CHANGED
@@ -22,6 +22,7 @@ export { NeuroLink };
22
22
  export type { ProviderStatus, MCPStatus } from "./neurolink.js";
23
23
  export type { MCPServerInfo } from "./types/mcpTypes.js";
24
24
  export type { ObservabilityConfig, LangfuseConfig, OpenTelemetryConfig, } from "./types/observability.js";
25
+ export { buildObservabilityConfigFromEnv } from "./utils/observabilityHelpers.js";
25
26
  import { initializeOpenTelemetry, shutdownOpenTelemetry, flushOpenTelemetry, getLangfuseHealthStatus } from "./services/server/ai/observability/instrumentation.js";
26
27
  export { initializeOpenTelemetry, shutdownOpenTelemetry, flushOpenTelemetry, getLangfuseHealthStatus, };
27
28
  export type { NeuroLinkMiddleware, MiddlewareContext, MiddlewareFactoryOptions, MiddlewarePreset, MiddlewareConfig, } from "./types/middlewareTypes.js";
package/dist/index.js CHANGED
@@ -19,6 +19,7 @@ export { dynamicModelProvider } from "./core/dynamicModels.js";
19
19
  // Main NeuroLink wrapper class and diagnostic types
20
20
  import { NeuroLink } from "./neurolink.js";
21
21
  export { NeuroLink };
22
+ export { buildObservabilityConfigFromEnv } from "./utils/observabilityHelpers.js";
22
23
  import { initializeOpenTelemetry, shutdownOpenTelemetry, flushOpenTelemetry, getLangfuseHealthStatus, } from "./services/server/ai/observability/instrumentation.js";
23
24
  import { initializeTelemetry as init, getTelemetryStatus as getStatus, } from "./telemetry/index.js";
24
25
  export { initializeOpenTelemetry, shutdownOpenTelemetry, flushOpenTelemetry, getLangfuseHealthStatus, };
@@ -22,6 +22,7 @@ export { NeuroLink };
22
22
  export type { ProviderStatus, MCPStatus } from "./neurolink.js";
23
23
  export type { MCPServerInfo } from "./types/mcpTypes.js";
24
24
  export type { ObservabilityConfig, LangfuseConfig, OpenTelemetryConfig, } from "./types/observability.js";
25
+ export { buildObservabilityConfigFromEnv } from "./utils/observabilityHelpers.js";
25
26
  import { initializeOpenTelemetry, shutdownOpenTelemetry, flushOpenTelemetry, getLangfuseHealthStatus } from "./services/server/ai/observability/instrumentation.js";
26
27
  export { initializeOpenTelemetry, shutdownOpenTelemetry, flushOpenTelemetry, getLangfuseHealthStatus, };
27
28
  export type { NeuroLinkMiddleware, MiddlewareContext, MiddlewareFactoryOptions, MiddlewarePreset, MiddlewareConfig, } from "./types/middlewareTypes.js";
package/dist/lib/index.js CHANGED
@@ -19,6 +19,7 @@ export { dynamicModelProvider } from "./core/dynamicModels.js";
19
19
  // Main NeuroLink wrapper class and diagnostic types
20
20
  import { NeuroLink } from "./neurolink.js";
21
21
  export { NeuroLink };
22
+ export { buildObservabilityConfigFromEnv } from "./utils/observabilityHelpers.js";
22
23
  import { initializeOpenTelemetry, shutdownOpenTelemetry, flushOpenTelemetry, getLangfuseHealthStatus, } from "./services/server/ai/observability/instrumentation.js";
23
24
  import { initializeTelemetry as init, getTelemetryStatus as getStatus, } from "./telemetry/index.js";
24
25
  export { initializeOpenTelemetry, shutdownOpenTelemetry, flushOpenTelemetry, getLangfuseHealthStatus, };
@@ -1,31 +1,6 @@
1
1
  import { nanoid } from "nanoid";
2
2
  import { NeuroLink } from "../neurolink.js";
3
- /**
4
- * Build observability config from environment variables
5
- * Used by CLI to configure NeuroLink instances
6
- */
7
- function buildObservabilityConfigFromEnv() {
8
- const langfuseEnabled = process.env.LANGFUSE_ENABLED?.trim().toLowerCase() === "true";
9
- const publicKey = process.env.LANGFUSE_PUBLIC_KEY?.trim();
10
- const secretKey = process.env.LANGFUSE_SECRET_KEY?.trim();
11
- if (!langfuseEnabled || !publicKey || !secretKey) {
12
- return undefined;
13
- }
14
- return {
15
- langfuse: {
16
- enabled: langfuseEnabled,
17
- publicKey,
18
- secretKey,
19
- baseUrl: process.env.LANGFUSE_BASE_URL?.trim() || "https://cloud.langfuse.com",
20
- environment: process.env.LANGFUSE_ENVIRONMENT?.trim() ||
21
- process.env.PUBLIC_APP_ENVIRONMENT?.trim() ||
22
- "dev",
23
- release: process.env.PUBLIC_APP_VERSION?.trim() ||
24
- process.env.npm_package_version?.trim() ||
25
- "v1.0.0",
26
- },
27
- };
28
- }
3
+ import { buildObservabilityConfigFromEnv } from "../utils/observabilityHelpers.js";
29
4
  export class GlobalSessionManager {
30
5
  static instance;
31
6
  loopSession = null;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Utility for building observability configs from environment variables
3
+ */
4
+ import type { ObservabilityConfig } from "../types/observability.js";
5
+ /**
6
+ * Build observability config from environment variables
7
+ *
8
+ * Reads Langfuse configuration from environment:
9
+ * - LANGFUSE_ENABLED: Enable/disable Langfuse (must be "true")
10
+ * - LANGFUSE_PUBLIC_KEY: Your Langfuse public key (required)
11
+ * - LANGFUSE_SECRET_KEY: Your Langfuse secret key (required)
12
+ * - LANGFUSE_BASE_URL: Langfuse server URL (default: https://cloud.langfuse.com)
13
+ * - LANGFUSE_ENVIRONMENT: Environment name (default: dev)
14
+ * - PUBLIC_APP_VERSION: Release/version identifier (default: v1.0.0)
15
+ *
16
+ * @returns ObservabilityConfig if all required env vars are set, undefined otherwise
17
+ *
18
+ * @example
19
+ * ```typescript
20
+ * import { NeuroLink, buildObservabilityConfigFromEnv } from '@juspay/neurolink';
21
+ *
22
+ * const neurolink = new NeuroLink({
23
+ * observability: buildObservabilityConfigFromEnv()
24
+ * });
25
+ * ```
26
+ */
27
+ export declare function buildObservabilityConfigFromEnv(): ObservabilityConfig | undefined;
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Utility for building observability configs from environment variables
3
+ */
4
+ /**
5
+ * Build observability config from environment variables
6
+ *
7
+ * Reads Langfuse configuration from environment:
8
+ * - LANGFUSE_ENABLED: Enable/disable Langfuse (must be "true")
9
+ * - LANGFUSE_PUBLIC_KEY: Your Langfuse public key (required)
10
+ * - LANGFUSE_SECRET_KEY: Your Langfuse secret key (required)
11
+ * - LANGFUSE_BASE_URL: Langfuse server URL (default: https://cloud.langfuse.com)
12
+ * - LANGFUSE_ENVIRONMENT: Environment name (default: dev)
13
+ * - PUBLIC_APP_VERSION: Release/version identifier (default: v1.0.0)
14
+ *
15
+ * @returns ObservabilityConfig if all required env vars are set, undefined otherwise
16
+ *
17
+ * @example
18
+ * ```typescript
19
+ * import { NeuroLink, buildObservabilityConfigFromEnv } from '@juspay/neurolink';
20
+ *
21
+ * const neurolink = new NeuroLink({
22
+ * observability: buildObservabilityConfigFromEnv()
23
+ * });
24
+ * ```
25
+ */
26
+ export function buildObservabilityConfigFromEnv() {
27
+ const langfuseEnabled = process.env.LANGFUSE_ENABLED?.trim().toLowerCase() === "true";
28
+ const publicKey = process.env.LANGFUSE_PUBLIC_KEY?.trim();
29
+ const secretKey = process.env.LANGFUSE_SECRET_KEY?.trim();
30
+ if (!langfuseEnabled || !publicKey || !secretKey) {
31
+ return undefined;
32
+ }
33
+ return {
34
+ langfuse: {
35
+ enabled: langfuseEnabled,
36
+ publicKey,
37
+ secretKey,
38
+ baseUrl: process.env.LANGFUSE_BASE_URL?.trim() || "https://cloud.langfuse.com",
39
+ environment: process.env.LANGFUSE_ENVIRONMENT?.trim() ||
40
+ process.env.PUBLIC_APP_ENVIRONMENT?.trim() ||
41
+ "dev",
42
+ release: process.env.PUBLIC_APP_VERSION?.trim() ||
43
+ process.env.npm_package_version?.trim() ||
44
+ "v1.0.0",
45
+ },
46
+ };
47
+ }
48
+ //# sourceMappingURL=observabilityHelpers.js.map
@@ -1,31 +1,6 @@
1
1
  import { nanoid } from "nanoid";
2
2
  import { NeuroLink } from "../neurolink.js";
3
- /**
4
- * Build observability config from environment variables
5
- * Used by CLI to configure NeuroLink instances
6
- */
7
- function buildObservabilityConfigFromEnv() {
8
- const langfuseEnabled = process.env.LANGFUSE_ENABLED?.trim().toLowerCase() === "true";
9
- const publicKey = process.env.LANGFUSE_PUBLIC_KEY?.trim();
10
- const secretKey = process.env.LANGFUSE_SECRET_KEY?.trim();
11
- if (!langfuseEnabled || !publicKey || !secretKey) {
12
- return undefined;
13
- }
14
- return {
15
- langfuse: {
16
- enabled: langfuseEnabled,
17
- publicKey,
18
- secretKey,
19
- baseUrl: process.env.LANGFUSE_BASE_URL?.trim() || "https://cloud.langfuse.com",
20
- environment: process.env.LANGFUSE_ENVIRONMENT?.trim() ||
21
- process.env.PUBLIC_APP_ENVIRONMENT?.trim() ||
22
- "dev",
23
- release: process.env.PUBLIC_APP_VERSION?.trim() ||
24
- process.env.npm_package_version?.trim() ||
25
- "v1.0.0",
26
- },
27
- };
28
- }
3
+ import { buildObservabilityConfigFromEnv } from "../utils/observabilityHelpers.js";
29
4
  export class GlobalSessionManager {
30
5
  static instance;
31
6
  loopSession = null;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Utility for building observability configs from environment variables
3
+ */
4
+ import type { ObservabilityConfig } from "../types/observability.js";
5
+ /**
6
+ * Build observability config from environment variables
7
+ *
8
+ * Reads Langfuse configuration from environment:
9
+ * - LANGFUSE_ENABLED: Enable/disable Langfuse (must be "true")
10
+ * - LANGFUSE_PUBLIC_KEY: Your Langfuse public key (required)
11
+ * - LANGFUSE_SECRET_KEY: Your Langfuse secret key (required)
12
+ * - LANGFUSE_BASE_URL: Langfuse server URL (default: https://cloud.langfuse.com)
13
+ * - LANGFUSE_ENVIRONMENT: Environment name (default: dev)
14
+ * - PUBLIC_APP_VERSION: Release/version identifier (default: v1.0.0)
15
+ *
16
+ * @returns ObservabilityConfig if all required env vars are set, undefined otherwise
17
+ *
18
+ * @example
19
+ * ```typescript
20
+ * import { NeuroLink, buildObservabilityConfigFromEnv } from '@juspay/neurolink';
21
+ *
22
+ * const neurolink = new NeuroLink({
23
+ * observability: buildObservabilityConfigFromEnv()
24
+ * });
25
+ * ```
26
+ */
27
+ export declare function buildObservabilityConfigFromEnv(): ObservabilityConfig | undefined;
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Utility for building observability configs from environment variables
3
+ */
4
+ /**
5
+ * Build observability config from environment variables
6
+ *
7
+ * Reads Langfuse configuration from environment:
8
+ * - LANGFUSE_ENABLED: Enable/disable Langfuse (must be "true")
9
+ * - LANGFUSE_PUBLIC_KEY: Your Langfuse public key (required)
10
+ * - LANGFUSE_SECRET_KEY: Your Langfuse secret key (required)
11
+ * - LANGFUSE_BASE_URL: Langfuse server URL (default: https://cloud.langfuse.com)
12
+ * - LANGFUSE_ENVIRONMENT: Environment name (default: dev)
13
+ * - PUBLIC_APP_VERSION: Release/version identifier (default: v1.0.0)
14
+ *
15
+ * @returns ObservabilityConfig if all required env vars are set, undefined otherwise
16
+ *
17
+ * @example
18
+ * ```typescript
19
+ * import { NeuroLink, buildObservabilityConfigFromEnv } from '@juspay/neurolink';
20
+ *
21
+ * const neurolink = new NeuroLink({
22
+ * observability: buildObservabilityConfigFromEnv()
23
+ * });
24
+ * ```
25
+ */
26
+ export function buildObservabilityConfigFromEnv() {
27
+ const langfuseEnabled = process.env.LANGFUSE_ENABLED?.trim().toLowerCase() === "true";
28
+ const publicKey = process.env.LANGFUSE_PUBLIC_KEY?.trim();
29
+ const secretKey = process.env.LANGFUSE_SECRET_KEY?.trim();
30
+ if (!langfuseEnabled || !publicKey || !secretKey) {
31
+ return undefined;
32
+ }
33
+ return {
34
+ langfuse: {
35
+ enabled: langfuseEnabled,
36
+ publicKey,
37
+ secretKey,
38
+ baseUrl: process.env.LANGFUSE_BASE_URL?.trim() || "https://cloud.langfuse.com",
39
+ environment: process.env.LANGFUSE_ENVIRONMENT?.trim() ||
40
+ process.env.PUBLIC_APP_ENVIRONMENT?.trim() ||
41
+ "dev",
42
+ release: process.env.PUBLIC_APP_VERSION?.trim() ||
43
+ process.env.npm_package_version?.trim() ||
44
+ "v1.0.0",
45
+ },
46
+ };
47
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juspay/neurolink",
3
- "version": "7.53.1",
3
+ "version": "7.53.2",
4
4
  "description": "Universal AI Development Platform with working MCP integration, multi-provider support, and professional CLI. Built-in tools operational, 58+ external MCP servers discoverable. Connect to filesystem, GitHub, database operations, and more. Build, test, and deploy AI applications with 9 major providers: OpenAI, Anthropic, Google AI, AWS Bedrock, Azure, Hugging Face, Ollama, and Mistral AI.",
5
5
  "author": {
6
6
  "name": "Juspay Technologies",