bluera-knowledge 0.31.0 → 0.33.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/.claude-plugin/plugin.json +23 -0
- package/.mcp.json +13 -0
- package/CHANGELOG.md +42 -0
- package/NOTICE +47 -0
- package/README.md +2 -2
- package/bun.lock +1978 -0
- package/dist/{chunk-B335UOU7.js → chunk-3TB7TDVF.js} +24 -3
- package/dist/chunk-3TB7TDVF.js.map +1 -0
- package/dist/{chunk-KCI4U6FH.js → chunk-KDZDLJUY.js} +2 -2
- package/dist/{chunk-AEXFPA57.js → chunk-YDTTD53Y.js} +158 -26
- package/dist/chunk-YDTTD53Y.js.map +1 -0
- package/dist/index.js +3 -3
- package/dist/mcp/bootstrap.js +10 -0
- package/dist/mcp/bootstrap.js.map +1 -1
- package/dist/mcp/server.d.ts +5 -3
- package/dist/mcp/server.js +2 -2
- package/dist/workers/background-worker-cli.js +2 -2
- package/hooks/check-ready.sh +109 -0
- package/hooks/hooks.json +97 -0
- package/hooks/job-status-hook.sh +51 -0
- package/hooks/posttooluse-bk-reminder.py +126 -0
- package/hooks/posttooluse-web-research.py +209 -0
- package/hooks/posttooluse-websearch-bk.py +158 -0
- package/hooks/pretooluse-bk-suggest.py +296 -0
- package/hooks/skill-activation.py +221 -0
- package/hooks/skill-rules.json +131 -0
- package/package.json +9 -2
- package/scripts/CLAUDE.md +65 -0
- package/scripts/auto-setup.sh +65 -0
- package/scripts/bench-regression.sh +345 -0
- package/scripts/dev.sh +16 -0
- package/scripts/doctor.sh +103 -0
- package/scripts/download-models.ts +188 -0
- package/scripts/export-web-store.ts +142 -0
- package/scripts/lib/mock-server.sh +70 -0
- package/scripts/mcp-wrapper.sh +91 -0
- package/scripts/setup.sh +224 -0
- package/scripts/statusline-module.sh +29 -0
- package/scripts/test-mcp-dev.js +260 -0
- package/scripts/validate-local.sh +412 -0
- package/scripts/validate-npm-release.sh +406 -0
- package/skills/add-folder/SKILL.md +48 -0
- package/skills/add-repo/SKILL.md +50 -0
- package/skills/advanced-workflows/SKILL.md +273 -0
- package/skills/cancel/SKILL.md +63 -0
- package/skills/check-status/SKILL.md +130 -0
- package/skills/crawl/SKILL.md +61 -0
- package/skills/doctor/SKILL.md +27 -0
- package/skills/eval/SKILL.md +222 -0
- package/skills/health/SKILL.md +72 -0
- package/skills/index/SKILL.md +48 -0
- package/skills/knowledge-search/SKILL.md +110 -0
- package/skills/remove-store/SKILL.md +52 -0
- package/skills/search/SKILL.md +80 -0
- package/skills/search/search.sh +63 -0
- package/skills/search-optimization/SKILL.md +199 -0
- package/skills/search-optimization/references/mistakes.md +21 -0
- package/skills/search-optimization/references/strategies.md +80 -0
- package/skills/skill-activation/SKILL.md +131 -0
- package/skills/statusline/SKILL.md +19 -0
- package/skills/store-lifecycle/SKILL.md +470 -0
- package/skills/stores/SKILL.md +54 -0
- package/skills/suggest/SKILL.md +118 -0
- package/skills/sync/SKILL.md +96 -0
- package/skills/test-plugin/SKILL.md +547 -0
- package/skills/uninstall/SKILL.md +65 -0
- package/skills/when-to-query/SKILL.md +160 -0
- package/dist/chunk-AEXFPA57.js.map +0 -1
- package/dist/chunk-B335UOU7.js.map +0 -1
- /package/dist/{chunk-KCI4U6FH.js.map → chunk-KDZDLJUY.js.map} +0 -0
|
@@ -4945,6 +4945,7 @@ function mapSearchIntentToQueryIntent(intent) {
|
|
|
4945
4945
|
case "find-pattern":
|
|
4946
4946
|
case "find-implementation":
|
|
4947
4947
|
case "find-definition":
|
|
4948
|
+
case "find-files":
|
|
4948
4949
|
return "implementation";
|
|
4949
4950
|
case "find-usage":
|
|
4950
4951
|
case "find-documentation":
|
|
@@ -5579,6 +5580,12 @@ var SearchService = class {
|
|
|
5579
5580
|
location: `${path4}${codeUnit ? `:${String(codeUnit.startLine)}` : ""}`,
|
|
5580
5581
|
relevanceReason: this.generateRelevanceReason(result, query)
|
|
5581
5582
|
};
|
|
5583
|
+
if (graph) {
|
|
5584
|
+
const relatedFiles = this.getRelatedFilePaths(graph, path4, symbolName);
|
|
5585
|
+
if (relatedFiles.length > 0) {
|
|
5586
|
+
enhanced.summary = { ...enhanced.summary, relatedFiles };
|
|
5587
|
+
}
|
|
5588
|
+
}
|
|
5582
5589
|
if (detail === "contextual" || detail === "full") {
|
|
5583
5590
|
const usage = this.getUsageFromGraph(graph, path4, symbolName);
|
|
5584
5591
|
enhanced.context = {
|
|
@@ -5794,9 +5801,23 @@ var SearchService = class {
|
|
|
5794
5801
|
};
|
|
5795
5802
|
}
|
|
5796
5803
|
/**
|
|
5797
|
-
* Get related
|
|
5798
|
-
* Returns
|
|
5804
|
+
* Get related file paths from code graph edges for follow-up reads.
|
|
5805
|
+
* Returns unique file paths (max 5) from callers/callees, excluding the result's own file.
|
|
5799
5806
|
*/
|
|
5807
|
+
getRelatedFilePaths(graph, filePath, symbolName) {
|
|
5808
|
+
if (symbolName === "" || symbolName === "(anonymous)") return [];
|
|
5809
|
+
const nodeId = `${filePath}:${symbolName}`;
|
|
5810
|
+
const files = /* @__PURE__ */ new Set();
|
|
5811
|
+
for (const edge of graph.getIncomingEdges(nodeId)) {
|
|
5812
|
+
const [file] = this.parseNodeId(edge.from);
|
|
5813
|
+
if (file && file !== filePath) files.add(file);
|
|
5814
|
+
}
|
|
5815
|
+
for (const edge of graph.getEdges(nodeId)) {
|
|
5816
|
+
const [file] = this.parseNodeId(edge.to);
|
|
5817
|
+
if (file && file !== filePath) files.add(file);
|
|
5818
|
+
}
|
|
5819
|
+
return Array.from(files).slice(0, 5);
|
|
5820
|
+
}
|
|
5800
5821
|
getRelatedCodeFromGraph(graph, filePath, symbolName) {
|
|
5801
5822
|
if (!graph || symbolName === "" || symbolName === "(anonymous)") {
|
|
5802
5823
|
return [];
|
|
@@ -7555,4 +7576,4 @@ export {
|
|
|
7555
7576
|
createServices,
|
|
7556
7577
|
destroyServices
|
|
7557
7578
|
};
|
|
7558
|
-
//# sourceMappingURL=chunk-
|
|
7579
|
+
//# sourceMappingURL=chunk-3TB7TDVF.js.map
|