agent-Specialization/utils
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
..
api_client feat(api): 支持 x-opencode-session 会话头与 Astrion User-Agent 2026-09-07 18:50:29 +08:00
context_manager feat(stats): token 统计新增缓存命中追踪与命中率展示 2026-08-29 12:43:14 +08:00
conversation_manager feat(runtime): Gateway 收尾——session 传输暴露、host Bearer 通道、flask 依赖拆解、审批链路收口 2026-09-08 11:37:51 +08:00
tool_result_formatter feat(chat): 行内引用胶囊(inline citations) 2026-09-01 22:31:37 +08:00
__init__.py release: sync from main @0f9fd1b2 (2026-08-22) 2026-08-22 12:27:19 +08:00
api_client.py release: sync from main @0f9fd1b2 (2026-08-22) 2026-08-22 12:27:19 +08:00
atomic_io.py feat(runtime): Gateway 独立启动与公共协议落地(改造第 0-3 步) 2026-09-07 23:00:15 +08:00
host_workspace_debug.py release: sync from main @0f9fd1b2 (2026-08-22) 2026-08-22 12:27:19 +08:00
log_rotation.py release: sync from main @0f9fd1b2 (2026-08-22) 2026-08-22 12:27:19 +08:00
logger.py release: sync from main @0f9fd1b2 (2026-08-22) 2026-08-22 12:27:19 +08:00
media_store.py feat(i18n): 后端用户可见消息国际化(zh/en 双语 + ui_locale 偏好持久化) 2026-08-29 07:58:29 +08:00
perf_log.py release: sync from main @0f9fd1b2 (2026-08-22) 2026-08-22 12:27:19 +08:00
terminal_factory.py release: sync from main @0f9fd1b2 (2026-08-22) 2026-08-22 12:27:19 +08:00
token_usage.py feat(stats): token 统计新增缓存命中追踪与命中率展示 2026-08-29 12:43:14 +08:00
tool_result_formatter.py release: sync from main @0f9fd1b2 (2026-08-22) 2026-08-22 12:27:19 +08:00