dsh-coding-subscription-oauth 0.7.1 → 0.8.0

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 (42) hide show
  1. package/CHANGELOG.md +312 -302
  2. package/CONTRIBUTING.md +138 -138
  3. package/INSTALL.md +267 -262
  4. package/LICENSE +19 -19
  5. package/NOTICE +11 -11
  6. package/README.de.md +309 -303
  7. package/README.es.md +310 -304
  8. package/README.fr.md +310 -304
  9. package/README.ja.md +310 -304
  10. package/README.ko.md +310 -304
  11. package/README.md +327 -321
  12. package/README.pt-BR.md +310 -304
  13. package/README.ru.md +310 -304
  14. package/README.zh-CN.md +325 -319
  15. package/compatibility/dsh-bom.json +36 -36
  16. package/cordis.patch.yml +13 -13
  17. package/docs/00-project-rules.md +213 -213
  18. package/docs/02-architecture.md +143 -142
  19. package/docs/02-architecture.zh-CN.md +143 -142
  20. package/lib/bin.js +13 -6
  21. package/lib/bin.js.map +3 -3
  22. package/lib/client.js +3 -3
  23. package/lib/client.js.map +4 -4
  24. package/lib/gateway-auth.d.ts +1 -0
  25. package/lib/gateway-auth.d.ts.map +1 -1
  26. package/lib/gateway-config.d.ts +4 -0
  27. package/lib/gateway-config.d.ts.map +1 -1
  28. package/lib/gateway-http.d.ts +5 -0
  29. package/lib/gateway-http.d.ts.map +1 -1
  30. package/lib/gateway-opencode-go.d.ts +22 -0
  31. package/lib/gateway-opencode-go.d.ts.map +1 -0
  32. package/lib/gateway.d.ts +2 -0
  33. package/lib/gateway.d.ts.map +1 -1
  34. package/lib/index.js +276 -63
  35. package/lib/index.js.map +4 -4
  36. package/lib/invariant.js.map +1 -1
  37. package/package.json +229 -229
  38. package/patches/dsh-agy@0.1.2.patch +25 -25
  39. package/scripts/release.mjs +187 -187
  40. package/scripts/smoke-deployed-routes.mjs +146 -146
  41. package/scripts/verify-adapter-host.mjs +70 -70
  42. package/scripts/verify-deployed-catalog.mjs +87 -87
package/CONTRIBUTING.md CHANGED
@@ -1,138 +1,138 @@
1
- # Contributing
2
-
3
- Welcome! `dsh-coding-subscription-oauth` is an open-source coding-subscription OAuth plugin for DeepSeek Harness. We appreciate issue reports, questions and pull requests. Read `docs/00-project-rules.md` first — it defines the release loop, versioning, commit/push hygiene and the publish vs local-only document split that every contribution must respect.
4
-
5
- ## Code of Conduct
6
-
7
- - Be respectful and constructive in issues, PRs and reviews.
8
- - Only ever use coding subscriptions you own. The project does not support bulk accounts, quota resale, remote relay, paywall bypass or client impersonation — see the compliance note in `README.md`.
9
-
10
- ## Getting started
11
-
12
- Primary verification is `pnpm run check` on Node matching `.nvmrc` (Cursor Cloud or an isolated checkout). Do not install into a shared operator DSH profile; use `export DSH_HOME=/tmp/dsh-verify-*` (or `$HOME/.dsh-cloud`) for plugin smoke tests.
13
-
14
- Docker sandbox targets remain available for CI and for contributors who prefer a hermetic build. The tracked `Dockerfile` copies the filtered source into the image (never credentials), downloads dependencies in a dedicated stage, then runs project code with `--network=none`. Do not use privileged mode, credential or host-directory bind mounts, or the Docker socket. Tests use no published ports. The narrowly controlled interactive Web preview below is the only port-publishing exception; host networking remains prohibited unless its documented fallback conditions are all met.
15
-
16
- ```bash
17
- pnpm install --frozen-lockfile
18
- pnpm run check
19
- ```
20
-
21
- Optional Docker:
22
-
23
- ```bash
24
- docker build --target check --build-arg NODE_VERSION=22.19.0 \
25
- --resource memory=3g --resource cpu-quota=200000 \
26
- --tag test-dsh-coding-oauth:check .
27
-
28
- docker build --target verify --build-arg NODE_VERSION=22.19.0 \
29
- --resource memory=3g --resource cpu-quota=200000 \
30
- --tag test-dsh-coding-oauth:verify .
31
- ```
32
-
33
- The `artifacts`, `package`, `inspect`, and `isolated-install` targets cover generated `lib/`, the candidate tarball, release inspection, and a script-disabled consumer install.
34
-
35
- ### Isolated Web preview
36
-
37
- `docker/run-preview.sh` is the only supported interactive preview launcher. It builds `web-preview` offline from two auditable inputs: this checkout's committed `lib/` and a BuildKit named context containing an installed `@deepseek-ai/dsh` **program package** (any audited version whose peer tree satisfies this plugin). Point `DSH_INSTALL_DIR` at that package directory, never at a DSH home/profile or any credential directory:
38
-
39
- ```bash
40
- export DSH_INSTALL_DIR=/path/to/node_modules/@deepseek-ai/dsh
41
- export DSH_PREVIEW_AUTHORITIES=review-host.example:17800
42
- ./docker/run-preview.sh
43
- ```
44
-
45
- The launcher defaults to Docker bridge networking and `0.0.0.0:17800`, checks the allowed high-port ranges, and enforces a non-root user, read-only root filesystem, dropped capabilities, no-new-privileges, CPU/memory/PID limits, isolated named volumes, and tmpfs runtime state. The DSH backend remains on a separate loopback-only high port. It does not mount, modify, restart, or validate against an existing host DSH. If provider endpoints require an outbound proxy, set `DSH_PREVIEW_PROXY` explicitly.
46
-
47
- The launcher prints a command for reading the runtime-generated bootstrap token from the container. Append it to the printed local or allowlisted remote URL as `?preview_token=<token>` using a private channel. The proxy exchanges it once for an HttpOnly, SameSite=Strict cookie and redirects to a token-free URL. Treat both the bootstrap URL and the isolated preview volumes as credentials; never paste either into logs, issues, commits, or chat.
48
-
49
- Host networking is **not** a normal preview mode. It may be selected only after a minimal container proves ordinary Docker port publishing unavailable and the maintainer explicitly approves that one run. The explicit guard is:
50
-
51
- ```bash
52
- DSH_PREVIEW_NETWORK=host \
53
- DSH_PREVIEW_HOST_NETWORK_CONFIRMED=yes \
54
- ./docker/run-preview.sh
55
- ```
56
-
57
- Even then, the launcher permits only the isolated high-port ranges and refuses occupied preview/backend ports. Stop the preview with the exact `docker rm -f <container>` command printed by the launcher. Remove its named volumes only after confirming they contain no OAuth credentials that need to be retained.
58
-
59
- This repo also ships a Grok Build CLI (`dsh-coding-oauth`, legacy `dsh-grok-build`), an OAuth settings page, and verification scripts for a live deployment (`verify:deployed` / `smoke:deployed`). Those exercise real providers, so they are meant for maintainer/dev workflows, not for CI.
60
-
61
- ## Development flow
62
-
63
- 1. Open an issue describing the change (or link an existing one) so scope is agreed first.
64
- 2. Branch from the default branch. Keep commits atomic and conventional — see **Commits & pushes** below.
65
- 3. When you change a capability or add a doc, update `README.md` (and the community translations added in `docs/00-project-rules.md` §2 if user-facing) and the relevant entries in `docs/` (public layer), **and** add a changelog entry under `Unreleased` in `CHANGELOG.md`.
66
- 4. Run `pnpm run check` until green (or the Docker `check` / `verify` targets if you prefer a hermetic sandbox), then commit that passing slice promptly (do not stack later work on an uncommitted green tree).
67
- 5. Push the branch as a version/milestone checkpoint and open a PR. Describe what changed and how it was verified. Keep the scope of local-only docs (`docs/local/`) out of the PR unless you are a maintainer doing internal investigation.
68
-
69
- ## Commits & pushes
70
-
71
- History is part of the review. The maintainer counterpart — tags, clean-tree releases, changelog folding — lives in `docs/00-project-rules.md` §7.
72
-
73
- ### Conventional, atomic commits
74
-
75
- - Use [Conventional Commits](https://www.conventionalcommits.org/): `type(optional-scope): summary` in the imperative, about 50–72 characters.
76
- - Types:
77
- - `feat:` new capability / route / provider
78
- - `fix:` bug fix
79
- - `docs:` documentation (publishable layer)
80
- - `test:` tests
81
- - `refactor:` behaviour-preserving cleanup
82
- - `build:` toolchain, packaging, or committed `lib/` artifacts
83
- - `ci:` CI workflow
84
- - `chore:` process-only (including a release bump)
85
- - Optional scopes such as `M1` / `M3` or a module name are welcome when they help a reviewer.
86
- - **One coherent concern per commit.** Do not mix docs, build/toolchain and feature/fix work unless they are inseparable (a new capability that cannot be reviewed without its README/changelog note, or a source change that must ship with the `lib/` it generated).
87
- - Do not rewrite published history. Amend or squash only on an unpushed local commit.
88
-
89
- ### Before you commit
90
-
91
- - Run `pnpm run check` (or the Docker `check` then `verify` targets) and wait until green. Do not commit a failing tree.
92
- - Commit promptly once checks pass — do not leave a finished, verified change sitting uncommitted next to later work.
93
- - Generated `lib/` is a committed release artifact (git installs + the CI `git diff --exit-code -- lib` drift gate). Rebuild it and include it in the **same** commit as the source or build-script change that produced it. Do not land stale `lib/` against newer `src/`, and do not land a `lib/`-only commit unless the only change is a verified rebuild with no source delta.
94
- - Never commit secrets, tokens, credentials, private keys, `.env` files, host-specific paths, or local-only notes (`docs/local/`, `reference/`). See `docs/00-project-rules.md` §0.3.
95
-
96
- ### Pushing
97
-
98
- - Push the feature branch as a **checkpoint** at each version or milestone (for example after an M1/M2/M3 slice, or when a version-ready cut is green), not only when the PR is finished.
99
- - Never force-push (`--force` / `--force-with-lease`) without **explicit maintainer approval**. Default history is append-only, including on your own feature branch once it has been pushed.
100
- - Open the PR from a pushed checkpoint. Describe what changed and how it was verified.
101
-
102
- ## Review & merging
103
-
104
- - The maintainer may self-approve and merge; additional review is optional.
105
- - A PR that changes public behaviour must not be merged without its README/changelog updates.
106
- - Do not force-push `main` or a published release tag. Feature-branch force-pushes still need explicit approval (see above).
107
- - Maintainers run the release loop (`docs/00-project-rules.md` §3–4 and §7) after merging a substantive change: clean working tree, bump version, annotated tag `v<version>`, publish to npm, and keep the GitHub milestone/release updated.
108
-
109
- ### npm release verification
110
-
111
- Maintainers publish the verified candidate manually using the handoff rules in
112
- `docs/00-project-rules.md` §4.1. Tag pushes run `.github/workflows/release.yml`,
113
- which only verifies that the tagged version and the `latest` dist-tag already
114
- exist on the public npm registry before creating or updating the GitHub Release;
115
- the workflow never publishes a second copy. A missing version or mismatched
116
- `latest` tag fails the workflow and prevents the GitHub Release.
117
-
118
- ## New DSH release smoke checklist
119
-
120
- The plugin verifies an exact DeepSeek Harness BOM (`compatibility/dsh-bom.json`). A new DSH rc/stable is **unverified by default**, and lifecycle drift has broken activation before (#17), so run this checklist before moving the pin — in order, stopping at the first failure:
121
-
122
- 1. **Sandbox or isolated cloud first.** Prefer `pnpm run check` on Node matching `.nvmrc` in Cursor Cloud / an isolated `DSH_HOME`. Docker remains optional: edit the hardcoded `@deepseek-ai/dsh@0.1.1-rc.2` pin in `Dockerfile` (`dsh-installed` / `rc2-compatibility` stages — there is no build-arg) to the candidate DSH version, then build those targets green. This catches activation/lifecycle breakage without touching a real profile.
123
- 2. **Real profile install (maintainer machine).** Install the candidate tarball into an existing `dsh web` profile and restart that process once; the plugin must activate with only `webServer` required and no Cordis injection failures in the logs.
124
- 3. **Settings surface.** Settings → Coding OAuth renders all four tabs (Accounts / Gateway / Capabilities / About).
125
- 4. **Credentials survive.** Every previously signed-in provider card (Grok / Codex / Kimi / Claude) still shows signed-in — an upgrade must never migrate or reset OAuth credential files.
126
- 5. **Live routes.** `DSH_WEB_URL=http://127.0.0.1:3080 pnpm run verify:deployed` (status route + catalog + registered routes), then `smoke:deployed` with `DSH_RESTORE_PROVIDER` / `DSH_RESTORE_MODEL` set for one streamed reply per credentialed OAuth route.
127
- 7. **Then move the pin.** Update `compatibility/dsh-bom.json`, the `dsh.compatibility` block in `package.json`, and the README / INSTALL compatibility notes in the same commit. Recording a host under `candidates[]` (for example `0.1.5-rc.1`) is not a promotion.
128
-
129
- ## Reporting security issues
130
-
131
- Do not open a public issue for a credential or account-safety problem. Follow the compliance/safety policy in `README.md`; for anything sensitive, contact a maintainer directly rather than pasting tokens or credentials anywhere.
132
-
133
- ## Document layers reminder
134
-
135
- - **Publishable**: root `README.md` + the community-language READMEs, `INSTALL.md`, `CHANGELOG.md`, `LICENSE`, `NOTICE`, `docs/00-project-rules.md`, `docs/02-architecture.md` + `docs/02-architecture.zh-CN.md`, and other generic `docs/` files. These ship to npm and git — keep them privacy-free.
136
- - **Local-only**: `docs/local/` and `reference/` are git-ignored and never shipped. Do not reference them from publishable docs.
137
-
138
- If you are not sure whether a detail is publishable, keep it in the local-only layer or ask a maintainer.
1
+ # Contributing
2
+
3
+ Welcome! `dsh-coding-subscription-oauth` is an open-source coding-subscription OAuth plugin for DeepSeek Harness. We appreciate issue reports, questions and pull requests. Read `docs/00-project-rules.md` first — it defines the release loop, versioning, commit/push hygiene and the publish vs local-only document split that every contribution must respect.
4
+
5
+ ## Code of Conduct
6
+
7
+ - Be respectful and constructive in issues, PRs and reviews.
8
+ - Only ever use coding subscriptions you own. The project does not support bulk accounts, quota resale, remote relay, paywall bypass or client impersonation — see the compliance note in `README.md`.
9
+
10
+ ## Getting started
11
+
12
+ Primary verification is `pnpm run check` on Node matching `.nvmrc` (Cursor Cloud or an isolated checkout). Do not install into a shared operator DSH profile; use `export DSH_HOME=/tmp/dsh-verify-*` (or `$HOME/.dsh-cloud`) for plugin smoke tests.
13
+
14
+ Docker sandbox targets remain available for CI and for contributors who prefer a hermetic build. The tracked `Dockerfile` copies the filtered source into the image (never credentials), downloads dependencies in a dedicated stage, then runs project code with `--network=none`. Do not use privileged mode, credential or host-directory bind mounts, or the Docker socket. Tests use no published ports. The narrowly controlled interactive Web preview below is the only port-publishing exception; host networking remains prohibited unless its documented fallback conditions are all met.
15
+
16
+ ```bash
17
+ pnpm install --frozen-lockfile
18
+ pnpm run check
19
+ ```
20
+
21
+ Optional Docker:
22
+
23
+ ```bash
24
+ docker build --target check --build-arg NODE_VERSION=22.19.0 \
25
+ --resource memory=3g --resource cpu-quota=200000 \
26
+ --tag test-dsh-coding-oauth:check .
27
+
28
+ docker build --target verify --build-arg NODE_VERSION=22.19.0 \
29
+ --resource memory=3g --resource cpu-quota=200000 \
30
+ --tag test-dsh-coding-oauth:verify .
31
+ ```
32
+
33
+ The `artifacts`, `package`, `inspect`, and `isolated-install` targets cover generated `lib/`, the candidate tarball, release inspection, and a script-disabled consumer install.
34
+
35
+ ### Isolated Web preview
36
+
37
+ `docker/run-preview.sh` is the only supported interactive preview launcher. It builds `web-preview` offline from two auditable inputs: this checkout's committed `lib/` and a BuildKit named context containing an installed `@deepseek-ai/dsh` **program package** (any audited version whose peer tree satisfies this plugin). Point `DSH_INSTALL_DIR` at that package directory, never at a DSH home/profile or any credential directory:
38
+
39
+ ```bash
40
+ export DSH_INSTALL_DIR=/path/to/node_modules/@deepseek-ai/dsh
41
+ export DSH_PREVIEW_AUTHORITIES=review-host.example:17800
42
+ ./docker/run-preview.sh
43
+ ```
44
+
45
+ The launcher defaults to Docker bridge networking and `0.0.0.0:17800`, checks the allowed high-port ranges, and enforces a non-root user, read-only root filesystem, dropped capabilities, no-new-privileges, CPU/memory/PID limits, isolated named volumes, and tmpfs runtime state. The DSH backend remains on a separate loopback-only high port. It does not mount, modify, restart, or validate against an existing host DSH. If provider endpoints require an outbound proxy, set `DSH_PREVIEW_PROXY` explicitly.
46
+
47
+ The launcher prints a command for reading the runtime-generated bootstrap token from the container. Append it to the printed local or allowlisted remote URL as `?preview_token=<token>` using a private channel. The proxy exchanges it once for an HttpOnly, SameSite=Strict cookie and redirects to a token-free URL. Treat both the bootstrap URL and the isolated preview volumes as credentials; never paste either into logs, issues, commits, or chat.
48
+
49
+ Host networking is **not** a normal preview mode. It may be selected only after a minimal container proves ordinary Docker port publishing unavailable and the maintainer explicitly approves that one run. The explicit guard is:
50
+
51
+ ```bash
52
+ DSH_PREVIEW_NETWORK=host \
53
+ DSH_PREVIEW_HOST_NETWORK_CONFIRMED=yes \
54
+ ./docker/run-preview.sh
55
+ ```
56
+
57
+ Even then, the launcher permits only the isolated high-port ranges and refuses occupied preview/backend ports. Stop the preview with the exact `docker rm -f <container>` command printed by the launcher. Remove its named volumes only after confirming they contain no OAuth credentials that need to be retained.
58
+
59
+ This repo also ships a Grok Build CLI (`dsh-coding-oauth`, legacy `dsh-grok-build`), an OAuth settings page, and verification scripts for a live deployment (`verify:deployed` / `smoke:deployed`). Those exercise real providers, so they are meant for maintainer/dev workflows, not for CI.
60
+
61
+ ## Development flow
62
+
63
+ 1. Open an issue describing the change (or link an existing one) so scope is agreed first.
64
+ 2. Branch from the default branch. Keep commits atomic and conventional — see **Commits & pushes** below.
65
+ 3. When you change a capability or add a doc, update `README.md` (and the community translations added in `docs/00-project-rules.md` §2 if user-facing) and the relevant entries in `docs/` (public layer), **and** add a changelog entry under `Unreleased` in `CHANGELOG.md`.
66
+ 4. Run `pnpm run check` until green (or the Docker `check` / `verify` targets if you prefer a hermetic sandbox), then commit that passing slice promptly (do not stack later work on an uncommitted green tree).
67
+ 5. Push the branch as a version/milestone checkpoint and open a PR. Describe what changed and how it was verified. Keep the scope of local-only docs (`docs/local/`) out of the PR unless you are a maintainer doing internal investigation.
68
+
69
+ ## Commits & pushes
70
+
71
+ History is part of the review. The maintainer counterpart — tags, clean-tree releases, changelog folding — lives in `docs/00-project-rules.md` §7.
72
+
73
+ ### Conventional, atomic commits
74
+
75
+ - Use [Conventional Commits](https://www.conventionalcommits.org/): `type(optional-scope): summary` in the imperative, about 50–72 characters.
76
+ - Types:
77
+ - `feat:` new capability / route / provider
78
+ - `fix:` bug fix
79
+ - `docs:` documentation (publishable layer)
80
+ - `test:` tests
81
+ - `refactor:` behaviour-preserving cleanup
82
+ - `build:` toolchain, packaging, or committed `lib/` artifacts
83
+ - `ci:` CI workflow
84
+ - `chore:` process-only (including a release bump)
85
+ - Optional scopes such as `M1` / `M3` or a module name are welcome when they help a reviewer.
86
+ - **One coherent concern per commit.** Do not mix docs, build/toolchain and feature/fix work unless they are inseparable (a new capability that cannot be reviewed without its README/changelog note, or a source change that must ship with the `lib/` it generated).
87
+ - Do not rewrite published history. Amend or squash only on an unpushed local commit.
88
+
89
+ ### Before you commit
90
+
91
+ - Run `pnpm run check` (or the Docker `check` then `verify` targets) and wait until green. Do not commit a failing tree.
92
+ - Commit promptly once checks pass — do not leave a finished, verified change sitting uncommitted next to later work.
93
+ - Generated `lib/` is a committed release artifact (git installs + the CI `git diff --exit-code -- lib` drift gate). Rebuild it and include it in the **same** commit as the source or build-script change that produced it. Do not land stale `lib/` against newer `src/`, and do not land a `lib/`-only commit unless the only change is a verified rebuild with no source delta.
94
+ - Never commit secrets, tokens, credentials, private keys, `.env` files, host-specific paths, or local-only notes (`docs/local/`, `reference/`). See `docs/00-project-rules.md` §0.3.
95
+
96
+ ### Pushing
97
+
98
+ - Push the feature branch as a **checkpoint** at each version or milestone (for example after an M1/M2/M3 slice, or when a version-ready cut is green), not only when the PR is finished.
99
+ - Never force-push (`--force` / `--force-with-lease`) without **explicit maintainer approval**. Default history is append-only, including on your own feature branch once it has been pushed.
100
+ - Open the PR from a pushed checkpoint. Describe what changed and how it was verified.
101
+
102
+ ## Review & merging
103
+
104
+ - The maintainer may self-approve and merge; additional review is optional.
105
+ - A PR that changes public behaviour must not be merged without its README/changelog updates.
106
+ - Do not force-push `main` or a published release tag. Feature-branch force-pushes still need explicit approval (see above).
107
+ - Maintainers run the release loop (`docs/00-project-rules.md` §3–4 and §7) after merging a substantive change: clean working tree, bump version, annotated tag `v<version>`, publish to npm, and keep the GitHub milestone/release updated.
108
+
109
+ ### npm release verification
110
+
111
+ Maintainers publish the verified candidate manually using the handoff rules in
112
+ `docs/00-project-rules.md` §4.1. Tag pushes run `.github/workflows/release.yml`,
113
+ which only verifies that the tagged version and the `latest` dist-tag already
114
+ exist on the public npm registry before creating or updating the GitHub Release;
115
+ the workflow never publishes a second copy. A missing version or mismatched
116
+ `latest` tag fails the workflow and prevents the GitHub Release.
117
+
118
+ ## New DSH release smoke checklist
119
+
120
+ The plugin verifies an exact DeepSeek Harness BOM (`compatibility/dsh-bom.json`). A new DSH rc/stable is **unverified by default**, and lifecycle drift has broken activation before (#17), so run this checklist before moving the pin — in order, stopping at the first failure:
121
+
122
+ 1. **Sandbox or isolated cloud first.** Prefer `pnpm run check` on Node matching `.nvmrc` in Cursor Cloud / an isolated `DSH_HOME`. Docker remains optional: edit the hardcoded `@deepseek-ai/dsh@0.1.1-rc.2` pin in `Dockerfile` (`dsh-installed` / `rc2-compatibility` stages — there is no build-arg) to the candidate DSH version, then build those targets green. This catches activation/lifecycle breakage without touching a real profile.
123
+ 2. **Real profile install (maintainer machine).** Install the candidate tarball into an existing `dsh web` profile and restart that process once; the plugin must activate with only `webServer` required and no Cordis injection failures in the logs.
124
+ 3. **Settings surface.** Settings → Coding OAuth renders all four tabs (Accounts / Gateway / Capabilities / About).
125
+ 4. **Credentials survive.** Every previously signed-in provider card (Grok / Codex / Kimi / Claude) still shows signed-in — an upgrade must never migrate or reset OAuth credential files.
126
+ 5. **Live routes.** `DSH_WEB_URL=http://127.0.0.1:3080 pnpm run verify:deployed` (status route + catalog + registered routes), then `smoke:deployed` with `DSH_RESTORE_PROVIDER` / `DSH_RESTORE_MODEL` set for one streamed reply per credentialed OAuth route.
127
+ 7. **Then move the pin.** Update `compatibility/dsh-bom.json`, the `dsh.compatibility` block in `package.json`, and the README / INSTALL compatibility notes in the same commit. Recording a host under `candidates[]` (for example `0.1.5-rc.1`) is not a promotion.
128
+
129
+ ## Reporting security issues
130
+
131
+ Do not open a public issue for a credential or account-safety problem. Follow the compliance/safety policy in `README.md`; for anything sensitive, contact a maintainer directly rather than pasting tokens or credentials anywhere.
132
+
133
+ ## Document layers reminder
134
+
135
+ - **Publishable**: root `README.md` + the community-language READMEs, `INSTALL.md`, `CHANGELOG.md`, `LICENSE`, `NOTICE`, `docs/00-project-rules.md`, `docs/02-architecture.md` + `docs/02-architecture.zh-CN.md`, and other generic `docs/` files. These ship to npm and git — keep them privacy-free.
136
+ - **Local-only**: `docs/local/` and `reference/` are git-ignored and never shipped. Do not reference them from publishable docs.
137
+
138
+ If you are not sure whether a detail is publishable, keep it in the local-only layer or ask a maintainer.