dia-bridge 0.2.2 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -0
- package/package.json +5 -2
package/README.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
> **先说清楚**:这是一套基于 **MCP** 的桥接方案,不是纯网络协议反代。因为目前 Dia 只有 macOS 和 Windows 桌面端(没有 Linux 版),所以跑 Dia 的机器必须是桌面系统——**当前版本已支持 macOS 与 Windows**,Linux 电脑可以把服务跑在 Mac 或 Windows 宿主机上,再通过 SSH 隧道或 Tailscale 远程连过来用。
|
|
4
4
|
|
|
5
|
+
## 3 步快速上手
|
|
6
|
+
|
|
7
|
+
1. **安装插件**:在 Magpie 发现页搜 `dia-bridge` 点安装,或运行 `magpie plugin add dia-bridge`(也可直接打开 `magpie://plugin?name=dia-bridge`)。
|
|
8
|
+
2. **开 Dia + 授权**:保持 Dia 浏览器打开(放后台即可,不要最小化);macOS 在 **系统设置 → 隐私与安全性 → 辅助功能** 中勾选 **Magpie**(Windows 无需额外授权)。
|
|
9
|
+
3. **直接在 Agent 里用**:在已接入 Magpie 的 Claude Code / Codex / OpenCode 对话中直接说:
|
|
10
|
+
- 「用 `dia-bridge_dia_status` 检查一下 Dia 状态」→ 返回 `ok: true` 即就绪
|
|
11
|
+
- 「用 `dia-bridge_dia_ask` 问 Dia:……」(等待约 15~30 秒拿回完整回答)
|
|
12
|
+
- 「用 `dia-bridge_dia_get_chat_history` 看最近回答」(直读本地日志,秒返回)
|
|
13
|
+
|
|
5
14
|
A Magpie (`kind: "tools"`) / OpenCode plugin that exposes the locally running **Dia** browser AI assistant (macOS `company.thebrowser.dia` / Windows `Dia`) to Claude Code, Codex, OpenCode, and other MCP-capable agents via a single `dia_ask(prompt)` tool.
|
|
6
15
|
|
|
7
16
|
> **Terms of Service & Account Risk Warning / 风险提示**
|
|
@@ -131,6 +140,10 @@ Returns: JSON list of recent `{ contextId, updatedAt, answer }` entries without
|
|
|
131
140
|
- `DIA_CONTEXTS_DIR`: Override the default Dia `AgentServer/contexts` directory (useful for non-default Dia profiles or custom Windows install locations).
|
|
132
141
|
- `DIA_LOG_LEVEL`: Structured diagnostic log level written to `stderr` (`debug` | `info` | `warn` | `error` | `silent`, default `warn`).
|
|
133
142
|
|
|
143
|
+
## 联系与反馈 / Contact
|
|
144
|
+
|
|
145
|
+
有问题、Bug 或建议欢迎联系我的 X (Twitter):[@yedabinbinah](https://x.com/yedabinbinah)
|
|
146
|
+
|
|
134
147
|
## License
|
|
135
148
|
|
|
136
149
|
MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dia-bridge",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "把 Dia 浏览器内置 AI 变成 MCP 工具,给 Claude Code / Magpie 用(支持 macOS / Windows,Linux 可远程连)| Bridge Dia browser AI into MCP tools for Claude Code & Magpie",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.mjs",
|
|
@@ -29,7 +29,10 @@
|
|
|
29
29
|
"accessibility",
|
|
30
30
|
"uia"
|
|
31
31
|
],
|
|
32
|
-
"author":
|
|
32
|
+
"author": {
|
|
33
|
+
"name": "binbin ye",
|
|
34
|
+
"url": "https://x.com/yedabinbinah"
|
|
35
|
+
},
|
|
33
36
|
"license": "MIT",
|
|
34
37
|
"repository": {
|
|
35
38
|
"type": "git",
|