@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,274 @@
|
|
|
1
|
+
import { type GatewayClientConfig, LucernApiError } from "./coreClient";
|
|
2
|
+
import type { LensPerspectiveType, LensPromptTemplateReference, LensStatus, LensTaskTemplate, LensWorkflowTemplate } from "@lucern/contracts/lens-workflow.contract";
|
|
3
|
+
import type { WorkflowAutoFixPolicy, WorkflowProofArtifact, WorkflowStaffingHint } from "@lucern/contracts/workflow-runtime.contract";
|
|
4
|
+
import type { CompleteTaskResponse, CreateTaskResponse, JsonObject, ListTopicsResponse, ListWorktreesResponse, MergeWorktreeResponse, OpenPullRequestResponse, PushWorktreeResponse, SwitchTopicContextResponse, TopicIdentifierInput, UpdateTaskResponse, WorkflowBranchRecord, WorkflowLensRecord, WorkflowWorktreeRecord } from "./types";
|
|
5
|
+
export { LucernApiError };
|
|
6
|
+
export type { PlatformGatewaySuccess } from "./coreClient";
|
|
7
|
+
export type { AddWorktreeResponse, CompleteTaskResponse, CreateBranchResponse, CreateLensResponse, CreateTaskResponse, LensTopicBindingResponse, ListBranchesResponse, ListLensesResponse, ListTopicsResponse, ListWorktreesResponse, MergeWorktreeResponse, OpenPullRequestResponse, PushWorktreeResponse, SwitchTopicContextResponse, UpdateTaskResponse, } from "./types";
|
|
8
|
+
export type WorkflowClientConfig = GatewayClientConfig;
|
|
9
|
+
export type WorkflowBranchStatus = "dormant" | "active" | "archived";
|
|
10
|
+
export type WorkflowLensStatus = LensStatus;
|
|
11
|
+
export type WorkflowLensPerspectiveType = LensPerspectiveType;
|
|
12
|
+
export type WorkflowWorktreeStatus = "planning" | "active" | "paused" | "completed" | "merged" | "failed" | "archived";
|
|
13
|
+
export type WorkflowMergeOutcome = "validated" | "invalidated" | "forked" | "inconclusive";
|
|
14
|
+
export type AddWorktreeInput = {
|
|
15
|
+
title: string;
|
|
16
|
+
topicId?: string;
|
|
17
|
+
/** @deprecated Use topicId. */
|
|
18
|
+
projectId?: string;
|
|
19
|
+
branchId?: string;
|
|
20
|
+
objective?: string;
|
|
21
|
+
hypothesis?: string;
|
|
22
|
+
beliefIds?: string[];
|
|
23
|
+
autoShape?: boolean;
|
|
24
|
+
domainPackId?: string;
|
|
25
|
+
executionOrder?: number;
|
|
26
|
+
dependsOn?: string[];
|
|
27
|
+
blocks?: string[];
|
|
28
|
+
gate?: string;
|
|
29
|
+
proofArtifacts?: WorkflowProofArtifact[];
|
|
30
|
+
staffingHint?: WorkflowStaffingHint | string;
|
|
31
|
+
lastReconciledAt?: number;
|
|
32
|
+
autoFixPolicy?: WorkflowAutoFixPolicy;
|
|
33
|
+
} & TopicIdentifierInput;
|
|
34
|
+
export type MergeInput = {
|
|
35
|
+
outcomes: Array<{
|
|
36
|
+
beliefId: string;
|
|
37
|
+
confidence: number;
|
|
38
|
+
rationale: string;
|
|
39
|
+
}>;
|
|
40
|
+
summary?: string;
|
|
41
|
+
};
|
|
42
|
+
export type UpdateWorktreeTargetsInput = {
|
|
43
|
+
worktreeId: string;
|
|
44
|
+
addBeliefIds?: string[];
|
|
45
|
+
addQuestionIds?: string[];
|
|
46
|
+
removeBeliefIds?: string[];
|
|
47
|
+
removeQuestionIds?: string[];
|
|
48
|
+
};
|
|
49
|
+
export type ListTopicsInput = {
|
|
50
|
+
includeShared?: boolean;
|
|
51
|
+
limit?: number;
|
|
52
|
+
};
|
|
53
|
+
export type SwitchTopicContextInput = {
|
|
54
|
+
targetTopicName: string;
|
|
55
|
+
};
|
|
56
|
+
export type CreateTaskInput = {
|
|
57
|
+
title: string;
|
|
58
|
+
topicId?: string;
|
|
59
|
+
/** @deprecated Use topicId. */
|
|
60
|
+
projectId?: string;
|
|
61
|
+
taskType?: "research" | "interview" | "analysis" | "data_collection";
|
|
62
|
+
linkedQuestionId?: string;
|
|
63
|
+
linkedWorktreeId?: string;
|
|
64
|
+
linkedBeliefId?: string;
|
|
65
|
+
description?: string;
|
|
66
|
+
priority?: "low" | "medium" | "high" | "urgent";
|
|
67
|
+
} & TopicIdentifierInput;
|
|
68
|
+
export type CompleteTaskInput = {
|
|
69
|
+
outputSummary: string;
|
|
70
|
+
evidenceCreated?: boolean;
|
|
71
|
+
};
|
|
72
|
+
export type UpdateTaskInput = {
|
|
73
|
+
title?: string;
|
|
74
|
+
description?: string;
|
|
75
|
+
linkedBeliefId?: string;
|
|
76
|
+
linkedQuestionId?: string;
|
|
77
|
+
linkedWorktreeId?: string;
|
|
78
|
+
priority?: "critical" | "high" | "medium" | "low";
|
|
79
|
+
status?: "todo" | "in_progress" | "blocked" | "done";
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* Create the workflow client for lenses, legacy branches, worktrees, context,
|
|
83
|
+
* and tasks.
|
|
84
|
+
*/
|
|
85
|
+
export declare function createWorkflowClient(config?: WorkflowClientConfig): {
|
|
86
|
+
/**
|
|
87
|
+
* List workflow branches for a topic scope.
|
|
88
|
+
*/
|
|
89
|
+
listBranches(query: {
|
|
90
|
+
topicId?: string;
|
|
91
|
+
/** @deprecated Use topicId. */
|
|
92
|
+
projectId?: string;
|
|
93
|
+
status?: WorkflowBranchStatus;
|
|
94
|
+
limit?: number;
|
|
95
|
+
} & TopicIdentifierInput): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<WorkflowBranchRecord, "branches">>>;
|
|
96
|
+
/**
|
|
97
|
+
* Create a workflow branch.
|
|
98
|
+
*/
|
|
99
|
+
createBranch(input: {
|
|
100
|
+
name: string;
|
|
101
|
+
topicId?: string;
|
|
102
|
+
/** @deprecated Use topicId. */
|
|
103
|
+
projectId?: string;
|
|
104
|
+
description?: string;
|
|
105
|
+
metadata?: JsonObject;
|
|
106
|
+
} & TopicIdentifierInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<WorkflowBranchRecord>>;
|
|
107
|
+
/**
|
|
108
|
+
* List reusable lenses for a workspace or topic scope.
|
|
109
|
+
*/
|
|
110
|
+
listLenses(query: {
|
|
111
|
+
workspaceId?: string;
|
|
112
|
+
topicId?: string;
|
|
113
|
+
/** @deprecated Use topicId. */
|
|
114
|
+
projectId?: string;
|
|
115
|
+
status?: WorkflowLensStatus;
|
|
116
|
+
perspectiveType?: WorkflowLensPerspectiveType;
|
|
117
|
+
} & TopicIdentifierInput): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<WorkflowLensRecord, "lenses">>>;
|
|
118
|
+
/**
|
|
119
|
+
* Create a reusable workflow lens.
|
|
120
|
+
*/
|
|
121
|
+
createLens(input: {
|
|
122
|
+
name: string;
|
|
123
|
+
workspaceId?: string;
|
|
124
|
+
topicId?: string;
|
|
125
|
+
/** @deprecated Use topicId. */
|
|
126
|
+
projectId?: string;
|
|
127
|
+
description?: string;
|
|
128
|
+
perspectiveType: WorkflowLensPerspectiveType;
|
|
129
|
+
promptTemplates?: LensPromptTemplateReference[];
|
|
130
|
+
workflowTemplates?: LensWorkflowTemplate[];
|
|
131
|
+
taskTemplates?: LensTaskTemplate[];
|
|
132
|
+
filterCriteria?: JsonObject;
|
|
133
|
+
} & TopicIdentifierInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<WorkflowLensRecord>>;
|
|
134
|
+
/**
|
|
135
|
+
* Apply an existing lens to a topic.
|
|
136
|
+
*/
|
|
137
|
+
applyLensToTopic(input: {
|
|
138
|
+
lensId: string;
|
|
139
|
+
topicId?: string;
|
|
140
|
+
/** @deprecated Use topicId. */
|
|
141
|
+
projectId?: string;
|
|
142
|
+
metadata?: JsonObject;
|
|
143
|
+
} & TopicIdentifierInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").WorkflowLensBindingRecord>>;
|
|
144
|
+
/**
|
|
145
|
+
* Remove an applied lens from a topic.
|
|
146
|
+
*/
|
|
147
|
+
removeLensFromTopic(input: {
|
|
148
|
+
lensId: string;
|
|
149
|
+
topicId?: string;
|
|
150
|
+
/** @deprecated Use topicId. */
|
|
151
|
+
projectId?: string;
|
|
152
|
+
} & TopicIdentifierInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").WorkflowLensBindingRecord>>;
|
|
153
|
+
/**
|
|
154
|
+
* List worktrees for a topic scope.
|
|
155
|
+
*/
|
|
156
|
+
listWorktrees(query: {
|
|
157
|
+
topicId?: string;
|
|
158
|
+
/** @deprecated Use topicId. */
|
|
159
|
+
projectId?: string;
|
|
160
|
+
branchId?: string;
|
|
161
|
+
status?: WorkflowWorktreeStatus;
|
|
162
|
+
track?: string;
|
|
163
|
+
executionBand?: number;
|
|
164
|
+
limit?: number;
|
|
165
|
+
} & TopicIdentifierInput): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<WorkflowWorktreeRecord, "worktrees">>>;
|
|
166
|
+
/**
|
|
167
|
+
* List all worktrees across accessible topics.
|
|
168
|
+
*/
|
|
169
|
+
listAllWorktrees(query?: {
|
|
170
|
+
status?: WorkflowWorktreeStatus;
|
|
171
|
+
track?: string;
|
|
172
|
+
executionBand?: number;
|
|
173
|
+
limit?: number;
|
|
174
|
+
}): Promise<import("./coreClient").PlatformGatewaySuccess<ListWorktreesResponse>>;
|
|
175
|
+
/**
|
|
176
|
+
* Create a workflow worktree.
|
|
177
|
+
*/
|
|
178
|
+
createWorktree(input: AddWorktreeInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<WorkflowWorktreeRecord>>;
|
|
179
|
+
/**
|
|
180
|
+
* @deprecated Use createWorktree.
|
|
181
|
+
*/
|
|
182
|
+
addWorktree(input: AddWorktreeInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<WorkflowWorktreeRecord>>;
|
|
183
|
+
/**
|
|
184
|
+
* Merge a worktree into the main belief line.
|
|
185
|
+
*/
|
|
186
|
+
merge(worktreeId: string, input: MergeInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<MergeWorktreeResponse>>;
|
|
187
|
+
/**
|
|
188
|
+
* Activate a planning worktree.
|
|
189
|
+
*/
|
|
190
|
+
activateWorktree(worktreeId: string, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<WorkflowWorktreeRecord>>;
|
|
191
|
+
/**
|
|
192
|
+
* Update targeted beliefs/questions for a worktree.
|
|
193
|
+
*/
|
|
194
|
+
updateWorktreeTargets(input: UpdateWorktreeTargetsInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<WorkflowWorktreeRecord>>;
|
|
195
|
+
/**
|
|
196
|
+
* Open a pull request for a worktree.
|
|
197
|
+
*/
|
|
198
|
+
openPullRequest(worktreeId: string, input: {
|
|
199
|
+
summary: string;
|
|
200
|
+
reviewers?: string[];
|
|
201
|
+
status?: "pending_review" | "changes_requested" | "approved" | "blocked";
|
|
202
|
+
}, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<OpenPullRequestResponse>>;
|
|
203
|
+
/**
|
|
204
|
+
* Push scored worktree findings into another context.
|
|
205
|
+
*/
|
|
206
|
+
push(worktreeId: string, input: {
|
|
207
|
+
targetContext: string;
|
|
208
|
+
beliefIds?: string[];
|
|
209
|
+
metadata?: JsonObject;
|
|
210
|
+
}, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<PushWorktreeResponse>>;
|
|
211
|
+
/**
|
|
212
|
+
* List accessible topic contexts.
|
|
213
|
+
*/
|
|
214
|
+
listTopics(query?: ListTopicsInput): Promise<import("./coreClient").PlatformGatewaySuccess<ListTopicsResponse>>;
|
|
215
|
+
/**
|
|
216
|
+
* Switch the active context by topic or project name.
|
|
217
|
+
*/
|
|
218
|
+
switchTopicContext(input: SwitchTopicContextInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<SwitchTopicContextResponse>>;
|
|
219
|
+
/**
|
|
220
|
+
* Create a workflow task.
|
|
221
|
+
*/
|
|
222
|
+
createTask(input: CreateTaskInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<CreateTaskResponse>>;
|
|
223
|
+
/**
|
|
224
|
+
* Complete a workflow task.
|
|
225
|
+
*/
|
|
226
|
+
completeTask(taskId: string, input: CompleteTaskInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<CompleteTaskResponse>>;
|
|
227
|
+
/**
|
|
228
|
+
* Update a workflow task.
|
|
229
|
+
*/
|
|
230
|
+
updateTask(taskId: string, input: UpdateTaskInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<UpdateTaskResponse>>;
|
|
231
|
+
/**
|
|
232
|
+
* @deprecated Use createBranch.
|
|
233
|
+
*/
|
|
234
|
+
createPillar(input: {
|
|
235
|
+
name: string;
|
|
236
|
+
topicId?: string;
|
|
237
|
+
/** @deprecated Use topicId. */
|
|
238
|
+
projectId?: string;
|
|
239
|
+
description?: string;
|
|
240
|
+
metadata?: JsonObject;
|
|
241
|
+
} & TopicIdentifierInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<WorkflowBranchRecord>>;
|
|
242
|
+
/**
|
|
243
|
+
* @deprecated Use addWorktree.
|
|
244
|
+
*/
|
|
245
|
+
createSprint(input: {
|
|
246
|
+
title: string;
|
|
247
|
+
topicId?: string;
|
|
248
|
+
/** @deprecated Use topicId. */
|
|
249
|
+
projectId?: string;
|
|
250
|
+
branchId?: string;
|
|
251
|
+
hypothesis?: string;
|
|
252
|
+
beliefIds?: string[];
|
|
253
|
+
} & TopicIdentifierInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<WorkflowWorktreeRecord>>;
|
|
254
|
+
/**
|
|
255
|
+
* @deprecated Use merge.
|
|
256
|
+
*/
|
|
257
|
+
completeSprint(worktreeId: string, input: MergeInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<MergeWorktreeResponse>>;
|
|
258
|
+
/**
|
|
259
|
+
* @deprecated Use openPullRequest.
|
|
260
|
+
*/
|
|
261
|
+
requestReview(worktreeId: string, input: {
|
|
262
|
+
summary: string;
|
|
263
|
+
reviewers?: string[];
|
|
264
|
+
status?: "pending_review" | "changes_requested" | "approved" | "blocked";
|
|
265
|
+
}, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<OpenPullRequestResponse>>;
|
|
266
|
+
/**
|
|
267
|
+
* @deprecated Use push.
|
|
268
|
+
*/
|
|
269
|
+
publishFindings(worktreeId: string, input: {
|
|
270
|
+
targetContext: string;
|
|
271
|
+
beliefIds?: string[];
|
|
272
|
+
metadata?: JsonObject;
|
|
273
|
+
}, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<PushWorktreeResponse>>;
|
|
274
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@lucern/sdk",
|
|
3
|
+
"version": "0.2.0-alpha.1",
|
|
4
|
+
"description": "Lucern reasoning platform SDK. Install this one package, provide your API key, and start building in 10 minutes.",
|
|
5
|
+
"license": "UNLICENSED",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./dist/index.js",
|
|
8
|
+
"module": "./dist/index.js",
|
|
9
|
+
"types": "./dist/packages/sdk/src/index.d.ts",
|
|
10
|
+
"files": [
|
|
11
|
+
"dist",
|
|
12
|
+
"README.md"
|
|
13
|
+
],
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./dist/packages/sdk/src/index.d.ts",
|
|
17
|
+
"import": "./dist/index.js"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"sideEffects": false,
|
|
21
|
+
"engines": {
|
|
22
|
+
"node": ">=18.0.0"
|
|
23
|
+
},
|
|
24
|
+
"scripts": {
|
|
25
|
+
"build": "tsup && tsc --project tsconfig.bundle.json --declaration --emitDeclarationOnly --outDir dist",
|
|
26
|
+
"build:js": "tsup",
|
|
27
|
+
"build:dts": "tsc --project tsconfig.bundle.json --declaration --emitDeclarationOnly --outDir dist",
|
|
28
|
+
"pack:dry-run": "npm pack --dry-run",
|
|
29
|
+
"typecheck": "tsc --project tsconfig.json --noEmit"
|
|
30
|
+
},
|
|
31
|
+
"peerDependencies": {
|
|
32
|
+
"convex": ">=1.0.0"
|
|
33
|
+
},
|
|
34
|
+
"peerDependenciesMeta": {
|
|
35
|
+
"convex": {
|
|
36
|
+
"optional": true
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"tsup": "^8.5.0",
|
|
41
|
+
"typescript": "^5.7.0"
|
|
42
|
+
},
|
|
43
|
+
"publishConfig": {
|
|
44
|
+
"access": "restricted"
|
|
45
|
+
},
|
|
46
|
+
"keywords": [
|
|
47
|
+
"lucern",
|
|
48
|
+
"reasoning",
|
|
49
|
+
"epistemic",
|
|
50
|
+
"beliefs",
|
|
51
|
+
"knowledge-graph",
|
|
52
|
+
"sdk",
|
|
53
|
+
"ai",
|
|
54
|
+
"agents"
|
|
55
|
+
]
|
|
56
|
+
}
|