zooid 0.7.0 → 0.7.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/dist/index.d.ts CHANGED
@@ -23,6 +23,28 @@ interface BuildAcpRegistryOptions {
23
23
  contextSpawnRegistry?: SpawnRegistry;
24
24
  /** Path to the daemon's context Unix socket. Passed to the MCP server bin. */
25
25
  daemonSockPath?: string;
26
+ /**
27
+ * Directory containing zooid.yaml. Required when any agent uses the
28
+ * workspace auto-mount (the default under `runtime: docker | podman`):
29
+ * relative `agent.workdir` paths are resolved against this dir.
30
+ */
31
+ configDir?: string;
32
+ /**
33
+ * Daemon data root. Each agent's preset mounts target
34
+ * `<dataDir>/agents/<agentName>` on the host.
35
+ */
36
+ dataDir?: string;
37
+ /**
38
+ * Daemon user's `$HOME`. Sourced by the v1 preset `home` / `data` /
39
+ * `config` mounts. Tests inject a stub; production threads
40
+ * `process.env.HOME` from `start-daemon`.
41
+ */
42
+ daemonHome?: string;
43
+ /**
44
+ * Sink for the per-agent "resolved image + mounts" startup log lines.
45
+ * Defaults to `console.log`. Tests pass a capture array.
46
+ */
47
+ log?: (line: string) => void;
26
48
  }
27
49
  /**
28
50
  * Build an `AcpAgentRegistry` from a parsed workforce config.
@@ -31,9 +53,11 @@ interface BuildAcpRegistryOptions {
31
53
  * - `runtime: docker` → `DockerAcpRuntime` (engine: docker)
32
54
  * - `runtime: podman` → `DockerAcpRuntime` (engine: podman)
33
55
  *
34
- * Per-agent `container.env` is passed through to each `AcpClient`'s spawn
35
- * spec verbatim (interpolation happens at parse time in `@zooid/core`).
36
- * The image is resolved as `agent.container?.image ?? cfg.container?.image`.
56
+ * Compose layers (docker/podman only): workspace auto-mount preset-declared
57
+ * canonical-id mounts (filtered by `container.disable_mounts`) user mounts.
58
+ * Image resolution: agent.container.image > workforce container.image >
59
+ * preset.image. Under `runtime: docker | podman`, throws at startup if any
60
+ * agent has no resolvable image.
37
61
  */
38
62
  declare function buildAcpRegistry(cfg: ZooidConfig, opts?: BuildAcpRegistryOptions): AcpAgentRegistry;
39
63
 
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  buildAcpRegistry
4
- } from "./chunk-N5POSZX5.js";
4
+ } from "./chunk-O6E4CDTV.js";
5
5
  export {
6
6
  buildAcpRegistry
7
7
  };