conflux-ai 0.1.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,572 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/ConfluxConfig",
4
+ "definitions": {
5
+ "ConfluxConfig": {
6
+ "type": "object",
7
+ "properties": {
8
+ "version": {
9
+ "type": "number",
10
+ "const": 1,
11
+ "description": "Config schema version (must be 1)"
12
+ },
13
+ "instructions": {
14
+ "type": "object",
15
+ "properties": {
16
+ "primary": {
17
+ "type": "string",
18
+ "default": "AGENTS.md",
19
+ "description": "Primary instruction file name"
20
+ },
21
+ "references": {
22
+ "type": "array",
23
+ "items": {
24
+ "type": "object",
25
+ "properties": {
26
+ "path": {
27
+ "type": "string",
28
+ "description": "Path to the reference document"
29
+ },
30
+ "description": {
31
+ "type": "string",
32
+ "description": "What this document covers"
33
+ }
34
+ },
35
+ "required": [
36
+ "path"
37
+ ],
38
+ "additionalProperties": false
39
+ },
40
+ "description": "Reference documents to include"
41
+ },
42
+ "rules": {
43
+ "type": "array",
44
+ "items": {
45
+ "type": "object",
46
+ "properties": {
47
+ "path": {
48
+ "type": "string",
49
+ "description": "Path to the rule file (markdown)"
50
+ },
51
+ "description": {
52
+ "type": "string",
53
+ "description": "What this rule covers"
54
+ },
55
+ "globs": {
56
+ "type": "array",
57
+ "items": {
58
+ "type": "string"
59
+ },
60
+ "description": "File globs this rule applies to"
61
+ },
62
+ "alwaysApply": {
63
+ "type": "boolean",
64
+ "default": true,
65
+ "description": "Always apply regardless of glob"
66
+ }
67
+ },
68
+ "required": [
69
+ "path"
70
+ ],
71
+ "additionalProperties": false
72
+ },
73
+ "description": "Granular rule files"
74
+ }
75
+ },
76
+ "additionalProperties": false,
77
+ "description": "Project instructions for AI agents"
78
+ },
79
+ "hooks": {
80
+ "type": "object",
81
+ "additionalProperties": {
82
+ "type": "array",
83
+ "items": {
84
+ "type": "object",
85
+ "properties": {
86
+ "command": {
87
+ "type": "string",
88
+ "description": "Command to execute"
89
+ },
90
+ "timeout": {
91
+ "type": "integer",
92
+ "exclusiveMinimum": 0,
93
+ "description": "Timeout in seconds"
94
+ },
95
+ "description": {
96
+ "type": "string",
97
+ "description": "What this hook does"
98
+ },
99
+ "matcher": {
100
+ "type": "string",
101
+ "description": "Regex matcher (e.g., tool name pattern)"
102
+ }
103
+ },
104
+ "required": [
105
+ "command"
106
+ ],
107
+ "additionalProperties": false
108
+ }
109
+ },
110
+ "description": "Lifecycle event hooks"
111
+ },
112
+ "mcp": {
113
+ "type": "object",
114
+ "properties": {
115
+ "env": {
116
+ "type": "object",
117
+ "additionalProperties": {
118
+ "type": "string"
119
+ },
120
+ "description": "Global env vars for all MCP servers"
121
+ },
122
+ "servers": {
123
+ "type": "object",
124
+ "additionalProperties": {
125
+ "type": "object",
126
+ "properties": {
127
+ "command": {
128
+ "type": "string",
129
+ "description": "Command to run the MCP server"
130
+ },
131
+ "args": {
132
+ "type": "array",
133
+ "items": {
134
+ "type": "string"
135
+ },
136
+ "description": "Command arguments"
137
+ },
138
+ "env": {
139
+ "type": "object",
140
+ "additionalProperties": {
141
+ "type": "string"
142
+ },
143
+ "description": "Environment variables"
144
+ }
145
+ },
146
+ "required": [
147
+ "command"
148
+ ],
149
+ "additionalProperties": false
150
+ },
151
+ "description": "MCP server configurations"
152
+ }
153
+ },
154
+ "required": [
155
+ "servers"
156
+ ],
157
+ "additionalProperties": false,
158
+ "description": "MCP server configurations"
159
+ },
160
+ "permissions": {
161
+ "type": "object",
162
+ "properties": {
163
+ "default": {
164
+ "type": "string",
165
+ "enum": [
166
+ "prompt",
167
+ "allow",
168
+ "deny"
169
+ ],
170
+ "default": "prompt",
171
+ "description": "Default permission mode"
172
+ },
173
+ "allow": {
174
+ "type": "array",
175
+ "items": {
176
+ "type": "string"
177
+ },
178
+ "description": "Globally allowed operations"
179
+ },
180
+ "deny": {
181
+ "type": "array",
182
+ "items": {
183
+ "type": "string"
184
+ },
185
+ "description": "Globally denied operations"
186
+ }
187
+ },
188
+ "additionalProperties": false,
189
+ "description": "Permission rules"
190
+ },
191
+ "skills": {
192
+ "type": "object",
193
+ "properties": {
194
+ "local": {
195
+ "type": "array",
196
+ "items": {
197
+ "type": "object",
198
+ "properties": {
199
+ "name": {
200
+ "type": "string",
201
+ "description": "Skill name (invoked by this name)"
202
+ },
203
+ "path": {
204
+ "type": "string",
205
+ "description": "Path to SKILL.md file"
206
+ },
207
+ "description": {
208
+ "type": "string",
209
+ "description": "What this skill does"
210
+ },
211
+ "tags": {
212
+ "type": "array",
213
+ "items": {
214
+ "type": "string"
215
+ },
216
+ "description": "Tags for categorization"
217
+ }
218
+ },
219
+ "required": [
220
+ "name",
221
+ "path"
222
+ ],
223
+ "additionalProperties": false
224
+ },
225
+ "description": "Locally defined skills"
226
+ },
227
+ "external": {
228
+ "type": "array",
229
+ "items": {
230
+ "type": "object",
231
+ "properties": {
232
+ "name": {
233
+ "type": "string",
234
+ "description": "Skill name"
235
+ },
236
+ "source": {
237
+ "type": "string",
238
+ "description": "Source repo or package (e.g., 'org/repo')"
239
+ },
240
+ "sourceType": {
241
+ "type": "string",
242
+ "enum": [
243
+ "github",
244
+ "npm",
245
+ "url"
246
+ ],
247
+ "description": "Type of source"
248
+ },
249
+ "skillPath": {
250
+ "type": "string",
251
+ "description": "Path to the skill within the source"
252
+ },
253
+ "description": {
254
+ "type": "string"
255
+ }
256
+ },
257
+ "required": [
258
+ "name",
259
+ "source",
260
+ "sourceType",
261
+ "skillPath"
262
+ ],
263
+ "additionalProperties": false
264
+ },
265
+ "description": "Skills from external sources"
266
+ }
267
+ },
268
+ "additionalProperties": false,
269
+ "description": "Reusable skill/command definitions"
270
+ },
271
+ "providers": {
272
+ "type": "object",
273
+ "properties": {
274
+ "enabled": {
275
+ "type": "array",
276
+ "items": {
277
+ "type": "string"
278
+ },
279
+ "description": "Providers to enable (omitted = auto-detect)"
280
+ },
281
+ "overrides": {
282
+ "type": "object",
283
+ "additionalProperties": {
284
+ "type": "object",
285
+ "properties": {
286
+ "instructions": {
287
+ "type": "object",
288
+ "properties": {
289
+ "primary": {
290
+ "type": "string",
291
+ "default": "AGENTS.md",
292
+ "description": "Primary instruction file name"
293
+ },
294
+ "references": {
295
+ "type": "array",
296
+ "items": {
297
+ "type": "object",
298
+ "properties": {
299
+ "path": {
300
+ "type": "string",
301
+ "description": "Path to the reference document"
302
+ },
303
+ "description": {
304
+ "type": "string",
305
+ "description": "What this document covers"
306
+ }
307
+ },
308
+ "required": [
309
+ "path"
310
+ ],
311
+ "additionalProperties": false
312
+ },
313
+ "description": "Reference documents to include"
314
+ },
315
+ "rules": {
316
+ "type": "array",
317
+ "items": {
318
+ "type": "object",
319
+ "properties": {
320
+ "path": {
321
+ "type": "string",
322
+ "description": "Path to the rule file (markdown)"
323
+ },
324
+ "description": {
325
+ "type": "string",
326
+ "description": "What this rule covers"
327
+ },
328
+ "globs": {
329
+ "type": "array",
330
+ "items": {
331
+ "type": "string"
332
+ },
333
+ "description": "File globs this rule applies to"
334
+ },
335
+ "alwaysApply": {
336
+ "type": "boolean",
337
+ "default": true,
338
+ "description": "Always apply regardless of glob"
339
+ }
340
+ },
341
+ "required": [
342
+ "path"
343
+ ],
344
+ "additionalProperties": false
345
+ },
346
+ "description": "Granular rule files"
347
+ }
348
+ },
349
+ "additionalProperties": false
350
+ },
351
+ "hooks": {
352
+ "type": "object",
353
+ "additionalProperties": {
354
+ "type": "array",
355
+ "items": {
356
+ "type": "object",
357
+ "properties": {
358
+ "command": {
359
+ "type": "string",
360
+ "description": "Command to execute"
361
+ },
362
+ "timeout": {
363
+ "type": "integer",
364
+ "exclusiveMinimum": 0,
365
+ "description": "Timeout in seconds"
366
+ },
367
+ "description": {
368
+ "type": "string",
369
+ "description": "What this hook does"
370
+ },
371
+ "matcher": {
372
+ "type": "string",
373
+ "description": "Regex matcher (e.g., tool name pattern)"
374
+ }
375
+ },
376
+ "required": [
377
+ "command"
378
+ ],
379
+ "additionalProperties": false
380
+ }
381
+ },
382
+ "description": "Lifecycle event hooks keyed by event name"
383
+ },
384
+ "mcp": {
385
+ "type": "object",
386
+ "properties": {
387
+ "env": {
388
+ "type": "object",
389
+ "additionalProperties": {
390
+ "type": "string"
391
+ },
392
+ "description": "Global env vars for all MCP servers"
393
+ },
394
+ "servers": {
395
+ "type": "object",
396
+ "additionalProperties": {
397
+ "type": "object",
398
+ "properties": {
399
+ "command": {
400
+ "type": "string",
401
+ "description": "Command to run the MCP server"
402
+ },
403
+ "args": {
404
+ "type": "array",
405
+ "items": {
406
+ "type": "string"
407
+ },
408
+ "description": "Command arguments"
409
+ },
410
+ "env": {
411
+ "type": "object",
412
+ "additionalProperties": {
413
+ "type": "string"
414
+ },
415
+ "description": "Environment variables"
416
+ }
417
+ },
418
+ "required": [
419
+ "command"
420
+ ],
421
+ "additionalProperties": false
422
+ },
423
+ "description": "MCP server configurations"
424
+ }
425
+ },
426
+ "additionalProperties": false
427
+ },
428
+ "permissions": {
429
+ "type": "object",
430
+ "properties": {
431
+ "default": {
432
+ "type": "string",
433
+ "enum": [
434
+ "prompt",
435
+ "allow",
436
+ "deny"
437
+ ],
438
+ "default": "prompt",
439
+ "description": "Default permission mode"
440
+ },
441
+ "allow": {
442
+ "type": "array",
443
+ "items": {
444
+ "type": "string"
445
+ },
446
+ "description": "Globally allowed operations"
447
+ },
448
+ "deny": {
449
+ "type": "array",
450
+ "items": {
451
+ "type": "string"
452
+ },
453
+ "description": "Globally denied operations"
454
+ }
455
+ },
456
+ "additionalProperties": false
457
+ },
458
+ "skills": {
459
+ "type": "object",
460
+ "properties": {
461
+ "local": {
462
+ "type": "array",
463
+ "items": {
464
+ "type": "object",
465
+ "properties": {
466
+ "name": {
467
+ "type": "string",
468
+ "description": "Skill name (invoked by this name)"
469
+ },
470
+ "path": {
471
+ "type": "string",
472
+ "description": "Path to SKILL.md file"
473
+ },
474
+ "description": {
475
+ "type": "string",
476
+ "description": "What this skill does"
477
+ },
478
+ "tags": {
479
+ "type": "array",
480
+ "items": {
481
+ "type": "string"
482
+ },
483
+ "description": "Tags for categorization"
484
+ }
485
+ },
486
+ "required": [
487
+ "name",
488
+ "path"
489
+ ],
490
+ "additionalProperties": false
491
+ },
492
+ "description": "Locally defined skills"
493
+ },
494
+ "external": {
495
+ "type": "array",
496
+ "items": {
497
+ "type": "object",
498
+ "properties": {
499
+ "name": {
500
+ "type": "string",
501
+ "description": "Skill name"
502
+ },
503
+ "source": {
504
+ "type": "string",
505
+ "description": "Source repo or package (e.g., 'org/repo')"
506
+ },
507
+ "sourceType": {
508
+ "type": "string",
509
+ "enum": [
510
+ "github",
511
+ "npm",
512
+ "url"
513
+ ],
514
+ "description": "Type of source"
515
+ },
516
+ "skillPath": {
517
+ "type": "string",
518
+ "description": "Path to the skill within the source"
519
+ },
520
+ "description": {
521
+ "type": "string"
522
+ }
523
+ },
524
+ "required": [
525
+ "name",
526
+ "source",
527
+ "sourceType",
528
+ "skillPath"
529
+ ],
530
+ "additionalProperties": false
531
+ },
532
+ "description": "Skills from external sources"
533
+ }
534
+ },
535
+ "additionalProperties": false
536
+ }
537
+ },
538
+ "additionalProperties": false
539
+ },
540
+ "description": "Per-provider overrides"
541
+ }
542
+ },
543
+ "additionalProperties": false,
544
+ "description": "Provider enablement and overrides"
545
+ },
546
+ "meta": {
547
+ "type": "object",
548
+ "properties": {
549
+ "created": {
550
+ "type": "string",
551
+ "description": "Creation date"
552
+ },
553
+ "schema": {
554
+ "type": "string",
555
+ "description": "Schema URL for validation"
556
+ },
557
+ "description": {
558
+ "type": "string",
559
+ "description": "Project description"
560
+ }
561
+ },
562
+ "additionalProperties": false,
563
+ "description": "Metadata"
564
+ }
565
+ },
566
+ "required": [
567
+ "version"
568
+ ],
569
+ "additionalProperties": false
570
+ }
571
+ }
572
+ }