# smix-sdk

smix-sdk — user-facing public surface for the smix Rust library. App + ergonomic selector helpers + matchers. Wraps SimctlDriver + SimctlClient + HttpRunnerClient. v3.1 c11.

Part of the [smix](https://github.com/goliajp/smix) workspace. See the
top-level [README.md](../../README.md) for project overview, and
[ARCHITECTURE.md](../../ARCHITECTURE.md) for the stone-vs-cement layout.

## Running `insight_parity` (real-sim e2e)

This crate ships an `insight_parity` example used as the v3.4 business
re-verification gate — 10 iOS flows pulled from v1.9's TS contract
test, against the qualcomm/insight RN app.

Prerequisites you set up (smix 不负责 build user app):

1. Booted simulator with the insight app installed.
2. `SmixRunnerCore` Swift binary built + launched on the sim
   (`swift-bridge/`).
3. Metro bundler running for the insight app (optional if you ship a
   pre-bundled JS).
4. `SMIX_UDID` env var set.

Run via the workspace helper:

```bash
./scripts/insight-parity.sh
```

Or directly:

```bash
SMIX_UDID=<UDID> cargo run --release --example insight_parity --package smix-sdk
```

Expected: 10/10 flows pass.  Failure prints AI-readable
`ExpectationFailure::to_prompt()` blocks suitable for paste-into-agent
follow-up.

## License

Dual-licensed under either Apache License 2.0 or MIT, at your option.
