mirror of
https://github.com/callstack/agent-device.git
synced 2026-09-14 20:06:34 +08:00
88 lines
3.5 KiB
JSON
88 lines
3.5 KiB
JSON
{
|
|
"name": "agent-device",
|
|
"version": "0.11.0",
|
|
"description": "Unified control plane for physical and virtual devices via an agent-driven CLI.",
|
|
"license": "MIT",
|
|
"author": "Callstack",
|
|
"type": "module",
|
|
"main": "dist/src/index.js",
|
|
"types": "dist/src/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"import": "./dist/src/index.js",
|
|
"types": "./dist/src/index.d.ts"
|
|
}
|
|
},
|
|
"engines": {
|
|
"node": ">=22"
|
|
},
|
|
"bin": {
|
|
"agent-device": "bin/agent-device.mjs"
|
|
},
|
|
"scripts": {
|
|
"build": "rslib build",
|
|
"clean:daemon": "rm -f ~/.agent-device/daemon.json && rm -f ~/.agent-device/daemon.lock",
|
|
"build:node": "pnpm build && pnpm clean:daemon",
|
|
"build:xcuitest": "pnpm build:xcuitest:ios && pnpm build:xcuitest:macos",
|
|
"build:xcuitest:ios": "rm -rf ~/.agent-device/ios-runner/derived/device && xcodebuild build-for-testing -project ios-runner/AgentDeviceRunner/AgentDeviceRunner.xcodeproj -scheme AgentDeviceRunner -destination \"generic/platform=iOS Simulator\" -derivedDataPath ~/.agent-device/ios-runner/derived",
|
|
"build:xcuitest:macos": "rm -rf ~/.agent-device/ios-runner/derived/macos && xcodebuild build-for-testing -project ios-runner/AgentDeviceRunner/AgentDeviceRunner.xcodeproj -scheme AgentDeviceRunner -destination \"platform=macOS,arch=$(uname -m)\" -derivedDataPath ~/.agent-device/ios-runner/derived/macos CODE_SIGNING_ALLOWED=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY=\"\" DEVELOPMENT_TEAM=\"\" COMPILER_INDEX_STORE_ENABLE=NO ENABLE_CODE_COVERAGE=NO",
|
|
"build:xcuitest:tvos": "rm -rf ~/.agent-device/ios-runner/derived/tvos && xcodebuild build-for-testing -project ios-runner/AgentDeviceRunner/AgentDeviceRunner.xcodeproj -scheme AgentDeviceRunner -destination \"generic/platform=tvOS Simulator\" -derivedDataPath ~/.agent-device/ios-runner/derived/tvos",
|
|
"build:macos-helper": "swift build -c release --package-path macos-helper",
|
|
"build:all": "pnpm build:node && pnpm build:xcuitest",
|
|
"ad": "node bin/agent-device.mjs",
|
|
"format": "prettier --write src test skills",
|
|
"prepack": "pnpm build:all",
|
|
"typecheck": "tsc -p tsconfig.json",
|
|
"test": "vitest run",
|
|
"test:unit": "vitest run",
|
|
"test:smoke": "node --test test/integration/smoke-*.test.ts",
|
|
"test:integration": "node --test test/integration/*.test.ts",
|
|
"test:replay:ios": "node --experimental-strip-types src/bin.ts test test/integration/replays/ios/simulator",
|
|
"test:replay:ios-device": "node --experimental-strip-types src/bin.ts test test/integration/replays/ios/device",
|
|
"test:replay:android": "node --experimental-strip-types src/bin.ts test test/integration/replays/android",
|
|
"test:replay:macos": "node --experimental-strip-types src/bin.ts test test/integration/replays/macos"
|
|
},
|
|
"files": [
|
|
"bin",
|
|
"dist",
|
|
"ios-runner",
|
|
"!ios-runner/**/.build",
|
|
"!ios-runner/**/.swiftpm",
|
|
"!ios-runner/**/xcuserdata",
|
|
"!ios-runner/**/*.xcuserstate",
|
|
"macos-helper",
|
|
"!macos-helper/**/.build",
|
|
"skills",
|
|
"README.md",
|
|
"LICENSE"
|
|
],
|
|
"keywords": [
|
|
"agent",
|
|
"device",
|
|
"cli",
|
|
"adb",
|
|
"simctl",
|
|
"devicectl",
|
|
"ios",
|
|
"android"
|
|
],
|
|
"prettier": {
|
|
"singleQuote": true,
|
|
"semi": true,
|
|
"trailingComma": "all",
|
|
"printWidth": 100
|
|
},
|
|
"dependencies": {
|
|
"pngjs": "^7.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@microsoft/api-extractor": "^7.52.10",
|
|
"@rslib/core": "0.19.4",
|
|
"@types/node": "^22.0.0",
|
|
"@types/pngjs": "^6.0.5",
|
|
"prettier": "^3.3.3",
|
|
"typescript": "^5.9.3",
|
|
"vitest": "^4.1.2"
|
|
}
|
|
}
|