refactor: rename sidecar host to Aryx

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
David Kaya
2026-03-26 00:14:12 +01:00
co-authored by Copilot
parent 4e3c74497f
commit 1edd3aed55
48 changed files with 104 additions and 104 deletions
+3 -3
View File
@@ -13,10 +13,10 @@
"lsp:typescript": "typescript-language-server --stdio",
"typecheck": "tsc --noEmit -p tsconfig.json",
"test": "bun run typecheck && bun test",
"sidecar:restore": "dotnet restore sidecar/Eryx.AgentHost.slnx",
"sidecar:build": "dotnet build sidecar/Eryx.AgentHost.slnx",
"sidecar:restore": "dotnet restore sidecar/Aryx.AgentHost.slnx",
"sidecar:build": "dotnet build sidecar/Aryx.AgentHost.slnx",
"sidecar:publish": "bun run scripts/publish-sidecar.ts",
"sidecar:test": "dotnet test sidecar/Eryx.AgentHost.slnx"
"sidecar:test": "dotnet test sidecar/Aryx.AgentHost.slnx"
},
"repository": {
"type": "git",
+2 -2
View File
@@ -36,8 +36,8 @@ const sidecarProjectPath = join(
repositoryRoot,
'sidecar',
'src',
'Eryx.AgentHost',
'Eryx.AgentHost.csproj',
'Aryx.AgentHost',
'Aryx.AgentHost.csproj',
);
const outputDirectory = join(repositoryRoot, 'dist-sidecar', releaseTarget.dotnetRuntime);
+3 -3
View File
@@ -43,7 +43,7 @@ export function resolveReleaseTarget(
dotnetRuntime: `win-${supportedArch}`,
outputDirectoryName: archiveBaseName,
archiveBaseName,
sidecarExecutableName: 'Eryx.AgentHost.exe',
sidecarExecutableName: 'Aryx.AgentHost.exe',
packagedExecutableName: `${productName}.exe`,
};
}
@@ -58,7 +58,7 @@ export function resolveReleaseTarget(
dotnetRuntime: `osx-${supportedArch}`,
outputDirectoryName: archiveBaseName,
archiveBaseName,
sidecarExecutableName: 'Eryx.AgentHost',
sidecarExecutableName: 'Aryx.AgentHost',
appBundleName: `${productName}.app`,
};
}
@@ -73,7 +73,7 @@ export function resolveReleaseTarget(
dotnetRuntime: `linux-${supportedArch}`,
outputDirectoryName: archiveBaseName,
archiveBaseName,
sidecarExecutableName: 'Eryx.AgentHost',
sidecarExecutableName: 'Aryx.AgentHost',
packagedExecutableName: productName,
};
}
+8
View File
@@ -0,0 +1,8 @@
<Solution>
<Folder Name="/src/">
<Project Path="src/Aryx.AgentHost/Aryx.AgentHost.csproj" />
</Folder>
<Folder Name="/tests/">
<Project Path="tests/Aryx.AgentHost.Tests/Aryx.AgentHost.Tests.csproj" />
</Folder>
</Solution>
-8
View File
@@ -1,8 +0,0 @@
<Solution>
<Folder Name="/src/">
<Project Path="src/Eryx.AgentHost/Eryx.AgentHost.csproj" />
</Folder>
<Folder Name="/tests/">
<Project Path="tests/Eryx.AgentHost.Tests/Eryx.AgentHost.Tests.csproj" />
</Folder>
</Solution>
@@ -0,0 +1,3 @@
using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo("Aryx.AgentHost.Tests")]
@@ -1,6 +1,6 @@
using System.Text.Json.Serialization;
namespace Eryx.AgentHost.Contracts;
namespace Aryx.AgentHost.Contracts;
public sealed class PatternAgentDefinitionDto
{
@@ -1,8 +1,8 @@
using Eryx.AgentHost.Services;
using Aryx.AgentHost.Services;
if (!args.Contains("--stdio", StringComparer.Ordinal))
{
Console.Error.WriteLine("Eryx.AgentHost expects the --stdio flag.");
Console.Error.WriteLine("Aryx.AgentHost expects the --stdio flag.");
return;
}
@@ -1,7 +1,7 @@
using System.Text;
using Eryx.AgentHost.Contracts;
using Aryx.AgentHost.Contracts;
namespace Eryx.AgentHost.Services;
namespace Aryx.AgentHost.Services;
internal readonly record struct AgentIdentity(string AgentId, string AgentName);
@@ -1,6 +1,6 @@
using Eryx.AgentHost.Contracts;
using Aryx.AgentHost.Contracts;
namespace Eryx.AgentHost.Services;
namespace Aryx.AgentHost.Services;
internal static class AgentInstructionComposer
{
@@ -1,12 +1,12 @@
using GitHub.Copilot.SDK;
using Eryx.AgentHost.Contracts;
using Aryx.AgentHost.Contracts;
using Microsoft.Agents.AI;
using Microsoft.Agents.AI.GitHub.Copilot;
using Microsoft.Agents.AI.Workflows;
using Microsoft.Agents.AI.Workflows.Specialized;
using Microsoft.Extensions.AI;
namespace Eryx.AgentHost.Services;
namespace Aryx.AgentHost.Services;
internal sealed class CopilotAgentBundle : IAsyncDisposable
{
@@ -1,8 +1,8 @@
using System.Collections.Concurrent;
using GitHub.Copilot.SDK;
using Eryx.AgentHost.Contracts;
using Aryx.AgentHost.Contracts;
namespace Eryx.AgentHost.Services;
namespace Aryx.AgentHost.Services;
internal sealed class CopilotApprovalCoordinator
{
@@ -1,7 +1,7 @@
using System.Collections;
using GitHub.Copilot.SDK;
namespace Eryx.AgentHost.Services;
namespace Aryx.AgentHost.Services;
internal static class CopilotCliPathResolver
{
@@ -2,9 +2,9 @@ using System.Diagnostics;
using System.Text;
using System.Text.RegularExpressions;
using GitHub.Copilot.SDK;
using Eryx.AgentHost.Contracts;
using Aryx.AgentHost.Contracts;
namespace Eryx.AgentHost.Services;
namespace Aryx.AgentHost.Services;
internal static partial class CopilotConnectionMetadataResolver
{
@@ -1,9 +1,9 @@
using System.Collections.Concurrent;
using Eryx.AgentHost.Contracts;
using Aryx.AgentHost.Contracts;
using GitHub.Copilot.SDK;
using Microsoft.Extensions.AI;
namespace Eryx.AgentHost.Services;
namespace Aryx.AgentHost.Services;
internal sealed class CopilotTurnExecutionState
{
@@ -1,8 +1,8 @@
using Eryx.AgentHost.Contracts;
using Aryx.AgentHost.Contracts;
using Microsoft.Agents.AI.Workflows;
using Microsoft.Extensions.AI;
namespace Eryx.AgentHost.Services;
namespace Aryx.AgentHost.Services;
public sealed class CopilotWorkflowRunner : ITurnWorkflowRunner
{
@@ -1,6 +1,6 @@
using Eryx.AgentHost.Contracts;
using Aryx.AgentHost.Contracts;
namespace Eryx.AgentHost.Services;
namespace Aryx.AgentHost.Services;
internal static class HandoffWorkflowGuidance
{
@@ -1,6 +1,6 @@
using Eryx.AgentHost.Contracts;
using Aryx.AgentHost.Contracts;
namespace Eryx.AgentHost.Services;
namespace Aryx.AgentHost.Services;
public interface ITurnWorkflowRunner
{
@@ -5,10 +5,10 @@ using System.Text;
using System.Text.Json;
using System.Text.Json.Serialization;
using System.Text.Json.Serialization.Metadata;
using Eryx.AgentHost.Contracts;
using Aryx.AgentHost.Contracts;
using Microsoft.Extensions.AI;
namespace Eryx.AgentHost.Services;
namespace Aryx.AgentHost.Services;
internal sealed class LspToolSession : IAsyncDisposable
{
@@ -1,6 +1,6 @@
using Eryx.AgentHost.Contracts;
using Aryx.AgentHost.Contracts;
namespace Eryx.AgentHost.Services;
namespace Aryx.AgentHost.Services;
internal sealed record PatternHandoffRoute(string SourceAgentId, string TargetAgentId);
@@ -1,6 +1,6 @@
using Eryx.AgentHost.Contracts;
using Aryx.AgentHost.Contracts;
namespace Eryx.AgentHost.Services;
namespace Aryx.AgentHost.Services;
public sealed class PatternValidator
{
@@ -1,8 +1,8 @@
using GitHub.Copilot.SDK;
using Eryx.AgentHost.Contracts;
using Aryx.AgentHost.Contracts;
using Microsoft.Extensions.AI;
namespace Eryx.AgentHost.Services;
namespace Aryx.AgentHost.Services;
internal sealed class SessionToolingBundle : IAsyncDisposable
{
@@ -3,9 +3,9 @@ using System.Text.Json;
using System.Text.Json.Serialization;
using GitHub.Copilot.SDK;
using GitHub.Copilot.SDK.Rpc;
using Eryx.AgentHost.Contracts;
using Aryx.AgentHost.Contracts;
namespace Eryx.AgentHost.Services;
namespace Aryx.AgentHost.Services;
public sealed class SidecarProtocolHost
{
@@ -1,6 +1,6 @@
using System.Text.RegularExpressions;
namespace Eryx.AgentHost.Services;
namespace Aryx.AgentHost.Services;
internal static partial class StreamingTextMerger
{
@@ -1,10 +1,10 @@
using System.Collections.Concurrent;
using System.Text.Json;
using Eryx.AgentHost.Contracts;
using Aryx.AgentHost.Contracts;
using Microsoft.Agents.AI.Workflows;
using Microsoft.Extensions.AI;
namespace Eryx.AgentHost.Services;
namespace Aryx.AgentHost.Services;
internal static class WorkflowRequestInfoInterpreter
{
@@ -1,8 +1,8 @@
using System.Text;
using Eryx.AgentHost.Contracts;
using Aryx.AgentHost.Contracts;
using Microsoft.Extensions.AI;
namespace Eryx.AgentHost.Services;
namespace Aryx.AgentHost.Services;
internal readonly record struct TranscriptSegment(string MessageId, string AuthorName, string Content)
{
@@ -1,3 +0,0 @@
using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo("Eryx.AgentHost.Tests")]
@@ -1,7 +1,7 @@
using Eryx.AgentHost.Contracts;
using Eryx.AgentHost.Services;
using Aryx.AgentHost.Contracts;
using Aryx.AgentHost.Services;
namespace Eryx.AgentHost.Tests;
namespace Aryx.AgentHost.Tests;
public sealed class AgentIdentityResolverTests
{
@@ -1,7 +1,7 @@
using Eryx.AgentHost.Contracts;
using Eryx.AgentHost.Services;
using Aryx.AgentHost.Contracts;
using Aryx.AgentHost.Services;
namespace Eryx.AgentHost.Tests;
namespace Aryx.AgentHost.Tests;
public sealed class AgentInstructionComposerTests
{
@@ -19,7 +19,7 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\Eryx.AgentHost\Eryx.AgentHost.csproj" />
<ProjectReference Include="..\..\src\Aryx.AgentHost\Aryx.AgentHost.csproj" />
</ItemGroup>
</Project>
@@ -1,9 +1,9 @@
using System.Reflection;
using Eryx.AgentHost.Services;
using Aryx.AgentHost.Services;
using GitHub.Copilot.SDK;
using Microsoft.Extensions.AI;
namespace Eryx.AgentHost.Tests;
namespace Aryx.AgentHost.Tests;
public sealed class CopilotAgentBundleTests
{
@@ -1,6 +1,6 @@
using Eryx.AgentHost.Services;
using Aryx.AgentHost.Services;
namespace Eryx.AgentHost.Tests;
namespace Aryx.AgentHost.Tests;
public sealed class CopilotCliPathResolverTests
{
@@ -1,7 +1,7 @@
using Eryx.AgentHost.Contracts;
using Eryx.AgentHost.Services;
using Aryx.AgentHost.Contracts;
using Aryx.AgentHost.Services;
namespace Eryx.AgentHost.Tests;
namespace Aryx.AgentHost.Tests;
public sealed class CopilotConnectionMetadataResolverTests
{
@@ -1,9 +1,9 @@
using Eryx.AgentHost.Contracts;
using Eryx.AgentHost.Services;
using Aryx.AgentHost.Contracts;
using Aryx.AgentHost.Services;
using GitHub.Copilot.SDK;
using Microsoft.Extensions.AI;
namespace Eryx.AgentHost.Tests;
namespace Aryx.AgentHost.Tests;
public sealed class CopilotWorkflowRunnerTests
{
@@ -1,7 +1,7 @@
using Eryx.AgentHost.Contracts;
using Eryx.AgentHost.Services;
using Aryx.AgentHost.Contracts;
using Aryx.AgentHost.Services;
namespace Eryx.AgentHost.Tests;
namespace Aryx.AgentHost.Tests;
public sealed class HandoffWorkflowGuidanceTests
{
@@ -1,8 +1,8 @@
using System.Text.Json;
using Eryx.AgentHost.Contracts;
using Eryx.AgentHost.Services;
using Aryx.AgentHost.Contracts;
using Aryx.AgentHost.Services;
namespace Eryx.AgentHost.Tests;
namespace Aryx.AgentHost.Tests;
public sealed class LspToolSessionTests
{
@@ -1,7 +1,7 @@
using Eryx.AgentHost.Contracts;
using Eryx.AgentHost.Services;
using Aryx.AgentHost.Contracts;
using Aryx.AgentHost.Services;
namespace Eryx.AgentHost.Tests;
namespace Aryx.AgentHost.Tests;
public sealed class PatternGraphResolverTests
{
@@ -1,8 +1,8 @@
using Eryx.AgentHost.Contracts;
using Eryx.AgentHost.Services;
using Aryx.AgentHost.Contracts;
using Aryx.AgentHost.Services;
using GitHub.Copilot.SDK;
namespace Eryx.AgentHost.Tests;
namespace Aryx.AgentHost.Tests;
public sealed class SessionToolingBundleTests
{
@@ -1,8 +1,8 @@
using System.Text.Json;
using Eryx.AgentHost.Contracts;
using Eryx.AgentHost.Services;
using Aryx.AgentHost.Contracts;
using Aryx.AgentHost.Services;
namespace Eryx.AgentHost.Tests;
namespace Aryx.AgentHost.Tests;
public sealed class SidecarProtocolHostTests
{
@@ -1,6 +1,6 @@
using Eryx.AgentHost.Services;
using Aryx.AgentHost.Services;
namespace Eryx.AgentHost.Tests;
namespace Aryx.AgentHost.Tests;
public sealed class StreamingTextMergerTests
{
@@ -1,7 +1,7 @@
using Eryx.AgentHost.Contracts;
using Eryx.AgentHost.Services;
using Aryx.AgentHost.Contracts;
using Aryx.AgentHost.Services;
namespace Eryx.AgentHost.Tests;
namespace Aryx.AgentHost.Tests;
public sealed class PatternValidatorTests
{
@@ -1,12 +1,12 @@
using System.Collections.Concurrent;
using System.Runtime.CompilerServices;
using Eryx.AgentHost.Contracts;
using Eryx.AgentHost.Services;
using Aryx.AgentHost.Contracts;
using Aryx.AgentHost.Services;
using Microsoft.Agents.AI;
using Microsoft.Agents.AI.Workflows;
using Microsoft.Extensions.AI;
namespace Eryx.AgentHost.Tests;
namespace Aryx.AgentHost.Tests;
public sealed class WorkflowRequestInfoInterpreterTests
{
+2 -2
View File
@@ -18,7 +18,7 @@ function getPathModule(platform: NodeJS.Platform) {
}
function getBundledSidecarExecutableName(platform: NodeJS.Platform): string {
return platform === 'win32' ? 'Eryx.AgentHost.exe' : 'Eryx.AgentHost';
return platform === 'win32' ? 'Aryx.AgentHost.exe' : 'Aryx.AgentHost';
}
export function resolveSidecarProcess(context: SidecarRuntimeContext): ResolvedSidecarProcess {
@@ -39,7 +39,7 @@ export function resolveSidecarProcess(context: SidecarRuntimeContext): ResolvedS
args: [
'run',
'--project',
pathModule.join(context.appPath, 'sidecar', 'src', 'Eryx.AgentHost', 'Eryx.AgentHost.csproj'),
pathModule.join(context.appPath, 'sidecar', 'src', 'Aryx.AgentHost', 'Aryx.AgentHost.csproj'),
'--',
'--stdio',
],
+3 -3
View File
@@ -16,7 +16,7 @@ describe('resolveSidecarProcess', () => {
args: [
'run',
'--project',
'C:\\workspace\\personal\\repositories\\eryx\\sidecar\\src\\Eryx.AgentHost\\Eryx.AgentHost.csproj',
'C:\\workspace\\personal\\repositories\\eryx\\sidecar\\src\\Aryx.AgentHost\\Aryx.AgentHost.csproj',
'--',
'--stdio',
],
@@ -33,7 +33,7 @@ describe('resolveSidecarProcess', () => {
platform: 'win32',
}),
).toEqual({
command: 'C:\\workspace\\personal\\repositories\\eryx\\release\\win-unpacked\\resources\\sidecar\\Eryx.AgentHost.exe',
command: 'C:\\workspace\\personal\\repositories\\eryx\\release\\win-unpacked\\resources\\sidecar\\Aryx.AgentHost.exe',
args: ['--stdio'],
cwd: 'C:\\workspace\\personal\\repositories\\eryx\\release\\win-unpacked\\resources\\sidecar',
});
@@ -48,7 +48,7 @@ describe('resolveSidecarProcess', () => {
platform: 'darwin',
}),
).toEqual({
command: '/Applications/Aryx.app/Contents/Resources/sidecar/Eryx.AgentHost',
command: '/Applications/Aryx.app/Contents/Resources/sidecar/Aryx.AgentHost',
args: ['--stdio'],
cwd: '/Applications/Aryx.app/Contents/Resources/sidecar',
});
+3 -3
View File
@@ -15,7 +15,7 @@ describe('resolveReleaseTarget', () => {
dotnetRuntime: 'win-x64',
outputDirectoryName: 'Aryx-windows-x64',
archiveBaseName: 'Aryx-windows-x64',
sidecarExecutableName: 'Eryx.AgentHost.exe',
sidecarExecutableName: 'Aryx.AgentHost.exe',
packagedExecutableName: 'Aryx.exe',
});
});
@@ -28,7 +28,7 @@ describe('resolveReleaseTarget', () => {
dotnetRuntime: 'osx-arm64',
outputDirectoryName: 'Aryx-macos-arm64',
archiveBaseName: 'Aryx-macos-arm64',
sidecarExecutableName: 'Eryx.AgentHost',
sidecarExecutableName: 'Aryx.AgentHost',
appBundleName: 'Aryx.app',
});
});
@@ -41,7 +41,7 @@ describe('resolveReleaseTarget', () => {
dotnetRuntime: 'linux-x64',
outputDirectoryName: 'Aryx-linux-x64',
archiveBaseName: 'Aryx-linux-x64',
sidecarExecutableName: 'Eryx.AgentHost',
sidecarExecutableName: 'Aryx.AgentHost',
packagedExecutableName: 'Aryx',
});
});