Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

333 B
Raw Blame
export const unicodeCodePointLength = (value: string): number => Array.from(value).length;

export const optionalTrimmedTextWithin = (value: string, maxLength: number): boolean => {
  if (value.length === 0) return true;
  const trimmed = value.trim();
  return trimmed.length > 0 && unicodeCodePointLength(trimmed) <= maxLength;
};