Repository navigation
Releases: deqingLv/dsh-chrome-attach
Releases · deqingLv/dsh-chrome-attach
Release list
v0.2.8 — 页面标题与地址写入草稿
新增 · Added
- 页面标题与地址会一起进到草稿里。 现在点一次「附加 Chrome」,除了截图,输入框里还会多出一行:
Chrome 标签页:<标题> — <页面地址>,模型能直接看到你指的是哪个页面,不用再手打 URL。 - Page title and URL now land in the draft together with the screenshot: one pick writes
Chrome tab: <title> — <url>next to the thumbnail, so the model knows which page you mean.
实现 · How
- 通过输入框的
inputActions门面插入(captureInsertion()+insertText()),插入点就是光标处;门面处于裁决/提交阶段或草稿版本已变时,会安静跳过。 - The line is inserted through the composer's
inputActionsfacade at the caret; the pick is still a normal attach, so the line stays editable and survives a reload.
说明 · Notes
- 仍然不发送任何网络请求:截图在本机通过 CDP / chrome-bridge 完成,失败时降级为 macOS 窗口截图。
- No network calls: capture happens locally via CDP or chrome-bridge, degrading to a macOS window shot.
- 需要带有
slots/inputActions的 DSH 版本;老版本上截图照常,但不会写入这一行。
Full Changelog: v0.2.7...v0.2.8
v0.2.7
Install
- Download
dsh-chrome-attach-0.2.7.tgzbelow. - DSH → Plugins → Add plugin → paste the tarball's absolute path.
- Refresh the window (
Cmd+R) or restart DSH.
What it does
Attach the current Chrome tab to the conversation from the composer + menu (or /attach). The screenshot lands in the draft as an image attachment and is only sent when you press Enter.
Three capture tiers, auto-degrading — no bridge, extension or Chrome flags required:
| Tier | Image | Needs |
|---|---|---|
bridge |
tab content | dsh-chrome-bridge + DSH Bridge extension |
cdp |
tab content | Chrome's Remote debugging switch |
window |
whole Chrome window | macOS + Screen Recording |
Highlights in 0.2.7
cdp: connect through Chrome's own Remote debugging switch (chrome://inspect/#remote-debugging) — normal profile, logins and extensions stay untouched.cdp: one browser-level DevTools connection per DSH process, reused across clicks and closed on teardown.- README rewritten in English and Chinese.
Full changelog: CHANGELOG.md