update cursor rule files

This commit is contained in:
BO WEN
2025-04-30 11:46:43 -04:00
parent b561a10c76
commit f6c4b06db8
12 changed files with 246 additions and 110 deletions
+3 -3
View File
@@ -26,11 +26,11 @@ def build_mermaid(start):
return parent and link(parent, get_id(node))
visited.add(node)
if isinstance(node, Flow):
node.start and parent and link(parent, get_id(node.start))
node.start_node and parent and link(parent, get_id(node.start_node))
lines.append(f"\n subgraph sub_flow_{get_id(node)}[{type(node).__name__}]")
node.start and walk(node.start)
node.start_node and walk(node.start_node)
for nxt in node.successors.values():
node.start and walk(nxt, get_id(node.start)) or (parent and link(parent, get_id(nxt))) or walk(nxt)
node.start_node and walk(nxt, get_id(node.start_node)) or (parent and link(parent, get_id(nxt))) or walk(nxt)
lines.append(" end\n")
else:
lines.append(f" {(nid := get_id(node))}['{type(node).__name__}']")