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
24 lines
563 B
Python
24 lines
563 B
Python
load("//bazel/rules:schema_bundle.bzl", "schema_bundle")
|
|
|
|
schema_bundle(
|
|
name = "public-schema-bundle",
|
|
testonly = True,
|
|
generator = "//codex-rs/app-server-protocol:schema-generator",
|
|
tags = ["manual"],
|
|
)
|
|
|
|
schema_bundle(
|
|
name = "app-server",
|
|
generator = "//codex-rs/app-server-protocol:schema-generator-on-demand",
|
|
tags = ["manual"],
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
filegroup(
|
|
name = "stable",
|
|
srcs = [":app-server"],
|
|
output_group = "stable",
|
|
tags = ["manual"],
|
|
visibility = ["//visibility:public"],
|
|
)
|