@vibe-validate/cli 0.14.3 → 0.15.0-rc.1

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.
Files changed (83) hide show
  1. package/README.md +26 -6
  2. package/bin/vibe-validate +131 -0
  3. package/config-templates/minimal.yaml +1 -1
  4. package/config-templates/typescript-library.yaml +1 -1
  5. package/config-templates/typescript-nodejs.yaml +1 -1
  6. package/config-templates/typescript-react.yaml +1 -1
  7. package/dist/bin.js +18 -4
  8. package/dist/bin.js.map +1 -1
  9. package/dist/commands/cleanup.d.ts +1 -1
  10. package/dist/commands/cleanup.d.ts.map +1 -1
  11. package/dist/commands/cleanup.js +108 -2
  12. package/dist/commands/cleanup.js.map +1 -1
  13. package/dist/commands/config.js +1 -1
  14. package/dist/commands/doctor.d.ts.map +1 -1
  15. package/dist/commands/doctor.js +45 -6
  16. package/dist/commands/doctor.js.map +1 -1
  17. package/dist/commands/generate-workflow.d.ts.map +1 -1
  18. package/dist/commands/generate-workflow.js +3 -11
  19. package/dist/commands/generate-workflow.js.map +1 -1
  20. package/dist/commands/history.d.ts.map +1 -1
  21. package/dist/commands/history.js +263 -68
  22. package/dist/commands/history.js.map +1 -1
  23. package/dist/commands/init.d.ts.map +1 -1
  24. package/dist/commands/init.js +7 -0
  25. package/dist/commands/init.js.map +1 -1
  26. package/dist/commands/pre-commit.d.ts.map +1 -1
  27. package/dist/commands/pre-commit.js +6 -2
  28. package/dist/commands/pre-commit.js.map +1 -1
  29. package/dist/commands/run.d.ts.map +1 -1
  30. package/dist/commands/run.js +618 -214
  31. package/dist/commands/run.js.map +1 -1
  32. package/dist/commands/state.d.ts.map +1 -1
  33. package/dist/commands/state.js +4 -7
  34. package/dist/commands/state.js.map +1 -1
  35. package/dist/commands/validate.d.ts.map +1 -1
  36. package/dist/commands/validate.js +5 -6
  37. package/dist/commands/validate.js.map +1 -1
  38. package/dist/commands/watch-pr.d.ts.map +1 -1
  39. package/dist/commands/watch-pr.js +33 -16
  40. package/dist/commands/watch-pr.js.map +1 -1
  41. package/dist/schemas/run-result-schema-export.d.ts +32 -0
  42. package/dist/schemas/run-result-schema-export.d.ts.map +1 -0
  43. package/dist/schemas/run-result-schema-export.js +40 -0
  44. package/dist/schemas/run-result-schema-export.js.map +1 -0
  45. package/dist/schemas/run-result-schema.d.ts +850 -0
  46. package/dist/schemas/run-result-schema.d.ts.map +1 -0
  47. package/dist/schemas/run-result-schema.js +67 -0
  48. package/dist/schemas/run-result-schema.js.map +1 -0
  49. package/dist/schemas/watch-pr-schema.d.ts +420 -22
  50. package/dist/schemas/watch-pr-schema.d.ts.map +1 -1
  51. package/dist/schemas/watch-pr-schema.js +2 -2
  52. package/dist/schemas/watch-pr-schema.js.map +1 -1
  53. package/dist/scripts/generate-run-result-schema.d.ts +10 -0
  54. package/dist/scripts/generate-run-result-schema.d.ts.map +1 -0
  55. package/dist/scripts/generate-run-result-schema.js +20 -0
  56. package/dist/scripts/generate-run-result-schema.js.map +1 -0
  57. package/dist/services/ci-provider.d.ts +21 -6
  58. package/dist/services/ci-provider.d.ts.map +1 -1
  59. package/dist/services/ci-providers/github-actions.d.ts +1 -5
  60. package/dist/services/ci-providers/github-actions.d.ts.map +1 -1
  61. package/dist/services/ci-providers/github-actions.js +9 -30
  62. package/dist/services/ci-providers/github-actions.js.map +1 -1
  63. package/dist/utils/config-error-reporter.js +1 -1
  64. package/dist/utils/config-error-reporter.js.map +1 -1
  65. package/dist/utils/pid-lock.d.ts.map +1 -1
  66. package/dist/utils/pid-lock.js +3 -6
  67. package/dist/utils/pid-lock.js.map +1 -1
  68. package/dist/utils/project-id.d.ts.map +1 -1
  69. package/dist/utils/project-id.js +3 -4
  70. package/dist/utils/project-id.js.map +1 -1
  71. package/dist/utils/runner-adapter.js +3 -2
  72. package/dist/utils/runner-adapter.js.map +1 -1
  73. package/dist/utils/temp-files.d.ts +67 -0
  74. package/dist/utils/temp-files.d.ts.map +1 -0
  75. package/dist/utils/temp-files.js +202 -0
  76. package/dist/utils/temp-files.js.map +1 -0
  77. package/dist/utils/validate-workflow.d.ts.map +1 -1
  78. package/dist/utils/validate-workflow.js +17 -12
  79. package/dist/utils/validate-workflow.js.map +1 -1
  80. package/dist/vibe-validate +131 -0
  81. package/package.json +11 -9
  82. package/run-result.schema.json +186 -0
  83. package/watch-pr-result.schema.json +128 -6
@@ -0,0 +1,186 @@
1
+ {
2
+ "$ref": "#/definitions/RunResult",
3
+ "definitions": {
4
+ "RunResult": {
5
+ "type": "object",
6
+ "properties": {
7
+ "timestamp": {
8
+ "type": "string",
9
+ "format": "date-time"
10
+ },
11
+ "treeHash": {
12
+ "type": "string",
13
+ "minLength": 1
14
+ },
15
+ "command": {
16
+ "type": "string",
17
+ "minLength": 1
18
+ },
19
+ "exitCode": {
20
+ "type": "integer"
21
+ },
22
+ "durationSecs": {
23
+ "type": "number"
24
+ },
25
+ "extraction": {
26
+ "type": "object",
27
+ "properties": {
28
+ "summary": {
29
+ "type": "string"
30
+ },
31
+ "totalErrors": {
32
+ "type": "integer",
33
+ "minimum": 0
34
+ },
35
+ "errors": {
36
+ "type": "array",
37
+ "items": {
38
+ "type": "object",
39
+ "properties": {
40
+ "file": {
41
+ "type": "string"
42
+ },
43
+ "line": {
44
+ "type": "integer",
45
+ "exclusiveMinimum": 0
46
+ },
47
+ "column": {
48
+ "type": "integer",
49
+ "exclusiveMinimum": 0
50
+ },
51
+ "message": {
52
+ "type": "string"
53
+ },
54
+ "code": {
55
+ "type": "string"
56
+ },
57
+ "severity": {
58
+ "type": "string",
59
+ "enum": [
60
+ "error",
61
+ "warning"
62
+ ]
63
+ },
64
+ "context": {
65
+ "type": "string"
66
+ },
67
+ "guidance": {
68
+ "type": "string"
69
+ }
70
+ },
71
+ "required": [
72
+ "message"
73
+ ],
74
+ "additionalProperties": false
75
+ }
76
+ },
77
+ "guidance": {
78
+ "type": "string"
79
+ },
80
+ "errorSummary": {
81
+ "type": "string"
82
+ },
83
+ "metadata": {
84
+ "type": "object",
85
+ "properties": {
86
+ "detection": {
87
+ "type": "object",
88
+ "properties": {
89
+ "extractor": {
90
+ "type": "string"
91
+ },
92
+ "confidence": {
93
+ "type": "number",
94
+ "minimum": 0,
95
+ "maximum": 100
96
+ },
97
+ "patterns": {
98
+ "type": "array",
99
+ "items": {
100
+ "type": "string"
101
+ }
102
+ },
103
+ "reason": {
104
+ "type": "string"
105
+ }
106
+ },
107
+ "required": [
108
+ "extractor",
109
+ "confidence",
110
+ "patterns",
111
+ "reason"
112
+ ],
113
+ "additionalProperties": false
114
+ },
115
+ "confidence": {
116
+ "type": "number",
117
+ "minimum": 0,
118
+ "maximum": 100
119
+ },
120
+ "completeness": {
121
+ "type": "number",
122
+ "minimum": 0,
123
+ "maximum": 100
124
+ },
125
+ "issues": {
126
+ "type": "array",
127
+ "items": {
128
+ "type": "string"
129
+ }
130
+ },
131
+ "suggestions": {
132
+ "type": "array",
133
+ "items": {
134
+ "type": "string"
135
+ }
136
+ }
137
+ },
138
+ "required": [
139
+ "confidence",
140
+ "completeness",
141
+ "issues"
142
+ ],
143
+ "additionalProperties": false
144
+ }
145
+ },
146
+ "required": [
147
+ "summary",
148
+ "totalErrors",
149
+ "errors"
150
+ ],
151
+ "additionalProperties": false
152
+ },
153
+ "outputFiles": {
154
+ "type": "object",
155
+ "properties": {
156
+ "stdout": {
157
+ "type": "string"
158
+ },
159
+ "stderr": {
160
+ "type": "string"
161
+ },
162
+ "combined": {
163
+ "type": "string"
164
+ }
165
+ },
166
+ "required": [
167
+ "combined"
168
+ ],
169
+ "additionalProperties": false
170
+ },
171
+ "isCachedResult": {
172
+ "type": "boolean"
173
+ }
174
+ },
175
+ "required": [
176
+ "timestamp",
177
+ "treeHash",
178
+ "command",
179
+ "exitCode",
180
+ "durationSecs"
181
+ ],
182
+ "additionalProperties": true
183
+ }
184
+ },
185
+ "$schema": "http://json-schema.org/draft-07/schema#"
186
+ }
@@ -118,12 +118,6 @@
118
118
  "failedStep": {
119
119
  "type": "string"
120
120
  },
121
- "rerunCommand": {
122
- "type": "string"
123
- },
124
- "failedStepOutput": {
125
- "type": "string"
126
- },
127
121
  "phases": {
128
122
  "type": "array",
129
123
  "items": {
@@ -151,6 +145,134 @@
151
145
  },
152
146
  "output": {
153
147
  "type": "string"
148
+ },
149
+ "extraction": {
150
+ "type": "object",
151
+ "properties": {
152
+ "summary": {
153
+ "type": "string"
154
+ },
155
+ "totalErrors": {
156
+ "type": "integer",
157
+ "minimum": 0
158
+ },
159
+ "errors": {
160
+ "type": "array",
161
+ "items": {
162
+ "type": "object",
163
+ "properties": {
164
+ "file": {
165
+ "type": "string"
166
+ },
167
+ "line": {
168
+ "type": "integer",
169
+ "exclusiveMinimum": 0
170
+ },
171
+ "column": {
172
+ "type": "integer",
173
+ "exclusiveMinimum": 0
174
+ },
175
+ "message": {
176
+ "type": "string"
177
+ },
178
+ "code": {
179
+ "type": "string"
180
+ },
181
+ "severity": {
182
+ "type": "string",
183
+ "enum": [
184
+ "error",
185
+ "warning"
186
+ ]
187
+ },
188
+ "context": {
189
+ "type": "string"
190
+ },
191
+ "guidance": {
192
+ "type": "string"
193
+ }
194
+ },
195
+ "required": [
196
+ "message"
197
+ ],
198
+ "additionalProperties": false
199
+ }
200
+ },
201
+ "guidance": {
202
+ "type": "string"
203
+ },
204
+ "errorSummary": {
205
+ "type": "string"
206
+ },
207
+ "metadata": {
208
+ "type": "object",
209
+ "properties": {
210
+ "detection": {
211
+ "type": "object",
212
+ "properties": {
213
+ "extractor": {
214
+ "type": "string"
215
+ },
216
+ "confidence": {
217
+ "type": "number",
218
+ "minimum": 0,
219
+ "maximum": 100
220
+ },
221
+ "patterns": {
222
+ "type": "array",
223
+ "items": {
224
+ "type": "string"
225
+ }
226
+ },
227
+ "reason": {
228
+ "type": "string"
229
+ }
230
+ },
231
+ "required": [
232
+ "extractor",
233
+ "confidence",
234
+ "patterns",
235
+ "reason"
236
+ ],
237
+ "additionalProperties": false
238
+ },
239
+ "confidence": {
240
+ "type": "number",
241
+ "minimum": 0,
242
+ "maximum": 100
243
+ },
244
+ "completeness": {
245
+ "type": "number",
246
+ "minimum": 0,
247
+ "maximum": 100
248
+ },
249
+ "issues": {
250
+ "type": "array",
251
+ "items": {
252
+ "type": "string"
253
+ }
254
+ },
255
+ "suggestions": {
256
+ "type": "array",
257
+ "items": {
258
+ "type": "string"
259
+ }
260
+ }
261
+ },
262
+ "required": [
263
+ "confidence",
264
+ "completeness",
265
+ "issues"
266
+ ],
267
+ "additionalProperties": false
268
+ }
269
+ },
270
+ "required": [
271
+ "summary",
272
+ "totalErrors",
273
+ "errors"
274
+ ],
275
+ "additionalProperties": false
154
276
  }
155
277
  },
156
278
  "required": [