@stdiobus/workers-registry 1.3.7 → 1.3.9
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/README.md +85 -60
- package/out/dist/workers/acp-worker/index.js +44 -2
- package/out/dist/workers/acp-worker/index.js.map +4 -4
- package/out/dist/workers/index.d.ts +1 -0
- package/out/dist/workers/index.js +8 -2
- package/out/dist/workers/launcher/index.js +4 -0
- package/out/dist/workers/launcher/index.js.map +7 -0
- package/out/dist/workers/mcp-echo-server/index.js +43 -1
- package/out/dist/workers/mcp-echo-server/index.js.map +4 -4
- package/out/dist/workers/mcp-echo-server/mcp-echo-server-config.json +2 -2
- package/out/tsc/workers-registry/acp-worker/src/acp/content-mapper.test.d.ts +1 -0
- package/out/tsc/workers-registry/acp-worker/src/acp/tools.test.d.ts +1 -0
- package/out/tsc/workers-registry/acp-worker/src/agent.test.d.ts +1 -0
- package/out/tsc/workers-registry/acp-worker/src/index.d.ts +2 -0
- package/out/tsc/workers-registry/acp-worker/src/mcp/manager.test.d.ts +1 -0
- package/out/tsc/workers-registry/acp-worker/src/registry-launcher/config/config.property.test.d.ts +1 -0
- package/out/tsc/workers-registry/acp-worker/src/registry-launcher/config/config.test.d.ts +1 -0
- package/out/tsc/workers-registry/acp-worker/src/registry-launcher/log.test.d.ts +10 -0
- package/out/tsc/workers-registry/acp-worker/src/registry-launcher/registry/index.property.test.d.ts +1 -0
- package/out/tsc/{workers → workers-registry}/acp-worker/src/registry-launcher/registry/types.d.ts +1 -1
- package/out/tsc/workers-registry/acp-worker/src/registry-launcher/router/message-router.property.test.d.ts +1 -0
- package/out/tsc/workers-registry/acp-worker/src/registry-launcher/runtime/manager.property.test.d.ts +1 -0
- package/out/tsc/workers-registry/acp-worker/src/registry-launcher/runtime/manager.test.d.ts +1 -0
- package/out/tsc/workers-registry/acp-worker/src/registry-launcher/stream/ndjson-handler.property.test.d.ts +1 -0
- package/out/tsc/workers-registry/acp-worker/src/registry-launcher/stream/ndjson-handler.test.d.ts +1 -0
- package/out/tsc/workers-registry/acp-worker/src/session/session.test.d.ts +1 -0
- package/out/tsc/workers-registry/acp-worker/tests/integration/acp.test.d.ts +1 -0
- package/out/tsc/workers-registry/acp-worker/tests/integration/error-scenarios.test.d.ts +1 -0
- package/out/tsc/workers-registry/acp-worker/tests/integration/mcp.test.d.ts +1 -0
- package/out/tsc/workers-registry/acp-worker/tests/integration/registry-launcher.test.d.ts +1 -0
- package/out/tsc/workers-registry/acp-worker/tests/mcp-proxy/connection.property.d.ts +1 -0
- package/out/tsc/workers-registry/acp-worker/tests/mcp-proxy/connection.test.d.ts +1 -0
- package/out/tsc/workers-registry/acp-worker/tests/mcp-proxy/converter.property.d.ts +1 -0
- package/out/tsc/workers-registry/acp-worker/tests/mcp-proxy/converter.test.d.ts +1 -0
- package/out/tsc/workers-registry/acp-worker/tests/mcp-proxy/index.test.d.ts +1 -0
- package/out/tsc/workers-registry/acp-worker/tests/mcp-proxy/integration.property.d.ts +1 -0
- package/out/tsc/workers-registry/acp-worker/tests/mcp-proxy/integration.test.d.ts +1 -0
- package/out/tsc/workers-registry/acp-worker/tests/mcp-proxy/state.property.d.ts +1 -0
- package/out/tsc/workers-registry/acp-worker/tests/mcp-proxy/state.test.d.ts +1 -0
- package/out/tsc/workers-registry/acp-worker/tests/spec-validation/echo-worker-roundtrip.test.d.ts +1 -0
- package/out/tsc/workers-registry/acp-worker/tests/spec-validation/echo-worker-sessionid.test.d.ts +1 -0
- package/out/tsc/workers-registry/acp-worker/tests/spec-validation/ndjson-client-roundtrip.test.d.ts +1 -0
- package/out/tsc/workers-registry/acp-worker/tests/spec-validation/rfc2119.test.d.ts +1 -0
- package/out/tsc/workers-registry/index.d.ts +4 -0
- package/out/tsc/workers-registry/mcp-echo-server/index.d.ts +2 -0
- package/package.json +22 -6
- /package/out/tsc/{workers → workers-registry}/acp-worker/src/acp/client-capabilities.d.ts +0 -0
- /package/out/tsc/{workers/acp-worker/src/index.d.ts → workers-registry/acp-worker/src/acp/client-capabilities.test.d.ts} +0 -0
- /package/out/tsc/{workers → workers-registry}/acp-worker/src/acp/content-mapper.d.ts +0 -0
- /package/out/tsc/{workers → workers-registry}/acp-worker/src/acp/index.d.ts +0 -0
- /package/out/tsc/{workers → workers-registry}/acp-worker/src/acp/tools.d.ts +0 -0
- /package/out/tsc/{workers → workers-registry}/acp-worker/src/agent.d.ts +0 -0
- /package/out/tsc/{workers → workers-registry}/acp-worker/src/mcp/connection.d.ts +0 -0
- /package/out/tsc/{workers → workers-registry}/acp-worker/src/mcp/index.d.ts +0 -0
- /package/out/tsc/{workers → workers-registry}/acp-worker/src/mcp/manager.d.ts +0 -0
- /package/out/tsc/{workers → workers-registry}/acp-worker/src/mcp/types.d.ts +0 -0
- /package/out/tsc/{workers → workers-registry}/acp-worker/src/mcp-proxy/connection.d.ts +0 -0
- /package/out/tsc/{workers → workers-registry}/acp-worker/src/mcp-proxy/converter.d.ts +0 -0
- /package/out/tsc/{workers → workers-registry}/acp-worker/src/mcp-proxy/index.d.ts +0 -0
- /package/out/tsc/{workers → workers-registry}/acp-worker/src/mcp-proxy/state.d.ts +0 -0
- /package/out/tsc/{workers → workers-registry}/acp-worker/src/mcp-proxy/types.d.ts +0 -0
- /package/out/tsc/{workers → workers-registry}/acp-worker/src/registry-launcher/config/api-keys.d.ts +0 -0
- /package/out/tsc/{workers → workers-registry}/acp-worker/src/registry-launcher/config/config.d.ts +0 -0
- /package/out/tsc/{workers → workers-registry}/acp-worker/src/registry-launcher/config/index.d.ts +0 -0
- /package/out/tsc/{workers → workers-registry}/acp-worker/src/registry-launcher/config/types.d.ts +0 -0
- /package/out/tsc/{workers → workers-registry}/acp-worker/src/registry-launcher/index.d.ts +0 -0
- /package/out/tsc/{workers → workers-registry}/acp-worker/src/registry-launcher/log.d.ts +0 -0
- /package/out/tsc/{workers → workers-registry}/acp-worker/src/registry-launcher/registry/index.d.ts +0 -0
- /package/out/tsc/{workers → workers-registry}/acp-worker/src/registry-launcher/registry/resolver.d.ts +0 -0
- /package/out/tsc/{workers → workers-registry}/acp-worker/src/registry-launcher/router/index.d.ts +0 -0
- /package/out/tsc/{workers → workers-registry}/acp-worker/src/registry-launcher/router/message-router.d.ts +0 -0
- /package/out/tsc/{workers → workers-registry}/acp-worker/src/registry-launcher/runtime/agent-runtime.d.ts +0 -0
- /package/out/tsc/{workers → workers-registry}/acp-worker/src/registry-launcher/runtime/index.d.ts +0 -0
- /package/out/tsc/{workers → workers-registry}/acp-worker/src/registry-launcher/runtime/manager.d.ts +0 -0
- /package/out/tsc/{workers → workers-registry}/acp-worker/src/registry-launcher/runtime/types.d.ts +0 -0
- /package/out/tsc/{workers → workers-registry}/acp-worker/src/registry-launcher/stream/index.d.ts +0 -0
- /package/out/tsc/{workers → workers-registry}/acp-worker/src/registry-launcher/stream/ndjson-handler.d.ts +0 -0
- /package/out/tsc/{workers → workers-registry}/acp-worker/src/registry-launcher/test-utils/index.d.ts +0 -0
- /package/out/tsc/{workers → workers-registry}/acp-worker/src/session/index.d.ts +0 -0
- /package/out/tsc/{workers → workers-registry}/acp-worker/src/session/manager.d.ts +0 -0
- /package/out/tsc/{workers → workers-registry}/acp-worker/src/session/session.d.ts +0 -0
- /package/out/tsc/{workers → workers-registry}/acp-worker/src/session/types.d.ts +0 -0
- /package/out/tsc/{workers → workers-registry}/acp-worker/src/test-utils/test-harness.d.ts +0 -0
- /package/out/tsc/{workers/mcp-echo-server/mcp-echo-server.d.ts → workers-registry/launcher/index.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -11,7 +11,6 @@ Worker implementations for [stdio Bus kernel](https://github.com/stdiobus/stdiob
|
|
|
11
11
|
- Full ACP (Agent Client Protocol) implementation
|
|
12
12
|
- MCP (Model Context Protocol) server integration
|
|
13
13
|
- Protocol bridges (MCP ↔ ACP)
|
|
14
|
-
- Ready-to-use binary commands
|
|
15
14
|
- TypeScript support with full type definitions
|
|
16
15
|
- High-performance NDJSON protocol
|
|
17
16
|
- Docker-ready
|
|
@@ -151,19 +150,24 @@ See [stdio Bus kernel repository](https://github.com/stdiobus/stdiobus) for buil
|
|
|
151
150
|
**Create config.json:**
|
|
152
151
|
```json
|
|
153
152
|
{
|
|
154
|
-
"pools": [
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
153
|
+
"pools": [
|
|
154
|
+
{
|
|
155
|
+
"id": "acp-worker",
|
|
156
|
+
"command": "node",
|
|
157
|
+
"args": [
|
|
158
|
+
"./workers/launcher",
|
|
159
|
+
"acp-worker"
|
|
160
|
+
],
|
|
161
|
+
"instances": 1
|
|
162
|
+
}
|
|
163
|
+
]
|
|
160
164
|
}
|
|
161
165
|
```
|
|
162
166
|
|
|
163
167
|
**Run with Docker:**
|
|
164
168
|
```bash
|
|
165
169
|
docker run -p 9000:9000 \
|
|
166
|
-
-v $(pwd)/node_modules/@stdiobus/workers-registry:/workers:ro \
|
|
170
|
+
-v $(pwd)/node_modules/@stdiobus/workers-registry:/workers-registry:ro \
|
|
167
171
|
-v $(pwd)/config.json:/config.json:ro \
|
|
168
172
|
stdiobus/stdiobus:latest \
|
|
169
173
|
--config /config.json --tcp 0.0.0.0:9000
|
|
@@ -174,7 +178,7 @@ docker run -p 9000:9000 \
|
|
|
174
178
|
./stdio_bus --config config.json --tcp 0.0.0.0:9000
|
|
175
179
|
```
|
|
176
180
|
|
|
177
|
-
###
|
|
181
|
+
### 5. Test Connection
|
|
178
182
|
|
|
179
183
|
```bash
|
|
180
184
|
echo '{"jsonrpc":"2.0","id":"1","method":"initialize","params":{"clientInfo":{"name":"test","version":"1.0"}}}' | nc localhost 9000
|
|
@@ -184,22 +188,23 @@ echo '{"jsonrpc":"2.0","id":"1","method":"initialize","params":{"clientInfo":{"n
|
|
|
184
188
|
|
|
185
189
|
## Usage Examples
|
|
186
190
|
|
|
187
|
-
### Using
|
|
191
|
+
### Using the Universal Launcher
|
|
188
192
|
|
|
189
|
-
The
|
|
193
|
+
The simplest way to run any worker:
|
|
190
194
|
|
|
191
195
|
```bash
|
|
192
|
-
# Run
|
|
193
|
-
stdiobus-
|
|
196
|
+
# Run any worker by name
|
|
197
|
+
node ./node_modules/@stdiobus/workers-registry/out/dist/index.js <worker-name>
|
|
194
198
|
|
|
195
|
-
#
|
|
196
|
-
|
|
199
|
+
# Available workers:
|
|
200
|
+
# - acp-worker
|
|
201
|
+
# - acp-registry
|
|
202
|
+
# - echo-worker
|
|
203
|
+
# - mcp-echo-server
|
|
204
|
+
# - mcp-to-acp-proxy
|
|
197
205
|
|
|
198
|
-
# Run
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
# Run Echo worker for testing
|
|
202
|
-
stdiobus-echo-worker
|
|
206
|
+
# Example: Run echo worker for testing
|
|
207
|
+
node ./node_modules/@stdiobus/workers-registry/out/dist/index.js echo-worker
|
|
203
208
|
```
|
|
204
209
|
|
|
205
210
|
### Using in stdio Bus Configuration
|
|
@@ -210,7 +215,10 @@ stdiobus-echo-worker
|
|
|
210
215
|
"pools": [{
|
|
211
216
|
"id": "acp-worker",
|
|
212
217
|
"command": "node",
|
|
213
|
-
"args": [
|
|
218
|
+
"args": [
|
|
219
|
+
"./workers/launcher",
|
|
220
|
+
"acp-worker"
|
|
221
|
+
],
|
|
214
222
|
"instances": 1
|
|
215
223
|
}]
|
|
216
224
|
}
|
|
@@ -219,12 +227,18 @@ stdiobus-echo-worker
|
|
|
219
227
|
**Registry Launcher with API Keys:**
|
|
220
228
|
```json
|
|
221
229
|
{
|
|
222
|
-
"pools": [
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
230
|
+
"pools": [
|
|
231
|
+
{
|
|
232
|
+
"id": "registry-launcher",
|
|
233
|
+
"command": "node",
|
|
234
|
+
"args": [
|
|
235
|
+
"./workers/launcher",
|
|
236
|
+
"registry-launcher",
|
|
237
|
+
"./api-keys.json"
|
|
238
|
+
],
|
|
239
|
+
"instances": 1
|
|
240
|
+
}
|
|
241
|
+
]
|
|
228
242
|
}
|
|
229
243
|
```
|
|
230
244
|
|
|
@@ -235,13 +249,19 @@ stdiobus-echo-worker
|
|
|
235
249
|
{
|
|
236
250
|
"id": "acp-worker",
|
|
237
251
|
"command": "node",
|
|
238
|
-
"args": [
|
|
252
|
+
"args": [
|
|
253
|
+
"./workers/launcher",
|
|
254
|
+
"acp-worker"
|
|
255
|
+
],
|
|
239
256
|
"instances": 2
|
|
240
257
|
},
|
|
241
258
|
{
|
|
242
259
|
"id": "echo-worker",
|
|
243
260
|
"command": "node",
|
|
244
|
-
"args": [
|
|
261
|
+
"args": [
|
|
262
|
+
"./workers/launcher",
|
|
263
|
+
"echo-worker"
|
|
264
|
+
],
|
|
245
265
|
"instances": 1
|
|
246
266
|
}
|
|
247
267
|
]
|
|
@@ -334,12 +354,18 @@ Routes messages to any agent in the [ACP Registry](https://cdn.agentclientprotoc
|
|
|
334
354
|
**Configuration:**
|
|
335
355
|
```json
|
|
336
356
|
{
|
|
337
|
-
"pools": [
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
357
|
+
"pools": [
|
|
358
|
+
{
|
|
359
|
+
"id": "registry-launcher",
|
|
360
|
+
"command": "node",
|
|
361
|
+
"args": [
|
|
362
|
+
"./workers/launcher",
|
|
363
|
+
"registry-launcher",
|
|
364
|
+
"./api-keys.json"
|
|
365
|
+
],
|
|
366
|
+
"instances": 1
|
|
367
|
+
}
|
|
368
|
+
]
|
|
343
369
|
}
|
|
344
370
|
```
|
|
345
371
|
|
|
@@ -381,7 +407,10 @@ IDE (MCP Client) → MCP-to-ACP Proxy → stdio Bus → Registry Launcher → AC
|
|
|
381
407
|
"mcpServers": {
|
|
382
408
|
"stdio-bus-acp": {
|
|
383
409
|
"command": "node",
|
|
384
|
-
"args": [
|
|
410
|
+
"args": [
|
|
411
|
+
"./workers/launcher",
|
|
412
|
+
"mcp-to-acp-proxy"
|
|
413
|
+
],
|
|
385
414
|
"env": {
|
|
386
415
|
"ACP_HOST": "0.0.0.0",
|
|
387
416
|
"ACP_PORT": "9000",
|
|
@@ -454,7 +483,7 @@ npm run build
|
|
|
454
483
|
|
|
455
484
|
**Run:**
|
|
456
485
|
```bash
|
|
457
|
-
node workers-registry/mcp-echo-server/dist/
|
|
486
|
+
node workers-registry/mcp-echo-server/dist/index.js
|
|
458
487
|
```
|
|
459
488
|
|
|
460
489
|
---
|
|
@@ -523,12 +552,17 @@ stdio Bus kernel is configured via JSON files. This repository includes example
|
|
|
523
552
|
**High-Throughput Configuration:**
|
|
524
553
|
```json
|
|
525
554
|
{
|
|
526
|
-
"pools": [
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
555
|
+
"pools": [
|
|
556
|
+
{
|
|
557
|
+
"id": "acp-worker",
|
|
558
|
+
"command": "node",
|
|
559
|
+
"args": [
|
|
560
|
+
"./workers/launcher",
|
|
561
|
+
"acp-worker"
|
|
562
|
+
],
|
|
563
|
+
"instances": 4
|
|
564
|
+
}
|
|
565
|
+
],
|
|
532
566
|
"limits": {
|
|
533
567
|
"max_input_buffer": 4194304,
|
|
534
568
|
"max_output_queue": 16777216,
|
|
@@ -544,13 +578,19 @@ stdio Bus kernel is configured via JSON files. This repository includes example
|
|
|
544
578
|
{
|
|
545
579
|
"id": "acp-worker",
|
|
546
580
|
"command": "node",
|
|
547
|
-
"args": [
|
|
581
|
+
"args": [
|
|
582
|
+
"./workers/launcher",
|
|
583
|
+
"acp-worker"
|
|
584
|
+
],
|
|
548
585
|
"instances": 2
|
|
549
586
|
},
|
|
550
587
|
{
|
|
551
588
|
"id": "echo-worker",
|
|
552
589
|
"command": "node",
|
|
553
|
-
"args": [
|
|
590
|
+
"args": [
|
|
591
|
+
"./workers/launcher",
|
|
592
|
+
"echo-worker"
|
|
593
|
+
],
|
|
554
594
|
"instances": 1
|
|
555
595
|
}
|
|
556
596
|
]
|
|
@@ -773,16 +813,6 @@ import {
|
|
|
773
813
|
} from '@stdiobus/workers-registry/workers';
|
|
774
814
|
```
|
|
775
815
|
|
|
776
|
-
### Binary Commands
|
|
777
|
-
|
|
778
|
-
| Command | Description | Usage |
|
|
779
|
-
|---------|-------------|-------|
|
|
780
|
-
| `stdiobus-acp-worker` | ACP protocol worker | `stdiobus-acp-worker` |
|
|
781
|
-
| `stdiobus-registry-launcher` | Registry launcher | `stdiobus-registry-launcher <api-keys.json>` |
|
|
782
|
-
| `stdiobus-mcp-to-acp-proxy` | MCP-to-ACP proxy | `ACP_HOST=host ACP_PORT=port stdiobus-mcp-to-acp-proxy` |
|
|
783
|
-
| `stdiobus-echo-worker` | Echo worker | `stdiobus-echo-worker` |
|
|
784
|
-
| `stdiobus-mcp-echo-server` | MCP echo server | `stdiobus-mcp-echo-server` |
|
|
785
|
-
|
|
786
816
|
### Environment Variables
|
|
787
817
|
|
|
788
818
|
**MCP-to-ACP Proxy:**
|
|
@@ -828,11 +858,6 @@ npx stdiobus-acp-worker
|
|
|
828
858
|
# Verify installation
|
|
829
859
|
npm list @stdiobus/workers-registry
|
|
830
860
|
|
|
831
|
-
# Check binary paths
|
|
832
|
-
which stdiobus-acp-worker
|
|
833
|
-
|
|
834
|
-
# Use npx as fallback
|
|
835
|
-
npx stdiobus-acp-worker
|
|
836
861
|
```
|
|
837
862
|
|
|
838
863
|
**Worker crashes:**
|