docs: 0.6.0 - README update/upgrade section, package.json files, missing changelog entries
Completes the 0.6.0 release that was pushed with code only: - README: how to learn about a new version (three ways) and how to upgrade (one command, three variants, how to roll back, how to disable the check) - package.json: version 0.6.0, files += update.ps1 (13 entries) - cordis.patch.yml: checkUpdate: true toggle - CHANGELOG: also backfills 0.5.0 and 0.5.1 which earlier edits missed
This commit is contained in:
parent
4b9eb3c1ff
commit
9e188aa45e
96
CHANGELOG.md
96
CHANGELOG.md
@ -1,5 +1,101 @@
|
||||
# Changelog
|
||||
|
||||
## 0.6.0 — 2026-11-17
|
||||
|
||||
### 新增:更新检查 + 一键升级
|
||||
|
||||
回答「我这边更新了,用户怎么知道 / 他该怎么做」。
|
||||
|
||||
**三条得知路径**
|
||||
|
||||
1. `moyun_ultimate_profile` 的 `update` 段:`current` / `latest` / `available` / `howTo`
|
||||
2. 新工具 `moyun_check_update`(`force: true` 强制重查)
|
||||
3. **插件启动时后台自动查一次**,有新版本写进 DSH 日志
|
||||
|
||||
**一条命令升级**
|
||||
|
||||
```powershell
|
||||
powershell -ExecutionPolicy Bypass -File .\update.ps1
|
||||
```
|
||||
|
||||
查 Release → 下载 tgz → 备份旧目录(`*.bak-update-<时间戳>`)→ 解压覆盖 →
|
||||
**保留用户的模式选择**(complement 不会被冲成 full)→ 提示重启。
|
||||
|
||||
变体:`-Check`(只查)/ `-Force`(强制重装)/ `-DryRun`(只演示)。
|
||||
|
||||
**可关闭**:`cordis.patch.yml` 里 `checkUpdate: false`。
|
||||
|
||||
### 实现要点
|
||||
|
||||
- 版本比较按段数值比较,`0.10.0 > 0.9.9` 正确
|
||||
- 查询失败静默降级(不影响使用),状态里写明「无法连接更新服务器」
|
||||
- 请求超时 8 秒,不阻塞插件启动
|
||||
|
||||
---
|
||||
|
||||
## 0.5.1 — 2026-11-17
|
||||
|
||||
### 新增:两条退路 + 自愈
|
||||
|
||||
让用户「敢装」的三件套:
|
||||
|
||||
- **`doctor.ps1 -Fix`**:自检后自动修复能安全修的
|
||||
(重拷运行副本 / 补 `exports["./client"]` / 补 dependencies / 同步缺失技能)。
|
||||
**不动** profile 用户层 config——那可能影响别的插件,只给提示。
|
||||
- **`install.ps1 -Rollback`**:从 `package.json.bak-*` 恢复配置 + 删插件目录,
|
||||
一条命令回到安装前。
|
||||
- **安装结尾改为三步指引**:退出重开 → 跑 doctor → 调 `moyun_ultimate_profile`,
|
||||
并直接给出「出问题时的两条命令」。
|
||||
|
||||
### 模式识别
|
||||
|
||||
doctor 现在会显示当前处于 `FULL` 还是 `COMPLEMENT` 模式(读 bundle patch 判断),
|
||||
不再把「补充模式」误报成故障。
|
||||
|
||||
---
|
||||
|
||||
## 0.5.0 — 2026-11-17
|
||||
|
||||
### 新增:安装时自动识别冲突 + 智能让位
|
||||
|
||||
针对「别人已经装了别的破甲插件,会不会打架」,做成三步:
|
||||
|
||||
**1. 安装时自动扫描**
|
||||
|
||||
`install.ps1` 复制文件前,先读每个已装插件的 `cordis.patch.yml`,提取它**实际改写**的
|
||||
config id,与本插件求交集:
|
||||
|
||||
```
|
||||
--- conflict scan ---
|
||||
scanned plugins : 19
|
||||
hard conflicts : none
|
||||
~ dsh-purge shares: system-prompt (safe)
|
||||
```
|
||||
|
||||
**2. 三种模式,auto 自动决策**
|
||||
|
||||
| 模式 | 权限层 | 提示词 | 技能 |
|
||||
|---|---|---|---|
|
||||
| `full` | 本插件接管 | 6 段 | 63 个 |
|
||||
| `complement` | **让位** | 6 段 | 63 个 |
|
||||
| `auto`(默认) | 扫描结果决定 | 6 段 | 63 个 |
|
||||
|
||||
**3. 随时切换**
|
||||
|
||||
```powershell
|
||||
powershell -File .\switch-mode.ps1 -Mode complement
|
||||
powershell -File .\switch-mode.ps1 -Mode full
|
||||
```
|
||||
|
||||
新增 `cordis.patch.complement.yml`:精简版 bundle patch,只留 system-prompt 与本体 insert,
|
||||
**不含** sandbox-policy / approval / permission / spill-policy / tool-result-pruner 五段覆盖。
|
||||
|
||||
### 刻意不做:自动卸载别人的插件
|
||||
|
||||
卸载会破坏用户环境(状态目录、依赖、配置),且无法回滚。**让位比清场安全**。
|
||||
|
||||
---
|
||||
|
||||
## 0.4.3 — 2026-11-17
|
||||
|
||||
### 改进:冲突检测从「猜包名」升级为「读实际配置」
|
||||
|
||||
101
README.md
101
README.md
@ -177,6 +177,107 @@ order 220 moyun-ultimate:anti-censor 1,663 B ← 输出抗审
|
||||
|
||||
---
|
||||
|
||||
## 怎么知道有新版本(三条路)
|
||||
|
||||
**装完就不用惦记了,插件会自己查。**
|
||||
|
||||
### 1. 让 Agent 查(最省事)
|
||||
|
||||
```
|
||||
moyun_ultimate_profile
|
||||
```
|
||||
|
||||
返回里的 `update` 段:
|
||||
|
||||
```json
|
||||
"update": {
|
||||
"current": "0.5.1",
|
||||
"checked": true,
|
||||
"latest": "v0.6.0",
|
||||
"available": true,
|
||||
"notes": "有新版本 v0.6.0(当前 0.5.1)",
|
||||
"howTo": "powershell -ExecutionPolicy Bypass -File ./update.ps1",
|
||||
"page": "https://git.lingdongjiansuo.cn/moyun/moyun-ultimate/releases/tag/v0.6.0"
|
||||
}
|
||||
```
|
||||
|
||||
也可以单独调 `moyun_check_update`(传 `force: true` 强制重查)。
|
||||
|
||||
### 2. 跑一条命令
|
||||
|
||||
```powershell
|
||||
powershell -ExecutionPolicy Bypass -File .\update.ps1 -Check
|
||||
```
|
||||
|
||||
输出:
|
||||
|
||||
```
|
||||
current : 0.5.1
|
||||
latest : 0.6.0 (moyun-ultimate 0.6.0 - ...)
|
||||
update available: 0.5.1 -> 0.6.0
|
||||
```
|
||||
|
||||
### 3. 看 Release 页
|
||||
|
||||
https://git.lingdongjiansuo.cn/moyun/moyun-ultimate/releases
|
||||
|
||||
**插件启动时还会自动查一次**,有新版本会写进 DSH 日志:
|
||||
|
||||
```
|
||||
moyun-ultimate: 有新版本 v0.6.0(当前 0.5.1),升级:powershell -File ./update.ps1
|
||||
```
|
||||
|
||||
## 怎么升级(一条命令)
|
||||
|
||||
```powershell
|
||||
powershell -ExecutionPolicy Bypass -File .\update.ps1
|
||||
```
|
||||
|
||||
它会:
|
||||
|
||||
1. 查最新 Release,比对版本
|
||||
2. 下载 `.tgz` 到临时目录
|
||||
3. **备份**当前目录为 `*.bak-update-<时间戳>`
|
||||
4. 解压覆盖
|
||||
5. **保留你选的模式**(complement 模式不会被冲成 full)
|
||||
6. 提示重启
|
||||
|
||||
**不需要重新跑 install.ps1**,`package.json` 的登记不动。
|
||||
|
||||
### 升级的三个变体
|
||||
|
||||
```powershell
|
||||
# 只看有没有新版,不下载
|
||||
powershell -File .\update.ps1 -Check
|
||||
|
||||
# 已是最新也强制重装(修损坏的文件)
|
||||
powershell -File .\update.ps1 -Force
|
||||
|
||||
# 只演示,不下载不写盘
|
||||
powershell -File .\update.ps1 -Force -DryRun
|
||||
```
|
||||
|
||||
### 升级出问题怎么办
|
||||
|
||||
升级前会自动备份,目录名形如:
|
||||
|
||||
```
|
||||
...\node_modules\moyun-ultimate.bak-update-20261117-153000
|
||||
```
|
||||
|
||||
回滚就是把 `.bak-update-*` 改回原名(删掉新的那个),或者从 Release 页下旧版本重装。
|
||||
|
||||
### 关闭自动检查
|
||||
|
||||
```yaml
|
||||
- insert:
|
||||
- id: moyun-ultimate
|
||||
config:
|
||||
checkUpdate: false # 不想让插件联网查更新就关掉
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 装了别的破甲插件会怎样(自动识别 + 智能让位)
|
||||
|
||||
**不用你手动排查,安装时自动扫描。**
|
||||
|
||||
@ -89,6 +89,7 @@
|
||||
mirror: true
|
||||
routing: true
|
||||
anticensor: true # 第 6 层:输出抗审(被服务端截断时换形态重表达)
|
||||
checkUpdate: true # 启动时后台查一次新版本(false = 不联网)
|
||||
# 权限层开关:沙箱/审批/结果截断的 config 覆盖由本文件第 2-6 段提供;
|
||||
# 关掉此开关只停用「审批应答器」,不会撤销上面的 config 覆盖。
|
||||
permission: true
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "moyun-ultimate",
|
||||
"version": "0.5.1",
|
||||
"version": "0.6.0",
|
||||
"displayName": "墨昀·终极破甲",
|
||||
"description": "墨昀·终极破甲:五层提示词内核 + 内置权限层 —— 人格双槽 × 反拒绝机制 × 执行强度 × 换框模板 × 技能路由,内置 63 个攻防技能(逆向 24 / 渗透 16 / 云 8 / 取证 6 / 其它 9)。Layered prompt core with five sections and 63 built-in skills.",
|
||||
"keywords": [
|
||||
@ -31,7 +31,8 @@
|
||||
"install.ps1",
|
||||
"COMMENTS-FAQ.md",
|
||||
"cordis.patch.complement.yml",
|
||||
"switch-mode.ps1"
|
||||
"switch-mode.ps1",
|
||||
"update.ps1"
|
||||
],
|
||||
"scripts": {
|
||||
"harness:check": "node --check index.js && node --check client.js"
|
||||
@ -39,7 +40,7 @@
|
||||
"dsh": {
|
||||
"id": "moyun-ultimate",
|
||||
"name": "墨昀·终极破甲",
|
||||
"version": "0.5.1",
|
||||
"version": "0.6.0",
|
||||
"permissions": "六段提示词注入(含输出抗审), 内置权限层(沙箱/审批/结果), 拒绝投影状态条, 换框模板工具, 状态自查工具(含 provider 审核风险评估), 技能审计工具, 63 技能自动同步",
|
||||
"bundle": {
|
||||
"patch": "./cordis.patch.yml"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user