dsh-mask 0.2.11 → 0.2.12
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 +9 -0
- package/README-zh.md +1 -1
- package/README.md +1 -1
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,15 @@ All notable changes to this project are documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.2.12] - 2026-09-19
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- The release workflow now publishes through **npm trusted publishing** (OIDC) instead of the long-lived `NPM_TOKEN` secret: `setup-node` no longer sets `registry-url` (its empty `_authToken` line made the registry answer 404 on PUT), npm is upgraded to >= 11.5.1 before publishing, and the "NPM_TOKEN is not set -> skip" guard is gone so a missing publisher cannot turn a release into a silent no-op.
|
|
13
|
+
|
|
14
|
+
- The two type rulers now measure two different universes: sconfig.check.json resolves `@deepseek-ai/*` through explicit paths into the deepseek-harness checkout's built types (guarded by `scripts/typecheck-checkout.mjs`, which reports `unverifiable` and exits 0 where no checkout exists), while `typecheck:ci` keeps measuring the published line from this repo's own `node_modules`. Before this, both configs resolved the same
|
|
15
|
+
ode_modules, so the second ruler was decorative.
|
|
16
|
+
|
|
8
17
|
## [0.2.11] - 2026-09-18
|
|
9
18
|
|
|
10
19
|
### Fixed
|
package/README-zh.md
CHANGED
|
@@ -148,7 +148,7 @@ profile patch 覆盖示例:
|
|
|
148
148
|
|
|
149
149
|
```sh
|
|
150
150
|
pnpm install # node ^22.19 || >=24
|
|
151
|
-
pnpm run typecheck && pnpm run typecheck:ci # 两把尺子:
|
|
151
|
+
pnpm run typecheck && pnpm run typecheck:ci # 两把尺子:checkout 面(带守卫,无 checkout 时不可验证)+ 已发布线面
|
|
152
152
|
pnpm test # node --test
|
|
153
153
|
pnpm run verify:self-contained # 依赖 spec 均来自 registry
|
|
154
154
|
pnpm run verify:artifacts # 发布文件齐全 + index.mjs 可 import
|
package/README.md
CHANGED
|
@@ -150,7 +150,7 @@ Example override in your profile patch:
|
|
|
150
150
|
|
|
151
151
|
```sh
|
|
152
152
|
pnpm install # node ^22.19 || >=24
|
|
153
|
-
pnpm run typecheck && pnpm run typecheck:ci # two rulers:
|
|
153
|
+
pnpm run typecheck && pnpm run typecheck:ci # two rulers: checkout face (guarded; unverifiable without the checkout) + published-line face
|
|
154
154
|
pnpm test # node --test
|
|
155
155
|
pnpm run verify:self-contained # dependency specs resolve from the registry
|
|
156
156
|
pnpm run verify:artifacts # shipped files present + index.mjs importable
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-mask",
|
|
3
3
|
"description": "PII masking middleware for DeepSeek Harness: regex-detect and replace phones, emails, ID cards, bank cards, keys, and (opt-in) IPs with placeholders before they reach the model, keep the restore table host-side (memory plus a controlled storage domain, never the session log) with the /mask restore command and the exported RestoreStore seam, and expose /mask status and the mask_test tool. Name and address recognition needs an external NER recognizer, which this pure-host form does not bundle: mode \"regex+ner\" and the person/address entities fail loudly at load. The phone and ID-card detectors match mainland-China formats only.",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.12",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/PerryLink/dsh-mask.git"
|
|
@@ -123,6 +123,7 @@
|
|
|
123
123
|
"coverage": "node --test --experimental-test-coverage \"test/*.test.mjs\"",
|
|
124
124
|
"lint": "oxlint",
|
|
125
125
|
"verify:self-contained": "node scripts/verify-self-contained.mjs",
|
|
126
|
+
"check:lockfile": "node scripts/check-lockfile-drift.mjs",
|
|
126
127
|
"verify:artifacts": "node scripts/verify-artifacts.mjs",
|
|
127
128
|
"check:readmes": "node scripts/verify-readmes.mjs"
|
|
128
129
|
},
|