@lucern/sdk 1.0.17 → 1.0.19
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/CHANGELOG.md +6 -0
- package/dist/client.d.ts +8 -33
- package/dist/clientEvidenceCompat.d.ts +19 -0
- package/dist/clientEvidenceCompat.js +20 -20
- package/dist/clientKnowledgeNamespaces.d.ts +8 -33
- package/dist/clientKnowledgeNamespaces.js +8 -5
- package/dist/clientPlatformNamespaces.d.ts +1 -0
- package/dist/clientPlatformNamespaces.js +3 -0
- package/dist/evidence/index.d.ts +2 -64
- package/dist/gatewayFacades.d.ts +13 -1
- package/dist/generated/functionSurface.d.ts +5 -1
- package/dist/generated/functionSurface.js +21 -1
- package/dist/policyClient.d.ts +26 -2
- package/dist/proof-attestation.json +1 -1
- package/dist/questions/index.d.ts +12 -2
- package/dist/types.d.ts +5 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ All notable changes to `@lucern/sdk` will be documented in this file.
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
- No unreleased changes yet.
|
|
7
7
|
|
|
8
|
+
## [1.0.19] - 2026-06-04
|
|
9
|
+
- Release notes pending.
|
|
10
|
+
|
|
11
|
+
## [1.0.18] - 2026-06-02
|
|
12
|
+
- Release notes pending.
|
|
13
|
+
|
|
8
14
|
## [1.0.17] - 2026-06-01
|
|
9
15
|
- Release notes pending.
|
|
10
16
|
|
package/dist/client.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
22
22
|
checkPermission(input: import("./functionSurface").FunctionSurfaceInput): any;
|
|
23
23
|
listAccessibleTopics(input?: Parameters<(...args: any[]) => any>[0]): any;
|
|
24
24
|
filterByPermission(input: import("./functionSurface").FunctionSurfaceInput): any;
|
|
25
|
+
compileCapabilitySlice(input: Parameters<any>[0], idempotencyKey?: string): any;
|
|
25
26
|
manageWritePolicy(input: import("./functionSurface").FunctionSurfaceInput, idempotencyKey?: string): any;
|
|
26
27
|
raw: Record<string, (...args: any[]) => any> & {
|
|
27
28
|
create: (...args: any[]) => any;
|
|
@@ -510,38 +511,7 @@ export declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
510
511
|
}): any;
|
|
511
512
|
};
|
|
512
513
|
evidence: {
|
|
513
|
-
create(args:
|
|
514
|
-
text?: string;
|
|
515
|
-
canonicalText?: string;
|
|
516
|
-
topicId?: string;
|
|
517
|
-
source?: string;
|
|
518
|
-
sourceUrl?: string;
|
|
519
|
-
targetId?: string;
|
|
520
|
-
weight?: number;
|
|
521
|
-
evidenceRelation?: "supports" | "contradicts";
|
|
522
|
-
confidence?: number;
|
|
523
|
-
beliefRelations?: Array<{
|
|
524
|
-
beliefId?: string;
|
|
525
|
-
beliefNodeId?: string;
|
|
526
|
-
targetId?: string;
|
|
527
|
-
relation?: "supports" | "contradicts" | "supporting" | "contradicting";
|
|
528
|
-
evidenceRelation?: "supports" | "contradicts";
|
|
529
|
-
confidence?: number;
|
|
530
|
-
weight?: number;
|
|
531
|
-
rationale?: string;
|
|
532
|
-
}>;
|
|
533
|
-
metadata?: import("./types").JsonObject;
|
|
534
|
-
title?: string;
|
|
535
|
-
content?: string;
|
|
536
|
-
contentType?: string;
|
|
537
|
-
kind?: string;
|
|
538
|
-
rationale?: string;
|
|
539
|
-
supports?: {
|
|
540
|
-
nodeId: string;
|
|
541
|
-
weight: number;
|
|
542
|
-
reasoning?: string;
|
|
543
|
-
};
|
|
544
|
-
}): any;
|
|
514
|
+
create(args: import("./clientEvidenceCompat").EvidenceCompatInput): any;
|
|
545
515
|
add: any;
|
|
546
516
|
get(evidenceId: string): any;
|
|
547
517
|
list(args: {
|
|
@@ -599,7 +569,12 @@ export declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
599
569
|
metadata?: import("./types").JsonObject;
|
|
600
570
|
}): any;
|
|
601
571
|
get(questionId: string): any;
|
|
602
|
-
refine(questionId: string,
|
|
572
|
+
refine(questionId: string, input: string | {
|
|
573
|
+
text?: string;
|
|
574
|
+
question?: string;
|
|
575
|
+
rationale?: string;
|
|
576
|
+
linkedWorktreeId?: string;
|
|
577
|
+
}, refinementReason?: string): any;
|
|
603
578
|
list(args: {
|
|
604
579
|
topicId?: string;
|
|
605
580
|
status?: string;
|
|
@@ -6,6 +6,7 @@ export type EvidenceCompatInput = {
|
|
|
6
6
|
topicId?: string;
|
|
7
7
|
source?: string;
|
|
8
8
|
sourceUrl?: string;
|
|
9
|
+
externalSourceUrl?: string;
|
|
9
10
|
targetId?: string;
|
|
10
11
|
weight?: number;
|
|
11
12
|
evidenceRelation?: "supports" | "contradicts";
|
|
@@ -25,6 +26,14 @@ export type EvidenceCompatInput = {
|
|
|
25
26
|
content?: string;
|
|
26
27
|
contentType?: string;
|
|
27
28
|
kind?: string;
|
|
29
|
+
tags?: string[];
|
|
30
|
+
sourceType?: string;
|
|
31
|
+
externalSourceType?: string;
|
|
32
|
+
sourceQuestionId?: string;
|
|
33
|
+
methodology?: string;
|
|
34
|
+
informationAsymmetry?: string;
|
|
35
|
+
sourceQuality?: "primary" | "analyzed" | "secondary" | "tertiary" | "unknown";
|
|
36
|
+
sourceDescription?: string;
|
|
28
37
|
rationale?: string;
|
|
29
38
|
supports?: {
|
|
30
39
|
nodeId: string;
|
|
@@ -48,6 +57,16 @@ type EvidenceFacadeLike = {
|
|
|
48
57
|
content?: string;
|
|
49
58
|
contentType?: string;
|
|
50
59
|
kind?: string;
|
|
60
|
+
tags?: string[];
|
|
61
|
+
sourceUrl?: string;
|
|
62
|
+
externalSourceUrl?: string;
|
|
63
|
+
sourceType?: string;
|
|
64
|
+
externalSourceType?: string;
|
|
65
|
+
sourceQuestionId?: string;
|
|
66
|
+
methodology?: string;
|
|
67
|
+
informationAsymmetry?: string;
|
|
68
|
+
sourceQuality?: "primary" | "analyzed" | "secondary" | "tertiary" | "unknown";
|
|
69
|
+
sourceDescription?: string;
|
|
51
70
|
}): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
52
71
|
link(args: {
|
|
53
72
|
evidenceId: string;
|
|
@@ -16,6 +16,8 @@ export async function createEvidenceCompat(evidenceFacade, args) {
|
|
|
16
16
|
topicId: resolveTopicId(args),
|
|
17
17
|
text,
|
|
18
18
|
source: args.source ?? args.sourceUrl,
|
|
19
|
+
sourceUrl: args.sourceUrl,
|
|
20
|
+
externalSourceUrl: args.externalSourceUrl,
|
|
19
21
|
targetId: args.targetId ?? args.supports?.nodeId,
|
|
20
22
|
weight: args.weight ?? args.supports?.weight,
|
|
21
23
|
evidenceRelation: args.evidenceRelation,
|
|
@@ -27,33 +29,31 @@ export async function createEvidenceCompat(evidenceFacade, args) {
|
|
|
27
29
|
content: args.content,
|
|
28
30
|
contentType: args.contentType,
|
|
29
31
|
kind: args.kind,
|
|
32
|
+
tags: args.tags,
|
|
33
|
+
sourceType: args.sourceType,
|
|
34
|
+
externalSourceType: args.externalSourceType,
|
|
35
|
+
sourceQuestionId: args.sourceQuestionId,
|
|
36
|
+
methodology: args.methodology,
|
|
37
|
+
informationAsymmetry: args.informationAsymmetry,
|
|
38
|
+
sourceQuality: args.sourceQuality,
|
|
39
|
+
sourceDescription: args.sourceDescription,
|
|
30
40
|
});
|
|
31
41
|
}
|
|
32
42
|
export async function addEvidenceCompat(evidenceFacade, args) {
|
|
33
|
-
const created = await createEvidenceCompat(evidenceFacade, {
|
|
34
|
-
...args,
|
|
35
|
-
targetId: args.supports ? undefined : args.targetId,
|
|
36
|
-
weight: args.supports ? undefined : args.weight,
|
|
37
|
-
});
|
|
38
43
|
if (!args.supports) {
|
|
44
|
+
const created = await createEvidenceCompat(evidenceFacade, args);
|
|
39
45
|
return created.data;
|
|
40
46
|
}
|
|
41
|
-
const
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
evidenceId,
|
|
47
|
-
targetId: args.supports.nodeId,
|
|
48
|
-
weight: args.supports.weight,
|
|
47
|
+
const { supports, ...createArgs } = args;
|
|
48
|
+
const created = await createEvidenceCompat(evidenceFacade, {
|
|
49
|
+
...createArgs,
|
|
50
|
+
targetId: args.targetId ?? supports.nodeId,
|
|
51
|
+
weight: args.weight ?? supports.weight,
|
|
49
52
|
evidenceRelation: args.evidenceRelation ??
|
|
50
|
-
(
|
|
51
|
-
confidence: args.confidence ?? Math.min(1, Math.abs(
|
|
52
|
-
rationale: args.supports.reasoning,
|
|
53
|
+
(supports.weight < 0 ? "contradicts" : "supports"),
|
|
54
|
+
confidence: args.confidence ?? Math.min(1, Math.abs(supports.weight)),
|
|
55
|
+
rationale: args.rationale ?? supports.reasoning,
|
|
53
56
|
});
|
|
54
|
-
return
|
|
55
|
-
...created.data,
|
|
56
|
-
edgeId: linked.data.edgeId,
|
|
57
|
-
};
|
|
57
|
+
return created.data;
|
|
58
58
|
}
|
|
59
59
|
//# sourceMappingURL=clientEvidenceCompat.js.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ClientNamespaceContext } from "./clientAssemblyTypes";
|
|
2
2
|
import type { BeliefsCompatCreateInput, BeliefsCompatForkInput } from "./clientConfig";
|
|
3
|
+
import type { EvidenceCompatInput } from "./clientEvidenceCompat";
|
|
3
4
|
import type { FunctionSurfaceInput } from "./generated/functionSurface";
|
|
4
5
|
import type { JsonObject } from "./types";
|
|
5
6
|
export declare function createClientKnowledgeNamespaces(ctx: ClientNamespaceContext): {
|
|
@@ -93,38 +94,7 @@ export declare function createClientKnowledgeNamespaces(ctx: ClientNamespaceCont
|
|
|
93
94
|
}): any;
|
|
94
95
|
};
|
|
95
96
|
evidence: {
|
|
96
|
-
create(args:
|
|
97
|
-
text?: string;
|
|
98
|
-
canonicalText?: string;
|
|
99
|
-
topicId?: string;
|
|
100
|
-
source?: string;
|
|
101
|
-
sourceUrl?: string;
|
|
102
|
-
targetId?: string;
|
|
103
|
-
weight?: number;
|
|
104
|
-
evidenceRelation?: "supports" | "contradicts";
|
|
105
|
-
confidence?: number;
|
|
106
|
-
beliefRelations?: Array<{
|
|
107
|
-
beliefId?: string;
|
|
108
|
-
beliefNodeId?: string;
|
|
109
|
-
targetId?: string;
|
|
110
|
-
relation?: "supports" | "contradicts" | "supporting" | "contradicting";
|
|
111
|
-
evidenceRelation?: "supports" | "contradicts";
|
|
112
|
-
confidence?: number;
|
|
113
|
-
weight?: number;
|
|
114
|
-
rationale?: string;
|
|
115
|
-
}>;
|
|
116
|
-
metadata?: JsonObject;
|
|
117
|
-
title?: string;
|
|
118
|
-
content?: string;
|
|
119
|
-
contentType?: string;
|
|
120
|
-
kind?: string;
|
|
121
|
-
rationale?: string;
|
|
122
|
-
supports?: {
|
|
123
|
-
nodeId: string;
|
|
124
|
-
weight: number;
|
|
125
|
-
reasoning?: string;
|
|
126
|
-
};
|
|
127
|
-
}): any;
|
|
97
|
+
create(args: EvidenceCompatInput): any;
|
|
128
98
|
add: any;
|
|
129
99
|
get(evidenceId: string): any;
|
|
130
100
|
list(args: {
|
|
@@ -182,7 +152,12 @@ export declare function createClientKnowledgeNamespaces(ctx: ClientNamespaceCont
|
|
|
182
152
|
metadata?: JsonObject;
|
|
183
153
|
}): any;
|
|
184
154
|
get(questionId: string): any;
|
|
185
|
-
refine(questionId: string,
|
|
155
|
+
refine(questionId: string, input: string | {
|
|
156
|
+
text?: string;
|
|
157
|
+
question?: string;
|
|
158
|
+
rationale?: string;
|
|
159
|
+
linkedWorktreeId?: string;
|
|
160
|
+
}, refinementReason?: string): any;
|
|
186
161
|
list(args: {
|
|
187
162
|
topicId?: string;
|
|
188
163
|
status?: string;
|
|
@@ -359,12 +359,15 @@ export function createClientKnowledgeNamespaces(ctx) {
|
|
|
359
359
|
get(questionId) {
|
|
360
360
|
return questionsFacade.get(questionId).then(exposeGatewayData);
|
|
361
361
|
},
|
|
362
|
-
refine(questionId,
|
|
362
|
+
refine(questionId, input, refinementReason) {
|
|
363
|
+
const payload = typeof input === "string"
|
|
364
|
+
? {
|
|
365
|
+
text: input,
|
|
366
|
+
rationale: refinementReason,
|
|
367
|
+
}
|
|
368
|
+
: input;
|
|
363
369
|
return questionsFacade
|
|
364
|
-
.refine(questionId,
|
|
365
|
-
text,
|
|
366
|
-
rationale: refinementReason,
|
|
367
|
-
})
|
|
370
|
+
.refine(questionId, payload)
|
|
368
371
|
.then(exposeGatewayData);
|
|
369
372
|
},
|
|
370
373
|
list(args) {
|
|
@@ -17,6 +17,7 @@ export declare function createClientPlatformNamespaces(ctx: ClientNamespaceConte
|
|
|
17
17
|
checkPermission(input: FunctionSurfaceInput): any;
|
|
18
18
|
listAccessibleTopics(input?: Parameters<(...args: any[]) => any>[0]): any;
|
|
19
19
|
filterByPermission(input: FunctionSurfaceInput): any;
|
|
20
|
+
compileCapabilitySlice(input: Parameters<any>[0], idempotencyKey?: string): any;
|
|
20
21
|
manageWritePolicy(input: FunctionSurfaceInput, idempotencyKey?: string): any;
|
|
21
22
|
raw: Record<string, (...args: any[]) => any> & {
|
|
22
23
|
create: (...args: any[]) => any;
|
|
@@ -51,6 +51,9 @@ export function createClientPlatformNamespaces(ctx) {
|
|
|
51
51
|
principalId: typeof input.principalId === "string" ? input.principalId : undefined,
|
|
52
52
|
});
|
|
53
53
|
},
|
|
54
|
+
compileCapabilitySlice(input, idempotencyKey) {
|
|
55
|
+
return functionSurfaceClient.compileCapabilitySlice(input, idempotencyKey);
|
|
56
|
+
},
|
|
54
57
|
// Backward compatibility shim: keep the policy namespace exposing the
|
|
55
58
|
// historical manageWritePolicy entry point.
|
|
56
59
|
manageWritePolicy(input, idempotencyKey) {
|
package/dist/evidence/index.d.ts
CHANGED
|
@@ -4,38 +4,7 @@ export * as toolSchemas from "@lucern/contracts/tool-contracts";
|
|
|
4
4
|
export type EvidenceClientConfig = LucernClientConfig;
|
|
5
5
|
export type EvidenceClient = ReturnType<typeof createEvidenceClient>;
|
|
6
6
|
export declare function createEvidenceClient(config?: EvidenceClientConfig): {
|
|
7
|
-
createEvidence: (args:
|
|
8
|
-
text?: string;
|
|
9
|
-
canonicalText?: string;
|
|
10
|
-
topicId?: string;
|
|
11
|
-
source?: string;
|
|
12
|
-
sourceUrl?: string;
|
|
13
|
-
targetId?: string;
|
|
14
|
-
weight?: number;
|
|
15
|
-
evidenceRelation?: "supports" | "contradicts";
|
|
16
|
-
confidence?: number;
|
|
17
|
-
beliefRelations?: Array<{
|
|
18
|
-
beliefId?: string;
|
|
19
|
-
beliefNodeId?: string;
|
|
20
|
-
targetId?: string;
|
|
21
|
-
relation?: "supports" | "contradicts" | "supporting" | "contradicting";
|
|
22
|
-
evidenceRelation?: "supports" | "contradicts";
|
|
23
|
-
confidence?: number;
|
|
24
|
-
weight?: number;
|
|
25
|
-
rationale?: string;
|
|
26
|
-
}>;
|
|
27
|
-
metadata?: import("..").JsonObject;
|
|
28
|
-
title?: string;
|
|
29
|
-
content?: string;
|
|
30
|
-
contentType?: string;
|
|
31
|
-
kind?: string;
|
|
32
|
-
rationale?: string;
|
|
33
|
-
supports?: {
|
|
34
|
-
nodeId: string;
|
|
35
|
-
weight: number;
|
|
36
|
-
reasoning?: string;
|
|
37
|
-
};
|
|
38
|
-
}) => any;
|
|
7
|
+
createEvidence: (args: import("../clientEvidenceCompat").EvidenceCompatInput) => any;
|
|
39
8
|
getEvidence: (evidenceId: string) => any;
|
|
40
9
|
listEvidence: (args: {
|
|
41
10
|
topicId?: string;
|
|
@@ -66,38 +35,7 @@ export declare function createEvidenceClient(config?: EvidenceClientConfig): {
|
|
|
66
35
|
classifyEvidence: (beliefId: string, evidenceId: string, config?: Parameters<any>[2], idempotencyKey?: string) => any;
|
|
67
36
|
classifyEvidenceBatch: (beliefId: string, evidence: Parameters<any>[1], config?: Parameters<any>[2], idempotencyKey?: string) => any;
|
|
68
37
|
raw: {
|
|
69
|
-
create(args:
|
|
70
|
-
text?: string;
|
|
71
|
-
canonicalText?: string;
|
|
72
|
-
topicId?: string;
|
|
73
|
-
source?: string;
|
|
74
|
-
sourceUrl?: string;
|
|
75
|
-
targetId?: string;
|
|
76
|
-
weight?: number;
|
|
77
|
-
evidenceRelation?: "supports" | "contradicts";
|
|
78
|
-
confidence?: number;
|
|
79
|
-
beliefRelations?: Array<{
|
|
80
|
-
beliefId?: string;
|
|
81
|
-
beliefNodeId?: string;
|
|
82
|
-
targetId?: string;
|
|
83
|
-
relation?: "supports" | "contradicts" | "supporting" | "contradicting";
|
|
84
|
-
evidenceRelation?: "supports" | "contradicts";
|
|
85
|
-
confidence?: number;
|
|
86
|
-
weight?: number;
|
|
87
|
-
rationale?: string;
|
|
88
|
-
}>;
|
|
89
|
-
metadata?: import("..").JsonObject;
|
|
90
|
-
title?: string;
|
|
91
|
-
content?: string;
|
|
92
|
-
contentType?: string;
|
|
93
|
-
kind?: string;
|
|
94
|
-
rationale?: string;
|
|
95
|
-
supports?: {
|
|
96
|
-
nodeId: string;
|
|
97
|
-
weight: number;
|
|
98
|
-
reasoning?: string;
|
|
99
|
-
};
|
|
100
|
-
}): any;
|
|
38
|
+
create(args: import("../clientEvidenceCompat").EvidenceCompatInput): any;
|
|
101
39
|
add: any;
|
|
102
40
|
get(evidenceId: string): any;
|
|
103
41
|
list(args: {
|
package/dist/gatewayFacades.d.ts
CHANGED
|
@@ -171,6 +171,16 @@ export type EvidenceCreateInput = {
|
|
|
171
171
|
content?: string;
|
|
172
172
|
contentType?: string;
|
|
173
173
|
kind?: string;
|
|
174
|
+
tags?: string[];
|
|
175
|
+
sourceUrl?: string;
|
|
176
|
+
externalSourceUrl?: string;
|
|
177
|
+
sourceType?: string;
|
|
178
|
+
externalSourceType?: string;
|
|
179
|
+
sourceQuestionId?: string;
|
|
180
|
+
methodology?: string;
|
|
181
|
+
informationAsymmetry?: string;
|
|
182
|
+
sourceQuality?: "primary" | "analyzed" | "secondary" | "tertiary" | "unknown";
|
|
183
|
+
sourceDescription?: string;
|
|
174
184
|
};
|
|
175
185
|
export type EvidenceListQuery = {
|
|
176
186
|
topicId?: string;
|
|
@@ -217,8 +227,10 @@ export type QuestionAnswerInput = {
|
|
|
217
227
|
rationale?: string;
|
|
218
228
|
};
|
|
219
229
|
export type QuestionRefineInput = {
|
|
220
|
-
text
|
|
230
|
+
text?: string;
|
|
231
|
+
question?: string;
|
|
221
232
|
rationale?: string;
|
|
233
|
+
linkedWorktreeId?: string;
|
|
222
234
|
};
|
|
223
235
|
export type QuestionArchiveInput = {
|
|
224
236
|
reason?: string;
|
|
@@ -3,7 +3,7 @@ import type { JsonObject } from "../types";
|
|
|
3
3
|
export type FunctionSurfaceClientConfig = GatewayClientConfig;
|
|
4
4
|
export type FunctionSurfaceInput = JsonObject;
|
|
5
5
|
export type FunctionSurfaceResult<T = unknown> = Promise<PlatformGatewaySuccess<T>>;
|
|
6
|
-
export declare const FUNCTION_SURFACE_METHOD_PATHS: readonly ["answers.answerQuestion", "answers.createAnswer", "answers.getAnswer", "beliefs.appendSlScoring", "beliefs.archiveBelief", "beliefs.bisectConfidence", "beliefs.createBelief", "beliefs.forkBelief", "beliefs.getBelief", "beliefs.getConfidenceHistory", "beliefs.listBeliefs", "beliefs.refineBelief", "beliefs.searchBeliefs", "bootstrap.generateSessionHandoff", "coding.getChangeHistory", "coding.getCodeContext", "coding.getFailureLog", "coding.recordAttempt", "context.analyzeTopicDensity", "context.applyAutoBranching", "context.compileContext", "context.discover", "context.discoverEntityConnections", "context.getLatticeCoverage", "context.lucernOrient", "context.recordScopeLearning", "context.seedBeliefLattice", "context.triggerBeliefReview", "contracts.createEpistemicContract", "contracts.evaluateContract", "contracts.getContractStatus", "contradictions.flagContradiction", "controlPlane.identity.resolveInteractivePrincipal", "coordination.broadcastMessage", "coordination.claimFiles", "coordination.endSession", "coordination.getAgentInbox", "coordination.heartbeatSession", "coordination.listActiveSessions", "coordination.registerSession", "coordination.sendAgentMessage", "edges.batchCreateEdges", "edges.createEdge", "edges.queryLineage", "edges.removeEdge", "edges.removeEdgesBetween", "edges.updateEdge", "embeddings.getByNodeIds", "embeddings.listMissingForTopic", "embeddings.markEmbeddingBackfillQueued", "embeddings.vectorSearchByTopic", "evidence.addEvidence", "evidence.createEvidence", "evidence.getEvidence", "evidence.linkEvidence", "evidence.linkEvidenceToBelief", "evidence.linkEvidenceToQuestion", "evidence.listEvidence", "evidence.searchEvidence", "graph.detectConfirmationBias", "graph.findContradictions", "graph.getGraphGaps", "graph.getGraphNeighborhood", "graph.getGraphStructureAnalysis", "graph.getTopicCoverage", "graph.traceEntityImpact", "graph.traverseGraph", "graphAnalysis.listGraphIntelligenceQueries", "graphAnalysis.runGraphIntelligenceQuery", "hybrid.analyzeGraphImpact", "hybrid.detectGraphDrift", "hybrid.expandGraphNeighborhood", "hybrid.findRelatedNodes", "hybrid.hybridDiscover", "hybrid.resolveTopicSemantic", "identity.checkPermission", "identity.filterByPermission", "identity.whoami", "judgments.getAuditTrail", "judgments.recordJudgment", "lenses.applyLensToTopic", "lenses.createLens", "lenses.listLenses", "lenses.removeLensFromTopic", "nodes.archiveEpistemicNode", "nodes.batchCreateEpistemicNodes", "nodes.createEpistemicNode", "nodes.getEpistemicNode", "nodes.listEpistemicNodes", "nodes.supersedeEpistemicNode", "nodes.updateEpistemicNode", "nodes.verifyEpistemicNode", "observations.getObservationContext", "observations.ingestObservation", "ontologies.applyOntology", "ontologies.archiveOntology", "ontologies.createOntology", "ontologies.createOntologyVersion", "ontologies.deprecateOntologyVersion", "ontologies.getOntology", "ontologies.listOntologies", "ontologies.matchEntityType", "ontologies.publishOntologyVersion", "ontologies.resolveEffectiveOntology", "ontologies.updateOntology", "policy.manageWritePolicy", "questions.archiveQuestion", "questions.createQuestion", "questions.findMissingQuestions", "questions.getFalsificationQuestions", "questions.getHighPriorityQuestions", "questions.getQuestion", "questions.listQuestions", "questions.refineQuestion", "questions.updateQuestionStatus", "tasks.completeTask", "tasks.createTask", "tasks.listTasks", "tasks.updateTask", "topics.createTopic", "topics.getTopic", "topics.getTopicGraphSpine", "topics.getTopicTree", "topics.listTopics", "topics.materializeTopicGraph", "topics.updateTopic", "worktrees.activateWorktree", "worktrees.addWorktree", "worktrees.beginBuildSession", "worktrees.getWorktree", "worktrees.listAllWorktrees", "worktrees.listCampaigns", "worktrees.listWorktrees", "worktrees.merge", "worktrees.openPullRequest", "worktrees.pipelineSnapshot", "worktrees.push", "worktrees.updateWorktreeMetadata", "worktrees.updateWorktreeTargets"];
|
|
6
|
+
export declare const FUNCTION_SURFACE_METHOD_PATHS: readonly ["answers.answerQuestion", "answers.createAnswer", "answers.getAnswer", "beliefs.appendSlScoring", "beliefs.archiveBelief", "beliefs.bisectConfidence", "beliefs.createBelief", "beliefs.forkBelief", "beliefs.getBelief", "beliefs.getConfidenceHistory", "beliefs.listBeliefs", "beliefs.refineBelief", "beliefs.searchBeliefs", "bootstrap.generateSessionHandoff", "coding.getChangeHistory", "coding.getCodeContext", "coding.getFailureLog", "coding.recordAttempt", "context.analyzeTopicDensity", "context.applyAutoBranching", "context.compileContext", "context.discover", "context.discoverEntityConnections", "context.getLatticeCoverage", "context.lucernOrient", "context.recordScopeLearning", "context.seedBeliefLattice", "context.triggerBeliefReview", "contracts.createEpistemicContract", "contracts.evaluateContract", "contracts.getContractStatus", "contradictions.flagContradiction", "controlPlane.identity.resolveInteractivePrincipal", "coordination.broadcastMessage", "coordination.claimFiles", "coordination.endSession", "coordination.getAgentInbox", "coordination.heartbeatSession", "coordination.listActiveSessions", "coordination.registerSession", "coordination.sendAgentMessage", "edges.batchCreateEdges", "edges.createEdge", "edges.queryAnchorHistory", "edges.queryLineage", "edges.removeEdge", "edges.removeEdgesBetween", "edges.updateEdge", "embeddings.getByNodeIds", "embeddings.listMissingForTopic", "embeddings.markEmbeddingBackfillQueued", "embeddings.vectorSearchByTopic", "evidence.addEvidence", "evidence.archiveEvidence", "evidence.createEvidence", "evidence.getEvidence", "evidence.linkEvidence", "evidence.linkEvidenceToBelief", "evidence.linkEvidenceToQuestion", "evidence.listEvidence", "evidence.searchEvidence", "graph.detectConfirmationBias", "graph.findContradictions", "graph.getGraphGaps", "graph.getGraphNeighborhood", "graph.getGraphStructureAnalysis", "graph.getTopicCoverage", "graph.traceEntityImpact", "graph.traverseGraph", "graphAnalysis.listGraphIntelligenceQueries", "graphAnalysis.runGraphIntelligenceQuery", "hybrid.analyzeGraphImpact", "hybrid.detectGraphDrift", "hybrid.expandGraphNeighborhood", "hybrid.findRelatedNodes", "hybrid.hybridDiscover", "hybrid.resolveTopicSemantic", "identity.checkPermission", "identity.filterByPermission", "identity.whoami", "judgments.getAuditTrail", "judgments.recordJudgment", "lenses.applyLensToTopic", "lenses.createLens", "lenses.listLenses", "lenses.removeLensFromTopic", "nodes.archiveEpistemicNode", "nodes.batchCreateEpistemicNodes", "nodes.createEpistemicNode", "nodes.getEpistemicNode", "nodes.listEpistemicNodes", "nodes.supersedeEpistemicNode", "nodes.updateEpistemicNode", "nodes.verifyEpistemicNode", "observations.getObservationContext", "observations.ingestObservation", "ontologies.applyOntology", "ontologies.archiveOntology", "ontologies.createOntology", "ontologies.createOntologyVersion", "ontologies.deprecateOntologyVersion", "ontologies.getOntology", "ontologies.listOntologies", "ontologies.matchEntityType", "ontologies.publishOntologyVersion", "ontologies.resolveEffectiveOntology", "ontologies.updateOntology", "policy.compileCapabilitySlice", "policy.manageWritePolicy", "questions.archiveQuestion", "questions.createQuestion", "questions.findMissingQuestions", "questions.getFalsificationQuestions", "questions.getHighPriorityQuestions", "questions.getQuestion", "questions.listQuestions", "questions.refineQuestion", "questions.updateQuestionStatus", "tasks.completeTask", "tasks.createTask", "tasks.listTasks", "tasks.updateTask", "topics.createTopic", "topics.getTopic", "topics.getTopicGraphSpine", "topics.getTopicTree", "topics.listTopics", "topics.materializeTopicGraph", "topics.updateTopic", "worktrees.activateWorktree", "worktrees.addWorktree", "worktrees.beginBuildSession", "worktrees.getWorktree", "worktrees.listAllWorktrees", "worktrees.listCampaigns", "worktrees.listWorktrees", "worktrees.listWorktreesByBelief", "worktrees.merge", "worktrees.openPullRequest", "worktrees.pipelineSnapshot", "worktrees.push", "worktrees.updateWorktreeMetadata", "worktrees.updateWorktreeTargets"];
|
|
7
7
|
export declare function createFunctionSurfaceClient(config?: FunctionSurfaceClientConfig): {
|
|
8
8
|
sessionId: string;
|
|
9
9
|
activateWorktree(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
|
|
@@ -18,6 +18,7 @@ export declare function createFunctionSurfaceClient(config?: FunctionSurfaceClie
|
|
|
18
18
|
applyOntology(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
|
|
19
19
|
archiveBelief(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
|
|
20
20
|
archiveEpistemicNode(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
|
|
21
|
+
archiveEvidence(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
|
|
21
22
|
archiveOntology(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
|
|
22
23
|
archiveQuestion(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
|
|
23
24
|
batchCreateEdges(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
|
|
@@ -27,6 +28,7 @@ export declare function createFunctionSurfaceClient(config?: FunctionSurfaceClie
|
|
|
27
28
|
broadcastMessage(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
|
|
28
29
|
checkPermission(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
|
|
29
30
|
claimFiles(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
|
|
31
|
+
compileCapabilitySlice(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
|
|
30
32
|
compileContext(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
|
|
31
33
|
completeTask(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
|
|
32
34
|
createAnswer(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
|
|
@@ -103,6 +105,7 @@ export declare function createFunctionSurfaceClient(config?: FunctionSurfaceClie
|
|
|
103
105
|
listTasks(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
|
|
104
106
|
listTopics(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
|
|
105
107
|
listWorktrees(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
|
|
108
|
+
listWorktreesByBelief(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
|
|
106
109
|
lucernOrient(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
|
|
107
110
|
manageWritePolicy(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
|
|
108
111
|
matchEntityType(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
|
|
@@ -112,6 +115,7 @@ export declare function createFunctionSurfaceClient(config?: FunctionSurfaceClie
|
|
|
112
115
|
pipelineSnapshot(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
|
|
113
116
|
publishOntologyVersion(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
|
|
114
117
|
push(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
|
|
118
|
+
queryAnchorHistory(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
|
|
115
119
|
queryLineage(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
|
|
116
120
|
markEmbeddingBackfillQueued(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
|
|
117
121
|
recordAttempt(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
|
|
@@ -44,6 +44,7 @@ export const FUNCTION_SURFACE_METHOD_PATHS = [
|
|
|
44
44
|
"coordination.sendAgentMessage",
|
|
45
45
|
"edges.batchCreateEdges",
|
|
46
46
|
"edges.createEdge",
|
|
47
|
+
"edges.queryAnchorHistory",
|
|
47
48
|
"edges.queryLineage",
|
|
48
49
|
"edges.removeEdge",
|
|
49
50
|
"edges.removeEdgesBetween",
|
|
@@ -53,6 +54,7 @@ export const FUNCTION_SURFACE_METHOD_PATHS = [
|
|
|
53
54
|
"embeddings.markEmbeddingBackfillQueued",
|
|
54
55
|
"embeddings.vectorSearchByTopic",
|
|
55
56
|
"evidence.addEvidence",
|
|
57
|
+
"evidence.archiveEvidence",
|
|
56
58
|
"evidence.createEvidence",
|
|
57
59
|
"evidence.getEvidence",
|
|
58
60
|
"evidence.linkEvidence",
|
|
@@ -106,6 +108,7 @@ export const FUNCTION_SURFACE_METHOD_PATHS = [
|
|
|
106
108
|
"ontologies.publishOntologyVersion",
|
|
107
109
|
"ontologies.resolveEffectiveOntology",
|
|
108
110
|
"ontologies.updateOntology",
|
|
111
|
+
"policy.compileCapabilitySlice",
|
|
109
112
|
"policy.manageWritePolicy",
|
|
110
113
|
"questions.archiveQuestion",
|
|
111
114
|
"questions.createQuestion",
|
|
@@ -134,6 +137,7 @@ export const FUNCTION_SURFACE_METHOD_PATHS = [
|
|
|
134
137
|
"worktrees.listAllWorktrees",
|
|
135
138
|
"worktrees.listCampaigns",
|
|
136
139
|
"worktrees.listWorktrees",
|
|
140
|
+
"worktrees.listWorktreesByBelief",
|
|
137
141
|
"worktrees.merge",
|
|
138
142
|
"worktrees.openPullRequest",
|
|
139
143
|
"worktrees.pipelineSnapshot",
|
|
@@ -154,6 +158,7 @@ const CONTRACTS = {
|
|
|
154
158
|
"apply_ontology": { method: "POST", path: "/ontologies/apply", kind: "mutation", idempotent: true, surfaceIntent: "mcp_workflow" },
|
|
155
159
|
"archive_belief": { method: "DELETE", path: "/beliefs", kind: "mutation", idempotent: true, surfaceIntent: "mcp_core" },
|
|
156
160
|
"archive_epistemic_node": { method: "POST", path: "/nodes/archive", kind: "mutation", idempotent: true, surfaceIntent: "mcp_core" },
|
|
161
|
+
"archive_evidence": { method: "DELETE", path: "/evidence", kind: "mutation", idempotent: true, surfaceIntent: "mcp_core" },
|
|
157
162
|
"archive_ontology": { method: "DELETE", path: "/ontologies", kind: "mutation", idempotent: true, surfaceIntent: "mcp_governance" },
|
|
158
163
|
"archive_question": { method: "DELETE", path: "/questions", kind: "mutation", idempotent: true, surfaceIntent: "mcp_core" },
|
|
159
164
|
"batch_create_edges": { method: "POST", path: "/edges/batch", kind: "mutation", idempotent: true, surfaceIntent: "mcp_analysis" },
|
|
@@ -163,6 +168,7 @@ const CONTRACTS = {
|
|
|
163
168
|
"broadcast_message": { method: "POST", path: "/coordination/messages/broadcast", kind: "mutation", idempotent: true, surfaceIntent: "system" },
|
|
164
169
|
"check_permission": { method: "POST", path: "/identity/check-permission", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
|
|
165
170
|
"claim_files": { method: "POST", path: "/coordination/file-claims", kind: "mutation", idempotent: true, surfaceIntent: "system" },
|
|
171
|
+
"compile_capability_slice": { method: "POST", path: "/policy/capability-slice", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
|
|
166
172
|
"compile_context": { method: "POST", path: "/context/compile", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
|
|
167
173
|
"complete_task": { method: "POST", path: "/tasks/complete", kind: "mutation", idempotent: true, surfaceIntent: "mcp_workflow" },
|
|
168
174
|
"create_answer": { method: "POST", path: "/answers", kind: "mutation", idempotent: true, surfaceIntent: "mcp_core" },
|
|
@@ -204,7 +210,7 @@ const CONTRACTS = {
|
|
|
204
210
|
"get_epistemic_node": { method: "GET", path: "/nodes/get", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
|
|
205
211
|
"get_evidence": { method: "GET", path: "/evidence/get", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
|
|
206
212
|
"get_failure_log": { method: "POST", path: "/coding/failure-log", kind: "query", idempotent: false, surfaceIntent: "system" },
|
|
207
|
-
"get_falsification_questions": { method: "POST", path: "/questions/falsification", kind: "
|
|
213
|
+
"get_falsification_questions": { method: "POST", path: "/questions/falsification", kind: "action", idempotent: true, surfaceIntent: "mcp_core" },
|
|
208
214
|
"get_graph_gaps": { method: "POST", path: "/graph/gaps", kind: "query", idempotent: false, surfaceIntent: "mcp_analysis" },
|
|
209
215
|
"get_graph_neighborhood": { method: "POST", path: "/graph/neighborhood", kind: "query", idempotent: false, surfaceIntent: "mcp_analysis" },
|
|
210
216
|
"get_graph_structure_analysis": { method: "POST", path: "/graph/structure-analysis", kind: "query", idempotent: false, surfaceIntent: "mcp_analysis" },
|
|
@@ -239,6 +245,7 @@ const CONTRACTS = {
|
|
|
239
245
|
"list_tasks": { method: "GET", path: "/tasks", kind: "query", idempotent: false, surfaceIntent: "mcp_workflow" },
|
|
240
246
|
"list_topics": { method: "GET", path: "/topics", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
|
|
241
247
|
"list_worktrees": { method: "GET", path: "/worktrees", kind: "query", idempotent: false, surfaceIntent: "mcp_workflow" },
|
|
248
|
+
"list_worktrees_by_belief": { method: "GET", path: "/worktrees/by-belief", kind: "query", idempotent: false, surfaceIntent: "mcp_workflow" },
|
|
242
249
|
"lucern_orient": { method: "POST", path: "/context/orient", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
|
|
243
250
|
"manage_write_policy": { method: "POST", path: "/policy/write-policy/manage", kind: "mutation", idempotent: true, surfaceIntent: "mcp_governance" },
|
|
244
251
|
"match_entity_type": { method: "POST", path: "/ontologies/match-entity-type", kind: "query", idempotent: false, surfaceIntent: "mcp_workflow" },
|
|
@@ -248,6 +255,7 @@ const CONTRACTS = {
|
|
|
248
255
|
"pipeline_snapshot": { method: "POST", path: "/worktrees/pipeline-snapshot", kind: "query", idempotent: false, surfaceIntent: "system" },
|
|
249
256
|
"publish_ontology_version": { method: "POST", path: "/ontologies/versions/publish", kind: "mutation", idempotent: true, surfaceIntent: "mcp_governance" },
|
|
250
257
|
"push": { method: "POST", path: "/worktrees/push", kind: "mutation", idempotent: true, surfaceIntent: "system" },
|
|
258
|
+
"query_anchor_history": { method: "POST", path: "/edges/anchor-history", kind: "query", idempotent: false, surfaceIntent: "mcp_analysis" },
|
|
251
259
|
"query_lineage": { method: "POST", path: "/edges/lineage", kind: "query", idempotent: false, surfaceIntent: "mcp_analysis" },
|
|
252
260
|
"queue_embedding_backfill": { method: "POST", path: "/embeddings/backfill-queued", kind: "mutation", idempotent: true, surfaceIntent: "mcp_analysis" },
|
|
253
261
|
"record_attempt": { method: "POST", path: "/coding/attempts", kind: "mutation", idempotent: true, surfaceIntent: "system" },
|
|
@@ -363,6 +371,9 @@ export function createFunctionSurfaceClient(config = {}) {
|
|
|
363
371
|
archiveEpistemicNode(input = {}, idempotencyKey) {
|
|
364
372
|
return execute("archive_epistemic_node", input, idempotencyKey);
|
|
365
373
|
},
|
|
374
|
+
archiveEvidence(input = {}, idempotencyKey) {
|
|
375
|
+
return execute("archive_evidence", input, idempotencyKey);
|
|
376
|
+
},
|
|
366
377
|
archiveOntology(input = {}, idempotencyKey) {
|
|
367
378
|
return execute("archive_ontology", input, idempotencyKey);
|
|
368
379
|
},
|
|
@@ -390,6 +401,9 @@ export function createFunctionSurfaceClient(config = {}) {
|
|
|
390
401
|
claimFiles(input = {}, idempotencyKey) {
|
|
391
402
|
return execute("claim_files", input, idempotencyKey);
|
|
392
403
|
},
|
|
404
|
+
compileCapabilitySlice(input = {}, idempotencyKey) {
|
|
405
|
+
return execute("compile_capability_slice", input, idempotencyKey);
|
|
406
|
+
},
|
|
393
407
|
compileContext(input = {}, idempotencyKey) {
|
|
394
408
|
return execute("compile_context", input, idempotencyKey);
|
|
395
409
|
},
|
|
@@ -618,6 +632,9 @@ export function createFunctionSurfaceClient(config = {}) {
|
|
|
618
632
|
listWorktrees(input = {}, idempotencyKey) {
|
|
619
633
|
return execute("list_worktrees", input, idempotencyKey);
|
|
620
634
|
},
|
|
635
|
+
listWorktreesByBelief(input = {}, idempotencyKey) {
|
|
636
|
+
return execute("list_worktrees_by_belief", input, idempotencyKey);
|
|
637
|
+
},
|
|
621
638
|
lucernOrient(input = {}, idempotencyKey) {
|
|
622
639
|
return execute("lucern_orient", input, idempotencyKey);
|
|
623
640
|
},
|
|
@@ -645,6 +662,9 @@ export function createFunctionSurfaceClient(config = {}) {
|
|
|
645
662
|
push(input = {}, idempotencyKey) {
|
|
646
663
|
return execute("push", input, idempotencyKey);
|
|
647
664
|
},
|
|
665
|
+
queryAnchorHistory(input = {}, idempotencyKey) {
|
|
666
|
+
return execute("query_anchor_history", input, idempotencyKey);
|
|
667
|
+
},
|
|
648
668
|
queryLineage(input = {}, idempotencyKey) {
|
|
649
669
|
return execute("query_lineage", input, idempotencyKey);
|
|
650
670
|
},
|
package/dist/policyClient.d.ts
CHANGED
|
@@ -82,14 +82,38 @@ export type TenantPolicyPermission = {
|
|
|
82
82
|
resource: string;
|
|
83
83
|
actions: string[];
|
|
84
84
|
};
|
|
85
|
+
export type TenantPolicyKind = "role" | "object_classification";
|
|
86
|
+
export type TenantPolicyExternalAccess = "allowed" | "summaries" | "omitted";
|
|
87
|
+
export type TenantPolicyClassificationFields = {
|
|
88
|
+
policyKind?: TenantPolicyKind;
|
|
89
|
+
profileKey?: string;
|
|
90
|
+
objectTypes?: string[];
|
|
91
|
+
accessTier?: string;
|
|
92
|
+
exportClass?: string;
|
|
93
|
+
classificationKey?: string;
|
|
94
|
+
classificationLabels?: string[];
|
|
95
|
+
policyTags?: string[];
|
|
96
|
+
externalAccess?: TenantPolicyExternalAccess;
|
|
97
|
+
requiredGroupKey?: string;
|
|
98
|
+
};
|
|
85
99
|
export type TenantPolicyRecord = {
|
|
86
100
|
id?: string;
|
|
87
101
|
tenantId: string;
|
|
88
102
|
workspaceId?: string;
|
|
103
|
+
policyKind?: TenantPolicyKind;
|
|
89
104
|
roleName: string;
|
|
90
105
|
description?: string;
|
|
91
106
|
permissions: TenantPolicyPermission[];
|
|
92
107
|
groupBindings: string[];
|
|
108
|
+
profileKey?: string;
|
|
109
|
+
objectTypes?: string[];
|
|
110
|
+
accessTier?: string;
|
|
111
|
+
exportClass?: string;
|
|
112
|
+
classificationKey?: string;
|
|
113
|
+
classificationLabels?: string[];
|
|
114
|
+
policyTags?: string[];
|
|
115
|
+
externalAccess?: TenantPolicyExternalAccess;
|
|
116
|
+
requiredGroupKey?: string;
|
|
93
117
|
createdAt?: number;
|
|
94
118
|
updatedAt?: number;
|
|
95
119
|
createdBy?: string;
|
|
@@ -210,7 +234,7 @@ export declare function createPolicyClient(config?: PolicyClientConfig): {
|
|
|
210
234
|
/**
|
|
211
235
|
* Create a tenant role policy.
|
|
212
236
|
*/
|
|
213
|
-
createRolePolicy(input: GatewayScope & {
|
|
237
|
+
createRolePolicy(input: GatewayScope & TenantPolicyClassificationFields & {
|
|
214
238
|
roleName: string;
|
|
215
239
|
description?: string;
|
|
216
240
|
permissions: TenantPolicyPermission[];
|
|
@@ -227,7 +251,7 @@ export declare function createPolicyClient(config?: PolicyClientConfig): {
|
|
|
227
251
|
/**
|
|
228
252
|
* Update a tenant role policy by identifier.
|
|
229
253
|
*/
|
|
230
|
-
updateRolePolicy(id: string, input: GatewayScope & {
|
|
254
|
+
updateRolePolicy(id: string, input: GatewayScope & TenantPolicyClassificationFields & {
|
|
231
255
|
roleName: string;
|
|
232
256
|
description?: string;
|
|
233
257
|
permissions: TenantPolicyPermission[];
|
|
@@ -26,7 +26,12 @@ export declare function createQuestionsClient(config?: QuestionsClientConfig): {
|
|
|
26
26
|
evidenceIds?: string[];
|
|
27
27
|
rationale?: string;
|
|
28
28
|
}) => any;
|
|
29
|
-
refineQuestion: (questionId: string,
|
|
29
|
+
refineQuestion: (questionId: string, input: string | {
|
|
30
|
+
text?: string;
|
|
31
|
+
question?: string;
|
|
32
|
+
rationale?: string;
|
|
33
|
+
linkedWorktreeId?: string;
|
|
34
|
+
}, refinementReason?: string) => any;
|
|
30
35
|
updateQuestionStatus: (questionId: string, status: string, rationale?: string) => any;
|
|
31
36
|
archiveQuestion: (questionId: string, reason?: string) => any;
|
|
32
37
|
getHighPriorityQuestions: (args: {
|
|
@@ -47,7 +52,12 @@ export declare function createQuestionsClient(config?: QuestionsClientConfig): {
|
|
|
47
52
|
metadata?: import("..").JsonObject;
|
|
48
53
|
}): any;
|
|
49
54
|
get(questionId: string): any;
|
|
50
|
-
refine(questionId: string,
|
|
55
|
+
refine(questionId: string, input: string | {
|
|
56
|
+
text?: string;
|
|
57
|
+
question?: string;
|
|
58
|
+
rationale?: string;
|
|
59
|
+
linkedWorktreeId?: string;
|
|
60
|
+
}, refinementReason?: string): any;
|
|
51
61
|
list(args: {
|
|
52
62
|
topicId?: string;
|
|
53
63
|
status?: string;
|
package/dist/types.d.ts
CHANGED
|
@@ -59,6 +59,8 @@ export type PlatformBeliefRecord = {
|
|
|
59
59
|
canonicalText?: string;
|
|
60
60
|
formulation?: string;
|
|
61
61
|
status?: string;
|
|
62
|
+
beliefStatus?: string;
|
|
63
|
+
epistemicStatus?: string;
|
|
62
64
|
confidence?: number | null;
|
|
63
65
|
topicId?: string;
|
|
64
66
|
topicGlobalId?: string;
|
|
@@ -104,6 +106,8 @@ export type PlatformGraphNode = {
|
|
|
104
106
|
title?: string;
|
|
105
107
|
subtype?: string;
|
|
106
108
|
status?: string;
|
|
109
|
+
beliefStatus?: string;
|
|
110
|
+
epistemicStatus?: string;
|
|
107
111
|
confidence?: number | null;
|
|
108
112
|
topicId?: string;
|
|
109
113
|
sourceType?: string;
|
|
@@ -344,6 +348,7 @@ export type WorkflowBranchRecord = {
|
|
|
344
348
|
*/
|
|
345
349
|
export type WorkflowWorktreeRecord = {
|
|
346
350
|
worktreeId?: string;
|
|
351
|
+
nodeId?: string;
|
|
347
352
|
topicId?: string;
|
|
348
353
|
branchId?: string;
|
|
349
354
|
title?: string;
|
package/dist/version.d.ts
CHANGED
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lucern/sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.19",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -113,10 +113,10 @@
|
|
|
113
113
|
"typecheck": "tsc --project tsconfig.typecheck.json --noEmit"
|
|
114
114
|
},
|
|
115
115
|
"dependencies": {
|
|
116
|
-
"@lucern/contracts": "1.0.
|
|
117
|
-
"@lucern/reasoning-kernel": "1.0.
|
|
118
|
-
"@lucern/secrets": "1.0.
|
|
119
|
-
"@lucern/transport-core": "1.0.
|
|
116
|
+
"@lucern/contracts": "1.0.19",
|
|
117
|
+
"@lucern/reasoning-kernel": "1.0.19",
|
|
118
|
+
"@lucern/secrets": "1.0.19",
|
|
119
|
+
"@lucern/transport-core": "1.0.19",
|
|
120
120
|
"effect": "^3.21.2",
|
|
121
121
|
"zod": "^3.25.76"
|
|
122
122
|
},
|