mellos-mapping 0.26.0 → 0.26.1

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/server.mjs CHANGED
@@ -24650,7 +24650,7 @@ function launcherViewerPid(run) {
24650
24650
 
24651
24651
  // src/server/server.ts
24652
24652
  var SERVER_NAME = "mellos-mapping";
24653
- var SERVER_VERSION = "0.26.0";
24653
+ var SERVER_VERSION = "0.26.1";
24654
24654
  function text(s, isError = false) {
24655
24655
  return { content: [{ type: "text", text: s }], ...isError ? { isError: true } : {} };
24656
24656
  }
@@ -2,6 +2,6 @@
2
2
  <html lang="zh-CN"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Mellos · 终端地图</title><link rel="icon" href="data:,"><link rel="stylesheet" href="./xterm.css"><link rel="stylesheet" href="./terminal.css"><script type="module" src="./terminal.js"></script></head>
3
3
  <body><header><a class="brand" id="graphic" href="./" title="切换到图形地图">Mellos <span>图形地图 ↗</span></a><div class="tools"><label for="font-size">字号</label><select id="font-size" aria-label="终端字号"><option>10</option><option>11</option><option>12</option><option selected>13</option><option>14</option><option>15</option><option>16</option><option>18</option><option>20</option><option>24</option><option>28</option></select><button id="help" aria-label="操作帮助">?</button></div></header>
4
4
  <main id="terminal" aria-label="Mellos 终端地图"></main>
5
- <footer><span id="connection" role="status" aria-live="polite">正在连接…</span><button id="restart" hidden>重新连接</button><span class="hint">滚轮缩放 · 拖动平移 · 点击选择 · ? 帮助</span><aside id="star-reminder" aria-label="支持 Mellos Mapping" hidden><span>地图有帮到你?欢迎在 GitHub 点个 Star。</span><a href="https://github.com/GuangminJu/mellos-mapping" target="_blank" rel="noopener noreferrer">去点 Star ↗</a><button type="button">不再提醒</button></aside></footer>
5
+ <footer><span id="connection" role="status" aria-live="polite">正在连接…</span><button id="restart" hidden>重新连接</button><span class="hint">点击地图启用快捷键 · 滚轮缩放 · 拖动平移 · ? 帮助</span><aside id="star-reminder" aria-label="支持 Mellos Mapping" hidden><span>地图有帮到你?欢迎在 GitHub 点个 Star。</span><a href="https://github.com/GuangminJu/mellos-mapping" target="_blank" rel="noopener noreferrer">去点 Star ↗</a><button type="button">不再提醒</button></aside></footer>
6
6
  <dialog id="help-dialog"><h2>终端地图操作</h2><p>滚轮 / + / −:总览 → 模块 → 细节<br>拖动:平移 · 单击:固定详情<br>双击带 ⊞ 的节点:进入子地图<br>Backspace:返回父地图<br>Tab / 数字 1–9:切换页面<br>f:自动跟随 · 0:重置视图<br>x 按两次:确认删除当前页<br>q:关闭地图,可用「重新连接」再次打开</p><p>右上角字号只影响此网页终端。</p><form method="dialog"><button>关闭帮助</button></form></dialog>
7
7
  </body></html>
@@ -9289,12 +9289,11 @@ font.addEventListener("change", () => {
9289
9289
  } catch {
9290
9290
  }
9291
9291
  resize();
9292
- terminal.focus();
9293
9292
  });
9294
9293
  var help = element("help-dialog");
9295
9294
  element("help").addEventListener("click", () => help.showModal());
9296
- help.addEventListener("close", () => terminal.focus());
9297
9295
  terminal.attachCustomKeyEventHandler((event) => {
9296
+ if (event.isComposing || event.keyCode === 229) return true;
9298
9297
  if (event.key === "?") {
9299
9298
  if (event.type === "keydown" && !help.open) help.showModal();
9300
9299
  return false;
@@ -9302,6 +9301,7 @@ terminal.attachCustomKeyEventHandler((event) => {
9302
9301
  return true;
9303
9302
  });
9304
9303
  restart.addEventListener("click", () => {
9304
+ terminal.focus();
9305
9305
  retries = 0;
9306
9306
  connect();
9307
9307
  });
@@ -9322,7 +9322,6 @@ function connect() {
9322
9322
  if (socket !== connection) return;
9323
9323
  connection.send(JSON.stringify({ type: "start", ...dimensions() }));
9324
9324
  setStatus("\u5DF2\u8FDE\u63A5 \xB7 \u7EC8\u7AEF\u5730\u56FE", "connected");
9325
- terminal.focus();
9326
9325
  });
9327
9326
  connection.addEventListener("message", (event) => {
9328
9327
  if (socket !== connection) return;
package/docs/codex.md CHANGED
@@ -66,6 +66,11 @@ changes remeasure terminal cells rather than stretching an image, and do not
66
66
  change the host's global terminal font. The terminal uses xterm.js cell rendering;
67
67
  the graphical mode remains native SVG and supports SVG export.
68
68
 
69
+ Click the map or Tab into it to use map keyboard shortcuts. Loading, automatic
70
+ reconnection and page restoration preserve the current keyboard focus, so the
71
+ viewer can remain open while typing in the conversation. Font selection keeps
72
+ its own focus, and closing help returns to the control that opened it.
73
+
69
74
  Both modes use the same project maps. Terminal input/output goes over a local
70
75
  WebSocket to a dedicated mmap worker. Each connected browser owns its own
71
76
  page/zoom/selection state and renderer; there is no shared shell. Closing the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mellos-mapping",
3
- "version": "0.26.0",
3
+ "version": "0.26.1",
4
4
  "mcpName": "io.github.GuangminJu/mellos-mapping",
5
5
  "description": "A live layered dependency map for bottom-up development — MCP server + terminal pane. Ghost the design first, then light nodes up from the bottom as they are built and verified.",
6
6
  "type": "module",