instar 1.3.211 → 1.3.213
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 +13 -0
- package/dist/commands/server.js.map +1 -1
- package/dist/core/SessionManager.d.ts +24 -0
- package/dist/core/SessionManager.d.ts.map +1 -1
- package/dist/core/SessionManager.js +79 -0
- package/dist/core/SessionManager.js.map +1 -1
- package/dist/core/SessionRecoveryChannel.d.ts +103 -0
- package/dist/core/SessionRecoveryChannel.d.ts.map +1 -0
- package/dist/core/SessionRecoveryChannel.js +158 -0
- package/dist/core/SessionRecoveryChannel.js.map +1 -0
- package/dist/core/SessionRecoveryConsumer.d.ts +60 -0
- package/dist/core/SessionRecoveryConsumer.d.ts.map +1 -0
- package/dist/core/SessionRecoveryConsumer.js +110 -0
- package/dist/core/SessionRecoveryConsumer.js.map +1 -0
- package/dist/core/StuckInputSentinel.d.ts +59 -2
- package/dist/core/StuckInputSentinel.d.ts.map +1 -1
- package/dist/core/StuckInputSentinel.js +127 -1
- package/dist/core/StuckInputSentinel.js.map +1 -1
- package/dist/core/types.d.ts +23 -0
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/types.js.map +1 -1
- package/dist/lifeline/TelegramLifeline.d.ts +1 -0
- package/dist/lifeline/TelegramLifeline.d.ts.map +1 -1
- package/dist/lifeline/TelegramLifeline.js +28 -0
- package/dist/lifeline/TelegramLifeline.js.map +1 -1
- package/dist/monitoring/StaleSessionBackstop.d.ts +15 -0
- package/dist/monitoring/StaleSessionBackstop.d.ts.map +1 -1
- package/dist/monitoring/StaleSessionBackstop.js +16 -4
- package/dist/monitoring/StaleSessionBackstop.js.map +1 -1
- package/package.json +1 -1
- package/src/data/builtin-manifest.json +4 -4
- package/upgrades/1.3.212.md +65 -0
- package/upgrades/1.3.213.md +50 -0
- package/upgrades/side-effects/codex-wedge-self-recovery.md +162 -0
- package/upgrades/side-effects/codex-wedged-job-cpu-detection.md +118 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/commands/server.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/commands/server.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AA0SH,UAAU,YAAY;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;2DACuD;IACvD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AA+wDD,wBAAsB,WAAW,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CA68PtE;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
|
@@ -20,6 +20,7 @@ import { closeAllSqlite } from '../core/SqliteRegistry.js';
|
|
|
20
20
|
import { SessionManager } from '../core/SessionManager.js';
|
|
21
21
|
import { StateManager } from '../core/StateManager.js';
|
|
22
22
|
import { StuckInputSentinel } from '../core/StuckInputSentinel.js';
|
|
23
|
+
import { SessionRecoveryChannel } from '../core/SessionRecoveryChannel.js';
|
|
23
24
|
import { JobScheduler } from '../scheduler/JobScheduler.js';
|
|
24
25
|
import { IntegrationGate } from '../scheduler/IntegrationGate.js';
|
|
25
26
|
import { JobRunHistory } from '../scheduler/JobRunHistory.js';
|
|
@@ -4105,8 +4106,18 @@ export async function startServer(options) {
|
|
|
4105
4106
|
// StuckInputSentinel — persistent, restart-safe recovery for tmux prompts
|
|
4106
4107
|
// that hold text but never submitted Enter. Complements the in-process
|
|
4107
4108
|
// verifyInjection timers (PR #159) which die when the server crashes.
|
|
4109
|
+
//
|
|
4110
|
+
// Codex session-wedge self-recovery (dark by default): when enabled, the
|
|
4111
|
+
// sentinel escalates PAST the keypress ladder by requesting a tier-C recovery
|
|
4112
|
+
// (server restart + replay) via SessionRecoveryChannel — executed by the
|
|
4113
|
+
// lifeline-process consumer (SessionRecoveryConsumer). See
|
|
4114
|
+
// docs/specs/CODEX-SESSION-WEDGE-SELF-RECOVERY.md.
|
|
4115
|
+
const codexWedgeCfg = config.monitoring?.codexWedgeRecovery;
|
|
4108
4116
|
const stuckInputSentinel = new StuckInputSentinel(sessionManager, {
|
|
4109
4117
|
stateDir: config.stateDir,
|
|
4118
|
+
recoveryChannel: new SessionRecoveryChannel(config.stateDir),
|
|
4119
|
+
escalationEnabled: codexWedgeCfg?.enabled ?? false,
|
|
4120
|
+
escalationTimeoutTicks: codexWedgeCfg?.escalationTimeoutTicks,
|
|
4110
4121
|
});
|
|
4111
4122
|
stuckInputSentinel.start();
|
|
4112
4123
|
// Proactive resume heartbeat: every 60s, update the topic→UUID mapping
|
|
@@ -8484,6 +8495,8 @@ export async function startServer(options) {
|
|
|
8484
8495
|
transcriptTailHash: tailHash,
|
|
8485
8496
|
mainProcessActive: sessionManager.hasActiveProcesses(session.tmuxSession),
|
|
8486
8497
|
idleStateToken: hash(frame),
|
|
8498
|
+
descendantCpuSeconds: sessionManager.descendantCpuSeconds(session.tmuxSession),
|
|
8499
|
+
isJobSession: !!session.jobSlug,
|
|
8487
8500
|
};
|
|
8488
8501
|
},
|
|
8489
8502
|
raiseAttention: makeAttentionPoster({ port: config.port, authToken: config.authToken ?? '' }),
|