@integrity-labs/agt-cli 0.12.5 → 0.12.6
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
|
@@ -3717,7 +3717,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
3717
3717
|
import { existsSync as existsSync5, realpathSync } from "fs";
|
|
3718
3718
|
import chalk20 from "chalk";
|
|
3719
3719
|
import ora15 from "ora";
|
|
3720
|
-
var cliVersion = true ? "0.12.
|
|
3720
|
+
var cliVersion = true ? "0.12.6" : "dev";
|
|
3721
3721
|
async function fetchLatestVersion() {
|
|
3722
3722
|
const host2 = getHost();
|
|
3723
3723
|
if (!host2) return null;
|
|
@@ -4166,7 +4166,7 @@ function handleError(err) {
|
|
|
4166
4166
|
}
|
|
4167
4167
|
|
|
4168
4168
|
// src/bin/agt.ts
|
|
4169
|
-
var cliVersion2 = true ? "0.12.
|
|
4169
|
+
var cliVersion2 = true ? "0.12.6" : "dev";
|
|
4170
4170
|
var program = new Command();
|
|
4171
4171
|
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");
|
|
4172
4172
|
program.hook("preAction", (thisCommand) => {
|
|
@@ -988,6 +988,11 @@ async function checkAndUpdateCli() {
|
|
|
988
988
|
} catch {
|
|
989
989
|
return;
|
|
990
990
|
}
|
|
991
|
+
try {
|
|
992
|
+
execFileSync(brewPath, ["update", "--quiet"], { timeout: 6e4, stdio: "pipe" });
|
|
993
|
+
} catch (err) {
|
|
994
|
+
log(`[self-update] brew update failed (continuing with stale cache): ${err.message}`);
|
|
995
|
+
}
|
|
991
996
|
try {
|
|
992
997
|
const outdated = execFileSync(brewPath, ["outdated", "--json=v2"], {
|
|
993
998
|
timeout: 3e4,
|
|
@@ -1008,8 +1013,11 @@ async function checkAndUpdateCli() {
|
|
|
1008
1013
|
} catch (err) {
|
|
1009
1014
|
log(`[self-update] Upgrade failed: ${err.message}`);
|
|
1010
1015
|
}
|
|
1016
|
+
} else {
|
|
1017
|
+
log(`[self-update] agt CLI is up to date`);
|
|
1011
1018
|
}
|
|
1012
|
-
} catch {
|
|
1019
|
+
} catch (err) {
|
|
1020
|
+
log(`[self-update] brew outdated failed: ${err.message}`);
|
|
1013
1021
|
}
|
|
1014
1022
|
try {
|
|
1015
1023
|
writeF(markerPath, String(Date.now()));
|