@integrity-labs/agt-cli 0.28.16 → 0.28.17
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
CHANGED
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
success,
|
|
34
34
|
table,
|
|
35
35
|
warn
|
|
36
|
-
} from "../chunk-
|
|
36
|
+
} from "../chunk-TORLV2SF.js";
|
|
37
37
|
import {
|
|
38
38
|
CHANNEL_REGISTRY,
|
|
39
39
|
DEPLOYMENT_TEMPLATES,
|
|
@@ -4773,7 +4773,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
4773
4773
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
4774
4774
|
import chalk18 from "chalk";
|
|
4775
4775
|
import ora16 from "ora";
|
|
4776
|
-
var cliVersion = true ? "0.28.
|
|
4776
|
+
var cliVersion = true ? "0.28.17" : "dev";
|
|
4777
4777
|
async function fetchLatestVersion() {
|
|
4778
4778
|
const host2 = getHost();
|
|
4779
4779
|
if (!host2) return null;
|
|
@@ -5696,7 +5696,7 @@ function handleError(err) {
|
|
|
5696
5696
|
}
|
|
5697
5697
|
|
|
5698
5698
|
// src/bin/agt.ts
|
|
5699
|
-
var cliVersion2 = true ? "0.28.
|
|
5699
|
+
var cliVersion2 = true ? "0.28.17" : "dev";
|
|
5700
5700
|
var program = new Command();
|
|
5701
5701
|
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");
|
|
5702
5702
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
provisionStopHook,
|
|
23
23
|
requireHost,
|
|
24
24
|
safeWriteJsonAtomic
|
|
25
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-TORLV2SF.js";
|
|
26
26
|
import {
|
|
27
27
|
getProjectDir as getProjectDir2,
|
|
28
28
|
getReadyTasks,
|
|
@@ -5266,7 +5266,7 @@ var cachedMaintenanceWindow = null;
|
|
|
5266
5266
|
var lastVersionCheckAt = 0;
|
|
5267
5267
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
5268
5268
|
var lastResponsivenessProbeAt = 0;
|
|
5269
|
-
var agtCliVersion = true ? "0.28.
|
|
5269
|
+
var agtCliVersion = true ? "0.28.17" : "dev";
|
|
5270
5270
|
function resolveBrewPath(execFileSync4) {
|
|
5271
5271
|
try {
|
|
5272
5272
|
const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -14204,6 +14204,12 @@ function decideSlackMessageForward(evt) {
|
|
|
14204
14204
|
}
|
|
14205
14205
|
return { forward: true };
|
|
14206
14206
|
}
|
|
14207
|
+
function isAppMentionEcho(evt, botUserId2) {
|
|
14208
|
+
if (evt.type !== "message") return false;
|
|
14209
|
+
if (!botUserId2) return false;
|
|
14210
|
+
if (evt.channel?.startsWith("D")) return false;
|
|
14211
|
+
return typeof evt.text === "string" && evt.text.includes(`<@${botUserId2}>`);
|
|
14212
|
+
}
|
|
14207
14213
|
function decideSlackEngagement(input) {
|
|
14208
14214
|
const isExplicitMention = input.type === "app_mention" || !!input.botUserId && input.text.includes(`<@${input.botUserId}>`);
|
|
14209
14215
|
return !(input.isAutoFollowed && !isExplicitMention);
|
|
@@ -19545,6 +19551,14 @@ async function connectSocketMode() {
|
|
|
19545
19551
|
const evt = msg.payload.event;
|
|
19546
19552
|
if (evt.user === botUserId) return;
|
|
19547
19553
|
if (evt.type !== "app_mention" && evt.type !== "message") return;
|
|
19554
|
+
if (isAppMentionEcho(evt, botUserId)) {
|
|
19555
|
+
recordChannelDeflection(SLACK_AGENT_DIR, "slack", "duplicate");
|
|
19556
|
+
process.stderr.write(
|
|
19557
|
+
`slack-channel(${AGENT_CODE_NAME}): [channel-duplicate] dropped app_mention echo channel=${redactSlackId(evt.channel)} ts=${redactSlackId(evt.ts)}
|
|
19558
|
+
`
|
|
19559
|
+
);
|
|
19560
|
+
return;
|
|
19561
|
+
}
|
|
19548
19562
|
if (evt.channel && evt.ts && markInboundDelivered("slack", `${evt.channel}:${evt.ts}`)) {
|
|
19549
19563
|
recordChannelDeflection(SLACK_AGENT_DIR, "slack", "duplicate");
|
|
19550
19564
|
process.stderr.write(
|
package/package.json
CHANGED
|
File without changes
|