mirror of
https://github.com/harivansh-afk/clanker-agent.git
synced 2026-04-15 19:05:14 +00:00
- Copy all pi-mono source into apps/companion-os/ - Update Dockerfile to COPY pre-built binary instead of downloading from GitHub Releases - Update deploy-staging.yml to build pi from source (bun compile) before Docker build - Add apps/companion-os/** to path triggers - No more cross-repo dispatch needed Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
42 lines
1.4 KiB
TypeScript
42 lines
1.4 KiB
TypeScript
/**
|
|
* Default themes for TUI tests using chalk
|
|
*/
|
|
|
|
import { Chalk } from "chalk";
|
|
import type {
|
|
EditorTheme,
|
|
MarkdownTheme,
|
|
SelectListTheme,
|
|
} from "../src/index.js";
|
|
|
|
const chalk = new Chalk({ level: 3 });
|
|
|
|
export const defaultSelectListTheme: SelectListTheme = {
|
|
selectedPrefix: (text: string) => chalk.blue(text),
|
|
selectedText: (text: string) => chalk.bold(text),
|
|
description: (text: string) => chalk.dim(text),
|
|
scrollInfo: (text: string) => chalk.dim(text),
|
|
noMatch: (text: string) => chalk.dim(text),
|
|
};
|
|
|
|
export const defaultMarkdownTheme: MarkdownTheme = {
|
|
heading: (text: string) => chalk.bold.cyan(text),
|
|
link: (text: string) => chalk.blue(text),
|
|
linkUrl: (text: string) => chalk.dim(text),
|
|
code: (text: string) => chalk.yellow(text),
|
|
codeBlock: (text: string) => chalk.green(text),
|
|
codeBlockBorder: (text: string) => chalk.dim(text),
|
|
quote: (text: string) => chalk.italic(text),
|
|
quoteBorder: (text: string) => chalk.dim(text),
|
|
hr: (text: string) => chalk.dim(text),
|
|
listBullet: (text: string) => chalk.cyan(text),
|
|
bold: (text: string) => chalk.bold(text),
|
|
italic: (text: string) => chalk.italic(text),
|
|
strikethrough: (text: string) => chalk.strikethrough(text),
|
|
underline: (text: string) => chalk.underline(text),
|
|
};
|
|
|
|
export const defaultEditorTheme: EditorTheme = {
|
|
borderColor: (text: string) => chalk.dim(text),
|
|
selectList: defaultSelectListTheme,
|
|
};
|