From 2d0e3a4858786219dc0d8fc08746ac04855230df Mon Sep 17 00:00:00 2001 From: admin Date: Sun, 11 Oct 2026 16:40:24 +0800 Subject: [PATCH] =?UTF-8?q?fix(build):=20compile=5Fsdk=20=E7=99=BD?= =?UTF-8?q?=E5=90=8D=E5=8D=95=E5=8A=A0=E5=85=A5=20review=5Fproxy.py?= =?UTF-8?q?=EF=BC=88=E7=A7=91=E7=A0=94=E5=AE=A1=E7=A8=BF=E5=8F=8D=E4=BB=A3?= =?UTF-8?q?=E6=96=AD=E6=B5=81=E9=AB=98=E5=8D=B1=E7=82=B9=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tooling/compile/compile_sdk.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tooling/compile/compile_sdk.sh b/tooling/compile/compile_sdk.sh index e7cc003..4b1f261 100755 --- a/tooling/compile/compile_sdk.sh +++ b/tooling/compile/compile_sdk.sh @@ -31,12 +31,13 @@ rsync -a --exclude '__pycache__' --exclude 'test_*.py' --exclude 'data' --exclud "$SOURCE_ROOT/" "$OUTPUT_DIR/" # 白名单明文:main.py + config.py + __init__.py(编译前从发现集排除) -WHITELIST_PY=("app/main.py" "app/config.py" "app/schemas.py" "app/db.py" "app/routers/qa.py" "app/services/sse_relay.py" "app/routers/bioflow_proxy.py" "app/routers/paper.py" "app/services/paper/agent.py" "app/services/paper/mcp_client.py") +WHITELIST_PY=("app/main.py" "app/config.py" "app/schemas.py" "app/db.py" "app/routers/qa.py" "app/services/sse_relay.py" "app/routers/bioflow_proxy.py" "app/routers/paper.py" "app/routers/review_proxy.py" "app/services/paper/agent.py" "app/services/paper/mcp_client.py") # 白名单理由:main.py=uvicorn 入口;config.py=运维可读面; # schemas.py=pydantic v2 模型(validator 方法被 Cython 转 cyfunction 触发 # PydanticUserError,实测编译后无法导入——纯数据契约面,无敏感逻辑,明文保留); # db.py=2026-09-03 断流崩溃根治:客户端中途断开流时 Cython 协程 # bioflow_proxy.py=2026-09-06 生信流式反代(SSE 逐块 yield,同型断流高危点,TL 补) +# review_proxy.py=2026-10-11 科研审稿反代(上传+LLM 长调用反代,同类断流高危点) # db.py=2026-09-03 断流崩溃根治:客户端中途断开流时 Cython 协程 # __Pyx_Coroutine_SendEx 断言 abort 整个 BFF(Cython 3.2.8/3.3.0 均复现, # A/B 证据见 docs/team/deploy_plan.md 附档)。db 是崩溃协程热点,