feat: complete Epic 1 production foundation

This commit is contained in:
bsodfather committed 2026-08-25 01:24:11 +03:00
1 parent 767428436d
commit 182bde8ac0
298 files changed
+35711 -5291

No files matched your search

+5 -12
View File
@@ -16,7 +16,7 @@ use crate::{
jsonrpc::{jsonrpc_error, jsonrpc_result, request_id},
manifest::{CALL_TOOL_NAME, SEARCH_TOOLS_NAME, searchable_tools},
session::SessionState,
tool_error::generic_tool_error_contract,
tool_error::{McpControlError, control_tool_error_contract, execution_locale},
transport::{ResponseMode, transport_response},
};
@@ -84,18 +84,11 @@ pub(super) async fn handle_catalog_tool_call(
message,
response_mode,
&session.protocol_version,
generic_tool_error_contract(
"catalog_revision_changed",
format!(
"catalog revision {} is no longer current",
proxy.catalog_revision
),
control_tool_error_contract(
McpControlError::CatalogRevisionChanged,
transport_request_id,
transport_correlation.trace_id().as_str(),
true,
Some(
"Повторите search_tools и вызовите инструмент с новой версией каталога.",
),
execution_locale(message),
),
);
}
@@ -253,7 +246,7 @@ fn handle_search_tools(
}
fn catalog_revision(catalog: &PublishedAgentCatalog) -> String {
format!("agent-version-{}", catalog.agent_version)
catalog.catalog_revision.clone()
}
fn invalid_arguments_response(