@integrity-labs/agt-cli 0.28.326 → 0.28.328
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-BSTFCC62.js → chunk-GAWNDPGM.js} +13 -2
- package/dist/{chunk-BSTFCC62.js.map → chunk-GAWNDPGM.js.map} +1 -1
- package/dist/{chunk-3PT6JAFU.js → chunk-XRO2EOEM.js} +48 -8
- package/dist/chunk-XRO2EOEM.js.map +1 -0
- package/dist/{claude-pair-runtime-BOFTEAQC.js → claude-pair-runtime-LTZRJHKO.js} +2 -2
- package/dist/lib/manager-worker.js +25 -13
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/direct-chat-channel.js +109 -37
- package/dist/mcp/origami.js +12 -1
- package/dist/mcp/slack-channel.js +10 -7
- package/dist/{persistent-session-BICDYHOC.js → persistent-session-5IV24YKT.js} +2 -2
- package/dist/{responsiveness-probe-FEAFPNUF.js → responsiveness-probe-TTGD44MW.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-3PT6JAFU.js.map +0 -1
- /package/dist/{claude-pair-runtime-BOFTEAQC.js.map → claude-pair-runtime-LTZRJHKO.js.map} +0 -0
- /package/dist/{persistent-session-BICDYHOC.js.map → persistent-session-5IV24YKT.js.map} +0 -0
- /package/dist/{responsiveness-probe-FEAFPNUF.js.map → responsiveness-probe-TTGD44MW.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-5IV24YKT.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-LTZRJHKO.js.map
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
requireHost,
|
|
44
44
|
safeWriteJsonAtomic,
|
|
45
45
|
setConfigHash
|
|
46
|
-
} from "../chunk-
|
|
46
|
+
} from "../chunk-XRO2EOEM.js";
|
|
47
47
|
import {
|
|
48
48
|
getProjectDir as getProjectDir2,
|
|
49
49
|
getReadyTasks,
|
|
@@ -132,7 +132,7 @@ import {
|
|
|
132
132
|
takeZombieDetection,
|
|
133
133
|
transcriptActivityAgeSeconds,
|
|
134
134
|
writeEgressAllowlist
|
|
135
|
-
} from "../chunk-
|
|
135
|
+
} from "../chunk-GAWNDPGM.js";
|
|
136
136
|
import {
|
|
137
137
|
reapOrphanChannelMcps
|
|
138
138
|
} from "../chunk-XWVM4KPK.js";
|
|
@@ -6261,9 +6261,21 @@ function buildSlackSenderPolicyFromEnv(env, ctx) {
|
|
|
6261
6261
|
}
|
|
6262
6262
|
const internalOnlyFields = internalOnly ? { internalOnly: true, homeTeamId } : {};
|
|
6263
6263
|
const slackPeersRaw = env["SLACK_PEERS"];
|
|
6264
|
-
const
|
|
6265
|
-
|
|
6266
|
-
|
|
6264
|
+
const teamPeerUserIdsRaw = env["SLACK_TEAM_PEER_USER_IDS"];
|
|
6265
|
+
const registeredAgentSlackUserIds = /* @__PURE__ */ new Set();
|
|
6266
|
+
if (slackPeersRaw && slackPeersRaw.trim().length > 0) {
|
|
6267
|
+
for (const p of parsePeersEnv(slackPeersRaw, env["SLACK_PEERS_GATE"])) {
|
|
6268
|
+
registeredAgentSlackUserIds.add(p.bot_user_id);
|
|
6269
|
+
}
|
|
6270
|
+
}
|
|
6271
|
+
if (teamPeerUserIdsRaw && teamPeerUserIdsRaw.trim().length > 0) {
|
|
6272
|
+
for (const id of teamPeerUserIdsRaw.split(",")) {
|
|
6273
|
+
const trimmed = id.trim();
|
|
6274
|
+
if (trimmed.length > 0)
|
|
6275
|
+
registeredAgentSlackUserIds.add(trimmed);
|
|
6276
|
+
}
|
|
6277
|
+
}
|
|
6278
|
+
const registryFields = registeredAgentSlackUserIds.size > 0 ? { registeredAgentSlackUserIds } : {};
|
|
6267
6279
|
const teamId = ctx.agentTeamId;
|
|
6268
6280
|
if (raw === "all")
|
|
6269
6281
|
return { mode: "all", ...internalOnlyFields, ...registryFields };
|
|
@@ -8374,7 +8386,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
8374
8386
|
var lastVersionCheckAt = 0;
|
|
8375
8387
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
8376
8388
|
var lastResponsivenessProbeAt = 0;
|
|
8377
|
-
var agtCliVersion = true ? "0.28.
|
|
8389
|
+
var agtCliVersion = true ? "0.28.328" : "dev";
|
|
8378
8390
|
function resolveBrewPath(execFileSync2) {
|
|
8379
8391
|
try {
|
|
8380
8392
|
const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -9270,7 +9282,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
|
|
|
9270
9282
|
if (codeNames.length === 0) return;
|
|
9271
9283
|
void (async () => {
|
|
9272
9284
|
try {
|
|
9273
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
9285
|
+
const { collectDiagnostics } = await import("../persistent-session-5IV24YKT.js");
|
|
9274
9286
|
await api.post("/host/heartbeat", {
|
|
9275
9287
|
host_id: hostId,
|
|
9276
9288
|
agent_diagnostics: collectDiagnostics(codeNames)
|
|
@@ -9369,7 +9381,7 @@ async function pollCycle() {
|
|
|
9369
9381
|
}
|
|
9370
9382
|
try {
|
|
9371
9383
|
const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
|
|
9372
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
9384
|
+
const { collectDiagnostics } = await import("../persistent-session-5IV24YKT.js");
|
|
9373
9385
|
const diagCodeNames = [...agentState.persistentSessionAgents];
|
|
9374
9386
|
const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames) : void 0;
|
|
9375
9387
|
let tailscaleHostname;
|
|
@@ -9518,7 +9530,7 @@ async function pollCycle() {
|
|
|
9518
9530
|
const {
|
|
9519
9531
|
collectResponsivenessProbes,
|
|
9520
9532
|
getResponsivenessIntervalMs
|
|
9521
|
-
} = await import("../responsiveness-probe-
|
|
9533
|
+
} = await import("../responsiveness-probe-TTGD44MW.js");
|
|
9522
9534
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
9523
9535
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
9524
9536
|
const probeCodeNames = [...agentState.persistentSessionAgents];
|
|
@@ -9550,7 +9562,7 @@ async function pollCycle() {
|
|
|
9550
9562
|
collectResponsivenessProbes,
|
|
9551
9563
|
livePendingInboundOldestAgeSeconds,
|
|
9552
9564
|
parkPendingInbound
|
|
9553
|
-
} = await import("../responsiveness-probe-
|
|
9565
|
+
} = await import("../responsiveness-probe-TTGD44MW.js");
|
|
9554
9566
|
const { getProjectDir: wedgeProjectDir } = await import("../claude-scheduler-FATCLHDM.js");
|
|
9555
9567
|
const wedgeNow = /* @__PURE__ */ new Date();
|
|
9556
9568
|
const liveAgents = agentState.persistentSessionAgents;
|
|
@@ -12648,7 +12660,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
12648
12660
|
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}`));
|
|
12649
12661
|
void (async () => {
|
|
12650
12662
|
try {
|
|
12651
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
12663
|
+
const { collectDiagnostics } = await import("../persistent-session-5IV24YKT.js");
|
|
12652
12664
|
await api.post("/host/heartbeat", {
|
|
12653
12665
|
host_id: hostId,
|
|
12654
12666
|
agent_diagnostics: collectDiagnostics([codeName])
|
|
@@ -12698,7 +12710,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
|
|
|
12698
12710
|
}
|
|
12699
12711
|
try {
|
|
12700
12712
|
const hostId = await getHostId();
|
|
12701
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
12713
|
+
const { collectDiagnostics } = await import("../persistent-session-5IV24YKT.js");
|
|
12702
12714
|
await api.post("/host/heartbeat", {
|
|
12703
12715
|
host_id: hostId,
|
|
12704
12716
|
agent_diagnostics: collectDiagnostics([codeName])
|
|
@@ -13196,7 +13208,7 @@ async function processClaudePairSessions(agents) {
|
|
|
13196
13208
|
killPairSession,
|
|
13197
13209
|
pairTmuxSession,
|
|
13198
13210
|
finalizeClaudePairOnboarding
|
|
13199
|
-
} = await import("../claude-pair-runtime-
|
|
13211
|
+
} = await import("../claude-pair-runtime-LTZRJHKO.js");
|
|
13200
13212
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
13201
13213
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|
|
13202
13214
|
const killed = await killPairSession(pairTmuxSession(pairId));
|