instar 1.3.862 → 1.3.864
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 +11 -0
- package/dist/commands/server.js.map +1 -1
- package/dist/lifeline/TelegramLifeline.d.ts.map +1 -1
- package/dist/lifeline/TelegramLifeline.js +7 -15
- package/dist/lifeline/TelegramLifeline.js.map +1 -1
- package/dist/lifeline/queuedNotice.d.ts +31 -0
- package/dist/lifeline/queuedNotice.d.ts.map +1 -0
- package/dist/lifeline/queuedNotice.js +40 -0
- package/dist/lifeline/queuedNotice.js.map +1 -0
- package/package.json +1 -1
- package/src/data/builtin-manifest.json +3 -3
- package/upgrades/1.3.863.md +65 -0
- package/upgrades/1.3.864.md +23 -0
- package/upgrades/side-effects/lifeline-reconnect-notice.md +121 -0
- package/upgrades/side-effects/ws11-capability-refresh-after-queue-boot.md +78 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/commands/server.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AA0DH,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAU3D,OAAO,EAAE,eAAe,EAAiC,MAAM,iCAAiC,CAAC;AA0BjG,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAGvD,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AA8H7D,OAAO,KAAK,EAAW,oBAAoB,EAAe,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACjG,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAgFtD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,yBAAyB,CACvC,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,gBAAgB,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAC1C,OAAO,CAUT;AAyID,UAAU,YAA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IAAI,CAAC,CAuD5E"}
|
package/dist/commands/server.js
CHANGED
|
@@ -484,6 +484,9 @@ let _confirmLocalSessionPoolClaim = null;
|
|
|
484
484
|
// The custody engine (null = feature dark / gate failed / invariants violated —
|
|
485
485
|
// every consumer treats null as "refused → today's fall-through").
|
|
486
486
|
let _inboundQueue = null;
|
|
487
|
+
// Late-bound self-capacity refresh. The heartbeat writer is constructed before
|
|
488
|
+
// the durable inbound queue, whose live handle is one of the advertised fields.
|
|
489
|
+
let _refreshPoolHeartbeat = () => { };
|
|
487
490
|
// Module-level handle for the machine-coherence guard (machine-coherence-guard
|
|
488
491
|
// §6) so `GET /pool/machine-coherence` can read the sentinel constructed deep in
|
|
489
492
|
// the mesh peer-presence wiring. Null when the guard is dark (route 503s).
|
|
@@ -18173,6 +18176,7 @@ export async function startServer(options) {
|
|
|
18173
18176
|
.evaluateNobodyPolling(machinePoolRegistry.getCapacities().map((c) => ({ machineId: c.machineId, online: c.online, pollingActive: c.pollingActive })), false, new Date().toISOString())
|
|
18174
18177
|
.catch(() => { });
|
|
18175
18178
|
};
|
|
18179
|
+
_refreshPoolHeartbeat = refreshPool;
|
|
18176
18180
|
refreshPool();
|
|
18177
18181
|
const poolTimer = setInterval(refreshPool, 30_000);
|
|
18178
18182
|
if (typeof poolTimer.unref === 'function')
|
|
@@ -21094,6 +21098,13 @@ export async function startServer(options) {
|
|
|
21094
21098
|
const tickHandle = setInterval(() => { void _inboundQueue?.tick(); }, qcfg.drainTickMs);
|
|
21095
21099
|
tickHandle.unref?.();
|
|
21096
21100
|
console.log(pc.dim(` [inbound-queue] engine live — tick every ${qcfg.drainTickMs}ms, tenure ${_inboundQueue.currentTenure()}`));
|
|
21101
|
+
// WS1.1 capability truth is late-bound to `_inboundQueue`, but the
|
|
21102
|
+
// first self heartbeat is emitted earlier in boot while that handle
|
|
21103
|
+
// is still null. Refresh immediately now that durable receive is
|
|
21104
|
+
// genuinely live; otherwise peers retain `ws11DeliverReceive:false`
|
|
21105
|
+
// until a later beat and queue/fall through instead of forwarding
|
|
21106
|
+
// during the boot window (live CROSS-MACHINE finding, 2026-07-17).
|
|
21107
|
+
_refreshPoolHeartbeat();
|
|
21097
21108
|
// Survivor arm (spec §5.1, loss window 1): the machine that
|
|
21098
21109
|
// holds the routing role checks — once heartbeats have had a
|
|
21099
21110
|
// cycle to repopulate — for OFFLINE peers whose last capacity
|