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) / 插件类型(必填)
Affected plugin name(s) / 涉及的插件名称:
turn-lensWhat / 改动内容
Adds TurnLens (
turn-lens), a session statistics plugin for ZCode. It reads the local ZCode session database read-only and exposes three ways to inspect usage:/turn-lensprints a Markdown card with turns, steps, model/tool time, TTFT, TPS, context, cache and request metrics.Notable behavior:
~/.zcode/cli/db/db.sqliteread-only; no network requests, no database writes.引导badge, and the user-input estimate includes the guided text.Test plan / 测试
python -I scripts/validate.py:OK: 60 plugin(s) validated.initializereportsturn-lens 0.11.0andresources/readreturns the panel containing the refresh dropdown.Side effects and privacy / 副作用与隐私
dist/is generated by the build and is not committed.Screenshots / 截图
Light
Dark
Refresh dropdown
Self-check / 自查清单
external_plugins/turn-lens/categoryis set independently of publisher ownership (developer-tools)versionis0.11.0in bothexternal_plugins/turn-lens/.zcode-plugin/plugin.jsonand rootmarketplace.jsonREADME.md(EN) andREADME_CN.md(中文) are both updated and equivalentdescription_i18nhas bothenandzh-CNpython3 scripts/validate.pypasses locally (OK: 60 plugin(s) validated)python3 scripts/build_dist.pywas not run end-to-end locally: the full Windowspnpm buildcurrently fails in the upstream Excalidraw build script's path handling. The TurnLens artifact itself packages successfully withbuild_dist.build_zip; the repository CI runs the full build on Linux.