bluera-knowledge 0.11.19 → 0.11.20
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 +28 -0
- package/dist/{chunk-QEHSDQTL.js → chunk-MQGRQ2EG.js} +21 -22
- package/dist/chunk-MQGRQ2EG.js.map +1 -0
- package/dist/{chunk-GOAOBPOA.js → chunk-Q2ZGPJ66.js} +2 -2
- package/dist/{chunk-VP4VZULK.js → chunk-ZSKQIMD7.js} +5 -2
- package/dist/chunk-ZSKQIMD7.js.map +1 -0
- package/dist/index.js +3 -3
- package/dist/mcp/server.js +2 -2
- package/dist/workers/background-worker-cli.js +2 -2
- package/package.json +1 -1
- package/src/db/lance.test.ts +3 -4
- package/src/db/lance.ts +14 -19
- package/src/mcp/server.test.ts +56 -1
- package/src/mcp/server.ts +5 -1
- package/src/services/search.service.ts +15 -9
- package/dist/chunk-QEHSDQTL.js.map +0 -1
- package/dist/chunk-VP4VZULK.js.map +0 -1
- /package/dist/{chunk-GOAOBPOA.js.map → chunk-Q2ZGPJ66.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,34 @@
|
|
|
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.20](https://github.com/blueraai/bluera-knowledge/compare/v0.11.6...v0.11.20) (2026-01-10)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **code-unit:** add interface and type extraction support ([190dded](https://github.com/blueraai/bluera-knowledge/commit/190dded78be68985c3f94c0da6ebed03659da313))
|
|
11
|
+
* **commands:** add test-plugin command for comprehensive plugin testing ([c6eb5e7](https://github.com/blueraai/bluera-knowledge/commit/c6eb5e7762376810a9ff3e79f794f05ff0c77b97))
|
|
12
|
+
* **scripts:** add post-release npm validation script ([e4c29a0](https://github.com/blueraai/bluera-knowledge/commit/e4c29a0c83907de4bc293a69a58412629457fb22))
|
|
13
|
+
* **scripts:** add suggest, sync, serve, mcp tests to npm validation ([49d85da](https://github.com/blueraai/bluera-knowledge/commit/49d85dad1a89691060c12f152d644844baf6e6e6))
|
|
14
|
+
* **scripts:** log expected vs installed version in validation script ([c77d039](https://github.com/blueraai/bluera-knowledge/commit/c77d039b27a3ccf54d50006af161ac4dcfea7b21))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* address code review issues - resource leak and error handling ([c14e9b2](https://github.com/blueraai/bluera-knowledge/commit/c14e9b22782f0d62c04fb312a70345d7f4248ed4))
|
|
20
|
+
* **bridge:** close readline interfaces on stop to prevent resource leak ([e970bf9](https://github.com/blueraai/bluera-knowledge/commit/e970bf94f74bdba24803eed8714d47ed8e874117))
|
|
21
|
+
* **cli:** plugin-api commands now respect global options ([d3cca02](https://github.com/blueraai/bluera-knowledge/commit/d3cca02ffc679ffc187b76c7682f3cc177eabdea))
|
|
22
|
+
* **commands:** fix test-plugin reliability issues ([2841e9a](https://github.com/blueraai/bluera-knowledge/commit/2841e9aa6438f9fd60c70ab921575088b2921810))
|
|
23
|
+
* **commands:** move test-plugin to commands/ for plugin distribution ([0a3ff5f](https://github.com/blueraai/bluera-knowledge/commit/0a3ff5f91666db7efa213d5abd4c447fb07749fc))
|
|
24
|
+
* **crawl:** throw errors instead of fallback/graceful degradation ([19962c2](https://github.com/blueraai/bluera-knowledge/commit/19962c2114406f2fea22e5973e242f190ab65fb7))
|
|
25
|
+
* **git-clone:** add error handler for spawn failures ([4bf50e2](https://github.com/blueraai/bluera-knowledge/commit/4bf50e2348505dccdc94522cf42f1d4d3471480c))
|
|
26
|
+
* improve error handling and type safety from code review ([61710aa](https://github.com/blueraai/bluera-knowledge/commit/61710aaed48c87c457628b75e3968686377a6c92))
|
|
27
|
+
* **plugin:** properly close services after command execution ([eeaf743](https://github.com/blueraai/bluera-knowledge/commit/eeaf743750be73fd9c7a9e72440b2fd0fb5a53fa))
|
|
28
|
+
* **scripts:** show real-time output in validation script ([8a4bdec](https://github.com/blueraai/bluera-knowledge/commit/8a4bdec8b63c504d34ba35bfe19da795f7f7fd07))
|
|
29
|
+
* **scripts:** use mktemp for temp directories in validation script ([3107861](https://github.com/blueraai/bluera-knowledge/commit/3107861bd7a966016fde2a121469dd84756f39be))
|
|
30
|
+
* **search:** add defaults for env vars so CLI works standalone ([b2d2ce5](https://github.com/blueraai/bluera-knowledge/commit/b2d2ce534e8cd2ba0fc0abdac505c912a1a76035))
|
|
31
|
+
* **services:** throw errors instead of graceful degradation ([ca992b5](https://github.com/blueraai/bluera-knowledge/commit/ca992b5cfa4d9ebad62ee82231cfdd2d3d64012e))
|
|
32
|
+
|
|
5
33
|
## [0.11.19](https://github.com/blueraai/bluera-knowledge/compare/v0.11.6...v0.11.19) (2026-01-10)
|
|
6
34
|
|
|
7
35
|
|
|
@@ -3104,15 +3104,18 @@ var SearchService = class {
|
|
|
3104
3104
|
async ftsSearch(query, stores, limit) {
|
|
3105
3105
|
const results = [];
|
|
3106
3106
|
for (const storeId of stores) {
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3107
|
+
try {
|
|
3108
|
+
const hits = await this.lanceStore.fullTextSearch(storeId, query, limit);
|
|
3109
|
+
results.push(
|
|
3110
|
+
...hits.map((r) => ({
|
|
3111
|
+
id: r.id,
|
|
3112
|
+
score: r.score,
|
|
3113
|
+
content: r.content,
|
|
3114
|
+
metadata: r.metadata
|
|
3115
|
+
}))
|
|
3116
|
+
);
|
|
3117
|
+
} catch {
|
|
3118
|
+
}
|
|
3116
3119
|
}
|
|
3117
3120
|
return results.sort((a, b) => b.score - a.score).slice(0, limit);
|
|
3118
3121
|
}
|
|
@@ -4388,18 +4391,14 @@ var LanceStore = class {
|
|
|
4388
4391
|
}
|
|
4389
4392
|
async fullTextSearch(storeId, query, limit) {
|
|
4390
4393
|
const table = await this.getTable(storeId);
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
}));
|
|
4400
|
-
} catch {
|
|
4401
|
-
return [];
|
|
4402
|
-
}
|
|
4394
|
+
const results = await table.search(query, "fts").limit(limit).toArray();
|
|
4395
|
+
return results.map((r) => ({
|
|
4396
|
+
id: createDocumentId(r.id),
|
|
4397
|
+
content: r.content,
|
|
4398
|
+
score: r._score,
|
|
4399
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions
|
|
4400
|
+
metadata: JSON.parse(r.metadata)
|
|
4401
|
+
}));
|
|
4403
4402
|
}
|
|
4404
4403
|
async deleteStore(storeId) {
|
|
4405
4404
|
const tableName = this.getTableName(storeId);
|
|
@@ -4519,4 +4518,4 @@ export {
|
|
|
4519
4518
|
createServices,
|
|
4520
4519
|
destroyServices
|
|
4521
4520
|
};
|
|
4522
|
-
//# sourceMappingURL=chunk-
|
|
4521
|
+
//# sourceMappingURL=chunk-MQGRQ2EG.js.map
|