Keep context request cargo core-shaped
This commit is contained in:
parent
45ad254bab
commit
30bc373b2f
5 changed files with 17 additions and 12 deletions
|
|
@ -1,7 +1,9 @@
|
|||
use std::path::Path;
|
||||
|
||||
use codex_app_server_protocol::*;
|
||||
use epiphany_core::EpiphanyContextParams;
|
||||
use epiphany_core::EpiphanyDistillInput;
|
||||
use epiphany_core::EpiphanyGraphQuery;
|
||||
use epiphany_core::EpiphanyMapProposalInput;
|
||||
use epiphany_core::EpiphanySceneInput;
|
||||
use epiphany_core::EpiphanyTokenUsageSnapshot;
|
||||
|
|
@ -11,8 +13,6 @@ use epiphany_core::propose_map_update;
|
|||
use epiphany_state_model::EpiphanyRetrievalState;
|
||||
use epiphany_state_model::EpiphanyThreadState;
|
||||
|
||||
use crate::context::map_core_epiphany_context_params;
|
||||
use crate::context::map_core_epiphany_graph_query;
|
||||
use crate::context::map_epiphany_context;
|
||||
use crate::context::map_epiphany_graph_query;
|
||||
use crate::context::map_epiphany_planning;
|
||||
|
|
@ -117,11 +117,9 @@ pub fn map_epiphany_context_response(
|
|||
thread_id: String,
|
||||
loaded: bool,
|
||||
state: Option<&EpiphanyThreadState>,
|
||||
params: &ThreadEpiphanyContextParams,
|
||||
params: &EpiphanyContextParams,
|
||||
) -> ThreadEpiphanyContextResponse {
|
||||
let core_params = map_core_epiphany_context_params(params);
|
||||
let (state_status, state_revision, context, missing) =
|
||||
map_epiphany_context(state, &core_params);
|
||||
let (state_status, state_revision, context, missing) = map_epiphany_context(state, params);
|
||||
ThreadEpiphanyContextResponse {
|
||||
thread_id,
|
||||
source: if loaded {
|
||||
|
|
@ -140,11 +138,10 @@ pub fn map_epiphany_graph_query_response(
|
|||
thread_id: String,
|
||||
loaded: bool,
|
||||
state: Option<&EpiphanyThreadState>,
|
||||
query: &ThreadEpiphanyGraphQuery,
|
||||
query: &EpiphanyGraphQuery,
|
||||
) -> ThreadEpiphanyGraphQueryResponse {
|
||||
let core_query = map_core_epiphany_graph_query(query);
|
||||
let (state_status, state_revision, graph, frontier, checkpoint, matched, missing) =
|
||||
map_epiphany_graph_query(state, &core_query);
|
||||
map_epiphany_graph_query(state, query);
|
||||
ThreadEpiphanyGraphQueryResponse {
|
||||
thread_id,
|
||||
source: if loaded {
|
||||
|
|
|
|||
Reference in a new issue