Skip to content

Commit

Permalink
chore: Refactor namespace (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
skarllot authored Jan 7, 2025
1 parent a239a74 commit e5672b7
Show file tree
Hide file tree
Showing 107 changed files with 308 additions and 308 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<RootNamespace>Ciandt.FlowTools.$(MSBuildProjectName)</RootNamespace>
<RootNamespace>Raiqub.LlmTools.$(MSBuildProjectName)</RootNamespace>
<AssemblyName>$(RootNamespace)</AssemblyName>
<SolutionDir Condition="'$(SolutionDir)' == ''">$(MSBuildThisFileDirectory)</SolutionDir>
<PackageOutputPath>$(SolutionDir)artifacts</PackageOutputPath>
Expand Down
2 changes: 1 addition & 1 deletion flow-pair.sln.DotSettings
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:Boolean x:Key="/Default/UserDictionary/Words/=ciandt/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
<s:Boolean x:Key="/Default/UserDictionary/Words/=raiqub/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
6 changes: 3 additions & 3 deletions src/FlowPair/Agent/Infrastructure/AgentJsonContext.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System.Collections.Immutable;
using System.Text.Json.Serialization;
using Ciandt.FlowTools.FlowPair.Agent.Operations.CreateUnitTest.v1;
using Ciandt.FlowTools.FlowPair.Agent.Operations.ReviewChanges.v1;
using Raiqub.LlmTools.FlowPair.Agent.Operations.CreateUnitTest.v1;
using Raiqub.LlmTools.FlowPair.Agent.Operations.ReviewChanges.v1;

namespace Ciandt.FlowTools.FlowPair.Agent.Infrastructure;
namespace Raiqub.LlmTools.FlowPair.Agent.Infrastructure;

[JsonSourceGenerationOptions(
GenerationMode = JsonSourceGenerationMode.Default,
Expand Down
10 changes: 5 additions & 5 deletions src/FlowPair/Agent/Infrastructure/IAgentModule.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using Ciandt.FlowTools.FlowPair.Agent.Operations.CreateUnitTest;
using Ciandt.FlowTools.FlowPair.Agent.Operations.Login;
using Ciandt.FlowTools.FlowPair.Agent.Operations.ReviewChanges;
using Ciandt.FlowTools.FlowPair.Agent.Services;
using Jab;
using Raiqub.LlmTools.FlowPair.Agent.Operations.CreateUnitTest;
using Raiqub.LlmTools.FlowPair.Agent.Operations.Login;
using Raiqub.LlmTools.FlowPair.Agent.Operations.ReviewChanges;
using Raiqub.LlmTools.FlowPair.Agent.Services;

namespace Ciandt.FlowTools.FlowPair.Agent.Infrastructure;
namespace Raiqub.LlmTools.FlowPair.Agent.Infrastructure;

[ServiceProviderModule]

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using Ciandt.FlowTools.FlowPair.Agent.Infrastructure;
using Ciandt.FlowTools.FlowPair.Agent.Operations.CreateUnitTest.v1;
using Ciandt.FlowTools.FlowPair.Chats.Contracts.v1;
using Ciandt.FlowTools.FlowPair.Chats.Models;
using Ciandt.FlowTools.FlowPair.Chats.Services;
using Raiqub.LlmTools.FlowPair.Agent.Infrastructure;
using Raiqub.LlmTools.FlowPair.Agent.Operations.CreateUnitTest.v1;
using Raiqub.LlmTools.FlowPair.Chats.Contracts.v1;
using Raiqub.LlmTools.FlowPair.Chats.Models;
using Raiqub.LlmTools.FlowPair.Chats.Services;

namespace Ciandt.FlowTools.FlowPair.Agent.Operations.CreateUnitTest;
namespace Raiqub.LlmTools.FlowPair.Agent.Operations.CreateUnitTest;

public interface ICreateUnitTestChatDefinition : IChatDefinition<CreateUnitTestResponse>;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
using System.IO.Abstractions;
using System.Text;
using Ciandt.FlowTools.FlowPair.Agent.Operations.CreateUnitTest.v1;
using Ciandt.FlowTools.FlowPair.Agent.Operations.Login;
using Ciandt.FlowTools.FlowPair.Agent.Services;
using Ciandt.FlowTools.FlowPair.Chats.Models;
using Ciandt.FlowTools.FlowPair.Chats.Services;
using Ciandt.FlowTools.FlowPair.Common;
using Ciandt.FlowTools.FlowPair.LocalFileSystem.Services;
using ConsoleAppFramework;
using Raiqub.LlmTools.FlowPair.Agent.Operations.CreateUnitTest.v1;
using Raiqub.LlmTools.FlowPair.Agent.Operations.Login;
using Raiqub.LlmTools.FlowPair.Agent.Services;
using Raiqub.LlmTools.FlowPair.Chats.Models;
using Raiqub.LlmTools.FlowPair.Chats.Services;
using Raiqub.LlmTools.FlowPair.Common;
using Raiqub.LlmTools.FlowPair.LocalFileSystem.Services;
using Spectre.Console;

namespace Ciandt.FlowTools.FlowPair.Agent.Operations.CreateUnitTest;
namespace Raiqub.LlmTools.FlowPair.Agent.Operations.CreateUnitTest;

public sealed class CreateUnitTestCommand(
IAnsiConsole console,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Ciandt.FlowTools.FlowPair.Agent.Operations.CreateUnitTest.v1;
namespace Raiqub.LlmTools.FlowPair.Agent.Operations.CreateUnitTest.v1;

public sealed record CreateUnitTestResponse(
string FilePath,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Ciandt.FlowTools.FlowPair.Agent.Operations.CreateUnitTest.v1;
namespace Raiqub.LlmTools.FlowPair.Agent.Operations.CreateUnitTest.v1;

public sealed record FilePathResponse(
string FilePath)
Expand Down
4 changes: 2 additions & 2 deletions src/FlowPair/Agent/Operations/Login/LoginCommand.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Ciandt.FlowTools.FlowPair.Common;
using ConsoleAppFramework;
using Raiqub.LlmTools.FlowPair.Common;

namespace Ciandt.FlowTools.FlowPair.Agent.Operations.Login;
namespace Raiqub.LlmTools.FlowPair.Agent.Operations.Login;

public class LoginCommand(
ILoginUseCase loginUseCase)
Expand Down
20 changes: 10 additions & 10 deletions src/FlowPair/Agent/Operations/Login/LoginUseCase.cs
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
using AutomaticInterface;
using Ciandt.FlowTools.FlowPair.Common;
using Ciandt.FlowTools.FlowPair.Flow.Contracts;
using Ciandt.FlowTools.FlowPair.Flow.Infrastructure;
using Ciandt.FlowTools.FlowPair.Flow.Operations.GenerateToken;
using Ciandt.FlowTools.FlowPair.Settings.Contracts.v1;
using Ciandt.FlowTools.FlowPair.Settings.Services;
using Ciandt.FlowTools.FlowPair.Support.Persistence;
using Ciandt.FlowTools.FlowPair.UserSessions.Contracts.v1;
using Ciandt.FlowTools.FlowPair.UserSessions.Services;
using Raiqub.LlmTools.FlowPair.Common;
using Raiqub.LlmTools.FlowPair.Flow.Contracts;
using Raiqub.LlmTools.FlowPair.Flow.Infrastructure;
using Raiqub.LlmTools.FlowPair.Flow.Operations.GenerateToken;
using Raiqub.LlmTools.FlowPair.Settings.Contracts.v1;
using Raiqub.LlmTools.FlowPair.Settings.Services;
using Raiqub.LlmTools.FlowPair.Support.Persistence;
using Raiqub.LlmTools.FlowPair.UserSessions.Contracts.v1;
using Raiqub.LlmTools.FlowPair.UserSessions.Services;
using Spectre.Console;

namespace Ciandt.FlowTools.FlowPair.Agent.Operations.Login;
namespace Raiqub.LlmTools.FlowPair.Agent.Operations.Login;

public partial interface ILoginUseCase;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
// the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
namespace Ciandt.FlowTools.FlowPair.Agent.Operations.ReviewChanges
namespace Raiqub.LlmTools.FlowPair.Agent.Operations.ReviewChanges
{
using System.Collections.Immutable;
using System.Text;
using Ciandt.FlowTools.FlowPair.Common;
using Common;
using Raiqub.Generators.T4CodeWriter;
using Ciandt.FlowTools.FlowPair.Agent.Operations.ReviewChanges.v1;
using v1;
using System;

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
using System.Collections.Immutable;
using Ciandt.FlowTools.FlowPair.Agent.Operations.Login;
using Ciandt.FlowTools.FlowPair.Agent.Operations.ReviewChanges.v1;
using Ciandt.FlowTools.FlowPair.Chats.Models;
using Ciandt.FlowTools.FlowPair.Chats.Services;
using Ciandt.FlowTools.FlowPair.Common;
using Ciandt.FlowTools.FlowPair.Git.GetChanges;
using Ciandt.FlowTools.FlowPair.LocalFileSystem.Services;
using Ciandt.FlowTools.FlowPair.Support.Presentation;
using ConsoleAppFramework;
using Raiqub.LlmTools.FlowPair.Agent.Operations.Login;
using Raiqub.LlmTools.FlowPair.Agent.Operations.ReviewChanges.v1;
using Raiqub.LlmTools.FlowPair.Chats.Models;
using Raiqub.LlmTools.FlowPair.Chats.Services;
using Raiqub.LlmTools.FlowPair.Common;
using Raiqub.LlmTools.FlowPair.Git.GetChanges;
using Raiqub.LlmTools.FlowPair.LocalFileSystem.Services;
using Raiqub.LlmTools.FlowPair.Support.Presentation;
using Spectre.Console;

namespace Ciandt.FlowTools.FlowPair.Agent.Operations.ReviewChanges;
namespace Raiqub.LlmTools.FlowPair.Agent.Operations.ReviewChanges;

public sealed class ReviewChangesCommand(
IAnsiConsole console,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using System.Collections.Immutable;
using Ciandt.FlowTools.FlowPair.Agent.Infrastructure;
using Ciandt.FlowTools.FlowPair.Agent.Operations.ReviewChanges.v1;
using Ciandt.FlowTools.FlowPair.Chats.Contracts.v1;
using Ciandt.FlowTools.FlowPair.Chats.Models;
using Ciandt.FlowTools.FlowPair.Chats.Services;
using Raiqub.LlmTools.FlowPair.Agent.Infrastructure;
using Raiqub.LlmTools.FlowPair.Agent.Operations.ReviewChanges.v1;
using Raiqub.LlmTools.FlowPair.Chats.Contracts.v1;
using Raiqub.LlmTools.FlowPair.Chats.Models;
using Raiqub.LlmTools.FlowPair.Chats.Services;

namespace Ciandt.FlowTools.FlowPair.Agent.Operations.ReviewChanges;
namespace Raiqub.LlmTools.FlowPair.Agent.Operations.ReviewChanges;

public interface IReviewChatDefinition : IChatDefinition<ImmutableList<ReviewerFeedbackResponse>>;

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

namespace Ciandt.FlowTools.FlowPair.Agent.Operations.ReviewChanges.v1;
namespace Raiqub.LlmTools.FlowPair.Agent.Operations.ReviewChanges.v1;

public sealed record ReviewerFeedbackResponse(
int RiskScore,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System.IO.Abstractions;
using AutomaticInterface;
using Ciandt.FlowTools.FlowPair.Chats.Models;
using Ciandt.FlowTools.FlowPair.LocalFileSystem.GetDirectoryStructure;
using Raiqub.LlmTools.FlowPair.Chats.Models;
using Raiqub.LlmTools.FlowPair.LocalFileSystem.GetDirectoryStructure;

namespace Ciandt.FlowTools.FlowPair.Agent.Services;
namespace Raiqub.LlmTools.FlowPair.Agent.Services;

public partial interface IDirectoryStructureMessageFactory;

Expand Down
2 changes: 1 addition & 1 deletion src/FlowPair/Agent/Services/FileNaming.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Collections.Immutable;

namespace Ciandt.FlowTools.FlowPair.Agent.Services;
namespace Raiqub.LlmTools.FlowPair.Agent.Services;

public static class FileNaming
{
Expand Down
8 changes: 4 additions & 4 deletions src/FlowPair/Agent/Services/ProjectFilesMessageFactory.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using System.IO.Abstractions;
using System.Text;
using AutomaticInterface;
using Ciandt.FlowTools.FlowPair.Chats.Models;
using Ciandt.FlowTools.FlowPair.Common;
using Ciandt.FlowTools.FlowPair.LocalFileSystem.Services;
using Raiqub.LlmTools.FlowPair.Chats.Models;
using Raiqub.LlmTools.FlowPair.Common;
using Raiqub.LlmTools.FlowPair.LocalFileSystem.Services;

namespace Ciandt.FlowTools.FlowPair.Agent.Services;
namespace Raiqub.LlmTools.FlowPair.Agent.Services;

public partial interface IProjectFilesMessageFactory;

Expand Down
6 changes: 3 additions & 3 deletions src/FlowPair/Chats/Contracts/v1/IChatDefinition.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Ciandt.FlowTools.FlowPair.Chats.Models;
using Ciandt.FlowTools.FlowPair.Chats.Services;
using Raiqub.LlmTools.FlowPair.Chats.Models;
using Raiqub.LlmTools.FlowPair.Chats.Services;

namespace Ciandt.FlowTools.FlowPair.Chats.Contracts.v1;
namespace Raiqub.LlmTools.FlowPair.Chats.Contracts.v1;

public interface IChatDefinition<TResult> : IMessageParser
where TResult : notnull
Expand Down
4 changes: 2 additions & 2 deletions src/FlowPair/Chats/Infrastructure/ChatJsonContext.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System.Collections.Immutable;
using System.Text.Json.Serialization;
using Ciandt.FlowTools.FlowPair.Chats.Models;
using Raiqub.LlmTools.FlowPair.Chats.Models;

namespace Ciandt.FlowTools.FlowPair.Chats.Infrastructure;
namespace Raiqub.LlmTools.FlowPair.Chats.Infrastructure;

[JsonSourceGenerationOptions(
GenerationMode = JsonSourceGenerationMode.Default,
Expand Down
4 changes: 2 additions & 2 deletions src/FlowPair/Chats/Infrastructure/IChatModule.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Ciandt.FlowTools.FlowPair.Chats.Services;
using Jab;
using Raiqub.LlmTools.FlowPair.Chats.Services;

namespace Ciandt.FlowTools.FlowPair.Chats.Infrastructure;
namespace Raiqub.LlmTools.FlowPair.Chats.Infrastructure;

[ServiceProviderModule]

Expand Down
2 changes: 1 addition & 1 deletion src/FlowPair/Chats/Models/ChatScript.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Collections.Immutable;

namespace Ciandt.FlowTools.FlowPair.Chats.Models;
namespace Raiqub.LlmTools.FlowPair.Chats.Models;

public sealed record ChatScript(
string Name,
Expand Down
6 changes: 3 additions & 3 deletions src/FlowPair/Chats/Models/ChatThread.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System.Collections.Immutable;
using Ciandt.FlowTools.FlowPair.Chats.Services;
using Ciandt.FlowTools.FlowPair.Flow.Operations.ProxyCompleteChat;
using Raiqub.LlmTools.FlowPair.Chats.Services;
using Raiqub.LlmTools.FlowPair.Flow.Operations.ProxyCompleteChat;
using Spectre.Console;

namespace Ciandt.FlowTools.FlowPair.Chats.Models;
namespace Raiqub.LlmTools.FlowPair.Chats.Models;

public sealed record ChatThread(
ProgressTask Progress,
Expand Down
4 changes: 2 additions & 2 deletions src/FlowPair/Chats/Models/ChatWorkspace.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Collections.Immutable;
using Ciandt.FlowTools.FlowPair.Flow.Operations.ProxyCompleteChat;
using Raiqub.LlmTools.FlowPair.Flow.Operations.ProxyCompleteChat;

namespace Ciandt.FlowTools.FlowPair.Chats.Models;
namespace Raiqub.LlmTools.FlowPair.Chats.Models;

public sealed record ChatWorkspace(
ImmutableList<ChatThread> ChatThreads)
Expand Down
2 changes: 1 addition & 1 deletion src/FlowPair/Chats/Models/CodeSnippet.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Ciandt.FlowTools.FlowPair.Chats.Models;
namespace Raiqub.LlmTools.FlowPair.Chats.Models;

public sealed record CodeSnippet(
string Content,
Expand Down
2 changes: 1 addition & 1 deletion src/FlowPair/Chats/Models/Instruction.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Collections.Immutable;
using FxKit.CompilerServices;

namespace Ciandt.FlowTools.FlowPair.Chats.Models;
namespace Raiqub.LlmTools.FlowPair.Chats.Models;

[Union]
public partial record Instruction
Expand Down
2 changes: 1 addition & 1 deletion src/FlowPair/Chats/Models/LlmModelType.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.ComponentModel.DataAnnotations;
using FxKit.CompilerServices;

namespace Ciandt.FlowTools.FlowPair.Chats.Models;
namespace Raiqub.LlmTools.FlowPair.Chats.Models;

[EnumMatch]
public enum LlmModelType
Expand Down
2 changes: 1 addition & 1 deletion src/FlowPair/Chats/Models/Message.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Text.Json.Serialization;

namespace Ciandt.FlowTools.FlowPair.Chats.Models;
namespace Raiqub.LlmTools.FlowPair.Chats.Models;

/// <param name="Role">The role of the messages author.</param>
/// <param name="Content">The contents of the message. content is required for all messages except assistant messages with function calls.</param>
Expand Down
2 changes: 1 addition & 1 deletion src/FlowPair/Chats/Models/SenderRole.cs
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.FlowPair.Chats.Models;
namespace Raiqub.LlmTools.FlowPair.Chats.Models;

public partial class SenderRoleJsonConverter : JsonConverter<SenderRole>;

Expand Down
12 changes: 6 additions & 6 deletions src/FlowPair/Chats/Services/ChatService.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
using System.Collections.Immutable;
using AutomaticInterface;
using Ciandt.FlowTools.FlowPair.Chats.Contracts.v1;
using Ciandt.FlowTools.FlowPair.Chats.Infrastructure;
using Ciandt.FlowTools.FlowPair.Chats.Models;
using Ciandt.FlowTools.FlowPair.Flow.Operations.ProxyCompleteChat;
using Ciandt.FlowTools.FlowPair.LocalFileSystem.Services;
using Raiqub.LlmTools.FlowPair.Chats.Contracts.v1;
using Raiqub.LlmTools.FlowPair.Chats.Infrastructure;
using Raiqub.LlmTools.FlowPair.Chats.Models;
using Raiqub.LlmTools.FlowPair.Flow.Operations.ProxyCompleteChat;
using Raiqub.LlmTools.FlowPair.LocalFileSystem.Services;
using Spectre.Console;

namespace Ciandt.FlowTools.FlowPair.Chats.Services;
namespace Raiqub.LlmTools.FlowPair.Chats.Services;

public partial interface IChatService;

Expand Down
2 changes: 1 addition & 1 deletion src/FlowPair/Chats/Services/IMessageParser.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Ciandt.FlowTools.FlowPair.Chats.Services;
namespace Raiqub.LlmTools.FlowPair.Chats.Services;

public interface IMessageParser
{
Expand Down
2 changes: 1 addition & 1 deletion src/FlowPair/Chats/Services/JsonContentDeserializer.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Text.Json;
using System.Text.Json.Serialization.Metadata;

namespace Ciandt.FlowTools.FlowPair.Chats.Services;
namespace Raiqub.LlmTools.FlowPair.Chats.Services;

public static class JsonContentDeserializer
{
Expand Down
6 changes: 3 additions & 3 deletions src/FlowPair/Chats/Services/MarkdownCodeExtractor.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using System.Collections.Immutable;
using System.Text.RegularExpressions;
using Ciandt.FlowTools.FlowPair.Chats.Models;
using Ciandt.FlowTools.FlowPair.Common;
using FxKit.Parsers;
using Raiqub.LlmTools.FlowPair.Chats.Models;
using Raiqub.LlmTools.FlowPair.Common;

namespace Ciandt.FlowTools.FlowPair.Chats.Services;
namespace Raiqub.LlmTools.FlowPair.Chats.Services;

public static partial class MarkdownCodeExtractor
{
Expand Down
Loading

0 comments on commit e5672b7

Please sign in to comment.