easytouch-windows 2.0.1 → 2.0.3

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
@@ -113,11 +113,13 @@ npx skills add https://github.com/whuanle/EasyTouch
113
113
 
114
114
  ```bash
115
115
  npm i @whuanle/easytouch
116
- node ./node_modules/@whuanle/easytouch/init.js
116
+ npx @whuanle/easytouch init
117
117
  ```
118
118
 
119
119
  如果安装的是 `@whuanle/easytouch`,这一步会先自动安装当前系统对应的平台包,再复制出原生 `et` 文件。
120
120
 
121
+ 如果你已经在项目里安装了依赖,也可以直接执行 `node ./node_modules/@whuanle/easytouch/init.js`,但这只适用于本地安装目录。
122
+
121
123
  执行后会生成:
122
124
 
123
125
  - Windows:`./node_modules/@whuanle/easytouch/et.exe`
@@ -144,8 +146,11 @@ node ./node_modules/@whuanle/easytouch/init.js
144
146
 
145
147
  ```bash
146
148
  npm i -g @whuanle/easytouch
149
+ et init
147
150
  ```
148
151
 
152
+ 生成完原生文件后,MCP 仍然可以直接使用全局 `et`:
153
+
149
154
  ```json
150
155
  {
151
156
  "mcpServers": {
@@ -157,6 +162,18 @@ npm i -g @whuanle/easytouch
157
162
  }
158
163
  ```
159
164
 
165
+ 如果你只是想手工执行脚本而不走 `et init`,需要先找到全局安装目录,例如:
166
+
167
+ ```bash
168
+ npm root -g
169
+ ```
170
+
171
+ 然后再执行对应路径下的 `init.js`,而不是 `./node_modules/...`:
172
+
173
+ ```bash
174
+ node <全局安装目录>/@whuanle/easytouch/init.js
175
+ ```
176
+
160
177
  **宿主程序不走 PATH 时(旧方式)**
161
178
 
162
179
  - Windows:把 `command` 改成 `C:\\Users\\<你自己的用户名>\\AppData\\Roaming\\npm\\et.cmd`
package/SKILL.md CHANGED
@@ -368,11 +368,13 @@ et mcp-stdio --output json
368
368
 
369
369
  ```bash
370
370
  npm i @whuanle/easytouch
371
- node ./node_modules/@whuanle/easytouch/init.js
371
+ npx @whuanle/easytouch init
372
372
  ```
373
373
 
374
374
  如果安装的是 `@whuanle/easytouch`,这一步会先自动安装当前系统对应的平台包,再生成原生 `et` 文件。
375
375
 
376
+ 如果依赖已经装在当前项目里,也可以直接执行 `node ./node_modules/@whuanle/easytouch/init.js`,但这只适用于本地安装目录。
377
+
376
378
  生成后的默认路径:
377
379
 
378
380
  - Windows:`./node_modules/@whuanle/easytouch/et.exe`
@@ -393,6 +395,15 @@ node ./node_modules/@whuanle/easytouch/init.js
393
395
 
394
396
  Windows 请把文件名写成 `et.exe`。Linux / macOS 写 `et`。
395
397
 
398
+ 如果是全局安装:
399
+
400
+ ```bash
401
+ npm i -g @whuanle/easytouch
402
+ et init
403
+ ```
404
+
405
+ 不要再写成 `node ./node_modules/@whuanle/easytouch/init.js`,因为全局安装不在当前项目目录下。
406
+
396
407
  如果你已经全局安装并且宿主能正确处理 PATH,也可以继续直接调用全局 `et`。首次运行时,如果平台包缺失,启动器也会自动安装当前平台包。
397
408
 
398
409
  如果宿主程序不能从 PATH 找到命令,旧方式仍可用:
package/bin/arm64/et.exe CHANGED
Binary file
package/bin/x64/et.exe CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easytouch-windows",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
4
4
  "description": "Windows binary distribution for EasyTouch with x64 and arm64 binaries.",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "type": "commonjs",