feat(plugin): 迁移 setup helper 到 Commands - #3
Closed
kachofugetsu09 wants to merge 2 commits into
Closed
Conversation
Member
Author
|
当前 main 已包含 pure-v3 最终实现与对应验收结果;此旧迁移 PR 已被总迁移版本取代,关闭以收敛唯一事实。 |
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.
结果
core.commands注册 canonical/chatid与隐藏兼容 alias/myid。SetupHelperv2 class 作为同输入行为 oracle;本 PR 不删除 legacy 壳。语义边界
change_type: migrationsemantic_delta: compatible@botname、/myid和 QQ allowlist 文本保持等价。get_or_create,会持久化一条空 Session 元数据;v3 从 Commands admission 直接返回,SessionDB 保持不变。这是有意移除 lifecycle 偶然副作用,不是 durable write-set 等价。command/run/done、plugin-data 或外部发送。不可变依赖
8c45ab7873aac8c9eebcd22e9d6ae123f8dcf616akashic-plugins/plugin-contracts@4dd69dd621e029e51e99aa428443fa3a4ec1f6cf6e15fdcc9f93f9fc44e7f841e55e69727738debe验证
pytest -q -W error tests/: 12 passed008a31a9e42c30d7663de55162d756158915b44b0495584c59b6347fcf1b34b0git diff --check: passedSessionManager重新打开、messages 为空、Context prepare 为 0 调用。PluginManager+ stable snapshot lease +PassiveTurnPipeline:输出等价;Session acquire、Context prepare、Reasoner 与 append 均为 0 调用;teardown 后 service/effect 归零。回滚
Revert 本 PR,或回到
backup/setup-helper-before-v3-20260814@29c210f3c9e90864edbe8e4ebfd0442c9a492b63。v2 class 仍在,未修改正式安装、workspace 或 manifest。