@kira905/dsh-diagnostics-extra 0.1.1 → 0.1.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 CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project are documented here.
4
4
  Format loosely follows [Keep a Changelog](https://keepachangelog.com/); versions follow SemVer.
5
5
 
6
+ ## [0.1.2] - 2026-10-31
7
+
8
+ ### Changed
9
+
10
+ - `owner-todo-scan.mjs`: dropped a redundant alternative from `SKIP_DIR` — the shorter entry
11
+ already matches the longer one as a substring, so directory-skipping semantics are unchanged
12
+ (equivalence check over 17 candidate names: 0 differences).
13
+
6
14
  ## [0.1.0] - 2026-10-19
7
15
 
8
16
  ### Added
package/README.en.md CHANGED
@@ -30,6 +30,23 @@
30
30
 
31
31
  ---
32
32
 
33
+ ## Shared-source notice
34
+
35
+ Some files in this repository **share a source with an internal production implementation**
36
+ (the same engineering effort, evolved over time, with two landing places).
37
+
38
+ - **How much**: measured by the **line-level shared-source ratio** (among same-named comparable files, how
39
+ many non-empty lines of this repository's files are found in the reference files, multiset-deducted); this
40
+ repository's "≥50% line-share" figure is **100%**.
41
+ - **What that means**: this repository is a **distilled export** of that implementation — **neither a verbatim
42
+ copy nor a fully rewritten independent implementation**. Before reading any single file as an "independent
43
+ reference implementation", run the check below.
44
+ - **How to re-run it**: the shared-source scanner ships with `dsh-quality-toolkit` as `dsh-sim-scan.mjs`
45
+ (`--repo <this repo> --prod-root <reference root>`); the bucket thresholds and the measurement caliber live
46
+ in its `config/sim-scan.json`, not buried in code.
47
+ - **License**: see `LICENSE` at the repository root (when a subdirectory carries its own exception, that
48
+ subdirectory's `LICENSE` wins).
49
+
33
50
  ## 1. Requirements & install
34
51
 
35
52
  ```powershell
package/README.md CHANGED
@@ -52,6 +52,15 @@ Test-Path "$env:APPDATA\npm\dsh-why.CMD" # npm i -g
52
52
 
53
53
  ---
54
54
 
55
+ ## 同源说明
56
+
57
+ 本仓**部分文件与一套内部生产实现同源**(同一份工程长期演进下来的两处落点)。
58
+
59
+ - **同源程度**:按**行级同源度**口径统计(同名可比件里,仓内文件的非空行有多少能在参照件中找到,多重集扣减),本仓「≥50% 行同占比」= **100%**。
60
+ - **这意味着**:本仓是那套实现的**提炼导出** —— **既不是逐字副本,也不是完全重写的独立实现**。拿单个文件当"独立参考实现"读之前,请先跑下面的判据。
61
+ - **怎么复跑**:同源度扫描器见 `dsh-quality-toolkit` 的 `dsh-sim-scan.mjs`(`--repo <本仓> --prod-root <参照根>`);分档阈值与口径写在它的 `config/sim-scan.json` 里,不藏在代码里。
62
+ - **许可**:本仓许可见仓根 `LICENSE`(有子树例外时以子树 `LICENSE` 为准)。
63
+
55
64
  ## 1. 环境与安装
56
65
 
57
66
  ```powershell
@@ -196,7 +196,8 @@ const peerDocs = [];
196
196
  const PEER_NAME = String(process.env.DSH_PEER_LABEL || "对端机").trim();
197
197
  const PEER_RE = PEER_NAME.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
198
198
  const PEER = new RegExp(`(?:${PEER_RE} ?侧执行|主人在 ?${PEER_RE}|主人上 ?${PEER_RE}|照本单执行|待 ?${PEER_RE} ?侧|${PEER_RE} ?侧照|交给 ?${PEER_RE}|开 ?${PEER_RE}|${PEER_RE} ?侧重|${PEER_RE} ?侧按)`);
199
- const SKIP_DIR = /(变更流水|管家报告|坑库|长期库大扫除|_archive|大扫除)/;
199
+ // 跳过的目录名:最后一项已覆盖更长的那个同类目名(前者是后者的子串)⇒ 不再单列,语义不变。
200
+ const SKIP_DIR = /(变更流水|管家报告|坑库|_archive|大扫除)/;
200
201
  const NAME_HINT = /(执行单|执行清单|执行卡|作业方案|接线执行)/;
201
202
  // 不是执行单、且会自指造成回环的文档:本工具自己生成的清单(它整篇都在复述对端单的行,
202
203
  // 被扫回来 ⇒ 每次刷新都自我复读一份)+ 文档总索引(只索引别的档名,本身无待办)。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kira905/dsh-diagnostics-extra",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "DeepSeek Harness (DSH) diagnostics & reconciliation utilities: image-attachment audit/fetch (TRANSPORT root cause), one-command health check (host / dsh & guard start times / port connections), and an owner-action scanner. Zero third-party runtime dependencies.",
5
5
  "license": "AGPL-3.0-only",
6
6
  "private": false,