Skip to content

Commit 345c8e6

Browse files
2234839claude
andcommitted
docs: add multi-instance guidance to SETUP.md
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4c9ba60 commit 345c8e6

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

SETUP.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@
3737
````markdown
3838
## 浏览器测试(vite-plugin-pilot)
3939

40-
已安装。`npx pilot run '代码'` 执行 JS(返回结果+日志+快照)、`npx pilot page` 页面状态、`npx pilot help` 辅助函数列表。
40+
已安装。`npx pilot run '代码'` 执行 JS(返回结果+日志+快照)、`npx pilot page` 页面状态
41+
`npx pilot help` 查看pilot所有功能
4142
常用:`__pilot_clickByText("文本")` 点击、`__pilot_typeByPlaceholder("提示文字", "值")` 输入、`__pilot_waitFor("文本")` 等待、`__pilot_findByText("文本")` 查找。snapshot 中 `#N` 是元素索引。
43+
多 tab 时用 `npx pilot status` 查看实例列表,`npx pilot run '代码' instance:前缀` 指定目标实例(支持 ID 前缀模糊匹配)。
4244
````
4345

4446
**重要**:不要删除或覆盖文件中的已有内容,只追加。

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vite-plugin-pilot",
3-
"version": "1.0.14",
3+
"version": "1.0.15",
44
"description": "AI Agent 驾驶浏览器的导航工具 — 打通 浏览器运行时 → Dev Server → 源码 → IDE 的完整链路",
55
"type": "module",
66
"bin": {

0 commit comments

Comments
 (0)