@wraps.dev/cli 2.23.2 → 2.23.3
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/api-lambda.zip +0 -0
- package/dist/cli.js +10 -3
- package/dist/cli.js.map +1 -1
- package/dist/console/assets/index-DTBHdBwz.css +1 -0
- package/dist/console/index.html +2 -2
- package/dist/lambda/event-processor/.bundled +1 -1
- package/dist/lambda/inbound-processor/.bundled +1 -1
- package/dist/lambda/sms-event-processor/.bundled +1 -1
- package/dist/selfhost-migrations/0059_message_send_claimed_at.sql +1 -0
- package/dist/selfhost-migrations/CLAUDE.md +49 -0
- package/dist/selfhost-migrations/meta/0055_snapshot.json +39 -3
- package/dist/selfhost-migrations/meta/0056_snapshot.json +39 -3
- package/dist/selfhost-migrations/meta/0057_snapshot.json +34 -2
- package/dist/selfhost-migrations/meta/0059_snapshot.json +6764 -0
- package/dist/selfhost-migrations/meta/_journal.json +7 -0
- package/package.json +5 -5
- package/dist/console/assets/index-CXXcMD9d.css +0 -1
- /package/dist/console/assets/{index-e_Wzcxes.js → index-BiEvZUP2.js} +0 -0
package/dist/api-lambda.zip
CHANGED
|
Binary file
|
package/dist/cli.js
CHANGED
|
@@ -5583,7 +5583,7 @@ __export(metadata_exports, {
|
|
|
5583
5583
|
});
|
|
5584
5584
|
import { randomBytes } from "crypto";
|
|
5585
5585
|
import { existsSync as existsSync5 } from "fs";
|
|
5586
|
-
import { readFile as readFile2, writeFile as writeFile3 } from "fs/promises";
|
|
5586
|
+
import { chmod as chmod2, readFile as readFile2, writeFile as writeFile3 } from "fs/promises";
|
|
5587
5587
|
import { join as join6 } from "path";
|
|
5588
5588
|
function getConnectionsDir() {
|
|
5589
5589
|
return join6(getWrapsDir(), "connections");
|
|
@@ -5695,6 +5695,7 @@ async function saveConnectionMetadataLocal(metadata) {
|
|
|
5695
5695
|
const metadataPath = getMetadataPath(metadata.accountId, metadata.region);
|
|
5696
5696
|
const content = JSON.stringify(metadata, null, 2);
|
|
5697
5697
|
await writeFile3(metadataPath, content, "utf-8");
|
|
5698
|
+
await chmod2(metadataPath, 384);
|
|
5698
5699
|
}
|
|
5699
5700
|
async function saveConnectionMetadata(metadata) {
|
|
5700
5701
|
await ensureConnectionsDir();
|
|
@@ -5702,6 +5703,7 @@ async function saveConnectionMetadata(metadata) {
|
|
|
5702
5703
|
try {
|
|
5703
5704
|
const content = JSON.stringify(metadata, null, 2);
|
|
5704
5705
|
await writeFile3(metadataPath, content, "utf-8");
|
|
5706
|
+
await chmod2(metadataPath, 384);
|
|
5705
5707
|
} catch (error) {
|
|
5706
5708
|
console.error(
|
|
5707
5709
|
"Error saving connection metadata:",
|
|
@@ -8038,7 +8040,11 @@ async function createMailManagerArchive(config2) {
|
|
|
8038
8040
|
);
|
|
8039
8041
|
archiveArn = getResult.ArchiveArn;
|
|
8040
8042
|
}
|
|
8041
|
-
} catch {
|
|
8043
|
+
} catch (error) {
|
|
8044
|
+
const detail = error instanceof Error ? error.message : String(error);
|
|
8045
|
+
throw new Error(
|
|
8046
|
+
`Failed to list existing Mail Manager archives in ${region}: ${detail}`
|
|
8047
|
+
);
|
|
8042
8048
|
}
|
|
8043
8049
|
if (!archiveId) {
|
|
8044
8050
|
for (let attempt = 1; attempt <= MAX_NAME_ATTEMPTS; attempt++) {
|
|
@@ -8064,7 +8070,8 @@ async function createMailManagerArchive(config2) {
|
|
|
8064
8070
|
}
|
|
8065
8071
|
break;
|
|
8066
8072
|
} catch (error) {
|
|
8067
|
-
|
|
8073
|
+
const isConflict = error instanceof Error && (error.name === "ConflictException" || error.message.includes("ConflictException"));
|
|
8074
|
+
if (isConflict && attempt < MAX_NAME_ATTEMPTS) {
|
|
8068
8075
|
continue;
|
|
8069
8076
|
}
|
|
8070
8077
|
throw error;
|