@integrity-labs/agt-cli 0.28.323 → 0.28.324
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-JTQ6RYGM.js → chunk-BSTFCC62.js} +22 -14
- package/dist/{chunk-JTQ6RYGM.js.map → chunk-BSTFCC62.js.map} +1 -1
- package/dist/{chunk-MLXFGOLB.js → chunk-KHSPRKK2.js} +7629 -7629
- package/dist/chunk-KHSPRKK2.js.map +1 -0
- package/dist/{claude-pair-runtime-JSOSBAH3.js → claude-pair-runtime-BOFTEAQC.js} +2 -2
- package/dist/lib/manager-worker.js +17 -12
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/{persistent-session-5FKI4NCL.js → persistent-session-BICDYHOC.js} +2 -2
- package/dist/{responsiveness-probe-R42UJ5ZR.js → responsiveness-probe-FEAFPNUF.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-MLXFGOLB.js.map +0 -1
- /package/dist/{claude-pair-runtime-JSOSBAH3.js.map → claude-pair-runtime-BOFTEAQC.js.map} +0 -0
- /package/dist/{persistent-session-5FKI4NCL.js.map → persistent-session-BICDYHOC.js.map} +0 -0
- /package/dist/{responsiveness-probe-R42UJ5ZR.js.map → responsiveness-probe-FEAFPNUF.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-BICDYHOC.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-BOFTEAQC.js.map
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
requireHost,
|
|
44
44
|
safeWriteJsonAtomic,
|
|
45
45
|
setConfigHash
|
|
46
|
-
} from "../chunk-
|
|
46
|
+
} from "../chunk-KHSPRKK2.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-BSTFCC62.js";
|
|
136
136
|
import {
|
|
137
137
|
reapOrphanChannelMcps
|
|
138
138
|
} from "../chunk-XWVM4KPK.js";
|
|
@@ -4641,6 +4641,9 @@ async function maybeSendTelegramFollowUpHint(agentCodeName, botToken, chatId) {
|
|
|
4641
4641
|
}
|
|
4642
4642
|
|
|
4643
4643
|
// src/lib/manager/delivery/state.ts
|
|
4644
|
+
function toPreferredChannel(raw) {
|
|
4645
|
+
return raw === "slack" || raw === "telegram" ? raw : null;
|
|
4646
|
+
}
|
|
4644
4647
|
var agentInfoForDelivery = /* @__PURE__ */ new Map();
|
|
4645
4648
|
function cacheAgentDeliveryMetadata(codeName, refreshData) {
|
|
4646
4649
|
const agentRow = refreshData["agent"] ?? {};
|
|
@@ -4672,7 +4675,8 @@ function cacheAgentDeliveryMetadata(codeName, refreshData) {
|
|
|
4672
4675
|
person_id: reportsToPersonId,
|
|
4673
4676
|
display_name: agentRow["reports_to_name"] ?? "Reports-To",
|
|
4674
4677
|
slack_user_id: agentRow["reports_to_slack_user_id"] ?? null,
|
|
4675
|
-
telegram_chat_id: agentRow["reports_to_telegram_chat_id"] ?? null
|
|
4678
|
+
telegram_chat_id: agentRow["reports_to_telegram_chat_id"] ?? null,
|
|
4679
|
+
preferred_channel: toPreferredChannel(agentRow["reports_to_approval_notify_channel"])
|
|
4676
4680
|
});
|
|
4677
4681
|
}
|
|
4678
4682
|
const people = refreshData["people"] ?? [];
|
|
@@ -4684,7 +4688,8 @@ function cacheAgentDeliveryMetadata(codeName, refreshData) {
|
|
|
4684
4688
|
person_id: personId,
|
|
4685
4689
|
display_name: p["display_name"] ?? "person",
|
|
4686
4690
|
slack_user_id: contactPrefs["slack_user_id"] ?? null,
|
|
4687
|
-
telegram_chat_id: contactPrefs["telegram_chat_id"] ?? null
|
|
4691
|
+
telegram_chat_id: contactPrefs["telegram_chat_id"] ?? null,
|
|
4692
|
+
preferred_channel: toPreferredChannel(contactPrefs["approval_notify_channel"])
|
|
4688
4693
|
});
|
|
4689
4694
|
}
|
|
4690
4695
|
agentInfoForDelivery.set(codeName, {
|
|
@@ -8357,7 +8362,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
8357
8362
|
var lastVersionCheckAt = 0;
|
|
8358
8363
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
8359
8364
|
var lastResponsivenessProbeAt = 0;
|
|
8360
|
-
var agtCliVersion = true ? "0.28.
|
|
8365
|
+
var agtCliVersion = true ? "0.28.324" : "dev";
|
|
8361
8366
|
function resolveBrewPath(execFileSync2) {
|
|
8362
8367
|
try {
|
|
8363
8368
|
const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -9253,7 +9258,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
|
|
|
9253
9258
|
if (codeNames.length === 0) return;
|
|
9254
9259
|
void (async () => {
|
|
9255
9260
|
try {
|
|
9256
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
9261
|
+
const { collectDiagnostics } = await import("../persistent-session-BICDYHOC.js");
|
|
9257
9262
|
await api.post("/host/heartbeat", {
|
|
9258
9263
|
host_id: hostId,
|
|
9259
9264
|
agent_diagnostics: collectDiagnostics(codeNames)
|
|
@@ -9352,7 +9357,7 @@ async function pollCycle() {
|
|
|
9352
9357
|
}
|
|
9353
9358
|
try {
|
|
9354
9359
|
const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
|
|
9355
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
9360
|
+
const { collectDiagnostics } = await import("../persistent-session-BICDYHOC.js");
|
|
9356
9361
|
const diagCodeNames = [...agentState.persistentSessionAgents];
|
|
9357
9362
|
const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames) : void 0;
|
|
9358
9363
|
let tailscaleHostname;
|
|
@@ -9501,7 +9506,7 @@ async function pollCycle() {
|
|
|
9501
9506
|
const {
|
|
9502
9507
|
collectResponsivenessProbes,
|
|
9503
9508
|
getResponsivenessIntervalMs
|
|
9504
|
-
} = await import("../responsiveness-probe-
|
|
9509
|
+
} = await import("../responsiveness-probe-FEAFPNUF.js");
|
|
9505
9510
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
9506
9511
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
9507
9512
|
const probeCodeNames = [...agentState.persistentSessionAgents];
|
|
@@ -9533,7 +9538,7 @@ async function pollCycle() {
|
|
|
9533
9538
|
collectResponsivenessProbes,
|
|
9534
9539
|
livePendingInboundOldestAgeSeconds,
|
|
9535
9540
|
parkPendingInbound
|
|
9536
|
-
} = await import("../responsiveness-probe-
|
|
9541
|
+
} = await import("../responsiveness-probe-FEAFPNUF.js");
|
|
9537
9542
|
const { getProjectDir: wedgeProjectDir } = await import("../claude-scheduler-FATCLHDM.js");
|
|
9538
9543
|
const wedgeNow = /* @__PURE__ */ new Date();
|
|
9539
9544
|
const liveAgents = agentState.persistentSessionAgents;
|
|
@@ -12631,7 +12636,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
12631
12636
|
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}`));
|
|
12632
12637
|
void (async () => {
|
|
12633
12638
|
try {
|
|
12634
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
12639
|
+
const { collectDiagnostics } = await import("../persistent-session-BICDYHOC.js");
|
|
12635
12640
|
await api.post("/host/heartbeat", {
|
|
12636
12641
|
host_id: hostId,
|
|
12637
12642
|
agent_diagnostics: collectDiagnostics([codeName])
|
|
@@ -12681,7 +12686,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
|
|
|
12681
12686
|
}
|
|
12682
12687
|
try {
|
|
12683
12688
|
const hostId = await getHostId();
|
|
12684
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
12689
|
+
const { collectDiagnostics } = await import("../persistent-session-BICDYHOC.js");
|
|
12685
12690
|
await api.post("/host/heartbeat", {
|
|
12686
12691
|
host_id: hostId,
|
|
12687
12692
|
agent_diagnostics: collectDiagnostics([codeName])
|
|
@@ -13179,7 +13184,7 @@ async function processClaudePairSessions(agents) {
|
|
|
13179
13184
|
killPairSession,
|
|
13180
13185
|
pairTmuxSession,
|
|
13181
13186
|
finalizeClaudePairOnboarding
|
|
13182
|
-
} = await import("../claude-pair-runtime-
|
|
13187
|
+
} = await import("../claude-pair-runtime-BOFTEAQC.js");
|
|
13183
13188
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
13184
13189
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|
|
13185
13190
|
const killed = await killPairSession(pairTmuxSession(pairId));
|