Files
jackwener__opencli/package.json
jakevin ce432c2428 chore(release): 1.8.0 (#1682)
* chore(release): 1.8.0

Substantial release: weread-official adapter, wider LinkedIn / Twitter / Reddit / Zhihu coverage, 12306 / Suno / Xianyu additions, security and reliability fixes, plus a 20% README shrink.

* chore: remove orphan docs/adapters-doc/ones.md

The file was a leftover from PR #386 (2026-04-10) and has been
superseded by docs/adapters/browser/ones.md. Bundled into the 1.8.0
release commit chain so the release doesn't ship with a dead docs
file alongside the new docs.

Skipped from opus-reviewer's audit (Tier 1 #1-#4) for this release:
- #1 smart-search dead refs (10 spots) — owned by @codex-coder's
  skill-deletion PR; release PR will rebase on top of it.
- #3 clis/test-utils.js relocation — touches 19 importers, separate
  refactor PR.
- #4 clis/slock/ orphan — needs WAWQAQ design call.
- #6 opencli-usage:161 wording — current "Commands that used to
  exist" framing is already clear enough.
- #7 docs/adapters/index.md sync (8-20 missing sites) — broader docs
  PR, not release-time bundling.

* chore: remove clis/slock + sync docs/adapters/index.md (audit #4 + #7)

Per WAWQAQ post-audit directive on #OpenCLI:f046ece7:

- `clis/slock/` was a half-finished orphan with only `_utils.js` and no
  command entry points. Removed.
- `docs/adapters/index.md` was missing 11 browser adapters: 12306,
  suno, weread-official, qwen, 1point3acres, brave, duckduckgo, cnki,
  flomo, jianyu, taobao. Added all with commands sourced from
  cli-manifest.json. Desktop section already covered all 7 desktop
  adapters (Cursor / Codex / Antigravity / ChatGPT App / ChatWise /
  Discord / Doubao App).
2026-05-20 03:31:57 +08:00

109 lines
3.6 KiB
JSON

{
"name": "@jackwener/opencli",
"version": "1.8.0",
"publishConfig": {
"access": "public"
},
"description": "Make any website or Electron App your CLI. AI-powered.",
"engines": {
"node": ">=20.0.0"
},
"type": "module",
"main": "dist/src/main.js",
"bin": {
"opencli": "dist/src/main.js"
},
"exports": {
".": "./dist/src/main.js",
"./registry": "./dist/src/registry-api.js",
"./errors": "./dist/src/errors.js",
"./types": "./dist/src/types.js",
"./utils": "./dist/src/utils.js",
"./logger": "./dist/src/logger.js",
"./launcher": "./dist/src/launcher.js",
"./browser/cdp": "./dist/src/browser/cdp.js",
"./browser/page": "./dist/src/browser/page.js",
"./browser/utils": "./dist/src/browser/utils.js",
"./download": "./dist/src/download/index.js",
"./download/article-download": "./dist/src/download/article-download.js",
"./download/media-download": "./dist/src/download/media-download.js",
"./download/progress": "./dist/src/download/progress.js",
"./pipeline": "./dist/src/pipeline/index.js"
},
"files": [
"dist/src/",
"clis/",
"cli-manifest.json",
"scripts/",
"README.md",
"LICENSE"
],
"scripts": {
"dev": "tsx src/main.ts",
"dev:bun": "bun src/main.ts",
"build": "npm run clean-dist && npm run copy-yaml && npm run build-manifest",
"prebuild-manifest": "tsc --build && node -e \"require('fs').chmodSync('dist/src/main.js', 0o755)\"",
"build-manifest": "tsx src/build-manifest.ts",
"clean-dist": "node scripts/clean-dist.cjs",
"copy-yaml": "node scripts/copy-yaml.cjs",
"start": "node dist/src/main.js",
"start:bun": "bun dist/src/main.js",
"preuninstall": "node -e \"fetch('http://127.0.0.1:'+(process.env.OPENCLI_DAEMON_PORT||'19825')+'/shutdown',{method:'POST',headers:{'X-OpenCLI':'1'},signal:AbortSignal.timeout(3000)}).catch(()=>{})\" || true",
"postinstall": "node scripts/postinstall.js || true; node scripts/fetch-adapters.js || true",
"typecheck": "tsc --noEmit",
"prepare": "[ -d src ] && npm run build || true",
"prepublishOnly": "npm run build",
"test": "vitest run --project unit --project extension --project adapter",
"test:bun": "bun vitest run --project unit --project extension --project adapter",
"test:adapter": "vitest run --project adapter",
"test:all": "vitest run",
"test:e2e": "vitest run --project e2e",
"advise:listing-id-pairing": "node scripts/check-listing-id-pairing.mjs",
"check:silent-column-drop": "node scripts/check-silent-column-drop.mjs",
"check:typed-error-lint": "node scripts/check-typed-error-lint.mjs",
"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": {
"@mozilla/readability": "^0.6.0",
"cli-table3": "^0.6.5",
"commander": "^14.0.3",
"js-yaml": "^4.1.0",
"turndown": "^7.2.2",
"turndown-plugin-gfm": "^1.0.2",
"undici": "^6.25.0",
"ws": "^8.18.0"
},
"devDependencies": {
"@types/jsdom": "^27.0.0",
"@types/js-yaml": "^4.0.9",
"@types/node": "^25.5.2",
"@types/turndown": "^5.0.6",
"@types/ws": "^8.5.13",
"jsdom": "^29.0.2",
"tsx": "^4.19.3",
"typescript": "^6.0.2",
"vitepress": "^1.6.4",
"vitest": "^4.1.0"
},
"overrides": {
"postcss": "^8.5.10",
"vitepress": {
"vite": "6.4.2"
}
}
}