@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.
- package/README.md +47 -0
- package/dist/beliefs/index.d.ts +3 -1
- package/dist/beliefs/index.js +32 -0
- package/dist/beliefs/index.js.map +1 -1
- package/dist/client.d.ts +2981 -40
- package/dist/client.js +32 -0
- package/dist/client.js.map +1 -1
- package/dist/contradictions/index.d.ts +3 -1
- package/dist/contradictions/index.js +32 -0
- package/dist/contradictions/index.js.map +1 -1
- package/dist/decisions/index.d.ts +3 -1
- package/dist/decisions/index.js +32 -0
- package/dist/decisions/index.js.map +1 -1
- package/dist/edges/index.d.ts +3 -1
- package/dist/edges/index.js +32 -0
- package/dist/edges/index.js.map +1 -1
- package/dist/evidence/index.d.ts +3 -1
- package/dist/evidence/index.js +32 -0
- package/dist/evidence/index.js.map +1 -1
- package/dist/functionSurface.d.ts +129 -0
- package/dist/functionSurface.js +1118 -0
- package/dist/functionSurface.js.map +1 -0
- package/dist/functionSurfaceClient.d.ts +8 -0
- package/dist/functionSurfaceClient.js +1118 -0
- package/dist/functionSurfaceClient.js.map +1 -0
- package/dist/graphAnalysisClient.d.ts +46 -1
- package/dist/graphAnalysisClient.js +24 -0
- package/dist/graphAnalysisClient.js.map +1 -1
- package/dist/graphIntel.d.ts +3 -0
- package/dist/graphIntel.js +3 -0
- package/dist/graphIntel.js.map +1 -0
- package/dist/graphIntelligence.d.ts +2 -0
- package/dist/graphIntelligence.js +47 -0
- package/dist/graphIntelligence.js.map +1 -0
- package/dist/index.d.ts +5 -2
- package/dist/index.js +77 -0
- package/dist/index.js.map +1 -1
- package/dist/lenses/index.d.ts +4 -2
- package/dist/lenses/index.js +32 -0
- package/dist/lenses/index.js.map +1 -1
- package/dist/nodes/index.d.ts +3 -1
- package/dist/nodes/index.js +32 -0
- package/dist/nodes/index.js.map +1 -1
- package/dist/ontologies/index.d.ts +3 -1
- package/dist/ontologies/index.js +32 -0
- package/dist/ontologies/index.js.map +1 -1
- package/dist/packRuntime.d.ts +2 -1
- package/dist/questions/index.d.ts +3 -1
- package/dist/questions/index.js +32 -0
- package/dist/questions/index.js.map +1 -1
- package/dist/topics/index.d.ts +3 -1
- package/dist/topics/index.js +32 -0
- package/dist/topics/index.js.map +1 -1
- package/dist/worktrees/index.d.ts +5 -3
- package/dist/worktrees/index.js +32 -0
- package/dist/worktrees/index.js.map +1 -1
- package/package.json +12 -3
- 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
|
},
|