-
fix: correct Cursor hooks.json format (version + object hooks)
Release / Build aarch64-apple-darwin (push) Has been cancelledRelease / Build x86_64-apple-darwin (push) Has been cancelledRelease / Build aarch64-unknown-linux-gnu (push) Has been cancelledRelease / Build x86_64-unknown-linux-musl (push) Has been cancelledRelease / Build x86_64-unknown-linux-gnu (push) Has been cancelledRelease / Build x86_64-pc-windows-msvc (push) Has been cancelledRelease / Create Release (push) Has been cancelledRelease / Publish to crates.io (push) Has been cancelledRelease / Publish to npm (push) Has been cancelled发布于
2026-04-07 14:19:38 +00:00 Cursor requires
"version": 1and hooks as an object keyed by event
name (e.g.preToolUse), not an array. The old format caused:
"Config version must be a number; Config hooks must be an object"Also: auto-migrates existing broken configs on refresh.
Made-with: Cursor下载附件