mirror of
https://github.com/jackwener/OpenCLI.git
synced 2026-09-14 18:25:42 +08:00
01b8b6b5bf
P0 Critical: - #1 Fix double IIFE wrapping: unified wrapForEval() replaces normalizeEvaluateSource + ad-hoc wrap in page.evaluate() - #2 Fix navigate race: check tab.status before addListener, reduced timeout 30s→15s P1 Should Fix: - #8 Remove unused permissions (scripting, host_permissions, content_scripts) - #10 Add retry (3x, 500ms) + timeout (30s) to sendCommand() P2 Cleanup: - #3 Extract isWebUrl() to safely handle undefined tab.url - #4 Sanitize maxDepth with Math.max/min bounds - #6 Delete empty src/daemon/ directory - #7 Remove dead createJsonRpcRequest + its test - #9 Remove stale IIFE-mode comment - #11 Validate body.id in daemon request handler - #12 Guard ensureAttached: detach+re-attach on 'already attached' - #14 Extract _tabOpt() helper (removes 13x spread duplication) - #15 Add verbose warning for unsupported consoleMessages() All 35 unit tests pass.
32 lines
744 B
JSON
32 lines
744 B
JSON
{
|
|
"manifest_version": 3,
|
|
"name": "opencli Browser Bridge",
|
|
"version": "0.1.0",
|
|
"description": "Bridge between opencli CLI and your browser — execute commands, read cookies, manage tabs.",
|
|
"permissions": [
|
|
"debugger",
|
|
"tabs",
|
|
"cookies",
|
|
"activeTab",
|
|
"alarms"
|
|
],
|
|
"background": {
|
|
"service_worker": "dist/background.js",
|
|
"type": "module"
|
|
},
|
|
"icons": {
|
|
"16": "icons/icon-16.png",
|
|
"32": "icons/icon-32.png",
|
|
"48": "icons/icon-48.png",
|
|
"128": "icons/icon-128.png"
|
|
},
|
|
"action": {
|
|
"default_title": "opencli Browser Bridge",
|
|
"default_icon": {
|
|
"16": "icons/icon-16.png",
|
|
"32": "icons/icon-32.png"
|
|
}
|
|
},
|
|
"homepage_url": "https://github.com/jackwener/opencli"
|
|
}
|