Add /btw command for paste-friendly context input#90
Conversation
Users could not paste text into conversations via a slash command. This adds the /gpd:btw command which accepts inline arguments, enabling both typed and pasted input of any length without interactive prompting.
dc6c0ea to
a959967
Compare
…-btw-command # Conflicts: # src/gpd/commands/help.md # src/gpd/specs/workflows/help.md # tests/README.md # tests/core/test_prompt_wiring.py # tests/repo_graph_contract.json
The forward merge with main brought in main's command-owned help metadata requirement and the renderer-backed help surfaces, but the btw command predated that contract and was missing a help: block, so the help renderer failed closed and btw never appeared in the rendered command inventory. - Add the required help metadata (group, order, compact_description, display_signature, example, note) to src/gpd/commands/btw.md so the renderer emits btw into the command index and detailed reference. - Regenerate the help surfaces, repo-graph contract, and tests/README.md scope counts (commands 71 -> 72) to reflect the added command. - Convert the leftover btw paste-friendly example from an unlabeled code fence into a runtime-neutral Common Workflows bullet, matching main's prefixless framing and satisfying the command-looking-fence label check. - Add btw to the command prompt-budget baseline registry with its measured expanded surface (52 lines, 1907 chars, 0 raw includes).
|
Warning Review limit reached
More reviews will be available in 5 minutes and 34 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (8)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
/gpd:btw <text>command so users can paste or type context mid-conversation$ARGUMENTS— no interactive prompting that would block pasteCloses ENG-456
Changes
src/gpd/commands/btw.md— command definition withcontext_mode: global, accepts$ARGUMENTSinlinesrc/gpd/commands/help.md— added /btw to Session Management section and quick-referencesrc/gpd/specs/workflows/help.md— matching help updatessrc/gpd/registry.py— addedgpd-btwto skill category mapTest plan
PYTHONPATH=src python3 -m pytest tests/ -q -o "addopts="— all tests pass (2133+)get_command('btw'),get_skill('gpd-btw')btw,gpd:btw,gpd-btw🤖 Generated with Claude Code