( index: number, question: QuestionRequest["questions"][number], )
| 180 | } |
| 181 | |
| 182 | export function openCodeQuestionId( |
| 183 | index: number, |
| 184 | question: QuestionRequest["questions"][number], |
| 185 | ): string { |
| 186 | const header = question.header |
| 187 | .trim() |
| 188 | .toLowerCase() |
| 189 | .replace(/[^a-z0-9_-]+/g, "-"); |
| 190 | return header.length > 0 ? `question-${index}-${header}` : `question-${index}`; |
| 191 | } |
| 192 | |
| 193 | export function toOpenCodeFileParts(input: { |
| 194 | readonly attachments: ReadonlyArray<ChatAttachment> | undefined; |
no outgoing calls
no test coverage detected