fix(daemon): Ensure TSPM runtime dir exists and improve daemon startup/debug output

This commit is contained in:
2025-08-28 16:29:41 +00:00
parent 6141b26530
commit ae4148c82f
5 changed files with 23 additions and 3 deletions

View File

@@ -34,6 +34,10 @@ export class TspmDaemon {
public async start(): Promise<void> {
console.log('Starting TSPM daemon...');
// Ensure the TSPM directory exists
const fs = await import('fs/promises');
await fs.mkdir(paths.tspmDir, { recursive: true });
// Check if another daemon is already running
if (await this.isDaemonRunning()) {
throw new Error('Another TSPM daemon instance is already running');