bluera-knowledge 0.12.3 โ 0.12.4
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/.husky/pre-commit +6 -6
- package/CHANGELOG.md +15 -0
- package/README.md +10 -7
- package/package.json +20 -16
package/.husky/pre-commit
CHANGED
|
@@ -27,20 +27,20 @@ echo "๐ Running validation checks..."
|
|
|
27
27
|
|
|
28
28
|
# Always run format check, lint and typecheck for code/config changes
|
|
29
29
|
if [ -n "$HAS_SRC_CHANGES" ] || [ -n "$HAS_TEST_CHANGES" ] || [ -n "$HAS_CONFIG_CHANGES" ]; then
|
|
30
|
-
bun run format:check
|
|
31
|
-
bun run lint
|
|
32
|
-
bun run lint:deadcode
|
|
33
|
-
bun run typecheck
|
|
30
|
+
bun run format:check || exit 1
|
|
31
|
+
bun run lint || exit 1
|
|
32
|
+
bun run lint:deadcode || exit 1
|
|
33
|
+
bun run typecheck || exit 1
|
|
34
34
|
fi
|
|
35
35
|
|
|
36
36
|
# Run tests only if source or test files changed
|
|
37
37
|
if [ -n "$HAS_SRC_CHANGES" ] || [ -n "$HAS_TEST_CHANGES" ]; then
|
|
38
|
-
bun run test:changed
|
|
38
|
+
bun run test:changed || exit 1
|
|
39
39
|
fi
|
|
40
40
|
|
|
41
41
|
# Build only if source or config changed
|
|
42
42
|
if [ -n "$HAS_SRC_CHANGES" ] || [ -n "$HAS_CONFIG_CHANGES" ]; then
|
|
43
|
-
bun run build
|
|
43
|
+
bun run build || exit 1
|
|
44
44
|
# Auto-stage dist/ after build (required for Claude Code plugin distribution)
|
|
45
45
|
git add dist/
|
|
46
46
|
fi
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,21 @@
|
|
|
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.4](https://github.com/blueraai/bluera-knowledge/compare/v0.11.21...v0.12.4) (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
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* **hooks:** use JSON output for PreToolUse hook context injection ([a73977e](https://github.com/blueraai/bluera-knowledge/commit/a73977e0f8f690d43b9d7c987300522dd501fe38))
|
|
18
|
+
* **tests:** stabilize watch service tests in coverage mode ([fdf6c3a](https://github.com/blueraai/bluera-knowledge/commit/fdf6c3a478adff9e4746b54a9519184ca280f344))
|
|
19
|
+
|
|
5
20
|
## [0.12.3](https://github.com/blueraai/bluera-knowledge/compare/v0.11.21...v0.12.3) (2026-01-15)
|
|
6
21
|
|
|
7
22
|
|
package/README.md
CHANGED
|
@@ -1647,15 +1647,18 @@ This creates a separate `bluera-knowledge-dev` MCP server that runs source TypeS
|
|
|
1647
1647
|
| `bun test` | ๐งช Run tests in watch mode | During TDD/active development |
|
|
1648
1648
|
| `bun run test:run` | โ
Run tests once | Quick verification |
|
|
1649
1649
|
| `bun run test:coverage` | ๐ Run tests with coverage | Before committing, CI checks |
|
|
1650
|
-
| `bun run lint` | ๐ Run ESLint | Check code style issues |
|
|
1651
|
-
| `bun run typecheck` | ๐ Run TypeScript type checking | Verify type safety |
|
|
1650
|
+
| `bun run lint` | ๐ Run ESLint (quiet by default) | Check code style issues |
|
|
1651
|
+
| `bun run typecheck` | ๐ Run TypeScript type checking (quiet by default) | Verify type safety |
|
|
1652
1652
|
| `bun run precommit` | โจ Smart validation (file-type aware) | Runs only relevant checks based on changed files |
|
|
1653
1653
|
| `bun run prepush` | ๐ Smart coverage (skips for docs/config) | Runs coverage only when src/tests changed |
|
|
1654
|
-
| `bun run lint:
|
|
1655
|
-
| `bun run typecheck:
|
|
1656
|
-
| `bun run test:changed:
|
|
1657
|
-
| `bun run test:coverage:
|
|
1658
|
-
| `bun run build:
|
|
1654
|
+
| `bun run lint:verbose` | ๐ข ESLint (full output) | Debugging lint issues |
|
|
1655
|
+
| `bun run typecheck:verbose` | ๐ข Type check (full output) | Debugging type errors |
|
|
1656
|
+
| `bun run test:changed:verbose` | ๐ข Test changed files (full output) | Debugging test failures |
|
|
1657
|
+
| `bun run test:coverage:verbose` | ๐ข Coverage (full output) | Reviewing detailed coverage |
|
|
1658
|
+
| `bun run build:verbose` | ๐ข Build (full output) | Debugging build issues |
|
|
1659
|
+
| `bun run gh:status` | ๐ List recent GitHub Actions runs | Monitor CI/CD status |
|
|
1660
|
+
| `bun run gh:watch` | ๐๏ธ Watch latest workflow run | Wait for CI completion |
|
|
1661
|
+
| `bun run gh:releases` | ๐ท๏ธ List recent GitHub releases | Check release history |
|
|
1659
1662
|
|
|
1660
1663
|
### ๐ Automatic Build & Dist Commit
|
|
1661
1664
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bluera-knowledge",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.4",
|
|
4
4
|
"description": "CLI tool for managing knowledge stores with semantic search",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -10,28 +10,29 @@
|
|
|
10
10
|
"main": "./dist/index.js",
|
|
11
11
|
"types": "./dist/index.d.ts",
|
|
12
12
|
"scripts": {
|
|
13
|
-
"build": "tsup",
|
|
13
|
+
"build": "tsup --silent && echo 'โ Build complete'",
|
|
14
|
+
"build:verbose": "tsup",
|
|
14
15
|
"dev": "tsup --watch",
|
|
15
16
|
"start": "node dist/index.js",
|
|
16
17
|
"test": "vitest",
|
|
17
18
|
"test:run": "vitest run",
|
|
18
|
-
"test:
|
|
19
|
+
"test:changed": "bash -c 'set -o pipefail && vitest run --changed --reporter=dot --silent 2>&1 | tail -3'",
|
|
20
|
+
"test:changed:verbose": "vitest run --changed",
|
|
21
|
+
"test:coverage": "bash -c 'set -o pipefail && vitest run --coverage --reporter=dot 2>&1 | grep -E \"(FAIL|Test Files|passed|Coverage|threshold)\" | tail -10'",
|
|
22
|
+
"test:coverage:verbose": "vitest run --coverage",
|
|
19
23
|
"format": "prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"",
|
|
20
|
-
"format:check": "prettier --check \"src/**/*.ts\" \"tests/**/*.ts\"",
|
|
21
|
-
"format:check:
|
|
22
|
-
"lint": "eslint src/",
|
|
23
|
-
"lint:
|
|
24
|
+
"format:check": "prettier --check \"src/**/*.ts\" \"tests/**/*.ts\" --log-level warn && echo 'โ Format check passed'",
|
|
25
|
+
"format:check:verbose": "prettier --check \"src/**/*.ts\" \"tests/**/*.ts\"",
|
|
26
|
+
"lint": "eslint src/ --quiet && echo 'โ Lint passed' || { echo 'โ ESLint errors'; exit 1; }",
|
|
27
|
+
"lint:verbose": "eslint src/",
|
|
28
|
+
"lint:deadcode": "knip --no-exit-code --quiet 2>&1 | grep -E '^(Unused|Configuration)' || echo 'โ No unused code'",
|
|
29
|
+
"lint:deadcode:verbose": "knip --no-exit-code",
|
|
24
30
|
"lint:deadcode:strict": "knip",
|
|
25
|
-
"typecheck": "tsc --noEmit",
|
|
31
|
+
"typecheck": "tsc --noEmit --pretty false && echo 'โ Type check passed'",
|
|
32
|
+
"typecheck:verbose": "tsc --noEmit",
|
|
26
33
|
"precommit": ".husky/pre-commit",
|
|
27
34
|
"prepush": ".husky/pre-push",
|
|
28
|
-
"
|
|
29
|
-
"lint:deadcode:quiet": "knip --no-exit-code --quiet 2>&1 | grep -E '^(Unused|Configuration)' || echo 'โ No unused code'",
|
|
30
|
-
"typecheck:quiet": "tsc --noEmit --pretty false && echo 'โ Type check passed'",
|
|
31
|
-
"test:changed:quiet": "bash -c 'set -o pipefail && vitest run --changed --reporter=dot --silent 2>&1 | tail -3'",
|
|
32
|
-
"test:coverage:quiet": "bash -c 'set -o pipefail && vitest run --coverage --reporter=dot 2>&1 | grep -E \"(FAIL|Test Files|passed|Coverage|threshold)\" | tail -10'",
|
|
33
|
-
"build:quiet": "tsup --silent && echo 'โ Build complete'",
|
|
34
|
-
"prerelease": "bun run format:check:quiet && bun run lint:quiet && bun run lint:deadcode:quiet && bun run typecheck:quiet && bun run test:coverage:quiet && bun run build:quiet",
|
|
35
|
+
"prerelease": "bun run format:check && bun run lint && bun run lint:deadcode && bun run typecheck && bun run test:coverage && bun run build",
|
|
35
36
|
"prepare": "husky",
|
|
36
37
|
"version:major": "bun run prerelease && commit-and-tag-version --release-as major --skip.commit --skip.tag",
|
|
37
38
|
"version:minor": "bun run prerelease && commit-and-tag-version --release-as minor --skip.commit --skip.tag",
|
|
@@ -39,7 +40,10 @@
|
|
|
39
40
|
"release:patch": "commit-and-tag-version --release-as patch && git push --follow-tags",
|
|
40
41
|
"release:minor": "commit-and-tag-version --release-as minor && git push --follow-tags",
|
|
41
42
|
"release:major": "commit-and-tag-version --release-as major && git push --follow-tags",
|
|
42
|
-
"validate:npm": "./scripts/validate-npm-release.sh"
|
|
43
|
+
"validate:npm": "./scripts/validate-npm-release.sh",
|
|
44
|
+
"gh:status": "gh run list --limit 5",
|
|
45
|
+
"gh:watch": "gh run list --limit 1 --json databaseId --jq '.[0].databaseId' | xargs -I {} gh run watch {} --exit-status",
|
|
46
|
+
"gh:releases": "gh release list --limit 5"
|
|
43
47
|
},
|
|
44
48
|
"keywords": [
|
|
45
49
|
"knowledge",
|