@reviewsensei/cli-linux-x64-gnu 0.8.20 → 0.8.22

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/README.md CHANGED
@@ -8,7 +8,7 @@ Install the public launcher, which selects the matching native package:
8
8
 
9
9
  <!-- release-installation:package-npm-1:start -->
10
10
  ```console
11
- npm install --save-dev @reviewsensei/cli@0.8.20
11
+ npm install --save-dev @reviewsensei/cli@0.8.22
12
12
  npx review-sensei --help
13
13
  ```
14
14
  <!-- release-installation:package-npm-1:end -->
Binary file
@@ -168,7 +168,8 @@
168
168
  "version": {
169
169
  "enum": [
170
170
  "caller-requests-v1",
171
- "caller-requests-v2"
171
+ "caller-requests-v2",
172
+ "caller-requests-v3"
172
173
  ]
173
174
  },
174
175
  "previous_record": {
@@ -489,6 +490,23 @@
489
490
  "type": "object"
490
491
  }
491
492
  }
493
+ },
494
+ {
495
+ "allOf": [
496
+ {
497
+ "$ref": "evidence-manifest.schema.json"
498
+ },
499
+ {
500
+ "properties": {
501
+ "item_count": {
502
+ "const": 1
503
+ },
504
+ "parts": {
505
+ "maxItems": 1
506
+ }
507
+ }
508
+ }
509
+ ]
492
510
  }
493
511
  ]
494
512
  },
@@ -533,6 +551,25 @@
533
551
  ]
534
552
  }
535
553
  }
554
+ },
555
+ {
556
+ "type": "object",
557
+ "additionalProperties": false,
558
+ "required": [
559
+ "kind",
560
+ "reason"
561
+ ],
562
+ "properties": {
563
+ "kind": {
564
+ "const": "canceled_unstarted"
565
+ },
566
+ "reason": {
567
+ "enum": [
568
+ "source_edited",
569
+ "source_deleted"
570
+ ]
571
+ }
572
+ }
536
573
  }
537
574
  ]
538
575
  }
@@ -620,6 +657,22 @@
620
657
  "items": {
621
658
  "$ref": "#/$defs/request"
622
659
  }
660
+ },
661
+ "action": {
662
+ "properties": {
663
+ "result": {
664
+ "if": {
665
+ "type": "object"
666
+ },
667
+ "then": {
668
+ "properties": {
669
+ "encoding": {
670
+ "const": "inline-json-v1"
671
+ }
672
+ }
673
+ }
674
+ }
675
+ }
623
676
  }
624
677
  }
625
678
  }
@@ -638,6 +691,56 @@
638
691
  "items": {
639
692
  "$ref": "#/$defs/request-pair"
640
693
  }
694
+ },
695
+ "action": {
696
+ "properties": {
697
+ "result": {
698
+ "if": {
699
+ "type": "object"
700
+ },
701
+ "then": {
702
+ "properties": {
703
+ "encoding": {
704
+ "const": "inline-json-v1"
705
+ }
706
+ }
707
+ }
708
+ }
709
+ }
710
+ }
711
+ }
712
+ }
713
+ },
714
+ {
715
+ "if": {
716
+ "properties": {
717
+ "version": {
718
+ "const": "caller-requests-v3"
719
+ }
720
+ }
721
+ },
722
+ "then": {
723
+ "properties": {
724
+ "completed": {
725
+ "items": {
726
+ "$ref": "#/$defs/request-pair"
727
+ }
728
+ },
729
+ "action": {
730
+ "properties": {
731
+ "result": {
732
+ "if": {
733
+ "type": "object"
734
+ },
735
+ "then": {
736
+ "properties": {
737
+ "item_count": {
738
+ "const": 1
739
+ }
740
+ }
741
+ }
742
+ }
743
+ }
641
744
  }
642
745
  }
643
746
  }
@@ -33,94 +33,235 @@
33
33
  }
34
34
  },
35
35
  "native_union": {
36
- "type": "object",
37
- "additionalProperties": false,
38
- "required": [
39
- "schema_version",
40
- "repository_id",
41
- "pull_request",
42
- "producer_id",
43
- "head_sha",
44
- "base_sha",
45
- "transaction_id",
46
- "result_sha256",
47
- "plan_sha256",
48
- "inline_count",
49
- "parts"
50
- ],
51
- "properties": {
52
- "schema_version": {
53
- "const": "native-review-union-v1"
54
- },
55
- "repository_id": {
56
- "type": "integer",
57
- "minimum": 1,
58
- "maximum": 9223372036854775807
59
- },
60
- "pull_request": {
61
- "type": "integer",
62
- "minimum": 1,
63
- "maximum": 2147483647
64
- },
65
- "producer_id": {
66
- "type": "integer",
67
- "minimum": 1,
68
- "maximum": 9223372036854775807
69
- },
70
- "head_sha": {
71
- "type": "string",
72
- "pattern": "^[a-f0-9]{40}$"
73
- },
74
- "base_sha": {
75
- "type": "string",
76
- "pattern": "^[a-f0-9]{40}$"
77
- },
78
- "transaction_id": {
79
- "type": "string",
80
- "pattern": "^[a-f0-9]{64}$"
81
- },
82
- "result_sha256": {
83
- "type": "string",
84
- "pattern": "^[a-f0-9]{64}$"
85
- },
86
- "plan_sha256": {
87
- "type": "string",
88
- "pattern": "^[a-f0-9]{64}$"
89
- },
90
- "inline_count": {
91
- "type": "integer",
92
- "minimum": 0,
93
- "maximum": 250
36
+ "oneOf": [
37
+ {
38
+ "type": "object",
39
+ "additionalProperties": false,
40
+ "required": [
41
+ "schema_version",
42
+ "repository_id",
43
+ "pull_request",
44
+ "producer_id",
45
+ "head_sha",
46
+ "base_sha",
47
+ "transaction_id",
48
+ "result_sha256",
49
+ "plan_sha256",
50
+ "inline_count",
51
+ "parts"
52
+ ],
53
+ "properties": {
54
+ "schema_version": {
55
+ "const": "native-review-union-v1"
56
+ },
57
+ "repository_id": {
58
+ "type": "integer",
59
+ "minimum": 1,
60
+ "maximum": 9223372036854775807
61
+ },
62
+ "pull_request": {
63
+ "type": "integer",
64
+ "minimum": 1,
65
+ "maximum": 2147483647
66
+ },
67
+ "producer_id": {
68
+ "type": "integer",
69
+ "minimum": 1,
70
+ "maximum": 9223372036854775807
71
+ },
72
+ "head_sha": {
73
+ "type": "string",
74
+ "pattern": "^[a-f0-9]{40}$"
75
+ },
76
+ "base_sha": {
77
+ "type": "string",
78
+ "pattern": "^[a-f0-9]{40}$"
79
+ },
80
+ "transaction_id": {
81
+ "type": "string",
82
+ "pattern": "^[a-f0-9]{64}$"
83
+ },
84
+ "result_sha256": {
85
+ "type": "string",
86
+ "pattern": "^[a-f0-9]{64}$"
87
+ },
88
+ "plan_sha256": {
89
+ "type": "string",
90
+ "pattern": "^[a-f0-9]{64}$"
91
+ },
92
+ "inline_count": {
93
+ "type": "integer",
94
+ "minimum": 0,
95
+ "maximum": 250
96
+ },
97
+ "parts": {
98
+ "type": "array",
99
+ "maxItems": 8,
100
+ "items": {
101
+ "type": "object",
102
+ "additionalProperties": false,
103
+ "required": [
104
+ "native_id",
105
+ "content_sha256",
106
+ "finding_count"
107
+ ],
108
+ "properties": {
109
+ "native_id": {
110
+ "type": "string",
111
+ "pattern": "^[1-9][0-9]{0,18}$"
112
+ },
113
+ "content_sha256": {
114
+ "type": "string",
115
+ "pattern": "^[a-f0-9]{64}$"
116
+ },
117
+ "finding_count": {
118
+ "type": "integer",
119
+ "minimum": 1,
120
+ "maximum": 32
121
+ }
122
+ }
123
+ }
124
+ }
125
+ }
94
126
  },
95
- "parts": {
96
- "type": "array",
97
- "maxItems": 8,
98
- "items": {
99
- "type": "object",
100
- "additionalProperties": false,
101
- "required": [
102
- "native_id",
103
- "content_sha256",
104
- "finding_count"
105
- ],
106
- "properties": {
107
- "native_id": {
108
- "type": "string",
109
- "pattern": "^[1-9][0-9]{0,18}$"
110
- },
111
- "content_sha256": {
112
- "type": "string",
113
- "pattern": "^[a-f0-9]{64}$"
114
- },
115
- "finding_count": {
116
- "type": "integer",
117
- "minimum": 1,
118
- "maximum": 32
127
+ {
128
+ "type": "object",
129
+ "additionalProperties": false,
130
+ "required": [
131
+ "schema_version",
132
+ "repository_id",
133
+ "pull_request",
134
+ "producer_id",
135
+ "head_sha",
136
+ "base_sha",
137
+ "transaction_id",
138
+ "result_sha256",
139
+ "plan_sha256",
140
+ "inline_count",
141
+ "parts",
142
+ "reused_roots"
143
+ ],
144
+ "properties": {
145
+ "schema_version": {
146
+ "const": "native-review-union-v2"
147
+ },
148
+ "repository_id": {
149
+ "type": "integer",
150
+ "minimum": 1,
151
+ "maximum": 9223372036854775807
152
+ },
153
+ "pull_request": {
154
+ "type": "integer",
155
+ "minimum": 1,
156
+ "maximum": 2147483647
157
+ },
158
+ "producer_id": {
159
+ "type": "integer",
160
+ "minimum": 1,
161
+ "maximum": 9223372036854775807
162
+ },
163
+ "head_sha": {
164
+ "type": "string",
165
+ "pattern": "^[a-f0-9]{40}$"
166
+ },
167
+ "base_sha": {
168
+ "type": "string",
169
+ "pattern": "^[a-f0-9]{40}$"
170
+ },
171
+ "transaction_id": {
172
+ "type": "string",
173
+ "pattern": "^[a-f0-9]{64}$"
174
+ },
175
+ "result_sha256": {
176
+ "type": "string",
177
+ "pattern": "^[a-f0-9]{64}$"
178
+ },
179
+ "plan_sha256": {
180
+ "type": "string",
181
+ "pattern": "^[a-f0-9]{64}$"
182
+ },
183
+ "inline_count": {
184
+ "type": "integer",
185
+ "minimum": 0,
186
+ "maximum": 250
187
+ },
188
+ "parts": {
189
+ "type": "array",
190
+ "maxItems": 8,
191
+ "items": {
192
+ "type": "object",
193
+ "additionalProperties": false,
194
+ "required": [
195
+ "native_id",
196
+ "content_sha256",
197
+ "finding_count"
198
+ ],
199
+ "properties": {
200
+ "native_id": {
201
+ "type": "string",
202
+ "pattern": "^[1-9][0-9]{0,18}$"
203
+ },
204
+ "content_sha256": {
205
+ "type": "string",
206
+ "pattern": "^[a-f0-9]{64}$"
207
+ },
208
+ "finding_count": {
209
+ "type": "integer",
210
+ "minimum": 1,
211
+ "maximum": 32
212
+ }
213
+ }
214
+ }
215
+ },
216
+ "reused_roots": {
217
+ "type": "array",
218
+ "minItems": 1,
219
+ "maxItems": 50,
220
+ "items": {
221
+ "type": "object",
222
+ "additionalProperties": false,
223
+ "required": [
224
+ "instance",
225
+ "thread_id",
226
+ "comment_id",
227
+ "review_id",
228
+ "native_head_sha",
229
+ "body_sha256"
230
+ ],
231
+ "properties": {
232
+ "instance": {
233
+ "type": "string",
234
+ "pattern": "^[a-f0-9]{64}$"
235
+ },
236
+ "thread_id": {
237
+ "type": "string",
238
+ "minLength": 1,
239
+ "maxLength": 256
240
+ },
241
+ "comment_id": {
242
+ "type": "integer",
243
+ "minimum": 1,
244
+ "maximum": 9223372036854775807
245
+ },
246
+ "review_id": {
247
+ "type": "integer",
248
+ "minimum": 1,
249
+ "maximum": 9223372036854775807
250
+ },
251
+ "native_head_sha": {
252
+ "type": "string",
253
+ "pattern": "^[a-f0-9]{40}$"
254
+ },
255
+ "body_sha256": {
256
+ "type": "string",
257
+ "pattern": "^[a-f0-9]{64}$"
258
+ }
259
+ }
119
260
  }
120
261
  }
121
262
  }
122
263
  }
123
- }
264
+ ]
124
265
  }
125
266
  }
126
267
  }
@@ -85,7 +85,8 @@
85
85
  "feedback",
86
86
  "evidence",
87
87
  "queue",
88
- "dispositions"
88
+ "dispositions",
89
+ "finding-lifecycle"
89
90
  ]
90
91
  },
91
92
  "schema_version": {
@@ -6,6 +6,27 @@
6
6
  "additionalProperties": false,
7
7
  "required": ["summary", "comments", "provider"],
8
8
  "properties": {
9
+ "decision_pass": {
10
+ "type": "object", "additionalProperties": false,
11
+ "required": ["schema_version", "policy_digest", "input_sha256", "inventory_sha256", "status", "provider", "model", "models", "candidates", "calls", "input_bytes", "output_bytes", "output_reserved", "elapsed_ms", "verification_called"],
12
+ "properties": {
13
+ "schema_version": {"const": "1.0"},
14
+ "policy_digest": {"type": "string", "pattern": "^[a-f0-9]{64}$"},
15
+ "input_sha256": {"type": "string", "pattern": "^[a-f0-9]{64}$"},
16
+ "inventory_sha256": {"type": "string", "pattern": "^[a-f0-9]{64}$"},
17
+ "status": {"enum": ["complete", "incomplete"]},
18
+ "provider": {"type": "string", "minLength": 1, "maxLength": 256},
19
+ "model": {"type": "string", "minLength": 1, "maxLength": 256},
20
+ "models": {"type": "array", "maxItems": 8, "items": {"type": "object"}},
21
+ "candidates": {"type": "array", "maxItems": 250, "items": {"type": "object"}},
22
+ "calls": {"type": "integer", "minimum": 0, "maximum": 8},
23
+ "input_bytes": {"type": "integer", "minimum": 0, "maximum": 262144},
24
+ "output_bytes": {"type": "integer", "minimum": 0},
25
+ "output_reserved": {"type": "integer", "minimum": 0, "maximum": 65536},
26
+ "elapsed_ms": {"type": "integer", "minimum": 0},
27
+ "verification_called": {"type": "boolean"}
28
+ }
29
+ },
9
30
  "publication_selection": {"$ref": "https://reviewsensei.dev/schemas/v1/publication-selection.schema.json"},
10
31
  "review_verdict": {"$ref": "https://reviewsensei.dev/schemas/v1/review-verdict.schema.json"},
11
32
  "summary": {"type": "string", "minLength": 1},