@basou/core 0.4.0 → 0.6.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.
@@ -0,0 +1,1188 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://basou.dev/schemas/0.1.0/event.schema.json",
4
+ "title": "Basou Event",
5
+ "description": "One line of a `.basou/sessions/<id>/events.jsonl` stream (a discriminated union over the event `type`).",
6
+ "oneOf": [
7
+ {
8
+ "type": "object",
9
+ "properties": {
10
+ "schema_version": {
11
+ "type": "string",
12
+ "const": "0.1.0"
13
+ },
14
+ "id": {
15
+ "type": "string",
16
+ "pattern": "^evt_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
17
+ "description": "Basou evt id: `evt_` followed by a 26-character Crockford Base32 ULID."
18
+ },
19
+ "session_id": {
20
+ "type": "string",
21
+ "pattern": "^ses_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
22
+ "description": "Basou ses id: `ses_` followed by a 26-character Crockford Base32 ULID."
23
+ },
24
+ "occurred_at": {
25
+ "type": "string",
26
+ "format": "date-time",
27
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
28
+ },
29
+ "source": {
30
+ "type": "string",
31
+ "minLength": 1
32
+ },
33
+ "type": {
34
+ "type": "string",
35
+ "const": "session_started"
36
+ }
37
+ },
38
+ "required": [
39
+ "schema_version",
40
+ "id",
41
+ "session_id",
42
+ "occurred_at",
43
+ "source",
44
+ "type"
45
+ ]
46
+ },
47
+ {
48
+ "type": "object",
49
+ "properties": {
50
+ "schema_version": {
51
+ "type": "string",
52
+ "const": "0.1.0"
53
+ },
54
+ "id": {
55
+ "type": "string",
56
+ "pattern": "^evt_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
57
+ "description": "Basou evt id: `evt_` followed by a 26-character Crockford Base32 ULID."
58
+ },
59
+ "session_id": {
60
+ "type": "string",
61
+ "pattern": "^ses_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
62
+ "description": "Basou ses id: `ses_` followed by a 26-character Crockford Base32 ULID."
63
+ },
64
+ "occurred_at": {
65
+ "type": "string",
66
+ "format": "date-time",
67
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
68
+ },
69
+ "source": {
70
+ "type": "string",
71
+ "minLength": 1
72
+ },
73
+ "type": {
74
+ "type": "string",
75
+ "const": "session_ended"
76
+ },
77
+ "exit_code": {
78
+ "type": "integer",
79
+ "minimum": -9007199254740991,
80
+ "maximum": 9007199254740991
81
+ }
82
+ },
83
+ "required": [
84
+ "schema_version",
85
+ "id",
86
+ "session_id",
87
+ "occurred_at",
88
+ "source",
89
+ "type"
90
+ ]
91
+ },
92
+ {
93
+ "type": "object",
94
+ "properties": {
95
+ "schema_version": {
96
+ "type": "string",
97
+ "const": "0.1.0"
98
+ },
99
+ "id": {
100
+ "type": "string",
101
+ "pattern": "^evt_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
102
+ "description": "Basou evt id: `evt_` followed by a 26-character Crockford Base32 ULID."
103
+ },
104
+ "session_id": {
105
+ "type": "string",
106
+ "pattern": "^ses_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
107
+ "description": "Basou ses id: `ses_` followed by a 26-character Crockford Base32 ULID."
108
+ },
109
+ "occurred_at": {
110
+ "type": "string",
111
+ "format": "date-time",
112
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
113
+ },
114
+ "source": {
115
+ "type": "string",
116
+ "minLength": 1
117
+ },
118
+ "type": {
119
+ "type": "string",
120
+ "const": "session_status_changed"
121
+ },
122
+ "from": {
123
+ "type": "string"
124
+ },
125
+ "to": {
126
+ "type": "string"
127
+ }
128
+ },
129
+ "required": [
130
+ "schema_version",
131
+ "id",
132
+ "session_id",
133
+ "occurred_at",
134
+ "source",
135
+ "type",
136
+ "from",
137
+ "to"
138
+ ]
139
+ },
140
+ {
141
+ "type": "object",
142
+ "properties": {
143
+ "schema_version": {
144
+ "type": "string",
145
+ "const": "0.1.0"
146
+ },
147
+ "id": {
148
+ "type": "string",
149
+ "pattern": "^evt_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
150
+ "description": "Basou evt id: `evt_` followed by a 26-character Crockford Base32 ULID."
151
+ },
152
+ "session_id": {
153
+ "type": "string",
154
+ "pattern": "^ses_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
155
+ "description": "Basou ses id: `ses_` followed by a 26-character Crockford Base32 ULID."
156
+ },
157
+ "occurred_at": {
158
+ "type": "string",
159
+ "format": "date-time",
160
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
161
+ },
162
+ "source": {
163
+ "type": "string",
164
+ "minLength": 1
165
+ },
166
+ "type": {
167
+ "type": "string",
168
+ "const": "approval_requested"
169
+ },
170
+ "approval_id": {
171
+ "type": "string",
172
+ "pattern": "^appr_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
173
+ "description": "Basou appr id: `appr_` followed by a 26-character Crockford Base32 ULID."
174
+ },
175
+ "expires_at": {
176
+ "default": null,
177
+ "anyOf": [
178
+ {
179
+ "type": "string",
180
+ "format": "date-time",
181
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
182
+ },
183
+ {
184
+ "type": "null"
185
+ }
186
+ ]
187
+ },
188
+ "risk_level": {
189
+ "type": "string",
190
+ "enum": [
191
+ "low",
192
+ "medium",
193
+ "high",
194
+ "critical"
195
+ ]
196
+ },
197
+ "action": {
198
+ "type": "object",
199
+ "properties": {
200
+ "kind": {
201
+ "type": "string"
202
+ }
203
+ },
204
+ "required": [
205
+ "kind"
206
+ ],
207
+ "additionalProperties": {}
208
+ },
209
+ "reason": {
210
+ "type": "string"
211
+ },
212
+ "status": {
213
+ "type": "string",
214
+ "const": "pending"
215
+ }
216
+ },
217
+ "required": [
218
+ "schema_version",
219
+ "id",
220
+ "session_id",
221
+ "occurred_at",
222
+ "source",
223
+ "type",
224
+ "approval_id",
225
+ "risk_level",
226
+ "action",
227
+ "reason",
228
+ "status"
229
+ ]
230
+ },
231
+ {
232
+ "type": "object",
233
+ "properties": {
234
+ "schema_version": {
235
+ "type": "string",
236
+ "const": "0.1.0"
237
+ },
238
+ "id": {
239
+ "type": "string",
240
+ "pattern": "^evt_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
241
+ "description": "Basou evt id: `evt_` followed by a 26-character Crockford Base32 ULID."
242
+ },
243
+ "session_id": {
244
+ "type": "string",
245
+ "pattern": "^ses_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
246
+ "description": "Basou ses id: `ses_` followed by a 26-character Crockford Base32 ULID."
247
+ },
248
+ "occurred_at": {
249
+ "type": "string",
250
+ "format": "date-time",
251
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
252
+ },
253
+ "source": {
254
+ "type": "string",
255
+ "minLength": 1
256
+ },
257
+ "type": {
258
+ "type": "string",
259
+ "const": "approval_approved"
260
+ },
261
+ "approval_id": {
262
+ "type": "string",
263
+ "pattern": "^appr_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
264
+ "description": "Basou appr id: `appr_` followed by a 26-character Crockford Base32 ULID."
265
+ },
266
+ "resolver": {
267
+ "type": "string"
268
+ },
269
+ "note": {
270
+ "anyOf": [
271
+ {
272
+ "type": "string"
273
+ },
274
+ {
275
+ "type": "null"
276
+ }
277
+ ]
278
+ }
279
+ },
280
+ "required": [
281
+ "schema_version",
282
+ "id",
283
+ "session_id",
284
+ "occurred_at",
285
+ "source",
286
+ "type",
287
+ "approval_id"
288
+ ]
289
+ },
290
+ {
291
+ "type": "object",
292
+ "properties": {
293
+ "schema_version": {
294
+ "type": "string",
295
+ "const": "0.1.0"
296
+ },
297
+ "id": {
298
+ "type": "string",
299
+ "pattern": "^evt_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
300
+ "description": "Basou evt id: `evt_` followed by a 26-character Crockford Base32 ULID."
301
+ },
302
+ "session_id": {
303
+ "type": "string",
304
+ "pattern": "^ses_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
305
+ "description": "Basou ses id: `ses_` followed by a 26-character Crockford Base32 ULID."
306
+ },
307
+ "occurred_at": {
308
+ "type": "string",
309
+ "format": "date-time",
310
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
311
+ },
312
+ "source": {
313
+ "type": "string",
314
+ "minLength": 1
315
+ },
316
+ "type": {
317
+ "type": "string",
318
+ "const": "approval_rejected"
319
+ },
320
+ "approval_id": {
321
+ "type": "string",
322
+ "pattern": "^appr_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
323
+ "description": "Basou appr id: `appr_` followed by a 26-character Crockford Base32 ULID."
324
+ },
325
+ "resolver": {
326
+ "type": "string"
327
+ },
328
+ "reason": {
329
+ "type": "string"
330
+ }
331
+ },
332
+ "required": [
333
+ "schema_version",
334
+ "id",
335
+ "session_id",
336
+ "occurred_at",
337
+ "source",
338
+ "type",
339
+ "approval_id",
340
+ "reason"
341
+ ]
342
+ },
343
+ {
344
+ "type": "object",
345
+ "properties": {
346
+ "schema_version": {
347
+ "type": "string",
348
+ "const": "0.1.0"
349
+ },
350
+ "id": {
351
+ "type": "string",
352
+ "pattern": "^evt_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
353
+ "description": "Basou evt id: `evt_` followed by a 26-character Crockford Base32 ULID."
354
+ },
355
+ "session_id": {
356
+ "type": "string",
357
+ "pattern": "^ses_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
358
+ "description": "Basou ses id: `ses_` followed by a 26-character Crockford Base32 ULID."
359
+ },
360
+ "occurred_at": {
361
+ "type": "string",
362
+ "format": "date-time",
363
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
364
+ },
365
+ "source": {
366
+ "type": "string",
367
+ "minLength": 1
368
+ },
369
+ "type": {
370
+ "type": "string",
371
+ "const": "approval_expired"
372
+ },
373
+ "approval_id": {
374
+ "type": "string",
375
+ "pattern": "^appr_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
376
+ "description": "Basou appr id: `appr_` followed by a 26-character Crockford Base32 ULID."
377
+ }
378
+ },
379
+ "required": [
380
+ "schema_version",
381
+ "id",
382
+ "session_id",
383
+ "occurred_at",
384
+ "source",
385
+ "type",
386
+ "approval_id"
387
+ ]
388
+ },
389
+ {
390
+ "type": "object",
391
+ "properties": {
392
+ "schema_version": {
393
+ "type": "string",
394
+ "const": "0.1.0"
395
+ },
396
+ "id": {
397
+ "type": "string",
398
+ "pattern": "^evt_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
399
+ "description": "Basou evt id: `evt_` followed by a 26-character Crockford Base32 ULID."
400
+ },
401
+ "session_id": {
402
+ "type": "string",
403
+ "pattern": "^ses_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
404
+ "description": "Basou ses id: `ses_` followed by a 26-character Crockford Base32 ULID."
405
+ },
406
+ "occurred_at": {
407
+ "type": "string",
408
+ "format": "date-time",
409
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
410
+ },
411
+ "source": {
412
+ "type": "string",
413
+ "minLength": 1
414
+ },
415
+ "type": {
416
+ "type": "string",
417
+ "const": "command_executed"
418
+ },
419
+ "command": {
420
+ "type": "string"
421
+ },
422
+ "args": {
423
+ "type": "array",
424
+ "items": {
425
+ "type": "string"
426
+ }
427
+ },
428
+ "cwd": {
429
+ "type": "string"
430
+ },
431
+ "exit_code": {
432
+ "anyOf": [
433
+ {
434
+ "type": "integer",
435
+ "minimum": -9007199254740991,
436
+ "maximum": 9007199254740991
437
+ },
438
+ {
439
+ "type": "null"
440
+ }
441
+ ]
442
+ },
443
+ "signal": {
444
+ "anyOf": [
445
+ {
446
+ "type": "string"
447
+ },
448
+ {
449
+ "type": "null"
450
+ }
451
+ ]
452
+ },
453
+ "received_signal": {
454
+ "anyOf": [
455
+ {
456
+ "type": "string"
457
+ },
458
+ {
459
+ "type": "null"
460
+ }
461
+ ]
462
+ },
463
+ "duration_ms": {
464
+ "type": "integer",
465
+ "minimum": 0,
466
+ "maximum": 9007199254740991
467
+ }
468
+ },
469
+ "required": [
470
+ "schema_version",
471
+ "id",
472
+ "session_id",
473
+ "occurred_at",
474
+ "source",
475
+ "type",
476
+ "command",
477
+ "args",
478
+ "cwd",
479
+ "exit_code",
480
+ "duration_ms"
481
+ ]
482
+ },
483
+ {
484
+ "type": "object",
485
+ "properties": {
486
+ "schema_version": {
487
+ "type": "string",
488
+ "const": "0.1.0"
489
+ },
490
+ "id": {
491
+ "type": "string",
492
+ "pattern": "^evt_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
493
+ "description": "Basou evt id: `evt_` followed by a 26-character Crockford Base32 ULID."
494
+ },
495
+ "session_id": {
496
+ "type": "string",
497
+ "pattern": "^ses_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
498
+ "description": "Basou ses id: `ses_` followed by a 26-character Crockford Base32 ULID."
499
+ },
500
+ "occurred_at": {
501
+ "type": "string",
502
+ "format": "date-time",
503
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
504
+ },
505
+ "source": {
506
+ "type": "string",
507
+ "minLength": 1
508
+ },
509
+ "type": {
510
+ "type": "string",
511
+ "const": "git_snapshot"
512
+ },
513
+ "head": {
514
+ "type": "string"
515
+ },
516
+ "branch": {
517
+ "type": "string"
518
+ },
519
+ "dirty": {
520
+ "type": "boolean"
521
+ },
522
+ "staged": {
523
+ "type": "array",
524
+ "items": {
525
+ "type": "string"
526
+ }
527
+ },
528
+ "unstaged": {
529
+ "type": "array",
530
+ "items": {
531
+ "type": "string"
532
+ }
533
+ },
534
+ "untracked": {
535
+ "type": "array",
536
+ "items": {
537
+ "type": "string"
538
+ }
539
+ },
540
+ "ahead": {
541
+ "type": "integer",
542
+ "minimum": 0,
543
+ "maximum": 9007199254740991
544
+ },
545
+ "behind": {
546
+ "type": "integer",
547
+ "minimum": 0,
548
+ "maximum": 9007199254740991
549
+ }
550
+ },
551
+ "required": [
552
+ "schema_version",
553
+ "id",
554
+ "session_id",
555
+ "occurred_at",
556
+ "source",
557
+ "type",
558
+ "head",
559
+ "branch",
560
+ "dirty",
561
+ "staged",
562
+ "unstaged",
563
+ "untracked"
564
+ ]
565
+ },
566
+ {
567
+ "type": "object",
568
+ "properties": {
569
+ "schema_version": {
570
+ "type": "string",
571
+ "const": "0.1.0"
572
+ },
573
+ "id": {
574
+ "type": "string",
575
+ "pattern": "^evt_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
576
+ "description": "Basou evt id: `evt_` followed by a 26-character Crockford Base32 ULID."
577
+ },
578
+ "session_id": {
579
+ "type": "string",
580
+ "pattern": "^ses_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
581
+ "description": "Basou ses id: `ses_` followed by a 26-character Crockford Base32 ULID."
582
+ },
583
+ "occurred_at": {
584
+ "type": "string",
585
+ "format": "date-time",
586
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
587
+ },
588
+ "source": {
589
+ "type": "string",
590
+ "minLength": 1
591
+ },
592
+ "type": {
593
+ "type": "string",
594
+ "const": "file_changed"
595
+ },
596
+ "path": {
597
+ "type": "string"
598
+ },
599
+ "change_type": {
600
+ "type": "string",
601
+ "enum": [
602
+ "added",
603
+ "modified",
604
+ "deleted",
605
+ "renamed"
606
+ ]
607
+ },
608
+ "old_path": {
609
+ "anyOf": [
610
+ {
611
+ "type": "string"
612
+ },
613
+ {
614
+ "type": "null"
615
+ }
616
+ ]
617
+ }
618
+ },
619
+ "required": [
620
+ "schema_version",
621
+ "id",
622
+ "session_id",
623
+ "occurred_at",
624
+ "source",
625
+ "type",
626
+ "path",
627
+ "change_type"
628
+ ]
629
+ },
630
+ {
631
+ "type": "object",
632
+ "properties": {
633
+ "schema_version": {
634
+ "type": "string",
635
+ "const": "0.1.0"
636
+ },
637
+ "id": {
638
+ "type": "string",
639
+ "pattern": "^evt_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
640
+ "description": "Basou evt id: `evt_` followed by a 26-character Crockford Base32 ULID."
641
+ },
642
+ "session_id": {
643
+ "type": "string",
644
+ "pattern": "^ses_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
645
+ "description": "Basou ses id: `ses_` followed by a 26-character Crockford Base32 ULID."
646
+ },
647
+ "occurred_at": {
648
+ "type": "string",
649
+ "format": "date-time",
650
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
651
+ },
652
+ "source": {
653
+ "type": "string",
654
+ "minLength": 1
655
+ },
656
+ "type": {
657
+ "type": "string",
658
+ "const": "decision_recorded"
659
+ },
660
+ "decision_id": {
661
+ "type": "string",
662
+ "pattern": "^decision_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
663
+ "description": "Basou decision id: `decision_` followed by a 26-character Crockford Base32 ULID."
664
+ },
665
+ "title": {
666
+ "type": "string"
667
+ },
668
+ "rationale": {
669
+ "anyOf": [
670
+ {
671
+ "type": "string"
672
+ },
673
+ {
674
+ "type": "null"
675
+ }
676
+ ]
677
+ },
678
+ "alternatives": {
679
+ "type": "array",
680
+ "items": {
681
+ "type": "string",
682
+ "minLength": 1
683
+ }
684
+ },
685
+ "rejected_reason": {
686
+ "anyOf": [
687
+ {
688
+ "type": "string"
689
+ },
690
+ {
691
+ "type": "null"
692
+ }
693
+ ]
694
+ },
695
+ "linked_events": {
696
+ "type": "array",
697
+ "items": {
698
+ "type": "string",
699
+ "pattern": "^evt_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
700
+ "description": "Basou evt id: `evt_` followed by a 26-character Crockford Base32 ULID."
701
+ }
702
+ },
703
+ "linked_files": {
704
+ "type": "array",
705
+ "items": {
706
+ "type": "string",
707
+ "minLength": 1,
708
+ "maxLength": 4096
709
+ }
710
+ }
711
+ },
712
+ "required": [
713
+ "schema_version",
714
+ "id",
715
+ "session_id",
716
+ "occurred_at",
717
+ "source",
718
+ "type",
719
+ "decision_id",
720
+ "title"
721
+ ]
722
+ },
723
+ {
724
+ "type": "object",
725
+ "properties": {
726
+ "schema_version": {
727
+ "type": "string",
728
+ "const": "0.1.0"
729
+ },
730
+ "id": {
731
+ "type": "string",
732
+ "pattern": "^evt_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
733
+ "description": "Basou evt id: `evt_` followed by a 26-character Crockford Base32 ULID."
734
+ },
735
+ "session_id": {
736
+ "type": "string",
737
+ "pattern": "^ses_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
738
+ "description": "Basou ses id: `ses_` followed by a 26-character Crockford Base32 ULID."
739
+ },
740
+ "occurred_at": {
741
+ "type": "string",
742
+ "format": "date-time",
743
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
744
+ },
745
+ "source": {
746
+ "type": "string",
747
+ "minLength": 1
748
+ },
749
+ "type": {
750
+ "type": "string",
751
+ "const": "task_created"
752
+ },
753
+ "task_id": {
754
+ "type": "string",
755
+ "pattern": "^task_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
756
+ "description": "Basou task id: `task_` followed by a 26-character Crockford Base32 ULID."
757
+ },
758
+ "title": {
759
+ "type": "string"
760
+ }
761
+ },
762
+ "required": [
763
+ "schema_version",
764
+ "id",
765
+ "session_id",
766
+ "occurred_at",
767
+ "source",
768
+ "type",
769
+ "task_id",
770
+ "title"
771
+ ]
772
+ },
773
+ {
774
+ "type": "object",
775
+ "properties": {
776
+ "schema_version": {
777
+ "type": "string",
778
+ "const": "0.1.0"
779
+ },
780
+ "id": {
781
+ "type": "string",
782
+ "pattern": "^evt_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
783
+ "description": "Basou evt id: `evt_` followed by a 26-character Crockford Base32 ULID."
784
+ },
785
+ "session_id": {
786
+ "type": "string",
787
+ "pattern": "^ses_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
788
+ "description": "Basou ses id: `ses_` followed by a 26-character Crockford Base32 ULID."
789
+ },
790
+ "occurred_at": {
791
+ "type": "string",
792
+ "format": "date-time",
793
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
794
+ },
795
+ "source": {
796
+ "type": "string",
797
+ "minLength": 1
798
+ },
799
+ "type": {
800
+ "type": "string",
801
+ "const": "task_status_changed"
802
+ },
803
+ "task_id": {
804
+ "type": "string",
805
+ "pattern": "^task_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
806
+ "description": "Basou task id: `task_` followed by a 26-character Crockford Base32 ULID."
807
+ },
808
+ "from": {
809
+ "type": "string"
810
+ },
811
+ "to": {
812
+ "type": "string"
813
+ }
814
+ },
815
+ "required": [
816
+ "schema_version",
817
+ "id",
818
+ "session_id",
819
+ "occurred_at",
820
+ "source",
821
+ "type",
822
+ "task_id",
823
+ "from",
824
+ "to"
825
+ ]
826
+ },
827
+ {
828
+ "type": "object",
829
+ "properties": {
830
+ "schema_version": {
831
+ "type": "string",
832
+ "const": "0.1.0"
833
+ },
834
+ "id": {
835
+ "type": "string",
836
+ "pattern": "^evt_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
837
+ "description": "Basou evt id: `evt_` followed by a 26-character Crockford Base32 ULID."
838
+ },
839
+ "session_id": {
840
+ "type": "string",
841
+ "pattern": "^ses_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
842
+ "description": "Basou ses id: `ses_` followed by a 26-character Crockford Base32 ULID."
843
+ },
844
+ "occurred_at": {
845
+ "type": "string",
846
+ "format": "date-time",
847
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
848
+ },
849
+ "source": {
850
+ "type": "string",
851
+ "minLength": 1
852
+ },
853
+ "type": {
854
+ "type": "string",
855
+ "const": "task_reconciled"
856
+ },
857
+ "task_id": {
858
+ "type": "string",
859
+ "pattern": "^task_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
860
+ "description": "Basou task id: `task_` followed by a 26-character Crockford Base32 ULID."
861
+ },
862
+ "removed_created_in_session": {
863
+ "default": null,
864
+ "anyOf": [
865
+ {
866
+ "type": "string",
867
+ "pattern": "^ses_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
868
+ "description": "Basou ses id: `ses_` followed by a 26-character Crockford Base32 ULID."
869
+ },
870
+ {
871
+ "type": "null"
872
+ }
873
+ ]
874
+ },
875
+ "created_in_session_replacement": {
876
+ "default": null,
877
+ "anyOf": [
878
+ {
879
+ "type": "string",
880
+ "pattern": "^ses_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
881
+ "description": "Basou ses id: `ses_` followed by a 26-character Crockford Base32 ULID."
882
+ },
883
+ {
884
+ "type": "null"
885
+ }
886
+ ]
887
+ },
888
+ "removed_linked_sessions": {
889
+ "default": [],
890
+ "type": "array",
891
+ "items": {
892
+ "type": "string",
893
+ "pattern": "^ses_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
894
+ "description": "Basou ses id: `ses_` followed by a 26-character Crockford Base32 ULID."
895
+ }
896
+ }
897
+ },
898
+ "required": [
899
+ "schema_version",
900
+ "id",
901
+ "session_id",
902
+ "occurred_at",
903
+ "source",
904
+ "type",
905
+ "task_id"
906
+ ],
907
+ "additionalProperties": false
908
+ },
909
+ {
910
+ "type": "object",
911
+ "properties": {
912
+ "schema_version": {
913
+ "type": "string",
914
+ "const": "0.1.0"
915
+ },
916
+ "id": {
917
+ "type": "string",
918
+ "pattern": "^evt_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
919
+ "description": "Basou evt id: `evt_` followed by a 26-character Crockford Base32 ULID."
920
+ },
921
+ "session_id": {
922
+ "type": "string",
923
+ "pattern": "^ses_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
924
+ "description": "Basou ses id: `ses_` followed by a 26-character Crockford Base32 ULID."
925
+ },
926
+ "occurred_at": {
927
+ "type": "string",
928
+ "format": "date-time",
929
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
930
+ },
931
+ "source": {
932
+ "type": "string",
933
+ "minLength": 1
934
+ },
935
+ "type": {
936
+ "type": "string",
937
+ "const": "task_linkage_refreshed"
938
+ },
939
+ "task_id": {
940
+ "type": "string",
941
+ "pattern": "^task_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
942
+ "description": "Basou task id: `task_` followed by a 26-character Crockford Base32 ULID."
943
+ },
944
+ "added_linked_sessions": {
945
+ "default": [],
946
+ "type": "array",
947
+ "items": {
948
+ "type": "string",
949
+ "pattern": "^ses_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
950
+ "description": "Basou ses id: `ses_` followed by a 26-character Crockford Base32 ULID."
951
+ }
952
+ },
953
+ "removed_linked_sessions": {
954
+ "default": [],
955
+ "type": "array",
956
+ "items": {
957
+ "type": "string",
958
+ "pattern": "^ses_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
959
+ "description": "Basou ses id: `ses_` followed by a 26-character Crockford Base32 ULID."
960
+ }
961
+ },
962
+ "final_count": {
963
+ "type": "integer",
964
+ "minimum": 0,
965
+ "maximum": 9007199254740991
966
+ }
967
+ },
968
+ "required": [
969
+ "schema_version",
970
+ "id",
971
+ "session_id",
972
+ "occurred_at",
973
+ "source",
974
+ "type",
975
+ "task_id"
976
+ ],
977
+ "additionalProperties": false
978
+ },
979
+ {
980
+ "type": "object",
981
+ "properties": {
982
+ "schema_version": {
983
+ "type": "string",
984
+ "const": "0.1.0"
985
+ },
986
+ "id": {
987
+ "type": "string",
988
+ "pattern": "^evt_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
989
+ "description": "Basou evt id: `evt_` followed by a 26-character Crockford Base32 ULID."
990
+ },
991
+ "session_id": {
992
+ "type": "string",
993
+ "pattern": "^ses_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
994
+ "description": "Basou ses id: `ses_` followed by a 26-character Crockford Base32 ULID."
995
+ },
996
+ "occurred_at": {
997
+ "type": "string",
998
+ "format": "date-time",
999
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
1000
+ },
1001
+ "source": {
1002
+ "type": "string",
1003
+ "minLength": 1
1004
+ },
1005
+ "type": {
1006
+ "type": "string",
1007
+ "const": "task_deleted"
1008
+ },
1009
+ "task_id": {
1010
+ "type": "string",
1011
+ "pattern": "^task_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
1012
+ "description": "Basou task id: `task_` followed by a 26-character Crockford Base32 ULID."
1013
+ },
1014
+ "title": {
1015
+ "type": "string",
1016
+ "minLength": 1
1017
+ }
1018
+ },
1019
+ "required": [
1020
+ "schema_version",
1021
+ "id",
1022
+ "session_id",
1023
+ "occurred_at",
1024
+ "source",
1025
+ "type",
1026
+ "task_id",
1027
+ "title"
1028
+ ],
1029
+ "additionalProperties": false
1030
+ },
1031
+ {
1032
+ "type": "object",
1033
+ "properties": {
1034
+ "schema_version": {
1035
+ "type": "string",
1036
+ "const": "0.1.0"
1037
+ },
1038
+ "id": {
1039
+ "type": "string",
1040
+ "pattern": "^evt_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
1041
+ "description": "Basou evt id: `evt_` followed by a 26-character Crockford Base32 ULID."
1042
+ },
1043
+ "session_id": {
1044
+ "type": "string",
1045
+ "pattern": "^ses_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
1046
+ "description": "Basou ses id: `ses_` followed by a 26-character Crockford Base32 ULID."
1047
+ },
1048
+ "occurred_at": {
1049
+ "type": "string",
1050
+ "format": "date-time",
1051
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
1052
+ },
1053
+ "source": {
1054
+ "type": "string",
1055
+ "minLength": 1
1056
+ },
1057
+ "type": {
1058
+ "type": "string",
1059
+ "const": "task_archived"
1060
+ },
1061
+ "task_id": {
1062
+ "type": "string",
1063
+ "pattern": "^task_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
1064
+ "description": "Basou task id: `task_` followed by a 26-character Crockford Base32 ULID."
1065
+ },
1066
+ "title": {
1067
+ "type": "string",
1068
+ "minLength": 1
1069
+ }
1070
+ },
1071
+ "required": [
1072
+ "schema_version",
1073
+ "id",
1074
+ "session_id",
1075
+ "occurred_at",
1076
+ "source",
1077
+ "type",
1078
+ "task_id",
1079
+ "title"
1080
+ ],
1081
+ "additionalProperties": false
1082
+ },
1083
+ {
1084
+ "type": "object",
1085
+ "properties": {
1086
+ "schema_version": {
1087
+ "type": "string",
1088
+ "const": "0.1.0"
1089
+ },
1090
+ "id": {
1091
+ "type": "string",
1092
+ "pattern": "^evt_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
1093
+ "description": "Basou evt id: `evt_` followed by a 26-character Crockford Base32 ULID."
1094
+ },
1095
+ "session_id": {
1096
+ "type": "string",
1097
+ "pattern": "^ses_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
1098
+ "description": "Basou ses id: `ses_` followed by a 26-character Crockford Base32 ULID."
1099
+ },
1100
+ "occurred_at": {
1101
+ "type": "string",
1102
+ "format": "date-time",
1103
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
1104
+ },
1105
+ "source": {
1106
+ "type": "string",
1107
+ "minLength": 1
1108
+ },
1109
+ "type": {
1110
+ "type": "string",
1111
+ "const": "note_added"
1112
+ },
1113
+ "body": {
1114
+ "type": "string"
1115
+ }
1116
+ },
1117
+ "required": [
1118
+ "schema_version",
1119
+ "id",
1120
+ "session_id",
1121
+ "occurred_at",
1122
+ "source",
1123
+ "type",
1124
+ "body"
1125
+ ]
1126
+ },
1127
+ {
1128
+ "type": "object",
1129
+ "properties": {
1130
+ "schema_version": {
1131
+ "type": "string",
1132
+ "const": "0.1.0"
1133
+ },
1134
+ "id": {
1135
+ "type": "string",
1136
+ "pattern": "^evt_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
1137
+ "description": "Basou evt id: `evt_` followed by a 26-character Crockford Base32 ULID."
1138
+ },
1139
+ "session_id": {
1140
+ "type": "string",
1141
+ "pattern": "^ses_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
1142
+ "description": "Basou ses id: `ses_` followed by a 26-character Crockford Base32 ULID."
1143
+ },
1144
+ "occurred_at": {
1145
+ "type": "string",
1146
+ "format": "date-time",
1147
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
1148
+ },
1149
+ "source": {
1150
+ "type": "string",
1151
+ "minLength": 1
1152
+ },
1153
+ "type": {
1154
+ "type": "string",
1155
+ "const": "adapter_output"
1156
+ },
1157
+ "stream": {
1158
+ "type": "string",
1159
+ "enum": [
1160
+ "stdout",
1161
+ "stderr"
1162
+ ]
1163
+ },
1164
+ "summary": {
1165
+ "type": "string"
1166
+ },
1167
+ "raw_ref": {
1168
+ "type": "string"
1169
+ },
1170
+ "redacted": {
1171
+ "type": "boolean"
1172
+ }
1173
+ },
1174
+ "required": [
1175
+ "schema_version",
1176
+ "id",
1177
+ "session_id",
1178
+ "occurred_at",
1179
+ "source",
1180
+ "type",
1181
+ "stream",
1182
+ "summary",
1183
+ "raw_ref"
1184
+ ],
1185
+ "additionalProperties": false
1186
+ }
1187
+ ]
1188
+ }