agent-Specialization/cli
JOJO 66fa90d6cc feat(server): headless 启动入口(Gateway 专用路由面)+ approval 拆独立蓝图
- 新增 server/headless_app.py:仅挂 gateway/tasks/status/approval/usage 五件蓝图,
  无 web 站点路由面(/login、会话管理、静态页全砍),根路径返回 HTML 告知页;
  供 CLI 探测无服务时 spawn(同 RuntimeService 单例/数据目录/端口 8091,
  与 full 形态互斥不并存)
- server/chat/approval.py 拆出 approval_bp(tool/plan/question 6 条路由 URL 不变),
  解除对 chat_bp 的 import 循环,full/headless 双形态共用
- cli/src/gateway.ts:spawn 切 server.headless_app;python 解释器改 pickPython
  依赖探测(import yaml/flask 逐个试 .venv → homebrew 3.12/3.11 → python3),
  修本机 .venv 缺 pyyaml 导致的自启动即崩
- 修复 socket 移除残留雷:make_terminal_callback 定义随 broadcast.py 被删,
  workflow_runtime_api 模块级 import 即炸;resources.py 补兼容空操作(恒返 None)
- AGENTS.md §2 补 headless 启动命令、§12.5 补兼容空操作与 headless 形态说明

验证:tsc  py_compile  冒烟 6/6  headless 装配 47 路由 
8093 真实冒烟(health/Bearer/404 面/告知页)

Co-authored-by: Astrion powered by Kimi-K3 <astrion-agent@users.noreply.github.com>
2026-09-11 19:00:22 +08:00
..
bin feat(cli): rewrite CLI on opentui with Gateway host Bearer channel 2026-09-11 17:27:53 +08:00
legacy-ink-src feat(cli): rewrite CLI on opentui with Gateway host Bearer channel 2026-09-11 17:27:53 +08:00
src feat(server): headless 启动入口(Gateway 专用路由面)+ approval 拆独立蓝图 2026-09-11 19:00:22 +08:00
.gitignore release: sync from main @0f9fd1b2 (2026-08-22) 2026-08-22 12:27:19 +08:00
package-lock.json release: sync from main @0f9fd1b2 (2026-08-22) 2026-08-22 12:27:19 +08:00
package.json feat(cli): rewrite CLI on opentui with Gateway host Bearer channel 2026-09-11 17:27:53 +08:00
tsconfig.json feat(cli): rewrite CLI on opentui with Gateway host Bearer channel 2026-09-11 17:27:53 +08:00