@twinsearth/ai-prison-dsh-plugin 1.7.1 → 1.7.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
@@ -2,6 +2,24 @@
2
2
 
3
3
  All notable changes to `@twinsearth/ai-prison-dsh-plugin` are recorded here.
4
4
 
5
+ ## [1.7.2] — 2026-11-19
6
+
7
+ ### Fixed
8
+
9
+ - Entry-based installation anchors accept a non-absolute `argv[1]`; the 1.7.1
10
+ tag accidentally shipped without this portability change, so the harness
11
+ tests failed on ubuntu CI.
12
+ - `manifest.test.mjs` normalizes CRLF before comparing the embedded market icon
13
+ with `icon.svg`; `patch-docs.test.mjs` accepts `\r?\n` row separators, so a
14
+ Windows checkout with `autocrlf` no longer fails those assertions.
15
+
16
+ ### Note
17
+
18
+ - 1.7.0 and 1.7.1 reached npm but their tag-triggered GitHub Releases failed on
19
+ the two test portability issues above; 1.7.2 is the complete three-channel
20
+ release.
21
+
22
+ ## [1.7.1] — 2026-11-19
5
23
  ## [1.7.1] — 2026-11-19
6
24
 
7
25
  ### Fixed
package/lib/harness.js CHANGED
@@ -18,7 +18,7 @@ export function installationAnchors({ execPath = process.execPath, env = process
18
18
  // The entry module (argv[1]) often sits either directly in the runtime root
19
19
  // (…/app.asar/dsh/index.js) or in a subdirectory (…/dsh/dist/index.js). Both
20
20
  // are useful anchors when execPath no longer points at the installation.
21
- const entry = typeof argv[1] === 'string' && path.isAbsolute(argv[1]) ? argv[1] : undefined
21
+ const entry = typeof argv[1] === 'string' && argv[1] ? argv[1] : undefined
22
22
  const entryDir = entry ? path.dirname(entry) : undefined
23
23
  const entryParent = entryDir ? path.dirname(entryDir) : undefined
24
24
  const entryLooksLikeDsh = (candidate) => Boolean(candidate) && /(^|[\\/])(app\.asar|dsh|dsh-runtime)([\\/]|$)/.test(candidate)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twinsearth/ai-prison-dsh-plugin",
3
- "version": "1.7.1",
3
+ "version": "1.7.2",
4
4
  "description": "AI Prison for DSH: eight governance tools wrapping the aiprison CLI (levels, status, watchdog status, demo, drill, inspect, verify, repair-tail) plus a panel for the L0–L5 matrix and the audit-chain state. The CLI ships bundled for Windows, macOS and Linux; every capability-removal backend stays simulated.",
5
5
  "type": "module",
6
6
  "main": "index.js",