Studio handlers
Everything a studio does is a verb dispatched on its tool bus: a click, your own code and the co-pilot alike. @mountaya/studio declares 253 verbs, and @mountaya/studio/handlers implements every one. Replace a verb's handler to change what it does.
Hand your handler to the host under the verb's name. The other 252 stand.
A handler takes the tool context and the verb's parsed input, and returns a result. A refusal is a result, never a throw.
On the headless path, spread the defaults and pass the map to createStudioToolBus:
overrideStudioHandler hands you the current handler, so you can log, refuse on your own condition, then delegate.
Twelve verbs, such as deleting an itinerary or removing a segment, ask the reader first. The host shows its own confirm dialog; pass behavior.confirm to ask in your own words.
The same gate asks for the co-pilot's calls, so a model never deletes anything without the reader's yes.
Every verb needs one capability: embedding to view and move the map, authenticated to read as a member, editor to write. The host grants all three by default; grant fewer for a read-only studio.
A verb outside the grant answers capability-denied, and the studio hides the control rather than offer it.
A handler that cannot recognize a failure re-throws it, and the bus classifies it. Add recognizers for your own errors.