bluera-knowledge 0.11.7 → 0.11.8
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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
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.8](https://github.com/blueraai/bluera-knowledge/compare/v0.11.6...v0.11.8) (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
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **cli:** plugin-api commands now respect global options ([d3cca02](https://github.com/blueraai/bluera-knowledge/commit/d3cca02ffc679ffc187b76c7682f3cc177eabdea))
|
|
16
|
+
* **scripts:** show real-time output in validation script ([8a4bdec](https://github.com/blueraai/bluera-knowledge/commit/8a4bdec8b63c504d34ba35bfe19da795f7f7fd07))
|
|
17
|
+
* **scripts:** use mktemp for temp directories in validation script ([3107861](https://github.com/blueraai/bluera-knowledge/commit/3107861bd7a966016fde2a121469dd84756f39be))
|
|
18
|
+
|
|
5
19
|
## [0.11.7](https://github.com/blueraai/bluera-knowledge/compare/v0.11.6...v0.11.7) (2026-01-10)
|
|
6
20
|
|
|
7
21
|
|
package/package.json
CHANGED
|
@@ -68,11 +68,11 @@ run_test() {
|
|
|
68
68
|
local cmd="$*"
|
|
69
69
|
|
|
70
70
|
log "Running: $cmd"
|
|
71
|
-
if eval "$cmd"
|
|
71
|
+
if eval "$cmd" 2>&1 | tee -a "$LOG_FILE"; then
|
|
72
72
|
pass "$name"
|
|
73
73
|
return 0
|
|
74
74
|
else
|
|
75
|
-
fail "$name (exit code:
|
|
75
|
+
fail "$name (exit code: ${PIPESTATUS[0]})"
|
|
76
76
|
return 1
|
|
77
77
|
fi
|
|
78
78
|
}
|
|
@@ -86,19 +86,17 @@ run_test_contains() {
|
|
|
86
86
|
|
|
87
87
|
log "Running: $cmd"
|
|
88
88
|
local output
|
|
89
|
-
|
|
89
|
+
# Capture output while also showing it on terminal via tee
|
|
90
|
+
if output=$(eval "$cmd" 2>&1 | tee -a "$LOG_FILE"); then
|
|
90
91
|
if echo "$output" | grep -q "$expected"; then
|
|
91
92
|
pass "$name"
|
|
92
|
-
echo "$output" >> "$LOG_FILE"
|
|
93
93
|
return 0
|
|
94
94
|
else
|
|
95
95
|
fail "$name (output missing: $expected)"
|
|
96
|
-
echo "$output" >> "$LOG_FILE"
|
|
97
96
|
return 1
|
|
98
97
|
fi
|
|
99
98
|
else
|
|
100
99
|
fail "$name (command failed)"
|
|
101
|
-
echo "$output" >> "$LOG_FILE"
|
|
102
100
|
return 1
|
|
103
101
|
fi
|
|
104
102
|
}
|
|
@@ -31,4 +31,25 @@ describe('validate-npm-release.sh', () => {
|
|
|
31
31
|
expect(scriptContent).toContain('trap');
|
|
32
32
|
expect(scriptContent).toMatch(/rm -rf/);
|
|
33
33
|
});
|
|
34
|
+
|
|
35
|
+
it('shows real-time output during command execution', () => {
|
|
36
|
+
// Script should use tee to show output on both terminal and log file
|
|
37
|
+
// This prevents the script from appearing "hung" during long-running commands
|
|
38
|
+
expect(scriptContent).toContain('tee -a');
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
it('does not redirect output only to log file in run_test functions', () => {
|
|
42
|
+
// The run_test and run_test_contains functions should not silently redirect
|
|
43
|
+
// all output to log file - they should show progress on terminal
|
|
44
|
+
const lines = scriptContent.split('\n');
|
|
45
|
+
|
|
46
|
+
// Find run_test function and check it doesn't use silent redirection
|
|
47
|
+
// Pattern: >> "$LOG_FILE" 2>&1 without tee means silent execution
|
|
48
|
+
const hasSilentRedirect = lines.some(
|
|
49
|
+
(line) =>
|
|
50
|
+
line.includes('eval "$cmd"') && line.includes('>> "$LOG_FILE"') && !line.includes('tee')
|
|
51
|
+
);
|
|
52
|
+
|
|
53
|
+
expect(hasSilentRedirect).toBe(false);
|
|
54
|
+
});
|
|
34
55
|
});
|