@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/manifest.js
CHANGED
|
@@ -2183,15 +2183,15 @@ var deliberationSessions = defineTable({
|
|
|
2183
2183
|
question: z.string(),
|
|
2184
2184
|
status: z.enum(["running", "completed", "failed"]),
|
|
2185
2185
|
modelSlots: z.array(z.string()),
|
|
2186
|
-
linkedBeliefNodeId:
|
|
2186
|
+
linkedBeliefNodeId: z.string().optional(),
|
|
2187
2187
|
replayBaselineAt: z.number(),
|
|
2188
2188
|
replayHeadAt: z.number().optional(),
|
|
2189
2189
|
replayBaseline: z.any().optional(),
|
|
2190
2190
|
replayDelta: z.any().optional(),
|
|
2191
2191
|
contextBrief: z.string().optional(),
|
|
2192
2192
|
contextSnapshot: z.any().optional(),
|
|
2193
|
-
contradictionIds: z.array(
|
|
2194
|
-
escalationQuestionIds: z.array(
|
|
2193
|
+
contradictionIds: z.array(z.string()),
|
|
2194
|
+
escalationQuestionIds: z.array(z.string()),
|
|
2195
2195
|
uncertaintyZones: z.array(
|
|
2196
2196
|
z.object({
|
|
2197
2197
|
label: z.string(),
|
|
@@ -2349,7 +2349,7 @@ var beliefConfidence = defineTable({
|
|
|
2349
2349
|
triggeringEvidenceIds: z.array(z.string()).optional(),
|
|
2350
2350
|
triggeringQuestionId: z.string().optional(),
|
|
2351
2351
|
triggeringAnswerId: z.string().optional(),
|
|
2352
|
-
triggeringContradictionId:
|
|
2352
|
+
triggeringContradictionId: z.string().optional(),
|
|
2353
2353
|
triggeringWorktreeId: z.string().optional(),
|
|
2354
2354
|
triggeringAgentId: z.string().optional(),
|
|
2355
2355
|
isAgentAssessment: z.boolean().optional()
|
|
@@ -2530,6 +2530,7 @@ var contradictions = defineTable({
|
|
|
2530
2530
|
component: "kernel",
|
|
2531
2531
|
category: "epistemic",
|
|
2532
2532
|
shape: z.object({
|
|
2533
|
+
globalId: z.string(),
|
|
2533
2534
|
topicId: z.string().optional(),
|
|
2534
2535
|
beliefId: z.string(),
|
|
2535
2536
|
supportingInsightIds: z.array(z.string()),
|
|
@@ -2576,6 +2577,7 @@ var contradictions = defineTable({
|
|
|
2576
2577
|
createdBy: z.string()
|
|
2577
2578
|
}),
|
|
2578
2579
|
indices: [
|
|
2580
|
+
{ kind: "index", name: "by_globalId", columns: ["globalId"] },
|
|
2579
2581
|
{ kind: "index", name: "by_topicId", columns: ["topicId"] },
|
|
2580
2582
|
{
|
|
2581
2583
|
kind: "index",
|
|
@@ -10326,7 +10328,13 @@ var epistemicIdentityBackfillMappings = defineTable({
|
|
|
10326
10328
|
category: "spine",
|
|
10327
10329
|
shape: z.object({
|
|
10328
10330
|
mappingId: uuidV7String,
|
|
10329
|
-
entityTable: z.enum([
|
|
10331
|
+
entityTable: z.enum([
|
|
10332
|
+
"epistemicNodes",
|
|
10333
|
+
"epistemicEdges",
|
|
10334
|
+
"worktrees",
|
|
10335
|
+
"tasks",
|
|
10336
|
+
"contradictions"
|
|
10337
|
+
]),
|
|
10330
10338
|
legacyId: z.string().min(1),
|
|
10331
10339
|
legacyField: z.enum([
|
|
10332
10340
|
"_id",
|
|
@@ -10338,6 +10346,8 @@ var epistemicIdentityBackfillMappings = defineTable({
|
|
|
10338
10346
|
"questionId",
|
|
10339
10347
|
"topicId",
|
|
10340
10348
|
"worktreeId",
|
|
10349
|
+
"taskId",
|
|
10350
|
+
"contradictionId",
|
|
10341
10351
|
"globalId",
|
|
10342
10352
|
"fromNodeId",
|
|
10343
10353
|
"toNodeId",
|
|
@@ -10788,6 +10798,7 @@ var tasks = defineTable({
|
|
|
10788
10798
|
component: "kernel",
|
|
10789
10799
|
category: "task",
|
|
10790
10800
|
shape: z.object({
|
|
10801
|
+
globalId: z.string(),
|
|
10791
10802
|
topicId: z.string().optional(),
|
|
10792
10803
|
tenantId: z.string().optional(),
|
|
10793
10804
|
workspaceId: z.string().optional(),
|
|
@@ -10796,7 +10807,7 @@ var tasks = defineTable({
|
|
|
10796
10807
|
status: z.enum(["todo", "in_progress", "blocked", "done"]),
|
|
10797
10808
|
priority: z.enum(["urgent", "high", "medium", "low"]),
|
|
10798
10809
|
dueDate: z.number().optional(),
|
|
10799
|
-
linkedWorktreeId:
|
|
10810
|
+
linkedWorktreeId: z.string().optional(),
|
|
10800
10811
|
linkedBeliefId: z.string().optional(),
|
|
10801
10812
|
linkedQuestionId: z.string().optional(),
|
|
10802
10813
|
taskType: z.enum([
|
|
@@ -10811,8 +10822,8 @@ var tasks = defineTable({
|
|
|
10811
10822
|
]).optional(),
|
|
10812
10823
|
assigneeId: z.string().optional(),
|
|
10813
10824
|
blockedReason: z.string().optional(),
|
|
10814
|
-
blockedBy: z.array(
|
|
10815
|
-
blocks: z.array(
|
|
10825
|
+
blockedBy: z.array(z.string()).optional(),
|
|
10826
|
+
blocks: z.array(z.string()).optional(),
|
|
10816
10827
|
sortOrder: z.number().optional(),
|
|
10817
10828
|
executionOrder: z.number().optional(),
|
|
10818
10829
|
subtasks: z.array(
|
|
@@ -10871,7 +10882,7 @@ var tasks = defineTable({
|
|
|
10871
10882
|
answerExcerpt: z.string().optional(),
|
|
10872
10883
|
answerTimestamp: z.string().optional(),
|
|
10873
10884
|
capturedAsInsight: z.boolean().optional(),
|
|
10874
|
-
insightId:
|
|
10885
|
+
insightId: z.string().optional()
|
|
10875
10886
|
})
|
|
10876
10887
|
).optional(),
|
|
10877
10888
|
linkedCallScriptId: z.string().optional(),
|
|
@@ -10949,7 +10960,7 @@ var tasks = defineTable({
|
|
|
10949
10960
|
}).optional()
|
|
10950
10961
|
}).optional(),
|
|
10951
10962
|
capturedAsEvidence: z.boolean().optional(),
|
|
10952
|
-
capturedInsightId:
|
|
10963
|
+
capturedInsightId: z.string().optional(),
|
|
10953
10964
|
capturedAt: z.number().optional(),
|
|
10954
10965
|
createdBy: z.string(),
|
|
10955
10966
|
createdAt: z.number()
|
|
@@ -10992,6 +11003,7 @@ var tasks = defineTable({
|
|
|
10992
11003
|
completedBy: z.string().optional()
|
|
10993
11004
|
}),
|
|
10994
11005
|
indices: [
|
|
11006
|
+
{ kind: "index", name: "by_globalId", columns: ["globalId"] },
|
|
10995
11007
|
{ kind: "index", name: "by_topicId", columns: ["topicId"] },
|
|
10996
11008
|
{
|
|
10997
11009
|
kind: "index",
|
|
@@ -11153,7 +11165,7 @@ var worktreeBeliefCluster = defineTable({
|
|
|
11153
11165
|
component: "kernel",
|
|
11154
11166
|
category: "worktree",
|
|
11155
11167
|
shape: z.object({
|
|
11156
|
-
worktreeId:
|
|
11168
|
+
worktreeId: z.string(),
|
|
11157
11169
|
beliefId: z.string(),
|
|
11158
11170
|
relationType: z.enum([
|
|
11159
11171
|
"primary",
|
|
@@ -11198,7 +11210,7 @@ var worktrees = defineTable({
|
|
|
11198
11210
|
component: "kernel",
|
|
11199
11211
|
category: "worktree",
|
|
11200
11212
|
shape: z.object({
|
|
11201
|
-
globalId: z.string()
|
|
11213
|
+
globalId: z.string(),
|
|
11202
11214
|
topicId: z.string().optional(),
|
|
11203
11215
|
tenantId: z.string().optional(),
|
|
11204
11216
|
workspaceId: z.string().optional(),
|
|
@@ -11211,8 +11223,8 @@ var worktrees = defineTable({
|
|
|
11211
11223
|
rationale: z.string().optional(),
|
|
11212
11224
|
confidenceImpact: z.enum(["high", "medium", "low"]).optional(),
|
|
11213
11225
|
hypothesis: z.string().optional(),
|
|
11214
|
-
dependsOn: z.array(
|
|
11215
|
-
blocks: z.array(
|
|
11226
|
+
dependsOn: z.array(z.string()).optional(),
|
|
11227
|
+
blocks: z.array(z.string()).optional(),
|
|
11216
11228
|
gate: z.string().optional(),
|
|
11217
11229
|
campaign: z.number().optional(),
|
|
11218
11230
|
lane: z.string().optional(),
|
|
@@ -11317,7 +11329,7 @@ var worktrees = defineTable({
|
|
|
11317
11329
|
epistemicChain: z.object({
|
|
11318
11330
|
capturedAt: z.number(),
|
|
11319
11331
|
capturedBy: z.string(),
|
|
11320
|
-
worktreeId:
|
|
11332
|
+
worktreeId: z.string(),
|
|
11321
11333
|
topicId: z.string().optional(),
|
|
11322
11334
|
primaryBelief: z.object({
|
|
11323
11335
|
id: z.string(),
|