MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / parse_confirm_direction_request

Function parse_confirm_direction_request

agents/master-coordinator/main.py:628–637  ·  view source on GitHub ↗

Parse a pending-direction confirmation command.

(text: str)

Source from the content-addressed store, hash-verified

626
627
628def parse_confirm_direction_request(text: str) -> Optional[str]:
629 """Parse a pending-direction confirmation command."""
630 cleaned = first_meaningful_line(text)
631 if not cleaned:
632 return None
633 match = CONFIRM_DIRECTION_RE.match(cleaned)
634 if not match:
635 return None
636 topic = clean_profile_topic_text(match.group("topic"), strip_domain_suffix=True)
637 return topic or None
638
639
640def normalize_profile_update_topics(topic_texts: List[str], user_id: str) -> Dict[str, Any]:

Callers 1

Calls 2

first_meaningful_lineFunction · 0.85
clean_profile_topic_textFunction · 0.85

Tested by

no test coverage detected