@erclx/aitk 3.42.0 → 3.42.1
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/package.json
CHANGED
package/scripts/core/verify.sh
CHANGED
|
@@ -36,6 +36,29 @@ GOV_EXPECTED_UNREFERENCED="260-shadcn 320-tanstack-query"
|
|
|
36
36
|
# a reader has to be able to open, and `aitk audits run` owns writing it.
|
|
37
37
|
AUDITS_BASELINE=".claude/audits/baseline.json"
|
|
38
38
|
|
|
39
|
+
# The corpora a `src/` test asserts over from outside `src/`, censused in
|
|
40
|
+
# `.claude/context/development/verification.md`. This array and that list are two
|
|
41
|
+
# copies of one set with nothing comparing them, so a corpus joining the census
|
|
42
|
+
# joins this array in the same change. The first four are directory prefixes
|
|
43
|
+
# because their tests walk the tree whole, which is what reaches a rule or a
|
|
44
|
+
# skill a branch adds rather than edits.
|
|
45
|
+
TEST_CORPORA_PATTERNS=(
|
|
46
|
+
'^claude/skills/'
|
|
47
|
+
'^governance/rules/'
|
|
48
|
+
'^\.claude/hooks/'
|
|
49
|
+
'^tooling/claude/seeds/\.claude/hooks/'
|
|
50
|
+
'^standards/markdown\.md$'
|
|
51
|
+
'^tooling/base/reference\.md$'
|
|
52
|
+
'^tooling/web/configs/scripts/worktree-port\.sh$'
|
|
53
|
+
'^\.cspell/banned-spellings\.txt$'
|
|
54
|
+
'^scripts/lib/worktree\.sh$'
|
|
55
|
+
'^scripts/core/check-ignore-parity\.sh$'
|
|
56
|
+
)
|
|
57
|
+
TEST_CORPORA=$(
|
|
58
|
+
IFS='|'
|
|
59
|
+
printf '%s' "${TEST_CORPORA_PATTERNS[*]}"
|
|
60
|
+
)
|
|
61
|
+
|
|
39
62
|
check_dependencies() {
|
|
40
63
|
command -v bun >/dev/null 2>&1 || log_error "bun is not installed"
|
|
41
64
|
}
|
|
@@ -639,11 +662,11 @@ main() {
|
|
|
639
662
|
fi
|
|
640
663
|
|
|
641
664
|
log_step "Tests"
|
|
642
|
-
if has_changed
|
|
665
|
+
if has_changed "^src/|^vitest\.config\.ts\$|^tsconfig\.json\$|^package\.json\$|$TEST_CORPORA"; then
|
|
643
666
|
run_check "bun run test" "Tests failed"
|
|
644
667
|
log_info "Tests passed"
|
|
645
668
|
else
|
|
646
|
-
log_info "Skipped, no TypeScript changes"
|
|
669
|
+
log_info "Skipped, no TypeScript or asserted-corpus changes"
|
|
647
670
|
fi
|
|
648
671
|
|
|
649
672
|
if [ "$NESTED" = false ]; then
|