@lucern/graph-sync 0.3.0-alpha.10

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.
@@ -0,0 +1,297 @@
1
+ /**
2
+ * Neo4j Graph Queries
3
+ *
4
+ * Convex actions that execute graph queries against Neo4j.
5
+ * These provide graph intelligence that's hard/impossible in Convex alone:
6
+ * - Multi-hop traversals
7
+ * - Path finding
8
+ * - Cross-theme patterns
9
+ * - Contradiction detection
10
+ *
11
+ * Architecture:
12
+ * - Convex action calls a tenant-owned query proxy route
13
+ * - Query proxy executes a predefined Cypher query
14
+ * - Results return to the Convex caller
15
+ */
16
+ /**
17
+ * Get the full lineage of a node (what it was derived/extracted from)
18
+ * Uses Neo4j for efficient multi-hop traversal up to 10 levels deep
19
+ */
20
+ declare const getNodeLineageGraph: any;
21
+ /**
22
+ * Get nodes connected to a given node within N hops
23
+ * Much more powerful than Convex's single-hop queries
24
+ */
25
+ declare const getConnectedNodesGraph: any;
26
+ /**
27
+ * Get all beliefs that belong to a theme
28
+ */
29
+ declare const getThemeBeliefsGraph: any;
30
+ /**
31
+ * Get evidence that supports a belief (through question chain OR direct link)
32
+ */
33
+ declare const getBeliefEvidenceGraph: any;
34
+ /**
35
+ * Find beliefs that appear in multiple themes (cross-cutting insights)
36
+ */
37
+ declare const getCrossThemeBeliefs: any;
38
+ /**
39
+ * Find potential contradictions in the knowledge graph
40
+ * Evidence that tests conflicting beliefs
41
+ */
42
+ declare const findPotentialContradictions: any;
43
+ /**
44
+ * Get the full subgraph for a theme (all connected beliefs, questions, evidence)
45
+ */
46
+ declare const getThemeSubgraph: any;
47
+ /**
48
+ * Find the path from evidence to a belief (how does this evidence support this belief?)
49
+ */
50
+ declare const getEvidenceToBeliefPath: any;
51
+ /**
52
+ * Get stats for a theme (counts of beliefs, questions, evidence)
53
+ */
54
+ declare const getThemeStats: any;
55
+ /**
56
+ * Get candidate theme-to-valuechain mappings
57
+ * Returns all themes and value chains for manual or AI-assisted matching
58
+ */
59
+ declare const getThemeValueChainCandidates: any;
60
+ /**
61
+ * Find themes that impact a specific company
62
+ */
63
+ declare const getThemesImpactingCompany: any;
64
+ /**
65
+ * Find companies related to a theme
66
+ */
67
+ declare const getCompaniesByTheme: any;
68
+ /**
69
+ * Find questions about a value chain
70
+ */
71
+ declare const getQuestionsByValueChain: any;
72
+ /**
73
+ * Find questions about a theme
74
+ */
75
+ declare const getQuestionsByTheme: any;
76
+ /**
77
+ * Find people/contacts related to a theme
78
+ */
79
+ declare const getPeopleByTheme: any;
80
+ /**
81
+ * Find people at a specific company
82
+ */
83
+ declare const getPeopleByCompany: any;
84
+ /**
85
+ * Find value chains for a theme
86
+ */
87
+ declare const getValueChainsByTheme: any;
88
+ /**
89
+ * Find functions in a value chain
90
+ */
91
+ declare const getFunctionsByValueChain: any;
92
+ /**
93
+ * Find beliefs about a company
94
+ */
95
+ declare const getBeliefsByCompany: any;
96
+ /**
97
+ * Find evidence about a company
98
+ */
99
+ declare const getEvidenceByCompany: any;
100
+ /**
101
+ * Search all nodes by text
102
+ */
103
+ declare const searchAllNodes: any;
104
+ /**
105
+ * Get all relationships from a node
106
+ */
107
+ declare const getNodeRelationships: any;
108
+ /**
109
+ * Get graph statistics (node counts by type)
110
+ */
111
+ declare const getGraphStats: any;
112
+ /**
113
+ * Flexible graph query - routes to appropriate query based on intent
114
+ * This is the main entry point for natural language graph queries
115
+ */
116
+ declare const queryGraph: any;
117
+ /**
118
+ * Get high-priority questions (critical/high) that test beliefs
119
+ */
120
+ declare const getHighPriorityQuestions: any;
121
+ /**
122
+ * Get evidence filtered by methodology (expert_interview, customer_interview, etc.)
123
+ */
124
+ declare const getEvidenceByMethodology: any;
125
+ /**
126
+ * Get proprietary/early evidence (information asymmetry advantage)
127
+ */
128
+ declare const getProprietaryEvidence: any;
129
+ /**
130
+ * Get beliefs by epistemic status (hypothesis, emerging, established, challenged, etc.)
131
+ */
132
+ declare const getBeliefsByEpistemicStatus: any;
133
+ /**
134
+ * Get challenged beliefs that need attention
135
+ */
136
+ declare const getChallengedBeliefs: any;
137
+ /**
138
+ * Get predictions with deadlines
139
+ */
140
+ declare const getPredictions: any;
141
+ /**
142
+ * Get causal chains (edges with causal reasoning method)
143
+ */
144
+ declare const getCausalChains: any;
145
+ /**
146
+ * Get necessary evidence for beliefs (logicalRole = necessary or necessary_sufficient)
147
+ */
148
+ declare const getNecessaryEvidence: any;
149
+ /**
150
+ * Get falsification questions (designed to disprove beliefs)
151
+ */
152
+ declare const getFalsificationQuestions: any;
153
+ /**
154
+ * Detect confirmation bias in beliefs.
155
+ * Returns beliefs with high supporting:contradicting evidence ratio.
156
+ */
157
+ declare const getConfirmationBiasScore: any;
158
+ /**
159
+ * Detect anchoring bias - old beliefs that never got challenged or forked.
160
+ */
161
+ declare const getAnchoringBiasDetection: any;
162
+ /**
163
+ * Detect source concentration risk - beliefs where all evidence traces to single source.
164
+ */
165
+ declare const getSourceConcentrationRisk: any;
166
+ /**
167
+ * Find the minimum falsification set - smallest set of beliefs that would collapse the thesis.
168
+ */
169
+ declare const getMinimumFalsificationSet: any;
170
+ /**
171
+ * Get contradiction tension map - all unresolved tensions in the graph.
172
+ */
173
+ declare const getContradictionTensionMap: any;
174
+ /**
175
+ * Get reasoning depth score - how deep is the evidence chain for each belief?
176
+ */
177
+ declare const getReasoningDepthScore: any;
178
+ /**
179
+ * Get knowledge frontier - open questions on the boundary of what we know.
180
+ */
181
+ declare const getKnowledgeFrontier: any;
182
+ /**
183
+ * Get belief half-life analysis - how long do beliefs survive before being superseded?
184
+ */
185
+ declare const getBeliefHalfLife: any;
186
+ /**
187
+ * Get meeting prep brief for a person at a company.
188
+ */
189
+ declare const getMeetingPrepBrief: any;
190
+ /**
191
+ * Get proprietary signals - our unique insights not in public discourse.
192
+ */
193
+ declare const getProprietarySignals: any;
194
+ /**
195
+ * Get portfolio conviction dashboard - aggregate conviction metrics across all themes.
196
+ */
197
+ declare const getPortfolioConviction: any;
198
+ /**
199
+ * Get stale themes - themes with no recent activity.
200
+ */
201
+ declare const getStaleThemes: any;
202
+ /**
203
+ * Get missing question detection - high-confidence beliefs with no testing questions.
204
+ */
205
+ declare const getMissingQuestionDetection: any;
206
+ /**
207
+ * Get surprise detection - evidence that surprised us (high surprise score).
208
+ */
209
+ declare const getSurpriseDetection: any;
210
+ /**
211
+ * Get non-consensus beliefs - beliefs where we diverge from market consensus.
212
+ */
213
+ declare const getNonConsensusBeliefs: any;
214
+ /**
215
+ * Semantic search with graph context — find nodes by embedding similarity
216
+ * and return their graph neighborhood for context.
217
+ */
218
+ declare const semanticSearch: any;
219
+ /**
220
+ * Find semantic orphans — nodes structurally connected but semantically
221
+ * distant from their graph neighbors.
222
+ */
223
+ declare const getSemanticOrphans: any;
224
+ /**
225
+ * Find soft contradictions — beliefs about the same topic (high embedding similarity)
226
+ * but with divergent evidence or confidence.
227
+ */
228
+ declare const getSoftContradictions: any;
229
+ /**
230
+ * Find semantic bridges — nodes semantically similar but graph-distant.
231
+ * These represent potential missing connections.
232
+ */
233
+ declare const getSemanticBridges: any;
234
+ /**
235
+ * Graph-aware RAG search — semantic search that expands along graph structure
236
+ * to pull in supporting context (evidence, themes, sources).
237
+ */
238
+ declare const graphAwareSearch: any;
239
+
240
+ declare const neo4jQueries_findPotentialContradictions: typeof findPotentialContradictions;
241
+ declare const neo4jQueries_getAnchoringBiasDetection: typeof getAnchoringBiasDetection;
242
+ declare const neo4jQueries_getBeliefEvidenceGraph: typeof getBeliefEvidenceGraph;
243
+ declare const neo4jQueries_getBeliefHalfLife: typeof getBeliefHalfLife;
244
+ declare const neo4jQueries_getBeliefsByCompany: typeof getBeliefsByCompany;
245
+ declare const neo4jQueries_getBeliefsByEpistemicStatus: typeof getBeliefsByEpistemicStatus;
246
+ declare const neo4jQueries_getCausalChains: typeof getCausalChains;
247
+ declare const neo4jQueries_getChallengedBeliefs: typeof getChallengedBeliefs;
248
+ declare const neo4jQueries_getCompaniesByTheme: typeof getCompaniesByTheme;
249
+ declare const neo4jQueries_getConfirmationBiasScore: typeof getConfirmationBiasScore;
250
+ declare const neo4jQueries_getConnectedNodesGraph: typeof getConnectedNodesGraph;
251
+ declare const neo4jQueries_getContradictionTensionMap: typeof getContradictionTensionMap;
252
+ declare const neo4jQueries_getCrossThemeBeliefs: typeof getCrossThemeBeliefs;
253
+ declare const neo4jQueries_getEvidenceByCompany: typeof getEvidenceByCompany;
254
+ declare const neo4jQueries_getEvidenceByMethodology: typeof getEvidenceByMethodology;
255
+ declare const neo4jQueries_getEvidenceToBeliefPath: typeof getEvidenceToBeliefPath;
256
+ declare const neo4jQueries_getFalsificationQuestions: typeof getFalsificationQuestions;
257
+ declare const neo4jQueries_getFunctionsByValueChain: typeof getFunctionsByValueChain;
258
+ declare const neo4jQueries_getGraphStats: typeof getGraphStats;
259
+ declare const neo4jQueries_getHighPriorityQuestions: typeof getHighPriorityQuestions;
260
+ declare const neo4jQueries_getKnowledgeFrontier: typeof getKnowledgeFrontier;
261
+ declare const neo4jQueries_getMeetingPrepBrief: typeof getMeetingPrepBrief;
262
+ declare const neo4jQueries_getMinimumFalsificationSet: typeof getMinimumFalsificationSet;
263
+ declare const neo4jQueries_getMissingQuestionDetection: typeof getMissingQuestionDetection;
264
+ declare const neo4jQueries_getNecessaryEvidence: typeof getNecessaryEvidence;
265
+ declare const neo4jQueries_getNodeLineageGraph: typeof getNodeLineageGraph;
266
+ declare const neo4jQueries_getNodeRelationships: typeof getNodeRelationships;
267
+ declare const neo4jQueries_getNonConsensusBeliefs: typeof getNonConsensusBeliefs;
268
+ declare const neo4jQueries_getPeopleByCompany: typeof getPeopleByCompany;
269
+ declare const neo4jQueries_getPeopleByTheme: typeof getPeopleByTheme;
270
+ declare const neo4jQueries_getPortfolioConviction: typeof getPortfolioConviction;
271
+ declare const neo4jQueries_getPredictions: typeof getPredictions;
272
+ declare const neo4jQueries_getProprietaryEvidence: typeof getProprietaryEvidence;
273
+ declare const neo4jQueries_getProprietarySignals: typeof getProprietarySignals;
274
+ declare const neo4jQueries_getQuestionsByTheme: typeof getQuestionsByTheme;
275
+ declare const neo4jQueries_getQuestionsByValueChain: typeof getQuestionsByValueChain;
276
+ declare const neo4jQueries_getReasoningDepthScore: typeof getReasoningDepthScore;
277
+ declare const neo4jQueries_getSemanticBridges: typeof getSemanticBridges;
278
+ declare const neo4jQueries_getSemanticOrphans: typeof getSemanticOrphans;
279
+ declare const neo4jQueries_getSoftContradictions: typeof getSoftContradictions;
280
+ declare const neo4jQueries_getSourceConcentrationRisk: typeof getSourceConcentrationRisk;
281
+ declare const neo4jQueries_getStaleThemes: typeof getStaleThemes;
282
+ declare const neo4jQueries_getSurpriseDetection: typeof getSurpriseDetection;
283
+ declare const neo4jQueries_getThemeBeliefsGraph: typeof getThemeBeliefsGraph;
284
+ declare const neo4jQueries_getThemeStats: typeof getThemeStats;
285
+ declare const neo4jQueries_getThemeSubgraph: typeof getThemeSubgraph;
286
+ declare const neo4jQueries_getThemeValueChainCandidates: typeof getThemeValueChainCandidates;
287
+ declare const neo4jQueries_getThemesImpactingCompany: typeof getThemesImpactingCompany;
288
+ declare const neo4jQueries_getValueChainsByTheme: typeof getValueChainsByTheme;
289
+ declare const neo4jQueries_graphAwareSearch: typeof graphAwareSearch;
290
+ declare const neo4jQueries_queryGraph: typeof queryGraph;
291
+ declare const neo4jQueries_searchAllNodes: typeof searchAllNodes;
292
+ declare const neo4jQueries_semanticSearch: typeof semanticSearch;
293
+ declare namespace neo4jQueries {
294
+ export { neo4jQueries_findPotentialContradictions as findPotentialContradictions, neo4jQueries_getAnchoringBiasDetection as getAnchoringBiasDetection, neo4jQueries_getBeliefEvidenceGraph as getBeliefEvidenceGraph, neo4jQueries_getBeliefHalfLife as getBeliefHalfLife, neo4jQueries_getBeliefsByCompany as getBeliefsByCompany, neo4jQueries_getBeliefsByEpistemicStatus as getBeliefsByEpistemicStatus, neo4jQueries_getCausalChains as getCausalChains, neo4jQueries_getChallengedBeliefs as getChallengedBeliefs, neo4jQueries_getCompaniesByTheme as getCompaniesByTheme, neo4jQueries_getConfirmationBiasScore as getConfirmationBiasScore, neo4jQueries_getConnectedNodesGraph as getConnectedNodesGraph, neo4jQueries_getContradictionTensionMap as getContradictionTensionMap, neo4jQueries_getCrossThemeBeliefs as getCrossThemeBeliefs, neo4jQueries_getEvidenceByCompany as getEvidenceByCompany, neo4jQueries_getEvidenceByMethodology as getEvidenceByMethodology, neo4jQueries_getEvidenceToBeliefPath as getEvidenceToBeliefPath, neo4jQueries_getFalsificationQuestions as getFalsificationQuestions, neo4jQueries_getFunctionsByValueChain as getFunctionsByValueChain, neo4jQueries_getGraphStats as getGraphStats, neo4jQueries_getHighPriorityQuestions as getHighPriorityQuestions, neo4jQueries_getKnowledgeFrontier as getKnowledgeFrontier, neo4jQueries_getMeetingPrepBrief as getMeetingPrepBrief, neo4jQueries_getMinimumFalsificationSet as getMinimumFalsificationSet, neo4jQueries_getMissingQuestionDetection as getMissingQuestionDetection, neo4jQueries_getNecessaryEvidence as getNecessaryEvidence, neo4jQueries_getNodeLineageGraph as getNodeLineageGraph, neo4jQueries_getNodeRelationships as getNodeRelationships, neo4jQueries_getNonConsensusBeliefs as getNonConsensusBeliefs, neo4jQueries_getPeopleByCompany as getPeopleByCompany, neo4jQueries_getPeopleByTheme as getPeopleByTheme, neo4jQueries_getPortfolioConviction as getPortfolioConviction, neo4jQueries_getPredictions as getPredictions, neo4jQueries_getProprietaryEvidence as getProprietaryEvidence, neo4jQueries_getProprietarySignals as getProprietarySignals, neo4jQueries_getQuestionsByTheme as getQuestionsByTheme, neo4jQueries_getQuestionsByValueChain as getQuestionsByValueChain, neo4jQueries_getReasoningDepthScore as getReasoningDepthScore, neo4jQueries_getSemanticBridges as getSemanticBridges, neo4jQueries_getSemanticOrphans as getSemanticOrphans, neo4jQueries_getSoftContradictions as getSoftContradictions, neo4jQueries_getSourceConcentrationRisk as getSourceConcentrationRisk, neo4jQueries_getStaleThemes as getStaleThemes, neo4jQueries_getSurpriseDetection as getSurpriseDetection, neo4jQueries_getThemeBeliefsGraph as getThemeBeliefsGraph, neo4jQueries_getThemeStats as getThemeStats, neo4jQueries_getThemeSubgraph as getThemeSubgraph, neo4jQueries_getThemeValueChainCandidates as getThemeValueChainCandidates, neo4jQueries_getThemesImpactingCompany as getThemesImpactingCompany, neo4jQueries_getValueChainsByTheme as getValueChainsByTheme, neo4jQueries_graphAwareSearch as graphAwareSearch, neo4jQueries_queryGraph as queryGraph, neo4jQueries_searchAllNodes as searchAllNodes, neo4jQueries_semanticSearch as semanticSearch };
295
+ }
296
+
297
+ export { semanticSearch as $, getNodeLineageGraph as A, getNodeRelationships as B, getNonConsensusBeliefs as C, getPeopleByCompany as D, getPeopleByTheme as E, getPortfolioConviction as F, getPredictions as G, getProprietaryEvidence as H, getProprietarySignals as I, getQuestionsByTheme as J, getQuestionsByValueChain as K, getReasoningDepthScore as L, getSemanticBridges as M, getSemanticOrphans as N, getSoftContradictions as O, getSourceConcentrationRisk as P, getStaleThemes as Q, getSurpriseDetection as R, getThemeBeliefsGraph as S, getThemeStats as T, getThemeSubgraph as U, getThemeValueChainCandidates as V, getThemesImpactingCompany as W, getValueChainsByTheme as X, graphAwareSearch as Y, queryGraph as Z, searchAllNodes as _, getBeliefEvidenceGraph as a, getBeliefHalfLife as b, getBeliefsByCompany as c, getBeliefsByEpistemicStatus as d, getCausalChains as e, findPotentialContradictions as f, getAnchoringBiasDetection as g, getChallengedBeliefs as h, getCompaniesByTheme as i, getConfirmationBiasScore as j, getConnectedNodesGraph as k, getContradictionTensionMap as l, getCrossThemeBeliefs as m, neo4jQueries as n, getEvidenceByCompany as o, getEvidenceByMethodology as p, getEvidenceToBeliefPath as q, getFalsificationQuestions as r, getFunctionsByValueChain as s, getGraphStats as t, getHighPriorityQuestions as u, getKnowledgeFrontier as v, getMeetingPrepBrief as w, getMinimumFalsificationSet as x, getMissingQuestionDetection as y, getNecessaryEvidence as z };
@@ -0,0 +1 @@
1
+ export { f as findPotentialContradictions, g as getAnchoringBiasDetection, a as getBeliefEvidenceGraph, b as getBeliefHalfLife, c as getBeliefsByCompany, d as getBeliefsByEpistemicStatus, e as getCausalChains, h as getChallengedBeliefs, i as getCompaniesByTheme, j as getConfirmationBiasScore, k as getConnectedNodesGraph, l as getContradictionTensionMap, m as getCrossThemeBeliefs, o as getEvidenceByCompany, p as getEvidenceByMethodology, q as getEvidenceToBeliefPath, r as getFalsificationQuestions, s as getFunctionsByValueChain, t as getGraphStats, u as getHighPriorityQuestions, v as getKnowledgeFrontier, w as getMeetingPrepBrief, x as getMinimumFalsificationSet, y as getMissingQuestionDetection, z as getNecessaryEvidence, A as getNodeLineageGraph, B as getNodeRelationships, C as getNonConsensusBeliefs, D as getPeopleByCompany, E as getPeopleByTheme, F as getPortfolioConviction, G as getPredictions, H as getProprietaryEvidence, I as getProprietarySignals, J as getQuestionsByTheme, K as getQuestionsByValueChain, L as getReasoningDepthScore, M as getSemanticBridges, N as getSemanticOrphans, O as getSoftContradictions, P as getSourceConcentrationRisk, Q as getStaleThemes, R as getSurpriseDetection, S as getThemeBeliefsGraph, T as getThemeStats, U as getThemeSubgraph, V as getThemeValueChainCandidates, W as getThemesImpactingCompany, X as getValueChainsByTheme, Y as graphAwareSearch, Z as queryGraph, _ as searchAllNodes, $ as semanticSearch } from './neo4jQueries-eF7YNiqS.js';