@integrity-labs/agt-cli 0.28.967 → 0.28.969
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-XWU4BFBQ.js → chunk-BWWQMMCR.js} +24 -12
- package/dist/chunk-BWWQMMCR.js.map +1 -0
- package/dist/{chunk-V73S7OXI.js → chunk-NOY2C63C.js} +35 -6
- package/dist/{chunk-V73S7OXI.js.map → chunk-NOY2C63C.js.map} +1 -1
- package/dist/{chunk-K2VDNAD2.js → chunk-O2Q4HY6I.js} +2 -2
- package/dist/{claude-pair-runtime-ICRPR6QQ.js → claude-pair-runtime-YBFVBB6G.js} +2 -2
- package/dist/lib/manager-worker.js +16 -18
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/direct-chat-channel.js +16 -1
- package/dist/mcp/index.js +16 -1
- package/dist/mcp/origami.js +16 -1
- package/dist/mcp/slack-channel.js +18 -5
- package/dist/mcp/teams-channel.js +2 -4
- package/dist/mcp/telegram-channel.js +16 -1
- package/dist/{persistent-session-6C3XIT5F.js → persistent-session-4J6SFXBI.js} +3 -3
- package/dist/{responsiveness-probe-22RREUHV.js → responsiveness-probe-GX6HLUES.js} +3 -3
- package/dist/{session-auth-dead-IOBL2YXT.js → session-auth-dead-EPI2A6RF.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-XWU4BFBQ.js.map +0 -1
- /package/dist/{chunk-K2VDNAD2.js.map → chunk-O2Q4HY6I.js.map} +0 -0
- /package/dist/{claude-pair-runtime-ICRPR6QQ.js.map → claude-pair-runtime-YBFVBB6G.js.map} +0 -0
- /package/dist/{persistent-session-6C3XIT5F.js.map → persistent-session-4J6SFXBI.js.map} +0 -0
- /package/dist/{responsiveness-probe-22RREUHV.js.map → responsiveness-probe-GX6HLUES.js.map} +0 -0
- /package/dist/{session-auth-dead-IOBL2YXT.js.map → session-auth-dead-EPI2A6RF.js.map} +0 -0
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
rotateDailySession,
|
|
21
21
|
sessionFileExists,
|
|
22
22
|
todayLocalIso
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-NOY2C63C.js";
|
|
24
24
|
import {
|
|
25
25
|
classifyUnanswerablePane,
|
|
26
26
|
findUsageLimitResetHint,
|
|
@@ -5575,4 +5575,4 @@ export {
|
|
|
5575
5575
|
stopAllSessionsAndWait,
|
|
5576
5576
|
getProjectDir
|
|
5577
5577
|
};
|
|
5578
|
-
//# sourceMappingURL=chunk-
|
|
5578
|
+
//# sourceMappingURL=chunk-O2Q4HY6I.js.map
|
|
@@ -236,7 +236,7 @@ async function spawnPairSession(session) {
|
|
|
236
236
|
return { ok: true };
|
|
237
237
|
} catch {
|
|
238
238
|
}
|
|
239
|
-
const { resolveClaudeBinary } = await import("./persistent-session-
|
|
239
|
+
const { resolveClaudeBinary } = await import("./persistent-session-4J6SFXBI.js");
|
|
240
240
|
const claudeBin = resolveClaudeBinary();
|
|
241
241
|
const pairEnv = {
|
|
242
242
|
...process.env,
|
|
@@ -558,4 +558,4 @@ export {
|
|
|
558
558
|
startClaudePair,
|
|
559
559
|
submitClaudePairCode
|
|
560
560
|
};
|
|
561
|
-
//# sourceMappingURL=claude-pair-runtime-
|
|
561
|
+
//# sourceMappingURL=claude-pair-runtime-YBFVBB6G.js.map
|
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
safeWriteJsonAtomic,
|
|
64
64
|
setConfigHash,
|
|
65
65
|
tripClass
|
|
66
|
-
} from "../chunk-
|
|
66
|
+
} from "../chunk-BWWQMMCR.js";
|
|
67
67
|
import {
|
|
68
68
|
getProjectDir as getProjectDir2,
|
|
69
69
|
getReadyTasks,
|
|
@@ -140,7 +140,7 @@ import {
|
|
|
140
140
|
takeZombieDetection,
|
|
141
141
|
toOpencodeModel,
|
|
142
142
|
writeEgressAllowlist
|
|
143
|
-
} from "../chunk-
|
|
143
|
+
} from "../chunk-O2Q4HY6I.js";
|
|
144
144
|
import {
|
|
145
145
|
ACCOUNT_ENFORCEMENT_MARKER_FILENAME,
|
|
146
146
|
AnchorSessionClient,
|
|
@@ -238,7 +238,7 @@ import {
|
|
|
238
238
|
subagentActivityAgeSeconds,
|
|
239
239
|
sumTranscriptUsageInWindow,
|
|
240
240
|
transcriptActivityAgeSeconds
|
|
241
|
-
} from "../chunk-
|
|
241
|
+
} from "../chunk-NOY2C63C.js";
|
|
242
242
|
import "../chunk-DHWNVVX4.js";
|
|
243
243
|
import {
|
|
244
244
|
reapOrphanChannelMcps
|
|
@@ -9810,9 +9810,7 @@ function decideModeForward(evt, policy) {
|
|
|
9810
9810
|
if (policy.mode === "all")
|
|
9811
9811
|
return { forward: true };
|
|
9812
9812
|
if (policy.mode === "manager_only") {
|
|
9813
|
-
|
|
9814
|
-
return { forward: true };
|
|
9815
|
-
}
|
|
9813
|
+
return policy.principalSlackUserId && evt.user === policy.principalSlackUserId ? { forward: true } : { forward: false, reason: "sender_policy" };
|
|
9816
9814
|
}
|
|
9817
9815
|
if (policy.mode === "team_only") {
|
|
9818
9816
|
if (policy.teamPrincipalSlackUserIds && policy.teamPrincipalSlackUserIds.length > 0 && typeof evt.user === "string" && policy.teamPrincipalSlackUserIds.includes(evt.user)) {
|
|
@@ -9827,7 +9825,7 @@ function decideModeForward(evt, policy) {
|
|
|
9827
9825
|
return { forward: false, reason: "sender_policy" };
|
|
9828
9826
|
}
|
|
9829
9827
|
}
|
|
9830
|
-
if (policy.mode === "team_agents_only" || policy.mode === "
|
|
9828
|
+
if (policy.mode === "team_agents_only" || policy.mode === "team_only") {
|
|
9831
9829
|
if (!policy.teamId || label.teamId !== policy.teamId) {
|
|
9832
9830
|
return { forward: false, reason: "sender_policy" };
|
|
9833
9831
|
}
|
|
@@ -13184,7 +13182,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
|
|
|
13184
13182
|
var dayRolloverInboundHold = /* @__PURE__ */ new Map();
|
|
13185
13183
|
var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
|
|
13186
13184
|
async function channelInboundActivityAgeSecondsFor(codeName) {
|
|
13187
|
-
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-
|
|
13185
|
+
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-GX6HLUES.js");
|
|
13188
13186
|
const newest = newestPendingInboundActivityMtimeMs(dirname11(paneLogPath(codeName)));
|
|
13189
13187
|
if (newest === null) return null;
|
|
13190
13188
|
return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
|
|
@@ -13869,7 +13867,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
13869
13867
|
var lastVersionCheckAt = 0;
|
|
13870
13868
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
13871
13869
|
var lastResponsivenessProbeAt = 0;
|
|
13872
|
-
var agtCliVersion = true ? "0.28.
|
|
13870
|
+
var agtCliVersion = true ? "0.28.969" : "dev";
|
|
13873
13871
|
function resolveBrewPath(execFileSync2) {
|
|
13874
13872
|
try {
|
|
13875
13873
|
const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -15471,7 +15469,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
|
|
|
15471
15469
|
if (codeNames.length === 0) return;
|
|
15472
15470
|
void (async () => {
|
|
15473
15471
|
try {
|
|
15474
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
15472
|
+
const { collectDiagnostics } = await import("../persistent-session-4J6SFXBI.js");
|
|
15475
15473
|
await api.post("/host/heartbeat", {
|
|
15476
15474
|
host_id: hostId,
|
|
15477
15475
|
agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor)
|
|
@@ -15613,7 +15611,7 @@ async function pollCycleInner() {
|
|
|
15613
15611
|
}
|
|
15614
15612
|
try {
|
|
15615
15613
|
const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
|
|
15616
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
15614
|
+
const { collectDiagnostics } = await import("../persistent-session-4J6SFXBI.js");
|
|
15617
15615
|
const diagCodeNames = [...agentState.persistentSessionAgents];
|
|
15618
15616
|
const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor) : void 0;
|
|
15619
15617
|
let tailscaleHostname;
|
|
@@ -15789,7 +15787,7 @@ async function pollCycleInner() {
|
|
|
15789
15787
|
collectPanelessActivityProbes,
|
|
15790
15788
|
getResponsivenessIntervalMs,
|
|
15791
15789
|
occupancyQualificationClassifications
|
|
15792
|
-
} = await import("../responsiveness-probe-
|
|
15790
|
+
} = await import("../responsiveness-probe-GX6HLUES.js");
|
|
15793
15791
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
15794
15792
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
15795
15793
|
const probeCodeNames = [...agentState.persistentSessionAgents];
|
|
@@ -15906,7 +15904,7 @@ async function pollCycleInner() {
|
|
|
15906
15904
|
collectResponsivenessProbes,
|
|
15907
15905
|
livePendingInboundOldestAgeSeconds,
|
|
15908
15906
|
parkPendingInbound
|
|
15909
|
-
} = await import("../responsiveness-probe-
|
|
15907
|
+
} = await import("../responsiveness-probe-GX6HLUES.js");
|
|
15910
15908
|
const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-NDP36U7O.js");
|
|
15911
15909
|
const wedgeNow = /* @__PURE__ */ new Date();
|
|
15912
15910
|
const liveAgents = agentState.persistentSessionAgents;
|
|
@@ -16062,7 +16060,7 @@ async function pollCycleInner() {
|
|
|
16062
16060
|
}
|
|
16063
16061
|
try {
|
|
16064
16062
|
const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-JA437JIB.js");
|
|
16065
|
-
const { probeSessionAuth } = await import("../session-auth-dead-
|
|
16063
|
+
const { probeSessionAuth } = await import("../session-auth-dead-EPI2A6RF.js");
|
|
16066
16064
|
const observations = [];
|
|
16067
16065
|
const pendingCacheCommits = [];
|
|
16068
16066
|
const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
|
|
@@ -20338,7 +20336,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
20338
20336
|
try {
|
|
20339
20337
|
const freshId = rotateSessionForWedge(codeName);
|
|
20340
20338
|
consecutiveWedgeCycles.delete(codeName);
|
|
20341
|
-
const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-
|
|
20339
|
+
const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-GX6HLUES.js");
|
|
20342
20340
|
const { parked, deadLettered } = parkForRestart(codeName, /* @__PURE__ */ new Date());
|
|
20343
20341
|
const parkNote = parked > 0 ? `, ${parked} inbound parked` : "";
|
|
20344
20342
|
const deadNote = deadLettered > 0 ? `, ${deadLettered} undeliverable dead-lettered` : "";
|
|
@@ -20381,7 +20379,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
20381
20379
|
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}`));
|
|
20382
20380
|
void (async () => {
|
|
20383
20381
|
try {
|
|
20384
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
20382
|
+
const { collectDiagnostics } = await import("../persistent-session-4J6SFXBI.js");
|
|
20385
20383
|
await api.post("/host/heartbeat", {
|
|
20386
20384
|
host_id: hostId,
|
|
20387
20385
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor)
|
|
@@ -20432,7 +20430,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
|
|
|
20432
20430
|
}
|
|
20433
20431
|
try {
|
|
20434
20432
|
const hostId = await getHostId();
|
|
20435
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
20433
|
+
const { collectDiagnostics } = await import("../persistent-session-4J6SFXBI.js");
|
|
20436
20434
|
await api.post("/host/heartbeat", {
|
|
20437
20435
|
host_id: hostId,
|
|
20438
20436
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor)
|
|
@@ -21074,7 +21072,7 @@ async function processClaudePairSessions(agents) {
|
|
|
21074
21072
|
killPairSession,
|
|
21075
21073
|
pairTmuxSession,
|
|
21076
21074
|
finalizeClaudePairOnboarding
|
|
21077
|
-
} = await import("../claude-pair-runtime-
|
|
21075
|
+
} = await import("../claude-pair-runtime-YBFVBB6G.js");
|
|
21078
21076
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
21079
21077
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|
|
21080
21078
|
const killed = await killPairSession(pairTmuxSession(pairId));
|