From 4fb9392db42860b03fb45598b78ff07aed798861 Mon Sep 17 00:00:00 2001 From: shuiyu67 Date: Fri, 7 Aug 2026 02:31:16 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20jedi=20=E6=98=BE=E5=BC=8F=E9=A2=84?= =?UTF-8?q?=E8=A3=85=20(requirements.txt=20+=20launcher=20=E7=AC=AC?= =?UTF-8?q?=E4=B8=89=E6=96=B9=E7=99=BD=E5=90=8D=E5=8D=95)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - requirements.txt 加 jedi: 装依赖即自动预装 L2 语义验证后端 (纯 Python) - launcher.third_party 加 jedi: scan_imports 重写 requirements 时不会丢 - 验证: py_detect 内缩进 import jedi 可被扫描正则捕获 - 无 jedi 仍自动降级纯标准库, 低配设备行为不变; 53 passed 零回归 --- launcher.py | 1 + requirements.txt | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/launcher.py b/launcher.py index 56b8e91..006de55 100644 --- a/launcher.py +++ b/launcher.py @@ -127,6 +127,7 @@ class Launcher: 'colorama', 'openai', 'requests', 'ollama', 'pygame', 'PIL', 'Pillow', 'cv2', 'opencv-python', 'numpy', 'ascii_magic', 'tkinter', 'matplotlib', 'pandas', + 'jedi', # py_detect L2 语义验证后端 / 自研本地 LSP(纯 Python,预装即启用) } # ── 清屏 ── diff --git a/requirements.txt b/requirements.txt index fab81ae..81440e9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -19,3 +19,7 @@ pyflakes pycodestyle rope mccabe + +# 自研本地 LSP 服务器 / py_detect L2 语义验证后端 +# 纯 Python 语义引擎,装依赖即自动预装(L2 自动启用;无 jedi 自动降级为纯标准库模式) +jedi