@agentswf/contract 0.1.0-beta.0 → 0.1.0-beta.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentswf/contract",
3
- "version": "0.1.0-beta.0",
3
+ "version": "0.1.0-beta.2",
4
4
  "description": "agents.wf: types, schemas and record formats shared by its packages",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/romanlv/agentswf",
@@ -14,6 +14,18 @@ export type SandboxReach = {
14
14
  write?: readonly string[];
15
15
  /** Domains reachable beyond each harness's model API. */
16
16
  network?: readonly Domain[];
17
+ /**
18
+ * Host unix sockets the agents inside may connect to: a socket, or a directory whose sockets they
19
+ * may connect to and, when it is also in `write`, create. Nothing else of the host's is reachable
20
+ * this way. srt only: docker refuses a sandbox that names one.
21
+ */
22
+ sockets?: readonly string[];
23
+ /**
24
+ * Keeps each harness's model-side web tools, which awf otherwise turns off inside: a search runs
25
+ * on the model provider's servers, past any `network` rule, so it can carry what the agents read
26
+ * out and bring the web in (X15).
27
+ */
28
+ webSearch?: boolean;
17
29
  };
18
30
 
19
31
  /** Anthropic's sandbox-runtime on this machine: the host system and the operator's toolchain. */
@@ -21,7 +21,13 @@ async function acceptedShapes(): Promise<void> {
21
21
  network: ["registry.npmjs.org", "*.npmjs.org"],
22
22
  docker: { image: "awf-agent:node22" },
23
23
  });
24
- const local = await context.sandboxes.open({ key: "lint", cwd: "/repo", srt: {} });
24
+ const local = await context.sandboxes.open({
25
+ key: "lint",
26
+ cwd: "/repo",
27
+ sockets: ["/tmp/app"],
28
+ webSearch: true,
29
+ srt: {},
30
+ });
25
31
  const unpinned = { read: ["~/notes"] } satisfies SandboxSpec;
26
32
  const opened: AgentOpenSpec[] = [
27
33
  { key: "coder", runtime: { alias: "codex", ...headless }, sandbox: box },