This repository was archived by the owner on Nov 19, 2026. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathplugin.schema.json
More file actions
1352 lines (1352 loc) · 45.9 KB
/
Copy pathplugin.schema.json
File metadata and controls
1352 lines (1352 loc) · 45.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://weivel.github.io/model/plugin.schema.json",
"title": "weivel plugin manifest",
"description": "The single machine-readable description of a plugin, whichever application it targets.",
"type": "object",
"properties": {
"$schema": {
"description": "Pointer at the published manifest schema, for an editor's completion and validation.",
"type": "string"
},
"importName": {
"description": "The name other plugins import this plugin by. It is fixed by the plugin, and its identity as a repository is supplied from outside the manifest.",
"type": "string",
"pattern": "^(?!package(?![\\s\\S]))(?!(?:con|prn|aux|nul|com[1-9]|lpt[1-9])(?:[\\.]|(?![\\s\\S])))[a-z0-9]+([-.][a-z0-9]+)*(?![\\s\\S])",
"fix": "use lowercase words joined by single hyphens or dots, for example \"config-ledger\" or \"api.http\", and not package, which would replace the module marker a deploy writes, nor a Windows reserved name, with or without a dot after it (con, prn, aux, nul, com1 to com9, lpt1 to lpt9)"
},
"api": {
"description": "The lowest API major version this plugin needs. A floor, not a build tag.",
"type": "integer",
"minimum": 1,
"fix": "set \"api\" to the lowest API major version this plugin needs, for example 1"
},
"entry": {
"description": "The built module a host imports. Required once capabilities are declared.",
"type": "string",
"fix": "point \"entry\" at the built module a host imports, inside the repo, for example \"dist/index.js\", with no leading slash, drive letter, control character or ..",
"pattern": "^(?![\\\\/])(?![A-Za-z]:)(?![\\s\\S]*[\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029])(?!(?:[\\s\\S]*[\\\\/])?\\.\\.(?:[\\\\/]|(?![\\s\\S])))"
},
"displayName": {
"description": "The name a surface shows instead of the id.",
"type": "string"
},
"icon": {
"description": "Path to a square-viewBox SVG mark, relative to the repo root.",
"type": "string"
},
"icons": {
"description": "Further marks this repo ships, each keyed by the id of the thing it belongs to.",
"type": "object",
"additionalProperties": {
"description": "Path to a square-viewBox SVG mark, relative to the repo root.",
"type": "string"
}
},
"capabilities": {
"description": "The host-facing contract: the abilities this plugin provides at activation, and the ones it asks to see the implementations of.",
"type": "object",
"properties": {
"provides": {
"description": "Capability ids this plugin provides at activation.",
"type": "array",
"items": {
"type": "string"
},
"fix": "list the capability ids this plugin provides as strings, for example [\"provider\", \"screens\"]",
"uniqueItems": true
},
"consumes": {
"description": "Capability ids this plugin asks to see the verified implementations of. An empty answer means none right now.",
"type": "array",
"items": {
"type": "string"
},
"fix": "list the capability ids this plugin consumes as strings, for example [\"provider\"]",
"uniqueItems": true
}
},
"fix": "write capabilities as an object, for example { \"provides\": [\"provider\"], \"consumes\": [\"screens\"] }; a flat list of ids is the old form, move it under \"provides\""
},
"targets": {
"description": "The spisor applications this artifact is for. Absent means every application.",
"type": "array",
"items": {
"type": "string"
},
"fix": "list the application ids this is built for, for example [\"forebay\"], or remove \"targets\" to mean every application"
},
"kind": {
"description": "What this manifest describes. Absent means a plugin; a loader is a host.",
"type": "string",
"enum": [
"plugin",
"host"
],
"fix": "set \"kind\" to \"plugin\" or \"host\", or remove it to mean a plugin"
},
"installMethod": {
"description": "The install method this listing is a provider for, for example npm. Absent means it provides none.",
"type": "string",
"minLength": 1,
"fix": "set \"installMethod\" to the id of the package manager this listing provides, for example \"npm\""
},
"packages": {
"description": "The package this item is under each install method, keyed by method id.",
"type": "object",
"additionalProperties": {
"description": "The package name under one method, or the name with that method's options.",
"anyOf": [
{
"type": "string"
},
{
"description": "A package name with the options its method takes, for example a registry or a tap.",
"type": "object",
"properties": {
"name": {
"description": "The package name under this method.",
"type": "string"
},
"options": {
"description": "Method-specific options, which only that method's provider reads.",
"type": "object"
}
},
"required": [
"name"
]
}
],
"fix": "write the package as a name string, for example \"@scope/tool\", or an object carrying \"name\" and optionally \"options\""
},
"fix": "map each install method id to a package name string, or to an object carrying \"name\" and optionally \"options\", for example {\"npm\": \"@scope/tool\"}"
},
"pathCommands": {
"description": "The executables this host puts on the user's PATH, not the in-application slash commands, which are \"commands\".",
"type": "object",
"properties": {
"requested": {
"description": "The command names this host asks for, which a name already held may turn into a fallback.",
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,63}(?![\\s\\S])",
"fix": "name each command as one portable file name: a letter or digit, then letters, digits, \".\", \"_\" or \"-\", at most 64 characters"
},
"uniqueItems": true
},
"minimum": {
"description": "How many of its commands this host must keep: 1 means it cannot be left with none, 0 means it can. Absent means 0.",
"type": "integer",
"minimum": 0,
"maximum": 1,
"fix": "set \"minimum\" to 0 when the host works without a command on PATH, or 1 when it needs one"
}
},
"required": [
"requested"
],
"fix": "declare the PATH commands as {\"requested\": [\"name\"], \"minimum\": 0 or 1}; slash commands go in \"commands\" instead"
},
"methods": {
"description": "The install methods this listing supports, by method id.",
"type": "array",
"items": {
"type": "string"
},
"fix": "list install method ids as strings, for example [\"npm\", \"homebrew\"]",
"uniqueItems": true
},
"services": {
"description": "The inter-plugin contract: what this plugin offers other plugins, and what it asks of them.",
"type": "object",
"properties": {
"provides": {
"description": "Service ids this plugin registers, each namespaced by its own id or a well-known bare id.",
"type": "array",
"items": {
"anyOf": [
{
"type": "string"
},
{
"description": "One service this plugin registers, with what it advertises.",
"type": "object",
"properties": {
"id": {
"description": "The service id this plugin registers.",
"type": "string"
},
"attributes": {
"description": "What this service claims, keyed by attribute name, until the live service reports its own.",
"type": "object",
"additionalProperties": {
"description": "One advertised value, in the units its attribute name names.",
"type": "number"
}
}
},
"required": [
"id"
]
}
],
"fix": "write the service id as a string, for example \"identity:accounts\", or an object carrying \"id\" and \"attributes\""
},
"fix": "list service ids as strings, for example [\"identity:accounts\"], or objects carrying \"id\" and \"attributes\""
},
"consumes": {
"description": "Service ids this plugin asks for. A bare string asks for it optionally, which is what every manifest written before this object form meant.",
"type": "array",
"items": {
"anyOf": [
{
"type": "string"
},
{
"description": "One service this plugin asks for, and what its absence or its shortfall costs.",
"type": "object",
"properties": {
"id": {
"description": "The service id this plugin asks for.",
"type": "string"
},
"provider": {
"description": "The repository identity of the plugin this plugin takes the service from. Absent means any provider of the service id.",
"type": "string",
"pattern": "^(local:[^/\\s]+|[a-z][a-z0-9-]*(@[a-z0-9.-]+)?:[0-9]+)(/(?!\\.{1,2}(/|(?![\\s\\S])))[a-z0-9._-]+)*(?![\\s\\S])",
"fix": "write the provider as a repository id, for example \"github:123\" or \"gitea@git.example.com:12/runtime\""
},
"optional": {
"description": "Whether this plugin still starts when nothing provides the service. Absent means true, which is what a bare string means.",
"type": "boolean"
},
"degradable": {
"description": "Whether this plugin accepts a service that never satisfies its constraints once the budget is spent. Absent means false, and it never excuses an absence.",
"type": "boolean"
},
"constraints": {
"description": "What this plugin needs of the service, keyed by constraint name, compared against what the service advertises.",
"type": "object",
"additionalProperties": {
"description": "One required value, in the units its constraint name names.",
"type": "number"
}
}
},
"required": [
"id"
]
}
],
"fix": "write the service id as a string, for example \"accounts\", or an object carrying \"id\" and what its absence costs"
},
"fix": "list service ids as strings, for example [\"accounts\"], or objects carrying \"id\" and what its absence costs"
}
}
},
"commands": {
"description": "Slash commands this plugin contributes, which a host deploys without importing it.",
"type": "array",
"items": {
"description": "One slash command this plugin contributes.",
"type": "object",
"properties": {
"name": {
"description": "The command's name, which is also the file it is written to.",
"type": "string"
},
"description": {
"description": "What a command picker shows beside the name.",
"type": "string"
},
"argumentHint": {
"description": "The argument shape a picker hints at, such as \"list | get <key>\".",
"type": "string"
},
"body": {
"description": "Markdown the model is shown, after any shell output.",
"type": "string"
},
"shell": {
"description": "A shell line run before the body, which may use $ARGUMENTS and {{BUNDLE}}.",
"type": "string"
}
},
"required": [
"name",
"description"
]
}
},
"config": {
"description": "This plugin's settings as it ships them.",
"type": "object",
"properties": {
"name": {
"description": "The file these settings live in, config/<name>.json, when that is not the plugin's id.",
"type": "string"
},
"defaults": {
"description": "Every setting this plugin has, and what it is worth until a home changes it.",
"type": "object"
}
},
"required": [
"defaults"
]
},
"data": {
"description": "Where this plugin keeps state that is not named after it.",
"type": "object",
"properties": {
"paths": {
"description": "Paths this plugin writes to, relative to the home it runs in.",
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"paths"
]
},
"dependencies": {
"description": "The plugins this plugin needs installed beside it, each named by the import name it is imported by and located by a repository id or an owner/name.",
"type": "array",
"items": {
"description": "One plugin this plugin needs, named by exactly one of id or name.",
"type": "object",
"properties": {
"importName": {
"description": "The name this plugin imports the dependency by.",
"type": "string"
},
"id": {
"description": "The repository identity of the dependency, which survives a rename.",
"type": "string",
"pattern": "^(local:[^/\\s]+|[a-z][a-z0-9-]*(@[a-z0-9.-]+)?:[0-9]+)(/(?!\\.{1,2}(/|(?![\\s\\S])))[a-z0-9._-]+)*(?![\\s\\S])",
"fix": "write the dependency id as a repository id, for example \"github:123\" or \"gitea@git.example.com:12/runtime\""
},
"name": {
"description": "The owner and name of the dependency's repository, for a repository whose id is not known. A name can be taken by someone else, so the host warns about it.",
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*/(?!\\.{1,2}(?![\\s\\S]))[A-Za-z0-9._-]+(?![\\s\\S])",
"fix": "write the dependency name as owner/name, for example \"spisor/runtime\"; a dependency carries an id or a name, never both"
},
"commit": {
"description": "The commit the dependency is pinned to.",
"type": "string"
},
"sha256": {
"description": "The SHA-256 digest the dependency's artifact must match.",
"type": "string"
}
},
"required": [
"importName"
],
"if": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string"
}
}
},
"then": {
"type": "object",
"properties": {
"name": {
"not": {}
}
}
},
"else": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
}
}
}
},
"fix": "list each dependency as an object carrying \"importName\" and exactly one of \"id\" or \"name\""
},
"permissions": {
"description": "Declared permissions, surfaced at install and in dashboards.",
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
},
"lifecycle": {
"description": "Which optional lifecycle hooks the entry module exports.",
"type": "object",
"properties": {
"install": {
"description": "The entry exports install(ctx), run once after first deploy.",
"type": "boolean"
},
"repair": {
"description": "The entry exports repair(ctx), run on demand from a host.",
"type": "boolean"
}
}
},
"publish": {
"description": "How the repo is published, to npm and as Java release assets.",
"type": "object",
"properties": {
"scopedOnly": {
"description": "Publish only as @intisy-ai/<name>, because the unscoped name is unavailable.",
"type": "boolean"
},
"jarModule": {
"description": "The Gradle modules whose jars ship as release assets, each named by its own classifier.",
"type": "array",
"items": {
"type": "string"
}
},
"generatedReadme": {
"description": "The README is rendered at build time, so the release promotes it rather than testing it.",
"type": "boolean"
},
"jarPretest": {
"description": "Run the Gradle build before the tests, because a test needs its jar installed first.",
"type": "boolean"
}
}
},
"repo": {
"description": "Repository metadata: the GitHub description and topic set are derived from it.",
"type": "object",
"properties": {
"role": {
"description": "The role phrase, capitalized, without the fixed \"for the forebay AI-proxy ecosystem.\" suffix.",
"type": "string"
},
"category": {
"description": "The single category topic, for example core-library or ai-provider.",
"type": "string"
},
"domains": {
"description": "Domain topics, for example claude or gemini.",
"type": "array",
"items": {
"type": "string"
}
},
"tech": {
"description": "The tech topics, for example typescript, java or svelte.",
"type": "array",
"items": {
"type": "string"
}
},
"topics": {
"description": "Topics this repo needs that no other rule derives, for example github-actions.",
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"role",
"category",
"tech"
]
},
"marketplace": {
"description": "What this plugin contributes to a host's catalog of installable things.",
"type": "object",
"properties": {
"categories": {
"description": "Categories this plugin adds.",
"type": "array",
"items": {
"description": "One category a plugin adds to a host's catalog of installable things.",
"type": "object",
"properties": {
"id": {
"description": "The category's id, unique across every plugin declaring one.",
"type": "string"
},
"label": {
"description": "The name a surface shows. Absent means the id is shown.",
"type": "string"
},
"match": {
"description": "Which entries this category holds.",
"type": "object",
"properties": {
"topics": {
"description": "Repository topics an entry must carry.",
"type": "array",
"items": {
"type": "string"
}
},
"kind": {
"description": "The catalog kind an entry must be, as the reading host names its kinds.",
"type": "string"
}
}
}
},
"required": [
"id",
"match"
]
}
}
},
"required": [
"categories"
]
},
"settings": {
"$ref": "#/definitions/uiSettings"
},
"actions": {
"description": "Operations a host offers the user for this plugin, each a call into one of its own services.",
"type": "object",
"propertyNames": {
"pattern": "^[a-z][A-Za-z0-9]*(?![\\s\\S])",
"fix": "start an action id with a lowercase letter, then letters and digits only, for example \"refresh\""
},
"additionalProperties": {
"description": "One action: what a host labels it and which service method it calls.",
"type": "object",
"properties": {
"label": {
"description": "The text a host shows on the control.",
"type": "string"
},
"call": {
"$ref": "#/definitions/uiBinding"
},
"confirm": {
"description": "A question a host asks before running the action. Absent means it runs at once.",
"type": "string"
},
"input": {
"$ref": "#/definitions/uiSettings"
},
"tone": {
"$ref": "#/definitions/uiTone"
}
},
"required": [
"label",
"call"
],
"fix": "write the action as an object carrying \"label\" and \"call\", for example {\"label\": \"Refresh\", \"call\": {\"service\": \"demo:screens\", \"method\": \"refresh\"}}"
},
"fix": "map each action id to an object carrying \"label\" and \"call\""
},
"views": {
"description": "Screens a host draws for this plugin, each a flat list of nodes that name their parent.",
"type": "object",
"propertyNames": {
"pattern": "^[a-z][A-Za-z0-9]*(?![\\s\\S])",
"fix": "start a view id with a lowercase letter, then letters and digits only, for example \"screens\""
},
"additionalProperties": {
"description": "One view: a title and the nodes that make it up.",
"type": "object",
"properties": {
"title": {
"description": "The name a host shows for the view.",
"type": "string"
},
"nodes": {
"description": "The view's nodes as a flat list; a node's \"parent\" names the node it sits under, which must come earlier in the list.",
"type": "array",
"minItems": 1,
"items": {
"$ref": "#/definitions/uiNode"
},
"fix": "list at least one node, each an object carrying \"id\" and \"component\""
}
},
"required": [
"title",
"nodes"
],
"fix": "write the view as an object carrying \"title\" and a non-empty \"nodes\" list"
},
"fix": "map each view id to an object carrying \"title\" and \"nodes\""
},
"app": {
"$ref": "#/definitions/appDeclaration"
}
},
"required": [
"importName",
"api"
],
"if": {
"type": "object",
"required": [
"capabilities"
],
"properties": {
"capabilities": {
"type": "object",
"required": [
"provides"
],
"properties": {
"provides": {
"type": "array",
"minItems": 1
}
}
}
}
},
"then": {
"type": "object",
"required": [
"entry"
],
"properties": {
"entry": {
"type": "string",
"minLength": 1,
"fix": "capabilities are provided, so add \"entry\" naming the module that provides them, for example \"dist/index.js\""
}
}
},
"definitions": {
"uiTone": {
"description": "A semantic colour role; a host maps it to its own palette.",
"type": "string",
"enum": [
"neutral",
"accent",
"success",
"warning",
"danger"
],
"fix": "set the tone to one of neutral, accent, success, warning or danger; a raw colour is not accepted"
},
"uiBinding": {
"description": "A call into one of this plugin's own services.",
"type": "object",
"properties": {
"service": {
"description": "The id of a service this plugin provides.",
"type": "string"
},
"method": {
"description": "The service method to call.",
"type": "string",
"pattern": "^[a-z][A-Za-z0-9]*(?![\\s\\S])",
"fix": "start a method name with a lowercase letter, then letters and digits only, for example \"read\""
},
"argument": {
"description": "The argument sent with the call.",
"type": "object"
}
},
"required": [
"service",
"method"
],
"fix": "write the binding as {\"service\": \"<id>\", \"method\": \"<name>\"}, optionally with an \"argument\" object"
},
"uiSettings": {
"description": "Settings this plugin lets a user change, keyed by setting key.",
"type": "object",
"propertyNames": {
"pattern": "^[a-z][A-Za-z0-9]*(?![\\s\\S])",
"fix": "start a setting key with a lowercase letter, then letters and digits only, for example \"retryLimit\""
},
"additionalProperties": {
"description": "One setting: its type, its label and the limits a host enforces.",
"type": "object",
"properties": {
"type": {
"description": "How a host edits the value.",
"type": "string",
"enum": [
"text",
"secret",
"number",
"toggle",
"choice",
"multi-choice",
"path",
"list",
"key-value"
],
"fix": "set the type to one of text, secret, number, toggle, choice, multi-choice, path, list or key-value"
},
"label": {
"description": "The text a host shows beside the control.",
"type": "string"
},
"help": {
"description": "A sentence a host shows under the control.",
"type": "string"
},
"default": {
"description": "The value in force until a user changes it."
},
"layer": {
"description": "Whether the value travels with the user (portable) or stays with this installation (application). Absent means portable.",
"type": "string",
"enum": [
"portable",
"application"
],
"fix": "set the layer to portable or application"
},
"choices": {
"description": "The values a choice or multi-choice setting offers.",
"type": "array",
"items": {
"type": "string"
},
"fix": "list the allowed values as strings, for example [\"fast\", \"safe\"]"
},
"minimum": {
"description": "The lowest value a number setting accepts.",
"type": "integer"
},
"maximum": {
"description": "The highest value a number setting accepts.",
"type": "integer"
},
"pattern": {
"description": "A regular expression a text value must match.",
"type": "string"
}
},
"required": [
"type",
"label"
],
"if": {
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"enum": [
"choice",
"multi-choice"
]
}
}
},
"then": {
"type": "object",
"required": [
"choices"
],
"properties": {
"choices": {
"type": "array",
"minItems": 1,
"fix": "a choice or multi-choice setting needs \"choices\", for example [\"fast\", \"safe\"]"
}
},
"fix": "a choice or multi-choice setting needs \"choices\", for example [\"fast\", \"safe\"]"
},
"fix": "write the setting as an object carrying \"type\" and \"label\""
},
"fix": "map each setting key to an object carrying \"type\" and \"label\""
},
"uiNode": {
"description": "One element of a view. It names what it is and how it looks as roles, never as raw colours or sizes.",
"type": "object",
"properties": {
"id": {
"description": "The node's identity within its view.",
"type": "string",
"pattern": "^[a-z][A-Za-z0-9]*(?![\\s\\S])",
"fix": "start a node id with a lowercase letter, then letters and digits only, for example \"mainTable\""
},
"parent": {
"description": "The id of the node this one sits under. Absent means the view's root.",
"type": "string"
},
"component": {
"description": "What the node is.",
"type": "string",
"enum": [
"stack",
"grid",
"split",
"tabs",
"section",
"card",
"divider",
"text",
"list",
"table",
"tree",
"detail",
"chart",
"log",
"code",
"diff",
"badge",
"icon",
"field",
"search",
"form",
"button",
"dialog",
"toast",
"progress",
"spinner",
"empty",
"loading",
"error",
"unavailable"
],
"fix": "set the component to one of stack, grid, split, tabs, section, card, divider, text, list, table, tree, detail, chart, log, code, diff, badge, icon, field, search, form, button, dialog, toast, progress, spinner, empty, loading, error or unavailable"
},
"size": {
"description": "The node's size as a role.",
"type": "string",
"enum": [
"small",
"medium",
"large"
],
"fix": "set the size to small, medium or large; a pixel value is not accepted"
},
"emphasis": {
"description": "How much attention the node asks for.",
"type": "string",
"enum": [
"low",
"normal",
"high"
],
"fix": "set the emphasis to low, normal or high"
},
"tone": {
"$ref": "#/definitions/uiTone"
},
"label": {
"description": "Text a host shows as the node's heading or caption.",
"type": "string"
},
"text": {
"description": "The node's own text.",
"type": "string"
},
"icon": {
"description": "The name of a host icon.",
"type": "string",
"pattern": "^[a-z0-9]+(-[a-z0-9]+)*(?![\\s\\S])",
"fix": "name the icon in lowercase words joined by single hyphens, for example \"arrow-right\""
},
"bind": {
"$ref": "#/definitions/uiBinding"
},
"action": {
"description": "The id of one of this plugin's actions the node runs.",
"type": "string"
},
"field": {
"description": "The key of one of this plugin's settings the node edits.",
"type": "string"
},
"chart": {
"description": "The chart form of a chart node.",
"type": "string",
"enum": [
"line",
"bar",
"sparkline",
"meter"
],
"fix": "set the chart to line, bar, sparkline or meter"
},
"span": {
"description": "How many of a grid's twelve columns the node takes.",
"type": "integer",
"minimum": 1,
"maximum": 12,
"fix": "set the span to a whole number from 1 to 12"
}
},
"required": [
"id",
"component"
],
"fix": "write the node as an object carrying \"id\" and \"component\""
},
"appDeclaration": {
"description": "The app this repo is the loader for, declared by the app's own project.",
"type": "object",
"properties": {
"id": {
"description": "The app's permanent id, for example claude or opencode.",
"type": "string"
},
"label": {
"description": "The name a surface shows instead of the id.",
"type": "string"
},
"icon": {
"description": "Path to a square-viewBox SVG mark for the app, relative to the repo root.",
"type": "string"
},
"home": {
"$ref": "#/definitions/appHome"
},
"detect": {
"description": "How to tell whether this app is installed.",
"type": "object",
"properties": {
"binary": {
"description": "The executable a user launches, looked up on the path.",
"type": "string"
},
"pkg": {
"description": "The npm package the app ships as, for a global-install check.",
"type": "string"
}
}
},
"loader": {
"$ref": "#/definitions/appLoader"
},
"commandsSubdir": {
"description": "The subdirectory inside the app home holding its slash commands.",
"type": "string"
},
"paths": {
"description": "The names of the storage subdirectories inside this app's home.",
"type": "object",
"properties": {
"repos": {
"description": "Where plugin checkouts live.",
"type": "string"
},
"plugin": {
"description": "Where deployed plugin bundles and their manifest sidecars live.",
"type": "string"
},
"cache": {
"description": "Where cached downloads live.",
"type": "string"
},
"config": {
"description": "Where configuration files live.",
"type": "string"
}
}
},
"proxyPort": {
"description": "The port this app's proxy listens on, or 0 when it needs none.",
"type": "integer"
},
"integration": {
"description": "How this app reaches the local API.",
"type": "string",
"enum": [
"env-baseurl",
"native"
],
"fix": "set \"integration\" to \"env-baseurl\" when the app is pointed at the proxy by an environment variable, or \"native\" when it loads the plugin itself"
},
"wireFormat": {
"description": "The wire format this app speaks, for example anthropic.",
"type": "string"
},
"usage": {
"$ref": "#/definitions/appUsage"
},
"accent": {
"description": "Accent colour for this app's surfaces, as a #rrggbb hex string.",
"type": "string"
},
"wrapperCommand": {
"description": "The command a user types to launch this app through its loader's wrapper.",
"type": "string"
},
"npmPlugins": {
"$ref": "#/definitions/appNpmPlugins"
},
"startupHook": {
"description": "How this app runs a plugin at startup when it has no npm-plugin list of its own.",
"type": "object",
"properties": {
"file": {
"description": "The file to write, relative to the app home.",
"type": "string"
},
"path": {