Skip to content

Commit d4146c7

Browse files
thymikeeclaude
andauthored
feat: add Android test IME helper for deterministic text entry (#1198) (#1201)
* feat: add Android test IME helper for deterministic text entry (#1198) Ships a headless InputMethodService (android-ime-helper) as a third Android helper APK, replacing the visible system keyboard during automated sessions. Renders zero accessibility nodes and accepts Unicode/CJK/emoji text over a base64-encoded broadcast channel, fixing both the settle-diff IME-chrome flood and the ASCII-only adb-shell text entry limit in one structural fix. - android-ime-helper/: InputMethodService + build/package scripts on the existing helper-APK toolchain (javac+d8+aapt2+zipalign+apksigner). - src/platforms/android/ime-helper.ts, ime-lifecycle.ts: install/version lifecycle (shared with the other two helpers via the new helper-package-install.ts), activation on session open, and on-device restore-hygiene (previous IME persisted to a device settings key so any daemon/state-dir can recover it; restored on close, daemon teardown, and daemon startup for orphans left by a crashed run). - input-actions.ts: fill/type route through the helper's broadcast channel when active, unicode-safe; unchanged ASCII-shell fallback otherwise. - doctor: new android-test-ime check flags a stuck helper IME with a copy-pasteable `adb shell ime set` remediation command. - Gating: default-on for emulators, opt-in via `open --test-ime` on real devices. - Dead-weight: rewrote the manual ADBKeyBoard workaround doc, dropped the now-provably-live skillgym non-ASCII eval case, updated the ASCII fallback's error message to point at the helper instead of dead-ending. 🤖 Generated with Claude Code Co-Authored-By: Claude <[email protected]> * fix(#1201 review): permission-gate the IME receiver, fix CI, add opt-out Addresses the independent review's blockers and should-fixes. SECURITY (blocker 1): the text-injection receiver was RECEIVER_EXPORTED with no gate — any co-installed app could inject text into the focused field while the test IME was active. Fixed by requiring the WRITE_SECURE_SETTINGS sender permission on the (in-process, dynamically-registered) receiver: adb shell holds it, third-party apps cannot. The reviewer's suggested exported=false + explicit-component approach was tried first but empirically breaks delivery on API 36 (adb shell cannot reach a non-exported receiver there) — documented in the helper README. Live-verified: a purpose-built rogue APK's broadcasts (implicit and package-scoped, no permission) are silently dropped, field unchanged; adb shell's bare broadcast still injects. Added ime-helper-security.test.ts asserting the permission gate and that no permissionless exported registration returns. CI (blocker 2): (a) added `testIme` to integration-progress-model flag buckets (Integration Tests was red on the unclassified flag). (b) mocked resolveAndroidImeHelperArtifact in session-doctor-android / ime-lifecycle / input-actions-test-ime tests so they no longer depend on android-ime-helper/dist existing on disk (Coverage was red on a fresh checkout); verified by running them with dist removed. Should-fixes: added `--no-test-ime` to opt out on emulators (tri-state gating, parser-tested); PR body's "byte-identical" claim corrected to size/CRC-match. 🤖 Generated with Claude Code Co-Authored-By: Claude <[email protected]> * docs(#1201): pin the API-36 exported-receiver constraint in a comment The RECEIVER_EXPORTED flag cannot express why it must stay exported. Add a one-line note so a future hardening pass doesn't switch to RECEIVER_NOT_EXPORTED and silently break the CLI (adb shell can't deliver explicit broadcasts to non-exported components on API 36+; WRITE_SECURE_SETTINGS is the actual gate). 🤖 Generated with Claude Code Co-Authored-By: Claude <[email protected]> * fix(#1201 review): harden IME restore lifecycle (blockers 1 & 2) Blocker 1 — a failed restore no longer deletes the recovery value. restore now reads back default_input_method after `ime set` and only clears the persisted previous-IME record on a confirmed-successful restore; a failed set keeps the value so a later retry / startup recovery / doctor remediation can still un-strand the user off the helper IME. Blocker 2 — startup orphan-recovery no longer overwrites/races user state. It only restores when the device's CURRENT default IME is still our helper (so a user who legitimately switched away is left alone), and skips any device a live session in this process owns (the fire-and-forget startup vs. concurrent `open` race — activate now marks the device active BEFORE the `ime set`, so any recovery pass that could observe the helper active also observes the flag and skips). Never persists the helper itself as the previous IME. activate also verifies its own switch via read-back. Exported ANDROID_IME_HELPER_SERVICE_COMPONENT so restore compares the active IME without reading the packaged artifact from disk. Tests: failed-restore keeps the value (+ later recovery succeeds), startup no-op when current != helper, startup skips a live-owned device. 🤖 Generated with Claude Code Co-Authored-By: Claude <[email protected]> * chore(#1201): delete unused ACTION_ENTER path, baseline test-only export seams Rebased onto main (#1202 production-unused-exports gate). Two follow-ups: - Deleted the unused ACTION_ENTER broadcast end-to-end (TS sendAndroidImeHelperEnter + its test, Java handler, README): nothing routes through it — `keyboard enter` uses the keyevent ENTER path — so the new production-exports gate flagged it as dead production code. Removed rather than grandfathered. - Added the three legitimate test-only seams (resetAndroidImeHelperInstallCache, resetAndroidTestImeActivationCacheForTests, setAndroidTestImeActiveForTests) to fallow-baselines/production-unused-exports.json, matching how the sibling helper reset functions (resetAndroidMultiTouchHelperInstallCache, ...) are already grandfathered there. 🤖 Generated with Claude Code Co-Authored-By: Claude <[email protected]> * fix(#1201): stop daemon-startup adb spawn on non-Android hosts (macOS Smoke) Root cause of the red macOS Smoke shard (proven, not hand-waved): the fire-and-forget restoreOrphanedAndroidTestImeOnDaemonStartup ran `adb devices` at EVERY daemon startup, on every platform. GitHub macOS runners ship the Android SDK, so this cold-started the adb server mid-replay and destabilized the macOS System Settings replay timing — the failed job's cleanup shows "Terminate orphan process: pid (N) (adb)"; main's green runs spawn no adb. Fix: gate the startup orphan scan behind a host-side marker written in the daemon state dir when a session activates the test IME (mirrors the managed-web-browser orphan-cleanup `installed` gate). A host that never uses the Android test IME — the macOS CI runner included — never writes the marker and so never spawns adb at startup. The marker is cleared once nothing is left stuck. Adds SessionStore.resolveStateDir(); tests: startup recovery does not scan adb when no marker exists (+ marker cleared after a clean scan). 🤖 Generated with Claude Code Co-Authored-By: Claude <[email protected]> * chore(#1201): suppress fallow class-member false-positive on state-dir accessor CI's Fallow audit flags SessionStore.resolveDaemonStateDir as an unused class member, but it is called via sessionStore.resolveDaemonStateDir() in session-open.ts — fallow's class-member tracer just doesn't resolve a method call sited inside a call argument. Renamed for clarity (avoids the collision with config.ts's free resolveStateDir) and added the localized fallow-ignore-next-line unused-class-member suppression. 🤖 Generated with Claude Code Co-Authored-By: Claude <[email protected]> * fix(#1201 review): durable persist before switch + device-scoped recovery markers Addresses devin-ai-integration's two P1 restore-safety blockers on 19cbce7. P1.1 — durably persist the restore target BEFORE the global IME switch. writePersistedPreviousIme now checks the `settings put` exit code AND reads the value back, returning a boolean. activate persists first and, if it cannot be persisted, fails open to the existing input path WITHOUT switching — a rejected `settings put` can no longer strand the user on the helper with no restore target. Regression test added. P1.2 — close the marker crash/offline blind spot. Recovery intent is now recorded per device, BEFORE the switch (ordering: durable record -> marker -> ime set), eliminating the post-switch/pre-marker crash window. Markers are device-scoped and each is retained until that device is actually observed clean: an offline/disconnected-but-stuck device keeps its marker and is recovered on reconnect instead of being cleared because the current `adb devices` scan saw no set-failed. Close-time restore clears only that device's marker (stateDir plumbed through teardown/close). Tests cover the persist-failure, post-switch/pre-marker crash, offline-then-reconnect, live-session-owned, and user-switched-away cases. 🤖 Generated with Claude Code Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: Claude <[email protected]>
1 parent ee117c4 commit d4146c7

38 files changed

Lines changed: 2362 additions & 206 deletions

‎.github/workflows/android.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ jobs:
5555
run: |
5656
pnpm package:android-snapshot-helper:npm
5757
pnpm package:android-multitouch-helper:npm
58+
pnpm package:android-ime-helper:npm
5859
5960
- name: Run Android smoke checks
6061
uses: reactivecircus/android-emulator-runner@b530d96654c385303d652368551fb075bc2f0b6b # v2.35.0

‎.github/workflows/perf-nightly.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ jobs:
102102
run: |
103103
pnpm package:android-snapshot-helper:npm
104104
pnpm package:android-multitouch-helper:npm
105+
pnpm package:android-ime-helper:npm
105106
106107
- name: Run Android command perf benchmark
107108
uses: reactivecircus/android-emulator-runner@b530d96654c385303d652368551fb075bc2f0b6b # v2.35.0

‎.gitignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,5 @@ android-snapshot-helper/build/
3838
android-snapshot-helper/dist/
3939
android-multitouch-helper/build/
4040
android-multitouch-helper/dist/
41+
android-ime-helper/build/
42+
android-ime-helper/dist/
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<manifest
2+
xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="com.callstack.agentdevice.imehelper">
4+
<uses-sdk android:minSdkVersion="23" android:targetSdkVersion="36" />
5+
6+
<application
7+
android:debuggable="false"
8+
android:label="Agent Device Test IME"
9+
android:testOnly="true"
10+
android:theme="@android:style/Theme.NoDisplay">
11+
12+
<service
13+
android:name=".TestInputMethodService"
14+
android:label="Agent Device Test IME"
15+
android:permission="android.permission.BIND_INPUT_METHOD"
16+
android:exported="true"
17+
android:directBootAware="true">
18+
<intent-filter>
19+
<action android:name="android.view.InputMethod" />
20+
</intent-filter>
21+
<meta-data
22+
android:name="android.view.im"
23+
android:resource="@xml/method" />
24+
</service>
25+
</application>
26+
</manifest>

‎android-ime-helper/README.md‎

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
# Android Test IME Helper
2+
3+
A minimal headless `InputMethodService` used as a deterministic, Unicode-safe text-entry backend
4+
for local Android sessions. `onEvaluateInputViewShown()` returns `false` and
5+
`onCreateInputView()` returns `null`, so activating this IME contributes zero accessibility nodes
6+
to the UI tree -- no per-key `[group]+[text]` chrome, no clipboard/translate/voice-dictation
7+
buttons -- unlike the real system keyboard (Gboard et al.), which pulls its visible keyboard into
8+
the UIAutomator tree the moment a field is focused.
9+
10+
Text is injected through a dynamically-registered `BroadcastReceiver` carrying base64-encoded
11+
UTF-8 Intent extras, the same `payloadBase64` convention `android-multitouch-helper` uses for the
12+
same reason: `adb shell` re-tokenizes raw spaces, and base64 sidesteps that entirely. This makes
13+
Unicode/CJK/emoji round-trip exactly, unlike `adb shell input text`, which is ASCII-only.
14+
15+
The helper is a service, not an instrumentation, so it cannot use `android-snapshot-helper`'s and
16+
`android-multitouch-helper`'s `am instrument` invocation shape. It is installed and its version
17+
verified the same way (bundled npm-packaged dist + version-keyed manifest.json), but invoked with
18+
`adb shell ime enable`/`ime set` (lifecycle) and `adb shell am broadcast` (text entry) instead.
19+
20+
## Build
21+
22+
```sh
23+
VERSION="$(node -p 'require("./package.json").version')"
24+
sh ./scripts/build-android-ime-helper.sh "$VERSION" .tmp/android-ime-helper
25+
```
26+
27+
## Run
28+
29+
```sh
30+
PACKAGE="com.callstack.agentdevice.imehelper"
31+
SERVICE="$PACKAGE/.TestInputMethodService"
32+
VERSION="$(node -p 'require("./package.json").version')"
33+
34+
adb install -r -t ".tmp/android-ime-helper/agent-device-android-ime-helper-$VERSION.apk"
35+
36+
# Record the current default IME before switching, so it can be restored exactly.
37+
PREVIOUS_IME="$(adb shell settings get secure default_input_method)"
38+
39+
adb shell ime enable "$SERVICE"
40+
adb shell ime set "$SERVICE"
41+
42+
# Focus a text field, then inject Unicode-safe text via base64 extras. adb shell holds
43+
# WRITE_SECURE_SETTINGS, which the receiver requires; a third-party app cannot.
44+
TEXT_B64="$(printf '%s' '你好世界' | base64)"
45+
adb shell am broadcast -p "$PACKAGE" \
46+
-a com.callstack.agentdevice.imehelper.ACTION_INPUT_TEXT_B64 \
47+
--es text "$TEXT_B64"
48+
49+
# Clear the focused field.
50+
adb shell am broadcast -p "$PACKAGE" -a com.callstack.agentdevice.imehelper.ACTION_CLEAR_TEXT
51+
52+
# Restore the previous IME (critical -- do not skip on a real device).
53+
adb shell ime set "$PREVIOUS_IME"
54+
```
55+
56+
## Broadcast actions
57+
58+
The receiver is registered in the running IME process (so `getCurrentInputConnection()` is live)
59+
but requires the **`android.permission.WRITE_SECURE_SETTINGS`** sender permission. adb shell
60+
(uid 2000) holds that signature|privileged permission, but a co-installed third-party app cannot
61+
be granted it, so it cannot deliver broadcasts to the receiver — the text-injection surface is
62+
closed to other apps while the IME is active. (An earlier design used a manifest receiver with
63+
`android:exported="false"` + explicit-component targeting, but on API 36 adb shell cannot deliver
64+
to a non-exported component, which broke the CLI path; the permission gate is what actually works.)
65+
Every extra is still treated as untrusted input: bounded length, defensive base64 decoding, and the
66+
whole handler is wrapped so a malformed broadcast can never crash the IME process and strand a
67+
field without an active input method.
68+
69+
- `ACTION_INPUT_TEXT_B64` (`--es text <base64 utf-8>`) -- commit decoded text at the cursor.
70+
- `ACTION_INPUT_TEXT` (`--es text <string>`) -- commit text directly (subject to `adb shell`'s own
71+
tokenization; prefer the base64 variant for anything with spaces or non-ASCII).
72+
- `ACTION_CLEAR_TEXT` -- select-all and commit an empty string.
73+
74+
An optional `--es protocol android-ime-helper-v1` extra is a defensive sanity check (not a
75+
security boundary): if present and it doesn't match, the broadcast is dropped and logged.
76+
77+
## Restore hygiene
78+
79+
Switching the active IME is machine-global, not session-scoped. A crashed daemon that switched the
80+
IME and never restored it leaves the device with an invisible keyboard -- on a real device, this
81+
means the user cannot type anywhere until they manually reset their IME in Settings. The TS-side
82+
lifecycle (`src/platforms/android/ime-lifecycle.ts`) persists the previously active IME to disk
83+
before switching, restores it on session close/teardown, and best-effort restores any orphaned
84+
switch left behind by a previous crashed daemon on startup.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<input-method xmlns:android="http://schemas.android.com/apk/res/android" />
Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
package com.callstack.agentdevice.imehelper;
2+
3+
import android.Manifest;
4+
import android.content.BroadcastReceiver;
5+
import android.content.Context;
6+
import android.content.Intent;
7+
import android.content.IntentFilter;
8+
import android.inputmethodservice.InputMethodService;
9+
import android.os.Build;
10+
import android.util.Base64;
11+
import android.util.Log;
12+
import android.view.View;
13+
import android.view.inputmethod.InputConnection;
14+
import java.nio.charset.StandardCharsets;
15+
16+
/**
17+
* Minimal headless test IME for agent-device: renders no input view, injects text over a broadcast
18+
* channel gated by a broadcastPermission only adb shell / privileged callers hold. Treats every
19+
* broadcast extra as untrusted input.
20+
*/
21+
public class TestInputMethodService extends InputMethodService {
22+
private static final String TAG = "AgentDeviceTestIME";
23+
private static final String PROTOCOL = "android-ime-helper-v1";
24+
25+
public static final String ACTION_INPUT_TEXT =
26+
"com.callstack.agentdevice.imehelper.ACTION_INPUT_TEXT";
27+
public static final String ACTION_INPUT_TEXT_B64 =
28+
"com.callstack.agentdevice.imehelper.ACTION_INPUT_TEXT_B64";
29+
public static final String ACTION_CLEAR_TEXT =
30+
"com.callstack.agentdevice.imehelper.ACTION_CLEAR_TEXT";
31+
public static final String EXTRA_TEXT = "text";
32+
public static final String EXTRA_PROTOCOL = "protocol";
33+
34+
// Senders must hold this to reach the receiver. adb shell (uid 2000) holds it — a co-installed
35+
// third-party app cannot be granted a signature|privileged permission, so it cannot inject text.
36+
private static final String REQUIRED_SENDER_PERMISSION = Manifest.permission.WRITE_SECURE_SETTINGS;
37+
38+
// Upper bound on a single broadcast payload.
39+
private static final int MAX_TEXT_LENGTH = 32_000;
40+
41+
private BroadcastReceiver receiver;
42+
43+
@Override
44+
public void onCreate() {
45+
super.onCreate();
46+
receiver =
47+
new BroadcastReceiver() {
48+
@Override
49+
public void onReceive(Context context, Intent intent) {
50+
try {
51+
handleAction(intent);
52+
} catch (Throwable error) {
53+
// Never let untrusted extras crash the IME process.
54+
Log.w(TAG, "handleAction failed for " + intent.getAction(), error);
55+
}
56+
}
57+
};
58+
IntentFilter filter = new IntentFilter();
59+
filter.addAction(ACTION_INPUT_TEXT);
60+
filter.addAction(ACTION_INPUT_TEXT_B64);
61+
filter.addAction(ACTION_CLEAR_TEXT);
62+
// Register the receiver in the running IME process (so getCurrentInputConnection() is live)
63+
// but require REQUIRED_SENDER_PERMISSION of every sender. On API 33+ the receiver must also be
64+
// flagged exported to accept out-of-app broadcasts; the permission is the actual trust gate.
65+
if (Build.VERSION.SDK_INT >= 33) {
66+
// exported: shell cannot deliver explicit broadcasts to non-exported components on API 36+;
67+
// do not switch to RECEIVER_NOT_EXPORTED — WRITE_SECURE_SETTINGS is what keeps other apps out.
68+
registerReceiver(
69+
receiver, filter, REQUIRED_SENDER_PERMISSION, null, Context.RECEIVER_EXPORTED);
70+
} else {
71+
registerReceiver(receiver, filter, REQUIRED_SENDER_PERMISSION, null);
72+
}
73+
Log.i(TAG, "onCreate: permission-gated receiver registered");
74+
}
75+
76+
@Override
77+
public void onDestroy() {
78+
if (receiver != null) {
79+
unregisterReceiver(receiver);
80+
receiver = null;
81+
}
82+
super.onDestroy();
83+
}
84+
85+
private void handleAction(Intent intent) {
86+
String action = intent.getAction();
87+
if (action == null) return;
88+
if (!isKnownAction(action)) return;
89+
if (!isProtocolAcceptable(intent)) {
90+
Log.w(TAG, "handleAction: rejected " + action + ", protocol mismatch");
91+
return;
92+
}
93+
94+
InputConnection ic = getCurrentInputConnection();
95+
if (ic == null) {
96+
Log.w(TAG, "handleAction: no current input connection for " + action);
97+
return;
98+
}
99+
100+
if (ACTION_INPUT_TEXT.equals(action)) {
101+
commitValidatedText(ic, intent.getStringExtra(EXTRA_TEXT));
102+
} else if (ACTION_INPUT_TEXT_B64.equals(action)) {
103+
commitValidatedText(ic, decodeBase64Text(intent.getStringExtra(EXTRA_TEXT)));
104+
} else if (ACTION_CLEAR_TEXT.equals(action)) {
105+
clearText(ic);
106+
}
107+
}
108+
109+
private static boolean isKnownAction(String action) {
110+
return ACTION_INPUT_TEXT.equals(action)
111+
|| ACTION_INPUT_TEXT_B64.equals(action)
112+
|| ACTION_CLEAR_TEXT.equals(action);
113+
}
114+
115+
// Optional sanity check, not a security boundary; missing extra is accepted.
116+
private static boolean isProtocolAcceptable(Intent intent) {
117+
if (!intent.hasExtra(EXTRA_PROTOCOL)) return true;
118+
return PROTOCOL.equals(intent.getStringExtra(EXTRA_PROTOCOL));
119+
}
120+
121+
private static String decodeBase64Text(String encoded) {
122+
if (encoded == null || encoded.isEmpty()) return null;
123+
if (encoded.length() > MAX_TEXT_LENGTH * 2) {
124+
Log.w(TAG, "decodeBase64Text: payload too large, dropping");
125+
return null;
126+
}
127+
try {
128+
byte[] decoded = Base64.decode(encoded, Base64.DEFAULT);
129+
return new String(decoded, StandardCharsets.UTF_8);
130+
} catch (IllegalArgumentException error) {
131+
Log.w(TAG, "decodeBase64Text: malformed base64 payload", error);
132+
return null;
133+
}
134+
}
135+
136+
private void commitValidatedText(InputConnection ic, String text) {
137+
if (text == null) return;
138+
String bounded = text.length() > MAX_TEXT_LENGTH ? text.substring(0, MAX_TEXT_LENGTH) : text;
139+
ic.commitText(bounded, 1);
140+
Log.i(TAG, "commitText length=" + bounded.length());
141+
}
142+
143+
private void clearText(InputConnection ic) {
144+
ic.beginBatchEdit();
145+
ic.performContextMenuAction(android.R.id.selectAll);
146+
ic.commitText("", 1);
147+
ic.endBatchEdit();
148+
Log.i(TAG, "clearText");
149+
}
150+
151+
@Override
152+
public boolean onEvaluateInputViewShown() {
153+
return false;
154+
}
155+
156+
@Override
157+
public boolean onEvaluateFullscreenMode() {
158+
return false;
159+
}
160+
161+
@Override
162+
public View onCreateInputView() {
163+
return null;
164+
}
165+
}

‎fallow-baselines/production-unused-exports.json‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
"src/core/platform-plugin/plugin.ts:registeredPlatforms",
2323
"src/daemon/lease-context.ts:buildLeaseDiagnosticsContext",
2424
"src/kernel/device.ts:isPlatform",
25+
"src/platforms/android/ime-helper.ts:resetAndroidImeHelperInstallCache",
26+
"src/platforms/android/ime-lifecycle.ts:resetAndroidTestImeActivationCacheForTests",
27+
"src/platforms/android/ime-lifecycle.ts:setAndroidTestImeActiveForTests",
2528
"src/platforms/android/multitouch-helper.ts:resetAndroidMultiTouchHelperInstallCache",
2629
"src/platforms/android/snapshot-helper-install.ts:resetAndroidSnapshotHelperInstallCache",
2730
"src/platforms/android/snapshot-helper-session.ts:resetAndroidSnapshotHelperSessions",

‎package.json‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,10 @@
9595
"build:android-multitouch-helper": "sh ./scripts/build-android-multitouch-helper.sh $(node -p \"require('./package.json').version\") .tmp/android-multitouch-helper",
9696
"package:android-multitouch-helper": "sh ./scripts/package-android-multitouch-helper.sh $(node -p \"require('./package.json').version\") .tmp/android-multitouch-helper",
9797
"package:android-multitouch-helper:npm": "rm -rf android-multitouch-helper/dist && sh ./scripts/package-android-multitouch-helper.sh $(node -p \"require('./package.json').version\") android-multitouch-helper/dist",
98-
"build:android": "pnpm package:android-snapshot-helper:npm && pnpm package:android-multitouch-helper:npm",
98+
"build:android": "pnpm package:android-snapshot-helper:npm && pnpm package:android-multitouch-helper:npm && pnpm package:android-ime-helper:npm",
99+
"build:android-ime-helper": "sh ./scripts/build-android-ime-helper.sh $(node -p \"require('./package.json').version\") .tmp/android-ime-helper",
100+
"package:android-ime-helper": "sh ./scripts/package-android-ime-helper.sh $(node -p \"require('./package.json').version\") .tmp/android-ime-helper",
101+
"package:android-ime-helper:npm": "rm -rf android-ime-helper/dist && sh ./scripts/package-android-ime-helper.sh $(node -p \"require('./package.json').version\") android-ime-helper/dist",
99102
"build:macos-helper": "swift build -c release --package-path macos-helper",
100103
"build:all": "pnpm build:node && pnpm build:xcuitest",
101104
"ad": "node bin/agent-device.mjs",
@@ -125,7 +128,7 @@
125128
"check:tooling": "pnpm lint && pnpm typecheck && pnpm check:layering && pnpm check:production-exports && pnpm check:mcp-metadata && pnpm build",
126129
"check:unit": "pnpm test:unit && pnpm test:smoke",
127130
"check": "pnpm check:tooling && pnpm check:fallow && pnpm check:unit",
128-
"prepack": "pnpm check:mcp-metadata && pnpm build:all && pnpm package:apple-runner:npm && pnpm package:android-snapshot-helper:npm && pnpm package:android-multitouch-helper:npm",
131+
"prepack": "pnpm check:mcp-metadata && pnpm build:all && pnpm package:apple-runner:npm && pnpm package:android-snapshot-helper:npm && pnpm package:android-multitouch-helper:npm && pnpm package:android-ime-helper:npm",
129132
"typecheck": "tsc -p tsconfig.json",
130133
"test-app:install": "pnpm install --dir examples/test-app --ignore-workspace",
131134
"test-app:start": "pnpm --dir examples/test-app start",
@@ -167,6 +170,9 @@
167170
"android-multitouch-helper/dist",
168171
"!android-multitouch-helper/dist/*.idsig",
169172
"!android-multitouch-helper/README.md",
173+
"android-ime-helper/dist",
174+
"!android-ime-helper/dist/*.idsig",
175+
"!android-ime-helper/README.md",
170176
"src/platforms/linux/atspi-dump.py",
171177
"skills",
172178
"server.json",

0 commit comments

Comments
 (0)