All work on the mobile app goes through one launcher, bun exact.mjs <verb>, run from frontend/apps/mobile-exact. exact.mjs is a generated file that forwards to scripts/app-cli.mjs in the Exact checkout. bun exact.mjs help lists the verbs, bun exact.mjs <verb> --help prints one verb's flags, and --help all adds the rarer ones. The help texts live in Exact's scripts/help.mjs.
Exact verbs
Verb | What it does | Flags this project uses |
|---|---|---|
The web dev loop: serves the app and reloads on every save. Foreground until Ctrl-C |
| |
Builds the web app once into |
| |
Serves a built site as a static host would |
| |
Builds for an iOS simulator and installs it |
| |
Runs |
| |
Drives the app by hand with the driver operations, each one quoted argument |
| |
Builds if stale, runs all tests, checks each screen light and dark and at the largest text size, relaunches once. On iOS also measures scrolling |
| |
Builds for iPhone and prints an AppDrop link that installs it |
| |
The Contract compiler |
| |
The design in |
| |
| Prints a section of Exact's guides by heading | |
| Lists or writes a starter app. Not used after the first scaffold | |
After the Exact checkout moves: rewrites |
| |
| Refreshes the generated Cargo lock against the checkout | |
The authoring diary. |
|
test, agent and verify compile, build and serve their own copy. They need no contract build first and no dev server. On iOS they rebuild only when the native build is missing or older than its sources. Details of the drive operations are in Simulators and devices, and of the test steps in Contract UI tests and Verify and visual checks.
The app's own verb
app.json declares one command and one server setting:
"commands": { "server": ["bun", "tools/test-server/index.ts"] },
"server": { "database": false }bun exact.mjs server starts the combined local test server on 127.0.0.1:4790, which also starts the agents mock. Exact runs one server per app during test, verify and agent, and sends a test's request steps to the first loopback origin in app.ts (index.ts L1-L6). "database": false tells Exact the server keeps no database. See The local test server.
package.json scripts
From package.json:
Script | Runs | Purpose |
|---|---|---|
|
| The Bun unit tests, see Bun unit tests |
|
| A release web build |
|
| Serve that build |
The real vault suite has no script. Run it as REAL_VAULT=1 bun test ./.tests/real-vault/real-vault.test.ts, see Real vault compatibility suite.
Root scripts
The Seed repository's root package.json wraps the launcher so the app can be run from the root with pnpm:
Script | Runs |
|---|---|
|
|
|
|
|
|
|
|
|
|
scripts/mobile changes into the app directory, puts rustup's proxy directory on PATH ("Exact selects the Rust toolchain with cargo +<version>"), reads the pinned Bun version from the app's packageManager field with node -p, and then runs mise exec bun@1.4.2 -- bun "$@". With install as the first argument it performs the machine setup described in Setting up a machine. The pinned Bun is separate from the Bun 1.3.10 that the vault server uses in CI, see GitHub Actions workflow.
VS Code tasks
.vscode/tasks.json defines six tasks, all using the $exact-contract problem matcher:
Task label | Command |
|---|---|
contract: build this file |
|
contract: format this file |
|
app: web dev loop |
|
app: test on web (default test task) |
|
app: run on macOS |
|
app: run on an iOS simulator |
|
The macOS task is a leftover of the scaffold: app.json declares only the web and ios hosts, and a native verb adds its platform to app.json the first time it runs (AGENTS.md L15-L17). Do not run it unless adding macOS is intended.
Delivery commands
Building for TestFlight uses scripts in tools/, not a launcher verb: tools/testflight.sh, tools/testflight-verify.mjs, tools/install-clipper-ci.sh. They are covered in Building and uploading to TestFlight and The Clipper delivery worker.
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime