@juspay/neurolink 12.11.0 → 12.11.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,8 +1,8 @@
1
- ## [12.11.0](https://github.com/juspay/neurolink/compare/v12.10.0...v12.11.0) (2026-09-03)
1
+ ## [12.11.2](https://github.com/juspay/neurolink/compare/v12.11.1...v12.11.2) (2026-09-04)
2
2
 
3
- ### Features
3
+ ### Bug Fixes
4
4
 
5
- - **(providers):** onboard verified catalog providers ([3c6c186](https://github.com/juspay/neurolink/commit/3c6c1868ee7750e2b3101786319f6a2fc118bf2b))
5
+ - **(types):** stop shipping declarations that reference stripped types ([949c385](https://github.com/juspay/neurolink/commit/949c3853c5ba34cd298069f962cdd5846dd26e9f))
6
6
 
7
7
  ## [11.2.3](https://github.com/juspay/neurolink/compare/v11.2.2...v11.2.3) (2026-08-19)
8
8
 
@@ -61,7 +61,14 @@ function probeInstaller(kind, bin, entryScript, execFileSync) {
61
61
  return base;
62
62
  }
63
63
  base.installable = true;
64
- base.matchesCurrentInstall = isPathInside(entryScript, base.globalRoot);
64
+ // Global npm packages install their entrypoints under <prefix>/bin while
65
+ // their package contents live in <prefix>/lib/node_modules. A running
66
+ // process can retain its argv path after that shim has disappeared, so
67
+ // retain the lexical bin-directory check as well as the resolved package
68
+ // root check.
69
+ base.matchesCurrentInstall =
70
+ isPathInside(entryScript, base.globalRoot) ||
71
+ isPathInside(entryScript, base.globalBinDir);
65
72
  return base;
66
73
  }
67
74
  catch (error) {
@@ -67,3 +67,20 @@ export type GitToolRefusal = {
67
67
  isError: true;
68
68
  error: string;
69
69
  };
70
+ /**
71
+ * Resolved git toolset settings for one host.
72
+ *
73
+ * Deliberately not marked internal: it is the return type of
74
+ * `configureGitTools`, so it is named by an emitted declaration. Marking it
75
+ * would make `stripInternal` delete the type without touching the import that
76
+ * references it, leaving a .d.ts that fails to compile for any consumer using
77
+ * `skipLibCheck: false`. (Note that the tag is matched as plain text anywhere
78
+ * in the doc comment, so it cannot even be named here to explain itself.)
79
+ */
80
+ export type GitToolRuntimeSettings = {
81
+ repoRoot: string;
82
+ timeoutMs: number;
83
+ maxOutputBytes: number;
84
+ previewChars: number;
85
+ gitExecutable: string;
86
+ };
@@ -316,6 +316,49 @@ export type KnowledgeValidationResult = {
316
316
  ok: boolean;
317
317
  issues: KnowledgeValidationIssue[];
318
318
  };
319
+ /** Options for normalizing + validating a set of sources before indexing. */
320
+ export type KnowledgeNormalizeOptions = {
321
+ manifestVersion: string;
322
+ };
323
+ /** Normalized entries paired with the validation outcome. */
324
+ export type KnowledgeNormalizeResult = {
325
+ entries: NormalizedKnowledgeEntry[];
326
+ validation: KnowledgeValidationResult;
327
+ };
328
+ /** Retrieval tuning after config + SDK defaults are merged. */
329
+ export type KnowledgeResolvedRetrieval = {
330
+ candidateLimit: number;
331
+ resultLimit: number;
332
+ relationLimit: number;
333
+ fieldWeights: KnowledgeFieldWeights;
334
+ exactBoost: number;
335
+ aliasBoost: number;
336
+ };
337
+ /** One scored retrieval candidate with its signal breakdown, for traces. */
338
+ export type KnowledgeScoredCandidate = {
339
+ id: string;
340
+ score: number;
341
+ exact: boolean;
342
+ alias: boolean;
343
+ lexical: number;
344
+ fieldScores: Partial<Record<KnowledgeFieldName, number>>;
345
+ matchedPhrases: string[];
346
+ };
347
+ /** The selected primary + relationship-expanded entries for one turn. */
348
+ export type KnowledgeSelection = {
349
+ primary: NormalizedKnowledgeEntry[];
350
+ expanded: NormalizedKnowledgeEntry[];
351
+ candidates: KnowledgeScoredCandidate[];
352
+ confidence: KnowledgeRetrievalConfidence;
353
+ candidateCount: number;
354
+ };
355
+ /** The assembled ephemeral-context string plus its diagnostics. */
356
+ export type KnowledgeAssembledContext = {
357
+ assembledContext: string;
358
+ citations: KnowledgeCitation[];
359
+ contextTokens: number;
360
+ truncated: boolean;
361
+ };
319
362
  /** Per-turn input to `KnowledgeGroundingEngine.ground()`. */
320
363
  export type KnowledgeGroundingInput = {
321
364
  query: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juspay/neurolink",
3
- "version": "12.11.0",
3
+ "version": "12.11.2",
4
4
  "packageManager": "pnpm@10.15.1",
5
5
  "description": "TypeScript AI SDK with 24+ LLM providers behind one consistent API. MCP-native (connect any MCP server), voice TTS/STT/realtime, RAG, agents, memory, context compaction. OpenAI · Anthropic · Gemini · Bedrock · Azure · Ollama · DeepSeek · NVIDIA NIM and more.",
6
6
  "author": {
@@ -34,6 +34,7 @@
34
34
  "build:action": "ncc build src/action/index.ts -o action-dist --source-map",
35
35
  "build:cli:link": "pnpm run build:cli && pnpm link --global",
36
36
  "check:deps": "tsx scripts/check-banned-deps.ts",
37
+ "check:dts": "tsx scripts/check-shipped-types.ts",
37
38
  "codegen:catalog": "tsx tools/codegen-catalog.ts",
38
39
  "cli": "node dist/cli/index.js",
39
40
  "preview": "vite preview",