@integrity-labs/agt-cli 0.28.1263 → 0.28.1264
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/{api-client-SJR7V5JU.js → api-client-Q2FXLBH5.js} +2 -2
- package/dist/bin/agt.js +5 -5
- package/dist/{chunk-I4ZCWVZZ.js → chunk-C3PSUSJ2.js} +2 -2
- package/dist/{chunk-M6EWNC4M.js → chunk-GSMGU2QA.js} +3 -3
- package/dist/{chunk-CEJNJ6NF.js → chunk-GZMUGH6X.js} +76 -22
- package/dist/chunk-GZMUGH6X.js.map +1 -0
- package/dist/{claude-pair-runtime-BJ3EAWEJ.js → claude-pair-runtime-M6VJ3KZ3.js} +2 -2
- package/dist/lib/manager-worker.js +106 -19
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/{persistent-session-YNHYNCNA.js → persistent-session-3OES5QXZ.js} +12 -2
- package/dist/{responsiveness-probe-57RV3U2H.js → responsiveness-probe-BSSNRCPM.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-CEJNJ6NF.js.map +0 -1
- /package/dist/{api-client-SJR7V5JU.js.map → api-client-Q2FXLBH5.js.map} +0 -0
- /package/dist/{chunk-I4ZCWVZZ.js.map → chunk-C3PSUSJ2.js.map} +0 -0
- /package/dist/{chunk-M6EWNC4M.js.map → chunk-GSMGU2QA.js.map} +0 -0
- /package/dist/{claude-pair-runtime-BJ3EAWEJ.js.map → claude-pair-runtime-M6VJ3KZ3.js.map} +0 -0
- /package/dist/{persistent-session-YNHYNCNA.js.map → persistent-session-3OES5QXZ.js.map} +0 -0
- /package/dist/{responsiveness-probe-57RV3U2H.js.map → responsiveness-probe-BSSNRCPM.js.map} +0 -0
|
@@ -321,7 +321,7 @@ async function spawnPairSession(session) {
|
|
|
321
321
|
return { ok: true };
|
|
322
322
|
} catch {
|
|
323
323
|
}
|
|
324
|
-
const { resolveClaudeBinary } = await import("./persistent-session-
|
|
324
|
+
const { resolveClaudeBinary } = await import("./persistent-session-3OES5QXZ.js");
|
|
325
325
|
const claudeBin = resolveClaudeBinary();
|
|
326
326
|
const pairEnv = {
|
|
327
327
|
...process.env,
|
|
@@ -836,4 +836,4 @@ export {
|
|
|
836
836
|
startClaudePair,
|
|
837
837
|
submitClaudePairCode
|
|
838
838
|
};
|
|
839
|
-
//# sourceMappingURL=claude-pair-runtime-
|
|
839
|
+
//# sourceMappingURL=claude-pair-runtime-M6VJ3KZ3.js.map
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
tripClass,
|
|
71
71
|
writeEtcEnvironment,
|
|
72
72
|
writeProfileDScript
|
|
73
|
-
} from "../chunk-
|
|
73
|
+
} from "../chunk-GSMGU2QA.js";
|
|
74
74
|
import {
|
|
75
75
|
ApiError,
|
|
76
76
|
adoptHostKeyInProcess,
|
|
@@ -88,7 +88,7 @@ import {
|
|
|
88
88
|
probeHostKey,
|
|
89
89
|
requireHost,
|
|
90
90
|
setConfigHash
|
|
91
|
-
} from "../chunk-
|
|
91
|
+
} from "../chunk-C3PSUSJ2.js";
|
|
92
92
|
import {
|
|
93
93
|
BLOCKED_ON_PROMPT_DECISION,
|
|
94
94
|
CHANNEL_SECRET_ENV_KEYS,
|
|
@@ -165,6 +165,7 @@ import {
|
|
|
165
165
|
stopAllSessionsAndWait,
|
|
166
166
|
stopOpencodeSession,
|
|
167
167
|
stopPersistentSession,
|
|
168
|
+
supersedePendingSpawn,
|
|
168
169
|
syncContainerMemory,
|
|
169
170
|
takeWatchdogGiveUpCount,
|
|
170
171
|
takeWatchdogUnclaimedDialogCount,
|
|
@@ -173,7 +174,7 @@ import {
|
|
|
173
174
|
webFetchBaselineValue,
|
|
174
175
|
webFetchRestartNeeded,
|
|
175
176
|
writeEgressAllowlist
|
|
176
|
-
} from "../chunk-
|
|
177
|
+
} from "../chunk-GZMUGH6X.js";
|
|
177
178
|
import {
|
|
178
179
|
isAgentIdle,
|
|
179
180
|
isStaleForToday,
|
|
@@ -11799,6 +11800,57 @@ var BlockedPromptReportCadence = class {
|
|
|
11799
11800
|
}
|
|
11800
11801
|
};
|
|
11801
11802
|
|
|
11803
|
+
// src/lib/agent-spawn-lock.ts
|
|
11804
|
+
var tails = /* @__PURE__ */ new Map();
|
|
11805
|
+
async function acquireAgentSpawnLock(agentId) {
|
|
11806
|
+
const prev = tails.get(agentId) ?? Promise.resolve();
|
|
11807
|
+
let release;
|
|
11808
|
+
const mine = new Promise((resolve2) => {
|
|
11809
|
+
release = resolve2;
|
|
11810
|
+
});
|
|
11811
|
+
const tail = prev.then(() => mine);
|
|
11812
|
+
tails.set(agentId, tail);
|
|
11813
|
+
let released = false;
|
|
11814
|
+
const done = () => {
|
|
11815
|
+
if (released) return;
|
|
11816
|
+
released = true;
|
|
11817
|
+
release();
|
|
11818
|
+
if (tails.get(agentId) === tail) tails.delete(agentId);
|
|
11819
|
+
};
|
|
11820
|
+
await prev;
|
|
11821
|
+
return done;
|
|
11822
|
+
}
|
|
11823
|
+
async function withAgentSpawnLock(agentId, fn, opts = {}) {
|
|
11824
|
+
const done = await acquireAgentSpawnLock(agentId);
|
|
11825
|
+
let result;
|
|
11826
|
+
try {
|
|
11827
|
+
result = await fn();
|
|
11828
|
+
} catch (err) {
|
|
11829
|
+
done();
|
|
11830
|
+
throw err;
|
|
11831
|
+
}
|
|
11832
|
+
if (opts.holdUntil) {
|
|
11833
|
+
const holdUntil = opts.holdUntil;
|
|
11834
|
+
void Promise.resolve().then(() => holdUntil(result)).then(done, done);
|
|
11835
|
+
} else {
|
|
11836
|
+
done();
|
|
11837
|
+
}
|
|
11838
|
+
return result;
|
|
11839
|
+
}
|
|
11840
|
+
async function waitUntil(ready, opts) {
|
|
11841
|
+
const now = opts.now ?? Date.now;
|
|
11842
|
+
const sleep2 = opts.sleep ?? ((ms) => new Promise((r) => setTimeout(r, ms)));
|
|
11843
|
+
const deadline = now() + opts.capMs;
|
|
11844
|
+
while (!ready() && now() < deadline) await sleep2(opts.everyMs);
|
|
11845
|
+
}
|
|
11846
|
+
function spawnHasSettled(sessionUp, spawnPending) {
|
|
11847
|
+
return sessionUp || spawnPending !== true;
|
|
11848
|
+
}
|
|
11849
|
+
function respawnedByAnotherCaller(decision, healthyAfter, sessionStartedAt, laneStartedAt, startedAtIsEstimate = false) {
|
|
11850
|
+
if (startedAtIsEstimate) return false;
|
|
11851
|
+
return decision === "healthy" && healthyAfter && typeof sessionStartedAt === "number" && sessionStartedAt >= laneStartedAt;
|
|
11852
|
+
}
|
|
11853
|
+
|
|
11802
11854
|
// src/lib/occupancy-gate.ts
|
|
11803
11855
|
import { closeSync as closeSync4, openSync as openSync4, readdirSync as readdirSync11, readSync as readSync4, statSync as statSync13 } from "fs";
|
|
11804
11856
|
import { join as join41 } from "path";
|
|
@@ -14325,7 +14377,7 @@ function createFileMigrationReportIO(codeName, log2) {
|
|
|
14325
14377
|
};
|
|
14326
14378
|
}
|
|
14327
14379
|
var managerHostPost = async (path, body) => {
|
|
14328
|
-
const { api: api2, ApiError: ApiError3 } = await import("../api-client-
|
|
14380
|
+
const { api: api2, ApiError: ApiError3 } = await import("../api-client-Q2FXLBH5.js");
|
|
14329
14381
|
try {
|
|
14330
14382
|
const json = await api2.post(path, body);
|
|
14331
14383
|
return { status: 200, json };
|
|
@@ -16364,7 +16416,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
|
|
|
16364
16416
|
var dayRolloverInboundHold = /* @__PURE__ */ new Map();
|
|
16365
16417
|
var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
|
|
16366
16418
|
async function channelInboundActivityAgeSecondsFor(codeName) {
|
|
16367
|
-
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-
|
|
16419
|
+
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-BSSNRCPM.js");
|
|
16368
16420
|
const newest = newestPendingInboundActivityMtimeMs(dirname11(paneLogPath(codeName)));
|
|
16369
16421
|
if (newest === null) return null;
|
|
16370
16422
|
return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
|
|
@@ -17180,7 +17232,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
17180
17232
|
var lastVersionCheckAt = 0;
|
|
17181
17233
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
17182
17234
|
var lastResponsivenessProbeAt = 0;
|
|
17183
|
-
var agtCliVersion = true ? "0.28.
|
|
17235
|
+
var agtCliVersion = true ? "0.28.1264" : "dev";
|
|
17184
17236
|
function resolveBrewPath(execFileSync4) {
|
|
17185
17237
|
try {
|
|
17186
17238
|
const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -19189,7 +19241,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
|
|
|
19189
19241
|
if (codeNames.length === 0) return;
|
|
19190
19242
|
void (async () => {
|
|
19191
19243
|
try {
|
|
19192
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
19244
|
+
const { collectDiagnostics } = await import("../persistent-session-3OES5QXZ.js");
|
|
19193
19245
|
await api.post("/host/heartbeat", {
|
|
19194
19246
|
host_id: hostId,
|
|
19195
19247
|
agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
|
|
@@ -19332,7 +19384,7 @@ async function pollCycleInner() {
|
|
|
19332
19384
|
}
|
|
19333
19385
|
try {
|
|
19334
19386
|
const { detectHostSecurity } = await import("../host-security-KQYYZZVW.js");
|
|
19335
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
19387
|
+
const { collectDiagnostics } = await import("../persistent-session-3OES5QXZ.js");
|
|
19336
19388
|
const diagCodeNames = [...agentState.persistentSessionAgents];
|
|
19337
19389
|
const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor) : void 0;
|
|
19338
19390
|
let tailscaleHostname;
|
|
@@ -19638,7 +19690,7 @@ async function pollCycleInner() {
|
|
|
19638
19690
|
collectPanelessActivityProbes,
|
|
19639
19691
|
getResponsivenessIntervalMs,
|
|
19640
19692
|
occupancyQualificationClassifications
|
|
19641
|
-
} = await import("../responsiveness-probe-
|
|
19693
|
+
} = await import("../responsiveness-probe-BSSNRCPM.js");
|
|
19642
19694
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
19643
19695
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
19644
19696
|
const probeCodeNames = [...agentState.persistentSessionAgents];
|
|
@@ -19755,7 +19807,7 @@ async function pollCycleInner() {
|
|
|
19755
19807
|
collectResponsivenessProbes,
|
|
19756
19808
|
livePendingInboundOldestAgeSeconds,
|
|
19757
19809
|
parkPendingInbound
|
|
19758
|
-
} = await import("../responsiveness-probe-
|
|
19810
|
+
} = await import("../responsiveness-probe-BSSNRCPM.js");
|
|
19759
19811
|
const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-5PCBGRNY.js");
|
|
19760
19812
|
const wedgeNow = /* @__PURE__ */ new Date();
|
|
19761
19813
|
const liveAgents = agentState.persistentSessionAgents;
|
|
@@ -20041,7 +20093,7 @@ async function pollCycleInner() {
|
|
|
20041
20093
|
}
|
|
20042
20094
|
}
|
|
20043
20095
|
);
|
|
20044
|
-
const { parkPendingInbound } = await import("../responsiveness-probe-
|
|
20096
|
+
const { parkPendingInbound } = await import("../responsiveness-probe-BSSNRCPM.js");
|
|
20045
20097
|
const { parked, deadLettered } = parkPendingInbound(codeName, new Date(fatalNowMs));
|
|
20046
20098
|
paneFatalStreak.delete(codeName);
|
|
20047
20099
|
paneFatalRestarts.set(codeName, [...history, fatalNowMs]);
|
|
@@ -20072,7 +20124,7 @@ async function pollCycleInner() {
|
|
|
20072
20124
|
TRANSCRIPT_MOUNT_ESCALATION_REFRESH_MS,
|
|
20073
20125
|
bindSourceEscalations
|
|
20074
20126
|
} = await import("../transcript-mount-health-OHE6IVJV.js");
|
|
20075
|
-
const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-
|
|
20127
|
+
const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-3OES5QXZ.js");
|
|
20076
20128
|
const mountConfig = resolveTranscriptMountConfig();
|
|
20077
20129
|
const liveAgents = agentState.persistentSessionAgents;
|
|
20078
20130
|
for (const tracked of [
|
|
@@ -24038,6 +24090,22 @@ Retried to the limit after repeated stalls \u2014 needs a look.`).catch(() => {
|
|
|
24038
24090
|
acpSessions: []
|
|
24039
24091
|
});
|
|
24040
24092
|
}
|
|
24093
|
+
function respawnConfirmedSince(result, codeName, laneStartedAt) {
|
|
24094
|
+
if (isConfirmedRespawn(result)) return true;
|
|
24095
|
+
const state10 = getSessionState(codeName);
|
|
24096
|
+
return respawnedByAnotherCaller(
|
|
24097
|
+
result.decision,
|
|
24098
|
+
result.sessionHealthyAfter,
|
|
24099
|
+
state10?.startedAt,
|
|
24100
|
+
laneStartedAt,
|
|
24101
|
+
// Obi Wan aff235244445: a re-attached session's guessed start time never confirms.
|
|
24102
|
+
state10?.estimatedStartedAt != null
|
|
24103
|
+
);
|
|
24104
|
+
}
|
|
24105
|
+
var SPAWN_LOCK_LANDING_CAP_MS = 3e4;
|
|
24106
|
+
function spawnSettled(codeName) {
|
|
24107
|
+
return spawnHasSettled(probeTmuxSession(`agt-${codeName}`) === "alive", getSessionState(codeName)?.spawnPending);
|
|
24108
|
+
}
|
|
24041
24109
|
var lastMcpFailedBannerCount = /* @__PURE__ */ new Map();
|
|
24042
24110
|
var lastModelApiErrorSig = /* @__PURE__ */ new Map();
|
|
24043
24111
|
var lastSessionAuthDetail = /* @__PURE__ */ new Map();
|
|
@@ -24141,7 +24209,18 @@ async function ensureOpencodeRuntime(agent, refreshData, agentTimezone) {
|
|
|
24141
24209
|
};
|
|
24142
24210
|
}
|
|
24143
24211
|
async function ensurePersistentSession(...args) {
|
|
24144
|
-
const
|
|
24212
|
+
const codeName = args[0].code_name;
|
|
24213
|
+
const result = await withAgentSpawnLock(args[0].agent_id, () => ensurePersistentSessionUnchecked(...args), {
|
|
24214
|
+
holdUntil: (r) => (
|
|
24215
|
+
// Obi Wan f9607dbe7d80: only a claude-code spawn mints the per-agent key
|
|
24216
|
+
// this lock protects, and only its session is `agt-<code>`. An opencode
|
|
24217
|
+
// serve runs as `agt-oc-<code>`, so waiting on isSessionHealthy would
|
|
24218
|
+
// always run out the cap and stall the sequential poll loop behind it.
|
|
24219
|
+
r.decision === "spawn" && (agentFrameworkCache.get(codeName) ?? DEFAULT_FRAMEWORK) === "claude-code" ? waitUntil(() => spawnSettled(codeName), { capMs: SPAWN_LOCK_LANDING_CAP_MS, everyMs: 500 }).then(() => {
|
|
24220
|
+
if (!spawnSettled(codeName)) supersedePendingSpawn(codeName, log);
|
|
24221
|
+
}) : Promise.resolve()
|
|
24222
|
+
)
|
|
24223
|
+
});
|
|
24145
24224
|
const blocked = result.sessionHealthyAfter ? sessionBlockedOnPrompt(args[0].code_name) : null;
|
|
24146
24225
|
return applyBlockedPromptVerdict(result, blocked);
|
|
24147
24226
|
}
|
|
@@ -25167,15 +25246,18 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
25167
25246
|
}
|
|
25168
25247
|
if (restartInFlight.has(agentId)) return;
|
|
25169
25248
|
restartInFlight.add(agentId);
|
|
25249
|
+
let laneStartedAt = Date.now();
|
|
25250
|
+
let releaseKillLock = null;
|
|
25170
25251
|
try {
|
|
25171
25252
|
const refreshData = await fetchSpawnRefreshData(agentId, codeName, "restart-lane");
|
|
25172
25253
|
if (!refreshData) return;
|
|
25173
25254
|
const framework = refreshData.agent?.framework ?? agentFrameworkCache.get(codeName) ?? DEFAULT_FRAMEWORK;
|
|
25174
25255
|
const hostId = await getHostId();
|
|
25175
|
-
const parkForRestart = await import("../responsiveness-probe-
|
|
25256
|
+
const parkForRestart = await import("../responsiveness-probe-BSSNRCPM.js").then(
|
|
25176
25257
|
(m) => m.parkPendingInbound,
|
|
25177
25258
|
(err) => err
|
|
25178
25259
|
);
|
|
25260
|
+
releaseKillLock = await acquireAgentSpawnLock(agentId);
|
|
25179
25261
|
if (restartReason === MANAGER_RESTART_REASON) {
|
|
25180
25262
|
const cached = agentFrameworkCache.get(codeName);
|
|
25181
25263
|
if (laneDefersForFramework(cached, framework)) {
|
|
@@ -25226,6 +25308,9 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
25226
25308
|
if (killed === "failed") log(`[restart-lane] tmux kill for '${codeName}' failed; a ${restartReason ?? "manual"} restart goes ahead as before [ENG-11963]`);
|
|
25227
25309
|
stopPersistentSessionAndForgetMcpBaseline(codeName);
|
|
25228
25310
|
}
|
|
25311
|
+
laneStartedAt = Date.now();
|
|
25312
|
+
releaseKillLock();
|
|
25313
|
+
releaseKillLock = null;
|
|
25229
25314
|
const result = await ensurePersistentSession(
|
|
25230
25315
|
{ agent_id: agentId, code_name: codeName, display_name: displayName },
|
|
25231
25316
|
[],
|
|
@@ -25233,7 +25318,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
25233
25318
|
refreshData
|
|
25234
25319
|
);
|
|
25235
25320
|
recordSpawnOutcome(codeName, result);
|
|
25236
|
-
if (!
|
|
25321
|
+
if (!respawnConfirmedSince(result, codeName, laneStartedAt)) {
|
|
25237
25322
|
log(`[restart-lane] respawn not confirmed for '${codeName}' (decision=${result.decision}) - leaving for slow poll`);
|
|
25238
25323
|
return;
|
|
25239
25324
|
}
|
|
@@ -25245,7 +25330,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
25245
25330
|
void api.post("/host/restart-ack", { host_id: hostId, agent_id: agentId, restart_requested_at: requestedAt }).catch((err) => log(`[restart-lane] ack failed for '${codeName}': ${err.message}`));
|
|
25246
25331
|
void (async () => {
|
|
25247
25332
|
try {
|
|
25248
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
25333
|
+
const { collectDiagnostics } = await import("../persistent-session-3OES5QXZ.js");
|
|
25249
25334
|
await api.post("/host/heartbeat", {
|
|
25250
25335
|
host_id: hostId,
|
|
25251
25336
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
|
|
@@ -25262,6 +25347,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
25262
25347
|
}
|
|
25263
25348
|
log(`[restart-lane] '${codeName}' respawned via fast lane`);
|
|
25264
25349
|
} finally {
|
|
25350
|
+
releaseKillLock?.();
|
|
25265
25351
|
restartInFlight.delete(agentId);
|
|
25266
25352
|
}
|
|
25267
25353
|
}
|
|
@@ -25271,6 +25357,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
|
|
|
25271
25357
|
const agentId = prev.agentId;
|
|
25272
25358
|
if (restartInFlight.has(agentId)) return;
|
|
25273
25359
|
restartInFlight.add(agentId);
|
|
25360
|
+
const laneStartedAt = Date.now();
|
|
25274
25361
|
try {
|
|
25275
25362
|
if (isSessionHealthy(codeName)) return;
|
|
25276
25363
|
const refreshData = await fetchSpawnRefreshData(agentId, codeName, "fast-mcp-respawn");
|
|
@@ -25283,7 +25370,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
|
|
|
25283
25370
|
refreshData
|
|
25284
25371
|
);
|
|
25285
25372
|
recordSpawnOutcome(codeName, result);
|
|
25286
|
-
if (!
|
|
25373
|
+
if (!respawnConfirmedSince(result, codeName, laneStartedAt)) {
|
|
25287
25374
|
log(
|
|
25288
25375
|
`[fast-mcp-respawn] respawn not confirmed for '${codeName}' (decision=${result.decision}) - leaving for slow poll`
|
|
25289
25376
|
);
|
|
@@ -25296,7 +25383,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
|
|
|
25296
25383
|
}
|
|
25297
25384
|
try {
|
|
25298
25385
|
const hostId = await getHostId();
|
|
25299
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
25386
|
+
const { collectDiagnostics } = await import("../persistent-session-3OES5QXZ.js");
|
|
25300
25387
|
await api.post("/host/heartbeat", {
|
|
25301
25388
|
host_id: hostId,
|
|
25302
25389
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
|
|
@@ -25998,7 +26085,7 @@ async function processClaudePairSessions(agents) {
|
|
|
25998
26085
|
snapshotPairConfig,
|
|
25999
26086
|
// ENG-11659: result -> report body + the manager.log line that records it.
|
|
26000
26087
|
planPairStartReport
|
|
26001
|
-
} = await import("../claude-pair-runtime-
|
|
26088
|
+
} = await import("../claude-pair-runtime-M6VJ3KZ3.js");
|
|
26002
26089
|
const { resetClaudeSignin, describeSigninResetForLog, describeSigninResetFailure } = await import("../claude-signin-reset-6IJMMVYG.js");
|
|
26003
26090
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
26004
26091
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|