agent-Specialization/server/tasks
JOJO aa9bf377a3 feat(runtime): Gateway 收尾——session 传输暴露、host Bearer 通道、flask 依赖拆解、审批链路收口
- session.* 传输暴露:新增 gateway_api 蓝图(list/create/history),RuntimeService 补 create_session
- host Bearer 通道:gateway_auth 双通道认证(host 模式+回环限定,token 存 DATA_DIR/host_api_token),tasks/approval 路由接入
- api_v1 会话路由转调公共入口消双轨,会话索引/列表补齐 run_mode/model_key/custom_prompt_name/personalization_name
- flask 包依赖拆解:_flask_bridge 延迟桥接 + context 子包 PEP 562 懒加载,import server.tasks/runtime 不再拉起 flask
- 审批链路:mark_expired 终态回写(超时/软停止/取消三路径)+ 终态 TTL 惰性清理(3600s)
- 测试 patch 点随迁;全量 75 测试失败恰为 4 项存量,独立启动验收 4/4 全绿

Co-authored-by: Astrion powered by Kimi-K3 <astrion-agent@users.noreply.github.com>
2026-09-08 11:37:51 +08:00
..
__init__.py feat(runtime): Gateway 独立启动与公共协议落地(改造第 0-3 步) 2026-09-07 23:00:15 +08:00
api.py feat(runtime): Gateway 收尾——session 传输暴露、host Bearer 通道、flask 依赖拆解、审批链路收口 2026-09-08 11:37:51 +08:00
blueprint.py feat(runtime): Gateway 独立启动与公共协议落地(改造第 0-3 步) 2026-09-07 23:00:15 +08:00
helpers.py refactor(runtime): 审核 F1-F4 收口——发现入口、范围校验、入口统一转调、验收加固 2026-09-08 01:29:43 +08:00
media.py feat(runtime): Gateway 独立启动与公共协议落地(改造第 0-3 步) 2026-09-07 23:00:15 +08:00
models.py refactor(runtime): 拆除 session_data 兼容桥,任务上下文三层结构化直传 2026-09-08 02:08:33 +08:00
skills.py feat(runtime): Gateway 独立启动与公共协议落地(改造第 0-3 步) 2026-09-07 23:00:15 +08:00
web.py feat(runtime): Gateway 独立启动与公共协议落地(改造第 0-3 步) 2026-09-07 23:00:15 +08:00