@lucern/contracts 0.3.0-alpha.2 → 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.
- package/dist/component-boundary.contract.d.ts +14 -0
- package/dist/component-boundary.contract.js +155 -0
- package/dist/component-boundary.contract.js.map +1 -0
- package/dist/component-host-boundary.contract.d.ts +41 -0
- package/dist/component-host-boundary.contract.js +54 -0
- package/dist/component-host-boundary.contract.js.map +1 -0
- package/dist/function-registry/beliefs.d.ts +41 -41
- package/dist/function-registry/beliefs.js +202 -8
- package/dist/function-registry/beliefs.js.map +1 -1
- package/dist/function-registry/coding.js +187 -8
- package/dist/function-registry/coding.js.map +1 -1
- package/dist/function-registry/context.d.ts +13 -13
- package/dist/function-registry/context.js +187 -9
- package/dist/function-registry/context.js.map +1 -1
- package/dist/function-registry/contracts.js +158 -5
- package/dist/function-registry/contracts.js.map +1 -1
- package/dist/function-registry/coordination.js +158 -5
- package/dist/function-registry/coordination.js.map +1 -1
- package/dist/function-registry/edges.js +169 -6
- package/dist/function-registry/edges.js.map +1 -1
- package/dist/function-registry/evidence.d.ts +33 -33
- package/dist/function-registry/evidence.js +202 -9
- package/dist/function-registry/evidence.js.map +1 -1
- package/dist/function-registry/graph.d.ts +53 -53
- package/dist/function-registry/graph.js +217 -12
- package/dist/function-registry/graph.js.map +1 -1
- package/dist/function-registry/helpers.d.ts +1 -1
- package/dist/function-registry/helpers.js +158 -5
- package/dist/function-registry/helpers.js.map +1 -1
- package/dist/function-registry/identity.js +158 -5
- package/dist/function-registry/identity.js.map +1 -1
- package/dist/function-registry/index.d.ts +1 -1
- package/dist/function-registry/index.js +158 -5
- package/dist/function-registry/index.js.map +1 -1
- package/dist/function-registry/judgments.d.ts +9 -9
- package/dist/function-registry/judgments.js +170 -8
- package/dist/function-registry/judgments.js.map +1 -1
- package/dist/function-registry/legacy.js +158 -5
- package/dist/function-registry/legacy.js.map +1 -1
- package/dist/function-registry/lenses.d.ts +17 -17
- package/dist/function-registry/lenses.js +181 -8
- package/dist/function-registry/lenses.js.map +1 -1
- package/dist/function-registry/manifest.d.ts +3 -3
- package/dist/function-registry/manifest.js +1 -1
- package/dist/function-registry/manifest.js.map +1 -1
- package/dist/function-registry/ontologies.d.ts +45 -45
- package/dist/function-registry/ontologies.js +176 -11
- package/dist/function-registry/ontologies.js.map +1 -1
- package/dist/function-registry/pipeline.d.ts +13 -13
- package/dist/function-registry/pipeline.js +167 -8
- package/dist/function-registry/pipeline.js.map +1 -1
- package/dist/function-registry/questions.d.ts +49 -49
- package/dist/function-registry/questions.js +255 -13
- package/dist/function-registry/questions.js.map +1 -1
- package/dist/function-registry/tasks.js +158 -5
- package/dist/function-registry/tasks.js.map +1 -1
- package/dist/function-registry/topics.d.ts +21 -21
- package/dist/function-registry/topics.js +172 -8
- package/dist/function-registry/topics.js.map +1 -1
- package/dist/function-registry/types.d.ts +1 -1
- package/dist/function-registry/worktrees.d.ts +80 -41
- package/dist/function-registry/worktrees.js +292 -17
- package/dist/function-registry/worktrees.js.map +1 -1
- package/dist/function-registry-input-audit.d.ts +13 -0
- package/dist/function-registry-input-audit.js +164 -0
- package/dist/function-registry-input-audit.js.map +1 -0
- package/dist/gateway.contract.d.ts +2 -0
- package/dist/gateway.contract.js.map +1 -1
- package/dist/generated/convexSchemas.js +2 -1
- package/dist/generated/convexSchemas.js.map +1 -1
- package/dist/generated/schema-manifest.json +42 -3
- package/dist/generated/tableOwnership.d.ts +2 -1
- package/dist/generated/tableOwnership.js +2 -0
- package/dist/generated/tableOwnership.js.map +1 -1
- package/dist/generated/tier-expectations.json +4 -2
- package/dist/index.d.ts +445 -35
- package/dist/index.js +1987 -17
- package/dist/index.js.map +1 -1
- package/dist/infisical-runtime.contract.d.ts +174 -0
- package/dist/infisical-runtime.contract.js +192 -0
- package/dist/infisical-runtime.contract.js.map +1 -0
- package/dist/mcp-gateway-boundary.contract.d.ts +181 -0
- package/dist/mcp-gateway-boundary.contract.js +43 -0
- package/dist/mcp-gateway-boundary.contract.js.map +1 -0
- package/dist/schemas/component-table-manifest.d.ts +2 -2
- package/dist/schemas/index.js +38 -1
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/manifest.d.ts +1050 -910
- package/dist/schemas/manifest.js +38 -1
- package/dist/schemas/manifest.js.map +1 -1
- package/dist/schemas/sl-opinion.d.ts +4 -4
- package/dist/schemas/tables/identity/platform.d.ts +10 -10
- package/dist/schemas/tables/kernel/epistemic.d.ts +6 -6
- package/dist/schemas/tables/kernel/infra.d.ts +4 -4
- package/dist/schemas/tables/kernel/intelligence.d.ts +10 -10
- package/dist/schemas/tables/kernel/lens.d.ts +4 -4
- package/dist/schemas/tables/kernel/platform.d.ts +12 -12
- package/dist/schemas/tables/kernel/spine.d.ts +2 -2
- package/dist/schemas/tables/kernel/task.d.ts +42 -42
- package/dist/schemas/tables/kernel/worktree.d.ts +62 -62
- package/dist/schemas/tables/mc/identity.d.ts +26 -3
- package/dist/schemas/tables/mc/identity.js +35 -1
- package/dist/schemas/tables/mc/identity.js.map +1 -1
- package/dist/schemas/tables/mc/pack.d.ts +20 -20
- package/dist/schemas/tables/mc/registry.d.ts +4 -4
- package/dist/schemas/tables/mc/workspace.d.ts +9 -3
- package/dist/schemas/tables/mc/workspace.js +3 -1
- package/dist/schemas/tables/mc/workspace.js.map +1 -1
- package/dist/sdk-methods.contract.d.ts +1 -1
- package/dist/{sdk-tools.contract-S4ia0TTo.d.ts → sdk-tools.contract-CD-N1Jf7.d.ts} +1 -1
- package/dist/sdk-tools.contract.d.ts +2 -2
- package/dist/sdk-tools.contract.js +157 -4
- package/dist/sdk-tools.contract.js.map +1 -1
- package/dist/tenant-bootstrap-seed.contract.d.ts +1097 -0
- package/dist/tenant-bootstrap-seed.contract.js +651 -0
- package/dist/tenant-bootstrap-seed.contract.js.map +1 -0
- package/dist/tenant-bootstrap-seed.defaults.d.ts +16 -0
- package/dist/tenant-bootstrap-seed.defaults.js +303 -0
- package/dist/tenant-bootstrap-seed.defaults.js.map +1 -0
- package/dist/tenant-client.contract.d.ts +266 -0
- package/dist/tenant-client.contract.js +404 -0
- package/dist/tenant-client.contract.js.map +1 -0
- package/dist/{tool-contracts-C92-9ueT.d.ts → tool-contracts-BcKz-VGj.d.ts} +4 -2
- package/dist/tool-contracts.d.ts +1 -1
- package/dist/tool-contracts.js +158 -5
- package/dist/tool-contracts.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +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
|
+
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';
|
|
3
5
|
export { ConvexAdminClient } from './convex-admin.contract.js';
|
|
4
6
|
export { CutoverDomain, CutoverFlagState, GatewayAuthContext, GatewayAuthMode, GatewayEnvironment, GatewayErrorArgs, GatewayScope, GatewaySuccessArgs, KeyLifecycleStatus, PlatformApiErrorCode, requireActorPrincipalId } from './gateway.contract.js';
|
|
5
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';
|
|
@@ -11,15 +13,22 @@ export { ComponentTableManifest, ComponentTableManifestSchema } from './schemas/
|
|
|
11
13
|
export { SLOpinionInput, SLOpinionInputSchema } from './schemas/sl-opinion.js';
|
|
12
14
|
import * as zod from 'zod';
|
|
13
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';
|
|
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';
|
|
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';
|
|
14
20
|
export * from './function-registry/index.js';
|
|
15
|
-
export { t as mcpToolsContract } from './tool-contracts-
|
|
21
|
+
export { t as mcpToolsContract } from './tool-contracts-BcKz-VGj.js';
|
|
16
22
|
export { EntityConnectionMatch, EntityMatchCandidate, EntityTypeMatch, OntologyEntityType, rankEntityConnections, rankEntityTypeMatches, scoreEntityConnection, scoreEntityTypeMatch } from './v1/ontologies/v1.js';
|
|
17
23
|
export { LucernPrompt, LucernPromptModelHint, isLucernPrompt } from './prompt.contract.js';
|
|
18
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';
|
|
19
|
-
export { s as sdkToolsContract } from './sdk-tools.contract-
|
|
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';
|
|
20
28
|
export { LexicalRerankOptions, LexicalSignal, LexicalStrategy, PreparedLexicalQuery, bigramTokenize, jaccardSimilarity, prepareLexicalQuery, rankWindowScore, rerankLexicalWindow, scoreLexicalSignal, scoreLexicalSignals, stemToken, tokenOverlapScore, tokenizeSearchText, wordOverlapScore, wordTokenize } from './text-matching.contract.js';
|
|
21
29
|
export { ROOT_TOPIC_ID, TopicDoc, collectTopicNeighborhood } from './v1/topics/v1.js';
|
|
22
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';
|
|
31
|
+
import './generated/tableOwnership.js';
|
|
23
32
|
import './defineFunction-DO97DKs4.js';
|
|
24
33
|
import './defineTable-CBQ03FXl.js';
|
|
25
34
|
import './idOf-DR8tkhQS.js';
|
|
@@ -44,13 +53,13 @@ declare const GraphRefSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
|
44
53
|
nodeId: z.ZodString;
|
|
45
54
|
nodeType: z.ZodEnum<["belief", "evidence", "question", "answer", "topic", "edge", "ontology", "lens", "contradiction"]>;
|
|
46
55
|
}, "strip", z.ZodTypeAny, {
|
|
47
|
-
nodeType: "belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "answer" | "lens";
|
|
48
|
-
nodeId: string;
|
|
49
56
|
kind: "epistemic_node";
|
|
50
|
-
}, {
|
|
51
|
-
nodeType: "belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "answer" | "lens";
|
|
52
57
|
nodeId: string;
|
|
58
|
+
nodeType: "belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "lens" | "answer";
|
|
59
|
+
}, {
|
|
53
60
|
kind: "epistemic_node";
|
|
61
|
+
nodeId: string;
|
|
62
|
+
nodeType: "belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "lens" | "answer";
|
|
54
63
|
}>, z.ZodObject<{
|
|
55
64
|
kind: z.ZodLiteral<"external_belief">;
|
|
56
65
|
ref: z.ZodObject<{
|
|
@@ -89,15 +98,15 @@ declare const EdgePolicyEntrySchema: z.ZodObject<{
|
|
|
89
98
|
edgeType: string;
|
|
90
99
|
fromKinds: ("epistemic_node" | "external_belief")[];
|
|
91
100
|
toKinds: ("epistemic_node" | "external_belief")[];
|
|
92
|
-
fromNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "
|
|
93
|
-
toNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "
|
|
101
|
+
fromNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "lens" | "answer")[] | undefined;
|
|
102
|
+
toNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "lens" | "answer")[] | undefined;
|
|
94
103
|
}, {
|
|
95
104
|
description: string;
|
|
96
105
|
edgeType: string;
|
|
97
106
|
fromKinds: ("epistemic_node" | "external_belief")[];
|
|
98
107
|
toKinds: ("epistemic_node" | "external_belief")[];
|
|
99
|
-
fromNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "
|
|
100
|
-
toNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "
|
|
108
|
+
fromNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "lens" | "answer")[] | undefined;
|
|
109
|
+
toNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "lens" | "answer")[] | undefined;
|
|
101
110
|
}>;
|
|
102
111
|
declare const EdgePolicyManifestSchema: z.ZodObject<{
|
|
103
112
|
manifestVersion: z.ZodLiteral<"1.0.0">;
|
|
@@ -113,36 +122,36 @@ declare const EdgePolicyManifestSchema: z.ZodObject<{
|
|
|
113
122
|
edgeType: string;
|
|
114
123
|
fromKinds: ("epistemic_node" | "external_belief")[];
|
|
115
124
|
toKinds: ("epistemic_node" | "external_belief")[];
|
|
116
|
-
fromNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "
|
|
117
|
-
toNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "
|
|
125
|
+
fromNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "lens" | "answer")[] | undefined;
|
|
126
|
+
toNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "lens" | "answer")[] | undefined;
|
|
118
127
|
}, {
|
|
119
128
|
description: string;
|
|
120
129
|
edgeType: string;
|
|
121
130
|
fromKinds: ("epistemic_node" | "external_belief")[];
|
|
122
131
|
toKinds: ("epistemic_node" | "external_belief")[];
|
|
123
|
-
fromNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "
|
|
124
|
-
toNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "
|
|
132
|
+
fromNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "lens" | "answer")[] | undefined;
|
|
133
|
+
toNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "lens" | "answer")[] | undefined;
|
|
125
134
|
}>, "many">;
|
|
126
135
|
}, "strip", z.ZodTypeAny, {
|
|
127
|
-
manifestVersion: "1.0.0";
|
|
128
136
|
policies: {
|
|
129
137
|
description: string;
|
|
130
138
|
edgeType: string;
|
|
131
139
|
fromKinds: ("epistemic_node" | "external_belief")[];
|
|
132
140
|
toKinds: ("epistemic_node" | "external_belief")[];
|
|
133
|
-
fromNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "
|
|
134
|
-
toNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "
|
|
141
|
+
fromNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "lens" | "answer")[] | undefined;
|
|
142
|
+
toNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "lens" | "answer")[] | undefined;
|
|
135
143
|
}[];
|
|
136
|
-
}, {
|
|
137
144
|
manifestVersion: "1.0.0";
|
|
145
|
+
}, {
|
|
138
146
|
policies: {
|
|
139
147
|
description: string;
|
|
140
148
|
edgeType: string;
|
|
141
149
|
fromKinds: ("epistemic_node" | "external_belief")[];
|
|
142
150
|
toKinds: ("epistemic_node" | "external_belief")[];
|
|
143
|
-
fromNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "
|
|
144
|
-
toNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "
|
|
151
|
+
fromNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "lens" | "answer")[] | undefined;
|
|
152
|
+
toNodeTypes?: ("belief" | "evidence" | "question" | "edge" | "contradiction" | "topic" | "ontology" | "lens" | "answer")[] | undefined;
|
|
145
153
|
}[];
|
|
154
|
+
manifestVersion: "1.0.0";
|
|
146
155
|
}>;
|
|
147
156
|
type EdgePolicyEntry = z.infer<typeof EdgePolicyEntrySchema>;
|
|
148
157
|
type EdgePolicyManifest = z.infer<typeof EdgePolicyManifestSchema>;
|
|
@@ -181,6 +190,154 @@ declare const edgePolicyManifest: {
|
|
|
181
190
|
})[];
|
|
182
191
|
};
|
|
183
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
|
+
|
|
184
341
|
interface ProjectionDef<TInput, TConvexArgs> {
|
|
185
342
|
contractName: string;
|
|
186
343
|
inputSchema: z.ZodSchema<TInput>;
|
|
@@ -230,33 +387,33 @@ declare const listBeliefsProjection: ProjectionDef<{
|
|
|
230
387
|
|
|
231
388
|
declare const listTasksProjection: ProjectionDef<{
|
|
232
389
|
topicId: string;
|
|
233
|
-
status?: "
|
|
390
|
+
status?: "todo" | "in_progress" | "blocked" | "done" | undefined;
|
|
234
391
|
worktreeId?: string | undefined;
|
|
235
392
|
limit?: number | undefined;
|
|
236
393
|
linkedWorktreeId?: string | undefined;
|
|
237
394
|
}, Record<string, unknown>>;
|
|
238
395
|
|
|
239
396
|
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
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";
|
|
242
399
|
belief?: number | undefined;
|
|
243
|
-
|
|
400
|
+
baseRate?: number | undefined;
|
|
401
|
+
nodeId?: string | undefined;
|
|
244
402
|
disbelief?: number | undefined;
|
|
245
403
|
uncertainty?: number | undefined;
|
|
246
|
-
|
|
404
|
+
worktreeId?: string | undefined;
|
|
247
405
|
triggeringEvidenceId?: string | undefined;
|
|
248
406
|
triggeringQuestionId?: string | undefined;
|
|
249
407
|
triggeringAnswerId?: string | undefined;
|
|
250
408
|
triggeringContradictionId?: string | undefined;
|
|
251
409
|
triggeringWorktreeId?: string | undefined;
|
|
252
410
|
beliefNodeId?: string | undefined;
|
|
253
|
-
nodeId?: string | undefined;
|
|
254
411
|
trustedBypassAccessCheck?: boolean | undefined;
|
|
255
412
|
opinion?: {
|
|
256
413
|
belief: number;
|
|
414
|
+
baseRate: number;
|
|
257
415
|
disbelief: number;
|
|
258
416
|
uncertainty: number;
|
|
259
|
-
baseRate: number;
|
|
260
417
|
} | undefined;
|
|
261
418
|
provenance?: {
|
|
262
419
|
evidence?: string | undefined;
|
|
@@ -322,32 +479,32 @@ declare const projections: {
|
|
|
322
479
|
}, Record<string, unknown>>;
|
|
323
480
|
readonly list_tasks: ProjectionDef<{
|
|
324
481
|
topicId: string;
|
|
325
|
-
status?: "
|
|
482
|
+
status?: "todo" | "in_progress" | "blocked" | "done" | undefined;
|
|
326
483
|
worktreeId?: string | undefined;
|
|
327
484
|
limit?: number | undefined;
|
|
328
485
|
linkedWorktreeId?: string | undefined;
|
|
329
486
|
}, Record<string, unknown>>;
|
|
330
487
|
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
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";
|
|
333
490
|
belief?: number | undefined;
|
|
334
|
-
|
|
491
|
+
baseRate?: number | undefined;
|
|
492
|
+
nodeId?: string | undefined;
|
|
335
493
|
disbelief?: number | undefined;
|
|
336
494
|
uncertainty?: number | undefined;
|
|
337
|
-
|
|
495
|
+
worktreeId?: string | undefined;
|
|
338
496
|
triggeringEvidenceId?: string | undefined;
|
|
339
497
|
triggeringQuestionId?: string | undefined;
|
|
340
498
|
triggeringAnswerId?: string | undefined;
|
|
341
499
|
triggeringContradictionId?: string | undefined;
|
|
342
500
|
triggeringWorktreeId?: string | undefined;
|
|
343
501
|
beliefNodeId?: string | undefined;
|
|
344
|
-
nodeId?: string | undefined;
|
|
345
502
|
trustedBypassAccessCheck?: boolean | undefined;
|
|
346
503
|
opinion?: {
|
|
347
504
|
belief: number;
|
|
505
|
+
baseRate: number;
|
|
348
506
|
disbelief: number;
|
|
349
507
|
uncertainty: number;
|
|
350
|
-
baseRate: number;
|
|
351
508
|
} | undefined;
|
|
352
509
|
provenance?: {
|
|
353
510
|
evidence?: string | undefined;
|
|
@@ -413,22 +570,275 @@ declare const InvariantManifestSchema: z.ZodObject<{
|
|
|
413
570
|
checker: "runtime" | "ast" | "manifest";
|
|
414
571
|
}>, "many">;
|
|
415
572
|
}, "strip", z.ZodTypeAny, {
|
|
573
|
+
manifestVersion: "1.0.0";
|
|
416
574
|
rules: {
|
|
417
575
|
invariant: string;
|
|
418
576
|
description: string;
|
|
419
577
|
severity: "warn" | "block_publish" | "block_pr";
|
|
420
578
|
checker: "runtime" | "ast" | "manifest";
|
|
421
579
|
}[];
|
|
422
|
-
manifestVersion: "1.0.0";
|
|
423
580
|
}, {
|
|
581
|
+
manifestVersion: "1.0.0";
|
|
424
582
|
rules: {
|
|
425
583
|
invariant: string;
|
|
426
584
|
description: string;
|
|
427
585
|
severity: "warn" | "block_publish" | "block_pr";
|
|
428
586
|
checker: "runtime" | "ast" | "manifest";
|
|
429
587
|
}[];
|
|
430
|
-
manifestVersion: "1.0.0";
|
|
431
588
|
}>;
|
|
432
589
|
type InvariantManifest = z.infer<typeof InvariantManifestSchema>;
|
|
433
590
|
|
|
434
|
-
|
|
591
|
+
type TenantClientManifest = {
|
|
592
|
+
readonly manifestVersion: "1.0.0";
|
|
593
|
+
readonly contractVersion: typeof TENANT_CLIENT_CONTRACT_VERSION;
|
|
594
|
+
readonly auth: {
|
|
595
|
+
readonly modes: typeof TENANT_CLIENT_AUTH_MODES;
|
|
596
|
+
readonly principalTypes: typeof TENANT_CLIENT_PRINCIPAL_TYPES;
|
|
597
|
+
readonly requiredContextFields: typeof TENANT_CLIENT_REQUIRED_CONTEXT_FIELDS;
|
|
598
|
+
readonly optionalContextFields: typeof TENANT_CLIENT_OPTIONAL_CONTEXT_FIELDS;
|
|
599
|
+
};
|
|
600
|
+
readonly installToken: {
|
|
601
|
+
readonly env: typeof TENANT_CLIENT_INSTALL_TOKEN_ENV;
|
|
602
|
+
readonly infisicalPath: typeof TENANT_CLIENT_INSTALL_TOKEN_INFISICAL_PATH;
|
|
603
|
+
readonly forbiddenInfisicalPaths: typeof TENANT_CLIENT_FORBIDDEN_INSTALL_TOKEN_INFISICAL_PATHS;
|
|
604
|
+
readonly forbiddenSecretEnv: typeof TENANT_CLIENT_FORBIDDEN_SECRET_ENV;
|
|
605
|
+
};
|
|
606
|
+
readonly packages: {
|
|
607
|
+
readonly installable: typeof TENANT_CLIENT_INSTALLABLE_PACKAGES;
|
|
608
|
+
readonly directImports: typeof TENANT_CLIENT_PUBLIC_IMPORTS;
|
|
609
|
+
readonly componentConfigImports: typeof TENANT_CLIENT_COMPONENT_CONFIG_IMPORTS;
|
|
610
|
+
};
|
|
611
|
+
readonly sdk: {
|
|
612
|
+
readonly requiredNamespaces: typeof TENANT_CLIENT_REQUIRED_SDK_NAMESPACES;
|
|
613
|
+
};
|
|
614
|
+
readonly capabilities: typeof TENANT_CLIENT_CAPABILITIES;
|
|
615
|
+
readonly isolationRules: typeof TENANT_CLIENT_ISOLATION_RULES;
|
|
616
|
+
readonly forbiddenImportPatterns: typeof TENANT_CLIENT_FORBIDDEN_IMPORT_PATTERNS;
|
|
617
|
+
};
|
|
618
|
+
declare const TENANT_CLIENT_MANIFEST: {
|
|
619
|
+
readonly manifestVersion: "1.0.0";
|
|
620
|
+
readonly contractVersion: "2026-04-27";
|
|
621
|
+
readonly auth: {
|
|
622
|
+
readonly modes: readonly ["interactive_user", "service_principal", "tenant_api_key", "session_token"];
|
|
623
|
+
readonly principalTypes: readonly ["human", "service", "agent"];
|
|
624
|
+
readonly requiredContextFields: readonly ["tenantId", "workspaceId", "principalId", "authMode", "scopes"];
|
|
625
|
+
readonly optionalContextFields: readonly ["principalType", "roles", "sessionId", "delegationChain"];
|
|
626
|
+
};
|
|
627
|
+
readonly installToken: {
|
|
628
|
+
readonly env: "INSTALL_LUCERN_NPM";
|
|
629
|
+
readonly infisicalPath: "tenants/shared";
|
|
630
|
+
readonly forbiddenInfisicalPaths: readonly ["/platform/publish"];
|
|
631
|
+
readonly forbiddenSecretEnv: readonly ["NPM_TOKEN"];
|
|
632
|
+
};
|
|
633
|
+
readonly packages: {
|
|
634
|
+
readonly installable: readonly [{
|
|
635
|
+
readonly packageName: "@lucern/access-control";
|
|
636
|
+
readonly role: "sdk_dependency";
|
|
637
|
+
readonly directTenantImport: false;
|
|
638
|
+
}, {
|
|
639
|
+
readonly packageName: "@lucern/agent";
|
|
640
|
+
readonly role: "platform_runtime";
|
|
641
|
+
readonly directTenantImport: false;
|
|
642
|
+
}, {
|
|
643
|
+
readonly packageName: "@lucern/auth";
|
|
644
|
+
readonly role: "sdk_dependency";
|
|
645
|
+
readonly directTenantImport: false;
|
|
646
|
+
}, {
|
|
647
|
+
readonly packageName: "@lucern/cli";
|
|
648
|
+
readonly role: "developer_tool";
|
|
649
|
+
readonly directTenantImport: false;
|
|
650
|
+
}, {
|
|
651
|
+
readonly packageName: "@lucern/client-core";
|
|
652
|
+
readonly role: "sdk_dependency";
|
|
653
|
+
readonly directTenantImport: false;
|
|
654
|
+
}, {
|
|
655
|
+
readonly packageName: "@lucern/confidence";
|
|
656
|
+
readonly role: "sdk_dependency";
|
|
657
|
+
readonly directTenantImport: false;
|
|
658
|
+
}, {
|
|
659
|
+
readonly packageName: "@lucern/config";
|
|
660
|
+
readonly role: "configuration";
|
|
661
|
+
readonly directTenantImport: false;
|
|
662
|
+
}, {
|
|
663
|
+
readonly packageName: "@lucern/contracts";
|
|
664
|
+
readonly role: "contract_entrypoint";
|
|
665
|
+
readonly directTenantImport: true;
|
|
666
|
+
}, {
|
|
667
|
+
readonly packageName: "@lucern/control-plane";
|
|
668
|
+
readonly role: "platform_runtime";
|
|
669
|
+
readonly directTenantImport: false;
|
|
670
|
+
}, {
|
|
671
|
+
readonly packageName: "@lucern/developer-kit";
|
|
672
|
+
readonly role: "developer_tool";
|
|
673
|
+
readonly directTenantImport: false;
|
|
674
|
+
}, {
|
|
675
|
+
readonly packageName: "@lucern/events";
|
|
676
|
+
readonly role: "sdk_dependency";
|
|
677
|
+
readonly directTenantImport: false;
|
|
678
|
+
}, {
|
|
679
|
+
readonly packageName: "@lucern/graph-primitives";
|
|
680
|
+
readonly role: "sdk_dependency";
|
|
681
|
+
readonly directTenantImport: false;
|
|
682
|
+
}, {
|
|
683
|
+
readonly packageName: "@lucern/identity";
|
|
684
|
+
readonly role: "component_runtime";
|
|
685
|
+
readonly directTenantImport: false;
|
|
686
|
+
}, {
|
|
687
|
+
readonly packageName: "@lucern/mcp";
|
|
688
|
+
readonly role: "runtime_entrypoint";
|
|
689
|
+
readonly directTenantImport: true;
|
|
690
|
+
}, {
|
|
691
|
+
readonly packageName: "@lucern/pack-host";
|
|
692
|
+
readonly role: "platform_runtime";
|
|
693
|
+
readonly directTenantImport: false;
|
|
694
|
+
}, {
|
|
695
|
+
readonly packageName: "@lucern/pack-installer";
|
|
696
|
+
readonly role: "developer_tool";
|
|
697
|
+
readonly directTenantImport: false;
|
|
698
|
+
}, {
|
|
699
|
+
readonly packageName: "@lucern/proof-compiler";
|
|
700
|
+
readonly role: "developer_tool";
|
|
701
|
+
readonly directTenantImport: false;
|
|
702
|
+
}, {
|
|
703
|
+
readonly packageName: "@lucern/react";
|
|
704
|
+
readonly role: "runtime_entrypoint";
|
|
705
|
+
readonly directTenantImport: true;
|
|
706
|
+
}, {
|
|
707
|
+
readonly packageName: "@lucern/reasoning-kernel";
|
|
708
|
+
readonly role: "component_runtime";
|
|
709
|
+
readonly directTenantImport: false;
|
|
710
|
+
}, {
|
|
711
|
+
readonly packageName: "@lucern/sdk";
|
|
712
|
+
readonly role: "runtime_entrypoint";
|
|
713
|
+
readonly directTenantImport: true;
|
|
714
|
+
}, {
|
|
715
|
+
readonly packageName: "@lucern/server-core";
|
|
716
|
+
readonly role: "platform_runtime";
|
|
717
|
+
readonly directTenantImport: false;
|
|
718
|
+
}, {
|
|
719
|
+
readonly packageName: "@lucern/testing";
|
|
720
|
+
readonly role: "test_support";
|
|
721
|
+
readonly directTenantImport: false;
|
|
722
|
+
}, {
|
|
723
|
+
readonly packageName: "@lucern/types";
|
|
724
|
+
readonly role: "contract_entrypoint";
|
|
725
|
+
readonly directTenantImport: true;
|
|
726
|
+
}];
|
|
727
|
+
readonly directImports: readonly [{
|
|
728
|
+
readonly packageName: "@lucern/sdk";
|
|
729
|
+
readonly surface: "runtime";
|
|
730
|
+
readonly subpaths: "published_exports";
|
|
731
|
+
readonly description: "TypeScript SDK runtime and generated operation namespaces.";
|
|
732
|
+
}, {
|
|
733
|
+
readonly packageName: "@lucern/react";
|
|
734
|
+
readonly surface: "runtime";
|
|
735
|
+
readonly subpaths: "published_exports";
|
|
736
|
+
readonly description: "React bindings for tenant-owned UI applications.";
|
|
737
|
+
}, {
|
|
738
|
+
readonly packageName: "@lucern/mcp";
|
|
739
|
+
readonly surface: "runtime";
|
|
740
|
+
readonly subpaths: "published_exports";
|
|
741
|
+
readonly description: "MCP client/server entry points and hosted route helpers.";
|
|
742
|
+
}, {
|
|
743
|
+
readonly packageName: "@lucern/contracts";
|
|
744
|
+
readonly surface: "contract";
|
|
745
|
+
readonly subpaths: "published_exports";
|
|
746
|
+
readonly description: "Published type and manifest contracts.";
|
|
747
|
+
}, {
|
|
748
|
+
readonly packageName: "@lucern/types";
|
|
749
|
+
readonly surface: "contract";
|
|
750
|
+
readonly subpaths: "published_exports";
|
|
751
|
+
readonly description: "Published type-only helpers for tenant integration code.";
|
|
752
|
+
}];
|
|
753
|
+
readonly componentConfigImports: readonly [{
|
|
754
|
+
readonly packageName: "@lucern/identity";
|
|
755
|
+
readonly importPath: "@lucern/identity/convex.config";
|
|
756
|
+
readonly surface: "component_config";
|
|
757
|
+
readonly description: "Convex component binding config for tenant deployments that install Lucern identity.";
|
|
758
|
+
}, {
|
|
759
|
+
readonly packageName: "@lucern/reasoning-kernel";
|
|
760
|
+
readonly importPath: "@lucern/reasoning-kernel/convex.config";
|
|
761
|
+
readonly surface: "component_config";
|
|
762
|
+
readonly description: "Convex component binding config for tenant deployments that install the Lucern reasoning kernel.";
|
|
763
|
+
}, {
|
|
764
|
+
readonly packageName: "@lucern/reasoning-kernel";
|
|
765
|
+
readonly importPath: "@lucern/reasoning-kernel/runtime.config";
|
|
766
|
+
readonly surface: "component_config";
|
|
767
|
+
readonly description: "Runtime config alias for tenant deployments that install the Lucern reasoning kernel.";
|
|
768
|
+
}];
|
|
769
|
+
};
|
|
770
|
+
readonly sdk: {
|
|
771
|
+
readonly requiredNamespaces: readonly ["bootstrap", "context", "beliefs", "evidence", "questions", "graph", "worktrees", "topics", "edges", "contradictions", "contracts", "graphAnalysis", "graphRecommendations", "orgGraphSearch", "embeddings", "ontologyLinks", "graphStateClassifier", "tools", "identity", "modelRuntime", "events", "jobs", "telemetry"];
|
|
772
|
+
};
|
|
773
|
+
readonly capabilities: readonly [{
|
|
774
|
+
readonly id: "identity.bootstrap_session";
|
|
775
|
+
readonly description: "Start a scoped Lucern session for a tenant principal.";
|
|
776
|
+
readonly surfaces: readonly ["@lucern/sdk", "@lucern/mcp"];
|
|
777
|
+
readonly requiredContextFields: readonly ["tenantId", "workspaceId", "principalId", "authMode", "scopes"];
|
|
778
|
+
}, {
|
|
779
|
+
readonly id: "reasoning.context.compile";
|
|
780
|
+
readonly description: "Compile tenant and workspace scoped reasoning context.";
|
|
781
|
+
readonly surfaces: readonly ["@lucern/sdk", "@lucern/react", "@lucern/mcp"];
|
|
782
|
+
readonly requiredContextFields: readonly ["tenantId", "workspaceId", "principalId", "authMode", "scopes"];
|
|
783
|
+
}, {
|
|
784
|
+
readonly id: "reasoning.graph.read";
|
|
785
|
+
readonly description: "Read beliefs, evidence, questions, topics, and lineage.";
|
|
786
|
+
readonly surfaces: readonly ["@lucern/sdk", "@lucern/react", "@lucern/mcp"];
|
|
787
|
+
readonly requiredContextFields: readonly ["tenantId", "workspaceId", "principalId", "authMode", "scopes"];
|
|
788
|
+
}, {
|
|
789
|
+
readonly id: "reasoning.graph.write";
|
|
790
|
+
readonly description: "Create and update graph objects through authorized APIs.";
|
|
791
|
+
readonly surfaces: readonly ["@lucern/sdk", "@lucern/mcp"];
|
|
792
|
+
readonly requiredContextFields: readonly ["tenantId", "workspaceId", "principalId", "authMode", "scopes"];
|
|
793
|
+
}, {
|
|
794
|
+
readonly id: "workflow.worktree_lifecycle";
|
|
795
|
+
readonly description: "Create, review, merge, and close scoped worktrees.";
|
|
796
|
+
readonly surfaces: readonly ["@lucern/sdk", "@lucern/react", "@lucern/mcp"];
|
|
797
|
+
readonly requiredContextFields: readonly ["tenantId", "workspaceId", "principalId", "authMode", "scopes"];
|
|
798
|
+
}];
|
|
799
|
+
readonly isolationRules: readonly [{
|
|
800
|
+
readonly id: "tenant_workspace_scope_required";
|
|
801
|
+
readonly description: "Runtime operations must resolve both tenantId and workspaceId before reaching Lucern reasoning state.";
|
|
802
|
+
}, {
|
|
803
|
+
readonly id: "principal_audit_required";
|
|
804
|
+
readonly description: "Runtime operations must carry principalId, authMode, and scopes for audit attribution.";
|
|
805
|
+
}, {
|
|
806
|
+
readonly id: "no_private_lucern_imports";
|
|
807
|
+
readonly description: "Tenant code must not import Lucern source, Convex internals, generated adapters, or unpublished package internals.";
|
|
808
|
+
}];
|
|
809
|
+
readonly forbiddenImportPatterns: readonly [{
|
|
810
|
+
readonly id: "deep_src_import";
|
|
811
|
+
readonly pattern: "^@lucern/[^/]+/src(?:/|$)";
|
|
812
|
+
readonly description: "Published packages must not be bypassed through src paths.";
|
|
813
|
+
}, {
|
|
814
|
+
readonly id: "deep_dist_import";
|
|
815
|
+
readonly pattern: "^@lucern/[^/]+/dist(?:/|$)";
|
|
816
|
+
readonly description: "Published package exports must be used instead of dist file paths.";
|
|
817
|
+
}, {
|
|
818
|
+
readonly id: "generated_adapter_import";
|
|
819
|
+
readonly pattern: "^@lucern/[^/]+/(?:adapters/)?_generated(?:/|$)";
|
|
820
|
+
readonly description: "Generated Lucern adapters are internal deployment artifacts.";
|
|
821
|
+
}, {
|
|
822
|
+
readonly id: "private_runtime_import";
|
|
823
|
+
readonly pattern: "^@lucern/[^/]+/(?:internal|private)(?:/|$)";
|
|
824
|
+
readonly description: "Internal and private package subpaths are not public SDK API.";
|
|
825
|
+
}, {
|
|
826
|
+
readonly id: "workspace_source_import";
|
|
827
|
+
readonly pattern: "^(?:packages|modules|services|lucern|apps)/(?:.+/)?src(?:/|$)";
|
|
828
|
+
readonly description: "Tenant clients must not import source files from the Lucern monorepo.";
|
|
829
|
+
}, {
|
|
830
|
+
readonly id: "root_alias_lucern_import";
|
|
831
|
+
readonly pattern: "^@/(?:lucern|packages|modules|services|apps)(?:/|$)";
|
|
832
|
+
readonly description: "Tenant clients must not depend on Lucern repo-local path aliases.";
|
|
833
|
+
}, {
|
|
834
|
+
readonly id: "relative_lucern_source_import";
|
|
835
|
+
readonly pattern: "^\\.\\.?/(?:.+/)?(?:packages|modules|services|lucern|apps)(?:/|$)";
|
|
836
|
+
readonly description: "Tenant clients must not reach back into Lucern source through relative paths.";
|
|
837
|
+
}, {
|
|
838
|
+
readonly id: "monorepo_path_import";
|
|
839
|
+
readonly pattern: "lucern-repo";
|
|
840
|
+
readonly description: "Absolute imports that name the Lucern repository are not portable tenant code.";
|
|
841
|
+
}];
|
|
842
|
+
};
|
|
843
|
+
|
|
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 };
|