// One of several bundles the node's runtime loads (novox/hq ADR 0175): a module with two tools. import { registerModuleTools } from "@novox/mesh-sdk/tools"; import { emit } from "@novox/mesh-sdk/events"; registerModuleTools("alpha", () => [ { name: "one", description: "alpha's first", input: {}, run: async () => ({ alpha: 1 }) }, // A tool that emits: the event must land on alpha's subject, not the runtime's. { name: "two", description: "alpha's second, which emits", input: {}, run: async () => { await emit("happened", { by: "alpha" }); return { alpha: 2 }; } }, ]);