Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

279 B
Raw Blame
/** Untrusted display text: remove controls and format characters (including bidi overrides), then bound its size. */
export function cleanText(value: unknown, max: number): string {
  return typeof value === 'string' ? value.replace(/[\p{Cc}\p{Cf}]/gu, '').slice(0, max) : ''
}