shellx-ai 1.0.7 → 1.0.8

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.
Files changed (2) hide show
  1. package/dist/shellx.js +2 -2
  2. package/package.json +1 -1
package/dist/shellx.js CHANGED
@@ -371,7 +371,7 @@ class ShellX {
371
371
  : { textContains: text, clickable: false, visible: true };
372
372
  const element = yield this.findElementWithRetry(selector);
373
373
  if (!element) {
374
- throw new Error(`未找到包含文本 "${text}" 的可点击元素`);
374
+ return false;
375
375
  }
376
376
  const clickAction = {
377
377
  title: `点击文本: ${text}`,
@@ -393,7 +393,7 @@ class ShellX {
393
393
  var _a, _b;
394
394
  const element = yield this.findElementWithRetry(selector);
395
395
  if (!element) {
396
- throw new Error('未找到输入框元素');
396
+ return false;
397
397
  }
398
398
  const inputAction = {
399
399
  title: `输入文本: ${text}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shellx-ai",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "shellx is a powerful WebSocket-based client for controlling shell commands and UI automation on remote devices.",
5
5
  "repository": {
6
6
  "url": "git+https://github.com/10cl/shellx.git",