@rightkit/ci 0.0.0-stage → 0.2.42

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.
@@ -0,0 +1,286 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://rightkit.dev/schemas/rightgit-manifest-v1.json",
4
+ "title": "right-git per-repo manifest (.rightgit.json)",
5
+ "description": "Declares which right-git lanes a public repo installs and how templates should be parameterized. Hand-validated by manifest.mjs — this file documents the contract, it is not fed to a JSON Schema validator at runtime.",
6
+ "type": "object",
7
+ "required": ["schemaVersion", "compile", "lanes", "matrix", "packageManager", "templateVersion"],
8
+ "additionalProperties": false,
9
+ "properties": {
10
+ "schemaVersion": {
11
+ "const": 1
12
+ },
13
+ "compile": {
14
+ "const": "github-actions-only"
15
+ },
16
+ "lanes": {
17
+ "type": "array",
18
+ "minItems": 1,
19
+ "items": {
20
+ "enum": [
21
+ "ci",
22
+ "qualification",
23
+ "package-smoke",
24
+ "release-candidate",
25
+ "publish-npm",
26
+ "publish-package-managers",
27
+ "regenerate"
28
+ ]
29
+ }
30
+ },
31
+ "matrix": {
32
+ "type": "object",
33
+ "required": ["os", "node"],
34
+ "additionalProperties": false,
35
+ "properties": {
36
+ "os": {
37
+ "type": "array",
38
+ "minItems": 1,
39
+ "items": { "type": "string", "minLength": 1 }
40
+ },
41
+ "node": {
42
+ "type": "array",
43
+ "minItems": 1,
44
+ "items": { "type": "string", "minLength": 1 }
45
+ }
46
+ }
47
+ },
48
+ "packageManager": {
49
+ "type": "string",
50
+ "pattern": "^(pnpm|npm|yarn)@\\d+\\.\\d+\\.\\d+$"
51
+ },
52
+ "publish": {
53
+ "type": "object",
54
+ "additionalProperties": false,
55
+ "properties": {
56
+ "npm": {
57
+ "type": "object",
58
+ "required": ["oidc", "provenance"],
59
+ "additionalProperties": false,
60
+ "properties": {
61
+ "oidc": { "type": "boolean", "const": true },
62
+ "provenance": { "type": "boolean" }
63
+ }
64
+ },
65
+ "homebrew": {
66
+ "type": "object",
67
+ "required": ["tap", "formulaName"],
68
+ "additionalProperties": false,
69
+ "properties": {
70
+ "tap": { "type": "string", "pattern": "^[^/]+/[^/]+$" },
71
+ "formulaName": { "type": "string", "minLength": 1 }
72
+ }
73
+ },
74
+ "winget": {
75
+ "type": "object",
76
+ "required": ["packageIdentifier"],
77
+ "additionalProperties": false,
78
+ "properties": {
79
+ "packageIdentifier": { "type": "string", "minLength": 1 }
80
+ }
81
+ }
82
+ }
83
+ },
84
+ "templateVersion": {
85
+ "type": "string",
86
+ "pattern": "^\\d+\\.\\d+\\.\\d+$"
87
+ }
88
+ ,"ownership": {
89
+ "type": "object",
90
+ "required": ["roots"],
91
+ "additionalProperties": false,
92
+ "properties": {
93
+ "roots": {
94
+ "type": "array",
95
+ "minItems": 1,
96
+ "uniqueItems": true,
97
+ "items": { "type": "string", "pattern": "^(?:\\.|(?!.*\\.\\.)(?!.*\\\\)(?!.*\\s)[A-Za-z0-9][A-Za-z0-9._/-]*)$" }
98
+ }
99
+ }
100
+ }
101
+ ,"defaultBranch": {
102
+ "type": "string",
103
+ "default": "main",
104
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,99}$",
105
+ "description": "Branch the ci, qualification and package-smoke push triggers and the rust-hybrid release-candidate admission use. Default main."
106
+ }
107
+ ,"checkout": {
108
+ "type": "object",
109
+ "additionalProperties": false,
110
+ "description": "Opt-in options for every actions/checkout step. longPaths renders a Windows-only step before each checkout running `git config --system core.longpaths true` (fixes 'Filename too long' on windows runners). sparse renders `sparse-checkout` (cone mode) with these directories into each checkout of the repository itself. Unset renders nothing.",
111
+ "properties": {
112
+ "longPaths": { "type": "boolean" },
113
+ "sparse": {
114
+ "type": "array",
115
+ "minItems": 1,
116
+ "maxItems": 64,
117
+ "uniqueItems": true,
118
+ "items": { "type": "string", "pattern": "^(?!.*\\.\\.)(?!\\.?/)[A-Za-z0-9._][A-Za-z0-9._/-]*$" }
119
+ }
120
+ }
121
+ }
122
+ ,"swift": {
123
+ "type": "object",
124
+ "additionalProperties": false,
125
+ "required": ["privatePackages"],
126
+ "description": "Opt-in read access to private Swift package mirrors. Renders a configure step before the first build or test step and an always-run cleanup step after the last one, in the ci job, the qualification job, the release-candidate candidate job, the regenerate job and the parallel dev-artifact-mac job. Needs at least one of the lanes ci, qualification, release-candidate or regenerate. Unset renders nothing.",
127
+ "properties": {
128
+ "privatePackages": {
129
+ "type": "array",
130
+ "minItems": 1,
131
+ "maxItems": 4,
132
+ "items": {
133
+ "type": "object",
134
+ "required": ["host", "secret"],
135
+ "additionalProperties": false,
136
+ "properties": {
137
+ "host": { "type": "string", "pattern": "^[A-Za-z0-9](?:[A-Za-z0-9-]{0,62})(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,62}))*$", "description": "Bare host name, for example github.com. Unique within the list." },
138
+ "secret": { "type": "string", "pattern": "^(?![Gg][Ii][Tt][Hh][Uu][Bb]_)[A-Za-z_][A-Za-z0-9_]{0,99}$", "description": "GitHub Actions secret name holding a fine-grained token with contents:read on the mirror. Provisioned by the repository owner." }
139
+ }
140
+ }
141
+ }
142
+ }
143
+ }
144
+ ,"profile": { "enum": ["node", "rust-hybrid"] },
145
+ "rustCache": {
146
+ "type": "object",
147
+ "required": ["workspaces"],
148
+ "additionalProperties": false,
149
+ "properties": {
150
+ "workspaces": {
151
+ "type": "array",
152
+ "minItems": 1,
153
+ "uniqueItems": true,
154
+ "items": { "type": "string", "pattern": "^(?:\\.|(?!.*\\.\\.)(?!.*\\s)[A-Za-z0-9][A-Za-z0-9._/-]*)$" }
155
+ },
156
+ "requiredForGate": { "type": "boolean" },
157
+ "keySuffix": {
158
+ "type": "string",
159
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$",
160
+ "description": "Appended to the Swatinem/rust-cache key as <lane>-<keySuffix>. rust-cache never re-saves on an exact key hit; change the suffix to rotate the cache."
161
+ }
162
+ }
163
+ },
164
+ "gate": {
165
+ "type": "object", "required": ["path"], "additionalProperties": false,
166
+ "properties": { "path": { "type": "string", "pattern": "^(?!.*\\.\\.)(?!.*\\s)[A-Za-z0-9][A-Za-z0-9._/-]*$" } }
167
+ },
168
+ "qaEvidencePath": {
169
+ "type": "string",
170
+ "description": "rust-hybrid only. Safe relative path under $RUNNER_TEMP where the gate writes QA evidence; rendered as ${{ runner.temp }}/<path> and uploaded with if: always().",
171
+ "pattern": "^(?!.*\\.\\.)(?!.*\\s)[A-Za-z0-9][A-Za-z0-9._/-]*$"
172
+ },
173
+ "qaEvidenceRetentionDays": {
174
+ "type": "integer",
175
+ "minimum": 1,
176
+ "maximum": 90,
177
+ "default": 7,
178
+ "description": "rust-hybrid only, requires qaEvidencePath. Artifact retention in days."
179
+ },
180
+ "ciAllOs": {
181
+ "type": "boolean",
182
+ "default": false,
183
+ "description": "rust-hybrid only. When true, the ci job runs the gate on every matrix.os runner in declared order (fail-fast: false). When false or unset, the ci job uses one runner (preferring the first windows-* entry, else the first matrix.os entry)."
184
+ },
185
+ "ciIncremental": {
186
+ "type": "boolean",
187
+ "default": false,
188
+ "description": "rust-hybrid only. When true, the ci job uses Swatinem/rust-cache with cache-workspace-crates, CARGO_INCREMENTAL=1, and caches Xcode DerivedData on macOS legs."
189
+ },
190
+ "regenerate": {
191
+ "type": "object",
192
+ "description": "Manual-only lane: runs `script`, checks the result, and opens a pull request from a right-git/regenerate-<run> branch. Requires lane 'regenerate'. Never writes to the default branch.",
193
+ "required": ["script"],
194
+ "additionalProperties": false,
195
+ "properties": {
196
+ "script": { "type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9:_-]*$" }
197
+ }
198
+ },
199
+ "concurrency": {
200
+ "type": "object",
201
+ "additionalProperties": false,
202
+ "description": "Requires lane 'ci'. Sets the ci workflow's concurrency.",
203
+ "properties": {
204
+ "mainPushes": {
205
+ "enum": ["cancel", "queue"],
206
+ "default": "cancel",
207
+ "description": "'cancel' (default) cancels a superseded push to the default branch. 'queue' lets default-branch pushes run to completion; PR runs still cancel superseded runs."
208
+ }
209
+ }
210
+ },
211
+ "devArtifact": {
212
+ "type": "object",
213
+ "additionalProperties": false,
214
+ "description": "rust-hybrid only. Dev builds on push to the default branch (never PRs). mac 'sign' Developer ID-signs (no notarization) in a separate job using the release environment; windows 'unsigned' uploads built files as-is.",
215
+ "properties": {
216
+ "mac": { "enum": ["sign", "notarize", "unsigned", "none"] },
217
+ "windows": { "enum": ["unsigned", "none"] },
218
+ "parallel": { "type": "boolean", "default": false, "description": "When true, each platform builds and stages the dev app in its own dev-artifact-<platform> job beside the QA gate job, instead of after the gate in the ci job. Requires buildScript." },
219
+ "buildScript": { "type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9:_-]*$", "description": "Package script that compiles the dev app. Required when parallel is true; rejected otherwise." },
220
+ "retentionDays": { "type": "integer", "minimum": 1, "maximum": 90, "default": 7 },
221
+ "macAppPath": { "type": "string", "pattern": "^(?!.*\\.\\.)[A-Za-z0-9][A-Za-z0-9._/ -]*\\.app$", "description": "Repository-relative path of the built .app (required when mac is 'sign')." },
222
+ "macEntitlements": { "type": "string", "pattern": "^(?!.*\\.\\.)(?!.*\\s)[A-Za-z0-9][A-Za-z0-9._/-]*$", "description": "Optional repository-relative entitlements plist for codesign." },
223
+ "windowsGlob": { "type": "string", "pattern": "^(?!.*\\.\\.)[A-Za-z0-9][A-Za-z0-9._/*?-]*$", "description": "Repository-relative glob of built files to upload (required when windows is 'unsigned')." }
224
+ }
225
+ },
226
+ "candidate": {
227
+ "type": "object",
228
+ "required": ["buildScript", "checkScript", "admissionScript", "stageSummaryScript", "artifactRoot", "os"],
229
+ "additionalProperties": false,
230
+ "properties": {
231
+ "buildScript": { "type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9:_-]*$" },
232
+ "checkScript": { "type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9:_-]*$" },
233
+ "admissionScript": {
234
+ "type": "string",
235
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9:_-]*$",
236
+ "description": "Runs in the unconditional `admission` job (workflow_dispatch envelope validation). Required for every release-candidate lane, signed or not."
237
+ },
238
+ "stageSummaryScript": {
239
+ "type": "string",
240
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9:_-]*$",
241
+ "description": "Runs (init/finalize) in the `candidate` job and, when configured, the windows-sign/macos-sign jobs. Required for every release-candidate lane, signed or not."
242
+ },
243
+ "artifactRoot": { "type": "string", "pattern": "^(?!.*\\.\\.)(?!.*\\s)[A-Za-z0-9][A-Za-z0-9._/-]*$" },
244
+ "os": { "type": "array", "minItems": 1, "items": { "type": "string", "minLength": 1 } },
245
+ "targets": {
246
+ "type": "array",
247
+ "minItems": 1,
248
+ "items": {
249
+ "type": "object",
250
+ "required": ["os", "platform", "architecture"],
251
+ "additionalProperties": false,
252
+ "properties": {
253
+ "os": { "type": "string", "minLength": 1 },
254
+ "platform": { "enum": ["windows", "macos", "linux"] },
255
+ "architecture": { "enum": ["x86_64", "arm64"] }
256
+ }
257
+ }
258
+ },
259
+ "signWindows": { "type": "boolean" },
260
+ "signMacos": { "type": "boolean" },
261
+ "releaseChain": {
262
+ "type": "object",
263
+ "required": ["evidenceVerificationScript", "windowsFinalizeScript", "installedQualificationScript", "publishScript", "qualificationRunnerVariable"],
264
+ "additionalProperties": false,
265
+ "properties": {
266
+ "evidenceVerificationScript": {
267
+ "type": "string",
268
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9:_-]*$",
269
+ "description": "Runs in the `publish` job before the publish step, verifying the aggregated same-run signed/qualification evidence."
270
+ },
271
+ "windowsFinalizeScript": { "type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9:_-]*$" },
272
+ "macosFinalizeScript": { "type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9:_-]*$" },
273
+ "installedQualificationScript": { "type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9:_-]*$" },
274
+ "publishScript": { "type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9:_-]*$" },
275
+ "qualificationRunnerVariable": { "type": "string", "pattern": "^[A-Z][A-Z0-9_]*$" },
276
+ "publishSecrets": {
277
+ "type": "array",
278
+ "uniqueItems": true,
279
+ "items": { "type": "string", "pattern": "^[A-Z][A-Z0-9_]*$" }
280
+ }
281
+ }
282
+ }
283
+ }
284
+ }
285
+ }
286
+ }