mirror of https://github.com/garrytan/gstack.git
fix: add missing OPENAI_SHORT_DESCRIPTION_LIMIT constant
The merge from main dropped this constant (defined in resolvers/codex-helpers.ts on main's modular version, but needed inline in our monolithic version). Caused CI check-freshness to fail on `--host codex` generation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
49cfdb9cd7
commit
4c413c6f10
|
|
@ -2877,6 +2877,8 @@ function extractNameAndDescription(content: string): { name: string; description
|
||||||
return { name, description };
|
return { name, description };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const OPENAI_SHORT_DESCRIPTION_LIMIT = 120;
|
||||||
|
|
||||||
function condenseOpenAIShortDescription(description: string): string {
|
function condenseOpenAIShortDescription(description: string): string {
|
||||||
const firstParagraph = description.split(/\n\s*\n/)[0] || description;
|
const firstParagraph = description.split(/\n\s*\n/)[0] || description;
|
||||||
const collapsed = firstParagraph.replace(/\s+/g, ' ').trim();
|
const collapsed = firstParagraph.replace(/\s+/g, ' ').trim();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue