kitcn 0.17.3 → 0.17.4
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/dist/aggregate/index.d.ts +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/{local-env-fAYvoOfl.mjs → local-env-DykABjCt.mjs} +44 -13
- package/dist/orm/index.d.ts +1 -1
- package/dist/orm/index.js +423 -190
- package/dist/watcher.mjs +1 -1
- package/dist/{where-clause-compiler-BgEc0GdS.d.ts → where-clause-compiler-BnVpjKn6.d.ts} +79 -33
- package/package.json +1 -1
package/dist/watcher.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as generateMeta, c as PARSE_SNAPSHOT_SUFFIX, i as resolveConfiguredBackend, n as withLocalCodegenEnv, o as getConvexConfig, r as loadCliConfig, s as logger } from "./local-env-
|
|
2
|
+
import { a as generateMeta, c as PARSE_SNAPSHOT_SUFFIX, i as resolveConfiguredBackend, n as withLocalCodegenEnv, o as getConvexConfig, r as loadCliConfig, s as logger } from "./local-env-DykABjCt.mjs";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
5
5
|
|
|
@@ -2275,6 +2275,11 @@ declare class ConvexDeleteBuilder<TTable extends ConvexTable<any>, TReturning ex
|
|
|
2275
2275
|
private scheduledDelayMs?;
|
|
2276
2276
|
private executionModeOverride?;
|
|
2277
2277
|
private paginateConfig?;
|
|
2278
|
+
private _returningCountLoader?;
|
|
2279
|
+
/**
|
|
2280
|
+
* One loader per statement: the table config, edge filter and aggregate-index
|
|
2281
|
+
* readiness memo are invariant across the affected rows.
|
|
2282
|
+
*/
|
|
2278
2283
|
private _loadReturningCount;
|
|
2279
2284
|
constructor(db: GenericDatabaseWriter<any>, table: TTable);
|
|
2280
2285
|
where(expression: FilterExpression$1<boolean>): ConvexDeleteBuilder<TTable, TReturning, TMode, true>;
|
|
@@ -2319,6 +2324,11 @@ declare class ConvexInsertBuilder<TTable extends ConvexTable<any>, TReturning ex
|
|
|
2319
2324
|
private returningFields?;
|
|
2320
2325
|
private conflictConfig?;
|
|
2321
2326
|
private allowFullScanFlag;
|
|
2327
|
+
private _returningCountLoader?;
|
|
2328
|
+
/**
|
|
2329
|
+
* One loader per statement: the table config, edge filter and aggregate-index
|
|
2330
|
+
* readiness memo are invariant across the affected rows.
|
|
2331
|
+
*/
|
|
2322
2332
|
private _loadReturningCount;
|
|
2323
2333
|
constructor(db: GenericDatabaseWriter<any>, table: TTable);
|
|
2324
2334
|
values(values: InsertValue<TTable> | InsertValue<TTable>[]): this;
|
|
@@ -2411,12 +2421,38 @@ declare class GelRelationalQuery<TSchema extends TablesRelationalConfig, TTableC
|
|
|
2411
2421
|
readonly result: TResult;
|
|
2412
2422
|
};
|
|
2413
2423
|
private allowFullScan;
|
|
2424
|
+
/**
|
|
2425
|
+
* Set synchronously by the first `execute()`. Later executions run on a fresh
|
|
2426
|
+
* instance instead, which is what keeps execution-scoped state from leaking
|
|
2427
|
+
* between two awaits of the same query object.
|
|
2428
|
+
*/
|
|
2429
|
+
private _executionClaimed;
|
|
2430
|
+
/**
|
|
2431
|
+
* Scoped to one execution, because `_executionClaimed` diverts every later
|
|
2432
|
+
* execution to its own instance. Within a run, every `_applyRlsSelectFilter`
|
|
2433
|
+
* call shares it, including the streaming sites that pass a single row at a
|
|
2434
|
+
* time — those would otherwise re-resolve the whole policy set per row.
|
|
2435
|
+
*
|
|
2436
|
+
* SECURITY: a resolved policy expression can embed database state that a
|
|
2437
|
+
* later write invalidates, so it must never outlive the execution that
|
|
2438
|
+
* resolved it.
|
|
2439
|
+
*/
|
|
2440
|
+
private readonly _rlsPolicyResolution;
|
|
2441
|
+
/**
|
|
2442
|
+
* Assigned in the constructor so callers that run many short-lived query
|
|
2443
|
+
* instances against the same tables (mutation `returning({ _count })`) can
|
|
2444
|
+
* share one readiness memo instead of re-probing per instance.
|
|
2445
|
+
*/
|
|
2414
2446
|
private readonly _countIndexReadinessByKey;
|
|
2415
|
-
|
|
2447
|
+
/**
|
|
2448
|
+
* Index readiness is a probe memo, not execution state, so `_forExecution`
|
|
2449
|
+
* hands it to the next run rather than re-probing.
|
|
2450
|
+
*/
|
|
2451
|
+
private _aggregateIndexReadinessByKey;
|
|
2416
2452
|
constructor(schema: TSchema, tableConfig: TTableConfig, edgeMetadata: EdgeMetadata[], db: GenericDatabaseReader<any>, config: DBQueryConfig<'one' | 'many', boolean, TSchema, TTableConfig>, mode: 'many' | 'first' | 'firstOrThrow' | 'count' | 'aggregate' | 'groupBy', _allEdges?: EdgeMetadata[] | undefined, // M6.5 Phase 2: All edges for nested loading
|
|
2417
2453
|
rls?: RlsContext | undefined, relationLoading?: {
|
|
2418
2454
|
concurrency?: number;
|
|
2419
|
-
} | undefined, vectorSearchProvider?: VectorSearchProvider | undefined, configuredIndex?: PredicateWhereIndexConfig<TTableConfig> | undefined);
|
|
2455
|
+
} | undefined, vectorSearchProvider?: VectorSearchProvider | undefined, configuredIndex?: PredicateWhereIndexConfig<TTableConfig> | undefined, countIndexReadiness?: Map<string, Promise<void>>);
|
|
2420
2456
|
private _usesSystemCreatedAtAlias;
|
|
2421
2457
|
private _assertNoLegacyPublicFieldName;
|
|
2422
2458
|
private _normalizePublicFieldName;
|
|
@@ -2564,6 +2600,11 @@ declare class GelRelationalQuery<TSchema extends TablesRelationalConfig, TTableC
|
|
|
2564
2600
|
private _coerceGroupByConfig;
|
|
2565
2601
|
private _buildAggregateMetricConfig;
|
|
2566
2602
|
private _executeGroupBy;
|
|
2603
|
+
/**
|
|
2604
|
+
* A second instance of the same query: identical configuration, its own
|
|
2605
|
+
* execution-scoped state, the same index-readiness memos.
|
|
2606
|
+
*/
|
|
2607
|
+
private _forExecution;
|
|
2567
2608
|
/**
|
|
2568
2609
|
* Execute the query and return results
|
|
2569
2610
|
* Phase 4 implementation with WhereClauseCompiler integration
|
|
@@ -2933,6 +2974,11 @@ declare class ConvexUpdateBuilder<TTable extends ConvexTable<any>, TReturning ex
|
|
|
2933
2974
|
private allowFullScanFlag;
|
|
2934
2975
|
private paginateConfig?;
|
|
2935
2976
|
private executionModeOverride?;
|
|
2977
|
+
private _returningCountLoader?;
|
|
2978
|
+
/**
|
|
2979
|
+
* One loader per statement: the table config, edge filter and aggregate-index
|
|
2980
|
+
* readiness memo are invariant across the affected rows.
|
|
2981
|
+
*/
|
|
2936
2982
|
private _loadReturningCount;
|
|
2937
2983
|
constructor(db: GenericDatabaseWriter<any>, table: TTable);
|
|
2938
2984
|
set(values: UpdateSet<TTable>): this;
|
|
@@ -4292,6 +4338,19 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4292
4338
|
readonly aggregate_state: ConvexTableWithColumns<{
|
|
4293
4339
|
name: "aggregate_state";
|
|
4294
4340
|
columns: {
|
|
4341
|
+
status: ConvexTextBuilderInitial<""> & {
|
|
4342
|
+
_: {
|
|
4343
|
+
notNull: true;
|
|
4344
|
+
};
|
|
4345
|
+
} & {
|
|
4346
|
+
_: {
|
|
4347
|
+
tableName: "aggregate_state";
|
|
4348
|
+
};
|
|
4349
|
+
} & {
|
|
4350
|
+
_: {
|
|
4351
|
+
fieldName: "status";
|
|
4352
|
+
};
|
|
4353
|
+
};
|
|
4295
4354
|
kind: ConvexTextBuilderInitial<""> & {
|
|
4296
4355
|
_: {
|
|
4297
4356
|
notNull: true;
|
|
@@ -4379,19 +4438,6 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4379
4438
|
fieldName: "metricDefinitionHash";
|
|
4380
4439
|
};
|
|
4381
4440
|
};
|
|
4382
|
-
status: ConvexTextBuilderInitial<""> & {
|
|
4383
|
-
_: {
|
|
4384
|
-
notNull: true;
|
|
4385
|
-
};
|
|
4386
|
-
} & {
|
|
4387
|
-
_: {
|
|
4388
|
-
tableName: "aggregate_state";
|
|
4389
|
-
};
|
|
4390
|
-
} & {
|
|
4391
|
-
_: {
|
|
4392
|
-
fieldName: "status";
|
|
4393
|
-
};
|
|
4394
|
-
};
|
|
4395
4441
|
processed: ConvexNumberBuilderInitial<""> & {
|
|
4396
4442
|
_: {
|
|
4397
4443
|
notNull: true;
|
|
@@ -4446,38 +4492,38 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4446
4492
|
readonly migration_state: ConvexTableWithColumns<{
|
|
4447
4493
|
name: "migration_state";
|
|
4448
4494
|
columns: {
|
|
4449
|
-
|
|
4495
|
+
status: ConvexTextBuilderInitial<""> & {
|
|
4496
|
+
_: {
|
|
4497
|
+
notNull: true;
|
|
4498
|
+
};
|
|
4499
|
+
} & {
|
|
4450
4500
|
_: {
|
|
4451
4501
|
tableName: "migration_state";
|
|
4452
4502
|
};
|
|
4453
4503
|
} & {
|
|
4454
4504
|
_: {
|
|
4455
|
-
fieldName: "
|
|
4505
|
+
fieldName: "status";
|
|
4456
4506
|
};
|
|
4457
4507
|
};
|
|
4458
|
-
|
|
4508
|
+
cursor: ConvexTextBuilderInitial<""> & {
|
|
4459
4509
|
_: {
|
|
4460
4510
|
tableName: "migration_state";
|
|
4461
4511
|
};
|
|
4462
4512
|
} & {
|
|
4463
4513
|
_: {
|
|
4464
|
-
fieldName: "
|
|
4514
|
+
fieldName: "cursor";
|
|
4465
4515
|
};
|
|
4466
4516
|
};
|
|
4467
|
-
|
|
4468
|
-
_: {
|
|
4469
|
-
notNull: true;
|
|
4470
|
-
};
|
|
4471
|
-
} & {
|
|
4517
|
+
direction: ConvexTextBuilderInitial<""> & {
|
|
4472
4518
|
_: {
|
|
4473
4519
|
tableName: "migration_state";
|
|
4474
4520
|
};
|
|
4475
4521
|
} & {
|
|
4476
4522
|
_: {
|
|
4477
|
-
fieldName: "
|
|
4523
|
+
fieldName: "direction";
|
|
4478
4524
|
};
|
|
4479
4525
|
};
|
|
4480
|
-
|
|
4526
|
+
updatedAt: ConvexNumberBuilderInitial<""> & {
|
|
4481
4527
|
_: {
|
|
4482
4528
|
notNull: true;
|
|
4483
4529
|
};
|
|
@@ -4487,7 +4533,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4487
4533
|
};
|
|
4488
4534
|
} & {
|
|
4489
4535
|
_: {
|
|
4490
|
-
fieldName: "
|
|
4536
|
+
fieldName: "updatedAt";
|
|
4491
4537
|
};
|
|
4492
4538
|
};
|
|
4493
4539
|
processed: ConvexNumberBuilderInitial<""> & {
|
|
@@ -4600,7 +4646,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4600
4646
|
readonly migration_run: ConvexTableWithColumns<{
|
|
4601
4647
|
name: "migration_run";
|
|
4602
4648
|
columns: {
|
|
4603
|
-
|
|
4649
|
+
status: ConvexTextBuilderInitial<""> & {
|
|
4604
4650
|
_: {
|
|
4605
4651
|
notNull: true;
|
|
4606
4652
|
};
|
|
@@ -4610,10 +4656,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4610
4656
|
};
|
|
4611
4657
|
} & {
|
|
4612
4658
|
_: {
|
|
4613
|
-
fieldName: "
|
|
4659
|
+
fieldName: "status";
|
|
4614
4660
|
};
|
|
4615
4661
|
};
|
|
4616
|
-
|
|
4662
|
+
direction: ConvexTextBuilderInitial<""> & {
|
|
4617
4663
|
_: {
|
|
4618
4664
|
notNull: true;
|
|
4619
4665
|
};
|
|
@@ -4623,10 +4669,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4623
4669
|
};
|
|
4624
4670
|
} & {
|
|
4625
4671
|
_: {
|
|
4626
|
-
fieldName: "
|
|
4672
|
+
fieldName: "direction";
|
|
4627
4673
|
};
|
|
4628
4674
|
};
|
|
4629
|
-
|
|
4675
|
+
updatedAt: ConvexNumberBuilderInitial<""> & {
|
|
4630
4676
|
_: {
|
|
4631
4677
|
notNull: true;
|
|
4632
4678
|
};
|
|
@@ -4636,7 +4682,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4636
4682
|
};
|
|
4637
4683
|
} & {
|
|
4638
4684
|
_: {
|
|
4639
|
-
fieldName: "
|
|
4685
|
+
fieldName: "updatedAt";
|
|
4640
4686
|
};
|
|
4641
4687
|
};
|
|
4642
4688
|
startedAt: ConvexNumberBuilderInitial<""> & {
|