From e6244a4560bbbdba9c50cf16f65c753b68efcd51 Mon Sep 17 00:00:00 2001 From: AIOSAI Date: Thu, 23 Apr 2026 01:20:19 -0700 Subject: [PATCH] =?UTF-8?q?feat(system):=20fix(seedgo):=20resolve=20REGIST?= =?UTF-8?q?RY=5FPATH=20type=20error=20in=20checklist.py=20=E2=80=94=20use?= =?UTF-8?q?=20=5Ffind=5Fregistry()=20instead=20of=20removed=20constant?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: @devpulse --- .claude/hooks/.diagnostics_state.json | 1 + src/aipass/seedgo/apps/modules/checklist.py | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 .claude/hooks/.diagnostics_state.json diff --git a/.claude/hooks/.diagnostics_state.json b/.claude/hooks/.diagnostics_state.json new file mode 100644 index 00000000..895ee7a4 --- /dev/null +++ b/.claude/hooks/.diagnostics_state.json @@ -0,0 +1 @@ +{"file": "/home/patrick/Projects/AIPass/src/aipass/seedgo/apps/modules/checklist.py", "errors": [{"line": 393, "message": "E501: Line too long (122 > 120)"}]} \ No newline at end of file diff --git a/src/aipass/seedgo/apps/modules/checklist.py b/src/aipass/seedgo/apps/modules/checklist.py index 807b9e9a..5974093a 100644 --- a/src/aipass/seedgo/apps/modules/checklist.py +++ b/src/aipass/seedgo/apps/modules/checklist.py @@ -183,8 +183,6 @@ def _resolve_pack_path(pack_name: str) -> Optional[Path]: def _load_bypass_for_file(file_path: str) -> list: """Load bypass rules for the branch containing file_path.""" - from aipass.seedgo.apps.handlers.bypass.bypass_handler import REGISTRY_PATH - branch = get_branch_from_path(file_path) if branch is None: return [] @@ -193,7 +191,10 @@ def _load_bypass_for_file(file_path: str) -> list: return [] bp = Path(raw_path) if not bp.is_absolute(): - bp = (REGISTRY_PATH.parent / bp).resolve() + from aipass.seedgo.apps.handlers.bypass.bypass_handler import _find_registry + + registry_path = _find_registry() + bp = (registry_path.parent / bp).resolve() return load_bypass_rules(str(bp))