inkmap-mcp 0.2.8 → 0.2.9
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/dist/codex.html
CHANGED
|
@@ -813,7 +813,7 @@ ${kn}`}async function io(mt){if(fr(),!ge.allow("export"))return;const kn=He.repl
|
|
|
813
813
|
`),u=`来自 \`${this.currentFile}\`(第 ${s+1}–${a+1} 行):
|
|
814
814
|
\`\`\`markdown
|
|
815
815
|
${o}
|
|
816
|
-
\`\`\``,A=this.app.getHostCapabilities();A!=null&&A.updateModelContext?this.app.updateModelContext({content:[{type:"text",text:u}]}).catch(()=>{}):A!=null&&A.message&&this.app.sendMessage({role:"user",content:[{type:"text",text:u}]}).catch(()=>{})}license(){return this.licenseCheck??(this.licenseCheck=this.callTool("inkmap_access").then(e=>{const r=Dgn(e);return this.currentLicense=r,r}).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");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"),this.currentLicense={pro:!1}}onLicenseChange(e){const r=()=>void this.license().then(e).catch(()=>{}),s=window.setInterval(r,4500);window.addEventListener("focus",r),window.addEventListener("pagehide",()=>{window.clearInterval(s),window.removeEventListener("focus",r)},{once:!0})}async ads(){return[]}async saveFile(e,r){var a;const s=/^data:(image\/(?:png|svg\+xml));base64,([\s\S]+)$/.exec(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[1],blob:s[2]}}]});if(!o)return!0}return G8r(e,r)}}const _M=ift(cc("正在连接 Inkmap 思维导图面板…","Connecting to Inkmap mind map panel…")),l1=new r8r({name:"Inkmap",version:"0.2.
|
|
816
|
+
\`\`\``,A=this.app.getHostCapabilities();A!=null&&A.updateModelContext?this.app.updateModelContext({content:[{type:"text",text:u}]}).catch(()=>{}):A!=null&&A.message&&this.app.sendMessage({role:"user",content:[{type:"text",text:u}]}).catch(()=>{})}license(){return this.licenseCheck??(this.licenseCheck=this.callTool("inkmap_access").then(e=>{const r=Dgn(e);return this.currentLicense=r,r}).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");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"),this.currentLicense={pro:!1}}onLicenseChange(e){const r=()=>void this.license().then(e).catch(()=>{}),s=window.setInterval(r,4500);window.addEventListener("focus",r),window.addEventListener("pagehide",()=>{window.clearInterval(s),window.removeEventListener("focus",r)},{once:!0})}async ads(){return[]}async saveFile(e,r){var a;const s=/^data:(image\/(?:png|svg\+xml));base64,([\s\S]+)$/.exec(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[1],blob:s[2]}}]});if(!o)return!0}return G8r(e,r)}}const _M=ift(cc("正在连接 Inkmap 思维导图面板…","Connecting to Inkmap mind map panel…")),l1=new r8r({name:"Inkmap",version:"0.2.9"},{},{autoResize:!1}),oce=new T8r(l1);let wae=!1;function Xft(n){var a;if(oce.resources||wae)return;const e=((a=l1.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`,l1.sendSizeChanged({height:s}).catch(()=>{})}function vTn(n){var e;Xft(n),n&&((n.theme==="light"||n.theme==="dark")&&WMn(n.theme),(e=n.styles)!=null&&e.variables&&VMn(n.styles.variables))}let b3=!1,qft,gH,moe,Rke;function bOr(n){if(!(!n||typeof n!="object"))return{...typeof n.path=="string"&&{path:n.path},...typeof n.workspace=="string"&&{workspace:n.workspace}}}function vOr(n){b3=!0,wae=!0,_M.close();const e=n.currentFile?n.currentFile.split(/[\\/]/).pop()||n.currentFile:"Markdown",r=document.createElement("div");r.id="inkmap-delegated-banner",r.innerHTML=`
|
|
817
817
|
<style id="inkmap-delegated-style">
|
|
818
818
|
:root.ink-banner-collapsed, :root.ink-banner-collapsed body {
|
|
819
819
|
margin: 0 !important; padding: 0 !important;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "inkmap-mcp",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.9",
|
|
4
4
|
"description": "Interactive Markdown mind map editor & MCP App for Claude, Codex, Antigravity, Cursor, VS Code, and local browsers.",
|
|
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 Mind Map",
|
|
5
5
|
"description": "Interactive two-way Markdown mind map editor & MCP App for local .md and .markmap.md files.",
|
|
6
|
-
"version": "0.2.
|
|
6
|
+
"version": "0.2.9",
|
|
7
7
|
"websiteUrl": "https://www.zhiyuanv.com/software.html",
|
|
8
8
|
"repository": {
|
|
9
9
|
"url": "https://github.com/zhiyuanvision-lang/InkMap",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
{
|
|
14
14
|
"registryType": "npm",
|
|
15
15
|
"identifier": "inkmap-mcp",
|
|
16
|
-
"version": "0.2.
|
|
16
|
+
"version": "0.2.9",
|
|
17
17
|
"transport": {
|
|
18
18
|
"type": "stdio"
|
|
19
19
|
},
|