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.
Files changed (70) hide show
  1. package/.claude-plugin/plugin.json +23 -0
  2. package/.mcp.json +13 -0
  3. package/CHANGELOG.md +42 -0
  4. package/NOTICE +47 -0
  5. package/README.md +2 -2
  6. package/bun.lock +1978 -0
  7. package/dist/{chunk-B335UOU7.js → chunk-3TB7TDVF.js} +24 -3
  8. package/dist/chunk-3TB7TDVF.js.map +1 -0
  9. package/dist/{chunk-KCI4U6FH.js → chunk-KDZDLJUY.js} +2 -2
  10. package/dist/{chunk-AEXFPA57.js → chunk-YDTTD53Y.js} +158 -26
  11. package/dist/chunk-YDTTD53Y.js.map +1 -0
  12. package/dist/index.js +3 -3
  13. package/dist/mcp/bootstrap.js +10 -0
  14. package/dist/mcp/bootstrap.js.map +1 -1
  15. package/dist/mcp/server.d.ts +5 -3
  16. package/dist/mcp/server.js +2 -2
  17. package/dist/workers/background-worker-cli.js +2 -2
  18. package/hooks/check-ready.sh +109 -0
  19. package/hooks/hooks.json +97 -0
  20. package/hooks/job-status-hook.sh +51 -0
  21. package/hooks/posttooluse-bk-reminder.py +126 -0
  22. package/hooks/posttooluse-web-research.py +209 -0
  23. package/hooks/posttooluse-websearch-bk.py +158 -0
  24. package/hooks/pretooluse-bk-suggest.py +296 -0
  25. package/hooks/skill-activation.py +221 -0
  26. package/hooks/skill-rules.json +131 -0
  27. package/package.json +9 -2
  28. package/scripts/CLAUDE.md +65 -0
  29. package/scripts/auto-setup.sh +65 -0
  30. package/scripts/bench-regression.sh +345 -0
  31. package/scripts/dev.sh +16 -0
  32. package/scripts/doctor.sh +103 -0
  33. package/scripts/download-models.ts +188 -0
  34. package/scripts/export-web-store.ts +142 -0
  35. package/scripts/lib/mock-server.sh +70 -0
  36. package/scripts/mcp-wrapper.sh +91 -0
  37. package/scripts/setup.sh +224 -0
  38. package/scripts/statusline-module.sh +29 -0
  39. package/scripts/test-mcp-dev.js +260 -0
  40. package/scripts/validate-local.sh +412 -0
  41. package/scripts/validate-npm-release.sh +406 -0
  42. package/skills/add-folder/SKILL.md +48 -0
  43. package/skills/add-repo/SKILL.md +50 -0
  44. package/skills/advanced-workflows/SKILL.md +273 -0
  45. package/skills/cancel/SKILL.md +63 -0
  46. package/skills/check-status/SKILL.md +130 -0
  47. package/skills/crawl/SKILL.md +61 -0
  48. package/skills/doctor/SKILL.md +27 -0
  49. package/skills/eval/SKILL.md +222 -0
  50. package/skills/health/SKILL.md +72 -0
  51. package/skills/index/SKILL.md +48 -0
  52. package/skills/knowledge-search/SKILL.md +110 -0
  53. package/skills/remove-store/SKILL.md +52 -0
  54. package/skills/search/SKILL.md +80 -0
  55. package/skills/search/search.sh +63 -0
  56. package/skills/search-optimization/SKILL.md +199 -0
  57. package/skills/search-optimization/references/mistakes.md +21 -0
  58. package/skills/search-optimization/references/strategies.md +80 -0
  59. package/skills/skill-activation/SKILL.md +131 -0
  60. package/skills/statusline/SKILL.md +19 -0
  61. package/skills/store-lifecycle/SKILL.md +470 -0
  62. package/skills/stores/SKILL.md +54 -0
  63. package/skills/suggest/SKILL.md +118 -0
  64. package/skills/sync/SKILL.md +96 -0
  65. package/skills/test-plugin/SKILL.md +547 -0
  66. package/skills/uninstall/SKILL.md +65 -0
  67. package/skills/when-to-query/SKILL.md +160 -0
  68. package/dist/chunk-AEXFPA57.js.map +0 -1
  69. package/dist/chunk-B335UOU7.js.map +0 -1
  70. /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 code from graph.
5798
- * Returns callers and callees for the symbol.
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-B335UOU7.js.map
7579
+ //# sourceMappingURL=chunk-3TB7TDVF.js.map