@mermanjs/node-wasm 0.9.3 → 0.10.0-alpha.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/CHANGELOG.md +48 -6
- package/README.md +50 -8
- package/THIRD_PARTY_LICENSES/d3-path/LICENSE +13 -0
- package/THIRD_PARTY_LICENSES/eclipse-elk/LICENSE.md +1 -2
- package/THIRD_PARTY_LICENSES/elkjs/LICENSE.md +1 -2
- package/THIRD_PARTY_LICENSES/roxmltree-dom/LICENSE-APACHE +201 -0
- package/THIRD_PARTY_LICENSES/roxmltree-dom/LICENSE-ISC +13 -0
- package/THIRD_PARTY_LICENSES/roxmltree-dom/LICENSE-MIT +21 -0
- package/THIRD_PARTY_LICENSES/rust-cargo-dependencies.json +112 -67
- package/THIRD_PARTY_NOTICES.md +83 -47
- package/artifact/merman_node.cjs +53 -44
- package/artifact/merman_node_bg.wasm +0 -0
- package/dist/engine.mjs +50 -161
- package/dist/errors.mjs +96 -39
- package/dist/generated/binding-contract.mjs +204 -12
- package/dist/generated/capability-surface.mjs +61 -15
- package/dist/generated/node-wire-contract.json +10 -6
- package/dist/index.d.ts +5 -2
- package/dist/native-loader.mjs +7 -5
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Sources: typed registries in merman-bindings-core. Do not edit directly.
|
|
3
3
|
|
|
4
4
|
export const RUNTIME_CATALOG_SCHEMA_VERSION = 1;
|
|
5
|
-
export const BINDING_OPTIONS_SCHEMA_VERSION =
|
|
5
|
+
export const BINDING_OPTIONS_SCHEMA_VERSION = 3;
|
|
6
6
|
export const TEXT_MEASUREMENT_PROTOCOL_VERSION = 1;
|
|
7
7
|
|
|
8
8
|
export const RUNTIME_CATALOG_IDENTIFIER_PATTERN = "^[a-z0-9][a-z0-9-]*$";
|
|
@@ -22,6 +22,12 @@ export const CAPABILITY_SPECS = [
|
|
|
22
22
|
"id": "editor",
|
|
23
23
|
"implication_ids": []
|
|
24
24
|
},
|
|
25
|
+
{
|
|
26
|
+
"id": "fixes",
|
|
27
|
+
"implication_ids": [
|
|
28
|
+
"analysis"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
25
31
|
{
|
|
26
32
|
"id": "icons",
|
|
27
33
|
"implication_ids": []
|
|
@@ -76,8 +82,7 @@ export const CAPABILITY_SPECS = [
|
|
|
76
82
|
"id": "rustdoc",
|
|
77
83
|
"implication_ids": [
|
|
78
84
|
"layout-cytoscape",
|
|
79
|
-
"markdown"
|
|
80
|
-
"math"
|
|
85
|
+
"markdown"
|
|
81
86
|
]
|
|
82
87
|
},
|
|
83
88
|
{
|
|
@@ -151,6 +156,20 @@ export const BINDING_OPERATION_METADATA_CONTRACT = {
|
|
|
151
156
|
"required": false,
|
|
152
157
|
"integer_width_bits": null,
|
|
153
158
|
"open_value": true
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"name": "layout_adaptation",
|
|
162
|
+
"json_type": "object",
|
|
163
|
+
"required": false,
|
|
164
|
+
"integer_width_bits": null,
|
|
165
|
+
"open_value": true
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"name": "theme_execution_evidence",
|
|
169
|
+
"json_type": "object",
|
|
170
|
+
"required": false,
|
|
171
|
+
"integer_width_bits": null,
|
|
172
|
+
"open_value": true
|
|
154
173
|
}
|
|
155
174
|
],
|
|
156
175
|
"output_plans": [
|
|
@@ -422,14 +441,126 @@ export const BINDING_OPERATION_METADATA_CONTRACT = {
|
|
|
422
441
|
]
|
|
423
442
|
}
|
|
424
443
|
],
|
|
444
|
+
"theme_execution_evidence_versions": [
|
|
445
|
+
{
|
|
446
|
+
"version": 2,
|
|
447
|
+
"fields": [
|
|
448
|
+
{
|
|
449
|
+
"name": "version",
|
|
450
|
+
"json_type": "unsigned-integer",
|
|
451
|
+
"required": true,
|
|
452
|
+
"integer_width_bits": 32,
|
|
453
|
+
"open_value": false
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
"name": "family_id",
|
|
457
|
+
"json_type": "string",
|
|
458
|
+
"required": true,
|
|
459
|
+
"integer_width_bits": null,
|
|
460
|
+
"open_value": true
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
"name": "theme_status",
|
|
464
|
+
"json_type": "string",
|
|
465
|
+
"required": true,
|
|
466
|
+
"integer_width_bits": null,
|
|
467
|
+
"open_value": true
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
"name": "output_mutated",
|
|
471
|
+
"json_type": "boolean",
|
|
472
|
+
"required": true,
|
|
473
|
+
"integer_width_bits": null,
|
|
474
|
+
"open_value": false
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
"name": "target_kind",
|
|
478
|
+
"json_type": "string",
|
|
479
|
+
"required": true,
|
|
480
|
+
"integer_width_bits": null,
|
|
481
|
+
"open_value": true
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"name": "target_status",
|
|
485
|
+
"json_type": "string",
|
|
486
|
+
"required": true,
|
|
487
|
+
"integer_width_bits": null,
|
|
488
|
+
"open_value": true
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
"name": "target_reason_ids",
|
|
492
|
+
"json_type": "array",
|
|
493
|
+
"required": true,
|
|
494
|
+
"integer_width_bits": null,
|
|
495
|
+
"open_value": true
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
"name": "font_source",
|
|
499
|
+
"json_type": "string",
|
|
500
|
+
"required": true,
|
|
501
|
+
"integer_width_bits": null,
|
|
502
|
+
"open_value": true
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
"name": "materialized_theme",
|
|
506
|
+
"json_type": "string-or-null",
|
|
507
|
+
"required": true,
|
|
508
|
+
"integer_width_bits": null,
|
|
509
|
+
"open_value": false
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
"name": "diagnostics",
|
|
513
|
+
"json_type": "array",
|
|
514
|
+
"required": false,
|
|
515
|
+
"integer_width_bits": null,
|
|
516
|
+
"open_value": true
|
|
517
|
+
}
|
|
518
|
+
],
|
|
519
|
+
"max_id_utf8_bytes": 128,
|
|
520
|
+
"max_target_reason_ids": 32,
|
|
521
|
+
"target_reason_ids_unique": true
|
|
522
|
+
}
|
|
523
|
+
],
|
|
524
|
+
"layout_adaptation_fields": [
|
|
525
|
+
{
|
|
526
|
+
"name": "mode",
|
|
527
|
+
"json_type": "string",
|
|
528
|
+
"required": true,
|
|
529
|
+
"integer_width_bits": null,
|
|
530
|
+
"open_value": true
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
"name": "requested_width",
|
|
534
|
+
"json_type": "number",
|
|
535
|
+
"required": true,
|
|
536
|
+
"integer_width_bits": null,
|
|
537
|
+
"open_value": false
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
"name": "actual_width",
|
|
541
|
+
"json_type": "number",
|
|
542
|
+
"required": true,
|
|
543
|
+
"integer_width_bits": null,
|
|
544
|
+
"open_value": false
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
"name": "overflowed",
|
|
548
|
+
"json_type": "boolean",
|
|
549
|
+
"required": true,
|
|
550
|
+
"integer_width_bits": null,
|
|
551
|
+
"open_value": false
|
|
552
|
+
}
|
|
553
|
+
],
|
|
425
554
|
"additional_fields_policy": "preserve",
|
|
426
555
|
"unknown_output_plan_policy": "preserve",
|
|
556
|
+
"unknown_theme_execution_evidence_policy": "preserve",
|
|
427
557
|
"original_json_policy": "preserve-exact-bytes"
|
|
428
558
|
};
|
|
429
559
|
|
|
430
560
|
export const BINDING_OPERATION_EXPECTATIONS = [
|
|
431
561
|
{
|
|
432
562
|
"operation_id": "analysis-facts-json",
|
|
563
|
+
"maturity": "stable",
|
|
433
564
|
"output_id": null,
|
|
434
565
|
"media_type": "application/json",
|
|
435
566
|
"metadata_schema_version": 1,
|
|
@@ -445,6 +576,7 @@ export const BINDING_OPERATION_EXPECTATIONS = [
|
|
|
445
576
|
},
|
|
446
577
|
{
|
|
447
578
|
"operation_id": "analysis-json",
|
|
579
|
+
"maturity": "stable",
|
|
448
580
|
"output_id": null,
|
|
449
581
|
"media_type": "application/json",
|
|
450
582
|
"metadata_schema_version": 1,
|
|
@@ -460,6 +592,7 @@ export const BINDING_OPERATION_EXPECTATIONS = [
|
|
|
460
592
|
},
|
|
461
593
|
{
|
|
462
594
|
"operation_id": "ascii",
|
|
595
|
+
"maturity": "stable",
|
|
463
596
|
"output_id": "ascii",
|
|
464
597
|
"media_type": "text/plain; charset=utf-8",
|
|
465
598
|
"metadata_schema_version": 1,
|
|
@@ -473,8 +606,25 @@ export const BINDING_OPERATION_EXPECTATIONS = [
|
|
|
473
606
|
"capability_id": "ascii"
|
|
474
607
|
}
|
|
475
608
|
},
|
|
609
|
+
{
|
|
610
|
+
"operation_id": "describe-theme-support-json",
|
|
611
|
+
"maturity": "alpha",
|
|
612
|
+
"output_id": null,
|
|
613
|
+
"media_type": "application/json",
|
|
614
|
+
"metadata_schema_version": 1,
|
|
615
|
+
"requires_uri": false,
|
|
616
|
+
"availability_capability_id": "svg",
|
|
617
|
+
"compiled_prerequisite_ids": [],
|
|
618
|
+
"unavailable": {
|
|
619
|
+
"status_code": 7,
|
|
620
|
+
"status_name": "MERMAN_UNSUPPORTED_OPERATION",
|
|
621
|
+
"error_kind": "missing-capability",
|
|
622
|
+
"capability_id": "svg"
|
|
623
|
+
}
|
|
624
|
+
},
|
|
476
625
|
{
|
|
477
626
|
"operation_id": "document-analysis-facts-json",
|
|
627
|
+
"maturity": "stable",
|
|
478
628
|
"output_id": null,
|
|
479
629
|
"media_type": "application/json",
|
|
480
630
|
"metadata_schema_version": 1,
|
|
@@ -490,6 +640,7 @@ export const BINDING_OPERATION_EXPECTATIONS = [
|
|
|
490
640
|
},
|
|
491
641
|
{
|
|
492
642
|
"operation_id": "document-analysis-json",
|
|
643
|
+
"maturity": "stable",
|
|
493
644
|
"output_id": null,
|
|
494
645
|
"media_type": "application/json",
|
|
495
646
|
"metadata_schema_version": 1,
|
|
@@ -505,6 +656,23 @@ export const BINDING_OPERATION_EXPECTATIONS = [
|
|
|
505
656
|
},
|
|
506
657
|
{
|
|
507
658
|
"operation_id": "edge-geometry-json",
|
|
659
|
+
"maturity": "stable",
|
|
660
|
+
"output_id": null,
|
|
661
|
+
"media_type": "application/json",
|
|
662
|
+
"metadata_schema_version": 1,
|
|
663
|
+
"requires_uri": false,
|
|
664
|
+
"availability_capability_id": "svg",
|
|
665
|
+
"compiled_prerequisite_ids": [],
|
|
666
|
+
"unavailable": {
|
|
667
|
+
"status_code": 7,
|
|
668
|
+
"status_name": "MERMAN_UNSUPPORTED_OPERATION",
|
|
669
|
+
"error_kind": "missing-capability",
|
|
670
|
+
"capability_id": "svg"
|
|
671
|
+
}
|
|
672
|
+
},
|
|
673
|
+
{
|
|
674
|
+
"operation_id": "export-theme-preset-json",
|
|
675
|
+
"maturity": "alpha",
|
|
508
676
|
"output_id": null,
|
|
509
677
|
"media_type": "application/json",
|
|
510
678
|
"metadata_schema_version": 1,
|
|
@@ -520,6 +688,7 @@ export const BINDING_OPERATION_EXPECTATIONS = [
|
|
|
520
688
|
},
|
|
521
689
|
{
|
|
522
690
|
"operation_id": "jpeg",
|
|
691
|
+
"maturity": "stable",
|
|
523
692
|
"output_id": "jpeg",
|
|
524
693
|
"media_type": "image/jpeg",
|
|
525
694
|
"metadata_schema_version": 1,
|
|
@@ -537,6 +706,23 @@ export const BINDING_OPERATION_EXPECTATIONS = [
|
|
|
537
706
|
},
|
|
538
707
|
{
|
|
539
708
|
"operation_id": "layout-json",
|
|
709
|
+
"maturity": "stable",
|
|
710
|
+
"output_id": null,
|
|
711
|
+
"media_type": "application/json",
|
|
712
|
+
"metadata_schema_version": 1,
|
|
713
|
+
"requires_uri": false,
|
|
714
|
+
"availability_capability_id": "svg",
|
|
715
|
+
"compiled_prerequisite_ids": [],
|
|
716
|
+
"unavailable": {
|
|
717
|
+
"status_code": 7,
|
|
718
|
+
"status_name": "MERMAN_UNSUPPORTED_OPERATION",
|
|
719
|
+
"error_kind": "missing-capability",
|
|
720
|
+
"capability_id": "svg"
|
|
721
|
+
}
|
|
722
|
+
},
|
|
723
|
+
{
|
|
724
|
+
"operation_id": "materialize-theme-json",
|
|
725
|
+
"maturity": "alpha",
|
|
540
726
|
"output_id": null,
|
|
541
727
|
"media_type": "application/json",
|
|
542
728
|
"metadata_schema_version": 1,
|
|
@@ -552,6 +738,7 @@ export const BINDING_OPERATION_EXPECTATIONS = [
|
|
|
552
738
|
},
|
|
553
739
|
{
|
|
554
740
|
"operation_id": "pdf",
|
|
741
|
+
"maturity": "stable",
|
|
555
742
|
"output_id": "pdf",
|
|
556
743
|
"media_type": "application/pdf",
|
|
557
744
|
"metadata_schema_version": 1,
|
|
@@ -569,6 +756,7 @@ export const BINDING_OPERATION_EXPECTATIONS = [
|
|
|
569
756
|
},
|
|
570
757
|
{
|
|
571
758
|
"operation_id": "png",
|
|
759
|
+
"maturity": "stable",
|
|
572
760
|
"output_id": "png",
|
|
573
761
|
"media_type": "image/png",
|
|
574
762
|
"metadata_schema_version": 1,
|
|
@@ -586,6 +774,7 @@ export const BINDING_OPERATION_EXPECTATIONS = [
|
|
|
586
774
|
},
|
|
587
775
|
{
|
|
588
776
|
"operation_id": "semantic-json",
|
|
777
|
+
"maturity": "stable",
|
|
589
778
|
"output_id": null,
|
|
590
779
|
"media_type": "application/json",
|
|
591
780
|
"metadata_schema_version": 1,
|
|
@@ -596,6 +785,7 @@ export const BINDING_OPERATION_EXPECTATIONS = [
|
|
|
596
785
|
},
|
|
597
786
|
{
|
|
598
787
|
"operation_id": "svg",
|
|
788
|
+
"maturity": "stable",
|
|
599
789
|
"output_id": "svg",
|
|
600
790
|
"media_type": "image/svg+xml",
|
|
601
791
|
"metadata_schema_version": 1,
|
|
@@ -611,6 +801,7 @@ export const BINDING_OPERATION_EXPECTATIONS = [
|
|
|
611
801
|
},
|
|
612
802
|
{
|
|
613
803
|
"operation_id": "svg-plan-json",
|
|
804
|
+
"maturity": "stable",
|
|
614
805
|
"output_id": null,
|
|
615
806
|
"media_type": "application/json",
|
|
616
807
|
"metadata_schema_version": 1,
|
|
@@ -626,6 +817,7 @@ export const BINDING_OPERATION_EXPECTATIONS = [
|
|
|
626
817
|
},
|
|
627
818
|
{
|
|
628
819
|
"operation_id": "validation-json",
|
|
820
|
+
"maturity": "stable",
|
|
629
821
|
"output_id": null,
|
|
630
822
|
"media_type": "application/json",
|
|
631
823
|
"metadata_schema_version": 1,
|
|
@@ -666,15 +858,15 @@ export const METADATA_SPECS = [
|
|
|
666
858
|
"required_capability_id": "analysis"
|
|
667
859
|
},
|
|
668
860
|
{
|
|
669
|
-
"id": "
|
|
861
|
+
"id": "supported-diagrams",
|
|
670
862
|
"required_capability_id": null
|
|
671
863
|
},
|
|
672
864
|
{
|
|
673
|
-
"id": "supported-
|
|
865
|
+
"id": "supported-themes",
|
|
674
866
|
"required_capability_id": null
|
|
675
867
|
},
|
|
676
868
|
{
|
|
677
|
-
"id": "
|
|
869
|
+
"id": "theme-catalog",
|
|
678
870
|
"required_capability_id": null
|
|
679
871
|
}
|
|
680
872
|
];
|
|
@@ -742,12 +934,6 @@ export const BINDING_OPTION_GROUP_SPECS = [
|
|
|
742
934
|
],
|
|
743
935
|
"requires_svg_pipeline": false
|
|
744
936
|
},
|
|
745
|
-
{
|
|
746
|
-
"id": "presentation",
|
|
747
|
-
"always_available": false,
|
|
748
|
-
"any_capability_ids": [],
|
|
749
|
-
"requires_svg_pipeline": true
|
|
750
|
-
},
|
|
751
937
|
{
|
|
752
938
|
"id": "raster",
|
|
753
939
|
"always_available": false,
|
|
@@ -781,6 +967,12 @@ export const BINDING_OPTION_GROUP_SPECS = [
|
|
|
781
967
|
"any_capability_ids": [],
|
|
782
968
|
"requires_svg_pipeline": true
|
|
783
969
|
},
|
|
970
|
+
{
|
|
971
|
+
"id": "theme",
|
|
972
|
+
"always_available": false,
|
|
973
|
+
"any_capability_ids": [],
|
|
974
|
+
"requires_svg_pipeline": true
|
|
975
|
+
},
|
|
784
976
|
{
|
|
785
977
|
"id": "version",
|
|
786
978
|
"always_available": true,
|
|
@@ -2,69 +2,115 @@
|
|
|
2
2
|
// Source: capabilities/feature-surface-v1.json. Do not edit directly.
|
|
3
3
|
|
|
4
4
|
export const CAPABILITY_DESCRIPTOR_SCHEMA_VERSION = 1;
|
|
5
|
-
export const CAPABILITY_DESCRIPTOR_DIGEST = "sha256:
|
|
5
|
+
export const CAPABILITY_DESCRIPTOR_DIGEST = "sha256:a979bad1c2c244a56d592eb0e6a261425edf031bb8f30235d739e62670b5cafb";
|
|
6
6
|
|
|
7
7
|
export const NODE_BINDING_OPERATIONS = [
|
|
8
8
|
{
|
|
9
9
|
"id": "analysis-facts-json",
|
|
10
|
-
"
|
|
10
|
+
"maturity": "stable",
|
|
11
|
+
"compiled_prerequisites": [],
|
|
12
|
+
"input_kind": "mermaid-source"
|
|
11
13
|
},
|
|
12
14
|
{
|
|
13
15
|
"id": "analysis-json",
|
|
14
|
-
"
|
|
16
|
+
"maturity": "stable",
|
|
17
|
+
"compiled_prerequisites": [],
|
|
18
|
+
"input_kind": "mermaid-source"
|
|
15
19
|
},
|
|
16
20
|
{
|
|
17
21
|
"id": "ascii",
|
|
18
|
-
"
|
|
22
|
+
"maturity": "stable",
|
|
23
|
+
"compiled_prerequisites": [],
|
|
24
|
+
"input_kind": "mermaid-source"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"id": "describe-theme-support-json",
|
|
28
|
+
"maturity": "alpha",
|
|
29
|
+
"compiled_prerequisites": [],
|
|
30
|
+
"input_kind": "theme-support-query-json"
|
|
19
31
|
},
|
|
20
32
|
{
|
|
21
33
|
"id": "document-analysis-facts-json",
|
|
22
|
-
"
|
|
34
|
+
"maturity": "stable",
|
|
35
|
+
"compiled_prerequisites": [],
|
|
36
|
+
"input_kind": "mermaid-source"
|
|
23
37
|
},
|
|
24
38
|
{
|
|
25
39
|
"id": "document-analysis-json",
|
|
26
|
-
"
|
|
40
|
+
"maturity": "stable",
|
|
41
|
+
"compiled_prerequisites": [],
|
|
42
|
+
"input_kind": "mermaid-source"
|
|
27
43
|
},
|
|
28
44
|
{
|
|
29
45
|
"id": "edge-geometry-json",
|
|
30
|
-
"
|
|
46
|
+
"maturity": "stable",
|
|
47
|
+
"compiled_prerequisites": [],
|
|
48
|
+
"input_kind": "mermaid-source"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"id": "export-theme-preset-json",
|
|
52
|
+
"maturity": "alpha",
|
|
53
|
+
"compiled_prerequisites": [],
|
|
54
|
+
"input_kind": "theme-preset-id"
|
|
31
55
|
},
|
|
32
56
|
{
|
|
33
57
|
"id": "jpeg",
|
|
58
|
+
"maturity": "stable",
|
|
34
59
|
"compiled_prerequisites": [
|
|
35
60
|
"svg"
|
|
36
|
-
]
|
|
61
|
+
],
|
|
62
|
+
"input_kind": "mermaid-source"
|
|
37
63
|
},
|
|
38
64
|
{
|
|
39
65
|
"id": "layout-json",
|
|
40
|
-
"
|
|
66
|
+
"maturity": "stable",
|
|
67
|
+
"compiled_prerequisites": [],
|
|
68
|
+
"input_kind": "mermaid-source"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"id": "materialize-theme-json",
|
|
72
|
+
"maturity": "alpha",
|
|
73
|
+
"compiled_prerequisites": [],
|
|
74
|
+
"input_kind": "theme-design-json"
|
|
41
75
|
},
|
|
42
76
|
{
|
|
43
77
|
"id": "pdf",
|
|
78
|
+
"maturity": "stable",
|
|
44
79
|
"compiled_prerequisites": [
|
|
45
80
|
"svg"
|
|
46
|
-
]
|
|
81
|
+
],
|
|
82
|
+
"input_kind": "mermaid-source"
|
|
47
83
|
},
|
|
48
84
|
{
|
|
49
85
|
"id": "png",
|
|
86
|
+
"maturity": "stable",
|
|
50
87
|
"compiled_prerequisites": [
|
|
51
88
|
"svg"
|
|
52
|
-
]
|
|
89
|
+
],
|
|
90
|
+
"input_kind": "mermaid-source"
|
|
53
91
|
},
|
|
54
92
|
{
|
|
55
93
|
"id": "semantic-json",
|
|
56
|
-
"
|
|
94
|
+
"maturity": "stable",
|
|
95
|
+
"compiled_prerequisites": [],
|
|
96
|
+
"input_kind": "mermaid-source"
|
|
57
97
|
},
|
|
58
98
|
{
|
|
59
99
|
"id": "svg",
|
|
60
|
-
"
|
|
100
|
+
"maturity": "stable",
|
|
101
|
+
"compiled_prerequisites": [],
|
|
102
|
+
"input_kind": "mermaid-source"
|
|
61
103
|
},
|
|
62
104
|
{
|
|
63
105
|
"id": "svg-plan-json",
|
|
64
|
-
"
|
|
106
|
+
"maturity": "stable",
|
|
107
|
+
"compiled_prerequisites": [],
|
|
108
|
+
"input_kind": "mermaid-source"
|
|
65
109
|
},
|
|
66
110
|
{
|
|
67
111
|
"id": "validation-json",
|
|
68
|
-
"
|
|
112
|
+
"maturity": "stable",
|
|
113
|
+
"compiled_prerequisites": [],
|
|
114
|
+
"input_kind": "mermaid-source"
|
|
69
115
|
}
|
|
70
116
|
];
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"capability_ids": [
|
|
9
9
|
"layout-cytoscape",
|
|
10
10
|
"layout-elk",
|
|
11
|
+
"math",
|
|
11
12
|
"svg"
|
|
12
13
|
],
|
|
13
14
|
"output_ids": [
|
|
@@ -23,16 +24,19 @@
|
|
|
23
24
|
],
|
|
24
25
|
"system_adapter_ids": [],
|
|
25
26
|
"operation_ids": [
|
|
27
|
+
"describe-theme-support-json",
|
|
28
|
+
"export-theme-preset-json",
|
|
26
29
|
"layout-json",
|
|
30
|
+
"materialize-theme-json",
|
|
27
31
|
"semantic-json",
|
|
28
32
|
"svg",
|
|
29
33
|
"svg-plan-json"
|
|
30
34
|
],
|
|
31
35
|
"metadata_ids": [
|
|
32
36
|
"diagram-family-capabilities",
|
|
33
|
-
"presentation-catalog",
|
|
34
37
|
"supported-diagrams",
|
|
35
|
-
"supported-themes"
|
|
38
|
+
"supported-themes",
|
|
39
|
+
"theme-catalog"
|
|
36
40
|
],
|
|
37
41
|
"option_group_ids": [
|
|
38
42
|
"environment",
|
|
@@ -40,11 +44,11 @@
|
|
|
40
44
|
"fixed_today",
|
|
41
45
|
"layout",
|
|
42
46
|
"parse",
|
|
43
|
-
"presentation",
|
|
44
47
|
"resources",
|
|
45
48
|
"runtime_policy",
|
|
46
49
|
"site_config",
|
|
47
50
|
"svg",
|
|
51
|
+
"theme",
|
|
48
52
|
"version"
|
|
49
53
|
],
|
|
50
54
|
"constructor_service_ids": [
|
|
@@ -85,14 +89,14 @@
|
|
|
85
89
|
},
|
|
86
90
|
"response": {
|
|
87
91
|
"max_utf8_bytes": 27262976,
|
|
88
|
-
"max_depth":
|
|
92
|
+
"max_depth": 9,
|
|
89
93
|
"max_members": 32,
|
|
90
94
|
"max_tokens": 128,
|
|
91
95
|
"max_string_utf8_bytes": 16777216
|
|
92
96
|
},
|
|
93
97
|
"error": {
|
|
94
|
-
"max_utf8_bytes":
|
|
95
|
-
"max_depth":
|
|
98
|
+
"max_utf8_bytes": 1048576,
|
|
99
|
+
"max_depth": 9,
|
|
96
100
|
"max_members": 32,
|
|
97
101
|
"max_tokens": 128,
|
|
98
102
|
"max_string_utf8_bytes": 65536
|
package/dist/index.d.ts
CHANGED
|
@@ -5,10 +5,11 @@ export type MermanResourceProfile =
|
|
|
5
5
|
| "unbounded-for-trusted-input";
|
|
6
6
|
|
|
7
7
|
export interface MermanBindingOptions {
|
|
8
|
-
version?:
|
|
8
|
+
version?: 3;
|
|
9
9
|
runtime_policy?: "deterministic";
|
|
10
10
|
environment?: {
|
|
11
|
-
|
|
11
|
+
theme_portability?: "best-effort" | "require-portable";
|
|
12
|
+
text_measurement?: "deterministic" | null;
|
|
12
13
|
[key: string]: unknown;
|
|
13
14
|
};
|
|
14
15
|
resources?: {
|
|
@@ -270,6 +271,8 @@ export declare class MermanOperationError extends MermanError {
|
|
|
270
271
|
readonly codeName: string | null;
|
|
271
272
|
readonly kind: "generic" | "unknown-operation" | "missing-capability" | string;
|
|
272
273
|
readonly capabilityId: string | null;
|
|
274
|
+
/** Complete core-owned details, including versioned theme_authoring diagnostics. */
|
|
275
|
+
readonly details: Readonly<Record<string, unknown>> | null;
|
|
273
276
|
readonly resourceDetails: MermanResourceErrorDetails | null;
|
|
274
277
|
readonly iconRegistryDetails: MermanIconRegistryErrorDetails | null;
|
|
275
278
|
readonly diagnosticDetails: MermanDiagnosticErrorDetails | null;
|
package/dist/native-loader.mjs
CHANGED
|
@@ -11,6 +11,8 @@ import {
|
|
|
11
11
|
const TARGET_PACKAGES = Object.freeze({
|
|
12
12
|
"darwin-arm64": "@mermanjs/node-darwin-arm64",
|
|
13
13
|
"darwin-x64": "@mermanjs/node-darwin-x64",
|
|
14
|
+
"linux-arm64-gnu": "@mermanjs/node-linux-arm64-gnu",
|
|
15
|
+
"linux-arm64-musl": "@mermanjs/node-linux-arm64-musl",
|
|
14
16
|
"linux-x64-gnu": "@mermanjs/node-linux-x64-gnu",
|
|
15
17
|
"linux-x64-musl": "@mermanjs/node-linux-x64-musl",
|
|
16
18
|
"win32-x64-msvc": "@mermanjs/node-win32-x64-msvc",
|
|
@@ -59,9 +61,9 @@ export function resolveNodeTarget({
|
|
|
59
61
|
return `darwin-${arch}`;
|
|
60
62
|
}
|
|
61
63
|
if (platform === "win32" && arch === "x64") return "win32-x64-msvc";
|
|
62
|
-
if (platform === "linux" && arch === "x64") {
|
|
63
|
-
const libc = linuxLibc(report);
|
|
64
|
-
return `linux
|
|
64
|
+
if (platform === "linux" && (arch === "arm64" || arch === "x64")) {
|
|
65
|
+
const libc = linuxLibc(report, arch);
|
|
66
|
+
return `linux-${arch}-${libc}`;
|
|
65
67
|
}
|
|
66
68
|
throw new MermanUnsupportedTargetError({ platform, arch });
|
|
67
69
|
}
|
|
@@ -87,7 +89,7 @@ export function loadNativeBinding({
|
|
|
87
89
|
}
|
|
88
90
|
}
|
|
89
91
|
|
|
90
|
-
function linuxLibc(report) {
|
|
92
|
+
function linuxLibc(report, arch) {
|
|
91
93
|
if (report?.header?.glibcVersionRuntime) return "gnu";
|
|
92
94
|
if (
|
|
93
95
|
Array.isArray(report?.sharedObjects) &&
|
|
@@ -97,7 +99,7 @@ function linuxLibc(report) {
|
|
|
97
99
|
}
|
|
98
100
|
throw new MermanUnsupportedTargetError({
|
|
99
101
|
platform: "linux",
|
|
100
|
-
arch
|
|
102
|
+
arch,
|
|
101
103
|
reason:
|
|
102
104
|
"Cannot determine Linux libc from process.report; refusing to guess a platform package.",
|
|
103
105
|
});
|