@drisp/protocol 0.6.0 → 0.6.2

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,13 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "hubEpoch": {
6
+ "type": "string"
7
+ }
8
+ },
9
+ "required": [
10
+ "hubEpoch"
11
+ ],
12
+ "additionalProperties": false
13
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "disconnected": {
6
+ "type": "boolean",
7
+ "const": true
8
+ },
9
+ "stoppedRuns": {
10
+ "type": "integer",
11
+ "minimum": 0,
12
+ "maximum": 9007199254740991
13
+ }
14
+ },
15
+ "required": [
16
+ "disconnected",
17
+ "stoppedRuns"
18
+ ],
19
+ "additionalProperties": false
20
+ }
@@ -0,0 +1,58 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "runnerId": {
6
+ "type": "string",
7
+ "minLength": 1,
8
+ "maxLength": 160
9
+ },
10
+ "name": {
11
+ "type": [
12
+ "string",
13
+ "null"
14
+ ]
15
+ },
16
+ "runs": {
17
+ "type": "array",
18
+ "items": {
19
+ "type": "object",
20
+ "properties": {
21
+ "runId": {
22
+ "type": "string",
23
+ "minLength": 1,
24
+ "maxLength": 160
25
+ },
26
+ "label": {
27
+ "type": "string"
28
+ },
29
+ "state": {
30
+ "type": "string",
31
+ "enum": [
32
+ "working",
33
+ "parked",
34
+ "queued"
35
+ ]
36
+ }
37
+ },
38
+ "required": [
39
+ "runId",
40
+ "state"
41
+ ],
42
+ "additionalProperties": false
43
+ }
44
+ },
45
+ "hiddenRuns": {
46
+ "type": "integer",
47
+ "minimum": 0,
48
+ "maximum": 9007199254740991
49
+ }
50
+ },
51
+ "required": [
52
+ "runnerId",
53
+ "name",
54
+ "runs",
55
+ "hiddenRuns"
56
+ ],
57
+ "additionalProperties": false
58
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "hubEpoch": {
6
+ "type": "string"
7
+ }
8
+ },
9
+ "required": [
10
+ "hubEpoch"
11
+ ],
12
+ "additionalProperties": false
13
+ }
@@ -0,0 +1,459 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "capabilities": {
6
+ "type": "object",
7
+ "propertyNames": {
8
+ "type": "string"
9
+ },
10
+ "additionalProperties": {
11
+ "type": "boolean"
12
+ }
13
+ },
14
+ "historyRetentionDays": {
15
+ "anyOf": [
16
+ {
17
+ "type": "integer",
18
+ "exclusiveMinimum": 0,
19
+ "maximum": 9007199254740991
20
+ },
21
+ {
22
+ "type": "null"
23
+ }
24
+ ]
25
+ },
26
+ "viewer": {
27
+ "type": "object",
28
+ "properties": {
29
+ "userId": {
30
+ "type": "string"
31
+ },
32
+ "admin": {
33
+ "type": "boolean"
34
+ }
35
+ },
36
+ "required": [
37
+ "userId",
38
+ "admin"
39
+ ],
40
+ "additionalProperties": false
41
+ },
42
+ "teamDefault": {
43
+ "anyOf": [
44
+ {
45
+ "oneOf": [
46
+ {
47
+ "type": "object",
48
+ "properties": {
49
+ "kind": {
50
+ "type": "string",
51
+ "const": "runner"
52
+ },
53
+ "runnerId": {
54
+ "type": "string",
55
+ "minLength": 1,
56
+ "maxLength": 160
57
+ }
58
+ },
59
+ "required": [
60
+ "kind",
61
+ "runnerId"
62
+ ],
63
+ "additionalProperties": false
64
+ },
65
+ {
66
+ "type": "object",
67
+ "properties": {
68
+ "kind": {
69
+ "type": "string",
70
+ "const": "profile"
71
+ },
72
+ "profileId": {
73
+ "type": "string",
74
+ "minLength": 1,
75
+ "maxLength": 160
76
+ }
77
+ },
78
+ "required": [
79
+ "kind",
80
+ "profileId"
81
+ ],
82
+ "additionalProperties": false
83
+ }
84
+ ]
85
+ },
86
+ {
87
+ "type": "null"
88
+ }
89
+ ]
90
+ },
91
+ "runsGoTo": {
92
+ "anyOf": [
93
+ {
94
+ "type": "object",
95
+ "properties": {
96
+ "via": {
97
+ "type": "string",
98
+ "const": "personal"
99
+ },
100
+ "runnerId": {
101
+ "type": "string",
102
+ "minLength": 1,
103
+ "maxLength": 160
104
+ }
105
+ },
106
+ "required": [
107
+ "via",
108
+ "runnerId"
109
+ ],
110
+ "additionalProperties": false
111
+ },
112
+ {
113
+ "type": "object",
114
+ "properties": {
115
+ "via": {
116
+ "type": "string",
117
+ "const": "team_default"
118
+ },
119
+ "runnerId": {
120
+ "type": "string",
121
+ "minLength": 1,
122
+ "maxLength": 160
123
+ }
124
+ },
125
+ "required": [
126
+ "via",
127
+ "runnerId"
128
+ ],
129
+ "additionalProperties": false
130
+ },
131
+ {
132
+ "type": "object",
133
+ "properties": {
134
+ "via": {
135
+ "type": "string",
136
+ "const": "team_default"
137
+ },
138
+ "profileId": {
139
+ "type": "string",
140
+ "minLength": 1,
141
+ "maxLength": 160
142
+ }
143
+ },
144
+ "required": [
145
+ "via",
146
+ "profileId"
147
+ ],
148
+ "additionalProperties": false
149
+ },
150
+ {
151
+ "type": "object",
152
+ "properties": {
153
+ "via": {
154
+ "type": "string",
155
+ "const": "none"
156
+ },
157
+ "reason": {
158
+ "type": "string",
159
+ "enum": [
160
+ "no_runner_available",
161
+ "runner_needs_owner"
162
+ ]
163
+ }
164
+ },
165
+ "required": [
166
+ "via",
167
+ "reason"
168
+ ],
169
+ "additionalProperties": false
170
+ }
171
+ ]
172
+ },
173
+ "minimumRunnerVersion": {
174
+ "type": "string"
175
+ },
176
+ "runners": {
177
+ "type": "array",
178
+ "items": {
179
+ "type": "object",
180
+ "properties": {
181
+ "id": {
182
+ "type": "string",
183
+ "minLength": 1,
184
+ "maxLength": 160
185
+ },
186
+ "online": {
187
+ "type": "number"
188
+ },
189
+ "capacity": {
190
+ "type": "number"
191
+ },
192
+ "managed": {
193
+ "type": "number"
194
+ },
195
+ "draining": {
196
+ "type": "number"
197
+ },
198
+ "stopped": {
199
+ "type": "number"
200
+ },
201
+ "name": {
202
+ "type": [
203
+ "string",
204
+ "null"
205
+ ]
206
+ },
207
+ "connectedBy": {
208
+ "type": [
209
+ "string",
210
+ "null"
211
+ ]
212
+ },
213
+ "audience": {
214
+ "anyOf": [
215
+ {
216
+ "type": "string",
217
+ "enum": [
218
+ "personal",
219
+ "team"
220
+ ]
221
+ },
222
+ {
223
+ "type": "null"
224
+ }
225
+ ]
226
+ },
227
+ "softwareVersion": {
228
+ "type": [
229
+ "string",
230
+ "null"
231
+ ]
232
+ },
233
+ "lastSeen": {
234
+ "anyOf": [
235
+ {
236
+ "type": "integer",
237
+ "minimum": 0,
238
+ "maximum": 9007199254740991
239
+ },
240
+ {
241
+ "type": "null"
242
+ }
243
+ ]
244
+ },
245
+ "workflows": {
246
+ "maxItems": 256,
247
+ "type": "array",
248
+ "items": {
249
+ "type": "object",
250
+ "properties": {
251
+ "name": {
252
+ "type": "string",
253
+ "minLength": 1
254
+ },
255
+ "version": {
256
+ "type": "string"
257
+ },
258
+ "source": {
259
+ "oneOf": [
260
+ {
261
+ "type": "object",
262
+ "properties": {
263
+ "kind": {
264
+ "type": "string",
265
+ "const": "builtin"
266
+ }
267
+ },
268
+ "required": [
269
+ "kind"
270
+ ],
271
+ "additionalProperties": false
272
+ },
273
+ {
274
+ "type": "object",
275
+ "properties": {
276
+ "kind": {
277
+ "type": "string",
278
+ "const": "marketplace-remote"
279
+ },
280
+ "ref": {
281
+ "type": "string"
282
+ }
283
+ },
284
+ "required": [
285
+ "kind",
286
+ "ref"
287
+ ],
288
+ "additionalProperties": false
289
+ },
290
+ {
291
+ "type": "object",
292
+ "properties": {
293
+ "kind": {
294
+ "type": "string",
295
+ "const": "marketplace-local"
296
+ },
297
+ "repoDir": {
298
+ "type": "string"
299
+ },
300
+ "workflowName": {
301
+ "type": "string"
302
+ }
303
+ },
304
+ "required": [
305
+ "kind",
306
+ "repoDir",
307
+ "workflowName"
308
+ ],
309
+ "additionalProperties": false
310
+ },
311
+ {
312
+ "type": "object",
313
+ "properties": {
314
+ "kind": {
315
+ "type": "string",
316
+ "const": "filesystem"
317
+ },
318
+ "path": {
319
+ "type": "string"
320
+ }
321
+ },
322
+ "required": [
323
+ "kind",
324
+ "path"
325
+ ],
326
+ "additionalProperties": false
327
+ },
328
+ {
329
+ "type": "object",
330
+ "properties": {
331
+ "kind": {
332
+ "type": "string",
333
+ "const": "unknown"
334
+ }
335
+ },
336
+ "required": [
337
+ "kind"
338
+ ],
339
+ "additionalProperties": false
340
+ }
341
+ ]
342
+ }
343
+ },
344
+ "required": [
345
+ "name",
346
+ "source"
347
+ ],
348
+ "additionalProperties": false
349
+ }
350
+ },
351
+ "readOnly": {
352
+ "type": "boolean"
353
+ },
354
+ "readiness": {
355
+ "type": "object",
356
+ "properties": {
357
+ "claude-code": {
358
+ "type": "object",
359
+ "properties": {
360
+ "installed": {
361
+ "type": "boolean"
362
+ },
363
+ "signedIn": {
364
+ "type": "boolean"
365
+ }
366
+ },
367
+ "required": [
368
+ "installed",
369
+ "signedIn"
370
+ ],
371
+ "additionalProperties": false
372
+ },
373
+ "codex": {
374
+ "type": "object",
375
+ "properties": {
376
+ "installed": {
377
+ "type": "boolean"
378
+ },
379
+ "signedIn": {
380
+ "type": "boolean"
381
+ }
382
+ },
383
+ "required": [
384
+ "installed",
385
+ "signedIn"
386
+ ],
387
+ "additionalProperties": false
388
+ }
389
+ },
390
+ "additionalProperties": false
391
+ },
392
+ "updateRequired": {
393
+ "type": "boolean"
394
+ },
395
+ "needsOwner": {
396
+ "type": "boolean"
397
+ }
398
+ },
399
+ "required": [
400
+ "id",
401
+ "online",
402
+ "capacity",
403
+ "managed",
404
+ "draining",
405
+ "stopped",
406
+ "name",
407
+ "connectedBy",
408
+ "audience",
409
+ "softwareVersion",
410
+ "lastSeen"
411
+ ],
412
+ "additionalProperties": false
413
+ }
414
+ },
415
+ "profiles": {
416
+ "type": "array",
417
+ "items": {
418
+ "type": "object",
419
+ "properties": {
420
+ "id": {
421
+ "type": "string"
422
+ },
423
+ "label": {
424
+ "type": "string"
425
+ },
426
+ "projectDir": {
427
+ "type": "string"
428
+ },
429
+ "repositoryRequired": {
430
+ "type": "boolean"
431
+ },
432
+ "workflows": {
433
+ "type": "array",
434
+ "items": {
435
+ "type": "string"
436
+ }
437
+ },
438
+ "workflowSources": {
439
+ "type": "array",
440
+ "items": {
441
+ "type": "string"
442
+ }
443
+ }
444
+ },
445
+ "required": [
446
+ "id",
447
+ "label",
448
+ "projectDir"
449
+ ],
450
+ "additionalProperties": false
451
+ }
452
+ }
453
+ },
454
+ "required": [
455
+ "runners",
456
+ "profiles"
457
+ ],
458
+ "additionalProperties": false
459
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "hubEpoch": {
6
+ "type": "string"
7
+ },
8
+ "name": {
9
+ "type": "string",
10
+ "maxLength": 100
11
+ },
12
+ "capacity": {
13
+ "type": "integer",
14
+ "minimum": 1,
15
+ "maximum": 64
16
+ },
17
+ "audience": {
18
+ "type": "string",
19
+ "enum": [
20
+ "personal",
21
+ "team"
22
+ ]
23
+ }
24
+ },
25
+ "required": [
26
+ "hubEpoch"
27
+ ],
28
+ "additionalProperties": false
29
+ }
@@ -0,0 +1,63 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "hubEpoch": {
6
+ "type": "string"
7
+ },
8
+ "teamDefault": {
9
+ "anyOf": [
10
+ {
11
+ "oneOf": [
12
+ {
13
+ "type": "object",
14
+ "properties": {
15
+ "kind": {
16
+ "type": "string",
17
+ "const": "runner"
18
+ },
19
+ "runnerId": {
20
+ "type": "string",
21
+ "minLength": 1,
22
+ "maxLength": 160
23
+ }
24
+ },
25
+ "required": [
26
+ "kind",
27
+ "runnerId"
28
+ ],
29
+ "additionalProperties": false
30
+ },
31
+ {
32
+ "type": "object",
33
+ "properties": {
34
+ "kind": {
35
+ "type": "string",
36
+ "const": "profile"
37
+ },
38
+ "profileId": {
39
+ "type": "string",
40
+ "minLength": 1,
41
+ "maxLength": 160
42
+ }
43
+ },
44
+ "required": [
45
+ "kind",
46
+ "profileId"
47
+ ],
48
+ "additionalProperties": false
49
+ }
50
+ ]
51
+ },
52
+ {
53
+ "type": "null"
54
+ }
55
+ ]
56
+ }
57
+ },
58
+ "required": [
59
+ "hubEpoch",
60
+ "teamDefault"
61
+ ],
62
+ "additionalProperties": false
63
+ }