inkmap-mcp 0.3.7 → 0.3.10
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 +40 -89
- package/dist/bundles/antigravity/assets/logo.svg +60 -18
- package/dist/bundles/antigravity/rules/AGENTS.md +8 -0
- package/dist/bundles/antigravity/sidecars/inkmap/bridge.js +12 -5
- package/dist/bundles/antigravity/sidecars/inkmap/main.mjs +655 -52
- package/dist/bundles/codex/inkmap-codex/.codex-plugin/plugin.json +1 -1
- package/dist/bundles/codex/inkmap-codex/assets/icon.png +0 -0
- package/dist/bundles/codex/inkmap-codex/plugin.json +1 -1
- package/dist/bundles/harness/README.md +15 -15
- package/dist/bundles/harness/README.zh.md +29 -15
- package/dist/bundles/harness/host.js +128 -47
- package/dist/bundles/harness/icon.svg +60 -18
- package/dist/bundles/harness/package.json +1 -1
- package/dist/bundles/vscode/dist/extension.js +144 -50
- package/dist/bundles/vscode/images/icon.png +0 -0
- package/dist/bundles/vscode/package.json +1 -1
- package/dist/bundles/vscode/package.nls.json +2 -2
- package/dist/bundles/vscode/package.nls.zh-cn.json +2 -2
- package/dist/cli.cjs +475 -102
- package/dist/codex.html +470 -465
- package/dist/web/app.js +29793 -29742
- package/dist/web/index.html +5 -0
- package/package.json +1 -1
- package/server.json +4 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "inkmap-codex",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.10",
|
|
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",
|
|
Binary file
|
|
@@ -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.
|
|
4
|
+
"version": "0.3.10",
|
|
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",
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
# Inkmap — Markdown
|
|
1
|
+
# Inkmap — Two-Way Markdown Mindmap & Mermaid Editor for DeepSeek Harness
|
|
2
2
|
|
|
3
|
-
Render and edit local Markdown (`.md` / `.markmap.md`) files as interactive mind maps (Markmap) and Mermaid flowcharts directly inside the **DeepSeek Harness right sidebar**.
|
|
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
|
-
|
|
5
|
+

|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
- **Real-time two-way Markdown sync**: Add, edit, reorder, or drag-and-drop nodes on the canvas and changes are written back to your local `.md` file immediately while preserving unmodified lines.
|
|
9
|
-
- **Full mind map keyboard shortcuts**: `Tab` (insert child), `Enter` (insert sibling), `Shift+Tab` (insert parent), `⌘↑` / `⌘↓` (move node), `⌘E` (edit node Markdown), `⌘S` (save immediately), and `Backspace` (delete).
|
|
10
|
-
- **Mermaid diagrams, LaTeX math & tables**: Native inline rendering of Mermaid flowcharts/sequence/state diagrams, KaTeX math formulas, and Markdown tables.
|
|
11
|
-
- **9 layouts, 4 themes & PNG/SVG export**: Switch between logical structure, mind map, org chart, catalog, timeline, and fishbone layouts with dark mode and high-resolution export.
|
|
7
|
+
## Quick Start
|
|
12
8
|
|
|
13
|
-
|
|
9
|
+
1. **Open in Right Sidebar**: Preview any `.md` file in DeepSeek Harness and click **Inkmap** in the top-right preview toolbar.
|
|
10
|
+
2. **Full-Screen 3-Column Browser IDE**: Click **Open in Browser** in the Inkmap toolbar for a full-screen Project Tree + Markdown + Mind Map workspace.
|
|
11
|
+
3. **Live Browser Playground**: https://www.zhiyuanv.com/inkmap.html?lang=en
|
|
14
12
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
13
|
+
## Inline Mermaid Diagrams, 9 Layouts & Presentation Mode
|
|
14
|
+
|
|
15
|
+

|
|
16
|
+
|
|
17
|
+

|
|
18
|
+
|
|
19
|
+
- **Shortcuts**: `Tab` (child), `Enter` (sibling), `Shift+Tab` (parent), `⌘↑/↓` (move), `⌘E` (edit Markdown/Mermaid source), `⌘F` (find & replace), `⌘S` (save).
|
|
20
|
+
- **Website**: https://www.zhiyuanv.com/software.html?lang=en
|
|
@@ -1,20 +1,34 @@
|
|
|
1
|
-
# Inkmap 思维导图(DeepSeek Harness
|
|
1
|
+
# Inkmap 思维导图(DeepSeek Harness 原生双向脑图与流程图工作台)
|
|
2
2
|
|
|
3
|
-
将工作区内的本地 Markdown (`.md` / `.markmap.md`) 文件直接在 **DeepSeek Harness 右侧分栏**
|
|
3
|
+
将工作区内的本地 Markdown (`.md` / `.markmap.md`) 文件直接在 **DeepSeek Harness 右侧分栏** 渲染为可交互、可双向拖拽编辑的思维导图(Markmap 增强替代)与 Mermaid 流程图。修改导图毫秒级逐字节写回原文件,未改动段落 100% 原样保留。
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+

|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
- **Markdown ⇄ 思维导图双向实时同步**:在思维导图中增删改查或拖拽重组节点,底层 `.md` 源文件毫秒级自动写回,未修改段落原样保留。
|
|
9
|
-
- **全套思维导图快捷键**:支持 `Tab`(添加子节点)、`Enter`(添加同级节点)、`Shift+Tab`(添加父节点)、`⌘↑` / `⌘↓`(上下移动节点)、`⌘E`(编辑节点 Markdown)、`⌘S`(立即保存)、`Backspace`(删除节点)及双击内联编辑。
|
|
10
|
-
- **Mermaid 流程图 + LaTeX 数学公式 + Markdown 表格**:节点内原生渲染复杂流程图、状态图、时序图、数学公式与多列表格,支持独立弹窗无损缩放与源码实时编辑。
|
|
11
|
-
- **9 种专业结构与 4 套主题配色**:逻辑结构图、左右思维导图、组织结构图、目录组织图、时间轴、鱼骨图及深色护眼主题,支持一键导出高清 PNG 与矢量 SVG。
|
|
7
|
+
## 🚀 3 秒上手使用指南
|
|
12
8
|
|
|
13
|
-
|
|
9
|
+
1. **右侧栏一键打开**:在 DeepSeek Harness 中预览任意 `.md` 文件时,点击右上角预览工具栏的 **「Inkmap」** 按钮,即可在右侧并排打开可编辑思维导图。
|
|
10
|
+
2. **全屏三栏工作台**:需要同时对照项目目录树与源码精修时,点击导图工具栏右上角的 **「浏览器打开」** 即可一键展开全屏三栏 IDE 工作台。
|
|
11
|
+
3. **在线免安装体验台**:https://www.zhiyuanv.com/inkmap.html
|
|
14
12
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
13
|
+
## ✨ 核心特性动态展示
|
|
14
|
+
|
|
15
|
+
### 1. 节点内嵌 Mermaid 流程图 + LaTeX 公式 + 表格实时编辑
|
|
16
|
+
在节点下放置 ` ```mermaid ` 代码块,支持直接在导图节点内高清渲染流程图、时序图、状态图,点击 **「编辑流程图源码」**(`⌘E`)即可实时修改重绘,支持独立弹窗无损缩放:
|
|
17
|
+
|
|
18
|
+

|
|
19
|
+
|
|
20
|
+
### 2. 9 种专业结构 · 夜色护眼主题 · 全屏逐节点放映
|
|
21
|
+
一键切换逻辑结构图、左右思维导图、组织结构图、目录组织图、时间轴、鱼骨图及夜色深色主题;点击 **「演示」** 直接当 PPT 逐节点聚焦汇报,支持导出高清 PNG、矢量 SVG 与离线交互 HTML:
|
|
22
|
+
|
|
23
|
+

|
|
24
|
+
|
|
25
|
+
## ⌨️ 常用快捷键速查
|
|
26
|
+
|
|
27
|
+
| 操作 | 快捷键 / 方式 | 操作 | 快捷键 / 方式 |
|
|
28
|
+
| :--- | :--- | :--- | :--- |
|
|
29
|
+
| **新增子节点** | `Tab` | **编辑流程图 / 公式 / 表格源码** | 双击节点 或 `⌘E` (`Ctrl+E`) |
|
|
30
|
+
| **新增同级节点** | `Enter` | **上下调整节点顺序** | `⌘↑` / `⌘↓` (`Alt+↑` / `Alt+↓`) |
|
|
31
|
+
| **新增父级节点** | `Shift + Tab` | **全图查找与批量替换** | `⌘F` (`Ctrl+F`) |
|
|
32
|
+
| **删除 / 拖拽重组** | `Backspace` / 鼠标拖拽 | **立即保存 / 撤销重做** | `⌘S` / `⌘Z` / `⇧⌘Z` |
|
|
33
|
+
|
|
34
|
+
- **官方网站与全平台支持**:https://www.zhiyuanv.com/software.html
|
|
@@ -395,6 +395,52 @@ function licenseService(storage, getOrigin, { loginOnly = false, host: defaultHo
|
|
|
395
395
|
};
|
|
396
396
|
poll();
|
|
397
397
|
}
|
|
398
|
+
async function sendPendingTelemetry() {
|
|
399
|
+
if (disposed || !pendingEvents.size)
|
|
400
|
+
return;
|
|
401
|
+
let origin;
|
|
402
|
+
try {
|
|
403
|
+
origin = billingOrigin(getOrigin());
|
|
404
|
+
} catch {
|
|
405
|
+
return;
|
|
406
|
+
}
|
|
407
|
+
if (process.env.INKMAP_ALLOW_TEST_TELEMETRY !== "1") {
|
|
408
|
+
if (origin === "https://billing.example.com" || process.env.INKMAP_DISABLE_TELEMETRY === "1" || process.env.NODE_TEST_CONTEXT)
|
|
409
|
+
return;
|
|
410
|
+
const customHome = process.env.INKMAP_HOME || "";
|
|
411
|
+
if (customHome && (customHome.startsWith("/tmp/") || customHome.startsWith("/private/tmp/") || customHome.includes("/var/folders/") || customHome.includes("inkmap-npm-isolated-") || customHome.includes("inkmap-antigravity-mcp-") || customHome.includes("inkmap-local-editor-") || customHome.includes("inkmap-harness-"))) {
|
|
412
|
+
return;
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
const id = await (installIdPromise ??= localInstallId().catch(() => void 0));
|
|
416
|
+
if (disposed || !id || !pendingEvents.size)
|
|
417
|
+
return;
|
|
418
|
+
await (trial ??= startTrial());
|
|
419
|
+
const events = {};
|
|
420
|
+
for (const [k, v] of pendingEvents.entries())
|
|
421
|
+
events[k] = v;
|
|
422
|
+
pendingEvents.clear();
|
|
423
|
+
const tier = current.pro ? "pro" : (current.trialUntil ?? 0) > Date.now() ? "trial" : "expired";
|
|
424
|
+
const os = process.platform === "darwin" ? "mac" : process.platform === "win32" ? "win" : process.platform === "linux" ? "linux" : "other";
|
|
425
|
+
const hostName = detectedHost || inferNodeHost();
|
|
426
|
+
await fetch(origin + "/billing/v1/telemetry", {
|
|
427
|
+
method: "POST",
|
|
428
|
+
headers: { "content-type": "application/json" },
|
|
429
|
+
redirect: "error",
|
|
430
|
+
body: JSON.stringify({
|
|
431
|
+
product: PRODUCT.id,
|
|
432
|
+
installId: id,
|
|
433
|
+
host: hostName,
|
|
434
|
+
os,
|
|
435
|
+
version: "0.3.10",
|
|
436
|
+
locale: clientLocale(),
|
|
437
|
+
tier,
|
|
438
|
+
events
|
|
439
|
+
}),
|
|
440
|
+
signal: AbortSignal.timeout(5e3)
|
|
441
|
+
}).catch(() => {
|
|
442
|
+
});
|
|
443
|
+
}
|
|
398
444
|
return {
|
|
399
445
|
async state() {
|
|
400
446
|
await (trial ??= startTrial());
|
|
@@ -710,55 +756,17 @@ function licenseService(storage, getOrigin, { loginOnly = false, host: defaultHo
|
|
|
710
756
|
return;
|
|
711
757
|
telemetryTimer = setTimeout(() => {
|
|
712
758
|
telemetryTimer = void 0;
|
|
713
|
-
void (
|
|
714
|
-
if (disposed || !pendingEvents.size)
|
|
715
|
-
return;
|
|
716
|
-
let origin;
|
|
717
|
-
try {
|
|
718
|
-
origin = billingOrigin(getOrigin());
|
|
719
|
-
} catch {
|
|
720
|
-
return;
|
|
721
|
-
}
|
|
722
|
-
if (process.env.INKMAP_ALLOW_TEST_TELEMETRY !== "1") {
|
|
723
|
-
if (origin === "https://billing.example.com" || process.env.INKMAP_DISABLE_TELEMETRY === "1" || process.env.NODE_TEST_CONTEXT)
|
|
724
|
-
return;
|
|
725
|
-
const customHome = process.env.INKMAP_HOME || "";
|
|
726
|
-
if (customHome && (customHome.startsWith("/tmp/") || customHome.startsWith("/private/tmp/") || customHome.includes("/var/folders/") || customHome.includes("inkmap-npm-isolated-") || customHome.includes("inkmap-antigravity-mcp-") || customHome.includes("inkmap-local-editor-") || customHome.includes("inkmap-harness-"))) {
|
|
727
|
-
return;
|
|
728
|
-
}
|
|
729
|
-
}
|
|
730
|
-
const id = await (installIdPromise ??= localInstallId().catch(() => void 0));
|
|
731
|
-
if (disposed || !id || !pendingEvents.size)
|
|
732
|
-
return;
|
|
733
|
-
await (trial ??= startTrial());
|
|
734
|
-
const events = {};
|
|
735
|
-
for (const [k, v] of pendingEvents.entries())
|
|
736
|
-
events[k] = v;
|
|
737
|
-
pendingEvents.clear();
|
|
738
|
-
const tier = current.pro ? "pro" : (current.trialUntil ?? 0) > Date.now() ? "trial" : "expired";
|
|
739
|
-
const os = process.platform === "darwin" ? "mac" : process.platform === "win32" ? "win" : process.platform === "linux" ? "linux" : "other";
|
|
740
|
-
const hostName = detectedHost || inferNodeHost();
|
|
741
|
-
await fetch(origin + "/billing/v1/telemetry", {
|
|
742
|
-
method: "POST",
|
|
743
|
-
headers: { "content-type": "application/json" },
|
|
744
|
-
redirect: "error",
|
|
745
|
-
body: JSON.stringify({
|
|
746
|
-
product: PRODUCT.id,
|
|
747
|
-
installId: id,
|
|
748
|
-
host: hostName,
|
|
749
|
-
os,
|
|
750
|
-
version: "0.3.7",
|
|
751
|
-
locale: clientLocale(),
|
|
752
|
-
tier,
|
|
753
|
-
events
|
|
754
|
-
}),
|
|
755
|
-
signal: AbortSignal.timeout(5e3)
|
|
756
|
-
}).catch(() => {
|
|
757
|
-
});
|
|
758
|
-
})();
|
|
759
|
+
void sendPendingTelemetry();
|
|
759
760
|
}, 800);
|
|
760
761
|
telemetryTimer.unref();
|
|
761
762
|
},
|
|
763
|
+
async flushTelemetry() {
|
|
764
|
+
if (telemetryTimer) {
|
|
765
|
+
clearTimeout(telemetryTimer);
|
|
766
|
+
telemetryTimer = void 0;
|
|
767
|
+
}
|
|
768
|
+
await sendPendingTelemetry();
|
|
769
|
+
},
|
|
762
770
|
dispose() {
|
|
763
771
|
disposed = true;
|
|
764
772
|
stopMagicPoll();
|
|
@@ -781,6 +789,10 @@ function inferNodeHost() {
|
|
|
781
789
|
return "cursor";
|
|
782
790
|
if (app.includes("windsurf"))
|
|
783
791
|
return "windsurf";
|
|
792
|
+
if (app.includes("trae"))
|
|
793
|
+
return "trae";
|
|
794
|
+
if (app.includes("qoder"))
|
|
795
|
+
return "qoder";
|
|
784
796
|
return "vscode";
|
|
785
797
|
}
|
|
786
798
|
return "cli";
|
|
@@ -854,6 +866,7 @@ async function localTrialDeadline() {
|
|
|
854
866
|
var AD_TTL = 6 * 60 * 60 * 1e3;
|
|
855
867
|
|
|
856
868
|
// packages/cli/dist/server.js
|
|
869
|
+
import { spawn } from "node:child_process";
|
|
857
870
|
import { createHash, randomBytes } from "node:crypto";
|
|
858
871
|
import { watch } from "node:fs";
|
|
859
872
|
import { lstat, mkdir as mkdir2, readdir, readFile as readFile2, realpath, rename as rename2, rm as rm2, stat, writeFile as writeFile2 } from "node:fs/promises";
|
|
@@ -1018,12 +1031,38 @@ function within(root, rel) {
|
|
|
1018
1031
|
const full = normalize(join2(root, decodeURIComponent(rel)));
|
|
1019
1032
|
return full.startsWith(base) ? full : null;
|
|
1020
1033
|
}
|
|
1034
|
+
async function openBrowserWindow(url) {
|
|
1035
|
+
if (process.env.INKMAP_NO_OPEN === "1" || !/^http:\/\/(?:127\.0\.0\.1|localhost|\[::1\]):[0-9]+\//.test(url))
|
|
1036
|
+
return;
|
|
1037
|
+
const run = (cmd, args) => new Promise((done) => {
|
|
1038
|
+
const child = spawn(cmd, args, { stdio: "ignore", detached: true });
|
|
1039
|
+
child.on("error", () => done(false));
|
|
1040
|
+
child.on("exit", (code) => done(code === 0));
|
|
1041
|
+
child.unref();
|
|
1042
|
+
});
|
|
1043
|
+
if (process.platform === "darwin") {
|
|
1044
|
+
if (await run("open", ["-a", "Google Chrome", url]))
|
|
1045
|
+
return;
|
|
1046
|
+
await run("open", [url]);
|
|
1047
|
+
return;
|
|
1048
|
+
}
|
|
1049
|
+
if (process.platform === "win32") {
|
|
1050
|
+
if (await run("cmd", ["/c", "start", "", "chrome", url]))
|
|
1051
|
+
return;
|
|
1052
|
+
await run("cmd", ["/c", "start", "", url]);
|
|
1053
|
+
return;
|
|
1054
|
+
}
|
|
1055
|
+
if (await run("google-chrome", [url]))
|
|
1056
|
+
return;
|
|
1057
|
+
await run("xdg-open", [url]);
|
|
1058
|
+
}
|
|
1021
1059
|
async function serve({ source: initialSource, webRoot: webRoot2, port = 4377, host = "127.0.0.1", log = () => {
|
|
1022
1060
|
}, license, ads, sidebar = false, sidebarPurchase = false, sidebarAccountNavigation = false, loginOnly = false, ideWorkspace = false, workspaceRoots = [] }) {
|
|
1023
1061
|
if (sidebar && host !== "127.0.0.1")
|
|
1024
1062
|
throw new Error("The sidebar bridge requires loopback.");
|
|
1025
1063
|
const prefix2 = sidebar ? `/s/${randomBytes(24).toString("hex")}/` : "/";
|
|
1026
1064
|
let activeSource = initialSource;
|
|
1065
|
+
let browserCompanion = null;
|
|
1027
1066
|
let bound;
|
|
1028
1067
|
let current = await activeSource.read();
|
|
1029
1068
|
let version = hash(current);
|
|
@@ -1269,6 +1308,44 @@ data: ${JSON.stringify(data)}
|
|
|
1269
1308
|
license?.track?.(event);
|
|
1270
1309
|
return json2(res, 200, { ok: true });
|
|
1271
1310
|
}
|
|
1311
|
+
if (url.pathname === "/api/open-browser" && req.method === "POST") {
|
|
1312
|
+
if (!sameOriginPost())
|
|
1313
|
+
return json2(res, 403, { error: "forbidden" });
|
|
1314
|
+
if (license && !hasAccess(await license.state())) {
|
|
1315
|
+
return json2(res, 402, { error: detectOsLocale() === "zh" ? "\u514D\u8D39\u8BD5\u7528\u5DF2\u5230\u671F\uFF0C\u8BF7\u5148\u89E3\u9501\u6216\u6062\u590D Pro\u3002" : "Trial expired. Unlock or restore Pro first." });
|
|
1316
|
+
}
|
|
1317
|
+
license?.track?.("feature_browser");
|
|
1318
|
+
if (!sidebar) {
|
|
1319
|
+
const directUrl = `http://${host}:${bound}/`;
|
|
1320
|
+
await openBrowserWindow(directUrl);
|
|
1321
|
+
return json2(res, 200, { ok: true, url: directUrl });
|
|
1322
|
+
}
|
|
1323
|
+
if (!browserCompanion) {
|
|
1324
|
+
browserCompanion = (async () => {
|
|
1325
|
+
const src = activeSource.key ? await fileSource(activeSource.key) : activeSource;
|
|
1326
|
+
return serve({
|
|
1327
|
+
source: src,
|
|
1328
|
+
webRoot: webRoot2,
|
|
1329
|
+
host: "127.0.0.1",
|
|
1330
|
+
port: 0,
|
|
1331
|
+
license,
|
|
1332
|
+
ads,
|
|
1333
|
+
sidebar: false,
|
|
1334
|
+
loginOnly: false,
|
|
1335
|
+
workspaceRoots
|
|
1336
|
+
});
|
|
1337
|
+
})();
|
|
1338
|
+
browserCompanion.catch(() => {
|
|
1339
|
+
browserCompanion = null;
|
|
1340
|
+
});
|
|
1341
|
+
}
|
|
1342
|
+
const companion = await browserCompanion;
|
|
1343
|
+
if (activeSource.key)
|
|
1344
|
+
await companion.switchToFile?.(activeSource.key).catch(() => {
|
|
1345
|
+
});
|
|
1346
|
+
await openBrowserWindow(companion.url);
|
|
1347
|
+
return json2(res, 200, { ok: true, url: companion.url });
|
|
1348
|
+
}
|
|
1272
1349
|
if (url.pathname === "/api/checkout" && req.method === "POST") {
|
|
1273
1350
|
if (!sameOriginPost())
|
|
1274
1351
|
return json2(res, 403, { error: "forbidden" });
|
|
@@ -1362,6 +1439,9 @@ data: ${JSON.stringify(data)}
|
|
|
1362
1439
|
clearTimeout(pending);
|
|
1363
1440
|
unwatch();
|
|
1364
1441
|
unlisten();
|
|
1442
|
+
if (browserCompanion)
|
|
1443
|
+
void browserCompanion.then((s) => s.close()).catch(() => {
|
|
1444
|
+
});
|
|
1365
1445
|
for (const res of clients)
|
|
1366
1446
|
res.end();
|
|
1367
1447
|
server.close(() => done());
|
|
@@ -1437,7 +1517,8 @@ async function readBody(req) {
|
|
|
1437
1517
|
}
|
|
1438
1518
|
}
|
|
1439
1519
|
function apply(ctx) {
|
|
1440
|
-
const license = licenseService(fileSessionStorage(), () => YUNFAN_BILLING_ORIGIN);
|
|
1520
|
+
const license = licenseService(fileSessionStorage(), () => YUNFAN_BILLING_ORIGIN, { host: "deepseek" });
|
|
1521
|
+
license.track?.("plugin_activate", 1, "deepseek");
|
|
1441
1522
|
const editors = /* @__PURE__ */ new Map();
|
|
1442
1523
|
const leases = /* @__PURE__ */ new Map();
|
|
1443
1524
|
let disposed = false;
|
|
@@ -1,24 +1,66 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="256" height="256">
|
|
2
2
|
<defs>
|
|
3
|
-
<linearGradient id="bg" x1="
|
|
4
|
-
<stop offset="0" stop-color="#
|
|
5
|
-
<stop offset="
|
|
3
|
+
<linearGradient id="bg" x1="24" y1="16" x2="232" y2="240" gradientUnits="userSpaceOnUse">
|
|
4
|
+
<stop offset="0%" stop-color="#2563eb"/>
|
|
5
|
+
<stop offset="48%" stop-color="#1e3a8a"/>
|
|
6
|
+
<stop offset="100%" stop-color="#1e1b4b"/>
|
|
6
7
|
</linearGradient>
|
|
8
|
+
<radialGradient id="auroraTop" cx="68" cy="52" r="170" gradientUnits="userSpaceOnUse">
|
|
9
|
+
<stop offset="0%" stop-color="#38bdf8" stop-opacity="0.52"/>
|
|
10
|
+
<stop offset="55%" stop-color="#6366f1" stop-opacity="0.20"/>
|
|
11
|
+
<stop offset="100%" stop-color="#0f172a" stop-opacity="0"/>
|
|
12
|
+
</radialGradient>
|
|
13
|
+
<radialGradient id="auroraBot" cx="208" cy="212" r="140" gradientUnits="userSpaceOnUse">
|
|
14
|
+
<stop offset="0%" stop-color="#a855f7" stop-opacity="0.35"/>
|
|
15
|
+
<stop offset="100%" stop-color="#1e1b4b" stop-opacity="0"/>
|
|
16
|
+
</radialGradient>
|
|
17
|
+
<linearGradient id="rim" x1="16" y1="12" x2="240" y2="244" gradientUnits="userSpaceOnUse">
|
|
18
|
+
<stop offset="0%" stop-color="#ffffff" stop-opacity="0.45"/>
|
|
19
|
+
<stop offset="50%" stop-color="#ffffff" stop-opacity="0.12"/>
|
|
20
|
+
<stop offset="100%" stop-color="#c084fc" stop-opacity="0.28"/>
|
|
21
|
+
</linearGradient>
|
|
22
|
+
<linearGradient id="branchTop" x1="92" y1="128" x2="162" y2="70" gradientUnits="userSpaceOnUse">
|
|
23
|
+
<stop offset="0%" stop-color="#e0f2fe"/>
|
|
24
|
+
<stop offset="100%" stop-color="#38bdf8"/>
|
|
25
|
+
</linearGradient>
|
|
26
|
+
<linearGradient id="branchMid" x1="92" y1="128" x2="156" y2="128" gradientUnits="userSpaceOnUse">
|
|
27
|
+
<stop offset="0%" stop-color="#ffffff" stop-opacity="0.92"/>
|
|
28
|
+
<stop offset="100%" stop-color="#ffffff"/>
|
|
29
|
+
</linearGradient>
|
|
30
|
+
<linearGradient id="branchBot" x1="92" y1="128" x2="162" y2="186" gradientUnits="userSpaceOnUse">
|
|
31
|
+
<stop offset="0%" stop-color="#e0e7ff"/>
|
|
32
|
+
<stop offset="100%" stop-color="#c084fc"/>
|
|
33
|
+
</linearGradient>
|
|
34
|
+
<linearGradient id="nodeTop" x1="150" y1="54" x2="216" y2="86" gradientUnits="userSpaceOnUse">
|
|
35
|
+
<stop offset="0%" stop-color="#7dd3fc"/>
|
|
36
|
+
<stop offset="100%" stop-color="#38bdf8"/>
|
|
37
|
+
</linearGradient>
|
|
38
|
+
<linearGradient id="nodeBot" x1="150" y1="170" x2="210" y2="202" gradientUnits="userSpaceOnUse">
|
|
39
|
+
<stop offset="0%" stop-color="#c4b5fd"/>
|
|
40
|
+
<stop offset="100%" stop-color="#a855f7"/>
|
|
41
|
+
</linearGradient>
|
|
42
|
+
<linearGradient id="hubCore" x1="54" y1="112" x2="86" y2="144" gradientUnits="userSpaceOnUse">
|
|
43
|
+
<stop offset="0%" stop-color="#3b82f6"/>
|
|
44
|
+
<stop offset="100%" stop-color="#4f46e5"/>
|
|
45
|
+
</linearGradient>
|
|
46
|
+
<filter id="softShadow" x="-12%" y="-12%" width="124%" height="128%">
|
|
47
|
+
<feDropShadow dx="0" dy="6" stdDeviation="7" flood-color="#090d1f" flood-opacity="0.36"/>
|
|
48
|
+
</filter>
|
|
7
49
|
</defs>
|
|
8
|
-
<rect x="8" y="8" width="240" height="240" rx="
|
|
9
|
-
<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
<
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
<rect x="
|
|
19
|
-
<rect x="
|
|
20
|
-
<rect x="
|
|
21
|
-
<rect x="
|
|
50
|
+
<rect x="8" y="8" width="240" height="240" rx="56" fill="url(#bg)"/>
|
|
51
|
+
<rect x="8" y="8" width="240" height="240" rx="56" fill="url(#auroraTop)"/>
|
|
52
|
+
<rect x="8" y="8" width="240" height="240" rx="56" fill="url(#auroraBot)"/>
|
|
53
|
+
<rect x="9.5" y="9.5" width="237" height="237" rx="54.5" fill="none" stroke="url(#rim)" stroke-width="3"/>
|
|
54
|
+
<g filter="url(#softShadow)">
|
|
55
|
+
<g fill="none" stroke-width="13" stroke-linecap="round">
|
|
56
|
+
<path d="M 92 128 C 126 128, 122 70, 158 70" stroke="url(#branchTop)"/>
|
|
57
|
+
<path d="M 92 128 L 154 128" stroke="url(#branchMid)"/>
|
|
58
|
+
<path d="M 92 128 C 126 128, 122 186, 158 186" stroke="url(#branchBot)"/>
|
|
59
|
+
</g>
|
|
60
|
+
<rect x="40" y="96" width="64" height="64" rx="20" fill="#ffffff"/>
|
|
61
|
+
<rect x="57" y="113" width="30" height="30" rx="9.5" fill="url(#hubCore)"/>
|
|
62
|
+
<rect x="150" y="54" width="64" height="32" rx="16" fill="url(#nodeTop)"/>
|
|
63
|
+
<rect x="146" y="112" width="72" height="32" rx="16" fill="#ffffff"/>
|
|
64
|
+
<rect x="150" y="170" width="58" height="32" rx="16" fill="url(#nodeBot)"/>
|
|
22
65
|
</g>
|
|
23
|
-
<path d="M128 92 C 128 92, 102 122, 102 140 A 26 26 0 0 0 154 140 C 154 122, 128 92, 128 92 Z" fill="#ffd166" stroke="#fff" stroke-width="6" stroke-linejoin="round"/>
|
|
24
66
|
</svg>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-inkmap",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.10",
|
|
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",
|