@polintpro/proposit-core 0.7.5 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +64 -27
- package/dist/extensions/basics/schemata.d.ts +0 -7
- package/dist/extensions/basics/schemata.d.ts.map +1 -1
- package/dist/lib/consts.d.ts.map +1 -1
- package/dist/lib/consts.js +2 -34
- package/dist/lib/consts.js.map +1 -1
- package/dist/lib/core/argument-library.d.ts +84 -0
- package/dist/lib/core/argument-library.d.ts.map +1 -0
- package/dist/lib/core/argument-library.js +122 -0
- package/dist/lib/core/argument-library.js.map +1 -0
- package/dist/lib/core/diff.d.ts +0 -10
- package/dist/lib/core/diff.d.ts.map +1 -1
- package/dist/lib/core/diff.js +0 -31
- package/dist/lib/core/diff.js.map +1 -1
- package/dist/lib/core/fork-library.d.ts +17 -0
- package/dist/lib/core/fork-library.d.ts.map +1 -0
- package/dist/lib/core/fork-library.js +62 -0
- package/dist/lib/core/fork-library.js.map +1 -0
- package/dist/lib/core/fork-namespace.d.ts +19 -0
- package/dist/lib/core/fork-namespace.d.ts.map +1 -0
- package/dist/lib/core/fork-namespace.js +86 -0
- package/dist/lib/core/fork-namespace.js.map +1 -0
- package/dist/lib/core/fork.d.ts +1 -2
- package/dist/lib/core/fork.d.ts.map +1 -1
- package/dist/lib/core/fork.js +1 -15
- package/dist/lib/core/fork.js.map +1 -1
- package/dist/lib/core/interfaces/index.d.ts +1 -1
- package/dist/lib/core/interfaces/index.d.ts.map +1 -1
- package/dist/lib/core/interfaces/library.interfaces.d.ts +56 -24
- package/dist/lib/core/interfaces/library.interfaces.d.ts.map +1 -1
- package/dist/lib/core/proposit-core.d.ts +110 -0
- package/dist/lib/core/proposit-core.d.ts.map +1 -0
- package/dist/lib/core/proposit-core.js +357 -0
- package/dist/lib/core/proposit-core.js.map +1 -0
- package/dist/lib/index.d.ts +7 -2
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +5 -2
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/schemata/argument.d.ts +0 -3
- package/dist/lib/schemata/argument.d.ts.map +1 -1
- package/dist/lib/schemata/argument.js +0 -9
- package/dist/lib/schemata/argument.js.map +1 -1
- package/dist/lib/schemata/fork.d.ts +71 -12
- package/dist/lib/schemata/fork.d.ts.map +1 -1
- package/dist/lib/schemata/fork.js +47 -19
- package/dist/lib/schemata/fork.js.map +1 -1
- package/dist/lib/schemata/propositional.d.ts +0 -50
- package/dist/lib/schemata/propositional.d.ts.map +1 -1
- package/dist/lib/schemata/propositional.js +0 -39
- package/dist/lib/schemata/propositional.js.map +1 -1
- package/dist/lib/types/checksum.d.ts +0 -2
- package/dist/lib/types/checksum.d.ts.map +1 -1
- package/dist/lib/types/validation.d.ts +2 -2
- package/dist/lib/types/validation.d.ts.map +1 -1
- package/dist/lib/types/validation.js +2 -2
- package/dist/lib/types/validation.js.map +1 -1
- package/package.json +1 -1
- package/dist/lib/core/forks-library.d.ts +0 -58
- package/dist/lib/core/forks-library.d.ts.map +0 -1
- package/dist/lib/core/forks-library.js +0 -142
- package/dist/lib/core/forks-library.js.map +0 -1
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
import { randomUUID } from "node:crypto";
|
|
2
|
+
import { isClaimBound } from "../schemata/propositional.js";
|
|
3
|
+
import { ClaimLibrary } from "./claim-library.js";
|
|
4
|
+
import { SourceLibrary } from "./source-library.js";
|
|
5
|
+
import { ClaimSourceLibrary } from "./claim-source-library.js";
|
|
6
|
+
import { ArgumentLibrary } from "./argument-library.js";
|
|
7
|
+
import { ArgumentEngine } from "./argument-engine.js";
|
|
8
|
+
import { ForkLibrary } from "./fork-library.js";
|
|
9
|
+
import { forkArgumentEngine } from "./fork.js";
|
|
10
|
+
import { diffArguments as standaloneDiffArguments } from "./diff.js";
|
|
11
|
+
/**
|
|
12
|
+
* Top-level orchestrator for the proposit-core system. Owns all five
|
|
13
|
+
* libraries (claims, sources, claim-source associations, forks, arguments)
|
|
14
|
+
* and provides unified snapshot/restore and validation.
|
|
15
|
+
*
|
|
16
|
+
* Construction order follows dependency order:
|
|
17
|
+
* claims -> sources -> claimSources -> forks -> arguments.
|
|
18
|
+
*/
|
|
19
|
+
export class PropositCore {
|
|
20
|
+
claims;
|
|
21
|
+
sources;
|
|
22
|
+
claimSources;
|
|
23
|
+
forks;
|
|
24
|
+
arguments;
|
|
25
|
+
constructor(options) {
|
|
26
|
+
const checksumOpts = options?.checksumConfig
|
|
27
|
+
? { checksumConfig: options.checksumConfig }
|
|
28
|
+
: undefined;
|
|
29
|
+
// Dependency order: claims -> sources -> claimSources -> forks -> arguments
|
|
30
|
+
this.claims =
|
|
31
|
+
options?.claimLibrary ?? new ClaimLibrary(checksumOpts);
|
|
32
|
+
this.sources =
|
|
33
|
+
options?.sourceLibrary ?? new SourceLibrary(checksumOpts);
|
|
34
|
+
this.claimSources =
|
|
35
|
+
options?.claimSourceLibrary ??
|
|
36
|
+
new ClaimSourceLibrary(this.claims, this.sources, checksumOpts);
|
|
37
|
+
this.forks =
|
|
38
|
+
options?.forkLibrary ??
|
|
39
|
+
new ForkLibrary();
|
|
40
|
+
this.arguments =
|
|
41
|
+
options?.argumentLibrary ??
|
|
42
|
+
new ArgumentLibrary({
|
|
43
|
+
claimLibrary: this.claims,
|
|
44
|
+
sourceLibrary: this.sources,
|
|
45
|
+
claimSourceLibrary: this.claimSources,
|
|
46
|
+
}, {
|
|
47
|
+
checksumConfig: options?.checksumConfig,
|
|
48
|
+
positionConfig: options?.positionConfig,
|
|
49
|
+
grammarConfig: options?.grammarConfig,
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Returns a serializable snapshot of the entire PropositCore state,
|
|
54
|
+
* including all libraries.
|
|
55
|
+
*/
|
|
56
|
+
snapshot() {
|
|
57
|
+
return {
|
|
58
|
+
arguments: this.arguments.snapshot(),
|
|
59
|
+
claims: this.claims.snapshot(),
|
|
60
|
+
sources: this.sources.snapshot(),
|
|
61
|
+
claimSources: this.claimSources.snapshot(),
|
|
62
|
+
forks: this.forks.snapshot(),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Restores a `PropositCore` instance from a snapshot. Libraries are
|
|
67
|
+
* restored in dependency order: claims -> sources -> claimSources ->
|
|
68
|
+
* forks -> arguments.
|
|
69
|
+
*
|
|
70
|
+
* @param snapshot - The serialized PropositCore snapshot.
|
|
71
|
+
* @param config - Optional shared configuration for the restored instance.
|
|
72
|
+
* @returns A fully restored `PropositCore` instance.
|
|
73
|
+
*/
|
|
74
|
+
static fromSnapshot(snapshot, config) {
|
|
75
|
+
const checksumOpts = config?.checksumConfig
|
|
76
|
+
? { checksumConfig: config.checksumConfig }
|
|
77
|
+
: undefined;
|
|
78
|
+
// Dependency order: claims -> sources -> claimSources -> forks -> arguments
|
|
79
|
+
const claims = ClaimLibrary.fromSnapshot(snapshot.claims, checksumOpts);
|
|
80
|
+
const sources = SourceLibrary.fromSnapshot(snapshot.sources, checksumOpts);
|
|
81
|
+
const claimSources = ClaimSourceLibrary.fromSnapshot(snapshot.claimSources, claims, sources, checksumOpts);
|
|
82
|
+
const forks = ForkLibrary.fromSnapshot(snapshot.forks);
|
|
83
|
+
const restoredArguments = ArgumentLibrary.fromSnapshot(snapshot.arguments, {
|
|
84
|
+
claimLibrary: claims,
|
|
85
|
+
sourceLibrary: sources,
|
|
86
|
+
claimSourceLibrary: claimSources,
|
|
87
|
+
}, {
|
|
88
|
+
checksumConfig: config?.checksumConfig,
|
|
89
|
+
positionConfig: config?.positionConfig,
|
|
90
|
+
grammarConfig: config?.grammarConfig,
|
|
91
|
+
});
|
|
92
|
+
const core = new PropositCore({
|
|
93
|
+
claimLibrary: claims,
|
|
94
|
+
sourceLibrary: sources,
|
|
95
|
+
claimSourceLibrary: claimSources,
|
|
96
|
+
forkLibrary: forks,
|
|
97
|
+
argumentLibrary: restoredArguments,
|
|
98
|
+
});
|
|
99
|
+
return core;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Runs invariant validation across all managed libraries and merges
|
|
103
|
+
* the results.
|
|
104
|
+
*
|
|
105
|
+
* @returns A combined validation result.
|
|
106
|
+
*/
|
|
107
|
+
validate() {
|
|
108
|
+
const violations = [
|
|
109
|
+
...this.claims.validate().violations,
|
|
110
|
+
...this.sources.validate().violations,
|
|
111
|
+
...this.claimSources.validate().violations,
|
|
112
|
+
...this.forks.validate().violations,
|
|
113
|
+
...this.arguments.validate().violations,
|
|
114
|
+
];
|
|
115
|
+
return { ok: violations.length === 0, violations };
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Forks an argument, cloning its referenced claims, sources, and
|
|
119
|
+
* claim-source associations, then remaps variable claim references to
|
|
120
|
+
* point at the cloned claims. Creates fork records in all six
|
|
121
|
+
* namespaces.
|
|
122
|
+
*
|
|
123
|
+
* @param argumentId - The ID of the argument to fork.
|
|
124
|
+
* @param newArgumentId - The ID for the forked argument.
|
|
125
|
+
* @param options - Optional fork configuration and extras for fork records.
|
|
126
|
+
* @returns The forked engine, remap tables, and the argument fork record.
|
|
127
|
+
*/
|
|
128
|
+
forkArgument(argumentId, newArgumentId, options) {
|
|
129
|
+
// Step 1: Retrieve source engine
|
|
130
|
+
const engine = this.arguments.get(argumentId);
|
|
131
|
+
if (!engine) {
|
|
132
|
+
throw new Error(`Argument "${argumentId}" not found in ArgumentLibrary.`);
|
|
133
|
+
}
|
|
134
|
+
// Step 2: canFork guard
|
|
135
|
+
if (!engine.canFork()) {
|
|
136
|
+
throw new Error(`Forking argument "${argumentId}" is not allowed.`);
|
|
137
|
+
}
|
|
138
|
+
const sourceArg = engine.getArgument();
|
|
139
|
+
const forkId = options?.forkId ?? randomUUID();
|
|
140
|
+
// Build expressionId → premiseId map from source engine snapshot
|
|
141
|
+
const sourceSnap = engine.snapshot();
|
|
142
|
+
const exprToPremiseMap = new Map();
|
|
143
|
+
for (const ps of sourceSnap.premises) {
|
|
144
|
+
for (const expr of ps.expressions.expressions) {
|
|
145
|
+
exprToPremiseMap.set(expr.id, ps.premise.id);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
// Step 3: Clone claims
|
|
149
|
+
const claimRemap = new Map();
|
|
150
|
+
const claimVersionMap = new Map();
|
|
151
|
+
const variables = engine.getVariables();
|
|
152
|
+
const uniqueClaimIds = new Set();
|
|
153
|
+
for (const v of variables) {
|
|
154
|
+
if (isClaimBound(v)) {
|
|
155
|
+
uniqueClaimIds.add(v.claimId);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
for (const originalClaimId of uniqueClaimIds) {
|
|
159
|
+
const currentClaim = this.claims.getCurrent(originalClaimId);
|
|
160
|
+
if (!currentClaim) {
|
|
161
|
+
throw new Error(`Claim "${originalClaimId}" not found in ClaimLibrary.`);
|
|
162
|
+
}
|
|
163
|
+
claimVersionMap.set(originalClaimId, currentClaim.version);
|
|
164
|
+
const newClaimId = randomUUID();
|
|
165
|
+
const { id: _id, version: _v, frozen: _f, checksum: _c, ...claimData } = currentClaim;
|
|
166
|
+
this.claims.create({
|
|
167
|
+
...claimData,
|
|
168
|
+
id: newClaimId,
|
|
169
|
+
});
|
|
170
|
+
claimRemap.set(originalClaimId, newClaimId);
|
|
171
|
+
}
|
|
172
|
+
// Step 4: Clone sources
|
|
173
|
+
const sourceRemap = new Map();
|
|
174
|
+
const sourceVersionMap = new Map();
|
|
175
|
+
const uniqueSourceIds = new Set();
|
|
176
|
+
for (const originalClaimId of uniqueClaimIds) {
|
|
177
|
+
const associations = this.claimSources.getForClaim(originalClaimId);
|
|
178
|
+
for (const assoc of associations) {
|
|
179
|
+
uniqueSourceIds.add(assoc.sourceId);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
for (const originalSourceId of uniqueSourceIds) {
|
|
183
|
+
const currentSource = this.sources.getCurrent(originalSourceId);
|
|
184
|
+
if (!currentSource) {
|
|
185
|
+
throw new Error(`Source "${originalSourceId}" not found in SourceLibrary.`);
|
|
186
|
+
}
|
|
187
|
+
sourceVersionMap.set(originalSourceId, currentSource.version);
|
|
188
|
+
const newSourceId = randomUUID();
|
|
189
|
+
const { id: _id, version: _v, frozen: _f, checksum: _c, ...sourceData } = currentSource;
|
|
190
|
+
this.sources.create({
|
|
191
|
+
...sourceData,
|
|
192
|
+
id: newSourceId,
|
|
193
|
+
});
|
|
194
|
+
sourceRemap.set(originalSourceId, newSourceId);
|
|
195
|
+
}
|
|
196
|
+
// Step 5: Clone associations
|
|
197
|
+
for (const originalClaimId of uniqueClaimIds) {
|
|
198
|
+
const associations = this.claimSources.getForClaim(originalClaimId);
|
|
199
|
+
for (const assoc of associations) {
|
|
200
|
+
const clonedClaimId = claimRemap.get(originalClaimId);
|
|
201
|
+
const clonedSourceId = sourceRemap.get(assoc.sourceId);
|
|
202
|
+
if (clonedSourceId) {
|
|
203
|
+
this.claimSources.add({
|
|
204
|
+
id: randomUUID(),
|
|
205
|
+
claimId: clonedClaimId,
|
|
206
|
+
claimVersion: 0,
|
|
207
|
+
sourceId: clonedSourceId,
|
|
208
|
+
sourceVersion: 0,
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
// Step 6: Fork engine
|
|
214
|
+
const { engine: forkedEngine, remapTable } = forkArgumentEngine(engine, newArgumentId, {
|
|
215
|
+
claimLibrary: this.claims,
|
|
216
|
+
sourceLibrary: this.sources,
|
|
217
|
+
claimSourceLibrary: this.claimSources,
|
|
218
|
+
}, options);
|
|
219
|
+
// Step 7: Remap claim references
|
|
220
|
+
const snap = forkedEngine.snapshot();
|
|
221
|
+
snap.variables.variables = snap.variables.variables.map((v) => {
|
|
222
|
+
if (isClaimBound(v)) {
|
|
223
|
+
const clonedClaimId = claimRemap.get(v.claimId);
|
|
224
|
+
if (clonedClaimId) {
|
|
225
|
+
return {
|
|
226
|
+
...v,
|
|
227
|
+
claimId: clonedClaimId,
|
|
228
|
+
claimVersion: 0,
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
return v;
|
|
233
|
+
});
|
|
234
|
+
const finalEngine = ArgumentEngine.fromSnapshot(snap, this.claims, this.sources, this.claimSources, snap.config?.grammarConfig, "ignore");
|
|
235
|
+
// Step 8: Register engine
|
|
236
|
+
this.arguments.register(finalEngine);
|
|
237
|
+
// Step 9: Create fork records
|
|
238
|
+
// Argument fork record
|
|
239
|
+
const argumentFork = this.forks.arguments.create({
|
|
240
|
+
entityId: newArgumentId,
|
|
241
|
+
forkedFromEntityId: sourceArg.id,
|
|
242
|
+
forkedFromArgumentId: sourceArg.id,
|
|
243
|
+
forkedFromArgumentVersion: sourceArg.version,
|
|
244
|
+
forkId,
|
|
245
|
+
...options?.argumentForkExtras,
|
|
246
|
+
});
|
|
247
|
+
// Premise fork records
|
|
248
|
+
for (const [oldPremiseId, newPremiseId] of remapTable.premises) {
|
|
249
|
+
this.forks.premises.create({
|
|
250
|
+
entityId: newPremiseId,
|
|
251
|
+
forkedFromEntityId: oldPremiseId,
|
|
252
|
+
forkedFromArgumentId: sourceArg.id,
|
|
253
|
+
forkedFromArgumentVersion: sourceArg.version,
|
|
254
|
+
forkId,
|
|
255
|
+
...options?.premiseForkExtras,
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
// Expression fork records
|
|
259
|
+
for (const [oldExprId, newExprId] of remapTable.expressions) {
|
|
260
|
+
this.forks.expressions.create({
|
|
261
|
+
entityId: newExprId,
|
|
262
|
+
forkedFromEntityId: oldExprId,
|
|
263
|
+
forkedFromArgumentId: sourceArg.id,
|
|
264
|
+
forkedFromArgumentVersion: sourceArg.version,
|
|
265
|
+
forkId,
|
|
266
|
+
forkedFromPremiseId: exprToPremiseMap.get(oldExprId),
|
|
267
|
+
...options?.expressionForkExtras,
|
|
268
|
+
});
|
|
269
|
+
}
|
|
270
|
+
// Variable fork records
|
|
271
|
+
for (const [oldVarId, newVarId] of remapTable.variables) {
|
|
272
|
+
this.forks.variables.create({
|
|
273
|
+
entityId: newVarId,
|
|
274
|
+
forkedFromEntityId: oldVarId,
|
|
275
|
+
forkedFromArgumentId: sourceArg.id,
|
|
276
|
+
forkedFromArgumentVersion: sourceArg.version,
|
|
277
|
+
forkId,
|
|
278
|
+
...options?.variableForkExtras,
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
// Claim fork records
|
|
282
|
+
for (const [originalClaimId, clonedClaimId] of claimRemap) {
|
|
283
|
+
this.forks.claims.create({
|
|
284
|
+
entityId: clonedClaimId,
|
|
285
|
+
forkedFromEntityId: originalClaimId,
|
|
286
|
+
forkedFromArgumentId: sourceArg.id,
|
|
287
|
+
forkedFromArgumentVersion: sourceArg.version,
|
|
288
|
+
forkId,
|
|
289
|
+
forkedFromEntityVersion: claimVersionMap.get(originalClaimId),
|
|
290
|
+
...options?.claimForkExtras,
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
// Source fork records
|
|
294
|
+
for (const [originalSourceId, clonedSourceId] of sourceRemap) {
|
|
295
|
+
this.forks.sources.create({
|
|
296
|
+
entityId: clonedSourceId,
|
|
297
|
+
forkedFromEntityId: originalSourceId,
|
|
298
|
+
forkedFromArgumentId: sourceArg.id,
|
|
299
|
+
forkedFromArgumentVersion: sourceArg.version,
|
|
300
|
+
forkId,
|
|
301
|
+
forkedFromEntityVersion: sourceVersionMap.get(originalSourceId),
|
|
302
|
+
...options?.sourceForkExtras,
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
// Step 10: Return
|
|
306
|
+
return {
|
|
307
|
+
engine: finalEngine,
|
|
308
|
+
remapTable,
|
|
309
|
+
claimRemap,
|
|
310
|
+
sourceRemap,
|
|
311
|
+
argumentFork,
|
|
312
|
+
};
|
|
313
|
+
}
|
|
314
|
+
/**
|
|
315
|
+
* Computes a structural diff between two arguments managed by this
|
|
316
|
+
* `PropositCore` instance. Automatically injects fork-aware entity
|
|
317
|
+
* matchers derived from the fork records stored in `this.forks`.
|
|
318
|
+
* Caller-provided matchers in `options` take precedence over the
|
|
319
|
+
* fork-aware defaults.
|
|
320
|
+
*
|
|
321
|
+
* @param argumentIdA - The ID of the "before" argument.
|
|
322
|
+
* @param argumentIdB - The ID of the "after" argument.
|
|
323
|
+
* @param options - Optional diff configuration and comparator overrides.
|
|
324
|
+
* @returns A structural diff between the two arguments.
|
|
325
|
+
*/
|
|
326
|
+
diffArguments(argumentIdA, argumentIdB, options) {
|
|
327
|
+
const engineA = this.arguments.get(argumentIdA);
|
|
328
|
+
if (!engineA) {
|
|
329
|
+
throw new Error(`Argument "${argumentIdA}" not found.`);
|
|
330
|
+
}
|
|
331
|
+
const engineB = this.arguments.get(argumentIdB);
|
|
332
|
+
if (!engineB) {
|
|
333
|
+
throw new Error(`Argument "${argumentIdB}" not found.`);
|
|
334
|
+
}
|
|
335
|
+
// Build fork-aware matchers from fork records
|
|
336
|
+
const forkPremiseMatcher = (a, b) => {
|
|
337
|
+
const record = this.forks.premises.get(b.id);
|
|
338
|
+
return record?.forkedFromEntityId === a.id;
|
|
339
|
+
};
|
|
340
|
+
const forkVariableMatcher = (a, b) => {
|
|
341
|
+
const record = this.forks.variables.get(b.id);
|
|
342
|
+
return record?.forkedFromEntityId === a.id;
|
|
343
|
+
};
|
|
344
|
+
const forkExpressionMatcher = (a, b) => {
|
|
345
|
+
const record = this.forks.expressions.get(b.id);
|
|
346
|
+
return record?.forkedFromEntityId === a.id;
|
|
347
|
+
};
|
|
348
|
+
// Caller-provided matchers override fork-aware matchers
|
|
349
|
+
return standaloneDiffArguments(engineA, engineB, {
|
|
350
|
+
...options,
|
|
351
|
+
premiseMatcher: options?.premiseMatcher ?? forkPremiseMatcher,
|
|
352
|
+
variableMatcher: options?.variableMatcher ?? forkVariableMatcher,
|
|
353
|
+
expressionMatcher: options?.expressionMatcher ?? forkExpressionMatcher,
|
|
354
|
+
});
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
//# sourceMappingURL=proposit-core.js.map
|
|
@@ -0,0 +1 @@
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M,IAAI,KAAK,CAAC,aAAa,WAAW,cAAc,CAAC,CAAA;QAC3D,CAAC;QAED,8CAA8C;QAC9C,MAAM,kBAAkB,GAAG,CAAC,CAAW,EAAE,CAAW,EAAW,EAAE;YAC7D,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;YAC5C,OAAO,MAAM,EAAE,kBAAkB,KAAK,CAAC,CAAC,EAAE,CAAA;QAC9C,CAAC,CAAA;QACD,MAAM,mBAAmB,GAAG,CAAC,CAAO,EAAE,CAAO,EAAW,EAAE;YACtD,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;YAC7C,OAAO,MAAM,EAAE,kBAAkB,KAAK,CAAC,CAAC,EAAE,CAAA;QAC9C,CAAC,CAAA;QACD,MAAM,qBAAqB,GAAG,CAAC,CAAQ,EAAE,CAAQ,EAAW,EAAE;YAC1D,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;YAC/C,OAAO,MAAM,EAAE,kBAAkB,KAAK,CAAC,CAAC,EAAE,CAAA;QAC9C,CAAC,CAAA;QAED,wDAAwD;QACxD,OAAO,uBAAuB,CAAC,OAAO,EAAE,OAAO,EAAE;YAC7C,GAAG,OAAO;YACV,cAAc,EAAE,OAAO,EAAE,cAAc,IAAI,kBAAkB;YAC7D,eAAe,EAAE,OAAO,EAAE,eAAe,IAAI,mBAAmB;YAChE,iBAAiB,EACb,OAAO,EAAE,iBAAiB,IAAI,qBAAqB;SAC1D,CAAC,CAAA;IACN,CAAC;CACJ"}
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -13,7 +13,12 @@ export type { TVariableManagerSnapshot } from "./core/variable-manager.js";
|
|
|
13
13
|
export { ClaimLibrary } from "./core/claim-library.js";
|
|
14
14
|
export { SourceLibrary } from "./core/source-library.js";
|
|
15
15
|
export { ClaimSourceLibrary } from "./core/claim-source-library.js";
|
|
16
|
-
export {
|
|
16
|
+
export { ArgumentLibrary } from "./core/argument-library.js";
|
|
17
|
+
export type { TArgumentLibraryLibraries } from "./core/argument-library.js";
|
|
18
|
+
export { ForkNamespace } from "./core/fork-namespace.js";
|
|
19
|
+
export { ForkLibrary } from "./core/fork-library.js";
|
|
20
|
+
export { PropositCore } from "./core/proposit-core.js";
|
|
21
|
+
export type { TPropositCoreOptions } from "./core/proposit-core.js";
|
|
17
22
|
export * from "./types/evaluation.js";
|
|
18
23
|
export * from "./types/diff.js";
|
|
19
24
|
export * from "./types/mutation.js";
|
|
@@ -22,7 +27,7 @@ export type { TOrderedOperation } from "./utils/changeset.js";
|
|
|
22
27
|
export { createLookup, EMPTY_CLAIM_LOOKUP, EMPTY_SOURCE_LOOKUP, EMPTY_CLAIM_SOURCE_LOOKUP, } from "./utils/lookup.js";
|
|
23
28
|
export * from "./types/checksum.js";
|
|
24
29
|
export { computeHash, canonicalSerialize, entityChecksum, } from "./core/checksum.js";
|
|
25
|
-
export { diffArguments, defaultCompareArgument, defaultCompareVariable, defaultComparePremise, defaultCompareExpression,
|
|
30
|
+
export { diffArguments, defaultCompareArgument, defaultCompareVariable, defaultComparePremise, defaultCompareExpression, } from "./core/diff.js";
|
|
26
31
|
export * from "./types/relationships.js";
|
|
27
32
|
export { analyzePremiseRelationships, buildPremiseProfile, } from "./core/relationships.js";
|
|
28
33
|
export { DEFAULT_CHECKSUM_CONFIG, createChecksumConfig, normalizeChecksumConfig, serializeChecksumConfig, } from "./consts.js";
|
package/dist/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,cAAc,qBAAqB,CAAA;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA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CAAA;AACxC,OAAO,EACH,2BAA2B,EAC3B,mBAAmB,GACtB,MAAM,yBAAyB,CAAA;AAChC,OAAO,EACH,uBAAuB,EACvB,oBAAoB,EACpB,uBAAuB,EACvB,uBAAuB,GAC1B,MAAM,aAAa,CAAA;AACpB,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACvD,YAAY,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AAC3D,YAAY,EACR,gBAAgB,EAChB,0BAA0B,EAC1B,iBAAiB,GACpB,MAAM,8BAA8B,CAAA;AACrC,OAAO,EACH,YAAY,EACZ,YAAY,EACZ,gBAAgB,EAChB,uBAAuB,EACvB,QAAQ,GACX,MAAM,qBAAqB,CAAA;AAC5B,YAAY,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAC9D,cAAc,qBAAqB,CAAA;AACnC,cAAc,oBAAoB,CAAA;AAClC,cAAc,iBAAiB,CAAA;AAC/B,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AACnD,cAAc,oBAAoB,CAAA;AAClC,cAAc,uBAAuB,CAAA;AACrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAA"}
|
package/dist/lib/index.js
CHANGED
|
@@ -8,7 +8,10 @@ export { PremiseEngine } from "./core/premise-engine.js";
|
|
|
8
8
|
export { ClaimLibrary } from "./core/claim-library.js";
|
|
9
9
|
export { SourceLibrary } from "./core/source-library.js";
|
|
10
10
|
export { ClaimSourceLibrary } from "./core/claim-source-library.js";
|
|
11
|
-
export {
|
|
11
|
+
export { ArgumentLibrary } from "./core/argument-library.js";
|
|
12
|
+
export { ForkNamespace } from "./core/fork-namespace.js";
|
|
13
|
+
export { ForkLibrary } from "./core/fork-library.js";
|
|
14
|
+
export { PropositCore } from "./core/proposit-core.js";
|
|
12
15
|
export * from "./types/evaluation.js";
|
|
13
16
|
export * from "./types/diff.js";
|
|
14
17
|
export * from "./types/mutation.js";
|
|
@@ -16,7 +19,7 @@ export { mergeChangesets, orderChangeset } from "./utils/changeset.js";
|
|
|
16
19
|
export { createLookup, EMPTY_CLAIM_LOOKUP, EMPTY_SOURCE_LOOKUP, EMPTY_CLAIM_SOURCE_LOOKUP, } from "./utils/lookup.js";
|
|
17
20
|
export * from "./types/checksum.js";
|
|
18
21
|
export { computeHash, canonicalSerialize, entityChecksum, } from "./core/checksum.js";
|
|
19
|
-
export { diffArguments, defaultCompareArgument, defaultCompareVariable, defaultComparePremise, defaultCompareExpression,
|
|
22
|
+
export { diffArguments, defaultCompareArgument, defaultCompareVariable, defaultComparePremise, defaultCompareExpression, } from "./core/diff.js";
|
|
20
23
|
export * from "./types/relationships.js";
|
|
21
24
|
export { analyzePremiseRelationships, buildPremiseProfile, } from "./core/relationships.js";
|
|
22
25
|
export { DEFAULT_CHECKSUM_CONFIG, createChecksumConfig, normalizeChecksumConfig, serializeChecksumConfig, } from "./consts.js";
|
package/dist/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,cAAc,qBAAqB,CAAA;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAK1D,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AAKxD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAA;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,cAAc,qBAAqB,CAAA;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAK1D,OAAO,EAAE,aAAa,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AClC,cAAc,iBAAiB,CAAA;AAC/B,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AACnD,cAAc,oBAAoB,CAAA;AAClC,cAAc,uBAAuB,CAAA;AACrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAA"}
|
|
@@ -5,9 +5,6 @@ export declare const CoreArgumentSchema: Type.TObject<{
|
|
|
5
5
|
checksum: Type.TString;
|
|
6
6
|
descendantChecksum: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
7
7
|
combinedChecksum: Type.TString;
|
|
8
|
-
forkedFromArgumentId: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
9
|
-
forkedFromArgumentVersion: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
|
|
10
|
-
forkId: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
11
8
|
}>;
|
|
12
9
|
export type TCoreArgument = Static<typeof CoreArgumentSchema>;
|
|
13
10
|
export declare const CoreArgumentRoleStateSchema: Type.TObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"argument.d.ts","sourceRoot":"","sources":["../../../src/lib/schemata/argument.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,EAAE,EAAE,KAAK,MAAM,EAAE,MAAM,SAAS,CAAA;AAG3C,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"argument.d.ts","sourceRoot":"","sources":["../../../src/lib/schemata/argument.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,EAAE,EAAE,KAAK,MAAM,EAAE,MAAM,SAAS,CAAA;AAG3C,eAAO,MAAM,kBAAkB;;;;;;EAoB9B,CAAA;AACD,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAE7D,eAAO,MAAM,2BAA2B;;EAQvC,CAAA;AACD,MAAM,MAAM,sBAAsB,GAAG,MAAM,CAAC,OAAO,2BAA2B,CAAC,CAAA"}
|
|
@@ -12,15 +12,6 @@ export const CoreArgumentSchema = Type.Object({
|
|
|
12
12
|
combinedChecksum: Type.String({
|
|
13
13
|
description: "Hash of checksum + descendantChecksum. Equals checksum when descendantChecksum is null.",
|
|
14
14
|
}),
|
|
15
|
-
forkedFromArgumentId: Type.Optional(Nullable(UUID, {
|
|
16
|
-
description: "The ID of the argument this was forked from, or null if not a fork.",
|
|
17
|
-
})),
|
|
18
|
-
forkedFromArgumentVersion: Type.Optional(Nullable(Type.Number(), {
|
|
19
|
-
description: "The version of the argument this was forked from, or null if not a fork.",
|
|
20
|
-
})),
|
|
21
|
-
forkId: Type.Optional(Nullable(UUID, {
|
|
22
|
-
description: "References the fork record this entity belongs to, or null if not from a fork.",
|
|
23
|
-
})),
|
|
24
15
|
}, {
|
|
25
16
|
additionalProperties: true,
|
|
26
17
|
description: "Core argument identity: ID and version number.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"argument.js","sourceRoot":"","sources":["../../../src/lib/schemata/argument.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,EAAE,EAAe,MAAM,SAAS,CAAA;AAC3C,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAE5C,MAAM,CAAC,MAAM,kBAAkB,GAAG,IAAI,CAAC,MAAM,CACzC;IACI,EAAE,EAAE,IAAI;IACR,OAAO,EAAE,IAAI,CAAC,MAAM,EAAE;IACtB,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,WAAW,EAAE,6CAA6C;KAC7D,CAAC;IACF,kBAAkB,EAAE,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE;QACxC,WAAW,EACP,gGAAgG;KACvG,CAAC;IACF,gBAAgB,EAAE,IAAI,CAAC,MAAM,CAAC;QAC1B,WAAW,EACP,yFAAyF;KAChG,CAAC;
|
|
1
|
+
{"version":3,"file":"argument.js","sourceRoot":"","sources":["../../../src/lib/schemata/argument.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,EAAE,EAAe,MAAM,SAAS,CAAA;AAC3C,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAE5C,MAAM,CAAC,MAAM,kBAAkB,GAAG,IAAI,CAAC,MAAM,CACzC;IACI,EAAE,EAAE,IAAI;IACR,OAAO,EAAE,IAAI,CAAC,MAAM,EAAE;IACtB,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,WAAW,EAAE,6CAA6C;KAC7D,CAAC;IACF,kBAAkB,EAAE,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE;QACxC,WAAW,EACP,gGAAgG;KACvG,CAAC;IACF,gBAAgB,EAAE,IAAI,CAAC,MAAM,CAAC;QAC1B,WAAW,EACP,yFAAyF;KAChG,CAAC;CACL,EACD;IACI,oBAAoB,EAAE,IAAI;IAC1B,WAAW,EAAE,gDAAgD;CAChE,CACJ,CAAA;AAGD,MAAM,CAAC,MAAM,2BAA2B,GAAG,IAAI,CAAC,MAAM,CAClD;IACI,mBAAmB,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;CAC3C,EACD;IACI,WAAW,EACP,sGAAsG;CAC7G,CACJ,CAAA"}
|
|
@@ -1,17 +1,76 @@
|
|
|
1
1
|
import Type, { type Static } from "typebox";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
3
|
+
* Base schema shared by all entity fork records. Each record tracks that
|
|
4
|
+
* a specific entity was created as part of a fork operation.
|
|
5
|
+
*
|
|
6
|
+
* No checksum field — fork records are immutable after creation.
|
|
6
7
|
*/
|
|
7
|
-
export declare const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
checksum: Type.TString;
|
|
8
|
+
export declare const CoreEntityForkRecordSchema: Type.TObject<{
|
|
9
|
+
entityId: Type.TString;
|
|
10
|
+
forkedFromEntityId: Type.TString;
|
|
11
|
+
forkedFromArgumentId: Type.TString;
|
|
12
|
+
forkedFromArgumentVersion: Type.TNumber;
|
|
13
|
+
forkId: Type.TString;
|
|
14
14
|
}>;
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
export type TCoreEntityForkRecord = Static<typeof CoreEntityForkRecordSchema>;
|
|
16
|
+
/** Argument fork record. Identical to base. */
|
|
17
|
+
export declare const CoreArgumentForkRecordSchema: Type.TObject<{
|
|
18
|
+
entityId: Type.TString;
|
|
19
|
+
forkedFromEntityId: Type.TString;
|
|
20
|
+
forkedFromArgumentId: Type.TString;
|
|
21
|
+
forkedFromArgumentVersion: Type.TNumber;
|
|
22
|
+
forkId: Type.TString;
|
|
23
|
+
}>;
|
|
24
|
+
export type TCoreArgumentForkRecord = TCoreEntityForkRecord;
|
|
25
|
+
/** Premise fork record. Identical to base. */
|
|
26
|
+
export declare const CorePremiseForkRecordSchema: Type.TObject<{
|
|
27
|
+
entityId: Type.TString;
|
|
28
|
+
forkedFromEntityId: Type.TString;
|
|
29
|
+
forkedFromArgumentId: Type.TString;
|
|
30
|
+
forkedFromArgumentVersion: Type.TNumber;
|
|
31
|
+
forkId: Type.TString;
|
|
32
|
+
}>;
|
|
33
|
+
export type TCorePremiseForkRecord = TCoreEntityForkRecord;
|
|
34
|
+
/** Expression fork record. Adds source premise reference. */
|
|
35
|
+
export declare const CoreExpressionForkRecordSchema: Type.TIntersect<[Type.TObject<{
|
|
36
|
+
entityId: Type.TString;
|
|
37
|
+
forkedFromEntityId: Type.TString;
|
|
38
|
+
forkedFromArgumentId: Type.TString;
|
|
39
|
+
forkedFromArgumentVersion: Type.TNumber;
|
|
40
|
+
forkId: Type.TString;
|
|
41
|
+
}>, Type.TObject<{
|
|
42
|
+
forkedFromPremiseId: Type.TString;
|
|
43
|
+
}>]>;
|
|
44
|
+
export type TCoreExpressionForkRecord = Static<typeof CoreExpressionForkRecordSchema>;
|
|
45
|
+
/** Variable fork record. Identical to base. */
|
|
46
|
+
export declare const CoreVariableForkRecordSchema: Type.TObject<{
|
|
47
|
+
entityId: Type.TString;
|
|
48
|
+
forkedFromEntityId: Type.TString;
|
|
49
|
+
forkedFromArgumentId: Type.TString;
|
|
50
|
+
forkedFromArgumentVersion: Type.TNumber;
|
|
51
|
+
forkId: Type.TString;
|
|
52
|
+
}>;
|
|
53
|
+
export type TCoreVariableForkRecord = TCoreEntityForkRecord;
|
|
54
|
+
/** Claim fork record. Adds version tracking for independently versioned claims. */
|
|
55
|
+
export declare const CoreClaimForkRecordSchema: Type.TIntersect<[Type.TObject<{
|
|
56
|
+
entityId: Type.TString;
|
|
57
|
+
forkedFromEntityId: Type.TString;
|
|
58
|
+
forkedFromArgumentId: Type.TString;
|
|
59
|
+
forkedFromArgumentVersion: Type.TNumber;
|
|
60
|
+
forkId: Type.TString;
|
|
61
|
+
}>, Type.TObject<{
|
|
62
|
+
forkedFromEntityVersion: Type.TNumber;
|
|
63
|
+
}>]>;
|
|
64
|
+
export type TCoreClaimForkRecord = Static<typeof CoreClaimForkRecordSchema>;
|
|
65
|
+
/** Source fork record. Adds version tracking for independently versioned sources. */
|
|
66
|
+
export declare const CoreSourceForkRecordSchema: Type.TIntersect<[Type.TObject<{
|
|
67
|
+
entityId: Type.TString;
|
|
68
|
+
forkedFromEntityId: Type.TString;
|
|
69
|
+
forkedFromArgumentId: Type.TString;
|
|
70
|
+
forkedFromArgumentVersion: Type.TNumber;
|
|
71
|
+
forkId: Type.TString;
|
|
72
|
+
}>, Type.TObject<{
|
|
73
|
+
forkedFromEntityVersion: Type.TNumber;
|
|
74
|
+
}>]>;
|
|
75
|
+
export type TCoreSourceForkRecord = Static<typeof CoreSourceForkRecordSchema>;
|
|
17
76
|
//# sourceMappingURL=fork.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fork.d.ts","sourceRoot":"","sources":["../../../src/lib/schemata/fork.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,EAAE,EAAE,KAAK,MAAM,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"fork.d.ts","sourceRoot":"","sources":["../../../src/lib/schemata/fork.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,EAAE,EAAE,KAAK,MAAM,EAAE,MAAM,SAAS,CAAA;AAO3C;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B;;;;;;EAYtC,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,OAAO,0BAA0B,CAAC,CAAA;AAE7E,+CAA+C;AAC/C,eAAO,MAAM,4BAA4B;;;;;;EAA6B,CAAA;AACtE,MAAM,MAAM,uBAAuB,GAAG,qBAAqB,CAAA;AAE3D,8CAA8C;AAC9C,eAAO,MAAM,2BAA2B;;;;;;EAA6B,CAAA;AACrE,MAAM,MAAM,sBAAsB,GAAG,qBAAqB,CAAA;AAE1D,6DAA6D;AAC7D,eAAO,MAAM,8BAA8B;;;;;;;;IAQ1C,CAAA;AACD,MAAM,MAAM,yBAAyB,GAAG,MAAM,CAC1C,OAAO,8BAA8B,CACxC,CAAA;AAED,+CAA+C;AAC/C,eAAO,MAAM,4BAA4B;;;;;;EAA6B,CAAA;AACtE,MAAM,MAAM,uBAAuB,GAAG,qBAAqB,CAAA;AAE3D,mFAAmF;AACnF,eAAO,MAAM,yBAAyB;;;;;;;;IAWrC,CAAA;AACD,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAE3E,qFAAqF;AACrF,eAAO,MAAM,0BAA0B;;;;;;;;IAWtC,CAAA;AACD,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,OAAO,0BAA0B,CAAC,CAAA"}
|