@juspay/neurolink 9.55.2 ā 9.55.4
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 +4 -0
- package/dist/cli/factories/sagemakerCommandFactory.js +17 -3
- package/dist/lib/server/voice/voiceWebSocketHandler.js +389 -367
- package/dist/lib/types/server.d.ts +10 -0
- package/dist/server/voice/voiceWebSocketHandler.js +389 -367
- package/dist/types/server.d.ts +10 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## [9.55.4](https://github.com/juspay/neurolink/compare/v9.55.3...v9.55.4) (2026-04-18)
|
|
2
|
+
|
|
3
|
+
## [9.55.3](https://github.com/juspay/neurolink/compare/v9.55.2...v9.55.3) (2026-04-18)
|
|
4
|
+
|
|
1
5
|
## [9.55.2](https://github.com/juspay/neurolink/compare/v9.55.1...v9.55.2) (2026-04-18)
|
|
2
6
|
|
|
3
7
|
## [9.55.1](https://github.com/juspay/neurolink/compare/v9.55.0...v9.55.1) (2026-04-18)
|
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
import chalk from "chalk";
|
|
2
2
|
import ora from "ora";
|
|
3
3
|
import inquirer from "inquirer";
|
|
4
|
-
|
|
4
|
+
async function loadSageMakerControl() {
|
|
5
|
+
try {
|
|
6
|
+
return await import(/* @vite-ignore */ "@aws-sdk/client-sagemaker");
|
|
7
|
+
}
|
|
8
|
+
catch (err) {
|
|
9
|
+
const e = err instanceof Error ? err : null;
|
|
10
|
+
if (e?.code === "ERR_MODULE_NOT_FOUND" &&
|
|
11
|
+
e.message.includes("client-sagemaker")) {
|
|
12
|
+
throw new Error('SageMaker setup requires "@aws-sdk/client-sagemaker". Install it with:\n pnpm add @aws-sdk/client-sagemaker', { cause: err });
|
|
13
|
+
}
|
|
14
|
+
throw err;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
5
17
|
import { logger } from "../../lib/utils/logger.js";
|
|
6
18
|
import { checkSageMakerConfiguration, getSageMakerConfig, getConfigurationSummary, clearConfigurationCache, } from "../../lib/providers/sagemaker/config.js";
|
|
7
19
|
import { AmazonSageMakerProvider } from "../../lib/providers/sagemaker/index.js";
|
|
@@ -148,8 +160,9 @@ export class SageMakerCommandFactory {
|
|
|
148
160
|
/**
|
|
149
161
|
* Validate secure configuration without exposing credentials
|
|
150
162
|
*/
|
|
151
|
-
static validateSecureConfiguration(secureConfig) {
|
|
163
|
+
static async validateSecureConfiguration(secureConfig) {
|
|
152
164
|
// Create temporary AWS SDK client with secure credentials
|
|
165
|
+
const { SageMakerClient } = await loadSageMakerControl();
|
|
153
166
|
const tempClient = new SageMakerClient({
|
|
154
167
|
region: secureConfig.region,
|
|
155
168
|
credentials: {
|
|
@@ -293,6 +306,7 @@ export class SageMakerCommandFactory {
|
|
|
293
306
|
// Use AWS SDK directly for better security and error handling
|
|
294
307
|
try {
|
|
295
308
|
const config = await getSageMakerConfig();
|
|
309
|
+
const { SageMakerClient, ListEndpointsCommand } = await loadSageMakerControl();
|
|
296
310
|
const sagemakerClient = new SageMakerClient({
|
|
297
311
|
region: config.region,
|
|
298
312
|
credentials: {
|
|
@@ -511,7 +525,7 @@ export class SageMakerCommandFactory {
|
|
|
511
525
|
// Clear cache and test configuration with secure config
|
|
512
526
|
clearConfigurationCache();
|
|
513
527
|
try {
|
|
514
|
-
this.validateSecureConfiguration(secureConfig); // Validate configuration is loadable
|
|
528
|
+
await this.validateSecureConfiguration(secureConfig); // Validate configuration is loadable
|
|
515
529
|
spinner.succeed("ā
Configuration validated successfully");
|
|
516
530
|
logger.always(chalk.green("\nš SageMaker setup complete!"));
|
|
517
531
|
logger.always(chalk.yellow("\nš” Next steps:"));
|