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

Function merge_hook_feedback

mini_claude_code/runtime.py:217–232  ·  view source on GitHub ↗

源码: conversation.rs:408-424

(
    messages: list[str],
    output: str,
    denied: bool,
)

Source from the content-addressed store, hash-verified

215# ============================================================
216
217def merge_hook_feedback(
218 messages: list[str],
219 output: str,
220 denied: bool,
221) -> str:
222 """源码: conversation.rs:408-424"""
223 if not messages:
224 return output
225
226 sections: list[str] = []
227 if output.strip():
228 sections.append(output)
229
230 label = "Hook feedback (denied)" if denied else "Hook feedback"
231 sections.append(f"{label}:\n{chr(10).join(messages)}")
232 return "\n\n".join(sections)
233
234
235# ============================================================

Callers 1

_process_tool_useMethod · 0.70

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected