Files
cindy/package.json
Dash 544e452423 feat(mobile): pnpm mobile:sim:up starts the phone app in one command
Agents had to chain boot, Metro, rebuild and whoami themselves, and after
one step failed they kept reporting the phone app as unbuildable. The new
command picks a device without disturbing other tasks (several candidates
make it ask instead of guessing), boots it, reuses or starts this
worktree's Metro (on a free port when 8081 belongs to another task),
installs the matching native app, launches it, waits for the bundle,
brings it back to the foreground when the system pushed it behind after
boot, and checks identity. It reads the Metro log sim-start records and
keeps its own output in the system temp directory, never in the worktree.
It can be rerun after the device idles off, and always ends with one JSON
line giving a code and the next step.

The root AGENTS.md module table now routes "seeing changes on the phone"
to the Mobile docs; the command and the rule that only a fresh run's code
counts as evidence live in docs/dev-rules/mobile-development.md.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-04 16:53:33 +13:00

169 lines
11 KiB
JSON

{
"name": "cindy",
"private": true,
"description": "Cindy open-source client monorepo — desktop, mobile, and shared packages",
"license": "Apache-2.0",
"author": {
"name": "XD Inc.",
"email": "feedback@cindy.app"
},
"homepage": "https://cindy.app",
"repository": {
"type": "git",
"url": "git+https://github.com/makecindy/cindy.git"
},
"bugs": {
"url": "https://github.com/makecindy/cindy/issues"
},
"engines": {
"node": ">=22.12",
"pnpm": ">=10.7 <11"
},
"packageManager": "pnpm@10.33.2+sha512.a90faf6feeab71ad6c6e57f94e0fe1a12f5dcc22cd754db40ae9593eb6a3e0b6b12e3540218bb37ae083404b1f2ce6db2a4121e979829b4aff94b99f49da1cf8",
"pnpm": {
"onlyBuiltDependencies": [
"@parcel/watcher",
"better-sqlite3",
"electron",
"electron-winstaller",
"esbuild",
"node-pty",
"sharp"
],
"supportedArchitectures": {
"os": [
"win32",
"darwin",
"linux"
],
"cpu": [
"x64",
"arm64"
],
"libc": [
"glibc"
]
},
"overrides": {
"@electron/rebuild": "^4.0.3",
"protobufjs": "7.6.5",
"tar": "^7.5.21",
"brace-expansion@^5.0.0": "^5.0.8",
"@anthropic-ai/sdk": "0.93.0",
"js-yaml@^4.0.0": "^4.3.0",
"zod": "4.3.6",
"tmp": "^0.2.7",
"fast-uri": "^3.1.4",
"sharp": "^0.35.0",
"@esbuild-kit/core-utils>esbuild": "^0.25.0",
"builder-util-runtime": "^9.7.0"
},
"patchedDependencies": {
"harmonyos-sans-sc-webfont-splitted": "dependency-patches/harmonyos-sans-sc-webfont-splitted.patch",
"react-native@0.85.3": "dependency-patches/react-native@0.85.3.patch",
"react-native-uitextview@2.2.0": "dependency-patches/react-native-uitextview@2.2.0.patch",
"react-native-webview@13.16.1": "dependency-patches/react-native-webview@13.16.1.patch",
"expo-image-manipulator@57.0.14": "dependency-patches/expo-image-manipulator@57.0.14.patch",
"expo-paste-input@0.2.2": "dependency-patches/expo-paste-input@0.2.2.patch",
"rollup@4.62.2": "dependency-patches/rollup@4.62.2.patch",
"@expo/cli@57.0.25": "dependency-patches/@expo__cli@57.0.25.patch",
"react-native-screens@4.26.2": "dependency-patches/react-native-screens@4.26.2.patch",
"expo-router@57.0.17": "dependency-patches/expo-router@57.0.17.patch",
"react-native-gesture-handler@2.32.0": "dependency-patches/react-native-gesture-handler@2.32.0.patch",
"expo-modules-core@57.0.18": "dependency-patches/expo-modules-core@57.0.18.patch"
},
"allowUnusedPatches": true
},
"scripts": {
"h": "node scripts/help.mjs",
"mobile:xcode": "node apps/mobile/scripts/open-ios-xcode.mjs",
"mobile:sim:rebuild": "node scripts/ensure-deps.mjs --workspace-only && node apps/mobile/scripts/sim-rebuild.mjs",
"mobile:sim:up": "node scripts/ensure-deps.mjs --workspace-only && node apps/mobile/scripts/sim-up.mjs",
"mobile:sim:start": "node scripts/ensure-deps.mjs --workspace-only && node apps/mobile/scripts/sim-start.mjs",
"mobile:sim:start:cn": "node scripts/ensure-deps.mjs --workspace-only && node apps/mobile/scripts/sim-start.mjs --region=cn",
"mobile:sim:whoami": "node scripts/ensure-deps.mjs --workspace-only && node apps/mobile/scripts/sim-whoami.mjs",
"mobile:sim:logcheck": "node scripts/ensure-deps.mjs --workspace-only && node apps/mobile/scripts/sim-logcheck.mjs",
"mobile:sim:open": "node scripts/ensure-deps.mjs --workspace-only && node apps/mobile/scripts/sim-open.mjs",
"sync:mobile-rich-content-assets": "node apps/mobile/scripts/sync-rich-content-assets.mjs",
"mobile:release:check": "node apps/mobile/scripts/release-with-env.mjs check",
"mobile:release:prod": "node apps/mobile/scripts/release-with-env.mjs prod",
"mobile:build:ios": "node apps/mobile/scripts/build-ios.mjs",
"mobile:build:android": "node apps/mobile/scripts/build-android.mjs",
"ensure-deps": "node scripts/ensure-deps.mjs",
"sync:browser-runtime": "node scripts/browser-runtime/sync.mjs",
"repo:worktrees": "node scripts/repo-worktrees.mjs",
"update:claude": "node tools/claude/update.mjs",
"update:codex": "node tools/codex/update.mjs",
"update:codex-package": "node tools/codex-package/update.mjs",
"update:ripgrep": "node tools/ripgrep/update.mjs",
"update:pi": "node tools/pi/update.mjs",
"sync:pi-model-catalog": "node tools/pi/sync-model-catalog.mjs",
"update:vendors": "node tools/claude/update.mjs && node tools/codex/update.mjs && node tools/ripgrep/update.mjs && node tools/pi/update.mjs",
"install:claude": "node scripts/ensure-agent-binaries.mjs --kinds=claude",
"install:codex": "node scripts/ensure-agent-binaries.mjs --kinds=codex",
"install:ripgrep": "node scripts/ensure-agent-binaries.mjs --kinds=ripgrep",
"install:pi": "node scripts/ensure-agent-binaries.mjs --kinds=pi",
"install:agent-binaries": "node scripts/ensure-agent-binaries.mjs",
"postinstall": "node scripts/ensure-agent-binaries.mjs --best-effort && node scripts/fix-node-pty-perms.mjs && node scripts/ensure-deps.mjs --electron-binary",
"ui:check": "node apps/desktop/scripts/ui-page/cli.mjs",
"ui:preview": "node apps/desktop/scripts/ui-page/cli.mjs --preview",
"ui:check:selftest": "node --test apps/desktop/scripts/ui-page/runner.selftest.mjs",
"ui:check:publish": "node apps/desktop/scripts/ui-page/publish.mjs",
"dev:desktop": "node scripts/ensure-deps.mjs && node scripts/ensure-dev-runtime-assets.mjs && pnpm --filter desktop dev",
"dev:desktop:remote": "node scripts/ensure-deps.mjs && node scripts/ensure-dev-runtime-assets.mjs && pnpm --filter desktop dev:remote",
"restart:desktop:remote": "node scripts/desktop-restart-runner.mjs --wait-ready",
"restart:desktop:local": "node scripts/desktop-restart-runner.mjs --local --wait-ready",
"desktop:whoami": "node scripts/desktop-whoami.mjs",
"dev:desktop:inspect": "node scripts/ensure-deps.mjs && node scripts/ensure-dev-runtime-assets.mjs && pnpm --filter desktop dev:inspect",
"benchmark:voice-input": "node scripts/voice-input-benchmark.mjs",
"benchmark:browser": "node --import tsx scripts/browser-capability-benchmark.mjs",
"benchmark:desktop-workers": "node scripts/desktop-worker-benchmark.mjs",
"dev:embed:search": "node scripts/dev-embed-search.mjs",
"demo:legacy-migration": "tsx scripts/dev-legacy-migration-demo.mts",
"build": "node scripts/ensure-deps.mjs && pnpm --filter desktop build",
"release:package": "node scripts/ensure-deps.mjs && node apps/desktop/scripts/package-desktop.mjs",
"check:i18n": "node scripts/check-i18n.mjs",
"check:i18n-glossary": "node scripts/check-i18n-glossary.mjs",
"check:i18n-glossary:report": "node scripts/check-i18n-glossary.mjs --report",
"check:design-colors": "node scripts/hardcoded-color-audit.mjs",
"report:design-colors": "node scripts/hardcoded-color-audit.mjs --report",
"check:design-inventory": "node scripts/design-inventory.mjs --check",
"design:inventory": "node scripts/design-inventory.mjs",
"design:inventory:report": "node scripts/design-inventory.mjs --report",
"i18n:glossary-doc": "node scripts/generate-glossary-doc.mjs",
"check:brand-terminology": "node scripts/brand-terminology-guard.mjs",
"check:endpoints": "node scripts/check-endpoint-literals.mjs",
"check:dev-docs": "node --test scripts/__tests__/dev-docs-contract.test.mjs",
"check:test-hygiene": "node scripts/check-test-hygiene.mjs",
"check:dco": "node scripts/check-dco.mjs",
"dco:install-hook": "node scripts/install-dco-hook.mjs",
"licenses:generate": "node scripts/generate-third-party-notices.mjs",
"lint": "pnpm -r lint",
"format": "pnpm -r format",
"test:runner": "node --test scripts/__tests__/repo-worktrees.test.mjs scripts/__tests__/test-workspaces.test.mjs scripts/__tests__/remote-bundle-inputs.test.mjs scripts/__tests__/test-related.test.mjs scripts/__tests__/desktop-worker-benchmark.test.mjs scripts/__tests__/dev-docs-contract.test.mjs scripts/__tests__/restart-desktop-remote.test.mjs scripts/__tests__/dev-migration-policy.test.mjs scripts/__tests__/ensure-deps.test.mjs scripts/__tests__/client-endpoint-build-env.test.mjs scripts/__tests__/log-upload-build-env.test.mjs scripts/__tests__/desktop-dev-region.test.mjs scripts/__tests__/desktop-dev-node-options.test.mjs scripts/__tests__/endpoint-consistency.test.mjs scripts/__tests__/endpoint-local-file.test.mjs scripts/__tests__/ensure-agent-binaries.test.mjs scripts/__tests__/ensure-android-platform-tools.test.mjs scripts/__tests__/fetch-with-timeout.test.mjs scripts/__tests__/agent-binary-cdn-fallback.test.mjs scripts/__tests__/ensure-binary-fallback.test.mjs scripts/__tests__/verify-sha256.test.mjs scripts/__tests__/codex-package-update-layout.test.mjs scripts/__tests__/pi-update-layout.test.mjs scripts/__tests__/migration-freeze.test.mjs scripts/__tests__/third-party-notices.test.mjs scripts/__tests__/brand-identity-sync.test.mjs scripts/__tests__/brand-terminology-guard.test.mjs scripts/__tests__/check-dco.test.mjs scripts/__tests__/package-args.test.mjs scripts/__tests__/publish-page-manual.test.mjs scripts/__tests__/notarize-mac-app.test.mjs scripts/__tests__/glossary-rules.test.mjs scripts/__tests__/design-inventory.test.mjs scripts/__tests__/hardcoded-color-audit.test.mjs scripts/__tests__/check-test-hygiene.test.mjs scripts/__tests__/check-pr-design-basis.test.mjs && node apps/desktop/scripts/check-windows-atomic-rename.mjs",
"test:workspaces": "node scripts/test-workspaces.mjs",
"test:unit": "pnpm test:runner && node scripts/test-workspaces.mjs --tier unit",
"test:unit:related": "node scripts/test-workspaces.mjs --tier unit --related",
"test:integration": "pnpm test:runner && node scripts/test-workspaces.mjs --tier integration",
"test:e2e": "pnpm test:runner && node scripts/test-workspaces.mjs --tier e2e",
"test:all": "pnpm test:runner && node scripts/test-workspaces.mjs --all",
"test:git-integration": "pnpm test:runner && node scripts/test-workspaces.mjs --tier git-integration",
"test:db": "pnpm test:runner && node scripts/test-workspaces.mjs --tier db",
"test:guard": "node scripts/test-workspaces.mjs --tier guard",
"test:device-link": "node apps/mobile/scripts/device-link-reconnect-smoke.mjs",
"test:peer-transfer": "node scripts/peer-transfer-acceptance.mjs",
"ci:scheduler-guard": "node scripts/scheduler-ci-guard.mjs",
"pctx": "node packages/project-context/dist/cli.js",
"pctx:build": "pnpm --filter project-context build"
},
"dependencies": {
"gray-matter": "^4.0.3"
},
"devDependencies": {
"spdx-expression-parse": "3.0.1",
"@types/ws": "^8.18.1",
"vitest": "^3.2.4",
"ws": "^8.18.3"
}
}