Repository navigation
feat(runtime): 增加轻量运行概览 - #183
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景\n\nNexusDock / NexusDock Cloud 的 Runtime 概览目前为了展示几个计数,需要分别读取 Tasks、Skills、Plugins、MCP 完整列表。其中 RuntimeSkills 会校验 Skill 包、计算 digest 并遍历文件,在真实设备上约需 1.7–1.9 秒。\n\n## 调整\n\n- 新增 GET /internal/runtime/overview\n- 直接返回 Task / Skill / Plugin / MCP 轻量计数\n- Skill 概览仅读取安装索引,不触发包校验、digest 或文件遍历\n- 保留完整 RuntimeSkills 等明细接口给详情页\n- 增加 Runtime API 与 Task 统计测试\n\n## 验证\n\n- make check 通过\n- Mac mini 真实数据(48 Skills)进程内实测:\n - RuntimeOverview:首次约 194ms,后续约 42–55ms\n - RuntimeSkills:约 1.65–1.93s\n - Overview Skill count 与 RuntimeSkills count 均为 48