@mastra/voice-aws-nova-sonic 0.2.5 → 0.2.6

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/dist/index.cjs CHANGED
@@ -3,7 +3,7 @@ let stream = require("stream");
3
3
  let _aws_sdk_client_bedrock_runtime = require("@aws-sdk/client-bedrock-runtime");
4
4
  let _smithy_node_http_handler = require("@smithy/node-http-handler");
5
5
  let _aws_sdk_credential_provider_node = require("@aws-sdk/credential-provider-node");
6
- //#region ../../packages/_internal-core/dist/logger/index.js
6
+ // ../../packages/_internal-core/dist/logger/index.js
7
7
  /**
8
8
  * Export a tracked exception through the adapter sink, mirroring the
9
9
  * DualLogger dual-write shape (`errorId`/`domain`/`category`/`details`/`cause`
@@ -236,8 +236,7 @@ var ConsoleLogger = class ConsoleLogger extends MastraLogger {
236
236
  };
237
237
  }
238
238
  };
239
- //#endregion
240
- //#region ../../packages/_internal-core/dist/base/index.js
239
+ // ../../packages/_internal-core/dist/base/index.js
241
240
  var MastraBase = class {
242
241
  component = RegisteredLogger.LLM;
243
242
  logger;
@@ -271,8 +270,7 @@ var MastraBase = class {
271
270
  this.logger = "child" in logger && typeof logger.child === "function" ? logger.child({ component: this.component }) : logger;
272
271
  }
273
272
  };
274
- //#endregion
275
- //#region ../../packages/_internals/voice/dist/aisdk-C_K-VCwq.js
273
+ // ../../packages/_internals/voice/dist/aisdk-c08VRfTf.js
276
274
  var MastraVoice = class extends MastraBase {
277
275
  listeningModel;
278
276
  speechModel;
@@ -376,8 +374,7 @@ var MastraVoice = class extends MastraBase {
376
374
  return Promise.resolve({ enabled: false });
377
375
  }
378
376
  };
379
- //#endregion
380
- //#region src/types.ts
377
+ // src/types.ts
381
378
  /**
382
379
  * Error codes for Nova Sonic specific errors
383
380
  */
@@ -403,8 +400,7 @@ let NovaSonicErrorCode = /* @__PURE__ */ function(NovaSonicErrorCode) {
403
400
  NovaSonicErrorCode["UNKNOWN_ERROR"] = "unknown_error";
404
401
  return NovaSonicErrorCode;
405
402
  }({});
406
- //#endregion
407
- //#region src/utils/errors.ts
403
+ // src/utils/errors.ts
408
404
  /**
409
405
  * Helper class for consistent error handling across Nova Sonic voice integration
410
406
  */
@@ -428,8 +424,7 @@ var NovaSonicError = class extends Error {
428
424
  };
429
425
  }
430
426
  };
431
- //#endregion
432
- //#region src/utils/auth.ts
427
+ // src/utils/auth.ts
433
428
  /**
434
429
  * Get AWS credentials from various sources
435
430
  */
@@ -448,8 +443,7 @@ async function getAwsCredentials(explicitCredentials, debug) {
448
443
  throw new NovaSonicError("authentication_failed", `Failed to load AWS credentials: ${error instanceof Error ? error.message : "Unknown error"}`, error);
449
444
  }
450
445
  }
451
- //#endregion
452
- //#region src/index.ts
446
+ // src/index.ts
453
447
  /**
454
448
  * Default configuration values
455
449
  */
@@ -848,7 +842,6 @@ var NovaSonicVoice = class extends MastraVoice {
848
842
  pendingResolvers.splice(index, 1);
849
843
  resolve();
850
844
  }
851
- return;
852
845
  }
853
846
  });
854
847
  });
@@ -1775,7 +1768,6 @@ var NovaSonicVoice = class extends MastraVoice {
1775
1768
  if (this.debug) console.info("[NovaSonicVoice]", ...args);
1776
1769
  }
1777
1770
  };
1778
- //#endregion
1779
1771
  exports.NovaSonicError = NovaSonicError;
1780
1772
  exports.NovaSonicErrorCode = NovaSonicErrorCode;
1781
1773
  exports.NovaSonicVoice = NovaSonicVoice;