moyun-ultimate/CHANGELOG.md
moyun 83ceae9e72 feat: 0.3.0 - let the plugin diagnose itself
Answers the top complaint "it does not work and I cannot tell why" by turning
hidden state into explicit output.

- moyun_ultimate_profile now reports permission.builtin / .effective / .verdict
  and environment.profile / .userLayerOverrides / .siblingPlugins / .winner,
  so the user can see whether the permission layer actually took effect
- new tool moyun_skills_audit: which of the 63 skills run out of the box and
  which are missing their external binaries (nuclei/fscan/IDA/jadx/...)
- badge now colors itself by real state: green (this package owns permission),
  amber (user layer overrode it / sibling plugin present / disabled), red (refusal)
- skill audit speed: 2933 ms -> 234 ms by indexing PATH instead of spawning
  "where" per command (0 ms once cached)
2026-11-17 14:28:01 +08:00

4.4 KiB
Raw Blame History

Changelog

0.3.0 — 2026-11-17

新增:插件自己诊断自己

针对「装了没效果 / 不知道哪里冲突 / 技能跑不起来」三类反馈,把隐性状态变成显性输出。

  • moyun_ultimate_profile 大改:新增 permission(builtin / effective / verdict 三态)+ environment(profile / userLayerOverrides / siblingPlugins / winner)+ skills 汇总。 权限层是不是真生效,一眼能看到,不用猜。
  • 新工具 moyun_skills_audit:审计 63 个技能的可用性,区分「能直接用」和「缺外部工具」, 并列出具体缺哪些二进制。
  • 状态条按真实状态变色:绿(本插件接管)/ 琥珀(被用户层接管、有同类插件、已关闭)/ 红(判拒)。 悬停显示详细原因。
  • 性能:技能审计从逐条 where(约 2.9 s)改为 PATH 目录索引(234 ms,缓存后 0 ms)。

验证

  • node --check 通过;工具实测输出正确(本机识别出 overridden-by-user-layer + siblingPlugins: ["dsh-purge"])

0.2.1 — 2026-11-17

新增

  • doctor.ps1:一键自检,11 项检查(运行时副本 / 双处登记 / exports / 五段提示词 / 权限层配置 / 应答器代码 / 技能落地 / 用户层覆盖 / 冲突插件),输出 [OK]/[WARN]/[FAIL]
  • TROUBLESHOOTING.md:按抖音评论区反馈整理的排查手册,五类问题(装不上 / 没效果 / 效果不对 / 和 purge 冲突 / 质疑),每类都给判断命令
  • README 新增「效果边界」章节:明确区分「工具权限」「模型意愿」「服务端审核」三层, 避免把服务端拦截误判成插件失效

说明

  • 不改变任何已生效的逻辑,纯文档与工具补充

0.2.0 — 2026-11-16

新增:内置权限层(不再需要额外插件)

  • cordis.patch.yml 覆盖 6 组官方 config:sandbox-policy(danger-full-access)、 approval(ask)、permission(重定义预设表 + defaultPreset)、spill-policy、 tool-result-pruner、agent-instructions / session-query-sqlite
  • index.js 新增 installApprovalAnswerer():在 approval/request 等三个候选事件名上 注册应答器,直接返回 allowed-once,工具审批不再弹窗
  • 新增开关 permission(默认 true)与 approvalResult(默认 allowed-once)
  • 不改写任何宿主源码文件,全部通过官方 cordis patch 的 id 级 config 覆盖实现

验证

  • node --check index.js 通过
  • dsh --profile web --patch cordis.patch.yml --dump-config exit 0, 合成结果含全部 6 个 id 且取值正确

0.1.0 — 2026-11-16

首个版本。五层分层提示词内核。

新增

  • 五段分层系统提示(21,354 B)
    • order 100 人格主内核(6,003 B)
    • order 150 反拒绝机制(5,341 B)
    • order 160 执行强度(3,095 B)
    • order 200 强化镜像(2,121 B,防上下文稀释)
    • order 210 技能路由(4,794 B,接 DSH 原生 skill 工具)
  • 63 个内置技能:逆向 24 / 渗透 16 / 云 8 / 取证 6 / 其它 9,去重后无重复
  • 技能幂等同步:首次启动复制到 $DSH_HOME/skills,只补缺失不覆盖
  • moyun_frame 工具:5 个换框模板(roleplay / textbook / defender_reverse / transform_first / k3),不常驻提示词
  • moyun_ultimate_profile 工具:自查五层状态与技能数
  • 判拒投影状态条:右下角绿框,实时显示 pass / refusal / fallback
  • 五个分层开关:任意层可单独关闭

修复

  • package.json 补 exports["./client"] —— 缺此项会导致 DSH 报 client-modules: declares dsh.client but exports no "./client" bundle,client 完全不加载(状态条不显示)
  • client.js 投影 key 与服务端对齐为 moyun-ultimate

设计取舍

  • 不做权限层:审批 / 沙箱 / 路径围栏属宿主范畴,交给宿主补丁类插件,避免抢同一批 config id
  • 不压运行时上下文:cwd / GUI URL 等上下文必须保留,否则操作会退化
  • 换框不常驻:5 个框架只在真被拒时按需取,省上下文
  • 技能只补不覆盖:同步到 $DSH_HOME/skills 时只补缺失,绝不覆盖用户手改
  • 不叠加同类插件:多个改同一批 config id 的插件同时装会互相覆盖,两个都废