mirror of
https://github.com/openai/codex.git
synced 2026-04-25 15:15:15 +00:00
add ci check for generated python
This commit is contained in:
@@ -141,6 +141,7 @@ class AskForApproval1(StrEnum):
|
||||
|
||||
class Reject(BaseModel):
|
||||
mcp_elicitations: bool
|
||||
request_permissions: bool
|
||||
rules: bool
|
||||
sandbox_approval: bool
|
||||
|
||||
@@ -324,6 +325,12 @@ class PluginInstallClientRequestMethod(RootModel[Literal["plugin/install"]]):
|
||||
)
|
||||
|
||||
|
||||
class PluginUninstallClientRequestMethod(RootModel[Literal["plugin/uninstall"]]):
|
||||
root: Literal["plugin/uninstall"] = Field(
|
||||
..., title="Plugin/uninstallClientRequestMethod"
|
||||
)
|
||||
|
||||
|
||||
class TurnStartClientRequestMethod(RootModel[Literal["turn/start"]]):
|
||||
root: Literal["turn/start"] = Field(..., title="Turn/startClientRequestMethod")
|
||||
|
||||
@@ -2378,6 +2385,11 @@ class PatchChangeKind(
|
||||
root: AddPatchChangeKind | DeletePatchChangeKind | UpdatePatchChangeKind
|
||||
|
||||
|
||||
class PermissionGrantScope(StrEnum):
|
||||
turn = "turn"
|
||||
session = "session"
|
||||
|
||||
|
||||
class PermissionProfile(BaseModel):
|
||||
file_system: FileSystemPermissions | None = None
|
||||
macos: MacOsSeatbeltProfileExtensions | None = None
|
||||
@@ -2421,6 +2433,10 @@ class PluginListParams(BaseModel):
|
||||
)
|
||||
|
||||
|
||||
class PluginUninstallParams(BaseModel):
|
||||
plugin_id: str = Field(..., alias="pluginId")
|
||||
|
||||
|
||||
class ProductSurface(StrEnum):
|
||||
chatgpt = "chatgpt"
|
||||
codex = "codex"
|
||||
@@ -2625,6 +2641,10 @@ class ReasoningTextDeltaNotification(BaseModel):
|
||||
|
||||
class RejectConfig(BaseModel):
|
||||
mcp_elicitations: bool = Field(..., description="Reject MCP elicitation prompts.")
|
||||
request_permissions: bool = Field(
|
||||
...,
|
||||
description="Reject approval prompts related to built-in permission requests.",
|
||||
)
|
||||
rules: bool = Field(
|
||||
..., description="Reject prompts triggered by execpolicy `prompt` rules."
|
||||
)
|
||||
@@ -4699,6 +4719,14 @@ class PluginInstallClientRequest(BaseModel):
|
||||
params: PluginInstallParams
|
||||
|
||||
|
||||
class PluginUninstallClientRequest(BaseModel):
|
||||
id: RequestId
|
||||
method: PluginUninstallClientRequestMethod = Field(
|
||||
..., title="Plugin/uninstallClientRequestMethod"
|
||||
)
|
||||
params: PluginUninstallParams
|
||||
|
||||
|
||||
class TurnInterruptClientRequest(BaseModel):
|
||||
id: RequestId
|
||||
method: TurnInterruptClientRequestMethod = Field(
|
||||
@@ -5686,6 +5714,7 @@ class PermissionsRequestApprovalParams(BaseModel):
|
||||
|
||||
class PermissionsRequestApprovalResponse(BaseModel):
|
||||
permissions: GrantedPermissionProfile
|
||||
scope: PermissionGrantScope | None = "turn"
|
||||
|
||||
|
||||
class PlanItemArg(BaseModel):
|
||||
@@ -6972,6 +7001,7 @@ class ClientRequest(
|
||||
| AppListClientRequest
|
||||
| SkillsConfigWriteClientRequest
|
||||
| PluginInstallClientRequest
|
||||
| PluginUninstallClientRequest
|
||||
| TurnStartClientRequest
|
||||
| TurnSteerClientRequest
|
||||
| TurnInterruptClientRequest
|
||||
@@ -7023,6 +7053,7 @@ class ClientRequest(
|
||||
| AppListClientRequest
|
||||
| SkillsConfigWriteClientRequest
|
||||
| PluginInstallClientRequest
|
||||
| PluginUninstallClientRequest
|
||||
| TurnStartClientRequest
|
||||
| TurnSteerClientRequest
|
||||
| TurnInterruptClientRequest
|
||||
|
||||
Reference in New Issue
Block a user