@juspay/neurolink 7.53.4 → 7.54.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 +8 -0
- package/dist/cli/commands/config.d.ts +18 -18
- package/dist/index.d.ts +1 -1
- package/dist/lib/agent/directTools.d.ts +3 -3
- package/dist/lib/index.d.ts +1 -1
- package/dist/lib/neurolink.js +2 -74
- package/dist/lib/providers/sagemaker/language-model.d.ts +2 -2
- package/dist/lib/types/common.d.ts +6 -5
- package/dist/lib/types/modelTypes.d.ts +31 -14
- package/dist/lib/types/tools.d.ts +16 -1
- package/dist/lib/types/utilities.d.ts +131 -0
- package/dist/lib/types/utilities.js +1 -1
- package/dist/lib/utils/errorHandling.d.ts +2 -28
- package/dist/lib/utils/errorHandling.js +1 -20
- package/dist/lib/utils/logger.d.ts +23 -23
- package/dist/lib/utils/logger.js +35 -0
- package/dist/lib/utils/modelRouter.d.ts +1 -17
- package/dist/lib/utils/optionsConversion.d.ts +0 -5
- package/dist/lib/utils/optionsUtils.d.ts +1 -70
- package/dist/lib/utils/parameterValidation.d.ts +9 -22
- package/dist/lib/utils/performance.d.ts +1 -13
- package/dist/lib/utils/promptRedaction.d.ts +1 -8
- package/dist/lib/utils/providerUtils.d.ts +2 -10
- package/dist/lib/utils/redis.d.ts +1 -1
- package/dist/lib/utils/redis.js +0 -1
- package/dist/lib/utils/retryHandler.d.ts +1 -8
- package/dist/neurolink.js +2 -74
- package/dist/providers/sagemaker/language-model.d.ts +2 -2
- package/dist/types/common.d.ts +6 -5
- package/dist/types/modelTypes.d.ts +17 -0
- package/dist/types/tools.d.ts +16 -1
- package/dist/types/utilities.d.ts +131 -0
- package/dist/types/utilities.js +1 -1
- package/dist/utils/errorHandling.d.ts +2 -28
- package/dist/utils/errorHandling.js +1 -20
- package/dist/utils/logger.d.ts +23 -23
- package/dist/utils/logger.js +35 -0
- package/dist/utils/modelRouter.d.ts +1 -17
- package/dist/utils/optionsConversion.d.ts +0 -5
- package/dist/utils/optionsUtils.d.ts +1 -70
- package/dist/utils/parameterValidation.d.ts +9 -22
- package/dist/utils/performance.d.ts +1 -13
- package/dist/utils/promptRedaction.d.ts +1 -8
- package/dist/utils/providerUtils.d.ts +2 -10
- package/dist/utils/redis.d.ts +1 -1
- package/dist/utils/redis.js +0 -1
- package/dist/utils/retryHandler.d.ts +1 -8
- package/package.json +1 -1
|
@@ -2,19 +2,7 @@
|
|
|
2
2
|
* Performance measurement and memory management utilities
|
|
3
3
|
* Part of Sub-phase 3.3.1-3.3.2 optimization efforts
|
|
4
4
|
*/
|
|
5
|
-
|
|
6
|
-
startTime: number;
|
|
7
|
-
endTime?: number;
|
|
8
|
-
duration?: number;
|
|
9
|
-
memoryStart: NodeJS.MemoryUsage;
|
|
10
|
-
memoryEnd?: NodeJS.MemoryUsage;
|
|
11
|
-
memoryDelta?: {
|
|
12
|
-
rss: number;
|
|
13
|
-
heapTotal: number;
|
|
14
|
-
heapUsed: number;
|
|
15
|
-
external: number;
|
|
16
|
-
};
|
|
17
|
-
}
|
|
5
|
+
import type { PerformanceMetrics } from "../types/analytics.js";
|
|
18
6
|
/**
|
|
19
7
|
* Performance measurement utility for tracking operations
|
|
20
8
|
*/
|
|
@@ -2,14 +2,7 @@
|
|
|
2
2
|
* Prompt redaction utilities for safe logging
|
|
3
3
|
* Provides consistent prompt masking across NeuroLink components
|
|
4
4
|
*/
|
|
5
|
-
|
|
6
|
-
/** Maximum length of redacted prompt */
|
|
7
|
-
maxLength?: number;
|
|
8
|
-
/** Whether to show word count */
|
|
9
|
-
showWordCount?: boolean;
|
|
10
|
-
/** Mask character to use for redaction */
|
|
11
|
-
maskChar?: string;
|
|
12
|
-
}
|
|
5
|
+
import type { PromptRedactionOptions } from "../types/utilities.js";
|
|
13
6
|
/**
|
|
14
7
|
* Redact a prompt for safe logging
|
|
15
8
|
* Truncates to maxLength and optionally shows word count
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { ProviderError } from "../types/
|
|
1
|
+
import type { ProviderError } from "../types/providers.js";
|
|
2
|
+
import type { EnvVarValidationResult } from "../types/utilities.js";
|
|
2
3
|
/**
|
|
3
4
|
* Get the best available provider based on real-time availability checks
|
|
4
5
|
* Enhanced version consolidated from providerUtils-fixed.ts
|
|
@@ -6,15 +7,6 @@ import type { ProviderError } from "../types/index.js";
|
|
|
6
7
|
* @returns The best provider name to use
|
|
7
8
|
*/
|
|
8
9
|
export declare function getBestProvider(requestedProvider?: string): Promise<string>;
|
|
9
|
-
/**
|
|
10
|
-
* Validation results for environment variables
|
|
11
|
-
*/
|
|
12
|
-
export interface EnvVarValidationResult {
|
|
13
|
-
isValid: boolean;
|
|
14
|
-
missingVars: string[];
|
|
15
|
-
invalidVars: string[];
|
|
16
|
-
warnings: string[];
|
|
17
|
-
}
|
|
18
10
|
/**
|
|
19
11
|
* Validate environment variable values for a provider
|
|
20
12
|
* Addresses GitHub Copilot comment about adding environment variable validation
|
package/dist/utils/redis.d.ts
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Helper functions for Redis storage operations
|
|
4
4
|
*/
|
|
5
5
|
import { createClient } from "redis";
|
|
6
|
-
type RedisClient = ReturnType<typeof createClient>;
|
|
7
6
|
import type { RedisStorageConfig, RedisConversationObject } from "../types/conversation.js";
|
|
7
|
+
type RedisClient = ReturnType<typeof createClient>;
|
|
8
8
|
/**
|
|
9
9
|
* Creates a Redis client with the provided configuration
|
|
10
10
|
*/
|
package/dist/utils/redis.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Retry and resilience utilities for NeuroLink
|
|
3
3
|
* Part of Sub-phase 3.3.3 - Edge Case Handling
|
|
4
4
|
*/
|
|
5
|
+
import type { RetryOptions } from "../types/utilities.js";
|
|
5
6
|
/**
|
|
6
7
|
* Calculate exponential backoff delay with jitter
|
|
7
8
|
* @param attempt - Current attempt number (1-based)
|
|
@@ -12,14 +13,6 @@
|
|
|
12
13
|
* @returns Calculated delay in milliseconds
|
|
13
14
|
*/
|
|
14
15
|
export declare function calculateBackoffDelay(attempt: number, initialDelay?: number, multiplier?: number, maxDelay?: number, addJitter?: boolean): number;
|
|
15
|
-
export interface RetryOptions {
|
|
16
|
-
maxAttempts?: number;
|
|
17
|
-
initialDelay?: number;
|
|
18
|
-
maxDelay?: number;
|
|
19
|
-
backoffMultiplier?: number;
|
|
20
|
-
retryCondition?: (error: unknown) => boolean;
|
|
21
|
-
onRetry?: (attempt: number, error: unknown) => void;
|
|
22
|
-
}
|
|
23
16
|
/**
|
|
24
17
|
* Error types that are typically retryable
|
|
25
18
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@juspay/neurolink",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.54.0",
|
|
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",
|