@lucern/contracts 0.3.0-alpha.1 → 0.3.0-alpha.11

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 (303) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/api-enums.contract.d.ts +5 -3
  3. package/dist/api-enums.contract.js +14 -12
  4. package/dist/api-enums.contract.js.map +1 -1
  5. package/dist/component-boundary.contract.d.ts +14 -0
  6. package/dist/component-boundary.contract.js +174 -0
  7. package/dist/component-boundary.contract.js.map +1 -0
  8. package/dist/component-host-boundary.contract.d.ts +46 -0
  9. package/dist/component-host-boundary.contract.js +60 -0
  10. package/dist/component-host-boundary.contract.js.map +1 -0
  11. package/dist/context-pack.contract.d.ts +5 -3
  12. package/dist/context-pack.contract.js.map +1 -1
  13. package/dist/{defineTable-CBQ03FXl.d.ts → defineTable-t1wr5wgn.d.ts} +1 -1
  14. package/dist/{dsl-BgpoVOVQ.d.ts → dsl-DVPthQGY.d.ts} +2 -2
  15. package/dist/dsl.d.ts +2 -2
  16. package/dist/dsl.js +1 -4
  17. package/dist/dsl.js.map +1 -1
  18. package/dist/edge-policy-manifest-Dw5IhT1L.d.ts +133 -0
  19. package/dist/function-registry/beliefs.d.ts +54 -41
  20. package/dist/function-registry/beliefs.js +759 -38
  21. package/dist/function-registry/beliefs.js.map +1 -1
  22. package/dist/function-registry/coding.d.ts +9 -0
  23. package/dist/function-registry/coding.js +811 -39
  24. package/dist/function-registry/coding.js.map +1 -1
  25. package/dist/function-registry/context.d.ts +19 -13
  26. package/dist/function-registry/context.js +750 -42
  27. package/dist/function-registry/context.js.map +1 -1
  28. package/dist/function-registry/contracts.d.ts +6 -0
  29. package/dist/function-registry/contracts.js +715 -35
  30. package/dist/function-registry/contracts.js.map +1 -1
  31. package/dist/function-registry/coordination.d.ts +12 -0
  32. package/dist/function-registry/coordination.js +715 -35
  33. package/dist/function-registry/coordination.js.map +1 -1
  34. package/dist/function-registry/edges.d.ts +165 -0
  35. package/dist/function-registry/edges.js +923 -67
  36. package/dist/function-registry/edges.js.map +1 -1
  37. package/dist/function-registry/evidence.d.ts +44 -33
  38. package/dist/function-registry/evidence.js +769 -47
  39. package/dist/function-registry/evidence.js.map +1 -1
  40. package/dist/function-registry/graph.d.ts +149 -53
  41. package/dist/function-registry/graph.js +831 -42
  42. package/dist/function-registry/graph.js.map +1 -1
  43. package/dist/function-registry/helpers.d.ts +6 -3
  44. package/dist/function-registry/helpers.js +716 -36
  45. package/dist/function-registry/helpers.js.map +1 -1
  46. package/dist/function-registry/identity.d.ts +6 -0
  47. package/dist/function-registry/identity.js +715 -35
  48. package/dist/function-registry/identity.js.map +1 -1
  49. package/dist/function-registry/index.d.ts +5 -3
  50. package/dist/function-registry/index.js +722 -39
  51. package/dist/function-registry/index.js.map +1 -1
  52. package/dist/function-registry/judgments.d.ts +14 -9
  53. package/dist/function-registry/judgments.js +727 -38
  54. package/dist/function-registry/judgments.js.map +1 -1
  55. package/dist/function-registry/legacy.d.ts +4 -0
  56. package/dist/function-registry/legacy.js +715 -35
  57. package/dist/function-registry/legacy.js.map +1 -1
  58. package/dist/function-registry/lenses.d.ts +24 -17
  59. package/dist/function-registry/lenses.js +738 -38
  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 +18 -2
  63. package/dist/function-registry/manifest.js.map +1 -1
  64. package/dist/function-registry/nodes.d.ts +412 -0
  65. package/dist/function-registry/nodes.js +5303 -0
  66. package/dist/function-registry/nodes.js.map +1 -0
  67. package/dist/function-registry/ontologies.d.ts +59 -45
  68. package/dist/function-registry/ontologies.js +733 -41
  69. package/dist/function-registry/ontologies.js.map +1 -1
  70. package/dist/function-registry/pipeline.d.ts +19 -13
  71. package/dist/function-registry/pipeline.js +724 -38
  72. package/dist/function-registry/pipeline.js.map +1 -1
  73. package/dist/function-registry/questions.d.ts +64 -49
  74. package/dist/function-registry/questions.js +812 -43
  75. package/dist/function-registry/questions.js.map +1 -1
  76. package/dist/function-registry/tasks.d.ts +24 -17
  77. package/dist/function-registry/tasks.js +776 -44
  78. package/dist/function-registry/tasks.js.map +1 -1
  79. package/dist/function-registry/topics.d.ts +109 -21
  80. package/dist/function-registry/topics.js +797 -39
  81. package/dist/function-registry/topics.js.map +1 -1
  82. package/dist/function-registry/types.d.ts +6 -2
  83. package/dist/function-registry/worktrees.d.ts +94 -41
  84. package/dist/function-registry/worktrees.js +854 -47
  85. package/dist/function-registry/worktrees.js.map +1 -1
  86. package/dist/function-registry-input-audit.d.ts +13 -0
  87. package/dist/function-registry-input-audit.js +166 -0
  88. package/dist/function-registry-input-audit.js.map +1 -0
  89. package/dist/gateway.contract.d.ts +5 -0
  90. package/dist/gateway.contract.js.map +1 -1
  91. package/dist/generated/convexSchemas.d.ts +3 -3
  92. package/dist/generated/convexSchemas.js +38 -18
  93. package/dist/generated/convexSchemas.js.map +1 -1
  94. package/dist/generated/infisicalRuntimeEnv.d.ts +70 -0
  95. package/dist/generated/infisicalRuntimeEnv.js +26572 -0
  96. package/dist/generated/infisicalRuntimeEnv.js.map +1 -0
  97. package/dist/generated/lucernGatewayEnv.d.ts +17 -0
  98. package/dist/generated/lucernGatewayEnv.js +38 -0
  99. package/dist/generated/lucernGatewayEnv.js.map +1 -0
  100. package/dist/generated/lucernWebPublicEnv.d.ts +26 -0
  101. package/dist/generated/lucernWebPublicEnv.js +32 -0
  102. package/dist/generated/lucernWebPublicEnv.js.map +1 -0
  103. package/dist/generated/lucernWebServerEnv.d.ts +33 -0
  104. package/dist/generated/lucernWebServerEnv.js +51 -0
  105. package/dist/generated/lucernWebServerEnv.js.map +1 -0
  106. package/dist/generated/schema-manifest.json +1199 -138
  107. package/dist/generated/tableOwnership.d.ts +47 -27
  108. package/dist/generated/tableOwnership.js +66 -26
  109. package/dist/generated/tableOwnership.js.map +1 -1
  110. package/dist/generated/tier-expectations.json +62 -8
  111. package/dist/graph-intelligence.contract.d.ts +506 -0
  112. package/dist/graph-intelligence.contract.js +595 -0
  113. package/dist/graph-intelligence.contract.js.map +1 -0
  114. package/dist/graph-types/index.d.ts +5 -1
  115. package/dist/graph-types/index.js +15 -4
  116. package/dist/graph-types/index.js.map +1 -1
  117. package/dist/index-CM1Pl_vI.d.ts +28 -0
  118. package/dist/index.d.ts +29 -414
  119. package/dist/index.js +34791 -1088
  120. package/dist/index.js.map +1 -1
  121. package/dist/infisical-runtime.contract.d.ts +1768 -0
  122. package/dist/infisical-runtime.contract.js +3093 -0
  123. package/dist/infisical-runtime.contract.js.map +1 -0
  124. package/dist/lens-filter.contract.js +4 -3
  125. package/dist/lens-filter.contract.js.map +1 -1
  126. package/dist/lens-workflow.contract.js +4 -3
  127. package/dist/lens-workflow.contract.js.map +1 -1
  128. package/dist/manifests/edge-policy-manifest.d.ts +2 -0
  129. package/dist/manifests/edge-policy-manifest.data.d.ts +13 -0
  130. package/dist/manifests/edge-policy-manifest.data.js +26 -0
  131. package/dist/manifests/edge-policy-manifest.data.js.map +1 -0
  132. package/dist/manifests/edge-policy-manifest.js +92 -0
  133. package/dist/manifests/edge-policy-manifest.js.map +1 -0
  134. package/dist/manifests/infisical-runtime-manifest.d.ts +1672 -0
  135. package/dist/manifests/infisical-runtime-manifest.js +2948 -0
  136. package/dist/manifests/infisical-runtime-manifest.js.map +1 -0
  137. package/dist/manifests/invariant-manifest.d.ts +65 -0
  138. package/dist/manifests/invariant-manifest.js +18 -0
  139. package/dist/manifests/invariant-manifest.js.map +1 -0
  140. package/dist/manifests/invariants/ast-utils.d.ts +14 -0
  141. package/dist/manifests/invariants/ast-utils.js +54 -0
  142. package/dist/manifests/invariants/ast-utils.js.map +1 -0
  143. package/dist/manifests/invariants/index.d.ts +15 -0
  144. package/dist/manifests/invariants/index.js +183 -0
  145. package/dist/manifests/invariants/index.js.map +1 -0
  146. package/dist/manifests/invariants/inv-1-beliefs-append-only.d.ts +12 -0
  147. package/dist/manifests/invariants/inv-1-beliefs-append-only.js +94 -0
  148. package/dist/manifests/invariants/inv-1-beliefs-append-only.js.map +1 -0
  149. package/dist/manifests/invariants/inv-14-no-silent-transitions.d.ts +12 -0
  150. package/dist/manifests/invariants/inv-14-no-silent-transitions.js +99 -0
  151. package/dist/manifests/invariants/inv-14-no-silent-transitions.js.map +1 -0
  152. package/dist/manifests/invariants/manifest-1-projections-declare-audit.d.ts +12 -0
  153. package/dist/manifests/invariants/manifest-1-projections-declare-audit.js +42 -0
  154. package/dist/manifests/invariants/manifest-1-projections-declare-audit.js.map +1 -0
  155. package/dist/manifests/tenant-client-manifest.d.ts +322 -0
  156. package/dist/manifests/tenant-client-manifest.js +432 -0
  157. package/dist/manifests/tenant-client-manifest.js.map +1 -0
  158. package/dist/mcp-gateway-boundary.contract.d.ts +201 -0
  159. package/dist/mcp-gateway-boundary.contract.js +45 -0
  160. package/dist/mcp-gateway-boundary.contract.js.map +1 -0
  161. package/dist/projections/check-convex-args-shape.d.ts +3 -0
  162. package/dist/projections/check-convex-args-shape.js +403 -0
  163. package/dist/projections/check-convex-args-shape.js.map +1 -0
  164. package/dist/projections/create-evidence.projection.d.ts +176 -0
  165. package/dist/projections/create-evidence.projection.js +130 -0
  166. package/dist/projections/create-evidence.projection.js.map +1 -0
  167. package/dist/projections/index.d.ts +102 -0
  168. package/dist/projections/index.js +352 -0
  169. package/dist/projections/index.js.map +1 -0
  170. package/dist/projections/list-beliefs.projection.d.ts +36 -0
  171. package/dist/projections/list-beliefs.projection.js +54 -0
  172. package/dist/projections/list-beliefs.projection.js.map +1 -0
  173. package/dist/projections/list-tasks.projection.d.ts +44 -0
  174. package/dist/projections/list-tasks.projection.js +57 -0
  175. package/dist/projections/list-tasks.projection.js.map +1 -0
  176. package/dist/projections/modulate-confidence.projection.d.ts +219 -0
  177. package/dist/projections/modulate-confidence.projection.js +148 -0
  178. package/dist/projections/modulate-confidence.projection.js.map +1 -0
  179. package/dist/projections/projection-dsl.d.ts +11 -0
  180. package/dist/projections/projection-dsl.js +8 -0
  181. package/dist/projections/projection-dsl.js.map +1 -0
  182. package/dist/proof-attestation.json +45 -0
  183. package/dist/schema-helpers/enumValidation.js +2 -5
  184. package/dist/schema-helpers/enumValidation.js.map +1 -1
  185. package/dist/schema-helpers/spine/nodes/decision.js +2 -1
  186. package/dist/schema-helpers/spine/nodes/decision.js.map +1 -1
  187. package/dist/schema-helpers/spine/tables/epistemicNodes.js +27 -27
  188. package/dist/schema-helpers/spine/tables/epistemicNodes.js.map +1 -1
  189. package/dist/schemas/component-table-manifest.d.ts +6 -6
  190. package/dist/schemas/component-table-manifest.js +2 -2
  191. package/dist/schemas/component-table-manifest.js.map +1 -1
  192. package/dist/schemas/enums.d.ts +5 -2
  193. package/dist/schemas/enums.js +5 -2
  194. package/dist/schemas/enums.js.map +1 -1
  195. package/dist/schemas/index.d.ts +3 -3
  196. package/dist/schemas/index.js +1129 -139
  197. package/dist/schemas/index.js.map +1 -1
  198. package/dist/schemas/manifest.d.ts +2979 -949
  199. package/dist/schemas/manifest.js +1127 -137
  200. package/dist/schemas/manifest.js.map +1 -1
  201. package/dist/schemas/sl-opinion.d.ts +4 -4
  202. package/dist/schemas/tables/controlPlane/accessControl.d.ts +260 -0
  203. package/dist/schemas/tables/controlPlane/accessControl.js +653 -0
  204. package/dist/schemas/tables/controlPlane/accessControl.js.map +1 -0
  205. package/dist/schemas/tables/{identity → controlPlane}/agent.d.ts +1 -1
  206. package/dist/schemas/tables/{identity → controlPlane}/agent.js +3 -3
  207. package/dist/schemas/tables/controlPlane/agent.js.map +1 -0
  208. package/dist/schemas/tables/{identity → controlPlane}/epistemic.d.ts +1 -1
  209. package/dist/schemas/tables/{identity → controlPlane}/epistemic.js +3 -3
  210. package/dist/schemas/tables/controlPlane/epistemic.js.map +1 -0
  211. package/dist/schemas/tables/{identity → controlPlane}/model.d.ts +1 -1
  212. package/dist/schemas/tables/{identity → controlPlane}/model.js +6 -6
  213. package/dist/schemas/tables/controlPlane/model.js.map +1 -0
  214. package/dist/schemas/tables/{identity → controlPlane}/platform.d.ts +11 -11
  215. package/dist/schemas/tables/{identity → controlPlane}/platform.js +18 -18
  216. package/dist/schemas/tables/controlPlane/platform.js.map +1 -0
  217. package/dist/schemas/tables/{identity → controlPlane}/project.d.ts +1 -1
  218. package/dist/schemas/tables/{identity → controlPlane}/project.js +3 -3
  219. package/dist/schemas/tables/controlPlane/project.js.map +1 -0
  220. package/dist/schemas/tables/{identity → controlPlane}/user.d.ts +1 -1
  221. package/dist/schemas/tables/{identity → controlPlane}/user.js +3 -3
  222. package/dist/schemas/tables/controlPlane/user.js.map +1 -0
  223. package/dist/schemas/tables/kernel/config.d.ts +1 -1
  224. package/dist/schemas/tables/kernel/config.js.map +1 -1
  225. package/dist/schemas/tables/kernel/coordination.d.ts +1 -1
  226. package/dist/schemas/tables/kernel/coordination.js.map +1 -1
  227. package/dist/schemas/tables/kernel/decision.d.ts +1 -1
  228. package/dist/schemas/tables/kernel/decision.js.map +1 -1
  229. package/dist/schemas/tables/kernel/embedding.d.ts +1 -1
  230. package/dist/schemas/tables/kernel/embedding.js.map +1 -1
  231. package/dist/schemas/tables/kernel/epistemic.d.ts +7 -7
  232. package/dist/schemas/tables/kernel/epistemic.js.map +1 -1
  233. package/dist/schemas/tables/kernel/idempotency.d.ts +1 -1
  234. package/dist/schemas/tables/kernel/idempotency.js.map +1 -1
  235. package/dist/schemas/tables/kernel/infra.d.ts +5 -5
  236. package/dist/schemas/tables/kernel/infra.js.map +1 -1
  237. package/dist/schemas/tables/kernel/intelligence.d.ts +11 -11
  238. package/dist/schemas/tables/kernel/intelligence.js.map +1 -1
  239. package/dist/schemas/tables/kernel/lens.d.ts +5 -5
  240. package/dist/schemas/tables/kernel/lens.js.map +1 -1
  241. package/dist/schemas/tables/kernel/ontology.d.ts +1 -1
  242. package/dist/schemas/tables/kernel/ontology.js.map +1 -1
  243. package/dist/schemas/tables/kernel/platform.d.ts +13 -13
  244. package/dist/schemas/tables/kernel/platform.js.map +1 -1
  245. package/dist/schemas/tables/kernel/spine.d.ts +5 -4
  246. package/dist/schemas/tables/kernel/spine.js +6 -2
  247. package/dist/schemas/tables/kernel/spine.js.map +1 -1
  248. package/dist/schemas/tables/kernel/task.d.ts +43 -43
  249. package/dist/schemas/tables/kernel/task.js.map +1 -1
  250. package/dist/schemas/tables/kernel/topic.d.ts +1 -1
  251. package/dist/schemas/tables/kernel/topic.js +5 -1
  252. package/dist/schemas/tables/kernel/topic.js.map +1 -1
  253. package/dist/schemas/tables/kernel/workflow.d.ts +1 -1
  254. package/dist/schemas/tables/kernel/workflow.js.map +1 -1
  255. package/dist/schemas/tables/kernel/worktree.d.ts +55 -55
  256. package/dist/schemas/tables/kernel/worktree.js.map +1 -1
  257. package/dist/schemas/tables/mc/identity.d.ts +44 -4
  258. package/dist/schemas/tables/mc/identity.js +66 -1
  259. package/dist/schemas/tables/mc/identity.js.map +1 -1
  260. package/dist/schemas/tables/mc/methodology.d.ts +1 -1
  261. package/dist/schemas/tables/mc/methodology.js.map +1 -1
  262. package/dist/schemas/tables/mc/pack.d.ts +21 -21
  263. package/dist/schemas/tables/mc/pack.js.map +1 -1
  264. package/dist/schemas/tables/mc/policy.d.ts +2 -2
  265. package/dist/schemas/tables/mc/policy.js +1 -1
  266. package/dist/schemas/tables/mc/policy.js.map +1 -1
  267. package/dist/schemas/tables/mc/registry.d.ts +5 -5
  268. package/dist/schemas/tables/mc/registry.js.map +1 -1
  269. package/dist/schemas/tables/mc/runtime.d.ts +109 -3
  270. package/dist/schemas/tables/mc/runtime.js +330 -104
  271. package/dist/schemas/tables/mc/runtime.js.map +1 -1
  272. package/dist/schemas/tables/mc/tenant.d.ts +3 -2
  273. package/dist/schemas/tables/mc/tenant.js +2 -1
  274. package/dist/schemas/tables/mc/tenant.js.map +1 -1
  275. package/dist/schemas/tables/mc/workspace.d.ts +28 -5
  276. package/dist/schemas/tables/mc/workspace.js +36 -2
  277. package/dist/schemas/tables/mc/workspace.js.map +1 -1
  278. package/dist/sdk-methods.contract.d.ts +2 -2
  279. package/dist/{sdk-tools.contract-S4ia0TTo.d.ts → sdk-tools.contract-BNklQDfB.d.ts} +2 -2
  280. package/dist/sdk-tools.contract.d.ts +2 -2
  281. package/dist/sdk-tools.contract.js +672 -24
  282. package/dist/sdk-tools.contract.js.map +1 -1
  283. package/dist/tenant-bootstrap-seed.contract.d.ts +1269 -0
  284. package/dist/tenant-bootstrap-seed.contract.js +751 -0
  285. package/dist/tenant-bootstrap-seed.contract.js.map +1 -0
  286. package/dist/tenant-bootstrap-seed.defaults.d.ts +16 -0
  287. package/dist/tenant-bootstrap-seed.defaults.js +303 -0
  288. package/dist/tenant-bootstrap-seed.defaults.js.map +1 -0
  289. package/dist/tenant-client.contract.d.ts +349 -0
  290. package/dist/tenant-client.contract.js +488 -0
  291. package/dist/tenant-client.contract.js.map +1 -0
  292. package/dist/{tool-contracts-C92-9ueT.d.ts → tool-contracts-BevD9Ho2.d.ts} +36 -2
  293. package/dist/tool-contracts.d.ts +1 -1
  294. package/dist/tool-contracts.js +673 -25
  295. package/dist/tool-contracts.js.map +1 -1
  296. package/package.json +30 -1
  297. package/dist/index-CV-0_VWJ.d.ts +0 -25
  298. package/dist/schemas/tables/identity/agent.js.map +0 -1
  299. package/dist/schemas/tables/identity/epistemic.js.map +0 -1
  300. package/dist/schemas/tables/identity/model.js.map +0 -1
  301. package/dist/schemas/tables/identity/platform.js.map +0 -1
  302. package/dist/schemas/tables/identity/project.js.map +0 -1
  303. package/dist/schemas/tables/identity/user.js.map +0 -1
@@ -0,0 +1,322 @@
1
+ import { TENANT_CLIENT_CONTRACT_VERSION, TENANT_CLIENT_AUTH_MODES, TENANT_CLIENT_PRINCIPAL_TYPES, TENANT_CLIENT_REQUIRED_CONTEXT_FIELDS, TENANT_CLIENT_OPTIONAL_CONTEXT_FIELDS, TENANT_CLIENT_INSTALL_TOKEN_ENV, TENANT_CLIENT_INSTALL_TOKEN_INFISICAL_PATH, TENANT_CLIENT_FORBIDDEN_INSTALL_TOKEN_INFISICAL_PATHS, TENANT_CLIENT_FORBIDDEN_SECRET_ENV, TENANT_CLIENT_INSTALLABLE_PACKAGES, TENANT_CLIENT_INSTALL_PROFILES, TENANT_CLIENT_PUBLIC_IMPORTS, TENANT_CLIENT_COMPONENT_CONFIG_IMPORTS, TENANT_CLIENT_REQUIRED_SDK_NAMESPACES, TENANT_CLIENT_CAPABILITIES, TENANT_CLIENT_ISOLATION_RULES, TENANT_CLIENT_FORBIDDEN_IMPORT_PATTERNS } from '../tenant-client.contract.js';
2
+
3
+ type TenantClientManifest = {
4
+ readonly manifestVersion: "1.0.0";
5
+ readonly contractVersion: typeof TENANT_CLIENT_CONTRACT_VERSION;
6
+ readonly auth: {
7
+ readonly modes: typeof TENANT_CLIENT_AUTH_MODES;
8
+ readonly principalTypes: typeof TENANT_CLIENT_PRINCIPAL_TYPES;
9
+ readonly requiredContextFields: typeof TENANT_CLIENT_REQUIRED_CONTEXT_FIELDS;
10
+ readonly optionalContextFields: typeof TENANT_CLIENT_OPTIONAL_CONTEXT_FIELDS;
11
+ };
12
+ readonly installToken: {
13
+ readonly env: typeof TENANT_CLIENT_INSTALL_TOKEN_ENV;
14
+ readonly infisicalPath: typeof TENANT_CLIENT_INSTALL_TOKEN_INFISICAL_PATH;
15
+ readonly forbiddenInfisicalPaths: typeof TENANT_CLIENT_FORBIDDEN_INSTALL_TOKEN_INFISICAL_PATHS;
16
+ readonly forbiddenSecretEnv: typeof TENANT_CLIENT_FORBIDDEN_SECRET_ENV;
17
+ };
18
+ readonly packages: {
19
+ readonly installable: typeof TENANT_CLIENT_INSTALLABLE_PACKAGES;
20
+ readonly installProfiles: typeof TENANT_CLIENT_INSTALL_PROFILES;
21
+ readonly directImports: typeof TENANT_CLIENT_PUBLIC_IMPORTS;
22
+ readonly componentConfigImports: typeof TENANT_CLIENT_COMPONENT_CONFIG_IMPORTS;
23
+ };
24
+ readonly sdk: {
25
+ readonly requiredNamespaces: typeof TENANT_CLIENT_REQUIRED_SDK_NAMESPACES;
26
+ };
27
+ readonly capabilities: typeof TENANT_CLIENT_CAPABILITIES;
28
+ readonly isolationRules: typeof TENANT_CLIENT_ISOLATION_RULES;
29
+ readonly forbiddenImportPatterns: typeof TENANT_CLIENT_FORBIDDEN_IMPORT_PATTERNS;
30
+ };
31
+ declare const TENANT_CLIENT_MANIFEST: {
32
+ readonly manifestVersion: "1.0.0";
33
+ readonly contractVersion: "2026-04-27";
34
+ readonly auth: {
35
+ readonly modes: readonly ["interactive_user", "service_principal", "tenant_api_key", "session_token"];
36
+ readonly principalTypes: readonly ["human", "service", "agent"];
37
+ readonly requiredContextFields: readonly ["tenantId", "workspaceId", "principalId", "authMode", "scopes"];
38
+ readonly optionalContextFields: readonly ["principalType", "roles", "sessionId", "delegationChain"];
39
+ };
40
+ readonly installToken: {
41
+ readonly env: "INSTALL_LUCERN_NPM";
42
+ readonly infisicalPath: "tenants/shared";
43
+ readonly forbiddenInfisicalPaths: readonly ["/platform/publish"];
44
+ readonly forbiddenSecretEnv: readonly ["NPM_TOKEN"];
45
+ };
46
+ readonly packages: {
47
+ readonly installable: readonly [{
48
+ readonly packageName: "@lucern/access-control";
49
+ readonly role: "runtime_entrypoint";
50
+ readonly directTenantImport: true;
51
+ }, {
52
+ readonly packageName: "@lucern/agent";
53
+ readonly role: "platform_runtime";
54
+ readonly directTenantImport: false;
55
+ }, {
56
+ readonly packageName: "@lucern/auth";
57
+ readonly role: "sdk_dependency";
58
+ readonly directTenantImport: false;
59
+ }, {
60
+ readonly packageName: "@lucern/cli";
61
+ readonly role: "developer_tool";
62
+ readonly directTenantImport: false;
63
+ }, {
64
+ readonly packageName: "@lucern/client-core";
65
+ readonly role: "sdk_dependency";
66
+ readonly directTenantImport: false;
67
+ }, {
68
+ readonly packageName: "@lucern/confidence";
69
+ readonly role: "sdk_dependency";
70
+ readonly directTenantImport: false;
71
+ }, {
72
+ readonly packageName: "@lucern/config";
73
+ readonly role: "configuration";
74
+ readonly directTenantImport: false;
75
+ }, {
76
+ readonly packageName: "@lucern/contracts";
77
+ readonly role: "contract_entrypoint";
78
+ readonly directTenantImport: true;
79
+ }, {
80
+ readonly packageName: "@lucern/control-plane";
81
+ readonly role: "component_runtime";
82
+ readonly directTenantImport: false;
83
+ }, {
84
+ readonly packageName: "@lucern/developer-kit";
85
+ readonly role: "developer_tool";
86
+ readonly directTenantImport: false;
87
+ }, {
88
+ readonly packageName: "@lucern/events";
89
+ readonly role: "sdk_dependency";
90
+ readonly directTenantImport: false;
91
+ }, {
92
+ readonly packageName: "@lucern/graph-primitives";
93
+ readonly role: "sdk_dependency";
94
+ readonly directTenantImport: false;
95
+ }, {
96
+ readonly packageName: "@lucern/graph-sync";
97
+ readonly role: "host_addon_runtime";
98
+ readonly directTenantImport: true;
99
+ }, {
100
+ readonly packageName: "@lucern/mcp";
101
+ readonly role: "runtime_entrypoint";
102
+ readonly directTenantImport: true;
103
+ }, {
104
+ readonly packageName: "@lucern/pack-host";
105
+ readonly role: "platform_runtime";
106
+ readonly directTenantImport: false;
107
+ }, {
108
+ readonly packageName: "@lucern/pack-installer";
109
+ readonly role: "developer_tool";
110
+ readonly directTenantImport: false;
111
+ }, {
112
+ readonly packageName: "@lucern/proof-compiler";
113
+ readonly role: "developer_tool";
114
+ readonly directTenantImport: false;
115
+ }, {
116
+ readonly packageName: "@lucern/react";
117
+ readonly role: "runtime_entrypoint";
118
+ readonly directTenantImport: true;
119
+ }, {
120
+ readonly packageName: "@lucern/reasoning-kernel";
121
+ readonly role: "component_runtime";
122
+ readonly directTenantImport: false;
123
+ }, {
124
+ readonly packageName: "@lucern/sdk";
125
+ readonly role: "runtime_entrypoint";
126
+ readonly directTenantImport: true;
127
+ }, {
128
+ readonly packageName: "@lucern/secrets";
129
+ readonly role: "sdk_dependency";
130
+ readonly directTenantImport: false;
131
+ }, {
132
+ readonly packageName: "@lucern/server-core";
133
+ readonly role: "platform_runtime";
134
+ readonly directTenantImport: false;
135
+ }, {
136
+ readonly packageName: "@lucern/testing";
137
+ readonly role: "test_support";
138
+ readonly directTenantImport: false;
139
+ }, {
140
+ readonly packageName: "@lucern/types";
141
+ readonly role: "contract_entrypoint";
142
+ readonly directTenantImport: true;
143
+ }];
144
+ readonly installProfiles: readonly [{
145
+ readonly id: "core_app_runtime";
146
+ readonly description: "Smallest tenant app/runtime install for typed Lucern API calls plus tool-access policy helpers.";
147
+ readonly packageNames: readonly ["@lucern/sdk", "@lucern/access-control"];
148
+ readonly dependencyField: "dependencies";
149
+ }, {
150
+ readonly id: "react_app_runtime";
151
+ readonly description: "React tenant app install for hooks, provider, curated graph components, and direct SDK calls.";
152
+ readonly packageNames: readonly ["@lucern/react", "@lucern/sdk", "@lucern/access-control"];
153
+ readonly dependencyField: "dependencies";
154
+ }, {
155
+ readonly id: "convex_components";
156
+ readonly description: "Tenant Convex host install for binding the Lucern control-plane and reasoning-kernel components.";
157
+ readonly packageNames: readonly ["@lucern/control-plane", "@lucern/reasoning-kernel"];
158
+ readonly dependencyField: "dependencies";
159
+ }, {
160
+ readonly id: "graph_mirroring_addon";
161
+ readonly description: "Optional tenant Convex host install for Neo4j graph projection, edge topology writes, backfill, health checks, and query proxy helpers.";
162
+ readonly packageNames: readonly ["@lucern/graph-sync"];
163
+ readonly dependencyField: "dependencies";
164
+ }, {
165
+ readonly id: "operator_cli";
166
+ readonly description: "Developer/operator install for the `lucern` binary, including tenant bootstrap seed commands.";
167
+ readonly packageNames: readonly ["@lucern/cli"];
168
+ readonly dependencyField: "devDependencies";
169
+ }, {
170
+ readonly id: "mcp_runtime";
171
+ readonly description: "Agent runtime install for the standalone Lucern MCP server and hosted route helpers.";
172
+ readonly packageNames: readonly ["@lucern/mcp"];
173
+ readonly dependencyField: "dependencies";
174
+ }, {
175
+ readonly id: "contracts_and_types";
176
+ readonly description: "Compile-time contract/type install for codegen, audits, and tenant integration validation.";
177
+ readonly packageNames: readonly ["@lucern/contracts", "@lucern/types"];
178
+ readonly dependencyField: "dependencies";
179
+ }, {
180
+ readonly id: "full_suite";
181
+ readonly description: "Full coherent Lucern package suite for design-partner repos that want every published runtime, tool, component, test, and config package pinned together.";
182
+ readonly packageNames: readonly ("@lucern/access-control" | "@lucern/agent" | "@lucern/auth" | "@lucern/cli" | "@lucern/client-core" | "@lucern/confidence" | "@lucern/config" | "@lucern/contracts" | "@lucern/control-plane" | "@lucern/developer-kit" | "@lucern/events" | "@lucern/graph-primitives" | "@lucern/graph-sync" | "@lucern/mcp" | "@lucern/pack-host" | "@lucern/pack-installer" | "@lucern/proof-compiler" | "@lucern/react" | "@lucern/reasoning-kernel" | "@lucern/sdk" | "@lucern/secrets" | "@lucern/server-core" | "@lucern/testing" | "@lucern/types")[];
183
+ readonly dependencyField: "mixed";
184
+ }];
185
+ readonly directImports: readonly [{
186
+ readonly packageName: "@lucern/sdk";
187
+ readonly surface: "runtime";
188
+ readonly subpaths: "published_exports";
189
+ readonly description: "TypeScript SDK runtime and generated operation namespaces.";
190
+ }, {
191
+ readonly packageName: "@lucern/react";
192
+ readonly surface: "runtime";
193
+ readonly subpaths: "published_exports";
194
+ readonly description: "React bindings for tenant-owned UI applications.";
195
+ }, {
196
+ readonly packageName: "@lucern/mcp";
197
+ readonly surface: "runtime";
198
+ readonly subpaths: "published_exports";
199
+ readonly description: "MCP client/server entry points and hosted route helpers.";
200
+ }, {
201
+ readonly packageName: "@lucern/graph-sync";
202
+ readonly surface: "runtime";
203
+ readonly subpaths: "published_exports";
204
+ readonly description: "Optional Neo4j graph mirroring host actions, edge API, query proxy, backfill, and health helpers.";
205
+ }, {
206
+ readonly packageName: "@lucern/contracts";
207
+ readonly surface: "contract";
208
+ readonly subpaths: "published_exports";
209
+ readonly description: "Published type and manifest contracts.";
210
+ }, {
211
+ readonly packageName: "@lucern/access-control";
212
+ readonly surface: "runtime";
213
+ readonly subpaths: "published_exports";
214
+ readonly description: "Tenant runtime access-control helpers, including effective tool access.";
215
+ }, {
216
+ readonly packageName: "@lucern/types";
217
+ readonly surface: "contract";
218
+ readonly subpaths: "published_exports";
219
+ readonly description: "Published type-only helpers for tenant integration code.";
220
+ }];
221
+ readonly componentConfigImports: readonly [{
222
+ readonly packageName: "@lucern/control-plane";
223
+ readonly importPath: "@lucern/control-plane/convex.config";
224
+ readonly surface: "component_config";
225
+ readonly description: "Convex component binding config for tenant deployments that install the Lucern control plane.";
226
+ }, {
227
+ readonly packageName: "@lucern/reasoning-kernel";
228
+ readonly importPath: "@lucern/reasoning-kernel/convex.config";
229
+ readonly surface: "component_config";
230
+ readonly description: "Convex component binding config for tenant deployments that install the Lucern reasoning kernel.";
231
+ }, {
232
+ readonly packageName: "@lucern/reasoning-kernel";
233
+ readonly importPath: "@lucern/reasoning-kernel/runtime.config";
234
+ readonly surface: "component_config";
235
+ readonly description: "Runtime config alias for tenant deployments that install the Lucern reasoning kernel.";
236
+ }];
237
+ };
238
+ readonly sdk: {
239
+ readonly requiredNamespaces: readonly ["bootstrap", "context", "beliefs", "evidence", "questions", "graph", "worktrees", "topics", "edges", "contradictions", "contracts", "graphIntel", "graphIntelligence", "graphAnalysis", "graphRecommendations", "orgGraphSearch", "embeddings", "ontologyLinks", "graphStateClassifier", "tools", "identity", "modelRuntime", "events", "jobs", "telemetry"];
240
+ };
241
+ readonly capabilities: readonly [{
242
+ readonly id: "identity.bootstrap_session";
243
+ readonly description: "Start a scoped Lucern session for a tenant principal.";
244
+ readonly surfaces: readonly ["@lucern/sdk", "@lucern/mcp"];
245
+ readonly requiredContextFields: readonly ["tenantId", "workspaceId", "principalId", "authMode", "scopes"];
246
+ }, {
247
+ readonly id: "reasoning.context.compile";
248
+ readonly description: "Compile tenant and workspace scoped reasoning context.";
249
+ readonly surfaces: readonly ["@lucern/sdk", "@lucern/react", "@lucern/mcp"];
250
+ readonly requiredContextFields: readonly ["tenantId", "workspaceId", "principalId", "authMode", "scopes"];
251
+ }, {
252
+ readonly id: "reasoning.graph.read";
253
+ readonly description: "Read beliefs, evidence, questions, topics, graph edges, and lineage.";
254
+ readonly surfaces: readonly ["@lucern/sdk", "@lucern/react", "@lucern/mcp"];
255
+ readonly requiredContextFields: readonly ["tenantId", "workspaceId", "principalId", "authMode", "scopes"];
256
+ }, {
257
+ readonly id: "reasoning.graph.write";
258
+ readonly description: "Create and update graph objects through authorized APIs.";
259
+ readonly surfaces: readonly ["@lucern/sdk", "@lucern/mcp"];
260
+ readonly requiredContextFields: readonly ["tenantId", "workspaceId", "principalId", "authMode", "scopes"];
261
+ }, {
262
+ readonly id: "reasoning.graph_intelligence.run";
263
+ readonly description: "Discover and run Graph Intelligence query recipes for structural graph analysis.";
264
+ readonly surfaces: readonly ["@lucern/sdk", "@lucern/cli", "@lucern/mcp"];
265
+ readonly requiredContextFields: readonly ["tenantId", "workspaceId", "principalId", "authMode", "scopes"];
266
+ }, {
267
+ readonly id: "reasoning.graph_mirroring.install";
268
+ readonly description: "Install and run the optional Neo4j graph mirror for paid or enterprise tenant deployments.";
269
+ readonly surfaces: readonly ["@lucern/graph-sync", "@lucern/cli"];
270
+ readonly requiredContextFields: readonly ["tenantId", "workspaceId", "principalId", "authMode", "scopes"];
271
+ }, {
272
+ readonly id: "workflow.worktree_lifecycle";
273
+ readonly description: "Create, review, merge, and close scoped worktrees.";
274
+ readonly surfaces: readonly ["@lucern/sdk", "@lucern/react", "@lucern/mcp"];
275
+ readonly requiredContextFields: readonly ["tenantId", "workspaceId", "principalId", "authMode", "scopes"];
276
+ }];
277
+ readonly isolationRules: readonly [{
278
+ readonly id: "tenant_workspace_scope_required";
279
+ readonly description: "Runtime operations must resolve both tenantId and workspaceId before reaching Lucern reasoning state.";
280
+ }, {
281
+ readonly id: "principal_audit_required";
282
+ readonly description: "Runtime operations must carry principalId, authMode, and scopes for audit attribution.";
283
+ }, {
284
+ readonly id: "no_private_lucern_imports";
285
+ readonly description: "Tenant code must not import Lucern source, Convex internals, generated adapters, or unpublished package internals.";
286
+ }];
287
+ readonly forbiddenImportPatterns: readonly [{
288
+ readonly id: "deep_src_import";
289
+ readonly pattern: "^@lucern/[^/]+/src(?:/|$)";
290
+ readonly description: "Published packages must not be bypassed through src paths.";
291
+ }, {
292
+ readonly id: "deep_dist_import";
293
+ readonly pattern: "^@lucern/[^/]+/dist(?:/|$)";
294
+ readonly description: "Published package exports must be used instead of dist file paths.";
295
+ }, {
296
+ readonly id: "generated_adapter_import";
297
+ readonly pattern: "^@lucern/[^/]+/(?:adapters/)?_generated(?:/|$)";
298
+ readonly description: "Generated Lucern adapters are internal deployment artifacts.";
299
+ }, {
300
+ readonly id: "private_runtime_import";
301
+ readonly pattern: "^@lucern/[^/]+/(?:internal|private)(?:/|$)";
302
+ readonly description: "Internal and private package subpaths are not public SDK API.";
303
+ }, {
304
+ readonly id: "workspace_source_import";
305
+ readonly pattern: "^(?:packages|modules|services|lucern|apps)/(?:.+/)?src(?:/|$)";
306
+ readonly description: "Tenant clients must not import source files from the Lucern monorepo.";
307
+ }, {
308
+ readonly id: "root_alias_lucern_import";
309
+ readonly pattern: "^@/(?:lucern|packages|modules|services|apps)(?:/|$)";
310
+ readonly description: "Tenant clients must not depend on Lucern repo-local path aliases.";
311
+ }, {
312
+ readonly id: "relative_lucern_source_import";
313
+ readonly pattern: "^\\.\\.?/(?:.+/)?(?:packages|modules|services|lucern|apps)(?:/|$)";
314
+ readonly description: "Tenant clients must not reach back into Lucern source through relative paths.";
315
+ }, {
316
+ readonly id: "monorepo_path_import";
317
+ readonly pattern: "lucern-repo";
318
+ readonly description: "Absolute imports that name the Lucern repository are not portable tenant code.";
319
+ }];
320
+ };
321
+
322
+ export { TENANT_CLIENT_MANIFEST, type TenantClientManifest };