@nicia-ai/typegraph 0.66.0 → 0.67.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.
Files changed (77) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/README.md +15 -0
  3. package/dist/backend/drizzle/engine/index.cjs +6 -6
  4. package/dist/backend/drizzle/engine/index.d.cts +4 -4
  5. package/dist/backend/drizzle/engine/index.d.ts +4 -4
  6. package/dist/backend/drizzle/engine/index.js +1 -1
  7. package/dist/backend/postgres/index.cjs +15 -15
  8. package/dist/backend/postgres/index.d.cts +2 -2
  9. package/dist/backend/postgres/index.d.ts +2 -2
  10. package/dist/backend/postgres/index.js +1 -1
  11. package/dist/backend/postgres/pglite-store.cjs +1 -1
  12. package/dist/backend/postgres/pglite-store.js +1 -1
  13. package/dist/backend/postgres/pglite.cjs +3 -3
  14. package/dist/backend/postgres/pglite.js +2 -2
  15. package/dist/backend/sqlite/index.cjs +14 -14
  16. package/dist/backend/sqlite/index.d.cts +2 -2
  17. package/dist/backend/sqlite/index.d.ts +2 -2
  18. package/dist/backend/sqlite/index.js +1 -1
  19. package/dist/backend/sqlite/libsql.cjs +6 -6
  20. package/dist/backend/sqlite/libsql.js +1 -1
  21. package/dist/backend/sqlite/local-store.cjs +1 -1
  22. package/dist/backend/sqlite/local-store.js +1 -1
  23. package/dist/backend/sqlite/local.cjs +3 -3
  24. package/dist/backend/sqlite/local.js +2 -2
  25. package/dist/{chunk-MUEPEWMQ.js → chunk-2DJKHZQ4.js} +10 -2
  26. package/dist/chunk-2DJKHZQ4.js.map +1 -0
  27. package/dist/{chunk-TR7QTODF.js → chunk-55DGFZYC.js} +3 -3
  28. package/dist/{chunk-TR7QTODF.js.map → chunk-55DGFZYC.js.map} +1 -1
  29. package/dist/{chunk-WB55URNM.js → chunk-6CKSTY2D.js} +7 -3
  30. package/dist/chunk-6CKSTY2D.js.map +1 -0
  31. package/dist/{chunk-732VS5PW.cjs → chunk-ANMCKLZQ.cjs} +12 -12
  32. package/dist/{chunk-732VS5PW.cjs.map → chunk-ANMCKLZQ.cjs.map} +1 -1
  33. package/dist/{chunk-SSDHR2C2.js → chunk-EFSXK3DW.js} +3 -3
  34. package/dist/{chunk-SSDHR2C2.js.map → chunk-EFSXK3DW.js.map} +1 -1
  35. package/dist/{chunk-Y4X6ODVY.cjs → chunk-FS2GVO2T.cjs} +56 -56
  36. package/dist/{chunk-Y4X6ODVY.cjs.map → chunk-FS2GVO2T.cjs.map} +1 -1
  37. package/dist/{chunk-K7YACILO.cjs → chunk-GXHEGNI6.cjs} +9 -9
  38. package/dist/{chunk-K7YACILO.cjs.map → chunk-GXHEGNI6.cjs.map} +1 -1
  39. package/dist/{chunk-XQNKN3UF.cjs → chunk-MN325MG4.cjs} +10 -2
  40. package/dist/chunk-MN325MG4.cjs.map +1 -0
  41. package/dist/{chunk-BX42F7IJ.cjs → chunk-SSDLQPMY.cjs} +7 -2
  42. package/dist/chunk-SSDLQPMY.cjs.map +1 -0
  43. package/dist/{chunk-MGCPSR4C.cjs → chunk-WWSYGZED.cjs} +6 -6
  44. package/dist/{chunk-MGCPSR4C.cjs.map → chunk-WWSYGZED.cjs.map} +1 -1
  45. package/dist/{chunk-HSLP6CVG.js → chunk-YHMXF7OZ.js} +3 -3
  46. package/dist/{chunk-HSLP6CVG.js.map → chunk-YHMXF7OZ.js.map} +1 -1
  47. package/dist/{chunk-C3HNC3S6.js → chunk-ZONDBN6H.js} +3 -3
  48. package/dist/{chunk-C3HNC3S6.js.map → chunk-ZONDBN6H.js.map} +1 -1
  49. package/dist/graph-merge/index.cjs +500 -26
  50. package/dist/graph-merge/index.cjs.map +1 -1
  51. package/dist/graph-merge/index.d.cts +384 -2
  52. package/dist/graph-merge/index.d.ts +384 -2
  53. package/dist/graph-merge/index.js +485 -15
  54. package/dist/graph-merge/index.js.map +1 -1
  55. package/dist/index.cjs +63 -63
  56. package/dist/index.js +3 -3
  57. package/dist/{local-store-impl-J6TJG45N.cjs → local-store-impl-7SPBIS4M.cjs} +9 -9
  58. package/dist/{local-store-impl-J6TJG45N.cjs.map → local-store-impl-7SPBIS4M.cjs.map} +1 -1
  59. package/dist/{local-store-impl-XKWR46WQ.js → local-store-impl-E23EDYPV.js} +6 -6
  60. package/dist/{local-store-impl-XKWR46WQ.js.map → local-store-impl-E23EDYPV.js.map} +1 -1
  61. package/dist/{pglite-store-impl-KXD5VWC5.cjs → pglite-store-impl-U55HQ5ZY.cjs} +9 -9
  62. package/dist/{pglite-store-impl-KXD5VWC5.cjs.map → pglite-store-impl-U55HQ5ZY.cjs.map} +1 -1
  63. package/dist/{pglite-store-impl-LRZ4TO3H.js → pglite-store-impl-VAIEJZOU.js} +6 -6
  64. package/dist/{pglite-store-impl-LRZ4TO3H.js.map → pglite-store-impl-VAIEJZOU.js.map} +1 -1
  65. package/dist/{postgres-CRRB2qzy.d.ts → postgres-BbTYW3b_.d.ts} +1 -1
  66. package/dist/{postgres-BIm6TDfF.d.cts → postgres-Dp3MpyJt.d.cts} +1 -1
  67. package/dist/{profile-DVd70NA-.d.ts → profile-Ch5SSewK.d.ts} +6 -6
  68. package/dist/{profile-CjAffcQt.d.cts → profile-DppApFgt.d.cts} +6 -6
  69. package/dist/schema/index.cjs +27 -27
  70. package/dist/schema/index.js +2 -2
  71. package/dist/{sqlite-DX9H3L7z.d.cts → sqlite-BpRtjC36.d.cts} +1 -1
  72. package/dist/{sqlite-BNwQ5pd7.d.ts → sqlite-CH0Zq0Qv.d.ts} +1 -1
  73. package/package.json +1 -1
  74. package/dist/chunk-BX42F7IJ.cjs.map +0 -1
  75. package/dist/chunk-MUEPEWMQ.js.map +0 -1
  76. package/dist/chunk-WB55URNM.js.map +0 -1
  77. package/dist/chunk-XQNKN3UF.cjs.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,39 @@
1
1
  # @nicia-ai/typegraph
2
2
 
3
+ ## 0.67.0
4
+
5
+ ### Highlights
6
+
7
+ TypeGraph 0.67 adds durable graph-merge branches for workflows that outlive one process. `branchDurable()` creates a persistent working copy and a JSON-safe descriptor that can cross a queue, deployment, or machine boundary; `reopenDurableBranch()` restores the ordinary `GraphBranch` used by merge planning, and `destroyDurableBranch()` explicitly removes or archives the host allocation. The existing reviewable plan/apply lifecycle remains the source of truth for accepted graph changes.
8
+
9
+ Durable strategies own host allocation and reconnection while TypeGraph validates the sealed graph, schema, branch, and base origin. Creation fences writes racing the allocation and accepts either an exact revision token or a complete semantic match when the persistent copy has its own revision namespace. Strategies can optionally attempt a proven-equivalent native merge; a mutation-free `unsupported` result returns to the complete portable apply path, while uncertain native failures never risk a second application.
10
+
11
+ ### Upgrade notes
12
+
13
+ - Existing `branch()` and portable merge workflows require no changes. Use the durable APIs only when a working copy must survive closing its current backend or move between processes.
14
+ - Custom durable strategies must return a non-secret, JSON-safe locator and attest the complete sealed origin on reopen and destroy. Each opened working copy must provide either sound cross-client engine fencing or an allocation-wide exclusive writer lease; closing releases access but intentionally leaves the persistent allocation available until `destroyDurableBranch()` succeeds.
15
+ - Treat `DurableWorkingCopyStrategy.merge()` as an optional optimization. Return `unsupported` only when no merge SQL or host mutation ran. Return `applied` only after proving the complete host diff equals the approved TypeGraph write set and validating the target fence on the merged resource. Throw on failed or uncertain native outcomes; TypeGraph will not fall back after a possibly partial application. Apply callbacks and persisted provenance continue through the portable path.
16
+
17
+ ### Minor Changes
18
+
19
+ - [#726](https://github.com/nicia-ai/typegraph/pull/726) [`595e6d9`](https://github.com/nicia-ai/typegraph/commit/595e6d9e5a68faf5ca118288bf921065b822ff61) Thanks [@pdlug](https://github.com/pdlug)! - Add durable graph-merge branches that can be serialized, reopened in a later process, and explicitly destroyed. Durable strategies attest the complete fork origin, prove the created working copy matches its stamped base, and declare either engine-level fencing or an allocation-wide exclusive writer lease. Approved plans can optionally use a strategy's proven-equivalent native database merge; unsupported native dimensions execute no host mutation and fall back to the complete portable plan application.
20
+
21
+ ## 0.66.1
22
+
23
+ ### Highlights
24
+
25
+ TypeGraph 0.66.1 fixes store-opening failures when upgrading older SQLite or PostgreSQL databases that never received the recorded-node and recorded-edge tables. Base-schema adoption now creates the missing tables and indexes while preserving existing graph data and custom table names, including when recorded history is not enabled.
26
+
27
+ ### Upgrade notes
28
+
29
+ - If an earlier upgrade failed with a missing recorded-table error, deploy 0.66.1 and retry your normal privileged store-open or `backend.adoptBaseSchema()` path. Adoption resumes from the installed marker, including databases left at base-schema version 2.
30
+ - After upgrading and verifying successful adoption, remove any extra `bootstrapTables()` call added specifically to work around this failure. Keep bootstrap calls required by your normal provisioning workflow; runtime-only, least-privilege store opening still does not perform adoption.
31
+ - Roll affected deployments forward. Do not roll back to 0.56.0 after the base-schema marker has advanced beyond version 1: that release refuses the newer marker.
32
+
33
+ ### Patch Changes
34
+
35
+ - [#724](https://github.com/nicia-ai/typegraph/pull/724) [`e3ebddd`](https://github.com/nicia-ai/typegraph/commit/e3ebddda8f37833255dcdd75cd38b5f24a02c2e5) Thanks [@pdlug](https://github.com/pdlug)! - Fix upgrades from legacy databases that lack recorded-node or recorded-edge tables. Version-3 base-schema adoption now creates these tables and their structural indexes before installing changed-since indexes on SQLite and PostgreSQL, preserving existing data and custom table names. Failed upgrades left at base-schema version 2 can retry through normal adoption without an explicit `bootstrapTables()` workaround.
36
+
3
37
  ## 0.66.0
4
38
 
5
39
  ### Highlights
package/README.md CHANGED
@@ -86,11 +86,15 @@ TypeGraph ships semantic graph merge as a dedicated subpath:
86
86
 
87
87
  ```ts
88
88
  import {
89
+ applyDurableMergePlan,
89
90
  applyMergePlan,
90
91
  applyMergePlanInTransaction,
91
92
  branch,
93
+ branchDurable,
94
+ destroyDurableBranch,
92
95
  merge,
93
96
  planMerge,
97
+ reopenDurableBranch,
94
98
  } from "@nicia-ai/typegraph/graph-merge";
95
99
  ```
96
100
 
@@ -137,6 +141,17 @@ caller-owned commit. It throws on failure and leaves rollback and whole-
137
141
  transaction retry to the caller. This path refuses persisted provenance, while
138
142
  report-only provenance remains available.
139
143
 
144
+ Long-running workflows can use `branchDurable()` to allocate a persistent
145
+ working copy, serialize its descriptor, close the current connection, and
146
+ reattach from a later process with `reopenDurableBranch()`. A
147
+ `DurableWorkingCopyStrategy` owns the database's branch lifecycle and declares
148
+ the cross-client fencing or exclusive writer lease that keeps planning sound.
149
+ After review, `applyDurableMergePlan()` may use a strategy's native database
150
+ merge only when it proves the host diff is exactly the approved TypeGraph plan;
151
+ otherwise it applies the complete portable plan. Use `destroyDurableBranch()`
152
+ for explicit teardown. The guide documents the requirements a branch-native
153
+ database strategy must satisfy.
154
+
140
155
  It lives in the core package because the primitive is defined over TypeGraph
141
156
  stores, schemas, indexes, backends, and ontology semantics rather than as a
142
157
  separate product surface.
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkXQNKN3UF_cjs = require('../../../chunk-XQNKN3UF.cjs');
3
+ var chunkMN325MG4_cjs = require('../../../chunk-MN325MG4.cjs');
4
4
  require('../../../chunk-DCYIUKIM.cjs');
5
5
  require('../../../chunk-FZKXBPTS.cjs');
6
6
  require('../../../chunk-76OB5RSH.cjs');
@@ -34,23 +34,23 @@ require('../../../chunk-7XYPLAPL.cjs');
34
34
 
35
35
  Object.defineProperty(exports, "DERIVABLE_ENGINE_PROFILE_KEYS", {
36
36
  enumerable: true,
37
- get: function () { return chunkXQNKN3UF_cjs.DERIVABLE_ENGINE_PROFILE_KEYS; }
37
+ get: function () { return chunkMN325MG4_cjs.DERIVABLE_ENGINE_PROFILE_KEYS; }
38
38
  });
39
39
  Object.defineProperty(exports, "buildPostgresEngineProfile", {
40
40
  enumerable: true,
41
- get: function () { return chunkXQNKN3UF_cjs.buildPostgresEngineProfile; }
41
+ get: function () { return chunkMN325MG4_cjs.buildPostgresEngineProfile; }
42
42
  });
43
43
  Object.defineProperty(exports, "buildSqliteEngineProfile", {
44
44
  enumerable: true,
45
- get: function () { return chunkXQNKN3UF_cjs.buildSqliteEngineProfile; }
45
+ get: function () { return chunkMN325MG4_cjs.buildSqliteEngineProfile; }
46
46
  });
47
47
  Object.defineProperty(exports, "createSqlBackend", {
48
48
  enumerable: true,
49
- get: function () { return chunkXQNKN3UF_cjs.createSqlBackend; }
49
+ get: function () { return chunkMN325MG4_cjs.createSqlBackend; }
50
50
  });
51
51
  Object.defineProperty(exports, "deriveEngineProfile", {
52
52
  enumerable: true,
53
- get: function () { return chunkXQNKN3UF_cjs.deriveEngineProfile; }
53
+ get: function () { return chunkMN325MG4_cjs.deriveEngineProfile; }
54
54
  });
55
55
  //# sourceMappingURL=index.cjs.map
56
56
  //# sourceMappingURL=index.cjs.map
@@ -1,9 +1,9 @@
1
1
  import { A as AdapterBackend, F as FenceSql } from '../../../types-BynPp5kU.cjs';
2
2
  export { h as AdoptedSchemaWriteTransaction, i as FenceStatements, S as SchemaProvisioning, W as WriteFencePlan } from '../../../types-BynPp5kU.cjs';
3
- import { a as SqlEngineProfile } from '../../../profile-CjAffcQt.cjs';
4
- export { B as BackendResourceAudit, b as BaseSchemaRuntime, C as ContributionRuntime, E as EngineAssembly, c as EngineProvisioning, d as EngineTableNames, G as GraphTemplateRuntime, I as IdentityRuntime, e as IndexMaterializationRuntime, K as KindRemovalRuntime } from '../../../profile-CjAffcQt.cjs';
5
- export { b as buildPostgresEngineProfile } from '../../../postgres-BIm6TDfF.cjs';
6
- export { b as buildSqliteEngineProfile } from '../../../sqlite-DX9H3L7z.cjs';
3
+ import { a as SqlEngineProfile } from '../../../profile-DppApFgt.cjs';
4
+ export { B as BackendResourceAudit, b as BaseSchemaRuntime, C as ContributionRuntime, E as EngineAssembly, c as EngineProvisioning, d as EngineTableNames, G as GraphTemplateRuntime, I as IdentityRuntime, e as IndexMaterializationRuntime, K as KindRemovalRuntime } from '../../../profile-DppApFgt.cjs';
5
+ export { b as buildPostgresEngineProfile } from '../../../postgres-Dp3MpyJt.cjs';
6
+ export { b as buildSqliteEngineProfile } from '../../../sqlite-BpRtjC36.cjs';
7
7
  import 'zod';
8
8
  import 'drizzle-orm';
9
9
  import '../../../atomic-mutation-program-DMdmc4s0.cjs';
@@ -1,9 +1,9 @@
1
1
  import { A as AdapterBackend, F as FenceSql } from '../../../types-BynPp5kU.js';
2
2
  export { h as AdoptedSchemaWriteTransaction, i as FenceStatements, S as SchemaProvisioning, W as WriteFencePlan } from '../../../types-BynPp5kU.js';
3
- import { a as SqlEngineProfile } from '../../../profile-DVd70NA-.js';
4
- export { B as BackendResourceAudit, b as BaseSchemaRuntime, C as ContributionRuntime, E as EngineAssembly, c as EngineProvisioning, d as EngineTableNames, G as GraphTemplateRuntime, I as IdentityRuntime, e as IndexMaterializationRuntime, K as KindRemovalRuntime } from '../../../profile-DVd70NA-.js';
5
- export { b as buildPostgresEngineProfile } from '../../../postgres-CRRB2qzy.js';
6
- export { b as buildSqliteEngineProfile } from '../../../sqlite-BNwQ5pd7.js';
3
+ import { a as SqlEngineProfile } from '../../../profile-Ch5SSewK.js';
4
+ export { B as BackendResourceAudit, b as BaseSchemaRuntime, C as ContributionRuntime, E as EngineAssembly, c as EngineProvisioning, d as EngineTableNames, G as GraphTemplateRuntime, I as IdentityRuntime, e as IndexMaterializationRuntime, K as KindRemovalRuntime } from '../../../profile-Ch5SSewK.js';
5
+ export { b as buildPostgresEngineProfile } from '../../../postgres-BbTYW3b_.js';
6
+ export { b as buildSqliteEngineProfile } from '../../../sqlite-CH0Zq0Qv.js';
7
7
  import 'zod';
8
8
  import 'drizzle-orm';
9
9
  import '../../../atomic-mutation-program-BhP75Qn0.js';
@@ -1,4 +1,4 @@
1
- export { DERIVABLE_ENGINE_PROFILE_KEYS, buildPostgresEngineProfile, buildSqliteEngineProfile, createSqlBackend, deriveEngineProfile } from '../../../chunk-MUEPEWMQ.js';
1
+ export { DERIVABLE_ENGINE_PROFILE_KEYS, buildPostgresEngineProfile, buildSqliteEngineProfile, createSqlBackend, deriveEngineProfile } from '../../../chunk-2DJKHZQ4.js';
2
2
  import '../../../chunk-DX6DIU2S.js';
3
3
  import '../../../chunk-D2DMFIH2.js';
4
4
  import '../../../chunk-OF63ZHSD.js';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkXQNKN3UF_cjs = require('../../chunk-XQNKN3UF.cjs');
3
+ var chunkMN325MG4_cjs = require('../../chunk-MN325MG4.cjs');
4
4
  require('../../chunk-DCYIUKIM.cjs');
5
5
  require('../../chunk-FZKXBPTS.cjs');
6
6
  require('../../chunk-76OB5RSH.cjs');
@@ -34,59 +34,59 @@ require('../../chunk-7XYPLAPL.cjs');
34
34
 
35
35
  Object.defineProperty(exports, "createPostgresBackend", {
36
36
  enumerable: true,
37
- get: function () { return chunkXQNKN3UF_cjs.createPostgresBackend; }
37
+ get: function () { return chunkMN325MG4_cjs.createPostgresBackend; }
38
38
  });
39
39
  Object.defineProperty(exports, "createPostgresTables", {
40
40
  enumerable: true,
41
- get: function () { return chunkXQNKN3UF_cjs.createPostgresTables; }
41
+ get: function () { return chunkMN325MG4_cjs.createPostgresTables; }
42
42
  });
43
43
  Object.defineProperty(exports, "edgeClaims", {
44
44
  enumerable: true,
45
- get: function () { return chunkXQNKN3UF_cjs.edgeClaims; }
45
+ get: function () { return chunkMN325MG4_cjs.edgeClaims; }
46
46
  });
47
47
  Object.defineProperty(exports, "edges", {
48
48
  enumerable: true,
49
- get: function () { return chunkXQNKN3UF_cjs.edges; }
49
+ get: function () { return chunkMN325MG4_cjs.edges; }
50
50
  });
51
51
  Object.defineProperty(exports, "fulltext", {
52
52
  enumerable: true,
53
- get: function () { return chunkXQNKN3UF_cjs.fulltext; }
53
+ get: function () { return chunkMN325MG4_cjs.fulltext; }
54
54
  });
55
55
  Object.defineProperty(exports, "generatePostgresDDL", {
56
56
  enumerable: true,
57
- get: function () { return chunkXQNKN3UF_cjs.generatePostgresDDL; }
57
+ get: function () { return chunkMN325MG4_cjs.generatePostgresDDL; }
58
58
  });
59
59
  Object.defineProperty(exports, "generatePostgresMigrationSQL", {
60
60
  enumerable: true,
61
- get: function () { return chunkXQNKN3UF_cjs.generatePostgresMigrationSQL; }
61
+ get: function () { return chunkMN325MG4_cjs.generatePostgresMigrationSQL; }
62
62
  });
63
63
  Object.defineProperty(exports, "nodes", {
64
64
  enumerable: true,
65
- get: function () { return chunkXQNKN3UF_cjs.nodes; }
65
+ get: function () { return chunkMN325MG4_cjs.nodes; }
66
66
  });
67
67
  Object.defineProperty(exports, "recordedClock", {
68
68
  enumerable: true,
69
- get: function () { return chunkXQNKN3UF_cjs.recordedClock; }
69
+ get: function () { return chunkMN325MG4_cjs.recordedClock; }
70
70
  });
71
71
  Object.defineProperty(exports, "recordedEdges", {
72
72
  enumerable: true,
73
- get: function () { return chunkXQNKN3UF_cjs.recordedEdges; }
73
+ get: function () { return chunkMN325MG4_cjs.recordedEdges; }
74
74
  });
75
75
  Object.defineProperty(exports, "recordedNodes", {
76
76
  enumerable: true,
77
- get: function () { return chunkXQNKN3UF_cjs.recordedNodes; }
77
+ get: function () { return chunkMN325MG4_cjs.recordedNodes; }
78
78
  });
79
79
  Object.defineProperty(exports, "schemaVersions", {
80
80
  enumerable: true,
81
- get: function () { return chunkXQNKN3UF_cjs.schemaVersions; }
81
+ get: function () { return chunkMN325MG4_cjs.schemaVersions; }
82
82
  });
83
83
  Object.defineProperty(exports, "tables", {
84
84
  enumerable: true,
85
- get: function () { return chunkXQNKN3UF_cjs.tables; }
85
+ get: function () { return chunkMN325MG4_cjs.tables; }
86
86
  });
87
87
  Object.defineProperty(exports, "uniques", {
88
88
  enumerable: true,
89
- get: function () { return chunkXQNKN3UF_cjs.uniques; }
89
+ get: function () { return chunkMN325MG4_cjs.uniques; }
90
90
  });
91
91
  Object.defineProperty(exports, "postgresFenceSql", {
92
92
  enumerable: true,
@@ -1,8 +1,8 @@
1
1
  import { F as FenceSql } from '../../types-BynPp5kU.cjs';
2
2
  export { B as BundledBackendCapabilityOverrides, C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult, G as GraphIdentityConfig } from '../../types-BynPp5kU.cjs';
3
3
  export { A as AnyPgDatabase, a as AnyPgTransaction } from '../../postgres-execution-fKW0qRiN.cjs';
4
- export { P as PostgresBackendOptions, c as createPostgresBackend } from '../../postgres-BIm6TDfF.cjs';
5
- export { S as SerializedResourceDeclaration } from '../../profile-CjAffcQt.cjs';
4
+ export { P as PostgresBackendOptions, c as createPostgresBackend } from '../../postgres-Dp3MpyJt.cjs';
5
+ export { S as SerializedResourceDeclaration } from '../../profile-DppApFgt.cjs';
6
6
  export { C as CreatePostgresTablesOptions, P as PostgresTableNames, a as PostgresTables, c as createPostgresTables, e as edgeClaims, b as edges, f as fulltext, n as nodes, r as recordedClock, d as recordedEdges, g as recordedNodes, s as schemaVersions, t as tables, u as uniques } from '../../postgres-DOBXcZVg.cjs';
7
7
  export { b as generatePostgresDDL, c as generatePostgresMigrationSQL } from '../../ddl-D_09BfbN.cjs';
8
8
  import 'zod';
@@ -1,8 +1,8 @@
1
1
  import { F as FenceSql } from '../../types-BynPp5kU.js';
2
2
  export { B as BundledBackendCapabilityOverrides, C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult, G as GraphIdentityConfig } from '../../types-BynPp5kU.js';
3
3
  export { A as AnyPgDatabase, a as AnyPgTransaction } from '../../postgres-execution-fKW0qRiN.js';
4
- export { P as PostgresBackendOptions, c as createPostgresBackend } from '../../postgres-CRRB2qzy.js';
5
- export { S as SerializedResourceDeclaration } from '../../profile-DVd70NA-.js';
4
+ export { P as PostgresBackendOptions, c as createPostgresBackend } from '../../postgres-BbTYW3b_.js';
5
+ export { S as SerializedResourceDeclaration } from '../../profile-Ch5SSewK.js';
6
6
  export { C as CreatePostgresTablesOptions, P as PostgresTableNames, a as PostgresTables, c as createPostgresTables, e as edgeClaims, b as edges, f as fulltext, n as nodes, r as recordedClock, d as recordedEdges, g as recordedNodes, s as schemaVersions, t as tables, u as uniques } from '../../postgres-DhZixg92.js';
7
7
  export { b as generatePostgresDDL, c as generatePostgresMigrationSQL } from '../../ddl-2q7xLM1X.js';
8
8
  import 'zod';
@@ -1,4 +1,4 @@
1
- export { createPostgresBackend, createPostgresTables, edgeClaims, edges, fulltext, generatePostgresDDL, generatePostgresMigrationSQL, nodes, recordedClock, recordedEdges, recordedNodes, schemaVersions, tables, uniques } from '../../chunk-MUEPEWMQ.js';
1
+ export { createPostgresBackend, createPostgresTables, edgeClaims, edges, fulltext, generatePostgresDDL, generatePostgresMigrationSQL, nodes, recordedClock, recordedEdges, recordedNodes, schemaVersions, tables, uniques } from '../../chunk-2DJKHZQ4.js';
2
2
  import '../../chunk-DX6DIU2S.js';
3
3
  import '../../chunk-D2DMFIH2.js';
4
4
  import '../../chunk-OF63ZHSD.js';
@@ -7,7 +7,7 @@ require('../../chunk-7XYPLAPL.cjs');
7
7
  async function createLocalPgliteStore(graph, options = {}) {
8
8
  const impl = await chunkMUKIEXH5_cjs.loadDrizzleBackedModule(
9
9
  "./postgres/pglite",
10
- () => import('../../pglite-store-impl-KXD5VWC5.cjs')
10
+ () => import('../../pglite-store-impl-U55HQ5ZY.cjs')
11
11
  );
12
12
  return impl.createLocalPgliteStoreImpl(graph, options);
13
13
  }
@@ -5,7 +5,7 @@ import '../../chunk-GMKPIYHY.js';
5
5
  async function createLocalPgliteStore(graph, options = {}) {
6
6
  const impl = await loadDrizzleBackedModule(
7
7
  "./postgres/pglite",
8
- () => import('../../pglite-store-impl-LRZ4TO3H.js')
8
+ () => import('../../pglite-store-impl-VAIEJZOU.js')
9
9
  );
10
10
  return impl.createLocalPgliteStoreImpl(graph, options);
11
11
  }
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkMGCPSR4C_cjs = require('../../chunk-MGCPSR4C.cjs');
4
- require('../../chunk-XQNKN3UF.cjs');
3
+ var chunkWWSYGZED_cjs = require('../../chunk-WWSYGZED.cjs');
4
+ require('../../chunk-MN325MG4.cjs');
5
5
  require('../../chunk-DCYIUKIM.cjs');
6
6
  require('../../chunk-FZKXBPTS.cjs');
7
7
  require('../../chunk-76OB5RSH.cjs');
@@ -35,7 +35,7 @@ require('../../chunk-7XYPLAPL.cjs');
35
35
 
36
36
  Object.defineProperty(exports, "createLocalPgliteBackend", {
37
37
  enumerable: true,
38
- get: function () { return chunkMGCPSR4C_cjs.createLocalPgliteBackend; }
38
+ get: function () { return chunkWWSYGZED_cjs.createLocalPgliteBackend; }
39
39
  });
40
40
  //# sourceMappingURL=pglite.cjs.map
41
41
  //# sourceMappingURL=pglite.cjs.map
@@ -1,5 +1,5 @@
1
- export { createLocalPgliteBackend } from '../../chunk-C3HNC3S6.js';
2
- import '../../chunk-MUEPEWMQ.js';
1
+ export { createLocalPgliteBackend } from '../../chunk-ZONDBN6H.js';
2
+ import '../../chunk-2DJKHZQ4.js';
3
3
  import '../../chunk-DX6DIU2S.js';
4
4
  import '../../chunk-D2DMFIH2.js';
5
5
  import '../../chunk-OF63ZHSD.js';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkXQNKN3UF_cjs = require('../../chunk-XQNKN3UF.cjs');
3
+ var chunkMN325MG4_cjs = require('../../chunk-MN325MG4.cjs');
4
4
  require('../../chunk-DCYIUKIM.cjs');
5
5
  require('../../chunk-FZKXBPTS.cjs');
6
6
  require('../../chunk-76OB5RSH.cjs');
@@ -34,55 +34,55 @@ require('../../chunk-7XYPLAPL.cjs');
34
34
 
35
35
  Object.defineProperty(exports, "createSqliteBackend", {
36
36
  enumerable: true,
37
- get: function () { return chunkXQNKN3UF_cjs.createSqliteBackend; }
37
+ get: function () { return chunkMN325MG4_cjs.createSqliteBackend; }
38
38
  });
39
39
  Object.defineProperty(exports, "createSqliteTables", {
40
40
  enumerable: true,
41
- get: function () { return chunkXQNKN3UF_cjs.createSqliteTables; }
41
+ get: function () { return chunkMN325MG4_cjs.createSqliteTables; }
42
42
  });
43
43
  Object.defineProperty(exports, "edgeClaims", {
44
44
  enumerable: true,
45
- get: function () { return chunkXQNKN3UF_cjs.edgeClaims2; }
45
+ get: function () { return chunkMN325MG4_cjs.edgeClaims2; }
46
46
  });
47
47
  Object.defineProperty(exports, "edges", {
48
48
  enumerable: true,
49
- get: function () { return chunkXQNKN3UF_cjs.edges2; }
49
+ get: function () { return chunkMN325MG4_cjs.edges2; }
50
50
  });
51
51
  Object.defineProperty(exports, "generateSqliteDDL", {
52
52
  enumerable: true,
53
- get: function () { return chunkXQNKN3UF_cjs.generateSqliteDDL; }
53
+ get: function () { return chunkMN325MG4_cjs.generateSqliteDDL; }
54
54
  });
55
55
  Object.defineProperty(exports, "generateSqliteMigrationSQL", {
56
56
  enumerable: true,
57
- get: function () { return chunkXQNKN3UF_cjs.generateSqliteMigrationSQL; }
57
+ get: function () { return chunkMN325MG4_cjs.generateSqliteMigrationSQL; }
58
58
  });
59
59
  Object.defineProperty(exports, "nodes", {
60
60
  enumerable: true,
61
- get: function () { return chunkXQNKN3UF_cjs.nodes2; }
61
+ get: function () { return chunkMN325MG4_cjs.nodes2; }
62
62
  });
63
63
  Object.defineProperty(exports, "recordedClock", {
64
64
  enumerable: true,
65
- get: function () { return chunkXQNKN3UF_cjs.recordedClock2; }
65
+ get: function () { return chunkMN325MG4_cjs.recordedClock2; }
66
66
  });
67
67
  Object.defineProperty(exports, "recordedEdges", {
68
68
  enumerable: true,
69
- get: function () { return chunkXQNKN3UF_cjs.recordedEdges2; }
69
+ get: function () { return chunkMN325MG4_cjs.recordedEdges2; }
70
70
  });
71
71
  Object.defineProperty(exports, "recordedNodes", {
72
72
  enumerable: true,
73
- get: function () { return chunkXQNKN3UF_cjs.recordedNodes2; }
73
+ get: function () { return chunkMN325MG4_cjs.recordedNodes2; }
74
74
  });
75
75
  Object.defineProperty(exports, "schemaVersions", {
76
76
  enumerable: true,
77
- get: function () { return chunkXQNKN3UF_cjs.schemaVersions2; }
77
+ get: function () { return chunkMN325MG4_cjs.schemaVersions2; }
78
78
  });
79
79
  Object.defineProperty(exports, "tables", {
80
80
  enumerable: true,
81
- get: function () { return chunkXQNKN3UF_cjs.tables2; }
81
+ get: function () { return chunkMN325MG4_cjs.tables2; }
82
82
  });
83
83
  Object.defineProperty(exports, "uniques", {
84
84
  enumerable: true,
85
- get: function () { return chunkXQNKN3UF_cjs.uniques2; }
85
+ get: function () { return chunkMN325MG4_cjs.uniques2; }
86
86
  });
87
87
  //# sourceMappingURL=index.cjs.map
88
88
  //# sourceMappingURL=index.cjs.map
@@ -1,7 +1,7 @@
1
1
  export { B as BundledBackendCapabilityOverrides, C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult, G as GraphIdentityConfig } from '../../types-BynPp5kU.cjs';
2
2
  export { A as AnySqliteDatabase, S as SqliteTransactionMode } from '../../sqlite-execution-DHenxnsc.cjs';
3
- export { S as SqliteBackendOptions, c as createSqliteBackend } from '../../sqlite-DX9H3L7z.cjs';
4
- export { S as SerializedResourceDeclaration } from '../../profile-CjAffcQt.cjs';
3
+ export { S as SqliteBackendOptions, c as createSqliteBackend } from '../../sqlite-BpRtjC36.cjs';
4
+ export { S as SerializedResourceDeclaration } from '../../profile-DppApFgt.cjs';
5
5
  export { C as CreateSqliteTablesOptions, S as SqliteTableNames, a as SqliteTables, c as createSqliteTables, e as edgeClaims, b as edges, n as nodes, r as recordedClock, d as recordedEdges, f as recordedNodes, s as schemaVersions, t as tables, u as uniques } from '../../sqlite-BkQM9ZeI.cjs';
6
6
  export { g as generateSqliteDDL, a as generateSqliteMigrationSQL } from '../../ddl-D_09BfbN.cjs';
7
7
  import 'zod';
@@ -1,7 +1,7 @@
1
1
  export { B as BundledBackendCapabilityOverrides, C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult, G as GraphIdentityConfig } from '../../types-BynPp5kU.js';
2
2
  export { A as AnySqliteDatabase, S as SqliteTransactionMode } from '../../sqlite-execution-DHenxnsc.js';
3
- export { S as SqliteBackendOptions, c as createSqliteBackend } from '../../sqlite-BNwQ5pd7.js';
4
- export { S as SerializedResourceDeclaration } from '../../profile-DVd70NA-.js';
3
+ export { S as SqliteBackendOptions, c as createSqliteBackend } from '../../sqlite-CH0Zq0Qv.js';
4
+ export { S as SerializedResourceDeclaration } from '../../profile-Ch5SSewK.js';
5
5
  export { C as CreateSqliteTablesOptions, S as SqliteTableNames, a as SqliteTables, c as createSqliteTables, e as edgeClaims, b as edges, n as nodes, r as recordedClock, d as recordedEdges, f as recordedNodes, s as schemaVersions, t as tables, u as uniques } from '../../sqlite-CcCSeXGg.js';
6
6
  export { g as generateSqliteDDL, a as generateSqliteMigrationSQL } from '../../ddl-2q7xLM1X.js';
7
7
  import 'zod';
@@ -1,4 +1,4 @@
1
- export { createSqliteBackend, createSqliteTables, edgeClaims2 as edgeClaims, edges2 as edges, generateSqliteDDL, generateSqliteMigrationSQL, nodes2 as nodes, recordedClock2 as recordedClock, recordedEdges2 as recordedEdges, recordedNodes2 as recordedNodes, schemaVersions2 as schemaVersions, tables2 as tables, uniques2 as uniques } from '../../chunk-MUEPEWMQ.js';
1
+ export { createSqliteBackend, createSqliteTables, edgeClaims2 as edgeClaims, edges2 as edges, generateSqliteDDL, generateSqliteMigrationSQL, nodes2 as nodes, recordedClock2 as recordedClock, recordedEdges2 as recordedEdges, recordedNodes2 as recordedNodes, schemaVersions2 as schemaVersions, tables2 as tables, uniques2 as uniques } from '../../chunk-2DJKHZQ4.js';
2
2
  import '../../chunk-DX6DIU2S.js';
3
3
  import '../../chunk-D2DMFIH2.js';
4
4
  import '../../chunk-OF63ZHSD.js';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkXQNKN3UF_cjs = require('../../chunk-XQNKN3UF.cjs');
3
+ var chunkMN325MG4_cjs = require('../../chunk-MN325MG4.cjs');
4
4
  require('../../chunk-DCYIUKIM.cjs');
5
5
  var chunkCBH7KZOS_cjs = require('../../chunk-CBH7KZOS.cjs');
6
6
  require('../../chunk-FZKXBPTS.cjs');
@@ -33,7 +33,7 @@ var chunk7XYPLAPL_cjs = require('../../chunk-7XYPLAPL.cjs');
33
33
  var libsql = require('drizzle-orm/libsql');
34
34
 
35
35
  async function installLibsqlBaseSchema(client, tables2, backend) {
36
- const installationSql = chunkXQNKN3UF_cjs.generateSqliteMigrationSQL(tables2);
36
+ const installationSql = chunkMN325MG4_cjs.generateSqliteMigrationSQL(tables2);
37
37
  try {
38
38
  await client.executeMultiple(installationSql);
39
39
  await chunkBXHAPCQG_cjs.requireDefined(backend.assertBaseSchemaCurrent)();
@@ -45,22 +45,22 @@ async function installLibsqlBaseSchema(client, tables2, backend) {
45
45
  }
46
46
  async function detectOrderedAggregates(client) {
47
47
  try {
48
- await client.execute(chunkXQNKN3UF_cjs.ORDERED_AGGREGATE_PROBE_SQL);
48
+ await client.execute(chunkMN325MG4_cjs.ORDERED_AGGREGATE_PROBE_SQL);
49
49
  return true;
50
50
  } catch {
51
51
  return false;
52
52
  }
53
53
  }
54
54
  async function createLibsqlBackend(client, options = {}) {
55
- const tables2 = options.tables ?? chunkXQNKN3UF_cjs.tables2;
55
+ const tables2 = options.tables ?? chunkMN325MG4_cjs.tables2;
56
56
  const db = libsql.drizzle(client);
57
57
  const orderedAggregates = await detectOrderedAggregates(client);
58
- const backend = chunkXQNKN3UF_cjs.createSqliteBackend(db, {
58
+ const backend = chunkMN325MG4_cjs.createSqliteBackend(db, {
59
59
  ...options.schemaProvisioning === void 0 ? {} : { schemaProvisioning: options.schemaProvisioning },
60
60
  capabilities: { orderedAggregates },
61
61
  executionProfile: {
62
62
  isSync: false,
63
- transactionMode: chunkXQNKN3UF_cjs.isLocalLibsqlClient(client) ? "sql" : "drizzle"
63
+ transactionMode: chunkMN325MG4_cjs.isLocalLibsqlClient(client) ? "sql" : "drizzle"
64
64
  },
65
65
  tables: tables2,
66
66
  // libSQL ships native vector search in core — no extension to load —
@@ -1,4 +1,4 @@
1
- import { tables2, createSqliteBackend, isLocalLibsqlClient, ORDERED_AGGREGATE_PROBE_SQL, generateSqliteMigrationSQL } from '../../chunk-MUEPEWMQ.js';
1
+ import { tables2, createSqliteBackend, isLocalLibsqlClient, ORDERED_AGGREGATE_PROBE_SQL, generateSqliteMigrationSQL } from '../../chunk-2DJKHZQ4.js';
2
2
  import '../../chunk-DX6DIU2S.js';
3
3
  import { libsqlVectorStrategy } from '../../chunk-ZL67ENQW.js';
4
4
  import '../../chunk-D2DMFIH2.js';
@@ -8,7 +8,7 @@ require('../../chunk-7XYPLAPL.cjs');
8
8
  async function createLocalSqliteStore(graph, options = {}) {
9
9
  const impl = await chunkMUKIEXH5_cjs.loadDrizzleBackedModule(
10
10
  "./sqlite/local",
11
- () => import('../../local-store-impl-J6TJG45N.cjs')
11
+ () => import('../../local-store-impl-7SPBIS4M.cjs')
12
12
  );
13
13
  return impl.createLocalSqliteStoreImpl(graph, options);
14
14
  }
@@ -6,7 +6,7 @@ import '../../chunk-GMKPIYHY.js';
6
6
  async function createLocalSqliteStore(graph, options = {}) {
7
7
  const impl = await loadDrizzleBackedModule(
8
8
  "./sqlite/local",
9
- () => import('../../local-store-impl-XKWR46WQ.js')
9
+ () => import('../../local-store-impl-E23EDYPV.js')
10
10
  );
11
11
  return impl.createLocalSqliteStoreImpl(graph, options);
12
12
  }
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var chunk732VS5PW_cjs = require('../../chunk-732VS5PW.cjs');
3
+ var chunkANMCKLZQ_cjs = require('../../chunk-ANMCKLZQ.cjs');
4
4
  var chunkQCD5JKU4_cjs = require('../../chunk-QCD5JKU4.cjs');
5
- require('../../chunk-XQNKN3UF.cjs');
5
+ require('../../chunk-MN325MG4.cjs');
6
6
  require('../../chunk-DCYIUKIM.cjs');
7
7
  require('../../chunk-CBHZX3G5.cjs');
8
8
  require('../../chunk-FZKXBPTS.cjs');
@@ -37,7 +37,7 @@ require('../../chunk-7XYPLAPL.cjs');
37
37
 
38
38
  Object.defineProperty(exports, "createLocalSqliteBackend", {
39
39
  enumerable: true,
40
- get: function () { return chunk732VS5PW_cjs.createLocalSqliteBackend; }
40
+ get: function () { return chunkANMCKLZQ_cjs.createLocalSqliteBackend; }
41
41
  });
42
42
  Object.defineProperty(exports, "DEFAULT_LOCAL_SQLITE_PRAGMAS", {
43
43
  enumerable: true,
@@ -1,6 +1,6 @@
1
- export { createLocalSqliteBackend } from '../../chunk-HSLP6CVG.js';
1
+ export { createLocalSqliteBackend } from '../../chunk-YHMXF7OZ.js';
2
2
  export { DEFAULT_LOCAL_SQLITE_PRAGMAS } from '../../chunk-H4FY6OZK.js';
3
- import '../../chunk-MUEPEWMQ.js';
3
+ import '../../chunk-2DJKHZQ4.js';
4
4
  import '../../chunk-DX6DIU2S.js';
5
5
  import '../../chunk-JVWXWAV5.js';
6
6
  import '../../chunk-D2DMFIH2.js';
@@ -14765,6 +14765,10 @@ function buildPostgresEngineProfile(db, options = {}) {
14765
14765
  ensureEdgeMatchIdentityStorage,
14766
14766
  fencesTableDdl: generatePgCreateTableSQL(tables3.fences),
14767
14767
  sinceIndexDdl: [
14768
+ generatePgCreateTableSQL(tables3.recordedNodes),
14769
+ ...generatePgCreateIndexSQL(tables3.recordedNodes),
14770
+ generatePgCreateTableSQL(tables3.recordedEdges),
14771
+ ...generatePgCreateIndexSQL(tables3.recordedEdges),
14768
14772
  generatePgCreateTableSQL(tables3.recordedIdentityAssertions),
14769
14773
  ...generatePgCreateIndexSQL(tables3.recordedIdentityAssertions),
14770
14774
  ...sinceIndexAdoptionDdl({
@@ -16920,6 +16924,10 @@ function buildSqliteEngineProfile(db, options = {}) {
16920
16924
  ensureEdgeMatchIdentityStorage,
16921
16925
  fencesTableDdl: generateSqliteCreateTableSQL(tables3.fences),
16922
16926
  sinceIndexDdl: [
16927
+ generateSqliteCreateTableSQL(tables3.recordedNodes),
16928
+ ...generateSqliteCreateIndexSQL(tables3.recordedNodes),
16929
+ generateSqliteCreateTableSQL(tables3.recordedEdges),
16930
+ ...generateSqliteCreateIndexSQL(tables3.recordedEdges),
16923
16931
  generateSqliteCreateTableSQL(tables3.recordedIdentityAssertions),
16924
16932
  ...generateSqliteCreateIndexSQL(tables3.recordedIdentityAssertions),
16925
16933
  ...sinceIndexAdoptionDdl({
@@ -17452,5 +17460,5 @@ function createTransactionBackend2(options) {
17452
17460
  }
17453
17461
 
17454
17462
  export { CURRENT_BASE_SCHEMA_VERSION, DERIVABLE_ENGINE_PROFILE_KEYS, ORDERED_AGGREGATE_PROBE_SQL, assertNoLegacyTransactionCapability, buildPostgresEngineProfile, buildSqliteEngineProfile, createPostgresBackend, createPostgresTables, createSqlBackend, createSqliteBackend, createSqliteTables, deriveEngineProfile, edgeClaims, edgeClaims2, edges, edges2, fulltext, generatePostgresDDL, generatePostgresMigrationSQL, generateSqliteDDL, generateSqliteMigrationSQL, generateVectorlessPostgresMigrationSQL, isLocalLibsqlClient, nodes, nodes2, planSqliteEdgeMatchIdentityAdoption, quoteDdlIdentifier, recordedClock, recordedClock2, recordedEdges, recordedEdges2, recordedNodes, recordedNodes2, schemaVersions, schemaVersions2, tables, tables2, uniques, uniques2 };
17455
- //# sourceMappingURL=chunk-MUEPEWMQ.js.map
17456
- //# sourceMappingURL=chunk-MUEPEWMQ.js.map
17463
+ //# sourceMappingURL=chunk-2DJKHZQ4.js.map
17464
+ //# sourceMappingURL=chunk-2DJKHZQ4.js.map