Rules act only on a direct order to Lumi, every path gated (hand reader, Command box); final exam round 5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-23 04:11:27 +09:00
co-authored by Claude Opus 5.5
parent 9456a1290f
commit 35dbb053e3
38 changed files with 2207 additions and 57 deletions
+6 -1
View File
@@ -70,7 +70,12 @@ def plan(text, markers=(), cant=None):
out.append(["talk", p, None])
else:
return None
out = [x for i, x in enumerate(out) if not (i and x[0] == "quick" and x[0::2] == out[i - 1][0::2])]
if re.search(r"비켜|\bmake way\b|\bmove aside\b|\bget out of the way\b", text, re.I) and \
sum(k == "quick" and w[0] == "move" for k, _, w in out) >= 2:
return None # "길 좀 비켜 줘, 오른쪽으로 40cm": one move that way, not two
said = [_rule(p, markers) for _, p, _ in out] # "reach out, reach out to me": one reach
out = [x for i, x in enumerate(out) if not (i and (x[0] == "quick" and x[0::2] == out[i - 1][0::2] or
said[i] and said[i] == said[i - 1]))]
if len(out) < 2:
return None # "wave, wave, wave!": one wave, said with feeling
kinds = [k for k, _, _ in out]