- Add comprehensive TUI interface with React Ink components - Implement session management, model selection, and command dialogs - Add theme system with customizable colors and styling - Integrate with existing opencode server and SDK - Add todo management and file browsing capabilities - Include proper TypeScript support and error handling
11 lines
246 B
TypeScript
11 lines
246 B
TypeScript
export namespace Locale {
|
|
export function titlecase(str: string) {
|
|
return str.replace(/\b\w/g, (c) => c.toUpperCase())
|
|
}
|
|
|
|
export function time(input: number) {
|
|
const date = new Date(input)
|
|
return date.toLocaleTimeString()
|
|
}
|
|
}
|