@integrity-labs/agt-cli 0.28.403 → 0.28.405
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-VASIOHUO.js → chunk-AAWYAPKX.js} +43 -7
- package/dist/chunk-AAWYAPKX.js.map +1 -0
- package/dist/{chunk-V5CRVBVC.js → chunk-UYBG62IQ.js} +1 -1
- package/dist/{claude-pair-runtime-HDSV7CKE.js → claude-pair-runtime-AG4PW6FE.js} +2 -2
- package/dist/lib/manager-worker.js +33 -10
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/direct-chat-channel.js +52 -3
- package/dist/mcp/slack-channel.js +59 -10
- package/dist/mcp/telegram-channel.js +57 -8
- package/dist/{persistent-session-GRCJPRH5.js → persistent-session-VMKIIW5Y.js} +2 -2
- package/dist/{responsiveness-probe-DNM5APN5.js → responsiveness-probe-ZNMY5RVO.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-VASIOHUO.js.map +0 -1
- /package/dist/{chunk-V5CRVBVC.js.map → chunk-UYBG62IQ.js.map} +0 -0
- /package/dist/{claude-pair-runtime-HDSV7CKE.js.map → claude-pair-runtime-AG4PW6FE.js.map} +0 -0
- /package/dist/{persistent-session-GRCJPRH5.js.map → persistent-session-VMKIIW5Y.js.map} +0 -0
- /package/dist/{responsiveness-probe-DNM5APN5.js.map → responsiveness-probe-ZNMY5RVO.js.map} +0 -0
|
@@ -12462,4 +12462,4 @@ export {
|
|
|
12462
12462
|
stopAllSessionsAndWait,
|
|
12463
12463
|
getProjectDir
|
|
12464
12464
|
};
|
|
12465
|
-
//# sourceMappingURL=chunk-
|
|
12465
|
+
//# sourceMappingURL=chunk-UYBG62IQ.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-VMKIIW5Y.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-AG4PW6FE.js.map
|
|
@@ -40,11 +40,12 @@ import {
|
|
|
40
40
|
provisionStopHook,
|
|
41
41
|
reapMissingMcpSessions,
|
|
42
42
|
reapStaleMcpChildren,
|
|
43
|
+
reconstructQuarantinedMcpServerEntry,
|
|
43
44
|
requireHost,
|
|
44
45
|
resolveEffectivePinRaw,
|
|
45
46
|
safeWriteJsonAtomic,
|
|
46
47
|
setConfigHash
|
|
47
|
-
} from "../chunk-
|
|
48
|
+
} from "../chunk-AAWYAPKX.js";
|
|
48
49
|
import {
|
|
49
50
|
getProjectDir as getProjectDir2,
|
|
50
51
|
getReadyTasks,
|
|
@@ -146,7 +147,7 @@ import {
|
|
|
146
147
|
toOpencodeModel,
|
|
147
148
|
transcriptActivityAgeSeconds,
|
|
148
149
|
writeEgressAllowlist
|
|
149
|
-
} from "../chunk-
|
|
150
|
+
} from "../chunk-UYBG62IQ.js";
|
|
150
151
|
import {
|
|
151
152
|
reapOrphanChannelMcps
|
|
152
153
|
} from "../chunk-XWVM4KPK.js";
|
|
@@ -9254,7 +9255,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
9254
9255
|
var lastVersionCheckAt = 0;
|
|
9255
9256
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
9256
9257
|
var lastResponsivenessProbeAt = 0;
|
|
9257
|
-
var agtCliVersion = true ? "0.28.
|
|
9258
|
+
var agtCliVersion = true ? "0.28.405" : "dev";
|
|
9258
9259
|
function resolveBrewPath(execFileSync2) {
|
|
9259
9260
|
try {
|
|
9260
9261
|
const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -10386,7 +10387,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
|
|
|
10386
10387
|
if (codeNames.length === 0) return;
|
|
10387
10388
|
void (async () => {
|
|
10388
10389
|
try {
|
|
10389
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
10390
|
+
const { collectDiagnostics } = await import("../persistent-session-VMKIIW5Y.js");
|
|
10390
10391
|
await api.post("/host/heartbeat", {
|
|
10391
10392
|
host_id: hostId,
|
|
10392
10393
|
agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor)
|
|
@@ -10485,7 +10486,7 @@ async function pollCycle() {
|
|
|
10485
10486
|
}
|
|
10486
10487
|
try {
|
|
10487
10488
|
const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
|
|
10488
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
10489
|
+
const { collectDiagnostics } = await import("../persistent-session-VMKIIW5Y.js");
|
|
10489
10490
|
const diagCodeNames = [...agentState.persistentSessionAgents];
|
|
10490
10491
|
const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor) : void 0;
|
|
10491
10492
|
let tailscaleHostname;
|
|
@@ -10640,7 +10641,7 @@ async function pollCycle() {
|
|
|
10640
10641
|
const {
|
|
10641
10642
|
collectResponsivenessProbes,
|
|
10642
10643
|
getResponsivenessIntervalMs
|
|
10643
|
-
} = await import("../responsiveness-probe-
|
|
10644
|
+
} = await import("../responsiveness-probe-ZNMY5RVO.js");
|
|
10644
10645
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
10645
10646
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
10646
10647
|
const probeCodeNames = [...agentState.persistentSessionAgents];
|
|
@@ -10672,7 +10673,7 @@ async function pollCycle() {
|
|
|
10672
10673
|
collectResponsivenessProbes,
|
|
10673
10674
|
livePendingInboundOldestAgeSeconds,
|
|
10674
10675
|
parkPendingInbound
|
|
10675
|
-
} = await import("../responsiveness-probe-
|
|
10676
|
+
} = await import("../responsiveness-probe-ZNMY5RVO.js");
|
|
10676
10677
|
const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-HYOOQV4A.js");
|
|
10677
10678
|
const wedgeNow = /* @__PURE__ */ new Date();
|
|
10678
10679
|
const liveAgents = agentState.persistentSessionAgents;
|
|
@@ -12255,6 +12256,28 @@ async function processAgent(agent, agentStates) {
|
|
|
12255
12256
|
const quarantined = await api.post("/host/agent-integrations/quarantined", { agent_id: agent.agent_id });
|
|
12256
12257
|
const qRows = quarantined.integrations ?? [];
|
|
12257
12258
|
if (qRows.length > 0) {
|
|
12259
|
+
for (const q of qRows) {
|
|
12260
|
+
if (q.inline_server_entry) continue;
|
|
12261
|
+
try {
|
|
12262
|
+
const entry = reconstructQuarantinedMcpServerEntry(agent, {
|
|
12263
|
+
id: q.id,
|
|
12264
|
+
definition_id: q.definition_id,
|
|
12265
|
+
display_name: q.definition_id,
|
|
12266
|
+
scope: q.scope,
|
|
12267
|
+
auth_type: q.auth_type,
|
|
12268
|
+
credentials: q.credentials,
|
|
12269
|
+
config: q.config ?? {},
|
|
12270
|
+
capabilities: [],
|
|
12271
|
+
...q.remote_mcp ? { remoteMcp: q.remote_mcp } : {},
|
|
12272
|
+
...q.stdio_mcp === true ? { stdioMcp: true } : {}
|
|
12273
|
+
});
|
|
12274
|
+
if (entry) q.inline_server_entry = entry;
|
|
12275
|
+
} catch (err) {
|
|
12276
|
+
log(
|
|
12277
|
+
`Quarantined-entry reconstruction failed for '${agent.code_name}' toolkit=${q.definition_id}: ${err.message}`
|
|
12278
|
+
);
|
|
12279
|
+
}
|
|
12280
|
+
}
|
|
12258
12281
|
probeSet = [...probeSet, ...qRows];
|
|
12259
12282
|
log(
|
|
12260
12283
|
`Auto-resume: connectivity-probing ${qRows.length} quarantined integration(s) for '${agent.code_name}'`
|
|
@@ -13932,7 +13955,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
13932
13955
|
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}`));
|
|
13933
13956
|
void (async () => {
|
|
13934
13957
|
try {
|
|
13935
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
13958
|
+
const { collectDiagnostics } = await import("../persistent-session-VMKIIW5Y.js");
|
|
13936
13959
|
await api.post("/host/heartbeat", {
|
|
13937
13960
|
host_id: hostId,
|
|
13938
13961
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor)
|
|
@@ -13982,7 +14005,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
|
|
|
13982
14005
|
}
|
|
13983
14006
|
try {
|
|
13984
14007
|
const hostId = await getHostId();
|
|
13985
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
14008
|
+
const { collectDiagnostics } = await import("../persistent-session-VMKIIW5Y.js");
|
|
13986
14009
|
await api.post("/host/heartbeat", {
|
|
13987
14010
|
host_id: hostId,
|
|
13988
14011
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor)
|
|
@@ -14435,7 +14458,7 @@ async function processClaudePairSessions(agents) {
|
|
|
14435
14458
|
killPairSession,
|
|
14436
14459
|
pairTmuxSession,
|
|
14437
14460
|
finalizeClaudePairOnboarding
|
|
14438
|
-
} = await import("../claude-pair-runtime-
|
|
14461
|
+
} = await import("../claude-pair-runtime-AG4PW6FE.js");
|
|
14439
14462
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
14440
14463
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|
|
14441
14464
|
const killed = await killPairSession(pairTmuxSession(pairId));
|