@lucern/graph-sync 1.0.28 → 1.0.30
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 +8 -0
- package/dist/index.d.ts +198 -17
- package/dist/index.js +465 -373
- package/dist/index.js.map +1 -1
- package/dist/neo4jDriver.js +2 -4
- package/dist/neo4jDriver.js.map +1 -1
- package/dist/neo4jEdgeAPI.d.ts +93 -5
- package/dist/neo4jEdgeAPI.js +118 -107
- package/dist/neo4jEdgeAPI.js.map +1 -1
- package/dist/neo4jQueries-D14Putpd.d.ts +839 -0
- package/dist/neo4jQueries.d.ts +2 -1
- package/dist/neo4jQueries.js +72 -44
- package/dist/neo4jQueries.js.map +1 -1
- package/dist/neo4jQueryRoute.js +92 -45
- package/dist/neo4jQueryRoute.js.map +1 -1
- package/dist/neo4jSync.d.ts +106 -10
- package/dist/neo4jSync.js +159 -162
- package/dist/neo4jSync.js.map +1 -1
- package/dist/neo4jSyncHelpers-DWr-lF-A.d.ts +208 -0
- package/dist/neo4jSyncHelpers.d.ts +3 -1
- package/dist/neo4jSyncHelpers.js +44 -26
- package/dist/neo4jSyncHelpers.js.map +1 -1
- package/dist/proof-attestation.json +1 -1
- package/package.json +3 -3
- package/dist/neo4jQueries-j3LrFKpY.d.ts +0 -301
- package/dist/neo4jSyncHelpers-vxe1-Gvw.d.ts +0 -58
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,14 @@ All notable changes to `@lucern/graph-sync` will be documented in this file.
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
- No unreleased changes yet.
|
|
7
7
|
|
|
8
|
+
## [1.0.30] - 2026-06-23
|
|
9
|
+
- Coherent 1.0.30 bump with the post-CQ14 graph/sync package line so tenant
|
|
10
|
+
adopters install a single version across graph, SDK, MCP, kernel, and
|
|
11
|
+
control-plane surfaces.
|
|
12
|
+
|
|
13
|
+
## [1.0.29] - 2026-06-15
|
|
14
|
+
- Coherent 1.0.29 bump with `@lucern/reasoning-kernel` 1.0.29 (FR.12e/g singular access gateway, CQ.11 gate de-duplication, FR.13 create_topic 400, FR.60 structured errors). No package-local API change.
|
|
15
|
+
|
|
8
16
|
## [1.0.28] - 2026-06-14
|
|
9
17
|
- Coherent 1.0.28 bump with `@lucern/reasoning-kernel` 1.0.28 (FR.12d access-control completion, #1361). No package-local API change.
|
|
10
18
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
export { n as
|
|
1
|
+
import * as convex_server from 'convex/server';
|
|
2
|
+
export { n as neo4jQueries } from './neo4jQueries-D14Putpd.js';
|
|
3
|
+
import * as convex_values from 'convex/values';
|
|
4
|
+
export { n as neo4jSyncHelpers } from './neo4jSyncHelpers-DWr-lF-A.js';
|
|
3
5
|
|
|
4
6
|
/**
|
|
5
7
|
* neo4jDriver module implementation.
|
|
@@ -117,11 +119,97 @@ declare namespace neo4jDriver {
|
|
|
117
119
|
declare const DUAL_WRITE_EDGE_TYPES: readonly ["supports", "informs", "tests", "depends_on", "derived_from", "contains", "supersedes", "extracted_from", "responds_to", "based_on", "answers", "belongs_to", "relates_to_thesis", "corroborates", "extends", "same_source_as", "same_theme_as", "plays_theme", "impacts", "evaluates", "mentioned_in", "perspective_on"];
|
|
118
120
|
type DualWriteEdgeType = (typeof DUAL_WRITE_EDGE_TYPES)[number];
|
|
119
121
|
declare function needsDualWrite(edgeType: string): boolean;
|
|
120
|
-
declare const createEdge:
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
122
|
+
declare const createEdge: convex_server.RegisteredAction<"internal", {
|
|
123
|
+
weight?: number | undefined;
|
|
124
|
+
confidence?: number | undefined;
|
|
125
|
+
context?: string | undefined;
|
|
126
|
+
derivationType?: string | undefined;
|
|
127
|
+
topicId?: string | undefined;
|
|
128
|
+
tenantId?: string | undefined;
|
|
129
|
+
workspaceId?: string | undefined;
|
|
130
|
+
fromLayer?: string | undefined;
|
|
131
|
+
toLayer?: string | undefined;
|
|
132
|
+
fromNodeType?: string | undefined;
|
|
133
|
+
toNodeType?: string | undefined;
|
|
134
|
+
reasoningMethod?: string | undefined;
|
|
135
|
+
logicalRole?: string | undefined;
|
|
136
|
+
temporalClass?: string | undefined;
|
|
137
|
+
validFrom?: number | undefined;
|
|
138
|
+
validUntil?: number | undefined;
|
|
139
|
+
metadata?: any;
|
|
140
|
+
globalId: string;
|
|
141
|
+
fromGlobalId: string;
|
|
142
|
+
toGlobalId: string;
|
|
143
|
+
edgeType: string;
|
|
144
|
+
createdBy: string;
|
|
145
|
+
}, Promise<{
|
|
146
|
+
success: boolean;
|
|
147
|
+
globalId: string;
|
|
148
|
+
edgeType: string;
|
|
149
|
+
queuedForRetry: boolean;
|
|
150
|
+
reason: string;
|
|
151
|
+
} | {
|
|
152
|
+
success: boolean;
|
|
153
|
+
globalId: string;
|
|
154
|
+
edgeType: string;
|
|
155
|
+
dualWritten: boolean;
|
|
156
|
+
}>>;
|
|
157
|
+
declare const deleteEdge: convex_server.RegisteredAction<"internal", {
|
|
158
|
+
globalId: string;
|
|
159
|
+
}, Promise<{
|
|
160
|
+
success: boolean;
|
|
161
|
+
}>>;
|
|
162
|
+
declare const updateEdge: convex_server.RegisteredAction<"internal", {
|
|
163
|
+
weight?: number | undefined;
|
|
164
|
+
confidence?: number | undefined;
|
|
165
|
+
context?: string | undefined;
|
|
166
|
+
derivationType?: string | undefined;
|
|
167
|
+
globalId: string;
|
|
168
|
+
}, Promise<{
|
|
169
|
+
success: boolean;
|
|
170
|
+
error: string;
|
|
171
|
+
globalId?: undefined;
|
|
172
|
+
} | {
|
|
173
|
+
success: boolean;
|
|
174
|
+
globalId: string;
|
|
175
|
+
error?: undefined;
|
|
176
|
+
}>>;
|
|
177
|
+
declare const getEdge: convex_server.RegisteredAction<"internal", {
|
|
178
|
+
globalId: string;
|
|
179
|
+
}, Promise<{
|
|
180
|
+
globalId: string;
|
|
181
|
+
edgeType: string;
|
|
182
|
+
fromGlobalId: string;
|
|
183
|
+
toGlobalId: string;
|
|
184
|
+
properties: Record<string, unknown>;
|
|
185
|
+
} | null>>;
|
|
186
|
+
declare const retryProjectionByGlobalId: convex_server.RegisteredAction<"internal", {
|
|
187
|
+
globalId: string;
|
|
188
|
+
}, Promise<{
|
|
189
|
+
success: boolean;
|
|
190
|
+
error: string;
|
|
191
|
+
skipped?: undefined;
|
|
192
|
+
reason?: undefined;
|
|
193
|
+
edgeType?: undefined;
|
|
194
|
+
globalId?: undefined;
|
|
195
|
+
projected?: undefined;
|
|
196
|
+
} | {
|
|
197
|
+
success: boolean;
|
|
198
|
+
skipped: boolean;
|
|
199
|
+
reason: string;
|
|
200
|
+
edgeType: string;
|
|
201
|
+
error?: undefined;
|
|
202
|
+
globalId?: undefined;
|
|
203
|
+
projected?: undefined;
|
|
204
|
+
} | {
|
|
205
|
+
success: boolean;
|
|
206
|
+
globalId: string;
|
|
207
|
+
projected: boolean;
|
|
208
|
+
error?: undefined;
|
|
209
|
+
skipped?: undefined;
|
|
210
|
+
reason?: undefined;
|
|
211
|
+
edgeType?: undefined;
|
|
212
|
+
}>>;
|
|
125
213
|
|
|
126
214
|
declare const neo4jEdgeAPI_DUAL_WRITE_EDGE_TYPES: typeof DUAL_WRITE_EDGE_TYPES;
|
|
127
215
|
type neo4jEdgeAPI_DualWriteEdgeType = DualWriteEdgeType;
|
|
@@ -165,30 +253,123 @@ declare namespace neo4jQueryRoute {
|
|
|
165
253
|
/**
|
|
166
254
|
* neo4jSync module implementation.
|
|
167
255
|
*/
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
declare const
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
256
|
+
type SyncEntityType = "node" | "edge" | "embedding";
|
|
257
|
+
type SyncOperation = "upsert" | "delete" | "sync";
|
|
258
|
+
declare const syncNodeToNeo4j: convex_server.RegisteredAction<"internal", {
|
|
259
|
+
nodeId: convex_values.GenericId<"epistemicNodes">;
|
|
260
|
+
operation: "upsert" | "delete";
|
|
261
|
+
}, Promise<Readonly<{
|
|
262
|
+
error?: string;
|
|
263
|
+
entityType: SyncEntityType;
|
|
264
|
+
operation: SyncOperation;
|
|
265
|
+
skipped?: boolean;
|
|
266
|
+
skippedReason?: string;
|
|
267
|
+
success: boolean;
|
|
268
|
+
}>>>;
|
|
269
|
+
declare const syncEdgeToNeo4j: convex_server.RegisteredAction<"internal", {
|
|
270
|
+
operation: "upsert" | "delete";
|
|
271
|
+
edgeId: convex_values.GenericId<"epistemicEdges">;
|
|
272
|
+
}, Promise<Readonly<{
|
|
273
|
+
error?: string;
|
|
274
|
+
entityType: SyncEntityType;
|
|
275
|
+
operation: SyncOperation;
|
|
276
|
+
skipped?: boolean;
|
|
277
|
+
skippedReason?: string;
|
|
278
|
+
success: boolean;
|
|
279
|
+
}>>>;
|
|
280
|
+
declare const syncAllNodesToNeo4j: convex_server.RegisteredAction<"internal", {
|
|
281
|
+
cursor?: string | undefined;
|
|
282
|
+
batchSize?: number | undefined;
|
|
283
|
+
}, Promise<{
|
|
284
|
+
synced: number;
|
|
285
|
+
failed: number;
|
|
286
|
+
hasMore: boolean;
|
|
287
|
+
nextCursor?: undefined;
|
|
288
|
+
} | {
|
|
289
|
+
synced: number;
|
|
290
|
+
failed: number;
|
|
291
|
+
hasMore: boolean;
|
|
292
|
+
nextCursor: string | null | undefined;
|
|
293
|
+
}>>;
|
|
294
|
+
declare const syncAllEdgesToNeo4j: convex_server.RegisteredAction<"internal", {
|
|
295
|
+
cursor?: string | undefined;
|
|
296
|
+
batchSize?: number | undefined;
|
|
297
|
+
}, Promise<{
|
|
298
|
+
synced: number;
|
|
299
|
+
failed: number;
|
|
300
|
+
hasMore: boolean;
|
|
301
|
+
nextCursor?: undefined;
|
|
302
|
+
} | {
|
|
303
|
+
synced: number;
|
|
304
|
+
failed: number;
|
|
305
|
+
hasMore: boolean;
|
|
306
|
+
nextCursor: string | null | undefined;
|
|
307
|
+
}>>;
|
|
308
|
+
declare const backfillAllToNeo4j: convex_server.RegisteredAction<"internal", {
|
|
309
|
+
batchSize?: number | undefined;
|
|
310
|
+
}, Promise<{
|
|
311
|
+
totalNodes: number;
|
|
312
|
+
totalEdges: number;
|
|
313
|
+
totalFailed: number;
|
|
314
|
+
}>>;
|
|
315
|
+
declare const processRetryQueue: convex_server.RegisteredAction<"internal", {
|
|
316
|
+
limit?: number | undefined;
|
|
317
|
+
}, Promise<{
|
|
318
|
+
processed: number;
|
|
319
|
+
succeeded: number;
|
|
320
|
+
failed: number;
|
|
321
|
+
}>>;
|
|
174
322
|
/**
|
|
175
323
|
* Sync an embedding vector to an existing Neo4j node.
|
|
176
324
|
* Called after saveEpistemicNodeEmbedding completes, ensuring the
|
|
177
325
|
* embedding reaches Neo4j even if the initial node sync ran before
|
|
178
326
|
* the embedding was generated.
|
|
179
327
|
*/
|
|
180
|
-
declare const syncEmbeddingToNeo4j:
|
|
181
|
-
|
|
328
|
+
declare const syncEmbeddingToNeo4j: convex_server.RegisteredAction<"internal", {
|
|
329
|
+
nodeId: convex_values.GenericId<"epistemicNodes">;
|
|
330
|
+
}, Promise<Readonly<{
|
|
331
|
+
error?: string;
|
|
332
|
+
entityType: SyncEntityType;
|
|
333
|
+
operation: SyncOperation;
|
|
334
|
+
skipped?: boolean;
|
|
335
|
+
skippedReason?: string;
|
|
336
|
+
success: boolean;
|
|
337
|
+
}>>>;
|
|
338
|
+
declare const checkNeo4jHealth: convex_server.RegisteredAction<"internal", {}, Promise<{
|
|
339
|
+
uri: string | undefined;
|
|
340
|
+
healthy: boolean;
|
|
341
|
+
nodeCount?: number;
|
|
342
|
+
error?: string;
|
|
343
|
+
}>>;
|
|
182
344
|
/**
|
|
183
345
|
* Re-sync all epistemic nodes to Neo4j with updated properties (paginated)
|
|
184
346
|
* Use after adding new fields to the sync
|
|
185
347
|
*/
|
|
186
|
-
declare const resyncAllNodes:
|
|
348
|
+
declare const resyncAllNodes: convex_server.RegisteredAction<"internal", {
|
|
349
|
+
nodeType?: string | undefined;
|
|
350
|
+
cursor?: string | undefined;
|
|
351
|
+
batchSize?: number | undefined;
|
|
352
|
+
}, Promise<{
|
|
353
|
+
synced: number;
|
|
354
|
+
failed: number;
|
|
355
|
+
total: number;
|
|
356
|
+
hasMore: boolean;
|
|
357
|
+
nextCursor: string | null | undefined;
|
|
358
|
+
}>>;
|
|
187
359
|
/**
|
|
188
360
|
* Re-sync all epistemic edges to Neo4j with updated properties (paginated)
|
|
189
361
|
* Use after adding new fields to the sync (e.g., classification fields)
|
|
190
362
|
*/
|
|
191
|
-
declare const resyncAllEdges:
|
|
363
|
+
declare const resyncAllEdges: convex_server.RegisteredAction<"internal", {
|
|
364
|
+
cursor?: string | undefined;
|
|
365
|
+
batchSize?: number | undefined;
|
|
366
|
+
}, Promise<{
|
|
367
|
+
synced: number;
|
|
368
|
+
failed: number;
|
|
369
|
+
total: number;
|
|
370
|
+
hasMore: boolean;
|
|
371
|
+
nextCursor: string | null | undefined;
|
|
372
|
+
}>>;
|
|
192
373
|
|
|
193
374
|
declare const neo4jSync_backfillAllToNeo4j: typeof backfillAllToNeo4j;
|
|
194
375
|
declare const neo4jSync_checkNeo4jHealth: typeof checkNeo4jHealth;
|