Files
jackwener__opencli/docs/index.md
T
jakevin a9d21f3de0 fix: project hygiene — docs, lint, daemon restart (#942)
* fix: project hygiene — docs, lint, daemon restart, code fence

- Update Node version requirement from >= 20 to >= 21 in 7 doc files
  (README, README.zh-CN, installation guides, troubleshooting)
- Update adapter count from 79+ to 87+ in READMEs
- Remove duplicate `lint` script (identical to `typecheck`)
- Fix TESTING.md CI matrix: Node ['22'] instead of ['20', '22']
- Fix autofix SKILL.md code fence escaping (\``` → ~~~)
- Add daemon restart to postinstall so updated adapters are picked up
- Fix preuninstall to respect OPENCLI_DAEMON_PORT env var

* fix: align docs and skills with JS-first adapter contract

Adapters are now .js files (not .ts). Update all references across:
- README.md, README.zh-CN.md, CONTRIBUTING.md
- docs/guide/getting-started.md, docs/index.md
- skills/opencli-browser/SKILL.md, skills/opencli-explorer/SKILL.md

The runtime (discovery.ts) only loads .js from user clis/ directories,
and `opencli browser init` generates .js scaffolds. Documentation was
still teaching users to create .ts files.

* fix: update CI matrix to Node 22 only (drop Node 20)

package.json requires Node >= 21 (styleText dependency). The CI matrix
was still testing Node 20 which doesn't meet this requirement.

* fix: revert incorrect daemon restart from postinstall

The daemon (browser bridge) only handles CDP communication — it has no
knowledge of adapters. Adapter discovery, loading, and execution all
happen in the CLI process, which is fresh each invocation. The
_loadedModules cache in execution.ts is process-local and not a real
staleness concern. Remove the unnecessary restartDaemon() call.
2026-04-11 00:50:05 +08:00

1.4 KiB

layout, hero, features
layout hero features
home
name text tagline actions
OpenCLI Make any website or Electron App your CLI Zero risk · Reuse Chrome login · AI-powered discovery · Browser + Desktop automation
theme text link
brand Get Started /guide/getting-started
theme text link
alt View on GitHub https://github.com/jackwener/opencli
icon title details
🖥️ CLI All Electron Turn ANY Electron application into a CLI tool — Cursor, Codex, Antigravity, ChatGPT, Notion, and more. AI can control itself natively.
icon title details
🔐 Account Safe Reuses Chrome's logged-in state. Your credentials never leave the browser — no tokens, no exposed passwords.
icon title details
🤖 AI Agent Ready explore discovers APIs, synthesize generates adapters, cascade finds auth strategies. Built for AI-first workflows.
icon title details
⚡ Dual-Engine Architecture Supports both declarative pipeline adapters and robust browser runtime TypeScript injections for maximum flexibility.
icon title details
🔧 Self-Healing Setup opencli doctor auto-starts the daemon and diagnoses extension + live browser connectivity.
icon title details
📦 Dynamic Loader Simply drop .js adapters into the clis/ folder for auto-registration. Zero boilerplate.