@vibe-validate/cli 0.10.3 → 0.11.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.
Files changed (71) hide show
  1. package/README.md +70 -88
  2. package/dist/bin.js +51 -9
  3. package/dist/bin.js.map +1 -1
  4. package/dist/commands/cleanup.d.ts.map +1 -1
  5. package/dist/commands/cleanup.js +5 -16
  6. package/dist/commands/cleanup.js.map +1 -1
  7. package/dist/commands/config.js +0 -15
  8. package/dist/commands/config.js.map +1 -1
  9. package/dist/commands/doctor.d.ts.map +1 -1
  10. package/dist/commands/doctor.js +83 -58
  11. package/dist/commands/doctor.js.map +1 -1
  12. package/dist/commands/generate-workflow.d.ts +2 -2
  13. package/dist/commands/generate-workflow.d.ts.map +1 -1
  14. package/dist/commands/generate-workflow.js +67 -21
  15. package/dist/commands/generate-workflow.js.map +1 -1
  16. package/dist/commands/init.d.ts.map +1 -1
  17. package/dist/commands/init.js +71 -109
  18. package/dist/commands/init.js.map +1 -1
  19. package/dist/commands/state.d.ts.map +1 -1
  20. package/dist/commands/state.js +0 -5
  21. package/dist/commands/state.js.map +1 -1
  22. package/dist/commands/sync-check.d.ts.map +1 -1
  23. package/dist/commands/sync-check.js +5 -14
  24. package/dist/commands/sync-check.js.map +1 -1
  25. package/dist/commands/watch-pr.d.ts +6 -0
  26. package/dist/commands/watch-pr.d.ts.map +1 -0
  27. package/dist/commands/watch-pr.js +282 -0
  28. package/dist/commands/watch-pr.js.map +1 -0
  29. package/dist/schemas/watch-pr-schema.d.ts +261 -0
  30. package/dist/schemas/watch-pr-schema.d.ts.map +1 -0
  31. package/dist/schemas/watch-pr-schema.js +58 -0
  32. package/dist/schemas/watch-pr-schema.js.map +1 -0
  33. package/dist/scripts/generate-watch-pr-schema.d.ts +12 -0
  34. package/dist/scripts/generate-watch-pr-schema.d.ts.map +1 -0
  35. package/dist/scripts/generate-watch-pr-schema.js +35 -0
  36. package/dist/scripts/generate-watch-pr-schema.js.map +1 -0
  37. package/dist/services/ci-provider-registry.d.ts +38 -0
  38. package/dist/services/ci-provider-registry.d.ts.map +1 -0
  39. package/dist/services/ci-provider-registry.js +53 -0
  40. package/dist/services/ci-provider-registry.js.map +1 -0
  41. package/dist/services/ci-provider.d.ts +160 -0
  42. package/dist/services/ci-provider.d.ts.map +1 -0
  43. package/dist/services/ci-provider.js +11 -0
  44. package/dist/services/ci-provider.js.map +1 -0
  45. package/dist/services/ci-providers/github-actions.d.ts +40 -0
  46. package/dist/services/ci-providers/github-actions.d.ts.map +1 -0
  47. package/dist/services/ci-providers/github-actions.js +305 -0
  48. package/dist/services/ci-providers/github-actions.js.map +1 -0
  49. package/dist/utils/check-validation.d.ts +1 -1
  50. package/dist/utils/check-validation.d.ts.map +1 -1
  51. package/dist/utils/check-validation.js +2 -2
  52. package/dist/utils/check-validation.js.map +1 -1
  53. package/dist/utils/config-loader.d.ts +15 -3
  54. package/dist/utils/config-loader.d.ts.map +1 -1
  55. package/dist/utils/config-loader.js +61 -17
  56. package/dist/utils/config-loader.js.map +1 -1
  57. package/dist/utils/context-detector.d.ts +1 -1
  58. package/dist/utils/context-detector.js +1 -1
  59. package/dist/utils/normalize-line-endings.d.ts +53 -0
  60. package/dist/utils/normalize-line-endings.d.ts.map +1 -0
  61. package/dist/utils/normalize-line-endings.js +57 -0
  62. package/dist/utils/normalize-line-endings.js.map +1 -0
  63. package/dist/utils/setup-checks/gitignore-check.d.ts.map +1 -1
  64. package/dist/utils/setup-checks/gitignore-check.js +3 -4
  65. package/dist/utils/setup-checks/gitignore-check.js.map +1 -1
  66. package/dist/utils/template-discovery.d.ts +40 -0
  67. package/dist/utils/template-discovery.d.ts.map +1 -0
  68. package/dist/utils/template-discovery.js +136 -0
  69. package/dist/utils/template-discovery.js.map +1 -0
  70. package/package.json +9 -8
  71. package/watch-pr-result.schema.json +204 -0
@@ -0,0 +1,204 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://github.com/jdutton/vibe-validate/blob/main/packages/cli/watch-pr-result.schema.json",
4
+ "title": "vibe-validate watch-pr Result Schema",
5
+ "description": "JSON Schema for vibe-validate watch-pr command YAML output",
6
+ "$ref": "#/definitions/WatchPRResult",
7
+ "definitions": {
8
+ "WatchPRResult": {
9
+ "type": "object",
10
+ "properties": {
11
+ "pr": {
12
+ "type": "object",
13
+ "properties": {
14
+ "id": {
15
+ "type": [
16
+ "number",
17
+ "string"
18
+ ]
19
+ },
20
+ "title": {
21
+ "type": "string"
22
+ },
23
+ "url": {
24
+ "type": "string",
25
+ "format": "uri"
26
+ }
27
+ },
28
+ "required": [
29
+ "id",
30
+ "title",
31
+ "url"
32
+ ],
33
+ "additionalProperties": false
34
+ },
35
+ "status": {
36
+ "type": "string",
37
+ "enum": [
38
+ "pending",
39
+ "in_progress",
40
+ "completed",
41
+ "timeout"
42
+ ]
43
+ },
44
+ "result": {
45
+ "type": "string",
46
+ "enum": [
47
+ "success",
48
+ "failure",
49
+ "cancelled",
50
+ "unknown"
51
+ ]
52
+ },
53
+ "duration": {
54
+ "type": "string"
55
+ },
56
+ "summary": {
57
+ "type": "string"
58
+ },
59
+ "checks": {
60
+ "type": "array",
61
+ "items": {
62
+ "type": "object",
63
+ "properties": {
64
+ "name": {
65
+ "type": "string"
66
+ },
67
+ "status": {
68
+ "type": "string"
69
+ },
70
+ "conclusion": {
71
+ "type": [
72
+ "string",
73
+ "null"
74
+ ]
75
+ },
76
+ "duration": {
77
+ "type": "string"
78
+ },
79
+ "url": {
80
+ "type": "string",
81
+ "format": "uri"
82
+ }
83
+ },
84
+ "required": [
85
+ "name",
86
+ "status",
87
+ "conclusion"
88
+ ],
89
+ "additionalProperties": false
90
+ }
91
+ },
92
+ "failures": {
93
+ "type": "array",
94
+ "items": {
95
+ "type": "object",
96
+ "properties": {
97
+ "name": {
98
+ "type": "string"
99
+ },
100
+ "checkId": {
101
+ "type": "string"
102
+ },
103
+ "errorSummary": {
104
+ "type": "string"
105
+ },
106
+ "stateFile": {
107
+ "type": "object",
108
+ "properties": {
109
+ "passed": {
110
+ "type": "boolean"
111
+ },
112
+ "timestamp": {
113
+ "type": "string"
114
+ },
115
+ "treeHash": {
116
+ "type": "string"
117
+ },
118
+ "failedStep": {
119
+ "type": "string"
120
+ },
121
+ "rerunCommand": {
122
+ "type": "string"
123
+ },
124
+ "failedStepOutput": {
125
+ "type": "string"
126
+ },
127
+ "phases": {
128
+ "type": "array",
129
+ "items": {
130
+ "type": "object",
131
+ "properties": {
132
+ "name": {
133
+ "type": "string"
134
+ },
135
+ "passed": {
136
+ "type": "boolean"
137
+ },
138
+ "steps": {
139
+ "type": "array",
140
+ "items": {
141
+ "type": "object",
142
+ "properties": {
143
+ "name": {
144
+ "type": "string"
145
+ },
146
+ "passed": {
147
+ "type": "boolean"
148
+ },
149
+ "durationSecs": {
150
+ "type": "number"
151
+ },
152
+ "output": {
153
+ "type": "string"
154
+ }
155
+ },
156
+ "required": [
157
+ "name",
158
+ "passed"
159
+ ],
160
+ "additionalProperties": false
161
+ }
162
+ }
163
+ },
164
+ "required": [
165
+ "name",
166
+ "passed"
167
+ ],
168
+ "additionalProperties": false
169
+ }
170
+ }
171
+ },
172
+ "required": [
173
+ "passed"
174
+ ],
175
+ "additionalProperties": false
176
+ },
177
+ "nextSteps": {
178
+ "type": "array",
179
+ "items": {
180
+ "type": "string"
181
+ }
182
+ }
183
+ },
184
+ "required": [
185
+ "name",
186
+ "checkId",
187
+ "nextSteps"
188
+ ],
189
+ "additionalProperties": false
190
+ }
191
+ }
192
+ },
193
+ "required": [
194
+ "pr",
195
+ "status",
196
+ "result",
197
+ "duration",
198
+ "summary",
199
+ "checks"
200
+ ],
201
+ "additionalProperties": false
202
+ }
203
+ }
204
+ }