@integrity-labs/agt-cli 0.7.12 → 0.7.13

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
@@ -3411,7 +3411,7 @@ async function acpxCloseCommand(agent2, _opts, cmd) {
3411
3411
  import { execSync } from "child_process";
3412
3412
  import chalk19 from "chalk";
3413
3413
  import ora15 from "ora";
3414
- var cliVersion = true ? "0.7.12" : "dev";
3414
+ var cliVersion = true ? "0.7.13" : "dev";
3415
3415
  async function fetchLatestVersion() {
3416
3416
  const host2 = AGT_HOST;
3417
3417
  if (!host2) return null;
@@ -3527,7 +3527,7 @@ async function checkForUpdateOnStartup() {
3527
3527
  }
3528
3528
 
3529
3529
  // src/bin/agt.ts
3530
- var cliVersion2 = true ? "0.7.12" : "dev";
3530
+ var cliVersion2 = true ? "0.7.13" : "dev";
3531
3531
  var program = new Command();
3532
3532
  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");
3533
3533
  program.hook("preAction", (thisCommand) => {
@@ -335,10 +335,17 @@ import { fileURLToPath } from "url";
335
335
  var _acpxBin = null;
336
336
  function getAcpxBin() {
337
337
  if (_acpxBin) return _acpxBin;
338
- const localBin = join(dirname(fileURLToPath(import.meta.url)), "..", "..", "node_modules", ".bin", "acpx");
339
- if (existsSync(localBin)) {
340
- _acpxBin = localBin;
341
- return _acpxBin;
338
+ const moduleDir = dirname(fileURLToPath(import.meta.url));
339
+ for (const candidate of [
340
+ join(moduleDir, "..", "..", "node_modules", ".bin", "acpx"),
341
+ // dist/lib/ → package root
342
+ join(moduleDir, "..", "..", "..", "..", "node_modules", ".bin", "acpx")
343
+ // hoisted to monorepo root
344
+ ]) {
345
+ if (existsSync(candidate)) {
346
+ _acpxBin = candidate;
347
+ return _acpxBin;
348
+ }
342
349
  }
343
350
  try {
344
351
  execSync("which acpx", { stdio: "ignore" });
@@ -862,47 +869,10 @@ function clearAgentCaches(agentId, codeName) {
862
869
  var cachedFrameworkVersion = null;
863
870
  var lastVersionCheckAt = 0;
864
871
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
865
- async function ensureBrewDependency(binary, formula) {
866
- if (frameworkBinaryChecked.has(`dep:${binary}`)) return true;
867
- const { execFileSync: execFileSync2 } = await import("child_process");
868
- try {
869
- execFileSync2("which", [binary], { timeout: 5e3 });
870
- frameworkBinaryChecked.add(`dep:${binary}`);
871
- return true;
872
- } catch {
873
- }
874
- let brewPath;
875
- try {
876
- brewPath = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
877
- } catch {
878
- log(`${binary} not found and Homebrew not available \u2014 install manually: brew install ${formula}`);
879
- frameworkBinaryChecked.add(`dep:${binary}`);
880
- return false;
881
- }
882
- log(`${binary} not found \u2014 installing via Homebrew...`);
883
- try {
884
- execFileSync2(brewPath, ["install", formula], { timeout: 12e4, stdio: "pipe" });
885
- } catch (err) {
886
- log(`Failed to install ${formula}: ${err.message}`);
887
- frameworkBinaryChecked.add(`dep:${binary}`);
888
- return false;
889
- }
890
- try {
891
- execFileSync2("which", [binary], { timeout: 5e3 });
892
- log(`${binary} installed successfully`);
893
- frameworkBinaryChecked.add(`dep:${binary}`);
894
- return true;
895
- } catch {
896
- log(`${formula} install completed but ${binary} not found on PATH`);
897
- frameworkBinaryChecked.add(`dep:${binary}`);
898
- return false;
899
- }
900
- }
901
872
  async function ensureFrameworkBinary(frameworkId) {
902
873
  if (frameworkId !== "claude-code") return;
903
874
  if (frameworkBinaryChecked.has(frameworkId)) return;
904
875
  frameworkBinaryChecked.add(frameworkId);
905
- await ensureBrewDependency("tmux", "tmux");
906
876
  const { execFileSync: execFileSync2 } = await import("child_process");
907
877
  let brewPath;
908
878
  try {