@lucern/mcp 0.3.0-alpha.9 → 1.0.1
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/README.md +7 -1
- package/dist/cli.js +22140 -14942
- package/dist/cli.js.map +1 -1
- package/dist/gateway.d.ts +62 -1
- package/dist/gateway.js +17403 -10591
- package/dist/gateway.js.map +1 -1
- package/dist/hosted-route.js +15120 -7918
- package/dist/hosted-route.js.map +1 -1
- package/dist/index.js +23139 -15942
- package/dist/index.js.map +1 -1
- package/dist/runtime.js +11844 -8504
- package/dist/runtime.js.map +1 -1
- package/package.json +6 -9
package/dist/gateway.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { GatewayAuthContext } from '@lucern/contracts';
|
|
2
|
+
import { ConvexHttpClient } from 'convex/browser';
|
|
3
|
+
import * as permitio from 'permitio';
|
|
2
4
|
|
|
3
5
|
declare function handleBeliefCreate(args: {
|
|
4
6
|
authContext: GatewayAuthContext;
|
|
@@ -494,6 +496,37 @@ declare function handleIdentityWhoami(args: {
|
|
|
494
496
|
policyTraceId: string;
|
|
495
497
|
}): Promise<Response>;
|
|
496
498
|
|
|
499
|
+
declare function handleMcpSessionBootstrap(args: {
|
|
500
|
+
authContext: GatewayAuthContext;
|
|
501
|
+
correlationId: string;
|
|
502
|
+
policyTraceId: string;
|
|
503
|
+
body: unknown;
|
|
504
|
+
}): Promise<Response>;
|
|
505
|
+
declare function handleMcpWritePolicyCheck(args: {
|
|
506
|
+
authContext: GatewayAuthContext;
|
|
507
|
+
correlationId: string;
|
|
508
|
+
policyTraceId: string;
|
|
509
|
+
body: unknown;
|
|
510
|
+
}): Promise<Response>;
|
|
511
|
+
declare function handleMcpBeginBuildSession(args: {
|
|
512
|
+
authContext: GatewayAuthContext;
|
|
513
|
+
correlationId: string;
|
|
514
|
+
policyTraceId: string;
|
|
515
|
+
body: unknown;
|
|
516
|
+
}): Promise<Response>;
|
|
517
|
+
declare function handleMcpEvaluateEngineeringContract(args: {
|
|
518
|
+
authContext: GatewayAuthContext;
|
|
519
|
+
correlationId: string;
|
|
520
|
+
policyTraceId: string;
|
|
521
|
+
body: unknown;
|
|
522
|
+
}): Promise<Response>;
|
|
523
|
+
declare function handleMcpEvaluateResearchContract(args: {
|
|
524
|
+
authContext: GatewayAuthContext;
|
|
525
|
+
correlationId: string;
|
|
526
|
+
policyTraceId: string;
|
|
527
|
+
body: unknown;
|
|
528
|
+
}): Promise<Response>;
|
|
529
|
+
|
|
497
530
|
declare function handleOntologyList(args: {
|
|
498
531
|
authContext: GatewayAuthContext;
|
|
499
532
|
correlationId: string;
|
|
@@ -524,6 +557,34 @@ declare function handleOntologyMatch(args: {
|
|
|
524
557
|
body: unknown;
|
|
525
558
|
}): Promise<Response>;
|
|
526
559
|
|
|
560
|
+
type PermitWebhookEnv = Record<string, string | undefined>;
|
|
561
|
+
type PermitProjectionClient = Pick<ConvexHttpClient, "action">;
|
|
562
|
+
declare function isPermitWebhookAuthorized(args: {
|
|
563
|
+
headers: Headers;
|
|
564
|
+
env?: PermitWebhookEnv;
|
|
565
|
+
}): boolean;
|
|
566
|
+
declare function extractPermitWebhookTenantKeys(body: unknown): string[];
|
|
567
|
+
declare function hasPermitWebhookTenantScope(body: unknown): boolean;
|
|
568
|
+
declare function handlePermitProjectionWebhook(args: {
|
|
569
|
+
request: Request;
|
|
570
|
+
body: unknown;
|
|
571
|
+
correlationId: string;
|
|
572
|
+
policyTraceId: string;
|
|
573
|
+
convexClient?: PermitProjectionClient;
|
|
574
|
+
}): Promise<Response>;
|
|
575
|
+
|
|
576
|
+
type ClerkWebhookClient = Pick<ConvexHttpClient, "query" | "mutation">;
|
|
577
|
+
|
|
578
|
+
declare const __testOnly: {
|
|
579
|
+
setPermitClientFactory: (factory: (() => permitio.Permit) | null) => void;
|
|
580
|
+
};
|
|
581
|
+
declare function handleClerkWebhook(args: {
|
|
582
|
+
request: Request;
|
|
583
|
+
correlationId: string;
|
|
584
|
+
policyTraceId: string;
|
|
585
|
+
convexClient?: ClerkWebhookClient;
|
|
586
|
+
}): Promise<Response>;
|
|
587
|
+
|
|
527
588
|
declare function handleQuestionCreate(args: {
|
|
528
589
|
authContext: GatewayAuthContext;
|
|
529
590
|
correlationId: string;
|
|
@@ -901,4 +962,4 @@ declare function handleWorktreeBulkCreate(args: {
|
|
|
901
962
|
body: unknown;
|
|
902
963
|
}): Promise<Response>;
|
|
903
964
|
|
|
904
|
-
export { handleBeliefArchive, handleBeliefBatchUpdateCriticality, handleBeliefBisect, handleBeliefConfidenceHistory, handleBeliefCreate, handleBeliefCreateContract, handleBeliefFork, handleBeliefGet, handleBeliefLineage, handleBeliefLink, handleBeliefList, handleBeliefReassignTopic, handleBeliefRefine, handleBeliefRelationships, handleBeliefUnlinkEvidence, handleBeliefUpdateConfidence, handleBeliefUpdateCriticality, handleBeliefUpdateRationale, handleBeliefUpdateStatus, handleContradictionFlag, handleContradictionGet, handleContradictionList, handleEdgeBatchCreate, handleEdgeCreate, handleEdgeDelete, handleEdgeList, handleEdgeRemove, handleEdgeTraverse, handleEdgeUpdate, handleEdgesRemoveBetween, handleEventsList, handleEventsReplay, handleEvidenceClassify, handleEvidenceClassifyBatch, handleEvidenceCreate, handleEvidenceFlagIncorrect, handleEvidenceGet, handleEvidenceLink, handleEvidenceList, handleEvidenceRemove, handleEvidenceSearch, handleEvidenceUpdate, handleEvidenceUpdateStatus, handleEvidenceUpdateVerificationStatus, handleGraphAnalysisCompute, handleGraphAnalysisLatest, handleGraphAnalysisList, handleGraphAnalysisListChanges, handleGraphAnalysisListSuggestions, handleGraphAnalysisSave, handleGraphAnalysisSaveSuggestions, handleGraphAnalysisUpdateSuggestion, handleGraphAnalyze, handleGraphBias, handleGraphEdgeList, handleGraphFalsify, handleGraphGaps, handleGraphNeighborhood, handleGraphNodeList, handleGraphRecommendationGet, handleGraphRecommendationStatus, handleGraphRecommendationsList, handleGraphTraverse, handleIdentityWhoami, handleOntologyBind, handleOntologyGet, handleOntologyList, handleOntologyMatch, handleOrgGraphByProvenance, handleOrgGraphNodeGet, handleOrgGraphPublished, handleOrgGraphSearch, handleQuestionAdd, handleQuestionAdvanceToConviction, handleQuestionAnswer, handleQuestionArchive, handleQuestionBatchCreate, handleQuestionCreate, handleQuestionDelete, handleQuestionFinalizeConviction, handleQuestionGet, handleQuestionGetAnswer, handleQuestionList, handleQuestionRefine, handleQuestionUpdate, handleQuestionUpdateConviction, handleQuestionUpdatePriority, handleQuestionUpdateStatus, handleSearchResources, handleSourceGet, handleSourceUpsert, handleTaskComplete, handleTaskCreate, handleTaskList, handleTaskUpdate, handleTopicBulkCreate, handleTopicCoverage, handleTopicCreate, handleTopicGet, handleTopicList, handleTopicRemove, handleTopicTree, handleTopicUpdate, handleWebhookCreate, handleWebhookDelete, handleWebhookDeliveries, handleWebhookGet, handleWebhookHealth, handleWebhookList, handleWebhookTest, handleWebhookUpdate, handleWorktreeActivate, handleWorktreeAdvancePhase, handleWorktreeBulkCreate, handleWorktreeComplete, handleWorktreeCreate, handleWorktreeList, handleWorktreeListAll, handleWorktreeListCampaigns, handleWorktreeMerge, handleWorktreePatchState, handleWorktreeSetPhase, handleWorktreeUpdate, handleWorktreeUpdateTargets };
|
|
965
|
+
export { __testOnly, extractPermitWebhookTenantKeys, handleBeliefArchive, handleBeliefBatchUpdateCriticality, handleBeliefBisect, handleBeliefConfidenceHistory, handleBeliefCreate, handleBeliefCreateContract, handleBeliefFork, handleBeliefGet, handleBeliefLineage, handleBeliefLink, handleBeliefList, handleBeliefReassignTopic, handleBeliefRefine, handleBeliefRelationships, handleBeliefUnlinkEvidence, handleBeliefUpdateConfidence, handleBeliefUpdateCriticality, handleBeliefUpdateRationale, handleBeliefUpdateStatus, handleClerkWebhook, handleContradictionFlag, handleContradictionGet, handleContradictionList, handleEdgeBatchCreate, handleEdgeCreate, handleEdgeDelete, handleEdgeList, handleEdgeRemove, handleEdgeTraverse, handleEdgeUpdate, handleEdgesRemoveBetween, handleEventsList, handleEventsReplay, handleEvidenceClassify, handleEvidenceClassifyBatch, handleEvidenceCreate, handleEvidenceFlagIncorrect, handleEvidenceGet, handleEvidenceLink, handleEvidenceList, handleEvidenceRemove, handleEvidenceSearch, handleEvidenceUpdate, handleEvidenceUpdateStatus, handleEvidenceUpdateVerificationStatus, handleGraphAnalysisCompute, handleGraphAnalysisLatest, handleGraphAnalysisList, handleGraphAnalysisListChanges, handleGraphAnalysisListSuggestions, handleGraphAnalysisSave, handleGraphAnalysisSaveSuggestions, handleGraphAnalysisUpdateSuggestion, handleGraphAnalyze, handleGraphBias, handleGraphEdgeList, handleGraphFalsify, handleGraphGaps, handleGraphNeighborhood, handleGraphNodeList, handleGraphRecommendationGet, handleGraphRecommendationStatus, handleGraphRecommendationsList, handleGraphTraverse, handleIdentityWhoami, handleMcpBeginBuildSession, handleMcpEvaluateEngineeringContract, handleMcpEvaluateResearchContract, handleMcpSessionBootstrap, handleMcpWritePolicyCheck, handleOntologyBind, handleOntologyGet, handleOntologyList, handleOntologyMatch, handleOrgGraphByProvenance, handleOrgGraphNodeGet, handleOrgGraphPublished, handleOrgGraphSearch, handlePermitProjectionWebhook, handleQuestionAdd, handleQuestionAdvanceToConviction, handleQuestionAnswer, handleQuestionArchive, handleQuestionBatchCreate, handleQuestionCreate, handleQuestionDelete, handleQuestionFinalizeConviction, handleQuestionGet, handleQuestionGetAnswer, handleQuestionList, handleQuestionRefine, handleQuestionUpdate, handleQuestionUpdateConviction, handleQuestionUpdatePriority, handleQuestionUpdateStatus, handleSearchResources, handleSourceGet, handleSourceUpsert, handleTaskComplete, handleTaskCreate, handleTaskList, handleTaskUpdate, handleTopicBulkCreate, handleTopicCoverage, handleTopicCreate, handleTopicGet, handleTopicList, handleTopicRemove, handleTopicTree, handleTopicUpdate, handleWebhookCreate, handleWebhookDelete, handleWebhookDeliveries, handleWebhookGet, handleWebhookHealth, handleWebhookList, handleWebhookTest, handleWebhookUpdate, handleWorktreeActivate, handleWorktreeAdvancePhase, handleWorktreeBulkCreate, handleWorktreeComplete, handleWorktreeCreate, handleWorktreeList, handleWorktreeListAll, handleWorktreeListCampaigns, handleWorktreeMerge, handleWorktreePatchState, handleWorktreeSetPhase, handleWorktreeUpdate, handleWorktreeUpdateTargets, hasPermitWebhookTenantScope, isPermitWebhookAuthorized };
|