@carrierllc/mcp 0.13.89 → 0.13.91

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/cli.js CHANGED
@@ -45,7 +45,7 @@ import {
45
45
  verifyStorefront,
46
46
  walletScreen,
47
47
  which
48
- } from "./chunk-5P7TAD2J.js";
48
+ } from "./chunk-DR3WTGZH.js";
49
49
  import {
50
50
  copyTree,
51
51
  exists,
package/dist/index.js CHANGED
@@ -91,7 +91,7 @@ import {
91
91
  verifyStorefront,
92
92
  withOcsListSummary,
93
93
  withTemplateResellerId
94
- } from "./chunk-5P7TAD2J.js";
94
+ } from "./chunk-DR3WTGZH.js";
95
95
  import "./chunk-SHKKVIIA.js";
96
96
 
97
97
  // src/index.ts
@@ -730,13 +730,18 @@ var BedrockError = class extends Error {
730
730
  }
731
731
  status;
732
732
  };
733
+ function signingSessionToken(creds) {
734
+ if (!creds.sessionToken) return void 0;
735
+ return creds.accessKeyId.startsWith("ASIA") ? creds.sessionToken : void 0;
736
+ }
733
737
  function client(creds) {
734
738
  const region = creds.region ?? DEFAULT_BEDROCK_REGION;
739
+ const sessionToken = signingSessionToken(creds);
735
740
  return {
736
741
  aws: new AwsClient({
737
742
  accessKeyId: creds.accessKeyId,
738
743
  secretAccessKey: creds.secretAccessKey,
739
- ...creds.sessionToken ? { sessionToken: creds.sessionToken } : {},
744
+ ...sessionToken ? { sessionToken } : {},
740
745
  region,
741
746
  service: "bedrock",
742
747
  // See MAX_ATTEMPTS. aws4fetch's retry loop cannot be cancelled, so this