@juspay/neurolink 9.12.0 → 9.12.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,15 @@
1
+ ## [9.12.2](https://github.com/juspay/neurolink/compare/v9.12.1...v9.12.2) (2026-02-23)
2
+
3
+ ### Bug Fixes
4
+
5
+ - **(deps):** move sharp, ffmpeg-static, ffprobe-static to optionalDependencies ([4810b83](https://github.com/juspay/neurolink/commit/4810b83ee876c57bd9075a3a587249f1a9db285c))
6
+
7
+ ## [9.12.1](https://github.com/juspay/neurolink/compare/v9.12.0...v9.12.1) (2026-02-23)
8
+
9
+ ### Bug Fixes
10
+
11
+ - **(core):** lazy-load sharp and stop leaking framework types in .d.ts ([4ecc448](https://github.com/juspay/neurolink/commit/4ecc4482dbf1b0ef30de537a0edd9b6d4ce67a3f))
12
+
1
13
  ## [9.12.0](https://github.com/juspay/neurolink/compare/v9.11.0...v9.12.0) (2026-02-23)
2
14
 
3
15
  ### Features
@@ -48,7 +48,6 @@ import ffmpegCommand from "fluent-ffmpeg";
48
48
  import { createWriteStream, existsSync, promises as fs } from "fs";
49
49
  import { tmpdir } from "os";
50
50
  import { join } from "path";
51
- import sharp from "sharp";
52
51
  import { Readable } from "stream";
53
52
  import { pipeline } from "stream/promises";
54
53
  import { BaseFileProcessor } from "../base/BaseFileProcessor.js";
@@ -538,6 +537,7 @@ export class VideoProcessor extends BaseFileProcessor {
538
537
  await fs.access(framePath);
539
538
  const rawFrame = await fs.readFile(framePath);
540
539
  // Resize to fit within max dimension while preserving aspect ratio
540
+ const sharp = (await import("sharp")).default;
541
541
  const resized = await sharp(rawFrame)
542
542
  .resize(VIDEO_CONFIG.FRAME_MAX_DIMENSION, VIDEO_CONFIG.FRAME_MAX_DIMENSION, {
543
543
  fit: "inside",
@@ -878,6 +878,7 @@ export class VideoProcessor extends BaseFileProcessor {
878
878
  try {
879
879
  await fs.access(framePath);
880
880
  const rawFrame = await fs.readFile(framePath);
881
+ const sharp = (await import("sharp")).default;
881
882
  const resized = await sharp(rawFrame)
882
883
  .resize(VIDEO_CONFIG.FRAME_MAX_DIMENSION, VIDEO_CONFIG.FRAME_MAX_DIMENSION, {
883
884
  fit: "inside",
@@ -2,7 +2,6 @@
2
2
  * Express Server Adapter
3
3
  * Server adapter implementation using Express framework
4
4
  */
5
- import type { Express } from "express";
6
5
  import type { NeuroLink } from "../../neurolink.js";
7
6
  import { BaseServerAdapter } from "../abstract/baseServerAdapter.js";
8
7
  import type { MiddlewareDefinition, RouteDefinition, ServerAdapterConfig } from "../types.js";
@@ -67,5 +66,5 @@ export declare class ExpressServerAdapter extends BaseServerAdapter {
67
66
  /**
68
67
  * Get the Express app instance
69
68
  */
70
- getFrameworkInstance(): Express;
69
+ getFrameworkInstance(): unknown;
71
70
  }
@@ -3,7 +3,6 @@
3
3
  * Server adapter implementation using Fastify framework
4
4
  * Fastify is known for its high performance and low overhead
5
5
  */
6
- import type { FastifyInstance } from "fastify";
7
6
  import type { NeuroLink } from "../../neurolink.js";
8
7
  import { BaseServerAdapter } from "../abstract/baseServerAdapter.js";
9
8
  import type { MiddlewareDefinition, RouteDefinition, ServerAdapterConfig } from "../types.js";
@@ -67,5 +66,5 @@ export declare class FastifyServerAdapter extends BaseServerAdapter {
67
66
  /**
68
67
  * Get the Fastify instance
69
68
  */
70
- getFrameworkInstance(): FastifyInstance;
69
+ getFrameworkInstance(): unknown;
71
70
  }
@@ -3,7 +3,6 @@
3
3
  * Primary server adapter implementation using Hono framework
4
4
  * Hono is chosen for its performance, TypeScript-first design, and edge compatibility
5
5
  */
6
- import { Hono } from "hono";
7
6
  import type { NeuroLink } from "../../neurolink.js";
8
7
  import { BaseServerAdapter } from "../abstract/baseServerAdapter.js";
9
8
  import type { MiddlewareDefinition, RouteDefinition, ServerAdapterConfig } from "../types.js";
@@ -65,7 +64,7 @@ export declare class HonoServerAdapter extends BaseServerAdapter {
65
64
  /**
66
65
  * Get the Hono app instance
67
66
  */
68
- getFrameworkInstance(): Hono;
67
+ getFrameworkInstance(): unknown;
69
68
  private extractHeaders;
70
69
  private extractQuery;
71
70
  private extractBody;
@@ -48,7 +48,6 @@ import ffmpegCommand from "fluent-ffmpeg";
48
48
  import { createWriteStream, existsSync, promises as fs } from "fs";
49
49
  import { tmpdir } from "os";
50
50
  import { join } from "path";
51
- import sharp from "sharp";
52
51
  import { Readable } from "stream";
53
52
  import { pipeline } from "stream/promises";
54
53
  import { BaseFileProcessor } from "../base/BaseFileProcessor.js";
@@ -538,6 +537,7 @@ export class VideoProcessor extends BaseFileProcessor {
538
537
  await fs.access(framePath);
539
538
  const rawFrame = await fs.readFile(framePath);
540
539
  // Resize to fit within max dimension while preserving aspect ratio
540
+ const sharp = (await import("sharp")).default;
541
541
  const resized = await sharp(rawFrame)
542
542
  .resize(VIDEO_CONFIG.FRAME_MAX_DIMENSION, VIDEO_CONFIG.FRAME_MAX_DIMENSION, {
543
543
  fit: "inside",
@@ -878,6 +878,7 @@ export class VideoProcessor extends BaseFileProcessor {
878
878
  try {
879
879
  await fs.access(framePath);
880
880
  const rawFrame = await fs.readFile(framePath);
881
+ const sharp = (await import("sharp")).default;
881
882
  const resized = await sharp(rawFrame)
882
883
  .resize(VIDEO_CONFIG.FRAME_MAX_DIMENSION, VIDEO_CONFIG.FRAME_MAX_DIMENSION, {
883
884
  fit: "inside",
@@ -2,7 +2,6 @@
2
2
  * Express Server Adapter
3
3
  * Server adapter implementation using Express framework
4
4
  */
5
- import type { Express } from "express";
6
5
  import type { NeuroLink } from "../../neurolink.js";
7
6
  import { BaseServerAdapter } from "../abstract/baseServerAdapter.js";
8
7
  import type { MiddlewareDefinition, RouteDefinition, ServerAdapterConfig } from "../types.js";
@@ -67,5 +66,5 @@ export declare class ExpressServerAdapter extends BaseServerAdapter {
67
66
  /**
68
67
  * Get the Express app instance
69
68
  */
70
- getFrameworkInstance(): Express;
69
+ getFrameworkInstance(): unknown;
71
70
  }
@@ -3,7 +3,6 @@
3
3
  * Server adapter implementation using Fastify framework
4
4
  * Fastify is known for its high performance and low overhead
5
5
  */
6
- import type { FastifyInstance } from "fastify";
7
6
  import type { NeuroLink } from "../../neurolink.js";
8
7
  import { BaseServerAdapter } from "../abstract/baseServerAdapter.js";
9
8
  import type { MiddlewareDefinition, RouteDefinition, ServerAdapterConfig } from "../types.js";
@@ -67,5 +66,5 @@ export declare class FastifyServerAdapter extends BaseServerAdapter {
67
66
  /**
68
67
  * Get the Fastify instance
69
68
  */
70
- getFrameworkInstance(): FastifyInstance;
69
+ getFrameworkInstance(): unknown;
71
70
  }
@@ -3,7 +3,6 @@
3
3
  * Primary server adapter implementation using Hono framework
4
4
  * Hono is chosen for its performance, TypeScript-first design, and edge compatibility
5
5
  */
6
- import { Hono } from "hono";
7
6
  import type { NeuroLink } from "../../neurolink.js";
8
7
  import { BaseServerAdapter } from "../abstract/baseServerAdapter.js";
9
8
  import type { MiddlewareDefinition, RouteDefinition, ServerAdapterConfig } from "../types.js";
@@ -65,7 +64,7 @@ export declare class HonoServerAdapter extends BaseServerAdapter {
65
64
  /**
66
65
  * Get the Hono app instance
67
66
  */
68
- getFrameworkInstance(): Hono;
67
+ getFrameworkInstance(): unknown;
69
68
  private extractHeaders;
70
69
  private extractQuery;
71
70
  private extractBody;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juspay/neurolink",
3
- "version": "9.12.0",
3
+ "version": "9.12.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 13 providers: OpenAI, Anthropic, Google AI, AWS Bedrock, Azure, Hugging Face, Ollama, and Mistral AI.",
5
5
  "author": {
6
6
  "name": "Juspay Technologies",
@@ -197,8 +197,6 @@
197
197
  "csv-parser": "^3.2.0",
198
198
  "dotenv": "^16.6.1",
199
199
  "exceljs": "^4.4.0",
200
- "ffmpeg-static": "^5.3.0",
201
- "ffprobe-static": "^3.1.0",
202
200
  "fluent-ffmpeg": "^2.1.3",
203
201
  "google-auth-library": "^9.1.0",
204
202
  "hono": "^4.6.0",
@@ -217,7 +215,6 @@
217
215
  "pptxgenjs": "^3.12.0",
218
216
  "reconnecting-eventsource": "^1.6.4",
219
217
  "redis": "^5.8.2",
220
- "sharp": "^0.34.5",
221
218
  "tar-stream": "^3.1.7",
222
219
  "undici": "^7.5.0",
223
220
  "uuid": "^11.1.0",
@@ -235,7 +232,10 @@
235
232
  "optionalDependencies": {
236
233
  "@hono/node-server": "^1.13.0",
237
234
  "canvas": "^3.2.0",
238
- "express-rate-limit": "^7.4.0"
235
+ "express-rate-limit": "^7.4.0",
236
+ "ffmpeg-static": "^5.3.0",
237
+ "ffprobe-static": "^3.1.0",
238
+ "sharp": "^0.34.5"
239
239
  },
240
240
  "devDependencies": {
241
241
  "@actions/core": "^2.0.2",