MCPcopy Create free account
hub / github.com/Louisym/MiniCC / format_hook_message

Function format_hook_message

rust/crates/runtime/src/conversation.rs:400–406  ·  view source on GitHub ↗
(result: &HookRunResult, fallback: &str)

Source from the content-addressed store, hash-verified

398}
399
400fn format_hook_message(result: &HookRunResult, fallback: &str) -> String {
401 if result.messages().is_empty() {
402 fallback.to_string()
403 } else {
404 result.messages().join("\n")
405 }
406}
407
408fn merge_hook_feedback(messages: &[String], output: String, denied: bool) -> String {
409 if messages.is_empty() {

Callers 1

run_turnMethod · 0.85

Calls 1

messagesMethod · 0.80

Tested by

no test coverage detected