@grexx/grexxlinter 0.2.1 → 0.2.326

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.
Files changed (54) hide show
  1. package/cli.js +2 -2
  2. package/lsp.js +1 -1
  3. package/package.json +1 -1
  4. package/schemas/.coverage.json +3326 -1104
  5. package/schemas/activity.schema.json +1 -0
  6. package/schemas/activityAttribute.schema.json +116 -55
  7. package/schemas/activityRight.schema.json +71 -45
  8. package/schemas/agentTool.schema.json +3 -1
  9. package/schemas/attribute.schema.json +22 -0
  10. package/schemas/casetype.schema.json +1 -0
  11. package/schemas/catchBlock.schema.json +83 -56
  12. package/schemas/container.schema.json +7 -1
  13. package/schemas/customThrow.schema.json +82 -54
  14. package/schemas/dataRetentionProfile.schema.json +70 -65
  15. package/schemas/datasetColumn.schema.json +16 -0
  16. package/schemas/datasetRight.schema.json +2 -1
  17. package/schemas/datasource.schema.json +64 -54
  18. package/schemas/directRole.schema.json +7 -0
  19. package/schemas/fileUploadProfile.schema.json +60 -55
  20. package/schemas/forEach.schema.json +38 -0
  21. package/schemas/formAction.schema.json +7 -1
  22. package/schemas/formActionInlineJavascript.schema.json +54 -49
  23. package/schemas/formGroup.schema.json +82 -71
  24. package/schemas/formRight.schema.json +2 -1
  25. package/schemas/formfield.schema.json +49 -0
  26. package/schemas/gridActivity.schema.json +78 -59
  27. package/schemas/gridColumn.schema.json +144 -107
  28. package/schemas/ifthenelse.schema.json +83 -57
  29. package/schemas/indirectRole.schema.json +7 -0
  30. package/schemas/jobStep.schema.json +12 -0
  31. package/schemas/llmModel.schema.json +98 -58
  32. package/schemas/mapping.schema.json +12 -1
  33. package/schemas/menuItem.schema.json +5 -0
  34. package/schemas/menuItemRight.schema.json +71 -45
  35. package/schemas/navigation.schema.json +31 -3
  36. package/schemas/notCondition.schema.json +66 -45
  37. package/schemas/parallelBlock.schema.json +60 -55
  38. package/schemas/picklist.schema.json +2 -1
  39. package/schemas/picklistItem.schema.json +2 -1
  40. package/schemas/platformAttribute.schema.json +66 -0
  41. package/schemas/platformRole.schema.json +6 -0
  42. package/schemas/plugin.schema.json +77 -71
  43. package/schemas/pluginLibrary.schema.json +2 -0
  44. package/schemas/simpleCondition.schema.json +20 -0
  45. package/schemas/tag.schema.json +43 -48
  46. package/schemas/taskQueue.schema.json +56 -51
  47. package/schemas/template.schema.json +2 -1
  48. package/schemas/trigger.schema.json +38 -0
  49. package/schemas/tryBlock.schema.json +4 -3
  50. package/schemas/view.schema.json +1 -2
  51. package/schemas/webhook.schema.json +46 -58
  52. package/schemas/while.schema.json +33 -0
  53. package/schemas/widget.schema.json +197 -2
  54. package/schemas/widgetRight.schema.json +2 -2
@@ -1,111 +1,148 @@
1
1
  {
2
- "$id" : "https://grexx.net/studio-next/schemas/gridColumn.schema.json",
3
- "$schema" : "https://json-schema.org/draft/2020-12/schema",
4
- "additionalProperties" : false,
5
- "properties" : {
6
- "_id" : {
7
- "type" : "string"
8
- },
9
- "_interfaceID" : {
10
- "type" : "string"
11
- },
12
- "_isInterface" : {
13
- "type" : "boolean"
14
- },
15
- "_knownIDs" : {
16
- "items" : {
17
- "type" : "string"
2
+ "$id": "https://grexx.net/studio-next/schemas/gridColumn.schema.json",
3
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4
+ "additionalProperties": false,
5
+ "properties": {
6
+ "_id": {
7
+ "type": "string"
8
+ },
9
+ "_interfaceID": {
10
+ "type": "string"
11
+ },
12
+ "_isInterface": {
13
+ "type": "boolean"
14
+ },
15
+ "_knownIDs": {
16
+ "items": {
17
+ "type": "string"
18
18
  },
19
- "type" : "array"
20
- },
21
- "_origin" : {
22
- "type" : "string"
23
- },
24
- "_src" : {
25
- "type" : "string"
26
- },
27
- "_type" : {
28
- "const" : "gridColumn"
29
- },
30
- "_uid" : {
31
- "description" : "Deterministic UUID derived from case-ID.",
32
- "format" : "uuid",
33
- "type" : "string"
34
- },
35
- "aggregationOperation" : {
36
- "enum" : [ "count", "average", "min", "max", "sum", "static" ],
37
- "type" : "string"
38
- },
39
- "aggregationStatic" : {
40
- "$ref" : "template/inlineTemplate.schema.json"
41
- },
42
- "clickHandler" : {
43
- "enum" : [ "none", "caseRedirectHandler", "activityHandler", "showSubmittedValues" ],
44
- "type" : "string"
45
- },
46
- "clickHandlerColumnCase" : {
47
- "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
48
- },
49
- "column" : {
50
- "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
51
- },
52
- "description" : {
53
- "$ref" : "template/inlineTemplate.schema.json"
54
- },
55
- "hidden" : {
56
- "type" : "boolean"
57
- },
58
- "hideable" : {
59
- "type" : "boolean"
60
- },
61
- "inactive" : {
62
- "type" : "boolean"
63
- },
64
- "interfaceStudioProduct" : {
65
- "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
66
- },
67
- "metaCaseToOtap" : {
68
- "type" : "boolean"
69
- },
70
- "ourProductId" : {
71
- "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
72
- },
73
- "render" : {
74
- "enum" : [ "default", "caseid", "pageid", "bold", "json", "escapeHtml", "dateonly", "timeonly", "withseconds", "shortdatetime", "shortdateonly", "shortdatetimebrowserlocale", "shortdateonlybrowserlocale", "relativetime", "calendartime", "raw", "picklistLabel", "picklistLabelLink", "utcdatetime" ],
75
- "type" : "string"
76
- },
77
- "resizable" : {
78
- "type" : "boolean"
79
- },
80
- "searchable" : {
81
- "type" : "boolean"
82
- },
83
- "sizeGridMinWidth" : {
84
- "type" : "integer"
85
- },
86
- "sizeMax" : {
87
- "type" : "integer"
88
- },
89
- "sizeMin" : {
90
- "type" : "integer"
91
- },
92
- "sizeSize" : {
93
- "type" : "number"
94
- },
95
- "sortable" : {
96
- "type" : "boolean"
97
- },
98
- "title" : {
99
- "$ref" : "common.schema.json#/$defs/multilanguageStringStructure"
100
- },
101
- "valueAsRowClass" : {
102
- "type" : "boolean"
103
- },
104
- "wordwrap" : {
105
- "type" : "boolean"
19
+ "type": "array"
20
+ },
21
+ "_origin": {
22
+ "type": "string"
23
+ },
24
+ "_src": {
25
+ "type": "string"
26
+ },
27
+ "_type": {
28
+ "const": "gridColumn"
29
+ },
30
+ "_uid": {
31
+ "description": "Deterministic UUID derived from case-ID.",
32
+ "format": "uuid",
33
+ "type": "string"
34
+ },
35
+ "aggregationOperation": {
36
+ "enum": [
37
+ "count",
38
+ "average",
39
+ "min",
40
+ "max",
41
+ "sum",
42
+ "static"
43
+ ],
44
+ "type": "string"
45
+ },
46
+ "aggregationStatic": {
47
+ "$ref": "template/inlineTemplate.schema.json"
48
+ },
49
+ "clickHandler": {
50
+ "enum": [
51
+ "none",
52
+ "caseRedirectHandler",
53
+ "activityHandler",
54
+ "showSubmittedValues"
55
+ ],
56
+ "type": "string"
57
+ },
58
+ "clickHandlerColumnCase": {
59
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
60
+ },
61
+ "column": {
62
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
63
+ },
64
+ "description": {
65
+ "$ref": "template/inlineTemplate.schema.json"
66
+ },
67
+ "hidden": {
68
+ "type": "boolean"
69
+ },
70
+ "hideable": {
71
+ "type": "boolean"
72
+ },
73
+ "inactive": {
74
+ "type": "boolean"
75
+ },
76
+ "interfaceStudioProduct": {
77
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
78
+ },
79
+ "metaCaseToOtap": {
80
+ "type": "boolean"
81
+ },
82
+ "ourProductId": {
83
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
84
+ },
85
+ "render": {
86
+ "enum": [
87
+ "default",
88
+ "caseid",
89
+ "pageid",
90
+ "bold",
91
+ "json",
92
+ "escapeHtml",
93
+ "dateonly",
94
+ "timeonly",
95
+ "withseconds",
96
+ "shortdatetime",
97
+ "shortdateonly",
98
+ "shortdatetimebrowserlocale",
99
+ "shortdateonlybrowserlocale",
100
+ "relativetime",
101
+ "calendartime",
102
+ "raw",
103
+ "picklistLabel",
104
+ "picklistLabelLink",
105
+ "utcdatetime"
106
+ ],
107
+ "type": "string"
108
+ },
109
+ "resizable": {
110
+ "type": "boolean"
111
+ },
112
+ "searchable": {
113
+ "type": "boolean"
114
+ },
115
+ "sizeGridMinWidth": {
116
+ "type": "integer"
117
+ },
118
+ "sizeMax": {
119
+ "type": "integer"
120
+ },
121
+ "sizeMin": {
122
+ "type": "integer"
123
+ },
124
+ "sizeSize": {
125
+ "type": "number"
126
+ },
127
+ "sortable": {
128
+ "type": "boolean"
129
+ },
130
+ "title": {
131
+ "$ref": "common.schema.json#/$defs/multilanguageStringStructure"
132
+ },
133
+ "valueAsRowClass": {
134
+ "type": "boolean"
135
+ },
136
+ "wordwrap": {
137
+ "type": "boolean"
106
138
  }
107
139
  },
108
- "required" : [ "_type", "_uid" ],
109
- "title" : "gridColumn",
110
- "type" : "object"
111
- }
140
+ "required": [
141
+ "_type",
142
+ "_uid",
143
+ "widget"
144
+ ],
145
+ "title": "gridColumn",
146
+ "type": "object",
147
+ "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/gridColumn.json."
148
+ }
@@ -1,78 +1,104 @@
1
1
  {
2
- "$id" : "https://grexx.net/studio-next/schemas/ifthenelse.schema.json",
3
- "$schema" : "https://json-schema.org/draft/2020-12/schema",
4
- "additionalProperties" : false,
5
- "properties" : {
6
- "_id" : {
7
- "type" : "string"
8
- },
9
- "_interfaceID" : {
10
- "type" : "string"
11
- },
12
- "_isInterface" : {
13
- "type" : "boolean"
14
- },
15
- "_knownIDs" : {
16
- "items" : {
17
- "type" : "string"
2
+ "$id": "https://grexx.net/studio-next/schemas/ifthenelse.schema.json",
3
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4
+ "additionalProperties": false,
5
+ "properties": {
6
+ "_id": {
7
+ "type": "string"
8
+ },
9
+ "_interfaceID": {
10
+ "type": "string"
11
+ },
12
+ "_isInterface": {
13
+ "type": "boolean"
14
+ },
15
+ "_knownIDs": {
16
+ "items": {
17
+ "type": "string"
18
18
  },
19
- "type" : "array"
19
+ "type": "array"
20
20
  },
21
- "_origin" : {
22
- "type" : "string"
21
+ "_origin": {
22
+ "type": "string"
23
23
  },
24
- "_src" : {
25
- "type" : "string"
24
+ "_src": {
25
+ "type": "string"
26
26
  },
27
- "_type" : {
28
- "const" : "ifthenelse"
27
+ "_type": {
28
+ "const": "ifthenelse"
29
29
  },
30
- "_uid" : {
31
- "description" : "Deterministic UUID derived from case-ID.",
32
- "format" : "uuid",
33
- "type" : "string"
30
+ "_uid": {
31
+ "description": "Deterministic UUID derived from case-ID.",
32
+ "format": "uuid",
33
+ "type": "string"
34
34
  },
35
- "description" : {
36
- "$ref" : "template/inlineTemplate.schema.json"
35
+ "description": {
36
+ "$ref": "template/inlineTemplate.schema.json"
37
37
  },
38
- "else" : {
39
- "items" : {
40
- "$ref" : "abstractRule.schema.json"
38
+ "else": {
39
+ "items": {
40
+ "$ref": "abstractRule.schema.json"
41
41
  },
42
- "type" : "array"
42
+ "type": "array"
43
43
  },
44
- "if" : {
45
- "$ref" : "abstractCondition.schema.json"
44
+ "if": {
45
+ "$ref": "abstractCondition.schema.json"
46
46
  },
47
- "inactive" : {
48
- "type" : "boolean"
47
+ "inactive": {
48
+ "type": "boolean"
49
49
  },
50
- "interfaceStudioProduct" : {
51
- "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
50
+ "interfaceStudioProduct": {
51
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
52
52
  },
53
- "metaCaseToOtap" : {
54
- "type" : "boolean"
53
+ "metaCaseToOtap": {
54
+ "type": "boolean"
55
55
  },
56
- "ourProductId" : {
57
- "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
56
+ "ourProductId": {
57
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
58
58
  },
59
- "progressTemplate" : {
60
- "$ref" : "template/inlineTemplate.schema.json"
59
+ "progressTemplate": {
60
+ "$ref": "template/inlineTemplate.schema.json"
61
61
  },
62
- "progressTitle" : {
63
- "$ref" : "common.schema.json#/$defs/multilanguageStringStructure"
62
+ "progressTitle": {
63
+ "$ref": "common.schema.json#/$defs/multilanguageStringStructure"
64
64
  },
65
- "showProgress" : {
66
- "type" : "boolean"
65
+ "showProgress": {
66
+ "type": "boolean"
67
67
  },
68
- "then" : {
69
- "items" : {
70
- "$ref" : "abstractRule.schema.json"
68
+ "then": {
69
+ "items": {
70
+ "$ref": "abstractRule.schema.json"
71
71
  },
72
- "type" : "array"
72
+ "type": "array"
73
73
  }
74
74
  },
75
- "required" : [ "_type", "_uid" ],
76
- "title" : "ifthenelse",
77
- "type" : "object"
78
- }
75
+ "required": [
76
+ "_type",
77
+ "_uid"
78
+ ],
79
+ "title": "ifthenelse",
80
+ "type": "object",
81
+ "allOf": [
82
+ {
83
+ "properties": {
84
+ "caseSummary": false
85
+ }
86
+ },
87
+ {
88
+ "properties": {
89
+ "hasValidConfiguration": false
90
+ }
91
+ },
92
+ {
93
+ "properties": {
94
+ "parentRule": false
95
+ }
96
+ },
97
+ {
98
+ "properties": {
99
+ "wasEverFullyConfigured": false
100
+ }
101
+ }
102
+ ],
103
+ "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/ifthenelse.json."
104
+ }
@@ -70,5 +70,12 @@
70
70
  ],
71
71
  "title": "indirectRole",
72
72
  "type": "object",
73
+ "allOf": [
74
+ {
75
+ "properties": {
76
+ "devParentCase": false
77
+ }
78
+ }
79
+ ],
73
80
  "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/indirectRole.json."
74
81
  }
@@ -64,5 +64,17 @@
64
64
  ],
65
65
  "title": "jobStep",
66
66
  "type": "object",
67
+ "allOf": [
68
+ {
69
+ "properties": {
70
+ "nextStepSucces": false
71
+ }
72
+ },
73
+ {
74
+ "properties": {
75
+ "nextStepFaillure": false
76
+ }
77
+ }
78
+ ],
67
79
  "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/jobStep.json."
68
80
  }
@@ -1,79 +1,119 @@
1
1
  {
2
- "$id" : "https://grexx.net/studio-next/schemas/llmModel.schema.json",
3
- "$schema" : "https://json-schema.org/draft/2020-12/schema",
4
- "additionalProperties" : false,
5
- "properties" : {
6
- "_id" : {
7
- "type" : "string"
8
- },
9
- "_interfaceID" : {
10
- "type" : "string"
11
- },
12
- "_isInterface" : {
13
- "type" : "boolean"
14
- },
15
- "_knownIDs" : {
16
- "items" : {
17
- "type" : "string"
2
+ "$id": "https://grexx.net/studio-next/schemas/llmModel.schema.json",
3
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4
+ "additionalProperties": false,
5
+ "properties": {
6
+ "_id": {
7
+ "type": "string"
8
+ },
9
+ "_interfaceID": {
10
+ "type": "string"
11
+ },
12
+ "_isInterface": {
13
+ "type": "boolean"
14
+ },
15
+ "_knownIDs": {
16
+ "items": {
17
+ "type": "string"
18
18
  },
19
- "type" : "array"
19
+ "type": "array"
20
20
  },
21
- "_origin" : {
22
- "type" : "string"
21
+ "_origin": {
22
+ "type": "string"
23
23
  },
24
- "_src" : {
25
- "type" : "string"
24
+ "_src": {
25
+ "type": "string"
26
26
  },
27
- "_type" : {
28
- "const" : "llmModel"
27
+ "_type": {
28
+ "const": "llmModel"
29
29
  },
30
- "_uid" : {
31
- "description" : "Deterministic UUID derived from case-ID.",
32
- "format" : "uuid",
33
- "type" : "string"
30
+ "_uid": {
31
+ "description": "Deterministic UUID derived from case-ID.",
32
+ "format": "uuid",
33
+ "type": "string"
34
34
  },
35
- "agentTextModel" : {
36
- "type" : "string"
35
+ "agentTextModel": {
36
+ "type": "string"
37
37
  },
38
- "description" : {
39
- "$ref" : "template/inlineTemplate.schema.json"
38
+ "description": {
39
+ "$ref": "template/inlineTemplate.schema.json"
40
40
  },
41
- "inactive" : {
42
- "type" : "boolean"
41
+ "inactive": {
42
+ "type": "boolean"
43
43
  },
44
- "interfaceStudioProduct" : {
45
- "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
44
+ "interfaceStudioProduct": {
45
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
46
46
  },
47
- "llmFrequencyPenalty" : {
48
- "type" : "number"
47
+ "llmFrequencyPenalty": {
48
+ "type": "number"
49
49
  },
50
- "llmMaxCompletionTokens" : {
51
- "type" : "integer"
50
+ "llmMaxCompletionTokens": {
51
+ "type": "integer"
52
52
  },
53
- "llmPresencePenalty" : {
54
- "type" : "number"
53
+ "llmPresencePenalty": {
54
+ "type": "number"
55
55
  },
56
- "llmProvider" : {
57
- "enum" : [ "openai", "anthropic", "gemini", "seepseek", "litellm", "unknown" ],
58
- "type" : "string"
56
+ "llmProvider": {
57
+ "enum": [
58
+ "openai",
59
+ "anthropic",
60
+ "gemini",
61
+ "seepseek",
62
+ "litellm",
63
+ "unknown"
64
+ ],
65
+ "type": "string"
59
66
  },
60
- "llmTemperature" : {
61
- "type" : "number"
67
+ "llmTemperature": {
68
+ "type": "number"
62
69
  },
63
- "llmTopP" : {
64
- "type" : "number"
70
+ "llmTopP": {
71
+ "type": "number"
65
72
  },
66
- "metaCaseToOtap" : {
67
- "type" : "boolean"
73
+ "metaCaseToOtap": {
74
+ "type": "boolean"
68
75
  },
69
- "name" : {
70
- "$ref" : "common.schema.json#/$defs/multilanguageStringStructure"
76
+ "name": {
77
+ "$ref": "common.schema.json#/$defs/multilanguageStringStructure"
71
78
  },
72
- "ourProductId" : {
73
- "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
79
+ "ourProductId": {
80
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
74
81
  }
75
82
  },
76
- "required" : [ "_type", "_uid" ],
77
- "title" : "llmModel",
78
- "type" : "object"
79
- }
83
+ "required": [
84
+ "_type",
85
+ "_uid",
86
+ "agentTextModel",
87
+ "name"
88
+ ],
89
+ "title": "llmModel",
90
+ "type": "object",
91
+ "allOf": [
92
+ {
93
+ "properties": {
94
+ "llmFrequencyPenalty": false
95
+ }
96
+ },
97
+ {
98
+ "properties": {
99
+ "llmMaxCompletionTokens": false
100
+ }
101
+ },
102
+ {
103
+ "properties": {
104
+ "llmPresencePenalty": false
105
+ }
106
+ },
107
+ {
108
+ "properties": {
109
+ "llmTemperature": false
110
+ }
111
+ },
112
+ {
113
+ "properties": {
114
+ "llmTopP": false
115
+ }
116
+ }
117
+ ],
118
+ "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/llmModel.json."
119
+ }
@@ -130,11 +130,17 @@
130
130
  },
131
131
  "required": [
132
132
  "_type",
133
- "_uid"
133
+ "_uid",
134
+ "type"
134
135
  ],
135
136
  "title": "mapping",
136
137
  "type": "object",
137
138
  "allOf": [
139
+ {
140
+ "properties": {
141
+ "devParentCase": false
142
+ }
143
+ },
138
144
  {
139
145
  "if": {
140
146
  "anyOf": [
@@ -331,6 +337,11 @@
331
337
  }
332
338
  }
333
339
  },
340
+ {
341
+ "properties": {
342
+ "parentRule": false
343
+ }
344
+ },
334
345
  {
335
346
  "if": {
336
347
  "anyOf": [
@@ -153,6 +153,11 @@
153
153
  }
154
154
  }
155
155
  },
156
+ {
157
+ "properties": {
158
+ "devParentCase": false
159
+ }
160
+ },
156
161
  {
157
162
  "if": {
158
163
  "anyOf": [