instar 0.24.7 → 0.24.8
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/commands/server.d.ts.map +1 -1
- package/dist/commands/server.js +18 -0
- package/dist/commands/server.js.map +1 -1
- package/dist/lifeline/ServerSupervisor.d.ts +4 -0
- package/dist/lifeline/ServerSupervisor.d.ts.map +1 -1
- package/dist/lifeline/ServerSupervisor.js +9 -0
- package/dist/lifeline/ServerSupervisor.js.map +1 -1
- package/dist/lifeline/TelegramLifeline.d.ts.map +1 -1
- package/dist/lifeline/TelegramLifeline.js +9 -0
- package/dist/lifeline/TelegramLifeline.js.map +1 -1
- package/dist/monitoring/SessionRecovery.d.ts.map +1 -1
- package/dist/monitoring/SessionRecovery.js +2 -0
- package/dist/monitoring/SessionRecovery.js.map +1 -1
- package/dist/monitoring/SessionWatchdog.d.ts.map +1 -1
- package/dist/monitoring/SessionWatchdog.js +2 -0
- package/dist/monitoring/SessionWatchdog.js.map +1 -1
- package/package.json +1 -1
- package/src/data/builtin-manifest.json +3 -3
- package/upgrades/0.24.8.md +19 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/commands/server.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAyPH,UAAU,YAAY;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;2DACuD;IACvD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAskCD,wBAAsB,WAAW,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/commands/server.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAyPH,UAAU,YAAY;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;2DACuD;IACvD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAskCD,wBAAsB,WAAW,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CA+vFtE;AAED,wBAAsB,UAAU,CAAC,OAAO,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAsDzE;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,aAAa,CAAC,OAAO,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAuD5E"}
|
package/dist/commands/server.js
CHANGED
|
@@ -3517,6 +3517,24 @@ export async function startServer(options) {
|
|
|
3517
3517
|
alertTopicId,
|
|
3518
3518
|
});
|
|
3519
3519
|
}
|
|
3520
|
+
// Periodic housekeeping — calls orphaned cleanup methods every 6 hours.
|
|
3521
|
+
// These methods exist on their respective classes but were never scheduled.
|
|
3522
|
+
const HOUSEKEEPING_INTERVAL_MS = 6 * 60 * 60 * 1000;
|
|
3523
|
+
setInterval(() => {
|
|
3524
|
+
try {
|
|
3525
|
+
triageOrchestrator?.cleanup();
|
|
3526
|
+
}
|
|
3527
|
+
catch { /* best-effort */ }
|
|
3528
|
+
try {
|
|
3529
|
+
sessionRecovery?.cleanup();
|
|
3530
|
+
}
|
|
3531
|
+
catch { /* best-effort */ }
|
|
3532
|
+
try {
|
|
3533
|
+
messageStore?.cleanup();
|
|
3534
|
+
}
|
|
3535
|
+
catch { /* best-effort */ }
|
|
3536
|
+
console.log('[Housekeeping] Periodic cleanup completed');
|
|
3537
|
+
}, HOUSEKEEPING_INTERVAL_MS);
|
|
3520
3538
|
// Start tunnel AFTER server is listening (with retry on failure)
|
|
3521
3539
|
if (tunnel) {
|
|
3522
3540
|
tunnel.enableAutoReconnect();
|