bluera-knowledge 0.12.9 → 0.12.11

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.12.9",
3
+ "version": "0.12.11",
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,27 @@
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.10](https://github.com/blueraai/bluera-knowledge/compare/v0.11.21...v0.12.10) (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
+ * **hooks:** improve skill activation with forced evaluation pattern ([f044077](https://github.com/blueraai/bluera-knowledge/commit/f044077d260b78b55a00ebf735b68a2d933f34a7)), closes [#15345](https://github.com/blueraai/bluera-knowledge/issues/15345)
13
+ * **test-plugin:** add hook tests to plugin test suite ([475a776](https://github.com/blueraai/bluera-knowledge/commit/475a7766fea47767a2dfb8148f7e74581de2c2ee))
14
+ * **types:** add Zod validation for JSON parsing ([41348eb](https://github.com/blueraai/bluera-knowledge/commit/41348eb337c33d52174c22097e6788948ad605f8))
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **hooks:** use JSON output for PreToolUse hook context injection ([a73977e](https://github.com/blueraai/bluera-knowledge/commit/a73977e0f8f690d43b9d7c987300522dd501fe38))
20
+ * **store:** harden store registry against null entries and invalid types ([c0fedbc](https://github.com/blueraai/bluera-knowledge/commit/c0fedbc5c7f664e46bc8afc7c58bb6d1e1825711))
21
+ * **tests:** stabilize watch service tests in coverage mode ([fdf6c3a](https://github.com/blueraai/bluera-knowledge/commit/fdf6c3a478adff9e4746b54a9519184ca280f344))
22
+ * **workers:** correct worker path calculation for bundled chunks ([8d692db](https://github.com/blueraai/bluera-knowledge/commit/8d692db3ac9706f5702f64abcff1ce149ec6be27))
23
+ * **workers:** harden dataDir handling with explicit checks and add tests ([691cf50](https://github.com/blueraai/bluera-knowledge/commit/691cf50e0531c4083773eae27e26cb46c3d653b6))
24
+ * **workers:** resolve ONNX runtime mutex crash on macOS ([77b66c6](https://github.com/blueraai/bluera-knowledge/commit/77b66c69c811d72366d49d13f35ec7625450dc98))
25
+
5
26
  ## [0.12.9](https://github.com/blueraai/bluera-knowledge/compare/v0.11.21...v0.12.9) (2026-01-15)
6
27
 
7
28
 
@@ -464,6 +464,40 @@ var JobService = class {
464
464
  }
465
465
  return cleaned;
466
466
  }
467
+ /**
468
+ * Clean up stale pending jobs that never started or got stuck
469
+ *
470
+ * @param olderThanHours - Consider pending jobs stale after this many hours (default 2)
471
+ * @param options - Options for cleanup behavior
472
+ * @param options.markAsFailed - If true, mark jobs as failed instead of deleting
473
+ * @returns Number of jobs cleaned up or marked as failed
474
+ */
475
+ cleanupStalePendingJobs(olderThanHours = 2, options = {}) {
476
+ const jobs = this.listJobs();
477
+ const cutoffTime = Date.now() - olderThanHours * 60 * 60 * 1e3;
478
+ let cleaned = 0;
479
+ for (const job of jobs) {
480
+ if (job.status === "pending" && new Date(job.updatedAt).getTime() < cutoffTime) {
481
+ const jobFile = path.join(this.jobsDir, `${job.id}.json`);
482
+ if (options.markAsFailed === true) {
483
+ this.updateJob(job.id, {
484
+ status: "failed",
485
+ message: `Job marked as stale - pending for over ${String(olderThanHours)} hours without progress`
486
+ });
487
+ } else {
488
+ try {
489
+ fs.unlinkSync(jobFile);
490
+ } catch (error) {
491
+ throw new Error(
492
+ `Failed to delete stale job ${job.id}: ${error instanceof Error ? error.message : String(error)}`
493
+ );
494
+ }
495
+ }
496
+ cleaned++;
497
+ }
498
+ }
499
+ return cleaned;
500
+ }
467
501
  /**
468
502
  * Delete a specific job
469
503
  */
@@ -4617,4 +4651,4 @@ export {
4617
4651
  createServices,
4618
4652
  destroyServices
4619
4653
  };
4620
- //# sourceMappingURL=chunk-VTATT3IR.js.map
4654
+ //# sourceMappingURL=chunk-7DZZHYDU.js.map