mirror of
https://github.com/jackwener/OpenCLI.git
synced 2026-09-14 18:25:42 +08:00
f97e863e7a
- CamoufoxPage: full IPage implementation via Juggler protocol - Reuses all DOM snapshot/helper JS from shared modules - exportState/importState natively via Playwright context API - CamoufoxBridge: IBrowserFactory connecting to camoufox server - runtime.ts: auto-select CamoufoxBridge via OPENCLI_CAMOUFOX_WS - CLI commands: - opencli browser export-state/import-state/sync - opencli camoufox setup/start/status - Added playwright-core dependency (~3MB, no browser binaries)
69 lines
1.8 KiB
JSON
69 lines
1.8 KiB
JSON
{
|
|
"name": "@jackwener/opencli",
|
|
"version": "1.1.1",
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"description": "Make any website your CLI. AI-powered.",
|
|
"engines": {
|
|
"node": ">=20.0.0"
|
|
},
|
|
"type": "module",
|
|
"main": "dist/main.js",
|
|
"bin": {
|
|
"opencli": "dist/main.js"
|
|
},
|
|
"exports": {
|
|
".": "./dist/main.js",
|
|
"./registry": "./dist/registry-api.js"
|
|
},
|
|
"scripts": {
|
|
"dev": "tsx src/main.ts",
|
|
"build": "npm run clean-dist && tsc && npm run clean-yaml && npm run copy-yaml && npm run build-manifest",
|
|
"build-manifest": "node dist/build-manifest.js",
|
|
"clean-dist": "node scripts/clean-dist.cjs",
|
|
"clean-yaml": "node scripts/clean-yaml.cjs",
|
|
"copy-yaml": "node scripts/copy-yaml.cjs",
|
|
"start": "node dist/main.js",
|
|
"postinstall": "node scripts/postinstall.js || true",
|
|
"typecheck": "tsc --noEmit",
|
|
"lint": "tsc --noEmit",
|
|
"prepublishOnly": "npm run build",
|
|
"test": "vitest run --project unit",
|
|
"test:all": "vitest run",
|
|
"test:e2e": "vitest run --project e2e",
|
|
"docs:dev": "vitepress dev docs",
|
|
"docs:build": "vitepress build docs",
|
|
"docs:preview": "vitepress preview docs"
|
|
},
|
|
"keywords": [
|
|
"cli",
|
|
"browser",
|
|
"web",
|
|
"ai"
|
|
],
|
|
"author": "jackwener",
|
|
"license": "Apache-2.0",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/jackwener/opencli.git"
|
|
},
|
|
"dependencies": {
|
|
"chalk": "^5.3.0",
|
|
"cli-table3": "^0.6.5",
|
|
"commander": "^14.0.3",
|
|
"js-yaml": "^4.1.0",
|
|
"playwright-core": "^1.58.2",
|
|
"ws": "^8.18.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/js-yaml": "^4.0.9",
|
|
"@types/node": "^22.13.10",
|
|
"@types/ws": "^8.5.13",
|
|
"tsx": "^4.19.3",
|
|
"typescript": "^5.8.2",
|
|
"vitepress": "^1.6.4",
|
|
"vitest": "^4.1.0"
|
|
}
|
|
}
|