@integrity-labs/agt-cli 0.28.53 → 0.28.55
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 +4 -4
- package/dist/{chunk-T2G7IMI5.js → chunk-7P2VKTWK.js} +3 -3
- package/dist/{chunk-QK4EU3TC.js → chunk-ATK3HBK6.js} +2 -2
- package/dist/{chunk-WBZFCFU6.js → chunk-TMTSBVPP.js} +1 -1
- package/dist/{chunk-WBZFCFU6.js.map → chunk-TMTSBVPP.js.map} +1 -1
- package/dist/{claude-pair-runtime-XU7GFFQH.js → claude-pair-runtime-LDE4CJO5.js} +2 -2
- package/dist/lib/manager-worker.js +18 -8
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/augmented-admin.js +23 -0
- package/dist/mcp/slack-channel.js +21 -4
- package/dist/{persistent-session-YSE6OUM6.js → persistent-session-T6VRODM5.js} +3 -3
- package/dist/{responsiveness-probe-4BU75QQV.js → responsiveness-probe-NI26NQJO.js} +3 -3
- package/package.json +1 -1
- /package/dist/{chunk-T2G7IMI5.js.map → chunk-7P2VKTWK.js.map} +0 -0
- /package/dist/{chunk-QK4EU3TC.js.map → chunk-ATK3HBK6.js.map} +0 -0
- /package/dist/{claude-pair-runtime-XU7GFFQH.js.map → claude-pair-runtime-LDE4CJO5.js.map} +0 -0
- /package/dist/{persistent-session-YSE6OUM6.js.map → persistent-session-T6VRODM5.js.map} +0 -0
- /package/dist/{responsiveness-probe-4BU75QQV.js.map → responsiveness-probe-NI26NQJO.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-T6VRODM5.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-LDE4CJO5.js.map
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
requireHost,
|
|
28
28
|
safeWriteJsonAtomic,
|
|
29
29
|
setConfigHash
|
|
30
|
-
} from "../chunk-
|
|
30
|
+
} from "../chunk-7P2VKTWK.js";
|
|
31
31
|
import {
|
|
32
32
|
getProjectDir as getProjectDir2,
|
|
33
33
|
getReadyTasks,
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
takeWatchdogGiveUpCount,
|
|
66
66
|
takeZombieDetection,
|
|
67
67
|
transcriptActivityAgeSeconds
|
|
68
|
-
} from "../chunk-
|
|
68
|
+
} from "../chunk-ATK3HBK6.js";
|
|
69
69
|
import {
|
|
70
70
|
FLAGS_SCHEMA_VERSION,
|
|
71
71
|
FLAG_REGISTRY,
|
|
@@ -96,7 +96,7 @@ import {
|
|
|
96
96
|
resolveDmTarget,
|
|
97
97
|
sumTranscriptUsageInWindow,
|
|
98
98
|
wrapScheduledTaskPrompt
|
|
99
|
-
} from "../chunk-
|
|
99
|
+
} from "../chunk-TMTSBVPP.js";
|
|
100
100
|
import {
|
|
101
101
|
parsePsRows,
|
|
102
102
|
reapOrphanChannelMcps
|
|
@@ -495,6 +495,7 @@ function reapMissingMcpSessions(args) {
|
|
|
495
495
|
codeName,
|
|
496
496
|
mcpJson,
|
|
497
497
|
sessionStartedAt,
|
|
498
|
+
restartPending = false,
|
|
498
499
|
stopSession,
|
|
499
500
|
graceMs = DEFAULT_COLD_START_GRACE_MS,
|
|
500
501
|
rotationGraceMs = DEFAULT_ROTATION_GRACE_MS,
|
|
@@ -516,6 +517,9 @@ function reapMissingMcpSessions(args) {
|
|
|
516
517
|
if (declaredCount === 0) {
|
|
517
518
|
return { missing: [], restarted: false, reason: "no-declared-servers" };
|
|
518
519
|
}
|
|
520
|
+
if (restartPending) {
|
|
521
|
+
return { missing: [], restarted: false, reason: "restart-pending" };
|
|
522
|
+
}
|
|
519
523
|
if (sessionStartedAt === null) {
|
|
520
524
|
return { missing: [], restarted: false, reason: "session-start-unknown" };
|
|
521
525
|
}
|
|
@@ -6630,7 +6634,7 @@ var cachedMaintenanceWindow = null;
|
|
|
6630
6634
|
var lastVersionCheckAt = 0;
|
|
6631
6635
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
6632
6636
|
var lastResponsivenessProbeAt = 0;
|
|
6633
|
-
var agtCliVersion = true ? "0.28.
|
|
6637
|
+
var agtCliVersion = true ? "0.28.55" : "dev";
|
|
6634
6638
|
function resolveBrewPath(execFileSync4) {
|
|
6635
6639
|
try {
|
|
6636
6640
|
const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -7738,7 +7742,7 @@ async function pollCycle() {
|
|
|
7738
7742
|
}
|
|
7739
7743
|
try {
|
|
7740
7744
|
const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
|
|
7741
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
7745
|
+
const { collectDiagnostics } = await import("../persistent-session-T6VRODM5.js");
|
|
7742
7746
|
const diagCodeNames = [...agentState.persistentSessionAgents];
|
|
7743
7747
|
const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames) : void 0;
|
|
7744
7748
|
let tailscaleHostname;
|
|
@@ -7839,7 +7843,7 @@ async function pollCycle() {
|
|
|
7839
7843
|
const {
|
|
7840
7844
|
collectResponsivenessProbes,
|
|
7841
7845
|
getResponsivenessIntervalMs
|
|
7842
|
-
} = await import("../responsiveness-probe-
|
|
7846
|
+
} = await import("../responsiveness-probe-NI26NQJO.js");
|
|
7843
7847
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
7844
7848
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
7845
7849
|
const probeCodeNames = [...agentState.persistentSessionAgents];
|
|
@@ -7871,7 +7875,7 @@ async function pollCycle() {
|
|
|
7871
7875
|
collectResponsivenessProbes,
|
|
7872
7876
|
livePendingInboundOldestAgeSeconds,
|
|
7873
7877
|
parkPendingInbound
|
|
7874
|
-
} = await import("../responsiveness-probe-
|
|
7878
|
+
} = await import("../responsiveness-probe-NI26NQJO.js");
|
|
7875
7879
|
const { getProjectDir: wedgeProjectDir } = await import("../claude-scheduler-FATCLHDM.js");
|
|
7876
7880
|
const wedgeNow = /* @__PURE__ */ new Date();
|
|
7877
7881
|
const liveAgents = agentState.persistentSessionAgents;
|
|
@@ -9744,6 +9748,12 @@ async function processAgent(agent, agentStates) {
|
|
|
9744
9748
|
codeName: agent.code_name,
|
|
9745
9749
|
mcpJson: mcpJsonParsed,
|
|
9746
9750
|
sessionStartedAt: sess?.startedAt ?? null,
|
|
9751
|
+
// ENG-6486: a restart is already scheduled/deferred for this agent (e.g.
|
|
9752
|
+
// a freshly-added channel awaiting its convergence restart, deferred by
|
|
9753
|
+
// the maintenance window). The pending restart will spawn the declared-
|
|
9754
|
+
// but-not-yet-live MCP, so don't let the reaper re-fire + inflate the
|
|
9755
|
+
// McpReaperRestartsHourly metric into a false flapping alarm.
|
|
9756
|
+
restartPending: pendingSessionRestarts.has(agent.code_name),
|
|
9747
9757
|
// ENG-5441 / ENG-5547: a mcp-presence-reaper restart counts against
|
|
9748
9758
|
// the agent-wide breaker ONLY when several distinct MCP servers are
|
|
9749
9759
|
// missing at once — a thrashing collection that rotates restarts of
|
|
@@ -11275,7 +11285,7 @@ async function processClaudePairSessions(agents) {
|
|
|
11275
11285
|
killPairSession,
|
|
11276
11286
|
pairTmuxSession,
|
|
11277
11287
|
finalizeClaudePairOnboarding
|
|
11278
|
-
} = await import("../claude-pair-runtime-
|
|
11288
|
+
} = await import("../claude-pair-runtime-LDE4CJO5.js");
|
|
11279
11289
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
11280
11290
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|
|
11281
11291
|
const killed = await killPairSession(pairTmuxSession(pairId));
|