bluera-knowledge 0.12.1 → 0.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.
- package/.claude-plugin/plugin.json +1 -1
- package/CHANGELOG.md +13 -0
- package/hooks/pretooluse-bk-reminder.py +10 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [0.12.2](https://github.com/blueraai/bluera-knowledge/compare/v0.11.21...v0.12.2) (2026-01-15)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **hooks:** add PreToolUse hooks for BK suggestions ([23d3fa4](https://github.com/blueraai/bluera-knowledge/commit/23d3fa493dd16427d6bda3ea80064622c6244bba))
|
|
11
|
+
* **hooks:** add skill auto-activation system ([2b4e96b](https://github.com/blueraai/bluera-knowledge/commit/2b4e96bd29f28df63377cdaacab922d4f4321a8f))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* **tests:** stabilize watch service tests in coverage mode ([fdf6c3a](https://github.com/blueraai/bluera-knowledge/commit/fdf6c3a478adff9e4746b54a9519184ca280f344))
|
|
17
|
+
|
|
5
18
|
## [0.12.1](https://github.com/blueraai/bluera-knowledge/compare/v0.11.21...v0.12.1) (2026-01-14)
|
|
6
19
|
|
|
7
20
|
|
|
@@ -74,9 +74,8 @@ def main() -> int:
|
|
|
74
74
|
if not trigger_reason:
|
|
75
75
|
return 0
|
|
76
76
|
|
|
77
|
-
# Output
|
|
78
|
-
|
|
79
|
-
BLUERA-KNOWLEDGE SUGGESTION
|
|
77
|
+
# Output structured JSON for reliable context injection
|
|
78
|
+
reminder_text = f"""BLUERA-KNOWLEDGE SUGGESTION
|
|
80
79
|
|
|
81
80
|
You're about to {trigger_reason} which appears to be dependency/library code.
|
|
82
81
|
|
|
@@ -86,10 +85,15 @@ Consider querying Bluera Knowledge instead:
|
|
|
86
85
|
|
|
87
86
|
BK provides indexed, searchable access to library sources - faster and more context-efficient than grepping through node_modules.
|
|
88
87
|
|
|
89
|
-
If you don't have this library indexed, continue with your current approach.
|
|
90
|
-
</system-reminder>"""
|
|
88
|
+
If you don't have this library indexed, continue with your current approach."""
|
|
91
89
|
|
|
92
|
-
|
|
90
|
+
output = {
|
|
91
|
+
"hookSpecificOutput": {
|
|
92
|
+
"hookEventName": "PreToolUse",
|
|
93
|
+
"additionalContext": reminder_text,
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
print(json.dumps(output))
|
|
93
97
|
return 0
|
|
94
98
|
|
|
95
99
|
|