Fix shutdown handling, error management, and process lifecycle issues

🤖 Generated with [OpenCode](https://opencode.ai)

Co-Authored-By: OpenCode <noreply@opencode.ai>
This commit is contained in:
Dax Raad
2025-06-10 18:58:47 -04:00
parent ca3c22dc12
commit 28f5cbbfe9
7 changed files with 89 additions and 66 deletions

View File

@@ -1,4 +1,5 @@
import { VERSION } from "./version"
import { z } from "zod"
import { NamedError } from "../util/error"
export namespace UI {
const LOGO = [
@@ -7,6 +8,11 @@ export namespace UI {
`▀▀▀▀ █▀▀▀ ▀▀▀ ▀ ▀ ▀▀▀ ▀▀▀▀ ▀▀▀ ▀▀▀`,
]
export const CancelledError = NamedError.create(
"UICancelledError",
z.object({}),
)
export const Style = {
TEXT_HIGHLIGHT: "\x1b[96m",
TEXT_HIGHLIGHT_BOLD: "\x1b[96m\x1b[1m",