easytouch-windows 1.0.17 → 2.0.0
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 +57 -33
- package/SKILL.md +36 -2
- package/bin/arm64/et.exe +0 -0
- package/bin/x64/et.exe +0 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,21 +1,27 @@
|
|
|
1
1
|
# EasyTouch
|
|
2
2
|
|
|
3
|
+
## 中文 | [English](README.en.md)
|
|
4
|
+
|
|
3
5
|
跨平台系统自动化操作工具,支持 Windows、Linux、macOS。提供 CLI 命令行和 MCP 服务器两种使用方式,支持鼠标键盘控制、屏幕截图、窗口管理、系统信息查询等功能。
|
|
4
6
|
|
|
5
|
-
|
|
7
|
+
目前支持以下操作系统的 x64 和 ARM64 两种 CPU 架构:
|
|
6
8
|
|
|
7
9
|
- [x] Windows
|
|
8
10
|
|
|
9
11
|
- [x] Linux
|
|
10
|
-
- [
|
|
12
|
+
- [x] MACOS(目前缺少设备验证功能)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
**你能用它做什么?**
|
|
11
17
|
|
|
12
18
|
大家平时使用各类 AI 编程工具,写页面是不是经常碰到 AI 写的页面怎么也不满意,写出来跟设计稿差异很大,这是因为 AI 只能通过读写代码来改进代码,它看不到界面,不像人类有感官。
|
|
13
19
|
|
|
14
|
-
|
|
20
|
+
如果你想通过 OpenClaw 接入微信、飞书,让它截图桌面发给你,但是 OpenClaw 像弱智一样搞不好,或者你希望 AI 能够操作你电脑的设备为你工作,那么 EasyTouch 非常适合你。
|
|
15
21
|
|
|
16
22
|
|
|
17
23
|
|
|
18
|
-
|
|
24
|
+
因为 EasyTouch 是给 AI 装上手和眼睛,它支持以下功能:
|
|
19
25
|
|
|
20
26
|
- 系统信息:系统、CPU、内存、磁盘、进程
|
|
21
27
|
- 屏幕能力:显示器枚举、像素取色、截图
|
|
@@ -29,36 +35,51 @@
|
|
|
29
35
|
|
|
30
36
|
### 安装
|
|
31
37
|
|
|
32
|
-
|
|
38
|
+
推荐安装带自动平台选择能力的启动包;如果你只想安装当前系统,也可以直接安装对应平台包:
|
|
33
39
|
|
|
34
40
|
```bash
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
也可以只安装当前操作系统对应的平台包:
|
|
41
|
+
# 推荐:自动匹配当前平台
|
|
42
|
+
npm i -g @whuanle/easytouch
|
|
39
43
|
|
|
40
|
-
```
|
|
41
44
|
# Windows
|
|
42
|
-
npm i
|
|
45
|
+
npm i -g easytouch-windows
|
|
43
46
|
|
|
44
47
|
# Linux
|
|
45
|
-
npm i
|
|
48
|
+
npm i -g easytouch-linux
|
|
46
49
|
|
|
47
50
|
# macOS
|
|
48
51
|
npm i -g easytouch-macos
|
|
49
52
|
```
|
|
50
53
|
|
|
51
|
-
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
`@whuanle/easytouch` 会在当前主机上调用对应的平台包;平台包内部同时包含 x64 和 arm64 二进制,安装后会根据当前 CPU 架构自动选择对应程序文件。
|
|
57
|
+
|
|
58
|
+
如果是 Windows,安装后在 `AppData/Roaming/npm` 目录会发现名为 `et` 的文件。
|
|
59
|
+
|
|
60
|
+

|
|
52
61
|
|
|
53
62
|
|
|
54
63
|
|
|
55
64
|
### 使用示例
|
|
56
65
|
|
|
66
|
+
截取屏幕。
|
|
67
|
+
|
|
68
|
+
```
|
|
69
|
+
et screen capture --path a.png
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+

|
|
57
75
|
|
|
58
76
|
|
|
59
77
|
|
|
78
|
+
<img src="images/d4ba9a4e7b88e26b30118b3c76f2dce5.jpg" alt="d4ba9a4e7b88e26b30118b3c76f2dce5" style="zoom: 25%;" />
|
|
60
79
|
|
|
61
|
-
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
### 作为 Skills 给 AI 使用(推荐)
|
|
62
83
|
|
|
63
84
|
只需要执行命令安装 skills 即可。
|
|
64
85
|
|
|
@@ -66,9 +87,9 @@ npm i -g easytouch-macos
|
|
|
66
87
|
npx skills add https://github.com/whuanle/EasyTouch
|
|
67
88
|
```
|
|
68
89
|
|
|
90
|
+
> 注:skills 里面不带脚本,需提前安装当前平台包,第一次使用 AI 会自动安装,或者手动安装,例如 `npm i -g easytouch-windows`、`npm i -g easytouch-linux` 或 `npm i -g easytouch-macos`。
|
|
69
91
|
|
|
70
92
|
|
|
71
|
-
注:skills 里面不带脚本,需提前使用 `npm i easytouch` 或当前平台包安装工具。
|
|
72
93
|
|
|
73
94
|

|
|
74
95
|
|
|
@@ -78,51 +99,54 @@ npx skills add https://github.com/whuanle/EasyTouch
|
|
|
78
99
|
|
|
79
100
|
如果只是给 AI 工具使用,建议使用 skills 即可,配置 MCP 可能会麻烦一些。
|
|
80
101
|
|
|
81
|
-
在 Claude、Cursor 等工具中,配置 MCP
|
|
102
|
+
在 Claude、Cursor、VS Code、Sidecar 等工具中,配置 MCP 的方式基本一致。通过 npm 安装后,推荐直接调用全局 `et`,这样 Windows、Linux、macOS 都能使用同一套配置。只有在宿主程序无法从 PATH 找到命令时,才退回到完整路径或 `npx`。
|
|
82
103
|
|
|
83
104
|
|
|
84
105
|
|
|
85
106
|
在配置文件中添加:
|
|
86
107
|
|
|
87
|
-
**Windows**
|
|
88
108
|
|
|
89
|
-
```json
|
|
90
|
-
{
|
|
91
|
-
"mcpServers": {
|
|
92
|
-
"easytouch": {
|
|
93
|
-
"command": "C:\\path\\to\\et.exe",
|
|
94
|
-
"args": ["--mcp"]
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
```
|
|
99
109
|
|
|
100
|
-
|
|
110
|
+
**全局安装后(推荐,三平台统一写法)**
|
|
111
|
+
|
|
112
|
+
先执行 `npm i -g @whuanle/easytouch`,或者安装对应平台包,然后使用:
|
|
101
113
|
|
|
102
114
|
```json
|
|
103
115
|
{
|
|
104
116
|
"mcpServers": {
|
|
105
117
|
"easytouch": {
|
|
106
|
-
"command": "
|
|
107
|
-
"args": ["-
|
|
118
|
+
"command": "et",
|
|
119
|
+
"args": ["mcp-stdio"]
|
|
108
120
|
}
|
|
109
121
|
}
|
|
110
122
|
}
|
|
111
123
|
```
|
|
112
124
|
|
|
113
|
-
|
|
125
|
+
**宿主程序不走 PATH 时**
|
|
126
|
+
|
|
127
|
+
- Windows:把 `command` 改成 `C:\\Users\\<你自己的用户名>\\AppData\\Roaming\\npm\\et.cmd`
|
|
128
|
+
- Linux / macOS:先执行 `npm prefix -g`,然后把 `command` 改成 `<prefix>/bin/et`
|
|
129
|
+
|
|
130
|
+
**不想全局安装时(备用)**
|
|
131
|
+
|
|
132
|
+
如果你不想全局安装,也可以临时通过 `npx` 启动。这里同样建议统一使用 `@whuanle/easytouch`,不要再按平台分别写包名。
|
|
133
|
+
|
|
134
|
+
- Windows:`command` 推荐写 `npx.cmd`
|
|
135
|
+
- Linux / macOS:`command` 写 `npx`
|
|
114
136
|
|
|
115
137
|
```json
|
|
116
138
|
{
|
|
117
139
|
"mcpServers": {
|
|
118
140
|
"easytouch": {
|
|
119
|
-
"command": "
|
|
120
|
-
"args": ["
|
|
141
|
+
"command": "npx",
|
|
142
|
+
"args": ["-y", "@whuanle/easytouch", "mcp-stdio"]
|
|
121
143
|
}
|
|
122
144
|
}
|
|
123
145
|
}
|
|
124
146
|
```
|
|
125
147
|
|
|
148
|
+
> 如果是在 Windows 的 GUI 程序中配置 MCP,`command` 往往应显式写成 `npx.cmd` 或 `et.cmd`,不要只写 `npx`,否则有些宿主不会按 PowerShell 规则解析 `.ps1` / `.cmd`。
|
|
149
|
+
|
|
126
150
|
|
|
127
151
|
|
|
128
152
|
|
package/SKILL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: easytouch
|
|
3
|
-
description:
|
|
3
|
+
description: 跨平台系统自动化操作工具,支持 Windows、Linux、macOS。提供 CLI 命令行和 MCP 服务器两种使用方式,支持鼠标键盘控制、屏幕截图、窗口管理、系统信息查询等功能。
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# EasyTouch Skill
|
|
@@ -18,9 +18,21 @@ description: EasyTouch Skill 接入文档(CLI + MCP)。
|
|
|
18
18
|
### npm 安装
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
|
-
|
|
21
|
+
# 推荐:自动匹配当前平台
|
|
22
|
+
npm install -g @whuanle/easytouch
|
|
23
|
+
|
|
24
|
+
# Windows
|
|
25
|
+
npm install -g easytouch-windows
|
|
26
|
+
|
|
27
|
+
# Linux
|
|
28
|
+
npm install -g easytouch-linux
|
|
29
|
+
|
|
30
|
+
# macOS
|
|
31
|
+
npm install -g easytouch-macos
|
|
22
32
|
```
|
|
23
33
|
|
|
34
|
+
|
|
35
|
+
|
|
24
36
|
安装后命令入口:
|
|
25
37
|
|
|
26
38
|
```bash
|
|
@@ -352,6 +364,8 @@ et mcp-stdio --output json
|
|
|
352
364
|
|
|
353
365
|
### 配置示例
|
|
354
366
|
|
|
367
|
+
优先使用全局 `et` 命令,这样三个平台都是同一套 MCP 配置:
|
|
368
|
+
|
|
355
369
|
```json
|
|
356
370
|
{
|
|
357
371
|
"mcpServers": {
|
|
@@ -363,4 +377,24 @@ et mcp-stdio --output json
|
|
|
363
377
|
}
|
|
364
378
|
```
|
|
365
379
|
|
|
380
|
+
如果宿主程序不能从 PATH 找到命令:
|
|
381
|
+
|
|
382
|
+
- Windows:把 `command` 改成 `C:\Users\<你自己的用户名>\AppData\Roaming\npm\et.cmd`
|
|
383
|
+
- Linux / macOS:先执行 `npm prefix -g`,再把 `command` 改成 `<prefix>/bin/et`
|
|
384
|
+
|
|
385
|
+
如果不想全局安装,也可以临时通过 `npx` 启动:
|
|
386
|
+
|
|
387
|
+
- Windows:`command` 推荐写 `npx.cmd`
|
|
388
|
+
- Linux / macOS:`command` 写 `npx`
|
|
389
|
+
|
|
390
|
+
```json
|
|
391
|
+
{
|
|
392
|
+
"mcpServers": {
|
|
393
|
+
"easytouch": {
|
|
394
|
+
"command": "npx",
|
|
395
|
+
"args": ["-y", "@whuanle/easytouch", "mcp-stdio"]
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
```
|
|
366
400
|
|
package/bin/arm64/et.exe
CHANGED
|
Binary file
|
package/bin/x64/et.exe
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "easytouch-windows",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
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",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
|
-
"url": "https://github.com/whuanle/EasyTouch"
|
|
9
|
+
"url": "git+https://github.com/whuanle/EasyTouch.git"
|
|
10
10
|
},
|
|
11
11
|
"bugs": {
|
|
12
12
|
"url": "https://github.com/whuanle/EasyTouch/issues"
|