assistsx-js 0.2.2 → 0.2.4

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
@@ -69,15 +69,20 @@
69
69
  }
70
70
  ```
71
71
  ## 3. 编写脚本插件
72
- 写一个最简单的,点击微信搜索进入搜索页面
73
- ```agsl
72
+
73
+ 简单点击(同步 API):
74
+
75
+ ```typescript
76
+ import { AssistsX } from "assistsx-js";
77
+
74
78
  const handleClick = () => {
75
- AssistsX.findById("com.tencent.mm:id/jha")[0].click()
76
- }
79
+ AssistsX.findById("com.tencent.mm:id/jha")[0]?.click();
80
+ };
77
81
  ```
78
82
 
79
- 增加一个测试按钮调用这个方法
80
- ```agsl
83
+ 多步骤自动化(推荐)见 [step-basics.md](./docs/02-step-engine/step-basics.md)。
84
+
85
+ ```vue
81
86
  <button type="button" @click="handleClick">测试按钮</button>
82
87
  ```
83
88
 
@@ -108,7 +113,11 @@ export default defineConfig({
108
113
  <br/>
109
114
 
110
115
 
111
- **[API开发文档](https://github.com/ven-coder/assistsx-js/blob/main/README-DEV.md)**
116
+ **[完整开发文档](./docs/README.md)**(推荐,含 Step、子模块、生产模式与 AI 协作指南)
117
+
118
+ **[API开发文档(兼容)](https://github.com/ven-coder/assistsx-js/blob/main/README-DEV.md)**
119
+
120
+ > 复杂自动化请使用 `Step.run` + `StepImpl` 链,详见 [docs/02-step-engine/step-basics.md](./docs/02-step-engine/step-basics.md)。
112
121
 
113
122
  ## 示例
114
123