@prometheus-ags/entity-graph-core 4.2.0 → 4.4.0

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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { S as SortSpec, F as FilterSpec, E as EntityType, G as GraphStore$1, a as EntityId, b as SyncOrigin, Q as QueryKey, u as useGraphStore, c as EntitySnapshot, d as EntitySyncMetadata, g as graphStore } from './graph-QfI6o5eV.js';
2
- export { C as CompletenessMode, e as EMPTY_ENTITY_STATE, f as EMPTY_IDS, h as EMPTY_LIST_STATE, i as EMPTY_SYNC_METADATA, j as EntityError, k as EntityErrorOptions, l as EntityState, m as FetchedEntityBatch, n as FetchedListProjection, o as FetchedListTarget, p as FilterClause, q as FilterGroup, r as FilterOperator, s as GraphState, I as IngestFetchedListOptions, L as ListResultMeta, t as ListState, v as SortClause, w as SortDirection, T as TerminalError, x as TransientError, V as ViewDescriptor, y as createGraphStore, z as flattenClauses, A as hasCustomPredicates, B as toEntityError, D as toGraphQLVariables, H as toRestParams, J as toSQLClauses } from './graph-QfI6o5eV.js';
1
+ import { S as SortSpec, F as FilterSpec, E as EntityType, G as GraphStore$1, a as EntityId, b as SyncOrigin, Q as QueryKey, u as useGraphStore, c as EntitySnapshot, d as EntitySyncMetadata, g as graphStore } from './graph-BNIJRUzI.js';
2
+ export { C as CompletenessMode, e as EMPTY_ENTITY_STATE, f as EMPTY_IDS, h as EMPTY_LIST_STATE, i as EMPTY_SYNC_METADATA, j as EntityError, k as EntityErrorOptions, l as EntityState, m as FetchedEntityBatch, n as FetchedListProjection, o as FetchedListTarget, p as FilterClause, q as FilterGroup, r as FilterOperator, s as GraphState, I as IngestFetchedListOptions, L as ListResultMeta, t as ListState, v as SortClause, w as SortDirection, T as TerminalError, x as TransientError, V as ViewDescriptor, y as createGraphStore, z as flattenClauses, A as hasCustomPredicates, B as toEntityError, D as toGraphQLVariables, H as toRestParams, J as toSQLClauses } from './graph-BNIJRUzI.js';
3
3
  import * as zustand_vanilla from 'zustand/vanilla';
4
4
 
5
5
  /**
@@ -563,9 +563,156 @@ type GraphActionEvent = {
563
563
  type: "settled";
564
564
  record: GraphActionRecord$1;
565
565
  };
566
+ /**
567
+ * Open a transaction whose writes apply immediately (each op is one store
568
+ * write) and can be rolled back. Opening it is O(1): the baseline is a set of
569
+ * references to the current immutable graph slots, not a copy, so its cost does
570
+ * not grow with the graph. For many writes with a single notification use
571
+ * `batchGraphWrites` (it can be called inside a transaction or an action).
572
+ */
566
573
  declare function createGraphTransaction(storeApi?: GraphStore$1): GraphTransaction;
567
574
  declare function createGraphAction<TInput, TResult>(opts: GraphActionOptions<TInput, TResult>): (input: TInput) => Promise<TResult>;
568
575
 
576
+ /** Write handle passed to a `batchGraphWrites` callback. Every method returns the handle for chaining. */
577
+ interface GraphBatch {
578
+ upsertEntity(type: EntityType, id: EntityId, data: Record<string, unknown>): GraphBatch;
579
+ upsertEntities(type: EntityType, entries: ReadonlyArray<{
580
+ id: EntityId;
581
+ data: Record<string, unknown>;
582
+ }>): GraphBatch;
583
+ replaceEntity(type: EntityType, id: EntityId, data: Record<string, unknown>): GraphBatch;
584
+ /** Remove the canonical entity, its patches, fetch state and sync metadata (not its list memberships). */
585
+ removeEntity(type: EntityType, id: EntityId): GraphBatch;
586
+ patchEntity(type: EntityType, id: EntityId, patch: Record<string, unknown>): GraphBatch;
587
+ unpatchEntity(type: EntityType, id: EntityId, keys: readonly string[]): GraphBatch;
588
+ clearPatch(type: EntityType, id: EntityId): GraphBatch;
589
+ setEntitySyncMetadata(type: EntityType, id: EntityId, metadata: Partial<EntitySyncMetadata>): GraphBatch;
590
+ insertIdInList(key: QueryKey, id: EntityId, position: "start" | "end" | number): GraphBatch;
591
+ removeIdFromAllLists(type: EntityType, id: EntityId): GraphBatch;
592
+ /** Set a list's ordered ids (deduplicated) without changing its fetch or pagination metadata. */
593
+ setListIds(key: QueryKey, ids: readonly EntityId[], entityType?: EntityType): GraphBatch;
594
+ /** Read canonical data merged with patches, including writes made earlier in this batch. */
595
+ readEntity<T = Record<string, unknown>>(type: EntityType, id: EntityId): T | null;
596
+ }
597
+ /** One serialisable graph write. */
598
+ type GraphChange = {
599
+ op: "upsert";
600
+ type: EntityType;
601
+ id: EntityId;
602
+ data: Record<string, unknown>;
603
+ } | {
604
+ op: "replace";
605
+ type: EntityType;
606
+ id: EntityId;
607
+ data: Record<string, unknown>;
608
+ } | {
609
+ op: "remove";
610
+ type: EntityType;
611
+ id: EntityId;
612
+ } | {
613
+ op: "patch";
614
+ type: EntityType;
615
+ id: EntityId;
616
+ patch: Record<string, unknown>;
617
+ } | {
618
+ op: "unpatch";
619
+ type: EntityType;
620
+ id: EntityId;
621
+ keys: string[];
622
+ } | {
623
+ op: "clearPatch";
624
+ type: EntityType;
625
+ id: EntityId;
626
+ } | {
627
+ op: "syncMetadata";
628
+ type: EntityType;
629
+ id: EntityId;
630
+ metadata: Partial<EntitySyncMetadata>;
631
+ } | {
632
+ op: "insertId";
633
+ key: QueryKey;
634
+ id: EntityId;
635
+ position: "start" | "end" | number;
636
+ } | {
637
+ op: "removeIdFromAllLists";
638
+ type: EntityType;
639
+ id: EntityId;
640
+ } | {
641
+ op: "setListIds";
642
+ key: QueryKey;
643
+ ids: EntityId[];
644
+ entityType?: EntityType;
645
+ };
646
+ /**
647
+ * Apply every write made by `fn` atomically with a single store publication.
648
+ *
649
+ * Use the `batch` handle for all writes inside `fn`, and keep `fn`
650
+ * synchronous. A store write made around the handle while the batch is open
651
+ * (a store action, a transaction op) would be overwritten when the batch
652
+ * publishes, so it makes the batch throw and publish nothing; an async `fn`
653
+ * throws too. A nested `batchGraphWrites` on the same store joins the outer
654
+ * batch, so atomicity is that of the outermost batch.
655
+ *
656
+ * @returns whatever `fn` returns.
657
+ */
658
+ declare function batchGraphWrites<T>(fn: (batch: GraphBatch) => T, store?: GraphStore$1): T;
659
+ /** Apply a serialisable change set in order as one atomic batch (one notification). */
660
+ declare function applyGraphChanges(changes: readonly GraphChange[], store?: GraphStore$1): void;
661
+
662
+ /**
663
+ * Render-only live layer: fast-changing, ephemeral field values (streaming
664
+ * text, cursors, partial tool arguments) held beside the graph.
665
+ *
666
+ * Live values are NOT graph writes: they do not publish to graph subscribers,
667
+ * are not persisted by `persistGraphToStorage`, and do not appear in devtools
668
+ * snapshots or time travel. Subscribers of one entity are notified per write,
669
+ * and `read()` returns the durable entity merged with its live fields (a stable
670
+ * reference until either side changes). `commit()` makes the live values
671
+ * durable with one graph write and clears them; `discard()` drops them.
672
+ *
673
+ * Typical streaming use: `append` every token, render from `read`, and
674
+ * `commit` at message boundaries or on a checkpoint cadence.
675
+ */
676
+
677
+ interface LiveLayerOptions {
678
+ /** Graph the live values overlay and commit into (default: the process graph). */
679
+ store?: GraphStore$1;
680
+ }
681
+ interface LiveLayer {
682
+ /** Merge ephemeral field values for one entity. */
683
+ set(type: EntityType, id: EntityId, values: Record<string, unknown>): void;
684
+ /**
685
+ * Append a chunk to a string field. Starts from the current live value, else
686
+ * the durable value when it is a string, else the empty string.
687
+ */
688
+ append(type: EntityType, id: EntityId, field: string, chunk: string): void;
689
+ /** The live fields of one entity, or `undefined` when none are held. */
690
+ get(type: EntityType, id: EntityId): Readonly<Record<string, unknown>> | undefined;
691
+ /** Durable entity (canonical + patches) overlaid with live fields; `null` when neither exists. */
692
+ read<T = Record<string, unknown>>(type: EntityType, id: EntityId): T | null;
693
+ /** Listen to live writes and durable graph changes for one entity. Returns an unsubscribe function. */
694
+ subscribe(type: EntityType, id: EntityId, listener: () => void): () => void;
695
+ /** Write the entity's live fields (or only `fields`) to the graph in one write and clear them. */
696
+ commit(type: EntityType, id: EntityId, options?: {
697
+ fields?: readonly string[];
698
+ }): void;
699
+ /** Commit every entity's live fields in one graph publication. */
700
+ commitAll(): void;
701
+ /** Drop live fields (all, or only `fields`) without touching the graph. */
702
+ discard(type: EntityType, id: EntityId, fields?: readonly string[]): void;
703
+ }
704
+ /** Create a live layer over a graph store. */
705
+ declare function createLiveLayer(options?: LiveLayerOptions): LiveLayer;
706
+
707
+ /**
708
+ * Explicitly enable (`true`) or disable (`false`) devtools event emission at
709
+ * runtime; `undefined` restores environment detection. Has no effect when the
710
+ * build-time flag is `false`, because the code is no longer in the bundle.
711
+ */
712
+ declare function setGraphDevtoolsEmission(enabled: boolean | undefined): void;
713
+ /** True when graph transactions currently emit devtools events. */
714
+ declare function isGraphDevtoolsEmissionEnabled(): boolean;
715
+
569
716
  interface GraphEffectEvent<T> {
570
717
  key: string;
571
718
  value: T;
@@ -1321,6 +1468,8 @@ declare function readRelations(type: EntityType, entity: Record<string, unknown>
1321
1468
  * directly. It is small, dependency-free, and fully unit-tested.
1322
1469
  *
1323
1470
  * Immutability: every op returns a NEW document; the input is never mutated.
1471
+ * `add`/`replace` values are copied, so the result shares no objects with the
1472
+ * caller's operations (a store that freezes the result cannot freeze them).
1324
1473
  *
1325
1474
  * Supported ops: add, replace, remove, move, copy, test.
1326
1475
  * Pointers follow RFC-6901 (`/a/b/0`), including the `-` array-append token and
@@ -1360,8 +1509,26 @@ declare function applyJsonPatch<T = unknown>(doc: T, ops: readonly JsonPatchOp[]
1360
1509
  * constant)". This keeps the bridge transport-agnostic — it does not depend on
1361
1510
  * `@ag-ui/client` and takes plain event objects, so `@ag-ui/*` stays an OPTIONAL
1362
1511
  * peer (use it for typed events on the consumer side if desired).
1363
- */
1364
-
1512
+ *
1513
+ * Lossless since 4.4.0:
1514
+ * - The complete agent state document (plain fields included) is stored as the
1515
+ * `AgUiState` entity (`readAgUiState`), and deltas apply to it, so scalars
1516
+ * such as `phase` and root-pointer mappings survive.
1517
+ * - Each collection mapping's order is kept as an ordered list
1518
+ * (`agUiListKey(mapping)`), so `move` and positional `add` are represented.
1519
+ * - Items that leave a mapped slice (`remove`, `replace`, a smaller snapshot)
1520
+ * are removed from the graph and from every list. Only ids present in the
1521
+ * previous agent state at that pointer are removed; entities written by
1522
+ * anything else are never touched.
1523
+ * - One snapshot or delta is one graph publication.
1524
+ * - The caller's event objects are copied, never stored, so they are never
1525
+ * frozen by the store and can still be mutated (A2UI data models do this).
1526
+ * - An `eventId` makes re-delivery idempotent: an id already applied to the
1527
+ * document is skipped, and the record survives persistence and hydration.
1528
+ */
1529
+
1530
+ /** Entity type of the stored agent state documents (one per `stateId`). */
1531
+ declare const AGUI_STATE_ENTITY_TYPE = "AgUiState";
1365
1532
  /** AG-UI STATE_SNAPSHOT event (minimal shape — no @ag-ui dependency). */
1366
1533
  interface AgUiStateSnapshotEvent {
1367
1534
  type?: "STATE_SNAPSHOT" | string;
@@ -1378,7 +1545,8 @@ interface AgUiStateMapping {
1378
1545
  entityType: string;
1379
1546
  /**
1380
1547
  * JSON-Pointer prefix into the agent state where this entity (or collection)
1381
- * lives. `"/order"` → a single entity; `"/orders"` → a collection keyed by id.
1548
+ * lives. `"/order"` → a single entity; `"/orders"` → a collection keyed by id;
1549
+ * `""` → the whole state as one entity.
1382
1550
  */
1383
1551
  pointer: string;
1384
1552
  /** Whether `pointer` addresses one object or a collection (array/record). */
@@ -1395,14 +1563,34 @@ interface AgUiStateMapping {
1395
1563
  * (full overwrite). Snapshots typically replace; deltas typically upsert.
1396
1564
  */
1397
1565
  write?: "upsert" | "replace";
1566
+ /** List key holding a collection's order (default `agUiListKey(mapping)`). */
1567
+ listKey?: string;
1398
1568
  }
1399
1569
  interface ApplyAgUiOptions {
1400
1570
  mappings: AgUiStateMapping[];
1401
- }
1402
- /**
1403
- * Apply an AG-UI STATE_SNAPSHOT to the graph. Each mapped slice is written as an
1404
- * entity. Snapshots default to `replace` semantics when the mapping does not
1405
- * specify otherwise is left to the mapping's `write` field (default upsert).
1571
+ /** Graph to write into (default: the process graph). */
1572
+ store?: GraphStore$1;
1573
+ /** Which stored agent state document to apply to (default `"default"`). */
1574
+ stateId?: string;
1575
+ /** Identity of this event (SSE id, sequence number). Re-applying an id already applied is a no-op. */
1576
+ eventId?: string;
1577
+ }
1578
+ /** Outcome of applying one AG-UI state event. */
1579
+ interface AgUiApplyResult {
1580
+ /** False when the event was skipped because its `eventId` was already applied. */
1581
+ applied: boolean;
1582
+ /** The agent state after the event (read-only: it is the stored, frozen document). */
1583
+ state: Record<string, unknown> | null;
1584
+ }
1585
+ /** Default list key holding the order of a collection mapping. */
1586
+ declare function agUiListKey(mapping: AgUiStateMapping, stateId?: string): string;
1587
+ /** The stored agent state document, or `null` before the first snapshot/delta. Read-only. */
1588
+ declare function readAgUiState(stateId?: string, store?: GraphStore$1): Record<string, unknown> | null;
1589
+ /**
1590
+ * Apply an AG-UI STATE_SNAPSHOT to the graph: store the whole document, write
1591
+ * each mapped slice as entities, record collection order, and remove items the
1592
+ * previous document had at a mapped pointer but this one does not. Writes use
1593
+ * each mapping's `write` mode (default `upsert`).
1406
1594
  *
1407
1595
  * @example
1408
1596
  * ```ts
@@ -1412,18 +1600,20 @@ interface ApplyAgUiOptions {
1412
1600
  * ]});
1413
1601
  * ```
1414
1602
  */
1415
- declare function applyAgUiSnapshot(event: AgUiStateSnapshotEvent, options: ApplyAgUiOptions): void;
1603
+ declare function applyAgUiSnapshot(event: AgUiStateSnapshotEvent, options: ApplyAgUiOptions): AgUiApplyResult;
1416
1604
  /**
1417
1605
  * Apply an AG-UI STATE_DELTA (RFC-6902 JSON Patch) to the graph.
1418
1606
  *
1419
- * The delta is applied against a reconstructed agent-state view assembled from
1420
- * the current graph entities (per the mappings), then the resulting slices are
1421
- * re-projected back into the graph. This lets path-based deltas target nested
1422
- * entity fields without the caller tracking the full agent state themselves.
1607
+ * The delta applies to, in order of preference: `currentState` when given, the
1608
+ * stored agent state document, or (for graphs written before 4.4.0) a state
1609
+ * view reconstructed from the mapped entities. The result is stored and
1610
+ * re-projected exactly as a snapshot is, so removals and order are applied.
1611
+ * A reconstructed base never causes removals: it may contain entities the
1612
+ * agent never wrote.
1423
1613
  */
1424
1614
  declare function applyAgUiDelta(event: AgUiStateDeltaEvent, options: ApplyAgUiOptions,
1425
- /** Current agent-state view; if omitted, reconstructed from the graph mappings. */
1426
- currentState?: Record<string, unknown>): void;
1615
+ /** Current agent-state view; if omitted, the stored document (or a reconstruction) is used. */
1616
+ currentState?: Record<string, unknown>): AgUiApplyResult;
1427
1617
 
1428
1618
  /**
1429
1619
  * adapters/types.ts
@@ -2546,4 +2736,4 @@ declare function getFacetedMinMaxValues<TData>(rowModel: RowModel<TData>, column
2546
2736
  */
2547
2737
  declare function getFacetedRowModel<TData>(preFilteredRowModel: RowModel<TData>, columnId: string, allFilteredRowModel: RowModel<TData>): RowModel<TData>;
2548
2738
 
2549
- export { type AccessorFn, type AdapterStatus, type AgUiStateDeltaEvent, type AgUiStateMapping, type AgUiStateSnapshotEvent, type AggregationFn, type ApplyAgUiOptions, type BelongsToRelation, type CascadeContext, type Cell, type CellContext, type CellRenderer, type ChangeEvent, type ChangeOp, type ChangeOperation, type ChangeSet, type ChannelConfig, type CheckpointedWrite, type CheckpointingPersistenceAdapter, type Column, type ColumnDef, type ColumnFiltersState, type ColumnMeta, type ColumnOrderState, type ColumnPinningState, type ColumnSizingInfoState, type ColumnSizingState, type ColumnVisibilityState, type CreateFlintAdapterOptions, type CreatePGlitePersistenceAdapterOptions, type CreateTauriSqlPersistenceAdapterOptions, type DevtoolsEvent, type DevtoolsEventBus, type DevtoolsEventBusOptions, type DevtoolsSourceFn, type ElectricAdapterOptions, type ElectricTableConfig, type EngineOptions, type EntityChange, EntityId, type EntityJsonSchemaConfig, type EntityQueryOptions, type EntitySchema, EntitySnapshot, EntitySyncMetadata, type EntityTransport, EntityType, type ExpandedState, type FilterFn, FilterSpec, type FlintCheckpointStore, type FlintClientLike, type FlintEntityEvent, type FlintEntityQuery, type FlintEntityRecord, type GetEntityJsonSchemaOptions, type GraphActionEvent, type GraphActionOptions, type GraphActionRecord$1 as GraphActionRecord, type GraphEffectEvent, type GraphEffectHandle, type GraphEffectOptions, type GraphIncludeMap, type GraphIncludeRelation, type GraphPersistenceAdapter, type GraphQueryOptions, type GraphSnapshotExportOptions, type GraphSnapshotPayload, type GraphSnapshotWithSchemasOptions, GraphStore$1 as GraphStore, type GraphSyncStatus, type GraphSyncStatusStore, type GraphToolContext, type GraphTransaction, type GroupingState, type HasManyRelation, type Header, type HeaderContext, type HeaderGroup, type HeaderRenderer, IncrementalView, type IncrementalViewOptions, type JsonPatchOp, type JsonSchemaObject, type ListFetchParams, type ListQuery, type ListQueryOptions, type ListResponse, type ListResult, type LocalFirstGraphRuntime, type LoroModuleLoader, type MakeRestTransportOptions, type ManagerOptions, type ManyToManyRelation, type MergeContext, type MergeStrategy, type PGlitePersistenceClient, type PaginationState, type ColumnDef as PureColumnDef, type ColumnMeta as PureColumnMeta, QueryKey, type RealtimeAdapter, RealtimeManager, type RegisterEntityFromSqlOptions, type RegisteredStore, type RelationDescriptor, type ReplayRetryPolicy, type ReplicaCheckpoint, type ResumeDecision, type ResumeRejection, type Row, type RowModel, type RowSelectionState, type RuntimeScope, type SchemaGraphToolContext, SortSpec, type SortingFn, type SortingState, type StartLocalFirstGraphOptions, type SubscriptionConfig, type SupabaseAdapterOptions, type SupabaseLike, type SupabaseQueryBuilderLike, type SurrealCheckpointStore, type SurrealLike, type SurrealLiveAction, type SurrealLiveAdapterOptions, type SurrealTableConfig, type SyncAdapter, SyncOrigin, type TableInstance, type TableOptions, type TableState, type TauriSqlClient, type TenantClaim, type TenantScopedAdapterOptions, type TenantScopedTableConfig, type TimeTravelSnapshot, type TimeTravelState, type UnsubscribeFn, type Updater, type ViewMode, type WebSocketAdapterOptions, __resetActiveGraphStore, __resetEntityTransports, __resetStoreRegistry, applyAgUiDelta, applyAgUiSnapshot, applyJsonPatch, applyView, attachGlobalListeners, buildTenantWhere, cascadeInvalidation, checkCompleteness, collectDirtyPaths, compareEntities, configureEngine, configureTimeTravel, createConvexAdapter, createDevtoolsEventBus, createElectricAdapter, createFlintAdapter, createGraphAction, createGraphEffect, createGraphQLSubscriptionAdapter, createGraphSyncStatusStore, createGraphTool, createGraphTransaction, createLoroMergeStrategy, createPGlitePersistenceAdapter, createRow, createRuntimeScope, createSchemaGraphTool, createSupabaseRealtimeAdapter, createSurrealLiveAdapter, createTauriSqlPersistenceAdapter, createTenantScopedElectricAdapter, createWebSocketAdapter, dedupe, escapeHtml, evaluateResume, exportGraphSnapshot, exportGraphSnapshotWithSchemas, fetchEntity, fetchList, findInsertionIndex, getActiveSubscriberCount, getCoreRowModel, getRealtimeManager as getElectricRealtimeManager, getEngineOptions, getEntityJsonSchema, getEntityTransport, getExpandedRowModel, getFacetedMinMaxValues, getFacetedRowModel, getFacetedUniqueValues, getFilteredRowModel, getGraphSyncStatus, getGroupedRowModel, getMergeStrategy, getPaginatedRowModel, getRealtimeManager, getRegisteredEntityTypes, getRegisteredStores, getSchema, getSelectedRowModel, getSortedRowModel, getTimeTravelState, getValueAtPath, graphStore, graphSyncStatusStore, hasMergeStrategy, humanizeFieldName, hydrateGraphFromStorage, inferSchemaFieldType, lwwStrategy, makeRestTransport, matchesFilter, matchesSearch, parseCreateTable, persistGraphToStorage, prepareGraphStoreScope, publishFlintMutation, queryOnce, readRelations, recordGraphSnapshot, registerEntityFromSql, registerEntityJsonSchema, registerEntityTransport, registerMergeStrategy, registerRuntimeSchema, registerSchema, registerStore, registerSubscriber, registryKey, renderMarkdownToHtml, replayActionWithRetry, resetRealtimeManager, resolveActiveGraphStore, restoreGraphSnapshot, restoreGraphSnapshotBySeq, runWithGraphStore, selectGraph, serializeKey, setActiveGraphStore, setDefaultMergeStrategy, setValueAtPath, sqlTypeToJsonSchema, startGarbageCollector, startLocalFirstGraph, stepTimeTravel, stopGarbageCollector, subscribeDevtoolsEvent, subscribeSubscriberStats, subscribeTimeTravel, toPrismaOrderBy, toPrismaWhere, unregisterSubscriber, useGraphStore };
2739
+ export { AGUI_STATE_ENTITY_TYPE, type AccessorFn, type AdapterStatus, type AgUiApplyResult, type AgUiStateDeltaEvent, type AgUiStateMapping, type AgUiStateSnapshotEvent, type AggregationFn, type ApplyAgUiOptions, type BelongsToRelation, type CascadeContext, type Cell, type CellContext, type CellRenderer, type ChangeEvent, type ChangeOp, type ChangeOperation, type ChangeSet, type ChannelConfig, type CheckpointedWrite, type CheckpointingPersistenceAdapter, type Column, type ColumnDef, type ColumnFiltersState, type ColumnMeta, type ColumnOrderState, type ColumnPinningState, type ColumnSizingInfoState, type ColumnSizingState, type ColumnVisibilityState, type CreateFlintAdapterOptions, type CreatePGlitePersistenceAdapterOptions, type CreateTauriSqlPersistenceAdapterOptions, type DevtoolsEvent, type DevtoolsEventBus, type DevtoolsEventBusOptions, type DevtoolsSourceFn, type ElectricAdapterOptions, type ElectricTableConfig, type EngineOptions, type EntityChange, EntityId, type EntityJsonSchemaConfig, type EntityQueryOptions, type EntitySchema, EntitySnapshot, EntitySyncMetadata, type EntityTransport, EntityType, type ExpandedState, type FilterFn, FilterSpec, type FlintCheckpointStore, type FlintClientLike, type FlintEntityEvent, type FlintEntityQuery, type FlintEntityRecord, type GetEntityJsonSchemaOptions, type GraphActionEvent, type GraphActionOptions, type GraphActionRecord$1 as GraphActionRecord, type GraphBatch, type GraphChange, type GraphEffectEvent, type GraphEffectHandle, type GraphEffectOptions, type GraphIncludeMap, type GraphIncludeRelation, type GraphPersistenceAdapter, type GraphQueryOptions, type GraphSnapshotExportOptions, type GraphSnapshotPayload, type GraphSnapshotWithSchemasOptions, GraphStore$1 as GraphStore, type GraphSyncStatus, type GraphSyncStatusStore, type GraphToolContext, type GraphTransaction, type GroupingState, type HasManyRelation, type Header, type HeaderContext, type HeaderGroup, type HeaderRenderer, IncrementalView, type IncrementalViewOptions, type JsonPatchOp, type JsonSchemaObject, type ListFetchParams, type ListQuery, type ListQueryOptions, type ListResponse, type ListResult, type LiveLayer, type LiveLayerOptions, type LocalFirstGraphRuntime, type LoroModuleLoader, type MakeRestTransportOptions, type ManagerOptions, type ManyToManyRelation, type MergeContext, type MergeStrategy, type PGlitePersistenceClient, type PaginationState, type ColumnDef as PureColumnDef, type ColumnMeta as PureColumnMeta, QueryKey, type RealtimeAdapter, RealtimeManager, type RegisterEntityFromSqlOptions, type RegisteredStore, type RelationDescriptor, type ReplayRetryPolicy, type ReplicaCheckpoint, type ResumeDecision, type ResumeRejection, type Row, type RowModel, type RowSelectionState, type RuntimeScope, type SchemaGraphToolContext, SortSpec, type SortingFn, type SortingState, type StartLocalFirstGraphOptions, type SubscriptionConfig, type SupabaseAdapterOptions, type SupabaseLike, type SupabaseQueryBuilderLike, type SurrealCheckpointStore, type SurrealLike, type SurrealLiveAction, type SurrealLiveAdapterOptions, type SurrealTableConfig, type SyncAdapter, SyncOrigin, type TableInstance, type TableOptions, type TableState, type TauriSqlClient, type TenantClaim, type TenantScopedAdapterOptions, type TenantScopedTableConfig, type TimeTravelSnapshot, type TimeTravelState, type UnsubscribeFn, type Updater, type ViewMode, type WebSocketAdapterOptions, __resetActiveGraphStore, __resetEntityTransports, __resetStoreRegistry, agUiListKey, applyAgUiDelta, applyAgUiSnapshot, applyGraphChanges, applyJsonPatch, applyView, attachGlobalListeners, batchGraphWrites, buildTenantWhere, cascadeInvalidation, checkCompleteness, collectDirtyPaths, compareEntities, configureEngine, configureTimeTravel, createConvexAdapter, createDevtoolsEventBus, createElectricAdapter, createFlintAdapter, createGraphAction, createGraphEffect, createGraphQLSubscriptionAdapter, createGraphSyncStatusStore, createGraphTool, createGraphTransaction, createLiveLayer, createLoroMergeStrategy, createPGlitePersistenceAdapter, createRow, createRuntimeScope, createSchemaGraphTool, createSupabaseRealtimeAdapter, createSurrealLiveAdapter, createTauriSqlPersistenceAdapter, createTenantScopedElectricAdapter, createWebSocketAdapter, dedupe, escapeHtml, evaluateResume, exportGraphSnapshot, exportGraphSnapshotWithSchemas, fetchEntity, fetchList, findInsertionIndex, getActiveSubscriberCount, getCoreRowModel, getRealtimeManager as getElectricRealtimeManager, getEngineOptions, getEntityJsonSchema, getEntityTransport, getExpandedRowModel, getFacetedMinMaxValues, getFacetedRowModel, getFacetedUniqueValues, getFilteredRowModel, getGraphSyncStatus, getGroupedRowModel, getMergeStrategy, getPaginatedRowModel, getRealtimeManager, getRegisteredEntityTypes, getRegisteredStores, getSchema, getSelectedRowModel, getSortedRowModel, getTimeTravelState, getValueAtPath, graphStore, graphSyncStatusStore, hasMergeStrategy, humanizeFieldName, hydrateGraphFromStorage, inferSchemaFieldType, isGraphDevtoolsEmissionEnabled, lwwStrategy, makeRestTransport, matchesFilter, matchesSearch, parseCreateTable, persistGraphToStorage, prepareGraphStoreScope, publishFlintMutation, queryOnce, readAgUiState, readRelations, recordGraphSnapshot, registerEntityFromSql, registerEntityJsonSchema, registerEntityTransport, registerMergeStrategy, registerRuntimeSchema, registerSchema, registerStore, registerSubscriber, registryKey, renderMarkdownToHtml, replayActionWithRetry, resetRealtimeManager, resolveActiveGraphStore, restoreGraphSnapshot, restoreGraphSnapshotBySeq, runWithGraphStore, selectGraph, serializeKey, setActiveGraphStore, setDefaultMergeStrategy, setGraphDevtoolsEmission, setValueAtPath, sqlTypeToJsonSchema, startGarbageCollector, startLocalFirstGraph, stepTimeTravel, stopGarbageCollector, subscribeDevtoolsEvent, subscribeSubscriberStats, subscribeTimeTravel, toPrismaOrderBy, toPrismaWhere, unregisterSubscriber, useGraphStore };