mirror of
https://github.com/jackwener/OpenCLI.git
synced 2026-09-14 18:25:42 +08:00
7f57e76485
When a new automation window is created, the initial tab URL may be
empty briefly while Chrome loads the data: URI. isDebuggableUrl('') was
returning false, causing ensureAttached to reject the tab.
Fix: only reject known non-debuggable URLs (chrome://, chrome-extension://).
Empty/undefined URLs are now treated as debuggable since they represent
tabs still loading.
Also adds 200ms delay after window creation to let Chrome populate the
tab URL.
68 lines
1.7 KiB
JSON
68 lines
1.7 KiB
JSON
{
|
|
"name": "@jackwener/opencli",
|
|
"version": "1.2.5",
|
|
"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",
|
|
"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"
|
|
}
|
|
}
|