A launched bundle's mesh/subscribe binds the module's own durable consumer — EVENTS, <node>_<module>, by name as the module's own runtime bound it, so nothing is lost or replayed in the move — and every event goes to each child of the module that subscribed as mesh/event, acknowledged only when all answered, negatively acknowledged after a short delay when one failed or died, terminated when it is not an event. mesh/ask calls a tool as the module. Every launched bundle is started again when it exits, with backoff, since long-running code waits for no call. Requires SDK 0.1.6.
24 lines
593 B
JSON
24 lines
593 B
JSON
{
|
|
"name": "@novox/mesh-tools",
|
|
"version": "0.1.0",
|
|
"description": "The Novox Mesh tool runtime \u2014 binds the mesh broker and serves the assigned modules' tools.",
|
|
"type": "module",
|
|
"bin": {
|
|
"mesh-tools": "./dist/main.js",
|
|
"mesh": "./dist/mesh.js"
|
|
},
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"pretest": "tsc",
|
|
"test": "node --test --test-concurrency=1 --experimental-strip-types 'test/*.test.ts'"
|
|
},
|
|
"dependencies": {
|
|
"@novox/mesh-sdk": "^0.1.6",
|
|
"nats": "^2.29.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^22.20.1",
|
|
"typescript": "^5.9.3"
|
|
}
|
|
}
|