feat(server): add delete_hook DELETE-tier tool #17
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/delete-hook-tool-fjmcp-16"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The webhook tool family (FJMCP-12) shipped
create_hook,edit_hook,get_hook,list_hooks, andtest_hook, butdelete_hookwas never added. It was nonetheless advertised as a DELETE-tier tool inREADME.md:161and in theget_infoinstructions (src/server.rs:4243), so an agent reading either surface and callingdelete_hookgot a method-not-found error. This was the only gap in the fj-core operation surface (153 of 154 functions wired) and left epic FJMCP-9 acceptance criterion 3 unmet.Change
Add the
delete_hook#[tool], mirroring the existingdelete_deploy_keyDELETE-tier tool:self.require(Tier::Delete)?.HookIdParams(owner,repo,id); no new params struct.fj_core::repo::delete_hookand returns{ deleted: true, id }.README.mdandget_infoalready describe exactly this tool and return shape, so no documentation change is needed; this PR makes those claims true.Verification
just check(fmt, clippy, build, Docker builder compile) andjust test(41 passed) both green.#FJMCP-16
The webhook tool family shipped create_hook, edit_hook, get_hook, list_hooks, and test_hook but never the delete_hook tool, even though fj-core exposes repo::delete_hook and both README.md and the get_info instructions already advertise delete_hook as a DELETE-tier tool. Calling it returned method-not-found. This was the sole gap in the otherwise complete fj-core operation surface (153/154), so it also closed epic FJMCP-9 acceptance criterion 3. Mirror the existing delete_deploy_key tool: DELETE-tier gated via require(Tier::Delete), reuse HookIdParams, call fj_core::repo::delete_hook, return { deleted: true, id }. README and get_info already describe this shape, so no doc change is needed. #FJMCP-16