inkmap-mcp 0.3.15 → 0.3.16

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "inkmap",
3
3
  "displayName": "Inkmap — Markdown Mind Map & Mermaid 思维导图",
4
- "version": "0.3.15",
4
+ "version": "0.3.16",
5
5
  "description": "Interactive two-way Markdown (.md, .markmap.md) mind map, mindmap, markmap, Mermaid flowchart, diagram, XMind outline & KaTeX editor: auto-opens in the Antigravity side pane with live file write-back. 在右侧面板实时双向编辑 Markdown 思维导图、脑图、流程图、大纲、架构图、组织结构图与鱼骨图。",
6
6
  "logo": "assets/logo.svg",
7
7
  "homepage": "https://zhiyuanv.com/software.html",
@@ -62,7 +62,7 @@ import { homedir, tmpdir } from "node:os";
62
62
  import { dirname, join, sep } from "node:path";
63
63
 
64
64
  // packages/cli/dist/version.js
65
- var INKMAP_VERSION = "0.3.15";
65
+ var INKMAP_VERSION = "0.3.16";
66
66
 
67
67
  // packages/cli/dist/license.js
68
68
  var ZH_LOCALE_RE = /^zh(?:[-_.]|$)/i;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inkmap-codex",
3
- "version": "0.3.15",
3
+ "version": "0.3.16",
4
4
  "description": "Interactive two-way Markdown mind map (markmap), Mermaid flowchart & XMind outline editor | 双向编辑 Markdown 思维导图、脑图、流程图与大纲",
5
5
  "homepage": "https://zhiyuanv.com/software.html",
6
6
  "repository": "https://github.com/zhiyuanvision-lang/InkMap",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
3
  "name": "inkmap-codex",
4
- "version": "0.3.15",
4
+ "version": "0.3.16",
5
5
  "description": "Interactive two-way Markdown mind map (markmap), Mermaid flowchart & XMind outline editor | 双向编辑 Markdown 思维导图、脑图、流程图与大纲",
6
6
  "homepage": "https://zhiyuanv.com/software.html",
7
7
  "repository": "https://github.com/zhiyuanvision-lang/InkMap",
@@ -2,7 +2,7 @@
2
2
 
3
3
  Render and edit local Markdown (`.md` / `.markmap.md`) files as interactive two-way mind maps (Markmap alternative) and Mermaid flowcharts directly inside the **DeepSeek Harness right sidebar**.
4
4
 
5
- ![Inkmap Two-Way Sync Demo](https://www.zhiyuanv.com/gifs/demo-sync-en.gif)
5
+ ![Inkmap Two-Way Sync Demo](https://www.zhiyuanv.com/assets/inkmap/demo-sync-en.gif)
6
6
 
7
7
  ## Quick Start
8
8
 
@@ -12,9 +12,9 @@ Render and edit local Markdown (`.md` / `.markmap.md`) files as interactive two-
12
12
 
13
13
  ## Inline Mermaid Diagrams, 9 Layouts & Presentation Mode
14
14
 
15
- ![Inkmap Inline Mermaid Demo](https://www.zhiyuanv.com/gifs/demo-mermaid-en.gif)
15
+ ![Inkmap Inline Mermaid Demo](https://www.zhiyuanv.com/assets/inkmap/demo-mermaid-en.gif)
16
16
 
17
- ![Inkmap Layouts & Presentation Demo](https://www.zhiyuanv.com/gifs/demo-layouts-en.gif)
17
+ ![Inkmap Layouts & Presentation Demo](https://www.zhiyuanv.com/assets/inkmap/demo-layouts-en.gif)
18
18
 
19
19
  - **Shortcuts**: `Tab` (child), `Enter` (sibling), `Shift+Tab` (parent), `⌘↑/↓` (move), `⌘E` (edit Markdown/Mermaid source), `⌘F` (find & replace), `⌘S` (save).
20
20
  - **Website**: https://www.zhiyuanv.com/software.html?lang=en
@@ -2,7 +2,7 @@
2
2
 
3
3
  将工作区内的本地 Markdown (`.md` / `.markmap.md`) 文件直接在 **DeepSeek Harness 右侧分栏** 渲染为可交互、可双向拖拽编辑的思维导图(Markmap 增强替代)与 Mermaid 流程图。修改导图毫秒级逐字节写回原文件,未改动段落 100% 原样保留。
4
4
 
5
- ![Inkmap 双向实时同步演示](https://www.zhiyuanv.com/gifs/demo-sync-zh.gif)
5
+ ![Inkmap 双向实时同步演示](https://www.zhiyuanv.com/assets/inkmap/demo-sync-zh.gif)
6
6
 
7
7
  ## 🚀 3 秒上手使用指南
8
8
 
@@ -15,12 +15,12 @@
15
15
  ### 1. 节点内嵌 Mermaid 流程图 + LaTeX 公式 + 表格实时编辑
16
16
  在节点下放置 ` ```mermaid ` 代码块,支持直接在导图节点内高清渲染流程图、时序图、状态图,点击 **「编辑流程图源码」**(`⌘E`)即可实时修改重绘,支持独立弹窗无损缩放:
17
17
 
18
- ![Inkmap 内嵌 Mermaid 流程图编辑演示](https://www.zhiyuanv.com/gifs/demo-mermaid-zh.gif)
18
+ ![Inkmap 内嵌 Mermaid 流程图编辑演示](https://www.zhiyuanv.com/assets/inkmap/demo-mermaid-zh.gif)
19
19
 
20
20
  ### 2. 9 种专业结构 · 夜色护眼主题 · 全屏逐节点放映
21
21
  一键切换逻辑结构图、左右思维导图、组织结构图、目录组织图、时间轴、鱼骨图及夜色深色主题;点击 **「演示」** 直接当 PPT 逐节点聚焦汇报,支持导出高清 PNG、矢量 SVG 与离线交互 HTML:
22
22
 
23
- ![Inkmap 多布局、深色主题与演示放映](https://www.zhiyuanv.com/gifs/demo-layouts-zh.gif)
23
+ ![Inkmap 多布局、深色主题与演示放映](https://www.zhiyuanv.com/assets/inkmap/demo-layouts-zh.gif)
24
24
 
25
25
  ## ⌨️ 常用快捷键速查
26
26
 
@@ -42,7 +42,7 @@ var DAY_MS = 24 * 60 * 60 * 1e3;
42
42
  var TRIAL_MS = 7 * DAY_MS;
43
43
 
44
44
  // packages/harness/src/shared.mjs
45
- var packageName = "dsh-inkmap";
45
+ var packageName = true ? "dsh-inkmap" : "dsh-inkmap";
46
46
  var kind = "inkmap-markdown";
47
47
  var actionSlot = "sidebar.right.tab.document.actions";
48
48
  var bodySlot = "sidebar.right.pane.tab";
@@ -77,7 +77,8 @@ var zh = () => {
77
77
  }
78
78
  return false;
79
79
  };
80
- var label = () => zh() ? "\u7528 Inkmap \u6253\u5F00" : "Open in Inkmap";
80
+ var label = () => zh() ? "\u7528 Inkmap \u6253\u5F00\u601D\u7EF4\u5BFC\u56FE" : "Open Mind Map in Inkmap";
81
+ var buttonText = () => zh() ? "Inkmap \u601D\u7EF4\u5BFC\u56FE" : "Inkmap Mind Map";
81
82
  var desktop = () => location.protocol === "dsh-app:" && location.hostname === "app";
82
83
  var actionClass = "inkmap-harness-open";
83
84
  var LEASE_RENEW_MS = 5 * 6e4;
@@ -144,7 +145,7 @@ function apply(ctx) {
144
145
  strokeLinecap: "round",
145
146
  strokeLinejoin: "round",
146
147
  "aria-hidden": true
147
- }, (0, import_react.createElement)("path", { d: "M2 2.75h12v10.5H2zM7.5 2.75v10.5M10 8h2.5m-1.25-1.25v2.5" })), "Inkmap");
148
+ }, (0, import_react.createElement)("path", { d: "M2 2.75h12v10.5H2zM7.5 2.75v10.5M10 8h2.5m-1.25-1.25v2.5" })), buttonText());
148
149
  }
149
150
  function EditorBody({ useTabInfo }) {
150
151
  const { tab } = useTabInfo();
@@ -228,9 +229,10 @@ function apply(ctx) {
228
229
  const style = document.createElement("style");
229
230
  style.textContent = `
230
231
  .${actionClass} { display: inline-flex; align-items: center; gap: 5px; height: 26px;
231
- padding: 0 7px; border: 0; border-radius: 6px; background: transparent; color: inherit;
232
- font: inherit; font-size: 12px; white-space: nowrap; cursor: pointer; }
233
- .${actionClass}:hover { background: var(--dsw-alias-interactive-bg-hover, #8882); }
232
+ padding: 0 9px; border: 1px solid color-mix(in srgb, currentColor 20%, transparent); border-radius: 6px;
233
+ background: color-mix(in srgb, currentColor 8%, transparent); color: inherit;
234
+ font: inherit; font-size: 12px; font-weight: 500; white-space: nowrap; cursor: pointer; }
235
+ .${actionClass}:hover { background: var(--dsw-alias-interactive-bg-hover, color-mix(in srgb, currentColor 14%, transparent)); }
234
236
  .${actionClass}:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
235
237
  `;
236
238
  document.head.append(style);
@@ -59,7 +59,7 @@ import { homedir, tmpdir } from "node:os";
59
59
  import { dirname, join, sep } from "node:path";
60
60
 
61
61
  // packages/cli/dist/version.js
62
- var INKMAP_VERSION = "0.3.15";
62
+ var INKMAP_VERSION = "0.3.16";
63
63
 
64
64
  // packages/cli/dist/license.js
65
65
  var ZH_LOCALE_RE = /^zh(?:[-_.]|$)/i;
@@ -1704,6 +1704,7 @@ var inject = ["webServer", "connection", "sessions", "fs"];
1704
1704
  var webRoot = fileURLToPath(new URL("./web/", import.meta.url));
1705
1705
  var maxBytes = 5 * 1024 * 1024;
1706
1706
  var loopback = /* @__PURE__ */ new Set(["127.0.0.1", "::1", "[::1]", "localhost"]);
1707
+ var bindAllowed = /* @__PURE__ */ new Set([...loopback, "0.0.0.0", "::", "[::]"]);
1707
1708
  var FileUnavailable = class extends Error {
1708
1709
  };
1709
1710
  async function workspaceFile(ctx, address) {
@@ -1798,7 +1799,7 @@ function apply(ctx) {
1798
1799
  async handler(req, res) {
1799
1800
  const rejection = ctx.connection.requestRejection(req);
1800
1801
  if (rejection !== void 0) return json(res, rejection, {});
1801
- if (!loopback.has(ctx.webServer.host) || !loopback.has(req.socket.remoteAddress?.replace(/^::ffff:/, ""))) {
1802
+ if (!bindAllowed.has(ctx.webServer.host) || !loopback.has(req.socket.remoteAddress?.replace(/^::ffff:/, ""))) {
1802
1803
  return json(res, 403, {});
1803
1804
  }
1804
1805
  if (req.method !== "POST" && req.method !== "DELETE") return json(res, 405, {});
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-inkmap",
3
- "version": "0.3.15",
3
+ "version": "0.3.16",
4
4
  "description": "Inkmap 思维导图 — 在 DeepSeek Harness 中将本地 Markdown 实时渲染为可双向编辑的思维导图 (Markmap) 与 Mermaid 流程图 / Interactive two-way Markdown mind map & Mermaid flowchart editor for DeepSeek Harness.",
5
5
  "type": "module",
6
6
  "icon": "./icon.svg",
@@ -8,7 +8,7 @@
8
8
  "homepage": "https://zhiyuanv.com/software.html",
9
9
  "repository": {
10
10
  "type": "git",
11
- "url": "https://github.com/zhiyuanvision-lang/InkMap.git",
11
+ "url": "git+https://github.com/zhiyuanvision-lang/InkMap.git",
12
12
  "directory": "packages/harness"
13
13
  },
14
14
  "author": "Zhiyuan Vision <support@zhiyuanv.com>",
@@ -111,7 +111,7 @@ var import_node_os = require("node:os");
111
111
  var import_node_path = require("node:path");
112
112
 
113
113
  // packages/cli/src/version.ts
114
- var INKMAP_VERSION = "0.3.15";
114
+ var INKMAP_VERSION = "0.3.16";
115
115
 
116
116
  // packages/cli/src/license.ts
117
117
  var ZH_LOCALE_RE = /^zh(?:[-_.]|$)/i;
@@ -2,7 +2,7 @@
2
2
  "name": "inkmap-vscode",
3
3
  "displayName": "%displayName%",
4
4
  "description": "%description%",
5
- "version": "0.3.15",
5
+ "version": "0.3.16",
6
6
  "publisher": "inkmap",
7
7
  "homepage": "https://zhiyuanv.com/software.html",
8
8
  "repository": {
package/dist/cli.cjs CHANGED
@@ -466,7 +466,7 @@ var INKMAP_VERSION;
466
466
  var init_version = __esm({
467
467
  "packages/cli/dist/version.js"() {
468
468
  "use strict";
469
- INKMAP_VERSION = "0.3.15";
469
+ INKMAP_VERSION = "0.3.16";
470
470
  }
471
471
  });
472
472
 
package/dist/codex.html CHANGED
@@ -936,7 +936,7 @@ ${Ye}`}async function si(at){var Qn;if(Ce(),!R.allow("export"))return;(Qn=n.trac
936
936
  `);r=`${us("chatContextLines",{file:this.currentFile,start:o+1,end:u+1})}
937
937
  \`\`\`markdown
938
938
  ${A}
939
- \`\`\``}const s=this.app.getHostCapabilities();s!=null&&s.updateModelContext?this.app.updateModelContext({content:[{type:"text",text:r}]}).catch(()=>{}):s!=null&&s.message&&this.app.sendMessage({role:"user",content:[{type:"text",text:r}]}).catch(()=>{})}license(){return this.licenseCheck??(this.licenseCheck=this.callTool("inkmap_access").then(e=>ujr(e)).finally(()=>{this.licenseCheck=void 0}))}async checkout(e){if(e!=="restore")throw new Error("Only account restoration is supported.");const{url:r}=await this.callTool("inkmap_restore_access",{locale:this.locale});if(typeof r!="string"||new URL(r).protocol!=="https:")throw new Error("Invalid account link.");if((await this.app.openLink({url:r})).isError)throw new Error("Unable to open account login.")}async signOut(){await this.callTool("inkmap_disconnect_access")}onLicenseChange(e){const r=()=>void this.license().then(e).catch(()=>{}),s=window.setInterval(r,2e3);window.addEventListener("focus",r),window.addEventListener("pagehide",()=>{window.clearInterval(s),window.removeEventListener("focus",r)},{once:!0})}async openInBrowser(){await this.callTool("inkmap_open_browser",{...this.currentFile&&{file:this.currentFile}})}async saveFile(e,r){var a;const s=pxn(r);if(s&&((a=this.app.getHostCapabilities())!=null&&a.downloadFile)){const{isError:o}=await this.app.downloadFile({contents:[{type:"resource",resource:{uri:"file:///"+encodeURIComponent(e),mimeType:s.mimeType,blob:s.blob}}]});if(!o)return!0}return y7r(e,r)}}const _M=cft(Tc("正在连接 Inkmap 思维导图面板…","Connecting to Inkmap mind map panel…")),Hp=new b8r({name:"Inkmap",version:"0.3.15"},{},{autoResize:!1}),hce=new V8r(Hp);let pP=!1;function $ft(n){var a;if(hce.resources||pP)return;const e=((a=Hp.getHostVersion())==null?void 0:a.name)??"";if(/antigravity/i.test(e)||(n==null?void 0:n.displayMode)==="fullscreen")return;const r=n!=null&&n.containerDimensions&&"maxHeight"in n.containerDimensions&&typeof n.containerDimensions.maxHeight=="number"?n.containerDimensions.maxHeight:void 0,s=r?Math.min(Math.max(420,r),640):560;document.documentElement.style.minHeight=`${s}px`,document.body.style.minHeight=`${s}px`,Hp.sendSizeChanged({height:s}).catch(()=>{})}function GTn(n){var e;$ft(n),n&&((n.theme==="light"||n.theme==="dark")&&txn(n.theme),(e=n.styles)!=null&&e.variables&&nxn(n.styles.variables))}let b3=!1,edt,SL,boe,cCe,Uke;function Ajr(n){if(!(!n||typeof n!="object"))return{...typeof n.path=="string"&&{path:n.path},...typeof n.workspace=="string"&&{workspace:n.workspace}}}function fjr(n){let e=n;b3=!0,pP=!0,_M.close();const r=document.createElement("div");r.id="inkmap-delegated-banner",r.innerHTML=`
939
+ \`\`\``}const s=this.app.getHostCapabilities();s!=null&&s.updateModelContext?this.app.updateModelContext({content:[{type:"text",text:r}]}).catch(()=>{}):s!=null&&s.message&&this.app.sendMessage({role:"user",content:[{type:"text",text:r}]}).catch(()=>{})}license(){return this.licenseCheck??(this.licenseCheck=this.callTool("inkmap_access").then(e=>ujr(e)).finally(()=>{this.licenseCheck=void 0}))}async checkout(e){if(e!=="restore")throw new Error("Only account restoration is supported.");const{url:r}=await this.callTool("inkmap_restore_access",{locale:this.locale});if(typeof r!="string"||new URL(r).protocol!=="https:")throw new Error("Invalid account link.");if((await this.app.openLink({url:r})).isError)throw new Error("Unable to open account login.")}async signOut(){await this.callTool("inkmap_disconnect_access")}onLicenseChange(e){const r=()=>void this.license().then(e).catch(()=>{}),s=window.setInterval(r,2e3);window.addEventListener("focus",r),window.addEventListener("pagehide",()=>{window.clearInterval(s),window.removeEventListener("focus",r)},{once:!0})}async openInBrowser(){await this.callTool("inkmap_open_browser",{...this.currentFile&&{file:this.currentFile}})}async saveFile(e,r){var a;const s=pxn(r);if(s&&((a=this.app.getHostCapabilities())!=null&&a.downloadFile)){const{isError:o}=await this.app.downloadFile({contents:[{type:"resource",resource:{uri:"file:///"+encodeURIComponent(e),mimeType:s.mimeType,blob:s.blob}}]});if(!o)return!0}return y7r(e,r)}}const _M=cft(Tc("正在连接 Inkmap 思维导图面板…","Connecting to Inkmap mind map panel…")),Hp=new b8r({name:"Inkmap",version:"0.3.16"},{},{autoResize:!1}),hce=new V8r(Hp);let pP=!1;function $ft(n){var a;if(hce.resources||pP)return;const e=((a=Hp.getHostVersion())==null?void 0:a.name)??"";if(/antigravity/i.test(e)||(n==null?void 0:n.displayMode)==="fullscreen")return;const r=n!=null&&n.containerDimensions&&"maxHeight"in n.containerDimensions&&typeof n.containerDimensions.maxHeight=="number"?n.containerDimensions.maxHeight:void 0,s=r?Math.min(Math.max(420,r),640):560;document.documentElement.style.minHeight=`${s}px`,document.body.style.minHeight=`${s}px`,Hp.sendSizeChanged({height:s}).catch(()=>{})}function GTn(n){var e;$ft(n),n&&((n.theme==="light"||n.theme==="dark")&&txn(n.theme),(e=n.styles)!=null&&e.variables&&nxn(n.styles.variables))}let b3=!1,edt,SL,boe,cCe,Uke;function Ajr(n){if(!(!n||typeof n!="object"))return{...typeof n.path=="string"&&{path:n.path},...typeof n.workspace=="string"&&{workspace:n.workspace}}}function fjr(n){let e=n;b3=!0,pP=!0,_M.close();const r=document.createElement("div");r.id="inkmap-delegated-banner",r.innerHTML=`
940
940
  <style id="inkmap-delegated-style">
941
941
  :root.ink-banner-collapsed, :root.ink-banner-collapsed body {
942
942
  margin: 0 !important; padding: 0 !important;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inkmap-mcp",
3
- "version": "0.3.15",
3
+ "version": "0.3.16",
4
4
  "description": "Interactive two-way Markdown mind map (markmap) & Mermaid flowchart editor / MCP App for Claude, Codex, Antigravity, Cursor, VS Code, Qoder & DeepSeek Harness | Markdown 双向思维导图、脑图、流程图与大纲",
5
5
  "mcpName": "io.github.zhiyuanvision-lang/inkmap-markdown-mindmap-markmap",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
package/server.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "name": "io.github.zhiyuanvision-lang/inkmap-markdown-mindmap-markmap",
4
4
  "title": "Inkmap — Editable Mindmap, Markmap, Mind Map & Mermaid 思维导图/脑图",
5
5
  "description": "Two-way Markdown mindmap (markmap), Mermaid flowchart & outline MCP App | 双向思维导图/脑图/流程图/大纲",
6
- "version": "0.3.15",
6
+ "version": "0.3.16",
7
7
  "websiteUrl": "https://zhiyuanv.com/software.html",
8
8
  "icons": [
9
9
  {
@@ -22,7 +22,7 @@
22
22
  {
23
23
  "registryType": "npm",
24
24
  "identifier": "inkmap-mcp",
25
- "version": "0.3.15",
25
+ "version": "0.3.16",
26
26
  "transport": {
27
27
  "type": "stdio"
28
28
  },