mirror of
https://github.com/openai/codex.git
synced 2026-10-19 16:17:49 +00:00
## What changed - Add `//bazel/schema:app-server` to generate stable and experimental schemas from Rust sources without depending on committed precomputed bundles. - Add `//sdk/python:generated` to generate Python SDK models, the notification registry, and API methods from the stable schema in scratch space, using dependencies from `uv.lock`. - Add `generate-types --no-format` to skip formatters for build outputs while preserving formatting by default. ## Testing Extend contract generation tests to regenerate in a temporary SDK copy, checking byte equality for formatted output and AST equality for unformatted output. GitOrigin-RevId: 9ca7daa8ac0a33c4106a9e95c2f48bbded07df21
22 lines
548 B
Python
22 lines
548 B
Python
load("//bazel/rules:schema_bundle.bzl", "python_sdk_exports")
|
|
|
|
exports_files(["uv.lock"])
|
|
|
|
python_sdk_exports(
|
|
name = "generated",
|
|
srcs = [
|
|
"pyproject.toml",
|
|
"release_version.py",
|
|
"scripts/update_sdk_artifacts.py",
|
|
] + glob(
|
|
["src/**/*.py"],
|
|
exclude = [
|
|
"src/openai_codex/generated/notification_registry.py",
|
|
"src/openai_codex/generated/v2_all.py",
|
|
],
|
|
),
|
|
schema = "//bazel/schema:stable",
|
|
tags = ["manual"],
|
|
visibility = ["//visibility:public"],
|
|
)
|