@integrity-labs/agt-cli 0.28.638 → 0.28.639
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-T23GT44E.js";
|
|
44
44
|
import {
|
|
45
45
|
readDirectChatSessionState
|
|
46
46
|
} from "../chunk-MRQ2GRTN.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.639" : "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.639" : "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) => {
|
|
@@ -6073,7 +6073,7 @@ function exchangeFailureKind(err) {
|
|
|
6073
6073
|
}
|
|
6074
6074
|
|
|
6075
6075
|
// src/lib/api-client.ts
|
|
6076
|
-
var agtCliVersion = true ? "0.28.
|
|
6076
|
+
var agtCliVersion = true ? "0.28.639" : "dev";
|
|
6077
6077
|
var lastConfigHash = null;
|
|
6078
6078
|
function setConfigHash(hash) {
|
|
6079
6079
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -9814,4 +9814,4 @@ export {
|
|
|
9814
9814
|
managerInstallSystemUnitCommand,
|
|
9815
9815
|
managerUninstallSystemUnitCommand
|
|
9816
9816
|
};
|
|
9817
|
-
//# sourceMappingURL=chunk-
|
|
9817
|
+
//# sourceMappingURL=chunk-T23GT44E.js.map
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
safeWriteJsonAtomic,
|
|
56
56
|
setConfigHash,
|
|
57
57
|
tripClass
|
|
58
|
-
} from "../chunk-
|
|
58
|
+
} from "../chunk-T23GT44E.js";
|
|
59
59
|
import {
|
|
60
60
|
getProjectDir as getProjectDir2,
|
|
61
61
|
getReadyTasks,
|
|
@@ -5595,6 +5595,20 @@ function writeManagedSkillManifest(path, ids) {
|
|
|
5595
5595
|
}
|
|
5596
5596
|
}
|
|
5597
5597
|
|
|
5598
|
+
// src/lib/poll-loop-guard.ts
|
|
5599
|
+
async function pollCycleAndReschedule(pollCycle2, opts) {
|
|
5600
|
+
try {
|
|
5601
|
+
await pollCycle2();
|
|
5602
|
+
} catch (err) {
|
|
5603
|
+
try {
|
|
5604
|
+
await opts.onError(err);
|
|
5605
|
+
} catch {
|
|
5606
|
+
}
|
|
5607
|
+
} finally {
|
|
5608
|
+
await opts.reschedule();
|
|
5609
|
+
}
|
|
5610
|
+
}
|
|
5611
|
+
|
|
5598
5612
|
// src/lib/manager/restart-timing.ts
|
|
5599
5613
|
var pendingRequested = /* @__PURE__ */ new Map();
|
|
5600
5614
|
var tracks = /* @__PURE__ */ new Map();
|
|
@@ -12140,7 +12154,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
12140
12154
|
var lastVersionCheckAt = 0;
|
|
12141
12155
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
12142
12156
|
var lastResponsivenessProbeAt = 0;
|
|
12143
|
-
var agtCliVersion = true ? "0.28.
|
|
12157
|
+
var agtCliVersion = true ? "0.28.639" : "dev";
|
|
12144
12158
|
function resolveBrewPath(execFileSync3) {
|
|
12145
12159
|
try {
|
|
12146
12160
|
const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -17788,8 +17802,9 @@ function triggerEarlyPoll(reason) {
|
|
|
17788
17802
|
}
|
|
17789
17803
|
log(`[realtime] Triggering early poll: ${reason}`);
|
|
17790
17804
|
pollTimer = setTimeout(() => {
|
|
17791
|
-
void pollCycle
|
|
17792
|
-
|
|
17805
|
+
void pollCycleAndReschedule(pollCycle, {
|
|
17806
|
+
onError: (err) => log(`[poll-loop] early-poll cycle rejected: ${err?.message ?? String(err)}`),
|
|
17807
|
+
reschedule: () => scheduleNext()
|
|
17793
17808
|
});
|
|
17794
17809
|
}, 0);
|
|
17795
17810
|
}
|
|
@@ -18652,10 +18667,13 @@ function startPolling() {
|
|
|
18652
18667
|
}
|
|
18653
18668
|
void killAllAgtTmuxSessions().catch(() => {
|
|
18654
18669
|
}).then(() => {
|
|
18655
|
-
return pollCycle
|
|
18656
|
-
|
|
18657
|
-
|
|
18658
|
-
|
|
18670
|
+
return pollCycleAndReschedule(pollCycle, {
|
|
18671
|
+
onError: (err) => log(`[poll-loop] startup cycle rejected: ${err?.message ?? String(err)}`),
|
|
18672
|
+
reschedule: () => {
|
|
18673
|
+
void driveArtifactStreaming();
|
|
18674
|
+
scheduleNext();
|
|
18675
|
+
}
|
|
18676
|
+
});
|
|
18659
18677
|
});
|
|
18660
18678
|
}
|
|
18661
18679
|
async function reportSelfUpdateRestarts() {
|
|
@@ -18697,9 +18715,12 @@ function scheduleNext() {
|
|
|
18697
18715
|
restartNow();
|
|
18698
18716
|
return;
|
|
18699
18717
|
}
|
|
18700
|
-
void pollCycle
|
|
18701
|
-
|
|
18702
|
-
|
|
18718
|
+
void pollCycleAndReschedule(pollCycle, {
|
|
18719
|
+
onError: (err) => log(`[poll-loop] scheduled cycle rejected: ${err?.message ?? String(err)}`),
|
|
18720
|
+
reschedule: () => {
|
|
18721
|
+
void driveArtifactStreaming();
|
|
18722
|
+
scheduleNext();
|
|
18723
|
+
}
|
|
18703
18724
|
});
|
|
18704
18725
|
}, delayMs);
|
|
18705
18726
|
}
|