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

Function _canonical_token

mini_claude_code/multi_agent.py:125–127  ·  view source on GitHub ↗

转小写 + 只保留字母数字。源码: lib.rs 的 canonical_tool_token

(text: str)

Source from the content-addressed store, hash-verified

123# ============================================================
124
125def _canonical_token(text: str) -> str:
126 """转小写 + 只保留字母数字。源码: lib.rs 的 canonical_tool_token"""
127 return re.sub(r"[^a-z0-9]", "", text.lower())
128
129
130_SUBAGENT_ALIASES: dict[str, str] = {

Callers 1

normalize_subagent_typeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected