@hasna/skills 0.5.5 → 0.5.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/bin/index.js +307 -307
- package/bin/mcp.js +181 -181
- package/bin/migrate.js +1 -1
- package/bin/server.js +120 -120
- package/bin/worker.js +120 -120
- package/dist/admin-contract.js +8 -8
- package/dist/index.js +17 -13
- package/dist/sdk/index.js +155 -155
- package/dist/storage.js +6 -2
- package/package.json +1 -1
package/dist/storage.js
CHANGED
|
@@ -1031,11 +1031,15 @@ function normalizeHeaders(headers) {
|
|
|
1031
1031
|
}
|
|
1032
1032
|
return result;
|
|
1033
1033
|
}
|
|
1034
|
+
function encodeAwsUriComponent(value) {
|
|
1035
|
+
return encodeURIComponent(value).replace(/[!'()*]/g, (char) => `%${char.charCodeAt(0).toString(16).toUpperCase()}`);
|
|
1036
|
+
}
|
|
1034
1037
|
function canonicalizeQuery(params) {
|
|
1035
|
-
|
|
1038
|
+
const compare = (a, b) => a < b ? -1 : a > b ? 1 : 0;
|
|
1039
|
+
return [...params.entries()].map(([key, value]) => [encodeAwsUriComponent(key), encodeAwsUriComponent(value)]).sort(([aKey, aValue], [bKey, bValue]) => compare(aKey, bKey) || compare(aValue, bValue)).map(([key, value]) => `${key}=${value}`).join("&");
|
|
1036
1040
|
}
|
|
1037
1041
|
function encodeUriPath(pathname) {
|
|
1038
|
-
return pathname.split("/").map((segment) =>
|
|
1042
|
+
return pathname.split("/").map((segment) => encodeAwsUriComponent(decodeURIComponent(segment))).join("/");
|
|
1039
1043
|
}
|
|
1040
1044
|
function toAmzDate(date) {
|
|
1041
1045
|
return date.toISOString().replace(/[:-]|\.\d{3}/g, "");
|