Retain a 64 KiB diagnostic prefix while counting and draining the complete stderr stream. Report truncation and avoid manufacturing a replacement character at a truncated UTF-8 boundary. Validation: all nine doctor tests pass, including real noisy child, malformed bytes, canonical catalog and startup deadline controls. Based on #3121. Co-authored-by: 1052326311 <65798732+1052326311@users.noreply.github.com>
18 lines
565 B
TypeScript
18 lines
565 B
TypeScript
/**
|
|
* Supported MCP startup deadlines and regression budgets.
|
|
*
|
|
* The Codex timeout is caller-facing configuration. The smaller phase budgets
|
|
* preserve operational headroom, while the doctor deadline covers additional
|
|
* inventory requests after initialization.
|
|
*/
|
|
export const MCP_STARTUP_POLICY = {
|
|
codexStartupTimeoutSeconds: 30,
|
|
kimiStartupTimeoutMs: 30_000,
|
|
kimiToolTimeoutMs: 120_000,
|
|
initializeBudgetMs: 15_000,
|
|
toolsListBudgetMs: 5_000,
|
|
firstCatalogBudgetMs: 20_000,
|
|
doctorDeadlineMs: 30_000,
|
|
doctorStderrBytes: 64 * 1024,
|
|
} as const;
|