@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/dist/index.js CHANGED
@@ -7228,6 +7228,10 @@ var FUNCTION_SURFACE_METHOD_PATHS = [
7228
7228
  "edges.removeEdge",
7229
7229
  "edges.removeEdgesBetween",
7230
7230
  "edges.updateEdge",
7231
+ "embeddings.getByNodeIds",
7232
+ "embeddings.listMissingForTopic",
7233
+ "embeddings.markEmbeddingBackfillQueued",
7234
+ "embeddings.vectorSearchByTopic",
7231
7235
  "evidence.addEvidence",
7232
7236
  "evidence.createEvidence",
7233
7237
  "evidence.getEvidence",
@@ -7246,6 +7250,12 @@ var FUNCTION_SURFACE_METHOD_PATHS = [
7246
7250
  "graph.traverseGraph",
7247
7251
  "graphAnalysis.listGraphIntelligenceQueries",
7248
7252
  "graphAnalysis.runGraphIntelligenceQuery",
7253
+ "hybrid.analyzeGraphImpact",
7254
+ "hybrid.detectGraphDrift",
7255
+ "hybrid.expandGraphNeighborhood",
7256
+ "hybrid.findRelatedNodes",
7257
+ "hybrid.hybridDiscover",
7258
+ "hybrid.resolveTopicSemantic",
7249
7259
  "identity.checkPermission",
7250
7260
  "identity.filterByPermission",
7251
7261
  "identity.whoami",
@@ -7315,6 +7325,7 @@ var CONTRACTS = {
7315
7325
  "activate_worktree": { method: "POST", path: "/worktrees/activate", kind: "mutation", idempotent: true, surfaceIntent: "mcp_workflow" },
7316
7326
  "add_evidence": { method: "POST", path: "/evidence/add", kind: "mutation", idempotent: true, surfaceIntent: "compatibility" },
7317
7327
  "add_worktree": { method: "POST", path: "/worktrees", kind: "mutation", idempotent: true, surfaceIntent: "mcp_workflow" },
7328
+ "analyze_graph_impact": { method: "POST", path: "/hybrid/impact", kind: "action", idempotent: false, surfaceIntent: "mcp_analysis" },
7318
7329
  "analyze_topic_density": { method: "POST", path: "/scope/topic-density", kind: "query", idempotent: false, surfaceIntent: "mcp_analysis" },
7319
7330
  "answer_question": { method: "POST", path: "/questions/answer", kind: "mutation", idempotent: true, surfaceIntent: "compatibility" },
7320
7331
  "apply_auto_branching": { method: "POST", path: "/scope/auto-branching", kind: "mutation", idempotent: true, surfaceIntent: "mcp_analysis" },
@@ -7347,13 +7358,16 @@ var CONTRACTS = {
7347
7358
  "create_topic": { method: "POST", path: "/topics", kind: "mutation", idempotent: true, surfaceIntent: "mcp_core" },
7348
7359
  "deprecate_ontology_version": { method: "POST", path: "/ontologies/versions/deprecate", kind: "mutation", idempotent: true, surfaceIntent: "mcp_governance" },
7349
7360
  "detect_confirmation_bias": { method: "POST", path: "/graph/confirmation-bias", kind: "query", idempotent: false, surfaceIntent: "mcp_analysis" },
7361
+ "detect_graph_drift": { method: "POST", path: "/hybrid/drift", kind: "action", idempotent: false, surfaceIntent: "mcp_analysis" },
7350
7362
  "discover": { method: "POST", path: "/context/discover", kind: "query", idempotent: false, surfaceIntent: "compatibility" },
7351
7363
  "discover_entity_connections": { method: "POST", path: "/context/entity-connections", kind: "query", idempotent: false, surfaceIntent: "mcp_analysis" },
7352
7364
  "end_session": { method: "POST", path: "/coordination/end-session", kind: "mutation", idempotent: true, surfaceIntent: "system" },
7353
7365
  "evaluate_contract": { method: "POST", path: "/contracts/evaluate", kind: "mutation", idempotent: true, surfaceIntent: "mcp_governance" },
7366
+ "expand_graph_neighborhood": { method: "POST", path: "/hybrid/neighborhood", kind: "action", idempotent: false, surfaceIntent: "mcp_analysis" },
7354
7367
  "filter_by_permission": { method: "POST", path: "/identity/filter-by-permission", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
7355
7368
  "find_contradictions": { method: "POST", path: "/graph/contradictions", kind: "query", idempotent: false, surfaceIntent: "mcp_analysis" },
7356
7369
  "find_missing_questions": { method: "POST", path: "/questions/missing", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
7370
+ "find_related_nodes": { method: "POST", path: "/hybrid/related-nodes", kind: "action", idempotent: false, surfaceIntent: "mcp_analysis" },
7357
7371
  "flag_contradiction": { method: "POST", path: "/contradictions", kind: "mutation", idempotent: true, surfaceIntent: "mcp_analysis" },
7358
7372
  "fork_belief": { method: "POST", path: "/beliefs/fork", kind: "mutation", idempotent: true, surfaceIntent: "mcp_core" },
7359
7373
  "generate_session_handoff": { method: "POST", path: "/bootstrap/session-handoff", kind: "query", idempotent: false, surfaceIntent: "system" },
@@ -7365,6 +7379,7 @@ var CONTRACTS = {
7365
7379
  "get_code_context": { method: "POST", path: "/coding/context", kind: "query", idempotent: false, surfaceIntent: "system" },
7366
7380
  "get_confidence_history": { method: "POST", path: "/beliefs/confidence-history", kind: "query", idempotent: false, surfaceIntent: "compatibility" },
7367
7381
  "get_contract_status": { method: "POST", path: "/contracts/status", kind: "query", idempotent: false, surfaceIntent: "mcp_governance" },
7382
+ "get_embeddings_by_node_ids": { method: "POST", path: "/embeddings/by-node-ids", kind: "query", idempotent: false, surfaceIntent: "mcp_analysis" },
7368
7383
  "get_epistemic_node": { method: "GET", path: "/nodes/get", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
7369
7384
  "get_evidence": { method: "GET", path: "/evidence/get", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
7370
7385
  "get_failure_log": { method: "POST", path: "/coding/failure-log", kind: "query", idempotent: false, surfaceIntent: "system" },
@@ -7383,6 +7398,7 @@ var CONTRACTS = {
7383
7398
  "get_topic_tree": { method: "GET", path: "/topics/tree", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
7384
7399
  "get_worktree": { method: "GET", path: "/worktrees/get", kind: "query", idempotent: false, surfaceIntent: "mcp_workflow" },
7385
7400
  "heartbeat_session": { method: "POST", path: "/coordination/heartbeat-session", kind: "mutation", idempotent: true, surfaceIntent: "system" },
7401
+ "hybrid_discover": { method: "POST", path: "/hybrid/discover", kind: "action", idempotent: false, surfaceIntent: "mcp_analysis" },
7386
7402
  "identity_whoami": { method: "GET", path: "/identity/whoami", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
7387
7403
  "ingest_observation": { method: "POST", path: "/observations/ingest", kind: "mutation", idempotent: true, surfaceIntent: "mcp_workflow" },
7388
7404
  "link_evidence": { method: "POST", path: "/evidence/link", kind: "mutation", idempotent: true, surfaceIntent: "compatibility" },
@@ -7396,6 +7412,7 @@ var CONTRACTS = {
7396
7412
  "list_evidence": { method: "GET", path: "/evidence", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
7397
7413
  "list_graph_intelligence_queries": { method: "POST", path: "/graph-intelligence/queries", kind: "query", idempotent: false, surfaceIntent: "mcp_analysis" },
7398
7414
  "list_lenses": { method: "GET", path: "/lenses", kind: "query", idempotent: false, surfaceIntent: "mcp_workflow" },
7415
+ "list_missing_embeddings": { method: "GET", path: "/embeddings/missing", kind: "query", idempotent: false, surfaceIntent: "mcp_analysis" },
7399
7416
  "list_ontologies": { method: "GET", path: "/ontologies", kind: "query", idempotent: false, surfaceIntent: "mcp_workflow" },
7400
7417
  "list_questions": { method: "GET", path: "/questions", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
7401
7418
  "list_tasks": { method: "GET", path: "/tasks", kind: "query", idempotent: false, surfaceIntent: "mcp_workflow" },
@@ -7411,6 +7428,7 @@ var CONTRACTS = {
7411
7428
  "publish_ontology_version": { method: "POST", path: "/ontologies/versions/publish", kind: "mutation", idempotent: true, surfaceIntent: "mcp_governance" },
7412
7429
  "push": { method: "POST", path: "/worktrees/push", kind: "mutation", idempotent: true, surfaceIntent: "system" },
7413
7430
  "query_lineage": { method: "POST", path: "/edges/lineage", kind: "query", idempotent: false, surfaceIntent: "mcp_analysis" },
7431
+ "queue_embedding_backfill": { method: "POST", path: "/embeddings/backfill-queued", kind: "mutation", idempotent: true, surfaceIntent: "mcp_analysis" },
7414
7432
  "record_attempt": { method: "POST", path: "/coding/attempts", kind: "mutation", idempotent: true, surfaceIntent: "system" },
7415
7433
  "record_judgment": { method: "POST", path: "/judgments", kind: "mutation", idempotent: true, surfaceIntent: "system" },
7416
7434
  "record_scope_learning": { method: "POST", path: "/scope/learnings", kind: "mutation", idempotent: true, surfaceIntent: "system" },
@@ -7422,8 +7440,10 @@ var CONTRACTS = {
7422
7440
  "remove_lens_from_topic": { method: "DELETE", path: "/lenses/apply", kind: "mutation", idempotent: true, surfaceIntent: "mcp_workflow" },
7423
7441
  "resolve_effective_ontology": { method: "POST", path: "/ontologies/effective", kind: "query", idempotent: false, surfaceIntent: "mcp_workflow" },
7424
7442
  "resolve_interactive_principal": { method: "POST", path: "/control-plane/identity/resolve-interactive-principal", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
7443
+ "resolve_topic_semantic": { method: "POST", path: "/hybrid/topics/resolve", kind: "action", idempotent: false, surfaceIntent: "mcp_analysis" },
7425
7444
  "run_graph_intelligence_query": { method: "POST", path: "/graph-intelligence/run", kind: "query", idempotent: false, surfaceIntent: "mcp_analysis" },
7426
7445
  "search_beliefs": { method: "POST", path: "/beliefs/search", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
7446
+ "search_embeddings": { method: "POST", path: "/embeddings/vector-search", kind: "action", idempotent: false, surfaceIntent: "mcp_analysis" },
7427
7447
  "search_evidence": { method: "POST", path: "/evidence/search", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
7428
7448
  "seed_belief_lattice": { method: "POST", path: "/scope/belief-lattice/seed", kind: "mutation", idempotent: true, surfaceIntent: "system" },
7429
7449
  "send_agent_message": { method: "POST", path: "/coordination/messages/send", kind: "mutation", idempotent: true, surfaceIntent: "system" },
@@ -7489,6 +7509,9 @@ function createFunctionSurfaceClient(config = {}) {
7489
7509
  addWorktree(input = {}, idempotencyKey) {
7490
7510
  return execute("add_worktree", input, idempotencyKey);
7491
7511
  },
7512
+ analyzeGraphImpact(input = {}, idempotencyKey) {
7513
+ return execute("analyze_graph_impact", input, idempotencyKey);
7514
+ },
7492
7515
  analyzeTopicDensity(input = {}, idempotencyKey) {
7493
7516
  return execute("analyze_topic_density", input, idempotencyKey);
7494
7517
  },
@@ -7585,6 +7608,9 @@ function createFunctionSurfaceClient(config = {}) {
7585
7608
  detectConfirmationBias(input = {}, idempotencyKey) {
7586
7609
  return execute("detect_confirmation_bias", input, idempotencyKey);
7587
7610
  },
7611
+ detectGraphDrift(input = {}, idempotencyKey) {
7612
+ return execute("detect_graph_drift", input, idempotencyKey);
7613
+ },
7588
7614
  discover(input = {}, idempotencyKey) {
7589
7615
  return execute("discover", input, idempotencyKey);
7590
7616
  },
@@ -7597,6 +7623,9 @@ function createFunctionSurfaceClient(config = {}) {
7597
7623
  evaluateContract(input = {}, idempotencyKey) {
7598
7624
  return execute("evaluate_contract", input, idempotencyKey);
7599
7625
  },
7626
+ expandGraphNeighborhood(input = {}, idempotencyKey) {
7627
+ return execute("expand_graph_neighborhood", input, idempotencyKey);
7628
+ },
7600
7629
  filterByPermission(input = {}, idempotencyKey) {
7601
7630
  return execute("filter_by_permission", input, idempotencyKey);
7602
7631
  },
@@ -7606,6 +7635,9 @@ function createFunctionSurfaceClient(config = {}) {
7606
7635
  findMissingQuestions(input = {}, idempotencyKey) {
7607
7636
  return execute("find_missing_questions", input, idempotencyKey);
7608
7637
  },
7638
+ findRelatedNodes(input = {}, idempotencyKey) {
7639
+ return execute("find_related_nodes", input, idempotencyKey);
7640
+ },
7609
7641
  flagContradiction(input = {}, idempotencyKey) {
7610
7642
  return execute("flag_contradiction", input, idempotencyKey);
7611
7643
  },
@@ -7639,6 +7671,9 @@ function createFunctionSurfaceClient(config = {}) {
7639
7671
  getContractStatus(input = {}, idempotencyKey) {
7640
7672
  return execute("get_contract_status", input, idempotencyKey);
7641
7673
  },
7674
+ getByNodeIds(input = {}, idempotencyKey) {
7675
+ return execute("get_embeddings_by_node_ids", input, idempotencyKey);
7676
+ },
7642
7677
  getEpistemicNode(input = {}, idempotencyKey) {
7643
7678
  return execute("get_epistemic_node", input, idempotencyKey);
7644
7679
  },
@@ -7693,6 +7728,9 @@ function createFunctionSurfaceClient(config = {}) {
7693
7728
  heartbeatSession(input = {}, idempotencyKey) {
7694
7729
  return execute("heartbeat_session", input, idempotencyKey);
7695
7730
  },
7731
+ hybridDiscover(input = {}, idempotencyKey) {
7732
+ return execute("hybrid_discover", input, idempotencyKey);
7733
+ },
7696
7734
  whoami(input = {}, idempotencyKey) {
7697
7735
  return execute("identity_whoami", input, idempotencyKey);
7698
7736
  },
@@ -7732,6 +7770,9 @@ function createFunctionSurfaceClient(config = {}) {
7732
7770
  listLenses(input = {}, idempotencyKey) {
7733
7771
  return execute("list_lenses", input, idempotencyKey);
7734
7772
  },
7773
+ listMissingForTopic(input = {}, idempotencyKey) {
7774
+ return execute("list_missing_embeddings", input, idempotencyKey);
7775
+ },
7735
7776
  listOntologies(input = {}, idempotencyKey) {
7736
7777
  return execute("list_ontologies", input, idempotencyKey);
7737
7778
  },
@@ -7777,6 +7818,9 @@ function createFunctionSurfaceClient(config = {}) {
7777
7818
  queryLineage(input = {}, idempotencyKey) {
7778
7819
  return execute("query_lineage", input, idempotencyKey);
7779
7820
  },
7821
+ markEmbeddingBackfillQueued(input = {}, idempotencyKey) {
7822
+ return execute("queue_embedding_backfill", input, idempotencyKey);
7823
+ },
7780
7824
  recordAttempt(input = {}, idempotencyKey) {
7781
7825
  return execute("record_attempt", input, idempotencyKey);
7782
7826
  },
@@ -7810,12 +7854,18 @@ function createFunctionSurfaceClient(config = {}) {
7810
7854
  resolveInteractivePrincipal(input = {}, idempotencyKey) {
7811
7855
  return execute("resolve_interactive_principal", input, idempotencyKey);
7812
7856
  },
7857
+ resolveTopicSemantic(input = {}, idempotencyKey) {
7858
+ return execute("resolve_topic_semantic", input, idempotencyKey);
7859
+ },
7813
7860
  runGraphIntelligenceQuery(input = {}, idempotencyKey) {
7814
7861
  return execute("run_graph_intelligence_query", input, idempotencyKey);
7815
7862
  },
7816
7863
  searchBeliefs(input = {}, idempotencyKey) {
7817
7864
  return execute("search_beliefs", input, idempotencyKey);
7818
7865
  },
7866
+ vectorSearchByTopic(input = {}, idempotencyKey) {
7867
+ return execute("search_embeddings", input, idempotencyKey);
7868
+ },
7819
7869
  searchEvidence(input = {}, idempotencyKey) {
7820
7870
  return execute("search_evidence", input, idempotencyKey);
7821
7871
  },
@@ -9941,7 +9991,7 @@ function createToolRegistryClient(config = {}) {
9941
9991
  }
9942
9992
 
9943
9993
  // src/version.ts
9944
- var LUCERN_SDK_VERSION = "1.0.3";
9994
+ var LUCERN_SDK_VERSION = "1.0.4";
9945
9995
 
9946
9996
  // src/workflowClient.ts
9947
9997
  function normalizeLensQuery(value) {