feat(cli): embed the BAML agent skill - #4625
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
⏭️ Performance benchmarks were skippedPerf benchmarks (CodSpeed) are opt-in on pull requests — they no longer run on every push. They always run automatically after merge to To run them on this PR, do any of the following, then push a commit (or re-run CI):
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe CLI now embeds a versioned ChangesEmbedded BAML agent skill
Estimated code review effort: 4 (Complex) | ~45 minutes Merge Risk: ⚪ Minimal · up to This PR embeds the BAML agent skill and updates installation and freshness behavior without any identified merge-blocking risk; it is ready to merge after normal checks and review. Sequence Diagram(s)sequenceDiagram
participant CLI as baml-cli
participant Check as skill_check::check
participant Filesystem
participant Installer as AgentInstallArgs
CLI->>Check: check before init, run, generate, or pack
Check->>Filesystem: read SKILL.md frontmatter
Filesystem-->>Check: baml-toolchain-version
Check-->>CLI: report missing or outdated skill
CLI->>Installer: run agent install
Installer->>Filesystem: write rendered baml-core SKILL.md
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 52.17% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 46 functions across 8 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Binary size checks passed✅ 7 passed
Generated by |
Summary
baml-clibaml agent installnetwork-free and inject the binary canonical version into the installed skill frontmattermetadata.baml-toolchain-versionwith the active toolchain version; missing, malformed, or different metadata is outdatedBoundaryML/baml-skillas legacy-only for older toolchainsTesting
cargo check -p baml_clicargo test -p baml_cli --lib agent_command::tests::cargo test -p baml_cli --lib skill_check::tests::cargo test -p baml_cli --lib commands::tests::cargo test -p baml_cli --test agent_install_e2e --test skill_warning_e2ecargo test -p baml_cli --test exit_code_e2e run_valid_project_outputs_only_program_output -- --exactcargo test -p baml_releasecargo clippy -p baml_cli --all-targets -- -D warningsSummary by CodeRabbit
New Features
baml agent installnow installs the bundledbaml-coreskill without network access.Documentation
Bug Fixes