mirror of
https://github.com/davidkaya/aryx.git
synced 2026-08-28 13:47:12 +02:00
refactor: rename Kopaya to Eryx
Rename the product, runtime surfaces, sidecar projects, docs, tests, and packaging outputs from Kopaya to Eryx across the repository. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -54,7 +54,7 @@ function isBuiltinPattern(patternId: string): boolean {
|
||||
return patternId.startsWith('pattern-');
|
||||
}
|
||||
|
||||
export class KopayaAppService extends EventEmitter<AppServiceEvents> {
|
||||
export class EryxAppService extends EventEmitter<AppServiceEvents> {
|
||||
private readonly workspaceRepository = new WorkspaceRepository();
|
||||
private readonly sidecar = new SidecarClient();
|
||||
private readonly secretStore = new SecretStore();
|
||||
@@ -79,7 +79,7 @@ export class KopayaAppService extends EventEmitter<AppServiceEvents> {
|
||||
if (!this.didScheduleInitialProjectGitRefresh) {
|
||||
this.didScheduleInitialProjectGitRefresh = true;
|
||||
void this.refreshProjectGitContext().catch((error) => {
|
||||
console.error('[kopaya git]', error);
|
||||
console.error('[eryx git]', error);
|
||||
});
|
||||
}
|
||||
|
||||
+3
-3
@@ -1,14 +1,14 @@
|
||||
import { app, BrowserWindow } from 'electron';
|
||||
|
||||
import { registerIpcHandlers } from '@main/ipc/registerIpcHandlers';
|
||||
import { KopayaAppService } from '@main/KopayaAppService';
|
||||
import { EryxAppService } from '@main/EryxAppService';
|
||||
import { createMainWindow } from '@main/windows/createMainWindow';
|
||||
|
||||
let mainWindow: BrowserWindow | undefined;
|
||||
let appService: KopayaAppService | undefined;
|
||||
let appService: EryxAppService | undefined;
|
||||
|
||||
async function bootstrap(): Promise<void> {
|
||||
appService = new KopayaAppService();
|
||||
appService = new EryxAppService();
|
||||
|
||||
mainWindow = createMainWindow();
|
||||
registerIpcHandlers(mainWindow, appService);
|
||||
|
||||
@@ -14,9 +14,9 @@ import type {
|
||||
} from '@shared/contracts/ipc';
|
||||
import type { QuerySessionsInput } from '@shared/domain/sessionLibrary';
|
||||
|
||||
import { KopayaAppService } from '@main/KopayaAppService';
|
||||
import { EryxAppService } from '@main/EryxAppService';
|
||||
|
||||
export function registerIpcHandlers(window: BrowserWindow, service: KopayaAppService): void {
|
||||
export function registerIpcHandlers(window: BrowserWindow, service: EryxAppService): void {
|
||||
ipcMain.handle(ipcChannels.describeSidecarCapabilities, () => service.describeSidecarCapabilities());
|
||||
ipcMain.handle(ipcChannels.refreshSidecarCapabilities, () => service.refreshSidecarCapabilities());
|
||||
ipcMain.handle(ipcChannels.loadWorkspace, () => service.loadWorkspace());
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import keytar from 'keytar';
|
||||
|
||||
const serviceName = 'kopaya';
|
||||
const serviceName = 'eryx';
|
||||
|
||||
export class SecretStore {
|
||||
async get(account: string): Promise<string | null> {
|
||||
|
||||
@@ -98,7 +98,7 @@ export class SidecarClient {
|
||||
|
||||
childProcess.stderr.setEncoding('utf8');
|
||||
childProcess.stderr.on('data', (chunk: string) => {
|
||||
console.error('[kopaya sidecar]', chunk.trim());
|
||||
console.error('[eryx sidecar]', chunk.trim());
|
||||
});
|
||||
|
||||
childProcess.on('exit', (code) => {
|
||||
|
||||
@@ -18,7 +18,7 @@ function getPathModule(platform: NodeJS.Platform) {
|
||||
}
|
||||
|
||||
function getBundledSidecarExecutableName(platform: NodeJS.Platform): string {
|
||||
return platform === 'win32' ? 'Kopaya.AgentHost.exe' : 'Kopaya.AgentHost';
|
||||
return platform === 'win32' ? 'Eryx.AgentHost.exe' : 'Eryx.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', 'Kopaya.AgentHost', 'Kopaya.AgentHost.csproj'),
|
||||
pathModule.join(context.appPath, 'sidecar', 'src', 'Eryx.AgentHost', 'Eryx.AgentHost.csproj'),
|
||||
'--',
|
||||
'--stdio',
|
||||
],
|
||||
|
||||
@@ -11,7 +11,7 @@ export function createMainWindow(): BrowserWindow {
|
||||
height: 960,
|
||||
minWidth: 1120,
|
||||
minHeight: 720,
|
||||
title: 'kopaya',
|
||||
title: 'eryx',
|
||||
icon: resolveWindowIconPath({
|
||||
appPath: app.getAppPath(),
|
||||
platform: process.platform,
|
||||
|
||||
Reference in New Issue
Block a user