Sahaj Jain
45405417ce
fix: Add error handling for invalid range
2024-11-22 01:45:51 +05:30
Sahaj Jain
fece7a8125
feat: Add handling for commits range in AI prompt generation
2024-11-22 00:54:35 +05:30
Sahaj Jain
644b2e6840
refactor(git_entity): Add Diff variants and update AIPrompt implementation
2024-11-22 00:47:16 +05:30
Sahaj Jain
2385ef2b67
feat: Add commit_reference and support commit ranges for explain
2024-11-16 23:24:16 +05:30
Sahaj Jain
0cbef5c0ff
Merge pull request #19 from lkonga/feature/support-openrouter
...
feat: add OpenRouter AI provider support
2024-11-16 22:39:26 +05:30
Sahaj Jain
14c8807b53
refactor: Diff::new -> Diff::from_working_tree
2024-11-16 22:38:35 +05:30
Sahaj Jain
882b02a350
refactor: rename GitDiff to Diff and update related types
2024-11-16 22:05:03 +05:30
Sahaj Jain
f11c53e3db
refactor: rename GitCommit to Commit and update related types
2024-11-16 22:05:03 +05:30
lkonga
95097b8bc8
feat: add OpenRouter AI provider support
2024-11-16 21:39:39 +07:00
ssssobek
6910d44be2
refactor: use indoc for multiline strings
2024-11-15 22:56:56 +01:00
Sahaj Jain
178efc2dba
feat(cli): add config option for specifying configuration file path
2024-11-15 19:43:51 +05:30
Sahaj Jain
20d19c8b02
refactor(config): update LumenConfig to use optional fields for model and api_key
2024-11-15 19:24:06 +05:30
jmattaa
99ea58c2b8
refactor: keep branch up to date with main
...
add version command
Signed-off-by: jmattaa <mattajonathan1@gmail.com>
2024-11-11 17:09:55 +01:00
Pascal Perle
dc67511c12
feat: add command version option to CLI
2024-11-10 10:39:33 +01:00
Jonathan Matta
7834e22537
feat(config): add error handling to configuration
...
Signed-off-by: Jonathan Matta <mattajonathan1@gmail.com>
2024-11-09 23:14:44 +01:00
Jonathan Matta
31d5e5056e
refactor(config): add command specific config
...
Signed-off-by: Jonathan Matta <mattajonathan1@gmail.com>
2024-11-09 23:01:21 +01:00
Jonathan Matta
656296d959
refactor(config): move to configuration module
...
Cli, env and file are handled from the configuration module
Signed-off-by: Jonathan Matta <mattajonathan1@gmail.com>
2024-11-09 22:20:18 +01:00
Jonathan Matta
22ddb241e6
Merge remote-tracking branch 'upstream/main' into feature/proj-config
...
Signed-off-by: Jonathan Matta <mattajonathan1@gmail.com>
2024-11-09 21:28:00 +01:00
Sahaj Jain
42df7fda1f
docs: Add documentation for cli args
2024-11-10 00:11:27 +05:30
Sahaj Jain
977c72f749
chore: Remove unused import
2024-11-10 00:07:18 +05:30
Sahaj Jain
e1dbe30b3e
feat: Add query flag for explain command
2024-11-10 00:04:50 +05:30
Sahaj Jain
43b08631c2
refactor: run clippy fix
2024-11-09 23:39:29 +05:30
Sahaj Jain
509d29e1dd
refactor: Simplify command handling in AIPrompt and AIProvider implementations
2024-11-09 23:38:09 +05:30
Sahaj Jain
a24f871063
Merge pull request #15 from jnsahaj/refactor/command-trait
...
refactor: Add Command trait for all commands
2024-11-09 23:16:23 +05:30
Sahaj Jain
16f9ee281a
refactor: Add Command trait for all commands
...
First step to make command configs possible, instead of modifying all
functions when a new field is added
2024-11-09 23:15:14 +05:30
Jonathan Matta
daac66a622
feat: add prefix types support to draft prompts
...
Signed-off-by: Jonathan Matta <mattajonathan1@gmail.com>
2024-11-09 14:24:08 +01:00
Jonathan Matta
39ccb37e3f
feat: add configuration handling for AI api
...
The features for model provider and model and api key can now be changed
in the `lumen_config.json`
Signed-off-by: Jonathan Matta <mattajonathan1@gmail.com>
2024-11-09 13:47:41 +01:00
ssssobek
a1d89a1387
fix: correct typo in LumenError
2024-11-08 23:44:29 +01:00
Sahaj Jain
8a1ef76a90
fix(OllamaProvider): convert response value to str
2024-11-07 00:59:51 +05:30
Sahaj Jain
b50664a92b
feat(provider): Add Ollama support
2024-11-06 22:06:54 +05:30
Sahaj Jain
9ee7c48147
feat: add optional context parameter to draft functions across providers
2024-11-06 18:36:50 +05:30
Sahaj Jain
672dc20b0a
feat: Implement error handling for groq and phind
2024-11-05 17:22:49 +05:30
Sahaj Jain
cb9ae87cef
refactor(provider/claude): simplify response handling in ClaudeProvider
2024-11-05 17:14:20 +05:30
Sahaj Jain
2b3f56ee76
feat(provider): add error handling for API requests in OpenAI provider
2024-11-05 17:11:04 +05:30
Sahaj Jain
7292cf6fed
fix(provider): update default model in OpenAIConfig constructor
2024-11-05 16:42:03 +05:30
Sahaj Jain
5a1e0502ef
refactor: Update error handling and types in AI providers
2024-11-05 16:30:22 +05:30
Sahaj Jain
bb7e3bbe8c
refactor(error): Implement custom error types with thiserror
2024-11-05 16:18:15 +05:30
Sahaj Jain
9716979fb9
feat: Add draft to groq and refactor
2024-11-05 15:55:36 +05:30
Sahaj Jain
18b2958205
feat(provider): Add PhindConfig and refactor PhindProvider
2024-11-05 15:52:59 +05:30
Sahaj Jain
25ceba2c97
feat: Implement draft for claude and refactor
2024-11-05 15:50:19 +05:30
Sahaj Jain
633c0b58d9
feat(provider): Add OpenAIConfig and refactor OpenAIProvider implementation
2024-11-05 15:45:11 +05:30
Sahaj Jain
d509e97eff
feat(provider): Add draft functionality to OpenAIProvider
2024-11-05 14:33:23 +05:30
Sahaj Jain
537d77cadc
feat(src/ai_prompt.rs): Add error handling and result type to build_draft_prompt function
2024-11-05 14:29:35 +05:30
Sahaj Jain
c0c487e6db
feat: Add draft functionality for git diffs
2024-11-04 01:25:09 +05:30
Sahaj Jain
9003cbae49
feat: Add draft prompt generation function
2024-11-04 01:15:19 +05:30
Sahaj Jain
2aaf1f81f1
feat: Improve empty diff error msg
2024-11-04 01:02:39 +05:30
Sahaj Jain
324edfe654
feat: Modify error formatting
2024-11-03 04:17:08 +05:30
Sahaj Jain
e72e91cb3b
fix: explain command invalid args error
2024-11-03 04:13:51 +05:30
Sahaj Jain
7df59b0d4d
feat: Enhance ai system prompt
2024-11-03 03:49:01 +05:30
Sahaj Jain
46f63cfad2
feat: Support AIPrompt for all providers
2024-11-03 03:30:42 +05:30