bluera-knowledge 0.11.4 → 0.11.5

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,5 +1,5 @@
1
1
  {
2
2
  "name": "bluera-knowledge",
3
- "version": "0.11.4",
3
+ "version": "0.11.5",
4
4
  "description": "Clone repos, crawl docs, search locally. Fast, authoritative answers for AI coding agents."
5
5
  }
package/.mcp.json CHANGED
@@ -2,8 +2,9 @@
2
2
  "mcpServers": {
3
3
  "bluera-knowledge": {
4
4
  "command": "node",
5
- "args": ["${CLAUDE_PLUGIN_ROOT}/dist/mcp/server.js"],
5
+ "args": ["./dist/mcp/server.js"],
6
6
  "env": {
7
+ "PROJECT_ROOT": "${PWD}",
7
8
  "DATA_DIR": ".bluera/bluera-knowledge/data",
8
9
  "CONFIG_PATH": ".bluera/bluera-knowledge/config.json"
9
10
  }
package/CHANGELOG.md CHANGED
@@ -2,6 +2,22 @@
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.5](https://github.com/blueraai/bluera-knowledge/compare/v0.10.0...v0.11.5) (2026-01-10)
6
+
7
+
8
+ ### Features
9
+
10
+ * add file logging to background worker for visibility ([6d7a751](https://github.com/blueraai/bluera-knowledge/commit/6d7a751de59a566c34b03b434c772ecde3770b2c))
11
+ * **analysis:** add custom language extensibility framework with ZIL adapter ([c4dc526](https://github.com/blueraai/bluera-knowledge/commit/c4dc526467c70dbc3fb28e7e5d7620a90cc3bf95))
12
+ * require env vars with no defaults (fail fast) ([b404cd6](https://github.com/blueraai/bluera-knowledge/commit/b404cd60374e0a7c5ace89f1ef0235bfc5c799fa))
13
+ * **sync:** add git-committable store definitions with sync command ([5cfa925](https://github.com/blueraai/bluera-knowledge/commit/5cfa92580397f193fda75ea61197fb4c9d9d4b0a))
14
+
15
+
16
+ ### Bug Fixes
17
+
18
+ * **crawl:** handle Claude CLI structured_output wrapper in intelligent crawl ([54ea74b](https://github.com/blueraai/bluera-knowledge/commit/54ea74bca6d4b7263ef11a8290416e0d66b8d37f))
19
+ * **test:** add timeout to flaky search test ([5848b76](https://github.com/blueraai/bluera-knowledge/commit/5848b7648a547510fc2333f283ae835a6ca9efef))
20
+
5
21
  ## [0.11.4](https://github.com/blueraai/bluera-knowledge/compare/v0.10.0...v0.11.4) (2026-01-10)
6
22
 
7
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bluera-knowledge",
3
- "version": "0.11.4",
3
+ "version": "0.11.5",
4
4
  "description": "CLI tool for managing knowledge stores with semantic search",
5
5
  "type": "module",
6
6
  "bin": {
@@ -0,0 +1,43 @@
1
+ import { describe, it, expect } from 'vitest';
2
+ import { readFileSync } from 'fs';
3
+ import { join } from 'path';
4
+
5
+ /**
6
+ * Tests to verify .mcp.json is correctly configured for project-level use.
7
+ * The MCP server should work when running from the project directory,
8
+ * not just when loaded as a Claude Code plugin.
9
+ */
10
+ describe('MCP Configuration (.mcp.json)', () => {
11
+ const configPath = join(process.cwd(), '.mcp.json');
12
+ const config = JSON.parse(readFileSync(configPath, 'utf-8'));
13
+
14
+ it('does not use CLAUDE_PLUGIN_ROOT (only available in plugin mode)', () => {
15
+ const serverConfig = config.mcpServers['bluera-knowledge'];
16
+ const argsString = JSON.stringify(serverConfig.args);
17
+
18
+ // CLAUDE_PLUGIN_ROOT is only set when running as a Claude Code plugin
19
+ // .mcp.json is for project-level config, so it should use relative paths
20
+ expect(argsString).not.toContain('CLAUDE_PLUGIN_ROOT');
21
+ });
22
+
23
+ it('uses relative path for server entry point', () => {
24
+ const serverConfig = config.mcpServers['bluera-knowledge'];
25
+
26
+ // Should use ./dist/mcp/server.js or similar relative path
27
+ expect(serverConfig.args).toContain('./dist/mcp/server.js');
28
+ });
29
+
30
+ it('sets PROJECT_ROOT environment variable', () => {
31
+ const serverConfig = config.mcpServers['bluera-knowledge'];
32
+
33
+ // MCP server requires PROJECT_ROOT to function
34
+ expect(serverConfig.env).toHaveProperty('PROJECT_ROOT');
35
+ });
36
+
37
+ it('uses PWD for PROJECT_ROOT', () => {
38
+ const serverConfig = config.mcpServers['bluera-knowledge'];
39
+
40
+ // PROJECT_ROOT should be set to PWD (current working directory)
41
+ expect(serverConfig.env['PROJECT_ROOT']).toBe('${PWD}');
42
+ });
43
+ });