@lucern/contracts 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 +7 -0
- package/dist/api-enums.contract.d.ts +5 -3
- package/dist/api-enums.contract.js +14 -12
- package/dist/api-enums.contract.js.map +1 -1
- package/dist/auth-context.contract.js +14 -2
- package/dist/auth-context.contract.js.map +1 -1
- package/dist/auth-session.contract.js +14 -2
- package/dist/auth-session.contract.js.map +1 -1
- package/dist/auth.contract.d.ts +1 -1
- package/dist/auth.contract.js +14 -2
- package/dist/auth.contract.js.map +1 -1
- package/dist/component-boundary.contract.d.ts +1 -1
- package/dist/component-boundary.contract.js +46 -26
- package/dist/component-boundary.contract.js.map +1 -1
- package/dist/component-host-boundary.contract.d.ts +10 -5
- package/dist/component-host-boundary.contract.js +10 -4
- package/dist/component-host-boundary.contract.js.map +1 -1
- package/dist/{defineTable-CBQ03FXl.d.ts → defineTable-t1wr5wgn.d.ts} +1 -1
- package/dist/{dsl-djCRfuWC.d.ts → dsl-DVPthQGY.d.ts} +1 -1
- package/dist/dsl.d.ts +2 -2
- package/dist/dsl.js.map +1 -1
- package/dist/edge-policy-manifest-Dw5IhT1L.d.ts +133 -0
- package/dist/function-registry/beliefs.d.ts +23 -10
- package/dist/function-registry/beliefs.js +467 -36
- package/dist/function-registry/beliefs.js.map +1 -1
- package/dist/function-registry/coding.d.ts +15 -6
- package/dist/function-registry/coding.js +531 -22
- package/dist/function-registry/coding.js.map +1 -1
- package/dist/function-registry/context.d.ts +9 -3
- package/dist/function-registry/context.js +464 -21
- package/dist/function-registry/context.js.map +1 -1
- package/dist/function-registry/contracts.d.ts +9 -3
- package/dist/function-registry/contracts.js +464 -21
- package/dist/function-registry/contracts.js.map +1 -1
- package/dist/function-registry/coordination.d.ts +21 -9
- package/dist/function-registry/coordination.js +464 -21
- package/dist/function-registry/coordination.js.map +1 -1
- package/dist/function-registry/edges.d.ts +167 -2
- package/dist/function-registry/edges.js +661 -52
- package/dist/function-registry/edges.js.map +1 -1
- package/dist/function-registry/evidence.d.ts +19 -8
- package/dist/function-registry/evidence.js +473 -40
- package/dist/function-registry/evidence.js.map +1 -1
- package/dist/function-registry/graph.d.ts +33 -15
- package/dist/function-registry/graph.js +464 -21
- package/dist/function-registry/graph.js.map +1 -1
- package/dist/function-registry/helpers.d.ts +6 -3
- package/dist/function-registry/helpers.js +465 -22
- package/dist/function-registry/helpers.js.map +1 -1
- package/dist/function-registry/identity.d.ts +62 -16
- package/dist/function-registry/identity.js +487 -27
- package/dist/function-registry/identity.js.map +1 -1
- package/dist/function-registry/index.d.ts +4 -2
- package/dist/function-registry/index.js +468 -22
- package/dist/function-registry/index.js.map +1 -1
- package/dist/function-registry/judgments.d.ts +7 -2
- package/dist/function-registry/judgments.js +464 -21
- package/dist/function-registry/judgments.js.map +1 -1
- package/dist/function-registry/legacy.d.ts +5 -1
- package/dist/function-registry/legacy.js +464 -21
- package/dist/function-registry/legacy.js.map +1 -1
- package/dist/function-registry/lenses.d.ts +11 -4
- package/dist/function-registry/lenses.js +464 -21
- package/dist/function-registry/lenses.js.map +1 -1
- package/dist/function-registry/manifest.d.ts +4 -4
- package/dist/function-registry/manifest.js +16 -1
- package/dist/function-registry/manifest.js.map +1 -1
- package/dist/function-registry/nodes.d.ts +412 -0
- package/dist/function-registry/nodes.js +5354 -0
- package/dist/function-registry/nodes.js.map +1 -0
- package/dist/function-registry/ontologies.d.ts +25 -11
- package/dist/function-registry/ontologies.js +464 -21
- package/dist/function-registry/ontologies.js.map +1 -1
- package/dist/function-registry/pipeline.d.ts +9 -3
- package/dist/function-registry/pipeline.js +464 -21
- package/dist/function-registry/pipeline.js.map +1 -1
- package/dist/function-registry/questions.d.ts +27 -12
- package/dist/function-registry/questions.js +466 -26
- package/dist/function-registry/questions.js.map +1 -1
- package/dist/function-registry/tasks.d.ts +11 -4
- package/dist/function-registry/tasks.js +497 -30
- package/dist/function-registry/tasks.js.map +1 -1
- package/dist/function-registry/topics.d.ts +93 -5
- package/dist/function-registry/topics.js +534 -24
- package/dist/function-registry/topics.js.map +1 -1
- package/dist/function-registry/types.d.ts +7 -3
- package/dist/function-registry/worktrees.d.ts +25 -11
- package/dist/function-registry/worktrees.js +480 -21
- package/dist/function-registry/worktrees.js.map +1 -1
- package/dist/gateway.contract.d.ts +4 -0
- package/dist/gateway.contract.js.map +1 -1
- package/dist/generated/convexSchemas.d.ts +3 -3
- package/dist/generated/convexSchemas.js +37 -17
- package/dist/generated/convexSchemas.js.map +1 -1
- package/dist/generated/infisicalRuntimeEnv.d.ts +70 -0
- package/dist/generated/infisicalRuntimeEnv.js +27585 -0
- package/dist/generated/infisicalRuntimeEnv.js.map +1 -0
- package/dist/generated/lucernGatewayEnv.d.ts +17 -0
- package/dist/generated/lucernGatewayEnv.js +38 -0
- package/dist/generated/lucernGatewayEnv.js.map +1 -0
- package/dist/generated/lucernWebPublicEnv.d.ts +26 -0
- package/dist/generated/lucernWebPublicEnv.js +32 -0
- package/dist/generated/lucernWebPublicEnv.js.map +1 -0
- package/dist/generated/lucernWebServerEnv.d.ts +33 -0
- package/dist/generated/lucernWebServerEnv.js +51 -0
- package/dist/generated/lucernWebServerEnv.js.map +1 -0
- package/dist/generated/schema-manifest.json +1221 -114
- package/dist/generated/tableOwnership.d.ts +48 -28
- package/dist/generated/tableOwnership.js +66 -26
- package/dist/generated/tableOwnership.js.map +1 -1
- package/dist/generated/tier-expectations.json +64 -9
- package/dist/{index-O09U2xHk.d.ts → index-CM1Pl_vI.d.ts} +3 -3
- package/dist/index.d.ts +12 -7
- package/dist/index.js +32892 -459
- package/dist/index.js.map +1 -1
- package/dist/infisical-runtime.contract.d.ts +1763 -6
- package/dist/infisical-runtime.contract.js +2994 -15
- package/dist/infisical-runtime.contract.js.map +1 -1
- package/dist/manifests/edge-policy-manifest.d.ts +1 -1
- package/dist/manifests/edge-policy-manifest.data.d.ts +6 -20
- package/dist/manifests/edge-policy-manifest.data.js +18 -26
- package/dist/manifests/edge-policy-manifest.data.js.map +1 -1
- package/dist/manifests/edge-policy-manifest.js +31 -4
- package/dist/manifests/edge-policy-manifest.js.map +1 -1
- package/dist/manifests/infisical-runtime-manifest.d.ts +1689 -6
- package/dist/manifests/infisical-runtime-manifest.js +2847 -12
- package/dist/manifests/infisical-runtime-manifest.js.map +1 -1
- package/dist/manifests/tenant-client-manifest.d.ts +19 -14
- package/dist/manifests/tenant-client-manifest.js +29 -12
- package/dist/manifests/tenant-client-manifest.js.map +1 -1
- package/dist/mcp-gateway-boundary.contract.d.ts +23 -3
- package/dist/mcp-gateway-boundary.contract.js +2 -0
- package/dist/mcp-gateway-boundary.contract.js.map +1 -1
- package/dist/permit-principal-projection.contract.d.ts +74 -0
- package/dist/permit-principal-projection.contract.js +167 -0
- package/dist/permit-principal-projection.contract.js.map +1 -0
- package/dist/projections/check-convex-args-shape.js +10 -6
- package/dist/projections/check-convex-args-shape.js.map +1 -1
- package/dist/projections/create-evidence.projection.d.ts +6 -6
- package/dist/projections/create-evidence.projection.js +2 -3
- package/dist/projections/create-evidence.projection.js.map +1 -1
- package/dist/projections/index.d.ts +3 -3
- package/dist/projections/index.js +10 -6
- package/dist/projections/index.js.map +1 -1
- package/dist/projections/list-tasks.projection.d.ts +20 -8
- package/dist/projections/list-tasks.projection.js +8 -3
- package/dist/projections/list-tasks.projection.js.map +1 -1
- package/dist/proof-attestation.json +45 -0
- package/dist/schemas/component-table-manifest.d.ts +6 -6
- package/dist/schemas/component-table-manifest.js +2 -2
- package/dist/schemas/component-table-manifest.js.map +1 -1
- package/dist/schemas/index.d.ts +2 -2
- package/dist/schemas/index.js +1123 -137
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/manifest.d.ts +2102 -132
- package/dist/schemas/manifest.js +1121 -135
- package/dist/schemas/manifest.js.map +1 -1
- package/dist/schemas/tables/controlPlane/accessControl.d.ts +260 -0
- package/dist/schemas/tables/controlPlane/accessControl.js +658 -0
- package/dist/schemas/tables/controlPlane/accessControl.js.map +1 -0
- package/dist/schemas/tables/{identity → controlPlane}/agent.d.ts +1 -1
- package/dist/schemas/tables/{identity → controlPlane}/agent.js +3 -3
- package/dist/schemas/tables/controlPlane/agent.js.map +1 -0
- package/dist/schemas/tables/{identity → controlPlane}/epistemic.d.ts +1 -1
- package/dist/schemas/tables/{identity → controlPlane}/epistemic.js +3 -3
- package/dist/schemas/tables/controlPlane/epistemic.js.map +1 -0
- package/dist/schemas/tables/{identity → controlPlane}/model.d.ts +1 -1
- package/dist/schemas/tables/{identity → controlPlane}/model.js +6 -6
- package/dist/schemas/tables/controlPlane/model.js.map +1 -0
- package/dist/schemas/tables/{identity → controlPlane}/platform.d.ts +1 -1
- package/dist/schemas/tables/{identity → controlPlane}/platform.js +18 -18
- package/dist/schemas/tables/controlPlane/platform.js.map +1 -0
- package/dist/schemas/tables/{identity → controlPlane}/project.d.ts +1 -1
- package/dist/schemas/tables/{identity → controlPlane}/project.js +3 -3
- package/dist/schemas/tables/controlPlane/project.js.map +1 -0
- package/dist/schemas/tables/{identity → controlPlane}/user.d.ts +1 -1
- package/dist/schemas/tables/{identity → controlPlane}/user.js +3 -3
- package/dist/schemas/tables/controlPlane/user.js.map +1 -0
- package/dist/schemas/tables/kernel/config.d.ts +1 -1
- package/dist/schemas/tables/kernel/config.js.map +1 -1
- package/dist/schemas/tables/kernel/coordination.d.ts +1 -1
- package/dist/schemas/tables/kernel/coordination.js.map +1 -1
- package/dist/schemas/tables/kernel/decision.d.ts +1 -1
- package/dist/schemas/tables/kernel/decision.js.map +1 -1
- package/dist/schemas/tables/kernel/embedding.d.ts +1 -1
- package/dist/schemas/tables/kernel/embedding.js.map +1 -1
- package/dist/schemas/tables/kernel/epistemic.d.ts +1 -1
- package/dist/schemas/tables/kernel/epistemic.js.map +1 -1
- package/dist/schemas/tables/kernel/events.d.ts +21 -0
- package/dist/schemas/tables/kernel/events.js +43 -0
- package/dist/schemas/tables/kernel/events.js.map +1 -0
- package/dist/schemas/tables/kernel/idempotency.d.ts +1 -1
- package/dist/schemas/tables/kernel/idempotency.js.map +1 -1
- package/dist/schemas/tables/kernel/infra.d.ts +1 -1
- package/dist/schemas/tables/kernel/infra.js.map +1 -1
- package/dist/schemas/tables/kernel/intelligence.d.ts +1 -1
- package/dist/schemas/tables/kernel/intelligence.js.map +1 -1
- package/dist/schemas/tables/kernel/lens.d.ts +1 -1
- package/dist/schemas/tables/kernel/lens.js.map +1 -1
- package/dist/schemas/tables/kernel/ontology.d.ts +1 -1
- package/dist/schemas/tables/kernel/ontology.js.map +1 -1
- package/dist/schemas/tables/kernel/platform.d.ts +1 -1
- package/dist/schemas/tables/kernel/platform.js.map +1 -1
- package/dist/schemas/tables/kernel/spine.d.ts +2 -1
- package/dist/schemas/tables/kernel/spine.js +1 -0
- package/dist/schemas/tables/kernel/spine.js.map +1 -1
- package/dist/schemas/tables/kernel/task.d.ts +1 -1
- package/dist/schemas/tables/kernel/task.js.map +1 -1
- package/dist/schemas/tables/kernel/topic.d.ts +1 -1
- package/dist/schemas/tables/kernel/topic.js +1 -0
- package/dist/schemas/tables/kernel/topic.js.map +1 -1
- package/dist/schemas/tables/kernel/workflow.d.ts +1 -1
- package/dist/schemas/tables/kernel/workflow.js.map +1 -1
- package/dist/schemas/tables/kernel/worktree.d.ts +17 -17
- package/dist/schemas/tables/kernel/worktree.js.map +1 -1
- package/dist/schemas/tables/mc/identity.d.ts +19 -2
- package/dist/schemas/tables/mc/identity.js +32 -1
- package/dist/schemas/tables/mc/identity.js.map +1 -1
- package/dist/schemas/tables/mc/methodology.d.ts +1 -1
- package/dist/schemas/tables/mc/methodology.js.map +1 -1
- package/dist/schemas/tables/mc/pack.d.ts +1 -1
- package/dist/schemas/tables/mc/pack.js.map +1 -1
- package/dist/schemas/tables/mc/policy.d.ts +2 -2
- package/dist/schemas/tables/mc/policy.js +1 -1
- package/dist/schemas/tables/mc/policy.js.map +1 -1
- package/dist/schemas/tables/mc/registry.d.ts +1 -1
- package/dist/schemas/tables/mc/registry.js.map +1 -1
- package/dist/schemas/tables/mc/runtime.d.ts +109 -3
- package/dist/schemas/tables/mc/runtime.js +330 -104
- package/dist/schemas/tables/mc/runtime.js.map +1 -1
- package/dist/schemas/tables/mc/tenant.d.ts +4 -2
- package/dist/schemas/tables/mc/tenant.js +3 -1
- package/dist/schemas/tables/mc/tenant.js.map +1 -1
- package/dist/schemas/tables/mc/workspace.d.ts +22 -5
- package/dist/schemas/tables/mc/workspace.js +34 -2
- package/dist/schemas/tables/mc/workspace.js.map +1 -1
- package/dist/{sdk-tools.contract-Ci8bkoai.d.ts → sdk-tools.contract-CKmSsrZ2.d.ts} +1 -1
- package/dist/sdk-tools.contract.d.ts +2 -2
- package/dist/sdk-tools.contract.js +417 -13
- package/dist/sdk-tools.contract.js.map +1 -1
- package/dist/tenant-bootstrap-seed.contract.d.ts +244 -56
- package/dist/tenant-bootstrap-seed.contract.js +139 -28
- package/dist/tenant-bootstrap-seed.contract.js.map +1 -1
- package/dist/tenant-bootstrap-seed.defaults.d.ts +2 -2
- package/dist/tenant-bootstrap-seed.defaults.js +31 -13
- package/dist/tenant-bootstrap-seed.defaults.js.map +1 -1
- package/dist/tenant-client.contract.d.ts +20 -15
- package/dist/tenant-client.contract.js +29 -12
- package/dist/tenant-client.contract.js.map +1 -1
- package/dist/{tool-contracts-B4iWhejG.d.ts → tool-contracts-C_xvM9q2.d.ts} +32 -2
- package/dist/tool-contracts.d.ts +1 -1
- package/dist/tool-contracts.js +418 -14
- package/dist/tool-contracts.js.map +1 -1
- package/package.json +22 -1
- package/dist/edge-policy-manifest-Byv6cQPP.d.ts +0 -132
- package/dist/schemas/tables/identity/agent.js.map +0 -1
- package/dist/schemas/tables/identity/epistemic.js.map +0 -1
- package/dist/schemas/tables/identity/model.js.map +0 -1
- package/dist/schemas/tables/identity/platform.js.map +0 -1
- package/dist/schemas/tables/identity/project.js.map +0 -1
- package/dist/schemas/tables/identity/user.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SurfaceClass, FunctionSurfaceIntent, FunctionSurfaceMap, SurfaceExposure } from './types.js';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import '../defineFunction-DO97DKs4.js';
|
|
4
|
-
import '../tool-contracts-
|
|
4
|
+
import '../tool-contracts-C_xvM9q2.js';
|
|
5
5
|
|
|
6
6
|
type LucernOperationManifestEntry = {
|
|
7
7
|
name: string;
|
|
@@ -10,8 +10,8 @@ type LucernOperationManifestEntry = {
|
|
|
10
10
|
surfaces: FunctionSurfaceMap;
|
|
11
11
|
rationale: string;
|
|
12
12
|
};
|
|
13
|
-
declare const MCP_CORE_OPERATION_NAMES: readonly ["compile_context", "identity_whoami", "check_permission", "filter_by_permission", "create_belief", "get_belief", "list_beliefs", "refine_belief", "modulate_confidence", "fork_belief", "archive_belief", "search_beliefs", "bisect_confidence", "create_evidence", "get_evidence", "list_evidence", "search_evidence", "link_evidence_to_belief", "link_evidence_to_question", "create_question", "get_question", "list_questions", "refine_question", "update_question_status", "archive_question", "create_answer", "get_answer", "find_missing_questions", "get_high_priority_questions", "get_falsification_questions", "create_topic", "get_topic", "list_topics", "update_topic", "get_topic_tree"];
|
|
14
|
-
declare const MCP_ANALYSIS_PLATFORM_OPERATION_NAMES: readonly ["create_edge", "query_lineage", "traverse_graph", "get_graph_neighborhood", "get_graph_structure_analysis", "list_graph_intelligence_queries", "run_graph_intelligence_query", "find_contradictions", "flag_contradiction", "detect_confirmation_bias", "get_topic_coverage", "get_graph_gaps"];
|
|
13
|
+
declare const MCP_CORE_OPERATION_NAMES: readonly ["compile_context", "identity_whoami", "resolve_interactive_principal", "check_permission", "filter_by_permission", "create_belief", "get_belief", "list_beliefs", "refine_belief", "modulate_confidence", "fork_belief", "archive_belief", "search_beliefs", "bisect_confidence", "create_evidence", "get_evidence", "list_evidence", "search_evidence", "link_evidence_to_belief", "link_evidence_to_question", "create_question", "get_question", "list_questions", "refine_question", "update_question_status", "archive_question", "create_answer", "get_answer", "find_missing_questions", "get_high_priority_questions", "get_falsification_questions", "create_epistemic_node", "get_epistemic_node", "list_epistemic_nodes", "update_epistemic_node", "archive_epistemic_node", "verify_epistemic_node", "supersede_epistemic_node", "batch_create_epistemic_nodes", "create_topic", "get_topic", "list_topics", "update_topic", "get_topic_tree", "materialize_topic_graph", "get_topic_graph_spine"];
|
|
14
|
+
declare const MCP_ANALYSIS_PLATFORM_OPERATION_NAMES: readonly ["create_edge", "update_edge", "remove_edge", "remove_edges_between", "batch_create_edges", "query_lineage", "traverse_graph", "get_graph_neighborhood", "get_graph_structure_analysis", "list_graph_intelligence_queries", "run_graph_intelligence_query", "find_contradictions", "flag_contradiction", "detect_confirmation_bias", "get_topic_coverage", "get_graph_gaps"];
|
|
15
15
|
declare const MCP_ANALYSIS_TENANT_OPERATION_NAMES: readonly ["analyze_topic_density", "discover_entity_connections", "trace_entity_impact"];
|
|
16
16
|
declare const MCP_WORKFLOW_PLATFORM_OPERATION_NAMES: readonly ["list_lenses", "apply_lens_to_topic", "remove_lens_from_topic", "get_ontology", "list_ontologies", "apply_ontology", "match_entity_type", "resolve_effective_ontology", "add_worktree", "activate_worktree", "list_worktrees", "list_all_worktrees", "list_campaigns", "update_worktree_targets", "update_worktree_metadata", "create_task", "list_tasks", "update_task", "complete_task"];
|
|
17
17
|
declare const MCP_WORKFLOW_TENANT_OPERATION_NAMES: readonly ["resolve_effective_ontology", "get_observation_context", "ingest_observation", "merge"];
|
|
@@ -19,7 +19,7 @@ declare const MCP_GOVERNANCE_PLATFORM_OPERATION_NAMES: readonly ["create_lens",
|
|
|
19
19
|
declare const MCP_GOVERNANCE_TENANT_OPERATION_NAMES: readonly ["create_epistemic_contract", "evaluate_contract", "get_contract_status", "publish_ontology_version", "deprecate_ontology_version", "manage_write_policy"];
|
|
20
20
|
declare const MCP_AUTOMATION_OPERATION_NAMES: readonly ["apply_auto_branching", "trigger_belief_review"];
|
|
21
21
|
declare const DUPLICATE_OPERATION_NAMES: readonly ["link_evidence"];
|
|
22
|
-
declare const PLATFORM_PUBLIC_OPERATION_NAMES: readonly ["compile_context", "identity_whoami", "check_permission", "filter_by_permission", "create_belief", "get_belief", "list_beliefs", "refine_belief", "modulate_confidence", "fork_belief", "archive_belief", "search_beliefs", "bisect_confidence", "create_evidence", "get_evidence", "list_evidence", "search_evidence", "link_evidence_to_belief", "link_evidence_to_question", "create_question", "get_question", "list_questions", "refine_question", "update_question_status", "archive_question", "create_answer", "get_answer", "find_missing_questions", "get_high_priority_questions", "get_falsification_questions", "create_topic", "get_topic", "list_topics", "update_topic", "get_topic_tree", "create_edge", "query_lineage", "traverse_graph", "get_graph_neighborhood", "get_graph_structure_analysis", "list_graph_intelligence_queries", "run_graph_intelligence_query", "find_contradictions", "flag_contradiction", "detect_confirmation_bias", "get_topic_coverage", "get_graph_gaps", "list_lenses", "apply_lens_to_topic", "remove_lens_from_topic", "get_ontology", "list_ontologies", "apply_ontology", "match_entity_type", "resolve_effective_ontology", "add_worktree", "activate_worktree", "list_worktrees", "list_all_worktrees", "list_campaigns", "update_worktree_targets", "update_worktree_metadata", "create_task", "list_tasks", "update_task", "complete_task", "create_lens", "create_ontology", "update_ontology", "archive_ontology", "create_ontology_version", "link_evidence"];
|
|
22
|
+
declare const PLATFORM_PUBLIC_OPERATION_NAMES: readonly ["compile_context", "identity_whoami", "resolve_interactive_principal", "check_permission", "filter_by_permission", "create_belief", "get_belief", "list_beliefs", "refine_belief", "modulate_confidence", "fork_belief", "archive_belief", "search_beliefs", "bisect_confidence", "create_evidence", "get_evidence", "list_evidence", "search_evidence", "link_evidence_to_belief", "link_evidence_to_question", "create_question", "get_question", "list_questions", "refine_question", "update_question_status", "archive_question", "create_answer", "get_answer", "find_missing_questions", "get_high_priority_questions", "get_falsification_questions", "create_epistemic_node", "get_epistemic_node", "list_epistemic_nodes", "update_epistemic_node", "archive_epistemic_node", "verify_epistemic_node", "supersede_epistemic_node", "batch_create_epistemic_nodes", "create_topic", "get_topic", "list_topics", "update_topic", "get_topic_tree", "materialize_topic_graph", "get_topic_graph_spine", "create_edge", "update_edge", "remove_edge", "remove_edges_between", "batch_create_edges", "query_lineage", "traverse_graph", "get_graph_neighborhood", "get_graph_structure_analysis", "list_graph_intelligence_queries", "run_graph_intelligence_query", "find_contradictions", "flag_contradiction", "detect_confirmation_bias", "get_topic_coverage", "get_graph_gaps", "list_lenses", "apply_lens_to_topic", "remove_lens_from_topic", "get_ontology", "list_ontologies", "apply_ontology", "match_entity_type", "resolve_effective_ontology", "add_worktree", "activate_worktree", "list_worktrees", "list_all_worktrees", "list_campaigns", "update_worktree_targets", "update_worktree_metadata", "create_task", "list_tasks", "update_task", "complete_task", "create_lens", "create_ontology", "update_ontology", "archive_ontology", "create_ontology_version", "link_evidence"];
|
|
23
23
|
declare const TENANT_PUBLIC_OPERATION_NAMES: readonly ["analyze_topic_density", "discover_entity_connections", "trace_entity_impact", "resolve_effective_ontology", "get_observation_context", "ingest_observation", "merge", "create_epistemic_contract", "evaluate_contract", "get_contract_status", "publish_ontology_version", "deprecate_ontology_version", "manage_write_policy", "apply_auto_branching", "trigger_belief_review"];
|
|
24
24
|
declare const PLATFORM_INTERNAL_OPERATION_NAMES: readonly ["register_session", "heartbeat_session", "end_session", "list_active_sessions", "send_agent_message", "broadcast_message", "get_agent_inbox", "claim_files", "generate_session_handoff", "record_scope_learning", "pipeline_snapshot", "seed_belief_lattice", "get_lattice_coverage", "get_code_context", "get_change_history", "get_failure_log", "record_attempt", "begin_build_session", "push", "open_pull_request", "record_judgment", "get_audit_trail"];
|
|
25
25
|
declare const LEGACY_COMPAT_OPERATION_NAMES: readonly ["discover", "add_evidence", "answer_question", "get_confidence_history"];
|
|
@@ -52,6 +52,7 @@ function entries(names, surfaceClass, surfaceIntent, surfaces, rationale) {
|
|
|
52
52
|
var MCP_CORE_OPERATION_NAMES = [
|
|
53
53
|
"compile_context",
|
|
54
54
|
"identity_whoami",
|
|
55
|
+
"resolve_interactive_principal",
|
|
55
56
|
"check_permission",
|
|
56
57
|
"filter_by_permission",
|
|
57
58
|
"create_belief",
|
|
@@ -80,14 +81,28 @@ var MCP_CORE_OPERATION_NAMES = [
|
|
|
80
81
|
"find_missing_questions",
|
|
81
82
|
"get_high_priority_questions",
|
|
82
83
|
"get_falsification_questions",
|
|
84
|
+
"create_epistemic_node",
|
|
85
|
+
"get_epistemic_node",
|
|
86
|
+
"list_epistemic_nodes",
|
|
87
|
+
"update_epistemic_node",
|
|
88
|
+
"archive_epistemic_node",
|
|
89
|
+
"verify_epistemic_node",
|
|
90
|
+
"supersede_epistemic_node",
|
|
91
|
+
"batch_create_epistemic_nodes",
|
|
83
92
|
"create_topic",
|
|
84
93
|
"get_topic",
|
|
85
94
|
"list_topics",
|
|
86
95
|
"update_topic",
|
|
87
|
-
"get_topic_tree"
|
|
96
|
+
"get_topic_tree",
|
|
97
|
+
"materialize_topic_graph",
|
|
98
|
+
"get_topic_graph_spine"
|
|
88
99
|
];
|
|
89
100
|
var MCP_ANALYSIS_PLATFORM_OPERATION_NAMES = [
|
|
90
101
|
"create_edge",
|
|
102
|
+
"update_edge",
|
|
103
|
+
"remove_edge",
|
|
104
|
+
"remove_edges_between",
|
|
105
|
+
"batch_create_edges",
|
|
91
106
|
"query_lineage",
|
|
92
107
|
"traverse_graph",
|
|
93
108
|
"get_graph_neighborhood",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/function-registry/manifest.ts"],"names":[],"mappings":";AAeA,IAAM,gBAAA,GAAuC;AAAA,EAC3C,GAAA,EAAK,QAAA;AAAA,EACL,IAAA,EAAM,QAAA;AAAA,EACN,GAAA,EAAK,QAAA;AAAA,EACL,GAAA,EAAK;AACP,CAAA;AAEA,IAAM,cAAA,GAAqC;AAAA,EACzC,GAAA,EAAK,UAAA;AAAA,EACL,IAAA,EAAM,UAAA;AAAA,EACN,GAAA,EAAK,UAAA;AAAA,EACL,GAAA,EAAK;AACP,CAAA;AAEA,IAAM,qBAAA,GAA4C;AAAA,EAChD,GA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AACA,EAAA,IACE,MAAM,aAAA,KAAkB,eAAA,IACxB,KAAA,CAAM,QAAA,CAAS,QAAQ,MAAA,EACvB;AACA,IAAA,UAAA,CAAW,KAAK,gDAAgD,CAAA;AAAA,EAClE;AACA,EAAA,IAAI,MAAM,aAAA,KAAkB,cAAA,IAAkB,KAAA,CAAM,QAAA,CAAS,QAAQ,MAAA,EAAQ;AAC3E,IAAA,UAAA,CAAW,KAAK,+CAA+C,CAAA;AAAA,EACjE;AACA,EAAA,IACE,MAAM,aAAA,KAAkB,gBAAA,IACxB,KAAA,CAAM,QAAA,CAAS,QAAQ,QAAA,EACvB;AACA,IAAA,UAAA,CAAW,KAAK,2DAA2D,CAAA;AAAA,EAC7E;AACA,EAAA,OAAO,UAAA;AACT","file":"manifest.js","sourcesContent":["import type {\n FunctionSurfaceIntent,\n SurfaceClass,\n SurfaceExposure,\n FunctionSurfaceMap,\n} from \"./types.js\";\n\nexport type LucernOperationManifestEntry = {\n name: string;\n surfaceClass: SurfaceClass;\n surfaceIntent: FunctionSurfaceIntent;\n surfaces: FunctionSurfaceMap;\n rationale: string;\n};\n\nconst publicEverywhere: FunctionSurfaceMap = {\n sdk: \"public\",\n rest: \"public\",\n mcp: \"public\",\n cli: \"public\",\n};\n\nconst internalSystem: FunctionSurfaceMap = {\n sdk: \"internal\",\n rest: \"internal\",\n mcp: \"internal\",\n cli: \"internal\",\n};\n\nconst publicWithInternalMcp: FunctionSurfaceMap = {\n sdk: \"public\",\n rest: \"public\",\n mcp: \"internal\",\n cli: \"public\",\n};\n\nconst publicWithoutMcp: FunctionSurfaceMap = {\n sdk: \"public\",\n rest: \"public\",\n mcp: \"none\",\n cli: \"none\",\n};\n\nconst sdkOnlyPublic: FunctionSurfaceMap = {\n sdk: \"public\",\n rest: \"none\",\n mcp: \"none\",\n cli: \"none\",\n};\n\nconst mcpOnlyInternal: FunctionSurfaceMap = {\n sdk: \"none\",\n rest: \"none\",\n mcp: \"internal\",\n cli: \"none\",\n};\n\nfunction entries(\n names: readonly string[],\n surfaceClass: SurfaceClass,\n surfaceIntent: FunctionSurfaceIntent,\n surfaces: FunctionSurfaceMap,\n rationale: string\n): Record<string, LucernOperationManifestEntry> {\n return Object.fromEntries(\n names.map((name) => [\n name,\n {\n name,\n surfaceClass,\n surfaceIntent,\n surfaces,\n rationale,\n },\n ])\n );\n}\n\nexport const MCP_CORE_OPERATION_NAMES = [\n \"compile_context\",\n \"identity_whoami\",\n \"check_permission\",\n \"filter_by_permission\",\n \"create_belief\",\n \"get_belief\",\n \"list_beliefs\",\n \"refine_belief\",\n \"modulate_confidence\",\n \"fork_belief\",\n \"archive_belief\",\n \"search_beliefs\",\n \"bisect_confidence\",\n \"create_evidence\",\n \"get_evidence\",\n \"list_evidence\",\n \"search_evidence\",\n \"link_evidence_to_belief\",\n \"link_evidence_to_question\",\n \"create_question\",\n \"get_question\",\n \"list_questions\",\n \"refine_question\",\n \"update_question_status\",\n \"archive_question\",\n \"create_answer\",\n \"get_answer\",\n \"find_missing_questions\",\n \"get_high_priority_questions\",\n \"get_falsification_questions\",\n \"create_topic\",\n \"get_topic\",\n \"list_topics\",\n \"update_topic\",\n \"get_topic_tree\",\n] as const;\n\nexport const MCP_ANALYSIS_PLATFORM_OPERATION_NAMES = [\n \"create_edge\",\n \"query_lineage\",\n \"traverse_graph\",\n \"get_graph_neighborhood\",\n \"get_graph_structure_analysis\",\n \"list_graph_intelligence_queries\",\n \"run_graph_intelligence_query\",\n \"find_contradictions\",\n \"flag_contradiction\",\n \"detect_confirmation_bias\",\n \"get_topic_coverage\",\n \"get_graph_gaps\",\n] as const;\n\nexport const MCP_ANALYSIS_TENANT_OPERATION_NAMES = [\n \"analyze_topic_density\",\n \"discover_entity_connections\",\n \"trace_entity_impact\",\n] as const;\n\nexport const MCP_WORKFLOW_PLATFORM_OPERATION_NAMES = [\n \"list_lenses\",\n \"apply_lens_to_topic\",\n \"remove_lens_from_topic\",\n \"get_ontology\",\n \"list_ontologies\",\n \"apply_ontology\",\n \"match_entity_type\",\n \"resolve_effective_ontology\",\n \"add_worktree\",\n \"activate_worktree\",\n \"list_worktrees\",\n \"list_all_worktrees\",\n \"list_campaigns\",\n \"update_worktree_targets\",\n \"update_worktree_metadata\",\n \"create_task\",\n \"list_tasks\",\n \"update_task\",\n \"complete_task\",\n] as const;\n\nexport const MCP_WORKFLOW_TENANT_OPERATION_NAMES = [\n \"resolve_effective_ontology\",\n \"get_observation_context\",\n \"ingest_observation\",\n \"merge\",\n] as const;\n\nexport const MCP_GOVERNANCE_PLATFORM_OPERATION_NAMES = [\n \"create_lens\",\n \"create_ontology\",\n \"update_ontology\",\n \"archive_ontology\",\n \"create_ontology_version\",\n] as const;\n\nexport const MCP_GOVERNANCE_TENANT_OPERATION_NAMES = [\n \"create_epistemic_contract\",\n \"evaluate_contract\",\n \"get_contract_status\",\n \"publish_ontology_version\",\n \"deprecate_ontology_version\",\n \"manage_write_policy\",\n] as const;\n\nexport const MCP_AUTOMATION_OPERATION_NAMES = [\n \"apply_auto_branching\",\n \"trigger_belief_review\",\n] as const;\n\nexport const DUPLICATE_OPERATION_NAMES = [\n \"link_evidence\",\n] as const;\n\nexport const PLATFORM_PUBLIC_OPERATION_NAMES = [\n ...MCP_CORE_OPERATION_NAMES,\n ...MCP_ANALYSIS_PLATFORM_OPERATION_NAMES,\n ...MCP_WORKFLOW_PLATFORM_OPERATION_NAMES,\n ...MCP_GOVERNANCE_PLATFORM_OPERATION_NAMES,\n ...DUPLICATE_OPERATION_NAMES,\n] as const;\n\nexport const TENANT_PUBLIC_OPERATION_NAMES = [\n ...MCP_ANALYSIS_TENANT_OPERATION_NAMES,\n ...MCP_WORKFLOW_TENANT_OPERATION_NAMES,\n ...MCP_GOVERNANCE_TENANT_OPERATION_NAMES,\n ...MCP_AUTOMATION_OPERATION_NAMES,\n] as const;\n\nexport const PLATFORM_INTERNAL_OPERATION_NAMES = [\n \"register_session\",\n \"heartbeat_session\",\n \"end_session\",\n \"list_active_sessions\",\n \"send_agent_message\",\n \"broadcast_message\",\n \"get_agent_inbox\",\n \"claim_files\",\n \"generate_session_handoff\",\n \"record_scope_learning\",\n \"pipeline_snapshot\",\n \"seed_belief_lattice\",\n \"get_lattice_coverage\",\n \"get_code_context\",\n \"get_change_history\",\n \"get_failure_log\",\n \"record_attempt\",\n \"begin_build_session\",\n \"push\",\n \"open_pull_request\",\n \"record_judgment\",\n \"get_audit_trail\",\n] as const;\n\nexport const LEGACY_COMPAT_OPERATION_NAMES = [\n \"discover\",\n \"add_evidence\",\n \"answer_question\",\n \"get_confidence_history\",\n] as const;\n\nexport const SDK_ONLY_OPERATION_NAMES = [\n \"start_worktree\",\n \"update_worktree_phase\",\n \"advance_worktree_phase\",\n \"add_note_to_worktree\",\n \"link_document_to_worktree\",\n \"link_evidence_to_worktree\",\n \"link_question_to_worktree\",\n \"link_belief_to_worktree\",\n \"create_synthesized_belief\",\n \"complete_hypothesis_formation\",\n \"complete_evidence_review\",\n \"refine_worktree_belief\",\n \"trace_provenance\",\n \"get_belief_relationships\",\n \"get_belief_support_chain\",\n \"explore_connections\",\n \"get_deep_lineage\",\n \"graph_aware_search\",\n \"get_collection_conviction\",\n \"get_conviction_trend\",\n \"analyze_belief_criticality\",\n \"analyze_belief_cluster_candidates\",\n \"create_belief_conditional\",\n \"get_necessary_evidence\",\n \"analyze_reasoning_depth\",\n \"get_evidence_by_methodology\",\n \"create_evidence_task\",\n \"get_task_counts\",\n \"add_research_action\",\n \"get_predictions\",\n \"get_surprise_detection\",\n \"get_challenged_beliefs\",\n \"get_causal_chains\",\n \"get_non_consensus_beliefs\",\n \"get_beliefs_by_epistemic_status\",\n \"detect_anchoring_bias\",\n \"detect_source_concentration\",\n \"find_soft_contradictions\",\n \"find_semantic_bridges\",\n \"find_semantic_orphans\",\n] as const;\n\nexport const MCP_ONLY_INTERNAL_OPERATION_NAMES = [\n \"evaluate_engineering_contract\",\n \"evaluate_research_contract\",\n] as const;\n\nexport const FORBIDDEN_APPLICATION_OPERATION_NAMES = [\n \"execute_deep_research\",\n \"search_sources\",\n \"search_resources\",\n \"get_privileged_evidence\",\n \"get_privileged_signals\",\n \"get_thesis_artifacts\",\n] as const;\n\nexport const LUCERN_OPERATION_MANIFEST = {\n ...entries(\n MCP_CORE_OPERATION_NAMES,\n \"platform_public\",\n \"mcp_core\",\n publicEverywhere,\n \"Default conversational Lucern MCP primitive for reading, writing, and shaping the reasoning graph.\"\n ),\n ...entries(\n MCP_ANALYSIS_PLATFORM_OPERATION_NAMES,\n \"platform_public\",\n \"mcp_analysis\",\n publicEverywhere,\n \"High-signal graph analysis operation that belongs in chat/MCP because users naturally ask for gaps, contradictions, lineage, and coverage.\"\n ),\n ...entries(\n MCP_ANALYSIS_TENANT_OPERATION_NAMES,\n \"tenant_public\",\n \"mcp_analysis\",\n publicEverywhere,\n \"Tenant-scoped analysis operation that remains MCP-visible because agents can answer graph-quality and impact questions from chat.\"\n ),\n ...entries(\n MCP_WORKFLOW_PLATFORM_OPERATION_NAMES,\n \"platform_public\",\n \"mcp_workflow\",\n publicEverywhere,\n \"Workflow operation expected by coding agents and human MCP users managing Lucern worktrees, tasks, lenses, and observations.\"\n ),\n ...entries(\n MCP_WORKFLOW_TENANT_OPERATION_NAMES,\n \"tenant_public\",\n \"mcp_workflow\",\n publicEverywhere,\n \"Tenant-scoped workflow operation expected by coding agents and human MCP users managing observations and worktree lifecycle.\"\n ),\n ...entries(\n MCP_AUTOMATION_OPERATION_NAMES,\n \"tenant_public\",\n \"mcp_analysis\",\n publicEverywhere,\n \"Tenant-scoped automation that remains MCP-visible because agents can explicitly request review or branching assistance.\"\n ),\n ...entries(\n MCP_GOVERNANCE_PLATFORM_OPERATION_NAMES,\n \"platform_public\",\n \"mcp_governance\",\n publicWithInternalMcp,\n \"Governance/admin operation. SDK, REST, and CLI remain public, but MCP is internal by default to keep chat surfaces focused.\"\n ),\n ...entries(\n MCP_GOVERNANCE_TENANT_OPERATION_NAMES,\n \"tenant_public\",\n \"mcp_governance\",\n publicWithInternalMcp,\n \"Governance/admin operation. SDK, REST, and CLI remain public, but MCP is internal by default to keep chat surfaces focused.\"\n ),\n ...entries(\n DUPLICATE_OPERATION_NAMES,\n \"platform_public\",\n \"compatibility\",\n publicWithoutMcp,\n \"Duplicate compatibility operation kept for SDK/REST callers, removed from MCP/CLI discovery in favor of the canonical specific tool.\"\n ),\n ...entries(\n PLATFORM_INTERNAL_OPERATION_NAMES,\n \"platform_internal\",\n \"system\",\n internalSystem,\n \"Lucern system/background operation. Available to platform code paths, hidden from public MCP discovery.\"\n ),\n ...entries(\n LEGACY_COMPAT_OPERATION_NAMES,\n \"legacy_compat\",\n \"compatibility\",\n publicWithoutMcp,\n \"Temporary compatibility operation. Must name a canonical replacement before removal.\"\n ),\n ...entries(\n SDK_ONLY_OPERATION_NAMES,\n \"tenant_public\",\n \"sdk_granular\",\n sdkOnlyPublic,\n \"Granular Lucern SDK operation. Not an MCP, REST, or CLI tool until backed by the generated function pipe.\"\n ),\n ...entries(\n MCP_ONLY_INTERNAL_OPERATION_NAMES,\n \"platform_internal\",\n \"system\",\n mcpOnlyInternal,\n \"Lucern MCP-only platform operation for local agent/bootstrap or verification workflows. Hidden from public discovery.\"\n ),\n} as const satisfies Record<string, LucernOperationManifestEntry>;\n\nexport type LucernOperationName = keyof typeof LUCERN_OPERATION_MANIFEST;\n\nexport function surfaceEnabled(exposure: SurfaceExposure): boolean {\n return exposure !== \"none\";\n}\n\nexport function surfaceIntentGateViolations(\n entry: LucernOperationManifestEntry\n): string[] {\n const violations: string[] = [];\n if (entry.surfaceIntent === \"system\" && entry.surfaces.mcp === \"public\") {\n violations.push(\"system operations cannot be public MCP tools\");\n }\n if (\n entry.surfaceIntent === \"compatibility\" &&\n entry.surfaces.mcp !== \"none\"\n ) {\n violations.push(\"compatibility operations must not be MCP tools\");\n }\n if (entry.surfaceIntent === \"sdk_granular\" && entry.surfaces.mcp !== \"none\") {\n violations.push(\"SDK-granular operations must not be MCP tools\");\n }\n if (\n entry.surfaceIntent === \"mcp_governance\" &&\n entry.surfaces.mcp === \"public\"\n ) {\n violations.push(\"governance operations must be internal or absent from MCP\");\n }\n return violations;\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../../src/function-registry/manifest.ts"],"names":[],"mappings":";AAeA,IAAM,gBAAA,GAAuC;AAAA,EAC3C,GAAA,EAAK,QAAA;AAAA,EACL,IAAA,EAAM,QAAA;AAAA,EACN,GAAA,EAAK,QAAA;AAAA,EACL,GAAA,EAAK;AACP,CAAA;AAEA,IAAM,cAAA,GAAqC;AAAA,EACzC,GAAA,EAAK,UAAA;AAAA,EACL,IAAA,EAAM,UAAA;AAAA,EACN,GAAA,EAAK,UAAA;AAAA,EACL,GAAA,EAAK;AACP,CAAA;AAEA,IAAM,qBAAA,GAA4C;AAAA,EAChD,GAAA,EAAK,QAAA;AAAA,EACL,IAAA,EAAM,QAAA;AAAA,EACN,GAAA,EAAK,UAAA;AAAA,EACL,GAAA,EAAK;AACP,CAAA;AAEA,IAAM,gBAAA,GAAuC;AAAA,EAC3C,GAAA,EAAK,QAAA;AAAA,EACL,IAAA,EAAM,QAAA;AAAA,EACN,GAAA,EAAK,MAAA;AAAA,EACL,GAAA,EAAK;AACP,CAAA;AAEA,IAAM,aAAA,GAAoC;AAAA,EACxC,GAAA,EAAK,QAAA;AAAA,EACL,IAAA,EAAM,MAAA;AAAA,EACN,GAAA,EAAK,MAAA;AAAA,EACL,GAAA,EAAK;AACP,CAAA;AAEA,IAAM,eAAA,GAAsC;AAAA,EAC1C,GAAA,EAAK,MAAA;AAAA,EACL,IAAA,EAAM,MAAA;AAAA,EACN,GAAA,EAAK,UAAA;AAAA,EACL,GAAA,EAAK;AACP,CAAA;AAEA,SAAS,OAAA,CACP,KAAA,EACA,YAAA,EACA,aAAA,EACA,UACA,SAAA,EAC8C;AAC9C,EAAA,OAAO,MAAA,CAAO,WAAA;AAAA,IACZ,KAAA,CAAM,GAAA,CAAI,CAAC,IAAA,KAAS;AAAA,MAClB,IAAA;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A;AACT","file":"manifest.js","sourcesContent":["import type {\n FunctionSurfaceIntent,\n SurfaceClass,\n SurfaceExposure,\n FunctionSurfaceMap,\n} from \"./types.js\";\n\nexport type LucernOperationManifestEntry = {\n name: string;\n surfaceClass: SurfaceClass;\n surfaceIntent: FunctionSurfaceIntent;\n surfaces: FunctionSurfaceMap;\n rationale: string;\n};\n\nconst publicEverywhere: FunctionSurfaceMap = {\n sdk: \"public\",\n rest: \"public\",\n mcp: \"public\",\n cli: \"public\",\n};\n\nconst internalSystem: FunctionSurfaceMap = {\n sdk: \"internal\",\n rest: \"internal\",\n mcp: \"internal\",\n cli: \"internal\",\n};\n\nconst publicWithInternalMcp: FunctionSurfaceMap = {\n sdk: \"public\",\n rest: \"public\",\n mcp: \"internal\",\n cli: \"public\",\n};\n\nconst publicWithoutMcp: FunctionSurfaceMap = {\n sdk: \"public\",\n rest: \"public\",\n mcp: \"none\",\n cli: \"none\",\n};\n\nconst sdkOnlyPublic: FunctionSurfaceMap = {\n sdk: \"public\",\n rest: \"none\",\n mcp: \"none\",\n cli: \"none\",\n};\n\nconst mcpOnlyInternal: FunctionSurfaceMap = {\n sdk: \"none\",\n rest: \"none\",\n mcp: \"internal\",\n cli: \"none\",\n};\n\nfunction entries(\n names: readonly string[],\n surfaceClass: SurfaceClass,\n surfaceIntent: FunctionSurfaceIntent,\n surfaces: FunctionSurfaceMap,\n rationale: string\n): Record<string, LucernOperationManifestEntry> {\n return Object.fromEntries(\n names.map((name) => [\n name,\n {\n name,\n surfaceClass,\n surfaceIntent,\n surfaces,\n rationale,\n },\n ])\n );\n}\n\nexport const MCP_CORE_OPERATION_NAMES = [\n \"compile_context\",\n \"identity_whoami\",\n \"resolve_interactive_principal\",\n \"check_permission\",\n \"filter_by_permission\",\n \"create_belief\",\n \"get_belief\",\n \"list_beliefs\",\n \"refine_belief\",\n \"modulate_confidence\",\n \"fork_belief\",\n \"archive_belief\",\n \"search_beliefs\",\n \"bisect_confidence\",\n \"create_evidence\",\n \"get_evidence\",\n \"list_evidence\",\n \"search_evidence\",\n \"link_evidence_to_belief\",\n \"link_evidence_to_question\",\n \"create_question\",\n \"get_question\",\n \"list_questions\",\n \"refine_question\",\n \"update_question_status\",\n \"archive_question\",\n \"create_answer\",\n \"get_answer\",\n \"find_missing_questions\",\n \"get_high_priority_questions\",\n \"get_falsification_questions\",\n \"create_epistemic_node\",\n \"get_epistemic_node\",\n \"list_epistemic_nodes\",\n \"update_epistemic_node\",\n \"archive_epistemic_node\",\n \"verify_epistemic_node\",\n \"supersede_epistemic_node\",\n \"batch_create_epistemic_nodes\",\n \"create_topic\",\n \"get_topic\",\n \"list_topics\",\n \"update_topic\",\n \"get_topic_tree\",\n \"materialize_topic_graph\",\n \"get_topic_graph_spine\",\n] as const;\n\nexport const MCP_ANALYSIS_PLATFORM_OPERATION_NAMES = [\n \"create_edge\",\n \"update_edge\",\n \"remove_edge\",\n \"remove_edges_between\",\n \"batch_create_edges\",\n \"query_lineage\",\n \"traverse_graph\",\n \"get_graph_neighborhood\",\n \"get_graph_structure_analysis\",\n \"list_graph_intelligence_queries\",\n \"run_graph_intelligence_query\",\n \"find_contradictions\",\n \"flag_contradiction\",\n \"detect_confirmation_bias\",\n \"get_topic_coverage\",\n \"get_graph_gaps\",\n] as const;\n\nexport const MCP_ANALYSIS_TENANT_OPERATION_NAMES = [\n \"analyze_topic_density\",\n \"discover_entity_connections\",\n \"trace_entity_impact\",\n] as const;\n\nexport const MCP_WORKFLOW_PLATFORM_OPERATION_NAMES = [\n \"list_lenses\",\n \"apply_lens_to_topic\",\n \"remove_lens_from_topic\",\n \"get_ontology\",\n \"list_ontologies\",\n \"apply_ontology\",\n \"match_entity_type\",\n \"resolve_effective_ontology\",\n \"add_worktree\",\n \"activate_worktree\",\n \"list_worktrees\",\n \"list_all_worktrees\",\n \"list_campaigns\",\n \"update_worktree_targets\",\n \"update_worktree_metadata\",\n \"create_task\",\n \"list_tasks\",\n \"update_task\",\n \"complete_task\",\n] as const;\n\nexport const MCP_WORKFLOW_TENANT_OPERATION_NAMES = [\n \"resolve_effective_ontology\",\n \"get_observation_context\",\n \"ingest_observation\",\n \"merge\",\n] as const;\n\nexport const MCP_GOVERNANCE_PLATFORM_OPERATION_NAMES = [\n \"create_lens\",\n \"create_ontology\",\n \"update_ontology\",\n \"archive_ontology\",\n \"create_ontology_version\",\n] as const;\n\nexport const MCP_GOVERNANCE_TENANT_OPERATION_NAMES = [\n \"create_epistemic_contract\",\n \"evaluate_contract\",\n \"get_contract_status\",\n \"publish_ontology_version\",\n \"deprecate_ontology_version\",\n \"manage_write_policy\",\n] as const;\n\nexport const MCP_AUTOMATION_OPERATION_NAMES = [\n \"apply_auto_branching\",\n \"trigger_belief_review\",\n] as const;\n\nexport const DUPLICATE_OPERATION_NAMES = [\n \"link_evidence\",\n] as const;\n\nexport const PLATFORM_PUBLIC_OPERATION_NAMES = [\n ...MCP_CORE_OPERATION_NAMES,\n ...MCP_ANALYSIS_PLATFORM_OPERATION_NAMES,\n ...MCP_WORKFLOW_PLATFORM_OPERATION_NAMES,\n ...MCP_GOVERNANCE_PLATFORM_OPERATION_NAMES,\n ...DUPLICATE_OPERATION_NAMES,\n] as const;\n\nexport const TENANT_PUBLIC_OPERATION_NAMES = [\n ...MCP_ANALYSIS_TENANT_OPERATION_NAMES,\n ...MCP_WORKFLOW_TENANT_OPERATION_NAMES,\n ...MCP_GOVERNANCE_TENANT_OPERATION_NAMES,\n ...MCP_AUTOMATION_OPERATION_NAMES,\n] as const;\n\nexport const PLATFORM_INTERNAL_OPERATION_NAMES = [\n \"register_session\",\n \"heartbeat_session\",\n \"end_session\",\n \"list_active_sessions\",\n \"send_agent_message\",\n \"broadcast_message\",\n \"get_agent_inbox\",\n \"claim_files\",\n \"generate_session_handoff\",\n \"record_scope_learning\",\n \"pipeline_snapshot\",\n \"seed_belief_lattice\",\n \"get_lattice_coverage\",\n \"get_code_context\",\n \"get_change_history\",\n \"get_failure_log\",\n \"record_attempt\",\n \"begin_build_session\",\n \"push\",\n \"open_pull_request\",\n \"record_judgment\",\n \"get_audit_trail\",\n] as const;\n\nexport const LEGACY_COMPAT_OPERATION_NAMES = [\n \"discover\",\n \"add_evidence\",\n \"answer_question\",\n \"get_confidence_history\",\n] as const;\n\nexport const SDK_ONLY_OPERATION_NAMES = [\n \"start_worktree\",\n \"update_worktree_phase\",\n \"advance_worktree_phase\",\n \"add_note_to_worktree\",\n \"link_document_to_worktree\",\n \"link_evidence_to_worktree\",\n \"link_question_to_worktree\",\n \"link_belief_to_worktree\",\n \"create_synthesized_belief\",\n \"complete_hypothesis_formation\",\n \"complete_evidence_review\",\n \"refine_worktree_belief\",\n \"trace_provenance\",\n \"get_belief_relationships\",\n \"get_belief_support_chain\",\n \"explore_connections\",\n \"get_deep_lineage\",\n \"graph_aware_search\",\n \"get_collection_conviction\",\n \"get_conviction_trend\",\n \"analyze_belief_criticality\",\n \"analyze_belief_cluster_candidates\",\n \"create_belief_conditional\",\n \"get_necessary_evidence\",\n \"analyze_reasoning_depth\",\n \"get_evidence_by_methodology\",\n \"create_evidence_task\",\n \"get_task_counts\",\n \"add_research_action\",\n \"get_predictions\",\n \"get_surprise_detection\",\n \"get_challenged_beliefs\",\n \"get_causal_chains\",\n \"get_non_consensus_beliefs\",\n \"get_beliefs_by_epistemic_status\",\n \"detect_anchoring_bias\",\n \"detect_source_concentration\",\n \"find_soft_contradictions\",\n \"find_semantic_bridges\",\n \"find_semantic_orphans\",\n] as const;\n\nexport const MCP_ONLY_INTERNAL_OPERATION_NAMES = [\n \"evaluate_engineering_contract\",\n \"evaluate_research_contract\",\n] as const;\n\nexport const FORBIDDEN_APPLICATION_OPERATION_NAMES = [\n \"execute_deep_research\",\n \"search_sources\",\n \"search_resources\",\n \"get_privileged_evidence\",\n \"get_privileged_signals\",\n \"get_thesis_artifacts\",\n] as const;\n\nexport const LUCERN_OPERATION_MANIFEST = {\n ...entries(\n MCP_CORE_OPERATION_NAMES,\n \"platform_public\",\n \"mcp_core\",\n publicEverywhere,\n \"Default conversational Lucern MCP primitive for reading, writing, and shaping the reasoning graph.\"\n ),\n ...entries(\n MCP_ANALYSIS_PLATFORM_OPERATION_NAMES,\n \"platform_public\",\n \"mcp_analysis\",\n publicEverywhere,\n \"High-signal graph analysis operation that belongs in chat/MCP because users naturally ask for gaps, contradictions, lineage, and coverage.\"\n ),\n ...entries(\n MCP_ANALYSIS_TENANT_OPERATION_NAMES,\n \"tenant_public\",\n \"mcp_analysis\",\n publicEverywhere,\n \"Tenant-scoped analysis operation that remains MCP-visible because agents can answer graph-quality and impact questions from chat.\"\n ),\n ...entries(\n MCP_WORKFLOW_PLATFORM_OPERATION_NAMES,\n \"platform_public\",\n \"mcp_workflow\",\n publicEverywhere,\n \"Workflow operation expected by coding agents and human MCP users managing Lucern worktrees, tasks, lenses, and observations.\"\n ),\n ...entries(\n MCP_WORKFLOW_TENANT_OPERATION_NAMES,\n \"tenant_public\",\n \"mcp_workflow\",\n publicEverywhere,\n \"Tenant-scoped workflow operation expected by coding agents and human MCP users managing observations and worktree lifecycle.\"\n ),\n ...entries(\n MCP_AUTOMATION_OPERATION_NAMES,\n \"tenant_public\",\n \"mcp_analysis\",\n publicEverywhere,\n \"Tenant-scoped automation that remains MCP-visible because agents can explicitly request review or branching assistance.\"\n ),\n ...entries(\n MCP_GOVERNANCE_PLATFORM_OPERATION_NAMES,\n \"platform_public\",\n \"mcp_governance\",\n publicWithInternalMcp,\n \"Governance/admin operation. SDK, REST, and CLI remain public, but MCP is internal by default to keep chat surfaces focused.\"\n ),\n ...entries(\n MCP_GOVERNANCE_TENANT_OPERATION_NAMES,\n \"tenant_public\",\n \"mcp_governance\",\n publicWithInternalMcp,\n \"Governance/admin operation. SDK, REST, and CLI remain public, but MCP is internal by default to keep chat surfaces focused.\"\n ),\n ...entries(\n DUPLICATE_OPERATION_NAMES,\n \"platform_public\",\n \"compatibility\",\n publicWithoutMcp,\n \"Duplicate compatibility operation kept for SDK/REST callers, removed from MCP/CLI discovery in favor of the canonical specific tool.\"\n ),\n ...entries(\n PLATFORM_INTERNAL_OPERATION_NAMES,\n \"platform_internal\",\n \"system\",\n internalSystem,\n \"Lucern system/background operation. Available to platform code paths, hidden from public MCP discovery.\"\n ),\n ...entries(\n LEGACY_COMPAT_OPERATION_NAMES,\n \"legacy_compat\",\n \"compatibility\",\n publicWithoutMcp,\n \"Temporary compatibility operation. Must name a canonical replacement before removal.\"\n ),\n ...entries(\n SDK_ONLY_OPERATION_NAMES,\n \"tenant_public\",\n \"sdk_granular\",\n sdkOnlyPublic,\n \"Granular Lucern SDK operation. Not an MCP, REST, or CLI tool until backed by the generated function pipe.\"\n ),\n ...entries(\n MCP_ONLY_INTERNAL_OPERATION_NAMES,\n \"platform_internal\",\n \"system\",\n mcpOnlyInternal,\n \"Lucern MCP-only platform operation for local agent/bootstrap or verification workflows. Hidden from public discovery.\"\n ),\n} as const satisfies Record<string, LucernOperationManifestEntry>;\n\nexport type LucernOperationName = keyof typeof LUCERN_OPERATION_MANIFEST;\n\nexport function surfaceEnabled(exposure: SurfaceExposure): boolean {\n return exposure !== \"none\";\n}\n\nexport function surfaceIntentGateViolations(\n entry: LucernOperationManifestEntry\n): string[] {\n const violations: string[] = [];\n if (entry.surfaceIntent === \"system\" && entry.surfaces.mcp === \"public\") {\n violations.push(\"system operations cannot be public MCP tools\");\n }\n if (\n entry.surfaceIntent === \"compatibility\" &&\n entry.surfaces.mcp !== \"none\"\n ) {\n violations.push(\"compatibility operations must not be MCP tools\");\n }\n if (entry.surfaceIntent === \"sdk_granular\" && entry.surfaces.mcp !== \"none\") {\n violations.push(\"SDK-granular operations must not be MCP tools\");\n }\n if (\n entry.surfaceIntent === \"mcp_governance\" &&\n entry.surfaces.mcp === \"public\"\n ) {\n violations.push(\"governance operations must be internal or absent from MCP\");\n }\n return violations;\n}\n"]}
|
|
@@ -0,0 +1,412 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* MCP Tool Contract Definitions
|
|
5
|
+
*
|
|
6
|
+
* Machine-readable source of truth for all Lucern MCP tool names,
|
|
7
|
+
* descriptions, parameters, and response schemas.
|
|
8
|
+
*
|
|
9
|
+
* CONTRACT SURFACE: These definitions are the external API for AI agents.
|
|
10
|
+
* Renaming a tool or changing its description is a BREAKING CHANGE.
|
|
11
|
+
*
|
|
12
|
+
* Git-native naming rules (enforced by lint):
|
|
13
|
+
* 1. Workflow tools use git verbs directly (add_worktree, merge, push, open_pull_request)
|
|
14
|
+
* 2. Knowledge tools use epistemic verbs (create_belief, fork_belief, modulate_confidence)
|
|
15
|
+
* 3. First sentence of description includes the git analog verb
|
|
16
|
+
* 4. Description includes "Like `git X`" parenthetical
|
|
17
|
+
* 5. Parameter names use domain terms (canonicalText, nodeId, baseRate)
|
|
18
|
+
*/
|
|
19
|
+
type McpToolContract = {
|
|
20
|
+
/** Stable tool name — breaking change to rename */
|
|
21
|
+
name: string;
|
|
22
|
+
/** Git-semantic description — breaking change to remove git references */
|
|
23
|
+
description: string;
|
|
24
|
+
/** Parameter schema (JSON Schema subset) */
|
|
25
|
+
parameters: Record<string, McpParameterDef>;
|
|
26
|
+
/** Required parameter names */
|
|
27
|
+
required: string[];
|
|
28
|
+
/** Response shape description */
|
|
29
|
+
response: McpResponseDef;
|
|
30
|
+
/** Which Lucern module owns the implementation */
|
|
31
|
+
ownerModule: string;
|
|
32
|
+
/** Ontology primitive this tool operates on */
|
|
33
|
+
ontologyPrimitive: "belief" | "evidence" | "source" | "question" | "judgment" | "worktree" | "branch" | "lens" | "edge" | "graph" | "task" | "policy" | "ontology" | "identity";
|
|
34
|
+
/** MCP surface tier — showcase (front page, every demo) or workhorse (complete CRUD, discovered when building) */
|
|
35
|
+
tier: "showcase" | "workhorse";
|
|
36
|
+
/** Hide this tool from public discovery surfaces. */
|
|
37
|
+
internal?: boolean;
|
|
38
|
+
/** Deprecation notice shown in contract-driven docs and discovery. */
|
|
39
|
+
deprecated?: string;
|
|
40
|
+
};
|
|
41
|
+
type McpParameterDef = {
|
|
42
|
+
type: "string" | "number" | "boolean" | "array" | "object";
|
|
43
|
+
description: string;
|
|
44
|
+
required?: boolean;
|
|
45
|
+
enum?: string[];
|
|
46
|
+
};
|
|
47
|
+
type McpResponseDef = {
|
|
48
|
+
description: string;
|
|
49
|
+
fields: Record<string, string>;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
type FunctionEffect = "read" | "write" | "admin";
|
|
53
|
+
|
|
54
|
+
type FunctionKind = "query" | "mutation" | "action";
|
|
55
|
+
type FunctionIdempotency = boolean | "required";
|
|
56
|
+
type FunctionSurfaceIntent = "mcp_core" | "mcp_analysis" | "mcp_workflow" | "mcp_governance" | "system" | "compatibility" | "sdk_granular";
|
|
57
|
+
type SurfaceClass = "platform_public" | "tenant_public" | "platform_internal" | "legacy_compat" | "application_tool" | "external_connector";
|
|
58
|
+
type SurfaceExposure = "public" | "internal" | "none";
|
|
59
|
+
type FunctionSurfaceMap = {
|
|
60
|
+
sdk: SurfaceExposure;
|
|
61
|
+
rest: SurfaceExposure;
|
|
62
|
+
mcp: SurfaceExposure;
|
|
63
|
+
cli: SurfaceExposure;
|
|
64
|
+
};
|
|
65
|
+
type ContractProjectionContext = {
|
|
66
|
+
tenantId?: string;
|
|
67
|
+
workspaceId?: string;
|
|
68
|
+
userId?: string;
|
|
69
|
+
principalId?: string;
|
|
70
|
+
correlationId?: string;
|
|
71
|
+
policyTraceId?: string;
|
|
72
|
+
idempotencyKey?: string;
|
|
73
|
+
};
|
|
74
|
+
type ContractInputProjection = (input: Record<string, unknown>, context: ContractProjectionContext) => Record<string, unknown>;
|
|
75
|
+
type ContractOutputProjection = (output: unknown, input: Record<string, unknown>, context: ContractProjectionContext) => unknown;
|
|
76
|
+
type FunctionConvexTarget = {
|
|
77
|
+
module: string;
|
|
78
|
+
functionName: string;
|
|
79
|
+
kind: FunctionKind;
|
|
80
|
+
injectSessionId?: "sessionId" | "fromSessionId";
|
|
81
|
+
injectSessionContext?: boolean;
|
|
82
|
+
broadcastToAll?: boolean;
|
|
83
|
+
inputProjection?: ContractInputProjection;
|
|
84
|
+
outputProjection?: ContractOutputProjection;
|
|
85
|
+
};
|
|
86
|
+
type FunctionGatewayTarget = {
|
|
87
|
+
handler: "identity.whoami" | "beliefs.list" | "evidence.list" | "questions.list" | "tasks.create" | "tasks.list" | "tasks.update" | "tasks.complete";
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
declare const nodesContracts: readonly [{
|
|
91
|
+
name: string;
|
|
92
|
+
kind: FunctionKind;
|
|
93
|
+
idempotent: FunctionIdempotency;
|
|
94
|
+
effects: readonly FunctionEffect[];
|
|
95
|
+
invariants: readonly string[] | undefined;
|
|
96
|
+
surfaceIntent: FunctionSurfaceIntent;
|
|
97
|
+
domain: string;
|
|
98
|
+
surfaceClass: SurfaceClass;
|
|
99
|
+
surfaces: FunctionSurfaceMap;
|
|
100
|
+
replacedBy: string | undefined;
|
|
101
|
+
rest: {
|
|
102
|
+
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
103
|
+
path: string;
|
|
104
|
+
};
|
|
105
|
+
sdk: {
|
|
106
|
+
namespace: string;
|
|
107
|
+
method: string;
|
|
108
|
+
};
|
|
109
|
+
mcp: {
|
|
110
|
+
exposed: boolean;
|
|
111
|
+
toolName: string;
|
|
112
|
+
} & McpToolContract & {
|
|
113
|
+
exposed: boolean;
|
|
114
|
+
toolName: string;
|
|
115
|
+
};
|
|
116
|
+
auth: {
|
|
117
|
+
scopes: string[];
|
|
118
|
+
allowedPrincipalTypes: ("user" | "service" | "agent" | "group" | "external_viewer")[];
|
|
119
|
+
};
|
|
120
|
+
convex: FunctionConvexTarget | undefined;
|
|
121
|
+
gateway: FunctionGatewayTarget | undefined;
|
|
122
|
+
args: z.ZodTypeAny;
|
|
123
|
+
returns: z.ZodTypeAny;
|
|
124
|
+
input: z.ZodTypeAny;
|
|
125
|
+
output: z.ZodTypeAny;
|
|
126
|
+
openapi: {
|
|
127
|
+
summary: string;
|
|
128
|
+
tags: string[];
|
|
129
|
+
};
|
|
130
|
+
}, {
|
|
131
|
+
name: string;
|
|
132
|
+
kind: FunctionKind;
|
|
133
|
+
idempotent: FunctionIdempotency;
|
|
134
|
+
effects: readonly FunctionEffect[];
|
|
135
|
+
invariants: readonly string[] | undefined;
|
|
136
|
+
surfaceIntent: FunctionSurfaceIntent;
|
|
137
|
+
domain: string;
|
|
138
|
+
surfaceClass: SurfaceClass;
|
|
139
|
+
surfaces: FunctionSurfaceMap;
|
|
140
|
+
replacedBy: string | undefined;
|
|
141
|
+
rest: {
|
|
142
|
+
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
143
|
+
path: string;
|
|
144
|
+
};
|
|
145
|
+
sdk: {
|
|
146
|
+
namespace: string;
|
|
147
|
+
method: string;
|
|
148
|
+
};
|
|
149
|
+
mcp: {
|
|
150
|
+
exposed: boolean;
|
|
151
|
+
toolName: string;
|
|
152
|
+
} & McpToolContract & {
|
|
153
|
+
exposed: boolean;
|
|
154
|
+
toolName: string;
|
|
155
|
+
};
|
|
156
|
+
auth: {
|
|
157
|
+
scopes: string[];
|
|
158
|
+
allowedPrincipalTypes: ("user" | "service" | "agent" | "group" | "external_viewer")[];
|
|
159
|
+
};
|
|
160
|
+
convex: FunctionConvexTarget | undefined;
|
|
161
|
+
gateway: FunctionGatewayTarget | undefined;
|
|
162
|
+
args: z.ZodTypeAny;
|
|
163
|
+
returns: z.ZodTypeAny;
|
|
164
|
+
input: z.ZodTypeAny;
|
|
165
|
+
output: z.ZodTypeAny;
|
|
166
|
+
openapi: {
|
|
167
|
+
summary: string;
|
|
168
|
+
tags: string[];
|
|
169
|
+
};
|
|
170
|
+
}, {
|
|
171
|
+
name: string;
|
|
172
|
+
kind: FunctionKind;
|
|
173
|
+
idempotent: FunctionIdempotency;
|
|
174
|
+
effects: readonly FunctionEffect[];
|
|
175
|
+
invariants: readonly string[] | undefined;
|
|
176
|
+
surfaceIntent: FunctionSurfaceIntent;
|
|
177
|
+
domain: string;
|
|
178
|
+
surfaceClass: SurfaceClass;
|
|
179
|
+
surfaces: FunctionSurfaceMap;
|
|
180
|
+
replacedBy: string | undefined;
|
|
181
|
+
rest: {
|
|
182
|
+
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
183
|
+
path: string;
|
|
184
|
+
};
|
|
185
|
+
sdk: {
|
|
186
|
+
namespace: string;
|
|
187
|
+
method: string;
|
|
188
|
+
};
|
|
189
|
+
mcp: {
|
|
190
|
+
exposed: boolean;
|
|
191
|
+
toolName: string;
|
|
192
|
+
} & McpToolContract & {
|
|
193
|
+
exposed: boolean;
|
|
194
|
+
toolName: string;
|
|
195
|
+
};
|
|
196
|
+
auth: {
|
|
197
|
+
scopes: string[];
|
|
198
|
+
allowedPrincipalTypes: ("user" | "service" | "agent" | "group" | "external_viewer")[];
|
|
199
|
+
};
|
|
200
|
+
convex: FunctionConvexTarget | undefined;
|
|
201
|
+
gateway: FunctionGatewayTarget | undefined;
|
|
202
|
+
args: z.ZodTypeAny;
|
|
203
|
+
returns: z.ZodTypeAny;
|
|
204
|
+
input: z.ZodTypeAny;
|
|
205
|
+
output: z.ZodTypeAny;
|
|
206
|
+
openapi: {
|
|
207
|
+
summary: string;
|
|
208
|
+
tags: string[];
|
|
209
|
+
};
|
|
210
|
+
}, {
|
|
211
|
+
name: string;
|
|
212
|
+
kind: FunctionKind;
|
|
213
|
+
idempotent: FunctionIdempotency;
|
|
214
|
+
effects: readonly FunctionEffect[];
|
|
215
|
+
invariants: readonly string[] | undefined;
|
|
216
|
+
surfaceIntent: FunctionSurfaceIntent;
|
|
217
|
+
domain: string;
|
|
218
|
+
surfaceClass: SurfaceClass;
|
|
219
|
+
surfaces: FunctionSurfaceMap;
|
|
220
|
+
replacedBy: string | undefined;
|
|
221
|
+
rest: {
|
|
222
|
+
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
223
|
+
path: string;
|
|
224
|
+
};
|
|
225
|
+
sdk: {
|
|
226
|
+
namespace: string;
|
|
227
|
+
method: string;
|
|
228
|
+
};
|
|
229
|
+
mcp: {
|
|
230
|
+
exposed: boolean;
|
|
231
|
+
toolName: string;
|
|
232
|
+
} & McpToolContract & {
|
|
233
|
+
exposed: boolean;
|
|
234
|
+
toolName: string;
|
|
235
|
+
};
|
|
236
|
+
auth: {
|
|
237
|
+
scopes: string[];
|
|
238
|
+
allowedPrincipalTypes: ("user" | "service" | "agent" | "group" | "external_viewer")[];
|
|
239
|
+
};
|
|
240
|
+
convex: FunctionConvexTarget | undefined;
|
|
241
|
+
gateway: FunctionGatewayTarget | undefined;
|
|
242
|
+
args: z.ZodTypeAny;
|
|
243
|
+
returns: z.ZodTypeAny;
|
|
244
|
+
input: z.ZodTypeAny;
|
|
245
|
+
output: z.ZodTypeAny;
|
|
246
|
+
openapi: {
|
|
247
|
+
summary: string;
|
|
248
|
+
tags: string[];
|
|
249
|
+
};
|
|
250
|
+
}, {
|
|
251
|
+
name: string;
|
|
252
|
+
kind: FunctionKind;
|
|
253
|
+
idempotent: FunctionIdempotency;
|
|
254
|
+
effects: readonly FunctionEffect[];
|
|
255
|
+
invariants: readonly string[] | undefined;
|
|
256
|
+
surfaceIntent: FunctionSurfaceIntent;
|
|
257
|
+
domain: string;
|
|
258
|
+
surfaceClass: SurfaceClass;
|
|
259
|
+
surfaces: FunctionSurfaceMap;
|
|
260
|
+
replacedBy: string | undefined;
|
|
261
|
+
rest: {
|
|
262
|
+
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
263
|
+
path: string;
|
|
264
|
+
};
|
|
265
|
+
sdk: {
|
|
266
|
+
namespace: string;
|
|
267
|
+
method: string;
|
|
268
|
+
};
|
|
269
|
+
mcp: {
|
|
270
|
+
exposed: boolean;
|
|
271
|
+
toolName: string;
|
|
272
|
+
} & McpToolContract & {
|
|
273
|
+
exposed: boolean;
|
|
274
|
+
toolName: string;
|
|
275
|
+
};
|
|
276
|
+
auth: {
|
|
277
|
+
scopes: string[];
|
|
278
|
+
allowedPrincipalTypes: ("user" | "service" | "agent" | "group" | "external_viewer")[];
|
|
279
|
+
};
|
|
280
|
+
convex: FunctionConvexTarget | undefined;
|
|
281
|
+
gateway: FunctionGatewayTarget | undefined;
|
|
282
|
+
args: z.ZodTypeAny;
|
|
283
|
+
returns: z.ZodTypeAny;
|
|
284
|
+
input: z.ZodTypeAny;
|
|
285
|
+
output: z.ZodTypeAny;
|
|
286
|
+
openapi: {
|
|
287
|
+
summary: string;
|
|
288
|
+
tags: string[];
|
|
289
|
+
};
|
|
290
|
+
}, {
|
|
291
|
+
name: string;
|
|
292
|
+
kind: FunctionKind;
|
|
293
|
+
idempotent: FunctionIdempotency;
|
|
294
|
+
effects: readonly FunctionEffect[];
|
|
295
|
+
invariants: readonly string[] | undefined;
|
|
296
|
+
surfaceIntent: FunctionSurfaceIntent;
|
|
297
|
+
domain: string;
|
|
298
|
+
surfaceClass: SurfaceClass;
|
|
299
|
+
surfaces: FunctionSurfaceMap;
|
|
300
|
+
replacedBy: string | undefined;
|
|
301
|
+
rest: {
|
|
302
|
+
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
303
|
+
path: string;
|
|
304
|
+
};
|
|
305
|
+
sdk: {
|
|
306
|
+
namespace: string;
|
|
307
|
+
method: string;
|
|
308
|
+
};
|
|
309
|
+
mcp: {
|
|
310
|
+
exposed: boolean;
|
|
311
|
+
toolName: string;
|
|
312
|
+
} & McpToolContract & {
|
|
313
|
+
exposed: boolean;
|
|
314
|
+
toolName: string;
|
|
315
|
+
};
|
|
316
|
+
auth: {
|
|
317
|
+
scopes: string[];
|
|
318
|
+
allowedPrincipalTypes: ("user" | "service" | "agent" | "group" | "external_viewer")[];
|
|
319
|
+
};
|
|
320
|
+
convex: FunctionConvexTarget | undefined;
|
|
321
|
+
gateway: FunctionGatewayTarget | undefined;
|
|
322
|
+
args: z.ZodTypeAny;
|
|
323
|
+
returns: z.ZodTypeAny;
|
|
324
|
+
input: z.ZodTypeAny;
|
|
325
|
+
output: z.ZodTypeAny;
|
|
326
|
+
openapi: {
|
|
327
|
+
summary: string;
|
|
328
|
+
tags: string[];
|
|
329
|
+
};
|
|
330
|
+
}, {
|
|
331
|
+
name: string;
|
|
332
|
+
kind: FunctionKind;
|
|
333
|
+
idempotent: FunctionIdempotency;
|
|
334
|
+
effects: readonly FunctionEffect[];
|
|
335
|
+
invariants: readonly string[] | undefined;
|
|
336
|
+
surfaceIntent: FunctionSurfaceIntent;
|
|
337
|
+
domain: string;
|
|
338
|
+
surfaceClass: SurfaceClass;
|
|
339
|
+
surfaces: FunctionSurfaceMap;
|
|
340
|
+
replacedBy: string | undefined;
|
|
341
|
+
rest: {
|
|
342
|
+
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
343
|
+
path: string;
|
|
344
|
+
};
|
|
345
|
+
sdk: {
|
|
346
|
+
namespace: string;
|
|
347
|
+
method: string;
|
|
348
|
+
};
|
|
349
|
+
mcp: {
|
|
350
|
+
exposed: boolean;
|
|
351
|
+
toolName: string;
|
|
352
|
+
} & McpToolContract & {
|
|
353
|
+
exposed: boolean;
|
|
354
|
+
toolName: string;
|
|
355
|
+
};
|
|
356
|
+
auth: {
|
|
357
|
+
scopes: string[];
|
|
358
|
+
allowedPrincipalTypes: ("user" | "service" | "agent" | "group" | "external_viewer")[];
|
|
359
|
+
};
|
|
360
|
+
convex: FunctionConvexTarget | undefined;
|
|
361
|
+
gateway: FunctionGatewayTarget | undefined;
|
|
362
|
+
args: z.ZodTypeAny;
|
|
363
|
+
returns: z.ZodTypeAny;
|
|
364
|
+
input: z.ZodTypeAny;
|
|
365
|
+
output: z.ZodTypeAny;
|
|
366
|
+
openapi: {
|
|
367
|
+
summary: string;
|
|
368
|
+
tags: string[];
|
|
369
|
+
};
|
|
370
|
+
}, {
|
|
371
|
+
name: string;
|
|
372
|
+
kind: FunctionKind;
|
|
373
|
+
idempotent: FunctionIdempotency;
|
|
374
|
+
effects: readonly FunctionEffect[];
|
|
375
|
+
invariants: readonly string[] | undefined;
|
|
376
|
+
surfaceIntent: FunctionSurfaceIntent;
|
|
377
|
+
domain: string;
|
|
378
|
+
surfaceClass: SurfaceClass;
|
|
379
|
+
surfaces: FunctionSurfaceMap;
|
|
380
|
+
replacedBy: string | undefined;
|
|
381
|
+
rest: {
|
|
382
|
+
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
383
|
+
path: string;
|
|
384
|
+
};
|
|
385
|
+
sdk: {
|
|
386
|
+
namespace: string;
|
|
387
|
+
method: string;
|
|
388
|
+
};
|
|
389
|
+
mcp: {
|
|
390
|
+
exposed: boolean;
|
|
391
|
+
toolName: string;
|
|
392
|
+
} & McpToolContract & {
|
|
393
|
+
exposed: boolean;
|
|
394
|
+
toolName: string;
|
|
395
|
+
};
|
|
396
|
+
auth: {
|
|
397
|
+
scopes: string[];
|
|
398
|
+
allowedPrincipalTypes: ("user" | "service" | "agent" | "group" | "external_viewer")[];
|
|
399
|
+
};
|
|
400
|
+
convex: FunctionConvexTarget | undefined;
|
|
401
|
+
gateway: FunctionGatewayTarget | undefined;
|
|
402
|
+
args: z.ZodTypeAny;
|
|
403
|
+
returns: z.ZodTypeAny;
|
|
404
|
+
input: z.ZodTypeAny;
|
|
405
|
+
output: z.ZodTypeAny;
|
|
406
|
+
openapi: {
|
|
407
|
+
summary: string;
|
|
408
|
+
tags: string[];
|
|
409
|
+
};
|
|
410
|
+
}];
|
|
411
|
+
|
|
412
|
+
export { nodesContracts };
|