You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(gitcommit): add commit history context for message generation (#9)
* feat(gitcommit): add commit history context for message generation
- introduce `use_commit_history` and `commit_history_count` options to include recent commit messages as context
- update generator to pass commit history to LLM prompt for improved style consistency
- implement `Git.get_commit_history` to retrieve recent commit messages from git log
- update configuration, types, and example config to support and document the new feature
- ensure commit history context is used across buffer, init, and generator modules
* refactor(gitcommit): improve formatting and consistency
- update indentation and spacing across gitcommit extension files
- fix minor comment alignment and trailing comma issues in config example
- standardize function parameter documentation and formatting
* fix(types): correct type declarations for Git and Generator classes
- move generate_commit_message function from Git class to proper Generator class
- add missing get_commit_history function declaration to Git class
- fix indentation and formatting issues in type annotations
* style(types): remove unnecessary blank line in types.lua
- delete extraneous blank line for improved code readability
* docs(guide): migrate documentation to codecompanion.txt
- consolidate EXTENSION_DEVELOPMENT_GUIDE.md, GEMINI.md, tools.md, and prompt_construction_en.md into codecompanion.txt
- update and expand help documentation for plugin features, configuration, extension development, and tool creation
- remove outdated and redundant markdown guides in favor of unified vim help file
* style(gitcommit): improve code comments and docstrings
- update comments and docstrings for clarity and consistency across buffer, generator, git, init, and ui modules
- rephrase and simplify inline comments to enhance readability
- standardize parameter descriptions and function documentation for better maintainability
* docs(gitcommit): document commit history context and API
- add commit history context feature to README and configuration docs
- introduce programmatic API section with usage examples in README and help file
- update documentation structure and configuration options for clarity
* feat(workspace): add structured workspace manifest file
- introduce codecompanion-workspace.json with schema and group definitions
- organize extension components into logical groups for core, git, AI, UI, tools, and docs
- provide metadata and file descriptions to support project tooling and documentation
* docs(guide): document new get_changed_files tool and update tool options
- add documentation for the get_changed_files tool, including usage and options
- update tool group listings and examples to include get_changed_files
- clarify and expand options for file_search, grep_search, insert_edit_into_file, and next_edit_suggestion tools
- update event list with CodeCompanionChatDone event
- fix and improve tool group documentation for clarity and completeness
* fix(gitcommit): handle cancelled language selection gracefully
- add checks for nil language selection in commit message generation
- prevent further processing if user cancels language selection dialog
* style(gitcommit): remove trailing whitespace in buffer.lua
- clean up unnecessary whitespace for improved code consistency
* docs(gitcommit): add setup function annotation and clean config usage
- document Git.setup with LuaDoc annotation for configuration options
- simplify git_config retrieval in generate_commit_message by removing redundant check
"system_prompt": "You are helping with a Neovim plugin that extends CodeCompanion to provide AI-powered Git commit message generation following Conventional Commits specification. The plugin integrates deeply with Git workflows and provides comprehensive tooling for repository management through LLM-powered chat interfaces.",
"system_prompt": "This group contains the core extension entry point and configuration. Focus on the main initialization logic, extension setup, command registration, and overall architecture of how the plugin integrates with CodeCompanion.",
14
+
"data": [
15
+
"main_init",
16
+
"extension_config",
17
+
"type_definitions"
18
+
]
19
+
},
20
+
{
21
+
"name": "git_operations",
22
+
"system_prompt": "This group handles all Git repository operations including diff analysis, commit execution, repository validation, and file filtering. Focus on Git command execution, repository state management, and the core Git integration logic.",
23
+
"data": [
24
+
"git_core",
25
+
"git_buffer_integration"
26
+
]
27
+
},
28
+
{
29
+
"name": "ai_generation",
30
+
"system_prompt": "This group manages the AI-powered commit message generation using LLM adapters. Focus on prompt engineering, LLM communication, response handling, and the generation workflow for creating Conventional Commits compliant messages.",
31
+
"data": [
32
+
"message_generator",
33
+
"language_selection"
34
+
]
35
+
},
36
+
{
37
+
"name": "user_interface",
38
+
"system_prompt": "This group handles user interaction components including buffer integration for gitcommit buffers, floating window displays, and user interface elements. Focus on user experience, interactive elements, and visual presentation.",
39
+
"data": [
40
+
"buffer_management",
41
+
"ui_components"
42
+
]
43
+
},
44
+
{
45
+
"name": "git_tools",
46
+
"system_prompt": "This group provides comprehensive Git tooling for CodeCompanion chat integration, including read-only operations, write operations, and the Git bot assistant. Focus on tool schemas, command execution, safety mechanisms, and chat integration.",
47
+
"data": [
48
+
"git_tools_core",
49
+
"git_read_tool",
50
+
"git_edit_tool"
51
+
]
52
+
},
53
+
{
54
+
"name": "documentation_and_examples",
55
+
"system_prompt": "This group contains project documentation, usage examples, and configuration templates. Focus on user guidance, feature documentation, and setup instructions.",
0 commit comments