create-disposabl-app 0.8.9 → 0.8.11

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 (69) hide show
  1. package/README.md +8 -1
  2. package/dist/disposabl.js +42 -42
  3. package/dist/index.js +1 -1
  4. package/dist/templates/default/bun.lock +1 -7
  5. package/dist/templates/default/packages/backend/README.md +4 -8
  6. package/dist/templates/default/packages/backend/convex/_generated/api.d.ts +0 -67
  7. package/dist/templates/default/packages/backend/convex/_generated/server.d.ts +0 -9
  8. package/dist/templates/default/packages/backend/convex/convex.config.ts +0 -11
  9. package/dist/templates/default/packages/backend/convex/http.ts +1 -9
  10. package/dist/templates/default/packages/backend/convex/schema.ts +1 -69
  11. package/dist/templates/default/packages/backend/generated/openapi.json +1 -1262
  12. package/dist/templates/default/packages/backend/generated/pages.json +0 -4
  13. package/dist/templates/default/packages/backend/generated/platforms.ts +2 -20
  14. package/dist/templates/default/packages/backend/package.json +1 -7
  15. package/dist/templates/default/packages/cli/README.md +5 -1
  16. package/dist/templates/default/packages/cli/commands.ts +15 -8
  17. package/dist/templates/default/packages/cli/delete.ts +40 -31
  18. package/dist/templates/default/packages/skill/SKILL.md +13 -5
  19. package/dist/templates/default/packages/skill/references/delivery.md +1 -1
  20. package/package.json +1 -1
  21. package/dist/templates/default/packages/backend/convex/apps/actions/cleanup.ts +0 -296
  22. package/dist/templates/default/packages/backend/convex/apps/actions/create.ts +0 -30
  23. package/dist/templates/default/packages/backend/convex/apps/actions/delete.ts +0 -15
  24. package/dist/templates/default/packages/backend/convex/apps/actions/expo.ts +0 -174
  25. package/dist/templates/default/packages/backend/convex/apps/actions/setup.ts +0 -48
  26. package/dist/templates/default/packages/backend/convex/apps/internal.ts +0 -211
  27. package/dist/templates/default/packages/backend/convex/apps/operations/internal.ts +0 -213
  28. package/dist/templates/default/packages/backend/convex/apps/validator.ts +0 -23
  29. package/dist/templates/default/packages/backend/convex/connections/actions/credentials.ts +0 -56
  30. package/dist/templates/default/packages/backend/convex/connections/actions/expo.ts +0 -79
  31. package/dist/templates/default/packages/backend/convex/connections/actions/github.ts +0 -119
  32. package/dist/templates/default/packages/backend/convex/connections/actions/oauth.ts +0 -128
  33. package/dist/templates/default/packages/backend/convex/connections/index.ts +0 -80
  34. package/dist/templates/default/packages/backend/convex/connections/internal.ts +0 -147
  35. package/dist/templates/default/packages/backend/convex/connections/validator.ts +0 -35
  36. package/dist/templates/default/packages/backend/convex/downloads/action.ts +0 -136
  37. package/dist/templates/default/packages/backend/convex/downloads/http.ts +0 -32
  38. package/dist/templates/default/packages/backend/convex/downloads/internal.ts +0 -58
  39. package/dist/templates/default/packages/backend/convex/github/actions/http.ts +0 -69
  40. package/dist/templates/default/packages/backend/convex/github/actions/internal.ts +0 -196
  41. package/dist/templates/default/packages/backend/convex/github/actions/oidc.ts +0 -75
  42. package/dist/templates/default/packages/backend/convex/github/actions/provision.ts +0 -76
  43. package/dist/templates/default/packages/backend/convex/github/actions/secrets.ts +0 -180
  44. package/dist/templates/default/packages/backend/convex/github/actions/signing.ts +0 -41
  45. package/dist/templates/default/packages/backend/convex/github/actions/tokens.ts +0 -145
  46. package/dist/templates/default/packages/backend/convex/github/identityCache.ts +0 -54
  47. package/dist/templates/default/packages/backend/convex/github/internal.ts +0 -33
  48. package/dist/templates/default/packages/backend/convex/previews/internal.ts +0 -257
  49. package/dist/templates/default/packages/backend/convex/previews/token/actions/create.ts +0 -83
  50. package/dist/templates/default/packages/backend/convex/previews/token/actions/management.ts +0 -182
  51. package/dist/templates/default/packages/backend/convex/previews/token/internal.ts +0 -32
  52. package/dist/templates/default/packages/backend/convex/releases/internal.ts +0 -28
  53. package/dist/templates/default/packages/backend/convex/validator.ts +0 -87
  54. package/dist/templates/default/packages/sdk/src/generated/client/client.gen.ts +0 -300
  55. package/dist/templates/default/packages/sdk/src/generated/client/index.ts +0 -27
  56. package/dist/templates/default/packages/sdk/src/generated/client/types.gen.ts +0 -238
  57. package/dist/templates/default/packages/sdk/src/generated/client/utils.gen.ts +0 -337
  58. package/dist/templates/default/packages/sdk/src/generated/client.gen.ts +0 -28
  59. package/dist/templates/default/packages/sdk/src/generated/core/auth.gen.ts +0 -49
  60. package/dist/templates/default/packages/sdk/src/generated/core/bodySerializer.gen.ts +0 -96
  61. package/dist/templates/default/packages/sdk/src/generated/core/params.gen.ts +0 -188
  62. package/dist/templates/default/packages/sdk/src/generated/core/pathSerializer.gen.ts +0 -186
  63. package/dist/templates/default/packages/sdk/src/generated/core/queryKeySerializer.gen.ts +0 -134
  64. package/dist/templates/default/packages/sdk/src/generated/core/serverSentEvents.gen.ts +0 -265
  65. package/dist/templates/default/packages/sdk/src/generated/core/types.gen.ts +0 -126
  66. package/dist/templates/default/packages/sdk/src/generated/core/utils.gen.ts +0 -146
  67. package/dist/templates/default/packages/sdk/src/generated/index.ts +0 -63
  68. package/dist/templates/default/packages/sdk/src/generated/sdk.gen.ts +0 -234
  69. package/dist/templates/default/packages/sdk/src/generated/types.gen.ts +0 -660
package/README.md CHANGED
@@ -27,8 +27,15 @@ New apps start on `main`, which is also their initial preview name. No branch pr
27
27
 
28
28
  The website opens automatically and Metro starts with development-client support. Install a development build once with `bun run --cwd apps/mobile android` or `bun run --cwd apps/mobile ios`. Expo Go is not used.
29
29
 
30
- To get another development key in a worktree, run `disposabl previews token create --configure .`. The branch is detected automatically, or the worktree name when detached. Repeated requests reuse the preview and issue a new key.
30
+ To get another development key in a worktree, run `disposabl previews token create --configure .`. The branch is detected automatically, or the worktree name when detached. Repeated requests reuse the preview and issue a new key. This configures local development; it does not deploy or require a git push. Push the scaffold Initial commit to `main` first, then open a same-repository feature PR to `main` for a CI preview. A feature branch push alone does not deploy.
31
31
 
32
32
  If app creation is interrupted, rerun `bun create disposabl-app@latest my-app` from the parent directory. It resumes setup using the existing files and app UUID.
33
33
 
34
34
  Generated apps do not include the `create-disposabl-app` package, its workspace lockfile entry, or its Turbo build task. The generator and bundled Disposabl CLI run externally.
35
+
36
+ Generated backends start with only `users: defineTable({})`. The starter keeps
37
+ authentication, static hosting, and API/MCP support, with `users/current` as its
38
+ only application operation. Disposabl's apps, previews, releases, provider
39
+ connections, GitHub handlers, and service credentials stay in the Disposabl
40
+ backend. Product-generated API bindings, contracts, and SDK operations are not
41
+ copied into new apps.
package/dist/disposabl.js CHANGED
@@ -1,40 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- // ../cli/delete.ts
4
- import { spawn } from "node:child_process";
5
- async function completeExpoDeletion(projectId) {
6
- if (typeof projectId !== "string" || !/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(projectId))
7
- throw new Error("The service returned an invalid Expo project ID.");
8
- const command = `bunx eas-cli@27.2.0 project:delete ${projectId}`;
9
- if (!process.stdin.isTTY || !process.stdout.isTTY)
10
- throw new Error(`Expo needs an interactive login and password confirmation. Run ${command}, then retry apps delete. Your app and remaining resources are retained.`);
11
- console.error("Expo requires you to confirm deletion in your Expo account. Complete the following EAS prompts to continue.");
12
- const { EXPO_TOKEN: _token, ...env } = process.env;
13
- await new Promise((resolve, reject) => {
14
- const child = spawn("bunx", ["eas-cli@27.2.0", "project:delete", projectId], { stdio: "inherit", env });
15
- child.on("error", reject);
16
- child.on("exit", (code) => code === 0 ? resolve() : reject(new Error("Expo deletion was not completed. Retry apps delete when ready.")));
17
- });
18
- }
19
-
20
3
  // ../cli/commands.ts
21
4
  import { Command } from "commander";
22
- // ../cli/package.json
23
- var package_default = {
24
- name: "@disposabl/cli",
25
- version: "0.8.9",
26
- type: "module",
27
- description: "Command-line access to your Disposabl app",
28
- license: "MIT",
29
- bin: { disposabl: "dist/index.js" },
30
- files: ["dist", "README.md"],
31
- engines: { node: ">=22.12.0" },
32
- publishConfig: { access: "public" },
33
- scripts: { build: "bun build.ts", typecheck: "bun check", lint: "bun check", release: "semantic-release" },
34
- dependencies: { "@modelcontextprotocol/sdk": "1.32.2", commander: "15.0.0", "proper-lockfile": "4.1.2" },
35
- devDependencies: { "@types/bun": "1.4.4", typescript: "6.0.3", "@types/proper-lockfile": "4.1.4", "semantic-release": "25.0.9", "@semantic-release/exec": "7.1.0", "conventional-changelog-conventionalcommits": "9.3.1" },
36
- repository: { type: "git", url: "git+https://github.com/disposabl-dev/create-disposabl-app.git", directory: "packages/cli" }
37
- };
38
5
 
39
6
  // ../cli/auth.ts
40
7
  import { lock } from "proper-lockfile";
@@ -53,11 +20,11 @@ import {
53
20
  } from "node:fs/promises";
54
21
  import { homedir } from "node:os";
55
22
  import { join } from "node:path";
56
- import { spawn as spawn2 } from "node:child_process";
23
+ import { spawn } from "node:child_process";
57
24
  function openUrl(url) {
58
25
  const command = process.platform === "darwin" ? "open" : process.platform === "win32" ? "rundll32" : "xdg-open";
59
26
  const args = process.platform === "win32" ? ["url.dll,FileProtocolHandler", url] : [url];
60
- const child = spawn2(command, args, { stdio: "ignore" });
27
+ const child = spawn(command, args, { stdio: "ignore" });
61
28
  child.on("error", () => console.error("Open the URL manually."));
62
29
  child.unref();
63
30
  }
@@ -266,6 +233,42 @@ var accessToken = (url, refresh = false) => withCredentials(url, () => unlockedA
266
233
  var logout = (url) => withCredentials(url, () => unlockedLogout(url));
267
234
  var hasCredentials = async (url) => Boolean(process.env.DISPOSABL_API_KEY || (await load(url)).tokens?.access_token);
268
235
 
236
+ // ../cli/delete.ts
237
+ function openExpoDeletion(body, appId, browser) {
238
+ if (!body || typeof body !== "object" || !("error" in body))
239
+ return;
240
+ const error = body.error;
241
+ if (!error || typeof error !== "object" || !("code" in error) || error.code !== "expo_manual_delete_required")
242
+ return;
243
+ if (!("appId" in error) || error.appId !== appId || !("projectUrl" in error) || typeof error.projectUrl !== "string")
244
+ throw new Error("Invalid Expo deletion response. The app record has been kept.");
245
+ const url = new URL(error.projectUrl);
246
+ const parts = url.pathname.split("/");
247
+ if (url.origin !== "https://expo.dev" || url.username || url.password || url.search || url.hash || parts.length !== 7 || parts[1] !== "accounts" || !parts[2] || parts[3] !== "projects" || parts[4] !== `app-${appId}` || parts[5] !== "settings" || parts[6] !== "advanced")
248
+ throw new Error("Invalid Expo project URL. The app record has been kept.");
249
+ console.error(`GitHub and Convex cleanup is complete. Finish deleting the Expo project here:
250
+ ${url.href}
251
+ Sign in to Expo if needed and choose Delete project. Then rerun this command to verify cleanup. The Disposabl app record is still pending deletion.`);
252
+ if (browser)
253
+ openUrl(url.href);
254
+ }
255
+ // ../cli/package.json
256
+ var package_default = {
257
+ name: "@disposabl/cli",
258
+ version: "0.8.11",
259
+ type: "module",
260
+ description: "Command-line access to your Disposabl app",
261
+ license: "MIT",
262
+ bin: { disposabl: "dist/index.js" },
263
+ files: ["dist", "README.md"],
264
+ engines: { node: ">=22.12.0" },
265
+ publishConfig: { access: "public" },
266
+ scripts: { build: "bun build.ts", typecheck: "bun check", lint: "bun check", release: "semantic-release" },
267
+ dependencies: { "@modelcontextprotocol/sdk": "1.32.2", commander: "15.0.0", "proper-lockfile": "4.1.2" },
268
+ devDependencies: { "@types/bun": "1.4.4", typescript: "6.0.3", "@types/proper-lockfile": "4.1.4", "semantic-release": "25.0.9", "@semantic-release/exec": "7.1.0", "conventional-changelog-conventionalcommits": "9.3.1" },
269
+ repository: { type: "git", url: "git+https://github.com/disposabl-dev/create-disposabl-app.git", directory: "packages/cli" }
270
+ };
271
+
269
272
  // ../cli/commands.ts
270
273
  import { readFile as readFile3 } from "node:fs/promises";
271
274
  import { join as join3 } from "node:path";
@@ -493,6 +496,8 @@ async function runCli(argv = process.argv, serviceOrigin = SERVICE_ORIGIN) {
493
496
  if (connectionStatus)
494
497
  command.option("--wait", "Open Connections and continue when GitHub and Convex are connected");
495
498
  const deleteApp = path === "/api/apps/delete";
499
+ if (deleteApp)
500
+ command.option("--no-browser", "Print the Expo cleanup URL without opening a browser");
496
501
  const previewGet = path === "/api/previews/get";
497
502
  const tokenCreate = path === "/api/previews/token/create";
498
503
  if (previewGet)
@@ -554,13 +559,8 @@ async function runCli(argv = process.argv, serviceOrigin = SERVICE_ORIGIN) {
554
559
  let result = await send();
555
560
  if (result.status === 401 && !process.env.DISPOSABL_API_KEY)
556
561
  result = await send(true);
557
- if (deleteApp && result.status === 400) {
558
- const body = await result.clone().json();
559
- if (body.error?.code === "expo_delete_requires_login") {
560
- await completeExpoDeletion(body.error.projectId);
561
- result = await send();
562
- }
563
- }
562
+ if (deleteApp && !result.ok)
563
+ openExpoDeletion(await result.clone().json().catch(() => null), options.appId, options.browser !== false);
564
564
  if (!result.ok)
565
565
  throw new Error(`API request failed (${result.status}): ${await result.text()}`);
566
566
  let value = await result.json();
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ import { fileURLToPath as fileURLToPath2 } from "node:url";
8
8
  import { Command, CommanderError } from "commander";
9
9
  import * as p2 from "@clack/prompts";
10
10
  // package.json
11
- var version = "0.8.9";
11
+ var version = "0.8.11";
12
12
 
13
13
  // ../disposabl-kit/platforms.ts
14
14
  var platforms = [
@@ -137,20 +137,14 @@
137
137
  "@convex-dev/auth": "catalog:",
138
138
  "@convex-dev/mcp": "catalog:",
139
139
  "@convex-dev/static-hosting": "catalog:",
140
- "@convex-dev/workflow": "^0.4.10",
141
140
  "@disposabl/disposabl-kit": "workspace:*",
142
- "@octokit/rest": "^22.0.1",
143
- "@vercel/connect": "^2.5.2",
144
- "convex": "catalog:",
145
- "libsodium-wrappers": "^0.8.4",
146
- "node-forge": "^1.4.2"
141
+ "convex": "catalog:"
147
142
  },
148
143
  "devDependencies": {
149
144
  "@convex-dev/eslint-plugin": "^5.0.1",
150
145
  "@eslint/eslintrc": "^3.3.6",
151
146
  "@eslint/js": "^10.0.1",
152
147
  "@types/node": "^24.13.3",
153
- "@types/node-forge": "^1.3.14",
154
148
  "@typescript-eslint/eslint-plugin": "^8.66.0",
155
149
  "@typescript-eslint/parser": "^8.66.0",
156
150
  "@typescript/native": "npm:typescript@^7.0.2",
@@ -1,13 +1,9 @@
1
1
  # Backend
2
2
 
3
- Run `bun run dev` at the workspace root, or `bun run dev` here for Convex alone.
3
+ Fresh apps start with only a `users` table. Authentication, API/MCP access, and static hosting use the shared kit and Convex components. Add your app's tables to `convex/schema.ts` and its operations in feature folders.
4
4
 
5
- `apps`, `previews`, and `appReleases` hold application data. `githubConnections` stores installation bindings; `connections` stores encrypted Convex and Expo credentials. `users` provides authentication identities. App IDs are UUID v4 values; preview references are branch/worktree names, including `main`. Deletion requires explicit confirmation, removes linked cloud resources and previews, and permanently removes the app. A production release prevents deletion.
5
+ Run `bun run dev` at the workspace root. Run `bun run generate` after changing operations to regenerate the API/MCP contract and selected SDK.
6
6
 
7
- `index.ts` resolves the authenticated user for web/mobile. `internal.ts` implements operations; `platforms: true` exposes them through enabled API, MCP, SDK, and CLI platforms. Internal functions validate the supplied `userId`; entry points authenticate it. Internal code checks resource ownership without repeating session checks. Actions live under `actions/`. Put argument/return validators in `validator.ts`, and table definitions in `schema.ts`.
7
+ `index.ts` authenticates web/mobile callers. `internal.ts` implements operations; `platforms: true` exposes them through enabled API/MCP platforms. Put argument and return validators in `validator.ts` and table definitions in `schema.ts`.
8
8
 
9
- Managed setup uses the user's GitHub and Convex connections; Expo is optional. Connect accounts at `/dashboard/connections`. Login works independently. The CLI saves the app UUID before creating cloud resources so setup can resume after a failure.
10
-
11
- The Disposabl service needs `CONVEX_OAUTH_CLIENT_ID`, `CONVEX_OAUTH_CLIENT_SECRET`, and a base64-encoded 32-byte `CONNECTIONS_ENCRYPTION_KEY`. GitHub uses Vercel Connect with `VERCEL_TOKEN`, `VERCEL_PROJECT_ID`, `VERCEL_TEAM_ID`, `GITHUB_CONNECTOR`, and `GITHUB_APP_SLUG`. `CONNECTIONS_ORIGIN` defaults to `https://www.disposabl.dev`. Generated apps do not need these service credentials for normal development.
12
-
13
- Preview token creation reuses a named development deployment and returns a fresh development key. Keys are never stored in application tables. GitHub Actions reports the latest build results through verified OIDC identity. Enabled platforms without a published artifact have no download link.
9
+ Disposabl app provisioning, provider connections, previews, releases, and GitHub reporting run in the Disposabl service. They are not part of this backend.
@@ -8,44 +8,11 @@
8
8
  * @module
9
9
  */
10
10
 
11
- import type * as apps_actions_cleanup from "../apps/actions/cleanup.js";
12
- import type * as apps_actions_create from "../apps/actions/create.js";
13
- import type * as apps_actions_delete from "../apps/actions/delete.js";
14
- import type * as apps_actions_expo from "../apps/actions/expo.js";
15
- import type * as apps_actions_setup from "../apps/actions/setup.js";
16
- import type * as apps_internal from "../apps/internal.js";
17
- import type * as apps_operations_internal from "../apps/operations/internal.js";
18
- import type * as apps_validator from "../apps/validator.js";
19
11
  import type * as auth from "../auth.js";
20
- import type * as connections_actions_credentials from "../connections/actions/credentials.js";
21
- import type * as connections_actions_expo from "../connections/actions/expo.js";
22
- import type * as connections_actions_github from "../connections/actions/github.js";
23
- import type * as connections_actions_oauth from "../connections/actions/oauth.js";
24
- import type * as connections_index from "../connections/index.js";
25
- import type * as connections_internal from "../connections/internal.js";
26
- import type * as connections_validator from "../connections/validator.js";
27
- import type * as downloads_action from "../downloads/action.js";
28
- import type * as downloads_http from "../downloads/http.js";
29
- import type * as downloads_internal from "../downloads/internal.js";
30
- import type * as github_actions_http from "../github/actions/http.js";
31
- import type * as github_actions_internal from "../github/actions/internal.js";
32
- import type * as github_actions_oidc from "../github/actions/oidc.js";
33
- import type * as github_actions_provision from "../github/actions/provision.js";
34
- import type * as github_actions_secrets from "../github/actions/secrets.js";
35
- import type * as github_actions_signing from "../github/actions/signing.js";
36
- import type * as github_actions_tokens from "../github/actions/tokens.js";
37
- import type * as github_identityCache from "../github/identityCache.js";
38
- import type * as github_internal from "../github/internal.js";
39
12
  import type * as http from "../http.js";
40
13
  import type * as mcp from "../mcp.js";
41
- import type * as previews_internal from "../previews/internal.js";
42
- import type * as previews_token_actions_create from "../previews/token/actions/create.js";
43
- import type * as previews_token_actions_management from "../previews/token/actions/management.js";
44
- import type * as previews_token_internal from "../previews/token/internal.js";
45
- import type * as releases_internal from "../releases/internal.js";
46
14
  import type * as users_index from "../users/index.js";
47
15
  import type * as users_internal from "../users/internal.js";
48
- import type * as validator from "../validator.js";
49
16
 
50
17
  import type {
51
18
  ApiFromModules,
@@ -54,44 +21,11 @@ import type {
54
21
  } from "convex/server";
55
22
 
56
23
  declare const fullApi: ApiFromModules<{
57
- "apps/actions/cleanup": typeof apps_actions_cleanup;
58
- "apps/actions/create": typeof apps_actions_create;
59
- "apps/actions/delete": typeof apps_actions_delete;
60
- "apps/actions/expo": typeof apps_actions_expo;
61
- "apps/actions/setup": typeof apps_actions_setup;
62
- "apps/internal": typeof apps_internal;
63
- "apps/operations/internal": typeof apps_operations_internal;
64
- "apps/validator": typeof apps_validator;
65
24
  auth: typeof auth;
66
- "connections/actions/credentials": typeof connections_actions_credentials;
67
- "connections/actions/expo": typeof connections_actions_expo;
68
- "connections/actions/github": typeof connections_actions_github;
69
- "connections/actions/oauth": typeof connections_actions_oauth;
70
- "connections/index": typeof connections_index;
71
- "connections/internal": typeof connections_internal;
72
- "connections/validator": typeof connections_validator;
73
- "downloads/action": typeof downloads_action;
74
- "downloads/http": typeof downloads_http;
75
- "downloads/internal": typeof downloads_internal;
76
- "github/actions/http": typeof github_actions_http;
77
- "github/actions/internal": typeof github_actions_internal;
78
- "github/actions/oidc": typeof github_actions_oidc;
79
- "github/actions/provision": typeof github_actions_provision;
80
- "github/actions/secrets": typeof github_actions_secrets;
81
- "github/actions/signing": typeof github_actions_signing;
82
- "github/actions/tokens": typeof github_actions_tokens;
83
- "github/identityCache": typeof github_identityCache;
84
- "github/internal": typeof github_internal;
85
25
  http: typeof http;
86
26
  mcp: typeof mcp;
87
- "previews/internal": typeof previews_internal;
88
- "previews/token/actions/create": typeof previews_token_actions_create;
89
- "previews/token/actions/management": typeof previews_token_actions_management;
90
- "previews/token/internal": typeof previews_token_internal;
91
- "releases/internal": typeof releases_internal;
92
27
  "users/index": typeof users_index;
93
28
  "users/internal": typeof users_internal;
94
- validator: typeof validator;
95
29
  }>;
96
30
 
97
31
  /**
@@ -126,5 +60,4 @@ export declare const components: {
126
60
  authUsername: import("@convex-dev/auth/components/username/_generated/component.js").ComponentApi<"authUsername">;
127
61
  staticHosting: import("@convex-dev/static-hosting/_generated/component.js").ComponentApi<"staticHosting">;
128
62
  mcp: import("@convex-dev/mcp/_generated/component.js").ComponentApi<"mcp">;
129
- workflow: import("@convex-dev/workflow/_generated/component.js").ComponentApi<"workflow">;
130
63
  };
@@ -32,15 +32,6 @@ type Env = {
32
32
  readonly CONVEX_SITE_URL: string;
33
33
  readonly AUTH_JWKS: string;
34
34
  readonly AUTH_PRIVATE_KEY: string;
35
- readonly CONNECTIONS_ENCRYPTION_KEY: string | undefined;
36
- readonly CONNECTIONS_ORIGIN: string | undefined;
37
- readonly CONVEX_OAUTH_CLIENT_ID: string | undefined;
38
- readonly CONVEX_OAUTH_CLIENT_SECRET: string | undefined;
39
- readonly GITHUB_APP_SLUG: string | undefined;
40
- readonly GITHUB_CONNECTOR: string | undefined;
41
- readonly VERCEL_PROJECT_ID: string | undefined;
42
- readonly VERCEL_TEAM_ID: string | undefined;
43
- readonly VERCEL_TOKEN: string | undefined;
44
35
  };
45
36
 
46
37
  /**
@@ -3,7 +3,6 @@ import username from "@convex-dev/auth/components/username/convex.config.js";
3
3
  import auth from "@convex-dev/auth/convex.config.js";
4
4
  import mcp from "@convex-dev/mcp/convex.config.js";
5
5
  import staticHosting from "@convex-dev/static-hosting/convex.config";
6
- import workflow from "@convex-dev/workflow/convex.config";
7
6
  import { defineApp } from "convex/server";
8
7
  import { v } from "convex/values";
9
8
 
@@ -11,15 +10,6 @@ const app = defineApp({
11
10
  env: {
12
11
  AUTH_PRIVATE_KEY: v.string(),
13
12
  AUTH_JWKS: v.string(),
14
- CONVEX_OAUTH_CLIENT_ID: v.optional(v.string()),
15
- CONVEX_OAUTH_CLIENT_SECRET: v.optional(v.string()),
16
- GITHUB_APP_SLUG: v.optional(v.string()),
17
- CONNECTIONS_ENCRYPTION_KEY: v.optional(v.string()),
18
- CONNECTIONS_ORIGIN: v.optional(v.string()),
19
- VERCEL_TOKEN: v.optional(v.string()),
20
- VERCEL_PROJECT_ID: v.optional(v.string()),
21
- VERCEL_TEAM_ID: v.optional(v.string()),
22
- GITHUB_CONNECTOR: v.optional(v.string()),
23
13
  },
24
14
  });
25
15
 
@@ -34,6 +24,5 @@ app.use(passwordProvider);
34
24
  app.use(username);
35
25
  app.use(staticHosting);
36
26
  app.use(mcp);
37
- app.use(workflow);
38
27
 
39
28
  export default app;
@@ -1,11 +1,3 @@
1
- import { download } from "./downloads/http";
2
- import { token, report } from "./github/actions/http";
3
1
  import createHttpRouter from "@disposabl/disposabl-kit/server/http";
4
2
 
5
- const http = createHttpRouter();
6
- http.route({ path: "/github/token", method: "POST", handler: token });
7
- http.route({ path: "/github/report", method: "POST", handler: report });
8
-
9
- http.route({ pathPrefix: "/downloads/", method: "GET", handler: download });
10
-
11
- export default http;
3
+ export default createHttpRouter();
@@ -1,73 +1,5 @@
1
1
  import { defineSchema, defineTable } from "convex/server";
2
- import { v } from "convex/values";
3
- import { pendingDelete } from "./apps/validator";
4
- import { deployment, platform, releases } from "./validator";
5
2
 
6
3
  export default defineSchema({
7
- serviceIdentities: defineTable({
8
- key: v.string(),
9
- token: v.optional(v.string()),
10
- expiresAt: v.number(),
11
- refreshAfter: v.number(),
12
- lease: v.optional(v.string()),
13
- }).index("by_key", ["key"]),
14
- users: defineTable({
15
- connectionState: v.optional(
16
- v.object({
17
- provider: v.union(v.literal("github"), v.literal("convex")),
18
- hash: v.string(),
19
- verifier: v.string(),
20
- expiresAt: v.number(),
21
- }),
22
- ),
23
- }),
24
- connections: defineTable({
25
- userId: v.string(),
26
- provider: v.union(v.literal("convex"), v.literal("expo")),
27
- accountId: v.string(),
28
- name: v.string(),
29
- token: v.string(),
30
- }).index("by_userId_provider", ["userId", "provider"]),
31
- apps: defineTable({
32
- appId: v.string(),
33
- userId: v.string(),
34
- name: v.string(),
35
- platforms: v.array(platform),
36
- githubOwner: v.optional(v.string()),
37
- githubRepo: v.optional(v.string()),
38
- convexProjectId: v.optional(v.number()),
39
- expoProjectId: v.optional(v.string()),
40
- expoAccountId: v.optional(v.union(v.string(), v.null())),
41
- operation: v.optional(
42
- v.object({
43
- kind: v.union(v.literal("setup"), v.literal("delete")),
44
- until: v.number(),
45
- pending: v.optional(pendingDelete),
46
- }),
47
- ),
48
- })
49
- .index("by_appId", ["appId"])
50
- .index("by_userId", ["userId"]),
51
- previews: defineTable({
52
- appId: v.string(),
53
- reference: v.string(),
54
- stage: v.union(v.literal("generating"), v.literal("building")),
55
- deployment: v.optional(deployment),
56
- releases,
57
- updatedAt: v.number(),
58
- }).index("by_appId_reference", ["appId", "reference"]),
59
- appReleases: defineTable({
60
- appId: v.string(),
61
- releases,
62
- updatedAt: v.number(),
63
- }).index("by_appId", ["appId"]),
64
- githubConnections: defineTable({
65
- userId: v.string(),
66
- owner: v.string(),
67
- installationId: v.string(),
68
- })
69
- // Latest connection uses creation order; owner lookup uses the compound index.
70
- // eslint-disable-next-line @convex-dev/no-duplicate-indexes
71
- .index("by_userId", ["userId"])
72
- .index("by_userId_owner", ["userId", "owner"]),
4
+ users: defineTable({}),
73
5
  });