instar 1.3.558 → 1.3.559
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 +19 -1
- package/dist/commands/server.js.map +1 -1
- package/dist/core/AutonomousSessions.d.ts +12 -0
- package/dist/core/AutonomousSessions.d.ts.map +1 -1
- package/dist/core/AutonomousSessions.js +23 -0
- package/dist/core/AutonomousSessions.js.map +1 -1
- package/dist/monitoring/ReapNotifier.d.ts +19 -0
- package/dist/monitoring/ReapNotifier.d.ts.map +1 -1
- package/dist/monitoring/ReapNotifier.js +65 -3
- package/dist/monitoring/ReapNotifier.js.map +1 -1
- package/package.json +1 -1
- package/src/data/builtin-manifest.json +2 -2
- package/upgrades/1.3.559.md +48 -0
- package/upgrades/side-effects/honest-session-recycle.md +140 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/commands/server.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAgCH,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAS3D,OAAO,EAAE,eAAe,EAAiC,MAAM,iCAAiC,CAAC;AAuBjG,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAGvD,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAiH7D,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAsBtD;;;;;;;;;;;;;;;;;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,YAAY;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;2DACuD;IACvD,QAAQ,CAAC,EAAE,OAAO,CAA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,CAAC,EAAE,OAAO,CAAC;CACpB;AAy3CD,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,eAAe,EACzB,cAAc,EAAE,cAAc,EAC9B,YAAY,CAAC,EAAE,YAAY,EAC3B,WAAW,CAAC,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,EAKhG,mBAAmB,CAAC,EAAE,MAAM,MAAM,GAAG,IAAI,GAAG,SAAS,GACpD,IAAI,CA8eN;AA2lBD,wBAAsB,WAAW,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CA02btE;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
|
@@ -22,7 +22,7 @@ import { TopicProfileOrchestrator, resolvedToApplied, } from '../core/TopicProfi
|
|
|
22
22
|
import { CodexResumeMap } from '../core/CodexResumeMap.js';
|
|
23
23
|
import { paneIdleWithEmptyInput } from '../core/ModelSwapService.js';
|
|
24
24
|
import { escalatedModelIds, normalizeTierEscalationConfig } from '../core/ModelTierEscalation.js';
|
|
25
|
-
import { activeAutonomousJobs } from '../core/AutonomousSessions.js';
|
|
25
|
+
import { activeAutonomousJobs, autonomousRunRemainingForTopic } from '../core/AutonomousSessions.js';
|
|
26
26
|
import { TopicProfileTransferCarrier, createTopicProfilePullHandler } from '../core/TopicProfileTransferCarrier.js';
|
|
27
27
|
import { closeAllSqlite } from '../core/SqliteRegistry.js';
|
|
28
28
|
import { SessionManager } from '../core/SessionManager.js';
|
|
@@ -6049,6 +6049,24 @@ export async function startServer(options) {
|
|
|
6049
6049
|
quietHoursEndAt: (now) => notificationBatcher.quietHoursEndAt(now),
|
|
6050
6050
|
summaryReleaseAt: (now) => notificationBatcher.nextSummaryReleaseAt(now),
|
|
6051
6051
|
resumeQueuedFor: (tmuxSession) => resumeQueuedForSession(tmuxSession),
|
|
6052
|
+
// Honest-recycle (honest-session-recycle-spec): tell ReapNotifier whether
|
|
6053
|
+
// this session's topic has an ACTIVE autonomous run (and how long is left),
|
|
6054
|
+
// so an age-limit RECYCLE of a still-active run reads as a continuation
|
|
6055
|
+
// instead of a "reached its maximum allowed runtime" death. Read here at
|
|
6056
|
+
// the wiring layer (which has the autonomous state) — SessionManager's kill
|
|
6057
|
+
// chokepoint is untouched. Returns null ⇒ legacy death copy (safe default).
|
|
6058
|
+
autonomousRunActiveFor: (tmuxSession) => {
|
|
6059
|
+
try {
|
|
6060
|
+
const t = telegram?.getTopicForSession(tmuxSession);
|
|
6061
|
+
if (t == null)
|
|
6062
|
+
return null;
|
|
6063
|
+
return autonomousRunRemainingForTopic(config.stateDir, t);
|
|
6064
|
+
}
|
|
6065
|
+
catch {
|
|
6066
|
+
// Fail toward the legacy death copy — never silence the notice.
|
|
6067
|
+
return null;
|
|
6068
|
+
}
|
|
6069
|
+
},
|
|
6052
6070
|
reportDegradation: (reason, impact) => {
|
|
6053
6071
|
try {
|
|
6054
6072
|
DegradationReporter.getInstance().report({
|