Tapilot is MIT-licensed. Contributions are welcome under the same license. Third-party components retain their own licenses.
Use Node.js 24 (minimum 22.19), pnpm 12.4.1, JDK 17, Android SDK platform 35
and Build Tools 35.0.0. The build host must provide Bash, Python 3, curl, tar,
ar, zip, unzip and OpenSSL. macOS and Linux are supported build hosts.
Set JAVA_HOME and ANDROID_HOME to your local installations.
pnpm install --frozen-lockfile
npm ci --prefix plugins/tapilot
node plugins/tapilot/scripts/patch-midscene-zod.mjs plugins/tapilot
npm ci --prefix tests/midscene
node plugins/tapilot/scripts/patch-midscene-zod.mjs tests/midscene
pnpm check:quick
pnpm build:androidThe plugin is an independently installable npm project with its own lockfile.
The root pnpm workspace owns the Android adapter; the Node deployment bundle
has an isolated production dependency lockfile. The standalone Midscene E2E package has its own npm lockfile. All four dependency trees are checked by CI. Build and verify the standalone CLI tarball with pnpm check:cli-package.
It installs the frozen tree in staging, applies the Zod compatibility patch,
bundles production dependencies (including the portable Sharp WASM fallback),
then installs the artifact with scripts disabled in a new consumer project.
Both source and consumer audits must pass, as must all plugin tests and a forced
WASM image conversion. The artifact path is recorded in
build/cli-package-validation/latest.json. Plain npm pack/npm publish from
the plugin source is rejected: root overrides are not inherited by consumers.
This verifies a local artifact; it neither publishes to npm nor approves binary
redistribution. The third-party materials gate still applies.
Midscene 1.15 still uses Zod 3 schema internals. The pinned Zod 4 package supplies
the compatible API at zod/v3; the install step rewrites only the reviewed
Midscene versions to use it. Run the explicit compatibility commands above even
when npm disables install scripts. New Midscene versions require reviewing this
patch and passing the real SDK action regression before updating the version gate.
| Command | Purpose |
|---|---|
pnpm build / pnpm build:android / pnpm dev |
Build a local non-debuggable Beta APK; accept this machine's signing certificate |
pnpm check:quick |
Generated theme, plugin UI freshness and tests, E2E definitions/type checks and adapter tests |
pnpm check / pnpm test |
Quick checks, Node bundle and smoke tests, conversation overhead benchmark, script tests, Kotlin tests, full Android Lint, Beta build and APK integrity checks |
pnpm check:e2e |
Type-check and validate Midscene YAML cases; no device or model needed |
pnpm test:e2e / pnpm test:e2e:live |
Run visual smoke / explicitly opted-in native task E2E; see E2E guide |
pnpm check:plugin |
Plugin UI freshness and all plugin tests, no Android SDK needed |
pnpm build:beta:distribution |
Maintainer Beta build, enforcing the existing certificate and binary redistribution review |
pnpm build:release |
Production build requiring explicit signing credentials and completed binary redistribution review |
Local builds never bypass runtime integrity checks. Their APK is at
app/build/outputs/apk/beta/app-beta.apk. A local signing certificate cannot
update an app signed by someone else's key; use a separate test device/profile
rather than uninstalling an existing app with valuable data.
Checks do not discover or execute private scripts from a developer's home directory. If you use a local resource scheduler, invoke it explicitly around these commands. Physical-device acceptance is still required for microphone access, gestures, foreground services, wireless pairing and upgrade behavior.
The hosted verification and APK smoke jobs reuse Gradle dependencies and task outputs, npm downloads, and checksum-verified Termux packages. Gradle validates task inputs before reusing outputs; runtime generation, APK installation, and all live Midscene cases still run. Main pushes and trusted manual runs populate the Gradle cache; pull requests only read it. A first run starts cold, so compare repeat runs when measuring CI speed.
To reproduce the Checks workflow locally after configuring the toolchain above,
run these commands in order (stop if any command fails):
pnpm install --frozen-lockfile
npm ci --prefix plugins/tapilot
node plugins/tapilot/scripts/patch-midscene-zod.mjs plugins/tapilot
npm ci --prefix tests/midscene
node plugins/tapilot/scripts/patch-midscene-zod.mjs tests/midscene
pnpm check:security
pnpm check
mkdir -p build/performance
node scripts/benchmark-conversation.mjs > build/performance/conversation.jsonIf actionlint is installed, run actionlint to validate all workflow files.
The custom tapilot-android runner label is declared in .github/actionlint.yaml;
that declaration does not provision a runner. The performance benchmark above is
model-free. A local pass does not establish a Linux-hosted CI pass, a production
signing check, or physical-device E2E acceptance.
Pull requests run .github/workflows/check.yml with development signing only.
Pull-request APK checks do not upload binaries. Main pushes and trusted manual
runs additionally build an isolated debug verification APK once and transfer it
through a one-day Actions artifact to the test runners. This CI handoff is limited
to lifeos.md.tapilot.e2everify; its APK digest and source revision must match on
every runner. It does not authorize a Beta/Release upload or establish third-party
redistribution readiness.
The tag-triggered or manually dispatched release-check.yml uses the release
environment; configure its reviewers and secrets before production builds. It
validates source-review receipts and distribution readiness, then uploads the
signed APK and evidence as an Actions artifact. It does not publish a public
release; see deployment.
Production builds require:
TAPILOT_SIGNING_STORE: private keystore path.TAPILOT_SIGNING_STORE_PASSWORD,TAPILOT_SIGNING_KEY_ALIAS,TAPILOT_SIGNING_KEY_PASSWORD.TAPILOT_SIGNING_CERT_SHA256: independently recorded expected certificate digest.
The release workflow also needs TAPILOT_SIGNING_STORE_BASE64 to materialize a
temporary keystore. Never commit these values. Beta distribution deliberately
pins the historical Beta certificate; production has no default signing identity.
Shared device and conversation contract fixtures live in tests/fixtures/.
Android tests and the Node runtime bundle read the same files.
Keep behavior changes separate from directory moves. Add regression coverage for cancellation, serialization and provider boundaries. Update both README locales when behavior changes. Historical acceptance reports are dated evidence, not current setup instructions. Do not add private prompts, credentials or user data to acceptance artifacts. See SECURITY.md for vulnerability reporting.
Read third-party redistribution and privacy before distributing APKs or changing data flows.