glasspane-harness 0.12.3 → 0.12.5

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
@@ -157,10 +157,13 @@ 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.12.3/scripts/install.sh | bash
160
+ curl -fsSL https://raw.githubusercontent.com/jingzhao-l/glasspane-harness/v0.12.5/scripts/install.sh | bash
161
161
  ```
162
162
 
163
- Two commands are installed: **`glasspane-harness`** and the short alias **`gp-harness`**.
163
+ Two commands are installed: **`glasspane-harness`** and the short alias **`gp-harness`**. npm and
164
+ bun get the alias from the wrapper's `bin` map; the release asset carries one binary, so on the
165
+ one-click channel `scripts/install.sh` creates the alias beside it and refuses the install if that
166
+ name is not executable.
164
167
 
165
168
  Some package managers do not run install scripts by default, and the wrapper's
166
169
  `postinstall` is what places the real binary. Measured on 0.7.0: npm installs fine (npm 11+
package/README.zh-CN.md CHANGED
@@ -135,10 +135,12 @@ 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.12.3/scripts/install.sh | bash
138
+ curl -fsSL https://raw.githubusercontent.com/jingzhao-l/glasspane-harness/v0.12.5/scripts/install.sh | bash
139
139
  ```
140
140
 
141
- 会装出两个命令:**`glasspane-harness`** 与短别名 **`gp-harness`**。
141
+ 会装出两个命令:**`glasspane-harness`** 与短别名 **`gp-harness`**。npm 与 bun 从 wrapper 的
142
+ `bin` 映射拿到这个别名;发布资产里只有一个二进制,所以一键通道由 `scripts/install.sh` 在它旁边
143
+ 创建这个别名,并且那个名字不可执行时就拒绝这次安装。
142
144
 
143
145
  有的包管理器默认不跑安装脚本,而把真二进制放到位的正是 wrapper 的 `postinstall`。
144
146
  0.7.0 实测:npm 这条路是好的(npm 11+ 首次安装会打一条 `allow-scripts` 提示,命令照样能跑);
package/package.json CHANGED
@@ -25,7 +25,7 @@
25
25
  "scripts": {
26
26
  "postinstall": "node ./postinstall.mjs"
27
27
  },
28
- "version": "0.12.3",
28
+ "version": "0.12.5",
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.12.3",
48
- "glasspane-harness-darwin-x64": "0.12.3"
47
+ "glasspane-harness-darwin-arm64": "0.12.5",
48
+ "glasspane-harness-darwin-x64": "0.12.5"
49
49
  }
50
50
  }