@lucern/contracts 1.0.32 → 1.0.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist/generated/convexSchemas.d.ts +240 -210
- package/dist/generated/convexSchemas.js +7 -7
- package/dist/generated/convexSchemas.js.map +1 -1
- package/dist/generated/schema-manifest.json +14 -0
- package/dist/index.js +27 -15
- package/dist/index.js.map +1 -1
- package/dist/proof-attestation.json +1 -1
- package/dist/schemas/index.js +27 -15
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/manifest.d.ts +115 -105
- package/dist/schemas/manifest.js +27 -15
- package/dist/schemas/manifest.js.map +1 -1
- package/dist/schemas/tables/kernel/decision.d.ts +3 -3
- package/dist/schemas/tables/kernel/decision.js +3 -3
- package/dist/schemas/tables/kernel/decision.js.map +1 -1
- package/dist/schemas/tables/kernel/epistemic.d.ts +2 -1
- package/dist/schemas/tables/kernel/epistemic.js +3 -1
- package/dist/schemas/tables/kernel/epistemic.js.map +1 -1
- package/dist/schemas/tables/kernel/spine.d.ts +2 -2
- package/dist/schemas/tables/kernel/spine.js +9 -1
- package/dist/schemas/tables/kernel/spine.js.map +1 -1
- package/dist/schemas/tables/kernel/task.d.ts +10 -9
- package/dist/schemas/tables/kernel/task.js +7 -16
- package/dist/schemas/tables/kernel/task.js.map +1 -1
- package/dist/schemas/tables/kernel/worktree.d.ts +6 -6
- package/dist/schemas/tables/kernel/worktree.js +5 -16
- package/dist/schemas/tables/kernel/worktree.js.map +1 -1
- package/dist/schemas.values.js +27 -15
- package/dist/schemas.values.js.map +1 -1
- package/package.json +1 -1
|
@@ -715,6 +715,13 @@
|
|
|
715
715
|
"layer": "K",
|
|
716
716
|
"category": "epistemic",
|
|
717
717
|
"indices": [
|
|
718
|
+
{
|
|
719
|
+
"kind": "index",
|
|
720
|
+
"name": "by_globalId",
|
|
721
|
+
"columns": [
|
|
722
|
+
"globalId"
|
|
723
|
+
]
|
|
724
|
+
},
|
|
718
725
|
{
|
|
719
726
|
"kind": "index",
|
|
720
727
|
"name": "by_topicId",
|
|
@@ -5236,6 +5243,13 @@
|
|
|
5236
5243
|
"layer": "K",
|
|
5237
5244
|
"category": "task",
|
|
5238
5245
|
"indices": [
|
|
5246
|
+
{
|
|
5247
|
+
"kind": "index",
|
|
5248
|
+
"name": "by_globalId",
|
|
5249
|
+
"columns": [
|
|
5250
|
+
"globalId"
|
|
5251
|
+
]
|
|
5252
|
+
},
|
|
5239
5253
|
{
|
|
5240
5254
|
"kind": "index",
|
|
5241
5255
|
"name": "by_topicId",
|
package/dist/index.js
CHANGED
|
@@ -3040,15 +3040,15 @@ var deliberationSessions = defineTable({
|
|
|
3040
3040
|
question: z.string(),
|
|
3041
3041
|
status: z.enum(["running", "completed", "failed"]),
|
|
3042
3042
|
modelSlots: z.array(z.string()),
|
|
3043
|
-
linkedBeliefNodeId:
|
|
3043
|
+
linkedBeliefNodeId: z.string().optional(),
|
|
3044
3044
|
replayBaselineAt: z.number(),
|
|
3045
3045
|
replayHeadAt: z.number().optional(),
|
|
3046
3046
|
replayBaseline: z.any().optional(),
|
|
3047
3047
|
replayDelta: z.any().optional(),
|
|
3048
3048
|
contextBrief: z.string().optional(),
|
|
3049
3049
|
contextSnapshot: z.any().optional(),
|
|
3050
|
-
contradictionIds: z.array(
|
|
3051
|
-
escalationQuestionIds: z.array(
|
|
3050
|
+
contradictionIds: z.array(z.string()),
|
|
3051
|
+
escalationQuestionIds: z.array(z.string()),
|
|
3052
3052
|
uncertaintyZones: z.array(
|
|
3053
3053
|
z.object({
|
|
3054
3054
|
label: z.string(),
|
|
@@ -3206,7 +3206,7 @@ var beliefConfidence = defineTable({
|
|
|
3206
3206
|
triggeringEvidenceIds: z.array(z.string()).optional(),
|
|
3207
3207
|
triggeringQuestionId: z.string().optional(),
|
|
3208
3208
|
triggeringAnswerId: z.string().optional(),
|
|
3209
|
-
triggeringContradictionId:
|
|
3209
|
+
triggeringContradictionId: z.string().optional(),
|
|
3210
3210
|
triggeringWorktreeId: z.string().optional(),
|
|
3211
3211
|
triggeringAgentId: z.string().optional(),
|
|
3212
3212
|
isAgentAssessment: z.boolean().optional()
|
|
@@ -3387,6 +3387,7 @@ var contradictions = defineTable({
|
|
|
3387
3387
|
component: "kernel",
|
|
3388
3388
|
category: "epistemic",
|
|
3389
3389
|
shape: z.object({
|
|
3390
|
+
globalId: z.string(),
|
|
3390
3391
|
topicId: z.string().optional(),
|
|
3391
3392
|
beliefId: z.string(),
|
|
3392
3393
|
supportingInsightIds: z.array(z.string()),
|
|
@@ -3433,6 +3434,7 @@ var contradictions = defineTable({
|
|
|
3433
3434
|
createdBy: z.string()
|
|
3434
3435
|
}),
|
|
3435
3436
|
indices: [
|
|
3437
|
+
{ kind: "index", name: "by_globalId", columns: ["globalId"] },
|
|
3436
3438
|
{ kind: "index", name: "by_topicId", columns: ["topicId"] },
|
|
3437
3439
|
{
|
|
3438
3440
|
kind: "index",
|
|
@@ -11826,7 +11828,13 @@ var epistemicIdentityBackfillMappings = defineTable({
|
|
|
11826
11828
|
category: "spine",
|
|
11827
11829
|
shape: z.object({
|
|
11828
11830
|
mappingId: uuidV7String,
|
|
11829
|
-
entityTable: z.enum([
|
|
11831
|
+
entityTable: z.enum([
|
|
11832
|
+
"epistemicNodes",
|
|
11833
|
+
"epistemicEdges",
|
|
11834
|
+
"worktrees",
|
|
11835
|
+
"tasks",
|
|
11836
|
+
"contradictions"
|
|
11837
|
+
]),
|
|
11830
11838
|
legacyId: z.string().min(1),
|
|
11831
11839
|
legacyField: z.enum([
|
|
11832
11840
|
"_id",
|
|
@@ -11838,6 +11846,8 @@ var epistemicIdentityBackfillMappings = defineTable({
|
|
|
11838
11846
|
"questionId",
|
|
11839
11847
|
"topicId",
|
|
11840
11848
|
"worktreeId",
|
|
11849
|
+
"taskId",
|
|
11850
|
+
"contradictionId",
|
|
11841
11851
|
"globalId",
|
|
11842
11852
|
"fromNodeId",
|
|
11843
11853
|
"toNodeId",
|
|
@@ -12288,6 +12298,7 @@ var tasks = defineTable({
|
|
|
12288
12298
|
component: "kernel",
|
|
12289
12299
|
category: "task",
|
|
12290
12300
|
shape: z.object({
|
|
12301
|
+
globalId: z.string(),
|
|
12291
12302
|
topicId: z.string().optional(),
|
|
12292
12303
|
tenantId: z.string().optional(),
|
|
12293
12304
|
workspaceId: z.string().optional(),
|
|
@@ -12296,7 +12307,7 @@ var tasks = defineTable({
|
|
|
12296
12307
|
status: z.enum(["todo", "in_progress", "blocked", "done"]),
|
|
12297
12308
|
priority: z.enum(["urgent", "high", "medium", "low"]),
|
|
12298
12309
|
dueDate: z.number().optional(),
|
|
12299
|
-
linkedWorktreeId:
|
|
12310
|
+
linkedWorktreeId: z.string().optional(),
|
|
12300
12311
|
linkedBeliefId: z.string().optional(),
|
|
12301
12312
|
linkedQuestionId: z.string().optional(),
|
|
12302
12313
|
taskType: z.enum([
|
|
@@ -12311,8 +12322,8 @@ var tasks = defineTable({
|
|
|
12311
12322
|
]).optional(),
|
|
12312
12323
|
assigneeId: z.string().optional(),
|
|
12313
12324
|
blockedReason: z.string().optional(),
|
|
12314
|
-
blockedBy: z.array(
|
|
12315
|
-
blocks: z.array(
|
|
12325
|
+
blockedBy: z.array(z.string()).optional(),
|
|
12326
|
+
blocks: z.array(z.string()).optional(),
|
|
12316
12327
|
sortOrder: z.number().optional(),
|
|
12317
12328
|
executionOrder: z.number().optional(),
|
|
12318
12329
|
subtasks: z.array(
|
|
@@ -12371,7 +12382,7 @@ var tasks = defineTable({
|
|
|
12371
12382
|
answerExcerpt: z.string().optional(),
|
|
12372
12383
|
answerTimestamp: z.string().optional(),
|
|
12373
12384
|
capturedAsInsight: z.boolean().optional(),
|
|
12374
|
-
insightId:
|
|
12385
|
+
insightId: z.string().optional()
|
|
12375
12386
|
})
|
|
12376
12387
|
).optional(),
|
|
12377
12388
|
linkedCallScriptId: z.string().optional(),
|
|
@@ -12449,7 +12460,7 @@ var tasks = defineTable({
|
|
|
12449
12460
|
}).optional()
|
|
12450
12461
|
}).optional(),
|
|
12451
12462
|
capturedAsEvidence: z.boolean().optional(),
|
|
12452
|
-
capturedInsightId:
|
|
12463
|
+
capturedInsightId: z.string().optional(),
|
|
12453
12464
|
capturedAt: z.number().optional(),
|
|
12454
12465
|
createdBy: z.string(),
|
|
12455
12466
|
createdAt: z.number()
|
|
@@ -12492,6 +12503,7 @@ var tasks = defineTable({
|
|
|
12492
12503
|
completedBy: z.string().optional()
|
|
12493
12504
|
}),
|
|
12494
12505
|
indices: [
|
|
12506
|
+
{ kind: "index", name: "by_globalId", columns: ["globalId"] },
|
|
12495
12507
|
{ kind: "index", name: "by_topicId", columns: ["topicId"] },
|
|
12496
12508
|
{
|
|
12497
12509
|
kind: "index",
|
|
@@ -12653,7 +12665,7 @@ var worktreeBeliefCluster = defineTable({
|
|
|
12653
12665
|
component: "kernel",
|
|
12654
12666
|
category: "worktree",
|
|
12655
12667
|
shape: z.object({
|
|
12656
|
-
worktreeId:
|
|
12668
|
+
worktreeId: z.string(),
|
|
12657
12669
|
beliefId: z.string(),
|
|
12658
12670
|
relationType: z.enum([
|
|
12659
12671
|
"primary",
|
|
@@ -12698,7 +12710,7 @@ var worktrees = defineTable({
|
|
|
12698
12710
|
component: "kernel",
|
|
12699
12711
|
category: "worktree",
|
|
12700
12712
|
shape: z.object({
|
|
12701
|
-
globalId: z.string()
|
|
12713
|
+
globalId: z.string(),
|
|
12702
12714
|
topicId: z.string().optional(),
|
|
12703
12715
|
tenantId: z.string().optional(),
|
|
12704
12716
|
workspaceId: z.string().optional(),
|
|
@@ -12711,8 +12723,8 @@ var worktrees = defineTable({
|
|
|
12711
12723
|
rationale: z.string().optional(),
|
|
12712
12724
|
confidenceImpact: z.enum(["high", "medium", "low"]).optional(),
|
|
12713
12725
|
hypothesis: z.string().optional(),
|
|
12714
|
-
dependsOn: z.array(
|
|
12715
|
-
blocks: z.array(
|
|
12726
|
+
dependsOn: z.array(z.string()).optional(),
|
|
12727
|
+
blocks: z.array(z.string()).optional(),
|
|
12716
12728
|
gate: z.string().optional(),
|
|
12717
12729
|
campaign: z.number().optional(),
|
|
12718
12730
|
lane: z.string().optional(),
|
|
@@ -12817,7 +12829,7 @@ var worktrees = defineTable({
|
|
|
12817
12829
|
epistemicChain: z.object({
|
|
12818
12830
|
capturedAt: z.number(),
|
|
12819
12831
|
capturedBy: z.string(),
|
|
12820
|
-
worktreeId:
|
|
12832
|
+
worktreeId: z.string(),
|
|
12821
12833
|
topicId: z.string().optional(),
|
|
12822
12834
|
primaryBelief: z.object({
|
|
12823
12835
|
id: z.string(),
|