mirror of
https://github.com/epiral/bb-browser.git
synced 2026-09-14 13:45:45 +08:00
03c6bf2010
* refactor: rewrite Edge Clip provider using @pinixai/hub-client (#175) Replace hand-written protobuf descriptor in bb-browserd.ts with typed imports from @pinixai/hub-client. The new bb-browser-provider.ts uses create() from @bufbuild/protobuf with generated schemas, registers site adapters as separate per-platform clips, and routes invocations to either the daemon HTTP layer (browser commands) or CLI (site commands). - Delete bin/bb-browserd.ts (1140 lines) - Add bin/bb-browser-provider.ts (~710 lines) - Add @pinixai/hub-client dependency - Add bb-browser-provider bin entry and tsup entry point - Add esbuild plugin to resolve hub-client gen subpath import Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix: import from @pinixai/hub-client top-level exports Use hub-client 0.1.2 which exports ProviderStream types directly. Remove esbuild plugin hack for deep gen/hub_pb import. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * refactor: delete dead CDP code, fix MCP auth, extract shared daemon client - Delete cdp-client.ts (1212 lines), cdp-monitor.ts (521 lines), cdp-monitor-state.ts (182 lines) — all dead code from pre-daemon era - Fix MCP server to read daemon.json for token/port instead of hardcoded DAEMON_BASE_URL without auth - Extract httpJson, readDaemonJson, isProcessAlive, DaemonInfo to packages/shared/src/daemon-client.ts — eliminates duplication across CLI daemon-manager, MCP server, and Edge Clip provider - Fix scroll left/right: deltaX was hardcoded to 0, now properly maps direction to deltaX/deltaY - Align daemon tsup target from node20 to node18 (matches engines) - Remove cdp-monitor from tsup entry points Net: -1891 lines Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix: lint — use DAEMON_DIR from shared, remove unused os import Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix: review feedback — refresh platformClipAliases on reconnect, remove dead DAEMON_BASE_URL Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix: remove duplicate bun shebang from provider source tsup adds #!/usr/bin/env node via banner config. The source file's #!/usr/bin/env bun caused a double shebang in dist/provider.js, breaking node execution. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
77 lines
1.8 KiB
JSON
77 lines
1.8 KiB
JSON
{
|
|
"name": "bb-browser",
|
|
"version": "0.11.2",
|
|
"description": "Your browser is the API. CLI + MCP server for AI agents to control Chrome with your login state.",
|
|
"type": "module",
|
|
"bin": {
|
|
"bb-browser": "./dist/cli.js",
|
|
"bb-browser-mcp": "./dist/mcp.js",
|
|
"bb-browser-provider": "./dist/provider.js"
|
|
},
|
|
"main": "./dist/cli.js",
|
|
"files": [
|
|
"dist",
|
|
"packages/shared/buildDomTree.js",
|
|
"README.md",
|
|
"LICENSE"
|
|
],
|
|
"scripts": {
|
|
"build": "turbo run build && pnpm build:release",
|
|
"build:release": "tsup",
|
|
"dev": "turbo run dev",
|
|
"test": "turbo run test",
|
|
"lint": "turbo run lint",
|
|
"clean": "turbo run clean && rm -rf node_modules dist",
|
|
"prepare": "husky",
|
|
"prepublishOnly": "pnpm build:release"
|
|
},
|
|
"keywords": [
|
|
"browser",
|
|
"automation",
|
|
"ai",
|
|
"agent",
|
|
"chrome",
|
|
"extension",
|
|
"cli",
|
|
"puppeteer",
|
|
"playwright",
|
|
"cdp",
|
|
"mcp"
|
|
],
|
|
"author": "",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/epiral/bb-browser.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/epiral/bb-browser/issues"
|
|
},
|
|
"homepage": "https://github.com/epiral/bb-browser#readme",
|
|
"engines": {
|
|
"node": ">=18.0.0"
|
|
},
|
|
"packageManager": "pnpm@9.15.0",
|
|
"dependencies": {
|
|
"@bufbuild/protobuf": "^2.11.0",
|
|
"@connectrpc/connect": "^2.1.1",
|
|
"@connectrpc/connect-node": "^2.1.1",
|
|
"@modelcontextprotocol/sdk": "^1.12.1",
|
|
"@pinixai/hub-client": "^0.1.2",
|
|
"ajv": "^8.17.1",
|
|
"ajv-formats": "^3.0.1",
|
|
"ws": "^8.18.0"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^9.23.0",
|
|
"eslint": "^9.23.0",
|
|
"globals": "^16.0.0",
|
|
"husky": "^9.1.7",
|
|
"tsup": "^8.0.0",
|
|
"tsx": "^4.20.6",
|
|
"turbo": "^2.3.0",
|
|
"typescript": "^5.7.0",
|
|
"typescript-eslint": "^8.29.0"
|
|
}
|
|
}
|