@integrity-labs/agt-cli 0.28.1189 → 0.28.1190
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/bin/agt.js +6 -6
- package/dist/{chunk-BG7IPLTE.js → chunk-55M26Q4M.js} +2 -2
- package/dist/{chunk-M5QY6SXB.js → chunk-7GZKHF45.js} +9 -4
- package/dist/{chunk-M5QY6SXB.js.map → chunk-7GZKHF45.js.map} +1 -1
- package/dist/{chunk-CJ3KE25W.js → chunk-EFTLDAKN.js} +3 -3
- package/dist/{chunk-GYY5LC6U.js → chunk-KV6ZNGTG.js} +2 -2
- package/dist/{chunk-6C22ELAZ.js → chunk-NVLV6XHL.js} +54 -21
- package/dist/chunk-NVLV6XHL.js.map +1 -0
- package/dist/{claude-code-updater-CQ2SWFEJ.js → claude-code-updater-IU23JJZI.js} +3 -3
- package/dist/{claude-pair-runtime-N54HX4ZR.js → claude-pair-runtime-GMXVV5AJ.js} +3 -3
- package/dist/lib/manager-worker.js +28 -21
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/{persistent-session-NL7N3MA4.js → persistent-session-7PBVDLFI.js} +4 -4
- package/dist/{responsiveness-probe-BMLAPOIY.js → responsiveness-probe-RSH4EMQP.js} +4 -4
- package/dist/{session-auth-dead-PTHDHHK4.js → session-auth-dead-M2YABEQU.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-6C22ELAZ.js.map +0 -1
- /package/dist/{chunk-BG7IPLTE.js.map → chunk-55M26Q4M.js.map} +0 -0
- /package/dist/{chunk-CJ3KE25W.js.map → chunk-EFTLDAKN.js.map} +0 -0
- /package/dist/{chunk-GYY5LC6U.js.map → chunk-KV6ZNGTG.js.map} +0 -0
- /package/dist/{claude-code-updater-CQ2SWFEJ.js.map → claude-code-updater-IU23JJZI.js.map} +0 -0
- /package/dist/{claude-pair-runtime-N54HX4ZR.js.map → claude-pair-runtime-GMXVV5AJ.js.map} +0 -0
- /package/dist/{persistent-session-NL7N3MA4.js.map → persistent-session-7PBVDLFI.js.map} +0 -0
- /package/dist/{responsiveness-probe-BMLAPOIY.js.map → responsiveness-probe-RSH4EMQP.js.map} +0 -0
- /package/dist/{session-auth-dead-PTHDHHK4.js.map → session-auth-dead-M2YABEQU.js.map} +0 -0
|
@@ -13,9 +13,9 @@ import {
|
|
|
13
13
|
probeClaudeInstalls,
|
|
14
14
|
readsAsNativeInstall,
|
|
15
15
|
shouldRunClaudeCodeUpdater
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-55M26Q4M.js";
|
|
17
17
|
import "./chunk-XWVM4KPK.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-7GZKHF45.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-IU23JJZI.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
redactPaneFrame,
|
|
10
10
|
sanitizeTerminalFrame
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-7GZKHF45.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-7PBVDLFI.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-GMXVV5AJ.js.map
|
|
@@ -74,6 +74,7 @@ import {
|
|
|
74
74
|
reapStaleMcpChildren,
|
|
75
75
|
reaperRestartBreakerReason,
|
|
76
76
|
reconstructQuarantinedMcpServerEntry,
|
|
77
|
+
redactKnownValues,
|
|
77
78
|
requireHost,
|
|
78
79
|
resolveEffectivePinRaw,
|
|
79
80
|
safeWriteJsonAtomic,
|
|
@@ -82,7 +83,7 @@ import {
|
|
|
82
83
|
tripClass,
|
|
83
84
|
writeEtcEnvironment,
|
|
84
85
|
writeProfileDScript
|
|
85
|
-
} from "../chunk-
|
|
86
|
+
} from "../chunk-NVLV6XHL.js";
|
|
86
87
|
import {
|
|
87
88
|
CLAUDE_CODE_SECURITY_FLOOR,
|
|
88
89
|
SELF_UPDATE_TIMEOUTS,
|
|
@@ -96,7 +97,7 @@ import {
|
|
|
96
97
|
runSafeCleanup,
|
|
97
98
|
tightestDiskStat,
|
|
98
99
|
withPackageCacheLock
|
|
99
|
-
} from "../chunk-
|
|
100
|
+
} from "../chunk-55M26Q4M.js";
|
|
100
101
|
import {
|
|
101
102
|
rewriteSupervisorApiKey,
|
|
102
103
|
supervisorChannelsRefusing
|
|
@@ -189,7 +190,7 @@ import {
|
|
|
189
190
|
webFetchBaselineValue,
|
|
190
191
|
webFetchRestartNeeded,
|
|
191
192
|
writeEgressAllowlist
|
|
192
|
-
} from "../chunk-
|
|
193
|
+
} from "../chunk-EFTLDAKN.js";
|
|
193
194
|
import {
|
|
194
195
|
isAgentIdle,
|
|
195
196
|
isStaleForToday,
|
|
@@ -199,7 +200,7 @@ import {
|
|
|
199
200
|
sessionTranscriptDir,
|
|
200
201
|
subagentActivityAgeSeconds,
|
|
201
202
|
transcriptActivityAgeSeconds
|
|
202
|
-
} from "../chunk-
|
|
203
|
+
} from "../chunk-KV6ZNGTG.js";
|
|
203
204
|
import {
|
|
204
205
|
classifyUnanswerablePane,
|
|
205
206
|
focusedConfirmDialogBlock,
|
|
@@ -325,7 +326,7 @@ import {
|
|
|
325
326
|
stabiliseResetInstant,
|
|
326
327
|
sumTranscriptUsageInWindow,
|
|
327
328
|
summarizeTranscriptActivity
|
|
328
|
-
} from "../chunk-
|
|
329
|
+
} from "../chunk-7GZKHF45.js";
|
|
329
330
|
import {
|
|
330
331
|
CLAUDE_CONFIG_DIR_ENV,
|
|
331
332
|
claudeConfigDirFor,
|
|
@@ -2939,7 +2940,13 @@ async function runConnectivityProbes(integrations, options = {}) {
|
|
|
2939
2940
|
integration_id: integ.id,
|
|
2940
2941
|
scope: integ.scope,
|
|
2941
2942
|
status: outcome.status,
|
|
2942
|
-
|
|
2943
|
+
// ENG-11374: this message is stored and shown on operator reads, and every probe
|
|
2944
|
+
// kind passes through here, so its secrets are removed here.
|
|
2945
|
+
...outcome.message ? {
|
|
2946
|
+
message: redactKnownValues(outcome.message, [process.env, options.probeEnv, integ.credentials]),
|
|
2947
|
+
// Tells the API it may store this message: see `message_redacted` below.
|
|
2948
|
+
message_redacted: true
|
|
2949
|
+
} : {},
|
|
2943
2950
|
// ENG-8226: report WHAT the probe did, not just what it concluded. The
|
|
2944
2951
|
// API persists this to `last_connectivity_evidence` so an `ok` is
|
|
2945
2952
|
// self-describing and a green verdict can be justified rather than
|
|
@@ -15481,7 +15488,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
|
|
|
15481
15488
|
var dayRolloverInboundHold = /* @__PURE__ */ new Map();
|
|
15482
15489
|
var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
|
|
15483
15490
|
async function channelInboundActivityAgeSecondsFor(codeName) {
|
|
15484
|
-
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-
|
|
15491
|
+
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-RSH4EMQP.js");
|
|
15485
15492
|
const newest = newestPendingInboundActivityMtimeMs(dirname11(paneLogPath(codeName)));
|
|
15486
15493
|
if (newest === null) return null;
|
|
15487
15494
|
return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
|
|
@@ -15953,7 +15960,7 @@ async function runAgentConnectivityProbes(agent, integrations, projectDir) {
|
|
|
15953
15960
|
remote_mcp: i.remote_mcp ?? null
|
|
15954
15961
|
};
|
|
15955
15962
|
}),
|
|
15956
|
-
{ probeDeps, intervalMs: intervalSec * 1e3 }
|
|
15963
|
+
{ probeDeps, probeEnv, intervalMs: intervalSec * 1e3 }
|
|
15957
15964
|
);
|
|
15958
15965
|
if (result.reports.length > 0) {
|
|
15959
15966
|
await api.post("/host/integration-connectivity", {
|
|
@@ -16278,7 +16285,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
16278
16285
|
var lastVersionCheckAt = 0;
|
|
16279
16286
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
16280
16287
|
var lastResponsivenessProbeAt = 0;
|
|
16281
|
-
var agtCliVersion = true ? "0.28.
|
|
16288
|
+
var agtCliVersion = true ? "0.28.1190" : "dev";
|
|
16282
16289
|
function resolveBrewPath(execFileSync3) {
|
|
16283
16290
|
try {
|
|
16284
16291
|
const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -18182,7 +18189,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
|
|
|
18182
18189
|
if (codeNames.length === 0) return;
|
|
18183
18190
|
void (async () => {
|
|
18184
18191
|
try {
|
|
18185
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
18192
|
+
const { collectDiagnostics } = await import("../persistent-session-7PBVDLFI.js");
|
|
18186
18193
|
await api.post("/host/heartbeat", {
|
|
18187
18194
|
host_id: hostId,
|
|
18188
18195
|
agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
|
|
@@ -18325,7 +18332,7 @@ async function pollCycleInner() {
|
|
|
18325
18332
|
}
|
|
18326
18333
|
try {
|
|
18327
18334
|
const { detectHostSecurity } = await import("../host-security-KQYYZZVW.js");
|
|
18328
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
18335
|
+
const { collectDiagnostics } = await import("../persistent-session-7PBVDLFI.js");
|
|
18329
18336
|
const diagCodeNames = [...agentState.persistentSessionAgents];
|
|
18330
18337
|
const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor) : void 0;
|
|
18331
18338
|
let tailscaleHostname;
|
|
@@ -18580,7 +18587,7 @@ async function pollCycleInner() {
|
|
|
18580
18587
|
}
|
|
18581
18588
|
try {
|
|
18582
18589
|
const desiredClaudeCodeVersion = hbResp?.desired_claude_code_version?.trim();
|
|
18583
|
-
const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-
|
|
18590
|
+
const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-IU23JJZI.js");
|
|
18584
18591
|
const securityFloor = currentSecurityFloor();
|
|
18585
18592
|
claudeUpdaterInFlight = true;
|
|
18586
18593
|
if (desiredClaudeCodeVersion && (claudePairLoop.busy || claudePairingInProgress())) {
|
|
@@ -18615,7 +18622,7 @@ async function pollCycleInner() {
|
|
|
18615
18622
|
collectPanelessActivityProbes,
|
|
18616
18623
|
getResponsivenessIntervalMs,
|
|
18617
18624
|
occupancyQualificationClassifications
|
|
18618
|
-
} = await import("../responsiveness-probe-
|
|
18625
|
+
} = await import("../responsiveness-probe-RSH4EMQP.js");
|
|
18619
18626
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
18620
18627
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
18621
18628
|
const probeCodeNames = [...agentState.persistentSessionAgents];
|
|
@@ -18732,7 +18739,7 @@ async function pollCycleInner() {
|
|
|
18732
18739
|
collectResponsivenessProbes,
|
|
18733
18740
|
livePendingInboundOldestAgeSeconds,
|
|
18734
18741
|
parkPendingInbound
|
|
18735
|
-
} = await import("../responsiveness-probe-
|
|
18742
|
+
} = await import("../responsiveness-probe-RSH4EMQP.js");
|
|
18736
18743
|
const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-M6AFZWNU.js");
|
|
18737
18744
|
const wedgeNow = /* @__PURE__ */ new Date();
|
|
18738
18745
|
const liveAgents = agentState.persistentSessionAgents;
|
|
@@ -19018,7 +19025,7 @@ async function pollCycleInner() {
|
|
|
19018
19025
|
}
|
|
19019
19026
|
}
|
|
19020
19027
|
);
|
|
19021
|
-
const { parkPendingInbound } = await import("../responsiveness-probe-
|
|
19028
|
+
const { parkPendingInbound } = await import("../responsiveness-probe-RSH4EMQP.js");
|
|
19022
19029
|
const { parked, deadLettered } = parkPendingInbound(codeName, new Date(fatalNowMs));
|
|
19023
19030
|
paneFatalStreak.delete(codeName);
|
|
19024
19031
|
paneFatalRestarts.set(codeName, [...history, fatalNowMs]);
|
|
@@ -19049,7 +19056,7 @@ async function pollCycleInner() {
|
|
|
19049
19056
|
TRANSCRIPT_MOUNT_ESCALATION_REFRESH_MS,
|
|
19050
19057
|
bindSourceEscalations
|
|
19051
19058
|
} = await import("../transcript-mount-health-OHE6IVJV.js");
|
|
19052
|
-
const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-
|
|
19059
|
+
const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-7PBVDLFI.js");
|
|
19053
19060
|
const mountConfig = resolveTranscriptMountConfig();
|
|
19054
19061
|
const liveAgents = agentState.persistentSessionAgents;
|
|
19055
19062
|
for (const tracked of [
|
|
@@ -19214,7 +19221,7 @@ async function pollCycleInner() {
|
|
|
19214
19221
|
}
|
|
19215
19222
|
try {
|
|
19216
19223
|
const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-VR5QGP3J.js");
|
|
19217
|
-
const { probeSessionAuth } = await import("../session-auth-dead-
|
|
19224
|
+
const { probeSessionAuth } = await import("../session-auth-dead-M2YABEQU.js");
|
|
19218
19225
|
const observations = [];
|
|
19219
19226
|
const pendingCacheCommits = [];
|
|
19220
19227
|
const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
|
|
@@ -23916,7 +23923,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
23916
23923
|
try {
|
|
23917
23924
|
const freshId = rotateSessionForWedge(codeName);
|
|
23918
23925
|
consecutiveWedgeCycles.delete(codeName);
|
|
23919
|
-
const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-
|
|
23926
|
+
const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-RSH4EMQP.js");
|
|
23920
23927
|
const { parked, deadLettered } = parkForRestart(codeName, /* @__PURE__ */ new Date());
|
|
23921
23928
|
const parkNote = parked > 0 ? `, ${parked} inbound parked` : "";
|
|
23922
23929
|
const deadNote = deadLettered > 0 ? `, ${deadLettered} undeliverable dead-lettered` : "";
|
|
@@ -23959,7 +23966,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
23959
23966
|
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}`));
|
|
23960
23967
|
void (async () => {
|
|
23961
23968
|
try {
|
|
23962
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
23969
|
+
const { collectDiagnostics } = await import("../persistent-session-7PBVDLFI.js");
|
|
23963
23970
|
await api.post("/host/heartbeat", {
|
|
23964
23971
|
host_id: hostId,
|
|
23965
23972
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
|
|
@@ -24010,7 +24017,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
|
|
|
24010
24017
|
}
|
|
24011
24018
|
try {
|
|
24012
24019
|
const hostId = await getHostId();
|
|
24013
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
24020
|
+
const { collectDiagnostics } = await import("../persistent-session-7PBVDLFI.js");
|
|
24014
24021
|
await api.post("/host/heartbeat", {
|
|
24015
24022
|
host_id: hostId,
|
|
24016
24023
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
|
|
@@ -24712,7 +24719,7 @@ async function processClaudePairSessions(agents) {
|
|
|
24712
24719
|
snapshotPairConfig,
|
|
24713
24720
|
// ENG-11659: result -> report body + the manager.log line that records it.
|
|
24714
24721
|
planPairStartReport
|
|
24715
|
-
} = await import("../claude-pair-runtime-
|
|
24722
|
+
} = await import("../claude-pair-runtime-GMXVV5AJ.js");
|
|
24716
24723
|
const { resetClaudeSignin, describeSigninResetForLog, describeSigninResetFailure } = await import("../claude-signin-reset-6IJMMVYG.js");
|
|
24717
24724
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
24718
24725
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|