@ai-matrx/records 0.81.2 → 0.81.3

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.
@@ -9260,8 +9260,8 @@ interface DrillFinding {
9260
9260
  * The records behind a DEFINER definition's numbers: a registry relation carrying the fact's column
9261
9261
  * names (e.g. `bucket`), read by the door definer with the SAME filter compiler and the SAME lane
9262
9262
  * rule as the number, for a window (required), and never past the number's `as_of` (rows created
9263
- * after it are not listed). The number and its records are EQUAL AS OF THE COUNT; a value that
9264
- * changes on a counted row afterwards (a cost that lands late) is SAID by the page (`settling`).
9263
+ * after it are not listed). The number and its records are the SAME counted rows, equal as of the
9264
+ * count (`as_of`); a value that changes afterwards reaches both at the next count.
9265
9265
  *
9266
9266
  * An INVOKER definition may declare records too (lane DRILL-GAPS): they are its own rows (`fact` is
9267
9267
  * the definition's own fact), read as the person through the table's row security, among the columns
@@ -9358,25 +9358,9 @@ interface DrillRowsPage {
9358
9358
  as_of: string | null;
9359
9359
  /**
9360
9360
  * A definer definition's records, first page only: every Measure that adds up (sum, count, ratio)
9361
- * summed over the SAME filter — what these records add up to NOW (the ledger as it stands).
9361
+ * summed over the SAME filter — what these records add up to, which is the number they open.
9362
9362
  */
9363
9363
  measures?: Record<string, number | string | null>;
9364
- /**
9365
- * First page only: the NUMBER's own sums for the same filter, as counted at `as_of` (the summary).
9366
- * The number and its records are equal as of the count; a cost that lands on a counted row after
9367
- * it makes `measures` differ from `counted`, and the page then carries `settling` and says so.
9368
- */
9369
- counted?: Record<string, number | string | null>;
9370
- /**
9371
- * Present only when the records and the number differ: per Measure, what was counted, what the
9372
- * ledger holds now, and the difference — with `says` in words ("$1.23 more has landed since the
9373
- * count at 06:40 UTC. …"). The next recount (every 10 minutes) brings them back equal.
9374
- */
9375
- settling?: Record<string, {
9376
- counted: number | string | null;
9377
- now: number | string | null;
9378
- difference: number;
9379
- }>;
9380
9364
  }
9381
9365
  /**
9382
9366
  * A DECLARED drill definition (a `*.drill.ts` file): an override of one standard table (its key
@@ -9260,8 +9260,8 @@ interface DrillFinding {
9260
9260
  * The records behind a DEFINER definition's numbers: a registry relation carrying the fact's column
9261
9261
  * names (e.g. `bucket`), read by the door definer with the SAME filter compiler and the SAME lane
9262
9262
  * rule as the number, for a window (required), and never past the number's `as_of` (rows created
9263
- * after it are not listed). The number and its records are EQUAL AS OF THE COUNT; a value that
9264
- * changes on a counted row afterwards (a cost that lands late) is SAID by the page (`settling`).
9263
+ * after it are not listed). The number and its records are the SAME counted rows, equal as of the
9264
+ * count (`as_of`); a value that changes afterwards reaches both at the next count.
9265
9265
  *
9266
9266
  * An INVOKER definition may declare records too (lane DRILL-GAPS): they are its own rows (`fact` is
9267
9267
  * the definition's own fact), read as the person through the table's row security, among the columns
@@ -9358,25 +9358,9 @@ interface DrillRowsPage {
9358
9358
  as_of: string | null;
9359
9359
  /**
9360
9360
  * A definer definition's records, first page only: every Measure that adds up (sum, count, ratio)
9361
- * summed over the SAME filter — what these records add up to NOW (the ledger as it stands).
9361
+ * summed over the SAME filter — what these records add up to, which is the number they open.
9362
9362
  */
9363
9363
  measures?: Record<string, number | string | null>;
9364
- /**
9365
- * First page only: the NUMBER's own sums for the same filter, as counted at `as_of` (the summary).
9366
- * The number and its records are equal as of the count; a cost that lands on a counted row after
9367
- * it makes `measures` differ from `counted`, and the page then carries `settling` and says so.
9368
- */
9369
- counted?: Record<string, number | string | null>;
9370
- /**
9371
- * Present only when the records and the number differ: per Measure, what was counted, what the
9372
- * ledger holds now, and the difference — with `says` in words ("$1.23 more has landed since the
9373
- * count at 06:40 UTC. …"). The next recount (every 10 minutes) brings them back equal.
9374
- */
9375
- settling?: Record<string, {
9376
- counted: number | string | null;
9377
- now: number | string | null;
9378
- difference: number;
9379
- }>;
9380
9364
  }
9381
9365
  /**
9382
9366
  * A DECLARED drill definition (a `*.drill.ts` file): an override of one standard table (its key
@@ -7928,9 +7928,9 @@ function useAsync(run, key, live) {
7928
7928
  entry.run = run;
7929
7929
  entry.client = client;
7930
7930
  const seed = useSeedStore();
7931
- if (seed && entry.snapshot.data === null && !entry.snapshot.error && !entry.started) {
7931
+ if (seed) {
7932
7932
  const outcome = use(seed.run(`${identityOf(client)}|${key}`, run, client.config));
7933
- if (outcome.seeded) seedEntry(entry, outcome.data, outcome.stale);
7933
+ if (outcome.seeded && entry.snapshot.data === null && !entry.snapshot.error) seedEntry(entry, outcome.data, outcome.stale);
7934
7934
  }
7935
7935
  const snapshot = useSyncExternalStore(entry.subscribe, entry.getSnapshot, entry.getSnapshot);
7936
7936
  useEffect3(() => {