create-disposabl-app 0.4.2 → 0.6.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.
- package/README.md +18 -0
- package/dist/disposabl.js +541 -0
- package/dist/index.js +154 -61
- package/dist/templates/default/.github/scripts/android-build.sh +18 -0
- package/dist/templates/default/.github/scripts/disposabl.mjs +95 -0
- package/dist/templates/default/.github/scripts/expo-channel.sh +10 -0
- package/dist/templates/default/.github/scripts/expo-env.sh +17 -0
- package/dist/templates/default/.github/scripts/expo-fingerprint.sh +19 -0
- package/dist/templates/default/.github/scripts/expo-update.sh +11 -0
- package/dist/templates/default/.github/scripts/package-release.sh +23 -0
- package/dist/templates/default/.github/scripts/platforms.sh +37 -0
- package/dist/templates/default/.github/scripts/release-publish.sh +28 -0
- package/dist/templates/default/.github/scripts/release-source.sh +14 -0
- package/dist/templates/default/.github/scripts/verify-artifacts.sh +13 -0
- package/dist/templates/default/.github/scripts/web-deploy.sh +10 -0
- package/dist/templates/default/.github/workflows/pipeline.yml +299 -0
- package/dist/templates/default/apps/docs/README.md +37 -0
- package/dist/templates/default/apps/docs/content/guides/writing.mdx +15 -0
- package/dist/templates/default/apps/docs/content/index.mdx +10 -0
- package/dist/templates/default/apps/docs/package.json +29 -1
- package/dist/templates/default/apps/docs/press.config.ts +20 -0
- package/dist/templates/default/apps/docs/src/app.css +4 -0
- package/dist/templates/default/apps/docs/tsconfig.json +14 -0
- package/dist/templates/default/apps/docs/vite.config.ts +8 -0
- package/dist/templates/default/apps/mobile/.env.example +2 -0
- package/dist/templates/default/apps/mobile/AGENTS.md +2 -2
- package/dist/templates/default/apps/mobile/README.md +64 -4
- package/dist/templates/default/apps/mobile/app.json +5 -4
- package/dist/templates/default/apps/mobile/assets/images/android-icon-foreground.png +0 -0
- package/dist/templates/default/apps/mobile/assets/images/android-icon-monochrome.png +0 -0
- package/dist/templates/default/apps/mobile/assets/images/icon.png +0 -0
- package/dist/templates/default/apps/mobile/assets/images/splash-icon.png +0 -0
- package/dist/templates/default/apps/mobile/eas.json +5 -0
- package/dist/templates/default/apps/mobile/package.json +18 -4
- package/dist/templates/default/apps/mobile/src/app/(auth)/_layout.tsx +1 -0
- package/dist/templates/default/apps/mobile/src/app/(auth)/login.tsx +1 -0
- package/dist/templates/default/apps/mobile/src/app/(auth)/signup.tsx +1 -0
- package/dist/templates/default/apps/mobile/src/app/(authenticated)/_layout.tsx +1 -0
- package/dist/templates/default/apps/mobile/src/app/(authenticated)/account.tsx +1 -0
- package/dist/templates/default/apps/mobile/src/app/_layout.tsx +1 -5
- package/dist/templates/default/apps/mobile/src/app/index.tsx +1 -17
- package/dist/templates/default/apps/mobile/tsconfig.json +8 -1
- package/dist/templates/default/apps/web/package.json +3 -2
- package/dist/templates/default/apps/web/src/routeTree.gen.ts +0 -44
- package/dist/templates/default/apps/web/src/router/__root.tsx +1 -1
- package/dist/templates/default/apps/web/src/router/_authenticated/dashboard.api-keys.tsx +1 -1
- package/dist/templates/default/apps/web/src/router/_authenticated/dashboard.tsx +2 -1
- package/dist/templates/default/apps/web/src/router/index.tsx +11 -3
- package/dist/templates/default/apps/web/tests/auth-branches.test.tsx +44 -0
- package/dist/templates/default/apps/web/vite.config.ts +15 -0
- package/dist/templates/default/bun.lock +583 -23
- package/dist/templates/default/bunfig.toml +0 -2
- package/dist/templates/default/disposabl.json +2 -13
- package/dist/templates/default/package.json +3 -3
- package/dist/templates/default/packages/backend/AGENTS.md +15 -13
- package/dist/templates/default/packages/backend/README.md +6 -28
- package/dist/templates/default/packages/backend/convex/_generated/ai/ai-files.state.json +1 -1
- package/dist/templates/default/packages/backend/convex/_generated/api.d.ts +32 -6
- package/dist/templates/default/packages/backend/convex/_generated/server.d.ts +8 -0
- package/dist/templates/default/packages/backend/convex/apps/actions/create.ts +19 -0
- package/dist/templates/default/packages/backend/convex/apps/internal.ts +197 -0
- package/dist/templates/default/packages/backend/convex/auth.ts +1 -1
- package/dist/templates/default/packages/backend/convex/convex.config.ts +8 -0
- package/dist/templates/default/packages/backend/convex/github/actions/http.ts +40 -0
- package/dist/templates/default/packages/backend/convex/github/actions/internal.ts +189 -0
- package/dist/templates/default/packages/backend/convex/github/actions/oidc.ts +75 -0
- package/dist/templates/default/packages/backend/convex/github/actions/provision.ts +80 -0
- package/dist/templates/default/packages/backend/convex/github/actions/tokens.ts +66 -0
- package/dist/templates/default/packages/backend/convex/github/internal.ts +34 -0
- package/dist/templates/default/packages/backend/convex/http.ts +3 -0
- package/dist/templates/default/packages/backend/convex/previews/internal.ts +270 -0
- package/dist/templates/default/packages/backend/convex/previews/token/actions/create.ts +69 -0
- package/dist/templates/default/packages/backend/convex/previews/token/actions/management.ts +133 -0
- package/dist/templates/default/packages/backend/convex/previews/token/internal.ts +1 -0
- package/dist/templates/default/packages/backend/convex/releases/internal.ts +28 -0
- package/dist/templates/default/packages/backend/convex/schema.ts +34 -4
- package/dist/templates/default/packages/backend/convex/users/index.ts +21 -0
- package/dist/templates/default/packages/backend/convex/users/internal.ts +44 -0
- package/dist/templates/default/packages/backend/convex/validator.ts +87 -0
- package/dist/templates/default/packages/backend/generate.ts +6 -1
- package/dist/templates/default/packages/backend/generated/openapi.json +961 -43
- package/dist/templates/default/packages/backend/generated/pages.json +0 -8
- package/dist/templates/default/packages/backend/generated/platforms.ts +14 -2
- package/dist/templates/default/packages/backend/package.json +1 -1
- package/dist/templates/default/packages/cli/README.md +15 -9
- package/dist/templates/default/packages/cli/auth.ts +11 -3
- package/dist/templates/default/packages/cli/commands.ts +236 -0
- package/dist/templates/default/packages/cli/index.ts +2 -142
- package/dist/templates/default/packages/cli/preview.ts +157 -0
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/log-out.tsx +16 -0
- package/dist/templates/default/packages/disposabl-kit/client/lib/prerender.ts +6 -3
- package/dist/templates/default/packages/disposabl-kit/client/routes/_auth-pages/login.tsx +1 -1
- package/dist/templates/default/packages/disposabl-kit/client/routes/_auth-pages/signUp.tsx +1 -1
- package/dist/templates/default/packages/disposabl-kit/client/routes/_authenticated/route.tsx +25 -16
- package/dist/templates/default/packages/disposabl-kit/client/routes/consent.tsx +3 -2
- package/dist/templates/default/packages/disposabl-kit/client/routes/route.tsx +57 -2
- package/dist/templates/default/packages/disposabl-kit/client/vite.config.ts +20 -9
- package/dist/templates/default/packages/disposabl-kit/eslint.config.js +1 -1
- package/dist/templates/default/packages/disposabl-kit/features.ts +4 -0
- package/dist/templates/default/packages/disposabl-kit/mobile/components/auth-form.tsx +125 -0
- package/dist/templates/default/packages/disposabl-kit/mobile/components/auth-ui.tsx +107 -0
- package/dist/templates/default/packages/disposabl-kit/mobile/expo-plugin.cjs +26 -0
- package/dist/templates/default/packages/disposabl-kit/mobile/index.ts +10 -0
- package/dist/templates/default/packages/disposabl-kit/mobile/layout.tsx +101 -0
- package/dist/templates/default/packages/disposabl-kit/mobile/lib/auth-errors.ts +40 -0
- package/dist/templates/default/packages/disposabl-kit/mobile/lib/auth-storage.ts +9 -0
- package/dist/templates/default/packages/disposabl-kit/mobile/lib/convex.ts +1 -0
- package/dist/templates/default/packages/disposabl-kit/mobile/lib/logo.png +0 -0
- package/dist/templates/default/packages/disposabl-kit/mobile/screens/account.tsx +67 -0
- package/dist/templates/default/packages/disposabl-kit/mobile/screens/home.tsx +65 -0
- package/dist/templates/default/packages/disposabl-kit/mobile/screens/login.tsx +5 -0
- package/dist/templates/default/packages/disposabl-kit/mobile/screens/signup.tsx +5 -0
- package/dist/templates/default/packages/disposabl-kit/package.json +24 -1
- package/dist/templates/default/packages/disposabl-kit/platforms.ts +1 -27
- package/dist/templates/default/packages/disposabl-kit/server/http.ts +6 -0
- package/dist/templates/default/packages/disposabl-kit/server/lib/docs.test.ts +111 -0
- package/dist/templates/default/packages/disposabl-kit/server/lib/docs.ts +62 -0
- package/dist/templates/default/packages/disposabl-kit/tsconfig.json +1 -1
- package/dist/templates/default/packages/sdk/README.md +8 -4
- package/dist/templates/default/packages/sdk/src/config.ts +14 -7
- package/dist/templates/default/packages/sdk/src/generated/index.ts +48 -13
- package/dist/templates/default/packages/sdk/src/generated/sdk.gen.ts +139 -27
- package/dist/templates/default/packages/sdk/src/generated/types.gen.ts +440 -37
- package/dist/templates/default/turbo.json +7 -0
- package/package.json +6 -3
- package/dist/templates/default/.github/README.md +0 -99
- package/dist/templates/default/.github/actionlint.yaml +0 -6
- package/dist/templates/default/.github/workflows/pipeline.yml.example +0 -546
- package/dist/templates/default/apps/blog/package.json +0 -1
- package/dist/templates/default/apps/changelog/package.json +0 -1
- package/dist/templates/default/apps/desktop/.oxfmtrc.json +0 -5
- package/dist/templates/default/apps/desktop/.oxlintrc.json +0 -6
- package/dist/templates/default/apps/desktop/README.md +0 -88
- package/dist/templates/default/apps/desktop/build-ci.mjs +0 -56
- package/dist/templates/default/apps/desktop/forge.config.mts +0 -109
- package/dist/templates/default/apps/desktop/index.html +0 -12
- package/dist/templates/default/apps/desktop/package.json +0 -55
- package/dist/templates/default/apps/desktop/src/declarations.d.ts +0 -2
- package/dist/templates/default/apps/desktop/src/index.css +0 -8
- package/dist/templates/default/apps/desktop/src/main.ts +0 -58
- package/dist/templates/default/apps/desktop/src/preload.ts +0 -3
- package/dist/templates/default/apps/desktop/src/renderer.ts +0 -19
- package/dist/templates/default/apps/desktop/tsconfig.json +0 -14
- package/dist/templates/default/apps/desktop/vite.main.config.mts +0 -4
- package/dist/templates/default/apps/desktop/vite.preload.config.mts +0 -4
- package/dist/templates/default/apps/desktop/vite.renderer.config.mts +0 -4
- package/dist/templates/default/apps/web/src/router/_authenticated/todos/$id.tsx +0 -27
- package/dist/templates/default/apps/web/src/router/_authenticated/todos/index.tsx +0 -33
- package/dist/templates/default/packages/backend/convex/todos/index.ts +0 -26
- package/dist/templates/default/packages/backend/convex/todos/internal.ts +0 -43
- package/dist/templates/default/packages/backend/convex/users.ts +0 -20
|
@@ -4,16 +4,28 @@ export type ClientOptions = {
|
|
|
4
4
|
baseUrl: `${string}://${string}` | (string & {});
|
|
5
5
|
};
|
|
6
6
|
|
|
7
|
-
export type
|
|
7
|
+
export type AppsCreateData = {
|
|
8
8
|
body: {
|
|
9
|
-
|
|
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/
|
|
25
|
+
url: "/api/apps/create";
|
|
14
26
|
};
|
|
15
27
|
|
|
16
|
-
export type
|
|
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
|
|
47
|
+
export type AppsCreateResponses = {
|
|
36
48
|
/**
|
|
37
|
-
*
|
|
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
|
-
|
|
99
|
+
500: unknown;
|
|
40
100
|
};
|
|
41
101
|
|
|
42
|
-
export type
|
|
43
|
-
|
|
102
|
+
export type AppsDeleteResponses = {
|
|
103
|
+
/**
|
|
104
|
+
* Success
|
|
105
|
+
*/
|
|
106
|
+
200: null;
|
|
107
|
+
};
|
|
44
108
|
|
|
45
|
-
export type
|
|
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/
|
|
117
|
+
url: "/api/apps/get";
|
|
55
118
|
};
|
|
56
119
|
|
|
57
|
-
export type
|
|
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
|
|
139
|
+
export type AppsGetResponses = {
|
|
77
140
|
/**
|
|
78
141
|
* Success
|
|
79
142
|
*/
|
|
80
143
|
200: {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
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
|
|
494
|
+
export type ReleasesGetResponse =
|
|
495
|
+
ReleasesGetResponses[keyof ReleasesGetResponses];
|
|
92
496
|
|
|
93
|
-
export type
|
|
497
|
+
export type UsersCurrentData = {
|
|
94
498
|
body?: never;
|
|
95
499
|
path?: never;
|
|
96
500
|
query?: never;
|
|
97
|
-
url: "/api/
|
|
501
|
+
url: "/api/users/current";
|
|
98
502
|
};
|
|
99
503
|
|
|
100
|
-
export type
|
|
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
|
|
523
|
+
export type UsersCurrentResponses = {
|
|
120
524
|
/**
|
|
121
525
|
* Success
|
|
122
526
|
*/
|
|
123
|
-
200:
|
|
124
|
-
userId: string;
|
|
125
|
-
title: string;
|
|
527
|
+
200: null | {
|
|
126
528
|
/**
|
|
127
|
-
* ID of a document in "
|
|
529
|
+
* ID of a document in "users"
|
|
128
530
|
*/
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
}
|
|
531
|
+
id: string;
|
|
532
|
+
username: string | null;
|
|
533
|
+
};
|
|
132
534
|
};
|
|
133
535
|
|
|
134
|
-
export type
|
|
536
|
+
export type UsersCurrentResponse =
|
|
537
|
+
UsersCurrentResponses[keyof UsersCurrentResponses];
|
|
@@ -52,6 +52,13 @@
|
|
|
52
52
|
"generate:watch": {
|
|
53
53
|
"cache": false,
|
|
54
54
|
"persistent": true
|
|
55
|
+
},
|
|
56
|
+
"@disposabl/docs#build": {
|
|
57
|
+
"cache": false
|
|
58
|
+
},
|
|
59
|
+
"@disposabl/web#build": {
|
|
60
|
+
"dependsOn": ["^build"],
|
|
61
|
+
"cache": false
|
|
55
62
|
}
|
|
56
63
|
},
|
|
57
64
|
"globalDependencies": ["disposabl.json"]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-disposabl-app",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
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.
|