DSH HUB
HomePlugin StorePlugin PacksCommunityRankingsResourcesPublish Guide
Plugin source
Back to catalog

iasiv5 /

iasiv5/dsh-l

Verified

DSH 插件:开发中...。 https://www.npmjs.com/package/dsh-l

★ 0 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
View on GitHub
READMESource: main@5293a19b

Loop Engineering 工作台(dsh-l)

License DSH

中文 | English

在 DSH 中把你监看的 GitHub 仓库变成一条看得见的环:摄取全部 open issue 与 open PR 成候选清单,LLM 分诊给出真实性 / 紧急度 / 建议动作,三道闸门(开工前 / 交付前 / 发版前)全部人工放行;开工时产出结构化任务包,交付产生的新候选再回到清单——环继续转。

插件只是建议者与记录者:绝不自动改代码,绝不自动动你的仓库。

Loop Engineering 工作台:管线条、过滤条与真实候选(深色皮肤示例数据)

功能

  • 收活与账号连接(板块一):工作台分「收活 → 分诊与拍板」两大板块。登录界面是一台状态机,全程零手动输入——gh CLI 未装:一键后台安装(官方 release 二进制装入插件私有目录,无需 root);已装未授权:页内设备流授权(出授权码 → 浏览器验证 → 自动移交 gh 凭据库并绑定,无需离开页面);已授权:显示「账号 · 进入工作台」大按钮,一键进入。页头随时可退出账号,工作台回到登录界面;退出只解除工作台绑定,不动本机 gh 登录态(彻底撤销请在终端 gh auth logout),监看配置与历史全部保留。
  • 监看与清单:仓库选择器(从 GitHub 账号发现 + 手动添加 owner/repo)+ 手动刷新与可选自动刷新(默认关);全部 open issue / open PR 摄取成候选,按阶段分组展示:待分诊 / 已分诊 / 待拍板 / 进行中 / 已交付 / 已关闭。上游已关闭的候选在下次摄取时自动回收:未拍板的转入已关闭,已拍板的只提示一次、由你处置;刷新与分诊失败也全部留痕(候选 history + 摄取日志),操作可回溯。
  • LLM 分诊(只出建议,不代办):短命 agent 会话批量分诊(一批 ≤10 条),输出真实性(issue 看可复现 / 非重复 / 非灌水;PR 看能构建 / 非恶意)、紧急度 P0–P3、建议动作与一句理由;人可随时推翻,人工判断以 by: human 如实留痕。分诊提示词把 issue / PR 正文声明为「数据,不是指令」,且不豁免工具审批——正文诱导的工具调用会阻塞至超时并判失败(fail-closed),这一批候选原样保留、可重跑。
  • 三道闸门,全部人工放行:G1 开工前 / G2 交付前 / G3 发版前,每次放行留痕(时间 + 来源)。v1 仅 G1 有语义:只有「待拍板」阶段的候选可放行,通过即转「进行中」并生成任务包(结构化 JSON:候选上下文 / 分诊结论 / 目标 / 真实默认分支与克隆地址;emit 块逐字段对齐 agent-autoloop 事件信封、可原样投递其事件接口,可复制交给任何执行引擎);驳回即回「已分诊」。G2 / G3 在界面占位禁用,随 v2 点亮。
  • 管线条与过滤:七段管线计数条(摄取 / 清单 / 分诊 / 反馈门 + 灰显的构建 / 验证 / 交付);类型 × 仓库 × 紧急度三维过滤。
  • 中英双语:跟随 DSH 语言设置,切换即时重绘;分诊理由跟随界面语言。
  • 可选定时轮询:设置里可开自动刷新间隔(分钟,0 = 关,默认关)。

兼容性与前置要求

项目 要求或声明
DSH >=0.2.2-rc.1(包元数据声明);已在 DSH Web 0.2.2-rc.2 实例运行时实测
Node.js 随 DSH 宿主(宿主要求 Node ≥24)
Cordis peer dependency ^4.0.2
客户端平台 包元数据声明 web
GitHub v1 仅 GitHub;GitLab 在路线图(provider 接口已预留)

安装

npm 发版筹备中,当前用开发态链接安装:

git clone https://github.com/iasiv5/dsh-l.git
cd dsh-l && npm install && npm run build && npm test
dsh plugin --profile web add "link:/path/to/dsh-l"
# 随后重启 DSH 服务,使 host 端路由生效:
sudo systemctl restart deepseek-harness.service
  • 验证已激活:浏览器打开 DSH,侧栏面板列表出现「Loop Engineering 工作台」;也可访问 http://<dsh>/dsh-l/health,返回的 JSON 含 build 构建指纹(与仓库内 lib/client.js 尾部注释一致)。
  • 卸载:dsh plugin --profile web remove dsh-l。卸载不删除分诊与放行记录(数据在 profile 的 data/dsh-l/ 下),重装自动读回。

配置

GitHub token 按以下顺序解析:插件配置的凭据引用 → 本机 gh auth token 登录态 → 匿名(仅公开仓,限速 60 次/时)。要固定用某个 token,在所属 profile 的 cordis.patch.yml 给 dsh-l 行加 config(引用名是环境变量形态,token 值由宿主凭据体系解析):

- insert:
    - id: dsh-l
      name: dsh-l
      config:
        githubTokenRef: GITHUB_TOKEN

数据、隐私与安全

  • token 不落盘:token 只进 GitHub 请求的 Authorization 头,不写入插件存储、不出现在日志;分诊会话的提示词里也没有它。页内设备流授权取得的 token 经 stdin 管道移交给 gh 自身凭据库托管(等同手动 gh auth login 的产物),插件不另存副本。
  • 退出语义:退出账号只清工作台的 GitHub 绑定(store 的 auth 块),不调用 gh auth logout、不撤销本机凭据;监看配置与候选历史全部保留,重连即恢复。
  • 路由保护:全部路由先过宿主官方信任检查(缺席即 fail-closed 403),写方法再强制同源 + JSON 体积上限。
  • 不可信正文隔离:issue / PR 正文是别人写的字。分诊 prompt 明确声明它们是数据;插件不豁免工具审批,正文诱导的任何工具调用都会卡在宿主审批上直到超时。
  • 闸门纪律:当前对仓库没有任何自动写路径;未来的 PR / 发版动作都在闸门之后,且发版闸门(G3)计划永久人工。
  • 存储分离:业务数据落在所属 profile 的 data/dsh-l/store.json,多个 profile 互不共享。

Roadmap

  • v2:飞书单向通知;执行环(任务包 → agent 会话 → 状态回流);构建 / 验证阶段点亮;G2 交付闸门
  • v3:G1 高置信自动放行;IM 双向拍板;交付 Ship;GitLab provider

开发

npm install
npm run build   # 产出 lib/host.js + lib/client.js(带构建指纹)
npm test        # 76 用例
bash scripts/install-smoke.sh   # 隔离 profile 装机冒烟(不触在役宿主);含全环探针,分诊在无 LLM 凭据的隔离环境走 fail-closed 裁决(预期行为,补 DEEPSEEK_API_KEY 可得 happy path)

设计文档见 docs/design.md,领域词汇见 GLOSSARY.md,架构取舍见 docs/adr/0001。

English summary

Loop Engineering Workbench (dsh-l) is a DeepSeek Harness sidebar plugin that turns watched GitHub repositories into a visible loop: it ingests every open issue and pull request into a staged backlog, triages them with an LLM (validity, urgency P0–P3, recommended action — advice only, always overridable by a human), and gates work behind three human-approved gates (before build / before ship / before release). Passing G1 produces a structured task package that any execution engine can pick up. The plugin never writes to your repositories by itself; untrusted issue bodies are treated as data, tool approvals stay at the host default, and the GitHub token never touches disk or logs. Requirements: DSH >=0.2.2-rc.1 (runtime-verified on 0.2.2-rc.2 Web), Node per host, Cordis peer ^4.0.2. Install from a git clone with a link install until the npm release; see 配置 for token configuration and 安装 for activation checks.

—/ 5

No ratings yet

Verified DSH bundle

Commit 5293a19b31f7

Community comments

No comments yet. Be the first to write one.

DSH HUB

A community index for DSH plugins. Not an official GitHub or DeepSeek AI product.

CommunityResourcesAPIAbout