@integrity-labs/agt-cli 0.28.103 → 0.28.104
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
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
success,
|
|
38
38
|
table,
|
|
39
39
|
warn
|
|
40
|
-
} from "../chunk-
|
|
40
|
+
} from "../chunk-DO6ZJ2SC.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.104" : "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.104" : "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) => {
|
|
@@ -7600,7 +7600,7 @@ function requireHost() {
|
|
|
7600
7600
|
}
|
|
7601
7601
|
|
|
7602
7602
|
// src/lib/api-client.ts
|
|
7603
|
-
var agtCliVersion = true ? "0.28.
|
|
7603
|
+
var agtCliVersion = true ? "0.28.104" : "dev";
|
|
7604
7604
|
var lastConfigHash = null;
|
|
7605
7605
|
function setConfigHash(hash) {
|
|
7606
7606
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -8897,4 +8897,4 @@ export {
|
|
|
8897
8897
|
managerInstallSystemUnitCommand,
|
|
8898
8898
|
managerUninstallSystemUnitCommand
|
|
8899
8899
|
};
|
|
8900
|
-
//# sourceMappingURL=chunk-
|
|
8900
|
+
//# sourceMappingURL=chunk-DO6ZJ2SC.js.map
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
requireHost,
|
|
29
29
|
safeWriteJsonAtomic,
|
|
30
30
|
setConfigHash
|
|
31
|
-
} from "../chunk-
|
|
31
|
+
} from "../chunk-DO6ZJ2SC.js";
|
|
32
32
|
import {
|
|
33
33
|
getProjectDir as getProjectDir2,
|
|
34
34
|
getReadyTasks,
|
|
@@ -6961,7 +6961,7 @@ var cachedMaintenanceWindow = null;
|
|
|
6961
6961
|
var lastVersionCheckAt = 0;
|
|
6962
6962
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
6963
6963
|
var lastResponsivenessProbeAt = 0;
|
|
6964
|
-
var agtCliVersion = true ? "0.28.
|
|
6964
|
+
var agtCliVersion = true ? "0.28.104" : "dev";
|
|
6965
6965
|
function resolveBrewPath(execFileSync4) {
|
|
6966
6966
|
try {
|
|
6967
6967
|
const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -14523,6 +14523,15 @@ function decideAckReaction(i) {
|
|
|
14523
14523
|
if (!i.hasTarget) return "none";
|
|
14524
14524
|
return classifyUndeliverableCause(i) !== null ? "undeliverable" : "ack";
|
|
14525
14525
|
}
|
|
14526
|
+
function normalizeReactionName(emoji2) {
|
|
14527
|
+
return emoji2.trim().replace(/^:+|:+$/g, "").toLowerCase();
|
|
14528
|
+
}
|
|
14529
|
+
function skipReactionShouldRetractAck(emoji2, skipReaction, ackReaction) {
|
|
14530
|
+
const skip = normalizeReactionName(skipReaction);
|
|
14531
|
+
if (!skip) return false;
|
|
14532
|
+
if (normalizeReactionName(emoji2) !== skip) return false;
|
|
14533
|
+
return normalizeReactionName(ackReaction) !== skip;
|
|
14534
|
+
}
|
|
14526
14535
|
function classifyUndeliverableCause(i) {
|
|
14527
14536
|
if (!i.hasTarget) return null;
|
|
14528
14537
|
if (!i.integrationReady) return "integration_down";
|
|
@@ -19290,6 +19299,17 @@ mcp.setRequestHandler(CallToolRequestSchema, async (req) => {
|
|
|
19290
19299
|
isError: true
|
|
19291
19300
|
};
|
|
19292
19301
|
}
|
|
19302
|
+
if (skipReactionShouldRetractAck(emoji2, SLACK_SKIP_REACTION, SLACK_ACK_REACTION)) {
|
|
19303
|
+
fetch("https://slack.com/api/reactions.remove", {
|
|
19304
|
+
method: "POST",
|
|
19305
|
+
headers: {
|
|
19306
|
+
"Content-Type": "application/json",
|
|
19307
|
+
Authorization: `Bearer ${BOT_TOKEN}`
|
|
19308
|
+
},
|
|
19309
|
+
body: JSON.stringify({ channel, timestamp, name: SLACK_ACK_REACTION })
|
|
19310
|
+
}).catch(() => {
|
|
19311
|
+
});
|
|
19312
|
+
}
|
|
19293
19313
|
return { content: [{ type: "text", text: "reacted" }] };
|
|
19294
19314
|
} catch (err) {
|
|
19295
19315
|
return {
|
package/package.json
CHANGED
|
File without changes
|