1
1
{
2
2
"$id" : " https://raw.githubusercontent.com/ng2react/cli/main/schemas/CliArgs.json" ,
3
3
"$schema" : " https://json-schema.org/draft/2020-12/schema" ,
4
- "title" : " Ng2rConvertOptions" ,
5
- "extends" : {
6
- "$ref" : " #/$defs/test"
7
- },
4
+ "title" : " ignorethistype" ,
5
+ "description" : " @deprecated" ,
8
6
"type" : " object" ,
9
7
"additionalProperties" : false ,
10
- "required" : [
11
- " componentName" ,
12
- " sourceRoot"
13
- ],
14
8
"properties" : {
15
- "componentName " : {
16
- "type " : " string "
9
+ "test " : {
10
+ "$ref " : " #/$defs/test "
17
11
},
18
- "sourceRoot" : {
19
- "type" : " string" ,
20
- "description" : " The root directory of the project. If not specified, the directory below that of the\n nearest package.json file will be used."
12
+ "convert" : {
13
+ "$ref" : " #/$defs/convert"
21
14
},
22
- "customPrompt" : {
23
- "type" : " string" ,
24
- "description" : " Custom rules (Markdown) that will be used instead of the default rules regarding pattern conversion."
15
+ "search" : {
16
+ "$ref" : " #/$defs/search"
17
+ },
18
+ "check" : {
19
+ "$ref" : " #/$defs/check"
25
20
}
26
21
},
27
22
"$defs" : {
28
- "common" : {
29
- "$schema" : " https://json-schema.org/draft/2020-12/schema" ,
30
- "title" : " Ng2rCommonOptions" ,
23
+ "convert" : {
24
+ "title" : " Ng2rConvertOptions" ,
25
+ "extends" : {
26
+ "$ref" : " #/$defs/gpt"
27
+ },
31
28
"type" : " object" ,
32
29
"additionalProperties" : false ,
33
30
"required" : [
34
- " file " ,
35
- " cwd "
31
+ " componentName " ,
32
+ " sourceRoot "
36
33
],
37
34
"properties" : {
38
- "cwd " : {
35
+ "componentName " : {
39
36
"type" : " string"
40
37
},
41
- "file" : {
42
- "type" : " string"
38
+ "sourceRoot" : {
39
+ "type" : " string" ,
40
+ "description" : " The root directory of the project. If not specified, the directory below that of the\n nearest package.json file will be used."
41
+ },
42
+ "customPrompt" : {
43
+ "type" : " string" ,
44
+ "description" : " Custom rules (Markdown) that will be used instead of the default rules regarding pattern conversion."
43
45
}
44
46
}
45
47
},
46
48
"test" : {
47
49
"title" : " Ng2rTestGenerationOptions" ,
48
50
"type" : " object" ,
49
51
"extends" : {
50
- "$ref" : " #/$defs/common "
52
+ "$ref" : " #/$defs/gpt "
51
53
},
54
+ "additionalProperties" : false
55
+ },
56
+ "model" : {
57
+ "type" : " string" ,
58
+ "enum" : [
59
+ " gpt-4" ,
60
+ " gpt-3-turbo"
61
+ ]
62
+ },
63
+ "search" : {
64
+ "title" : " Ng2rSearchOptions" ,
65
+ "type" : " object" ,
66
+ "additionalProperties" : false ,
52
67
"required" : [
53
- " apiKey "
68
+ " file "
54
69
],
70
+ "properties" : {
71
+ "file" : {
72
+ "description" : " File path relative to cwd" ,
73
+ "type" : " string"
74
+ }
75
+ }
76
+ },
77
+ "gpt" : {
78
+ "title" : " Ng2rGptOptions" ,
79
+ "type" : " object" ,
55
80
"additionalProperties" : false ,
81
+ "required" : [
82
+ " file" ,
83
+ " apiKey" ,
84
+ " model" ,
85
+ " temperature"
86
+ ],
56
87
"properties" : {
88
+ "file" : {
89
+ "description" : " Absolute path to the file to be converted" ,
90
+ "type" : " string"
91
+ },
57
92
"apiKey" : {
58
93
"type" : " string"
59
94
},
60
95
"model" : {
61
- "type" : " string" ,
62
- "enum" : [
63
- " gpt-4"
64
- ],
96
+ "$ref" : " #/$defs/model" ,
65
97
"default" : " gpt-4"
66
98
},
67
99
"organization" : {
71
103
"type" : " number" ,
72
104
"minimum" : 0 ,
73
105
"maximum" : 2 ,
106
+ "default" : 0.2 ,
74
107
"description" : " The temperature to use when generating completions. Higher values result in more random completions.\n Must be between 0 and 2."
75
108
},
76
109
"targetLanguage" : {
81
114
]
82
115
}
83
116
}
117
+ },
118
+ "check" : {
119
+ "title" : " Ng2rCheckOptions" ,
120
+ "type" : " object" ,
121
+ "additionalProperties" : false ,
122
+ "required" : [
123
+ " apiKey" ,
124
+ " model"
125
+ ],
126
+ "properties" : {
127
+ "apiKey" : {
128
+ "type" : " string"
129
+ },
130
+ "model" : {
131
+ "$ref" : " #/$defs/model" ,
132
+ "default" : " gpt-3-turbo"
133
+ }
134
+ }
84
135
}
85
136
}
86
137
}
0 commit comments