458 Commits

Author SHA1 Message Date
bobo.yang
021efac1d9 refactor: Update rewrite.py with Chinese prompts and symbol analysis
- Translate prompts to Chinese for better localization
- Add symbol analysis functionality to detect missing definitions
- Implement context code gathering for better refactoring results
- Add helper functions for project root detection and symbol definition lookup
2025-03-07 12:00:49 +08:00
kagami
f4a4dbc529
Merge pull request #133 from devchat-ai/feat/update-vscode-text-selection
feat: Enhance VSCode text selection handling
2024-11-28 05:58:51 +00:00
bobo.yang
656c2287e4 fix lint error 2024-11-28 13:15:44 +08:00
bobo yang
d1321f4863 feat: Enhance VSCode text selection handling
- Add functions to get selected and visible text
- Update visible_lines() to use new get_visible_text()
- Refactor selected_lines() to use get_selected_text()
2024-11-28 12:48:01 +08:00
kagami
ed9898d038
Merge pull request #132 from devchat-ai/feat/add-multi-select-dropdown
feat: Add MultiSelect widget to chatmark library
2024-11-14 11:04:31 +00:00
bobo.yang
5da21b00d5 feat: Add MultiSelect widget and update imports
- Implement MultiSelect widget inheriting from Checkbox
- Update import order in __init__.py for consistency
- Prepare groundwork for multi-select dropdown functionality
2024-11-14 19:03:47 +08:00
bobo.yang
b8e2a0bef8 feat: Refactor MultiSelect to inherit from Checkbox
- Rename multiSelect class to MultiSelect for consistency
- Inherit MultiSelect from Checkbox to reduce code duplication
- Remove redundant properties and methods in MultiSelect class
2024-11-14 18:58:35 +08:00
bobo.yang
014579d557 feat: Add MultiSelect widget to chatmark library
- Implement MultiSelect class in widgets.py
- Update __init__.py to export MultiSelect
- Add support for multiple option selection with checkboxes
2024-11-14 18:45:59 +08:00
kagami
6d34ceb8e2
Merge pull request #131 from devchat-ai/feature/switch-submodule-directories
refactor: Replace subprocess calls with subprocess_check_output
2024-11-14 07:49:32 +00:00
bobo.yang
b0e7369929 fix lint errors 2024-11-14 15:04:27 +08:00
bobo.yang
2c1a10c4ce add gitlab workflows 2024-11-14 14:58:53 +08:00
bobo.yang
41a1de7bbb refactor: Replace os.system with subprocess_run in git add
- Replaced os.system with subprocess_run for git add command
- Updated import to include subprocess_run from git_api
- Ensured compatibility with existing git operations
2024-11-14 12:39:29 +08:00
bobo.yang
5585ff9fc2 fix lint error 2024-11-14 12:28:26 +08:00
bobo yang
2525010384 refactor: Replace subprocess calls with subprocess_check_output
- Replaced all instances of subprocess.check_output with subprocess_check_output
- Added subprocess_check_output function to handle current repo directory
- Updated git commands to use the new subprocess_check_output function
2024-11-14 12:23:09 +08:00
kagami
a4942d8527
Merge pull request #130 from devchat-ai/update_readme
Update README
2024-07-19 06:23:00 +00:00
bobo
ced0e1b111 update readme 2024-07-19 14:12:34 +08:00
kagami
b3b01a31ba
Merge pull request #129 from devchat-ai/update_pr_readme
feat: Add README files and update PR command structure
2024-07-19 04:54:04 +00:00
bobo
e03d1eb5dd docs: Add README for commit command and update YAML
- Add README.md explaining usage and steps of commit command
- Include optional issue closing feature in README
- Update command.yml to reference new README.md for help
2024-07-19 12:52:17 +08:00
bobo
1a7a272d08 feat: Add README files and update PR command structure
- Add README.md for PR command and its subcommands
- Update command.yml files to include help references
- Modify requirements.txt to use pr_env branch
- Add configuration options for PR inline review
2024-07-19 12:52:17 +08:00
kagami
a4005b6326
Merge pull request #128 from devchat-ai/auto_apply_fix_issue
feat: Enhance issue fixing and add aider integration
2024-07-19 04:42:19 +00:00
bobo
4a3b29c15e update README.md 2024-07-19 10:07:42 +08:00
bobo
7c30ca2135 fix lint error 2024-07-18 16:22:22 +08:00
bobo
c47261b06f chore: Ignore .aider* files in .gitignore 2024-07-18 16:02:33 +08:00
bobo
4e38d7785b feat: Add aider integration workflow command 2024-07-18 16:02:25 +08:00
bobo
c4352d8486 feat: Enhance fix_issue workflow with aider integration
- Add README instructions for fix_issue command usage
- Implement aider-based issue fixing when available
- Improve error handling and output formatting
- Refactor main function for better modularity
2024-07-18 16:01:08 +08:00
bobo
3980e6f996 feat: Add ask_issue workflow for automated lint error fixing
- Implement ask_issue command with README, command.yml, and main.py
- Create workflow to generate fix solutions using LLM
- Add functionality to extract and process diagnostics from IDE
2024-07-18 16:00:24 +08:00
bobo
f9fe89c5c0 feat: Remove unused RPC call for symbol definitions
- Delete get_symbol_defines_in_selected_code() function
- Clean up unused RPC call decorator
- Improve code organization in vscode_service.py
2024-07-18 15:45:04 +08:00
bobo
6ef65bc3ca feat: Add select_range method to IDEService
- Implement new RPC method for text selection in files
- Include parameters for file name and selection coordinates
- Add functionality to cancel current selection
2024-07-18 15:44:06 +08:00
bobo
7f0b440e42 chore: Add autoedit parameter to diff_apply method 2024-07-04 17:07:59 +08:00
kagami
d218bf7711
Merge pull request #127 from devchat-ai/add_fix_issue_command
feat: Add fix_issue command and new IDE service methods
2024-07-02 00:54:24 +00:00
bobo
8830931562 feat: Refactor fix_issue command to improve code readability and maintainability 2024-07-01 21:42:18 +08:00
bobo
ecdee052aa fix lint error 2024-07-01 21:39:44 +08:00
bobo
8a15ea83f2 fix lint error 2024-07-01 21:37:29 +08:00
bobo
d8d1c34406 fix: Update rules_path to "sonar-rspec" for consistency 2024-07-01 21:27:58 +08:00
bobo
89d19679f5 fix: Handle error cases and exit with non-zero status 2024-07-01 21:27:58 +08:00
bobo
9d07b91a3e feat: Add fix_issue command
- Implement new command to automatically fix lint errors
- Create main.py with functions for issue detection and fixing
- Add command.yml and README.md for fix_issue functionality
2024-07-01 21:27:57 +08:00
bobo
a8b6b4ea63 feat: Add new IDE service methods
- Implement get_diagnostics_in_range for code diagnostics
- Add get_collapsed_code method for code collapsing
- Introduce get_extension_tools_path for tool path retrieval
2024-07-01 21:27:57 +08:00
kagami
7b19535fd7
Merge pull request #126 from devchat-ai/update_workflows
Refactor and Enhance PR Creation and Review Features
2024-07-01 06:04:53 +00:00
bobo
5f4ebe5a5c Update PR requirements.txt 2024-07-01 13:55:15 +08:00
bobo
eb08230b60 update pr requirements.txt 2024-07-01 12:32:29 +08:00
bobo
bb3d04d7a9 fix lint error 2024-06-30 16:11:31 +08:00
bobo
8cbb645fa8 fix lint error 2024-06-30 16:07:38 +08:00
bobo
da9f21e1dc refactor: Rename config functions and parameters
- Renamed `read_config` to `read_config_item` and updated its usage
- Renamed `save_config` to `save_config_item` and updated its usage
- Renamed `save_branch` parameter to `base_branch` in `save_last_base_branch`
2024-06-30 15:48:54 +08:00
bobo
3a15d11026 feat: Add interactive base branch input for PR creation
- Introduce functions to read and save last base branch from config
- Modify PR creation and update commands to use dynamic base branch
- Enable user interaction to edit base branch during PR operations
2024-06-30 15:42:39 +08:00
bobo
5595097aed feat: Add configuration for inline PR review activation
- Introduced `read_review_inline_config` to enable inline code comments based on config
- Added new configuration file `command.py` to manage PR review inline settings
- Updated `command.py` to conditionally set inline code comments based on new config
2024-06-30 14:55:30 +08:00
bobo
fa308c36ab refactor: Simplify branch name generation and include issue ID
- Removed issue ID from branch name prompt in command.py
- Modified get_issue_or_task to return issue ID for branch naming
- Updated branch name generation to append issue ID if available
2024-06-30 14:17:39 +08:00
kagami
bf6e266b87
Merge pull request #125 from devchat-ai/handle_llm_error
Handle llm error
2024-06-18 10:48:10 +00:00
bobo
780fe10a98 fix: Handle error cases and exit with non-zero status
- Added error handling to main functions in multiple modules
- Ensured sys.exit(1) is called when responses are not successful
- Improved robustness by checking response validity before proceeding
2024-06-18 18:21:25 +08:00
bobo
df15fba131 Refactor TextEditor to handle block flags in text 2024-06-18 18:17:57 +08:00
kagami
060900a86c
Merge pull request #124 from devchat-ai/use_select_model_in_github_commands
Refactor code to remove model parameter from @chat_json decorator
2024-05-28 10:22:14 +00:00