@integrity-labs/agt-cli 0.27.97 → 0.27.99
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 +3 -3
- package/dist/{chunk-MBHA6PEN.js → chunk-3TAVWBOA.js} +8 -1
- package/dist/{chunk-MBHA6PEN.js.map → chunk-3TAVWBOA.js.map} +1 -1
- package/dist/{chunk-6UQ6RPGV.js → chunk-IUQIRUNJ.js} +1 -1
- package/dist/{claude-pair-runtime-VAMYTRCR.js → claude-pair-runtime-M2WYVEV2.js} +2 -2
- package/dist/lib/manager-worker.js +37 -9
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/slack-channel.js +102 -0
- package/dist/mcp/telegram-channel.js +101 -0
- package/dist/{persistent-session-2XLQOMXH.js → persistent-session-HAPAZHOA.js} +2 -2
- package/dist/{responsiveness-probe-ABUPNDR7.js → responsiveness-probe-ZFYY5XOU.js} +2 -2
- package/package.json +1 -1
- /package/dist/{chunk-6UQ6RPGV.js.map → chunk-IUQIRUNJ.js.map} +0 -0
- /package/dist/{claude-pair-runtime-VAMYTRCR.js.map → claude-pair-runtime-M2WYVEV2.js.map} +0 -0
- /package/dist/{persistent-session-2XLQOMXH.js.map → persistent-session-HAPAZHOA.js.map} +0 -0
- /package/dist/{responsiveness-probe-ABUPNDR7.js.map → responsiveness-probe-ZFYY5XOU.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-HAPAZHOA.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-M2WYVEV2.js.map
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
provisionStopHook,
|
|
17
17
|
requireHost,
|
|
18
18
|
safeWriteJsonAtomic
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-IUQIRUNJ.js";
|
|
20
20
|
import {
|
|
21
21
|
getProjectDir as getProjectDir2,
|
|
22
22
|
getReadyTasks,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
stopPersistentSession,
|
|
55
55
|
takeWatchdogGiveUpCount,
|
|
56
56
|
takeZombieDetection
|
|
57
|
-
} from "../chunk-
|
|
57
|
+
} from "../chunk-3TAVWBOA.js";
|
|
58
58
|
import {
|
|
59
59
|
KANBAN_CHECK_COMMAND,
|
|
60
60
|
appendDmFooter,
|
|
@@ -3996,7 +3996,7 @@ var cachedMaintenanceWindow = null;
|
|
|
3996
3996
|
var lastVersionCheckAt = 0;
|
|
3997
3997
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
3998
3998
|
var lastResponsivenessProbeAt = 0;
|
|
3999
|
-
var agtCliVersion = true ? "0.27.
|
|
3999
|
+
var agtCliVersion = true ? "0.27.99" : "dev";
|
|
4000
4000
|
function resolveBrewPath(execFileSync4) {
|
|
4001
4001
|
try {
|
|
4002
4002
|
const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -5187,7 +5187,7 @@ async function pollCycle() {
|
|
|
5187
5187
|
}
|
|
5188
5188
|
try {
|
|
5189
5189
|
const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
|
|
5190
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
5190
|
+
const { collectDiagnostics } = await import("../persistent-session-HAPAZHOA.js");
|
|
5191
5191
|
const diagCodeNames = [...agentState.persistentSessionAgents];
|
|
5192
5192
|
const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames) : void 0;
|
|
5193
5193
|
let tailscaleHostname;
|
|
@@ -5260,7 +5260,7 @@ async function pollCycle() {
|
|
|
5260
5260
|
const {
|
|
5261
5261
|
collectResponsivenessProbes,
|
|
5262
5262
|
getResponsivenessIntervalMs
|
|
5263
|
-
} = await import("../responsiveness-probe-
|
|
5263
|
+
} = await import("../responsiveness-probe-ZFYY5XOU.js");
|
|
5264
5264
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
5265
5265
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
5266
5266
|
const probeCodeNames = [...agentState.persistentSessionAgents];
|
|
@@ -5492,7 +5492,20 @@ async function pollCycle() {
|
|
|
5492
5492
|
}
|
|
5493
5493
|
},
|
|
5494
5494
|
log,
|
|
5495
|
-
now: () => Date.now()
|
|
5495
|
+
now: () => Date.now(),
|
|
5496
|
+
// ENG-6058: persist the give-up for the agent's channel servers —
|
|
5497
|
+
// their periodic sweeps turn it into a throttled user-facing
|
|
5498
|
+
// "please resend" notice for every conversation with an undrained
|
|
5499
|
+
// pending-inbound marker. Best-effort: a write failure is logged by
|
|
5500
|
+
// the watchdog, never fails the poll cycle.
|
|
5501
|
+
signalGiveUp: (codeName) => {
|
|
5502
|
+
const dir = join8(homedir4(), ".augmented", codeName);
|
|
5503
|
+
if (!existsSync5(dir)) return;
|
|
5504
|
+
atomicWriteFileSync(
|
|
5505
|
+
join8(dir, "watchdog-give-up.json"),
|
|
5506
|
+
JSON.stringify({ gave_up_at: (/* @__PURE__ */ new Date()).toISOString() })
|
|
5507
|
+
);
|
|
5508
|
+
}
|
|
5496
5509
|
}, {
|
|
5497
5510
|
// ENG-6055: heal-keystroke escalation. 'disturb' (default) retries
|
|
5498
5511
|
// with x→BSpace→Enter after the first bare Enter fails — a bare
|
|
@@ -7417,6 +7430,19 @@ async function syncAndCheckClaudeScheduler(agent, tasks, boardItems, refreshData
|
|
|
7417
7430
|
});
|
|
7418
7431
|
}
|
|
7419
7432
|
}
|
|
7433
|
+
function deriveScheduledTaskNotify(task) {
|
|
7434
|
+
if (task.deliveryChannel !== "msteams") return {};
|
|
7435
|
+
const to = task.deliveryTo;
|
|
7436
|
+
let conversationId = null;
|
|
7437
|
+
if (typeof to === "string" && to.trim().length > 0) {
|
|
7438
|
+
conversationId = to.trim();
|
|
7439
|
+
} else if (to && typeof to === "object") {
|
|
7440
|
+
const cid = to.conversation_id;
|
|
7441
|
+
if (typeof cid === "string" && cid.trim().length > 0) conversationId = cid.trim();
|
|
7442
|
+
}
|
|
7443
|
+
if (!conversationId) return {};
|
|
7444
|
+
return { notify_channel: "msteams", notify_to: conversationId };
|
|
7445
|
+
}
|
|
7420
7446
|
async function startRun(opts) {
|
|
7421
7447
|
try {
|
|
7422
7448
|
const res = await api.post(
|
|
@@ -7585,7 +7611,8 @@ async function routeScheduledTaskViaKanban(codeName, agentId, task, prompt) {
|
|
|
7585
7611
|
title: task.name,
|
|
7586
7612
|
description: prompt,
|
|
7587
7613
|
priority: 2,
|
|
7588
|
-
initial_status: "todo"
|
|
7614
|
+
initial_status: "todo",
|
|
7615
|
+
...deriveScheduledTaskNotify(task)
|
|
7589
7616
|
}
|
|
7590
7617
|
});
|
|
7591
7618
|
if (!run_id || !kanban_item_id) {
|
|
@@ -7694,7 +7721,7 @@ async function executeAndProcessClaudeTask(codeName, agentId, task, prompt) {
|
|
|
7694
7721
|
source_type: "scheduled_task",
|
|
7695
7722
|
source_ref: task.taskId,
|
|
7696
7723
|
metadata: { template_id: task.templateId, name: task.name },
|
|
7697
|
-
materialize_kanban: { title: task.name, priority: 2 }
|
|
7724
|
+
materialize_kanban: { title: task.name, priority: 2, ...deriveScheduledTaskNotify(task) }
|
|
7698
7725
|
});
|
|
7699
7726
|
runId = startResult.run_id;
|
|
7700
7727
|
kanbanItemId = startResult.kanban_item_id;
|
|
@@ -9561,7 +9588,7 @@ async function processClaudePairSessions(agents) {
|
|
|
9561
9588
|
killPairSession,
|
|
9562
9589
|
pairTmuxSession,
|
|
9563
9590
|
finalizeClaudePairOnboarding
|
|
9564
|
-
} = await import("../claude-pair-runtime-
|
|
9591
|
+
} = await import("../claude-pair-runtime-M2WYVEV2.js");
|
|
9565
9592
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
9566
9593
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|
|
9567
9594
|
const killed = await killPairSession(pairTmuxSession(pairId));
|
|
@@ -10447,6 +10474,7 @@ export {
|
|
|
10447
10474
|
claudeManagedSettingsPath,
|
|
10448
10475
|
deliverScheduledCardResult,
|
|
10449
10476
|
deliverScheduledTaskOutput,
|
|
10477
|
+
deriveScheduledTaskNotify,
|
|
10450
10478
|
ensureClaudeManagedSettings,
|
|
10451
10479
|
extractCharterSlackPeers,
|
|
10452
10480
|
extractCharterTelegramPeers,
|