mirror of
https://github.com/openai/codex.git
synced 2026-12-02 00:31:03 +00:00
## Why Code Mode embeds TypeScript declarations in tool descriptions, so scripts that want to inspect a tool's argument and return types have to extract the declaration from the description. ## What changed Enable `features.code_mode_all_tools_schema` to expose callable names, descriptions, and TypeScript signatures as separate fields in `ALL_TOOLS`. Update the `exec` guidance to match the selected format, including when resuming a session. The flag is off by default. Carry signatures over gRPC and stdio. Reject execution requests with signatures when the host does not advertise support for them. ## Testing Add coverage for both catalog formats, `exec` guidance on resume, and signature preservation over gRPC and stdio. GitOrigin-RevId: dedaeec4a2563c23d432c324187ef20f6a0e5ea3
38 lines
1.0 KiB
TOML
38 lines
1.0 KiB
TOML
[package]
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
name = "codex-code-mode-protocol"
|
|
version.workspace = true
|
|
|
|
[lib]
|
|
doctest = false
|
|
name = "codex_code_mode_protocol"
|
|
path = "src/lib.rs"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
codex-protocol = { workspace = true }
|
|
prost = "0.14.3"
|
|
serde = { workspace = true, features = ["derive"] }
|
|
serde_json = { workspace = true }
|
|
tokio = { workspace = true, features = ["sync"] }
|
|
tokio-util = { workspace = true, features = ["rt"] }
|
|
tonic = { workspace = true }
|
|
tonic-prost = { workspace = true }
|
|
|
|
[build-dependencies]
|
|
glob = { workspace = true }
|
|
protoc-bin-vendored = "3.2.0"
|
|
tonic-prost-build = { version = "=0.14.3", default-features = false, features = ["transport"] }
|
|
|
|
# Cargo-shear cannot inspect the prost and tonic-prost references in generated gRPC bindings.
|
|
[package.metadata.cargo-shear]
|
|
ignored = ["prost", "tonic-prost"]
|
|
|
|
[dev-dependencies]
|
|
insta = { workspace = true }
|
|
pretty_assertions = { workspace = true }
|
|
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }
|