officecli 迁入技能层:skills/office 封装 + executor 预览托管,双盘同步整条退役

- skills/office:SKILL.md + scripts/office 封装层(命令闸门/help 对齐/get-pos 语义糖/create、open 出 ui_card
  marker);install.sh 按技能双跑约定把二进制拉到技能卷 bin/(不进 git/不进镜像,GitHub→gh-proxy 备源)
- executor/preview.js:预览槽位+网关(原 mcp 侧 watch/gateway 移植),工作区=tasks 卷真实文件,
  /__session-kill 供 core 清槽;Dockerfile 零 officecli 痕迹,入口符号链接进 /usr/local/bin/office
- core:preview-proxy 默认上游改 agent-executor:3100;tools/executor.js 通用 drainUiCards(terminal 输出
  ::ui_card 标记行 → 剥离 + ctx.onCard,任意命令可产卡);engine 删会话改走 rexec.killPreviewSession
- compose:agent-executor expose 3100(只走内网);.gitignore 排除技能二进制
This commit is contained in:
2026-10-19 11:30:12 +08:00
parent 6c1aebd01f
commit 5f4b3ec28b
13 changed files with 624 additions and 54 deletions
+4
View File
@@ -704,6 +704,10 @@ server.listen(PORT, () => {
selfCheck();
});
// officecli 预览槽位+网关(preview.js):同容器第二内网端口(默认 3100,不对外映射),
// core 的通用预览反代(登录 cookie 门禁)是唯一入口;模块自带闲置回收与自愈复活。
try { require('./preview').start(); } catch (e) { log.error('preview 启动失败:', e && e.message); }
function shutdown(sig) {
log.info('收到 ' + sig + ',停止服务');
for (const entry of runs.values()) { entry.killedBy = 'shutdown'; killGroup(entry); }