perf(models): convert prefix/skill/command tuples to frozensets

Use frozenset for CODEFLASH_AGENT_PREFIXES, CODEFLASH_SKILLS,
and CODEFLASH_COMMANDS for O(1) membership testing.
This commit is contained in:
codeflash[bot] 2026-04-29 02:06:10 -05:00 committed by Kevin Turcios
parent 1e8cbbede4
commit 05186036dd

View file

@ -195,7 +195,7 @@ class SessionDigest:
# Codeflash plugin detection
# ---------------------------------------------------------------------------
CODEFLASH_AGENT_PREFIXES = (
CODEFLASH_AGENT_PREFIXES = frozenset({
"codeflash",
"codeflash-python",
"codeflash-deep",
@ -230,18 +230,18 @@ CODEFLASH_AGENT_PREFIXES = (
"codeflash-java-scan",
"codeflash-java-ci",
"codeflash-java-pr-prep",
)
})
CODEFLASH_SKILLS = (
CODEFLASH_SKILLS = frozenset({
"codeflash-optimize",
"memray-profiling",
)
})
CODEFLASH_COMMANDS = (
CODEFLASH_COMMANDS = frozenset({
"codex-review",
"codex-setup",
"codex-status",
)
})
@attrs.frozen