@mermanjs/node-wasm 0.9.3 → 0.10.0-alpha.1
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 +25 -6
- package/README.md +51 -8
- 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 +123 -7
- package/THIRD_PARTY_NOTICES.md +44 -26
- package/artifact/merman_node_bg.wasm +0 -0
- package/dist/engine.mjs +37 -24
- package/dist/errors.mjs +45 -20
- package/dist/generated/binding-contract.mjs +197 -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,119 @@ export const BINDING_OPERATION_METADATA_CONTRACT = {
|
|
|
422
441
|
]
|
|
423
442
|
}
|
|
424
443
|
],
|
|
444
|
+
"theme_execution_evidence_versions": [
|
|
445
|
+
{
|
|
446
|
+
"version": 1,
|
|
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": "diagnostics",
|
|
506
|
+
"json_type": "array",
|
|
507
|
+
"required": false,
|
|
508
|
+
"integer_width_bits": null,
|
|
509
|
+
"open_value": true
|
|
510
|
+
}
|
|
511
|
+
],
|
|
512
|
+
"max_id_utf8_bytes": 128,
|
|
513
|
+
"max_target_reason_ids": 32,
|
|
514
|
+
"target_reason_ids_unique": true
|
|
515
|
+
}
|
|
516
|
+
],
|
|
517
|
+
"layout_adaptation_fields": [
|
|
518
|
+
{
|
|
519
|
+
"name": "mode",
|
|
520
|
+
"json_type": "string",
|
|
521
|
+
"required": true,
|
|
522
|
+
"integer_width_bits": null,
|
|
523
|
+
"open_value": true
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"name": "requested_width",
|
|
527
|
+
"json_type": "number",
|
|
528
|
+
"required": true,
|
|
529
|
+
"integer_width_bits": null,
|
|
530
|
+
"open_value": false
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
"name": "actual_width",
|
|
534
|
+
"json_type": "number",
|
|
535
|
+
"required": true,
|
|
536
|
+
"integer_width_bits": null,
|
|
537
|
+
"open_value": false
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
"name": "overflowed",
|
|
541
|
+
"json_type": "boolean",
|
|
542
|
+
"required": true,
|
|
543
|
+
"integer_width_bits": null,
|
|
544
|
+
"open_value": false
|
|
545
|
+
}
|
|
546
|
+
],
|
|
425
547
|
"additional_fields_policy": "preserve",
|
|
426
548
|
"unknown_output_plan_policy": "preserve",
|
|
549
|
+
"unknown_theme_execution_evidence_policy": "preserve",
|
|
427
550
|
"original_json_policy": "preserve-exact-bytes"
|
|
428
551
|
};
|
|
429
552
|
|
|
430
553
|
export const BINDING_OPERATION_EXPECTATIONS = [
|
|
431
554
|
{
|
|
432
555
|
"operation_id": "analysis-facts-json",
|
|
556
|
+
"maturity": "stable",
|
|
433
557
|
"output_id": null,
|
|
434
558
|
"media_type": "application/json",
|
|
435
559
|
"metadata_schema_version": 1,
|
|
@@ -445,6 +569,7 @@ export const BINDING_OPERATION_EXPECTATIONS = [
|
|
|
445
569
|
},
|
|
446
570
|
{
|
|
447
571
|
"operation_id": "analysis-json",
|
|
572
|
+
"maturity": "stable",
|
|
448
573
|
"output_id": null,
|
|
449
574
|
"media_type": "application/json",
|
|
450
575
|
"metadata_schema_version": 1,
|
|
@@ -460,6 +585,7 @@ export const BINDING_OPERATION_EXPECTATIONS = [
|
|
|
460
585
|
},
|
|
461
586
|
{
|
|
462
587
|
"operation_id": "ascii",
|
|
588
|
+
"maturity": "stable",
|
|
463
589
|
"output_id": "ascii",
|
|
464
590
|
"media_type": "text/plain; charset=utf-8",
|
|
465
591
|
"metadata_schema_version": 1,
|
|
@@ -473,8 +599,25 @@ export const BINDING_OPERATION_EXPECTATIONS = [
|
|
|
473
599
|
"capability_id": "ascii"
|
|
474
600
|
}
|
|
475
601
|
},
|
|
602
|
+
{
|
|
603
|
+
"operation_id": "describe-theme-support-json",
|
|
604
|
+
"maturity": "alpha",
|
|
605
|
+
"output_id": null,
|
|
606
|
+
"media_type": "application/json",
|
|
607
|
+
"metadata_schema_version": 1,
|
|
608
|
+
"requires_uri": false,
|
|
609
|
+
"availability_capability_id": "svg",
|
|
610
|
+
"compiled_prerequisite_ids": [],
|
|
611
|
+
"unavailable": {
|
|
612
|
+
"status_code": 7,
|
|
613
|
+
"status_name": "MERMAN_UNSUPPORTED_OPERATION",
|
|
614
|
+
"error_kind": "missing-capability",
|
|
615
|
+
"capability_id": "svg"
|
|
616
|
+
}
|
|
617
|
+
},
|
|
476
618
|
{
|
|
477
619
|
"operation_id": "document-analysis-facts-json",
|
|
620
|
+
"maturity": "stable",
|
|
478
621
|
"output_id": null,
|
|
479
622
|
"media_type": "application/json",
|
|
480
623
|
"metadata_schema_version": 1,
|
|
@@ -490,6 +633,7 @@ export const BINDING_OPERATION_EXPECTATIONS = [
|
|
|
490
633
|
},
|
|
491
634
|
{
|
|
492
635
|
"operation_id": "document-analysis-json",
|
|
636
|
+
"maturity": "stable",
|
|
493
637
|
"output_id": null,
|
|
494
638
|
"media_type": "application/json",
|
|
495
639
|
"metadata_schema_version": 1,
|
|
@@ -505,6 +649,23 @@ export const BINDING_OPERATION_EXPECTATIONS = [
|
|
|
505
649
|
},
|
|
506
650
|
{
|
|
507
651
|
"operation_id": "edge-geometry-json",
|
|
652
|
+
"maturity": "stable",
|
|
653
|
+
"output_id": null,
|
|
654
|
+
"media_type": "application/json",
|
|
655
|
+
"metadata_schema_version": 1,
|
|
656
|
+
"requires_uri": false,
|
|
657
|
+
"availability_capability_id": "svg",
|
|
658
|
+
"compiled_prerequisite_ids": [],
|
|
659
|
+
"unavailable": {
|
|
660
|
+
"status_code": 7,
|
|
661
|
+
"status_name": "MERMAN_UNSUPPORTED_OPERATION",
|
|
662
|
+
"error_kind": "missing-capability",
|
|
663
|
+
"capability_id": "svg"
|
|
664
|
+
}
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
"operation_id": "export-theme-preset-json",
|
|
668
|
+
"maturity": "alpha",
|
|
508
669
|
"output_id": null,
|
|
509
670
|
"media_type": "application/json",
|
|
510
671
|
"metadata_schema_version": 1,
|
|
@@ -520,6 +681,7 @@ export const BINDING_OPERATION_EXPECTATIONS = [
|
|
|
520
681
|
},
|
|
521
682
|
{
|
|
522
683
|
"operation_id": "jpeg",
|
|
684
|
+
"maturity": "stable",
|
|
523
685
|
"output_id": "jpeg",
|
|
524
686
|
"media_type": "image/jpeg",
|
|
525
687
|
"metadata_schema_version": 1,
|
|
@@ -537,6 +699,23 @@ export const BINDING_OPERATION_EXPECTATIONS = [
|
|
|
537
699
|
},
|
|
538
700
|
{
|
|
539
701
|
"operation_id": "layout-json",
|
|
702
|
+
"maturity": "stable",
|
|
703
|
+
"output_id": null,
|
|
704
|
+
"media_type": "application/json",
|
|
705
|
+
"metadata_schema_version": 1,
|
|
706
|
+
"requires_uri": false,
|
|
707
|
+
"availability_capability_id": "svg",
|
|
708
|
+
"compiled_prerequisite_ids": [],
|
|
709
|
+
"unavailable": {
|
|
710
|
+
"status_code": 7,
|
|
711
|
+
"status_name": "MERMAN_UNSUPPORTED_OPERATION",
|
|
712
|
+
"error_kind": "missing-capability",
|
|
713
|
+
"capability_id": "svg"
|
|
714
|
+
}
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
"operation_id": "materialize-theme-json",
|
|
718
|
+
"maturity": "alpha",
|
|
540
719
|
"output_id": null,
|
|
541
720
|
"media_type": "application/json",
|
|
542
721
|
"metadata_schema_version": 1,
|
|
@@ -552,6 +731,7 @@ export const BINDING_OPERATION_EXPECTATIONS = [
|
|
|
552
731
|
},
|
|
553
732
|
{
|
|
554
733
|
"operation_id": "pdf",
|
|
734
|
+
"maturity": "stable",
|
|
555
735
|
"output_id": "pdf",
|
|
556
736
|
"media_type": "application/pdf",
|
|
557
737
|
"metadata_schema_version": 1,
|
|
@@ -569,6 +749,7 @@ export const BINDING_OPERATION_EXPECTATIONS = [
|
|
|
569
749
|
},
|
|
570
750
|
{
|
|
571
751
|
"operation_id": "png",
|
|
752
|
+
"maturity": "stable",
|
|
572
753
|
"output_id": "png",
|
|
573
754
|
"media_type": "image/png",
|
|
574
755
|
"metadata_schema_version": 1,
|
|
@@ -586,6 +767,7 @@ export const BINDING_OPERATION_EXPECTATIONS = [
|
|
|
586
767
|
},
|
|
587
768
|
{
|
|
588
769
|
"operation_id": "semantic-json",
|
|
770
|
+
"maturity": "stable",
|
|
589
771
|
"output_id": null,
|
|
590
772
|
"media_type": "application/json",
|
|
591
773
|
"metadata_schema_version": 1,
|
|
@@ -596,6 +778,7 @@ export const BINDING_OPERATION_EXPECTATIONS = [
|
|
|
596
778
|
},
|
|
597
779
|
{
|
|
598
780
|
"operation_id": "svg",
|
|
781
|
+
"maturity": "stable",
|
|
599
782
|
"output_id": "svg",
|
|
600
783
|
"media_type": "image/svg+xml",
|
|
601
784
|
"metadata_schema_version": 1,
|
|
@@ -611,6 +794,7 @@ export const BINDING_OPERATION_EXPECTATIONS = [
|
|
|
611
794
|
},
|
|
612
795
|
{
|
|
613
796
|
"operation_id": "svg-plan-json",
|
|
797
|
+
"maturity": "stable",
|
|
614
798
|
"output_id": null,
|
|
615
799
|
"media_type": "application/json",
|
|
616
800
|
"metadata_schema_version": 1,
|
|
@@ -626,6 +810,7 @@ export const BINDING_OPERATION_EXPECTATIONS = [
|
|
|
626
810
|
},
|
|
627
811
|
{
|
|
628
812
|
"operation_id": "validation-json",
|
|
813
|
+
"maturity": "stable",
|
|
629
814
|
"output_id": null,
|
|
630
815
|
"media_type": "application/json",
|
|
631
816
|
"metadata_schema_version": 1,
|
|
@@ -666,15 +851,15 @@ export const METADATA_SPECS = [
|
|
|
666
851
|
"required_capability_id": "analysis"
|
|
667
852
|
},
|
|
668
853
|
{
|
|
669
|
-
"id": "
|
|
854
|
+
"id": "supported-diagrams",
|
|
670
855
|
"required_capability_id": null
|
|
671
856
|
},
|
|
672
857
|
{
|
|
673
|
-
"id": "supported-
|
|
858
|
+
"id": "supported-themes",
|
|
674
859
|
"required_capability_id": null
|
|
675
860
|
},
|
|
676
861
|
{
|
|
677
|
-
"id": "
|
|
862
|
+
"id": "theme-catalog",
|
|
678
863
|
"required_capability_id": null
|
|
679
864
|
}
|
|
680
865
|
];
|
|
@@ -742,12 +927,6 @@ export const BINDING_OPTION_GROUP_SPECS = [
|
|
|
742
927
|
],
|
|
743
928
|
"requires_svg_pipeline": false
|
|
744
929
|
},
|
|
745
|
-
{
|
|
746
|
-
"id": "presentation",
|
|
747
|
-
"always_available": false,
|
|
748
|
-
"any_capability_ids": [],
|
|
749
|
-
"requires_svg_pipeline": true
|
|
750
|
-
},
|
|
751
930
|
{
|
|
752
931
|
"id": "raster",
|
|
753
932
|
"always_available": false,
|
|
@@ -781,6 +960,12 @@ export const BINDING_OPTION_GROUP_SPECS = [
|
|
|
781
960
|
"any_capability_ids": [],
|
|
782
961
|
"requires_svg_pipeline": true
|
|
783
962
|
},
|
|
963
|
+
{
|
|
964
|
+
"id": "theme",
|
|
965
|
+
"always_available": false,
|
|
966
|
+
"any_capability_ids": [],
|
|
967
|
+
"requires_svg_pipeline": true
|
|
968
|
+
},
|
|
784
969
|
{
|
|
785
970
|
"id": "version",
|
|
786
971
|
"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
|
});
|