/** * jsm_list_capabilities — what this server can do, including what it is not * currently loaded to do. * * This is what makes a small default safe. Without it, a toolset the user has * not enabled is indistinguishable from a feature that does not exist: the * model finds no tool, and either says the server cannot do it or invents one. * With it, "can you show me the schedule rotations?" gets an answer that names * the toolset and the variable that turns it on. * * Registered regardless of selection, and answers entirely from memory — no * API call, no credentials, so it works even when the token is wrong. */ import { type Selection } from "../toolsets.js"; import { type AnyToolDefinition } from "./define.js"; /** * Built per process rather than declared statically, because it reports the * selection this process actually resolved. */ export declare function createCapabilitiesTool(catalogue: AnyToolDefinition[], selection: Selection, /** * Every tool this process registers, including code mode's and this one. * * Taken as an argument rather than derived from `selection.tools`, which * under-reports in code mode: the dispatchers are composed outside the * selection, so a count taken from it would say "0 tools registered" on an * install with several. */ registered?: AnyToolDefinition[], /** * Whether jsm_run could be registered, when code mode is on. * * Reported because an absent jsm_run is otherwise indistinguishable from a * server that never had one, and the fix — a newer Node — is not something a * model could guess. */ sandbox?: { supported: boolean; reason?: string; }): AnyToolDefinition; //# sourceMappingURL=capabilities.d.ts.map