()
| 152 | log('info', `[Daemon] Socket: ${socketPath}`); |
| 153 | |
| 154 | const runStartupLifecycleSweep = async (): Promise<void> => { |
| 155 | try { |
| 156 | const lifecycle = await runWorkspaceFilesystemLifecycleSweep({ |
| 157 | workspaceKey, |
| 158 | trigger: 'startup', |
| 159 | }); |
| 160 | if (lifecycle.stopped > 0 || lifecycle.deleted > 0 || lifecycle.errors.length > 0) { |
| 161 | log( |
| 162 | lifecycle.errors.length > 0 ? 'warn' : 'info', |
| 163 | `[Daemon] Filesystem lifecycle: ${JSON.stringify(lifecycle)}`, |
| 164 | ); |
| 165 | } |
| 166 | } catch (error) { |
| 167 | log( |
| 168 | 'warn', |
| 169 | `[Daemon] Filesystem lifecycle failed: ${error instanceof Error ? error.message : String(error)}`, |
| 170 | ); |
| 171 | } |
| 172 | }; |
| 173 | |
| 174 | if (logPath) { |
| 175 | log('info', `[Daemon] Logs: ${logPath}`); |
no test coverage detected