dsh-auth-remote 0.1.10 → 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 +31 -0
- package/CHANGELOG.zh-CN.md +31 -0
- package/CONTRIBUTING.md +5 -1
- package/CONTRIBUTING.zh-CN.md +5 -1
- package/README.md +22 -24
- package/README.zh-CN.md +22 -24
- package/cordis.patch.yml +2 -2
- package/dist/client.js +2 -2
- package/dist/client.js.map +1 -1
- package/dist/index.js +102 -38
- package/dist/index.js.map +4 -4
- 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 +38 -0
- package/dist/types/shared/dsh-support.d.ts.map +1 -0
- package/docs/deployment.md +25 -21
- package/docs/deployment.zh-CN.md +25 -21
- package/docs/development.md +80 -23
- package/docs/development.zh-CN.md +80 -23
- package/docs/legacy-compatibility.md +106 -79
- package/docs/legacy-compatibility.zh-CN.md +106 -79
- package/docs/releasing.md +46 -10
- package/docs/releasing.zh-CN.md +46 -10
- package/docs/reverse-proxy.md +2 -2
- package/docs/reverse-proxy.zh-CN.md +2 -2
- package/docs/support-history.md +103 -0
- package/docs/support-history.zh-CN.md +103 -0
- package/docs/support-policy.md +87 -0
- package/docs/support-policy.zh-CN.md +87 -0
- package/examples/web-profile-auth-remote.patch.yml +3 -2
- package/package.json +26 -23
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,37 @@ 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
|
+
|
|
19
|
+
## 0.2.0 - 2026-10-19
|
|
20
|
+
|
|
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.
|
|
22
|
+
|
|
23
|
+
- Synchronize current normal/legacy dates, two-way history navigation, adaptation evidence and frozen-artifact operating guides without retiring any supported DSH version.
|
|
24
|
+
|
|
25
|
+
- Add manually maintained bilingual, bidirectional support history with exact historical evidence, archive availability and clear separation of published releases from the RC candidate.
|
|
26
|
+
|
|
27
|
+
- Add conservative ordinary/full CI planning: keep every-release CLI/smoke, fixed browser capability suites for six low-risk paths, full verification for all other changes and weekly Monday UTC checks.
|
|
28
|
+
|
|
29
|
+
- Build one release artifact, verify its producer identity across all declared CLI/smoke and complete-browser targets through a shared workflow, and gate publication on the same successful artifact.
|
|
30
|
+
|
|
31
|
+
- Add fixed-archive CLI/browser/smoke consumption with SHA-256 and package checks, restored dist, explicit suites, strict test counts and an isolated ephemeral-port smoke profile.
|
|
32
|
+
|
|
33
|
+
- Require independent profile-level native-listener disable for protected remote deployments; verify real Loader bundle skipping and plugin runtime refusal on both RC targets without listener fallback.
|
|
34
|
+
|
|
35
|
+
- Emit process-scoped startup maintenance warnings for legacy or unverified DSH versions, preserving warning history through HMR. Keep technical admission independent of dates and record no actual retirement.
|
|
36
|
+
- Verify the native DSH `0.2.1-rc.2` Search/Fetch settings over the protected remote Host, including three namespaces, test-credential redaction, persistence and session refusal, without invoking paid providers.
|
|
37
|
+
- Add candidate targets DSH `0.2.1-rc.1` and `0.2.1-rc.2`, pin development/default verification to `0.2.1-rc.2` with stable Cordis and Schemastery, and retain all eleven release targets. Correct account branches and four real host-release round trips; assert visible focus and switch thumbs on older themes. These additions do not change published `0.1.10` history.
|
|
38
|
+
- Publish bilingual support-lifecycle rules with explicit legacy dates, continued verification until actual retirement, independent technical admission and exact-version release evidence requirements.
|
|
39
|
+
|
|
9
40
|
## 0.1.10 - 2026-10-19
|
|
10
41
|
|
|
11
42
|
- 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`.
|
package/CHANGELOG.zh-CN.md
CHANGED
|
@@ -6,6 +6,37 @@
|
|
|
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
|
+
|
|
19
|
+
## 0.2.0 - 2026-10-19
|
|
20
|
+
|
|
21
|
+
- 重新生成稳定 Cordis/Schemastery 的锁文件解析及 peer 快照,保障干净 frozen 安装;缩短受管理验证 profile,并实测默认 CI 检出路径长度下的 Unix socket 绑定。
|
|
22
|
+
|
|
23
|
+
- 同步当前正常/legacy 日期、双向历史入口、适配证据与固定归档操作指南,不退役任何仍支持的 DSH 版本。
|
|
24
|
+
|
|
25
|
+
- 新增人工维护的双语双向支持历史,区分精确历史证据、归档可获取性、已发布版本与 RC 候选。
|
|
26
|
+
|
|
27
|
+
- 新增保守普通/全量 CI 计划:全版本保留 CLI/smoke,仅六个低风险路径使用固定 browser 能力专项,其余变更及 UTC 周一定时检查全量。
|
|
28
|
+
|
|
29
|
+
- 发布仅构建一份制品,经共用工作流对全部声明版本执行 CLI/smoke 与完整 browser 并核对 producer 身份,全部成功后才发布同一归档。
|
|
30
|
+
|
|
31
|
+
- 新增固定归档 CLI/browser/smoke 消费入口,校验 SHA-256 与包身份、恢复 dist、明确 suite 和严格用例数量,smoke 使用独立临时端口 profile。
|
|
32
|
+
|
|
33
|
+
- 受保护远程部署明确要求在 profile 级独立禁用原生监听;两个 RC 实测真实 Loader 跳过 bundle 及插件自身运行拒绝均无监听回退。
|
|
34
|
+
|
|
35
|
+
- 对 legacy 或未验证 DSH 版本输出进程级启动维护提示,HMR 保留提示记录;技术准入与日期独立,本轮不登记任何实际退役。
|
|
36
|
+
- 验证 DSH `0.2.1-rc.2` 原生 Search/Fetch 设置经受保护远程 Host 的三命名空间、测试凭据脱敏、持久化及会话拒绝链路,不调用付费提供者。
|
|
37
|
+
- 新增 DSH `0.2.1-rc.1`、`0.2.1-rc.2` 候选目标,开发/默认验证固定 `0.2.1-rc.2` 并使用稳定 Cordis、Schemastery,保留全部十一版。修正账号分支和四组真实宿主版本往返切换,断言旧主题的焦点环与开关滑块可见;不扩写已发布 `0.1.10` 的历史。
|
|
38
|
+
- 发布双语支持生命周期规范,明确 legacy 日期、实际退役前持续验证、独立技术准入和精确版本发布证据要求。
|
|
39
|
+
|
|
9
40
|
## 0.1.10 - 2026-10-19
|
|
10
41
|
|
|
11
42
|
- 新增 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`。
|
package/CONTRIBUTING.md
CHANGED
|
@@ -14,12 +14,16 @@ pnpm exec playwright install chromium
|
|
|
14
14
|
pnpm check
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
The [development guide](docs/development.md) explains the isolated DSH runtime and the full test boundaries. Run `pnpm pack:local` when a change affects packaging, and `pnpm smoke` when it affects installation or startup. Tests use temporary profiles;
|
|
17
|
+
The [development guide](docs/development.md) explains the isolated DSH runtime and the full test boundaries. Run `pnpm pack:local` when a change affects packaging, and `pnpm smoke` when it affects installation or startup. Tests use temporary profiles; ordinary development/smoke wrappers manage the checkout’s .dev profile. Final verification uses the fixed-archive consumer’s new marked home. Keep real account files and credentials out of the repository.
|
|
18
18
|
|
|
19
19
|
Before changing supported versions, consult the [legacy compatibility inventory](docs/legacy-compatibility.md). Review manifest peers and compatibility declarations, runtime admission, test targets, CI matrices, and user claims together. Retire runtime adaptations in the same change only when none of their applicable DSH versions remain supported; retire old plugin configuration under its own migration policy. Keep shared security checks. Update both inventory languages, both matrix views and affected entries with complete version numbers whenever compatibility code changes.
|
|
20
20
|
|
|
21
|
+
Keep the [support policy](docs/support-policy.md), both directions of [support history](docs/support-history.md), README and inventory synchronized in both languages for support changes. Use the [fixed-archive consumer](docs/development.md#consume-a-fixed-archive) for same-package verification; packaging wrappers are for preparing a new candidate.
|
|
22
|
+
|
|
21
23
|
## Open a pull request
|
|
22
24
|
|
|
23
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.
|
|
24
26
|
|
|
25
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
|
@@ -16,10 +16,14 @@ pnpm exec playwright install chromium
|
|
|
16
16
|
pnpm check
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
[开发指南](docs/development.zh-CN.md)说明隔离的 DSH 运行时与完整测试范围。改动打包时执行 `pnpm pack:local`;改动安装或启动时再执行 `pnpm smoke`。测试使用临时 profile
|
|
19
|
+
[开发指南](docs/development.zh-CN.md)说明隔离的 DSH 运行时与完整测试范围。改动打包时执行 `pnpm pack:local`;改动安装或启动时再执行 `pnpm smoke`。测试使用临时 profile;普通开发/smoke 包装命令管理当前 checkout 的 .dev profile,最终验证使用固定归档运行器新建的带标记 home。真实账号文件与凭据不得进入仓库。
|
|
20
|
+
|
|
21
|
+
支持变更须同时维护[支持规范](docs/support-policy.zh-CN.md)、[双向支持历史](docs/support-history.zh-CN.md)、README 与兼容库存的两种语言。同包验证使用[固定归档运行器](docs/development.zh-CN.md#消费固定归档),打包包装命令只用于准备新候选。
|
|
20
22
|
|
|
21
23
|
## 提交 Pull Request
|
|
22
24
|
|
|
23
25
|
从 `master` 创建专用分支。说明改动原因、用户可见效果、已运行的测试,以及迁移或部署步骤。行为变化需要同步修改中英文指南,并在两份更新日志的“未发布”部分补一条简短记录。不要提交生成的 `dist/`、`artifacts/`、运行时数据、密钥或本地 profile。
|
|
24
26
|
|
|
25
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,49 +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
|
|
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
|
-
|
|
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.
|
|
16
16
|
|
|
17
|
-
|
|
|
18
|
-
|
|
|
19
|
-
| 0.1
|
|
20
|
-
| 0.1
|
|
21
|
-
| 0.2.
|
|
22
|
-
| 0.2.
|
|
23
|
-
| 0.2.1-
|
|
24
|
-
| 0.2.1-
|
|
25
|
-
| 0.2.1-
|
|
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 |
|
|
17
|
+
| Exact supported DSH release | Maintenance | Legacy since | Window | Earliest eligible retirement |
|
|
18
|
+
| --------------------------- | ----------------------------------- | ------------ | ------- | ---------------------------- |
|
|
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 |
|
|
22
|
+
| `0.2.1-rc.1` | Normal support | — | — | Not announced |
|
|
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 |
|
|
28
26
|
|
|
29
|
-
|
|
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.
|
|
30
28
|
|
|
31
|
-
|
|
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.
|
|
32
30
|
|
|
33
|
-
|
|
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.
|
|
34
32
|
|
|
35
33
|
## Install from npm
|
|
36
34
|
|
|
37
|
-
|
|
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:
|
|
38
36
|
|
|
39
37
|
```sh
|
|
40
38
|
dsh --version
|
|
41
|
-
dsh plugin --profile web add dsh-auth-remote@0.1
|
|
39
|
+
dsh plugin --profile web add dsh-auth-remote@0.3.1
|
|
42
40
|
dsh plugin --profile web list
|
|
43
41
|
```
|
|
44
42
|
|
|
45
|
-
Check that `dsh --version` prints `0.2.1-
|
|
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).
|
|
46
44
|
|
|
47
45
|
## Configure the web profile
|
|
48
46
|
|
|
49
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.
|
|
50
48
|
|
|
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`.
|
|
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.
|
|
52
50
|
|
|
53
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.
|
|
54
52
|
|
|
@@ -66,7 +64,7 @@ Enter one username and a password of 12–256 Unicode characters. The password i
|
|
|
66
64
|
|
|
67
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.
|
|
68
66
|
|
|
69
|
-
On
|
|
67
|
+
On all seven supported versions, open the sidebar account menu, then **Settings → Security & sign-in**.
|
|
70
68
|
|
|
71
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).
|
|
72
70
|
|
|
@@ -85,13 +83,13 @@ Security & sign-in shows the plugin username, TOTP status, this session’s sign
|
|
|
85
83
|
|
|
86
84
|
## Sign in to an official DeepSeek account
|
|
87
85
|
|
|
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-
|
|
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.
|
|
89
87
|
|
|
90
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.
|
|
91
89
|
|
|
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.
|
|
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.
|
|
93
91
|
|
|
94
|
-
On DSH `0.2.1-alpha.3`, `0.2.1-alpha.4` and `0.2.1-
|
|
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.
|
|
95
93
|
|
|
96
94
|
## Put a proxy in front
|
|
97
95
|
|
package/README.zh-CN.md
CHANGED
|
@@ -6,49 +6,47 @@ DeepSeek Harness(DSH)的单用户远程登录插件,提供密码、TOTP、
|
|
|
6
6
|
|
|
7
7
|
## 前置条件
|
|
8
8
|
|
|
9
|
-
- Linux(含 `/proc`)、Node.js 24
|
|
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
|
-
`dsh.compatibility.dshReleases`
|
|
15
|
+
未发布候选 **`0.3.1`** 在 `dsh.compatibility.dshReleases` 声明以下七个精确目标。`engines.dsh`、WebServer peer 和运行时准入下限一致为 `>=0.2.1-alpha.3`,不设上限且按 SemVer 包含预发布。开发默认与迁移推荐为 **`0.2.1-rc.4`**。最终同包验证记录与声明分开保存。
|
|
16
16
|
|
|
17
|
-
| DSH 版本
|
|
18
|
-
|
|
|
19
|
-
| 0.1
|
|
20
|
-
| 0.1
|
|
21
|
-
| 0.2.
|
|
22
|
-
| 0.2.
|
|
23
|
-
| 0.2.1-
|
|
24
|
-
| 0.2.1-
|
|
25
|
-
| 0.2.1-
|
|
26
|
-
| 0.2.1-alpha.4 | 支持 | 支持;最终公开根地址写入运行时上下文与 `DSH_WEB_URL` | 通过官方监听支持 |
|
|
27
|
-
| 0.2.1-alpha.5 | 支持 | 支持;最终公开根地址写入运行时上下文与 `DSH_WEB_URL` | 通过官方监听支持 |
|
|
17
|
+
| 精确支持的 DSH 版本 | 维护状态 | Legacy 起算 | 窗口 | 最早退役资格日 |
|
|
18
|
+
| ------------------- | ------------------ | ----------- | ----- | -------------- |
|
|
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 |
|
|
22
|
+
| `0.2.1-rc.1` | 正常支持 | — | — | 未公告 |
|
|
23
|
+
| `0.2.1-rc.2` | 正常支持 | — | — | 未公告 |
|
|
24
|
+
| `0.2.1-rc.3` | 正常支持 | — | — | 未公告 |
|
|
25
|
+
| `0.2.1-rc.4` | 正常支持;开发默认 | — | — | 未公告 |
|
|
28
26
|
|
|
29
|
-
|
|
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)查询历史声明、报告与分发事实;两份支持规范保留前一发布的记录,本候选事实以本文和历史表为准。
|
|
30
28
|
|
|
31
|
-
|
|
29
|
+
七版均使用同一入口配置,支持具体 IPv4/IPv6、原生 HTTP/HTTPS、CLI `--public-url`,最终公开根地址写入模型运行时上下文与 `DSH_WEB_URL`。模型 Web 提示各段不应重复公开 URL 或泄露 token。原生能力与保留适配见[兼容维护清单](docs/legacy-compatibility.zh-CN.md)。
|
|
32
30
|
|
|
33
|
-
[
|
|
31
|
+
后续版本按范围向前准入,仍须通过 WebServer/Connection API、宿主包身份和原生认证交换检查;准入不构成逐版支持或实测声明。七版始终运行 CLI/smoke,全量、手动、定时及发布计划运行七版完整 browser,并独立验证退役边界 `0.2.1-alpha.2` 的拒绝路径。普通低风险计划使用[固定 browser 选择](docs/development.zh-CN.md#普通与全量-ci-计划),不运行真实旧宿主负向任务。
|
|
34
32
|
|
|
35
33
|
## 从 npm 安装
|
|
36
34
|
|
|
37
|
-
|
|
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:
|
|
38
36
|
|
|
39
37
|
```sh
|
|
40
38
|
dsh --version
|
|
41
|
-
dsh plugin --profile web add dsh-auth-remote@0.1
|
|
39
|
+
dsh plugin --profile web add dsh-auth-remote@0.3.1
|
|
42
40
|
dsh plugin --profile web list
|
|
43
41
|
```
|
|
44
42
|
|
|
45
|
-
确认 `dsh --version`
|
|
43
|
+
确认 `dsh --version` 输出推荐的 `0.2.1-rc.4`,且插件列表中有 `dsh-auth-remote@0.3.1`。这些命令使用 DSH 默认数据目录。源码构建及隔离开发运行时参见[开发指南](docs/development.zh-CN.md)。
|
|
46
44
|
|
|
47
45
|
## 配置 web profile
|
|
48
46
|
|
|
49
47
|
最小安装无需修改 profile 补丁。用 `dsh web --no-open --port 13090` 启动,使用终端打印的 `http://127.0.0.1:13090/` 根地址。未显式设置 `publicUrl` 时,插件根据监听的实际协议、地址和绑定端口生成唯一根地址,包含 `--port 0` 的实际结果。未登录导航跳转登录页;使用服务前检查 `/auth-remote/ready`。启动输出包含监听地址和一个不同的公开根地址,不含原生 `?token=` URL。
|
|
50
48
|
|
|
51
|
-
公网 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。
|
|
52
50
|
|
|
53
51
|
插件自动将定稿的原生桥接 authority 登记到 Connection 的 `trustedHosts`,下游插件无需额外 `--trusted-host` 即可识别具体监听地址。下游路由若需要原始公网 Host,可把路径加入 `preserveOriginPaths`,此时也自动登记最终公开 authority。显式 CLI trusted hosts 继续保留,外层公开来源与登录校验仍然生效。CLI 的 host/port 和公开 URL 覆盖文件值;TLS 按完整一对覆盖。升级 `allowedOrigins` 前阅读[迁移和路径规则](docs/deployment.zh-CN.md#配置优先级与路径基准):零项或单项在内存迁移并告警,多项及任意显式新旧字段共存报错。
|
|
54
52
|
|
|
@@ -66,7 +64,7 @@ dsh plugin --profile web exec dsh-auth-remote init --lang zh
|
|
|
66
64
|
|
|
67
65
|
最小化安装时访问本机回环地址;配置公网入口后访问 `https://dsh.example.com/auth-remote/login`。DSH 内的安全设置可以修改密码、绑定 TOTP、在策略允许时关闭 TOTP,以及撤销会话。密码或第二因素变更会撤销已有会话。会话默认固定有效 168 小时,服务重启后仍保留。
|
|
68
66
|
|
|
69
|
-
|
|
67
|
+
全部七个支持版本从侧栏账号菜单进入 **设置 → 安全与登录**。
|
|
70
68
|
|
|
71
69
|
登录页引用 DSH 的 PWA manifest,manifest 与 favicon 在登录前即可读取;业务页面和 API 仍需认证。具体范围见[公开资源规则](docs/deployment.zh-CN.md#来源与桥接契约)。
|
|
72
70
|
|
|
@@ -85,13 +83,13 @@ dsh plugin --profile web exec dsh-auth-remote revoke-sessions --lang zh
|
|
|
85
83
|
|
|
86
84
|
## 登录 DeepSeek 官方账号
|
|
87
85
|
|
|
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 页面;弹窗被浏览器拦截时,可使用弹窗内的授权链接。
|
|
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 页面;弹窗被浏览器拦截时,可使用弹窗内的授权链接。
|
|
89
87
|
|
|
90
88
|
在 **设置 → 安全与登录 → 登录配置** 中切换“远程 DeepSeek 账号登录”,默认开启。保存通过原生 Settings 写入当前 profile override,当前页新授权立即采用最新值,重启后保留;保存失败会显示错误。关闭只恢复新授权的原生入口,不取消已接纳的手动授权、不退出已有官方账号,也不承诺原生公网回调可用。其他已打开页面无需主动同步;旧页新建授权会提示关闭并建议刷新。
|
|
91
89
|
|
|
92
|
-
手动回填无需本地监听器、SSH 隧道或浏览器扩展。回环地址用于承载授权结果,页面无需正常打开。插件只解析粘贴的 URL,在 DSH 内部分发回调,保留原生 state 校验、PKCE 兑换与凭据存储,不会请求粘贴的地址。待完成授权绑定发起操作的远程会话,最长有效期为十分钟;关闭弹窗或撤销该会话会取消待完成授权。过期或失败后须重新开始。
|
|
90
|
+
手动回填无需本地监听器、SSH 隧道或浏览器扩展。回环地址用于承载授权结果,页面无需正常打开。插件只解析粘贴的 URL,在 DSH 内部分发回调,保留原生 state 校验、PKCE 兑换与凭据存储,不会请求粘贴的地址。待完成授权绑定发起操作的远程会话,最长有效期为十分钟;关闭弹窗或撤销该会话会取消待完成授权。过期或失败后须重新开始。
|
|
93
91
|
|
|
94
|
-
DSH `0.2.1-alpha.3`、`0.2.1-alpha.4`、`0.2.1-alpha.5` 的弹窗在授权开始前也提供“使用 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”,点击后进入原生凭据编辑器,直到保存密钥或用户选择“稍后配置”才结束引导;账号菜单中也保留同一入口。授权进行中时,次要按钮用于取消本次授权。
|
|
95
93
|
|
|
96
94
|
## 接入反向代理
|
|
97
95
|
|
package/cordis.patch.yml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Bundle baseline: replace the native listener with the authenticated WebServer.
|
|
2
2
|
# The plugin reads the listener address from the official web-startup service.
|
|
3
|
-
#
|
|
4
|
-
# bundle
|
|
3
|
+
# Remote deployments must also disable this row in the independent profile patch.
|
|
4
|
+
# A skipped bundle cannot apply this patch or protect the listener itself.
|
|
5
5
|
- id: webserver
|
|
6
6
|
disabled: true
|
|
7
7
|
|
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);
|