@gaunt-sloth/core 2.0.0-alpha.2 → 2.0.0-alpha.21

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 (158) hide show
  1. package/.gsloth.code.md +10 -0
  2. package/README.md +6 -6
  3. package/dist/config/defaults.d.ts +85 -0
  4. package/dist/config/defaults.js +103 -0
  5. package/dist/config/defaults.js.map +1 -0
  6. package/dist/config/jsonc.d.ts +12 -0
  7. package/dist/config/jsonc.js +41 -0
  8. package/dist/config/jsonc.js.map +1 -0
  9. package/dist/config/loader.d.ts +169 -0
  10. package/dist/config/loader.js +872 -0
  11. package/dist/config/loader.js.map +1 -0
  12. package/dist/config/schema.d.ts +673 -0
  13. package/dist/config/schema.js +524 -0
  14. package/dist/config/schema.js.map +1 -0
  15. package/dist/config/shell-policy.d.ts +331 -0
  16. package/dist/config/shell-policy.js +238 -0
  17. package/dist/config/shell-policy.js.map +1 -0
  18. package/dist/config/types.d.ts +596 -0
  19. package/dist/config/types.js +13 -0
  20. package/dist/config/types.js.map +1 -0
  21. package/dist/config.d.ts +18 -647
  22. package/dist/config.js +15 -516
  23. package/dist/config.js.map +1 -1
  24. package/dist/constants.d.ts +42 -0
  25. package/dist/constants.js +42 -0
  26. package/dist/constants.js.map +1 -1
  27. package/dist/core/GthAbstractAgent.d.ts +85 -2
  28. package/dist/core/GthAbstractAgent.js +398 -28
  29. package/dist/core/GthAbstractAgent.js.map +1 -1
  30. package/dist/core/GthAgentRunner.d.ts +158 -1
  31. package/dist/core/GthAgentRunner.js +367 -4
  32. package/dist/core/GthAgentRunner.js.map +1 -1
  33. package/dist/core/GthLangChainAgent.js +193 -16
  34. package/dist/core/GthLangChainAgent.js.map +1 -1
  35. package/dist/core/debugCapture.d.ts +59 -0
  36. package/dist/core/debugCapture.js +101 -0
  37. package/dist/core/debugCapture.js.map +1 -0
  38. package/dist/core/gthLeanAgentFactory.d.ts +9 -0
  39. package/dist/core/gthLeanAgentFactory.js +10 -0
  40. package/dist/core/gthLeanAgentFactory.js.map +1 -0
  41. package/dist/core/plainToolIndication.d.ts +15 -0
  42. package/dist/core/plainToolIndication.js +148 -0
  43. package/dist/core/plainToolIndication.js.map +1 -0
  44. package/dist/core/runStats.d.ts +41 -0
  45. package/dist/core/runStats.js +73 -0
  46. package/dist/core/runStats.js.map +1 -0
  47. package/dist/core/shell/ShellCommandFailedError.d.ts +54 -0
  48. package/dist/core/shell/ShellCommandFailedError.js +68 -0
  49. package/dist/core/shell/ShellCommandFailedError.js.map +1 -0
  50. package/dist/core/shell/allowlist.d.ts +75 -0
  51. package/dist/core/shell/allowlist.js +187 -0
  52. package/dist/core/shell/allowlist.js.map +1 -0
  53. package/dist/core/shell/arity.d.ts +75 -0
  54. package/dist/core/shell/arity.js +313 -0
  55. package/dist/core/shell/arity.js.map +1 -0
  56. package/dist/core/shell/judge.d.ts +161 -0
  57. package/dist/core/shell/judge.js +261 -0
  58. package/dist/core/shell/judge.js.map +1 -0
  59. package/dist/core/shell/normalize.d.ts +27 -0
  60. package/dist/core/shell/normalize.js +53 -0
  61. package/dist/core/shell/normalize.js.map +1 -0
  62. package/dist/core/toolDisplay.d.ts +101 -0
  63. package/dist/core/toolDisplay.js +374 -0
  64. package/dist/core/toolDisplay.js.map +1 -0
  65. package/dist/core/toolOutputChannel.d.ts +68 -0
  66. package/dist/core/toolOutputChannel.js +112 -0
  67. package/dist/core/toolOutputChannel.js.map +1 -0
  68. package/dist/core/types.d.ts +173 -0
  69. package/dist/core/types.js.map +1 -1
  70. package/dist/history/historyFormat.d.ts +28 -0
  71. package/dist/history/historyFormat.js +127 -0
  72. package/dist/history/historyFormat.js.map +1 -0
  73. package/dist/history/historyStore.d.ts +198 -0
  74. package/dist/history/historyStore.js +482 -0
  75. package/dist/history/historyStore.js.map +1 -0
  76. package/dist/history/recordSession.d.ts +37 -0
  77. package/dist/history/recordSession.js +56 -0
  78. package/dist/history/recordSession.js.map +1 -0
  79. package/dist/index.d.ts +4 -0
  80. package/dist/index.js +4 -0
  81. package/dist/index.js.map +1 -1
  82. package/dist/providers/anthropic.d.ts +1 -1
  83. package/dist/providers/anthropic.js +5 -10
  84. package/dist/providers/anthropic.js.map +1 -1
  85. package/dist/providers/deepseek.d.ts +1 -1
  86. package/dist/providers/deepseek.js +5 -10
  87. package/dist/providers/deepseek.js.map +1 -1
  88. package/dist/providers/geminiSchemaSanitizer.d.ts +52 -0
  89. package/dist/providers/geminiSchemaSanitizer.js +201 -0
  90. package/dist/providers/geminiSchemaSanitizer.js.map +1 -0
  91. package/dist/providers/google-genai.d.ts +1 -1
  92. package/dist/providers/google-genai.js +9 -11
  93. package/dist/providers/google-genai.js.map +1 -1
  94. package/dist/providers/groq.d.ts +1 -1
  95. package/dist/providers/groq.js +5 -10
  96. package/dist/providers/groq.js.map +1 -1
  97. package/dist/providers/huggingface.d.ts +25 -0
  98. package/dist/providers/huggingface.js +69 -0
  99. package/dist/providers/huggingface.js.map +1 -0
  100. package/dist/providers/modelCatalog.d.ts +109 -0
  101. package/dist/providers/modelCatalog.js +245 -0
  102. package/dist/providers/modelCatalog.js.map +1 -0
  103. package/dist/providers/modelDiscovery.d.ts +111 -3
  104. package/dist/providers/modelDiscovery.js +183 -27
  105. package/dist/providers/modelDiscovery.js.map +1 -1
  106. package/dist/providers/ollama.d.ts +19 -5
  107. package/dist/providers/ollama.js +60 -52
  108. package/dist/providers/ollama.js.map +1 -1
  109. package/dist/providers/openai.d.ts +1 -1
  110. package/dist/providers/openai.js +5 -10
  111. package/dist/providers/openai.js.map +1 -1
  112. package/dist/providers/openrouter.d.ts +1 -1
  113. package/dist/providers/openrouter.js +12 -12
  114. package/dist/providers/openrouter.js.map +1 -1
  115. package/dist/providers/vertexai.d.ts +1 -1
  116. package/dist/providers/vertexai.js +9 -11
  117. package/dist/providers/vertexai.js.map +1 -1
  118. package/dist/providers/xai.d.ts +1 -1
  119. package/dist/providers/xai.js +5 -10
  120. package/dist/providers/xai.js.map +1 -1
  121. package/dist/runtime/askStructured.d.ts +62 -0
  122. package/dist/runtime/askStructured.js +76 -0
  123. package/dist/runtime/askStructured.js.map +1 -0
  124. package/dist/runtime/conversation.d.ts +59 -0
  125. package/dist/runtime/conversation.js +137 -0
  126. package/dist/runtime/conversation.js.map +1 -0
  127. package/dist/runtime/singleShot.d.ts +24 -5
  128. package/dist/runtime/singleShot.js +56 -9
  129. package/dist/runtime/singleShot.js.map +1 -1
  130. package/dist/utils/aiignoreUtils.js.map +1 -1
  131. package/dist/utils/binaryOutputUtils.js.map +1 -1
  132. package/dist/utils/consoleUtils.d.ts +22 -0
  133. package/dist/utils/consoleUtils.js +45 -0
  134. package/dist/utils/consoleUtils.js.map +1 -1
  135. package/dist/utils/debugDump.d.ts +57 -0
  136. package/dist/utils/debugDump.js +236 -0
  137. package/dist/utils/debugDump.js.map +1 -0
  138. package/dist/utils/debugUtils.d.ts +13 -4
  139. package/dist/utils/debugUtils.js +36 -13
  140. package/dist/utils/debugUtils.js.map +1 -1
  141. package/dist/utils/fileUtils.d.ts +24 -2
  142. package/dist/utils/fileUtils.js +54 -12
  143. package/dist/utils/fileUtils.js.map +1 -1
  144. package/dist/utils/llmUtils.js.map +1 -1
  145. package/dist/utils/redactSecrets.d.ts +63 -0
  146. package/dist/utils/redactSecrets.js +238 -0
  147. package/dist/utils/redactSecrets.js.map +1 -0
  148. package/dist/utils/systemPromptNotes.d.ts +181 -0
  149. package/dist/utils/systemPromptNotes.js +298 -0
  150. package/dist/utils/systemPromptNotes.js.map +1 -0
  151. package/dist/utils/systemUtils.d.ts +32 -1
  152. package/dist/utils/systemUtils.js +50 -3
  153. package/dist/utils/systemUtils.js.map +1 -1
  154. package/dist/utils/toolMatching.d.ts +30 -0
  155. package/dist/utils/toolMatching.js +44 -0
  156. package/dist/utils/toolMatching.js.map +1 -0
  157. package/package.json +17 -8
  158. package/schema/gsloth-config.schema.json +2111 -0
@@ -0,0 +1,2111 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "$schema": {
6
+ "type": "string"
7
+ },
8
+ "llm": {
9
+ "type": "object",
10
+ "properties": {
11
+ "type": {
12
+ "type": "string"
13
+ },
14
+ "model": {
15
+ "type": "string"
16
+ },
17
+ "configuration": {
18
+ "type": "object",
19
+ "propertyNames": {
20
+ "type": "string"
21
+ },
22
+ "additionalProperties": {}
23
+ },
24
+ "apiKeyEnvironmentVariable": {
25
+ "type": "string"
26
+ }
27
+ },
28
+ "additionalProperties": {}
29
+ },
30
+ "agent": {
31
+ "type": "object",
32
+ "properties": {
33
+ "backend": {
34
+ "type": "string",
35
+ "enum": [
36
+ "deep",
37
+ "lean"
38
+ ]
39
+ }
40
+ }
41
+ },
42
+ "history": {
43
+ "type": "object",
44
+ "properties": {
45
+ "enabled": {
46
+ "type": "boolean"
47
+ },
48
+ "dbPath": {
49
+ "type": "string"
50
+ }
51
+ }
52
+ },
53
+ "memory": {
54
+ "type": "object",
55
+ "properties": {
56
+ "enabled": {
57
+ "type": "boolean"
58
+ }
59
+ }
60
+ },
61
+ "binaryFormats": {
62
+ "anyOf": [
63
+ {
64
+ "type": "boolean",
65
+ "const": false
66
+ },
67
+ {
68
+ "type": "array",
69
+ "items": {
70
+ "type": "object",
71
+ "properties": {
72
+ "type": {
73
+ "type": "string",
74
+ "enum": [
75
+ "image",
76
+ "file",
77
+ "audio",
78
+ "video",
79
+ "binary"
80
+ ]
81
+ },
82
+ "extensions": {
83
+ "type": "array",
84
+ "items": {
85
+ "type": "string"
86
+ }
87
+ },
88
+ "maxSize": {
89
+ "type": "number"
90
+ },
91
+ "mimeTypes": {
92
+ "type": "object",
93
+ "propertyNames": {
94
+ "type": "string"
95
+ },
96
+ "additionalProperties": {
97
+ "type": "string"
98
+ }
99
+ }
100
+ },
101
+ "required": [
102
+ "type",
103
+ "extensions"
104
+ ]
105
+ }
106
+ }
107
+ ]
108
+ },
109
+ "contentSource": {
110
+ "type": "string"
111
+ },
112
+ "requirementSource": {
113
+ "type": "string"
114
+ },
115
+ "contentSourceConfig": {
116
+ "type": "object",
117
+ "propertyNames": {
118
+ "type": "string"
119
+ },
120
+ "additionalProperties": {}
121
+ },
122
+ "requirementSourceConfig": {
123
+ "type": "object",
124
+ "propertyNames": {
125
+ "type": "string"
126
+ },
127
+ "additionalProperties": {}
128
+ },
129
+ "projectGuidelines": {
130
+ "type": "string"
131
+ },
132
+ "identityProfile": {
133
+ "type": "string"
134
+ },
135
+ "includeCurrentDateAfterGuidelines": {
136
+ "type": "boolean"
137
+ },
138
+ "organization": {
139
+ "type": "object",
140
+ "properties": {
141
+ "name": {
142
+ "type": "string"
143
+ },
144
+ "locale": {
145
+ "type": "string"
146
+ },
147
+ "timezone": {
148
+ "type": "string"
149
+ }
150
+ }
151
+ },
152
+ "projectReviewInstructions": {
153
+ "type": "string"
154
+ },
155
+ "noDefaultPrompts": {
156
+ "type": "boolean"
157
+ },
158
+ "filesystem": {
159
+ "anyOf": [
160
+ {
161
+ "type": "array",
162
+ "items": {
163
+ "type": "string"
164
+ }
165
+ },
166
+ {
167
+ "type": "string",
168
+ "enum": [
169
+ "all",
170
+ "read",
171
+ "none"
172
+ ]
173
+ }
174
+ ]
175
+ },
176
+ "builtInTools": {
177
+ "anyOf": [
178
+ {
179
+ "type": "array",
180
+ "items": {
181
+ "type": "string"
182
+ }
183
+ },
184
+ {
185
+ "type": "object",
186
+ "propertyNames": {
187
+ "type": "string"
188
+ },
189
+ "additionalProperties": {
190
+ "anyOf": [
191
+ {
192
+ "type": "boolean"
193
+ },
194
+ {
195
+ "type": "object",
196
+ "properties": {
197
+ "enabled": {
198
+ "type": "boolean"
199
+ },
200
+ "command": {
201
+ "type": "string"
202
+ },
203
+ "timeout": {
204
+ "type": "number"
205
+ },
206
+ "maxOutputBytes": {
207
+ "type": "number"
208
+ },
209
+ "allowlist": {
210
+ "type": "boolean"
211
+ },
212
+ "persistAllowlist": {
213
+ "type": "boolean"
214
+ },
215
+ "judge": {
216
+ "anyOf": [
217
+ {
218
+ "type": "boolean"
219
+ },
220
+ {
221
+ "type": "object",
222
+ "properties": {
223
+ "enabled": {
224
+ "type": "boolean"
225
+ },
226
+ "autoApproveLow": {
227
+ "type": "boolean"
228
+ },
229
+ "blockHigh": {
230
+ "type": "boolean"
231
+ },
232
+ "model": {
233
+ "type": "object",
234
+ "properties": {
235
+ "type": {
236
+ "type": "string"
237
+ },
238
+ "model": {
239
+ "type": "string"
240
+ },
241
+ "configuration": {
242
+ "type": "object",
243
+ "propertyNames": {
244
+ "type": "string"
245
+ },
246
+ "additionalProperties": {}
247
+ },
248
+ "apiKeyEnvironmentVariable": {
249
+ "type": "string"
250
+ }
251
+ },
252
+ "additionalProperties": {}
253
+ }
254
+ }
255
+ }
256
+ ]
257
+ },
258
+ "yolo": {
259
+ "type": "boolean"
260
+ },
261
+ "fileSet": {
262
+ "type": "string",
263
+ "enum": [
264
+ "gitignore",
265
+ "all"
266
+ ]
267
+ }
268
+ }
269
+ }
270
+ ]
271
+ }
272
+ }
273
+ ]
274
+ },
275
+ "tools": {
276
+ "type": "array",
277
+ "items": {}
278
+ },
279
+ "allowedTools": {
280
+ "type": "array",
281
+ "items": {
282
+ "type": "string"
283
+ }
284
+ },
285
+ "middleware": {
286
+ "type": "array",
287
+ "items": {}
288
+ },
289
+ "streamOutput": {
290
+ "type": "boolean"
291
+ },
292
+ "writeOutputToFile": {
293
+ "anyOf": [
294
+ {
295
+ "type": "boolean"
296
+ },
297
+ {
298
+ "type": "string"
299
+ }
300
+ ]
301
+ },
302
+ "writeBinaryOutputsToFile": {
303
+ "type": "boolean"
304
+ },
305
+ "useColour": {
306
+ "type": "boolean"
307
+ },
308
+ "streamSessionInferenceLog": {
309
+ "type": "boolean"
310
+ },
311
+ "canInterruptInferenceWithEsc": {
312
+ "type": "boolean"
313
+ },
314
+ "debugLog": {
315
+ "type": "boolean"
316
+ },
317
+ "recursionLimit": {
318
+ "type": "number"
319
+ },
320
+ "consoleLevel": {
321
+ "anyOf": [
322
+ {
323
+ "type": "string"
324
+ },
325
+ {
326
+ "type": "number"
327
+ }
328
+ ]
329
+ },
330
+ "customTools": {
331
+ "type": "object",
332
+ "propertyNames": {
333
+ "type": "string"
334
+ },
335
+ "additionalProperties": {
336
+ "type": "object",
337
+ "properties": {
338
+ "command": {
339
+ "type": "string"
340
+ },
341
+ "description": {
342
+ "type": "string"
343
+ },
344
+ "parameters": {
345
+ "type": "object",
346
+ "propertyNames": {
347
+ "type": "string"
348
+ },
349
+ "additionalProperties": {
350
+ "type": "object",
351
+ "properties": {
352
+ "description": {
353
+ "type": "string"
354
+ },
355
+ "allow": {
356
+ "type": "array",
357
+ "items": {
358
+ "type": "string",
359
+ "enum": [
360
+ "absolute-paths",
361
+ "directory-traversal",
362
+ "shell-injection",
363
+ "null-bytes"
364
+ ]
365
+ }
366
+ }
367
+ },
368
+ "required": [
369
+ "description"
370
+ ]
371
+ }
372
+ },
373
+ "timeout": {
374
+ "type": "number"
375
+ }
376
+ },
377
+ "required": [
378
+ "command",
379
+ "description"
380
+ ]
381
+ }
382
+ },
383
+ "mcpServers": {
384
+ "type": "object",
385
+ "propertyNames": {
386
+ "type": "string"
387
+ },
388
+ "additionalProperties": {}
389
+ },
390
+ "tls": {
391
+ "type": "object",
392
+ "properties": {
393
+ "extraCaCerts": {
394
+ "type": "array",
395
+ "items": {
396
+ "type": "string"
397
+ }
398
+ },
399
+ "rejectUnauthorized": {
400
+ "type": "boolean"
401
+ }
402
+ }
403
+ },
404
+ "a2aAgents": {
405
+ "type": "object",
406
+ "propertyNames": {
407
+ "type": "string"
408
+ },
409
+ "additionalProperties": {}
410
+ },
411
+ "builtInToolsConfig": {
412
+ "type": "object",
413
+ "propertyNames": {
414
+ "type": "string"
415
+ },
416
+ "additionalProperties": {}
417
+ },
418
+ "aiignore": {
419
+ "type": "object",
420
+ "properties": {
421
+ "enabled": {
422
+ "type": "boolean"
423
+ },
424
+ "patterns": {
425
+ "type": "array",
426
+ "items": {
427
+ "type": "string"
428
+ }
429
+ }
430
+ }
431
+ },
432
+ "commands": {
433
+ "type": "object",
434
+ "properties": {
435
+ "pr": {
436
+ "type": "object",
437
+ "properties": {
438
+ "contentSource": {
439
+ "type": "string"
440
+ },
441
+ "requirementSource": {
442
+ "type": "string"
443
+ },
444
+ "filesystem": {
445
+ "anyOf": [
446
+ {
447
+ "type": "array",
448
+ "items": {
449
+ "type": "string"
450
+ }
451
+ },
452
+ {
453
+ "type": "string",
454
+ "enum": [
455
+ "all",
456
+ "read",
457
+ "none"
458
+ ]
459
+ }
460
+ ]
461
+ },
462
+ "builtInTools": {
463
+ "anyOf": [
464
+ {
465
+ "type": "array",
466
+ "items": {
467
+ "type": "string"
468
+ }
469
+ },
470
+ {
471
+ "type": "object",
472
+ "propertyNames": {
473
+ "type": "string"
474
+ },
475
+ "additionalProperties": {
476
+ "anyOf": [
477
+ {
478
+ "type": "boolean"
479
+ },
480
+ {
481
+ "type": "object",
482
+ "properties": {
483
+ "enabled": {
484
+ "type": "boolean"
485
+ },
486
+ "command": {
487
+ "type": "string"
488
+ },
489
+ "timeout": {
490
+ "type": "number"
491
+ },
492
+ "maxOutputBytes": {
493
+ "type": "number"
494
+ },
495
+ "allowlist": {
496
+ "type": "boolean"
497
+ },
498
+ "persistAllowlist": {
499
+ "type": "boolean"
500
+ },
501
+ "judge": {
502
+ "anyOf": [
503
+ {
504
+ "type": "boolean"
505
+ },
506
+ {
507
+ "type": "object",
508
+ "properties": {
509
+ "enabled": {
510
+ "type": "boolean"
511
+ },
512
+ "autoApproveLow": {
513
+ "type": "boolean"
514
+ },
515
+ "blockHigh": {
516
+ "type": "boolean"
517
+ },
518
+ "model": {
519
+ "type": "object",
520
+ "properties": {
521
+ "type": {
522
+ "type": "string"
523
+ },
524
+ "model": {
525
+ "type": "string"
526
+ },
527
+ "configuration": {
528
+ "type": "object",
529
+ "propertyNames": {
530
+ "type": "string"
531
+ },
532
+ "additionalProperties": {}
533
+ },
534
+ "apiKeyEnvironmentVariable": {
535
+ "type": "string"
536
+ }
537
+ },
538
+ "additionalProperties": {}
539
+ }
540
+ }
541
+ }
542
+ ]
543
+ },
544
+ "yolo": {
545
+ "type": "boolean"
546
+ },
547
+ "fileSet": {
548
+ "type": "string",
549
+ "enum": [
550
+ "gitignore",
551
+ "all"
552
+ ]
553
+ }
554
+ }
555
+ }
556
+ ]
557
+ }
558
+ }
559
+ ]
560
+ },
561
+ "customTools": {
562
+ "anyOf": [
563
+ {
564
+ "type": "boolean",
565
+ "const": false
566
+ },
567
+ {
568
+ "type": "object",
569
+ "propertyNames": {
570
+ "type": "string"
571
+ },
572
+ "additionalProperties": {
573
+ "type": "object",
574
+ "properties": {
575
+ "command": {
576
+ "type": "string"
577
+ },
578
+ "description": {
579
+ "type": "string"
580
+ },
581
+ "parameters": {
582
+ "type": "object",
583
+ "propertyNames": {
584
+ "type": "string"
585
+ },
586
+ "additionalProperties": {
587
+ "type": "object",
588
+ "properties": {
589
+ "description": {
590
+ "type": "string"
591
+ },
592
+ "allow": {
593
+ "type": "array",
594
+ "items": {
595
+ "type": "string",
596
+ "enum": [
597
+ "absolute-paths",
598
+ "directory-traversal",
599
+ "shell-injection",
600
+ "null-bytes"
601
+ ]
602
+ }
603
+ }
604
+ },
605
+ "required": [
606
+ "description"
607
+ ]
608
+ }
609
+ },
610
+ "timeout": {
611
+ "type": "number"
612
+ }
613
+ },
614
+ "required": [
615
+ "command",
616
+ "description"
617
+ ]
618
+ }
619
+ }
620
+ ]
621
+ },
622
+ "allowedTools": {
623
+ "type": "array",
624
+ "items": {
625
+ "type": "string"
626
+ }
627
+ },
628
+ "logWorkForReviewInSeconds": {
629
+ "type": "number"
630
+ },
631
+ "rating": {
632
+ "type": "object",
633
+ "properties": {
634
+ "enabled": {
635
+ "type": "boolean"
636
+ },
637
+ "passThreshold": {
638
+ "type": "number"
639
+ },
640
+ "maxRating": {
641
+ "type": "number"
642
+ },
643
+ "minRating": {
644
+ "type": "number"
645
+ },
646
+ "errorOnReviewFail": {
647
+ "type": "boolean"
648
+ }
649
+ }
650
+ },
651
+ "binaryFormats": {
652
+ "anyOf": [
653
+ {
654
+ "type": "boolean",
655
+ "const": false
656
+ },
657
+ {
658
+ "type": "array",
659
+ "items": {
660
+ "type": "object",
661
+ "properties": {
662
+ "type": {
663
+ "type": "string",
664
+ "enum": [
665
+ "image",
666
+ "file",
667
+ "audio",
668
+ "video",
669
+ "binary"
670
+ ]
671
+ },
672
+ "extensions": {
673
+ "type": "array",
674
+ "items": {
675
+ "type": "string"
676
+ }
677
+ },
678
+ "maxSize": {
679
+ "type": "number"
680
+ },
681
+ "mimeTypes": {
682
+ "type": "object",
683
+ "propertyNames": {
684
+ "type": "string"
685
+ },
686
+ "additionalProperties": {
687
+ "type": "string"
688
+ }
689
+ }
690
+ },
691
+ "required": [
692
+ "type",
693
+ "extensions"
694
+ ]
695
+ }
696
+ }
697
+ ]
698
+ }
699
+ }
700
+ },
701
+ "review": {
702
+ "type": "object",
703
+ "properties": {
704
+ "contentSource": {
705
+ "type": "string"
706
+ },
707
+ "requirementSource": {
708
+ "type": "string"
709
+ },
710
+ "filesystem": {
711
+ "anyOf": [
712
+ {
713
+ "type": "array",
714
+ "items": {
715
+ "type": "string"
716
+ }
717
+ },
718
+ {
719
+ "type": "string",
720
+ "enum": [
721
+ "all",
722
+ "read",
723
+ "none"
724
+ ]
725
+ }
726
+ ]
727
+ },
728
+ "builtInTools": {
729
+ "anyOf": [
730
+ {
731
+ "type": "array",
732
+ "items": {
733
+ "type": "string"
734
+ }
735
+ },
736
+ {
737
+ "type": "object",
738
+ "propertyNames": {
739
+ "type": "string"
740
+ },
741
+ "additionalProperties": {
742
+ "anyOf": [
743
+ {
744
+ "type": "boolean"
745
+ },
746
+ {
747
+ "type": "object",
748
+ "properties": {
749
+ "enabled": {
750
+ "type": "boolean"
751
+ },
752
+ "command": {
753
+ "type": "string"
754
+ },
755
+ "timeout": {
756
+ "type": "number"
757
+ },
758
+ "maxOutputBytes": {
759
+ "type": "number"
760
+ },
761
+ "allowlist": {
762
+ "type": "boolean"
763
+ },
764
+ "persistAllowlist": {
765
+ "type": "boolean"
766
+ },
767
+ "judge": {
768
+ "anyOf": [
769
+ {
770
+ "type": "boolean"
771
+ },
772
+ {
773
+ "type": "object",
774
+ "properties": {
775
+ "enabled": {
776
+ "type": "boolean"
777
+ },
778
+ "autoApproveLow": {
779
+ "type": "boolean"
780
+ },
781
+ "blockHigh": {
782
+ "type": "boolean"
783
+ },
784
+ "model": {
785
+ "type": "object",
786
+ "properties": {
787
+ "type": {
788
+ "type": "string"
789
+ },
790
+ "model": {
791
+ "type": "string"
792
+ },
793
+ "configuration": {
794
+ "type": "object",
795
+ "propertyNames": {
796
+ "type": "string"
797
+ },
798
+ "additionalProperties": {}
799
+ },
800
+ "apiKeyEnvironmentVariable": {
801
+ "type": "string"
802
+ }
803
+ },
804
+ "additionalProperties": {}
805
+ }
806
+ }
807
+ }
808
+ ]
809
+ },
810
+ "yolo": {
811
+ "type": "boolean"
812
+ },
813
+ "fileSet": {
814
+ "type": "string",
815
+ "enum": [
816
+ "gitignore",
817
+ "all"
818
+ ]
819
+ }
820
+ }
821
+ }
822
+ ]
823
+ }
824
+ }
825
+ ]
826
+ },
827
+ "customTools": {
828
+ "anyOf": [
829
+ {
830
+ "type": "boolean",
831
+ "const": false
832
+ },
833
+ {
834
+ "type": "object",
835
+ "propertyNames": {
836
+ "type": "string"
837
+ },
838
+ "additionalProperties": {
839
+ "type": "object",
840
+ "properties": {
841
+ "command": {
842
+ "type": "string"
843
+ },
844
+ "description": {
845
+ "type": "string"
846
+ },
847
+ "parameters": {
848
+ "type": "object",
849
+ "propertyNames": {
850
+ "type": "string"
851
+ },
852
+ "additionalProperties": {
853
+ "type": "object",
854
+ "properties": {
855
+ "description": {
856
+ "type": "string"
857
+ },
858
+ "allow": {
859
+ "type": "array",
860
+ "items": {
861
+ "type": "string",
862
+ "enum": [
863
+ "absolute-paths",
864
+ "directory-traversal",
865
+ "shell-injection",
866
+ "null-bytes"
867
+ ]
868
+ }
869
+ }
870
+ },
871
+ "required": [
872
+ "description"
873
+ ]
874
+ }
875
+ },
876
+ "timeout": {
877
+ "type": "number"
878
+ }
879
+ },
880
+ "required": [
881
+ "command",
882
+ "description"
883
+ ]
884
+ }
885
+ }
886
+ ]
887
+ },
888
+ "allowedTools": {
889
+ "type": "array",
890
+ "items": {
891
+ "type": "string"
892
+ }
893
+ },
894
+ "rating": {
895
+ "type": "object",
896
+ "properties": {
897
+ "enabled": {
898
+ "type": "boolean"
899
+ },
900
+ "passThreshold": {
901
+ "type": "number"
902
+ },
903
+ "maxRating": {
904
+ "type": "number"
905
+ },
906
+ "minRating": {
907
+ "type": "number"
908
+ },
909
+ "errorOnReviewFail": {
910
+ "type": "boolean"
911
+ }
912
+ }
913
+ },
914
+ "binaryFormats": {
915
+ "anyOf": [
916
+ {
917
+ "type": "boolean",
918
+ "const": false
919
+ },
920
+ {
921
+ "type": "array",
922
+ "items": {
923
+ "type": "object",
924
+ "properties": {
925
+ "type": {
926
+ "type": "string",
927
+ "enum": [
928
+ "image",
929
+ "file",
930
+ "audio",
931
+ "video",
932
+ "binary"
933
+ ]
934
+ },
935
+ "extensions": {
936
+ "type": "array",
937
+ "items": {
938
+ "type": "string"
939
+ }
940
+ },
941
+ "maxSize": {
942
+ "type": "number"
943
+ },
944
+ "mimeTypes": {
945
+ "type": "object",
946
+ "propertyNames": {
947
+ "type": "string"
948
+ },
949
+ "additionalProperties": {
950
+ "type": "string"
951
+ }
952
+ }
953
+ },
954
+ "required": [
955
+ "type",
956
+ "extensions"
957
+ ]
958
+ }
959
+ }
960
+ ]
961
+ }
962
+ }
963
+ },
964
+ "ask": {
965
+ "type": "object",
966
+ "properties": {
967
+ "filesystem": {
968
+ "anyOf": [
969
+ {
970
+ "type": "array",
971
+ "items": {
972
+ "type": "string"
973
+ }
974
+ },
975
+ {
976
+ "type": "string",
977
+ "enum": [
978
+ "all",
979
+ "read",
980
+ "none"
981
+ ]
982
+ }
983
+ ]
984
+ },
985
+ "builtInTools": {
986
+ "anyOf": [
987
+ {
988
+ "type": "array",
989
+ "items": {
990
+ "type": "string"
991
+ }
992
+ },
993
+ {
994
+ "type": "object",
995
+ "propertyNames": {
996
+ "type": "string"
997
+ },
998
+ "additionalProperties": {
999
+ "anyOf": [
1000
+ {
1001
+ "type": "boolean"
1002
+ },
1003
+ {
1004
+ "type": "object",
1005
+ "properties": {
1006
+ "enabled": {
1007
+ "type": "boolean"
1008
+ },
1009
+ "command": {
1010
+ "type": "string"
1011
+ },
1012
+ "timeout": {
1013
+ "type": "number"
1014
+ },
1015
+ "maxOutputBytes": {
1016
+ "type": "number"
1017
+ },
1018
+ "allowlist": {
1019
+ "type": "boolean"
1020
+ },
1021
+ "persistAllowlist": {
1022
+ "type": "boolean"
1023
+ },
1024
+ "judge": {
1025
+ "anyOf": [
1026
+ {
1027
+ "type": "boolean"
1028
+ },
1029
+ {
1030
+ "type": "object",
1031
+ "properties": {
1032
+ "enabled": {
1033
+ "type": "boolean"
1034
+ },
1035
+ "autoApproveLow": {
1036
+ "type": "boolean"
1037
+ },
1038
+ "blockHigh": {
1039
+ "type": "boolean"
1040
+ },
1041
+ "model": {
1042
+ "type": "object",
1043
+ "properties": {
1044
+ "type": {
1045
+ "type": "string"
1046
+ },
1047
+ "model": {
1048
+ "type": "string"
1049
+ },
1050
+ "configuration": {
1051
+ "type": "object",
1052
+ "propertyNames": {
1053
+ "type": "string"
1054
+ },
1055
+ "additionalProperties": {}
1056
+ },
1057
+ "apiKeyEnvironmentVariable": {
1058
+ "type": "string"
1059
+ }
1060
+ },
1061
+ "additionalProperties": {}
1062
+ }
1063
+ }
1064
+ }
1065
+ ]
1066
+ },
1067
+ "yolo": {
1068
+ "type": "boolean"
1069
+ },
1070
+ "fileSet": {
1071
+ "type": "string",
1072
+ "enum": [
1073
+ "gitignore",
1074
+ "all"
1075
+ ]
1076
+ }
1077
+ }
1078
+ }
1079
+ ]
1080
+ }
1081
+ }
1082
+ ]
1083
+ },
1084
+ "customTools": {
1085
+ "anyOf": [
1086
+ {
1087
+ "type": "boolean",
1088
+ "const": false
1089
+ },
1090
+ {
1091
+ "type": "object",
1092
+ "propertyNames": {
1093
+ "type": "string"
1094
+ },
1095
+ "additionalProperties": {
1096
+ "type": "object",
1097
+ "properties": {
1098
+ "command": {
1099
+ "type": "string"
1100
+ },
1101
+ "description": {
1102
+ "type": "string"
1103
+ },
1104
+ "parameters": {
1105
+ "type": "object",
1106
+ "propertyNames": {
1107
+ "type": "string"
1108
+ },
1109
+ "additionalProperties": {
1110
+ "type": "object",
1111
+ "properties": {
1112
+ "description": {
1113
+ "type": "string"
1114
+ },
1115
+ "allow": {
1116
+ "type": "array",
1117
+ "items": {
1118
+ "type": "string",
1119
+ "enum": [
1120
+ "absolute-paths",
1121
+ "directory-traversal",
1122
+ "shell-injection",
1123
+ "null-bytes"
1124
+ ]
1125
+ }
1126
+ }
1127
+ },
1128
+ "required": [
1129
+ "description"
1130
+ ]
1131
+ }
1132
+ },
1133
+ "timeout": {
1134
+ "type": "number"
1135
+ }
1136
+ },
1137
+ "required": [
1138
+ "command",
1139
+ "description"
1140
+ ]
1141
+ }
1142
+ }
1143
+ ]
1144
+ },
1145
+ "allowedTools": {
1146
+ "type": "array",
1147
+ "items": {
1148
+ "type": "string"
1149
+ }
1150
+ },
1151
+ "binaryFormats": {
1152
+ "anyOf": [
1153
+ {
1154
+ "type": "boolean",
1155
+ "const": false
1156
+ },
1157
+ {
1158
+ "type": "array",
1159
+ "items": {
1160
+ "type": "object",
1161
+ "properties": {
1162
+ "type": {
1163
+ "type": "string",
1164
+ "enum": [
1165
+ "image",
1166
+ "file",
1167
+ "audio",
1168
+ "video",
1169
+ "binary"
1170
+ ]
1171
+ },
1172
+ "extensions": {
1173
+ "type": "array",
1174
+ "items": {
1175
+ "type": "string"
1176
+ }
1177
+ },
1178
+ "maxSize": {
1179
+ "type": "number"
1180
+ },
1181
+ "mimeTypes": {
1182
+ "type": "object",
1183
+ "propertyNames": {
1184
+ "type": "string"
1185
+ },
1186
+ "additionalProperties": {
1187
+ "type": "string"
1188
+ }
1189
+ }
1190
+ },
1191
+ "required": [
1192
+ "type",
1193
+ "extensions"
1194
+ ]
1195
+ }
1196
+ }
1197
+ ]
1198
+ }
1199
+ }
1200
+ },
1201
+ "chat": {
1202
+ "type": "object",
1203
+ "properties": {
1204
+ "filesystem": {
1205
+ "anyOf": [
1206
+ {
1207
+ "type": "array",
1208
+ "items": {
1209
+ "type": "string"
1210
+ }
1211
+ },
1212
+ {
1213
+ "type": "string",
1214
+ "enum": [
1215
+ "all",
1216
+ "read",
1217
+ "none"
1218
+ ]
1219
+ }
1220
+ ]
1221
+ },
1222
+ "builtInTools": {
1223
+ "anyOf": [
1224
+ {
1225
+ "type": "array",
1226
+ "items": {
1227
+ "type": "string"
1228
+ }
1229
+ },
1230
+ {
1231
+ "type": "object",
1232
+ "propertyNames": {
1233
+ "type": "string"
1234
+ },
1235
+ "additionalProperties": {
1236
+ "anyOf": [
1237
+ {
1238
+ "type": "boolean"
1239
+ },
1240
+ {
1241
+ "type": "object",
1242
+ "properties": {
1243
+ "enabled": {
1244
+ "type": "boolean"
1245
+ },
1246
+ "command": {
1247
+ "type": "string"
1248
+ },
1249
+ "timeout": {
1250
+ "type": "number"
1251
+ },
1252
+ "maxOutputBytes": {
1253
+ "type": "number"
1254
+ },
1255
+ "allowlist": {
1256
+ "type": "boolean"
1257
+ },
1258
+ "persistAllowlist": {
1259
+ "type": "boolean"
1260
+ },
1261
+ "judge": {
1262
+ "anyOf": [
1263
+ {
1264
+ "type": "boolean"
1265
+ },
1266
+ {
1267
+ "type": "object",
1268
+ "properties": {
1269
+ "enabled": {
1270
+ "type": "boolean"
1271
+ },
1272
+ "autoApproveLow": {
1273
+ "type": "boolean"
1274
+ },
1275
+ "blockHigh": {
1276
+ "type": "boolean"
1277
+ },
1278
+ "model": {
1279
+ "type": "object",
1280
+ "properties": {
1281
+ "type": {
1282
+ "type": "string"
1283
+ },
1284
+ "model": {
1285
+ "type": "string"
1286
+ },
1287
+ "configuration": {
1288
+ "type": "object",
1289
+ "propertyNames": {
1290
+ "type": "string"
1291
+ },
1292
+ "additionalProperties": {}
1293
+ },
1294
+ "apiKeyEnvironmentVariable": {
1295
+ "type": "string"
1296
+ }
1297
+ },
1298
+ "additionalProperties": {}
1299
+ }
1300
+ }
1301
+ }
1302
+ ]
1303
+ },
1304
+ "yolo": {
1305
+ "type": "boolean"
1306
+ },
1307
+ "fileSet": {
1308
+ "type": "string",
1309
+ "enum": [
1310
+ "gitignore",
1311
+ "all"
1312
+ ]
1313
+ }
1314
+ }
1315
+ }
1316
+ ]
1317
+ }
1318
+ }
1319
+ ]
1320
+ },
1321
+ "customTools": {
1322
+ "anyOf": [
1323
+ {
1324
+ "type": "boolean",
1325
+ "const": false
1326
+ },
1327
+ {
1328
+ "type": "object",
1329
+ "propertyNames": {
1330
+ "type": "string"
1331
+ },
1332
+ "additionalProperties": {
1333
+ "type": "object",
1334
+ "properties": {
1335
+ "command": {
1336
+ "type": "string"
1337
+ },
1338
+ "description": {
1339
+ "type": "string"
1340
+ },
1341
+ "parameters": {
1342
+ "type": "object",
1343
+ "propertyNames": {
1344
+ "type": "string"
1345
+ },
1346
+ "additionalProperties": {
1347
+ "type": "object",
1348
+ "properties": {
1349
+ "description": {
1350
+ "type": "string"
1351
+ },
1352
+ "allow": {
1353
+ "type": "array",
1354
+ "items": {
1355
+ "type": "string",
1356
+ "enum": [
1357
+ "absolute-paths",
1358
+ "directory-traversal",
1359
+ "shell-injection",
1360
+ "null-bytes"
1361
+ ]
1362
+ }
1363
+ }
1364
+ },
1365
+ "required": [
1366
+ "description"
1367
+ ]
1368
+ }
1369
+ },
1370
+ "timeout": {
1371
+ "type": "number"
1372
+ }
1373
+ },
1374
+ "required": [
1375
+ "command",
1376
+ "description"
1377
+ ]
1378
+ }
1379
+ }
1380
+ ]
1381
+ },
1382
+ "allowedTools": {
1383
+ "type": "array",
1384
+ "items": {
1385
+ "type": "string"
1386
+ }
1387
+ },
1388
+ "binaryFormats": {
1389
+ "anyOf": [
1390
+ {
1391
+ "type": "boolean",
1392
+ "const": false
1393
+ },
1394
+ {
1395
+ "type": "array",
1396
+ "items": {
1397
+ "type": "object",
1398
+ "properties": {
1399
+ "type": {
1400
+ "type": "string",
1401
+ "enum": [
1402
+ "image",
1403
+ "file",
1404
+ "audio",
1405
+ "video",
1406
+ "binary"
1407
+ ]
1408
+ },
1409
+ "extensions": {
1410
+ "type": "array",
1411
+ "items": {
1412
+ "type": "string"
1413
+ }
1414
+ },
1415
+ "maxSize": {
1416
+ "type": "number"
1417
+ },
1418
+ "mimeTypes": {
1419
+ "type": "object",
1420
+ "propertyNames": {
1421
+ "type": "string"
1422
+ },
1423
+ "additionalProperties": {
1424
+ "type": "string"
1425
+ }
1426
+ }
1427
+ },
1428
+ "required": [
1429
+ "type",
1430
+ "extensions"
1431
+ ]
1432
+ }
1433
+ }
1434
+ ]
1435
+ }
1436
+ }
1437
+ },
1438
+ "code": {
1439
+ "type": "object",
1440
+ "properties": {
1441
+ "filesystem": {
1442
+ "anyOf": [
1443
+ {
1444
+ "type": "array",
1445
+ "items": {
1446
+ "type": "string"
1447
+ }
1448
+ },
1449
+ {
1450
+ "type": "string",
1451
+ "enum": [
1452
+ "all",
1453
+ "read",
1454
+ "none"
1455
+ ]
1456
+ }
1457
+ ]
1458
+ },
1459
+ "builtInTools": {
1460
+ "anyOf": [
1461
+ {
1462
+ "type": "array",
1463
+ "items": {
1464
+ "type": "string"
1465
+ }
1466
+ },
1467
+ {
1468
+ "type": "object",
1469
+ "propertyNames": {
1470
+ "type": "string"
1471
+ },
1472
+ "additionalProperties": {
1473
+ "anyOf": [
1474
+ {
1475
+ "type": "boolean"
1476
+ },
1477
+ {
1478
+ "type": "object",
1479
+ "properties": {
1480
+ "enabled": {
1481
+ "type": "boolean"
1482
+ },
1483
+ "command": {
1484
+ "type": "string"
1485
+ },
1486
+ "timeout": {
1487
+ "type": "number"
1488
+ },
1489
+ "maxOutputBytes": {
1490
+ "type": "number"
1491
+ },
1492
+ "allowlist": {
1493
+ "type": "boolean"
1494
+ },
1495
+ "persistAllowlist": {
1496
+ "type": "boolean"
1497
+ },
1498
+ "judge": {
1499
+ "anyOf": [
1500
+ {
1501
+ "type": "boolean"
1502
+ },
1503
+ {
1504
+ "type": "object",
1505
+ "properties": {
1506
+ "enabled": {
1507
+ "type": "boolean"
1508
+ },
1509
+ "autoApproveLow": {
1510
+ "type": "boolean"
1511
+ },
1512
+ "blockHigh": {
1513
+ "type": "boolean"
1514
+ },
1515
+ "model": {
1516
+ "type": "object",
1517
+ "properties": {
1518
+ "type": {
1519
+ "type": "string"
1520
+ },
1521
+ "model": {
1522
+ "type": "string"
1523
+ },
1524
+ "configuration": {
1525
+ "type": "object",
1526
+ "propertyNames": {
1527
+ "type": "string"
1528
+ },
1529
+ "additionalProperties": {}
1530
+ },
1531
+ "apiKeyEnvironmentVariable": {
1532
+ "type": "string"
1533
+ }
1534
+ },
1535
+ "additionalProperties": {}
1536
+ }
1537
+ }
1538
+ }
1539
+ ]
1540
+ },
1541
+ "yolo": {
1542
+ "type": "boolean"
1543
+ },
1544
+ "fileSet": {
1545
+ "type": "string",
1546
+ "enum": [
1547
+ "gitignore",
1548
+ "all"
1549
+ ]
1550
+ }
1551
+ }
1552
+ }
1553
+ ]
1554
+ }
1555
+ }
1556
+ ]
1557
+ },
1558
+ "customTools": {
1559
+ "anyOf": [
1560
+ {
1561
+ "type": "boolean",
1562
+ "const": false
1563
+ },
1564
+ {
1565
+ "type": "object",
1566
+ "propertyNames": {
1567
+ "type": "string"
1568
+ },
1569
+ "additionalProperties": {
1570
+ "type": "object",
1571
+ "properties": {
1572
+ "command": {
1573
+ "type": "string"
1574
+ },
1575
+ "description": {
1576
+ "type": "string"
1577
+ },
1578
+ "parameters": {
1579
+ "type": "object",
1580
+ "propertyNames": {
1581
+ "type": "string"
1582
+ },
1583
+ "additionalProperties": {
1584
+ "type": "object",
1585
+ "properties": {
1586
+ "description": {
1587
+ "type": "string"
1588
+ },
1589
+ "allow": {
1590
+ "type": "array",
1591
+ "items": {
1592
+ "type": "string",
1593
+ "enum": [
1594
+ "absolute-paths",
1595
+ "directory-traversal",
1596
+ "shell-injection",
1597
+ "null-bytes"
1598
+ ]
1599
+ }
1600
+ }
1601
+ },
1602
+ "required": [
1603
+ "description"
1604
+ ]
1605
+ }
1606
+ },
1607
+ "timeout": {
1608
+ "type": "number"
1609
+ }
1610
+ },
1611
+ "required": [
1612
+ "command",
1613
+ "description"
1614
+ ]
1615
+ }
1616
+ }
1617
+ ]
1618
+ },
1619
+ "allowedTools": {
1620
+ "type": "array",
1621
+ "items": {
1622
+ "type": "string"
1623
+ }
1624
+ },
1625
+ "binaryFormats": {
1626
+ "anyOf": [
1627
+ {
1628
+ "type": "boolean",
1629
+ "const": false
1630
+ },
1631
+ {
1632
+ "type": "array",
1633
+ "items": {
1634
+ "type": "object",
1635
+ "properties": {
1636
+ "type": {
1637
+ "type": "string",
1638
+ "enum": [
1639
+ "image",
1640
+ "file",
1641
+ "audio",
1642
+ "video",
1643
+ "binary"
1644
+ ]
1645
+ },
1646
+ "extensions": {
1647
+ "type": "array",
1648
+ "items": {
1649
+ "type": "string"
1650
+ }
1651
+ },
1652
+ "maxSize": {
1653
+ "type": "number"
1654
+ },
1655
+ "mimeTypes": {
1656
+ "type": "object",
1657
+ "propertyNames": {
1658
+ "type": "string"
1659
+ },
1660
+ "additionalProperties": {
1661
+ "type": "string"
1662
+ }
1663
+ }
1664
+ },
1665
+ "required": [
1666
+ "type",
1667
+ "extensions"
1668
+ ]
1669
+ }
1670
+ }
1671
+ ]
1672
+ }
1673
+ }
1674
+ },
1675
+ "exec": {
1676
+ "type": "object",
1677
+ "properties": {
1678
+ "filesystem": {
1679
+ "anyOf": [
1680
+ {
1681
+ "type": "array",
1682
+ "items": {
1683
+ "type": "string"
1684
+ }
1685
+ },
1686
+ {
1687
+ "type": "string",
1688
+ "enum": [
1689
+ "all",
1690
+ "read",
1691
+ "none"
1692
+ ]
1693
+ }
1694
+ ]
1695
+ },
1696
+ "builtInTools": {
1697
+ "anyOf": [
1698
+ {
1699
+ "type": "array",
1700
+ "items": {
1701
+ "type": "string"
1702
+ }
1703
+ },
1704
+ {
1705
+ "type": "object",
1706
+ "propertyNames": {
1707
+ "type": "string"
1708
+ },
1709
+ "additionalProperties": {
1710
+ "anyOf": [
1711
+ {
1712
+ "type": "boolean"
1713
+ },
1714
+ {
1715
+ "type": "object",
1716
+ "properties": {
1717
+ "enabled": {
1718
+ "type": "boolean"
1719
+ },
1720
+ "command": {
1721
+ "type": "string"
1722
+ },
1723
+ "timeout": {
1724
+ "type": "number"
1725
+ },
1726
+ "maxOutputBytes": {
1727
+ "type": "number"
1728
+ },
1729
+ "allowlist": {
1730
+ "type": "boolean"
1731
+ },
1732
+ "persistAllowlist": {
1733
+ "type": "boolean"
1734
+ },
1735
+ "judge": {
1736
+ "anyOf": [
1737
+ {
1738
+ "type": "boolean"
1739
+ },
1740
+ {
1741
+ "type": "object",
1742
+ "properties": {
1743
+ "enabled": {
1744
+ "type": "boolean"
1745
+ },
1746
+ "autoApproveLow": {
1747
+ "type": "boolean"
1748
+ },
1749
+ "blockHigh": {
1750
+ "type": "boolean"
1751
+ },
1752
+ "model": {
1753
+ "type": "object",
1754
+ "properties": {
1755
+ "type": {
1756
+ "type": "string"
1757
+ },
1758
+ "model": {
1759
+ "type": "string"
1760
+ },
1761
+ "configuration": {
1762
+ "type": "object",
1763
+ "propertyNames": {
1764
+ "type": "string"
1765
+ },
1766
+ "additionalProperties": {}
1767
+ },
1768
+ "apiKeyEnvironmentVariable": {
1769
+ "type": "string"
1770
+ }
1771
+ },
1772
+ "additionalProperties": {}
1773
+ }
1774
+ }
1775
+ }
1776
+ ]
1777
+ },
1778
+ "yolo": {
1779
+ "type": "boolean"
1780
+ },
1781
+ "fileSet": {
1782
+ "type": "string",
1783
+ "enum": [
1784
+ "gitignore",
1785
+ "all"
1786
+ ]
1787
+ }
1788
+ }
1789
+ }
1790
+ ]
1791
+ }
1792
+ }
1793
+ ]
1794
+ },
1795
+ "customTools": {
1796
+ "anyOf": [
1797
+ {
1798
+ "type": "boolean",
1799
+ "const": false
1800
+ },
1801
+ {
1802
+ "type": "object",
1803
+ "propertyNames": {
1804
+ "type": "string"
1805
+ },
1806
+ "additionalProperties": {
1807
+ "type": "object",
1808
+ "properties": {
1809
+ "command": {
1810
+ "type": "string"
1811
+ },
1812
+ "description": {
1813
+ "type": "string"
1814
+ },
1815
+ "parameters": {
1816
+ "type": "object",
1817
+ "propertyNames": {
1818
+ "type": "string"
1819
+ },
1820
+ "additionalProperties": {
1821
+ "type": "object",
1822
+ "properties": {
1823
+ "description": {
1824
+ "type": "string"
1825
+ },
1826
+ "allow": {
1827
+ "type": "array",
1828
+ "items": {
1829
+ "type": "string",
1830
+ "enum": [
1831
+ "absolute-paths",
1832
+ "directory-traversal",
1833
+ "shell-injection",
1834
+ "null-bytes"
1835
+ ]
1836
+ }
1837
+ }
1838
+ },
1839
+ "required": [
1840
+ "description"
1841
+ ]
1842
+ }
1843
+ },
1844
+ "timeout": {
1845
+ "type": "number"
1846
+ }
1847
+ },
1848
+ "required": [
1849
+ "command",
1850
+ "description"
1851
+ ]
1852
+ }
1853
+ }
1854
+ ]
1855
+ },
1856
+ "allowedTools": {
1857
+ "type": "array",
1858
+ "items": {
1859
+ "type": "string"
1860
+ }
1861
+ },
1862
+ "binaryFormats": {
1863
+ "anyOf": [
1864
+ {
1865
+ "type": "boolean",
1866
+ "const": false
1867
+ },
1868
+ {
1869
+ "type": "array",
1870
+ "items": {
1871
+ "type": "object",
1872
+ "properties": {
1873
+ "type": {
1874
+ "type": "string",
1875
+ "enum": [
1876
+ "image",
1877
+ "file",
1878
+ "audio",
1879
+ "video",
1880
+ "binary"
1881
+ ]
1882
+ },
1883
+ "extensions": {
1884
+ "type": "array",
1885
+ "items": {
1886
+ "type": "string"
1887
+ }
1888
+ },
1889
+ "maxSize": {
1890
+ "type": "number"
1891
+ },
1892
+ "mimeTypes": {
1893
+ "type": "object",
1894
+ "propertyNames": {
1895
+ "type": "string"
1896
+ },
1897
+ "additionalProperties": {
1898
+ "type": "string"
1899
+ }
1900
+ }
1901
+ },
1902
+ "required": [
1903
+ "type",
1904
+ "extensions"
1905
+ ]
1906
+ }
1907
+ }
1908
+ ]
1909
+ }
1910
+ }
1911
+ },
1912
+ "api": {
1913
+ "type": "object",
1914
+ "properties": {
1915
+ "filesystem": {
1916
+ "anyOf": [
1917
+ {
1918
+ "type": "array",
1919
+ "items": {
1920
+ "type": "string"
1921
+ }
1922
+ },
1923
+ {
1924
+ "type": "string",
1925
+ "enum": [
1926
+ "all",
1927
+ "read",
1928
+ "none"
1929
+ ]
1930
+ }
1931
+ ]
1932
+ },
1933
+ "builtInTools": {
1934
+ "anyOf": [
1935
+ {
1936
+ "type": "array",
1937
+ "items": {
1938
+ "type": "string"
1939
+ }
1940
+ },
1941
+ {
1942
+ "type": "object",
1943
+ "propertyNames": {
1944
+ "type": "string"
1945
+ },
1946
+ "additionalProperties": {
1947
+ "anyOf": [
1948
+ {
1949
+ "type": "boolean"
1950
+ },
1951
+ {
1952
+ "type": "object",
1953
+ "properties": {
1954
+ "enabled": {
1955
+ "type": "boolean"
1956
+ },
1957
+ "command": {
1958
+ "type": "string"
1959
+ },
1960
+ "timeout": {
1961
+ "type": "number"
1962
+ },
1963
+ "maxOutputBytes": {
1964
+ "type": "number"
1965
+ },
1966
+ "allowlist": {
1967
+ "type": "boolean"
1968
+ },
1969
+ "persistAllowlist": {
1970
+ "type": "boolean"
1971
+ },
1972
+ "judge": {
1973
+ "anyOf": [
1974
+ {
1975
+ "type": "boolean"
1976
+ },
1977
+ {
1978
+ "type": "object",
1979
+ "properties": {
1980
+ "enabled": {
1981
+ "type": "boolean"
1982
+ },
1983
+ "autoApproveLow": {
1984
+ "type": "boolean"
1985
+ },
1986
+ "blockHigh": {
1987
+ "type": "boolean"
1988
+ },
1989
+ "model": {
1990
+ "type": "object",
1991
+ "properties": {
1992
+ "type": {
1993
+ "type": "string"
1994
+ },
1995
+ "model": {
1996
+ "type": "string"
1997
+ },
1998
+ "configuration": {
1999
+ "type": "object",
2000
+ "propertyNames": {
2001
+ "type": "string"
2002
+ },
2003
+ "additionalProperties": {}
2004
+ },
2005
+ "apiKeyEnvironmentVariable": {
2006
+ "type": "string"
2007
+ }
2008
+ },
2009
+ "additionalProperties": {}
2010
+ }
2011
+ }
2012
+ }
2013
+ ]
2014
+ },
2015
+ "yolo": {
2016
+ "type": "boolean"
2017
+ },
2018
+ "fileSet": {
2019
+ "type": "string",
2020
+ "enum": [
2021
+ "gitignore",
2022
+ "all"
2023
+ ]
2024
+ }
2025
+ }
2026
+ }
2027
+ ]
2028
+ }
2029
+ }
2030
+ ]
2031
+ },
2032
+ "port": {
2033
+ "type": "number"
2034
+ },
2035
+ "cors": {
2036
+ "type": "object",
2037
+ "properties": {
2038
+ "allowOrigin": {
2039
+ "type": "string"
2040
+ },
2041
+ "allowMethods": {
2042
+ "type": "string"
2043
+ },
2044
+ "allowHeaders": {
2045
+ "type": "string"
2046
+ }
2047
+ }
2048
+ }
2049
+ }
2050
+ }
2051
+ }
2052
+ },
2053
+ "commit": {
2054
+ "type": "object",
2055
+ "properties": {
2056
+ "coAuthor": {
2057
+ "type": "object",
2058
+ "properties": {
2059
+ "name": {
2060
+ "type": "string"
2061
+ },
2062
+ "email": {
2063
+ "type": "string"
2064
+ }
2065
+ }
2066
+ }
2067
+ }
2068
+ },
2069
+ "modelDisplayName": {
2070
+ "type": "string"
2071
+ },
2072
+ "injectModelContext": {
2073
+ "type": "boolean"
2074
+ },
2075
+ "debugDump": {
2076
+ "type": "object",
2077
+ "properties": {
2078
+ "redact": {
2079
+ "type": "boolean"
2080
+ }
2081
+ }
2082
+ },
2083
+ "allowDirs": {
2084
+ "type": "array",
2085
+ "items": {
2086
+ "type": "string"
2087
+ }
2088
+ },
2089
+ "askWriteMode": {
2090
+ "type": "boolean"
2091
+ },
2092
+ "output": {
2093
+ "type": "object",
2094
+ "properties": {
2095
+ "header": {
2096
+ "type": "boolean"
2097
+ }
2098
+ }
2099
+ },
2100
+ "reporters": {
2101
+ "type": "object",
2102
+ "propertyNames": {
2103
+ "type": "string"
2104
+ },
2105
+ "additionalProperties": {
2106
+ "type": "string"
2107
+ }
2108
+ }
2109
+ },
2110
+ "additionalProperties": {}
2111
+ }