dsh-instruction-memory 1.6.0 → 1.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,138 @@
7
7
  > 1.0.13 起由 CI 经 OIDC Trusted Publishing 发布(首个带 provenance 的版本)。
8
8
  > 这些历史 tag **不应回填**——npm 上的版本号已被占用。
9
9
 
10
+ ## [1.6.2] — 2026-11-19
11
+
12
+ 第二轮增量审计(桌面端 runtime 已升到 0.2.2-rc.5)的修复批次,主体是**修 1.6.1 自己引入的一个
13
+ 回归**,以及让测试真正覆盖"桌面壳转发"这种请求形状。
14
+
15
+ ### 修复(1.6.1 的回归)
16
+
17
+ - **`reload` 放回 `READ_ONLY_METHODS`**。1.6.1 把 `export-to-dir` / `send-feedback` 移出只读集合时
18
+ 连 `reload` 一起删掉了,而同一提交的注释、CHANGELOG、README、提交信息**四处**都写着"reload 有意
19
+ 保留"。触发条件是「桌面壳转发(必然剥掉 `Origin` 与 `Sec-Fetch-Site`)+ profile 没有
20
+ `connection` 服务」,此时面板「重新载入」会永久 403。本机 3080 有 `connection` 门,所以线上看不
21
+ 见——这正是它需要一条**不带 origin** 的用例才抓得住的原因。
22
+
23
+ ### 修复(说明与事实不符)
24
+
25
+ - **写门的注释与拒绝文案**。原文称 `Sec-Fetch-Site` "script cannot set it",并告诉用户
26
+ "本机脚本 / curl 的写入会被拒绝"。两者都错:`Origin` 与 `Sec-Fetch-Site` 是普通请求头,本机任何
27
+ 进程都能自带一个(实测加一行 `Sec-Fetch-Site: same-origin` 即把 403 变 200)。现在注释与文案都
28
+ 按"只挡浏览器跨站,不是身份校验"表述,并指向 `REQUIRE_AUTH_FENCE=1` 或宿主的 `connection`。
29
+ - **只读集合的注释**。"它们只读内存、不写任何东西"对 `state` / `read-source` 不准确——两者在首次
30
+ 运行时会物化一份默认空 store。改为"物化的内容是本插件自己的默认值,从不是调用方给的"。
31
+
32
+ ### 修复(测试)
33
+
34
+ - **`section-order-test.mjs` 的 asar 分支此前是死代码**。asar 目录里文件的 `offset` 是**字符串**,
35
+ 而该测试要求 `typeof offset === 'number'`,于是每次读 `app.asar` 都抛错并静默回退到 profile 树。
36
+ 这台机器上 `profiles/node_modules/@deepseek-ai/dsh-system-prompt` 是 TRAE 打包的
37
+ **0.2.2-alpha.2** junction,而真正在跑的是 asar 里的 **0.2.2-rc.5**,于是测试打印了七条绿行、
38
+ 断言的是没人使用的那份宿主。现在:`offset` 两种写法都接受;桌面安装优先;**每个存在的副本都
39
+ 单独断言**,并在每行标出种类与版本(如 `[asar v0.2.2-rc.5]`、`[profile v0.2.2-alpha.2]`)。
40
+ - **`contract-test.mjs` 增加「desktop-forward」形状用例组**:不带 `Origin`、不带
41
+ `Sec-Fetch-Site` 的请求,`reload` / `state` / `history-list` 必须 200,`save-entry` /
42
+ `send-feedback` / `export-to-dir` 必须 403;并把 `READ_ONLY_METHODS` 的成员从源码钉住
43
+ (多一个或少一个都要红)。此前全部用例的默认头都带 `origin`,这个形状从未被测过。
44
+ - **`ui-test.mjs` 覆盖导入确认的两条分支**:取消 → 一个 rev 都不变;无对话框 → 拒绝合并并给出
45
+ 可读提示。1.6.1 加了这个确认却没有任何测试。
46
+ - **`section-order-test.mjs` 兼容 CRLF 检出**。CI 在 Windows 上用 `core.autocrlf` 检出,同一份
47
+ `lib/index.js` 到那边是 CRLF;按 `\n` 锚定的正则本地全绿、只在 Windows runner 上失败。读取后
48
+ 先归一化行尾。
49
+
50
+ ### 修复(存储)
51
+
52
+ - **临时文件在 rename 前消失时重写一次**。CI(Node 22)上出现过一次
53
+ `保存失败:ENOENT … rename 'memory.json.tmp-…' -> 'memory.json'`:临时文件在 `close()` 与
54
+ `rename()` 之间被本进程之外的清理者删掉了(安全扫描器、索引器、runner 清理 `/tmp`),
55
+ 于是用户看到"保存失败",而存储其实完全健康。现在遇到该 ENOENT 会重写一次临时文件再 rename;
56
+ 目标目录不存在(ENOENT 的另一种含义)仍立即失败并保留原错误信息。
57
+
58
+ ### 兼容性
59
+
60
+ - 存储格式不变(`version: 2`)。宿主契约复核:rc.3 → 0.2.2-rc.5 的 10 个依赖点零漂移
61
+ (`SECTION_ORDERS` 900/1000 未动、950 仍空;`forwardWebRequest` 仍删 4 个头并注入 cookie;
62
+ `will-download` 仍只认 `#dsh-download=`)。
63
+ - 装配:`npm test` 现为 8 个脚本(新增 `section-order-test.mjs` 已在 1.6.1 加入);本版在
64
+ Node 24 与 Node 22 上各自全绿。
65
+
66
+ ### 未做
67
+
68
+ - 真实宿主点击级验证(面板渲染、SSE 重连、导出取消分支)仍未执行:GUI 需 launch token,本轮无
69
+ 凭据。`host-smoke` 作业仍是人工项。
70
+ - 跨进程并发写依旧是"锁超时后继续写"的活性优先策略(未改)。
71
+ - `resources\app.reapply-failed-20261119\` 是桌面壳 reapply 失败留下的整份 rc.5 副本,属环境残留,
72
+ 未清理(会让后续取证读错树,建议 owner 删除)。
73
+
74
+ ## [1.6.1] — 2026-11-18
75
+
76
+ 一次针对"桌面端 / 网页端两个宿主"的缺陷审计(架构、授权安全、验收边界三方独立复查 + 代码级复核)
77
+ 之后的修复批次。没有新功能:改动集中在**声明与实际不一致**、**失败被静默**、**门禁够不到真实宿主**三类。
78
+
79
+ ### 修复(安全)
80
+
81
+ - **`send-feedback` 与 `export-to-dir` 移出只读方法集合**。两者从来不是"读":一个用操作者自己的
82
+ SMTP 账号发信,一个往备份目录落盘。在没有 `connection` 服务的 profile 上,`READ_ONLY_METHODS`
83
+ 是写门唯一的豁口,等于允许本机任意进程(含 Android 上任何装了 App 的程序)用用户邮箱发信
84
+ (冷却期内每分钟 2 封)并持续落盘。现在两者与其它写方法一致:无鉴权门时需 `Origin` 或
85
+ `Sec-Fetch-Site: same-origin`。浏览器设置页不受影响。
86
+ - **`reload` 有意留在只读集合**:它只重读磁盘,首次落盘是幂等的;而桌面壳的转发层会剥掉
87
+ `Origin`,把它移出会让"无鉴权门的桌面 profile"上这一按钮直接 403。
88
+
89
+ ### 修复(面板行为)
90
+
91
+ - **桌面端导出不再无条件报"已保存"**。`<a download>` + blob 点击后立刻显示成功,而 Electron
92
+ 主窗口的 `will-download` 只处理 `#dsh-download=` 前缀的 URL,其余(含 blob)交给默认行为——
93
+ 用户取消保存框或下载被策略拦下时,面板和用户都不会知道。文案改为"已请求保存",并说明
94
+ 取消 / 被拦时不会产生文件。
95
+ - **导入加了确认**。整库恢复(restore)一直有确认,导入没有;于是别人递来的一份"记忆备份"
96
+ 可以静默成为此后每轮注入的指令。现在导入走同一套 `askConfirm`,没有对话框的环境按
97
+ fail-closed 处理(拒绝而不是静默合并)。
98
+
99
+ ### 修复(声明与实际不一致)
100
+
101
+ - **删除 `dsh.compatibility.dsh`**。宿主 `dsh-app-boot` 的 `unmetRequirements()` 只读 **顶层**
102
+ `engines.dsh`,缺失则回落 `peerDependencies`(两处都用 `includePrerelease: true` 求值);
103
+ 本包 `engines` 只有 `node`,`engines.dsh` 写在 `dsh` 命名空间下,宿主**不读**。
104
+ `dsh.compatibility.dsh` 在已安装运行时树(`dsh-app-boot`、`dsh-client-ui-plugin-manager`、
105
+ `dshmarket`)里 grep 无读取方。三份"逐字节一致"的副本,实际只有 peer 那份生效。
106
+ - **区间补洞**:`>=0.1.5-alpha.1` 作为起点把 `0.1.5-alpha.0` / `0.1.5-0` 漏在区间外,
107
+ 改为 `>=0.1.5-0`。`host-range-test.mjs` 矩阵新增这两个版本,并新增
108
+ "`dsh.compatibility.dsh` 必须不存在"断言(防第三份副本长回来)。
109
+ - **桌面端 Origin 围栏的文档说反了**:桌面壳对所有非静态路径调用 `forwardWebRequest()`,
110
+ 转发前删除 `host` / `origin` / `cookie` / `sec-fetch-site` 并注入宿主 cookie。因此插件的
111
+ `requestOriginVerdict()` 在桌面端**根本不执行**,桌面端的边界是"回环绑定 + 宿主 cookie"。
112
+ README 与 `TRUSTED_HOSTS` 注释按此更正;旧版"渲染器改用 `dsh-app://` 会整片 403"的推演已被证伪。
113
+ - **Windows 上的 `0o600` 不再被当作权限承诺**:Windows 文件系统忽略 `mode`,文件只是继承目录
114
+ ACL。README 补上 `memory.json` 的 `icacls` 收紧命令(与 `feedback.json` 既有说明对齐)。
115
+ - **反馈披露补齐**:面板声明与真实发送字段对齐(补上界面语言、时区、User-Agent 的说明)。
116
+
117
+ ### 修复(测试与门禁)
118
+
119
+ - **新增 `section-order-test.mjs`**:从**已安装宿主**(profile 树优先,其次桌面 `app.asar`)读出
120
+ `SECTION_ORDERS`,断言 `SECTION_ORDER = 950` 未被占用、严格落在 `FILE_REFERENCE(900)` 与
121
+ `TOOL_BASH(1000)` 之间,且紧邻下方仍是 `FILE_REFERENCE`。宿主换表时注入块会静默移位,
122
+ 此前没有任何断言兜住。解析兼容 `1e3` 形式的字面量(0.2.2 起宿主用科学计数法写表)。
123
+ - **CI 新增 `host-smoke`(`workflow_dispatch`,self-hosted)**:真实宿主端到端(注入 / SSE /
124
+ 路由 / 跨端快照)此前不在任何门禁里,只有 `smoke:hosts` 这个没人记得跑的手动脚本。该作业在
125
+ 缺少 `DSH_GUI_URL` / `DSH_GUI_TOKEN` 时打印 notice 并跳过,不会让 fork 变红。
126
+
127
+ ### 兼容性
128
+
129
+ - 存储格式不变(`version: 2`)。**唯一的行为收紧**:在没有 `connection` 服务、也没有浏览器
130
+ 来源标记的环境里,`send-feedback` 与 `export-to-dir` 现在会被 **403**。让宿主发布
131
+ `connection`(桌面 / 网页端默认如此)或设 `DSH_INSTRUCTION_MEMORY_REQUIRE_AUTH_FENCE=1` 均可。
132
+ - 声明上界仍是 `<0.3.0-0`:0.3.x(含预发布)**不在**声明范围内,宿主升级后本插件会被
133
+ `skipping profile bundle` 跳过。**本次没有放宽**——没有在 0.3.x 上做过任何实测,
134
+ 不放宽未验证的声明。
135
+
136
+ ### 未做(明确记录,不是"已验证")
137
+
138
+ - 真实宿主上的点击级验证(面板渲染、SSE 重连、导出取消分支)**未执行**:GUI 需 launch token,
139
+ 本轮无凭据。`host-smoke` 作业与 token 留给有宿主的环境。
140
+ - 跨进程并发写仍保留"锁超时后继续写"的活性优先策略;契约测试里那条并发用例是进程内模拟。
141
+
10
142
  ## [1.6.0] — 2026-11-14
11
143
 
12
144
  让「按需(auto)」条目第一次真正有机会被执行。此前的 auto 只在会话开头注入一次、措辞是「参考」,
package/README.md CHANGED
@@ -64,9 +64,10 @@ profile 的解析顺序是 **`$DSH_PROFILE_DIR` → `--profile <名字>` → `$D
64
64
  | `ui-test.mjs` | 设置页行为测试:用一个 ~60 行的 React 垫片真实渲染面板、点按钮/填输入框,再断言注入内容随之变化(不出图、不依赖浏览器) |
65
65
  | `verify.mjs` | 装载验证:按 DSH 的方式加载两半,并逐项断言 `memory.schema.json` 与代码中的上限一致 |
66
66
  | `smoke-test.mjs` | 注入渲染逻辑的单元测试(含「只渲染激活配置集」的隔离断言与 cwd 红线) |
67
- | `host-range-test.mjs` | 宿主版本范围契约测试:固定矩阵 × 两种 semver 判定模式,并把 `peerDependencies`(**被执行的那个**)、`dsh.engines.dsh`、`dsh.compatibility.dsh` 三处声明锁到同一个生成值 |
67
+ | `host-range-test.mjs` | 宿主版本范围契约测试:固定矩阵 × 两种 semver 判定模式,把 `peerDependencies`(**被执行的那个**)与 `dsh.engines.dsh` 锁到同一个生成值,并断言第三处副本 `dsh.compatibility.dsh` **不存在**(1.6.1 删除:宿主不读它,留着只会让人以为"改了这里就放宽了兼容") |
68
+ | `section-order-test.mjs` | 注入位置契约测试:从**已安装宿主**(profile 树优先,其次桌面 `app.asar`)读出 `SECTION_ORDERS`,断言 `SECTION_ORDER = 950` 未被占用、严格落在 `FILE_REFERENCE(900)` 与 `TOOL_BASH(1000)` 之间、且紧邻下方仍是 `FILE_REFERENCE`。宿主换表时注入块会**静默移位**,这条断言是唯一护栏 |
68
69
  | `lint.mjs` | 静态门禁,已并入 `npm test`:`node --check` 解析所有随包发布与本仓库运行的 JS 文件,并断言 `lib/` 里不出现 `@deepseek-ai/*` 的包名导入(插件只该通过宿主传进来的上下文对象接触宿主,按包名 import 会把插件钉死在某个安装位置,在 headless / CI / 检出目录里直接解析失败) |
69
- | `live-host-smoke.mjs` | 双端冒烟(**1.4.8 起宿主有鉴权门,需 `--token <启动 token>` 换会话 cookie**,否则全 401):对**正在运行**的 web / 桌面宿主各测 `state` p50/p95、SSE 首事件、注入注册与字符数,并比对两端快照(除 `injection.pulls` 外须逐字段相同);`npm run smoke:hosts`,`--require-pulls` 可把「从未经历真实 Agent 回合」判为失败。单宿主拓扑(桌面应用自己服务 `11685`)用 `--base http://127.0.0.1:11685`,parity 会**显式跳过**而不是假装比过;`--web` / `--desktop` 各选一端,同时给直接报错、零探测时打印 `NO HOST PROBED` 而不是 `ALL CHECKS PASSED`。**刻意不进 `npm test`**——CI 没有桌面端。请求走 Node `http` 直连,绕开 `http_proxy`(否则回环请求也会被代理转发,读数虚高) |
70
+ | `live-host-smoke.mjs` | 双端冒烟(**1.4.8 起宿主有鉴权门,需 `--token <启动 token>` 换会话 cookie**,否则全 401):对**正在运行**的 web / 桌面宿主各测 `state` p50/p95、SSE 首事件、注入注册与字符数,并比对两端快照(除 `injection.pulls` 外须逐字段相同);`npm run smoke:hosts`,`--require-pulls` 可把「从未经历真实 Agent 回合」判为失败。单宿主拓扑(桌面应用自己服务 `11685`)用 `--base http://127.0.0.1:11685`,parity 会**显式跳过**而不是假装比过;`--web` / `--desktop` 各选一端,同时给直接报错、零探测时打印 `NO HOST PROBED` 而不是 `ALL CHECKS PASSED`。**刻意不进 `npm test`**——CI 没有桌面端。1.6.1 起 CI 另有 `workflow_dispatch` 的 `host-smoke` 作业(self-hosted,读 `DSH_GUI_URL` / `DSH_GUI_TOKEN`);缺凭据时它打印 notice 并跳过,不会让 fork 变红。请求走 Node `http` 直连,绕开 `http_proxy`(否则回环请求也会被代理转发,读数虚高) |
70
71
  | `docs/demo.html` | 离线演示页:桩掉 DSH 外壳、加载真实 Client 半渲染设置页(1.5.5 起随 npm 包发布,手机上也能直接打开预演布局) |
71
72
  | `memory.schema.json` | 手改存储文件用的 JSON Schema(随包发布,并被宿主复制到 `memory.json` 旁边) |
72
73
 
@@ -626,6 +627,18 @@ smtp://用户:密码@smtp.example.com:587?secure=0&from=bot@example.com
626
627
  文件权限请自行收紧(Windows 可用 `icacls feedback.json /inheritance:r /grant:r "%USERNAME%:R"`)。
627
628
  凭据缺失时只报"未配置",不会把已配置的密码回显到页面或日志。
628
629
 
630
+ > **`memory.json` 同理,而且更值得收紧(1.6.1 更正)**:插件写存储时传的是 `0o600`,
631
+ > 但那只在 **POSIX 上是边界**——Windows 文件系统**忽略 `mode`**,文件只是继承目录 ACL。
632
+ > 也就是说 Windows 上"只有你能读"成不成立,取决于 `%USERPROFILE%` 那条 ACL,而不是插件。
633
+ > 多用户共用一台机器时请自己收一次(先备份,再改):
634
+ >
635
+ > ```
636
+ > icacls "%USERPROFILE%\.dsh\instruction-memory\memory.json" /inheritance:r /grant:r "%USERNAME%:(R,W)"
637
+ > icacls "%USERPROFILE%\.dsh\instruction-memory" /inheritance:r /grant:r "%USERNAME%:(OI)(CI)(F)"
638
+ > ```
639
+ >
640
+ > 面板也不会再暗示"已设为 0600"——那是 `open(…, 0o600)` 的解释器参数,不是 Windows 上的权限事实。
641
+
629
642
  ### 收件邮箱加密(可选)
630
643
 
631
644
  如果不想让收件邮箱以明文留在 `feedback.json` 里(例如担心截图、误提交或备份泄漏),
@@ -716,14 +729,31 @@ DNS 重绑定恰好推翻了它**:`evil.com` 解析到 `127.0.0.1` 之后,
716
729
  即使某些技巧(如 `no-cors` fetch)不带 `Origin`,`evil.com` 发来的请求仍会被标记为
717
730
  `cross-site`——命中即 **403**。在回环绑定(受保护)时 **`cross-site` 与 `same-site` 都拒绝**:
718
731
  "同站"判定不看端口,而回环上的任何其他端口都是别人跑的本地服务,放行 `same-site` 等于让任意
719
- 本地页面改写你的长期指令。`none`(用户直接导航)放行;curl、Node 与 2020 年前的老浏览器根本
720
- 不发这个头,也不受影响(它们由 Host 与 content-type 校验兜底)。
732
+ 本地页面改写你的长期指令。`none`(用户直接导航)放行。
733
+
734
+ curl、Node 与 2020 年前的老浏览器根本不发这个头——在**有** `connection` 门时它们由宿主与
735
+ content-type 校验兜底;在**没有**门的 profile 里,1.6.1 起「写方法必须带来源标记」这条规则会把
736
+ 它们的写请求拒成 **403**(见下一节)。
721
737
 
722
738
  注意这一整套 Host / `Origin` / `Sec-Fetch-Site` 判定**只在没有 `connection` 服务时执行**。
723
739
  有门时它由宿主做(宿主接受回环、`trustedHosts` 与监听地址,并校验 `Origin` 与 `Host` 同源、
724
740
  `Sec-Fetch-Site` 不是 `cross-site`),本插件不再重复判——重复判会把反代域名全部 403;
725
741
  没有门时非回环绑定直接 503,根本走不到这里。
726
742
 
743
+ **没有 `connection` 时,哪些方法还算"只读"(1.6.2 更正)**:写门把方法分成两拨——只读集合
744
+ (`state`、`history-list`、`read-source`、`export-data`、`reload`)直接放行,其余一律要求浏览器
745
+ 来源标记(`Origin` 或 `Sec-Fetch-Site: same-origin`),否则 403。`export-to-dir` 与
746
+ `send-feedback` **不在**只读集合里:前者往备份目录写文件,后者用**你自己的 SMTP 账号**发信,
747
+ 两者都是需要来源确认的写操作。1.6.0 及以前它们被错放进只读集合,等于让本机任意进程(Android
748
+ 上则是任何装了 App 的程序)绕过写门发信;1.6.1 修复时又把 `reload` 一并误删,1.6.2 已放回——
749
+ 它只重读磁盘、首次落盘幂等,而桌面壳转发时会剥掉 `Origin`,删掉会让「重新载入」在无门 profile
750
+ 上直接 403。
751
+
752
+ **这条规则只挡浏览器跨站,不是身份校验**:`Origin` 与 `Sec-Fetch-Site` 都是普通请求头,本机
753
+ 任何进程都能自带一个(实测:加一行 `Sec-Fetch-Site: same-origin` 就把 403 变成 200)。无门
754
+ profile 的写入对**同机进程**不设防;真正的边界是宿主的 `connection` 服务,或
755
+ `DSH_INSTRUCTION_MEMORY_REQUIRE_AUTH_FENCE=1`(此时整个路由 fail-closed,连只读方法都是 503)。
756
+
727
757
  ### 宿主的鉴权门(connection):非回环绑定没有它就直接拒绝
728
758
 
729
759
  路由挂载后会向宿主申请 `connection` 服务(DSH 的 Web / Go 端都提供,负责把浏览器会话换成
@@ -797,11 +827,15 @@ nginx / Caddy 等反向代理之后远程访问,需要注意:
797
827
  > 后,"没有 `connection` 服务"直接变成 **503**,而不再退回"仅回环"。桌面单用户机器上回环还能
798
828
  > 当边界用;Android 上不能——整机共享回环命名空间,任何装了 App 的程序都能连 127.0.0.1。
799
829
 
800
- > **桌面端渲染器 origin 的一个已知边界**(2026-11-12 实测):宿主对 `Origin: dsh-app://app`
801
- > 的请求返回 **403**,本插件在没有 `connection` 服务时的自判(`requestOriginVerdict`)同样拒绝
802
- > 该 origin(它按 Origin ↔ Host 同源比较)。当前桌面窗口发的是 `http://127.0.0.1:<port>`,
803
- > 所以不受影响;但如果将来的渲染器改用 `dsh-app://` 作为 document origin,设置页会整片 403,
804
- > 届时需要在两侧各放行该 scheme——这不是配置问题,是代码问题。
830
+ > **桌面端为什么看不到 `Origin: dsh-app://app`**(1.6.1 更正;2026-11-18 复核桌面壳源码):
831
+ > 桌面窗口的 document origin 确实是 `dsh-app://app`,但主进程只把固定静态路径当资源,
832
+ > **其余所有路径都经 `forwardWebRequest()` 转发到宿主回环端口**,转发前**删掉 `host` /
833
+ > `origin` / `cookie` / `sec-fetch-site` 四个头**,再注入宿主自己的 cookie
834
+ > (`resources/app/lib/main.js` 的 `forwardWebRequest`)。因此到达本插件的请求**没有 `Origin`**,
835
+ > `requestOriginVerdict()` 里"origin 为空即放行"那一条生效——插件的同源判定在桌面端**根本不执行**。
836
+ > 桌面端的真实边界是**回环绑定 + 宿主 cookie**,不是插件自己的 origin 判定。
837
+ > 上一版这里写的"渲染器若改用 `dsh-app://` 会让设置页整片 403"属于推演,**已被证伪**:该
838
+ > scheme 的请求压根到不了插件路由。若将来壳层不再剥离 `Origin`,这一段需要重验。
805
839
 
806
840
  ### 在 DSH Go(Android)上:鉴权来自平台补丁,不是本插件
807
841
 
@@ -819,22 +853,28 @@ DSH Go 给官方 Web 服务器包了一层**构建期补丁** `runtime/patches/r
819
853
 
820
854
  ## 兼容性
821
855
 
822
- 同一串范围写在**三处**,而**只有一处会被宿主强制执行**——这一点以前写错过,现在按实测更正:
856
+ 同一串范围写在**两处**(1.6.1 删掉了无人读取的第三处),而**宿主只强制其中一处**:
823
857
 
824
858
  | 位置 | 谁读它 | 作用 |
825
859
  | --- | --- | --- |
826
- | **`peerDependencies`**(`@deepseek-ai/dsh-system-prompt`) | **宿主**:`evaluatePluginCompatibility()`(`dsh-app-boot`),在**安装**与 **profile 启动**时执行 | **门禁之一**,不是唯一。1.5.7 起两处实测结论必须同时写在这里:① 门禁读的是**宿主自身版本**(`getDshRuntimeVersion()` → `dsh-app-boot` 的 package.json),并用 `{ includePrerelease: true }` 求值,所以预发布行不会被误判;② 在 `0.2.2-rc.3` 的宿主实现里**存在 `engines.dsh` 时 `peerDependencies` 的区间被忽略**(`dsh-app-boot/src/plugin-compatibility.ts:52`)——也就是说这段 peer 区间可能完全不参与判定,只用来在报错时点名。本仓库仍让三处**逐字节同值**,就是为了不依赖"到底哪一处生效"。这条已从"真正的门禁"更正:**能证明它生效的只有实测,不能靠读声明推断** |
860
+ | **`peerDependencies`**(`@deepseek-ai/dsh-system-prompt`) | **宿主**:`evaluatePluginCompatibility()`(`dsh-app-boot`),在**安装**与 **profile 启动**时执行 | **门禁之一**,不是唯一。1.5.7 起两处实测结论必须同时写在这里:① 门禁读的是**宿主自身版本**(`getDshRuntimeVersion()` → `dsh-app-boot` 的 package.json),并用 `{ includePrerelease: true }` 求值,所以预发布行不会被误判;② 在 `0.2.2-rc.3` 的宿主实现里**存在 `engines.dsh` 时 `peerDependencies` 的区间被忽略**(`dsh-app-boot/src/plugin-compatibility.ts:52`)——也就是说这段 peer 区间可能完全不参与判定,只用来在报错时点名。本仓库仍让两处**逐字节同值**(1.6.1 删掉了无人读取的第三处),就是为了不依赖"到底哪一处生效"。这条已从"真正的门禁"更正:**能证明它生效的只有实测,不能靠读声明推断** |
827
861
  | `dsh.engines.dsh` | 插件市场(第三方,服务端读取) | 市场卡片上的兼容性判定与展示 |
828
- | `dsh.compatibility.dsh` | 未找到读取方(官方文档与 DSH 树内均无) | 仅作人类可读的重复声明 |
862
+ | ~~`dsh.compatibility.dsh`~~ | **1.6.1 已删除**:`dsh-app-boot`、`dsh-client-ui-plugin-manager`、`dshmarket` 全树 grep 无读取方 | 曾经只是人类可读的重复声明,留在包里只会让人以为"改了这里就放宽了兼容" |
829
863
 
830
864
  **1.0.14 之前这里只有后两处,没有 `peerDependencies`**——而宿主的门禁在读到缺失的 `peerDependencies` 时会直接 `return undefined`(`if (!Object.hasOwn(fields, "peerDependencies")) return void 0`),也就是**跳过检查**。换句话说,范围之外的宿主在此之前可以装上而**没有任何拦截或警告**;那串范围当时只是市场元数据,不是门禁。1.0.14 补上 peer 之后,它才真正生效。
831
865
 
832
- 同一串范围(三处逐字节一致,由测试锁定):
866
+ 同一串范围(两处逐字节一致,由 `host-range-test.mjs` 锁定;第三处 `dsh.compatibility.dsh` 已于 1.6.1 删除):
833
867
 
834
868
  ```
835
- >=0.1.3-alpha.2 <0.1.4 || >=0.1.4-0 <0.1.5-0 || >=0.1.5-alpha.1 <0.1.6-0 || >=0.1.6-alpha.0 <0.1.7-0 || >=0.1.7-alpha.0 <0.2.0-0 || >=0.2.1-alpha.0 <0.3.0-0 || >=0.2.2-alpha.0 <0.3.0-0 || >=0.2.0-0 <0.3.0-0
869
+ >=0.1.3-alpha.2 <0.1.4 || >=0.1.4-0 <0.1.5-0 || >=0.1.5-0 <0.1.6-0 || >=0.1.6-alpha.0 <0.1.7-0 || >=0.1.7-alpha.0 <0.2.0-0 || >=0.2.1-alpha.0 <0.3.0-0 || >=0.2.2-alpha.0 <0.3.0-0 || >=0.2.0-0 <0.3.0-0
836
870
  ```
837
871
 
872
+ **1.6.1 更正一处机制描述**:上面第 ② 条说的"存在 `engines.dsh` 时 peer 被忽略",读的是
873
+ `package.json` **顶层**的 `engines.dsh`。本包的 `engines` 字段只有 `node`,`engines.dsh` 是写在
874
+ `dsh` 命名空间下的(`dsh.engines.dsh`),宿主**不读**后者。所以在本包当前的写法下,真正生效的
875
+ 永远是 `peerDependencies` 那一条;`dsh.engines.dsh` 只是市场卡片用的展示副本。0.1.5 行的下界
876
+ 同时从 `>=0.1.5-alpha.1` 改为 `>=0.1.5-0`(旧写法把 `0.1.5-alpha.0` 漏在区间外,是枚举时的一处空洞)。
877
+
838
878
  **验证范围与证据等级**——三者不可混为一谈,下面每一行都标了它到底证明了什么:
839
879
 
840
880
  | 等级 | 证明什么 | 覆盖 |
package/lib/client.js CHANGED
@@ -273,6 +273,7 @@ window.__ModuleLoader__.load({
273
273
  'err.httpDetail': '宿主返回 HTTP {status}:{detail}',
274
274
  'err.timeout': '请求宿主超时(15 秒无响应)',
275
275
  'export.failed': '导出失败:宿主返回了无法识别的数据',
276
+ 'import.confirm': '导入会把文件里的配置集、条目与用户形象并入当前记忆:现有内容不会被删除,但你当前的排列会被整体改写。确定继续?',
276
277
  'import.notJson': '导入文件不是有效的 JSON({detail})',
277
278
  'import.tooLarge': '文件约 {size} MB,远超本插件可导入的规模(约 {limit} MB 以内)。请确认选择的是「导出」生成的 JSON 文件。',
278
279
  'editor.new': '新增指令',
@@ -366,7 +367,7 @@ window.__ModuleLoader__.load({
366
367
  'profiles.truncatedTitle': '这张形象超过注入字数上限,只有开头进入本轮提示',
367
368
  'profiles.omitted': '本轮未包含',
368
369
  'profiles.omittedTitle': '这张形象因注入字数上限未进入本轮提示',
369
- 'export.saved': '已开始下载;若没有文件出现,请检查浏览器的下载列表',
370
+ 'export.saved': '已请求保存。若保存框被取消、或下载被浏览器/系统拦下,文件不会出现——请重试,或改用下面的「完整 JSON」',
370
371
  'export.savedToApp': '已交给 DSH Go 保存:在系统分享面板里选「保存到文件」即可',
371
372
  'export.fallbackHint': '当前环境无法触发文件下载,完整 JSON 已放在下面:全选复制后自行保存',
372
373
  'export.fallbackClose': '关闭',
@@ -477,7 +478,7 @@ window.__ModuleLoader__.load({
477
478
  'feedback.bodyPlaceholder': '复现步骤、期望结果、实际表现;建议请说明使用场景',
478
479
  'feedback.contactLabel': '联系方式(可选)',
479
480
  'feedback.contactPlaceholder': '邮箱 / 微信 / GitHub 用户名,便于回复你',
480
- 'feedback.hint': '发送时会自动附带插件版本、DSH / Node 版本与运行平台,不包含你的指令内容。',
481
+ 'feedback.hint': '发送时会自动附带插件版本、DSH / Node 版本、运行平台(系统与架构)、界面语言、时区与浏览器标识(User-Agent),不包含你的指令内容。',
481
482
  'feedback.send': '发送反馈',
482
483
  'feedback.sending': '正在发送…',
483
484
  'feedback.clear': '清空',
@@ -575,6 +576,7 @@ window.__ModuleLoader__.load({
575
576
  'err.httpDetail': 'Host returned HTTP {status}: {detail}',
576
577
  'err.timeout': 'Host request timed out (no response for 15 s)',
577
578
  'export.failed': 'Export failed: the host returned unrecognized data',
579
+ 'import.confirm': 'Import merges the file’s sets, entries and personas into the current memory: nothing is deleted, but your current arrangement is rewritten. Continue?',
578
580
  'import.notJson': 'The import file is not valid JSON ({detail})',
579
581
  'import.tooLarge': 'This file is about {size} MB, far beyond what this plugin can import (keep it within about {limit} MB). Make sure you selected a JSON file produced by Export.',
580
582
  'editor.new': 'New instruction',
@@ -668,7 +670,7 @@ window.__ModuleLoader__.load({
668
670
  'profiles.truncatedTitle': 'This persona exceeds the injection limit; only its head reached this turn',
669
671
  'profiles.omitted': 'Not in this turn',
670
672
  'profiles.omittedTitle': 'This persona was dropped by the injection limit and did not reach this turn',
671
- 'export.saved': 'Download started — if no file appears, check your browser’s download list',
673
+ 'export.saved': 'Save requested. If you cancelled the dialog or the download was blocked, no file is written — retry, or use the full JSON below',
672
674
  'export.savedToApp': 'Handed to DSH Go — pick “Save to Files” in the system share sheet',
673
675
  'export.fallbackHint': 'This environment cannot start a file download; the full JSON is below — select all and copy it',
674
676
  'export.fallbackClose': 'Close',
@@ -779,7 +781,7 @@ window.__ModuleLoader__.load({
779
781
  'feedback.bodyPlaceholder': 'Steps to reproduce, expected result, actual result; for a suggestion, describe the use case',
780
782
  'feedback.contactLabel': 'Contact (optional)',
781
783
  'feedback.contactPlaceholder': 'Email / WeChat / GitHub handle so the maintainer can reply',
782
- 'feedback.hint': 'The mail automatically includes the plugin version, DSH / Node versions and platform — never your instruction content.',
784
+ 'feedback.hint': 'The mail automatically includes the plugin version, DSH / Node versions, platform (OS and arch), interface locale, time zone and browser User-Agent — never your instruction content.',
783
785
  'feedback.send': 'Send feedback',
784
786
  'feedback.sending': 'Sending…',
785
787
  'feedback.clear': 'Clear',
@@ -2890,6 +2892,16 @@ window.__ModuleLoader__.load({
2890
2892
  setError(t('import.notJson', { detail: String(err && err.message ? err.message : err) }))
2891
2893
  return
2892
2894
  }
2895
+ // 1.6.1: the whole-store restore above asks first; import did not, so
2896
+ // a file someone handed the user could become the instructions
2897
+ // injected into every later turn with no confirmation at all. Same
2898
+ // ask, same fallback semantics: with no dialog available, refuse
2899
+ // rather than merge silently.
2900
+ const askImport = askConfirm(t('import.confirm'))
2901
+ if (askImport !== CONFIRM_YES) {
2902
+ if (askImport === CONFIRM_UNAVAILABLE) setError(t('confirm.unavailable'))
2903
+ return
2904
+ }
2893
2905
  await send('import-data', { payload, baseRev: revOf() })
2894
2906
  } catch (err) {
2895
2907
  setError(String(err && err.message ? err.message : err))
package/lib/index.js CHANGED
@@ -171,7 +171,16 @@ const API_PREFIX = '/instruction-memory/api'
171
171
  * unusable behind a reverse proxy that forwards the public `Host` (nginx's
172
172
  * default `proxy_set_header Host $host`). Listing the published hostname here
173
173
  * re-opens exactly that one name and nothing else: the loopback rule still
174
- * applies to everything else, and `Origin`/`Sec-Fetch-Site` are still enforced.
174
+ * applies to everything else.
175
+ *
176
+ * What it does NOT do is weaken the per-request checks — but those checks are
177
+ * narrower than an earlier version of this comment claimed. `Origin` and
178
+ * `Sec-Fetch-Site` exist only when a browser reaches the route directly. The
179
+ * desktop shell forwards every non-static path through `forwardWebRequest`,
180
+ * which deletes `origin`, `sec-fetch-site`, `host` and `cookie` and injects the
181
+ * host's own cookie (resources/app/lib/main.js). On a desktop the origin rule
182
+ * therefore never runs, and the boundary is the loopback bind plus whatever
183
+ * `connection` enforces.
175
184
  */
176
185
  const TRUSTED_HOSTS_ENV = 'DSH_INSTRUCTION_MEMORY_TRUSTED_HOSTS'
177
186
  /**
@@ -3152,8 +3161,12 @@ export function apply(ctx, deps = {}) {
3152
3161
  const existing = await readFile(target, 'utf8').catch(() => null)
3153
3162
  if (existing !== source) {
3154
3163
  // Atomic like the store itself: a crash mid-copy must not leave a
3155
- // truncated schema for the user's editor to validate against, and the
3156
- // 0600 bit matches every other file this plugin writes.
3164
+ // truncated schema for the user's editor to validate against. The 0600
3165
+ // bit matches every other file this plugin writes, and on POSIX that is
3166
+ // the whole story. On Windows `mode` is ignored by the filesystem: the
3167
+ // file simply inherits the directory's ACLs, so the bit is a POSIX
3168
+ // convenience, never a Windows permission boundary. See the icacls note
3169
+ // in the README before treating this store as private on a shared box.
3157
3170
  const tmp = target + '.tmp-' + randomUUID()
3158
3171
  try {
3159
3172
  await writeFile(tmp, source, { encoding: 'utf8', mode: 0o600 })
@@ -3295,15 +3308,24 @@ export function apply(ctx, deps = {}) {
3295
3308
  // user profile) personal notes, so on a multi-user POSIX host it must not
3296
3309
  // land world-readable the way a bare writeFile (0666 & ~umask = 0644)
3297
3310
  // would. Windows ignores the bit and inherits the directory ACL instead.
3298
- const tmpHandle = await open(tmpPath, 'w', 0o600)
3299
- try {
3300
- await tmpHandle.writeFile(text, 'utf8')
3301
- // Flush the temp file BEFORE the rename publishes it: otherwise a
3302
- // power cut can leave the new name pointing at unwritten blocks.
3303
- await tmpHandle.sync()
3304
- } finally {
3305
- await tmpHandle.close()
3311
+ //
3312
+ // Kept as a closure rather than inlined because the rename below may have
3313
+ // to reconstruct the temp file: a cleaner process that removes files in
3314
+ // $TMPDIR (a security scanner, an indexer, a CI runner tidying /tmp)
3315
+ // deletes it between close() and rename(), and the user would then be told
3316
+ // their save failed even though nothing about the store was wrong.
3317
+ const persistTemp = async () => {
3318
+ const tmpHandle = await open(tmpPath, 'w', 0o600)
3319
+ try {
3320
+ await tmpHandle.writeFile(text, 'utf8')
3321
+ // Flush the temp file BEFORE the rename publishes it: otherwise a
3322
+ // power cut can leave the new name pointing at unwritten blocks.
3323
+ await tmpHandle.sync()
3324
+ } finally {
3325
+ await tmpHandle.close()
3326
+ }
3306
3327
  }
3328
+ await persistTemp()
3307
3329
  // Both rolling copies stand for the PREVIOUS good version, so both are
3308
3330
  // taken before the atomic replace, and neither may ever be renamed into
3309
3331
  // place (see the long note above).
@@ -3377,8 +3399,23 @@ export function apply(ctx, deps = {}) {
3377
3399
  try {
3378
3400
  await rename(tmpPath, storePath)
3379
3401
  } catch (err) {
3380
- await unlink(tmpPath).catch(() => {})
3381
- throw err
3402
+ if (err === null || err === undefined || err.code !== 'ENOENT') {
3403
+ await unlink(tmpPath).catch(() => {})
3404
+ throw err
3405
+ }
3406
+ // The temp file was removed by something outside this process between
3407
+ // close() and rename(). Rewriting it once costs one small write and
3408
+ // turns a spurious "保存失败" into a normal save; a missing store
3409
+ // DIRECTORY (the other meaning of ENOENT here) fails again immediately
3410
+ // and keeps its original error.
3411
+ logInfo('the store temp file disappeared before rename; rewriting it once')
3412
+ await persistTemp()
3413
+ try {
3414
+ await rename(tmpPath, storePath)
3415
+ } catch (retryErr) {
3416
+ await unlink(tmpPath).catch(() => {})
3417
+ throw retryErr
3418
+ }
3382
3419
  }
3383
3420
  // Make the directory entry itself durable: without this the rename can be
3384
3421
  // lost on power failure even though the file contents were flushed.
@@ -6011,15 +6048,39 @@ export function apply(ctx, deps = {}) {
6011
6048
  * instead of relying on an orange warning in the panel.
6012
6049
  * 2. Without a fence, a mutation must carry a browser origin marker: either
6013
6050
  * `Origin` or `Sec-Fetch-Site: same-origin`. A page always sends one of
6014
- * the two, so the settings page is unaffected; a bare process is refused
6015
- * (403). `Sec-Fetch-Site` is accepted because script cannot set it — it is
6016
- * the browser's own claim, not the caller's.
6051
+ * the two, so the settings page is unaffected, and a process that sends
6052
+ * neither is refused (403).
6053
+ *
6054
+ * Read rule 2 as a CROSS-SITE guard, not as authentication. Both are
6055
+ * ordinary request headers, so a process on this machine can set either
6056
+ * one and walk straight through — verified: adding
6057
+ * `Sec-Fetch-Site: same-origin` alone turns a 403 into a 200. Nothing
6058
+ * here can distinguish that from a browser. The only real boundaries for
6059
+ * a fence-less profile are the host's `connection` service (below) or
6060
+ * DSH_INSTRUCTION_MEMORY_REQUIRE_AUTH_FENCE=1.
6017
6061
  *
6018
6062
  * Set DSH_INSTRUCTION_MEMORY_REQUIRE_AUTH_FENCE=1 to make the whole route fail
6019
6063
  * closed instead of falling back to these two rules.
6020
6064
  */
6065
+ /**
6066
+ * Methods that are safe to serve with no gate in front of them: they answer
6067
+ * from what is already in memory. `state` and `read-source` can materialise
6068
+ * the default empty store on first use, but its content is this plugin's own
6069
+ * default and never the caller's, so nothing an attacker sends reaches disk.
6070
+ *
6071
+ * 1.6.1 removed two entries that were never read-only: `export-to-dir` writes
6072
+ * a file into the backup directory, and `send-feedback` sends mail through the
6073
+ * operator's own SMTP account (a cool-down is a rate limit, not an
6074
+ * authorisation).
6075
+ *
6076
+ * `reload` stays, and 1.6.2 is the fix for having dropped it by accident: it
6077
+ * only re-reads the store, and it is the one write-shaped call the panel makes
6078
+ * on its own — a desktop shell deletes `Origin` and `Sec-Fetch-Site` when it
6079
+ * forwards (see TRUSTED_HOSTS above), so gating it turned the "重新载入"
6080
+ * button into a permanent 403 on any profile without a `connection` service.
6081
+ */
6021
6082
  const READ_ONLY_METHODS = new Set([
6022
- 'state', 'history-list', 'read-source', 'export-data', 'export-to-dir', 'reload', 'send-feedback',
6083
+ 'state', 'history-list', 'read-source', 'export-data', 'reload',
6023
6084
  ])
6024
6085
 
6025
6086
  const writeGateRefusal = (method, headers) => {
@@ -6041,9 +6102,9 @@ export function apply(ctx, deps = {}) {
6041
6102
  if (origin === '' && fetchSite !== 'same-origin') {
6042
6103
  return {
6043
6104
  status: 403,
6044
- message: '拒绝无来源标记的修改请求:当前 profile 没有宿主的会话鉴权门,因此修改必须来自浏览器'
6045
- + '(带 Origin 或 Sec-Fetch-Site: same-origin)。设置页读写不受影响;本机脚本 / curl 的写入会被拒绝。'
6046
- + '如需完全关闭该路由,设置 DSH_INSTRUCTION_MEMORY_REQUIRE_AUTH_FENCE=1。',
6105
+ message: '拒绝无来源标记的修改请求:当前 profile 没有宿主的会话鉴权门,因此修改必须带浏览器来源标记'
6106
+ + '(Origin 或 Sec-Fetch-Site: same-origin)。设置页不受影响。这不是身份校验——两个头本机进程也能自带;'
6107
+ + '要真正关闭该路由,请设置 DSH_INSTRUCTION_MEMORY_REQUIRE_AUTH_FENCE=1,或让宿主提供 connection 服务。',
6047
6108
  }
6048
6109
  }
6049
6110
  return null
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-instruction-memory",
3
- "version": "1.6.0",
3
+ "version": "1.6.2",
4
4
  "description": "User-only instruction memory for DSH: long-term instructions maintained in the settings UI and auto-injected into every conversation — the plugin registers no model-facing tool, so the model has no in-plugin write path (a same-permission process can still edit the file directly). 指令记忆:只由用户在设置页维护的长期指令,自动注入此后每轮对话;插件不注册任何面向模型的工具,模型没有插件内的写入口。",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -52,7 +52,7 @@
52
52
  "node": ">=20"
53
53
  },
54
54
  "peerDependencies": {
55
- "@deepseek-ai/dsh-system-prompt": ">=0.1.3-alpha.2 <0.1.4 || >=0.1.4-0 <0.1.5-0 || >=0.1.5-alpha.1 <0.1.6-0 || >=0.1.6-alpha.0 <0.1.7-0 || >=0.1.7-alpha.0 <0.2.0-0 || >=0.2.1-alpha.0 <0.3.0-0 || >=0.2.2-alpha.0 <0.3.0-0 || >=0.2.0-0 <0.3.0-0"
55
+ "@deepseek-ai/dsh-system-prompt": ">=0.1.3-alpha.2 <0.1.4 || >=0.1.4-0 <0.1.5-0 || >=0.1.5-0 <0.1.6-0 || >=0.1.6-alpha.0 <0.1.7-0 || >=0.1.7-alpha.0 <0.2.0-0 || >=0.2.1-alpha.0 <0.3.0-0 || >=0.2.2-alpha.0 <0.3.0-0 || >=0.2.0-0 <0.3.0-0"
56
56
  },
57
57
  "peerDependenciesMeta": {
58
58
  "@deepseek-ai/dsh-system-prompt": {
@@ -65,7 +65,7 @@
65
65
  "author": "huangpeiyan",
66
66
  "scripts": {
67
67
  "lint": "node lint.mjs",
68
- "test": "node lint.mjs && node host-range-test.mjs && node smoke-test.mjs && node contract-test.mjs && node verify.mjs && node feedback-test.mjs && node ui-test.mjs",
68
+ "test": "node lint.mjs && node host-range-test.mjs && node section-order-test.mjs && node smoke-test.mjs && node contract-test.mjs && node verify.mjs && node feedback-test.mjs && node ui-test.mjs",
69
69
  "prepublishOnly": "node check-metadata.mjs && npm test",
70
70
  "smoke:hosts": "node live-host-smoke.mjs"
71
71
  },
@@ -81,10 +81,7 @@
81
81
  "platform": "web"
82
82
  },
83
83
  "engines": {
84
- "dsh": ">=0.1.3-alpha.2 <0.1.4 || >=0.1.4-0 <0.1.5-0 || >=0.1.5-alpha.1 <0.1.6-0 || >=0.1.6-alpha.0 <0.1.7-0 || >=0.1.7-alpha.0 <0.2.0-0 || >=0.2.1-alpha.0 <0.3.0-0 || >=0.2.2-alpha.0 <0.3.0-0 || >=0.2.0-0 <0.3.0-0"
85
- },
86
- "compatibility": {
87
- "dsh": ">=0.1.3-alpha.2 <0.1.4 || >=0.1.4-0 <0.1.5-0 || >=0.1.5-alpha.1 <0.1.6-0 || >=0.1.6-alpha.0 <0.1.7-0 || >=0.1.7-alpha.0 <0.2.0-0 || >=0.2.1-alpha.0 <0.3.0-0 || >=0.2.2-alpha.0 <0.3.0-0 || >=0.2.0-0 <0.3.0-0"
84
+ "dsh": ">=0.1.3-alpha.2 <0.1.4 || >=0.1.4-0 <0.1.5-0 || >=0.1.5-0 <0.1.6-0 || >=0.1.6-alpha.0 <0.1.7-0 || >=0.1.7-alpha.0 <0.2.0-0 || >=0.2.1-alpha.0 <0.3.0-0 || >=0.2.2-alpha.0 <0.3.0-0 || >=0.2.0-0 <0.3.0-0"
88
85
  }
89
86
  }
90
87
  }