instar 1.3.376 → 1.3.378
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 +14 -2
- package/dist/commands/server.js.map +1 -1
- package/dist/core/MeshRpcClient.d.ts +8 -1
- package/dist/core/MeshRpcClient.d.ts.map +1 -1
- package/dist/core/MeshRpcClient.js +7 -2
- package/dist/core/MeshRpcClient.js.map +1 -1
- package/dist/core/WorkingSetPull.d.ts.map +1 -1
- package/dist/core/WorkingSetPull.js +16 -1
- package/dist/core/WorkingSetPull.js.map +1 -1
- package/dist/monitoring/SessionMonitor.d.ts +21 -5
- package/dist/monitoring/SessionMonitor.d.ts.map +1 -1
- package/dist/monitoring/SessionMonitor.js +65 -8
- package/dist/monitoring/SessionMonitor.js.map +1 -1
- package/package.json +1 -1
- package/src/data/builtin-manifest.json +2 -2
- package/src/data/state-coherence-registry.json +13 -1
- package/upgrades/1.3.377.md +48 -0
- package/upgrades/1.3.378.md +52 -0
- package/upgrades/sessionmonitor-ctx-ledger-persistence.eli16.md +5 -0
- package/upgrades/side-effects/mesh-cold-call-resilience.md +63 -0
- package/upgrades/side-effects/sessionmonitor-ctx-ledger-persistence.md +58 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/commands/server.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAaH,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAQ3D,OAAO,EAAE,eAAe,EAAiC,MAAM,iCAAiC,CAAC;AAuBjG,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAGvD,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAiG7D,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AA6JtD,UAAU,YAAY;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,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,EAAE,WAAW,EACzB,WAAW,CAAC,EAAE,WAAW,EACzB,iBAAiB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,EAGvE,UAAU,CAAC,EAAE,MAAM,OAAO,8BAA8B,EAAE,WAAW,GAAG,IAAI,EAK5E,qBAAqB,CAAC,EAAE,MAAM,OAAO,gCAAgC,EAAE,kBAAkB,GAAG,IAAI,GAC/F,IAAI,CAyUN;AA2lBD,wBAAsB,WAAW,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CA2qTtE;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
|
@@ -5497,6 +5497,10 @@ export async function startServer(options) {
|
|
|
5497
5497
|
}
|
|
5498
5498
|
: undefined,
|
|
5499
5499
|
sessionRecovery,
|
|
5500
|
+
// Persisted notify ledger: without it, every server restart
|
|
5501
|
+
// (update-train churn) forgot which dead sessions were already
|
|
5502
|
+
// announced and re-posted the same death once per boot.
|
|
5503
|
+
statePath: path.join(config.stateDir, 'state', 'session-monitor-ctx-notified.json'),
|
|
5500
5504
|
}, config.monitoring.sessionMonitor);
|
|
5501
5505
|
sessionMonitor.start();
|
|
5502
5506
|
console.log(pc.green(' Session Monitor enabled'));
|
|
@@ -10216,7 +10220,11 @@ export async function startServer(options) {
|
|
|
10216
10220
|
return new wsPullMod.WorkingSetPuller({
|
|
10217
10221
|
stateDir: config.stateDir,
|
|
10218
10222
|
send: async (cmd) => {
|
|
10219
|
-
|
|
10223
|
+
// 30s per-attempt: pull pages carry up to 1MiB and the 5s
|
|
10224
|
+
// default was measured aborting every cold tunnel hop
|
|
10225
|
+
// (live-matrix T1) — each abort costs a pending-pull
|
|
10226
|
+
// round instead of milliseconds.
|
|
10227
|
+
const r = await meshClient.send({ machineId: nominee, url }, cmd, 0, { timeoutMs: 30_000 });
|
|
10220
10228
|
if (!r.ok)
|
|
10221
10229
|
throw new Error(`mesh ${r.status}: ${r.reason ?? 'error'}`);
|
|
10222
10230
|
return r.result;
|
|
@@ -10335,7 +10343,11 @@ export async function startServer(options) {
|
|
|
10335
10343
|
if (!url)
|
|
10336
10344
|
return queue('owner unreachable (no known URL)');
|
|
10337
10345
|
try {
|
|
10338
|
-
|
|
10346
|
+
// 15s per-attempt: a cold tunnel hop was measured aborting the
|
|
10347
|
+
// 5s default on the FIRST call after idle (live-matrix T1) —
|
|
10348
|
+
// the ambiguous-outcome queue below then adds minutes of
|
|
10349
|
+
// latency to a mutation the warm link serves in <1s.
|
|
10350
|
+
const res = await meshClient.send({ machineId: ownerMachineId, url }, { type: 'commitment-mutate', payload }, 0, { timeoutMs: 15_000 });
|
|
10339
10351
|
if (res.ok && res.result && typeof res.result === 'object' && 'verdict' in res.result) {
|
|
10340
10352
|
await pendingMutationLedger.clear(payload.opKey);
|
|
10341
10353
|
return { kind: 'verdict', outcome: res.result };
|