@lucern/contracts 0.3.0-alpha.17 → 0.3.0-alpha.2

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.
Files changed (316) hide show
  1. package/CHANGELOG.md +0 -10
  2. package/dist/api-enums.contract.d.ts +3 -5
  3. package/dist/api-enums.contract.js +12 -14
  4. package/dist/api-enums.contract.js.map +1 -1
  5. package/dist/auth-context.contract.js +2 -14
  6. package/dist/auth-context.contract.js.map +1 -1
  7. package/dist/auth-session.contract.js +2 -14
  8. package/dist/auth-session.contract.js.map +1 -1
  9. package/dist/auth.contract.d.ts +1 -1
  10. package/dist/auth.contract.js +2 -14
  11. package/dist/auth.contract.js.map +1 -1
  12. package/dist/context-pack.contract.d.ts +3 -5
  13. package/dist/context-pack.contract.js.map +1 -1
  14. package/dist/{defineTable-t1wr5wgn.d.ts → defineTable-CBQ03FXl.d.ts} +1 -1
  15. package/dist/{dsl-DVPthQGY.d.ts → dsl-BgpoVOVQ.d.ts} +2 -2
  16. package/dist/dsl.d.ts +2 -2
  17. package/dist/dsl.js +4 -1
  18. package/dist/dsl.js.map +1 -1
  19. package/dist/function-registry/beliefs.d.ts +51 -64
  20. package/dist/function-registry/beliefs.js +57 -817
  21. package/dist/function-registry/beliefs.js.map +1 -1
  22. package/dist/function-registry/coding.d.ts +6 -15
  23. package/dist/function-registry/coding.js +43 -866
  24. package/dist/function-registry/coding.js.map +1 -1
  25. package/dist/function-registry/context.d.ts +16 -22
  26. package/dist/function-registry/context.js +46 -805
  27. package/dist/function-registry/context.js.map +1 -1
  28. package/dist/function-registry/contracts.d.ts +3 -9
  29. package/dist/function-registry/contracts.js +39 -770
  30. package/dist/function-registry/contracts.js.map +1 -1
  31. package/dist/function-registry/coordination.d.ts +9 -21
  32. package/dist/function-registry/coordination.js +39 -770
  33. package/dist/function-registry/coordination.js.map +1 -1
  34. package/dist/function-registry/edges.d.ts +2 -167
  35. package/dist/function-registry/edges.js +71 -978
  36. package/dist/function-registry/edges.js.map +1 -1
  37. package/dist/function-registry/evidence.d.ts +41 -52
  38. package/dist/function-registry/evidence.js +62 -826
  39. package/dist/function-registry/evidence.js.map +1 -1
  40. package/dist/function-registry/graph.d.ts +66 -162
  41. package/dist/function-registry/graph.js +46 -886
  42. package/dist/function-registry/graph.js.map +1 -1
  43. package/dist/function-registry/helpers.d.ts +4 -7
  44. package/dist/function-registry/helpers.js +40 -771
  45. package/dist/function-registry/helpers.js.map +1 -1
  46. package/dist/function-registry/identity.d.ts +16 -62
  47. package/dist/function-registry/identity.js +45 -793
  48. package/dist/function-registry/identity.js.map +1 -1
  49. package/dist/function-registry/index.d.ts +3 -5
  50. package/dist/function-registry/index.js +43 -777
  51. package/dist/function-registry/index.js.map +1 -1
  52. package/dist/function-registry/judgments.d.ts +11 -16
  53. package/dist/function-registry/judgments.js +42 -782
  54. package/dist/function-registry/judgments.js.map +1 -1
  55. package/dist/function-registry/legacy.d.ts +1 -5
  56. package/dist/function-registry/legacy.js +39 -770
  57. package/dist/function-registry/legacy.js.map +1 -1
  58. package/dist/function-registry/lenses.d.ts +21 -28
  59. package/dist/function-registry/lenses.js +42 -793
  60. package/dist/function-registry/lenses.js.map +1 -1
  61. package/dist/function-registry/manifest.d.ts +6 -6
  62. package/dist/function-registry/manifest.js +2 -19
  63. package/dist/function-registry/manifest.js.map +1 -1
  64. package/dist/function-registry/ontologies.d.ts +56 -70
  65. package/dist/function-registry/ontologies.js +45 -788
  66. package/dist/function-registry/ontologies.js.map +1 -1
  67. package/dist/function-registry/pipeline.d.ts +16 -22
  68. package/dist/function-registry/pipeline.js +42 -779
  69. package/dist/function-registry/pipeline.js.map +1 -1
  70. package/dist/function-registry/questions.d.ts +61 -76
  71. package/dist/function-registry/questions.js +52 -869
  72. package/dist/function-registry/questions.js.map +1 -1
  73. package/dist/function-registry/tasks.d.ts +21 -28
  74. package/dist/function-registry/tasks.js +48 -845
  75. package/dist/function-registry/tasks.js.map +1 -1
  76. package/dist/function-registry/topics.d.ts +26 -114
  77. package/dist/function-registry/topics.js +43 -852
  78. package/dist/function-registry/topics.js.map +1 -1
  79. package/dist/function-registry/types.d.ts +3 -7
  80. package/dist/function-registry/worktrees.d.ts +51 -104
  81. package/dist/function-registry/worktrees.js +51 -925
  82. package/dist/function-registry/worktrees.js.map +1 -1
  83. package/dist/gateway.contract.d.ts +0 -6
  84. package/dist/gateway.contract.js.map +1 -1
  85. package/dist/generated/convexSchemas.d.ts +3 -3
  86. package/dist/generated/convexSchemas.js +18 -39
  87. package/dist/generated/convexSchemas.js.map +1 -1
  88. package/dist/generated/schema-manifest.json +98 -1244
  89. package/dist/generated/tableOwnership.d.ts +28 -49
  90. package/dist/generated/tableOwnership.js +26 -68
  91. package/dist/generated/tableOwnership.js.map +1 -1
  92. package/dist/generated/tier-expectations.json +9 -66
  93. package/dist/graph-types/index.d.ts +1 -5
  94. package/dist/graph-types/index.js +4 -15
  95. package/dist/graph-types/index.js.map +1 -1
  96. package/dist/index-CV-0_VWJ.d.ts +25 -0
  97. package/dist/index.d.ts +414 -30
  98. package/dist/index.js +342 -35266
  99. package/dist/index.js.map +1 -1
  100. package/dist/lens-filter.contract.js +3 -4
  101. package/dist/lens-filter.contract.js.map +1 -1
  102. package/dist/lens-workflow.contract.js +3 -4
  103. package/dist/lens-workflow.contract.js.map +1 -1
  104. package/dist/schema-helpers/enumValidation.js +5 -2
  105. package/dist/schema-helpers/enumValidation.js.map +1 -1
  106. package/dist/schema-helpers/spine/nodes/decision.js +1 -2
  107. package/dist/schema-helpers/spine/nodes/decision.js.map +1 -1
  108. package/dist/schema-helpers/spine/tables/epistemicNodes.js +27 -27
  109. package/dist/schema-helpers/spine/tables/epistemicNodes.js.map +1 -1
  110. package/dist/schemas/component-table-manifest.d.ts +6 -6
  111. package/dist/schemas/component-table-manifest.js +2 -2
  112. package/dist/schemas/component-table-manifest.js.map +1 -1
  113. package/dist/schemas/enums.d.ts +2 -5
  114. package/dist/schemas/enums.js +2 -5
  115. package/dist/schemas/enums.js.map +1 -1
  116. package/dist/schemas/index.d.ts +3 -3
  117. package/dist/schemas/index.js +139 -1165
  118. package/dist/schemas/index.js.map +1 -1
  119. package/dist/schemas/manifest.d.ts +932 -3042
  120. package/dist/schemas/manifest.js +137 -1163
  121. package/dist/schemas/manifest.js.map +1 -1
  122. package/dist/schemas/sl-opinion.d.ts +4 -4
  123. package/dist/schemas/tables/{controlPlane → identity}/agent.d.ts +1 -1
  124. package/dist/schemas/tables/{controlPlane → identity}/agent.js +3 -3
  125. package/dist/schemas/tables/identity/agent.js.map +1 -0
  126. package/dist/schemas/tables/{controlPlane → identity}/epistemic.d.ts +1 -1
  127. package/dist/schemas/tables/{controlPlane → identity}/epistemic.js +3 -3
  128. package/dist/schemas/tables/identity/epistemic.js.map +1 -0
  129. package/dist/schemas/tables/{controlPlane → identity}/model.d.ts +1 -1
  130. package/dist/schemas/tables/{controlPlane → identity}/model.js +6 -6
  131. package/dist/schemas/tables/identity/model.js.map +1 -0
  132. package/dist/schemas/tables/{controlPlane → identity}/platform.d.ts +11 -11
  133. package/dist/schemas/tables/{controlPlane → identity}/platform.js +18 -18
  134. package/dist/schemas/tables/identity/platform.js.map +1 -0
  135. package/dist/schemas/tables/{controlPlane → identity}/project.d.ts +1 -1
  136. package/dist/schemas/tables/{controlPlane → identity}/project.js +3 -3
  137. package/dist/schemas/tables/identity/project.js.map +1 -0
  138. package/dist/schemas/tables/{controlPlane → identity}/user.d.ts +1 -1
  139. package/dist/schemas/tables/{controlPlane → identity}/user.js +3 -3
  140. package/dist/schemas/tables/identity/user.js.map +1 -0
  141. package/dist/schemas/tables/kernel/config.d.ts +1 -1
  142. package/dist/schemas/tables/kernel/config.js.map +1 -1
  143. package/dist/schemas/tables/kernel/coordination.d.ts +1 -1
  144. package/dist/schemas/tables/kernel/coordination.js.map +1 -1
  145. package/dist/schemas/tables/kernel/decision.d.ts +1 -1
  146. package/dist/schemas/tables/kernel/decision.js.map +1 -1
  147. package/dist/schemas/tables/kernel/embedding.d.ts +1 -1
  148. package/dist/schemas/tables/kernel/embedding.js.map +1 -1
  149. package/dist/schemas/tables/kernel/epistemic.d.ts +7 -7
  150. package/dist/schemas/tables/kernel/epistemic.js.map +1 -1
  151. package/dist/schemas/tables/kernel/idempotency.d.ts +1 -1
  152. package/dist/schemas/tables/kernel/idempotency.js.map +1 -1
  153. package/dist/schemas/tables/kernel/infra.d.ts +5 -5
  154. package/dist/schemas/tables/kernel/infra.js.map +1 -1
  155. package/dist/schemas/tables/kernel/intelligence.d.ts +11 -11
  156. package/dist/schemas/tables/kernel/intelligence.js.map +1 -1
  157. package/dist/schemas/tables/kernel/lens.d.ts +5 -5
  158. package/dist/schemas/tables/kernel/lens.js.map +1 -1
  159. package/dist/schemas/tables/kernel/ontology.d.ts +1 -1
  160. package/dist/schemas/tables/kernel/ontology.js.map +1 -1
  161. package/dist/schemas/tables/kernel/platform.d.ts +13 -13
  162. package/dist/schemas/tables/kernel/platform.js.map +1 -1
  163. package/dist/schemas/tables/kernel/spine.d.ts +4 -5
  164. package/dist/schemas/tables/kernel/spine.js +2 -6
  165. package/dist/schemas/tables/kernel/spine.js.map +1 -1
  166. package/dist/schemas/tables/kernel/task.d.ts +43 -43
  167. package/dist/schemas/tables/kernel/task.js.map +1 -1
  168. package/dist/schemas/tables/kernel/topic.d.ts +1 -1
  169. package/dist/schemas/tables/kernel/topic.js +1 -5
  170. package/dist/schemas/tables/kernel/topic.js.map +1 -1
  171. package/dist/schemas/tables/kernel/workflow.d.ts +1 -1
  172. package/dist/schemas/tables/kernel/workflow.js.map +1 -1
  173. package/dist/schemas/tables/kernel/worktree.d.ts +55 -55
  174. package/dist/schemas/tables/kernel/worktree.js.map +1 -1
  175. package/dist/schemas/tables/mc/identity.d.ts +4 -44
  176. package/dist/schemas/tables/mc/identity.js +1 -66
  177. package/dist/schemas/tables/mc/identity.js.map +1 -1
  178. package/dist/schemas/tables/mc/methodology.d.ts +1 -1
  179. package/dist/schemas/tables/mc/methodology.js.map +1 -1
  180. package/dist/schemas/tables/mc/pack.d.ts +21 -21
  181. package/dist/schemas/tables/mc/pack.js.map +1 -1
  182. package/dist/schemas/tables/mc/policy.d.ts +2 -2
  183. package/dist/schemas/tables/mc/policy.js +1 -1
  184. package/dist/schemas/tables/mc/policy.js.map +1 -1
  185. package/dist/schemas/tables/mc/registry.d.ts +5 -5
  186. package/dist/schemas/tables/mc/registry.js.map +1 -1
  187. package/dist/schemas/tables/mc/runtime.d.ts +3 -109
  188. package/dist/schemas/tables/mc/runtime.js +104 -330
  189. package/dist/schemas/tables/mc/runtime.js.map +1 -1
  190. package/dist/schemas/tables/mc/tenant.d.ts +2 -4
  191. package/dist/schemas/tables/mc/tenant.js +1 -3
  192. package/dist/schemas/tables/mc/tenant.js.map +1 -1
  193. package/dist/schemas/tables/mc/workspace.d.ts +5 -28
  194. package/dist/schemas/tables/mc/workspace.js +2 -36
  195. package/dist/schemas/tables/mc/workspace.js.map +1 -1
  196. package/dist/sdk-methods.contract.d.ts +2 -2
  197. package/dist/{sdk-tools.contract-CKmSsrZ2.d.ts → sdk-tools.contract-S4ia0TTo.d.ts} +2 -2
  198. package/dist/sdk-tools.contract.d.ts +2 -2
  199. package/dist/sdk-tools.contract.js +27 -719
  200. package/dist/sdk-tools.contract.js.map +1 -1
  201. package/dist/{tool-contracts-C_xvM9q2.d.ts → tool-contracts-C92-9ueT.d.ts} +2 -38
  202. package/dist/tool-contracts.d.ts +1 -1
  203. package/dist/tool-contracts.js +28 -720
  204. package/dist/tool-contracts.js.map +1 -1
  205. package/package.json +1 -30
  206. package/dist/component-boundary.contract.d.ts +0 -14
  207. package/dist/component-boundary.contract.js +0 -175
  208. package/dist/component-boundary.contract.js.map +0 -1
  209. package/dist/component-host-boundary.contract.d.ts +0 -46
  210. package/dist/component-host-boundary.contract.js +0 -60
  211. package/dist/component-host-boundary.contract.js.map +0 -1
  212. package/dist/edge-policy-manifest-Dw5IhT1L.d.ts +0 -133
  213. package/dist/function-registry/nodes.d.ts +0 -412
  214. package/dist/function-registry/nodes.js +0 -5354
  215. package/dist/function-registry/nodes.js.map +0 -1
  216. package/dist/function-registry-input-audit.d.ts +0 -13
  217. package/dist/function-registry-input-audit.js +0 -166
  218. package/dist/function-registry-input-audit.js.map +0 -1
  219. package/dist/generated/infisicalRuntimeEnv.d.ts +0 -70
  220. package/dist/generated/infisicalRuntimeEnv.js +0 -27345
  221. package/dist/generated/infisicalRuntimeEnv.js.map +0 -1
  222. package/dist/generated/lucernGatewayEnv.d.ts +0 -17
  223. package/dist/generated/lucernGatewayEnv.js +0 -38
  224. package/dist/generated/lucernGatewayEnv.js.map +0 -1
  225. package/dist/generated/lucernWebPublicEnv.d.ts +0 -26
  226. package/dist/generated/lucernWebPublicEnv.js +0 -32
  227. package/dist/generated/lucernWebPublicEnv.js.map +0 -1
  228. package/dist/generated/lucernWebServerEnv.d.ts +0 -33
  229. package/dist/generated/lucernWebServerEnv.js +0 -51
  230. package/dist/generated/lucernWebServerEnv.js.map +0 -1
  231. package/dist/graph-intelligence.contract.d.ts +0 -506
  232. package/dist/graph-intelligence.contract.js +0 -595
  233. package/dist/graph-intelligence.contract.js.map +0 -1
  234. package/dist/index-CM1Pl_vI.d.ts +0 -28
  235. package/dist/infisical-runtime.contract.d.ts +0 -1889
  236. package/dist/infisical-runtime.contract.js +0 -3235
  237. package/dist/infisical-runtime.contract.js.map +0 -1
  238. package/dist/manifests/edge-policy-manifest.d.ts +0 -2
  239. package/dist/manifests/edge-policy-manifest.data.d.ts +0 -13
  240. package/dist/manifests/edge-policy-manifest.data.js +0 -26
  241. package/dist/manifests/edge-policy-manifest.data.js.map +0 -1
  242. package/dist/manifests/edge-policy-manifest.js +0 -92
  243. package/dist/manifests/edge-policy-manifest.js.map +0 -1
  244. package/dist/manifests/infisical-runtime-manifest.d.ts +0 -1792
  245. package/dist/manifests/infisical-runtime-manifest.js +0 -3090
  246. package/dist/manifests/infisical-runtime-manifest.js.map +0 -1
  247. package/dist/manifests/invariant-manifest.d.ts +0 -65
  248. package/dist/manifests/invariant-manifest.js +0 -18
  249. package/dist/manifests/invariant-manifest.js.map +0 -1
  250. package/dist/manifests/invariants/ast-utils.d.ts +0 -14
  251. package/dist/manifests/invariants/ast-utils.js +0 -54
  252. package/dist/manifests/invariants/ast-utils.js.map +0 -1
  253. package/dist/manifests/invariants/index.d.ts +0 -15
  254. package/dist/manifests/invariants/index.js +0 -183
  255. package/dist/manifests/invariants/index.js.map +0 -1
  256. package/dist/manifests/invariants/inv-1-beliefs-append-only.d.ts +0 -12
  257. package/dist/manifests/invariants/inv-1-beliefs-append-only.js +0 -94
  258. package/dist/manifests/invariants/inv-1-beliefs-append-only.js.map +0 -1
  259. package/dist/manifests/invariants/inv-14-no-silent-transitions.d.ts +0 -12
  260. package/dist/manifests/invariants/inv-14-no-silent-transitions.js +0 -99
  261. package/dist/manifests/invariants/inv-14-no-silent-transitions.js.map +0 -1
  262. package/dist/manifests/invariants/manifest-1-projections-declare-audit.d.ts +0 -12
  263. package/dist/manifests/invariants/manifest-1-projections-declare-audit.js +0 -42
  264. package/dist/manifests/invariants/manifest-1-projections-declare-audit.js.map +0 -1
  265. package/dist/manifests/tenant-client-manifest.d.ts +0 -327
  266. package/dist/manifests/tenant-client-manifest.js +0 -449
  267. package/dist/manifests/tenant-client-manifest.js.map +0 -1
  268. package/dist/mcp-gateway-boundary.contract.d.ts +0 -201
  269. package/dist/mcp-gateway-boundary.contract.js +0 -45
  270. package/dist/mcp-gateway-boundary.contract.js.map +0 -1
  271. package/dist/permit-principal-projection.contract.d.ts +0 -74
  272. package/dist/permit-principal-projection.contract.js +0 -167
  273. package/dist/permit-principal-projection.contract.js.map +0 -1
  274. package/dist/projections/check-convex-args-shape.d.ts +0 -3
  275. package/dist/projections/check-convex-args-shape.js +0 -403
  276. package/dist/projections/check-convex-args-shape.js.map +0 -1
  277. package/dist/projections/create-evidence.projection.d.ts +0 -176
  278. package/dist/projections/create-evidence.projection.js +0 -130
  279. package/dist/projections/create-evidence.projection.js.map +0 -1
  280. package/dist/projections/index.d.ts +0 -102
  281. package/dist/projections/index.js +0 -352
  282. package/dist/projections/index.js.map +0 -1
  283. package/dist/projections/list-beliefs.projection.d.ts +0 -36
  284. package/dist/projections/list-beliefs.projection.js +0 -54
  285. package/dist/projections/list-beliefs.projection.js.map +0 -1
  286. package/dist/projections/list-tasks.projection.d.ts +0 -44
  287. package/dist/projections/list-tasks.projection.js +0 -57
  288. package/dist/projections/list-tasks.projection.js.map +0 -1
  289. package/dist/projections/modulate-confidence.projection.d.ts +0 -219
  290. package/dist/projections/modulate-confidence.projection.js +0 -148
  291. package/dist/projections/modulate-confidence.projection.js.map +0 -1
  292. package/dist/projections/projection-dsl.d.ts +0 -11
  293. package/dist/projections/projection-dsl.js +0 -8
  294. package/dist/projections/projection-dsl.js.map +0 -1
  295. package/dist/proof-attestation.json +0 -45
  296. package/dist/schemas/tables/controlPlane/accessControl.d.ts +0 -260
  297. package/dist/schemas/tables/controlPlane/accessControl.js +0 -658
  298. package/dist/schemas/tables/controlPlane/accessControl.js.map +0 -1
  299. package/dist/schemas/tables/controlPlane/agent.js.map +0 -1
  300. package/dist/schemas/tables/controlPlane/epistemic.js.map +0 -1
  301. package/dist/schemas/tables/controlPlane/model.js.map +0 -1
  302. package/dist/schemas/tables/controlPlane/platform.js.map +0 -1
  303. package/dist/schemas/tables/controlPlane/project.js.map +0 -1
  304. package/dist/schemas/tables/controlPlane/user.js.map +0 -1
  305. package/dist/schemas/tables/kernel/events.d.ts +0 -21
  306. package/dist/schemas/tables/kernel/events.js +0 -43
  307. package/dist/schemas/tables/kernel/events.js.map +0 -1
  308. package/dist/tenant-bootstrap-seed.contract.d.ts +0 -1289
  309. package/dist/tenant-bootstrap-seed.contract.js +0 -764
  310. package/dist/tenant-bootstrap-seed.contract.js.map +0 -1
  311. package/dist/tenant-bootstrap-seed.defaults.d.ts +0 -16
  312. package/dist/tenant-bootstrap-seed.defaults.js +0 -321
  313. package/dist/tenant-bootstrap-seed.defaults.js.map +0 -1
  314. package/dist/tenant-client.contract.d.ts +0 -354
  315. package/dist/tenant-client.contract.js +0 -505
  316. package/dist/tenant-client.contract.js.map +0 -1
package/dist/index.d.ts CHANGED
@@ -1,50 +1,434 @@
1
1
  export { BELIEF_STATUSES, BRANCH_STATUSES, BeliefStatus, BranchStatus, CONFIDENCE_TRIGGERS, CONTRADICTION_SEVERITIES, CONTRADICTION_STATUSES, ConfidenceTrigger, ContradictionSeverity, ContradictionStatus, DEFEAT_TYPES, DefeatType, EPISTEMIC_LAYERS, EpistemicLayer, FORK_REASONS, ForkReason, INTEGRATION_EDGE_TYPES, IntegrationEdgeType, JUDGMENT_TYPES, JudgmentType, MERGE_OUTCOMES, MergeOutcome, PULL_REQUEST_STATUSES, PullRequestStatus, REASONING_METHODS, ReasoningMethod, WORKTREE_PHASES, WorktreePhase } from './api-enums.contract.js';
2
2
  export { AuthContext, LucernSdkClient, McpTransportKind, SESSION_AUTH_MODES, SESSION_LIFECYCLE_STATUSES, SESSION_PRINCIPAL_TYPES, SessionAuditEnvelope, SessionAuditOutcome, SessionAuthMode, SessionDelegationHop, SessionLifecycleStatus, SessionPrincipalType, inferSessionPrincipalType, lastDelegator, normalizeDelegationChain } from './auth.contract.js';
3
- export { COMPONENT_BOUNDARY_COMPONENT_LAYERS, COMPONENT_BOUNDARY_CONTRACT_VERSION, COMPONENT_BOUNDARY_DIRECT_DB_METHODS, COMPONENT_BOUNDARY_HIGH_RISK_TABLES, COMPONENT_BOUNDARY_HOST_SOURCE_ROOTS, ComponentBoundaryComponentLayer, ComponentBoundaryDirectDbMethod, ComponentBoundaryHighRiskTable, getComponentBoundaryTableLayer, isComponentBoundaryComponentOwnedTable } from './component-boundary.contract.js';
4
- export { COMPONENT_HOST_BOUNDARY_CONTRACT_VERSION, COMPONENT_HOST_DB_READ_OPERATIONS, COMPONENT_HOST_DB_WRITE_OPERATIONS, COMPONENT_HOST_PROTECTED_TABLES, COMPONENT_HOST_PROTECTED_TABLE_OWNERS, COMPONENT_HOST_WRITE_ALLOWED_EXCEPTIONS, COMPONENT_HOST_WRITE_AUDIT_ROOTS, ComponentHostDbOperation, ComponentHostDbReadOperation, ComponentHostDbWriteOperation, ComponentHostProtectedTable, ComponentHostWriteAuditRoot } from './component-host-boundary.contract.js';
5
3
  export { ConvexAdminClient } from './convex-admin.contract.js';
6
4
  export { CutoverDomain, CutoverFlagState, GatewayAuthContext, GatewayAuthMode, GatewayEnvironment, GatewayErrorArgs, GatewayScope, GatewaySuccessArgs, KeyLifecycleStatus, PlatformApiErrorCode, requireActorPrincipalId } from './gateway.contract.js';
7
- export { GRAPH_INTELLIGENCE_MODE_TOOL_NAMES, GRAPH_INTELLIGENCE_PUBLIC_TOOL_NAMES, GRAPH_INTELLIGENCE_QUERIES, GRAPH_INTELLIGENCE_QUERIES_WITH_TOOLS, GRAPH_INTELLIGENCE_QUERY_CATALOG_VERSION, GRAPH_INTELLIGENCE_QUERY_CATEGORIES, GRAPH_INTELLIGENCE_QUERY_MODES, GRAPH_INTELLIGENCE_QUICK_QUERIES, GraphIntelligenceCatalogFilter, GraphIntelligencePublicToolName, GraphIntelligenceQueryCategory, GraphIntelligenceQueryDefinition, GraphIntelligenceQueryId, GraphIntelligenceQueryInputType, GraphIntelligenceQueryMode, GraphIntelligenceQueryWithTools, GraphIntelligenceQuickQuery, fillGraphIntelligencePromptTemplate, getGraphIntelligenceQuery, isGraphIntelligenceQueryMode, listGraphIntelligenceQueries } from './graph-intelligence.contract.js';
8
5
  export { BELIEF_TYPE_BONUS, BeliefLatticeSeed, CONTEXT_PACK_SCHEMA_VERSION, CONTEXT_PACK_SECTION_KEYS, CONTEXT_RANKING_PROFILES, ContextCompilationMode, ContextPackBelief, ContextPackContradiction, ContextPackDeltaReport, ContextPackDiagnostics, ContextPackEntity, ContextPackEvidence, ContextPackFailure, ContextPackFailureContext, ContextPackInjectionPolicy, ContextPackQuestion, ContextPackRequestV1, ContextPackSectionKey, ContextPackSummary, ContextPackV1, ContextRankingProfile, DEFAULT_BELIEF_TYPE_BONUS, DEFAULT_COMPILATION_MODE, DEFAULT_ENTITY_LIMIT, DEFAULT_PRIORITY_SCORE, DEFAULT_RANKING_PROFILE, DEFAULT_SECTION_LIMIT, DEFAULT_SEVERITY_SCORE, DEFAULT_TOKEN_BUDGET, ENTITY_RANKING_WEIGHTS, MAX_ENTITY_LIMIT, MAX_SECTION_LIMIT, MAX_TOKEN_BUDGET, MIN_CONTRADICTION_BUDGET, MIN_TOKEN_BUDGET, MIN_TOKEN_ESTIMATE, PRIORITY_SCORES, PackWeightOverride, PublicCompiledContext, PublicContextBelief, PublicContextContradiction, PublicContextEntity, PublicContextEvidence, PublicContextInjectionPolicy, PublicContextQuestion, RANKING_WEIGHTS, RECENCY_HALF_LIFE_DAYS, RESOLVED_QUESTION_STATUSES, RankingWeightVector, SECTION_BUDGET_RATIOS, SEVERITY_SCORES, TOKENS_PER_WORD, VerificationObligation } from './context-pack.contract.js';
9
6
  export { CreateDomainEventInput, DOMAIN_EVENT_TYPES, DOMAIN_EVENT_VERSION, DomainActorType, DomainEvent, DomainEventData, DomainEventType, DomainResourceType, EVENT_RETENTION_DEFAULT_DAYS, EventCursor, EventListQuery, EventListResult, ReplayEventsInput, ReplayEventsResult, WEBHOOK_MAX_ATTEMPTS, WEBHOOK_RETRY_DELAYS_MS, WebhookCreateInput, WebhookDeliveriesResult, WebhookDeliveryAttemptRecord, WebhookDeliveryRecord, WebhookDeliveryStatus, WebhookHealthResult, WebhookRecord, WebhookSecretMode, WebhookTestResult, WebhookUpdateInput, buildDomainEvent, compareEventCursor, createEventId, decodeEventCursor, emitDomainEvent, encodeEventCursor, inferActorType, isAfterCursor, normalizeRetentionDays, sortEventsByCursor } from './events.contract.js';
10
7
  export { DecodedPrefixedId, decodePrefixedId, encodePrefixedId, hasPrefixedIdPrefix } from './ids.contract.js';
11
- export { d as contractDsl } from './dsl-DVPthQGY.js';
12
- export { i as schemaContracts } from './index-CM1Pl_vI.js';
8
+ export { d as contractDsl } from './dsl-BgpoVOVQ.js';
9
+ export { i as schemaContracts } from './index-CV-0_VWJ.js';
13
10
  export { ComponentTableManifest, ComponentTableManifestSchema } from './schemas/component-table-manifest.js';
14
11
  export { SLOpinionInput, SLOpinionInputSchema } from './schemas/sl-opinion.js';
15
- export { E as EdgePolicyEntry, a as EdgePolicyEntrySchema, b as EdgePolicyManifest, c as EdgePolicyManifestSchema, d as EdgePolicyViolation, e as EpistemicNodeType, f as EpistemicNodeTypeSchema, G as GRAPH_REF_NODE_TYPES, g as GraphRef, h as GraphRefSchema, i as assertEdgePolicyAllowed, j as findEdgePolicy } from './edge-policy-manifest-Dw5IhT1L.js';
16
- export { edgePolicyManifest } from './manifests/edge-policy-manifest.data.js';
17
- export { INFISICAL_RUNTIME_MANIFEST, InfisicalRuntimeManifest } from './manifests/infisical-runtime-manifest.js';
18
- export { CheckContext, CheckerKind, InvariantId, InvariantManifest, InvariantManifestSchema, InvariantResult, InvariantRule, InvariantSeverity } from './manifests/invariant-manifest.js';
19
- export { TENANT_CLIENT_MANIFEST, TenantClientManifest } from './manifests/tenant-client-manifest.js';
20
- export { GENERATED_INFISICAL_BOOTSTRAP_ENV_NAMES, GENERATED_INFISICAL_CONTROL_ENV_NAMES, GENERATED_INFISICAL_KNOWN_ENV_NAMES, GENERATED_INFISICAL_MANAGED_ENV_NAMES, GENERATED_INFISICAL_RUNTIME_ENV, GeneratedInfisicalControlEnvVariable, GeneratedInfisicalDestinationId, GeneratedInfisicalEnvReadResult, GeneratedInfisicalEnvSource, GeneratedInfisicalEnvSurface, GeneratedInfisicalEnvVariable, GeneratedInfisicalRuntimeEnvPayload, GeneratedInfisicalRuntimeSurfaceId, canonicalGeneratedInfisicalEnvName, generatedInfisicalVariableForName, isGeneratedInfisicalKnownEnvName, isGeneratedInfisicalManagedEnvName, readGeneratedInfisicalDestinationEnv, readGeneratedInfisicalEnvValue, readGeneratedInfisicalRuntimeEnvSurface } from './generated/infisicalRuntimeEnv.js';
21
- export { GENERATED_LUCERN_GATEWAY_ENV_NAMES, GeneratedLucernGatewayEnv, GeneratedLucernGatewayEnvSource, readGeneratedLucernGatewayEnv } from './generated/lucernGatewayEnv.js';
22
- export { GENERATED_LUCERN_WEB_PUBLIC_ENV_NAMES, GeneratedLucernWebPublicEnv, GeneratedLucernWebPublicEnvSource, readGeneratedLucernWebPublicEnv } from './generated/lucernWebPublicEnv.js';
23
- export { GENERATED_LUCERN_WEB_SERVER_ENV_NAMES, GeneratedLucernWebServerEnv, GeneratedLucernWebServerEnvSource, readGeneratedLucernWebServerEnv } from './generated/lucernWebServerEnv.js';
24
- export { ProjectionRegistry, projections } from './projections/index.js';
12
+ import * as zod from 'zod';
13
+ import { z } from 'zod';
25
14
  export * from './function-registry/index.js';
26
- export { t as mcpToolsContract } from './tool-contracts-C_xvM9q2.js';
15
+ export { t as mcpToolsContract } from './tool-contracts-C92-9ueT.js';
27
16
  export { EntityConnectionMatch, EntityMatchCandidate, EntityTypeMatch, OntologyEntityType, rankEntityConnections, rankEntityTypeMatches, scoreEntityConnection, scoreEntityTypeMatch } from './v1/ontologies/v1.js';
28
- export { PermitAliasProjection, PermitGroupMembershipProjection, PermitPrincipalProjection, PermitProjectedUserRecord, PermitProjectionPlatformRole, PermitProjectionRows, PermitRoleAssignmentProjection, buildProjectedUserFromPermitPrincipal, findProjectedUserByPermitClerkId, findProjectedUserByPermitPrincipalId, isActivePermitProjectionStatus, mapPermitRoleToPlatformRole, readPermitProjectionString } from './permit-principal-projection.contract.js';
29
17
  export { LucernPrompt, LucernPromptModelHint, isLucernPrompt } from './prompt.contract.js';
30
18
  export { AddEvidenceInput, AddWorktreeInput, BeliefResult, BisectConfidenceInput, BisectResult, BranchResult, CompileContextInput, CompiledContextResult, ConfidenceResult, ContradictionResult, CreateBeliefInput, CreateBranchInput, CreateEdgeInput, EdgeResult, EvidenceResult, FlagContradictionInput, ForkBeliefInput, ForkResult, JudgmentResult, LineageResult, LucernClient, LucernClientConfig, LucernGraphMethods, LucernWorkflowMethods, MergeInput, MergeResult, ModulateConfidenceInput, OpenPullRequestInput, PullRequestResult, PushInput, PushResult, QueryLineageInput, RecordJudgmentInput, RefineBeliefInput, SearchBeliefsInput, WorktreeResult } from './sdk-methods.contract.js';
31
- export { s as sdkToolsContract } from './sdk-tools.contract-CKmSsrZ2.js';
32
- export { INFISICAL_CONVEX_TIERS, INFISICAL_CONVEX_TIER_BY_VERCEL_ENVIRONMENT, INFISICAL_RUNTIME_BOOTSTRAP_ENV, INFISICAL_RUNTIME_CONTRACT_VERSION, INFISICAL_RUNTIME_CONTROL_ENV, INFISICAL_RUNTIME_DEFAULT_API_URL, INFISICAL_RUNTIME_DEFAULT_PROJECT_ID, INFISICAL_RUNTIME_DELIVERY_MODES, INFISICAL_RUNTIME_ENVIRONMENTS, INFISICAL_RUNTIME_PATHS, INFISICAL_RUNTIME_SURFACES, INFISICAL_RUNTIME_SURFACE_IDS, INFISICAL_SECRET_CONSUMERS, INFISICAL_SECRET_DEFINITIONS, INFISICAL_SECRET_DESTINATION_KINDS, INFISICAL_SECRET_ENVIRONMENT_POLICIES, INFISICAL_SECRET_OWNERS, INFISICAL_SECRET_SCOPES, INFISICAL_TENANT_SOFTWARE_SYSTEMS, INFISICAL_VERCEL_DESTINATION_ENVIRONMENTS, INFISICAL_VERCEL_SYNC_DESTINATIONS, INFISICAL_VERCEL_SYNC_RECONCILIATION, INFISICAL_VERCEL_TARGETS, InfisicalConvexTier, InfisicalRuntimeBootstrapEnv, InfisicalRuntimeControlEnv, InfisicalRuntimeDeliveryMode, InfisicalRuntimeEnvironment, InfisicalRuntimePath, InfisicalRuntimePathDefinition, InfisicalRuntimePathId, InfisicalRuntimeSurface, InfisicalRuntimeSurfaceDefinition, InfisicalRuntimeSurfaceId, InfisicalRuntimeVariable, InfisicalSecretConsumer, InfisicalSecretDefinition, InfisicalSecretDestination, InfisicalSecretDestinationKind, InfisicalSecretEnvironmentPolicy, InfisicalSecretId, InfisicalSecretOwner, InfisicalSecretScope, InfisicalTenantSoftwareSystem, InfisicalTenantSoftwareSystemDefinition, InfisicalTenantSoftwareSystemId, InfisicalVercelDestinationEnvironment, InfisicalVercelSyncDestination, InfisicalVercelTarget, convexTierForVercelDestinationEnvironment, expectedTenantConvexDeploymentForVercelEnvironment, findInfisicalRuntimePath, findInfisicalRuntimeSurface, findInfisicalSecretDefinition, findInfisicalTenantSoftwareSystem, findInfisicalVercelSyncDestination, infisicalSecretDefinitionsForConsumer, infisicalSecretDefinitionsForDestination, tenantSoftwareSystemConvexEnvNames, tenantSoftwareSystemOwnsConvexEnvName, validateInfisicalSecretDefinitions, vercelCustomEnvironmentIdForTenantSoftwareSystem } from './infisical-runtime.contract.js';
33
- export { TENANT_CLIENT_AUTH_MODES, TENANT_CLIENT_CAPABILITIES, TENANT_CLIENT_COMPONENT_CONFIG_IMPORTS, TENANT_CLIENT_CONTRACT_VERSION, TENANT_CLIENT_FORBIDDEN_IMPORT_PATTERNS, TENANT_CLIENT_FORBIDDEN_INSTALL_TOKEN_INFISICAL_PATHS, TENANT_CLIENT_FORBIDDEN_SECRET_ENV, TENANT_CLIENT_FULL_SUITE_PACKAGE_NAMES, TENANT_CLIENT_INSTALLABLE_PACKAGES, TENANT_CLIENT_INSTALL_PROFILES, TENANT_CLIENT_INSTALL_TOKEN_ENV, TENANT_CLIENT_INSTALL_TOKEN_INFISICAL_PATH, TENANT_CLIENT_ISOLATION_RULES, TENANT_CLIENT_OPTIONAL_CONTEXT_FIELDS, TENANT_CLIENT_PRINCIPAL_TYPES, TENANT_CLIENT_PUBLIC_IMPORTS, TENANT_CLIENT_REQUIRED_CONTEXT_FIELDS, TENANT_CLIENT_REQUIRED_SDK_NAMESPACES, TenantClientAllowedImport, TenantClientAuthMode, TenantClientCapability, TenantClientCapabilityId, TenantClientComponentConfigImport, TenantClientForbiddenImportPattern, TenantClientForbiddenImportPatternId, TenantClientForbiddenInstallTokenInfisicalPath, TenantClientForbiddenSecretEnv, TenantClientImportClassification, TenantClientImportDecision, TenantClientInstallProfile, TenantClientInstallProfileId, TenantClientInstallablePackage, TenantClientInstallablePackageName, TenantClientIsolationRule, TenantClientOptionalContextField, TenantClientPackageRole, TenantClientPrincipalType, TenantClientPublicImport, TenantClientPublicPackage, TenantClientPublicSurface, TenantClientRequiredContextField, TenantClientRequiredSdkNamespace, assertTenantClientImportAllowed, classifyTenantClientImport, findTenantClientInstallablePackage, formatTenantClientImportViolation, isTenantClientAllowedImport, isTenantClientComponentConfigImport, isTenantClientInstallablePackage, isTenantClientPublicImport } from './tenant-client.contract.js';
34
- export { TENANT_BOOTSTRAP_FORBIDDEN_SEED_TABLES, TENANT_BOOTSTRAP_SEED_AUTH_METADATA_FIELDS, TENANT_BOOTSTRAP_SEED_COMPONENTS, TENANT_BOOTSTRAP_SEED_CONTRACT_VERSION, TENANT_BOOTSTRAP_SEED_MANIFEST, TENANT_BOOTSTRAP_SEED_TABLES, TENANT_BOOTSTRAP_TABLE_REQUIREMENTS, TenantBootstrapCopyMode, TenantBootstrapForbiddenSeedTable, TenantBootstrapPrepopulation, TenantBootstrapSeedAuthMetadataField, TenantBootstrapSeedComponent, TenantBootstrapSeedScope, TenantBootstrapSeedTable, TenantBootstrapSeedTableName, TenantBootstrapTableRequirement, findTenantBootstrapSeedTable, findTenantBootstrapTableRequirement, isTenantBootstrapForbiddenSeedTable, isTenantBootstrapSeedTable } from './tenant-bootstrap-seed.contract.js';
35
- export { TENANT_BOOTSTRAP_TEMPLATE_ACTOR, TENANT_BOOTSTRAP_TEMPLATE_SEED_VERSION, TENANT_BOOTSTRAP_TEMPLATE_TENANT_ID, TenantBootstrapTemplateSeedOptions, TenantBootstrapTemplateSeedRows, buildTenantBootstrapTemplateSeedRows } from './tenant-bootstrap-seed.defaults.js';
19
+ export { s as sdkToolsContract } from './sdk-tools.contract-S4ia0TTo.js';
36
20
  export { LexicalRerankOptions, LexicalSignal, LexicalStrategy, PreparedLexicalQuery, bigramTokenize, jaccardSimilarity, prepareLexicalQuery, rankWindowScore, rerankLexicalWindow, scoreLexicalSignal, scoreLexicalSignals, stemToken, tokenOverlapScore, tokenizeSearchText, wordOverlapScore, wordTokenize } from './text-matching.contract.js';
37
21
  export { ROOT_TOPIC_ID, TopicDoc, collectTopicNeighborhood } from './v1/topics/v1.js';
38
22
  export { CANONICAL_WORKFLOW_DEFINITIONS, DEFAULT_TIER_APPROVAL_MODE, DEFAULT_WORKFLOW_AUTO_FIX_POLICY, EngineeringBriefOutput, InboxSummaryOutput, MORNING_BRIEF_WORKFLOW_ID, NIGHTLY_RECONCILIATION_WORKFLOW_ID, PipelineBriefOutput, ResearchMemoOutput, StrategyArtifactOutput, StructuredPayloadOutput, WORKFLOW_ACTION_KINDS, WORKFLOW_APPROVAL_MODES, WORKFLOW_AUTO_FIX_MODES, WORKFLOW_HOOK_EVENTS, WORKFLOW_INTEGRITY_CHECKS, WORKFLOW_MUTATION_TIERS, WORKFLOW_OUTPUT_KINDS, WORKFLOW_PROOF_ARTIFACT_KINDS, WORKFLOW_RUNTIME_SCHEMA_VERSION, WORKFLOW_RUN_STATUSES, WORKFLOW_STAFFING_HINTS, WORKFLOW_TRIGGER_KINDS, WorkflowActionContract, WorkflowActionKind, WorkflowApprovalMode, WorkflowApprovalPolicy, WorkflowAutoFixMode, WorkflowAutoFixPolicy, WorkflowDefinitionV1, WorkflowHookContract, WorkflowHookEvent, WorkflowIntegrityCheckId, WorkflowMutationTier, WorkflowOutputBase, WorkflowOutputContract, WorkflowOutputKind, WorkflowProofArtifact, WorkflowProofArtifactKind, WorkflowRunReceiptV1, WorkflowRunStatus, WorkflowStaffingHint, WorkflowTriggerContract, WorkflowTriggerKind } from './workflow-runtime.contract.js';
39
- export { ProjectionDef, defineProjection } from './projections/projection-dsl.js';
40
- export { createEvidenceProjection } from './projections/create-evidence.projection.js';
41
- export { listBeliefsProjection } from './projections/list-beliefs.projection.js';
42
- export { listTasksProjection } from './projections/list-tasks.projection.js';
43
- export { modulateConfidenceProjection } from './projections/modulate-confidence.projection.js';
44
- import './generated/tableOwnership.js';
45
23
  import './defineFunction-DO97DKs4.js';
46
- import 'zod';
47
- import './defineTable-t1wr5wgn.js';
24
+ import './defineTable-CBQ03FXl.js';
48
25
  import './idOf-DR8tkhQS.js';
49
26
  import './schemas/enums.js';
50
27
  import './schemas/manifest.js';
28
+
29
+ declare const EpistemicNodeTypeSchema: z.ZodEnum<["belief", "evidence", "question", "answer", "topic", "edge", "ontology", "lens", "contradiction"]>;
30
+ type EpistemicNodeType = z.infer<typeof EpistemicNodeTypeSchema>;
31
+ type GraphRef = {
32
+ kind: "epistemic_node";
33
+ nodeId: string;
34
+ nodeType: EpistemicNodeType;
35
+ } | {
36
+ kind: "external_belief";
37
+ ref: {
38
+ tenantId: string;
39
+ beliefId: string;
40
+ };
41
+ };
42
+ declare const GraphRefSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
43
+ kind: z.ZodLiteral<"epistemic_node">;
44
+ nodeId: z.ZodString;
45
+ nodeType: z.ZodEnum<["belief", "evidence", "question", "answer", "topic", "edge", "ontology", "lens", "contradiction"]>;
46
+ }, "strip", z.ZodTypeAny, {
47
+ nodeType: "belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "answer" | "lens";
48
+ nodeId: string;
49
+ kind: "epistemic_node";
50
+ }, {
51
+ nodeType: "belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "answer" | "lens";
52
+ nodeId: string;
53
+ kind: "epistemic_node";
54
+ }>, z.ZodObject<{
55
+ kind: z.ZodLiteral<"external_belief">;
56
+ ref: z.ZodObject<{
57
+ tenantId: z.ZodString;
58
+ beliefId: z.ZodString;
59
+ }, "strip", z.ZodTypeAny, {
60
+ tenantId: string;
61
+ beliefId: string;
62
+ }, {
63
+ tenantId: string;
64
+ beliefId: string;
65
+ }>;
66
+ }, "strip", z.ZodTypeAny, {
67
+ kind: "external_belief";
68
+ ref: {
69
+ tenantId: string;
70
+ beliefId: string;
71
+ };
72
+ }, {
73
+ kind: "external_belief";
74
+ ref: {
75
+ tenantId: string;
76
+ beliefId: string;
77
+ };
78
+ }>]>;
79
+
80
+ declare const EdgePolicyEntrySchema: z.ZodObject<{
81
+ edgeType: z.ZodString;
82
+ fromKinds: z.ZodArray<z.ZodEnum<["epistemic_node", "external_belief"]>, "many">;
83
+ fromNodeTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["belief", "evidence", "question", "answer", "topic", "edge", "ontology", "lens", "contradiction"]>, "many">>;
84
+ toKinds: z.ZodArray<z.ZodEnum<["epistemic_node", "external_belief"]>, "many">;
85
+ toNodeTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["belief", "evidence", "question", "answer", "topic", "edge", "ontology", "lens", "contradiction"]>, "many">>;
86
+ description: z.ZodString;
87
+ }, "strip", z.ZodTypeAny, {
88
+ description: string;
89
+ edgeType: string;
90
+ fromKinds: ("epistemic_node" | "external_belief")[];
91
+ toKinds: ("epistemic_node" | "external_belief")[];
92
+ fromNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "answer" | "lens")[] | undefined;
93
+ toNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "answer" | "lens")[] | undefined;
94
+ }, {
95
+ description: string;
96
+ edgeType: string;
97
+ fromKinds: ("epistemic_node" | "external_belief")[];
98
+ toKinds: ("epistemic_node" | "external_belief")[];
99
+ fromNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "answer" | "lens")[] | undefined;
100
+ toNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "answer" | "lens")[] | undefined;
101
+ }>;
102
+ declare const EdgePolicyManifestSchema: z.ZodObject<{
103
+ manifestVersion: z.ZodLiteral<"1.0.0">;
104
+ policies: z.ZodArray<z.ZodObject<{
105
+ edgeType: z.ZodString;
106
+ fromKinds: z.ZodArray<z.ZodEnum<["epistemic_node", "external_belief"]>, "many">;
107
+ fromNodeTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["belief", "evidence", "question", "answer", "topic", "edge", "ontology", "lens", "contradiction"]>, "many">>;
108
+ toKinds: z.ZodArray<z.ZodEnum<["epistemic_node", "external_belief"]>, "many">;
109
+ toNodeTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["belief", "evidence", "question", "answer", "topic", "edge", "ontology", "lens", "contradiction"]>, "many">>;
110
+ description: z.ZodString;
111
+ }, "strip", z.ZodTypeAny, {
112
+ description: string;
113
+ edgeType: string;
114
+ fromKinds: ("epistemic_node" | "external_belief")[];
115
+ toKinds: ("epistemic_node" | "external_belief")[];
116
+ fromNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "answer" | "lens")[] | undefined;
117
+ toNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "answer" | "lens")[] | undefined;
118
+ }, {
119
+ description: string;
120
+ edgeType: string;
121
+ fromKinds: ("epistemic_node" | "external_belief")[];
122
+ toKinds: ("epistemic_node" | "external_belief")[];
123
+ fromNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "answer" | "lens")[] | undefined;
124
+ toNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "answer" | "lens")[] | undefined;
125
+ }>, "many">;
126
+ }, "strip", z.ZodTypeAny, {
127
+ manifestVersion: "1.0.0";
128
+ policies: {
129
+ description: string;
130
+ edgeType: string;
131
+ fromKinds: ("epistemic_node" | "external_belief")[];
132
+ toKinds: ("epistemic_node" | "external_belief")[];
133
+ fromNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "answer" | "lens")[] | undefined;
134
+ toNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "answer" | "lens")[] | undefined;
135
+ }[];
136
+ }, {
137
+ manifestVersion: "1.0.0";
138
+ policies: {
139
+ description: string;
140
+ edgeType: string;
141
+ fromKinds: ("epistemic_node" | "external_belief")[];
142
+ toKinds: ("epistemic_node" | "external_belief")[];
143
+ fromNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "answer" | "lens")[] | undefined;
144
+ toNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "answer" | "lens")[] | undefined;
145
+ }[];
146
+ }>;
147
+ type EdgePolicyEntry = z.infer<typeof EdgePolicyEntrySchema>;
148
+ type EdgePolicyManifest = z.infer<typeof EdgePolicyManifestSchema>;
149
+ type EdgePolicyViolation = {
150
+ code: "POLICY_VIOLATION";
151
+ edgeType: string;
152
+ from: GraphRef;
153
+ to: GraphRef;
154
+ };
155
+ declare function findEdgePolicy(manifest: EdgePolicyManifest, edgeType: string): EdgePolicyEntry | undefined;
156
+ declare function assertEdgePolicyAllowed(manifest: EdgePolicyManifest, edgeType: string, from: GraphRef, to: GraphRef): void;
157
+
158
+ declare const edgePolicyManifest: {
159
+ manifestVersion: "1.0.0";
160
+ policies: ({
161
+ edgeType: string;
162
+ fromKinds: "epistemic_node"[];
163
+ fromNodeTypes: "evidence"[];
164
+ toKinds: "epistemic_node"[];
165
+ toNodeTypes: "evidence"[];
166
+ description: string;
167
+ } | {
168
+ edgeType: string;
169
+ fromKinds: "epistemic_node"[];
170
+ fromNodeTypes: "evidence"[];
171
+ toKinds: "epistemic_node"[];
172
+ toNodeTypes: "belief"[];
173
+ description: string;
174
+ } | {
175
+ edgeType: string;
176
+ fromKinds: "epistemic_node"[];
177
+ fromNodeTypes: "evidence"[];
178
+ toKinds: "epistemic_node"[];
179
+ toNodeTypes: "question"[];
180
+ description: string;
181
+ })[];
182
+ };
183
+
184
+ interface ProjectionDef<TInput, TConvexArgs> {
185
+ contractName: string;
186
+ inputSchema: z.ZodSchema<TInput>;
187
+ project: (input: TInput) => TConvexArgs;
188
+ convexArgsValidator: unknown;
189
+ }
190
+ declare function defineProjection<I, C>(def: ProjectionDef<I, C>): ProjectionDef<I, C>;
191
+
192
+ declare const createEvidenceProjection: ProjectionDef<z.objectInputType<{
193
+ projectId: z.ZodOptional<z.ZodString>;
194
+ topicId: z.ZodOptional<z.ZodString>;
195
+ text: z.ZodOptional<z.ZodString>;
196
+ canonicalText: z.ZodOptional<z.ZodString>;
197
+ title: z.ZodOptional<z.ZodString>;
198
+ content: z.ZodOptional<z.ZodString>;
199
+ contentType: z.ZodOptional<z.ZodString>;
200
+ kind: z.ZodOptional<z.ZodString>;
201
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
202
+ source: z.ZodOptional<z.ZodString>;
203
+ sourceUrl: z.ZodOptional<z.ZodString>;
204
+ sourceType: z.ZodOptional<z.ZodString>;
205
+ externalSourceType: z.ZodOptional<z.ZodString>;
206
+ sourceQuestionId: z.ZodOptional<z.ZodString>;
207
+ methodology: z.ZodOptional<z.ZodString>;
208
+ informationAsymmetry: z.ZodOptional<z.ZodString>;
209
+ sourceDescription: z.ZodOptional<z.ZodString>;
210
+ targetId: z.ZodOptional<z.ZodString>;
211
+ targetNodeId: z.ZodOptional<z.ZodString>;
212
+ linkedBeliefNodeId: z.ZodOptional<z.ZodString>;
213
+ evidenceRelation: z.ZodOptional<z.ZodEnum<["supports", "contradicts", "neutral"]>>;
214
+ confidence: z.ZodOptional<z.ZodNumber>;
215
+ weight: z.ZodOptional<z.ZodNumber>;
216
+ reasoning: z.ZodOptional<z.ZodString>;
217
+ rationale: z.ZodString;
218
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
219
+ trustedBypassAccessCheck: z.ZodOptional<z.ZodBoolean>;
220
+ }, z.ZodTypeAny, "passthrough">, Record<string, unknown>>;
221
+
222
+ declare const listBeliefsProjection: ProjectionDef<{
223
+ topicId: string;
224
+ status?: "active" | "archived" | "unscored" | "scored" | "superseded" | undefined;
225
+ worktreeId?: string | undefined;
226
+ limit?: number | undefined;
227
+ minConfidence?: number | undefined;
228
+ includeEdgeAssociated?: boolean | undefined;
229
+ }, Record<string, unknown>>;
230
+
231
+ declare const listTasksProjection: ProjectionDef<{
232
+ topicId: string;
233
+ status?: "blocked" | "in_progress" | "todo" | "done" | undefined;
234
+ worktreeId?: string | undefined;
235
+ limit?: number | undefined;
236
+ linkedWorktreeId?: string | undefined;
237
+ }, Record<string, unknown>>;
238
+
239
+ declare const modulateConfidenceProjection: ProjectionDef<{
240
+ trigger: "evidence_added" | "evidence_removed" | "contradiction_detected" | "contradiction_resolved" | "agent_assessment" | "worktree_outcome" | "worktree_completed" | "fusion" | "discount" | "deduction" | "backfill_synthetic" | "answer_recorded";
241
+ rationale: string;
242
+ belief?: number | undefined;
243
+ worktreeId?: string | undefined;
244
+ disbelief?: number | undefined;
245
+ uncertainty?: number | undefined;
246
+ baseRate?: number | undefined;
247
+ triggeringEvidenceId?: string | undefined;
248
+ triggeringQuestionId?: string | undefined;
249
+ triggeringAnswerId?: string | undefined;
250
+ triggeringContradictionId?: string | undefined;
251
+ triggeringWorktreeId?: string | undefined;
252
+ beliefNodeId?: string | undefined;
253
+ nodeId?: string | undefined;
254
+ trustedBypassAccessCheck?: boolean | undefined;
255
+ opinion?: {
256
+ belief: number;
257
+ disbelief: number;
258
+ uncertainty: number;
259
+ baseRate: number;
260
+ } | undefined;
261
+ provenance?: {
262
+ evidence?: string | undefined;
263
+ question?: string | undefined;
264
+ contradiction?: string | undefined;
265
+ worktree?: string | undefined;
266
+ answer?: string | undefined;
267
+ } | undefined;
268
+ }, {
269
+ nodeId: string;
270
+ worktreeId: string | undefined;
271
+ belief: number;
272
+ disbelief: number;
273
+ uncertainty: number;
274
+ baseRate: number;
275
+ trigger: "evidence_added" | "evidence_removed" | "contradiction_detected" | "contradiction_resolved" | "agent_assessment" | "worktree_outcome" | "worktree_completed" | "fusion" | "discount" | "deduction" | "backfill_synthetic";
276
+ triggeringEvidenceId: string | undefined;
277
+ triggeringQuestionId: string | undefined;
278
+ triggeringAnswerId: string | undefined;
279
+ triggeringContradictionId: string | undefined;
280
+ triggeringWorktreeId: string | undefined;
281
+ rationale: string;
282
+ trustedBypassAccessCheck: boolean;
283
+ }>;
284
+
285
+ declare const projections: {
286
+ readonly create_evidence: ProjectionDef<zod.objectInputType<{
287
+ projectId: zod.ZodOptional<zod.ZodString>;
288
+ topicId: zod.ZodOptional<zod.ZodString>;
289
+ text: zod.ZodOptional<zod.ZodString>;
290
+ canonicalText: zod.ZodOptional<zod.ZodString>;
291
+ title: zod.ZodOptional<zod.ZodString>;
292
+ content: zod.ZodOptional<zod.ZodString>;
293
+ contentType: zod.ZodOptional<zod.ZodString>;
294
+ kind: zod.ZodOptional<zod.ZodString>;
295
+ tags: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
296
+ source: zod.ZodOptional<zod.ZodString>;
297
+ sourceUrl: zod.ZodOptional<zod.ZodString>;
298
+ sourceType: zod.ZodOptional<zod.ZodString>;
299
+ externalSourceType: zod.ZodOptional<zod.ZodString>;
300
+ sourceQuestionId: zod.ZodOptional<zod.ZodString>;
301
+ methodology: zod.ZodOptional<zod.ZodString>;
302
+ informationAsymmetry: zod.ZodOptional<zod.ZodString>;
303
+ sourceDescription: zod.ZodOptional<zod.ZodString>;
304
+ targetId: zod.ZodOptional<zod.ZodString>;
305
+ targetNodeId: zod.ZodOptional<zod.ZodString>;
306
+ linkedBeliefNodeId: zod.ZodOptional<zod.ZodString>;
307
+ evidenceRelation: zod.ZodOptional<zod.ZodEnum<["supports", "contradicts", "neutral"]>>;
308
+ confidence: zod.ZodOptional<zod.ZodNumber>;
309
+ weight: zod.ZodOptional<zod.ZodNumber>;
310
+ reasoning: zod.ZodOptional<zod.ZodString>;
311
+ rationale: zod.ZodString;
312
+ metadata: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
313
+ trustedBypassAccessCheck: zod.ZodOptional<zod.ZodBoolean>;
314
+ }, zod.ZodTypeAny, "passthrough">, Record<string, unknown>>;
315
+ readonly list_beliefs: ProjectionDef<{
316
+ topicId: string;
317
+ status?: "active" | "archived" | "unscored" | "scored" | "superseded" | undefined;
318
+ worktreeId?: string | undefined;
319
+ limit?: number | undefined;
320
+ minConfidence?: number | undefined;
321
+ includeEdgeAssociated?: boolean | undefined;
322
+ }, Record<string, unknown>>;
323
+ readonly list_tasks: ProjectionDef<{
324
+ topicId: string;
325
+ status?: "blocked" | "in_progress" | "todo" | "done" | undefined;
326
+ worktreeId?: string | undefined;
327
+ limit?: number | undefined;
328
+ linkedWorktreeId?: string | undefined;
329
+ }, Record<string, unknown>>;
330
+ readonly modulate_confidence: ProjectionDef<{
331
+ trigger: "evidence_added" | "evidence_removed" | "contradiction_detected" | "contradiction_resolved" | "agent_assessment" | "worktree_outcome" | "worktree_completed" | "fusion" | "discount" | "deduction" | "backfill_synthetic" | "answer_recorded";
332
+ rationale: string;
333
+ belief?: number | undefined;
334
+ worktreeId?: string | undefined;
335
+ disbelief?: number | undefined;
336
+ uncertainty?: number | undefined;
337
+ baseRate?: number | undefined;
338
+ triggeringEvidenceId?: string | undefined;
339
+ triggeringQuestionId?: string | undefined;
340
+ triggeringAnswerId?: string | undefined;
341
+ triggeringContradictionId?: string | undefined;
342
+ triggeringWorktreeId?: string | undefined;
343
+ beliefNodeId?: string | undefined;
344
+ nodeId?: string | undefined;
345
+ trustedBypassAccessCheck?: boolean | undefined;
346
+ opinion?: {
347
+ belief: number;
348
+ disbelief: number;
349
+ uncertainty: number;
350
+ baseRate: number;
351
+ } | undefined;
352
+ provenance?: {
353
+ evidence?: string | undefined;
354
+ question?: string | undefined;
355
+ contradiction?: string | undefined;
356
+ worktree?: string | undefined;
357
+ answer?: string | undefined;
358
+ } | undefined;
359
+ }, {
360
+ nodeId: string;
361
+ worktreeId: string | undefined;
362
+ belief: number;
363
+ disbelief: number;
364
+ uncertainty: number;
365
+ baseRate: number;
366
+ trigger: "evidence_added" | "evidence_removed" | "contradiction_detected" | "contradiction_resolved" | "agent_assessment" | "worktree_outcome" | "worktree_completed" | "fusion" | "discount" | "deduction" | "backfill_synthetic";
367
+ triggeringEvidenceId: string | undefined;
368
+ triggeringQuestionId: string | undefined;
369
+ triggeringAnswerId: string | undefined;
370
+ triggeringContradictionId: string | undefined;
371
+ triggeringWorktreeId: string | undefined;
372
+ rationale: string;
373
+ trustedBypassAccessCheck: boolean;
374
+ }>;
375
+ };
376
+ type ProjectionRegistry = typeof projections;
377
+
378
+ type InvariantId = string;
379
+ type CheckerKind = "ast" | "manifest" | "runtime";
380
+ type InvariantSeverity = "block_publish" | "block_pr" | "warn";
381
+ interface CheckContext {
382
+ repoRoot: string;
383
+ projections: ProjectionRegistry;
384
+ }
385
+ interface InvariantResult {
386
+ status: "passed" | "failed" | "skipped";
387
+ evidenceRefs: string[];
388
+ reason?: string;
389
+ }
390
+ interface InvariantRule {
391
+ invariant: InvariantId;
392
+ description: string;
393
+ checker: CheckerKind;
394
+ severity: InvariantSeverity;
395
+ evaluate: (ctx: CheckContext) => Promise<InvariantResult>;
396
+ }
397
+ declare const InvariantManifestSchema: z.ZodObject<{
398
+ manifestVersion: z.ZodLiteral<"1.0.0">;
399
+ rules: z.ZodArray<z.ZodObject<{
400
+ invariant: z.ZodString;
401
+ description: z.ZodString;
402
+ checker: z.ZodEnum<["ast", "manifest", "runtime"]>;
403
+ severity: z.ZodEnum<["block_publish", "block_pr", "warn"]>;
404
+ }, "strip", z.ZodTypeAny, {
405
+ invariant: string;
406
+ description: string;
407
+ severity: "warn" | "block_publish" | "block_pr";
408
+ checker: "runtime" | "ast" | "manifest";
409
+ }, {
410
+ invariant: string;
411
+ description: string;
412
+ severity: "warn" | "block_publish" | "block_pr";
413
+ checker: "runtime" | "ast" | "manifest";
414
+ }>, "many">;
415
+ }, "strip", z.ZodTypeAny, {
416
+ rules: {
417
+ invariant: string;
418
+ description: string;
419
+ severity: "warn" | "block_publish" | "block_pr";
420
+ checker: "runtime" | "ast" | "manifest";
421
+ }[];
422
+ manifestVersion: "1.0.0";
423
+ }, {
424
+ rules: {
425
+ invariant: string;
426
+ description: string;
427
+ severity: "warn" | "block_publish" | "block_pr";
428
+ checker: "runtime" | "ast" | "manifest";
429
+ }[];
430
+ manifestVersion: "1.0.0";
431
+ }>;
432
+ type InvariantManifest = z.infer<typeof InvariantManifestSchema>;
433
+
434
+ export { type CheckContext, type CheckerKind, type EdgePolicyEntry, EdgePolicyEntrySchema, type EdgePolicyManifest, EdgePolicyManifestSchema, type EdgePolicyViolation, type EpistemicNodeType, EpistemicNodeTypeSchema, type GraphRef, GraphRefSchema, type InvariantId, type InvariantManifest, InvariantManifestSchema, type InvariantResult, type InvariantRule, type InvariantSeverity, type ProjectionDef, type ProjectionRegistry, assertEdgePolicyAllowed, createEvidenceProjection, defineProjection, edgePolicyManifest, findEdgePolicy, listBeliefsProjection, listTasksProjection, modulateConfidenceProjection, projections };