dia-bridge 0.2.0 → 0.2.2

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.
Files changed (2) hide show
  1. package/README.md +0 -15
  2. package/package.json +9 -4
package/README.md CHANGED
@@ -131,21 +131,6 @@ Returns: JSON list of recent `{ contextId, updatedAt, answer }` entries without
131
131
  - `DIA_CONTEXTS_DIR`: Override the default Dia `AgentServer/contexts` directory (useful for non-default Dia profiles or custom Windows install locations).
132
132
  - `DIA_LOG_LEVEL`: Structured diagnostic log level written to `stderr` (`debug` | `info` | `warn` | `error` | `silent`, default `warn`).
133
133
 
134
- ## Known Limitations
135
-
136
- - **Windows verification status**: Windows UI Automation (`ValuePattern.SetValue` with Chinese/Unicode/JSON, readback verification, focus, and button `InvokePattern` / Enter submission) and contexts directory discovery have been verified end-to-end on Windows against live desktop UI controls, but **real Dia on Windows with a logged-in account has not yet been tested directly**. If your Windows Dia installation stores `AgentServer/contexts` at a different path, set `DIA_CONTEXTS_DIR`.
137
- - **Latency & Magpie 55s cap**: Simple Dia replies take ~16s+; complex prompts can exceed Magpie's 55-second tool timeout (`ctx.abort`). `dia_ask` aborts cleanly when `ctx.abort` fires.
138
- - **No concurrency**: Requests are strictly serialized via mutex; Dia can only run one chat turn at a time.
139
- - **Dia must remain open**: Requires an active desktop session with Dia running and an open window.
140
- - **No streaming / system prompt / native tool protocol**: Returns the full reply after it lands on disk.
141
- - **No credential access**: This plugin never reads Dia Keychain/DPAPI items, Firebase tokens, refresh tokens, or device signatures.
142
-
143
- ## Development & Tests
144
-
145
- ```bash
146
- npm test
147
- ```
148
-
149
134
  ## License
150
135
 
151
136
  MIT
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dia-bridge",
3
- "version": "0.2.0",
4
- "description": "Magpie tools plugin & standalone MCP server bridging Dia browser AI via macOS Accessibility (AX) and Windows UI Automation (UIA)",
3
+ "version": "0.2.2",
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",
7
7
  "bin": {
@@ -48,8 +48,13 @@
48
48
  "test": "node --test test/*.test.mjs"
49
49
  },
50
50
  "magpie": {
51
- "name": "dia-bridge",
51
+ "name": "Dia Bridge",
52
52
  "kind": "tools",
53
- "maxConcurrency": 1
53
+ "maxConcurrency": 1,
54
+ "summary": {
55
+ "zh": "把 Dia 浏览器内置 AI 变成 MCP 工具,给 Claude Code / Magpie 用(支持 macOS / Windows,Linux 可远程连)。",
56
+ "en": "Bridge Dia browser AI into MCP tools (dia_ask, dia_status, dia_get_chat_history) for Magpie & Claude Code on macOS and Windows."
57
+ },
58
+ "icon": "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect width='24' height='24' rx='6' fill='%23111827'/><path d='M6 7h4.5a5 5 0 0 1 0 10H6V7zm2.5 2.2v5.6h2a2.8 2.8 0 0 0 0-5.6h-2z' fill='%23FFFFFF'/><circle cx='18' cy='12' r='2' fill='%2338BDF8'/></svg>"
54
59
  }
55
60
  }