cpast-v0.8.0
0.8.0 (2025-02-23)
Breaking
- String modifier syntax now accepts three arguments, instead of two. New format:
S[min,max,charset]
(e.g.,S[1,10,'cpast is awesome']
)
clex_gen
- Now, string modifier accepts escape characters as well like
\n
,\t
,\r
,\\
,\'
,\"
,\0
\a
,\b
,\f
and\v
etc! - Breaking: Modified string modifier syntax to support minimum and maximum length constraints:
- New format:
S[min,max,charset]
(e.g.,S[10,10,@CH_UPPER@]
) - Old format:
S[length,charset]
is now deprecated - This change enables more precise string length control in pattern generation
- New format:
clex_llm
- Switched to
Gemini2_0Flash
model fromGemini1_0
cpast_cli
- Support AI based clex generation using input format and constraints through
cpast ai ...
.GEMINI_API_KEY="<gemini-api-key>" cpast ai --input-format="The first line contains an integer T (number of test cases). Each of the next T lines contains two integers N and M." --constraints="1 ≤ T ≤ 10\n1 ≤ N, M ≤ 10^5"
Full Changelog: cpast-v0.7.1...cpast-v0.8.0