Files
plugins/packages/chat/package.json
T
Duhu 36141e381e chat 0.1.12: recall tools from unspaced Chinese questions in large MCP catalogs (duhu2000, #872)
The chat page picks up to 12 tools from a large MCP catalog. It now splits unspaced Chinese into two-character terms instead of treating the whole question as one word. Terms are weighted by how rare they are in the catalog (IDF), and a tool named exactly in the question, hyphenated names included, is boosted to the top. The selection moves into lib/tool-selection.mjs with its own tests. page-chat goes to 0.1.12.

Run at d10e93a62832e31ead84ddef438b615b13935e26 merged onto main 1aab125bf, on a separate macOS machine (bun 1.4.2, sandbox HOME):
- packages/chat `bun test`: 75 pass, 1 skip, 0 fail.
- `bun scripts/check.mjs`: exit 0.
- Root `bun test`: 21 fail and 4 errors in devin, zcode and window-warmup, none in chat. Main 1aab125bf shows the same 21 and 4 in the same tests. The devin and zcode ones refuse a HOME that isn't from `mktemp -d`.
- Broken by hand, one at a time: without the exact-name boost, "exact identifier outranks…" goes red. With IDF replaced by 1, "rare term outranks…" goes red. Without `-` in the Latin term regex, the exact-identifier test goes red.

Version: page-chat is served from the dist branch, where the newest is 0.1.11.
2026-11-09 18:38:39 +08:00

69 lines
2.1 KiB
JSON

{
"name": "@magpie-community/page-chat",
"version": "0.1.12",
"description": "在 magpie 窗口里加一个「对话」页面:用 magpie 自己的模型、MCP 服务器、指令和技能聊天,支持图片与 LaTeX。A chat page inside magpie's window: talk with magpie's own models, MCP servers, instructions and skills, with images and LaTeX.",
"author": "Magic_zero (https://github.com/Magiczerowxy)",
"files": [
"index.mjs",
"lib",
"chat",
"page",
"assets",
"serve.mjs",
"start-server.cmd",
"start-server.vbs",
"install-autostart.cmd",
"install-autostart.ps1",
"README.md",
"SERVE.md",
"LICENSE"
],
"keywords": [
"magpie",
"magpie-page",
"magpie-plugin",
"opencode",
"opencode-plugin",
"chat",
"llm"
],
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/magpie-community/plugins.git",
"directory": "packages/chat"
},
"bugs": {
"url": "https://github.com/magpie-community/plugins/issues"
},
"homepage": "https://github.com/Magiczerowxy/magpie-chat#readme",
"engines": {
"magpie": ">=0.1.1340"
},
"magpie": {
"icon": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMjggMTI4IiB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOCI+CiAgPHJlY3Qgd2lkdGg9IjEyOCIgaGVpZ2h0PSIxMjgiIHJ4PSIyOCIgZmlsbD0iIzRmNDZlNSIvPgogIDxwYXRoIGQ9Ik0zMCAzOGg2OGE4IDggMCAwIDEgOCA4djM0YTggOCAwIDAgMS04IDhINjBsLTE2IDE0di0xNGgtMTRhOCA4IDAgMCAxLTgtOFY0NmE4IDggMCAwIDEgOC04eiIgZmlsbD0iI2ZmZiIvPgogIDxnIGZpbGw9IiM0ZjQ2ZTUiPgogICAgPGNpcmNsZSBjeD0iNDYiIGN5PSI1OCIgcj0iNSIvPgogICAgPGNpcmNsZSBjeD0iNjQiIGN5PSI1OCIgcj0iNSIvPgogICAgPGNpcmNsZSBjeD0iODIiIGN5PSI1OCIgcj0iNSIvPgogIDwvZz4KPC9zdmc+Cg==",
"page": {
"title": "Chat",
"titles": {
"zh": "对话",
"zh-TW": "對話",
"ja": "チャット"
},
"file": "page/index.html",
"icon": "assets/icon.svg",
"service": {
"port": 3477,
"option": "port"
}
},
"options": {
"port": 3477
}
},
"scripts": {
"start": "node serve.mjs"
},
"main": "./index.mjs",
"type": "module"
}