refactor(error): rename taxonomy and translators for clearer layering#303
Merged
liujuanjuan1984 merged 2 commits intomainfrom Mar 23, 2026
Merged
refactor(error): rename taxonomy and translators for clearer layering#303liujuanjuan1984 merged 2 commits intomainfrom
liujuanjuan1984 merged 2 commits intomainfrom
Conversation
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.
概要
本 PR 基于最新
main,补录#274中未进入主干的命名收敛改动,使 upstream 错误相关文件的分层命名更清晰。改动模块
错误分层命名收敛
src/opencode_a2a/error_taxonomy.py重命名为src/opencode_a2a/upstream_taxonomy.pysrc/opencode_a2a/execution/upstream_errors.py重命名为src/opencode_a2a/execution/upstream_error_translator.pysrc/opencode_a2a/jsonrpc/error_mapping.py重命名为src/opencode_a2a/jsonrpc/error_responses.pytests/jsonrpc/test_error_mapping.py重命名为tests/jsonrpc/test_error_responses.py调用点同步
代码风格
ruff自动调整 import 顺序相关提交
6b2df21refactor(error): rename taxonomy and translators for clearer layering (#274)41fccfechore(error): apply ruff import ordering after rename (#274)验证
uv run pre-commit run --all-filesuv run pytest350 passedcoverage: 91.08%关联