@lucern/sdk 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -0
- package/dist/beliefs/index.js +41 -1
- package/dist/beliefs/index.js.map +1 -1
- package/dist/client.js +41 -1
- package/dist/client.js.map +1 -1
- package/dist/contradictions/index.js +41 -1
- package/dist/contradictions/index.js.map +1 -1
- package/dist/decisions/index.js +41 -1
- package/dist/decisions/index.js.map +1 -1
- package/dist/edges/index.js +41 -1
- package/dist/edges/index.js.map +1 -1
- package/dist/evidence/index.js +41 -1
- package/dist/evidence/index.js.map +1 -1
- package/dist/functionSurface.d.ts +11 -1
- package/dist/functionSurface.js +50 -0
- package/dist/functionSurface.js.map +1 -1
- package/dist/functionSurfaceClient.js +50 -0
- package/dist/functionSurfaceClient.js.map +1 -1
- package/dist/index.js +51 -1
- package/dist/index.js.map +1 -1
- package/dist/lenses/index.js +41 -1
- package/dist/lenses/index.js.map +1 -1
- package/dist/nodes/index.js +41 -1
- package/dist/nodes/index.js.map +1 -1
- package/dist/ontologies/index.js +41 -1
- package/dist/ontologies/index.js.map +1 -1
- package/dist/proof-attestation.json +1 -1
- package/dist/questions/index.js +41 -1
- package/dist/questions/index.js.map +1 -1
- package/dist/topics/index.js +41 -1
- package/dist/topics/index.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/dist/worktrees/index.js +41 -1
- package/dist/worktrees/index.js.map +1 -1
- package/package.json +5 -5
package/dist/nodes/index.js
CHANGED
|
@@ -6897,6 +6897,7 @@ var CONTRACTS = {
|
|
|
6897
6897
|
"activate_worktree": { method: "POST", path: "/worktrees/activate", kind: "mutation", idempotent: true, surfaceIntent: "mcp_workflow" },
|
|
6898
6898
|
"add_evidence": { method: "POST", path: "/evidence/add", kind: "mutation", idempotent: true, surfaceIntent: "compatibility" },
|
|
6899
6899
|
"add_worktree": { method: "POST", path: "/worktrees", kind: "mutation", idempotent: true, surfaceIntent: "mcp_workflow" },
|
|
6900
|
+
"analyze_graph_impact": { method: "POST", path: "/hybrid/impact", kind: "action", idempotent: false, surfaceIntent: "mcp_analysis" },
|
|
6900
6901
|
"analyze_topic_density": { method: "POST", path: "/scope/topic-density", kind: "query", idempotent: false, surfaceIntent: "mcp_analysis" },
|
|
6901
6902
|
"answer_question": { method: "POST", path: "/questions/answer", kind: "mutation", idempotent: true, surfaceIntent: "compatibility" },
|
|
6902
6903
|
"apply_auto_branching": { method: "POST", path: "/scope/auto-branching", kind: "mutation", idempotent: true, surfaceIntent: "mcp_analysis" },
|
|
@@ -6929,13 +6930,16 @@ var CONTRACTS = {
|
|
|
6929
6930
|
"create_topic": { method: "POST", path: "/topics", kind: "mutation", idempotent: true, surfaceIntent: "mcp_core" },
|
|
6930
6931
|
"deprecate_ontology_version": { method: "POST", path: "/ontologies/versions/deprecate", kind: "mutation", idempotent: true, surfaceIntent: "mcp_governance" },
|
|
6931
6932
|
"detect_confirmation_bias": { method: "POST", path: "/graph/confirmation-bias", kind: "query", idempotent: false, surfaceIntent: "mcp_analysis" },
|
|
6933
|
+
"detect_graph_drift": { method: "POST", path: "/hybrid/drift", kind: "action", idempotent: false, surfaceIntent: "mcp_analysis" },
|
|
6932
6934
|
"discover": { method: "POST", path: "/context/discover", kind: "query", idempotent: false, surfaceIntent: "compatibility" },
|
|
6933
6935
|
"discover_entity_connections": { method: "POST", path: "/context/entity-connections", kind: "query", idempotent: false, surfaceIntent: "mcp_analysis" },
|
|
6934
6936
|
"end_session": { method: "POST", path: "/coordination/end-session", kind: "mutation", idempotent: true, surfaceIntent: "system" },
|
|
6935
6937
|
"evaluate_contract": { method: "POST", path: "/contracts/evaluate", kind: "mutation", idempotent: true, surfaceIntent: "mcp_governance" },
|
|
6938
|
+
"expand_graph_neighborhood": { method: "POST", path: "/hybrid/neighborhood", kind: "action", idempotent: false, surfaceIntent: "mcp_analysis" },
|
|
6936
6939
|
"filter_by_permission": { method: "POST", path: "/identity/filter-by-permission", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
|
|
6937
6940
|
"find_contradictions": { method: "POST", path: "/graph/contradictions", kind: "query", idempotent: false, surfaceIntent: "mcp_analysis" },
|
|
6938
6941
|
"find_missing_questions": { method: "POST", path: "/questions/missing", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
|
|
6942
|
+
"find_related_nodes": { method: "POST", path: "/hybrid/related-nodes", kind: "action", idempotent: false, surfaceIntent: "mcp_analysis" },
|
|
6939
6943
|
"flag_contradiction": { method: "POST", path: "/contradictions", kind: "mutation", idempotent: true, surfaceIntent: "mcp_analysis" },
|
|
6940
6944
|
"fork_belief": { method: "POST", path: "/beliefs/fork", kind: "mutation", idempotent: true, surfaceIntent: "mcp_core" },
|
|
6941
6945
|
"generate_session_handoff": { method: "POST", path: "/bootstrap/session-handoff", kind: "query", idempotent: false, surfaceIntent: "system" },
|
|
@@ -6947,6 +6951,7 @@ var CONTRACTS = {
|
|
|
6947
6951
|
"get_code_context": { method: "POST", path: "/coding/context", kind: "query", idempotent: false, surfaceIntent: "system" },
|
|
6948
6952
|
"get_confidence_history": { method: "POST", path: "/beliefs/confidence-history", kind: "query", idempotent: false, surfaceIntent: "compatibility" },
|
|
6949
6953
|
"get_contract_status": { method: "POST", path: "/contracts/status", kind: "query", idempotent: false, surfaceIntent: "mcp_governance" },
|
|
6954
|
+
"get_embeddings_by_node_ids": { method: "POST", path: "/embeddings/by-node-ids", kind: "query", idempotent: false, surfaceIntent: "mcp_analysis" },
|
|
6950
6955
|
"get_epistemic_node": { method: "GET", path: "/nodes/get", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
|
|
6951
6956
|
"get_evidence": { method: "GET", path: "/evidence/get", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
|
|
6952
6957
|
"get_failure_log": { method: "POST", path: "/coding/failure-log", kind: "query", idempotent: false, surfaceIntent: "system" },
|
|
@@ -6965,6 +6970,7 @@ var CONTRACTS = {
|
|
|
6965
6970
|
"get_topic_tree": { method: "GET", path: "/topics/tree", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
|
|
6966
6971
|
"get_worktree": { method: "GET", path: "/worktrees/get", kind: "query", idempotent: false, surfaceIntent: "mcp_workflow" },
|
|
6967
6972
|
"heartbeat_session": { method: "POST", path: "/coordination/heartbeat-session", kind: "mutation", idempotent: true, surfaceIntent: "system" },
|
|
6973
|
+
"hybrid_discover": { method: "POST", path: "/hybrid/discover", kind: "action", idempotent: false, surfaceIntent: "mcp_analysis" },
|
|
6968
6974
|
"identity_whoami": { method: "GET", path: "/identity/whoami", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
|
|
6969
6975
|
"ingest_observation": { method: "POST", path: "/observations/ingest", kind: "mutation", idempotent: true, surfaceIntent: "mcp_workflow" },
|
|
6970
6976
|
"link_evidence": { method: "POST", path: "/evidence/link", kind: "mutation", idempotent: true, surfaceIntent: "compatibility" },
|
|
@@ -6978,6 +6984,7 @@ var CONTRACTS = {
|
|
|
6978
6984
|
"list_evidence": { method: "GET", path: "/evidence", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
|
|
6979
6985
|
"list_graph_intelligence_queries": { method: "POST", path: "/graph-intelligence/queries", kind: "query", idempotent: false, surfaceIntent: "mcp_analysis" },
|
|
6980
6986
|
"list_lenses": { method: "GET", path: "/lenses", kind: "query", idempotent: false, surfaceIntent: "mcp_workflow" },
|
|
6987
|
+
"list_missing_embeddings": { method: "GET", path: "/embeddings/missing", kind: "query", idempotent: false, surfaceIntent: "mcp_analysis" },
|
|
6981
6988
|
"list_ontologies": { method: "GET", path: "/ontologies", kind: "query", idempotent: false, surfaceIntent: "mcp_workflow" },
|
|
6982
6989
|
"list_questions": { method: "GET", path: "/questions", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
|
|
6983
6990
|
"list_tasks": { method: "GET", path: "/tasks", kind: "query", idempotent: false, surfaceIntent: "mcp_workflow" },
|
|
@@ -6993,6 +7000,7 @@ var CONTRACTS = {
|
|
|
6993
7000
|
"publish_ontology_version": { method: "POST", path: "/ontologies/versions/publish", kind: "mutation", idempotent: true, surfaceIntent: "mcp_governance" },
|
|
6994
7001
|
"push": { method: "POST", path: "/worktrees/push", kind: "mutation", idempotent: true, surfaceIntent: "system" },
|
|
6995
7002
|
"query_lineage": { method: "POST", path: "/edges/lineage", kind: "query", idempotent: false, surfaceIntent: "mcp_analysis" },
|
|
7003
|
+
"queue_embedding_backfill": { method: "POST", path: "/embeddings/backfill-queued", kind: "mutation", idempotent: true, surfaceIntent: "mcp_analysis" },
|
|
6996
7004
|
"record_attempt": { method: "POST", path: "/coding/attempts", kind: "mutation", idempotent: true, surfaceIntent: "system" },
|
|
6997
7005
|
"record_judgment": { method: "POST", path: "/judgments", kind: "mutation", idempotent: true, surfaceIntent: "system" },
|
|
6998
7006
|
"record_scope_learning": { method: "POST", path: "/scope/learnings", kind: "mutation", idempotent: true, surfaceIntent: "system" },
|
|
@@ -7004,8 +7012,10 @@ var CONTRACTS = {
|
|
|
7004
7012
|
"remove_lens_from_topic": { method: "DELETE", path: "/lenses/apply", kind: "mutation", idempotent: true, surfaceIntent: "mcp_workflow" },
|
|
7005
7013
|
"resolve_effective_ontology": { method: "POST", path: "/ontologies/effective", kind: "query", idempotent: false, surfaceIntent: "mcp_workflow" },
|
|
7006
7014
|
"resolve_interactive_principal": { method: "POST", path: "/control-plane/identity/resolve-interactive-principal", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
|
|
7015
|
+
"resolve_topic_semantic": { method: "POST", path: "/hybrid/topics/resolve", kind: "action", idempotent: false, surfaceIntent: "mcp_analysis" },
|
|
7007
7016
|
"run_graph_intelligence_query": { method: "POST", path: "/graph-intelligence/run", kind: "query", idempotent: false, surfaceIntent: "mcp_analysis" },
|
|
7008
7017
|
"search_beliefs": { method: "POST", path: "/beliefs/search", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
|
|
7018
|
+
"search_embeddings": { method: "POST", path: "/embeddings/vector-search", kind: "action", idempotent: false, surfaceIntent: "mcp_analysis" },
|
|
7009
7019
|
"search_evidence": { method: "POST", path: "/evidence/search", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
|
|
7010
7020
|
"seed_belief_lattice": { method: "POST", path: "/scope/belief-lattice/seed", kind: "mutation", idempotent: true, surfaceIntent: "system" },
|
|
7011
7021
|
"send_agent_message": { method: "POST", path: "/coordination/messages/send", kind: "mutation", idempotent: true, surfaceIntent: "system" },
|
|
@@ -7071,6 +7081,9 @@ function createFunctionSurfaceClient(config = {}) {
|
|
|
7071
7081
|
addWorktree(input = {}, idempotencyKey) {
|
|
7072
7082
|
return execute("add_worktree", input, idempotencyKey);
|
|
7073
7083
|
},
|
|
7084
|
+
analyzeGraphImpact(input = {}, idempotencyKey) {
|
|
7085
|
+
return execute("analyze_graph_impact", input, idempotencyKey);
|
|
7086
|
+
},
|
|
7074
7087
|
analyzeTopicDensity(input = {}, idempotencyKey) {
|
|
7075
7088
|
return execute("analyze_topic_density", input, idempotencyKey);
|
|
7076
7089
|
},
|
|
@@ -7167,6 +7180,9 @@ function createFunctionSurfaceClient(config = {}) {
|
|
|
7167
7180
|
detectConfirmationBias(input = {}, idempotencyKey) {
|
|
7168
7181
|
return execute("detect_confirmation_bias", input, idempotencyKey);
|
|
7169
7182
|
},
|
|
7183
|
+
detectGraphDrift(input = {}, idempotencyKey) {
|
|
7184
|
+
return execute("detect_graph_drift", input, idempotencyKey);
|
|
7185
|
+
},
|
|
7170
7186
|
discover(input = {}, idempotencyKey) {
|
|
7171
7187
|
return execute("discover", input, idempotencyKey);
|
|
7172
7188
|
},
|
|
@@ -7179,6 +7195,9 @@ function createFunctionSurfaceClient(config = {}) {
|
|
|
7179
7195
|
evaluateContract(input = {}, idempotencyKey) {
|
|
7180
7196
|
return execute("evaluate_contract", input, idempotencyKey);
|
|
7181
7197
|
},
|
|
7198
|
+
expandGraphNeighborhood(input = {}, idempotencyKey) {
|
|
7199
|
+
return execute("expand_graph_neighborhood", input, idempotencyKey);
|
|
7200
|
+
},
|
|
7182
7201
|
filterByPermission(input = {}, idempotencyKey) {
|
|
7183
7202
|
return execute("filter_by_permission", input, idempotencyKey);
|
|
7184
7203
|
},
|
|
@@ -7188,6 +7207,9 @@ function createFunctionSurfaceClient(config = {}) {
|
|
|
7188
7207
|
findMissingQuestions(input = {}, idempotencyKey) {
|
|
7189
7208
|
return execute("find_missing_questions", input, idempotencyKey);
|
|
7190
7209
|
},
|
|
7210
|
+
findRelatedNodes(input = {}, idempotencyKey) {
|
|
7211
|
+
return execute("find_related_nodes", input, idempotencyKey);
|
|
7212
|
+
},
|
|
7191
7213
|
flagContradiction(input = {}, idempotencyKey) {
|
|
7192
7214
|
return execute("flag_contradiction", input, idempotencyKey);
|
|
7193
7215
|
},
|
|
@@ -7221,6 +7243,9 @@ function createFunctionSurfaceClient(config = {}) {
|
|
|
7221
7243
|
getContractStatus(input = {}, idempotencyKey) {
|
|
7222
7244
|
return execute("get_contract_status", input, idempotencyKey);
|
|
7223
7245
|
},
|
|
7246
|
+
getByNodeIds(input = {}, idempotencyKey) {
|
|
7247
|
+
return execute("get_embeddings_by_node_ids", input, idempotencyKey);
|
|
7248
|
+
},
|
|
7224
7249
|
getEpistemicNode(input = {}, idempotencyKey) {
|
|
7225
7250
|
return execute("get_epistemic_node", input, idempotencyKey);
|
|
7226
7251
|
},
|
|
@@ -7275,6 +7300,9 @@ function createFunctionSurfaceClient(config = {}) {
|
|
|
7275
7300
|
heartbeatSession(input = {}, idempotencyKey) {
|
|
7276
7301
|
return execute("heartbeat_session", input, idempotencyKey);
|
|
7277
7302
|
},
|
|
7303
|
+
hybridDiscover(input = {}, idempotencyKey) {
|
|
7304
|
+
return execute("hybrid_discover", input, idempotencyKey);
|
|
7305
|
+
},
|
|
7278
7306
|
whoami(input = {}, idempotencyKey) {
|
|
7279
7307
|
return execute("identity_whoami", input, idempotencyKey);
|
|
7280
7308
|
},
|
|
@@ -7314,6 +7342,9 @@ function createFunctionSurfaceClient(config = {}) {
|
|
|
7314
7342
|
listLenses(input = {}, idempotencyKey) {
|
|
7315
7343
|
return execute("list_lenses", input, idempotencyKey);
|
|
7316
7344
|
},
|
|
7345
|
+
listMissingForTopic(input = {}, idempotencyKey) {
|
|
7346
|
+
return execute("list_missing_embeddings", input, idempotencyKey);
|
|
7347
|
+
},
|
|
7317
7348
|
listOntologies(input = {}, idempotencyKey) {
|
|
7318
7349
|
return execute("list_ontologies", input, idempotencyKey);
|
|
7319
7350
|
},
|
|
@@ -7359,6 +7390,9 @@ function createFunctionSurfaceClient(config = {}) {
|
|
|
7359
7390
|
queryLineage(input = {}, idempotencyKey) {
|
|
7360
7391
|
return execute("query_lineage", input, idempotencyKey);
|
|
7361
7392
|
},
|
|
7393
|
+
markEmbeddingBackfillQueued(input = {}, idempotencyKey) {
|
|
7394
|
+
return execute("queue_embedding_backfill", input, idempotencyKey);
|
|
7395
|
+
},
|
|
7362
7396
|
recordAttempt(input = {}, idempotencyKey) {
|
|
7363
7397
|
return execute("record_attempt", input, idempotencyKey);
|
|
7364
7398
|
},
|
|
@@ -7392,12 +7426,18 @@ function createFunctionSurfaceClient(config = {}) {
|
|
|
7392
7426
|
resolveInteractivePrincipal(input = {}, idempotencyKey) {
|
|
7393
7427
|
return execute("resolve_interactive_principal", input, idempotencyKey);
|
|
7394
7428
|
},
|
|
7429
|
+
resolveTopicSemantic(input = {}, idempotencyKey) {
|
|
7430
|
+
return execute("resolve_topic_semantic", input, idempotencyKey);
|
|
7431
|
+
},
|
|
7395
7432
|
runGraphIntelligenceQuery(input = {}, idempotencyKey) {
|
|
7396
7433
|
return execute("run_graph_intelligence_query", input, idempotencyKey);
|
|
7397
7434
|
},
|
|
7398
7435
|
searchBeliefs(input = {}, idempotencyKey) {
|
|
7399
7436
|
return execute("search_beliefs", input, idempotencyKey);
|
|
7400
7437
|
},
|
|
7438
|
+
vectorSearchByTopic(input = {}, idempotencyKey) {
|
|
7439
|
+
return execute("search_embeddings", input, idempotencyKey);
|
|
7440
|
+
},
|
|
7401
7441
|
searchEvidence(input = {}, idempotencyKey) {
|
|
7402
7442
|
return execute("search_evidence", input, idempotencyKey);
|
|
7403
7443
|
},
|
|
@@ -9523,7 +9563,7 @@ function createToolRegistryClient(config = {}) {
|
|
|
9523
9563
|
}
|
|
9524
9564
|
|
|
9525
9565
|
// src/version.ts
|
|
9526
|
-
var LUCERN_SDK_VERSION = "1.0.
|
|
9566
|
+
var LUCERN_SDK_VERSION = "1.0.4";
|
|
9527
9567
|
|
|
9528
9568
|
// src/workflowClient.ts
|
|
9529
9569
|
function normalizeLensQuery(value) {
|