inkmap-mcp 0.3.11 → 0.3.13

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.
@@ -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.11";
65
+ var INKMAP_VERSION = "0.3.13";
66
66
 
67
67
  // packages/cli/dist/license.js
68
68
  var ZH_LOCALE_RE = /^zh(?:[-_.]|$)/i;
@@ -920,7 +920,7 @@ function licenseService(storage, getOrigin, { loginOnly = false, host: defaultHo
920
920
  return;
921
921
  if (hostHint)
922
922
  detectedHost = hostHint;
923
- if (!sentAppOpen) {
923
+ if (!sentAppOpen && !PASSIVE_TELEMETRY_EVENTS.has(event)) {
924
924
  sentAppOpen = true;
925
925
  pendingEvents.set("app_open", (pendingEvents.get("app_open") ?? 0) + 1);
926
926
  }
@@ -953,6 +953,7 @@ function licenseService(storage, getOrigin, { loginOnly = false, host: defaultHo
953
953
  }
954
954
  };
955
955
  }
956
+ var PASSIVE_TELEMETRY_EVENTS = /* @__PURE__ */ new Set(["plugin_activate", "plugin_install", "onboarding_view"]);
956
957
  function inferNodeHost() {
957
958
  if (process.env.INKMAP_HOST)
958
959
  return process.env.INKMAP_HOST;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inkmap-codex",
3
- "version": "0.3.11",
3
+ "version": "0.3.13",
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.11",
4
+ "version": "0.3.13",
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",
@@ -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.11";
62
+ var INKMAP_VERSION = "0.3.13";
63
63
 
64
64
  // packages/cli/dist/license.js
65
65
  var ZH_LOCALE_RE = /^zh(?:[-_.]|$)/i;
@@ -917,7 +917,7 @@ function licenseService(storage, getOrigin, { loginOnly = false, host: defaultHo
917
917
  return;
918
918
  if (hostHint)
919
919
  detectedHost = hostHint;
920
- if (!sentAppOpen) {
920
+ if (!sentAppOpen && !PASSIVE_TELEMETRY_EVENTS.has(event)) {
921
921
  sentAppOpen = true;
922
922
  pendingEvents.set("app_open", (pendingEvents.get("app_open") ?? 0) + 1);
923
923
  }
@@ -950,6 +950,7 @@ function licenseService(storage, getOrigin, { loginOnly = false, host: defaultHo
950
950
  }
951
951
  };
952
952
  }
953
+ var PASSIVE_TELEMETRY_EVENTS = /* @__PURE__ */ new Set(["plugin_activate", "plugin_install", "onboarding_view"]);
953
954
  function inferNodeHost() {
954
955
  if (process.env.INKMAP_HOST)
955
956
  return process.env.INKMAP_HOST;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-inkmap",
3
- "version": "0.3.11",
3
+ "version": "0.3.13",
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",
@@ -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.11";
114
+ var INKMAP_VERSION = "0.3.13";
115
115
 
116
116
  // packages/cli/src/license.ts
117
117
  var ZH_LOCALE_RE = /^zh(?:[-_.]|$)/i;
@@ -889,7 +889,7 @@ function licenseService(storage, getOrigin, { loginOnly = false, host: defaultHo
889
889
  track(event, count = 1, hostHint) {
890
890
  if (disposed || !event || typeof event !== "string" || count <= 0) return;
891
891
  if (hostHint) detectedHost = hostHint;
892
- if (!sentAppOpen) {
892
+ if (!sentAppOpen && !PASSIVE_TELEMETRY_EVENTS.has(event)) {
893
893
  sentAppOpen = true;
894
894
  pendingEvents.set("app_open", (pendingEvents.get("app_open") ?? 0) + 1);
895
895
  }
@@ -921,6 +921,7 @@ function licenseService(storage, getOrigin, { loginOnly = false, host: defaultHo
921
921
  }
922
922
  };
923
923
  }
924
+ var PASSIVE_TELEMETRY_EVENTS = /* @__PURE__ */ new Set(["plugin_activate", "plugin_install", "onboarding_view"]);
924
925
  function inferNodeHost() {
925
926
  if (process.env.INKMAP_HOST) return process.env.INKMAP_HOST;
926
927
  if (process.env.ANTIGRAVITY_CONFIG_DIR) return "antigravity";
@@ -1679,6 +1680,31 @@ var zh = {
1679
1680
  saveExport: "\u5BFC\u51FA",
1680
1681
  onboardingTip: "\u{1F4A1} Inkmap \u601D\u7EF4\u5BFC\u56FE\u5DF2\u5C31\u7EEA\uFF1A\u70B9\u51FB\u5373\u53EF\u5728\u53F3\u4FA7\u5E76\u6392\u6253\u5F00\u53EF\u53CC\u5411\u7F16\u8F91\u7684\u8111\u56FE\u4E0E\u6D41\u7A0B\u56FE",
1681
1682
  onboardingAction: "\u7ACB\u5373\u6253\u5F00\u601D\u7EF4\u5BFC\u56FE",
1683
+ welcomeTip: "\u{1F4A1} Inkmap \u601D\u7EF4\u5BFC\u56FE\u5DF2\u5B89\u88C5\uFF1A\u4E00\u952E\u6253\u5F00\u793A\u4F8B\u8111\u56FE\u4F53\u9A8C\u53CC\u5411\u7F16\u8F91\uFF0C\u6216\u5728\u4EFB\u610F .md \u6587\u4EF6\u70B9\u51FB\u53F3\u4E0B\u89D2\u300C\u601D\u7EF4\u5BFC\u56FE\u300D",
1684
+ welcomeAction: "\u6253\u5F00\u793A\u4F8B\u5BFC\u56FE",
1685
+ statusBarLabel: "$(type-hierarchy) \u601D\u7EF4\u5BFC\u56FE",
1686
+ statusBarTooltip: "\u7528 Inkmap \u5728\u4FA7\u8FB9\u6253\u5F00\u5F53\u524D Markdown \u7684\u53EF\u7F16\u8F91\u601D\u7EF4\u5BFC\u56FE",
1687
+ codeLensOpen: "\u21C4 \u7528 Inkmap \u601D\u7EF4\u5BFC\u56FE\u6253\u5F00",
1688
+ codeLensOpenTooltip: "\u5728\u53F3\u4FA7\u5E76\u6392\u6253\u5F00\u5F53\u524D Markdown \u7684\u53CC\u5411\u53EF\u7F16\u8F91\u601D\u7EF4\u5BFC\u56FE",
1689
+ codeLensBrowser: "\u6D4F\u89C8\u5668\u5168\u5C4F\u6253\u5F00",
1690
+ codeLensBrowserTooltip: "\u5728\u72EC\u7ACB\u6D4F\u89C8\u5668\u7A97\u53E3\u5168\u5C4F\u6253\u5F00\u5F53\u524D\u5BFC\u56FE\uFF0C\u5B9E\u65F6\u53CC\u5411\u540C\u6B65\u56DE\u539F\u6587\u4EF6",
1691
+ welcomeDoc: `# Inkmap \u601D\u7EF4\u5BFC\u56FE\u5FEB\u901F\u4E0A\u624B
1692
+
1693
+ - \u2728 \u53CC\u5411\u5B9E\u65F6\u540C\u6B65
1694
+ - \u53CC\u51FB\u4EFB\u610F\u8282\u70B9\u76F4\u63A5\u7F16\u8F91\uFF0C\u81EA\u52A8\u5199\u56DE Markdown \u6E90\u6587\u4EF6
1695
+ - \u9009\u4E2D\u8282\u70B9\u6309 \`Tab\` \u6DFB\u52A0\u5B50\u8282\u70B9\uFF0C\u6309 \`Enter\` \u6DFB\u52A0\u540C\u7EA7\u8282\u70B9
1696
+ - \u{1F9ED} \u5E38\u7528\u5165\u53E3
1697
+ - \u7F16\u8F91\u4EFB\u610F \`.md\` \u6587\u4EF6\u65F6\uFF0C\u70B9\u51FB\u53F3\u4E0B\u89D2\u72B6\u6001\u680F **\u601D\u7EF4\u5BFC\u56FE** \u6309\u94AE
1698
+ - \u6216\u70B9\u51FB\u7F16\u8F91\u5668\u53F3\u4E0A\u89D2\u5BFC\u56FE\u56FE\u6807\uFF0C\u5728\u4FA7\u8FB9\u5E76\u6392\u9884\u89C8\u4E0E\u7F16\u8F91
1699
+ - \u{1F4CA} \u539F\u751F Mermaid \u6D41\u7A0B\u56FE
1700
+ \`\`\`mermaid
1701
+ graph LR
1702
+ A[Markdown \u6587\u6863] --> B[Inkmap \u601D\u7EF4\u5BFC\u56FE]
1703
+ B --> C[\u53CC\u5411\u7F16\u8F91 & \u5BFC\u51FA PNG/SVG/HTML]
1704
+ \`\`\`
1705
+ - \u{1F4D0} LaTeX \u516C\u5F0F\u652F\u6301
1706
+ - \u8D28\u80FD\u65B9\u7A0B\uFF1A$E = mc^2$
1707
+ `,
1682
1708
  harnessOffer: "\u68C0\u6D4B\u5230 DeepSeek Harness\u3002\u8981\u628A Inkmap \u601D\u7EF4\u5BFC\u56FE\u63D2\u4EF6\u5B89\u88C5\u5230 DeepSeek Harness \u5417\uFF1F\u8FD9\u4F1A\u5728\u5B83\u7684\u684C\u9762\u914D\u7F6E\u4E2D\u52A0\u5165 Inkmap \u63D2\u4EF6\u7D22\u5F15\u5E76\u5B89\u88C5\u63D2\u4EF6\u3002",
1683
1709
  harnessInstall: "\u5B89\u88C5",
1684
1710
  harnessNoThanks: "\u4E0D\u7528\u4E86",
@@ -1700,6 +1726,31 @@ var en = {
1700
1726
  saveExport: "Export",
1701
1727
  onboardingTip: "\u{1F4A1} Inkmap is ready: Open this Markdown file side-by-side as an interactive two-way mind map",
1702
1728
  onboardingAction: "Open Mind Map",
1729
+ welcomeTip: "\u{1F4A1} Inkmap Mind Map is installed: Try the interactive welcome mind map, or click \u201CMind Map\u201D in the status bar on any .md file",
1730
+ welcomeAction: "Open Demo Mind Map",
1731
+ statusBarLabel: "$(type-hierarchy) Mind Map",
1732
+ statusBarTooltip: "Open this Markdown file side-by-side in Inkmap Mind Map",
1733
+ codeLensOpen: "\u21C4 Open as Inkmap Mind Map",
1734
+ codeLensOpenTooltip: "Open this Markdown file side-by-side as a two-way editable mind map",
1735
+ codeLensBrowser: "Open in Browser",
1736
+ codeLensBrowserTooltip: "Open full-screen in browser with live two-way file sync",
1737
+ welcomeDoc: `# Welcome to Inkmap Mind Map
1738
+
1739
+ - \u2728 Two-Way Markdown Sync
1740
+ - Double-click any node to edit \u2014 changes write directly back to Markdown
1741
+ - Press \`Tab\` to add a child node, \`Enter\` to add a sibling node
1742
+ - \u{1F9ED} Quick Entry Points
1743
+ - Click **Mind Map** in the bottom-right status bar on any \`.md\` file
1744
+ - Or click the Inkmap icon in the editor title bar to open side-by-side
1745
+ - \u{1F4CA} Native Mermaid Diagrams
1746
+ \`\`\`mermaid
1747
+ graph LR
1748
+ A[Markdown File] --> B[Inkmap Mind Map]
1749
+ B --> C[Two-Way Edit & Export PNG/SVG/HTML]
1750
+ \`\`\`
1751
+ - \u{1F4D0} LaTeX Math
1752
+ - Mass\u2013energy equivalence: $E = mc^2$
1753
+ `,
1703
1754
  harnessOffer: "DeepSeek Harness is installed. Add the Inkmap mind map plugin to it? This adds the Inkmap plugin index to its desktop profile and installs the plugin.",
1704
1755
  harnessInstall: "Install",
1705
1756
  harnessNoThanks: "No thanks",
@@ -2363,6 +2414,16 @@ function activate(context) {
2363
2414
  preserveFocus: true
2364
2415
  })
2365
2416
  );
2417
+ const openDemo = async () => {
2418
+ const dir = context.globalStorageUri?.fsPath || (0, import_node_path4.join)((0, import_node_os4.tmpdir)(), "inkmap-welcome");
2419
+ (0, import_node_fs2.mkdirSync)(dir, { recursive: true });
2420
+ const demoPath = (0, import_node_path4.join)(dir, "Inkmap-Welcome.md");
2421
+ if (!(0, import_node_fs2.existsSync)(demoPath)) await (0, import_promises5.writeFile)(demoPath, t("welcomeDoc"), "utf8");
2422
+ await vscode5.commands.executeCommand("vscode.openWith", vscode5.Uri.file(demoPath), MindmapEditorProvider.viewType, {
2423
+ viewColumn: vscode5.ViewColumn.Active,
2424
+ preserveFocus: false
2425
+ });
2426
+ };
2366
2427
  const maybeOfferOnboarding = (editor) => {
2367
2428
  if (!editor || editor.document.languageId !== "markdown" || editor.document.uri.scheme !== "file") return;
2368
2429
  if (context.globalState.get("inkmap.hasOpenedMap") || context.globalState.get("inkmap.onboardingPrompted")) return;
@@ -2376,9 +2437,77 @@ function activate(context) {
2376
2437
  }
2377
2438
  });
2378
2439
  };
2440
+ const maybeOfferWelcome = () => {
2441
+ const active = vscode5.window.activeTextEditor;
2442
+ if (active?.document.languageId === "markdown" && active.document.uri.scheme === "file") {
2443
+ maybeOfferOnboarding(active);
2444
+ return;
2445
+ }
2446
+ if (context.globalState.get("inkmap.hasOpenedMap") || context.globalState.get("inkmap.welcomePrompted") || context.globalState.get("inkmap.onboardingPrompted")) {
2447
+ return;
2448
+ }
2449
+ void context.globalState.update("inkmap.welcomePrompted", true);
2450
+ license.track?.("onboarding_view");
2451
+ void vscode5.window.showInformationMessage(t("welcomeTip"), t("welcomeAction")).then((pick) => {
2452
+ if (pick) {
2453
+ license.track?.("onboarding_open");
2454
+ void openDemo();
2455
+ }
2456
+ });
2457
+ };
2458
+ const statusBar = vscode5.window.createStatusBarItem?.(vscode5.StatusBarAlignment?.Right ?? 2, 100);
2459
+ if (statusBar) {
2460
+ statusBar.text = t("statusBarLabel");
2461
+ statusBar.tooltip = t("statusBarTooltip");
2462
+ statusBar.command = "inkmap.openToSide";
2463
+ const updateStatusBar = (editor) => {
2464
+ if (editor?.document.languageId === "markdown" && editor.document.uri.scheme === "file") statusBar.show();
2465
+ else statusBar.hide();
2466
+ };
2467
+ updateStatusBar(vscode5.window.activeTextEditor);
2468
+ context.subscriptions.push(statusBar, vscode5.window.onDidChangeActiveTextEditor(updateStatusBar));
2469
+ }
2379
2470
  const editors = new MindmapEditorProvider(context, license);
2380
2471
  chatAvailable().then((available) => vscode5.commands.executeCommand("setContext", "inkmap.chatAvailable", available));
2381
- maybeOfferOnboarding(vscode5.window.activeTextEditor);
2472
+ maybeOfferWelcome();
2473
+ if (vscode5.languages?.registerCodeLensProvider) {
2474
+ const lensEmitter = vscode5.EventEmitter ? new vscode5.EventEmitter() : void 0;
2475
+ const lensProvider = {
2476
+ ...lensEmitter && { onDidChangeCodeLenses: lensEmitter.event },
2477
+ provideCodeLenses(document) {
2478
+ if (document.uri.scheme !== "file") return [];
2479
+ if (vscode5.workspace.getConfiguration("inkmap", document.uri).get("codeLens", true) === false) {
2480
+ return [];
2481
+ }
2482
+ const top = new vscode5.Range(0, 0, 0, 0);
2483
+ return [
2484
+ new vscode5.CodeLens(top, {
2485
+ title: t("codeLensOpen"),
2486
+ tooltip: t("codeLensOpenTooltip"),
2487
+ command: "inkmap.codeLensOpen",
2488
+ arguments: [document.uri]
2489
+ }),
2490
+ new vscode5.CodeLens(top, {
2491
+ title: t("codeLensBrowser"),
2492
+ tooltip: t("codeLensBrowserTooltip"),
2493
+ command: "inkmap.openInBrowser",
2494
+ arguments: [document.uri]
2495
+ })
2496
+ ];
2497
+ }
2498
+ };
2499
+ context.subscriptions.push(vscode5.languages.registerCodeLensProvider({ language: "markdown", scheme: "file" }, lensProvider));
2500
+ if (lensEmitter) {
2501
+ context.subscriptions.push(lensEmitter);
2502
+ if (vscode5.workspace.onDidChangeConfiguration) {
2503
+ context.subscriptions.push(
2504
+ vscode5.workspace.onDidChangeConfiguration((e) => {
2505
+ if (e.affectsConfiguration("inkmap.codeLens")) lensEmitter.fire();
2506
+ })
2507
+ );
2508
+ }
2509
+ }
2510
+ }
2382
2511
  context.subscriptions.push(
2383
2512
  log,
2384
2513
  license,
@@ -2402,6 +2531,12 @@ function activate(context) {
2402
2531
  vscode5.commands.registerCommand("inkmap.addToChat", () => editors.requestChat()),
2403
2532
  vscode5.commands.registerCommand("inkmap.open", openToSide),
2404
2533
  vscode5.commands.registerCommand("inkmap.openToSide", openToSide),
2534
+ vscode5.commands.registerCommand("inkmap.codeLensOpen", (arg) => {
2535
+ if (!context.globalState.get("inkmap.hasOpenedMap")) {
2536
+ license.track?.("onboarding_open");
2537
+ }
2538
+ return openToSide(arg);
2539
+ }),
2405
2540
  vscode5.commands.registerCommand(
2406
2541
  "inkmap.showSource",
2407
2542
  withUri((uri) => vscode5.window.showTextDocument(uri, { viewColumn: vscode5.ViewColumn.Beside, preview: false }))
@@ -2425,6 +2560,7 @@ function activate(context) {
2425
2560
  })
2426
2561
  ),
2427
2562
  vscode5.commands.registerCommand("inkmap.installDeepSeekHarness", installInDeepSeekHarness),
2563
+ vscode5.commands.registerCommand("inkmap.openDemo", openDemo),
2428
2564
  vscode5.commands.registerCommand("inkmap.upgrade", async (arg) => {
2429
2565
  if (editors.openAccount()) return;
2430
2566
  const uri = targetUri(arg);
@@ -2,7 +2,7 @@
2
2
  "name": "inkmap-vscode",
3
3
  "displayName": "%displayName%",
4
4
  "description": "%description%",
5
- "version": "0.3.11",
5
+ "version": "0.3.13",
6
6
  "publisher": "inkmap",
7
7
  "homepage": "https://zhiyuanv.com/software.html",
8
8
  "repository": {
@@ -127,6 +127,11 @@
127
127
  "command": "inkmap.installDeepSeekHarness",
128
128
  "title": "%command.installDeepSeekHarness%",
129
129
  "category": "Inkmap"
130
+ },
131
+ {
132
+ "command": "inkmap.openDemo",
133
+ "title": "%command.openDemo%",
134
+ "category": "Inkmap"
130
135
  }
131
136
  ],
132
137
  "keybindings": [
@@ -191,6 +196,10 @@
191
196
  "command": "inkmap.addToChat",
192
197
  "when": "false"
193
198
  },
199
+ {
200
+ "command": "inkmap.codeLensOpen",
201
+ "when": "false"
202
+ },
194
203
  {
195
204
  "command": "inkmap.open",
196
205
  "when": "editorLangId == markdown"
@@ -235,6 +244,11 @@
235
244
  "type": "boolean",
236
245
  "default": true,
237
246
  "description": "%config.browserAutoSave%"
247
+ },
248
+ "inkmap.codeLens": {
249
+ "type": "boolean",
250
+ "default": true,
251
+ "description": "%config.codeLens%"
238
252
  }
239
253
  }
240
254
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "displayName": "Inkmap — Editable Mindmap, Markmap, Markdown Mind Map & Mermaid 思维导图",
2
+ "displayName": "Inkmap — Markdown Mindmap & Markmap 思维导图",
3
3
  "description": "Editable Mindmap & Markmap alternative: Two-way Markdown mind map (.md) & Mermaid flowchart editor with XMind shortcuts, LaTeX, AI Chat & PNG/SVG/HTML export | 双向可编辑思维导图、脑图、流程图",
4
4
  "virtualWorkspaces": "Inkmap edits Markdown files on disk.",
5
5
  "editor.displayName": "Inkmap Mind Map",
@@ -10,9 +10,11 @@
10
10
  "command.addToChat": "Add to Chat",
11
11
  "command.upgrade": "Get Inkmap Pro",
12
12
  "command.installDeepSeekHarness": "Install in DeepSeek Harness",
13
+ "command.openDemo": "Open Welcome Mind Map",
13
14
  "config.billingOrigin": "HTTPS origin of the Inkmap checkout service.",
14
15
  "config.browser": "Browser used by “Open Mind Map in Browser”",
15
16
  "config.browser.chrome": "Google Chrome (falls back to the default browser when not found)",
16
17
  "config.browser.default": "The system default browser",
17
- "config.browserAutoSave": "Save the document automatically after editing the map in the browser; when off, changes stay unsaved in the editor"
18
+ "config.browserAutoSave": "Save the document automatically after editing the map in the browser; when off, changes stay unsaved in the editor",
19
+ "config.codeLens": "Show quick “Open as Inkmap Mind Map | Open in Browser” CodeLens actions at the top of Markdown files"
18
20
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "displayName": "Inkmap 墨图 — 可编辑 Mindmap / Markmap / Markdown 思维导图 & Mermaid 流程图",
2
+ "displayName": "Inkmap — Markdown 思维导图 · Mindmap & Markmap",
3
3
  "description": "比 Markmap 更好用的双向可编辑 Markdown (.md) 思维导图 (Mindmap / Mind Map) 与脑图插件:直接改节点实时同步源文件,原生内嵌 Mermaid 流程图、LaTeX 公式、XMind 快捷键、AI 对话协同与高清 PNG/SVG/HTML 导出。",
4
4
  "virtualWorkspaces": "Inkmap 需要编辑磁盘上的 Markdown 文件。",
5
5
  "editor.displayName": "Inkmap 思维导图",
@@ -10,9 +10,11 @@
10
10
  "command.addToChat": "添加到对话",
11
11
  "command.upgrade": "升级到 Inkmap Pro",
12
12
  "command.installDeepSeekHarness": "安装到 DeepSeek Harness",
13
+ "command.openDemo": "打开示例思维导图",
13
14
  "config.billingOrigin": "Inkmap 收费服务的 HTTPS 地址。",
14
15
  "config.browser": "“在浏览器中打开思维导图”使用的浏览器",
15
16
  "config.browser.chrome": "用 Google Chrome 打开(找不到时改用默认浏览器)",
16
17
  "config.browser.default": "用系统默认浏览器打开",
17
- "config.browserAutoSave": "在浏览器中修改导图后自动保存文档;关闭后改动只进入编辑器中未保存的内容"
18
+ "config.browserAutoSave": "在浏览器中修改导图后自动保存文档;关闭后改动只进入编辑器中未保存的内容",
19
+ "config.codeLens": "在 Markdown 文件首行顶部显示“用 Inkmap 思维导图打开 | 浏览器全屏打开”快捷入口"
18
20
  }
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.11";
469
+ INKMAP_VERSION = "0.3.13";
470
470
  }
471
471
  });
472
472
 
@@ -1324,7 +1324,7 @@ function licenseService(storage, getOrigin, { loginOnly = false, host: defaultHo
1324
1324
  return;
1325
1325
  if (hostHint)
1326
1326
  detectedHost = hostHint;
1327
- if (!sentAppOpen) {
1327
+ if (!sentAppOpen && !PASSIVE_TELEMETRY_EVENTS.has(event)) {
1328
1328
  sentAppOpen = true;
1329
1329
  pendingEvents.set("app_open", (pendingEvents.get("app_open") ?? 0) + 1);
1330
1330
  }
@@ -1431,7 +1431,7 @@ async function localTrialDeadline() {
1431
1431
  const started = Number(value);
1432
1432
  return Number.isSafeInteger(started) && started > 0 && started <= Date.now() ? started + TRIAL_MS : void 0;
1433
1433
  }
1434
- var import_node_child_process, import_promises, import_node_crypto, import_node_os, import_node_path, ZH_LOCALE_RE, EN_LOCALE_RE, cachedOsLocale, WAIT_FAST_MS, WAIT_SLOW_MS, WAIT_FAST_FOR_MS, WAIT_MAX_MS, MAX_WAITING, DOMESTIC_TIME_ZONE, posixLocale;
1434
+ var import_node_child_process, import_promises, import_node_crypto, import_node_os, import_node_path, ZH_LOCALE_RE, EN_LOCALE_RE, cachedOsLocale, WAIT_FAST_MS, WAIT_SLOW_MS, WAIT_FAST_FOR_MS, WAIT_MAX_MS, MAX_WAITING, DOMESTIC_TIME_ZONE, posixLocale, PASSIVE_TELEMETRY_EVENTS;
1435
1435
  var init_license = __esm({
1436
1436
  "packages/cli/dist/license.js"() {
1437
1437
  "use strict";
@@ -1451,6 +1451,7 @@ var init_license = __esm({
1451
1451
  MAX_WAITING = 5;
1452
1452
  DOMESTIC_TIME_ZONE = /^(Asia\/(Shanghai|Chongqing|Chungking|Harbin|Urumqi|Beijing)|PRC)$/i;
1453
1453
  posixLocale = (env) => (env.LC_ALL || env.LC_MESSAGES || env.LANG || "").trim();
1454
+ PASSIVE_TELEMETRY_EVENTS = /* @__PURE__ */ new Set(["plugin_activate", "plugin_install", "onboarding_view"]);
1454
1455
  }
1455
1456
  });
1456
1457