zooid 0.16.1 → 0.17.0
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 +5 -1
- package/dist/bin.js.map +1 -1
- package/dist/{chunk-HE7DVDJA.js → chunk-5IYDKH2D.js} +4847 -3515
- package/dist/chunk-5IYDKH2D.js.map +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/package.json +11 -11
- package/src/build-registry.ts +3 -0
- package/src/daemon/start-daemon.ts +4 -0
- package/dist/chunk-HE7DVDJA.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AcpRuntime, ApprovalCorrelator, TapEvent, SessionLifecycleEvent, ZooidConfig, AcpAgentRegistry } from '@zooid/core';
|
|
1
|
+
import { AcpRuntime, ApprovalCorrelator, ElicitationCorrelator, TapEvent, SessionLifecycleEvent, ZooidConfig, AcpAgentRegistry } from '@zooid/core';
|
|
2
2
|
import { SpawnRegistry } from '@zooid/context-mcp';
|
|
3
3
|
|
|
4
4
|
interface BuildAcpRegistryOptions {
|
|
@@ -6,6 +6,7 @@ interface BuildAcpRegistryOptions {
|
|
|
6
6
|
runtime?: AcpRuntime;
|
|
7
7
|
/** When set, the registry's approval handler routes through this correlator. */
|
|
8
8
|
approvals?: ApprovalCorrelator;
|
|
9
|
+
elicitations?: ElicitationCorrelator;
|
|
9
10
|
/** Observability tap forwarded to each AcpClient. */
|
|
10
11
|
onTap?: (agentName: string, event: TapEvent) => void;
|
|
11
12
|
onLifecycle?: (agentName: string, event: SessionLifecycleEvent) => void;
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zooid",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"description": "An open-source, self-hostable chat app for collaborating with AI agents alongside your team. Any model, any CLI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"access": "public"
|
|
26
26
|
},
|
|
27
27
|
"zooid": {
|
|
28
|
-
"webVersion": "0.
|
|
28
|
+
"webVersion": "0.14.0"
|
|
29
29
|
},
|
|
30
30
|
"engines": {
|
|
31
31
|
"node": ">=22"
|
|
@@ -43,17 +43,17 @@
|
|
|
43
43
|
"tar": "^7.5.16",
|
|
44
44
|
"web-push": "^3.6.7",
|
|
45
45
|
"yaml": "^2.5.0",
|
|
46
|
-
"@zooid/context-mcp": "^0.
|
|
47
|
-
"@zooid/
|
|
48
|
-
"@zooid/
|
|
49
|
-
"@zooid/
|
|
50
|
-
"@zooid/
|
|
51
|
-
"@zooid/
|
|
52
|
-
"@zooid/
|
|
53
|
-
"@zooid/transport-
|
|
46
|
+
"@zooid/context-mcp": "^0.17.0",
|
|
47
|
+
"@zooid/core": "^0.17.0",
|
|
48
|
+
"@zooid/pi-extension": "^0.14.0",
|
|
49
|
+
"@zooid/runtime-local": "^0.17.0",
|
|
50
|
+
"@zooid/acp-client": "^0.17.0",
|
|
51
|
+
"@zooid/transport-http": "^0.17.0",
|
|
52
|
+
"@zooid/runtime-docker": "^0.17.0",
|
|
53
|
+
"@zooid/transport-matrix": "^0.17.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@agentclientprotocol/sdk": "^
|
|
56
|
+
"@agentclientprotocol/sdk": "^1.5.0",
|
|
57
57
|
"@playwright/test": "^1.49.0",
|
|
58
58
|
"@types/node": "^22.0.0",
|
|
59
59
|
"@types/web-push": "^3.6.4",
|
package/src/build-registry.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ElicitationCorrelator } from '@zooid/core'
|
|
1
2
|
import { isAbsolute, resolve as pathResolve } from 'node:path'
|
|
2
3
|
import { LocalAcpRuntime } from '@zooid/runtime-local'
|
|
3
4
|
import { DockerAcpRuntime } from '@zooid/runtime-docker'
|
|
@@ -28,6 +29,7 @@ export interface BuildAcpRegistryOptions {
|
|
|
28
29
|
runtime?: AcpRuntime
|
|
29
30
|
/** When set, the registry's approval handler routes through this correlator. */
|
|
30
31
|
approvals?: ApprovalCorrelator
|
|
32
|
+
elicitations?: ElicitationCorrelator
|
|
31
33
|
/** Observability tap forwarded to each AcpClient. */
|
|
32
34
|
onTap?: (agentName: string, event: TapEvent) => void
|
|
33
35
|
onLifecycle?: (agentName: string, event: SessionLifecycleEvent) => void
|
|
@@ -315,6 +317,7 @@ export function buildAcpRegistry(
|
|
|
315
317
|
mkdirOnSpawn: mkdirByAgent,
|
|
316
318
|
cwd: cwdByAgent,
|
|
317
319
|
approvals: opts.approvals,
|
|
320
|
+
elicitations: opts.elicitations,
|
|
318
321
|
onTap: opts.onTap,
|
|
319
322
|
onLifecycle: opts.onLifecycle,
|
|
320
323
|
agentsDir: opts.agentsDir,
|
|
@@ -6,6 +6,7 @@ import type { AddressInfo } from 'node:net'
|
|
|
6
6
|
import { serve, type ServerType } from '@hono/node-server'
|
|
7
7
|
import {
|
|
8
8
|
ApprovalCorrelator,
|
|
9
|
+
ElicitationCorrelator,
|
|
9
10
|
findConfigFile,
|
|
10
11
|
findHttpTransport,
|
|
11
12
|
findMatrixTransport,
|
|
@@ -123,6 +124,7 @@ export async function startDaemon(opts: StartDaemonOpts = {}): Promise<DaemonHan
|
|
|
123
124
|
const config = mergeCliFlags(base, opts.cliFlags ?? {})
|
|
124
125
|
|
|
125
126
|
const approvals = new ApprovalCorrelator()
|
|
127
|
+
const elicitations = new ElicitationCorrelator()
|
|
126
128
|
|
|
127
129
|
const runDir = opts.agentsDir
|
|
128
130
|
? join(opts.agentsDir, '..', 'run')
|
|
@@ -138,6 +140,7 @@ export async function startDaemon(opts: StartDaemonOpts = {}): Promise<DaemonHan
|
|
|
138
140
|
const dataDir = opts.agentsDir ? dirname(opts.agentsDir) : undefined
|
|
139
141
|
const registry = buildAcpRegistry(config, {
|
|
140
142
|
approvals,
|
|
143
|
+
elicitations,
|
|
141
144
|
onTap: opts.onTap,
|
|
142
145
|
onLifecycle: opts.onLifecycle,
|
|
143
146
|
agentsDir: opts.agentsDir,
|
|
@@ -254,6 +257,7 @@ export async function startDaemon(opts: StartDaemonOpts = {}): Promise<DaemonHan
|
|
|
254
257
|
const transport = createMatrixTransport({
|
|
255
258
|
agents: registry,
|
|
256
259
|
approvals,
|
|
260
|
+
elicitations,
|
|
257
261
|
client,
|
|
258
262
|
bindings,
|
|
259
263
|
hsToken: matrix.transport.hs_token,
|