@integrity-labs/agt-cli 0.28.874 → 0.28.875
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-UG2N5V4P.js → chunk-6MGKXGCE.js} +2 -2
- package/dist/lib/manager-worker.js +9 -3
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/slack-channel.js +97 -5
- package/package.json +1 -1
- /package/dist/{chunk-UG2N5V4P.js.map → chunk-6MGKXGCE.js.map} +0 -0
package/dist/bin/agt.js
CHANGED
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
success,
|
|
41
41
|
table,
|
|
42
42
|
warn
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-6MGKXGCE.js";
|
|
44
44
|
import {
|
|
45
45
|
getProjectDir,
|
|
46
46
|
isSessionResumeDisabled,
|
|
@@ -5467,7 +5467,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
5467
5467
|
import { existsSync as existsSync11, realpathSync as realpathSync2 } from "fs";
|
|
5468
5468
|
import chalk18 from "chalk";
|
|
5469
5469
|
import ora16 from "ora";
|
|
5470
|
-
var cliVersion = true ? "0.28.
|
|
5470
|
+
var cliVersion = true ? "0.28.875" : "dev";
|
|
5471
5471
|
async function fetchLatestVersion() {
|
|
5472
5472
|
const host2 = getHost();
|
|
5473
5473
|
if (!host2) return null;
|
|
@@ -6658,7 +6658,7 @@ function handleError(err) {
|
|
|
6658
6658
|
}
|
|
6659
6659
|
|
|
6660
6660
|
// src/bin/agt.ts
|
|
6661
|
-
var cliVersion2 = true ? "0.28.
|
|
6661
|
+
var cliVersion2 = true ? "0.28.875" : "dev";
|
|
6662
6662
|
var program = new Command();
|
|
6663
6663
|
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");
|
|
6664
6664
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -6771,7 +6771,7 @@ function exchangeFailureKind(err) {
|
|
|
6771
6771
|
}
|
|
6772
6772
|
|
|
6773
6773
|
// src/lib/api-client.ts
|
|
6774
|
-
var agtCliVersion = true ? "0.28.
|
|
6774
|
+
var agtCliVersion = true ? "0.28.875" : "dev";
|
|
6775
6775
|
var lastConfigHash = null;
|
|
6776
6776
|
function setConfigHash(hash) {
|
|
6777
6777
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -11381,4 +11381,4 @@ export {
|
|
|
11381
11381
|
managerInstallSystemUnitCommand,
|
|
11382
11382
|
managerUninstallSystemUnitCommand
|
|
11383
11383
|
};
|
|
11384
|
-
//# sourceMappingURL=chunk-
|
|
11384
|
+
//# sourceMappingURL=chunk-6MGKXGCE.js.map
|
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
safeWriteJsonAtomic,
|
|
64
64
|
setConfigHash,
|
|
65
65
|
tripClass
|
|
66
|
-
} from "../chunk-
|
|
66
|
+
} from "../chunk-6MGKXGCE.js";
|
|
67
67
|
import {
|
|
68
68
|
getProjectDir as getProjectDir2,
|
|
69
69
|
getReadyTasks,
|
|
@@ -9542,13 +9542,19 @@ function isAppMentionEcho(evt, botUserId) {
|
|
|
9542
9542
|
return false;
|
|
9543
9543
|
if (evt.channel?.startsWith("D"))
|
|
9544
9544
|
return false;
|
|
9545
|
-
return typeof evt.text === "string" && evt.text
|
|
9545
|
+
return typeof evt.text === "string" && mentionsUser(evt.text, botUserId);
|
|
9546
9546
|
}
|
|
9547
9547
|
function slackInboundDedupId(evt) {
|
|
9548
9548
|
if (!evt.channel || !evt.ts)
|
|
9549
9549
|
return null;
|
|
9550
9550
|
return `${evt.channel}:${evt.ts}:${evt.type ?? "unknown"}`;
|
|
9551
9551
|
}
|
|
9552
|
+
function mentionsUser(text, userId) {
|
|
9553
|
+
if (!userId)
|
|
9554
|
+
return false;
|
|
9555
|
+
const escaped = userId.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
9556
|
+
return new RegExp(`<@${escaped}[|>]`).test(text);
|
|
9557
|
+
}
|
|
9552
9558
|
function extractAugmentedSlackLabel(evt) {
|
|
9553
9559
|
if (evt.metadata?.event_type !== "augmented_agent_message")
|
|
9554
9560
|
return null;
|
|
@@ -13678,7 +13684,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
13678
13684
|
var lastVersionCheckAt = 0;
|
|
13679
13685
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
13680
13686
|
var lastResponsivenessProbeAt = 0;
|
|
13681
|
-
var agtCliVersion = true ? "0.28.
|
|
13687
|
+
var agtCliVersion = true ? "0.28.875" : "dev";
|
|
13682
13688
|
function resolveBrewPath(execFileSync2) {
|
|
13683
13689
|
try {
|
|
13684
13690
|
const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
|