feat(builtins): add bun_check and bun_test #1995
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 408 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.360
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1995"
general
weight: 0.35
jdx
Bun 1.4.5 includes a TypeScript type checker next to its test runner. This adds
bun_checkandbun_testbuiltins so Bun projects can run both from hk (requested in discussion #1867).bun_checkrunsbun check --no-script --no-pretty -p <tsconfig.json>for each project whose TypeScript files changed.--no-scriptstops acheckscript inpackage.jsonfrom replacing the type checker. Errors are parsed as diagnostics, sohk check --sarifand--jsoninclude them. It requires Bun 1.4.5 or later.bun_testrunsbun test, the whole suite, when any JS or TS file changes. Changed files are not passed on, because Bun treats them as test-file filters and a source-only change would match no tests. As withbun testitself, it fails if the project has no tests.hk init, so a project with atsconfig.jsondoes not get bothtscandbun_check.bun lintis not included: the released 1.4.5 binary rejects it (Script not found "lint").Validation: the
bun_check,bun_testandbun_fmtstep tests pass with Bun 1.4.5, andhk checkpasses. The fulltest/builtins_tests.batsrun fails locally inasciidoctor,gh_actions_lock,rubocop,rubocop_serverandstandard_rbtests, which this change does not touch.AI-assisted — Tool: Claude Code; model: anthropic/claude-sonnet-5-5; version: unavailable.
🤖 Generated with Claude Code
<!-- CURSOR_SUMMARY -->
---
<!-- /CURSOR_SUMMARY -->
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
Chores
Updated the Bun tooling stub from version 1.4.4 to 1.4.5. This is a maintenance-only change; no user-facing features, behavior changes, or fixes are included. The update does not change public interfaces or describe any changes to how the product works.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->