@integrity-labs/agt-cli 0.8.2 → 0.8.4

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.8.2" : "dev";
3414
+ var cliVersion = true ? "0.8.4" : "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.8.2" : "dev";
3530
+ var cliVersion2 = true ? "0.8.4" : "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) => {
@@ -438,7 +438,7 @@ function spawnSession(config2, session) {
438
438
  const value = line.slice(eqIdx + 1);
439
439
  return `${key}=${JSON.stringify(value)}`;
440
440
  }).join(" ");
441
- if (envVars) envPrefix = `env ${envVars} `;
441
+ if (envVars) envPrefix = `CLAUDE_CODE_SIMPLE=1 ${envVars} `;
442
442
  } catch {
443
443
  }
444
444
  }
@@ -539,21 +539,22 @@ async function injectMessage(codeName, type, content, meta, log2) {
539
539
  mkdirSync(tmpDir, { recursive: true });
540
540
  const tmpFile = join(tmpDir, ".agt-inject-prompt.txt");
541
541
  writeFileSync2(tmpFile, text);
542
- _log(`[inject] acpx exec: cwd=${projectDir}, file=${tmpFile}, bin=${acpx}`);
542
+ _log(`[inject] acpx prompt --no-wait: cwd=${projectDir}, file=${tmpFile}, bin=${acpx}`);
543
543
  execFileSync(acpx, [
544
544
  "claude",
545
- "exec",
545
+ "prompt",
546
+ "--no-wait",
546
547
  "-f",
547
548
  tmpFile
548
549
  ], {
549
550
  cwd: projectDir,
550
- timeout: 3e5,
551
- // 5 min for task execution
551
+ timeout: 3e4,
552
+ // 30s should return almost instantly with --no-wait
552
553
  stdio: "ignore"
553
554
  });
554
555
  return true;
555
556
  } catch (err) {
556
- _log(`[inject] acpx exec failed for '${codeName}': ${err.message}`);
557
+ _log(`[inject] acpx prompt failed for '${codeName}': ${err.message}`);
557
558
  }
558
559
  } else {
559
560
  _log(`[inject] acpx binary not found \u2014 falling back to tmux send-keys`);
@@ -644,7 +645,7 @@ function writeAcpxConfig(config2) {
644
645
  const mcpPatterns2 = mcpServerNames2.map((name) => `mcp__${name.replace(/-/g, "_")}__*`);
645
646
  const allowedTools2 = [...mcpPatterns2, "Bash", "Read", "Write", "Edit", "Grep", "Glob", "Agent", "Skill"].join(",");
646
647
  claudeArgs.push("--allowedTools", allowedTools2);
647
- let envPrefix = "";
648
+ let envPrefix = "CLAUDE_CODE_SIMPLE=1 ";
648
649
  const envIntegrationsPath = join(projectDir, ".env.integrations");
649
650
  if (existsSync(envIntegrationsPath)) {
650
651
  try {
@@ -655,7 +656,7 @@ function writeAcpxConfig(config2) {
655
656
  const value = line.slice(eqIdx + 1);
656
657
  return `${key}=${JSON.stringify(value)}`;
657
658
  }).join(" ");
658
- if (envVars) envPrefix = `env ${envVars} `;
659
+ if (envVars) envPrefix = `CLAUDE_CODE_SIMPLE=1 ${envVars} `;
659
660
  } catch {
660
661
  }
661
662
  }