@integrity-labs/agt-cli 0.28.761 → 0.28.763
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 +5 -5
- package/dist/{chunk-AN3WGT5E.js → chunk-EU6RSU5V.js} +2 -2
- package/dist/{chunk-BTLFG3T7.js → chunk-HVOHM3PB.js} +4 -4
- package/dist/{chunk-N2NU3G3O.js → chunk-L4KDOGHB.js} +1 -1
- package/dist/chunk-L4KDOGHB.js.map +1 -0
- package/dist/{claude-pair-runtime-EVZ7HB5B.js → claude-pair-runtime-5CKIB2IM.js} +2 -2
- package/dist/lib/manager-worker.js +21 -16
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/{persistent-session-A4VOIP23.js → persistent-session-VS44QKVB.js} +3 -3
- package/dist/{responsiveness-probe-YE2GJWSW.js → responsiveness-probe-CNSUJALX.js} +3 -3
- package/dist/{session-auth-dead-POZGLW6Q.js → session-auth-dead-3AK3MDNT.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-N2NU3G3O.js.map +0 -1
- /package/dist/{chunk-AN3WGT5E.js.map → chunk-EU6RSU5V.js.map} +0 -0
- /package/dist/{chunk-BTLFG3T7.js.map → chunk-HVOHM3PB.js.map} +0 -0
- /package/dist/{claude-pair-runtime-EVZ7HB5B.js.map → claude-pair-runtime-5CKIB2IM.js.map} +0 -0
- /package/dist/{persistent-session-A4VOIP23.js.map → persistent-session-VS44QKVB.js.map} +0 -0
- /package/dist/{responsiveness-probe-YE2GJWSW.js.map → responsiveness-probe-CNSUJALX.js.map} +0 -0
- /package/dist/{session-auth-dead-POZGLW6Q.js.map → session-auth-dead-3AK3MDNT.js.map} +0 -0
|
@@ -100,7 +100,7 @@ async function spawnPairSession(session) {
|
|
|
100
100
|
return { ok: true };
|
|
101
101
|
} catch {
|
|
102
102
|
}
|
|
103
|
-
const { resolveClaudeBinary } = await import("./persistent-session-
|
|
103
|
+
const { resolveClaudeBinary } = await import("./persistent-session-VS44QKVB.js");
|
|
104
104
|
const claudeBin = resolveClaudeBinary();
|
|
105
105
|
const pairEnv = {
|
|
106
106
|
...process.env,
|
|
@@ -373,4 +373,4 @@ export {
|
|
|
373
373
|
startClaudePair,
|
|
374
374
|
submitClaudePairCode
|
|
375
375
|
};
|
|
376
|
-
//# sourceMappingURL=claude-pair-runtime-
|
|
376
|
+
//# sourceMappingURL=claude-pair-runtime-5CKIB2IM.js.map
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
safeWriteJsonAtomic,
|
|
59
59
|
setConfigHash,
|
|
60
60
|
tripClass
|
|
61
|
-
} from "../chunk-
|
|
61
|
+
} from "../chunk-HVOHM3PB.js";
|
|
62
62
|
import {
|
|
63
63
|
getProjectDir as getProjectDir2,
|
|
64
64
|
getReadyTasks,
|
|
@@ -119,7 +119,7 @@ import {
|
|
|
119
119
|
takeZombieDetection,
|
|
120
120
|
toOpencodeModel,
|
|
121
121
|
writeEgressAllowlist
|
|
122
|
-
} from "../chunk-
|
|
122
|
+
} from "../chunk-EU6RSU5V.js";
|
|
123
123
|
import {
|
|
124
124
|
ACCOUNT_ENFORCEMENT_MARKER_FILENAME,
|
|
125
125
|
AnchorSessionClient,
|
|
@@ -208,7 +208,7 @@ import {
|
|
|
208
208
|
subagentActivityAgeSeconds,
|
|
209
209
|
sumTranscriptUsageInWindow,
|
|
210
210
|
transcriptActivityAgeSeconds
|
|
211
|
-
} from "../chunk-
|
|
211
|
+
} from "../chunk-L4KDOGHB.js";
|
|
212
212
|
import {
|
|
213
213
|
reapOrphanChannelMcps
|
|
214
214
|
} from "../chunk-XWVM4KPK.js";
|
|
@@ -1622,11 +1622,16 @@ function shouldRestartForCredentialChange(recorded, current) {
|
|
|
1622
1622
|
// src/lib/connectivity-probe-runner.ts
|
|
1623
1623
|
var DEFAULT_INTERVAL_MS = 60 * 60 * 1e3;
|
|
1624
1624
|
var DEFAULT_MAX_PER_RUN = 25;
|
|
1625
|
-
function isDue(lastCheck, now, intervalMs) {
|
|
1625
|
+
function isDue(lastCheck, now, intervalMs, reconnectQuiescedUntil) {
|
|
1626
1626
|
if (!lastCheck) return true;
|
|
1627
1627
|
const t = Date.parse(lastCheck);
|
|
1628
1628
|
if (Number.isNaN(t)) return true;
|
|
1629
|
-
|
|
1629
|
+
if (now - t >= intervalMs) return true;
|
|
1630
|
+
if (reconnectQuiescedUntil) {
|
|
1631
|
+
const q = Date.parse(reconnectQuiescedUntil);
|
|
1632
|
+
if (!Number.isNaN(q) && q <= now && t < q) return true;
|
|
1633
|
+
}
|
|
1634
|
+
return false;
|
|
1630
1635
|
}
|
|
1631
1636
|
async function runConnectivityProbes(integrations, options = {}) {
|
|
1632
1637
|
const now = (options.now?.() ?? /* @__PURE__ */ new Date()).getTime();
|
|
@@ -1634,7 +1639,7 @@ async function runConnectivityProbes(integrations, options = {}) {
|
|
|
1634
1639
|
const maxPerRun = options.maxPerRun ?? DEFAULT_MAX_PER_RUN;
|
|
1635
1640
|
const probeDeps = options.probeDeps ?? {};
|
|
1636
1641
|
const execute = options.executeProbe ?? executeConnectivityProbe;
|
|
1637
|
-
const due = integrations.filter((i) => isDue(i.last_connectivity_check_at, now, intervalMs)).sort((a, b) => {
|
|
1642
|
+
const due = integrations.filter((i) => isDue(i.last_connectivity_check_at, now, intervalMs, i.reconnect_quiesced_until)).sort((a, b) => {
|
|
1638
1643
|
const ta = a.last_connectivity_check_at ? Date.parse(a.last_connectivity_check_at) : 0;
|
|
1639
1644
|
const tb = b.last_connectivity_check_at ? Date.parse(b.last_connectivity_check_at) : 0;
|
|
1640
1645
|
return ta - tb;
|
|
@@ -12808,7 +12813,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
|
|
|
12808
12813
|
var dayRolloverInboundHold = /* @__PURE__ */ new Map();
|
|
12809
12814
|
var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
|
|
12810
12815
|
async function channelInboundActivityAgeSecondsFor(codeName) {
|
|
12811
|
-
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-
|
|
12816
|
+
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-CNSUJALX.js");
|
|
12812
12817
|
const newest = newestPendingInboundActivityMtimeMs(dirname10(paneLogPath(codeName)));
|
|
12813
12818
|
if (newest === null) return null;
|
|
12814
12819
|
return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
|
|
@@ -13468,7 +13473,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
13468
13473
|
var lastVersionCheckAt = 0;
|
|
13469
13474
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
13470
13475
|
var lastResponsivenessProbeAt = 0;
|
|
13471
|
-
var agtCliVersion = true ? "0.28.
|
|
13476
|
+
var agtCliVersion = true ? "0.28.763" : "dev";
|
|
13472
13477
|
function resolveBrewPath(execFileSync3) {
|
|
13473
13478
|
try {
|
|
13474
13479
|
const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -15009,7 +15014,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
|
|
|
15009
15014
|
if (codeNames.length === 0) return;
|
|
15010
15015
|
void (async () => {
|
|
15011
15016
|
try {
|
|
15012
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
15017
|
+
const { collectDiagnostics } = await import("../persistent-session-VS44QKVB.js");
|
|
15013
15018
|
await api.post("/host/heartbeat", {
|
|
15014
15019
|
host_id: hostId,
|
|
15015
15020
|
agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor)
|
|
@@ -15150,7 +15155,7 @@ async function pollCycleInner() {
|
|
|
15150
15155
|
}
|
|
15151
15156
|
try {
|
|
15152
15157
|
const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
|
|
15153
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
15158
|
+
const { collectDiagnostics } = await import("../persistent-session-VS44QKVB.js");
|
|
15154
15159
|
const diagCodeNames = [...agentState.persistentSessionAgents];
|
|
15155
15160
|
const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor) : void 0;
|
|
15156
15161
|
let tailscaleHostname;
|
|
@@ -15319,7 +15324,7 @@ async function pollCycleInner() {
|
|
|
15319
15324
|
collectPanelessActivityProbes,
|
|
15320
15325
|
getResponsivenessIntervalMs,
|
|
15321
15326
|
occupancyQualificationClassifications
|
|
15322
|
-
} = await import("../responsiveness-probe-
|
|
15327
|
+
} = await import("../responsiveness-probe-CNSUJALX.js");
|
|
15323
15328
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
15324
15329
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
15325
15330
|
const probeCodeNames = [...agentState.persistentSessionAgents];
|
|
@@ -15429,7 +15434,7 @@ async function pollCycleInner() {
|
|
|
15429
15434
|
collectResponsivenessProbes,
|
|
15430
15435
|
livePendingInboundOldestAgeSeconds,
|
|
15431
15436
|
parkPendingInbound
|
|
15432
|
-
} = await import("../responsiveness-probe-
|
|
15437
|
+
} = await import("../responsiveness-probe-CNSUJALX.js");
|
|
15433
15438
|
const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-NDP36U7O.js");
|
|
15434
15439
|
const wedgeNow = /* @__PURE__ */ new Date();
|
|
15435
15440
|
const liveAgents = agentState.persistentSessionAgents;
|
|
@@ -15585,7 +15590,7 @@ async function pollCycleInner() {
|
|
|
15585
15590
|
}
|
|
15586
15591
|
try {
|
|
15587
15592
|
const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-JA437JIB.js");
|
|
15588
|
-
const { probeSessionAuth } = await import("../session-auth-dead-
|
|
15593
|
+
const { probeSessionAuth } = await import("../session-auth-dead-3AK3MDNT.js");
|
|
15589
15594
|
const observations = [];
|
|
15590
15595
|
const pendingCacheCommits = [];
|
|
15591
15596
|
const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
|
|
@@ -19563,7 +19568,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
19563
19568
|
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}`));
|
|
19564
19569
|
void (async () => {
|
|
19565
19570
|
try {
|
|
19566
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
19571
|
+
const { collectDiagnostics } = await import("../persistent-session-VS44QKVB.js");
|
|
19567
19572
|
await api.post("/host/heartbeat", {
|
|
19568
19573
|
host_id: hostId,
|
|
19569
19574
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor)
|
|
@@ -19609,7 +19614,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
|
|
|
19609
19614
|
}
|
|
19610
19615
|
try {
|
|
19611
19616
|
const hostId = await getHostId();
|
|
19612
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
19617
|
+
const { collectDiagnostics } = await import("../persistent-session-VS44QKVB.js");
|
|
19613
19618
|
await api.post("/host/heartbeat", {
|
|
19614
19619
|
host_id: hostId,
|
|
19615
19620
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor)
|
|
@@ -20245,7 +20250,7 @@ async function processClaudePairSessions(agents) {
|
|
|
20245
20250
|
killPairSession,
|
|
20246
20251
|
pairTmuxSession,
|
|
20247
20252
|
finalizeClaudePairOnboarding
|
|
20248
|
-
} = await import("../claude-pair-runtime-
|
|
20253
|
+
} = await import("../claude-pair-runtime-5CKIB2IM.js");
|
|
20249
20254
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
20250
20255
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|
|
20251
20256
|
const killed = await killPairSession(pairTmuxSession(pairId));
|