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:
parent
1e8cbbede4
commit
05186036dd
1 changed files with 6 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue