@integrity-labs/agt-cli 0.12.4 → 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.
@@ -17,7 +17,7 @@ import {
17
17
  resolveChannels,
18
18
  resolveDmTarget,
19
19
  wrapScheduledTaskPrompt
20
- } from "../chunk-UMDIT5CP.js";
20
+ } from "../chunk-35KA6J3P.js";
21
21
  import {
22
22
  findTaskByTemplate,
23
23
  getProjectDir,
@@ -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()));