Repository navigation
Conversation
Community plugin: token usage query (token_usage MCP tool, /usage command, skill) plus a desktop floating status bar (speed, usage, context, plan quota, Git status) and a per-answer rate line. Desktop status bar install modifies app.asar (removable patch, opt-out respected, documented in the bilingual README). Plain Python 3.8 stdlib + plain JS, no third-party code, MIT.
|
✅ Internal validation passed. A ZCode maintainer will review the change next; after acceptance, release checks run separately and this PR is closed automatically. |
|
✅ Internal validation passed. A ZCode maintainer will review the change next; after acceptance, release checks run separately and this PR is closed automatically. |
Sync the external plugin to v1.5.21 (25 merged PRs since 1.5.3: speed tooltip V3, mobile relay, R4 Coder quota, ZCode 3.19.0 fingerprints, Windows fixes, etc.). Marketplace entry description/version aligned with the plugin manifest; category stays developer-tools.
|
Thanks for the contribution! This PR no longer applies cleanly on top of the latest 🤖 Copy this prompt into Claude Code / Codex to fix it |
Resolve marketplace.json conflict: keep upstream's newly added plugin entries and re-append the zcode-token-usage-statusbar 1.5.21 entry.
|
✅ Internal validation passed. A ZCode maintainer will review the change next; after acceptance, release checks run separately and this PR is closed automatically. |
Sync external_plugins/zcode-token-usage-statusbar with the plugin's v1.5.26 release tree (ByteRax/zcode-token-usage-statusbar@v1.5.26). - add: /context and /zusage-doctor commands, context extension entry and views - remove: mcp-launch.cjs, mobile_relay_patch.py (retired upstream) - marketplace entry: version only (description_i18n unchanged) python3 scripts/validate.py: OK: 56 plugin(s) validated
|
✅ Internal validation passed. A ZCode maintainer will review the change next; after acceptance, release checks run separately and this PR is closed automatically. |
|
✅ Internal validation passed. A ZCode maintainer will review the change next; after acceptance, release checks run separately and this PR is closed automatically. |
Plugin type (required) / 插件类型(必填)
Affected plugin name(s) / 涉及的插件名称:
zcode-token-usage-statusbarNo
ui.surfaces, no_meta.ui.resourceUri; the MCP server and the renderer-bridge status bar do not provide MCP Apps pages.What / 改动内容
New community plugin zcode-token-usage-statusbar v1.5.3, registered under
external_plugins/with categorydeveloper-tools.User problem it solves / 解决的用户问题: ZCode's UI shows no token usage, model speed, context consumption, or plan-quota usage, so users cannot see what a session costs or how fast the model actually streams. This plugin makes that visible without leaving the chat.
What users get / 用户可见行为:
/usagecommand (today / week / models / current),token_usage(scope)MCP tool, and a skill for agent-driven queries.How to test / 测试方式:
app.asar; fully quit and reopen ZCode)./usage today→ usage report; thetoken_usageMCP tool answers scope queries./uninstall-overlayremoves the status bar and leaves an opt-out marker;"plugin_auto_install_overlay": falsekeeps query-tools-only mode.Version & marketplace registration / 版本与市场注册: v1.5.3 in
plugin.json(both manifests) andmarketplace.json,description_i18nidentical in all three. 1.5.2 exists on this plugin's own GitHub release channel (immutable), so this content change bumps to 1.5.3.Dependencies, network, permissions, side effects / 依赖、网络请求、权限与副作用 (also documented in both READMEs):
app.asarto inject the status bar loader (removable patch, keeps a backup, opt-out respected, full disclosure in README).SessionStart(runtime-file sync, update check, restart notice),UserPromptSubmit(prompt timestamp + rate line). MCP: stdiousage_mcp.pyexposingtoken_usage, read-only on the local usage DB.~/.zcode/zcode-token-usage-statusbar/(runtime files, config, state; secrets0600), theapp.asarpatch + backup, overlay settings in~/.zcode/zusage3.git(no fetch).Third-party material / 第三方材料: the context views (Context Insights page, Context tab, Context Stats and Context Browser —
extension-view-insights.jsandextension-view-context.js) are ported from bowenliang123/dsh-context (author bowenliang123, Apache-2.0) and modified for ZCode's extension runtime; no other third-party code, assets, or services are bundled. Source: ByteRax/zcode-token-usage-statusbar (MIT).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 / 本地校验与构建均通过Notes on the checks / 校验说明:
scripts/validate.py: OK: 52 plugin(s) validated (includes this one).git diff --check: clean.scripts/build_dist.py: the full-repo run stops at the pre-existingexcalidrawstep in this shallow clone (incomplete build; run pnpm build first— reproduced on unmodifiedmain, it needs the CI pnpm build artifacts, unrelated to this PR). To verify this plugin's packaging,build_zip+build_index_entryfromscripts/build_dist.pywere invoked directly onexternal_plugins/zcode-token-usage-statusbar: 31 entries, no__pycache__/.pyc, README_CN.md included, marketplacesourcerewrite to the zip install source works, and the build is deterministic (identical sha256 on rebuild).