@littlebigbrain/create 0.0.0-stage → 0.1.0

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.
Files changed (34) hide show
  1. package/LICENSE +55 -0
  2. package/README.md +71 -2
  3. package/bin/create-littlebigbrain.mjs +9 -0
  4. package/lib/create.mjs +238 -0
  5. package/package.json +46 -4
  6. package/project/setup.ts +18 -0
  7. package/project/try.ts +30 -0
  8. package/project/worker.ts +23 -0
  9. package/templates/_shared/testing.ts +490 -0
  10. package/templates/documents-link/README.md +144 -0
  11. package/templates/documents-link/link.ts +580 -0
  12. package/templates/documents-link/samples/ausstattungsliste.pdf +76 -0
  13. package/templates/documents-link/samples/baubeschreibung.pdf +54 -0
  14. package/templates/documents-link/samples/expected.json +404 -0
  15. package/templates/documents-link/samples/pages/ausstattungsliste.json +1150 -0
  16. package/templates/documents-link/samples/pages/baubeschreibung.json +802 -0
  17. package/templates/documents-link/samples/pages/raumblaetter.json +1580 -0
  18. package/templates/documents-link/samples/raumblaetter.pdf +109 -0
  19. package/templates/documents-link/samples.ts +31 -0
  20. package/templates/documents-link/workflow.test.ts +470 -0
  21. package/templates/documents-link/workflow.ts +457 -0
  22. package/templates/ontology-fit/README.md +81 -0
  23. package/templates/ontology-fit/samples/expected.md +88 -0
  24. package/templates/ontology-fit/samples/texts.json +22 -0
  25. package/templates/ontology-fit/samples.ts +40 -0
  26. package/templates/ontology-fit/workflow.test.ts +264 -0
  27. package/templates/ontology-fit/workflow.ts +413 -0
  28. package/templates/values-extract/README.md +81 -0
  29. package/templates/values-extract/samples/expected.json +148 -0
  30. package/templates/values-extract/samples/records.json +26 -0
  31. package/templates/values-extract/samples.ts +27 -0
  32. package/templates/values-extract/workflow.test.ts +256 -0
  33. package/templates/values-extract/workflow.ts +411 -0
  34. package/templates/versions.json +3 -0
@@ -0,0 +1,802 @@
1
+ {
2
+ "sha256": "ad840886f5b9f53c9670dbace9a12422ab3d6d93f3c8b3e774f2ad3fb914f43f",
3
+ "parser": "poppler-26.03.0",
4
+ "page_count": 1,
5
+ "from": 0,
6
+ "to": 1,
7
+ "pages": [
8
+ {
9
+ "page": 0,
10
+ "width": 595,
11
+ "height": 842,
12
+ "lines": [
13
+ {
14
+ "id": "p1-l1",
15
+ "text": "Neubau Grundschule Musterstadt",
16
+ "box": [
17
+ 0.121,
18
+ 0.0359,
19
+ 0.322,
20
+ 0.0447
21
+ ],
22
+ "words": [
23
+ {
24
+ "text": "Neubau",
25
+ "box": [
26
+ 0.121,
27
+ 0.0359,
28
+ 0.1681,
29
+ 0.0447
30
+ ]
31
+ },
32
+ {
33
+ "text": "Grundschule",
34
+ "box": [
35
+ 0.1718,
36
+ 0.0359,
37
+ 0.2481,
38
+ 0.0447
39
+ ]
40
+ },
41
+ {
42
+ "text": "Musterstadt",
43
+ "box": [
44
+ 0.2518,
45
+ 0.0359,
46
+ 0.322,
47
+ 0.0447
48
+ ]
49
+ }
50
+ ]
51
+ },
52
+ {
53
+ "id": "p1-l2",
54
+ "text": "Baubeschreibung",
55
+ "box": [
56
+ 0.121,
57
+ 0.0837,
58
+ 0.3481,
59
+ 0.1013
60
+ ],
61
+ "words": [
62
+ {
63
+ "text": "Baubeschreibung",
64
+ "box": [
65
+ 0.121,
66
+ 0.0837,
67
+ 0.3481,
68
+ 0.1013
69
+ ]
70
+ }
71
+ ]
72
+ },
73
+ {
74
+ "id": "p1-l3",
75
+ "text": "3 Ausbau",
76
+ "box": [
77
+ 0.121,
78
+ 0.1228,
79
+ 0.2118,
80
+ 0.136
81
+ ],
82
+ "words": [
83
+ {
84
+ "text": "3",
85
+ "box": [
86
+ 0.121,
87
+ 0.1228,
88
+ 0.1322,
89
+ 0.136
90
+ ]
91
+ },
92
+ {
93
+ "text": "Ausbau",
94
+ "box": [
95
+ 0.1378,
96
+ 0.1228,
97
+ 0.2118,
98
+ 0.136
99
+ ]
100
+ }
101
+ ]
102
+ },
103
+ {
104
+ "id": "p1-l4",
105
+ "text": "3.1 Bodenbeläge",
106
+ "box": [
107
+ 0.121,
108
+ 0.1498,
109
+ 0.2679,
110
+ 0.1618
111
+ ],
112
+ "words": [
113
+ {
114
+ "text": "3.1",
115
+ "box": [
116
+ 0.121,
117
+ 0.1498,
118
+ 0.1467,
119
+ 0.1618
120
+ ]
121
+ },
122
+ {
123
+ "text": "Bodenbeläge",
124
+ "box": [
125
+ 0.1518,
126
+ 0.1498,
127
+ 0.2679,
128
+ 0.1618
129
+ ]
130
+ }
131
+ ]
132
+ },
133
+ {
134
+ "id": "p1-l5",
135
+ "text": "Klassenräume und Flure erhalten Linoleum, 2,5 mm, vollflächig auf schwimmendem Estrich geklebt.",
136
+ "box": [
137
+ 0.121,
138
+ 0.1696,
139
+ 0.8645,
140
+ 0.1806
141
+ ],
142
+ "words": [
143
+ {
144
+ "text": "Klassenräume",
145
+ "box": [
146
+ 0.121,
147
+ 0.1696,
148
+ 0.2284,
149
+ 0.1806
150
+ ]
151
+ },
152
+ {
153
+ "text": "und",
154
+ "box": [
155
+ 0.2331,
156
+ 0.1696,
157
+ 0.2611,
158
+ 0.1806
159
+ ]
160
+ },
161
+ {
162
+ "text": "Flure",
163
+ "box": [
164
+ 0.2658,
165
+ 0.1696,
166
+ 0.3041,
167
+ 0.1806
168
+ ]
169
+ },
170
+ {
171
+ "text": "erhalten",
172
+ "box": [
173
+ 0.3088,
174
+ 0.1696,
175
+ 0.3695,
176
+ 0.1806
177
+ ]
178
+ },
179
+ {
180
+ "text": "Linoleum,",
181
+ "box": [
182
+ 0.3742,
183
+ 0.1696,
184
+ 0.447,
185
+ 0.1806
186
+ ]
187
+ },
188
+ {
189
+ "text": "2,5",
190
+ "box": [
191
+ 0.4517,
192
+ 0.1696,
193
+ 0.475,
194
+ 0.1806
195
+ ]
196
+ },
197
+ {
198
+ "text": "mm,",
199
+ "box": [
200
+ 0.4797,
201
+ 0.1696,
202
+ 0.5124,
203
+ 0.1806
204
+ ]
205
+ },
206
+ {
207
+ "text": "vollflächig",
208
+ "box": [
209
+ 0.5171,
210
+ 0.1696,
211
+ 0.5908,
212
+ 0.1806
213
+ ]
214
+ },
215
+ {
216
+ "text": "auf",
217
+ "box": [
218
+ 0.5955,
219
+ 0.1696,
220
+ 0.6189,
221
+ 0.1806
222
+ ]
223
+ },
224
+ {
225
+ "text": "schwimmendem",
226
+ "box": [
227
+ 0.6235,
228
+ 0.1696,
229
+ 0.7449,
230
+ 0.1806
231
+ ]
232
+ },
233
+ {
234
+ "text": "Estrich",
235
+ "box": [
236
+ 0.7496,
237
+ 0.1696,
238
+ 0.801,
239
+ 0.1806
240
+ ]
241
+ },
242
+ {
243
+ "text": "geklebt.",
244
+ "box": [
245
+ 0.8056,
246
+ 0.1696,
247
+ 0.8645,
248
+ 0.1806
249
+ ]
250
+ }
251
+ ]
252
+ },
253
+ {
254
+ "id": "p1-l6",
255
+ "text": "Sanitärräume erhalten rutschhemmende Bodenfliesen aus Feinsteinzeug.",
256
+ "box": [
257
+ 0.121,
258
+ 0.1851,
259
+ 0.6693,
260
+ 0.196
261
+ ],
262
+ "words": [
263
+ {
264
+ "text": "Sanitärräume",
265
+ "box": [
266
+ 0.121,
267
+ 0.1851,
268
+ 0.2219,
269
+ 0.196
270
+ ]
271
+ },
272
+ {
273
+ "text": "erhalten",
274
+ "box": [
275
+ 0.2266,
276
+ 0.1851,
277
+ 0.2873,
278
+ 0.196
279
+ ]
280
+ },
281
+ {
282
+ "text": "rutschhemmende",
283
+ "box": [
284
+ 0.2919,
285
+ 0.1851,
286
+ 0.4218,
287
+ 0.196
288
+ ]
289
+ },
290
+ {
291
+ "text": "Bodenfliesen",
292
+ "box": [
293
+ 0.4265,
294
+ 0.1851,
295
+ 0.5236,
296
+ 0.196
297
+ ]
298
+ },
299
+ {
300
+ "text": "aus",
301
+ "box": [
302
+ 0.5283,
303
+ 0.1851,
304
+ 0.5554,
305
+ 0.196
306
+ ]
307
+ },
308
+ {
309
+ "text": "Feinsteinzeug.",
310
+ "box": [
311
+ 0.5601,
312
+ 0.1851,
313
+ 0.6693,
314
+ 0.196
315
+ ]
316
+ }
317
+ ]
318
+ },
319
+ {
320
+ "id": "p1-l7",
321
+ "text": "3.2 Sanitärobjekte",
322
+ "box": [
323
+ 0.121,
324
+ 0.2139,
325
+ 0.2792,
326
+ 0.226
327
+ ],
328
+ "words": [
329
+ {
330
+ "text": "3.2",
331
+ "box": [
332
+ 0.121,
333
+ 0.2139,
334
+ 0.1467,
335
+ 0.226
336
+ ]
337
+ },
338
+ {
339
+ "text": "Sanitärobjekte",
340
+ "box": [
341
+ 0.1518,
342
+ 0.2139,
343
+ 0.2792,
344
+ 0.226
345
+ ]
346
+ }
347
+ ]
348
+ },
349
+ {
350
+ "id": "p1-l8",
351
+ "text": "Waschtische, WCs und Urinale sind aus weißer Sanitärkeramik, die Armaturen sind wassersparend.",
352
+ "box": [
353
+ 0.121,
354
+ 0.2338,
355
+ 0.8654,
356
+ 0.2447
357
+ ],
358
+ "words": [
359
+ {
360
+ "text": "Waschtische,",
361
+ "box": [
362
+ 0.121,
363
+ 0.2338,
364
+ 0.2209,
365
+ 0.2447
366
+ ]
367
+ },
368
+ {
369
+ "text": "WCs",
370
+ "box": [
371
+ 0.2256,
372
+ 0.2338,
373
+ 0.262,
374
+ 0.2447
375
+ ]
376
+ },
377
+ {
378
+ "text": "und",
379
+ "box": [
380
+ 0.2667,
381
+ 0.2338,
382
+ 0.2947,
383
+ 0.2447
384
+ ]
385
+ },
386
+ {
387
+ "text": "Urinale",
388
+ "box": [
389
+ 0.2994,
390
+ 0.2338,
391
+ 0.3526,
392
+ 0.2447
393
+ ]
394
+ },
395
+ {
396
+ "text": "sind",
397
+ "box": [
398
+ 0.3573,
399
+ 0.2338,
400
+ 0.3881,
401
+ 0.2447
402
+ ]
403
+ },
404
+ {
405
+ "text": "aus",
406
+ "box": [
407
+ 0.3928,
408
+ 0.2338,
409
+ 0.4199,
410
+ 0.2447
411
+ ]
412
+ },
413
+ {
414
+ "text": "weißer",
415
+ "box": [
416
+ 0.4246,
417
+ 0.2338,
418
+ 0.475,
419
+ 0.2447
420
+ ]
421
+ },
422
+ {
423
+ "text": "Sanitärkeramik,",
424
+ "box": [
425
+ 0.4796,
426
+ 0.2338,
427
+ 0.5964,
428
+ 0.2447
429
+ ]
430
+ },
431
+ {
432
+ "text": "die",
433
+ "box": [
434
+ 0.6011,
435
+ 0.2338,
436
+ 0.6235,
437
+ 0.2447
438
+ ]
439
+ },
440
+ {
441
+ "text": "Armaturen",
442
+ "box": [
443
+ 0.6282,
444
+ 0.2338,
445
+ 0.7066,
446
+ 0.2447
447
+ ]
448
+ },
449
+ {
450
+ "text": "sind",
451
+ "box": [
452
+ 0.7113,
453
+ 0.2338,
454
+ 0.7421,
455
+ 0.2447
456
+ ]
457
+ },
458
+ {
459
+ "text": "wassersparend.",
460
+ "box": [
461
+ 0.7468,
462
+ 0.2338,
463
+ 0.8654,
464
+ 0.2447
465
+ ]
466
+ }
467
+ ]
468
+ },
469
+ {
470
+ "id": "p1-l9",
471
+ "text": "Die einzelnen Objekte nennt die Ausstattungsliste.",
472
+ "box": [
473
+ 0.121,
474
+ 0.2492,
475
+ 0.4956,
476
+ 0.2602
477
+ ],
478
+ "words": [
479
+ {
480
+ "text": "Die",
481
+ "box": [
482
+ 0.121,
483
+ 0.2492,
484
+ 0.1462,
485
+ 0.2602
486
+ ]
487
+ },
488
+ {
489
+ "text": "einzelnen",
490
+ "box": [
491
+ 0.1509,
492
+ 0.2492,
493
+ 0.2228,
494
+ 0.2602
495
+ ]
496
+ },
497
+ {
498
+ "text": "Objekte",
499
+ "box": [
500
+ 0.2275,
501
+ 0.2492,
502
+ 0.2854,
503
+ 0.2602
504
+ ]
505
+ },
506
+ {
507
+ "text": "nennt",
508
+ "box": [
509
+ 0.2901,
510
+ 0.2492,
511
+ 0.3321,
512
+ 0.2602
513
+ ]
514
+ },
515
+ {
516
+ "text": "die",
517
+ "box": [
518
+ 0.3368,
519
+ 0.2492,
520
+ 0.3592,
521
+ 0.2602
522
+ ]
523
+ },
524
+ {
525
+ "text": "Ausstattungsliste.",
526
+ "box": [
527
+ 0.3639,
528
+ 0.2492,
529
+ 0.4956,
530
+ 0.2602
531
+ ]
532
+ }
533
+ ]
534
+ },
535
+ {
536
+ "id": "p1-l10",
537
+ "text": "3.3 Beleuchtung",
538
+ "box": [
539
+ 0.121,
540
+ 0.278,
541
+ 0.2638,
542
+ 0.2901
543
+ ],
544
+ "words": [
545
+ {
546
+ "text": "3.3",
547
+ "box": [
548
+ 0.121,
549
+ 0.278,
550
+ 0.1467,
551
+ 0.2901
552
+ ]
553
+ },
554
+ {
555
+ "text": "Beleuchtung",
556
+ "box": [
557
+ 0.1518,
558
+ 0.278,
559
+ 0.2638,
560
+ 0.2901
561
+ ]
562
+ }
563
+ ]
564
+ },
565
+ {
566
+ "id": "p1-l11",
567
+ "text": "Alle Räume erhalten LED-Leuchten. Die Leuchten der Klassenräume sind tageslichtabhängig",
568
+ "box": [
569
+ 0.121,
570
+ 0.2979,
571
+ 0.8151,
572
+ 0.3089
573
+ ],
574
+ "words": [
575
+ {
576
+ "text": "Alle",
577
+ "box": [
578
+ 0.121,
579
+ 0.2979,
580
+ 0.149,
581
+ 0.3089
582
+ ]
583
+ },
584
+ {
585
+ "text": "Räume",
586
+ "box": [
587
+ 0.1537,
588
+ 0.2979,
589
+ 0.2079,
590
+ 0.3089
591
+ ]
592
+ },
593
+ {
594
+ "text": "erhalten",
595
+ "box": [
596
+ 0.2125,
597
+ 0.2979,
598
+ 0.2733,
599
+ 0.3089
600
+ ]
601
+ },
602
+ {
603
+ "text": "LED-Leuchten.",
604
+ "box": [
605
+ 0.2779,
606
+ 0.2979,
607
+ 0.39,
608
+ 0.3089
609
+ ]
610
+ },
611
+ {
612
+ "text": "Die",
613
+ "box": [
614
+ 0.3947,
615
+ 0.2979,
616
+ 0.4199,
617
+ 0.3089
618
+ ]
619
+ },
620
+ {
621
+ "text": "Leuchten",
622
+ "box": [
623
+ 0.4246,
624
+ 0.2979,
625
+ 0.4937,
626
+ 0.3089
627
+ ]
628
+ },
629
+ {
630
+ "text": "der",
631
+ "box": [
632
+ 0.4984,
633
+ 0.2979,
634
+ 0.5227,
635
+ 0.3089
636
+ ]
637
+ },
638
+ {
639
+ "text": "Klassenräume",
640
+ "box": [
641
+ 0.5274,
642
+ 0.2979,
643
+ 0.6348,
644
+ 0.3089
645
+ ]
646
+ },
647
+ {
648
+ "text": "sind",
649
+ "box": [
650
+ 0.6394,
651
+ 0.2979,
652
+ 0.6703,
653
+ 0.3089
654
+ ]
655
+ },
656
+ {
657
+ "text": "tageslichtabhängig",
658
+ "box": [
659
+ 0.6749,
660
+ 0.2979,
661
+ 0.8151,
662
+ 0.3089
663
+ ]
664
+ }
665
+ ]
666
+ },
667
+ {
668
+ "id": "p1-l12",
669
+ "text": "dimmbar, Flure und Treppen erhalten Sicherheitsleuchten mit Einzelbatterie.",
670
+ "box": [
671
+ 0.121,
672
+ 0.3133,
673
+ 0.6889,
674
+ 0.3243
675
+ ],
676
+ "words": [
677
+ {
678
+ "text": "dimmbar,",
679
+ "box": [
680
+ 0.121,
681
+ 0.3133,
682
+ 0.191,
683
+ 0.3243
684
+ ]
685
+ },
686
+ {
687
+ "text": "Flure",
688
+ "box": [
689
+ 0.1957,
690
+ 0.3133,
691
+ 0.234,
692
+ 0.3243
693
+ ]
694
+ },
695
+ {
696
+ "text": "und",
697
+ "box": [
698
+ 0.2387,
699
+ 0.3133,
700
+ 0.2667,
701
+ 0.3243
702
+ ]
703
+ },
704
+ {
705
+ "text": "Treppen",
706
+ "box": [
707
+ 0.2714,
708
+ 0.3133,
709
+ 0.334,
710
+ 0.3243
711
+ ]
712
+ },
713
+ {
714
+ "text": "erhalten",
715
+ "box": [
716
+ 0.3386,
717
+ 0.3133,
718
+ 0.3994,
719
+ 0.3243
720
+ ]
721
+ },
722
+ {
723
+ "text": "Sicherheitsleuchten",
724
+ "box": [
725
+ 0.404,
726
+ 0.3133,
727
+ 0.5507,
728
+ 0.3243
729
+ ]
730
+ },
731
+ {
732
+ "text": "mit",
733
+ "box": [
734
+ 0.5554,
735
+ 0.3133,
736
+ 0.5778,
737
+ 0.3243
738
+ ]
739
+ },
740
+ {
741
+ "text": "Einzelbatterie.",
742
+ "box": [
743
+ 0.5824,
744
+ 0.3133,
745
+ 0.6889,
746
+ 0.3243
747
+ ]
748
+ }
749
+ ]
750
+ },
751
+ {
752
+ "id": "p1-l13",
753
+ "text": "Seite 1 von 1",
754
+ "box": [
755
+ 0.8005,
756
+ 0.9457,
757
+ 0.879,
758
+ 0.9545
759
+ ],
760
+ "words": [
761
+ {
762
+ "text": "Seite",
763
+ "box": [
764
+ 0.8005,
765
+ 0.9457,
766
+ 0.8311,
767
+ 0.9545
768
+ ]
769
+ },
770
+ {
771
+ "text": "1",
772
+ "box": [
773
+ 0.8349,
774
+ 0.9457,
775
+ 0.8424,
776
+ 0.9545
777
+ ]
778
+ },
779
+ {
780
+ "text": "von",
781
+ "box": [
782
+ 0.8461,
783
+ 0.9457,
784
+ 0.8678,
785
+ 0.9545
786
+ ]
787
+ },
788
+ {
789
+ "text": "1",
790
+ "box": [
791
+ 0.8715,
792
+ 0.9457,
793
+ 0.879,
794
+ 0.9545
795
+ ]
796
+ }
797
+ ]
798
+ }
799
+ ]
800
+ }
801
+ ]
802
+ }