Skip to content

Comments

v2#183

Merged
maoyama merged 174 commits intomainfrom
dev-v2
Sep 23, 2025
Merged

v2#183
maoyama merged 174 commits intomainfrom
dev-v2

Conversation

@maoyama
Copy link
Owner

@maoyama maoyama commented Aug 20, 2025

maoyama added 30 commits June 17, 2025 20:12
- 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.
- 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 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
@maoyama maoyama marked this pull request as ready for review September 23, 2025 00:12
@maoyama maoyama merged commit 0a7282d into main Sep 23, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants