feat: add Oh My Pi (OMP) tool support
Merged
XI
4mo ago+379+379+012345678901234567890123456789-10-10-01234567890123456789
Add ToolCommandAdapter for Oh My Pi terminal AI coding agent.
- New adapter: src/core/command-generation/adapters/oh-my-pi.ts
- Commands: .omp/commands/opsx-.md with description frontmatter
- Hyphen transform: /opsx: -> /opsx- (filename = command name)
- Argument injection: Provided arguments: $@ after Input: heading
- escapeYamlValue applied to description field
- Register in CommandAdapterRegistry and adapters/index.ts
- Add oh-my-pi to AI_TOOLS with skillsDir: '.omp'
- Add to hyphen command transformer whitelist in init.ts and update.ts
- Full test coverage (10 cases) in adapters.test.ts
- Update docs/supported-tools.md with directory reference and tool ID
Closes #713
Summary by CodeRabbit
- New Features
- Added support for the Oh My Pi tool (
oh-my-pi), including automatic detection when a.omp/directory exists and generating command/skill files in the OMP folder structure.
- Added support for the Oh My Pi tool (
- Bug Fixes
- Enhanced command reference formatting for Oh My Pi and improved
**Provided arguments**: $@insertion after**Input**:with duplicate-avoidance.
- Enhanced command reference formatting for Oh My Pi and improved
- Documentation
- Updated supported tool IDs plus CLI and command syntax docs to include Oh My Pi (
/opsx-propose,/opsx-apply).
- Updated supported tool IDs plus CLI and command syntax docs to include Oh My Pi (
- Tests
- Added adapter and available-tools coverage for Oh My Pi behavior.