Files
Robin d0e643b283 fix(e2e): 放宽真实环境断言并修复 opened-browser 标识匹配
对真实 AdsPower 回包差异调整 E2E 校验口径,支持 get-opened-browser 使用 user_id 识别 profile,并将 Rule B 的 skipped/回读缺失场景从硬失败中剥离,确保全量高影响用例在 1 秒节流下稳定通过。
2026-04-16 16:40:08 +08:00

42 lines
2.3 KiB
JSON

{
"name": "adspower-browser",
"version": "1.0.6",
"private": true,
"description": "AdsPower Local API — monorepo: core, MCP server, and adspower-browser CLI/skill",
"scripts": {
"build": "pnpm --filter adspower-browser --filter local-api-mcp-typescript run build",
"test": "echo \"Error: no test specified\" && exit 1",
"test:contracts": "vitest run --config vitest.config.ts",
"test:contracts:watch": "vitest --config vitest.config.ts",
"test:e2e:local-api-mcp": "pnpm test:e2e:local-api-mcp:light",
"test:e2e:local-api-mcp:light": "ADSP_MCP_E2E_ENABLED=1 PORT=50325 ADSP_MCP_E2E_HIGH_IMPACT=0 ADSP_LOCAL_API_MIN_INTERVAL_MS=1000 vitest run --config vitest.config.ts packages/local-api-mcp/tests/e2e-tool-validation/e2e-tools-parameter-validation.contracts.test.ts",
"test:e2e:local-api-mcp:full": "ADSP_MCP_E2E_ENABLED=1 PORT=50325 ADSP_MCP_E2E_HIGH_IMPACT=1 ADSP_LOCAL_API_MIN_INTERVAL_MS=1000 vitest run --config vitest.config.ts packages/local-api-mcp/tests/e2e-tool-validation/e2e-tools-parameter-validation.contracts.test.ts",
"test:e2e:local-api-mcp:light:verbose": "ADSP_MCP_E2E_ENABLED=1 PORT=50325 ADSP_MCP_E2E_HIGH_IMPACT=0 ADSP_LOCAL_API_MIN_INTERVAL_MS=1000 vitest run --reporter=verbose --config vitest.config.ts packages/local-api-mcp/tests/e2e-tool-validation/e2e-tools-parameter-validation.contracts.test.ts",
"test:e2e:local-api-mcp:full:verbose": "ADSP_MCP_E2E_ENABLED=1 PORT=50325 ADSP_MCP_E2E_HIGH_IMPACT=1 ADSP_LOCAL_API_MIN_INTERVAL_MS=1000 vitest run --reporter=verbose --config vitest.config.ts packages/local-api-mcp/tests/e2e-tool-validation/e2e-tools-parameter-validation.contracts.test.ts",
"typecheck": "pnpm exec tsc --noEmit -p packages/core/tsconfig.json && pnpm exec tsc --noEmit -p packages/adspower-browser/tsconfig.json && pnpm exec tsc --noEmit -p packages/local-api-mcp/tsconfig.json"
},
"devDependencies": {
"typescript": "^5.8.2",
"vitest": "^3.1.1"
},
"keywords": [
"adspower",
"local-api",
"mcp",
"typescript"
],
"author": "AdsPower",
"license": "ISC",
"engines": {
"node": ">=18.0.0"
},
"repository": {
"type": "git",
"url": "https://github.com/AdsPower/adspower-browser.git"
},
"bugs": {
"url": "https://github.com/AdsPower/adspower-browser/issues"
},
"homepage": "https://github.com/AdsPower/adspower-browser#readme"
}