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

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
@@ -1,7 +1,7 @@
1
1
  import { PlatformGatewaySuccess } from '../coreClient.js';
2
2
  import { PlatformGraphNode, ListResult } from '../types.js';
3
3
  import { CreateNodeInput, GetNodeInput, ListNodesInput, UpdateNodeInput, BatchCreateNodesInput, SupersedeNodeInput, VerifyNodeInput, HardDeleteNodeInput } from '../graphClient.js';
4
- import { L as LucernClientConfig } from '../client-DOLqClbU.js';
4
+ import { LucernClientConfig } from '../client.js';
5
5
  import * as v1 from '@lucern/contracts/graph/v1';
6
6
  export { v1 as graphContracts };
7
7
  import * as sdkMethods_contract from '@lucern/contracts/sdk-methods.contract';
@@ -36,11 +36,13 @@ import '../ontologyLinksClient.js';
36
36
  import '../orgGraphSearchClient.js';
37
37
  import '../graphRecommendationsClient.js';
38
38
  import '../graphAnalysisClient.js';
39
+ import '@lucern/contracts';
39
40
  import '../embeddingsClient.js';
40
41
  import '../policyClient.js';
41
42
  import '../ontologyClient.js';
42
43
  import '../contextTypes.js';
43
44
  import '../topicsClient.js';
45
+ import '../functionSurface.js';
44
46
  import '../answersClient.js';
45
47
  import '../auditClient.js';
46
48
  import '../contextClient.js';
@@ -4120,9 +4120,33 @@ function graphAnalysisQuery(input) {
4120
4120
  cursor: input.cursor
4121
4121
  };
4122
4122
  }
4123
+ function normalizeRunQueryPayload(input) {
4124
+ return {
4125
+ ...input,
4126
+ topicId: requireTopicId2(input),
4127
+ projectId: void 0
4128
+ };
4129
+ }
4123
4130
  function createGraphAnalysisClient(config = {}) {
4124
4131
  const gateway = createGatewayRequestClient(config);
4125
4132
  return {
4133
+ listGraphIntelligenceQueries(input = {}) {
4134
+ return gateway.request({
4135
+ path: "/api/platform/v1/graph-intelligence/queries",
4136
+ method: "POST",
4137
+ body: {
4138
+ categoryId: input.categoryId,
4139
+ mode: input.mode
4140
+ }
4141
+ });
4142
+ },
4143
+ runGraphIntelligenceQuery(input) {
4144
+ return gateway.request({
4145
+ path: "/api/platform/v1/graph-intelligence/run",
4146
+ method: "POST",
4147
+ body: normalizeRunQueryPayload(input)
4148
+ });
4149
+ },
4126
4150
  saveAnalysis(input, idempotencyKey) {
4127
4151
  return gateway.request({
4128
4152
  path: "/api/platform/v1/graph-analysis/analyses",
@@ -5025,6 +5049,7 @@ var CONTRACTS = {
5025
5049
  "list_beliefs": { method: "GET", path: "/beliefs", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
5026
5050
  "list_campaigns": { method: "GET", path: "/worktrees/campaigns", kind: "query", idempotent: false, surfaceIntent: "mcp_workflow" },
5027
5051
  "list_evidence": { method: "GET", path: "/evidence", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
5052
+ "list_graph_intelligence_queries": { method: "POST", path: "/graph-intelligence/queries", kind: "query", idempotent: false, surfaceIntent: "mcp_analysis" },
5028
5053
  "list_lenses": { method: "GET", path: "/lenses", kind: "query", idempotent: false, surfaceIntent: "mcp_workflow" },
5029
5054
  "list_ontologies": { method: "GET", path: "/ontologies", kind: "query", idempotent: false, surfaceIntent: "mcp_workflow" },
5030
5055
  "list_questions": { method: "GET", path: "/questions", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
@@ -5048,6 +5073,7 @@ var CONTRACTS = {
5048
5073
  "register_session": { method: "POST", path: "/coordination/register-session", kind: "mutation", idempotent: true, surfaceIntent: "system" },
5049
5074
  "remove_lens_from_topic": { method: "DELETE", path: "/lenses/apply", kind: "mutation", idempotent: true, surfaceIntent: "mcp_workflow" },
5050
5075
  "resolve_effective_ontology": { method: "POST", path: "/ontologies/effective", kind: "query", idempotent: false, surfaceIntent: "mcp_workflow" },
5076
+ "run_graph_intelligence_query": { method: "POST", path: "/graph-intelligence/run", kind: "query", idempotent: false, surfaceIntent: "mcp_analysis" },
5051
5077
  "search_beliefs": { method: "POST", path: "/beliefs/search", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
5052
5078
  "search_evidence": { method: "POST", path: "/evidence/search", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
5053
5079
  "seed_belief_lattice": { method: "POST", path: "/scope/belief-lattice/seed", kind: "mutation", idempotent: true, surfaceIntent: "system" },
@@ -5323,6 +5349,9 @@ function createFunctionSurfaceClient(config = {}) {
5323
5349
  listEvidence(input = {}, idempotencyKey) {
5324
5350
  return execute("list_evidence", input, idempotencyKey);
5325
5351
  },
5352
+ listGraphIntelligenceQueries(input = {}, idempotencyKey) {
5353
+ return execute("list_graph_intelligence_queries", input, idempotencyKey);
5354
+ },
5326
5355
  listLenses(input = {}, idempotencyKey) {
5327
5356
  return execute("list_lenses", input, idempotencyKey);
5328
5357
  },
@@ -5392,6 +5421,9 @@ function createFunctionSurfaceClient(config = {}) {
5392
5421
  resolveEffectiveOntology(input = {}, idempotencyKey) {
5393
5422
  return execute("resolve_effective_ontology", input, idempotencyKey);
5394
5423
  },
5424
+ runGraphIntelligenceQuery(input = {}, idempotencyKey) {
5425
+ return execute("run_graph_intelligence_query", input, idempotencyKey);
5426
+ },
5395
5427
  searchBeliefs(input = {}, idempotencyKey) {
5396
5428
  return execute("search_beliefs", input, idempotencyKey);
5397
5429
  },