mirror of
https://github.com/davidkaya/aryx.git
synced 2026-07-30 00:18:40 +02:00
Give each scratchpad session its own working directory, migrate existing scratchpad sessions on workspace load, and route sidecar turns through the session-specific cwd. Add regression coverage for create, duplicate, delete, and migration flows, and document the new persistence model. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
17 lines
445 B
TypeScript
17 lines
445 B
TypeScript
import electron from 'electron';
|
|
import { join } from 'node:path';
|
|
|
|
const { app } = electron;
|
|
|
|
export function getWorkspaceFilePath(): string {
|
|
return join(app.getPath('userData'), 'workspace.json');
|
|
}
|
|
|
|
export function getScratchpadDirectoryPath(): string {
|
|
return join(app.getPath('userData'), 'scratchpad');
|
|
}
|
|
|
|
export function getScratchpadSessionPath(sessionId: string): string {
|
|
return join(getScratchpadDirectoryPath(), sessionId);
|
|
}
|