bluera-knowledge 0.11.11 → 0.11.12

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bluera-knowledge",
3
- "version": "0.11.11",
3
+ "version": "0.11.12",
4
4
  "description": "Clone repos, crawl docs, search locally. Fast, authoritative answers for AI coding agents.",
5
5
  "mcpServers": {
6
6
  "bluera-knowledge": {
package/CHANGELOG.md CHANGED
@@ -2,6 +2,24 @@
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.11.12](https://github.com/blueraai/bluera-knowledge/compare/v0.11.6...v0.11.12) (2026-01-10)
6
+
7
+
8
+ ### Features
9
+
10
+ * **scripts:** add post-release npm validation script ([e4c29a0](https://github.com/blueraai/bluera-knowledge/commit/e4c29a0c83907de4bc293a69a58412629457fb22))
11
+ * **scripts:** add suggest, sync, serve, mcp tests to npm validation ([49d85da](https://github.com/blueraai/bluera-knowledge/commit/49d85dad1a89691060c12f152d644844baf6e6e6))
12
+ * **scripts:** log expected vs installed version in validation script ([c77d039](https://github.com/blueraai/bluera-knowledge/commit/c77d039b27a3ccf54d50006af161ac4dcfea7b21))
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * **cli:** plugin-api commands now respect global options ([d3cca02](https://github.com/blueraai/bluera-knowledge/commit/d3cca02ffc679ffc187b76c7682f3cc177eabdea))
18
+ * **plugin:** properly close services after command execution ([eeaf743](https://github.com/blueraai/bluera-knowledge/commit/eeaf743750be73fd9c7a9e72440b2fd0fb5a53fa))
19
+ * **scripts:** show real-time output in validation script ([8a4bdec](https://github.com/blueraai/bluera-knowledge/commit/8a4bdec8b63c504d34ba35bfe19da795f7f7fd07))
20
+ * **scripts:** use mktemp for temp directories in validation script ([3107861](https://github.com/blueraai/bluera-knowledge/commit/3107861bd7a966016fde2a121469dd84756f39be))
21
+ * **search:** add defaults for env vars so CLI works standalone ([b2d2ce5](https://github.com/blueraai/bluera-knowledge/commit/b2d2ce534e8cd2ba0fc0abdac505c912a1a76035))
22
+
5
23
  ## [0.11.11](https://github.com/blueraai/bluera-knowledge/compare/v0.11.6...v0.11.11) (2026-01-10)
6
24
 
7
25
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bluera-knowledge",
3
- "version": "0.11.11",
3
+ "version": "0.11.12",
4
4
  "description": "CLI tool for managing knowledge stores with semantic search",
5
5
  "type": "module",
6
6
  "bin": {
@@ -213,6 +213,90 @@ else
213
213
  pass "Store successfully deleted"
214
214
  fi
215
215
 
216
+ # Test suggest command
217
+ log_header "Testing suggest"
218
+
219
+ # Create a minimal package.json for suggest to find
220
+ echo '{"dependencies": {"lodash": "^4.0.0"}}' > "$TEST_FOLDER/package.json"
221
+ run_test "bluera-knowledge suggest" "bluera-knowledge suggest -p '$TEST_FOLDER' -d '$DATA_DIR'"
222
+
223
+ # Test sync command (should work with no definitions - returns empty result)
224
+ log_header "Testing sync"
225
+
226
+ run_test_contains "bluera-knowledge sync (no definitions)" "Sync completed" "bluera-knowledge sync -p '$TEST_FOLDER' -d '$DATA_DIR'"
227
+
228
+ # Test sync with a definitions file
229
+ mkdir -p "$TEST_FOLDER/.bluera/bluera-knowledge"
230
+ cat > "$TEST_FOLDER/.bluera/bluera-knowledge/stores.config.json" << EOF
231
+ {
232
+ "version": 1,
233
+ "stores": [
234
+ {
235
+ "name": "sync-test-store",
236
+ "type": "file",
237
+ "path": "."
238
+ }
239
+ ]
240
+ }
241
+ EOF
242
+ run_test "bluera-knowledge sync (with definitions)" "bluera-knowledge sync -p '$TEST_FOLDER' -d '$DATA_DIR'"
243
+
244
+ # Verify sync created the store
245
+ run_test_contains "Sync created store" "sync-test-store" "bluera-knowledge stores -d '$DATA_DIR'"
246
+
247
+ # Clean up sync test store
248
+ bluera-knowledge store delete "sync-test-store" --force -d "$DATA_DIR" 2>/dev/null || true
249
+
250
+ # Test serve command (start, test, stop)
251
+ log_header "Testing serve"
252
+
253
+ SERVE_PORT=19876
254
+ SERVE_PID=""
255
+
256
+ # Start server in background
257
+ log "Starting serve on port $SERVE_PORT..."
258
+ bluera-knowledge serve --port $SERVE_PORT -d "$DATA_DIR" &
259
+ SERVE_PID=$!
260
+
261
+ # Give it time to start
262
+ sleep 2
263
+
264
+ # Check if server is running
265
+ if kill -0 $SERVE_PID 2>/dev/null; then
266
+ log "Server started with PID $SERVE_PID"
267
+
268
+ # Test health endpoint
269
+ if curl -s "http://localhost:$SERVE_PORT/health" | grep -q "ok"; then
270
+ pass "bluera-knowledge serve (health endpoint)"
271
+ else
272
+ fail "bluera-knowledge serve (health endpoint not responding)"
273
+ fi
274
+
275
+ # Stop server
276
+ kill $SERVE_PID 2>/dev/null || true
277
+ wait $SERVE_PID 2>/dev/null || true
278
+ log "Server stopped"
279
+ else
280
+ fail "bluera-knowledge serve (failed to start)"
281
+ fi
282
+
283
+ # Test mcp command (just verify it starts and outputs JSON-RPC)
284
+ log_header "Testing mcp"
285
+
286
+ MCP_OUTPUT=$(timeout 2 bluera-knowledge mcp -d "$DATA_DIR" 2>&1 || true)
287
+ if echo "$MCP_OUTPUT" | grep -qE "(jsonrpc|ready|listening|MCP)" 2>/dev/null || [ $? -eq 124 ]; then
288
+ # Timeout (124) is expected - MCP keeps running until killed
289
+ pass "bluera-knowledge mcp (starts without error)"
290
+ else
291
+ # Even if it times out or produces no output, as long as it didn't crash
292
+ if [ -z "$MCP_OUTPUT" ]; then
293
+ pass "bluera-knowledge mcp (starts without error)"
294
+ else
295
+ log "MCP output: $MCP_OUTPUT"
296
+ fail "bluera-knowledge mcp (unexpected output)"
297
+ fi
298
+ fi
299
+
216
300
  # Summary
217
301
  log_header "Validation Summary"
218
302
  log "Tests run: $TESTS_RUN"