moyun-ultimate/CHANGELOG.md

55 lines
2.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Changelog
## 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 的插件同时装会互相覆盖,两个都废