feat: add support for rovodev#1889
Open
awprice wants to merge 1 commit into
Open
Conversation
Signed-off-by: Alex Price <aprice@atlassian.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
rtk init --agent rovodev(project) orrtk init -g --agent rovodev(global).AGENTS.mdbetween<!-- rtk-instructions -->markers, using the existingupsert_rtk_block/remove_rtk_blockhelpers (Rovo Dev does not auto-expand@filereferences inside memory files, so the Codex-style@RTK.mdindirection wouldn't work). Re-runningrtk initis idempotent; uninstall removes only the RTK block and preserves any other user content.hooks/README.mdandhooks/rovodev/README.md.Test plan
cargo fmt --all && cargo clippy --all-targets && cargo test(1873 tests pass, including 3 new tests:
test_try_parse_init_agent_rovodev,test_try_parse_init_agent_rovodev_global_uninstall,test_init_uninstall_dispatch_routes_rovodev_to_rovodev_cleanup— the last asserts the--globalflag is forwarded touninstall_rovodev).rtk init --agent rovodev→ writes<!-- rtk-instructions -->block into./AGENTS.md.(already up to date)(idempotent).# My Project ...) below the block, thenrtk init --agent rovodev --uninstall→ removes only the RTK block, preserves user content.-g) writes to / removes from~/.rovodev/AGENTS.md.acli rovodev runloads the inline block fromAGENTS.mdand the agent prefixes shell commands withrtkas instructed.Files changed
src/main.rs— newAgentTarget::Rovodevvariant, install/uninstall dispatch wiring, 3 new testssrc/hooks/init.rs—run_rovodev_mode(inline block viaupsert_rtk_block) +uninstall_rovodev(global, ctx)(preserves user content viaremove_rtk_block)src/hooks/constants.rs—ROVODEV_DIRconstant (.rovodev)hooks/rovodev/{README.md,rtk-awareness.md}— embedded awareness doc (wrapped in<!-- rtk-instructions -->markers) and per-agent READMEREADME.md,hooks/README.md— supported-tools table and integration docs