@lucern/contracts 0.3.0-alpha.0 → 0.3.0-alpha.10
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 +4 -0
- package/dist/component-boundary.contract.d.ts +14 -0
- package/dist/component-boundary.contract.js +155 -0
- package/dist/component-boundary.contract.js.map +1 -0
- package/dist/component-host-boundary.contract.d.ts +41 -0
- package/dist/component-host-boundary.contract.js +54 -0
- package/dist/component-host-boundary.contract.js.map +1 -0
- package/dist/context-pack.contract.d.ts +5 -3
- package/dist/context-pack.contract.js.map +1 -1
- package/dist/{dsl-BgpoVOVQ.d.ts → dsl-djCRfuWC.d.ts} +1 -1
- package/dist/dsl.d.ts +1 -1
- package/dist/dsl.js +4 -4
- package/dist/dsl.js.map +1 -1
- package/dist/edge-policy-manifest-Dw5IhT1L.d.ts +133 -0
- package/dist/function-registry/beliefs.d.ts +42 -82
- package/dist/function-registry/beliefs.js +1154 -125
- package/dist/function-registry/beliefs.js.map +1 -1
- package/dist/function-registry/coding.d.ts +7 -31
- package/dist/function-registry/coding.js +958 -112
- package/dist/function-registry/coding.js.map +1 -1
- package/dist/function-registry/context.d.ts +14 -26
- package/dist/function-registry/context.js +923 -97
- package/dist/function-registry/context.js.map +1 -1
- package/dist/function-registry/contracts.d.ts +4 -16
- package/dist/function-registry/contracts.js +860 -82
- package/dist/function-registry/contracts.js.map +1 -1
- package/dist/function-registry/coordination.d.ts +10 -46
- package/dist/function-registry/coordination.js +872 -84
- package/dist/function-registry/coordination.js.map +1 -1
- package/dist/function-registry/edges.d.ts +166 -18
- package/dist/function-registry/edges.js +1188 -97
- package/dist/function-registry/edges.js.map +1 -1
- package/dist/function-registry/evidence.d.ts +42 -74
- package/dist/function-registry/evidence.js +1106 -130
- package/dist/function-registry/evidence.js.map +1 -1
- package/dist/function-registry/graph.d.ts +132 -106
- package/dist/function-registry/graph.js +1006 -100
- package/dist/function-registry/graph.js.map +1 -1
- package/dist/function-registry/helpers.d.ts +8 -10
- package/dist/function-registry/helpers.js +869 -83
- package/dist/function-registry/helpers.js.map +1 -1
- package/dist/function-registry/identity.d.ts +4 -16
- package/dist/function-registry/identity.js +860 -82
- package/dist/function-registry/identity.js.map +1 -1
- package/dist/function-registry/index.d.ts +322 -8
- package/dist/function-registry/index.js +1249 -87
- package/dist/function-registry/index.js.map +1 -1
- package/dist/function-registry/judgments.d.ts +12 -20
- package/dist/function-registry/judgments.js +891 -94
- package/dist/function-registry/judgments.js.map +1 -1
- package/dist/function-registry/legacy.d.ts +2 -6
- package/dist/function-registry/legacy.js +860 -82
- package/dist/function-registry/legacy.js.map +1 -1
- package/dist/function-registry/lenses.d.ts +18 -34
- package/dist/function-registry/lenses.js +928 -88
- package/dist/function-registry/lenses.js.map +1 -1
- package/dist/function-registry/manifest.d.ts +7 -7
- package/dist/function-registry/manifest.js +19 -2
- package/dist/function-registry/manifest.js.map +1 -1
- package/dist/function-registry/ontologies.d.ts +46 -90
- package/dist/function-registry/ontologies.js +908 -109
- package/dist/function-registry/ontologies.js.map +1 -1
- package/dist/function-registry/pipeline.d.ts +14 -26
- package/dist/function-registry/pipeline.js +880 -85
- package/dist/function-registry/pipeline.js.map +1 -1
- package/dist/function-registry/questions.d.ts +50 -98
- package/dist/function-registry/questions.js +1043 -118
- package/dist/function-registry/questions.js.map +1 -1
- package/dist/function-registry/tasks.d.ts +18 -34
- package/dist/function-registry/tasks.js +973 -87
- package/dist/function-registry/tasks.js.map +1 -1
- package/dist/function-registry/topics.d.ts +100 -42
- package/dist/function-registry/topics.js +961 -89
- package/dist/function-registry/topics.js.map +1 -1
- package/dist/function-registry/types.d.ts +2 -2
- package/dist/function-registry/worktrees.d.ts +116 -74
- package/dist/function-registry/worktrees.js +1124 -115
- package/dist/function-registry/worktrees.js.map +1 -1
- package/dist/function-registry-input-audit.d.ts +13 -0
- package/dist/function-registry-input-audit.js +166 -0
- package/dist/function-registry-input-audit.js.map +1 -0
- package/dist/gateway.contract.d.ts +2 -0
- package/dist/gateway.contract.js.map +1 -1
- package/dist/generated/convexSchemas.js +8 -6
- package/dist/generated/convexSchemas.js.map +1 -1
- package/dist/generated/schema-manifest.json +103 -5
- package/dist/generated/tableOwnership.d.ts +4 -2
- package/dist/generated/tableOwnership.js +4 -0
- package/dist/generated/tableOwnership.js.map +1 -1
- package/dist/generated/tier-expectations.json +9 -4
- package/dist/graph-intelligence.contract.d.ts +506 -0
- package/dist/graph-intelligence.contract.js +595 -0
- package/dist/graph-intelligence.contract.js.map +1 -0
- package/dist/graph-types/index.d.ts +5 -1
- package/dist/graph-types/index.js +15 -4
- package/dist/graph-types/index.js.map +1 -1
- package/dist/index-O09U2xHk.d.ts +28 -0
- package/dist/index.d.ts +25 -4
- package/dist/index.js +3989 -236
- package/dist/index.js.map +1 -1
- package/dist/infisical-runtime.contract.d.ts +174 -0
- package/dist/infisical-runtime.contract.js +317 -0
- package/dist/infisical-runtime.contract.js.map +1 -0
- package/dist/lens-filter.contract.js +4 -3
- package/dist/lens-filter.contract.js.map +1 -1
- package/dist/lens-workflow.contract.js +4 -3
- package/dist/lens-workflow.contract.js.map +1 -1
- package/dist/manifests/edge-policy-manifest.d.ts +2 -0
- package/dist/manifests/edge-policy-manifest.data.d.ts +13 -0
- package/dist/manifests/edge-policy-manifest.data.js +26 -0
- package/dist/manifests/edge-policy-manifest.data.js.map +1 -0
- package/dist/manifests/edge-policy-manifest.js +92 -0
- package/dist/manifests/edge-policy-manifest.js.map +1 -0
- package/dist/manifests/infisical-runtime-manifest.d.ts +151 -0
- package/dist/manifests/infisical-runtime-manifest.js +316 -0
- package/dist/manifests/infisical-runtime-manifest.js.map +1 -0
- package/dist/manifests/invariant-manifest.d.ts +65 -0
- package/dist/manifests/invariant-manifest.js +18 -0
- package/dist/manifests/invariant-manifest.js.map +1 -0
- package/dist/manifests/invariants/ast-utils.d.ts +14 -0
- package/dist/manifests/invariants/ast-utils.js +54 -0
- package/dist/manifests/invariants/ast-utils.js.map +1 -0
- package/dist/manifests/invariants/index.d.ts +15 -0
- package/dist/manifests/invariants/index.js +183 -0
- package/dist/manifests/invariants/index.js.map +1 -0
- package/dist/manifests/invariants/inv-1-beliefs-append-only.d.ts +12 -0
- package/dist/manifests/invariants/inv-1-beliefs-append-only.js +94 -0
- package/dist/manifests/invariants/inv-1-beliefs-append-only.js.map +1 -0
- package/dist/manifests/invariants/inv-14-no-silent-transitions.d.ts +12 -0
- package/dist/manifests/invariants/inv-14-no-silent-transitions.js +99 -0
- package/dist/manifests/invariants/inv-14-no-silent-transitions.js.map +1 -0
- package/dist/manifests/invariants/manifest-1-projections-declare-audit.d.ts +12 -0
- package/dist/manifests/invariants/manifest-1-projections-declare-audit.js +42 -0
- package/dist/manifests/invariants/manifest-1-projections-declare-audit.js.map +1 -0
- package/dist/manifests/tenant-client-manifest.d.ts +322 -0
- package/dist/manifests/tenant-client-manifest.js +432 -0
- package/dist/manifests/tenant-client-manifest.js.map +1 -0
- package/dist/mcp-gateway-boundary.contract.d.ts +181 -0
- package/dist/mcp-gateway-boundary.contract.js +43 -0
- package/dist/mcp-gateway-boundary.contract.js.map +1 -0
- package/dist/projections/check-convex-args-shape.d.ts +3 -0
- package/dist/projections/check-convex-args-shape.js +399 -0
- package/dist/projections/check-convex-args-shape.js.map +1 -0
- package/dist/projections/create-evidence.projection.d.ts +176 -0
- package/dist/projections/create-evidence.projection.js +131 -0
- package/dist/projections/create-evidence.projection.js.map +1 -0
- package/dist/projections/index.d.ts +102 -0
- package/dist/projections/index.js +348 -0
- package/dist/projections/index.js.map +1 -0
- package/dist/projections/list-beliefs.projection.d.ts +36 -0
- package/dist/projections/list-beliefs.projection.js +54 -0
- package/dist/projections/list-beliefs.projection.js.map +1 -0
- package/dist/projections/list-tasks.projection.d.ts +32 -0
- package/dist/projections/list-tasks.projection.js +52 -0
- package/dist/projections/list-tasks.projection.js.map +1 -0
- package/dist/projections/modulate-confidence.projection.d.ts +219 -0
- package/dist/projections/modulate-confidence.projection.js +148 -0
- package/dist/projections/modulate-confidence.projection.js.map +1 -0
- package/dist/projections/projection-dsl.d.ts +11 -0
- package/dist/projections/projection-dsl.js +8 -0
- package/dist/projections/projection-dsl.js.map +1 -0
- package/dist/schema-helpers/enumValidation.js +2 -5
- package/dist/schema-helpers/enumValidation.js.map +1 -1
- package/dist/schema-helpers/spine/nodes/decision.js +2 -1
- package/dist/schema-helpers/spine/nodes/decision.js.map +1 -1
- package/dist/schema-helpers/spine/tables/epistemicNodes.js +27 -27
- package/dist/schema-helpers/spine/tables/epistemicNodes.js.map +1 -1
- package/dist/schema-helpers/validators.d.ts +1 -1
- package/dist/schema-helpers/validators.js +1 -1
- package/dist/schema-helpers/validators.js.map +1 -1
- package/dist/schemas/component-table-manifest.d.ts +74 -0
- package/dist/schemas/component-table-manifest.js +26 -0
- package/dist/schemas/component-table-manifest.js.map +1 -0
- package/dist/schemas/enums.d.ts +5 -2
- package/dist/schemas/enums.js +5 -2
- package/dist/schemas/enums.js.map +1 -1
- package/dist/schemas/index.d.ts +3 -1
- package/dist/schemas/index.js +112 -13
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/manifest.d.ts +1154 -949
- package/dist/schemas/manifest.js +80 -12
- package/dist/schemas/manifest.js.map +1 -1
- package/dist/schemas/sl-opinion.d.ts +31 -0
- package/dist/schemas/sl-opinion.js +19 -0
- package/dist/schemas/sl-opinion.js.map +1 -0
- package/dist/schemas/tables/identity/platform.d.ts +10 -10
- package/dist/schemas/tables/kernel/epistemic.d.ts +12 -10
- package/dist/schemas/tables/kernel/epistemic.js +6 -4
- package/dist/schemas/tables/kernel/epistemic.js.map +1 -1
- package/dist/schemas/tables/kernel/infra.d.ts +17 -5
- package/dist/schemas/tables/kernel/infra.js +23 -1
- package/dist/schemas/tables/kernel/infra.js.map +1 -1
- package/dist/schemas/tables/kernel/intelligence.d.ts +10 -10
- package/dist/schemas/tables/kernel/lens.d.ts +4 -4
- package/dist/schemas/tables/kernel/platform.d.ts +12 -12
- package/dist/schemas/tables/kernel/spine.d.ts +3 -3
- package/dist/schemas/tables/kernel/spine.js +5 -2
- package/dist/schemas/tables/kernel/spine.js.map +1 -1
- package/dist/schemas/tables/kernel/task.d.ts +42 -42
- package/dist/schemas/tables/kernel/topic.js +5 -1
- package/dist/schemas/tables/kernel/topic.js.map +1 -1
- package/dist/schemas/tables/kernel/worktree.d.ts +62 -62
- package/dist/schemas/tables/kernel/worktree.js +6 -4
- package/dist/schemas/tables/kernel/worktree.js.map +1 -1
- package/dist/schemas/tables/mc/identity.d.ts +26 -3
- package/dist/schemas/tables/mc/identity.js +35 -1
- package/dist/schemas/tables/mc/identity.js.map +1 -1
- package/dist/schemas/tables/mc/pack.d.ts +20 -20
- package/dist/schemas/tables/mc/registry.d.ts +4 -4
- package/dist/schemas/tables/mc/runtime.d.ts +1 -1
- package/dist/schemas/tables/mc/runtime.js +1 -1
- package/dist/schemas/tables/mc/runtime.js.map +1 -1
- package/dist/schemas/tables/mc/workspace.d.ts +9 -3
- package/dist/schemas/tables/mc/workspace.js +3 -1
- package/dist/schemas/tables/mc/workspace.js.map +1 -1
- package/dist/sdk-methods.contract.d.ts +7 -4
- package/dist/{sdk-tools.contract-C2kQN_Xk.d.ts → sdk-tools.contract-BNklQDfB.d.ts} +2 -2
- package/dist/sdk-tools.contract.d.ts +2 -2
- package/dist/sdk-tools.contract.js +800 -74
- package/dist/sdk-tools.contract.js.map +1 -1
- package/dist/tenant-bootstrap-seed.contract.d.ts +1101 -0
- package/dist/tenant-bootstrap-seed.contract.js +653 -0
- package/dist/tenant-bootstrap-seed.contract.js.map +1 -0
- package/dist/tenant-bootstrap-seed.defaults.d.ts +16 -0
- package/dist/tenant-bootstrap-seed.defaults.js +303 -0
- package/dist/tenant-bootstrap-seed.defaults.js.map +1 -0
- package/dist/tenant-client.contract.d.ts +349 -0
- package/dist/tenant-client.contract.js +488 -0
- package/dist/tenant-client.contract.js.map +1 -0
- package/dist/{tool-contracts-WCnuE9DW.d.ts → tool-contracts-BevD9Ho2.d.ts} +39 -3
- package/dist/tool-contracts.d.ts +1 -1
- package/dist/tool-contracts.js +801 -75
- package/dist/tool-contracts.js.map +1 -1
- package/dist/workflow-runtime.contract.js +1 -1
- package/dist/workflow-runtime.contract.js.map +1 -1
- package/package.json +27 -1
- package/dist/index-DoDXl8KS.d.ts +0 -19
package/dist/schemas/manifest.js
CHANGED
|
@@ -400,6 +400,28 @@ var autofixJobs = defineTable({
|
|
|
400
400
|
{ kind: "index", name: "by_createdAt", columns: ["createdAt"] }
|
|
401
401
|
]
|
|
402
402
|
});
|
|
403
|
+
var neo4jSyncQueue = defineTable({
|
|
404
|
+
name: "neo4jSyncQueue",
|
|
405
|
+
component: "kernel",
|
|
406
|
+
category: "infra",
|
|
407
|
+
shape: z.object({
|
|
408
|
+
"entityType": z.enum(["node", "edge"]),
|
|
409
|
+
"entityId": z.string(),
|
|
410
|
+
"operation": z.enum(["upsert", "delete"]),
|
|
411
|
+
"attempts": z.number(),
|
|
412
|
+
"maxAttempts": z.number(),
|
|
413
|
+
"lastAttemptAt": z.number().optional(),
|
|
414
|
+
"lastError": z.string().optional(),
|
|
415
|
+
"status": z.enum(["pending", "in_progress", "failed", "succeeded"]),
|
|
416
|
+
"createdAt": z.number(),
|
|
417
|
+
"updatedAt": z.number()
|
|
418
|
+
}),
|
|
419
|
+
indices: [
|
|
420
|
+
{ kind: "index", name: "by_status", columns: ["status"] },
|
|
421
|
+
{ kind: "index", name: "by_entity", columns: ["entityType", "entityId"] },
|
|
422
|
+
{ kind: "index", name: "by_status_attempts", columns: ["status", "attempts"] }
|
|
423
|
+
]
|
|
424
|
+
});
|
|
403
425
|
var backgroundJobRuns = defineTable({
|
|
404
426
|
name: "backgroundJobRuns",
|
|
405
427
|
component: "kernel",
|
|
@@ -469,9 +491,9 @@ var beliefConfidence = defineTable({
|
|
|
469
491
|
category: "epistemic",
|
|
470
492
|
shape: z.object({
|
|
471
493
|
"beliefId": z.string(),
|
|
472
|
-
"belief": z.number()
|
|
473
|
-
"disbelief": z.number()
|
|
474
|
-
"uncertainty": z.number()
|
|
494
|
+
"belief": z.number(),
|
|
495
|
+
"disbelief": z.number(),
|
|
496
|
+
"uncertainty": z.number(),
|
|
475
497
|
"baseRate": z.number(),
|
|
476
498
|
"slOperator": z.string().optional(),
|
|
477
499
|
"confidence": z.number(),
|
|
@@ -480,10 +502,12 @@ var beliefConfidence = defineTable({
|
|
|
480
502
|
"certainty": z.number().optional(),
|
|
481
503
|
"assessedAt": z.number(),
|
|
482
504
|
"assessedBy": z.string(),
|
|
483
|
-
"trigger": z.enum(["initial", "evidence_added", "evidence_removed", "contradiction_detected", "contradiction_resolved", "
|
|
505
|
+
"trigger": z.enum(["initial", "evidence_added", "evidence_removed", "contradiction_detected", "contradiction_resolved", "propagation", "agent_assessment", "worktree_outcome", "worktree_completed", "fusion", "discount", "deduction", "backfill_synthetic"]),
|
|
484
506
|
"rationale": z.string().optional(),
|
|
485
507
|
"triggeringEvidenceId": z.string().optional(),
|
|
486
508
|
"triggeringEvidenceIds": z.array(z.string()).optional(),
|
|
509
|
+
"triggeringQuestionId": z.string().optional(),
|
|
510
|
+
"triggeringAnswerId": z.string().optional(),
|
|
487
511
|
"triggeringContradictionId": idOf("contradictions").optional(),
|
|
488
512
|
"triggeringWorktreeId": z.string().optional(),
|
|
489
513
|
"triggeringAgentId": z.string().optional(),
|
|
@@ -1166,7 +1190,7 @@ var tenantDeploymentCredentials = defineTable({
|
|
|
1166
1190
|
"credentialRef": z.string(),
|
|
1167
1191
|
"tenantId": idOf("tenants"),
|
|
1168
1192
|
"target": z.enum(["kernelDeployment", "appDeployment"]),
|
|
1169
|
-
"environment": z.enum(["dev", "prod"]),
|
|
1193
|
+
"environment": z.enum(["dev", "staging", "prod"]),
|
|
1170
1194
|
"encryptedDeployKey": z.string(),
|
|
1171
1195
|
"encryptionVersion": z.string(),
|
|
1172
1196
|
"keyFingerprint": z.string(),
|
|
@@ -1468,7 +1492,10 @@ var graphSuggestions = defineTable({
|
|
|
1468
1492
|
]
|
|
1469
1493
|
});
|
|
1470
1494
|
var NODE_TYPE = z.enum(["decision", "belief", "question", "theme", "deal", "topic", "claim", "evidence", "synthesis", "answer", "atomic_fact", "excerpt", "source", "company", "person", "investor", "function", "value_chain"]);
|
|
1471
|
-
var
|
|
1495
|
+
var EDGE_TYPE_VALUES = ["supports", "informs", "depends_on", "derived_from", "contains", "tests", "supersedes", "responds_to", "belongs_to", "relates_to_thesis", "works_at", "invested_in", "competes_with", "participates_in", "founded_by", "evaluates", "performs", "function_in", "impacts", "raised_from", "mentioned_in", "perspective_on", "plays_theme", "answers", "explores", "qualifies", "based_on", "based_on_belief", "based_on_question", "blocked_by_contradiction", "informed_by_theme", "same_as", "reinforces", "parent_of", "child_of", "falsified_by", "exclusive_with", "collapses_if", "cascade_from", "counterfactual_of", "cascade_to", "mutually_exclusive", "correlates_with", "amplifies", "precondition_for", "in_tension_with", "strengthened_by", "weakened_by", "alternative_to", "subsumes", "validated_by", "required_for", "blocks", "prerequisite_for", "parallel_to", "corroborates", "extends", "same_source_as", "same_theme_as", "assumes", "would_predict", "analogous_to", "independent_of", "implements", "violates", "co_changes_with", "migrating_from", "migrating_to", "scoped_by", "about_entity", "entity_referenced_in", "contradicts", "cites", "summarizes", "related_to", "partially_answers", "refines", "branches_from"];
|
|
1496
|
+
var STORAGE_EDGE_TYPE_VALUES = [...EDGE_TYPE_VALUES, "extracted_from"];
|
|
1497
|
+
z.enum(EDGE_TYPE_VALUES);
|
|
1498
|
+
var STORAGE_EDGE_TYPE = z.enum(STORAGE_EDGE_TYPE_VALUES);
|
|
1472
1499
|
var TOPIC_STATUS = z.enum(["active", "archived", "watching"]);
|
|
1473
1500
|
var TOPIC_VISIBILITY = z.enum(["private", "team", "firm", "external", "public"]);
|
|
1474
1501
|
|
|
@@ -1483,7 +1510,7 @@ var epistemicEdges = defineTable({
|
|
|
1483
1510
|
"toNodeId": z.string().optional(),
|
|
1484
1511
|
"sourceGlobalId": z.string().optional(),
|
|
1485
1512
|
"targetGlobalId": z.string().optional(),
|
|
1486
|
-
"edgeType":
|
|
1513
|
+
"edgeType": STORAGE_EDGE_TYPE,
|
|
1487
1514
|
"edgeTier": z.string().optional(),
|
|
1488
1515
|
"domainNamespace": z.string().optional(),
|
|
1489
1516
|
"constraint": z.string().optional(),
|
|
@@ -1826,6 +1853,40 @@ var rateLimitWindows = defineTable({
|
|
|
1826
1853
|
{ kind: "index", name: "by_tier_window_end", columns: ["tier", "windowEndMs"] }
|
|
1827
1854
|
]
|
|
1828
1855
|
});
|
|
1856
|
+
var oauthDeviceCodes = defineTable({
|
|
1857
|
+
name: "oauthDeviceCodes",
|
|
1858
|
+
component: "mc",
|
|
1859
|
+
category: "identity",
|
|
1860
|
+
shape: z.object({
|
|
1861
|
+
"deviceCodeHash": z.string(),
|
|
1862
|
+
"userCode": z.string(),
|
|
1863
|
+
"clientId": z.string(),
|
|
1864
|
+
"scope": z.string(),
|
|
1865
|
+
"status": z.enum(["pending", "approved", "denied", "expired", "consumed"]),
|
|
1866
|
+
"expiresAt": z.number(),
|
|
1867
|
+
"intervalSeconds": z.number(),
|
|
1868
|
+
"lastPolledAt": z.number().optional(),
|
|
1869
|
+
"slowDownCount": z.number().optional(),
|
|
1870
|
+
"clerkUserId": z.string().optional(),
|
|
1871
|
+
"tenantId": idOf("tenants").optional(),
|
|
1872
|
+
"workspaceId": z.string().optional(),
|
|
1873
|
+
"principalId": z.string().optional(),
|
|
1874
|
+
"role": z.string().optional(),
|
|
1875
|
+
"scopes": z.array(z.string()).optional(),
|
|
1876
|
+
"sessionId": z.string().optional(),
|
|
1877
|
+
"approvedAt": z.number().optional(),
|
|
1878
|
+
"deniedAt": z.number().optional(),
|
|
1879
|
+
"consumedAt": z.number().optional(),
|
|
1880
|
+
"createdAt": z.number(),
|
|
1881
|
+
"updatedAt": z.number()
|
|
1882
|
+
}),
|
|
1883
|
+
indices: [
|
|
1884
|
+
{ kind: "index", name: "by_deviceCodeHash", columns: ["deviceCodeHash"] },
|
|
1885
|
+
{ kind: "index", name: "by_userCode", columns: ["userCode"] },
|
|
1886
|
+
{ kind: "index", name: "by_status_expiresAt", columns: ["status", "expiresAt"] },
|
|
1887
|
+
{ kind: "index", name: "by_sessionId", columns: ["sessionId"] }
|
|
1888
|
+
]
|
|
1889
|
+
});
|
|
1829
1890
|
var servicePrincipalKeys = defineTable({
|
|
1830
1891
|
name: "servicePrincipalKeys",
|
|
1831
1892
|
component: "mc",
|
|
@@ -3658,6 +3719,7 @@ var topics = defineTable({
|
|
|
3658
3719
|
"updatedAt": z.number()
|
|
3659
3720
|
}),
|
|
3660
3721
|
indices: [
|
|
3722
|
+
{ kind: "index", name: "by_globalId", columns: ["globalId"] },
|
|
3661
3723
|
{ kind: "index", name: "by_parent", columns: ["parentTopicId"] },
|
|
3662
3724
|
{ kind: "index", name: "by_type", columns: ["type"] },
|
|
3663
3725
|
{ kind: "index", name: "by_graph_scope_project", columns: ["graphScopeProjectId"] },
|
|
@@ -3782,7 +3844,9 @@ var workspaces = defineTable({
|
|
|
3782
3844
|
"defaultProjectVisibility": z.enum(["private", "team", "firm", "external", "public"]).optional(),
|
|
3783
3845
|
"deployments": z.record(z.object({
|
|
3784
3846
|
"url": z.string(),
|
|
3785
|
-
"
|
|
3847
|
+
"target": z.enum(["kernelDeployment", "appDeployment"]).optional(),
|
|
3848
|
+
"encryptedDeployKey": z.string().optional(),
|
|
3849
|
+
"credentialRef": z.string().optional()
|
|
3786
3850
|
})).optional(),
|
|
3787
3851
|
"metadata": z.record(z.any()).optional(),
|
|
3788
3852
|
"createdBy": z.string().optional(),
|
|
@@ -3841,13 +3905,13 @@ var worktrees = defineTable({
|
|
|
3841
3905
|
"rationale": z.string().optional(),
|
|
3842
3906
|
"confidenceImpact": z.enum(["high", "medium", "low"]).optional(),
|
|
3843
3907
|
"hypothesis": z.string().optional(),
|
|
3844
|
-
"executionOrder": z.number().optional(),
|
|
3845
3908
|
"dependsOn": z.array(idOf("worktrees")).optional(),
|
|
3846
3909
|
"blocks": z.array(idOf("worktrees")).optional(),
|
|
3847
3910
|
"gate": z.string().optional(),
|
|
3848
|
-
"
|
|
3849
|
-
"
|
|
3850
|
-
"
|
|
3911
|
+
"campaign": z.number().optional(),
|
|
3912
|
+
"lane": z.string().optional(),
|
|
3913
|
+
"laneOrderInCampaign": z.number().optional(),
|
|
3914
|
+
"orderInLane": z.number().optional(),
|
|
3851
3915
|
"startDate": z.number(),
|
|
3852
3916
|
"endDate": z.number(),
|
|
3853
3917
|
"durationWeeks": z.number(),
|
|
@@ -4095,6 +4159,8 @@ var worktrees = defineTable({
|
|
|
4095
4159
|
{ kind: "index", name: "by_topicId_index", columns: ["topicId", "index"] },
|
|
4096
4160
|
{ kind: "index", name: "by_worktreeType", columns: ["topicId", "worktreeType"] },
|
|
4097
4161
|
{ kind: "index", name: "by_topicId_priority", columns: ["topicId", "priority"] },
|
|
4162
|
+
{ kind: "index", name: "by_topicId_campaign_lane_order", columns: ["topicId", "campaign", "laneOrderInCampaign", "orderInLane"] },
|
|
4163
|
+
{ kind: "index", name: "by_topicId_lane_order", columns: ["topicId", "lane", "orderInLane"] },
|
|
4098
4164
|
{ kind: "index", name: "by_topicId_branch", columns: ["topicId", "targetBranch"] },
|
|
4099
4165
|
{ kind: "index", name: "by_topicId_scope", columns: ["topicId", "worktreeScope"] }
|
|
4100
4166
|
]
|
|
@@ -4127,6 +4193,7 @@ var KERNEL_TABLE_CONTRACTS = [
|
|
|
4127
4193
|
questionEvidenceLinks,
|
|
4128
4194
|
idempotencyTokens,
|
|
4129
4195
|
autofixJobs,
|
|
4196
|
+
neo4jSyncQueue,
|
|
4130
4197
|
backgroundJobRuns,
|
|
4131
4198
|
backgroundJobSettings,
|
|
4132
4199
|
systemLogs,
|
|
@@ -4187,6 +4254,7 @@ var MC_TABLE_CONTRACTS = [
|
|
|
4187
4254
|
groupMemberships,
|
|
4188
4255
|
groups,
|
|
4189
4256
|
memberships,
|
|
4257
|
+
oauthDeviceCodes,
|
|
4190
4258
|
principals,
|
|
4191
4259
|
rateLimitWindows,
|
|
4192
4260
|
servicePrincipalKeys,
|