One repository, two modules (ADR 0069). `node-tools/` holds the runtime — its code, tests, package and the manifest of the module the controller composes a process for on every machine it is assigned to: a bundle of `src/main.js`, the interpreter as a package, a place for the node's credential, the loopback port the console declared, and leave to call every tool. Nothing about how it runs: which bundles to load, where the credential is and whose machine it is are the controller's to compose (WP2). The root module `mesh-tools` keeps the two images TypeScript bundles are compiled in and a module's own service may run in; it is no longer how tools reach a node. As node-tools, `serve` is also the console (ADR 0175 §6): the same process answers MCP on loopback for whoever is on the machine, through which the tools it serves can be called. A module's own runtime in a container keeps serving without a listener. The toolchain image now carries /app/runtime — a package.json saying the compiled files are ES modules and the production node_modules — for the builder to copy into every TypeScript bundle, so a bundle unpacked on a machine starts (ADR 0188 §5; the builder's side is the controller's). Proven here by compiling node-tools with the toolchain's exact flags and starting the result. The AMQP probe script is gone with the bus it probed.
77 lines
1.6 KiB
JSON
77 lines
1.6 KiB
JSON
{
|
|
"name": "@novox/mesh-tools",
|
|
"version": "0.1.0",
|
|
"lockfileVersion": 3,
|
|
"requires": true,
|
|
"packages": {
|
|
"": {
|
|
"name": "@novox/mesh-tools",
|
|
"version": "0.1.0",
|
|
"dependencies": {
|
|
"@novox/mesh-sdk": "^0.1.0",
|
|
"nats": "^2.29.0"
|
|
},
|
|
"bin": {
|
|
"mesh": "dist/mesh.js",
|
|
"mesh-tools": "dist/main.js"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^22.20.1",
|
|
"typescript": "^5.9.3"
|
|
}
|
|
},
|
|
"node_modules/@novox/mesh-sdk": {
|
|
"version": "0.1.1"
|
|
},
|
|
"node_modules/@types/node": {
|
|
"version": "22.20.1",
|
|
"dev": true,
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"undici-types": "~6.21.0"
|
|
}
|
|
},
|
|
"node_modules/nats": {
|
|
"version": "2.29.3",
|
|
"license": "Apache-2.0",
|
|
"dependencies": {
|
|
"nkeys.js": "1.1.0"
|
|
},
|
|
"engines": {
|
|
"node": ">= 14.0.0"
|
|
}
|
|
},
|
|
"node_modules/nkeys.js": {
|
|
"version": "1.1.0",
|
|
"license": "Apache-2.0",
|
|
"dependencies": {
|
|
"tweetnacl": "1.0.3"
|
|
},
|
|
"engines": {
|
|
"node": ">=10.0.0"
|
|
}
|
|
},
|
|
"node_modules/tweetnacl": {
|
|
"version": "1.0.3",
|
|
"license": "Unlicense"
|
|
},
|
|
"node_modules/typescript": {
|
|
"version": "5.9.3",
|
|
"dev": true,
|
|
"license": "Apache-2.0",
|
|
"bin": {
|
|
"tsc": "bin/tsc",
|
|
"tsserver": "bin/tsserver"
|
|
},
|
|
"engines": {
|
|
"node": ">=14.17"
|
|
}
|
|
},
|
|
"node_modules/undici-types": {
|
|
"version": "6.21.0",
|
|
"dev": true,
|
|
"license": "MIT"
|
|
}
|
|
}
|
|
}
|