Skip to content

Conversation

@msmps
Copy link
Owner

@msmps msmps commented Jan 29, 2026

No description provided.

msmps added 3 commits January 29, 2026 14:37
- Add parse_key_sequence() for space-separated key chords (e.g., "Ctrl+X m")
- Add --delay flag for millisecond delays between keys in sequences
- Add delay_ms field to Key protocol command (u32, max 10000ms)
- Add DoS protection: MAX_KEY_DELAY_MS (10s) and MAX_KEY_SEQUENCE_LEN (100)
- Use invalid_input_with_suggestion() for AI-friendly error messages
- Make key_to_bytes/parse_key_combo internal (not public API)
- Optimize single-char fallback to avoid Vec<char> allocation
- Update .gitignore to exclude AGENTS.md, examples/, TODO*.md

Examples:
  pilotty key "Ctrl+X m"              # Emacs chord
  pilotty key "Escape : w q Enter"    # vim :wq
  pilotty key "a b c" --delay 50      # 50ms between keys
- README.md: Add key sequence examples and new Key Sequences section
- npm/README.md: Add key sequence examples to Quick Start
- SKILL.md: Add sequences to Input section, --delay to options, update vim example
- key-input.md: Add full Key Sequences section with delay, update TUI patterns
@msmps msmps marked this pull request as ready for review January 29, 2026 16:40
@msmps msmps merged commit 1b02ec2 into main Jan 29, 2026
6 checks passed
@msmps msmps deleted the feat/key-sequence-support branch January 29, 2026 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants