/** * jsm_apply — invoke one write operation. * * Separate from jsm_call, and one operation per call, because of an approval * problem that a single write-capable dispatcher would make worse than the * ninety-four tools it replaces. * * Thirty-seven of those operations are destructive — every update and every * delete. Today each prompts on its own, with its own name in the dialog: a * user approving `jsm_delete_schedule` knows what they approved. A dispatcher * that could reach all thirty-seven would carry one annotation and therefore * one approval, granted once, for a tool whose description says "writes * things". That is a real regression, and three things answer it: * * 1. jsm_call cannot write at all, so the read path stays auto-approvable and * the common case never asks. * 2. This takes ONE operation per call. The operation name is an argument, so * it appears in what the client shows before the user says yes. * 3. Destructive operations additionally require the operator to have set * JSM_CODE_DESTRUCTIVE. Not an annotation and not a model argument: some * clients auto-approve by tool name and some read no annotations at all, * so the only place this can be enforced independently of client * behaviour is in this process. * * The composition that restores per-tool approvals wholesale is * JSM_TOOLSETS=code,alert-actions — the dispatchers plus the eighteen classic * alert-action tools, each with its own name and its own prompt. */ import { type AnyToolDefinition } from "../define.js"; import { type CodeToolDependencies } from "./call.js"; import type { CodePermissions } from "./limits.js"; export declare function createApplyTool(dependencies: CodeToolDependencies, permissions: CodePermissions): AnyToolDefinition; //# sourceMappingURL=apply.d.ts.map