@taiga-ui/mcp 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -0
- package/dist/schemas/doc-types.js +2 -0
- package/dist/schemas/doc-types.js.map +1 -0
- package/dist/server/fetch.js +33 -0
- package/dist/server/fetch.js.map +1 -0
- package/dist/server/server.js +55 -0
- package/dist/server/server.js.map +1 -0
- package/dist/tools/get-component-example.js +37 -0
- package/dist/tools/get-component-example.js.map +1 -0
- package/dist/tools/get-list-components.js +32 -0
- package/dist/tools/get-list-components.js.map +1 -0
- package/dist/tools/get-migration-guide.js +76 -0
- package/dist/tools/get-migration-guide.js.map +1 -0
- package/dist/tools/get-overview.js +102 -0
- package/dist/tools/get-overview.js.map +1 -0
- package/dist/tools/index.js +11 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/utils/extract-header.js +405 -0
- package/dist/utils/extract-header.js.map +1 -0
- package/dist/utils/extract-migration-guide.js +187 -0
- package/dist/utils/extract-migration-guide.js.map +1 -0
- package/dist/utils/find-section.js +97 -0
- package/dist/utils/find-section.js.map +1 -0
- package/dist/utils/list-components.js +19 -0
- package/dist/utils/list-components.js.map +1 -0
- package/dist/utils/logger.js +10 -0
- package/dist/utils/logger.js.map +1 -0
- package/dist/utils/parse-content.js +60 -0
- package/dist/utils/parse-content.js.map +1 -0
- package/dist/utils/query-results.js +42 -0
- package/dist/utils/query-results.js.map +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1,405 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Extracts the documentation header from raw content.
|
|
3
|
+
* Header is everything before the first "# components/" heading.
|
|
4
|
+
*/
|
|
5
|
+
export function extractHeaderContent(rawContent) {
|
|
6
|
+
const lines = rawContent.split(/\r?\n/);
|
|
7
|
+
const headerLines = [];
|
|
8
|
+
for (const line of lines) {
|
|
9
|
+
if (/^#\s+components\//.test(line)) {
|
|
10
|
+
break;
|
|
11
|
+
}
|
|
12
|
+
headerLines.push(line);
|
|
13
|
+
}
|
|
14
|
+
return headerLines.join('\n').trim();
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Finds the line number where components section starts.
|
|
18
|
+
*/
|
|
19
|
+
export function findComponentsSectionStart(rawContent) {
|
|
20
|
+
const lines = rawContent.split(/\r?\n/);
|
|
21
|
+
for (let i = 0; i < lines.length; i++) {
|
|
22
|
+
const line = lines[i];
|
|
23
|
+
if (line && /^#\s+components\//.test(line)) {
|
|
24
|
+
return i;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return lines.length;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Parses code blocks from content lines.
|
|
31
|
+
*/
|
|
32
|
+
function extractCodeBlocks(content) {
|
|
33
|
+
const codeBlocks = [];
|
|
34
|
+
const lines = content.split('\n');
|
|
35
|
+
let inCodeBlock = false;
|
|
36
|
+
let currentLang = '';
|
|
37
|
+
let currentCode = [];
|
|
38
|
+
for (const line of lines) {
|
|
39
|
+
if (line.startsWith('```')) {
|
|
40
|
+
if (inCodeBlock) {
|
|
41
|
+
// End of code block
|
|
42
|
+
codeBlocks.push({
|
|
43
|
+
language: currentLang,
|
|
44
|
+
code: currentCode.join('\n').trim(),
|
|
45
|
+
});
|
|
46
|
+
currentCode = [];
|
|
47
|
+
inCodeBlock = false;
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
// Start of code block
|
|
51
|
+
currentLang = line.slice(3).trim() || 'plaintext';
|
|
52
|
+
inCodeBlock = true;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
else if (inCodeBlock) {
|
|
56
|
+
currentCode.push(line);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
return codeBlocks;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Extracts plain text content (removes markdown formatting, code blocks, etc).
|
|
63
|
+
*/
|
|
64
|
+
function extractPlainContent(content) {
|
|
65
|
+
const lines = content.split('\n');
|
|
66
|
+
const plainLines = [];
|
|
67
|
+
let inCodeBlock = false;
|
|
68
|
+
for (const line of lines) {
|
|
69
|
+
// Skip code blocks
|
|
70
|
+
if (line.startsWith('```')) {
|
|
71
|
+
inCodeBlock = !inCodeBlock;
|
|
72
|
+
continue;
|
|
73
|
+
}
|
|
74
|
+
if (inCodeBlock) {
|
|
75
|
+
continue;
|
|
76
|
+
}
|
|
77
|
+
// Skip empty lines
|
|
78
|
+
if (!line.trim()) {
|
|
79
|
+
continue;
|
|
80
|
+
}
|
|
81
|
+
// Skip markdown headings (they're already captured)
|
|
82
|
+
if (/^#{1,6}\s+/.test(line)) {
|
|
83
|
+
continue;
|
|
84
|
+
}
|
|
85
|
+
// Skip horizontal rules
|
|
86
|
+
if (/^-{3,}\s*$/.test(line)) {
|
|
87
|
+
continue;
|
|
88
|
+
}
|
|
89
|
+
// Skip blockquotes with **Critical** or **Auto-generated** (already extracted)
|
|
90
|
+
if (line.includes('**Critical**:') || line.includes('**Auto-generated**:')) {
|
|
91
|
+
continue;
|
|
92
|
+
}
|
|
93
|
+
// Clean up other blockquotes
|
|
94
|
+
let cleaned = line.replace(/^>\s*/, '').trim();
|
|
95
|
+
// Remove bold/italic markers
|
|
96
|
+
cleaned = cleaned.replaceAll(/\*\*([^*]+)\*\*/g, '$1');
|
|
97
|
+
cleaned = cleaned.replaceAll(/\*([^*]+)\*/g, '$1');
|
|
98
|
+
// Remove inline code markers
|
|
99
|
+
cleaned = cleaned.replaceAll(/`([^`]+)`/g, '$1');
|
|
100
|
+
if (cleaned) {
|
|
101
|
+
plainLines.push(cleaned);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
return plainLines;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Parses a section into structured data.
|
|
108
|
+
*/
|
|
109
|
+
function parseSection(content) {
|
|
110
|
+
const lines = content.split('\n');
|
|
111
|
+
const subsections = [];
|
|
112
|
+
const description = [];
|
|
113
|
+
const criticalNotices = [];
|
|
114
|
+
let title = '';
|
|
115
|
+
// Find all headings (both markdown # and **bold:** patterns)
|
|
116
|
+
const headings = [];
|
|
117
|
+
for (let i = 0; i < lines.length; i++) {
|
|
118
|
+
const line = lines[i];
|
|
119
|
+
if (!line) {
|
|
120
|
+
continue;
|
|
121
|
+
}
|
|
122
|
+
// Extract title from first heading
|
|
123
|
+
const h1Match = /^#\s+([^#]\S.*)$/.exec(line);
|
|
124
|
+
if (h1Match?.[1] && !title) {
|
|
125
|
+
title = h1Match[1].trim();
|
|
126
|
+
headings.push({ line: i, level: 1, title: h1Match[1].trim() });
|
|
127
|
+
continue;
|
|
128
|
+
}
|
|
129
|
+
// Extract subsections (##, ###, etc)
|
|
130
|
+
const hMatch = /^(#{2,6})\s+(\S.*)$/.exec(line);
|
|
131
|
+
if (hMatch?.[1] && hMatch[2]) {
|
|
132
|
+
const level = hMatch[1].length;
|
|
133
|
+
headings.push({ line: i, level, title: hMatch[2].trim() });
|
|
134
|
+
continue;
|
|
135
|
+
}
|
|
136
|
+
// Extract **Bold:** headings (treat as level 2)
|
|
137
|
+
const boldMatch = /^\*\*(.+):\*\*$/.exec(line);
|
|
138
|
+
if (boldMatch?.[1]) {
|
|
139
|
+
headings.push({ line: i, level: 2, title: `${boldMatch[1].trim()}:` });
|
|
140
|
+
}
|
|
141
|
+
// Extract critical notices
|
|
142
|
+
if (line.startsWith('> **Critical**:')) {
|
|
143
|
+
const notice = line.replace(/^>\s*\*\*Critical\*\*:\s*/, '').trim();
|
|
144
|
+
if (notice) {
|
|
145
|
+
criticalNotices.push(notice);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
// Extract description (content before first subsection)
|
|
150
|
+
if (headings.length > 0 && headings[0]) {
|
|
151
|
+
const firstSubsectionLine = headings.find((h) => h.level > 1)?.line;
|
|
152
|
+
const descEnd = firstSubsectionLine ?? lines.length;
|
|
153
|
+
const descContent = lines.slice(headings[0].line + 1, descEnd).join('\n');
|
|
154
|
+
description.push(...extractPlainContent(descContent));
|
|
155
|
+
}
|
|
156
|
+
// Parse subsections - group bold headings under level-3, level-3 under level-2
|
|
157
|
+
let currentSubsection = null;
|
|
158
|
+
let currentItem = null;
|
|
159
|
+
let currentGroup = null;
|
|
160
|
+
const pushCurrentItem = () => {
|
|
161
|
+
if (!currentItem || !currentSubsection) {
|
|
162
|
+
return;
|
|
163
|
+
}
|
|
164
|
+
if (currentItem.content.length > 0 ||
|
|
165
|
+
currentItem.code ||
|
|
166
|
+
(currentItem.sections && currentItem.sections.length > 0)) {
|
|
167
|
+
currentSubsection.items = currentSubsection.items || [];
|
|
168
|
+
currentSubsection.items.push(currentItem);
|
|
169
|
+
}
|
|
170
|
+
currentItem = null;
|
|
171
|
+
};
|
|
172
|
+
const pushCurrentGroup = () => {
|
|
173
|
+
if (!currentGroup || !currentSubsection) {
|
|
174
|
+
return;
|
|
175
|
+
}
|
|
176
|
+
if (currentGroup.content.length > 0 ||
|
|
177
|
+
(currentGroup.sections && currentGroup.sections.length > 0)) {
|
|
178
|
+
currentSubsection.items = currentSubsection.items || [];
|
|
179
|
+
currentSubsection.items.push(currentGroup);
|
|
180
|
+
}
|
|
181
|
+
currentGroup = null;
|
|
182
|
+
};
|
|
183
|
+
const addSectionToItem = (item, sectionItem, plainContent) => {
|
|
184
|
+
item.sections = item.sections || [];
|
|
185
|
+
item.sections.push(sectionItem);
|
|
186
|
+
if (plainContent.length > 0) {
|
|
187
|
+
item.content.push(...plainContent);
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
for (let i = 1; i < headings.length; i++) {
|
|
191
|
+
const current = headings[i];
|
|
192
|
+
if (!current) {
|
|
193
|
+
continue;
|
|
194
|
+
}
|
|
195
|
+
const start = current.line;
|
|
196
|
+
const end = headings[i + 1]?.line ?? lines.length;
|
|
197
|
+
const subsectionContent = lines.slice(start + 1, end).join('\n');
|
|
198
|
+
// Level 2 heading (##) - create new subsection
|
|
199
|
+
if (current.level === 2 && !current.title.endsWith(':')) {
|
|
200
|
+
// Save previous subsection and item (only if they have content)
|
|
201
|
+
pushCurrentItem();
|
|
202
|
+
pushCurrentGroup();
|
|
203
|
+
if (currentSubsection) {
|
|
204
|
+
// Only push if has content
|
|
205
|
+
if (currentSubsection.content.length > 0 ||
|
|
206
|
+
(currentSubsection.sections &&
|
|
207
|
+
currentSubsection.sections.length > 0) ||
|
|
208
|
+
(currentSubsection.items && currentSubsection.items.length > 0)) {
|
|
209
|
+
subsections.push(currentSubsection);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
const [block] = extractCodeBlocks(subsectionContent);
|
|
213
|
+
const subsectionSections = block
|
|
214
|
+
? [
|
|
215
|
+
{
|
|
216
|
+
section: current.title,
|
|
217
|
+
code: block.code,
|
|
218
|
+
},
|
|
219
|
+
]
|
|
220
|
+
: [];
|
|
221
|
+
currentSubsection = {
|
|
222
|
+
title: current.title,
|
|
223
|
+
content: extractPlainContent(subsectionContent),
|
|
224
|
+
sections: subsectionSections,
|
|
225
|
+
items: [],
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
// Level 3 heading (###) - create new nested item
|
|
229
|
+
else if (current.level === 3 && !current.title.endsWith(':')) {
|
|
230
|
+
const plainContent = extractPlainContent(subsectionContent);
|
|
231
|
+
const codeBlocks = extractCodeBlocks(subsectionContent);
|
|
232
|
+
const code = codeBlocks.length > 0 ? codeBlocks[0]?.code : undefined;
|
|
233
|
+
if (currentGroup && currentSubsection) {
|
|
234
|
+
const sectionItem = {
|
|
235
|
+
section: current.title,
|
|
236
|
+
code,
|
|
237
|
+
};
|
|
238
|
+
currentGroup.sections = currentGroup.sections || [];
|
|
239
|
+
currentGroup.sections.push(sectionItem);
|
|
240
|
+
if (plainContent.length > 0) {
|
|
241
|
+
currentGroup.content.push(...plainContent);
|
|
242
|
+
}
|
|
243
|
+
continue;
|
|
244
|
+
}
|
|
245
|
+
// Save previous item (only if it has content or sections)
|
|
246
|
+
pushCurrentItem();
|
|
247
|
+
currentItem = {
|
|
248
|
+
title: current.title,
|
|
249
|
+
content: plainContent,
|
|
250
|
+
...(code ? { code } : {}),
|
|
251
|
+
sections: [],
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
// Bold heading (ends with :) - add to current context
|
|
255
|
+
else if (current.title.endsWith(':')) {
|
|
256
|
+
const codeBlocks = extractCodeBlocks(subsectionContent);
|
|
257
|
+
const code = codeBlocks.length > 0 ? codeBlocks[0]?.code : undefined;
|
|
258
|
+
const plainContent = extractPlainContent(subsectionContent);
|
|
259
|
+
const nextHeading = headings[i + 1];
|
|
260
|
+
if (currentSubsection && !currentItem && nextHeading?.level === 3) {
|
|
261
|
+
pushCurrentGroup();
|
|
262
|
+
currentGroup = {
|
|
263
|
+
title: current.title.replace(/:\s*$/, ''),
|
|
264
|
+
content: plainContent,
|
|
265
|
+
...(code ? { code } : {}),
|
|
266
|
+
sections: [],
|
|
267
|
+
};
|
|
268
|
+
currentItem = null;
|
|
269
|
+
}
|
|
270
|
+
else {
|
|
271
|
+
const sectionItem = {
|
|
272
|
+
section: current.title,
|
|
273
|
+
code,
|
|
274
|
+
};
|
|
275
|
+
if (currentItem) {
|
|
276
|
+
addSectionToItem(currentItem, sectionItem, plainContent);
|
|
277
|
+
continue;
|
|
278
|
+
}
|
|
279
|
+
if (currentSubsection) {
|
|
280
|
+
currentSubsection.sections = currentSubsection.sections || [];
|
|
281
|
+
currentSubsection.sections.push(sectionItem);
|
|
282
|
+
continue;
|
|
283
|
+
}
|
|
284
|
+
// Standalone bold heading
|
|
285
|
+
subsections.push({
|
|
286
|
+
title: current.title,
|
|
287
|
+
content: plainContent,
|
|
288
|
+
sections: code ? [sectionItem] : undefined,
|
|
289
|
+
});
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
// Other headings - handle as needed
|
|
293
|
+
else {
|
|
294
|
+
pushCurrentItem();
|
|
295
|
+
pushCurrentGroup();
|
|
296
|
+
if (currentSubsection) {
|
|
297
|
+
subsections.push(currentSubsection);
|
|
298
|
+
currentSubsection = null;
|
|
299
|
+
}
|
|
300
|
+
const plainContent = extractPlainContent(subsectionContent);
|
|
301
|
+
const codeBlocks = extractCodeBlocks(subsectionContent);
|
|
302
|
+
subsections.push({
|
|
303
|
+
title: current.title,
|
|
304
|
+
content: plainContent,
|
|
305
|
+
sections: codeBlocks.length > 0
|
|
306
|
+
? [{ section: current.title, code: codeBlocks[0]?.code }]
|
|
307
|
+
: undefined,
|
|
308
|
+
});
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
// Push last item/group and subsection (only if they have content)
|
|
312
|
+
pushCurrentItem();
|
|
313
|
+
pushCurrentGroup();
|
|
314
|
+
if (currentSubsection) {
|
|
315
|
+
// Only push subsection if it has content, sections, or items
|
|
316
|
+
if (currentSubsection.content.length > 0 ||
|
|
317
|
+
(currentSubsection.sections && currentSubsection.sections.length > 0) ||
|
|
318
|
+
(currentSubsection.items && currentSubsection.items.length > 0)) {
|
|
319
|
+
subsections.push(currentSubsection);
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
// Special handling for .md files: if no subsections were created but there's code content
|
|
323
|
+
// (typical for installation guide files), create a subsection with the code
|
|
324
|
+
if (subsections.length === 0 && headings.length === 1 && headings[0]) {
|
|
325
|
+
// Get content after the title heading
|
|
326
|
+
const contentAfterTitle = lines.slice(headings[0].line + 1).join('\n');
|
|
327
|
+
const codeBlocks = extractCodeBlocks(contentAfterTitle);
|
|
328
|
+
if (codeBlocks.length > 0 && codeBlocks[0]) {
|
|
329
|
+
// Create a subsection with code directly in content
|
|
330
|
+
subsections.push({
|
|
331
|
+
title: '', // Empty title for direct code under h1
|
|
332
|
+
content: [codeBlocks[0].code], // Put code as single string in content
|
|
333
|
+
});
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
const descriptionText = description.join('\n');
|
|
337
|
+
return {
|
|
338
|
+
title,
|
|
339
|
+
description: descriptionText || '',
|
|
340
|
+
criticalNotices,
|
|
341
|
+
subsections,
|
|
342
|
+
};
|
|
343
|
+
}
|
|
344
|
+
/**
|
|
345
|
+
* Parses the header content into fully structured JSON.
|
|
346
|
+
*/
|
|
347
|
+
export function parseHeaderSections(headerContent) {
|
|
348
|
+
const lines = headerContent.split(/\r?\n/);
|
|
349
|
+
const sections = [];
|
|
350
|
+
const title = 'Taiga UI - Complete Documentation';
|
|
351
|
+
// Find main sections (level-1 headings)
|
|
352
|
+
const sectionIndices = [];
|
|
353
|
+
for (let i = 0; i < lines.length; i++) {
|
|
354
|
+
const line = lines[i];
|
|
355
|
+
if (!line) {
|
|
356
|
+
continue;
|
|
357
|
+
}
|
|
358
|
+
// Level-1 heading
|
|
359
|
+
const h1Match = /^#\s+([^#]\S.*)$/.exec(line);
|
|
360
|
+
if (h1Match?.[1]) {
|
|
361
|
+
sectionIndices.push({
|
|
362
|
+
line: i,
|
|
363
|
+
title: h1Match[1].trim(),
|
|
364
|
+
});
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
// Parse each section
|
|
368
|
+
for (let i = 0; i < sectionIndices.length; i++) {
|
|
369
|
+
const currentSection = sectionIndices[i];
|
|
370
|
+
if (!currentSection) {
|
|
371
|
+
continue;
|
|
372
|
+
}
|
|
373
|
+
const start = currentSection.line;
|
|
374
|
+
const end = sectionIndices[i + 1]?.line ?? lines.length;
|
|
375
|
+
const sectionContent = lines.slice(start, end).join('\n');
|
|
376
|
+
const parsedSection = parseSection(sectionContent);
|
|
377
|
+
sections.push(parsedSection);
|
|
378
|
+
}
|
|
379
|
+
const compactSections = sections.map((section) => {
|
|
380
|
+
const hasMarkdownSubsections = section.subsections.some((subsection) => subsection.title.endsWith('.md'));
|
|
381
|
+
return hasMarkdownSubsections
|
|
382
|
+
? {
|
|
383
|
+
...section,
|
|
384
|
+
subsections: section.subsections.map((subsection) => {
|
|
385
|
+
const redundantSingleCodeSection = subsection.content.length === 0 &&
|
|
386
|
+
!subsection.items?.length &&
|
|
387
|
+
subsection.sections?.length === 1 &&
|
|
388
|
+
subsection.sections[0]?.section === subsection.title &&
|
|
389
|
+
Boolean(subsection.sections[0].code);
|
|
390
|
+
return redundantSingleCodeSection
|
|
391
|
+
? {
|
|
392
|
+
title: subsection.title,
|
|
393
|
+
content: [subsection.sections?.[0]?.code ?? ''],
|
|
394
|
+
}
|
|
395
|
+
: subsection;
|
|
396
|
+
}),
|
|
397
|
+
}
|
|
398
|
+
: section;
|
|
399
|
+
});
|
|
400
|
+
return {
|
|
401
|
+
title,
|
|
402
|
+
sections: compactSections,
|
|
403
|
+
};
|
|
404
|
+
}
|
|
405
|
+
//# sourceMappingURL=extract-header.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extract-header.js","sourceRoot":"","sources":["../../src/utils/extract-header.ts"],"names":[],"mappings":"AA+BA;;;GAGG;AACH,MAAM,UAAU,oBAAoB,CAAC,UAAkB;IACnD,MAAM,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IACxC,MAAM,WAAW,GAAa,EAAE,CAAC;IAEjC,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACvB,IAAI,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;YACjC,MAAM;QACV,CAAC;QAED,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC;IAED,OAAO,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,CAAC;AACzC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,0BAA0B,CAAC,UAAkB;IACzD,MAAM,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAExC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACpC,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;QAEtB,IAA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|
1
|
+
export function extractMigrationGuideContent(rawContent) {
|
|
2
|
+
if (!rawContent.trim()) {
|
|
3
|
+
return undefined;
|
|
4
|
+
}
|
|
5
|
+
const lines = rawContent.split(/\r?\n/);
|
|
6
|
+
let startIndex = -1;
|
|
7
|
+
let endIndex = lines.length;
|
|
8
|
+
const migrationGuideRegex = /^#\s+Migration\s+Guide/i;
|
|
9
|
+
const componentsRegex = /^#\s+components\//;
|
|
10
|
+
for (let i = 0; i < lines.length; i++) {
|
|
11
|
+
const line = lines[i];
|
|
12
|
+
if (!line) {
|
|
13
|
+
continue;
|
|
14
|
+
}
|
|
15
|
+
if (line === '---' && migrationGuideRegex.exec(lines[i + 1] ?? '')) {
|
|
16
|
+
startIndex = i;
|
|
17
|
+
continue;
|
|
18
|
+
}
|
|
19
|
+
if (startIndex !== -1 && componentsRegex.exec(line)) {
|
|
20
|
+
endIndex = i;
|
|
21
|
+
break;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return startIndex === -1
|
|
25
|
+
? undefined
|
|
26
|
+
: lines.slice(startIndex, endIndex).join('\n').trim();
|
|
27
|
+
}
|
|
28
|
+
export function parseMigrationGuide(migrationContent) {
|
|
29
|
+
const lines = migrationContent.split(/\r?\n/);
|
|
30
|
+
let title = 'Migration Guide';
|
|
31
|
+
const introduction = [];
|
|
32
|
+
const sections = [];
|
|
33
|
+
let currentSection = null;
|
|
34
|
+
let currentSubsection = null;
|
|
35
|
+
let inCodeBlock = false;
|
|
36
|
+
let inHtmlComment = false;
|
|
37
|
+
let currentCode = [];
|
|
38
|
+
const appendCode = (code) => {
|
|
39
|
+
if (currentSubsection) {
|
|
40
|
+
currentSubsection.codeBlocks = currentSubsection.codeBlocks || [];
|
|
41
|
+
currentSubsection.codeBlocks.push(code);
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
if (currentSection) {
|
|
45
|
+
currentSection.codeBlocks = currentSection.codeBlocks || [];
|
|
46
|
+
currentSection.codeBlocks.push(code);
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
const pushCurrentSubsection = () => {
|
|
50
|
+
if (!currentSubsection || !currentSection) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
if (currentSubsection.content.length > 0 ||
|
|
54
|
+
(currentSubsection.codeBlocks && currentSubsection.codeBlocks.length > 0)) {
|
|
55
|
+
currentSection.subsections = currentSection.subsections || [];
|
|
56
|
+
currentSection.subsections.push(currentSubsection);
|
|
57
|
+
}
|
|
58
|
+
currentSubsection = null;
|
|
59
|
+
};
|
|
60
|
+
const pushCurrentSection = () => {
|
|
61
|
+
if (!currentSection) {
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
pushCurrentSubsection();
|
|
65
|
+
if (currentSection.content.length > 0 ||
|
|
66
|
+
(currentSection.codeBlocks && currentSection.codeBlocks.length > 0) ||
|
|
67
|
+
(currentSection.subsections && currentSection.subsections.length > 0)) {
|
|
68
|
+
sections.push(currentSection);
|
|
69
|
+
}
|
|
70
|
+
currentSection = null;
|
|
71
|
+
};
|
|
72
|
+
for (const line of lines) {
|
|
73
|
+
if (line.startsWith('```')) {
|
|
74
|
+
if (inCodeBlock) {
|
|
75
|
+
inCodeBlock = false;
|
|
76
|
+
const code = currentCode.join('\n');
|
|
77
|
+
if (code || currentCode.length > 0) {
|
|
78
|
+
appendCode(code);
|
|
79
|
+
}
|
|
80
|
+
currentCode = [];
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
inCodeBlock = true;
|
|
84
|
+
}
|
|
85
|
+
continue;
|
|
86
|
+
}
|
|
87
|
+
if (inCodeBlock) {
|
|
88
|
+
currentCode.push(line);
|
|
89
|
+
continue;
|
|
90
|
+
}
|
|
91
|
+
if (inHtmlComment) {
|
|
92
|
+
if (line.includes('-->')) {
|
|
93
|
+
inHtmlComment = false;
|
|
94
|
+
}
|
|
95
|
+
continue;
|
|
96
|
+
}
|
|
97
|
+
if (line.startsWith('<!--')) {
|
|
98
|
+
inHtmlComment = !line.includes('-->');
|
|
99
|
+
continue;
|
|
100
|
+
}
|
|
101
|
+
if (!line || line === '---') {
|
|
102
|
+
continue;
|
|
103
|
+
}
|
|
104
|
+
const h1Match = /^# ([^#\n]+)$/.exec(line);
|
|
105
|
+
if (h1Match?.[1]) {
|
|
106
|
+
pushCurrentSection();
|
|
107
|
+
title = h1Match[1].trim();
|
|
108
|
+
continue;
|
|
109
|
+
}
|
|
110
|
+
const h2Match = /^## ([^#\n]+)$/.exec(line);
|
|
111
|
+
if (h2Match?.[1]) {
|
|
112
|
+
pushCurrentSection();
|
|
113
|
+
currentSection = {
|
|
114
|
+
title: h2Match[1].trim(),
|
|
115
|
+
content: [],
|
|
116
|
+
};
|
|
117
|
+
continue;
|
|
118
|
+
}
|
|
119
|
+
const h3Match = /^### ([^#\n]+)$/.exec(line);
|
|
120
|
+
if (h3Match?.[1]) {
|
|
121
|
+
pushCurrentSubsection();
|
|
122
|
+
currentSubsection = {
|
|
123
|
+
title: h3Match[1].trim(),
|
|
124
|
+
content: [],
|
|
125
|
+
};
|
|
126
|
+
continue;
|
|
127
|
+
}
|
|
128
|
+
if (line.startsWith('>')) {
|
|
129
|
+
const cleaned = line.replace(/^>\s*/, '').trim();
|
|
130
|
+
if (!cleaned) {
|
|
131
|
+
continue;
|
|
132
|
+
}
|
|
133
|
+
if (currentSubsection) {
|
|
134
|
+
currentSubsection.content.push(cleaned);
|
|
135
|
+
}
|
|
136
|
+
else if (currentSection) {
|
|
137
|
+
currentSection.content.push(cleaned);
|
|
138
|
+
}
|
|
139
|
+
else {
|
|
140
|
+
introduction.push(cleaned);
|
|
141
|
+
}
|
|
142
|
+
continue;
|
|
143
|
+
}
|
|
144
|
+
if (line.startsWith('- ')) {
|
|
145
|
+
const cleaned = line.slice(2).trim();
|
|
146
|
+
if (!cleaned) {
|
|
147
|
+
continue;
|
|
148
|
+
}
|
|
149
|
+
if (currentSubsection) {
|
|
150
|
+
currentSubsection.content.push(`- ${cleaned}`);
|
|
151
|
+
}
|
|
152
|
+
else if (currentSection) {
|
|
153
|
+
currentSection.content.push(`- ${cleaned}`);
|
|
154
|
+
}
|
|
155
|
+
else {
|
|
156
|
+
introduction.push(`- ${cleaned}`);
|
|
157
|
+
}
|
|
158
|
+
continue;
|
|
159
|
+
}
|
|
160
|
+
if (line.startsWith('---')) {
|
|
161
|
+
continue;
|
|
162
|
+
}
|
|
163
|
+
const cleaned = line.trim();
|
|
164
|
+
if (cleaned) {
|
|
165
|
+
if (currentSubsection) {
|
|
166
|
+
currentSubsection.content.push(cleaned);
|
|
167
|
+
}
|
|
168
|
+
else if (currentSection) {
|
|
169
|
+
currentSection.content.push(cleaned);
|
|
170
|
+
}
|
|
171
|
+
else {
|
|
172
|
+
introduction.push(cleaned);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
if (inCodeBlock && currentCode.length > 0) {
|
|
177
|
+
appendCode(currentCode.join('\n'));
|
|
178
|
+
}
|
|
179
|
+
pushCurrentSubsection();
|
|
180
|
+
pushCurrentSection();
|
|
181
|
+
return {
|
|
182
|
+
title,
|
|
183
|
+
introduction,
|
|
184
|
+
sections,
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
//# sourceMappingURL=extract-migration-guide.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extract-migration-guide.js","sourceRoot":"","sources":["../../src/utils/extract-migration-guide.ts"],"names":[],"mappings":"AAmBA,MAAM,UAAU,4BAA4B,CAAC,UAAkB;IAC3D,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,EAAE,CAAC;QACrB,OAAO,SAAS,CAAC;IACrB,CAAC;IAED,MAAM,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IACxC,IAAI,UAAU,GAAG,CAAC,CAAC,CAAC;IACpB,IAAI,QAAQ,GAAG,KAAK,CAAC,MAAM,CAAC;IAC5B,MAAM,mBAAmB,GAAG,yBAAyB,CAAC;I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