mono/packages/kbot/tests/test-data/core/md-test-out.json
2025-06-05 07:02:40 +02:00

729 lines
15 KiB
JSON

{
"type": "root",
"children": [
{
"type": "heading",
"depth": 1,
"children": [
{
"type": "text",
"value": "\"Chapter 1: Overview\"",
"position": {
"start": {
"line": 1,
"column": 3,
"offset": 2
},
"end": {
"line": 1,
"column": 26,
"offset": 25
}
}
}
],
"position": {
"start": {
"line": 1,
"column": 1,
"offset": 0
},
"end": {
"line": 1,
"column": 26,
"offset": 25
}
}
},
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "The document introduces topics on AI and Markdown processing.",
"position": {
"start": {
"line": 3,
"column": 1,
"offset": 29
},
"end": {
"line": 3,
"column": 142,
"offset": 170
}
}
}
],
"position": {
"start": {
"line": 3,
"column": 1,
"offset": 29
},
"end": {
"line": 3,
"column": 142,
"offset": 170
}
}
},
{
"type": "heading",
"depth": 2,
"children": [
{
"type": "text",
"value": "\"1.1: Background Overview\"",
"position": {
"start": {
"line": 5,
"column": 4,
"offset": 177
},
"end": {
"line": 5,
"column": 27,
"offset": 200
}
}
}
],
"position": {
"start": {
"line": 5,
"column": 1,
"offset": 174
},
"end": {
"line": 5,
"column": 27,
"offset": 200
}
}
},
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "The history of Markdown is interesting and warrants background information.",
"position": {
"start": {
"line": 7,
"column": 1,
"offset": 204
},
"end": {
"line": 7,
"column": 91,
"offset": 294
}
}
}
],
"position": {
"start": {
"line": 7,
"column": 1,
"offset": 204
},
"end": {
"line": 7,
"column": 91,
"offset": 294
}
}
},
{
"type": "heading",
"depth": 3,
"children": [
{
"type": "text",
"value": "\"1.1.1: Origins\"",
"position": {
"start": {
"line": 9,
"column": 5,
"offset": 302
},
"end": {
"line": 9,
"column": 33,
"offset": 330
}
}
}
],
"position": {
"start": {
"line": 9,
"column": 1,
"offset": 298
},
"end": {
"line": 9,
"column": 33,
"offset": 330
}
}
},
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "Early days are described in the following details.",
"position": {
"start": {
"line": 11,
"column": 1,
"offset": 334
},
"end": {
"line": 11,
"column": 38,
"offset": 371
}
}
}
],
"position": {
"start": {
"line": 11,
"column": 1,
"offset": 334
},
"end": {
"line": 11,
"column": 38,
"offset": 371
}
}
},
{
"type": "heading",
"depth": 1,
"children": [
{
"type": "text",
"value": "\"Chapter 2: Methods\"",
"position": {
"start": {
"line": 13,
"column": 3,
"offset": 377
},
"end": {
"line": 13,
"column": 25,
"offset": 399
}
}
}
],
"position": {
"start": {
"line": 13,
"column": 1,
"offset": 375
},
"end": {
"line": 13,
"column": 25,
"offset": 399
}
}
},
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "This chapter describes the methods employed.",
"position": {
"start": {
"line": 15,
"column": 1,
"offset": 403
},
"end": {
"line": 15,
"column": 40,
"offset": 442
}
}
}
],
"position": {
"start": {
"line": 15,
"column": 1,
"offset": 403
},
"end": {
"line": 15,
"column": 40,
"offset": 442
}
}
},
{
"type": "heading",
"depth": 2,
"children": [
{
"type": "text",
"value": "\"2.1: Markdown Parsing\"",
"position": {
"start": {
"line": 17,
"column": 4,
"offset": 449
},
"end": {
"line": 17,
"column": 33,
"offset": 478
}
}
}
],
"position": {
"start": {
"line": 17,
"column": 1,
"offset": 446
},
"end": {
"line": 17,
"column": 33,
"offset": 478
}
}
},
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "It appears the text you provided is incomplete. Please provide the full paragraph for summarization.",
"position": {
"start": {
"line": 19,
"column": 1,
"offset": 482
},
"end": {
"line": 19,
"column": 8,
"offset": 489
}
}
},
{
"type": "inlineCode",
"value": "unified",
"position": {
"start": {
"line": 19,
"column": 8,
"offset": 489
},
"end": {
"line": 19,
"column": 17,
"offset": 498
}
}
},
{
"type": "text",
"value": "The text consists solely of the word \"and.\"",
"position": {
"start": {
"line": 19,
"column": 17,
"offset": 498
},
"end": {
"line": 19,
"column": 22,
"offset": 503
}
}
},
{
"type": "inlineCode",
"value": "remark-parse",
"position": {
"start": {
"line": 19,
"column": 22,
"offset": 503
},
"end": {
"line": 19,
"column": 36,
"offset": 517
}
}
},
{
"type": "text",
"value": "To process Markdown.",
"position": {
"start": {
"line": 19,
"column": 36,
"offset": 517
},
"end": {
"line": 19,
"column": 56,
"offset": 537
}
}
}
],
"position": {
"start": {
"line": 19,
"column": 1,
"offset": 482
},
"end": {
"line": 19,
"column": 56,
"offset": 537
}
}
},
{
"type": "heading",
"depth": 2,
"children": [
{
"type": "text",
"value": "\"Content Transformation\"",
"position": {
"start": {
"line": 21,
"column": 4,
"offset": 544
},
"end": {
"line": 21,
"column": 37,
"offset": 577
}
}
}
],
"position": {
"start": {
"line": 21,
"column": 1,
"offset": 541
},
"end": {
"line": 21,
"column": 37,
"offset": 577
}
}
},
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "The process entails navigating the AST to implement LLM transformations.",
"position": {
"start": {
"line": 23,
"column": 1,
"offset": 581
},
"end": {
"line": 23,
"column": 77,
"offset": 657
}
}
}
],
"position": {
"start": {
"line": 23,
"column": 1,
"offset": 581
},
"end": {
"line": 23,
"column": 77,
"offset": 657
}
}
},
{
"type": "heading",
"depth": 1,
"children": [
{
"type": "text",
"value": "\"Chapter 3: Data Formats\"",
"position": {
"start": {
"line": 25,
"column": 3,
"offset": 663
},
"end": {
"line": 25,
"column": 33,
"offset": 693
}
}
}
],
"position": {
"start": {
"line": 25,
"column": 1,
"offset": 661
},
"end": {
"line": 25,
"column": 33,
"offset": 693
}
}
},
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "The table contains three rows of data across three headers.",
"position": {
"start": {
"line": 27,
"column": 1,
"offset": 697
},
"end": {
"line": 31,
"column": 35,
"offset": 900
}
}
}
],
"position": {
"start": {
"line": 27,
"column": 1,
"offset": 697
},
"end": {
"line": 31,
"column": 35,
"offset": 900
}
}
},
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "The table displays sample data, with each cell available for transformation.",
"position": {
"start": {
"line": 33,
"column": 1,
"offset": 904
},
"end": {
"line": 33,
"column": 76,
"offset": 979
}
}
}
],
"position": {
"start": {
"line": 33,
"column": 1,
"offset": 904
},
"end": {
"line": 33,
"column": 76,
"offset": 979
}
}
},
{
"type": "heading",
"depth": 1,
"children": [
{
"type": "text",
"value": "\"Chapter 4: Structured Output Analysis\"",
"position": {
"start": {
"line": 35,
"column": 3,
"offset": 985
},
"end": {
"line": 35,
"column": 45,
"offset": 1027
}
}
}
],
"position": {
"start": {
"line": 35,
"column": 1,
"offset": 983
},
"end": {
"line": 35,
"column": 45,
"offset": 1027
}
}
},
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "The section analyzes keywords and sentiment from positive weather-related text.",
"position": {
"start": {
"line": 37,
"column": 1,
"offset": 1031
},
"end": {
"line": 37,
"column": 163,
"offset": 1193
}
}
}
],
"position": {
"start": {
"line": 37,
"column": 1,
"offset": 1031
},
"end": {
"line": 37,
"column": 163,
"offset": 1193
}
},
"manualAnalysisResult": {
"keywords": [
"section",
"analyzes",
"keywords",
"sentiment",
"positive",
"weather-related",
"text"
],
"sentiment": "positive"
}
},
{
"type": "heading",
"depth": 1,
"children": [
{
"type": "text",
"value": "\"Conclusion\"",
"position": {
"start": {
"line": 39,
"column": 3,
"offset": 1199
},
"end": {
"line": 39,
"column": 24,
"offset": 1220
}
}
}
],
"position": {
"start": {
"line": 39,
"column": 1,
"offset": 1197
},
"end": {
"line": 39,
"column": 24,
"offset": 1220
}
}
},
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "A summary of the main findings is presented in the concluding paragraph.",
"position": {
"start": {
"line": 41,
"column": 1,
"offset": 1224
},
"end": {
"line": 41,
"column": 53,
"offset": 1276
}
}
}
],
"position": {
"start": {
"line": 41,
"column": 1,
"offset": 1224
},
"end": {
"line": 41,
"column": 54,
"offset": 1277
}
}
}
],
"position": {
"start": {
"line": 1,
"column": 1,
"offset": 0
},
"end": {
"line": 41,
"column": 54,
"offset": 1277
}
}
}