@drisp/protocol 0.8.8 → 0.9.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.
- package/dist/v2.d.ts +13083 -274
- package/dist/v2.js +3425 -526
- package/package.json +1 -1
- package/schema/v2/checkpoint.json +82 -16
- package/schema/v2/client.json +39 -19
- package/schema/v2/command.json +39 -19
- package/schema/v2/deliveredCommand.json +39 -19
- package/schema/v2/grant.json +82 -16
- package/schema/v2/run.json +49 -44
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@drisp/protocol",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "Wire contract between a drisp runner and the hub: zod schemas, inferred types, and JSON Schema for the instance-socket frames, Run, Turn, Interruption, and the event stream",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -253,6 +253,45 @@
|
|
|
253
253
|
"configRevision"
|
|
254
254
|
],
|
|
255
255
|
"additionalProperties": false
|
|
256
|
+
},
|
|
257
|
+
"gates": {
|
|
258
|
+
"type": "object",
|
|
259
|
+
"properties": {
|
|
260
|
+
"planApproval": {
|
|
261
|
+
"type": "string",
|
|
262
|
+
"enum": [
|
|
263
|
+
"ask",
|
|
264
|
+
"auto"
|
|
265
|
+
]
|
|
266
|
+
},
|
|
267
|
+
"merge": {
|
|
268
|
+
"type": "string",
|
|
269
|
+
"enum": [
|
|
270
|
+
"ask",
|
|
271
|
+
"auto"
|
|
272
|
+
]
|
|
273
|
+
},
|
|
274
|
+
"budget": {
|
|
275
|
+
"type": "string",
|
|
276
|
+
"enum": [
|
|
277
|
+
"ask",
|
|
278
|
+
"auto"
|
|
279
|
+
]
|
|
280
|
+
},
|
|
281
|
+
"irreversible": {
|
|
282
|
+
"type": "string",
|
|
283
|
+
"enum": [
|
|
284
|
+
"ask",
|
|
285
|
+
"auto"
|
|
286
|
+
]
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
"additionalProperties": false
|
|
290
|
+
},
|
|
291
|
+
"tokenBudget": {
|
|
292
|
+
"type": "integer",
|
|
293
|
+
"exclusiveMinimum": 0,
|
|
294
|
+
"maximum": 9007199254740991
|
|
256
295
|
}
|
|
257
296
|
},
|
|
258
297
|
"required": [
|
|
@@ -343,29 +382,56 @@
|
|
|
343
382
|
"minLength": 32,
|
|
344
383
|
"maxLength": 256
|
|
345
384
|
},
|
|
346
|
-
"
|
|
385
|
+
"reportUsage": {
|
|
386
|
+
"type": "boolean",
|
|
387
|
+
"const": true
|
|
388
|
+
},
|
|
389
|
+
"sessionControl": {
|
|
390
|
+
"type": "boolean",
|
|
391
|
+
"const": true
|
|
392
|
+
},
|
|
393
|
+
"supervised": {
|
|
394
|
+
"type": "boolean",
|
|
395
|
+
"const": true
|
|
396
|
+
},
|
|
397
|
+
"tokenBudget": {
|
|
398
|
+
"type": "integer",
|
|
399
|
+
"exclusiveMinimum": 0,
|
|
400
|
+
"maximum": 9007199254740991
|
|
401
|
+
},
|
|
402
|
+
"teamGates": {
|
|
347
403
|
"type": "object",
|
|
348
404
|
"properties": {
|
|
349
|
-
"
|
|
405
|
+
"planApproval": {
|
|
350
406
|
"type": "string",
|
|
351
|
-
"
|
|
352
|
-
|
|
407
|
+
"enum": [
|
|
408
|
+
"ask",
|
|
409
|
+
"auto"
|
|
410
|
+
]
|
|
353
411
|
},
|
|
354
|
-
"
|
|
355
|
-
"type": "
|
|
356
|
-
"
|
|
357
|
-
|
|
412
|
+
"merge": {
|
|
413
|
+
"type": "string",
|
|
414
|
+
"enum": [
|
|
415
|
+
"ask",
|
|
416
|
+
"auto"
|
|
417
|
+
]
|
|
418
|
+
},
|
|
419
|
+
"budget": {
|
|
420
|
+
"type": "string",
|
|
421
|
+
"enum": [
|
|
422
|
+
"ask",
|
|
423
|
+
"auto"
|
|
424
|
+
]
|
|
425
|
+
},
|
|
426
|
+
"irreversible": {
|
|
427
|
+
"type": "string",
|
|
428
|
+
"enum": [
|
|
429
|
+
"ask",
|
|
430
|
+
"auto"
|
|
431
|
+
]
|
|
358
432
|
}
|
|
359
433
|
},
|
|
360
|
-
"required": [
|
|
361
|
-
"runId",
|
|
362
|
-
"tokenCap"
|
|
363
|
-
],
|
|
364
434
|
"additionalProperties": false
|
|
365
|
-
},
|
|
366
|
-
"reportUsage": {
|
|
367
|
-
"type": "boolean",
|
|
368
|
-
"const": true
|
|
369
435
|
}
|
|
370
436
|
},
|
|
371
437
|
"required": [
|
package/schema/v2/client.json
CHANGED
|
@@ -285,6 +285,45 @@
|
|
|
285
285
|
"configRevision"
|
|
286
286
|
],
|
|
287
287
|
"additionalProperties": false
|
|
288
|
+
},
|
|
289
|
+
"gates": {
|
|
290
|
+
"type": "object",
|
|
291
|
+
"properties": {
|
|
292
|
+
"planApproval": {
|
|
293
|
+
"type": "string",
|
|
294
|
+
"enum": [
|
|
295
|
+
"ask",
|
|
296
|
+
"auto"
|
|
297
|
+
]
|
|
298
|
+
},
|
|
299
|
+
"merge": {
|
|
300
|
+
"type": "string",
|
|
301
|
+
"enum": [
|
|
302
|
+
"ask",
|
|
303
|
+
"auto"
|
|
304
|
+
]
|
|
305
|
+
},
|
|
306
|
+
"budget": {
|
|
307
|
+
"type": "string",
|
|
308
|
+
"enum": [
|
|
309
|
+
"ask",
|
|
310
|
+
"auto"
|
|
311
|
+
]
|
|
312
|
+
},
|
|
313
|
+
"irreversible": {
|
|
314
|
+
"type": "string",
|
|
315
|
+
"enum": [
|
|
316
|
+
"ask",
|
|
317
|
+
"auto"
|
|
318
|
+
]
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
"additionalProperties": false
|
|
322
|
+
},
|
|
323
|
+
"tokenBudget": {
|
|
324
|
+
"type": "integer",
|
|
325
|
+
"exclusiveMinimum": 0,
|
|
326
|
+
"maximum": 9007199254740991
|
|
288
327
|
}
|
|
289
328
|
},
|
|
290
329
|
"required": [
|
|
@@ -317,25 +356,6 @@
|
|
|
317
356
|
"tokenBudget"
|
|
318
357
|
],
|
|
319
358
|
"additionalProperties": false
|
|
320
|
-
},
|
|
321
|
-
"parent": {
|
|
322
|
-
"type": "object",
|
|
323
|
-
"properties": {
|
|
324
|
-
"runId": {
|
|
325
|
-
"type": "string",
|
|
326
|
-
"minLength": 1,
|
|
327
|
-
"maxLength": 160
|
|
328
|
-
},
|
|
329
|
-
"tokenCap": {
|
|
330
|
-
"type": "integer",
|
|
331
|
-
"exclusiveMinimum": 0,
|
|
332
|
-
"maximum": 9007199254740991
|
|
333
|
-
}
|
|
334
|
-
},
|
|
335
|
-
"required": [
|
|
336
|
-
"runId"
|
|
337
|
-
],
|
|
338
|
-
"additionalProperties": false
|
|
339
359
|
}
|
|
340
360
|
},
|
|
341
361
|
"required": [
|
package/schema/v2/command.json
CHANGED
|
@@ -222,6 +222,45 @@
|
|
|
222
222
|
"configRevision"
|
|
223
223
|
],
|
|
224
224
|
"additionalProperties": false
|
|
225
|
+
},
|
|
226
|
+
"gates": {
|
|
227
|
+
"type": "object",
|
|
228
|
+
"properties": {
|
|
229
|
+
"planApproval": {
|
|
230
|
+
"type": "string",
|
|
231
|
+
"enum": [
|
|
232
|
+
"ask",
|
|
233
|
+
"auto"
|
|
234
|
+
]
|
|
235
|
+
},
|
|
236
|
+
"merge": {
|
|
237
|
+
"type": "string",
|
|
238
|
+
"enum": [
|
|
239
|
+
"ask",
|
|
240
|
+
"auto"
|
|
241
|
+
]
|
|
242
|
+
},
|
|
243
|
+
"budget": {
|
|
244
|
+
"type": "string",
|
|
245
|
+
"enum": [
|
|
246
|
+
"ask",
|
|
247
|
+
"auto"
|
|
248
|
+
]
|
|
249
|
+
},
|
|
250
|
+
"irreversible": {
|
|
251
|
+
"type": "string",
|
|
252
|
+
"enum": [
|
|
253
|
+
"ask",
|
|
254
|
+
"auto"
|
|
255
|
+
]
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
"additionalProperties": false
|
|
259
|
+
},
|
|
260
|
+
"tokenBudget": {
|
|
261
|
+
"type": "integer",
|
|
262
|
+
"exclusiveMinimum": 0,
|
|
263
|
+
"maximum": 9007199254740991
|
|
225
264
|
}
|
|
226
265
|
},
|
|
227
266
|
"required": [
|
|
@@ -254,25 +293,6 @@
|
|
|
254
293
|
"tokenBudget"
|
|
255
294
|
],
|
|
256
295
|
"additionalProperties": false
|
|
257
|
-
},
|
|
258
|
-
"parent": {
|
|
259
|
-
"type": "object",
|
|
260
|
-
"properties": {
|
|
261
|
-
"runId": {
|
|
262
|
-
"type": "string",
|
|
263
|
-
"minLength": 1,
|
|
264
|
-
"maxLength": 160
|
|
265
|
-
},
|
|
266
|
-
"tokenCap": {
|
|
267
|
-
"type": "integer",
|
|
268
|
-
"exclusiveMinimum": 0,
|
|
269
|
-
"maximum": 9007199254740991
|
|
270
|
-
}
|
|
271
|
-
},
|
|
272
|
-
"required": [
|
|
273
|
-
"runId"
|
|
274
|
-
],
|
|
275
|
-
"additionalProperties": false
|
|
276
296
|
}
|
|
277
297
|
},
|
|
278
298
|
"required": [
|
|
@@ -222,6 +222,45 @@
|
|
|
222
222
|
"configRevision"
|
|
223
223
|
],
|
|
224
224
|
"additionalProperties": false
|
|
225
|
+
},
|
|
226
|
+
"gates": {
|
|
227
|
+
"type": "object",
|
|
228
|
+
"properties": {
|
|
229
|
+
"planApproval": {
|
|
230
|
+
"type": "string",
|
|
231
|
+
"enum": [
|
|
232
|
+
"ask",
|
|
233
|
+
"auto"
|
|
234
|
+
]
|
|
235
|
+
},
|
|
236
|
+
"merge": {
|
|
237
|
+
"type": "string",
|
|
238
|
+
"enum": [
|
|
239
|
+
"ask",
|
|
240
|
+
"auto"
|
|
241
|
+
]
|
|
242
|
+
},
|
|
243
|
+
"budget": {
|
|
244
|
+
"type": "string",
|
|
245
|
+
"enum": [
|
|
246
|
+
"ask",
|
|
247
|
+
"auto"
|
|
248
|
+
]
|
|
249
|
+
},
|
|
250
|
+
"irreversible": {
|
|
251
|
+
"type": "string",
|
|
252
|
+
"enum": [
|
|
253
|
+
"ask",
|
|
254
|
+
"auto"
|
|
255
|
+
]
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
"additionalProperties": false
|
|
259
|
+
},
|
|
260
|
+
"tokenBudget": {
|
|
261
|
+
"type": "integer",
|
|
262
|
+
"exclusiveMinimum": 0,
|
|
263
|
+
"maximum": 9007199254740991
|
|
225
264
|
}
|
|
226
265
|
},
|
|
227
266
|
"required": [
|
|
@@ -254,25 +293,6 @@
|
|
|
254
293
|
"tokenBudget"
|
|
255
294
|
],
|
|
256
295
|
"additionalProperties": false
|
|
257
|
-
},
|
|
258
|
-
"parent": {
|
|
259
|
-
"type": "object",
|
|
260
|
-
"properties": {
|
|
261
|
-
"runId": {
|
|
262
|
-
"type": "string",
|
|
263
|
-
"minLength": 1,
|
|
264
|
-
"maxLength": 160
|
|
265
|
-
},
|
|
266
|
-
"tokenCap": {
|
|
267
|
-
"type": "integer",
|
|
268
|
-
"exclusiveMinimum": 0,
|
|
269
|
-
"maximum": 9007199254740991
|
|
270
|
-
}
|
|
271
|
-
},
|
|
272
|
-
"required": [
|
|
273
|
-
"runId"
|
|
274
|
-
],
|
|
275
|
-
"additionalProperties": false
|
|
276
296
|
}
|
|
277
297
|
},
|
|
278
298
|
"required": [
|
package/schema/v2/grant.json
CHANGED
|
@@ -204,6 +204,45 @@
|
|
|
204
204
|
"configRevision"
|
|
205
205
|
],
|
|
206
206
|
"additionalProperties": false
|
|
207
|
+
},
|
|
208
|
+
"gates": {
|
|
209
|
+
"type": "object",
|
|
210
|
+
"properties": {
|
|
211
|
+
"planApproval": {
|
|
212
|
+
"type": "string",
|
|
213
|
+
"enum": [
|
|
214
|
+
"ask",
|
|
215
|
+
"auto"
|
|
216
|
+
]
|
|
217
|
+
},
|
|
218
|
+
"merge": {
|
|
219
|
+
"type": "string",
|
|
220
|
+
"enum": [
|
|
221
|
+
"ask",
|
|
222
|
+
"auto"
|
|
223
|
+
]
|
|
224
|
+
},
|
|
225
|
+
"budget": {
|
|
226
|
+
"type": "string",
|
|
227
|
+
"enum": [
|
|
228
|
+
"ask",
|
|
229
|
+
"auto"
|
|
230
|
+
]
|
|
231
|
+
},
|
|
232
|
+
"irreversible": {
|
|
233
|
+
"type": "string",
|
|
234
|
+
"enum": [
|
|
235
|
+
"ask",
|
|
236
|
+
"auto"
|
|
237
|
+
]
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
"additionalProperties": false
|
|
241
|
+
},
|
|
242
|
+
"tokenBudget": {
|
|
243
|
+
"type": "integer",
|
|
244
|
+
"exclusiveMinimum": 0,
|
|
245
|
+
"maximum": 9007199254740991
|
|
207
246
|
}
|
|
208
247
|
},
|
|
209
248
|
"required": [
|
|
@@ -294,29 +333,56 @@
|
|
|
294
333
|
"minLength": 32,
|
|
295
334
|
"maxLength": 256
|
|
296
335
|
},
|
|
297
|
-
"
|
|
336
|
+
"reportUsage": {
|
|
337
|
+
"type": "boolean",
|
|
338
|
+
"const": true
|
|
339
|
+
},
|
|
340
|
+
"sessionControl": {
|
|
341
|
+
"type": "boolean",
|
|
342
|
+
"const": true
|
|
343
|
+
},
|
|
344
|
+
"supervised": {
|
|
345
|
+
"type": "boolean",
|
|
346
|
+
"const": true
|
|
347
|
+
},
|
|
348
|
+
"tokenBudget": {
|
|
349
|
+
"type": "integer",
|
|
350
|
+
"exclusiveMinimum": 0,
|
|
351
|
+
"maximum": 9007199254740991
|
|
352
|
+
},
|
|
353
|
+
"teamGates": {
|
|
298
354
|
"type": "object",
|
|
299
355
|
"properties": {
|
|
300
|
-
"
|
|
356
|
+
"planApproval": {
|
|
301
357
|
"type": "string",
|
|
302
|
-
"
|
|
303
|
-
|
|
358
|
+
"enum": [
|
|
359
|
+
"ask",
|
|
360
|
+
"auto"
|
|
361
|
+
]
|
|
304
362
|
},
|
|
305
|
-
"
|
|
306
|
-
"type": "
|
|
307
|
-
"
|
|
308
|
-
|
|
363
|
+
"merge": {
|
|
364
|
+
"type": "string",
|
|
365
|
+
"enum": [
|
|
366
|
+
"ask",
|
|
367
|
+
"auto"
|
|
368
|
+
]
|
|
369
|
+
},
|
|
370
|
+
"budget": {
|
|
371
|
+
"type": "string",
|
|
372
|
+
"enum": [
|
|
373
|
+
"ask",
|
|
374
|
+
"auto"
|
|
375
|
+
]
|
|
376
|
+
},
|
|
377
|
+
"irreversible": {
|
|
378
|
+
"type": "string",
|
|
379
|
+
"enum": [
|
|
380
|
+
"ask",
|
|
381
|
+
"auto"
|
|
382
|
+
]
|
|
309
383
|
}
|
|
310
384
|
},
|
|
311
|
-
"required": [
|
|
312
|
-
"runId",
|
|
313
|
-
"tokenCap"
|
|
314
|
-
],
|
|
315
385
|
"additionalProperties": false
|
|
316
|
-
},
|
|
317
|
-
"reportUsage": {
|
|
318
|
-
"type": "boolean",
|
|
319
|
-
"const": true
|
|
320
386
|
}
|
|
321
387
|
},
|
|
322
388
|
"required": [
|
package/schema/v2/run.json
CHANGED
|
@@ -72,34 +72,9 @@
|
|
|
72
72
|
"minLength": 1,
|
|
73
73
|
"maxLength": 160
|
|
74
74
|
},
|
|
75
|
-
"parent": {
|
|
76
|
-
"type": "object",
|
|
77
|
-
"properties": {
|
|
78
|
-
"runId": {
|
|
79
|
-
"type": "string",
|
|
80
|
-
"minLength": 1,
|
|
81
|
-
"maxLength": 160
|
|
82
|
-
},
|
|
83
|
-
"tokenCap": {
|
|
84
|
-
"type": "integer",
|
|
85
|
-
"exclusiveMinimum": 0,
|
|
86
|
-
"maximum": 9007199254740991
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
"required": [
|
|
90
|
-
"runId",
|
|
91
|
-
"tokenCap"
|
|
92
|
-
],
|
|
93
|
-
"additionalProperties": false
|
|
94
|
-
},
|
|
95
75
|
"delegation": {
|
|
96
76
|
"type": "object",
|
|
97
77
|
"properties": {
|
|
98
|
-
"maxChildren": {
|
|
99
|
-
"type": "integer",
|
|
100
|
-
"exclusiveMinimum": 0,
|
|
101
|
-
"maximum": 9007199254740991
|
|
102
|
-
},
|
|
103
78
|
"tokenBudget": {
|
|
104
79
|
"type": "integer",
|
|
105
80
|
"exclusiveMinimum": 0,
|
|
@@ -131,6 +106,16 @@
|
|
|
131
106
|
],
|
|
132
107
|
"additionalProperties": false
|
|
133
108
|
},
|
|
109
|
+
"tokenBudget": {
|
|
110
|
+
"type": "integer",
|
|
111
|
+
"exclusiveMinimum": 0,
|
|
112
|
+
"maximum": 9007199254740991
|
|
113
|
+
},
|
|
114
|
+
"raiseCount": {
|
|
115
|
+
"type": "integer",
|
|
116
|
+
"minimum": 0,
|
|
117
|
+
"maximum": 9007199254740991
|
|
118
|
+
},
|
|
134
119
|
"workflow": {
|
|
135
120
|
"type": "object",
|
|
136
121
|
"properties": {
|
|
@@ -473,6 +458,45 @@
|
|
|
473
458
|
"configRevision"
|
|
474
459
|
],
|
|
475
460
|
"additionalProperties": false
|
|
461
|
+
},
|
|
462
|
+
"gates": {
|
|
463
|
+
"type": "object",
|
|
464
|
+
"properties": {
|
|
465
|
+
"planApproval": {
|
|
466
|
+
"type": "string",
|
|
467
|
+
"enum": [
|
|
468
|
+
"ask",
|
|
469
|
+
"auto"
|
|
470
|
+
]
|
|
471
|
+
},
|
|
472
|
+
"merge": {
|
|
473
|
+
"type": "string",
|
|
474
|
+
"enum": [
|
|
475
|
+
"ask",
|
|
476
|
+
"auto"
|
|
477
|
+
]
|
|
478
|
+
},
|
|
479
|
+
"budget": {
|
|
480
|
+
"type": "string",
|
|
481
|
+
"enum": [
|
|
482
|
+
"ask",
|
|
483
|
+
"auto"
|
|
484
|
+
]
|
|
485
|
+
},
|
|
486
|
+
"irreversible": {
|
|
487
|
+
"type": "string",
|
|
488
|
+
"enum": [
|
|
489
|
+
"ask",
|
|
490
|
+
"auto"
|
|
491
|
+
]
|
|
492
|
+
}
|
|
493
|
+
},
|
|
494
|
+
"additionalProperties": false
|
|
495
|
+
},
|
|
496
|
+
"tokenBudget": {
|
|
497
|
+
"type": "integer",
|
|
498
|
+
"exclusiveMinimum": 0,
|
|
499
|
+
"maximum": 9007199254740991
|
|
476
500
|
}
|
|
477
501
|
},
|
|
478
502
|
"required": [
|
|
@@ -505,25 +529,6 @@
|
|
|
505
529
|
"tokenBudget"
|
|
506
530
|
],
|
|
507
531
|
"additionalProperties": false
|
|
508
|
-
},
|
|
509
|
-
"parent": {
|
|
510
|
-
"type": "object",
|
|
511
|
-
"properties": {
|
|
512
|
-
"runId": {
|
|
513
|
-
"type": "string",
|
|
514
|
-
"minLength": 1,
|
|
515
|
-
"maxLength": 160
|
|
516
|
-
},
|
|
517
|
-
"tokenCap": {
|
|
518
|
-
"type": "integer",
|
|
519
|
-
"exclusiveMinimum": 0,
|
|
520
|
-
"maximum": 9007199254740991
|
|
521
|
-
}
|
|
522
|
-
},
|
|
523
|
-
"required": [
|
|
524
|
-
"runId"
|
|
525
|
-
],
|
|
526
|
-
"additionalProperties": false
|
|
527
532
|
}
|
|
528
533
|
},
|
|
529
534
|
"required": [
|