@integrity-labs/agt-cli 0.28.883 → 0.28.884

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
@@ -40,12 +40,12 @@ import {
40
40
  success,
41
41
  table,
42
42
  warn
43
- } from "../chunk-B3WKENVI.js";
43
+ } from "../chunk-5P4R3IPC.js";
44
44
  import {
45
45
  getProjectDir,
46
46
  isSessionResumeDisabled,
47
47
  readDirectChatSessionState
48
- } from "../chunk-PZHDYVFU.js";
48
+ } from "../chunk-YNYWVGHB.js";
49
49
  import {
50
50
  AnchorSessionClient,
51
51
  CHANNEL_REGISTRY,
@@ -5467,7 +5467,7 @@ import { execFileSync, execSync } from "child_process";
5467
5467
  import { existsSync as existsSync11, realpathSync as realpathSync2 } from "fs";
5468
5468
  import chalk18 from "chalk";
5469
5469
  import ora16 from "ora";
5470
- var cliVersion = true ? "0.28.883" : "dev";
5470
+ var cliVersion = true ? "0.28.884" : "dev";
5471
5471
  async function fetchLatestVersion() {
5472
5472
  const host2 = getHost();
5473
5473
  if (!host2) return null;
@@ -6658,7 +6658,7 @@ function handleError(err) {
6658
6658
  }
6659
6659
 
6660
6660
  // src/bin/agt.ts
6661
- var cliVersion2 = true ? "0.28.883" : "dev";
6661
+ var cliVersion2 = true ? "0.28.884" : "dev";
6662
6662
  var program = new Command();
6663
6663
  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");
6664
6664
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -16,7 +16,7 @@ import {
16
16
  parseEnvIntegrations,
17
17
  shellQuote,
18
18
  summarizeUnanswerablePane
19
- } from "./chunk-PZHDYVFU.js";
19
+ } from "./chunk-YNYWVGHB.js";
20
20
  import {
21
21
  BIND_FAILURE_QUARANTINE_THRESHOLD,
22
22
  INTEGRATIONS_SECTION_END,
@@ -6765,7 +6765,7 @@ function exchangeFailureKind(err) {
6765
6765
  }
6766
6766
 
6767
6767
  // src/lib/api-client.ts
6768
- var agtCliVersion = true ? "0.28.883" : "dev";
6768
+ var agtCliVersion = true ? "0.28.884" : "dev";
6769
6769
  var lastConfigHash = null;
6770
6770
  function setConfigHash(hash) {
6771
6771
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -11375,4 +11375,4 @@ export {
11375
11375
  managerInstallSystemUnitCommand,
11376
11376
  managerUninstallSystemUnitCommand
11377
11377
  };
11378
- //# sourceMappingURL=chunk-B3WKENVI.js.map
11378
+ //# sourceMappingURL=chunk-5P4R3IPC.js.map
@@ -3825,6 +3825,7 @@ function buildDockerRunCommand(args) {
3825
3825
  ];
3826
3826
  const image = process.env.AGT_ISOLATION_IMAGE || "agt-runtime:latest";
3827
3827
  const memory = process.env.AGT_ISOLATION_MEMORY || "2g";
3828
+ const memorySwap = memory;
3828
3829
  const cpus = process.env.AGT_ISOLATION_CPUS || "1.0";
3829
3830
  const pids = process.env.AGT_ISOLATION_PIDS || "512";
3830
3831
  const envArgs = [`-e ${q(`HOME=${homeDir}`)}`];
@@ -3881,7 +3882,13 @@ function buildDockerRunCommand(args) {
3881
3882
  // squid processes untrusted agent traffic - give it the same hardening as
3882
3883
  // the agent container (drop all caps, block privilege escalation). squid
3883
3884
  // binds 3128 (>1024) and needs no capabilities; verified it still boots.
3884
- `docker run -d --name ${squidName} --network ${internalNet} --restart unless-stopped --memory 128m --cap-drop ALL --security-opt no-new-privileges -v ${q(`${egress.allowlistHostPath}:/etc/squid/allowlist.txt:ro`)} ${q(egressImage)} >/dev/null`,
3885
+ // ENG-10369: `--memory-swap 128m` equal to `--memory 128m`, same reasoning
3886
+ // as the agent container above. squid is small and steady-state, so the
3887
+ // phantom 256m grant was never load-bearing - but leaving ONE container on
3888
+ // the implicit-doubling path is how the next host-swap change finds a way
3889
+ // back in, and an exemption nobody wrote down is an exemption nobody
3890
+ // re-checks.
3891
+ `docker run -d --name ${squidName} --network ${internalNet} --restart unless-stopped --memory 128m --memory-swap 128m --cap-drop ALL --security-opt no-new-privileges -v ${q(`${egress.allowlistHostPath}:/etc/squid/allowlist.txt:ro`)} ${q(egressImage)} >/dev/null`,
3885
3892
  `docker network connect agt-egress ${squidName} >/dev/null 2>&1`
3886
3893
  ].join(" && ");
3887
3894
  }
@@ -3915,6 +3922,9 @@ function buildDockerRunCommand(args) {
3915
3922
  // per-application is how it gets forgotten again next time.
3916
3923
  "--init",
3917
3924
  `--memory ${memory}`,
3925
+ // ENG-10369 - equal to `--memory`, so the container gets no swap access.
3926
+ // See the `memorySwap` definition above for why this is not optional.
3927
+ `--memory-swap ${memorySwap}`,
3918
3928
  `--cpus ${cpus}`,
3919
3929
  `--pids-limit ${pids}`,
3920
3930
  // Defence in depth (red-team 2026-06-16): drop all Linux capabilities and
@@ -5431,4 +5441,4 @@ export {
5431
5441
  stopAllSessionsAndWait,
5432
5442
  getProjectDir
5433
5443
  };
5434
- //# sourceMappingURL=chunk-PZHDYVFU.js.map
5444
+ //# sourceMappingURL=chunk-YNYWVGHB.js.map