create-disposabl-app 0.5.0 → 0.6.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 (87) hide show
  1. package/README.md +12 -0
  2. package/dist/disposabl.js +541 -0
  3. package/dist/index.js +91 -8
  4. package/dist/templates/default/.github/scripts/android-build.sh +18 -0
  5. package/dist/templates/default/.github/scripts/disposabl.mjs +95 -0
  6. package/dist/templates/default/.github/scripts/expo-channel.sh +10 -0
  7. package/dist/templates/default/.github/scripts/expo-env.sh +17 -0
  8. package/dist/templates/default/.github/scripts/expo-fingerprint.sh +28 -0
  9. package/dist/templates/default/.github/scripts/expo-update.sh +11 -0
  10. package/dist/templates/default/.github/scripts/package-release.sh +23 -0
  11. package/dist/templates/default/.github/scripts/platforms.sh +37 -0
  12. package/dist/templates/default/.github/scripts/release-publish.sh +28 -0
  13. package/dist/templates/default/.github/scripts/release-source.sh +14 -0
  14. package/dist/templates/default/.github/scripts/verify-artifacts.sh +13 -0
  15. package/dist/templates/default/.github/scripts/web-deploy.sh +10 -0
  16. package/dist/templates/default/.github/workflows/pipeline.yml +300 -0
  17. package/dist/templates/default/apps/mobile/AGENTS.md +2 -2
  18. package/dist/templates/default/apps/mobile/README.md +4 -3
  19. package/dist/templates/default/apps/mobile/app.json +3 -4
  20. package/dist/templates/default/apps/mobile/assets/images/android-icon-foreground.png +0 -0
  21. package/dist/templates/default/apps/mobile/assets/images/android-icon-monochrome.png +0 -0
  22. package/dist/templates/default/apps/mobile/assets/images/icon.png +0 -0
  23. package/dist/templates/default/apps/mobile/assets/images/splash-icon.png +0 -0
  24. package/dist/templates/default/apps/mobile/eas.json +5 -0
  25. package/dist/templates/default/apps/mobile/package.json +5 -4
  26. package/dist/templates/default/apps/web/package.json +1 -1
  27. package/dist/templates/default/apps/web/src/routeTree.gen.ts +0 -44
  28. package/dist/templates/default/apps/web/src/router/__root.tsx +1 -1
  29. package/dist/templates/default/apps/web/src/router/_authenticated/dashboard.tsx +0 -1
  30. package/dist/templates/default/apps/web/src/router/index.tsx +11 -3
  31. package/dist/templates/default/bun.lock +19 -5
  32. package/dist/templates/default/bunfig.toml +0 -2
  33. package/dist/templates/default/package.json +3 -3
  34. package/dist/templates/default/packages/backend/AGENTS.md +15 -13
  35. package/dist/templates/default/packages/backend/README.md +6 -28
  36. package/dist/templates/default/packages/backend/convex/_generated/ai/ai-files.state.json +1 -1
  37. package/dist/templates/default/packages/backend/convex/_generated/api.d.ts +32 -6
  38. package/dist/templates/default/packages/backend/convex/_generated/server.d.ts +8 -0
  39. package/dist/templates/default/packages/backend/convex/apps/actions/create.ts +19 -0
  40. package/dist/templates/default/packages/backend/convex/apps/internal.ts +197 -0
  41. package/dist/templates/default/packages/backend/convex/auth.ts +1 -1
  42. package/dist/templates/default/packages/backend/convex/convex.config.ts +8 -0
  43. package/dist/templates/default/packages/backend/convex/github/actions/http.ts +40 -0
  44. package/dist/templates/default/packages/backend/convex/github/actions/internal.ts +189 -0
  45. package/dist/templates/default/packages/backend/convex/github/actions/oidc.ts +75 -0
  46. package/dist/templates/default/packages/backend/convex/github/actions/provision.ts +80 -0
  47. package/dist/templates/default/packages/backend/convex/github/actions/tokens.ts +66 -0
  48. package/dist/templates/default/packages/backend/convex/github/internal.ts +34 -0
  49. package/dist/templates/default/packages/backend/convex/http.ts +3 -0
  50. package/dist/templates/default/packages/backend/convex/previews/internal.ts +270 -0
  51. package/dist/templates/default/packages/backend/convex/previews/token/actions/create.ts +69 -0
  52. package/dist/templates/default/packages/backend/convex/previews/token/actions/management.ts +133 -0
  53. package/dist/templates/default/packages/backend/convex/previews/token/internal.ts +1 -0
  54. package/dist/templates/default/packages/backend/convex/releases/internal.ts +28 -0
  55. package/dist/templates/default/packages/backend/convex/schema.ts +34 -4
  56. package/dist/templates/default/packages/backend/convex/users/index.ts +21 -0
  57. package/dist/templates/default/packages/backend/convex/users/internal.ts +44 -0
  58. package/dist/templates/default/packages/backend/convex/validator.ts +87 -0
  59. package/dist/templates/default/packages/backend/generate.ts +6 -1
  60. package/dist/templates/default/packages/backend/generated/openapi.json +961 -43
  61. package/dist/templates/default/packages/backend/generated/pages.json +0 -8
  62. package/dist/templates/default/packages/backend/generated/platforms.ts +14 -2
  63. package/dist/templates/default/packages/backend/package.json +1 -1
  64. package/dist/templates/default/packages/cli/README.md +15 -9
  65. package/dist/templates/default/packages/cli/auth.ts +11 -3
  66. package/dist/templates/default/packages/cli/commands.ts +236 -0
  67. package/dist/templates/default/packages/cli/index.ts +2 -142
  68. package/dist/templates/default/packages/cli/preview.ts +157 -0
  69. package/dist/templates/default/packages/disposabl-kit/client/routes/consent.tsx +2 -1
  70. package/dist/templates/default/packages/disposabl-kit/client/routes/route.tsx +35 -1
  71. package/dist/templates/default/packages/disposabl-kit/mobile/lib/logo.png +0 -0
  72. package/dist/templates/default/packages/disposabl-kit/mobile/screens/account.tsx +1 -1
  73. package/dist/templates/default/packages/disposabl-kit/mobile/screens/home.tsx +20 -5
  74. package/dist/templates/default/packages/sdk/README.md +8 -4
  75. package/dist/templates/default/packages/sdk/src/config.ts +14 -7
  76. package/dist/templates/default/packages/sdk/src/generated/index.ts +48 -13
  77. package/dist/templates/default/packages/sdk/src/generated/sdk.gen.ts +139 -27
  78. package/dist/templates/default/packages/sdk/src/generated/types.gen.ts +440 -37
  79. package/package.json +6 -3
  80. package/dist/templates/default/.github/README.md +0 -99
  81. package/dist/templates/default/.github/actionlint.yaml +0 -6
  82. package/dist/templates/default/.github/workflows/pipeline.yml.example +0 -546
  83. package/dist/templates/default/apps/web/src/router/_authenticated/todos/$id.tsx +0 -27
  84. package/dist/templates/default/apps/web/src/router/_authenticated/todos/index.tsx +0 -33
  85. package/dist/templates/default/packages/backend/convex/todos/index.ts +0 -26
  86. package/dist/templates/default/packages/backend/convex/todos/internal.ts +0 -43
  87. package/dist/templates/default/packages/backend/convex/users.ts +0 -43
@@ -4,16 +4,28 @@ export type ClientOptions = {
4
4
  baseUrl: `${string}://${string}` | (string & {});
5
5
  };
6
6
 
7
- export type TodosCreateData = {
7
+ export type AppsCreateData = {
8
8
  body: {
9
- title: string;
9
+ name: string;
10
+ platforms: Array<
11
+ | "web"
12
+ | "android"
13
+ | "ios"
14
+ | "macos"
15
+ | "windows"
16
+ | "linux"
17
+ | "api"
18
+ | "mcp"
19
+ | "typescript-sdk"
20
+ | "cli"
21
+ >;
10
22
  };
11
23
  path?: never;
12
24
  query?: never;
13
- url: "/api/todos/create";
25
+ url: "/api/apps/create";
14
26
  };
15
27
 
16
- export type TodosCreateErrors = {
28
+ export type AppsCreateErrors = {
17
29
  /**
18
30
  * Invalid arguments
19
31
  */
@@ -32,29 +44,80 @@ export type TodosCreateErrors = {
32
44
  500: unknown;
33
45
  };
34
46
 
35
- export type TodosCreateResponses = {
47
+ export type AppsCreateResponses = {
36
48
  /**
37
- * ID of a document in "todos"
49
+ * Success
50
+ */
51
+ 200: {
52
+ appId: string;
53
+ name: string;
54
+ platforms: Array<
55
+ | "web"
56
+ | "android"
57
+ | "ios"
58
+ | "macos"
59
+ | "windows"
60
+ | "linux"
61
+ | "api"
62
+ | "mcp"
63
+ | "typescript-sdk"
64
+ | "cli"
65
+ >;
66
+ githubOwner?: string;
67
+ githubRepo?: string;
68
+ createdAt: number;
69
+ };
70
+ };
71
+
72
+ export type AppsCreateResponse = AppsCreateResponses[keyof AppsCreateResponses];
73
+
74
+ export type AppsDeleteData = {
75
+ body: {
76
+ appId: string;
77
+ };
78
+ path?: never;
79
+ query?: never;
80
+ url: "/api/apps/delete";
81
+ };
82
+
83
+ export type AppsDeleteErrors = {
84
+ /**
85
+ * Invalid arguments
86
+ */
87
+ 400: unknown;
88
+ /**
89
+ * Authentication required
90
+ */
91
+ 401: unknown;
92
+ /**
93
+ * Insufficient scope
94
+ */
95
+ 403: unknown;
96
+ /**
97
+ * Internal error
38
98
  */
39
- 200: string;
99
+ 500: unknown;
40
100
  };
41
101
 
42
- export type TodosCreateResponse =
43
- TodosCreateResponses[keyof TodosCreateResponses];
102
+ export type AppsDeleteResponses = {
103
+ /**
104
+ * Success
105
+ */
106
+ 200: null;
107
+ };
44
108
 
45
- export type TodosGetData = {
109
+ export type AppsDeleteResponse = AppsDeleteResponses[keyof AppsDeleteResponses];
110
+
111
+ export type AppsGetData = {
46
112
  body?: never;
47
113
  path?: never;
48
114
  query: {
49
- /**
50
- * ID of a document in "todos"
51
- */
52
- id: string;
115
+ appId: string;
53
116
  };
54
- url: "/api/todos/get";
117
+ url: "/api/apps/get";
55
118
  };
56
119
 
57
- export type TodosGetErrors = {
120
+ export type AppsGetErrors = {
58
121
  /**
59
122
  * Invalid arguments
60
123
  */
@@ -73,31 +136,372 @@ export type TodosGetErrors = {
73
136
  500: unknown;
74
137
  };
75
138
 
76
- export type TodosGetResponses = {
139
+ export type AppsGetResponses = {
77
140
  /**
78
141
  * Success
79
142
  */
80
143
  200: {
81
- userId: string;
82
- title: string;
83
- /**
84
- * ID of a document in "todos"
85
- */
86
- _id: string;
87
- _creationTime: number;
144
+ appId: string;
145
+ name: string;
146
+ platforms: Array<
147
+ | "web"
148
+ | "android"
149
+ | "ios"
150
+ | "macos"
151
+ | "windows"
152
+ | "linux"
153
+ | "api"
154
+ | "mcp"
155
+ | "typescript-sdk"
156
+ | "cli"
157
+ >;
158
+ githubOwner?: string;
159
+ githubRepo?: string;
160
+ createdAt: number;
161
+ };
162
+ };
163
+
164
+ export type AppsGetResponse = AppsGetResponses[keyof AppsGetResponses];
165
+
166
+ export type AppsListData = {
167
+ body?: never;
168
+ path?: never;
169
+ query: {
170
+ paginationOpts: {
171
+ numItems: number;
172
+ cursor: string | null;
173
+ endCursor?: string | null;
174
+ id?: number;
175
+ maximumRowsRead?: number;
176
+ maximumBytesRead?: number;
177
+ };
178
+ };
179
+ url: "/api/apps/list";
180
+ };
181
+
182
+ export type AppsListErrors = {
183
+ /**
184
+ * Invalid arguments
185
+ */
186
+ 400: unknown;
187
+ /**
188
+ * Authentication required
189
+ */
190
+ 401: unknown;
191
+ /**
192
+ * Insufficient scope
193
+ */
194
+ 403: unknown;
195
+ /**
196
+ * Internal error
197
+ */
198
+ 500: unknown;
199
+ };
200
+
201
+ export type AppsListResponses = {
202
+ /**
203
+ * Success
204
+ */
205
+ 200: {
206
+ page: Array<{
207
+ appId: string;
208
+ name: string;
209
+ platforms: Array<
210
+ | "web"
211
+ | "android"
212
+ | "ios"
213
+ | "macos"
214
+ | "windows"
215
+ | "linux"
216
+ | "api"
217
+ | "mcp"
218
+ | "typescript-sdk"
219
+ | "cli"
220
+ >;
221
+ githubOwner?: string;
222
+ githubRepo?: string;
223
+ createdAt: number;
224
+ }>;
225
+ continueCursor: string;
226
+ isDone: boolean;
227
+ splitCursor?: string | null;
228
+ pageStatus?: "SplitRecommended" | "SplitRequired" | null;
229
+ };
230
+ };
231
+
232
+ export type AppsListResponse = AppsListResponses[keyof AppsListResponses];
233
+
234
+ export type PreviewsGetData = {
235
+ body?: never;
236
+ path?: never;
237
+ query: {
238
+ appId: string;
239
+ reference: string;
240
+ };
241
+ url: "/api/previews/get";
242
+ };
243
+
244
+ export type PreviewsGetErrors = {
245
+ /**
246
+ * Invalid arguments
247
+ */
248
+ 400: unknown;
249
+ /**
250
+ * Authentication required
251
+ */
252
+ 401: unknown;
253
+ /**
254
+ * Insufficient scope
255
+ */
256
+ 403: unknown;
257
+ /**
258
+ * Internal error
259
+ */
260
+ 500: unknown;
261
+ };
262
+
263
+ export type PreviewsGetResponses = {
264
+ /**
265
+ * Success
266
+ */
267
+ 200: {
268
+ appId: string;
269
+ reference: string;
270
+ stage: "generating" | "building";
271
+ deployment?: {
272
+ name: string;
273
+ reference: string;
274
+ convexUrl: string;
275
+ convexSiteUrl: string;
276
+ };
277
+ platforms: {
278
+ [key: string]: {
279
+ enabled: boolean;
280
+ url?: string;
281
+ latest?: {
282
+ status: "building" | "ready" | "failed" | "blocked";
283
+ reason?: string;
284
+ version?: string;
285
+ githubReleaseUrl?: string;
286
+ artifactUrl?: string;
287
+ updateUrl?: string;
288
+ run: {
289
+ id: number;
290
+ attempt: number;
291
+ number: number;
292
+ commitSha: string;
293
+ url: string;
294
+ };
295
+ };
296
+ };
297
+ };
298
+ updatedAt: number;
299
+ } | null;
300
+ };
301
+
302
+ export type PreviewsGetResponse =
303
+ PreviewsGetResponses[keyof PreviewsGetResponses];
304
+
305
+ export type PreviewsListData = {
306
+ body?: never;
307
+ path?: never;
308
+ query: {
309
+ appId: string;
310
+ paginationOpts: {
311
+ numItems: number;
312
+ cursor: string | null;
313
+ endCursor?: string | null;
314
+ id?: number;
315
+ maximumRowsRead?: number;
316
+ maximumBytesRead?: number;
317
+ };
318
+ };
319
+ url: "/api/previews/list";
320
+ };
321
+
322
+ export type PreviewsListErrors = {
323
+ /**
324
+ * Invalid arguments
325
+ */
326
+ 400: unknown;
327
+ /**
328
+ * Authentication required
329
+ */
330
+ 401: unknown;
331
+ /**
332
+ * Insufficient scope
333
+ */
334
+ 403: unknown;
335
+ /**
336
+ * Internal error
337
+ */
338
+ 500: unknown;
339
+ };
340
+
341
+ export type PreviewsListResponses = {
342
+ /**
343
+ * Success
344
+ */
345
+ 200: {
346
+ page: Array<{
347
+ appId: string;
348
+ reference: string;
349
+ stage: "generating" | "building";
350
+ deployment?: {
351
+ name: string;
352
+ reference: string;
353
+ convexUrl: string;
354
+ convexSiteUrl: string;
355
+ };
356
+ platforms: {
357
+ [key: string]: {
358
+ enabled: boolean;
359
+ url?: string;
360
+ latest?: {
361
+ status: "building" | "ready" | "failed" | "blocked";
362
+ reason?: string;
363
+ version?: string;
364
+ githubReleaseUrl?: string;
365
+ artifactUrl?: string;
366
+ updateUrl?: string;
367
+ run: {
368
+ id: number;
369
+ attempt: number;
370
+ number: number;
371
+ commitSha: string;
372
+ url: string;
373
+ };
374
+ };
375
+ };
376
+ };
377
+ updatedAt: number;
378
+ }>;
379
+ continueCursor: string;
380
+ isDone: boolean;
381
+ splitCursor?: string | null;
382
+ pageStatus?: "SplitRecommended" | "SplitRequired" | null;
383
+ };
384
+ };
385
+
386
+ export type PreviewsListResponse =
387
+ PreviewsListResponses[keyof PreviewsListResponses];
388
+
389
+ export type PreviewsTokenCreateData = {
390
+ body: {
391
+ appId: string;
392
+ reference: string;
393
+ };
394
+ path?: never;
395
+ query?: never;
396
+ url: "/api/previews/token/create";
397
+ };
398
+
399
+ export type PreviewsTokenCreateErrors = {
400
+ /**
401
+ * Invalid arguments
402
+ */
403
+ 400: unknown;
404
+ /**
405
+ * Authentication required
406
+ */
407
+ 401: unknown;
408
+ /**
409
+ * Insufficient scope
410
+ */
411
+ 403: unknown;
412
+ /**
413
+ * Internal error
414
+ */
415
+ 500: unknown;
416
+ };
417
+
418
+ export type PreviewsTokenCreateResponses = {
419
+ /**
420
+ * Success
421
+ */
422
+ 200: {
423
+ appId: string;
424
+ name: string;
425
+ reference: string;
426
+ convexUrl: string;
427
+ convexSiteUrl: string;
428
+ deployKey: string;
429
+ };
430
+ };
431
+
432
+ export type PreviewsTokenCreateResponse =
433
+ PreviewsTokenCreateResponses[keyof PreviewsTokenCreateResponses];
434
+
435
+ export type ReleasesGetData = {
436
+ body?: never;
437
+ path?: never;
438
+ query: {
439
+ appId: string;
440
+ };
441
+ url: "/api/releases/get";
442
+ };
443
+
444
+ export type ReleasesGetErrors = {
445
+ /**
446
+ * Invalid arguments
447
+ */
448
+ 400: unknown;
449
+ /**
450
+ * Authentication required
451
+ */
452
+ 401: unknown;
453
+ /**
454
+ * Insufficient scope
455
+ */
456
+ 403: unknown;
457
+ /**
458
+ * Internal error
459
+ */
460
+ 500: unknown;
461
+ };
462
+
463
+ export type ReleasesGetResponses = {
464
+ /**
465
+ * Success
466
+ */
467
+ 200: {
468
+ appId: string;
469
+ platforms: {
470
+ [key: string]: {
471
+ enabled: boolean;
472
+ url?: string;
473
+ latest?: {
474
+ status: "building" | "ready" | "failed" | "blocked";
475
+ reason?: string;
476
+ version?: string;
477
+ githubReleaseUrl?: string;
478
+ artifactUrl?: string;
479
+ updateUrl?: string;
480
+ run: {
481
+ id: number;
482
+ attempt: number;
483
+ number: number;
484
+ commitSha: string;
485
+ url: string;
486
+ };
487
+ };
488
+ };
489
+ };
490
+ updatedAt: number;
88
491
  } | null;
89
492
  };
90
493
 
91
- export type TodosGetResponse = TodosGetResponses[keyof TodosGetResponses];
494
+ export type ReleasesGetResponse =
495
+ ReleasesGetResponses[keyof ReleasesGetResponses];
92
496
 
93
- export type TodosListData = {
497
+ export type UsersCurrentData = {
94
498
  body?: never;
95
499
  path?: never;
96
500
  query?: never;
97
- url: "/api/todos/list";
501
+ url: "/api/users/current";
98
502
  };
99
503
 
100
- export type TodosListErrors = {
504
+ export type UsersCurrentErrors = {
101
505
  /**
102
506
  * Invalid arguments
103
507
  */
@@ -116,19 +520,18 @@ export type TodosListErrors = {
116
520
  500: unknown;
117
521
  };
118
522
 
119
- export type TodosListResponses = {
523
+ export type UsersCurrentResponses = {
120
524
  /**
121
525
  * Success
122
526
  */
123
- 200: Array<{
124
- userId: string;
125
- title: string;
527
+ 200: null | {
126
528
  /**
127
- * ID of a document in "todos"
529
+ * ID of a document in "users"
128
530
  */
129
- _id: string;
130
- _creationTime: number;
131
- }>;
531
+ id: string;
532
+ username: string | null;
533
+ };
132
534
  };
133
535
 
134
- export type TodosListResponse = TodosListResponses[keyof TodosListResponses];
536
+ export type UsersCurrentResponse =
537
+ UsersCurrentResponses[keyof UsersCurrentResponses];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-disposabl-app",
3
- "version": "0.5.0",
3
+ "version": "0.6.1",
4
4
  "description": "Create a Disposabl app",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -10,7 +10,8 @@
10
10
  "directory": "packages/create-disposabl-app"
11
11
  },
12
12
  "bin": {
13
- "create-disposabl-app": "dist/index.js"
13
+ "create-disposabl-app": "dist/index.js",
14
+ "disposabl": "dist/disposabl.js"
14
15
  },
15
16
  "files": [
16
17
  "dist",
@@ -33,7 +34,9 @@
33
34
  "@clack/core": "1.5.1",
34
35
  "@clack/prompts": "1.8.1",
35
36
  "commander": "15.0.0",
36
- "picocolors": "1.1.1"
37
+ "picocolors": "1.1.1",
38
+ "@modelcontextprotocol/sdk": "1.32.2",
39
+ "proper-lockfile": "4.1.2"
37
40
  },
38
41
  "devDependencies": {
39
42
  "@eslint/js": "10.0.1",
@@ -1,99 +0,0 @@
1
- # Preview pipeline
2
-
3
- `pipeline.yml` runs directly in this repository and is included in generated apps.
4
- All preview decisions are visible in the workflow. There are no `preview.mjs`
5
- helpers or local development setup hooks. Backend development uses `convex dev`.
6
-
7
- ## Order
8
-
9
- 1. **Web**, **Linux** and **Windows** start in parallel on 4-vCPU Blacksmith runners.
10
- **macOS** joins them on a 6-vCPU Blacksmith Apple Silicon runner.
11
- Platform selection runs inline, with no separate Plan job. Each desktop runner
12
- checks whether it is enabled and affected before installing dependencies.
13
- 2. Web checks the source and deploys backend and web, then checks each affected
14
- mobile platform's fingerprint on the same runner.
15
- 3. A matching project, application ID, channel and fingerprint uses EAS Update.
16
- A different fingerprint or missing compatible binary starts that platform's
17
- native job after Web. Android and iOS build in parallel on 4-vCPU Linux and
18
- 6-vCPU macOS Blacksmith runners respectively.
19
- 4. Each platform publishes from its existing build runner as soon as its own
20
- build and verification succeed. Compatible updates publish from Web; native
21
- jobs publish independently. There is no final Release job or artifact transfer.
22
-
23
- Each PR has one published prerelease per affected platform at
24
- `<RELEASE_PREFIX>-<CHANNEL>-<PLATFORM>`, for example `app-pr-2-macos`.
25
- Successful updates replace its assets and notes, remove obsolete assets and move
26
- that platform's preview tag to the tested commit. A failed platform build leaves
27
- its previous preview available and does not block other platforms.
28
- New releases are drafts only during their initial upload, then become public.
29
- Production publishes regular releases with separate tags per platform and run.
30
- Platform releases do not compete for GitHub's single Latest label with the CLI's
31
- semantic-release publication. Desktop package versions remain `1.0.<run number>`.
32
-
33
- iOS uses EAS local builds with remote ad hoc signing credentials and publishes
34
- release IPAs. A matching, unexpired IPA receives EAS Update. Missing credentials
35
- fail the native build; no additional enable flag is required. The macOS desktop
36
- runner is separate from iOS. See [iOS setup](../apps/mobile/README.md#ios).
37
-
38
- `CHANNEL` at the top is the single preview-name expression. Convex preview names,
39
- EAS channels, EAS branches and mobile builds all use it. The default is `pr-N` for
40
- PRs and `production` for main. Runner labels and tool versions are also at the top.
41
-
42
- ## Selection
43
-
44
- Mobile changes select Android and iOS; desktop changes select Linux, Windows and macOS. Shared
45
- packages, lockfiles and platform configuration select all enabled supported
46
- native targets. Web, backend-only and documentation changes skip native installs
47
- and builds. Desktop runners still start briefly to make that decision; forks skip
48
- the desktop jobs entirely.
49
- Each PR platform compares against its last successfully published release's
50
- source commit. Later web-only commits therefore skip desktop and mobile, while
51
- failed or cancelled builds remain pending. Without a published baseline, selection
52
- uses the whole PR diff. Truncated or diverged comparisons conservatively rebuild.
53
- Main uses the complete pushed commit range. Fork PRs only
54
- validate on Blacksmith Linux; they never deploy or publish.
55
-
56
- ## Runners and caches
57
-
58
- Every job uses Blacksmith. GitHub Actions schedules the jobs and displays their
59
- graph; there are no GitHub-hosted or Boat runners.
60
-
61
- A full native preview can use four 4-vCPU runners and two 6-vCPU macOS runners.
62
- Android and iOS allocate runners only when a native build is needed. Publishing
63
- reuses those machines; there is no separate Plan or Release runner.
64
- Install the Blacksmith GitHub App for the repository.
65
-
66
- Bun cache keys include OS, architecture, Bun version and lockfile. Each fresh
67
- runner installs from that cache; `node_modules` is not transferred between OSes.
68
- Blacksmith's native Turbo remote cache stores checks and web builds. Gradle caches dependencies and cacheable build
69
- outputs; Electron downloads have their own cache. Build outputs upload directly
70
- to GitHub Releases without an intermediate Actions artifact. Superseded PR runs
71
- cancel; production runs serialize.
72
-
73
- Default branch dependency caches can seed previews. Blacksmith's Turbo cache
74
- shares eligible tasks across branches; Actions dependency caches retain their
75
- branch access rules. No cache access policy is changed here.
76
- Thirty to forty seconds is a warm update-only target, not a measured guarantee.
77
- Native compilation and external deployment can take longer than one minute.
78
- Compare the same commit with warm caches before increasing runner size; use a
79
- larger runner only when it saves close to half the end-to-end time or more.
80
- The 4-vCPU configuration is a candidate until comparable cold/warm runs verify it.
81
-
82
- ## Configuration
83
-
84
- Web requires `CONVEX_DEPLOY_KEY_PREVIEW` for PRs and `CONVEX_DEPLOY_KEY` for main.
85
- Mobile previews require `EXPO_TOKEN` plus `EXPO_PROJECT_ID`, `EXPO_OWNER` and `EXPO_SLUG`
86
- repository variables. See [mobile setup](../apps/mobile/README.md) for signing.
87
- macOS signing and notarization use the five optional
88
- [desktop signing secrets](../apps/desktop/README.md#macos-signing). With all five
89
- present, both previews and production are Developer ID signed and notarized.
90
- Otherwise, both publish an ad hoc signed, unnotarized Apple Silicon DMG with its
91
- status and installation guidance in the release notes. Configured signing or
92
- notarization failures still fail the job. Apple notarization adds external
93
- processing time. `MACOS_BUNDLE_ID` configures the app identifier.
94
- The Web/Android and desktop jobs have contents-write permission for their own
95
- releases. Forks never deploy or publish; checkout does not persist credentials.
96
- Each platform verifies its expected files and source commit before publication.
97
-
98
- Benchmark branches are separate from this product workflow. Build-only benchmark
99
- URLs and cache timings do not prove a live backend deployment or device behavior.
@@ -1,6 +0,0 @@
1
- self-hosted-runner:
2
- labels:
3
- - blacksmith-2vcpu-ubuntu-2404
4
- - blacksmith-4vcpu-ubuntu-2404
5
- - blacksmith-2vcpu-windows-2025
6
- - blacksmith-6vcpu-macos-26