feat: Add support for Template Options#128
Conversation
- Added `template` option to `M.defaults` in `lua/llm/config.lua`. - Created `M.get_template_arg()` in `lua/llm/commands.lua` to parse the option. - Injected `M.get_template_arg()` into `M.prompt`, `M.prompt_with_current_file`, and `M.prompt_with_selection` to pass `-t` flag to the CLI. - Added unit tests for `get_template_arg` in `tests/spec/commands_spec.lua`. - Removed Gap 2 from `BACKLOG.md` as it is now completed. Co-authored-by: julwrites <18639913+julwrites@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
This PR implements support for Template Options (
-t,--template) as defined in Gap 2 of theBACKLOG.md.Changes:
templatefield to defaults inlua/llm/config.lua.get_template_arghelper inlua/llm/commands.luaand injected it into the prompt building functions to append the-targument.get_template_argincommands_spec.luaensuring correct behavior when the config option is populated versus absent.PR created automatically by Jules for task 2644159533550633636 started by @julwrites