Quickstart
Developer preview. Node.js 22 or newer and pnpm are required (node:sqlite is used by the campaign store).
Mishu cannot call 911. It is not an emergency channel. A caller who describes an emergency is told to hang up and dial 911. See emergency.md.
#Clone and verify
git clone https://github.com/YOMOO-LLC/mishu.git
cd mishu
pnpm install
pnpm check
pnpm check runs, in order: pnpm lint:boundaries (core/contracts/adapter import rules), typecheck, unit tests, desktop build, bundle boundary lint, and Playwright Electron e2e in mock mode.
Leaving mock mode, the default phone line is a Mishu number (sign in, pick a plan, verify your phone, pick a number; from a terminal run mishu cloud numbers setup). Advanced: bring your own Twilio and model credentials instead. Do not commit .env. Example keys live in .env.example. Phone numbers in fixtures are +1555… only.
#Desktop app (mock mode)
The desktop host is apps/desktop. Mock telephony is the default (LIVE_PHONE_USE_MOCKS=1).
pnpm dev
That starts the Electron console without PSTN or paid APIs. Use it to answer a simulated inbound call, inspect the live transcript, and exercise AI / human takeover.
Real Twilio mode with your own account is the advanced, opt-in path (a Mishu number needs no Twilio account). Use the in-app wizard (see Twilio setup); a source checkout can also run the localhost Access Token helper (pnpm dev:twilio on 127.0.0.1:8787). Token issuance stays loopback-only. Do not point /token at the public internet.
#Headless reference host
apps/cloud is a single-tenant /v1 host with the same engine stores as desktop and mock ports as the P2 default. It is not a multi-tenant production cloud.
pnpm cloud
Equivalent: pnpm --filter @mishu/cloud start, or tsx apps/cloud/src/index.ts.
The process prints one JSON line { ready, baseUrl, tokenFile, ... } and writes the bearer token to tokenFile (mode 0600). It never prints the token. Optional flags: --data-dir <path>, --port <n>. Without --data-dir it uses an ephemeral temp directory and deletes it on stop.
#Contract kit
The same black-box suite in tests/contract/ must pass on every engine.
Against the reference host (starts apps/cloud, injects CONTRACT_BASE_URL / CONTRACT_TOKEN, then stops):
pnpm test:contract:cloud
Against the local desktop engine (Electron global setup when the env vars are unset):
pnpm test:contract
Against any engine that already speaks /v1:
CONTRACT_BASE_URL=http://127.0.0.1:8788/v1 \
CONTRACT_TOKEN="$(cat /path/to/tokenFile)" \
pnpm test:contract
CONTRACT_BASE_URL may be the /v1 root, the HTTP origin, or an /mcp URL; the client normalizes it to /v1. Do not paste real tokens into shells that get logged. Do not point the kit at production user data.
Port-level helpers (@mishu/adapters-mock/contract-tests) run inside unit tests of each adapter package; you do not need a separate command for those.
#CLI
The /v1 client is mishu. After pnpm install:
pnpm exec mishu --help
The desktop App must be running with MCP/API enabled.
#Official macOS packaging
Public desktop identity is Mishu / llc.yomoo.mishu. pnpm release locally ad-hoc signs and writes per-arch arm64 and x64 DMGs (not universal, not notarized). CI secret names (not values) are in macos-signing.md.
#What not to do
- Keep opening AI disclosure on unless you have a reason not to.
aiDisclosure: "on_ask"is allowed for the owner and Full control keys; California calls and the honesty floor can't be turned off. - Do not use real phone numbers, Account SIDs, or access tokens in docs, issues, or examples.
- Do not expect
apps/cloudto provision numbers or run Trust Hub. Bring your own account if you wire@mishu/adapters-cloud.