dsh-auth-remote 0.2.0 → 0.3.1
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 +10 -0
- package/CHANGELOG.zh-CN.md +10 -0
- package/CONTRIBUTING.md +2 -0
- package/CONTRIBUTING.zh-CN.md +2 -0
- package/README.md +19 -41
- package/README.zh-CN.md +19 -41
- package/dist/client.js +2 -2
- package/dist/client.js.map +1 -1
- package/dist/index.js +45 -49
- package/dist/index.js.map +3 -3
- package/dist/types/adapters/dsh/compatibility.d.ts +1 -1
- package/dist/types/adapters/dsh/compatibility.d.ts.map +1 -1
- package/dist/types/adapters/dsh/runtime-capabilities.d.ts +6 -11
- package/dist/types/adapters/dsh/runtime-capabilities.d.ts.map +1 -1
- package/dist/types/config.d.ts +2 -2
- package/dist/types/config.d.ts.map +1 -1
- package/dist/types/http/account-login.d.ts.map +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/shared/dsh-support.d.ts.map +1 -1
- package/docs/deployment.md +22 -20
- package/docs/deployment.zh-CN.md +22 -20
- package/docs/development.md +59 -56
- package/docs/development.zh-CN.md +59 -56
- package/docs/legacy-compatibility.md +97 -80
- package/docs/legacy-compatibility.zh-CN.md +90 -73
- package/docs/releasing.md +14 -8
- package/docs/releasing.zh-CN.md +14 -8
- package/docs/reverse-proxy.md +2 -2
- package/docs/reverse-proxy.zh-CN.md +2 -2
- package/docs/support-history.md +66 -60
- package/docs/support-history.zh-CN.md +66 -60
- package/examples/web-profile-auth-remote.patch.yml +1 -1
- package/package.json +16 -20
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,16 @@ This file records user-visible changes to the released package. Version numbers
|
|
|
6
6
|
|
|
7
7
|
## Unreleased
|
|
8
8
|
|
|
9
|
+
## 0.3.1 - 2026-10-28
|
|
10
|
+
|
|
11
|
+
- Prepare the unpublished `0.3.1` candidate for seven exact DSH releases, adding `0.2.1-rc.3` and `0.2.1-rc.4`; use `0.2.1-rc.4` by default and require DSH `>=0.2.1-alpha.3`.
|
|
12
|
+
- Retire six older hosts with plugin `0.2.0` as their last supported plugin. Mark `0.2.1-alpha.3`, `0.2.1-alpha.4` and `0.2.1-alpha.5` legacy from 2026-10-28, with earliest retirement eligibility 2026-11-11 (Asia/Shanghai); dates do not automatically stop support.
|
|
13
|
+
|
|
14
|
+
- Remove retired-host-only IPv4/TLS/protocol/public-URL and direct Settings branches. Remove old theme fallbacks and delegate focus color to native rules while retaining shared authentication, Secure, revocation and TLS-failure cleanup. Keep account callback, HMR context and old allowedOrigins configuration migration.
|
|
15
|
+
- Extend six real host-switch pairs, three Search/Fetch targets and both new RC menu/model-selection regressions, rejecting missing registration or zero-case false success. Point native model baseURL at a local stub before first key entry, preserve credential-free onboarding, and require zero model calls for UI cases.
|
|
16
|
+
- Add independent retired-host installation rollback/whole-package Loader refusal verification. Full/releases verify adjacent `0.2.1-alpha.2`; ordinary accepts only its planned skip. This migration additionally verifies all six retired hosts against the same candidate digest.
|
|
17
|
+
- Synchronize bilingual current support, bidirectional history, development/deployment/release and migration/rollback guides. Preserve both previous-release support policies unchanged; preparation dates do not establish npm publication.
|
|
18
|
+
|
|
9
19
|
## 0.2.0 - 2026-10-19
|
|
10
20
|
|
|
11
21
|
- Regenerate stable Cordis/Schemastery lockfile resolutions and peer snapshots for clean frozen installs; shorten managed verification profiles and test real Unix socket binding at the default CI checkout length.
|
package/CHANGELOG.zh-CN.md
CHANGED
|
@@ -6,6 +6,16 @@
|
|
|
6
6
|
|
|
7
7
|
## 未发布
|
|
8
8
|
|
|
9
|
+
## 0.3.1 - 2026-10-28
|
|
10
|
+
|
|
11
|
+
- 准备未发布的 `0.3.1` 候选,精确支持七版 DSH,新增 `0.2.1-rc.3`、`0.2.1-rc.4`,默认使用 `0.2.1-rc.4`,要求 DSH `>=0.2.1-alpha.3`。
|
|
12
|
+
- 六个旧宿主退出支持,最后支持插件为 `0.2.0`。`0.2.1-alpha.3`、`0.2.1-alpha.4`、`0.2.1-alpha.5` 自 2026-10-28 转为 legacy,最早退役资格日为 2026-11-11(Asia/Shanghai),日期不会自动停止支持。
|
|
13
|
+
|
|
14
|
+
- 删除退役宿主独占的 IPv4/TLS/协议/公开 URL 与直接 Settings 分支;移除旧主题后备值并委托原生焦点颜色规则,保留共享认证、Secure、撤销和 TLS 失败清理。账号回调、HMR 上下文与旧 allowedOrigins 配置迁移继续保留。
|
|
15
|
+
- 扩展六组真实宿主切换、三版 Search/Fetch 和两版新 RC 菜单/模型选择回归,严格拒绝遗漏注册或零用例假通过;模型 baseURL 在首次 Key 输入前固定本地替身,保留无凭据引导,UI 用例要求零模型调用。
|
|
16
|
+
- 新增独立旧宿主安装回滚/完整包 Loader 拒绝验证;full/发布固定验证相邻 `0.2.1-alpha.2`,ordinary 仅接受该任务的预定跳过。本次迁移最终验收额外验证六版退役,全部消费同一候选摘要。
|
|
17
|
+
- 同步双语当前支持、双向历史、开发/部署/发布与迁移回退说明;保留前一发布的两份支持规范原样。准备日期不代表 npm 已发布。
|
|
18
|
+
|
|
9
19
|
## 0.2.0 - 2026-10-19
|
|
10
20
|
|
|
11
21
|
- 重新生成稳定 Cordis/Schemastery 的锁文件解析及 peer 快照,保障干净 frozen 安装;缩短受管理验证 profile,并实测默认 CI 检出路径长度下的 Unix socket 绑定。
|
package/CONTRIBUTING.md
CHANGED
|
@@ -25,3 +25,5 @@ Keep the [support policy](docs/support-policy.md), both directions of [support h
|
|
|
25
25
|
Create a focused branch from `master`. Include the reason for the change, its user-facing effect, tests run, and any migration or deployment steps. Update English and Chinese guides together when behavior changes. Add a short entry to the Unreleased section of both changelogs. Keep generated `dist/`, `artifacts/`, runtime data, secrets, and local profiles out of commits.
|
|
26
26
|
|
|
27
27
|
The `CI Verify` check runs on pull requests and again after a merge to `master`. A maintainer updates the version and dated changelog entry before creating a release tag. The [release guide](docs/releasing.md) describes that process.
|
|
28
|
+
|
|
29
|
+
For the `0.3.1` support migration, README/history record the current seven targets and retirements; both support policies retain the previous release content unchanged. Support/shared-host changes require one final archive across seven complete CLI/browser/smoke targets, following the release guide. Full/releases also require independent `0.2.1-alpha.2` refusal; ordinary runs no real retired-host negative job. Never rebuild or pack in the final consumer loop.
|
package/CONTRIBUTING.zh-CN.md
CHANGED
|
@@ -25,3 +25,5 @@ pnpm check
|
|
|
25
25
|
从 `master` 创建专用分支。说明改动原因、用户可见效果、已运行的测试,以及迁移或部署步骤。行为变化需要同步修改中英文指南,并在两份更新日志的“未发布”部分补一条简短记录。不要提交生成的 `dist/`、`artifacts/`、运行时数据、密钥或本地 profile。
|
|
26
26
|
|
|
27
27
|
`CI Verify` 会在 Pull Request 和合入 `master` 后运行。维护者在创建发布标签前更新版本号和带日期的更新日志;具体流程见[发布指南](docs/releasing.zh-CN.md)。
|
|
28
|
+
|
|
29
|
+
本次 `0.3.1` 支持迁移以 README/历史记录当前七版和退役事实,两份 support-policy 保持前一发布内容原样。支持或共享宿主变更须按发布指南消费同一最终归档,七版完整 CLI/browser/smoke;full/发布还要求独立 `0.2.1-alpha.2` 退役拒绝,ordinary 不运行真实旧宿主负向。不要在最终消费循环重建或打包。
|
package/README.md
CHANGED
|
@@ -6,69 +6,47 @@ Single-user remote sign-in for DeepSeek Harness (DSH), with password, TOTP, one-
|
|
|
6
6
|
|
|
7
7
|
## Requirements
|
|
8
8
|
|
|
9
|
-
- Linux with `/proc`, Node.js 24 or newer, and one
|
|
9
|
+
- Linux with `/proc`, Node.js 24 or newer, and one exact DSH target below; development defaults to `0.2.1-rc.4`. pnpm 12.5.1 is needed only when building from source.
|
|
10
10
|
- DSH's default `~/.dsh` data directory and a `web` profile. The account state belongs to that profile; it is not shared with another profile.
|
|
11
11
|
- For source browser tests, install Playwright Chromium with `pnpm exec playwright install chromium`. The tests use that managed browser and a dedicated, self-signed TLS fixture.
|
|
12
12
|
|
|
13
13
|
## DSH compatibility
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
Find your version in the historical [DSH → plugin](docs/support-history.md#by-dsh) or [plugin → DSH](docs/support-history.md#by-plugin) tables. They separate published declarations, historical test reports, candidate verification and actual archive availability.
|
|
15
|
+
Unpublished candidate **`0.3.1`** declares the seven exact targets below in `dsh.compatibility.dshReleases`. `engines.dsh`, the WebServer peer and runtime admission share the minimum `>=0.2.1-alpha.3`, with no upper bound and SemVer prereleases included. **`0.2.1-rc.4`** is the development default and migration recommendation. Final same-archive verification is recorded separately from declarations.
|
|
18
16
|
|
|
19
17
|
| Exact supported DSH release | Maintenance | Legacy since | Window | Earliest eligible retirement |
|
|
20
18
|
| --------------------------- | ----------------------------------- | ------------ | ------- | ---------------------------- |
|
|
21
|
-
| `0.1
|
|
22
|
-
| `0.1
|
|
23
|
-
| `0.2.
|
|
24
|
-
| `0.2.0-rc.2` | Legacy; supported | 2026-10-19 | 21 days | 2026-11-09 |
|
|
25
|
-
| `0.2.1-alpha.1` | Legacy; supported | 2026-10-19 | 21 days | 2026-11-09 |
|
|
26
|
-
| `0.2.1-alpha.2` | Legacy; supported | 2026-10-19 | 21 days | 2026-11-09 |
|
|
27
|
-
| `0.2.1-alpha.3` | Normal support | — | — | Not announced |
|
|
28
|
-
| `0.2.1-alpha.4` | Normal support | — | — | Not announced |
|
|
29
|
-
| `0.2.1-alpha.5` | Normal support | — | — | Not announced |
|
|
19
|
+
| `0.2.1-alpha.3` | Legacy; supported | 2026-10-28 | 14 days | 2026-11-11 |
|
|
20
|
+
| `0.2.1-alpha.4` | Legacy; supported | 2026-10-28 | 14 days | 2026-11-11 |
|
|
21
|
+
| `0.2.1-alpha.5` | Legacy; supported | 2026-10-28 | 14 days | 2026-11-11 |
|
|
30
22
|
| `0.2.1-rc.1` | Normal support | — | — | Not announced |
|
|
31
|
-
| `0.2.1-rc.2` | Normal support
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
| DSH releases | Concrete IPv4 HTTP | Native public URL CLI, Web prompt and `DSH_WEB_URL` | Native IPv6 / HTTPS |
|
|
36
|
-
| ------------- | ------------------------ | --------------------------------------------------------------------------------- | ---------------------------------- |
|
|
37
|
-
| 0.1.7-rc.1 | Yes | No `--public-url`; native model-side URL remains `http://127.0.0.1:<actual-port>` | Unsupported |
|
|
38
|
-
| 0.1.7-rc.2 | Yes | No `--public-url`; native model-side URL remains `http://127.0.0.1:<actual-port>` | Unsupported |
|
|
39
|
-
| 0.2.0-rc.1 | Yes | No `--public-url`; native model-side URL remains `http://127.0.0.1:<actual-port>` | Unsupported |
|
|
40
|
-
| 0.2.0-rc.2 | Yes | No `--public-url`; native model-side URL remains `http://127.0.0.1:<actual-port>` | Unsupported |
|
|
41
|
-
| 0.2.1-alpha.1 | Yes | Yes; uses the plugin's final public root | Unsupported |
|
|
42
|
-
| 0.2.1-alpha.2 | Yes | Yes; uses the plugin's final public root | Yes, through the official listener |
|
|
43
|
-
| 0.2.1-alpha.3 | Yes | Yes; final public root in runtime context and `DSH_WEB_URL` | Yes, through the official listener |
|
|
44
|
-
| 0.2.1-alpha.4 | Yes | Yes; final public root in runtime context and `DSH_WEB_URL` | Yes, through the official listener |
|
|
45
|
-
| 0.2.1-alpha.5 | Yes | Yes; final public root in runtime context and `DSH_WEB_URL` | Yes, through the official listener |
|
|
46
|
-
| 0.2.1-rc.1 | Yes | Native public root in runtime context and `DSH_WEB_URL` | Yes, through the official listener |
|
|
47
|
-
| 0.2.1-rc.2 | Yes; development default | Native public root in runtime context and `DSH_WEB_URL` | Yes, through the official listener |
|
|
23
|
+
| `0.2.1-rc.2` | Normal support | — | — | Not announced |
|
|
24
|
+
| `0.2.1-rc.3` | Normal support | — | — | Not announced |
|
|
25
|
+
| `0.2.1-rc.4` | Normal support; development default | — | — | Not announced |
|
|
48
26
|
|
|
49
|
-
|
|
27
|
+
Dates use `Asia/Shanghai` at 00:00; eligibility never automatically ends support or removes CI. Plugin `0.3.1` retires 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`. Their last supported plugin is published `0.2.0`; this candidate cannot be installed on them. Query [DSH → plugin](docs/support-history.md#by-dsh) or [plugin → DSH](docs/support-history.md#by-plugin) for historical declarations, reports and distribution facts. Both support policies retain the previous release's record; this README and the history describe this candidate.
|
|
50
28
|
|
|
51
|
-
|
|
29
|
+
All seven use the same entry configuration and support concrete IPv4/IPv6, native HTTP/HTTPS and CLI `--public-url`. The final public root appears in model runtime context and `DSH_WEB_URL`. Model Web sections must not duplicate that URL or leak a token. The [compatibility inventory](docs/legacy-compatibility.md) records native capabilities and retained adaptations.
|
|
52
30
|
|
|
53
|
-
|
|
31
|
+
Later versions are forward-admitted subject to WebServer/Connection APIs, host package identity and native authentication exchange; admission is not an exact support or test claim. Every plan keeps seven-version CLI/smoke. Full, manual, scheduled and release plans run seven complete browser targets plus independent refusal verification on retired boundary `0.2.1-alpha.2`. Ordinary low-risk plans use the [fixed browser selection](docs/development.md#ordinary-and-full-ci-plans) and run no real retired-host negative job.
|
|
54
32
|
|
|
55
33
|
## Install from npm
|
|
56
34
|
|
|
57
|
-
|
|
35
|
+
`0.3.1` is unpublished. Use the npm command below only after its [exact distribution record](docs/support-history.md#plugin-0.3.1) confirms publication. During preparation, replace the package name with a verified local `./artifacts/dsh-auth-remote-0.3.1.tgz` path and install into the default `web` profile:
|
|
58
36
|
|
|
59
37
|
```sh
|
|
60
38
|
dsh --version
|
|
61
|
-
dsh plugin --profile web add dsh-auth-remote@0.
|
|
39
|
+
dsh plugin --profile web add dsh-auth-remote@0.3.1
|
|
62
40
|
dsh plugin --profile web list
|
|
63
41
|
```
|
|
64
42
|
|
|
65
|
-
Check that `dsh --version` prints `0.2.1-rc.
|
|
43
|
+
Check that `dsh --version` prints the recommended `0.2.1-rc.4` and the plugin list includes `dsh-auth-remote@0.3.1`. These commands use DSH's default data directory. For source builds and an isolated development runtime, see the [development guide](docs/development.md).
|
|
66
44
|
|
|
67
45
|
## Configure the web profile
|
|
68
46
|
|
|
69
47
|
The minimal setup needs no profile patch. Start with `dsh web --no-open --port 13090` and use the printed `http://127.0.0.1:13090/` root. Without an explicit `publicUrl`, the plugin derives one root from the actual listener protocol, address and bound port, including `--port 0`. Unauthenticated navigation redirects to sign-in. Check `/auth-remote/ready` before relying on the service. Startup prints the listener and one distinct public root, without a native `?token=` URL.
|
|
70
48
|
|
|
71
|
-
For a public HTTPS entry, use the [deployment guide](docs/deployment.md) and [profile example](examples/web-profile-auth-remote.patch.yml), with top-level `publicUrl: https://dsh.example.com/`, `host` and `port`.
|
|
49
|
+
For a public HTTPS entry, use the [deployment guide](docs/deployment.md) and [profile example](examples/web-profile-auth-remote.patch.yml), with top-level `publicUrl: https://dsh.example.com/`, `host` and `port`. All seven supported versions also support concrete IPv6 and paired top-level `tlsCert`/`tlsKey`. The URL must be an HTTP(S) root, with no credentials, child path, query or fragment. One public origin plus literal loopback is admitted. Setting a URL does not configure proxy routing or TLS.
|
|
72
50
|
|
|
73
51
|
The plugin automatically declares its finalized native bridge authority in Connection's `trustedHosts`, so downstream plugins can recognize a concrete listener without an extra `--trusted-host`. If a downstream route needs the original public Host, add its path to `preserveOriginPaths`; the final public authority is then declared as well. Explicit CLI trusted hosts are retained, while the outer public-origin and sign-in checks still apply. CLI host/port and public URL override file values; TLS overrides as one complete pair. See the [migration and path rules](docs/deployment.md#configuration-priority-and-path-bases) before upgrading `allowedOrigins`: zero or one item is migrated in memory with a warning, multiple items and any explicit coexistence with `publicUrl` fail.
|
|
74
52
|
|
|
@@ -86,7 +64,7 @@ Enter one username and a password of 12–256 Unicode characters. The password i
|
|
|
86
64
|
|
|
87
65
|
Open the direct loopback URL for the minimal installation. After configuring a public origin, open `https://dsh.example.com/auth-remote/login`. Security settings inside DSH can change the password, bind or disable TOTP when policy permits, and revoke sessions. Password or factor changes revoke existing sessions. Sessions have a fixed default lifetime of 168 hours and survive service restarts.
|
|
88
66
|
|
|
89
|
-
On
|
|
67
|
+
On all seven supported versions, open the sidebar account menu, then **Settings → Security & sign-in**.
|
|
90
68
|
|
|
91
69
|
The sign-in page references DSH's PWA manifest. The manifest and favicons are readable before sign-in; business pages and APIs still require authentication. See the [public resource rules](docs/deployment.md#source-and-bridge-contract).
|
|
92
70
|
|
|
@@ -105,13 +83,13 @@ Security & sign-in shows the plugin username, TOTP status, this session’s sign
|
|
|
105
83
|
|
|
106
84
|
## Sign in to an official DeepSeek account
|
|
107
85
|
|
|
108
|
-
Manual callbacks are forward-admitted from `>=0.2.1-alpha.3` using SemVer with prereleases included, and require native capabilities plus `manualAccountLogin: true`. Full feature verification targets **0.2.1-alpha.3**, **0.2.1-alpha.4**, **0.2.1-alpha.5**, **0.2.1-rc.1** and **0.2.1-rc.
|
|
86
|
+
Manual callbacks are forward-admitted from `>=0.2.1-alpha.3` using SemVer with prereleases included, and require native capabilities plus `manualAccountLogin: true`. Full feature verification targets **0.2.1-alpha.3**, **0.2.1-alpha.4**, **0.2.1-alpha.5**, **0.2.1-rc.1**, **0.2.1-rc.2**, **0.2.1-rc.3** and **0.2.1-rc.4**; future releases need exact regression before being called verified. In its account menu, **Sign in** first opens an instruction dialog; it does not start authorization immediately. Click **Open sign-in page** to open the official page in a new tab. After approval, that tab may show a connection error or 404 at a loopback address. Copy its entire address, including `code` and `state`, paste it into **Full callback address**, and click **Confirm sign-in**. Keep the original DSH page open throughout. If the popup is blocked, use the dialog's authorization link.
|
|
109
87
|
|
|
110
88
|
In **Settings → Security & sign-in → Sign-in preferences**, the remote DeepSeek sign-in switch defaults to on. Native Settings saves it to the current profile override; new authorizations on this page use the accepted value immediately and restarts preserve it. Failed saves show an error. Turning it off restores native entries for new attempts, preserves admitted manual attempts and existing official-account credentials, and does not establish native public-callback support. Other open pages need no active synchronization; a stale page starting authorization receives disabled feedback and advice to refresh.
|
|
111
89
|
|
|
112
|
-
This manual handoff needs no local listener, SSH tunnel or browser extension. The loopback address is an authorization return address; its page does not need to load. The plugin parses the pasted URL and delivers the callback inside DSH, retaining native state validation, PKCE exchange and credential storage. It never fetches the pasted address. Pending authorization belongs to the initiating remote session, lasts at most ten minutes and is cancelled when dismissed or the session is revoked. Expired or failed authorization must be restarted.
|
|
90
|
+
This manual handoff needs no local listener, SSH tunnel or browser extension. The loopback address is an authorization return address; its page does not need to load. The plugin parses the pasted URL and delivers the callback inside DSH, retaining native state validation, PKCE exchange and credential storage. It never fetches the pasted address. Pending authorization belongs to the initiating remote session, lasts at most ten minutes and is cancelled when dismissed or the session is revoked. Expired or failed authorization must be restarted.
|
|
113
91
|
|
|
114
|
-
On DSH `0.2.1-alpha.3`, `0.2.1-alpha.4`, `0.2.1-alpha.5`, `0.2.1-rc.1` and `0.2.1-rc.
|
|
92
|
+
On DSH `0.2.1-alpha.3`, `0.2.1-alpha.4`, `0.2.1-alpha.5`, `0.2.1-rc.1`, `0.2.1-rc.2`, `0.2.1-rc.3` and `0.2.1-rc.4`, the dialog also offers **Use API key** before authorization begins. It opens the native credential editor and continues setup until the key is saved or the user chooses to defer. The same option is available from the account menu. During active authorization, the secondary button cancels that attempt instead.
|
|
115
93
|
|
|
116
94
|
## Put a proxy in front
|
|
117
95
|
|
package/README.zh-CN.md
CHANGED
|
@@ -6,69 +6,47 @@ DeepSeek Harness(DSH)的单用户远程登录插件,提供密码、TOTP、
|
|
|
6
6
|
|
|
7
7
|
## 前置条件
|
|
8
8
|
|
|
9
|
-
- Linux(含 `/proc`)、Node.js 24 或更高版本,以及下表某个精确 DSH
|
|
9
|
+
- Linux(含 `/proc`)、Node.js 24 或更高版本,以及下表某个精确 DSH 目标;开发默认 `0.2.1-rc.4`。仅从源码构建时需要 pnpm 12.5.1。
|
|
10
10
|
- DSH 默认的 `~/.dsh` 数据目录和 `web` profile。账号状态属于该 profile,不与其他 profile 共用。
|
|
11
11
|
- 源码浏览器测试先执行 `pnpm exec playwright install chromium`。测试使用 Playwright 管理的浏览器和专用自签 TLS 夹具。
|
|
12
12
|
|
|
13
13
|
## DSH 兼容性
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
按历史 [DSH → 插件](docs/support-history.zh-CN.md#by-dsh)或[插件 → DSH](docs/support-history.zh-CN.md#by-plugin)表查询自己的版本。表中区分已发布声明、历史测试报告、候选实测与实际归档可获取性。
|
|
15
|
+
未发布候选 **`0.3.1`** 在 `dsh.compatibility.dshReleases` 声明以下七个精确目标。`engines.dsh`、WebServer peer 和运行时准入下限一致为 `>=0.2.1-alpha.3`,不设上限且按 SemVer 包含预发布。开发默认与迁移推荐为 **`0.2.1-rc.4`**。最终同包验证记录与声明分开保存。
|
|
18
16
|
|
|
19
17
|
| 精确支持的 DSH 版本 | 维护状态 | Legacy 起算 | 窗口 | 最早退役资格日 |
|
|
20
18
|
| ------------------- | ------------------ | ----------- | ----- | -------------- |
|
|
21
|
-
| `0.1
|
|
22
|
-
| `0.1
|
|
23
|
-
| `0.2.
|
|
24
|
-
| `0.2.0-rc.2` | Legacy;继续支持 | 2026-10-19 | 21 日 | 2026-11-09 |
|
|
25
|
-
| `0.2.1-alpha.1` | Legacy;继续支持 | 2026-10-19 | 21 日 | 2026-11-09 |
|
|
26
|
-
| `0.2.1-alpha.2` | Legacy;继续支持 | 2026-10-19 | 21 日 | 2026-11-09 |
|
|
27
|
-
| `0.2.1-alpha.3` | 正常支持 | — | — | 未公告 |
|
|
28
|
-
| `0.2.1-alpha.4` | 正常支持 | — | — | 未公告 |
|
|
29
|
-
| `0.2.1-alpha.5` | 正常支持 | — | — | 未公告 |
|
|
19
|
+
| `0.2.1-alpha.3` | Legacy;继续支持 | 2026-10-28 | 14 日 | 2026-11-11 |
|
|
20
|
+
| `0.2.1-alpha.4` | Legacy;继续支持 | 2026-10-28 | 14 日 | 2026-11-11 |
|
|
21
|
+
| `0.2.1-alpha.5` | Legacy;继续支持 | 2026-10-28 | 14 日 | 2026-11-11 |
|
|
30
22
|
| `0.2.1-rc.1` | 正常支持 | — | — | 未公告 |
|
|
31
|
-
| `0.2.1-rc.2` |
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
| DSH 版本 | 具体 IPv4 HTTP | 原生公开 URL CLI、Web 提示与 `DSH_WEB_URL` | 原生 IPv6 / HTTPS |
|
|
36
|
-
| ------------- | -------------- | -------------------------------------------------------------------- | ----------------- |
|
|
37
|
-
| 0.1.7-rc.1 | 支持 | 无 `--public-url`;原生模型侧 URL 保持 `http://127.0.0.1:<实际端口>` | 不支持 |
|
|
38
|
-
| 0.1.7-rc.2 | 支持 | 无 `--public-url`;原生模型侧 URL 保持 `http://127.0.0.1:<实际端口>` | 不支持 |
|
|
39
|
-
| 0.2.0-rc.1 | 支持 | 无 `--public-url`;原生模型侧 URL 保持 `http://127.0.0.1:<实际端口>` | 不支持 |
|
|
40
|
-
| 0.2.0-rc.2 | 支持 | 无 `--public-url`;原生模型侧 URL 保持 `http://127.0.0.1:<实际端口>` | 不支持 |
|
|
41
|
-
| 0.2.1-alpha.1 | 支持 | 支持;使用插件最终公开根地址 | 不支持 |
|
|
42
|
-
| 0.2.1-alpha.2 | 支持 | 支持;使用插件最终公开根地址 | 通过官方监听支持 |
|
|
43
|
-
| 0.2.1-alpha.3 | 支持 | 支持;最终公开根地址写入运行时上下文与 `DSH_WEB_URL` | 通过官方监听支持 |
|
|
44
|
-
| 0.2.1-alpha.4 | 支持 | 支持;最终公开根地址写入运行时上下文与 `DSH_WEB_URL` | 通过官方监听支持 |
|
|
45
|
-
| 0.2.1-alpha.5 | 支持 | 支持;最终公开根地址写入运行时上下文与 `DSH_WEB_URL` | 通过官方监听支持 |
|
|
46
|
-
| 0.2.1-rc.1 | 支持 | 原生公开根地址写入运行时上下文与 `DSH_WEB_URL` | 通过官方监听支持 |
|
|
47
|
-
| 0.2.1-rc.2 | 支持;开发默认 | 原生公开根地址写入运行时上下文与 `DSH_WEB_URL` | 通过官方监听支持 |
|
|
23
|
+
| `0.2.1-rc.2` | 正常支持 | — | — | 未公告 |
|
|
24
|
+
| `0.2.1-rc.3` | 正常支持 | — | — | 未公告 |
|
|
25
|
+
| `0.2.1-rc.4` | 正常支持;开发默认 | — | — | 未公告 |
|
|
48
26
|
|
|
49
|
-
|
|
27
|
+
日期按 `Asia/Shanghai` 当日 00:00 计算;资格日不自动终止支持或删除 CI。插件 `0.3.1` 退役 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.0`,不能安装本候选。按[DSH → 插件](docs/support-history.zh-CN.md#by-dsh)或[插件 → DSH](docs/support-history.zh-CN.md#by-plugin)查询历史声明、报告与分发事实;两份支持规范保留前一发布的记录,本候选事实以本文和历史表为准。
|
|
50
28
|
|
|
51
|
-
|
|
29
|
+
七版均使用同一入口配置,支持具体 IPv4/IPv6、原生 HTTP/HTTPS、CLI `--public-url`,最终公开根地址写入模型运行时上下文与 `DSH_WEB_URL`。模型 Web 提示各段不应重复公开 URL 或泄露 token。原生能力与保留适配见[兼容维护清单](docs/legacy-compatibility.zh-CN.md)。
|
|
52
30
|
|
|
53
|
-
[
|
|
31
|
+
后续版本按范围向前准入,仍须通过 WebServer/Connection API、宿主包身份和原生认证交换检查;准入不构成逐版支持或实测声明。七版始终运行 CLI/smoke,全量、手动、定时及发布计划运行七版完整 browser,并独立验证退役边界 `0.2.1-alpha.2` 的拒绝路径。普通低风险计划使用[固定 browser 选择](docs/development.zh-CN.md#普通与全量-ci-计划),不运行真实旧宿主负向任务。
|
|
54
32
|
|
|
55
33
|
## 从 npm 安装
|
|
56
34
|
|
|
57
|
-
|
|
35
|
+
`0.3.1` 尚未发布;以下 npm 命令仅在[精确分发记录](docs/support-history.zh-CN.md#plugin-0.3.1)确认发布后使用。准备期间使用已验证的 `./artifacts/dsh-auth-remote-0.3.1.tgz` 本地路径替代包名,安装到默认 `web` profile:
|
|
58
36
|
|
|
59
37
|
```sh
|
|
60
38
|
dsh --version
|
|
61
|
-
dsh plugin --profile web add dsh-auth-remote@0.
|
|
39
|
+
dsh plugin --profile web add dsh-auth-remote@0.3.1
|
|
62
40
|
dsh plugin --profile web list
|
|
63
41
|
```
|
|
64
42
|
|
|
65
|
-
确认 `dsh --version`
|
|
43
|
+
确认 `dsh --version` 输出推荐的 `0.2.1-rc.4`,且插件列表中有 `dsh-auth-remote@0.3.1`。这些命令使用 DSH 默认数据目录。源码构建及隔离开发运行时参见[开发指南](docs/development.zh-CN.md)。
|
|
66
44
|
|
|
67
45
|
## 配置 web profile
|
|
68
46
|
|
|
69
47
|
最小安装无需修改 profile 补丁。用 `dsh web --no-open --port 13090` 启动,使用终端打印的 `http://127.0.0.1:13090/` 根地址。未显式设置 `publicUrl` 时,插件根据监听的实际协议、地址和绑定端口生成唯一根地址,包含 `--port 0` 的实际结果。未登录导航跳转登录页;使用服务前检查 `/auth-remote/ready`。启动输出包含监听地址和一个不同的公开根地址,不含原生 `?token=` URL。
|
|
70
48
|
|
|
71
|
-
公网 HTTPS 入口请使用[部署指南](docs/deployment.zh-CN.md)和 [profile 示例](examples/web-profile-auth-remote.patch.yml),设置顶层 `publicUrl: https://dsh.example.com/`、`host`、`port
|
|
49
|
+
公网 HTTPS 入口请使用[部署指南](docs/deployment.zh-CN.md)和 [profile 示例](examples/web-profile-auth-remote.patch.yml),设置顶层 `publicUrl: https://dsh.example.com/`、`host`、`port`。全部七个支持版本还支持具体 IPv6 和成对的顶层 `tlsCert`/`tlsKey`。URL 必须是 HTTP(S) 根地址,不能带凭据、子路径、查询或片段。准入范围是唯一公开来源加字面回环。配置 URL 不会配置代理路由或 TLS。
|
|
72
50
|
|
|
73
51
|
插件自动将定稿的原生桥接 authority 登记到 Connection 的 `trustedHosts`,下游插件无需额外 `--trusted-host` 即可识别具体监听地址。下游路由若需要原始公网 Host,可把路径加入 `preserveOriginPaths`,此时也自动登记最终公开 authority。显式 CLI trusted hosts 继续保留,外层公开来源与登录校验仍然生效。CLI 的 host/port 和公开 URL 覆盖文件值;TLS 按完整一对覆盖。升级 `allowedOrigins` 前阅读[迁移和路径规则](docs/deployment.zh-CN.md#配置优先级与路径基准):零项或单项在内存迁移并告警,多项及任意显式新旧字段共存报错。
|
|
74
52
|
|
|
@@ -86,7 +64,7 @@ dsh plugin --profile web exec dsh-auth-remote init --lang zh
|
|
|
86
64
|
|
|
87
65
|
最小化安装时访问本机回环地址;配置公网入口后访问 `https://dsh.example.com/auth-remote/login`。DSH 内的安全设置可以修改密码、绑定 TOTP、在策略允许时关闭 TOTP,以及撤销会话。密码或第二因素变更会撤销已有会话。会话默认固定有效 168 小时,服务重启后仍保留。
|
|
88
66
|
|
|
89
|
-
|
|
67
|
+
全部七个支持版本从侧栏账号菜单进入 **设置 → 安全与登录**。
|
|
90
68
|
|
|
91
69
|
登录页引用 DSH 的 PWA manifest,manifest 与 favicon 在登录前即可读取;业务页面和 API 仍需认证。具体范围见[公开资源规则](docs/deployment.zh-CN.md#来源与桥接契约)。
|
|
92
70
|
|
|
@@ -105,13 +83,13 @@ dsh plugin --profile web exec dsh-auth-remote revoke-sessions --lang zh
|
|
|
105
83
|
|
|
106
84
|
## 登录 DeepSeek 官方账号
|
|
107
85
|
|
|
108
|
-
手动回填按 SemVer(包含预发布)从 `>=0.2.1-alpha.3` 前向准入,还须具备必要原生 API 且 `manualAccountLogin: true`。完整功能实测目标为 **0.2.1-alpha.3**、**0.2.1-alpha.4**、**0.2.1-alpha.5**、**0.2.1-rc.1**、**0.2.1-rc.2**;未来版本须精确回归后才宣称已验证。账号菜单中的“登录”先打开步骤说明弹窗,不会立即发起授权。点击“打开登录页”,在新标签页完成官方登录;授权后该标签页可能在回环地址显示连接失败或 404。复制地址栏中的完整 URL(包含 `code` 和 `state`),粘贴到“完整回调地址”,再点击“确认登录”。整个过程中保留原 DSH 页面;弹窗被浏览器拦截时,可使用弹窗内的授权链接。
|
|
86
|
+
手动回填按 SemVer(包含预发布)从 `>=0.2.1-alpha.3` 前向准入,还须具备必要原生 API 且 `manualAccountLogin: true`。完整功能实测目标为 **0.2.1-alpha.3**、**0.2.1-alpha.4**、**0.2.1-alpha.5**、**0.2.1-rc.1**、**0.2.1-rc.2**、**0.2.1-rc.3**、**0.2.1-rc.4**;未来版本须精确回归后才宣称已验证。账号菜单中的“登录”先打开步骤说明弹窗,不会立即发起授权。点击“打开登录页”,在新标签页完成官方登录;授权后该标签页可能在回环地址显示连接失败或 404。复制地址栏中的完整 URL(包含 `code` 和 `state`),粘贴到“完整回调地址”,再点击“确认登录”。整个过程中保留原 DSH 页面;弹窗被浏览器拦截时,可使用弹窗内的授权链接。
|
|
109
87
|
|
|
110
88
|
在 **设置 → 安全与登录 → 登录配置** 中切换“远程 DeepSeek 账号登录”,默认开启。保存通过原生 Settings 写入当前 profile override,当前页新授权立即采用最新值,重启后保留;保存失败会显示错误。关闭只恢复新授权的原生入口,不取消已接纳的手动授权、不退出已有官方账号,也不承诺原生公网回调可用。其他已打开页面无需主动同步;旧页新建授权会提示关闭并建议刷新。
|
|
111
89
|
|
|
112
|
-
手动回填无需本地监听器、SSH 隧道或浏览器扩展。回环地址用于承载授权结果,页面无需正常打开。插件只解析粘贴的 URL,在 DSH 内部分发回调,保留原生 state 校验、PKCE 兑换与凭据存储,不会请求粘贴的地址。待完成授权绑定发起操作的远程会话,最长有效期为十分钟;关闭弹窗或撤销该会话会取消待完成授权。过期或失败后须重新开始。
|
|
90
|
+
手动回填无需本地监听器、SSH 隧道或浏览器扩展。回环地址用于承载授权结果,页面无需正常打开。插件只解析粘贴的 URL,在 DSH 内部分发回调,保留原生 state 校验、PKCE 兑换与凭据存储,不会请求粘贴的地址。待完成授权绑定发起操作的远程会话,最长有效期为十分钟;关闭弹窗或撤销该会话会取消待完成授权。过期或失败后须重新开始。
|
|
113
91
|
|
|
114
|
-
DSH `0.2.1-alpha.3`、`0.2.1-alpha.4`、`0.2.1-alpha.5`、`0.2.1-rc.1`、`0.2.1-rc.2` 的弹窗在授权开始前也提供“使用 API Key”,点击后进入原生凭据编辑器,直到保存密钥或用户选择“稍后配置”才结束引导;账号菜单中也保留同一入口。授权进行中时,次要按钮用于取消本次授权。
|
|
92
|
+
DSH `0.2.1-alpha.3`、`0.2.1-alpha.4`、`0.2.1-alpha.5`、`0.2.1-rc.1`、`0.2.1-rc.2`、`0.2.1-rc.3`、`0.2.1-rc.4` 的弹窗在授权开始前也提供“使用 API Key”,点击后进入原生凭据编辑器,直到保存密钥或用户选择“稍后配置”才结束引导;账号菜单中也保留同一入口。授权进行中时,次要按钮用于取消本次授权。
|
|
115
93
|
|
|
116
94
|
## 接入反向代理
|
|
117
95
|
|
package/dist/client.js
CHANGED
|
@@ -5274,10 +5274,10 @@ var zh = {
|
|
|
5274
5274
|
};
|
|
5275
5275
|
|
|
5276
5276
|
// src/client/settings/style.css
|
|
5277
|
-
var style_default = "/* Inherit the host's live DSH theme. Scope every rule to this settings section.\n * Radius fallbacks match 0.1.7, before DSH published the shared radius tokens. */\n.auth-remote-security {\n min-width: 0;\n color: var(--dsw-alias-label-primary);\n font-family: var(--dsw-font-family);\n font-size: 14px;\n line-height: 22px;\n}\n\n.auth-remote-security h2 {\n margin: 0 0 8px;\n font-size: 16px;\n font-weight: 500;\n line-height: 24px;\n}\n\n.auth-remote-security h3 {\n margin: 0 0 8px;\n font-size: 14px;\n font-weight: 500;\n line-height: 22px;\n}\n\n.auth-remote-security p {\n margin: 0 0 16px;\n color: var(--dsw-alias-label-secondary);\n font-size: 13px;\n line-height: 20px;\n}\n\n.auth-remote-actions {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n padding: 4px 0 20px;\n}\n\n.auth-remote-security form {\n margin: 0;\n padding: 20px 0;\n border-top: 0.5px solid var(--dsw-alias-border-l2);\n}\n\n.auth-remote-field {\n display: flex;\n flex-direction: column;\n gap: 6px;\n margin-bottom: 16px;\n font-size: 13px;\n line-height: 20px;\n}\n\n.auth-remote-field input {\n box-sizing: border-box;\n width: 100%;\n max-width: 420px;\n min-width: 0;\n height: 32px;\n padding: 0 10px;\n border: 0.5px solid var(--dsw-alias-border-l4);\n border-radius: var(--dsw-radius-md
|
|
5277
|
+
var style_default = "/* Inherit the host's live DSH theme. Scope every rule to this settings section.\n * Radius fallbacks match 0.1.7, before DSH published the shared radius tokens. */\n.auth-remote-security {\n min-width: 0;\n color: var(--dsw-alias-label-primary);\n font-family: var(--dsw-font-family);\n font-size: 14px;\n line-height: 22px;\n}\n\n.auth-remote-security h2 {\n margin: 0 0 8px;\n font-size: 16px;\n font-weight: 500;\n line-height: 24px;\n}\n\n.auth-remote-security h3 {\n margin: 0 0 8px;\n font-size: 14px;\n font-weight: 500;\n line-height: 22px;\n}\n\n.auth-remote-security p {\n margin: 0 0 16px;\n color: var(--dsw-alias-label-secondary);\n font-size: 13px;\n line-height: 20px;\n}\n\n.auth-remote-actions {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n padding: 4px 0 20px;\n}\n\n.auth-remote-security form {\n margin: 0;\n padding: 20px 0;\n border-top: 0.5px solid var(--dsw-alias-border-l2);\n}\n\n.auth-remote-field {\n display: flex;\n flex-direction: column;\n gap: 6px;\n margin-bottom: 16px;\n font-size: 13px;\n line-height: 20px;\n}\n\n.auth-remote-field input {\n box-sizing: border-box;\n width: 100%;\n max-width: 420px;\n min-width: 0;\n height: 32px;\n padding: 0 10px;\n border: 0.5px solid var(--dsw-alias-border-l4);\n border-radius: var(--dsw-radius-md);\n background: var(--dsw-alias-bg-layer-1);\n color: var(--dsw-alias-label-primary);\n font: inherit;\n font-size: 14px;\n line-height: 22px;\n}\n\n.auth-remote-field input:focus {\n outline: none;\n border-color: var(--dsw-alias-state-business-primary);\n}\n\n.auth-remote-button {\n box-sizing: border-box;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-height: 36px;\n max-width: 100%;\n padding: 6px 14px;\n border: 0.5px solid var(--dsw-alias-border-l3);\n border-radius: var(--dsw-radius-md);\n background: transparent;\n color: var(--dsw-alias-label-primary);\n font: inherit;\n font-size: 14px;\n line-height: 22px;\n cursor: pointer;\n}\n\n.auth-remote-button:hover:not(:disabled) {\n background: var(--dsw-alias-interactive-bg-hover);\n}\n\n.auth-remote-button[aria-pressed='true'] {\n background: var(--dsw-alias-bg-module-platform);\n border-color: var(--dsw-static-neutral-bluish-400);\n}\n\n.auth-remote-primary {\n border-color: transparent;\n background: var(--dsw-alias-button-primary-fill);\n color: var(--dsw-alias-label-primary-foreground);\n}\n\n.auth-remote-primary:hover:not(:disabled) {\n background: var(--dsw-alias-button-primary-hover);\n}\n\n.auth-remote-button:disabled {\n opacity: 0.4;\n cursor: not-allowed;\n}\n\n.auth-remote-button:focus-visible {\n outline-style: solid;\n outline-width: var(--dsw-focus-ring-width);\n outline-offset: 2px;\n}\n\n.auth-remote-restart {\n margin-left: 8px;\n}\n\n.auth-remote-security img {\n display: block;\n max-width: 100%;\n height: auto;\n margin: 16px 0;\n border-radius: var(--dsw-radius-md);\n}\n\n.auth-remote-security code,\n.auth-remote-backup-codes {\n font-family: var(--ds-font-family-code);\n overflow-wrap: anywhere;\n user-select: all;\n}\n\n.auth-remote-backup-codes {\n display: grid;\n grid-template-columns: repeat(2, minmax(0, 1fr));\n gap: 8px 24px;\n margin: 20px 0;\n padding: 16px 16px 16px 40px;\n border-radius: var(--dsw-radius-lg);\n background: var(--dsw-alias-bg-module-platform);\n}\n\n.auth-remote-security .auth-remote-error {\n margin: 12px 0 0;\n color: var(--dsw-alias-state-error-primary);\n}\n\n.auth-remote-error:empty {\n display: none;\n}\n\n.auth-remote-security .auth-remote-manual-setting {\n margin-block: 20px 16px;\n}\n.auth-remote-manual-row {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: space-between;\n gap: 10px 16px;\n}\n.auth-remote-manual-copy {\n flex: 1 1 180px;\n min-width: 0;\n}\n.auth-remote-security .auth-remote-manual-copy p {\n margin: 4px 0 0;\n}\n.auth-remote-switch {\n box-sizing: border-box;\n flex: 0 0 auto;\n width: 36px;\n height: 20px;\n margin-left: auto;\n padding: 2px;\n border: 0;\n border-radius: 999px;\n corner-shape: round;\n background: var(--dsw-alias-border-l3);\n cursor: pointer;\n}\n.auth-remote-switch > span {\n display: block;\n width: 16px;\n height: 16px;\n border-radius: 50%;\n corner-shape: round;\n background: var(--dsw-alias-switch-thumb);\n transition: transform 120ms ease;\n}\n.auth-remote-switch[aria-checked='true'] {\n background: var(--dsw-alias-brand-primary);\n}\n.auth-remote-switch[aria-checked='true'] > span {\n transform: translateX(16px);\n background: var(--dsw-alias-label-primary-foreground);\n}\n.auth-remote-switch:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n.auth-remote-switch:focus-visible,\n.auth-remote-policy-hint:focus-visible {\n outline-style: solid;\n outline-width: var(--dsw-focus-ring-width);\n outline-offset: 2px;\n}\n\n.auth-remote-overview {\n margin: 12px 0 20px;\n display: grid;\n gap: 8px;\n}\n.auth-remote-overview > div {\n display: grid;\n grid-template-columns: minmax(100px, 1fr) 2fr;\n gap: 16px;\n}\n.auth-remote-overview dt {\n min-height: 22px;\n color: var(--dsw-alias-label-secondary);\n}\n.auth-remote-overview dd {\n min-height: 22px;\n margin: 0;\n overflow-wrap: anywhere;\n}\n.auth-remote-loading-status {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n}\n.auth-remote-totp-status {\n display: flex;\n align-items: center;\n gap: 6px;\n}\n.auth-remote-policy-hint {\n display: inline-flex;\n flex: none;\n align-items: center;\n color: var(--dsw-alias-label-secondary);\n border-radius: 50%;\n cursor: help;\n}\n.auth-remote-operation-row {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: space-between;\n gap: 8px 12px;\n border-top: 0.5px solid var(--dsw-alias-border-l2);\n padding: 10px 0;\n}\n.auth-remote-security .auth-remote-operation-row h3 {\n margin: 0;\n}\n.auth-remote-operation-row .auth-remote-actions {\n padding: 0;\n justify-content: flex-end;\n}\n.auth-remote-operation-row .auth-remote-button {\n min-height: 32px;\n padding: 4px 10px;\n line-height: 22px;\n}\n.auth-remote-operation-dialog {\n box-sizing: border-box;\n width: min(480px, calc(100vw - 32px));\n max-height: calc(100dvh - 32px);\n margin: auto;\n padding: 20px;\n border: 0.5px solid var(--dsw-alias-border-l3);\n border-radius: var(--dsw-radius-lg);\n background: var(--dsw-alias-bg-layer-1);\n color: var(--dsw-alias-label-primary);\n overflow: auto;\n}\n.auth-remote-operation-dialog::backdrop {\n background: rgba(0, 0, 0, 0.45);\n}\n.auth-remote-dialog-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 16px;\n margin-bottom: 16px;\n}\n.auth-remote-dialog-header h2 {\n margin: 0;\n}\n.auth-remote-dialog-close {\n flex: none;\n width: 28px;\n min-height: 28px;\n padding: 0;\n border: 0;\n font-size: 20px;\n line-height: 20px;\n color: var(--dsw-alias-label-secondary);\n}\n.auth-remote-dialog-actions {\n display: flex;\n justify-content: flex-end;\n flex-wrap: wrap;\n gap: 8px;\n margin-top: 20px;\n}\n.auth-remote-operation-dialog fieldset {\n border: 0;\n margin: 0;\n padding: 0;\n min-width: 0;\n}\n.auth-remote-operation-dialog form {\n border: 0;\n padding: 0;\n}\n@media (max-width: 600px) {\n .auth-remote-overview > div {\n grid-template-columns: 1fr;\n gap: 4px;\n }\n}\n@media (prefers-reduced-motion: reduce) {\n .auth-remote-switch > span {\n transition: none;\n }\n}\n";
|
|
5278
5278
|
|
|
5279
5279
|
// src/client/account/style.css
|
|
5280
|
-
var style_default2 = "/* Match DSH's account modal typography and shared control/surface tokens. */\n.auth-remote-account-dialog {\n box-sizing: border-box;\n width: min(480px, calc(100vw - 32px));\n max-height: calc(100dvh - 32px);\n margin: auto;\n padding: 0;\n overflow: hidden;\n border: 0.5px solid var(--dsw-alias-border-l3);\n border-radius: var(--dsw-radius-lg
|
|
5280
|
+
var style_default2 = "/* Match DSH's account modal typography and shared control/surface tokens. */\n.auth-remote-account-dialog {\n box-sizing: border-box;\n width: min(480px, calc(100vw - 32px));\n max-height: calc(100dvh - 32px);\n margin: auto;\n padding: 0;\n overflow: hidden;\n border: 0.5px solid var(--dsw-alias-border-l3);\n border-radius: var(--dsw-radius-lg);\n background: var(--dsw-alias-bg-layer-1);\n color: var(--dsw-alias-label-primary);\n font-family: var(--dsw-font-family);\n font-size: 14px;\n line-height: 22px;\n}\n.auth-remote-account-dialog::backdrop {\n background: rgba(0, 0, 0, 0.45);\n}\n.auth-remote-account-dialog form {\n display: flex;\n flex-direction: column;\n max-height: inherit;\n margin: 0;\n}\n.auth-remote-account-header {\n display: flex;\n flex: none;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n padding: 20px 20px 16px;\n}\n.auth-remote-account-header h2 {\n margin: 0;\n font-size: 16px;\n font-weight: 500;\n line-height: 24px;\n}\n.auth-remote-account-dialog button {\n font: inherit;\n cursor: pointer;\n}\n.auth-remote-account-dialog .auth-remote-account-close {\n box-sizing: border-box;\n display: inline-flex;\n flex: none;\n align-items: center;\n justify-content: center;\n width: 28px;\n height: 28px;\n padding: 0;\n border: 0;\n border-radius: var(--dsw-radius-md);\n background: transparent;\n color: var(--dsw-alias-label-secondary);\n font-size: 20px;\n line-height: 20px;\n}\n.auth-remote-account-close:hover:not(:disabled) {\n background: var(--dsw-alias-interactive-bg-hover);\n}\n.auth-remote-account-body {\n display: flex;\n flex-direction: column;\n gap: 12px;\n min-height: 0;\n padding: 0 20px;\n overflow-y: auto;\n}\n.auth-remote-account-steps,\n.auth-remote-account-hint,\n.auth-remote-account-reopen,\n.auth-remote-account-status,\n.auth-remote-account-error {\n margin: 0;\n font: inherit;\n}\n.auth-remote-account-hint,\n.auth-remote-account-status {\n color: var(--dsw-alias-label-secondary);\n}\n.auth-remote-account-steps {\n padding-left: 20px;\n}\n.auth-remote-account-steps li + li {\n margin-top: 4px;\n}\n.auth-remote-account-callback,\n.auth-remote-account-field {\n display: flex;\n flex-direction: column;\n gap: 6px;\n}\n.auth-remote-account-field textarea {\n box-sizing: border-box;\n width: 100%;\n min-height: 72px;\n resize: vertical;\n padding: 8px 10px;\n border: 0.5px solid var(--dsw-alias-border-l4);\n border-radius: var(--dsw-radius-md);\n background: var(--dsw-alias-bg-layer-1);\n color: inherit;\n font: inherit;\n overflow-wrap: anywhere;\n}\n.auth-remote-account-field textarea::placeholder {\n color: var(--dsw-alias-label-secondary);\n opacity: 1;\n}\n.auth-remote-account-field textarea:focus {\n border-color: var(--dsw-alias-state-business-primary);\n}\n.auth-remote-account-hint {\n font-size: 13px;\n line-height: 20px;\n}\n.auth-remote-account-dialog a {\n color: var(--dsw-alias-link);\n font-weight: 500;\n text-decoration: none;\n}\n.auth-remote-account-dialog a:hover,\n.auth-remote-account-dialog a:focus-visible {\n text-decoration: underline dotted;\n text-underline-offset: 3px;\n}\n.auth-remote-account-error {\n color: var(--dsw-alias-state-error-primary);\n}\n.auth-remote-account-status:empty,\n.auth-remote-account-error:empty {\n display: none;\n}\n.auth-remote-account-actions {\n display: flex;\n flex: none;\n justify-content: flex-end;\n align-items: center;\n gap: 8px;\n padding: 16px 20px 20px;\n}\n.auth-remote-account-actions button {\n box-sizing: border-box;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: 72px;\n height: 36px;\n border: 0.5px solid var(--dsw-alias-border-l3);\n border-radius: var(--dsw-radius-md);\n padding: 0 14px;\n background: transparent;\n color: inherit;\n}\n.auth-remote-account-actions button:hover:not(:disabled) {\n background: var(--dsw-alias-interactive-bg-hover);\n}\n.auth-remote-account-actions .auth-remote-account-primary {\n padding: 0 16px;\n background: var(--dsw-alias-button-primary-fill);\n border-color: transparent;\n color: var(--dsw-alias-label-primary-foreground);\n font-weight: 500;\n}\n.auth-remote-account-actions .auth-remote-account-primary:hover:not(:disabled) {\n background: var(--dsw-alias-button-primary-hover);\n}\n.auth-remote-account-dialog :disabled {\n opacity: 0.4;\n cursor: not-allowed;\n}\n.auth-remote-account-dialog :focus-visible {\n outline-style: solid;\n outline-width: var(--dsw-focus-ring-width);\n outline-offset: 2px;\n}\n@media (max-width: 480px) {\n .auth-remote-account-actions {\n flex-wrap: wrap;\n }\n .auth-remote-account-actions button {\n flex: 1;\n min-width: max-content;\n padding: 0 12px;\n white-space: nowrap;\n }\n}\n";
|
|
5281
5281
|
|
|
5282
5282
|
// src/shared/account-login.ts
|
|
5283
5283
|
var import_semver = __toESM(require_semver2(), 1);
|