fix: override plugin tool stream context and remove repository tests

- force plugin tools to use runtime stream_id/chat_id from execution context
- remove repository test assets and vitest config
- document that temporary test files must be deleted after use
This commit is contained in:
Losita
2026-05-12 22:36:32 +08:00
parent 702316ae57
commit 8d0f6d4401
98 changed files with 4 additions and 30458 deletions

View File

@@ -33,6 +33,7 @@
# 运行/调试/构建/测试/依赖
优先使用uv
依赖项以 pyproject.toml 为准要同步更新requirements.txt
如为当前任务临时创建测试文件,跑完测试后必须立刻删除,不要保留在仓库中,也不要进入共享历史
前端改动后,如需走离线发布工作流,必须先在 `dashboard` 目录执行 `npm run build`(例如:`D:\Nodejs\npm.cmd run build`),确保生成最新的 `dashboard/dist`
当前项目的离线发布工作流依赖仓库中已提交的 `dashboard/dist`;在修改 `dashboard/src``dashboard/public``dashboard/package.json``dashboard/package-lock.json` 或其他影响构建产物的前端文件后,要同步提交对应的 `dashboard/dist`
不要在离线发布场景中假设服务器或 runner 可以联网安装 Node.js 依赖;除非明确确认发布机已具备可用的 `npm` 环境,否则默认按“本地构建 `dashboard/dist` 并随仓库提交”处理