@lucern/sdk 0.2.0-alpha.1
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 +97 -0
- package/dist/index.js +8980 -0
- package/dist/index.js.map +1 -0
- package/dist/lucern/contracts/src/auth-session.contract.d.ts +53 -0
- package/dist/lucern/contracts/src/context-pack.contract.d.ts +494 -0
- package/dist/lucern/contracts/src/lens-filter.contract.d.ts +70 -0
- package/dist/lucern/contracts/src/lens-workflow.contract.d.ts +84 -0
- package/dist/lucern/contracts/src/mcp-tools.contract.d.ts +151 -0
- package/dist/lucern/contracts/src/workflow-runtime.contract.d.ts +161 -0
- package/dist/lucern/mcp-server/src/context-pack-policy.d.ts +119 -0
- package/dist/lucern/mcp-server/src/context-pack-schema.d.ts +18 -0
- package/dist/lucern/modules/graph-primitives/src/ontology-matching.d.ts +78 -0
- package/dist/lucern/modules/graph-primitives/src/text-matching.d.ts +53 -0
- package/dist/lucern/packages/client-core/src/beliefs.d.ts +30 -0
- package/dist/lucern/packages/client-core/src/context.d.ts +29 -0
- package/dist/lucern/packages/client-core/src/contradictions.d.ts +11 -0
- package/dist/lucern/packages/client-core/src/edges.d.ts +11 -0
- package/dist/lucern/packages/client-core/src/events.d.ts +9 -0
- package/dist/lucern/packages/client-core/src/evidence.d.ts +21 -0
- package/dist/lucern/packages/client-core/src/graph.d.ts +17 -0
- package/dist/lucern/packages/client-core/src/identity.d.ts +7 -0
- package/dist/lucern/packages/client-core/src/ids.d.ts +7 -0
- package/dist/lucern/packages/client-core/src/ontologies.d.ts +13 -0
- package/dist/lucern/packages/client-core/src/questions.d.ts +39 -0
- package/dist/lucern/packages/client-core/src/search.d.ts +7 -0
- package/dist/lucern/packages/client-core/src/tasks.d.ts +13 -0
- package/dist/lucern/packages/client-core/src/topics.d.ts +17 -0
- package/dist/lucern/packages/client-core/src/webhooks.d.ts +35 -0
- package/dist/lucern/packages/client-core/src/worktrees.d.ts +17 -0
- package/dist/lucern/packages/domain-beliefs/src/beliefs.d.ts +283 -0
- package/dist/lucern/packages/domain-beliefs/src/index.d.ts +1 -0
- package/dist/lucern/packages/domain-context/src/compile.d.ts +11 -0
- package/dist/lucern/packages/domain-context/src/context-pack-compiler.d.ts +101 -0
- package/dist/lucern/packages/domain-context/src/index.d.ts +4 -0
- package/dist/lucern/packages/domain-context/src/ports.d.ts +58 -0
- package/dist/lucern/packages/domain-context/src/public-types.d.ts +1 -0
- package/dist/lucern/packages/domain-edges/src/contradictions.d.ts +59 -0
- package/dist/lucern/packages/domain-edges/src/edges.d.ts +91 -0
- package/dist/lucern/packages/domain-edges/src/index.d.ts +2 -0
- package/dist/lucern/packages/domain-evidence/src/evidence.d.ts +115 -0
- package/dist/lucern/packages/domain-evidence/src/index.d.ts +1 -0
- package/dist/lucern/packages/domain-graph/src/graph.d.ts +150 -0
- package/dist/lucern/packages/domain-identity/src/index.d.ts +1 -0
- package/dist/lucern/packages/domain-identity/src/whoami.d.ts +13 -0
- package/dist/lucern/packages/domain-ontologies/src/ontologies.d.ts +123 -0
- package/dist/lucern/packages/domain-questions/src/index.d.ts +1 -0
- package/dist/lucern/packages/domain-questions/src/questions.d.ts +147 -0
- package/dist/lucern/packages/domain-search/src/search.d.ts +97 -0
- package/dist/lucern/packages/domain-tasks/src/index.d.ts +1 -0
- package/dist/lucern/packages/domain-tasks/src/tasks.d.ts +102 -0
- package/dist/lucern/packages/domain-topics/src/index.d.ts +1 -0
- package/dist/lucern/packages/domain-topics/src/topics.d.ts +147 -0
- package/dist/lucern/packages/domain-worktrees/src/index.d.ts +1 -0
- package/dist/lucern/packages/domain-worktrees/src/worktrees.d.ts +185 -0
- package/dist/lucern/packages/events/src/index.d.ts +4 -0
- package/dist/lucern/packages/events/src/matching.d.ts +3 -0
- package/dist/lucern/packages/events/src/outbox.d.ts +15 -0
- package/dist/lucern/packages/events/src/types.d.ts +151 -0
- package/dist/lucern/packages/events/src/webhooks.d.ts +9 -0
- package/dist/lucern/packages/sdk-typescript/src/facade/beliefs.d.ts +15 -0
- package/dist/lucern/packages/sdk-typescript/src/facade/context.d.ts +12 -0
- package/dist/lucern/packages/sdk-typescript/src/facade/contradictions.d.ts +7 -0
- package/dist/lucern/packages/sdk-typescript/src/facade/edges.d.ts +7 -0
- package/dist/lucern/packages/sdk-typescript/src/facade/events.d.ts +6 -0
- package/dist/lucern/packages/sdk-typescript/src/facade/evidence.d.ts +21 -0
- package/dist/lucern/packages/sdk-typescript/src/facade/graph.d.ts +10 -0
- package/dist/lucern/packages/sdk-typescript/src/facade/identity.d.ts +5 -0
- package/dist/lucern/packages/sdk-typescript/src/facade/ontologies.d.ts +8 -0
- package/dist/lucern/packages/sdk-typescript/src/facade/questions.d.ts +39 -0
- package/dist/lucern/packages/sdk-typescript/src/facade/search.d.ts +5 -0
- package/dist/lucern/packages/sdk-typescript/src/facade/tasks.d.ts +8 -0
- package/dist/lucern/packages/sdk-typescript/src/facade/topics.d.ts +10 -0
- package/dist/lucern/packages/sdk-typescript/src/facade/webhooks.d.ts +16 -0
- package/dist/lucern/packages/sdk-typescript/src/facade/worktrees.d.ts +10 -0
- package/dist/lucern/packages/sdk-typescript/src/index.d.ts +28 -0
- package/dist/packages/sdk/src/adminClient.d.ts +89 -0
- package/dist/packages/sdk/src/answersClient.d.ts +5 -0
- package/dist/packages/sdk/src/audiencesClient.d.ts +87 -0
- package/dist/packages/sdk/src/auditClient.d.ts +23 -0
- package/dist/packages/sdk/src/beliefsClient.d.ts +54 -0
- package/dist/packages/sdk/src/client.d.ts +1610 -0
- package/dist/packages/sdk/src/contextClient.d.ts +9 -0
- package/dist/packages/sdk/src/contracts/api-enums.contract.d.ts +58 -0
- package/dist/packages/sdk/src/controlObjectOwnership.d.ts +293 -0
- package/dist/packages/sdk/src/coreClient.d.ts +120 -0
- package/dist/packages/sdk/src/customTools.d.ts +65 -0
- package/dist/packages/sdk/src/decisionsClient.d.ts +110 -0
- package/dist/packages/sdk/src/graphClient.d.ts +209 -0
- package/dist/packages/sdk/src/harnessClient.d.ts +222 -0
- package/dist/packages/sdk/src/identityClient.d.ts +104 -0
- package/dist/packages/sdk/src/index.d.ts +28 -0
- package/dist/packages/sdk/src/learningClient.d.ts +43 -0
- package/dist/packages/sdk/src/mcpParityClient.d.ts +68 -0
- package/dist/packages/sdk/src/mcpParitySurface.d.ts +8 -0
- package/dist/packages/sdk/src/ontologyClient.d.ts +115 -0
- package/dist/packages/sdk/src/packsClient.d.ts +101 -0
- package/dist/packages/sdk/src/policyClient.d.ts +204 -0
- package/dist/packages/sdk/src/reportsClient.d.ts +31 -0
- package/dist/packages/sdk/src/schemaClient.d.ts +54 -0
- package/dist/packages/sdk/src/sdkSurface.d.ts +56 -0
- package/dist/packages/sdk/src/topicsClient.d.ts +45 -0
- package/dist/packages/sdk/src/types.d.ts +489 -0
- package/dist/packages/sdk/src/version.d.ts +2 -0
- package/dist/packages/sdk/src/workflowClient.d.ts +274 -0
- package/package.json +56 -0
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
import { type GatewayClientConfig, LucernApiError } from "./coreClient";
|
|
2
|
+
import type { DeleteEdgeResponse, GraphAnalyticsMetric, GraphAnalyticsResponse, GraphNeighborhoodResponse, GraphPathResponse, JsonObject, ListResult, PlatformGraphEdge, PlatformGraphNode, TextAliasInput, TopicIdentifierInput } from "./types";
|
|
3
|
+
export { LucernApiError };
|
|
4
|
+
export type { GatewayScope, PlatformGatewaySuccess } from "./coreClient";
|
|
5
|
+
export type { CreateEdgeResponse, CreateNodeResponse, DeleteEdgeResponse, GraphAnalyticsMetric, GraphAnalyticsResponse, GraphNeighborhoodResponse, GraphPathResponse, ListResult, QueryEdgesResponse, QueryNodesResponse, UpdateNodeResponse, } from "./types";
|
|
6
|
+
export type GraphClientConfig = GatewayClientConfig;
|
|
7
|
+
export type ListNodesInput = {
|
|
8
|
+
nodeId?: string;
|
|
9
|
+
globalId?: string;
|
|
10
|
+
topicId?: string;
|
|
11
|
+
/** @deprecated Use topicId. */
|
|
12
|
+
projectId?: string;
|
|
13
|
+
nodeType?: string;
|
|
14
|
+
limit?: number;
|
|
15
|
+
} & TopicIdentifierInput;
|
|
16
|
+
export type ListNodesResponse = ListResult<PlatformGraphNode, "nodes">;
|
|
17
|
+
export type QueryNodesInput = ListNodesInput;
|
|
18
|
+
export type CreateNodeInput = {
|
|
19
|
+
text?: string;
|
|
20
|
+
/** @deprecated Use text. */
|
|
21
|
+
canonicalText?: string;
|
|
22
|
+
nodeType: string;
|
|
23
|
+
topicId?: string;
|
|
24
|
+
/** @deprecated Use topicId. */
|
|
25
|
+
projectId?: string;
|
|
26
|
+
content?: string;
|
|
27
|
+
contentHash?: string;
|
|
28
|
+
globalId?: string;
|
|
29
|
+
sourceType?: string;
|
|
30
|
+
subtype?: string;
|
|
31
|
+
title?: string;
|
|
32
|
+
confidence?: number;
|
|
33
|
+
status?: string;
|
|
34
|
+
tags?: string[];
|
|
35
|
+
metadata?: JsonObject;
|
|
36
|
+
verificationStatus?: string;
|
|
37
|
+
} & TextAliasInput & TopicIdentifierInput;
|
|
38
|
+
export type UpdateNodeInput = {
|
|
39
|
+
nodeId: string;
|
|
40
|
+
text?: string;
|
|
41
|
+
canonicalText?: string;
|
|
42
|
+
content?: string;
|
|
43
|
+
contentHash?: string;
|
|
44
|
+
title?: string;
|
|
45
|
+
subtype?: string;
|
|
46
|
+
confidence?: number;
|
|
47
|
+
status?: string;
|
|
48
|
+
tags?: string[];
|
|
49
|
+
metadata?: JsonObject;
|
|
50
|
+
verificationStatus?: string;
|
|
51
|
+
} & TextAliasInput;
|
|
52
|
+
export type ListEdgesInput = {
|
|
53
|
+
edgeId?: string;
|
|
54
|
+
topicId?: string;
|
|
55
|
+
/** @deprecated Use topicId. */
|
|
56
|
+
projectId?: string;
|
|
57
|
+
fromNodeId?: string;
|
|
58
|
+
toNodeId?: string;
|
|
59
|
+
edgeType?: string;
|
|
60
|
+
limit?: number;
|
|
61
|
+
} & TopicIdentifierInput;
|
|
62
|
+
export type ListEdgesResponse = ListResult<PlatformGraphEdge, "edges">;
|
|
63
|
+
export type QueryEdgesInput = ListEdgesInput;
|
|
64
|
+
export type CreateEdgeInput = {
|
|
65
|
+
fromNodeId: string;
|
|
66
|
+
toNodeId: string;
|
|
67
|
+
edgeType: string;
|
|
68
|
+
globalId?: string;
|
|
69
|
+
topicId?: string;
|
|
70
|
+
/** @deprecated Use topicId. */
|
|
71
|
+
projectId?: string;
|
|
72
|
+
confidence?: number;
|
|
73
|
+
weight?: number;
|
|
74
|
+
context?: string;
|
|
75
|
+
derivationType?: string;
|
|
76
|
+
} & TopicIdentifierInput;
|
|
77
|
+
export type DeleteEdgeInput = {
|
|
78
|
+
edgeId?: string;
|
|
79
|
+
fromNodeId?: string;
|
|
80
|
+
toNodeId?: string;
|
|
81
|
+
edgeType?: string;
|
|
82
|
+
};
|
|
83
|
+
export type NeighborhoodInput = {
|
|
84
|
+
globalId?: string;
|
|
85
|
+
globalIds?: string;
|
|
86
|
+
maxDepth?: number;
|
|
87
|
+
};
|
|
88
|
+
export type PathInput = {
|
|
89
|
+
fromGlobalId: string;
|
|
90
|
+
toGlobalId: string;
|
|
91
|
+
maxDepth?: number;
|
|
92
|
+
};
|
|
93
|
+
export type AnalyticsInput = {
|
|
94
|
+
metric?: GraphAnalyticsMetric;
|
|
95
|
+
limit?: number;
|
|
96
|
+
};
|
|
97
|
+
export type TraverseInput = {
|
|
98
|
+
startNode: string;
|
|
99
|
+
direction?: string;
|
|
100
|
+
maxDepth?: number;
|
|
101
|
+
topicId?: string;
|
|
102
|
+
/** @deprecated Use topicId. */
|
|
103
|
+
projectId?: string;
|
|
104
|
+
} & TopicIdentifierInput;
|
|
105
|
+
export type AnalyzeInput = {
|
|
106
|
+
topicId?: string;
|
|
107
|
+
/** @deprecated Use topicId. */
|
|
108
|
+
projectId?: string;
|
|
109
|
+
metric?: GraphAnalyticsMetric;
|
|
110
|
+
limit?: number;
|
|
111
|
+
} & TopicIdentifierInput;
|
|
112
|
+
export type BiasInput = {
|
|
113
|
+
topicId?: string;
|
|
114
|
+
/** @deprecated Use topicId. */
|
|
115
|
+
projectId?: string;
|
|
116
|
+
threshold?: number;
|
|
117
|
+
limit?: number;
|
|
118
|
+
} & TopicIdentifierInput;
|
|
119
|
+
export type GapsInput = {
|
|
120
|
+
topicId?: string;
|
|
121
|
+
/** @deprecated Use topicId. */
|
|
122
|
+
projectId?: string;
|
|
123
|
+
minConfidence?: number;
|
|
124
|
+
} & TopicIdentifierInput;
|
|
125
|
+
export type SearchInput = {
|
|
126
|
+
q?: string;
|
|
127
|
+
query?: string;
|
|
128
|
+
topicId?: string;
|
|
129
|
+
/** @deprecated Use topicId. */
|
|
130
|
+
projectId?: string;
|
|
131
|
+
types?: string[];
|
|
132
|
+
status?: string;
|
|
133
|
+
minConfidence?: number;
|
|
134
|
+
limit?: number;
|
|
135
|
+
cursor?: string;
|
|
136
|
+
} & TopicIdentifierInput;
|
|
137
|
+
/**
|
|
138
|
+
* Create the low-level graph client for nodes, edges, and graph analytics.
|
|
139
|
+
*/
|
|
140
|
+
export declare function createGraphClient(config?: GraphClientConfig): {
|
|
141
|
+
/**
|
|
142
|
+
* List graph nodes matching the provided filters.
|
|
143
|
+
*/
|
|
144
|
+
listNodes(query: ListNodesInput): Promise<import("./coreClient").PlatformGatewaySuccess<ListResult<PlatformGraphNode, "nodes">>>;
|
|
145
|
+
/**
|
|
146
|
+
* @deprecated Use listNodes.
|
|
147
|
+
*/
|
|
148
|
+
queryNodes(query: QueryNodesInput): Promise<import("./coreClient").PlatformGatewaySuccess<ListResult<PlatformGraphNode, "nodes">>>;
|
|
149
|
+
/**
|
|
150
|
+
* Create a graph node.
|
|
151
|
+
*/
|
|
152
|
+
createNode(input: CreateNodeInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<PlatformGraphNode>>;
|
|
153
|
+
/**
|
|
154
|
+
* Update a graph node.
|
|
155
|
+
*/
|
|
156
|
+
updateNode(input: UpdateNodeInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<PlatformGraphNode>>;
|
|
157
|
+
/**
|
|
158
|
+
* List graph edges matching the provided filters.
|
|
159
|
+
*/
|
|
160
|
+
listEdges(query: ListEdgesInput): Promise<import("./coreClient").PlatformGatewaySuccess<ListResult<PlatformGraphEdge, "edges">>>;
|
|
161
|
+
/**
|
|
162
|
+
* @deprecated Use listEdges.
|
|
163
|
+
*/
|
|
164
|
+
queryEdges(query: QueryEdgesInput): Promise<import("./coreClient").PlatformGatewaySuccess<ListResult<PlatformGraphEdge, "edges">>>;
|
|
165
|
+
/**
|
|
166
|
+
* Create a graph edge.
|
|
167
|
+
*/
|
|
168
|
+
createEdge(input: CreateEdgeInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<PlatformGraphEdge>>;
|
|
169
|
+
/**
|
|
170
|
+
* Delete one or more edges matching the provided filter.
|
|
171
|
+
*/
|
|
172
|
+
deleteEdge(query: DeleteEdgeInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<DeleteEdgeResponse>>;
|
|
173
|
+
/**
|
|
174
|
+
* Retrieve a graph neighborhood around a root node.
|
|
175
|
+
*/
|
|
176
|
+
neighborhood(query: NeighborhoodInput): Promise<import("./coreClient").PlatformGatewaySuccess<GraphNeighborhoodResponse>>;
|
|
177
|
+
/**
|
|
178
|
+
* Traverse the graph from a starting node.
|
|
179
|
+
*/
|
|
180
|
+
traverse(query: TraverseInput): Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
181
|
+
/**
|
|
182
|
+
* Analyze graph structure for a topic.
|
|
183
|
+
*/
|
|
184
|
+
analyze(query?: AnalyzeInput): Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
185
|
+
/**
|
|
186
|
+
* Detect confirmation-bias patterns for a topic graph.
|
|
187
|
+
*/
|
|
188
|
+
bias(query?: BiasInput): Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
189
|
+
/**
|
|
190
|
+
* Find graph gaps for beliefs that still need testing.
|
|
191
|
+
*/
|
|
192
|
+
gaps(query: GapsInput): Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
193
|
+
/**
|
|
194
|
+
* Search across graph resources within a topic.
|
|
195
|
+
*/
|
|
196
|
+
search(query: SearchInput): Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
197
|
+
/**
|
|
198
|
+
* Retrieve a graph neighborhood around a root node.
|
|
199
|
+
*/
|
|
200
|
+
getNeighborhood(query: NeighborhoodInput): Promise<import("./coreClient").PlatformGatewaySuccess<GraphNeighborhoodResponse>>;
|
|
201
|
+
/**
|
|
202
|
+
* Retrieve the shortest known path between two graph nodes.
|
|
203
|
+
*/
|
|
204
|
+
getPath(query: PathInput): Promise<import("./coreClient").PlatformGatewaySuccess<GraphPathResponse>>;
|
|
205
|
+
/**
|
|
206
|
+
* Retrieve graph analytics for the requested metric.
|
|
207
|
+
*/
|
|
208
|
+
getAnalytics(query?: AnalyticsInput): Promise<import("./coreClient").PlatformGatewaySuccess<GraphAnalyticsResponse>>;
|
|
209
|
+
};
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import { type GatewayClientConfig, type GatewayScope, LucernApiError } from "./coreClient";
|
|
2
|
+
import type { JsonObject, JsonValue, TopicIdentifierInput } from "./types";
|
|
3
|
+
export { LucernApiError };
|
|
4
|
+
export type { GatewayScope, PlatformGatewaySuccess } from "./coreClient";
|
|
5
|
+
export type HarnessClientConfig = GatewayClientConfig;
|
|
6
|
+
export type HarnessAgentWriteInput = GatewayScope & {
|
|
7
|
+
agentDefinitionId?: string;
|
|
8
|
+
agentKey: string;
|
|
9
|
+
displayName: string;
|
|
10
|
+
description: string;
|
|
11
|
+
version: string;
|
|
12
|
+
status?: "active" | "deprecated" | "disabled";
|
|
13
|
+
executionAdapter: "convex_mutation" | "convex_action" | "http_callback" | "mcp_tool" | "sdk_invocation" | "external_observed";
|
|
14
|
+
scopeRequirements?: string[];
|
|
15
|
+
promptReleaseChannel?: "dev" | "staging" | "prod";
|
|
16
|
+
parameterSchema?: JsonObject;
|
|
17
|
+
exampleInvocations?: Array<{
|
|
18
|
+
input: JsonObject;
|
|
19
|
+
expectedOutput?: JsonValue;
|
|
20
|
+
}>;
|
|
21
|
+
metadata?: JsonObject;
|
|
22
|
+
};
|
|
23
|
+
export type HarnessToolWriteInput = GatewayScope & {
|
|
24
|
+
toolId?: string;
|
|
25
|
+
toolName: string;
|
|
26
|
+
description: string;
|
|
27
|
+
version: string;
|
|
28
|
+
status?: "draft" | "active" | "deprecated" | "disabled";
|
|
29
|
+
executionAdapter: "convex_mutation" | "convex_action" | "http_callback" | "mcp_tool" | "sdk_invocation" | "external_observed";
|
|
30
|
+
gateClassification?: "core" | "shimmed";
|
|
31
|
+
scopeRequirements?: string[];
|
|
32
|
+
requiredRole?: string;
|
|
33
|
+
requiredAction?: string;
|
|
34
|
+
surfaces?: string[];
|
|
35
|
+
category?: string;
|
|
36
|
+
parameterSchema?: JsonObject;
|
|
37
|
+
returnSchema?: JsonObject;
|
|
38
|
+
handlerRef?: string;
|
|
39
|
+
callbackUrl?: string;
|
|
40
|
+
safetyMetadata: {
|
|
41
|
+
readOnly?: boolean;
|
|
42
|
+
idempotent?: boolean;
|
|
43
|
+
sideEffectLevel: "none" | "low" | "high";
|
|
44
|
+
};
|
|
45
|
+
exampleInvocations?: Array<{
|
|
46
|
+
input: JsonObject;
|
|
47
|
+
expectedOutput?: JsonValue;
|
|
48
|
+
}>;
|
|
49
|
+
metadata?: JsonObject;
|
|
50
|
+
};
|
|
51
|
+
export type HarnessStartRunInput = GatewayScope & {
|
|
52
|
+
agentDefinitionId: string;
|
|
53
|
+
agentVersion: string;
|
|
54
|
+
executionAdapter: "convex_mutation" | "convex_action" | "http_callback" | "mcp_tool" | "sdk_invocation" | "external_observed";
|
|
55
|
+
promptReleaseChannel?: "dev" | "staging" | "prod";
|
|
56
|
+
chatId?: string;
|
|
57
|
+
sprintId?: string;
|
|
58
|
+
topicId?: string;
|
|
59
|
+
/** @deprecated Use topicId. */
|
|
60
|
+
projectId?: string;
|
|
61
|
+
langfuseTraceId?: string;
|
|
62
|
+
metadata?: JsonObject;
|
|
63
|
+
} & TopicIdentifierInput;
|
|
64
|
+
export type HarnessRunReportInput = {
|
|
65
|
+
reportingToken: string;
|
|
66
|
+
type: "tool_call" | "prompt_resolution" | "policy_decision";
|
|
67
|
+
metadata?: JsonObject;
|
|
68
|
+
toolCallId?: string;
|
|
69
|
+
toolName?: string;
|
|
70
|
+
executionAdapter?: "convex_mutation" | "convex_action" | "http_callback" | "mcp_tool" | "sdk_invocation" | "external_observed";
|
|
71
|
+
policyDecisionId?: string;
|
|
72
|
+
requiredScopes?: string[];
|
|
73
|
+
policyResult?: "allowed" | "denied";
|
|
74
|
+
policyReasonCode?: string;
|
|
75
|
+
inputHash?: string;
|
|
76
|
+
outputHash?: string;
|
|
77
|
+
durationMs?: number;
|
|
78
|
+
success?: boolean;
|
|
79
|
+
startedAt?: number;
|
|
80
|
+
completedAt?: number;
|
|
81
|
+
input?: JsonObject;
|
|
82
|
+
result?: JsonValue;
|
|
83
|
+
promptKey?: string;
|
|
84
|
+
promptVersion?: string;
|
|
85
|
+
decision?: string;
|
|
86
|
+
reasonCode?: string;
|
|
87
|
+
latencyMs?: number;
|
|
88
|
+
error?: string | {
|
|
89
|
+
code?: string;
|
|
90
|
+
message: string;
|
|
91
|
+
details?: JsonValue;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
export type HarnessCompleteRunInput = {
|
|
95
|
+
reportingToken: string;
|
|
96
|
+
status: "completed" | "failed" | "timeout";
|
|
97
|
+
error?: {
|
|
98
|
+
category: "policy_denied" | "tool_execution" | "prompt_resolution" | "model_error" | "timeout" | "heartbeat_timeout" | "input_validation" | "internal" | "external_service";
|
|
99
|
+
message: string;
|
|
100
|
+
code?: string;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* Create the harness client for agent and tool registry operations.
|
|
105
|
+
*/
|
|
106
|
+
export declare function createHarnessClient(config?: HarnessClientConfig): {
|
|
107
|
+
/**
|
|
108
|
+
* List agent definitions.
|
|
109
|
+
*/
|
|
110
|
+
listAgentDefinitions(scope?: GatewayScope & {
|
|
111
|
+
status?: string;
|
|
112
|
+
limit?: number;
|
|
113
|
+
cursor?: string;
|
|
114
|
+
}): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<any, "agents">>>;
|
|
115
|
+
/**
|
|
116
|
+
* Get an agent definition.
|
|
117
|
+
*/
|
|
118
|
+
getAgentDefinition(agentId: string, scope?: GatewayScope): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
119
|
+
/**
|
|
120
|
+
* Create an agent definition.
|
|
121
|
+
*/
|
|
122
|
+
createAgentDefinition(input: HarnessAgentWriteInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
123
|
+
/**
|
|
124
|
+
* @deprecated Use createAgentDefinition.
|
|
125
|
+
*/
|
|
126
|
+
registerAgentDefinition(input: HarnessAgentWriteInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
127
|
+
/**
|
|
128
|
+
* Update an agent definition.
|
|
129
|
+
*/
|
|
130
|
+
updateAgentDefinition(agentId: string, input: HarnessAgentWriteInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
131
|
+
/**
|
|
132
|
+
* List runs for an agent definition.
|
|
133
|
+
*/
|
|
134
|
+
listAgentRuns(agentId: string, scope?: GatewayScope & {
|
|
135
|
+
status?: string;
|
|
136
|
+
limit?: number;
|
|
137
|
+
cursor?: string;
|
|
138
|
+
}): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<any, "runs">>>;
|
|
139
|
+
/**
|
|
140
|
+
* @deprecated Use listAgentRuns.
|
|
141
|
+
*/
|
|
142
|
+
listRunsForAgent(agentId: string, scope?: GatewayScope & {
|
|
143
|
+
status?: string;
|
|
144
|
+
limit?: number;
|
|
145
|
+
cursor?: string;
|
|
146
|
+
}): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<any, "runs">>>;
|
|
147
|
+
/**
|
|
148
|
+
* List tool definitions.
|
|
149
|
+
*/
|
|
150
|
+
listToolDefinitions(scope?: GatewayScope & {
|
|
151
|
+
status?: string;
|
|
152
|
+
limit?: number;
|
|
153
|
+
cursor?: string;
|
|
154
|
+
gateClassification?: string;
|
|
155
|
+
}): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<any, "tools">>>;
|
|
156
|
+
/**
|
|
157
|
+
* Get a tool definition.
|
|
158
|
+
*/
|
|
159
|
+
getToolDefinition(toolId: string, scope?: GatewayScope): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
160
|
+
/**
|
|
161
|
+
* Create a tool definition.
|
|
162
|
+
*/
|
|
163
|
+
createToolDefinition(input: HarnessToolWriteInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
164
|
+
/**
|
|
165
|
+
* @deprecated Use createToolDefinition.
|
|
166
|
+
*/
|
|
167
|
+
registerToolDefinition(input: HarnessToolWriteInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
168
|
+
/**
|
|
169
|
+
* Update a tool definition.
|
|
170
|
+
*/
|
|
171
|
+
updateToolDefinition(toolId: string, input: HarnessToolWriteInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
172
|
+
/**
|
|
173
|
+
* List run ledger entries.
|
|
174
|
+
*/
|
|
175
|
+
listRunEntries(scope?: GatewayScope & {
|
|
176
|
+
status?: string;
|
|
177
|
+
limit?: number;
|
|
178
|
+
cursor?: string;
|
|
179
|
+
}): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<any, "runs">>>;
|
|
180
|
+
/**
|
|
181
|
+
* @deprecated Use listRunEntries.
|
|
182
|
+
*/
|
|
183
|
+
listRunLedgerEntries(scope?: GatewayScope & {
|
|
184
|
+
status?: string;
|
|
185
|
+
limit?: number;
|
|
186
|
+
cursor?: string;
|
|
187
|
+
}): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<any, "runs">>>;
|
|
188
|
+
/**
|
|
189
|
+
* Create a harness run.
|
|
190
|
+
*/
|
|
191
|
+
startHarnessRun(input: HarnessStartRunInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
192
|
+
/**
|
|
193
|
+
* Get a run ledger entry.
|
|
194
|
+
*/
|
|
195
|
+
getRunLedgerEntry(runId: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
196
|
+
/**
|
|
197
|
+
* Update a harness run with a ledger event.
|
|
198
|
+
*/
|
|
199
|
+
reportHarnessRunEvent(runId: string, input: HarnessRunReportInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
200
|
+
/**
|
|
201
|
+
* Update a harness run heartbeat.
|
|
202
|
+
*/
|
|
203
|
+
heartbeatHarnessRun(runId: string, input: {
|
|
204
|
+
reportingToken: string;
|
|
205
|
+
}, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
206
|
+
/**
|
|
207
|
+
* Complete a harness run.
|
|
208
|
+
*/
|
|
209
|
+
completeHarnessRun(runId: string, input: HarnessCompleteRunInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
210
|
+
/**
|
|
211
|
+
* List prompt resolutions.
|
|
212
|
+
*/
|
|
213
|
+
listPromptResolutions(query?: {
|
|
214
|
+
runId?: string;
|
|
215
|
+
promptName?: string;
|
|
216
|
+
limit?: number;
|
|
217
|
+
}): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<any, "prompts">>>;
|
|
218
|
+
/**
|
|
219
|
+
* Get the harness scope taxonomy.
|
|
220
|
+
*/
|
|
221
|
+
getScopeTaxonomy(): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
222
|
+
};
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { type GatewayClientConfig, type GatewayScope, LucernApiError } from "./coreClient";
|
|
2
|
+
import type { JsonObject } from "./types";
|
|
3
|
+
import { type IdentityWhoamiResponse } from "@/lucern/packages/client-core/src/identity";
|
|
4
|
+
export type { IdentitySummary } from "@/lucern/packages/domain-identity/src/whoami";
|
|
5
|
+
export { LucernApiError };
|
|
6
|
+
export type { GatewayScope, PlatformGatewaySuccess } from "./coreClient";
|
|
7
|
+
export type IdentityClientConfig = GatewayClientConfig;
|
|
8
|
+
export type { IdentityWhoamiResponse };
|
|
9
|
+
/**
|
|
10
|
+
* Create the identity client for principals and API keys.
|
|
11
|
+
*/
|
|
12
|
+
export declare function createIdentityClient(config?: IdentityClientConfig): {
|
|
13
|
+
/**
|
|
14
|
+
* Resolve the current authenticated identity summary.
|
|
15
|
+
*/
|
|
16
|
+
whoami(): Promise<IdentityWhoamiResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* List principals in the current identity scope.
|
|
19
|
+
*/
|
|
20
|
+
listPrincipals(query?: GatewayScope & {
|
|
21
|
+
status?: string;
|
|
22
|
+
principalType?: string;
|
|
23
|
+
query?: string;
|
|
24
|
+
limit?: number;
|
|
25
|
+
}): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<any, "principals">>>;
|
|
26
|
+
/**
|
|
27
|
+
* Create a principal.
|
|
28
|
+
*/
|
|
29
|
+
createPrincipal(input: GatewayScope & {
|
|
30
|
+
principalId: string;
|
|
31
|
+
principalType: "user" | "group" | "service" | "external_viewer";
|
|
32
|
+
clerkId?: string;
|
|
33
|
+
email?: string;
|
|
34
|
+
displayName?: string;
|
|
35
|
+
status?: "active" | "disabled" | "revoked";
|
|
36
|
+
metadata?: JsonObject;
|
|
37
|
+
}, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
38
|
+
/**
|
|
39
|
+
* Update a principal.
|
|
40
|
+
*/
|
|
41
|
+
updatePrincipal(input: GatewayScope & {
|
|
42
|
+
principalId: string;
|
|
43
|
+
principalType: "user" | "group" | "service" | "external_viewer";
|
|
44
|
+
clerkId?: string;
|
|
45
|
+
email?: string;
|
|
46
|
+
displayName?: string;
|
|
47
|
+
status?: "active" | "disabled" | "revoked";
|
|
48
|
+
metadata?: JsonObject;
|
|
49
|
+
}, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
50
|
+
/**
|
|
51
|
+
* @deprecated Use createPrincipal or updatePrincipal.
|
|
52
|
+
*/
|
|
53
|
+
upsertPrincipal(input: GatewayScope & {
|
|
54
|
+
principalId: string;
|
|
55
|
+
principalType: "user" | "group" | "service" | "external_viewer";
|
|
56
|
+
clerkId?: string;
|
|
57
|
+
email?: string;
|
|
58
|
+
displayName?: string;
|
|
59
|
+
status?: "active" | "disabled" | "revoked";
|
|
60
|
+
metadata?: JsonObject;
|
|
61
|
+
}, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
62
|
+
/**
|
|
63
|
+
* List keys in the current identity scope.
|
|
64
|
+
*/
|
|
65
|
+
listKeys(query?: GatewayScope & {
|
|
66
|
+
principalId?: string;
|
|
67
|
+
status?: string;
|
|
68
|
+
limit?: number;
|
|
69
|
+
}): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<any, "keys">>>;
|
|
70
|
+
/**
|
|
71
|
+
* Create an API key.
|
|
72
|
+
*/
|
|
73
|
+
createKey(input: GatewayScope & {
|
|
74
|
+
principalId: string;
|
|
75
|
+
keyId?: string;
|
|
76
|
+
token?: string;
|
|
77
|
+
scopes?: string[];
|
|
78
|
+
environment?: "sandbox" | "production";
|
|
79
|
+
expiresInDays?: number;
|
|
80
|
+
rateLimitTier?: "free" | "developer" | "partner";
|
|
81
|
+
metadata?: JsonObject;
|
|
82
|
+
}, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
83
|
+
/**
|
|
84
|
+
* Rotate an API key.
|
|
85
|
+
*/
|
|
86
|
+
rotateKey(keyId: string, input?: {
|
|
87
|
+
replacementKeyId?: string;
|
|
88
|
+
replacementToken?: string;
|
|
89
|
+
replacementExpiresInDays?: number;
|
|
90
|
+
gracePeriodHours?: number;
|
|
91
|
+
}, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
92
|
+
/**
|
|
93
|
+
* Delete an API key by revoking it.
|
|
94
|
+
*/
|
|
95
|
+
deleteKey(keyId: string, input?: {
|
|
96
|
+
reason?: string;
|
|
97
|
+
}, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
98
|
+
/**
|
|
99
|
+
* @deprecated Use deleteKey.
|
|
100
|
+
*/
|
|
101
|
+
revokeKey(keyId: string, input?: {
|
|
102
|
+
reason?: string;
|
|
103
|
+
}, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
104
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export * from "./adminClient";
|
|
2
|
+
export * from "./answersClient";
|
|
3
|
+
export * from "./audiencesClient";
|
|
4
|
+
export * from "./auditClient";
|
|
5
|
+
export * from "./beliefsClient";
|
|
6
|
+
export * from "./client";
|
|
7
|
+
export * from "./contracts/api-enums.contract";
|
|
8
|
+
export * from "@lucern/contracts/mcp-tools.contract";
|
|
9
|
+
export * from "@lucern/contracts/workflow-runtime.contract";
|
|
10
|
+
export * from "./controlObjectOwnership";
|
|
11
|
+
export * from "./coreClient";
|
|
12
|
+
export * from "./contextClient";
|
|
13
|
+
export * from "./customTools";
|
|
14
|
+
export * from "./decisionsClient";
|
|
15
|
+
export * from "./graphClient";
|
|
16
|
+
export * from "./harnessClient";
|
|
17
|
+
export * from "./identityClient";
|
|
18
|
+
export * from "./learningClient";
|
|
19
|
+
export * from "./mcpParityClient";
|
|
20
|
+
export * from "./ontologyClient";
|
|
21
|
+
export * from "./packsClient";
|
|
22
|
+
export * from "./policyClient";
|
|
23
|
+
export * from "./reportsClient";
|
|
24
|
+
export * from "./schemaClient";
|
|
25
|
+
export * from "./topicsClient";
|
|
26
|
+
export * from "./types";
|
|
27
|
+
export * from "./version";
|
|
28
|
+
export * from "./workflowClient";
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { type GatewayClientConfig } from "./coreClient";
|
|
2
|
+
import type { TopicIdentifierInput } from "./types";
|
|
3
|
+
export type LearningClientConfig = GatewayClientConfig;
|
|
4
|
+
/**
|
|
5
|
+
* Create the learning client for execution telemetry reads.
|
|
6
|
+
*/
|
|
7
|
+
export declare function createLearningClient(config?: LearningClientConfig): {
|
|
8
|
+
/**
|
|
9
|
+
* List recent execution records.
|
|
10
|
+
*/
|
|
11
|
+
listRecentExecutions(args?: {
|
|
12
|
+
namespace?: string;
|
|
13
|
+
topicId?: string;
|
|
14
|
+
/** @deprecated Use topicId. */
|
|
15
|
+
projectId?: string;
|
|
16
|
+
audienceMode?: string;
|
|
17
|
+
success?: boolean;
|
|
18
|
+
limit?: number;
|
|
19
|
+
} & TopicIdentifierInput): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<any, "executions">>>;
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated Use listRecentExecutions.
|
|
22
|
+
*/
|
|
23
|
+
getRecentExecutions(args?: {
|
|
24
|
+
namespace?: string;
|
|
25
|
+
topicId?: string;
|
|
26
|
+
/** @deprecated Use topicId. */
|
|
27
|
+
projectId?: string;
|
|
28
|
+
audienceMode?: string;
|
|
29
|
+
success?: boolean;
|
|
30
|
+
limit?: number;
|
|
31
|
+
} & TopicIdentifierInput): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<any, "executions">>>;
|
|
32
|
+
/**
|
|
33
|
+
* Get aggregate execution statistics.
|
|
34
|
+
*/
|
|
35
|
+
getExecutionStats(args?: {
|
|
36
|
+
namespace?: string;
|
|
37
|
+
topicId?: string;
|
|
38
|
+
/** @deprecated Use topicId. */
|
|
39
|
+
projectId?: string;
|
|
40
|
+
audienceMode?: string;
|
|
41
|
+
hours?: number;
|
|
42
|
+
} & TopicIdentifierInput): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
43
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { type GatewayClientConfig, type PlatformGatewaySuccess } from "./coreClient";
|
|
2
|
+
import type { JsonObject } from "./types";
|
|
3
|
+
export type McpParityClientConfig = GatewayClientConfig;
|
|
4
|
+
type ToolArgs = JsonObject;
|
|
5
|
+
type ToolResult<T = unknown> = Promise<PlatformGatewaySuccess<T>>;
|
|
6
|
+
/**
|
|
7
|
+
* Thin typed bridge for MCP-only SDK parity methods.
|
|
8
|
+
*
|
|
9
|
+
* These methods map 1:1 to the Lucern MCP handlers and execute through the
|
|
10
|
+
* platform gateway so the SDK can cover the full control-plane surface.
|
|
11
|
+
*/
|
|
12
|
+
export declare function createMcpParityClient(config?: McpParityClientConfig): {
|
|
13
|
+
sessionId: `${string}-${string}-${string}-${string}-${string}`;
|
|
14
|
+
listTopics(args?: ToolArgs): ToolResult<unknown>;
|
|
15
|
+
createTopic(args: ToolArgs, idempotencyKey?: string): ToolResult<unknown>;
|
|
16
|
+
getTopic(args: ToolArgs): ToolResult<unknown>;
|
|
17
|
+
getTopicTree(args: ToolArgs): ToolResult<unknown>;
|
|
18
|
+
activateWorktree(args: ToolArgs, idempotencyKey?: string): ToolResult<unknown>;
|
|
19
|
+
updateWorktreeMetadata(args: ToolArgs, idempotencyKey?: string): ToolResult<unknown>;
|
|
20
|
+
updateWorktreeTargets(args: ToolArgs, idempotencyKey?: string): ToolResult<unknown>;
|
|
21
|
+
listAllWorktrees(args?: ToolArgs): ToolResult<unknown>;
|
|
22
|
+
pipelineSnapshot(args: ToolArgs): ToolResult<unknown>;
|
|
23
|
+
recordScopeLearning(args: ToolArgs, idempotencyKey?: string): ToolResult<unknown>;
|
|
24
|
+
discover(args: ToolArgs): ToolResult<unknown>;
|
|
25
|
+
analyzeTopicDensity(args: ToolArgs): ToolResult<unknown>;
|
|
26
|
+
applyAutoBranching(args: ToolArgs, idempotencyKey?: string): ToolResult<unknown>;
|
|
27
|
+
seedBeliefLattice(args?: ToolArgs, idempotencyKey?: string): ToolResult<unknown>;
|
|
28
|
+
getLatticeCoverage(args?: ToolArgs): ToolResult<unknown>;
|
|
29
|
+
matchEntityType(args: ToolArgs): ToolResult<unknown>;
|
|
30
|
+
discoverEntityConnections(args: ToolArgs): ToolResult<unknown>;
|
|
31
|
+
triggerBeliefReview(args: ToolArgs, idempotencyKey?: string): ToolResult<unknown>;
|
|
32
|
+
listOntologies(args?: ToolArgs): ToolResult<unknown>;
|
|
33
|
+
getOntology(args: ToolArgs): ToolResult<unknown>;
|
|
34
|
+
applyOntology(args: ToolArgs, idempotencyKey?: string): ToolResult<unknown>;
|
|
35
|
+
createOntology(args: ToolArgs, idempotencyKey?: string): ToolResult<unknown>;
|
|
36
|
+
updateOntology(args: ToolArgs, idempotencyKey?: string): ToolResult<unknown>;
|
|
37
|
+
archiveOntology(args: ToolArgs, idempotencyKey?: string): ToolResult<unknown>;
|
|
38
|
+
createOntologyVersion(args: ToolArgs, idempotencyKey?: string): ToolResult<unknown>;
|
|
39
|
+
publishOntologyVersion(args: ToolArgs, idempotencyKey?: string): ToolResult<unknown>;
|
|
40
|
+
deprecateOntologyVersion(args: ToolArgs, idempotencyKey?: string): ToolResult<unknown>;
|
|
41
|
+
resolveEffectiveOntology(args: ToolArgs): ToolResult<unknown>;
|
|
42
|
+
registerSession(args?: ToolArgs, idempotencyKey?: string): ToolResult<unknown>;
|
|
43
|
+
heartbeatSession(args?: ToolArgs, idempotencyKey?: string): ToolResult<unknown>;
|
|
44
|
+
endSession(args?: ToolArgs, idempotencyKey?: string): ToolResult<unknown>;
|
|
45
|
+
listActiveSessions(args?: ToolArgs): ToolResult<unknown>;
|
|
46
|
+
sendAgentMessage(args: ToolArgs, idempotencyKey?: string): ToolResult<unknown>;
|
|
47
|
+
broadcastMessage(args: ToolArgs, idempotencyKey?: string): ToolResult<unknown>;
|
|
48
|
+
getAgentInbox(args?: ToolArgs): ToolResult<unknown>;
|
|
49
|
+
claimFiles(args: ToolArgs, idempotencyKey?: string): ToolResult<unknown>;
|
|
50
|
+
listTasks(args: ToolArgs): ToolResult<unknown>;
|
|
51
|
+
createAnswer(args: ToolArgs, idempotencyKey?: string): ToolResult<unknown>;
|
|
52
|
+
getAnswer(args: ToolArgs): ToolResult<unknown>;
|
|
53
|
+
flagContradiction(args: ToolArgs, idempotencyKey?: string): ToolResult<unknown>;
|
|
54
|
+
ingestObservation(args: ToolArgs, idempotencyKey?: string): ToolResult<unknown>;
|
|
55
|
+
getObservationContext(args: ToolArgs): ToolResult<unknown>;
|
|
56
|
+
getCodeContext(args: ToolArgs): ToolResult<unknown>;
|
|
57
|
+
getChangeHistory(args: ToolArgs): ToolResult<unknown>;
|
|
58
|
+
recordAttempt(args: ToolArgs, idempotencyKey?: string): ToolResult<unknown>;
|
|
59
|
+
getFailureLog(args: ToolArgs): ToolResult<unknown>;
|
|
60
|
+
createEpistemicContract(args: ToolArgs, idempotencyKey?: string): ToolResult<unknown>;
|
|
61
|
+
evaluateContract(args: ToolArgs, idempotencyKey?: string): ToolResult<unknown>;
|
|
62
|
+
getContractStatus(args: ToolArgs): ToolResult<unknown>;
|
|
63
|
+
checkPermission(args: ToolArgs): ToolResult<unknown>;
|
|
64
|
+
filterByPermission(args: ToolArgs): ToolResult<unknown>;
|
|
65
|
+
manageWritePolicy(args: ToolArgs, idempotencyKey?: string): ToolResult<unknown>;
|
|
66
|
+
generateSessionHandoff(args: ToolArgs): ToolResult<unknown>;
|
|
67
|
+
};
|
|
68
|
+
export {};
|