@aikdna/kdna-core 0.7.2 → 0.9.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.
@@ -1,338 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "title": "KDNA_Patterns",
4
- "type": "object",
5
- "required": [
6
- "meta",
7
- "terminology",
8
- "misunderstandings",
9
- "self_check"
10
- ],
11
- "properties": {
12
- "meta": {
13
- "type": "object",
14
- "required": [
15
- "version",
16
- "domain",
17
- "created",
18
- "purpose",
19
- "load_condition"
20
- ],
21
- "properties": {
22
- "version": {
23
- "type": "string"
24
- },
25
- "domain": {
26
- "type": "string",
27
- "pattern": "^[a-z][a-z0-9_]*$"
28
- },
29
- "created": {
30
- "type": "string"
31
- },
32
- "purpose": {
33
- "type": "string"
34
- },
35
- "load_condition": {
36
- "type": "string"
37
- }
38
- },
39
- "additionalProperties": true
40
- },
41
- "terminology": {
42
- "type": "object",
43
- "minProperties": 1,
44
- "properties": {
45
- "standard_terms": {
46
- "type": "array",
47
- "items": {
48
- "type": "object",
49
- "required": [
50
- "term",
51
- "definition"
52
- ],
53
- "properties": {
54
- "term": {
55
- "type": "string"
56
- },
57
- "definition": {
58
- "type": "string"
59
- },
60
- "applies_when": {
61
- "type": "array",
62
- "items": {
63
- "type": "string"
64
- }
65
- },
66
- "does_not_apply_when": {
67
- "type": "array",
68
- "items": {
69
- "type": "string"
70
- }
71
- }
72
- },
73
- "additionalProperties": true
74
- }
75
- },
76
- "preferred_terms": {
77
- "type": "array",
78
- "items": {
79
- "type": "object",
80
- "required": [
81
- "term",
82
- "definition"
83
- ],
84
- "properties": {
85
- "term": {
86
- "type": "string"
87
- },
88
- "definition": {
89
- "type": "string"
90
- },
91
- "applies_when": {
92
- "type": "array",
93
- "items": {
94
- "type": "string"
95
- }
96
- },
97
- "does_not_apply_when": {
98
- "type": "array",
99
- "items": {
100
- "type": "string"
101
- }
102
- }
103
- },
104
- "additionalProperties": true
105
- }
106
- },
107
- "banned_terms": {
108
- "type": "array",
109
- "items": {
110
- "type": "object",
111
- "required": [
112
- "term",
113
- "why",
114
- "replace_with"
115
- ],
116
- "properties": {
117
- "term": {
118
- "type": "string"
119
- },
120
- "why": {
121
- "type": "string"
122
- },
123
- "replace_with": {
124
- "type": "string"
125
- },
126
- "applies_when": {
127
- "type": "array",
128
- "items": {
129
- "type": "string"
130
- }
131
- },
132
- "does_not_apply_when": {
133
- "type": "array",
134
- "items": {
135
- "type": "string"
136
- }
137
- }
138
- },
139
- "additionalProperties": true
140
- }
141
- }
142
- },
143
- "additionalProperties": true
144
- },
145
- "aesthetic_preferences": {
146
- "type": "array",
147
- "items": {
148
- "type": "object",
149
- "required": [
150
- "prefer",
151
- "avoid"
152
- ],
153
- "properties": {
154
- "prefer": {
155
- "type": "string"
156
- },
157
- "avoid": {
158
- "type": "string"
159
- },
160
- "signals_good": {
161
- "type": "array",
162
- "items": { "type": "string" }
163
- },
164
- "signals_bad": {
165
- "type": "array",
166
- "items": { "type": "string" }
167
- }
168
- },
169
- "additionalProperties": true
170
- }
171
- },
172
- "boundaries": {
173
- "type": "array",
174
- "items": {
175
- "type": "object",
176
- "required": [
177
- "rule",
178
- "why"
179
- ],
180
- "properties": {
181
- "rule": {
182
- "type": "string"
183
- },
184
- "why": {
185
- "type": "string"
186
- },
187
- "must_not_do": {
188
- "type": "array",
189
- "items": { "type": "string" }
190
- },
191
- "acceptable_exception": {
192
- "type": "array",
193
- "items": { "type": "string" }
194
- }
195
- },
196
- "additionalProperties": true
197
- }
198
- },
199
- "risk_model": {
200
- "type": "object",
201
- "properties": {
202
- "highest_risk_errors": {
203
- "type": "array",
204
- "items": {
205
- "type": "string"
206
- }
207
- },
208
- "acceptable_errors": {
209
- "type": "array",
210
- "items": {
211
- "type": "string"
212
- }
213
- },
214
- "must_block_when": {
215
- "type": "array",
216
- "items": { "type": "string" }
217
- },
218
- "warn_when": {
219
- "type": "array",
220
- "items": { "type": "string" }
221
- }
222
- },
223
- "additionalProperties": true
224
- },
225
- "misunderstandings": {
226
- "type": "array",
227
- "items": {
228
- "type": "object",
229
- "required": [
230
- "id",
231
- "wrong",
232
- "correct",
233
- "key_distinction",
234
- "why"
235
- ],
236
- "properties": {
237
- "id": {
238
- "type": "string"
239
- },
240
- "wrong": {
241
- "type": "string"
242
- },
243
- "correct": {
244
- "type": "string"
245
- },
246
- "key_distinction": {
247
- "type": "string"
248
- },
249
- "why": {
250
- "type": "string"
251
- },
252
- "confidence": {
253
- "type": "string"
254
- },
255
- "evidence_type": {
256
- "type": "array",
257
- "items": {
258
- "type": "string"
259
- }
260
- },
261
- "applies_when": {
262
- "type": "array",
263
- "items": {
264
- "type": "string"
265
- }
266
- },
267
- "does_not_apply_when": {
268
- "type": "array",
269
- "items": {
270
- "type": "string"
271
- }
272
- },
273
- "failure_risk": {
274
- "type": "string"
275
- }
276
- },
277
- "additionalProperties": true
278
- }
279
- },
280
- "self_check": {
281
- "type": "array",
282
- "items": {
283
- "anyOf": [
284
- {
285
- "type": "string"
286
- },
287
- {
288
- "type": "object",
289
- "required": [
290
- "question"
291
- ],
292
- "properties": {
293
- "question": {
294
- "type": "string"
295
- },
296
- "applies_when": {
297
- "type": "array",
298
- "items": {
299
- "type": "string"
300
- }
301
- }
302
- },
303
- "additionalProperties": true
304
- }
305
- ]
306
- }
307
- },
308
- "counterexamples": {
309
- "type": "array",
310
- "items": {
311
- "type": "object",
312
- "required": [
313
- "bad_example",
314
- "why_bad"
315
- ],
316
- "properties": {
317
- "bad_example": {
318
- "type": "string"
319
- },
320
- "why_bad": {
321
- "type": "string"
322
- },
323
- "violated_axioms": {
324
- "type": "array",
325
- "items": {
326
- "type": "string"
327
- }
328
- },
329
- "better_direction": {
330
- "type": "string"
331
- }
332
- },
333
- "additionalProperties": true
334
- }
335
- }
336
- },
337
- "additionalProperties": true
338
- }
@@ -1,342 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "title": "KDNA_Patterns",
4
- "type": "object",
5
- "required": [
6
- "meta",
7
- "terminology",
8
- "misunderstandings",
9
- "self_check"
10
- ],
11
- "properties": {
12
- "meta": {
13
- "type": "object",
14
- "required": [
15
- "version",
16
- "domain",
17
- "created",
18
- "purpose",
19
- "load_condition"
20
- ],
21
- "properties": {
22
- "version": {
23
- "type": "string"
24
- },
25
- "domain": {
26
- "type": "string",
27
- "pattern": "^[a-z][a-z0-9_]*$"
28
- },
29
- "created": {
30
- "type": "string"
31
- },
32
- "purpose": {
33
- "type": "string"
34
- },
35
- "load_condition": {
36
- "type": "string"
37
- }
38
- },
39
- "additionalProperties": true
40
- },
41
- "terminology": {
42
- "type": "object",
43
- "minProperties": 1,
44
- "properties": {
45
- "standard_terms": {
46
- "type": "array",
47
- "items": {
48
- "type": "object",
49
- "required": [
50
- "term",
51
- "definition"
52
- ],
53
- "properties": {
54
- "term": {
55
- "type": "string"
56
- },
57
- "definition": {
58
- "type": "string"
59
- },
60
- "applies_when": {
61
- "type": "array",
62
- "items": {
63
- "type": "string"
64
- }
65
- },
66
- "does_not_apply_when": {
67
- "type": "array",
68
- "items": {
69
- "type": "string"
70
- }
71
- }
72
- },
73
- "additionalProperties": true
74
- }
75
- },
76
- "preferred_terms": {
77
- "type": "array",
78
- "items": {
79
- "type": "object",
80
- "required": [
81
- "term",
82
- "definition"
83
- ],
84
- "properties": {
85
- "term": {
86
- "type": "string"
87
- },
88
- "definition": {
89
- "type": "string"
90
- },
91
- "applies_when": {
92
- "type": "array",
93
- "items": {
94
- "type": "string"
95
- }
96
- },
97
- "does_not_apply_when": {
98
- "type": "array",
99
- "items": {
100
- "type": "string"
101
- }
102
- }
103
- },
104
- "additionalProperties": true
105
- }
106
- },
107
- "banned_terms": {
108
- "type": "array",
109
- "items": {
110
- "type": "object",
111
- "required": [
112
- "term",
113
- "why",
114
- "replace_with"
115
- ],
116
- "properties": {
117
- "term": {
118
- "type": "string"
119
- },
120
- "why": {
121
- "type": "string"
122
- },
123
- "replace_with": {
124
- "type": "string"
125
- },
126
- "applies_when": {
127
- "type": "array",
128
- "items": {
129
- "type": "string"
130
- }
131
- },
132
- "does_not_apply_when": {
133
- "type": "array",
134
- "items": {
135
- "type": "string"
136
- }
137
- }
138
- },
139
- "additionalProperties": true
140
- }
141
- }
142
- },
143
- "additionalProperties": true
144
- },
145
- "aesthetic_preferences": {
146
- "type": "array",
147
- "items": {
148
- "type": "object",
149
- "required": [
150
- "prefer",
151
- "avoid"
152
- ],
153
- "properties": {
154
- "prefer": {
155
- "type": "string"
156
- },
157
- "avoid": {
158
- "type": "string"
159
- },
160
- "signals_good": {
161
- "type": "array",
162
- "items": { "type": "string" }
163
- },
164
- "signals_bad": {
165
- "type": "array",
166
- "items": { "type": "string" }
167
- }
168
- },
169
- "additionalProperties": true
170
- }
171
- },
172
- "boundaries": {
173
- "type": "array",
174
- "items": {
175
- "type": "object",
176
- "required": [
177
- "rule",
178
- "why"
179
- ],
180
- "properties": {
181
- "rule": {
182
- "type": "string"
183
- },
184
- "why": {
185
- "type": "string"
186
- },
187
- "must_not_do": {
188
- "type": "array",
189
- "items": { "type": "string" }
190
- },
191
- "acceptable_exception": {
192
- "type": "array",
193
- "items": { "type": "string" }
194
- }
195
- },
196
- "additionalProperties": true
197
- }
198
- },
199
- "risk_model": {
200
- "type": "object",
201
- "properties": {
202
- "highest_risk_errors": {
203
- "type": "array",
204
- "items": {
205
- "type": "string"
206
- }
207
- },
208
- "acceptable_errors": {
209
- "type": "array",
210
- "items": {
211
- "type": "string"
212
- }
213
- },
214
- "must_block_when": {
215
- "type": "array",
216
- "items": { "type": "string" }
217
- },
218
- "warn_when": {
219
- "type": "array",
220
- "items": { "type": "string" }
221
- }
222
- },
223
- "additionalProperties": true
224
- },
225
- "misunderstandings": {
226
- "type": "array",
227
- "items": {
228
- "type": "object",
229
- "required": [
230
- "id",
231
- "wrong",
232
- "correct",
233
- "key_distinction",
234
- "why",
235
- "applies_when",
236
- "does_not_apply_when",
237
- "failure_risk",
238
- "confidence"
239
- ],
240
- "properties": {
241
- "id": {
242
- "type": "string"
243
- },
244
- "wrong": {
245
- "type": "string"
246
- },
247
- "correct": {
248
- "type": "string"
249
- },
250
- "key_distinction": {
251
- "type": "string"
252
- },
253
- "why": {
254
- "type": "string"
255
- },
256
- "confidence": {
257
- "type": "string"
258
- },
259
- "evidence_type": {
260
- "type": "array",
261
- "items": {
262
- "type": "string"
263
- }
264
- },
265
- "applies_when": {
266
- "type": "array",
267
- "items": {
268
- "type": "string"
269
- }
270
- },
271
- "does_not_apply_when": {
272
- "type": "array",
273
- "items": {
274
- "type": "string"
275
- }
276
- },
277
- "failure_risk": {
278
- "type": "string"
279
- }
280
- },
281
- "additionalProperties": true
282
- }
283
- },
284
- "self_check": {
285
- "type": "array",
286
- "items": {
287
- "anyOf": [
288
- {
289
- "type": "string"
290
- },
291
- {
292
- "type": "object",
293
- "required": [
294
- "question"
295
- ],
296
- "properties": {
297
- "question": {
298
- "type": "string"
299
- },
300
- "applies_when": {
301
- "type": "array",
302
- "items": {
303
- "type": "string"
304
- }
305
- }
306
- },
307
- "additionalProperties": true
308
- }
309
- ]
310
- }
311
- },
312
- "counterexamples": {
313
- "type": "array",
314
- "items": {
315
- "type": "object",
316
- "required": [
317
- "bad_example",
318
- "why_bad"
319
- ],
320
- "properties": {
321
- "bad_example": {
322
- "type": "string"
323
- },
324
- "why_bad": {
325
- "type": "string"
326
- },
327
- "violated_axioms": {
328
- "type": "array",
329
- "items": {
330
- "type": "string"
331
- }
332
- },
333
- "better_direction": {
334
- "type": "string"
335
- }
336
- },
337
- "additionalProperties": true
338
- }
339
- }
340
- },
341
- "additionalProperties": true
342
- }