@lucern/contracts 1.0.43 → 1.0.45
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/dist/function-registry/context.js +7 -3
- package/dist/generated/convexSchemas.d.ts +115 -115
- package/dist/generated/convexSchemas.js +6 -6
- package/dist/generated/schema-manifest.json +3 -1
- package/dist/index.js +23 -12
- package/dist/proof-attestation.json +1 -1
- package/dist/schemas/index.js +23 -12
- package/dist/schemas/manifest.d.ts +55 -55
- package/dist/schemas/manifest.js +23 -12
- package/dist/schemas/tables/kernel/decision.d.ts +2 -2
- package/dist/schemas/tables/kernel/decision.js +2 -2
- package/dist/schemas/tables/kernel/embedding.d.ts +1 -1
- package/dist/schemas/tables/kernel/embedding.js +12 -13
- package/dist/schemas/tables/kernel/intelligence.d.ts +5 -5
- package/dist/schemas/tables/kernel/intelligence.js +6 -5
- package/dist/schemas/tables/kernel/spine.d.ts +2 -2
- package/dist/schemas/tables/kernel/spine.js +2 -13
- package/dist/schemas/tables/kernel/workflow.d.ts +1 -1
- package/dist/schemas/tables/kernel/workflow.js +1 -1
- package/dist/schemas.values.js +23 -12
- package/package.json +1 -1
|
@@ -47,7 +47,7 @@ export declare const KERNEL_TABLE_CONTRACTS: readonly [import("../dsl.js").Table
|
|
|
47
47
|
voterUserId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
48
48
|
voterRole: import("zod").ZodOptional<import("zod").ZodEnum<["owner", "facilitator", "decision_maker", "advisor", "observer", "recorder"]>>;
|
|
49
49
|
stakeholderGroupId: import("zod").ZodOptional<import("../dsl.js").ConvexIdSchema<"stakeholderGroups">>;
|
|
50
|
-
beliefId: import("
|
|
50
|
+
beliefId: import("zod").ZodString;
|
|
51
51
|
domainCategory: import("zod").ZodOptional<import("zod").ZodString>;
|
|
52
52
|
voteDirection: import("zod").ZodEnum<["support", "oppose", "abstain", "uncertain"]>;
|
|
53
53
|
confidence: import("zod").ZodNumber;
|
|
@@ -151,7 +151,7 @@ export declare const KERNEL_TABLE_CONTRACTS: readonly [import("../dsl.js").Table
|
|
|
151
151
|
workspaceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
152
152
|
riskType: import("zod").ZodString;
|
|
153
153
|
riskDescription: import("zod").ZodString;
|
|
154
|
-
relatedBeliefId: import("zod").ZodOptional<import("
|
|
154
|
+
relatedBeliefId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
155
155
|
probabilityBand: import("zod").ZodEnum<["very_low", "low", "medium", "high", "very_high"]>;
|
|
156
156
|
impactBand: import("zod").ZodEnum<["very_low", "low", "medium", "high", "very_high"]>;
|
|
157
157
|
ownerPrincipalId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -287,7 +287,7 @@ export declare const KERNEL_TABLE_CONTRACTS: readonly [import("../dsl.js").Table
|
|
|
287
287
|
createdAt: import("zod").ZodNumber;
|
|
288
288
|
updatedAt: import("zod").ZodNumber;
|
|
289
289
|
}>, import("../dsl.js").TableContract<{
|
|
290
|
-
nodeId: import("
|
|
290
|
+
nodeId: import("zod").ZodString;
|
|
291
291
|
tenantId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
292
292
|
workspaceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
293
293
|
topicId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -789,11 +789,11 @@ export declare const KERNEL_TABLE_CONTRACTS: readonly [import("../dsl.js").Table
|
|
|
789
789
|
createdAt: import("zod").ZodNumber;
|
|
790
790
|
}>, import("../dsl.js").TableContract<{
|
|
791
791
|
sourceProjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
792
|
-
sourceTopicId: import("zod").ZodOptional<import("
|
|
793
|
-
sourceNodeId: import("
|
|
792
|
+
sourceTopicId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
793
|
+
sourceNodeId: import("zod").ZodString;
|
|
794
794
|
targetProjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
795
|
-
targetTopicId: import("zod").ZodOptional<import("
|
|
796
|
-
targetNodeId: import("
|
|
795
|
+
targetTopicId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
796
|
+
targetNodeId: import("zod").ZodString;
|
|
797
797
|
semanticSimilarity: import("zod").ZodNumber;
|
|
798
798
|
matchSignals: import("zod").ZodObject<{
|
|
799
799
|
beliefTextSimilarity: import("zod").ZodNumber;
|
|
@@ -824,7 +824,7 @@ export declare const KERNEL_TABLE_CONTRACTS: readonly [import("../dsl.js").Table
|
|
|
824
824
|
suggestedWeight: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
825
825
|
rationale: import("zod").ZodString;
|
|
826
826
|
decision: import("zod").ZodEnum<["pending", "accepted", "declined"]>;
|
|
827
|
-
acceptedEdgeId: import("zod").ZodOptional<import("
|
|
827
|
+
acceptedEdgeId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
828
828
|
declineReason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
829
829
|
declineCategory: import("zod").ZodOptional<import("zod").ZodEnum<["not_relevant", "too_generic", "already_known", "different_context", "wrong_relationship", "premature", "other"]>>;
|
|
830
830
|
surfacedDuring: import("zod").ZodEnum<["worktree_clustering", "chat", "morning_brief", "manual"]>;
|
|
@@ -1929,7 +1929,7 @@ export declare const KERNEL_TABLE_CONTRACTS: readonly [import("../dsl.js").Table
|
|
|
1929
1929
|
sourceType: import("zod").ZodEnum<["human", "ai_extracted", "ai_generated", "imported", "system", "verified", "proprietary"]>;
|
|
1930
1930
|
externalSourceType: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1931
1931
|
aiProvider: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1932
|
-
extractedFromNodeId: import("zod").ZodOptional<import("
|
|
1932
|
+
extractedFromNodeId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1933
1933
|
extractionModel: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1934
1934
|
extractionPromptName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1935
1935
|
extractionPromptVersion: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
@@ -1944,7 +1944,7 @@ export declare const KERNEL_TABLE_CONTRACTS: readonly [import("../dsl.js").Table
|
|
|
1944
1944
|
confidence: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1945
1945
|
verificationStatus: import("zod").ZodOptional<import("zod").ZodEnum<["unverified", "human_verified", "ai_verified", "contradicted", "outdated"]>>;
|
|
1946
1946
|
status: import("zod").ZodEnum<["active", "superseded", "archived", "deleted"]>;
|
|
1947
|
-
supersededBy: import("zod").ZodOptional<import("
|
|
1947
|
+
supersededBy: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1948
1948
|
topicId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1949
1949
|
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1950
1950
|
createdBy: import("zod").ZodString;
|
|
@@ -2592,7 +2592,7 @@ export declare const KERNEL_TABLE_CONTRACTS: readonly [import("../dsl.js").Table
|
|
|
2592
2592
|
updatedAt: import("zod").ZodNumber;
|
|
2593
2593
|
}>, import("../dsl.js").TableContract<{
|
|
2594
2594
|
topicId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2595
|
-
worktreeId: import("
|
|
2595
|
+
worktreeId: import("zod").ZodString;
|
|
2596
2596
|
status: import("zod").ZodEnum<["pending_review", "changes_requested", "approved", "blocked"]>;
|
|
2597
2597
|
summary: import("zod").ZodString;
|
|
2598
2598
|
reviewers: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
@@ -5492,7 +5492,7 @@ export declare const TABLE_CONTRACTS_BY_COMPONENT: {
|
|
|
5492
5492
|
voterUserId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5493
5493
|
voterRole: import("zod").ZodOptional<import("zod").ZodEnum<["owner", "facilitator", "decision_maker", "advisor", "observer", "recorder"]>>;
|
|
5494
5494
|
stakeholderGroupId: import("zod").ZodOptional<import("../dsl.js").ConvexIdSchema<"stakeholderGroups">>;
|
|
5495
|
-
beliefId: import("
|
|
5495
|
+
beliefId: import("zod").ZodString;
|
|
5496
5496
|
domainCategory: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5497
5497
|
voteDirection: import("zod").ZodEnum<["support", "oppose", "abstain", "uncertain"]>;
|
|
5498
5498
|
confidence: import("zod").ZodNumber;
|
|
@@ -5596,7 +5596,7 @@ export declare const TABLE_CONTRACTS_BY_COMPONENT: {
|
|
|
5596
5596
|
workspaceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5597
5597
|
riskType: import("zod").ZodString;
|
|
5598
5598
|
riskDescription: import("zod").ZodString;
|
|
5599
|
-
relatedBeliefId: import("zod").ZodOptional<import("
|
|
5599
|
+
relatedBeliefId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5600
5600
|
probabilityBand: import("zod").ZodEnum<["very_low", "low", "medium", "high", "very_high"]>;
|
|
5601
5601
|
impactBand: import("zod").ZodEnum<["very_low", "low", "medium", "high", "very_high"]>;
|
|
5602
5602
|
ownerPrincipalId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -5732,7 +5732,7 @@ export declare const TABLE_CONTRACTS_BY_COMPONENT: {
|
|
|
5732
5732
|
createdAt: import("zod").ZodNumber;
|
|
5733
5733
|
updatedAt: import("zod").ZodNumber;
|
|
5734
5734
|
}>, import("../dsl.js").TableContract<{
|
|
5735
|
-
nodeId: import("
|
|
5735
|
+
nodeId: import("zod").ZodString;
|
|
5736
5736
|
tenantId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5737
5737
|
workspaceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5738
5738
|
topicId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -6234,11 +6234,11 @@ export declare const TABLE_CONTRACTS_BY_COMPONENT: {
|
|
|
6234
6234
|
createdAt: import("zod").ZodNumber;
|
|
6235
6235
|
}>, import("../dsl.js").TableContract<{
|
|
6236
6236
|
sourceProjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6237
|
-
sourceTopicId: import("zod").ZodOptional<import("
|
|
6238
|
-
sourceNodeId: import("
|
|
6237
|
+
sourceTopicId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6238
|
+
sourceNodeId: import("zod").ZodString;
|
|
6239
6239
|
targetProjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6240
|
-
targetTopicId: import("zod").ZodOptional<import("
|
|
6241
|
-
targetNodeId: import("
|
|
6240
|
+
targetTopicId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6241
|
+
targetNodeId: import("zod").ZodString;
|
|
6242
6242
|
semanticSimilarity: import("zod").ZodNumber;
|
|
6243
6243
|
matchSignals: import("zod").ZodObject<{
|
|
6244
6244
|
beliefTextSimilarity: import("zod").ZodNumber;
|
|
@@ -6269,7 +6269,7 @@ export declare const TABLE_CONTRACTS_BY_COMPONENT: {
|
|
|
6269
6269
|
suggestedWeight: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
6270
6270
|
rationale: import("zod").ZodString;
|
|
6271
6271
|
decision: import("zod").ZodEnum<["pending", "accepted", "declined"]>;
|
|
6272
|
-
acceptedEdgeId: import("zod").ZodOptional<import("
|
|
6272
|
+
acceptedEdgeId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6273
6273
|
declineReason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6274
6274
|
declineCategory: import("zod").ZodOptional<import("zod").ZodEnum<["not_relevant", "too_generic", "already_known", "different_context", "wrong_relationship", "premature", "other"]>>;
|
|
6275
6275
|
surfacedDuring: import("zod").ZodEnum<["worktree_clustering", "chat", "morning_brief", "manual"]>;
|
|
@@ -7374,7 +7374,7 @@ export declare const TABLE_CONTRACTS_BY_COMPONENT: {
|
|
|
7374
7374
|
sourceType: import("zod").ZodEnum<["human", "ai_extracted", "ai_generated", "imported", "system", "verified", "proprietary"]>;
|
|
7375
7375
|
externalSourceType: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7376
7376
|
aiProvider: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7377
|
-
extractedFromNodeId: import("zod").ZodOptional<import("
|
|
7377
|
+
extractedFromNodeId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7378
7378
|
extractionModel: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7379
7379
|
extractionPromptName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7380
7380
|
extractionPromptVersion: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
@@ -7389,7 +7389,7 @@ export declare const TABLE_CONTRACTS_BY_COMPONENT: {
|
|
|
7389
7389
|
confidence: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
7390
7390
|
verificationStatus: import("zod").ZodOptional<import("zod").ZodEnum<["unverified", "human_verified", "ai_verified", "contradicted", "outdated"]>>;
|
|
7391
7391
|
status: import("zod").ZodEnum<["active", "superseded", "archived", "deleted"]>;
|
|
7392
|
-
supersededBy: import("zod").ZodOptional<import("
|
|
7392
|
+
supersededBy: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7393
7393
|
topicId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7394
7394
|
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7395
7395
|
createdBy: import("zod").ZodString;
|
|
@@ -8037,7 +8037,7 @@ export declare const TABLE_CONTRACTS_BY_COMPONENT: {
|
|
|
8037
8037
|
updatedAt: import("zod").ZodNumber;
|
|
8038
8038
|
}>, import("../dsl.js").TableContract<{
|
|
8039
8039
|
topicId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8040
|
-
worktreeId: import("
|
|
8040
|
+
worktreeId: import("zod").ZodString;
|
|
8041
8041
|
status: import("zod").ZodEnum<["pending_review", "changes_requested", "approved", "blocked"]>;
|
|
8042
8042
|
summary: import("zod").ZodString;
|
|
8043
8043
|
reviewers: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
@@ -10938,7 +10938,7 @@ export declare const ALL_TABLE_CONTRACTS: readonly [import("../dsl.js").TableCon
|
|
|
10938
10938
|
voterUserId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
10939
10939
|
voterRole: import("zod").ZodOptional<import("zod").ZodEnum<["owner", "facilitator", "decision_maker", "advisor", "observer", "recorder"]>>;
|
|
10940
10940
|
stakeholderGroupId: import("zod").ZodOptional<import("../dsl.js").ConvexIdSchema<"stakeholderGroups">>;
|
|
10941
|
-
beliefId: import("
|
|
10941
|
+
beliefId: import("zod").ZodString;
|
|
10942
10942
|
domainCategory: import("zod").ZodOptional<import("zod").ZodString>;
|
|
10943
10943
|
voteDirection: import("zod").ZodEnum<["support", "oppose", "abstain", "uncertain"]>;
|
|
10944
10944
|
confidence: import("zod").ZodNumber;
|
|
@@ -11042,7 +11042,7 @@ export declare const ALL_TABLE_CONTRACTS: readonly [import("../dsl.js").TableCon
|
|
|
11042
11042
|
workspaceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
11043
11043
|
riskType: import("zod").ZodString;
|
|
11044
11044
|
riskDescription: import("zod").ZodString;
|
|
11045
|
-
relatedBeliefId: import("zod").ZodOptional<import("
|
|
11045
|
+
relatedBeliefId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
11046
11046
|
probabilityBand: import("zod").ZodEnum<["very_low", "low", "medium", "high", "very_high"]>;
|
|
11047
11047
|
impactBand: import("zod").ZodEnum<["very_low", "low", "medium", "high", "very_high"]>;
|
|
11048
11048
|
ownerPrincipalId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -11178,7 +11178,7 @@ export declare const ALL_TABLE_CONTRACTS: readonly [import("../dsl.js").TableCon
|
|
|
11178
11178
|
createdAt: import("zod").ZodNumber;
|
|
11179
11179
|
updatedAt: import("zod").ZodNumber;
|
|
11180
11180
|
}>, import("../dsl.js").TableContract<{
|
|
11181
|
-
nodeId: import("
|
|
11181
|
+
nodeId: import("zod").ZodString;
|
|
11182
11182
|
tenantId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
11183
11183
|
workspaceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
11184
11184
|
topicId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -11680,11 +11680,11 @@ export declare const ALL_TABLE_CONTRACTS: readonly [import("../dsl.js").TableCon
|
|
|
11680
11680
|
createdAt: import("zod").ZodNumber;
|
|
11681
11681
|
}>, import("../dsl.js").TableContract<{
|
|
11682
11682
|
sourceProjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
11683
|
-
sourceTopicId: import("zod").ZodOptional<import("
|
|
11684
|
-
sourceNodeId: import("
|
|
11683
|
+
sourceTopicId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
11684
|
+
sourceNodeId: import("zod").ZodString;
|
|
11685
11685
|
targetProjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
11686
|
-
targetTopicId: import("zod").ZodOptional<import("
|
|
11687
|
-
targetNodeId: import("
|
|
11686
|
+
targetTopicId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
11687
|
+
targetNodeId: import("zod").ZodString;
|
|
11688
11688
|
semanticSimilarity: import("zod").ZodNumber;
|
|
11689
11689
|
matchSignals: import("zod").ZodObject<{
|
|
11690
11690
|
beliefTextSimilarity: import("zod").ZodNumber;
|
|
@@ -11715,7 +11715,7 @@ export declare const ALL_TABLE_CONTRACTS: readonly [import("../dsl.js").TableCon
|
|
|
11715
11715
|
suggestedWeight: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
11716
11716
|
rationale: import("zod").ZodString;
|
|
11717
11717
|
decision: import("zod").ZodEnum<["pending", "accepted", "declined"]>;
|
|
11718
|
-
acceptedEdgeId: import("zod").ZodOptional<import("
|
|
11718
|
+
acceptedEdgeId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
11719
11719
|
declineReason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
11720
11720
|
declineCategory: import("zod").ZodOptional<import("zod").ZodEnum<["not_relevant", "too_generic", "already_known", "different_context", "wrong_relationship", "premature", "other"]>>;
|
|
11721
11721
|
surfacedDuring: import("zod").ZodEnum<["worktree_clustering", "chat", "morning_brief", "manual"]>;
|
|
@@ -12820,7 +12820,7 @@ export declare const ALL_TABLE_CONTRACTS: readonly [import("../dsl.js").TableCon
|
|
|
12820
12820
|
sourceType: import("zod").ZodEnum<["human", "ai_extracted", "ai_generated", "imported", "system", "verified", "proprietary"]>;
|
|
12821
12821
|
externalSourceType: import("zod").ZodOptional<import("zod").ZodString>;
|
|
12822
12822
|
aiProvider: import("zod").ZodOptional<import("zod").ZodString>;
|
|
12823
|
-
extractedFromNodeId: import("zod").ZodOptional<import("
|
|
12823
|
+
extractedFromNodeId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
12824
12824
|
extractionModel: import("zod").ZodOptional<import("zod").ZodString>;
|
|
12825
12825
|
extractionPromptName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
12826
12826
|
extractionPromptVersion: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
@@ -12835,7 +12835,7 @@ export declare const ALL_TABLE_CONTRACTS: readonly [import("../dsl.js").TableCon
|
|
|
12835
12835
|
confidence: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
12836
12836
|
verificationStatus: import("zod").ZodOptional<import("zod").ZodEnum<["unverified", "human_verified", "ai_verified", "contradicted", "outdated"]>>;
|
|
12837
12837
|
status: import("zod").ZodEnum<["active", "superseded", "archived", "deleted"]>;
|
|
12838
|
-
supersededBy: import("zod").ZodOptional<import("
|
|
12838
|
+
supersededBy: import("zod").ZodOptional<import("zod").ZodString>;
|
|
12839
12839
|
topicId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
12840
12840
|
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
12841
12841
|
createdBy: import("zod").ZodString;
|
|
@@ -13483,7 +13483,7 @@ export declare const ALL_TABLE_CONTRACTS: readonly [import("../dsl.js").TableCon
|
|
|
13483
13483
|
updatedAt: import("zod").ZodNumber;
|
|
13484
13484
|
}>, import("../dsl.js").TableContract<{
|
|
13485
13485
|
topicId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
13486
|
-
worktreeId: import("
|
|
13486
|
+
worktreeId: import("zod").ZodString;
|
|
13487
13487
|
status: import("zod").ZodEnum<["pending_review", "changes_requested", "approved", "blocked"]>;
|
|
13488
13488
|
summary: import("zod").ZodString;
|
|
13489
13489
|
reviewers: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
@@ -17118,7 +17118,7 @@ export declare function listTableContractsByName(name: string): (import("../dsl.
|
|
|
17118
17118
|
voterUserId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
17119
17119
|
voterRole: import("zod").ZodOptional<import("zod").ZodEnum<["owner", "facilitator", "decision_maker", "advisor", "observer", "recorder"]>>;
|
|
17120
17120
|
stakeholderGroupId: import("zod").ZodOptional<import("../dsl.js").ConvexIdSchema<"stakeholderGroups">>;
|
|
17121
|
-
beliefId: import("
|
|
17121
|
+
beliefId: import("zod").ZodString;
|
|
17122
17122
|
domainCategory: import("zod").ZodOptional<import("zod").ZodString>;
|
|
17123
17123
|
voteDirection: import("zod").ZodEnum<["support", "oppose", "abstain", "uncertain"]>;
|
|
17124
17124
|
confidence: import("zod").ZodNumber;
|
|
@@ -17222,7 +17222,7 @@ export declare function listTableContractsByName(name: string): (import("../dsl.
|
|
|
17222
17222
|
workspaceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
17223
17223
|
riskType: import("zod").ZodString;
|
|
17224
17224
|
riskDescription: import("zod").ZodString;
|
|
17225
|
-
relatedBeliefId: import("zod").ZodOptional<import("
|
|
17225
|
+
relatedBeliefId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
17226
17226
|
probabilityBand: import("zod").ZodEnum<["very_low", "low", "medium", "high", "very_high"]>;
|
|
17227
17227
|
impactBand: import("zod").ZodEnum<["very_low", "low", "medium", "high", "very_high"]>;
|
|
17228
17228
|
ownerPrincipalId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -17343,7 +17343,7 @@ export declare function listTableContractsByName(name: string): (import("../dsl.
|
|
|
17343
17343
|
createdAt: import("zod").ZodNumber;
|
|
17344
17344
|
updatedAt: import("zod").ZodNumber;
|
|
17345
17345
|
}> | import("../dsl.js").TableContract<{
|
|
17346
|
-
nodeId: import("
|
|
17346
|
+
nodeId: import("zod").ZodString;
|
|
17347
17347
|
tenantId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
17348
17348
|
workspaceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
17349
17349
|
topicId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -17860,11 +17860,11 @@ export declare function listTableContractsByName(name: string): (import("../dsl.
|
|
|
17860
17860
|
createdAt: import("zod").ZodNumber;
|
|
17861
17861
|
}> | import("../dsl.js").TableContract<{
|
|
17862
17862
|
sourceProjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
17863
|
-
sourceTopicId: import("zod").ZodOptional<import("
|
|
17864
|
-
sourceNodeId: import("
|
|
17863
|
+
sourceTopicId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
17864
|
+
sourceNodeId: import("zod").ZodString;
|
|
17865
17865
|
targetProjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
17866
|
-
targetTopicId: import("zod").ZodOptional<import("
|
|
17867
|
-
targetNodeId: import("
|
|
17866
|
+
targetTopicId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
17867
|
+
targetNodeId: import("zod").ZodString;
|
|
17868
17868
|
semanticSimilarity: import("zod").ZodNumber;
|
|
17869
17869
|
matchSignals: import("zod").ZodObject<{
|
|
17870
17870
|
beliefTextSimilarity: import("zod").ZodNumber;
|
|
@@ -17895,7 +17895,7 @@ export declare function listTableContractsByName(name: string): (import("../dsl.
|
|
|
17895
17895
|
suggestedWeight: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
17896
17896
|
rationale: import("zod").ZodString;
|
|
17897
17897
|
decision: import("zod").ZodEnum<["pending", "accepted", "declined"]>;
|
|
17898
|
-
acceptedEdgeId: import("zod").ZodOptional<import("
|
|
17898
|
+
acceptedEdgeId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
17899
17899
|
declineReason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
17900
17900
|
declineCategory: import("zod").ZodOptional<import("zod").ZodEnum<["not_relevant", "too_generic", "already_known", "different_context", "wrong_relationship", "premature", "other"]>>;
|
|
17901
17901
|
surfacedDuring: import("zod").ZodEnum<["worktree_clustering", "chat", "morning_brief", "manual"]>;
|
|
@@ -19000,7 +19000,7 @@ export declare function listTableContractsByName(name: string): (import("../dsl.
|
|
|
19000
19000
|
sourceType: import("zod").ZodEnum<["human", "ai_extracted", "ai_generated", "imported", "system", "verified", "proprietary"]>;
|
|
19001
19001
|
externalSourceType: import("zod").ZodOptional<import("zod").ZodString>;
|
|
19002
19002
|
aiProvider: import("zod").ZodOptional<import("zod").ZodString>;
|
|
19003
|
-
extractedFromNodeId: import("zod").ZodOptional<import("
|
|
19003
|
+
extractedFromNodeId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
19004
19004
|
extractionModel: import("zod").ZodOptional<import("zod").ZodString>;
|
|
19005
19005
|
extractionPromptName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
19006
19006
|
extractionPromptVersion: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
@@ -19015,7 +19015,7 @@ export declare function listTableContractsByName(name: string): (import("../dsl.
|
|
|
19015
19015
|
confidence: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
19016
19016
|
verificationStatus: import("zod").ZodOptional<import("zod").ZodEnum<["unverified", "human_verified", "ai_verified", "contradicted", "outdated"]>>;
|
|
19017
19017
|
status: import("zod").ZodEnum<["active", "superseded", "archived", "deleted"]>;
|
|
19018
|
-
supersededBy: import("zod").ZodOptional<import("
|
|
19018
|
+
supersededBy: import("zod").ZodOptional<import("zod").ZodString>;
|
|
19019
19019
|
topicId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
19020
19020
|
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
19021
19021
|
createdBy: import("zod").ZodString;
|
|
@@ -19663,7 +19663,7 @@ export declare function listTableContractsByName(name: string): (import("../dsl.
|
|
|
19663
19663
|
updatedAt: import("zod").ZodNumber;
|
|
19664
19664
|
}> | import("../dsl.js").TableContract<{
|
|
19665
19665
|
topicId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
19666
|
-
worktreeId: import("
|
|
19666
|
+
worktreeId: import("zod").ZodString;
|
|
19667
19667
|
status: import("zod").ZodEnum<["pending_review", "changes_requested", "approved", "blocked"]>;
|
|
19668
19668
|
summary: import("zod").ZodString;
|
|
19669
19669
|
reviewers: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
@@ -22560,7 +22560,7 @@ export declare function getTableContract(name: string, component?: string): impo
|
|
|
22560
22560
|
voterUserId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
22561
22561
|
voterRole: import("zod").ZodOptional<import("zod").ZodEnum<["owner", "facilitator", "decision_maker", "advisor", "observer", "recorder"]>>;
|
|
22562
22562
|
stakeholderGroupId: import("zod").ZodOptional<import("../dsl.js").ConvexIdSchema<"stakeholderGroups">>;
|
|
22563
|
-
beliefId: import("
|
|
22563
|
+
beliefId: import("zod").ZodString;
|
|
22564
22564
|
domainCategory: import("zod").ZodOptional<import("zod").ZodString>;
|
|
22565
22565
|
voteDirection: import("zod").ZodEnum<["support", "oppose", "abstain", "uncertain"]>;
|
|
22566
22566
|
confidence: import("zod").ZodNumber;
|
|
@@ -22664,7 +22664,7 @@ export declare function getTableContract(name: string, component?: string): impo
|
|
|
22664
22664
|
workspaceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
22665
22665
|
riskType: import("zod").ZodString;
|
|
22666
22666
|
riskDescription: import("zod").ZodString;
|
|
22667
|
-
relatedBeliefId: import("zod").ZodOptional<import("
|
|
22667
|
+
relatedBeliefId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
22668
22668
|
probabilityBand: import("zod").ZodEnum<["very_low", "low", "medium", "high", "very_high"]>;
|
|
22669
22669
|
impactBand: import("zod").ZodEnum<["very_low", "low", "medium", "high", "very_high"]>;
|
|
22670
22670
|
ownerPrincipalId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -22785,7 +22785,7 @@ export declare function getTableContract(name: string, component?: string): impo
|
|
|
22785
22785
|
createdAt: import("zod").ZodNumber;
|
|
22786
22786
|
updatedAt: import("zod").ZodNumber;
|
|
22787
22787
|
}> | import("../dsl.js").TableContract<{
|
|
22788
|
-
nodeId: import("
|
|
22788
|
+
nodeId: import("zod").ZodString;
|
|
22789
22789
|
tenantId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
22790
22790
|
workspaceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
22791
22791
|
topicId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -23302,11 +23302,11 @@ export declare function getTableContract(name: string, component?: string): impo
|
|
|
23302
23302
|
createdAt: import("zod").ZodNumber;
|
|
23303
23303
|
}> | import("../dsl.js").TableContract<{
|
|
23304
23304
|
sourceProjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
23305
|
-
sourceTopicId: import("zod").ZodOptional<import("
|
|
23306
|
-
sourceNodeId: import("
|
|
23305
|
+
sourceTopicId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
23306
|
+
sourceNodeId: import("zod").ZodString;
|
|
23307
23307
|
targetProjectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
23308
|
-
targetTopicId: import("zod").ZodOptional<import("
|
|
23309
|
-
targetNodeId: import("
|
|
23308
|
+
targetTopicId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
23309
|
+
targetNodeId: import("zod").ZodString;
|
|
23310
23310
|
semanticSimilarity: import("zod").ZodNumber;
|
|
23311
23311
|
matchSignals: import("zod").ZodObject<{
|
|
23312
23312
|
beliefTextSimilarity: import("zod").ZodNumber;
|
|
@@ -23337,7 +23337,7 @@ export declare function getTableContract(name: string, component?: string): impo
|
|
|
23337
23337
|
suggestedWeight: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
23338
23338
|
rationale: import("zod").ZodString;
|
|
23339
23339
|
decision: import("zod").ZodEnum<["pending", "accepted", "declined"]>;
|
|
23340
|
-
acceptedEdgeId: import("zod").ZodOptional<import("
|
|
23340
|
+
acceptedEdgeId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
23341
23341
|
declineReason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
23342
23342
|
declineCategory: import("zod").ZodOptional<import("zod").ZodEnum<["not_relevant", "too_generic", "already_known", "different_context", "wrong_relationship", "premature", "other"]>>;
|
|
23343
23343
|
surfacedDuring: import("zod").ZodEnum<["worktree_clustering", "chat", "morning_brief", "manual"]>;
|
|
@@ -24442,7 +24442,7 @@ export declare function getTableContract(name: string, component?: string): impo
|
|
|
24442
24442
|
sourceType: import("zod").ZodEnum<["human", "ai_extracted", "ai_generated", "imported", "system", "verified", "proprietary"]>;
|
|
24443
24443
|
externalSourceType: import("zod").ZodOptional<import("zod").ZodString>;
|
|
24444
24444
|
aiProvider: import("zod").ZodOptional<import("zod").ZodString>;
|
|
24445
|
-
extractedFromNodeId: import("zod").ZodOptional<import("
|
|
24445
|
+
extractedFromNodeId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
24446
24446
|
extractionModel: import("zod").ZodOptional<import("zod").ZodString>;
|
|
24447
24447
|
extractionPromptName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
24448
24448
|
extractionPromptVersion: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
@@ -24457,7 +24457,7 @@ export declare function getTableContract(name: string, component?: string): impo
|
|
|
24457
24457
|
confidence: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
24458
24458
|
verificationStatus: import("zod").ZodOptional<import("zod").ZodEnum<["unverified", "human_verified", "ai_verified", "contradicted", "outdated"]>>;
|
|
24459
24459
|
status: import("zod").ZodEnum<["active", "superseded", "archived", "deleted"]>;
|
|
24460
|
-
supersededBy: import("zod").ZodOptional<import("
|
|
24460
|
+
supersededBy: import("zod").ZodOptional<import("zod").ZodString>;
|
|
24461
24461
|
topicId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
24462
24462
|
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
24463
24463
|
createdBy: import("zod").ZodString;
|
|
@@ -25105,7 +25105,7 @@ export declare function getTableContract(name: string, component?: string): impo
|
|
|
25105
25105
|
updatedAt: import("zod").ZodNumber;
|
|
25106
25106
|
}> | import("../dsl.js").TableContract<{
|
|
25107
25107
|
topicId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
25108
|
-
worktreeId: import("
|
|
25108
|
+
worktreeId: import("zod").ZodString;
|
|
25109
25109
|
status: import("zod").ZodEnum<["pending_review", "changes_requested", "approved", "blocked"]>;
|
|
25110
25110
|
summary: import("zod").ZodString;
|
|
25111
25111
|
reviewers: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
package/dist/schemas/manifest.js
CHANGED
|
@@ -1779,7 +1779,7 @@ var beliefVotes = defineTable({
|
|
|
1779
1779
|
"recorder"
|
|
1780
1780
|
]).optional(),
|
|
1781
1781
|
stakeholderGroupId: idOf("stakeholderGroups").optional(),
|
|
1782
|
-
beliefId:
|
|
1782
|
+
beliefId: z.string(),
|
|
1783
1783
|
domainCategory: z.string().optional(),
|
|
1784
1784
|
voteDirection: z.enum(["support", "oppose", "abstain", "uncertain"]),
|
|
1785
1785
|
confidence: z.number(),
|
|
@@ -2057,7 +2057,7 @@ var decisionRiskLedger = defineTable({
|
|
|
2057
2057
|
workspaceId: z.string().optional(),
|
|
2058
2058
|
riskType: z.string(),
|
|
2059
2059
|
riskDescription: z.string(),
|
|
2060
|
-
relatedBeliefId:
|
|
2060
|
+
relatedBeliefId: z.string().optional(),
|
|
2061
2061
|
probabilityBand: z.enum(["very_low", "low", "medium", "high", "very_high"]),
|
|
2062
2062
|
impactBand: z.enum(["very_low", "low", "medium", "high", "very_high"]),
|
|
2063
2063
|
ownerPrincipalId: z.string().optional(),
|
|
@@ -2253,7 +2253,11 @@ var epistemicNodeEmbeddings = defineTable({
|
|
|
2253
2253
|
component: "kernel",
|
|
2254
2254
|
category: "embedding",
|
|
2255
2255
|
shape: z.object({
|
|
2256
|
-
|
|
2256
|
+
// Canonical UUIDv7 globalId of the embedded node (not a Convex Id). Every
|
|
2257
|
+
// cross-row reference in the graph is the node's globalId, resolved via the
|
|
2258
|
+
// `by_globalId` index — see resolveNodeGlobalId/resolveNodeDocSoft. This
|
|
2259
|
+
// keeps embeddings stable across extract/rebuild and carbon-copies.
|
|
2260
|
+
nodeId: z.string(),
|
|
2257
2261
|
tenantId: z.string().optional(),
|
|
2258
2262
|
workspaceId: z.string().optional(),
|
|
2259
2263
|
topicId: z.string().optional(),
|
|
@@ -2308,7 +2312,13 @@ var epistemicNodeEmbeddings = defineTable({
|
|
|
2308
2312
|
name: "by_embedding",
|
|
2309
2313
|
vectorField: "embedding",
|
|
2310
2314
|
dimensions: 1024,
|
|
2311
|
-
filterFields: [
|
|
2315
|
+
filterFields: [
|
|
2316
|
+
"nodeType",
|
|
2317
|
+
"createdBy",
|
|
2318
|
+
"topicId",
|
|
2319
|
+
"tenantId",
|
|
2320
|
+
"workspaceId"
|
|
2321
|
+
]
|
|
2312
2322
|
}
|
|
2313
2323
|
]
|
|
2314
2324
|
});
|
|
@@ -3054,11 +3064,12 @@ var crossProjectConnections = defineTable({
|
|
|
3054
3064
|
category: "intelligence",
|
|
3055
3065
|
shape: z.object({
|
|
3056
3066
|
sourceProjectId: z.string().optional(),
|
|
3057
|
-
|
|
3058
|
-
|
|
3067
|
+
// globalId references (UUIDv7), resolved via by_globalId — not Convex Ids.
|
|
3068
|
+
sourceTopicId: z.string().optional(),
|
|
3069
|
+
sourceNodeId: z.string(),
|
|
3059
3070
|
targetProjectId: z.string().optional(),
|
|
3060
|
-
targetTopicId:
|
|
3061
|
-
targetNodeId:
|
|
3071
|
+
targetTopicId: z.string().optional(),
|
|
3072
|
+
targetNodeId: z.string(),
|
|
3062
3073
|
semanticSimilarity: z.number(),
|
|
3063
3074
|
matchSignals: z.object({
|
|
3064
3075
|
beliefTextSimilarity: z.number(),
|
|
@@ -3073,7 +3084,7 @@ var crossProjectConnections = defineTable({
|
|
|
3073
3084
|
suggestedWeight: z.number().optional(),
|
|
3074
3085
|
rationale: z.string(),
|
|
3075
3086
|
decision: z.enum(["pending", "accepted", "declined"]),
|
|
3076
|
-
acceptedEdgeId:
|
|
3087
|
+
acceptedEdgeId: z.string().optional(),
|
|
3077
3088
|
declineReason: z.string().optional(),
|
|
3078
3089
|
declineCategory: z.enum([
|
|
3079
3090
|
"not_relevant",
|
|
@@ -10667,7 +10678,7 @@ var epistemicNodes = defineTable({
|
|
|
10667
10678
|
]),
|
|
10668
10679
|
externalSourceType: z.string().optional(),
|
|
10669
10680
|
aiProvider: z.string().optional(),
|
|
10670
|
-
extractedFromNodeId:
|
|
10681
|
+
extractedFromNodeId: z.string().optional(),
|
|
10671
10682
|
extractionModel: z.string().optional(),
|
|
10672
10683
|
extractionPromptName: z.string().optional(),
|
|
10673
10684
|
extractionPromptVersion: z.number().optional(),
|
|
@@ -10688,7 +10699,7 @@ var epistemicNodes = defineTable({
|
|
|
10688
10699
|
"outdated"
|
|
10689
10700
|
]).optional(),
|
|
10690
10701
|
status: z.enum(["active", "superseded", "archived", "deleted"]),
|
|
10691
|
-
supersededBy:
|
|
10702
|
+
supersededBy: z.string().optional(),
|
|
10692
10703
|
topicId: z.string().optional(),
|
|
10693
10704
|
projectId: z.string().optional(),
|
|
10694
10705
|
createdBy: z.string(),
|
|
@@ -11110,7 +11121,7 @@ var workflowPullRequests = defineTable({
|
|
|
11110
11121
|
category: "workflow",
|
|
11111
11122
|
shape: z.object({
|
|
11112
11123
|
topicId: z.string().optional(),
|
|
11113
|
-
worktreeId:
|
|
11124
|
+
worktreeId: z.string(),
|
|
11114
11125
|
status: z.enum([
|
|
11115
11126
|
"pending_review",
|
|
11116
11127
|
"changes_requested",
|
|
@@ -14,7 +14,7 @@ export declare const beliefVotes: import("../../../dsl.js").TableContract<{
|
|
|
14
14
|
voterUserId: z.ZodOptional<z.ZodString>;
|
|
15
15
|
voterRole: z.ZodOptional<z.ZodEnum<["owner", "facilitator", "decision_maker", "advisor", "observer", "recorder"]>>;
|
|
16
16
|
stakeholderGroupId: z.ZodOptional<import("../../../dsl.js").ConvexIdSchema<"stakeholderGroups">>;
|
|
17
|
-
beliefId:
|
|
17
|
+
beliefId: z.ZodString;
|
|
18
18
|
domainCategory: z.ZodOptional<z.ZodString>;
|
|
19
19
|
voteDirection: z.ZodEnum<["support", "oppose", "abstain", "uncertain"]>;
|
|
20
20
|
confidence: z.ZodNumber;
|
|
@@ -123,7 +123,7 @@ export declare const decisionRiskLedger: import("../../../dsl.js").TableContract
|
|
|
123
123
|
workspaceId: z.ZodOptional<z.ZodString>;
|
|
124
124
|
riskType: z.ZodString;
|
|
125
125
|
riskDescription: z.ZodString;
|
|
126
|
-
relatedBeliefId: z.ZodOptional<
|
|
126
|
+
relatedBeliefId: z.ZodOptional<z.ZodString>;
|
|
127
127
|
probabilityBand: z.ZodEnum<["very_low", "low", "medium", "high", "very_high"]>;
|
|
128
128
|
impactBand: z.ZodEnum<["very_low", "low", "medium", "high", "very_high"]>;
|
|
129
129
|
ownerPrincipalId: z.ZodOptional<z.ZodString>;
|
|
@@ -39,7 +39,7 @@ var beliefVotes = defineTable({
|
|
|
39
39
|
"recorder"
|
|
40
40
|
]).optional(),
|
|
41
41
|
stakeholderGroupId: idOf("stakeholderGroups").optional(),
|
|
42
|
-
beliefId:
|
|
42
|
+
beliefId: z.string(),
|
|
43
43
|
domainCategory: z.string().optional(),
|
|
44
44
|
voteDirection: z.enum(["support", "oppose", "abstain", "uncertain"]),
|
|
45
45
|
confidence: z.number(),
|
|
@@ -317,7 +317,7 @@ var decisionRiskLedger = defineTable({
|
|
|
317
317
|
workspaceId: z.string().optional(),
|
|
318
318
|
riskType: z.string(),
|
|
319
319
|
riskDescription: z.string(),
|
|
320
|
-
relatedBeliefId:
|
|
320
|
+
relatedBeliefId: z.string().optional(),
|
|
321
321
|
probabilityBand: z.enum(["very_low", "low", "medium", "high", "very_high"]),
|
|
322
322
|
impactBand: z.enum(["very_low", "low", "medium", "high", "very_high"]),
|
|
323
323
|
ownerPrincipalId: z.string().optional(),
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
export declare const epistemicNodeEmbeddings: import("../../../dsl.js").TableContract<{
|
|
9
|
-
nodeId:
|
|
9
|
+
nodeId: z.ZodString;
|
|
10
10
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
11
11
|
workspaceId: z.ZodOptional<z.ZodString>;
|
|
12
12
|
topicId: z.ZodOptional<z.ZodString>;
|
|
@@ -1,17 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
3
|
// src/schemas/tables/kernel/embedding.ts
|
|
4
|
-
var CONVEX_ID_TABLE = /* @__PURE__ */ Symbol.for("lucern.contracts.convexIdTable");
|
|
5
|
-
function idOf(table) {
|
|
6
|
-
const schema = z.string().brand();
|
|
7
|
-
Object.defineProperty(schema, CONVEX_ID_TABLE, {
|
|
8
|
-
configurable: false,
|
|
9
|
-
enumerable: false,
|
|
10
|
-
value: table,
|
|
11
|
-
writable: false
|
|
12
|
-
});
|
|
13
|
-
return schema;
|
|
14
|
-
}
|
|
15
4
|
|
|
16
5
|
// src/dsl/defineTable.ts
|
|
17
6
|
function defineTable(spec) {
|
|
@@ -24,7 +13,11 @@ var epistemicNodeEmbeddings = defineTable({
|
|
|
24
13
|
component: "kernel",
|
|
25
14
|
category: "embedding",
|
|
26
15
|
shape: z.object({
|
|
27
|
-
|
|
16
|
+
// Canonical UUIDv7 globalId of the embedded node (not a Convex Id). Every
|
|
17
|
+
// cross-row reference in the graph is the node's globalId, resolved via the
|
|
18
|
+
// `by_globalId` index — see resolveNodeGlobalId/resolveNodeDocSoft. This
|
|
19
|
+
// keeps embeddings stable across extract/rebuild and carbon-copies.
|
|
20
|
+
nodeId: z.string(),
|
|
28
21
|
tenantId: z.string().optional(),
|
|
29
22
|
workspaceId: z.string().optional(),
|
|
30
23
|
topicId: z.string().optional(),
|
|
@@ -79,7 +72,13 @@ var epistemicNodeEmbeddings = defineTable({
|
|
|
79
72
|
name: "by_embedding",
|
|
80
73
|
vectorField: "embedding",
|
|
81
74
|
dimensions: 1024,
|
|
82
|
-
filterFields: [
|
|
75
|
+
filterFields: [
|
|
76
|
+
"nodeType",
|
|
77
|
+
"createdBy",
|
|
78
|
+
"topicId",
|
|
79
|
+
"tenantId",
|
|
80
|
+
"workspaceId"
|
|
81
|
+
]
|
|
83
82
|
}
|
|
84
83
|
]
|
|
85
84
|
});
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
export declare const crossProjectConnections: import("../../../dsl.js").TableContract<{
|
|
9
9
|
sourceProjectId: z.ZodOptional<z.ZodString>;
|
|
10
|
-
sourceTopicId: z.ZodOptional<
|
|
11
|
-
sourceNodeId:
|
|
10
|
+
sourceTopicId: z.ZodOptional<z.ZodString>;
|
|
11
|
+
sourceNodeId: z.ZodString;
|
|
12
12
|
targetProjectId: z.ZodOptional<z.ZodString>;
|
|
13
|
-
targetTopicId: z.ZodOptional<
|
|
14
|
-
targetNodeId:
|
|
13
|
+
targetTopicId: z.ZodOptional<z.ZodString>;
|
|
14
|
+
targetNodeId: z.ZodString;
|
|
15
15
|
semanticSimilarity: z.ZodNumber;
|
|
16
16
|
matchSignals: z.ZodObject<{
|
|
17
17
|
beliefTextSimilarity: z.ZodNumber;
|
|
@@ -42,7 +42,7 @@ export declare const crossProjectConnections: import("../../../dsl.js").TableCon
|
|
|
42
42
|
suggestedWeight: z.ZodOptional<z.ZodNumber>;
|
|
43
43
|
rationale: z.ZodString;
|
|
44
44
|
decision: z.ZodEnum<["pending", "accepted", "declined"]>;
|
|
45
|
-
acceptedEdgeId: z.ZodOptional<
|
|
45
|
+
acceptedEdgeId: z.ZodOptional<z.ZodString>;
|
|
46
46
|
declineReason: z.ZodOptional<z.ZodString>;
|
|
47
47
|
declineCategory: z.ZodOptional<z.ZodEnum<["not_relevant", "too_generic", "already_known", "different_context", "wrong_relationship", "premature", "other"]>>;
|
|
48
48
|
surfacedDuring: z.ZodEnum<["worktree_clustering", "chat", "morning_brief", "manual"]>;
|