@integrity-labs/agt-cli 0.28.684 → 0.28.685
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
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
success,
|
|
41
41
|
table,
|
|
42
42
|
warn
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-Y5GJEUZF.js";
|
|
44
44
|
import {
|
|
45
45
|
readDirectChatSessionState
|
|
46
46
|
} from "../chunk-ZKNKHAHX.js";
|
|
@@ -4909,7 +4909,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
4909
4909
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
4910
4910
|
import chalk18 from "chalk";
|
|
4911
4911
|
import ora16 from "ora";
|
|
4912
|
-
var cliVersion = true ? "0.28.
|
|
4912
|
+
var cliVersion = true ? "0.28.685" : "dev";
|
|
4913
4913
|
async function fetchLatestVersion() {
|
|
4914
4914
|
const host2 = getHost();
|
|
4915
4915
|
if (!host2) return null;
|
|
@@ -6089,7 +6089,7 @@ function handleError(err) {
|
|
|
6089
6089
|
}
|
|
6090
6090
|
|
|
6091
6091
|
// src/bin/agt.ts
|
|
6092
|
-
var cliVersion2 = true ? "0.28.
|
|
6092
|
+
var cliVersion2 = true ? "0.28.685" : "dev";
|
|
6093
6093
|
var program = new Command();
|
|
6094
6094
|
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");
|
|
6095
6095
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -6489,7 +6489,7 @@ function exchangeFailureKind(err) {
|
|
|
6489
6489
|
}
|
|
6490
6490
|
|
|
6491
6491
|
// src/lib/api-client.ts
|
|
6492
|
-
var agtCliVersion = true ? "0.28.
|
|
6492
|
+
var agtCliVersion = true ? "0.28.685" : "dev";
|
|
6493
6493
|
var lastConfigHash = null;
|
|
6494
6494
|
function setConfigHash(hash) {
|
|
6495
6495
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -10231,4 +10231,4 @@ export {
|
|
|
10231
10231
|
managerInstallSystemUnitCommand,
|
|
10232
10232
|
managerUninstallSystemUnitCommand
|
|
10233
10233
|
};
|
|
10234
|
-
//# sourceMappingURL=chunk-
|
|
10234
|
+
//# sourceMappingURL=chunk-Y5GJEUZF.js.map
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
setConfigHash,
|
|
56
56
|
setSecretFileTmpfsBacking,
|
|
57
57
|
tripClass
|
|
58
|
-
} from "../chunk-
|
|
58
|
+
} from "../chunk-Y5GJEUZF.js";
|
|
59
59
|
import {
|
|
60
60
|
getProjectDir as getProjectDir2,
|
|
61
61
|
getReadyTasks,
|
|
@@ -12403,7 +12403,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
12403
12403
|
var lastVersionCheckAt = 0;
|
|
12404
12404
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
12405
12405
|
var lastResponsivenessProbeAt = 0;
|
|
12406
|
-
var agtCliVersion = true ? "0.28.
|
|
12406
|
+
var agtCliVersion = true ? "0.28.685" : "dev";
|
|
12407
12407
|
function resolveBrewPath(execFileSync3) {
|
|
12408
12408
|
try {
|
|
12409
12409
|
const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -42223,6 +42223,7 @@ function getEffectivePingAllowedUsers() {
|
|
|
42223
42223
|
return readLivePingAllowedUsers() ?? PING_ALLOWED_USERS;
|
|
42224
42224
|
}
|
|
42225
42225
|
var SLACK_PENDING_INBOUND_DIR = SLACK_AGENT_DIR ? join20(SLACK_AGENT_DIR, "slack-pending-inbound") : null;
|
|
42226
|
+
var SLACK_PENDING_INBOUND_STALE_DIR = SLACK_AGENT_DIR ? join20(SLACK_AGENT_DIR, "slack-pending-inbound-stale") : null;
|
|
42226
42227
|
var SLACK_RESTART_CONTEXT_DIR = SLACK_AGENT_DIR ? join20(SLACK_AGENT_DIR, "slack-restart-context") : null;
|
|
42227
42228
|
var SLACK_RECOVERY_OUTBOX_DIR = SLACK_AGENT_DIR ? join20(SLACK_AGENT_DIR, "slack-recovery-outbox") : null;
|
|
42228
42229
|
var SLACK_RECOVERY_LEDGER_DIR = SLACK_AGENT_DIR ? join20(SLACK_AGENT_DIR, ".agt-slack-recovery-ledger") : null;
|
|
@@ -42943,6 +42944,29 @@ var DISCRETIONARY_MARKER_MS = 10 * 60 * 1e3;
|
|
|
42943
42944
|
function trackPendingMessage(channel, threadTs, messageTs, undeliverable = false, discretionary = false, payload) {
|
|
42944
42945
|
writeSlackPendingInboundMarker(channel, threadTs, messageTs, undeliverable, discretionary, payload);
|
|
42945
42946
|
}
|
|
42947
|
+
function deadLetterSlackMarker(fullPath, filename) {
|
|
42948
|
+
if (!SLACK_PENDING_INBOUND_STALE_DIR) return false;
|
|
42949
|
+
try {
|
|
42950
|
+
mkdirSync9(SLACK_PENDING_INBOUND_STALE_DIR, { recursive: true, mode: 448 });
|
|
42951
|
+
} catch {
|
|
42952
|
+
return false;
|
|
42953
|
+
}
|
|
42954
|
+
const target = join20(SLACK_PENDING_INBOUND_STALE_DIR, filename);
|
|
42955
|
+
try {
|
|
42956
|
+
if (!existsSync10(target)) {
|
|
42957
|
+
renameSync5(fullPath, target);
|
|
42958
|
+
return true;
|
|
42959
|
+
}
|
|
42960
|
+
} catch {
|
|
42961
|
+
return false;
|
|
42962
|
+
}
|
|
42963
|
+
try {
|
|
42964
|
+
renameSync5(fullPath, `${target}.${Date.now()}`);
|
|
42965
|
+
return true;
|
|
42966
|
+
} catch {
|
|
42967
|
+
return false;
|
|
42968
|
+
}
|
|
42969
|
+
}
|
|
42946
42970
|
function sweepSlackStaleMarkers(thresholdMs) {
|
|
42947
42971
|
if (!SLACK_PENDING_INBOUND_DIR) return;
|
|
42948
42972
|
if (!existsSync10(SLACK_PENDING_INBOUND_DIR)) return;
|
|
@@ -43009,9 +43033,11 @@ function sweepSlackStaleMarkers(thresholdMs) {
|
|
|
43009
43033
|
lostMarkers.push(
|
|
43010
43034
|
`${redactSlackId(channel ?? "none")}/${redactSlackId(message_ts ?? "none")}@${received_at ?? "no-received_at"}${marker.discretionary ? " discretionary" : ""}${marker.payload ? "" : " no-payload"}${structurallyBroken ? " structural" : ""}`
|
|
43011
43035
|
);
|
|
43012
|
-
|
|
43013
|
-
|
|
43014
|
-
|
|
43036
|
+
if (!deadLetterSlackMarker(fullPath, filename)) {
|
|
43037
|
+
try {
|
|
43038
|
+
unlinkSync7(fullPath);
|
|
43039
|
+
} catch {
|
|
43040
|
+
}
|
|
43015
43041
|
}
|
|
43016
43042
|
cleared++;
|
|
43017
43043
|
}
|
package/package.json
CHANGED
|
File without changes
|