dsh-auth-remote 0.1.9 → 0.1.10

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.
Files changed (49) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/CHANGELOG.zh-CN.md +11 -0
  3. package/README.md +17 -11
  4. package/README.zh-CN.md +17 -11
  5. package/cordis.patch.yml +2 -1
  6. package/dist/cli.js +91 -46
  7. package/dist/cli.js.map +2 -2
  8. package/dist/client.js +2880 -581
  9. package/dist/client.js.map +4 -4
  10. package/dist/index.js +133 -36
  11. package/dist/index.js.map +3 -3
  12. package/dist/login.css +2 -8
  13. package/dist/login.css.map +2 -2
  14. package/dist/login.js +80 -42
  15. package/dist/login.js.map +2 -2
  16. package/dist/types/adapters/dsh/account-callback.d.ts +3 -0
  17. package/dist/types/adapters/dsh/account-callback.d.ts.map +1 -1
  18. package/dist/types/adapters/dsh/hmr-context.d.ts +10 -0
  19. package/dist/types/adapters/dsh/hmr-context.d.ts.map +1 -0
  20. package/dist/types/auth/service.d.ts +2 -0
  21. package/dist/types/auth/service.d.ts.map +1 -1
  22. package/dist/types/auth/sessions.d.ts +2 -0
  23. package/dist/types/auth/sessions.d.ts.map +1 -1
  24. package/dist/types/config.d.ts +9 -3
  25. package/dist/types/config.d.ts.map +1 -1
  26. package/dist/types/http/account-login.d.ts +5 -3
  27. package/dist/types/http/account-login.d.ts.map +1 -1
  28. package/dist/types/index.d.ts +2 -2
  29. package/dist/types/index.d.ts.map +1 -1
  30. package/dist/types/shared/account-login.d.ts +2 -1
  31. package/dist/types/shared/account-login.d.ts.map +1 -1
  32. package/dist/types/shared/auth-contract.d.ts +2 -0
  33. package/dist/types/shared/auth-contract.d.ts.map +1 -1
  34. package/dist/types/shared/i18n.d.ts +78 -40
  35. package/dist/types/shared/i18n.d.ts.map +1 -1
  36. package/dist/types/shared/locales/en.d.ts +39 -20
  37. package/dist/types/shared/locales/en.d.ts.map +1 -1
  38. package/dist/types/shared/locales/zh.d.ts +39 -20
  39. package/dist/types/shared/locales/zh.d.ts.map +1 -1
  40. package/docs/deployment.md +22 -19
  41. package/docs/deployment.zh-CN.md +22 -19
  42. package/docs/development.md +20 -8
  43. package/docs/development.zh-CN.md +20 -8
  44. package/docs/legacy-compatibility.md +86 -64
  45. package/docs/legacy-compatibility.zh-CN.md +86 -64
  46. package/docs/releasing.md +5 -5
  47. package/docs/releasing.zh-CN.md +5 -5
  48. package/examples/web-profile-auth-remote.patch.yml +4 -2
  49. package/package.json +18 -14
package/CHANGELOG.md CHANGED
@@ -6,6 +6,17 @@ This file records user-visible changes to the released package. Version numbers
6
6
 
7
7
  ## Unreleased
8
8
 
9
+ ## 0.1.10 - 2026-10-19
10
+
11
+ - Add DSH `0.2.1-alpha.4` and `0.2.1-alpha.5` support, pin development/default tests to `0.2.1-alpha.5`, and extend CLI, full browser and installation-smoke verification to all nine supported releases. Retain the remote callback and HMR isolation adaptations, exercise native host-release refresh on `0.2.1-alpha.4` and `0.2.1-alpha.5`, and declare `engines.dsh >=0.1.7-rc.1`.
12
+ - Fix native Settings writes after a running DSH hot-reloads the plugin: initialize the listener outside the reload transaction context so re-enabling remote account sign-in still enters the native configuration queue.
13
+ - Fix configuration retry after an initial Settings read failure or a temporarily missing namespace, and wait for the loaded preference before choosing manual or native account sign-in.
14
+ - Simplify the standalone sign-in heading and remove redundant account instructions; show account overview labels and reserved value rows before loading completes.
15
+ - Use a visual switch for remote account sign-in, place its explanation under the feature, show required TOTP policy as inline help, compact security actions and simplify account sign-in instructions with matching dialog styles.
16
+ - Add default-on `manualAccountLogin` through native Settings profile overrides. Accepted saves affect new attempts immediately; disabling preserves admitted authorizations and restores native entries. Manual admission uses SemVer `>=0.2.1-alpha.3` including prereleases, required APIs and configuration; exact full-feature targets are `0.2.1-alpha.3`, `0.2.1-alpha.4` and `0.2.1-alpha.5`.
17
+ - Default `requireTotp` to false while preserving explicit policy, existing TOTP and backup codes. Reorganize Security & sign-in into account overview, sign-in options and task dialogs for passwords, TOTP and current/all-session sign-out.
18
+ - Show backup codes once in the same successful TOTP dialog, with Copy all, protected acknowledgement and a redirect hold after revocation. Preserve atomic verification, cancellation/errors, rate limits, session and callback security boundaries.
19
+
9
20
  ## 0.1.9 - 2026-10-15
10
21
 
11
22
  - Add DSH 0.2.1-alpha.3 to the compatibility declaration and seven-version CLI, installation smoke and browser matrix; use its packages for development and default verification.
@@ -6,6 +6,17 @@
6
6
 
7
7
  ## 未发布
8
8
 
9
+ ## 0.1.10 - 2026-10-19
10
+
11
+ - 新增 DSH `0.2.1-alpha.4`、`0.2.1-alpha.5` 支持,开发与默认测试固定到 `0.2.1-alpha.5`,CLI、完整浏览器及安装 smoke 覆盖全部九个支持版本;保留远程回调与 HMR 隔离适配,覆盖 `0.2.1-alpha.4`、`0.2.1-alpha.5` 的原生宿主版本刷新回归,并声明 `engines.dsh >=0.1.7-rc.1`。
12
+ - 修复运行中的 DSH 热重载插件后无法重新开启远程账号登录:在重载事务上下文外初始化监听器,使后续原生设置保存仍正常进入配置队列。
13
+ - 修复首次设置读取失败或命名空间暂缺时的配置重试;登录操作等待配置读取完成,再按真实偏好选择手动或原生账号登录。
14
+ - 独立登录页仅保留“登录”主标题,移除重复账号说明;账户概览预先显示标签并预留数值行,加载完成后填入信息。
15
+ - 远程账号登录改用滑动开关,说明归入具体功能;强制 TOTP 提示改为行内图标,压缩安全操作区,并精简账号登录指引、统一弹窗样式。
16
+ - 增加默认开启的 `manualAccountLogin`,通过原生 Settings 持久写入 profile override;当前页保存即影响新授权,关闭保留在途授权并恢复原生入口。手动能力按包含预发布的 SemVer 下限 `>=0.2.1-alpha.3`、必要 API 与配置准入,精确实测覆盖 `0.2.1-alpha.3`、`0.2.1-alpha.4`、`0.2.1-alpha.5`。
17
+ - 默认 `requireTotp` 改为 false,保留显式策略、已有 TOTP 及备用码。重组“安全与登录”概览、登录配置与安全操作;密码、TOTP、当前及全部会话退出使用任务弹窗。
18
+ - TOTP 成功后在同一弹窗仅显示一次备用码,支持复制全部,确认前阻止误关闭并保留撤销后跳转;保留原子验证、取消/错误、限流、会话与回调安全边界。
19
+
9
20
  ## 0.1.9 - 2026-10-15
10
21
 
11
22
  - 将 DSH 0.2.1-alpha.3 加入兼容声明及七版 CLI、安装冒烟和浏览器矩阵,开发依赖与默认验证运行时同步升级。
package/README.md CHANGED
@@ -6,13 +6,13 @@ 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 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**, or **0.2.1-alpha.3** (default). pnpm 12.5.1 is needed only when building from source.
9
+ - Linux with `/proc`, Node.js 24 or newer, and 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.4**, or **0.2.1-alpha.5** (default). 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
- Compatibility is declared for the seven releases above in `dsh.compatibility.dshReleases`; development defaults to **0.2.1-alpha.3**. The host peer declaration and runtime version check both use `>=0.1.7-rc.1`, with no upper bound, including prereleases.
15
+ Compatibility is declared for the nine releases above in `dsh.compatibility.dshReleases`; development defaults to **0.2.1-alpha.5**. `engines.dsh`, the host peer declaration and runtime version check all use `>=0.1.7-rc.1`, with no upper bound, including prereleases.
16
16
 
17
17
  | DSH releases | Concrete IPv4 HTTP | Native public URL CLI, Web prompt and `DSH_WEB_URL` | Native IPv6 / HTTPS |
18
18
  | ------------- | ------------------ | --------------------------------------------------------------------------------- | ---------------------------------- |
@@ -23,10 +23,12 @@ Compatibility is declared for the seven releases above in `dsh.compatibility.dsh
23
23
  | 0.2.1-alpha.1 | Yes | Yes; uses the plugin's final public root | Unsupported |
24
24
  | 0.2.1-alpha.2 | Yes | Yes; uses the plugin's final public root | Yes, through the official listener |
25
25
  | 0.2.1-alpha.3 | Yes | Yes; final public root in runtime context and `DSH_WEB_URL` | Yes, through the official listener |
26
+ | 0.2.1-alpha.4 | Yes | Yes; final public root in runtime context and `DSH_WEB_URL` | Yes, through the official listener |
27
+ | 0.2.1-alpha.5 | Yes | Yes; final public root in runtime context and `DSH_WEB_URL` | Yes, through the official listener |
26
28
 
27
- Later versions are forward-admitted, not claimed as tested. The plugin still verifies the required WebServer/Connection APIs, shared host package identity, and native authentication exchange. Missing capabilities leave authentication unavailable with a diagnostic. CI covers CLI, installation smoke and browsers on all seven declared versions.
29
+ Later versions are forward-admitted, not claimed as tested. The plugin still verifies the required WebServer/Connection APIs, shared host package identity, and native authentication exchange. Missing capabilities leave authentication unavailable with a diagnostic. CI covers CLI, installation smoke and browsers on all nine declared versions.
28
30
 
29
- The plugin's single-entry configuration works on all seven releases. Native IPv6/TLS is available on DSH `0.2.1-alpha.2`, `0.2.1-alpha.3`; an external HTTPS proxy can serve HTTP listeners. For source builds, see the [development guide](docs/development.md).
31
+ The plugin's single-entry configuration works on all nine releases. Native IPv6/TLS is available on DSH `0.2.1-alpha.2`, `0.2.1-alpha.3`, `0.2.1-alpha.4`, `0.2.1-alpha.5`; an external HTTPS proxy can serve HTTP listeners. For source builds, see the [development guide](docs/development.md).
30
32
 
31
33
  The [compatibility inventory](docs/legacy-compatibility.md) provides feature-to-version and version-to-feature matrices, code/test references and migration or retirement conditions.
32
34
 
@@ -36,17 +38,17 @@ With DSH installed, verify its version and install the published plugin into the
36
38
 
37
39
  ```sh
38
40
  dsh --version
39
- dsh plugin --profile web add dsh-auth-remote@0.1.9
41
+ dsh plugin --profile web add dsh-auth-remote@0.1.10
40
42
  dsh plugin --profile web list
41
43
  ```
42
44
 
43
- Check that `dsh --version` prints `0.2.1-alpha.3` (or another compatible release above) and the plugin list includes `dsh-auth-remote@0.1.9`. These commands use DSH's default data directory. For source builds and an isolated development runtime, see the [development guide](docs/development.md).
45
+ Check that `dsh --version` prints `0.2.1-alpha.5` (or another compatible release above) and the plugin list includes `dsh-auth-remote@0.1.10`. These commands use DSH's default data directory. For source builds and an isolated development runtime, see the [development guide](docs/development.md).
44
46
 
45
47
  ## Configure the web profile
46
48
 
47
49
  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.
48
50
 
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`. DSH `0.2.1-alpha.2`, `0.2.1-alpha.3` 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.
51
+ 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`. DSH `0.2.1-alpha.2`, `0.2.1-alpha.3`, `0.2.1-alpha.4`, `0.2.1-alpha.5` 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.
50
52
 
51
53
  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.
52
54
 
@@ -58,13 +60,13 @@ Run this in a real terminal against the **same** default `web` profile as the se
58
60
  dsh plugin --profile web exec dsh-auth-remote init --lang en
59
61
  ```
60
62
 
61
- Enter one username and a password of 12–256 Unicode characters. The password is not a command-line argument and is not echoed. The login page guides an uninitialized profile back to this command; it cannot create the account. With the default `requireTotp: true`, the first password sign-in requires authenticator setup. Save the ten backup codes when shown: each works once and the list cannot be retrieved later.
63
+ Enter one username and a password of 12–256 Unicode characters. The password is not a command-line argument and is not echoed. The login page guides an uninitialized profile back to this command; it cannot create the account. TOTP is optional by default (`requireTotp: false`); the first password sign-in offers setup or skipping it. Set `requireTotp: true` to require setup. Upgrading follows the new default only when no explicit policy is configured; existing TOTP bindings, backup codes and explicit true/false settings are preserved. Save the ten backup codes when shown: each works once and the list cannot be retrieved later.
62
64
 
63
65
  ## Sign in and manage the account
64
66
 
65
67
  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.
66
68
 
67
- On DSH `0.2.1-alpha.3`, open the sidebar account menu, then **Settings → Security**. 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` expose Settings directly in the sidebar.
69
+ On DSH `0.2.1-alpha.3`, `0.2.1-alpha.4` and `0.2.1-alpha.5`, open the sidebar account menu, then **Settings → Security & sign-in**. 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` expose Settings directly in the sidebar.
68
70
 
69
71
  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).
70
72
 
@@ -79,13 +81,17 @@ Mutating commands require an interactive confirmation. Online commands use a pri
79
81
 
80
82
  The embedded Security page follows DSH's language setting. The standalone login page defaults to English and stores only `en` or `zh` at `localStorage["dsh-auth-remote.locale"]`; it does not read DSH settings before login. CLI human text uses `--lang en|zh`, or the first nonempty `LC_ALL`, `LC_MESSAGES`, then `LANG` (Chinese variants select `zh`, everything else English).
81
83
 
84
+ Security & sign-in shows the plugin username, TOTP status, this session’s sign-in and expiry times, and active session count. Dates follow the current UI language and browser time zone. Password and TOTP setup/rebind/disable each open a task dialog; enforced TOTP cannot be disabled. Signing out the current session needs confirmation and preserves other sessions. Signing out all sessions verifies the password and any bound second factor, and includes the current session. Security changes revoke all sessions. Successful setup shows backup codes once as the final step of the same dialog, with Copy all and an acknowledgement before signing in again. Escape, the backdrop and parent Settings cannot dismiss this step; leaving or refreshing loses it.
85
+
82
86
  ## Sign in to an official DeepSeek account
83
87
 
84
- The manual callback adapter is enabled only on DSH **0.2.1-alpha.3**. Other versions retain their native flow; later releases require a separate review. In its account menu, **Sign in** first opens an instruction dialog; it does not start authorization immediately. Click **Open DeepSeek sign-in** 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.
88
+ 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** and **0.2.1-alpha.5**; 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.
89
+
90
+ 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.
85
91
 
86
92
  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. 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` retain their existing UI and API-key setup.
87
93
 
88
- On DSH `0.2.1-alpha.3`, 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.
94
+ On DSH `0.2.1-alpha.3`, `0.2.1-alpha.4` and `0.2.1-alpha.5`, 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.
89
95
 
90
96
  ## Put a proxy in front
91
97
 
package/README.zh-CN.md CHANGED
@@ -6,13 +6,13 @@ DeepSeek Harness(DSH)的单用户远程登录插件,提供密码、TOTP、
6
6
 
7
7
  ## 前置条件
8
8
 
9
- - Linux(含 `/proc`)、Node.js 24 或更高版本,以及 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**(默认)。仅从源码构建时需要 pnpm 12.5.1。
9
+ - Linux(含 `/proc`)、Node.js 24 或更高版本,以及 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.4** 或 **0.2.1-alpha.5**(默认)。仅从源码构建时需要 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
- `dsh.compatibility.dshReleases` 声明上述七个版本,开发默认使用 **0.2.1-alpha.3**。宿主 peer 声明和运行时版本检查统一使用 `>=0.1.7-rc.1`,不设上限且包含预发布版本。
15
+ `dsh.compatibility.dshReleases` 声明上述九个版本,开发默认使用 **0.2.1-alpha.5**。`engines.dsh`、宿主 peer 声明和运行时版本检查统一使用 `>=0.1.7-rc.1`,不设上限且包含预发布版本。
16
16
 
17
17
  | DSH 版本 | 具体 IPv4 HTTP | 原生公开 URL CLI、Web 提示与 `DSH_WEB_URL` | 原生 IPv6 / HTTPS |
18
18
  | ------------- | -------------- | -------------------------------------------------------------------- | ----------------- |
@@ -23,10 +23,12 @@ DeepSeek Harness(DSH)的单用户远程登录插件,提供密码、TOTP、
23
23
  | 0.2.1-alpha.1 | 支持 | 支持;使用插件最终公开根地址 | 不支持 |
24
24
  | 0.2.1-alpha.2 | 支持 | 支持;使用插件最终公开根地址 | 通过官方监听支持 |
25
25
  | 0.2.1-alpha.3 | 支持 | 支持;最终公开根地址写入运行时上下文与 `DSH_WEB_URL` | 通过官方监听支持 |
26
+ | 0.2.1-alpha.4 | 支持 | 支持;最终公开根地址写入运行时上下文与 `DSH_WEB_URL` | 通过官方监听支持 |
27
+ | 0.2.1-alpha.5 | 支持 | 支持;最终公开根地址写入运行时上下文与 `DSH_WEB_URL` | 通过官方监听支持 |
26
28
 
27
- 后续版本属于向前准入,并不宣称已经逐版测试。插件仍检查必需的 WebServer/Connection 接口、宿主包实例一致性和原生认证交换。缺少能力时认证入口保持不可用并给出诊断。CI 在七个声明版本上运行 CLI、安装冒烟和浏览器回归。
29
+ 后续版本属于向前准入,并不宣称已经逐版测试。插件仍检查必需的 WebServer/Connection 接口、宿主包实例一致性和原生认证交换。缺少能力时认证入口保持不可用并给出诊断。CI 在九个声明版本上运行 CLI、安装冒烟和浏览器回归。
28
30
 
29
- 七版均使用插件的单入口配置。原生 IPv6/TLS 在 DSH `0.2.1-alpha.2`、`0.2.1-alpha.3` 可用;HTTP 监听可由外部 HTTPS 代理提供入口。源码构建参见[开发指南](docs/development.zh-CN.md)。
31
+ 九版均使用插件的单入口配置。原生 IPv6/TLS 在 DSH `0.2.1-alpha.2`、`0.2.1-alpha.3`、`0.2.1-alpha.4`、`0.2.1-alpha.5` 可用;HTTP 监听可由外部 HTTPS 代理提供入口。源码构建参见[开发指南](docs/development.zh-CN.md)。
30
32
 
31
33
  [兼容维护清单](docs/legacy-compatibility.zh-CN.md)提供功能到版本、版本到功能的双向矩阵,并关联实现、测试与迁移退役条件。
32
34
 
@@ -36,17 +38,17 @@ DeepSeek Harness(DSH)的单用户远程登录插件,提供密码、TOTP、
36
38
 
37
39
  ```sh
38
40
  dsh --version
39
- dsh plugin --profile web add dsh-auth-remote@0.1.9
41
+ dsh plugin --profile web add dsh-auth-remote@0.1.10
40
42
  dsh plugin --profile web list
41
43
  ```
42
44
 
43
- 确认 `dsh --version` 输出 `0.2.1-alpha.3`(或上文其他兼容版本),且插件列表中有 `dsh-auth-remote@0.1.9`。这些命令使用 DSH 默认数据目录。源码构建及隔离开发运行时参见[开发指南](docs/development.zh-CN.md)。
45
+ 确认 `dsh --version` 输出 `0.2.1-alpha.5`(或上文其他兼容版本),且插件列表中有 `dsh-auth-remote@0.1.10`。这些命令使用 DSH 默认数据目录。源码构建及隔离开发运行时参见[开发指南](docs/development.zh-CN.md)。
44
46
 
45
47
  ## 配置 web profile
46
48
 
47
49
  最小安装无需修改 profile 补丁。用 `dsh web --no-open --port 13090` 启动,使用终端打印的 `http://127.0.0.1:13090/` 根地址。未显式设置 `publicUrl` 时,插件根据监听的实际协议、地址和绑定端口生成唯一根地址,包含 `--port 0` 的实际结果。未登录导航跳转登录页;使用服务前检查 `/auth-remote/ready`。启动输出包含监听地址和一个不同的公开根地址,不含原生 `?token=` URL。
48
50
 
49
- 公网 HTTPS 入口请使用[部署指南](docs/deployment.zh-CN.md)和 [profile 示例](examples/web-profile-auth-remote.patch.yml),设置顶层 `publicUrl: https://dsh.example.com/`、`host`、`port`。DSH `0.2.1-alpha.2`、`0.2.1-alpha.3` 还支持具体 IPv6 和成对的顶层 `tlsCert`/`tlsKey`。URL 必须是 HTTP(S) 根地址,不能带凭据、子路径、查询或片段。准入范围是唯一公开来源加字面回环。配置 URL 不会配置代理路由或 TLS。
51
+ 公网 HTTPS 入口请使用[部署指南](docs/deployment.zh-CN.md)和 [profile 示例](examples/web-profile-auth-remote.patch.yml),设置顶层 `publicUrl: https://dsh.example.com/`、`host`、`port`。DSH `0.2.1-alpha.2`、`0.2.1-alpha.3`、`0.2.1-alpha.4`、`0.2.1-alpha.5` 还支持具体 IPv6 和成对的顶层 `tlsCert`/`tlsKey`。URL 必须是 HTTP(S) 根地址,不能带凭据、子路径、查询或片段。准入范围是唯一公开来源加字面回环。配置 URL 不会配置代理路由或 TLS。
50
52
 
51
53
  插件自动将定稿的原生桥接 authority 登记到 Connection 的 `trustedHosts`,下游插件无需额外 `--trusted-host` 即可识别具体监听地址。下游路由若需要原始公网 Host,可把路径加入 `preserveOriginPaths`,此时也自动登记最终公开 authority。显式 CLI trusted hosts 继续保留,外层公开来源与登录校验仍然生效。CLI 的 host/port 和公开 URL 覆盖文件值;TLS 按完整一对覆盖。升级 `allowedOrigins` 前阅读[迁移和路径规则](docs/deployment.zh-CN.md#配置优先级与路径基准):零项或单项在内存迁移并告警,多项及任意显式新旧字段共存报错。
52
54
 
@@ -58,13 +60,13 @@ dsh plugin --profile web list
58
60
  dsh plugin --profile web exec dsh-auth-remote init --lang zh
59
61
  ```
60
62
 
61
- 输入一个用户名和 12–256 个 Unicode 字符的密码。密码不作为命令行参数传递,也不会回显。未初始化时登录页会提示该命令,但网页不能创建账号。默认 `requireTotp: true`,首次密码登录必须绑定身份验证器。显示十个备用码时立即妥善保存:每个只能用一次,之后不能重新查看列表。
63
+ 输入一个用户名和 12–256 个 Unicode 字符的密码。密码不作为命令行参数传递,也不会回显。未初始化时登录页会提示该命令,但网页不能创建账号。默认 `requireTotp: false`,首次密码登录可选择绑定或跳过;设为 `true` 可强制绑定。升级仅在未显式配置时采用新默认值,已有 TOTP、备用码与显式 true/false 均保留。显示十个备用码时立即妥善保存:每个只能用一次,之后不能重新查看列表。
62
64
 
63
65
  ## 登录与账号管理
64
66
 
65
67
  最小化安装时访问本机回环地址;配置公网入口后访问 `https://dsh.example.com/auth-remote/login`。DSH 内的安全设置可以修改密码、绑定 TOTP、在策略允许时关闭 TOTP,以及撤销会话。密码或第二因素变更会撤销已有会话。会话默认固定有效 168 小时,服务重启后仍保留。
66
68
 
67
- DSH `0.2.1-alpha.3` 从侧栏账号菜单进入 **设置 → 安全**;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` 从侧栏直接打开设置。
69
+ DSH `0.2.1-alpha.3`、`0.2.1-alpha.4`、`0.2.1-alpha.5` 从侧栏账号菜单进入 **设置 → 安全与登录**;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` 从侧栏直接打开设置。
68
70
 
69
71
  登录页引用 DSH 的 PWA manifest,manifest 与 favicon 在登录前即可读取;业务页面和 API 仍需认证。具体范围见[公开资源规则](docs/deployment.zh-CN.md#来源与桥接契约)。
70
72
 
@@ -79,13 +81,17 @@ dsh plugin --profile web exec dsh-auth-remote revoke-sessions --lang zh
79
81
 
80
82
  内嵌安全页跟随 DSH 语言设置。独立登录页默认英文,仅在 `localStorage["dsh-auth-remote.locale"]` 保存 `en` 或 `zh`,登录前不读取 DSH 设置。CLI 人类文案由 `--lang en|zh` 指定;未指定时取首个非空的 `LC_ALL`、`LC_MESSAGES`、`LANG`(中文变体为 `zh`,其他为英文)。
81
83
 
84
+ 安全与登录页面展示本插件用户名、TOTP 状态、本次登录时间、到期时间和有效会话数;时间按当前界面语言及浏览器本地时区显示。修改密码、开启/重新绑定/关闭 TOTP 均在独立任务弹窗完成;强制策略不允许关闭 TOTP。退出当前会话只需确认且保留其他会话,退出所有会话需验证密码及已绑定的第二因素,并包含当前会话。安全修改会撤销所有会话;绑定成功的同一弹窗最后一步仅展示一次备用码,支持复制全部,确认保存后重新登录。此步骤不能用 Esc、遮罩或父设置关闭;离开或刷新后无法恢复。
85
+
82
86
  ## 登录 DeepSeek 官方账号
83
87
 
84
- 手动回填适配仅在 DSH **0.2.1-alpha.3** 启用,其他版本保留原生流程,后续版本需另行复核。账号菜单中的“登录”先打开步骤说明弹窗,不会立即发起授权。点击“打开 DeepSeek 登录页”,在新标签页完成官方登录;授权后该标签页可能在回环地址显示连接失败或 404。复制地址栏中的完整 URL(包含 `code` 和 `state`),粘贴到“完整回调地址”,再点击“确认登录”。整个过程中保留原 DSH 页面;弹窗被浏览器拦截时,可使用弹窗内的授权链接。
88
+ 手动回填按 SemVer(包含预发布)从 `>=0.2.1-alpha.3` 前向准入,还须具备必要原生 API 且 `manualAccountLogin: true`。完整功能实测目标为 **0.2.1-alpha.3**、**0.2.1-alpha.4**、**0.2.1-alpha.5**;未来版本须精确回归后才宣称已验证。账号菜单中的“登录”先打开步骤说明弹窗,不会立即发起授权。点击“打开登录页”,在新标签页完成官方登录;授权后该标签页可能在回环地址显示连接失败或 404。复制地址栏中的完整 URL(包含 `code` 和 `state`),粘贴到“完整回调地址”,再点击“确认登录”。整个过程中保留原 DSH 页面;弹窗被浏览器拦截时,可使用弹窗内的授权链接。
89
+
90
+ 在 **设置 → 安全与登录 → 登录配置** 中切换“远程 DeepSeek 账号登录”,默认开启。保存通过原生 Settings 写入当前 profile override,当前页新授权立即采用最新值,重启后保留;保存失败会显示错误。关闭只恢复新授权的原生入口,不取消已接纳的手动授权、不退出已有官方账号,也不承诺原生公网回调可用。其他已打开页面无需主动同步;旧页新建授权会提示关闭并建议刷新。
85
91
 
86
92
  手动回填无需本地监听器、SSH 隧道或浏览器扩展。回环地址用于承载授权结果,页面无需正常打开。插件只解析粘贴的 URL,在 DSH 内部分发回调,保留原生 state 校验、PKCE 兑换与凭据存储,不会请求粘贴的地址。待完成授权绑定发起操作的远程会话,最长有效期为十分钟;关闭弹窗或撤销该会话会取消待完成授权。过期或失败后须重新开始。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` 保留原有界面与 API Key 设置。
87
93
 
88
- DSH `0.2.1-alpha.3` 的弹窗在授权开始前也提供“使用 API Key”,点击后进入原生凭据编辑器,直到保存密钥或用户选择“稍后配置”才结束引导;账号菜单中也保留同一入口。授权进行中时,次要按钮用于取消本次授权。
94
+ DSH `0.2.1-alpha.3`、`0.2.1-alpha.4`、`0.2.1-alpha.5` 的弹窗在授权开始前也提供“使用 API Key”,点击后进入原生凭据编辑器,直到保存密钥或用户选择“稍后配置”才结束引导;账号菜单中也保留同一入口。授权进行中时,次要按钮用于取消本次授权。
89
95
 
90
96
  ## 接入反向代理
91
97
 
package/cordis.patch.yml CHANGED
@@ -20,7 +20,8 @@
20
20
  name: dsh-auth-remote
21
21
  inject: [webStartup]
22
22
  config:
23
- requireTotp: true
23
+ manualAccountLogin: true
24
+ requireTotp: false
24
25
  sessionHours: 168
25
26
  preserveOriginPaths: []
26
27
 
package/dist/cli.js CHANGED
@@ -471,10 +471,11 @@ function issueSession(draft, now, sessionHours) {
471
471
  function sessionFor(state, token, now, requireTotp) {
472
472
  if (typeof token !== "string" || !/^[A-Za-z0-9_-]{43}$/u.test(token)) return null;
473
473
  const session = state.sessions[sessionHash(token)];
474
+ return session && isActiveSession(state, session, now, requireTotp) ? session : null;
475
+ }
476
+ function isActiveSession(state, session, now, requireTotp) {
474
477
  const account = state.account;
475
- if (!session || !account || session.accountId !== account.id || session.securityVersion !== account.securityVersion || session.expiresAt <= now || requireTotp && !account.totp)
476
- return null;
477
- return session;
478
+ return !!(account && session.accountId === account.id && session.securityVersion === account.securityVersion && session.expiresAt > now && (!requireTotp || account.totp));
478
479
  }
479
480
 
480
481
  // src/auth/totp.ts
@@ -600,11 +601,12 @@ var AuthService = class {
600
601
  }
601
602
  status() {
602
603
  const state = this.store.current();
604
+ const now = this.now();
603
605
  return {
604
606
  initialized: state.account !== null,
605
607
  totpEnabled: state.account?.totp !== null && state.account?.totp !== void 0,
606
608
  activeSessions: Object.values(state.sessions).filter(
607
- (session) => state.account && session.accountId === state.account.id && session.securityVersion === state.account.securityVersion && session.expiresAt > this.now() && (!this.policy.requireTotp || state.account.totp)
609
+ (session) => isActiveSession(state, session, now, this.policy.requireTotp)
608
610
  ).length
609
611
  };
610
612
  }
@@ -616,12 +618,17 @@ var AuthService = class {
616
618
  }
617
619
  me(token) {
618
620
  const state = this.store.current();
619
- const session = sessionFor(state, token, this.now(), this.policy.requireTotp);
621
+ const now = this.now();
622
+ const session = sessionFor(state, token, now, this.policy.requireTotp);
620
623
  if (!session || !state.account) throw new AuthError("unauthorized");
621
624
  return {
622
625
  username: state.account.username,
623
626
  totpEnabled: state.account.totp !== null,
624
- expiresAt: session.expiresAt
627
+ createdAt: session.createdAt,
628
+ expiresAt: session.expiresAt,
629
+ activeSessions: Object.values(state.sessions).filter(
630
+ (entry) => isActiveSession(state, entry, now, this.policy.requireTotp)
631
+ ).length
625
632
  };
626
633
  }
627
634
  bindingDetails(id) {
@@ -994,20 +1001,26 @@ import { dirname } from "node:path";
994
1001
 
995
1002
  // src/shared/locales/en.ts
996
1003
  var en = {
997
- brand: "DSH \xB7 Remote sign-in",
998
1004
  errorNetwork: "Connection failed. Check your network and try again.",
999
1005
  errorRateLimited: "Too many attempts. Try again in about {seconds} seconds.",
1000
1006
  errorUnauthorized: "Your session has expired. Sign in again.",
1001
1007
  errorServiceUnavailable: "The service is temporarily unavailable. Try again later.",
1002
1008
  errorGeneric: "The operation could not be completed. Try again.",
1003
- accountLoginTitle: "Sign in to your DeepSeek account",
1004
- accountLoginDescription: "Complete authorization in a new tab, then return here to finish signing in.",
1005
- accountLoginStepOpen: "Click \u201COpen DeepSeek sign-in\u201D below and sign in on the official page.",
1006
- accountLoginStepCopy: "After authorization, the new tab may show a connection error or 404. Copy its full address from the address bar.",
1007
- accountLoginStepSubmit: "Return to this dialog, paste the address below and click \u201CConfirm sign-in\u201D.",
1009
+ accountLoginDisabled: "Manual account sign-in is disabled. Refresh this page to use the native sign-in entry.",
1010
+ settingsLoginConfiguration: "Sign-in preferences",
1011
+ settingsManualDescription: "Authorize in a new tab, then paste the callback address.",
1012
+ settingsManualAccountLogin: "Remote DeepSeek account sign-in",
1013
+ settingsManualConfigUnavailable: "Sign-in preferences are temporarily unavailable.",
1014
+ settingsManualUnavailable: "Manual account sign-in is unavailable in this DSH environment.",
1015
+ settingsManualSaveFailed: "Could not save this preference. Check the current value and try again.",
1016
+ settingsSaving: "Saving\u2026",
1017
+ settingsRetry: "Retry",
1018
+ accountLoginTitle: "Sign in to DeepSeek",
1019
+ accountLoginStepOpen: "Sign in to DeepSeek in a new tab.",
1020
+ accountLoginStepCopy: "Copy the full address after authorization and paste it here.",
1008
1021
  accountLoginCallbackLabel: "Full callback address",
1009
- accountLoginCallbackHint: "Include both code and state. The page does not need to load. Submit before this authorization expires.",
1010
- accountLoginOpen: "Open DeepSeek sign-in",
1022
+ accountLoginCallbackHint: "A connection error or 404 after authorization is expected. Copy the full address.",
1023
+ accountLoginOpen: "Open sign-in page",
1011
1024
  accountLoginConfirm: "Confirm sign-in",
1012
1025
  accountLoginCancel: "Cancel",
1013
1026
  accountLoginUseApiKey: "Use API key",
@@ -1016,7 +1029,7 @@ var en = {
1016
1029
  accountLoginReopen: "Reopen authorization page",
1017
1030
  accountLoginPopupBlocked: "The new tab was blocked.",
1018
1031
  accountLoginInitializing: "Preparing authorization\u2026",
1019
- accountLoginWaiting: "Waiting for the callback address. This authorization lasts at most 10 minutes.",
1032
+ accountLoginWaiting: "Authorization lasts at most 10 minutes.",
1020
1033
  accountLoginExchanging: "Completing sign-in\u2026",
1021
1034
  accountLoginInvalidCallback: "This callback address does not match the current authorization. Copy the full address, including code and state, from the latest authorization tab.",
1022
1035
  accountLoginExpired: "This authorization has expired. Start again.",
@@ -1025,7 +1038,7 @@ var en = {
1025
1038
  accountLoginUnavailable: "This DSH version does not provide compatible account sign-in.",
1026
1039
  accountLoginFailed: "Authorization could not be completed. Start again and submit the address from the new tab.",
1027
1040
  accountLoginNoResponse: "The DeepSeek platform did not respond. Check the DSH server\u2019s network connection and start again.",
1028
- loginInitialTitle: "Sign in to DSH",
1041
+ loginInitialTitle: "Sign in",
1029
1042
  loginInitialLoading: "Checking sign-in status\u2026",
1030
1043
  loginLanguageLabel: "Language",
1031
1044
  loginSetupTitle: "Set up your account first",
@@ -1035,8 +1048,7 @@ var en = {
1035
1048
  loginSetupCopied: "Command copied.",
1036
1049
  loginSetupCopyFallback: "Select and copy the command manually.",
1037
1050
  loginSetupNotFound: "No account was found. Check that the command used this profile, then try again.",
1038
- loginTitle: "Sign in to DSH",
1039
- loginDescription: "Enter the single-user account created in the server terminal.",
1051
+ loginTitle: "Sign in",
1040
1052
  loginUsername: "Username",
1041
1053
  loginPassword: "Password",
1042
1054
  loginContinue: "Continue",
@@ -1069,7 +1081,7 @@ var en = {
1069
1081
  loginOptionalSkipLater: "Connect later and enter DSH",
1070
1082
  loginReasonExpired: "Your session has expired. Sign in again.",
1071
1083
  loginReasonUpdated: "Security settings changed. Sign in again.",
1072
- loginReasonSignedOut: "You signed out of this device.",
1084
+ loginReasonSignedOut: "You signed out of this session.",
1073
1085
  loginUnavailableTitle: "Sign-in is temporarily unavailable",
1074
1086
  loginUnavailableDescription: "The service status is unavailable. Check the connection and retry.",
1075
1087
  loginRetry: "Check again",
@@ -1077,15 +1089,25 @@ var en = {
1077
1089
  loginErrorInvalidFactor: "The verification or backup code is incorrect. After five failed attempts, you must enter your password again.",
1078
1090
  loginErrorChallenge: "This verification expired. Enter your username and password again.",
1079
1091
  loginErrorUninitialized: "The account is not set up. Run the setup command in the server terminal.",
1080
- settingsSectionLabel: "Security",
1081
- settingsSectionAria: "Security settings",
1082
- settingsTitle: "Account security",
1092
+ settingsClose: "Close",
1093
+ settingsCancel: "Cancel",
1094
+ settingsOverview: "Account overview",
1095
+ settingsUsername: "DSH sign-in username",
1096
+ settingsCreatedAt: "Signed in at",
1097
+ settingsExpiresAt: "Session expires at",
1098
+ settingsActiveSessions: "Active sessions",
1099
+ settingsTotpRequired: "TOTP is required by configuration and cannot be turned off.",
1100
+ settingsPasswordTitle: "Password",
1101
+ settingsSignOutCurrentDescription: "Sign out this session? Other sessions will stay signed in.",
1102
+ settingsSectionLabel: "Security & sign-in",
1103
+ settingsSectionAria: "Security & sign-in settings",
1104
+ settingsTitle: "Security & sign-in",
1083
1105
  settingsAccountSummary: "Account: {username} \xB7 TOTP: {totp}",
1084
1106
  settingsTotpEnabled: "Enabled",
1085
1107
  settingsTotpNotBound: "Not connected",
1086
1108
  settingsLoading: "Loading account status\u2026",
1087
1109
  settingsChangePassword: "Change password",
1088
- settingsBindTotp: "Connect TOTP",
1110
+ settingsBindTotp: "Turn on TOTP",
1089
1111
  settingsRebindTotp: "Reconnect TOTP",
1090
1112
  settingsSessions: "Session management",
1091
1113
  settingsPasswordMismatch: "The new passwords do not match.",
@@ -1107,9 +1129,13 @@ var en = {
1107
1129
  settingsNewCode: "Six-digit code from the new authenticator",
1108
1130
  settingsConfirmBinding: "Confirm setup",
1109
1131
  settingsRestartBinding: "Start over",
1110
- settingsSignOutCurrent: "Sign out this device",
1111
- settingsSignOutAll: "Sign out every device",
1112
- settingsSignOutAllDescription: "Enter your current credentials. All signed-in devices and open connections will be revoked.",
1132
+ settingsSignOutCurrent: "Sign out this session",
1133
+ settingsSignOutAll: "Sign out all sessions",
1134
+ settingsSignOutAllDescription: "Enter your current credentials. All sessions, including this one, and open connections will be revoked.",
1135
+ settingsOldBackupInvalid: "Your previous backup codes no longer work.",
1136
+ settingsCopyAll: "Copy all",
1137
+ settingsBackupCopied: "Backup codes copied.",
1138
+ settingsBackupCopyFailed: "Could not copy. Select the codes and copy them manually.",
1113
1139
  settingsBackupTitle: "Save your backup codes",
1114
1140
  settingsBackupDescription: "These codes are shown only once. Store them safely; each code can be used only once.",
1115
1141
  settingsBackupSaved: "I saved them; sign in again",
@@ -1188,20 +1214,26 @@ The command uses the profile selected by dsh plugin exec and the caller's DSH_HO
1188
1214
 
1189
1215
  // src/shared/locales/zh.ts
1190
1216
  var zh = {
1191
- brand: "DSH \xB7 \u8FDC\u7A0B\u767B\u5F55",
1192
1217
  errorNetwork: "\u8FDE\u63A5\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5\u3002",
1193
1218
  errorRateLimited: "\u5C1D\u8BD5\u8FC7\u4E8E\u9891\u7E41\uFF0C\u8BF7\u7EA6 {seconds} \u79D2\u540E\u91CD\u8BD5\u3002",
1194
1219
  errorUnauthorized: "\u4F1A\u8BDD\u5DF2\u5931\u6548\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55\u3002",
1195
1220
  errorServiceUnavailable: "\u670D\u52A1\u6682\u65F6\u4E0D\u53EF\u7528\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002",
1196
1221
  errorGeneric: "\u64CD\u4F5C\u672A\u5B8C\u6210\uFF0C\u8BF7\u91CD\u8BD5\u3002",
1197
- accountLoginTitle: "\u767B\u5F55 DeepSeek \u5B98\u65B9\u8D26\u53F7",
1198
- accountLoginDescription: "\u5728\u65B0\u6807\u7B7E\u9875\u5B8C\u6210\u5B98\u65B9\u6388\u6743\u540E\uFF0C\u8FD4\u56DE\u6B64\u5904\u7EE7\u7EED\u767B\u5F55\u3002",
1199
- accountLoginStepOpen: "\u70B9\u51FB\u4E0B\u65B9\u201C\u6253\u5F00 DeepSeek \u767B\u5F55\u9875\u201D\uFF0C\u5728\u5B98\u65B9\u9875\u9762\u767B\u5F55\u8D26\u53F7\u3002",
1200
- accountLoginStepCopy: "\u6388\u6743\u540E\uFF0C\u65B0\u6807\u7B7E\u9875\u53EF\u80FD\u663E\u793A\u8FDE\u63A5\u5931\u8D25\u6216 404\u3002\u8BF7\u590D\u5236\u8BE5\u6807\u7B7E\u9875\u5730\u5740\u680F\u4E2D\u7684\u5B8C\u6574\u5730\u5740\u3002",
1201
- accountLoginStepSubmit: "\u8FD4\u56DE\u6B64\u5F39\u7A97\uFF0C\u5C06\u5730\u5740\u7C98\u8D34\u5230\u4E0B\u65B9\u8F93\u5165\u6846\uFF0C\u518D\u70B9\u51FB\u201C\u786E\u8BA4\u767B\u5F55\u201D\u3002",
1222
+ accountLoginDisabled: "\u624B\u52A8\u8D26\u53F7\u767B\u5F55\u5DF2\u5173\u95ED\u3002\u8BF7\u5237\u65B0\u9875\u9762\uFF0C\u4F7F\u7528\u539F\u751F\u767B\u5F55\u5165\u53E3\u3002",
1223
+ settingsLoginConfiguration: "\u767B\u5F55\u914D\u7F6E",
1224
+ settingsManualDescription: "\u5728\u65B0\u6807\u7B7E\u9875\u6388\u6743\u540E\uFF0C\u7C98\u8D34\u56DE\u8C03\u5730\u5740\u767B\u5F55\u3002",
1225
+ settingsManualAccountLogin: "\u8FDC\u7A0B DeepSeek \u8D26\u53F7\u767B\u5F55",
1226
+ settingsManualConfigUnavailable: "\u767B\u5F55\u914D\u7F6E\u6682\u65F6\u4E0D\u53EF\u7528\u3002",
1227
+ settingsManualUnavailable: "\u5F53\u524D DSH \u73AF\u5883\u4E0D\u652F\u6301\u624B\u52A8\u8D26\u53F7\u767B\u5F55\u3002",
1228
+ settingsManualSaveFailed: "\u914D\u7F6E\u4FDD\u5B58\u5931\u8D25\u3002\u8BF7\u68C0\u67E5\u5F53\u524D\u503C\u540E\u91CD\u8BD5\u3002",
1229
+ settingsSaving: "\u6B63\u5728\u4FDD\u5B58\u2026",
1230
+ settingsRetry: "\u91CD\u8BD5",
1231
+ accountLoginTitle: "\u767B\u5F55 DeepSeek \u8D26\u53F7",
1232
+ accountLoginStepOpen: "\u5728\u65B0\u6807\u7B7E\u9875\u5B8C\u6210 DeepSeek \u767B\u5F55\u3002",
1233
+ accountLoginStepCopy: "\u590D\u5236\u6388\u6743\u540E\u5730\u5740\u680F\u7684\u5B8C\u6574\u5730\u5740\uFF0C\u8FD4\u56DE\u6B64\u5904\u7C98\u8D34\u3002",
1202
1234
  accountLoginCallbackLabel: "\u5B8C\u6574\u56DE\u8C03\u5730\u5740",
1203
- accountLoginCallbackHint: "\u5730\u5740\u987B\u5305\u542B code \u548C state\uFF1B\u8BE5\u9875\u9762\u65E0\u9700\u80FD\u6B63\u5E38\u6253\u5F00\u3002\u8BF7\u5728\u672C\u6B21\u6388\u6743\u5230\u671F\u524D\u63D0\u4EA4\u3002",
1204
- accountLoginOpen: "\u6253\u5F00 DeepSeek \u767B\u5F55\u9875",
1235
+ accountLoginCallbackHint: "\u6388\u6743\u540E\u5373\u4F7F\u9875\u9762\u663E\u793A\u8FDE\u63A5\u5931\u8D25\u6216 404\uFF0C\u4E5F\u53EF\u4EE5\u590D\u5236\u5B8C\u6574\u5730\u5740\u3002",
1236
+ accountLoginOpen: "\u6253\u5F00\u767B\u5F55\u9875",
1205
1237
  accountLoginConfirm: "\u786E\u8BA4\u767B\u5F55",
1206
1238
  accountLoginCancel: "\u53D6\u6D88",
1207
1239
  accountLoginUseApiKey: "\u4F7F\u7528 API Key",
@@ -1210,7 +1242,7 @@ var zh = {
1210
1242
  accountLoginReopen: "\u91CD\u65B0\u6253\u5F00\u6388\u6743\u9875",
1211
1243
  accountLoginPopupBlocked: "\u65B0\u6807\u7B7E\u9875\u88AB\u6D4F\u89C8\u5668\u62E6\u622A\u3002",
1212
1244
  accountLoginInitializing: "\u6B63\u5728\u51C6\u5907\u6388\u6743\u2026",
1213
- accountLoginWaiting: "\u7B49\u5F85\u586B\u5199\u56DE\u8C03\u5730\u5740\u3002\u672C\u6B21\u6388\u6743\u6700\u957F\u6709\u6548\u671F\u4E3A 10 \u5206\u949F\u3002",
1245
+ accountLoginWaiting: "\u6388\u6743\u6709\u6548\u671F\u6700\u957F 10 \u5206\u949F\u3002",
1214
1246
  accountLoginExchanging: "\u6B63\u5728\u5B8C\u6210\u767B\u5F55\u2026",
1215
1247
  accountLoginInvalidCallback: "\u56DE\u8C03\u5730\u5740\u4E0E\u5F53\u524D\u6388\u6743\u4E0D\u5339\u914D\uFF0C\u8BF7\u4ECE\u6700\u8FD1\u4E00\u6B21\u6388\u6743\u6807\u7B7E\u9875\u590D\u5236\u5305\u542B code \u548C state \u7684\u5B8C\u6574\u5730\u5740\u3002",
1216
1248
  accountLoginExpired: "\u672C\u6B21\u6388\u6743\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u5F00\u59CB\u3002",
@@ -1219,7 +1251,7 @@ var zh = {
1219
1251
  accountLoginUnavailable: "\u5F53\u524D DSH \u7248\u672C\u672A\u63D0\u4F9B\u517C\u5BB9\u7684\u8D26\u53F7\u767B\u5F55\u529F\u80FD\u3002",
1220
1252
  accountLoginFailed: "\u672A\u80FD\u5B8C\u6210\u6388\u6743\uFF0C\u8BF7\u91CD\u65B0\u5F00\u59CB\uFF0C\u5E76\u63D0\u4EA4\u65B0\u6807\u7B7E\u9875\u4E2D\u7684\u56DE\u8C03\u5730\u5740\u3002",
1221
1253
  accountLoginNoResponse: "DeepSeek \u5E73\u53F0\u672A\u54CD\u5E94\uFF0C\u8BF7\u68C0\u67E5 DSH \u670D\u52A1\u5668\u7684\u7F51\u7EDC\u8FDE\u63A5\u540E\u91CD\u65B0\u5F00\u59CB\u3002",
1222
- loginInitialTitle: "\u767B\u5F55 DSH",
1254
+ loginInitialTitle: "\u767B\u5F55",
1223
1255
  loginInitialLoading: "\u6B63\u5728\u68C0\u67E5\u767B\u5F55\u72B6\u6001\u2026",
1224
1256
  loginLanguageLabel: "\u8BED\u8A00",
1225
1257
  loginSetupTitle: "\u5148\u521D\u59CB\u5316\u8D26\u53F7",
@@ -1229,8 +1261,7 @@ var zh = {
1229
1261
  loginSetupCopied: "\u547D\u4EE4\u5DF2\u590D\u5236\u3002",
1230
1262
  loginSetupCopyFallback: "\u8BF7\u624B\u52A8\u9009\u62E9\u5E76\u590D\u5236\u547D\u4EE4\u3002",
1231
1263
  loginSetupNotFound: "\u5C1A\u672A\u68C0\u6D4B\u5230\u8D26\u53F7\u3002\u8BF7\u786E\u8BA4\u547D\u4EE4\u4F7F\u7528\u4E86\u5F53\u524D profile\uFF0C\u518D\u91CD\u65B0\u68C0\u67E5\u3002",
1232
- loginTitle: "\u767B\u5F55 DSH",
1233
- loginDescription: "\u8F93\u5165\u670D\u52A1\u5668\u7EC8\u7AEF\u521B\u5EFA\u7684\u5355\u7528\u6237\u8D26\u53F7\u3002",
1264
+ loginTitle: "\u767B\u5F55",
1234
1265
  loginUsername: "\u7528\u6237\u540D",
1235
1266
  loginPassword: "\u5BC6\u7801",
1236
1267
  loginContinue: "\u7EE7\u7EED",
@@ -1263,7 +1294,7 @@ var zh = {
1263
1294
  loginOptionalSkipLater: "\u7A0D\u540E\u7ED1\u5B9A\uFF0C\u8FDB\u5165 DSH",
1264
1295
  loginReasonExpired: "\u4F1A\u8BDD\u5DF2\u5931\u6548\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55\u3002",
1265
1296
  loginReasonUpdated: "\u5B89\u5168\u8BBE\u7F6E\u5DF2\u66F4\u65B0\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55\u3002",
1266
- loginReasonSignedOut: "\u5DF2\u9000\u51FA\u5F53\u524D\u8BBE\u5907\u3002",
1297
+ loginReasonSignedOut: "\u5DF2\u9000\u51FA\u5F53\u524D\u4F1A\u8BDD\u3002",
1267
1298
  loginUnavailableTitle: "\u6682\u65F6\u65E0\u6CD5\u767B\u5F55",
1268
1299
  loginUnavailableDescription: "\u670D\u52A1\u72B6\u6001\u6682\u65F6\u65E0\u6CD5\u53D6\u5F97\uFF0C\u8BF7\u68C0\u67E5\u8FDE\u63A5\u5E76\u91CD\u8BD5\u3002",
1269
1300
  loginRetry: "\u91CD\u65B0\u68C0\u67E5",
@@ -1271,15 +1302,25 @@ var zh = {
1271
1302
  loginErrorInvalidFactor: "\u9A8C\u8BC1\u7801\u6216\u5907\u7528\u7801\u4E0D\u6B63\u786E\uFF1B\u8FDE\u7EED\u5931\u8D25 5 \u6B21\u540E\u9700\u91CD\u65B0\u8F93\u5165\u5BC6\u7801\u3002",
1272
1303
  loginErrorChallenge: "\u672C\u6B21\u9A8C\u8BC1\u5DF2\u5931\u6548\uFF0C\u8BF7\u91CD\u65B0\u8F93\u5165\u7528\u6237\u540D\u548C\u5BC6\u7801\u3002",
1273
1304
  loginErrorUninitialized: "\u8D26\u53F7\u5C1A\u672A\u521D\u59CB\u5316\uFF0C\u8BF7\u5148\u5728\u670D\u52A1\u5668\u7EC8\u7AEF\u8FD0\u884C\u521D\u59CB\u5316\u547D\u4EE4\u3002",
1274
- settingsSectionLabel: "\u5B89\u5168",
1275
- settingsSectionAria: "\u5B89\u5168\u8BBE\u7F6E",
1276
- settingsTitle: "\u8D26\u53F7\u5B89\u5168",
1305
+ settingsClose: "\u5173\u95ED",
1306
+ settingsCancel: "\u53D6\u6D88",
1307
+ settingsOverview: "\u8D26\u6237\u6982\u89C8",
1308
+ settingsUsername: "DSH \u767B\u5F55\u7528\u6237\u540D",
1309
+ settingsCreatedAt: "\u672C\u6B21\u767B\u5F55\u65F6\u95F4",
1310
+ settingsExpiresAt: "\u5F53\u524D\u4F1A\u8BDD\u5230\u671F\u65F6\u95F4",
1311
+ settingsActiveSessions: "\u6709\u6548\u4F1A\u8BDD\u6570\u91CF",
1312
+ settingsTotpRequired: "\u914D\u7F6E\u8981\u6C42\u5F00\u542F TOTP\uFF0C\u65E0\u6CD5\u5173\u95ED\u3002",
1313
+ settingsPasswordTitle: "\u5BC6\u7801",
1314
+ settingsSignOutCurrentDescription: "\u786E\u5B9A\u9000\u51FA\u5F53\u524D\u4F1A\u8BDD\uFF1F\u5176\u4ED6\u4F1A\u8BDD\u5C06\u7EE7\u7EED\u4FDD\u6301\u767B\u5F55\u3002",
1315
+ settingsSectionLabel: "\u5B89\u5168\u4E0E\u767B\u5F55",
1316
+ settingsSectionAria: "\u5B89\u5168\u4E0E\u767B\u5F55\u8BBE\u7F6E",
1317
+ settingsTitle: "\u5B89\u5168\u4E0E\u767B\u5F55",
1277
1318
  settingsAccountSummary: "\u8D26\u53F7\uFF1A{username} \xB7 TOTP\uFF1A{totp}",
1278
1319
  settingsTotpEnabled: "\u5DF2\u542F\u7528",
1279
1320
  settingsTotpNotBound: "\u672A\u7ED1\u5B9A",
1280
1321
  settingsLoading: "\u6B63\u5728\u8BFB\u53D6\u8D26\u53F7\u72B6\u6001\u2026",
1281
1322
  settingsChangePassword: "\u4FEE\u6539\u5BC6\u7801",
1282
- settingsBindTotp: "\u7ED1\u5B9A TOTP",
1323
+ settingsBindTotp: "\u5F00\u542F TOTP",
1283
1324
  settingsRebindTotp: "\u91CD\u65B0\u7ED1\u5B9A TOTP",
1284
1325
  settingsSessions: "\u4F1A\u8BDD\u7BA1\u7406",
1285
1326
  settingsPasswordMismatch: "\u4E24\u6B21\u8F93\u5165\u7684\u65B0\u5BC6\u7801\u4E0D\u4E00\u81F4\u3002",
@@ -1301,9 +1342,13 @@ var zh = {
1301
1342
  settingsNewCode: "\u65B0\u8EAB\u4EFD\u9A8C\u8BC1\u5668\u7684 6 \u4F4D\u9A8C\u8BC1\u7801",
1302
1343
  settingsConfirmBinding: "\u786E\u8BA4\u7ED1\u5B9A",
1303
1344
  settingsRestartBinding: "\u91CD\u65B0\u5F00\u59CB",
1304
- settingsSignOutCurrent: "\u9000\u51FA\u5F53\u524D\u8BBE\u5907",
1305
- settingsSignOutAll: "\u9000\u51FA\u5168\u90E8\u8BBE\u5907",
1306
- settingsSignOutAllDescription: "\u8BF7\u8F93\u5165\u5F53\u524D\u51ED\u8BC1\uFF1B\u63D0\u4EA4\u540E\u6240\u6709\u5DF2\u767B\u5F55\u8BBE\u5907\u548C\u957F\u8FDE\u63A5\u90FD\u4F1A\u5931\u6548\u3002",
1345
+ settingsSignOutCurrent: "\u9000\u51FA\u5F53\u524D\u4F1A\u8BDD",
1346
+ settingsSignOutAll: "\u9000\u51FA\u6240\u6709\u4F1A\u8BDD",
1347
+ settingsSignOutAllDescription: "\u8BF7\u8F93\u5165\u5F53\u524D\u51ED\u8BC1\uFF1B\u63D0\u4EA4\u540E\u5305\u62EC\u5F53\u524D\u4F1A\u8BDD\u5728\u5185\u7684\u5168\u90E8\u4F1A\u8BDD\u548C\u957F\u8FDE\u63A5\u90FD\u4F1A\u5931\u6548\u3002",
1348
+ settingsOldBackupInvalid: "\u65E7\u5907\u7528\u7801\u5DF2\u5931\u6548\u3002",
1349
+ settingsCopyAll: "\u590D\u5236\u5168\u90E8",
1350
+ settingsBackupCopied: "\u5907\u7528\u7801\u5DF2\u590D\u5236\u3002",
1351
+ settingsBackupCopyFailed: "\u590D\u5236\u5931\u8D25\uFF0C\u8BF7\u9009\u4E2D\u5907\u7528\u7801\u624B\u52A8\u590D\u5236\u3002",
1307
1352
  settingsBackupTitle: "\u4FDD\u5B58\u5907\u7528\u7801",
1308
1353
  settingsBackupDescription: "\u8FD9\u4E9B\u5907\u7528\u7801\u53EA\u4F1A\u663E\u793A\u8FD9\u4E00\u6B21\u3002\u8BF7\u5B58\u653E\u5728\u5B89\u5168\u7684\u4F4D\u7F6E\uFF0C\u6BCF\u4E2A\u5907\u7528\u7801\u53EA\u80FD\u4F7F\u7528\u4E00\u6B21\u3002",
1309
1354
  settingsBackupSaved: "\u6211\u5DF2\u4FDD\u5B58\uFF0C\u91CD\u65B0\u767B\u5F55",