kitcn 0.15.9 → 0.15.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.
@@ -1,4 +1,4 @@
1
- import { C as ConvexNumberBuilderInitial, E as ConvexIdBuilderInitial, N as ConvexCustomBuilderInitial, dn as ConvexTableWithColumns, tr as ConvexTextBuilderInitial } from "../where-clause-compiler-Dc58we_m.js";
1
+ import { C as ConvexNumberBuilderInitial, E as ConvexIdBuilderInitial, N as ConvexCustomBuilderInitial, dn as ConvexTableWithColumns, tr as ConvexTextBuilderInitial } from "../where-clause-compiler-Ca0clgPV.js";
2
2
  import * as convex_values0 from "convex/values";
3
3
  import { GenericId, Infer, Value } from "convex/values";
4
4
  import { DocumentByName, GenericDataModel, GenericDatabaseReader, GenericDatabaseWriter, TableNamesInDataModel } from "convex/server";
@@ -1,4 +1,4 @@
1
- import { n as TableAggregate$1, r as aggregateStorageTables, t as DirectAggregate$1 } from "../runtime-i6t-HoZn.js";
1
+ import { n as TableAggregate$1, r as aggregateStorageTables, t as DirectAggregate$1 } from "../runtime-DmVSOe24.js";
2
2
 
3
3
  //#region src/aggregate/index.ts
4
4
  const wrapTriggerFactory = (methodName, factory) => ((...args) => {
@@ -1,2 +1,2 @@
1
- import { S as defineAuth, _ as GenericAuthBeforeResult, b as GenericAuthTriggerHandlers, g as BetterAuthOptionsWithoutDatabase, i as getGeneratedAuthDisabledReason, n as GeneratedAuthDisabledReasonKind, r as createDisabledAuthRuntime, t as AuthRuntime, v as GenericAuthDefinition, x as GenericAuthTriggers, y as GenericAuthTriggerChange } from "../../generated-contract-disabled-3mwCSv2F.js";
1
+ import { S as defineAuth, _ as GenericAuthBeforeResult, b as GenericAuthTriggerHandlers, g as BetterAuthOptionsWithoutDatabase, i as getGeneratedAuthDisabledReason, n as GeneratedAuthDisabledReasonKind, r as createDisabledAuthRuntime, t as AuthRuntime, v as GenericAuthDefinition, x as GenericAuthTriggers, y as GenericAuthTriggerChange } from "../../generated-contract-disabled-0xEF3NtW.js";
2
2
  export { type AuthRuntime, BetterAuthOptionsWithoutDatabase, type GeneratedAuthDisabledReasonKind, GenericAuthBeforeResult, GenericAuthDefinition, GenericAuthTriggerChange, GenericAuthTriggerHandlers, GenericAuthTriggers, createDisabledAuthRuntime, defineAuth, getGeneratedAuthDisabledReason };
@@ -1,7 +1,7 @@
1
1
  import { a as QueryCtxWithPreferredOrmQueryTable, n as LookupByIdResultByCtx, t as DocByCtx } from "../query-context-CNo9ffvI.js";
2
2
  import { t as GetAuth } from "../types-BCl8gfGy.js";
3
3
  import { t as GenericCtx } from "../context-utils-OMkMGhBk.js";
4
- import { S as defineAuth, _ as GenericAuthBeforeResult, a as AuthFunctions, b as GenericAuthTriggerHandlers, c as createApi, d as deleteOneHandler, f as findManyHandler, g as BetterAuthOptionsWithoutDatabase, h as updateOneHandler, i as getGeneratedAuthDisabledReason, l as createHandler, m as updateManyHandler, n as GeneratedAuthDisabledReasonKind, o as Triggers, p as findOneHandler, r as createDisabledAuthRuntime, s as createClient, t as AuthRuntime, u as deleteManyHandler, v as GenericAuthDefinition, x as GenericAuthTriggers, y as GenericAuthTriggerChange } from "../generated-contract-disabled-3mwCSv2F.js";
4
+ import { S as defineAuth, _ as GenericAuthBeforeResult, a as AuthFunctions, b as GenericAuthTriggerHandlers, c as createApi, d as deleteOneHandler, f as findManyHandler, g as BetterAuthOptionsWithoutDatabase, h as updateOneHandler, i as getGeneratedAuthDisabledReason, l as createHandler, m as updateManyHandler, n as GeneratedAuthDisabledReasonKind, o as Triggers, p as findOneHandler, r as createDisabledAuthRuntime, s as createClient, t as AuthRuntime, u as deleteManyHandler, v as GenericAuthDefinition, x as GenericAuthTriggers, y as GenericAuthTriggerChange } from "../generated-contract-disabled-0xEF3NtW.js";
5
5
  import * as convex_values0 from "convex/values";
6
6
  import { Infer } from "convex/values";
7
7
  import { AuthConfig, DocumentByName, GenericDataModel, GenericMutationCtx, GenericQueryCtx, GenericSchema, PaginationOptions, PaginationResult, SchemaDefinition, TableNamesInDataModel } from "convex/server";
@@ -107,27 +107,27 @@ type AdapterPaginationOptions = PaginationOptions & {
107
107
  };
108
108
  declare const adapterWhereValidator: convex_values0.VObject<{
109
109
  mode?: "sensitive" | "insensitive" | undefined;
110
- operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
111
110
  connector?: "AND" | "OR" | undefined;
111
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
112
112
  value: string | number | boolean | string[] | number[] | null;
113
113
  field: string;
114
114
  }, {
115
115
  connector: convex_values0.VUnion<"AND" | "OR" | undefined, [convex_values0.VLiteral<"AND", "required">, convex_values0.VLiteral<"OR", "required">], "optional", never>;
116
116
  field: convex_values0.VString<string, "required">;
117
117
  mode: convex_values0.VUnion<"sensitive" | "insensitive" | undefined, [convex_values0.VLiteral<"sensitive", "required">, convex_values0.VLiteral<"insensitive", "required">], "optional", never>;
118
- operator: convex_values0.VUnion<"eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined, [convex_values0.VLiteral<"lt", "required">, convex_values0.VLiteral<"lte", "required">, convex_values0.VLiteral<"gt", "required">, convex_values0.VLiteral<"gte", "required">, convex_values0.VLiteral<"eq", "required">, convex_values0.VLiteral<"in", "required">, convex_values0.VLiteral<"not_in", "required">, convex_values0.VLiteral<"ne", "required">, convex_values0.VLiteral<"contains", "required">, convex_values0.VLiteral<"starts_with", "required">, convex_values0.VLiteral<"ends_with", "required">], "optional", never>;
118
+ operator: convex_values0.VUnion<"lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined, [convex_values0.VLiteral<"lt", "required">, convex_values0.VLiteral<"lte", "required">, convex_values0.VLiteral<"gt", "required">, convex_values0.VLiteral<"gte", "required">, convex_values0.VLiteral<"eq", "required">, convex_values0.VLiteral<"in", "required">, convex_values0.VLiteral<"not_in", "required">, convex_values0.VLiteral<"ne", "required">, convex_values0.VLiteral<"contains", "required">, convex_values0.VLiteral<"starts_with", "required">, convex_values0.VLiteral<"ends_with", "required">], "optional", never>;
119
119
  value: convex_values0.VUnion<string | number | boolean | string[] | number[] | null, [convex_values0.VString<string, "required">, convex_values0.VFloat64<number, "required">, convex_values0.VBoolean<boolean, "required">, convex_values0.VArray<string[], convex_values0.VString<string, "required">, "required">, convex_values0.VArray<number[], convex_values0.VFloat64<number, "required">, "required">, convex_values0.VNull<null, "required">], "required", never>;
120
- }, "required", "mode" | "operator" | "value" | "field" | "connector">;
120
+ }, "required", "mode" | "value" | "connector" | "field" | "operator">;
121
121
  declare const adapterArgsValidator: convex_values0.VObject<{
122
- limit?: number | undefined;
122
+ select?: string[] | undefined;
123
123
  where?: {
124
124
  mode?: "sensitive" | "insensitive" | undefined;
125
- operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
126
125
  connector?: "AND" | "OR" | undefined;
126
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
127
127
  value: string | number | boolean | string[] | number[] | null;
128
128
  field: string;
129
129
  }[] | undefined;
130
- select?: string[] | undefined;
130
+ limit?: number | undefined;
131
131
  offset?: number | undefined;
132
132
  sortBy?: {
133
133
  field: string;
@@ -148,24 +148,24 @@ declare const adapterArgsValidator: convex_values0.VObject<{
148
148
  }, "optional", "field" | "direction">;
149
149
  where: convex_values0.VArray<{
150
150
  mode?: "sensitive" | "insensitive" | undefined;
151
- operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
152
151
  connector?: "AND" | "OR" | undefined;
152
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
153
153
  value: string | number | boolean | string[] | number[] | null;
154
154
  field: string;
155
155
  }[] | undefined, convex_values0.VObject<{
156
156
  mode?: "sensitive" | "insensitive" | undefined;
157
- operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
158
157
  connector?: "AND" | "OR" | undefined;
158
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
159
159
  value: string | number | boolean | string[] | number[] | null;
160
160
  field: string;
161
161
  }, {
162
162
  connector: convex_values0.VUnion<"AND" | "OR" | undefined, [convex_values0.VLiteral<"AND", "required">, convex_values0.VLiteral<"OR", "required">], "optional", never>;
163
163
  field: convex_values0.VString<string, "required">;
164
164
  mode: convex_values0.VUnion<"sensitive" | "insensitive" | undefined, [convex_values0.VLiteral<"sensitive", "required">, convex_values0.VLiteral<"insensitive", "required">], "optional", never>;
165
- operator: convex_values0.VUnion<"eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined, [convex_values0.VLiteral<"lt", "required">, convex_values0.VLiteral<"lte", "required">, convex_values0.VLiteral<"gt", "required">, convex_values0.VLiteral<"gte", "required">, convex_values0.VLiteral<"eq", "required">, convex_values0.VLiteral<"in", "required">, convex_values0.VLiteral<"not_in", "required">, convex_values0.VLiteral<"ne", "required">, convex_values0.VLiteral<"contains", "required">, convex_values0.VLiteral<"starts_with", "required">, convex_values0.VLiteral<"ends_with", "required">], "optional", never>;
165
+ operator: convex_values0.VUnion<"lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined, [convex_values0.VLiteral<"lt", "required">, convex_values0.VLiteral<"lte", "required">, convex_values0.VLiteral<"gt", "required">, convex_values0.VLiteral<"gte", "required">, convex_values0.VLiteral<"eq", "required">, convex_values0.VLiteral<"in", "required">, convex_values0.VLiteral<"not_in", "required">, convex_values0.VLiteral<"ne", "required">, convex_values0.VLiteral<"contains", "required">, convex_values0.VLiteral<"starts_with", "required">, convex_values0.VLiteral<"ends_with", "required">], "optional", never>;
166
166
  value: convex_values0.VUnion<string | number | boolean | string[] | number[] | null, [convex_values0.VString<string, "required">, convex_values0.VFloat64<number, "required">, convex_values0.VBoolean<boolean, "required">, convex_values0.VArray<string[], convex_values0.VString<string, "required">, "required">, convex_values0.VArray<number[], convex_values0.VFloat64<number, "required">, "required">, convex_values0.VNull<null, "required">], "required", never>;
167
- }, "required", "mode" | "operator" | "value" | "field" | "connector">, "optional">;
168
- }, "required", "limit" | "where" | "model" | "select" | "offset" | "sortBy" | "sortBy.field" | "sortBy.direction">;
167
+ }, "required", "mode" | "value" | "connector" | "field" | "operator">, "optional">;
168
+ }, "required", "model" | "select" | "where" | "limit" | "offset" | "sortBy" | "sortBy.field" | "sortBy.direction">;
169
169
  declare const hasUniqueFields: (betterAuthSchema: BetterAuthDBSchema, model: string, input: Record<string, any>) => boolean;
170
170
  declare const checkUniqueFields: <Schema extends SchemaDefinition<any, any>>(ctx: GenericQueryCtx<GenericDataModel>, schema: Schema, betterAuthSchema: BetterAuthDBSchema, table: string, input: Record<string, any>, doc?: Record<string, any>) => Promise<void>;
171
171
  declare const selectFields: <T extends TableNamesInDataModel<GenericDataModel>, D extends DocumentByName<GenericDataModel, T>>(doc: D | null, select?: string[]) => D | null;
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from "node:module";
3
3
  import fs from "node:fs";
4
- import path, { basename, dirname, isAbsolute, join, posix, relative, resolve } from "node:path";
4
+ import path, { basename, dirname, extname, isAbsolute, join, posix, relative, resolve } from "node:path";
5
5
  import { fileURLToPath } from "node:url";
6
6
  import { createHash, randomBytes } from "node:crypto";
7
7
  import { confirm, isCancel, multiselect, select, spinner } from "@clack/prompts";
@@ -797,9 +797,9 @@ var ConvexRankIndexBuilder = class {
797
797
  };
798
798
  }
799
799
  orderBy(...columns) {
800
- this.config.orderColumns = columns.map((entry) => {
800
+ const orderColumns = columns.map((entry) => {
801
801
  if (entry && typeof entry === "object" && "column" in entry && "direction" in entry) {
802
- const builder = entry.column?.builder;
802
+ const builder = entry.column;
803
803
  if (!builder) throw new Error("rankIndex orderBy() expected a column builder.");
804
804
  return {
805
805
  column: builder,
@@ -811,6 +811,7 @@ var ConvexRankIndexBuilder = class {
811
811
  direction: "asc"
812
812
  };
813
813
  });
814
+ this.config.orderColumns = [...this.config.orderColumns, ...orderColumns];
814
815
  return this;
815
816
  }
816
817
  sum(field) {
@@ -12442,9 +12443,9 @@ export default function ExploreScreen() {
12442
12443
  //#endregion
12443
12444
  //#region src/cli/registry/init/expo/init-expo-gitignore.template.ts
12444
12445
  const EXPO_ENV_TYPES_IGNORE_LINE = "expo-env.d.ts";
12445
- const LINE_SPLIT_RE = /\r?\n/;
12446
+ const LINE_SPLIT_RE$1 = /\r?\n/;
12446
12447
  function renderInitExpoGitignoreTemplate(source = "") {
12447
- return `${source.split(LINE_SPLIT_RE).map((line) => line.trimEnd()).filter((line) => line.length > 0).filter((line) => line !== EXPO_ENV_TYPES_IGNORE_LINE).join("\n")}\n`;
12448
+ return `${source.split(LINE_SPLIT_RE$1).map((line) => line.trimEnd()).filter((line) => line.length > 0).filter((line) => line !== EXPO_ENV_TYPES_IGNORE_LINE).join("\n")}\n`;
12448
12449
  }
12449
12450
 
12450
12451
  //#endregion
@@ -13239,6 +13240,47 @@ export const { CRPCProvider, useCRPC, useCRPCClient } = createCRPCContext({
13239
13240
  });
13240
13241
  `;
13241
13242
 
13243
+ //#endregion
13244
+ //#region src/cli/registry/init/start/init-start-gitignore.template.ts
13245
+ const START_GITIGNORE_GROUPS = [[
13246
+ "node_modules",
13247
+ ".DS_Store",
13248
+ "dist",
13249
+ "dist-ssr",
13250
+ "*.local",
13251
+ ".env*",
13252
+ ".tanstack",
13253
+ ".wrangler",
13254
+ ".output",
13255
+ ".vinxi",
13256
+ "__unconfig*",
13257
+ "todos.json"
13258
+ ], [
13259
+ "# typescript",
13260
+ "*.tsbuildinfo",
13261
+ ".convex/",
13262
+ ".concave/"
13263
+ ]];
13264
+ const LINE_SPLIT_RE = /\r?\n/;
13265
+ function hasGitignoreLine(existing, entry) {
13266
+ if (existing.has(entry)) return true;
13267
+ if (entry.endsWith("/")) return existing.has(entry.slice(0, -1));
13268
+ return existing.has(`${entry}/`);
13269
+ }
13270
+ function renderInitStartGitignoreTemplate(source = "") {
13271
+ const lines = source.split(LINE_SPLIT_RE).map((line) => line.trimEnd());
13272
+ while (lines.at(-1) === "") lines.pop();
13273
+ const existing = new Set(lines.map((line) => line.trim()).filter((line) => line.length > 0));
13274
+ const nextLines = [...lines];
13275
+ for (const group of START_GITIGNORE_GROUPS) {
13276
+ const missing = group.filter((line) => !hasGitignoreLine(existing, line));
13277
+ if (missing.length === 0) continue;
13278
+ if (nextLines.length > 0 && nextLines.at(-1) !== "") nextLines.push("");
13279
+ nextLines.push(...missing);
13280
+ }
13281
+ return `${nextLines.join("\n")}\n`;
13282
+ }
13283
+
13242
13284
  //#endregion
13243
13285
  //#region src/cli/registry/init/start/init-start-messages-page.template.ts
13244
13286
  const INIT_START_MESSAGES_PAGE_TEMPLATE = `'use client';
@@ -14474,6 +14516,15 @@ function buildInitStartOwnedScaffoldFiles(context, functionsDirRelative, backend
14474
14516
  updateReason: "Update baseline .env.local for the Start scaffold.",
14475
14517
  skipReason: ".env.local already matches the Start scaffold."
14476
14518
  },
14519
+ {
14520
+ kind: "config",
14521
+ relativePath: ".gitignore",
14522
+ requiresExplicitOverwrite: false,
14523
+ content: ({ existingContent }) => renderInitStartGitignoreTemplate(existingContent ?? ""),
14524
+ createReason: "Create .gitignore for the Start scaffold.",
14525
+ updateReason: "Update .gitignore for the Start scaffold.",
14526
+ skipReason: ".gitignore already matches the Start scaffold."
14527
+ },
14477
14528
  {
14478
14529
  kind: "scaffold",
14479
14530
  relativePath: `${context.componentsDir}/providers.tsx`,
@@ -14970,23 +15021,50 @@ function findObjectPropertyValueIndex(source, openIndex, propertyName) {
14970
15021
  }
14971
15022
  return -1;
14972
15023
  }
14973
- function hasEnabledTsconfigPathsValueAt(source, index) {
14974
- const valueIndex = skipTrivia(source, index);
14975
- return source[valueIndex] === "{" || isIdentifierAt(source, valueIndex, "true");
14976
- }
14977
- function hasResolveTsconfigPathsOption(source) {
14978
- const configOpenIndex = findConfigObjectOpenIndex(source);
14979
- if (configOpenIndex === -1) return false;
14980
- const resolveValueIndex = findObjectPropertyValueIndex(source, configOpenIndex, "resolve");
14981
- if (source[resolveValueIndex] !== "{") return false;
14982
- const tsconfigPathsValueIndex = findObjectPropertyValueIndex(source, resolveValueIndex, "tsconfigPaths");
14983
- return tsconfigPathsValueIndex !== -1 && hasEnabledTsconfigPathsValueAt(source, tsconfigPathsValueIndex);
14984
- }
14985
- function patchInitReactViteConfigContent(source) {
14986
- if (source.includes("'@convex'") || source.includes("\"@convex\"")) return source.endsWith("\n") ? source : `${source}\n`;
14987
- if (source.includes("viteTsConfigPaths(") || source.includes("tsConfigPaths(") || hasResolveTsconfigPathsOption(source)) return source.endsWith("\n") ? source : `${source}\n`;
14988
- if (!source.includes("alias: {")) throw new Error("Could not patch vite.config.ts: expected a resolve.alias block.");
14989
- const nextSource = source.replace("alias: {", `alias: {\n '@convex': path.resolve(__dirname, './convex/shared'),`);
15024
+ function hasViteConfigAlias(source, alias) {
15025
+ return source.includes(`'${alias}'`) || source.includes(`"${alias}"`);
15026
+ }
15027
+ function withInitReactViteFileUrlImport(source) {
15028
+ if (source.includes("fileURLToPath")) return source;
15029
+ return `import { fileURLToPath } from 'node:url';\n\n${source}`;
15030
+ }
15031
+ function resolveInitReactViteConfigModule(viteConfigFile) {
15032
+ const extension = extname(viteConfigFile);
15033
+ if (extension === ".cjs") return "cjs";
15034
+ if (extension !== ".js") return "esm";
15035
+ const packageJsonPath = resolve(process.cwd(), "package.json");
15036
+ if (!fs.existsSync(packageJsonPath)) return "cjs";
15037
+ try {
15038
+ const parsed = JSON.parse(fs.readFileSync(packageJsonPath, "utf8"));
15039
+ return isPlainObject(parsed) && parsed.type === "module" ? "esm" : "cjs";
15040
+ } catch {
15041
+ return "cjs";
15042
+ }
15043
+ }
15044
+ function buildInitReactViteAliasEntries(source, context, moduleFormat) {
15045
+ const appAliasPath = context.usesSrc ? "./src" : "./";
15046
+ const formatAlias = (aliasPath) => moduleFormat === "esm" ? `fileURLToPath(new URL('${aliasPath}', import.meta.url))` : `require('node:path').resolve(__dirname, '${aliasPath}')`;
15047
+ return [hasViteConfigAlias(source, "@") ? null : ` '@': ${formatAlias(appAliasPath)},`, hasViteConfigAlias(source, "@convex") ? null : ` '@convex': ${formatAlias("./convex/shared")},`].filter((entry) => entry !== null).join("\n");
15048
+ }
15049
+ function patchInitReactViteConfigContent(source, context, moduleFormat) {
15050
+ if (hasViteConfigAlias(source, "@") && hasViteConfigAlias(source, "@convex")) return source.endsWith("\n") ? source : `${source}\n`;
15051
+ let nextSource = moduleFormat === "esm" ? withInitReactViteFileUrlImport(source) : source;
15052
+ const configOpenIndex = findConfigObjectOpenIndex(nextSource);
15053
+ if (configOpenIndex === -1) throw new Error("Could not patch vite.config.ts: expected a defineConfig object.");
15054
+ const resolveValueIndex = findObjectPropertyValueIndex(nextSource, configOpenIndex, "resolve");
15055
+ const aliasEntries = buildInitReactViteAliasEntries(nextSource, context, moduleFormat);
15056
+ if (resolveValueIndex === -1) {
15057
+ nextSource = `${nextSource.slice(0, configOpenIndex + 1)}\n resolve: {\n alias: {\n${aliasEntries}\n },\n },${nextSource.slice(configOpenIndex + 1)}`;
15058
+ return nextSource.endsWith("\n") ? nextSource : `${nextSource}\n`;
15059
+ }
15060
+ if (nextSource[resolveValueIndex] !== "{") throw new Error("Could not patch vite.config.ts: expected a resolve object.");
15061
+ const aliasValueIndex = findObjectPropertyValueIndex(nextSource, resolveValueIndex, "alias");
15062
+ if (aliasValueIndex === -1) {
15063
+ nextSource = `${nextSource.slice(0, resolveValueIndex + 1)}\n alias: {\n${aliasEntries}\n },${nextSource.slice(resolveValueIndex + 1)}`;
15064
+ return nextSource.endsWith("\n") ? nextSource : `${nextSource}\n`;
15065
+ }
15066
+ if (nextSource[aliasValueIndex] !== "{") throw new Error("Could not patch vite.config.ts: expected a resolve.alias object.");
15067
+ nextSource = `${nextSource.slice(0, aliasValueIndex + 1)}\n${aliasEntries}${nextSource.slice(aliasValueIndex + 1)}`;
14990
15068
  return nextSource.endsWith("\n") ? nextSource : `${nextSource}\n`;
14991
15069
  }
14992
15070
  function patchInitNextComponentsJsonContent(source, context) {
@@ -15079,11 +15157,12 @@ function buildInitReactAppTsconfigPlanFile(context) {
15079
15157
  function buildInitReactViteConfigPlanFile(context) {
15080
15158
  if (!context.viteConfigFile) return [];
15081
15159
  const filePath = resolve(process.cwd(), context.viteConfigFile);
15160
+ const moduleFormat = resolveInitReactViteConfigModule(context.viteConfigFile);
15082
15161
  return [createPlanFile({
15083
15162
  kind: "config",
15084
15163
  filePath,
15085
15164
  requiresExplicitOverwrite: false,
15086
- content: patchInitReactViteConfigContent(fs.readFileSync(filePath, "utf8")),
15165
+ content: patchInitReactViteConfigContent(fs.readFileSync(filePath, "utf8"), context, moduleFormat),
15087
15166
  updateReason: `Patch ${context.viteConfigFile} to add the @convex alias.`,
15088
15167
  createReason: `Patch ${context.viteConfigFile} to add the @convex alias.`,
15089
15168
  skipReason: `${context.viteConfigFile} already includes the @convex alias.`
@@ -15452,7 +15531,7 @@ async function runScaffoldCommandFlow(params) {
15452
15531
  created: applyResult.created,
15453
15532
  updated: applyResult.updated,
15454
15533
  skipped: applyResult.skipped,
15455
- usedShadcn: params.template !== void 0,
15534
+ usedShadcn: params.template !== void 0 && params.template !== "expo",
15456
15535
  template: params.template ?? null,
15457
15536
  codegen: codegenResult.codegen,
15458
15537
  convexBootstrap: codegenResult.convexBootstrap,
package/dist/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { $ as promptForScaffoldTemplateSelection, A as resolveCodegenTrimSegments, At as highlighter, B as runConfiguredCodegen, C as isEntryPoint, Ct as formatDependencyInstallCommand, D as parseInitCommandArgs, E as parseBackendRunJson, Et as stripConvexCommandNoise, F as resolveRunDeps, G as runMigrationFlow, H as runDevSchemaBackfillIfNeeded, I as runAfterScaffoldScript, J as withWorkingDirectory, K as trackProcess, L as runAggregateBackfillFlow, M as resolveDocTopic, N as resolveInitProjectDir, O as readPackageVersions, P as resolveMigrationConfig, Q as promptForPluginSelection, R as runAggregatePruneFlow, S as isConvexDevPreRunConflictFlag, St as detectPackageManager, T as parseArgs, Tt as serializeEnvValue, U as runInitCommandFlow, V as runConvexInitIfNeeded, W as runMigrationCreate, X as collectPluginScaffoldTemplates, Y as createSpinner, Z as filterScaffoldTemplatePathMap, _ as formatInfoOutput, _t as applyPlanningDependencyInstall, a as cleanup, at as getPluginCatalogEntry, b as getDevAggregateBackfillStatePath, bt as resolveSupportedDependencyWarnings, c as createCommandEnv, ct as buildPluginInstallPlan, d as extractBackfillCliOptions, dt as collectInstalledPluginKeys, et as resolveAddTemplateDefaults, f as extractConcaveRunTargetArgs, ft as getPluginLockfilePath, g as formatDocsOutput, gt as applyDependencyHintsInstall, h as extractResetCliOptions, ht as resolveSchemaInstalledPlugins, i as buildInitializationPlan, it as resolveTemplatesByIdOrThrow, j as resolveConfiguredBackend, k as resolveBackfillConfig, kt as logger, l as ensureConvexGitignoreEntry, lt as resolvePluginScaffoldRoots, m as extractMigrationDownOptions, mt as readPluginLockfile, n as applyPluginInstallPlanFiles, nt as resolvePresetScaffoldTemplates, o as createBackendAdapter, ot as getSupportedPluginKeys, p as extractMigrationCliOptions, pt as getSchemaFilePath, q as withLocalCodegenEnv, r as assertNoRemovedDevPreRunFlag, rt as resolveTemplateSelectionSource, s as createBackendCommandEnv, st as isSupportedPluginKey, t as applyDependencyInstallPlan, tt as resolvePluginPreset, u as extractBackendRunTargetArgs, ut as assertSchemaFileExists, v as getAggregateBackfillDeploymentKey, vt as applyPluginDependencyInstall, w as isInitialized, wt as resolveAuthEnvState, x as hasRemoteConvexDeploymentEnv, xt as resolveProjectScaffoldContext, y as getConvexDeploymentCommandEnv, yt as inspectPluginDependencyInstall, z as runBackendFunction } from "./backend-core-CRJpuVnf.mjs";
2
+ import { $ as promptForScaffoldTemplateSelection, A as resolveCodegenTrimSegments, At as highlighter, B as runConfiguredCodegen, C as isEntryPoint, Ct as formatDependencyInstallCommand, D as parseInitCommandArgs, E as parseBackendRunJson, Et as stripConvexCommandNoise, F as resolveRunDeps, G as runMigrationFlow, H as runDevSchemaBackfillIfNeeded, I as runAfterScaffoldScript, J as withWorkingDirectory, K as trackProcess, L as runAggregateBackfillFlow, M as resolveDocTopic, N as resolveInitProjectDir, O as readPackageVersions, P as resolveMigrationConfig, Q as promptForPluginSelection, R as runAggregatePruneFlow, S as isConvexDevPreRunConflictFlag, St as detectPackageManager, T as parseArgs, Tt as serializeEnvValue, U as runInitCommandFlow, V as runConvexInitIfNeeded, W as runMigrationCreate, X as collectPluginScaffoldTemplates, Y as createSpinner, Z as filterScaffoldTemplatePathMap, _ as formatInfoOutput, _t as applyPlanningDependencyInstall, a as cleanup, at as getPluginCatalogEntry, b as getDevAggregateBackfillStatePath, bt as resolveSupportedDependencyWarnings, c as createCommandEnv, ct as buildPluginInstallPlan, d as extractBackfillCliOptions, dt as collectInstalledPluginKeys, et as resolveAddTemplateDefaults, f as extractConcaveRunTargetArgs, ft as getPluginLockfilePath, g as formatDocsOutput, gt as applyDependencyHintsInstall, h as extractResetCliOptions, ht as resolveSchemaInstalledPlugins, i as buildInitializationPlan, it as resolveTemplatesByIdOrThrow, j as resolveConfiguredBackend, k as resolveBackfillConfig, kt as logger, l as ensureConvexGitignoreEntry, lt as resolvePluginScaffoldRoots, m as extractMigrationDownOptions, mt as readPluginLockfile, n as applyPluginInstallPlanFiles, nt as resolvePresetScaffoldTemplates, o as createBackendAdapter, ot as getSupportedPluginKeys, p as extractMigrationCliOptions, pt as getSchemaFilePath, q as withLocalCodegenEnv, r as assertNoRemovedDevPreRunFlag, rt as resolveTemplateSelectionSource, s as createBackendCommandEnv, st as isSupportedPluginKey, t as applyDependencyInstallPlan, tt as resolvePluginPreset, u as extractBackendRunTargetArgs, ut as assertSchemaFileExists, v as getAggregateBackfillDeploymentKey, vt as applyPluginDependencyInstall, w as isInitialized, wt as resolveAuthEnvState, x as hasRemoteConvexDeploymentEnv, xt as resolveProjectScaffoldContext, y as getConvexDeploymentCommandEnv, yt as inspectPluginDependencyInstall, z as runBackendFunction } from "./backend-core-DqIPJnse.mjs";
3
3
  import fs, { existsSync, readFileSync } from "node:fs";
4
4
  import path, { delimiter, dirname, join, relative, resolve } from "node:path";
5
5
  import { fileURLToPath } from "node:url";
@@ -2218,7 +2218,7 @@ const handleInitCommand = async (argv, deps = {}) => {
2218
2218
  realConvexPath,
2219
2219
  realConcavePath
2220
2220
  });
2221
- if (shouldRunLocalBootstrap && !result.usedShadcn && !result.localBootstrapUsed) await withWorkingDirectory(result.cwd, async () => {
2221
+ if (shouldRunLocalBootstrap && result.template === null && !result.localBootstrapUsed) await withWorkingDirectory(result.cwd, async () => {
2222
2222
  const config = loadCliConfigFn(bootstrapConfigPath);
2223
2223
  if (await runLocalBootstrapFn({
2224
2224
  config,
@@ -173,18 +173,10 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
173
173
  };
174
174
  }, Promise<any>>;
175
175
  deleteMany: convex_server0.RegisteredMutation<"internal", {
176
- paginationOpts: {
177
- id?: number;
178
- endCursor?: string | null;
179
- maximumRowsRead?: number;
180
- maximumBytesRead?: number;
181
- numItems: number;
182
- cursor: string | null;
183
- };
184
176
  input: {
185
177
  where?: {
186
- operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
187
178
  connector?: "AND" | "OR" | undefined;
179
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
188
180
  value: string | number | boolean | string[] | number[] | null;
189
181
  field: string;
190
182
  }[] | undefined;
@@ -193,6 +185,14 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
193
185
  where?: any[] | undefined;
194
186
  model: string;
195
187
  };
188
+ paginationOpts: {
189
+ id?: number;
190
+ endCursor?: string | null;
191
+ maximumRowsRead?: number;
192
+ maximumBytesRead?: number;
193
+ numItems: number;
194
+ cursor: string | null;
195
+ };
196
196
  }, Promise<{
197
197
  count: number;
198
198
  ids: any[];
@@ -204,8 +204,8 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
204
204
  deleteOne: convex_server0.RegisteredMutation<"internal", {
205
205
  input: {
206
206
  where?: {
207
- operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
208
207
  connector?: "AND" | "OR" | undefined;
208
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
209
209
  value: string | number | boolean | string[] | number[] | null;
210
210
  field: string;
211
211
  }[] | undefined;
@@ -216,20 +216,21 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
216
216
  };
217
217
  }, Promise<Record<string, unknown> | undefined>>;
218
218
  findMany: convex_server0.RegisteredQuery<"internal", {
219
- limit?: number | undefined;
220
219
  join?: any;
221
220
  where?: {
222
221
  mode?: "sensitive" | "insensitive" | undefined;
223
- operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
224
222
  connector?: "AND" | "OR" | undefined;
223
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
225
224
  value: string | number | boolean | string[] | number[] | null;
226
225
  field: string;
227
226
  }[] | undefined;
227
+ limit?: number | undefined;
228
228
  offset?: number | undefined;
229
229
  sortBy?: {
230
230
  field: string;
231
231
  direction: "asc" | "desc";
232
232
  } | undefined;
233
+ model: string;
233
234
  paginationOpts: {
234
235
  id?: number;
235
236
  endCursor?: string | null;
@@ -238,48 +239,47 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
238
239
  numItems: number;
239
240
  cursor: string | null;
240
241
  };
241
- model: string;
242
242
  }, Promise<convex_server0.PaginationResult<convex_server0.GenericDocument>>>;
243
243
  findOne: convex_server0.RegisteredQuery<"internal", {
244
244
  join?: any;
245
+ select?: string[] | undefined;
245
246
  where?: {
246
247
  mode?: "sensitive" | "insensitive" | undefined;
247
- operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
248
248
  connector?: "AND" | "OR" | undefined;
249
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
249
250
  value: string | number | boolean | string[] | number[] | null;
250
251
  field: string;
251
252
  }[] | undefined;
252
- select?: string[] | undefined;
253
253
  model: string;
254
254
  }, Promise<convex_server0.GenericDocument | null>>;
255
255
  getLatestJwks: convex_server0.RegisteredAction<"internal", {}, Promise<unknown>>;
256
256
  rotateKeys: convex_server0.RegisteredAction<"internal", {}, Promise<unknown>>;
257
257
  updateMany: convex_server0.RegisteredMutation<"internal", {
258
- paginationOpts: {
259
- id?: number;
260
- endCursor?: string | null;
261
- maximumRowsRead?: number;
262
- maximumBytesRead?: number;
263
- numItems: number;
264
- cursor: string | null;
265
- };
266
258
  input: {
267
259
  where?: {
268
- operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
269
260
  connector?: "AND" | "OR" | undefined;
261
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
270
262
  value: string | number | boolean | string[] | number[] | null;
271
263
  field: string;
272
264
  }[] | undefined;
265
+ model: string;
273
266
  update: {
274
267
  [x: string]: unknown;
275
268
  [x: number]: unknown;
276
269
  [x: symbol]: unknown;
277
270
  };
278
- model: string;
279
271
  } | {
280
272
  where?: any[] | undefined;
281
- update: any;
282
273
  model: string;
274
+ update: any;
275
+ };
276
+ paginationOpts: {
277
+ id?: number;
278
+ endCursor?: string | null;
279
+ maximumRowsRead?: number;
280
+ maximumBytesRead?: number;
281
+ numItems: number;
282
+ cursor: string | null;
283
283
  };
284
284
  }, Promise<{
285
285
  count: number;
@@ -292,21 +292,21 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
292
292
  updateOne: convex_server0.RegisteredMutation<"internal", {
293
293
  input: {
294
294
  where?: {
295
- operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
296
295
  connector?: "AND" | "OR" | undefined;
296
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
297
297
  value: string | number | boolean | string[] | number[] | null;
298
298
  field: string;
299
299
  }[] | undefined;
300
+ model: string;
300
301
  update: {
301
302
  [x: string]: unknown;
302
303
  [x: number]: unknown;
303
304
  [x: symbol]: unknown;
304
305
  };
305
- model: string;
306
306
  } | {
307
307
  where?: any[] | undefined;
308
- update: any;
309
308
  model: string;
309
+ update: any;
310
310
  };
311
311
  }, Promise<any>>;
312
312
  };
@@ -1,4 +1,4 @@
1
- import { $ as GenericOrmCtx$1, $n as unique, $r as endsWith, $t as ManyConfig, A as ConvexDateMode, An as ConvexRankIndexBuilder, Ar as ReturningResult, At as MigrationManifestEntry, B as ConvexBytesBuilderInitial, Bn as rankIndex, Br as OrmSchemaRelations, Bt as defineMigration, C as ConvexNumberBuilderInitial, Ci as ColumnBuilderWithTableName, Cn as RlsRole, Cr as MutationReturning, Ct as MigrationStatusArgs, D as id, Di as IsPrimaryKey, Dn as ConvexAggregateIndexBuilderOn, Dr as PaginatedResult, Dt as MigrationDoc, E as ConvexIdBuilderInitial, Ei as HasDefault, En as ConvexAggregateIndexBuilder, Er as OrderDirection, Et as MigrationDirection, F as custom, Fn as ConvexVectorIndexBuilder, Fr as unsetToken, Ft as MigrationStateMap, G as ConvexBigIntBuilder, Gn as ConvexCheckConfig, Gr as ExpressionVisitor, Gt as OrmReader$1, H as ConvexBooleanBuilder, Hn as uniqueIndex, Hr as TableName, Ht as detectMigrationDrift, I as json, In as ConvexVectorIndexBuilderOn, Ir as Brand, It as MigrationStep, J as CountBackfillChunkArgs, Jn as ConvexUniqueConstraintBuilder, Jr as LogicalExpression, Jt as RlsMode, K as ConvexBigIntBuilderInitial, Kn as ConvexForeignKeyBuilder, Kr as FieldReference, Kt as OrmWriter$1, L as objectOf, Ln as ConvexVectorIndexConfig, Lr as Columns, Lt as MigrationTableName, M as ConvexCustomBuilder, Mn as ConvexSearchIndexBuilder, Mr as UpdateSet, Mt as MigrationPlan, N as ConvexCustomBuilderInitial, Nn as ConvexSearchIndexBuilderOn, Nr as VectorQueryConfig, Nt as MigrationRunStatus, O as ConvexDateBuilder, Oi as IsUnique, On as ConvexIndexBuilder, Or as PredicateWhereIndexConfig, Ot as MigrationDocContext, P as arrayOf, Pn as ConvexSearchIndexConfig, Pr as VectorSearchProvider, Pt as MigrationSet, Q as GenericOrm$1, Qn as foreignKey, Qr as contains, Qt as ExtractTablesWithRelations, R as unionOf, Rn as aggregateIndex, Rr as OrmSchemaExtensionTables, Rt as MigrationWriteMode, S as ConvexNumberBuilder, Si as ColumnBuilderTypeConfig, Sn as rlsPolicy, Sr as MutationResult, St as MigrationRunChunkArgs, T as ConvexIdBuilder, Ti as DrizzleEntity, Tn as rlsRole, Tr as OrderByClause, Tt as MigrationDefinition, U as ConvexBooleanBuilderInitial, Un as vectorIndex, Ur as SystemFields, Ut as DatabaseWithMutations, V as bytes, Vn as searchIndex, Vr as OrmSchemaTriggers, Vt as defineMigrationSet, W as boolean, Wn as ConvexCheckBuilder, Wr as BinaryExpression, Wt as DatabaseWithQuery, X as CountBackfillStatusArgs, Xn as ConvexUniqueConstraintConfig, Xr as and, Xt as extractRelationsConfig, Y as CountBackfillKickoffArgs, Yn as ConvexUniqueConstraintBuilderOn, Yr as UnaryExpression, Yt as EdgeMetadata, Z as CreateOrmOptions, Zn as check, Zr as between, Zt as ExtractTablesFromSchema, _ as ConvexTimestampMode, _i as startsWith, _n as deletion, _r as MutationExecuteConfig, _t as OrmTriggerContext, a as requireSchemaRelations, ai as inArray, an as TablesRelationalConfig, ar as AggregateResult, at as OrmWriterCtx, b as ConvexTextEnumBuilderInitial, bi as ColumnBuilderBaseConfig, bn as RlsPolicyConfig, br as MutationPaginateConfig, bt as MigrationCancelArgs, c as TableConfigResult, ci as isNull, cn as ConvexDeletionBuilder, cr as CountConfig, ct as ScheduledMutationBatchArgs, d as OrmNotFoundError, di as lte, dn as ConvexTableWithColumns, dr as FilterOperators, dt as scheduledDeleteFactory, ei as eq, en as OneConfig, er as ConvexTextBuilder, et as OrmApiResult, f as ConvexVectorBuilder, fi as ne, fn as DiscriminatorBuilderConfig, fr as GetColumnData, ft as SchemaExtension, g as ConvexTimestampBuilderInitial, gi as or, gn as convexTable, gr as InsertValue, gt as OrmTriggerChange, h as ConvexTimestampBuilder, hi as notInArray, hn as TableConfig, hr as InferSelectModel, ht as OrmTableTriggers, i as getSchemaTriggers, ii as ilike, in as TableRelationalConfig, ir as AggregateFieldValue, it as OrmReaderCtx, j as date, jn as ConvexRankIndexBuilderOn, jr as ReturningSelection, jt as MigrationMigrateOne, k as ConvexDateBuilderInitial, ki as NotNull, kn as ConvexIndexBuilderOn, kr as ReturningAll, kt as MigrationDriftIssue, l as getTableColumns, li as like, ln as ConvexDeletionConfig, lr as CountResult, lt as scheduledMutationBatchFactory, m as vector, mi as notBetween, mn as OrmLifecycleOperation, mr as InferModelFromColumns, mt as OrmBeforeResult, n as defineSchema, ni as gt, nn as RelationsBuilderColumnBase, nr as text, nt as OrmClientWithApi$1, o as asc, oi as isFieldReference, on as defineRelations, or as BuildQueryResult, ot as ResolveOrmSchema, p as ConvexVectorBuilderInitial, pi as not, pn as OrmLifecycleChange, pr as InferInsertModel, pt as defineSchemaExtension, q as bigint, qn as ConvexForeignKeyConfig, qr as FilterExpression, qt as RlsContext, r as getSchemaRelations, ri as gte, rn as RelationsBuilderColumnConfig, rr as AggregateConfig, rt as OrmFunctions, s as desc, si as isNotNull, sn as defineRelationsPart, sr as BuildRelationResult, st as createOrm, t as WhereClauseResult, ti as fieldRef, tn as RelationsBuilder, tr as ConvexTextBuilderInitial, tt as OrmClientBase$1, u as getTableConfig, ui as lt, un as ConvexTable, ur as DBQueryConfig, ut as ScheduledDeleteArgs, v as timestamp, vi as AnyColumn, vn as discriminator, vr as MutationExecuteResult, vt as OrmTriggers, w as integer, wi as ColumnDataType, wn as RlsRoleConfig, wr as MutationRunMode, wt as MigrationAppliedState, x as textEnum, xi as ColumnBuilderRuntimeConfig, xn as RlsPolicyToOption, xr as MutationPaginatedResult, xt as MigrationRunArgs, y as ConvexTextEnumBuilder, yi as ColumnBuilder, yn as RlsPolicy, yr as MutationExecutionMode, yt as defineTriggers, z as ConvexBytesBuilder, zn as index, zr as OrmSchemaExtensions, zt as buildMigrationPlan } from "../where-clause-compiler-Dc58we_m.js";
1
+ import { $ as GenericOrmCtx$1, $n as unique, $r as endsWith, $t as ManyConfig, A as ConvexDateMode, An as ConvexRankIndexBuilder, Ar as ReturningResult, At as MigrationManifestEntry, B as ConvexBytesBuilderInitial, Bn as rankIndex, Br as OrmSchemaRelations, Bt as defineMigration, C as ConvexNumberBuilderInitial, Ci as ColumnBuilderWithTableName, Cn as RlsRole, Cr as MutationReturning, Ct as MigrationStatusArgs, D as id, Di as IsPrimaryKey, Dn as ConvexAggregateIndexBuilderOn, Dr as PaginatedResult, Dt as MigrationDoc, E as ConvexIdBuilderInitial, Ei as HasDefault, En as ConvexAggregateIndexBuilder, Er as OrderDirection, Et as MigrationDirection, F as custom, Fn as ConvexVectorIndexBuilder, Fr as unsetToken, Ft as MigrationStateMap, G as ConvexBigIntBuilder, Gn as ConvexCheckConfig, Gr as ExpressionVisitor, Gt as OrmReader$1, H as ConvexBooleanBuilder, Hn as uniqueIndex, Hr as TableName, Ht as detectMigrationDrift, I as json, In as ConvexVectorIndexBuilderOn, Ir as Brand, It as MigrationStep, J as CountBackfillChunkArgs, Jn as ConvexUniqueConstraintBuilder, Jr as LogicalExpression, Jt as RlsMode, K as ConvexBigIntBuilderInitial, Kn as ConvexForeignKeyBuilder, Kr as FieldReference, Kt as OrmWriter$1, L as objectOf, Ln as ConvexVectorIndexConfig, Lr as Columns, Lt as MigrationTableName, M as ConvexCustomBuilder, Mn as ConvexSearchIndexBuilder, Mr as UpdateSet, Mt as MigrationPlan, N as ConvexCustomBuilderInitial, Nn as ConvexSearchIndexBuilderOn, Nr as VectorQueryConfig, Nt as MigrationRunStatus, O as ConvexDateBuilder, Oi as IsUnique, On as ConvexIndexBuilder, Or as PredicateWhereIndexConfig, Ot as MigrationDocContext, P as arrayOf, Pn as ConvexSearchIndexConfig, Pr as VectorSearchProvider, Pt as MigrationSet, Q as GenericOrm$1, Qn as foreignKey, Qr as contains, Qt as ExtractTablesWithRelations, R as unionOf, Rn as aggregateIndex, Rr as OrmSchemaExtensionTables, Rt as MigrationWriteMode, S as ConvexNumberBuilder, Si as ColumnBuilderTypeConfig, Sn as rlsPolicy, Sr as MutationResult, St as MigrationRunChunkArgs, T as ConvexIdBuilder, Ti as DrizzleEntity, Tn as rlsRole, Tr as OrderByClause, Tt as MigrationDefinition, U as ConvexBooleanBuilderInitial, Un as vectorIndex, Ur as SystemFields, Ut as DatabaseWithMutations, V as bytes, Vn as searchIndex, Vr as OrmSchemaTriggers, Vt as defineMigrationSet, W as boolean, Wn as ConvexCheckBuilder, Wr as BinaryExpression, Wt as DatabaseWithQuery, X as CountBackfillStatusArgs, Xn as ConvexUniqueConstraintConfig, Xr as and, Xt as extractRelationsConfig, Y as CountBackfillKickoffArgs, Yn as ConvexUniqueConstraintBuilderOn, Yr as UnaryExpression, Yt as EdgeMetadata, Z as CreateOrmOptions, Zn as check, Zr as between, Zt as ExtractTablesFromSchema, _ as ConvexTimestampMode, _i as startsWith, _n as deletion, _r as MutationExecuteConfig, _t as OrmTriggerContext, a as requireSchemaRelations, ai as inArray, an as TablesRelationalConfig, ar as AggregateResult, at as OrmWriterCtx, b as ConvexTextEnumBuilderInitial, bi as ColumnBuilderBaseConfig, bn as RlsPolicyConfig, br as MutationPaginateConfig, bt as MigrationCancelArgs, c as TableConfigResult, ci as isNull, cn as ConvexDeletionBuilder, cr as CountConfig, ct as ScheduledMutationBatchArgs, d as OrmNotFoundError, di as lte, dn as ConvexTableWithColumns, dr as FilterOperators, dt as scheduledDeleteFactory, ei as eq, en as OneConfig, er as ConvexTextBuilder, et as OrmApiResult, f as ConvexVectorBuilder, fi as ne, fn as DiscriminatorBuilderConfig, fr as GetColumnData, ft as SchemaExtension, g as ConvexTimestampBuilderInitial, gi as or, gn as convexTable, gr as InsertValue, gt as OrmTriggerChange, h as ConvexTimestampBuilder, hi as notInArray, hn as TableConfig, hr as InferSelectModel, ht as OrmTableTriggers, i as getSchemaTriggers, ii as ilike, in as TableRelationalConfig, ir as AggregateFieldValue, it as OrmReaderCtx, j as date, jn as ConvexRankIndexBuilderOn, jr as ReturningSelection, jt as MigrationMigrateOne, k as ConvexDateBuilderInitial, ki as NotNull, kn as ConvexIndexBuilderOn, kr as ReturningAll, kt as MigrationDriftIssue, l as getTableColumns, li as like, ln as ConvexDeletionConfig, lr as CountResult, lt as scheduledMutationBatchFactory, m as vector, mi as notBetween, mn as OrmLifecycleOperation, mr as InferModelFromColumns, mt as OrmBeforeResult, n as defineSchema, ni as gt, nn as RelationsBuilderColumnBase, nr as text, nt as OrmClientWithApi$1, o as asc, oi as isFieldReference, on as defineRelations, or as BuildQueryResult, ot as ResolveOrmSchema, p as ConvexVectorBuilderInitial, pi as not, pn as OrmLifecycleChange, pr as InferInsertModel, pt as defineSchemaExtension, q as bigint, qn as ConvexForeignKeyConfig, qr as FilterExpression, qt as RlsContext, r as getSchemaRelations, ri as gte, rn as RelationsBuilderColumnConfig, rr as AggregateConfig, rt as OrmFunctions, s as desc, si as isNotNull, sn as defineRelationsPart, sr as BuildRelationResult, st as createOrm, t as WhereClauseResult, ti as fieldRef, tn as RelationsBuilder, tr as ConvexTextBuilderInitial, tt as OrmClientBase$1, u as getTableConfig, ui as lt, un as ConvexTable, ur as DBQueryConfig, ut as ScheduledDeleteArgs, v as timestamp, vi as AnyColumn, vn as discriminator, vr as MutationExecuteResult, vt as OrmTriggers, w as integer, wi as ColumnDataType, wn as RlsRoleConfig, wr as MutationRunMode, wt as MigrationAppliedState, x as textEnum, xi as ColumnBuilderRuntimeConfig, xn as RlsPolicyToOption, xr as MutationPaginatedResult, xt as MigrationRunArgs, y as ConvexTextEnumBuilder, yi as ColumnBuilder, yn as RlsPolicy, yr as MutationExecutionMode, yt as defineTriggers, z as ConvexBytesBuilder, zn as index, zr as OrmSchemaExtensions, zt as buildMigrationPlan } from "../where-clause-compiler-Ca0clgPV.js";
2
2
  import { i as pretendRequired, n as deprecated, r as pretend } from "../validators-BhsByJeg.js";
3
3
  import { a as QueryCtxWithPreferredOrmQueryTable, i as QueryCtxWithOrmQueryTable, n as LookupByIdResultByCtx, o as getByIdWithOrmQueryFallback, r as QueryCtxWithOptionalOrmQueryTable, t as DocByCtx } from "../query-context-CNo9ffvI.js";
4
4
  import { DefineSchemaOptions, GenericDatabaseReader, GenericDatabaseWriter, GenericSchema, SchemaDefinition } from "convex/server";
package/dist/orm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A as vectorIndex, B as ConvexColumnBuilder, C as RlsPolicy, D as rankIndex, E as index, F as arrayOf, I as custom, L as json, M as createSystemFields, N as integer, O as searchIndex, P as id, R as objectOf, S as TablePolymorphic, T as aggregateIndex, V as entityKind, _ as OrmSchemaRelations, a as deletion, b as TableDeleteConfig, c as Columns, d as OrmSchemaDefinition, f as OrmSchemaExtensionRelations, g as OrmSchemaOptions, h as OrmSchemaExtensions, i as convexTable, j as text, k as uniqueIndex, l as EnableRLS, m as OrmSchemaExtensionTriggers, o as discriminator, p as OrmSchemaExtensionTables, s as Brand, t as DirectAggregate, u as OrmContext, v as OrmSchemaTriggers, w as rlsPolicy, x as TableName, y as RlsPolicies, z as unionOf } from "../runtime-i6t-HoZn.js";
1
+ import { A as vectorIndex, B as ConvexColumnBuilder, C as RlsPolicy, D as rankIndex, E as index, F as arrayOf, I as custom, L as json, M as createSystemFields, N as integer, O as searchIndex, P as id, R as objectOf, S as TablePolymorphic, T as aggregateIndex, V as entityKind, _ as OrmSchemaRelations, a as deletion, b as TableDeleteConfig, c as Columns, d as OrmSchemaDefinition, f as OrmSchemaExtensionRelations, g as OrmSchemaOptions, h as OrmSchemaExtensions, i as convexTable, j as text, k as uniqueIndex, l as EnableRLS, m as OrmSchemaExtensionTriggers, o as discriminator, p as OrmSchemaExtensionTables, s as Brand, t as DirectAggregate, u as OrmContext, v as OrmSchemaTriggers, w as rlsPolicy, x as TableName, y as RlsPolicies, z as unionOf } from "../runtime-DmVSOe24.js";
2
2
  import { a as pretendRequired, i as pretend, n as deprecated } from "../validators-C7LelqTN.js";
3
3
  import { A as ne, C as inArray, D as like, E as isNull, F as notLike, I as or, L as startsWith, M as notBetween, N as notIlike, O as lt, P as notInArray, S as ilike, T as isNotNull, _ as endsWith, a as mergedStream, b as gt, c as isUnsetToken, d as arrayContained, f as arrayContains, g as contains, h as column, i as getIndexFields, j as not, k as lte, l as unsetToken, m as between, n as EmptyStream, o as stream, p as arrayOverlaps, r as QueryStream, s as streamIndexRange, t as getByIdWithOrmQueryFallback, u as and, v as eq, w as isFieldReference, x as gte, y as fieldRef } from "../query-context-ydn9kb6P.js";
4
4
  import { v } from "convex/values";
@@ -579,9 +579,9 @@ var ConvexRankIndexBuilder = class {
579
579
  };
580
580
  }
581
581
  orderBy(...columns) {
582
- this.config.orderColumns = columns.map((entry) => {
582
+ const orderColumns = columns.map((entry) => {
583
583
  if (entry && typeof entry === "object" && "column" in entry && "direction" in entry) {
584
- const builder = entry.column?.builder;
584
+ const builder = entry.column;
585
585
  if (!builder) throw new Error("rankIndex orderBy() expected a column builder.");
586
586
  return {
587
587
  column: builder,
@@ -593,6 +593,7 @@ var ConvexRankIndexBuilder = class {
593
593
  direction: "asc"
594
594
  };
595
595
  });
596
+ this.config.orderColumns = [...this.config.orderColumns, ...orderColumns];
596
597
  return this;
597
598
  }
598
599
  sum(field) {
package/dist/watcher.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { Dt as generateMeta, F as resolveRunDeps, Ot as getConvexConfig, j as resolveConfiguredBackend, kt as logger, q as withLocalCodegenEnv } from "./backend-core-CRJpuVnf.mjs";
2
+ import { Dt as generateMeta, F as resolveRunDeps, Ot as getConvexConfig, j as resolveConfiguredBackend, kt as logger, q as withLocalCodegenEnv } from "./backend-core-DqIPJnse.mjs";
3
3
  import path from "node:path";
4
4
  import { fileURLToPath } from "node:url";
5
5
 
@@ -1467,12 +1467,10 @@ interface ConvexRankIndexOrderSpec<TColumn extends ConvexIndexColumn = ConvexInd
1467
1467
  column: TColumn;
1468
1468
  direction: 'asc' | 'desc';
1469
1469
  }
1470
- type ConvexRankOrderByInput<TColumn extends ConvexIndexColumn> = TColumn | {
1471
- column: {
1472
- builder: TColumn;
1473
- };
1474
- direction: 'asc' | 'desc';
1475
- };
1470
+ type ConvexRankOrderByInput<TColumn extends ConvexIndexColumn> = TColumn | ConvexRankIndexOrderSpec<TColumn>;
1471
+ type ConvexRankOrderByInputToSpec<TInput> = TInput extends ConvexRankIndexOrderSpec<infer TColumn> ? ConvexRankIndexOrderSpec<TColumn> : TInput extends ConvexIndexColumn ? ConvexRankIndexOrderSpec<TInput> : never;
1472
+ type ConvexRankOrderByInputsToSpecs<TInputs extends readonly ConvexRankOrderByInput<ConvexIndexColumn>[]> = TInputs extends readonly [infer TFirst extends ConvexRankOrderByInput<ConvexIndexColumn>, ...infer TRest extends readonly ConvexRankOrderByInput<ConvexIndexColumn>[]] ? readonly [ConvexRankOrderByInputToSpec<TFirst>, ...ConvexRankOrderByInputsToSpecs<TRest>] : readonly [];
1473
+ type ConvexRankOrderByResultColumns<TExistingColumns extends readonly ConvexRankIndexOrderSpec[], TInputColumns extends readonly ConvexRankOrderByInput<ConvexIndexColumn>[]> = readonly [...TExistingColumns, ...ConvexRankOrderByInputsToSpecs<TInputColumns>];
1476
1474
  interface ConvexRankIndexConfig<TName extends string = string, TPartitionColumns extends readonly ConvexIndexColumn[] = ConvexIndexColumn[], TOrderColumns extends readonly ConvexRankIndexOrderSpec[] = readonly ConvexRankIndexOrderSpec[]> {
1477
1475
  name: TName;
1478
1476
  orderColumns: TOrderColumns;
@@ -1578,7 +1576,7 @@ declare class ConvexRankIndexBuilder<TName extends string = string, TPartitionCo
1578
1576
  };
1579
1577
  config: ConvexRankIndexConfig<TName, TPartitionColumns, TOrderColumns>;
1580
1578
  constructor(name: TName, partitionColumns: TPartitionColumns, orderColumns: TOrderColumns);
1581
- orderBy<TNextColumns extends readonly ConvexRankIndexOrderSpec[]>(...columns: TNextColumns & readonly ConvexRankOrderByInput<ConvexIndexColumn>[]): ConvexRankIndexBuilder<TName, TPartitionColumns, TNextColumns>;
1579
+ orderBy<TNextColumns extends readonly ConvexRankOrderByInput<ConvexIndexColumn>[]>(...columns: TNextColumns): ConvexRankIndexBuilder<TName, TPartitionColumns, ConvexRankOrderByResultColumns<TOrderColumns, TNextColumns>>;
1582
1580
  sum(field: ConvexIndexColumn): this;
1583
1581
  }
1584
1582
  declare class ConvexVectorIndexBuilder<TName extends string = string, TVectorField extends ConvexIndexColumn = ConvexIndexColumn, TFilterFields extends readonly ConvexIndexColumn[] = ConvexIndexColumn[]> {
@@ -3728,7 +3726,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
3728
3726
  fieldName: "count";
3729
3727
  };
3730
3728
  };
3731
- updatedAt: ConvexNumberBuilderInitial<""> & {
3729
+ tableKey: ConvexTextBuilderInitial<""> & {
3732
3730
  _: {
3733
3731
  notNull: true;
3734
3732
  };
@@ -3738,10 +3736,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
3738
3736
  };
3739
3737
  } & {
3740
3738
  _: {
3741
- fieldName: "updatedAt";
3739
+ fieldName: "tableKey";
3742
3740
  };
3743
3741
  };
3744
- tableKey: ConvexTextBuilderInitial<""> & {
3742
+ indexName: ConvexTextBuilderInitial<""> & {
3745
3743
  _: {
3746
3744
  notNull: true;
3747
3745
  };
@@ -3751,10 +3749,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
3751
3749
  };
3752
3750
  } & {
3753
3751
  _: {
3754
- fieldName: "tableKey";
3752
+ fieldName: "indexName";
3755
3753
  };
3756
3754
  };
3757
- indexName: ConvexTextBuilderInitial<""> & {
3755
+ updatedAt: ConvexNumberBuilderInitial<""> & {
3758
3756
  _: {
3759
3757
  notNull: true;
3760
3758
  };
@@ -3764,7 +3762,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
3764
3762
  };
3765
3763
  } & {
3766
3764
  _: {
3767
- fieldName: "indexName";
3765
+ fieldName: "updatedAt";
3768
3766
  };
3769
3767
  };
3770
3768
  keyHash: ConvexTextBuilderInitial<""> & {
@@ -3837,7 +3835,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
3837
3835
  fieldName: "kind";
3838
3836
  };
3839
3837
  };
3840
- updatedAt: ConvexNumberBuilderInitial<""> & {
3838
+ tableKey: ConvexTextBuilderInitial<""> & {
3841
3839
  _: {
3842
3840
  notNull: true;
3843
3841
  };
@@ -3847,10 +3845,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
3847
3845
  };
3848
3846
  } & {
3849
3847
  _: {
3850
- fieldName: "updatedAt";
3848
+ fieldName: "tableKey";
3851
3849
  };
3852
3850
  };
3853
- tableKey: ConvexTextBuilderInitial<""> & {
3851
+ indexName: ConvexTextBuilderInitial<""> & {
3854
3852
  _: {
3855
3853
  notNull: true;
3856
3854
  };
@@ -3860,10 +3858,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
3860
3858
  };
3861
3859
  } & {
3862
3860
  _: {
3863
- fieldName: "tableKey";
3861
+ fieldName: "indexName";
3864
3862
  };
3865
3863
  };
3866
- indexName: ConvexTextBuilderInitial<""> & {
3864
+ updatedAt: ConvexNumberBuilderInitial<""> & {
3867
3865
  _: {
3868
3866
  notNull: true;
3869
3867
  };
@@ -3873,7 +3871,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
3873
3871
  };
3874
3872
  } & {
3875
3873
  _: {
3876
- fieldName: "indexName";
3874
+ fieldName: "updatedAt";
3877
3875
  };
3878
3876
  };
3879
3877
  keyHash: ConvexTextBuilderInitial<""> & {
@@ -4020,7 +4018,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
4020
4018
  fieldName: "value";
4021
4019
  };
4022
4020
  };
4023
- updatedAt: ConvexNumberBuilderInitial<""> & {
4021
+ tableKey: ConvexTextBuilderInitial<""> & {
4024
4022
  _: {
4025
4023
  notNull: true;
4026
4024
  };
@@ -4030,10 +4028,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
4030
4028
  };
4031
4029
  } & {
4032
4030
  _: {
4033
- fieldName: "updatedAt";
4031
+ fieldName: "tableKey";
4034
4032
  };
4035
4033
  };
4036
- tableKey: ConvexTextBuilderInitial<""> & {
4034
+ indexName: ConvexTextBuilderInitial<""> & {
4037
4035
  _: {
4038
4036
  notNull: true;
4039
4037
  };
@@ -4043,10 +4041,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
4043
4041
  };
4044
4042
  } & {
4045
4043
  _: {
4046
- fieldName: "tableKey";
4044
+ fieldName: "indexName";
4047
4045
  };
4048
4046
  };
4049
- indexName: ConvexTextBuilderInitial<""> & {
4047
+ updatedAt: ConvexNumberBuilderInitial<""> & {
4050
4048
  _: {
4051
4049
  notNull: true;
4052
4050
  };
@@ -4056,7 +4054,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
4056
4054
  };
4057
4055
  } & {
4058
4056
  _: {
4059
- fieldName: "indexName";
4057
+ fieldName: "updatedAt";
4060
4058
  };
4061
4059
  };
4062
4060
  keyHash: ConvexTextBuilderInitial<""> & {
@@ -4277,19 +4275,6 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
4277
4275
  fieldName: "cursor";
4278
4276
  };
4279
4277
  };
4280
- updatedAt: ConvexNumberBuilderInitial<""> & {
4281
- _: {
4282
- notNull: true;
4283
- };
4284
- } & {
4285
- _: {
4286
- tableName: "aggregate_state";
4287
- };
4288
- } & {
4289
- _: {
4290
- fieldName: "updatedAt";
4291
- };
4292
- };
4293
4278
  tableKey: ConvexTextBuilderInitial<""> & {
4294
4279
  _: {
4295
4280
  notNull: true;
@@ -4368,6 +4353,19 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
4368
4353
  fieldName: "startedAt";
4369
4354
  };
4370
4355
  };
4356
+ updatedAt: ConvexNumberBuilderInitial<""> & {
4357
+ _: {
4358
+ notNull: true;
4359
+ };
4360
+ } & {
4361
+ _: {
4362
+ tableName: "aggregate_state";
4363
+ };
4364
+ } & {
4365
+ _: {
4366
+ fieldName: "updatedAt";
4367
+ };
4368
+ };
4371
4369
  completedAt: ConvexNumberBuilderInitial<""> & {
4372
4370
  _: {
4373
4371
  tableName: "aggregate_state";
@@ -4409,25 +4407,25 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
4409
4407
  fieldName: "status";
4410
4408
  };
4411
4409
  };
4412
- direction: ConvexTextBuilderInitial<""> & {
4410
+ cursor: ConvexTextBuilderInitial<""> & {
4413
4411
  _: {
4414
4412
  tableName: "migration_state";
4415
4413
  };
4416
4414
  } & {
4417
4415
  _: {
4418
- fieldName: "direction";
4416
+ fieldName: "cursor";
4419
4417
  };
4420
4418
  };
4421
- cursor: ConvexTextBuilderInitial<""> & {
4419
+ direction: ConvexTextBuilderInitial<""> & {
4422
4420
  _: {
4423
4421
  tableName: "migration_state";
4424
4422
  };
4425
4423
  } & {
4426
4424
  _: {
4427
- fieldName: "cursor";
4425
+ fieldName: "direction";
4428
4426
  };
4429
4427
  };
4430
- updatedAt: ConvexNumberBuilderInitial<""> & {
4428
+ processed: ConvexNumberBuilderInitial<""> & {
4431
4429
  _: {
4432
4430
  notNull: true;
4433
4431
  };
@@ -4437,29 +4435,29 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
4437
4435
  };
4438
4436
  } & {
4439
4437
  _: {
4440
- fieldName: "updatedAt";
4438
+ fieldName: "processed";
4441
4439
  };
4442
4440
  };
4443
- processed: ConvexNumberBuilderInitial<""> & {
4444
- _: {
4445
- notNull: true;
4446
- };
4447
- } & {
4441
+ startedAt: ConvexNumberBuilderInitial<""> & {
4448
4442
  _: {
4449
4443
  tableName: "migration_state";
4450
4444
  };
4451
4445
  } & {
4452
4446
  _: {
4453
- fieldName: "processed";
4447
+ fieldName: "startedAt";
4454
4448
  };
4455
4449
  };
4456
- startedAt: ConvexNumberBuilderInitial<""> & {
4450
+ updatedAt: ConvexNumberBuilderInitial<""> & {
4451
+ _: {
4452
+ notNull: true;
4453
+ };
4454
+ } & {
4457
4455
  _: {
4458
4456
  tableName: "migration_state";
4459
4457
  };
4460
4458
  } & {
4461
4459
  _: {
4462
- fieldName: "startedAt";
4460
+ fieldName: "updatedAt";
4463
4461
  };
4464
4462
  };
4465
4463
  completedAt: ConvexNumberBuilderInitial<""> & {
@@ -4576,7 +4574,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
4576
4574
  fieldName: "direction";
4577
4575
  };
4578
4576
  };
4579
- updatedAt: ConvexNumberBuilderInitial<""> & {
4577
+ startedAt: ConvexNumberBuilderInitial<""> & {
4580
4578
  _: {
4581
4579
  notNull: true;
4582
4580
  };
@@ -4586,10 +4584,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
4586
4584
  };
4587
4585
  } & {
4588
4586
  _: {
4589
- fieldName: "updatedAt";
4587
+ fieldName: "startedAt";
4590
4588
  };
4591
4589
  };
4592
- startedAt: ConvexNumberBuilderInitial<""> & {
4590
+ updatedAt: ConvexNumberBuilderInitial<""> & {
4593
4591
  _: {
4594
4592
  notNull: true;
4595
4593
  };
@@ -4599,7 +4597,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
4599
4597
  };
4600
4598
  } & {
4601
4599
  _: {
4602
- fieldName: "startedAt";
4600
+ fieldName: "updatedAt";
4603
4601
  };
4604
4602
  };
4605
4603
  completedAt: ConvexNumberBuilderInitial<""> & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kitcn",
3
- "version": "0.15.9",
3
+ "version": "0.15.11",
4
4
  "description": "kitcn - React Query integration and CLI tools for Convex",
5
5
  "keywords": [
6
6
  "convex",
@@ -110,7 +110,7 @@ npx kitcn@latest init -t next --yes
110
110
  # New Expo app with the official create-expo-app shell + first local Convex bootstrap
111
111
  npx kitcn@latest init -t expo --yes
112
112
 
113
- # New TanStack Start app with the official shadcn Start shell + first local Convex bootstrap
113
+ # New TanStack Start app with the shadcn Start shell + first local Convex bootstrap
114
114
  npx kitcn@latest init -t start --yes
115
115
 
116
116
  # New Vite app with the React baseline + first local Convex bootstrap