misakanet 3.11.3 → 3.12.0
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/.codex-plugin/plugin.json +1 -1
- package/README.ja.md +10 -4
- package/README.md +10 -4
- package/README.zh-CN.md +8 -3
- package/lib/client.js +55 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "misakanet",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.12.0",
|
|
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/README.ja.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<div align="right">
|
|
2
2
|
|
|
3
|
-
[English](README.md) | [日本語](README.ja.md) | [简体中文](README.zh-CN.md)
|
|
3
|
+
[English](README.md) | [日本語](README.ja.md) | [简体中文](README.zh-CN.md) | [+ 你的语言](https://github.com/Ikalus1988/MisakaNet/issues?q=is%3Aissue+is%3Aopen+label%3Ai18n)
|
|
4
4
|
|
|
5
5
|
</div>
|
|
6
6
|
|
|
@@ -130,9 +130,11 @@ MisakaNet は索引済みの失敗にだけ答えます。一致が無いとき
|
|
|
130
130
|
|
|
131
131
|
- **動く数字はバッジ**です:Lessons バッジは `data/badges/lessons.json` を読み、`update-badges.yml` が
|
|
132
132
|
再生成します。1 回の実行分は遅れることがありますが、手書きの合計値にはなりません。
|
|
133
|
-
-
|
|
134
|
-
|
|
135
|
-
|
|
133
|
+
- **証拠の階段の頂点は「宣言」ではなく「観測」です**:`E4` は 2 つの異なるクライアントが実際に同じ
|
|
134
|
+
レッスンを取得したという観測が必要で、レッスンのファイルには書けません。だからコーパスの宣言は 0 件
|
|
135
|
+
([宣言の分布](docs/trust-semantics.md)、CI が再生成・検証)で、実在する数字は worker が毎日
|
|
136
|
+
`search_signals` を読んだもので、[ハートビート](https://github.com/Ikalus1988/MisakaNet/issues/3471)
|
|
137
|
+
が公開します。
|
|
136
138
|
- **検索は BM25 なので、意味ではなく語に一致します**:コーパスが見たことのない語彙で失敗を説明すると
|
|
137
139
|
ミスになり、検索器の調整ではコーパスの穴は埋まりません。だからミスは空の結果ではなく `no_match` と
|
|
138
140
|
intake を返します。
|
|
@@ -211,6 +213,10 @@ with_lesson hit rate (per run date)
|
|
|
211
213
|
しません。本当の証明はもっと静かです:あなたの検索は「もう 1 つの別クライアントが使った」として匿名で
|
|
212
214
|
数えられます。
|
|
213
215
|
|
|
216
|
+
**3. このページを翻訳する。** README は 3 言語で出ています。4 つ目はマージされる PR 一つ分です——
|
|
217
|
+
公開中の [i18n タスク](https://github.com/Ikalus1988/MisakaNet/issues?q=is%3Aissue+is%3Aopen+label%3Ai18n)
|
|
218
|
+
に受け入れ条件がそのまま書いてあります。
|
|
219
|
+
|
|
214
220
|
**見返りは帰属**です:レッスンは生んだ intake を frontmatter に記します(`source:`、`provenance.issue:`)。
|
|
215
221
|
パイプラインはレッスン名と証拠レベルを書いた受領証を出せます。
|
|
216
222
|
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<div align="right">
|
|
2
2
|
|
|
3
|
-
[English](README.md) | [日本語](README.ja.md) | [简体中文](README.zh-CN.md)
|
|
3
|
+
[English](README.md) | [日本語](README.ja.md) | [简体中文](README.zh-CN.md) | [+ 你的语言](https://github.com/Ikalus1988/MisakaNet/issues?q=is%3Aissue+is%3Aopen+label%3Ai18n)
|
|
4
4
|
|
|
5
5
|
</div>
|
|
6
6
|
|
|
@@ -139,9 +139,11 @@ not to fail again. MisakaNet is only the second thing. → [FAQ](FAQ.md)
|
|
|
139
139
|
- **The numbers that move are badges**, on purpose: the Lessons badge renders
|
|
140
140
|
`data/badges/lessons.json`, regenerated by `update-badges.yml`, so it can lag a run but is never a
|
|
141
141
|
hand-typed total.
|
|
142
|
-
- **The top of the evidence ladder is
|
|
143
|
-
|
|
144
|
-
([distribution](docs/trust-semantics.md), regenerated and checked by CI)
|
|
142
|
+
- **The top of the evidence ladder is observed, not declared.** `E4` needs an observation — two
|
|
143
|
+
distinct clients actually retrieving a lesson — so no lesson file can carry it: the corpus declares
|
|
144
|
+
none ([declared distribution](docs/trust-semantics.md), regenerated and checked by CI), and the
|
|
145
|
+
number that exists is the worker's daily reading of `search_signals`, published in the
|
|
146
|
+
[heartbeat](https://github.com/Ikalus1988/MisakaNet/issues/3471).
|
|
145
147
|
- **Search is BM25 first; the hosted endpoint can fall back to embeddings.** Local/offline remains
|
|
146
148
|
stdlib BM25; the fallback runs only when BM25 returns no match, and `MISAKANET_SEMANTIC=0` turns it
|
|
147
149
|
off. A corpus gap is still a miss: the reply is `no_match` plus an intake, not an empty page.
|
|
@@ -244,6 +246,10 @@ no account, no email, no token, a five-line report is enough. It becomes a track
|
|
|
244
246
|
**2. Reuse a lesson and leave the trace.** A "this helped" vote is recorded as an `E3` hint, not as
|
|
245
247
|
proof. The proof is quieter: your retrieval is counted, anonymously, as one more distinct client.
|
|
246
248
|
|
|
249
|
+
**3. Translate this page.** The README ships in three languages; a fourth is one merged PR away —
|
|
250
|
+
the open [i18n tasks](https://github.com/Ikalus1988/MisakaNet/issues?q=is%3Aissue+is%3Aopen+label%3Ai18n)
|
|
251
|
+
carry the exact acceptance criteria.
|
|
252
|
+
|
|
247
253
|
**What you get back: attribution.** A lesson cites the intake that produced it (`source:`,
|
|
248
254
|
`provenance.issue:`), and the pipeline can emit a receipt naming the lesson and its evidence level.
|
|
249
255
|
|
package/README.zh-CN.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<div align="right">
|
|
2
2
|
|
|
3
|
-
[English](README.md) | [日本語](README.ja.md) | [简体中文](README.zh-CN.md)
|
|
3
|
+
[English](README.md) | [日本語](README.ja.md) | [简体中文](README.zh-CN.md) | [+ 你的语言](https://github.com/Ikalus1988/MisakaNet/issues?q=is%3Aissue+is%3Aopen+label%3Ai18n)
|
|
4
4
|
|
|
5
5
|
</div>
|
|
6
6
|
|
|
@@ -127,8 +127,9 @@ MisakaNet 只回答它已经索引过的失败。没有命中时,返回的是
|
|
|
127
127
|
|
|
128
128
|
- **会动的数字是徽章**:Lessons 徽章读 `data/badges/lessons.json`,由 `update-badges.yml` 重新生成——
|
|
129
129
|
可能落后一次运行,但永远不会是手写总数。
|
|
130
|
-
-
|
|
131
|
-
|
|
130
|
+
- **证据阶梯的顶端是「观测」不是「声明」**:`E4` 需要观测——两个不同客户端真的检索到同一篇——所以任何
|
|
131
|
+
课程文件都写不了它:语料里的声明数是 0([声明分布](docs/trust-semantics.md),由 CI 重新生成并校验),
|
|
132
|
+
真正存在的数字来自 worker 每天读 `search_signals`,由[心跳](https://github.com/Ikalus1988/MisakaNet/issues/3471)公开。
|
|
132
133
|
- **检索是 BM25,匹配词不匹配语义**:用词料里没见过的词汇描述失败就是未命中,调检索器救不了语料缺口——
|
|
133
134
|
所以未命中返回 `no_match` 加 intake,而不是空白页。
|
|
134
135
|
- **报料速度高于分诊速度**:intake 队列是诚实的瓶颈。
|
|
@@ -200,6 +201,10 @@ with_lesson hit rate (per run date)
|
|
|
200
201
|
**2. 复用一条 lesson,留下痕迹。** "这有用"这一票记为 `E3` 提示,不冒充证明。真正的证明更安静:
|
|
201
202
|
你的检索会被匿名计为"又一个不同客户端用过这篇"。
|
|
202
203
|
|
|
204
|
+
**3. 翻译这一页。** README 现在有三种语言;第四种只差一个合并的 PR——公开的
|
|
205
|
+
[i18n 任务](https://github.com/Ikalus1988/MisakaNet/issues?q=is%3Aissue+is%3Aopen+label%3Ai18n)
|
|
206
|
+
里写好了验收标准。
|
|
207
|
+
|
|
203
208
|
**你得到的回报是署名**:lesson 在 frontmatter 里引用产生它的 intake(`source:`、`provenance.issue:`),
|
|
204
209
|
管线可以出一张写明 lesson 与证据等级的回执。
|
|
205
210
|
|
package/lib/client.js
CHANGED
|
@@ -114,6 +114,10 @@ window.__ModuleLoader__.load({
|
|
|
114
114
|
var PANEL_KIND = "misakanet-panel";
|
|
115
115
|
var ROW_ID = "misakanet-mcp";
|
|
116
116
|
|
|
117
|
+
//: The panel's contribution ladder (section ⑧). A bare URL so the outbound-target audit sees the
|
|
118
|
+
//: route without a query string baked into the allowlist.
|
|
119
|
+
var LADDER_URL = "https://misakanet.org/api/leaderboard/ladder";
|
|
120
|
+
|
|
117
121
|
/**
|
|
118
122
|
* Localization. The dictionaries live in this file rather than in `locale/*.json`: those files are the
|
|
119
123
|
* *package metadata* the host reads for the plugin page's title and description (`dsh-app-boot`'s
|
|
@@ -137,6 +141,10 @@ window.__ModuleLoader__.load({
|
|
|
137
141
|
"panel.hint.openLabel": "Open the search box",
|
|
138
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.",
|
|
139
143
|
"panel.activity": "Your activity",
|
|
144
|
+
"panel.ladder": "Contribution ladder",
|
|
145
|
+
"panel.ladder.loading": "reading this week\u2019s ladder\u2026",
|
|
146
|
+
"panel.ladder.none": "No contribution recorded this week yet.",
|
|
147
|
+
"panel.ladder.coverage": "Lessons count submissions, not retrievals, until lesson attribution exists.",
|
|
140
148
|
"panel.voice": "Voice",
|
|
141
149
|
"panel.voice.on": "Voice cues: on",
|
|
142
150
|
"panel.voice.off": "Voice cues: off",
|
|
@@ -255,7 +263,7 @@ window.__ModuleLoader__.load({
|
|
|
255
263
|
"panel.voice.none": "No cue yet: the server names one on the first search of the session.",
|
|
256
264
|
"panel.voice.play": "Play “",
|
|
257
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.",
|
|
258
|
-
"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). 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.",
|
|
266
|
+
"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.",
|
|
259
267
|
"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.",
|
|
260
268
|
"tool.rawResult": "raw result",
|
|
261
269
|
"tool.readFailed": "result could not be read",
|
|
@@ -310,6 +318,10 @@ window.__ModuleLoader__.load({
|
|
|
310
318
|
"panel.hint.openLabel": "打开检索框",
|
|
311
319
|
"panel.hint.openTitle": "打开输入框自己的 MisakaNet 浮层,里面写着同样的用法。它不会替你在输入框里打字:视图组件只拿得到 props,草稿只有活的 session 作用域才能改,所以从这里没办法替你填入「/misakanet 」。",
|
|
312
320
|
"panel.activity": "你的活动",
|
|
321
|
+
"panel.ladder": "贡献天梯",
|
|
322
|
+
"panel.ladder.loading": "正在读本周天梯…",
|
|
323
|
+
"panel.ladder.none": "本周还没有可上榜的贡献。",
|
|
324
|
+
"panel.ladder.coverage": "课程数按提交计,不按取用计——直到课程有作者归属。",
|
|
313
325
|
"panel.voice": "语音",
|
|
314
326
|
"panel.voice.on": "语音提示:开",
|
|
315
327
|
"panel.voice.off": "语音提示:关",
|
|
@@ -416,7 +428,7 @@ window.__ModuleLoader__.load({
|
|
|
416
428
|
"panel.voice.none": "还没有提示音:服务端会在本会话第一次检索时给出。",
|
|
417
429
|
"panel.voice.play": "播放“",
|
|
418
430
|
"panel.voice.hook": "本地钩子是另一回事:用 --voice 安装,用 MISAKANET_VOICE=0 静音,通过本机自己的播放器发声,还能弹桌面通知。页面读不到也改不了它,所以这个面板不报告它的状态。",
|
|
419
|
-
"panel.footnote": "上面的数字都来自本次对话自己的转录,外加每篇课程一次公开 GET(/api/helpful)、一次对全网检索排行的读取(/api/analytics
|
|
431
|
+
"panel.footnote": "上面的数字都来自本次对话自己的转录,外加每篇课程一次公开 GET(/api/helpful)、一次对全网检索排行的读取(/api/analytics)一次对覆盖看板的读取(/api/insights/lesson-coverage)和一次对贡献天梯的读取(/api/leaderboard/ladder)。可信计数是别人的确认,不是你自己的。重载窗口会丢掉会话行,浏览器计数会留下。这里的回执是 agent 自己调用返回的东西 —— 待处理报料会在 agent 再次提问时复查,而不是这个页面。",
|
|
420
432
|
"main.footnote": "左栏打开的就是这一页;会话级的计数在右栏的 MisakaNet 标签里。这里的数字是本浏览器贡献的部分。",
|
|
421
433
|
"tool.rawResult": "原始结果",
|
|
422
434
|
"tool.readFailed": "结果读不出来",
|
|
@@ -1376,6 +1388,45 @@ var DEFAULT_MCP_URL = "https://misakanet.org/mcp";
|
|
|
1376
1388
|
* the panel rather than hidden: a reload loses the log, and the local voice hook is not ours to
|
|
1377
1389
|
* read.
|
|
1378
1390
|
*/
|
|
1391
|
+
/**
|
|
1392
|
+
* ⑧ the contribution ladder: this week's top rows, read from one public endpoint.
|
|
1393
|
+
*
|
|
1394
|
+
* A component of its own rather than a section inside the panel, because the data has nothing to do
|
|
1395
|
+
* with the session transcript the panel is built around: it is the whole network's ranking, one
|
|
1396
|
+
* `GET`, and it must not re-render every time a search lands. `undefined` is "still reading", `null`
|
|
1397
|
+
* is "the endpoint did not answer" — the two say different things and neither is an empty board.
|
|
1398
|
+
*/
|
|
1399
|
+
function LadderSection() {
|
|
1400
|
+
var state = react.useState(undefined);
|
|
1401
|
+
var ladder = state[0];
|
|
1402
|
+
var setLadder = state[1];
|
|
1403
|
+
react.useEffect(function () {
|
|
1404
|
+
var alive = true;
|
|
1405
|
+
fetch(LADDER_URL + "?window=week", { headers: { Accept: "application/json" } })
|
|
1406
|
+
.then(function (response) { return response.ok ? response.json() : null; })
|
|
1407
|
+
.then(function (data) { if (alive) setLadder(data && data.top ? data : null); })
|
|
1408
|
+
.catch(function () { if (alive) setLadder(null); });
|
|
1409
|
+
return function () { alive = false; };
|
|
1410
|
+
}, []);
|
|
1411
|
+
var rows = [h("div", { key: "t", style: { marginTop: "12px", fontWeight: 600 } }, T("panel.ladder"))];
|
|
1412
|
+
if (ladder === undefined) {
|
|
1413
|
+
rows.push(h("div", { key: "w", style: DIM }, T("panel.ladder.loading")));
|
|
1414
|
+
} else if (!ladder || !ladder.top.length) {
|
|
1415
|
+
rows.push(h("div", { key: "e", style: DIM }, T("panel.ladder.none")));
|
|
1416
|
+
} 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)));
|
|
1422
|
+
})));
|
|
1423
|
+
if (ladder.coverage && ladder.coverage.note) {
|
|
1424
|
+
rows.push(h("div", { key: "c", style: Object.assign({}, DIM, { marginTop: "4px" }) }, T("panel.ladder.coverage")));
|
|
1425
|
+
}
|
|
1426
|
+
}
|
|
1427
|
+
return h("div", null, rows);
|
|
1428
|
+
}
|
|
1429
|
+
|
|
1379
1430
|
function MisakanetPanel(props) {
|
|
1380
1431
|
var sessionId = props && props.sessionId;
|
|
1381
1432
|
var revisionState = react.useState(0);
|
|
@@ -1910,6 +1961,8 @@ var DEFAULT_MCP_URL = "https://misakanet.org/mcp";
|
|
|
1910
1961
|
})));
|
|
1911
1962
|
}
|
|
1912
1963
|
|
|
1964
|
+
rows.push(h(LadderSection, { key: "s8" }));
|
|
1965
|
+
|
|
1913
1966
|
rows.push(h("div", { key: "foot", style: Object.assign({}, DIM, { marginTop: "12px" }) },
|
|
1914
1967
|
T("panel.footnote")));
|
|
1915
1968
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "misakanet",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.12.0",
|
|
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",
|