misakanet 3.12.0 → 3.12.2

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "misakanet",
3
- "version": "3.12.0",
3
+ "version": "3.12.2",
4
4
  "description": "Failure-memory network for AI coding agents: search evidence-rated failure lessons, submit new failures, and turn crashes into reusable knowledge.",
5
5
  "author": {
6
6
  "name": "Ikalus1988",
package/lib/client.js CHANGED
@@ -132,19 +132,21 @@ window.__ModuleLoader__.load({
132
132
  var en = {
133
133
  "guide.description": "What this session asked, what came back, and what you filed",
134
134
  "panel.asked": "What this session asked",
135
- "panel.asked.none": "No MisakaNet search has run in this session yet — the entry point is the composer: type /misakanet, then what broke.",
135
+ "panel.asked.none": "Nothing searched yet. In the composer: `/misakanet <what broke>`.",
136
136
  "panel.reports": "Reports you filed",
137
137
  "panel.reports.none": "Nothing filed from this session.",
138
138
  "panel.trust": "How much these lessons are trusted",
139
- "panel.trust.none": "No lesson surfaced yet — the entry point is the composer: type /misakanet, then what broke.",
139
+ "panel.trust.none": "No lesson surfaced yet.",
140
140
  "panel.hint.open": "Open the search box over the composer",
141
141
  "panel.hint.openLabel": "Open the search box",
142
142
  "panel.hint.openTitle": "Opens the composer's own MisakaNet overlay, which carries the same instruction. It does not type into the composer: a view occupant receives props, and the draft is reachable only from a live session scope, so nothing here can put `/misakanet ` in the box for you.",
143
143
  "panel.activity": "Your activity",
144
144
  "panel.ladder": "Contribution ladder",
145
+ "panel.ladder.window": "this week · top 5",
146
+ "panel.sources": "Where these numbers come from",
145
147
  "panel.ladder.loading": "reading this week\u2019s ladder\u2026",
146
148
  "panel.ladder.none": "No contribution recorded this week yet.",
147
- "panel.ladder.coverage": "Lessons count submissions, not retrievals, until lesson attribution exists.",
149
+ "panel.ladder.coverage": "Submissions only; retrieval attribution pending.",
148
150
  "panel.voice": "Voice",
149
151
  "panel.voice.on": "Voice cues: on",
150
152
  "panel.voice.off": "Voice cues: off",
@@ -229,11 +231,11 @@ window.__ModuleLoader__.load({
229
231
  "panel.coverage": "The topics the corpus cannot answer yet",
230
232
  "panel.coverage.loading": "reading the network's coverage board…",
231
233
  "panel.coverage.none": "The coverage board ranked no topic, so this section shows nothing rather than a guess.",
232
- "panel.coverage.rule": "The ranking above counts what searches brought back; this one counts what they did not find. Each row is a topic with the last 30 days' unanswered searches, read from the network's own coverage board, and the number of published lessons that match it.",
234
+ "panel.coverage.rule": "The ranking above counts what searches brought back; this one counts what they did not find — unanswered searches, not retrievals.",
233
235
  "panel.coverage.lessonsTpl": "{count} in the corpus · ",
234
236
  "panel.coverage.unsolvedTpl": "{count} found nothing in 30 days",
235
237
  "panel.coverage.totals": "{count} published in all · the topics below are the ones with the most unanswered searches",
236
- "panel.counters": "this session · counters local to this browser · no account, nothing uploaded but your votes and reports",
238
+ "panel.counters": "this browser · no account, nothing uploaded",
237
239
  "panel.report.title": "MisakaNet report",
238
240
  "panel.report.coveredBy": "covered by ",
239
241
  "panel.report.similarity": " (similarity ",
@@ -257,12 +259,12 @@ window.__ModuleLoader__.load({
257
259
  "panel.activity.session": "this session: ",
258
260
  "panel.activity.browser": "on this browser: ",
259
261
  "panel.activity.conversion": "conversion",
260
- "panel.activity.scope": "The browser column survives a reload; the session column is rebuilt from this conversation's transcript and starts again in a new session.",
262
+ "panel.activity.scope": "This browser's column survives a reload; this session's does not.",
261
263
  "panel.voice.cue": "The cue is the server's own choice for the last search (",
262
264
  "panel.voice.cueTail": "), not the UI's guess. Browser playback only, and off by default — nothing plays until you turn it on or press play.",
263
265
  "panel.voice.none": "No cue yet: the server names one on the first search of the session.",
264
266
  "panel.voice.play": "Play “",
265
- "panel.voice.hook": "The local hook is a different thing: it is installed with `--voice` and mutes with MISAKANET_VOICE=0, plays through this machine's own player, and can also raise a desktop notification. A page cannot read or change it, so this panel does not report its state.",
267
+ "panel.voice.hook": "The `--voice` hook is separate (mute with MISAKANET_VOICE=0); a page cannot read or change it.",
266
268
  "panel.footnote": "Every number above comes from this conversation's own transcript rows plus one public GET per lesson (/api/helpful), one read of the network's retrieval ranking (/api/analytics) and one read of its coverage board (/api/insights/lesson-coverage) and one read of its contribution ladder (/api/leaderboard/ladder). The trust counts are other people's confirmations, not yours. Reloading the window loses the session rows; the browser counters stay. Receipts shown here are what the agent's own calls returned — a pending report is re-checked when the agent asks again, not by this page.",
267
269
  "main.footnote": "The left column opens this page; the session-scoped counters live in the session's right-sidebar MisakaNet tab. The numbers here are what this browser has contributed.",
268
270
  "tool.rawResult": "raw result",
@@ -309,19 +311,21 @@ window.__ModuleLoader__.load({
309
311
  var zh = {
310
312
  "guide.description": "本会话问过什么、拿回了什么、你报了什么",
311
313
  "panel.asked": "本会话问过什么",
312
- "panel.asked.none": "本会话还没有发起过 MisakaNet 检索 —— 入口就在输入框:先打 /misakanet,再写清楚出了什么问题。",
314
+ "panel.asked.none": "还没有检索过。在输入框里写 `/misakanet <出了什么问题>`。",
313
315
  "panel.reports": "你报过的问题",
314
316
  "panel.reports.none": "本会话没有报过任何问题。",
315
317
  "panel.trust": "这些课程的可信度",
316
- "panel.trust.none": "还没有命中过课程 —— 入口就在输入框:先打 /misakanet,再写清楚出了什么问题。",
318
+ "panel.trust.none": "还没有命中课程。",
317
319
  "panel.hint.open": "在输入框上方打开检索框",
318
320
  "panel.hint.openLabel": "打开检索框",
319
321
  "panel.hint.openTitle": "打开输入框自己的 MisakaNet 浮层,里面写着同样的用法。它不会替你在输入框里打字:视图组件只拿得到 props,草稿只有活的 session 作用域才能改,所以从这里没办法替你填入「/misakanet 」。",
320
322
  "panel.activity": "你的活动",
321
323
  "panel.ladder": "贡献天梯",
324
+ "panel.ladder.window": "本周 · 前五",
325
+ "panel.sources": "这些数字从哪来",
322
326
  "panel.ladder.loading": "正在读本周天梯…",
323
327
  "panel.ladder.none": "本周还没有可上榜的贡献。",
324
- "panel.ladder.coverage": "课程数按提交计,不按取用计——直到课程有作者归属。",
328
+ "panel.ladder.coverage": "仅计提交;取用归属未接入。",
325
329
  "panel.voice": "语音",
326
330
  "panel.voice.on": "语音提示:开",
327
331
  "panel.voice.off": "语音提示:关",
@@ -394,11 +398,11 @@ window.__ModuleLoader__.load({
394
398
  "panel.coverage": "语料还答不上来的主题",
395
399
  "panel.coverage.loading": "正在读网络的覆盖看板……",
396
400
  "panel.coverage.none": "覆盖看板没有排出任何主题 —— 这一节宁可什么都不显示,也不猜。",
397
- "panel.coverage.rule": "上面那一节数的是检索带回来了什么;这一节数的是没找到什么。每一行是一个主题,配最近 30 天里没有拿到答案的检索次数(读的是网络自己的覆盖看板),以及语料里匹配该主题的已发布课程数。",
401
+ "panel.coverage.rule": "上面那一节数的是检索带回来了什么;这一节数的是没找到什么——没有拿到答案的检索,不是取用。",
398
402
  "panel.coverage.lessonsTpl": "{n} {unit}在库 · ",
399
403
  "panel.coverage.unsolvedTpl": "30 天内 {n} {unit}没有答案",
400
404
  "panel.coverage.totals": "{n} {unit}已发布 · 下面是没有答案的检索最多的主题",
401
- "panel.counters": "本会话 · 计数只存在本浏览器 · 没有账号,除了你的投票与报料,不上传任何东西",
405
+ "panel.counters": "本浏览器 · 无需账号,不上传内容",
402
406
  "panel.report.title": "MisakaNet 报料",
403
407
  "panel.report.coveredBy": "已被 ",
404
408
  "panel.report.similarity": "(相似度 ",
@@ -422,12 +426,12 @@ window.__ModuleLoader__.load({
422
426
  "panel.activity.session": "本会话:",
423
427
  "panel.activity.browser": "本浏览器:",
424
428
  "panel.activity.conversion": "转化",
425
- "panel.activity.scope": "浏览器那一列能跨刷新保留;会话那一列由本次对话的转录重建,换一个会话就从零开始。",
429
+ "panel.activity.scope": "浏览器那一列跨刷新保留;会话那一列不保留。",
426
430
  "panel.voice.cue": "提示音是服务端为上一次检索自己选的(",
427
431
  "panel.voice.cueTail": "),不是界面猜的。只在本浏览器播放,且默认关闭 —— 你不打开或点播放,它不会响。",
428
432
  "panel.voice.none": "还没有提示音:服务端会在本会话第一次检索时给出。",
429
433
  "panel.voice.play": "播放“",
430
- "panel.voice.hook": "本地钩子是另一回事:用 --voice 安装,用 MISAKANET_VOICE=0 静音,通过本机自己的播放器发声,还能弹桌面通知。页面读不到也改不了它,所以这个面板不报告它的状态。",
434
+ "panel.voice.hook": "本地的 --voice 钩子是另一套(用 MISAKANET_VOICE=0 静音);页面读不到也改不了它。",
431
435
  "panel.footnote": "上面的数字都来自本次对话自己的转录,外加每篇课程一次公开 GET(/api/helpful)、一次对全网检索排行的读取(/api/analytics)一次对覆盖看板的读取(/api/insights/lesson-coverage)和一次对贡献天梯的读取(/api/leaderboard/ladder)。可信计数是别人的确认,不是你自己的。重载窗口会丢掉会话行,浏览器计数会留下。这里的回执是 agent 自己调用返回的东西 —— 待处理报料会在 agent 再次提问时复查,而不是这个页面。",
432
436
  "main.footnote": "左栏打开的就是这一页;会话级的计数在右栏的 MisakaNet 标签里。这里的数字是本浏览器贡献的部分。",
433
437
  "tool.rawResult": "原始结果",
@@ -1408,17 +1412,31 @@ var DEFAULT_MCP_URL = "https://misakanet.org/mcp";
1408
1412
  .catch(function () { if (alive) setLadder(null); });
1409
1413
  return function () { alive = false; };
1410
1414
  }, []);
1411
- var rows = [h("div", { key: "t", style: { marginTop: "12px", fontWeight: 600 } }, T("panel.ladder"))];
1415
+ var rows = [h("div", { key: "t", style: { marginTop: "12px", fontWeight: 600, display: "flex",
1416
+ alignItems: "baseline", gap: "6px" } },
1417
+ T("panel.ladder"),
1418
+ h("span", { style: Object.assign({}, DIM, { fontWeight: 400 }) }, T("panel.ladder.window")))];
1412
1419
  if (ladder === undefined) {
1413
1420
  rows.push(h("div", { key: "w", style: DIM }, T("panel.ladder.loading")));
1414
1421
  } else if (!ladder || !ladder.top.length) {
1415
1422
  rows.push(h("div", { key: "e", style: DIM }, T("panel.ladder.none")));
1416
1423
  } else {
1417
- rows.push(h("div", { key: "r" }, ladder.top.map(function (entry) {
1418
- return h("div", { key: "l" + entry.rank, style: { display: "flex", gap: "8px", padding: "2px 0" } },
1419
- h("span", { style: Object.assign({}, DIM, { width: "18px", textAlign: "right" }) }, String(entry.rank)),
1420
- h("span", { style: { flex: "1 1 auto", minWidth: 0, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" } }, String(entry.name || entry.node || "")),
1421
- h("span", { style: { flex: "none", fontVariantNumeric: "tabular-nums" } }, String(entry.score)));
1424
+ var top = ladder.top.slice(0, 5);
1425
+ var max = top[0].score || 1;
1426
+ rows.push(h("div", { key: "r", style: Object.assign({}, BOX, { marginTop: "6px" }) }, top.map(function (entry) {
1427
+ var share = Math.max(4, Math.round((entry.score / max) * 100));
1428
+ return h("div", { key: "l" + entry.rank, style: { padding: "4px 0" } },
1429
+ h("div", { style: { display: "flex", alignItems: "baseline", gap: "8px" } },
1430
+ h("span", { style: Object.assign({}, DIM, { width: "16px", textAlign: "right",
1431
+ fontVariantNumeric: "tabular-nums" }) }, String(entry.rank)),
1432
+ h("span", { style: { flex: "1 1 auto", minWidth: 0, overflow: "hidden",
1433
+ textOverflow: "ellipsis", whiteSpace: "nowrap" } }, String(entry.name || entry.node || "")),
1434
+ h("span", { style: { flex: "none", fontWeight: 600,
1435
+ fontVariantNumeric: "tabular-nums" } }, String(entry.score))),
1436
+ h("div", { style: { height: "2px", margin: "3px 0 0 24px", borderRadius: "1px",
1437
+ background: "rgba(127,127,127,.22)" } },
1438
+ h("i", { style: { display: "block", height: "100%", width: share + "%",
1439
+ borderRadius: "1px", background: "currentColor", opacity: 0.45 } })));
1422
1440
  })));
1423
1441
  if (ladder.coverage && ladder.coverage.note) {
1424
1442
  rows.push(h("div", { key: "c", style: Object.assign({}, DIM, { marginTop: "4px" }) }, T("panel.ladder.coverage")));
@@ -1618,6 +1636,12 @@ var DEFAULT_MCP_URL = "https://misakanet.org/mcp";
1618
1636
  count(votes.length, T("unit.vote"), T("unit.votes")) + " " + T("panel.strip.helpfulTpl", { count: count(helpful, T("unit.vote"), T("unit.votes")), n: helpful, unit: T("unit.votes") }) +
1619
1637
  count(intakes.length, T("unit.report"), T("unit.reports")) + " " + T("panel.strip.convertedTpl", { count: count(converted, T("unit.report"), T("unit.reports")), n: converted, unit: T("unit.reports") })));
1620
1638
 
1639
+ // The ladder sits directly under the counters, not at the bottom: it is the one number on this
1640
+ // page about the whole network rather than this browser, and it used to be the last thing a
1641
+ // reader reached — the review said the placement made a headline look like a footnote.
1642
+ rows.push(h(LadderSection, { key: "ladder" }));
1643
+
1644
+
1621
1645
  // ① what this session asked
1622
1646
  //
1623
1647
  // This is the session's own transcript, and each row already knows which searches were *not*
@@ -1867,7 +1891,7 @@ var DEFAULT_MCP_URL = "https://misakanet.org/mcp";
1867
1891
  count(stats.votes || 0, T("unit.vote"), T("unit.votes")) + " · " +
1868
1892
  T("panel.activity.reportsTpl", { count: count(stats.reportsFiled || 0, T("unit.reportFiled"), T("unit.reportsFiled")), n: stats.reportsFiled || 0, unit: T("unit.reportsFiled") }) +
1869
1893
  T("panel.activity.filedTpl", { count: count(stats.reportsConverted || 0, T("unit.conversion"), T("unit.conversions")), n: stats.reportsConverted || 0, unit: T("unit.conversions") })),
1870
- h("div", { style: DIM }, T("panel.activity.scope"))));
1894
+ ));
1871
1895
 
1872
1896
  // ⑤ voice
1873
1897
  rows.push(h("div", { key: "s5", style: { marginTop: "12px", fontWeight: 600 } }, T("panel.voice")));
@@ -1961,10 +1985,9 @@ var DEFAULT_MCP_URL = "https://misakanet.org/mcp";
1961
1985
  })));
1962
1986
  }
1963
1987
 
1964
- rows.push(h(LadderSection, { key: "s8" }));
1965
-
1966
- rows.push(h("div", { key: "foot", style: Object.assign({}, DIM, { marginTop: "12px" }) },
1967
- T("panel.footnote")));
1988
+ rows.push(h("details", { key: "foot", style: Object.assign({}, DIM, { marginTop: "12px" }) },
1989
+ h("summary", { style: { cursor: "pointer" } }, T("panel.sources")),
1990
+ h("div", { style: { marginTop: "4px" } }, T("panel.footnote"))));
1968
1991
 
1969
1992
  return h("div", { style: { fontSize: "12px", lineHeight: "1.7", padding: "4px 2px" } }, rows);
1970
1993
  }
@@ -2536,8 +2559,6 @@ var DEFAULT_MCP_URL = "https://misakanet.org/mcp";
2536
2559
  function MisakanetMainView(props) {
2537
2560
  return h("div", { style: { height: "100%", overflowY: "auto", padding: "28px 32px 48px" } },
2538
2561
  h("div", { style: { maxWidth: "860px", margin: "0 auto" } },
2539
- h("p", { style: { margin: "0 0 14px", color: "inherit", opacity: 0.7, fontSize: "13px", lineHeight: "1.5" } },
2540
- T("main.footnote")),
2541
2562
  h(MisakanetPanel, { sessionId: props && props.sessionId })));
2542
2563
  }
2543
2564
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "misakanet",
3
- "version": "3.12.0",
3
+ "version": "3.12.2",
4
4
  "license": "Apache-2.0",
5
5
  "description": "MisakaNet failure-memory skill — evidence-rated failure lessons for AI agents. DSH bundle: registers the MCP tools as mcp__misakanet__* (misakanet_search/get_lesson/…), served by the public Streamable HTTP endpoint https://misakanet.org/mcp — live tools from an npm install, in any profile, with no local python. A profile that prefers the repo's own stdio server can override the bundle row.",
6
6
  "icon": "icon.svg",