instar 1.3.331 → 1.3.332
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 +12 -0
- package/dist/commands/server.js.map +1 -1
- package/dist/core/LiveTailSource.d.ts +19 -0
- package/dist/core/LiveTailSource.d.ts.map +1 -1
- package/dist/core/LiveTailSource.js +21 -0
- package/dist/core/LiveTailSource.js.map +1 -1
- package/package.json +1 -1
- package/src/data/builtin-manifest.json +2 -2
- package/upgrades/1.3.332.md +42 -0
- package/upgrades/side-effects/livetail-stale-signal.md +43 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/commands/server.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AA6SH,UAAU,YAAY;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;2DACuD;IACvD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAuxDD,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;AA6SH,UAAU,YAAY;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;2DACuD;IACvD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAuxDD,wBAAsB,WAAW,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CA4uRtE;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
|
@@ -9060,6 +9060,18 @@ export async function startServer(options) {
|
|
|
9060
9060
|
// topics with no new messages instead of rebuilding every topic's
|
|
9061
9061
|
// history every tick (the 2026-06-05 event-loop-stall fix).
|
|
9062
9062
|
getTopicVersion: (topic) => telegram.getTopicContentVersion(Number(topic)),
|
|
9063
|
+
// Eternal Sentinel condition 4 (P19): a topic whose standby copy has
|
|
9064
|
+
// been stale past the threshold surfaces ONCE per episode through the
|
|
9065
|
+
// standard degradation channel (housekeeping — never a user ping).
|
|
9066
|
+
reportStaleStandby: ({ topic, failingForMs, consecutiveFailures }) => {
|
|
9067
|
+
DegradationReporter.getInstance().report({
|
|
9068
|
+
feature: 'LiveTail.standbyFreshness',
|
|
9069
|
+
primary: 'Standby machine receives a fresh copy of each conversation tail',
|
|
9070
|
+
fallback: `Topic ${telegram.getTopicName?.(Number(topic)) ?? topic}'s standby copy is stale (flushes failing ~${Math.round(failingForMs / 60_000)}min, ${consecutiveFailures} consecutive); retries continue on capped backoff`,
|
|
9071
|
+
reason: 'Live-tail flushes to the standby peer are persistently rejected or unreachable',
|
|
9072
|
+
impact: 'A failover during this window would resume that conversation from an older tail (bounded by the outage start).',
|
|
9073
|
+
});
|
|
9074
|
+
},
|
|
9063
9075
|
transport: sendTransport,
|
|
9064
9076
|
logger: (m) => console.log(pc.dim(m)),
|
|
9065
9077
|
});
|