lean_ctx_server/tools/registered/
mod.rs1pub mod ctx_agent;
3pub mod ctx_artifacts;
4pub mod ctx_call;
5pub mod ctx_callgraph;
6pub mod ctx_checkpoint;
7pub mod ctx_compose;
8pub mod ctx_compress;
9pub mod ctx_compress_memory;
10pub mod ctx_context;
11pub mod ctx_control;
12pub mod ctx_cost;
13pub mod ctx_dedup;
14pub mod ctx_delta;
15pub mod ctx_discover;
16pub mod ctx_discover_tools;
17pub mod ctx_doc;
18pub mod ctx_edit;
19pub mod ctx_execute;
20pub mod ctx_expand;
21pub mod ctx_feedback;
22pub mod ctx_gain;
23pub mod ctx_git_read;
24pub mod ctx_glob;
25pub mod ctx_graph;
26pub mod ctx_handoff;
27pub mod ctx_heatmap;
28pub mod ctx_index;
29pub mod ctx_knowledge;
30pub mod ctx_load_tools;
31pub mod ctx_memory;
32pub mod ctx_metrics;
33pub mod ctx_multi_repo;
34pub mod ctx_outline;
35pub mod ctx_pack;
36pub mod ctx_package;
37pub mod ctx_patch;
38pub mod ctx_prefetch;
39pub mod ctx_preload;
40pub mod ctx_proof;
41pub mod ctx_provider;
42pub mod ctx_radar;
43pub mod ctx_read;
44pub(crate) mod ctx_read_batch;
45pub mod ctx_search;
46pub mod ctx_session;
47pub mod ctx_shape;
48pub mod ctx_share;
49pub mod ctx_shell;
50pub(crate) mod ctx_shell_background;
51pub mod ctx_tasks;
52pub mod ctx_tools;
53pub mod ctx_transcript_compact;
54pub mod ctx_tree;
55pub mod ctx_url_read;
56pub mod ctx_verify;
57pub mod ctx_work_graph;
58pub mod shell_alias;
59
60#[cfg(test)]
61mod schema_qa_tests;
62
63pub(crate) fn resolve_path_sync(
69 session: &lean_ctx::core::session::SessionState,
70 raw: &str,
71) -> Result<String, String> {
72 lean_ctx::core::path_resolve::resolve_tool_path_refusing(
73 session.project_root.as_deref(),
74 session.shell_cwd.as_deref(),
75 raw,
76 &session.extra_roots,
77 )
78 .map_err(|refusal| {
79 if let Some(class) = refusal.class {
80 lean_ctx::core::security_events::note_refusals(class, 1);
81 }
82 refusal.message
83 })
84}
85
86