inkmap-mcp 0.3.2 → 0.3.4

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/cli.cjs CHANGED
@@ -171,15 +171,26 @@ function licenseService(storage, getOrigin, { loginOnly = false, host: defaultHo
171
171
  }
172
172
  return /^1\d{10}$/.test(clean) ? `${clean.slice(0, 3)}****${clean.slice(7)}` : clean.slice(0, 32);
173
173
  }
174
- function clientLocale() {
175
- const raw = (process.env.INKMAP_LOCALE || process.env.LC_ALL || process.env.LC_MESSAGES || process.env.LANG || "").trim();
176
- if (/^zh\b/i.test(raw))
174
+ function clientLocale(hint) {
175
+ const h2 = (hint || "").trim();
176
+ if (/^zh\b/i.test(h2))
177
+ return "zh";
178
+ if (/^en\b/i.test(h2))
179
+ return "en";
180
+ const envLocale = (process.env.INKMAP_LOCALE || "").trim();
181
+ if (/^zh\b/i.test(envLocale))
177
182
  return "zh";
178
- if (/^en\b/i.test(process.env.INKMAP_LOCALE || ""))
183
+ if (/^en\b/i.test(envLocale))
179
184
  return "en";
185
+ const raw = (process.env.LC_ALL || process.env.LC_MESSAGES || process.env.LANG || "").trim();
186
+ if (/^zh\b/i.test(raw))
187
+ return "zh";
180
188
  try {
181
- const tz = Intl.DateTimeFormat().resolvedOptions().timeZone || "";
182
- if (/^Asia\/(Shanghai|Chongqing|Harbin|Urumqi)$/i.test(tz))
189
+ const opts = Intl.DateTimeFormat().resolvedOptions();
190
+ if (/^zh\b/i.test(opts.locale || ""))
191
+ return "zh";
192
+ const tz = opts.timeZone || "";
193
+ if (/^(Asia\/(Shanghai|Chongqing|Chungking|Harbin|Urumqi|Beijing)|PRC)$/i.test(tz))
183
194
  return "zh";
184
195
  } catch {
185
196
  }
@@ -192,16 +203,18 @@ function licenseService(storage, getOrigin, { loginOnly = false, host: defaultHo
192
203
  });
193
204
  return next;
194
205
  }
195
- async function createCheckoutFlow(origin, existingToken, existingCookie) {
206
+ async function createCheckoutFlow(origin, existingToken, existingCookie, localeHint) {
207
+ const loc = clientLocale(localeHint);
196
208
  const response = await fetch(origin + "/billing/v1/connections", {
197
209
  method: "POST",
198
210
  headers: {
199
211
  "content-type": "application/json",
212
+ "x-inkmap-locale": loc,
200
213
  ...existingToken && { authorization: "Bearer " + existingToken },
201
214
  ...existingCookie && { cookie: existingCookie }
202
215
  },
203
216
  redirect: "error",
204
- body: JSON.stringify({ product: PRODUCT.id, mode: "buy" }),
217
+ body: JSON.stringify({ product: PRODUCT.id, mode: "buy", locale: loc }),
205
218
  signal: AbortSignal.timeout(8e3)
206
219
  });
207
220
  if (!response.ok)
@@ -214,11 +227,13 @@ function licenseService(storage, getOrigin, { loginOnly = false, host: defaultHo
214
227
  }
215
228
  return { origin, url: url2, token: data.token, ...cookie && { cookie } };
216
229
  }
217
- function checkoutPost(checkoutUrl, action, origin, body, token, cookie) {
230
+ function checkoutPost(checkoutUrl, action, origin, body, token, cookie, localeHint) {
231
+ const loc = clientLocale(localeHint);
218
232
  return fetch(checkoutUrl + "/" + action, {
219
233
  method: "POST",
220
234
  headers: {
221
235
  "content-type": "application/json",
236
+ "x-inkmap-locale": loc,
222
237
  origin,
223
238
  ...token && { authorization: "Bearer " + token },
224
239
  ...cookie && { cookie }
@@ -228,13 +243,14 @@ function licenseService(storage, getOrigin, { loginOnly = false, host: defaultHo
228
243
  signal: AbortSignal.timeout(12e3)
229
244
  });
230
245
  }
231
- function phoneRequest(origin, action, phone, code) {
246
+ function phoneRequest(origin, action, phone, code, localeHint) {
232
247
  const isEmail = phone.includes("@");
233
- const locale = clientLocale();
248
+ const locale = clientLocale(localeHint);
234
249
  return fetch(origin + "/billing/v1/phone-sign-in/" + action, {
235
250
  method: "POST",
236
251
  headers: {
237
252
  "content-type": "application/json",
253
+ "x-inkmap-locale": locale,
238
254
  "accept-language": locale === "zh" ? "zh-CN,zh;q=0.9" : "en-US,en;q=0.9"
239
255
  },
240
256
  redirect: "error",
@@ -359,10 +375,11 @@ function licenseService(storage, getOrigin, { loginOnly = false, host: defaultHo
359
375
  await refresh();
360
376
  return current;
361
377
  },
362
- async connect(mode) {
378
+ async connect(mode, localeHint) {
363
379
  if (loginOnly && mode !== "restore")
364
380
  throw new Error("Only Yunfan account sign-in is available.");
365
381
  const origin = billingOrigin(getOrigin());
382
+ const loc = clientLocale(localeHint);
366
383
  const version2 = generation;
367
384
  let existingToken;
368
385
  try {
@@ -378,6 +395,7 @@ function licenseService(storage, getOrigin, { loginOnly = false, host: defaultHo
378
395
  method: "POST",
379
396
  headers: {
380
397
  "content-type": "application/json",
398
+ "x-inkmap-locale": loc,
381
399
  ...existingToken && { authorization: "Bearer " + existingToken }
382
400
  },
383
401
  redirect: "error",
@@ -385,10 +403,10 @@ function licenseService(storage, getOrigin, { loginOnly = false, host: defaultHo
385
403
  signal: AbortSignal.timeout(8e3)
386
404
  });
387
405
  let legacy = false;
388
- let response = await (mode === "restore" ? create("restore-connections", { product: PRODUCT.id }) : create("connections", { product: PRODUCT.id, mode }));
406
+ let response = await (mode === "restore" ? create("restore-connections", { product: PRODUCT.id }) : create("connections", { product: PRODUCT.id, mode, locale: loc }));
389
407
  if (mode === "restore" && !loginOnly && response.status === 404) {
390
408
  legacy = true;
391
- response = await create("connections", { product: PRODUCT.id, mode });
409
+ response = await create("connections", { product: PRODUCT.id, mode, locale: loc });
392
410
  }
393
411
  if (!response.ok)
394
412
  throw new Error("Unable to start the Yunfan account flow.");
@@ -410,7 +428,7 @@ function licenseService(storage, getOrigin, { loginOnly = false, host: defaultHo
410
428
  });
411
429
  return url2;
412
430
  },
413
- async orderPro() {
431
+ async orderPro(localeHint) {
414
432
  if (loginOnly)
415
433
  throw new Error("Only Yunfan account sign-in is available.");
416
434
  const origin = billingOrigin(getOrigin());
@@ -429,7 +447,7 @@ function licenseService(storage, getOrigin, { loginOnly = false, host: defaultHo
429
447
  } catch {
430
448
  }
431
449
  const requestOrder = async (checkoutUrl, token, cookie, persist) => {
432
- const res = await checkoutPost(checkoutUrl, "order", origin, {}, token, cookie);
450
+ const res = await checkoutPost(checkoutUrl, "order", origin, {}, token, cookie, localeHint);
433
451
  if (res.status === 401 || res.status === 403 || res.status === 404 || res.status === 410)
434
452
  return null;
435
453
  if (!res.ok)
@@ -479,31 +497,31 @@ function licenseService(storage, getOrigin, { loginOnly = false, host: defaultHo
479
497
  return existing;
480
498
  }
481
499
  const existingToken = record2?.origin === origin && typeof record2.token === "string" ? record2.token : void 0;
482
- const flow = await createCheckoutFlow(origin, existingToken, existingCookie);
500
+ const flow = await createCheckoutFlow(origin, existingToken, existingCookie, localeHint);
483
501
  const ordered = await requestOrder(flow.url, flow.token, flow.cookie, true);
484
502
  if (ordered)
485
503
  return ordered;
486
504
  pendingCheckout = flow;
487
505
  return { status: "needsPhone" };
488
506
  },
489
- async sendPhoneCode(phone) {
507
+ async sendPhoneCode(phone, localeHint) {
490
508
  if (typeof phone !== "string" || !phone.trim() || phone.length > 254)
491
509
  return phoneFailure(400);
492
510
  const isEmail = phone.includes("@");
493
- const locale = clientLocale();
511
+ const locale = clientLocale(localeHint);
494
512
  try {
495
513
  const origin = billingOrigin(getOrigin());
496
514
  if (!loginOnly) {
497
515
  try {
498
516
  if (!pendingCheckout || pendingCheckout.origin !== origin) {
499
- pendingCheckout = await createCheckoutFlow(origin);
517
+ pendingCheckout = await createCheckoutFlow(origin, void 0, void 0, locale);
500
518
  }
501
519
  const sendAction = isEmail ? "email/send" : "sms";
502
520
  const sendBody = isEmail ? { email: phone, locale } : { phone };
503
- let smsRes = await checkoutPost(pendingCheckout.url, sendAction, origin, sendBody, pendingCheckout.token, pendingCheckout.cookie);
521
+ let smsRes = await checkoutPost(pendingCheckout.url, sendAction, origin, sendBody, pendingCheckout.token, pendingCheckout.cookie, locale);
504
522
  if (smsRes.status === 410 || smsRes.status === 404) {
505
- pendingCheckout = await createCheckoutFlow(origin);
506
- smsRes = await checkoutPost(pendingCheckout.url, sendAction, origin, sendBody, pendingCheckout.token, pendingCheckout.cookie);
523
+ pendingCheckout = await createCheckoutFlow(origin, void 0, void 0, locale);
524
+ smsRes = await checkoutPost(pendingCheckout.url, sendAction, origin, sendBody, pendingCheckout.token, pendingCheckout.cookie, locale);
507
525
  }
508
526
  pendingCheckout.cookie = mergeCookies(pendingCheckout.cookie, smsRes);
509
527
  return smsRes.status === 204 ? { ok: true, value: void 0 } : phoneFailure(smsRes.status);
@@ -511,7 +529,7 @@ function licenseService(storage, getOrigin, { loginOnly = false, host: defaultHo
511
529
  pendingCheckout = void 0;
512
530
  }
513
531
  }
514
- const response = await phoneRequest(origin, "send", phone);
532
+ const response = await phoneRequest(origin, "send", phone, void 0, locale);
515
533
  return response.status === 204 ? { ok: true, value: void 0 } : phoneFailure(response.status);
516
534
  } catch {
517
535
  return phoneFailure();
@@ -687,7 +705,7 @@ function licenseService(storage, getOrigin, { loginOnly = false, host: defaultHo
687
705
  installId: id,
688
706
  host: hostName,
689
707
  os,
690
- version: "0.3.2",
708
+ version: "0.3.4",
691
709
  locale: clientLocale(),
692
710
  tier,
693
711
  events
@@ -942,7 +960,7 @@ function within(root, rel) {
942
960
  return full.startsWith(base) ? full : null;
943
961
  }
944
962
  async function serve({ source: initialSource, webRoot, port = 4377, host = "127.0.0.1", log = () => {
945
- }, license, ads, sidebar = false, sidebarPurchase = false, sidebarAccountNavigation = false, loginOnly = false, ideWorkspace = false }) {
963
+ }, license, ads, sidebar = false, sidebarPurchase = false, sidebarAccountNavigation = false, loginOnly = false, ideWorkspace = false, workspaceRoots = [] }) {
946
964
  if (sidebar && host !== "127.0.0.1")
947
965
  throw new Error("The sidebar bridge requires loopback.");
948
966
  const prefix = sidebar ? `/s/${(0, import_node_crypto2.randomBytes)(24).toString("hex")}/` : "/";
@@ -1001,7 +1019,7 @@ data: ${JSON.stringify(data)}
1001
1019
  const projRoot = await (0, import_promises2.realpath)(await findProjectRoot(realKey)).catch(() => (0, import_node_path2.dirname)(realKey));
1002
1020
  roots.set(projRoot, { path: projRoot, name: (0, import_node_path2.basename)(projRoot), active: true });
1003
1021
  }
1004
- const envRoots = (process.env.INKMAP_WORKSPACES || "").split(import_node_path2.delimiter).filter(Boolean);
1022
+ const envRoots = [...workspaceRoots, ...(process.env.INKMAP_WORKSPACES || "").split(import_node_path2.delimiter)].filter(Boolean);
1005
1023
  for (const raw of envRoots) {
1006
1024
  const real = await (0, import_promises2.realpath)((0, import_node_path2.resolve)(raw)).catch(() => null);
1007
1025
  if (real && !roots.has(real)) {
@@ -1187,14 +1205,14 @@ data: ${JSON.stringify(data)}
1187
1205
  if (url2.pathname === "/api/checkout" && req.method === "POST") {
1188
1206
  if (!sameOriginPost())
1189
1207
  return json2(res, 403, { error: "forbidden" });
1190
- const { mode } = JSON.parse(await readBody(req));
1208
+ const { mode, locale } = JSON.parse(await readBody(req));
1191
1209
  if (mode !== "buy" && mode !== "restore")
1192
1210
  return json2(res, 400, { error: "invalid checkout mode" });
1193
1211
  if (!canPurchase && mode === "buy")
1194
1212
  return json2(res, 403, { error: "forbidden" });
1195
1213
  if (!license)
1196
1214
  return json2(res, 503, { error: "Inkmap checkout is unavailable." });
1197
- return json2(res, 200, { url: await license.connect(mode) });
1215
+ return json2(res, 200, { url: await (typeof locale === "string" ? license.connect(mode, locale) : license.connect(mode)) });
1198
1216
  }
1199
1217
  if (url2.pathname === "/api/order-pro" && req.method === "POST") {
1200
1218
  if (!sameOriginPost())
@@ -1205,15 +1223,16 @@ data: ${JSON.stringify(data)}
1205
1223
  return json2(res, 503, { error: "Inkmap checkout is unavailable." });
1206
1224
  if (typeof license.orderPro !== "function")
1207
1225
  return json2(res, 501, { fallback: true });
1208
- return json2(res, 200, { result: await license.orderPro() });
1226
+ const { locale } = JSON.parse(await readBody(req) || "{}");
1227
+ return json2(res, 200, { result: await (typeof locale === "string" ? license.orderPro(locale) : license.orderPro()) });
1209
1228
  }
1210
1229
  if (url2.pathname === "/api/phone-send" && req.method === "POST") {
1211
1230
  if (!sameOriginPost())
1212
1231
  return json2(res, 403, { error: "forbidden" });
1213
1232
  if (!license || typeof license.sendPhoneCode !== "function")
1214
1233
  return json2(res, 501, { fallback: true });
1215
- const { phone } = JSON.parse(await readBody(req));
1216
- return json2(res, 200, { result: await license.sendPhoneCode(String(phone ?? "")) });
1234
+ const { phone, locale } = JSON.parse(await readBody(req));
1235
+ return json2(res, 200, { result: await (typeof locale === "string" ? license.sendPhoneCode(String(phone ?? ""), locale) : license.sendPhoneCode(String(phone ?? ""))) });
1217
1236
  }
1218
1237
  if (url2.pathname === "/api/phone-verify" && req.method === "POST") {
1219
1238
  if (!sameOriginPost())
@@ -39793,7 +39812,7 @@ async function createInkmapMcpServer(options = {}) {
39793
39812
  const fallbackEditors = /* @__PURE__ */ new Map();
39794
39813
  const ads = adFeed(PRODUCT.adFeedUrl);
39795
39814
  const workspaces = createMcpWorkspaceManager();
39796
- const server = new McpServer({ name: "inkmap", version: "0.3.2" });
39815
+ const server = new McpServer({ name: "inkmap", version: "0.3.4" });
39797
39816
  function isAntigravityHost() {
39798
39817
  const clientName = server.server.getClientVersion()?.name ?? "";
39799
39818
  if (/antigravity/i.test(clientName))
@@ -39866,14 +39885,15 @@ async function createInkmapMcpServer(options = {}) {
39866
39885
  if (!pending) {
39867
39886
  pending = (async () => {
39868
39887
  const source = await fileSource(filePath);
39888
+ browserBilling ??= licenseService(fileSessionStorage(), billingOrigin2);
39869
39889
  return serve({
39870
39890
  source,
39871
39891
  webRoot: WEB_ROOT,
39872
39892
  port: 0,
39873
- license: billing,
39874
- ads: async () => [],
39893
+ license: browserBilling,
39894
+ ads,
39875
39895
  sidebar: false,
39876
- loginOnly: true,
39896
+ loginOnly: false,
39877
39897
  ideWorkspace: true
39878
39898
  });
39879
39899
  })();
@@ -40074,15 +40094,16 @@ async function createInkmapMcpServer(options = {}) {
40074
40094
  }, async () => ({ content: [], structuredContent: { ...await billing.state() } }));
40075
40095
  server.registerTool("inkmap_restore_access", {
40076
40096
  title: "Sign in to Yunfan",
40097
+ inputSchema: { locale: external_exports.string().optional() },
40077
40098
  annotations: { destructiveHint: false },
40078
40099
  _meta: appOnly
40079
- }, async () => ({ content: [], structuredContent: { url: await billing.connect("restore") } }));
40100
+ }, async ({ locale }) => ({ content: [], structuredContent: { url: await billing.connect("restore", locale) } }));
40080
40101
  server.registerTool("inkmap_phone_send", {
40081
40102
  title: "Send phone verification code",
40082
- inputSchema: { phone: external_exports.string() },
40103
+ inputSchema: { phone: external_exports.string(), locale: external_exports.string().optional() },
40083
40104
  annotations: { destructiveHint: false },
40084
40105
  _meta: appOnly
40085
- }, async ({ phone }) => ({ content: [], structuredContent: { result: await billing.sendPhoneCode(phone) } }));
40106
+ }, async ({ phone, locale }) => ({ content: [], structuredContent: { result: await billing.sendPhoneCode(phone, locale) } }));
40086
40107
  server.registerTool("inkmap_phone_verify", {
40087
40108
  title: "Verify phone sign-in code",
40088
40109
  inputSchema: { phone: external_exports.string(), code: external_exports.string() },
@@ -40240,7 +40261,7 @@ function isChineseTerminalLocale() {
40240
40261
  if (/^zh\b/i.test(loc))
40241
40262
  return true;
40242
40263
  const tz = Intl.DateTimeFormat().resolvedOptions().timeZone || "";
40243
- if (/^Asia\/(Shanghai|Chongqing|Harbin|Urumqi)$/i.test(tz))
40264
+ if (/^(Asia\/(Shanghai|Chongqing|Chungking|Harbin|Urumqi|Beijing)|PRC)$/i.test(tz))
40244
40265
  return true;
40245
40266
  } catch {
40246
40267
  }
@@ -40452,7 +40473,7 @@ function installIdeExtension(editorDir, cliCmd) {
40452
40473
  return null;
40453
40474
  }
40454
40475
  const extPkg = JSON.parse((0, import_node_fs3.readFileSync)((0, import_node_path5.join)(vscodeBundle, "package.json"), "utf8"));
40455
- const version2 = extPkg.version || "0.3.2";
40476
+ const version2 = extPkg.version || "0.3.4";
40456
40477
  const staging = (0, import_node_fs3.mkdtempSync)((0, import_node_path5.join)((0, import_node_os5.tmpdir)(), "inkmap-vsix-"));
40457
40478
  try {
40458
40479
  const extStaging = (0, import_node_path5.join)(staging, "extension");
@@ -40903,11 +40924,11 @@ async function runInstall(options = {}) {
40903
40924
  log("\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500");
40904
40925
  log("\u{1F381} 7 \u5929\u514D\u8D39\u8BD5\u7528\u4E0E Inkmap Pro \u7EC8\u8EAB\u4F1A\u5458\u5F00\u901A\uFF1A");
40905
40926
  log(" \u2022 \u9996\u6B21\u4F7F\u7528\u4EAB 7 \u5929\u5168\u529F\u80FD\u514D\u8D39\u8BD5\u7528\uFF08\u65E0\u9700\u767B\u5F55\uFF09");
40906
- log(" \u2022 \u5F00\u901A Pro \u7EC8\u8EAB\u7248\uFF08\xA529.90 \u5FAE\u4FE1\u652F\u4ED8\u4E00\u6B21\u4E70\u65AD\uFF0C\u514D\u8D39\u5305\u542B\u540E\u7EED\u5168\u90E8\u66F4\u65B0\uFF09\uFF1A");
40907
- log(" \u{1F449} \u5B98\u65B9\u7F51\u7AD9\u5F00\u901A: https://zhiyuanv.com/software.html#inkmap-pricing");
40908
- log(" \u{1F449} \u6216\u7EC8\u7AEF\u72EC\u7ACB\u6253\u5F00: npx -y inkmap-mcp@latest \u4F60\u7684\u6587\u6863.md \uFF08\u53F3\u4E0A\u89D2\u70B9\u51FB\u300C\u8D2D\u4E70 Pro\u300D\uFF09");
40909
- log(" \u2022 \u8DE8\u7AEF\u540C\u6B65\uFF1A\u5728\u5B98\u7F51\u8D2D\u4E70\u540E\uFF0C\u5728\u4EFB\u610F\u5BA2\u6237\u7AEF\uFF08Cursor / Claude / Codex / Antigravity / VS Code\uFF09");
40910
- log(" \u5BFC\u56FE\u53F3\u4E0A\u89D2\u70B9\u51FB\u300C\u767B\u5F55\u300D\u8F93\u5165\u540C\u4E00\u90AE\u7BB1\u9A8C\u8BC1\uFF0CPro \u7EC8\u8EAB\u6743\u76CA\u5373\u523B\u81EA\u52A8\u540C\u6B65\u6FC0\u6D3B\uFF01");
40927
+ log(" \u2022 \u5F00\u901A Pro \u7EC8\u8EAB\u7248\uFF08\xA529.9 \u5FAE\u4FE1\u652F\u4ED8\u4E00\u6B21\u4E70\u65AD\uFF0C\u514D\u8D39\u5305\u542B\u540E\u7EED\u5168\u90E8\u66F4\u65B0\uFF09\uFF1A");
40928
+ log(" \u{1F449} \u63D2\u4EF6\u5185\u76F4\u63A5\u5F00\u901A: VS Code / Cursor / DeepSeek Harness / Qoder / \u6D4F\u89C8\u5668\u7248\u53F3\u4E0A\u89D2\u70B9\u51FB\u300C\u7ACB\u5373\u5F00\u901A Pro\uFF08\xA529.9\uFF09\u300D");
40929
+ log(" \u{1F449} \u6216\u5B98\u65B9\u7F51\u7AD9\u5F00\u901A: https://zhiyuanv.com/software.html?lang=zh#inkmap-pricing");
40930
+ log(" \u2022 \u5168\u5E73\u53F0\u901A\u7528\uFF1A\u767B\u5F55\u540C\u4E00\u90AE\u7BB1\u5373\u53EF\u5728 Cursor / VS Code / DeepSeek Harness / Qoder / WorkBuddy /");
40931
+ log(" Claude Desktop / Claude Code / OpenAI Codex / Google Antigravity / Trae \u5168\u7AEF\u540C\u6B65\u6FC0\u6D3B\uFF01");
40911
40932
  log("\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500");
40912
40933
  } else {
40913
40934
  log(`[inkmap] Installation complete (Node: ${process.execPath}):`);
@@ -40918,12 +40939,11 @@ async function runInstall(options = {}) {
40918
40939
  log("\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500");
40919
40940
  log("\u{1F381} 7-Day Free Trial & Inkmap Pro Lifetime License:");
40920
40941
  log(" \u2022 Enjoy a 7-day full-featured free trial from first use (no sign-in required)");
40921
- log(" \u2022 Upgrade to Inkmap Pro Lifetime (US$15.00 one-time purchase, all future updates included):");
40922
- log(" \u{1F449} Official Website: https://zhiyuanv.com/software.html?lang=en#inkmap-pricing");
40923
- log(" \u{1F449} Or run standalone in browser: npx -y inkmap-mcp@latest notes.md (click 'Buy Pro')");
40924
- log(" \u2022 Cross-Client Sync: After purchasing on the website, click 'Sign in' in the top-right");
40925
- log(" corner inside Claude, Codex, Cursor, Antigravity, or VS Code with the same email");
40926
- log(" account to sync your Lifetime Pro access automatically!");
40942
+ log(" \u2022 Upgrade to Inkmap Pro Lifetime ($15 one-time purchase, all future updates included):");
40943
+ log(" \u{1F449} In-Plugin Checkout: Click 'Buy Pro ($15)' inside VS Code / Cursor / DeepSeek Harness / Qoder / Browser");
40944
+ log(" \u{1F449} Or Official Website: https://zhiyuanv.com/software.html?lang=en#inkmap-pricing");
40945
+ log(" \u2022 Cross-Platform Sync: Sign in with the same email across Cursor, VS Code, DeepSeek Harness,");
40946
+ log(" Qoder, WorkBuddy, Claude Desktop, Claude Code, OpenAI Codex, Google Antigravity & Trae!");
40927
40947
  log("\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500");
40928
40948
  }
40929
40949
  return result;
@@ -41026,7 +41046,7 @@ var import_node_url4 = require("node:url");
41026
41046
  init_dist();
41027
41047
  init_license();
41028
41048
  init_server();
41029
- var INKMAP_VERSION = "0.3.2";
41049
+ var INKMAP_VERSION = "0.3.4";
41030
41050
  var WEB_ROOT2 = (0, import_node_url4.fileURLToPath)(new URL("./web/", inkmapModuleUrl));
41031
41051
  var USAGE = `Inkmap v${INKMAP_VERSION} \u2014 Markdown \u4EA4\u4E92\u601D\u7EF4\u5BFC\u56FE\u7F16\u8F91\u5668 & MCP App
41032
41052