fix(ai-chat): wire drawio CRUD tools in-app to restore SHARED_TOOL_SPECS parity
PR #434 (drawio stage 1) added drawioGet/drawioCreate/drawioUpdate to the shared tool-spec registry with in-app metadata (inAppKey, deferred tier, catalogLine) but wired them only in the standalone MCP server, breaking the contract-parity and phantom-catalog unit tests on develop CI. - expose drawioGet/drawioCreate/drawioUpdate in forUser() via sharedTool(), mirroring the MCP transport's argument mapping (format ?? 'xml' default, flat schema regrouped into the client's `where` object, positional baseHash pass-through) - extend the DocmostClientLike hand-mirror with the three client methods - append the three names to the HOST_CONTRACT_METHODS drift-guard whitelist Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -81,6 +81,10 @@ const HOST_CONTRACT_METHODS = [
|
||||
"insertImage",
|
||||
"replaceImage",
|
||||
"insertFootnote",
|
||||
// draw.io diagrams (#423, stage 1) — read + create + optimistic-locked update
|
||||
"drawioGet",
|
||||
"drawioCreate",
|
||||
"drawioUpdate",
|
||||
// write (comment)
|
||||
"createComment",
|
||||
"resolveComment",
|
||||
|
||||
Reference in New Issue
Block a user