@daogee/mdgraph 1.1.0 → 1.2.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/CHANGELOG.md +30 -1
- package/README-ZH.md +12 -2
- package/README.md +12 -2
- package/agent-pack/README.md +2 -0
- package/agent-pack/mdgraph-agent-instructions.md +3 -1
- package/agent-pack/prompts/wiki-authoring.md +12 -0
- package/agent-pack/skills/wiki-authoring/SKILL.md +38 -0
- package/agent-pack/skills/wiki-authoring/agents/openai.yaml +4 -0
- package/dist/analysis/status-freshness.d.ts +8 -1
- package/dist/analysis/status-freshness.js +19 -6
- package/dist/bin/mdgraph.js +124 -6
- package/dist/db/connection.js +17 -1
- package/dist/db/repositories.d.ts +28 -4
- package/dist/db/repositories.js +148 -5
- package/dist/db/sqlite-adapter.js +8 -2
- package/dist/evaluation/retrieval-eval.d.ts +11 -0
- package/dist/evaluation/retrieval-eval.js +35 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.js +3 -0
- package/dist/indexer.js +64 -6
- package/dist/mcp/server.js +5 -4
- package/dist/mcp/tools.js +23 -9
- package/dist/query/context-builder.d.ts +1 -0
- package/dist/query/context-builder.js +30 -1
- package/dist/query/knowledge-card.d.ts +90 -0
- package/dist/query/knowledge-card.js +676 -0
- package/dist/query/search.js +8 -3
- package/dist/semantic/ollama-provider.js +6 -1
- package/dist/utils/path-safety.d.ts +3 -0
- package/dist/utils/path-safety.js +27 -0
- package/dist/watcher/file-watcher.js +85 -16
- package/dist/wiki/wiki-dependencies.d.ts +20 -0
- package/dist/wiki/wiki-dependencies.js +45 -0
- package/dist/wiki/wiki-domains.d.ts +13 -0
- package/dist/wiki/wiki-domains.js +55 -0
- package/dist/wiki/wiki-evidence.d.ts +27 -0
- package/dist/wiki/wiki-evidence.js +112 -0
- package/dist/wiki/wiki-plan.d.ts +121 -0
- package/dist/wiki/wiki-plan.js +616 -0
- package/dist/wiki/wiki-status.d.ts +67 -0
- package/dist/wiki/wiki-status.js +451 -0
- package/docs/EN/Agent_Integration.md +14 -4
- package/docs/EN/Architecture.md +13 -0
- package/docs/EN/Evaluation_Questions.md +14 -0
- package/docs/EN/Knowledge_Cards_and_Wiki_Workflow.md +97 -0
- package/docs/EN/Operations.md +20 -0
- package/docs/EN/Output_Contracts.md +42 -3
- package/docs/EN/Public_Contracts.md +3 -1
- package/docs/EN/Public_Contracts_1.0.md +4 -0
- package/docs/EN/README.md +1 -0
- package/docs/EN/Release_Checklist.md +1 -0
- package/docs/EN/Retrieval_and_Context.md +6 -0
- package/docs/ZH/Agent_Integration.md +14 -4
- package/docs/ZH/Architecture.md +13 -2
- package/docs/ZH/Evaluation_Questions.md +14 -0
- package/docs/ZH/Knowledge_Cards_and_Wiki_Workflow.md +99 -0
- package/docs/ZH/Operations.md +20 -0
- package/docs/ZH/Output_Contracts.md +42 -3
- package/docs/ZH/Public_Contracts.md +3 -1
- package/docs/ZH/Public_Contracts_1.0.md +4 -0
- package/docs/ZH/README.md +1 -0
- package/docs/ZH/Release_Checklist.md +1 -0
- package/docs/ZH/Retrieval_and_Context.md +6 -0
- package/package.json +7 -2
|
@@ -110,3 +110,9 @@ lambda * queryRelevance - (1 - lambda) * maximumSimilarityToSelected
|
|
|
110
110
|
- MMR 在仓库 fixture 上降低了实测冗余,但最佳 lambda 和相似度阈值仍取决于语料。
|
|
111
111
|
|
|
112
112
|
公开 `eval` 命令、回归套件和证据边界见[评估](Evaluation_Questions.md)。索引新鲜度与 provider 故障恢复见[运行与故障处理](Operations.md)。
|
|
113
|
+
|
|
114
|
+
## 精确实体查询与知识卡片
|
|
115
|
+
|
|
116
|
+
Search 先按规范化后的完整查询匹配已索引实体,包含中文名称和小写配置键。只在 front matter 中声明的定义也会返回命中实体,不要求正文重复名称。
|
|
117
|
+
|
|
118
|
+
`node` 结果包含确定性的 Knowledge Card,保留稳定节点 ID、定义、源码引用、关系与证据。卡片 `maxChars` 按序列化 JSON 字符数计算,默认 4,000。可选列表和展示文本裁剪时保留遗漏计数或 `…`,节点身份不变。预算不足以表示必需结构及截断说明时明确报错。Context 仅在剩余文本预算能容纳完整摘要时附加卡片摘要,不改变已经装入的 Markdown 正文。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@daogee/mdgraph",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Local-first Markdown document graph for AI coding workflows.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"docs/EN/Retrieval_and_Context.md",
|
|
25
25
|
"docs/EN/Structured_Query_and_Relationships.md",
|
|
26
26
|
"docs/EN/Operations.md",
|
|
27
|
+
"docs/EN/Knowledge_Cards_and_Wiki_Workflow.md",
|
|
27
28
|
"docs/EN/Output_Contracts.md",
|
|
28
29
|
"docs/EN/Public_Contracts.md",
|
|
29
30
|
"docs/EN/Public_Contracts_1.0.md",
|
|
@@ -35,6 +36,7 @@
|
|
|
35
36
|
"docs/ZH/Retrieval_and_Context.md",
|
|
36
37
|
"docs/ZH/Structured_Query_and_Relationships.md",
|
|
37
38
|
"docs/ZH/Operations.md",
|
|
39
|
+
"docs/ZH/Knowledge_Cards_and_Wiki_Workflow.md",
|
|
38
40
|
"docs/ZH/Output_Contracts.md",
|
|
39
41
|
"docs/ZH/Public_Contracts.md",
|
|
40
42
|
"docs/ZH/Public_Contracts_1.0.md",
|
|
@@ -58,6 +60,8 @@
|
|
|
58
60
|
"smoke:clean": "node scripts/smoke-clean.mjs",
|
|
59
61
|
"smoke:eval": "node scripts/smoke-eval.mjs",
|
|
60
62
|
"smoke:pack": "node scripts/smoke-pack.mjs",
|
|
63
|
+
"baseline:knowledge-wiki": "npm run build && node scripts/knowledge-wiki-baseline.mjs",
|
|
64
|
+
"baseline:performance": "npm run build && node scripts/performance-baseline.mjs",
|
|
61
65
|
"baseline:historical": "npm run build && node scripts/historical-baseline.mjs",
|
|
62
66
|
"baseline:entity-extraction": "npm run build && node scripts/entity-extraction-baseline.mjs",
|
|
63
67
|
"baseline:context-packing": "npm run build && node scripts/context-packing-baseline.mjs",
|
|
@@ -84,7 +88,8 @@
|
|
|
84
88
|
"devDependencies": {
|
|
85
89
|
"@types/node": "^22.15.30",
|
|
86
90
|
"typescript": "^5.8.3",
|
|
87
|
-
"
|
|
91
|
+
"vite": "^6.4.3",
|
|
92
|
+
"vitest": "^4.1.11"
|
|
88
93
|
},
|
|
89
94
|
"overrides": {
|
|
90
95
|
"esbuild": "0.28.1"
|