@integrity-labs/agt-cli 0.7.0 → 0.7.1

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
@@ -3413,7 +3413,7 @@ async function acpxCloseCommand(agent2, _opts, cmd) {
3413
3413
  import { execSync } from "child_process";
3414
3414
  import chalk19 from "chalk";
3415
3415
  import ora15 from "ora";
3416
- var cliVersion = true ? "0.7.0" : "dev";
3416
+ var cliVersion = true ? "0.7.1" : "dev";
3417
3417
  async function fetchLatestVersion() {
3418
3418
  const host2 = AGT_HOST;
3419
3419
  if (!host2) return null;
@@ -3529,7 +3529,7 @@ async function checkForUpdateOnStartup() {
3529
3529
  }
3530
3530
 
3531
3531
  // src/bin/agt.ts
3532
- var cliVersion2 = true ? "0.7.0" : "dev";
3532
+ var cliVersion2 = true ? "0.7.1" : "dev";
3533
3533
  var program = new Command();
3534
3534
  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");
3535
3535
  program.hook("preAction", (thisCommand) => {
@@ -811,10 +811,47 @@ function clearAgentCaches(agentId, codeName) {
811
811
  var cachedFrameworkVersion = null;
812
812
  var lastVersionCheckAt = 0;
813
813
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
814
+ async function ensureBrewDependency(binary, formula) {
815
+ if (frameworkBinaryChecked.has(`dep:${binary}`)) return true;
816
+ const { execFileSync } = await import("child_process");
817
+ try {
818
+ execFileSync("which", [binary], { timeout: 5e3 });
819
+ frameworkBinaryChecked.add(`dep:${binary}`);
820
+ return true;
821
+ } catch {
822
+ }
823
+ let brewPath;
824
+ try {
825
+ brewPath = execFileSync("which", ["brew"], { timeout: 5e3 }).toString().trim();
826
+ } catch {
827
+ log(`${binary} not found and Homebrew not available \u2014 install manually: brew install ${formula}`);
828
+ frameworkBinaryChecked.add(`dep:${binary}`);
829
+ return false;
830
+ }
831
+ log(`${binary} not found \u2014 installing via Homebrew...`);
832
+ try {
833
+ execFileSync(brewPath, ["install", formula], { timeout: 12e4, stdio: "pipe" });
834
+ } catch (err) {
835
+ log(`Failed to install ${formula}: ${err.message}`);
836
+ frameworkBinaryChecked.add(`dep:${binary}`);
837
+ return false;
838
+ }
839
+ try {
840
+ execFileSync("which", [binary], { timeout: 5e3 });
841
+ log(`${binary} installed successfully`);
842
+ frameworkBinaryChecked.add(`dep:${binary}`);
843
+ return true;
844
+ } catch {
845
+ log(`${formula} install completed but ${binary} not found on PATH`);
846
+ frameworkBinaryChecked.add(`dep:${binary}`);
847
+ return false;
848
+ }
849
+ }
814
850
  async function ensureFrameworkBinary(frameworkId) {
815
851
  if (frameworkId !== "claude-code") return;
816
852
  if (frameworkBinaryChecked.has(frameworkId)) return;
817
853
  frameworkBinaryChecked.add(frameworkId);
854
+ await ensureBrewDependency("tmux", "tmux");
818
855
  const { execFileSync } = await import("child_process");
819
856
  let brewPath;
820
857
  try {