Skip to content

Commit

Permalink
chore: Rename to FlowPair
Browse files Browse the repository at this point in the history
  • Loading branch information
skarllot committed Dec 20, 2024
1 parent 0f1f1f9 commit 3b9b626
Show file tree
Hide file tree
Showing 56 changed files with 117 additions and 125 deletions.
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions .idea/.idea.flow-pair/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 0 additions & 12 deletions .idea/.idea.flow-reviewer/.idea/vcs.xml

This file was deleted.

4 changes: 0 additions & 4 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<Project>

<Sdk Name="ViHo.PackAsAnalyzer" Version="1.0.1" />

<PropertyGroup>
<RootNamespace>Ciandt.FlowTools.$(MSBuildProjectName)</RootNamespace>
<AssemblyName>$(RootNamespace)</AssemblyName>
Expand All @@ -16,5 +13,4 @@
<AnalysisMode>Recommended</AnalysisMode>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
</PropertyGroup>

</Project>
2 changes: 1 addition & 1 deletion flow-reviewer.sln → flow-pair.sln
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{B48F9C8B-227
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{F62983E1-C491-4C83-BC2B-8FB2E7B251ED}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FlowReviewer", "src\FlowReviewer\FlowReviewer.csproj", "{C5518AFB-A554-41EF-A8B4-CD6A08A60E1C}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FlowPair", "src\FlowPair\FlowPair.csproj", "{C5518AFB-A554-41EF-A8B4-CD6A08A60E1C}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
// the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
namespace Ciandt.FlowTools.FlowReviewer.Agent.ReviewChanges
namespace Ciandt.FlowTools.FlowPair.Agent.ReviewChanges
{
using System.Collections.Immutable;
using System.Text;
using Ciandt.FlowTools.FlowReviewer.Agent.ReviewChanges.v1;
using Ciandt.FlowTools.FlowReviewer.Common;
using Ciandt.FlowTools.FlowPair.Agent.ReviewChanges.v1;
using Ciandt.FlowTools.FlowPair.Common;
using Raiqub.Generators.T4CodeWriter;
using System;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<#@ template language="C#" debug="false" linePragmas="false" hostspecific="false" inherits="CodeWriterBase<ImmutableList<ReviewerFeedbackResponse>>" #>
<#@ import namespace="System.Collections.Immutable" #>
<#@ import namespace="System.Text" #>
<#@ import namespace="Ciandt.FlowTools.FlowReviewer.Agent.ReviewChanges.v1" #>
<#@ import namespace="Ciandt.FlowTools.FlowReviewer.Common" #>
<#@ import namespace="Ciandt.FlowTools.FlowPair.Agent.ReviewChanges.v1" #>
<#@ import namespace="Ciandt.FlowTools.FlowPair.Common" #>
<#@ import namespace="Raiqub.Generators.T4CodeWriter" #>
<!DOCTYPE html>
<html>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@
using System.Text;
using System.Text.Json;
using AutomaticInterface;
using Ciandt.FlowTools.FlowReviewer.Agent.ReviewChanges.v1;
using Ciandt.FlowTools.FlowReviewer.ChangeTracking;
using Ciandt.FlowTools.FlowReviewer.Common;
using Ciandt.FlowTools.FlowReviewer.Flow.ProxyCompleteChat;
using Ciandt.FlowTools.FlowReviewer.Flow.ProxyCompleteChat.v1;
using Ciandt.FlowTools.FlowReviewer.Persistence;
using Ciandt.FlowTools.FlowPair.Agent.ReviewChanges;
using Ciandt.FlowTools.FlowPair.Agent.ReviewChanges.v1;
using Ciandt.FlowTools.FlowPair.ChangeTracking;
using Ciandt.FlowTools.FlowPair.Common;
using Ciandt.FlowTools.FlowPair.Flow.ProxyCompleteChat;
using Ciandt.FlowTools.FlowPair.Flow.ProxyCompleteChat.v1;
using Ciandt.FlowTools.FlowPair.Persistence;
using Spectre.Console;

namespace Ciandt.FlowTools.FlowReviewer.Agent.ReviewChanges;
namespace Ciandt.FlowTools.FlowPair.Agent.ReviewChanges;

public partial interface IFlowChangesReviewer;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Collections.Immutable;

namespace Ciandt.FlowTools.FlowReviewer.Agent.ReviewChanges;
namespace Ciandt.FlowTools.FlowPair.Agent.ReviewChanges;

public sealed record Instructions(
string Name,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Ciandt.FlowTools.FlowReviewer.Agent.ReviewChanges.v1;
namespace Ciandt.FlowTools.FlowPair.Agent.ReviewChanges.v1;

public sealed record ReviewerFeedbackResponse(
int RiskScore,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
namespace Ciandt.FlowTools.FlowReviewer.ChangeTracking;
namespace Ciandt.FlowTools.FlowPair.ChangeTracking;

public sealed record FileChange(string Path, string Diff);
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using LibGit2Sharp;
using Spectre.Console;

namespace Ciandt.FlowTools.FlowReviewer.ChangeTracking;
namespace Ciandt.FlowTools.FlowPair.ChangeTracking;

public partial interface IGitDiffExtractor;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using System.Collections.Immutable;
using System.Text.Json.Serialization;
using Ciandt.FlowTools.FlowReviewer.Agent.ReviewChanges.v1;
using Ciandt.FlowTools.FlowReviewer.Flow.AnthropicCompleteChat.v1;
using Ciandt.FlowTools.FlowReviewer.Flow.GenerateToken.v1;
using Ciandt.FlowTools.FlowReviewer.Flow.OpenAiCompleteChat.v1;
using Ciandt.FlowTools.FlowReviewer.Persistence.Models.v1;
using Ciandt.FlowTools.FlowPair.Agent.ReviewChanges.v1;
using Ciandt.FlowTools.FlowPair.Flow.AnthropicCompleteChat.v1;
using Ciandt.FlowTools.FlowPair.Flow.GenerateToken.v1;
using Ciandt.FlowTools.FlowPair.Flow.OpenAiCompleteChat.v1;
using Ciandt.FlowTools.FlowPair.Persistence.Models.v1;

namespace Ciandt.FlowTools.FlowReviewer.Common;
namespace Ciandt.FlowTools.FlowPair.Common;

[JsonSourceGenerationOptions(
GenerationMode = JsonSourceGenerationMode.Default,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Text;

namespace Ciandt.FlowTools.FlowReviewer.Common;
namespace Ciandt.FlowTools.FlowPair.Common;

public static class CollectionExtensions
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Text.RegularExpressions;
using System.Web;

namespace Ciandt.FlowTools.FlowReviewer.Common;
namespace Ciandt.FlowTools.FlowPair.Common;

public static partial class HtmlFormatter
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Text.Json;
using System.Text.Json.Serialization.Metadata;

namespace Ciandt.FlowTools.FlowReviewer.Common;
namespace Ciandt.FlowTools.FlowPair.Common;

public static class HttpBlockingExtensions
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using Ciandt.FlowTools.FlowReviewer.ChangeTracking;
using Ciandt.FlowTools.FlowReviewer.Common;
using Ciandt.FlowTools.FlowReviewer.Persistence;
using Ciandt.FlowTools.FlowPair.ChangeTracking;
using Ciandt.FlowTools.FlowPair.Common;
using Ciandt.FlowTools.FlowPair.Persistence;
using Jab;

namespace Ciandt.FlowTools.FlowReviewer.DependencyInjection;
namespace Ciandt.FlowTools.FlowPair.DependencyInjection;

[ServiceProvider]
[Import(typeof(IFlowModule))]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Ciandt.FlowTools.FlowReviewer.Agent.ReviewChanges;
using Ciandt.FlowTools.FlowPair.Agent.ReviewChanges;
using Jab;

namespace Ciandt.FlowTools.FlowReviewer.DependencyInjection;
namespace Ciandt.FlowTools.FlowPair.DependencyInjection;

[ServiceProviderModule]
[Singleton(typeof(IFlowChangesReviewer), typeof(FlowChangesReviewer))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Jab;
using Spectre.Console;

namespace Ciandt.FlowTools.FlowReviewer.DependencyInjection;
namespace Ciandt.FlowTools.FlowPair.DependencyInjection;

[ServiceProviderModule]
[Singleton(typeof(IFileSystem), typeof(FileSystem))]
Expand Down
16 changes: 16 additions & 0 deletions src/FlowPair/DependencyInjection/IFlowModule.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using Ciandt.FlowTools.FlowPair.Flow;
using Ciandt.FlowTools.FlowPair.Flow.AnthropicCompleteChat;
using Ciandt.FlowTools.FlowPair.Flow.GenerateToken;
using Ciandt.FlowTools.FlowPair.Flow.OpenAiCompleteChat;
using Ciandt.FlowTools.FlowPair.Flow.ProxyCompleteChat;
using Jab;

namespace Ciandt.FlowTools.FlowPair.DependencyInjection;

[ServiceProviderModule]
[Singleton(typeof(FlowHttpClient))]
[Singleton(typeof(IFlowAuthService), typeof(FlowAuthService))]
[Singleton(typeof(IProxyClient), typeof(ProxyClient))]
[Singleton(typeof(IOpenAiClient), typeof(OpenAiClient))]
[Singleton(typeof(IAnthropicClient), typeof(AnthropicClient))]
public interface IFlowModule;
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System.Collections.Immutable;
using AutomaticInterface;
using Ciandt.FlowTools.FlowReviewer.Common;
using Ciandt.FlowTools.FlowReviewer.Flow.AnthropicCompleteChat.v1;
using Ciandt.FlowTools.FlowPair.Common;
using Ciandt.FlowTools.FlowPair.Flow.AnthropicCompleteChat.v1;

namespace Ciandt.FlowTools.FlowReviewer.Flow.AnthropicCompleteChat;
namespace Ciandt.FlowTools.FlowPair.Flow.AnthropicCompleteChat;

public partial interface IAnthropicClient;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Text.Json.Serialization;
using Raiqub.Generators.EnumUtilities;

namespace Ciandt.FlowTools.FlowReviewer.Flow.AnthropicCompleteChat.v1;
namespace Ciandt.FlowTools.FlowPair.Flow.AnthropicCompleteChat.v1;

public partial class AllowedAnthropicModelsJsonConverter : JsonConverter<AllowedAnthropicModels>;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Collections.Immutable;
using System.Text.Json.Serialization;

namespace Ciandt.FlowTools.FlowReviewer.Flow.AnthropicCompleteChat.v1;
namespace Ciandt.FlowTools.FlowPair.Flow.AnthropicCompleteChat.v1;

/// <param name="AllowedModels">The list of models to use for this request.</param>
/// <param name="Messages">The input messages.</param>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Collections.Immutable;
using System.Text.Json.Serialization;

namespace Ciandt.FlowTools.FlowReviewer.Flow.AnthropicCompleteChat.v1;
namespace Ciandt.FlowTools.FlowPair.Flow.AnthropicCompleteChat.v1;

public sealed record AnthropicChatCompletionResponse(
[property: JsonPropertyName("id")] string Id,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Text.Json.Serialization;
using Raiqub.Generators.EnumUtilities;

namespace Ciandt.FlowTools.FlowReviewer.Flow.AnthropicCompleteChat.v1;
namespace Ciandt.FlowTools.FlowPair.Flow.AnthropicCompleteChat.v1;

/// <summary>The input message.</summary>
/// <param name="Role">The role of the conversation turn.</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using FxKit.CompilerServices;
using Raiqub.Generators.EnumUtilities;

namespace Ciandt.FlowTools.FlowReviewer.Flow.AnthropicCompleteChat.v1;
namespace Ciandt.FlowTools.FlowPair.Flow.AnthropicCompleteChat.v1;

public partial class AnthropicRoleJsonConverter : JsonConverter<AnthropicRole>;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Net;

namespace Ciandt.FlowTools.FlowReviewer.Flow;
namespace Ciandt.FlowTools.FlowPair.Flow;

public sealed record FlowError(
HttpStatusCode StatusCode,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Net.Http.Headers;
using System.Net.Mime;

namespace Ciandt.FlowTools.FlowReviewer.Flow;
namespace Ciandt.FlowTools.FlowPair.Flow;

public sealed class FlowHttpClient : HttpClient
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using AutomaticInterface;
using Ciandt.FlowTools.FlowReviewer.Common;
using Ciandt.FlowTools.FlowReviewer.Flow.GenerateToken.v1;
using Ciandt.FlowTools.FlowReviewer.Persistence;
using Ciandt.FlowTools.FlowReviewer.Persistence.Models.v1;
using Ciandt.FlowTools.FlowPair.Common;
using Ciandt.FlowTools.FlowPair.Flow.GenerateToken.v1;
using Ciandt.FlowTools.FlowPair.Persistence;
using Ciandt.FlowTools.FlowPair.Persistence.Models.v1;
using Spectre.Console;

namespace Ciandt.FlowTools.FlowReviewer.Flow.GenerateToken;
namespace Ciandt.FlowTools.FlowPair.Flow.GenerateToken;

public partial interface IFlowAuthService;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Ciandt.FlowTools.FlowReviewer.Flow.GenerateToken.v1;
namespace Ciandt.FlowTools.FlowPair.Flow.GenerateToken.v1;

public sealed record GenerateTokenRequest(
string ClientId,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Text.Json.Serialization;

namespace Ciandt.FlowTools.FlowReviewer.Flow.GenerateToken.v1;
namespace Ciandt.FlowTools.FlowPair.Flow.GenerateToken.v1;

public sealed record GenerateTokenResponse(
[property: JsonPropertyName("access_token")] string AccessToken,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System.Collections.Immutable;
using AutomaticInterface;
using Ciandt.FlowTools.FlowReviewer.Common;
using Ciandt.FlowTools.FlowReviewer.Flow.OpenAiCompleteChat.v1;
using Ciandt.FlowTools.FlowPair.Common;
using Ciandt.FlowTools.FlowPair.Flow.OpenAiCompleteChat.v1;

namespace Ciandt.FlowTools.FlowReviewer.Flow.OpenAiCompleteChat;
namespace Ciandt.FlowTools.FlowPair.Flow.OpenAiCompleteChat;

public partial interface IOpenAiClient;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Text.Json.Serialization;
using Raiqub.Generators.EnumUtilities;

namespace Ciandt.FlowTools.FlowReviewer.Flow.OpenAiCompleteChat.v1;
namespace Ciandt.FlowTools.FlowPair.Flow.OpenAiCompleteChat.v1;

public partial class AllowedOpenAiModelsJsonConverter : JsonConverter<AllowedOpenAiModels>;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Collections.Immutable;
using System.Text.Json.Serialization;

namespace Ciandt.FlowTools.FlowReviewer.Flow.OpenAiCompleteChat.v1;
namespace Ciandt.FlowTools.FlowPair.Flow.OpenAiCompleteChat.v1;

/// <param name="AllowedModels">The list of models to use for this request.</param>
/// <param name="Messages">A list of messages comprising the conversation so far.</param>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Text.Json.Serialization;

namespace Ciandt.FlowTools.FlowReviewer.Flow.OpenAiCompleteChat.v1;
namespace Ciandt.FlowTools.FlowPair.Flow.OpenAiCompleteChat.v1;

public sealed record OpenAiChatCompletionResponse(
[property: JsonPropertyName("id")] string Id,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Text.Json.Serialization;

namespace Ciandt.FlowTools.FlowReviewer.Flow.OpenAiCompleteChat.v1;
namespace Ciandt.FlowTools.FlowPair.Flow.OpenAiCompleteChat.v1;

public sealed record OpenAiMessage(
[property: JsonPropertyName("role")] OpenAiRole Role,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using FxKit.CompilerServices;
using Raiqub.Generators.EnumUtilities;

namespace Ciandt.FlowTools.FlowReviewer.Flow.OpenAiCompleteChat.v1;
namespace Ciandt.FlowTools.FlowPair.Flow.OpenAiCompleteChat.v1;

public partial class OpenAiRoleJsonConverter : JsonConverter<OpenAiRole>;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System.Collections.Immutable;
using Ciandt.FlowTools.FlowReviewer.Common;
using Ciandt.FlowTools.FlowReviewer.Flow.AnthropicCompleteChat.v1;
using Ciandt.FlowTools.FlowReviewer.Flow.ProxyCompleteChat.v1;
using Ciandt.FlowTools.FlowPair.Common;
using Ciandt.FlowTools.FlowPair.Flow.AnthropicCompleteChat.v1;
using Ciandt.FlowTools.FlowPair.Flow.ProxyCompleteChat.v1;

namespace Ciandt.FlowTools.FlowReviewer.Flow.ProxyCompleteChat;
namespace Ciandt.FlowTools.FlowPair.Flow.ProxyCompleteChat;

public static class AnthropicMapper
{
Expand Down
Loading

0 comments on commit 3b9b626

Please sign in to comment.