@lucern/sdk 0.3.0-alpha.8 → 1.0.0
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/CHANGELOG.md +8 -0
- package/README.md +60 -1
- package/dist/accessControl.d.ts +79 -0
- package/dist/accessControl.js +1270 -0
- package/dist/accessControl.js.map +1 -0
- package/dist/adminClient.js +19 -1
- package/dist/adminClient.js.map +1 -1
- package/dist/answersClient.js +19 -1
- package/dist/answersClient.js.map +1 -1
- package/dist/audiencesClient.js +19 -1
- package/dist/audiencesClient.js.map +1 -1
- package/dist/auditClient.js +19 -1
- package/dist/auditClient.js.map +1 -1
- package/dist/authContext.d.ts +2 -2
- package/dist/authContext.js.map +1 -1
- package/dist/beliefs/index.d.ts +3 -0
- package/dist/beliefs/index.js +1212 -667
- package/dist/beliefs/index.js.map +1 -1
- package/dist/beliefsClient.js +19 -1
- package/dist/beliefsClient.js.map +1 -1
- package/dist/client.d.ts +147 -68
- package/dist/client.js +1212 -667
- package/dist/client.js.map +1 -1
- package/dist/clientHelpers.d.ts +21 -2
- package/dist/clientHelpers.js +16 -1
- package/dist/clientHelpers.js.map +1 -1
- package/dist/contextClient.js +19 -1
- package/dist/contextClient.js.map +1 -1
- package/dist/contracts/api-enums.contract.d.ts +1 -1
- package/dist/contracts/api-enums.contract.js +6 -1
- package/dist/contracts/api-enums.contract.js.map +1 -1
- package/dist/contracts/auth-session.contract.d.ts +1 -1
- package/dist/contracts/auth-session.contract.js +14 -2
- package/dist/contracts/auth-session.contract.js.map +1 -1
- package/dist/contracts/index.js +26 -3
- package/dist/contracts/index.js.map +1 -1
- package/dist/contracts/mcpTools.js +6 -0
- package/dist/contracts/mcpTools.js.map +1 -1
- package/dist/contradictions/index.d.ts +3 -0
- package/dist/contradictions/index.js +1212 -667
- package/dist/contradictions/index.js.map +1 -1
- package/dist/control-plane.d.ts +69 -0
- package/dist/control-plane.js +674 -0
- package/dist/control-plane.js.map +1 -0
- package/dist/coreClient.d.ts +17 -1
- package/dist/coreClient.js +19 -1
- package/dist/coreClient.js.map +1 -1
- package/dist/decisions/index.d.ts +3 -0
- package/dist/decisions/index.js +1212 -667
- package/dist/decisions/index.js.map +1 -1
- package/dist/decisionsClient.js +19 -1
- package/dist/decisionsClient.js.map +1 -1
- package/dist/edges/index.d.ts +27 -84
- package/dist/edges/index.js +1212 -667
- package/dist/edges/index.js.map +1 -1
- package/dist/embeddingsClient.js +19 -1
- package/dist/embeddingsClient.js.map +1 -1
- package/dist/eventingClient.js +19 -1
- package/dist/eventingClient.js.map +1 -1
- package/dist/eventsCore.js +19 -1
- package/dist/eventsCore.js.map +1 -1
- package/dist/evidence/index.d.ts +3 -0
- package/dist/evidence/index.js +1212 -667
- package/dist/evidence/index.js.map +1 -1
- package/dist/evidenceClient.js +19 -1
- package/dist/evidenceClient.js.map +1 -1
- package/dist/functionSurface.d.ts +16 -1
- package/dist/functionSurface.js +95 -2
- package/dist/functionSurface.js.map +1 -1
- package/dist/functionSurfaceClient.js +95 -2
- package/dist/functionSurfaceClient.js.map +1 -1
- package/dist/gatewayFacades.d.ts +29 -2
- package/dist/gatewayFacades.js +156 -8
- package/dist/gatewayFacades.js.map +1 -1
- package/dist/graphAnalysisClient.js +19 -1
- package/dist/graphAnalysisClient.js.map +1 -1
- package/dist/graphClient.d.ts +1 -0
- package/dist/graphClient.js +19 -1
- package/dist/graphClient.js.map +1 -1
- package/dist/graphIntel.d.ts +1 -0
- package/dist/graphRecommendationsClient.js +19 -1
- package/dist/graphRecommendationsClient.js.map +1 -1
- package/dist/graphStateClassifierClient.js +19 -1
- package/dist/graphStateClassifierClient.js.map +1 -1
- package/dist/harnessClient.js +19 -1
- package/dist/harnessClient.js.map +1 -1
- package/dist/identityClient.d.ts +19 -1
- package/dist/identityClient.js +152 -6
- package/dist/identityClient.js.map +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +1428 -799
- package/dist/index.js.map +1 -1
- package/dist/infisicalRuntime.d.ts +1 -0
- package/dist/infisicalRuntime.js +64 -32
- package/dist/infisicalRuntime.js.map +1 -1
- package/dist/jobsClient.js +19 -1
- package/dist/jobsClient.js.map +1 -1
- package/dist/learningClient.js +19 -1
- package/dist/learningClient.js.map +1 -1
- package/dist/lenses/index.d.ts +3 -0
- package/dist/lenses/index.js +1212 -667
- package/dist/lenses/index.js.map +1 -1
- package/dist/mcpClient.js +21 -2
- package/dist/mcpClient.js.map +1 -1
- package/dist/modelRuntimeClient.js +19 -1
- package/dist/modelRuntimeClient.js.map +1 -1
- package/dist/nodes/index.d.ts +22 -15
- package/dist/nodes/index.js +1212 -667
- package/dist/nodes/index.js.map +1 -1
- package/dist/ontologies/index.d.ts +3 -0
- package/dist/ontologies/index.js +1212 -667
- package/dist/ontologies/index.js.map +1 -1
- package/dist/ontologyClient.js +19 -1
- package/dist/ontologyClient.js.map +1 -1
- package/dist/ontologyLinksClient.js +19 -1
- package/dist/ontologyLinksClient.js.map +1 -1
- package/dist/orgGraphSearchClient.js +19 -1
- package/dist/orgGraphSearchClient.js.map +1 -1
- package/dist/packsClient.js +19 -1
- package/dist/packsClient.js.map +1 -1
- package/dist/policyClient.js +19 -1
- package/dist/policyClient.js.map +1 -1
- package/dist/questions/index.d.ts +3 -0
- package/dist/questions/index.js +1212 -667
- package/dist/questions/index.js.map +1 -1
- package/dist/reportsClient.js +19 -1
- package/dist/reportsClient.js.map +1 -1
- package/dist/schemaClient.js +19 -1
- package/dist/schemaClient.js.map +1 -1
- package/dist/secrets.d.ts +1 -0
- package/dist/secrets.js +3 -0
- package/dist/secrets.js.map +1 -0
- package/dist/sourcesClient.js +19 -1
- package/dist/sourcesClient.js.map +1 -1
- package/dist/telemetryClient.js +19 -1
- package/dist/telemetryClient.js.map +1 -1
- package/dist/toolRegistryClient.js +19 -1
- package/dist/toolRegistryClient.js.map +1 -1
- package/dist/topics/index.d.ts +12 -3
- package/dist/topics/index.js +1214 -667
- package/dist/topics/index.js.map +1 -1
- package/dist/topicsClient.d.ts +2 -0
- package/dist/topicsClient.js +19 -1
- package/dist/topicsClient.js.map +1 -1
- package/dist/types.d.ts +17 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/dist/workflowClient.d.ts +2 -0
- package/dist/workflowClient.js +19 -1
- package/dist/workflowClient.js.map +1 -1
- package/dist/worktrees/index.d.ts +3 -0
- package/dist/worktrees/index.js +1212 -667
- package/dist/worktrees/index.js.map +1 -1
- package/package.json +9 -4
|
@@ -322,13 +322,31 @@ function mergeHeaderRecord(base, addition) {
|
|
|
322
322
|
}
|
|
323
323
|
return Object.fromEntries(headers.entries());
|
|
324
324
|
}
|
|
325
|
+
function cleanHeaderValue(value) {
|
|
326
|
+
const normalized = value?.trim();
|
|
327
|
+
return normalized ? normalized : void 0;
|
|
328
|
+
}
|
|
325
329
|
function createGatewayRequestClient(config = {}) {
|
|
326
330
|
const fetchImpl = config.fetchImpl ?? fetch;
|
|
327
331
|
const baseUrl = config.baseUrl?.replace(/\/+$/, "") ?? "";
|
|
328
332
|
const maxRetries = config.maxRetries ?? 2;
|
|
329
333
|
const requestIdFactory = config.requestIdFactory ?? (() => generatePortableRequestId());
|
|
330
334
|
async function resolveAuthHeaders() {
|
|
331
|
-
const
|
|
335
|
+
const provided = config.getAuthHeaders ? await config.getAuthHeaders() : {};
|
|
336
|
+
const headers = new Headers(provided);
|
|
337
|
+
const setIfAbsent = (name, value) => {
|
|
338
|
+
const normalized = cleanHeaderValue(value);
|
|
339
|
+
if (normalized && !headers.has(name)) {
|
|
340
|
+
headers.set(name, normalized);
|
|
341
|
+
}
|
|
342
|
+
};
|
|
343
|
+
setIfAbsent("x-lucern-key", config.apiKey);
|
|
344
|
+
setIfAbsent("x-lucern-session-token", config.userToken);
|
|
345
|
+
setIfAbsent("x-lucern-environment", config.environment);
|
|
346
|
+
setIfAbsent("x-lucern-clerk-id", config.clerkId);
|
|
347
|
+
setIfAbsent("x-lucern-user-id", config.userId ?? config.clerkId);
|
|
348
|
+
setIfAbsent("x-lucern-deployment-host", config.deploymentHost);
|
|
349
|
+
const base = Object.fromEntries(headers.entries());
|
|
332
350
|
const authContextInput = await resolveConfiguredAuthContext(
|
|
333
351
|
config.authContext
|
|
334
352
|
);
|
|
@@ -555,6 +573,7 @@ var FUNCTION_SURFACE_METHOD_PATHS = [
|
|
|
555
573
|
"contracts.evaluateContract",
|
|
556
574
|
"contracts.getContractStatus",
|
|
557
575
|
"contradictions.flagContradiction",
|
|
576
|
+
"controlPlane.identity.resolveInteractivePrincipal",
|
|
558
577
|
"coordination.broadcastMessage",
|
|
559
578
|
"coordination.claimFiles",
|
|
560
579
|
"coordination.endSession",
|
|
@@ -563,8 +582,12 @@ var FUNCTION_SURFACE_METHOD_PATHS = [
|
|
|
563
582
|
"coordination.listActiveSessions",
|
|
564
583
|
"coordination.registerSession",
|
|
565
584
|
"coordination.sendAgentMessage",
|
|
585
|
+
"edges.batchCreateEdges",
|
|
566
586
|
"edges.createEdge",
|
|
567
587
|
"edges.queryLineage",
|
|
588
|
+
"edges.removeEdge",
|
|
589
|
+
"edges.removeEdgesBetween",
|
|
590
|
+
"edges.updateEdge",
|
|
568
591
|
"evidence.addEvidence",
|
|
569
592
|
"evidence.createEvidence",
|
|
570
593
|
"evidence.getEvidence",
|
|
@@ -592,6 +615,14 @@ var FUNCTION_SURFACE_METHOD_PATHS = [
|
|
|
592
615
|
"lenses.createLens",
|
|
593
616
|
"lenses.listLenses",
|
|
594
617
|
"lenses.removeLensFromTopic",
|
|
618
|
+
"nodes.archiveEpistemicNode",
|
|
619
|
+
"nodes.batchCreateEpistemicNodes",
|
|
620
|
+
"nodes.createEpistemicNode",
|
|
621
|
+
"nodes.getEpistemicNode",
|
|
622
|
+
"nodes.listEpistemicNodes",
|
|
623
|
+
"nodes.supersedeEpistemicNode",
|
|
624
|
+
"nodes.updateEpistemicNode",
|
|
625
|
+
"nodes.verifyEpistemicNode",
|
|
595
626
|
"observations.getObservationContext",
|
|
596
627
|
"observations.ingestObservation",
|
|
597
628
|
"ontologies.applyOntology",
|
|
@@ -621,8 +652,10 @@ var FUNCTION_SURFACE_METHOD_PATHS = [
|
|
|
621
652
|
"tasks.updateTask",
|
|
622
653
|
"topics.createTopic",
|
|
623
654
|
"topics.getTopic",
|
|
655
|
+
"topics.getTopicGraphSpine",
|
|
624
656
|
"topics.getTopicTree",
|
|
625
657
|
"topics.listTopics",
|
|
658
|
+
"topics.materializeTopicGraph",
|
|
626
659
|
"topics.updateTopic",
|
|
627
660
|
"worktrees.activateWorktree",
|
|
628
661
|
"worktrees.addWorktree",
|
|
@@ -647,8 +680,11 @@ var CONTRACTS = {
|
|
|
647
680
|
"apply_lens_to_topic": { method: "POST", path: "/lenses/apply", kind: "mutation", idempotent: true, surfaceIntent: "mcp_workflow" },
|
|
648
681
|
"apply_ontology": { method: "POST", path: "/ontologies/apply", kind: "mutation", idempotent: true, surfaceIntent: "mcp_workflow" },
|
|
649
682
|
"archive_belief": { method: "DELETE", path: "/beliefs", kind: "mutation", idempotent: true, surfaceIntent: "mcp_core" },
|
|
683
|
+
"archive_epistemic_node": { method: "POST", path: "/nodes/archive", kind: "mutation", idempotent: true, surfaceIntent: "mcp_core" },
|
|
650
684
|
"archive_ontology": { method: "DELETE", path: "/ontologies", kind: "mutation", idempotent: true, surfaceIntent: "mcp_governance" },
|
|
651
685
|
"archive_question": { method: "DELETE", path: "/questions", kind: "mutation", idempotent: true, surfaceIntent: "mcp_core" },
|
|
686
|
+
"batch_create_edges": { method: "POST", path: "/edges/batch", kind: "mutation", idempotent: true, surfaceIntent: "mcp_analysis" },
|
|
687
|
+
"batch_create_epistemic_nodes": { method: "POST", path: "/nodes/batch", kind: "mutation", idempotent: true, surfaceIntent: "mcp_core" },
|
|
652
688
|
"begin_build_session": { method: "POST", path: "/mcp/build-session/begin", kind: "mutation", idempotent: true, surfaceIntent: "system" },
|
|
653
689
|
"bisect_confidence": { method: "POST", path: "/beliefs/confidence/bisect", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
|
|
654
690
|
"broadcast_message": { method: "POST", path: "/coordination/messages/broadcast", kind: "mutation", idempotent: true, surfaceIntent: "system" },
|
|
@@ -660,6 +696,7 @@ var CONTRACTS = {
|
|
|
660
696
|
"create_belief": { method: "POST", path: "/beliefs", kind: "mutation", idempotent: true, surfaceIntent: "mcp_core" },
|
|
661
697
|
"create_edge": { method: "POST", path: "/edges", kind: "mutation", idempotent: true, surfaceIntent: "mcp_analysis" },
|
|
662
698
|
"create_epistemic_contract": { method: "POST", path: "/contracts", kind: "mutation", idempotent: true, surfaceIntent: "mcp_governance" },
|
|
699
|
+
"create_epistemic_node": { method: "POST", path: "/nodes", kind: "mutation", idempotent: true, surfaceIntent: "mcp_core" },
|
|
663
700
|
"create_evidence": { method: "POST", path: "/evidence", kind: "mutation", idempotent: true, surfaceIntent: "mcp_core" },
|
|
664
701
|
"create_lens": { method: "POST", path: "/lenses", kind: "mutation", idempotent: true, surfaceIntent: "mcp_governance" },
|
|
665
702
|
"create_ontology": { method: "POST", path: "/ontologies", kind: "mutation", idempotent: true, surfaceIntent: "mcp_governance" },
|
|
@@ -687,6 +724,7 @@ var CONTRACTS = {
|
|
|
687
724
|
"get_code_context": { method: "POST", path: "/coding/context", kind: "query", idempotent: false, surfaceIntent: "system" },
|
|
688
725
|
"get_confidence_history": { method: "POST", path: "/beliefs/confidence-history", kind: "query", idempotent: false, surfaceIntent: "compatibility" },
|
|
689
726
|
"get_contract_status": { method: "POST", path: "/contracts/status", kind: "query", idempotent: false, surfaceIntent: "mcp_governance" },
|
|
727
|
+
"get_epistemic_node": { method: "GET", path: "/nodes/get", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
|
|
690
728
|
"get_evidence": { method: "GET", path: "/evidence/get", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
|
|
691
729
|
"get_failure_log": { method: "POST", path: "/coding/failure-log", kind: "query", idempotent: false, surfaceIntent: "system" },
|
|
692
730
|
"get_falsification_questions": { method: "POST", path: "/questions/falsification", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
|
|
@@ -700,6 +738,7 @@ var CONTRACTS = {
|
|
|
700
738
|
"get_question": { method: "GET", path: "/questions/get", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
|
|
701
739
|
"get_topic": { method: "GET", path: "/topics/get", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
|
|
702
740
|
"get_topic_coverage": { method: "POST", path: "/graph/topic-coverage", kind: "query", idempotent: false, surfaceIntent: "mcp_analysis" },
|
|
741
|
+
"get_topic_graph_spine": { method: "GET", path: "/topics/graph-spine", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
|
|
703
742
|
"get_topic_tree": { method: "GET", path: "/topics/tree", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
|
|
704
743
|
"heartbeat_session": { method: "POST", path: "/coordination/heartbeat-session", kind: "mutation", idempotent: true, surfaceIntent: "system" },
|
|
705
744
|
"identity_whoami": { method: "GET", path: "/identity/whoami", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
|
|
@@ -711,6 +750,7 @@ var CONTRACTS = {
|
|
|
711
750
|
"list_all_worktrees": { method: "GET", path: "/worktrees/all", kind: "query", idempotent: false, surfaceIntent: "mcp_workflow" },
|
|
712
751
|
"list_beliefs": { method: "GET", path: "/beliefs", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
|
|
713
752
|
"list_campaigns": { method: "GET", path: "/worktrees/campaigns", kind: "query", idempotent: false, surfaceIntent: "mcp_workflow" },
|
|
753
|
+
"list_epistemic_nodes": { method: "GET", path: "/nodes", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
|
|
714
754
|
"list_evidence": { method: "GET", path: "/evidence", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
|
|
715
755
|
"list_graph_intelligence_queries": { method: "POST", path: "/graph-intelligence/queries", kind: "query", idempotent: false, surfaceIntent: "mcp_analysis" },
|
|
716
756
|
"list_lenses": { method: "GET", path: "/lenses", kind: "query", idempotent: false, surfaceIntent: "mcp_workflow" },
|
|
@@ -721,6 +761,7 @@ var CONTRACTS = {
|
|
|
721
761
|
"list_worktrees": { method: "GET", path: "/worktrees", kind: "query", idempotent: false, surfaceIntent: "mcp_workflow" },
|
|
722
762
|
"manage_write_policy": { method: "POST", path: "/policy/write-policy/manage", kind: "mutation", idempotent: true, surfaceIntent: "mcp_governance" },
|
|
723
763
|
"match_entity_type": { method: "POST", path: "/ontologies/match-entity-type", kind: "query", idempotent: false, surfaceIntent: "mcp_workflow" },
|
|
764
|
+
"materialize_topic_graph": { method: "POST", path: "/topics/materialize-graph", kind: "mutation", idempotent: true, surfaceIntent: "mcp_core" },
|
|
724
765
|
"merge": { method: "POST", path: "/worktrees/merge", kind: "mutation", idempotent: true, surfaceIntent: "mcp_workflow" },
|
|
725
766
|
"modulate_confidence": { method: "POST", path: "/beliefs/confidence", kind: "mutation", idempotent: true, surfaceIntent: "mcp_core" },
|
|
726
767
|
"open_pull_request": { method: "POST", path: "/worktrees/open-pull-request", kind: "mutation", idempotent: true, surfaceIntent: "system" },
|
|
@@ -734,22 +775,29 @@ var CONTRACTS = {
|
|
|
734
775
|
"refine_belief": { method: "PATCH", path: "/beliefs/refine", kind: "mutation", idempotent: true, surfaceIntent: "mcp_core" },
|
|
735
776
|
"refine_question": { method: "PATCH", path: "/questions/refine", kind: "mutation", idempotent: true, surfaceIntent: "mcp_core" },
|
|
736
777
|
"register_session": { method: "POST", path: "/coordination/register-session", kind: "mutation", idempotent: true, surfaceIntent: "system" },
|
|
778
|
+
"remove_edge": { method: "DELETE", path: "/edges", kind: "mutation", idempotent: true, surfaceIntent: "mcp_analysis" },
|
|
779
|
+
"remove_edges_between": { method: "DELETE", path: "/edges/between", kind: "mutation", idempotent: true, surfaceIntent: "mcp_analysis" },
|
|
737
780
|
"remove_lens_from_topic": { method: "DELETE", path: "/lenses/apply", kind: "mutation", idempotent: true, surfaceIntent: "mcp_workflow" },
|
|
738
781
|
"resolve_effective_ontology": { method: "POST", path: "/ontologies/effective", kind: "query", idempotent: false, surfaceIntent: "mcp_workflow" },
|
|
782
|
+
"resolve_interactive_principal": { method: "POST", path: "/control-plane/identity/resolve-interactive-principal", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
|
|
739
783
|
"run_graph_intelligence_query": { method: "POST", path: "/graph-intelligence/run", kind: "query", idempotent: false, surfaceIntent: "mcp_analysis" },
|
|
740
784
|
"search_beliefs": { method: "POST", path: "/beliefs/search", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
|
|
741
785
|
"search_evidence": { method: "POST", path: "/evidence/search", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
|
|
742
786
|
"seed_belief_lattice": { method: "POST", path: "/scope/belief-lattice/seed", kind: "mutation", idempotent: true, surfaceIntent: "system" },
|
|
743
787
|
"send_agent_message": { method: "POST", path: "/coordination/messages/send", kind: "mutation", idempotent: true, surfaceIntent: "system" },
|
|
788
|
+
"supersede_epistemic_node": { method: "POST", path: "/nodes/supersede", kind: "mutation", idempotent: true, surfaceIntent: "mcp_core" },
|
|
744
789
|
"trace_entity_impact": { method: "POST", path: "/graph/trace-entity-impact", kind: "query", idempotent: false, surfaceIntent: "mcp_analysis" },
|
|
745
790
|
"traverse_graph": { method: "POST", path: "/graph/traverse", kind: "query", idempotent: false, surfaceIntent: "mcp_analysis" },
|
|
746
791
|
"trigger_belief_review": { method: "POST", path: "/context/belief-review", kind: "mutation", idempotent: true, surfaceIntent: "mcp_analysis" },
|
|
792
|
+
"update_edge": { method: "PATCH", path: "/edges", kind: "mutation", idempotent: true, surfaceIntent: "mcp_analysis" },
|
|
793
|
+
"update_epistemic_node": { method: "PATCH", path: "/nodes", kind: "mutation", idempotent: true, surfaceIntent: "mcp_core" },
|
|
747
794
|
"update_ontology": { method: "PATCH", path: "/ontologies", kind: "mutation", idempotent: true, surfaceIntent: "mcp_governance" },
|
|
748
795
|
"update_question_status": { method: "PATCH", path: "/questions/status", kind: "mutation", idempotent: true, surfaceIntent: "mcp_core" },
|
|
749
796
|
"update_task": { method: "PATCH", path: "/tasks", kind: "mutation", idempotent: true, surfaceIntent: "mcp_workflow" },
|
|
750
797
|
"update_topic": { method: "PATCH", path: "/topics", kind: "mutation", idempotent: true, surfaceIntent: "mcp_core" },
|
|
751
798
|
"update_worktree_metadata": { method: "PATCH", path: "/worktrees/metadata", kind: "mutation", idempotent: true, surfaceIntent: "mcp_workflow" },
|
|
752
|
-
"update_worktree_targets": { method: "PATCH", path: "/worktrees/targets", kind: "mutation", idempotent: true, surfaceIntent: "mcp_workflow" }
|
|
799
|
+
"update_worktree_targets": { method: "PATCH", path: "/worktrees/targets", kind: "mutation", idempotent: true, surfaceIntent: "mcp_workflow" },
|
|
800
|
+
"verify_epistemic_node": { method: "POST", path: "/nodes/verify", kind: "mutation", idempotent: true, surfaceIntent: "mcp_core" }
|
|
753
801
|
};
|
|
754
802
|
function createSessionId() {
|
|
755
803
|
return typeof crypto !== "undefined" && typeof crypto.randomUUID === "function" ? crypto.randomUUID() : randomIdempotencyKey();
|
|
@@ -817,12 +865,21 @@ function createFunctionSurfaceClient(config = {}) {
|
|
|
817
865
|
archiveBelief(input = {}, idempotencyKey) {
|
|
818
866
|
return execute("archive_belief", input, idempotencyKey);
|
|
819
867
|
},
|
|
868
|
+
archiveEpistemicNode(input = {}, idempotencyKey) {
|
|
869
|
+
return execute("archive_epistemic_node", input, idempotencyKey);
|
|
870
|
+
},
|
|
820
871
|
archiveOntology(input = {}, idempotencyKey) {
|
|
821
872
|
return execute("archive_ontology", input, idempotencyKey);
|
|
822
873
|
},
|
|
823
874
|
archiveQuestion(input = {}, idempotencyKey) {
|
|
824
875
|
return execute("archive_question", input, idempotencyKey);
|
|
825
876
|
},
|
|
877
|
+
batchCreateEdges(input = {}, idempotencyKey) {
|
|
878
|
+
return execute("batch_create_edges", input, idempotencyKey);
|
|
879
|
+
},
|
|
880
|
+
batchCreateEpistemicNodes(input = {}, idempotencyKey) {
|
|
881
|
+
return execute("batch_create_epistemic_nodes", input, idempotencyKey);
|
|
882
|
+
},
|
|
826
883
|
beginBuildSession(input = {}, idempotencyKey) {
|
|
827
884
|
return execute("begin_build_session", input, idempotencyKey);
|
|
828
885
|
},
|
|
@@ -856,6 +913,9 @@ function createFunctionSurfaceClient(config = {}) {
|
|
|
856
913
|
createEpistemicContract(input = {}, idempotencyKey) {
|
|
857
914
|
return execute("create_epistemic_contract", input, idempotencyKey);
|
|
858
915
|
},
|
|
916
|
+
createEpistemicNode(input = {}, idempotencyKey) {
|
|
917
|
+
return execute("create_epistemic_node", input, idempotencyKey);
|
|
918
|
+
},
|
|
859
919
|
createEvidence(input = {}, idempotencyKey) {
|
|
860
920
|
return execute("create_evidence", input, idempotencyKey);
|
|
861
921
|
},
|
|
@@ -937,6 +997,9 @@ function createFunctionSurfaceClient(config = {}) {
|
|
|
937
997
|
getContractStatus(input = {}, idempotencyKey) {
|
|
938
998
|
return execute("get_contract_status", input, idempotencyKey);
|
|
939
999
|
},
|
|
1000
|
+
getEpistemicNode(input = {}, idempotencyKey) {
|
|
1001
|
+
return execute("get_epistemic_node", input, idempotencyKey);
|
|
1002
|
+
},
|
|
940
1003
|
getEvidence(input = {}, idempotencyKey) {
|
|
941
1004
|
return execute("get_evidence", input, idempotencyKey);
|
|
942
1005
|
},
|
|
@@ -976,6 +1039,9 @@ function createFunctionSurfaceClient(config = {}) {
|
|
|
976
1039
|
getTopicCoverage(input = {}, idempotencyKey) {
|
|
977
1040
|
return execute("get_topic_coverage", input, idempotencyKey);
|
|
978
1041
|
},
|
|
1042
|
+
getTopicGraphSpine(input = {}, idempotencyKey) {
|
|
1043
|
+
return execute("get_topic_graph_spine", input, idempotencyKey);
|
|
1044
|
+
},
|
|
979
1045
|
getTopicTree(input = {}, idempotencyKey) {
|
|
980
1046
|
return execute("get_topic_tree", input, idempotencyKey);
|
|
981
1047
|
},
|
|
@@ -1009,6 +1075,9 @@ function createFunctionSurfaceClient(config = {}) {
|
|
|
1009
1075
|
listCampaigns(input = {}, idempotencyKey) {
|
|
1010
1076
|
return execute("list_campaigns", input, idempotencyKey);
|
|
1011
1077
|
},
|
|
1078
|
+
listEpistemicNodes(input = {}, idempotencyKey) {
|
|
1079
|
+
return execute("list_epistemic_nodes", input, idempotencyKey);
|
|
1080
|
+
},
|
|
1012
1081
|
listEvidence(input = {}, idempotencyKey) {
|
|
1013
1082
|
return execute("list_evidence", input, idempotencyKey);
|
|
1014
1083
|
},
|
|
@@ -1039,6 +1108,9 @@ function createFunctionSurfaceClient(config = {}) {
|
|
|
1039
1108
|
matchEntityType(input = {}, idempotencyKey) {
|
|
1040
1109
|
return execute("match_entity_type", input, idempotencyKey);
|
|
1041
1110
|
},
|
|
1111
|
+
materializeTopicGraph(input = {}, idempotencyKey) {
|
|
1112
|
+
return execute("materialize_topic_graph", input, idempotencyKey);
|
|
1113
|
+
},
|
|
1042
1114
|
merge(input = {}, idempotencyKey) {
|
|
1043
1115
|
return execute("merge", input, idempotencyKey);
|
|
1044
1116
|
},
|
|
@@ -1078,12 +1150,21 @@ function createFunctionSurfaceClient(config = {}) {
|
|
|
1078
1150
|
registerSession(input = {}, idempotencyKey) {
|
|
1079
1151
|
return execute("register_session", input, idempotencyKey);
|
|
1080
1152
|
},
|
|
1153
|
+
removeEdge(input = {}, idempotencyKey) {
|
|
1154
|
+
return execute("remove_edge", input, idempotencyKey);
|
|
1155
|
+
},
|
|
1156
|
+
removeEdgesBetween(input = {}, idempotencyKey) {
|
|
1157
|
+
return execute("remove_edges_between", input, idempotencyKey);
|
|
1158
|
+
},
|
|
1081
1159
|
removeLensFromTopic(input = {}, idempotencyKey) {
|
|
1082
1160
|
return execute("remove_lens_from_topic", input, idempotencyKey);
|
|
1083
1161
|
},
|
|
1084
1162
|
resolveEffectiveOntology(input = {}, idempotencyKey) {
|
|
1085
1163
|
return execute("resolve_effective_ontology", input, idempotencyKey);
|
|
1086
1164
|
},
|
|
1165
|
+
resolveInteractivePrincipal(input = {}, idempotencyKey) {
|
|
1166
|
+
return execute("resolve_interactive_principal", input, idempotencyKey);
|
|
1167
|
+
},
|
|
1087
1168
|
runGraphIntelligenceQuery(input = {}, idempotencyKey) {
|
|
1088
1169
|
return execute("run_graph_intelligence_query", input, idempotencyKey);
|
|
1089
1170
|
},
|
|
@@ -1099,6 +1180,9 @@ function createFunctionSurfaceClient(config = {}) {
|
|
|
1099
1180
|
sendAgentMessage(input = {}, idempotencyKey) {
|
|
1100
1181
|
return execute("send_agent_message", input, idempotencyKey);
|
|
1101
1182
|
},
|
|
1183
|
+
supersedeEpistemicNode(input = {}, idempotencyKey) {
|
|
1184
|
+
return execute("supersede_epistemic_node", input, idempotencyKey);
|
|
1185
|
+
},
|
|
1102
1186
|
traceEntityImpact(input = {}, idempotencyKey) {
|
|
1103
1187
|
return execute("trace_entity_impact", input, idempotencyKey);
|
|
1104
1188
|
},
|
|
@@ -1108,6 +1192,12 @@ function createFunctionSurfaceClient(config = {}) {
|
|
|
1108
1192
|
triggerBeliefReview(input = {}, idempotencyKey) {
|
|
1109
1193
|
return execute("trigger_belief_review", input, idempotencyKey);
|
|
1110
1194
|
},
|
|
1195
|
+
updateEdge(input = {}, idempotencyKey) {
|
|
1196
|
+
return execute("update_edge", input, idempotencyKey);
|
|
1197
|
+
},
|
|
1198
|
+
updateEpistemicNode(input = {}, idempotencyKey) {
|
|
1199
|
+
return execute("update_epistemic_node", input, idempotencyKey);
|
|
1200
|
+
},
|
|
1111
1201
|
updateOntology(input = {}, idempotencyKey) {
|
|
1112
1202
|
return execute("update_ontology", input, idempotencyKey);
|
|
1113
1203
|
},
|
|
@@ -1125,6 +1215,9 @@ function createFunctionSurfaceClient(config = {}) {
|
|
|
1125
1215
|
},
|
|
1126
1216
|
updateWorktreeTargets(input = {}, idempotencyKey) {
|
|
1127
1217
|
return execute("update_worktree_targets", input, idempotencyKey);
|
|
1218
|
+
},
|
|
1219
|
+
verifyEpistemicNode(input = {}, idempotencyKey) {
|
|
1220
|
+
return execute("verify_epistemic_node", input, idempotencyKey);
|
|
1128
1221
|
}
|
|
1129
1222
|
};
|
|
1130
1223
|
}
|