flowdular 0.4.1 → 0.5.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.
@@ -18,6 +18,9 @@ var RegistryError = class extends Error {
18
18
  var ALLOWED = Object.freeze({ allowed: true });
19
19
  var NO_POLICIES = Object.freeze([]);
20
20
 
21
+ // ../kernel/src/lifecycle.ts
22
+ var ALLOWED2 = Object.freeze({ allowed: true });
23
+
21
24
  // ../kernel/src/version-range.ts
22
25
  var VERSION = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$/;
23
26
  var COMPARATOR = /^(\^|~|>=|<=|>|<|=)?\s*(.+)$/;
@@ -435,8 +438,12 @@ var module_spec_schema_default = {
435
438
  "locales"
436
439
  ],
437
440
  properties: {
438
- $schema: { type: "string" },
439
- schemaVersion: { enum: [1, 2] },
441
+ $schema: {
442
+ type: "string"
443
+ },
444
+ schemaVersion: {
445
+ enum: [1, 2]
446
+ },
440
447
  id: {
441
448
  type: "string",
442
449
  pattern: "^[a-z][a-z0-9-]*(\\.[a-z][a-z0-9-]*)+$"
@@ -448,9 +455,17 @@ var module_spec_schema_default = {
448
455
  status: {
449
456
  enum: ["draft", "in-review", "approved", "implemented", "deprecated"]
450
457
  },
451
- name: { type: "string", minLength: 1 },
452
- description: { type: "string", minLength: 1 },
453
- profile: { enum: ["full", "headless", "ui", "integration"] },
458
+ name: {
459
+ type: "string",
460
+ minLength: 1
461
+ },
462
+ description: {
463
+ type: "string",
464
+ minLength: 1
465
+ },
466
+ profile: {
467
+ enum: ["full", "headless", "ui", "integration"]
468
+ },
454
469
  capabilities: {
455
470
  type: "array",
456
471
  items: {
@@ -472,8 +487,12 @@ var module_spec_schema_default = {
472
487
  additionalProperties: false,
473
488
  required: ["id", "range"],
474
489
  properties: {
475
- id: { type: "string" },
476
- range: { type: "string" }
490
+ id: {
491
+ type: "string"
492
+ },
493
+ range: {
494
+ type: "string"
495
+ }
477
496
  }
478
497
  }
479
498
  },
@@ -496,20 +515,29 @@ var module_spec_schema_default = {
496
515
  type: "string",
497
516
  pattern: "^[a-z][a-z0-9-]*(\\.[a-z][a-z0-9-]*)+$"
498
517
  },
499
- optional: { type: "boolean" }
518
+ optional: {
519
+ type: "boolean"
520
+ }
500
521
  }
501
522
  }
502
523
  },
503
- tenancy: { enum: ["required", "optional", "none"] },
524
+ tenancy: {
525
+ enum: ["required", "optional", "none"]
526
+ },
504
527
  locales: {
505
528
  type: "array",
506
529
  minItems: 1,
507
- items: { type: "string" },
530
+ items: {
531
+ type: "string"
532
+ },
508
533
  uniqueItems: true
509
534
  },
510
535
  invariants: {
511
536
  type: "array",
512
- items: { type: "string", minLength: 1 },
537
+ items: {
538
+ type: "string",
539
+ minLength: 1
540
+ },
513
541
  uniqueItems: true
514
542
  },
515
543
  permissions: {
@@ -523,14 +551,20 @@ var module_spec_schema_default = {
523
551
  type: "string",
524
552
  pattern: "^[a-z][a-z0-9-]*(\\.[a-z][a-z0-9-]*)+$"
525
553
  },
526
- description: { type: "string", minLength: 1 }
554
+ description: {
555
+ type: "string",
556
+ minLength: 1
557
+ }
527
558
  }
528
559
  },
529
560
  uniqueItems: true
530
561
  },
531
562
  dataOwnership: {
532
563
  type: "array",
533
- items: { type: "string", minLength: 1 },
564
+ items: {
565
+ type: "string",
566
+ minLength: 1
567
+ },
534
568
  uniqueItems: true
535
569
  },
536
570
  acceptanceScenarios: {
@@ -540,63 +574,98 @@ var module_spec_schema_default = {
540
574
  additionalProperties: false,
541
575
  required: ["id", "given", "when", "then"],
542
576
  properties: {
543
- id: { type: "string", pattern: "^[A-Z][A-Z0-9-]+$" },
544
- given: { type: "string", minLength: 1 },
545
- when: { type: "string", minLength: 1 },
546
- then: { type: "string", minLength: 1 }
577
+ id: {
578
+ type: "string",
579
+ pattern: "^[A-Z][A-Z0-9-]+$"
580
+ },
581
+ given: {
582
+ type: "string",
583
+ minLength: 1
584
+ },
585
+ when: {
586
+ type: "string",
587
+ minLength: 1
588
+ },
589
+ then: {
590
+ type: "string",
591
+ minLength: 1
592
+ }
547
593
  }
548
594
  },
549
595
  uniqueItems: true
550
596
  },
551
597
  entities: {
552
598
  type: "array",
553
- items: { $ref: "#/$defs/entity" },
599
+ items: {
600
+ $ref: "#/$defs/entity"
601
+ },
554
602
  uniqueItems: true
555
603
  },
556
604
  screens: {
557
605
  type: "array",
558
- items: { $ref: "#/$defs/screen" },
606
+ items: {
607
+ $ref: "#/$defs/screen"
608
+ },
559
609
  uniqueItems: true
560
610
  },
561
611
  actions: {
562
612
  type: "array",
563
- items: { $ref: "#/$defs/action" },
613
+ items: {
614
+ $ref: "#/$defs/action"
615
+ },
564
616
  uniqueItems: true
565
617
  },
566
618
  widgets: {
567
619
  type: "array",
568
- items: { $ref: "#/$defs/widget" },
620
+ items: {
621
+ $ref: "#/$defs/widget"
622
+ },
569
623
  uniqueItems: true
570
624
  },
571
625
  settings: {
572
626
  type: "array",
573
- items: { $ref: "#/$defs/setting" },
627
+ items: {
628
+ $ref: "#/$defs/setting"
629
+ },
574
630
  uniqueItems: true
575
631
  },
576
632
  agentTools: {
577
633
  type: "array",
578
- items: { $ref: "#/$defs/agentTool" },
634
+ items: {
635
+ $ref: "#/$defs/agentTool"
636
+ },
579
637
  uniqueItems: true
580
638
  },
581
639
  outOfScope: {
582
640
  type: "array",
583
- items: { type: "string", minLength: 1 },
641
+ items: {
642
+ type: "string",
643
+ minLength: 1
644
+ },
584
645
  uniqueItems: true
585
646
  },
586
647
  decisions: {
587
648
  type: "array",
588
- items: { $ref: "#/$defs/decision" },
649
+ items: {
650
+ $ref: "#/$defs/decision"
651
+ },
589
652
  uniqueItems: true
590
653
  },
591
- research: { $ref: "#/$defs/research" },
654
+ research: {
655
+ $ref: "#/$defs/research"
656
+ },
592
657
  adapters: {
593
658
  type: "array",
594
- items: { $ref: "#/$defs/adapter" },
659
+ items: {
660
+ $ref: "#/$defs/adapter"
661
+ },
595
662
  uniqueItems: true
596
663
  },
597
664
  templates: {
598
665
  type: "array",
599
- items: { $ref: "#/$defs/template" },
666
+ items: {
667
+ $ref: "#/$defs/template"
668
+ },
600
669
  uniqueItems: true
601
670
  }
602
671
  },
@@ -604,7 +673,11 @@ var module_spec_schema_default = {
604
673
  {
605
674
  if: {
606
675
  required: ["schemaVersion"],
607
- properties: { schemaVersion: { const: 1 } }
676
+ properties: {
677
+ schemaVersion: {
678
+ const: 1
679
+ }
680
+ }
608
681
  },
609
682
  then: {
610
683
  properties: {
@@ -624,21 +697,40 @@ var module_spec_schema_default = {
624
697
  }
625
698
  ],
626
699
  $defs: {
627
- entityId: { type: "string", pattern: "^[a-z][a-z0-9-]*$" },
628
- fieldId: { type: "string", pattern: "^[a-z][a-zA-Z0-9]*$" },
629
- enumValue: { type: "string", pattern: "^[a-z][a-z0-9_-]*$" },
700
+ entityId: {
701
+ type: "string",
702
+ pattern: "^[a-z][a-z0-9-]*$"
703
+ },
704
+ fieldId: {
705
+ type: "string",
706
+ pattern: "^[a-z][a-zA-Z0-9]*$"
707
+ },
708
+ enumValue: {
709
+ type: "string",
710
+ pattern: "^[a-z][a-z0-9_-]*$"
711
+ },
630
712
  entity: {
631
713
  type: "object",
632
714
  additionalProperties: false,
633
715
  required: ["id", "name", "fields"],
634
716
  properties: {
635
- id: { $ref: "#/$defs/entityId" },
636
- name: { type: "string", minLength: 1 },
637
- description: { type: "string", minLength: 1 },
717
+ id: {
718
+ $ref: "#/$defs/entityId"
719
+ },
720
+ name: {
721
+ type: "string",
722
+ minLength: 1
723
+ },
724
+ description: {
725
+ type: "string",
726
+ minLength: 1
727
+ },
638
728
  fields: {
639
729
  type: "array",
640
730
  minItems: 1,
641
- items: { $ref: "#/$defs/field" },
731
+ items: {
732
+ $ref: "#/$defs/field"
733
+ },
642
734
  uniqueItems: true
643
735
  },
644
736
  states: {
@@ -646,11 +738,15 @@ var module_spec_schema_default = {
646
738
  additionalProperties: false,
647
739
  required: ["field", "values"],
648
740
  properties: {
649
- field: { $ref: "#/$defs/fieldId" },
741
+ field: {
742
+ $ref: "#/$defs/fieldId"
743
+ },
650
744
  values: {
651
745
  type: "array",
652
746
  minItems: 1,
653
- items: { $ref: "#/$defs/enumValue" },
747
+ items: {
748
+ $ref: "#/$defs/enumValue"
749
+ },
654
750
  uniqueItems: true
655
751
  },
656
752
  transitions: {
@@ -660,9 +756,18 @@ var module_spec_schema_default = {
660
756
  additionalProperties: false,
661
757
  required: ["from", "to"],
662
758
  properties: {
663
- from: { type: "string", minLength: 1 },
664
- to: { type: "string", minLength: 1 },
665
- permission: { type: "string", minLength: 1 }
759
+ from: {
760
+ type: "string",
761
+ minLength: 1
762
+ },
763
+ to: {
764
+ type: "string",
765
+ minLength: 1
766
+ },
767
+ permission: {
768
+ type: "string",
769
+ minLength: 1
770
+ }
666
771
  }
667
772
  },
668
773
  uniqueItems: true
@@ -676,7 +781,9 @@ var module_spec_schema_default = {
676
781
  additionalProperties: false,
677
782
  required: ["id", "type"],
678
783
  properties: {
679
- id: { $ref: "#/$defs/fieldId" },
784
+ id: {
785
+ $ref: "#/$defs/fieldId"
786
+ },
680
787
  type: {
681
788
  enum: [
682
789
  "string",
@@ -691,20 +798,32 @@ var module_spec_schema_default = {
691
798
  "json"
692
799
  ]
693
800
  },
694
- required: { type: "boolean" },
695
- unique: { enum: ["tenant", "none"] },
696
- maxLength: { type: "integer", minimum: 1 },
801
+ required: {
802
+ type: "boolean"
803
+ },
804
+ unique: {
805
+ enum: ["tenant", "none"]
806
+ },
807
+ maxLength: {
808
+ type: "integer",
809
+ minimum: 1
810
+ },
697
811
  values: {
698
812
  type: "array",
699
813
  minItems: 1,
700
- items: { $ref: "#/$defs/enumValue" },
814
+ items: {
815
+ $ref: "#/$defs/enumValue"
816
+ },
701
817
  uniqueItems: true
702
818
  },
703
819
  reference: {
704
820
  type: "string",
705
821
  pattern: "^[a-z][a-z0-9-]*(\\.[a-z][a-z0-9-]*)*$"
706
822
  },
707
- description: { type: "string", minLength: 1 }
823
+ description: {
824
+ type: "string",
825
+ minLength: 1
826
+ }
708
827
  }
709
828
  },
710
829
  screen: {
@@ -712,21 +831,37 @@ var module_spec_schema_default = {
712
831
  additionalProperties: false,
713
832
  required: ["id", "kind"],
714
833
  properties: {
715
- id: { $ref: "#/$defs/entityId" },
716
- kind: { enum: ["list", "record", "form", "dashboard"] },
717
- entity: { $ref: "#/$defs/entityId" },
718
- title: { type: "string", minLength: 1 },
834
+ id: {
835
+ $ref: "#/$defs/entityId"
836
+ },
837
+ kind: {
838
+ enum: ["list", "record", "form", "dashboard"]
839
+ },
840
+ entity: {
841
+ $ref: "#/$defs/entityId"
842
+ },
843
+ title: {
844
+ type: "string",
845
+ minLength: 1
846
+ },
719
847
  columns: {
720
848
  type: "array",
721
- items: { $ref: "#/$defs/fieldId" },
849
+ items: {
850
+ $ref: "#/$defs/fieldId"
851
+ },
722
852
  uniqueItems: true
723
853
  },
724
854
  filters: {
725
855
  type: "array",
726
- items: { $ref: "#/$defs/fieldId" },
856
+ items: {
857
+ $ref: "#/$defs/fieldId"
858
+ },
727
859
  uniqueItems: true
728
860
  },
729
- navigationGroup: { type: "string", minLength: 1 }
861
+ navigationGroup: {
862
+ type: "string",
863
+ minLength: 1
864
+ }
730
865
  }
731
866
  },
732
867
  action: {
@@ -741,18 +876,29 @@ var module_spec_schema_default = {
741
876
  "description"
742
877
  ],
743
878
  properties: {
744
- id: { $ref: "#/$defs/entityId" },
745
- entity: { $ref: "#/$defs/entityId" },
879
+ id: {
880
+ $ref: "#/$defs/entityId"
881
+ },
882
+ entity: {
883
+ $ref: "#/$defs/entityId"
884
+ },
746
885
  permission: {
747
886
  type: "string",
748
887
  pattern: "^[a-z][a-z0-9-]*(\\.[a-z][a-z0-9-]*)+$"
749
888
  },
750
- kind: { enum: ["create", "update", "delete", "custom"] },
889
+ kind: {
890
+ enum: ["create", "update", "delete", "custom"]
891
+ },
751
892
  risk: {
752
893
  enum: ["read", "workspace-write", "external", "destructive"]
753
894
  },
754
- idempotent: { type: "boolean" },
755
- description: { type: "string", minLength: 1 }
895
+ idempotent: {
896
+ type: "boolean"
897
+ },
898
+ description: {
899
+ type: "string",
900
+ minLength: 1
901
+ }
756
902
  }
757
903
  },
758
904
  widget: {
@@ -760,7 +906,9 @@ var module_spec_schema_default = {
760
906
  additionalProperties: false,
761
907
  required: ["id", "slot", "description"],
762
908
  properties: {
763
- id: { $ref: "#/$defs/entityId" },
909
+ id: {
910
+ $ref: "#/$defs/entityId"
911
+ },
764
912
  slot: {
765
913
  enum: [
766
914
  "dashboard.metrics",
@@ -769,8 +917,13 @@ var module_spec_schema_default = {
769
917
  "topbar.actions"
770
918
  ]
771
919
  },
772
- entity: { $ref: "#/$defs/entityId" },
773
- description: { type: "string", minLength: 1 }
920
+ entity: {
921
+ $ref: "#/$defs/entityId"
922
+ },
923
+ description: {
924
+ type: "string",
925
+ minLength: 1
926
+ }
774
927
  }
775
928
  },
776
929
  setting: {
@@ -778,23 +931,44 @@ var module_spec_schema_default = {
778
931
  additionalProperties: false,
779
932
  required: ["key", "type", "scope", "description"],
780
933
  properties: {
781
- key: { $ref: "#/$defs/fieldId" },
782
- type: { enum: ["string", "integer", "boolean", "enum"] },
783
- scope: { enum: ["tenant", "platform"] },
934
+ key: {
935
+ $ref: "#/$defs/fieldId"
936
+ },
937
+ type: {
938
+ enum: ["string", "integer", "boolean", "enum"]
939
+ },
940
+ scope: {
941
+ enum: ["tenant", "platform"]
942
+ },
943
+ kind: {
944
+ enum: ["setting", "flag"]
945
+ },
784
946
  default: {
785
947
  oneOf: [
786
- { type: "string" },
787
- { type: "integer" },
788
- { type: "boolean" }
948
+ {
949
+ type: "string"
950
+ },
951
+ {
952
+ type: "integer"
953
+ },
954
+ {
955
+ type: "boolean"
956
+ }
789
957
  ]
790
958
  },
791
959
  values: {
792
960
  type: "array",
793
961
  minItems: 1,
794
- items: { type: "string", minLength: 1 },
962
+ items: {
963
+ type: "string",
964
+ minLength: 1
965
+ },
795
966
  uniqueItems: true
796
967
  },
797
- description: { type: "string", minLength: 1 }
968
+ description: {
969
+ type: "string",
970
+ minLength: 1
971
+ }
798
972
  }
799
973
  },
800
974
  agentTool: {
@@ -810,8 +984,13 @@ var module_spec_schema_default = {
810
984
  type: "string",
811
985
  pattern: "^[a-z][a-z0-9-]*(\\.[a-z][a-z0-9-]*)+$"
812
986
  },
813
- description: { type: "string", minLength: 1 },
814
- risk: { enum: ["read", "workspace-write"] }
987
+ description: {
988
+ type: "string",
989
+ minLength: 1
990
+ },
991
+ risk: {
992
+ enum: ["read", "workspace-write"]
993
+ }
815
994
  }
816
995
  },
817
996
  decision: {
@@ -819,10 +998,21 @@ var module_spec_schema_default = {
819
998
  additionalProperties: false,
820
999
  required: ["id", "question", "answer", "decidedBy"],
821
1000
  properties: {
822
- id: { type: "string", pattern: "^[A-Z][A-Z0-9-]+$" },
823
- question: { type: "string", minLength: 1 },
824
- answer: { type: "string", minLength: 1 },
825
- decidedBy: { enum: ["user", "default"] }
1001
+ id: {
1002
+ type: "string",
1003
+ pattern: "^[A-Z][A-Z0-9-]+$"
1004
+ },
1005
+ question: {
1006
+ type: "string",
1007
+ minLength: 1
1008
+ },
1009
+ answer: {
1010
+ type: "string",
1011
+ minLength: 1
1012
+ },
1013
+ decidedBy: {
1014
+ enum: ["user", "default"]
1015
+ }
826
1016
  }
827
1017
  },
828
1018
  domain: {
@@ -846,16 +1036,25 @@ var module_spec_schema_default = {
846
1036
  },
847
1037
  allowDomains: {
848
1038
  type: "array",
849
- items: { $ref: "#/$defs/domain" },
1039
+ items: {
1040
+ $ref: "#/$defs/domain"
1041
+ },
850
1042
  uniqueItems: true
851
1043
  },
852
1044
  denyDomains: {
853
1045
  type: "array",
854
- items: { $ref: "#/$defs/domain" },
1046
+ items: {
1047
+ $ref: "#/$defs/domain"
1048
+ },
855
1049
  uniqueItems: true
856
1050
  },
857
- monthlyQueryBudget: { type: "integer", minimum: 1 },
858
- evidenceOwner: { $ref: "#/$defs/entityId" }
1051
+ monthlyQueryBudget: {
1052
+ type: "integer",
1053
+ minimum: 1
1054
+ },
1055
+ evidenceOwner: {
1056
+ $ref: "#/$defs/entityId"
1057
+ }
859
1058
  }
860
1059
  },
861
1060
  adapter: {
@@ -874,9 +1073,17 @@ var module_spec_schema_default = {
874
1073
  type: "string",
875
1074
  pattern: "^[a-z][a-z0-9-]*(\\.[a-z][a-z0-9-]*)+$"
876
1075
  },
877
- direction: { enum: ["source", "sink"] },
878
- connector: { type: "string", pattern: "^[a-z][a-z0-9-]{0,95}$" },
879
- operation: { type: "string", pattern: "^[a-z][a-z0-9-]{0,63}$" },
1076
+ direction: {
1077
+ enum: ["source", "sink"]
1078
+ },
1079
+ connector: {
1080
+ type: "string",
1081
+ pattern: "^[a-z][a-z0-9-]{0,95}$"
1082
+ },
1083
+ operation: {
1084
+ type: "string",
1085
+ pattern: "^[a-z][a-z0-9-]{0,63}$"
1086
+ },
880
1087
  port: {
881
1088
  type: "string",
882
1089
  maxLength: 96,
@@ -884,7 +1091,9 @@ var module_spec_schema_default = {
884
1091
  },
885
1092
  schedule: {
886
1093
  anyOf: [
887
- { type: "null" },
1094
+ {
1095
+ type: "null"
1096
+ },
888
1097
  {
889
1098
  type: "string",
890
1099
  maxLength: 100,
@@ -895,7 +1104,9 @@ var module_spec_schema_default = {
895
1104
  mapping: {
896
1105
  type: "array",
897
1106
  minItems: 1,
898
- items: { $ref: "#/$defs/adapterMapping" },
1107
+ items: {
1108
+ $ref: "#/$defs/adapterMapping"
1109
+ },
899
1110
  uniqueItems: true
900
1111
  },
901
1112
  recorded: {
@@ -909,11 +1120,27 @@ var module_spec_schema_default = {
909
1120
  additionalProperties: false,
910
1121
  required: ["to", "transform"],
911
1122
  properties: {
912
- from: { type: "string", minLength: 1 },
913
- to: { type: "string", minLength: 1 },
914
- transform: { enum: ["rename", "constant", "format", "lookup"] },
1123
+ from: {
1124
+ type: "string",
1125
+ minLength: 1
1126
+ },
1127
+ to: {
1128
+ type: "string",
1129
+ minLength: 1
1130
+ },
1131
+ transform: {
1132
+ enum: ["rename", "constant", "format", "lookup"]
1133
+ },
915
1134
  value: {
916
- anyOf: [{ type: "null" }, { type: "string", minLength: 1 }]
1135
+ anyOf: [
1136
+ {
1137
+ type: "null"
1138
+ },
1139
+ {
1140
+ type: "string",
1141
+ minLength: 1
1142
+ }
1143
+ ]
917
1144
  }
918
1145
  }
919
1146
  },
@@ -922,10 +1149,19 @@ var module_spec_schema_default = {
922
1149
  additionalProperties: false,
923
1150
  required: ["id", "title", "inputEntity", "format", "body"],
924
1151
  properties: {
925
- id: { $ref: "#/$defs/entityId" },
926
- title: { type: "string", minLength: 1 },
927
- inputEntity: { $ref: "#/$defs/entityId" },
928
- format: { enum: ["pdf", "docx"] },
1152
+ id: {
1153
+ $ref: "#/$defs/entityId"
1154
+ },
1155
+ title: {
1156
+ type: "string",
1157
+ minLength: 1
1158
+ },
1159
+ inputEntity: {
1160
+ $ref: "#/$defs/entityId"
1161
+ },
1162
+ format: {
1163
+ enum: ["pdf", "docx"]
1164
+ },
929
1165
  body: {
930
1166
  type: "string",
931
1167
  pattern: "^templates/[a-z][a-z0-9-]*\\.md$"
@@ -1145,7 +1381,7 @@ var project_schema_default = {
1145
1381
  path: {
1146
1382
  type: "string",
1147
1383
  maxLength: 256,
1148
- pattern: "^(/|/[a-z0-9-]+(/[a-z0-9-]+)*)$"
1384
+ pattern: "^(/|/[a-z0-9-]+([.][a-z0-9-]+)*(/[a-z0-9-]+([.][a-z0-9-]+)*)*)$"
1149
1385
  },
1150
1386
  tenantId: {
1151
1387
  type: "string",
@@ -1428,8 +1664,76 @@ function pluralFamilyIssues(bundle, locale) {
1428
1664
  return issues;
1429
1665
  }
1430
1666
 
1667
+ // ../contracts/src/web.ts
1668
+ var RESERVED_WEB_SEGMENTS = Object.freeze([
1669
+ "setup",
1670
+ "health",
1671
+ "ready",
1672
+ "assets",
1673
+ "app",
1674
+ "api",
1675
+ "auth",
1676
+ "sign-in",
1677
+ "sign-up",
1678
+ "forgot-password",
1679
+ "reset-password",
1680
+ "accept-invitation"
1681
+ ]);
1682
+ var SEGMENT = "[a-z0-9-]+(?:\\.[a-z0-9-]+)*";
1683
+ var WEB_MOUNT_PATH = new RegExp(`^(?:/|/${SEGMENT}(?:/${SEGMENT})*)$`);
1684
+ var WEB_PAGE_PATH = new RegExp(
1685
+ `^(?:/|(?:/(?:${SEGMENT}|:[a-z][a-zA-Z0-9]*))+)$`
1686
+ );
1687
+
1688
+ // ../contracts/src/branding.ts
1689
+ var DEFAULT_APPLICATION_BRANDING = Object.freeze({
1690
+ appName: "Flowdular",
1691
+ documentTitle: "",
1692
+ description: "",
1693
+ ogImageUrl: "/og.png",
1694
+ faviconUrl: "/favicon.svg",
1695
+ themeColor: "#141B2E",
1696
+ logoUrl: ""
1697
+ });
1698
+ var BRANDING_NAME_MAX = 64;
1699
+ var BRANDING_TITLE_MAX = 120;
1700
+ var BRANDING_DESCRIPTION_MAX = 200;
1701
+ var BRANDING_URL_MAX = 512;
1702
+ var TEXT_BODY = `[^<>"'\\\\\\p{Cc}]`;
1703
+ var BRANDING_NAME_PATTERN = `${TEXT_BODY}{1,${BRANDING_NAME_MAX}}`;
1704
+ var BRANDING_TITLE_PATTERN = `|${TEXT_BODY}{1,${BRANDING_TITLE_MAX}}`;
1705
+ var BRANDING_DESCRIPTION_PATTERN = `|${TEXT_BODY}{1,${BRANDING_DESCRIPTION_MAX}}`;
1706
+ var ASSET_URL = `/(?![/\\\\])[^\\s<>"'\\\\]{0,${BRANDING_URL_MAX - 1}}|https://[^\\s<>"'\\\\/]{1,255}(?:/[^\\s<>"']{0,${BRANDING_URL_MAX - 1}})?`;
1707
+ var BRANDING_ASSET_URL_PATTERN = ASSET_URL;
1708
+ var BRANDING_OPTIONAL_ASSET_URL_PATTERN = `|${ASSET_URL}`;
1709
+ var BRANDING_COLOR_PATTERN = "#[0-9a-fA-F]{6}";
1710
+ var FIELDS = {
1711
+ appName: { pattern: BRANDING_NAME_PATTERN, max: BRANDING_NAME_MAX },
1712
+ documentTitle: {
1713
+ pattern: BRANDING_TITLE_PATTERN,
1714
+ max: BRANDING_TITLE_MAX
1715
+ },
1716
+ description: {
1717
+ pattern: BRANDING_DESCRIPTION_PATTERN,
1718
+ max: BRANDING_DESCRIPTION_MAX
1719
+ },
1720
+ ogImageUrl: { pattern: BRANDING_ASSET_URL_PATTERN, max: BRANDING_URL_MAX },
1721
+ faviconUrl: { pattern: BRANDING_ASSET_URL_PATTERN, max: BRANDING_URL_MAX },
1722
+ themeColor: { pattern: BRANDING_COLOR_PATTERN, max: 7 },
1723
+ logoUrl: {
1724
+ pattern: BRANDING_OPTIONAL_ASSET_URL_PATTERN,
1725
+ max: BRANDING_URL_MAX
1726
+ }
1727
+ };
1728
+ var EXPRESSIONS = new Map(
1729
+ Object.entries(FIELDS).map(([key, field]) => [
1730
+ key,
1731
+ new RegExp(`^(?:${field.pattern})$`, "u")
1732
+ ])
1733
+ );
1734
+
1431
1735
  // ../contracts/src/index.ts
1432
- var PLATFORM_API_VERSION = "0.1.22";
1736
+ var PLATFORM_API_VERSION = "0.1.29";
1433
1737
 
1434
1738
  // ../kernel/src/module-compatibility.ts
1435
1739
  function satisfiesModuleVersion(version, range) {
@@ -2117,7 +2421,7 @@ import { dirname as dirname6, join as join6, relative as relative5 } from "node:
2117
2421
  import { createRequire } from "node:module";
2118
2422
  import { readFile as readFile5 } from "node:fs/promises";
2119
2423
  import { dirname as dirname4, join as join3 } from "node:path";
2120
- var SDK_VERSION = "0.4.1";
2424
+ var SDK_VERSION = "0.5.1";
2121
2425
  function npmPackage(specifier) {
2122
2426
  return specifier.startsWith("@") ? specifier.split("/").slice(0, 2).join("/") : specifier.split("/")[0];
2123
2427
  }