refactor(codex): split app-server lifecycle seams

This commit is contained in:
Peter Steinberger
2026-04-10 23:05:11 +01:00
parent 979ae0bb53
commit 3b65e2302a
9 changed files with 318 additions and 239 deletions

View File

@@ -65,10 +65,6 @@ export async function safeValue<T>(read: () => Promise<T>): Promise<SafeValue<T>
try {
return { ok: true, value: await read() };
} catch (error) {
return { ok: false, error: describeControlFailure(formatError(error)) };
return { ok: false, error: describeControlFailure(error) };
}
}
function formatError(error: unknown): string {
return error instanceof Error ? error.message : String(error);
}