@dcyfr/ai 3.2.4 → 3.3.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.
@@ -0,0 +1,818 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "version": {
6
+ "default": "1.0.0",
7
+ "type": "string"
8
+ },
9
+ "projectName": {
10
+ "type": "string"
11
+ },
12
+ "telemetry": {
13
+ "default": {
14
+ "enabled": true,
15
+ "storage": "file",
16
+ "storagePath": ".dcyfr/telemetry",
17
+ "retentionDays": 30,
18
+ "sampling": 1
19
+ },
20
+ "type": "object",
21
+ "properties": {
22
+ "enabled": {
23
+ "default": true,
24
+ "type": "boolean"
25
+ },
26
+ "storage": {
27
+ "default": "file",
28
+ "type": "string",
29
+ "enum": [
30
+ "memory",
31
+ "file",
32
+ "redis",
33
+ "database"
34
+ ]
35
+ },
36
+ "storagePath": {
37
+ "default": ".dcyfr/telemetry",
38
+ "type": "string"
39
+ },
40
+ "retentionDays": {
41
+ "default": 30,
42
+ "type": "number",
43
+ "exclusiveMinimum": 0
44
+ },
45
+ "sampling": {
46
+ "default": 1,
47
+ "type": "number",
48
+ "minimum": 0,
49
+ "maximum": 1
50
+ }
51
+ },
52
+ "required": [
53
+ "enabled",
54
+ "storage",
55
+ "storagePath",
56
+ "retentionDays",
57
+ "sampling"
58
+ ],
59
+ "additionalProperties": false
60
+ },
61
+ "providers": {
62
+ "default": {
63
+ "enabled": true,
64
+ "primary": "claude",
65
+ "fallback": [
66
+ "copilot",
67
+ "github-models",
68
+ "groq",
69
+ "msty",
70
+ "ollama"
71
+ ],
72
+ "timeout": 30000,
73
+ "retries": 3,
74
+ "providers": {}
75
+ },
76
+ "type": "object",
77
+ "properties": {
78
+ "enabled": {
79
+ "default": true,
80
+ "type": "boolean"
81
+ },
82
+ "primary": {
83
+ "default": "claude",
84
+ "type": "string"
85
+ },
86
+ "fallback": {
87
+ "default": [
88
+ "copilot",
89
+ "github-models",
90
+ "groq",
91
+ "msty",
92
+ "ollama"
93
+ ],
94
+ "type": "array",
95
+ "items": {
96
+ "type": "string"
97
+ }
98
+ },
99
+ "timeout": {
100
+ "default": 30000,
101
+ "type": "number",
102
+ "exclusiveMinimum": 0
103
+ },
104
+ "retries": {
105
+ "default": 3,
106
+ "type": "number",
107
+ "minimum": 0
108
+ },
109
+ "providers": {
110
+ "type": "object",
111
+ "propertyNames": {
112
+ "type": "string"
113
+ },
114
+ "additionalProperties": {
115
+ "type": "object",
116
+ "properties": {
117
+ "enabled": {
118
+ "default": true,
119
+ "type": "boolean"
120
+ },
121
+ "apiKey": {
122
+ "type": "string"
123
+ },
124
+ "baseUrl": {
125
+ "type": "string"
126
+ },
127
+ "model": {
128
+ "type": "string"
129
+ },
130
+ "maxTokens": {
131
+ "type": "number",
132
+ "exclusiveMinimum": 0
133
+ }
134
+ },
135
+ "required": [
136
+ "enabled"
137
+ ],
138
+ "additionalProperties": false
139
+ }
140
+ }
141
+ },
142
+ "required": [
143
+ "enabled",
144
+ "primary",
145
+ "fallback",
146
+ "timeout",
147
+ "retries"
148
+ ],
149
+ "additionalProperties": false
150
+ },
151
+ "validation": {
152
+ "default": {
153
+ "enabled": true,
154
+ "parallel": true,
155
+ "failFast": false,
156
+ "gates": []
157
+ },
158
+ "type": "object",
159
+ "properties": {
160
+ "enabled": {
161
+ "default": true,
162
+ "type": "boolean"
163
+ },
164
+ "parallel": {
165
+ "default": true,
166
+ "type": "boolean"
167
+ },
168
+ "failFast": {
169
+ "default": false,
170
+ "type": "boolean"
171
+ },
172
+ "gates": {
173
+ "default": [],
174
+ "type": "array",
175
+ "items": {
176
+ "type": "object",
177
+ "properties": {
178
+ "name": {
179
+ "type": "string"
180
+ },
181
+ "plugins": {
182
+ "type": "array",
183
+ "items": {
184
+ "type": "string"
185
+ }
186
+ },
187
+ "required": {
188
+ "default": true,
189
+ "type": "boolean"
190
+ },
191
+ "failureMode": {
192
+ "default": "error",
193
+ "type": "string",
194
+ "enum": [
195
+ "error",
196
+ "warn",
197
+ "skip"
198
+ ]
199
+ },
200
+ "parallel": {
201
+ "default": false,
202
+ "type": "boolean"
203
+ },
204
+ "timeout": {
205
+ "default": 60000,
206
+ "type": "number",
207
+ "exclusiveMinimum": 0
208
+ }
209
+ },
210
+ "required": [
211
+ "name",
212
+ "plugins",
213
+ "required",
214
+ "failureMode",
215
+ "parallel",
216
+ "timeout"
217
+ ],
218
+ "additionalProperties": false
219
+ }
220
+ }
221
+ },
222
+ "required": [
223
+ "enabled",
224
+ "parallel",
225
+ "failFast",
226
+ "gates"
227
+ ],
228
+ "additionalProperties": false
229
+ },
230
+ "plugins": {
231
+ "default": [],
232
+ "type": "array",
233
+ "items": {
234
+ "type": "object",
235
+ "properties": {
236
+ "name": {
237
+ "type": "string"
238
+ },
239
+ "enabled": {
240
+ "default": true,
241
+ "type": "boolean"
242
+ },
243
+ "timeout": {
244
+ "default": 30000,
245
+ "type": "number",
246
+ "exclusiveMinimum": 0
247
+ },
248
+ "failureMode": {
249
+ "default": "warn",
250
+ "type": "string",
251
+ "enum": [
252
+ "error",
253
+ "warn",
254
+ "skip"
255
+ ]
256
+ },
257
+ "config": {
258
+ "type": "object",
259
+ "propertyNames": {
260
+ "type": "string"
261
+ },
262
+ "additionalProperties": {}
263
+ }
264
+ },
265
+ "required": [
266
+ "name",
267
+ "enabled",
268
+ "timeout",
269
+ "failureMode"
270
+ ],
271
+ "additionalProperties": false
272
+ }
273
+ },
274
+ "agents": {
275
+ "default": {
276
+ "designTokens": {
277
+ "enabled": true,
278
+ "tokenFile": "src/lib/design-tokens.ts",
279
+ "compliance": 0.9,
280
+ "autofix": false,
281
+ "strictMode": true
282
+ },
283
+ "barrelExports": {
284
+ "enabled": true,
285
+ "barrelPaths": [
286
+ "@/components",
287
+ "@/lib",
288
+ "@/utils"
289
+ ],
290
+ "allowRelativeWithin": false,
291
+ "strictMode": true,
292
+ "exceptions": [
293
+ "src/app/**/layout.tsx",
294
+ "src/app/**/page.tsx"
295
+ ]
296
+ },
297
+ "pageLayout": {
298
+ "enabled": true,
299
+ "targetUsage": 0.9,
300
+ "pagePattern": "src/app/**/page.tsx",
301
+ "exceptions": [
302
+ "ArticleLayout",
303
+ "ArchiveLayout",
304
+ "ErrorLayout"
305
+ ],
306
+ "strictMode": true
307
+ },
308
+ "testData": {
309
+ "enabled": true,
310
+ "testPattern": "**/*.{test,spec}.{ts,tsx,js,jsx}",
311
+ "allowedPrefixes": [
312
+ "MOCK_",
313
+ "TEST_",
314
+ "FAKE_",
315
+ "FIXTURE_"
316
+ ]
317
+ }
318
+ },
319
+ "type": "object",
320
+ "properties": {
321
+ "designTokens": {
322
+ "type": "object",
323
+ "properties": {
324
+ "enabled": {
325
+ "default": true,
326
+ "type": "boolean"
327
+ },
328
+ "tokenFile": {
329
+ "default": "src/lib/design-tokens.ts",
330
+ "type": "string"
331
+ },
332
+ "compliance": {
333
+ "default": 0.9,
334
+ "type": "number",
335
+ "minimum": 0,
336
+ "maximum": 1
337
+ },
338
+ "autofix": {
339
+ "default": false,
340
+ "type": "boolean"
341
+ },
342
+ "strictMode": {
343
+ "default": true,
344
+ "type": "boolean"
345
+ },
346
+ "patterns": {
347
+ "type": "object",
348
+ "properties": {
349
+ "spacing": {
350
+ "default": [
351
+ "SPACING.XS",
352
+ "SPACING.SM",
353
+ "SPACING.MD",
354
+ "SPACING.LG",
355
+ "SPACING.XL"
356
+ ],
357
+ "type": "array",
358
+ "items": {
359
+ "type": "string"
360
+ }
361
+ },
362
+ "typography": {
363
+ "default": [
364
+ "TYPOGRAPHY.H1",
365
+ "TYPOGRAPHY.H2",
366
+ "TYPOGRAPHY.BODY"
367
+ ],
368
+ "type": "array",
369
+ "items": {
370
+ "type": "string"
371
+ }
372
+ },
373
+ "colors": {
374
+ "default": [
375
+ "SEMANTIC_COLORS.primary",
376
+ "SEMANTIC_COLORS.success"
377
+ ],
378
+ "type": "array",
379
+ "items": {
380
+ "type": "string"
381
+ }
382
+ }
383
+ },
384
+ "required": [
385
+ "spacing",
386
+ "typography",
387
+ "colors"
388
+ ],
389
+ "additionalProperties": false
390
+ }
391
+ },
392
+ "required": [
393
+ "enabled",
394
+ "tokenFile",
395
+ "compliance",
396
+ "autofix",
397
+ "strictMode"
398
+ ],
399
+ "additionalProperties": false
400
+ },
401
+ "barrelExports": {
402
+ "type": "object",
403
+ "properties": {
404
+ "enabled": {
405
+ "default": true,
406
+ "type": "boolean"
407
+ },
408
+ "barrelPaths": {
409
+ "default": [
410
+ "@/components",
411
+ "@/lib",
412
+ "@/utils"
413
+ ],
414
+ "type": "array",
415
+ "items": {
416
+ "type": "string"
417
+ }
418
+ },
419
+ "allowRelativeWithin": {
420
+ "default": false,
421
+ "type": "boolean"
422
+ },
423
+ "strictMode": {
424
+ "default": true,
425
+ "type": "boolean"
426
+ },
427
+ "exceptions": {
428
+ "default": [
429
+ "src/app/**/layout.tsx",
430
+ "src/app/**/page.tsx"
431
+ ],
432
+ "type": "array",
433
+ "items": {
434
+ "type": "string"
435
+ }
436
+ }
437
+ },
438
+ "required": [
439
+ "enabled",
440
+ "barrelPaths",
441
+ "allowRelativeWithin",
442
+ "strictMode",
443
+ "exceptions"
444
+ ],
445
+ "additionalProperties": false
446
+ },
447
+ "pageLayout": {
448
+ "type": "object",
449
+ "properties": {
450
+ "enabled": {
451
+ "default": true,
452
+ "type": "boolean"
453
+ },
454
+ "targetUsage": {
455
+ "default": 0.9,
456
+ "type": "number",
457
+ "minimum": 0,
458
+ "maximum": 1
459
+ },
460
+ "pagePattern": {
461
+ "default": "src/app/**/page.tsx",
462
+ "type": "string"
463
+ },
464
+ "exceptions": {
465
+ "default": [
466
+ "ArticleLayout",
467
+ "ArchiveLayout",
468
+ "ErrorLayout"
469
+ ],
470
+ "type": "array",
471
+ "items": {
472
+ "type": "string"
473
+ }
474
+ },
475
+ "strictMode": {
476
+ "default": true,
477
+ "type": "boolean"
478
+ }
479
+ },
480
+ "required": [
481
+ "enabled",
482
+ "targetUsage",
483
+ "pagePattern",
484
+ "exceptions",
485
+ "strictMode"
486
+ ],
487
+ "additionalProperties": false
488
+ },
489
+ "testData": {
490
+ "type": "object",
491
+ "properties": {
492
+ "enabled": {
493
+ "default": true,
494
+ "type": "boolean"
495
+ },
496
+ "testPattern": {
497
+ "default": "**/*.{test,spec}.{ts,tsx,js,jsx}",
498
+ "type": "string"
499
+ },
500
+ "sensitivePatterns": {
501
+ "type": "object",
502
+ "properties": {
503
+ "apiKeys": {
504
+ "default": true,
505
+ "type": "boolean"
506
+ },
507
+ "passwords": {
508
+ "default": true,
509
+ "type": "boolean"
510
+ },
511
+ "secrets": {
512
+ "default": true,
513
+ "type": "boolean"
514
+ },
515
+ "tokens": {
516
+ "default": true,
517
+ "type": "boolean"
518
+ },
519
+ "emails": {
520
+ "default": true,
521
+ "type": "boolean"
522
+ },
523
+ "urls": {
524
+ "default": true,
525
+ "type": "boolean"
526
+ }
527
+ },
528
+ "required": [
529
+ "apiKeys",
530
+ "passwords",
531
+ "secrets",
532
+ "tokens",
533
+ "emails",
534
+ "urls"
535
+ ],
536
+ "additionalProperties": false
537
+ },
538
+ "allowedPrefixes": {
539
+ "default": [
540
+ "MOCK_",
541
+ "TEST_",
542
+ "FAKE_",
543
+ "FIXTURE_"
544
+ ],
545
+ "type": "array",
546
+ "items": {
547
+ "type": "string"
548
+ }
549
+ }
550
+ },
551
+ "required": [
552
+ "enabled",
553
+ "testPattern",
554
+ "allowedPrefixes"
555
+ ],
556
+ "additionalProperties": false
557
+ }
558
+ },
559
+ "additionalProperties": false
560
+ },
561
+ "project": {
562
+ "default": {
563
+ "root": ".",
564
+ "include": [
565
+ "src/**/*.{ts,tsx,js,jsx}"
566
+ ],
567
+ "exclude": [
568
+ "node_modules/**",
569
+ "dist/**",
570
+ "build/**",
571
+ ".next/**"
572
+ ]
573
+ },
574
+ "type": "object",
575
+ "properties": {
576
+ "root": {
577
+ "default": ".",
578
+ "type": "string"
579
+ },
580
+ "include": {
581
+ "default": [
582
+ "src/**/*.{ts,tsx,js,jsx}"
583
+ ],
584
+ "type": "array",
585
+ "items": {
586
+ "type": "string"
587
+ }
588
+ },
589
+ "exclude": {
590
+ "default": [
591
+ "node_modules/**",
592
+ "dist/**",
593
+ "build/**",
594
+ ".next/**"
595
+ ],
596
+ "type": "array",
597
+ "items": {
598
+ "type": "string"
599
+ }
600
+ }
601
+ },
602
+ "required": [
603
+ "root",
604
+ "include",
605
+ "exclude"
606
+ ],
607
+ "additionalProperties": false
608
+ },
609
+ "agentRegistry": {
610
+ "type": "object",
611
+ "properties": {
612
+ "autoDiscover": {
613
+ "default": false,
614
+ "type": "boolean"
615
+ },
616
+ "projectPaths": {
617
+ "default": [
618
+ ".claude/agents",
619
+ ".github/agents"
620
+ ],
621
+ "type": "array",
622
+ "items": {
623
+ "type": "string"
624
+ }
625
+ },
626
+ "public": {
627
+ "default": {
628
+ "enabled": true,
629
+ "source": "@dcyfr/ai/agents-builtin"
630
+ },
631
+ "type": "object",
632
+ "properties": {
633
+ "enabled": {
634
+ "default": true,
635
+ "type": "boolean"
636
+ },
637
+ "source": {
638
+ "type": "string"
639
+ },
640
+ "paths": {
641
+ "type": "array",
642
+ "items": {
643
+ "type": "string"
644
+ }
645
+ }
646
+ },
647
+ "required": [
648
+ "enabled"
649
+ ],
650
+ "additionalProperties": false
651
+ },
652
+ "private": {
653
+ "default": {
654
+ "enabled": false
655
+ },
656
+ "type": "object",
657
+ "properties": {
658
+ "enabled": {
659
+ "default": true,
660
+ "type": "boolean"
661
+ },
662
+ "source": {
663
+ "type": "string"
664
+ },
665
+ "paths": {
666
+ "type": "array",
667
+ "items": {
668
+ "type": "string"
669
+ }
670
+ }
671
+ },
672
+ "required": [
673
+ "enabled"
674
+ ],
675
+ "additionalProperties": false
676
+ },
677
+ "project": {
678
+ "default": {
679
+ "enabled": true,
680
+ "paths": [
681
+ ".claude/agents",
682
+ ".github/agents"
683
+ ]
684
+ },
685
+ "type": "object",
686
+ "properties": {
687
+ "enabled": {
688
+ "default": true,
689
+ "type": "boolean"
690
+ },
691
+ "source": {
692
+ "type": "string"
693
+ },
694
+ "paths": {
695
+ "type": "array",
696
+ "items": {
697
+ "type": "string"
698
+ }
699
+ }
700
+ },
701
+ "required": [
702
+ "enabled"
703
+ ],
704
+ "additionalProperties": false
705
+ }
706
+ },
707
+ "required": [
708
+ "autoDiscover",
709
+ "projectPaths",
710
+ "public",
711
+ "private",
712
+ "project"
713
+ ],
714
+ "additionalProperties": false
715
+ },
716
+ "agentRouter": {
717
+ "type": "object",
718
+ "properties": {
719
+ "defaultAgent": {
720
+ "default": "fullstack-developer",
721
+ "type": "string"
722
+ },
723
+ "routingRules": {
724
+ "default": [],
725
+ "type": "array",
726
+ "items": {
727
+ "type": "object",
728
+ "properties": {
729
+ "pattern": {
730
+ "type": "string"
731
+ },
732
+ "agent": {
733
+ "type": "string"
734
+ },
735
+ "priority": {
736
+ "default": 50,
737
+ "type": "number"
738
+ }
739
+ },
740
+ "required": [
741
+ "pattern",
742
+ "agent",
743
+ "priority"
744
+ ],
745
+ "additionalProperties": false
746
+ }
747
+ },
748
+ "delegationEnabled": {
749
+ "default": true,
750
+ "type": "boolean"
751
+ },
752
+ "maxDelegationDepth": {
753
+ "default": 3,
754
+ "type": "number",
755
+ "minimum": 0
756
+ }
757
+ },
758
+ "required": [
759
+ "defaultAgent",
760
+ "routingRules",
761
+ "delegationEnabled",
762
+ "maxDelegationDepth"
763
+ ],
764
+ "additionalProperties": false
765
+ },
766
+ "mcpRegistry": {
767
+ "type": "object",
768
+ "properties": {
769
+ "autoDiscover": {
770
+ "default": false,
771
+ "type": "boolean"
772
+ },
773
+ "searchPaths": {
774
+ "default": [
775
+ ".mcp.json",
776
+ ".vscode/mcp.json"
777
+ ],
778
+ "type": "array",
779
+ "items": {
780
+ "type": "string"
781
+ }
782
+ },
783
+ "configFileName": {
784
+ "default": ".mcp.json",
785
+ "type": "string"
786
+ },
787
+ "healthCheckInterval": {
788
+ "default": 60000,
789
+ "type": "number",
790
+ "exclusiveMinimum": 0
791
+ },
792
+ "healthMonitoring": {
793
+ "default": false,
794
+ "type": "boolean"
795
+ }
796
+ },
797
+ "required": [
798
+ "autoDiscover",
799
+ "searchPaths",
800
+ "configFileName",
801
+ "healthCheckInterval",
802
+ "healthMonitoring"
803
+ ],
804
+ "additionalProperties": false
805
+ }
806
+ },
807
+ "required": [
808
+ "version",
809
+ "telemetry",
810
+ "providers",
811
+ "validation",
812
+ "plugins",
813
+ "agents",
814
+ "project"
815
+ ],
816
+ "additionalProperties": false,
817
+ "$id": "https://dcyfr.ai/schema/config.json"
818
+ }