dsh-completion-guard 0.8.0 → 0.8.2
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 +19 -1
- package/CHANGELOG.zh-CN.md +18 -0
- package/README.md +17 -12
- package/README.zh-CN.md +17 -12
- package/bin/dsh-completion-guard-host-lock.mjs +103 -7
- package/dist/domain/index.d.ts +2 -2
- package/dist/domain/index.js +2 -2
- package/dist/{domain-D0zTh3O_.js → domain-B-2fya9P.js} +22039 -13785
- package/dist/{index-DMr57AgL.d.ts → index-DqvBEsNc.d.ts} +345 -29
- package/dist/index.d.ts +23 -2
- package/dist/index.js +198 -80
- package/docs/COMPATIBILITY.md +65 -10
- package/docs/DEVELOPMENT_PLAN_DSH_0_2_0_RC2_DESKTOP.md +85 -0
- package/docs/HISTORICAL_INCIDENT_COVERAGE.md +148 -0
- package/docs/HOST_LOCK_UPGRADE.md +72 -22
- package/docs/LOCAL_ACCEPTANCE.md +12 -2
- package/docs/RELEASE_NOTES_0_8_2.md +21 -0
- package/docs/THIRD_PARTY_LICENSES.md +27 -0
- package/manifests/rc020-rc1-byte-audit.json +944 -0
- package/manifests/rc020-rc2-byte-audit.json +948 -0
- package/manifests/supported-host.v1.json +93 -93
- package/package.json +39 -38
package/docs/LOCAL_ACCEPTANCE.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Local Acceptance
|
|
2
2
|
|
|
3
|
+
## 0.8.2 RC.2 and Desktop acceptance
|
|
4
|
+
|
|
5
|
+
The candidate keeps the 0.8.x task, certificate and data protocols. Its changed host floor is DSH `0.2.0-rc.2`; use the [upgrade guide](HOST_LOCK_UPGRADE.md) before establishing a new lock. The [development plan](DEVELOPMENT_PLAN_DSH_0_2_0_RC2_DESKTOP.md) defines the source, portability, exact-package, native, model and reader gates.
|
|
6
|
+
|
|
7
|
+
Run the repository entrypoint twice for each native platform, always with the same frozen tgz and source commit. `host_bound_v070` covers Web/Headless. `desktop_bound` takes the physical app archive as `--runtime-root` and the exact DSH version as `--desktop-cohort`; it creates an isolated profile and uses the signed app's bundled CLI and actual Electron Node backend. Pass `--preflight` to each intended command before execution, with distinct unused external output and transfer-receipt paths.
|
|
8
|
+
|
|
9
|
+
The Desktop backend annex uses `dsh-desktop-bound/v1`. It covers carrier/graph authentication, installation parity, strict second no-op, injection and real composed readback, loaded Guard behavior, graceful stop, uninstall and cleanup. It expressly skips `graphical_shell` and `real_model_request`. Those skips require separate GUI/model evidence before the complete Desktop release gate closes. Portable tests, source composition against a real archive and a backend annex cannot substitute for those observations.
|
|
10
|
+
|
|
11
|
+
每个平台分别运行 Web/Headless 与 Desktop 原生入口,绑定同一份最终 tgz、源码提交及摘要。Desktop 使用 `--gate-profile desktop_bound --runtime-root <app.asar> --desktop-cohort 0.2.0-rc.2`,先加 `--preflight` 做同一次调用环境的能力预检,再去掉该参数执行。该入口在隔离 profile 中验证官方载体、安装字节、严格 no-op、组合配置、实际加载与卸载,并输出独立 annex;它不启动图形界面、不请求真实模型,二者须单独补齐。具体结果留在对应制品的外部回执和 Release 附件,避免文档自引用造成制品身份变化。
|
|
12
|
+
|
|
3
13
|
## 0.8.0 rc.2 source-stage snapshot
|
|
4
14
|
|
|
5
15
|
The [A01–A16 source-stage snapshot](DSH_0_1_7_RC2_ACCEPTANCE.md) records development checks before exact-artifact acceptance. Final CI, platform and model results belong to the matching artifact receipts and Release attachments. This source snapshot neither predicts those results nor transfers earlier acceptance to the changed rc.2 adapter.
|
|
@@ -875,7 +885,7 @@ replaces it:
|
|
|
875
885
|
| documentation audit | `python3 scripts/audit_repository_documentation.py .` | 27 markdown files, 0 errors, 0 warnings |
|
|
876
886
|
| documentation audit test | `python3 -m pytest tests -q` | 84 passed |
|
|
877
887
|
| whitespace | `git diff --check` | clean |
|
|
878
|
-
| reviewer probes (supplementary evidence, not the acceptance) | the fourteen counterexample files under
|
|
888
|
+
| reviewer probes (supplementary evidence, not the acceptance) | the fourteen counterexample files under maintainer-local review workspaces, run from `tests/domain/` | all fourteen files passed against the final source; every copy was removed afterwards |
|
|
879
889
|
| recorded 0.6.2 fixture | `node scripts/record_legacy_upgrade_fixture.mjs --module-dir <baseline dist> --commit 63326f2… --output tests/fixtures/upgrade/legacy-0.6.2.json` | exit 0; re-running reproduces the committed fixture byte for byte |
|
|
880
890
|
|
|
881
891
|
`NODE_PATH` was unset for the test runs. The DSH harness injects a `NODE_PATH`
|
|
@@ -1877,7 +1887,7 @@ pnpm pack --dry-run --json
|
|
|
1877
1887
|
## Isolated profile composition (macOS, no real ~/.dsh)
|
|
1878
1888
|
|
|
1879
1889
|
```sh
|
|
1880
|
-
export DSH_HOME
|
|
1890
|
+
export DSH_HOME=<local smoke directory>
|
|
1881
1891
|
DSH=/path/to/dsh
|
|
1882
1892
|
"$DSH" plugin --profile web add "file:/abs/path/to/dsh-context-guard"
|
|
1883
1893
|
"$DSH" --profile web --dump-config | grep context-guard
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# DSH Completion Guard 0.8.2
|
|
2
|
+
|
|
3
|
+
## English
|
|
4
|
+
|
|
5
|
+
This release adapts Guard to DSH RC.2 and adds an independent host lock for the official Desktop app. It keeps the 0.8.x task, certificate and data protocols. It also fixes shell evidence that could mistake an obscured failure marker for success.
|
|
6
|
+
|
|
7
|
+
Upgrade DSH to `0.2.0-rc.2` or later before installing Guard. Keep the host stopped while installing, inspecting and injecting the new lock, and verifying the composed configuration. Each profile needs its own lock; existing certificates retain their historical identity. Follow the [upgrade guide](HOST_LOCK_UPGRADE.md).
|
|
8
|
+
|
|
9
|
+
For Desktop, use the CLI shipped with the application to install plugins. Guard checks the vendor-signed carrier, archive bytes and actual dependency routes. Its `dump-desktop` command composes configuration through the bundled APIs without starting a host. The graphical app owns its restart lifecycle.
|
|
10
|
+
|
|
11
|
+
The reviewed baseline is DSH `0.2.0-rc.2` with Cordis `4.0.4`. Later versions require implementation qualification. Source checks, portability CI, same-artifact native backend acceptance, GUI/model observations and public publication identity have separate evidence. Use the Release attachments for the exact commit, package checksum and platform scope; see [compatibility](COMPATIBILITY.md) and [acceptance](LOCAL_ACCEPTANCE.md).
|
|
12
|
+
|
|
13
|
+
## 简体中文
|
|
14
|
+
|
|
15
|
+
本版本适配 DSH RC.2,并为官方 Desktop 应用新增独立宿主锁;任务、证书与数据协议延续 0.8.x。同时修复 shell 失败退出标记被后续文字遮挡时可能误报成功的问题。
|
|
16
|
+
|
|
17
|
+
请先将 DSH 升级到 `0.2.0-rc.2` 或更高版本,再安装 Guard。安装、检查、注入新锁及回读组合配置期间保持宿主停止;每个 profile 分别建立锁,旧证书保留历史身份。具体步骤见[升级指南](HOST_LOCK_UPGRADE.md)。
|
|
18
|
+
|
|
19
|
+
Desktop 插件须通过应用附带的 CLI 安装。Guard 核验厂商签名载体、归档字节与实际依赖路由;`dump-desktop` 通过应用内 API 组合配置,不启动宿主。图形应用的重启仍由应用自行管理。
|
|
20
|
+
|
|
21
|
+
已审查基线是 DSH `0.2.0-rc.2`、Cordis `4.0.4`;较新版本仍须通过实现资格验证。源码检查、跨平台 CI、同包原生后端、GUI/模型观察与公开发布身份分别建立证据。请用 Release 附件核对精确提交、包摘要和平台范围;详见[兼容性](COMPATIBILITY.md)及[验收记录](LOCAL_ACCEPTANCE.md)。
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Bundled third-party license
|
|
2
|
+
|
|
3
|
+
The runtime bundles Acorn 8.15.0 for ECMAScript program parsing. Its license is reproduced below.
|
|
4
|
+
|
|
5
|
+
```text
|
|
6
|
+
MIT License
|
|
7
|
+
|
|
8
|
+
Copyright (C) 2012-2022 by various contributors (see AUTHORS)
|
|
9
|
+
|
|
10
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
12
|
+
in the Software without restriction, including without limitation the rights
|
|
13
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
14
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
15
|
+
furnished to do so, subject to the following conditions:
|
|
16
|
+
|
|
17
|
+
The above copyright notice and this permission notice shall be included in
|
|
18
|
+
all copies or substantial portions of the Software.
|
|
19
|
+
|
|
20
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
22
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
23
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
24
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
26
|
+
THE SOFTWARE.
|
|
27
|
+
```
|