@mclawnet/agent 0.6.31 → 0.6.33
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/__tests__/hub-connection-preserve-recovery.test.d.ts +2 -0
- package/dist/__tests__/hub-connection-preserve-recovery.test.d.ts.map +1 -0
- package/dist/{chunk-U5CD3OZ3.js → chunk-QPLG5WHL.js} +4 -5
- package/dist/chunk-QPLG5WHL.js.map +1 -0
- package/dist/hub-connection.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/start.js +1 -1
- package/package.json +5 -5
- package/dist/chunk-U5CD3OZ3.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hub-connection-preserve-recovery.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/hub-connection-preserve-recovery.test.ts"],"names":[],"mappings":""}
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
MAX_RECONNECT_MS,
|
|
16
16
|
WS_CLOSE_INVALID_TOKEN
|
|
17
17
|
} from "@mclawnet/shared";
|
|
18
|
-
import { listRecoverableSwarms, recoverSwarm, listRoles, loadRole, listRecoverableSwarmIds,
|
|
18
|
+
import { listRecoverableSwarms, recoverSwarm, listRoles, loadRole, listRecoverableSwarmIds, listTemplates, loadTemplate } from "@mclawnet/swarm";
|
|
19
19
|
|
|
20
20
|
// src/fs-handler.ts
|
|
21
21
|
import { readdir } from "fs/promises";
|
|
@@ -1126,10 +1126,9 @@ var HubConnection = class {
|
|
|
1126
1126
|
const allIds = listRecoverableSwarmIds();
|
|
1127
1127
|
const snapshots = listRecoverableSwarms();
|
|
1128
1128
|
const recoverableIds = new Set(snapshots.map((s) => s.id));
|
|
1129
|
-
for (const {
|
|
1129
|
+
for (const { swarmId } of allIds) {
|
|
1130
1130
|
if (!recoverableIds.has(swarmId)) {
|
|
1131
|
-
|
|
1132
|
-
log2.info({ swarmId }, "cleaned up non-recoverable swarm snapshot");
|
|
1131
|
+
log2.info({ swarmId }, "skipping non-recoverable swarm snapshot (kept on disk)");
|
|
1133
1132
|
}
|
|
1134
1133
|
}
|
|
1135
1134
|
for (const snap of snapshots) {
|
|
@@ -3341,4 +3340,4 @@ export {
|
|
|
3341
3340
|
FsBridge,
|
|
3342
3341
|
startAgent
|
|
3343
3342
|
};
|
|
3344
|
-
//# sourceMappingURL=chunk-
|
|
3343
|
+
//# sourceMappingURL=chunk-QPLG5WHL.js.map
|