Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
appId: ${APP_ID}
---
# 登录前置:驱动真实登录 UI(identifier → 验证码),不依赖任何 dev-only 入口。
# 离线确定性来自仓内既有的登录 scenario harness:Metro 以
# EXPO_PUBLIC_LOGIN_SCENARIO=providers:email-only 启动后,__DEV__ 下真实
# CindyAuthClient 被注入 scenario fetch(packages/auth-client/fixtures/loginScenarios.ts),
# providers/discovery/request-code/verify-code 全部本地应答,验证码任意 6 位即通过。
- waitForAnimationToEnd:
timeout: 30000
- tapOn:
text: "^允许$"
optional: true
label: "Clear lingering Chinese microphone permission dialog"
- tapOn:
text: "^Allow$"
optional: true
label: "Clear lingering English microphone permission dialog"
- runFlow:
when:
visible:
id: "session.screen"
commands:
- tapOn:
id: "session.backButton"
- extendedWaitUntil:
visible:
id: "devices.screen"
timeout: 10000
- extendedWaitUntil:
visible:
id: "devices.screen"
timeout: 5000
optional: true
label: "Detect existing authenticated home"
- runFlow:
when:
notVisible:
id: "devices.screen"
commands:
- extendedWaitUntil:
visible:
id: "login.screen"
timeout: 30000
- extendedWaitUntil:
visible:
id: "login.identifierInput"
timeout: 15000
- tapOn:
id: "login.identifierInput"
- inputText: "[email protected]"
- tapOn:
id: "login.continueButton"
retryTapIfNoChange: true
# Email discovery is gated by the consent dialog and completes asynchronously.
- extendedWaitUntil:
visible:
id: "login.consentDialog"
timeout: 15000
- tapOn:
id: "login.consentAgree"
retryTapIfNoChange: true
# email-only has a single method, so the real login controller auto-requests
# the code after consent and renders the code input directly.
- extendedWaitUntil:
visible:
id: "login.codeInput"
timeout: 15000
- tapOn:
id: "login.codeInput"
- inputText: "123456"
- tapOn:
id: "login.verifyButton"
retryTapIfNoChange: true
- extendedWaitUntil:
visible:
id: "devices.screen"
timeout: 15000
- assertVisible:
id: "devices.title"