dsh-mini-utility-dock 0.1.6 → 0.1.8

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.en.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ Release notes are generated from the matching version section; newest first.
4
+ For Chinese, see [CHANGELOG.md](CHANGELOG.md).
5
+
6
+ ## 0.1.8 - 2026-09-21
7
+
8
+ - The two host-side fragments no longer say "sibling": the three phrasings now state the design goal itself — a plugin ships standalone, with nothing else required. A fragment is embedded verbatim into each consumer, where the word had no referent.
9
+ - The fragments' bytes change, so consumers must re-run `loopback:sync` / `guard:sync` and raise their pin to 0.1.8.
10
+
11
+ ## 0.1.7 - 2026-09-20
12
+
13
+ - The two host-side fragments no longer state how many consumers exist: "all three plugins", "the three disagree" and "the three plugins / diverged three times" give way to wording that names no count. A fragment is embedded verbatim into each consumer, where the reader cannot know how many other consumers there are — the count is workspace knowledge, not that repository's.
14
+ - The fragments' bytes change, so consumers must re-run `loopback:sync` / `guard:sync` and raise their pin to 0.1.7.
15
+
3
16
  ## 0.1.6 - 2026-09-20
4
17
 
5
18
  - Fix the `allowRemoteHost` note in `dist/guard.js`: it read "stop being admitted", the opposite of what the code does — that mode skips both checks, so it admits them. The JSDoc was already right; only this inline comment was inverted.
package/CHANGELOG.md CHANGED
@@ -1,4 +1,17 @@
1
- # Changelog
1
+ # 更新日志
2
+
3
+ Release Notes 由对应版本段生成;最新版本在前。
4
+ 英文版见 [CHANGELOG.en.md](CHANGELOG.en.md)。
5
+
6
+ ## 0.1.8 - 2026-09-21
7
+
8
+ - 两个 host 侧片段的注释不再出现 `sibling`:三处改为陈述设计目标本身——插件独立运行,不依赖同级安装。片段会逐字嵌入消费仓,那个词在那里没有可指对象。
9
+ - 片段字节因此变化,消费仓需重新运行 `loopback:sync` / `guard:sync` 并把 pin 升到 0.1.8。
10
+
11
+ ## 0.1.7 - 2026-09-20
12
+
13
+ - 两个 host 侧片段的注释不再带消费仓数量:「all three plugins」「the three disagree」「the three plugins / diverged three times」改为不指名、不计数的说法。片段会逐字嵌入消费仓,那里的读者无从得知存在几个消费方,计数是工作区知识而非该仓知识。
14
+ - 片段字节因此变化,消费仓需重新运行 `loopback:sync` / `guard:sync` 并把 pin 升到 0.1.7。
2
15
 
3
16
  ## 0.1.6 - 2026-09-20
4
17
 
package/README.en.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # dsh-mini-utility-dock
2
2
 
3
+ [中文](./README.md) | [English](./README.en.md)
4
+
3
5
  Source fragments and an embedding CLI shared by the DSH plugins.
4
6
 
5
7
  ## Fragments
package/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # dsh-mini-utility-dock
2
2
 
3
+ [中文](./README.md) | [English](./README.en.md)
4
+
3
5
  DSH 插件共享的源码片段与嵌入 CLI。
4
6
 
5
7
  ## 片段
package/dist/guard.js CHANGED
@@ -7,7 +7,7 @@
7
7
  // npm run guard:check (fail on drift)
8
8
  // instead of being imported: a bare `import 'dsh-mini-utility-dock/...'` would
9
9
  // put a runtime dependency on the dock into every plugin, and the whole point of
10
- // the dock is that a plugin works with no sibling installed.
10
+ // the dock is that a plugin ships standalone, with nothing else required.
11
11
  //
12
12
  // This file is the POLICY half. What counts as loopback is a separate fragment
13
13
  // (`dist/loopback.js`, embedded under the `dsh-loopback-helpers` marker), and
@@ -18,11 +18,11 @@
18
18
  // needs `loopback:sync` to have produced a `lib/shared.js` that declares them.
19
19
  //
20
20
  // There is deliberately no `import` here. A consumer embeds both blocks into one
21
- // file, so an import of a sibling module would both break the standalone promise
21
+ // file, so an import of another module would both break the standalone promise
22
22
  // and collide with the exports the block above already declares.
23
23
  //
24
- // Why the guard is shared rather than reimplemented per plugin: the three plugins
25
- // each carried their own `createGuard`, and the copies diverged three times. The
24
+ // Why the guard is shared rather than reimplemented per plugin: each consumer
25
+ // carried its own `createGuard`, and the copies diverged repeatedly. The
26
26
  // parts that differed were never the *decisions* — they were the error codes and
27
27
  // message strings welded into the same function, which forced every repo to keep
28
28
  // its own copy and made drift possible. Here the enforcement order and every
package/dist/loopback.js CHANGED
@@ -7,11 +7,11 @@
7
7
  // npm run loopback:check (fail on drift)
8
8
  // instead of being imported: a bare `import 'dsh-mini-utility-dock/...'` would
9
9
  // put a runtime dependency on the dock into every plugin, and the whole point of
10
- // the dock is that a plugin works with no sibling installed.
10
+ // the dock is that a plugin ships standalone, with nothing else required.
11
11
  //
12
12
  // Why it is shared at all: these predicates were copy-pasted per repo and
13
- // drifted twice. The first drift rejected IPv6 loopback in all three plugins;
14
- // the second made the three disagree on which Host spellings count as loopback
13
+ // drifted twice. The first drift rejected IPv6 loopback everywhere; the second
14
+ // is that consumers disagreed on which Host spellings count as loopback
15
15
  // (see scripts/guard-parity.mjs, which compares this block across repos).
16
16
  //
17
17
  // "Loopback" is decided in exactly one place — LOOPBACK_HOSTNAMES plus the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-mini-utility-dock",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "description": "Canonical fragments and a build-time embedding CLI shared by DSH plugins: the Mini Utility Dock bootstrap for client halves, and the loopback predicates plus the host request guard for host halves.",
5
5
  "type": "module",
6
6
  "bin": {