@lucern/sdk 1.0.2 → 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/dist/client.js CHANGED
@@ -6893,6 +6893,7 @@ var CONTRACTS = {
6893
6893
  "activate_worktree": { method: "POST", path: "/worktrees/activate", kind: "mutation", idempotent: true, surfaceIntent: "mcp_workflow" },
6894
6894
  "add_evidence": { method: "POST", path: "/evidence/add", kind: "mutation", idempotent: true, surfaceIntent: "compatibility" },
6895
6895
  "add_worktree": { method: "POST", path: "/worktrees", kind: "mutation", idempotent: true, surfaceIntent: "mcp_workflow" },
6896
+ "analyze_graph_impact": { method: "POST", path: "/hybrid/impact", kind: "action", idempotent: false, surfaceIntent: "mcp_analysis" },
6896
6897
  "analyze_topic_density": { method: "POST", path: "/scope/topic-density", kind: "query", idempotent: false, surfaceIntent: "mcp_analysis" },
6897
6898
  "answer_question": { method: "POST", path: "/questions/answer", kind: "mutation", idempotent: true, surfaceIntent: "compatibility" },
6898
6899
  "apply_auto_branching": { method: "POST", path: "/scope/auto-branching", kind: "mutation", idempotent: true, surfaceIntent: "mcp_analysis" },
@@ -6925,13 +6926,16 @@ var CONTRACTS = {
6925
6926
  "create_topic": { method: "POST", path: "/topics", kind: "mutation", idempotent: true, surfaceIntent: "mcp_core" },
6926
6927
  "deprecate_ontology_version": { method: "POST", path: "/ontologies/versions/deprecate", kind: "mutation", idempotent: true, surfaceIntent: "mcp_governance" },
6927
6928
  "detect_confirmation_bias": { method: "POST", path: "/graph/confirmation-bias", kind: "query", idempotent: false, surfaceIntent: "mcp_analysis" },
6929
+ "detect_graph_drift": { method: "POST", path: "/hybrid/drift", kind: "action", idempotent: false, surfaceIntent: "mcp_analysis" },
6928
6930
  "discover": { method: "POST", path: "/context/discover", kind: "query", idempotent: false, surfaceIntent: "compatibility" },
6929
6931
  "discover_entity_connections": { method: "POST", path: "/context/entity-connections", kind: "query", idempotent: false, surfaceIntent: "mcp_analysis" },
6930
6932
  "end_session": { method: "POST", path: "/coordination/end-session", kind: "mutation", idempotent: true, surfaceIntent: "system" },
6931
6933
  "evaluate_contract": { method: "POST", path: "/contracts/evaluate", kind: "mutation", idempotent: true, surfaceIntent: "mcp_governance" },
6934
+ "expand_graph_neighborhood": { method: "POST", path: "/hybrid/neighborhood", kind: "action", idempotent: false, surfaceIntent: "mcp_analysis" },
6932
6935
  "filter_by_permission": { method: "POST", path: "/identity/filter-by-permission", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
6933
6936
  "find_contradictions": { method: "POST", path: "/graph/contradictions", kind: "query", idempotent: false, surfaceIntent: "mcp_analysis" },
6934
6937
  "find_missing_questions": { method: "POST", path: "/questions/missing", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
6938
+ "find_related_nodes": { method: "POST", path: "/hybrid/related-nodes", kind: "action", idempotent: false, surfaceIntent: "mcp_analysis" },
6935
6939
  "flag_contradiction": { method: "POST", path: "/contradictions", kind: "mutation", idempotent: true, surfaceIntent: "mcp_analysis" },
6936
6940
  "fork_belief": { method: "POST", path: "/beliefs/fork", kind: "mutation", idempotent: true, surfaceIntent: "mcp_core" },
6937
6941
  "generate_session_handoff": { method: "POST", path: "/bootstrap/session-handoff", kind: "query", idempotent: false, surfaceIntent: "system" },
@@ -6943,6 +6947,7 @@ var CONTRACTS = {
6943
6947
  "get_code_context": { method: "POST", path: "/coding/context", kind: "query", idempotent: false, surfaceIntent: "system" },
6944
6948
  "get_confidence_history": { method: "POST", path: "/beliefs/confidence-history", kind: "query", idempotent: false, surfaceIntent: "compatibility" },
6945
6949
  "get_contract_status": { method: "POST", path: "/contracts/status", kind: "query", idempotent: false, surfaceIntent: "mcp_governance" },
6950
+ "get_embeddings_by_node_ids": { method: "POST", path: "/embeddings/by-node-ids", kind: "query", idempotent: false, surfaceIntent: "mcp_analysis" },
6946
6951
  "get_epistemic_node": { method: "GET", path: "/nodes/get", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
6947
6952
  "get_evidence": { method: "GET", path: "/evidence/get", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
6948
6953
  "get_failure_log": { method: "POST", path: "/coding/failure-log", kind: "query", idempotent: false, surfaceIntent: "system" },
@@ -6961,6 +6966,7 @@ var CONTRACTS = {
6961
6966
  "get_topic_tree": { method: "GET", path: "/topics/tree", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
6962
6967
  "get_worktree": { method: "GET", path: "/worktrees/get", kind: "query", idempotent: false, surfaceIntent: "mcp_workflow" },
6963
6968
  "heartbeat_session": { method: "POST", path: "/coordination/heartbeat-session", kind: "mutation", idempotent: true, surfaceIntent: "system" },
6969
+ "hybrid_discover": { method: "POST", path: "/hybrid/discover", kind: "action", idempotent: false, surfaceIntent: "mcp_analysis" },
6964
6970
  "identity_whoami": { method: "GET", path: "/identity/whoami", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
6965
6971
  "ingest_observation": { method: "POST", path: "/observations/ingest", kind: "mutation", idempotent: true, surfaceIntent: "mcp_workflow" },
6966
6972
  "link_evidence": { method: "POST", path: "/evidence/link", kind: "mutation", idempotent: true, surfaceIntent: "compatibility" },
@@ -6974,6 +6980,7 @@ var CONTRACTS = {
6974
6980
  "list_evidence": { method: "GET", path: "/evidence", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
6975
6981
  "list_graph_intelligence_queries": { method: "POST", path: "/graph-intelligence/queries", kind: "query", idempotent: false, surfaceIntent: "mcp_analysis" },
6976
6982
  "list_lenses": { method: "GET", path: "/lenses", kind: "query", idempotent: false, surfaceIntent: "mcp_workflow" },
6983
+ "list_missing_embeddings": { method: "GET", path: "/embeddings/missing", kind: "query", idempotent: false, surfaceIntent: "mcp_analysis" },
6977
6984
  "list_ontologies": { method: "GET", path: "/ontologies", kind: "query", idempotent: false, surfaceIntent: "mcp_workflow" },
6978
6985
  "list_questions": { method: "GET", path: "/questions", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
6979
6986
  "list_tasks": { method: "GET", path: "/tasks", kind: "query", idempotent: false, surfaceIntent: "mcp_workflow" },
@@ -6989,6 +6996,7 @@ var CONTRACTS = {
6989
6996
  "publish_ontology_version": { method: "POST", path: "/ontologies/versions/publish", kind: "mutation", idempotent: true, surfaceIntent: "mcp_governance" },
6990
6997
  "push": { method: "POST", path: "/worktrees/push", kind: "mutation", idempotent: true, surfaceIntent: "system" },
6991
6998
  "query_lineage": { method: "POST", path: "/edges/lineage", kind: "query", idempotent: false, surfaceIntent: "mcp_analysis" },
6999
+ "queue_embedding_backfill": { method: "POST", path: "/embeddings/backfill-queued", kind: "mutation", idempotent: true, surfaceIntent: "mcp_analysis" },
6992
7000
  "record_attempt": { method: "POST", path: "/coding/attempts", kind: "mutation", idempotent: true, surfaceIntent: "system" },
6993
7001
  "record_judgment": { method: "POST", path: "/judgments", kind: "mutation", idempotent: true, surfaceIntent: "system" },
6994
7002
  "record_scope_learning": { method: "POST", path: "/scope/learnings", kind: "mutation", idempotent: true, surfaceIntent: "system" },
@@ -7000,8 +7008,10 @@ var CONTRACTS = {
7000
7008
  "remove_lens_from_topic": { method: "DELETE", path: "/lenses/apply", kind: "mutation", idempotent: true, surfaceIntent: "mcp_workflow" },
7001
7009
  "resolve_effective_ontology": { method: "POST", path: "/ontologies/effective", kind: "query", idempotent: false, surfaceIntent: "mcp_workflow" },
7002
7010
  "resolve_interactive_principal": { method: "POST", path: "/control-plane/identity/resolve-interactive-principal", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
7011
+ "resolve_topic_semantic": { method: "POST", path: "/hybrid/topics/resolve", kind: "action", idempotent: false, surfaceIntent: "mcp_analysis" },
7003
7012
  "run_graph_intelligence_query": { method: "POST", path: "/graph-intelligence/run", kind: "query", idempotent: false, surfaceIntent: "mcp_analysis" },
7004
7013
  "search_beliefs": { method: "POST", path: "/beliefs/search", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
7014
+ "search_embeddings": { method: "POST", path: "/embeddings/vector-search", kind: "action", idempotent: false, surfaceIntent: "mcp_analysis" },
7005
7015
  "search_evidence": { method: "POST", path: "/evidence/search", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
7006
7016
  "seed_belief_lattice": { method: "POST", path: "/scope/belief-lattice/seed", kind: "mutation", idempotent: true, surfaceIntent: "system" },
7007
7017
  "send_agent_message": { method: "POST", path: "/coordination/messages/send", kind: "mutation", idempotent: true, surfaceIntent: "system" },
@@ -7067,6 +7077,9 @@ function createFunctionSurfaceClient(config = {}) {
7067
7077
  addWorktree(input = {}, idempotencyKey) {
7068
7078
  return execute("add_worktree", input, idempotencyKey);
7069
7079
  },
7080
+ analyzeGraphImpact(input = {}, idempotencyKey) {
7081
+ return execute("analyze_graph_impact", input, idempotencyKey);
7082
+ },
7070
7083
  analyzeTopicDensity(input = {}, idempotencyKey) {
7071
7084
  return execute("analyze_topic_density", input, idempotencyKey);
7072
7085
  },
@@ -7163,6 +7176,9 @@ function createFunctionSurfaceClient(config = {}) {
7163
7176
  detectConfirmationBias(input = {}, idempotencyKey) {
7164
7177
  return execute("detect_confirmation_bias", input, idempotencyKey);
7165
7178
  },
7179
+ detectGraphDrift(input = {}, idempotencyKey) {
7180
+ return execute("detect_graph_drift", input, idempotencyKey);
7181
+ },
7166
7182
  discover(input = {}, idempotencyKey) {
7167
7183
  return execute("discover", input, idempotencyKey);
7168
7184
  },
@@ -7175,6 +7191,9 @@ function createFunctionSurfaceClient(config = {}) {
7175
7191
  evaluateContract(input = {}, idempotencyKey) {
7176
7192
  return execute("evaluate_contract", input, idempotencyKey);
7177
7193
  },
7194
+ expandGraphNeighborhood(input = {}, idempotencyKey) {
7195
+ return execute("expand_graph_neighborhood", input, idempotencyKey);
7196
+ },
7178
7197
  filterByPermission(input = {}, idempotencyKey) {
7179
7198
  return execute("filter_by_permission", input, idempotencyKey);
7180
7199
  },
@@ -7184,6 +7203,9 @@ function createFunctionSurfaceClient(config = {}) {
7184
7203
  findMissingQuestions(input = {}, idempotencyKey) {
7185
7204
  return execute("find_missing_questions", input, idempotencyKey);
7186
7205
  },
7206
+ findRelatedNodes(input = {}, idempotencyKey) {
7207
+ return execute("find_related_nodes", input, idempotencyKey);
7208
+ },
7187
7209
  flagContradiction(input = {}, idempotencyKey) {
7188
7210
  return execute("flag_contradiction", input, idempotencyKey);
7189
7211
  },
@@ -7217,6 +7239,9 @@ function createFunctionSurfaceClient(config = {}) {
7217
7239
  getContractStatus(input = {}, idempotencyKey) {
7218
7240
  return execute("get_contract_status", input, idempotencyKey);
7219
7241
  },
7242
+ getByNodeIds(input = {}, idempotencyKey) {
7243
+ return execute("get_embeddings_by_node_ids", input, idempotencyKey);
7244
+ },
7220
7245
  getEpistemicNode(input = {}, idempotencyKey) {
7221
7246
  return execute("get_epistemic_node", input, idempotencyKey);
7222
7247
  },
@@ -7271,6 +7296,9 @@ function createFunctionSurfaceClient(config = {}) {
7271
7296
  heartbeatSession(input = {}, idempotencyKey) {
7272
7297
  return execute("heartbeat_session", input, idempotencyKey);
7273
7298
  },
7299
+ hybridDiscover(input = {}, idempotencyKey) {
7300
+ return execute("hybrid_discover", input, idempotencyKey);
7301
+ },
7274
7302
  whoami(input = {}, idempotencyKey) {
7275
7303
  return execute("identity_whoami", input, idempotencyKey);
7276
7304
  },
@@ -7310,6 +7338,9 @@ function createFunctionSurfaceClient(config = {}) {
7310
7338
  listLenses(input = {}, idempotencyKey) {
7311
7339
  return execute("list_lenses", input, idempotencyKey);
7312
7340
  },
7341
+ listMissingForTopic(input = {}, idempotencyKey) {
7342
+ return execute("list_missing_embeddings", input, idempotencyKey);
7343
+ },
7313
7344
  listOntologies(input = {}, idempotencyKey) {
7314
7345
  return execute("list_ontologies", input, idempotencyKey);
7315
7346
  },
@@ -7355,6 +7386,9 @@ function createFunctionSurfaceClient(config = {}) {
7355
7386
  queryLineage(input = {}, idempotencyKey) {
7356
7387
  return execute("query_lineage", input, idempotencyKey);
7357
7388
  },
7389
+ markEmbeddingBackfillQueued(input = {}, idempotencyKey) {
7390
+ return execute("queue_embedding_backfill", input, idempotencyKey);
7391
+ },
7358
7392
  recordAttempt(input = {}, idempotencyKey) {
7359
7393
  return execute("record_attempt", input, idempotencyKey);
7360
7394
  },
@@ -7388,12 +7422,18 @@ function createFunctionSurfaceClient(config = {}) {
7388
7422
  resolveInteractivePrincipal(input = {}, idempotencyKey) {
7389
7423
  return execute("resolve_interactive_principal", input, idempotencyKey);
7390
7424
  },
7425
+ resolveTopicSemantic(input = {}, idempotencyKey) {
7426
+ return execute("resolve_topic_semantic", input, idempotencyKey);
7427
+ },
7391
7428
  runGraphIntelligenceQuery(input = {}, idempotencyKey) {
7392
7429
  return execute("run_graph_intelligence_query", input, idempotencyKey);
7393
7430
  },
7394
7431
  searchBeliefs(input = {}, idempotencyKey) {
7395
7432
  return execute("search_beliefs", input, idempotencyKey);
7396
7433
  },
7434
+ vectorSearchByTopic(input = {}, idempotencyKey) {
7435
+ return execute("search_embeddings", input, idempotencyKey);
7436
+ },
7397
7437
  searchEvidence(input = {}, idempotencyKey) {
7398
7438
  return execute("search_evidence", input, idempotencyKey);
7399
7439
  },
@@ -9519,7 +9559,7 @@ function createToolRegistryClient(config = {}) {
9519
9559
  }
9520
9560
 
9521
9561
  // src/version.ts
9522
- var LUCERN_SDK_VERSION = "1.0.2";
9562
+ var LUCERN_SDK_VERSION = "1.0.4";
9523
9563
 
9524
9564
  // src/workflowClient.ts
9525
9565
  function normalizeLensQuery(value) {