// A launched bundle whose tool emits (novox/hq ADR 0193): the emit travels to the runtime over stdio. import { registerModuleTools } from "../../dist/tools/index.js"; import { emit } from "../../dist/events/index.js"; import { serveRegisteredOverStdio } from "../../dist/stdio/index.js"; registerModuleTools("chime", () => [ { name: "ring", description: "rings and says so", input: {}, run: async () => { await emit("rang", { times: 1 }); return { rang: true }; } }, ]); await serveRegisteredOverStdio();