mirror of
https://github.com/multica-ai/multica.git
synced 2026-08-05 01:19:42 +02:00
* fix(agent): validate concurrency limits Co-authored-by: multica-agent <github@multica.ai> * fix(agent): harden concurrency duplication Co-authored-by: multica-agent <github@multica.ai> --------- Co-authored-by: Eve <eve@multica-ai.local> Co-authored-by: multica-agent <github@multica.ai>
10 lines
505 B
TypeScript
10 lines
505 B
TypeScript
// User-facing limits enforced symmetrically on the front-end (UI counter +
|
|
// disabled save) and the back-end (handler validation + DB CHECK constraint).
|
|
// Kept in core so both apps and the test suite read from one source.
|
|
export const AGENT_DESCRIPTION_MAX_LENGTH = 255;
|
|
|
|
// Valid range for the per-agent scheduler cap. Kept here so creation,
|
|
// duplication, and settings editing cannot silently drift.
|
|
export const AGENT_MAX_CONCURRENT_TASKS_MIN = 1;
|
|
export const AGENT_MAX_CONCURRENT_TASKS_MAX = 50;
|