(name: string | undefined)
| 374 | } |
| 375 | |
| 376 | function isAutoDesignName(name: string | undefined): boolean { |
| 377 | return name === 'Untitled design' || /^Untitled design \d+$/.test(name ?? ''); |
| 378 | } |
| 379 | |
| 380 | function autoTitleFromPrompt(prompt: string): string { |
| 381 | const condensed = prompt.replace(/\s+/g, ' ').trim(); |
no outgoing calls
no test coverage detected