feat(dashboard): 插件管理器布局优化 + Pipeline可视化与提示词预览功能 #4451
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.
关联Issue
Closes #4440
变更概述
本PR实现了Issue #4440中提出的插件管理器优化方案,包括MOD管理器风格的新布局、Pipeline Snapshot可视化、提示词预览功能,以及GitHub风格的Markdown展示。
主要功能
1. MOD管理器风格布局
2. Pipeline Snapshot 可视化
3. 提示词预览(Dry-run)
4. GitHub风格Markdown展示
GitHubMarkdownViewer组件,支持KaTeX/MermaidpreprocessPluginMarkdown处理不规范HTML与资源链接技术实现
后端新增
astrbot/core/pipeline/snapshot/- Pipeline快照构建、冲突检测、风险扫描模块astrbot/core/pipeline/prompt_preview_dry_run.py- 提示词预览dry-run实现astrbot/dashboard/routes/pipeline.py- Pipeline API路由前端新增
dashboard/src/components/extension/mod-manager/- MOD管理器布局组件集dashboard/src/components/extension/mod-manager/pipeline/- Pipeline/Trace可视化组件dashboard/src/components/shared/GitHubMarkdownViewer.vue- GitHub一致的Markdown渲染依赖变更
github-markdown-css用于GitHub风格样式变更统计
验证截图详见issue
Checklist / 检查清单
requirements.txt和pyproject.toml文件相应位置。/ I have ensured that no new dependencies are introduced, OR if new dependencies are introduced, they have been added to the appropriate locations inrequirements.txtandpyproject.toml.