@medicine-wheel/developer-repository-mapping 0.27.17 → 0.27.19
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.
- package/README.md +31 -1
- package/dist/capability-file.d.ts +38 -5
- package/dist/capability-file.d.ts.map +1 -1
- package/dist/capability-file.js +110 -19
- package/dist/capability-file.js.map +1 -1
- package/dist/capability-scan.d.ts +7 -1
- package/dist/capability-scan.d.ts.map +1 -1
- package/dist/capability-scan.js +3 -1
- package/dist/capability-scan.js.map +1 -1
- package/dist/cli.d.ts +2 -2
- package/dist/cli.js +67 -14
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/node/capability-scan.d.ts +9 -5
- package/dist/node/capability-scan.d.ts.map +1 -1
- package/dist/node/capability-scan.js +58 -18
- package/dist/node/capability-scan.js.map +1 -1
- package/dist/node/design-projection.d.ts +34 -0
- package/dist/node/design-projection.d.ts.map +1 -0
- package/dist/node/design-projection.js +287 -0
- package/dist/node/design-projection.js.map +1 -0
- package/dist/node/index.d.ts +4 -0
- package/dist/node/index.d.ts.map +1 -1
- package/dist/node/index.js +6 -1
- package/dist/node/index.js.map +1 -1
- package/dist/node/package-evidence.d.ts +14 -0
- package/dist/node/package-evidence.d.ts.map +1 -0
- package/dist/node/package-evidence.js +186 -0
- package/dist/node/package-evidence.js.map +1 -0
- package/dist/node/plugin-capabilities.d.ts +21 -0
- package/dist/node/plugin-capabilities.d.ts.map +1 -0
- package/dist/node/plugin-capabilities.js +174 -0
- package/dist/node/plugin-capabilities.js.map +1 -0
- package/dist/package-evidence.d.ts +163 -0
- package/dist/package-evidence.d.ts.map +1 -0
- package/dist/package-evidence.js +64 -0
- package/dist/package-evidence.js.map +1 -0
- package/package.json +3 -3
- package/schema/repository-capabilities.v4.schema.json +610 -0
|
@@ -0,0 +1,610 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://unpkg.com/@medicine-wheel/developer-repository-mapping/schema/repository-capabilities.v4.schema.json",
|
|
4
|
+
"title": "A repository's own capability file, .miadi/capabilities.jsonl, format version 4",
|
|
5
|
+
"description": "One JSON value per line (JSON Lines). The first line is the header; every other line is one capability the repository provides. This schema validates one line. Version 4 adds plugins, their components and links to Stateloom systems (jgwill/medicine-wheel#181). A writer puts the lowest version its rows need in the header. A reader reads a file of a later version and skips what it does not know; a writer refuses to rewrite it. The statement word limit and agreement between references and the header repository are checked by the reader. Spec: rispecs/developer-suite/repository-mapping/capabilities.spec.md.",
|
|
6
|
+
"oneOf": [
|
|
7
|
+
{
|
|
8
|
+
"$ref": "#/$defs/header"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"$ref": "#/$defs/row"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"$defs": {
|
|
15
|
+
"printable": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"pattern": "^[^\\u0000-\\u001f\\u007f-\\u009f\\u061c\\u200e\\u200f\\u2028\\u2029\\u202a-\\u202e\\u2066-\\u2069]*$",
|
|
18
|
+
"description": "No control character, bidirectional control, or line or paragraph separator. Lengths are counted in code points."
|
|
19
|
+
},
|
|
20
|
+
"timestamp": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"format": "date-time",
|
|
23
|
+
"pattern": "T\\d{2}:\\d{2}:\\d{2}",
|
|
24
|
+
"description": "RFC 3339, with its seconds and its offset."
|
|
25
|
+
},
|
|
26
|
+
"header": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"additionalProperties": false,
|
|
29
|
+
"required": [
|
|
30
|
+
"schema",
|
|
31
|
+
"version",
|
|
32
|
+
"repository"
|
|
33
|
+
],
|
|
34
|
+
"properties": {
|
|
35
|
+
"schema": {
|
|
36
|
+
"const": "medicine-wheel/repository-capabilities"
|
|
37
|
+
},
|
|
38
|
+
"version": {
|
|
39
|
+
"enum": [
|
|
40
|
+
1,
|
|
41
|
+
2,
|
|
42
|
+
3,
|
|
43
|
+
4
|
|
44
|
+
],
|
|
45
|
+
"description": "4 when a row is a plugin or plugin component (other than a plain skill), or holds systems, components, declaredComponents or plugin. Otherwise 3 when a row is an app or holds hosting or episodes, 2 when a row holds achieves, stage, specifications or issues, and 1 otherwise."
|
|
46
|
+
},
|
|
47
|
+
"repository": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,99}/(?![^/]*\\.git$)[A-Za-z0-9][A-Za-z0-9._-]{0,99}$",
|
|
50
|
+
"description": "owner/name, as an address names it, as the repository was known when the file was written. A fork keeps it until someone adopts the file with --repository."
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"row": {
|
|
55
|
+
"type": "object",
|
|
56
|
+
"additionalProperties": false,
|
|
57
|
+
"required": [
|
|
58
|
+
"kind",
|
|
59
|
+
"name",
|
|
60
|
+
"address",
|
|
61
|
+
"status",
|
|
62
|
+
"statedBy",
|
|
63
|
+
"statedAt",
|
|
64
|
+
"grounding",
|
|
65
|
+
"revision"
|
|
66
|
+
],
|
|
67
|
+
"properties": {
|
|
68
|
+
"kind": {
|
|
69
|
+
"enum": [
|
|
70
|
+
"package",
|
|
71
|
+
"cli",
|
|
72
|
+
"skill",
|
|
73
|
+
"decision",
|
|
74
|
+
"app",
|
|
75
|
+
"plugin",
|
|
76
|
+
"agent",
|
|
77
|
+
"command",
|
|
78
|
+
"hook",
|
|
79
|
+
"mcp-server"
|
|
80
|
+
],
|
|
81
|
+
"description": "A plugin is enrolled from its manifest. Agent, command, hook and mcp-server are plugin component kinds. An app is enrolled from its package.json."
|
|
82
|
+
},
|
|
83
|
+
"name": {
|
|
84
|
+
"allOf": [
|
|
85
|
+
{
|
|
86
|
+
"$ref": "#/$defs/printable"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"minLength": 1,
|
|
90
|
+
"maxLength": 214,
|
|
91
|
+
"pattern": "[A-Za-z0-9]"
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
"address": {
|
|
96
|
+
"allOf": [
|
|
97
|
+
{
|
|
98
|
+
"$ref": "#/$defs/printable"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"minLength": 1,
|
|
102
|
+
"maxLength": 600
|
|
103
|
+
}
|
|
104
|
+
],
|
|
105
|
+
"description": "miadi-capability://<header repository>/<kind>/<name>. A reader computes it and warns when a row says otherwise."
|
|
106
|
+
},
|
|
107
|
+
"statement": {
|
|
108
|
+
"allOf": [
|
|
109
|
+
{
|
|
110
|
+
"$ref": "#/$defs/printable"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"minLength": 1,
|
|
114
|
+
"maxLength": 1200
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
"description": "What the files, or a person, say it is: at most 55 words."
|
|
118
|
+
},
|
|
119
|
+
"status": {
|
|
120
|
+
"enum": [
|
|
121
|
+
"clear",
|
|
122
|
+
"unclear",
|
|
123
|
+
"needs-resolution",
|
|
124
|
+
"undefinable"
|
|
125
|
+
]
|
|
126
|
+
},
|
|
127
|
+
"package": {
|
|
128
|
+
"allOf": [
|
|
129
|
+
{
|
|
130
|
+
"$ref": "#/$defs/printable"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"minLength": 1,
|
|
134
|
+
"maxLength": 214
|
|
135
|
+
}
|
|
136
|
+
],
|
|
137
|
+
"description": "For a CLI: the package that ships it."
|
|
138
|
+
},
|
|
139
|
+
"realizes": {
|
|
140
|
+
"type": "array",
|
|
141
|
+
"minItems": 1,
|
|
142
|
+
"maxItems": 32,
|
|
143
|
+
"items": {
|
|
144
|
+
"type": "object",
|
|
145
|
+
"additionalProperties": false,
|
|
146
|
+
"required": [
|
|
147
|
+
"capability",
|
|
148
|
+
"statedBy",
|
|
149
|
+
"statedAt"
|
|
150
|
+
],
|
|
151
|
+
"properties": {
|
|
152
|
+
"capability": {
|
|
153
|
+
"type": "string",
|
|
154
|
+
"pattern": "^capability:[a-z0-9]+(?:-[a-z0-9]+)*$"
|
|
155
|
+
},
|
|
156
|
+
"statedBy": {
|
|
157
|
+
"allOf": [
|
|
158
|
+
{
|
|
159
|
+
"$ref": "#/$defs/printable"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"minLength": 1,
|
|
163
|
+
"maxLength": 200,
|
|
164
|
+
"not": {
|
|
165
|
+
"const": "mw-repomap scan"
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
]
|
|
169
|
+
},
|
|
170
|
+
"statedAt": {
|
|
171
|
+
"$ref": "#/$defs/timestamp"
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"description": "The platform capabilities this one serves (capabilities.spec.md), each with who said so and when. Said by a person or an agent, never by the scan, and kept by every rescan."
|
|
176
|
+
},
|
|
177
|
+
"achieves": {
|
|
178
|
+
"type": "object",
|
|
179
|
+
"additionalProperties": false,
|
|
180
|
+
"required": [
|
|
181
|
+
"statement",
|
|
182
|
+
"statedBy",
|
|
183
|
+
"statedAt"
|
|
184
|
+
],
|
|
185
|
+
"description": "Version 2. What the capability achieves for someone, at most 55 words, and who said it. Kept through every rescan.",
|
|
186
|
+
"properties": {
|
|
187
|
+
"statement": {
|
|
188
|
+
"allOf": [
|
|
189
|
+
{
|
|
190
|
+
"$ref": "#/$defs/printable"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"minLength": 1,
|
|
194
|
+
"maxLength": 1200
|
|
195
|
+
}
|
|
196
|
+
]
|
|
197
|
+
},
|
|
198
|
+
"statedBy": {
|
|
199
|
+
"allOf": [
|
|
200
|
+
{
|
|
201
|
+
"$ref": "#/$defs/printable"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"minLength": 1,
|
|
205
|
+
"maxLength": 200,
|
|
206
|
+
"not": {
|
|
207
|
+
"const": "mw-repomap scan"
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
],
|
|
211
|
+
"description": "A person or an agent: what a capability achieves is never the scan's to say."
|
|
212
|
+
},
|
|
213
|
+
"statedAt": {
|
|
214
|
+
"$ref": "#/$defs/timestamp"
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
"stage": {
|
|
219
|
+
"type": "object",
|
|
220
|
+
"additionalProperties": false,
|
|
221
|
+
"required": [
|
|
222
|
+
"stage",
|
|
223
|
+
"statedBy",
|
|
224
|
+
"statedAt",
|
|
225
|
+
"grounding"
|
|
226
|
+
],
|
|
227
|
+
"description": "Version 2. Where the capability stands in its life, who said so, when, and from what. A reader reads a row at stage specified or retired even when the commit provides no such thing. Kept through every rescan.",
|
|
228
|
+
"properties": {
|
|
229
|
+
"stage": {
|
|
230
|
+
"enum": [
|
|
231
|
+
"specified",
|
|
232
|
+
"prototype",
|
|
233
|
+
"implementation",
|
|
234
|
+
"released",
|
|
235
|
+
"retired"
|
|
236
|
+
]
|
|
237
|
+
},
|
|
238
|
+
"statedBy": {
|
|
239
|
+
"allOf": [
|
|
240
|
+
{
|
|
241
|
+
"$ref": "#/$defs/printable"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"minLength": 1,
|
|
245
|
+
"maxLength": 200,
|
|
246
|
+
"not": {
|
|
247
|
+
"const": "mw-repomap scan"
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
],
|
|
251
|
+
"description": "A person or an agent: where a capability stands is never the scan's to say."
|
|
252
|
+
},
|
|
253
|
+
"statedAt": {
|
|
254
|
+
"$ref": "#/$defs/timestamp"
|
|
255
|
+
},
|
|
256
|
+
"grounding": {
|
|
257
|
+
"type": "array",
|
|
258
|
+
"minItems": 1,
|
|
259
|
+
"maxItems": 32,
|
|
260
|
+
"items": {
|
|
261
|
+
"allOf": [
|
|
262
|
+
{
|
|
263
|
+
"$ref": "#/$defs/printable"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"minLength": 1,
|
|
267
|
+
"maxLength": 1024
|
|
268
|
+
}
|
|
269
|
+
]
|
|
270
|
+
},
|
|
271
|
+
"description": "What shows the stage: a specification, a commit, npm:<package>@<version>, owner/repo#n."
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
"specifications": {
|
|
276
|
+
"type": "array",
|
|
277
|
+
"minItems": 1,
|
|
278
|
+
"maxItems": 32,
|
|
279
|
+
"description": "Version 2. Its specifications: a path in this repository (a reader opens it as rise://<owner>/<name>/<path>), a rise:// address, or an https:// URL. Kept through every rescan.",
|
|
280
|
+
"items": {
|
|
281
|
+
"allOf": [
|
|
282
|
+
{
|
|
283
|
+
"$ref": "#/$defs/printable"
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"minLength": 1,
|
|
287
|
+
"maxLength": 1024
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"anyOf": [
|
|
291
|
+
{
|
|
292
|
+
"pattern": "^rise://[A-Za-z0-9][A-Za-z0-9._-]*/[A-Za-z0-9][A-Za-z0-9._-]*/\\S+$"
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"pattern": "^https://\\S+$"
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"pattern": "^(?![A-Za-z][A-Za-z0-9+.-]*:)(?!/)(?!(?:.*/)?\\.\\.(?:/|$))\\S+$"
|
|
299
|
+
}
|
|
300
|
+
]
|
|
301
|
+
}
|
|
302
|
+
]
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
"issues": {
|
|
306
|
+
"type": "array",
|
|
307
|
+
"minItems": 1,
|
|
308
|
+
"maxItems": 32,
|
|
309
|
+
"description": "Version 2. The issues that track it, owner/repo#n. Kept through every rescan.",
|
|
310
|
+
"items": {
|
|
311
|
+
"type": "string",
|
|
312
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*/[A-Za-z0-9][A-Za-z0-9._-]*#[1-9][0-9]*$"
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
"hosting": {
|
|
316
|
+
"type": "object",
|
|
317
|
+
"additionalProperties": false,
|
|
318
|
+
"required": [
|
|
319
|
+
"deployedBy",
|
|
320
|
+
"statedBy",
|
|
321
|
+
"statedAt",
|
|
322
|
+
"grounding"
|
|
323
|
+
],
|
|
324
|
+
"description": "Version 3. Where the capability runs, who deploys it, where its code is written when not in this repository, and how a change reaches it, with who said so, when and from what. Kept through every rescan.",
|
|
325
|
+
"properties": {
|
|
326
|
+
"urls": {
|
|
327
|
+
"type": "array",
|
|
328
|
+
"minItems": 1,
|
|
329
|
+
"maxItems": 8,
|
|
330
|
+
"description": "Where people open it or services call it.",
|
|
331
|
+
"items": {
|
|
332
|
+
"allOf": [
|
|
333
|
+
{
|
|
334
|
+
"$ref": "#/$defs/printable"
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"minLength": 1,
|
|
338
|
+
"maxLength": 1024
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"pattern": "^https?://\\S+$"
|
|
342
|
+
}
|
|
343
|
+
]
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
"deployedBy": {
|
|
347
|
+
"allOf": [
|
|
348
|
+
{
|
|
349
|
+
"$ref": "#/$defs/printable"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"minLength": 1,
|
|
353
|
+
"maxLength": 200
|
|
354
|
+
}
|
|
355
|
+
],
|
|
356
|
+
"description": "Who or what deploys it: 'v0, on Vercel', 'npm publish from this repository'."
|
|
357
|
+
},
|
|
358
|
+
"authoredIn": {
|
|
359
|
+
"allOf": [
|
|
360
|
+
{
|
|
361
|
+
"$ref": "#/$defs/printable"
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"minLength": 1,
|
|
365
|
+
"maxLength": 200
|
|
366
|
+
}
|
|
367
|
+
],
|
|
368
|
+
"description": "Where its code is written when that is not this repository: the copy here is replaced at the next import."
|
|
369
|
+
},
|
|
370
|
+
"change": {
|
|
371
|
+
"allOf": [
|
|
372
|
+
{
|
|
373
|
+
"$ref": "#/$defs/printable"
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
"minLength": 1,
|
|
377
|
+
"maxLength": 1200
|
|
378
|
+
}
|
|
379
|
+
],
|
|
380
|
+
"description": "How a change reaches it: at most 55 words."
|
|
381
|
+
},
|
|
382
|
+
"statedBy": {
|
|
383
|
+
"allOf": [
|
|
384
|
+
{
|
|
385
|
+
"$ref": "#/$defs/printable"
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"minLength": 1,
|
|
389
|
+
"maxLength": 200,
|
|
390
|
+
"not": {
|
|
391
|
+
"const": "mw-repomap scan"
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
],
|
|
395
|
+
"description": "A person or an agent: where a capability is hosted is never the scan's to say."
|
|
396
|
+
},
|
|
397
|
+
"statedAt": {
|
|
398
|
+
"$ref": "#/$defs/timestamp"
|
|
399
|
+
},
|
|
400
|
+
"grounding": {
|
|
401
|
+
"type": "array",
|
|
402
|
+
"minItems": 1,
|
|
403
|
+
"maxItems": 32,
|
|
404
|
+
"items": {
|
|
405
|
+
"allOf": [
|
|
406
|
+
{
|
|
407
|
+
"$ref": "#/$defs/printable"
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"minLength": 1,
|
|
411
|
+
"maxLength": 1024
|
|
412
|
+
}
|
|
413
|
+
]
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
},
|
|
418
|
+
"episodes": {
|
|
419
|
+
"type": "array",
|
|
420
|
+
"minItems": 1,
|
|
421
|
+
"maxItems": 32,
|
|
422
|
+
"description": "Version 3. The chronicle episodes that hold it, miadi-chronicle://<n>. Kept through every rescan.",
|
|
423
|
+
"items": {
|
|
424
|
+
"type": "string",
|
|
425
|
+
"pattern": "^miadi-chronicle:(?://)?[A-Za-z0-9][A-Za-z0-9._-]{0,199}$"
|
|
426
|
+
}
|
|
427
|
+
},
|
|
428
|
+
"systems": {
|
|
429
|
+
"type": "array",
|
|
430
|
+
"minItems": 1,
|
|
431
|
+
"maxItems": 32,
|
|
432
|
+
"uniqueItems": true,
|
|
433
|
+
"items": {
|
|
434
|
+
"$ref": "#/$defs/systemRef"
|
|
435
|
+
},
|
|
436
|
+
"description": "Version 4. Stateloom systems cited by this capability."
|
|
437
|
+
},
|
|
438
|
+
"components": {
|
|
439
|
+
"type": "array",
|
|
440
|
+
"minItems": 1,
|
|
441
|
+
"uniqueItems": true,
|
|
442
|
+
"items": {
|
|
443
|
+
"$ref": "#/$defs/componentRef"
|
|
444
|
+
},
|
|
445
|
+
"description": "Version 4. Scanned and explicitly declared component capability addresses."
|
|
446
|
+
},
|
|
447
|
+
"declaredComponents": {
|
|
448
|
+
"type": "array",
|
|
449
|
+
"minItems": 1,
|
|
450
|
+
"uniqueItems": true,
|
|
451
|
+
"items": {
|
|
452
|
+
"$ref": "#/$defs/componentRef"
|
|
453
|
+
},
|
|
454
|
+
"description": "Version 4. Explicit component links kept through every rescan."
|
|
455
|
+
},
|
|
456
|
+
"plugin": {
|
|
457
|
+
"$ref": "#/$defs/pluginRef",
|
|
458
|
+
"description": "Version 4. Capability address of the plugin that carries this component."
|
|
459
|
+
},
|
|
460
|
+
"statedBy": {
|
|
461
|
+
"allOf": [
|
|
462
|
+
{
|
|
463
|
+
"$ref": "#/$defs/printable"
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
"minLength": 1,
|
|
467
|
+
"maxLength": 200
|
|
468
|
+
}
|
|
469
|
+
],
|
|
470
|
+
"description": "\"mw-repomap scan\" for a row the scan wrote; any other name is a person's, and a rescan keeps its words."
|
|
471
|
+
},
|
|
472
|
+
"statedAt": {
|
|
473
|
+
"$ref": "#/$defs/timestamp"
|
|
474
|
+
},
|
|
475
|
+
"grounding": {
|
|
476
|
+
"type": "array",
|
|
477
|
+
"minItems": 1,
|
|
478
|
+
"items": {
|
|
479
|
+
"allOf": [
|
|
480
|
+
{
|
|
481
|
+
"$ref": "#/$defs/printable"
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"minLength": 1,
|
|
485
|
+
"maxLength": 1024
|
|
486
|
+
}
|
|
487
|
+
]
|
|
488
|
+
},
|
|
489
|
+
"description": "The files that say so, relative to the repository. A reader adds the commit it read: owner/name@commit:path."
|
|
490
|
+
},
|
|
491
|
+
"revision": {
|
|
492
|
+
"enum": [
|
|
493
|
+
"pending",
|
|
494
|
+
"revised",
|
|
495
|
+
"affirmed"
|
|
496
|
+
]
|
|
497
|
+
},
|
|
498
|
+
"revisedBy": {
|
|
499
|
+
"allOf": [
|
|
500
|
+
{
|
|
501
|
+
"$ref": "#/$defs/printable"
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
"minLength": 1,
|
|
505
|
+
"maxLength": 200
|
|
506
|
+
}
|
|
507
|
+
]
|
|
508
|
+
},
|
|
509
|
+
"revisedAt": {
|
|
510
|
+
"$ref": "#/$defs/timestamp"
|
|
511
|
+
}
|
|
512
|
+
},
|
|
513
|
+
"allOf": [
|
|
514
|
+
{
|
|
515
|
+
"if": {
|
|
516
|
+
"properties": {
|
|
517
|
+
"status": {
|
|
518
|
+
"enum": [
|
|
519
|
+
"clear",
|
|
520
|
+
"unclear"
|
|
521
|
+
]
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
},
|
|
525
|
+
"then": {
|
|
526
|
+
"required": [
|
|
527
|
+
"statement"
|
|
528
|
+
]
|
|
529
|
+
}
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
"if": {
|
|
533
|
+
"properties": {
|
|
534
|
+
"revision": {
|
|
535
|
+
"enum": [
|
|
536
|
+
"revised",
|
|
537
|
+
"affirmed"
|
|
538
|
+
]
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
},
|
|
542
|
+
"then": {
|
|
543
|
+
"required": [
|
|
544
|
+
"revisedBy",
|
|
545
|
+
"revisedAt"
|
|
546
|
+
]
|
|
547
|
+
}
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
"if": {
|
|
551
|
+
"anyOf": [
|
|
552
|
+
{
|
|
553
|
+
"required": [
|
|
554
|
+
"components"
|
|
555
|
+
]
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
"required": [
|
|
559
|
+
"declaredComponents"
|
|
560
|
+
]
|
|
561
|
+
}
|
|
562
|
+
]
|
|
563
|
+
},
|
|
564
|
+
"then": {
|
|
565
|
+
"properties": {
|
|
566
|
+
"kind": {
|
|
567
|
+
"const": "plugin"
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
"if": {
|
|
574
|
+
"required": [
|
|
575
|
+
"plugin"
|
|
576
|
+
]
|
|
577
|
+
},
|
|
578
|
+
"then": {
|
|
579
|
+
"properties": {
|
|
580
|
+
"kind": {
|
|
581
|
+
"enum": [
|
|
582
|
+
"skill",
|
|
583
|
+
"agent",
|
|
584
|
+
"command",
|
|
585
|
+
"hook",
|
|
586
|
+
"mcp-server"
|
|
587
|
+
]
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
]
|
|
593
|
+
},
|
|
594
|
+
"systemRef": {
|
|
595
|
+
"type": "string",
|
|
596
|
+
"maxLength": 1024,
|
|
597
|
+
"pattern": "^rise://(?!(?:[^/]+/)?[^/]*\\.\\.[^/]*/)[A-Za-z0-9][A-Za-z0-9._-]{0,99}/(?![^/]*\\.git/)[A-Za-z0-9][A-Za-z0-9._-]{0,99}/(?:[A-Za-z0-9_~-][A-Za-z0-9._~-]{0,127}/){0,16}[A-Za-z0-9_~-][A-Za-z0-9._~-]{0,116}\\.sysdf\\.json(?:@[A-Za-z0-9._/-]{1,80})?$(?![\\s\\S])"
|
|
598
|
+
},
|
|
599
|
+
"componentRef": {
|
|
600
|
+
"type": "string",
|
|
601
|
+
"maxLength": 419,
|
|
602
|
+
"pattern": "^miadi-capability://[A-Za-z0-9][A-Za-z0-9._-]{0,99}/(?![^/]*\\.git/)[A-Za-z0-9][A-Za-z0-9._-]{0,99}/(?:skill|agent|command|hook|mcp-server)/(?:(?!\\.{1,2}(?:/|$))[A-Za-z0-9_@.~+-]{1,214}/)*(?!\\.{1,2}(?:/|$))[A-Za-z0-9_@.~+-]{1,214}$(?![\\s\\S])"
|
|
603
|
+
},
|
|
604
|
+
"pluginRef": {
|
|
605
|
+
"type": "string",
|
|
606
|
+
"maxLength": 419,
|
|
607
|
+
"pattern": "^miadi-capability://[A-Za-z0-9][A-Za-z0-9._-]{0,99}/(?![^/]*\\.git/)[A-Za-z0-9][A-Za-z0-9._-]{0,99}/plugin/(?:(?!\\.{1,2}(?:/|$))[A-Za-z0-9_@.~+-]{1,214}/)*(?!\\.{1,2}(?:/|$))[A-Za-z0-9_@.~+-]{1,214}$(?![\\s\\S])"
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
}
|