@integrity-labs/agt-cli 0.28.825 → 0.28.826
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-PVPLNARY.js → chunk-GJY3KZG6.js} +39 -1
- package/dist/chunk-GJY3KZG6.js.map +1 -0
- package/dist/{chunk-QICBWFRI.js → chunk-JO7QTVLM.js} +19 -48
- package/dist/chunk-JO7QTVLM.js.map +1 -0
- package/dist/{chunk-2DT4VGWU.js → chunk-Q3JUZZDB.js} +2 -2
- package/dist/{claude-pair-runtime-5QM5OTAZ.js → claude-pair-runtime-SWB525DM.js} +2 -2
- package/dist/lib/manager-worker.js +21 -14
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/{persistent-session-2Y4O3COI.js → persistent-session-BOHUJCZL.js} +3 -3
- package/dist/{responsiveness-probe-OGFPDMFN.js → responsiveness-probe-5DYKPYPP.js} +3 -3
- package/dist/{session-auth-dead-UDG6GY3U.js → session-auth-dead-LFNU6AUU.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-PVPLNARY.js.map +0 -1
- package/dist/chunk-QICBWFRI.js.map +0 -1
- /package/dist/{chunk-2DT4VGWU.js.map → chunk-Q3JUZZDB.js.map} +0 -0
- /package/dist/{claude-pair-runtime-5QM5OTAZ.js.map → claude-pair-runtime-SWB525DM.js.map} +0 -0
- /package/dist/{persistent-session-2Y4O3COI.js.map → persistent-session-BOHUJCZL.js.map} +0 -0
- /package/dist/{responsiveness-probe-OGFPDMFN.js.map → responsiveness-probe-5DYKPYPP.js.map} +0 -0
- /package/dist/{session-auth-dead-UDG6GY3U.js.map → session-auth-dead-LFNU6AUU.js.map} +0 -0
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
rotateDailySession,
|
|
19
19
|
sessionFileExists,
|
|
20
20
|
todayLocalIso
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-GJY3KZG6.js";
|
|
22
22
|
import {
|
|
23
23
|
reapOrphanChannelMcps
|
|
24
24
|
} from "./chunk-XWVM4KPK.js";
|
|
@@ -5312,4 +5312,4 @@ export {
|
|
|
5312
5312
|
stopAllSessionsAndWait,
|
|
5313
5313
|
getProjectDir
|
|
5314
5314
|
};
|
|
5315
|
-
//# sourceMappingURL=chunk-
|
|
5315
|
+
//# sourceMappingURL=chunk-Q3JUZZDB.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-BOHUJCZL.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-SWB525DM.js.map
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
safeWriteJsonAtomic,
|
|
60
60
|
setConfigHash,
|
|
61
61
|
tripClass
|
|
62
|
-
} from "../chunk-
|
|
62
|
+
} from "../chunk-JO7QTVLM.js";
|
|
63
63
|
import {
|
|
64
64
|
getProjectDir as getProjectDir2,
|
|
65
65
|
getReadyTasks,
|
|
@@ -124,7 +124,7 @@ import {
|
|
|
124
124
|
takeZombieDetection,
|
|
125
125
|
toOpencodeModel,
|
|
126
126
|
writeEgressAllowlist
|
|
127
|
-
} from "../chunk-
|
|
127
|
+
} from "../chunk-Q3JUZZDB.js";
|
|
128
128
|
import {
|
|
129
129
|
ACCOUNT_ENFORCEMENT_MARKER_FILENAME,
|
|
130
130
|
AnchorSessionClient,
|
|
@@ -154,6 +154,7 @@ import {
|
|
|
154
154
|
buildFailureCategoryPromptLines,
|
|
155
155
|
buildHostUsageReading,
|
|
156
156
|
buildScheduledTaskContextBlocks,
|
|
157
|
+
buildSlackThirdPartyBotsEnvValue,
|
|
157
158
|
classifyActor,
|
|
158
159
|
classifyCursorAdvance,
|
|
159
160
|
classifyOutput,
|
|
@@ -195,6 +196,8 @@ import {
|
|
|
195
196
|
isVacuousDeliverReason,
|
|
196
197
|
laneTagFragment,
|
|
197
198
|
minutesSinceLocalMidnight,
|
|
199
|
+
normaliseSlackPeerAgentMode,
|
|
200
|
+
normaliseSlackPeerGroupIds,
|
|
198
201
|
pairToolCallBrackets,
|
|
199
202
|
parseDeliverAssertion,
|
|
200
203
|
parseDeliveryTarget,
|
|
@@ -216,7 +219,7 @@ import {
|
|
|
216
219
|
subagentActivityAgeSeconds,
|
|
217
220
|
sumTranscriptUsageInWindow,
|
|
218
221
|
transcriptActivityAgeSeconds
|
|
219
|
-
} from "../chunk-
|
|
222
|
+
} from "../chunk-GJY3KZG6.js";
|
|
220
223
|
import {
|
|
221
224
|
reapOrphanChannelMcps
|
|
222
225
|
} from "../chunk-XWVM4KPK.js";
|
|
@@ -837,7 +840,11 @@ function extractSlackBehaviourSubset(config2) {
|
|
|
837
840
|
skip_reaction: (config2?.["skip_reaction"] ?? "").trim(),
|
|
838
841
|
// Mirror the adapter's defensive filter exactly — a malformed entry the
|
|
839
842
|
// adapter would drop must not count as an env change.
|
|
840
|
-
allowed_users: Array.isArray(rawAllowed) ? rawAllowed.filter((v) => typeof v === "string" && v.trim().length > 0).map((v) => v.trim()) : []
|
|
843
|
+
allowed_users: Array.isArray(rawAllowed) ? rawAllowed.filter((v) => typeof v === "string" && v.trim().length > 0).map((v) => v.trim()) : [],
|
|
844
|
+
// ENG-10028: the adapter's own functions, not a copy of them.
|
|
845
|
+
peer_agent_mode: normaliseSlackPeerAgentMode(config2?.["peer_agent_mode"]),
|
|
846
|
+
peer_group_ids: normaliseSlackPeerGroupIds(config2?.["peer_group_ids"]),
|
|
847
|
+
third_party_bots: buildSlackThirdPartyBotsEnvValue(config2?.["third_party_bots"]) ?? ""
|
|
841
848
|
};
|
|
842
849
|
}
|
|
843
850
|
function isSlackBehaviourRestrictive(subset) {
|
|
@@ -12919,7 +12926,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
|
|
|
12919
12926
|
var dayRolloverInboundHold = /* @__PURE__ */ new Map();
|
|
12920
12927
|
var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
|
|
12921
12928
|
async function channelInboundActivityAgeSecondsFor(codeName) {
|
|
12922
|
-
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-
|
|
12929
|
+
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-5DYKPYPP.js");
|
|
12923
12930
|
const newest = newestPendingInboundActivityMtimeMs(dirname10(paneLogPath(codeName)));
|
|
12924
12931
|
if (newest === null) return null;
|
|
12925
12932
|
return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
|
|
@@ -13587,7 +13594,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
13587
13594
|
var lastVersionCheckAt = 0;
|
|
13588
13595
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
13589
13596
|
var lastResponsivenessProbeAt = 0;
|
|
13590
|
-
var agtCliVersion = true ? "0.28.
|
|
13597
|
+
var agtCliVersion = true ? "0.28.826" : "dev";
|
|
13591
13598
|
function resolveBrewPath(execFileSync2) {
|
|
13592
13599
|
try {
|
|
13593
13600
|
const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -15177,7 +15184,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
|
|
|
15177
15184
|
if (codeNames.length === 0) return;
|
|
15178
15185
|
void (async () => {
|
|
15179
15186
|
try {
|
|
15180
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
15187
|
+
const { collectDiagnostics } = await import("../persistent-session-BOHUJCZL.js");
|
|
15181
15188
|
await api.post("/host/heartbeat", {
|
|
15182
15189
|
host_id: hostId,
|
|
15183
15190
|
agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor)
|
|
@@ -15318,7 +15325,7 @@ async function pollCycleInner() {
|
|
|
15318
15325
|
}
|
|
15319
15326
|
try {
|
|
15320
15327
|
const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
|
|
15321
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
15328
|
+
const { collectDiagnostics } = await import("../persistent-session-BOHUJCZL.js");
|
|
15322
15329
|
const diagCodeNames = [...agentState.persistentSessionAgents];
|
|
15323
15330
|
const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor) : void 0;
|
|
15324
15331
|
let tailscaleHostname;
|
|
@@ -15487,7 +15494,7 @@ async function pollCycleInner() {
|
|
|
15487
15494
|
collectPanelessActivityProbes,
|
|
15488
15495
|
getResponsivenessIntervalMs,
|
|
15489
15496
|
occupancyQualificationClassifications
|
|
15490
|
-
} = await import("../responsiveness-probe-
|
|
15497
|
+
} = await import("../responsiveness-probe-5DYKPYPP.js");
|
|
15491
15498
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
15492
15499
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
15493
15500
|
const probeCodeNames = [...agentState.persistentSessionAgents];
|
|
@@ -15604,7 +15611,7 @@ async function pollCycleInner() {
|
|
|
15604
15611
|
collectResponsivenessProbes,
|
|
15605
15612
|
livePendingInboundOldestAgeSeconds,
|
|
15606
15613
|
parkPendingInbound
|
|
15607
|
-
} = await import("../responsiveness-probe-
|
|
15614
|
+
} = await import("../responsiveness-probe-5DYKPYPP.js");
|
|
15608
15615
|
const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-NDP36U7O.js");
|
|
15609
15616
|
const wedgeNow = /* @__PURE__ */ new Date();
|
|
15610
15617
|
const liveAgents = agentState.persistentSessionAgents;
|
|
@@ -15760,7 +15767,7 @@ async function pollCycleInner() {
|
|
|
15760
15767
|
}
|
|
15761
15768
|
try {
|
|
15762
15769
|
const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-JA437JIB.js");
|
|
15763
|
-
const { probeSessionAuth } = await import("../session-auth-dead-
|
|
15770
|
+
const { probeSessionAuth } = await import("../session-auth-dead-LFNU6AUU.js");
|
|
15764
15771
|
const observations = [];
|
|
15765
15772
|
const pendingCacheCommits = [];
|
|
15766
15773
|
const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
|
|
@@ -19962,7 +19969,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
19962
19969
|
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}`));
|
|
19963
19970
|
void (async () => {
|
|
19964
19971
|
try {
|
|
19965
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
19972
|
+
const { collectDiagnostics } = await import("../persistent-session-BOHUJCZL.js");
|
|
19966
19973
|
await api.post("/host/heartbeat", {
|
|
19967
19974
|
host_id: hostId,
|
|
19968
19975
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor)
|
|
@@ -20008,7 +20015,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
|
|
|
20008
20015
|
}
|
|
20009
20016
|
try {
|
|
20010
20017
|
const hostId = await getHostId();
|
|
20011
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
20018
|
+
const { collectDiagnostics } = await import("../persistent-session-BOHUJCZL.js");
|
|
20012
20019
|
await api.post("/host/heartbeat", {
|
|
20013
20020
|
host_id: hostId,
|
|
20014
20021
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor)
|
|
@@ -20644,7 +20651,7 @@ async function processClaudePairSessions(agents) {
|
|
|
20644
20651
|
killPairSession,
|
|
20645
20652
|
pairTmuxSession,
|
|
20646
20653
|
finalizeClaudePairOnboarding
|
|
20647
|
-
} = await import("../claude-pair-runtime-
|
|
20654
|
+
} = await import("../claude-pair-runtime-SWB525DM.js");
|
|
20648
20655
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
20649
20656
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|
|
20650
20657
|
const killed = await killPairSession(pairTmuxSession(pairId));
|