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

Function format_compact_summary

mini_claude_code/compact.py:309–320  ·  view source on GitHub ↗

源码: compact.rs:38-50

(summary: str)

Source from the content-addressed store, hash-verified

307# ============================================================
308
309def format_compact_summary(summary: str) -> str:
310 """源码: compact.rs:38-50"""
311 without_analysis = strip_tag_block(summary, "analysis")
312 content = extract_tag_block(without_analysis, "summary")
313 if content is not None:
314 formatted = without_analysis.replace(
315 f"<summary>{content}</summary>",
316 f"Summary:\n{content.strip()}",
317 )
318 else:
319 formatted = without_analysis
320 return _collapse_blank_lines(formatted).strip()
321
322
323# ============================================================

Callers 1

compact_sessionFunction · 0.70

Calls 3

strip_tag_blockFunction · 0.70
extract_tag_blockFunction · 0.70
_collapse_blank_linesFunction · 0.70

Tested by

no test coverage detected