@integrity-labs/agt-cli 0.27.103 → 0.27.105
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-I2OTQJH3.js → chunk-S5RULZFY.js} +21 -8
- package/dist/{chunk-I2OTQJH3.js.map → chunk-S5RULZFY.js.map} +1 -1
- package/dist/{chunk-MQJ5DMPT.js → chunk-VCDQUERH.js} +20 -3
- package/dist/chunk-VCDQUERH.js.map +1 -0
- package/dist/{chunk-UVHVXVVL.js → chunk-ZFJTCUVZ.js} +2 -2
- package/dist/{claude-pair-runtime-F6USL3EW.js → claude-pair-runtime-EGHRQJRW.js} +2 -2
- package/dist/lib/manager-worker.js +20 -10
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/{persistent-session-OL5EDYB4.js → persistent-session-HGJ6THYI.js} +7 -3
- package/dist/{responsiveness-probe-B6LJJRUD.js → responsiveness-probe-HH5V6RUN.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-MQJ5DMPT.js.map +0 -1
- /package/dist/{chunk-UVHVXVVL.js.map → chunk-ZFJTCUVZ.js.map} +0 -0
- /package/dist/{claude-pair-runtime-F6USL3EW.js.map → claude-pair-runtime-EGHRQJRW.js.map} +0 -0
- /package/dist/{persistent-session-OL5EDYB4.js.map → persistent-session-HGJ6THYI.js.map} +0 -0
- /package/dist/{responsiveness-probe-B6LJJRUD.js.map → responsiveness-probe-HH5V6RUN.js.map} +0 -0
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
provisionStopHook,
|
|
18
18
|
requireHost,
|
|
19
19
|
safeWriteJsonAtomic
|
|
20
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-ZFJTCUVZ.js";
|
|
21
21
|
import {
|
|
22
22
|
getProjectDir as getProjectDir2,
|
|
23
23
|
getReadyTasks,
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
stopPersistentSession,
|
|
56
56
|
takeWatchdogGiveUpCount,
|
|
57
57
|
takeZombieDetection
|
|
58
|
-
} from "../chunk-
|
|
58
|
+
} from "../chunk-VCDQUERH.js";
|
|
59
59
|
import {
|
|
60
60
|
KANBAN_CHECK_COMMAND,
|
|
61
61
|
SUPPRESS_SENTINEL,
|
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
resolveConnectivityProbe,
|
|
80
80
|
resolveDmTarget,
|
|
81
81
|
wrapScheduledTaskPrompt
|
|
82
|
-
} from "../chunk-
|
|
82
|
+
} from "../chunk-S5RULZFY.js";
|
|
83
83
|
import {
|
|
84
84
|
parsePsRows,
|
|
85
85
|
reapOrphanChannelMcps
|
|
@@ -706,12 +706,15 @@ function extractMsTeamsBehaviourSubset(config2) {
|
|
|
706
706
|
// src/lib/slack-behaviour-restart.ts
|
|
707
707
|
function extractSlackBehaviourSubset(config2) {
|
|
708
708
|
const rawAllowed = config2?.["allowed_users"];
|
|
709
|
+
const blockKitEnabled = config2?.["block_kit_enabled"] === true;
|
|
709
710
|
return {
|
|
710
711
|
thread_auto_follow: config2?.["thread_auto_follow"] ?? "off",
|
|
711
712
|
channel_response_mode: config2?.["channel_response_mode"] ?? "mention_only",
|
|
712
713
|
// Mirror the adapter's defensive filter exactly — a malformed entry the
|
|
713
714
|
// adapter would drop must not count as an env change.
|
|
714
|
-
allowed_users: Array.isArray(rawAllowed) ? rawAllowed.filter((v) => typeof v === "string" && v.trim().length > 0).map((v) => v.trim()) : []
|
|
715
|
+
allowed_users: Array.isArray(rawAllowed) ? rawAllowed.filter((v) => typeof v === "string" && v.trim().length > 0).map((v) => v.trim()) : [],
|
|
716
|
+
block_kit_enabled: blockKitEnabled,
|
|
717
|
+
block_kit_ask_user_enabled: blockKitEnabled && config2?.["block_kit_ask_user_enabled"] === true
|
|
715
718
|
};
|
|
716
719
|
}
|
|
717
720
|
|
|
@@ -4036,7 +4039,7 @@ var cachedMaintenanceWindow = null;
|
|
|
4036
4039
|
var lastVersionCheckAt = 0;
|
|
4037
4040
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
4038
4041
|
var lastResponsivenessProbeAt = 0;
|
|
4039
|
-
var agtCliVersion = true ? "0.27.
|
|
4042
|
+
var agtCliVersion = true ? "0.27.105" : "dev";
|
|
4040
4043
|
function resolveBrewPath(execFileSync4) {
|
|
4041
4044
|
try {
|
|
4042
4045
|
const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -5229,7 +5232,7 @@ async function pollCycle() {
|
|
|
5229
5232
|
}
|
|
5230
5233
|
try {
|
|
5231
5234
|
const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
|
|
5232
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
5235
|
+
const { collectDiagnostics } = await import("../persistent-session-HGJ6THYI.js");
|
|
5233
5236
|
const diagCodeNames = [...agentState.persistentSessionAgents];
|
|
5234
5237
|
const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames) : void 0;
|
|
5235
5238
|
let tailscaleHostname;
|
|
@@ -5316,23 +5319,30 @@ async function pollCycle() {
|
|
|
5316
5319
|
const {
|
|
5317
5320
|
collectResponsivenessProbes,
|
|
5318
5321
|
getResponsivenessIntervalMs
|
|
5319
|
-
} = await import("../responsiveness-probe-
|
|
5322
|
+
} = await import("../responsiveness-probe-HH5V6RUN.js");
|
|
5320
5323
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
5321
5324
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
5322
5325
|
const probeCodeNames = [...agentState.persistentSessionAgents];
|
|
5323
5326
|
if (probeCodeNames.length > 0) {
|
|
5327
|
+
const { takeAcpxExecFailureCount, creditAcpxExecFailureCount } = await import("../persistent-session-HGJ6THYI.js");
|
|
5324
5328
|
const drainedGiveUps = /* @__PURE__ */ new Map();
|
|
5329
|
+
const drainedAcpxFailures = /* @__PURE__ */ new Map();
|
|
5325
5330
|
const probes = collectResponsivenessProbes(probeCodeNames).map((p) => {
|
|
5326
5331
|
const giveUps = takeWatchdogGiveUpCount(p.code_name);
|
|
5327
5332
|
if (giveUps > 0) drainedGiveUps.set(p.code_name, giveUps);
|
|
5328
|
-
|
|
5333
|
+
const acpxFailures = takeAcpxExecFailureCount(p.code_name);
|
|
5334
|
+
if (acpxFailures > 0) drainedAcpxFailures.set(p.code_name, acpxFailures);
|
|
5335
|
+
return { ...p, input_stuck_give_ups: giveUps, acpx_exec_failures: acpxFailures };
|
|
5329
5336
|
});
|
|
5330
5337
|
if (probes.length > 0) {
|
|
5331
5338
|
void api.post("/host/responsiveness-probe", { host_id: hostId, probes }).catch((err) => {
|
|
5332
5339
|
for (const [codeName, count] of drainedGiveUps) {
|
|
5333
5340
|
creditWatchdogGiveUpCount(codeName, count);
|
|
5334
5341
|
}
|
|
5335
|
-
|
|
5342
|
+
for (const [codeName, count] of drainedAcpxFailures) {
|
|
5343
|
+
creditAcpxExecFailureCount(codeName, count);
|
|
5344
|
+
}
|
|
5345
|
+
log(`[responsiveness-probe] post failed (give-up + acpx-failure counts re-credited): ${err.message}`);
|
|
5336
5346
|
});
|
|
5337
5347
|
}
|
|
5338
5348
|
}
|
|
@@ -9652,7 +9662,7 @@ async function processClaudePairSessions(agents) {
|
|
|
9652
9662
|
killPairSession,
|
|
9653
9663
|
pairTmuxSession,
|
|
9654
9664
|
finalizeClaudePairOnboarding
|
|
9655
|
-
} = await import("../claude-pair-runtime-
|
|
9665
|
+
} = await import("../claude-pair-runtime-EGHRQJRW.js");
|
|
9656
9666
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
9657
9667
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|
|
9658
9668
|
const killed = await killPairSession(pairTmuxSession(pairId));
|