@integrity-labs/agt-cli 0.28.1269 → 0.28.1270
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-54VZB3MY.js → api-client-TPJBEIKR.js} +3 -3
- package/dist/bin/agt.js +7 -7
- package/dist/{chunk-RNA2BFCX.js → chunk-A22SKOQ4.js} +2 -2
- package/dist/{chunk-LTQTHV7E.js → chunk-CJFHB3HA.js} +22 -1
- package/dist/chunk-CJFHB3HA.js.map +1 -0
- package/dist/{chunk-GLIROXKE.js → chunk-HHDHYVLS.js} +2 -2
- package/dist/{chunk-YB4W3NF3.js → chunk-PVVFL73J.js} +5 -5
- package/dist/{chunk-BM4Q7VW6.js → chunk-SXQ6YCFR.js} +3 -3
- package/dist/{chunk-ES3U3RIS.js → chunk-YP7VUMM4.js} +3 -3
- package/dist/{claude-code-updater-OHXLB7WR.js → claude-code-updater-K6PENJ7A.js} +3 -3
- package/dist/{claude-pair-runtime-XTRWHN5Q.js → claude-pair-runtime-NOVMDM62.js} +3 -3
- package/dist/lib/manager-worker.js +59 -28
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/direct-chat-channel.js +21 -0
- package/dist/mcp/index.js +21 -0
- package/dist/mcp/origami.js +21 -0
- package/dist/mcp/slack-channel.js +137 -2
- package/dist/mcp/telegram-channel.js +21 -0
- package/dist/{persistent-session-MX6UHWLR.js → persistent-session-SMMVQBRS.js} +4 -4
- package/dist/{responsiveness-probe-GXI34QDS.js → responsiveness-probe-PX4FMO4H.js} +4 -4
- package/dist/{session-auth-dead-UM6LYQ2W.js → session-auth-dead-47D57WMA.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-LTQTHV7E.js.map +0 -1
- /package/dist/{api-client-54VZB3MY.js.map → api-client-TPJBEIKR.js.map} +0 -0
- /package/dist/{chunk-RNA2BFCX.js.map → chunk-A22SKOQ4.js.map} +0 -0
- /package/dist/{chunk-GLIROXKE.js.map → chunk-HHDHYVLS.js.map} +0 -0
- /package/dist/{chunk-YB4W3NF3.js.map → chunk-PVVFL73J.js.map} +0 -0
- /package/dist/{chunk-BM4Q7VW6.js.map → chunk-SXQ6YCFR.js.map} +0 -0
- /package/dist/{chunk-ES3U3RIS.js.map → chunk-YP7VUMM4.js.map} +0 -0
- /package/dist/{claude-code-updater-OHXLB7WR.js.map → claude-code-updater-K6PENJ7A.js.map} +0 -0
- /package/dist/{claude-pair-runtime-XTRWHN5Q.js.map → claude-pair-runtime-NOVMDM62.js.map} +0 -0
- /package/dist/{persistent-session-MX6UHWLR.js.map → persistent-session-SMMVQBRS.js.map} +0 -0
- /package/dist/{responsiveness-probe-GXI34QDS.js.map → responsiveness-probe-PX4FMO4H.js.map} +0 -0
- /package/dist/{session-auth-dead-UM6LYQ2W.js.map → session-auth-dead-47D57WMA.js.map} +0 -0
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-XWVM4KPK.js";
|
|
5
5
|
import {
|
|
6
6
|
FORCED_UPDATE_HARD_DEADLINE_MS
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CJFHB3HA.js";
|
|
8
8
|
import {
|
|
9
9
|
effectiveClaudeJsonPath
|
|
10
10
|
} from "./chunk-AIUIMEUS.js";
|
|
@@ -722,4 +722,4 @@ export {
|
|
|
722
722
|
probeClaudeInstalls,
|
|
723
723
|
maybeUpdateClaudeCode
|
|
724
724
|
};
|
|
725
|
-
//# sourceMappingURL=chunk-
|
|
725
|
+
//# sourceMappingURL=chunk-HHDHYVLS.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
exchangeApiKey,
|
|
3
3
|
getApiKey,
|
|
4
4
|
getHost
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-YP7VUMM4.js";
|
|
6
6
|
import {
|
|
7
7
|
LATE_BOUND_VARS,
|
|
8
8
|
PLATFORM_DENY_PERMISSIONS,
|
|
@@ -25,11 +25,11 @@ import {
|
|
|
25
25
|
shellQuote,
|
|
26
26
|
withheldRemoteMcpMessage,
|
|
27
27
|
withheldRemoteMcpReasonFor
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-SXQ6YCFR.js";
|
|
29
29
|
import {
|
|
30
30
|
readDailySessionPin,
|
|
31
31
|
sessionTranscriptDir
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-A22SKOQ4.js";
|
|
33
33
|
import {
|
|
34
34
|
classifyUnanswerablePane,
|
|
35
35
|
isConsumerTermsDialogVisible,
|
|
@@ -101,7 +101,7 @@ import {
|
|
|
101
101
|
scanConfigForLiteralSecrets,
|
|
102
102
|
worseConnectivityOutcome,
|
|
103
103
|
wrapScheduledTaskPrompt
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-CJFHB3HA.js";
|
|
105
105
|
import {
|
|
106
106
|
claudeJsonPathFor,
|
|
107
107
|
effectiveClaudeJsonPath,
|
|
@@ -13808,4 +13808,4 @@ export {
|
|
|
13808
13808
|
managerInstallSystemUnitCommand,
|
|
13809
13809
|
managerUninstallSystemUnitCommand
|
|
13810
13810
|
};
|
|
13811
|
-
//# sourceMappingURL=chunk-
|
|
13811
|
+
//# sourceMappingURL=chunk-PVVFL73J.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
rotateDailySession,
|
|
5
5
|
sessionFileExists,
|
|
6
6
|
todayLocalIso
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-A22SKOQ4.js";
|
|
8
8
|
import {
|
|
9
9
|
classifyUnanswerablePane,
|
|
10
10
|
customApiKeyDialogKeys,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
remoteMcpConnectionEnvInfix,
|
|
55
55
|
remoteMcpConnectionLabel,
|
|
56
56
|
remoteMcpConnectionScopedEnvVar
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-CJFHB3HA.js";
|
|
58
58
|
import {
|
|
59
59
|
CLAUDE_CONFIG_DIR_ENV,
|
|
60
60
|
approveApiKeyInClaudeConfig,
|
|
@@ -6496,4 +6496,4 @@ export {
|
|
|
6496
6496
|
stopAllSessionsAndWait,
|
|
6497
6497
|
getProjectDir
|
|
6498
6498
|
};
|
|
6499
|
-
//# sourceMappingURL=chunk-
|
|
6499
|
+
//# sourceMappingURL=chunk-SXQ6YCFR.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
HOST_ROTATE_KEY_CONFLICT
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CJFHB3HA.js";
|
|
4
4
|
|
|
5
5
|
// src/lib/config.ts
|
|
6
6
|
import { readFileSync, writeFileSync, mkdirSync, existsSync } from "fs";
|
|
@@ -103,7 +103,7 @@ function exchangeFailureKind(err) {
|
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
// src/lib/api-client.ts
|
|
106
|
-
var agtCliVersion = true ? "0.28.
|
|
106
|
+
var agtCliVersion = true ? "0.28.1270" : "dev";
|
|
107
107
|
var lastConfigHash = null;
|
|
108
108
|
function setConfigHash(hash) {
|
|
109
109
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -468,4 +468,4 @@ export {
|
|
|
468
468
|
api,
|
|
469
469
|
getHostId
|
|
470
470
|
};
|
|
471
|
-
//# sourceMappingURL=chunk-
|
|
471
|
+
//# sourceMappingURL=chunk-YP7VUMM4.js.map
|
|
@@ -13,9 +13,9 @@ import {
|
|
|
13
13
|
probeClaudeInstalls,
|
|
14
14
|
readsAsNativeInstall,
|
|
15
15
|
shouldRunClaudeCodeUpdater
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-HHDHYVLS.js";
|
|
17
17
|
import "./chunk-XWVM4KPK.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-CJFHB3HA.js";
|
|
19
19
|
import "./chunk-AIUIMEUS.js";
|
|
20
20
|
import "./chunk-DGUM43GV.js";
|
|
21
21
|
export {
|
|
@@ -34,4 +34,4 @@ export {
|
|
|
34
34
|
readsAsNativeInstall,
|
|
35
35
|
shouldRunClaudeCodeUpdater
|
|
36
36
|
};
|
|
37
|
-
//# sourceMappingURL=claude-code-updater-
|
|
37
|
+
//# sourceMappingURL=claude-code-updater-K6PENJ7A.js.map
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
redactPaneFrame,
|
|
12
12
|
sanitizeTerminalFrame
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-CJFHB3HA.js";
|
|
14
14
|
import {
|
|
15
15
|
CLAUDE_CONFIG_DIR_ENV,
|
|
16
16
|
claudeConfigDirFor,
|
|
@@ -323,7 +323,7 @@ async function spawnPairSession(session) {
|
|
|
323
323
|
return { ok: true };
|
|
324
324
|
} catch {
|
|
325
325
|
}
|
|
326
|
-
const { resolveClaudeBinary } = await import("./persistent-session-
|
|
326
|
+
const { resolveClaudeBinary } = await import("./persistent-session-SMMVQBRS.js");
|
|
327
327
|
const claudeBin = resolveClaudeBinary();
|
|
328
328
|
const pairEnv = {
|
|
329
329
|
...process.env,
|
|
@@ -838,4 +838,4 @@ export {
|
|
|
838
838
|
startClaudePair,
|
|
839
839
|
submitClaudePairCode
|
|
840
840
|
};
|
|
841
|
-
//# sourceMappingURL=claude-pair-runtime-
|
|
841
|
+
//# sourceMappingURL=claude-pair-runtime-NOVMDM62.js.map
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
tripClass,
|
|
71
71
|
writeEtcEnvironment,
|
|
72
72
|
writeProfileDScript
|
|
73
|
-
} from "../chunk-
|
|
73
|
+
} from "../chunk-PVVFL73J.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-YP7VUMM4.js";
|
|
92
92
|
import {
|
|
93
93
|
BLOCKED_ON_PROMPT_DECISION,
|
|
94
94
|
CHANNEL_SECRET_ENV_KEYS,
|
|
@@ -178,7 +178,7 @@ import {
|
|
|
178
178
|
webFetchBaselineValue,
|
|
179
179
|
webFetchRestartNeeded,
|
|
180
180
|
writeEgressAllowlist
|
|
181
|
-
} from "../chunk-
|
|
181
|
+
} from "../chunk-SXQ6YCFR.js";
|
|
182
182
|
import {
|
|
183
183
|
isAgentIdle,
|
|
184
184
|
isStaleForToday,
|
|
@@ -189,7 +189,7 @@ import {
|
|
|
189
189
|
subagentActivityAgeSeconds,
|
|
190
190
|
subagentTranscriptDir,
|
|
191
191
|
transcriptActivityAgeSeconds
|
|
192
|
-
} from "../chunk-
|
|
192
|
+
} from "../chunk-A22SKOQ4.js";
|
|
193
193
|
import {
|
|
194
194
|
classifyUnanswerablePane,
|
|
195
195
|
focusedConfirmDialogBlock,
|
|
@@ -215,7 +215,7 @@ import {
|
|
|
215
215
|
runSafeCleanup,
|
|
216
216
|
tightestDiskStat,
|
|
217
217
|
withPackageCacheLock
|
|
218
|
-
} from "../chunk-
|
|
218
|
+
} from "../chunk-HHDHYVLS.js";
|
|
219
219
|
import {
|
|
220
220
|
parsePsRows,
|
|
221
221
|
reapOrphanChannelMcps
|
|
@@ -343,7 +343,7 @@ import {
|
|
|
343
343
|
stabiliseResetInstant,
|
|
344
344
|
sumTranscriptUsageInWindow,
|
|
345
345
|
summarizeTranscriptActivity
|
|
346
|
-
} from "../chunk-
|
|
346
|
+
} from "../chunk-CJFHB3HA.js";
|
|
347
347
|
import {
|
|
348
348
|
CLAUDE_CONFIG_DIR_ENV,
|
|
349
349
|
claudeConfigDirFor,
|
|
@@ -14838,7 +14838,7 @@ function createFileMigrationReportIO(codeName, log2) {
|
|
|
14838
14838
|
};
|
|
14839
14839
|
}
|
|
14840
14840
|
var managerHostPost = async (path, body) => {
|
|
14841
|
-
const { api: api2, ApiError: ApiError3 } = await import("../api-client-
|
|
14841
|
+
const { api: api2, ApiError: ApiError3 } = await import("../api-client-TPJBEIKR.js");
|
|
14842
14842
|
try {
|
|
14843
14843
|
const json = await api2.post(path, body);
|
|
14844
14844
|
return { status: 200, json };
|
|
@@ -16886,7 +16886,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
|
|
|
16886
16886
|
var dayRolloverInboundHold = /* @__PURE__ */ new Map();
|
|
16887
16887
|
var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
|
|
16888
16888
|
async function channelInboundActivityAgeSecondsFor(codeName) {
|
|
16889
|
-
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-
|
|
16889
|
+
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-PX4FMO4H.js");
|
|
16890
16890
|
const newest = newestPendingInboundActivityMtimeMs(dirname11(paneLogPath(codeName)));
|
|
16891
16891
|
if (newest === null) return null;
|
|
16892
16892
|
return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
|
|
@@ -17767,7 +17767,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
17767
17767
|
var lastVersionCheckAt = 0;
|
|
17768
17768
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
17769
17769
|
var lastResponsivenessProbeAt = 0;
|
|
17770
|
-
var agtCliVersion = true ? "0.28.
|
|
17770
|
+
var agtCliVersion = true ? "0.28.1270" : "dev";
|
|
17771
17771
|
function resolveBrewPath(execFileSync4) {
|
|
17772
17772
|
try {
|
|
17773
17773
|
const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -19776,7 +19776,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
|
|
|
19776
19776
|
if (codeNames.length === 0) return;
|
|
19777
19777
|
void (async () => {
|
|
19778
19778
|
try {
|
|
19779
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
19779
|
+
const { collectDiagnostics } = await import("../persistent-session-SMMVQBRS.js");
|
|
19780
19780
|
await api.post("/host/heartbeat", {
|
|
19781
19781
|
host_id: hostId,
|
|
19782
19782
|
agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
|
|
@@ -19919,7 +19919,7 @@ async function pollCycleInner() {
|
|
|
19919
19919
|
}
|
|
19920
19920
|
try {
|
|
19921
19921
|
const { detectHostSecurity } = await import("../host-security-KQYYZZVW.js");
|
|
19922
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
19922
|
+
const { collectDiagnostics } = await import("../persistent-session-SMMVQBRS.js");
|
|
19923
19923
|
const diagCodeNames = [...agentState.persistentSessionAgents];
|
|
19924
19924
|
const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor) : void 0;
|
|
19925
19925
|
let tailscaleHostname;
|
|
@@ -20190,7 +20190,7 @@ async function pollCycleInner() {
|
|
|
20190
20190
|
}
|
|
20191
20191
|
try {
|
|
20192
20192
|
const desiredClaudeCodeVersion = hbResp?.desired_claude_code_version?.trim();
|
|
20193
|
-
const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-
|
|
20193
|
+
const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-K6PENJ7A.js");
|
|
20194
20194
|
const securityFloor = currentSecurityFloor();
|
|
20195
20195
|
claudeUpdaterInFlight = true;
|
|
20196
20196
|
if (desiredClaudeCodeVersion && (claudePairLoop.busy || claudePairingInProgress())) {
|
|
@@ -20225,7 +20225,7 @@ async function pollCycleInner() {
|
|
|
20225
20225
|
collectPanelessActivityProbes,
|
|
20226
20226
|
getResponsivenessIntervalMs,
|
|
20227
20227
|
occupancyQualificationClassifications
|
|
20228
|
-
} = await import("../responsiveness-probe-
|
|
20228
|
+
} = await import("../responsiveness-probe-PX4FMO4H.js");
|
|
20229
20229
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
20230
20230
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
20231
20231
|
const probeCodeNames = [...agentState.persistentSessionAgents];
|
|
@@ -20342,7 +20342,7 @@ async function pollCycleInner() {
|
|
|
20342
20342
|
collectResponsivenessProbes,
|
|
20343
20343
|
livePendingInboundOldestAgeSeconds,
|
|
20344
20344
|
parkPendingInbound
|
|
20345
|
-
} = await import("../responsiveness-probe-
|
|
20345
|
+
} = await import("../responsiveness-probe-PX4FMO4H.js");
|
|
20346
20346
|
const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-5PCBGRNY.js");
|
|
20347
20347
|
const wedgeNow = /* @__PURE__ */ new Date();
|
|
20348
20348
|
const liveAgents = agentState.persistentSessionAgents;
|
|
@@ -20628,7 +20628,7 @@ async function pollCycleInner() {
|
|
|
20628
20628
|
}
|
|
20629
20629
|
}
|
|
20630
20630
|
);
|
|
20631
|
-
const { parkPendingInbound } = await import("../responsiveness-probe-
|
|
20631
|
+
const { parkPendingInbound } = await import("../responsiveness-probe-PX4FMO4H.js");
|
|
20632
20632
|
const { parked, deadLettered } = parkPendingInbound(codeName, new Date(fatalNowMs));
|
|
20633
20633
|
paneFatalStreak.delete(codeName);
|
|
20634
20634
|
paneFatalRestarts.set(codeName, [...history, fatalNowMs]);
|
|
@@ -20659,7 +20659,7 @@ async function pollCycleInner() {
|
|
|
20659
20659
|
TRANSCRIPT_MOUNT_ESCALATION_REFRESH_MS,
|
|
20660
20660
|
bindSourceEscalations
|
|
20661
20661
|
} = await import("../transcript-mount-health-OHE6IVJV.js");
|
|
20662
|
-
const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-
|
|
20662
|
+
const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-SMMVQBRS.js");
|
|
20663
20663
|
const mountConfig = resolveTranscriptMountConfig();
|
|
20664
20664
|
const liveAgents = agentState.persistentSessionAgents;
|
|
20665
20665
|
for (const tracked of [
|
|
@@ -20824,7 +20824,7 @@ async function pollCycleInner() {
|
|
|
20824
20824
|
}
|
|
20825
20825
|
try {
|
|
20826
20826
|
const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-VR5QGP3J.js");
|
|
20827
|
-
const { probeSessionAuth } = await import("../session-auth-dead-
|
|
20827
|
+
const { probeSessionAuth } = await import("../session-auth-dead-47D57WMA.js");
|
|
20828
20828
|
const observations = [];
|
|
20829
20829
|
const pendingCacheCommits = [];
|
|
20830
20830
|
const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
|
|
@@ -25726,12 +25726,16 @@ function ensureRealtimeStarted(agentStates) {
|
|
|
25726
25726
|
if (!agent) return;
|
|
25727
25727
|
if (directChatInFlight.has(msg.id)) return;
|
|
25728
25728
|
directChatInFlight.add(msg.id);
|
|
25729
|
-
|
|
25729
|
+
void dispatchDirectChatMessage({
|
|
25730
25730
|
id: msg.id,
|
|
25731
|
-
|
|
25732
|
-
|
|
25733
|
-
|
|
25734
|
-
|
|
25731
|
+
codeName: agent.codeName,
|
|
25732
|
+
process: () => processDirectChatMessage(agent, {
|
|
25733
|
+
id: msg.id,
|
|
25734
|
+
session_id: msg.session_id,
|
|
25735
|
+
content: msg.content
|
|
25736
|
+
}),
|
|
25737
|
+
inFlight: directChatInFlight,
|
|
25738
|
+
log
|
|
25735
25739
|
});
|
|
25736
25740
|
},
|
|
25737
25741
|
onError: (err) => {
|
|
@@ -25871,7 +25875,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
25871
25875
|
if (!refreshData) return;
|
|
25872
25876
|
const framework = refreshData.agent?.framework ?? agentFrameworkCache.get(codeName) ?? DEFAULT_FRAMEWORK;
|
|
25873
25877
|
const hostId = await getHostId();
|
|
25874
|
-
const parkForRestart = await import("../responsiveness-probe-
|
|
25878
|
+
const parkForRestart = await import("../responsiveness-probe-PX4FMO4H.js").then(
|
|
25875
25879
|
(m) => m.parkPendingInbound,
|
|
25876
25880
|
(err) => err
|
|
25877
25881
|
);
|
|
@@ -25948,7 +25952,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
25948
25952
|
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}`));
|
|
25949
25953
|
void (async () => {
|
|
25950
25954
|
try {
|
|
25951
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
25955
|
+
const { collectDiagnostics } = await import("../persistent-session-SMMVQBRS.js");
|
|
25952
25956
|
await api.post("/host/heartbeat", {
|
|
25953
25957
|
host_id: hostId,
|
|
25954
25958
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
|
|
@@ -26001,7 +26005,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
|
|
|
26001
26005
|
}
|
|
26002
26006
|
try {
|
|
26003
26007
|
const hostId = await getHostId();
|
|
26004
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
26008
|
+
const { collectDiagnostics } = await import("../persistent-session-SMMVQBRS.js");
|
|
26005
26009
|
await api.post("/host/heartbeat", {
|
|
26006
26010
|
host_id: hostId,
|
|
26007
26011
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
|
|
@@ -26256,6 +26260,27 @@ function triggerEarlyPoll(reason, agentId) {
|
|
|
26256
26260
|
}, 0);
|
|
26257
26261
|
}
|
|
26258
26262
|
var directChatInFlight = /* @__PURE__ */ new Set();
|
|
26263
|
+
function describeRejection(err) {
|
|
26264
|
+
try {
|
|
26265
|
+
if (err instanceof Error) return typeof err.message === "string" ? err.message : "Error with no message";
|
|
26266
|
+
if (typeof err === "string") return err;
|
|
26267
|
+
return `non-Error rejection (${err === null ? "null" : typeof err})`;
|
|
26268
|
+
} catch {
|
|
26269
|
+
return "unreadable rejection";
|
|
26270
|
+
}
|
|
26271
|
+
}
|
|
26272
|
+
async function dispatchDirectChatMessage(args) {
|
|
26273
|
+
try {
|
|
26274
|
+
await args.process();
|
|
26275
|
+
} catch (err) {
|
|
26276
|
+
const message = describeRejection(err);
|
|
26277
|
+
args.log(
|
|
26278
|
+
`[direct-chat] ENG-12155: processing failed for '${args.codeName}' (msg=${args.id}): ${message} - left for retry (the row is reclaimed by the poll after the processing reaper requeues it)`
|
|
26279
|
+
);
|
|
26280
|
+
} finally {
|
|
26281
|
+
args.inFlight.delete(args.id);
|
|
26282
|
+
}
|
|
26283
|
+
}
|
|
26259
26284
|
async function pollDirectChatMessages(agentStates) {
|
|
26260
26285
|
for (const agent of agentStates) {
|
|
26261
26286
|
if (agent.status !== "active") continue;
|
|
@@ -26264,8 +26289,12 @@ async function pollDirectChatMessages(agentStates) {
|
|
|
26264
26289
|
for (const msg of data.messages) {
|
|
26265
26290
|
if (directChatInFlight.has(msg.id)) continue;
|
|
26266
26291
|
directChatInFlight.add(msg.id);
|
|
26267
|
-
|
|
26268
|
-
|
|
26292
|
+
void dispatchDirectChatMessage({
|
|
26293
|
+
id: msg.id,
|
|
26294
|
+
codeName: agent.codeName,
|
|
26295
|
+
process: () => processDirectChatMessage(agent, msg),
|
|
26296
|
+
inFlight: directChatInFlight,
|
|
26297
|
+
log
|
|
26269
26298
|
});
|
|
26270
26299
|
}
|
|
26271
26300
|
} catch (err) {
|
|
@@ -26703,7 +26732,7 @@ async function processClaudePairSessions(agents) {
|
|
|
26703
26732
|
snapshotPairConfig,
|
|
26704
26733
|
// ENG-11659: result -> report body + the manager.log line that records it.
|
|
26705
26734
|
planPairStartReport
|
|
26706
|
-
} = await import("../claude-pair-runtime-
|
|
26735
|
+
} = await import("../claude-pair-runtime-NOVMDM62.js");
|
|
26707
26736
|
const { resetClaudeSignin, describeSigninResetForLog, describeSigninResetFailure } = await import("../claude-signin-reset-6IJMMVYG.js");
|
|
26708
26737
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
26709
26738
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|
|
@@ -28174,6 +28203,8 @@ export {
|
|
|
28174
28203
|
crossSessionBlockReport,
|
|
28175
28204
|
dashboardRestartBreakerReason,
|
|
28176
28205
|
decideDayRolloverAction,
|
|
28206
|
+
describeRejection,
|
|
28207
|
+
dispatchDirectChatMessage,
|
|
28177
28208
|
ensureClaudeManagedSettings,
|
|
28178
28209
|
extractCharterSlackPeers,
|
|
28179
28210
|
extractCharterTelegramPeers,
|