add requirements.toml commandline option

This commit is contained in:
MJR
2026-03-02 11:18:45 -05:00
parent c2e126f92a
commit 7d6cb71ec0
37 changed files with 646 additions and 35 deletions
@@ -919,6 +919,7 @@ mod tests {
model: Some("gpt-5.1-codex-max".to_string()),
model_provider: None,
profile: None,
requirements_toml: None,
cwd: None,
approval_policy: Some(AskForApproval::OnRequest),
sandbox: None,
@@ -937,6 +938,7 @@ mod tests {
"model": "gpt-5.1-codex-max",
"modelProvider": null,
"profile": null,
"requirementsToml": null,
"cwd": null,
"approvalPolicy": "on-request",
"sandbox": null,
@@ -70,6 +70,7 @@ pub struct NewConversationParams {
pub model: Option<String>,
pub model_provider: Option<String>,
pub profile: Option<String>,
pub requirements_toml: Option<String>,
pub cwd: Option<String>,
pub approval_policy: Option<AskForApproval>,
pub sandbox: Option<SandboxMode>,
@@ -1789,6 +1789,8 @@ pub struct ThreadStartParams {
#[ts(optional = nullable)]
pub model_provider: Option<String>,
#[ts(optional = nullable)]
pub requirements_toml: Option<String>,
#[ts(optional = nullable)]
pub cwd: Option<String>,
#[ts(optional = nullable)]
pub approval_policy: Option<AskForApproval>,
@@ -1892,6 +1894,8 @@ pub struct ThreadResumeParams {
#[ts(optional = nullable)]
pub model_provider: Option<String>,
#[ts(optional = nullable)]
pub requirements_toml: Option<String>,
#[ts(optional = nullable)]
pub cwd: Option<String>,
#[ts(optional = nullable)]
pub approval_policy: Option<AskForApproval>,
@@ -1952,6 +1956,8 @@ pub struct ThreadForkParams {
#[ts(optional = nullable)]
pub model_provider: Option<String>,
#[ts(optional = nullable)]
pub requirements_toml: Option<String>,
#[ts(optional = nullable)]
pub cwd: Option<String>,
#[ts(optional = nullable)]
pub approval_policy: Option<AskForApproval>,