glasspane-harness 0.14.12 → 0.14.14

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/README.md CHANGED
@@ -98,10 +98,10 @@ That is a measured claim, not a promise. The fork tracks upstream
98
98
  [anomalyco/opencode](https://github.com/anomalyco/opencode) at a pinned tag, and
99
99
  `harness/tools/fork-diff.mjs` compares every file in this tree against that tag on every
100
100
  change. The ruler prints its own line — this is that line, verbatim, against the golden
101
- recorded 2026-11-10:
101
+ recorded 2026-11-12:
102
102
 
103
103
  ```
104
- fork-diff vs v1.18.32: 4630/6770 byte-identical, 294 edited, 138 added, 1708 deleted
104
+ fork-diff vs v1.18.32: 4630/6772 byte-identical, 294 edited, 140 added, 1708 deleted
105
105
  ```
106
106
 
107
107
  Most of what upstream ships is still byte-for-byte upstream — 4,630 of its 6,632 files. The
@@ -157,7 +157,7 @@ npm install -g glasspane-harness
157
157
  bun add -g glasspane-harness
158
158
 
159
159
  # or one-click (npm first, GitHub release asset as fallback)
160
- curl -fsSL https://raw.githubusercontent.com/jingzhao-l/glasspane-harness/v0.14.12/scripts/install.sh | bash
160
+ curl -fsSL https://raw.githubusercontent.com/jingzhao-l/glasspane-harness/v0.14.14/scripts/install.sh | bash
161
161
  ```
162
162
 
163
163
  Two commands are installed: **`glasspane-harness`** and the short alias **`gp-harness`**. npm and
package/README.zh-CN.md CHANGED
@@ -87,10 +87,10 @@ SDK 与 plugin API。为了塞下内核,没有任何功能被砍掉。
87
87
  这句话是**量出来的**,不是承诺。分叉锚定上游
88
88
  [anomalyco/opencode](https://github.com/anomalyco/opencode) 的某个 tag,
89
89
  `harness/tools/fork-diff.mjs` 每次改动都会把本树与那个 tag 逐文件对比。那把尺子自己打出的就是
90
- 下面这一行——原样照抄,对着 2026-11-10 记录的金样:
90
+ 下面这一行——原样照抄,对着 2026-11-12 记录的金样:
91
91
 
92
92
  ```
93
- fork-diff vs v1.18.32: 4630/6770 byte-identical, 294 edited, 138 added, 1708 deleted
93
+ fork-diff vs v1.18.32: 4630/6772 byte-identical, 294 edited, 140 added, 1708 deleted
94
94
  ```
95
95
 
96
96
  上游发来的 6,632 个文件里 4,630 个仍逐字节保持上游原样。改动(294 个)集中在 config/paths/品牌、
@@ -135,7 +135,7 @@ Azure、OpenRouter 等等全在——几百个模型——每一个都用**你
135
135
  ```bash
136
136
  npm install -g glasspane-harness # 推荐
137
137
  bun add -g glasspane-harness
138
- curl -fsSL https://raw.githubusercontent.com/jingzhao-l/glasspane-harness/v0.14.12/scripts/install.sh | bash
138
+ curl -fsSL https://raw.githubusercontent.com/jingzhao-l/glasspane-harness/v0.14.14/scripts/install.sh | bash
139
139
  ```
140
140
 
141
141
  会装出两个命令:**`glasspane-harness`** 与短别名 **`gp-harness`**。npm 与 bun 从 wrapper 的
package/package.json CHANGED
@@ -25,7 +25,7 @@
25
25
  "scripts": {
26
26
  "postinstall": "node ./postinstall.mjs"
27
27
  },
28
- "version": "0.14.12",
28
+ "version": "0.14.14",
29
29
  "license": "MIT",
30
30
  "os": [
31
31
  "darwin"
@@ -44,7 +44,7 @@
44
44
  },
45
45
  "sideEffects": false,
46
46
  "optionalDependencies": {
47
- "glasspane-harness-darwin-arm64": "0.14.12",
48
- "glasspane-harness-darwin-x64": "0.14.12"
47
+ "glasspane-harness-darwin-arm64": "0.14.14",
48
+ "glasspane-harness-darwin-x64": "0.14.14"
49
49
  }
50
50
  }
package/postinstall.mjs CHANGED
@@ -518,6 +518,11 @@ function main() {
518
518
  // Every placement is undone when the check that follows it fails: `targetBinary` is the command
519
519
  // the user runs next, so bytes this run refused must not be sitting on it.
520
520
  for (const name of names) {
521
+ // A leaf `refuseLeaf` refuses (someone pre-set a symbolic link at `targetBinary`) is a SECURITY
522
+ // decision, not an install failure: both the in-tree `copyBinary` and the fetch `installPackage`
523
+ // write to the same leaf, so retrying would only spend a network round-trip to hit the identical
524
+ // refusal and launder the real signal into "not installable here". Measure the refusal once and
525
+ // stop — nothing any candidate name can do changes the shape of the target.
521
526
  try {
522
527
  const placement = copyBinary(resolveBinary(name), targetBinary)
523
528
  const check = verifyBinary(expected)
@@ -528,6 +533,7 @@ function main() {
528
533
  placement.undo()
529
534
  seen.push(`${name}: ${check.detail}`)
530
535
  } catch (error) {
536
+ if (error instanceof Error && error.message.includes("refusing to write or chmod through it")) throw error
531
537
  const placement = installPackage(name)
532
538
  if (placement) {
533
539
  const check = verifyBinary(expected)