Conversation
- Add TODO checklist to LLM.md for repo context and git tool improvements - Split git_commit into separate get_diff and commit operations - Add git_generate_commit_message tool for explicit message generation - Update git_review and git_create_pr_description to accept diff parameters - Enable git tools in normal and edit modes for broader accessibility
- Add explicit formatting rules for better readability - Enforce max 70 characters per line - Improve line wrapping guidance for generated descriptions
Improve AI's autonomous problem-solving by providing explicit instructions for tool usage in coding tasks. - Updates Gemini's system prompt to guide the AI to proactively use `git_list_local_modified_files`, `search_files`, and `search_content` for context. - Expands `git_commit` tool availability to 'normal' mode, allowing more flexible use. - Applies minor formatting and wording adjustments in system prompts and tool definitions.
- Harmonize indentation of configuration examples and key bindings in README.md. - Adjust table column widths in README.md for improved readability. - Correct indentation of object properties in TypeScript source files.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces a comprehensive logging system throughout the application.
A new logging service has been added to write structured logs to a file. This
service has been integrated into most modules to provide detailed information
about operations, errors, and debugging states.
Changes
New Logging Service (
src/services/logging.ts):Loggerclass withinfo,warning,error, anddebugstatic methods.
APP_CONFIG_DIR/logs/app.log.deno.land/std/fs/ensure_file.tsto ensure the log file anddirectory exist.
Widespread Logger Integration:
src/api/server.ts): Added request/response loggingmiddleware and specific logs for server initialization, command
handling, and errors.
src/services/llm_providers/default.ts): Integratedlogging for provider initialization, stream creation, web search
operations, and message sending, including error handling.
src/services/tools/*.ts): Added extensive logging withinall tool processing functions (common, fs, git) for operations,
arguments, results, and errors. The
logparameter in toolprocessfunctions has been renamed to
print.src/store/main.ts): Incorporated logging for storeinitialization, state changes (e.g., operation mode, chat history,
file context), user prompt submissions, and clipboard operations.
src/utils/config.ts): Added logging for configfile loading, updating, and error handling.
APP_DIRnow uses a newhelper function.
src/utils/git.ts): Implemented logging for gitcommand execution, diff generation, commits, and listing modified
files.
Dependency Updates (
deno.lock):fsutilities(
ensure_file,_get_file_info_type,_to_path_string,ensure_dir) at versionstd@0.224.0, primarily to support the newlogging service.
Helper Utilities (
src/utils/helpers.ts):getAppConfigDir()function to determine the application'sconfiguration directory, used by the logging service and config
loading.
Minor Adjustments:
SYSTEMprompt string insrc/utils/constants.ts.FUZZY_MATCH_SIMILARITY_THRESHOLDinsrc/services/tools/fs.ts.