Replace item sandbox metadata with user message type metadata

This commit is contained in:
Roy Han
2026-03-11 15:19:15 -07:00
parent 9e058f1bc5
commit 2fa740749e
2 changed files with 29 additions and 17 deletions

View File

@@ -32,17 +32,21 @@ pub enum TurnItem {
#[derive(Debug, Clone, Deserialize, Serialize, TS, JsonSchema, PartialEq, Eq)]
#[serde(rename_all = "snake_case")]
#[ts(rename_all = "snake_case")]
pub enum ItemSandboxPolicy {
ReadOnly,
Sandbox,
FullAccess,
pub enum UserMessageType {
Prompt,
PromptSteering,
PromptQueued,
PromptWithIdeContext,
AgentsMdDefault,
AgentsMdCustom,
EnvironmentContext,
}
#[derive(Debug, Clone, Default, Deserialize, Serialize, TS, JsonSchema, PartialEq, Eq)]
pub struct TurnItemMetadata {
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional)]
pub sandbox_policy: Option<ItemSandboxPolicy>,
pub user_message_type: Option<UserMessageType>,
}
#[derive(Debug, Clone, Deserialize, Serialize, TS, JsonSchema)]