@on-par/factory-cli 0.9.11-next.4 → 0.9.11-next.41

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 (110) hide show
  1. package/README.md +1 -1
  2. package/dist/cli/base-health-ci.d.ts +4 -0
  3. package/dist/cli/base-health-ci.d.ts.map +1 -0
  4. package/dist/cli/base-health-ci.js +9 -0
  5. package/dist/cli/base-health-ci.js.map +1 -0
  6. package/dist/cli/base-hold.d.ts +14 -11
  7. package/dist/cli/base-hold.d.ts.map +1 -1
  8. package/dist/cli/base-hold.js +43 -20
  9. package/dist/cli/base-hold.js.map +1 -1
  10. package/dist/cli/cost-json.d.ts +5 -31
  11. package/dist/cli/cost-json.d.ts.map +1 -1
  12. package/dist/cli/cost-json.js.map +1 -1
  13. package/dist/cli/daemon.d.ts +2 -15
  14. package/dist/cli/daemon.d.ts.map +1 -1
  15. package/dist/cli/daemon.js +5 -11
  16. package/dist/cli/daemon.js.map +1 -1
  17. package/dist/cli/doctor.js +1 -1
  18. package/dist/cli/doctor.js.map +1 -1
  19. package/dist/cli/index.d.ts +10 -48
  20. package/dist/cli/index.d.ts.map +1 -1
  21. package/dist/cli/index.js +27 -186
  22. package/dist/cli/index.js.map +1 -1
  23. package/dist/cli/json-contract.d.ts +299 -0
  24. package/dist/cli/json-contract.d.ts.map +1 -0
  25. package/dist/cli/json-contract.js +206 -0
  26. package/dist/cli/json-contract.js.map +1 -0
  27. package/dist/cli/land-pr.d.ts.map +1 -1
  28. package/dist/cli/land-pr.js +5 -0
  29. package/dist/cli/land-pr.js.map +1 -1
  30. package/dist/cli/lane-environment-pause-error.d.ts +19 -0
  31. package/dist/cli/lane-environment-pause-error.d.ts.map +1 -0
  32. package/dist/cli/lane-environment-pause-error.js +24 -0
  33. package/dist/cli/lane-environment-pause-error.js.map +1 -0
  34. package/dist/cli/logs.d.ts +14 -0
  35. package/dist/cli/logs.d.ts.map +1 -1
  36. package/dist/cli/logs.js +46 -4
  37. package/dist/cli/logs.js.map +1 -1
  38. package/dist/cli/program-observe.d.ts.map +1 -1
  39. package/dist/cli/program-observe.js +5 -2
  40. package/dist/cli/program-observe.js.map +1 -1
  41. package/dist/cli/queue-add-json.d.ts +3 -25
  42. package/dist/cli/queue-add-json.d.ts.map +1 -1
  43. package/dist/cli/queue-add-json.js.map +1 -1
  44. package/dist/cli/queue-list.d.ts +6 -24
  45. package/dist/cli/queue-list.d.ts.map +1 -1
  46. package/dist/cli/queue-list.js +6 -1
  47. package/dist/cli/queue-list.js.map +1 -1
  48. package/dist/cli/queue-preflight.d.ts +45 -0
  49. package/dist/cli/queue-preflight.d.ts.map +1 -0
  50. package/dist/cli/queue-preflight.js +277 -0
  51. package/dist/cli/queue-preflight.js.map +1 -0
  52. package/dist/cli/run-branch.d.ts +24 -0
  53. package/dist/cli/run-branch.d.ts.map +1 -0
  54. package/dist/cli/run-branch.js +38 -0
  55. package/dist/cli/run-branch.js.map +1 -0
  56. package/dist/cli/run-lane.d.ts.map +1 -1
  57. package/dist/cli/run-lane.js +5 -2
  58. package/dist/cli/run-lane.js.map +1 -1
  59. package/dist/cli/run.d.ts.map +1 -1
  60. package/dist/cli/run.js +10 -3
  61. package/dist/cli/run.js.map +1 -1
  62. package/dist/cli/runs-diffstat.d.ts +6 -25
  63. package/dist/cli/runs-diffstat.d.ts.map +1 -1
  64. package/dist/cli/runs-diffstat.js.map +1 -1
  65. package/dist/cli/runs.d.ts +4 -19
  66. package/dist/cli/runs.d.ts.map +1 -1
  67. package/dist/cli/runs.js +1 -1
  68. package/dist/cli/runs.js.map +1 -1
  69. package/dist/cli/self-update-stop.d.ts +7 -0
  70. package/dist/cli/self-update-stop.d.ts.map +1 -0
  71. package/dist/cli/self-update-stop.js +27 -0
  72. package/dist/cli/self-update-stop.js.map +1 -0
  73. package/dist/cli/ship-run-state.d.ts +5 -0
  74. package/dist/cli/ship-run-state.d.ts.map +1 -0
  75. package/dist/cli/ship-run-state.js +12 -0
  76. package/dist/cli/ship-run-state.js.map +1 -0
  77. package/dist/cli/ship-steps.d.ts +1 -1
  78. package/dist/cli/ship-steps.d.ts.map +1 -1
  79. package/dist/cli/ship-steps.js +5 -2
  80. package/dist/cli/ship-steps.js.map +1 -1
  81. package/dist/cli/ship.d.ts.map +1 -1
  82. package/dist/cli/ship.js +25 -21
  83. package/dist/cli/ship.js.map +1 -1
  84. package/dist/cli/status-json.d.ts +7 -28
  85. package/dist/cli/status-json.d.ts.map +1 -1
  86. package/dist/cli/status-json.js +3 -1
  87. package/dist/cli/status-json.js.map +1 -1
  88. package/dist/cli/status.d.ts.map +1 -1
  89. package/dist/cli/status.js +4 -1
  90. package/dist/cli/status.js.map +1 -1
  91. package/dist/cli/stop-resume-json.d.ts +2 -10
  92. package/dist/cli/stop-resume-json.d.ts.map +1 -1
  93. package/dist/cli/stop-resume-json.js +1 -0
  94. package/dist/cli/stop-resume-json.js.map +1 -1
  95. package/dist/cli/usage-json.d.ts +4 -13
  96. package/dist/cli/usage-json.d.ts.map +1 -1
  97. package/dist/cli/usage-json.js.map +1 -1
  98. package/package.json +8 -5
  99. package/schemas/cost.schema.json +100 -0
  100. package/schemas/daemon-status.schema.json +44 -0
  101. package/schemas/logs-line.schema.json +114 -0
  102. package/schemas/queue-add.schema.json +73 -0
  103. package/schemas/queue-list.schema.json +77 -0
  104. package/schemas/resume.schema.json +36 -0
  105. package/schemas/runs-diffstat.schema.json +81 -0
  106. package/schemas/runs.schema.json +75 -0
  107. package/schemas/status.schema.json +200 -0
  108. package/schemas/stop.schema.json +36 -0
  109. package/schemas/unpark.schema.json +57 -0
  110. package/schemas/usage.schema.json +28 -0
@@ -0,0 +1,200 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "schemaVersion": {
6
+ "type": "number",
7
+ "const": 1
8
+ },
9
+ "repo": {
10
+ "type": "string"
11
+ },
12
+ "product": {
13
+ "type": ["string", "null"]
14
+ },
15
+ "stop": {
16
+ "type": "boolean"
17
+ },
18
+ "stopInfo": {
19
+ "anyOf": [
20
+ {
21
+ "type": "object",
22
+ "properties": {
23
+ "source": {
24
+ "type": "string",
25
+ "enum": ["manual", "usage-watchdog", "self-update", "unknown"]
26
+ },
27
+ "setAt": {
28
+ "type": ["string", "null"]
29
+ }
30
+ },
31
+ "required": ["source", "setAt"],
32
+ "additionalProperties": false
33
+ },
34
+ {
35
+ "type": "null"
36
+ }
37
+ ]
38
+ },
39
+ "breaker": {
40
+ "type": "object",
41
+ "properties": {
42
+ "open": {
43
+ "type": "boolean"
44
+ },
45
+ "providers": {
46
+ "type": "array",
47
+ "items": {
48
+ "type": "object",
49
+ "properties": {
50
+ "provider": {
51
+ "type": "string"
52
+ },
53
+ "reason": {
54
+ "type": "string"
55
+ },
56
+ "openedAt": {
57
+ "type": "string"
58
+ },
59
+ "remainingSec": {
60
+ "type": "number"
61
+ }
62
+ },
63
+ "required": ["provider", "reason", "openedAt", "remainingSec"],
64
+ "additionalProperties": false
65
+ }
66
+ }
67
+ },
68
+ "required": ["open", "providers"],
69
+ "additionalProperties": false
70
+ },
71
+ "active": {
72
+ "type": "array",
73
+ "items": {
74
+ "type": "object",
75
+ "properties": {
76
+ "lane": {
77
+ "type": "string"
78
+ },
79
+ "issue": {
80
+ "type": "number"
81
+ },
82
+ "phase": {
83
+ "type": "string"
84
+ },
85
+ "ageSec": {
86
+ "type": "number"
87
+ }
88
+ },
89
+ "required": ["lane", "issue", "phase", "ageSec"],
90
+ "additionalProperties": false
91
+ }
92
+ },
93
+ "update": {
94
+ "anyOf": [
95
+ {
96
+ "type": "object",
97
+ "properties": {
98
+ "mode": {
99
+ "type": "string",
100
+ "enum": ["manual", "stable", "prerelease"]
101
+ },
102
+ "channel": {
103
+ "anyOf": [
104
+ {
105
+ "type": "string",
106
+ "enum": ["latest", "next"]
107
+ },
108
+ {
109
+ "type": "null"
110
+ }
111
+ ]
112
+ },
113
+ "installKind": {
114
+ "type": "string",
115
+ "enum": ["npm-global", "source", "unknown"]
116
+ },
117
+ "current": {
118
+ "type": "string"
119
+ },
120
+ "available": {
121
+ "type": ["string", "null"]
122
+ },
123
+ "lastCheckAt": {
124
+ "type": ["string", "null"]
125
+ },
126
+ "lastResult": {
127
+ "anyOf": [
128
+ {
129
+ "type": "object",
130
+ "properties": {
131
+ "at": {
132
+ "type": "string"
133
+ },
134
+ "version": {
135
+ "type": "string"
136
+ },
137
+ "outcome": {
138
+ "type": "string",
139
+ "enum": ["updated", "rolled-back", "failed", "skipped"]
140
+ },
141
+ "error": {
142
+ "type": "string"
143
+ }
144
+ },
145
+ "required": ["at", "version", "outcome"],
146
+ "additionalProperties": false
147
+ },
148
+ {
149
+ "type": "null"
150
+ }
151
+ ]
152
+ },
153
+ "draining": {
154
+ "anyOf": [
155
+ {
156
+ "type": "object",
157
+ "properties": {
158
+ "since": {
159
+ "type": "string"
160
+ },
161
+ "target": {
162
+ "type": "string"
163
+ },
164
+ "stopFiles": {
165
+ "type": "array",
166
+ "items": {
167
+ "type": "string"
168
+ }
169
+ }
170
+ },
171
+ "required": ["since", "target"],
172
+ "additionalProperties": false
173
+ },
174
+ {
175
+ "type": "null"
176
+ }
177
+ ]
178
+ }
179
+ },
180
+ "required": [
181
+ "mode",
182
+ "channel",
183
+ "installKind",
184
+ "current",
185
+ "available",
186
+ "lastCheckAt",
187
+ "lastResult",
188
+ "draining"
189
+ ],
190
+ "additionalProperties": false
191
+ },
192
+ {
193
+ "type": "null"
194
+ }
195
+ ]
196
+ }
197
+ },
198
+ "required": ["schemaVersion", "repo", "product", "stop", "stopInfo", "breaker", "active", "update"],
199
+ "additionalProperties": false
200
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "schemaVersion": {
6
+ "type": "number",
7
+ "const": 1
8
+ },
9
+ "ok": {
10
+ "type": "boolean",
11
+ "const": true
12
+ },
13
+ "repo": {
14
+ "type": "string"
15
+ },
16
+ "stopFlag": {
17
+ "type": "object",
18
+ "properties": {
19
+ "before": {
20
+ "type": "boolean"
21
+ },
22
+ "after": {
23
+ "type": "boolean"
24
+ }
25
+ },
26
+ "required": ["before", "after"],
27
+ "additionalProperties": false
28
+ },
29
+ "action": {
30
+ "type": "string",
31
+ "const": "stop"
32
+ }
33
+ },
34
+ "required": ["schemaVersion", "ok", "repo", "stopFlag", "action"],
35
+ "additionalProperties": false
36
+ }
@@ -0,0 +1,57 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "schemaVersion": {
6
+ "type": "number",
7
+ "const": 1
8
+ },
9
+ "ok": {
10
+ "type": "boolean",
11
+ "const": true
12
+ },
13
+ "action": {
14
+ "type": "string",
15
+ "const": "unpark"
16
+ },
17
+ "issue": {
18
+ "type": "number"
19
+ },
20
+ "lane": {
21
+ "type": "string"
22
+ },
23
+ "order": {
24
+ "type": "number"
25
+ },
26
+ "collision": {
27
+ "type": "object",
28
+ "properties": {
29
+ "order": {
30
+ "type": "number"
31
+ },
32
+ "heldBy": {
33
+ "type": "array",
34
+ "items": {
35
+ "type": "number"
36
+ }
37
+ }
38
+ },
39
+ "required": ["order", "heldBy"],
40
+ "additionalProperties": false
41
+ },
42
+ "labelsBefore": {
43
+ "type": "array",
44
+ "items": {
45
+ "type": "string"
46
+ }
47
+ },
48
+ "labelsAfter": {
49
+ "type": "array",
50
+ "items": {
51
+ "type": "string"
52
+ }
53
+ }
54
+ },
55
+ "required": ["schemaVersion", "ok", "action", "issue", "lane", "order", "labelsBefore", "labelsAfter"],
56
+ "additionalProperties": false
57
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "schemaVersion": {
6
+ "type": "number",
7
+ "const": 1
8
+ },
9
+ "source": {
10
+ "type": "string",
11
+ "enum": ["subscription", "heuristic", "unavailable"]
12
+ },
13
+ "utilizationPct": {
14
+ "type": ["number", "null"]
15
+ },
16
+ "resetsAt": {
17
+ "type": ["string", "null"]
18
+ },
19
+ "windowHours": {
20
+ "type": "number"
21
+ },
22
+ "estimateUsd": {
23
+ "type": ["number", "null"]
24
+ }
25
+ },
26
+ "required": ["schemaVersion", "source", "utilizationPct", "resetsAt", "windowHours", "estimateUsd"],
27
+ "additionalProperties": false
28
+ }