@lucern/contracts 0.3.0-alpha.3 → 0.3.0-alpha.4

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 (110) hide show
  1. package/dist/component-host-boundary.contract.d.ts +41 -0
  2. package/dist/component-host-boundary.contract.js +54 -0
  3. package/dist/component-host-boundary.contract.js.map +1 -0
  4. package/dist/function-registry/beliefs.d.ts +41 -41
  5. package/dist/function-registry/beliefs.js +202 -8
  6. package/dist/function-registry/beliefs.js.map +1 -1
  7. package/dist/function-registry/coding.js +187 -8
  8. package/dist/function-registry/coding.js.map +1 -1
  9. package/dist/function-registry/context.d.ts +13 -13
  10. package/dist/function-registry/context.js +187 -9
  11. package/dist/function-registry/context.js.map +1 -1
  12. package/dist/function-registry/contracts.js +158 -5
  13. package/dist/function-registry/contracts.js.map +1 -1
  14. package/dist/function-registry/coordination.js +158 -5
  15. package/dist/function-registry/coordination.js.map +1 -1
  16. package/dist/function-registry/edges.js +169 -6
  17. package/dist/function-registry/edges.js.map +1 -1
  18. package/dist/function-registry/evidence.d.ts +33 -33
  19. package/dist/function-registry/evidence.js +202 -9
  20. package/dist/function-registry/evidence.js.map +1 -1
  21. package/dist/function-registry/graph.d.ts +53 -53
  22. package/dist/function-registry/graph.js +217 -12
  23. package/dist/function-registry/graph.js.map +1 -1
  24. package/dist/function-registry/helpers.d.ts +1 -1
  25. package/dist/function-registry/helpers.js +158 -5
  26. package/dist/function-registry/helpers.js.map +1 -1
  27. package/dist/function-registry/identity.js +158 -5
  28. package/dist/function-registry/identity.js.map +1 -1
  29. package/dist/function-registry/index.d.ts +1 -1
  30. package/dist/function-registry/index.js +158 -5
  31. package/dist/function-registry/index.js.map +1 -1
  32. package/dist/function-registry/judgments.d.ts +9 -9
  33. package/dist/function-registry/judgments.js +170 -8
  34. package/dist/function-registry/judgments.js.map +1 -1
  35. package/dist/function-registry/legacy.js +158 -5
  36. package/dist/function-registry/legacy.js.map +1 -1
  37. package/dist/function-registry/lenses.d.ts +17 -17
  38. package/dist/function-registry/lenses.js +181 -8
  39. package/dist/function-registry/lenses.js.map +1 -1
  40. package/dist/function-registry/manifest.d.ts +3 -3
  41. package/dist/function-registry/manifest.js +1 -1
  42. package/dist/function-registry/manifest.js.map +1 -1
  43. package/dist/function-registry/ontologies.d.ts +45 -45
  44. package/dist/function-registry/ontologies.js +176 -11
  45. package/dist/function-registry/ontologies.js.map +1 -1
  46. package/dist/function-registry/pipeline.d.ts +13 -13
  47. package/dist/function-registry/pipeline.js +167 -8
  48. package/dist/function-registry/pipeline.js.map +1 -1
  49. package/dist/function-registry/questions.d.ts +49 -49
  50. package/dist/function-registry/questions.js +255 -13
  51. package/dist/function-registry/questions.js.map +1 -1
  52. package/dist/function-registry/tasks.js +158 -5
  53. package/dist/function-registry/tasks.js.map +1 -1
  54. package/dist/function-registry/topics.d.ts +21 -21
  55. package/dist/function-registry/topics.js +172 -8
  56. package/dist/function-registry/topics.js.map +1 -1
  57. package/dist/function-registry/types.d.ts +1 -1
  58. package/dist/function-registry/worktrees.d.ts +80 -41
  59. package/dist/function-registry/worktrees.js +292 -17
  60. package/dist/function-registry/worktrees.js.map +1 -1
  61. package/dist/function-registry-input-audit.d.ts +13 -0
  62. package/dist/function-registry-input-audit.js +164 -0
  63. package/dist/function-registry-input-audit.js.map +1 -0
  64. package/dist/gateway.contract.d.ts +1 -0
  65. package/dist/gateway.contract.js.map +1 -1
  66. package/dist/generated/convexSchemas.js +1 -1
  67. package/dist/generated/convexSchemas.js.map +1 -1
  68. package/dist/index.d.ts +188 -35
  69. package/dist/index.js +1370 -17
  70. package/dist/index.js.map +1 -1
  71. package/dist/infisical-runtime.contract.d.ts +174 -0
  72. package/dist/infisical-runtime.contract.js +192 -0
  73. package/dist/infisical-runtime.contract.js.map +1 -0
  74. package/dist/schemas/index.js +3 -1
  75. package/dist/schemas/index.js.map +1 -1
  76. package/dist/schemas/manifest.d.ts +935 -905
  77. package/dist/schemas/manifest.js +3 -1
  78. package/dist/schemas/manifest.js.map +1 -1
  79. package/dist/schemas/sl-opinion.d.ts +4 -4
  80. package/dist/schemas/tables/identity/platform.d.ts +10 -10
  81. package/dist/schemas/tables/kernel/epistemic.d.ts +6 -6
  82. package/dist/schemas/tables/kernel/infra.d.ts +4 -4
  83. package/dist/schemas/tables/kernel/intelligence.d.ts +10 -10
  84. package/dist/schemas/tables/kernel/lens.d.ts +4 -4
  85. package/dist/schemas/tables/kernel/platform.d.ts +12 -12
  86. package/dist/schemas/tables/kernel/spine.d.ts +2 -2
  87. package/dist/schemas/tables/kernel/task.d.ts +42 -42
  88. package/dist/schemas/tables/kernel/worktree.d.ts +62 -62
  89. package/dist/schemas/tables/mc/identity.d.ts +2 -2
  90. package/dist/schemas/tables/mc/pack.d.ts +20 -20
  91. package/dist/schemas/tables/mc/registry.d.ts +4 -4
  92. package/dist/schemas/tables/mc/workspace.d.ts +9 -3
  93. package/dist/schemas/tables/mc/workspace.js +3 -1
  94. package/dist/schemas/tables/mc/workspace.js.map +1 -1
  95. package/dist/sdk-methods.contract.d.ts +1 -1
  96. package/dist/{sdk-tools.contract-S4ia0TTo.d.ts → sdk-tools.contract-CD-N1Jf7.d.ts} +1 -1
  97. package/dist/sdk-tools.contract.d.ts +2 -2
  98. package/dist/sdk-tools.contract.js +157 -4
  99. package/dist/sdk-tools.contract.js.map +1 -1
  100. package/dist/tenant-bootstrap-seed.contract.d.ts +1097 -0
  101. package/dist/tenant-bootstrap-seed.contract.js +651 -0
  102. package/dist/tenant-bootstrap-seed.contract.js.map +1 -0
  103. package/dist/tenant-bootstrap-seed.defaults.d.ts +16 -0
  104. package/dist/tenant-bootstrap-seed.defaults.js +303 -0
  105. package/dist/tenant-bootstrap-seed.defaults.js.map +1 -0
  106. package/dist/{tool-contracts-C92-9ueT.d.ts → tool-contracts-BcKz-VGj.d.ts} +4 -2
  107. package/dist/tool-contracts.d.ts +1 -1
  108. package/dist/tool-contracts.js +158 -5
  109. package/dist/tool-contracts.js.map +1 -1
  110. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
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
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';
4
5
  export { ConvexAdminClient } from './convex-admin.contract.js';
5
6
  export { CutoverDomain, CutoverFlagState, GatewayAuthContext, GatewayAuthMode, GatewayEnvironment, GatewayErrorArgs, GatewayScope, GatewaySuccessArgs, KeyLifecycleStatus, PlatformApiErrorCode, requireActorPrincipalId } from './gateway.contract.js';
6
7
  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';
@@ -12,14 +13,18 @@ export { ComponentTableManifest, ComponentTableManifestSchema } from './schemas/
12
13
  export { SLOpinionInput, SLOpinionInputSchema } from './schemas/sl-opinion.js';
13
14
  import * as zod from 'zod';
14
15
  import { z } from 'zod';
16
+ import { INFISICAL_RUNTIME_CONTRACT_VERSION, INFISICAL_RUNTIME_DEFAULT_PROJECT_ID, INFISICAL_RUNTIME_DEFAULT_API_URL, InfisicalRuntimeEnvironment, InfisicalRuntimeDeliveryMode, InfisicalRuntimeBootstrapEnv, InfisicalRuntimePath, InfisicalRuntimeSurface } from './infisical-runtime.contract.js';
17
+ export { INFISICAL_RUNTIME_BOOTSTRAP_ENV, INFISICAL_RUNTIME_DELIVERY_MODES, INFISICAL_RUNTIME_ENVIRONMENTS, INFISICAL_RUNTIME_PATHS, INFISICAL_RUNTIME_SURFACES, INFISICAL_RUNTIME_SURFACE_IDS, InfisicalRuntimePathDefinition, InfisicalRuntimePathId, InfisicalRuntimeSurfaceDefinition, InfisicalRuntimeSurfaceId, InfisicalRuntimeVariable, findInfisicalRuntimePath, findInfisicalRuntimeSurface } from './infisical-runtime.contract.js';
15
18
  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_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';
16
19
  export { TenantClientAllowedImport, TenantClientAuthMode, TenantClientCapability, TenantClientCapabilityId, TenantClientComponentConfigImport, TenantClientForbiddenImportPattern, TenantClientForbiddenImportPatternId, TenantClientForbiddenInstallTokenInfisicalPath, TenantClientForbiddenSecretEnv, TenantClientImportClassification, TenantClientImportDecision, TenantClientInstallablePackage, TenantClientInstallablePackageName, TenantClientIsolationRule, TenantClientOptionalContextField, TenantClientPackageRole, TenantClientPrincipalType, TenantClientPublicImport, TenantClientPublicPackage, TenantClientPublicSurface, TenantClientRequiredContextField, TenantClientRequiredSdkNamespace, assertTenantClientImportAllowed, classifyTenantClientImport, findTenantClientInstallablePackage, formatTenantClientImportViolation, isTenantClientAllowedImport, isTenantClientComponentConfigImport, isTenantClientInstallablePackage, isTenantClientPublicImport } from './tenant-client.contract.js';
17
20
  export * from './function-registry/index.js';
18
- export { t as mcpToolsContract } from './tool-contracts-C92-9ueT.js';
21
+ export { t as mcpToolsContract } from './tool-contracts-BcKz-VGj.js';
19
22
  export { EntityConnectionMatch, EntityMatchCandidate, EntityTypeMatch, OntologyEntityType, rankEntityConnections, rankEntityTypeMatches, scoreEntityConnection, scoreEntityTypeMatch } from './v1/ontologies/v1.js';
20
23
  export { LucernPrompt, LucernPromptModelHint, isLucernPrompt } from './prompt.contract.js';
21
24
  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';
22
- export { s as sdkToolsContract } from './sdk-tools.contract-S4ia0TTo.js';
25
+ export { s as sdkToolsContract } from './sdk-tools.contract-CD-N1Jf7.js';
26
+ 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';
27
+ export { TENANT_BOOTSTRAP_TEMPLATE_ACTOR, TENANT_BOOTSTRAP_TEMPLATE_SEED_VERSION, TENANT_BOOTSTRAP_TEMPLATE_TENANT_ID, TenantBootstrapTemplateSeedOptions, TenantBootstrapTemplateSeedRows, buildTenantBootstrapTemplateSeedRows } from './tenant-bootstrap-seed.defaults.js';
23
28
  export { LexicalRerankOptions, LexicalSignal, LexicalStrategy, PreparedLexicalQuery, bigramTokenize, jaccardSimilarity, prepareLexicalQuery, rankWindowScore, rerankLexicalWindow, scoreLexicalSignal, scoreLexicalSignals, stemToken, tokenOverlapScore, tokenizeSearchText, wordOverlapScore, wordTokenize } from './text-matching.contract.js';
24
29
  export { ROOT_TOPIC_ID, TopicDoc, collectTopicNeighborhood } from './v1/topics/v1.js';
25
30
  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';
@@ -48,13 +53,13 @@ declare const GraphRefSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
48
53
  nodeId: z.ZodString;
49
54
  nodeType: z.ZodEnum<["belief", "evidence", "question", "answer", "topic", "edge", "ontology", "lens", "contradiction"]>;
50
55
  }, "strip", z.ZodTypeAny, {
51
- nodeType: "belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "answer" | "lens";
52
- nodeId: string;
53
56
  kind: "epistemic_node";
54
- }, {
55
- nodeType: "belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "answer" | "lens";
56
57
  nodeId: string;
58
+ nodeType: "belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "lens" | "answer";
59
+ }, {
57
60
  kind: "epistemic_node";
61
+ nodeId: string;
62
+ nodeType: "belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "lens" | "answer";
58
63
  }>, z.ZodObject<{
59
64
  kind: z.ZodLiteral<"external_belief">;
60
65
  ref: z.ZodObject<{
@@ -93,15 +98,15 @@ declare const EdgePolicyEntrySchema: z.ZodObject<{
93
98
  edgeType: string;
94
99
  fromKinds: ("epistemic_node" | "external_belief")[];
95
100
  toKinds: ("epistemic_node" | "external_belief")[];
96
- fromNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "answer" | "lens")[] | undefined;
97
- toNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "answer" | "lens")[] | undefined;
101
+ fromNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "lens" | "answer")[] | undefined;
102
+ toNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "lens" | "answer")[] | undefined;
98
103
  }, {
99
104
  description: string;
100
105
  edgeType: string;
101
106
  fromKinds: ("epistemic_node" | "external_belief")[];
102
107
  toKinds: ("epistemic_node" | "external_belief")[];
103
- fromNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "answer" | "lens")[] | undefined;
104
- toNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "answer" | "lens")[] | undefined;
108
+ fromNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "lens" | "answer")[] | undefined;
109
+ toNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "lens" | "answer")[] | undefined;
105
110
  }>;
106
111
  declare const EdgePolicyManifestSchema: z.ZodObject<{
107
112
  manifestVersion: z.ZodLiteral<"1.0.0">;
@@ -117,36 +122,36 @@ declare const EdgePolicyManifestSchema: z.ZodObject<{
117
122
  edgeType: string;
118
123
  fromKinds: ("epistemic_node" | "external_belief")[];
119
124
  toKinds: ("epistemic_node" | "external_belief")[];
120
- fromNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "answer" | "lens")[] | undefined;
121
- toNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "answer" | "lens")[] | undefined;
125
+ fromNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "lens" | "answer")[] | undefined;
126
+ toNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "lens" | "answer")[] | undefined;
122
127
  }, {
123
128
  description: string;
124
129
  edgeType: string;
125
130
  fromKinds: ("epistemic_node" | "external_belief")[];
126
131
  toKinds: ("epistemic_node" | "external_belief")[];
127
- fromNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "answer" | "lens")[] | undefined;
128
- toNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "answer" | "lens")[] | undefined;
132
+ fromNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "lens" | "answer")[] | undefined;
133
+ toNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "lens" | "answer")[] | undefined;
129
134
  }>, "many">;
130
135
  }, "strip", z.ZodTypeAny, {
131
- manifestVersion: "1.0.0";
132
136
  policies: {
133
137
  description: string;
134
138
  edgeType: string;
135
139
  fromKinds: ("epistemic_node" | "external_belief")[];
136
140
  toKinds: ("epistemic_node" | "external_belief")[];
137
- fromNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "answer" | "lens")[] | undefined;
138
- toNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "answer" | "lens")[] | undefined;
141
+ fromNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "lens" | "answer")[] | undefined;
142
+ toNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "lens" | "answer")[] | undefined;
139
143
  }[];
140
- }, {
141
144
  manifestVersion: "1.0.0";
145
+ }, {
142
146
  policies: {
143
147
  description: string;
144
148
  edgeType: string;
145
149
  fromKinds: ("epistemic_node" | "external_belief")[];
146
150
  toKinds: ("epistemic_node" | "external_belief")[];
147
- fromNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "answer" | "lens")[] | undefined;
148
- toNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "answer" | "lens")[] | undefined;
151
+ fromNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "lens" | "answer")[] | undefined;
152
+ toNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "lens" | "answer")[] | undefined;
149
153
  }[];
154
+ manifestVersion: "1.0.0";
150
155
  }>;
151
156
  type EdgePolicyEntry = z.infer<typeof EdgePolicyEntrySchema>;
152
157
  type EdgePolicyManifest = z.infer<typeof EdgePolicyManifestSchema>;
@@ -185,6 +190,154 @@ declare const edgePolicyManifest: {
185
190
  })[];
186
191
  };
187
192
 
193
+ type InfisicalRuntimeManifest = {
194
+ readonly manifestVersion: "1.0.0";
195
+ readonly contractVersion: typeof INFISICAL_RUNTIME_CONTRACT_VERSION;
196
+ readonly project: {
197
+ readonly id: typeof INFISICAL_RUNTIME_DEFAULT_PROJECT_ID;
198
+ readonly apiUrl: typeof INFISICAL_RUNTIME_DEFAULT_API_URL;
199
+ };
200
+ readonly environments: readonly InfisicalRuntimeEnvironment[];
201
+ readonly deliveryModes: readonly InfisicalRuntimeDeliveryMode[];
202
+ readonly bootstrapEnv: InfisicalRuntimeBootstrapEnv;
203
+ readonly paths: readonly InfisicalRuntimePath[];
204
+ readonly surfaces: readonly InfisicalRuntimeSurface[];
205
+ };
206
+ declare const INFISICAL_RUNTIME_MANIFEST: {
207
+ readonly manifestVersion: "1.0.0";
208
+ readonly contractVersion: "2026-04-28";
209
+ readonly project: {
210
+ readonly id: "344b0526-90df-4606-ba50-22c647a36c65";
211
+ readonly apiUrl: "https://app.infisical.com";
212
+ };
213
+ readonly environments: readonly ["dev", "staging", "prod"];
214
+ readonly deliveryModes: readonly ["vercel_sync", "runtime_fetch", "device_auth"];
215
+ readonly bootstrapEnv: {
216
+ readonly apiUrl: readonly ["INFISICAL_API_URL", "INFISICAL_URL"];
217
+ readonly projectId: readonly ["INFISICAL_PROJECT_ID", "INFISICAL_WORKSPACE_ID"];
218
+ readonly clientId: readonly ["INFISICAL_CLIENT_ID", "INFISICAL_MACHINE_CLIENT_ID", "INFISICAL_UNIVERSAL_AUTH_CLIENT_ID"];
219
+ readonly clientSecret: readonly ["INFISICAL_CLIENT_SECRET", "INFISICAL_MACHINE_CLIENT_SECRET", "INFISICAL_UNIVERSAL_AUTH_CLIENT_SECRET"];
220
+ readonly environment: readonly ["INFISICAL_ENV", "LUCERN_INFISICAL_ENV"];
221
+ readonly organizationSlug: readonly ["INFISICAL_ORG_SLUG", "INFISICAL_ORGANIZATION_SLUG"];
222
+ readonly disabled: readonly ["LUCERN_INFISICAL_DISABLE", "INFISICAL_DISABLE"];
223
+ };
224
+ readonly paths: readonly [{
225
+ readonly id: "platform-auth";
226
+ readonly secretPath: "/platform/auth";
227
+ readonly description: "Lucern platform authentication secrets. Synced into Vercel web/gateway projects; never distributed to tenant tools.";
228
+ readonly variables: readonly [{
229
+ readonly name: "NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY";
230
+ readonly required: true;
231
+ readonly secret: false;
232
+ readonly public: true;
233
+ readonly description: "Clerk publishable key for the Lucern web origin.";
234
+ }, {
235
+ readonly name: "CLERK_SECRET_KEY";
236
+ readonly required: true;
237
+ readonly secret: true;
238
+ readonly public: false;
239
+ readonly description: "Clerk backend secret key for Lucern server runtimes.";
240
+ }, {
241
+ readonly name: "CLERK_JWT_ISSUER_DOMAIN";
242
+ readonly required: false;
243
+ readonly secret: false;
244
+ readonly public: false;
245
+ readonly description: "Expected Clerk issuer/JWKS domain for JWT verification.";
246
+ }, {
247
+ readonly name: "NEXT_PUBLIC_CLERK_SIGN_IN_URL";
248
+ readonly required: false;
249
+ readonly secret: false;
250
+ readonly public: true;
251
+ readonly description: "Public sign-in URL for Lucern-owned web flows.";
252
+ }, {
253
+ readonly name: "NEXT_PUBLIC_CLERK_SIGN_UP_URL";
254
+ readonly required: false;
255
+ readonly secret: false;
256
+ readonly public: true;
257
+ readonly description: "Public sign-up URL for Lucern-owned web flows.";
258
+ }];
259
+ }, {
260
+ readonly id: "platform-runtime";
261
+ readonly secretPath: "/platform/runtime";
262
+ readonly description: "Runtime defaults shared by server-side Lucern clients and operator tooling.";
263
+ readonly variables: readonly [{
264
+ readonly name: "LUCERN_API_URL";
265
+ readonly required: true;
266
+ readonly secret: false;
267
+ readonly public: false;
268
+ readonly aliases: readonly ["LUCERN_API_BASE_URL", "LUCERN_BASE_URL"];
269
+ readonly description: "Canonical Lucern API gateway URL.";
270
+ }, {
271
+ readonly name: "LUCERN_LOGIN_BASE_URL";
272
+ readonly required: false;
273
+ readonly secret: false;
274
+ readonly public: false;
275
+ readonly aliases: readonly ["LUCERN_AUTH_BASE_URL"];
276
+ readonly description: "Browser login origin used when it differs from the API.";
277
+ }, {
278
+ readonly name: "LUCERN_ENVIRONMENT";
279
+ readonly required: false;
280
+ readonly secret: false;
281
+ readonly public: false;
282
+ readonly aliases: readonly ["LUCERN_ENV"];
283
+ readonly description: "Lucern environment label consumed by CLI profiles.";
284
+ }];
285
+ }, {
286
+ readonly id: "tenant-shared-install";
287
+ readonly secretPath: "tenants/shared";
288
+ readonly description: "Tenant package-install secrets. This is install-only and distinct from platform publish credentials.";
289
+ readonly variables: readonly [{
290
+ readonly name: "INSTALL_LUCERN_NPM";
291
+ readonly required: true;
292
+ readonly secret: true;
293
+ readonly public: false;
294
+ readonly description: "Read-only install token for the published @lucern/* suite.";
295
+ }];
296
+ }];
297
+ readonly surfaces: readonly [{
298
+ readonly id: "lucern-web";
299
+ readonly delivery: "vercel_sync";
300
+ readonly sourcePathIds: readonly ["platform-auth", "platform-runtime"];
301
+ readonly consumer: "apps/web on Vercel project lucern";
302
+ readonly description: "Lucern web consumes Clerk and runtime config via Infisical-to-Vercel syncs.";
303
+ }, {
304
+ readonly id: "lucern-gateway";
305
+ readonly delivery: "vercel_sync";
306
+ readonly sourcePathIds: readonly ["platform-auth", "platform-runtime"];
307
+ readonly consumer: "apps/gateway on Vercel project lucern-gateway";
308
+ readonly description: "Lucern gateway consumes platform config via Infisical-to-Vercel syncs.";
309
+ }, {
310
+ readonly id: "lucern-sdk";
311
+ readonly packageName: "@lucern/sdk";
312
+ readonly delivery: "runtime_fetch";
313
+ readonly sourcePathIds: readonly ["platform-runtime"];
314
+ readonly consumer: "server-side SDK operator contexts with a scoped Infisical identity";
315
+ readonly description: "SDK exposes the runtime Infisical resolver used by clients that have machine identity credentials.";
316
+ }, {
317
+ readonly id: "lucern-cli";
318
+ readonly packageName: "@lucern/cli";
319
+ readonly delivery: "runtime_fetch";
320
+ readonly fallback: "device_auth";
321
+ readonly sourcePathIds: readonly ["platform-runtime"];
322
+ readonly consumer: "developer/operator CLI processes";
323
+ readonly description: "CLI hydrates runtime defaults from Infisical when configured, then authenticates users through Lucern device login.";
324
+ }, {
325
+ readonly id: "lucern-mcp";
326
+ readonly packageName: "@lucern/mcp";
327
+ readonly delivery: "runtime_fetch";
328
+ readonly fallback: "device_auth";
329
+ readonly sourcePathIds: readonly ["platform-runtime"];
330
+ readonly consumer: "MCP server/client processes";
331
+ readonly description: "MCP hydrates runtime defaults through the SDK resolver and remains a Lucern client, not a platform secret owner.";
332
+ }, {
333
+ readonly id: "tenant-client";
334
+ readonly delivery: "device_auth";
335
+ readonly sourcePathIds: readonly ["tenant-shared-install"];
336
+ readonly consumer: "tenant-owned apps and coding agents";
337
+ readonly description: "Tenant clients install the published packages and receive user/service credentials through Lucern auth surfaces.";
338
+ }];
339
+ };
340
+
188
341
  interface ProjectionDef<TInput, TConvexArgs> {
189
342
  contractName: string;
190
343
  inputSchema: z.ZodSchema<TInput>;
@@ -234,33 +387,33 @@ declare const listBeliefsProjection: ProjectionDef<{
234
387
 
235
388
  declare const listTasksProjection: ProjectionDef<{
236
389
  topicId: string;
237
- status?: "blocked" | "in_progress" | "todo" | "done" | undefined;
390
+ status?: "todo" | "in_progress" | "blocked" | "done" | undefined;
238
391
  worktreeId?: string | undefined;
239
392
  limit?: number | undefined;
240
393
  linkedWorktreeId?: string | undefined;
241
394
  }, Record<string, unknown>>;
242
395
 
243
396
  declare const modulateConfidenceProjection: ProjectionDef<{
244
- trigger: "evidence_added" | "evidence_removed" | "contradiction_detected" | "contradiction_resolved" | "agent_assessment" | "worktree_outcome" | "worktree_completed" | "fusion" | "discount" | "deduction" | "backfill_synthetic" | "answer_recorded";
245
397
  rationale: string;
398
+ trigger: "evidence_added" | "evidence_removed" | "contradiction_detected" | "contradiction_resolved" | "agent_assessment" | "worktree_outcome" | "worktree_completed" | "fusion" | "discount" | "deduction" | "answer_recorded" | "backfill_synthetic";
246
399
  belief?: number | undefined;
247
- worktreeId?: string | undefined;
400
+ baseRate?: number | undefined;
401
+ nodeId?: string | undefined;
248
402
  disbelief?: number | undefined;
249
403
  uncertainty?: number | undefined;
250
- baseRate?: number | undefined;
404
+ worktreeId?: string | undefined;
251
405
  triggeringEvidenceId?: string | undefined;
252
406
  triggeringQuestionId?: string | undefined;
253
407
  triggeringAnswerId?: string | undefined;
254
408
  triggeringContradictionId?: string | undefined;
255
409
  triggeringWorktreeId?: string | undefined;
256
410
  beliefNodeId?: string | undefined;
257
- nodeId?: string | undefined;
258
411
  trustedBypassAccessCheck?: boolean | undefined;
259
412
  opinion?: {
260
413
  belief: number;
414
+ baseRate: number;
261
415
  disbelief: number;
262
416
  uncertainty: number;
263
- baseRate: number;
264
417
  } | undefined;
265
418
  provenance?: {
266
419
  evidence?: string | undefined;
@@ -326,32 +479,32 @@ declare const projections: {
326
479
  }, Record<string, unknown>>;
327
480
  readonly list_tasks: ProjectionDef<{
328
481
  topicId: string;
329
- status?: "blocked" | "in_progress" | "todo" | "done" | undefined;
482
+ status?: "todo" | "in_progress" | "blocked" | "done" | undefined;
330
483
  worktreeId?: string | undefined;
331
484
  limit?: number | undefined;
332
485
  linkedWorktreeId?: string | undefined;
333
486
  }, Record<string, unknown>>;
334
487
  readonly modulate_confidence: ProjectionDef<{
335
- trigger: "evidence_added" | "evidence_removed" | "contradiction_detected" | "contradiction_resolved" | "agent_assessment" | "worktree_outcome" | "worktree_completed" | "fusion" | "discount" | "deduction" | "backfill_synthetic" | "answer_recorded";
336
488
  rationale: string;
489
+ trigger: "evidence_added" | "evidence_removed" | "contradiction_detected" | "contradiction_resolved" | "agent_assessment" | "worktree_outcome" | "worktree_completed" | "fusion" | "discount" | "deduction" | "answer_recorded" | "backfill_synthetic";
337
490
  belief?: number | undefined;
338
- worktreeId?: string | undefined;
491
+ baseRate?: number | undefined;
492
+ nodeId?: string | undefined;
339
493
  disbelief?: number | undefined;
340
494
  uncertainty?: number | undefined;
341
- baseRate?: number | undefined;
495
+ worktreeId?: string | undefined;
342
496
  triggeringEvidenceId?: string | undefined;
343
497
  triggeringQuestionId?: string | undefined;
344
498
  triggeringAnswerId?: string | undefined;
345
499
  triggeringContradictionId?: string | undefined;
346
500
  triggeringWorktreeId?: string | undefined;
347
501
  beliefNodeId?: string | undefined;
348
- nodeId?: string | undefined;
349
502
  trustedBypassAccessCheck?: boolean | undefined;
350
503
  opinion?: {
351
504
  belief: number;
505
+ baseRate: number;
352
506
  disbelief: number;
353
507
  uncertainty: number;
354
- baseRate: number;
355
508
  } | undefined;
356
509
  provenance?: {
357
510
  evidence?: string | undefined;
@@ -417,21 +570,21 @@ declare const InvariantManifestSchema: z.ZodObject<{
417
570
  checker: "runtime" | "ast" | "manifest";
418
571
  }>, "many">;
419
572
  }, "strip", z.ZodTypeAny, {
573
+ manifestVersion: "1.0.0";
420
574
  rules: {
421
575
  invariant: string;
422
576
  description: string;
423
577
  severity: "warn" | "block_publish" | "block_pr";
424
578
  checker: "runtime" | "ast" | "manifest";
425
579
  }[];
426
- manifestVersion: "1.0.0";
427
580
  }, {
581
+ manifestVersion: "1.0.0";
428
582
  rules: {
429
583
  invariant: string;
430
584
  description: string;
431
585
  severity: "warn" | "block_publish" | "block_pr";
432
586
  checker: "runtime" | "ast" | "manifest";
433
587
  }[];
434
- manifestVersion: "1.0.0";
435
588
  }>;
436
589
  type InvariantManifest = z.infer<typeof InvariantManifestSchema>;
437
590
 
@@ -688,4 +841,4 @@ declare const TENANT_CLIENT_MANIFEST: {
688
841
  }];
689
842
  };
690
843
 
691
- 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, 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_INSTALLABLE_PACKAGES, TENANT_CLIENT_INSTALL_TOKEN_ENV, TENANT_CLIENT_INSTALL_TOKEN_INFISICAL_PATH, TENANT_CLIENT_ISOLATION_RULES, TENANT_CLIENT_MANIFEST, TENANT_CLIENT_OPTIONAL_CONTEXT_FIELDS, TENANT_CLIENT_PRINCIPAL_TYPES, TENANT_CLIENT_PUBLIC_IMPORTS, TENANT_CLIENT_REQUIRED_CONTEXT_FIELDS, TENANT_CLIENT_REQUIRED_SDK_NAMESPACES, type TenantClientManifest, assertEdgePolicyAllowed, createEvidenceProjection, defineProjection, edgePolicyManifest, findEdgePolicy, listBeliefsProjection, listTasksProjection, modulateConfidenceProjection, projections };
844
+ export { type CheckContext, type CheckerKind, type EdgePolicyEntry, EdgePolicyEntrySchema, type EdgePolicyManifest, EdgePolicyManifestSchema, type EdgePolicyViolation, type EpistemicNodeType, EpistemicNodeTypeSchema, type GraphRef, GraphRefSchema, INFISICAL_RUNTIME_CONTRACT_VERSION, INFISICAL_RUNTIME_DEFAULT_API_URL, INFISICAL_RUNTIME_DEFAULT_PROJECT_ID, INFISICAL_RUNTIME_MANIFEST, InfisicalRuntimeBootstrapEnv, InfisicalRuntimeDeliveryMode, InfisicalRuntimeEnvironment, type InfisicalRuntimeManifest, InfisicalRuntimePath, InfisicalRuntimeSurface, type InvariantId, type InvariantManifest, InvariantManifestSchema, type InvariantResult, type InvariantRule, type InvariantSeverity, type ProjectionDef, type ProjectionRegistry, 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_INSTALLABLE_PACKAGES, TENANT_CLIENT_INSTALL_TOKEN_ENV, TENANT_CLIENT_INSTALL_TOKEN_INFISICAL_PATH, TENANT_CLIENT_ISOLATION_RULES, TENANT_CLIENT_MANIFEST, TENANT_CLIENT_OPTIONAL_CONTEXT_FIELDS, TENANT_CLIENT_PRINCIPAL_TYPES, TENANT_CLIENT_PUBLIC_IMPORTS, TENANT_CLIENT_REQUIRED_CONTEXT_FIELDS, TENANT_CLIENT_REQUIRED_SDK_NAMESPACES, type TenantClientManifest, assertEdgePolicyAllowed, createEvidenceProjection, defineProjection, edgePolicyManifest, findEdgePolicy, listBeliefsProjection, listTasksProjection, modulateConfidenceProjection, projections };