@memberjunction/cli 5.3.0 → 5.4.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.
- package/oclif.manifest.json +1023 -1023
- package/package.json +11 -11
package/oclif.manifest.json
CHANGED
|
@@ -774,25 +774,38 @@
|
|
|
774
774
|
"manifest.js"
|
|
775
775
|
]
|
|
776
776
|
},
|
|
777
|
-
"
|
|
777
|
+
"dbdoc:analyze": {
|
|
778
778
|
"aliases": [],
|
|
779
779
|
"args": {},
|
|
780
|
-
"description": "
|
|
780
|
+
"description": "Analyze database and generate documentation (delegates to db-auto-doc analyze)",
|
|
781
781
|
"examples": [
|
|
782
|
-
"<%= config.bin %> <%= command.id
|
|
782
|
+
"<%= config.bin %> <%= command.id %>",
|
|
783
|
+
"<%= config.bin %> <%= command.id %> --resume ./output/run-6/state.json",
|
|
784
|
+
"<%= config.bin %> <%= command.id %> --config ./my-config.json"
|
|
783
785
|
],
|
|
784
786
|
"flags": {
|
|
785
|
-
"
|
|
786
|
-
"char": "
|
|
787
|
-
"description": "
|
|
788
|
-
"name": "
|
|
789
|
-
"
|
|
790
|
-
"
|
|
787
|
+
"resume": {
|
|
788
|
+
"char": "r",
|
|
789
|
+
"description": "Resume from an existing state file",
|
|
790
|
+
"name": "resume",
|
|
791
|
+
"required": false,
|
|
792
|
+
"hasDynamicHelp": false,
|
|
793
|
+
"multiple": false,
|
|
794
|
+
"type": "option"
|
|
795
|
+
},
|
|
796
|
+
"config": {
|
|
797
|
+
"char": "c",
|
|
798
|
+
"description": "Path to config file",
|
|
799
|
+
"name": "config",
|
|
800
|
+
"default": "./config.json",
|
|
801
|
+
"hasDynamicHelp": false,
|
|
802
|
+
"multiple": false,
|
|
803
|
+
"type": "option"
|
|
791
804
|
}
|
|
792
805
|
},
|
|
793
806
|
"hasDynamicHelp": false,
|
|
794
807
|
"hiddenAliases": [],
|
|
795
|
-
"id": "
|
|
808
|
+
"id": "dbdoc:analyze",
|
|
796
809
|
"pluginAlias": "@memberjunction/cli",
|
|
797
810
|
"pluginName": "@memberjunction/cli",
|
|
798
811
|
"pluginType": "core",
|
|
@@ -802,54 +815,105 @@
|
|
|
802
815
|
"relativePath": [
|
|
803
816
|
"dist",
|
|
804
817
|
"commands",
|
|
805
|
-
"
|
|
806
|
-
"
|
|
818
|
+
"dbdoc",
|
|
819
|
+
"analyze.js"
|
|
807
820
|
]
|
|
808
821
|
},
|
|
809
|
-
"
|
|
822
|
+
"dbdoc:export-sample-queries": {
|
|
810
823
|
"aliases": [],
|
|
811
824
|
"args": {},
|
|
812
|
-
"description": "
|
|
825
|
+
"description": "Export sample queries to MemberJunction metadata format (delegates to db-auto-doc export-sample-queries)",
|
|
813
826
|
"examples": [
|
|
814
|
-
"<%= config.bin %> <%= command.id
|
|
815
|
-
"<%= config.bin %> <%= command.id %> --
|
|
816
|
-
"<%= config.bin %> <%= command.id %> --
|
|
827
|
+
"<%= config.bin %> <%= command.id %> --input ./output/sample-queries.json --output ./metadata/queries/.queries.json",
|
|
828
|
+
"<%= config.bin %> <%= command.id %> --input ./sample-queries.json --output ./metadata/queries/.queries.json --separate-sql-files",
|
|
829
|
+
"<%= config.bin %> <%= command.id %> --input ./sample-queries.json --output ./queries/.queries.json --category \"Database Documentation\"",
|
|
830
|
+
"<%= config.bin %> <%= command.id %> --input ./sample-queries.json --output ./queries/.queries.json --status Pending --min-confidence 0.8"
|
|
817
831
|
],
|
|
818
832
|
"flags": {
|
|
819
|
-
"
|
|
820
|
-
"char": "
|
|
821
|
-
"description": "
|
|
822
|
-
"name": "
|
|
833
|
+
"input": {
|
|
834
|
+
"char": "i",
|
|
835
|
+
"description": "Path to sample-queries.json file generated by generate-queries command",
|
|
836
|
+
"name": "input",
|
|
837
|
+
"required": true,
|
|
838
|
+
"hasDynamicHelp": false,
|
|
839
|
+
"multiple": false,
|
|
840
|
+
"type": "option"
|
|
841
|
+
},
|
|
842
|
+
"output": {
|
|
843
|
+
"char": "o",
|
|
844
|
+
"description": "Output path for the .queries.json metadata file",
|
|
845
|
+
"name": "output",
|
|
846
|
+
"required": true,
|
|
847
|
+
"hasDynamicHelp": false,
|
|
848
|
+
"multiple": false,
|
|
849
|
+
"type": "option"
|
|
850
|
+
},
|
|
851
|
+
"separate-sql-files": {
|
|
852
|
+
"description": "Write SQL to separate files and use @file: references",
|
|
853
|
+
"name": "separate-sql-files",
|
|
823
854
|
"allowNo": false,
|
|
824
855
|
"type": "boolean"
|
|
825
856
|
},
|
|
826
|
-
"
|
|
827
|
-
"
|
|
828
|
-
"
|
|
829
|
-
"
|
|
857
|
+
"sql-dir": {
|
|
858
|
+
"description": "Directory for SQL files when using --separate-sql-files (relative to output file)",
|
|
859
|
+
"name": "sql-dir",
|
|
860
|
+
"default": "SQL",
|
|
830
861
|
"hasDynamicHelp": false,
|
|
831
862
|
"multiple": false,
|
|
832
863
|
"type": "option"
|
|
833
864
|
},
|
|
834
|
-
"
|
|
835
|
-
"
|
|
836
|
-
"
|
|
837
|
-
"
|
|
865
|
+
"category": {
|
|
866
|
+
"description": "Category name for @lookup reference (e.g., \"Database Documentation\")",
|
|
867
|
+
"name": "category",
|
|
868
|
+
"required": false,
|
|
838
869
|
"hasDynamicHelp": false,
|
|
839
870
|
"multiple": false,
|
|
840
871
|
"type": "option"
|
|
841
872
|
},
|
|
842
|
-
"
|
|
843
|
-
"description": "
|
|
844
|
-
"name": "
|
|
873
|
+
"status": {
|
|
874
|
+
"description": "Status to assign to exported queries",
|
|
875
|
+
"name": "status",
|
|
876
|
+
"default": "Pending",
|
|
877
|
+
"hasDynamicHelp": false,
|
|
878
|
+
"multiple": false,
|
|
879
|
+
"options": [
|
|
880
|
+
"Approved",
|
|
881
|
+
"Pending",
|
|
882
|
+
"Rejected",
|
|
883
|
+
"Expired"
|
|
884
|
+
],
|
|
885
|
+
"type": "option"
|
|
886
|
+
},
|
|
887
|
+
"min-confidence": {
|
|
888
|
+
"description": "Minimum confidence threshold to export (0-1)",
|
|
889
|
+
"name": "min-confidence",
|
|
890
|
+
"default": "0",
|
|
845
891
|
"hasDynamicHelp": false,
|
|
846
892
|
"multiple": false,
|
|
847
893
|
"type": "option"
|
|
894
|
+
},
|
|
895
|
+
"validated-only": {
|
|
896
|
+
"description": "Only export queries that were successfully validated",
|
|
897
|
+
"name": "validated-only",
|
|
898
|
+
"allowNo": false,
|
|
899
|
+
"type": "boolean"
|
|
900
|
+
},
|
|
901
|
+
"append": {
|
|
902
|
+
"description": "Append to existing metadata file instead of overwriting",
|
|
903
|
+
"name": "append",
|
|
904
|
+
"allowNo": false,
|
|
905
|
+
"type": "boolean"
|
|
906
|
+
},
|
|
907
|
+
"include-primary-key": {
|
|
908
|
+
"description": "Include primaryKey and sync fields (for updating existing records)",
|
|
909
|
+
"name": "include-primary-key",
|
|
910
|
+
"allowNo": false,
|
|
911
|
+
"type": "boolean"
|
|
848
912
|
}
|
|
849
913
|
},
|
|
850
914
|
"hasDynamicHelp": false,
|
|
851
915
|
"hiddenAliases": [],
|
|
852
|
-
"id": "
|
|
916
|
+
"id": "dbdoc:export-sample-queries",
|
|
853
917
|
"pluginAlias": "@memberjunction/cli",
|
|
854
918
|
"pluginName": "@memberjunction/cli",
|
|
855
919
|
"pluginType": "core",
|
|
@@ -859,40 +923,100 @@
|
|
|
859
923
|
"relativePath": [
|
|
860
924
|
"dist",
|
|
861
925
|
"commands",
|
|
862
|
-
"
|
|
863
|
-
"
|
|
926
|
+
"dbdoc",
|
|
927
|
+
"export-sample-queries.js"
|
|
864
928
|
]
|
|
865
929
|
},
|
|
866
|
-
"
|
|
930
|
+
"dbdoc:export": {
|
|
867
931
|
"aliases": [],
|
|
868
932
|
"args": {},
|
|
869
|
-
"description": "Export
|
|
933
|
+
"description": "Export documentation in multiple formats (delegates to db-auto-doc export)",
|
|
870
934
|
"examples": [
|
|
871
|
-
"<%= config.bin %> <%= command.id %>",
|
|
872
|
-
"<%= config.bin %> <%= command.id %> --
|
|
873
|
-
"<%= config.bin %> <%= command.id %> --
|
|
935
|
+
"<%= config.bin %> <%= command.id %> --state-file=./db-doc-state.json",
|
|
936
|
+
"<%= config.bin %> <%= command.id %> --sql",
|
|
937
|
+
"<%= config.bin %> <%= command.id %> --markdown",
|
|
938
|
+
"<%= config.bin %> <%= command.id %> --html",
|
|
939
|
+
"<%= config.bin %> <%= command.id %> --csv",
|
|
940
|
+
"<%= config.bin %> <%= command.id %> --mermaid",
|
|
941
|
+
"<%= config.bin %> <%= command.id %> --sql --markdown --html --csv --mermaid --apply"
|
|
874
942
|
],
|
|
875
943
|
"flags": {
|
|
876
|
-
"
|
|
944
|
+
"state-file": {
|
|
945
|
+
"char": "s",
|
|
946
|
+
"description": "Path to state JSON file",
|
|
947
|
+
"name": "state-file",
|
|
948
|
+
"hasDynamicHelp": false,
|
|
949
|
+
"multiple": false,
|
|
950
|
+
"type": "option"
|
|
951
|
+
},
|
|
952
|
+
"output-dir": {
|
|
877
953
|
"char": "o",
|
|
878
|
-
"description": "Output directory",
|
|
879
|
-
"name": "output",
|
|
880
|
-
"default": "./metadata/queries",
|
|
954
|
+
"description": "Output directory for generated files",
|
|
955
|
+
"name": "output-dir",
|
|
881
956
|
"hasDynamicHelp": false,
|
|
882
957
|
"multiple": false,
|
|
883
958
|
"type": "option"
|
|
884
959
|
},
|
|
885
|
-
"
|
|
886
|
-
"
|
|
887
|
-
"
|
|
888
|
-
"
|
|
960
|
+
"sql": {
|
|
961
|
+
"description": "Generate SQL script",
|
|
962
|
+
"name": "sql",
|
|
963
|
+
"allowNo": false,
|
|
964
|
+
"type": "boolean"
|
|
965
|
+
},
|
|
966
|
+
"markdown": {
|
|
967
|
+
"description": "Generate Markdown documentation",
|
|
968
|
+
"name": "markdown",
|
|
969
|
+
"allowNo": false,
|
|
970
|
+
"type": "boolean"
|
|
971
|
+
},
|
|
972
|
+
"html": {
|
|
973
|
+
"description": "Generate interactive HTML documentation",
|
|
974
|
+
"name": "html",
|
|
975
|
+
"allowNo": false,
|
|
976
|
+
"type": "boolean"
|
|
977
|
+
},
|
|
978
|
+
"csv": {
|
|
979
|
+
"description": "Generate CSV exports (tables and columns)",
|
|
980
|
+
"name": "csv",
|
|
981
|
+
"allowNo": false,
|
|
982
|
+
"type": "boolean"
|
|
983
|
+
},
|
|
984
|
+
"mermaid": {
|
|
985
|
+
"description": "Generate Mermaid ERD diagram files",
|
|
986
|
+
"name": "mermaid",
|
|
987
|
+
"allowNo": false,
|
|
988
|
+
"type": "boolean"
|
|
989
|
+
},
|
|
990
|
+
"report": {
|
|
991
|
+
"description": "Generate analysis report",
|
|
992
|
+
"name": "report",
|
|
993
|
+
"allowNo": false,
|
|
994
|
+
"type": "boolean"
|
|
995
|
+
},
|
|
996
|
+
"apply": {
|
|
997
|
+
"description": "Apply SQL to database",
|
|
998
|
+
"name": "apply",
|
|
999
|
+
"allowNo": false,
|
|
1000
|
+
"type": "boolean"
|
|
1001
|
+
},
|
|
1002
|
+
"approved-only": {
|
|
1003
|
+
"description": "Only export approved items",
|
|
1004
|
+
"name": "approved-only",
|
|
889
1005
|
"allowNo": false,
|
|
890
1006
|
"type": "boolean"
|
|
1007
|
+
},
|
|
1008
|
+
"confidence-threshold": {
|
|
1009
|
+
"description": "Minimum confidence threshold",
|
|
1010
|
+
"name": "confidence-threshold",
|
|
1011
|
+
"default": "0",
|
|
1012
|
+
"hasDynamicHelp": false,
|
|
1013
|
+
"multiple": false,
|
|
1014
|
+
"type": "option"
|
|
891
1015
|
}
|
|
892
1016
|
},
|
|
893
1017
|
"hasDynamicHelp": false,
|
|
894
1018
|
"hiddenAliases": [],
|
|
895
|
-
"id": "
|
|
1019
|
+
"id": "dbdoc:export",
|
|
896
1020
|
"pluginAlias": "@memberjunction/cli",
|
|
897
1021
|
"pluginName": "@memberjunction/cli",
|
|
898
1022
|
"pluginType": "core",
|
|
@@ -902,126 +1026,65 @@
|
|
|
902
1026
|
"relativePath": [
|
|
903
1027
|
"dist",
|
|
904
1028
|
"commands",
|
|
905
|
-
"
|
|
1029
|
+
"dbdoc",
|
|
906
1030
|
"export.js"
|
|
907
1031
|
]
|
|
908
1032
|
},
|
|
909
|
-
"
|
|
1033
|
+
"dbdoc:generate-queries": {
|
|
910
1034
|
"aliases": [],
|
|
911
1035
|
"args": {},
|
|
912
|
-
"description": "Generate SQL
|
|
1036
|
+
"description": "Generate sample SQL queries from existing analysis state (delegates to db-auto-doc generate-queries)",
|
|
913
1037
|
"examples": [
|
|
914
|
-
"<%= config.bin %> <%= command.id %>",
|
|
915
|
-
"<%= config.bin %> <%= command.id %> --
|
|
916
|
-
"<%= config.bin %> <%= command.id %> --
|
|
917
|
-
"<%= config.bin %> <%= command.id %> --mode database"
|
|
1038
|
+
"<%= config.bin %> <%= command.id %> --from-state ./output/run-1/state.json",
|
|
1039
|
+
"<%= config.bin %> <%= command.id %> --from-state ./output/run-1/state.json --output-dir ./queries",
|
|
1040
|
+
"<%= config.bin %> <%= command.id %> --from-state ./output/run-1/state.json --queries-per-table 10"
|
|
918
1041
|
],
|
|
919
1042
|
"flags": {
|
|
920
|
-
"
|
|
921
|
-
"
|
|
922
|
-
"
|
|
923
|
-
"
|
|
1043
|
+
"from-state": {
|
|
1044
|
+
"description": "Path to existing state.json file from previous analysis",
|
|
1045
|
+
"name": "from-state",
|
|
1046
|
+
"required": true,
|
|
924
1047
|
"hasDynamicHelp": false,
|
|
925
1048
|
"multiple": false,
|
|
926
1049
|
"type": "option"
|
|
927
1050
|
},
|
|
928
|
-
"
|
|
929
|
-
"
|
|
930
|
-
"
|
|
931
|
-
"
|
|
1051
|
+
"output-dir": {
|
|
1052
|
+
"description": "Output directory for generated queries",
|
|
1053
|
+
"name": "output-dir",
|
|
1054
|
+
"required": false,
|
|
932
1055
|
"hasDynamicHelp": false,
|
|
933
1056
|
"multiple": false,
|
|
934
1057
|
"type": "option"
|
|
935
1058
|
},
|
|
936
|
-
"
|
|
937
|
-
"char": "
|
|
938
|
-
"description": "
|
|
939
|
-
"name": "
|
|
940
|
-
"
|
|
941
|
-
"multiple": false,
|
|
942
|
-
"type": "option"
|
|
943
|
-
},
|
|
944
|
-
"max-entities": {
|
|
945
|
-
"char": "m",
|
|
946
|
-
"description": "Max entities per group",
|
|
947
|
-
"name": "max-entities",
|
|
948
|
-
"default": 3,
|
|
949
|
-
"hasDynamicHelp": false,
|
|
950
|
-
"multiple": false,
|
|
951
|
-
"type": "option"
|
|
952
|
-
},
|
|
953
|
-
"target-groups": {
|
|
954
|
-
"char": "t",
|
|
955
|
-
"description": "Target number of entity groups to generate",
|
|
956
|
-
"name": "target-groups",
|
|
957
|
-
"default": 75,
|
|
958
|
-
"hasDynamicHelp": false,
|
|
959
|
-
"multiple": false,
|
|
960
|
-
"type": "option"
|
|
961
|
-
},
|
|
962
|
-
"max-refinements": {
|
|
963
|
-
"char": "r",
|
|
964
|
-
"description": "Max refinement iterations",
|
|
965
|
-
"name": "max-refinements",
|
|
966
|
-
"default": 3,
|
|
967
|
-
"hasDynamicHelp": false,
|
|
968
|
-
"multiple": false,
|
|
969
|
-
"type": "option"
|
|
970
|
-
},
|
|
971
|
-
"max-fixes": {
|
|
972
|
-
"char": "f",
|
|
973
|
-
"description": "Max error-fixing attempts",
|
|
974
|
-
"name": "max-fixes",
|
|
975
|
-
"default": 5,
|
|
976
|
-
"hasDynamicHelp": false,
|
|
977
|
-
"multiple": false,
|
|
978
|
-
"type": "option"
|
|
979
|
-
},
|
|
980
|
-
"model": {
|
|
981
|
-
"description": "Preferred AI model",
|
|
982
|
-
"name": "model",
|
|
983
|
-
"hasDynamicHelp": false,
|
|
984
|
-
"multiple": false,
|
|
985
|
-
"type": "option"
|
|
986
|
-
},
|
|
987
|
-
"vendor": {
|
|
988
|
-
"description": "Preferred AI vendor",
|
|
989
|
-
"name": "vendor",
|
|
1059
|
+
"config": {
|
|
1060
|
+
"char": "c",
|
|
1061
|
+
"description": "Path to config file (for database connection and AI settings)",
|
|
1062
|
+
"name": "config",
|
|
1063
|
+
"default": "./config.json",
|
|
990
1064
|
"hasDynamicHelp": false,
|
|
991
1065
|
"multiple": false,
|
|
992
1066
|
"type": "option"
|
|
993
1067
|
},
|
|
994
|
-
"
|
|
995
|
-
"
|
|
996
|
-
"
|
|
997
|
-
"
|
|
1068
|
+
"queries-per-table": {
|
|
1069
|
+
"description": "Number of queries to generate per table",
|
|
1070
|
+
"name": "queries-per-table",
|
|
1071
|
+
"required": false,
|
|
998
1072
|
"hasDynamicHelp": false,
|
|
999
1073
|
"multiple": false,
|
|
1000
1074
|
"type": "option"
|
|
1001
1075
|
},
|
|
1002
|
-
"
|
|
1003
|
-
"description": "
|
|
1004
|
-
"name": "
|
|
1076
|
+
"max-execution-time": {
|
|
1077
|
+
"description": "Maximum execution time for query validation (ms)",
|
|
1078
|
+
"name": "max-execution-time",
|
|
1079
|
+
"required": false,
|
|
1005
1080
|
"hasDynamicHelp": false,
|
|
1006
1081
|
"multiple": false,
|
|
1007
|
-
"options": [
|
|
1008
|
-
"metadata",
|
|
1009
|
-
"database",
|
|
1010
|
-
"both"
|
|
1011
|
-
],
|
|
1012
1082
|
"type": "option"
|
|
1013
|
-
},
|
|
1014
|
-
"verbose": {
|
|
1015
|
-
"char": "v",
|
|
1016
|
-
"description": "Verbose output",
|
|
1017
|
-
"name": "verbose",
|
|
1018
|
-
"allowNo": false,
|
|
1019
|
-
"type": "boolean"
|
|
1020
1083
|
}
|
|
1021
1084
|
},
|
|
1022
1085
|
"hasDynamicHelp": false,
|
|
1023
1086
|
"hiddenAliases": [],
|
|
1024
|
-
"id": "
|
|
1087
|
+
"id": "dbdoc:generate-queries",
|
|
1025
1088
|
"pluginAlias": "@memberjunction/cli",
|
|
1026
1089
|
"pluginName": "@memberjunction/cli",
|
|
1027
1090
|
"pluginType": "core",
|
|
@@ -1031,40 +1094,76 @@
|
|
|
1031
1094
|
"relativePath": [
|
|
1032
1095
|
"dist",
|
|
1033
1096
|
"commands",
|
|
1034
|
-
"
|
|
1035
|
-
"generate.js"
|
|
1097
|
+
"dbdoc",
|
|
1098
|
+
"generate-queries.js"
|
|
1036
1099
|
]
|
|
1037
1100
|
},
|
|
1038
|
-
"
|
|
1101
|
+
"dbdoc": {
|
|
1039
1102
|
"aliases": [],
|
|
1040
1103
|
"args": {},
|
|
1041
|
-
"description": "
|
|
1104
|
+
"description": "AI-powered database documentation generator",
|
|
1105
|
+
"flags": {},
|
|
1106
|
+
"hasDynamicHelp": false,
|
|
1107
|
+
"hidden": false,
|
|
1108
|
+
"hiddenAliases": [],
|
|
1109
|
+
"id": "dbdoc",
|
|
1110
|
+
"pluginAlias": "@memberjunction/cli",
|
|
1111
|
+
"pluginName": "@memberjunction/cli",
|
|
1112
|
+
"pluginType": "core",
|
|
1113
|
+
"strict": true,
|
|
1114
|
+
"enableJsonFlag": false,
|
|
1115
|
+
"isESM": true,
|
|
1116
|
+
"relativePath": [
|
|
1117
|
+
"dist",
|
|
1118
|
+
"commands",
|
|
1119
|
+
"dbdoc",
|
|
1120
|
+
"index.js"
|
|
1121
|
+
]
|
|
1122
|
+
},
|
|
1123
|
+
"dbdoc:init": {
|
|
1124
|
+
"aliases": [],
|
|
1125
|
+
"args": {},
|
|
1126
|
+
"description": "Initialize DBAutoDoc project (delegates to db-auto-doc init)",
|
|
1127
|
+
"examples": [
|
|
1128
|
+
"<%= config.bin %> <%= command.id %>"
|
|
1129
|
+
],
|
|
1130
|
+
"flags": {},
|
|
1131
|
+
"hasDynamicHelp": false,
|
|
1132
|
+
"hiddenAliases": [],
|
|
1133
|
+
"id": "dbdoc:init",
|
|
1134
|
+
"pluginAlias": "@memberjunction/cli",
|
|
1135
|
+
"pluginName": "@memberjunction/cli",
|
|
1136
|
+
"pluginType": "core",
|
|
1137
|
+
"strict": true,
|
|
1138
|
+
"enableJsonFlag": false,
|
|
1139
|
+
"isESM": true,
|
|
1140
|
+
"relativePath": [
|
|
1141
|
+
"dist",
|
|
1142
|
+
"commands",
|
|
1143
|
+
"dbdoc",
|
|
1144
|
+
"init.js"
|
|
1145
|
+
]
|
|
1146
|
+
},
|
|
1147
|
+
"dbdoc:reset": {
|
|
1148
|
+
"aliases": [],
|
|
1149
|
+
"args": {},
|
|
1150
|
+
"description": "Reset analysis state (delegates to db-auto-doc reset)",
|
|
1042
1151
|
"examples": [
|
|
1043
1152
|
"<%= config.bin %> <%= command.id %>",
|
|
1044
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1045
|
-
"<%= config.bin %> <%= command.id %> --verbose"
|
|
1153
|
+
"<%= config.bin %> <%= command.id %> --force"
|
|
1046
1154
|
],
|
|
1047
1155
|
"flags": {
|
|
1048
|
-
"
|
|
1049
|
-
"char": "
|
|
1050
|
-
"description": "
|
|
1051
|
-
"name": "
|
|
1052
|
-
"default": "./metadata/queries",
|
|
1053
|
-
"hasDynamicHelp": false,
|
|
1054
|
-
"multiple": false,
|
|
1055
|
-
"type": "option"
|
|
1056
|
-
},
|
|
1057
|
-
"verbose": {
|
|
1058
|
-
"char": "v",
|
|
1059
|
-
"description": "Verbose output",
|
|
1060
|
-
"name": "verbose",
|
|
1156
|
+
"force": {
|
|
1157
|
+
"char": "f",
|
|
1158
|
+
"description": "Force reset without confirmation",
|
|
1159
|
+
"name": "force",
|
|
1061
1160
|
"allowNo": false,
|
|
1062
1161
|
"type": "boolean"
|
|
1063
1162
|
}
|
|
1064
1163
|
},
|
|
1065
1164
|
"hasDynamicHelp": false,
|
|
1066
1165
|
"hiddenAliases": [],
|
|
1067
|
-
"id": "
|
|
1166
|
+
"id": "dbdoc:reset",
|
|
1068
1167
|
"pluginAlias": "@memberjunction/cli",
|
|
1069
1168
|
"pluginName": "@memberjunction/cli",
|
|
1070
1169
|
"pluginType": "core",
|
|
@@ -1074,64 +1173,31 @@
|
|
|
1074
1173
|
"relativePath": [
|
|
1075
1174
|
"dist",
|
|
1076
1175
|
"commands",
|
|
1077
|
-
"
|
|
1078
|
-
"
|
|
1176
|
+
"dbdoc",
|
|
1177
|
+
"reset.js"
|
|
1079
1178
|
]
|
|
1080
1179
|
},
|
|
1081
|
-
"
|
|
1180
|
+
"dbdoc:status": {
|
|
1082
1181
|
"aliases": [],
|
|
1083
1182
|
"args": {},
|
|
1084
|
-
"description": "
|
|
1183
|
+
"description": "Show analysis status and progress (delegates to db-auto-doc status)",
|
|
1085
1184
|
"examples": [
|
|
1086
1185
|
"<%= config.bin %> <%= command.id %>",
|
|
1087
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1088
|
-
"<%= config.bin %> <%= command.id %> --sections=\"dependencies,references\"",
|
|
1089
|
-
"<%= config.bin %> <%= command.id %> --all"
|
|
1186
|
+
"<%= config.bin %> <%= command.id %> --state-file ./custom-state.json"
|
|
1090
1187
|
],
|
|
1091
1188
|
"flags": {
|
|
1092
|
-
"
|
|
1093
|
-
"
|
|
1094
|
-
"
|
|
1095
|
-
"
|
|
1096
|
-
"multiple": false,
|
|
1097
|
-
"type": "option"
|
|
1098
|
-
},
|
|
1099
|
-
"sections": {
|
|
1100
|
-
"description": "Comma-separated list of sections to reset (dependencies,references,related,lookup)",
|
|
1101
|
-
"name": "sections",
|
|
1189
|
+
"state-file": {
|
|
1190
|
+
"char": "s",
|
|
1191
|
+
"description": "Path to state JSON file",
|
|
1192
|
+
"name": "state-file",
|
|
1102
1193
|
"hasDynamicHelp": false,
|
|
1103
1194
|
"multiple": false,
|
|
1104
1195
|
"type": "option"
|
|
1105
|
-
},
|
|
1106
|
-
"all": {
|
|
1107
|
-
"description": "Reset all metadata sections",
|
|
1108
|
-
"name": "all",
|
|
1109
|
-
"allowNo": false,
|
|
1110
|
-
"type": "boolean"
|
|
1111
|
-
},
|
|
1112
|
-
"dry-run": {
|
|
1113
|
-
"description": "Show what would be reset without actually resetting",
|
|
1114
|
-
"name": "dry-run",
|
|
1115
|
-
"allowNo": false,
|
|
1116
|
-
"type": "boolean"
|
|
1117
|
-
},
|
|
1118
|
-
"force": {
|
|
1119
|
-
"description": "Skip confirmation prompts",
|
|
1120
|
-
"name": "force",
|
|
1121
|
-
"allowNo": false,
|
|
1122
|
-
"type": "boolean"
|
|
1123
|
-
},
|
|
1124
|
-
"verbose": {
|
|
1125
|
-
"char": "v",
|
|
1126
|
-
"description": "Show detailed output",
|
|
1127
|
-
"name": "verbose",
|
|
1128
|
-
"allowNo": false,
|
|
1129
|
-
"type": "boolean"
|
|
1130
1196
|
}
|
|
1131
1197
|
},
|
|
1132
1198
|
"hasDynamicHelp": false,
|
|
1133
1199
|
"hiddenAliases": [],
|
|
1134
|
-
"id": "
|
|
1200
|
+
"id": "dbdoc:status",
|
|
1135
1201
|
"pluginAlias": "@memberjunction/cli",
|
|
1136
1202
|
"pluginName": "@memberjunction/cli",
|
|
1137
1203
|
"pluginType": "core",
|
|
@@ -1141,21 +1207,29 @@
|
|
|
1141
1207
|
"relativePath": [
|
|
1142
1208
|
"dist",
|
|
1143
1209
|
"commands",
|
|
1144
|
-
"
|
|
1145
|
-
"
|
|
1210
|
+
"dbdoc",
|
|
1211
|
+
"status.js"
|
|
1146
1212
|
]
|
|
1147
1213
|
},
|
|
1148
|
-
"
|
|
1214
|
+
"install": {
|
|
1149
1215
|
"aliases": [],
|
|
1150
1216
|
"args": {},
|
|
1151
|
-
"description": "
|
|
1217
|
+
"description": "Install MemberJunction",
|
|
1152
1218
|
"examples": [
|
|
1153
|
-
"<%= config.bin %> <%= command.id
|
|
1219
|
+
"<%= config.bin %> <%= command.id %>\n"
|
|
1154
1220
|
],
|
|
1155
|
-
"flags": {
|
|
1221
|
+
"flags": {
|
|
1222
|
+
"verbose": {
|
|
1223
|
+
"char": "v",
|
|
1224
|
+
"description": "Enable additional logging",
|
|
1225
|
+
"name": "verbose",
|
|
1226
|
+
"allowNo": false,
|
|
1227
|
+
"type": "boolean"
|
|
1228
|
+
}
|
|
1229
|
+
},
|
|
1156
1230
|
"hasDynamicHelp": false,
|
|
1157
1231
|
"hiddenAliases": [],
|
|
1158
|
-
"id": "
|
|
1232
|
+
"id": "install",
|
|
1159
1233
|
"pluginAlias": "@memberjunction/cli",
|
|
1160
1234
|
"pluginName": "@memberjunction/cli",
|
|
1161
1235
|
"pluginType": "core",
|
|
@@ -1165,119 +1239,46 @@
|
|
|
1165
1239
|
"relativePath": [
|
|
1166
1240
|
"dist",
|
|
1167
1241
|
"commands",
|
|
1168
|
-
"
|
|
1169
|
-
"
|
|
1242
|
+
"install",
|
|
1243
|
+
"index.js"
|
|
1170
1244
|
]
|
|
1171
1245
|
},
|
|
1172
|
-
"
|
|
1246
|
+
"migrate": {
|
|
1173
1247
|
"aliases": [],
|
|
1174
1248
|
"args": {},
|
|
1175
|
-
"description": "
|
|
1249
|
+
"description": "Migrate MemberJunction database to latest version",
|
|
1176
1250
|
"examples": [
|
|
1177
|
-
"<%= config.bin %> <%= command.id
|
|
1178
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1179
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1180
|
-
"<%= config.bin %> <%= command.id %> --entity=\"Actions\" --target-dir=./custom-actions --no-validate",
|
|
1181
|
-
"<%= config.bin %> <%= command.id %> --entity=\"Templates\" --dry-run --verbose",
|
|
1182
|
-
"<%= config.bin %> <%= command.id %> --entity=\"MJ: AI Prompts\" --exclude-fields=InternalNotes,DebugInfo"
|
|
1251
|
+
"<%= config.bin %> <%= command.id %>\n",
|
|
1252
|
+
"<%= config.bin %> <%= command.id %> --schema __BCSaaS --dir ./migrations/v1\n",
|
|
1253
|
+
"<%= config.bin %> <%= command.id %> --schema __BCSaaS --tag v1.0.0\n"
|
|
1183
1254
|
],
|
|
1184
1255
|
"flags": {
|
|
1185
|
-
"entity": {
|
|
1186
|
-
"description": "Entity name to pull",
|
|
1187
|
-
"name": "entity",
|
|
1188
|
-
"required": true,
|
|
1189
|
-
"hasDynamicHelp": false,
|
|
1190
|
-
"multiple": false,
|
|
1191
|
-
"type": "option"
|
|
1192
|
-
},
|
|
1193
|
-
"filter": {
|
|
1194
|
-
"description": "Additional filter for pulling specific records",
|
|
1195
|
-
"name": "filter",
|
|
1196
|
-
"hasDynamicHelp": false,
|
|
1197
|
-
"multiple": false,
|
|
1198
|
-
"type": "option"
|
|
1199
|
-
},
|
|
1200
|
-
"dry-run": {
|
|
1201
|
-
"description": "Show what would be pulled without actually pulling",
|
|
1202
|
-
"name": "dry-run",
|
|
1203
|
-
"allowNo": false,
|
|
1204
|
-
"type": "boolean"
|
|
1205
|
-
},
|
|
1206
|
-
"multi-file": {
|
|
1207
|
-
"description": "Create a single file with multiple records (provide filename)",
|
|
1208
|
-
"name": "multi-file",
|
|
1209
|
-
"hasDynamicHelp": false,
|
|
1210
|
-
"multiple": false,
|
|
1211
|
-
"type": "option"
|
|
1212
|
-
},
|
|
1213
1256
|
"verbose": {
|
|
1214
1257
|
"char": "v",
|
|
1215
|
-
"description": "
|
|
1258
|
+
"description": "Enable additional logging",
|
|
1216
1259
|
"name": "verbose",
|
|
1217
1260
|
"allowNo": false,
|
|
1218
1261
|
"type": "boolean"
|
|
1219
1262
|
},
|
|
1220
|
-
"
|
|
1221
|
-
"
|
|
1222
|
-
"
|
|
1223
|
-
"
|
|
1224
|
-
"type": "boolean"
|
|
1225
|
-
},
|
|
1226
|
-
"update-existing": {
|
|
1227
|
-
"description": "Update existing records during pull",
|
|
1228
|
-
"name": "update-existing",
|
|
1229
|
-
"allowNo": false,
|
|
1230
|
-
"type": "boolean"
|
|
1231
|
-
},
|
|
1232
|
-
"create-new": {
|
|
1233
|
-
"description": "Create new files for records not found locally",
|
|
1234
|
-
"name": "create-new",
|
|
1235
|
-
"allowNo": false,
|
|
1236
|
-
"type": "boolean"
|
|
1237
|
-
},
|
|
1238
|
-
"backup-before-update": {
|
|
1239
|
-
"description": "Create backups before updating files",
|
|
1240
|
-
"name": "backup-before-update",
|
|
1241
|
-
"allowNo": false,
|
|
1242
|
-
"type": "boolean"
|
|
1243
|
-
},
|
|
1244
|
-
"merge-strategy": {
|
|
1245
|
-
"description": "Merge strategy for updates",
|
|
1246
|
-
"name": "merge-strategy",
|
|
1247
|
-
"default": "merge",
|
|
1263
|
+
"tag": {
|
|
1264
|
+
"char": "t",
|
|
1265
|
+
"description": "Version tag to use for running remote migrations",
|
|
1266
|
+
"name": "tag",
|
|
1248
1267
|
"hasDynamicHelp": false,
|
|
1249
1268
|
"multiple": false,
|
|
1250
|
-
"options": [
|
|
1251
|
-
"merge",
|
|
1252
|
-
"overwrite",
|
|
1253
|
-
"skip"
|
|
1254
|
-
],
|
|
1255
1269
|
"type": "option"
|
|
1256
1270
|
},
|
|
1257
|
-
"
|
|
1258
|
-
"
|
|
1259
|
-
"
|
|
1271
|
+
"schema": {
|
|
1272
|
+
"char": "s",
|
|
1273
|
+
"description": "Target schema (overrides coreSchema from config)",
|
|
1274
|
+
"name": "schema",
|
|
1260
1275
|
"hasDynamicHelp": false,
|
|
1261
1276
|
"multiple": false,
|
|
1262
1277
|
"type": "option"
|
|
1263
1278
|
},
|
|
1264
|
-
"
|
|
1265
|
-
"description": "
|
|
1266
|
-
"name": "
|
|
1267
|
-
"hasDynamicHelp": false,
|
|
1268
|
-
"multiple": true,
|
|
1269
|
-
"type": "option"
|
|
1270
|
-
},
|
|
1271
|
-
"exclude-fields": {
|
|
1272
|
-
"description": "Comma-separated list of fields to exclude from pull",
|
|
1273
|
-
"name": "exclude-fields",
|
|
1274
|
-
"hasDynamicHelp": false,
|
|
1275
|
-
"multiple": true,
|
|
1276
|
-
"type": "option"
|
|
1277
|
-
},
|
|
1278
|
-
"target-dir": {
|
|
1279
|
-
"description": "Specific target directory (overrides auto-discovery)",
|
|
1280
|
-
"name": "target-dir",
|
|
1279
|
+
"dir": {
|
|
1280
|
+
"description": "Migration source directory (overrides migrationsLocation from config)",
|
|
1281
|
+
"name": "dir",
|
|
1281
1282
|
"hasDynamicHelp": false,
|
|
1282
1283
|
"multiple": false,
|
|
1283
1284
|
"type": "option"
|
|
@@ -1285,7 +1286,7 @@
|
|
|
1285
1286
|
},
|
|
1286
1287
|
"hasDynamicHelp": false,
|
|
1287
1288
|
"hiddenAliases": [],
|
|
1288
|
-
"id": "
|
|
1289
|
+
"id": "migrate",
|
|
1289
1290
|
"pluginAlias": "@memberjunction/cli",
|
|
1290
1291
|
"pluginName": "@memberjunction/cli",
|
|
1291
1292
|
"pluginType": "core",
|
|
@@ -1295,85 +1296,40 @@
|
|
|
1295
1296
|
"relativePath": [
|
|
1296
1297
|
"dist",
|
|
1297
1298
|
"commands",
|
|
1298
|
-
"
|
|
1299
|
-
"
|
|
1299
|
+
"migrate",
|
|
1300
|
+
"index.js"
|
|
1300
1301
|
]
|
|
1301
1302
|
},
|
|
1302
|
-
"
|
|
1303
|
+
"querygen:export": {
|
|
1303
1304
|
"aliases": [],
|
|
1304
1305
|
"args": {},
|
|
1305
|
-
"description": "
|
|
1306
|
+
"description": "Export queries from database to metadata files",
|
|
1306
1307
|
"examples": [
|
|
1307
1308
|
"<%= config.bin %> <%= command.id %>",
|
|
1308
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1309
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1310
|
-
"<%= config.bin %> <%= command.id %> --ci"
|
|
1309
|
+
"<%= config.bin %> <%= command.id %> --output ./metadata/queries",
|
|
1310
|
+
"<%= config.bin %> <%= command.id %> --verbose"
|
|
1311
1311
|
],
|
|
1312
1312
|
"flags": {
|
|
1313
|
-
"
|
|
1314
|
-
"
|
|
1315
|
-
"
|
|
1313
|
+
"output": {
|
|
1314
|
+
"char": "o",
|
|
1315
|
+
"description": "Output directory",
|
|
1316
|
+
"name": "output",
|
|
1317
|
+
"default": "./metadata/queries",
|
|
1316
1318
|
"hasDynamicHelp": false,
|
|
1317
1319
|
"multiple": false,
|
|
1318
1320
|
"type": "option"
|
|
1319
1321
|
},
|
|
1320
|
-
"dry-run": {
|
|
1321
|
-
"description": "Show what would be pushed without actually pushing",
|
|
1322
|
-
"name": "dry-run",
|
|
1323
|
-
"allowNo": false,
|
|
1324
|
-
"type": "boolean"
|
|
1325
|
-
},
|
|
1326
|
-
"ci": {
|
|
1327
|
-
"description": "CI mode - no prompts, fail on issues",
|
|
1328
|
-
"name": "ci",
|
|
1329
|
-
"allowNo": false,
|
|
1330
|
-
"type": "boolean"
|
|
1331
|
-
},
|
|
1332
1322
|
"verbose": {
|
|
1333
1323
|
"char": "v",
|
|
1334
|
-
"description": "
|
|
1324
|
+
"description": "Verbose output",
|
|
1335
1325
|
"name": "verbose",
|
|
1336
1326
|
"allowNo": false,
|
|
1337
1327
|
"type": "boolean"
|
|
1338
|
-
},
|
|
1339
|
-
"no-validate": {
|
|
1340
|
-
"description": "Skip validation before push",
|
|
1341
|
-
"name": "no-validate",
|
|
1342
|
-
"allowNo": false,
|
|
1343
|
-
"type": "boolean"
|
|
1344
|
-
},
|
|
1345
|
-
"delete-db-only": {
|
|
1346
|
-
"description": "Delete database-only records that reference records being deleted (prevents FK errors)",
|
|
1347
|
-
"name": "delete-db-only",
|
|
1348
|
-
"allowNo": false,
|
|
1349
|
-
"type": "boolean"
|
|
1350
|
-
},
|
|
1351
|
-
"parallel-batch-size": {
|
|
1352
|
-
"description": "Number of records to process in parallel (default: 10)",
|
|
1353
|
-
"name": "parallel-batch-size",
|
|
1354
|
-
"default": 10,
|
|
1355
|
-
"hasDynamicHelp": false,
|
|
1356
|
-
"multiple": false,
|
|
1357
|
-
"type": "option"
|
|
1358
|
-
},
|
|
1359
|
-
"include": {
|
|
1360
|
-
"description": "Only process these directories (comma-separated, supports patterns)",
|
|
1361
|
-
"name": "include",
|
|
1362
|
-
"hasDynamicHelp": false,
|
|
1363
|
-
"multiple": false,
|
|
1364
|
-
"type": "option"
|
|
1365
|
-
},
|
|
1366
|
-
"exclude": {
|
|
1367
|
-
"description": "Skip these directories (comma-separated, supports patterns)",
|
|
1368
|
-
"name": "exclude",
|
|
1369
|
-
"hasDynamicHelp": false,
|
|
1370
|
-
"multiple": false,
|
|
1371
|
-
"type": "option"
|
|
1372
1328
|
}
|
|
1373
1329
|
},
|
|
1374
1330
|
"hasDynamicHelp": false,
|
|
1375
1331
|
"hiddenAliases": [],
|
|
1376
|
-
"id": "
|
|
1332
|
+
"id": "querygen:export",
|
|
1377
1333
|
"pluginAlias": "@memberjunction/cli",
|
|
1378
1334
|
"pluginName": "@memberjunction/cli",
|
|
1379
1335
|
"pluginType": "core",
|
|
@@ -1383,107 +1339,126 @@
|
|
|
1383
1339
|
"relativePath": [
|
|
1384
1340
|
"dist",
|
|
1385
1341
|
"commands",
|
|
1386
|
-
"
|
|
1387
|
-
"
|
|
1342
|
+
"querygen",
|
|
1343
|
+
"export.js"
|
|
1388
1344
|
]
|
|
1389
1345
|
},
|
|
1390
|
-
"
|
|
1346
|
+
"querygen:generate": {
|
|
1391
1347
|
"aliases": [],
|
|
1392
1348
|
"args": {},
|
|
1393
|
-
"description": "
|
|
1349
|
+
"description": "Generate SQL query templates for entities using AI",
|
|
1394
1350
|
"examples": [
|
|
1395
1351
|
"<%= config.bin %> <%= command.id %>",
|
|
1396
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1397
|
-
"<%= config.bin %> <%= command.id %> --verbose"
|
|
1352
|
+
"<%= config.bin %> <%= command.id %> --entities \"Customers,Orders\"",
|
|
1353
|
+
"<%= config.bin %> <%= command.id %> --max-entities 5 --verbose",
|
|
1354
|
+
"<%= config.bin %> <%= command.id %> --mode database"
|
|
1398
1355
|
],
|
|
1399
1356
|
"flags": {
|
|
1400
|
-
"
|
|
1401
|
-
"
|
|
1402
|
-
"
|
|
1357
|
+
"entities": {
|
|
1358
|
+
"char": "e",
|
|
1359
|
+
"description": "Specific entities to generate queries for (comma-separated)",
|
|
1360
|
+
"name": "entities",
|
|
1403
1361
|
"hasDynamicHelp": false,
|
|
1404
1362
|
"multiple": false,
|
|
1405
1363
|
"type": "option"
|
|
1406
1364
|
},
|
|
1407
|
-
"
|
|
1408
|
-
"char": "
|
|
1409
|
-
"description": "
|
|
1410
|
-
"name": "
|
|
1411
|
-
"allowNo": false,
|
|
1412
|
-
"type": "boolean"
|
|
1413
|
-
},
|
|
1414
|
-
"include": {
|
|
1415
|
-
"description": "Only process these directories (comma-separated, supports patterns)",
|
|
1416
|
-
"name": "include",
|
|
1365
|
+
"exclude-entities": {
|
|
1366
|
+
"char": "x",
|
|
1367
|
+
"description": "Entities to exclude (comma-separated)",
|
|
1368
|
+
"name": "exclude-entities",
|
|
1417
1369
|
"hasDynamicHelp": false,
|
|
1418
1370
|
"multiple": false,
|
|
1419
1371
|
"type": "option"
|
|
1420
1372
|
},
|
|
1421
|
-
"exclude": {
|
|
1422
|
-
"
|
|
1423
|
-
"
|
|
1373
|
+
"exclude-schemas": {
|
|
1374
|
+
"char": "s",
|
|
1375
|
+
"description": "Schemas to exclude (comma-separated)",
|
|
1376
|
+
"name": "exclude-schemas",
|
|
1424
1377
|
"hasDynamicHelp": false,
|
|
1425
1378
|
"multiple": false,
|
|
1426
1379
|
"type": "option"
|
|
1427
|
-
}
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
"pluginName": "@memberjunction/cli",
|
|
1434
|
-
"pluginType": "core",
|
|
1435
|
-
"strict": true,
|
|
1436
|
-
"enableJsonFlag": false,
|
|
1437
|
-
"isESM": true,
|
|
1438
|
-
"relativePath": [
|
|
1439
|
-
"dist",
|
|
1440
|
-
"commands",
|
|
1441
|
-
"sync",
|
|
1442
|
-
"status.js"
|
|
1443
|
-
]
|
|
1444
|
-
},
|
|
1445
|
-
"sync:validate": {
|
|
1446
|
-
"aliases": [],
|
|
1447
|
-
"args": {},
|
|
1448
|
-
"description": "Validate metadata files",
|
|
1449
|
-
"examples": [
|
|
1450
|
-
"<%= config.bin %> <%= command.id %>",
|
|
1451
|
-
"<%= config.bin %> <%= command.id %> --dir=\"ai-prompts\"",
|
|
1452
|
-
"<%= config.bin %> <%= command.id %> --save-report",
|
|
1453
|
-
"<%= config.bin %> <%= command.id %> --verbose"
|
|
1454
|
-
],
|
|
1455
|
-
"flags": {
|
|
1456
|
-
"dir": {
|
|
1457
|
-
"description": "Specific entity directory to validate",
|
|
1458
|
-
"name": "dir",
|
|
1380
|
+
},
|
|
1381
|
+
"max-entities": {
|
|
1382
|
+
"char": "m",
|
|
1383
|
+
"description": "Max entities per group",
|
|
1384
|
+
"name": "max-entities",
|
|
1385
|
+
"default": 3,
|
|
1459
1386
|
"hasDynamicHelp": false,
|
|
1460
1387
|
"multiple": false,
|
|
1461
1388
|
"type": "option"
|
|
1462
1389
|
},
|
|
1463
|
-
"
|
|
1464
|
-
"char": "
|
|
1465
|
-
"description": "
|
|
1466
|
-
"name": "
|
|
1467
|
-
"
|
|
1468
|
-
"
|
|
1390
|
+
"target-groups": {
|
|
1391
|
+
"char": "t",
|
|
1392
|
+
"description": "Target number of entity groups to generate",
|
|
1393
|
+
"name": "target-groups",
|
|
1394
|
+
"default": 75,
|
|
1395
|
+
"hasDynamicHelp": false,
|
|
1396
|
+
"multiple": false,
|
|
1397
|
+
"type": "option"
|
|
1469
1398
|
},
|
|
1470
|
-
"
|
|
1471
|
-
"
|
|
1472
|
-
"
|
|
1473
|
-
"
|
|
1474
|
-
"
|
|
1399
|
+
"max-refinements": {
|
|
1400
|
+
"char": "r",
|
|
1401
|
+
"description": "Max refinement iterations",
|
|
1402
|
+
"name": "max-refinements",
|
|
1403
|
+
"default": 3,
|
|
1404
|
+
"hasDynamicHelp": false,
|
|
1405
|
+
"multiple": false,
|
|
1406
|
+
"type": "option"
|
|
1407
|
+
},
|
|
1408
|
+
"max-fixes": {
|
|
1409
|
+
"char": "f",
|
|
1410
|
+
"description": "Max error-fixing attempts",
|
|
1411
|
+
"name": "max-fixes",
|
|
1412
|
+
"default": 5,
|
|
1413
|
+
"hasDynamicHelp": false,
|
|
1414
|
+
"multiple": false,
|
|
1415
|
+
"type": "option"
|
|
1416
|
+
},
|
|
1417
|
+
"model": {
|
|
1418
|
+
"description": "Preferred AI model",
|
|
1419
|
+
"name": "model",
|
|
1420
|
+
"hasDynamicHelp": false,
|
|
1421
|
+
"multiple": false,
|
|
1422
|
+
"type": "option"
|
|
1423
|
+
},
|
|
1424
|
+
"vendor": {
|
|
1425
|
+
"description": "Preferred AI vendor",
|
|
1426
|
+
"name": "vendor",
|
|
1427
|
+
"hasDynamicHelp": false,
|
|
1428
|
+
"multiple": false,
|
|
1429
|
+
"type": "option"
|
|
1475
1430
|
},
|
|
1476
1431
|
"output": {
|
|
1477
|
-
"
|
|
1432
|
+
"char": "o",
|
|
1433
|
+
"description": "Output directory",
|
|
1478
1434
|
"name": "output",
|
|
1479
1435
|
"hasDynamicHelp": false,
|
|
1480
1436
|
"multiple": false,
|
|
1481
1437
|
"type": "option"
|
|
1438
|
+
},
|
|
1439
|
+
"mode": {
|
|
1440
|
+
"description": "Output mode: metadata|database|both",
|
|
1441
|
+
"name": "mode",
|
|
1442
|
+
"hasDynamicHelp": false,
|
|
1443
|
+
"multiple": false,
|
|
1444
|
+
"options": [
|
|
1445
|
+
"metadata",
|
|
1446
|
+
"database",
|
|
1447
|
+
"both"
|
|
1448
|
+
],
|
|
1449
|
+
"type": "option"
|
|
1450
|
+
},
|
|
1451
|
+
"verbose": {
|
|
1452
|
+
"char": "v",
|
|
1453
|
+
"description": "Verbose output",
|
|
1454
|
+
"name": "verbose",
|
|
1455
|
+
"allowNo": false,
|
|
1456
|
+
"type": "boolean"
|
|
1482
1457
|
}
|
|
1483
1458
|
},
|
|
1484
1459
|
"hasDynamicHelp": false,
|
|
1485
1460
|
"hiddenAliases": [],
|
|
1486
|
-
"id": "
|
|
1461
|
+
"id": "querygen:generate",
|
|
1487
1462
|
"pluginAlias": "@memberjunction/cli",
|
|
1488
1463
|
"pluginName": "@memberjunction/cli",
|
|
1489
1464
|
"pluginType": "core",
|
|
@@ -1493,44 +1468,32 @@
|
|
|
1493
1468
|
"relativePath": [
|
|
1494
1469
|
"dist",
|
|
1495
1470
|
"commands",
|
|
1496
|
-
"
|
|
1497
|
-
"
|
|
1471
|
+
"querygen",
|
|
1472
|
+
"generate.js"
|
|
1498
1473
|
]
|
|
1499
1474
|
},
|
|
1500
|
-
"
|
|
1475
|
+
"querygen:validate": {
|
|
1501
1476
|
"aliases": [],
|
|
1502
1477
|
"args": {},
|
|
1503
|
-
"description": "
|
|
1478
|
+
"description": "Validate existing query templates",
|
|
1504
1479
|
"examples": [
|
|
1505
1480
|
"<%= config.bin %> <%= command.id %>",
|
|
1506
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1507
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1508
|
-
"<%= config.bin %> <%= command.id %> --no-validate"
|
|
1481
|
+
"<%= config.bin %> <%= command.id %> --path ./metadata/queries",
|
|
1482
|
+
"<%= config.bin %> <%= command.id %> --verbose"
|
|
1509
1483
|
],
|
|
1510
1484
|
"flags": {
|
|
1511
|
-
"
|
|
1512
|
-
"
|
|
1513
|
-
"
|
|
1514
|
-
"
|
|
1515
|
-
"
|
|
1516
|
-
"type": "option"
|
|
1517
|
-
},
|
|
1518
|
-
"debounce": {
|
|
1519
|
-
"description": "Debounce delay in milliseconds (default: 500)",
|
|
1520
|
-
"name": "debounce",
|
|
1485
|
+
"path": {
|
|
1486
|
+
"char": "p",
|
|
1487
|
+
"description": "Path to queries metadata file or directory",
|
|
1488
|
+
"name": "path",
|
|
1489
|
+
"default": "./metadata/queries",
|
|
1521
1490
|
"hasDynamicHelp": false,
|
|
1522
1491
|
"multiple": false,
|
|
1523
1492
|
"type": "option"
|
|
1524
1493
|
},
|
|
1525
|
-
"no-validate": {
|
|
1526
|
-
"description": "Skip validation before sync",
|
|
1527
|
-
"name": "no-validate",
|
|
1528
|
-
"allowNo": false,
|
|
1529
|
-
"type": "boolean"
|
|
1530
|
-
},
|
|
1531
1494
|
"verbose": {
|
|
1532
1495
|
"char": "v",
|
|
1533
|
-
"description": "
|
|
1496
|
+
"description": "Verbose output",
|
|
1534
1497
|
"name": "verbose",
|
|
1535
1498
|
"allowNo": false,
|
|
1536
1499
|
"type": "boolean"
|
|
@@ -1538,7 +1501,7 @@
|
|
|
1538
1501
|
},
|
|
1539
1502
|
"hasDynamicHelp": false,
|
|
1540
1503
|
"hiddenAliases": [],
|
|
1541
|
-
"id": "
|
|
1504
|
+
"id": "querygen:validate",
|
|
1542
1505
|
"pluginAlias": "@memberjunction/cli",
|
|
1543
1506
|
"pluginName": "@memberjunction/cli",
|
|
1544
1507
|
"pluginType": "core",
|
|
@@ -1548,78 +1511,56 @@
|
|
|
1548
1511
|
"relativePath": [
|
|
1549
1512
|
"dist",
|
|
1550
1513
|
"commands",
|
|
1551
|
-
"
|
|
1552
|
-
"
|
|
1514
|
+
"querygen",
|
|
1515
|
+
"validate.js"
|
|
1553
1516
|
]
|
|
1554
1517
|
},
|
|
1555
|
-
"
|
|
1518
|
+
"sync:file-reset": {
|
|
1556
1519
|
"aliases": [],
|
|
1557
|
-
"args": {
|
|
1558
|
-
|
|
1559
|
-
"description": "First test run ID to compare",
|
|
1560
|
-
"name": "runId1",
|
|
1561
|
-
"required": false
|
|
1562
|
-
},
|
|
1563
|
-
"runId2": {
|
|
1564
|
-
"description": "Second test run ID to compare",
|
|
1565
|
-
"name": "runId2",
|
|
1566
|
-
"required": false
|
|
1567
|
-
}
|
|
1568
|
-
},
|
|
1569
|
-
"description": "Compare test runs for regression detection",
|
|
1520
|
+
"args": {},
|
|
1521
|
+
"description": "Reset file metadata sections",
|
|
1570
1522
|
"examples": [
|
|
1571
|
-
"<%= config.bin %> <%= command.id %>
|
|
1572
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1573
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1574
|
-
"<%= config.bin %> <%= command.id %>
|
|
1523
|
+
"<%= config.bin %> <%= command.id %>",
|
|
1524
|
+
"<%= config.bin %> <%= command.id %> --dir=\"ai-prompts\"",
|
|
1525
|
+
"<%= config.bin %> <%= command.id %> --sections=\"dependencies,references\"",
|
|
1526
|
+
"<%= config.bin %> <%= command.id %> --all"
|
|
1575
1527
|
],
|
|
1576
1528
|
"flags": {
|
|
1577
|
-
"
|
|
1578
|
-
"
|
|
1579
|
-
"
|
|
1580
|
-
"name": "version",
|
|
1529
|
+
"dir": {
|
|
1530
|
+
"description": "Specific entity directory to reset",
|
|
1531
|
+
"name": "dir",
|
|
1581
1532
|
"hasDynamicHelp": false,
|
|
1582
|
-
"multiple":
|
|
1533
|
+
"multiple": false,
|
|
1583
1534
|
"type": "option"
|
|
1584
1535
|
},
|
|
1585
|
-
"
|
|
1586
|
-
"
|
|
1587
|
-
"
|
|
1588
|
-
"name": "commit",
|
|
1536
|
+
"sections": {
|
|
1537
|
+
"description": "Comma-separated list of sections to reset (dependencies,references,related,lookup)",
|
|
1538
|
+
"name": "sections",
|
|
1589
1539
|
"hasDynamicHelp": false,
|
|
1590
|
-
"multiple":
|
|
1540
|
+
"multiple": false,
|
|
1591
1541
|
"type": "option"
|
|
1592
1542
|
},
|
|
1593
|
-
"
|
|
1594
|
-
"description": "
|
|
1595
|
-
"name": "
|
|
1543
|
+
"all": {
|
|
1544
|
+
"description": "Reset all metadata sections",
|
|
1545
|
+
"name": "all",
|
|
1596
1546
|
"allowNo": false,
|
|
1597
1547
|
"type": "boolean"
|
|
1598
1548
|
},
|
|
1599
|
-
"
|
|
1600
|
-
"
|
|
1601
|
-
"
|
|
1602
|
-
"
|
|
1603
|
-
"
|
|
1604
|
-
"hasDynamicHelp": false,
|
|
1605
|
-
"multiple": false,
|
|
1606
|
-
"options": [
|
|
1607
|
-
"console",
|
|
1608
|
-
"json",
|
|
1609
|
-
"markdown"
|
|
1610
|
-
],
|
|
1611
|
-
"type": "option"
|
|
1549
|
+
"dry-run": {
|
|
1550
|
+
"description": "Show what would be reset without actually resetting",
|
|
1551
|
+
"name": "dry-run",
|
|
1552
|
+
"allowNo": false,
|
|
1553
|
+
"type": "boolean"
|
|
1612
1554
|
},
|
|
1613
|
-
"
|
|
1614
|
-
"
|
|
1615
|
-
"
|
|
1616
|
-
"
|
|
1617
|
-
"
|
|
1618
|
-
"multiple": false,
|
|
1619
|
-
"type": "option"
|
|
1555
|
+
"force": {
|
|
1556
|
+
"description": "Skip confirmation prompts",
|
|
1557
|
+
"name": "force",
|
|
1558
|
+
"allowNo": false,
|
|
1559
|
+
"type": "boolean"
|
|
1620
1560
|
},
|
|
1621
1561
|
"verbose": {
|
|
1622
|
-
"
|
|
1562
|
+
"char": "v",
|
|
1563
|
+
"description": "Show detailed output",
|
|
1623
1564
|
"name": "verbose",
|
|
1624
1565
|
"allowNo": false,
|
|
1625
1566
|
"type": "boolean"
|
|
@@ -1627,7 +1568,7 @@
|
|
|
1627
1568
|
},
|
|
1628
1569
|
"hasDynamicHelp": false,
|
|
1629
1570
|
"hiddenAliases": [],
|
|
1630
|
-
"id": "
|
|
1571
|
+
"id": "sync:file-reset",
|
|
1631
1572
|
"pluginAlias": "@memberjunction/cli",
|
|
1632
1573
|
"pluginName": "@memberjunction/cli",
|
|
1633
1574
|
"pluginType": "core",
|
|
@@ -1637,86 +1578,151 @@
|
|
|
1637
1578
|
"relativePath": [
|
|
1638
1579
|
"dist",
|
|
1639
1580
|
"commands",
|
|
1640
|
-
"
|
|
1641
|
-
"
|
|
1581
|
+
"sync",
|
|
1582
|
+
"file-reset.js"
|
|
1642
1583
|
]
|
|
1643
1584
|
},
|
|
1644
|
-
"
|
|
1585
|
+
"sync:init": {
|
|
1645
1586
|
"aliases": [],
|
|
1646
1587
|
"args": {},
|
|
1647
|
-
"description": "
|
|
1588
|
+
"description": "Initialize a directory for metadata synchronization",
|
|
1648
1589
|
"examples": [
|
|
1649
|
-
"<%= config.bin %> <%= command.id %>"
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1590
|
+
"<%= config.bin %> <%= command.id %>"
|
|
1591
|
+
],
|
|
1592
|
+
"flags": {},
|
|
1593
|
+
"hasDynamicHelp": false,
|
|
1594
|
+
"hiddenAliases": [],
|
|
1595
|
+
"id": "sync:init",
|
|
1596
|
+
"pluginAlias": "@memberjunction/cli",
|
|
1597
|
+
"pluginName": "@memberjunction/cli",
|
|
1598
|
+
"pluginType": "core",
|
|
1599
|
+
"strict": true,
|
|
1600
|
+
"enableJsonFlag": false,
|
|
1601
|
+
"isESM": true,
|
|
1602
|
+
"relativePath": [
|
|
1603
|
+
"dist",
|
|
1604
|
+
"commands",
|
|
1605
|
+
"sync",
|
|
1606
|
+
"init.js"
|
|
1607
|
+
]
|
|
1608
|
+
},
|
|
1609
|
+
"sync:pull": {
|
|
1610
|
+
"aliases": [],
|
|
1611
|
+
"args": {},
|
|
1612
|
+
"description": "Pull metadata from database to local files",
|
|
1613
|
+
"examples": [
|
|
1614
|
+
"<%= config.bin %> <%= command.id %> --entity=\"MJ: AI Prompts\"",
|
|
1615
|
+
"<%= config.bin %> <%= command.id %> --entity=\"MJ: AI Prompts\" --filter=\"CategoryID='customer-service-id'\"",
|
|
1616
|
+
"<%= config.bin %> <%= command.id %> --entity=\"MJ: AI Agents\" --merge-strategy=overwrite",
|
|
1617
|
+
"<%= config.bin %> <%= command.id %> --entity=\"Actions\" --target-dir=./custom-actions --no-validate",
|
|
1618
|
+
"<%= config.bin %> <%= command.id %> --entity=\"Templates\" --dry-run --verbose",
|
|
1619
|
+
"<%= config.bin %> <%= command.id %> --entity=\"MJ: AI Prompts\" --exclude-fields=InternalNotes,DebugInfo"
|
|
1654
1620
|
],
|
|
1655
1621
|
"flags": {
|
|
1656
|
-
"
|
|
1657
|
-
"
|
|
1658
|
-
"
|
|
1659
|
-
"
|
|
1622
|
+
"entity": {
|
|
1623
|
+
"description": "Entity name to pull",
|
|
1624
|
+
"name": "entity",
|
|
1625
|
+
"required": true,
|
|
1660
1626
|
"hasDynamicHelp": false,
|
|
1661
1627
|
"multiple": false,
|
|
1662
1628
|
"type": "option"
|
|
1663
1629
|
},
|
|
1664
|
-
"
|
|
1665
|
-
"
|
|
1666
|
-
"
|
|
1667
|
-
"name": "recent",
|
|
1630
|
+
"filter": {
|
|
1631
|
+
"description": "Additional filter for pulling specific records",
|
|
1632
|
+
"name": "filter",
|
|
1668
1633
|
"hasDynamicHelp": false,
|
|
1669
1634
|
"multiple": false,
|
|
1670
1635
|
"type": "option"
|
|
1671
1636
|
},
|
|
1672
|
-
"
|
|
1673
|
-
"description": "Show
|
|
1674
|
-
"name": "
|
|
1637
|
+
"dry-run": {
|
|
1638
|
+
"description": "Show what would be pulled without actually pulling",
|
|
1639
|
+
"name": "dry-run",
|
|
1640
|
+
"allowNo": false,
|
|
1641
|
+
"type": "boolean"
|
|
1642
|
+
},
|
|
1643
|
+
"multi-file": {
|
|
1644
|
+
"description": "Create a single file with multiple records (provide filename)",
|
|
1645
|
+
"name": "multi-file",
|
|
1675
1646
|
"hasDynamicHelp": false,
|
|
1676
1647
|
"multiple": false,
|
|
1677
1648
|
"type": "option"
|
|
1678
1649
|
},
|
|
1679
|
-
"
|
|
1680
|
-
"char": "
|
|
1681
|
-
"description": "
|
|
1682
|
-
"name": "
|
|
1683
|
-
"
|
|
1684
|
-
"
|
|
1685
|
-
"type": "option"
|
|
1650
|
+
"verbose": {
|
|
1651
|
+
"char": "v",
|
|
1652
|
+
"description": "Show detailed output",
|
|
1653
|
+
"name": "verbose",
|
|
1654
|
+
"allowNo": false,
|
|
1655
|
+
"type": "boolean"
|
|
1686
1656
|
},
|
|
1687
|
-
"
|
|
1688
|
-
"
|
|
1689
|
-
"
|
|
1690
|
-
"
|
|
1691
|
-
"
|
|
1657
|
+
"no-validate": {
|
|
1658
|
+
"description": "Skip validation before pull",
|
|
1659
|
+
"name": "no-validate",
|
|
1660
|
+
"allowNo": false,
|
|
1661
|
+
"type": "boolean"
|
|
1662
|
+
},
|
|
1663
|
+
"update-existing": {
|
|
1664
|
+
"description": "Update existing records during pull",
|
|
1665
|
+
"name": "update-existing",
|
|
1666
|
+
"allowNo": false,
|
|
1667
|
+
"type": "boolean"
|
|
1668
|
+
},
|
|
1669
|
+
"create-new": {
|
|
1670
|
+
"description": "Create new files for records not found locally",
|
|
1671
|
+
"name": "create-new",
|
|
1672
|
+
"allowNo": false,
|
|
1673
|
+
"type": "boolean"
|
|
1674
|
+
},
|
|
1675
|
+
"backup-before-update": {
|
|
1676
|
+
"description": "Create backups before updating files",
|
|
1677
|
+
"name": "backup-before-update",
|
|
1678
|
+
"allowNo": false,
|
|
1679
|
+
"type": "boolean"
|
|
1680
|
+
},
|
|
1681
|
+
"merge-strategy": {
|
|
1682
|
+
"description": "Merge strategy for updates",
|
|
1683
|
+
"name": "merge-strategy",
|
|
1684
|
+
"default": "merge",
|
|
1692
1685
|
"hasDynamicHelp": false,
|
|
1693
1686
|
"multiple": false,
|
|
1694
1687
|
"options": [
|
|
1695
|
-
"
|
|
1696
|
-
"
|
|
1697
|
-
"
|
|
1688
|
+
"merge",
|
|
1689
|
+
"overwrite",
|
|
1690
|
+
"skip"
|
|
1698
1691
|
],
|
|
1699
1692
|
"type": "option"
|
|
1700
1693
|
},
|
|
1701
|
-
"
|
|
1702
|
-
"
|
|
1703
|
-
"
|
|
1704
|
-
"name": "output",
|
|
1694
|
+
"backup-directory": {
|
|
1695
|
+
"description": "Custom backup directory (default: .backups)",
|
|
1696
|
+
"name": "backup-directory",
|
|
1705
1697
|
"hasDynamicHelp": false,
|
|
1706
1698
|
"multiple": false,
|
|
1707
1699
|
"type": "option"
|
|
1708
1700
|
},
|
|
1709
|
-
"
|
|
1710
|
-
"
|
|
1711
|
-
"
|
|
1712
|
-
"
|
|
1713
|
-
"
|
|
1714
|
-
"type": "
|
|
1701
|
+
"preserve-fields": {
|
|
1702
|
+
"description": "Comma-separated list of fields to preserve during updates",
|
|
1703
|
+
"name": "preserve-fields",
|
|
1704
|
+
"hasDynamicHelp": false,
|
|
1705
|
+
"multiple": true,
|
|
1706
|
+
"type": "option"
|
|
1707
|
+
},
|
|
1708
|
+
"exclude-fields": {
|
|
1709
|
+
"description": "Comma-separated list of fields to exclude from pull",
|
|
1710
|
+
"name": "exclude-fields",
|
|
1711
|
+
"hasDynamicHelp": false,
|
|
1712
|
+
"multiple": true,
|
|
1713
|
+
"type": "option"
|
|
1714
|
+
},
|
|
1715
|
+
"target-dir": {
|
|
1716
|
+
"description": "Specific target directory (overrides auto-discovery)",
|
|
1717
|
+
"name": "target-dir",
|
|
1718
|
+
"hasDynamicHelp": false,
|
|
1719
|
+
"multiple": false,
|
|
1720
|
+
"type": "option"
|
|
1715
1721
|
}
|
|
1716
1722
|
},
|
|
1717
1723
|
"hasDynamicHelp": false,
|
|
1718
1724
|
"hiddenAliases": [],
|
|
1719
|
-
"id": "
|
|
1725
|
+
"id": "sync:pull",
|
|
1720
1726
|
"pluginAlias": "@memberjunction/cli",
|
|
1721
1727
|
"pluginName": "@memberjunction/cli",
|
|
1722
1728
|
"pluginType": "core",
|
|
@@ -1726,26 +1732,85 @@
|
|
|
1726
1732
|
"relativePath": [
|
|
1727
1733
|
"dist",
|
|
1728
1734
|
"commands",
|
|
1729
|
-
"
|
|
1730
|
-
"
|
|
1735
|
+
"sync",
|
|
1736
|
+
"pull.js"
|
|
1731
1737
|
]
|
|
1732
1738
|
},
|
|
1733
|
-
"
|
|
1739
|
+
"sync:push": {
|
|
1734
1740
|
"aliases": [],
|
|
1735
1741
|
"args": {},
|
|
1736
|
-
"description": "
|
|
1742
|
+
"description": "Push local file changes to the database",
|
|
1737
1743
|
"examples": [
|
|
1738
|
-
"<%= config.bin %> <%= command.id %>
|
|
1739
|
-
"<%= config.bin %> <%= command.id %> run
|
|
1740
|
-
"<%= config.bin %> <%= command.id %>
|
|
1741
|
-
"<%= config.bin %> <%= command.id %>
|
|
1742
|
-
"<%= config.bin %> <%= command.id %> list --suites",
|
|
1743
|
-
"<%= config.bin %> <%= command.id %> validate --all"
|
|
1744
|
+
"<%= config.bin %> <%= command.id %>",
|
|
1745
|
+
"<%= config.bin %> <%= command.id %> --dry-run",
|
|
1746
|
+
"<%= config.bin %> <%= command.id %> --dir=\"ai-prompts\"",
|
|
1747
|
+
"<%= config.bin %> <%= command.id %> --ci"
|
|
1744
1748
|
],
|
|
1745
|
-
"flags": {
|
|
1749
|
+
"flags": {
|
|
1750
|
+
"dir": {
|
|
1751
|
+
"description": "Specific entity directory to push",
|
|
1752
|
+
"name": "dir",
|
|
1753
|
+
"hasDynamicHelp": false,
|
|
1754
|
+
"multiple": false,
|
|
1755
|
+
"type": "option"
|
|
1756
|
+
},
|
|
1757
|
+
"dry-run": {
|
|
1758
|
+
"description": "Show what would be pushed without actually pushing",
|
|
1759
|
+
"name": "dry-run",
|
|
1760
|
+
"allowNo": false,
|
|
1761
|
+
"type": "boolean"
|
|
1762
|
+
},
|
|
1763
|
+
"ci": {
|
|
1764
|
+
"description": "CI mode - no prompts, fail on issues",
|
|
1765
|
+
"name": "ci",
|
|
1766
|
+
"allowNo": false,
|
|
1767
|
+
"type": "boolean"
|
|
1768
|
+
},
|
|
1769
|
+
"verbose": {
|
|
1770
|
+
"char": "v",
|
|
1771
|
+
"description": "Show detailed field-level output",
|
|
1772
|
+
"name": "verbose",
|
|
1773
|
+
"allowNo": false,
|
|
1774
|
+
"type": "boolean"
|
|
1775
|
+
},
|
|
1776
|
+
"no-validate": {
|
|
1777
|
+
"description": "Skip validation before push",
|
|
1778
|
+
"name": "no-validate",
|
|
1779
|
+
"allowNo": false,
|
|
1780
|
+
"type": "boolean"
|
|
1781
|
+
},
|
|
1782
|
+
"delete-db-only": {
|
|
1783
|
+
"description": "Delete database-only records that reference records being deleted (prevents FK errors)",
|
|
1784
|
+
"name": "delete-db-only",
|
|
1785
|
+
"allowNo": false,
|
|
1786
|
+
"type": "boolean"
|
|
1787
|
+
},
|
|
1788
|
+
"parallel-batch-size": {
|
|
1789
|
+
"description": "Number of records to process in parallel (default: 10)",
|
|
1790
|
+
"name": "parallel-batch-size",
|
|
1791
|
+
"default": 10,
|
|
1792
|
+
"hasDynamicHelp": false,
|
|
1793
|
+
"multiple": false,
|
|
1794
|
+
"type": "option"
|
|
1795
|
+
},
|
|
1796
|
+
"include": {
|
|
1797
|
+
"description": "Only process these directories (comma-separated, supports patterns)",
|
|
1798
|
+
"name": "include",
|
|
1799
|
+
"hasDynamicHelp": false,
|
|
1800
|
+
"multiple": false,
|
|
1801
|
+
"type": "option"
|
|
1802
|
+
},
|
|
1803
|
+
"exclude": {
|
|
1804
|
+
"description": "Skip these directories (comma-separated, supports patterns)",
|
|
1805
|
+
"name": "exclude",
|
|
1806
|
+
"hasDynamicHelp": false,
|
|
1807
|
+
"multiple": false,
|
|
1808
|
+
"type": "option"
|
|
1809
|
+
}
|
|
1810
|
+
},
|
|
1746
1811
|
"hasDynamicHelp": false,
|
|
1747
1812
|
"hiddenAliases": [],
|
|
1748
|
-
"id": "
|
|
1813
|
+
"id": "sync:push",
|
|
1749
1814
|
"pluginAlias": "@memberjunction/cli",
|
|
1750
1815
|
"pluginName": "@memberjunction/cli",
|
|
1751
1816
|
"pluginType": "core",
|
|
@@ -1755,91 +1820,52 @@
|
|
|
1755
1820
|
"relativePath": [
|
|
1756
1821
|
"dist",
|
|
1757
1822
|
"commands",
|
|
1758
|
-
"
|
|
1759
|
-
"
|
|
1823
|
+
"sync",
|
|
1824
|
+
"push.js"
|
|
1760
1825
|
]
|
|
1761
1826
|
},
|
|
1762
|
-
"
|
|
1827
|
+
"sync:status": {
|
|
1763
1828
|
"aliases": [],
|
|
1764
1829
|
"args": {},
|
|
1765
|
-
"description": "
|
|
1830
|
+
"description": "Show status of local files vs database",
|
|
1766
1831
|
"examples": [
|
|
1767
1832
|
"<%= config.bin %> <%= command.id %>",
|
|
1768
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1769
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1770
|
-
"<%= config.bin %> <%= command.id %> --type=agent-eval",
|
|
1771
|
-
"<%= config.bin %> <%= command.id %> --tag=smoke",
|
|
1772
|
-
"<%= config.bin %> <%= command.id %> --status=active --verbose"
|
|
1833
|
+
"<%= config.bin %> <%= command.id %> --dir=\"ai-prompts\"",
|
|
1834
|
+
"<%= config.bin %> <%= command.id %> --verbose"
|
|
1773
1835
|
],
|
|
1774
1836
|
"flags": {
|
|
1775
|
-
"
|
|
1776
|
-
"description": "
|
|
1777
|
-
"name": "
|
|
1778
|
-
"allowNo": false,
|
|
1779
|
-
"type": "boolean"
|
|
1780
|
-
},
|
|
1781
|
-
"types": {
|
|
1782
|
-
"description": "List test types",
|
|
1783
|
-
"name": "types",
|
|
1784
|
-
"allowNo": false,
|
|
1785
|
-
"type": "boolean"
|
|
1786
|
-
},
|
|
1787
|
-
"type": {
|
|
1788
|
-
"char": "t",
|
|
1789
|
-
"description": "Filter by test type",
|
|
1790
|
-
"name": "type",
|
|
1791
|
-
"hasDynamicHelp": false,
|
|
1792
|
-
"multiple": false,
|
|
1793
|
-
"type": "option"
|
|
1794
|
-
},
|
|
1795
|
-
"tag": {
|
|
1796
|
-
"description": "Filter by tag",
|
|
1797
|
-
"name": "tag",
|
|
1837
|
+
"dir": {
|
|
1838
|
+
"description": "Specific entity directory to check status",
|
|
1839
|
+
"name": "dir",
|
|
1798
1840
|
"hasDynamicHelp": false,
|
|
1799
1841
|
"multiple": false,
|
|
1800
1842
|
"type": "option"
|
|
1801
1843
|
},
|
|
1802
|
-
"
|
|
1803
|
-
"char": "
|
|
1804
|
-
"description": "
|
|
1805
|
-
"name": "
|
|
1806
|
-
"
|
|
1807
|
-
"
|
|
1808
|
-
"type": "option"
|
|
1844
|
+
"verbose": {
|
|
1845
|
+
"char": "v",
|
|
1846
|
+
"description": "Show detailed field-level differences",
|
|
1847
|
+
"name": "verbose",
|
|
1848
|
+
"allowNo": false,
|
|
1849
|
+
"type": "boolean"
|
|
1809
1850
|
},
|
|
1810
|
-
"
|
|
1811
|
-
"
|
|
1812
|
-
"
|
|
1813
|
-
"name": "format",
|
|
1814
|
-
"default": "console",
|
|
1851
|
+
"include": {
|
|
1852
|
+
"description": "Only process these directories (comma-separated, supports patterns)",
|
|
1853
|
+
"name": "include",
|
|
1815
1854
|
"hasDynamicHelp": false,
|
|
1816
1855
|
"multiple": false,
|
|
1817
|
-
"options": [
|
|
1818
|
-
"console",
|
|
1819
|
-
"json",
|
|
1820
|
-
"markdown"
|
|
1821
|
-
],
|
|
1822
1856
|
"type": "option"
|
|
1823
1857
|
},
|
|
1824
|
-
"
|
|
1825
|
-
"
|
|
1826
|
-
"
|
|
1827
|
-
"name": "output",
|
|
1858
|
+
"exclude": {
|
|
1859
|
+
"description": "Skip these directories (comma-separated, supports patterns)",
|
|
1860
|
+
"name": "exclude",
|
|
1828
1861
|
"hasDynamicHelp": false,
|
|
1829
1862
|
"multiple": false,
|
|
1830
1863
|
"type": "option"
|
|
1831
|
-
},
|
|
1832
|
-
"verbose": {
|
|
1833
|
-
"char": "v",
|
|
1834
|
-
"description": "Show detailed information",
|
|
1835
|
-
"name": "verbose",
|
|
1836
|
-
"allowNo": false,
|
|
1837
|
-
"type": "boolean"
|
|
1838
1864
|
}
|
|
1839
1865
|
},
|
|
1840
1866
|
"hasDynamicHelp": false,
|
|
1841
1867
|
"hiddenAliases": [],
|
|
1842
|
-
"id": "
|
|
1868
|
+
"id": "sync:status",
|
|
1843
1869
|
"pluginAlias": "@memberjunction/cli",
|
|
1844
1870
|
"pluginName": "@memberjunction/cli",
|
|
1845
1871
|
"pluginType": "core",
|
|
@@ -1849,83 +1875,52 @@
|
|
|
1849
1875
|
"relativePath": [
|
|
1850
1876
|
"dist",
|
|
1851
1877
|
"commands",
|
|
1852
|
-
"
|
|
1853
|
-
"
|
|
1878
|
+
"sync",
|
|
1879
|
+
"status.js"
|
|
1854
1880
|
]
|
|
1855
1881
|
},
|
|
1856
|
-
"
|
|
1882
|
+
"sync:validate": {
|
|
1857
1883
|
"aliases": [],
|
|
1858
|
-
"args": {
|
|
1859
|
-
|
|
1860
|
-
"description": "Test ID to execute",
|
|
1861
|
-
"name": "testId",
|
|
1862
|
-
"required": false
|
|
1863
|
-
}
|
|
1864
|
-
},
|
|
1865
|
-
"description": "Execute a single test by ID or name",
|
|
1884
|
+
"args": {},
|
|
1885
|
+
"description": "Validate metadata files",
|
|
1866
1886
|
"examples": [
|
|
1867
|
-
"<%= config.bin %> <%= command.id %>
|
|
1868
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1869
|
-
"<%= config.bin %> <%= command.id %>
|
|
1870
|
-
"<%= config.bin %> <%= command.id %>
|
|
1871
|
-
"<%= config.bin %> <%= command.id %> <test-id> --dry-run"
|
|
1887
|
+
"<%= config.bin %> <%= command.id %>",
|
|
1888
|
+
"<%= config.bin %> <%= command.id %> --dir=\"ai-prompts\"",
|
|
1889
|
+
"<%= config.bin %> <%= command.id %> --save-report",
|
|
1890
|
+
"<%= config.bin %> <%= command.id %> --verbose"
|
|
1872
1891
|
],
|
|
1873
1892
|
"flags": {
|
|
1874
|
-
"
|
|
1875
|
-
"
|
|
1876
|
-
"
|
|
1877
|
-
"name": "name",
|
|
1893
|
+
"dir": {
|
|
1894
|
+
"description": "Specific entity directory to validate",
|
|
1895
|
+
"name": "dir",
|
|
1878
1896
|
"hasDynamicHelp": false,
|
|
1879
1897
|
"multiple": false,
|
|
1880
1898
|
"type": "option"
|
|
1881
1899
|
},
|
|
1882
|
-
"
|
|
1883
|
-
"char": "
|
|
1884
|
-
"description": "
|
|
1885
|
-
"name": "
|
|
1886
|
-
"
|
|
1887
|
-
"
|
|
1888
|
-
"type": "option"
|
|
1900
|
+
"verbose": {
|
|
1901
|
+
"char": "v",
|
|
1902
|
+
"description": "Show detailed validation output",
|
|
1903
|
+
"name": "verbose",
|
|
1904
|
+
"allowNo": false,
|
|
1905
|
+
"type": "boolean"
|
|
1889
1906
|
},
|
|
1890
|
-
"
|
|
1891
|
-
"
|
|
1892
|
-
"
|
|
1893
|
-
"
|
|
1894
|
-
"
|
|
1895
|
-
"hasDynamicHelp": false,
|
|
1896
|
-
"multiple": false,
|
|
1897
|
-
"options": [
|
|
1898
|
-
"console",
|
|
1899
|
-
"json",
|
|
1900
|
-
"markdown"
|
|
1901
|
-
],
|
|
1902
|
-
"type": "option"
|
|
1907
|
+
"save-report": {
|
|
1908
|
+
"description": "Save validation report as markdown file",
|
|
1909
|
+
"name": "save-report",
|
|
1910
|
+
"allowNo": false,
|
|
1911
|
+
"type": "boolean"
|
|
1903
1912
|
},
|
|
1904
1913
|
"output": {
|
|
1905
|
-
"
|
|
1906
|
-
"description": "Output file path",
|
|
1914
|
+
"description": "Output file path for validation report (default: validation-report.md)",
|
|
1907
1915
|
"name": "output",
|
|
1908
1916
|
"hasDynamicHelp": false,
|
|
1909
1917
|
"multiple": false,
|
|
1910
1918
|
"type": "option"
|
|
1911
|
-
},
|
|
1912
|
-
"dry-run": {
|
|
1913
|
-
"description": "Validate without executing",
|
|
1914
|
-
"name": "dry-run",
|
|
1915
|
-
"allowNo": false,
|
|
1916
|
-
"type": "boolean"
|
|
1917
|
-
},
|
|
1918
|
-
"verbose": {
|
|
1919
|
-
"char": "v",
|
|
1920
|
-
"description": "Show detailed execution information",
|
|
1921
|
-
"name": "verbose",
|
|
1922
|
-
"allowNo": false,
|
|
1923
|
-
"type": "boolean"
|
|
1924
1919
|
}
|
|
1925
1920
|
},
|
|
1926
1921
|
"hasDynamicHelp": false,
|
|
1927
1922
|
"hiddenAliases": [],
|
|
1928
|
-
"id": "
|
|
1923
|
+
"id": "sync:validate",
|
|
1929
1924
|
"pluginAlias": "@memberjunction/cli",
|
|
1930
1925
|
"pluginName": "@memberjunction/cli",
|
|
1931
1926
|
"pluginType": "core",
|
|
@@ -1935,60 +1930,44 @@
|
|
|
1935
1930
|
"relativePath": [
|
|
1936
1931
|
"dist",
|
|
1937
1932
|
"commands",
|
|
1938
|
-
"
|
|
1939
|
-
"
|
|
1933
|
+
"sync",
|
|
1934
|
+
"validate.js"
|
|
1940
1935
|
]
|
|
1941
1936
|
},
|
|
1942
|
-
"
|
|
1937
|
+
"sync:watch": {
|
|
1943
1938
|
"aliases": [],
|
|
1944
|
-
"args": {
|
|
1945
|
-
|
|
1946
|
-
"description": "Test suite ID to execute",
|
|
1947
|
-
"name": "suiteId",
|
|
1948
|
-
"required": false
|
|
1949
|
-
}
|
|
1950
|
-
},
|
|
1951
|
-
"description": "Execute a test suite",
|
|
1939
|
+
"args": {},
|
|
1940
|
+
"description": "Watch for file changes and sync automatically",
|
|
1952
1941
|
"examples": [
|
|
1953
|
-
"<%= config.bin %> <%= command.id %>
|
|
1954
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1955
|
-
"<%= config.bin %> <%= command.id %>
|
|
1956
|
-
"<%= config.bin %> <%= command.id %>
|
|
1942
|
+
"<%= config.bin %> <%= command.id %>",
|
|
1943
|
+
"<%= config.bin %> <%= command.id %> --dir=\"ai-prompts\"",
|
|
1944
|
+
"<%= config.bin %> <%= command.id %> --debounce=1000",
|
|
1945
|
+
"<%= config.bin %> <%= command.id %> --no-validate"
|
|
1957
1946
|
],
|
|
1958
1947
|
"flags": {
|
|
1959
|
-
"
|
|
1960
|
-
"
|
|
1961
|
-
"
|
|
1962
|
-
"name": "name",
|
|
1948
|
+
"dir": {
|
|
1949
|
+
"description": "Specific entity directory to watch",
|
|
1950
|
+
"name": "dir",
|
|
1963
1951
|
"hasDynamicHelp": false,
|
|
1964
1952
|
"multiple": false,
|
|
1965
1953
|
"type": "option"
|
|
1966
1954
|
},
|
|
1967
|
-
"
|
|
1968
|
-
"
|
|
1969
|
-
"
|
|
1970
|
-
"name": "format",
|
|
1971
|
-
"default": "console",
|
|
1955
|
+
"debounce": {
|
|
1956
|
+
"description": "Debounce delay in milliseconds (default: 500)",
|
|
1957
|
+
"name": "debounce",
|
|
1972
1958
|
"hasDynamicHelp": false,
|
|
1973
1959
|
"multiple": false,
|
|
1974
|
-
"options": [
|
|
1975
|
-
"console",
|
|
1976
|
-
"json",
|
|
1977
|
-
"markdown"
|
|
1978
|
-
],
|
|
1979
1960
|
"type": "option"
|
|
1980
1961
|
},
|
|
1981
|
-
"
|
|
1982
|
-
"
|
|
1983
|
-
"
|
|
1984
|
-
"
|
|
1985
|
-
"
|
|
1986
|
-
"multiple": false,
|
|
1987
|
-
"type": "option"
|
|
1962
|
+
"no-validate": {
|
|
1963
|
+
"description": "Skip validation before sync",
|
|
1964
|
+
"name": "no-validate",
|
|
1965
|
+
"allowNo": false,
|
|
1966
|
+
"type": "boolean"
|
|
1988
1967
|
},
|
|
1989
1968
|
"verbose": {
|
|
1990
1969
|
"char": "v",
|
|
1991
|
-
"description": "Show detailed
|
|
1970
|
+
"description": "Show detailed output",
|
|
1992
1971
|
"name": "verbose",
|
|
1993
1972
|
"allowNo": false,
|
|
1994
1973
|
"type": "boolean"
|
|
@@ -1996,7 +1975,7 @@
|
|
|
1996
1975
|
},
|
|
1997
1976
|
"hasDynamicHelp": false,
|
|
1998
1977
|
"hiddenAliases": [],
|
|
1999
|
-
"id": "
|
|
1978
|
+
"id": "sync:watch",
|
|
2000
1979
|
"pluginAlias": "@memberjunction/cli",
|
|
2001
1980
|
"pluginName": "@memberjunction/cli",
|
|
2002
1981
|
"pluginType": "core",
|
|
@@ -2006,46 +1985,51 @@
|
|
|
2006
1985
|
"relativePath": [
|
|
2007
1986
|
"dist",
|
|
2008
1987
|
"commands",
|
|
2009
|
-
"
|
|
2010
|
-
"
|
|
1988
|
+
"sync",
|
|
1989
|
+
"watch.js"
|
|
2011
1990
|
]
|
|
2012
1991
|
},
|
|
2013
|
-
"test:
|
|
1992
|
+
"test:compare": {
|
|
2014
1993
|
"aliases": [],
|
|
2015
1994
|
"args": {
|
|
2016
|
-
"
|
|
2017
|
-
"description": "
|
|
2018
|
-
"name": "
|
|
1995
|
+
"runId1": {
|
|
1996
|
+
"description": "First test run ID to compare",
|
|
1997
|
+
"name": "runId1",
|
|
1998
|
+
"required": false
|
|
1999
|
+
},
|
|
2000
|
+
"runId2": {
|
|
2001
|
+
"description": "Second test run ID to compare",
|
|
2002
|
+
"name": "runId2",
|
|
2019
2003
|
"required": false
|
|
2020
2004
|
}
|
|
2021
2005
|
},
|
|
2022
|
-
"description": "
|
|
2006
|
+
"description": "Compare test runs for regression detection",
|
|
2023
2007
|
"examples": [
|
|
2024
|
-
"<%= config.bin %> <%= command.id %> <
|
|
2025
|
-
"<%= config.bin %> <%= command.id %> --
|
|
2026
|
-
"<%= config.bin %> <%= command.id %> --
|
|
2027
|
-
"<%= config.bin %> <%= command.id %>
|
|
2028
|
-
"<%= config.bin %> <%= command.id %> --all --output=validation-report.md"
|
|
2008
|
+
"<%= config.bin %> <%= command.id %> <run-id-1> <run-id-2>",
|
|
2009
|
+
"<%= config.bin %> <%= command.id %> --baseline=<run-id> --current=<run-id>",
|
|
2010
|
+
"<%= config.bin %> <%= command.id %> --suite=<suite-id> --since=\"2024-01-01\"",
|
|
2011
|
+
"<%= config.bin %> <%= command.id %> <run-id-1> <run-id-2> --format=json"
|
|
2029
2012
|
],
|
|
2030
2013
|
"flags": {
|
|
2031
|
-
"
|
|
2032
|
-
"char": "
|
|
2033
|
-
"description": "
|
|
2034
|
-
"name": "
|
|
2035
|
-
"
|
|
2036
|
-
"
|
|
2014
|
+
"version": {
|
|
2015
|
+
"char": "v",
|
|
2016
|
+
"description": "Compare runs by version",
|
|
2017
|
+
"name": "version",
|
|
2018
|
+
"hasDynamicHelp": false,
|
|
2019
|
+
"multiple": true,
|
|
2020
|
+
"type": "option"
|
|
2037
2021
|
},
|
|
2038
|
-
"
|
|
2039
|
-
"char": "
|
|
2040
|
-
"description": "
|
|
2041
|
-
"name": "
|
|
2022
|
+
"commit": {
|
|
2023
|
+
"char": "c",
|
|
2024
|
+
"description": "Compare runs by git commit",
|
|
2025
|
+
"name": "commit",
|
|
2042
2026
|
"hasDynamicHelp": false,
|
|
2043
|
-
"multiple":
|
|
2027
|
+
"multiple": true,
|
|
2044
2028
|
"type": "option"
|
|
2045
2029
|
},
|
|
2046
|
-
"
|
|
2047
|
-
"description": "
|
|
2048
|
-
"name": "
|
|
2030
|
+
"diff-only": {
|
|
2031
|
+
"description": "Show only differences",
|
|
2032
|
+
"name": "diff-only",
|
|
2049
2033
|
"allowNo": false,
|
|
2050
2034
|
"type": "boolean"
|
|
2051
2035
|
},
|
|
@@ -2072,7 +2056,6 @@
|
|
|
2072
2056
|
"type": "option"
|
|
2073
2057
|
},
|
|
2074
2058
|
"verbose": {
|
|
2075
|
-
"char": "v",
|
|
2076
2059
|
"description": "Show detailed information",
|
|
2077
2060
|
"name": "verbose",
|
|
2078
2061
|
"allowNo": false,
|
|
@@ -2081,7 +2064,7 @@
|
|
|
2081
2064
|
},
|
|
2082
2065
|
"hasDynamicHelp": false,
|
|
2083
2066
|
"hiddenAliases": [],
|
|
2084
|
-
"id": "test:
|
|
2067
|
+
"id": "test:compare",
|
|
2085
2068
|
"pluginAlias": "@memberjunction/cli",
|
|
2086
2069
|
"pluginName": "@memberjunction/cli",
|
|
2087
2070
|
"pluginType": "core",
|
|
@@ -2092,149 +2075,85 @@
|
|
|
2092
2075
|
"dist",
|
|
2093
2076
|
"commands",
|
|
2094
2077
|
"test",
|
|
2095
|
-
"
|
|
2096
|
-
]
|
|
2097
|
-
},
|
|
2098
|
-
"dbdoc:analyze": {
|
|
2099
|
-
"aliases": [],
|
|
2100
|
-
"args": {},
|
|
2101
|
-
"description": "Analyze database and generate documentation (delegates to db-auto-doc analyze)",
|
|
2102
|
-
"examples": [
|
|
2103
|
-
"<%= config.bin %> <%= command.id %>",
|
|
2104
|
-
"<%= config.bin %> <%= command.id %> --resume ./output/run-6/state.json",
|
|
2105
|
-
"<%= config.bin %> <%= command.id %> --config ./my-config.json"
|
|
2106
|
-
],
|
|
2107
|
-
"flags": {
|
|
2108
|
-
"resume": {
|
|
2109
|
-
"char": "r",
|
|
2110
|
-
"description": "Resume from an existing state file",
|
|
2111
|
-
"name": "resume",
|
|
2112
|
-
"required": false,
|
|
2113
|
-
"hasDynamicHelp": false,
|
|
2114
|
-
"multiple": false,
|
|
2115
|
-
"type": "option"
|
|
2116
|
-
},
|
|
2117
|
-
"config": {
|
|
2118
|
-
"char": "c",
|
|
2119
|
-
"description": "Path to config file",
|
|
2120
|
-
"name": "config",
|
|
2121
|
-
"default": "./config.json",
|
|
2122
|
-
"hasDynamicHelp": false,
|
|
2123
|
-
"multiple": false,
|
|
2124
|
-
"type": "option"
|
|
2125
|
-
}
|
|
2126
|
-
},
|
|
2127
|
-
"hasDynamicHelp": false,
|
|
2128
|
-
"hiddenAliases": [],
|
|
2129
|
-
"id": "dbdoc:analyze",
|
|
2130
|
-
"pluginAlias": "@memberjunction/cli",
|
|
2131
|
-
"pluginName": "@memberjunction/cli",
|
|
2132
|
-
"pluginType": "core",
|
|
2133
|
-
"strict": true,
|
|
2134
|
-
"enableJsonFlag": false,
|
|
2135
|
-
"isESM": true,
|
|
2136
|
-
"relativePath": [
|
|
2137
|
-
"dist",
|
|
2138
|
-
"commands",
|
|
2139
|
-
"dbdoc",
|
|
2140
|
-
"analyze.js"
|
|
2078
|
+
"compare.js"
|
|
2141
2079
|
]
|
|
2142
2080
|
},
|
|
2143
|
-
"
|
|
2081
|
+
"test:history": {
|
|
2144
2082
|
"aliases": [],
|
|
2145
2083
|
"args": {},
|
|
2146
|
-
"description": "
|
|
2147
|
-
"examples": [
|
|
2148
|
-
"<%= config.bin %> <%= command.id %>
|
|
2149
|
-
"<%= config.bin %> <%= command.id %> --
|
|
2150
|
-
"<%= config.bin %> <%= command.id %> --
|
|
2151
|
-
"<%= config.bin %> <%= command.id %> --
|
|
2084
|
+
"description": "View test execution history",
|
|
2085
|
+
"examples": [
|
|
2086
|
+
"<%= config.bin %> <%= command.id %>",
|
|
2087
|
+
"<%= config.bin %> <%= command.id %> --test=<test-id>",
|
|
2088
|
+
"<%= config.bin %> <%= command.id %> --suite=<suite-id>",
|
|
2089
|
+
"<%= config.bin %> <%= command.id %> --since=\"2024-01-01\"",
|
|
2090
|
+
"<%= config.bin %> <%= command.id %> --limit=50"
|
|
2152
2091
|
],
|
|
2153
2092
|
"flags": {
|
|
2154
|
-
"
|
|
2155
|
-
"char": "
|
|
2156
|
-
"description": "
|
|
2157
|
-
"name": "
|
|
2158
|
-
"required": true,
|
|
2093
|
+
"test": {
|
|
2094
|
+
"char": "t",
|
|
2095
|
+
"description": "Filter by test ID",
|
|
2096
|
+
"name": "test",
|
|
2159
2097
|
"hasDynamicHelp": false,
|
|
2160
2098
|
"multiple": false,
|
|
2161
2099
|
"type": "option"
|
|
2162
2100
|
},
|
|
2163
|
-
"
|
|
2164
|
-
"char": "
|
|
2165
|
-
"description": "
|
|
2166
|
-
"name": "
|
|
2167
|
-
"required": true,
|
|
2101
|
+
"recent": {
|
|
2102
|
+
"char": "r",
|
|
2103
|
+
"description": "Number of recent runs to show",
|
|
2104
|
+
"name": "recent",
|
|
2168
2105
|
"hasDynamicHelp": false,
|
|
2169
2106
|
"multiple": false,
|
|
2170
2107
|
"type": "option"
|
|
2171
2108
|
},
|
|
2172
|
-
"
|
|
2173
|
-
"description": "
|
|
2174
|
-
"name": "
|
|
2175
|
-
"allowNo": false,
|
|
2176
|
-
"type": "boolean"
|
|
2177
|
-
},
|
|
2178
|
-
"sql-dir": {
|
|
2179
|
-
"description": "Directory for SQL files when using --separate-sql-files (relative to output file)",
|
|
2180
|
-
"name": "sql-dir",
|
|
2181
|
-
"default": "SQL",
|
|
2109
|
+
"from": {
|
|
2110
|
+
"description": "Show history from date (YYYY-MM-DD)",
|
|
2111
|
+
"name": "from",
|
|
2182
2112
|
"hasDynamicHelp": false,
|
|
2183
2113
|
"multiple": false,
|
|
2184
2114
|
"type": "option"
|
|
2185
2115
|
},
|
|
2186
|
-
"
|
|
2187
|
-
"
|
|
2188
|
-
"
|
|
2189
|
-
"
|
|
2116
|
+
"status": {
|
|
2117
|
+
"char": "s",
|
|
2118
|
+
"description": "Filter by status",
|
|
2119
|
+
"name": "status",
|
|
2190
2120
|
"hasDynamicHelp": false,
|
|
2191
2121
|
"multiple": false,
|
|
2192
2122
|
"type": "option"
|
|
2193
2123
|
},
|
|
2194
|
-
"
|
|
2195
|
-
"
|
|
2196
|
-
"
|
|
2197
|
-
"
|
|
2124
|
+
"format": {
|
|
2125
|
+
"char": "f",
|
|
2126
|
+
"description": "Output format",
|
|
2127
|
+
"name": "format",
|
|
2128
|
+
"default": "console",
|
|
2198
2129
|
"hasDynamicHelp": false,
|
|
2199
2130
|
"multiple": false,
|
|
2200
2131
|
"options": [
|
|
2201
|
-
"
|
|
2202
|
-
"
|
|
2203
|
-
"
|
|
2204
|
-
"Expired"
|
|
2132
|
+
"console",
|
|
2133
|
+
"json",
|
|
2134
|
+
"markdown"
|
|
2205
2135
|
],
|
|
2206
2136
|
"type": "option"
|
|
2207
2137
|
},
|
|
2208
|
-
"
|
|
2209
|
-
"
|
|
2210
|
-
"
|
|
2211
|
-
"
|
|
2138
|
+
"output": {
|
|
2139
|
+
"char": "o",
|
|
2140
|
+
"description": "Output file path",
|
|
2141
|
+
"name": "output",
|
|
2212
2142
|
"hasDynamicHelp": false,
|
|
2213
2143
|
"multiple": false,
|
|
2214
2144
|
"type": "option"
|
|
2215
2145
|
},
|
|
2216
|
-
"
|
|
2217
|
-
"
|
|
2218
|
-
"
|
|
2219
|
-
"
|
|
2220
|
-
"type": "boolean"
|
|
2221
|
-
},
|
|
2222
|
-
"append": {
|
|
2223
|
-
"description": "Append to existing metadata file instead of overwriting",
|
|
2224
|
-
"name": "append",
|
|
2225
|
-
"allowNo": false,
|
|
2226
|
-
"type": "boolean"
|
|
2227
|
-
},
|
|
2228
|
-
"include-primary-key": {
|
|
2229
|
-
"description": "Include primaryKey and sync fields (for updating existing records)",
|
|
2230
|
-
"name": "include-primary-key",
|
|
2146
|
+
"verbose": {
|
|
2147
|
+
"char": "v",
|
|
2148
|
+
"description": "Show detailed information",
|
|
2149
|
+
"name": "verbose",
|
|
2231
2150
|
"allowNo": false,
|
|
2232
2151
|
"type": "boolean"
|
|
2233
2152
|
}
|
|
2234
2153
|
},
|
|
2235
2154
|
"hasDynamicHelp": false,
|
|
2236
2155
|
"hiddenAliases": [],
|
|
2237
|
-
"id": "
|
|
2156
|
+
"id": "test:history",
|
|
2238
2157
|
"pluginAlias": "@memberjunction/cli",
|
|
2239
2158
|
"pluginName": "@memberjunction/cli",
|
|
2240
2159
|
"pluginType": "core",
|
|
@@ -2244,100 +2163,26 @@
|
|
|
2244
2163
|
"relativePath": [
|
|
2245
2164
|
"dist",
|
|
2246
2165
|
"commands",
|
|
2247
|
-
"
|
|
2248
|
-
"
|
|
2166
|
+
"test",
|
|
2167
|
+
"history.js"
|
|
2249
2168
|
]
|
|
2250
2169
|
},
|
|
2251
|
-
"
|
|
2170
|
+
"test": {
|
|
2252
2171
|
"aliases": [],
|
|
2253
2172
|
"args": {},
|
|
2254
|
-
"description": "
|
|
2173
|
+
"description": "MemberJunction Testing Framework - Execute and manage tests",
|
|
2255
2174
|
"examples": [
|
|
2256
|
-
"<%= config.bin %> <%= command.id %>
|
|
2257
|
-
"<%= config.bin %> <%= command.id %> --
|
|
2258
|
-
"<%= config.bin %> <%= command.id %>
|
|
2259
|
-
"<%= config.bin %> <%= command.id %>
|
|
2260
|
-
"<%= config.bin %> <%= command.id %> --
|
|
2261
|
-
"<%= config.bin %> <%= command.id %> --
|
|
2262
|
-
"<%= config.bin %> <%= command.id %> --sql --markdown --html --csv --mermaid --apply"
|
|
2175
|
+
"<%= config.bin %> <%= command.id %> run <test-id>",
|
|
2176
|
+
"<%= config.bin %> <%= command.id %> run --name=\"Active Members Count\"",
|
|
2177
|
+
"<%= config.bin %> <%= command.id %> suite <suite-id>",
|
|
2178
|
+
"<%= config.bin %> <%= command.id %> list",
|
|
2179
|
+
"<%= config.bin %> <%= command.id %> list --suites",
|
|
2180
|
+
"<%= config.bin %> <%= command.id %> validate --all"
|
|
2263
2181
|
],
|
|
2264
|
-
"flags": {
|
|
2265
|
-
"state-file": {
|
|
2266
|
-
"char": "s",
|
|
2267
|
-
"description": "Path to state JSON file",
|
|
2268
|
-
"name": "state-file",
|
|
2269
|
-
"hasDynamicHelp": false,
|
|
2270
|
-
"multiple": false,
|
|
2271
|
-
"type": "option"
|
|
2272
|
-
},
|
|
2273
|
-
"output-dir": {
|
|
2274
|
-
"char": "o",
|
|
2275
|
-
"description": "Output directory for generated files",
|
|
2276
|
-
"name": "output-dir",
|
|
2277
|
-
"hasDynamicHelp": false,
|
|
2278
|
-
"multiple": false,
|
|
2279
|
-
"type": "option"
|
|
2280
|
-
},
|
|
2281
|
-
"sql": {
|
|
2282
|
-
"description": "Generate SQL script",
|
|
2283
|
-
"name": "sql",
|
|
2284
|
-
"allowNo": false,
|
|
2285
|
-
"type": "boolean"
|
|
2286
|
-
},
|
|
2287
|
-
"markdown": {
|
|
2288
|
-
"description": "Generate Markdown documentation",
|
|
2289
|
-
"name": "markdown",
|
|
2290
|
-
"allowNo": false,
|
|
2291
|
-
"type": "boolean"
|
|
2292
|
-
},
|
|
2293
|
-
"html": {
|
|
2294
|
-
"description": "Generate interactive HTML documentation",
|
|
2295
|
-
"name": "html",
|
|
2296
|
-
"allowNo": false,
|
|
2297
|
-
"type": "boolean"
|
|
2298
|
-
},
|
|
2299
|
-
"csv": {
|
|
2300
|
-
"description": "Generate CSV exports (tables and columns)",
|
|
2301
|
-
"name": "csv",
|
|
2302
|
-
"allowNo": false,
|
|
2303
|
-
"type": "boolean"
|
|
2304
|
-
},
|
|
2305
|
-
"mermaid": {
|
|
2306
|
-
"description": "Generate Mermaid ERD diagram files",
|
|
2307
|
-
"name": "mermaid",
|
|
2308
|
-
"allowNo": false,
|
|
2309
|
-
"type": "boolean"
|
|
2310
|
-
},
|
|
2311
|
-
"report": {
|
|
2312
|
-
"description": "Generate analysis report",
|
|
2313
|
-
"name": "report",
|
|
2314
|
-
"allowNo": false,
|
|
2315
|
-
"type": "boolean"
|
|
2316
|
-
},
|
|
2317
|
-
"apply": {
|
|
2318
|
-
"description": "Apply SQL to database",
|
|
2319
|
-
"name": "apply",
|
|
2320
|
-
"allowNo": false,
|
|
2321
|
-
"type": "boolean"
|
|
2322
|
-
},
|
|
2323
|
-
"approved-only": {
|
|
2324
|
-
"description": "Only export approved items",
|
|
2325
|
-
"name": "approved-only",
|
|
2326
|
-
"allowNo": false,
|
|
2327
|
-
"type": "boolean"
|
|
2328
|
-
},
|
|
2329
|
-
"confidence-threshold": {
|
|
2330
|
-
"description": "Minimum confidence threshold",
|
|
2331
|
-
"name": "confidence-threshold",
|
|
2332
|
-
"default": "0",
|
|
2333
|
-
"hasDynamicHelp": false,
|
|
2334
|
-
"multiple": false,
|
|
2335
|
-
"type": "option"
|
|
2336
|
-
}
|
|
2337
|
-
},
|
|
2182
|
+
"flags": {},
|
|
2338
2183
|
"hasDynamicHelp": false,
|
|
2339
2184
|
"hiddenAliases": [],
|
|
2340
|
-
"id": "
|
|
2185
|
+
"id": "test",
|
|
2341
2186
|
"pluginAlias": "@memberjunction/cli",
|
|
2342
2187
|
"pluginName": "@memberjunction/cli",
|
|
2343
2188
|
"pluginType": "core",
|
|
@@ -2347,87 +2192,91 @@
|
|
|
2347
2192
|
"relativePath": [
|
|
2348
2193
|
"dist",
|
|
2349
2194
|
"commands",
|
|
2350
|
-
"
|
|
2351
|
-
"
|
|
2195
|
+
"test",
|
|
2196
|
+
"index.js"
|
|
2352
2197
|
]
|
|
2353
2198
|
},
|
|
2354
|
-
"
|
|
2199
|
+
"test:list": {
|
|
2355
2200
|
"aliases": [],
|
|
2356
2201
|
"args": {},
|
|
2357
|
-
"description": "
|
|
2202
|
+
"description": "List available tests, suites, and types",
|
|
2358
2203
|
"examples": [
|
|
2359
|
-
"<%= config.bin %> <%= command.id %>
|
|
2360
|
-
"<%= config.bin %> <%= command.id %> --
|
|
2361
|
-
"<%= config.bin %> <%= command.id %> --
|
|
2204
|
+
"<%= config.bin %> <%= command.id %>",
|
|
2205
|
+
"<%= config.bin %> <%= command.id %> --suites",
|
|
2206
|
+
"<%= config.bin %> <%= command.id %> --types",
|
|
2207
|
+
"<%= config.bin %> <%= command.id %> --type=agent-eval",
|
|
2208
|
+
"<%= config.bin %> <%= command.id %> --tag=smoke",
|
|
2209
|
+
"<%= config.bin %> <%= command.id %> --status=active --verbose"
|
|
2362
2210
|
],
|
|
2363
2211
|
"flags": {
|
|
2364
|
-
"
|
|
2365
|
-
"description": "
|
|
2366
|
-
"name": "
|
|
2367
|
-
"
|
|
2212
|
+
"suites": {
|
|
2213
|
+
"description": "List test suites instead of tests",
|
|
2214
|
+
"name": "suites",
|
|
2215
|
+
"allowNo": false,
|
|
2216
|
+
"type": "boolean"
|
|
2217
|
+
},
|
|
2218
|
+
"types": {
|
|
2219
|
+
"description": "List test types",
|
|
2220
|
+
"name": "types",
|
|
2221
|
+
"allowNo": false,
|
|
2222
|
+
"type": "boolean"
|
|
2223
|
+
},
|
|
2224
|
+
"type": {
|
|
2225
|
+
"char": "t",
|
|
2226
|
+
"description": "Filter by test type",
|
|
2227
|
+
"name": "type",
|
|
2368
2228
|
"hasDynamicHelp": false,
|
|
2369
2229
|
"multiple": false,
|
|
2370
2230
|
"type": "option"
|
|
2371
2231
|
},
|
|
2372
|
-
"
|
|
2373
|
-
"description": "
|
|
2374
|
-
"name": "
|
|
2375
|
-
"required": false,
|
|
2232
|
+
"tag": {
|
|
2233
|
+
"description": "Filter by tag",
|
|
2234
|
+
"name": "tag",
|
|
2376
2235
|
"hasDynamicHelp": false,
|
|
2377
2236
|
"multiple": false,
|
|
2378
2237
|
"type": "option"
|
|
2379
2238
|
},
|
|
2380
|
-
"
|
|
2381
|
-
"char": "
|
|
2382
|
-
"description": "
|
|
2383
|
-
"name": "
|
|
2384
|
-
"default": "./config.json",
|
|
2239
|
+
"status": {
|
|
2240
|
+
"char": "s",
|
|
2241
|
+
"description": "Filter by status",
|
|
2242
|
+
"name": "status",
|
|
2385
2243
|
"hasDynamicHelp": false,
|
|
2386
2244
|
"multiple": false,
|
|
2387
2245
|
"type": "option"
|
|
2388
2246
|
},
|
|
2389
|
-
"
|
|
2390
|
-
"
|
|
2391
|
-
"
|
|
2392
|
-
"
|
|
2247
|
+
"format": {
|
|
2248
|
+
"char": "f",
|
|
2249
|
+
"description": "Output format",
|
|
2250
|
+
"name": "format",
|
|
2251
|
+
"default": "console",
|
|
2393
2252
|
"hasDynamicHelp": false,
|
|
2394
2253
|
"multiple": false,
|
|
2254
|
+
"options": [
|
|
2255
|
+
"console",
|
|
2256
|
+
"json",
|
|
2257
|
+
"markdown"
|
|
2258
|
+
],
|
|
2395
2259
|
"type": "option"
|
|
2396
2260
|
},
|
|
2397
|
-
"
|
|
2398
|
-
"
|
|
2399
|
-
"
|
|
2400
|
-
"
|
|
2261
|
+
"output": {
|
|
2262
|
+
"char": "o",
|
|
2263
|
+
"description": "Output file path",
|
|
2264
|
+
"name": "output",
|
|
2401
2265
|
"hasDynamicHelp": false,
|
|
2402
2266
|
"multiple": false,
|
|
2403
2267
|
"type": "option"
|
|
2268
|
+
},
|
|
2269
|
+
"verbose": {
|
|
2270
|
+
"char": "v",
|
|
2271
|
+
"description": "Show detailed information",
|
|
2272
|
+
"name": "verbose",
|
|
2273
|
+
"allowNo": false,
|
|
2274
|
+
"type": "boolean"
|
|
2404
2275
|
}
|
|
2405
2276
|
},
|
|
2406
2277
|
"hasDynamicHelp": false,
|
|
2407
2278
|
"hiddenAliases": [],
|
|
2408
|
-
"id": "
|
|
2409
|
-
"pluginAlias": "@memberjunction/cli",
|
|
2410
|
-
"pluginName": "@memberjunction/cli",
|
|
2411
|
-
"pluginType": "core",
|
|
2412
|
-
"strict": true,
|
|
2413
|
-
"enableJsonFlag": false,
|
|
2414
|
-
"isESM": true,
|
|
2415
|
-
"relativePath": [
|
|
2416
|
-
"dist",
|
|
2417
|
-
"commands",
|
|
2418
|
-
"dbdoc",
|
|
2419
|
-
"generate-queries.js"
|
|
2420
|
-
]
|
|
2421
|
-
},
|
|
2422
|
-
"dbdoc": {
|
|
2423
|
-
"aliases": [],
|
|
2424
|
-
"args": {},
|
|
2425
|
-
"description": "AI-powered database documentation generator",
|
|
2426
|
-
"flags": {},
|
|
2427
|
-
"hasDynamicHelp": false,
|
|
2428
|
-
"hidden": false,
|
|
2429
|
-
"hiddenAliases": [],
|
|
2430
|
-
"id": "dbdoc",
|
|
2279
|
+
"id": "test:list",
|
|
2431
2280
|
"pluginAlias": "@memberjunction/cli",
|
|
2432
2281
|
"pluginName": "@memberjunction/cli",
|
|
2433
2282
|
"pluginType": "core",
|
|
@@ -2437,21 +2286,83 @@
|
|
|
2437
2286
|
"relativePath": [
|
|
2438
2287
|
"dist",
|
|
2439
2288
|
"commands",
|
|
2440
|
-
"
|
|
2441
|
-
"
|
|
2289
|
+
"test",
|
|
2290
|
+
"list.js"
|
|
2442
2291
|
]
|
|
2443
2292
|
},
|
|
2444
|
-
"
|
|
2293
|
+
"test:run": {
|
|
2445
2294
|
"aliases": [],
|
|
2446
|
-
"args": {
|
|
2447
|
-
|
|
2295
|
+
"args": {
|
|
2296
|
+
"testId": {
|
|
2297
|
+
"description": "Test ID to execute",
|
|
2298
|
+
"name": "testId",
|
|
2299
|
+
"required": false
|
|
2300
|
+
}
|
|
2301
|
+
},
|
|
2302
|
+
"description": "Execute a single test by ID or name",
|
|
2448
2303
|
"examples": [
|
|
2449
|
-
"<%= config.bin %> <%= command.id %>"
|
|
2304
|
+
"<%= config.bin %> <%= command.id %> <test-id>",
|
|
2305
|
+
"<%= config.bin %> <%= command.id %> --name=\"Active Members Count\"",
|
|
2306
|
+
"<%= config.bin %> <%= command.id %> <test-id> --environment=staging",
|
|
2307
|
+
"<%= config.bin %> <%= command.id %> <test-id> --format=json --output=results.json",
|
|
2308
|
+
"<%= config.bin %> <%= command.id %> <test-id> --dry-run"
|
|
2450
2309
|
],
|
|
2451
|
-
"flags": {
|
|
2310
|
+
"flags": {
|
|
2311
|
+
"name": {
|
|
2312
|
+
"char": "n",
|
|
2313
|
+
"description": "Test name to execute",
|
|
2314
|
+
"name": "name",
|
|
2315
|
+
"hasDynamicHelp": false,
|
|
2316
|
+
"multiple": false,
|
|
2317
|
+
"type": "option"
|
|
2318
|
+
},
|
|
2319
|
+
"environment": {
|
|
2320
|
+
"char": "e",
|
|
2321
|
+
"description": "Environment context (dev, staging, prod)",
|
|
2322
|
+
"name": "environment",
|
|
2323
|
+
"hasDynamicHelp": false,
|
|
2324
|
+
"multiple": false,
|
|
2325
|
+
"type": "option"
|
|
2326
|
+
},
|
|
2327
|
+
"format": {
|
|
2328
|
+
"char": "f",
|
|
2329
|
+
"description": "Output format",
|
|
2330
|
+
"name": "format",
|
|
2331
|
+
"default": "console",
|
|
2332
|
+
"hasDynamicHelp": false,
|
|
2333
|
+
"multiple": false,
|
|
2334
|
+
"options": [
|
|
2335
|
+
"console",
|
|
2336
|
+
"json",
|
|
2337
|
+
"markdown"
|
|
2338
|
+
],
|
|
2339
|
+
"type": "option"
|
|
2340
|
+
},
|
|
2341
|
+
"output": {
|
|
2342
|
+
"char": "o",
|
|
2343
|
+
"description": "Output file path",
|
|
2344
|
+
"name": "output",
|
|
2345
|
+
"hasDynamicHelp": false,
|
|
2346
|
+
"multiple": false,
|
|
2347
|
+
"type": "option"
|
|
2348
|
+
},
|
|
2349
|
+
"dry-run": {
|
|
2350
|
+
"description": "Validate without executing",
|
|
2351
|
+
"name": "dry-run",
|
|
2352
|
+
"allowNo": false,
|
|
2353
|
+
"type": "boolean"
|
|
2354
|
+
},
|
|
2355
|
+
"verbose": {
|
|
2356
|
+
"char": "v",
|
|
2357
|
+
"description": "Show detailed execution information",
|
|
2358
|
+
"name": "verbose",
|
|
2359
|
+
"allowNo": false,
|
|
2360
|
+
"type": "boolean"
|
|
2361
|
+
}
|
|
2362
|
+
},
|
|
2452
2363
|
"hasDynamicHelp": false,
|
|
2453
2364
|
"hiddenAliases": [],
|
|
2454
|
-
"id": "
|
|
2365
|
+
"id": "test:run",
|
|
2455
2366
|
"pluginAlias": "@memberjunction/cli",
|
|
2456
2367
|
"pluginName": "@memberjunction/cli",
|
|
2457
2368
|
"pluginType": "core",
|
|
@@ -2461,30 +2372,68 @@
|
|
|
2461
2372
|
"relativePath": [
|
|
2462
2373
|
"dist",
|
|
2463
2374
|
"commands",
|
|
2464
|
-
"
|
|
2465
|
-
"
|
|
2375
|
+
"test",
|
|
2376
|
+
"run.js"
|
|
2466
2377
|
]
|
|
2467
2378
|
},
|
|
2468
|
-
"
|
|
2379
|
+
"test:suite": {
|
|
2469
2380
|
"aliases": [],
|
|
2470
|
-
"args": {
|
|
2471
|
-
|
|
2381
|
+
"args": {
|
|
2382
|
+
"suiteId": {
|
|
2383
|
+
"description": "Test suite ID to execute",
|
|
2384
|
+
"name": "suiteId",
|
|
2385
|
+
"required": false
|
|
2386
|
+
}
|
|
2387
|
+
},
|
|
2388
|
+
"description": "Execute a test suite",
|
|
2472
2389
|
"examples": [
|
|
2473
|
-
"<%= config.bin %> <%= command.id %>",
|
|
2474
|
-
"<%= config.bin %> <%= command.id %> --
|
|
2390
|
+
"<%= config.bin %> <%= command.id %> <suite-id>",
|
|
2391
|
+
"<%= config.bin %> <%= command.id %> --name=\"Agent Quality Suite\"",
|
|
2392
|
+
"<%= config.bin %> <%= command.id %> <suite-id> --format=json",
|
|
2393
|
+
"<%= config.bin %> <%= command.id %> <suite-id> --output=suite-results.json"
|
|
2475
2394
|
],
|
|
2476
2395
|
"flags": {
|
|
2477
|
-
"
|
|
2396
|
+
"name": {
|
|
2397
|
+
"char": "n",
|
|
2398
|
+
"description": "Test suite name to execute",
|
|
2399
|
+
"name": "name",
|
|
2400
|
+
"hasDynamicHelp": false,
|
|
2401
|
+
"multiple": false,
|
|
2402
|
+
"type": "option"
|
|
2403
|
+
},
|
|
2404
|
+
"format": {
|
|
2478
2405
|
"char": "f",
|
|
2479
|
-
"description": "
|
|
2480
|
-
"name": "
|
|
2406
|
+
"description": "Output format",
|
|
2407
|
+
"name": "format",
|
|
2408
|
+
"default": "console",
|
|
2409
|
+
"hasDynamicHelp": false,
|
|
2410
|
+
"multiple": false,
|
|
2411
|
+
"options": [
|
|
2412
|
+
"console",
|
|
2413
|
+
"json",
|
|
2414
|
+
"markdown"
|
|
2415
|
+
],
|
|
2416
|
+
"type": "option"
|
|
2417
|
+
},
|
|
2418
|
+
"output": {
|
|
2419
|
+
"char": "o",
|
|
2420
|
+
"description": "Output file path",
|
|
2421
|
+
"name": "output",
|
|
2422
|
+
"hasDynamicHelp": false,
|
|
2423
|
+
"multiple": false,
|
|
2424
|
+
"type": "option"
|
|
2425
|
+
},
|
|
2426
|
+
"verbose": {
|
|
2427
|
+
"char": "v",
|
|
2428
|
+
"description": "Show detailed execution information",
|
|
2429
|
+
"name": "verbose",
|
|
2481
2430
|
"allowNo": false,
|
|
2482
2431
|
"type": "boolean"
|
|
2483
2432
|
}
|
|
2484
2433
|
},
|
|
2485
2434
|
"hasDynamicHelp": false,
|
|
2486
2435
|
"hiddenAliases": [],
|
|
2487
|
-
"id": "
|
|
2436
|
+
"id": "test:suite",
|
|
2488
2437
|
"pluginAlias": "@memberjunction/cli",
|
|
2489
2438
|
"pluginName": "@memberjunction/cli",
|
|
2490
2439
|
"pluginType": "core",
|
|
@@ -2494,31 +2443,82 @@
|
|
|
2494
2443
|
"relativePath": [
|
|
2495
2444
|
"dist",
|
|
2496
2445
|
"commands",
|
|
2497
|
-
"
|
|
2498
|
-
"
|
|
2446
|
+
"test",
|
|
2447
|
+
"suite.js"
|
|
2499
2448
|
]
|
|
2500
2449
|
},
|
|
2501
|
-
"
|
|
2450
|
+
"test:validate": {
|
|
2502
2451
|
"aliases": [],
|
|
2503
|
-
"args": {
|
|
2504
|
-
|
|
2452
|
+
"args": {
|
|
2453
|
+
"testId": {
|
|
2454
|
+
"description": "Test ID to validate",
|
|
2455
|
+
"name": "testId",
|
|
2456
|
+
"required": false
|
|
2457
|
+
}
|
|
2458
|
+
},
|
|
2459
|
+
"description": "Validate test definitions without executing",
|
|
2505
2460
|
"examples": [
|
|
2506
|
-
"<%= config.bin %> <%= command.id %>",
|
|
2507
|
-
"<%= config.bin %> <%= command.id %> --
|
|
2461
|
+
"<%= config.bin %> <%= command.id %> <test-id>",
|
|
2462
|
+
"<%= config.bin %> <%= command.id %> --all",
|
|
2463
|
+
"<%= config.bin %> <%= command.id %> --type=agent-eval",
|
|
2464
|
+
"<%= config.bin %> <%= command.id %> --all --save-report",
|
|
2465
|
+
"<%= config.bin %> <%= command.id %> --all --output=validation-report.md"
|
|
2508
2466
|
],
|
|
2509
2467
|
"flags": {
|
|
2510
|
-
"
|
|
2511
|
-
"char": "
|
|
2512
|
-
"description": "
|
|
2513
|
-
"name": "
|
|
2468
|
+
"all": {
|
|
2469
|
+
"char": "a",
|
|
2470
|
+
"description": "Validate all tests",
|
|
2471
|
+
"name": "all",
|
|
2472
|
+
"allowNo": false,
|
|
2473
|
+
"type": "boolean"
|
|
2474
|
+
},
|
|
2475
|
+
"type": {
|
|
2476
|
+
"char": "t",
|
|
2477
|
+
"description": "Validate tests by type",
|
|
2478
|
+
"name": "type",
|
|
2479
|
+
"hasDynamicHelp": false,
|
|
2480
|
+
"multiple": false,
|
|
2481
|
+
"type": "option"
|
|
2482
|
+
},
|
|
2483
|
+
"save-report": {
|
|
2484
|
+
"description": "Save validation report to file",
|
|
2485
|
+
"name": "save-report",
|
|
2486
|
+
"allowNo": false,
|
|
2487
|
+
"type": "boolean"
|
|
2488
|
+
},
|
|
2489
|
+
"format": {
|
|
2490
|
+
"char": "f",
|
|
2491
|
+
"description": "Output format",
|
|
2492
|
+
"name": "format",
|
|
2493
|
+
"default": "console",
|
|
2494
|
+
"hasDynamicHelp": false,
|
|
2495
|
+
"multiple": false,
|
|
2496
|
+
"options": [
|
|
2497
|
+
"console",
|
|
2498
|
+
"json",
|
|
2499
|
+
"markdown"
|
|
2500
|
+
],
|
|
2501
|
+
"type": "option"
|
|
2502
|
+
},
|
|
2503
|
+
"output": {
|
|
2504
|
+
"char": "o",
|
|
2505
|
+
"description": "Output file path",
|
|
2506
|
+
"name": "output",
|
|
2514
2507
|
"hasDynamicHelp": false,
|
|
2515
2508
|
"multiple": false,
|
|
2516
2509
|
"type": "option"
|
|
2510
|
+
},
|
|
2511
|
+
"verbose": {
|
|
2512
|
+
"char": "v",
|
|
2513
|
+
"description": "Show detailed information",
|
|
2514
|
+
"name": "verbose",
|
|
2515
|
+
"allowNo": false,
|
|
2516
|
+
"type": "boolean"
|
|
2517
2517
|
}
|
|
2518
2518
|
},
|
|
2519
2519
|
"hasDynamicHelp": false,
|
|
2520
2520
|
"hiddenAliases": [],
|
|
2521
|
-
"id": "
|
|
2521
|
+
"id": "test:validate",
|
|
2522
2522
|
"pluginAlias": "@memberjunction/cli",
|
|
2523
2523
|
"pluginName": "@memberjunction/cli",
|
|
2524
2524
|
"pluginType": "core",
|
|
@@ -2528,8 +2528,8 @@
|
|
|
2528
2528
|
"relativePath": [
|
|
2529
2529
|
"dist",
|
|
2530
2530
|
"commands",
|
|
2531
|
-
"
|
|
2532
|
-
"
|
|
2531
|
+
"test",
|
|
2532
|
+
"validate.js"
|
|
2533
2533
|
]
|
|
2534
2534
|
},
|
|
2535
2535
|
"ai:actions:list": {
|
|
@@ -3140,5 +3140,5 @@
|
|
|
3140
3140
|
]
|
|
3141
3141
|
}
|
|
3142
3142
|
},
|
|
3143
|
-
"version": "5.
|
|
3143
|
+
"version": "5.4.0"
|
|
3144
3144
|
}
|