@integrity-labs/agt-cli 0.28.760 → 0.28.762
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-WDHDYS4T.js → chunk-BTED7TYA.js} +4 -4
- package/dist/{chunk-AN3WGT5E.js → chunk-EU6RSU5V.js} +2 -2
- 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 +13 -13
- package/dist/mcp/index.js +34 -5
- 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-WDHDYS4T.js.map → chunk-BTED7TYA.js.map} +0 -0
- /package/dist/{chunk-AN3WGT5E.js.map → chunk-EU6RSU5V.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-BTED7TYA.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";
|
|
@@ -12808,7 +12808,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
|
|
|
12808
12808
|
var dayRolloverInboundHold = /* @__PURE__ */ new Map();
|
|
12809
12809
|
var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
|
|
12810
12810
|
async function channelInboundActivityAgeSecondsFor(codeName) {
|
|
12811
|
-
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-
|
|
12811
|
+
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-CNSUJALX.js");
|
|
12812
12812
|
const newest = newestPendingInboundActivityMtimeMs(dirname10(paneLogPath(codeName)));
|
|
12813
12813
|
if (newest === null) return null;
|
|
12814
12814
|
return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
|
|
@@ -13468,7 +13468,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
13468
13468
|
var lastVersionCheckAt = 0;
|
|
13469
13469
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
13470
13470
|
var lastResponsivenessProbeAt = 0;
|
|
13471
|
-
var agtCliVersion = true ? "0.28.
|
|
13471
|
+
var agtCliVersion = true ? "0.28.762" : "dev";
|
|
13472
13472
|
function resolveBrewPath(execFileSync3) {
|
|
13473
13473
|
try {
|
|
13474
13474
|
const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -15009,7 +15009,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
|
|
|
15009
15009
|
if (codeNames.length === 0) return;
|
|
15010
15010
|
void (async () => {
|
|
15011
15011
|
try {
|
|
15012
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
15012
|
+
const { collectDiagnostics } = await import("../persistent-session-VS44QKVB.js");
|
|
15013
15013
|
await api.post("/host/heartbeat", {
|
|
15014
15014
|
host_id: hostId,
|
|
15015
15015
|
agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor)
|
|
@@ -15150,7 +15150,7 @@ async function pollCycleInner() {
|
|
|
15150
15150
|
}
|
|
15151
15151
|
try {
|
|
15152
15152
|
const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
|
|
15153
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
15153
|
+
const { collectDiagnostics } = await import("../persistent-session-VS44QKVB.js");
|
|
15154
15154
|
const diagCodeNames = [...agentState.persistentSessionAgents];
|
|
15155
15155
|
const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor) : void 0;
|
|
15156
15156
|
let tailscaleHostname;
|
|
@@ -15319,7 +15319,7 @@ async function pollCycleInner() {
|
|
|
15319
15319
|
collectPanelessActivityProbes,
|
|
15320
15320
|
getResponsivenessIntervalMs,
|
|
15321
15321
|
occupancyQualificationClassifications
|
|
15322
|
-
} = await import("../responsiveness-probe-
|
|
15322
|
+
} = await import("../responsiveness-probe-CNSUJALX.js");
|
|
15323
15323
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
15324
15324
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
15325
15325
|
const probeCodeNames = [...agentState.persistentSessionAgents];
|
|
@@ -15429,7 +15429,7 @@ async function pollCycleInner() {
|
|
|
15429
15429
|
collectResponsivenessProbes,
|
|
15430
15430
|
livePendingInboundOldestAgeSeconds,
|
|
15431
15431
|
parkPendingInbound
|
|
15432
|
-
} = await import("../responsiveness-probe-
|
|
15432
|
+
} = await import("../responsiveness-probe-CNSUJALX.js");
|
|
15433
15433
|
const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-NDP36U7O.js");
|
|
15434
15434
|
const wedgeNow = /* @__PURE__ */ new Date();
|
|
15435
15435
|
const liveAgents = agentState.persistentSessionAgents;
|
|
@@ -15585,7 +15585,7 @@ async function pollCycleInner() {
|
|
|
15585
15585
|
}
|
|
15586
15586
|
try {
|
|
15587
15587
|
const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-JA437JIB.js");
|
|
15588
|
-
const { probeSessionAuth } = await import("../session-auth-dead-
|
|
15588
|
+
const { probeSessionAuth } = await import("../session-auth-dead-3AK3MDNT.js");
|
|
15589
15589
|
const observations = [];
|
|
15590
15590
|
const pendingCacheCommits = [];
|
|
15591
15591
|
const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
|
|
@@ -19563,7 +19563,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
19563
19563
|
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
19564
|
void (async () => {
|
|
19565
19565
|
try {
|
|
19566
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
19566
|
+
const { collectDiagnostics } = await import("../persistent-session-VS44QKVB.js");
|
|
19567
19567
|
await api.post("/host/heartbeat", {
|
|
19568
19568
|
host_id: hostId,
|
|
19569
19569
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor)
|
|
@@ -19609,7 +19609,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
|
|
|
19609
19609
|
}
|
|
19610
19610
|
try {
|
|
19611
19611
|
const hostId = await getHostId();
|
|
19612
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
19612
|
+
const { collectDiagnostics } = await import("../persistent-session-VS44QKVB.js");
|
|
19613
19613
|
await api.post("/host/heartbeat", {
|
|
19614
19614
|
host_id: hostId,
|
|
19615
19615
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor)
|
|
@@ -20245,7 +20245,7 @@ async function processClaudePairSessions(agents) {
|
|
|
20245
20245
|
killPairSession,
|
|
20246
20246
|
pairTmuxSession,
|
|
20247
20247
|
finalizeClaudePairOnboarding
|
|
20248
|
-
} = await import("../claude-pair-runtime-
|
|
20248
|
+
} = await import("../claude-pair-runtime-5CKIB2IM.js");
|
|
20249
20249
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
20250
20250
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|
|
20251
20251
|
const killed = await killPairSession(pairTmuxSession(pairId));
|
package/dist/mcp/index.js
CHANGED
|
@@ -47357,11 +47357,40 @@ function safeDownloadName(name, fallback) {
|
|
|
47357
47357
|
return base.length > 0 ? base : fallback;
|
|
47358
47358
|
}
|
|
47359
47359
|
async function exportArtefactToFile(dir, artefactId, format, item) {
|
|
47360
|
-
const data = await apiPost(
|
|
47361
|
-
|
|
47362
|
-
|
|
47363
|
-
|
|
47364
|
-
|
|
47360
|
+
const data = await apiPost(
|
|
47361
|
+
`/host/artefact/${encodeURIComponent(artefactId)}/export`,
|
|
47362
|
+
{
|
|
47363
|
+
agent_id: AGT_AGENT_ID,
|
|
47364
|
+
format,
|
|
47365
|
+
item
|
|
47366
|
+
},
|
|
47367
|
+
false,
|
|
47368
|
+
// ENG-9725: this call inherited apiPost's 15s default, so the REAL ceiling
|
|
47369
|
+
// on the host export route was 15s — half the ~30s API Gateway limit every
|
|
47370
|
+
// server-side timeout on that route was reasoned against. ENG-9705 sized a
|
|
47371
|
+
// 25s retry budget that could therefore never be reached from here: the
|
|
47372
|
+
// client aborted first, every time, and the budget looked deployed while
|
|
47373
|
+
// being unreachable.
|
|
47374
|
+
//
|
|
47375
|
+
// The number is NOT invented here. FORWARD_TOOL_CALL_TIMEOUT_MS is already
|
|
47376
|
+
// derived as (gateway ceiling − margin) = 26s and already pinned by a test,
|
|
47377
|
+
// so reusing it keeps one derivation of that quantity rather than a second
|
|
47378
|
+
// copy to drift (ENG-9698's reasoning). It satisfies both constraints at
|
|
47379
|
+
// once: comfortably above the ~20s async grace window ADR-0077 settled on,
|
|
47380
|
+
// and below the gateway ceiling as apiPost's own docblock requires — over
|
|
47381
|
+
// it, the gateway replaces our authored error with its opaque envelope and
|
|
47382
|
+
// we lose the ability to say whether the render landed.
|
|
47383
|
+
//
|
|
47384
|
+
// NOT a readiness signal. Raising the budget does not make this caller able
|
|
47385
|
+
// to consume ADR-0077's async response: the `data.base64` read just below
|
|
47386
|
+
// has no branch for a `{ job_id }` body and would throw on one. So a fleet
|
|
47387
|
+
// fully updated to this CLI is converged on the TIMEOUT and no more ready
|
|
47388
|
+
// for the RESPONSE than before. The server's async path must stay dark for
|
|
47389
|
+
// this route until job-response handling ships here (ENG-9729) — reading a
|
|
47390
|
+
// published version number as evidence of a capability it does not carry is
|
|
47391
|
+
// exactly the mistake this comment's first paragraph describes.
|
|
47392
|
+
FORWARD_TOOL_CALL_TIMEOUT_MS
|
|
47393
|
+
);
|
|
47365
47394
|
const fallback = `${artefactId}${item !== void 0 ? `-item-${item + 1}` : ""}.${format}`;
|
|
47366
47395
|
const filePath = join4(dir, safeDownloadName(data.filename, fallback));
|
|
47367
47396
|
const buf = Buffer.from(data.base64, "base64");
|
|
@@ -49,8 +49,8 @@ import {
|
|
|
49
49
|
writeDirectChatSessionState,
|
|
50
50
|
writeEgressAllowlist,
|
|
51
51
|
writePersistentClaudeWrapper
|
|
52
|
-
} from "./chunk-
|
|
53
|
-
import "./chunk-
|
|
52
|
+
} from "./chunk-EU6RSU5V.js";
|
|
53
|
+
import "./chunk-L4KDOGHB.js";
|
|
54
54
|
import "./chunk-XWVM4KPK.js";
|
|
55
55
|
export {
|
|
56
56
|
EGRESS_BASELINE_DOMAINS,
|
|
@@ -104,4 +104,4 @@ export {
|
|
|
104
104
|
writeEgressAllowlist,
|
|
105
105
|
writePersistentClaudeWrapper
|
|
106
106
|
};
|
|
107
|
-
//# sourceMappingURL=persistent-session-
|
|
107
|
+
//# sourceMappingURL=persistent-session-VS44QKVB.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
paneLogPath
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-EU6RSU5V.js";
|
|
4
|
+
import "./chunk-L4KDOGHB.js";
|
|
5
5
|
import "./chunk-XWVM4KPK.js";
|
|
6
6
|
|
|
7
7
|
// src/lib/responsiveness-probe.ts
|
|
@@ -745,4 +745,4 @@ export {
|
|
|
745
745
|
readAndResetSlackReplyBindingClassifications,
|
|
746
746
|
readAndResetSlackReplyTargetClassifications
|
|
747
747
|
};
|
|
748
|
-
//# sourceMappingURL=responsiveness-probe-
|
|
748
|
+
//# sourceMappingURL=responsiveness-probe-CNSUJALX.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
sessionTranscriptDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-L4KDOGHB.js";
|
|
4
4
|
|
|
5
5
|
// src/lib/session-auth-dead.ts
|
|
6
6
|
import { closeSync, openSync, readSync, readdirSync, statSync } from "fs";
|
|
@@ -203,4 +203,4 @@ export {
|
|
|
203
203
|
decideSessionAuthState,
|
|
204
204
|
probeSessionAuth
|
|
205
205
|
};
|
|
206
|
-
//# sourceMappingURL=session-auth-dead-
|
|
206
|
+
//# sourceMappingURL=session-auth-dead-3AK3MDNT.js.map
|