@lucern/graph-primitives 1.0.0 → 1.0.2
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/README.md +13 -12
- package/dist/beliefDecay.js +24 -17
- package/dist/beliefDecay.js.map +1 -1
- package/dist/beliefEvidenceLinks.js +32 -8
- package/dist/beliefEvidenceLinks.js.map +1 -1
- package/dist/confidencePropagationDispatch.js.map +1 -1
- package/dist/contradictions.js +32 -9
- package/dist/contradictions.js.map +1 -1
- package/dist/convex.d.ts +55 -12
- package/dist/convex.js.map +1 -1
- package/dist/edgeValidation.d.ts +25 -2
- package/dist/edges/index.d.ts +9 -2
- package/dist/edges/index.js.map +1 -1
- package/dist/edges/propagationTypes.d.ts +2 -3
- package/dist/edges/propagationTypes.js.map +1 -1
- package/dist/entityBridge.js +10 -3
- package/dist/entityBridge.js.map +1 -1
- package/dist/entityLifecycle.js +15 -3
- package/dist/entityLifecycle.js.map +1 -1
- package/dist/epistemicAnswers.js.map +1 -1
- package/dist/epistemicBeliefs.admin.d.ts +36 -0
- package/dist/epistemicBeliefs.admin.js +745 -0
- package/dist/epistemicBeliefs.admin.js.map +1 -0
- package/dist/epistemicBeliefs.backfills.d.ts +62 -0
- package/dist/epistemicBeliefs.backfills.js +1004 -0
- package/dist/epistemicBeliefs.backfills.js.map +1 -0
- package/dist/epistemicBeliefs.confidence.d.ts +45 -0
- package/dist/epistemicBeliefs.confidence.js +1285 -0
- package/dist/epistemicBeliefs.confidence.js.map +1 -0
- package/dist/epistemicBeliefs.core.d.ts +35 -0
- package/dist/epistemicBeliefs.core.js +1508 -0
- package/dist/epistemicBeliefs.core.js.map +1 -0
- package/dist/epistemicBeliefs.d.ts +12 -3
- package/dist/epistemicBeliefs.helpers.d.ts +168 -0
- package/dist/epistemicBeliefs.helpers.js +1060 -0
- package/dist/epistemicBeliefs.helpers.js.map +1 -0
- package/dist/epistemicBeliefs.internal.d.ts +30 -0
- package/dist/epistemicBeliefs.internal.js +1329 -0
- package/dist/epistemicBeliefs.internal.js.map +1 -0
- package/dist/epistemicBeliefs.js +1196 -1184
- package/dist/epistemicBeliefs.js.map +1 -1
- package/dist/epistemicBeliefs.lifecycle.d.ts +19 -0
- package/dist/epistemicBeliefs.lifecycle.js +1608 -0
- package/dist/epistemicBeliefs.lifecycle.js.map +1 -0
- package/dist/epistemicBeliefs.links.d.ts +30 -0
- package/dist/epistemicBeliefs.links.js +761 -0
- package/dist/epistemicBeliefs.links.js.map +1 -0
- package/dist/epistemicBeliefs.queries.d.ts +16 -0
- package/dist/epistemicBeliefs.queries.js +90 -0
- package/dist/epistemicBeliefs.queries.js.map +1 -0
- package/dist/epistemicContractHelpers.d.ts +1 -1
- package/dist/epistemicContractHelpers.js +1 -1
- package/dist/epistemicContracts.d.ts +5 -76
- package/dist/epistemicContracts.evaluators.d.ts +36 -0
- package/dist/epistemicContracts.evaluators.js +2506 -0
- package/dist/epistemicContracts.evaluators.js.map +1 -0
- package/dist/epistemicContracts.handlers.d.ts +40 -0
- package/dist/epistemicContracts.handlers.js +3029 -0
- package/dist/epistemicContracts.handlers.js.map +1 -0
- package/dist/epistemicContracts.js +2006 -5281
- package/dist/epistemicContracts.js.map +1 -1
- package/dist/epistemicContracts.metrics.d.ts +26 -0
- package/dist/epistemicContracts.metrics.js +427 -0
- package/dist/epistemicContracts.metrics.js.map +1 -0
- package/dist/epistemicContracts.types.d.ts +159 -0
- package/dist/epistemicContracts.types.js +3 -0
- package/dist/epistemicContracts.types.js.map +1 -0
- package/dist/epistemicEdgeCreation.d.ts +73 -0
- package/dist/epistemicEdgeCreation.js +450 -0
- package/dist/epistemicEdgeCreation.js.map +1 -0
- package/dist/epistemicEdges-BF-cn4i3.d.ts +43 -0
- package/dist/epistemicEdges.d.ts +8 -1
- package/dist/epistemicEdges.handlers.d.ts +20 -0
- package/dist/epistemicEdges.handlers.js +289 -0
- package/dist/epistemicEdges.handlers.js.map +1 -0
- package/dist/epistemicEdges.helpers.d.ts +27 -0
- package/dist/epistemicEdges.helpers.js +162 -0
- package/dist/epistemicEdges.helpers.js.map +1 -0
- package/dist/epistemicEdges.js +797 -875
- package/dist/epistemicEdges.js.map +1 -1
- package/dist/epistemicEdges.mutations.d.ts +39 -0
- package/dist/epistemicEdges.mutations.js +1365 -0
- package/dist/epistemicEdges.mutations.js.map +1 -0
- package/dist/epistemicEdges.queries.d.ts +95 -0
- package/dist/epistemicEdges.queries.js +851 -0
- package/dist/epistemicEdges.queries.js.map +1 -0
- package/dist/epistemicEdges.types.d.ts +32 -0
- package/dist/epistemicEdges.types.js +3 -0
- package/dist/epistemicEdges.types.js.map +1 -0
- package/dist/epistemicEvidence-DvfchNt7.d.ts +46 -0
- package/dist/epistemicEvidence.d.ts +5 -2
- package/dist/epistemicEvidence.js +801 -807
- package/dist/epistemicEvidence.js.map +1 -1
- package/dist/epistemicEvidenceHelpers.d.ts +71 -0
- package/dist/epistemicEvidenceHelpers.js +769 -0
- package/dist/epistemicEvidenceHelpers.js.map +1 -0
- package/dist/epistemicEvidenceMutations.d.ts +10 -0
- package/dist/epistemicEvidenceMutations.js +1421 -0
- package/dist/epistemicEvidenceMutations.js.map +1 -0
- package/dist/epistemicEvidenceQueries.d.ts +10 -0
- package/dist/epistemicEvidenceQueries.js +1049 -0
- package/dist/epistemicEvidenceQueries.js.map +1 -0
- package/dist/epistemicHelpers.d.ts +4 -2
- package/dist/epistemicHelpers.js +132 -127
- package/dist/epistemicHelpers.js.map +1 -1
- package/dist/epistemicLayerRules.d.ts +138 -0
- package/dist/epistemicLayerRules.js +481 -0
- package/dist/epistemicLayerRules.js.map +1 -0
- package/dist/epistemicLinking.js +1 -1
- package/dist/epistemicLinking.js.map +1 -1
- package/dist/epistemicNodeCreation.d.ts +101 -0
- package/dist/epistemicNodeCreation.js +709 -0
- package/dist/epistemicNodeCreation.js.map +1 -0
- package/dist/epistemicNodes-BCQxpYx_.d.ts +54 -0
- package/dist/epistemicNodes.d.ts +5 -1
- package/dist/epistemicNodes.helpers.d.ts +51 -0
- package/dist/epistemicNodes.helpers.js +73 -0
- package/dist/epistemicNodes.helpers.js.map +1 -0
- package/dist/epistemicNodes.internal.d.ts +34 -0
- package/dist/epistemicNodes.internal.js +658 -0
- package/dist/epistemicNodes.internal.js.map +1 -0
- package/dist/epistemicNodes.js +698 -693
- package/dist/epistemicNodes.js.map +1 -1
- package/dist/epistemicNodes.mutations.d.ts +34 -0
- package/dist/epistemicNodes.mutations.js +1153 -0
- package/dist/epistemicNodes.mutations.js.map +1 -0
- package/dist/epistemicNodes.queries.d.ts +36 -0
- package/dist/epistemicNodes.queries.js +619 -0
- package/dist/epistemicNodes.queries.js.map +1 -0
- package/dist/epistemicNodes.validators.d.ts +23 -0
- package/dist/epistemicNodes.validators.js +105 -0
- package/dist/epistemicNodes.validators.js.map +1 -0
- package/dist/epistemicQuestions-bwHd2FWE.d.ts +68 -0
- package/dist/epistemicQuestions.conviction.d.ts +52 -0
- package/dist/epistemicQuestions.conviction.js +1389 -0
- package/dist/epistemicQuestions.conviction.js.map +1 -0
- package/dist/epistemicQuestions.create.d.ts +29 -0
- package/dist/epistemicQuestions.create.js +1300 -0
- package/dist/epistemicQuestions.create.js.map +1 -0
- package/dist/epistemicQuestions.d.ts +10 -2
- package/dist/epistemicQuestions.evidence.d.ts +22 -0
- package/dist/epistemicQuestions.evidence.js +929 -0
- package/dist/epistemicQuestions.evidence.js.map +1 -0
- package/dist/epistemicQuestions.helpers.d.ts +69 -0
- package/dist/epistemicQuestions.helpers.js +824 -0
- package/dist/epistemicQuestions.helpers.js.map +1 -0
- package/dist/epistemicQuestions.js +2435 -2430
- package/dist/epistemicQuestions.js.map +1 -1
- package/dist/epistemicQuestions.lifecycle.d.ts +24 -0
- package/dist/epistemicQuestions.lifecycle.js +838 -0
- package/dist/epistemicQuestions.lifecycle.js.map +1 -0
- package/dist/epistemicQuestions.queries.d.ts +41 -0
- package/dist/epistemicQuestions.queries.js +1013 -0
- package/dist/epistemicQuestions.queries.js.map +1 -0
- package/dist/epistemicQuestions.sprint.d.ts +22 -0
- package/dist/epistemicQuestions.sprint.js +757 -0
- package/dist/epistemicQuestions.sprint.js.map +1 -0
- package/dist/epistemicQuestions.tail.d.ts +42 -0
- package/dist/epistemicQuestions.tail.js +1345 -0
- package/dist/epistemicQuestions.tail.js.map +1 -0
- package/dist/epistemicSources.js +6 -2
- package/dist/epistemicSources.js.map +1 -1
- package/dist/evaluators/index.d.ts +2 -2
- package/dist/evaluators/index.js +45 -5320
- package/dist/evaluators/index.js.map +1 -1
- package/dist/evaluators/lintCheckerEvaluator.d.ts +1 -1
- package/dist/evaluators/sentryCheckerEvaluator.d.ts +1 -1
- package/dist/evaluators/testRunnerEvaluator.d.ts +1 -1
- package/dist/evaluators/tscCheckerEvaluator.d.ts +1 -1
- package/dist/{graphTypes-CpgIuCdo.d.ts → graphTypes-B8VaIjnl.d.ts} +1 -1
- package/dist/graphTypes.d.ts +1 -1
- package/dist/{helpers-BYHIk5vU.d.ts → helpers-DNYfg6mo.d.ts} +2 -3
- package/dist/helpers.d.ts +2 -2
- package/dist/helpers.js.map +1 -1
- package/dist/{index-Dq-7R-gi.d.ts → index-C-Kyd7hD.d.ts} +1 -1
- package/dist/index.d.ts +160 -14
- package/dist/index.js +12291 -13001
- package/dist/index.js.map +1 -1
- package/dist/logicalRoleInference.js.map +1 -1
- package/dist/ontologyApproval.js +1 -1
- package/dist/ontologyApproval.js.map +1 -1
- package/dist/ontologyDefinitions.js +25 -7
- package/dist/ontologyDefinitions.js.map +1 -1
- package/dist/ontologyRegistry.js.map +1 -1
- package/dist/projectionReconciliation.js.map +1 -1
- package/dist/questionEvidenceLinks.js +28 -7
- package/dist/questionEvidenceLinks.js.map +1 -1
- package/dist/resolvers.js.map +1 -1
- package/dist/scopeResolverCompat.js.map +1 -1
- package/dist/topicProjectOverlay.js.map +1 -1
- package/dist/topicScope.js.map +1 -1
- package/dist/workflowBridge.js.map +1 -1
- package/dist/workspaceIsolation.js.map +1 -1
- package/package.json +4 -5
- package/dist/edgeValidation-CeI0wc0r.d.ts +0 -35
- package/dist/epistemicBeliefs-DzKjZAeC.d.ts +0 -377
- package/dist/epistemicEdges-CvlKnEyy.d.ts +0 -191
- package/dist/epistemicEvidence-xw6UUrwh.d.ts +0 -128
- package/dist/epistemicHelpers-DevrYgPN.d.ts +0 -329
- package/dist/epistemicNodes-DjSUfvyD.d.ts +0 -167
- package/dist/epistemicQuestions-B_nUclrH.d.ts +0 -214
- package/dist/index-Dct1T70K.d.ts +0 -25
|
@@ -1,377 +0,0 @@
|
|
|
1
|
-
import { VerificationConfidenceTrigger, SLOperator } from '@lucern/confidence';
|
|
2
|
-
import { B as BeliefLifecycleStatus } from './beliefLifecycle-y8WLXqQj.js';
|
|
3
|
-
import { MutationCtx, Id, Doc } from './convex.js';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Epistemic Beliefs API
|
|
7
|
-
*
|
|
8
|
-
* Clean API for managing beliefs in the epistemic spine (epistemicNodes).
|
|
9
|
-
* This is the NEW API that replaces beliefs.ts.
|
|
10
|
-
*
|
|
11
|
-
* Key differences from beliefs.ts:
|
|
12
|
-
* - Writes ONLY to epistemicNodes (no dual-write)
|
|
13
|
-
* - Uses epistemicNodes IDs directly (no runtime ID translation fallback)
|
|
14
|
-
* - Syncs to Neo4j after mutations
|
|
15
|
-
* - Follows Lucern invariants strictly
|
|
16
|
-
*
|
|
17
|
-
* @see /docs/epistemic-invariants/00-epistemic-invariants.md
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
type BeliefConfidenceTrigger = "initial" | "evidence_added" | "evidence_removed" | "contradiction_detected" | "contradiction_resolved" | "manual" | "decay" | "agent_assessment" | "worktree_outcome" | "worktree_completed" | "fusion" | "discount" | "deduction" | "backfill_synthetic" | VerificationConfidenceTrigger;
|
|
21
|
-
declare function resolveBeliefWorktreeId(metadata: Record<string, unknown> | undefined): string | undefined;
|
|
22
|
-
declare function flattenBeliefNode(node: Doc<"epistemicNodes">): {
|
|
23
|
-
_id: any;
|
|
24
|
-
_epistemicNodeId: any;
|
|
25
|
-
_creationTime: any;
|
|
26
|
-
belief: any;
|
|
27
|
-
formulation: any;
|
|
28
|
-
projectId: any;
|
|
29
|
-
topicId: any;
|
|
30
|
-
userId: any;
|
|
31
|
-
confidence: "high" | "medium" | "low";
|
|
32
|
-
status: any;
|
|
33
|
-
beliefStatus: BeliefLifecycleStatus;
|
|
34
|
-
topic: string;
|
|
35
|
-
pillar: string;
|
|
36
|
-
category: string;
|
|
37
|
-
subcategory: string;
|
|
38
|
-
categoryIcon: string;
|
|
39
|
-
supportingEvidence: string[];
|
|
40
|
-
contradictingEvidence: string[];
|
|
41
|
-
testingQuestions: string[];
|
|
42
|
-
linkedInsights: string[];
|
|
43
|
-
createdAt: any;
|
|
44
|
-
updatedAt: any;
|
|
45
|
-
tupleContradicted: boolean;
|
|
46
|
-
sprintId: string | undefined;
|
|
47
|
-
worktreeId: string | undefined;
|
|
48
|
-
sourceBeliefIds: string[];
|
|
49
|
-
criticality: "critical" | "blocking" | "supporting" | "nice_to_have" | "unanalyzed" | "important";
|
|
50
|
-
rationale: string;
|
|
51
|
-
audienceLabel: any;
|
|
52
|
-
policyTags: any;
|
|
53
|
-
sensitivityTier: any;
|
|
54
|
-
exportClass: any;
|
|
55
|
-
anonymizationClass: any;
|
|
56
|
-
};
|
|
57
|
-
declare function applyBeliefConfidenceChange(ctx: MutationCtx, args: {
|
|
58
|
-
nodeId: Id<"epistemicNodes">;
|
|
59
|
-
belief: number;
|
|
60
|
-
disbelief: number;
|
|
61
|
-
uncertainty: number;
|
|
62
|
-
baseRate?: number;
|
|
63
|
-
trigger: BeliefConfidenceTrigger;
|
|
64
|
-
rationale?: string;
|
|
65
|
-
authenticatedUserId: string;
|
|
66
|
-
slOperator?: SLOperator;
|
|
67
|
-
triggeringEvidenceId?: Id<"epistemicNodes">;
|
|
68
|
-
triggeringWorktreeId?: string;
|
|
69
|
-
}): Promise<{
|
|
70
|
-
nodeId: Id<"epistemicNodes">;
|
|
71
|
-
previousConfidence: number;
|
|
72
|
-
newConfidence: number;
|
|
73
|
-
opinion: {
|
|
74
|
-
b: number;
|
|
75
|
-
d: number;
|
|
76
|
-
u: number;
|
|
77
|
-
a: number;
|
|
78
|
-
};
|
|
79
|
-
beliefConfidenceId: Id<"beliefConfidence">;
|
|
80
|
-
}>;
|
|
81
|
-
/**
|
|
82
|
-
* Propagate a confidence change through graph edges whose specs allow it.
|
|
83
|
-
*
|
|
84
|
-
* After a belief is scored, this function:
|
|
85
|
-
* 1. Reads the graph-primitives edge propagation specs
|
|
86
|
-
* 2. Traverses matching incoming/outgoing/bidirectional edges hop by hop
|
|
87
|
-
* 3. Applies the edge operator with per-hop damping and hop limits
|
|
88
|
-
* 4. Writes propagated opinions as new beliefConfidence entries
|
|
89
|
-
*/
|
|
90
|
-
declare const propagateConfidenceChange: any;
|
|
91
|
-
/**
|
|
92
|
-
* Create a new belief in the epistemic spine.
|
|
93
|
-
* Returns the epistemicNodes ID directly (not a beliefs ID).
|
|
94
|
-
*/
|
|
95
|
-
declare const create: any;
|
|
96
|
-
/**
|
|
97
|
-
* Get a belief by its epistemicNodes ID.
|
|
98
|
-
*/
|
|
99
|
-
declare const getById: any;
|
|
100
|
-
/**
|
|
101
|
-
* Refine an unscored belief in place.
|
|
102
|
-
*
|
|
103
|
-
* Lucern Invariant #1 + #2: Draft beliefs may be refined in place, but scored
|
|
104
|
-
* beliefs are immutable and must be evolved through forkBelief().
|
|
105
|
-
*/
|
|
106
|
-
declare const refineBelief: any;
|
|
107
|
-
/**
|
|
108
|
-
* Get all beliefs for a project.
|
|
109
|
-
*/
|
|
110
|
-
declare const getByProject: any;
|
|
111
|
-
/**
|
|
112
|
-
* Get all beliefs for a topic.
|
|
113
|
-
*/
|
|
114
|
-
declare const getByTopic: any;
|
|
115
|
-
/**
|
|
116
|
-
* Fork a belief - create a new version while preserving the original.
|
|
117
|
-
* This is the Lucern-compliant way to "update" a belief.
|
|
118
|
-
*
|
|
119
|
-
* Lucern Invariant #1: Beliefs are append-only. Never modify formulation.
|
|
120
|
-
* Lucern Invariant #3: Lineage is permanent.
|
|
121
|
-
*/
|
|
122
|
-
declare const forkBelief: any;
|
|
123
|
-
/**
|
|
124
|
-
* Modulate a belief's confidence.
|
|
125
|
-
*
|
|
126
|
-
* Lucern Invariant #2: Confidence changes are append-only (tracked in beliefConfidence table).
|
|
127
|
-
*/
|
|
128
|
-
declare const modulateConfidence: any;
|
|
129
|
-
/**
|
|
130
|
-
* Update a belief's status.
|
|
131
|
-
*/
|
|
132
|
-
declare const updateStatus: any;
|
|
133
|
-
/**
|
|
134
|
-
* Archive a belief (soft delete).
|
|
135
|
-
* Lucern invariant: Beliefs are never deleted, only archived.
|
|
136
|
-
*/
|
|
137
|
-
declare const archive: any;
|
|
138
|
-
/**
|
|
139
|
-
* Update a belief rationale without changing formulation.
|
|
140
|
-
* Formulation mutability rules are unchanged (use fork/refine paths for wording).
|
|
141
|
-
*/
|
|
142
|
-
declare const updateRationale: any;
|
|
143
|
-
declare const updateStatusInternal: any;
|
|
144
|
-
/**
|
|
145
|
-
* Get the confidence history for a belief.
|
|
146
|
-
*/
|
|
147
|
-
declare const getConfidenceHistory: any;
|
|
148
|
-
/**
|
|
149
|
-
* Get the lineage of a belief (all forks and parents).
|
|
150
|
-
*/
|
|
151
|
-
declare const getLineage: any;
|
|
152
|
-
/**
|
|
153
|
-
* Get multiple beliefs by their IDs.
|
|
154
|
-
*/
|
|
155
|
-
declare const getByIds: any;
|
|
156
|
-
/**
|
|
157
|
-
* Get all beliefs associated with a worktree via worktreeBeliefCluster.
|
|
158
|
-
*/
|
|
159
|
-
declare const getByWorktree: any;
|
|
160
|
-
/**
|
|
161
|
-
* Update a belief's pillar/topic categorization.
|
|
162
|
-
* Uses canonical epistemicNodes IDs.
|
|
163
|
-
*/
|
|
164
|
-
declare const updatePillar: any;
|
|
165
|
-
/**
|
|
166
|
-
* Get counts of beliefs by status for a project.
|
|
167
|
-
*/
|
|
168
|
-
declare const getCountByStatus: any;
|
|
169
|
-
/**
|
|
170
|
-
* Create an edge between two beliefs in the epistemic spine.
|
|
171
|
-
* This works with epistemicNodes IDs directly (no legacy lookup needed).
|
|
172
|
-
*/
|
|
173
|
-
declare const linkBeliefs: any;
|
|
174
|
-
/**
|
|
175
|
-
* Link an insight (evidence) to a belief.
|
|
176
|
-
* Creates an edge from evidence → belief with appropriate type.
|
|
177
|
-
*/
|
|
178
|
-
declare const linkEvidence: any;
|
|
179
|
-
/**
|
|
180
|
-
* Remove the link between an insight and a belief.
|
|
181
|
-
*/
|
|
182
|
-
declare const unlinkEvidence: any;
|
|
183
|
-
/**
|
|
184
|
-
* Get a belief along with all its linked evidence.
|
|
185
|
-
*/
|
|
186
|
-
declare const getWithEvidence: any;
|
|
187
|
-
/**
|
|
188
|
-
* Get all relationships (edges) for a belief.
|
|
189
|
-
*/
|
|
190
|
-
declare const getRelationships: any;
|
|
191
|
-
/**
|
|
192
|
-
* Delete a relationship (edge) between nodes.
|
|
193
|
-
*/
|
|
194
|
-
declare const deleteRelationship: any;
|
|
195
|
-
/**
|
|
196
|
-
* Update a belief's criticality level.
|
|
197
|
-
*/
|
|
198
|
-
declare const updateCriticality: any;
|
|
199
|
-
/**
|
|
200
|
-
* Batch update criticality for multiple beliefs.
|
|
201
|
-
* Uses canonical epistemicNodes IDs.
|
|
202
|
-
*/
|
|
203
|
-
declare const batchUpdateCriticality: any;
|
|
204
|
-
/**
|
|
205
|
-
* Get beliefs by criticality level.
|
|
206
|
-
*/
|
|
207
|
-
declare const getByCriticality: any;
|
|
208
|
-
/**
|
|
209
|
-
* Get beliefs that haven't been analyzed yet.
|
|
210
|
-
* Used by BI agents for batch processing.
|
|
211
|
-
*/
|
|
212
|
-
declare const getUnanalyzed: any;
|
|
213
|
-
/**
|
|
214
|
-
* Get all beliefs for a project (system level - no auth check).
|
|
215
|
-
* Used by BI agents and thesis audit agents.
|
|
216
|
-
*/
|
|
217
|
-
declare const getByProjectSystem: any;
|
|
218
|
-
/**
|
|
219
|
-
* Get beliefs filtered by pillar/topic.
|
|
220
|
-
*/
|
|
221
|
-
declare const getByPillar: any;
|
|
222
|
-
/**
|
|
223
|
-
* Get the belief cluster for a worktree.
|
|
224
|
-
* Returns all beliefs linked to the worktree and their relationships.
|
|
225
|
-
*/
|
|
226
|
-
declare const getWorktreeCluster: any;
|
|
227
|
-
/**
|
|
228
|
-
* Internal query to get beliefs for a project.
|
|
229
|
-
* Returns epistemicNodes in legacy beliefs format for backward compatibility.
|
|
230
|
-
*
|
|
231
|
-
* @internal Use by other Convex functions only
|
|
232
|
-
*/
|
|
233
|
-
declare const internalGetByProject: any;
|
|
234
|
-
/**
|
|
235
|
-
* Internal query to get beliefs for a topic.
|
|
236
|
-
*
|
|
237
|
-
* @internal Use by other Convex functions only
|
|
238
|
-
*/
|
|
239
|
-
declare const internalGetByTopic: any;
|
|
240
|
-
/**
|
|
241
|
-
* Internal query to get active beliefs for a project.
|
|
242
|
-
*
|
|
243
|
-
* @internal Use by other Convex functions only
|
|
244
|
-
*/
|
|
245
|
-
declare const internalGetActive: any;
|
|
246
|
-
/**
|
|
247
|
-
* Internal query to get a single belief by ID.
|
|
248
|
-
* Uses canonical epistemicNodes IDs.
|
|
249
|
-
*
|
|
250
|
-
* @internal Use by other Convex functions only
|
|
251
|
-
*/
|
|
252
|
-
declare const internalGetById: any;
|
|
253
|
-
/**
|
|
254
|
-
* Internal mutation to create a belief.
|
|
255
|
-
* Creates ONLY in epistemicNodes (no dual-write).
|
|
256
|
-
*
|
|
257
|
-
* @internal Use by other Convex functions only
|
|
258
|
-
*/
|
|
259
|
-
declare const internalCreate: any;
|
|
260
|
-
/**
|
|
261
|
-
* Get recent confidence changes for beliefs in a project.
|
|
262
|
-
* Shows beliefs that have had confidence updates via propagation, decay,
|
|
263
|
-
* or other users - useful for "Attention Needed" dashboard panel.
|
|
264
|
-
*/
|
|
265
|
-
declare const getRecentConfidenceChanges: any;
|
|
266
|
-
/**
|
|
267
|
-
* Backfill synthetic t0 opinion-history rows for legacy beliefs that have
|
|
268
|
-
* node-level opinion/confidence metadata but no beliefConfidence history.
|
|
269
|
-
*
|
|
270
|
-
* Run with:
|
|
271
|
-
* npx convex run epistemicBeliefs:backfillSyntheticOpinionHistory '{"limit":100}'
|
|
272
|
-
*/
|
|
273
|
-
declare const backfillSyntheticOpinionHistory: any;
|
|
274
|
-
/**
|
|
275
|
-
* Backfill mandatory priors for legacy beliefs created before LKC-2.
|
|
276
|
-
*
|
|
277
|
-
* Run with:
|
|
278
|
-
* npx convex run epistemicBeliefs:backfillMandatoryPriors '{"limit":100}'
|
|
279
|
-
*/
|
|
280
|
-
declare const backfillMandatoryPriors: any;
|
|
281
|
-
/**
|
|
282
|
-
* Backfill valence + certainty on beliefConfidence records and epistemicNodes metadata.
|
|
283
|
-
* Converts existing single-number confidence to two-axis:
|
|
284
|
-
* valence = confidence * 2 - 1 (maps 0→-1, 0.5→0, 1→+1)
|
|
285
|
-
* certainty = |confidence - 0.5| * 2 (maps 0.5→0, 0/1→1)
|
|
286
|
-
*
|
|
287
|
-
* Run with: npx convex run epistemicBeliefs:backfillTwoAxisConfidence '{}'
|
|
288
|
-
*/
|
|
289
|
-
declare const backfillTwoAxisConfidence: any;
|
|
290
|
-
/**
|
|
291
|
-
* Backfill: Create relates_to_thesis edges for confidence-bearing beliefs in a project.
|
|
292
|
-
*
|
|
293
|
-
* When modulateConfidence was missing the edge-creation step, beliefs got scored
|
|
294
|
-
* but never linked to the project's theme node. This backfill fixes that.
|
|
295
|
-
*
|
|
296
|
-
* Run: npx convex run epistemicBeliefs:backfillScoredBeliefEdges '{"projectId":"<id>"}'
|
|
297
|
-
* Dry run first: npx convex run epistemicBeliefs:backfillScoredBeliefEdges '{"projectId":"<id>","dryRun":true}'
|
|
298
|
-
*/
|
|
299
|
-
declare const backfillScoredBeliefEdges: any;
|
|
300
|
-
/**
|
|
301
|
-
* @deprecated Legacy sprint backfill — removed. Sprints are D-tier.
|
|
302
|
-
* Kept as no-op stub to avoid breaking deployed function references.
|
|
303
|
-
*/
|
|
304
|
-
declare const backfillBeliefSprintIds: any;
|
|
305
|
-
/**
|
|
306
|
-
* Get belief cluster positions for visualization.
|
|
307
|
-
* Classifies each belief as "clustered" (in a worktree) or "unprocessed"
|
|
308
|
-
* based on worktreeBeliefCluster membership.
|
|
309
|
-
*
|
|
310
|
-
* Used by PillarDetailPanel, PillarsPanel, BeliefListPanel.
|
|
311
|
-
*/
|
|
312
|
-
declare const getBeliefClusterPositions: any;
|
|
313
|
-
/**
|
|
314
|
-
* Reassign a batch of belief nodes to a different topic.
|
|
315
|
-
*
|
|
316
|
-
* Used by the density-based auto-branching system when beliefs are moved
|
|
317
|
-
* from a parent topic into newly created subtopics. Patches `topicId`
|
|
318
|
-
* and `updatedAt` on the target beliefs, and also reassigns any questions
|
|
319
|
-
* and evidence nodes that are connected to the reassigned beliefs via edges.
|
|
320
|
-
*
|
|
321
|
-
* Skips nodes that don't exist or aren't active.
|
|
322
|
-
*/
|
|
323
|
-
declare const reassignBeliefsTopic: any;
|
|
324
|
-
|
|
325
|
-
type epistemicBeliefs_BeliefConfidenceTrigger = BeliefConfidenceTrigger;
|
|
326
|
-
declare const epistemicBeliefs_applyBeliefConfidenceChange: typeof applyBeliefConfidenceChange;
|
|
327
|
-
declare const epistemicBeliefs_archive: typeof archive;
|
|
328
|
-
declare const epistemicBeliefs_backfillBeliefSprintIds: typeof backfillBeliefSprintIds;
|
|
329
|
-
declare const epistemicBeliefs_backfillMandatoryPriors: typeof backfillMandatoryPriors;
|
|
330
|
-
declare const epistemicBeliefs_backfillScoredBeliefEdges: typeof backfillScoredBeliefEdges;
|
|
331
|
-
declare const epistemicBeliefs_backfillSyntheticOpinionHistory: typeof backfillSyntheticOpinionHistory;
|
|
332
|
-
declare const epistemicBeliefs_backfillTwoAxisConfidence: typeof backfillTwoAxisConfidence;
|
|
333
|
-
declare const epistemicBeliefs_batchUpdateCriticality: typeof batchUpdateCriticality;
|
|
334
|
-
declare const epistemicBeliefs_create: typeof create;
|
|
335
|
-
declare const epistemicBeliefs_deleteRelationship: typeof deleteRelationship;
|
|
336
|
-
declare const epistemicBeliefs_flattenBeliefNode: typeof flattenBeliefNode;
|
|
337
|
-
declare const epistemicBeliefs_forkBelief: typeof forkBelief;
|
|
338
|
-
declare const epistemicBeliefs_getBeliefClusterPositions: typeof getBeliefClusterPositions;
|
|
339
|
-
declare const epistemicBeliefs_getByCriticality: typeof getByCriticality;
|
|
340
|
-
declare const epistemicBeliefs_getById: typeof getById;
|
|
341
|
-
declare const epistemicBeliefs_getByIds: typeof getByIds;
|
|
342
|
-
declare const epistemicBeliefs_getByPillar: typeof getByPillar;
|
|
343
|
-
declare const epistemicBeliefs_getByProject: typeof getByProject;
|
|
344
|
-
declare const epistemicBeliefs_getByProjectSystem: typeof getByProjectSystem;
|
|
345
|
-
declare const epistemicBeliefs_getByTopic: typeof getByTopic;
|
|
346
|
-
declare const epistemicBeliefs_getByWorktree: typeof getByWorktree;
|
|
347
|
-
declare const epistemicBeliefs_getConfidenceHistory: typeof getConfidenceHistory;
|
|
348
|
-
declare const epistemicBeliefs_getCountByStatus: typeof getCountByStatus;
|
|
349
|
-
declare const epistemicBeliefs_getLineage: typeof getLineage;
|
|
350
|
-
declare const epistemicBeliefs_getRecentConfidenceChanges: typeof getRecentConfidenceChanges;
|
|
351
|
-
declare const epistemicBeliefs_getRelationships: typeof getRelationships;
|
|
352
|
-
declare const epistemicBeliefs_getUnanalyzed: typeof getUnanalyzed;
|
|
353
|
-
declare const epistemicBeliefs_getWithEvidence: typeof getWithEvidence;
|
|
354
|
-
declare const epistemicBeliefs_getWorktreeCluster: typeof getWorktreeCluster;
|
|
355
|
-
declare const epistemicBeliefs_internalCreate: typeof internalCreate;
|
|
356
|
-
declare const epistemicBeliefs_internalGetActive: typeof internalGetActive;
|
|
357
|
-
declare const epistemicBeliefs_internalGetById: typeof internalGetById;
|
|
358
|
-
declare const epistemicBeliefs_internalGetByProject: typeof internalGetByProject;
|
|
359
|
-
declare const epistemicBeliefs_internalGetByTopic: typeof internalGetByTopic;
|
|
360
|
-
declare const epistemicBeliefs_linkBeliefs: typeof linkBeliefs;
|
|
361
|
-
declare const epistemicBeliefs_linkEvidence: typeof linkEvidence;
|
|
362
|
-
declare const epistemicBeliefs_modulateConfidence: typeof modulateConfidence;
|
|
363
|
-
declare const epistemicBeliefs_propagateConfidenceChange: typeof propagateConfidenceChange;
|
|
364
|
-
declare const epistemicBeliefs_reassignBeliefsTopic: typeof reassignBeliefsTopic;
|
|
365
|
-
declare const epistemicBeliefs_refineBelief: typeof refineBelief;
|
|
366
|
-
declare const epistemicBeliefs_resolveBeliefWorktreeId: typeof resolveBeliefWorktreeId;
|
|
367
|
-
declare const epistemicBeliefs_unlinkEvidence: typeof unlinkEvidence;
|
|
368
|
-
declare const epistemicBeliefs_updateCriticality: typeof updateCriticality;
|
|
369
|
-
declare const epistemicBeliefs_updatePillar: typeof updatePillar;
|
|
370
|
-
declare const epistemicBeliefs_updateRationale: typeof updateRationale;
|
|
371
|
-
declare const epistemicBeliefs_updateStatus: typeof updateStatus;
|
|
372
|
-
declare const epistemicBeliefs_updateStatusInternal: typeof updateStatusInternal;
|
|
373
|
-
declare namespace epistemicBeliefs {
|
|
374
|
-
export { type epistemicBeliefs_BeliefConfidenceTrigger as BeliefConfidenceTrigger, epistemicBeliefs_applyBeliefConfidenceChange as applyBeliefConfidenceChange, epistemicBeliefs_archive as archive, epistemicBeliefs_backfillBeliefSprintIds as backfillBeliefSprintIds, epistemicBeliefs_backfillMandatoryPriors as backfillMandatoryPriors, epistemicBeliefs_backfillScoredBeliefEdges as backfillScoredBeliefEdges, epistemicBeliefs_backfillSyntheticOpinionHistory as backfillSyntheticOpinionHistory, epistemicBeliefs_backfillTwoAxisConfidence as backfillTwoAxisConfidence, epistemicBeliefs_batchUpdateCriticality as batchUpdateCriticality, epistemicBeliefs_create as create, epistemicBeliefs_deleteRelationship as deleteRelationship, epistemicBeliefs_flattenBeliefNode as flattenBeliefNode, epistemicBeliefs_forkBelief as forkBelief, epistemicBeliefs_getBeliefClusterPositions as getBeliefClusterPositions, epistemicBeliefs_getByCriticality as getByCriticality, epistemicBeliefs_getById as getById, epistemicBeliefs_getByIds as getByIds, epistemicBeliefs_getByPillar as getByPillar, epistemicBeliefs_getByProject as getByProject, epistemicBeliefs_getByProjectSystem as getByProjectSystem, epistemicBeliefs_getByTopic as getByTopic, epistemicBeliefs_getByWorktree as getByWorktree, epistemicBeliefs_getConfidenceHistory as getConfidenceHistory, epistemicBeliefs_getCountByStatus as getCountByStatus, epistemicBeliefs_getLineage as getLineage, epistemicBeliefs_getRecentConfidenceChanges as getRecentConfidenceChanges, epistemicBeliefs_getRelationships as getRelationships, epistemicBeliefs_getUnanalyzed as getUnanalyzed, epistemicBeliefs_getWithEvidence as getWithEvidence, epistemicBeliefs_getWorktreeCluster as getWorktreeCluster, epistemicBeliefs_internalCreate as internalCreate, epistemicBeliefs_internalGetActive as internalGetActive, epistemicBeliefs_internalGetById as internalGetById, epistemicBeliefs_internalGetByProject as internalGetByProject, epistemicBeliefs_internalGetByTopic as internalGetByTopic, epistemicBeliefs_linkBeliefs as linkBeliefs, epistemicBeliefs_linkEvidence as linkEvidence, epistemicBeliefs_modulateConfidence as modulateConfidence, epistemicBeliefs_propagateConfidenceChange as propagateConfidenceChange, epistemicBeliefs_reassignBeliefsTopic as reassignBeliefsTopic, epistemicBeliefs_refineBelief as refineBelief, epistemicBeliefs_resolveBeliefWorktreeId as resolveBeliefWorktreeId, epistemicBeliefs_unlinkEvidence as unlinkEvidence, epistemicBeliefs_updateCriticality as updateCriticality, epistemicBeliefs_updatePillar as updatePillar, epistemicBeliefs_updateRationale as updateRationale, epistemicBeliefs_updateStatus as updateStatus, epistemicBeliefs_updateStatusInternal as updateStatusInternal };
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
export { getRelationships as A, type BeliefConfidenceTrigger as B, getUnanalyzed as C, getWithEvidence as D, getWorktreeCluster as E, internalCreate as F, internalGetActive as G, internalGetById as H, internalGetByProject as I, internalGetByTopic as J, linkBeliefs as K, linkEvidence as L, modulateConfidence as M, propagateConfidenceChange as N, reassignBeliefsTopic as O, refineBelief as P, resolveBeliefWorktreeId as Q, unlinkEvidence as R, updateCriticality as S, updatePillar as T, updateRationale as U, updateStatus as V, updateStatusInternal as W, applyBeliefConfidenceChange as a, archive as b, backfillBeliefSprintIds as c, backfillMandatoryPriors as d, epistemicBeliefs as e, backfillScoredBeliefEdges as f, backfillSyntheticOpinionHistory as g, backfillTwoAxisConfidence as h, batchUpdateCriticality as i, create as j, deleteRelationship as k, flattenBeliefNode as l, forkBelief as m, getBeliefClusterPositions as n, getByCriticality as o, getById as p, getByIds as q, getByPillar as r, getByProject as s, getByProjectSystem as t, getByTopic as u, getByWorktree as v, getConfidenceHistory as w, getCountByStatus as x, getLineage as y, getRecentConfidenceChanges as z };
|
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
import * as convex_values from 'convex/values';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Epistemic Edges - CRUD operations for the knowledge graph relationships
|
|
5
|
-
*
|
|
6
|
-
* Every "supports", "contradicts", "derived_from" relationship in StackOS is an edge.
|
|
7
|
-
* Edges connect epistemic nodes and carry metadata about the relationship.
|
|
8
|
-
*
|
|
9
|
-
* @see /docs/architecture/EPISTEMIC_SPINE.md
|
|
10
|
-
*/
|
|
11
|
-
/**
|
|
12
|
-
* Epistemic Layer Validator for edges
|
|
13
|
-
*/
|
|
14
|
-
declare const epistemicLayerValidator: convex_values.VUnion<"L4" | "L3" | "L2" | "L1" | "ontological" | "organizational", [convex_values.VLiteral<"L4", "required">, convex_values.VLiteral<"L3", "required">, convex_values.VLiteral<"L2", "required">, convex_values.VLiteral<"L1", "required">, convex_values.VLiteral<"ontological", "required">, convex_values.VLiteral<"organizational", "required">], "required", never>;
|
|
15
|
-
declare const edgeTypeValidator: convex_values.VUnion<"supports" | "informs" | "depends_on" | "derived_from" | "contains" | "tests" | "based_on_belief" | "based_on_question" | "blocked_by_contradiction" | "informed_by_theme" | "works_at" | "invested_in" | "competes_with" | "participates_in" | "founded_by" | "evaluates" | "performs" | "function_in" | "impacts" | "raised_from" | "mentioned_in" | "perspective_on" | "supersedes" | "responds_to" | "belongs_to" | "relates_to_thesis" | "plays_theme" | "contradicts" | "explores" | "qualifies" | "scoped_by" | "same_as" | "counterfactual_of" | "cascade_to" | "cascade_from" | "mutually_exclusive" | "correlates_with" | "amplifies" | "precondition_for" | "in_tension_with" | "falsified_by" | "exclusive_with" | "collapses_if" | "strengthened_by" | "weakened_by" | "alternative_to" | "subsumes" | "validated_by" | "required_for" | "blocks" | "prerequisite_for" | "parallel_to" | "corroborates" | "extends" | "same_source_as" | "same_theme_as" | "assumes" | "would_predict" | "analogous_to" | "independent_of", [convex_values.VLiteral<"based_on_belief", "required">, convex_values.VLiteral<"based_on_question", "required">, convex_values.VLiteral<"blocked_by_contradiction", "required">, convex_values.VLiteral<"informed_by_theme", "required">, convex_values.VLiteral<"derived_from", "required">, convex_values.VLiteral<"responds_to", "required">, convex_values.VLiteral<"informs", "required">, convex_values.VLiteral<"tests", "required">, convex_values.VLiteral<"explores", "required">, convex_values.VLiteral<"qualifies", "required">, convex_values.VLiteral<"relates_to_thesis", "required">, convex_values.VLiteral<"belongs_to", "required">, convex_values.VLiteral<"plays_theme", "required">, convex_values.VLiteral<"scoped_by", "required">, convex_values.VLiteral<"evaluates", "required">, convex_values.VLiteral<"perspective_on", "required">, convex_values.VLiteral<"works_at", "required">, convex_values.VLiteral<"mentioned_in", "required">, convex_values.VLiteral<"founded_by", "required">, convex_values.VLiteral<"participates_in", "required">, convex_values.VLiteral<"performs", "required">, convex_values.VLiteral<"function_in", "required">, convex_values.VLiteral<"impacts", "required">, convex_values.VLiteral<"invested_in", "required">, convex_values.VLiteral<"raised_from", "required">, convex_values.VLiteral<"supersedes", "required">, convex_values.VLiteral<"same_as", "required">, convex_values.VLiteral<"depends_on", "required">, convex_values.VLiteral<"supports", "required">, convex_values.VLiteral<"contains", "required">, convex_values.VLiteral<"counterfactual_of", "required">, convex_values.VLiteral<"cascade_to", "required">, convex_values.VLiteral<"cascade_from", "required">, convex_values.VLiteral<"mutually_exclusive", "required">, convex_values.VLiteral<"correlates_with", "required">, convex_values.VLiteral<"amplifies", "required">, convex_values.VLiteral<"precondition_for", "required">, convex_values.VLiteral<"in_tension_with", "required">, convex_values.VLiteral<"falsified_by", "required">, convex_values.VLiteral<"exclusive_with", "required">, convex_values.VLiteral<"contradicts", "required">, convex_values.VLiteral<"collapses_if", "required">, convex_values.VLiteral<"strengthened_by", "required">, convex_values.VLiteral<"weakened_by", "required">, convex_values.VLiteral<"alternative_to", "required">, convex_values.VLiteral<"subsumes", "required">, convex_values.VLiteral<"validated_by", "required">, convex_values.VLiteral<"required_for", "required">, convex_values.VLiteral<"blocks", "required">, convex_values.VLiteral<"prerequisite_for", "required">, convex_values.VLiteral<"parallel_to", "required">, convex_values.VLiteral<"corroborates", "required">, convex_values.VLiteral<"extends", "required">, convex_values.VLiteral<"same_source_as", "required">, convex_values.VLiteral<"same_theme_as", "required">, convex_values.VLiteral<"assumes", "required">, convex_values.VLiteral<"would_predict", "required">, convex_values.VLiteral<"analogous_to", "required">, convex_values.VLiteral<"independent_of", "required">, convex_values.VLiteral<"competes_with", "required">], "required", never>;
|
|
16
|
-
/**
|
|
17
|
-
* Get a single edge by ID
|
|
18
|
-
*/
|
|
19
|
-
declare const get: any;
|
|
20
|
-
/**
|
|
21
|
-
* Get an edge by its global UUID
|
|
22
|
-
*/
|
|
23
|
-
declare const getByGlobalId: any;
|
|
24
|
-
/**
|
|
25
|
-
* Get all edges FROM a specific node
|
|
26
|
-
*/
|
|
27
|
-
declare const getFromNode: any;
|
|
28
|
-
/**
|
|
29
|
-
* Get all edges TO a specific node
|
|
30
|
-
*/
|
|
31
|
-
declare const getToNode: any;
|
|
32
|
-
/**
|
|
33
|
-
* Get edges pointing FROM a node (by any string ID - for backward compat)
|
|
34
|
-
* This is a more flexible version of getFromNode that accepts any string ID
|
|
35
|
-
*
|
|
36
|
-
* Performance: Uses indexes where possible, falls back to globalId search only when needed
|
|
37
|
-
*/
|
|
38
|
-
declare const getBySourceNode: any;
|
|
39
|
-
/**
|
|
40
|
-
* Get edges pointing TO a node (by any string ID - for backward compat)
|
|
41
|
-
* This is a more flexible version of getToNode that accepts any string ID
|
|
42
|
-
*
|
|
43
|
-
* Performance: Uses indexes where possible, falls back to globalId search only when needed
|
|
44
|
-
*/
|
|
45
|
-
declare const getByTargetNode: any;
|
|
46
|
-
/**
|
|
47
|
-
* Get edge between two specific nodes (returns array)
|
|
48
|
-
*/
|
|
49
|
-
declare const getBetween: any;
|
|
50
|
-
/**
|
|
51
|
-
* Get first edge between two specific nodes (returns single edge or null)
|
|
52
|
-
* Used by findEvidencePath for direct edge checking
|
|
53
|
-
*/
|
|
54
|
-
declare const getByNodes: any;
|
|
55
|
-
/**
|
|
56
|
-
* Get all edges of a specific type for a project
|
|
57
|
-
*/
|
|
58
|
-
declare const getByProjectAndType: any;
|
|
59
|
-
/**
|
|
60
|
-
* Get all edges for a project
|
|
61
|
-
*/
|
|
62
|
-
declare const getByProject: any;
|
|
63
|
-
declare const getByTopic: any;
|
|
64
|
-
/**
|
|
65
|
-
* List all edges (unscoped — for internal dev tools).
|
|
66
|
-
* No project filtering, no access control.
|
|
67
|
-
*/
|
|
68
|
-
declare const listAll: any;
|
|
69
|
-
/**
|
|
70
|
-
* Find contradictions: evidence that contradicts a belief (informs with weight < 0)
|
|
71
|
-
* Note: Legacy 'contradicts' edges have been migrated to 'informs' with negative weight
|
|
72
|
-
*/
|
|
73
|
-
declare const findContradictions: any;
|
|
74
|
-
/**
|
|
75
|
-
* Find supporting evidence for a node (informs with weight >= 0)
|
|
76
|
-
* Note: Legacy 'supports' edges have been migrated to 'informs' with positive weight
|
|
77
|
-
*/
|
|
78
|
-
declare const findSupport: any;
|
|
79
|
-
/**
|
|
80
|
-
* Create a new edge
|
|
81
|
-
*
|
|
82
|
-
* Phase 2C: Validates layer rules before creation and stores layer metadata
|
|
83
|
-
*/
|
|
84
|
-
declare const create: any;
|
|
85
|
-
/**
|
|
86
|
-
* Update an edge's properties
|
|
87
|
-
*/
|
|
88
|
-
declare const update: any;
|
|
89
|
-
/**
|
|
90
|
-
* Delete an edge
|
|
91
|
-
*/
|
|
92
|
-
declare const remove: any;
|
|
93
|
-
/**
|
|
94
|
-
* Delete all edges between two nodes
|
|
95
|
-
*/
|
|
96
|
-
declare const removeBetween: any;
|
|
97
|
-
/**
|
|
98
|
-
* Batch create edges (for migrations or bulk operations)
|
|
99
|
-
*
|
|
100
|
-
* Phase 2C: Validates layer rules and stores layer metadata
|
|
101
|
-
*/
|
|
102
|
-
declare const batchCreate: any;
|
|
103
|
-
/**
|
|
104
|
-
* Get the full lineage chain for a node (what it was derived from)
|
|
105
|
-
* Traverses extracted_from and derived_from edges backwards to find sources.
|
|
106
|
-
*
|
|
107
|
-
* Phase 2D: Now supports layer-aware traversal with minLayer/maxLayer constraints
|
|
108
|
-
*
|
|
109
|
-
* Edge semantics:
|
|
110
|
-
* - `Evidence -extracted_from-> Source` means Evidence was extracted from Source
|
|
111
|
-
* - To find lineage, we query edges where current node is fromNodeId (the derived node)
|
|
112
|
-
* and follow toNodeId to find the source/parent nodes
|
|
113
|
-
*/
|
|
114
|
-
declare const getLineage: any;
|
|
115
|
-
/**
|
|
116
|
-
* Get all evidence supporting or contradicting a belief
|
|
117
|
-
* Returns structured data for UI display
|
|
118
|
-
* Note: Legacy 'supports'/'contradicts' edges have been migrated to 'informs' with weight
|
|
119
|
-
*/
|
|
120
|
-
declare const getEvidenceForBelief: any;
|
|
121
|
-
/**
|
|
122
|
-
* Cleanup deprecated edge types from the graph.
|
|
123
|
-
*
|
|
124
|
-
* These edge types were created by the old `createBeliefRelationship` tool
|
|
125
|
-
* before we standardized on `createBeliefConditional` with the 9 proper types.
|
|
126
|
-
*
|
|
127
|
-
* Deprecated types: old generic edges superseded by canonical 6
|
|
128
|
-
*/
|
|
129
|
-
declare const cleanupDeprecatedEdges: any;
|
|
130
|
-
/**
|
|
131
|
-
* Delete specific edges by ID (for manual cleanup)
|
|
132
|
-
*/
|
|
133
|
-
declare const deleteEdges: any;
|
|
134
|
-
/**
|
|
135
|
-
* Get all edges between a set of belief IDs (for belief cluster visualization)
|
|
136
|
-
* Returns edges where both source and target are in the provided belief IDs
|
|
137
|
-
*/
|
|
138
|
-
declare const getClusterEdges: any;
|
|
139
|
-
/**
|
|
140
|
-
* Internal mutation to mirror a Neo4j edge to Convex for reactive UI.
|
|
141
|
-
* Called by createEdge action for edge types that need reactive UI updates.
|
|
142
|
-
*
|
|
143
|
-
* This does NOT replace Neo4j as source of truth - it's a read-optimized mirror
|
|
144
|
-
* for Convex reactive queries used by UI components.
|
|
145
|
-
*/
|
|
146
|
-
declare const mirrorEdgeToConvex: any;
|
|
147
|
-
/**
|
|
148
|
-
* Internal mutation to delete a mirrored edge from Convex.
|
|
149
|
-
* Called by deleteEdge action to maintain Convex mirror consistency.
|
|
150
|
-
*/
|
|
151
|
-
declare const deleteEdgeFromConvex: any;
|
|
152
|
-
/**
|
|
153
|
-
* Internal mutation to update a mirrored edge in Convex.
|
|
154
|
-
* Called by updateEdge action to maintain Convex mirror consistency.
|
|
155
|
-
*/
|
|
156
|
-
declare const updateEdgeInConvex: any;
|
|
157
|
-
|
|
158
|
-
declare const epistemicEdges_batchCreate: typeof batchCreate;
|
|
159
|
-
declare const epistemicEdges_cleanupDeprecatedEdges: typeof cleanupDeprecatedEdges;
|
|
160
|
-
declare const epistemicEdges_create: typeof create;
|
|
161
|
-
declare const epistemicEdges_deleteEdgeFromConvex: typeof deleteEdgeFromConvex;
|
|
162
|
-
declare const epistemicEdges_deleteEdges: typeof deleteEdges;
|
|
163
|
-
declare const epistemicEdges_edgeTypeValidator: typeof edgeTypeValidator;
|
|
164
|
-
declare const epistemicEdges_epistemicLayerValidator: typeof epistemicLayerValidator;
|
|
165
|
-
declare const epistemicEdges_findContradictions: typeof findContradictions;
|
|
166
|
-
declare const epistemicEdges_findSupport: typeof findSupport;
|
|
167
|
-
declare const epistemicEdges_get: typeof get;
|
|
168
|
-
declare const epistemicEdges_getBetween: typeof getBetween;
|
|
169
|
-
declare const epistemicEdges_getByGlobalId: typeof getByGlobalId;
|
|
170
|
-
declare const epistemicEdges_getByNodes: typeof getByNodes;
|
|
171
|
-
declare const epistemicEdges_getByProject: typeof getByProject;
|
|
172
|
-
declare const epistemicEdges_getByProjectAndType: typeof getByProjectAndType;
|
|
173
|
-
declare const epistemicEdges_getBySourceNode: typeof getBySourceNode;
|
|
174
|
-
declare const epistemicEdges_getByTargetNode: typeof getByTargetNode;
|
|
175
|
-
declare const epistemicEdges_getByTopic: typeof getByTopic;
|
|
176
|
-
declare const epistemicEdges_getClusterEdges: typeof getClusterEdges;
|
|
177
|
-
declare const epistemicEdges_getEvidenceForBelief: typeof getEvidenceForBelief;
|
|
178
|
-
declare const epistemicEdges_getFromNode: typeof getFromNode;
|
|
179
|
-
declare const epistemicEdges_getLineage: typeof getLineage;
|
|
180
|
-
declare const epistemicEdges_getToNode: typeof getToNode;
|
|
181
|
-
declare const epistemicEdges_listAll: typeof listAll;
|
|
182
|
-
declare const epistemicEdges_mirrorEdgeToConvex: typeof mirrorEdgeToConvex;
|
|
183
|
-
declare const epistemicEdges_remove: typeof remove;
|
|
184
|
-
declare const epistemicEdges_removeBetween: typeof removeBetween;
|
|
185
|
-
declare const epistemicEdges_update: typeof update;
|
|
186
|
-
declare const epistemicEdges_updateEdgeInConvex: typeof updateEdgeInConvex;
|
|
187
|
-
declare namespace epistemicEdges {
|
|
188
|
-
export { epistemicEdges_batchCreate as batchCreate, epistemicEdges_cleanupDeprecatedEdges as cleanupDeprecatedEdges, epistemicEdges_create as create, epistemicEdges_deleteEdgeFromConvex as deleteEdgeFromConvex, epistemicEdges_deleteEdges as deleteEdges, epistemicEdges_edgeTypeValidator as edgeTypeValidator, epistemicEdges_epistemicLayerValidator as epistemicLayerValidator, epistemicEdges_findContradictions as findContradictions, epistemicEdges_findSupport as findSupport, epistemicEdges_get as get, epistemicEdges_getBetween as getBetween, epistemicEdges_getByGlobalId as getByGlobalId, epistemicEdges_getByNodes as getByNodes, epistemicEdges_getByProject as getByProject, epistemicEdges_getByProjectAndType as getByProjectAndType, epistemicEdges_getBySourceNode as getBySourceNode, epistemicEdges_getByTargetNode as getByTargetNode, epistemicEdges_getByTopic as getByTopic, epistemicEdges_getClusterEdges as getClusterEdges, epistemicEdges_getEvidenceForBelief as getEvidenceForBelief, epistemicEdges_getFromNode as getFromNode, epistemicEdges_getLineage as getLineage, epistemicEdges_getToNode as getToNode, epistemicEdges_listAll as listAll, epistemicEdges_mirrorEdgeToConvex as mirrorEdgeToConvex, epistemicEdges_remove as remove, epistemicEdges_removeBetween as removeBetween, epistemicEdges_update as update, epistemicEdges_updateEdgeInConvex as updateEdgeInConvex };
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
export { remove as A, removeBetween as B, update as C, updateEdgeInConvex as D, create as a, batchCreate as b, cleanupDeprecatedEdges as c, deleteEdgeFromConvex as d, epistemicEdges as e, deleteEdges as f, edgeTypeValidator as g, epistemicLayerValidator as h, findContradictions as i, findSupport as j, get as k, getBetween as l, getByGlobalId as m, getByNodes as n, getByProject as o, getByProjectAndType as p, getBySourceNode as q, getByTargetNode as r, getByTopic as s, getClusterEdges as t, getEvidenceForBelief as u, getFromNode as v, getLineage as w, getToNode as x, listAll as y, mirrorEdgeToConvex as z };
|