Skip to content

chore(sdk): rename baml_core -> baml_bridge - #3934

Merged
sxlijin merged 1 commit into
canaryfrom
sam/rename-baml-bridge
Jul 7, 2026
Merged

sxlijin merged 1 commit into
canaryfrom
sam/rename-baml-bridge

Conversation

@sxlijin

@sxlijin sxlijin commented Jul 7, 2026 •

Copy link
Copy Markdown
Contributor

Rename the published SDK bridge package coherently:

  • PyPI: baml-core -> baml-bridge (import module baml_core -> baml_bridge)
  • npm: @boundaryml/baml-core-node -> @boundaryml/baml-bridge (incl. platform packages)
  • proto package baml_core.cffi.v1 -> baml_bridge.cffi.v1 (regenerated Python pb2 + Go stubs + Rust prost)
  • release/version plumbing (scripts/baml-language-version, baml-release-manifests, workflows)

Internal (unpublished) Rust module bridge_ctypes::baml_core is intentionally kept.

Summary by CodeRabbit

  • New Features

    • Renamed runtime and SDK package references to baml_bridge across Python, Node.js, Go, and WASM.
    • Updated generated setup/installation templates to use the new package names (including Node: @boundaryml/baml-bridge).
  • Bug Fixes

    • Aligned generated proto bindings, SDK artifacts, and test fixtures to the new bridge proto namespace/package paths to keep builds and decoding/encoding consistent.
    • Updated release/manifest outputs to publish/identify the bridge artifacts (baml_bridge_pypi, Node bridge dist tags/packages).

@vercel

vercel Bot commented Jul 7, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
beps Ready Ready Preview, Comment Jul 7, 2026 9:58pm
promptfiddle Ready Ready Preview, Comment Jul 7, 2026 9:58pm
promptfiddle2 Ready Ready Preview, Comment Jul 7, 2026 9:58pm

Request Review

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

⏭️ Performance benchmarks were skipped

Perf benchmarks (CodSpeed) are opt-in on pull requests — they no longer run on every push. They always run automatically after merge to canary/main.

To run them on this PR, do any of the following, then push a commit (or re-run CI):

  • Add RUN_CODSPEED=1 to the PR description, or
  • Include run-perf or /perf in the PR title or any commit message.

@coderabbitai

coderabbitai Bot commented Jul 7, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: ceba3410-ee68-411f-b891-0738ae353803

📥 Commits

Reviewing files that changed from the base of the PR and between 79ec83e and 111589d.

⛔ Files ignored due to path filters (38)
  • baml_language/crates/baml_cli/src/snapshots/baml_cli__describe_command_tests__render_keyword_python.snap is excluded by !**/*.snap
  • baml_language/crates/baml_cli/src/snapshots/baml_cli__describe_command_tests__render_keyword_typescript.snap is excluded by !**/*.snap
  • baml_language/sdks/go/bridge_go/cffi/proto/baml_bridge/cffi/v1/baml_handle.pb.go is excluded by !**/*.pb.go
  • baml_language/sdks/go/bridge_go/cffi/proto/baml_bridge/cffi/v1/baml_inbound.pb.go is excluded by !**/*.pb.go
  • baml_language/sdks/go/bridge_go/cffi/proto/baml_bridge/cffi/v1/baml_outbound.pb.go is excluded by !**/*.pb.go
  • baml_language/sdks/go/bridge_go/cffi/proto/baml_bridge/cffi/v1/baml_type.pb.go is excluded by !**/*.pb.go
  • baml_language/sdks/nodejs/bridge_nodejs/dist/ctx_manager.d.ts is excluded by !**/dist/**
  • baml_language/sdks/nodejs/bridge_nodejs/dist/ctx_manager.js is excluded by !**/dist/**
  • baml_language/sdks/nodejs/bridge_nodejs/dist/define_function.d.ts is excluded by !**/dist/**
  • baml_language/sdks/nodejs/bridge_nodejs/dist/define_function.js is excluded by !**/dist/**
  • baml_language/sdks/nodejs/bridge_nodejs/dist/define_function.js.map is excluded by !**/dist/**, !**/*.map
  • baml_language/sdks/nodejs/bridge_nodejs/dist/errors.js is excluded by !**/dist/**
  • baml_language/sdks/nodejs/bridge_nodejs/dist/exit_hook.d.ts is excluded by !**/dist/**
  • baml_language/sdks/nodejs/bridge_nodejs/dist/exit_hook.js is excluded by !**/dist/**
  • baml_language/sdks/nodejs/bridge_nodejs/dist/host_value_registry.d.ts is excluded by !**/dist/**
  • baml_language/sdks/nodejs/bridge_nodejs/dist/host_value_registry.js is excluded by !**/dist/**
  • baml_language/sdks/nodejs/bridge_nodejs/dist/host_value_registry.js.map is excluded by !**/dist/**, !**/*.map
  • baml_language/sdks/nodejs/bridge_nodejs/dist/index.d.ts is excluded by !**/dist/**
  • baml_language/sdks/nodejs/bridge_nodejs/dist/index.js is excluded by !**/dist/**
  • baml_language/sdks/nodejs/bridge_nodejs/dist/native.d.ts is excluded by !**/dist/**
  • baml_language/sdks/nodejs/bridge_nodejs/dist/native.js is excluded by !**/dist/**
  • baml_language/sdks/nodejs/bridge_nodejs/dist/proto.d.ts is excluded by !**/dist/**
  • baml_language/sdks/nodejs/bridge_nodejs/dist/proto.d.ts.map is excluded by !**/dist/**, !**/*.map
  • baml_language/sdks/nodejs/bridge_nodejs/dist/proto.js is excluded by !**/dist/**
  • baml_language/sdks/nodejs/bridge_nodejs/dist/proto.js.map is excluded by !**/dist/**, !**/*.map
  • baml_language/sdks/nodejs/bridge_nodejs/dist/proto/baml_cffi.d.ts is excluded by !**/dist/**
  • baml_language/sdks/nodejs/bridge_nodejs/dist/proto/baml_cffi.js is excluded by !**/dist/**
  • baml_language/sdks/nodejs/bridge_nodejs/dist/stream.d.ts is excluded by !**/dist/**
  • baml_language/sdks/nodejs/bridge_nodejs/dist/stream.js is excluded by !**/dist/**
  • baml_language/sdks/nodejs/bridge_nodejs/dist/stream.js.map is excluded by !**/dist/**, !**/*.map
  • baml_language/sdks/nodejs/bridge_nodejs/dist/typemap.d.ts is excluded by !**/dist/**
  • baml_language/sdks/nodejs/bridge_nodejs/dist/typemap.js is excluded by !**/dist/**
  • baml_language/sdks/nodejs/bridge_nodejs/dist/typemap.js.map is excluded by !**/dist/**, !**/*.map
  • baml_language/sdks/nodejs/bridge_nodejs/dist/wire_ty.d.ts is excluded by !**/dist/**
  • baml_language/sdks/nodejs/bridge_nodejs/dist/wire_ty.d.ts.map is excluded by !**/dist/**, !**/*.map
  • baml_language/sdks/nodejs/bridge_nodejs/dist/wire_ty.js is excluded by !**/dist/**
  • baml_language/sdks/nodejs/bridge_nodejs/dist/wire_ty.js.map is excluded by !**/dist/**, !**/*.map
  • baml_language/sdks/python/uv.lock is excluded by !**/*.lock
📒 Files selected for processing (120)
  • .github/workflows/build2-nodejs-sdk.reusable.yaml
  • .github/workflows/cargo-tests.reusable.yaml
  • .github/workflows/ci.yaml
  • .github/workflows/publish2-nodejs-sdk.yaml
  • baml_language/.config/nextest.toml
  • baml_language/crates/baml_builtins2/keyword_docs/baml_keywords.yaml
  • baml_language/crates/baml_cli/src/init_command.rs
  • baml_language/crates/baml_codegen_types/src/generator_fields.rs
  • baml_language/crates/baml_codegen_types/src/ty.rs
  • baml_language/crates/baml_release/src/manifest.rs
  • baml_language/crates/bex_engine/src/trace_value_encode.rs
  • baml_language/crates/bex_engine/tests/host_value_callable.rs
  • baml_language/crates/bex_engine/tests/prof_gate.rs
  • baml_language/crates/bridge_cffi/src/baml_to_host.rs
  • baml_language/crates/bridge_cffi/src/ffi/handle.rs
  • baml_language/crates/bridge_cffi/src/ffi/host_value.rs
  • baml_language/crates/bridge_cffi/src/lib.rs
  • baml_language/crates/bridge_ctypes/README.md
  • baml_language/crates/bridge_ctypes/src/handle_table.rs
  • baml_language/crates/bridge_ctypes/src/lib.rs
  • baml_language/crates/bridge_ctypes/src/traceback.rs
  • baml_language/crates/bridge_ctypes/src/ty_decode.rs
  • baml_language/crates/bridge_ctypes/src/ty_encode.rs
  • baml_language/crates/bridge_ctypes/src/value_decode.rs
  • baml_language/crates/bridge_ctypes/src/value_encode.rs
  • baml_language/crates/bridge_ctypes/types/baml_bridge/cffi/v1/baml_handle.proto
  • baml_language/crates/bridge_ctypes/types/baml_bridge/cffi/v1/baml_inbound.proto
  • baml_language/crates/bridge_ctypes/types/baml_bridge/cffi/v1/baml_outbound.proto
  • baml_language/crates/bridge_ctypes/types/baml_bridge/cffi/v1/baml_type.proto
  • baml_language/crates/bridge_wasm/src/handle.rs
  • baml_language/crates/bridge_wasm/src/host_value.rs
  • baml_language/crates/bridge_wasm/src/lib.rs
  • baml_language/crates/bridge_wasm/tests/host_callable.rs
  • baml_language/crates/bridge_wasm/tests/wasm_fs_glob.rs
  • baml_language/sdk_tests/DEVELOPMENT.md
  • baml_language/sdk_tests/README.md
  • baml_language/sdk_tests/crates/python_pydantic2/function_calls/customizable/test_cancellation.py
  • baml_language/sdk_tests/crates/python_pydantic2/function_calls/customizable/test_errors.py
  • baml_language/sdk_tests/crates/python_pydantic2/setup.ps1
  • baml_language/sdk_tests/crates/python_pydantic2/setup.sh
  • baml_language/sdk_tests/crates/python_pydantic2/type_shapes/customizable/roundtrip_tests/test_media.py
  • baml_language/sdk_tests/crates/typescript_node/function_calls/customizable/cancellation.test.ts
  • baml_language/sdk_tests/crates/typescript_node/function_calls/customizable/union_throws.test.ts
  • baml_language/sdk_tests/crates/typescript_node/setup.sh
  • baml_language/sdk_tests/harness_setup/src/python_pydantic2.rs
  • baml_language/sdk_tests/harness_setup/src/templates/package.json
  • baml_language/sdk_tests/harness_setup/src/templates/pyproject.toml
  • baml_language/sdk_tests/harness_setup/src/typescript_node.rs
  • baml_language/sdks/go/bridge_go/build.sh
  • baml_language/sdks/go/bridge_go/pkg/host_value.go
  • baml_language/sdks/go/bridge_go/pkg/proto.go
  • baml_language/sdks/nodejs/bridge_nodejs/package.json
  • baml_language/sdks/nodejs/bridge_nodejs/src/media.rs
  • baml_language/sdks/nodejs/bridge_nodejs/src/runtime.rs
  • baml_language/sdks/nodejs/bridge_nodejs/tests/test_decode_call_result.test.ts
  • baml_language/sdks/nodejs/bridge_nodejs/typescript_src/define_function.ts
  • baml_language/sdks/nodejs/bridge_nodejs/typescript_src/generated-header.txt
  • baml_language/sdks/nodejs/bridge_nodejs/typescript_src/host_value_registry.ts
  • baml_language/sdks/nodejs/bridge_nodejs/typescript_src/proto.ts
  • baml_language/sdks/nodejs/bridge_nodejs/typescript_src/proto/baml_cffi.d.ts
  • baml_language/sdks/nodejs/bridge_nodejs/typescript_src/proto/baml_cffi.js
  • baml_language/sdks/nodejs/bridge_nodejs/typescript_src/stream.ts
  • baml_language/sdks/nodejs/bridge_nodejs/typescript_src/typemap.ts
  • baml_language/sdks/nodejs/bridge_nodejs/typescript_src/wire_ty.ts
  • baml_language/sdks/nodejs/sdkgen_typescript_node/src/emit/class.rs
  • baml_language/sdks/nodejs/sdkgen_typescript_node/src/emit/typemap_file.rs
  • baml_language/sdks/nodejs/sdkgen_typescript_node/src/leaf.rs
  • baml_language/sdks/nodejs/sdkgen_typescript_node/src/lib.rs
  • baml_language/sdks/python/README.md
  • baml_language/sdks/python/generate_stubs.py
  • baml_language/sdks/python/pyproject.toml
  • baml_language/sdks/python/rust/bridge_python/src/baml_call_context.rs
  • baml_language/sdks/python/rust/bridge_python/src/baml_core/baml_py/__init__.pyi
  • baml_language/sdks/python/rust/bridge_python/src/errors.rs
  • baml_language/sdks/python/rust/bridge_python/src/host_value.rs
  • baml_language/sdks/python/rust/bridge_python/src/media.rs
  • baml_language/sdks/python/rust/bridge_python/src/py_handle.rs
  • baml_language/sdks/python/rust/bridge_python/src/runtime.rs
  • baml_language/sdks/python/rust/sdkgen_python_pydantic2/src/emit/typemap_file.rs
  • baml_language/sdks/python/rust/sdkgen_python_pydantic2/src/leaf.rs
  • baml_language/sdks/python/rust/sdkgen_python_pydantic2/src/lib.rs
  • baml_language/sdks/python/setup.sh
  • baml_language/sdks/python/src/baml_bridge/__init__.py
  • baml_language/sdks/python/src/baml_bridge/_stream.py
  • baml_language/sdks/python/src/baml_bridge/baml_py.pyi
  • baml_language/sdks/python/src/baml_bridge/cffi/__init__.py
  • baml_language/sdks/python/src/baml_bridge/cffi/v1/__init__.py
  • baml_language/sdks/python/src/baml_bridge/cffi/v1/baml_handle_pb2.py
  • baml_language/sdks/python/src/baml_bridge/cffi/v1/baml_handle_pb2.pyi
  • baml_language/sdks/python/src/baml_bridge/cffi/v1/baml_inbound_pb2.py
  • baml_language/sdks/python/src/baml_bridge/cffi/v1/baml_inbound_pb2.pyi
  • baml_language/sdks/python/src/baml_bridge/cffi/v1/baml_outbound_pb2.py
  • baml_language/sdks/python/src/baml_bridge/cffi/v1/baml_outbound_pb2.pyi
  • baml_language/sdks/python/src/baml_bridge/cffi/v1/baml_type_pb2.py
  • baml_language/sdks/python/src/baml_bridge/cffi/v1/baml_type_pb2.pyi
  • baml_language/sdks/python/src/baml_bridge/ctx_manager.py
  • baml_language/sdks/python/src/baml_bridge/errors.py
  • baml_language/sdks/python/src/baml_bridge/proto.py
  • baml_language/sdks/python/src/baml_bridge/py.typed
  • baml_language/sdks/python/src/baml_bridge/typemap.py
  • baml_language/sdks/python/src/baml_core/cffi/v1/baml_handle_pb2.py
  • baml_language/sdks/python/src/baml_core/cffi/v1/baml_inbound_pb2.py
  • baml_language/sdks/python/src/baml_core/cffi/v1/baml_outbound_pb2.py
  • baml_language/sdks/python/src/baml_core/cffi/v1/baml_type_pb2.py
  • baml_language/sdks/python/tests/conftest.py
  • baml_language/sdks/python/tests/test_bigint.py
  • baml_language/sdks/python/tests/test_decode_handle.py
  • baml_language/sdks/python/tests/test_engine.py
  • baml_language/sdks/python/tests/test_host_callable.py
  • baml_language/sdks/python/tests/test_media.py
  • baml_language/sdks/python/tests/test_proto_decode_typemap.py
  • baml_language/sdks/python/tests/test_proto_generics.py
  • baml_language/sdks/python/tests/test_typemap.py
  • scripts/baml-language-version
  • scripts/baml-release-manifests
  • typescript2/pkg-proto/src/decode.ts
  • typescript2/pkg-proto/src/encode.ts
  • typescript2/pkg-proto/src/index.ts
  • typescript2/pkg-proto/src/test/encode-decode.test.ts
  • typescript2/pkg-proto/src/types.ts
💤 Files with no reviewable changes (4)
  • baml_language/sdks/python/src/baml_core/cffi/v1/baml_inbound_pb2.py
  • baml_language/sdks/python/src/baml_core/cffi/v1/baml_handle_pb2.py
  • baml_language/sdks/python/src/baml_core/cffi/v1/baml_outbound_pb2.py
  • baml_language/sdks/python/src/baml_core/cffi/v1/baml_type_pb2.py
✅ Files skipped from review due to trivial changes (51)
  • baml_language/sdk_tests/crates/typescript_node/setup.sh
  • baml_language/sdks/nodejs/bridge_nodejs/typescript_src/generated-header.txt
  • baml_language/sdks/python/rust/bridge_python/src/baml_call_context.rs
  • baml_language/crates/baml_codegen_types/src/generator_fields.rs
  • typescript2/pkg-proto/src/types.ts
  • baml_language/sdk_tests/README.md
  • baml_language/sdks/python/src/baml_bridge/init.py
  • .github/workflows/build2-nodejs-sdk.reusable.yaml
  • baml_language/crates/bridge_wasm/src/host_value.rs
  • baml_language/sdks/nodejs/bridge_nodejs/typescript_src/typemap.ts
  • baml_language/sdk_tests/harness_setup/src/templates/pyproject.toml
  • baml_language/sdks/python/tests/test_engine.py
  • baml_language/sdk_tests/crates/python_pydantic2/function_calls/customizable/test_errors.py
  • baml_language/sdks/nodejs/sdkgen_typescript_node/src/emit/class.rs
  • baml_language/sdks/python/src/baml_bridge/cffi/v1/baml_inbound_pb2.py
  • baml_language/.config/nextest.toml
  • baml_language/crates/baml_builtins2/keyword_docs/baml_keywords.yaml
  • baml_language/sdk_tests/harness_setup/src/python_pydantic2.rs
  • .github/workflows/cargo-tests.reusable.yaml
  • baml_language/sdks/python/src/baml_bridge/baml_py.pyi
  • baml_language/crates/bex_engine/tests/host_value_callable.rs
  • baml_language/crates/baml_cli/src/init_command.rs
  • baml_language/sdk_tests/crates/python_pydantic2/type_shapes/customizable/roundtrip_tests/test_media.py
  • baml_language/sdks/python/tests/test_media.py
  • baml_language/crates/baml_codegen_types/src/ty.rs
  • baml_language/crates/bridge_ctypes/src/traceback.rs
  • baml_language/sdks/nodejs/bridge_nodejs/typescript_src/stream.ts
  • baml_language/crates/bridge_ctypes/src/value_decode.rs
  • baml_language/crates/bridge_cffi/src/baml_to_host.rs
  • baml_language/sdks/python/src/baml_bridge/cffi/v1/baml_outbound_pb2.py
  • baml_language/sdks/python/README.md
  • baml_language/sdk_tests/crates/python_pydantic2/function_calls/customizable/test_cancellation.py
  • baml_language/sdks/nodejs/bridge_nodejs/typescript_src/wire_ty.ts
  • baml_language/crates/bridge_cffi/src/ffi/handle.rs
  • baml_language/sdks/python/rust/sdkgen_python_pydantic2/src/emit/typemap_file.rs
  • baml_language/sdks/python/setup.sh
  • baml_language/sdk_tests/harness_setup/src/typescript_node.rs
  • baml_language/sdk_tests/crates/typescript_node/function_calls/customizable/union_throws.test.ts
  • baml_language/sdks/python/tests/test_decode_handle.py
  • baml_language/sdks/python/src/baml_bridge/cffi/v1/baml_inbound_pb2.pyi
  • baml_language/sdks/python/src/baml_bridge/cffi/v1/baml_type_pb2.py
  • baml_language/sdk_tests/DEVELOPMENT.md
  • baml_language/crates/bridge_wasm/tests/wasm_fs_glob.rs
  • baml_language/sdks/python/tests/test_proto_generics.py
  • baml_language/sdks/nodejs/sdkgen_typescript_node/src/lib.rs
  • baml_language/sdk_tests/crates/python_pydantic2/setup.ps1
  • baml_language/sdk_tests/crates/python_pydantic2/setup.sh
  • baml_language/sdks/python/rust/bridge_python/src/baml_core/baml_py/init.pyi
  • baml_language/sdks/python/src/baml_bridge/cffi/v1/baml_handle_pb2.py
  • baml_language/crates/bex_engine/src/trace_value_encode.rs
  • baml_language/sdks/nodejs/bridge_nodejs/typescript_src/define_function.ts
🚧 Files skipped from review as they are similar to previous changes (49)
  • baml_language/crates/bridge_ctypes/types/baml_bridge/cffi/v1/baml_handle.proto
  • .github/workflows/publish2-nodejs-sdk.yaml
  • baml_language/crates/bridge_ctypes/types/baml_bridge/cffi/v1/baml_type.proto
  • baml_language/sdks/go/bridge_go/build.sh
  • baml_language/sdks/python/rust/bridge_python/src/py_handle.rs
  • baml_language/sdks/nodejs/bridge_nodejs/tests/test_decode_call_result.test.ts
  • baml_language/crates/bridge_ctypes/src/lib.rs
  • baml_language/sdk_tests/harness_setup/src/templates/package.json
  • baml_language/crates/bex_engine/tests/prof_gate.rs
  • baml_language/crates/bridge_ctypes/types/baml_bridge/cffi/v1/baml_outbound.proto
  • baml_language/sdks/python/tests/conftest.py
  • baml_language/sdks/go/bridge_go/pkg/proto.go
  • baml_language/sdks/nodejs/bridge_nodejs/src/media.rs
  • baml_language/sdks/python/rust/bridge_python/src/errors.rs
  • baml_language/crates/baml_release/src/manifest.rs
  • baml_language/crates/bridge_ctypes/types/baml_bridge/cffi/v1/baml_inbound.proto
  • baml_language/crates/bridge_ctypes/README.md
  • baml_language/sdks/python/tests/test_bigint.py
  • baml_language/sdks/python/tests/test_proto_decode_typemap.py
  • baml_language/sdks/python/src/baml_bridge/typemap.py
  • baml_language/sdks/nodejs/bridge_nodejs/src/runtime.rs
  • baml_language/crates/bridge_ctypes/src/handle_table.rs
  • baml_language/sdks/python/rust/bridge_python/src/media.rs
  • .github/workflows/ci.yaml
  • baml_language/sdks/python/rust/bridge_python/src/runtime.rs
  • scripts/baml-language-version
  • baml_language/sdks/nodejs/bridge_nodejs/package.json
  • baml_language/sdks/nodejs/bridge_nodejs/typescript_src/host_value_registry.ts
  • baml_language/crates/bridge_wasm/src/lib.rs
  • baml_language/crates/bridge_cffi/src/ffi/host_value.rs
  • baml_language/sdks/python/pyproject.toml
  • scripts/baml-release-manifests
  • baml_language/crates/bridge_ctypes/src/ty_encode.rs
  • baml_language/sdks/python/rust/sdkgen_python_pydantic2/src/lib.rs
  • baml_language/crates/bridge_wasm/tests/host_callable.rs
  • baml_language/crates/bridge_ctypes/src/ty_decode.rs
  • baml_language/sdks/go/bridge_go/pkg/host_value.go
  • baml_language/crates/bridge_wasm/src/handle.rs
  • baml_language/sdks/nodejs/sdkgen_typescript_node/src/leaf.rs
  • baml_language/sdks/nodejs/sdkgen_typescript_node/src/emit/typemap_file.rs
  • baml_language/sdks/python/generate_stubs.py
  • baml_language/sdks/python/src/baml_bridge/cffi/v1/baml_outbound_pb2.pyi
  • baml_language/sdks/python/tests/test_typemap.py
  • baml_language/sdks/python/tests/test_host_callable.py
  • baml_language/sdk_tests/crates/typescript_node/function_calls/customizable/cancellation.test.ts
  • baml_language/crates/bridge_cffi/src/lib.rs
  • baml_language/sdks/python/rust/bridge_python/src/host_value.rs
  • baml_language/sdks/nodejs/bridge_nodejs/typescript_src/proto.ts
  • baml_language/sdks/python/rust/sdkgen_python_pydantic2/src/leaf.rs

📝 Walkthrough

Walkthrough

This PR renames the runtime bridge package and its generated interfaces from baml_core to baml_bridge across proto definitions, Rust crates, Python and Node.js SDKs, Go bindings, test fixtures, docs, workflows, and release scripts.

Changes

baml_core → baml_bridge rename

Layer / File(s) Summary
Proto and core Rust bindings
baml_language/crates/bridge_ctypes/types/baml_bridge/cffi/v1/*.proto, baml_language/crates/bridge_ctypes/src/*.rs, README.md
Proto package names, generated include paths, and Rust encode/decode wiring switch to baml_bridge.
Rust consumers
baml_language/crates/bridge_cffi/..., baml_language/crates/bex_engine/..., baml_language/crates/bridge_wasm/...
Downstream Rust crates and tests import and re-export the bridge types from baml_bridge paths.
Python bridge package and generators
baml_language/sdks/python/..., baml_language/sdks/python/rust/...
The Python package, generated protobuf modules, typemap, runtime bindings, and SDK generators all move to baml_bridge names and paths.
Node.js, TypeScript, and Go SDK wiring
baml_language/sdks/nodejs/..., typescript2/pkg-proto/..., baml_language/sdks/go/bridge_go/...
Node, TS, and Go package names, imports, generated bindings, and type plumbing are updated to the bridge namespace.
Docs, workflows, and scripts
.github/workflows/*, baml_language/crates/baml_cli/..., sdk_tests/*, scripts/*
Comments, templates, release metadata, and SDK test scaffolding reference baml_bridge instead of baml_core.

Estimated code review effort: 4 (Complex) | ~45 minutes

Possibly related PRs

  • BoundaryML/baml#3099: Touches bridge_wasm, which this PR also rewires to the new bridge module path.
  • BoundaryML/baml#3442: Touches Python bridge media bindings, which this PR also retargets to baml_bridge.
  • BoundaryML/baml#3888: Modifies the same baml.toml scaffolding area updated here for bridge package names.

Poem

A bunny hopped from core to bridge,
Across each crate and package ridge.
New names now hop in tidy rows,
And every proto path that grows. 🐇
From Rust to Python, Node to Go,
The bridge got renamed nice and slow.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: renaming the SDK surface from baml_core to baml_bridge.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch sam/rename-baml-bridge

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 79ec83e569

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

# TypeScript (ts-proto / buf) — typescript2/pkg-proto consumer
cd typescript2/pkg-proto && pnpm generate
# -> typescript2/pkg-proto/src/generated/baml_core/cffi/v1/*.ts
# -> typescript2/pkg-proto/src/generated/baml_bridge/cffi/v1/*.ts

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Update pkg-proto imports for the renamed generated path

With this regenerated path now under src/generated/baml_bridge/..., the TypeScript consumer no longer matches its generated output: I checked typescript2/pkg-proto/src/{types,decode,encode,index}.ts and the tests, and they still import ./generated/baml_core/.... After cd typescript2/pkg-proto && pnpm generate, pnpm run typecheck fails with missing generated/baml_core modules, so webview/playground builds that regenerate pkg-proto will break unless those imports are renamed alongside the proto package.

Useful? React with 👍 / 👎.

@github-actions

github-actions Bot commented Jul 7, 2026 •

Copy link
Copy Markdown

Binary size checks passed

✅ 7 passed

Artifact Platform File Gzip Gated on Baseline Delta Status
✅ baml-cli Linux 🔒 21.6 MB 9.2 MB file 21.5 MB +91.7 KB (+0.4%) OK
✅ packed-program Linux 🔒 15.8 MB 6.6 MB file 15.6 MB +145.8 KB (+0.9%) OK
✅ baml-cli macOS 🔒 16.6 MB 8.0 MB file 16.6 MB +82.8 KB (+0.5%) OK
✅ packed-program macOS 🔒 12.2 MB 5.8 MB file 12.1 MB +99.7 KB (+0.8%) OK
✅ baml-cli Windows 🔒 18.2 MB 8.3 MB file 18.1 MB +72.7 KB (+0.4%) OK
✅ packed-program Windows 🔒 13.1 MB 5.9 MB file 13.0 MB +114.0 KB (+0.9%) OK
✅ bridge_wasm WASM 14.5 MB 🔒 4.1 MB gzip 4.1 MB +56.7 KB (+1.4%) OK

🔒 = the size this artifact is GATED on (ceiling + delta). Binaries gate on file size (installed binary); WASM gates on gzip (download size). The other size is shown for information only.


Generated by cargo size-gate · workflow run

@vercel
vercel Bot temporarily deployed to Preview – promptfiddle July 7, 2026 20:58 Inactive

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
baml_language/sdks/python/rust/bridge_python/src/media.rs (1)

127-138: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Move the generated stub under src/baml_bridge/
rust/bridge_python/src/baml_core/baml_py/__init__.pyi still reflects the old layout, while pyproject.toml and generate_stubs.py now target baml_bridge.baml_py under src/baml_bridge/. Keeping the stale baml_core path leaves the checked-in stubs out of sync.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@baml_language/sdks/python/rust/bridge_python/src/media.rs` around lines 127 -
138, The generated stub path is still using the old baml_core layout, so the
checked-in Python stubs are out of sync with the new package location. Update
the stub generation and committed stub target for the baml_bridge.baml_py
package so the generated .pyi ends up under src/baml_bridge/ rather than
baml_core, and verify the media pyclass/module naming stays aligned with the new
import path in define_media_pyclass and generate_stubs.py.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Outside diff comments:
In `@baml_language/sdks/python/rust/bridge_python/src/media.rs`:
- Around line 127-138: The generated stub path is still using the old baml_core
layout, so the checked-in Python stubs are out of sync with the new package
location. Update the stub generation and committed stub target for the
baml_bridge.baml_py package so the generated .pyi ends up under src/baml_bridge/
rather than baml_core, and verify the media pyclass/module naming stays aligned
with the new import path in define_media_pyclass and generate_stubs.py.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: e6f7185c-8063-4970-9b9d-9279afc97550

📥 Commits

Reviewing files that changed from the base of the PR and between 1e1b97e and 79ec83e.

⛔ Files ignored due to path filters (30)
  • baml_language/crates/baml_cli/src/snapshots/baml_cli__describe_command_tests__render_keyword_python.snap is excluded by !**/*.snap
  • baml_language/crates/baml_cli/src/snapshots/baml_cli__describe_command_tests__render_keyword_typescript.snap is excluded by !**/*.snap
  • baml_language/sdks/go/bridge_go/cffi/proto/baml_bridge/cffi/v1/baml_handle.pb.go is excluded by !**/*.pb.go
  • baml_language/sdks/go/bridge_go/cffi/proto/baml_bridge/cffi/v1/baml_inbound.pb.go is excluded by !**/*.pb.go
  • baml_language/sdks/go/bridge_go/cffi/proto/baml_bridge/cffi/v1/baml_outbound.pb.go is excluded by !**/*.pb.go
  • baml_language/sdks/go/bridge_go/cffi/proto/baml_bridge/cffi/v1/baml_type.pb.go is excluded by !**/*.pb.go
  • baml_language/sdks/nodejs/bridge_nodejs/dist/ctx_manager.d.ts is excluded by !**/dist/**
  • baml_language/sdks/nodejs/bridge_nodejs/dist/ctx_manager.js is excluded by !**/dist/**
  • baml_language/sdks/nodejs/bridge_nodejs/dist/define_function.d.ts is excluded by !**/dist/**
  • baml_language/sdks/nodejs/bridge_nodejs/dist/define_function.js is excluded by !**/dist/**
  • baml_language/sdks/nodejs/bridge_nodejs/dist/errors.js is excluded by !**/dist/**
  • baml_language/sdks/nodejs/bridge_nodejs/dist/exit_hook.d.ts is excluded by !**/dist/**
  • baml_language/sdks/nodejs/bridge_nodejs/dist/exit_hook.js is excluded by !**/dist/**
  • baml_language/sdks/nodejs/bridge_nodejs/dist/host_value_registry.d.ts is excluded by !**/dist/**
  • baml_language/sdks/nodejs/bridge_nodejs/dist/host_value_registry.js is excluded by !**/dist/**
  • baml_language/sdks/nodejs/bridge_nodejs/dist/index.d.ts is excluded by !**/dist/**
  • baml_language/sdks/nodejs/bridge_nodejs/dist/index.js is excluded by !**/dist/**
  • baml_language/sdks/nodejs/bridge_nodejs/dist/native.d.ts is excluded by !**/dist/**
  • baml_language/sdks/nodejs/bridge_nodejs/dist/native.js is excluded by !**/dist/**
  • baml_language/sdks/nodejs/bridge_nodejs/dist/proto.d.ts is excluded by !**/dist/**
  • baml_language/sdks/nodejs/bridge_nodejs/dist/proto.js is excluded by !**/dist/**
  • baml_language/sdks/nodejs/bridge_nodejs/dist/proto/baml_cffi.d.ts is excluded by !**/dist/**
  • baml_language/sdks/nodejs/bridge_nodejs/dist/proto/baml_cffi.js is excluded by !**/dist/**
  • baml_language/sdks/nodejs/bridge_nodejs/dist/stream.d.ts is excluded by !**/dist/**
  • baml_language/sdks/nodejs/bridge_nodejs/dist/stream.js is excluded by !**/dist/**
  • baml_language/sdks/nodejs/bridge_nodejs/dist/typemap.d.ts is excluded by !**/dist/**
  • baml_language/sdks/nodejs/bridge_nodejs/dist/typemap.js is excluded by !**/dist/**
  • baml_language/sdks/nodejs/bridge_nodejs/dist/wire_ty.d.ts is excluded by !**/dist/**
  • baml_language/sdks/nodejs/bridge_nodejs/dist/wire_ty.js is excluded by !**/dist/**
  • baml_language/sdks/python/uv.lock is excluded by !**/*.lock
📒 Files selected for processing (115)
  • .github/workflows/build2-nodejs-sdk.reusable.yaml
  • .github/workflows/cargo-tests.reusable.yaml
  • .github/workflows/ci.yaml
  • .github/workflows/publish2-nodejs-sdk.yaml
  • baml_language/.config/nextest.toml
  • baml_language/crates/baml_builtins2/keyword_docs/baml_keywords.yaml
  • baml_language/crates/baml_cli/src/init_command.rs
  • baml_language/crates/baml_codegen_types/src/generator_fields.rs
  • baml_language/crates/baml_codegen_types/src/ty.rs
  • baml_language/crates/baml_release/src/manifest.rs
  • baml_language/crates/bex_engine/src/trace_value_encode.rs
  • baml_language/crates/bex_engine/tests/host_value_callable.rs
  • baml_language/crates/bex_engine/tests/prof_gate.rs
  • baml_language/crates/bridge_cffi/src/baml_to_host.rs
  • baml_language/crates/bridge_cffi/src/ffi/handle.rs
  • baml_language/crates/bridge_cffi/src/ffi/host_value.rs
  • baml_language/crates/bridge_cffi/src/lib.rs
  • baml_language/crates/bridge_ctypes/README.md
  • baml_language/crates/bridge_ctypes/src/handle_table.rs
  • baml_language/crates/bridge_ctypes/src/lib.rs
  • baml_language/crates/bridge_ctypes/src/traceback.rs
  • baml_language/crates/bridge_ctypes/src/ty_decode.rs
  • baml_language/crates/bridge_ctypes/src/ty_encode.rs
  • baml_language/crates/bridge_ctypes/src/value_decode.rs
  • baml_language/crates/bridge_ctypes/src/value_encode.rs
  • baml_language/crates/bridge_ctypes/types/baml_bridge/cffi/v1/baml_handle.proto
  • baml_language/crates/bridge_ctypes/types/baml_bridge/cffi/v1/baml_inbound.proto
  • baml_language/crates/bridge_ctypes/types/baml_bridge/cffi/v1/baml_outbound.proto
  • baml_language/crates/bridge_ctypes/types/baml_bridge/cffi/v1/baml_type.proto
  • baml_language/crates/bridge_wasm/src/handle.rs
  • baml_language/crates/bridge_wasm/src/host_value.rs
  • baml_language/crates/bridge_wasm/src/lib.rs
  • baml_language/crates/bridge_wasm/tests/host_callable.rs
  • baml_language/crates/bridge_wasm/tests/wasm_fs_glob.rs
  • baml_language/sdk_tests/DEVELOPMENT.md
  • baml_language/sdk_tests/README.md
  • baml_language/sdk_tests/crates/python_pydantic2/function_calls/customizable/test_cancellation.py
  • baml_language/sdk_tests/crates/python_pydantic2/function_calls/customizable/test_errors.py
  • baml_language/sdk_tests/crates/python_pydantic2/setup.ps1
  • baml_language/sdk_tests/crates/python_pydantic2/setup.sh
  • baml_language/sdk_tests/crates/python_pydantic2/type_shapes/customizable/roundtrip_tests/test_media.py
  • baml_language/sdk_tests/crates/typescript_node/function_calls/customizable/cancellation.test.ts
  • baml_language/sdk_tests/crates/typescript_node/function_calls/customizable/union_throws.test.ts
  • baml_language/sdk_tests/crates/typescript_node/setup.sh
  • baml_language/sdk_tests/harness_setup/src/python_pydantic2.rs
  • baml_language/sdk_tests/harness_setup/src/templates/package.json
  • baml_language/sdk_tests/harness_setup/src/templates/pyproject.toml
  • baml_language/sdk_tests/harness_setup/src/typescript_node.rs
  • baml_language/sdks/go/bridge_go/build.sh
  • baml_language/sdks/go/bridge_go/pkg/host_value.go
  • baml_language/sdks/go/bridge_go/pkg/proto.go
  • baml_language/sdks/nodejs/bridge_nodejs/package.json
  • baml_language/sdks/nodejs/bridge_nodejs/src/media.rs
  • baml_language/sdks/nodejs/bridge_nodejs/src/runtime.rs
  • baml_language/sdks/nodejs/bridge_nodejs/tests/test_decode_call_result.test.ts
  • baml_language/sdks/nodejs/bridge_nodejs/typescript_src/define_function.ts
  • baml_language/sdks/nodejs/bridge_nodejs/typescript_src/generated-header.txt
  • baml_language/sdks/nodejs/bridge_nodejs/typescript_src/host_value_registry.ts
  • baml_language/sdks/nodejs/bridge_nodejs/typescript_src/proto.ts
  • baml_language/sdks/nodejs/bridge_nodejs/typescript_src/proto/baml_cffi.d.ts
  • baml_language/sdks/nodejs/bridge_nodejs/typescript_src/proto/baml_cffi.js
  • baml_language/sdks/nodejs/bridge_nodejs/typescript_src/stream.ts
  • baml_language/sdks/nodejs/bridge_nodejs/typescript_src/typemap.ts
  • baml_language/sdks/nodejs/bridge_nodejs/typescript_src/wire_ty.ts
  • baml_language/sdks/nodejs/sdkgen_typescript_node/src/emit/class.rs
  • baml_language/sdks/nodejs/sdkgen_typescript_node/src/emit/typemap_file.rs
  • baml_language/sdks/nodejs/sdkgen_typescript_node/src/leaf.rs
  • baml_language/sdks/nodejs/sdkgen_typescript_node/src/lib.rs
  • baml_language/sdks/python/README.md
  • baml_language/sdks/python/generate_stubs.py
  • baml_language/sdks/python/pyproject.toml
  • baml_language/sdks/python/rust/bridge_python/src/baml_call_context.rs
  • baml_language/sdks/python/rust/bridge_python/src/baml_core/baml_py/__init__.pyi
  • baml_language/sdks/python/rust/bridge_python/src/errors.rs
  • baml_language/sdks/python/rust/bridge_python/src/host_value.rs
  • baml_language/sdks/python/rust/bridge_python/src/media.rs
  • baml_language/sdks/python/rust/bridge_python/src/py_handle.rs
  • baml_language/sdks/python/rust/bridge_python/src/runtime.rs
  • baml_language/sdks/python/rust/sdkgen_python_pydantic2/src/emit/typemap_file.rs
  • baml_language/sdks/python/rust/sdkgen_python_pydantic2/src/leaf.rs
  • baml_language/sdks/python/rust/sdkgen_python_pydantic2/src/lib.rs
  • baml_language/sdks/python/setup.sh
  • baml_language/sdks/python/src/baml_bridge/__init__.py
  • baml_language/sdks/python/src/baml_bridge/_stream.py
  • baml_language/sdks/python/src/baml_bridge/baml_py.pyi
  • baml_language/sdks/python/src/baml_bridge/cffi/__init__.py
  • baml_language/sdks/python/src/baml_bridge/cffi/v1/__init__.py
  • baml_language/sdks/python/src/baml_bridge/cffi/v1/baml_handle_pb2.py
  • baml_language/sdks/python/src/baml_bridge/cffi/v1/baml_handle_pb2.pyi
  • baml_language/sdks/python/src/baml_bridge/cffi/v1/baml_inbound_pb2.py
  • baml_language/sdks/python/src/baml_bridge/cffi/v1/baml_inbound_pb2.pyi
  • baml_language/sdks/python/src/baml_bridge/cffi/v1/baml_outbound_pb2.py
  • baml_language/sdks/python/src/baml_bridge/cffi/v1/baml_outbound_pb2.pyi
  • baml_language/sdks/python/src/baml_bridge/cffi/v1/baml_type_pb2.py
  • baml_language/sdks/python/src/baml_bridge/cffi/v1/baml_type_pb2.pyi
  • baml_language/sdks/python/src/baml_bridge/ctx_manager.py
  • baml_language/sdks/python/src/baml_bridge/errors.py
  • baml_language/sdks/python/src/baml_bridge/proto.py
  • baml_language/sdks/python/src/baml_bridge/py.typed
  • baml_language/sdks/python/src/baml_bridge/typemap.py
  • baml_language/sdks/python/src/baml_core/cffi/v1/baml_handle_pb2.py
  • baml_language/sdks/python/src/baml_core/cffi/v1/baml_inbound_pb2.py
  • baml_language/sdks/python/src/baml_core/cffi/v1/baml_outbound_pb2.py
  • baml_language/sdks/python/src/baml_core/cffi/v1/baml_type_pb2.py
  • baml_language/sdks/python/tests/conftest.py
  • baml_language/sdks/python/tests/test_bigint.py
  • baml_language/sdks/python/tests/test_decode_handle.py
  • baml_language/sdks/python/tests/test_engine.py
  • baml_language/sdks/python/tests/test_host_callable.py
  • baml_language/sdks/python/tests/test_media.py
  • baml_language/sdks/python/tests/test_proto_decode_typemap.py
  • baml_language/sdks/python/tests/test_proto_generics.py
  • baml_language/sdks/python/tests/test_typemap.py
  • scripts/baml-language-version
  • scripts/baml-release-manifests
💤 Files with no reviewable changes (4)
  • baml_language/sdks/python/src/baml_core/cffi/v1/baml_inbound_pb2.py
  • baml_language/sdks/python/src/baml_core/cffi/v1/baml_outbound_pb2.py
  • baml_language/sdks/python/src/baml_core/cffi/v1/baml_handle_pb2.py
  • baml_language/sdks/python/src/baml_core/cffi/v1/baml_type_pb2.py

Rename the published SDK bridge package coherently:
- PyPI: baml-core -> baml-bridge (import module baml_core -> baml_bridge)
- npm: @boundaryml/baml-core-node -> @boundaryml/baml-bridge (incl. platform packages)
- proto package baml_core.cffi.v1 -> baml_bridge.cffi.v1 (regenerated Python pb2 + Go stubs + Rust prost)
- release/version plumbing (scripts/baml-language-version, baml-release-manifests, workflows)

Internal (unpublished) Rust module bridge_ctypes::baml_core is intentionally kept.
@sxlijin
sxlijin force-pushed the sam/rename-baml-bridge branch from 79ec83e to 111589d Compare July 7, 2026 21:35
@vercel
vercel Bot temporarily deployed to Preview – beps July 7, 2026 21:36 Inactive
@vercel
vercel Bot temporarily deployed to Preview – promptfiddle2 July 7, 2026 21:44 Inactive
@vercel
vercel Bot temporarily deployed to Preview – promptfiddle July 7, 2026 21:58 Inactive
@sxlijin
sxlijin added this pull request to the merge queue Jul 7, 2026
Merged via the queue into canary with commit 939fbbb Jul 7, 2026
55 checks passed
@sxlijin
sxlijin deleted the sam/rename-baml-bridge branch July 7, 2026 22:40

This branch was previously deployed

3 inactive deployments
Preview – promptfiddle — 111589d5 Deployed Jul 7, 2026 by vercel[bot]
Preview – promptfiddle2 — 111589d5 Deployed Jul 7, 2026 by vercel[bot]
Preview – beps — 111589d5 Deployed Jul 7, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant