@lucern/contracts 1.0.32 → 1.0.33
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 +6 -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
package/dist/schemas/index.js
CHANGED
|
@@ -2316,15 +2316,15 @@ var deliberationSessions = defineTable({
|
|
|
2316
2316
|
question: z.string(),
|
|
2317
2317
|
status: z.enum(["running", "completed", "failed"]),
|
|
2318
2318
|
modelSlots: z.array(z.string()),
|
|
2319
|
-
linkedBeliefNodeId:
|
|
2319
|
+
linkedBeliefNodeId: z.string().optional(),
|
|
2320
2320
|
replayBaselineAt: z.number(),
|
|
2321
2321
|
replayHeadAt: z.number().optional(),
|
|
2322
2322
|
replayBaseline: z.any().optional(),
|
|
2323
2323
|
replayDelta: z.any().optional(),
|
|
2324
2324
|
contextBrief: z.string().optional(),
|
|
2325
2325
|
contextSnapshot: z.any().optional(),
|
|
2326
|
-
contradictionIds: z.array(
|
|
2327
|
-
escalationQuestionIds: z.array(
|
|
2326
|
+
contradictionIds: z.array(z.string()),
|
|
2327
|
+
escalationQuestionIds: z.array(z.string()),
|
|
2328
2328
|
uncertaintyZones: z.array(
|
|
2329
2329
|
z.object({
|
|
2330
2330
|
label: z.string(),
|
|
@@ -2482,7 +2482,7 @@ var beliefConfidence = defineTable({
|
|
|
2482
2482
|
triggeringEvidenceIds: z.array(z.string()).optional(),
|
|
2483
2483
|
triggeringQuestionId: z.string().optional(),
|
|
2484
2484
|
triggeringAnswerId: z.string().optional(),
|
|
2485
|
-
triggeringContradictionId:
|
|
2485
|
+
triggeringContradictionId: z.string().optional(),
|
|
2486
2486
|
triggeringWorktreeId: z.string().optional(),
|
|
2487
2487
|
triggeringAgentId: z.string().optional(),
|
|
2488
2488
|
isAgentAssessment: z.boolean().optional()
|
|
@@ -2663,6 +2663,7 @@ var contradictions = defineTable({
|
|
|
2663
2663
|
component: "kernel",
|
|
2664
2664
|
category: "epistemic",
|
|
2665
2665
|
shape: z.object({
|
|
2666
|
+
globalId: z.string(),
|
|
2666
2667
|
topicId: z.string().optional(),
|
|
2667
2668
|
beliefId: z.string(),
|
|
2668
2669
|
supportingInsightIds: z.array(z.string()),
|
|
@@ -2709,6 +2710,7 @@ var contradictions = defineTable({
|
|
|
2709
2710
|
createdBy: z.string()
|
|
2710
2711
|
}),
|
|
2711
2712
|
indices: [
|
|
2713
|
+
{ kind: "index", name: "by_globalId", columns: ["globalId"] },
|
|
2712
2714
|
{ kind: "index", name: "by_topicId", columns: ["topicId"] },
|
|
2713
2715
|
{
|
|
2714
2716
|
kind: "index",
|
|
@@ -10345,7 +10347,13 @@ var epistemicIdentityBackfillMappings = defineTable({
|
|
|
10345
10347
|
category: "spine",
|
|
10346
10348
|
shape: z.object({
|
|
10347
10349
|
mappingId: uuidV7String,
|
|
10348
|
-
entityTable: z.enum([
|
|
10350
|
+
entityTable: z.enum([
|
|
10351
|
+
"epistemicNodes",
|
|
10352
|
+
"epistemicEdges",
|
|
10353
|
+
"worktrees",
|
|
10354
|
+
"tasks",
|
|
10355
|
+
"contradictions"
|
|
10356
|
+
]),
|
|
10349
10357
|
legacyId: z.string().min(1),
|
|
10350
10358
|
legacyField: z.enum([
|
|
10351
10359
|
"_id",
|
|
@@ -10357,6 +10365,8 @@ var epistemicIdentityBackfillMappings = defineTable({
|
|
|
10357
10365
|
"questionId",
|
|
10358
10366
|
"topicId",
|
|
10359
10367
|
"worktreeId",
|
|
10368
|
+
"taskId",
|
|
10369
|
+
"contradictionId",
|
|
10360
10370
|
"globalId",
|
|
10361
10371
|
"fromNodeId",
|
|
10362
10372
|
"toNodeId",
|
|
@@ -10807,6 +10817,7 @@ var tasks = defineTable({
|
|
|
10807
10817
|
component: "kernel",
|
|
10808
10818
|
category: "task",
|
|
10809
10819
|
shape: z.object({
|
|
10820
|
+
globalId: z.string(),
|
|
10810
10821
|
topicId: z.string().optional(),
|
|
10811
10822
|
tenantId: z.string().optional(),
|
|
10812
10823
|
workspaceId: z.string().optional(),
|
|
@@ -10815,7 +10826,7 @@ var tasks = defineTable({
|
|
|
10815
10826
|
status: z.enum(["todo", "in_progress", "blocked", "done"]),
|
|
10816
10827
|
priority: z.enum(["urgent", "high", "medium", "low"]),
|
|
10817
10828
|
dueDate: z.number().optional(),
|
|
10818
|
-
linkedWorktreeId:
|
|
10829
|
+
linkedWorktreeId: z.string().optional(),
|
|
10819
10830
|
linkedBeliefId: z.string().optional(),
|
|
10820
10831
|
linkedQuestionId: z.string().optional(),
|
|
10821
10832
|
taskType: z.enum([
|
|
@@ -10830,8 +10841,8 @@ var tasks = defineTable({
|
|
|
10830
10841
|
]).optional(),
|
|
10831
10842
|
assigneeId: z.string().optional(),
|
|
10832
10843
|
blockedReason: z.string().optional(),
|
|
10833
|
-
blockedBy: z.array(
|
|
10834
|
-
blocks: z.array(
|
|
10844
|
+
blockedBy: z.array(z.string()).optional(),
|
|
10845
|
+
blocks: z.array(z.string()).optional(),
|
|
10835
10846
|
sortOrder: z.number().optional(),
|
|
10836
10847
|
executionOrder: z.number().optional(),
|
|
10837
10848
|
subtasks: z.array(
|
|
@@ -10890,7 +10901,7 @@ var tasks = defineTable({
|
|
|
10890
10901
|
answerExcerpt: z.string().optional(),
|
|
10891
10902
|
answerTimestamp: z.string().optional(),
|
|
10892
10903
|
capturedAsInsight: z.boolean().optional(),
|
|
10893
|
-
insightId:
|
|
10904
|
+
insightId: z.string().optional()
|
|
10894
10905
|
})
|
|
10895
10906
|
).optional(),
|
|
10896
10907
|
linkedCallScriptId: z.string().optional(),
|
|
@@ -10968,7 +10979,7 @@ var tasks = defineTable({
|
|
|
10968
10979
|
}).optional()
|
|
10969
10980
|
}).optional(),
|
|
10970
10981
|
capturedAsEvidence: z.boolean().optional(),
|
|
10971
|
-
capturedInsightId:
|
|
10982
|
+
capturedInsightId: z.string().optional(),
|
|
10972
10983
|
capturedAt: z.number().optional(),
|
|
10973
10984
|
createdBy: z.string(),
|
|
10974
10985
|
createdAt: z.number()
|
|
@@ -11011,6 +11022,7 @@ var tasks = defineTable({
|
|
|
11011
11022
|
completedBy: z.string().optional()
|
|
11012
11023
|
}),
|
|
11013
11024
|
indices: [
|
|
11025
|
+
{ kind: "index", name: "by_globalId", columns: ["globalId"] },
|
|
11014
11026
|
{ kind: "index", name: "by_topicId", columns: ["topicId"] },
|
|
11015
11027
|
{
|
|
11016
11028
|
kind: "index",
|
|
@@ -11172,7 +11184,7 @@ var worktreeBeliefCluster = defineTable({
|
|
|
11172
11184
|
component: "kernel",
|
|
11173
11185
|
category: "worktree",
|
|
11174
11186
|
shape: z.object({
|
|
11175
|
-
worktreeId:
|
|
11187
|
+
worktreeId: z.string(),
|
|
11176
11188
|
beliefId: z.string(),
|
|
11177
11189
|
relationType: z.enum([
|
|
11178
11190
|
"primary",
|
|
@@ -11217,7 +11229,7 @@ var worktrees = defineTable({
|
|
|
11217
11229
|
component: "kernel",
|
|
11218
11230
|
category: "worktree",
|
|
11219
11231
|
shape: z.object({
|
|
11220
|
-
globalId: z.string()
|
|
11232
|
+
globalId: z.string(),
|
|
11221
11233
|
topicId: z.string().optional(),
|
|
11222
11234
|
tenantId: z.string().optional(),
|
|
11223
11235
|
workspaceId: z.string().optional(),
|
|
@@ -11230,8 +11242,8 @@ var worktrees = defineTable({
|
|
|
11230
11242
|
rationale: z.string().optional(),
|
|
11231
11243
|
confidenceImpact: z.enum(["high", "medium", "low"]).optional(),
|
|
11232
11244
|
hypothesis: z.string().optional(),
|
|
11233
|
-
dependsOn: z.array(
|
|
11234
|
-
blocks: z.array(
|
|
11245
|
+
dependsOn: z.array(z.string()).optional(),
|
|
11246
|
+
blocks: z.array(z.string()).optional(),
|
|
11235
11247
|
gate: z.string().optional(),
|
|
11236
11248
|
campaign: z.number().optional(),
|
|
11237
11249
|
lane: z.string().optional(),
|
|
@@ -11336,7 +11348,7 @@ var worktrees = defineTable({
|
|
|
11336
11348
|
epistemicChain: z.object({
|
|
11337
11349
|
capturedAt: z.number(),
|
|
11338
11350
|
capturedBy: z.string(),
|
|
11339
|
-
worktreeId:
|
|
11351
|
+
worktreeId: z.string(),
|
|
11340
11352
|
topicId: z.string().optional(),
|
|
11341
11353
|
primaryBelief: z.object({
|
|
11342
11354
|
id: z.string(),
|