capacitor-mobile-claw 1.5.4 → 1.5.6

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/README.md +32 -15
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -35,43 +35,60 @@ git clone https://github.com/rogelioRuiz/capacitor-mobile-claw.git
35
35
  cd capacitor-mobile-claw
36
36
 
37
37
  # Install deps and build the plugin
38
- npm install
39
- npm run build
38
+ npm install && npm run build
40
39
 
41
- # Set up the reference app (postinstall auto-copies Node.js worker)
40
+ # Set up the reference app
42
41
  cd examples/reference-app
43
42
  npm install
44
43
 
45
- # Build web app + sync native project
46
- npm run cap:build
44
+ # Add Android platform + apply patches (first time only, idempotent)
45
+ npm run setup:android
47
46
 
48
- # First time onlyadd platform
49
- npx cap add android
47
+ # Build APK from CLI no IDE needed
48
+ npm run build:android
50
49
 
51
- # Open in Android Studio — build & run
52
- npx cap open android
50
+ # Install on connected device
51
+ adb install -r android/app/build/outputs/apk/debug/app-debug.apk
53
52
  ```
54
53
 
54
+ > **Requires**: JDK 21+, Android SDK. Set `ANDROID_HOME` and `JAVA_HOME` if not auto-detected.
55
+
55
56
  ### Run on iOS
56
57
 
57
58
  ```bash
58
59
  git clone https://github.com/rogelioRuiz/capacitor-mobile-claw.git
59
60
  cd capacitor-mobile-claw
60
61
 
61
- npm install
62
- npm run build
62
+ npm install && npm run build
63
63
 
64
64
  cd examples/reference-app
65
65
  npm install
66
- npm run cap:build
67
66
 
68
- # First time only — add platform
69
- npx cap add ios
67
+ # Add iOS platform + sync (first time only, idempotent)
68
+ npm run setup:ios
70
69
 
71
- # Open in Xcodebuild & run
70
+ # Build for Simulator from CLI no Xcode interaction needed
71
+ npm run build:ios
72
+
73
+ # Or open in Xcode for device builds
72
74
  npx cap open ios
73
75
  ```
74
76
 
77
+ > **Requires**: Xcode 15+ with iOS SDK. The SQLite SPM patch is applied automatically on `npm install`.
78
+
79
+ ### Running Tests
80
+
81
+ ```bash
82
+ # Android E2E (100 tests, requires ADB device)
83
+ npm run test:android
84
+
85
+ # iOS E2E (104 tests, requires booted Simulator)
86
+ npm run test:ios
87
+
88
+ # Full suite: node + Android + iOS (skips unavailable platforms)
89
+ npm run test:full
90
+ ```
91
+
75
92
  Once the app launches, enter your Anthropic API key in settings and start chatting. The agent can read/write files, run code, use git, and call any registered MCP device tools — all on-device.
76
93
 
77
94
  ## How It Works
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "capacitor-mobile-claw",
3
- "version": "1.5.4",
3
+ "version": "1.5.6",
4
4
  "description": "On-device AI agent engine for Capacitor apps — embedded Node.js worker with LLM, file tools, code execution, git, and extensible MCP server",
5
5
  "main": "dist/esm/index.js",
6
6
  "types": "dist/esm/index.d.ts",