mirror of
https://github.com/openai/codex.git
synced 2026-05-02 04:11:39 +03:00
up 1037 - Thu Mar 12 2026 23:59:50
This commit is contained in:
@@ -17,6 +17,7 @@ use crate::protocol::common::EXPERIMENTAL_CLIENT_METHODS;
|
||||
use anyhow::Context;
|
||||
use anyhow::Result;
|
||||
use anyhow::anyhow;
|
||||
use codex_protocol::protocol::RolloutLine;
|
||||
use schemars::JsonSchema;
|
||||
use schemars::schema_for;
|
||||
use serde::Serialize;
|
||||
@@ -229,6 +230,11 @@ pub fn generate_json_with_experimental(out_dir: &Path, experimental_api: bool) -
|
||||
&flat_v2_bundle,
|
||||
)?;
|
||||
|
||||
// internal only (not a public stable API)
|
||||
let internal_out_dir = out_dir.join("internal");
|
||||
ensure_dir(&internal_out_dir)?;
|
||||
write_json_schema::<RolloutLine>(&internal_out_dir, "RolloutLine")?;
|
||||
|
||||
if !experimental_api {
|
||||
filter_experimental_json_files(out_dir)?;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user