kitcn 0.33.0 → 0.33.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # kitcn
2
2
 
3
+ ## 0.33.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#467](https://github.com/udecode/kitcn/pull/467) [`5794ed3`](https://github.com/udecode/kitcn/commit/5794ed381c0a3074e74585269eb7c24a030497cc) Thanks [@zbeyens](https://github.com/zbeyens)! - ## Patches
8
+
9
+ - Fix Next.js scaffolds to select and reconcile a compatible ESLint release.
10
+
11
+ ## 0.33.1
12
+
13
+ ### Patch Changes
14
+
15
+ - [#462](https://github.com/udecode/kitcn/pull/462) [`41eb956`](https://github.com/udecode/kitcn/commit/41eb9567ebea2ae0b6340624897815f54c51e0aa) Thanks [@zbeyens](https://github.com/zbeyens)! - Fix cRPC live pagination so reactive page splits preserve adjacent page
16
+ boundaries and invalid loaded cursors reset cleanly.
17
+
3
18
  ## 0.33.0
4
19
 
5
20
  ### Minor Changes
@@ -1,5 +1,5 @@
1
1
  import { Vn as ConvexTextBuilderInitial, Zt as ConvexTableWithColumns } from "../capabilities-Bxzoofl4.js";
2
- import { C as ConvexNumberBuilderInitial, E as ConvexIdBuilderInitial, N as ConvexCustomBuilderInitial } from "../where-clause-compiler-DrV6lQg0.js";
2
+ import { C as ConvexNumberBuilderInitial, E as ConvexIdBuilderInitial, N as ConvexCustomBuilderInitial } from "../where-clause-compiler-B0kyVGzW.js";
3
3
  import * as convex_values0 from "convex/values";
4
4
  import { GenericId, Infer, Value } from "convex/values";
5
5
  import { DocumentByName, GenericDataModel, GenericDatabaseReader, GenericDatabaseWriter, TableNamesInDataModel } from "convex/server";
@@ -1,2 +1,2 @@
1
- import { C as GenericAuthTriggerHandlers, S as GenericAuthTriggerChange, T as defineAuth, b as GenericAuthBeforeResult, i as getGeneratedAuthDisabledReason, n as GeneratedAuthDisabledReasonKind, r as createDisabledAuthRuntime, t as AuthRuntime, w as GenericAuthTriggers, x as GenericAuthDefinition, y as BetterAuthOptionsWithoutDatabase } from "../../generated-contract-disabled-PdNGvNYP.js";
1
+ import { C as GenericAuthTriggerHandlers, S as GenericAuthTriggerChange, T as defineAuth, b as GenericAuthBeforeResult, i as getGeneratedAuthDisabledReason, n as GeneratedAuthDisabledReasonKind, r as createDisabledAuthRuntime, t as AuthRuntime, w as GenericAuthTriggers, x as GenericAuthDefinition, y as BetterAuthOptionsWithoutDatabase } from "../../generated-contract-disabled-CTUQ9nxL.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-BkNjkDCk.js";
2
2
  import { t as GetAuth } from "../types-ex0-J-SC.js";
3
3
  import { t as GenericCtx } from "../context-utils-Cbv4r0AA.js";
4
- import { C as GenericAuthTriggerHandlers, S as GenericAuthTriggerChange, T as defineAuth, _ as updateManyHandler, a as AuthFunctions, b as GenericAuthBeforeResult, c as consumeOneHandler, d as createHandler, f as deleteManyHandler, g as incrementOneHandler, h as findOneHandler, i as getGeneratedAuthDisabledReason, l as countHandler, m as findManyHandler, n as GeneratedAuthDisabledReasonKind, o as Triggers, p as deleteOneHandler, r as createDisabledAuthRuntime, s as createClient, t as AuthRuntime, u as createApi, v as updateOneHandler, w as GenericAuthTriggers, x as GenericAuthDefinition, y as BetterAuthOptionsWithoutDatabase } from "../generated-contract-disabled-PdNGvNYP.js";
4
+ import { C as GenericAuthTriggerHandlers, S as GenericAuthTriggerChange, T as defineAuth, _ as updateManyHandler, a as AuthFunctions, b as GenericAuthBeforeResult, c as consumeOneHandler, d as createHandler, f as deleteManyHandler, g as incrementOneHandler, h as findOneHandler, i as getGeneratedAuthDisabledReason, l as countHandler, m as findManyHandler, n as GeneratedAuthDisabledReasonKind, o as Triggers, p as deleteOneHandler, r as createDisabledAuthRuntime, s as createClient, t as AuthRuntime, u as createApi, v as updateOneHandler, w as GenericAuthTriggers, x as GenericAuthDefinition, y as BetterAuthOptionsWithoutDatabase } from "../generated-contract-disabled-CTUQ9nxL.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";
@@ -109,28 +109,28 @@ type AdapterPaginationOptions = PaginationOptions & {
109
109
  };
110
110
  declare const adapterWhereValidator: convex_values0.VObject<{
111
111
  mode?: "sensitive" | "insensitive" | undefined;
112
+ operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
112
113
  connector?: "AND" | "OR" | undefined;
113
- operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
114
- field: string;
115
114
  value: string | number | boolean | string[] | number[] | null;
115
+ field: string;
116
116
  }, {
117
117
  connector: convex_values0.VUnion<"AND" | "OR" | undefined, [convex_values0.VLiteral<"AND", "required">, convex_values0.VLiteral<"OR", "required">], "optional", never>;
118
118
  field: convex_values0.VString<string, "required">;
119
119
  mode: convex_values0.VUnion<"sensitive" | "insensitive" | undefined, [convex_values0.VLiteral<"sensitive", "required">, convex_values0.VLiteral<"insensitive", "required">], "optional", never>;
120
- 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>;
120
+ 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>;
121
121
  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>;
122
- }, "required", "mode" | "connector" | "field" | "operator" | "value">;
122
+ }, "required", "mode" | "operator" | "value" | "field" | "connector">;
123
123
  declare const adapterArgsValidator: convex_values0.VObject<{
124
+ limit?: number | undefined;
124
125
  where?: {
125
126
  mode?: "sensitive" | "insensitive" | undefined;
127
+ operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
126
128
  connector?: "AND" | "OR" | undefined;
127
- operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
128
- field: string;
129
129
  value: string | number | boolean | string[] | number[] | null;
130
+ field: string;
130
131
  }[] | undefined;
131
- limit?: number | undefined;
132
- offset?: number | undefined;
133
132
  select?: string[] | undefined;
133
+ offset?: number | undefined;
134
134
  sortBy?: {
135
135
  field: string;
136
136
  direction: "asc" | "desc";
@@ -150,24 +150,24 @@ declare const adapterArgsValidator: convex_values0.VObject<{
150
150
  }, "optional", "field" | "direction">;
151
151
  where: convex_values0.VArray<{
152
152
  mode?: "sensitive" | "insensitive" | undefined;
153
+ operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
153
154
  connector?: "AND" | "OR" | undefined;
154
- operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
155
- field: string;
156
155
  value: string | number | boolean | string[] | number[] | null;
156
+ field: string;
157
157
  }[] | undefined, convex_values0.VObject<{
158
158
  mode?: "sensitive" | "insensitive" | undefined;
159
+ operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
159
160
  connector?: "AND" | "OR" | undefined;
160
- operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
161
- field: string;
162
161
  value: string | number | boolean | string[] | number[] | null;
162
+ field: string;
163
163
  }, {
164
164
  connector: convex_values0.VUnion<"AND" | "OR" | undefined, [convex_values0.VLiteral<"AND", "required">, convex_values0.VLiteral<"OR", "required">], "optional", never>;
165
165
  field: convex_values0.VString<string, "required">;
166
166
  mode: convex_values0.VUnion<"sensitive" | "insensitive" | undefined, [convex_values0.VLiteral<"sensitive", "required">, convex_values0.VLiteral<"insensitive", "required">], "optional", never>;
167
- 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>;
167
+ 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>;
168
168
  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>;
169
- }, "required", "mode" | "connector" | "field" | "operator" | "value">, "optional">;
170
- }, "required", "model" | "where" | "limit" | "offset" | "select" | "sortBy" | "sortBy.field" | "sortBy.direction">;
169
+ }, "required", "mode" | "operator" | "value" | "field" | "connector">, "optional">;
170
+ }, "required", "limit" | "where" | "model" | "select" | "offset" | "sortBy" | "sortBy.field" | "sortBy.direction">;
171
171
  declare const hasUniqueFields: (betterAuthSchema: BetterAuthDBSchema, model: string, input: Record<string, any>) => boolean;
172
172
  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>;
173
173
  declare const selectFields: <T extends TableNamesInDataModel<GenericDataModel>, D extends DocumentByName<GenericDataModel, T>>(doc: D | null, select?: string[]) => D | null;
@@ -1,4 +1,4 @@
1
- import { H as ConvexContext, W as LazyCaller } from "../../procedure-name-DPYyLiVS.js";
1
+ import { H as ConvexContext, W as LazyCaller } from "../../procedure-name-DRSOwAJY.js";
2
2
  import { t as GetTokenOptions } from "../../token-tlbNKQS0.js";
3
3
 
4
4
  //#region src/auth-nextjs/index.d.ts
@@ -1,4 +1,4 @@
1
- import { H as ConvexContext, W as LazyCaller } from "../../../procedure-name-DPYyLiVS.js";
1
+ import { H as ConvexContext, W as LazyCaller } from "../../../procedure-name-DRSOwAJY.js";
2
2
  import { t as GetTokenOptions } from "../../../token-tlbNKQS0.js";
3
3
  import { FunctionReference, FunctionReturnType, OptionalRestArgs } from "convex/server";
4
4
 
@@ -1716,10 +1716,12 @@ function inferProcedureNameFromCallsite() {
1716
1716
  */
1717
1717
  z$1.object({
1718
1718
  cursor: z$1.union([z$1.string(), z$1.null()]),
1719
+ endCursor: z$1.union([z$1.string(), z$1.null()]).optional(),
1719
1720
  limit: z$1.number()
1720
1721
  });
1721
1722
  z$1.object({
1722
1723
  cursor: z$1.union([z$1.string(), z$1.null()]).optional(),
1724
+ endCursor: z$1.union([z$1.string(), z$1.null()]).optional(),
1723
1725
  limit: z$1.number().optional()
1724
1726
  });
1725
1727
  /**
@@ -2120,8 +2122,8 @@ var QueryProcedureBuilder = class QueryProcedureBuilder extends ProcedureBuilder
2120
2122
  /**
2121
2123
  * Add pagination input (chainable before .query())
2122
2124
  *
2123
- * Creates flat { cursor, limit } input like tRPC and auto-wraps output.
2124
- * User accesses args.cursor and args.limit directly.
2125
+ * Creates flat { cursor, endCursor, limit } input like tRPC and auto-wraps
2126
+ * output. User accesses the pagination fields directly from args.
2125
2127
  *
2126
2128
  * @param opts.limit - Default/max items per page
2127
2129
  * @param opts.item - Zod schema for each item in the page array
@@ -2129,12 +2131,19 @@ var QueryProcedureBuilder = class QueryProcedureBuilder extends ProcedureBuilder
2129
2131
  paginated(opts) {
2130
2132
  const paginationSchemaWithDefault = z$1.object({
2131
2133
  cursor: z$1.union([z$1.string(), z$1.null()]).default(null),
2134
+ endCursor: z$1.union([z$1.string(), z$1.null()]).optional(),
2132
2135
  limit: z$1.number().default(opts.limit).transform((n) => Math.min(n, opts.limit))
2133
2136
  });
2134
2137
  const outputSchema = z$1.object({
2135
2138
  continueCursor: z$1.union([z$1.string(), z$1.null()]),
2136
2139
  isDone: z$1.boolean(),
2137
- page: z$1.array(opts.item)
2140
+ page: z$1.array(opts.item),
2141
+ pageStatus: z$1.union([
2142
+ z$1.literal("SplitRecommended"),
2143
+ z$1.literal("SplitRequired"),
2144
+ z$1.null()
2145
+ ]).optional(),
2146
+ splitCursor: z$1.union([z$1.string(), z$1.null()]).optional()
2138
2147
  });
2139
2148
  return new QueryProcedureBuilder({
2140
2149
  ...this._def,
package/dist/cli.mjs CHANGED
@@ -9267,13 +9267,42 @@ const INIT_NEXT_PACKAGE_JSON_DEPENDENCIES = {
9267
9267
  "@opentelemetry/api": SUPPORTED_DEPENDENCY_VERSIONS.opentelemetryApi.exact,
9268
9268
  superjson: "2.2.6"
9269
9269
  };
9270
+ const INIT_NEXT_ESLINT_VERSION = "9.39.5";
9271
+ const MIN_ESLINT_9_NEXT_CONFIG_MAJOR = 15;
9272
+ const EXTERNALLY_MANAGED_VERSION_RE = /^(?:catalog|workspace):/;
9273
+ const SIMPLE_VERSION_MAJOR_RE = /^(?:[v=~^]\s*)?(\d+)(?:\.(?:\d+|x|\*)){0,2}(?:-[0-9A-Za-z.-]+)?$/i;
9270
9274
  const INIT_NEXT_PACKAGE_JSON_DEV_DEPENDENCIES = { "@types/bun": "latest" };
9271
- const getInitNextPackageJsonDevDependencies = (options) => ({
9275
+ const resolveSimpleVersionMajor = (version) => {
9276
+ const major = version?.trim().match(SIMPLE_VERSION_MAJOR_RE)?.[1];
9277
+ return major === void 0 ? void 0 : Number(major);
9278
+ };
9279
+ const resolveInitNextEslintVersionFromPackageJson = (packageJson) => {
9280
+ const eslintConfigNextVersion = packageJson.devDependencies?.["eslint-config-next"] ?? packageJson.dependencies?.["eslint-config-next"];
9281
+ if (eslintConfigNextVersion === void 0) return;
9282
+ const configMajor = resolveSimpleVersionMajor(eslintConfigNextVersion);
9283
+ if (configMajor !== void 0) return configMajor >= MIN_ESLINT_9_NEXT_CONFIG_MAJOR ? INIT_NEXT_ESLINT_VERSION : void 0;
9284
+ const nextVersion = packageJson.dependencies?.next ?? packageJson.devDependencies?.next;
9285
+ const nextMajor = resolveSimpleVersionMajor(nextVersion);
9286
+ if (nextMajor !== void 0) return nextMajor >= MIN_ESLINT_9_NEXT_CONFIG_MAJOR ? INIT_NEXT_ESLINT_VERSION : void 0;
9287
+ const eslintVersion = packageJson.devDependencies?.eslint ?? packageJson.dependencies?.eslint;
9288
+ const eslintMajor = resolveSimpleVersionMajor(eslintVersion);
9289
+ if (eslintMajor !== void 0 && eslintMajor < 9) return;
9290
+ if ([
9291
+ eslintConfigNextVersion,
9292
+ nextVersion,
9293
+ eslintVersion
9294
+ ].every((version) => version !== void 0 && EXTERNALLY_MANAGED_VERSION_RE.test(version))) return;
9295
+ return INIT_NEXT_ESLINT_VERSION;
9296
+ };
9297
+ const getInitNextPackageJsonDevDependencies = (options, eslintVersion) => ({
9272
9298
  ...INIT_NEXT_PACKAGE_JSON_DEV_DEPENDENCIES,
9299
+ ...eslintVersion ? { eslint: eslintVersion } : {},
9273
9300
  ...options.backend === "concave" ? { "@concavejs/cli": SUPPORTED_DEPENDENCY_VERSIONS.concaveCli.exact } : {}
9274
9301
  });
9275
9302
  function renderInitNextPackageJsonTemplate(source, options = {}) {
9276
9303
  const existing = source ? JSON.parse(source) : {};
9304
+ const eslintVersion = resolveInitNextEslintVersionFromPackageJson(existing);
9305
+ const existingDependencies = eslintVersion ? Object.fromEntries(Object.entries(existing.dependencies ?? {}).filter(([packageName]) => packageName !== "eslint")) : existing.dependencies;
9277
9306
  const nextScripts = {
9278
9307
  ...existing.scripts,
9279
9308
  ...INIT_NEXT_PACKAGE_JSON_SCRIPTS
@@ -9286,12 +9315,12 @@ function renderInitNextPackageJsonTemplate(source, options = {}) {
9286
9315
  ...existing,
9287
9316
  scripts: nextScripts,
9288
9317
  dependencies: {
9289
- ...existing.dependencies,
9318
+ ...existingDependencies,
9290
9319
  ...INIT_NEXT_PACKAGE_JSON_DEPENDENCIES
9291
9320
  },
9292
9321
  devDependencies: {
9293
9322
  ...existing.devDependencies,
9294
- ...getInitNextPackageJsonDevDependencies(options)
9323
+ ...getInitNextPackageJsonDevDependencies(options, eslintVersion)
9295
9324
  }
9296
9325
  }, null, 2)}\n`;
9297
9326
  }
@@ -11840,11 +11869,15 @@ function buildDependencyInstallPlan(projectDir, dependencies) {
11840
11869
  ...pkg.dependencies ?? {},
11841
11870
  ...pkg.devDependencies ?? {}
11842
11871
  };
11843
- const missing = dependencies.filter((dependency) => !(dependency.packageName in existing));
11844
- if (missing.length === 0) return null;
11872
+ const missing = dependencies.filter((dependency) => !dependency.installFromManifest && !(dependency.packageName in existing));
11873
+ const requiresReconcile = dependencies.some((dependency) => dependency.requiredVersion !== void 0 && (dependency.installFromManifest || existing[dependency.packageName] !== void 0) && existing[dependency.packageName] !== dependency.requiredVersion || dependency.requiredSection === "devDependencies" && pkg.dependencies?.[dependency.packageName] !== void 0 || dependency.requiredSection === "dependencies" && pkg.devDependencies?.[dependency.packageName] !== void 0);
11874
+ if (missing.length === 0 && !requiresReconcile) return null;
11845
11875
  const packageManager = detectPackageManager(projectDir);
11846
11876
  const missingSpecs = missing.map((dependency) => dependency.installSpec);
11847
- const installCommand = resolveDependencyInstallCommand(packageManager, missingSpecs);
11877
+ const installCommand = missingSpecs.length > 0 ? resolveDependencyInstallCommand(packageManager, missingSpecs) : {
11878
+ command: packageManager,
11879
+ args: ["install"]
11880
+ };
11848
11881
  return {
11849
11882
  packageManager,
11850
11883
  command: installCommand.command,
@@ -11954,6 +11987,7 @@ function buildInitializationPlan(params) {
11954
11987
  skipReason: "Baseline http.ts is already bootstrapped."
11955
11988
  }));
11956
11989
  files.push(...templateFiles);
11990
+ const nextEslintVersion = projectContext?.mode === "next-app" ? resolveInitNextEslintVersionFromPackageJson(JSON.parse(fs.readFileSync(resolve(process.cwd(), "package.json"), "utf8"))) : void 0;
11957
11991
  const dependencyPackages = projectContext ? [
11958
11992
  ...BASELINE_DEPENDENCY_INSTALL_SPECS.map((installSpec) => ({
11959
11993
  installSpec,
@@ -11966,7 +12000,14 @@ function buildInitializationPlan(params) {
11966
12000
  ...INIT_TEMPLATE_DEPENDENCY_INSTALL_SPECS.map((installSpec) => ({
11967
12001
  installSpec,
11968
12002
  packageName: getPackageNameFromInstallSpec(installSpec)
11969
- }))
12003
+ })),
12004
+ ...nextEslintVersion ? [{
12005
+ installFromManifest: true,
12006
+ installSpec: `eslint@${nextEslintVersion}`,
12007
+ packageName: "eslint",
12008
+ requiredSection: "devDependencies",
12009
+ requiredVersion: nextEslintVersion
12010
+ }] : []
11970
12011
  ] : [...BASELINE_DEPENDENCY_INSTALL_SPECS.map((installSpec) => ({
11971
12012
  installSpec,
11972
12013
  packageName: getPackageNameFromInstallSpec(installSpec)
@@ -1,5 +1,5 @@
1
1
  import { B as dateWireCodec, F as DATE_CODEC_TAG, G as identityTransformer, H as defaultCRPCTransformer, I as DataTransformer, L as DataTransformerOptions, P as CombinedDataTransformer, R as WireCodec, U as encodeWire, V as decodeWire, W as getTransformer, a as HttpErrorCode, c as HttpQueryKey, d as HttpRouteMap, f as InferHttpInput, g as isHttpClientError, h as buildHttpQueryPrefixKey, i as HttpClientFromRouter, l as HttpQueryPrefixKey, m as buildHttpQueryKey, n as HttpClient, o as HttpMutationKey, p as InferHttpOutput, r as HttpClientError, s as HttpProcedureCall, t as HTTP_DEFAULT_STALE_TIME, u as HttpRouteInfo, z as createTaggedTransformer } from "../http-types-BhhPZtwa.js";
2
- import { A as HttpInputArgs, C as ReservedMutationOptions, D as VanillaMutation, E as VanillaAction, F as replaceUrlParam, M as RESERVED_KEYS, N as buildSearchParams, O as HttpClientOptions, P as executeHttpRequest, S as ReservedInfiniteQueryOptions, T as StaticQueryOptsParam, _ as IsPaginated, a as BaseInfiniteQueryOptsParam, b as PaginatedFnMeta, c as ConvexMutationKey, d as ConvexQueryMeta, f as EmptyObject, g as InfiniteQueryInput, h as FnMeta, i as BaseConvexQueryOptions, j as HttpProxyBaseOptions, k as HttpFormValue, l as ConvexQueryHookOptions, m as FUNC_REF_SYMBOL, n as BaseConvexActionOptions, o as ConvexActionKey, p as ExtractPaginatedItem, r as BaseConvexInfiniteQueryOptions, s as ConvexInfiniteQueryMeta, t as AuthType, u as ConvexQueryKey, v as Meta, w as ReservedQueryOptions, x as PaginationOpts, y as MutationVariables } from "../types-BXpu7xIU.js";
2
+ import { A as HttpInputArgs, C as ReservedMutationOptions, D as VanillaMutation, E as VanillaAction, F as replaceUrlParam, M as RESERVED_KEYS, N as buildSearchParams, O as HttpClientOptions, P as executeHttpRequest, S as ReservedInfiniteQueryOptions, T as StaticQueryOptsParam, _ as IsPaginated, a as BaseInfiniteQueryOptsParam, b as PaginatedFnMeta, c as ConvexMutationKey, d as ConvexQueryMeta, f as EmptyObject, g as InfiniteQueryInput, h as FnMeta, i as BaseConvexQueryOptions, j as HttpProxyBaseOptions, k as HttpFormValue, l as ConvexQueryHookOptions, m as FUNC_REF_SYMBOL, n as BaseConvexActionOptions, o as ConvexActionKey, p as ExtractPaginatedItem, r as BaseConvexInfiniteQueryOptions, s as ConvexInfiniteQueryMeta, t as AuthType, u as ConvexQueryKey, v as Meta, w as ReservedQueryOptions, x as PaginationOpts, y as MutationVariables } from "../types-C7JkpfeY.js";
3
3
  import { FunctionArgs, FunctionReference } from "convex/server";
4
4
 
5
5
  //#region src/crpc/auth-error.d.ts
@@ -199,20 +199,20 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
199
199
  count: convex_server0.RegisteredQuery<"internal", {
200
200
  where?: {
201
201
  mode?: "sensitive" | "insensitive" | undefined;
202
+ operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
202
203
  connector?: "AND" | "OR" | undefined;
203
- operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
204
- field: string;
205
204
  value: string | number | boolean | string[] | number[] | null;
205
+ field: string;
206
206
  }[] | undefined;
207
207
  model: string;
208
208
  }, Promise<number | null>>;
209
209
  consumeOne: convex_server0.RegisteredMutation<"internal", {
210
210
  input: {
211
211
  where?: {
212
+ operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
212
213
  connector?: "AND" | "OR" | undefined;
213
- operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
214
- field: string;
215
214
  value: string | number | boolean | string[] | number[] | null;
215
+ field: string;
216
216
  }[] | undefined;
217
217
  model: string;
218
218
  } | {
@@ -235,26 +235,26 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
235
235
  };
236
236
  }, Promise<any>>;
237
237
  deleteMany: convex_server0.RegisteredMutation<"internal", {
238
+ paginationOpts: {
239
+ id?: number;
240
+ endCursor?: string | null;
241
+ maximumRowsRead?: number;
242
+ maximumBytesRead?: number;
243
+ numItems: number;
244
+ cursor: string | null;
245
+ };
238
246
  input: {
239
247
  where?: {
248
+ operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
240
249
  connector?: "AND" | "OR" | undefined;
241
- operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
242
- field: string;
243
250
  value: string | number | boolean | string[] | number[] | null;
251
+ field: string;
244
252
  }[] | undefined;
245
253
  model: string;
246
254
  } | {
247
255
  where?: any[] | undefined;
248
256
  model: string;
249
257
  };
250
- paginationOpts: {
251
- id?: number;
252
- endCursor?: string | null;
253
- maximumRowsRead?: number;
254
- maximumBytesRead?: number;
255
- numItems: number;
256
- cursor: string | null;
257
- };
258
258
  }, Promise<{
259
259
  count: number;
260
260
  ids: any[];
@@ -266,10 +266,10 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
266
266
  deleteOne: convex_server0.RegisteredMutation<"internal", {
267
267
  input: {
268
268
  where?: {
269
+ operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
269
270
  connector?: "AND" | "OR" | undefined;
270
- operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
271
- field: string;
272
271
  value: string | number | boolean | string[] | number[] | null;
272
+ field: string;
273
273
  }[] | undefined;
274
274
  model: string;
275
275
  } | {
@@ -278,21 +278,20 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
278
278
  };
279
279
  }, Promise<Record<string, unknown> | undefined>>;
280
280
  findMany: convex_server0.RegisteredQuery<"internal", {
281
+ limit?: number | undefined;
281
282
  join?: any;
282
283
  where?: {
283
284
  mode?: "sensitive" | "insensitive" | undefined;
285
+ operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
284
286
  connector?: "AND" | "OR" | undefined;
285
- operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
286
- field: string;
287
287
  value: string | number | boolean | string[] | number[] | null;
288
+ field: string;
288
289
  }[] | undefined;
289
- limit?: number | undefined;
290
290
  offset?: number | undefined;
291
291
  sortBy?: {
292
292
  field: string;
293
293
  direction: "asc" | "desc";
294
294
  } | undefined;
295
- model: string;
296
295
  paginationOpts: {
297
296
  id?: number;
298
297
  endCursor?: string | null;
@@ -301,15 +300,16 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
301
300
  numItems: number;
302
301
  cursor: string | null;
303
302
  };
303
+ model: string;
304
304
  }, Promise<PaginationResult<convex_server0.GenericDocument>>>;
305
305
  findOne: convex_server0.RegisteredQuery<"internal", {
306
306
  join?: any;
307
307
  where?: {
308
308
  mode?: "sensitive" | "insensitive" | undefined;
309
+ operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
309
310
  connector?: "AND" | "OR" | undefined;
310
- operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
311
- field: string;
312
311
  value: string | number | boolean | string[] | number[] | null;
312
+ field: string;
313
313
  }[] | undefined;
314
314
  select?: string[] | undefined;
315
315
  model: string;
@@ -319,10 +319,10 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
319
319
  input: {
320
320
  where?: {
321
321
  mode?: "sensitive" | "insensitive" | undefined;
322
+ operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
322
323
  connector?: "AND" | "OR" | undefined;
323
- operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
324
- field: string;
325
324
  value: string | number | boolean | string[] | number[] | null;
325
+ field: string;
326
326
  }[] | undefined;
327
327
  set?: Record<string, any> | undefined;
328
328
  model: string;
@@ -331,31 +331,31 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
331
331
  }, Promise<any>>;
332
332
  rotateKeys: convex_server0.RegisteredAction<"internal", {}, Promise<unknown>>;
333
333
  updateMany: convex_server0.RegisteredMutation<"internal", {
334
+ paginationOpts: {
335
+ id?: number;
336
+ endCursor?: string | null;
337
+ maximumRowsRead?: number;
338
+ maximumBytesRead?: number;
339
+ numItems: number;
340
+ cursor: string | null;
341
+ };
334
342
  input: {
335
343
  where?: {
344
+ operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
336
345
  connector?: "AND" | "OR" | undefined;
337
- operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
338
- field: string;
339
346
  value: string | number | boolean | string[] | number[] | null;
347
+ field: string;
340
348
  }[] | undefined;
341
- model: string;
342
349
  update: {
343
350
  [x: string]: unknown;
344
351
  [x: number]: unknown;
345
352
  [x: symbol]: unknown;
346
353
  };
354
+ model: string;
347
355
  } | {
348
356
  where?: any[] | undefined;
349
- model: string;
350
357
  update: any;
351
- };
352
- paginationOpts: {
353
- id?: number;
354
- endCursor?: string | null;
355
- maximumRowsRead?: number;
356
- maximumBytesRead?: number;
357
- numItems: number;
358
- cursor: string | null;
358
+ model: string;
359
359
  };
360
360
  }, Promise<{
361
361
  count: number;
@@ -368,21 +368,21 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
368
368
  updateOne: convex_server0.RegisteredMutation<"internal", {
369
369
  input: {
370
370
  where?: {
371
+ operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
371
372
  connector?: "AND" | "OR" | undefined;
372
- operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
373
- field: string;
374
373
  value: string | number | boolean | string[] | number[] | null;
374
+ field: string;
375
375
  }[] | undefined;
376
- model: string;
377
376
  update: {
378
377
  [x: string]: unknown;
379
378
  [x: number]: unknown;
380
379
  [x: symbol]: unknown;
381
380
  };
381
+ model: string;
382
382
  } | {
383
383
  where?: any[] | undefined;
384
- model: string;
385
384
  update: any;
385
+ model: string;
386
386
  };
387
387
  }, Promise<any>>;
388
388
  };
@@ -1,4 +1,4 @@
1
- import { a as createMiddlewareFactory } from "./builder-Cyd5nCxZ.js";
1
+ import { a as createMiddlewareFactory } from "./builder-DDYTlmTB.js";
2
2
 
3
3
  //#region src/plugins/middleware.ts
4
4
  const PLUGIN_CONFIG_RESOLVERS = Symbol.for("kitcn:PluginConfigResolvers");
@@ -1,5 +1,5 @@
1
1
  import { $n as TableName, $t as OrmLifecycleChange, An as ConvexCheckBuilder, At as UpdateSet, Bn as ConvexTextBuilder, Br as IsPrimaryKey, Bt as RelationsBuilderColumnBase, C as MigrationStep, Cn as ConvexVectorIndexConfig, Cr as not, Ct as OrderByClause, D as defineMigration, Dn as searchIndex, Dr as startsWith, Dt as ReturningAll, E as buildMigrationPlan, En as rankIndex, Er as or, Et as PredicateWhereIndexConfig, Fn as ConvexUniqueConstraintBuilderOn, Fr as ColumnBuilderTypeConfig, Ft as ExtractTablesFromSchema, Gn as Columns, Gt as TablesRelationalConfig, H as RlsMode, Hn as text, Hr as NotNull, In as ConvexUniqueConstraintConfig, Ir as ColumnBuilderWithTableName, It as ExtractTablesWithRelations, Jn as OrmSchemaExtensionTables, Jt as ConvexDeletionBuilder, Kt as defineRelations, Ln as check, Lr as ColumnDataType, Lt as ManyConfig, M as DatabaseWithQuery, Mn as ConvexForeignKeyBuilder, Mr as ColumnBuilder, Mt as VectorSearchProvider, N as OrmReader$1, Nn as ConvexForeignKeyConfig, Nr as ColumnBuilderBaseConfig, Nt as unsetToken, O as defineMigrationSet, On as uniqueIndex, Ot as ReturningResult, P as OrmWriter$1, Pn as ConvexUniqueConstraintBuilder, Pr as ColumnBuilderRuntimeConfig, Qn as OrmSchemaTriggers, Qt as DiscriminatorBuilderConfig, Rn as foreignKey, Rr as DrizzleEntity, Rt as OneConfig, S as MigrationStateMap, Sn as ConvexVectorIndexBuilderOn, Sr as ne, St as MutationRunMode, T as MigrationWriteMode, Tn as index, Tr as notInArray, Tt as PaginatedResult, U as EdgeMetadata, V as RlsContext, Vn as ConvexTextBuilderInitial, Vr as IsUnique, Vt as RelationsBuilderColumnConfig, W as extractRelationsConfig, Wn as Brand, Wt as TableRelationalConfig, Xn as OrmSchemaExtensions, Xt as ConvexTable, Yt as ConvexDeletionConfig, Zn as OrmSchemaRelations, Zt as ConvexTableWithColumns, _ as MigrationManifestEntry, _n as ConvexRankIndexBuilderOn, _r as isNotNull, _t as MutationExecutionMode, an as RlsPolicy, ar as UnaryExpression, at as BuildRelationResult, b as MigrationRunStatus, bn as ConvexSearchIndexConfig, br as lt, bt as MutationResult, cn as rlsPolicy, cr as contains, ct as DBQueryConfig, d as MigrationAppliedState, dn as rlsRole, dr as fieldRef, dt as InferInsertModel, en as OrmLifecycleOperation, er as BinaryExpression, f as MigrationDefinition, fn as ConvexAggregateIndexBuilder, fr as gt, ft as InferModelFromColumns, g as MigrationDriftIssue, gn as ConvexRankIndexBuilder, gr as isFieldReference, gt as MutationExecuteResult, h as MigrationDocContext, hn as ConvexIndexBuilderOn, hr as inArray, ht as MutationExecuteConfig, i as OrmMigrationCapability, in as discriminator, ir as LogicalExpression, it as BuildQueryResult, j as DatabaseWithMutations, jn as ConvexCheckConfig, jr as AnyColumn, jt as VectorQueryConfig, k as detectMigrationDrift, kn as vectorIndex, kr as SystemFields, kt as ReturningSelection, ln as RlsRole, lr as endsWith, lt as FilterOperators, m as MigrationDoc, mn as ConvexIndexBuilder, mr as ilike, mt as InsertValue, n as OrmCapabilities, nn as convexTable, nr as FieldReference, nt as AggregateFieldValue, on as RlsPolicyConfig, or as and, ot as CountConfig, p as MigrationDirection, pn as ConvexAggregateIndexBuilderOn, pr as gte, pt as InferSelectModel, qt as defineRelationsPart, r as OrmCapability, rn as deletion, rr as FilterExpression, rt as AggregateResult, sn as RlsPolicyToOption, sr as between, st as CountResult, t as OrmAggregateCapability, tn as TableConfig, tr as ExpressionVisitor, tt as AggregateConfig, un as RlsRoleConfig, ur as eq, ut as GetColumnData, v as MigrationMigrateOne, vn as ConvexSearchIndexBuilder, vr as isNull, vt as MutationPaginateConfig, w as MigrationTableName, wn as aggregateIndex, wr as notBetween, wt as OrderDirection, x as MigrationSet, xn as ConvexVectorIndexBuilder, xr as lte, xt as MutationReturning, y as MigrationPlan, yn as ConvexSearchIndexBuilderOn, yr as like, yt as MutationPaginatedResult, zn as unique, zr as HasDefault, zt as RelationsBuilder } from "../capabilities-Bxzoofl4.js";
2
- import { $ as OrmClientWithApi$1, A as ConvexDateMode, B as ConvexBytesBuilderInitial, C as ConvexNumberBuilderInitial, D as id, E as ConvexIdBuilderInitial, F as custom, G as ConvexBigIntBuilder, H as ConvexBooleanBuilder, I as json, J as CreateOrmOptions, K as ConvexBigIntBuilderInitial, L as objectOf, M as ConvexCustomBuilder, N as ConvexCustomBuilderInitial, O as ConvexDateBuilder, P as arrayOf, Q as OrmClientBase$1, R as unionOf, S as ConvexNumberBuilder, St as defineTriggers, T as ConvexIdBuilder, U as ConvexBooleanBuilderInitial, V as bytes, W as boolean, X as GenericOrmCtx$1, Y as GenericOrm$1, Z as OrmApiResult, _ as ConvexTimestampMode, _t as OrmBeforeResult, a as requireSchemaRelations, at as ScheduledMutationBatchArgs, b as ConvexTextEnumBuilderInitial, bt as OrmTriggerContext, c as TableConfigResult, ct as scheduledDeleteFactory, d as OrmNotFoundError, et as OrmFunctions, f as ConvexVectorBuilder, g as ConvexTimestampBuilderInitial, gt as defineSchemaExtension, h as ConvexTimestampBuilder, ht as SchemaExtension, i as getSchemaTriggers, it as createOrm, j as date, k as ConvexDateBuilderInitial, l as getTableColumns, m as vector, n as defineSchema, nt as OrmWriterCtx, o as asc, ot as scheduledMutationBatchFactory, p as ConvexVectorBuilderInitial, q as bigint, r as getSchemaRelations, rt as ResolveOrmSchema, s as desc, st as ScheduledDeleteArgs, t as WhereClauseResult, tt as OrmReaderCtx, u as getTableConfig, v as timestamp, vt as OrmTableTriggers, w as integer, x as textEnum, xt as OrmTriggers, y as ConvexTextEnumBuilder, yt as OrmTriggerChange, z as ConvexBytesBuilder } from "../where-clause-compiler-DrV6lQg0.js";
2
+ import { $ as OrmClientWithApi$1, A as ConvexDateMode, B as ConvexBytesBuilderInitial, C as ConvexNumberBuilderInitial, D as id, E as ConvexIdBuilderInitial, F as custom, G as ConvexBigIntBuilder, H as ConvexBooleanBuilder, I as json, J as CreateOrmOptions, K as ConvexBigIntBuilderInitial, L as objectOf, M as ConvexCustomBuilder, N as ConvexCustomBuilderInitial, O as ConvexDateBuilder, P as arrayOf, Q as OrmClientBase$1, R as unionOf, S as ConvexNumberBuilder, St as defineTriggers, T as ConvexIdBuilder, U as ConvexBooleanBuilderInitial, V as bytes, W as boolean, X as GenericOrmCtx$1, Y as GenericOrm$1, Z as OrmApiResult, _ as ConvexTimestampMode, _t as OrmBeforeResult, a as requireSchemaRelations, at as ScheduledMutationBatchArgs, b as ConvexTextEnumBuilderInitial, bt as OrmTriggerContext, c as TableConfigResult, ct as scheduledDeleteFactory, d as OrmNotFoundError, et as OrmFunctions, f as ConvexVectorBuilder, g as ConvexTimestampBuilderInitial, gt as defineSchemaExtension, h as ConvexTimestampBuilder, ht as SchemaExtension, i as getSchemaTriggers, it as createOrm, j as date, k as ConvexDateBuilderInitial, l as getTableColumns, m as vector, n as defineSchema, nt as OrmWriterCtx, o as asc, ot as scheduledMutationBatchFactory, p as ConvexVectorBuilderInitial, q as bigint, r as getSchemaRelations, rt as ResolveOrmSchema, s as desc, st as ScheduledDeleteArgs, t as WhereClauseResult, tt as OrmReaderCtx, u as getTableConfig, v as timestamp, vt as OrmTableTriggers, w as integer, x as textEnum, xt as OrmTriggers, y as ConvexTextEnumBuilder, yt as OrmTriggerChange, z as ConvexBytesBuilder } from "../where-clause-compiler-B0kyVGzW.js";
3
3
  import { i as pretendRequired, n as deprecated, r as pretend } from "../validators-0I-Ik1EN.js";
4
4
  import { a as QueryCtxWithPreferredOrmQueryTable, i as QueryCtxWithOrmQueryTable, n as LookupByIdResultByCtx, o as getByIdWithOrmQueryFallback, r as QueryCtxWithOptionalOrmQueryTable, t as DocByCtx } from "../query-context-BkNjkDCk.js";
5
5
  import { DefineSchemaOptions, GenericDatabaseReader, GenericDatabaseWriter, GenericSchema, SchemaDefinition } from "convex/server";
@@ -1,3 +1,3 @@
1
1
  import { C as MigrationStep, D as defineMigration, E as buildMigrationPlan, O as defineMigrationSet, S as MigrationStateMap, T as MigrationWriteMode, _ as MigrationManifestEntry, a as MAX_STATUS_RUN_LIMIT, b as MigrationRunStatus, c as MigrationRunChunkArgs, d as MigrationAppliedState, f as MigrationDefinition, g as MigrationDriftIssue, h as MigrationDocContext, k as detectMigrationDrift, l as MigrationStatusArgs, m as MigrationDoc, o as MigrationCancelArgs, p as MigrationDirection, s as MigrationRunArgs, u as createMigrationHandlers, v as MigrationMigrateOne, w as MigrationTableName, x as MigrationSet, y as MigrationPlan } from "../../capabilities-Bxzoofl4.js";
2
- import { Ct as migrationCapability, dt as MIGRATION_STORAGE_TABLE_NAMES, ft as injectMigrationStorageTables, lt as MIGRATION_RUN_TABLE, mt as migrationStorageTables, pt as migrationExtension, ut as MIGRATION_STATE_TABLE } from "../../where-clause-compiler-DrV6lQg0.js";
2
+ import { Ct as migrationCapability, dt as MIGRATION_STORAGE_TABLE_NAMES, ft as injectMigrationStorageTables, lt as MIGRATION_RUN_TABLE, mt as migrationStorageTables, pt as migrationExtension, ut as MIGRATION_STATE_TABLE } from "../../where-clause-compiler-B0kyVGzW.js";
3
3
  export { MAX_STATUS_RUN_LIMIT, MIGRATION_RUN_TABLE, MIGRATION_STATE_TABLE, MIGRATION_STORAGE_TABLE_NAMES, type MigrationAppliedState, type MigrationCancelArgs, type MigrationDefinition, type MigrationDirection, type MigrationDoc, type MigrationDocContext, type MigrationDriftIssue, type MigrationManifestEntry, type MigrationMigrateOne, type MigrationPlan, type MigrationRunArgs, type MigrationRunChunkArgs, type MigrationRunStatus, type MigrationSet, type MigrationStateMap, type MigrationStatusArgs, type MigrationStep, type MigrationTableName, type MigrationWriteMode, buildMigrationPlan, createMigrationHandlers, defineMigration, defineMigrationSet, detectMigrationDrift, injectMigrationStorageTables, migrationCapability, migrationExtension, migrationStorageTables };
@@ -1,3 +1,3 @@
1
- import { n as resolvePluginOptions, t as definePlugin } from "../middleware-D61Nm-iB.js";
1
+ import { n as resolvePluginOptions, t as definePlugin } from "../middleware-LvZov-hA.js";
2
2
 
3
3
  export { definePlugin, resolvePluginOptions };
@@ -1,5 +1,5 @@
1
1
  import { i as decodeWire, o as encodeWire } from "./transformer-C8lVwHNT.js";
2
- import { _ as CRPCError } from "./builder-Cyd5nCxZ.js";
2
+ import { _ as CRPCError } from "./builder-DDYTlmTB.js";
3
3
  import * as z$1 from "zod";
4
4
 
5
5
  //#region src/server/env.ts
@@ -653,13 +653,15 @@ declare function createHttpProcedureBuilder<TCtx, TMeta extends ProcedureMeta>(c
653
653
  */
654
654
  declare const paginatedSchemaForTypes: z$1.ZodObject<{
655
655
  cursor: z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodNull]>;
656
+ endCursor: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodNull]>>;
656
657
  limit: z$1.ZodNumber;
657
658
  }, z$1.core.$strip>;
658
659
  /** Paginated schema type - both cursor and limit are required after .paginated() */
659
660
  type PaginatedInputSchema = typeof paginatedSchemaForTypes;
660
- /** Paginated schema type for external callers - both fields are optional due defaults. */
661
+ /** Paginated schema type for external callers before defaults are applied. */
661
662
  declare const paginatedSchemaForClientTypes: z$1.ZodObject<{
662
663
  cursor: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodNull]>>;
664
+ endCursor: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodNull]>>;
663
665
  limit: z$1.ZodOptional<z$1.ZodNumber>;
664
666
  }, z$1.core.$strip>;
665
667
  type PaginatedClientInputSchema = typeof paginatedSchemaForClientTypes;
@@ -811,8 +813,8 @@ declare class QueryProcedureBuilder<TBaseCtx, TContext, TContextOverrides extend
811
813
  /**
812
814
  * Add pagination input (chainable before .query())
813
815
  *
814
- * Creates flat { cursor, limit } input like tRPC and auto-wraps output.
815
- * User accesses args.cursor and args.limit directly.
816
+ * Creates flat { cursor, endCursor, limit } input like tRPC and auto-wraps
817
+ * output. User accesses the pagination fields directly from args.
816
818
  *
817
819
  * @param opts.limit - Default/max items per page
818
820
  * @param opts.item - Zod schema for each item in the page array
@@ -824,6 +826,8 @@ declare class QueryProcedureBuilder<TBaseCtx, TContext, TContextOverrides extend
824
826
  continueCursor: z$1.ZodUnion<[z$1.ZodString, z$1.ZodNull]>;
825
827
  isDone: z$1.ZodBoolean;
826
828
  page: z$1.ZodArray<TItem>;
829
+ pageStatus: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodLiteral<'SplitRecommended'>, z$1.ZodLiteral<'SplitRequired'>, z$1.ZodNull]>>;
830
+ splitCursor: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodNull]>>;
827
831
  }>, TMeta>;
828
832
  /** Define output schema */
829
833
  output<TNewOutput extends z$1.ZodTypeAny>(schema: TNewOutput): QueryProcedureBuilder<TBaseCtx, TContext, TContextOverrides, TInput, TClientInput, TNewOutput, TMeta>;
@@ -1,6 +1,6 @@
1
1
  import { u as requireMutationCtx } from "../api-entry-Buvjl9hn.js";
2
- import { _ as CRPCError } from "../builder-Cyd5nCxZ.js";
3
- import { t as definePlugin } from "../middleware-D61Nm-iB.js";
2
+ import { _ as CRPCError } from "../builder-DDYTlmTB.js";
3
+ import { t as definePlugin } from "../middleware-LvZov-hA.js";
4
4
  import { v } from "convex/values";
5
5
  import { mutationGeneric, queryGeneric } from "convex/server";
6
6