// A tools bundle written against the protocol: the module's own tool, a seat's verb, and one that fails. import { serveStdio } from "../../dist/stdio/index.js"; await serveStdio("lamp", [ { name: "brightness", description: "set it", input: { level: { type: "number", description: "0 to 10" } }, run: async (a) => ({ level: a.level }) }, { name: "node-lamp.on", description: "the seat's verb", input: {}, run: async () => ({ on: true }) }, { name: "fail", description: "it throws", input: {}, run: async () => { throw new Error("the bulb is gone"); } }, ]);