mono/packages/kbot/tests/test-data/core/md-test-out.json
2025-04-07 18:52:59 +02:00

725 lines
15 KiB
JSON

{
"type": "root",
"children": [
{
"type": "heading",
"depth": 1,
"children": [
{
"type": "text",
"value": "Intro Chapter",
"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 related to 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": "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": "Markdown has an interesting history that we will explore.",
"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": "\"Early Days\"",
"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 details provided.",
"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": "Methodology Overview",
"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 employed methods.",
"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": "\"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": "User preferences indicate a focus on concise and direct responses.",
"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 paragraph consists only of an empty conjunction and lacks meaningful content.",
"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 manage Markdown formatting.",
"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 and implementing 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": "Data Representation",
"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 includes three headers and various data cells, highlighting important content in one cell.",
"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 transformable cells.",
"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": "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 text mentions sunny weather, making it ideal for a park walk.",
"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": [
"sunny weather",
"ideal",
"park walk"
],
"sentiment": "positive"
}
},
{
"type": "heading",
"depth": 1,
"children": [
{
"type": "text",
"value": "Final Thoughts",
"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 key 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
}
}
}