feat: Implement Support for Open AI's Codex CLI#49
Conversation
- Implemented ~/.codex/ directory validation - Created method create_codex_prompts to copy the md files to ~/.codex/prompts
…ner to allow for testing on Forks
|
@Page-Carbajal how is this different from #14? |
|
|
||
|
|
||
| def download_and_extract_template(project_path: Path, ai_assistant: str, is_current_dir: bool = False, *, verbose: bool = True, tracker: StepTracker | None = None) -> Path: | ||
| def download_and_extract_template(project_path: Path, ai_assistant: str, is_current_dir: bool = False, *, verbose: bool = True, tracker: StepTracker | None = None, repo_owner: str = "Page-Carbajal") -> Path: |
There was a problem hiding this comment.
You should remove all references to your personal gh username; using it as a default argument is not appropriate.
There was a problem hiding this comment.
Thanks for letting me know. I just removed the reference.
…spec-kit into feature/support-for-codex
|
@localden I think it is not. The approach is a little different I modified the the release.yml and added a function to copy the files. I also added the optional parameter If you want I can close this PR and maybe create another just for the optional param. |
|
@Page-Carbajal thanks for the contribution! Let's consolidate the work on #14 to avoid duplication, and also out of respect for the initial contributor - we can't quite have two PRs for the same CLI, unfortunately. Please feel free to submit suggestions to their code as well so that we have a solid implementation! |
|
can we get integration with the codex web version? |
feat: add Codex CLI support with slash commands integration
Implements support for Codex CLI by automatically copying relevant command templates to the
~/.codex/promptsdirectory during project initialization.Changes
AI_CHOICES~/.codex/directory validation and creationcreate_codex_prompts()method to copy markdown templates to~/.codex/prompts--repo-ownerparameter for testing with forksdownload_template_from_github()to acceptrepo_ownerparameterTesting
Test this feature before merge using:
The
--repo-ownerparameter allows testing against forked repositories by overriding the default repository owner in the template download process.Usage
After initialization with --ai codex, users can access slash commands directly in their Codex CLI environment through the populated
~/.codex/promptsdirectory./specifycommand on Codex CLI