@stdiobus/workers-registry 1.3.17 → 1.3.18
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 +1 -1
- package/package.json +12 -23
- package/index.js +0 -49
- /package/out/dist/{workers → workers-registry}/acp-registry/registry-launcher-client.js +0 -0
- /package/out/dist/{workers → workers-registry}/acp-registry/registry-launcher-client.js.map +0 -0
- /package/out/dist/{workers → workers-registry}/acp-registry/registry-launcher-config.json +0 -0
- /package/out/dist/{workers → workers-registry}/acp-worker/index.js +0 -0
- /package/out/dist/{workers → workers-registry}/acp-worker/index.js.map +0 -0
- /package/out/dist/{workers → workers-registry}/echo-worker/echo-worker-config.json +0 -0
- /package/out/dist/{workers → workers-registry}/echo-worker/echo-worker.js +0 -0
- /package/out/dist/{workers → workers-registry}/echo-worker/echo-worker.js.map +0 -0
- /package/out/dist/{workers → workers-registry}/index.d.ts +0 -0
- /package/out/dist/{workers → workers-registry}/index.js +0 -0
- /package/out/dist/{workers → workers-registry}/mcp-echo-server/index.js +0 -0
- /package/out/dist/{workers → workers-registry}/mcp-echo-server/index.js.map +0 -0
- /package/out/dist/{workers → workers-registry}/mcp-echo-server/mcp-echo-server-config.json +0 -0
- /package/out/dist/{workers → workers-registry}/mcp-to-acp-proxy/proxy.js +0 -0
- /package/out/dist/{workers → workers-registry}/mcp-to-acp-proxy/proxy.js.map +0 -0
package/README.md
CHANGED
|
@@ -155,7 +155,7 @@ See [stdio Bus kernel repository](https://github.com/stdiobus/stdiobus) for buil
|
|
|
155
155
|
**Run with Docker:**
|
|
156
156
|
```bash
|
|
157
157
|
docker run -p 9000:9000 \
|
|
158
|
-
-v $(pwd)
|
|
158
|
+
-v $(pwd):/stdiobus:ro \
|
|
159
159
|
-v $(pwd)/config.json:/config.json:ro \
|
|
160
160
|
stdiobus/stdiobus:latest \
|
|
161
161
|
--config /config.json --tcp 0.0.0.0:9000
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stdiobus/workers-registry",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.18",
|
|
4
4
|
"description": "Worker implementations for stdio Bus kernel - ACP, MCP, and protocol bridges",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"main": "./out/dist/workers/acp-worker/index.js",
|
|
6
|
+
"main": "./out/dist/workers-registry/acp-worker/index.js",
|
|
7
7
|
"types": "./out/tsc/workers-registry/acp-worker/src/index.d.ts",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
|
-
"import": "./out/dist/workers/acp-worker/index.js",
|
|
10
|
+
"import": "./out/dist/workers-registry/acp-worker/index.js",
|
|
11
11
|
"types": "./out/tsc/workers-registry/acp-worker/src/index.d.ts"
|
|
12
12
|
},
|
|
13
13
|
"./launch": {
|
|
@@ -15,45 +15,40 @@
|
|
|
15
15
|
"types": "./out/tsc/workers-registry/launch/index.d.ts"
|
|
16
16
|
},
|
|
17
17
|
"./workers/acp-worker": {
|
|
18
|
-
"import": "./out/dist/workers/acp-worker/index.js",
|
|
18
|
+
"import": "./out/dist/workers-registry/acp-worker/index.js",
|
|
19
19
|
"types": "./out/tsc/workers-registry/acp-worker/src/index.d.ts"
|
|
20
20
|
},
|
|
21
21
|
"./workers/acp-worker/agent": {
|
|
22
|
-
"import": "./out/dist/workers/acp-worker/agent.js",
|
|
22
|
+
"import": "./out/dist/workers-registry/acp-worker/agent.js",
|
|
23
23
|
"types": "./out/tsc/workers-registry/acp-worker/src/agent.d.ts"
|
|
24
24
|
},
|
|
25
25
|
"./workers/acp-worker/registry": {
|
|
26
|
-
"import": "./out/dist/workers/acp-worker/registry-launcher/registry/index.js",
|
|
26
|
+
"import": "./out/dist/workers-registry/acp-worker/registry-launcher/registry/index.js",
|
|
27
27
|
"types": "./out/tsc/workers-registry/acp-worker/src/registry-launcher/registry/index.d.ts"
|
|
28
28
|
},
|
|
29
29
|
"./workers/acp-worker/runtime": {
|
|
30
|
-
"import": "./out/dist/workers/acp-worker/registry-launcher/runtime/manager.js",
|
|
30
|
+
"import": "./out/dist/workers-registry/acp-worker/registry-launcher/runtime/manager.js",
|
|
31
31
|
"types": "./out/tsc/workers-registry/acp-worker/src/registry-launcher/runtime/manager.d.ts"
|
|
32
32
|
},
|
|
33
33
|
"./workers/acp-worker/config": {
|
|
34
|
-
"import": "./out/dist/workers/acp-worker/registry-launcher/config/config.js",
|
|
34
|
+
"import": "./out/dist/workers-registry/acp-worker/registry-launcher/config/config.js",
|
|
35
35
|
"types": "./out/tsc/workers-registry/acp-worker/src/registry-launcher/config/config.d.ts"
|
|
36
36
|
},
|
|
37
37
|
"./workers/acp-worker/mcp": {
|
|
38
|
-
"import": "./out/dist/workers/acp-worker/mcp/manager.js",
|
|
38
|
+
"import": "./out/dist/workers-registry/acp-worker/mcp/manager.js",
|
|
39
39
|
"types": "./out/tsc/workers-registry/acp-worker/src/mcp/manager.d.ts"
|
|
40
40
|
},
|
|
41
|
-
"./workers/echo-worker": "./out/dist/workers/echo-worker/echo-worker.js",
|
|
41
|
+
"./workers/echo-worker": "./out/dist/workers-registry/echo-worker/echo-worker.js",
|
|
42
42
|
"./workers/mcp-echo-server": {
|
|
43
|
-
"import": "./out/dist/workers/mcp-echo-server/index.js",
|
|
43
|
+
"import": "./out/dist/workers-registry/mcp-echo-server/index.js",
|
|
44
44
|
"types": "./out/tsc/workers-registry/mcp-echo-server/index.d.ts"
|
|
45
45
|
},
|
|
46
|
-
"./workers/mcp-to-acp-proxy": "./out/dist/workers/mcp-to-acp-proxy/proxy.js",
|
|
47
|
-
"./workers": "./out/dist/workers/index.js",
|
|
46
|
+
"./workers/mcp-to-acp-proxy": "./out/dist/workers-registry/mcp-to-acp-proxy/proxy.js",
|
|
48
47
|
"./package.json": "./package.json"
|
|
49
48
|
},
|
|
50
|
-
"bin": {
|
|
51
|
-
"stdiobus-worker": "./index.js"
|
|
52
|
-
},
|
|
53
49
|
"files": [
|
|
54
50
|
"out/",
|
|
55
51
|
"launch/",
|
|
56
|
-
"index.js",
|
|
57
52
|
"README.md",
|
|
58
53
|
"LICENSE"
|
|
59
54
|
],
|
|
@@ -63,12 +58,6 @@
|
|
|
63
58
|
"clean": "rm -rf out",
|
|
64
59
|
"types": "tsc --emitDeclarationOnly && tsc-alias",
|
|
65
60
|
"prepublishOnly": "npm run build",
|
|
66
|
-
"start": "node index.js",
|
|
67
|
-
"start:acp-worker": "node index.js acp-worker",
|
|
68
|
-
"start:echo-worker": "node index.js echo-worker",
|
|
69
|
-
"start:mcp-echo-server": "node index.js mcp-echo-server",
|
|
70
|
-
"start:mcp-to-acp-proxy": "node index.js mcp-to-acp-proxy",
|
|
71
|
-
"start:acp-registry": "node index.js acp-registry",
|
|
72
61
|
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
|
|
73
62
|
"test:unit": "node --experimental-vm-modules node_modules/jest/bin/jest.js tests/unit",
|
|
74
63
|
"test:property": "node --experimental-vm-modules node_modules/jest/bin/jest.js tests/property",
|
package/index.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/*
|
|
3
|
-
* Universal Worker Launcher
|
|
4
|
-
*
|
|
5
|
-
* Usage:
|
|
6
|
-
* stdiobus-worker <worker-name>
|
|
7
|
-
* node index.js <worker-name>
|
|
8
|
-
*
|
|
9
|
-
* Examples:
|
|
10
|
-
* stdiobus-worker launcher
|
|
11
|
-
* stdiobus-worker acp-worker
|
|
12
|
-
* stdiobus-worker echo-worker
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { fileURLToPath } from 'url';
|
|
16
|
-
import { dirname, join } from 'path';
|
|
17
|
-
|
|
18
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
19
|
-
const __dirname = dirname(__filename);
|
|
20
|
-
|
|
21
|
-
const workerName = process.argv[2];
|
|
22
|
-
|
|
23
|
-
if (!workerName) {
|
|
24
|
-
console.error('Usage: stdiobus-worker <worker-name>');
|
|
25
|
-
console.error('Available workers: launcher, acp-worker, echo-worker, mcp-echo-server, mcp-to-acp-proxy');
|
|
26
|
-
process.exit(1);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
// Map worker names to their entry points
|
|
30
|
-
const workers = {
|
|
31
|
-
'launch': './out/dist/workers/launch/index.js',
|
|
32
|
-
'acp-worker': './out/dist/workers/acp-worker/index.js',
|
|
33
|
-
'echo-worker': './out/dist/workers/echo-worker/echo-worker.js',
|
|
34
|
-
'mcp-echo-server': './out/dist/workers/mcp-echo-server/index.js',
|
|
35
|
-
'mcp-to-acp-proxy': './out/dist/workers/mcp-to-acp-proxy/proxy.js',
|
|
36
|
-
'acp-registry': './out/dist/workers/acp-registry/registry-launcher-client.js',
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
const workerPath = workers[workerName];
|
|
40
|
-
|
|
41
|
-
if (!workerPath) {
|
|
42
|
-
console.error(`Unknown worker: ${workerName}`);
|
|
43
|
-
console.error('Available workers:', Object.keys(workers).join(', '));
|
|
44
|
-
process.exit(1);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
// Import and run the worker
|
|
48
|
-
const fullPath = join(__dirname, workerPath);
|
|
49
|
-
await import(fullPath);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|