@sweny-ai/core 0.1.153 → 0.1.154

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.
@@ -727,6 +727,9 @@ export class AcpHarness {
727
727
  tools: req.tools,
728
728
  context: this.defaultContext,
729
729
  logger: this.logger,
730
+ // Wrapped, the shim cannot open the unix socket (srt blocks AF_UNIX on
731
+ // Linux); it tunnels to a loopback port through the sandbox proxy (#439).
732
+ tcp: wrapper !== undefined,
730
733
  ...(this.toolBridgeShim ? { shimCommand: this.toolBridgeShim } : {}),
731
734
  });
732
735
  // The token rides in the shim's own env entry of session/new, never in argv.
@@ -762,7 +765,8 @@ export class AcpHarness {
762
765
  policy,
763
766
  spawn: { command: this.agent.command, args: this.agent.args, env, cwd: this.cwd },
764
767
  wrapper: wrapper ?? null,
765
- harnessEgress: this.egress,
768
+ // The bridge's loopback endpoint (wrapped runs only): the one extra host the shim needs.
769
+ harnessEgress: [...this.egress, ...(bridge?.egress ?? [])],
766
770
  env: process.env,
767
771
  });
768
772
  degraded = prep.degraded;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sweny-ai/core",
3
- "version": "0.1.153",
3
+ "version": "0.1.154",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "sweny": "./dist/cli/main.js"