@integrity-labs/agt-cli 0.28.762 → 0.28.763
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
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
success,
|
|
42
42
|
table,
|
|
43
43
|
warn
|
|
44
|
-
} from "../chunk-
|
|
44
|
+
} from "../chunk-HVOHM3PB.js";
|
|
45
45
|
import {
|
|
46
46
|
getProjectDir,
|
|
47
47
|
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.763" : "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.763" : "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) => {
|
|
@@ -6436,7 +6436,7 @@ function exchangeFailureKind(err) {
|
|
|
6436
6436
|
}
|
|
6437
6437
|
|
|
6438
6438
|
// src/lib/api-client.ts
|
|
6439
|
-
var agtCliVersion = true ? "0.28.
|
|
6439
|
+
var agtCliVersion = true ? "0.28.763" : "dev";
|
|
6440
6440
|
var lastConfigHash = null;
|
|
6441
6441
|
function setConfigHash(hash) {
|
|
6442
6442
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -10593,4 +10593,4 @@ export {
|
|
|
10593
10593
|
managerInstallSystemUnitCommand,
|
|
10594
10594
|
managerUninstallSystemUnitCommand
|
|
10595
10595
|
};
|
|
10596
|
-
//# sourceMappingURL=chunk-
|
|
10596
|
+
//# sourceMappingURL=chunk-HVOHM3PB.js.map
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
safeWriteJsonAtomic,
|
|
59
59
|
setConfigHash,
|
|
60
60
|
tripClass
|
|
61
|
-
} from "../chunk-
|
|
61
|
+
} from "../chunk-HVOHM3PB.js";
|
|
62
62
|
import {
|
|
63
63
|
getProjectDir as getProjectDir2,
|
|
64
64
|
getReadyTasks,
|
|
@@ -1622,11 +1622,16 @@ function shouldRestartForCredentialChange(recorded, current) {
|
|
|
1622
1622
|
// src/lib/connectivity-probe-runner.ts
|
|
1623
1623
|
var DEFAULT_INTERVAL_MS = 60 * 60 * 1e3;
|
|
1624
1624
|
var DEFAULT_MAX_PER_RUN = 25;
|
|
1625
|
-
function isDue(lastCheck, now, intervalMs) {
|
|
1625
|
+
function isDue(lastCheck, now, intervalMs, reconnectQuiescedUntil) {
|
|
1626
1626
|
if (!lastCheck) return true;
|
|
1627
1627
|
const t = Date.parse(lastCheck);
|
|
1628
1628
|
if (Number.isNaN(t)) return true;
|
|
1629
|
-
|
|
1629
|
+
if (now - t >= intervalMs) return true;
|
|
1630
|
+
if (reconnectQuiescedUntil) {
|
|
1631
|
+
const q = Date.parse(reconnectQuiescedUntil);
|
|
1632
|
+
if (!Number.isNaN(q) && q <= now && t < q) return true;
|
|
1633
|
+
}
|
|
1634
|
+
return false;
|
|
1630
1635
|
}
|
|
1631
1636
|
async function runConnectivityProbes(integrations, options = {}) {
|
|
1632
1637
|
const now = (options.now?.() ?? /* @__PURE__ */ new Date()).getTime();
|
|
@@ -1634,7 +1639,7 @@ async function runConnectivityProbes(integrations, options = {}) {
|
|
|
1634
1639
|
const maxPerRun = options.maxPerRun ?? DEFAULT_MAX_PER_RUN;
|
|
1635
1640
|
const probeDeps = options.probeDeps ?? {};
|
|
1636
1641
|
const execute = options.executeProbe ?? executeConnectivityProbe;
|
|
1637
|
-
const due = integrations.filter((i) => isDue(i.last_connectivity_check_at, now, intervalMs)).sort((a, b) => {
|
|
1642
|
+
const due = integrations.filter((i) => isDue(i.last_connectivity_check_at, now, intervalMs, i.reconnect_quiesced_until)).sort((a, b) => {
|
|
1638
1643
|
const ta = a.last_connectivity_check_at ? Date.parse(a.last_connectivity_check_at) : 0;
|
|
1639
1644
|
const tb = b.last_connectivity_check_at ? Date.parse(b.last_connectivity_check_at) : 0;
|
|
1640
1645
|
return ta - tb;
|
|
@@ -13468,7 +13473,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
13468
13473
|
var lastVersionCheckAt = 0;
|
|
13469
13474
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
13470
13475
|
var lastResponsivenessProbeAt = 0;
|
|
13471
|
-
var agtCliVersion = true ? "0.28.
|
|
13476
|
+
var agtCliVersion = true ? "0.28.763" : "dev";
|
|
13472
13477
|
function resolveBrewPath(execFileSync3) {
|
|
13473
13478
|
try {
|
|
13474
13479
|
const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
|