@lucern/contracts 0.3.0-alpha.2 → 0.3.0-alpha.3
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/gateway.contract.d.ts +1 -0
- package/dist/gateway.contract.js.map +1 -1
- package/dist/generated/convexSchemas.js +1 -0
- 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 +258 -1
- package/dist/index.js +618 -1
- package/dist/index.js.map +1 -1
- 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 +35 -0
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/manifest.d.ts +130 -20
- package/dist/schemas/manifest.js +35 -0
- package/dist/schemas/manifest.js.map +1 -1
- package/dist/schemas/tables/kernel/worktree.d.ts +2 -2
- package/dist/schemas/tables/mc/identity.d.ts +24 -1
- 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 +2 -2
- 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/package.json +1 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"generatedFrom": "packages/contracts/src/schemas/manifest.ts",
|
|
3
3
|
"counts": {
|
|
4
|
-
"total":
|
|
4
|
+
"total": 112,
|
|
5
5
|
"byComponent": {
|
|
6
6
|
"kernel": 55,
|
|
7
7
|
"identity": 24,
|
|
8
|
-
"mc":
|
|
8
|
+
"mc": 33,
|
|
9
9
|
"developer-pack": 0
|
|
10
10
|
},
|
|
11
11
|
"byLayer": {
|
|
12
|
-
"L":
|
|
12
|
+
"L": 33,
|
|
13
13
|
"I": 24,
|
|
14
14
|
"K": 55,
|
|
15
15
|
"D": 0,
|
|
@@ -2585,6 +2585,45 @@
|
|
|
2585
2585
|
"deprecated": null,
|
|
2586
2586
|
"invariants": []
|
|
2587
2587
|
},
|
|
2588
|
+
{
|
|
2589
|
+
"name": "oauthDeviceCodes",
|
|
2590
|
+
"component": "mc",
|
|
2591
|
+
"layer": "L",
|
|
2592
|
+
"category": "identity",
|
|
2593
|
+
"indices": [
|
|
2594
|
+
{
|
|
2595
|
+
"kind": "index",
|
|
2596
|
+
"name": "by_deviceCodeHash",
|
|
2597
|
+
"columns": [
|
|
2598
|
+
"deviceCodeHash"
|
|
2599
|
+
]
|
|
2600
|
+
},
|
|
2601
|
+
{
|
|
2602
|
+
"kind": "index",
|
|
2603
|
+
"name": "by_userCode",
|
|
2604
|
+
"columns": [
|
|
2605
|
+
"userCode"
|
|
2606
|
+
]
|
|
2607
|
+
},
|
|
2608
|
+
{
|
|
2609
|
+
"kind": "index",
|
|
2610
|
+
"name": "by_status_expiresAt",
|
|
2611
|
+
"columns": [
|
|
2612
|
+
"status",
|
|
2613
|
+
"expiresAt"
|
|
2614
|
+
]
|
|
2615
|
+
},
|
|
2616
|
+
{
|
|
2617
|
+
"kind": "index",
|
|
2618
|
+
"name": "by_sessionId",
|
|
2619
|
+
"columns": [
|
|
2620
|
+
"sessionId"
|
|
2621
|
+
]
|
|
2622
|
+
}
|
|
2623
|
+
],
|
|
2624
|
+
"deprecated": null,
|
|
2625
|
+
"invariants": []
|
|
2626
|
+
},
|
|
2588
2627
|
{
|
|
2589
2628
|
"name": "ontologyDefinitions",
|
|
2590
2629
|
"component": "kernel",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
type TableOwnershipLayer = "L" | "I" | "K" | "D" | "A";
|
|
2
2
|
declare const TABLES_BY_LAYER: {
|
|
3
|
-
readonly L: readonly ["agentRegistryEntries", "apiKeys", "auditLog", "compatibilityShims", "controlPlaneTenantModelSlotBindings", "controlPlaneTenantProviderSecrets", "controlPlaneTenantProxyGatewayUsage", "controlPlaneToolAcls", "cutoverFlags", "groupMemberships", "groups", "memberships", "methodologyPacks", "packAssignments", "packDefinitions", "packEntitlements", "packGroupAssignments", "packInstallations", "packVersions", "policyBundles", "policyDecisionLogs", "policySimulations", "principals", "rateLimitWindows", "servicePrincipalKeys", "tenantDeploymentCredentials", "tenantMethodologyAssignments", "tenants", "toolCatalog", "toolRegistryEntries", "userSessions", "workspaces"];
|
|
3
|
+
readonly L: readonly ["agentRegistryEntries", "apiKeys", "auditLog", "compatibilityShims", "controlPlaneTenantModelSlotBindings", "controlPlaneTenantProviderSecrets", "controlPlaneTenantProxyGatewayUsage", "controlPlaneToolAcls", "cutoverFlags", "groupMemberships", "groups", "memberships", "methodologyPacks", "oauthDeviceCodes", "packAssignments", "packDefinitions", "packEntitlements", "packGroupAssignments", "packInstallations", "packVersions", "policyBundles", "policyDecisionLogs", "policySimulations", "principals", "rateLimitWindows", "servicePrincipalKeys", "tenantDeploymentCredentials", "tenantMethodologyAssignments", "tenants", "toolCatalog", "toolRegistryEntries", "userSessions", "workspaces"];
|
|
4
4
|
readonly I: readonly ["agents", "mcpWritePolicy", "modelCallLogs", "modelFunctionSlots", "modelRegistry", "modelSlotConfigs", "platformAudienceGrants", "platformAudiences", "platformPolicyDecisionLogs", "projectGrants", "reasoningPermissions", "tenantApiKeys", "tenantConfig", "tenantIntegrations", "tenantModelSlotBindings", "tenantPolicies", "tenantProviderSecrets", "tenantProxyGatewayUsage", "tenantProxyTokenMints", "tenantSandboxAuditEvents", "tenantSecrets", "toolAcls", "toolRegistry", "users"];
|
|
5
5
|
readonly K: readonly ["agentMessages", "agentSessions", "autofixJobs", "backgroundJobRuns", "backgroundJobSettings", "beliefConfidence", "beliefEvidenceLinks", "beliefHistory", "beliefScenarios", "beliefVotes", "calibrationScores", "contractEvaluations", "contradictions", "crossProjectConnections", "decisionComputedSummaries", "decisionEvents", "decisionParticipants", "decisionRiskLedger", "decisionSnapshots", "deliberationContributions", "deliberationSessions", "epistemicAudit", "epistemicContracts", "epistemicEdges", "epistemicNodeEmbeddings", "epistemicNodes", "graphAnalysisCache", "graphAnalysisResults", "graphSuggestions", "harnessReplays", "harnessRuns", "idempotencyTokens", "lenses", "lensTopicBindings", "neo4jSyncQueue", "ontologyDefinitions", "ontologyVersions", "platformAgentRunPolicyDecisions", "platformAgentRunPromptResolutions", "platformAgentRuns", "platformAgentRunToolCalls", "platformHarnessShadowAudit", "publicationRules", "questionEvidenceLinks", "researchJobs", "schemaEnumConfig", "stakeholderGroups", "systemLogs", "tasks", "topics", "workflowDefinitions", "workflowPullRequests", "workflowStages", "worktreeBeliefCluster", "worktrees"];
|
|
6
6
|
readonly D: readonly [];
|
|
@@ -61,6 +61,7 @@ declare const TABLE_OWNERSHIP: {
|
|
|
61
61
|
readonly modelRegistry: "I";
|
|
62
62
|
readonly modelSlotConfigs: "I";
|
|
63
63
|
readonly neo4jSyncQueue: "K";
|
|
64
|
+
readonly oauthDeviceCodes: "L";
|
|
64
65
|
readonly ontologyDefinitions: "K";
|
|
65
66
|
readonly ontologyVersions: "K";
|
|
66
67
|
readonly packAssignments: "L";
|
|
@@ -14,6 +14,7 @@ var TABLES_BY_LAYER = {
|
|
|
14
14
|
"groups",
|
|
15
15
|
"memberships",
|
|
16
16
|
"methodologyPacks",
|
|
17
|
+
"oauthDeviceCodes",
|
|
17
18
|
"packAssignments",
|
|
18
19
|
"packDefinitions",
|
|
19
20
|
"packEntitlements",
|
|
@@ -175,6 +176,7 @@ var TABLE_OWNERSHIP = {
|
|
|
175
176
|
"modelRegistry": "I",
|
|
176
177
|
"modelSlotConfigs": "I",
|
|
177
178
|
"neo4jSyncQueue": "K",
|
|
179
|
+
"oauthDeviceCodes": "L",
|
|
178
180
|
"ontologyDefinitions": "K",
|
|
179
181
|
"ontologyVersions": "K",
|
|
180
182
|
"packAssignments": "L",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/generated/tableOwnership.ts"],"names":[],"mappings":";AAIO,IAAM,eAAA,GAAkB;AAAA,EAC7B,GAAA,EAAK;AAAA,IACH,sBAAA;AAAA,IACA,SAAA;AAAA,IACA,UAAA;AAAA,IACA,oBAAA;AAAA,IACA,qCAAA;AAAA,IACA,mCAAA;AAAA,IACA,qCAAA;AAAA,IACA,sBAAA;AAAA,IACA,cAAA;AAAA,IACA,kBAAA;AAAA,IACA,QAAA;AAAA,IACA,aAAA;AAAA,IACA,kBAAA;AAAA,IACA,iBAAA;AAAA,IACA,iBAAA;AAAA,IACA,kBAAA;AAAA,IACA,sBAAA;AAAA,IACA,mBAAA;AAAA,IACA,cAAA;AAAA,IACA,eAAA;AAAA,IACA,oBAAA;AAAA,IACA,mBAAA;AAAA,IACA,YAAA;AAAA,IACA,kBAAA;AAAA,IACA,sBAAA;AAAA,IACA,6BAAA;AAAA,IACA,8BAAA;AAAA,IACA,SAAA;AAAA,IACA,aAAA;AAAA,IACA,qBAAA;AAAA,IACA,cAAA;AAAA,IACA;AAAA,GACF;AAAA,EACA,GAAA,EAAK;AAAA,IACH,QAAA;AAAA,IACA,gBAAA;AAAA,IACA,eAAA;AAAA,IACA,oBAAA;AAAA,IACA,eAAA;AAAA,IACA,kBAAA;AAAA,IACA,wBAAA;AAAA,IACA,mBAAA;AAAA,IACA,4BAAA;AAAA,IACA,eAAA;AAAA,IACA,sBAAA;AAAA,IACA,eAAA;AAAA,IACA,cAAA;AAAA,IACA,oBAAA;AAAA,IACA,yBAAA;AAAA,IACA,gBAAA;AAAA,IACA,uBAAA;AAAA,IACA,yBAAA;AAAA,IACA,uBAAA;AAAA,IACA,0BAAA;AAAA,IACA,eAAA;AAAA,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tableOwnership.js","sourcesContent":["/* GENERATED by scripts/generate-contract-schema.ts. DO NOT EDIT. */\n\nexport type TableOwnershipLayer = \"L\" | \"I\" | \"K\" | \"D\" | \"A\";\n\nexport const TABLES_BY_LAYER = {\n \"L\": [\n \"agentRegistryEntries\",\n \"apiKeys\",\n \"auditLog\",\n \"compatibilityShims\",\n \"controlPlaneTenantModelSlotBindings\",\n \"controlPlaneTenantProviderSecrets\",\n \"controlPlaneTenantProxyGatewayUsage\",\n \"controlPlaneToolAcls\",\n \"cutoverFlags\",\n \"groupMemberships\",\n \"groups\",\n \"memberships\",\n \"methodologyPacks\",\n \"packAssignments\",\n \"packDefinitions\",\n \"packEntitlements\",\n \"packGroupAssignments\",\n \"packInstallations\",\n \"packVersions\",\n \"policyBundles\",\n \"policyDecisionLogs\",\n \"policySimulations\",\n \"principals\",\n \"rateLimitWindows\",\n \"servicePrincipalKeys\",\n \"tenantDeploymentCredentials\",\n \"tenantMethodologyAssignments\",\n \"tenants\",\n \"toolCatalog\",\n \"toolRegistryEntries\",\n \"userSessions\",\n \"workspaces\"\n ],\n \"I\": [\n \"agents\",\n \"mcpWritePolicy\",\n \"modelCallLogs\",\n \"modelFunctionSlots\",\n \"modelRegistry\",\n \"modelSlotConfigs\",\n \"platformAudienceGrants\",\n \"platformAudiences\",\n \"platformPolicyDecisionLogs\",\n \"projectGrants\",\n \"reasoningPermissions\",\n \"tenantApiKeys\",\n \"tenantConfig\",\n \"tenantIntegrations\",\n \"tenantModelSlotBindings\",\n \"tenantPolicies\",\n \"tenantProviderSecrets\",\n \"tenantProxyGatewayUsage\",\n \"tenantProxyTokenMints\",\n \"tenantSandboxAuditEvents\",\n \"tenantSecrets\",\n \"toolAcls\",\n \"toolRegistry\",\n \"users\"\n ],\n \"K\": [\n \"agentMessages\",\n \"agentSessions\",\n \"autofixJobs\",\n \"backgroundJobRuns\",\n \"backgroundJobSettings\",\n \"beliefConfidence\",\n \"beliefEvidenceLinks\",\n \"beliefHistory\",\n \"beliefScenarios\",\n \"beliefVotes\",\n \"calibrationScores\",\n \"contractEvaluations\",\n \"contradictions\",\n \"crossProjectConnections\",\n \"decisionComputedSummaries\",\n \"decisionEvents\",\n \"decisionParticipants\",\n \"decisionRiskLedger\",\n \"decisionSnapshots\",\n \"deliberationContributions\",\n \"deliberationSessions\",\n \"epistemicAudit\",\n \"epistemicContracts\",\n \"epistemicEdges\",\n \"epistemicNodeEmbeddings\",\n \"epistemicNodes\",\n \"graphAnalysisCache\",\n \"graphAnalysisResults\",\n \"graphSuggestions\",\n \"harnessReplays\",\n \"harnessRuns\",\n \"idempotencyTokens\",\n \"lenses\",\n \"lensTopicBindings\",\n \"neo4jSyncQueue\",\n \"ontologyDefinitions\",\n \"ontologyVersions\",\n \"platformAgentRunPolicyDecisions\",\n \"platformAgentRunPromptResolutions\",\n \"platformAgentRuns\",\n \"platformAgentRunToolCalls\",\n \"platformHarnessShadowAudit\",\n \"publicationRules\",\n \"questionEvidenceLinks\",\n \"researchJobs\",\n \"schemaEnumConfig\",\n \"stakeholderGroups\",\n \"systemLogs\",\n \"tasks\",\n \"topics\",\n \"workflowDefinitions\",\n \"workflowPullRequests\",\n \"workflowStages\",\n \"worktreeBeliefCluster\",\n \"worktrees\"\n ],\n \"D\": [],\n \"A\": []\n} as const;\n\nexport const TABLE_OWNERSHIP = {\n \"agentMessages\": \"K\",\n \"agentRegistryEntries\": \"L\",\n \"agents\": \"I\",\n \"agentSessions\": \"K\",\n \"apiKeys\": \"L\",\n \"auditLog\": \"L\",\n \"autofixJobs\": \"K\",\n \"backgroundJobRuns\": \"K\",\n \"backgroundJobSettings\": \"K\",\n \"beliefConfidence\": \"K\",\n \"beliefEvidenceLinks\": \"K\",\n \"beliefHistory\": \"K\",\n \"beliefScenarios\": \"K\",\n \"beliefVotes\": \"K\",\n \"calibrationScores\": \"K\",\n \"compatibilityShims\": \"L\",\n \"contractEvaluations\": \"K\",\n \"contradictions\": \"K\",\n \"controlPlaneTenantModelSlotBindings\": \"L\",\n \"controlPlaneTenantProviderSecrets\": \"L\",\n \"controlPlaneTenantProxyGatewayUsage\": \"L\",\n \"controlPlaneToolAcls\": \"L\",\n \"crossProjectConnections\": \"K\",\n \"cutoverFlags\": \"L\",\n \"decisionComputedSummaries\": \"K\",\n \"decisionEvents\": \"K\",\n \"decisionParticipants\": \"K\",\n \"decisionRiskLedger\": \"K\",\n \"decisionSnapshots\": \"K\",\n \"deliberationContributions\": \"K\",\n \"deliberationSessions\": \"K\",\n \"epistemicAudit\": \"K\",\n \"epistemicContracts\": \"K\",\n \"epistemicEdges\": \"K\",\n \"epistemicNodeEmbeddings\": \"K\",\n \"epistemicNodes\": \"K\",\n \"graphAnalysisCache\": \"K\",\n \"graphAnalysisResults\": \"K\",\n \"graphSuggestions\": \"K\",\n \"groupMemberships\": \"L\",\n \"groups\": \"L\",\n \"harnessReplays\": \"K\",\n \"harnessRuns\": \"K\",\n \"idempotencyTokens\": \"K\",\n \"lenses\": \"K\",\n \"lensTopicBindings\": \"K\",\n \"mcpWritePolicy\": \"I\",\n \"memberships\": \"L\",\n \"methodologyPacks\": \"L\",\n \"modelCallLogs\": \"I\",\n \"modelFunctionSlots\": \"I\",\n \"modelRegistry\": \"I\",\n \"modelSlotConfigs\": \"I\",\n \"neo4jSyncQueue\": \"K\",\n \"ontologyDefinitions\": \"K\",\n \"ontologyVersions\": \"K\",\n \"packAssignments\": \"L\",\n \"packDefinitions\": \"L\",\n \"packEntitlements\": \"L\",\n \"packGroupAssignments\": \"L\",\n \"packInstallations\": \"L\",\n \"packVersions\": \"L\",\n \"platformAgentRunPolicyDecisions\": \"K\",\n \"platformAgentRunPromptResolutions\": \"K\",\n \"platformAgentRuns\": \"K\",\n \"platformAgentRunToolCalls\": \"K\",\n \"platformAudienceGrants\": \"I\",\n \"platformAudiences\": \"I\",\n \"platformHarnessShadowAudit\": \"K\",\n \"platformPolicyDecisionLogs\": \"I\",\n \"policyBundles\": \"L\",\n \"policyDecisionLogs\": \"L\",\n \"policySimulations\": \"L\",\n \"principals\": \"L\",\n \"projectGrants\": \"I\",\n \"publicationRules\": \"K\",\n \"questionEvidenceLinks\": \"K\",\n \"rateLimitWindows\": \"L\",\n \"reasoningPermissions\": \"I\",\n \"researchJobs\": \"K\",\n \"schemaEnumConfig\": \"K\",\n \"servicePrincipalKeys\": \"L\",\n \"stakeholderGroups\": \"K\",\n \"systemLogs\": \"K\",\n \"tasks\": \"K\",\n \"tenantApiKeys\": \"I\",\n \"tenantConfig\": \"I\",\n \"tenantDeploymentCredentials\": \"L\",\n \"tenantIntegrations\": \"I\",\n \"tenantMethodologyAssignments\": \"L\",\n \"tenantModelSlotBindings\": \"I\",\n \"tenantPolicies\": \"I\",\n \"tenantProviderSecrets\": \"I\",\n \"tenantProxyGatewayUsage\": \"I\",\n \"tenantProxyTokenMints\": \"I\",\n \"tenants\": \"L\",\n \"tenantSandboxAuditEvents\": \"I\",\n \"tenantSecrets\": \"I\",\n \"toolAcls\": \"I\",\n \"toolCatalog\": \"L\",\n \"toolRegistry\": \"I\",\n \"toolRegistryEntries\": \"L\",\n \"topics\": \"K\",\n \"users\": \"I\",\n \"userSessions\": \"L\",\n \"workflowDefinitions\": \"K\",\n \"workflowPullRequests\": \"K\",\n \"workflowStages\": \"K\",\n \"workspaces\": \"L\",\n \"worktreeBeliefCluster\": \"K\",\n \"worktrees\": \"K\",\n} as const satisfies Readonly<Record<string, TableOwnershipLayer>>;\n\nexport type GeneratedTableName = keyof typeof TABLE_OWNERSHIP;\n\nexport function classifyTableOwnership(\n tableName: string\n): TableOwnershipLayer | null {\n return TABLE_OWNERSHIP[tableName as GeneratedTableName] ?? null;\n}\n\nexport function listTablesByOwnership(\n layer: TableOwnershipLayer\n): readonly string[] {\n return TABLES_BY_LAYER[layer];\n}\n\nexport function summarizeTableOwnership(\n tableNames: readonly string[]\n): Record<TableOwnershipLayer, number> {\n const summary: Record<TableOwnershipLayer, number> = {\n L: 0,\n I: 0,\n K: 0,\n D: 0,\n A: 0,\n };\n for (const name of tableNames) {\n const layer = classifyTableOwnership(name);\n if (layer) {\n summary[layer] += 1;\n }\n }\n return summary;\n}\n\nexport function assertTableOwnershipCoverage(tableNames: readonly string[]): void {\n const missing = tableNames.filter((name) => !classifyTableOwnership(name));\n const tableNameSet = new Set(tableNames);\n const extras = Object.keys(TABLE_OWNERSHIP).filter(\n (name) => !tableNameSet.has(name)\n );\n if (missing.length > 0 || extras.length > 0) {\n const lines: string[] = [];\n if (missing.length > 0) {\n lines.push(`Missing ownership classification: ${missing.join(\", \")}`);\n }\n if (extras.length > 0) {\n lines.push(`Ownership map contains unknown tables: ${extras.join(\", \")}`);\n }\n throw new Error(lines.join(\"\\n\"));\n }\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../../src/generated/tableOwnership.ts"],"names":[],"mappings":";AAIO,IAAM,eAAA,GAAkB;AAAA,EAC7B,GAAA,EAAK;AAAA,IACH,sBAAA;AAAA,IACA,SAAA;AAAA,IACA,UAAA;AAAA,IACA,oBAAA;AAAA,IACA,qCAAA;AAAA,IACA,mCAAA;AAAA,IACA,qCAAA;AAAA,IACA,sBAAA;AAAA,IACA,cAAA;AAAA,IACA,kBAAA;AAAA,IACA,QAAA;AAAA,IACA,aAAA;AAAA,IACA,kBAAA;AAAA,IACA,kBAAA;AAAA,IACA,iBAAA;AAAA,IACA,iBAAA;AAAA,IACA,kBAAA;AAAA,IACA,sBAAA;AAAA,IACA,mBAAA;AAAA,IACA,cAAA;AAAA,IACA,eAAA;AAAA,IACA,oBAAA;AAAA,IACA,mBAAA;AAAA,IACA,YAAA;AAAA,IACA,kBAAA;AAAA,IACA,sBAAA;AAAA,IACA,6BAAA;AAAA,IACA,8BAAA;AAAA,IACA,SAAA;AAAA,IACA,aAAA;AAAA,IACA,qBAAA;AAAA,IACA,cAAA;AAAA,IACA;AAAA,GACF;AAAA,EACA,GAAA,EAAK;AAAA,IACH,QAAA;AAAA,IACA,gBAAA;AAAA,IACA,eAAA;AAAA,IACA,oBAAA;AAAA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AqC,OAAA,CAAQ,IAAA,CAAK,IAAI,CAAC,CAAA,CAAE,CAAA;AAAA,IACtE;AACA,IAAA,IAAI,MAAA,CAAO,SAAS,CAAA,EAAG;AACrB,MAAA,KAAA,CAAM,KAAK,CAAA,uCAAA,EAA0C,MAAA,CAAO,IAAA,CAAK,IAAI,CAAC,CAAA,CAAE,CAAA;AAAA,IAC1E;AACA,IAAA,MAAM,IAAI,KAAA,CAAM,KAAA,CAAM,IAAA,CAAK,IAAI,CAAC,CAAA;AAAA,EAClC;AACF","file":"tableOwnership.js","sourcesContent":["/* GENERATED by scripts/generate-contract-schema.ts. DO NOT EDIT. */\n\nexport type TableOwnershipLayer = \"L\" | \"I\" | \"K\" | \"D\" | \"A\";\n\nexport const TABLES_BY_LAYER = {\n \"L\": [\n \"agentRegistryEntries\",\n \"apiKeys\",\n \"auditLog\",\n \"compatibilityShims\",\n \"controlPlaneTenantModelSlotBindings\",\n \"controlPlaneTenantProviderSecrets\",\n \"controlPlaneTenantProxyGatewayUsage\",\n \"controlPlaneToolAcls\",\n \"cutoverFlags\",\n \"groupMemberships\",\n \"groups\",\n \"memberships\",\n \"methodologyPacks\",\n \"oauthDeviceCodes\",\n \"packAssignments\",\n \"packDefinitions\",\n \"packEntitlements\",\n \"packGroupAssignments\",\n \"packInstallations\",\n \"packVersions\",\n \"policyBundles\",\n \"policyDecisionLogs\",\n \"policySimulations\",\n \"principals\",\n \"rateLimitWindows\",\n \"servicePrincipalKeys\",\n \"tenantDeploymentCredentials\",\n \"tenantMethodologyAssignments\",\n \"tenants\",\n \"toolCatalog\",\n \"toolRegistryEntries\",\n \"userSessions\",\n \"workspaces\"\n ],\n \"I\": [\n \"agents\",\n \"mcpWritePolicy\",\n \"modelCallLogs\",\n \"modelFunctionSlots\",\n \"modelRegistry\",\n \"modelSlotConfigs\",\n \"platformAudienceGrants\",\n \"platformAudiences\",\n \"platformPolicyDecisionLogs\",\n \"projectGrants\",\n \"reasoningPermissions\",\n \"tenantApiKeys\",\n \"tenantConfig\",\n \"tenantIntegrations\",\n \"tenantModelSlotBindings\",\n \"tenantPolicies\",\n \"tenantProviderSecrets\",\n \"tenantProxyGatewayUsage\",\n \"tenantProxyTokenMints\",\n \"tenantSandboxAuditEvents\",\n \"tenantSecrets\",\n \"toolAcls\",\n \"toolRegistry\",\n \"users\"\n ],\n \"K\": [\n \"agentMessages\",\n \"agentSessions\",\n \"autofixJobs\",\n \"backgroundJobRuns\",\n \"backgroundJobSettings\",\n \"beliefConfidence\",\n \"beliefEvidenceLinks\",\n \"beliefHistory\",\n \"beliefScenarios\",\n \"beliefVotes\",\n \"calibrationScores\",\n \"contractEvaluations\",\n \"contradictions\",\n \"crossProjectConnections\",\n \"decisionComputedSummaries\",\n \"decisionEvents\",\n \"decisionParticipants\",\n \"decisionRiskLedger\",\n \"decisionSnapshots\",\n \"deliberationContributions\",\n \"deliberationSessions\",\n \"epistemicAudit\",\n \"epistemicContracts\",\n \"epistemicEdges\",\n \"epistemicNodeEmbeddings\",\n \"epistemicNodes\",\n \"graphAnalysisCache\",\n \"graphAnalysisResults\",\n \"graphSuggestions\",\n \"harnessReplays\",\n \"harnessRuns\",\n \"idempotencyTokens\",\n \"lenses\",\n \"lensTopicBindings\",\n \"neo4jSyncQueue\",\n \"ontologyDefinitions\",\n \"ontologyVersions\",\n \"platformAgentRunPolicyDecisions\",\n \"platformAgentRunPromptResolutions\",\n \"platformAgentRuns\",\n \"platformAgentRunToolCalls\",\n \"platformHarnessShadowAudit\",\n \"publicationRules\",\n \"questionEvidenceLinks\",\n \"researchJobs\",\n \"schemaEnumConfig\",\n \"stakeholderGroups\",\n \"systemLogs\",\n \"tasks\",\n \"topics\",\n \"workflowDefinitions\",\n \"workflowPullRequests\",\n \"workflowStages\",\n \"worktreeBeliefCluster\",\n \"worktrees\"\n ],\n \"D\": [],\n \"A\": []\n} as const;\n\nexport const TABLE_OWNERSHIP = {\n \"agentMessages\": \"K\",\n \"agentRegistryEntries\": \"L\",\n \"agents\": \"I\",\n \"agentSessions\": \"K\",\n \"apiKeys\": \"L\",\n \"auditLog\": \"L\",\n \"autofixJobs\": \"K\",\n \"backgroundJobRuns\": \"K\",\n \"backgroundJobSettings\": \"K\",\n \"beliefConfidence\": \"K\",\n \"beliefEvidenceLinks\": \"K\",\n \"beliefHistory\": \"K\",\n \"beliefScenarios\": \"K\",\n \"beliefVotes\": \"K\",\n \"calibrationScores\": \"K\",\n \"compatibilityShims\": \"L\",\n \"contractEvaluations\": \"K\",\n \"contradictions\": \"K\",\n \"controlPlaneTenantModelSlotBindings\": \"L\",\n \"controlPlaneTenantProviderSecrets\": \"L\",\n \"controlPlaneTenantProxyGatewayUsage\": \"L\",\n \"controlPlaneToolAcls\": \"L\",\n \"crossProjectConnections\": \"K\",\n \"cutoverFlags\": \"L\",\n \"decisionComputedSummaries\": \"K\",\n \"decisionEvents\": \"K\",\n \"decisionParticipants\": \"K\",\n \"decisionRiskLedger\": \"K\",\n \"decisionSnapshots\": \"K\",\n \"deliberationContributions\": \"K\",\n \"deliberationSessions\": \"K\",\n \"epistemicAudit\": \"K\",\n \"epistemicContracts\": \"K\",\n \"epistemicEdges\": \"K\",\n \"epistemicNodeEmbeddings\": \"K\",\n \"epistemicNodes\": \"K\",\n \"graphAnalysisCache\": \"K\",\n \"graphAnalysisResults\": \"K\",\n \"graphSuggestions\": \"K\",\n \"groupMemberships\": \"L\",\n \"groups\": \"L\",\n \"harnessReplays\": \"K\",\n \"harnessRuns\": \"K\",\n \"idempotencyTokens\": \"K\",\n \"lenses\": \"K\",\n \"lensTopicBindings\": \"K\",\n \"mcpWritePolicy\": \"I\",\n \"memberships\": \"L\",\n \"methodologyPacks\": \"L\",\n \"modelCallLogs\": \"I\",\n \"modelFunctionSlots\": \"I\",\n \"modelRegistry\": \"I\",\n \"modelSlotConfigs\": \"I\",\n \"neo4jSyncQueue\": \"K\",\n \"oauthDeviceCodes\": \"L\",\n \"ontologyDefinitions\": \"K\",\n \"ontologyVersions\": \"K\",\n \"packAssignments\": \"L\",\n \"packDefinitions\": \"L\",\n \"packEntitlements\": \"L\",\n \"packGroupAssignments\": \"L\",\n \"packInstallations\": \"L\",\n \"packVersions\": \"L\",\n \"platformAgentRunPolicyDecisions\": \"K\",\n \"platformAgentRunPromptResolutions\": \"K\",\n \"platformAgentRuns\": \"K\",\n \"platformAgentRunToolCalls\": \"K\",\n \"platformAudienceGrants\": \"I\",\n \"platformAudiences\": \"I\",\n \"platformHarnessShadowAudit\": \"K\",\n \"platformPolicyDecisionLogs\": \"I\",\n \"policyBundles\": \"L\",\n \"policyDecisionLogs\": \"L\",\n \"policySimulations\": \"L\",\n \"principals\": \"L\",\n \"projectGrants\": \"I\",\n \"publicationRules\": \"K\",\n \"questionEvidenceLinks\": \"K\",\n \"rateLimitWindows\": \"L\",\n \"reasoningPermissions\": \"I\",\n \"researchJobs\": \"K\",\n \"schemaEnumConfig\": \"K\",\n \"servicePrincipalKeys\": \"L\",\n \"stakeholderGroups\": \"K\",\n \"systemLogs\": \"K\",\n \"tasks\": \"K\",\n \"tenantApiKeys\": \"I\",\n \"tenantConfig\": \"I\",\n \"tenantDeploymentCredentials\": \"L\",\n \"tenantIntegrations\": \"I\",\n \"tenantMethodologyAssignments\": \"L\",\n \"tenantModelSlotBindings\": \"I\",\n \"tenantPolicies\": \"I\",\n \"tenantProviderSecrets\": \"I\",\n \"tenantProxyGatewayUsage\": \"I\",\n \"tenantProxyTokenMints\": \"I\",\n \"tenants\": \"L\",\n \"tenantSandboxAuditEvents\": \"I\",\n \"tenantSecrets\": \"I\",\n \"toolAcls\": \"I\",\n \"toolCatalog\": \"L\",\n \"toolRegistry\": \"I\",\n \"toolRegistryEntries\": \"L\",\n \"topics\": \"K\",\n \"users\": \"I\",\n \"userSessions\": \"L\",\n \"workflowDefinitions\": \"K\",\n \"workflowPullRequests\": \"K\",\n \"workflowStages\": \"K\",\n \"workspaces\": \"L\",\n \"worktreeBeliefCluster\": \"K\",\n \"worktrees\": \"K\",\n} as const satisfies Readonly<Record<string, TableOwnershipLayer>>;\n\nexport type GeneratedTableName = keyof typeof TABLE_OWNERSHIP;\n\nexport function classifyTableOwnership(\n tableName: string\n): TableOwnershipLayer | null {\n return TABLE_OWNERSHIP[tableName as GeneratedTableName] ?? null;\n}\n\nexport function listTablesByOwnership(\n layer: TableOwnershipLayer\n): readonly string[] {\n return TABLES_BY_LAYER[layer];\n}\n\nexport function summarizeTableOwnership(\n tableNames: readonly string[]\n): Record<TableOwnershipLayer, number> {\n const summary: Record<TableOwnershipLayer, number> = {\n L: 0,\n I: 0,\n K: 0,\n D: 0,\n A: 0,\n };\n for (const name of tableNames) {\n const layer = classifyTableOwnership(name);\n if (layer) {\n summary[layer] += 1;\n }\n }\n return summary;\n}\n\nexport function assertTableOwnershipCoverage(tableNames: readonly string[]): void {\n const missing = tableNames.filter((name) => !classifyTableOwnership(name));\n const tableNameSet = new Set(tableNames);\n const extras = Object.keys(TABLE_OWNERSHIP).filter(\n (name) => !tableNameSet.has(name)\n );\n if (missing.length > 0 || extras.length > 0) {\n const lines: string[] = [];\n if (missing.length > 0) {\n lines.push(`Missing ownership classification: ${missing.join(\", \")}`);\n }\n if (extras.length > 0) {\n lines.push(`Ownership map contains unknown tables: ${extras.join(\", \")}`);\n }\n throw new Error(lines.join(\"\\n\"));\n }\n}\n"]}
|
|
@@ -201,7 +201,7 @@
|
|
|
201
201
|
"components": [
|
|
202
202
|
"mc"
|
|
203
203
|
],
|
|
204
|
-
"tableCount":
|
|
204
|
+
"tableCount": 33,
|
|
205
205
|
"tables": [
|
|
206
206
|
"agentRegistryEntries",
|
|
207
207
|
"apiKeys",
|
|
@@ -216,6 +216,7 @@
|
|
|
216
216
|
"groups",
|
|
217
217
|
"memberships",
|
|
218
218
|
"methodologyPacks",
|
|
219
|
+
"oauthDeviceCodes",
|
|
219
220
|
"packAssignments",
|
|
220
221
|
"packDefinitions",
|
|
221
222
|
"packEntitlements",
|
|
@@ -244,7 +245,7 @@
|
|
|
244
245
|
"kernel",
|
|
245
246
|
"developer-pack"
|
|
246
247
|
],
|
|
247
|
-
"tableCount":
|
|
248
|
+
"tableCount": 112,
|
|
248
249
|
"tables": [
|
|
249
250
|
"agentMessages",
|
|
250
251
|
"agentRegistryEntries",
|
|
@@ -300,6 +301,7 @@
|
|
|
300
301
|
"modelRegistry",
|
|
301
302
|
"modelSlotConfigs",
|
|
302
303
|
"neo4jSyncQueue",
|
|
304
|
+
"oauthDeviceCodes",
|
|
303
305
|
"ontologyDefinitions",
|
|
304
306
|
"ontologyVersions",
|
|
305
307
|
"packAssignments",
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
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';
|
|
3
4
|
export { ConvexAdminClient } from './convex-admin.contract.js';
|
|
4
5
|
export { CutoverDomain, CutoverFlagState, GatewayAuthContext, GatewayAuthMode, GatewayEnvironment, GatewayErrorArgs, GatewayScope, GatewaySuccessArgs, KeyLifecycleStatus, PlatformApiErrorCode, requireActorPrincipalId } from './gateway.contract.js';
|
|
5
6
|
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,6 +12,8 @@ export { ComponentTableManifest, ComponentTableManifestSchema } from './schemas/
|
|
|
11
12
|
export { SLOpinionInput, SLOpinionInputSchema } from './schemas/sl-opinion.js';
|
|
12
13
|
import * as zod from 'zod';
|
|
13
14
|
import { z } from 'zod';
|
|
15
|
+
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
|
+
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
17
|
export * from './function-registry/index.js';
|
|
15
18
|
export { t as mcpToolsContract } from './tool-contracts-C92-9ueT.js';
|
|
16
19
|
export { EntityConnectionMatch, EntityMatchCandidate, EntityTypeMatch, OntologyEntityType, rankEntityConnections, rankEntityTypeMatches, scoreEntityConnection, scoreEntityTypeMatch } from './v1/ontologies/v1.js';
|
|
@@ -20,6 +23,7 @@ export { s as sdkToolsContract } from './sdk-tools.contract-S4ia0TTo.js';
|
|
|
20
23
|
export { LexicalRerankOptions, LexicalSignal, LexicalStrategy, PreparedLexicalQuery, bigramTokenize, jaccardSimilarity, prepareLexicalQuery, rankWindowScore, rerankLexicalWindow, scoreLexicalSignal, scoreLexicalSignals, stemToken, tokenOverlapScore, tokenizeSearchText, wordOverlapScore, wordTokenize } from './text-matching.contract.js';
|
|
21
24
|
export { ROOT_TOPIC_ID, TopicDoc, collectTopicNeighborhood } from './v1/topics/v1.js';
|
|
22
25
|
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';
|
|
26
|
+
import './generated/tableOwnership.js';
|
|
23
27
|
import './defineFunction-DO97DKs4.js';
|
|
24
28
|
import './defineTable-CBQ03FXl.js';
|
|
25
29
|
import './idOf-DR8tkhQS.js';
|
|
@@ -431,4 +435,257 @@ declare const InvariantManifestSchema: z.ZodObject<{
|
|
|
431
435
|
}>;
|
|
432
436
|
type InvariantManifest = z.infer<typeof InvariantManifestSchema>;
|
|
433
437
|
|
|
434
|
-
|
|
438
|
+
type TenantClientManifest = {
|
|
439
|
+
readonly manifestVersion: "1.0.0";
|
|
440
|
+
readonly contractVersion: typeof TENANT_CLIENT_CONTRACT_VERSION;
|
|
441
|
+
readonly auth: {
|
|
442
|
+
readonly modes: typeof TENANT_CLIENT_AUTH_MODES;
|
|
443
|
+
readonly principalTypes: typeof TENANT_CLIENT_PRINCIPAL_TYPES;
|
|
444
|
+
readonly requiredContextFields: typeof TENANT_CLIENT_REQUIRED_CONTEXT_FIELDS;
|
|
445
|
+
readonly optionalContextFields: typeof TENANT_CLIENT_OPTIONAL_CONTEXT_FIELDS;
|
|
446
|
+
};
|
|
447
|
+
readonly installToken: {
|
|
448
|
+
readonly env: typeof TENANT_CLIENT_INSTALL_TOKEN_ENV;
|
|
449
|
+
readonly infisicalPath: typeof TENANT_CLIENT_INSTALL_TOKEN_INFISICAL_PATH;
|
|
450
|
+
readonly forbiddenInfisicalPaths: typeof TENANT_CLIENT_FORBIDDEN_INSTALL_TOKEN_INFISICAL_PATHS;
|
|
451
|
+
readonly forbiddenSecretEnv: typeof TENANT_CLIENT_FORBIDDEN_SECRET_ENV;
|
|
452
|
+
};
|
|
453
|
+
readonly packages: {
|
|
454
|
+
readonly installable: typeof TENANT_CLIENT_INSTALLABLE_PACKAGES;
|
|
455
|
+
readonly directImports: typeof TENANT_CLIENT_PUBLIC_IMPORTS;
|
|
456
|
+
readonly componentConfigImports: typeof TENANT_CLIENT_COMPONENT_CONFIG_IMPORTS;
|
|
457
|
+
};
|
|
458
|
+
readonly sdk: {
|
|
459
|
+
readonly requiredNamespaces: typeof TENANT_CLIENT_REQUIRED_SDK_NAMESPACES;
|
|
460
|
+
};
|
|
461
|
+
readonly capabilities: typeof TENANT_CLIENT_CAPABILITIES;
|
|
462
|
+
readonly isolationRules: typeof TENANT_CLIENT_ISOLATION_RULES;
|
|
463
|
+
readonly forbiddenImportPatterns: typeof TENANT_CLIENT_FORBIDDEN_IMPORT_PATTERNS;
|
|
464
|
+
};
|
|
465
|
+
declare const TENANT_CLIENT_MANIFEST: {
|
|
466
|
+
readonly manifestVersion: "1.0.0";
|
|
467
|
+
readonly contractVersion: "2026-04-27";
|
|
468
|
+
readonly auth: {
|
|
469
|
+
readonly modes: readonly ["interactive_user", "service_principal", "tenant_api_key", "session_token"];
|
|
470
|
+
readonly principalTypes: readonly ["human", "service", "agent"];
|
|
471
|
+
readonly requiredContextFields: readonly ["tenantId", "workspaceId", "principalId", "authMode", "scopes"];
|
|
472
|
+
readonly optionalContextFields: readonly ["principalType", "roles", "sessionId", "delegationChain"];
|
|
473
|
+
};
|
|
474
|
+
readonly installToken: {
|
|
475
|
+
readonly env: "INSTALL_LUCERN_NPM";
|
|
476
|
+
readonly infisicalPath: "tenants/shared";
|
|
477
|
+
readonly forbiddenInfisicalPaths: readonly ["/platform/publish"];
|
|
478
|
+
readonly forbiddenSecretEnv: readonly ["NPM_TOKEN"];
|
|
479
|
+
};
|
|
480
|
+
readonly packages: {
|
|
481
|
+
readonly installable: readonly [{
|
|
482
|
+
readonly packageName: "@lucern/access-control";
|
|
483
|
+
readonly role: "sdk_dependency";
|
|
484
|
+
readonly directTenantImport: false;
|
|
485
|
+
}, {
|
|
486
|
+
readonly packageName: "@lucern/agent";
|
|
487
|
+
readonly role: "platform_runtime";
|
|
488
|
+
readonly directTenantImport: false;
|
|
489
|
+
}, {
|
|
490
|
+
readonly packageName: "@lucern/auth";
|
|
491
|
+
readonly role: "sdk_dependency";
|
|
492
|
+
readonly directTenantImport: false;
|
|
493
|
+
}, {
|
|
494
|
+
readonly packageName: "@lucern/cli";
|
|
495
|
+
readonly role: "developer_tool";
|
|
496
|
+
readonly directTenantImport: false;
|
|
497
|
+
}, {
|
|
498
|
+
readonly packageName: "@lucern/client-core";
|
|
499
|
+
readonly role: "sdk_dependency";
|
|
500
|
+
readonly directTenantImport: false;
|
|
501
|
+
}, {
|
|
502
|
+
readonly packageName: "@lucern/confidence";
|
|
503
|
+
readonly role: "sdk_dependency";
|
|
504
|
+
readonly directTenantImport: false;
|
|
505
|
+
}, {
|
|
506
|
+
readonly packageName: "@lucern/config";
|
|
507
|
+
readonly role: "configuration";
|
|
508
|
+
readonly directTenantImport: false;
|
|
509
|
+
}, {
|
|
510
|
+
readonly packageName: "@lucern/contracts";
|
|
511
|
+
readonly role: "contract_entrypoint";
|
|
512
|
+
readonly directTenantImport: true;
|
|
513
|
+
}, {
|
|
514
|
+
readonly packageName: "@lucern/control-plane";
|
|
515
|
+
readonly role: "platform_runtime";
|
|
516
|
+
readonly directTenantImport: false;
|
|
517
|
+
}, {
|
|
518
|
+
readonly packageName: "@lucern/developer-kit";
|
|
519
|
+
readonly role: "developer_tool";
|
|
520
|
+
readonly directTenantImport: false;
|
|
521
|
+
}, {
|
|
522
|
+
readonly packageName: "@lucern/events";
|
|
523
|
+
readonly role: "sdk_dependency";
|
|
524
|
+
readonly directTenantImport: false;
|
|
525
|
+
}, {
|
|
526
|
+
readonly packageName: "@lucern/graph-primitives";
|
|
527
|
+
readonly role: "sdk_dependency";
|
|
528
|
+
readonly directTenantImport: false;
|
|
529
|
+
}, {
|
|
530
|
+
readonly packageName: "@lucern/identity";
|
|
531
|
+
readonly role: "component_runtime";
|
|
532
|
+
readonly directTenantImport: false;
|
|
533
|
+
}, {
|
|
534
|
+
readonly packageName: "@lucern/mcp";
|
|
535
|
+
readonly role: "runtime_entrypoint";
|
|
536
|
+
readonly directTenantImport: true;
|
|
537
|
+
}, {
|
|
538
|
+
readonly packageName: "@lucern/pack-host";
|
|
539
|
+
readonly role: "platform_runtime";
|
|
540
|
+
readonly directTenantImport: false;
|
|
541
|
+
}, {
|
|
542
|
+
readonly packageName: "@lucern/pack-installer";
|
|
543
|
+
readonly role: "developer_tool";
|
|
544
|
+
readonly directTenantImport: false;
|
|
545
|
+
}, {
|
|
546
|
+
readonly packageName: "@lucern/proof-compiler";
|
|
547
|
+
readonly role: "developer_tool";
|
|
548
|
+
readonly directTenantImport: false;
|
|
549
|
+
}, {
|
|
550
|
+
readonly packageName: "@lucern/react";
|
|
551
|
+
readonly role: "runtime_entrypoint";
|
|
552
|
+
readonly directTenantImport: true;
|
|
553
|
+
}, {
|
|
554
|
+
readonly packageName: "@lucern/reasoning-kernel";
|
|
555
|
+
readonly role: "component_runtime";
|
|
556
|
+
readonly directTenantImport: false;
|
|
557
|
+
}, {
|
|
558
|
+
readonly packageName: "@lucern/sdk";
|
|
559
|
+
readonly role: "runtime_entrypoint";
|
|
560
|
+
readonly directTenantImport: true;
|
|
561
|
+
}, {
|
|
562
|
+
readonly packageName: "@lucern/server-core";
|
|
563
|
+
readonly role: "platform_runtime";
|
|
564
|
+
readonly directTenantImport: false;
|
|
565
|
+
}, {
|
|
566
|
+
readonly packageName: "@lucern/testing";
|
|
567
|
+
readonly role: "test_support";
|
|
568
|
+
readonly directTenantImport: false;
|
|
569
|
+
}, {
|
|
570
|
+
readonly packageName: "@lucern/types";
|
|
571
|
+
readonly role: "contract_entrypoint";
|
|
572
|
+
readonly directTenantImport: true;
|
|
573
|
+
}];
|
|
574
|
+
readonly directImports: readonly [{
|
|
575
|
+
readonly packageName: "@lucern/sdk";
|
|
576
|
+
readonly surface: "runtime";
|
|
577
|
+
readonly subpaths: "published_exports";
|
|
578
|
+
readonly description: "TypeScript SDK runtime and generated operation namespaces.";
|
|
579
|
+
}, {
|
|
580
|
+
readonly packageName: "@lucern/react";
|
|
581
|
+
readonly surface: "runtime";
|
|
582
|
+
readonly subpaths: "published_exports";
|
|
583
|
+
readonly description: "React bindings for tenant-owned UI applications.";
|
|
584
|
+
}, {
|
|
585
|
+
readonly packageName: "@lucern/mcp";
|
|
586
|
+
readonly surface: "runtime";
|
|
587
|
+
readonly subpaths: "published_exports";
|
|
588
|
+
readonly description: "MCP client/server entry points and hosted route helpers.";
|
|
589
|
+
}, {
|
|
590
|
+
readonly packageName: "@lucern/contracts";
|
|
591
|
+
readonly surface: "contract";
|
|
592
|
+
readonly subpaths: "published_exports";
|
|
593
|
+
readonly description: "Published type and manifest contracts.";
|
|
594
|
+
}, {
|
|
595
|
+
readonly packageName: "@lucern/types";
|
|
596
|
+
readonly surface: "contract";
|
|
597
|
+
readonly subpaths: "published_exports";
|
|
598
|
+
readonly description: "Published type-only helpers for tenant integration code.";
|
|
599
|
+
}];
|
|
600
|
+
readonly componentConfigImports: readonly [{
|
|
601
|
+
readonly packageName: "@lucern/identity";
|
|
602
|
+
readonly importPath: "@lucern/identity/convex.config";
|
|
603
|
+
readonly surface: "component_config";
|
|
604
|
+
readonly description: "Convex component binding config for tenant deployments that install Lucern identity.";
|
|
605
|
+
}, {
|
|
606
|
+
readonly packageName: "@lucern/reasoning-kernel";
|
|
607
|
+
readonly importPath: "@lucern/reasoning-kernel/convex.config";
|
|
608
|
+
readonly surface: "component_config";
|
|
609
|
+
readonly description: "Convex component binding config for tenant deployments that install the Lucern reasoning kernel.";
|
|
610
|
+
}, {
|
|
611
|
+
readonly packageName: "@lucern/reasoning-kernel";
|
|
612
|
+
readonly importPath: "@lucern/reasoning-kernel/runtime.config";
|
|
613
|
+
readonly surface: "component_config";
|
|
614
|
+
readonly description: "Runtime config alias for tenant deployments that install the Lucern reasoning kernel.";
|
|
615
|
+
}];
|
|
616
|
+
};
|
|
617
|
+
readonly sdk: {
|
|
618
|
+
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"];
|
|
619
|
+
};
|
|
620
|
+
readonly capabilities: readonly [{
|
|
621
|
+
readonly id: "identity.bootstrap_session";
|
|
622
|
+
readonly description: "Start a scoped Lucern session for a tenant principal.";
|
|
623
|
+
readonly surfaces: readonly ["@lucern/sdk", "@lucern/mcp"];
|
|
624
|
+
readonly requiredContextFields: readonly ["tenantId", "workspaceId", "principalId", "authMode", "scopes"];
|
|
625
|
+
}, {
|
|
626
|
+
readonly id: "reasoning.context.compile";
|
|
627
|
+
readonly description: "Compile tenant and workspace scoped reasoning context.";
|
|
628
|
+
readonly surfaces: readonly ["@lucern/sdk", "@lucern/react", "@lucern/mcp"];
|
|
629
|
+
readonly requiredContextFields: readonly ["tenantId", "workspaceId", "principalId", "authMode", "scopes"];
|
|
630
|
+
}, {
|
|
631
|
+
readonly id: "reasoning.graph.read";
|
|
632
|
+
readonly description: "Read beliefs, evidence, questions, topics, and lineage.";
|
|
633
|
+
readonly surfaces: readonly ["@lucern/sdk", "@lucern/react", "@lucern/mcp"];
|
|
634
|
+
readonly requiredContextFields: readonly ["tenantId", "workspaceId", "principalId", "authMode", "scopes"];
|
|
635
|
+
}, {
|
|
636
|
+
readonly id: "reasoning.graph.write";
|
|
637
|
+
readonly description: "Create and update graph objects through authorized APIs.";
|
|
638
|
+
readonly surfaces: readonly ["@lucern/sdk", "@lucern/mcp"];
|
|
639
|
+
readonly requiredContextFields: readonly ["tenantId", "workspaceId", "principalId", "authMode", "scopes"];
|
|
640
|
+
}, {
|
|
641
|
+
readonly id: "workflow.worktree_lifecycle";
|
|
642
|
+
readonly description: "Create, review, merge, and close scoped worktrees.";
|
|
643
|
+
readonly surfaces: readonly ["@lucern/sdk", "@lucern/react", "@lucern/mcp"];
|
|
644
|
+
readonly requiredContextFields: readonly ["tenantId", "workspaceId", "principalId", "authMode", "scopes"];
|
|
645
|
+
}];
|
|
646
|
+
readonly isolationRules: readonly [{
|
|
647
|
+
readonly id: "tenant_workspace_scope_required";
|
|
648
|
+
readonly description: "Runtime operations must resolve both tenantId and workspaceId before reaching Lucern reasoning state.";
|
|
649
|
+
}, {
|
|
650
|
+
readonly id: "principal_audit_required";
|
|
651
|
+
readonly description: "Runtime operations must carry principalId, authMode, and scopes for audit attribution.";
|
|
652
|
+
}, {
|
|
653
|
+
readonly id: "no_private_lucern_imports";
|
|
654
|
+
readonly description: "Tenant code must not import Lucern source, Convex internals, generated adapters, or unpublished package internals.";
|
|
655
|
+
}];
|
|
656
|
+
readonly forbiddenImportPatterns: readonly [{
|
|
657
|
+
readonly id: "deep_src_import";
|
|
658
|
+
readonly pattern: "^@lucern/[^/]+/src(?:/|$)";
|
|
659
|
+
readonly description: "Published packages must not be bypassed through src paths.";
|
|
660
|
+
}, {
|
|
661
|
+
readonly id: "deep_dist_import";
|
|
662
|
+
readonly pattern: "^@lucern/[^/]+/dist(?:/|$)";
|
|
663
|
+
readonly description: "Published package exports must be used instead of dist file paths.";
|
|
664
|
+
}, {
|
|
665
|
+
readonly id: "generated_adapter_import";
|
|
666
|
+
readonly pattern: "^@lucern/[^/]+/(?:adapters/)?_generated(?:/|$)";
|
|
667
|
+
readonly description: "Generated Lucern adapters are internal deployment artifacts.";
|
|
668
|
+
}, {
|
|
669
|
+
readonly id: "private_runtime_import";
|
|
670
|
+
readonly pattern: "^@lucern/[^/]+/(?:internal|private)(?:/|$)";
|
|
671
|
+
readonly description: "Internal and private package subpaths are not public SDK API.";
|
|
672
|
+
}, {
|
|
673
|
+
readonly id: "workspace_source_import";
|
|
674
|
+
readonly pattern: "^(?:packages|modules|services|lucern|apps)/(?:.+/)?src(?:/|$)";
|
|
675
|
+
readonly description: "Tenant clients must not import source files from the Lucern monorepo.";
|
|
676
|
+
}, {
|
|
677
|
+
readonly id: "root_alias_lucern_import";
|
|
678
|
+
readonly pattern: "^@/(?:lucern|packages|modules|services|apps)(?:/|$)";
|
|
679
|
+
readonly description: "Tenant clients must not depend on Lucern repo-local path aliases.";
|
|
680
|
+
}, {
|
|
681
|
+
readonly id: "relative_lucern_source_import";
|
|
682
|
+
readonly pattern: "^\\.\\.?/(?:.+/)?(?:packages|modules|services|lucern|apps)(?:/|$)";
|
|
683
|
+
readonly description: "Tenant clients must not reach back into Lucern source through relative paths.";
|
|
684
|
+
}, {
|
|
685
|
+
readonly id: "monorepo_path_import";
|
|
686
|
+
readonly pattern: "lucern-repo";
|
|
687
|
+
readonly description: "Absolute imports that name the Lucern repository are not portable tenant code.";
|
|
688
|
+
}];
|
|
689
|
+
};
|
|
690
|
+
|
|
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 };
|