// A launched bundle that says what it keeps (novox/hq ADR 0495 clause 2; issue 1790): it announces its states as it is // imported, and a state of its own it did not announce is refused at the call. import { keeps, state } from "../../dist/state/index.js"; import { registerModuleTools } from "../../dist/tools/index.js"; import { serveRegisteredOverStdio } from "../../dist/stdio/index.js"; await keeps([{ name: "servers", readable: true }, { name: "own" }]); registerModuleTools("keeper", () => [ { name: "unannounced", description: "reads a state it did not announce", input: {}, run: async () => state("drafts").get("k") }, ]); await serveRegisteredOverStdio();