feat: add deepseek-harness workbench plugin and console diagnosis API

- console: GET /api/workflows/{id}, /runs/{run_id}, /runs/{run_id}/diagnosis
  (journal trace + sanitized bounded log tails, workflow/run pairing enforced)
- workbench/: dsh 宿主插件(7 个工作流工具、中文系统提示词、失败监控器、
  本机回环桥接服务)+ 侧边栏面板客户端包(sidebar.footer.action 与
  shell.overlay 追加插槽)+ 降级独立面板 + 一键启动脚本
- adapters/browser: 收敛 looks_like_login_url 到共享层,修复
  jd_main_image_collector 对 gyxx_flow.accounts 的越层导入
- tests: 新端点覆盖;replay_policy 断言对齐已迁移的 catalog(repeatable)
This commit is contained in:
2026-09-04 11:10:16 +08:00
parent b124d757b0
commit 01218b2907
26 changed files with 4347 additions and 8 deletions
+22
View File
@@ -0,0 +1,22 @@
# GYXX 智能工作台 —— dsh Web 组合补丁(模板)。
# 启动脚本会把 __PLUGIN_DIR__ / __PROJECT_ROOT__ 渲染为绝对路径后生成
# cordis.local.yml,再通过 `dsh web --patch workbench/cordis.local.yml` 加载。
# 不要直接手工使用本文件:dsh 要求插件路径为绝对路径。
- insert:
- id: gyxx-workbench
name: '__PLUGIN_DIR__/plugin/gyxx-workbench.mjs'
config:
# gyxx 控制台 HTTP APIgyxx console,默认 8765 端口)
consoleBaseUrl: 'http://127.0.0.1:8765'
# 访问令牌:缺省读取进程环境变量 GYXX_CONSOLE_TOKEN
# consoleToken: ''
# 侧边栏面板桥接服务(本机回环)
bridgeHost: '127.0.0.1'
bridgePort: 8790
# 失败监控轮询间隔(毫秒)
pollIntervalMs: 30000
# 发现失败时是否自动创建诊断会话(默认 false,只在面板弹告警)
autoDiagnose: false
# 智能体会话的工作目录(数据根目录下的日志可用文件工具直接查看)
projectRoot: '__PROJECT_ROOT__'