@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.
- 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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PlatformGatewaySuccess } from '../coreClient.js';
|
|
2
2
|
import { RecordJudgmentResponse, GetJudgmentResponse, ListJudgmentsResponse, RecordJudgmentOutcomeResponse, JudgmentReadinessResponse, JudgmentCalibrationResponse, ListResult, PendingJudgmentOutcomeRecord, JudgmentTransitionAuditIntegrityResponse } from '../types.js';
|
|
3
3
|
import { RecordJudgmentInput, ListJudgmentsInput, RecordJudgmentOutcomeInput } from '../decisionsClient.js';
|
|
4
|
-
import {
|
|
4
|
+
import { LucernClientConfig } from '../client.js';
|
|
5
5
|
import * as sdkMethods_contract from '@lucern/contracts/sdk-methods.contract';
|
|
6
6
|
export { sdkMethods_contract as methodSchemas };
|
|
7
7
|
import * as toolContracts from '@lucern/contracts/tool-contracts';
|
|
@@ -35,11 +35,13 @@ import '../ontologyLinksClient.js';
|
|
|
35
35
|
import '../orgGraphSearchClient.js';
|
|
36
36
|
import '../graphRecommendationsClient.js';
|
|
37
37
|
import '../graphAnalysisClient.js';
|
|
38
|
+
import '@lucern/contracts';
|
|
38
39
|
import '../embeddingsClient.js';
|
|
39
40
|
import '../policyClient.js';
|
|
40
41
|
import '../ontologyClient.js';
|
|
41
42
|
import '../contextTypes.js';
|
|
42
43
|
import '../topicsClient.js';
|
|
44
|
+
import '../functionSurface.js';
|
|
43
45
|
import '../answersClient.js';
|
|
44
46
|
import '../auditClient.js';
|
|
45
47
|
import '../contextClient.js';
|
package/dist/decisions/index.js
CHANGED
|
@@ -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
|
},
|