fix: wrap clack notes for cleaner boxes

This commit is contained in:
Peter Steinberger
2026-01-11 04:23:33 +01:00
parent 76c5bff7d6
commit 29884f8d6f
11 changed files with 105 additions and 50 deletions

View File

@@ -4,7 +4,6 @@ import {
confirm as clackConfirm,
intro as clackIntro,
multiselect as clackMultiselect,
note as clackNote,
outro as clackOutro,
select as clackSelect,
text as clackText,
@@ -26,6 +25,7 @@ import { ensureControlUiAssetsBuilt } from "../infra/control-ui-assets.js";
import { listChatProviders } from "../providers/registry.js";
import type { RuntimeEnv } from "../runtime.js";
import { defaultRuntime } from "../runtime.js";
import { note } from "../terminal/note.js";
import {
stylePromptHint,
stylePromptMessage,
@@ -90,8 +90,6 @@ const intro = (message: string) =>
clackIntro(stylePromptTitle(message) ?? message);
const outro = (message: string) =>
clackOutro(stylePromptTitle(message) ?? message);
const note = (message: string, title?: string) =>
clackNote(message, stylePromptTitle(title));
const text = (params: Parameters<typeof clackText>[0]) =>
clackText({
...params,