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/bin.js +124 -15
- package/dist/bin.js.map +1 -1
- package/dist/{chunk-N5POSZX5.js → chunk-O6E4CDTV.js} +805 -218
- package/dist/chunk-O6E4CDTV.js.map +1 -0
- package/dist/index.d.ts +27 -3
- package/dist/index.js +1 -1
- package/dist/web/assets/{index-BT_v3DKu.js → index-1pU3tgkr.js} +85 -75
- package/dist/web/assets/index-C-ZtBp7U.css +1 -0
- package/dist/web/assets/{index-JZMMlqDP.js → index-CXOPATwH.js} +1 -1
- package/dist/web/assets/{reaction-picker-emoji-Kh7emgFa.js → reaction-picker-emoji-DrlHZ5qt.js} +1 -1
- package/dist/web/index.html +2 -2
- package/package.json +8 -7
- package/src/bin.ts +5 -2
- package/src/build-registry.context.test.ts +1 -1
- package/src/build-registry.ts +211 -10
- package/src/build-registry.zod043.test.ts +1 -1
- package/src/build-registry.zod044.test.ts +261 -0
- package/src/commands/dev.ts +15 -7
- package/src/commands/init/generators.ts +5 -0
- package/src/commands/status.ts +7 -2
- package/src/daemon/start-daemon.ts +45 -3
- package/src/prepull-images.test.ts +149 -0
- package/src/prepull-images.ts +100 -0
- package/dist/chunk-N5POSZX5.js.map +0 -1
- package/dist/web/assets/index-DJTghnF-.css +0 -1
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
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
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
|
|