[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-109665":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":12,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":14,"stars7d":15,"stars30d":16,"stars90d":14,"forks30d":14,"starsTrendScore":14,"compositeScore":17,"rankGlobal":9,"rankLanguage":9,"license":18,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":21,"hasPages":19,"topics":22,"createdAt":9,"pushedAt":30,"updatedAt":31,"readmeContent":32,"aiSummary":33,"trendingCount":14,"starSnapshotCount":14,"syncStatus":34,"lastSyncTime":35,"discoverSource":36},109665,"dsh-doyourweb","SheepofSheep\u002Fdsh-doyourweb","SheepofSheep","Reference and control existing Chrome and Edge tabs from DeepSeek Harness (DSH plugin + companion extension)",null,"JavaScript",60,3,51,0,1,8,43.11,"MIT License",false,"main",true,[23,24,25,26,27,28,29],"cdp","chrome-extension","deepseek-harness","dsh","dsh-plugin","edge-extension","playwright","2026-11-19 03:47:06","2026-11-17 11:09:02","# dsh-doyourweb\n\nReference and control your existing, logged-in Chrome and Edge tabs from DeepSeek Harness, with compact page context and batched browser actions.\n\nVersion `0.2.2` refreshes open `@` \u002F `\u002F` browser candidates and the webpage sidebar when the companion extension connects, disconnects or changes tabs, without requiring a different search query. It also fixes empty application lists on Windows when a protected process has unreadable identity metadata. The sidebar and `@` menu continue listing other running application windows. Browser actions retain execution evidence after failures, can narrow their post-action snapshot with `observation`, and optionally check one final `expect` condition. See [browser workflow and diagnostics](docs\u002Fbrowser-workflow.md#english), [optimization decisions](docs\u002Farchitecture-optimization.md#english) and [app control](docs\u002Fannotations-and-apps.md#english).\n\n[![CI](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Factions\u002Fworkflow\u002Fstatus\u002FSheepofSheep\u002Fdsh-doyourweb\u002Fci.yml?branch=main&label=CI)](https:\u002F\u002Fgithub.com\u002FSheepofSheep\u002Fdsh-doyourweb\u002Factions\u002Fworkflows\u002Fci.yml)\n[![License](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-MIT-green)](LICENSE)\n[![Node.js](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FNode.js-%3E%3D22-339933)](package.json)\n[![Playwright](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FPlaywright-1.64.0-2EAD33)](package.json)\n\nEnglish | [简体中文](README.zh-CN.md)\n\n[Local Demo](#local-demo) · [Quick Start](#quick-start) · [Usage](#usage)\n\n![Current browser sidebar component](docs\u002Fbrowser-panel.png)\n\n*Current browser panel rendered with the installed DSH React and UI primitives, using sample tabs. This is a component preview, not a full DSH host screenshot.*\n\n---\n\n## 01 · Introduction\n\nBrowser tasks often depend on pages you have already opened and accounts you have already signed into. dsh-doyourweb connects those tabs to DeepSeek Harness instead of launching a separate automation browser or exporting cookies.\n\nThe project has two parts: a DSH plugin and a companion Manifest V3 extension. The plugin adds browser references to the native `@` and `\u002F` menus; the extension supplies tab metadata and browser control. Once paired, the extension reconnects in the background without keeping its popup open.\n\nCurrent version: **0.2.2** for both the package and browser extension. See the [changelog](CHANGELOG.md).\n\n## 02 · Preview\n\n1. Use `\u002Fbrowser` to open the connection page and locate the extension folder.\n2. Load the extension in Chrome or Edge, then approve its matching four-digit pairing code.\n3. Open **Browser** from the left navigation, or use `@`, to add an existing page to the current chat draft. Send the draft when ready.\n\n![Current page annotation toolbar](docs\u002Fannotation-toolbar.png)\n\nThe real annotation toolbar rendered on a local test page. Collapse keeps the toolbar visible; dock leaves a small edge button and preserves the draft and position.\n\n![Local browser extension pairing page](docs\u002Fsetup-page.png)\n\nThe real local connection page rendered with a sample pairing request. These previews are not an automation recording.\n\n\u003Ca id=\"local-demo\">\u003C\u002Fa>\n\n### Local Demo\n\nThere is no public hosted demo. After the DSH plugin starts, its default local connection page is [http:\u002F\u002F127.0.0.1:43187\u002Fsetup](http:\u002F\u002F127.0.0.1:43187\u002Fsetup). Browser control runs through this local bridge and the installed extension.\n\n## 03 · Core Features\n\n| Feature | Current behavior |\n| --- | --- |\n| Existing tabs | Reuses regular HTTP\u002FHTTPS and authorized local file:\u002F\u002F tabs and their login state in Chrome and Edge. |\n| Native references | Lists page titles, sites and icons through DSH's `@` and `\u002F` menus. |\n| Browser sidebar | Native left navigation opens a session-owned right panel for pages, running apps and local diagnostics. Picks append references to the current draft without sending. |\n| Compact context | Page\u002Fapp context, annotations and manually referenced logs appear as expandable chips; their serialized model context is preserved. |\n| Compact reading | Accessibility snapshots support selector\u002Fquery narrowing and cursor pagination. Initial reference context shares a default 2,400-character budget. |\n| Batched actions | Runs up to 12 typed actions per call, including uploads; stops on failure\u002Fdocument navigation. Query\u002Fhash routes only continue observations or target-free steps. |\n| Result extraction | Returns selected `text`, `value` and `href` fields, with up to 20 rows per extraction. |\n| Scoped receipts | `summary` skips the next snapshot; `handle` returns a fresh ID\u002Fcursor without text. `observation` explicitly narrows the post-action snapshot. Read the handle cursor before using element refs. |\n| Final checks | Optional `expect` checks visibility, contained text, an exact input value or exact URL once after the batch. The result stays separate from completed actions and does not replay effects. |\n| File uploads | Hidden inputs, custom choosers and iframe selectors; requires a selected tab and exact user-supplied absolute file paths. |\n| Drag and drop | Drag between elements in the same frame, or drop authorized local files and MIME data onto an element. |\n| Network metadata | Explicit start\u002Fstop capture, 200-entry capacity, filtered pages of 10 (up to 20). No query strings, credentials, headers or bodies. |\n| Local diagnostics | Bounded in-memory command stages, duration and error codes; disable, clear, export or explicitly add logs to the draft. |\n| Browser stop | Input displays private stop controls and a brief target highlight; cancellation stops later steps and reports uncertain effects. |\n| Screenshots | Saves PNG files locally and returns their paths instead of embedding base64. |\n| Background connection | Saves pairing settings, reconnects automatically, and releases idle debugger connections. |\n| Element annotations | Stage multiple comments with selectors, styles, bounds and optional crops; edit or delete staged notes. The session-bound queue survives collapse, docking and reattachment. Confirm notes into the chat draft, then send from chat. |\n| Running apps | Search visible Windows application windows with `@`, with cached program icons. References include process lifetime and window identity. |\n| MCP \u002F CLI | Known official connectors, MCP Registry and npm CLI discovery, stdio \u002F Streamable HTTP, and reviewed custom configurations. |\n| Installation approval | Native DSH questions or a local `\u002Fapps` page; exact package versions and npm lifecycle scripts disabled. Optional repeat-install bypass is restricted to reviewed, trusted sources. |\n| Desktop fallback | Cua Driver MCP, bounded text-only reads by default, on-demand images, cached checks and automatic launch for selected apps and explicit stops for repeated polling. |\n| Mouse input | `app_mouse` batches up to 8 clicks, double\u002Fright clicks, scrolls and drags from one visual snapshot; separate foreground approval. |\n\nBrowser budgets count JavaScript characters, including JSON escaping and metadata. App tool `limit` values bound body text; status, steps and image-path metadata are additional. MCP results omit duplicate JSON, and CLI stdout\u002Fstderr share one body budget. Character counts are not model tokens, and output budgets do not limit DOM traversal time.\n\n### WebMCP-First Control (Experimental)\n\nVersion `0.1.1` checks for page-provided WebMCP tools before collecting a DOM snapshot. It prefers tools that cover the task, falls back to DOM when needed, and reuses unchanged catalogs and validators. Successful calls return a fresh token for the next call without relisting schemas. WebMCP requires a compatible browser API and site-provided tools; ordinary pages keep using DOM automation. See the [experiment guide](docs\u002Fwebmcp-experiment.md) for requirements, tools and local browser tests.\n\n## 04 · Architecture\n\n| Layer | Technology |\n| --- | --- |\n| DSH host plugin | Node.js 22+, JavaScript ESM, Cordis integration |\n| Native client UI | React and DSH UI primitives |\n| Browser engine | Playwright Core 1.64.0, Chrome DevTools Protocol |\n| Site tools | `document.modelContext`, Ajv 8.20.0 argument validation |\n| Local bridge | WebSocket (`ws`), Zod validation |\n| Browser extension | Manifest V3, `chrome.tabs`, `chrome.debugger` |\n| App connectors | Official MCP SDK 1.32.1, stdio \u002F Streamable HTTP, literal CLI argument arrays |\n| Build and checks | esbuild, Node.js test runner, GitHub Actions |\n\n```mermaid\nflowchart LR\n    subgraph DSH[\"DeepSeek Harness\"]\n        UI[\"Native @ \u002F menus\"]\n        Host[\"Host plugin\"]\n        Grants[\"Conversation grants and context budget\"]\n        Engine[\"Playwright engine\"]\n        Bridge[\"Loopback WebSocket \u002F CDP relay\"]\n    end\n    subgraph Browser[\"Existing Chrome \u002F Edge\"]\n        Extension[\"Manifest V3 extension\"]\n        Tabs[\"Logged-in HTTP\u002FHTTPS tabs\"]\n    end\n    UI \u003C-->|\"Strict Remote RPC\"| Host\n    Host --> Grants --> Engine\n    Engine \u003C-->|\"CDP\"| Bridge\n    Bridge \u003C-->|\"Origin check and pairing token\"| Extension\n    Extension \u003C-->|\"Tab inventory and debugger\"| Tabs\n    Engine -->|\"Snapshots, receipts, PNG paths\"| Host\n    Host --> Apps[\"App discovery and human approval\"]\n    Apps --> Structured[\"Official \u002F community MCP and CLI\"]\n    Apps --> Desktop[\"Cua Driver desktop fallback\"]\n```\n\nOnly tabs referenced by the user in the current conversation are available to the model's browser tools. Page content is treated as untrusted data, not instructions or permission.\n\n\u003Ca id=\"quick-start\">\u003C\u002Fa>\n\n## 05 · Quick Start\n\n### Requirements\n\n- Node.js 22+ and npm.\n- DeepSeek Harness; plugin API compatibility has been checked against `0.2.0-rc.2`.\n- Chromium-based Chrome or Edge 125+, with developer mode available for loading an unpacked extension.\n\n### Install the DSH Plugin\n\nFor npm installation, open **Plugins > Add Plugin** in DSH, select the **official npm registry**, and enter:\n\n```text\ndsh-doyourweb\n```\n\nThis requires a published package. If the registry returns `404`, use the local installation below. Mirrors may take time to sync a newly published version.\n\n### Build and Install Locally\n\n```sh\ngit clone --branch ver0.2.2 https:\u002F\u002Fgithub.com\u002FSheepofSheep\u002Fdsh-doyourweb.git\ncd dsh-doyourweb\nnpm ci\nnpm run build\n```\n\nIn DSH, open **Plugins > Add Plugin** and enter the **absolute path to this built project directory**. The bridge starts when the plugin activates. No separate development server is required.\n\n### Connect the Browser\n\n1. Enter `\u002Fbrowser` in DSH and open the local connection page.\n2. Open `edge:\u002F\u002Fextensions` or `chrome:\u002F\u002Fextensions`, enable developer mode, and load the project's `extension\u002F` folder as an unpacked extension.\n3. Compare the extension's four-digit badge code with the pending request on the connection page, then approve it.\n4. Return to DSH, select a tab with `@`, and send your request.\n\nThe extension popup and pairing page do not need to remain open. Installing the DSH plugin does not install the browser extension automatically.\n\nAfter upgrading the DSH plugin, fully quit DSH from its tray\u002Fbackground process and relaunch it so the new host module is loaded.\n\n### Configuration\n\nDefaults are declared in [cordis.patch.yml](cordis.patch.yml):\n\n| Setting | Default | Purpose |\n| --- | --- | --- |\n| `port` | `43187` | Local bridge port |\n| `snapshotChars` | `2400` | Page-read and initial reference-context budget |\n| `idleTimeoutMs` | `120000` | Idle time before releasing the debugger connection |\n\nThe data directory is `\u003CDSH_HOME>\u002Fbrowser-tabs\u002F`, or `~\u002F.dsh\u002Fbrowser-tabs\u002F` when `DSH_HOME` is unset. An explicit plugin `home` setting takes precedence. Set environment variables on the DSH process; the plugin does not require its own model API key.\n\n\u003Ca id=\"usage\">\u003C\u002Fa>\n\n### Usage\n\nThe left navigation's **浏览器** button opens the native right panel with pages, apps and diagnostics. Clicking an item inserts a reference into the current draft; it does not send it. The `@` menu remains available. Page\u002Fapp context, annotations and explicitly referenced logs display as compact expandable chips while preserving their full model payload. Diagnostics stay in local memory (600 metadata entries), can be paused, cleared or exported, and only enter a draft when you choose to reference them. The annotation toolbar can collapse its editor or park at the page edge; parking stops picking and keeps the unfinished note and position for restoration.\n\nAfter referencing a page, you can ask:\n\n> Read the result list on this page and collect its titles and links. Do not submit any forms.\n\n| Model tool | Use |\n| --- | --- |\n| `browser_read` | Default `mode: \"auto\"` discovers WebMCP tools first, otherwise returns a DOM snapshot. Use `mode: \"dom\"` when site tools do not cover the task; narrow with `selector`, `query` or `depth`. `cursor` paginates DOM content; `limit` accepts 400-8,000 characters. |\n| `browser_act` | Use the latest snapshot ID to click, fill, press, select, check, hover, scroll, navigate, go back\u002Fforward, wait, extract, upload, drag or drop. `drag` uses source `ref`\u002F`selector` and destination `toRef`\u002F`toSelector` in the same frame. `drop` accepts user-authorized local `files` and\u002For MIME `data`. |\n| `browser_upload` | Upload 1-20 user-specified absolute local file paths through a file input or chooser button, with optional iframe selector `frame`. Requires a current snapshot. Files may upload immediately. |\n| `browser_capture` | Save a screenshot when visual inspection is needed. |\n| `browser_network_requests` | Explicitly start, filter\u002Flist, inspect details, clear or stop network metadata capture. |\n| `browser_network_requests` | Explicit `action:start` captures up to 200 request metadata entries in memory. `list` supports `query`, `errorsOnly`, `includeStatic`, `afterId` and `limit` (max 20). `details` with `requestId` adds timing\u002FMIME metadata; `clear` clears entries and `stop` removes listeners. No prior requests, URL credentials\u002Fquery\u002Ffragment, headers or bodies are recorded. Idle detach discards the capture. |\n| `browser_webmcp_list` | Discover or narrow page tools with `query`; reuse an existing catalog while it remains valid. |\n| `browser_webmcp_call` | Call a matching page tool using `catalog`, `name` and `arguments`; success returns `nextCatalog` for another call. |\n\nWhen multiple tabs are authorized, pass the selected tab's reference as `tab`. DOM reads may opt into `scope: \"main\"`; default body retains navigation and dialogs. Upload authorization, handle receipts and measured limitations are described in the [optimization guide](docs\u002Farchitecture-optimization.md).\n\n### Annotations and App Control\n\nAfter installing or upgrading, fully exit DSH from the system tray, restart it, and reload the browser extension. For local development, build this working tree and install its absolute directory path. Do not enable the npm copy and local copy on the same port.\n\n- **Annotations:** choose “批注当前页面” in the extension popup, or ask DSH to enable annotations on a referenced tab. Pick an element, write a comment, then press Enter or click “加入聊天草稿”. It appends to the target chat draft with an optional image attachment. Drag the toolbar as needed, collect multiple annotations, then press Enter in chat to send them together. Shift+Enter inserts a newline. The plugin keeps no annotation files or library. Controlled pages also show a top-right annotation button.\n- **Apps:** select a running application with `@Unity` or another program name. DSH discovers connectors with `app_discover`, requests connection\u002Finstallation through `app_connect`, then invokes MCP tools or CLI arguments with `app_call`. A connector found outside discovery can be proposed with its source documentation for human review.\n- **Management:** `\u002Fapps` opens the local application, connector and approval manager. It need not remain open. Files, folders and conversations in `@` each show three previews with expand\u002Fcollapse controls; individual folders retain native navigation.\n- **Fallback:** `app_desktop` uses upstream Cua Driver when structured tools cannot cover the task. Default reads return bounded controls without screenshots. Use `screenshot: true` only for visual grounding; `app_mouse` then supports up to 8 known-target clicks, scrolls or drags without intermediate captures. Missing windows and repeated inspections return `stop: true`. It does not bypass OS permissions.\n\nSee [installation policy, Unity requirements and limitations](docs\u002Fannotations-and-apps.md#english).\n\n\u003Cdetails>\n\u003Csummary>Tool example: read a page, then extract a short result list\u003C\u002Fsummary>\n\nCall `browser_read` for the single authorized tab:\n\n```json\n{\n  \"mode\": \"dom\",\n  \"depth\": 8,\n  \"limit\": 2400\n}\n```\n\nUse the returned snapshot ID in `browser_act`. Replace the selector with one from the actual page:\n\n```json\n{\n  \"snapshot\": \"\u003Clatest snapshot ID>\",\n  \"observe\": \"summary\",\n  \"steps\": [\n    {\n      \"op\": \"extract\",\n      \"selector\": \"a.result-title\",\n      \"fields\": [\"text\", \"href\"],\n      \"maxRows\": 10\n    }\n  ]\n}\n```\n\nThese are model-tool arguments, not shell commands. `summary` does not return a new snapshot; read again before another action call.\n\n\u003C\u002Fdetails>\n\n## 06 · Structure and Technical Details\n\n```text\nsrc\u002F\n  host.js            Plugin lifecycle, tools and conversation context\n  client.js          Native mention and slash-menu sources\n  client-entry.js    React UI and icons\n  bridge.js          Pairing, extension connection and CDP relay\n  engine.js          Snapshots, actions, extraction and screenshots\n  annotations.js     Isolated element picker and acknowledged chat drafts\n  apps\u002F              App inventory, discovery, approval, installation and execution\n  manage.js          Local application and connector management UI\n  webmcp.js          Site-tool discovery, routing, validation and calls\n  grants.js          Conversation-scoped tab authorization\n  protocol.js        Tab references and Remote RPC descriptors\n  output.js          Serialized output budgeting\n  vendor\u002F            Adapted Playwright browser model\nextension\u002F           Manifest V3 extension and popup\nscripts\u002F             Build, integration and compatibility checks\ntest\u002F                Unit tests and fixtures\ndocs\u002Fsetup-page.png  Pairing-page screenshot\ncordis.patch.yml     DSH plugin registration and defaults\nlib\u002F                 Generated build output, not tracked in Git\n```\n\n**Snapshots and actions.** Full snapshot text is cached locally for pagination. Element references require a current snapshot; reads, actions and navigation can invalidate previous references. Calls are serialized per tab. Cancellation reports completed or uncertain steps rather than promising rollback.\n\n**Connection lifetime.** Idle connections detach the debugger without closing the tab. A later read reconnects. Restarting the browser changes tab-reference sessions, so select the page again with `@`.\n\n**Data handling.** Pairing credentials and authorization records live in the local data directory; screenshots are stored under `captures\u002F`. Referenced page excerpts enter DSH's model context and may be sent to your configured model provider. Keep pairing files and screenshots private. Purchases, destructive actions and sensitive submissions require explicit user authorization; the plugin does not provide a separate transaction-confirmation dialog.\n\n\u003Cdetails>\n\u003Csummary>Development checks\u003C\u002Fsummary>\n\n```sh\nnpm run build\nnpm test\nnpx playwright-core install chromium\nnpm run test:browser\nnpm run verify:dsh -- --asar \"\u003Cpath to DeepSeek Harness app.asar>\"\n```\n\nCI is configured for unit tests on Windows and Linux, plus isolated headless Chromium integration on Linux. The badge links to the actual workflow result. Headless checks do not replace end-to-end validation of a daily browser profile and the native DSH UI.\n\n\u003C\u002Fdetails>\n\n## 07 · Roadmap \u002F FAQ \u002F License\n\n### Roadmap\n\nVersion `0.1.3` includes page annotations, app references and MCP-first app control. Further work focuses on real-application compatibility and connector configuration. No release date is promised. Report bugs and discuss changes in [Issues](https:\u002F\u002Fgithub.com\u002FSheepofSheep\u002Fdsh-doyourweb\u002Fissues).\n\n### FAQ\n\n**Do I have to open the extension every time?** No. Pair once; the extension reconnects in the background. Reload it after updating its files.\n\n**Why are some pages missing?** Only regular HTTP\u002FHTTPS and authorized local file:\u002F\u002F tabs are exposed. Browser-internal and incognito pages are excluded. Check that the extension is enabled and paired if no tabs appear.\n\n**What if port 43187 is already in use?** Avoid activating two plugin copies on the same port. Stop the duplicate bridge or change the plugin's `port` setting and reconnect the extension to that port.\n\n**What are the current limits?** The companion extension is loaded unpacked, not installed from a browser store. Firefox and Safari are not supported. Host API compatibility has been checked against DSH `0.2.0-rc.2`; other versions and native UI workflows need their own verification.\n\n### Contributing and License\n\nIssues and pull requests are welcome. Include reproduction steps and relevant DSH\u002Fbrowser versions; remove tokens, private page contents and account data from logs. For code changes, run the checks relevant to the affected behavior.\n\nProject code is licensed under [MIT](LICENSE). Playwright-derived code and Lucide artwork retain their respective licenses; see [NOTICE](NOTICE), [Apache-2.0](extension\u002FAPACHE-2.0.txt) and [ISC](extension\u002Ficons\u002FLICENSE).\n","dsh-doyourweb 是一个用于桥接 DeepSeek Harness（DSH）与用户已登录的 Chrome\u002FEdge 浏览器标签页的插件系统，实现对现有网页会话的引用、上下文提取与批量控制。其核心功能包括：通过 CDP 协议获取实时标签页元数据，将现有页面直接注入 DSH 对话上下文（支持 @ \u002F 命令调用），提供带观察断言（observation）和期望校验（expect）的可靠浏览器操作，并在 Windows 等平台兼容受保护进程的窗口枚举。项目由 DSH 插件与 Manifest V3 浏览器扩展协同工作，无需新建无痕窗口或导出 Cookie。适用于需复用登录态、进行网页上下文增强分析、低侵入式 RPA 或 AI 助手集成浏览器操作的场景。",2,"2026-11-24 04:37:06","CREATED_QUERY"]