@lucern/sdk 0.3.0-alpha.4 → 0.3.0-alpha.6

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.
Files changed (58) hide show
  1. package/README.md +47 -0
  2. package/dist/beliefs/index.d.ts +3 -1
  3. package/dist/beliefs/index.js +32 -0
  4. package/dist/beliefs/index.js.map +1 -1
  5. package/dist/client.d.ts +2981 -40
  6. package/dist/client.js +32 -0
  7. package/dist/client.js.map +1 -1
  8. package/dist/contradictions/index.d.ts +3 -1
  9. package/dist/contradictions/index.js +32 -0
  10. package/dist/contradictions/index.js.map +1 -1
  11. package/dist/decisions/index.d.ts +3 -1
  12. package/dist/decisions/index.js +32 -0
  13. package/dist/decisions/index.js.map +1 -1
  14. package/dist/edges/index.d.ts +3 -1
  15. package/dist/edges/index.js +32 -0
  16. package/dist/edges/index.js.map +1 -1
  17. package/dist/evidence/index.d.ts +3 -1
  18. package/dist/evidence/index.js +32 -0
  19. package/dist/evidence/index.js.map +1 -1
  20. package/dist/functionSurface.d.ts +129 -0
  21. package/dist/functionSurface.js +1118 -0
  22. package/dist/functionSurface.js.map +1 -0
  23. package/dist/functionSurfaceClient.d.ts +8 -0
  24. package/dist/functionSurfaceClient.js +1118 -0
  25. package/dist/functionSurfaceClient.js.map +1 -0
  26. package/dist/graphAnalysisClient.d.ts +46 -1
  27. package/dist/graphAnalysisClient.js +24 -0
  28. package/dist/graphAnalysisClient.js.map +1 -1
  29. package/dist/graphIntel.d.ts +3 -0
  30. package/dist/graphIntel.js +3 -0
  31. package/dist/graphIntel.js.map +1 -0
  32. package/dist/graphIntelligence.d.ts +2 -0
  33. package/dist/graphIntelligence.js +47 -0
  34. package/dist/graphIntelligence.js.map +1 -0
  35. package/dist/index.d.ts +5 -2
  36. package/dist/index.js +77 -0
  37. package/dist/index.js.map +1 -1
  38. package/dist/lenses/index.d.ts +4 -2
  39. package/dist/lenses/index.js +32 -0
  40. package/dist/lenses/index.js.map +1 -1
  41. package/dist/nodes/index.d.ts +3 -1
  42. package/dist/nodes/index.js +32 -0
  43. package/dist/nodes/index.js.map +1 -1
  44. package/dist/ontologies/index.d.ts +3 -1
  45. package/dist/ontologies/index.js +32 -0
  46. package/dist/ontologies/index.js.map +1 -1
  47. package/dist/packRuntime.d.ts +2 -1
  48. package/dist/questions/index.d.ts +3 -1
  49. package/dist/questions/index.js +32 -0
  50. package/dist/questions/index.js.map +1 -1
  51. package/dist/topics/index.d.ts +3 -1
  52. package/dist/topics/index.js +32 -0
  53. package/dist/topics/index.js.map +1 -1
  54. package/dist/worktrees/index.d.ts +5 -3
  55. package/dist/worktrees/index.js +32 -0
  56. package/dist/worktrees/index.js.map +1 -1
  57. package/package.json +12 -3
  58. package/dist/client-DOLqClbU.d.ts +0 -3091
package/dist/client.js CHANGED
@@ -4116,9 +4116,33 @@ function graphAnalysisQuery(input) {
4116
4116
  cursor: input.cursor
4117
4117
  };
4118
4118
  }
4119
+ function normalizeRunQueryPayload(input) {
4120
+ return {
4121
+ ...input,
4122
+ topicId: requireTopicId2(input),
4123
+ projectId: void 0
4124
+ };
4125
+ }
4119
4126
  function createGraphAnalysisClient(config = {}) {
4120
4127
  const gateway = createGatewayRequestClient(config);
4121
4128
  return {
4129
+ listGraphIntelligenceQueries(input = {}) {
4130
+ return gateway.request({
4131
+ path: "/api/platform/v1/graph-intelligence/queries",
4132
+ method: "POST",
4133
+ body: {
4134
+ categoryId: input.categoryId,
4135
+ mode: input.mode
4136
+ }
4137
+ });
4138
+ },
4139
+ runGraphIntelligenceQuery(input) {
4140
+ return gateway.request({
4141
+ path: "/api/platform/v1/graph-intelligence/run",
4142
+ method: "POST",
4143
+ body: normalizeRunQueryPayload(input)
4144
+ });
4145
+ },
4122
4146
  saveAnalysis(input, idempotencyKey) {
4123
4147
  return gateway.request({
4124
4148
  path: "/api/platform/v1/graph-analysis/analyses",
@@ -5021,6 +5045,7 @@ var CONTRACTS = {
5021
5045
  "list_beliefs": { method: "GET", path: "/beliefs", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
5022
5046
  "list_campaigns": { method: "GET", path: "/worktrees/campaigns", kind: "query", idempotent: false, surfaceIntent: "mcp_workflow" },
5023
5047
  "list_evidence": { method: "GET", path: "/evidence", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
5048
+ "list_graph_intelligence_queries": { method: "POST", path: "/graph-intelligence/queries", kind: "query", idempotent: false, surfaceIntent: "mcp_analysis" },
5024
5049
  "list_lenses": { method: "GET", path: "/lenses", kind: "query", idempotent: false, surfaceIntent: "mcp_workflow" },
5025
5050
  "list_ontologies": { method: "GET", path: "/ontologies", kind: "query", idempotent: false, surfaceIntent: "mcp_workflow" },
5026
5051
  "list_questions": { method: "GET", path: "/questions", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
@@ -5044,6 +5069,7 @@ var CONTRACTS = {
5044
5069
  "register_session": { method: "POST", path: "/coordination/register-session", kind: "mutation", idempotent: true, surfaceIntent: "system" },
5045
5070
  "remove_lens_from_topic": { method: "DELETE", path: "/lenses/apply", kind: "mutation", idempotent: true, surfaceIntent: "mcp_workflow" },
5046
5071
  "resolve_effective_ontology": { method: "POST", path: "/ontologies/effective", kind: "query", idempotent: false, surfaceIntent: "mcp_workflow" },
5072
+ "run_graph_intelligence_query": { method: "POST", path: "/graph-intelligence/run", kind: "query", idempotent: false, surfaceIntent: "mcp_analysis" },
5047
5073
  "search_beliefs": { method: "POST", path: "/beliefs/search", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
5048
5074
  "search_evidence": { method: "POST", path: "/evidence/search", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
5049
5075
  "seed_belief_lattice": { method: "POST", path: "/scope/belief-lattice/seed", kind: "mutation", idempotent: true, surfaceIntent: "system" },
@@ -5319,6 +5345,9 @@ function createFunctionSurfaceClient(config = {}) {
5319
5345
  listEvidence(input = {}, idempotencyKey) {
5320
5346
  return execute("list_evidence", input, idempotencyKey);
5321
5347
  },
5348
+ listGraphIntelligenceQueries(input = {}, idempotencyKey) {
5349
+ return execute("list_graph_intelligence_queries", input, idempotencyKey);
5350
+ },
5322
5351
  listLenses(input = {}, idempotencyKey) {
5323
5352
  return execute("list_lenses", input, idempotencyKey);
5324
5353
  },
@@ -5388,6 +5417,9 @@ function createFunctionSurfaceClient(config = {}) {
5388
5417
  resolveEffectiveOntology(input = {}, idempotencyKey) {
5389
5418
  return execute("resolve_effective_ontology", input, idempotencyKey);
5390
5419
  },
5420
+ runGraphIntelligenceQuery(input = {}, idempotencyKey) {
5421
+ return execute("run_graph_intelligence_query", input, idempotencyKey);
5422
+ },
5391
5423
  searchBeliefs(input = {}, idempotencyKey) {
5392
5424
  return execute("search_beliefs", input, idempotencyKey);
5393
5425
  },