Repository navigation
过渡期的 import 白名单删掉了:仓库外的客户端不 import 这里的模块,接口是片子的文件夹、bin/vh … --json 和 bin/vh version - #269
Merged
Merged
Conversation
docs/project-format.md 的过渡期一节删掉(白名单、讲它怎么用的几句、browser.mjs 那一句、已经过时的两句);v0.10.0 体验版那段进"版本和兼容",不带 Core 拷贝的 Studio 怎么找 Core、in_studio 那段进"把片子交给客户端"。CONTRIBUTING 的模块那一条改说客户端不 import 这里的模块。studio_checks 里核对白名单的那一项和 listed_imports.py 删掉;settings.py、review.py 里指向过渡期的 docstring 改指命令。
ZLHad
marked this pull request as ready for review
December 1, 2026 18:50
ZLHad
enabled auto-merge (squash)
December 1, 2026 18:50
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.
改了什么
docs/project-format.md的过渡期一节删掉。删的是:tools/textcheck/browser.mjs"那一句;settings.set_studio这里自己不用",以及"写入和密钥还没有命令"。tools/、两边共享的是片子的文件夹:改成"版本和兼容"里的一条;bin/vh … --json和bin/vh version;tools/standing.py的in_studio怎么认 Studio 起的 agent:也挪进"把片子交给客户端",原话不动。CONTRIBUTING.md讲tools/找模块的那一条,末句"仓库外的客户端照样把tools/放进路径,按白名单 import"改成:仓库外的客户端不 import 这里的模块,用片子的文件夹、bin/vh … --json和bin/vh version。studio_checks里核对白名单的那一项删掉,包括它查browser.mjs有没有launchTab的那一行;tools/ci/py/studio_checks/listed_imports.py一起删掉。tools/settings.py(模块的 docstring,set_mirror、set_studio)和tools/review.py(stage_for)里指向过渡期一节的说法,改成指向命令:bin/vh settings set、settings mirror、settings --json的exports、bin/vh review --stage。为什么
写设置、存删 API Key 在 #268 有了命令。仓库外的客户端已经不再 import
activity、jsonerr、keys、settings:查进程、失败的 JSON 记录、写进活动记录的那一行,它自己留了一份,其余都改用命令。所以表上没有名字了,过渡期结束。对外的接口就是docs/project-format.md开头说的那三样:片子的文件夹、bin/vh … --json和bin/vh version。以后加了客户端会用的命令或字段,tools/commands.json的interface跟着加一(#268)。怎么验证的
tools/ci.sh --committed整跑,在d8bcf4a上跑的,它的树和现在的b3fc8b9相同:676 ✓(连汇总行)、0 ✗,1 项照常跳过(HyperFrames 合成上取帧)。比 写设置、存删 API Key、列要 key 的服务,都能从命令做:settings set、settings mirror --no-chrome --json、settings keys、keys save、keys clear;settings --json多了exports#268 的 677 少的一项,就是删掉的白名单检查。python3 tools/changes.py check、python3 tools/ci_select.py --check通过。git grep过渡期、白名单,只剩不相干的两处:CONTRIBUTING 里发版那一条,参考资料里一部法规的"过渡期"。