diff --git a/package.json b/package.json index ffdaf966e..1b5902a93 100644 --- a/package.json +++ b/package.json @@ -66,11 +66,24 @@ "clawdbot": "tsx src/entry.ts", "gateway:watch": "tsx watch src/entry.ts gateway --force", "clawdbot:rpc": "tsx src/entry.ts agent --mode rpc --json", + "ios:gen": "cd apps/ios && xcodegen generate", + "ios:open": "cd apps/ios && xcodegen generate && open Clawdbot.xcodeproj", + "ios:build": "bash -lc 'cd apps/ios && xcodegen generate && xcodebuild -project Clawdbot.xcodeproj -scheme Clawdbot -destination \"${IOS_DEST:-platform=iOS Simulator,name=iPhone 17}\" -configuration Debug build'", + "ios:run": "bash -lc 'cd apps/ios && xcodegen generate && xcodebuild -project Clawdbot.xcodeproj -scheme Clawdbot -destination \"${IOS_DEST:-platform=iOS Simulator,name=iPhone 17}\" -configuration Debug build && xcrun simctl boot \"${IOS_SIM:-iPhone 17}\" || true && xcrun simctl launch booted com.clawdbot.ios'", + "android:assemble": "cd apps/android && ./gradlew :app:assembleDebug", + "android:install": "cd apps/android && ./gradlew :app:installDebug", + "android:run": "cd apps/android && ./gradlew :app:installDebug && adb shell am start -n com.clawdbot.android/.MainActivity", + "android:test": "cd apps/android && ./gradlew :app:testDebugUnitTest", + "mac:restart": "bash scripts/restart-mac.sh", + "mac:package": "bash scripts/package-mac-app.sh", + "mac:open": "open dist/Clawdbot.app", "lint": "biome check src test && oxlint --type-aware src test --ignore-pattern src/canvas-host/a2ui/a2ui.bundle.js", "lint:swift": "swiftlint lint --config .swiftlint.yml && (cd apps/ios && swiftlint lint --config .swiftlint.yml)", + "lint:all": "pnpm lint && pnpm lint:swift", "lint:fix": "biome check --write --unsafe src && biome format --write src", "format": "biome format src", "format:swift": "swiftformat --lint --config .swiftformat apps/macos/Sources apps/ios/Sources apps/shared/ClawdbotKit/Sources", + "format:all": "pnpm format && pnpm format:swift", "format:fix": "biome format src --write", "test": "vitest run", "test:watch": "vitest",