@integrity-labs/agt-cli 0.28.111 → 0.28.113

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
@@ -37,7 +37,7 @@ import {
37
37
  success,
38
38
  table,
39
39
  warn
40
- } from "../chunk-JMNRCUHL.js";
40
+ } from "../chunk-KWRQ4WLA.js";
41
41
  import {
42
42
  CHANNEL_REGISTRY,
43
43
  DEPLOYMENT_TEMPLATES,
@@ -4777,7 +4777,7 @@ import { execFileSync, execSync } from "child_process";
4777
4777
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
4778
4778
  import chalk18 from "chalk";
4779
4779
  import ora16 from "ora";
4780
- var cliVersion = true ? "0.28.111" : "dev";
4780
+ var cliVersion = true ? "0.28.113" : "dev";
4781
4781
  async function fetchLatestVersion() {
4782
4782
  const host2 = getHost();
4783
4783
  if (!host2) return null;
@@ -5791,7 +5791,7 @@ function handleError(err) {
5791
5791
  }
5792
5792
 
5793
5793
  // src/bin/agt.ts
5794
- var cliVersion2 = true ? "0.28.111" : "dev";
5794
+ var cliVersion2 = true ? "0.28.113" : "dev";
5795
5795
  var program = new Command();
5796
5796
  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");
5797
5797
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -7625,7 +7625,7 @@ function requireHost() {
7625
7625
  }
7626
7626
 
7627
7627
  // src/lib/api-client.ts
7628
- var agtCliVersion = true ? "0.28.111" : "dev";
7628
+ var agtCliVersion = true ? "0.28.113" : "dev";
7629
7629
  var lastConfigHash = null;
7630
7630
  function setConfigHash(hash) {
7631
7631
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -8922,4 +8922,4 @@ export {
8922
8922
  managerInstallSystemUnitCommand,
8923
8923
  managerUninstallSystemUnitCommand
8924
8924
  };
8925
- //# sourceMappingURL=chunk-JMNRCUHL.js.map
8925
+ //# sourceMappingURL=chunk-KWRQ4WLA.js.map
@@ -658,7 +658,7 @@ function restartEgressSidecar(codeName) {
658
658
  }
659
659
  }
660
660
  function buildDockerRunCommand(args) {
661
- const { codeName, agentId, wrapperPath, projectDir, homeDir, runId, passApiKey, egress } = args;
661
+ const { codeName, agentId, wrapperPath, projectDir, homeDir, runId, passApiKey, egress, npmCache } = args;
662
662
  const q = (s) => `'${s.replace(/'/g, `'\\''`)}'`;
663
663
  const agentDir = join2(homeDir, ".augmented", codeName);
664
664
  const agentIdDir = join2(homeDir, ".augmented", agentId);
@@ -672,8 +672,9 @@ function buildDockerRunCommand(args) {
672
672
  `-v ${q(`${claudeHome}:${claudeHome}`)}`,
673
673
  `-v ${q(`${claudeJson}:${claudeJson}`)}`
674
674
  ];
675
+ if (npmCache) mounts.push(`-v ${q(`${npmCache}:${npmCache}:ro`)}`);
675
676
  const image = process.env.AGT_ISOLATION_IMAGE || "agt-runtime:latest";
676
- const memory = process.env.AGT_ISOLATION_MEMORY || "512m";
677
+ const memory = process.env.AGT_ISOLATION_MEMORY || "2g";
677
678
  const cpus = process.env.AGT_ISOLATION_CPUS || "1.0";
678
679
  const pids = process.env.AGT_ISOLATION_PIDS || "512";
679
680
  const envArgs = [`-e ${q(`HOME=${homeDir}`)}`];
@@ -992,6 +993,8 @@ function spawnSession(config, session) {
992
993
  egress = { allowlistHostPath };
993
994
  log(`[persistent-session] egress allowlist for '${codeName}': ${allowlist.length} domains (deny-by-default)`);
994
995
  }
996
+ const npmCachePath = join2(sessionHomeDir, ".npm");
997
+ const npmCache = existsSync2(npmCachePath) ? npmCachePath : void 0;
995
998
  const claudeCmd = isolationMode(codeName) === "docker" ? buildDockerRunCommand({
996
999
  codeName,
997
1000
  agentId: config.agentId,
@@ -1000,7 +1003,8 @@ function spawnSession(config, session) {
1000
1003
  homeDir: sessionHomeDir,
1001
1004
  runId: config.runId ?? void 0,
1002
1005
  passApiKey: claudeAuthMode === "api_key" && !!config.anthropicApiKey,
1003
- egress
1006
+ egress,
1007
+ npmCache
1004
1008
  }) : JSON.stringify(wrapperPath);
1005
1009
  const tmuxEnv = {
1006
1010
  ...process.env,
@@ -1565,4 +1569,4 @@ export {
1565
1569
  stopAllSessionsAndWait,
1566
1570
  getProjectDir
1567
1571
  };
1568
- //# sourceMappingURL=chunk-QP4RFWWF.js.map
1572
+ //# sourceMappingURL=chunk-LU55ZAOK.js.map