@integrity-labs/agt-cli 0.28.52 → 0.28.53
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-GNRNPCJ6.js → chunk-T2G7IMI5.js} +2 -2
- package/dist/lib/manager-worker.js +2 -2
- package/dist/mcp/slack-channel.js +11 -2
- package/dist/mcp/telegram-channel.js +5 -2
- package/package.json +1 -1
- /package/dist/{chunk-GNRNPCJ6.js.map → chunk-T2G7IMI5.js.map} +0 -0
package/dist/bin/agt.js
CHANGED
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
success,
|
|
38
38
|
table,
|
|
39
39
|
warn
|
|
40
|
-
} from "../chunk-
|
|
40
|
+
} from "../chunk-T2G7IMI5.js";
|
|
41
41
|
import {
|
|
42
42
|
CHANNEL_REGISTRY,
|
|
43
43
|
DEPLOYMENT_TEMPLATES,
|
|
@@ -4777,7 +4777,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
4777
4777
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
4778
4778
|
import chalk18 from "chalk";
|
|
4779
4779
|
import ora16 from "ora";
|
|
4780
|
-
var cliVersion = true ? "0.28.
|
|
4780
|
+
var cliVersion = true ? "0.28.53" : "dev";
|
|
4781
4781
|
async function fetchLatestVersion() {
|
|
4782
4782
|
const host2 = getHost();
|
|
4783
4783
|
if (!host2) return null;
|
|
@@ -5791,7 +5791,7 @@ function handleError(err) {
|
|
|
5791
5791
|
}
|
|
5792
5792
|
|
|
5793
5793
|
// src/bin/agt.ts
|
|
5794
|
-
var cliVersion2 = true ? "0.28.
|
|
5794
|
+
var cliVersion2 = true ? "0.28.53" : "dev";
|
|
5795
5795
|
var program = new Command();
|
|
5796
5796
|
program.name("agt").description("Augmented CLI \u2014 agent provisioning and management").version(cliVersion2).option("--json", "Emit machine-readable JSON output (suppress spinners and colors)").option("--skip-update-check", "Skip the automatic update check on startup");
|
|
5797
5797
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -7355,7 +7355,7 @@ function requireHost() {
|
|
|
7355
7355
|
}
|
|
7356
7356
|
|
|
7357
7357
|
// src/lib/api-client.ts
|
|
7358
|
-
var agtCliVersion = true ? "0.28.
|
|
7358
|
+
var agtCliVersion = true ? "0.28.53" : "dev";
|
|
7359
7359
|
var lastConfigHash = null;
|
|
7360
7360
|
function setConfigHash(hash) {
|
|
7361
7361
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -8651,4 +8651,4 @@ export {
|
|
|
8651
8651
|
managerInstallSystemUnitCommand,
|
|
8652
8652
|
managerUninstallSystemUnitCommand
|
|
8653
8653
|
};
|
|
8654
|
-
//# sourceMappingURL=chunk-
|
|
8654
|
+
//# sourceMappingURL=chunk-T2G7IMI5.js.map
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
requireHost,
|
|
28
28
|
safeWriteJsonAtomic,
|
|
29
29
|
setConfigHash
|
|
30
|
-
} from "../chunk-
|
|
30
|
+
} from "../chunk-T2G7IMI5.js";
|
|
31
31
|
import {
|
|
32
32
|
getProjectDir as getProjectDir2,
|
|
33
33
|
getReadyTasks,
|
|
@@ -6630,7 +6630,7 @@ var cachedMaintenanceWindow = null;
|
|
|
6630
6630
|
var lastVersionCheckAt = 0;
|
|
6631
6631
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
6632
6632
|
var lastResponsivenessProbeAt = 0;
|
|
6633
|
-
var agtCliVersion = true ? "0.28.
|
|
6633
|
+
var agtCliVersion = true ? "0.28.53" : "dev";
|
|
6634
6634
|
function resolveBrewPath(execFileSync4) {
|
|
6635
6635
|
try {
|
|
6636
6636
|
const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -14556,6 +14556,7 @@ function channelSkipReactionEnabled() {
|
|
|
14556
14556
|
}
|
|
14557
14557
|
function decideBusyAck(i) {
|
|
14558
14558
|
if (!i.hasTarget) return false;
|
|
14559
|
+
if (!i.arrivedWhileBusy) return false;
|
|
14559
14560
|
if (!i.stillPending) return false;
|
|
14560
14561
|
if (!Number.isFinite(i.pendingAgeMs)) return false;
|
|
14561
14562
|
const threshold = i.thresholdMs ?? channelBusyAckThresholdMs();
|
|
@@ -16844,8 +16845,9 @@ function postBusyAckNotice(channel, threadTs, isThreadReply) {
|
|
|
16844
16845
|
}).catch(() => {
|
|
16845
16846
|
});
|
|
16846
16847
|
}
|
|
16847
|
-
function scheduleBusyAck(channel, threadTs, messageTs, isThreadReply) {
|
|
16848
|
+
function scheduleBusyAck(channel, threadTs, messageTs, isThreadReply, arrivedWhileBusy) {
|
|
16848
16849
|
if (!channelBusyAckEnabled()) return;
|
|
16850
|
+
if (!arrivedWhileBusy) return;
|
|
16849
16851
|
const thresholdMs = channelBusyAckThresholdMs();
|
|
16850
16852
|
const timer = setTimeout(() => {
|
|
16851
16853
|
const probe = process.env.TMUX && AGENT_CODE_NAME ? probeAgentSessionCached(AGENT_CODE_NAME) : { tmux: "unknown", claude: "unknown" };
|
|
@@ -16861,6 +16863,7 @@ function scheduleBusyAck(channel, threadTs, messageTs, isThreadReply) {
|
|
|
16861
16863
|
if (!marker) return;
|
|
16862
16864
|
const post = decideBusyAck({
|
|
16863
16865
|
hasTarget: Boolean(channel && messageTs),
|
|
16866
|
+
arrivedWhileBusy,
|
|
16864
16867
|
stillPending: true,
|
|
16865
16868
|
pendingAgeMs: Math.max(0, Date.now() - Date.parse(marker.received_at)),
|
|
16866
16869
|
sessionAlive: probe.tmux === "alive" && probe.claude === "alive",
|
|
@@ -19804,7 +19807,13 @@ async function connectSocketMode() {
|
|
|
19804
19807
|
if (channel && ts && armMarker) {
|
|
19805
19808
|
trackPendingMessage(channel, threadTs, ts, ackDecision === "undeliverable", !shouldEngage);
|
|
19806
19809
|
if (ackDecision === "ack" && shouldEngage) {
|
|
19807
|
-
scheduleBusyAck(
|
|
19810
|
+
scheduleBusyAck(
|
|
19811
|
+
channel,
|
|
19812
|
+
threadTs,
|
|
19813
|
+
ts,
|
|
19814
|
+
isThreadReply,
|
|
19815
|
+
ackInputs.oldestPendingAgeMs != null
|
|
19816
|
+
);
|
|
19808
19817
|
}
|
|
19809
19818
|
}
|
|
19810
19819
|
const userName = await resolveUserName(user);
|
|
@@ -16207,6 +16207,7 @@ function channelSkipReactionEnabled() {
|
|
|
16207
16207
|
}
|
|
16208
16208
|
function decideBusyAck(i) {
|
|
16209
16209
|
if (!i.hasTarget) return false;
|
|
16210
|
+
if (!i.arrivedWhileBusy) return false;
|
|
16210
16211
|
if (!i.stillPending) return false;
|
|
16211
16212
|
if (!Number.isFinite(i.pendingAgeMs)) return false;
|
|
16212
16213
|
const threshold = i.thresholdMs ?? channelBusyAckThresholdMs();
|
|
@@ -16640,8 +16641,9 @@ function postBusyAckNotice(chatId, messageId) {
|
|
|
16640
16641
|
}
|
|
16641
16642
|
})();
|
|
16642
16643
|
}
|
|
16643
|
-
function scheduleBusyAck(chatId, messageId) {
|
|
16644
|
+
function scheduleBusyAck(chatId, messageId, arrivedWhileBusy) {
|
|
16644
16645
|
if (!channelBusyAckEnabled()) return;
|
|
16646
|
+
if (!arrivedWhileBusy) return;
|
|
16645
16647
|
const thresholdMs = channelBusyAckThresholdMs();
|
|
16646
16648
|
const timer = setTimeout(() => {
|
|
16647
16649
|
const probe = process.env.TMUX && AGENT_CODE_NAME && AGENT_CODE_NAME !== "unknown" ? probeAgentSessionCached(AGENT_CODE_NAME) : { tmux: "unknown", claude: "unknown" };
|
|
@@ -16657,6 +16659,7 @@ function scheduleBusyAck(chatId, messageId) {
|
|
|
16657
16659
|
if (!marker) return;
|
|
16658
16660
|
const post = decideBusyAck({
|
|
16659
16661
|
hasTarget: Boolean(chatId && messageId),
|
|
16662
|
+
arrivedWhileBusy,
|
|
16660
16663
|
stillPending: true,
|
|
16661
16664
|
pendingAgeMs: Math.max(0, Date.now() - Date.parse(marker.received_at)),
|
|
16662
16665
|
sessionAlive: probe.tmux === "alive" && probe.claude === "alive",
|
|
@@ -18832,7 +18835,7 @@ async function pollLoop() {
|
|
|
18832
18835
|
channelPayload
|
|
18833
18836
|
);
|
|
18834
18837
|
if (ackDecision === "ack") {
|
|
18835
|
-
scheduleBusyAck(chatId, messageId);
|
|
18838
|
+
scheduleBusyAck(chatId, messageId, ackInputs.oldestPendingAgeMs != null);
|
|
18836
18839
|
}
|
|
18837
18840
|
await mcp.notification({
|
|
18838
18841
|
method: "notifications/claude/channel",
|
package/package.json
CHANGED
|
File without changes
|