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.
Python agentagent-osaiai-agentsai-partnerchatopsclaudeclaude-codecodexdevtoolsdiscord-botlark-botllmlocal-firstlong-term-memoryopencodeslack-botvibe-codingvibeywechat
import { describe, expect, it } from 'vitest';
import { optionalTrimmedTextWithin, unicodeCodePointLength } from './validation';
describe('contract text validation', () => {
it('counts Unicode code points rather than UTF-16 code units', () => {
expect(unicodeCodePointLength('😀')).toBe(1);
expect(optionalTrimmedTextWithin('😀'.repeat(64), 64)).toBe(true);
expect(optionalTrimmedTextWithin('😀'.repeat(65), 64)).toBe(false);
});
});