Repository navigation
Conversation
Collaborator
|
✅ Internal validation passed. A ZCode maintainer will review the change next; after acceptance, release checks run separately and this PR is closed automatically. |
This branch has not been deployed
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.
Plugin type (required) / 插件类型(必填)
Select exactly one before requesting review. / 发起评审前必须且只能勾选一项。
Affected plugin name(s) / 涉及的插件名称:
context-visualizer
Classify the affected plugin, even when only changing its docs or skills. Adding or removing an interactive page also counts as a UI Plugin change. For multiple plugins, list each name and type; select UI Plugin if any is affected.
按涉及的插件判断,即使本次只改它的文档或 skill 也须声明类型。新增或移除交互页面也属于 UI Plugin 改动。涉及多个插件时分别列出名称和类型,只要包含 UI Plugin 就选择 UI Plugin。
ui.surfacespanels and tool-result pages using_meta.ui.resourceUriboth count. An MCP server or a skill that generates Gen UI alone does not. This declaration is separate from marketplacecategory.ui.surfaces面板和通过_meta.ui.resourceUri展示的工具结果页面都算 UI Plugin。仅有 MCP server 或生成 Gen UI 的 skill 不算。这项声明与市场category分类独立。What / 改动内容
新增 context-visualizer 插件:分析 ZCode 会话的 model-io 日志与本地使用统计库,回答「上下文窗口被什么占用 / 哪些工具从没被调用却占着定义 / 该停用哪个插件 / 装一个插件值多少 token」。
nav.primary插槽,target: surface)一键打开 MCP Apps 交互面板;默认显示跨会话总排行~/.zcode/cli/db/db.sqlite,含日志已轮转的会话)按真实 usage 排名;工具细分按存活日志聚合,并标注覆盖范围Self-check 附加说明:
ui://context-visualizer/panel.html约 700KB(< 16MiB),全内联、无外链、无 fetch/XHR/WebSocket,默认 CSP 即可运行mcp/server.mjsesbuild bundle、ui/panel.html)随包提交,运行时零依赖;npm install && node build.mjs可复现python3 scripts/validate.py与python3 scripts/build_dist.py已在本地最小装配中实测通过(validate: OK 1 plugin validated;build_dist: 生成 0.6.3/plugin.zip 469KB)Self-check / 自查清单
external_plugins/<name>/; existing fixes retain ownership / 插件名唯一且 kebab-case,外部新增插件位于external_plugins/<name>/,已有插件修复保留原归属categoryis set independently of publisher ownership / 用途分类category已填写,与维护归属分开versionbumped in BOTHplugin.jsonandmarketplace.json(artifacts are immutable) /plugin.json与marketplace.json两处版本号已同步升级(制品不可变)README.md(EN) andREADME_CN.md(中文) both updated and equivalent / 中英文 README 均已更新且语义一致description_i18nhas bothenandzh-CN/description_i18n包含en与zh-CNpython3 scripts/validate.pyandpython3 scripts/build_dist.pypass locally / 本地校验与构建均通过