@lucern/sdk 0.2.0-alpha.9 → 0.3.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.
Files changed (108) hide show
  1. package/README.md +33 -15
  2. package/dist/adminClient.d.ts +15 -9
  3. package/dist/adminClient.js.map +1 -1
  4. package/dist/audience/index.d.ts +38 -0
  5. package/dist/audience/index.js +110 -0
  6. package/dist/audience/index.js.map +1 -0
  7. package/dist/beliefs/index.d.ts +463 -0
  8. package/dist/beliefs/index.js +6695 -0
  9. package/dist/beliefs/index.js.map +1 -0
  10. package/dist/beliefs/lifecycle.d.ts +24 -0
  11. package/dist/beliefs/lifecycle.js +98 -0
  12. package/dist/beliefs/lifecycle.js.map +1 -0
  13. package/dist/beliefsClient.d.ts +76 -12
  14. package/dist/beliefsClient.js +139 -7
  15. package/dist/beliefsClient.js.map +1 -1
  16. package/dist/client-B6aWUUwp.d.ts +2552 -0
  17. package/dist/client.d.ts +31 -2377
  18. package/dist/client.js +802 -263
  19. package/dist/client.js.map +1 -1
  20. package/dist/contracts/api-enums.contract.d.ts +1 -1
  21. package/dist/contracts/api-enums.contract.js +8 -2
  22. package/dist/contracts/api-enums.contract.js.map +1 -1
  23. package/dist/contracts/index.d.ts +4 -2
  24. package/dist/contracts/index.js +119 -4283
  25. package/dist/contracts/index.js.map +1 -1
  26. package/dist/contracts/mcpTools.d.ts +2 -1
  27. package/dist/contracts/mcpTools.js +22 -2981
  28. package/dist/contracts/mcpTools.js.map +1 -1
  29. package/dist/contracts/sdk-tools.contract.d.ts +1 -2
  30. package/dist/contracts/sdk-tools.contract.js +1 -4132
  31. package/dist/contracts/sdk-tools.contract.js.map +1 -1
  32. package/dist/contracts/sdkTools.d.ts +1 -2
  33. package/dist/contracts/sdkTools.js +20 -4127
  34. package/dist/contracts/sdkTools.js.map +1 -1
  35. package/dist/contracts/tool-contracts.d.ts +1 -0
  36. package/dist/contracts/tool-contracts.js +3 -0
  37. package/dist/contracts/tool-contracts.js.map +1 -0
  38. package/dist/contracts/workflow-runtime.contract.js +1 -1
  39. package/dist/contracts/workflow-runtime.contract.js.map +1 -1
  40. package/dist/contracts/workflowRuntime.js +1 -1
  41. package/dist/contracts/workflowRuntime.js.map +1 -1
  42. package/dist/contradictions/index.d.ts +156 -0
  43. package/dist/contradictions/index.js +6689 -0
  44. package/dist/contradictions/index.js.map +1 -0
  45. package/dist/customTools.d.ts +1 -1
  46. package/dist/decisions/index.d.ts +66 -0
  47. package/dist/decisions/index.js +6691 -0
  48. package/dist/decisions/index.js.map +1 -0
  49. package/dist/edges/index.d.ts +202 -0
  50. package/dist/edges/index.js +6690 -0
  51. package/dist/edges/index.js.map +1 -0
  52. package/dist/events.js +7 -5
  53. package/dist/events.js.map +1 -1
  54. package/dist/evidence/index.d.ts +294 -0
  55. package/dist/evidence/index.js +6690 -0
  56. package/dist/evidence/index.js.map +1 -0
  57. package/dist/evidenceClient.d.ts +119 -0
  58. package/dist/evidenceClient.js +350 -0
  59. package/dist/evidenceClient.js.map +1 -0
  60. package/dist/gatewayFacades.d.ts +25 -15
  61. package/dist/gatewayFacades.js +39 -5
  62. package/dist/gatewayFacades.js.map +1 -1
  63. package/dist/identityClient.d.ts +3 -3
  64. package/dist/identityClient.js.map +1 -1
  65. package/dist/index.d.ts +7 -6
  66. package/dist/index.js +1145 -3313
  67. package/dist/index.js.map +1 -1
  68. package/dist/lenses/index.d.ts +194 -0
  69. package/dist/lenses/index.js +6689 -0
  70. package/dist/lenses/index.js.map +1 -0
  71. package/dist/nodes/index.d.ts +61 -0
  72. package/dist/nodes/index.js +6691 -0
  73. package/dist/nodes/index.js.map +1 -0
  74. package/dist/ontologies/index.d.ts +179 -0
  75. package/dist/ontologies/index.js +6692 -0
  76. package/dist/ontologies/index.js.map +1 -0
  77. package/dist/opinion.d.ts +11 -0
  78. package/dist/opinion.js +35 -0
  79. package/dist/opinion.js.map +1 -0
  80. package/dist/questions/index.d.ts +295 -0
  81. package/dist/questions/index.js +6692 -0
  82. package/dist/questions/index.js.map +1 -0
  83. package/dist/sdk-tools.contract-B4c1Zr1o.d.ts +22 -0
  84. package/dist/sourcesClient.d.ts +24 -0
  85. package/dist/{mcpParityClient.js → sourcesClient.js} +15 -192
  86. package/dist/sourcesClient.js.map +1 -0
  87. package/dist/tool-contracts-BUiL9P6z.d.ts +22 -0
  88. package/dist/topics/index.d.ts +66 -0
  89. package/dist/topics/index.js +6690 -0
  90. package/dist/topics/index.js.map +1 -0
  91. package/dist/types.d.ts +27 -8
  92. package/dist/workflowClient.d.ts +18 -5
  93. package/dist/workflowClient.js +19 -7
  94. package/dist/workflowClient.js.map +1 -1
  95. package/dist/worktrees/index.d.ts +211 -0
  96. package/dist/worktrees/index.js +6692 -0
  97. package/dist/worktrees/index.js.map +1 -0
  98. package/package.json +56 -3
  99. package/dist/contracts/mcp-tools.contract.d.ts +0 -1
  100. package/dist/contracts/mcp-tools.contract.js +0 -2986
  101. package/dist/contracts/mcp-tools.contract.js.map +0 -1
  102. package/dist/mcpParityClient.d.ts +0 -74
  103. package/dist/mcpParityClient.js.map +0 -1
  104. package/dist/mcpParitySurface.d.ts +0 -12
  105. package/dist/mcpParitySurface.js +0 -65
  106. package/dist/mcpParitySurface.js.map +0 -1
  107. package/dist/mcpTools-DPZxowDX.d.ts +0 -254
  108. package/dist/sdkTools-CwXJDACb.d.ts +0 -150
@@ -0,0 +1,194 @@
1
+ import { L as LucernClientConfig, a as FunctionSurfaceInput, b as FunctionSurfaceResult } from '../client-B6aWUUwp.js';
2
+ import { PlatformGatewaySuccess } from '../coreClient.js';
3
+ import { JsonObject, TopicIdentifierInput, WorkflowLensRecord, ListResult, WorkflowLensBindingRecord, WorkflowBranchRecord, WorkflowWorktreeRecord, ListWorktreesResponse, PushWorktreeResponse, OpenPullRequestResponse } from '../types.js';
4
+ import { LensPromptTemplateReference, LensWorkflowTemplate, LensTaskTemplate } from '../contracts/lens-workflow.contract.js';
5
+ import { WorkflowLensPerspectiveType, WorkflowLensStatus, AddWorktreeInput, WorkflowWorktreeStatus, UpdateWorktreeTargetsInput, MergeInput } from '../workflowClient.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 toolContracts from '@lucern/contracts/tool-contracts';
11
+ export { toolContracts as toolSchemas };
12
+ import '../audiencesClient.js';
13
+ import '../contracts/workflow-runtime.contract.js';
14
+ import '../contracts/lens-filter.contract.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 '../policyClient.js';
26
+ import '../ontologyClient.js';
27
+ import '../contextTypes.js';
28
+ import '../topicsClient.js';
29
+ import '../answersClient.js';
30
+ import '../auditClient.js';
31
+ import '../contextClient.js';
32
+ import '../decisionsClient.js';
33
+ import '../evidenceClient.js';
34
+ import '../graphClient.js';
35
+ import '../learningClient.js';
36
+ import '../reportsClient.js';
37
+ import '../sourcesClient.js';
38
+
39
+ type LensesClientConfig = LucernClientConfig;
40
+ type LensesClient = ReturnType<typeof createLensesClient>;
41
+ declare function createLensesClient(config?: LensesClientConfig): {
42
+ createLens: (input: Parameters<(input: {
43
+ name: string;
44
+ workspaceId?: string;
45
+ topicId?: string;
46
+ description?: string;
47
+ perspectiveType: WorkflowLensPerspectiveType;
48
+ promptTemplates?: LensPromptTemplateReference[];
49
+ workflowTemplates?: LensWorkflowTemplate[];
50
+ taskTemplates?: LensTaskTemplate[];
51
+ filterCriteria?: JsonObject;
52
+ } & TopicIdentifierInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowLensRecord>>>[0]) => Promise<PlatformGatewaySuccess<WorkflowLensRecord>>;
53
+ listLenses: (query: Parameters<(query: {
54
+ workspaceId?: string;
55
+ topicId?: string;
56
+ status?: WorkflowLensStatus;
57
+ perspectiveType?: WorkflowLensPerspectiveType;
58
+ } & TopicIdentifierInput) => Promise<PlatformGatewaySuccess<ListResult<WorkflowLensRecord, "lenses">>>>[0]) => Promise<PlatformGatewaySuccess<ListResult<WorkflowLensRecord, "lenses">>>;
59
+ applyLensToTopic: (input: Parameters<(input: {
60
+ lensId: string;
61
+ topicId?: string;
62
+ metadata?: JsonObject;
63
+ } & TopicIdentifierInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowLensBindingRecord>>>[0]) => Promise<PlatformGatewaySuccess<WorkflowLensBindingRecord>>;
64
+ removeLensFromTopic: (input: Parameters<(input: {
65
+ lensId: string;
66
+ topicId?: string;
67
+ } & TopicIdentifierInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowLensBindingRecord>>>[0]) => Promise<PlatformGatewaySuccess<WorkflowLensBindingRecord>>;
68
+ raw: {
69
+ createBranch(input: Parameters<(input: {
70
+ name: string;
71
+ topicId?: string;
72
+ description?: string;
73
+ metadata?: JsonObject;
74
+ } & TopicIdentifierInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowBranchRecord>>>[0]): Promise<PlatformGatewaySuccess<WorkflowBranchRecord>>;
75
+ createLens(input: Parameters<(input: {
76
+ name: string;
77
+ workspaceId?: string;
78
+ topicId?: string;
79
+ description?: string;
80
+ perspectiveType: WorkflowLensPerspectiveType;
81
+ promptTemplates?: LensPromptTemplateReference[];
82
+ workflowTemplates?: LensWorkflowTemplate[];
83
+ taskTemplates?: LensTaskTemplate[];
84
+ filterCriteria?: JsonObject;
85
+ } & TopicIdentifierInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowLensRecord>>>[0]): Promise<PlatformGatewaySuccess<WorkflowLensRecord>>;
86
+ listLenses(query: Parameters<(query: {
87
+ workspaceId?: string;
88
+ topicId?: string;
89
+ status?: WorkflowLensStatus;
90
+ perspectiveType?: WorkflowLensPerspectiveType;
91
+ } & TopicIdentifierInput) => Promise<PlatformGatewaySuccess<ListResult<WorkflowLensRecord, "lenses">>>>[0]): Promise<PlatformGatewaySuccess<ListResult<WorkflowLensRecord, "lenses">>>;
92
+ applyLensToTopic(input: Parameters<(input: {
93
+ lensId: string;
94
+ topicId?: string;
95
+ metadata?: JsonObject;
96
+ } & TopicIdentifierInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowLensBindingRecord>>>[0]): Promise<PlatformGatewaySuccess<WorkflowLensBindingRecord>>;
97
+ removeLensFromTopic(input: Parameters<(input: {
98
+ lensId: string;
99
+ topicId?: string;
100
+ } & TopicIdentifierInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowLensBindingRecord>>>[0]): Promise<PlatformGatewaySuccess<WorkflowLensBindingRecord>>;
101
+ create(input: AddWorktreeInput): Promise<PlatformGatewaySuccess<{
102
+ [x: string]: unknown;
103
+ }>>;
104
+ add(input: AddWorktreeInput): Promise<PlatformGatewaySuccess<{
105
+ [x: string]: unknown;
106
+ }>>;
107
+ list(query: Parameters<(query: {
108
+ topicId?: string;
109
+ branchId?: string;
110
+ status?: WorkflowWorktreeStatus;
111
+ groupBy?: "campaign" | "lane" | "flat";
112
+ lane?: string;
113
+ campaign?: number;
114
+ limit?: number;
115
+ } & TopicIdentifierInput) => Promise<PlatformGatewaySuccess<ListResult<WorkflowWorktreeRecord, "worktrees">>>>[0]): Promise<PlatformGatewaySuccess<{
116
+ [x: string]: unknown;
117
+ } & {
118
+ cursor?: string;
119
+ total?: number;
120
+ } & {
121
+ worktrees?: {
122
+ [x: string]: unknown;
123
+ }[];
124
+ }>>;
125
+ activate(worktreeId: string): Promise<PlatformGatewaySuccess<{
126
+ [x: string]: unknown;
127
+ }>>;
128
+ updateMetadata(input: FunctionSurfaceInput): Promise<PlatformGatewaySuccess<{
129
+ [x: string]: unknown;
130
+ }>>;
131
+ update(input: FunctionSurfaceInput): Promise<PlatformGatewaySuccess<{
132
+ [x: string]: unknown;
133
+ }>>;
134
+ updateTargets(input: Parameters<(input: UpdateWorktreeTargetsInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowWorktreeRecord>>>[0]): Promise<PlatformGatewaySuccess<{
135
+ [x: string]: unknown;
136
+ }>>;
137
+ listAll(query?: Parameters<(query?: {
138
+ status?: WorkflowWorktreeStatus;
139
+ groupBy?: "campaign" | "lane" | "flat";
140
+ lane?: string;
141
+ campaign?: 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): FunctionSurfaceResult<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 };