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

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,194 @@
1
+ import { PlatformGatewaySuccess } from '../coreClient.js';
2
+ import { JsonObject, TopicIdentifierInput, WorkflowLensRecord, ListResult, WorkflowLensBindingRecord, WorkflowBranchRecord, WorkflowWorktreeRecord, ListWorktreesResponse, PushWorktreeResponse, OpenPullRequestResponse } from '../types.js';
3
+ import { LensPromptTemplateReference, LensWorkflowTemplate, LensTaskTemplate } from '../contracts/lens-workflow.contract.js';
4
+ import { WorkflowLensPerspectiveType, WorkflowLensStatus, AddWorktreeInput, WorkflowWorktreeStatus, UpdateWorktreeTargetsInput, MergeInput } from '../workflowClient.js';
5
+ import { LucernClientConfig } from '../client.js';
6
+ import * as lensFilter_contract from '@lucern/contracts/lens-filter.contract';
7
+ export { lensFilter_contract as lensFilterContracts };
8
+ import * as lensWorkflow_contract from '@lucern/contracts/lens-workflow.contract';
9
+ export { lensWorkflow_contract as lensWorkflowContracts };
10
+ import * as mcpTools_contract from '@lucern/contracts/mcp-tools.contract';
11
+ export { mcpTools_contract as toolSchemas };
12
+ import '../contracts/workflow-runtime.contract.js';
13
+ import '../contracts/lens-filter.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 LensesClientConfig = LucernClientConfig;
42
+ type LensesClient = ReturnType<typeof createLensesClient>;
43
+ declare function createLensesClient(config?: LensesClientConfig): {
44
+ createLens: (input: Parameters<(input: {
45
+ name: string;
46
+ workspaceId?: string;
47
+ topicId?: string;
48
+ description?: string;
49
+ perspectiveType: WorkflowLensPerspectiveType;
50
+ promptTemplates?: LensPromptTemplateReference[];
51
+ workflowTemplates?: LensWorkflowTemplate[];
52
+ taskTemplates?: LensTaskTemplate[];
53
+ filterCriteria?: JsonObject;
54
+ } & TopicIdentifierInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowLensRecord>>>[0]) => Promise<PlatformGatewaySuccess<WorkflowLensRecord>>;
55
+ listLenses: (query: Parameters<(query: {
56
+ workspaceId?: string;
57
+ topicId?: string;
58
+ status?: WorkflowLensStatus;
59
+ perspectiveType?: WorkflowLensPerspectiveType;
60
+ } & TopicIdentifierInput) => Promise<PlatformGatewaySuccess<ListResult<WorkflowLensRecord, "lenses">>>>[0]) => Promise<PlatformGatewaySuccess<ListResult<WorkflowLensRecord, "lenses">>>;
61
+ applyLensToTopic: (input: Parameters<(input: {
62
+ lensId: string;
63
+ topicId?: string;
64
+ metadata?: JsonObject;
65
+ } & TopicIdentifierInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowLensBindingRecord>>>[0]) => Promise<PlatformGatewaySuccess<WorkflowLensBindingRecord>>;
66
+ removeLensFromTopic: (input: Parameters<(input: {
67
+ lensId: string;
68
+ topicId?: string;
69
+ } & TopicIdentifierInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowLensBindingRecord>>>[0]) => Promise<PlatformGatewaySuccess<WorkflowLensBindingRecord>>;
70
+ raw: {
71
+ createBranch(input: Parameters<(input: {
72
+ name: string;
73
+ topicId?: string;
74
+ description?: string;
75
+ metadata?: JsonObject;
76
+ } & TopicIdentifierInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowBranchRecord>>>[0]): Promise<PlatformGatewaySuccess<WorkflowBranchRecord>>;
77
+ createLens(input: Parameters<(input: {
78
+ name: string;
79
+ workspaceId?: string;
80
+ topicId?: string;
81
+ description?: string;
82
+ perspectiveType: WorkflowLensPerspectiveType;
83
+ promptTemplates?: LensPromptTemplateReference[];
84
+ workflowTemplates?: LensWorkflowTemplate[];
85
+ taskTemplates?: LensTaskTemplate[];
86
+ filterCriteria?: JsonObject;
87
+ } & TopicIdentifierInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowLensRecord>>>[0]): Promise<PlatformGatewaySuccess<WorkflowLensRecord>>;
88
+ listLenses(query: Parameters<(query: {
89
+ workspaceId?: string;
90
+ topicId?: string;
91
+ status?: WorkflowLensStatus;
92
+ perspectiveType?: WorkflowLensPerspectiveType;
93
+ } & TopicIdentifierInput) => Promise<PlatformGatewaySuccess<ListResult<WorkflowLensRecord, "lenses">>>>[0]): Promise<PlatformGatewaySuccess<ListResult<WorkflowLensRecord, "lenses">>>;
94
+ applyLensToTopic(input: Parameters<(input: {
95
+ lensId: string;
96
+ topicId?: string;
97
+ metadata?: JsonObject;
98
+ } & TopicIdentifierInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowLensBindingRecord>>>[0]): Promise<PlatformGatewaySuccess<WorkflowLensBindingRecord>>;
99
+ removeLensFromTopic(input: Parameters<(input: {
100
+ lensId: string;
101
+ topicId?: string;
102
+ } & TopicIdentifierInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowLensBindingRecord>>>[0]): Promise<PlatformGatewaySuccess<WorkflowLensBindingRecord>>;
103
+ create(input: AddWorktreeInput): Promise<PlatformGatewaySuccess<{
104
+ [x: string]: unknown;
105
+ }>>;
106
+ add(input: AddWorktreeInput): Promise<PlatformGatewaySuccess<{
107
+ [x: string]: unknown;
108
+ }>>;
109
+ list(query: Parameters<(query: {
110
+ topicId?: string;
111
+ branchId?: string;
112
+ status?: WorkflowWorktreeStatus;
113
+ track?: string;
114
+ executionBand?: number;
115
+ limit?: number;
116
+ } & TopicIdentifierInput) => Promise<PlatformGatewaySuccess<ListResult<WorkflowWorktreeRecord, "worktrees">>>>[0]): Promise<PlatformGatewaySuccess<{
117
+ [x: string]: unknown;
118
+ } & {
119
+ cursor?: string;
120
+ total?: number;
121
+ } & {
122
+ worktrees?: {
123
+ [x: string]: unknown;
124
+ }[];
125
+ }>>;
126
+ activate(worktreeId: string): Promise<PlatformGatewaySuccess<{
127
+ [x: string]: unknown;
128
+ }>>;
129
+ updateMetadata(input: Parameters<(args: JsonObject, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<PlatformGatewaySuccess<{
130
+ [x: string]: unknown;
131
+ }>>;
132
+ update(input: Parameters<(args: JsonObject, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<PlatformGatewaySuccess<{
133
+ [x: string]: unknown;
134
+ }>>;
135
+ updateTargets(input: Parameters<(input: UpdateWorktreeTargetsInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowWorktreeRecord>>>[0]): Promise<PlatformGatewaySuccess<{
136
+ [x: string]: unknown;
137
+ }>>;
138
+ listAll(query?: Parameters<(query?: {
139
+ status?: WorkflowWorktreeStatus;
140
+ track?: string;
141
+ executionBand?: number;
142
+ limit?: number;
143
+ }) => Promise<PlatformGatewaySuccess<ListWorktreesResponse>>>[0]): Promise<PlatformGatewaySuccess<ListWorktreesResponse>>;
144
+ merge(worktreeId: string, input: MergeInput): Promise<PlatformGatewaySuccess<{
145
+ [x: string]: unknown;
146
+ }>>;
147
+ push(worktreeId: string, input: Parameters<(worktreeId: string, input: {
148
+ targetContext: string;
149
+ beliefIds?: string[];
150
+ metadata?: JsonObject;
151
+ }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<PushWorktreeResponse>>>[1]): Promise<PlatformGatewaySuccess<PushWorktreeResponse>>;
152
+ openPullRequest(worktreeId: string, input: Parameters<(worktreeId: string, input: {
153
+ summary: string;
154
+ reviewers?: string[];
155
+ status?: "pending_review" | "changes_requested" | "approved" | "blocked";
156
+ }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<OpenPullRequestResponse>>>[1]): Promise<PlatformGatewaySuccess<OpenPullRequestResponse>>;
157
+ pipelineSnapshot(topicId: string): Promise<PlatformGatewaySuccess<unknown>>;
158
+ complete(input: Parameters<(input: {
159
+ worktreeId: string;
160
+ keyFindings?: string[];
161
+ decisionsReached?: string[];
162
+ nextSteps?: string[];
163
+ }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
164
+ [x: string]: unknown;
165
+ }>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
166
+ [x: string]: unknown;
167
+ }>>;
168
+ advancePhase(worktreeId: string, idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
169
+ [x: string]: unknown;
170
+ }>>;
171
+ setPhase(worktreeId: string, phase: string, idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
172
+ [x: string]: unknown;
173
+ }>>;
174
+ patchState(input: Parameters<(input: {
175
+ worktreeId: string;
176
+ patch: {
177
+ [x: string]: unknown;
178
+ };
179
+ }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
180
+ [x: string]: unknown;
181
+ }>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
182
+ [x: string]: unknown;
183
+ }>>;
184
+ bulkCreate(input: Parameters<(input: {
185
+ worktrees: unknown[];
186
+ }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
187
+ [x: string]: unknown;
188
+ }>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
189
+ [x: string]: unknown;
190
+ }>>;
191
+ };
192
+ };
193
+
194
+ export { type LensesClient, type LensesClientConfig, createLensesClient };