mirror of
https://github.com/garrytan/gstack.git
synced 2026-07-15 20:17:24 +02:00
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:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user