@drisp/protocol 0.8.8 → 0.8.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drisp/protocol",
3
- "version": "0.8.8",
3
+ "version": "0.8.9",
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": [
@@ -366,6 +405,53 @@
366
405
  "reportUsage": {
367
406
  "type": "boolean",
368
407
  "const": true
408
+ },
409
+ "sessionControl": {
410
+ "type": "boolean",
411
+ "const": true
412
+ },
413
+ "supervised": {
414
+ "type": "boolean",
415
+ "const": true
416
+ },
417
+ "tokenBudget": {
418
+ "type": "integer",
419
+ "exclusiveMinimum": 0,
420
+ "maximum": 9007199254740991
421
+ },
422
+ "teamGates": {
423
+ "type": "object",
424
+ "properties": {
425
+ "planApproval": {
426
+ "type": "string",
427
+ "enum": [
428
+ "ask",
429
+ "auto"
430
+ ]
431
+ },
432
+ "merge": {
433
+ "type": "string",
434
+ "enum": [
435
+ "ask",
436
+ "auto"
437
+ ]
438
+ },
439
+ "budget": {
440
+ "type": "string",
441
+ "enum": [
442
+ "ask",
443
+ "auto"
444
+ ]
445
+ },
446
+ "irreversible": {
447
+ "type": "string",
448
+ "enum": [
449
+ "ask",
450
+ "auto"
451
+ ]
452
+ }
453
+ },
454
+ "additionalProperties": false
369
455
  }
370
456
  },
371
457
  "required": [
@@ -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": [
@@ -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": [
@@ -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": [
@@ -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": [
@@ -317,6 +356,53 @@
317
356
  "reportUsage": {
318
357
  "type": "boolean",
319
358
  "const": true
359
+ },
360
+ "sessionControl": {
361
+ "type": "boolean",
362
+ "const": true
363
+ },
364
+ "supervised": {
365
+ "type": "boolean",
366
+ "const": true
367
+ },
368
+ "tokenBudget": {
369
+ "type": "integer",
370
+ "exclusiveMinimum": 0,
371
+ "maximum": 9007199254740991
372
+ },
373
+ "teamGates": {
374
+ "type": "object",
375
+ "properties": {
376
+ "planApproval": {
377
+ "type": "string",
378
+ "enum": [
379
+ "ask",
380
+ "auto"
381
+ ]
382
+ },
383
+ "merge": {
384
+ "type": "string",
385
+ "enum": [
386
+ "ask",
387
+ "auto"
388
+ ]
389
+ },
390
+ "budget": {
391
+ "type": "string",
392
+ "enum": [
393
+ "ask",
394
+ "auto"
395
+ ]
396
+ },
397
+ "irreversible": {
398
+ "type": "string",
399
+ "enum": [
400
+ "ask",
401
+ "auto"
402
+ ]
403
+ }
404
+ },
405
+ "additionalProperties": false
320
406
  }
321
407
  },
322
408
  "required": [
@@ -131,6 +131,16 @@
131
131
  ],
132
132
  "additionalProperties": false
133
133
  },
134
+ "tokenBudget": {
135
+ "type": "integer",
136
+ "exclusiveMinimum": 0,
137
+ "maximum": 9007199254740991
138
+ },
139
+ "raiseCount": {
140
+ "type": "integer",
141
+ "minimum": 0,
142
+ "maximum": 9007199254740991
143
+ },
134
144
  "workflow": {
135
145
  "type": "object",
136
146
  "properties": {
@@ -473,6 +483,45 @@
473
483
  "configRevision"
474
484
  ],
475
485
  "additionalProperties": false
486
+ },
487
+ "gates": {
488
+ "type": "object",
489
+ "properties": {
490
+ "planApproval": {
491
+ "type": "string",
492
+ "enum": [
493
+ "ask",
494
+ "auto"
495
+ ]
496
+ },
497
+ "merge": {
498
+ "type": "string",
499
+ "enum": [
500
+ "ask",
501
+ "auto"
502
+ ]
503
+ },
504
+ "budget": {
505
+ "type": "string",
506
+ "enum": [
507
+ "ask",
508
+ "auto"
509
+ ]
510
+ },
511
+ "irreversible": {
512
+ "type": "string",
513
+ "enum": [
514
+ "ask",
515
+ "auto"
516
+ ]
517
+ }
518
+ },
519
+ "additionalProperties": false
520
+ },
521
+ "tokenBudget": {
522
+ "type": "integer",
523
+ "exclusiveMinimum": 0,
524
+ "maximum": 9007199254740991
476
525
  }
477
526
  },
478
527
  "required": [