@integrity-labs/agt-cli 0.28.916 → 0.28.918
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-OJK2OMY7.js → chunk-BGZHJNKK.js} +19 -6
- package/dist/chunk-BGZHJNKK.js.map +1 -0
- package/dist/{chunk-5N43343H.js → chunk-GYUOGI3N.js} +2 -2
- package/dist/{chunk-ASZOPO2M.js → chunk-YBCJHIWM.js} +1 -1
- package/dist/chunk-YBCJHIWM.js.map +1 -0
- package/dist/{claude-pair-runtime-53EZO64S.js → claude-pair-runtime-VT3Z6IAS.js} +2 -2
- package/dist/lib/manager-worker.js +20 -15
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/index.js +88 -0
- package/dist/mcp/slack-channel.js +32 -4
- package/dist/mcp/teams-channel.js +6 -1
- package/dist/mcp/telegram-channel.js +2 -0
- package/dist/{persistent-session-35AFHBHP.js → persistent-session-AQD73425.js} +3 -3
- package/dist/{responsiveness-probe-WWMTTSVS.js → responsiveness-probe-YYWJW6YM.js} +3 -3
- package/dist/{session-auth-dead-6UF5SAIT.js → session-auth-dead-5UDO74CI.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-ASZOPO2M.js.map +0 -1
- package/dist/chunk-OJK2OMY7.js.map +0 -1
- /package/dist/{chunk-5N43343H.js.map → chunk-GYUOGI3N.js.map} +0 -0
- /package/dist/{claude-pair-runtime-53EZO64S.js.map → claude-pair-runtime-VT3Z6IAS.js.map} +0 -0
- /package/dist/{persistent-session-35AFHBHP.js.map → persistent-session-AQD73425.js.map} +0 -0
- /package/dist/{responsiveness-probe-WWMTTSVS.js.map → responsiveness-probe-YYWJW6YM.js.map} +0 -0
- /package/dist/{session-auth-dead-6UF5SAIT.js.map → session-auth-dead-5UDO74CI.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-AQD73425.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-VT3Z6IAS.js.map
|
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
safeWriteJsonAtomic,
|
|
64
64
|
setConfigHash,
|
|
65
65
|
tripClass
|
|
66
|
-
} from "../chunk-
|
|
66
|
+
} from "../chunk-BGZHJNKK.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-GYUOGI3N.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-YBCJHIWM.js";
|
|
235
235
|
import {
|
|
236
236
|
reapOrphanChannelMcps
|
|
237
237
|
} from "../chunk-XWVM4KPK.js";
|
|
@@ -9909,6 +9909,9 @@ function parsePeerAgentModeEnv(raw) {
|
|
|
9909
9909
|
}
|
|
9910
9910
|
|
|
9911
9911
|
// ../../packages/core/dist/channels/governance/sender-policy-decline.js
|
|
9912
|
+
function teamOnlyReason(allowlist) {
|
|
9913
|
+
return allowlist && allowlist.length > 0 ? "mode_team_only" : "mode_team_only_no_principals";
|
|
9914
|
+
}
|
|
9912
9915
|
function classifySlackPolicyBlock(evt, policy) {
|
|
9913
9916
|
if (policy.internalOnly && (!policy.homeTeamId || evt.team !== policy.homeTeamId)) {
|
|
9914
9917
|
return "internal_only";
|
|
@@ -9917,7 +9920,7 @@ function classifySlackPolicyBlock(evt, policy) {
|
|
|
9917
9920
|
case "manager_only":
|
|
9918
9921
|
return "mode_manager_only";
|
|
9919
9922
|
case "team_only":
|
|
9920
|
-
return
|
|
9923
|
+
return teamOnlyReason(policy.teamPrincipalSlackUserIds);
|
|
9921
9924
|
case "team_agents_only":
|
|
9922
9925
|
return "mode_team_agents_only";
|
|
9923
9926
|
case "agents_only":
|
|
@@ -9934,6 +9937,8 @@ function politeDeclineCopy(reason) {
|
|
|
9934
9937
|
return "Sorry, I only respond to my manager in this channel.";
|
|
9935
9938
|
case "mode_team_only":
|
|
9936
9939
|
return "Sorry, this agent only replies to its team members.";
|
|
9940
|
+
case "mode_team_only_no_principals":
|
|
9941
|
+
return "Sorry, I can't reply to anyone in this channel yet: none of my team members' accounts here are linked to me. An admin needs to link them first.";
|
|
9937
9942
|
case "mode_team_agents_only":
|
|
9938
9943
|
return "Sorry, I only respond to agents on my team in this channel.";
|
|
9939
9944
|
case "mode_agents_only":
|
|
@@ -13133,7 +13138,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
|
|
|
13133
13138
|
var dayRolloverInboundHold = /* @__PURE__ */ new Map();
|
|
13134
13139
|
var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
|
|
13135
13140
|
async function channelInboundActivityAgeSecondsFor(codeName) {
|
|
13136
|
-
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-
|
|
13141
|
+
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-YYWJW6YM.js");
|
|
13137
13142
|
const newest = newestPendingInboundActivityMtimeMs(dirname11(paneLogPath(codeName)));
|
|
13138
13143
|
if (newest === null) return null;
|
|
13139
13144
|
return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
|
|
@@ -13818,7 +13823,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
13818
13823
|
var lastVersionCheckAt = 0;
|
|
13819
13824
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
13820
13825
|
var lastResponsivenessProbeAt = 0;
|
|
13821
|
-
var agtCliVersion = true ? "0.28.
|
|
13826
|
+
var agtCliVersion = true ? "0.28.918" : "dev";
|
|
13822
13827
|
function resolveBrewPath(execFileSync2) {
|
|
13823
13828
|
try {
|
|
13824
13829
|
const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -15408,7 +15413,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
|
|
|
15408
15413
|
if (codeNames.length === 0) return;
|
|
15409
15414
|
void (async () => {
|
|
15410
15415
|
try {
|
|
15411
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
15416
|
+
const { collectDiagnostics } = await import("../persistent-session-AQD73425.js");
|
|
15412
15417
|
await api.post("/host/heartbeat", {
|
|
15413
15418
|
host_id: hostId,
|
|
15414
15419
|
agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor)
|
|
@@ -15550,7 +15555,7 @@ async function pollCycleInner() {
|
|
|
15550
15555
|
}
|
|
15551
15556
|
try {
|
|
15552
15557
|
const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
|
|
15553
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
15558
|
+
const { collectDiagnostics } = await import("../persistent-session-AQD73425.js");
|
|
15554
15559
|
const diagCodeNames = [...agentState.persistentSessionAgents];
|
|
15555
15560
|
const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor) : void 0;
|
|
15556
15561
|
let tailscaleHostname;
|
|
@@ -15725,7 +15730,7 @@ async function pollCycleInner() {
|
|
|
15725
15730
|
collectPanelessActivityProbes,
|
|
15726
15731
|
getResponsivenessIntervalMs,
|
|
15727
15732
|
occupancyQualificationClassifications
|
|
15728
|
-
} = await import("../responsiveness-probe-
|
|
15733
|
+
} = await import("../responsiveness-probe-YYWJW6YM.js");
|
|
15729
15734
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
15730
15735
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
15731
15736
|
const probeCodeNames = [...agentState.persistentSessionAgents];
|
|
@@ -15842,7 +15847,7 @@ async function pollCycleInner() {
|
|
|
15842
15847
|
collectResponsivenessProbes,
|
|
15843
15848
|
livePendingInboundOldestAgeSeconds,
|
|
15844
15849
|
parkPendingInbound
|
|
15845
|
-
} = await import("../responsiveness-probe-
|
|
15850
|
+
} = await import("../responsiveness-probe-YYWJW6YM.js");
|
|
15846
15851
|
const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-NDP36U7O.js");
|
|
15847
15852
|
const wedgeNow = /* @__PURE__ */ new Date();
|
|
15848
15853
|
const liveAgents = agentState.persistentSessionAgents;
|
|
@@ -15998,7 +16003,7 @@ async function pollCycleInner() {
|
|
|
15998
16003
|
}
|
|
15999
16004
|
try {
|
|
16000
16005
|
const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-JA437JIB.js");
|
|
16001
|
-
const { probeSessionAuth } = await import("../session-auth-dead-
|
|
16006
|
+
const { probeSessionAuth } = await import("../session-auth-dead-5UDO74CI.js");
|
|
16002
16007
|
const observations = [];
|
|
16003
16008
|
const pendingCacheCommits = [];
|
|
16004
16009
|
const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
|
|
@@ -20262,7 +20267,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
20262
20267
|
try {
|
|
20263
20268
|
const freshId = rotateSessionForWedge(codeName);
|
|
20264
20269
|
consecutiveWedgeCycles.delete(codeName);
|
|
20265
|
-
const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-
|
|
20270
|
+
const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-YYWJW6YM.js");
|
|
20266
20271
|
const { parked, deadLettered } = parkForRestart(codeName, /* @__PURE__ */ new Date());
|
|
20267
20272
|
const parkNote = parked > 0 ? `, ${parked} inbound parked` : "";
|
|
20268
20273
|
const deadNote = deadLettered > 0 ? `, ${deadLettered} undeliverable dead-lettered` : "";
|
|
@@ -20305,7 +20310,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
20305
20310
|
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}`));
|
|
20306
20311
|
void (async () => {
|
|
20307
20312
|
try {
|
|
20308
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
20313
|
+
const { collectDiagnostics } = await import("../persistent-session-AQD73425.js");
|
|
20309
20314
|
await api.post("/host/heartbeat", {
|
|
20310
20315
|
host_id: hostId,
|
|
20311
20316
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor)
|
|
@@ -20356,7 +20361,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
|
|
|
20356
20361
|
}
|
|
20357
20362
|
try {
|
|
20358
20363
|
const hostId = await getHostId();
|
|
20359
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
20364
|
+
const { collectDiagnostics } = await import("../persistent-session-AQD73425.js");
|
|
20360
20365
|
await api.post("/host/heartbeat", {
|
|
20361
20366
|
host_id: hostId,
|
|
20362
20367
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor)
|
|
@@ -20998,7 +21003,7 @@ async function processClaudePairSessions(agents) {
|
|
|
20998
21003
|
killPairSession,
|
|
20999
21004
|
pairTmuxSession,
|
|
21000
21005
|
finalizeClaudePairOnboarding
|
|
21001
|
-
} = await import("../claude-pair-runtime-
|
|
21006
|
+
} = await import("../claude-pair-runtime-VT3Z6IAS.js");
|
|
21002
21007
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
21003
21008
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|
|
21004
21009
|
const killed = await killPairSession(pairTmuxSession(pairId));
|