Conversation
- Implemented SystemLanguageModelService to generate commit messages based on git diffs. - Added SystemLanguageModelServiceTests to verify the functionality of commit message generation.
…vice - Implemented a test that verifies the output of commit message generation for a staged diff in the SystemLanguageModelServiceTests file. - Included sample diff for ContentView.swift to test the functionality.
…ion in SystemLanguageModelService
…6.0+ SystemLanguageModelModel
- Imported FoundationModels and Foundation for additional functionalities. - Implemented commitMessageWithTool() test method to verify commit message generation using staged diffs. - Added UncommitedChangesStubTool for simulating tool interactions in the test.
…e hunks for git staging - Introduced `GeneratedStagingChanges` struct to represent information about which code hunks should be staged. - Added `stagingChanges` method in `SystemLanguageModelService` to analyze unstaged diffs and return user guidance on hunks to commit.
This commit introduces a new async test case to the SystemLanguageModelServiceTests, which verifies the correct functionality of the `stagingChanges` method by simulating a Git diff that includes changes to CommitGraphView.swift. The test ensures that the returned hunks are not empty, indicating that the staging process works as expected.
…hanges - Added clarification about hunks in commit message instructions for better understanding. - Adjusted response options in the stagingChanges function to increase predictability.
- Introduced `stagingChanges` method in `SystemLanguageModelService` to process tools and generate staging responses. - Added `UnstagedChangesTool` class to handle retrieval of unstaged changes via the git diff command. - Modified temperature settings for session responses to enhance output variability. - Updated tests for new functionality, including `stagingChangesWithTool` test case to verify correct behavior.
- Updated commit message prompt for clarity. - Introduced `StagedChangesTool` to retrieve staged changes from Git. - Added tests for `commitMessageWithStagedChangesTool` method to ensure proper message generation for staged changes. - Created `StagedChangesToolStub` to facilitate testing of the new functionality.
This reverts commit 04d9514.
This reverts commit 6c1e475. # Conflicts: # GitClient/Views/Folder/FolderView.swift
- Introduced `GitLogTool` struct to fetch git commit logs using a specified directory. - Implemented call method to process and return the commit logs in a structured format. - Enhanced the toolset for better interaction with git repositories.
Including number of commits to output and skip count
Show diff summary in stash
…essages and progress indicators
To respond during text conversion(e.g. ja)
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.
#182