@integrity-labs/agt-cli 0.28.1258 → 0.28.1259
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-E5AB7DBB.js → api-client-ATRLQZOU.js} +3 -3
- package/dist/bin/agt.js +7 -7
- package/dist/{chunk-AMZ5XSTY.js → chunk-5433KPH4.js} +2 -2
- package/dist/{chunk-DISUKAOD.js → chunk-BOITSKCM.js} +3 -3
- package/dist/{chunk-ZRQWRXGK.js → chunk-F6U3ZJCG.js} +2 -2
- package/dist/{chunk-MXDVYW5G.js → chunk-NRNPYXG6.js} +14 -1
- package/dist/chunk-NRNPYXG6.js.map +1 -0
- package/dist/{chunk-GSNAPMCA.js → chunk-RBC22FRC.js} +75 -9
- package/dist/chunk-RBC22FRC.js.map +1 -0
- package/dist/{chunk-W2TGJEF3.js → chunk-UAO5VMYK.js} +5 -5
- package/dist/{claude-code-updater-3YFSB22P.js → claude-code-updater-SUL3OSGB.js} +3 -3
- package/dist/{claude-pair-runtime-W4XS6BR2.js → claude-pair-runtime-D6ZRO2FC.js} +3 -3
- package/dist/lib/manager-worker.js +51 -40
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/{persistent-session-BBEOA3TR.js → persistent-session-UC56OJVB.js} +4 -4
- package/dist/{responsiveness-probe-X32GL24W.js → responsiveness-probe-KGBRCJQW.js} +4 -4
- package/dist/{session-auth-dead-5F3NEK57.js → session-auth-dead-AVYJASOL.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-GSNAPMCA.js.map +0 -1
- package/dist/chunk-MXDVYW5G.js.map +0 -1
- /package/dist/{api-client-E5AB7DBB.js.map → api-client-ATRLQZOU.js.map} +0 -0
- /package/dist/{chunk-AMZ5XSTY.js.map → chunk-5433KPH4.js.map} +0 -0
- /package/dist/{chunk-DISUKAOD.js.map → chunk-BOITSKCM.js.map} +0 -0
- /package/dist/{chunk-ZRQWRXGK.js.map → chunk-F6U3ZJCG.js.map} +0 -0
- /package/dist/{chunk-W2TGJEF3.js.map → chunk-UAO5VMYK.js.map} +0 -0
- /package/dist/{claude-code-updater-3YFSB22P.js.map → claude-code-updater-SUL3OSGB.js.map} +0 -0
- /package/dist/{claude-pair-runtime-W4XS6BR2.js.map → claude-pair-runtime-D6ZRO2FC.js.map} +0 -0
- /package/dist/{persistent-session-BBEOA3TR.js.map → persistent-session-UC56OJVB.js.map} +0 -0
- /package/dist/{responsiveness-probe-X32GL24W.js.map → responsiveness-probe-KGBRCJQW.js.map} +0 -0
- /package/dist/{session-auth-dead-5F3NEK57.js.map → session-auth-dead-AVYJASOL.js.map} +0 -0
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
exchangeApiKey,
|
|
3
3
|
getApiKey,
|
|
4
4
|
getHost
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-BOITSKCM.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-RBC22FRC.js";
|
|
29
29
|
import {
|
|
30
30
|
readDailySessionPin,
|
|
31
31
|
sessionTranscriptDir
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-F6U3ZJCG.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-NRNPYXG6.js";
|
|
105
105
|
import {
|
|
106
106
|
claudeJsonPathFor,
|
|
107
107
|
effectiveClaudeJsonPath,
|
|
@@ -13537,4 +13537,4 @@ export {
|
|
|
13537
13537
|
managerInstallSystemUnitCommand,
|
|
13538
13538
|
managerUninstallSystemUnitCommand
|
|
13539
13539
|
};
|
|
13540
|
-
//# sourceMappingURL=chunk-
|
|
13540
|
+
//# sourceMappingURL=chunk-UAO5VMYK.js.map
|
|
@@ -13,9 +13,9 @@ import {
|
|
|
13
13
|
probeClaudeInstalls,
|
|
14
14
|
readsAsNativeInstall,
|
|
15
15
|
shouldRunClaudeCodeUpdater
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-5433KPH4.js";
|
|
17
17
|
import "./chunk-XWVM4KPK.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-NRNPYXG6.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-SUL3OSGB.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
redactPaneFrame,
|
|
10
10
|
sanitizeTerminalFrame
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-NRNPYXG6.js";
|
|
12
12
|
import {
|
|
13
13
|
CLAUDE_CONFIG_DIR_ENV,
|
|
14
14
|
claudeConfigDirFor,
|
|
@@ -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-UC56OJVB.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-D6ZRO2FC.js.map
|
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
tripClass,
|
|
70
70
|
writeEtcEnvironment,
|
|
71
71
|
writeProfileDScript
|
|
72
|
-
} from "../chunk-
|
|
72
|
+
} from "../chunk-UAO5VMYK.js";
|
|
73
73
|
import {
|
|
74
74
|
ApiError,
|
|
75
75
|
adoptHostKeyInProcess,
|
|
@@ -87,7 +87,7 @@ import {
|
|
|
87
87
|
probeHostKey,
|
|
88
88
|
requireHost,
|
|
89
89
|
setConfigHash
|
|
90
|
-
} from "../chunk-
|
|
90
|
+
} from "../chunk-BOITSKCM.js";
|
|
91
91
|
import {
|
|
92
92
|
BLOCKED_ON_PROMPT_DECISION,
|
|
93
93
|
CHANNEL_SECRET_ENV_KEYS,
|
|
@@ -132,6 +132,7 @@ import {
|
|
|
132
132
|
opencodeTmuxSession,
|
|
133
133
|
paneLogPath,
|
|
134
134
|
parseEnvIntegrations,
|
|
135
|
+
parseGatewayToken,
|
|
135
136
|
parseModelPolicy,
|
|
136
137
|
policyResolvedModel,
|
|
137
138
|
prepareForRespawn,
|
|
@@ -171,7 +172,7 @@ import {
|
|
|
171
172
|
webFetchBaselineValue,
|
|
172
173
|
webFetchRestartNeeded,
|
|
173
174
|
writeEgressAllowlist
|
|
174
|
-
} from "../chunk-
|
|
175
|
+
} from "../chunk-RBC22FRC.js";
|
|
175
176
|
import {
|
|
176
177
|
isAgentIdle,
|
|
177
178
|
isStaleForToday,
|
|
@@ -182,7 +183,7 @@ import {
|
|
|
182
183
|
subagentActivityAgeSeconds,
|
|
183
184
|
subagentTranscriptDir,
|
|
184
185
|
transcriptActivityAgeSeconds
|
|
185
|
-
} from "../chunk-
|
|
186
|
+
} from "../chunk-F6U3ZJCG.js";
|
|
186
187
|
import {
|
|
187
188
|
classifyUnanswerablePane,
|
|
188
189
|
focusedConfirmDialogBlock,
|
|
@@ -206,7 +207,7 @@ import {
|
|
|
206
207
|
runSafeCleanup,
|
|
207
208
|
tightestDiskStat,
|
|
208
209
|
withPackageCacheLock
|
|
209
|
-
} from "../chunk-
|
|
210
|
+
} from "../chunk-5433KPH4.js";
|
|
210
211
|
import {
|
|
211
212
|
parsePsRows,
|
|
212
213
|
reapOrphanChannelMcps
|
|
@@ -334,7 +335,7 @@ import {
|
|
|
334
335
|
stabiliseResetInstant,
|
|
335
336
|
sumTranscriptUsageInWindow,
|
|
336
337
|
summarizeTranscriptActivity
|
|
337
|
-
} from "../chunk-
|
|
338
|
+
} from "../chunk-NRNPYXG6.js";
|
|
338
339
|
import {
|
|
339
340
|
CLAUDE_CONFIG_DIR_ENV,
|
|
340
341
|
claudeConfigDirFor,
|
|
@@ -9550,7 +9551,7 @@ function launchesWithClaudeModelFlag(refreshData) {
|
|
|
9550
9551
|
const { modelEnv } = resolveModelPolicySpawnEnv({
|
|
9551
9552
|
policy: parseModelPolicy(refreshData.model_policy),
|
|
9552
9553
|
openRouterMode: false,
|
|
9553
|
-
gatewayToken:
|
|
9554
|
+
gatewayToken: parseGatewayToken(refreshData),
|
|
9554
9555
|
codeName: String(agent["code_name"] ?? "")
|
|
9555
9556
|
});
|
|
9556
9557
|
return Object.keys(modelEnv).length === 0;
|
|
@@ -14187,7 +14188,7 @@ function createFileMigrationReportIO(codeName, log2) {
|
|
|
14187
14188
|
};
|
|
14188
14189
|
}
|
|
14189
14190
|
var managerHostPost = async (path, body) => {
|
|
14190
|
-
const { api: api2, ApiError: ApiError3 } = await import("../api-client-
|
|
14191
|
+
const { api: api2, ApiError: ApiError3 } = await import("../api-client-ATRLQZOU.js");
|
|
14191
14192
|
try {
|
|
14192
14193
|
const json = await api2.post(path, body);
|
|
14193
14194
|
return { status: 200, json };
|
|
@@ -16226,7 +16227,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
|
|
|
16226
16227
|
var dayRolloverInboundHold = /* @__PURE__ */ new Map();
|
|
16227
16228
|
var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
|
|
16228
16229
|
async function channelInboundActivityAgeSecondsFor(codeName) {
|
|
16229
|
-
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-
|
|
16230
|
+
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-KGBRCJQW.js");
|
|
16230
16231
|
const newest = newestPendingInboundActivityMtimeMs(dirname11(paneLogPath(codeName)));
|
|
16231
16232
|
if (newest === null) return null;
|
|
16232
16233
|
return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
|
|
@@ -17042,7 +17043,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
17042
17043
|
var lastVersionCheckAt = 0;
|
|
17043
17044
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
17044
17045
|
var lastResponsivenessProbeAt = 0;
|
|
17045
|
-
var agtCliVersion = true ? "0.28.
|
|
17046
|
+
var agtCliVersion = true ? "0.28.1259" : "dev";
|
|
17046
17047
|
function resolveBrewPath(execFileSync4) {
|
|
17047
17048
|
try {
|
|
17048
17049
|
const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -19041,7 +19042,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
|
|
|
19041
19042
|
if (codeNames.length === 0) return;
|
|
19042
19043
|
void (async () => {
|
|
19043
19044
|
try {
|
|
19044
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
19045
|
+
const { collectDiagnostics } = await import("../persistent-session-UC56OJVB.js");
|
|
19045
19046
|
await api.post("/host/heartbeat", {
|
|
19046
19047
|
host_id: hostId,
|
|
19047
19048
|
agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
|
|
@@ -19184,7 +19185,7 @@ async function pollCycleInner() {
|
|
|
19184
19185
|
}
|
|
19185
19186
|
try {
|
|
19186
19187
|
const { detectHostSecurity } = await import("../host-security-KQYYZZVW.js");
|
|
19187
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
19188
|
+
const { collectDiagnostics } = await import("../persistent-session-UC56OJVB.js");
|
|
19188
19189
|
const diagCodeNames = [...agentState.persistentSessionAgents];
|
|
19189
19190
|
const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor) : void 0;
|
|
19190
19191
|
let tailscaleHostname;
|
|
@@ -19449,7 +19450,7 @@ async function pollCycleInner() {
|
|
|
19449
19450
|
}
|
|
19450
19451
|
try {
|
|
19451
19452
|
const desiredClaudeCodeVersion = hbResp?.desired_claude_code_version?.trim();
|
|
19452
|
-
const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-
|
|
19453
|
+
const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-SUL3OSGB.js");
|
|
19453
19454
|
const securityFloor = currentSecurityFloor();
|
|
19454
19455
|
claudeUpdaterInFlight = true;
|
|
19455
19456
|
if (desiredClaudeCodeVersion && (claudePairLoop.busy || claudePairingInProgress())) {
|
|
@@ -19484,7 +19485,7 @@ async function pollCycleInner() {
|
|
|
19484
19485
|
collectPanelessActivityProbes,
|
|
19485
19486
|
getResponsivenessIntervalMs,
|
|
19486
19487
|
occupancyQualificationClassifications
|
|
19487
|
-
} = await import("../responsiveness-probe-
|
|
19488
|
+
} = await import("../responsiveness-probe-KGBRCJQW.js");
|
|
19488
19489
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
19489
19490
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
19490
19491
|
const probeCodeNames = [...agentState.persistentSessionAgents];
|
|
@@ -19601,7 +19602,7 @@ async function pollCycleInner() {
|
|
|
19601
19602
|
collectResponsivenessProbes,
|
|
19602
19603
|
livePendingInboundOldestAgeSeconds,
|
|
19603
19604
|
parkPendingInbound
|
|
19604
|
-
} = await import("../responsiveness-probe-
|
|
19605
|
+
} = await import("../responsiveness-probe-KGBRCJQW.js");
|
|
19605
19606
|
const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-5PCBGRNY.js");
|
|
19606
19607
|
const wedgeNow = /* @__PURE__ */ new Date();
|
|
19607
19608
|
const liveAgents = agentState.persistentSessionAgents;
|
|
@@ -19887,7 +19888,7 @@ async function pollCycleInner() {
|
|
|
19887
19888
|
}
|
|
19888
19889
|
}
|
|
19889
19890
|
);
|
|
19890
|
-
const { parkPendingInbound } = await import("../responsiveness-probe-
|
|
19891
|
+
const { parkPendingInbound } = await import("../responsiveness-probe-KGBRCJQW.js");
|
|
19891
19892
|
const { parked, deadLettered } = parkPendingInbound(codeName, new Date(fatalNowMs));
|
|
19892
19893
|
paneFatalStreak.delete(codeName);
|
|
19893
19894
|
paneFatalRestarts.set(codeName, [...history, fatalNowMs]);
|
|
@@ -19918,7 +19919,7 @@ async function pollCycleInner() {
|
|
|
19918
19919
|
TRANSCRIPT_MOUNT_ESCALATION_REFRESH_MS,
|
|
19919
19920
|
bindSourceEscalations
|
|
19920
19921
|
} = await import("../transcript-mount-health-OHE6IVJV.js");
|
|
19921
|
-
const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-
|
|
19922
|
+
const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-UC56OJVB.js");
|
|
19922
19923
|
const mountConfig = resolveTranscriptMountConfig();
|
|
19923
19924
|
const liveAgents = agentState.persistentSessionAgents;
|
|
19924
19925
|
for (const tracked of [
|
|
@@ -20083,7 +20084,7 @@ async function pollCycleInner() {
|
|
|
20083
20084
|
}
|
|
20084
20085
|
try {
|
|
20085
20086
|
const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-VR5QGP3J.js");
|
|
20086
|
-
const { probeSessionAuth } = await import("../session-auth-dead-
|
|
20087
|
+
const { probeSessionAuth } = await import("../session-auth-dead-AVYJASOL.js");
|
|
20087
20088
|
const observations = [];
|
|
20088
20089
|
const pendingCacheCommits = [];
|
|
20089
20090
|
const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
|
|
@@ -24062,6 +24063,7 @@ async function ensurePersistentSessionUnchecked(agent, tasks, boardItems, refres
|
|
|
24062
24063
|
const modelPolicy = parseModelPolicy(
|
|
24063
24064
|
refreshData.model_policy
|
|
24064
24065
|
);
|
|
24066
|
+
const modelPolicyGatewayToken = parseGatewayToken(refreshData);
|
|
24065
24067
|
let claudeAuthMode;
|
|
24066
24068
|
let anthropicApiKey;
|
|
24067
24069
|
let anthropicApiKeyFingerprint;
|
|
@@ -24171,18 +24173,21 @@ async function ensurePersistentSessionUnchecked(agent, tasks, boardItems, refres
|
|
|
24171
24173
|
claudeAuthMode,
|
|
24172
24174
|
anthropicApiKeyFingerprint,
|
|
24173
24175
|
claudeAccountFingerprint,
|
|
24174
|
-
|
|
24176
|
+
// ENG-10865: the token's FINGERPRINT rides in the policy component, so a
|
|
24177
|
+
// re-minted or revoked key moves the tuple and the agent respawns onto it.
|
|
24178
|
+
// Without it `policyId@revision` holds still while the credential changes
|
|
24179
|
+
// underneath a running agent, and nothing would ever trigger the restart.
|
|
24180
|
+
modelPolicyComponent: modelPolicyAuthComponent(modelPolicy, modelPolicyGatewayToken)
|
|
24175
24181
|
});
|
|
24176
24182
|
const currentPolicyModel = policyResolvedModel({
|
|
24177
24183
|
policy: modelPolicy,
|
|
24178
24184
|
openRouterMode: Boolean(openRouterForAgent),
|
|
24179
|
-
//
|
|
24180
|
-
//
|
|
24181
|
-
//
|
|
24182
|
-
//
|
|
24183
|
-
//
|
|
24184
|
-
|
|
24185
|
-
gatewayToken: null,
|
|
24185
|
+
// ENG-10865: the SAME value the launcher config carries below, and that is
|
|
24186
|
+
// the whole requirement. A token here and not there (or the reverse)
|
|
24187
|
+
// resolves a gateway binding `blocked` for one and honoured for the other,
|
|
24188
|
+
// and the recorded baseline would then describe an agent that does not
|
|
24189
|
+
// exist. One local, two reads.
|
|
24190
|
+
gatewayToken: modelPolicyGatewayToken,
|
|
24186
24191
|
codeName
|
|
24187
24192
|
});
|
|
24188
24193
|
const currentPolicyId = currentPolicyModel ? modelPolicy?.policyId ?? null : null;
|
|
@@ -24527,17 +24532,23 @@ ${truncateForLog(ctx.tail)}` : `; pane_tail_hash=sha256:${createHash20("sha256")
|
|
|
24527
24532
|
model: openRouterForAgent.model,
|
|
24528
24533
|
smallFastModel: openRouterForAgent.smallFastModel
|
|
24529
24534
|
} : null,
|
|
24530
|
-
// ENG-9483 slice 2 (ADR-0074)
|
|
24531
|
-
// credential
|
|
24532
|
-
//
|
|
24533
|
-
//
|
|
24534
|
-
//
|
|
24535
|
-
// `
|
|
24536
|
-
//
|
|
24537
|
-
//
|
|
24538
|
-
//
|
|
24539
|
-
//
|
|
24535
|
+
// ENG-9483 slice 2 (ADR-0074) + ENG-10865. Both the SHAPE and the
|
|
24536
|
+
// credential now reach the launcher.
|
|
24537
|
+
//
|
|
24538
|
+
// The credential is whatever `/host/refresh` delivered for this agent and
|
|
24539
|
+
// nothing else — see `modelPolicyGatewayToken` above for why there is no
|
|
24540
|
+
// fallback. It is `null` for the entire fleet until delivery is armed, so
|
|
24541
|
+
// a gateway binding still resolves `blocked` and the agent keeps its
|
|
24542
|
+
// existing auth, which is today's behaviour unchanged.
|
|
24543
|
+
//
|
|
24544
|
+
// ENG-9481 is NOT what gated this. That issue is a CUSTODY question about
|
|
24545
|
+
// holding a CUSTOMER's gateway key; this token is the platform's own,
|
|
24546
|
+
// minted per agent, and `resolveBindingCredential` refuses to apply it to
|
|
24547
|
+
// any binding that is not `credential_owner = 'platform'` on our own
|
|
24548
|
+
// gateway origin. The custom-headers shape ENG-9481 decides is still
|
|
24549
|
+
// unbuilt and still unreachable from here.
|
|
24540
24550
|
modelPolicy,
|
|
24551
|
+
modelPolicyGatewayToken,
|
|
24541
24552
|
runId: sessionRunResult.run_id,
|
|
24542
24553
|
agentTimezone,
|
|
24543
24554
|
// ENG-6476: materialize the host-side reply-routing flags into the agent
|
|
@@ -25008,7 +25019,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
25008
25019
|
if (!refreshData) return;
|
|
25009
25020
|
const framework = refreshData.agent?.framework ?? agentFrameworkCache.get(codeName) ?? DEFAULT_FRAMEWORK;
|
|
25010
25021
|
const hostId = await getHostId();
|
|
25011
|
-
const parkForRestart = await import("../responsiveness-probe-
|
|
25022
|
+
const parkForRestart = await import("../responsiveness-probe-KGBRCJQW.js").then(
|
|
25012
25023
|
(m) => m.parkPendingInbound,
|
|
25013
25024
|
(err) => err
|
|
25014
25025
|
);
|
|
@@ -25081,7 +25092,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
25081
25092
|
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}`));
|
|
25082
25093
|
void (async () => {
|
|
25083
25094
|
try {
|
|
25084
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
25095
|
+
const { collectDiagnostics } = await import("../persistent-session-UC56OJVB.js");
|
|
25085
25096
|
await api.post("/host/heartbeat", {
|
|
25086
25097
|
host_id: hostId,
|
|
25087
25098
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
|
|
@@ -25132,7 +25143,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
|
|
|
25132
25143
|
}
|
|
25133
25144
|
try {
|
|
25134
25145
|
const hostId = await getHostId();
|
|
25135
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
25146
|
+
const { collectDiagnostics } = await import("../persistent-session-UC56OJVB.js");
|
|
25136
25147
|
await api.post("/host/heartbeat", {
|
|
25137
25148
|
host_id: hostId,
|
|
25138
25149
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
|
|
@@ -25834,7 +25845,7 @@ async function processClaudePairSessions(agents) {
|
|
|
25834
25845
|
snapshotPairConfig,
|
|
25835
25846
|
// ENG-11659: result -> report body + the manager.log line that records it.
|
|
25836
25847
|
planPairStartReport
|
|
25837
|
-
} = await import("../claude-pair-runtime-
|
|
25848
|
+
} = await import("../claude-pair-runtime-D6ZRO2FC.js");
|
|
25838
25849
|
const { resetClaudeSignin, describeSigninResetForLog, describeSigninResetFailure } = await import("../claude-signin-reset-6IJMMVYG.js");
|
|
25839
25850
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
25840
25851
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|