@integrity-labs/agt-cli 0.28.888 → 0.28.890
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-OMRYKBFE.js → chunk-AQM4A5JF.js} +139 -3
- package/dist/chunk-AQM4A5JF.js.map +1 -0
- package/dist/{chunk-7LIBFSX6.js → chunk-FHJLOWU2.js} +7 -6
- package/dist/{chunk-7LIBFSX6.js.map → chunk-FHJLOWU2.js.map} +1 -1
- package/dist/{chunk-P2EMIE25.js → chunk-WGMIKXTX.js} +4 -4
- package/dist/{claude-pair-runtime-5UINWQ52.js → claude-pair-runtime-XSOXRHGZ.js} +2 -2
- package/dist/lib/manager-worker.js +14 -14
- package/dist/{persistent-session-RFQKA2H5.js → persistent-session-DVG5WKZZ.js} +15 -3
- package/dist/{responsiveness-probe-65AHLKWV.js → responsiveness-probe-PPI3AFQG.js} +3 -3
- package/dist/{session-auth-dead-LXGSDCB7.js → session-auth-dead-L7TAICNC.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-OMRYKBFE.js.map +0 -1
- /package/dist/{chunk-P2EMIE25.js.map → chunk-WGMIKXTX.js.map} +0 -0
- /package/dist/{claude-pair-runtime-5UINWQ52.js.map → claude-pair-runtime-XSOXRHGZ.js.map} +0 -0
- /package/dist/{persistent-session-RFQKA2H5.js.map → persistent-session-DVG5WKZZ.js.map} +0 -0
- /package/dist/{responsiveness-probe-65AHLKWV.js.map → responsiveness-probe-PPI3AFQG.js.map} +0 -0
- /package/dist/{session-auth-dead-LXGSDCB7.js.map → session-auth-dead-L7TAICNC.js.map} +0 -0
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
parseEnvIntegrations,
|
|
17
17
|
shellQuote,
|
|
18
18
|
summarizeUnanswerablePane
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-AQM4A5JF.js";
|
|
20
20
|
import {
|
|
21
21
|
BIND_FAILURE_QUARANTINE_THRESHOLD,
|
|
22
22
|
INTEGRATIONS_SECTION_END,
|
|
@@ -76,7 +76,7 @@ import {
|
|
|
76
76
|
sessionTranscriptDir,
|
|
77
77
|
worseConnectivityOutcome,
|
|
78
78
|
wrapScheduledTaskPrompt
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-FHJLOWU2.js";
|
|
80
80
|
import {
|
|
81
81
|
parsePsRows
|
|
82
82
|
} from "./chunk-XWVM4KPK.js";
|
|
@@ -6841,7 +6841,7 @@ function exchangeFailureKind(err) {
|
|
|
6841
6841
|
}
|
|
6842
6842
|
|
|
6843
6843
|
// src/lib/api-client.ts
|
|
6844
|
-
var agtCliVersion = true ? "0.28.
|
|
6844
|
+
var agtCliVersion = true ? "0.28.890" : "dev";
|
|
6845
6845
|
var lastConfigHash = null;
|
|
6846
6846
|
function setConfigHash(hash) {
|
|
6847
6847
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -11451,4 +11451,4 @@ export {
|
|
|
11451
11451
|
managerInstallSystemUnitCommand,
|
|
11452
11452
|
managerUninstallSystemUnitCommand
|
|
11453
11453
|
};
|
|
11454
|
-
//# sourceMappingURL=chunk-
|
|
11454
|
+
//# sourceMappingURL=chunk-WGMIKXTX.js.map
|
|
@@ -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-DVG5WKZZ.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-XSOXRHGZ.js.map
|
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
safeWriteJsonAtomic,
|
|
64
64
|
setConfigHash,
|
|
65
65
|
tripClass
|
|
66
|
-
} from "../chunk-
|
|
66
|
+
} from "../chunk-WGMIKXTX.js";
|
|
67
67
|
import {
|
|
68
68
|
getProjectDir as getProjectDir2,
|
|
69
69
|
getReadyTasks,
|
|
@@ -136,7 +136,7 @@ import {
|
|
|
136
136
|
takeZombieDetection,
|
|
137
137
|
toOpencodeModel,
|
|
138
138
|
writeEgressAllowlist
|
|
139
|
-
} from "../chunk-
|
|
139
|
+
} from "../chunk-AQM4A5JF.js";
|
|
140
140
|
import {
|
|
141
141
|
ACCOUNT_ENFORCEMENT_MARKER_FILENAME,
|
|
142
142
|
AnchorSessionClient,
|
|
@@ -231,7 +231,7 @@ import {
|
|
|
231
231
|
subagentActivityAgeSeconds,
|
|
232
232
|
sumTranscriptUsageInWindow,
|
|
233
233
|
transcriptActivityAgeSeconds
|
|
234
|
-
} from "../chunk-
|
|
234
|
+
} from "../chunk-FHJLOWU2.js";
|
|
235
235
|
import {
|
|
236
236
|
reapOrphanChannelMcps
|
|
237
237
|
} from "../chunk-XWVM4KPK.js";
|
|
@@ -13023,7 +13023,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
|
|
|
13023
13023
|
var dayRolloverInboundHold = /* @__PURE__ */ new Map();
|
|
13024
13024
|
var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
|
|
13025
13025
|
async function channelInboundActivityAgeSecondsFor(codeName) {
|
|
13026
|
-
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-
|
|
13026
|
+
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-PPI3AFQG.js");
|
|
13027
13027
|
const newest = newestPendingInboundActivityMtimeMs(dirname11(paneLogPath(codeName)));
|
|
13028
13028
|
if (newest === null) return null;
|
|
13029
13029
|
return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
|
|
@@ -13691,7 +13691,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
13691
13691
|
var lastVersionCheckAt = 0;
|
|
13692
13692
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
13693
13693
|
var lastResponsivenessProbeAt = 0;
|
|
13694
|
-
var agtCliVersion = true ? "0.28.
|
|
13694
|
+
var agtCliVersion = true ? "0.28.890" : "dev";
|
|
13695
13695
|
function resolveBrewPath(execFileSync2) {
|
|
13696
13696
|
try {
|
|
13697
13697
|
const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -15281,7 +15281,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
|
|
|
15281
15281
|
if (codeNames.length === 0) return;
|
|
15282
15282
|
void (async () => {
|
|
15283
15283
|
try {
|
|
15284
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
15284
|
+
const { collectDiagnostics } = await import("../persistent-session-DVG5WKZZ.js");
|
|
15285
15285
|
await api.post("/host/heartbeat", {
|
|
15286
15286
|
host_id: hostId,
|
|
15287
15287
|
agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor)
|
|
@@ -15423,7 +15423,7 @@ async function pollCycleInner() {
|
|
|
15423
15423
|
}
|
|
15424
15424
|
try {
|
|
15425
15425
|
const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
|
|
15426
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
15426
|
+
const { collectDiagnostics } = await import("../persistent-session-DVG5WKZZ.js");
|
|
15427
15427
|
const diagCodeNames = [...agentState.persistentSessionAgents];
|
|
15428
15428
|
const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor) : void 0;
|
|
15429
15429
|
let tailscaleHostname;
|
|
@@ -15592,7 +15592,7 @@ async function pollCycleInner() {
|
|
|
15592
15592
|
collectPanelessActivityProbes,
|
|
15593
15593
|
getResponsivenessIntervalMs,
|
|
15594
15594
|
occupancyQualificationClassifications
|
|
15595
|
-
} = await import("../responsiveness-probe-
|
|
15595
|
+
} = await import("../responsiveness-probe-PPI3AFQG.js");
|
|
15596
15596
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
15597
15597
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
15598
15598
|
const probeCodeNames = [...agentState.persistentSessionAgents];
|
|
@@ -15709,7 +15709,7 @@ async function pollCycleInner() {
|
|
|
15709
15709
|
collectResponsivenessProbes,
|
|
15710
15710
|
livePendingInboundOldestAgeSeconds,
|
|
15711
15711
|
parkPendingInbound
|
|
15712
|
-
} = await import("../responsiveness-probe-
|
|
15712
|
+
} = await import("../responsiveness-probe-PPI3AFQG.js");
|
|
15713
15713
|
const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-NDP36U7O.js");
|
|
15714
15714
|
const wedgeNow = /* @__PURE__ */ new Date();
|
|
15715
15715
|
const liveAgents = agentState.persistentSessionAgents;
|
|
@@ -15865,7 +15865,7 @@ async function pollCycleInner() {
|
|
|
15865
15865
|
}
|
|
15866
15866
|
try {
|
|
15867
15867
|
const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-JA437JIB.js");
|
|
15868
|
-
const { probeSessionAuth } = await import("../session-auth-dead-
|
|
15868
|
+
const { probeSessionAuth } = await import("../session-auth-dead-L7TAICNC.js");
|
|
15869
15869
|
const observations = [];
|
|
15870
15870
|
const pendingCacheCommits = [];
|
|
15871
15871
|
const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
|
|
@@ -20128,7 +20128,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
20128
20128
|
try {
|
|
20129
20129
|
const freshId = rotateSessionForWedge(codeName);
|
|
20130
20130
|
consecutiveWedgeCycles.delete(codeName);
|
|
20131
|
-
const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-
|
|
20131
|
+
const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-PPI3AFQG.js");
|
|
20132
20132
|
const { parked, deadLettered } = parkForRestart(codeName, /* @__PURE__ */ new Date());
|
|
20133
20133
|
const parkNote = parked > 0 ? `, ${parked} inbound parked` : "";
|
|
20134
20134
|
const deadNote = deadLettered > 0 ? `, ${deadLettered} undeliverable dead-lettered` : "";
|
|
@@ -20171,7 +20171,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
20171
20171
|
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}`));
|
|
20172
20172
|
void (async () => {
|
|
20173
20173
|
try {
|
|
20174
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
20174
|
+
const { collectDiagnostics } = await import("../persistent-session-DVG5WKZZ.js");
|
|
20175
20175
|
await api.post("/host/heartbeat", {
|
|
20176
20176
|
host_id: hostId,
|
|
20177
20177
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor)
|
|
@@ -20222,7 +20222,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
|
|
|
20222
20222
|
}
|
|
20223
20223
|
try {
|
|
20224
20224
|
const hostId = await getHostId();
|
|
20225
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
20225
|
+
const { collectDiagnostics } = await import("../persistent-session-DVG5WKZZ.js");
|
|
20226
20226
|
await api.post("/host/heartbeat", {
|
|
20227
20227
|
host_id: hostId,
|
|
20228
20228
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor)
|
|
@@ -20864,7 +20864,7 @@ async function processClaudePairSessions(agents) {
|
|
|
20864
20864
|
killPairSession,
|
|
20865
20865
|
pairTmuxSession,
|
|
20866
20866
|
finalizeClaudePairOnboarding
|
|
20867
|
-
} = await import("../claude-pair-runtime-
|
|
20867
|
+
} = await import("../claude-pair-runtime-XSOXRHGZ.js");
|
|
20868
20868
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
20869
20869
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|
|
20870
20870
|
const killed = await killPairSession(pairTmuxSession(pairId));
|
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
|
+
CLAUDE_HOST_WIDE,
|
|
3
|
+
CLAUDE_NULLED_FILES,
|
|
4
|
+
CLAUDE_PER_AGENT_DIRS,
|
|
2
5
|
EGRESS_BASELINE_DOMAINS,
|
|
3
6
|
PANE_AGENT_ID_PROBE_TIMEOUT_MS,
|
|
4
7
|
REQUIRED_SPAWN_ENV,
|
|
5
8
|
SEND_KEYS_ENTER_DELAY_MS,
|
|
6
9
|
TMUX_BOOTSTRAP_HOLD_CMD,
|
|
7
10
|
TMUX_BOOTSTRAP_SESSION_PREFIX,
|
|
11
|
+
TRANSCRIPT_MASK_DIR_PREFIX,
|
|
8
12
|
_internals,
|
|
9
13
|
applyPaneAgentIdVerdict,
|
|
10
14
|
buildDockerRunCommand,
|
|
11
15
|
buildEgressAllowlist,
|
|
12
16
|
buildSpawnEnv,
|
|
13
17
|
buildTmuxSpawnPlan,
|
|
18
|
+
claudeStateDirFor,
|
|
14
19
|
collectDiagnostics,
|
|
15
20
|
describePaneAgentIdMismatch,
|
|
16
21
|
detectFailureSignature,
|
|
@@ -19,6 +24,7 @@ import {
|
|
|
19
24
|
effectiveIsolationMode,
|
|
20
25
|
egressAllowlistHostPath,
|
|
21
26
|
egressMode,
|
|
27
|
+
ensureClaudeStateLayout,
|
|
22
28
|
findForeignAgentIdsInMcpConfig,
|
|
23
29
|
findMissingSpawnEnv,
|
|
24
30
|
getLastFailureContext,
|
|
@@ -56,22 +62,27 @@ import {
|
|
|
56
62
|
writeDirectChatSessionState,
|
|
57
63
|
writeEgressAllowlist,
|
|
58
64
|
writePersistentClaudeWrapper
|
|
59
|
-
} from "./chunk-
|
|
60
|
-
import "./chunk-
|
|
65
|
+
} from "./chunk-AQM4A5JF.js";
|
|
66
|
+
import "./chunk-FHJLOWU2.js";
|
|
61
67
|
import "./chunk-XWVM4KPK.js";
|
|
62
68
|
export {
|
|
69
|
+
CLAUDE_HOST_WIDE,
|
|
70
|
+
CLAUDE_NULLED_FILES,
|
|
71
|
+
CLAUDE_PER_AGENT_DIRS,
|
|
63
72
|
EGRESS_BASELINE_DOMAINS,
|
|
64
73
|
PANE_AGENT_ID_PROBE_TIMEOUT_MS,
|
|
65
74
|
REQUIRED_SPAWN_ENV,
|
|
66
75
|
SEND_KEYS_ENTER_DELAY_MS,
|
|
67
76
|
TMUX_BOOTSTRAP_HOLD_CMD,
|
|
68
77
|
TMUX_BOOTSTRAP_SESSION_PREFIX,
|
|
78
|
+
TRANSCRIPT_MASK_DIR_PREFIX,
|
|
69
79
|
_internals,
|
|
70
80
|
applyPaneAgentIdVerdict,
|
|
71
81
|
buildDockerRunCommand,
|
|
72
82
|
buildEgressAllowlist,
|
|
73
83
|
buildSpawnEnv,
|
|
74
84
|
buildTmuxSpawnPlan,
|
|
85
|
+
claudeStateDirFor,
|
|
75
86
|
collectDiagnostics,
|
|
76
87
|
describePaneAgentIdMismatch,
|
|
77
88
|
detectFailureSignature,
|
|
@@ -80,6 +91,7 @@ export {
|
|
|
80
91
|
effectiveIsolationMode,
|
|
81
92
|
egressAllowlistHostPath,
|
|
82
93
|
egressMode,
|
|
94
|
+
ensureClaudeStateLayout,
|
|
83
95
|
findForeignAgentIdsInMcpConfig,
|
|
84
96
|
findMissingSpawnEnv,
|
|
85
97
|
getLastFailureContext,
|
|
@@ -118,4 +130,4 @@ export {
|
|
|
118
130
|
writeEgressAllowlist,
|
|
119
131
|
writePersistentClaudeWrapper
|
|
120
132
|
};
|
|
121
|
-
//# sourceMappingURL=persistent-session-
|
|
133
|
+
//# sourceMappingURL=persistent-session-DVG5WKZZ.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
paneLogPath
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-AQM4A5JF.js";
|
|
4
|
+
import "./chunk-FHJLOWU2.js";
|
|
5
5
|
import "./chunk-XWVM4KPK.js";
|
|
6
6
|
|
|
7
7
|
// src/lib/responsiveness-probe.ts
|
|
@@ -764,4 +764,4 @@ export {
|
|
|
764
764
|
readAndResetSlackReplyBindingClassifications,
|
|
765
765
|
readAndResetSlackReplyTargetClassifications
|
|
766
766
|
};
|
|
767
|
-
//# sourceMappingURL=responsiveness-probe-
|
|
767
|
+
//# sourceMappingURL=responsiveness-probe-PPI3AFQG.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
sessionTranscriptDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FHJLOWU2.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-L7TAICNC.js.map
|