diff --git a/rtk/SYMPOSIUM.toml b/rtk/SYMPOSIUM.toml new file mode 100644 index 0000000..a724bbd --- /dev/null +++ b/rtk/SYMPOSIUM.toml @@ -0,0 +1,20 @@ +name = "rtk" +depends-on = ["*"] + +# Install the RTK binary from its canonical git repository. RTK is not +# installed from crates.io because another crate uses the same name there. +[[installations]] +name = "rtk" +source = "cargo" +crate = "rtk" +git = "https://github.com/rtk-ai/rtk" +executable = "rtk" + +# RTK's native Claude hook reads and writes Claude's PreToolUse wire format. +[[hooks]] +name = "rewrite" +event = "PreToolUse" +matcher = "Bash" +format = "claude" +command = "rtk" +args = ["hook", "claude"] diff --git a/rtk/rtk.toml b/rtk/rtk.toml deleted file mode 100644 index 55acdbd..0000000 --- a/rtk/rtk.toml +++ /dev/null @@ -1,20 +0,0 @@ -name = "rtk" -crates = [] - -# Installs the `rtk` binary via cargo from the rtk-ai/rtk git repo. -[[installations]] -name = "rtk" -source = "cargo" -crate = "rtk" -git = "https://github.com/rtk-ai/rtk" -executable = "rtk" - -# Pre-tool-use hook: pulls the rtk-rewrite script from the same repo and runs -# it via `sh`. The `rtk` requirement ensures the binary is on disk first. -[[hooks]] -name = "rewrite" -event = "PreToolUse" -matcher = "Bash" -agent = "claude" -requirements = ["rtk"] -command = { source = "github", url = "https://github.com/rtk-ai/rtk", script = "hooks/claude/rtk-rewrite.sh" }