@integrity-labs/agt-cli 0.28.1226 → 0.28.1227
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-SIVBDXES.js → chunk-R7VAE4TW.js} +5 -5
- package/dist/{chunk-XF6SM5RR.js → chunk-SBKONJHH.js} +3 -3
- package/dist/{chunk-M53VVKTM.js → chunk-TI2MHSIG.js} +2 -2
- package/dist/{chunk-DKTSGG7Q.js → chunk-W27SQIGZ.js} +1 -1
- package/dist/{chunk-DKTSGG7Q.js.map → chunk-W27SQIGZ.js.map} +1 -1
- package/dist/{chunk-GBPHP6FI.js → chunk-ZNLUMFFI.js} +2 -2
- package/dist/{claude-code-updater-QFDDREKD.js → claude-code-updater-VVX7EHGC.js} +3 -3
- package/dist/{claude-pair-runtime-3YHQHU45.js → claude-pair-runtime-HL3KRYFB.js} +3 -3
- package/dist/lib/manager-worker.js +33 -22
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/index.js +2 -3
- package/dist/{persistent-session-DBAPNU35.js → persistent-session-JBGVQROM.js} +4 -4
- package/dist/{responsiveness-probe-6S34EWLC.js → responsiveness-probe-5SQMHYCY.js} +4 -4
- package/dist/{session-auth-dead-TDTU2CHO.js → session-auth-dead-YHUDYH33.js} +3 -3
- package/package.json +1 -1
- /package/dist/{chunk-SIVBDXES.js.map → chunk-R7VAE4TW.js.map} +0 -0
- /package/dist/{chunk-XF6SM5RR.js.map → chunk-SBKONJHH.js.map} +0 -0
- /package/dist/{chunk-M53VVKTM.js.map → chunk-TI2MHSIG.js.map} +0 -0
- /package/dist/{chunk-GBPHP6FI.js.map → chunk-ZNLUMFFI.js.map} +0 -0
- /package/dist/{claude-code-updater-QFDDREKD.js.map → claude-code-updater-VVX7EHGC.js.map} +0 -0
- /package/dist/{claude-pair-runtime-3YHQHU45.js.map → claude-pair-runtime-HL3KRYFB.js.map} +0 -0
- /package/dist/{persistent-session-DBAPNU35.js.map → persistent-session-JBGVQROM.js.map} +0 -0
- /package/dist/{responsiveness-probe-6S34EWLC.js.map → responsiveness-probe-5SQMHYCY.js.map} +0 -0
- /package/dist/{session-auth-dead-TDTU2CHO.js.map → session-auth-dead-YHUDYH33.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
encodeClaudeProjectPath
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-W27SQIGZ.js";
|
|
4
4
|
|
|
5
5
|
// src/lib/daily-session.ts
|
|
6
6
|
import { randomUUID } from "crypto";
|
|
@@ -244,4 +244,4 @@ export {
|
|
|
244
244
|
peekPreviousSession,
|
|
245
245
|
readDailySessionPin
|
|
246
246
|
};
|
|
247
|
-
//# sourceMappingURL=chunk-
|
|
247
|
+
//# sourceMappingURL=chunk-ZNLUMFFI.js.map
|
|
@@ -13,9 +13,9 @@ import {
|
|
|
13
13
|
probeClaudeInstalls,
|
|
14
14
|
readsAsNativeInstall,
|
|
15
15
|
shouldRunClaudeCodeUpdater
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-TI2MHSIG.js";
|
|
17
17
|
import "./chunk-XWVM4KPK.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-W27SQIGZ.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-VVX7EHGC.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
redactPaneFrame,
|
|
10
10
|
sanitizeTerminalFrame
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-W27SQIGZ.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-JBGVQROM.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-HL3KRYFB.js.map
|
|
@@ -85,7 +85,7 @@ import {
|
|
|
85
85
|
tripClass,
|
|
86
86
|
writeEtcEnvironment,
|
|
87
87
|
writeProfileDScript
|
|
88
|
-
} from "../chunk-
|
|
88
|
+
} from "../chunk-R7VAE4TW.js";
|
|
89
89
|
import {
|
|
90
90
|
CLAUDE_CODE_SECURITY_FLOOR,
|
|
91
91
|
SELF_UPDATE_TIMEOUTS,
|
|
@@ -99,7 +99,7 @@ import {
|
|
|
99
99
|
runSafeCleanup,
|
|
100
100
|
tightestDiskStat,
|
|
101
101
|
withPackageCacheLock
|
|
102
|
-
} from "../chunk-
|
|
102
|
+
} from "../chunk-TI2MHSIG.js";
|
|
103
103
|
import {
|
|
104
104
|
rewriteSupervisorApiKey,
|
|
105
105
|
supervisorChannelsRefusing
|
|
@@ -192,7 +192,7 @@ import {
|
|
|
192
192
|
webFetchBaselineValue,
|
|
193
193
|
webFetchRestartNeeded,
|
|
194
194
|
writeEgressAllowlist
|
|
195
|
-
} from "../chunk-
|
|
195
|
+
} from "../chunk-SBKONJHH.js";
|
|
196
196
|
import {
|
|
197
197
|
isAgentIdle,
|
|
198
198
|
isStaleForToday,
|
|
@@ -203,7 +203,7 @@ import {
|
|
|
203
203
|
subagentActivityAgeSeconds,
|
|
204
204
|
subagentTranscriptDir,
|
|
205
205
|
transcriptActivityAgeSeconds
|
|
206
|
-
} from "../chunk-
|
|
206
|
+
} from "../chunk-ZNLUMFFI.js";
|
|
207
207
|
import {
|
|
208
208
|
classifyUnanswerablePane,
|
|
209
209
|
focusedConfirmDialogBlock,
|
|
@@ -334,7 +334,7 @@ import {
|
|
|
334
334
|
stabiliseResetInstant,
|
|
335
335
|
sumTranscriptUsageInWindow,
|
|
336
336
|
summarizeTranscriptActivity
|
|
337
|
-
} from "../chunk-
|
|
337
|
+
} from "../chunk-W27SQIGZ.js";
|
|
338
338
|
import {
|
|
339
339
|
CLAUDE_CONFIG_DIR_ENV,
|
|
340
340
|
claudeConfigDirFor,
|
|
@@ -5118,7 +5118,7 @@ function drainScan(scan, dir, log2) {
|
|
|
5118
5118
|
}
|
|
5119
5119
|
return budget > 0;
|
|
5120
5120
|
}
|
|
5121
|
-
function readBackgroundActivity(codeName, dir, sessionId, spawnedAtMs, nowMs, log2) {
|
|
5121
|
+
function readBackgroundActivity(codeName, dir, sessionId, spawnedAtMs, isSpawnSession, nowMs, log2) {
|
|
5122
5122
|
if (!sessionId || !SESSION_ID.test(sessionId)) return NO_BACKGROUND_SIGNAL;
|
|
5123
5123
|
const prev = backgroundScans.get(codeName);
|
|
5124
5124
|
const sameRun = prev?.sessionId === sessionId && prev.spawnedAtMs === spawnedAtMs;
|
|
@@ -5145,6 +5145,9 @@ function readBackgroundActivity(codeName, dir, sessionId, spawnedAtMs, nowMs, lo
|
|
|
5145
5145
|
checkedAt: nowMs,
|
|
5146
5146
|
sessionId,
|
|
5147
5147
|
spawnedAtMs,
|
|
5148
|
+
// A manager restart forgets the scan, and a guessed start can't tie one to a
|
|
5149
|
+
// process. A session past `/clear` can then be missing tasks, so it's unknown.
|
|
5150
|
+
seesWholeProcess: spawnedAtMs !== null && (prev && prev.spawnedAtMs === spawnedAtMs ? prev.seesWholeProcess : isSpawnSession),
|
|
5148
5151
|
offsets: /* @__PURE__ */ new Map(),
|
|
5149
5152
|
skippingLine: /* @__PURE__ */ new Set(),
|
|
5150
5153
|
cutOff: null,
|
|
@@ -5159,7 +5162,7 @@ function readBackgroundActivity(codeName, dir, sessionId, spawnedAtMs, nowMs, lo
|
|
|
5159
5162
|
for (const file of ordered) budget -= scanNewLines(file.path, file.size, scan, budget, log2);
|
|
5160
5163
|
scan.checkedAt = nowMs;
|
|
5161
5164
|
scan.newestSubagentMs = subagents.reduce((n, f) => n === null || f.mtimeMs > n ? f.mtimeMs : n, null);
|
|
5162
|
-
scan.running = budget > 0 ? runningBackgroundTaskCount(scan.ledger) : null;
|
|
5165
|
+
scan.running = budget > 0 && scan.seesWholeProcess ? runningBackgroundTaskCount(scan.ledger) : null;
|
|
5163
5166
|
backgroundScans.set(codeName, scan);
|
|
5164
5167
|
return scan;
|
|
5165
5168
|
} catch (err) {
|
|
@@ -5233,7 +5236,15 @@ function buildSessionActivityReport(args) {
|
|
|
5233
5236
|
nowMs: transcript.checkedAt
|
|
5234
5237
|
});
|
|
5235
5238
|
const processStartMs = args.processStartedAtMs === void 0 ? args.spawnedAtMs ?? null : args.processStartedAtMs;
|
|
5236
|
-
const background = readBackgroundActivity(
|
|
5239
|
+
const background = readBackgroundActivity(
|
|
5240
|
+
args.codeName,
|
|
5241
|
+
args.transcriptDir,
|
|
5242
|
+
liveId,
|
|
5243
|
+
processStartMs,
|
|
5244
|
+
liveId === spawnId,
|
|
5245
|
+
nowMs,
|
|
5246
|
+
args.log
|
|
5247
|
+
);
|
|
5237
5248
|
return {
|
|
5238
5249
|
state: state10,
|
|
5239
5250
|
promptKind: state10 === "blocked_on_prompt" || state10 === "idle_at_prompt" ? pane.promptKind : null,
|
|
@@ -15832,7 +15843,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
|
|
|
15832
15843
|
var dayRolloverInboundHold = /* @__PURE__ */ new Map();
|
|
15833
15844
|
var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
|
|
15834
15845
|
async function channelInboundActivityAgeSecondsFor(codeName) {
|
|
15835
|
-
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-
|
|
15846
|
+
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-5SQMHYCY.js");
|
|
15836
15847
|
const newest = newestPendingInboundActivityMtimeMs(dirname11(paneLogPath(codeName)));
|
|
15837
15848
|
if (newest === null) return null;
|
|
15838
15849
|
return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
|
|
@@ -16632,7 +16643,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
16632
16643
|
var lastVersionCheckAt = 0;
|
|
16633
16644
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
16634
16645
|
var lastResponsivenessProbeAt = 0;
|
|
16635
|
-
var agtCliVersion = true ? "0.28.
|
|
16646
|
+
var agtCliVersion = true ? "0.28.1227" : "dev";
|
|
16636
16647
|
function resolveBrewPath(execFileSync3) {
|
|
16637
16648
|
try {
|
|
16638
16649
|
const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -18629,7 +18640,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
|
|
|
18629
18640
|
if (codeNames.length === 0) return;
|
|
18630
18641
|
void (async () => {
|
|
18631
18642
|
try {
|
|
18632
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
18643
|
+
const { collectDiagnostics } = await import("../persistent-session-JBGVQROM.js");
|
|
18633
18644
|
await api.post("/host/heartbeat", {
|
|
18634
18645
|
host_id: hostId,
|
|
18635
18646
|
agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
|
|
@@ -18772,7 +18783,7 @@ async function pollCycleInner() {
|
|
|
18772
18783
|
}
|
|
18773
18784
|
try {
|
|
18774
18785
|
const { detectHostSecurity } = await import("../host-security-KQYYZZVW.js");
|
|
18775
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
18786
|
+
const { collectDiagnostics } = await import("../persistent-session-JBGVQROM.js");
|
|
18776
18787
|
const diagCodeNames = [...agentState.persistentSessionAgents];
|
|
18777
18788
|
const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor) : void 0;
|
|
18778
18789
|
let tailscaleHostname;
|
|
@@ -19037,7 +19048,7 @@ async function pollCycleInner() {
|
|
|
19037
19048
|
}
|
|
19038
19049
|
try {
|
|
19039
19050
|
const desiredClaudeCodeVersion = hbResp?.desired_claude_code_version?.trim();
|
|
19040
|
-
const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-
|
|
19051
|
+
const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-VVX7EHGC.js");
|
|
19041
19052
|
const securityFloor = currentSecurityFloor();
|
|
19042
19053
|
claudeUpdaterInFlight = true;
|
|
19043
19054
|
if (desiredClaudeCodeVersion && (claudePairLoop.busy || claudePairingInProgress())) {
|
|
@@ -19072,7 +19083,7 @@ async function pollCycleInner() {
|
|
|
19072
19083
|
collectPanelessActivityProbes,
|
|
19073
19084
|
getResponsivenessIntervalMs,
|
|
19074
19085
|
occupancyQualificationClassifications
|
|
19075
|
-
} = await import("../responsiveness-probe-
|
|
19086
|
+
} = await import("../responsiveness-probe-5SQMHYCY.js");
|
|
19076
19087
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
19077
19088
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
19078
19089
|
const probeCodeNames = [...agentState.persistentSessionAgents];
|
|
@@ -19189,7 +19200,7 @@ async function pollCycleInner() {
|
|
|
19189
19200
|
collectResponsivenessProbes,
|
|
19190
19201
|
livePendingInboundOldestAgeSeconds,
|
|
19191
19202
|
parkPendingInbound
|
|
19192
|
-
} = await import("../responsiveness-probe-
|
|
19203
|
+
} = await import("../responsiveness-probe-5SQMHYCY.js");
|
|
19193
19204
|
const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-M6AFZWNU.js");
|
|
19194
19205
|
const wedgeNow = /* @__PURE__ */ new Date();
|
|
19195
19206
|
const liveAgents = agentState.persistentSessionAgents;
|
|
@@ -19475,7 +19486,7 @@ async function pollCycleInner() {
|
|
|
19475
19486
|
}
|
|
19476
19487
|
}
|
|
19477
19488
|
);
|
|
19478
|
-
const { parkPendingInbound } = await import("../responsiveness-probe-
|
|
19489
|
+
const { parkPendingInbound } = await import("../responsiveness-probe-5SQMHYCY.js");
|
|
19479
19490
|
const { parked, deadLettered } = parkPendingInbound(codeName, new Date(fatalNowMs));
|
|
19480
19491
|
paneFatalStreak.delete(codeName);
|
|
19481
19492
|
paneFatalRestarts.set(codeName, [...history, fatalNowMs]);
|
|
@@ -19506,7 +19517,7 @@ async function pollCycleInner() {
|
|
|
19506
19517
|
TRANSCRIPT_MOUNT_ESCALATION_REFRESH_MS,
|
|
19507
19518
|
bindSourceEscalations
|
|
19508
19519
|
} = await import("../transcript-mount-health-OHE6IVJV.js");
|
|
19509
|
-
const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-
|
|
19520
|
+
const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-JBGVQROM.js");
|
|
19510
19521
|
const mountConfig = resolveTranscriptMountConfig();
|
|
19511
19522
|
const liveAgents = agentState.persistentSessionAgents;
|
|
19512
19523
|
for (const tracked of [
|
|
@@ -19671,7 +19682,7 @@ async function pollCycleInner() {
|
|
|
19671
19682
|
}
|
|
19672
19683
|
try {
|
|
19673
19684
|
const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-VR5QGP3J.js");
|
|
19674
|
-
const { probeSessionAuth } = await import("../session-auth-dead-
|
|
19685
|
+
const { probeSessionAuth } = await import("../session-auth-dead-YHUDYH33.js");
|
|
19675
19686
|
const observations = [];
|
|
19676
19687
|
const pendingCacheCommits = [];
|
|
19677
19688
|
const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
|
|
@@ -24417,7 +24428,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
24417
24428
|
try {
|
|
24418
24429
|
const freshId = rotateSessionForWedge(codeName);
|
|
24419
24430
|
consecutiveWedgeCycles.delete(codeName);
|
|
24420
|
-
const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-
|
|
24431
|
+
const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-5SQMHYCY.js");
|
|
24421
24432
|
const { parked, deadLettered } = parkForRestart(codeName, /* @__PURE__ */ new Date());
|
|
24422
24433
|
const parkNote = parked > 0 ? `, ${parked} inbound parked` : "";
|
|
24423
24434
|
const deadNote = deadLettered > 0 ? `, ${deadLettered} undeliverable dead-lettered` : "";
|
|
@@ -24460,7 +24471,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
24460
24471
|
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}`));
|
|
24461
24472
|
void (async () => {
|
|
24462
24473
|
try {
|
|
24463
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
24474
|
+
const { collectDiagnostics } = await import("../persistent-session-JBGVQROM.js");
|
|
24464
24475
|
await api.post("/host/heartbeat", {
|
|
24465
24476
|
host_id: hostId,
|
|
24466
24477
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
|
|
@@ -24511,7 +24522,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
|
|
|
24511
24522
|
}
|
|
24512
24523
|
try {
|
|
24513
24524
|
const hostId = await getHostId();
|
|
24514
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
24525
|
+
const { collectDiagnostics } = await import("../persistent-session-JBGVQROM.js");
|
|
24515
24526
|
await api.post("/host/heartbeat", {
|
|
24516
24527
|
host_id: hostId,
|
|
24517
24528
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
|
|
@@ -25213,7 +25224,7 @@ async function processClaudePairSessions(agents) {
|
|
|
25213
25224
|
snapshotPairConfig,
|
|
25214
25225
|
// ENG-11659: result -> report body + the manager.log line that records it.
|
|
25215
25226
|
planPairStartReport
|
|
25216
|
-
} = await import("../claude-pair-runtime-
|
|
25227
|
+
} = await import("../claude-pair-runtime-HL3KRYFB.js");
|
|
25217
25228
|
const { resetClaudeSignin, describeSigninResetForLog, describeSigninResetFailure } = await import("../claude-signin-reset-6IJMMVYG.js");
|
|
25218
25229
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
25219
25230
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|