@basou/core 0.8.0 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basou/core",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "Core primitives for Basou: sessions, events, approvals, git capability",
@@ -30,6 +30,9 @@
30
30
  "type": "string",
31
31
  "minLength": 1
32
32
  },
33
+ "prev_hash": {
34
+ "type": "string"
35
+ },
33
36
  "type": {
34
37
  "type": "string",
35
38
  "const": "session_started"
@@ -70,6 +73,9 @@
70
73
  "type": "string",
71
74
  "minLength": 1
72
75
  },
76
+ "prev_hash": {
77
+ "type": "string"
78
+ },
73
79
  "type": {
74
80
  "type": "string",
75
81
  "const": "session_ended"
@@ -115,6 +121,9 @@
115
121
  "type": "string",
116
122
  "minLength": 1
117
123
  },
124
+ "prev_hash": {
125
+ "type": "string"
126
+ },
118
127
  "type": {
119
128
  "type": "string",
120
129
  "const": "session_status_changed"
@@ -163,6 +172,9 @@
163
172
  "type": "string",
164
173
  "minLength": 1
165
174
  },
175
+ "prev_hash": {
176
+ "type": "string"
177
+ },
166
178
  "type": {
167
179
  "type": "string",
168
180
  "const": "approval_requested"
@@ -254,6 +266,9 @@
254
266
  "type": "string",
255
267
  "minLength": 1
256
268
  },
269
+ "prev_hash": {
270
+ "type": "string"
271
+ },
257
272
  "type": {
258
273
  "type": "string",
259
274
  "const": "approval_approved"
@@ -313,6 +328,9 @@
313
328
  "type": "string",
314
329
  "minLength": 1
315
330
  },
331
+ "prev_hash": {
332
+ "type": "string"
333
+ },
316
334
  "type": {
317
335
  "type": "string",
318
336
  "const": "approval_rejected"
@@ -366,6 +384,9 @@
366
384
  "type": "string",
367
385
  "minLength": 1
368
386
  },
387
+ "prev_hash": {
388
+ "type": "string"
389
+ },
369
390
  "type": {
370
391
  "type": "string",
371
392
  "const": "approval_expired"
@@ -412,6 +433,9 @@
412
433
  "type": "string",
413
434
  "minLength": 1
414
435
  },
436
+ "prev_hash": {
437
+ "type": "string"
438
+ },
415
439
  "type": {
416
440
  "type": "string",
417
441
  "const": "command_executed"
@@ -506,6 +530,9 @@
506
530
  "type": "string",
507
531
  "minLength": 1
508
532
  },
533
+ "prev_hash": {
534
+ "type": "string"
535
+ },
509
536
  "type": {
510
537
  "type": "string",
511
538
  "const": "git_snapshot"
@@ -589,6 +616,9 @@
589
616
  "type": "string",
590
617
  "minLength": 1
591
618
  },
619
+ "prev_hash": {
620
+ "type": "string"
621
+ },
592
622
  "type": {
593
623
  "type": "string",
594
624
  "const": "file_changed"
@@ -653,6 +683,9 @@
653
683
  "type": "string",
654
684
  "minLength": 1
655
685
  },
686
+ "prev_hash": {
687
+ "type": "string"
688
+ },
656
689
  "type": {
657
690
  "type": "string",
658
691
  "const": "decision_recorded"
@@ -746,6 +779,9 @@
746
779
  "type": "string",
747
780
  "minLength": 1
748
781
  },
782
+ "prev_hash": {
783
+ "type": "string"
784
+ },
749
785
  "type": {
750
786
  "type": "string",
751
787
  "const": "task_created"
@@ -796,6 +832,9 @@
796
832
  "type": "string",
797
833
  "minLength": 1
798
834
  },
835
+ "prev_hash": {
836
+ "type": "string"
837
+ },
799
838
  "type": {
800
839
  "type": "string",
801
840
  "const": "task_status_changed"
@@ -850,6 +889,9 @@
850
889
  "type": "string",
851
890
  "minLength": 1
852
891
  },
892
+ "prev_hash": {
893
+ "type": "string"
894
+ },
853
895
  "type": {
854
896
  "type": "string",
855
897
  "const": "task_reconciled"
@@ -932,6 +974,9 @@
932
974
  "type": "string",
933
975
  "minLength": 1
934
976
  },
977
+ "prev_hash": {
978
+ "type": "string"
979
+ },
935
980
  "type": {
936
981
  "type": "string",
937
982
  "const": "task_linkage_refreshed"
@@ -1002,6 +1047,9 @@
1002
1047
  "type": "string",
1003
1048
  "minLength": 1
1004
1049
  },
1050
+ "prev_hash": {
1051
+ "type": "string"
1052
+ },
1005
1053
  "type": {
1006
1054
  "type": "string",
1007
1055
  "const": "task_deleted"
@@ -1054,6 +1102,9 @@
1054
1102
  "type": "string",
1055
1103
  "minLength": 1
1056
1104
  },
1105
+ "prev_hash": {
1106
+ "type": "string"
1107
+ },
1057
1108
  "type": {
1058
1109
  "type": "string",
1059
1110
  "const": "task_archived"
@@ -1106,6 +1157,9 @@
1106
1157
  "type": "string",
1107
1158
  "minLength": 1
1108
1159
  },
1160
+ "prev_hash": {
1161
+ "type": "string"
1162
+ },
1109
1163
  "type": {
1110
1164
  "type": "string",
1111
1165
  "const": "note_added"
@@ -1150,6 +1204,9 @@
1150
1204
  "type": "string",
1151
1205
  "minLength": 1
1152
1206
  },
1207
+ "prev_hash": {
1208
+ "type": "string"
1209
+ },
1153
1210
  "type": {
1154
1211
  "type": "string",
1155
1212
  "const": "adapter_output"
@@ -211,6 +211,24 @@
211
211
  "maximum": 9007199254740991
212
212
  }
213
213
  }
214
+ },
215
+ "integrity": {
216
+ "type": "object",
217
+ "properties": {
218
+ "head_hash": {
219
+ "type": "string"
220
+ },
221
+ "event_count": {
222
+ "type": "integer",
223
+ "minimum": 0,
224
+ "maximum": 9007199254740991
225
+ }
226
+ },
227
+ "required": [
228
+ "head_hash",
229
+ "event_count"
230
+ ],
231
+ "additionalProperties": false
214
232
  }
215
233
  },
216
234
  "required": [
@@ -253,6 +271,9 @@
253
271
  "type": "string",
254
272
  "minLength": 1
255
273
  },
274
+ "prev_hash": {
275
+ "type": "string"
276
+ },
256
277
  "type": {
257
278
  "type": "string",
258
279
  "const": "session_started"
@@ -293,6 +314,9 @@
293
314
  "type": "string",
294
315
  "minLength": 1
295
316
  },
317
+ "prev_hash": {
318
+ "type": "string"
319
+ },
296
320
  "type": {
297
321
  "type": "string",
298
322
  "const": "session_ended"
@@ -338,6 +362,9 @@
338
362
  "type": "string",
339
363
  "minLength": 1
340
364
  },
365
+ "prev_hash": {
366
+ "type": "string"
367
+ },
341
368
  "type": {
342
369
  "type": "string",
343
370
  "const": "session_status_changed"
@@ -386,6 +413,9 @@
386
413
  "type": "string",
387
414
  "minLength": 1
388
415
  },
416
+ "prev_hash": {
417
+ "type": "string"
418
+ },
389
419
  "type": {
390
420
  "type": "string",
391
421
  "const": "approval_requested"
@@ -477,6 +507,9 @@
477
507
  "type": "string",
478
508
  "minLength": 1
479
509
  },
510
+ "prev_hash": {
511
+ "type": "string"
512
+ },
480
513
  "type": {
481
514
  "type": "string",
482
515
  "const": "approval_approved"
@@ -536,6 +569,9 @@
536
569
  "type": "string",
537
570
  "minLength": 1
538
571
  },
572
+ "prev_hash": {
573
+ "type": "string"
574
+ },
539
575
  "type": {
540
576
  "type": "string",
541
577
  "const": "approval_rejected"
@@ -589,6 +625,9 @@
589
625
  "type": "string",
590
626
  "minLength": 1
591
627
  },
628
+ "prev_hash": {
629
+ "type": "string"
630
+ },
592
631
  "type": {
593
632
  "type": "string",
594
633
  "const": "approval_expired"
@@ -635,6 +674,9 @@
635
674
  "type": "string",
636
675
  "minLength": 1
637
676
  },
677
+ "prev_hash": {
678
+ "type": "string"
679
+ },
638
680
  "type": {
639
681
  "type": "string",
640
682
  "const": "command_executed"
@@ -729,6 +771,9 @@
729
771
  "type": "string",
730
772
  "minLength": 1
731
773
  },
774
+ "prev_hash": {
775
+ "type": "string"
776
+ },
732
777
  "type": {
733
778
  "type": "string",
734
779
  "const": "git_snapshot"
@@ -812,6 +857,9 @@
812
857
  "type": "string",
813
858
  "minLength": 1
814
859
  },
860
+ "prev_hash": {
861
+ "type": "string"
862
+ },
815
863
  "type": {
816
864
  "type": "string",
817
865
  "const": "file_changed"
@@ -876,6 +924,9 @@
876
924
  "type": "string",
877
925
  "minLength": 1
878
926
  },
927
+ "prev_hash": {
928
+ "type": "string"
929
+ },
879
930
  "type": {
880
931
  "type": "string",
881
932
  "const": "decision_recorded"
@@ -969,6 +1020,9 @@
969
1020
  "type": "string",
970
1021
  "minLength": 1
971
1022
  },
1023
+ "prev_hash": {
1024
+ "type": "string"
1025
+ },
972
1026
  "type": {
973
1027
  "type": "string",
974
1028
  "const": "task_created"
@@ -1019,6 +1073,9 @@
1019
1073
  "type": "string",
1020
1074
  "minLength": 1
1021
1075
  },
1076
+ "prev_hash": {
1077
+ "type": "string"
1078
+ },
1022
1079
  "type": {
1023
1080
  "type": "string",
1024
1081
  "const": "task_status_changed"
@@ -1073,6 +1130,9 @@
1073
1130
  "type": "string",
1074
1131
  "minLength": 1
1075
1132
  },
1133
+ "prev_hash": {
1134
+ "type": "string"
1135
+ },
1076
1136
  "type": {
1077
1137
  "type": "string",
1078
1138
  "const": "task_reconciled"
@@ -1155,6 +1215,9 @@
1155
1215
  "type": "string",
1156
1216
  "minLength": 1
1157
1217
  },
1218
+ "prev_hash": {
1219
+ "type": "string"
1220
+ },
1158
1221
  "type": {
1159
1222
  "type": "string",
1160
1223
  "const": "task_linkage_refreshed"
@@ -1225,6 +1288,9 @@
1225
1288
  "type": "string",
1226
1289
  "minLength": 1
1227
1290
  },
1291
+ "prev_hash": {
1292
+ "type": "string"
1293
+ },
1228
1294
  "type": {
1229
1295
  "type": "string",
1230
1296
  "const": "task_deleted"
@@ -1277,6 +1343,9 @@
1277
1343
  "type": "string",
1278
1344
  "minLength": 1
1279
1345
  },
1346
+ "prev_hash": {
1347
+ "type": "string"
1348
+ },
1280
1349
  "type": {
1281
1350
  "type": "string",
1282
1351
  "const": "task_archived"
@@ -1329,6 +1398,9 @@
1329
1398
  "type": "string",
1330
1399
  "minLength": 1
1331
1400
  },
1401
+ "prev_hash": {
1402
+ "type": "string"
1403
+ },
1332
1404
  "type": {
1333
1405
  "type": "string",
1334
1406
  "const": "note_added"
@@ -1373,6 +1445,9 @@
1373
1445
  "type": "string",
1374
1446
  "minLength": 1
1375
1447
  },
1448
+ "prev_hash": {
1449
+ "type": "string"
1450
+ },
1376
1451
  "type": {
1377
1452
  "type": "string",
1378
1453
  "const": "adapter_output"
@@ -213,6 +213,24 @@
213
213
  "maximum": 9007199254740991
214
214
  }
215
215
  }
216
+ },
217
+ "integrity": {
218
+ "type": "object",
219
+ "properties": {
220
+ "head_hash": {
221
+ "type": "string"
222
+ },
223
+ "event_count": {
224
+ "type": "integer",
225
+ "minimum": 0,
226
+ "maximum": 9007199254740991
227
+ }
228
+ },
229
+ "required": [
230
+ "head_hash",
231
+ "event_count"
232
+ ],
233
+ "additionalProperties": false
216
234
  }
217
235
  },
218
236
  "required": [