Repository navigation
feat(skills): 统一 Dashboard 技能与独立分发构建,完善地图模板 - #565
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.
💡 问题与解决方案
Dashboard 技能需要既能完整安装,也能按场景独立分发;API 文档与公共能力应统一维护,打包时自动同步。本 PR 将技能统一为
skills/visactor-dashboard,通过pnpm build:skills生成可独立使用的轻量看板和地图看板 ZIP。visactor-dashboard,场景共用metric-analysis、server-runtime、visual-query。公共指南不得反向引用场景,两个场景不得互引,构建时检查违规依赖及缺失链接。api/,工作流说明由scripts/skill-api/统一维护。移除独立build:skill-api命令,每次构建先更新 API,再生成dist/skills/light-dashboard.zip和map-dashboard.zip;显示[1/11]至[11/11]的阶段进度。schemas.md并清理索引和指南链接;保留图表 DSL、Builder、公共类型及其他包 API,重建时自动清除旧文件。.env.example。固定路径排序与时间戳以支持可重复构建;生成或打包失败时保留原有 ZIP。分发产物由构建生成,不提交到 Git。改动类型
验证
pnpm build:skills实跑通过,两个独立 ZIP 均可解压,阶段提示在执行过程中输出。schemas.md。build-skills.mjs行/分支/函数均为 100%;API 生成模块为 100% / 95.51% / 95.83%。Node 原生覆盖率不单独提供 statements 指标。pnpm lint:check通过,pnpm typecheck通过(24 项,Turbo 缓存)。提交钩子执行格式化和 lint。自检