fix(运行时): 将插件路径匹配移到宿主

新增宿主侧精确路径匹配和插件级 match.paths 配置。\n按请求路径固定插件会话链,移除 Lua 插件内的路径判断与 bypass 状态,并迁移现有插件配置和测试。
This commit is contained in:
starrrLight committed 2026-10-15 15:49:05 +08:00
1 parent f905aa22cc
commit d1f5f69454
12 files changed
+126 -200

No files matched your search

+3 -2
View File
@@ -240,10 +240,11 @@ def create_app(settings: Settings | str = "config.yaml") -> FastAPI:
handed_off = False
try:
manager = app.state.manager
session = await manager.open(request_id)
request_path = request.scope["path"]
session = await manager.open(request_id, path=request_path)
original = {
"method": "POST",
"path": "/chat/stream",
"path": request_path,
"headers": safe_headers(dict(request.headers)),
"body": text,
}