INNER CODE UNIT · Python
dispatcher_routed_slugs
kevinpbuckley/VibeUE · scripts/check_skills_consistency.py:27
def dispatcher_routed_slugs(text):
"""Backticked skill slugs from the Load column of dispatcher table rows.
Rows start with '| **<Area>**'; the Load column is the last cell. Slugs are
lowercase/digits/hyphens only, which excludes toolset names like
`list_toolsets` (underscore) or `PhysicsToolsets` (capitals).
"""
routed = set()
for line in text.splitlines():
if not line.startswith("| **"):
continue
cells = [c.strip() for c in line.split("|")]
if len(cells) < 4:
continue
load_cell = cells[-2]
routed.update(re.findall(r"`([a-z0-9]+(?:-[a-z0-9]+)*)`", load_cell))
return routed