-
Notifications
You must be signed in to change notification settings - Fork 0
feat: bootstrap initial Convex backend #63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
30db60f
feat: bootstrap initial Convex backend
BASIC-BIT 786a99e
fix: tighten Convex bootstrap verification
BASIC-BIT 40b9e11
fix: harden Convex backend checks
BASIC-BIT 8a4610e
fix: force local Convex verification
BASIC-BIT f65a292
fix: clarify Convex spawn failures
BASIC-BIT 09a7f81
fix: tighten Convex CI guardrails
BASIC-BIT 62e3587
fix: address final Greptile nits
BASIC-BIT 37ab9b0
fix: close remaining Greptile gaps
BASIC-BIT c38f38b
fix: smooth Convex developer workflow
BASIC-BIT 4fee83d
fix: tighten Convex local isolation
BASIC-BIT 617c73e
fix: harden Convex sandbox wrapper
BASIC-BIT 638d17b
fix: tighten backend verify sequencing
BASIC-BIT 5c6ee89
fix: align local backend health script
BASIC-BIT 041f417
fix: reduce Convex script drift
BASIC-BIT 18d9c65
docs: clarify local backend health alias
BASIC-BIT File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,3 +2,7 @@ AGENTS.local.md | |
| .opencode/state/ | ||
| node_modules/ | ||
| .husky/_/ | ||
| .convex-home/ | ||
| .convex-tmp/ | ||
| .env | ||
| .env.local | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| { | ||
| "$schema": "./node_modules/convex/schemas/convex.schema.json", | ||
| "node": { | ||
| "nodeVersion": "22" | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| # Convex Backend | ||
|
|
||
| This directory holds the initial Convex backend slice for `VRDex`. | ||
|
|
||
| - `health.ts` exposes the placeholder public query `health:status` | ||
| - `schema.ts` keeps the starting schema explicit and intentionally empty | ||
| - `_generated/` contains committed Convex codegen output and should not be edited by hand | ||
| - `tsconfig.json` is the Convex-managed TypeScript config for backend functions | ||
|
|
||
| Use the repo-root scripts for local work: | ||
|
|
||
| - `pnpm bootstrap:backend:local` | ||
| - `pnpm dev:backend:local` | ||
| - `pnpm run:backend:health:local` | ||
| - `pnpm typecheck:backend` | ||
| - `pnpm check:backend:generated` | ||
|
|
||
| The canonical workflow notes live in `docs/backend/convex-bootstrap.md`. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| /* eslint-disable */ | ||
| /** | ||
| * Generated `api` utility. | ||
| * | ||
| * THIS CODE IS AUTOMATICALLY GENERATED. | ||
| * | ||
| * To regenerate, run `npx convex dev`. | ||
| * @module | ||
|
BASIC-BIT marked this conversation as resolved.
|
||
| */ | ||
|
|
||
| import type * as health from "../health.js"; | ||
|
|
||
| import type { | ||
| ApiFromModules, | ||
| FilterApi, | ||
| FunctionReference, | ||
| } from "convex/server"; | ||
|
|
||
| declare const fullApi: ApiFromModules<{ | ||
| health: typeof health; | ||
| }>; | ||
|
|
||
| /** | ||
| * A utility for referencing Convex functions in your app's public API. | ||
| * | ||
| * Usage: | ||
| * ```js | ||
| * const myFunctionReference = api.myModule.myFunction; | ||
| * ``` | ||
| */ | ||
| export declare const api: FilterApi< | ||
| typeof fullApi, | ||
| FunctionReference<any, "public"> | ||
| >; | ||
|
|
||
| /** | ||
| * A utility for referencing Convex functions in your app's internal API. | ||
| * | ||
| * Usage: | ||
| * ```js | ||
| * const myFunctionReference = internal.myModule.myFunction; | ||
| * ``` | ||
| */ | ||
| export declare const internal: FilterApi< | ||
| typeof fullApi, | ||
| FunctionReference<any, "internal"> | ||
| >; | ||
|
|
||
| export declare const components: {}; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| /* eslint-disable */ | ||
| /** | ||
| * Generated `api` utility. | ||
| * | ||
| * THIS CODE IS AUTOMATICALLY GENERATED. | ||
| * | ||
| * To regenerate, run `npx convex dev`. | ||
| * @module | ||
| */ | ||
|
|
||
| import { anyApi, componentsGeneric } from "convex/server"; | ||
|
|
||
| /** | ||
| * A utility for referencing Convex functions in your app's API. | ||
| * | ||
| * Usage: | ||
| * ```js | ||
| * const myFunctionReference = api.myModule.myFunction; | ||
| * ``` | ||
| */ | ||
| export const api = anyApi; | ||
| export const internal = anyApi; | ||
| export const components = componentsGeneric(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| /* eslint-disable */ | ||
| /** | ||
| * Generated data model types. | ||
| * | ||
| * THIS CODE IS AUTOMATICALLY GENERATED. | ||
| * | ||
| * To regenerate, run `npx convex dev`. | ||
| * @module | ||
| */ | ||
|
|
||
| import type { | ||
| DataModelFromSchemaDefinition, | ||
| DocumentByName, | ||
| TableNamesInDataModel, | ||
| SystemTableNames, | ||
| } from "convex/server"; | ||
| import type { GenericId } from "convex/values"; | ||
| import schema from "../schema.js"; | ||
|
|
||
| /** | ||
| * The names of all of your Convex tables. | ||
| */ | ||
| export type TableNames = TableNamesInDataModel<DataModel>; | ||
|
|
||
| /** | ||
| * The type of a document stored in Convex. | ||
| * | ||
| * @typeParam TableName - A string literal type of the table name (like "users"). | ||
| */ | ||
| export type Doc<TableName extends TableNames> = DocumentByName< | ||
| DataModel, | ||
| TableName | ||
| >; | ||
|
|
||
| /** | ||
| * An identifier for a document in Convex. | ||
| * | ||
| * Convex documents are uniquely identified by their `Id`, which is accessible | ||
| * on the `_id` field. To learn more, see [Document IDs](https://docs.convex.dev/using/document-ids). | ||
| * | ||
| * Documents can be loaded using `db.get(tableName, id)` in query and mutation functions. | ||
| * | ||
| * IDs are just strings at runtime, but this type can be used to distinguish them from other | ||
| * strings when type checking. | ||
| * | ||
| * @typeParam TableName - A string literal type of the table name (like "users"). | ||
| */ | ||
| export type Id<TableName extends TableNames | SystemTableNames> = | ||
| GenericId<TableName>; | ||
|
|
||
| /** | ||
| * A type describing your Convex data model. | ||
| * | ||
| * This type includes information about what tables you have, the type of | ||
| * documents stored in those tables, and the indexes defined on them. | ||
| * | ||
| * This type is used to parameterize methods like `queryGeneric` and | ||
| * `mutationGeneric` to make them type-safe. | ||
| */ | ||
| export type DataModel = DataModelFromSchemaDefinition<typeof schema>; |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.