@integrity-labs/agt-cli 0.28.783 → 0.28.784
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-YA5PGNN2.js → chunk-P4HONWYQ.js} +2 -2
- package/dist/{chunk-HTBJUN4V.js → chunk-VY6C5UIH.js} +4 -4
- package/dist/{chunk-TNETRPYC.js → chunk-WAE44B3T.js} +8 -1
- package/dist/chunk-WAE44B3T.js.map +1 -0
- package/dist/{claude-pair-runtime-2PDHNNKZ.js → claude-pair-runtime-E6TFXEK3.js} +2 -2
- package/dist/lib/manager-worker.js +18 -15
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/{persistent-session-PX5UJ3WY.js → persistent-session-HJTJ6EKF.js} +3 -3
- package/dist/{responsiveness-probe-U4BEPPKX.js → responsiveness-probe-E3VDOXGQ.js} +3 -3
- package/dist/{session-auth-dead-2TLMBIM6.js → session-auth-dead-UWEWK2WY.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-TNETRPYC.js.map +0 -1
- /package/dist/{chunk-YA5PGNN2.js.map → chunk-P4HONWYQ.js.map} +0 -0
- /package/dist/{chunk-HTBJUN4V.js.map → chunk-VY6C5UIH.js.map} +0 -0
- /package/dist/{claude-pair-runtime-2PDHNNKZ.js.map → claude-pair-runtime-E6TFXEK3.js.map} +0 -0
- /package/dist/{persistent-session-PX5UJ3WY.js.map → persistent-session-HJTJ6EKF.js.map} +0 -0
- /package/dist/{responsiveness-probe-U4BEPPKX.js.map → responsiveness-probe-E3VDOXGQ.js.map} +0 -0
- /package/dist/{session-auth-dead-2TLMBIM6.js.map → session-auth-dead-UWEWK2WY.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-HJTJ6EKF.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-E6TFXEK3.js.map
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
safeWriteJsonAtomic,
|
|
59
59
|
setConfigHash,
|
|
60
60
|
tripClass
|
|
61
|
-
} from "../chunk-
|
|
61
|
+
} from "../chunk-VY6C5UIH.js";
|
|
62
62
|
import {
|
|
63
63
|
getProjectDir as getProjectDir2,
|
|
64
64
|
getReadyTasks,
|
|
@@ -120,7 +120,7 @@ import {
|
|
|
120
120
|
takeZombieDetection,
|
|
121
121
|
toOpencodeModel,
|
|
122
122
|
writeEgressAllowlist
|
|
123
|
-
} from "../chunk-
|
|
123
|
+
} from "../chunk-P4HONWYQ.js";
|
|
124
124
|
import {
|
|
125
125
|
ACCOUNT_ENFORCEMENT_MARKER_FILENAME,
|
|
126
126
|
AnchorSessionClient,
|
|
@@ -205,13 +205,14 @@ import {
|
|
|
205
205
|
resolveChannels,
|
|
206
206
|
resolveDmTarget,
|
|
207
207
|
scrubPreservingIdentifiers,
|
|
208
|
+
senderPolicyIsEnforcedOn,
|
|
208
209
|
serializeAccountEnforcementMarker,
|
|
209
210
|
sessionTranscriptDir,
|
|
210
211
|
stabiliseResetInstant,
|
|
211
212
|
subagentActivityAgeSeconds,
|
|
212
213
|
sumTranscriptUsageInWindow,
|
|
213
214
|
transcriptActivityAgeSeconds
|
|
214
|
-
} from "../chunk-
|
|
215
|
+
} from "../chunk-WAE44B3T.js";
|
|
215
216
|
import {
|
|
216
217
|
reapOrphanChannelMcps
|
|
217
218
|
} from "../chunk-XWVM4KPK.js";
|
|
@@ -12900,7 +12901,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
|
|
|
12900
12901
|
var dayRolloverInboundHold = /* @__PURE__ */ new Map();
|
|
12901
12902
|
var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
|
|
12902
12903
|
async function channelInboundActivityAgeSecondsFor(codeName) {
|
|
12903
|
-
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-
|
|
12904
|
+
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-E3VDOXGQ.js");
|
|
12904
12905
|
const newest = newestPendingInboundActivityMtimeMs(dirname10(paneLogPath(codeName)));
|
|
12905
12906
|
if (newest === null) return null;
|
|
12906
12907
|
return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
|
|
@@ -13560,7 +13561,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
13560
13561
|
var lastVersionCheckAt = 0;
|
|
13561
13562
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
13562
13563
|
var lastResponsivenessProbeAt = 0;
|
|
13563
|
-
var agtCliVersion = true ? "0.28.
|
|
13564
|
+
var agtCliVersion = true ? "0.28.784" : "dev";
|
|
13564
13565
|
function resolveBrewPath(execFileSync2) {
|
|
13565
13566
|
try {
|
|
13566
13567
|
const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -15107,7 +15108,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
|
|
|
15107
15108
|
if (codeNames.length === 0) return;
|
|
15108
15109
|
void (async () => {
|
|
15109
15110
|
try {
|
|
15110
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
15111
|
+
const { collectDiagnostics } = await import("../persistent-session-HJTJ6EKF.js");
|
|
15111
15112
|
await api.post("/host/heartbeat", {
|
|
15112
15113
|
host_id: hostId,
|
|
15113
15114
|
agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor)
|
|
@@ -15248,7 +15249,7 @@ async function pollCycleInner() {
|
|
|
15248
15249
|
}
|
|
15249
15250
|
try {
|
|
15250
15251
|
const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
|
|
15251
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
15252
|
+
const { collectDiagnostics } = await import("../persistent-session-HJTJ6EKF.js");
|
|
15252
15253
|
const diagCodeNames = [...agentState.persistentSessionAgents];
|
|
15253
15254
|
const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor) : void 0;
|
|
15254
15255
|
let tailscaleHostname;
|
|
@@ -15417,7 +15418,7 @@ async function pollCycleInner() {
|
|
|
15417
15418
|
collectPanelessActivityProbes,
|
|
15418
15419
|
getResponsivenessIntervalMs,
|
|
15419
15420
|
occupancyQualificationClassifications
|
|
15420
|
-
} = await import("../responsiveness-probe-
|
|
15421
|
+
} = await import("../responsiveness-probe-E3VDOXGQ.js");
|
|
15421
15422
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
15422
15423
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
15423
15424
|
const probeCodeNames = [...agentState.persistentSessionAgents];
|
|
@@ -15527,7 +15528,7 @@ async function pollCycleInner() {
|
|
|
15527
15528
|
collectResponsivenessProbes,
|
|
15528
15529
|
livePendingInboundOldestAgeSeconds,
|
|
15529
15530
|
parkPendingInbound
|
|
15530
|
-
} = await import("../responsiveness-probe-
|
|
15531
|
+
} = await import("../responsiveness-probe-E3VDOXGQ.js");
|
|
15531
15532
|
const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-NDP36U7O.js");
|
|
15532
15533
|
const wedgeNow = /* @__PURE__ */ new Date();
|
|
15533
15534
|
const liveAgents = agentState.persistentSessionAgents;
|
|
@@ -15683,7 +15684,7 @@ async function pollCycleInner() {
|
|
|
15683
15684
|
}
|
|
15684
15685
|
try {
|
|
15685
15686
|
const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-JA437JIB.js");
|
|
15686
|
-
const { probeSessionAuth } = await import("../session-auth-dead-
|
|
15687
|
+
const { probeSessionAuth } = await import("../session-auth-dead-UWEWK2WY.js");
|
|
15687
15688
|
const observations = [];
|
|
15688
15689
|
const pendingCacheCommits = [];
|
|
15689
15690
|
const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
|
|
@@ -16965,7 +16966,7 @@ async function processAgent(agent, agentStates, managedToolkits) {
|
|
|
16965
16966
|
const telegramPeerDisabled = channelId === "telegram" ? peerDisabledMode === "all" : void 0;
|
|
16966
16967
|
const telegramPeers = channelId === "telegram" ? extractCharterTelegramPeers(refreshData.charter?.raw_content ?? "", gateContext) : void 0;
|
|
16967
16968
|
const slackPeers = channelId === "slack" ? extractCharterSlackPeers(refreshData.charter?.raw_content ?? "", gateContext) : void 0;
|
|
16968
|
-
const senderPolicyForCall = channelId
|
|
16969
|
+
const senderPolicyForCall = senderPolicyIsEnforcedOn(channelId) ? refreshData.sender_policy ?? void 0 : void 0;
|
|
16969
16970
|
let agentAvatarUrl;
|
|
16970
16971
|
if (channelId === "slack") {
|
|
16971
16972
|
const rawAvatarUrl = refreshData.agent.avatar_url ?? void 0;
|
|
@@ -17141,7 +17142,9 @@ async function processAgent(agent, agentStates, managedToolkits) {
|
|
|
17141
17142
|
);
|
|
17142
17143
|
}
|
|
17143
17144
|
if (channelConfigConvergedThisTick) {
|
|
17144
|
-
const hasSenderPolicyChannel = currentChannelIds.
|
|
17145
|
+
const hasSenderPolicyChannel = [...currentChannelIds].some(
|
|
17146
|
+
(id) => senderPolicyIsEnforcedOn(id)
|
|
17147
|
+
);
|
|
17145
17148
|
const senderPolicyForRestartHash = refreshData.sender_policy ?? null;
|
|
17146
17149
|
const senderPolicyHash = computeSenderPolicyRestartHash(senderPolicyForRestartHash);
|
|
17147
17150
|
const senderPolicyRestrictive = isSenderPolicyRestrictive(senderPolicyForRestartHash);
|
|
@@ -19776,7 +19779,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
19776
19779
|
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}`));
|
|
19777
19780
|
void (async () => {
|
|
19778
19781
|
try {
|
|
19779
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
19782
|
+
const { collectDiagnostics } = await import("../persistent-session-HJTJ6EKF.js");
|
|
19780
19783
|
await api.post("/host/heartbeat", {
|
|
19781
19784
|
host_id: hostId,
|
|
19782
19785
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor)
|
|
@@ -19822,7 +19825,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
|
|
|
19822
19825
|
}
|
|
19823
19826
|
try {
|
|
19824
19827
|
const hostId = await getHostId();
|
|
19825
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
19828
|
+
const { collectDiagnostics } = await import("../persistent-session-HJTJ6EKF.js");
|
|
19826
19829
|
await api.post("/host/heartbeat", {
|
|
19827
19830
|
host_id: hostId,
|
|
19828
19831
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor)
|
|
@@ -20458,7 +20461,7 @@ async function processClaudePairSessions(agents) {
|
|
|
20458
20461
|
killPairSession,
|
|
20459
20462
|
pairTmuxSession,
|
|
20460
20463
|
finalizeClaudePairOnboarding
|
|
20461
|
-
} = await import("../claude-pair-runtime-
|
|
20464
|
+
} = await import("../claude-pair-runtime-E6TFXEK3.js");
|
|
20462
20465
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
20463
20466
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|
|
20464
20467
|
const killed = await killPairSession(pairTmuxSession(pairId));
|