-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhancements, Refactoring, and Documentation Updates (#27)
* 🗑️ Remove EmailPlugin and EmailPluginEx classes Removed the EmailPlugin and EmailPluginEx classes from the SKonsole Plugins directory. This includes the deletion of SendEmail and GetEmailAddress functions, as well as the Logger extension method. * 🔄 Add cancellation token support to plugins This commit adds support for CancellationToken in the CondensePlugin and PRPlugin. It ensures that the token is checked during processing of chunks and paragraphs, allowing for more responsive cancellation of long-running tasks. This improves the overall performance and responsiveness of the plugins. * 🔄 Update logger instantiation in various classes Replace specific class type with `this.GetType()` when creating loggers in multiple classes, improving consistency and maintainability. * 📦 Update GitPlugin with dynamic diff generation This commit updates the GitPlugin to include dynamic diff generation capabilities. The plugin now supports generating output based on a git diff or git show file output for a given instruction. The update also includes improvements to the GitDiffStaged function and adds a new GitDiffDynamic function for more flexible diff filtering. The changes made in this commit will enhance the overall functionality and flexibility of the GitPlugin. * 📝 Update README and improve SKonsole description Update the README file to include a Contributing section and update the license information. Improve the description of the SKonsole command in Program.cs for better user understanding. * 📝 Add validPlugins to contextVariables in StepwisePlannerCommand This commit updates the StepwisePlannerCommand and LoadOptionSet methods to improve plugin handling and add support for GitPlugin. The changes include: - Adding validPlugins list to keep track of imported plugins. - Modifying RunCreatePlan to pass validPlugins to RunChat. - Updating RespondTo method to use validPlugins for filtering available functions. - Implementing GitPlugin support with a new plan for processing 'git diff' output. * 📦 Update SKonsole to v1.1.0 and reformat csproj Update the SKonsole version from 1.0.6 to 1.1.0, and reformat the csproj file for better readability. No changes in package references or project references. * 📦 Update SKonsole.csproj and add package metadata Update SKonsole.csproj with additional package metadata, such as owners, icon, repository type, tags, readme file, and license expression. Also, include the icon and readme file in the package.
- Loading branch information
1 parent
e94c656
commit 1a8a850
Showing
19 changed files
with
332 additions
and
127 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Contributing | ||
|
||
We welcome contributions to improve SKonsole. If you have any suggestions or bug reports, please feel free to open an issue or submit a pull request. | ||
|
||
## Structure | ||
|
||
The repository is organized into the following main directories: | ||
|
||
- `apps`: Contains the SKonsole application. | ||
- `plugins`: Contains the plugins for the SKonsole application, including the CondensePlugin and PRPlugin. | ||
|
||
## Getting Started | ||
|
||
To get started with the SKonsole application, follow these steps: | ||
|
||
1. Clone the repository. | ||
|
||
### Using Visual Studio | ||
2. Open the `skonsole.sln` solution file in Visual Studio. | ||
3. Build and run the SKonsole application. | ||
|
||
### Using Terminal | ||
|
||
*apps\SKonsole* | ||
```Copy code | ||
dotnet build | ||
dotnet run | ||
``` | ||
This should build and run the SKonsole app. Note that you may need to configure your environment variables with your Azure OpenAI credentials before running the app. | ||
|
||
## Structure | ||
|
||
The repository is organized into the following main directories: | ||
|
||
- `apps`: Contains the SKonsole application. | ||
- `plugins`: Contains the plugins for the SKonsole application, including the CondensePlugin and PRPlugin. | ||
|
||
## Projects and Classes | ||
This repository contains several projects and classes, including: | ||
|
||
- PRPlugin: A plugin that can generate feedback, commit messages, and pull request descriptions based on git diff or git show output. The PRPlugin uses the CondensePlugin as a dependency and implements chunking and aggregation mechanisms to handle large inputs. | ||
|
||
- CondensePlugin: A plugin built on the Semantic Kernel that can condense multiple chunks of text into a single chunk. The plugin uses a semantic function defined with prompt templates and a completion engine. | ||
|
||
- CommitParser and CommitChunker: Two utility classes that split and parse the input based on commit and file information. These classes are useful for generating content and responses based on large text results. | ||
|
||
## Dependencies | ||
This project requires the following dependencies: | ||
|
||
- [Semantic Kernel](https://github.com/microsoft/semantic-kernel) | ||
|
||
*Powered by [Microsoft Semantic Kernel](https://github.com/microsoft/semantic-kernel)* |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
Oops, something went wrong.