0
代码介绍
代码
Issues
Pull Requests
流水线
Actions
讨论
Wiki
项目成员
分析
项目设置
0
  1. PilotDeck
  2. /
  3. src
  4. /
  5. context
  6. /
  7. budget
MMingwwwwfeat: improve attachment and tool result handling
f3ef187e创建于 15 天前历史提交
文件最后提交记录最后更新时间
TokenBudgetManager.ts
feat: improve attachment and tool result handling Co-authored-by: Cursor <cursoragent@cursor.com> 15 天前
ToolResultBudget.ts
feat: improve attachment and tool result handling Co-authored-by: Cursor <cursoragent@cursor.com> 15 天前
tokenizer.ts
feat(tokenizer): replace char/4 estimator with js-tiktoken o200k_base Switch token counting from the legacy char/N heuristic to the o200k_base BPE tokenizer via js-tiktoken for substantially better accuracy, especially with non-ASCII content (CJK characters, code, JSON). The old bytesPerTokenForExt and per-extension bytesPerToken logic is removed. Tests are updated to compare against countTokens() dynamically rather than hardcoded char/4 values, and legacy parity scenarios are marked as intentional_difference. Co-authored-by: Cursor <cursoragent@cursor.com> 20 天前