mirror of
https://github.com/callstack/agent-device.git
synced 2026-09-14 20:06:34 +08:00
174 lines
6.7 KiB
JSON
174 lines
6.7 KiB
JSON
{
|
|
"name": "agent-device",
|
|
"version": "0.14.7",
|
|
"description": "Agent-driven CLI for mobile UI automation, network inspection, and performance diagnostics across iOS, Android, tvOS, and macOS.",
|
|
"license": "MIT",
|
|
"author": "Callstack",
|
|
"homepage": "https://agent-device.dev/",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/callstackincubator/agent-device.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/callstackincubator/agent-device/issues"
|
|
},
|
|
"type": "module",
|
|
"packageManager": "pnpm@10.33.2",
|
|
"main": "dist/src/index.js",
|
|
"types": "dist/src/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"import": "./dist/src/index.js",
|
|
"types": "./dist/src/index.d.ts"
|
|
},
|
|
"./io": {
|
|
"import": "./dist/src/io.js",
|
|
"types": "./dist/src/io.d.ts"
|
|
},
|
|
"./artifacts": {
|
|
"import": "./dist/src/artifacts.js",
|
|
"types": "./dist/src/artifacts.d.ts"
|
|
},
|
|
"./metro": {
|
|
"import": "./dist/src/metro.js",
|
|
"types": "./dist/src/metro.d.ts"
|
|
},
|
|
"./batch": {
|
|
"import": "./dist/src/batch.js",
|
|
"types": "./dist/src/batch.d.ts"
|
|
},
|
|
"./remote-config": {
|
|
"import": "./dist/src/remote-config.js",
|
|
"types": "./dist/src/remote-config.d.ts"
|
|
},
|
|
"./install-source": {
|
|
"import": "./dist/src/install-source.js",
|
|
"types": "./dist/src/install-source.d.ts"
|
|
},
|
|
"./android-adb": {
|
|
"import": "./dist/src/android-adb.js",
|
|
"types": "./dist/src/android-adb.d.ts"
|
|
},
|
|
"./android-snapshot-helper": {
|
|
"import": "./dist/src/android-snapshot-helper.js",
|
|
"types": "./dist/src/android-snapshot-helper.d.ts"
|
|
},
|
|
"./contracts": {
|
|
"import": "./dist/src/contracts.js",
|
|
"types": "./dist/src/contracts.d.ts"
|
|
},
|
|
"./selectors": {
|
|
"import": "./dist/src/selectors.js",
|
|
"types": "./dist/src/selectors.d.ts"
|
|
},
|
|
"./finders": {
|
|
"import": "./dist/src/finders.js",
|
|
"types": "./dist/src/finders.d.ts"
|
|
}
|
|
},
|
|
"engines": {
|
|
"node": ">=22.19"
|
|
},
|
|
"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": "AGENT_DEVICE_XCUITEST_PLATFORM=ios AGENT_DEVICE_IOS_CLEAN_DERIVED=1 sh ./scripts/build-xcuitest-apple.sh",
|
|
"build:xcuitest:macos": "AGENT_DEVICE_XCUITEST_PLATFORM=macos sh ./scripts/build-xcuitest-apple.sh",
|
|
"build:xcuitest:tvos": "AGENT_DEVICE_XCUITEST_PLATFORM=tvos AGENT_DEVICE_IOS_CLEAN_DERIVED=1 sh ./scripts/build-xcuitest-apple.sh",
|
|
"build:android-snapshot-helper": "sh ./scripts/build-android-snapshot-helper.sh $(node -p \"require('./package.json').version\") .tmp/android-snapshot-helper",
|
|
"package:android-snapshot-helper": "sh ./scripts/package-android-snapshot-helper.sh $(node -p \"require('./package.json').version\") v$(node -p \"require('./package.json').version\") .tmp/android-snapshot-helper",
|
|
"package:android-snapshot-helper:npm": "rm -rf android-snapshot-helper/dist && sh ./scripts/package-android-snapshot-helper.sh $(node -p \"require('./package.json').version\") v$(node -p \"require('./package.json').version\") android-snapshot-helper/dist",
|
|
"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",
|
|
"lint": "oxlint . --deny-warnings",
|
|
"format": "oxfmt --write src test skills package.json tsconfig.json tsconfig.lib.json rslib.config.ts vitest.config.ts .github/actions/setup-node-pnpm/action.yml .oxlintrc.json .oxfmtrc.json '!test/skillgym/.skillgym-results/**'",
|
|
"fallow": "fallow --summary",
|
|
"fallow:baseline": "(fallow dead-code --save-baseline fallow-baselines/dead-code.json --summary || true) && (fallow dupes --save-baseline fallow-baselines/dupes.json --summary || true) && (fallow health --save-baseline fallow-baselines/health.json --summary || true)",
|
|
"check:fallow": "fallow audit",
|
|
"check:quick": "pnpm lint && pnpm typecheck",
|
|
"check:tooling": "pnpm lint && pnpm typecheck && pnpm build",
|
|
"check:unit": "pnpm test:unit && pnpm test:smoke",
|
|
"check": "pnpm check:tooling && pnpm check:fallow && pnpm check:unit",
|
|
"prepack": "pnpm build:all && pnpm package:android-snapshot-helper:npm",
|
|
"typecheck": "tsc -p tsconfig.json",
|
|
"test-app:install": "pnpm install --dir examples/test-app --ignore-workspace",
|
|
"test-app:start": "pnpm --dir examples/test-app start",
|
|
"test-app:ios": "pnpm --dir examples/test-app ios",
|
|
"test-app:android": "pnpm --dir examples/test-app android",
|
|
"test-app:typecheck": "pnpm --dir examples/test-app typecheck",
|
|
"test": "vitest run",
|
|
"test:unit": "vitest run",
|
|
"test:skillgym": "pnpm build && skillgym run ./test/skillgym/suites/agent-device-smoke-suite.ts --config ./test/skillgym/skillgym.config.ts",
|
|
"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",
|
|
"test:replay:linux": "node --experimental-strip-types src/bin.ts test test/integration/replays/linux"
|
|
},
|
|
"files": [
|
|
"bin",
|
|
"dist",
|
|
"ios-runner",
|
|
"!ios-runner/**/.build",
|
|
"!ios-runner/**/.swiftpm",
|
|
"!ios-runner/**/xcuserdata",
|
|
"!ios-runner/**/*.xcuserstate",
|
|
"macos-helper",
|
|
"!macos-helper/**/.build",
|
|
"android-snapshot-helper/dist",
|
|
"!android-snapshot-helper/dist/*.idsig",
|
|
"src/platforms/linux/atspi-dump.py",
|
|
"skills",
|
|
"README.md",
|
|
"LICENSE"
|
|
],
|
|
"pnpm": {
|
|
"overrides": {
|
|
"lodash-es": "4.18.1"
|
|
}
|
|
},
|
|
"keywords": [
|
|
"agent",
|
|
"device",
|
|
"cli",
|
|
"automation",
|
|
"adb",
|
|
"simctl",
|
|
"devicectl",
|
|
"ios",
|
|
"android",
|
|
"tvos",
|
|
"macos",
|
|
"react-native",
|
|
"observability",
|
|
"diagnostics",
|
|
"network",
|
|
"profiling",
|
|
"performance"
|
|
],
|
|
"dependencies": {
|
|
"fast-xml-parser": "^5.7.2",
|
|
"pngjs": "^7.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"vitest": "^4.1.2",
|
|
"@rslib/core": "0.20.1",
|
|
"@types/node": "^22.0.0",
|
|
"@types/pngjs": "^6.0.5",
|
|
"fallow": "^2.52.0",
|
|
"oxfmt": "^0.42.0",
|
|
"oxlint": "^1.57.0",
|
|
"skillgym": "^0.6.0",
|
|
"typescript": "^6.0.2",
|
|
"vite": "^8.0.10"
|
|
}
|
|
}
|