mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-09-30 12:39:42 +02:00
- Remove 3 unused exported constants (TRIM_MESSAGES_TO, MAX_TERMINAL_COLS, MAX_TERMINAL_ROWS)
- Consolidate 8 direct util imports into barrel imports (./utils/index.js)
- Extract magic number 8191 to FILE_PEEK_BYTES constant in buffer-limits.ts
- Add explanatory comments to 9 undocumented .catch(() => {}) handlers
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
16 lines
442 B
TypeScript
16 lines
442 B
TypeScript
/**
|
|
* @fileoverview Terminal dimension and input validation limits.
|
|
*
|
|
* Used by API routes to validate resize, input, and session
|
|
* creation requests. Separate from buffer-limits.ts which
|
|
* controls memory buffer sizes.
|
|
*
|
|
* @module config/terminal-limits
|
|
*/
|
|
|
|
/** Max input length per API request (bytes) */
|
|
export const MAX_INPUT_LENGTH = 64 * 1024;
|
|
|
|
/** Max session name length (chars) */
|
|
export const MAX_SESSION_NAME_LENGTH = 128;
|