@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/{chunk-5P7TAD2J.js → chunk-DR3WTGZH.js} +3 -3
- package/dist/{chunk-5P7TAD2J.js.map → chunk-DR3WTGZH.js.map} +1 -1
- package/dist/cli.js +1 -1
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/templates/storefront/package-lock.json +48 -48
- package/templates/storefront/package.json +2 -2
- package/templates/storefront/pnpm-lock.yaml +65 -63
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -91,7 +91,7 @@ import {
|
|
|
91
91
|
verifyStorefront,
|
|
92
92
|
withOcsListSummary,
|
|
93
93
|
withTemplateResellerId
|
|
94
|
-
} from "./chunk-
|
|
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
|
-
...
|
|
744
|
+
...sessionToken ? { sessionToken } : {},
|
|
740
745
|
region,
|
|
741
746
|
service: "bedrock",
|
|
742
747
|
// See MAX_ATTEMPTS. aws4fetch's retry loop cannot be cancelled, so this
|