@medicine-wheel/developer-repository-mapping 0.27.19 → 0.27.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.
- package/README.md +45 -1
- package/dist/capability-file.d.ts +108 -5
- package/dist/capability-file.d.ts.map +1 -1
- package/dist/capability-file.js +193 -20
- package/dist/capability-file.js.map +1 -1
- package/dist/capability-scan.d.ts +43 -9
- package/dist/capability-scan.d.ts.map +1 -1
- package/dist/capability-scan.js +90 -14
- package/dist/capability-scan.js.map +1 -1
- package/dist/check.d.ts.map +1 -1
- package/dist/check.js +16 -0
- package/dist/check.js.map +1 -1
- package/dist/cli.d.ts +11 -3
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +166 -15
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -2
- package/dist/index.js.map +1 -1
- package/dist/merge.d.ts.map +1 -1
- package/dist/merge.js +9 -0
- package/dist/merge.js.map +1 -1
- package/dist/node/capability-index.d.ts +65 -0
- package/dist/node/capability-index.d.ts.map +1 -0
- package/dist/node/capability-index.js +127 -0
- package/dist/node/capability-index.js.map +1 -0
- package/dist/node/capability-scan.d.ts +28 -2
- package/dist/node/capability-scan.d.ts.map +1 -1
- package/dist/node/capability-scan.js +104 -11
- package/dist/node/capability-scan.js.map +1 -1
- package/dist/node/fs.d.ts +10 -0
- package/dist/node/fs.d.ts.map +1 -1
- package/dist/node/fs.js +28 -0
- package/dist/node/fs.js.map +1 -1
- package/dist/node/index.d.ts +7 -3
- package/dist/node/index.d.ts.map +1 -1
- package/dist/node/index.js +13 -1
- package/dist/node/index.js.map +1 -1
- package/dist/node/skills.d.ts +37 -0
- package/dist/node/skills.d.ts.map +1 -0
- package/dist/node/skills.js +99 -0
- package/dist/node/skills.js.map +1 -0
- package/dist/package-evidence.d.ts +10 -10
- package/dist/read.d.ts.map +1 -1
- package/dist/read.js +7 -0
- package/dist/read.js.map +1 -1
- package/dist/schemas.d.ts +20 -20
- package/dist/types.d.ts +10 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1 -0
- package/dist/types.js.map +1 -1
- package/package.json +4 -3
- package/schema/repository-capabilities.v5.schema.json +748 -0
- package/skills/capability-hub/SKILL.md +105 -0
- package/skills/capability-mapping/SKILL.md +162 -0
|
@@ -0,0 +1,748 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://unpkg.com/@medicine-wheel/developer-repository-mapping/schema/repository-capabilities.v5.schema.json",
|
|
4
|
+
"title": "A repository's own capability file, .miadi/capabilities.jsonl, format version 5",
|
|
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 5 adds the commands of a CLI, what reads a capability where no package.json says so (jgwill/medicine-wheel#188), and the package folders a repository declares in its header (jgwill/medicine-wheel#185). 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, agreement between references and the header repository, and each consumer being named once 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
|
+
5
|
|
45
|
+
],
|
|
46
|
+
"description": "5 when the header declares package folders, or a row holds cli, commands or consumers. Otherwise 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."
|
|
47
|
+
},
|
|
48
|
+
"repository": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,99}/(?![^/]*\\.git$)[A-Za-z0-9][A-Za-z0-9._-]{0,99}$",
|
|
51
|
+
"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."
|
|
52
|
+
},
|
|
53
|
+
"packages": {
|
|
54
|
+
"type": "array",
|
|
55
|
+
"minItems": 1,
|
|
56
|
+
"maxItems": 256,
|
|
57
|
+
"uniqueItems": true,
|
|
58
|
+
"items": {
|
|
59
|
+
"allOf": [
|
|
60
|
+
{
|
|
61
|
+
"$ref": "#/$defs/printable"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"minLength": 1,
|
|
65
|
+
"maxLength": 1024,
|
|
66
|
+
"pattern": "^(?![A-Za-z][A-Za-z0-9+.-]*:)(?!/)(?!\\./)(?!\\.$)(?!.*(?:^|/)\\.\\.(?:/|$))[^\\s]*[^\\s/]$"
|
|
67
|
+
}
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
"description": "Version 5. The folders whose package.json a scan reads beside what a package manager's workspace declares: dir, or dir/* for each folder under it. The root is always read and never listed. Written by capabilities scan --package-folders."
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"row": {
|
|
75
|
+
"type": "object",
|
|
76
|
+
"additionalProperties": false,
|
|
77
|
+
"required": [
|
|
78
|
+
"kind",
|
|
79
|
+
"name",
|
|
80
|
+
"address",
|
|
81
|
+
"status",
|
|
82
|
+
"statedBy",
|
|
83
|
+
"statedAt",
|
|
84
|
+
"grounding",
|
|
85
|
+
"revision"
|
|
86
|
+
],
|
|
87
|
+
"properties": {
|
|
88
|
+
"kind": {
|
|
89
|
+
"enum": [
|
|
90
|
+
"package",
|
|
91
|
+
"cli",
|
|
92
|
+
"skill",
|
|
93
|
+
"decision",
|
|
94
|
+
"app",
|
|
95
|
+
"plugin",
|
|
96
|
+
"agent",
|
|
97
|
+
"command",
|
|
98
|
+
"hook",
|
|
99
|
+
"mcp-server"
|
|
100
|
+
],
|
|
101
|
+
"description": "A plugin is enrolled from its manifest. Agent, command, hook and mcp-server are plugin component kinds. Since version 5 a command is also a command of a CLI, named <cli>/<command> and enrolled from the file that defines it. An app is enrolled from its package.json."
|
|
102
|
+
},
|
|
103
|
+
"name": {
|
|
104
|
+
"allOf": [
|
|
105
|
+
{
|
|
106
|
+
"$ref": "#/$defs/printable"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"minLength": 1,
|
|
110
|
+
"maxLength": 214,
|
|
111
|
+
"pattern": "[A-Za-z0-9]"
|
|
112
|
+
}
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
"address": {
|
|
116
|
+
"allOf": [
|
|
117
|
+
{
|
|
118
|
+
"$ref": "#/$defs/printable"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"minLength": 1,
|
|
122
|
+
"maxLength": 600
|
|
123
|
+
}
|
|
124
|
+
],
|
|
125
|
+
"description": "miadi-capability://<header repository>/<kind>/<name>. A reader computes it and warns when a row says otherwise."
|
|
126
|
+
},
|
|
127
|
+
"statement": {
|
|
128
|
+
"allOf": [
|
|
129
|
+
{
|
|
130
|
+
"$ref": "#/$defs/printable"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"minLength": 1,
|
|
134
|
+
"maxLength": 1200
|
|
135
|
+
}
|
|
136
|
+
],
|
|
137
|
+
"description": "What the files, or a person, say it is: at most 55 words."
|
|
138
|
+
},
|
|
139
|
+
"status": {
|
|
140
|
+
"enum": [
|
|
141
|
+
"clear",
|
|
142
|
+
"unclear",
|
|
143
|
+
"needs-resolution",
|
|
144
|
+
"undefinable"
|
|
145
|
+
]
|
|
146
|
+
},
|
|
147
|
+
"package": {
|
|
148
|
+
"allOf": [
|
|
149
|
+
{
|
|
150
|
+
"$ref": "#/$defs/printable"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"minLength": 1,
|
|
154
|
+
"maxLength": 214
|
|
155
|
+
}
|
|
156
|
+
],
|
|
157
|
+
"description": "For a CLI, or a skill inside a package's folder that the package's files ship: that package. A row with no stage of its own is read at its package's stage."
|
|
158
|
+
},
|
|
159
|
+
"realizes": {
|
|
160
|
+
"type": "array",
|
|
161
|
+
"minItems": 1,
|
|
162
|
+
"maxItems": 32,
|
|
163
|
+
"items": {
|
|
164
|
+
"type": "object",
|
|
165
|
+
"additionalProperties": false,
|
|
166
|
+
"required": [
|
|
167
|
+
"capability",
|
|
168
|
+
"statedBy",
|
|
169
|
+
"statedAt"
|
|
170
|
+
],
|
|
171
|
+
"properties": {
|
|
172
|
+
"capability": {
|
|
173
|
+
"type": "string",
|
|
174
|
+
"pattern": "^capability:[a-z0-9]+(?:-[a-z0-9]+)*$"
|
|
175
|
+
},
|
|
176
|
+
"statedBy": {
|
|
177
|
+
"allOf": [
|
|
178
|
+
{
|
|
179
|
+
"$ref": "#/$defs/printable"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"minLength": 1,
|
|
183
|
+
"maxLength": 200,
|
|
184
|
+
"not": {
|
|
185
|
+
"const": "mw-repomap scan"
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
]
|
|
189
|
+
},
|
|
190
|
+
"statedAt": {
|
|
191
|
+
"$ref": "#/$defs/timestamp"
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
"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."
|
|
196
|
+
},
|
|
197
|
+
"achieves": {
|
|
198
|
+
"type": "object",
|
|
199
|
+
"additionalProperties": false,
|
|
200
|
+
"required": [
|
|
201
|
+
"statement",
|
|
202
|
+
"statedBy",
|
|
203
|
+
"statedAt"
|
|
204
|
+
],
|
|
205
|
+
"description": "Version 2. What the capability achieves for someone, at most 55 words, and who said it. Kept through every rescan.",
|
|
206
|
+
"properties": {
|
|
207
|
+
"statement": {
|
|
208
|
+
"allOf": [
|
|
209
|
+
{
|
|
210
|
+
"$ref": "#/$defs/printable"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"minLength": 1,
|
|
214
|
+
"maxLength": 1200
|
|
215
|
+
}
|
|
216
|
+
]
|
|
217
|
+
},
|
|
218
|
+
"statedBy": {
|
|
219
|
+
"allOf": [
|
|
220
|
+
{
|
|
221
|
+
"$ref": "#/$defs/printable"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"minLength": 1,
|
|
225
|
+
"maxLength": 200,
|
|
226
|
+
"not": {
|
|
227
|
+
"const": "mw-repomap scan"
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
],
|
|
231
|
+
"description": "A person or an agent: what a capability achieves is never the scan's to say."
|
|
232
|
+
},
|
|
233
|
+
"statedAt": {
|
|
234
|
+
"$ref": "#/$defs/timestamp"
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
"stage": {
|
|
239
|
+
"type": "object",
|
|
240
|
+
"additionalProperties": false,
|
|
241
|
+
"required": [
|
|
242
|
+
"stage",
|
|
243
|
+
"statedBy",
|
|
244
|
+
"statedAt",
|
|
245
|
+
"grounding"
|
|
246
|
+
],
|
|
247
|
+
"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.",
|
|
248
|
+
"properties": {
|
|
249
|
+
"stage": {
|
|
250
|
+
"enum": [
|
|
251
|
+
"specified",
|
|
252
|
+
"prototype",
|
|
253
|
+
"implementation",
|
|
254
|
+
"released",
|
|
255
|
+
"retired"
|
|
256
|
+
]
|
|
257
|
+
},
|
|
258
|
+
"statedBy": {
|
|
259
|
+
"allOf": [
|
|
260
|
+
{
|
|
261
|
+
"$ref": "#/$defs/printable"
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"minLength": 1,
|
|
265
|
+
"maxLength": 200,
|
|
266
|
+
"not": {
|
|
267
|
+
"const": "mw-repomap scan"
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
],
|
|
271
|
+
"description": "A person or an agent: where a capability stands is never the scan's to say."
|
|
272
|
+
},
|
|
273
|
+
"statedAt": {
|
|
274
|
+
"$ref": "#/$defs/timestamp"
|
|
275
|
+
},
|
|
276
|
+
"grounding": {
|
|
277
|
+
"type": "array",
|
|
278
|
+
"minItems": 1,
|
|
279
|
+
"maxItems": 32,
|
|
280
|
+
"items": {
|
|
281
|
+
"allOf": [
|
|
282
|
+
{
|
|
283
|
+
"$ref": "#/$defs/printable"
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"minLength": 1,
|
|
287
|
+
"maxLength": 1024
|
|
288
|
+
}
|
|
289
|
+
]
|
|
290
|
+
},
|
|
291
|
+
"description": "What shows the stage: a specification, a commit, npm:<package>@<version>, owner/repo#n."
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
"specifications": {
|
|
296
|
+
"type": "array",
|
|
297
|
+
"minItems": 1,
|
|
298
|
+
"maxItems": 32,
|
|
299
|
+
"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.",
|
|
300
|
+
"items": {
|
|
301
|
+
"allOf": [
|
|
302
|
+
{
|
|
303
|
+
"$ref": "#/$defs/printable"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"minLength": 1,
|
|
307
|
+
"maxLength": 1024
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"anyOf": [
|
|
311
|
+
{
|
|
312
|
+
"pattern": "^rise://[A-Za-z0-9][A-Za-z0-9._-]*/[A-Za-z0-9][A-Za-z0-9._-]*/\\S+$"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"pattern": "^https://\\S+$"
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"pattern": "^(?![A-Za-z][A-Za-z0-9+.-]*:)(?!/)(?!(?:.*/)?\\.\\.(?:/|$))\\S+$"
|
|
319
|
+
}
|
|
320
|
+
]
|
|
321
|
+
}
|
|
322
|
+
]
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
"issues": {
|
|
326
|
+
"type": "array",
|
|
327
|
+
"minItems": 1,
|
|
328
|
+
"maxItems": 32,
|
|
329
|
+
"description": "Version 2. The issues that track it, owner/repo#n. Kept through every rescan.",
|
|
330
|
+
"items": {
|
|
331
|
+
"type": "string",
|
|
332
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*/[A-Za-z0-9][A-Za-z0-9._-]*#[1-9][0-9]*$"
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
"hosting": {
|
|
336
|
+
"type": "object",
|
|
337
|
+
"additionalProperties": false,
|
|
338
|
+
"required": [
|
|
339
|
+
"deployedBy",
|
|
340
|
+
"statedBy",
|
|
341
|
+
"statedAt",
|
|
342
|
+
"grounding"
|
|
343
|
+
],
|
|
344
|
+
"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.",
|
|
345
|
+
"properties": {
|
|
346
|
+
"urls": {
|
|
347
|
+
"type": "array",
|
|
348
|
+
"minItems": 1,
|
|
349
|
+
"maxItems": 8,
|
|
350
|
+
"description": "Where people open it or services call it.",
|
|
351
|
+
"items": {
|
|
352
|
+
"allOf": [
|
|
353
|
+
{
|
|
354
|
+
"$ref": "#/$defs/printable"
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"minLength": 1,
|
|
358
|
+
"maxLength": 1024
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
"pattern": "^https?://\\S+$"
|
|
362
|
+
}
|
|
363
|
+
]
|
|
364
|
+
}
|
|
365
|
+
},
|
|
366
|
+
"deployedBy": {
|
|
367
|
+
"allOf": [
|
|
368
|
+
{
|
|
369
|
+
"$ref": "#/$defs/printable"
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"minLength": 1,
|
|
373
|
+
"maxLength": 200
|
|
374
|
+
}
|
|
375
|
+
],
|
|
376
|
+
"description": "Who or what deploys it: 'v0, on Vercel', 'npm publish from this repository'."
|
|
377
|
+
},
|
|
378
|
+
"authoredIn": {
|
|
379
|
+
"allOf": [
|
|
380
|
+
{
|
|
381
|
+
"$ref": "#/$defs/printable"
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
"minLength": 1,
|
|
385
|
+
"maxLength": 200
|
|
386
|
+
}
|
|
387
|
+
],
|
|
388
|
+
"description": "Where its code is written when that is not this repository: the copy here is replaced at the next import."
|
|
389
|
+
},
|
|
390
|
+
"change": {
|
|
391
|
+
"allOf": [
|
|
392
|
+
{
|
|
393
|
+
"$ref": "#/$defs/printable"
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
"minLength": 1,
|
|
397
|
+
"maxLength": 1200
|
|
398
|
+
}
|
|
399
|
+
],
|
|
400
|
+
"description": "How a change reaches it: at most 55 words."
|
|
401
|
+
},
|
|
402
|
+
"statedBy": {
|
|
403
|
+
"allOf": [
|
|
404
|
+
{
|
|
405
|
+
"$ref": "#/$defs/printable"
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
"minLength": 1,
|
|
409
|
+
"maxLength": 200,
|
|
410
|
+
"not": {
|
|
411
|
+
"const": "mw-repomap scan"
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
],
|
|
415
|
+
"description": "A person or an agent: where a capability is hosted is never the scan's to say."
|
|
416
|
+
},
|
|
417
|
+
"statedAt": {
|
|
418
|
+
"$ref": "#/$defs/timestamp"
|
|
419
|
+
},
|
|
420
|
+
"grounding": {
|
|
421
|
+
"type": "array",
|
|
422
|
+
"minItems": 1,
|
|
423
|
+
"maxItems": 32,
|
|
424
|
+
"items": {
|
|
425
|
+
"allOf": [
|
|
426
|
+
{
|
|
427
|
+
"$ref": "#/$defs/printable"
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
"minLength": 1,
|
|
431
|
+
"maxLength": 1024
|
|
432
|
+
}
|
|
433
|
+
]
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
},
|
|
438
|
+
"episodes": {
|
|
439
|
+
"type": "array",
|
|
440
|
+
"minItems": 1,
|
|
441
|
+
"maxItems": 32,
|
|
442
|
+
"description": "Version 3. The chronicle episodes that hold it, miadi-chronicle://<n>. Kept through every rescan.",
|
|
443
|
+
"items": {
|
|
444
|
+
"type": "string",
|
|
445
|
+
"pattern": "^miadi-chronicle:(?://)?[A-Za-z0-9][A-Za-z0-9._-]{0,199}$"
|
|
446
|
+
}
|
|
447
|
+
},
|
|
448
|
+
"systems": {
|
|
449
|
+
"type": "array",
|
|
450
|
+
"minItems": 1,
|
|
451
|
+
"maxItems": 32,
|
|
452
|
+
"uniqueItems": true,
|
|
453
|
+
"items": {
|
|
454
|
+
"$ref": "#/$defs/systemRef"
|
|
455
|
+
},
|
|
456
|
+
"description": "Version 4. Stateloom systems cited by this capability."
|
|
457
|
+
},
|
|
458
|
+
"components": {
|
|
459
|
+
"type": "array",
|
|
460
|
+
"minItems": 1,
|
|
461
|
+
"uniqueItems": true,
|
|
462
|
+
"items": {
|
|
463
|
+
"$ref": "#/$defs/componentRef"
|
|
464
|
+
},
|
|
465
|
+
"description": "Version 4. Scanned and explicitly declared component capability addresses."
|
|
466
|
+
},
|
|
467
|
+
"declaredComponents": {
|
|
468
|
+
"type": "array",
|
|
469
|
+
"minItems": 1,
|
|
470
|
+
"uniqueItems": true,
|
|
471
|
+
"items": {
|
|
472
|
+
"$ref": "#/$defs/componentRef"
|
|
473
|
+
},
|
|
474
|
+
"description": "Version 4. Explicit component links kept through every rescan."
|
|
475
|
+
},
|
|
476
|
+
"plugin": {
|
|
477
|
+
"$ref": "#/$defs/pluginRef",
|
|
478
|
+
"description": "Version 4. Capability address of the plugin that carries this component."
|
|
479
|
+
},
|
|
480
|
+
"cli": {
|
|
481
|
+
"$ref": "#/$defs/cliRef",
|
|
482
|
+
"description": "Version 5. For a command of a CLI: the capability address of that CLI."
|
|
483
|
+
},
|
|
484
|
+
"commands": {
|
|
485
|
+
"type": "array",
|
|
486
|
+
"minItems": 1,
|
|
487
|
+
"uniqueItems": true,
|
|
488
|
+
"items": {
|
|
489
|
+
"$ref": "#/$defs/commandRef"
|
|
490
|
+
},
|
|
491
|
+
"description": "Version 5. For a CLI: the capability addresses of the commands the scanned commit carries. Written by the scan from the commands someone enrolled."
|
|
492
|
+
},
|
|
493
|
+
"consumers": {
|
|
494
|
+
"type": "array",
|
|
495
|
+
"minItems": 1,
|
|
496
|
+
"maxItems": 32,
|
|
497
|
+
"description": "Version 5. What reads this capability, in this repository or another, where no package.json says so. Said by a person or an agent, never by the scan, and kept through every rescan.",
|
|
498
|
+
"items": {
|
|
499
|
+
"type": "object",
|
|
500
|
+
"additionalProperties": false,
|
|
501
|
+
"required": [
|
|
502
|
+
"consumer",
|
|
503
|
+
"statedBy",
|
|
504
|
+
"statedAt"
|
|
505
|
+
],
|
|
506
|
+
"properties": {
|
|
507
|
+
"consumer": {
|
|
508
|
+
"$ref": "#/$defs/consumerRef"
|
|
509
|
+
},
|
|
510
|
+
"reads": {
|
|
511
|
+
"allOf": [
|
|
512
|
+
{
|
|
513
|
+
"$ref": "#/$defs/printable"
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
"minLength": 1,
|
|
517
|
+
"maxLength": 1200
|
|
518
|
+
}
|
|
519
|
+
],
|
|
520
|
+
"description": "What the consumer reads, at most 55 words."
|
|
521
|
+
},
|
|
522
|
+
"statedBy": {
|
|
523
|
+
"allOf": [
|
|
524
|
+
{
|
|
525
|
+
"$ref": "#/$defs/printable"
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
"minLength": 1,
|
|
529
|
+
"maxLength": 200,
|
|
530
|
+
"not": {
|
|
531
|
+
"const": "mw-repomap scan"
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
],
|
|
535
|
+
"description": "A person or an agent: what reads a capability is never the scan's to say."
|
|
536
|
+
},
|
|
537
|
+
"statedAt": {
|
|
538
|
+
"$ref": "#/$defs/timestamp"
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
},
|
|
543
|
+
"statedBy": {
|
|
544
|
+
"allOf": [
|
|
545
|
+
{
|
|
546
|
+
"$ref": "#/$defs/printable"
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
"minLength": 1,
|
|
550
|
+
"maxLength": 200
|
|
551
|
+
}
|
|
552
|
+
],
|
|
553
|
+
"description": "\"mw-repomap scan\" for a row the scan wrote; any other name is a person's, and a rescan keeps its words."
|
|
554
|
+
},
|
|
555
|
+
"statedAt": {
|
|
556
|
+
"$ref": "#/$defs/timestamp"
|
|
557
|
+
},
|
|
558
|
+
"grounding": {
|
|
559
|
+
"type": "array",
|
|
560
|
+
"minItems": 1,
|
|
561
|
+
"items": {
|
|
562
|
+
"allOf": [
|
|
563
|
+
{
|
|
564
|
+
"$ref": "#/$defs/printable"
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
"minLength": 1,
|
|
568
|
+
"maxLength": 1024
|
|
569
|
+
}
|
|
570
|
+
]
|
|
571
|
+
},
|
|
572
|
+
"description": "The files that say so, relative to the repository. A reader adds the commit it read: owner/name@commit:path."
|
|
573
|
+
},
|
|
574
|
+
"revision": {
|
|
575
|
+
"enum": [
|
|
576
|
+
"pending",
|
|
577
|
+
"revised",
|
|
578
|
+
"affirmed"
|
|
579
|
+
]
|
|
580
|
+
},
|
|
581
|
+
"revisedBy": {
|
|
582
|
+
"allOf": [
|
|
583
|
+
{
|
|
584
|
+
"$ref": "#/$defs/printable"
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
"minLength": 1,
|
|
588
|
+
"maxLength": 200
|
|
589
|
+
}
|
|
590
|
+
]
|
|
591
|
+
},
|
|
592
|
+
"revisedAt": {
|
|
593
|
+
"$ref": "#/$defs/timestamp"
|
|
594
|
+
}
|
|
595
|
+
},
|
|
596
|
+
"allOf": [
|
|
597
|
+
{
|
|
598
|
+
"if": {
|
|
599
|
+
"properties": {
|
|
600
|
+
"status": {
|
|
601
|
+
"enum": [
|
|
602
|
+
"clear",
|
|
603
|
+
"unclear"
|
|
604
|
+
]
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
},
|
|
608
|
+
"then": {
|
|
609
|
+
"required": [
|
|
610
|
+
"statement"
|
|
611
|
+
]
|
|
612
|
+
}
|
|
613
|
+
},
|
|
614
|
+
{
|
|
615
|
+
"if": {
|
|
616
|
+
"properties": {
|
|
617
|
+
"revision": {
|
|
618
|
+
"enum": [
|
|
619
|
+
"revised",
|
|
620
|
+
"affirmed"
|
|
621
|
+
]
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
},
|
|
625
|
+
"then": {
|
|
626
|
+
"required": [
|
|
627
|
+
"revisedBy",
|
|
628
|
+
"revisedAt"
|
|
629
|
+
]
|
|
630
|
+
}
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
"if": {
|
|
634
|
+
"anyOf": [
|
|
635
|
+
{
|
|
636
|
+
"required": [
|
|
637
|
+
"components"
|
|
638
|
+
]
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
"required": [
|
|
642
|
+
"declaredComponents"
|
|
643
|
+
]
|
|
644
|
+
}
|
|
645
|
+
]
|
|
646
|
+
},
|
|
647
|
+
"then": {
|
|
648
|
+
"properties": {
|
|
649
|
+
"kind": {
|
|
650
|
+
"const": "plugin"
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
"if": {
|
|
657
|
+
"required": [
|
|
658
|
+
"plugin"
|
|
659
|
+
]
|
|
660
|
+
},
|
|
661
|
+
"then": {
|
|
662
|
+
"properties": {
|
|
663
|
+
"kind": {
|
|
664
|
+
"enum": [
|
|
665
|
+
"skill",
|
|
666
|
+
"agent",
|
|
667
|
+
"command",
|
|
668
|
+
"hook",
|
|
669
|
+
"mcp-server"
|
|
670
|
+
]
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
},
|
|
675
|
+
{
|
|
676
|
+
"if": {
|
|
677
|
+
"required": [
|
|
678
|
+
"cli"
|
|
679
|
+
]
|
|
680
|
+
},
|
|
681
|
+
"then": {
|
|
682
|
+
"properties": {
|
|
683
|
+
"kind": {
|
|
684
|
+
"const": "command"
|
|
685
|
+
}
|
|
686
|
+
},
|
|
687
|
+
"not": {
|
|
688
|
+
"required": [
|
|
689
|
+
"plugin"
|
|
690
|
+
]
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
"if": {
|
|
696
|
+
"required": [
|
|
697
|
+
"commands"
|
|
698
|
+
]
|
|
699
|
+
},
|
|
700
|
+
"then": {
|
|
701
|
+
"properties": {
|
|
702
|
+
"kind": {
|
|
703
|
+
"const": "cli"
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
]
|
|
709
|
+
},
|
|
710
|
+
"systemRef": {
|
|
711
|
+
"type": "string",
|
|
712
|
+
"maxLength": 1024,
|
|
713
|
+
"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])"
|
|
714
|
+
},
|
|
715
|
+
"componentRef": {
|
|
716
|
+
"type": "string",
|
|
717
|
+
"maxLength": 419,
|
|
718
|
+
"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])"
|
|
719
|
+
},
|
|
720
|
+
"pluginRef": {
|
|
721
|
+
"type": "string",
|
|
722
|
+
"maxLength": 419,
|
|
723
|
+
"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])"
|
|
724
|
+
},
|
|
725
|
+
"cliRef": {
|
|
726
|
+
"type": "string",
|
|
727
|
+
"maxLength": 419,
|
|
728
|
+
"pattern": "^miadi-capability://[A-Za-z0-9][A-Za-z0-9._-]{0,99}/(?![^/]*\\.git/)[A-Za-z0-9][A-Za-z0-9._-]{0,99}/cli/(?!\\.{1,2}(?:/|$))[A-Za-z0-9_@.~+-]{1,214}$(?![\\s\\S])"
|
|
729
|
+
},
|
|
730
|
+
"consumerRef": {
|
|
731
|
+
"allOf": [
|
|
732
|
+
{
|
|
733
|
+
"$ref": "#/$defs/printable"
|
|
734
|
+
},
|
|
735
|
+
{
|
|
736
|
+
"maxLength": 1024,
|
|
737
|
+
"pattern": "^(?:miadi-capability://[A-Za-z0-9][A-Za-z0-9._-]{0,99}/(?![^/]*\\.git/)[A-Za-z0-9][A-Za-z0-9._-]{0,99}/[a-z][a-z0-9-]{0,39}/(?:(?!\\.{1,2}(?:/|$))[A-Za-z0-9_@.~+-]{1,214}/)*(?!\\.{1,2}(?:/|$))[A-Za-z0-9_@.~+-]{1,214}$(?![\\s\\S])|https://[^\\s]+$)"
|
|
738
|
+
}
|
|
739
|
+
],
|
|
740
|
+
"description": "A capability address (miadi-capability://<owner>/<repo>/<kind>/<name>) or an https:// URL."
|
|
741
|
+
},
|
|
742
|
+
"commandRef": {
|
|
743
|
+
"type": "string",
|
|
744
|
+
"maxLength": 419,
|
|
745
|
+
"pattern": "^miadi-capability://[A-Za-z0-9][A-Za-z0-9._-]{0,99}/(?![^/]*\\.git/)[A-Za-z0-9][A-Za-z0-9._-]{0,99}/command/(?:(?!\\.{1,2}(?:/|$))[A-Za-z0-9_@.~+-]{1,214}/)+(?!\\.{1,2}(?:/|$))[A-Za-z0-9_@.~+-]{1,214}$(?![\\s\\S])"
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
}
|