Skip to main content

lean_ctx/tools/registered/
mod.rs

1pub mod ctx_agent;
2pub mod ctx_analyze;
3pub mod ctx_architecture;
4pub mod ctx_artifacts;
5pub mod ctx_benchmark;
6pub mod ctx_cache;
7pub mod ctx_call;
8pub mod ctx_callgraph;
9pub mod ctx_checkpoint;
10pub mod ctx_compile;
11pub mod ctx_compose;
12pub mod ctx_compress;
13pub mod ctx_compress_memory;
14pub mod ctx_context;
15pub mod ctx_control;
16pub mod ctx_cost;
17pub mod ctx_dedup;
18pub mod ctx_delta;
19pub mod ctx_discover;
20pub mod ctx_discover_tools;
21pub mod ctx_edit;
22pub mod ctx_execute;
23pub mod ctx_expand;
24pub mod ctx_explore;
25pub mod ctx_feedback;
26pub mod ctx_fill;
27pub mod ctx_gain;
28pub mod ctx_git_read;
29pub mod ctx_glob;
30pub mod ctx_graph;
31pub mod ctx_handoff;
32pub mod ctx_heatmap;
33pub mod ctx_impact;
34pub mod ctx_index;
35pub mod ctx_intent;
36pub mod ctx_knowledge;
37pub mod ctx_ledger;
38pub mod ctx_load_tools;
39pub mod ctx_metrics;
40pub mod ctx_multi_read;
41pub mod ctx_multi_repo;
42pub mod ctx_outline;
43pub mod ctx_overview;
44pub mod ctx_pack;
45pub mod ctx_package;
46pub mod ctx_plan;
47pub mod ctx_plugins;
48pub mod ctx_prefetch;
49pub mod ctx_preload;
50pub mod ctx_proof;
51pub mod ctx_provider;
52pub mod ctx_radar;
53pub mod ctx_read;
54pub mod ctx_refactor;
55pub mod ctx_repomap;
56pub mod ctx_response;
57pub mod ctx_retrieve;
58pub mod ctx_review;
59pub mod ctx_routes;
60pub mod ctx_rules;
61pub mod ctx_search;
62pub mod ctx_semantic_search;
63pub mod ctx_session;
64pub mod ctx_share;
65pub mod ctx_shell;
66pub mod ctx_skillify;
67pub mod ctx_smart_read;
68pub mod ctx_smells;
69pub mod ctx_summary;
70pub mod ctx_symbol;
71pub mod ctx_task;
72pub mod ctx_tools;
73pub mod ctx_transcript_compact;
74pub mod ctx_tree;
75pub mod ctx_url_read;
76pub mod ctx_verify;
77pub mod ctx_workflow;
78pub mod plugin_tool;
79pub mod shell_alias;
80
81/// Resolve a relative path against session state (sync version).
82/// Must be called within `tokio::task::block_in_place`.
83pub(crate) fn resolve_path_sync(
84    session: &crate::core::session::SessionState,
85    raw: &str,
86) -> Result<String, String> {
87    crate::core::path_resolve::resolve_tool_path_with_roots(
88        session.project_root.as_deref(),
89        session.shell_cwd.as_deref(),
90        raw,
91        &session.extra_roots,
92    )
93}
94
95// #168 removed: tool descriptions no longer steer toward ctx_* over native.
96// Replacement guidance lives in AGENTS.md / CLAUDE.md rules files.