dsh-auth-remote 0.1.7 → 0.1.9
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 +12 -1
- package/CHANGELOG.zh-CN.md +12 -1
- package/CONTRIBUTING.md +1 -1
- package/CONTRIBUTING.zh-CN.md +1 -1
- package/README.md +30 -12
- package/README.zh-CN.md +30 -12
- package/dist/cli.js +50 -0
- package/dist/cli.js.map +2 -2
- package/dist/client.js +457 -1
- package/dist/client.js.map +4 -4
- package/dist/index.js +366 -26
- package/dist/index.js.map +3 -3
- package/dist/login.js +50 -0
- package/dist/login.js.map +2 -2
- package/dist/types/adapters/dsh/account-callback.d.ts +12 -0
- package/dist/types/adapters/dsh/account-callback.d.ts.map +1 -0
- package/dist/types/adapters/dsh/browser-capability.d.ts +1 -1
- package/dist/types/adapters/dsh/browser-capability.d.ts.map +1 -1
- package/dist/types/adapters/dsh/webserver.d.ts +3 -0
- package/dist/types/adapters/dsh/webserver.d.ts.map +1 -1
- package/dist/types/http/account-login.d.ts +43 -0
- package/dist/types/http/account-login.d.ts.map +1 -0
- package/dist/types/http/gate.d.ts.map +1 -1
- package/dist/types/http/origin-policy.d.ts.map +1 -1
- package/dist/types/http/public-assets.d.ts +3 -0
- package/dist/types/http/public-assets.d.ts.map +1 -0
- package/dist/types/http/routes.d.ts +16 -1
- package/dist/types/http/routes.d.ts.map +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/shared/account-login.d.ts +21 -0
- package/dist/types/shared/account-login.d.ts.map +1 -0
- package/dist/types/shared/i18n.d.ts +50 -0
- package/dist/types/shared/i18n.d.ts.map +1 -1
- package/dist/types/shared/locales/en.d.ts +25 -0
- package/dist/types/shared/locales/en.d.ts.map +1 -1
- package/dist/types/shared/locales/zh.d.ts +25 -0
- package/dist/types/shared/locales/zh.d.ts.map +1 -1
- package/docs/deployment.md +21 -15
- package/docs/deployment.zh-CN.md +21 -15
- package/docs/development.md +16 -6
- package/docs/development.zh-CN.md +16 -6
- package/docs/legacy-compatibility.md +170 -117
- package/docs/legacy-compatibility.zh-CN.md +170 -0
- package/docs/releasing.md +6 -6
- package/docs/releasing.zh-CN.md +6 -6
- package/docs/reverse-proxy.md +2 -2
- package/docs/reverse-proxy.zh-CN.md +2 -2
- package/package.json +25 -11
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
# Legacy 兼容维护清单
|
|
2
|
+
|
|
3
|
+
[English](legacy-compatibility.md)
|
|
4
|
+
|
|
5
|
+
最后复核:2026-10-15。本文与英文清单共同维护同一组稳定 ID、版本事实、代码位置、测试与退役条件。修改任一语言时同步另一语言;矩阵是检索入口,条目是维护依据。本文记录 DSH 精确版本差异,不以发布顺序或版本简称代替适用范围。
|
|
6
|
+
|
|
7
|
+
## 范围与复核规则
|
|
8
|
+
|
|
9
|
+
插件 `0.1.9` 声明支持 DSH `0.1.7-rc.1`、`0.1.7-rc.2`、`0.2.0-rc.1`、`0.2.0-rc.2`、`0.2.1-alpha.1`、`0.2.1-alpha.2`、`0.2.1-alpha.3`,默认开发和测试版本为 `0.2.1-alpha.3`。运行时范围 `>=0.1.7-rc.1` 包含预发布版本;向前准入不代表已验证,仍须检查包身份与必要 API。未列入矩阵的版本不继承矩阵中的验证结论;手动账号回填也不会自动启用。
|
|
10
|
+
|
|
11
|
+
- 修改 peers、`dsh.compatibility`、运行时准入、测试目标、CI 或用户兼容声明前,对照两张矩阵及所有相关条目。
|
|
12
|
+
- `dsh-runtime`:适用版本与支持集合仍有交集则保留相应适配;交集为空时,在同一次变更删除专属实现与测试,更新两种语言的矩阵、条目和指南。共享安全校验不随专属分支删除。
|
|
13
|
+
- `plugin-contract`:按插件配置迁移政策退役,不能依据 DSH 版本退役。插件 `0.1.5` 的 `allowedOrigins` 输入仍由插件 `0.1.9` 兼容。
|
|
14
|
+
- 缺少精确版本证据时保留实现,明确登记缺口。不同版本通过相同测试,不证明其内部实现相同。
|
|
15
|
+
- 支持范围或共享宿主适配变更须执行同一最终产物的完整声明版本 CLI、浏览器和安装冒烟矩阵。`DSH-ACCOUNT-001` 专项完整回归只针对 `0.2.1-alpha.3`;对 `0.1.7-rc.1`、`0.1.7-rc.2`、`0.2.0-rc.1`、`0.2.0-rc.2`、`0.2.1-alpha.1`、`0.2.1-alpha.2` 检查启动、设置入口和适配未启用即可。CI 的完整版本矩阵保持不变。
|
|
16
|
+
|
|
17
|
+
## 功能 → 版本对照表
|
|
18
|
+
|
|
19
|
+
“原生”表示该精确 DSH 安装包提供能力;“插件校验/补值/启用”表示本插件保留适配;“拒绝/无/未提供”分别表示插件拒绝配置、缺少原生参数或没有该原生功能;“待核实”不代表可以删除代码。HTTP 反向代理的公网 HTTPS 与 DSH 原生 HTTPS 监听是不同能力。
|
|
20
|
+
|
|
21
|
+
| 功能与维护 ID | `0.1.7-rc.1` | `0.1.7-rc.2` | `0.2.0-rc.1` | `0.2.0-rc.2` | `0.2.1-alpha.1` | `0.2.1-alpha.2` | `0.2.1-alpha.3` |
|
|
22
|
+
| ------------------------------------------------------------------- | ------------------- | ------------------- | ------------------- | ------------------- | -------------------- | ------------------------ | ---------------------------------------- |
|
|
23
|
+
| 具体 IPv4 监听校验 · [DSH-HOST-001](#dsh-host-001) | 插件校验 | 插件校验 | 插件校验 | 插件校验 | 插件校验 | 原生校验 | 原生校验 |
|
|
24
|
+
| 原生 IPv6 监听 · [DSH-HOST-001](#dsh-host-001) | 拒绝 | 拒绝 | 拒绝 | 拒绝 | 拒绝 | 原生 | 原生 |
|
|
25
|
+
| 原生 HTTPS 监听 · [DSH-PROTOCOL-001](#dsh-protocol-001) | 拒绝 | 拒绝 | 拒绝 | 拒绝 | 拒绝 | 原生 | 原生 |
|
|
26
|
+
| 服务端 Connection 桥接 · [DSH-PROTOCOL-001](#dsh-protocol-001) | HTTP / `127.0.0.1` | HTTP / `127.0.0.1` | HTTP / `127.0.0.1` | HTTP / `127.0.0.1` | HTTP / `127.0.0.1` | 实际协议与绑定 authority | 实际协议与绑定 authority |
|
|
27
|
+
| 插件唯一 `publicUrl` 入口 · [DSH-PUBLIC-001](#dsh-public-001) | 支持 | 支持 | 支持 | 支持 | 支持 | 支持 | 支持 |
|
|
28
|
+
| 原生 `--public-url` 参数 · [DSH-PUBLIC-001](#dsh-public-001) | 无 | 无 | 无 | 无 | 原生 | 原生 | 原生 |
|
|
29
|
+
| 模型侧 Web 地址 · [DSH-PUBLIC-001](#dsh-public-001) | 原生回环文本段 | 原生回环文本段 | 原生回环文本段 | 原生回环文本段 | 最终公开根地址文本段 | 最终公开根地址文本段 | 最终公开根地址运行时上下文 |
|
|
30
|
+
| `DSH_WEB_URL` · [DSH-PUBLIC-001](#dsh-public-001) | 原生回环地址 | 原生回环地址 | 原生回环地址 | 原生回环地址 | 最终公开根地址 | 最终公开根地址 | 最终公开根地址 |
|
|
31
|
+
| 圆角与焦点主题 token · [DSH-THEME-001](#dsh-theme-001) | 插件补值 | 原生 | 原生 | 原生 | 原生 | 原生 | 原生 |
|
|
32
|
+
| 设置入口 · [DSH-TEST-001](#dsh-test-001) | 侧栏设置 | 侧栏设置 | 侧栏设置 | 侧栏设置 | 侧栏设置 | 侧栏设置 | 账号菜单 → 设置 |
|
|
33
|
+
| 首次提示/保存后重载的精确触发 · [DSH-TEST-001](#dsh-test-001) | 待核实;保留 helper | 待核实;保留 helper | 待核实;保留 helper | 待核实;保留 helper | 待核实;保留 helper | 待核实;保留 helper | 账号引导已适配;notice/reload 触发待核实 |
|
|
34
|
+
| 原生官方账号提供者 · [DSH-ACCOUNT-001](#dsh-account-001) | 有;仅回环 HTTP | 有;仅回环 HTTP | 有;仅回环 HTTP | 有;仅回环 HTTP | 有;仅回环 HTTP | 有;仅回环 HTTP | 有;仅回环 HTTP |
|
|
35
|
+
| 普通 Web 官方账号入口 · [DSH-ACCOUNT-001](#dsh-account-001) | 不启用;仅桌面 | 不启用;仅桌面 | 不启用;仅桌面 | 不启用;仅桌面 | 不启用;仅桌面 | 不启用;仅桌面 | 启用 |
|
|
36
|
+
| 原生 `startSignIn` 首参 · [DSH-ACCOUNT-001](#dsh-account-001) | locale 字符串 | 客户端元数据对象 | 客户端元数据对象 | 客户端元数据对象 | 客户端元数据对象 | 客户端元数据对象 | 客户端元数据对象 |
|
|
37
|
+
| 插件官方账号手动回填 · [DSH-ACCOUNT-001](#dsh-account-001) | 不启用 | 不启用 | 不启用 | 不启用 | 不启用 | 不启用 | 插件启用;保留原生 API Key 选择 |
|
|
38
|
+
| 插件 `0.1.5` 配置输入迁移 · [PLUGIN-CONFIG-001](#plugin-config-001) | 保留 | 保留 | 保留 | 保留 | 保留 | 保留 | 保留 |
|
|
39
|
+
|
|
40
|
+
## 版本 → 功能对照表
|
|
41
|
+
|
|
42
|
+
每行直接列出该精确版本的实现分支和应复核的条目。`0.1.7-rc.1` 的原生 `startSignIn` 首参是 locale 字符串;`0.1.7-rc.2`、`0.2.0-rc.1`、`0.2.0-rc.2`、`0.2.1-alpha.1`、`0.2.1-alpha.2`、`0.2.1-alpha.3` 使用客户端元数据对象。删除某个版本的支持时,先找该行,再检查条目的完整适用集合;某一行退出支持不代表该条目可整体删除。
|
|
43
|
+
|
|
44
|
+
| DSH 精确版本 | 监听与桥接差异 | 原生公开地址、模型提示与环境变量 | 主题与设置入口 | 官方账号与手动回填 | 删除支持或迁移时复核 |
|
|
45
|
+
| --------------- | ------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ | --------------------------------------------------------------- | ----------------------------------------------------------------------------- |
|
|
46
|
+
| `0.1.7-rc.1` | 插件校验具体 IPv4;仅 HTTP;Connection 使用 HTTP / `127.0.0.1` | 无 `--public-url`;插件公开入口可用;模型文本与 `DSH_WEB_URL` 仍为原生回环地址 | 三个 token 需补值;侧栏设置;notice/reload 触发待核实 | 原生账号服务存在;普通 Web 入口不启用;手动回填关闭 | DSH-HOST-001、DSH-PROTOCOL-001、DSH-PUBLIC-001、DSH-THEME-001、DSH-TEST-001 |
|
|
47
|
+
| `0.1.7-rc.2` | 插件校验具体 IPv4;仅 HTTP;Connection 使用 HTTP / `127.0.0.1` | 无 `--public-url`;插件公开入口可用;模型文本与 `DSH_WEB_URL` 仍为原生回环地址 | 三个 token 原生存在;侧栏设置;notice/reload 触发待核实 | 原生账号服务存在;普通 Web 入口不启用;手动回填关闭 | DSH-HOST-001、DSH-PROTOCOL-001、DSH-PUBLIC-001、DSH-TEST-001 |
|
|
48
|
+
| `0.2.0-rc.1` | 插件校验具体 IPv4;仅 HTTP;Connection 使用 HTTP / `127.0.0.1` | 无 `--public-url`;插件公开入口可用;模型文本与 `DSH_WEB_URL` 仍为原生回环地址 | 三个 token 原生存在;侧栏设置;notice/reload 触发待核实 | 原生账号服务存在;普通 Web 入口不启用;手动回填关闭 | DSH-HOST-001、DSH-PROTOCOL-001、DSH-PUBLIC-001、DSH-TEST-001 |
|
|
49
|
+
| `0.2.0-rc.2` | 插件校验具体 IPv4;仅 HTTP;Connection 使用 HTTP / `127.0.0.1` | 无 `--public-url`;插件公开入口可用;模型文本与 `DSH_WEB_URL` 仍为原生回环地址 | 三个 token 原生存在;侧栏设置;notice/reload 触发待核实 | 原生账号服务存在;普通 Web 入口不启用;手动回填关闭 | DSH-HOST-001、DSH-PROTOCOL-001、DSH-PUBLIC-001、DSH-TEST-001 |
|
|
50
|
+
| `0.2.1-alpha.1` | 插件校验具体 IPv4;仅 HTTP;Connection 使用 HTTP / `127.0.0.1` | 有 `--public-url`;模型文本与 `DSH_WEB_URL` 使用插件最终公开根地址 | 三个 token 原生存在;侧栏设置;notice/reload 触发待核实 | 原生账号服务存在;普通 Web 入口不启用;手动回填关闭 | DSH-HOST-001、DSH-PROTOCOL-001、DSH-PUBLIC-001、DSH-TEST-001 |
|
|
51
|
+
| `0.2.1-alpha.2` | 原生具体 IPv4/IPv6 与 HTTP/HTTPS;Connection 使用实际协议与绑定 authority | 有 `--public-url`;模型文本与 `DSH_WEB_URL` 使用插件最终公开根地址 | 三个 token 原生存在;侧栏设置;notice/reload 触发待核实 | 原生账号服务存在;普通 Web 入口不启用;手动回填关闭 | DSH-HOST-001、DSH-PROTOCOL-001、DSH-PUBLIC-001、DSH-TEST-001 |
|
|
52
|
+
| `0.2.1-alpha.3` | 原生具体 IPv4/IPv6 与 HTTP/HTTPS;Connection 使用实际协议与绑定 authority;端口类型允许未绑定值,插件须在监听后校验 | 有 `--public-url`;模型地址在 `app:web-surface` 运行时上下文;`DSH_WEB_URL` 使用最终公开根地址 | 三个 token 原生存在;账号菜单 → 设置;账号引导已适配,notice/reload 触发待核实 | 原生仅回环 HTTP 来源;启用说明弹窗与手动回填,保留 API Key 选择 | DSH-HOST-001、DSH-PROTOCOL-001、DSH-PUBLIC-001、DSH-TEST-001、DSH-ACCOUNT-001 |
|
|
53
|
+
|
|
54
|
+
`PLUGIN-CONFIG-001` 与共享安全边界适用于表中每一个版本,不能因为删除任一 DSH 版本而删除。未列出的未来版本仍须单独检查;`DSH-ACCOUNT-001` 对所有未明确启用的版本默认关闭。
|
|
55
|
+
|
|
56
|
+
## 新能力迁移与退役流程
|
|
57
|
+
|
|
58
|
+
1. 新增或移除 DSH 版本时,同步修改两种语言的两个矩阵,保留完整版本号、条目 ID 和证据状态。
|
|
59
|
+
2. 新版能力变化时,从功能表找到涉及的每个版本,再打开相应条目核对安装包 API、代码及测试。能够使用相同 API 并有精确版本验证的版本可以迁移到共同实现;缺少能力或证据的版本继续保留对应分支,不能按发布时间推定可迁移。
|
|
60
|
+
3. 每个条目记录最终决策:保留哪些精确版本、迁移哪些精确版本、删除哪些专属实现和测试、仍缺什么证据。支持集合与适用集合有交集时,不整体删除该条目。
|
|
61
|
+
4. 公网 OAuth 可用性同时取决于 DeepSeek 平台和 DSH。官方允许公网 `redirect_uri` 后,还须验证 DSH 的来源策略、回调处理和 UI;满足 `DSH-ACCOUNT-001` 的条件后才撤除相应适配。
|
|
62
|
+
5. 人工同步复核两张表与条目。不引入兼容清单专用生成脚本或 CI 门禁;现有双语链接及打包检查继续使用。
|
|
63
|
+
|
|
64
|
+
## DSH-HOST-001
|
|
65
|
+
|
|
66
|
+
具体 IP 监听与 schema 适配,类型为 `dsh-runtime`,现存生效。
|
|
67
|
+
|
|
68
|
+
| 字段 | 维护依据 |
|
|
69
|
+
| ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
70
|
+
| 适配适用版本 | `0.1.7-rc.1`、`0.1.7-rc.2`、`0.2.0-rc.1`、`0.2.0-rc.2`、`0.2.1-alpha.1` 的原生 schema 仅列 `127.0.0.1` 与 `0.0.0.0`;插件自行校验具体 IPv4,拒绝通配、IPv6 与 TLS |
|
|
71
|
+
| 原生能力版本 | `0.2.1-alpha.2`、`0.2.1-alpha.3` 使用原生 Config 与地址 API 校验具体 IPv4/IPv6;不允许通配监听 |
|
|
72
|
+
| 实现与上游 | `src/config.ts`、`src/adapters/dsh/runtime-capabilities.ts`、`src/adapters/dsh/webserver.ts`;精确 `@deepseek-ai/dsh-host-webserver/lib/index.js` 的 Config 与 listener。统一 `resolveStartupConfig` 已替代过渡 resolver |
|
|
73
|
+
| 测试与证据 | `tests/unit/config.test.ts`、`tests/integration/dsh-adapter.test.ts`、`tests/integration/native-transport.test.ts`、`tests/browser/native-transport.spec.ts`。2026-10-10 的 `0.2.1-alpha.2` 验证覆盖 IPv4、IPv6、mapped/scoped 回环及非回环 IPv4;非回环 IPv6 缺少可绑定接口,仅核对 schema 与策略 |
|
|
74
|
+
| 迁移与退役 | 仅当所有“适配适用版本”退出支持集合,或逐个取得原生能力证据并完成迁移后,删除该集合独占的 IPv4/schema 分支与拒绝测试。保留通配拒绝、端口验证、包身份及共同门禁 |
|
|
75
|
+
|
|
76
|
+
## DSH-PROTOCOL-001
|
|
77
|
+
|
|
78
|
+
原生协议与 Connection 绑定地址差异,类型为 `dsh-runtime`,现存生效。
|
|
79
|
+
|
|
80
|
+
| 字段 | 维护依据 |
|
|
81
|
+
| ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
82
|
+
| 回退适用版本 | `0.1.7-rc.1`、`0.1.7-rc.2`、`0.2.0-rc.1`、`0.2.0-rc.2`、`0.2.1-alpha.1` 无原生 TLS/protocol API,且 Connection 不识别具体非回环 bind;服务端桥接保留 HTTP / `127.0.0.1`,实际 listener 与插件公开 URL 仍使用具体 IPv4 |
|
|
83
|
+
| 原生能力版本 | `0.2.1-alpha.2`、`0.2.1-alpha.3` 使用实际 protocol 与归一化绑定 authority;IPv6 zone 不进入可移植公开 URL,mapped IPv6 必须与 Connection 的 WHATWG 比较一致 |
|
|
84
|
+
| 实现与上游 | `runtime-capabilities.ts` 的 `listenerProtocol`、`listenerTransport`,以及 `src/adapters/dsh/{readiness,browser-auth,startup-urls}.ts`、`src/http/gate.ts`、`src/index.ts`、[cordis.patch.yml](../cordis.patch.yml)。`connectionTrustedHosts` 合并最终 nativeAuthority、保留路径所需的公开 authority 与显式 CLI 信任,不扩大外层来源准入 |
|
|
85
|
+
| 测试与证据 | `tests/integration/native-transport.test.ts`、`tests/browser/native-transport.spec.ts`、`tests/browser/proxy-chain.spec.ts`。2026-10-10 的 `0.1.7-rc.1`、`0.2.1-alpha.1` 实际非回环包证明需要回环桥接;`0.2.1-alpha.2` 验证 HTTPS/IPv6 MFA、Host 设置、CLI 撤销与 mapped IPv6 HTTP/HTTPS |
|
|
86
|
+
| 迁移与退役 | 对每个“回退适用版本”取得原生 protocol/authority 支持证据后才迁移;该集合与支持范围无交集时删除专属回退。保留 HTTP 正向、双向代理、Cookie Secure、流撤销及共享认证检查 |
|
|
87
|
+
|
|
88
|
+
外层 Cookie 的 Secure 取决于公开来源;原生 Cookie 的 Secure 取决于监听协议。这是共享安全行为,不是可随版本删除的回退。
|
|
89
|
+
|
|
90
|
+
## DSH-PUBLIC-001
|
|
91
|
+
|
|
92
|
+
公开地址投影和模型提示位置差异,类型为 `dsh-runtime`,现存生效。
|
|
93
|
+
|
|
94
|
+
| 字段 | 维护依据 |
|
|
95
|
+
| ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
96
|
+
| 无原生参数的版本 | `0.1.7-rc.1`、`0.1.7-rc.2`、`0.2.0-rc.1`、`0.2.0-rc.2` 无 `--public-url`;保留原生模型 Web 文本与 `DSH_WEB_URL`:固定 `127.0.0.1` 加实际端口、无末尾斜杠。插件自身唯一公开入口仍可配置,不能将其误写成原生 CLI 能力 |
|
|
97
|
+
| 原生文本投影版本 | `0.2.1-alpha.1`、`0.2.1-alpha.2` 原生消费 `webServer.publicUrl`,模型 system prompt Web 文本与 `DSH_WEB_URL` 使用插件最终公开根地址 |
|
|
98
|
+
| 原生上下文投影版本 | `0.2.1-alpha.3` 通过 `webApp.getAdvertisedUrl()` 与 harness-dev-context 的 `app:web-surface` 发布模型地址,位于 `assembly.contexts`;`DSH_WEB_URL` 继续使用最终公开根地址 |
|
|
99
|
+
| 实现与上游 | [cordis.patch.yml](../cordis.patch.yml)、`src/adapters/dsh/startup-urls.ts`;精确 WebApp `lib/startup.js`、`lib/index.js` 与 `harness-dev-context`。Connection 必须依赖 webStartup/webServer,不能等待已移除的 webRuntime |
|
|
100
|
+
| 测试与证据 | `tests/browser/deployment-profile.spec.ts`、`tests/browser/startup-compatibility.spec.ts`、`tests/fixtures/startup-observer.mjs`;调用真实 `systemPrompt.assemble` 与 `shellEnv.collect`,按精确版本断言文本段或上下文、环境变量与无 token。2026-10-09 的安装包证实无参数集合及 `0.2.1-alpha.1` 的分界;2026-10-15 核对 `0.2.1-alpha.3` 的上下文变化 |
|
|
101
|
+
| 迁移与退役 | 无原生参数的集合退出支持后删除其能力分支和参数拒绝测试;`0.2.1-alpha.1`、`0.2.1-alpha.2` 仍受支持时保留文本位置断言;`0.2.1-alpha.3` 保留上下文断言。不能仅因存在新投影位置而修改仍受支持版本的观察方式 |
|
|
102
|
+
|
|
103
|
+
## DSH-THEME-001
|
|
104
|
+
|
|
105
|
+
缺失主题 token 的 CSS 补值,类型为 `dsh-runtime`,现存生效。
|
|
106
|
+
|
|
107
|
+
| 字段 | 维护依据 |
|
|
108
|
+
| ------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
109
|
+
| 补值适用版本 | 仅 `0.1.7-rc.1` 缺少 `--dsw-radius-md`、`--dsw-radius-lg`、`--dsw-focus-ring-color` |
|
|
110
|
+
| 原生能力版本 | `0.1.7-rc.2`、`0.2.0-rc.1`、`0.2.0-rc.2`、`0.2.1-alpha.1`、`0.2.1-alpha.2`、`0.2.1-alpha.3` 提供这些 token |
|
|
111
|
+
| 实现与上游 | `src/client/settings/style.css` 的 `var()` fallback;精确 `@deepseek-ai/dsh-client-ui-theme/lib` 的 CSS token 定义。官方账号弹窗仅在 `0.2.1-alpha.3` 启用,直接使用该精确版本提供的字体、圆角和浮层 token;其样式调整不删除 `0.1.7-rc.1` 的安全页补值 |
|
|
112
|
+
| 测试与证据 | `tests/browser/dsh-bootstrap.spec.ts` 与 `.cache/ui-review/<version>` 人工截图复核。2026-10-09 核对 `0.1.7-rc.1`、`0.1.7-rc.2`、`0.2.0-rc.1`、`0.2.0-rc.2`、`0.2.1-alpha.1`;2026-10-10 核对 `0.2.1-alpha.2`;2026-10-15 核对 `0.2.1-alpha.3` |
|
|
113
|
+
| 迁移与退役 | `0.1.7-rc.1` 退出支持且其余精确版本的 token 证据完整后,只删除因该版本缺失而保留的补值与说明;保留动态主题、布局、焦点可见性及共享视觉验证 |
|
|
114
|
+
|
|
115
|
+
## DSH-TEST-001
|
|
116
|
+
|
|
117
|
+
设置导航与首次引导测试适配,类型为 `dsh-runtime`,现存生效;notice/reload 的精确触发范围仍有证据缺口。
|
|
118
|
+
|
|
119
|
+
| 字段 | 维护依据 |
|
|
120
|
+
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
121
|
+
| 直接设置入口版本 | `0.1.7-rc.1`、`0.1.7-rc.2`、`0.2.0-rc.1`、`0.2.0-rc.2`、`0.2.1-alpha.1`、`0.2.1-alpha.2` 使用侧栏设置和 API Key 引导 |
|
|
122
|
+
| 账号菜单入口版本 | `0.2.1-alpha.3` 使用账号菜单 → 设置及官方账号引导;手动登录浮层不依附侧栏或引导入口,避免入口重建取消待完成授权 |
|
|
123
|
+
| 已知缺口 | 对 `0.1.7-rc.1`、`0.1.7-rc.2`、`0.2.0-rc.1`、`0.2.0-rc.2`、`0.2.1-alpha.1`、`0.2.1-alpha.2`、`0.2.1-alpha.3`,notice 延迟、确认中替换、首次 API Key 保存与页面重载之间的逐项映射尚未完整建立。不能把共享 helper 通过当作每个触发条件都已逐版复现 |
|
|
124
|
+
| 实现与测试 | `tests/helpers/runtime.ts` 的 `openDshSettings`、`completeApiKeyPrompt`、`clickThroughDshPrompts` 与 reopen;`tests/browser/dsh-bootstrap.spec.ts`、`tests/browser/dsh-gate.spec.ts`、`tests/browser/account-login.spec.ts` |
|
|
125
|
+
| 迁移与退役 | 先以真实 UI 补齐每种交互的精确适用版本,再按支持集合交集删除专属分支。通用异步重试、持久化等待、浏览器 fallback 不自动归类为某个 DSH 版本的专属代码 |
|
|
126
|
+
|
|
127
|
+
`0.2.1-alpha.3` 的并发验证另发现:pnpm 共享硬链接的 ctime 会在其他隔离 profile 安装同包时变化,触发原生 HMR 并销毁客户端插件。测试安装改为复制文件,账号夹具校验客户端文件未共享硬链接;这不是首次引导重载的版本证据,不据此填补上述 notice/reload 缺口。
|
|
128
|
+
|
|
129
|
+
2026-10-15 的 CI 与未设置 `DEEPSEEK_API_KEY` 的本地复现确认:`0.2.1-alpha.3` 在未配置模型凭据时,显式刷新页面会再次显示账号引导;原生 `SettingsRoot` 将已完成引导步骤保存在组件状态中。`tests/browser/login.spec.ts` 在 DSH 运行时环境中清除继承的密钥,刷新后打开插件设置时重新检查引导弹窗,保留原有设置持久化断言。`completeApiKeyPrompt` 在 `0.2.1-alpha.3` 先选择原生 API Key 入口,再进入共用凭据编辑器,确保夹具确实配置了模型提供者。此精确用例不能证明上述全部 notice 延迟或自动重载触发条件。
|
|
130
|
+
|
|
131
|
+
## DSH-ACCOUNT-001
|
|
132
|
+
|
|
133
|
+
官方账号手动回调对接,类型为 `dsh-runtime`,现存生效;这是可独立退役的临时适配。
|
|
134
|
+
|
|
135
|
+
| 字段 | 维护依据 |
|
|
136
|
+
| ------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
137
|
+
| 原生能力与插件范围 | `0.1.7-rc.1`、`0.1.7-rc.2`、`0.2.0-rc.1`、`0.2.0-rc.2`、`0.2.1-alpha.1`、`0.2.1-alpha.2` 均已有账号提供者和 API,但 ui-settings-account 的 `apply` 在没有 `dshDesktop` 时直接返回。`0.2.1-alpha.3` 才对普通 Web 开放该 UI。本插件只对 `0.2.1-alpha.3` 对接,不将“不启用插件适配”表述为“没有原生账号能力” |
|
|
138
|
+
| 唯一启用版本 | 精确 `0.2.1-alpha.3`;`supportsManualAccountLogin` 与服务端注入的浏览器标志共同启用,不能改成无上界的版本比较 |
|
|
139
|
+
| 明确不启用的版本 | `0.1.7-rc.1`、`0.1.7-rc.2`、`0.2.0-rc.1`、`0.2.0-rc.2`、`0.2.1-alpha.1`、`0.2.1-alpha.2` 及所有未经复核的后续版本;不接管其原生回调或账号插槽,手动授权接口报告不可用 |
|
|
140
|
+
| 原因与上游 | 精确安装包的 account-platform `protocol.ts/loginOrigin` 在表列全部版本中仅接受带显式端口的回环 HTTP;ui-settings-account 默认使用浏览器 origin。公网浏览器无法自动回调 DSH 设备,外层门禁也拒绝跨站导航 |
|
|
141
|
+
| 实现 | `src/shared/account-login.ts`、`src/http/account-login.ts`、`src/adapters/dsh/account-callback.ts`、`src/adapters/dsh/browser-capability.ts`、`src/client/account/`;公开 slots 的 entries/subscribe/priority 替换登录动作,独立 `shell.overlay` 展示说明、输入框和按钮。原生 `useApiKey` 继续凭据引导且不调用 `complete`,账号菜单通过 `openOnboarding` 重开编辑器;未开始授权时保留该选择,授权中保留取消。服务端绑定发起会话,保留临时原生回调 handler,仅从已鉴权 POST 内部分发真实 Node 响应;不请求粘贴 URL,不读取提供者私有状态,不改原生 PKCE 或凭据存储 |
|
|
142
|
+
| 测试 | `tests/integration/account-login.test.ts` 使用真实 `0.2.1-alpha.3` 提供者与本地平台替身,覆盖 PKCE、redirect URI、state、会话、重复、取消、撤销、过期及重试;`tests/browser/account-login.spec.ts` 覆盖未设置 `DEEPSEEK_API_KEY` 的无凭据引导、原生 API Key 保存和账号菜单重开、先说明再授权、失败导航回填、弹窗拦截与响应式双语主题;`tests/unit/client-capability.test.ts` 验证精确启用和未来版本不启用 |
|
|
143
|
+
| 公网迁移条件 | 官方接受公网 `redirect_uri`,且目标精确 DSH 版本的来源策略、回调、兑换、UI、会话边界均经验证。仅平台开放、DSH 仍限制 `loginOrigin` 时不能直接删除。新版本默认保留原生流程;需要手动适配时另行取得证据并明确列入启用集合 |
|
|
144
|
+
| 退役与保留 | `0.2.1-alpha.3` 仍受支持且仍需要回环时保留其分支;退出支持,或该精确版本的原生公网流程已验证可用时,删除专属 callback/UI/标志与专属测试。仍被其他流程使用的会话归属、state/PKCE、单次使用、撤销和禁止 URL 网络转发等共享边界继续保留 |
|
|
145
|
+
| 证据限制 | 2026-10-15,本地平台替身与真实提供者完整兑换通过;官方 `auth_init` 的回环对照成功并取消,三种 `example.com` 公网写法被 schema 拒绝。未验证真实官方账号完整授权,也未排除官方按域名白名单开放的可能 |
|
|
146
|
+
|
|
147
|
+
## PLUGIN-CONFIG-001
|
|
148
|
+
|
|
149
|
+
插件 `0.1.5` 配置输入迁移,类型为 `plugin-contract`,在插件 `0.1.9` 保留;与 DSH 版本集合无关。
|
|
150
|
+
|
|
151
|
+
| 字段 | 维护依据 |
|
|
152
|
+
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
153
|
+
| 适用配置 | 插件 `0.1.5` 顶层 `allowedOrigins` 的单项或空数组;插件 `0.1.6` 引入内存迁移,插件 `0.1.9` 仍保留 |
|
|
154
|
+
| 行为与实现 | `src/config.ts`、[cordis.patch.yml](../cordis.patch.yml)。省略字段与显式空数组可区分;单项转成唯一 `publicUrl`,空数组按监听结果派生;多项、重复项和新字段共存报错。每次激活仅一次弃用提示,不改写 profile;统一启动前解析、监听后定稿 |
|
|
155
|
+
| 测试 | `tests/unit/config.test.ts`、`tests/unit/origin-policy.test.ts`、`tests/integration/http-gate.test.ts`、`tests/browser/startup-compatibility.spec.ts`;真实 Loader 覆盖 0/1 项、多项、重复、null、file/CLI 冲突、警告次数与 profile 不改写 |
|
|
156
|
+
| 迁移与退役 | 只有插件产品契约明确结束这组输入支持并提供迁移说明时才删除专属检测、转换及测试。任一 DSH 版本退出支持都不足以触发退役;保留唯一 URL 校验与来源安全回归 |
|
|
157
|
+
|
|
158
|
+
## 共享安全边界
|
|
159
|
+
|
|
160
|
+
包身份、向前准入后的 API 检查、具体监听、原始 Host/Origin/Fetch Metadata、回环准入、密码/TOTP、会话、流撤销、存储故障与 CLI 确认适用于所有声明版本。反向代理 HTTPS → HTTP、Host 设置能力 `ownsHost` 和服务端原生浏览器认证交换也不能仅因某个适配退役而删除。
|
|
161
|
+
|
|
162
|
+
生产入口在官方 listener 初始化后校验绑定端口;失败须释放 listener、管理 socket 和存储锁。Connection 丢失或存储状态不可靠时撤回 ready 并关闭业务承载。不得伪造服务、关闭 Loader 启动审计或绕过原生 listener 来通过兼容检查。
|
|
163
|
+
|
|
164
|
+
## 证据位置与未决项
|
|
165
|
+
|
|
166
|
+
证据须沿安装目录中的 DSH → WebApp → 实际依赖解析并核对每个 manifest 的完整版本号;从测试目录直接解析子包可能误用源码依赖。上游依据使用精确安装包或对应 tag,不使用浮动主分支。产物哈希、命令、测试数量和运行结果放在独立执行记录,不把历史开发包通过当作当前最终产物通过。
|
|
167
|
+
|
|
168
|
+
2026-10-09 至 2026-10-10 的记录确立了 `0.1.7-rc.1`、`0.1.7-rc.2`、`0.2.0-rc.1`、`0.2.0-rc.2`、`0.2.1-alpha.1`、`0.2.1-alpha.2` 的 schema、公开地址、协议分界与插件配置迁移。2026-10-15 增加 `0.2.1-alpha.3` 的运行时上下文、账号菜单、端口类型与账号回调证据。DSH `0.2.1-alpha.3` 开发组合使用 Cordis `4.0.5-alpha.2`、Schemastery `3.18.5-alpha.2`;这些是依赖包版本,不能简称为 DSH 的版本。同日逐一核对全部声明版本的 base 提供者、WebApp 的 account-controller 和 ui-settings-account,确认原生账号提供者已存在、普通 Web UI 的启用分界与 `startSignIn` 首参差异。
|
|
169
|
+
|
|
170
|
+
仍待补充:各精确版本的 notice/reload 触发映射、非回环 IPv6 实际接口验证、真实官方账号完整授权、公网 `redirect_uri` 的官方支持与 DSH 原生适配。缺口只限制相关结论,不得据此猜测版本能力或提前删除实现。
|
package/docs/releasing.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Each release starts from a tested commit on `master`. A `vX.Y.Z` tag must match the stable version in `package.json` and the dated entries in both changelogs. The tag workflow repeats the full checks, builds the npm archive, verifies or publishes the npm version, and creates a GitHub Release containing the same archive and `SHA256SUMS`.
|
|
6
6
|
|
|
7
|
-
Before changing version support for a release, review the [legacy compatibility inventory](legacy-compatibility.md)
|
|
7
|
+
Before changing version support for a release, review the [legacy compatibility inventory](legacy-compatibility.md). Check peers, compatibility declarations, runtime admission, test targets, CI and guides together. Remove runtime adaptations whose applicable versions no longer intersect support in that same change, while keeping shared security checks. Old plugin configuration has independent retirement conditions; update both inventory languages and both matrix views with complete version numbers before packing.
|
|
8
8
|
|
|
9
9
|
## Prepare the version
|
|
10
10
|
|
|
@@ -29,18 +29,18 @@ Use the version that is already on `master`:
|
|
|
29
29
|
```sh
|
|
30
30
|
git switch master
|
|
31
31
|
git pull --ff-only origin master
|
|
32
|
-
git tag -a v0.1.
|
|
33
|
-
git push origin v0.1.
|
|
32
|
+
git tag -a v0.1.9 -m "Release v0.1.9"
|
|
33
|
+
git push origin v0.1.9
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
-
Replace `0.1.
|
|
36
|
+
Replace `0.1.9` in these commands with the intended version. The tag must point to a commit reachable from `master`. A mismatched tag, missing changelog entry, failed test, or mismatched existing npm archive stops the release.
|
|
37
37
|
|
|
38
38
|
After the workflow completes, confirm the run, GitHub Release, and npm version:
|
|
39
39
|
|
|
40
40
|
```sh
|
|
41
41
|
gh run list --workflow release.yml --limit 5
|
|
42
|
-
gh release view v0.1.
|
|
43
|
-
npm view dsh-auth-remote@0.1.
|
|
42
|
+
gh release view v0.1.9
|
|
43
|
+
npm view dsh-auth-remote@0.1.9 version dist.integrity
|
|
44
44
|
```
|
|
45
45
|
|
|
46
46
|
The GitHub Release includes the `.tgz` and `SHA256SUMS`. Download them into the same directory and run `sha256sum -c SHA256SUMS` there to check the release asset. A failed workflow should be inspected in **Actions → Release** before retrying; npm versions are immutable, so the workflow only skips an existing version when its archive bytes match.
|
package/docs/releasing.zh-CN.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
每次发布都从已通过检查的 `master` 提交开始。`vX.Y.Z` 标签必须与 `package.json` 中的稳定版本以及两份更新日志的日期条目一致。标签工作流会再次执行完整检查、构建 npm 压缩包、核对或发布 npm 版本,并创建包含相同压缩包和 `SHA256SUMS` 的 GitHub Release。
|
|
6
6
|
|
|
7
|
-
发布准备中修改支持版本前,先复核 [Legacy 兼容维护清单](legacy-compatibility.md),共同检查 peers、兼容声明、运行时准入、测试目标、CI
|
|
7
|
+
发布准备中修改支持版本前,先复核 [Legacy 兼容维护清单](legacy-compatibility.zh-CN.md),共同检查 peers、兼容声明、运行时准入、测试目标、CI 和指南。同次删除与支持集合无交集的专属运行时适配,保留共享安全逻辑;旧插件配置退役有独立条件。打包前同步更新并人工核对中英文清单、两个维度的矩阵及完整版本号。
|
|
8
8
|
|
|
9
9
|
## 准备版本
|
|
10
10
|
|
|
@@ -29,18 +29,18 @@ pnpm smoke:packed
|
|
|
29
29
|
```sh
|
|
30
30
|
git switch master
|
|
31
31
|
git pull --ff-only origin master
|
|
32
|
-
git tag -a v0.1.
|
|
33
|
-
git push origin v0.1.
|
|
32
|
+
git tag -a v0.1.9 -m "Release v0.1.9"
|
|
33
|
+
git push origin v0.1.9
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
-
执行时把 `0.1.
|
|
36
|
+
执行时把 `0.1.9` 换成目标版本。标签必须指向 `master` 可达的提交。标签版本不匹配、缺少更新日志条目、测试失败,或 npm 现存版本与本次压缩包字节不同,都会阻止发布。
|
|
37
37
|
|
|
38
38
|
工作流结束后检查运行状态、GitHub Release 和 npm 版本:
|
|
39
39
|
|
|
40
40
|
```sh
|
|
41
41
|
gh run list --workflow release.yml --limit 5
|
|
42
|
-
gh release view v0.1.
|
|
43
|
-
npm view dsh-auth-remote@0.1.
|
|
42
|
+
gh release view v0.1.9
|
|
43
|
+
npm view dsh-auth-remote@0.1.9 version dist.integrity
|
|
44
44
|
```
|
|
45
45
|
|
|
46
46
|
GitHub Release 包含 `.tgz` 和 `SHA256SUMS`。把两者下载到同一个目录,在该目录运行 `sha256sum -c SHA256SUMS` 验证附件。工作流失败时先查看 **Actions → Release** 再重试;npm 版本不可覆盖,因此只有现存版本的压缩包字节与本次构建一致时,工作流才会跳过重复发布。
|
package/docs/reverse-proxy.md
CHANGED
|
@@ -6,7 +6,7 @@ DSH Auth Remote validates the browser authority before rewriting authenticated t
|
|
|
6
6
|
|
|
7
7
|
## Direct loopback
|
|
8
8
|
|
|
9
|
-
With the [profile example](../examples/web-profile-auth-remote.patch.yml), DSH binds `127.0.0.1:13090`. A browser on the same host may use `http://127.0.0.1:13090/`. Literal `localhost`, canonical `127.0.0.0/8` and bracketed `::1` are implicitly allowed when the actual listener is reachable. An IPv4-mapped IPv6 loopback origin is admitted when it is the effective `publicUrl`, either configured explicitly or derived from the listener. For
|
|
9
|
+
With the [profile example](../examples/web-profile-auth-remote.patch.yml), DSH binds `127.0.0.1:13090`. A browser on the same host may use `http://127.0.0.1:13090/`. Literal `localhost`, canonical `127.0.0.0/8` and bracketed `::1` are implicitly allowed when the actual listener is reachable. An IPv4-mapped IPv6 loopback origin is admitted when it is the effective `publicUrl`, either configured explicitly or derived from the listener. For a DSH `0.2.1-alpha.2`, `0.2.1-alpha.3` IPv6 HTTP or HTTPS listener, follow the [native transport configuration](deployment.md#native-https-and-ipv6). The auth bundle disables the native `webserver` row; an independent profile disable is recommended.
|
|
10
10
|
|
|
11
11
|
Admission is the unique effective public origin plus literal loopback. Without a public URL, derive one root from the actual bound protocol, address and port. Root paths only are supported; no child path, query, fragment or credentials. Mutations and WebSocket upgrades need Origin matching their Host; extra CLI native trusted hosts do not widen this policy. A GET without Origin cannot set or clear auth cookies when its protocol is unknown. See the [old-field migration rules](deployment.md#migrate-old-allowedorigins) before changing a legacy array.
|
|
12
12
|
|
|
@@ -24,6 +24,6 @@ Set `publicUrl: https://dsh.example.com/` for the example. For a public `:8443`
|
|
|
24
24
|
|
|
25
25
|
Use one canonical public entry; route alternate hostnames to it before requests reach the protected upstream. Replace `publicUrl` and restart after an entry change, then verify the new root and rejection of the former non-loopback origin. Check anonymous redirect/API denial, password plus TOTP login, cookies, Settings, WebSocket, SSE, uploads, previews and revocation. Keep access private until `/auth-remote/ready` reports the expected plugin/protocol and `ready: true`.
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
A DSH `0.2.1-alpha.2`, `0.2.1-alpha.3` native HTTPS upstream also works behind a public HTTP or HTTPS proxy. Use an HTTPS upstream URL and configure the proxy's upstream certificate verification and hostname/SNI for that certificate. Plugin cookies follow the external entry's protocol; server-side native cookies use the listener's HTTPS audience/Secure. Preserve Host/Origin even when the two transport protocols differ. Relative file/CLI certificate paths have different bases; see the [path rules](deployment.md#configuration-priority-and-path-bases).
|
|
28
28
|
|
|
29
29
|
The authentication gate ignores `Forwarded` and `X-Forwarded-*` for trust decisions. This avoids treating a client-supplied hint as proof of TLS or hostname. The source checkout's browser suite tests these rules with its own Node HTTP/HTTPS forwarder; it does not execute Nginx or Traefik binaries.
|
|
@@ -6,7 +6,7 @@ DSH Auth Remote 会先验证浏览器 authority,再为 DSH 改写已认证流
|
|
|
6
6
|
|
|
7
7
|
## 回环直连
|
|
8
8
|
|
|
9
|
-
按 [profile 示例](../examples/web-profile-auth-remote.patch.yml),DSH 绑定 `127.0.0.1:13090`。同机浏览器可以使用 `http://127.0.0.1:13090/`。字面 `localhost`、规范 `127.0.0.0/8` 和方括号 `::1` 隐式准入,实际监听须可达。IPv4-mapped IPv6 回环来源只有作为生效 `publicUrl` 时才准入,可以显式配置,也可以从监听地址派生。alpha.2 的 IPv6 HTTP/HTTPS 监听见[原生传输配置](deployment.zh-CN.md#原生-https-与-ipv6)。认证 bundle 禁用原生 `webserver`,并建议 profile 独立禁用。
|
|
9
|
+
按 [profile 示例](../examples/web-profile-auth-remote.patch.yml),DSH 绑定 `127.0.0.1:13090`。同机浏览器可以使用 `http://127.0.0.1:13090/`。字面 `localhost`、规范 `127.0.0.0/8` 和方括号 `::1` 隐式准入,实际监听须可达。IPv4-mapped IPv6 回环来源只有作为生效 `publicUrl` 时才准入,可以显式配置,也可以从监听地址派生。DSH `0.2.1-alpha.2`、`0.2.1-alpha.3` 的 IPv6 HTTP/HTTPS 监听见[原生传输配置](deployment.zh-CN.md#原生-https-与-ipv6)。认证 bundle 禁用原生 `webserver`,并建议 profile 独立禁用。
|
|
10
10
|
|
|
11
11
|
准入为唯一生效公开来源加字面回环;未设置公开 URL 时,根据实际监听协议、地址、端口派生唯一根地址。只支持根路径,拒绝子路径、查询、片段、凭据。修改请求和 WebSocket 升级的 Origin 须匹配 Host,额外 CLI 原生 trusted hosts 不扩大策略。无 Origin 且协议不明的 GET 不能写入或清除认证 Cookie。变更旧数组前参阅[旧字段迁移](deployment.zh-CN.md#迁移旧-allowedorigins)。
|
|
12
12
|
|
|
@@ -24,6 +24,6 @@ DSH Auth Remote 会先验证浏览器 authority,再为 DSH 改写已认证流
|
|
|
24
24
|
|
|
25
25
|
使用唯一规范公开入口,在请求到达受保护上游前,把其他主机名导向该入口。入口变更后替换 `publicUrl` 并重启,核对新根地址以及旧非回环来源被拒绝。检查匿名跳转/API 拒绝、密码加 TOTP、Cookie、设置、WebSocket、SSE、上传、预览及撤销。`/auth-remote/ready` 返回预期插件/协议与 `ready: true` 前保持访问私有。
|
|
26
26
|
|
|
27
|
-
alpha.2 原生 HTTPS 上游也可位于公开 HTTP 或 HTTPS 代理后。使用 HTTPS 上游 URL,配置代理的上游证书验证和与证书对应的 hostname/SNI。插件 Cookie 按外部入口协议,服务端原生 Cookie 按监听的 HTTPS audience/Secure;两个协议不同时仍保留 Host/Origin。文件和 CLI 相对证书路径基准不同,见[路径规则](deployment.zh-CN.md#配置优先级与路径基准)。
|
|
27
|
+
DSH `0.2.1-alpha.2`、`0.2.1-alpha.3` 原生 HTTPS 上游也可位于公开 HTTP 或 HTTPS 代理后。使用 HTTPS 上游 URL,配置代理的上游证书验证和与证书对应的 hostname/SNI。插件 Cookie 按外部入口协议,服务端原生 Cookie 按监听的 HTTPS audience/Secure;两个协议不同时仍保留 Host/Origin。文件和 CLI 相对证书路径基准不同,见[路径规则](deployment.zh-CN.md#配置优先级与路径基准)。
|
|
28
28
|
|
|
29
29
|
认证门禁不会用 `Forwarded` 或 `X-Forwarded-*` 作信任判断,避免把客户端可伪造提示当成 TLS 或主机证明。源码检出的浏览器套件使用自有 Node HTTP/HTTPS 转发器测试这些规则,不运行 Nginx 或 Traefik 二进制。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-auth-remote",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "Single-user remote authentication for DeepSeek Harness: password, TOTP and revocable sessions.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -42,7 +42,16 @@
|
|
|
42
42
|
"LICENSE",
|
|
43
43
|
"CHANGELOG.md",
|
|
44
44
|
"CHANGELOG.zh-CN.md",
|
|
45
|
-
"docs",
|
|
45
|
+
"docs/deployment.md",
|
|
46
|
+
"docs/deployment.zh-CN.md",
|
|
47
|
+
"docs/development.md",
|
|
48
|
+
"docs/development.zh-CN.md",
|
|
49
|
+
"docs/legacy-compatibility.md",
|
|
50
|
+
"docs/legacy-compatibility.zh-CN.md",
|
|
51
|
+
"docs/releasing.md",
|
|
52
|
+
"docs/releasing.zh-CN.md",
|
|
53
|
+
"docs/reverse-proxy.md",
|
|
54
|
+
"docs/reverse-proxy.zh-CN.md",
|
|
46
55
|
"examples"
|
|
47
56
|
],
|
|
48
57
|
"peerDependencies": {
|
|
@@ -51,14 +60,18 @@
|
|
|
51
60
|
"@deepseek-ai/schemastery": ">=3.18.4 <4"
|
|
52
61
|
},
|
|
53
62
|
"devDependencies": {
|
|
54
|
-
"@deepseek-ai/cordis": "4.0.5-alpha.
|
|
55
|
-
"@deepseek-ai/dsh-
|
|
56
|
-
"@deepseek-ai/dsh-client-
|
|
57
|
-
"@deepseek-ai/dsh-client-
|
|
58
|
-
"@deepseek-ai/dsh-client-ui-
|
|
59
|
-
"@deepseek-ai/dsh-
|
|
60
|
-
"@deepseek-ai/dsh-
|
|
61
|
-
"@deepseek-ai/
|
|
63
|
+
"@deepseek-ai/cordis": "4.0.5-alpha.2",
|
|
64
|
+
"@deepseek-ai/dsh-authorization": "0.2.1-alpha.3",
|
|
65
|
+
"@deepseek-ai/dsh-client-connection": "0.2.1-alpha.3",
|
|
66
|
+
"@deepseek-ai/dsh-client-locale": "0.2.1-alpha.3",
|
|
67
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.2.1-alpha.3",
|
|
68
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.1-alpha.3",
|
|
69
|
+
"@deepseek-ai/dsh-deepseek-account": "0.2.1-alpha.3",
|
|
70
|
+
"@deepseek-ai/dsh-deepseek-account-platform": "0.2.1-alpha.3",
|
|
71
|
+
"@deepseek-ai/dsh-host-webserver": "0.2.1-alpha.3",
|
|
72
|
+
"@deepseek-ai/dsh-llm": "0.2.1-alpha.3",
|
|
73
|
+
"@deepseek-ai/dsh-scope": "0.2.1-alpha.3",
|
|
74
|
+
"@deepseek-ai/schemastery": "3.18.5-alpha.2",
|
|
62
75
|
"@playwright/test": "1.63.0",
|
|
63
76
|
"@types/node": "24.13.6",
|
|
64
77
|
"@types/qrcode": "1.5.6",
|
|
@@ -91,7 +104,8 @@
|
|
|
91
104
|
"0.2.0-rc.1": "compatible",
|
|
92
105
|
"0.2.0-rc.2": "compatible",
|
|
93
106
|
"0.2.1-alpha.1": "compatible",
|
|
94
|
-
"0.2.1-alpha.2": "compatible"
|
|
107
|
+
"0.2.1-alpha.2": "compatible",
|
|
108
|
+
"0.2.1-alpha.3": "compatible"
|
|
95
109
|
}
|
|
96
110
|
}
|
|
97
111
|
},
|