refactor(skills): rewrite compactor to use native agent reasoning (remove external deps)#2
refactor(skills): rewrite compactor to use native agent reasoning (remove external deps)#2Yuhuan0216 merged 5 commits intomainfrom
Conversation
|
Code Review 總結 這個 PR 包含了三個主要變更,但範圍過於龐大,建議拆分。以下是詳細的 🔴 嚴重問題
在 workspace.ts:237-248 和
workspace.ts:243: entry.frontmatter?.always === "true" - 🟡 中度問題
skills-search/scripts/search.py:66:
PR 新增了 .chat-message-buttons 和 .chat-message-button CSS
grouped-render.ts:65-73: extractButtons() 沒有處理格式錯誤的情況 🟢 次要問題
PR 標題是 "refactor compactor",但實際包含:
建議: 拆分為三個獨立的 PR
沒有任何測試檔案更新
根據專案規範,應該更新 CHANGELOG.md
skills-search/SKILL.md:32: 說明使用 read tool,但這不是 shell ✅ 優點
📋 建議行動
總評: 這個 PR 的方向是正確的(移除外部依賴、動態載入),但實作上有 |
0581d60 to
46bac4c
Compare
|
🔴 新發現的嚴重問題 CSS 文件被意外破壞 ui/src/styles/components.css 從 1911 行 縮減到 31 行:
-@import "./chat.css";-/* Cards, Stats, Buttons, Forms, Tables, Agents... 1880+ lines / 建議: 需要立即恢復 components.css,只添加新的 button 🟡 中度問題 bin/compact shim 實用性不足 目前的 bash shim 只是打印提示訊息: 建議: 考慮以下選項之一:
🟢 次要問題
📋 行動建議 緊急 (必須修復)
建議修復
可選
評分:
|
…move external deps)
This PR refactors the compactor skill to use native agent reasoning, removing external dependencies. It also includes cleanups to usage stats and cron scheduling.