mirror of
https://github.com/openai/codex.git
synced 2026-11-16 22:00:36 +00:00
Define the code-mode host gRPC protocol (#37510)
## What changed - Add the `codex.code_mode.v1` protobuf API for managing code-mode sessions, executions, waits, tool callbacks, notifications, and content results. - Generate and export the Rust client/server bindings with `tonic` under Cargo. - Add Bazel protobuf targets and a `prost` toolchain that uses the workspace's Rust runtime versions. GitOrigin-RevId: 51d9d044e01dab2f4d25ab79aa7a52585485eee3
This commit is contained in:
committed by
copyberry
parent
4ca25a2c4e
commit
8073dbb20b
@@ -1,6 +1,24 @@
|
||||
load("@rules_proto//proto:defs.bzl", "proto_library")
|
||||
load("@rules_rust//extensions/prost:defs.bzl", "rust_prost_library")
|
||||
load("//:defs.bzl", "codex_rust_crate")
|
||||
|
||||
proto_library(
|
||||
name = "code-mode-proto",
|
||||
srcs = glob(["src/grpc/*.proto"]),
|
||||
strip_import_prefix = "src/grpc",
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
rust_prost_library(
|
||||
name = "code-mode-rust-proto",
|
||||
proto = ":code-mode-proto",
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
codex_rust_crate(
|
||||
name = "code-mode-protocol",
|
||||
build_script_enabled = False,
|
||||
crate_name = "codex_code_mode_protocol",
|
||||
deps_extra = [":code-mode-rust-proto"],
|
||||
rustc_flags_extra = ["--cfg=codex_bazel"],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user