vibe-tools
Version:
CLI tools for AI agents
8 lines (7 loc) • 390 B
TypeScript
/**
* Splits a message into chunks that are within the specified character limit.
* Uses an iterative approach to find good split points at sentence boundaries,
* falling back to secondary boundaries (comma, semicolon) and spaces if needed.
* As a last resort, will force split at the character limit.
*/
export declare function chunkMessage(message: string, limit: number): string[];