Remove dead Codex skill mutation routes
This commit is contained in:
parent
c437a9c41a
commit
1ecae39464
221 changed files with 58696 additions and 59384 deletions
|
|
@ -77,7 +77,6 @@ use codex_app_server_protocol::ReasoningTextDeltaNotification;
|
|||
use codex_app_server_protocol::RequestId;
|
||||
use codex_app_server_protocol::ServerNotification;
|
||||
use codex_app_server_protocol::ServerRequestPayload;
|
||||
use codex_app_server_protocol::SkillsChangedNotification;
|
||||
use codex_app_server_protocol::TerminalInteractionNotification;
|
||||
use codex_app_server_protocol::ThreadItem;
|
||||
use codex_app_server_protocol::ThreadNameUpdatedNotification;
|
||||
|
|
@ -256,15 +255,6 @@ pub(crate) async fn apply_bespoke_event_handling(
|
|||
.await;
|
||||
}
|
||||
}
|
||||
EventMsg::SkillsUpdateAvailable => {
|
||||
if let ApiVersion::V2 = api_version {
|
||||
outgoing
|
||||
.send_server_notification(ServerNotification::SkillsChanged(
|
||||
SkillsChangedNotification {},
|
||||
))
|
||||
.await;
|
||||
}
|
||||
}
|
||||
EventMsg::McpStartupUpdate(update) => {
|
||||
if let ApiVersion::V2 = api_version {
|
||||
let (status, error) = match update.status {
|
||||
|
|
|
|||
|
|
@ -113,7 +113,6 @@ use codex_app_server_protocol::SendAddCreditsNudgeEmailParams;
|
|||
use codex_app_server_protocol::SendAddCreditsNudgeEmailResponse;
|
||||
use codex_app_server_protocol::ServerNotification;
|
||||
use codex_app_server_protocol::ServerRequestResolvedNotification;
|
||||
use codex_app_server_protocol::SkillsConfigWriteParams;
|
||||
use codex_app_server_protocol::SkillsListParams;
|
||||
use codex_app_server_protocol::SkillsListResponse;
|
||||
use codex_app_server_protocol::SortDirection;
|
||||
|
|
@ -998,10 +997,6 @@ impl CodexMessageProcessor {
|
|||
self.skills_list(to_connection_request_id(request_id), params)
|
||||
.await;
|
||||
}
|
||||
ClientRequest::SkillsConfigWrite { request_id, params } => {
|
||||
self.skills_config_write(to_connection_request_id(request_id), params)
|
||||
.await;
|
||||
}
|
||||
ClientRequest::TurnStart { request_id, params } => {
|
||||
self.turn_start(
|
||||
to_connection_request_id(request_id),
|
||||
|
|
@ -6156,18 +6151,6 @@ impl CodexMessageProcessor {
|
|||
self.outgoing.send_error(request_id, error).await;
|
||||
}
|
||||
|
||||
async fn send_codex_product_surface_disabled(
|
||||
&self,
|
||||
request_id: ConnectionRequestId,
|
||||
method: &str,
|
||||
) {
|
||||
self.send_invalid_request_error(
|
||||
request_id,
|
||||
format!("{method} is disabled in Epiphany's vestigial Codex organ"),
|
||||
)
|
||||
.await;
|
||||
}
|
||||
|
||||
async fn wait_for_thread_shutdown(thread: &Arc<CodexThread>) -> ThreadShutdownResult {
|
||||
match tokio::time::timeout(Duration::from_secs(10), thread.shutdown_and_wait()).await {
|
||||
Ok(Ok(())) => ThreadShutdownResult::Complete,
|
||||
|
|
@ -6325,15 +6308,6 @@ impl CodexMessageProcessor {
|
|||
.await;
|
||||
}
|
||||
|
||||
async fn skills_config_write(
|
||||
&self,
|
||||
request_id: ConnectionRequestId,
|
||||
_params: SkillsConfigWriteParams,
|
||||
) {
|
||||
self.send_codex_product_surface_disabled(request_id, "skills/config/write")
|
||||
.await;
|
||||
}
|
||||
|
||||
async fn turn_start(
|
||||
&self,
|
||||
request_id: ConnectionRequestId,
|
||||
|
|
|
|||
Reference in a new issue