返回 DeepSeek-Reasonix
resourceBudgets.ts
根目录 / desktop / frontend / src / lib / resourceBudgets.ts
1 /**
2 * Resource-governance defaults shared by transcript, parser and details.
3 * User-reachable data stays behind paging; these values bound residency and
4 * concurrency, not durable retention.
5 */
6 export const RESOURCE_BUDGETS = Object.freeze({
7 historyBodyBytes: 32 << 20,
8 historyWindowPages: 3,
9 historyPageEntries: 32,
10 contentReadsGlobal: 4,
11 contentReadsPerSession: 2,
12 markdownAstElementsPerPage: 12_000,
13 markdownTableCellsPerPage: 2_000,
14 toolPreviewBytes: 16 * 1024,
15 toolPreviewBlocks: 64,
16 toolRelationsPerPage: 20,
17 });
18
18 lines TYPESCRIPT