@haystackeditor/cli 0.15.28 → 0.15.30

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": "@haystackeditor/cli",
3
- "version": "0.15.28",
3
+ "version": "0.15.30",
4
4
  "description": "Set up Haystack for your project — automated PR review, triage, and merge queue",
5
5
  "type": "module",
6
6
  "bin": {
@@ -69,57 +69,99 @@
69
69
  "type": "string"
70
70
  },
71
71
  "result": {
72
+ "oneOf": [
73
+ {
74
+ "type": "object",
75
+ "additionalProperties": false,
76
+ "required": [
77
+ "verdict",
78
+ "summary",
79
+ "casesTotal",
80
+ "casesFailed",
81
+ "regressions",
82
+ "outputLocation",
83
+ "wallSeconds"
84
+ ],
85
+ "properties": {
86
+ "verdict": {
87
+ "type": "string"
88
+ },
89
+ "summary": {
90
+ "type": "string"
91
+ },
92
+ "casesTotal": {
93
+ "type": "integer",
94
+ "minimum": 0
95
+ },
96
+ "casesFailed": {
97
+ "type": "integer",
98
+ "minimum": 0
99
+ },
100
+ "regressions": {
101
+ "type": "array",
102
+ "items": {
103
+ "type": "object",
104
+ "additionalProperties": false,
105
+ "required": [
106
+ "caseId",
107
+ "title"
108
+ ],
109
+ "properties": {
110
+ "caseId": {
111
+ "type": "string"
112
+ },
113
+ "title": {
114
+ "type": "string"
115
+ }
116
+ }
117
+ }
118
+ },
119
+ "outputLocation": {
120
+ "type": "string"
121
+ },
122
+ "wallSeconds": {
123
+ "type": "number",
124
+ "minimum": 0
125
+ }
126
+ }
127
+ },
128
+ {
129
+ "type": "object",
130
+ "description": "Opaque VerifyResultV1 document, validated by the hosted service against the canonical P0 contract.",
131
+ "required": [
132
+ "version",
133
+ "provider"
134
+ ],
135
+ "properties": {
136
+ "version": {
137
+ "const": "dv-verify-result-v1"
138
+ },
139
+ "provider": {
140
+ "const": "haystack"
141
+ }
142
+ }
143
+ }
144
+ ]
145
+ },
146
+ "provider": {
147
+ "const": "haystack"
148
+ },
149
+ "version": {
150
+ "const": "dv-cloud-verifier-fleet-runner-projection-v1"
151
+ },
152
+ "progress": {
72
153
  "type": "object",
73
- "additionalProperties": false,
154
+ "description": "Opaque VerifyProgressV1 document, validated by the hosted service against the canonical P0 contract.",
74
155
  "required": [
75
- "verdict",
76
- "summary",
77
- "casesTotal",
78
- "casesFailed",
79
- "regressions",
80
- "outputLocation",
81
- "wallSeconds"
156
+ "version",
157
+ "publicRunId"
82
158
  ],
83
159
  "properties": {
84
- "verdict": {
85
- "type": "string"
160
+ "version": {
161
+ "const": "dv-verify-progress-v1"
86
162
  },
87
- "summary": {
163
+ "publicRunId": {
88
164
  "type": "string"
89
- },
90
- "casesTotal": {
91
- "type": "integer",
92
- "minimum": 0
93
- },
94
- "casesFailed": {
95
- "type": "integer",
96
- "minimum": 0
97
- },
98
- "regressions": {
99
- "type": "array",
100
- "items": {
101
- "type": "object",
102
- "additionalProperties": false,
103
- "required": [
104
- "caseId",
105
- "title"
106
- ],
107
- "properties": {
108
- "caseId": {
109
- "type": "string"
110
- },
111
- "title": {
112
- "type": "string"
113
- }
114
- }
115
- }
116
- },
117
- "outputLocation": {
118
- "type": "string"
119
- },
120
- "wallSeconds": {
121
- "type": "number",
122
- "minimum": 0
123
165
  }
124
166
  }
125
167
  }
@@ -157,6 +199,27 @@
157
199
  }
158
200
  ]
159
201
  }
202
+ },
203
+ {
204
+ "if": {
205
+ "properties": {
206
+ "provider": {
207
+ "const": "haystack"
208
+ }
209
+ },
210
+ "required": [
211
+ "provider"
212
+ ]
213
+ },
214
+ "then": {
215
+ "required": [
216
+ "version",
217
+ "repository",
218
+ "base_commit",
219
+ "head_commit",
220
+ "created_at"
221
+ ]
222
+ }
160
223
  }
161
224
  ]
162
225
  }