Reduce output for LLMs

未關閉
#32,596 1 則留言 11 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
35/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
angular, typescript
領域
build-system, cli

研究方向

從 issue 中描述的 build 指令和 chunk 統計輸出開始;驗證 --no-progress 是否會影響它。判斷預期的介面是 LLM 環境變數還是 flag,然後確認 build 輸出會省略 chunk 統計,同時保留 build 結果。

由索引模型根據 Issue 內容生成。

描述

area: @angular/build feature feature: votes required needs: investigation
Command

build

Description

Every time Angular builds, it prints chunk stats:

Initial chunk files   | Names         |  Raw size | Estimated transfer size
chunk-R3S5GO54.js     | -             | 269.50 kB |                68.58 kB
chunk-NI535PZY.js     | -             | 183.41 kB |                55.12 kB
...

If you are using an LLM, this unnecessarily reduces available context and eats up tokens.

I couldn't find a flag to disable this output.

Describe the solution you'd like

Inspired by this post, we could support an LLM env variable that would drastically reduce the output.

Alternatively a flag to remove stats would be nice.

Describe alternatives you've considered

--no-progress, but it doesn't help.

主要語言
TypeScript
星號
27k
分支
11.8k
平均合併
16 小時 35 分鐘
30 天內合併 PR
176

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

angular/angular-cli 的其他 Issue

查看 angular/angular-cli 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。