Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/clx-core/src/policy/llm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ pub(crate) fn validate_prompt_template(content: &str) -> Result<(), String> {
/// Each file-based prompt must pass `validate_prompt_template()` and
/// `is_file_safe()` checks. If a file fails validation, we fall through
/// to the next tier.
pub(crate) fn load_validator_prompt(cwd: &str, sensitivity: &PromptSensitivity) -> String {
pub fn load_validator_prompt(cwd: &str, sensitivity: &PromptSensitivity) -> String {
// 1. Try per-project prompt
let project_prompt = Path::new(cwd).join(".clx/prompts/validator.txt");
if let Some(content) = try_load_prompt_file(&project_prompt) {
Expand Down
2 changes: 1 addition & 1 deletion crates/clx-core/src/policy/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub use traits::PolicyEvaluator;

pub use cache::{ValidationCache, compute_cache_key};
pub use file_util::ensure_default_rules_file;
pub use llm::DEFAULT_VALIDATOR_PROMPT;
pub use llm::{DEFAULT_VALIDATOR_PROMPT, load_validator_prompt};
pub use matching::glob_match;
pub use mcp::{McpExtraction, extract_mcp_command};
pub use prompts::{PROMPT_HIGH, PROMPT_LOW, PROMPT_STANDARD};
Expand Down
Loading
Loading