@juspay/neurolink 7.53.5 → 8.0.0
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 +33 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/lib/index.d.ts +2 -2
- package/dist/lib/index.js +2 -2
- package/dist/lib/mcp/mcpClientFactory.js +0 -3
- package/dist/lib/neurolink.d.ts +4 -0
- package/dist/lib/neurolink.js +357 -390
- package/dist/lib/services/server/ai/observability/instrumentation.d.ts +17 -0
- package/dist/lib/services/server/ai/observability/instrumentation.js +54 -5
- package/dist/lib/types/common.d.ts +1 -0
- package/dist/lib/types/observability.d.ts +4 -0
- package/dist/lib/utils/fileDetector.js +3 -3
- package/dist/lib/utils/logger.d.ts +21 -0
- package/dist/lib/utils/logger.js +35 -0
- package/dist/lib/utils/messageBuilder.js +3 -3
- package/dist/mcp/mcpClientFactory.js +0 -3
- package/dist/neurolink.d.ts +4 -0
- package/dist/neurolink.js +357 -390
- package/dist/services/server/ai/observability/instrumentation.d.ts +17 -0
- package/dist/services/server/ai/observability/instrumentation.js +54 -5
- package/dist/types/common.d.ts +1 -0
- package/dist/types/observability.d.ts +4 -0
- package/dist/utils/fileDetector.js +3 -3
- package/dist/utils/logger.d.ts +21 -0
- package/dist/utils/logger.js +35 -0
- package/dist/utils/messageBuilder.js +3 -3
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,36 @@
|
|
|
1
|
+
## [8.0.0](https://github.com/juspay/neurolink/compare/v7.54.0...v8.0.0) (2025-11-19)
|
|
2
|
+
|
|
3
|
+
### ⚠ BREAKING CHANGES
|
|
4
|
+
|
|
5
|
+
- **(deps):** Node.js 20.18.1+ is now required due to undici v7 dependency.
|
|
6
|
+
Undici v7 requires the File API which is only available in Node.js 20.18.1+.
|
|
7
|
+
|
|
8
|
+
Changes:
|
|
9
|
+
|
|
10
|
+
- Update fileDetector.ts to use interceptors.redirect()
|
|
11
|
+
- Update messageBuilder.ts to use interceptors.redirect()
|
|
12
|
+
- Add getGlobalDispatcher and interceptors imports from undici
|
|
13
|
+
- Temporarily exclude known package vulnerabilities from security validation
|
|
14
|
+
- Require Node.js >=20.18.1 in package.json engines
|
|
15
|
+
- Update npm requirement to >=10.0.0
|
|
16
|
+
- Remove Node 18 from CI test matrix
|
|
17
|
+
|
|
18
|
+
Fixes build failures introduced in f19c433 (undici bump to v7)
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
- **(observability):** add support for userid and sessionid in langfuse traces ([b1895a6](https://github.com/juspay/neurolink/commit/b1895a622edbba9c7c360069b411a0c575a271cb))
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
- **(deps):** update undici v7 API usage and require Node.js 20+ ([dc81bba](https://github.com/juspay/neurolink/commit/dc81bba41b47c37340ec9a9d7c9f0d733c06adae))
|
|
27
|
+
|
|
28
|
+
## [7.54.0](https://github.com/juspay/neurolink/compare/v7.53.5...v7.54.0) (2025-11-08)
|
|
29
|
+
|
|
30
|
+
### Features
|
|
31
|
+
|
|
32
|
+
- **(logs):** enable neurolink logs to be pushed into lighthouse ([9a752c4](https://github.com/juspay/neurolink/commit/9a752c4de4d300512027b7d405dda633701fae15))
|
|
33
|
+
|
|
1
34
|
## [7.53.5](https://github.com/juspay/neurolink/compare/v7.53.4...v7.53.5) (2025-11-06)
|
|
2
35
|
|
|
3
36
|
## [7.53.4](https://github.com/juspay/neurolink/compare/v7.53.3...v7.53.4) (2025-11-05)
|
package/dist/index.d.ts
CHANGED
|
@@ -23,8 +23,8 @@ export { NeuroLink };
|
|
|
23
23
|
export type { MCPServerInfo } from "./types/mcpTypes.js";
|
|
24
24
|
export type { ObservabilityConfig, LangfuseConfig, OpenTelemetryConfig, } from "./types/observability.js";
|
|
25
25
|
export { buildObservabilityConfigFromEnv } from "./utils/observabilityHelpers.js";
|
|
26
|
-
import { initializeOpenTelemetry, shutdownOpenTelemetry, flushOpenTelemetry, getLangfuseHealthStatus } from "./services/server/ai/observability/instrumentation.js";
|
|
27
|
-
export { initializeOpenTelemetry, shutdownOpenTelemetry, flushOpenTelemetry, getLangfuseHealthStatus, };
|
|
26
|
+
import { initializeOpenTelemetry, shutdownOpenTelemetry, flushOpenTelemetry, getLangfuseHealthStatus, setLangfuseContext } from "./services/server/ai/observability/instrumentation.js";
|
|
27
|
+
export { initializeOpenTelemetry, shutdownOpenTelemetry, flushOpenTelemetry, getLangfuseHealthStatus, setLangfuseContext, };
|
|
28
28
|
export type { NeuroLinkMiddleware, MiddlewareContext, MiddlewareFactoryOptions, MiddlewarePreset, MiddlewareConfig, } from "./types/middlewareTypes.js";
|
|
29
29
|
export { MiddlewareFactory } from "./middleware/factory.js";
|
|
30
30
|
export declare const VERSION = "1.0.0";
|
package/dist/index.js
CHANGED
|
@@ -21,9 +21,9 @@ export { dynamicModelProvider } from "./core/dynamicModels.js";
|
|
|
21
21
|
import { NeuroLink } from "./neurolink.js";
|
|
22
22
|
export { NeuroLink };
|
|
23
23
|
export { buildObservabilityConfigFromEnv } from "./utils/observabilityHelpers.js";
|
|
24
|
-
import { initializeOpenTelemetry, shutdownOpenTelemetry, flushOpenTelemetry, getLangfuseHealthStatus, } from "./services/server/ai/observability/instrumentation.js";
|
|
24
|
+
import { initializeOpenTelemetry, shutdownOpenTelemetry, flushOpenTelemetry, getLangfuseHealthStatus, setLangfuseContext, } from "./services/server/ai/observability/instrumentation.js";
|
|
25
25
|
import { initializeTelemetry as init, getTelemetryStatus as getStatus, } from "./telemetry/index.js";
|
|
26
|
-
export { initializeOpenTelemetry, shutdownOpenTelemetry, flushOpenTelemetry, getLangfuseHealthStatus, };
|
|
26
|
+
export { initializeOpenTelemetry, shutdownOpenTelemetry, flushOpenTelemetry, getLangfuseHealthStatus, setLangfuseContext, };
|
|
27
27
|
export { MiddlewareFactory } from "./middleware/factory.js";
|
|
28
28
|
// Version
|
|
29
29
|
export const VERSION = "1.0.0";
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -23,8 +23,8 @@ export { NeuroLink };
|
|
|
23
23
|
export type { MCPServerInfo } from "./types/mcpTypes.js";
|
|
24
24
|
export type { ObservabilityConfig, LangfuseConfig, OpenTelemetryConfig, } from "./types/observability.js";
|
|
25
25
|
export { buildObservabilityConfigFromEnv } from "./utils/observabilityHelpers.js";
|
|
26
|
-
import { initializeOpenTelemetry, shutdownOpenTelemetry, flushOpenTelemetry, getLangfuseHealthStatus } from "./services/server/ai/observability/instrumentation.js";
|
|
27
|
-
export { initializeOpenTelemetry, shutdownOpenTelemetry, flushOpenTelemetry, getLangfuseHealthStatus, };
|
|
26
|
+
import { initializeOpenTelemetry, shutdownOpenTelemetry, flushOpenTelemetry, getLangfuseHealthStatus, setLangfuseContext } from "./services/server/ai/observability/instrumentation.js";
|
|
27
|
+
export { initializeOpenTelemetry, shutdownOpenTelemetry, flushOpenTelemetry, getLangfuseHealthStatus, setLangfuseContext, };
|
|
28
28
|
export type { NeuroLinkMiddleware, MiddlewareContext, MiddlewareFactoryOptions, MiddlewarePreset, MiddlewareConfig, } from "./types/middlewareTypes.js";
|
|
29
29
|
export { MiddlewareFactory } from "./middleware/factory.js";
|
|
30
30
|
export declare const VERSION = "1.0.0";
|
package/dist/lib/index.js
CHANGED
|
@@ -21,9 +21,9 @@ export { dynamicModelProvider } from "./core/dynamicModels.js";
|
|
|
21
21
|
import { NeuroLink } from "./neurolink.js";
|
|
22
22
|
export { NeuroLink };
|
|
23
23
|
export { buildObservabilityConfigFromEnv } from "./utils/observabilityHelpers.js";
|
|
24
|
-
import { initializeOpenTelemetry, shutdownOpenTelemetry, flushOpenTelemetry, getLangfuseHealthStatus, } from "./services/server/ai/observability/instrumentation.js";
|
|
24
|
+
import { initializeOpenTelemetry, shutdownOpenTelemetry, flushOpenTelemetry, getLangfuseHealthStatus, setLangfuseContext, } from "./services/server/ai/observability/instrumentation.js";
|
|
25
25
|
import { initializeTelemetry as init, getTelemetryStatus as getStatus, } from "./telemetry/index.js";
|
|
26
|
-
export { initializeOpenTelemetry, shutdownOpenTelemetry, flushOpenTelemetry, getLangfuseHealthStatus, };
|
|
26
|
+
export { initializeOpenTelemetry, shutdownOpenTelemetry, flushOpenTelemetry, getLangfuseHealthStatus, setLangfuseContext, };
|
|
27
27
|
export { MiddlewareFactory } from "./middleware/factory.js";
|
|
28
28
|
// Version
|
|
29
29
|
export const VERSION = "1.0.0";
|
package/dist/lib/neurolink.d.ts
CHANGED
|
@@ -50,6 +50,10 @@ export declare class NeuroLink {
|
|
|
50
50
|
private hitlManager?;
|
|
51
51
|
private mem0Instance?;
|
|
52
52
|
private mem0Config?;
|
|
53
|
+
/**
|
|
54
|
+
* Extract and set Langfuse context from options with proper async scoping
|
|
55
|
+
*/
|
|
56
|
+
private setLangfuseContextFromOptions;
|
|
53
57
|
/**
|
|
54
58
|
* Simple sync config setup for mem0
|
|
55
59
|
*/
|