Commit 9179891
jzhu
feat: Add Copilot support and enable/disable commands for prompts
- Refactor prompts module into a package with handler classes
- base.py: BasePromptHandler abstract class
- claude.py, codex.py, gemini.py: Tool-specific handlers
- copilot.py: GitHub Copilot CLI handler with repo-wide and path-specific instructions
- manager.py: PromptManager with handler delegation
- models.py: Prompt dataclass
- Integrate Copilot as --app option in existing commands
- sync: supports --app copilot with --apply-to for path-specific
- import-live: imports from .github/copilot-instructions.md
- show-live: shows Copilot instructions content
- status: shows Copilot status with path-specific file count
- unsync: clears Copilot instruction files
- Add enable/disable commands for prompt status control
- enable: activates prompt, syncs to file, tracks enabled state (user level)
- disable: deactivates prompt without clearing files
- Remove redundant copilot-sync, copilot-import, copilot-show commands
- Update tests for new functionality1 parent 47d74bc commit 9179891
13 files changed
Lines changed: 1647 additions & 430 deletions
File tree
- .github
- code_assistant_manager
- cli
- prompts
- docs
- tests/unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
0 commit comments