@lucern/sdk 0.2.0-alpha.10 → 0.2.0-alpha.11

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.
Files changed (57) hide show
  1. package/dist/audience/index.d.ts +38 -0
  2. package/dist/audience/index.js +110 -0
  3. package/dist/audience/index.js.map +1 -0
  4. package/dist/beliefs/index.d.ts +465 -0
  5. package/dist/beliefs/index.js +6433 -0
  6. package/dist/beliefs/index.js.map +1 -0
  7. package/dist/beliefs/lifecycle.d.ts +24 -0
  8. package/dist/beliefs/lifecycle.js +98 -0
  9. package/dist/beliefs/lifecycle.js.map +1 -0
  10. package/dist/beliefsClient.d.ts +2 -3
  11. package/dist/beliefsClient.js +40 -10
  12. package/dist/beliefsClient.js.map +1 -1
  13. package/dist/client.d.ts +3 -3
  14. package/dist/client.js +42 -9
  15. package/dist/client.js.map +1 -1
  16. package/dist/contradictions/index.d.ts +158 -0
  17. package/dist/contradictions/index.js +6427 -0
  18. package/dist/contradictions/index.js.map +1 -0
  19. package/dist/decisions/index.d.ts +68 -0
  20. package/dist/decisions/index.js +6429 -0
  21. package/dist/decisions/index.js.map +1 -0
  22. package/dist/edges/index.d.ts +204 -0
  23. package/dist/edges/index.js +6428 -0
  24. package/dist/edges/index.js.map +1 -0
  25. package/dist/events.js +7 -5
  26. package/dist/events.js.map +1 -1
  27. package/dist/evidence/index.d.ts +295 -0
  28. package/dist/evidence/index.js +6428 -0
  29. package/dist/evidence/index.js.map +1 -0
  30. package/dist/gatewayFacades.d.ts +1 -1
  31. package/dist/gatewayFacades.js +32 -2
  32. package/dist/gatewayFacades.js.map +1 -1
  33. package/dist/index.d.ts +1 -1
  34. package/dist/index.js +55 -23
  35. package/dist/index.js.map +1 -1
  36. package/dist/lenses/index.d.ts +194 -0
  37. package/dist/lenses/index.js +6427 -0
  38. package/dist/lenses/index.js.map +1 -0
  39. package/dist/nodes/index.d.ts +62 -0
  40. package/dist/nodes/index.js +6429 -0
  41. package/dist/nodes/index.js.map +1 -0
  42. package/dist/ontologies/index.d.ts +178 -0
  43. package/dist/ontologies/index.js +6430 -0
  44. package/dist/ontologies/index.js.map +1 -0
  45. package/dist/opinion.d.ts +11 -0
  46. package/dist/opinion.js +35 -0
  47. package/dist/opinion.js.map +1 -0
  48. package/dist/questions/index.d.ts +297 -0
  49. package/dist/questions/index.js +6430 -0
  50. package/dist/questions/index.js.map +1 -0
  51. package/dist/topics/index.d.ts +68 -0
  52. package/dist/topics/index.js +6428 -0
  53. package/dist/topics/index.js.map +1 -0
  54. package/dist/worktrees/index.d.ts +210 -0
  55. package/dist/worktrees/index.js +6430 -0
  56. package/dist/worktrees/index.js.map +1 -0
  57. package/package.json +53 -2
@@ -0,0 +1,210 @@
1
+ import { LensPromptTemplateReference, LensWorkflowTemplate, LensTaskTemplate } from '../contracts/lens-workflow.contract.js';
2
+ import { TopicIdentifierInput, ListResult, WorkflowWorktreeRecord, JsonObject, WorkflowBranchRecord, WorkflowLensRecord, WorkflowLensBindingRecord, ListWorktreesResponse, PushWorktreeResponse, OpenPullRequestResponse } from '../types.js';
3
+ import { PlatformGatewaySuccess } from '../coreClient.js';
4
+ import { AddWorktreeInput, WorkflowWorktreeStatus, UpdateWorktreeTargetsInput, MergeInput, WorkflowLensPerspectiveType, WorkflowLensStatus } from '../workflowClient.js';
5
+ import { LucernClientConfig } from '../client.js';
6
+ import * as v1 from '@lucern/contracts/worktrees/v1';
7
+ export { v1 as worktreeContracts };
8
+ import * as sdkMethods_contract from '@lucern/contracts/sdk-methods.contract';
9
+ export { sdkMethods_contract as methodSchemas };
10
+ import * as mcpTools_contract from '@lucern/contracts/mcp-tools.contract';
11
+ export { mcpTools_contract as toolSchemas };
12
+ import '../contracts/lens-filter.contract.js';
13
+ import '../contracts/workflow-runtime.contract.js';
14
+ import '../audiencesClient.js';
15
+ import '../schemaClient.js';
16
+ import '../harnessClient.js';
17
+ import '../identityClient.js';
18
+ import '../adminClient.js';
19
+ import '../controlObjectOwnership.js';
20
+ import '../beliefsClient.js';
21
+ import '../opinion.js';
22
+ import '../packsClient.js';
23
+ import '../customTools.js';
24
+ import 'zod';
25
+ import '../mcpTools-DPZxowDX.js';
26
+ import '../policyClient.js';
27
+ import '../ontologyClient.js';
28
+ import '../contextTypes.js';
29
+ import '../topicsClient.js';
30
+ import '../answersClient.js';
31
+ import '../auditClient.js';
32
+ import '../contextClient.js';
33
+ import '../decisionsClient.js';
34
+ import '../evidenceClient.js';
35
+ import '../graphClient.js';
36
+ import '../learningClient.js';
37
+ import '../mcpParityClient.js';
38
+ import '../reportsClient.js';
39
+ import '../sourcesClient.js';
40
+
41
+ type WorktreesClientConfig = LucernClientConfig;
42
+ type WorktreesClient = ReturnType<typeof createWorktreesClient>;
43
+ declare function createWorktreesClient(config?: WorktreesClientConfig): {
44
+ createWorktree: (input: AddWorktreeInput) => Promise<PlatformGatewaySuccess<{
45
+ [x: string]: unknown;
46
+ }>>;
47
+ listWorktrees: (query: Parameters<(query: {
48
+ topicId?: string;
49
+ branchId?: string;
50
+ status?: WorkflowWorktreeStatus;
51
+ track?: string;
52
+ executionBand?: number;
53
+ limit?: number;
54
+ } & TopicIdentifierInput) => Promise<PlatformGatewaySuccess<ListResult<WorkflowWorktreeRecord, "worktrees">>>>[0]) => Promise<PlatformGatewaySuccess<{
55
+ [x: string]: unknown;
56
+ } & {
57
+ cursor?: string;
58
+ total?: number;
59
+ } & {
60
+ worktrees?: {
61
+ [x: string]: unknown;
62
+ }[];
63
+ }>>;
64
+ activateWorktree: (worktreeId: string) => Promise<PlatformGatewaySuccess<{
65
+ [x: string]: unknown;
66
+ }>>;
67
+ updateWorktreeMetadata: (input: Parameters<(args: JsonObject, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>>[0]) => Promise<PlatformGatewaySuccess<{
68
+ [x: string]: unknown;
69
+ }>>;
70
+ updateWorktreeTargets: (input: Parameters<(input: UpdateWorktreeTargetsInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowWorktreeRecord>>>[0]) => Promise<PlatformGatewaySuccess<{
71
+ [x: string]: unknown;
72
+ }>>;
73
+ mergeWorktree: (worktreeId: string, input: MergeInput) => Promise<PlatformGatewaySuccess<{
74
+ [x: string]: unknown;
75
+ }>>;
76
+ completeWorktree: (input: Parameters<(input: {
77
+ worktreeId: string;
78
+ keyFindings?: string[];
79
+ decisionsReached?: string[];
80
+ nextSteps?: string[];
81
+ }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
82
+ [x: string]: unknown;
83
+ }>>>[0], idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
84
+ [x: string]: unknown;
85
+ }>>;
86
+ raw: {
87
+ createBranch(input: Parameters<(input: {
88
+ name: string;
89
+ topicId?: string;
90
+ description?: string;
91
+ metadata?: JsonObject;
92
+ } & TopicIdentifierInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowBranchRecord>>>[0]): Promise<PlatformGatewaySuccess<WorkflowBranchRecord>>;
93
+ createLens(input: Parameters<(input: {
94
+ name: string;
95
+ workspaceId?: string;
96
+ topicId?: string;
97
+ description?: string;
98
+ perspectiveType: WorkflowLensPerspectiveType;
99
+ promptTemplates?: LensPromptTemplateReference[];
100
+ workflowTemplates?: LensWorkflowTemplate[];
101
+ taskTemplates?: LensTaskTemplate[];
102
+ filterCriteria?: JsonObject;
103
+ } & TopicIdentifierInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowLensRecord>>>[0]): Promise<PlatformGatewaySuccess<WorkflowLensRecord>>;
104
+ listLenses(query: Parameters<(query: {
105
+ workspaceId?: string;
106
+ topicId?: string;
107
+ status?: WorkflowLensStatus;
108
+ perspectiveType?: WorkflowLensPerspectiveType;
109
+ } & TopicIdentifierInput) => Promise<PlatformGatewaySuccess<ListResult<WorkflowLensRecord, "lenses">>>>[0]): Promise<PlatformGatewaySuccess<ListResult<WorkflowLensRecord, "lenses">>>;
110
+ applyLensToTopic(input: Parameters<(input: {
111
+ lensId: string;
112
+ topicId?: string;
113
+ metadata?: JsonObject;
114
+ } & TopicIdentifierInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowLensBindingRecord>>>[0]): Promise<PlatformGatewaySuccess<WorkflowLensBindingRecord>>;
115
+ removeLensFromTopic(input: Parameters<(input: {
116
+ lensId: string;
117
+ topicId?: string;
118
+ } & TopicIdentifierInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowLensBindingRecord>>>[0]): Promise<PlatformGatewaySuccess<WorkflowLensBindingRecord>>;
119
+ create(input: AddWorktreeInput): Promise<PlatformGatewaySuccess<{
120
+ [x: string]: unknown;
121
+ }>>;
122
+ add(input: AddWorktreeInput): Promise<PlatformGatewaySuccess<{
123
+ [x: string]: unknown;
124
+ }>>;
125
+ list(query: Parameters<(query: {
126
+ topicId?: string;
127
+ branchId?: string;
128
+ status?: WorkflowWorktreeStatus;
129
+ track?: string;
130
+ executionBand?: number;
131
+ limit?: number;
132
+ } & TopicIdentifierInput) => Promise<PlatformGatewaySuccess<ListResult<WorkflowWorktreeRecord, "worktrees">>>>[0]): Promise<PlatformGatewaySuccess<{
133
+ [x: string]: unknown;
134
+ } & {
135
+ cursor?: string;
136
+ total?: number;
137
+ } & {
138
+ worktrees?: {
139
+ [x: string]: unknown;
140
+ }[];
141
+ }>>;
142
+ activate(worktreeId: string): Promise<PlatformGatewaySuccess<{
143
+ [x: string]: unknown;
144
+ }>>;
145
+ updateMetadata(input: Parameters<(args: JsonObject, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<PlatformGatewaySuccess<{
146
+ [x: string]: unknown;
147
+ }>>;
148
+ update(input: Parameters<(args: JsonObject, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<PlatformGatewaySuccess<{
149
+ [x: string]: unknown;
150
+ }>>;
151
+ updateTargets(input: Parameters<(input: UpdateWorktreeTargetsInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowWorktreeRecord>>>[0]): Promise<PlatformGatewaySuccess<{
152
+ [x: string]: unknown;
153
+ }>>;
154
+ listAll(query?: Parameters<(query?: {
155
+ status?: WorkflowWorktreeStatus;
156
+ track?: string;
157
+ executionBand?: number;
158
+ limit?: number;
159
+ }) => Promise<PlatformGatewaySuccess<ListWorktreesResponse>>>[0]): Promise<PlatformGatewaySuccess<ListWorktreesResponse>>;
160
+ merge(worktreeId: string, input: MergeInput): Promise<PlatformGatewaySuccess<{
161
+ [x: string]: unknown;
162
+ }>>;
163
+ push(worktreeId: string, input: Parameters<(worktreeId: string, input: {
164
+ targetContext: string;
165
+ beliefIds?: string[];
166
+ metadata?: JsonObject;
167
+ }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<PushWorktreeResponse>>>[1]): Promise<PlatformGatewaySuccess<PushWorktreeResponse>>;
168
+ openPullRequest(worktreeId: string, input: Parameters<(worktreeId: string, input: {
169
+ summary: string;
170
+ reviewers?: string[];
171
+ status?: "pending_review" | "changes_requested" | "approved" | "blocked";
172
+ }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<OpenPullRequestResponse>>>[1]): Promise<PlatformGatewaySuccess<OpenPullRequestResponse>>;
173
+ pipelineSnapshot(topicId: string): Promise<PlatformGatewaySuccess<unknown>>;
174
+ complete(input: Parameters<(input: {
175
+ worktreeId: string;
176
+ keyFindings?: string[];
177
+ decisionsReached?: string[];
178
+ nextSteps?: string[];
179
+ }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
180
+ [x: string]: unknown;
181
+ }>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
182
+ [x: string]: unknown;
183
+ }>>;
184
+ advancePhase(worktreeId: string, idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
185
+ [x: string]: unknown;
186
+ }>>;
187
+ setPhase(worktreeId: string, phase: string, idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
188
+ [x: string]: unknown;
189
+ }>>;
190
+ patchState(input: Parameters<(input: {
191
+ worktreeId: string;
192
+ patch: {
193
+ [x: string]: unknown;
194
+ };
195
+ }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
196
+ [x: string]: unknown;
197
+ }>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
198
+ [x: string]: unknown;
199
+ }>>;
200
+ bulkCreate(input: Parameters<(input: {
201
+ worktrees: unknown[];
202
+ }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
203
+ [x: string]: unknown;
204
+ }>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
205
+ [x: string]: unknown;
206
+ }>>;
207
+ };
208
+ };
209
+
210
+ export { type WorktreesClient, type WorktreesClientConfig, createWorktreesClient };