shellx-ai 1.0.11 → 1.1.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.
Files changed (48) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +586 -0
  3. package/dist/automation/element-finder.d.ts +189 -0
  4. package/dist/automation/element-finder.js +322 -0
  5. package/dist/automation/element-finder.js.map +1 -0
  6. package/dist/automation/ui-action-handler.d.ts +330 -0
  7. package/dist/automation/ui-action-handler.js +873 -0
  8. package/dist/automation/ui-action-handler.js.map +1 -0
  9. package/dist/cbor-compat.d.ts +27 -0
  10. package/dist/cbor-compat.js +108 -0
  11. package/dist/cbor-compat.js.map +1 -0
  12. package/dist/domain-manager.d.ts +80 -0
  13. package/dist/domain-manager.js +158 -0
  14. package/dist/domain-manager.js.map +1 -0
  15. package/dist/error-handler.d.ts +87 -0
  16. package/dist/error-handler.js +148 -0
  17. package/dist/error-handler.js.map +1 -0
  18. package/dist/errors.d.ts +114 -0
  19. package/dist/errors.js +139 -0
  20. package/dist/errors.js.map +1 -0
  21. package/dist/index.d.ts +163 -54
  22. package/dist/index.js +712 -472
  23. package/dist/index.js.map +1 -0
  24. package/dist/logger.d.ts +81 -0
  25. package/dist/logger.js +128 -0
  26. package/dist/logger.js.map +1 -0
  27. package/dist/protocol.d.ts +147 -31
  28. package/dist/protocol.js +2 -2
  29. package/dist/protocol.js.map +1 -0
  30. package/dist/shell/output-buffer.d.ts +152 -0
  31. package/dist/shell/output-buffer.js +163 -0
  32. package/dist/shell/output-buffer.js.map +1 -0
  33. package/dist/shell/shell-command-executor.d.ts +182 -0
  34. package/dist/shell/shell-command-executor.js +348 -0
  35. package/dist/shell/shell-command-executor.js.map +1 -0
  36. package/dist/shellx.d.ts +681 -176
  37. package/dist/shellx.js +763 -1047
  38. package/dist/shellx.js.map +1 -0
  39. package/dist/types.d.ts +132 -57
  40. package/dist/types.js +4 -4
  41. package/dist/types.js.map +1 -0
  42. package/dist/utils/retry-helper.d.ts +73 -0
  43. package/dist/utils/retry-helper.js +92 -0
  44. package/dist/utils/retry-helper.js.map +1 -0
  45. package/dist/utils.d.ts +3 -3
  46. package/dist/utils.js +17 -23
  47. package/dist/utils.js.map +1 -0
  48. package/package.json +95 -59
package/package.json CHANGED
@@ -1,59 +1,95 @@
1
- {
2
- "name": "shellx-ai",
3
- "version": "1.0.11",
4
- "description": "shellx is a powerful WebSocket-based client for controlling shell commands and UI automation on remote devices.",
5
- "repository": {
6
- "url": "git+https://github.com/10cl/shellx.git",
7
- "type": "git"
8
- },
9
- "main": "dist/index.js",
10
- "types": "dist/index.d.ts",
11
- "files": [
12
- "dist"
13
- ],
14
- "scripts": {
15
- "build": "tsc",
16
- "postbuild": "echo Build completed successfully",
17
- "prepublishOnly": "npm run build",
18
- "test": "jest"
19
- },
20
- "keywords": [
21
- "websocket",
22
- "shell",
23
- "automation",
24
- "ui-automation",
25
- "remote-control",
26
- "android",
27
- "adb",
28
- "device-control"
29
- ],
30
- "author": "10cl <notice@toscl.com>",
31
- "license": "MIT",
32
- "dependencies": {
33
- "cbor": "^9.0.0",
34
- "dotenv": "^16.4.5",
35
- "ofetch": "^1.4.1",
36
- "uuid": "^11.1.0"
37
- },
38
- "optionalDependencies": {
39
- "node-fetch": "^3.3.2",
40
- "ws": "^8.14.2"
41
- },
42
- "devDependencies": {
43
- "@types/jest": "^30.0.0",
44
- "@types/node": "^24.0.13",
45
- "@types/ws": "^8.18.1",
46
- "jest": "^30.0.4",
47
- "langchain": "^0.1.34",
48
- "promptflow-eval": "1.0.0",
49
- "promptflow-template": "1.0.0",
50
- "promptflowx": "^0.1.9",
51
- "ts-jest": "^29.4.0",
52
- "ts-node": "^10.9.2",
53
- "typescript": "^5.8.3"
54
- },
55
- "bugs": {
56
- "url": "https://github.com/10cl/shellx/issues"
57
- },
58
- "homepage": "https://github.com/10cl/shellx#readme"
59
- }
1
+ {
2
+ "name": "shellx-ai",
3
+ "version": "1.1.0",
4
+ "type": "module",
5
+ "description": "A powerful TypeScript library for Android device automation and UI control via WebSocket",
6
+ "workspaces": [
7
+ "example"
8
+ ],
9
+ "keywords": [
10
+ "android",
11
+ "automation",
12
+ "websocket",
13
+ "shell",
14
+ "ui-automation",
15
+ "remote-control",
16
+ "adb",
17
+ "device-control",
18
+ "typescript",
19
+ "mobile-automation"
20
+ ],
21
+ "author": "10cl <notice@toscl.com>",
22
+ "license": "MIT",
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "git+https://github.com/10cl/shellx.git"
26
+ },
27
+ "bugs": {
28
+ "url": "https://github.com/10cl/shellx/issues"
29
+ },
30
+ "homepage": "https://github.com/10cl/shellx#readme",
31
+ "main": "dist/index.js",
32
+ "types": "dist/index.d.ts",
33
+ "exports": {
34
+ ".": {
35
+ "types": "./dist/index.d.ts",
36
+ "import": "./dist/index.js",
37
+ "default": "./dist/index.js"
38
+ }
39
+ },
40
+ "files": [
41
+ "dist",
42
+ "README.md",
43
+ "LICENSE"
44
+ ],
45
+ "scripts": {
46
+ "build": "tsc",
47
+ "build:phone-agent": "cd phone-agent && npm run build:all",
48
+ "build:all": "npm run build && npm run build:phone-agent",
49
+ "build:watch": "tsc --watch",
50
+ "type-check": "tsc --noEmit",
51
+ "lint": "eslint src --ext .ts",
52
+ "lint:fix": "eslint src --ext .ts --fix",
53
+ "format": "prettier --write \"src/**/*.ts\"",
54
+ "format:check": "prettier --check \"src/**/*.ts\"",
55
+ "test": "jest",
56
+ "test:coverage": "jest --coverage",
57
+ "test:watch": "jest --watch",
58
+ "clean": "rimraf dist && cd phone-agent && rimraf dist",
59
+ "prepublishOnly": "npm run clean && npm run build && npm run type-check",
60
+ "prepare": "husky install || echo 'Husky not available'"
61
+ },
62
+ "dependencies": {
63
+ "cbor": "^9.0.0",
64
+ "dotenv": "^16.4.5",
65
+ "ofetch": "^1.4.1",
66
+ "tslib": "^2.8.1",
67
+ "uuid": "^11.1.0"
68
+ },
69
+ "optionalDependencies": {
70
+ "cbor-x": "^1.5.4",
71
+ "node-fetch": "^3.3.2",
72
+ "ws": "^8.14.2"
73
+ },
74
+ "devDependencies": {
75
+ "@types/jest": "^30.0.0",
76
+ "@types/node": "^24.0.13",
77
+ "@types/ws": "^8.18.1",
78
+ "@typescript-eslint/eslint-plugin": "^8.0.0",
79
+ "@typescript-eslint/parser": "^8.0.0",
80
+ "eslint": "^9.0.0",
81
+ "eslint-config-prettier": "^9.1.0",
82
+ "eslint-plugin-prettier": "^5.2.0",
83
+ "jest": "^30.0.4",
84
+ "prettier": "^3.3.0",
85
+ "rimraf": "^6.0.0",
86
+ "ts-jest": "^29.4.0",
87
+ "typescript": "^5.8.3"
88
+ },
89
+ "engines": {
90
+ "node": ">=14.0.0"
91
+ },
92
+ "publishConfig": {
93
+ "access": "public"
94
+ }
95
+ }