assistsx-js 0.0.2026 → 0.0.2027

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.
@@ -120,6 +120,11 @@ export declare class AssistsX {
120
120
  * @returns 是否设置成功
121
121
  */
122
122
  static setNodeText(node: Node, text: string): boolean;
123
+ /**
124
+ * 获取剪贴板最新文本
125
+ * @returns 剪贴板最新文本
126
+ */
127
+ static getClipboardLatestText(): any;
123
128
  static isAppInstalled(packageName: string): boolean;
124
129
  /**
125
130
  * 对指定节点进行截图
package/dist/AssistsX.js CHANGED
@@ -159,6 +159,14 @@ export class AssistsX {
159
159
  });
160
160
  return response.getDataOrDefault(false);
161
161
  }
162
+ /**
163
+ * 获取剪贴板最新文本
164
+ * @returns 剪贴板最新文本
165
+ */
166
+ static getClipboardLatestText() {
167
+ const response = this.call(CallMethod.getClipboardLatestText);
168
+ return response.getDataOrDefault({});
169
+ }
162
170
  static isAppInstalled(packageName) {
163
171
  const response = this.call(CallMethod.isAppInstalled, {
164
172
  args: { packageName },
@@ -48,5 +48,6 @@ export declare const CallMethod: {
48
48
  readonly getDeviceInfo: "getDeviceInfo";
49
49
  readonly getNetworkType: "getNetworkType";
50
50
  readonly isAppInstalled: "isAppInstalled";
51
+ readonly getClipboardLatestText: "getClipboardLatestText";
51
52
  };
52
53
  export type CallMethodType = (typeof CallMethod)[keyof typeof CallMethod];
@@ -49,4 +49,5 @@ export const CallMethod = {
49
49
  getDeviceInfo: "getDeviceInfo",
50
50
  getNetworkType: "getNetworkType",
51
51
  isAppInstalled: "isAppInstalled",
52
+ getClipboardLatestText: "getClipboardLatestText",
52
53
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "assistsx-js",
3
- "version": "0.0.2026",
3
+ "version": "0.0.2027",
4
4
  "description": "assistsx-js自动化开发SDK",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
package/src/AssistsX.ts CHANGED
@@ -255,6 +255,15 @@ export class AssistsX {
255
255
  });
256
256
  return response.getDataOrDefault(false);
257
257
  }
258
+ /**
259
+ * 获取剪贴板最新文本
260
+ * @returns 剪贴板最新文本
261
+ */
262
+ public static getClipboardLatestText(): any {
263
+ const response = this.call(CallMethod.getClipboardLatestText);
264
+ return response.getDataOrDefault({});
265
+ }
266
+
258
267
  public static isAppInstalled(packageName: string): boolean {
259
268
  const response = this.call(CallMethod.isAppInstalled, {
260
269
  args: { packageName },
package/src/CallMethod.ts CHANGED
@@ -53,6 +53,7 @@ export const CallMethod = {
53
53
  getDeviceInfo: "getDeviceInfo",
54
54
  getNetworkType: "getNetworkType",
55
55
  isAppInstalled: "isAppInstalled",
56
+ getClipboardLatestText: "getClipboardLatestText",
56
57
  } as const;
57
58
 
58
59
  // 导出类型定义