@lucern/sdk 0.2.0-alpha.9 → 0.3.0-alpha.0

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 (101) hide show
  1. package/README.md +6 -0
  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 +6694 -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 +91 -12
  14. package/dist/beliefsClient.js +176 -7
  15. package/dist/beliefsClient.js.map +1 -1
  16. package/dist/client-DAuKnDlx.d.ts +2547 -0
  17. package/dist/client.d.ts +31 -2377
  18. package/dist/client.js +783 -245
  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 +118 -4282
  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/contradictions/index.d.ts +156 -0
  39. package/dist/contradictions/index.js +6688 -0
  40. package/dist/contradictions/index.js.map +1 -0
  41. package/dist/customTools.d.ts +1 -1
  42. package/dist/decisions/index.d.ts +66 -0
  43. package/dist/decisions/index.js +6690 -0
  44. package/dist/decisions/index.js.map +1 -0
  45. package/dist/edges/index.d.ts +202 -0
  46. package/dist/edges/index.js +6689 -0
  47. package/dist/edges/index.js.map +1 -0
  48. package/dist/events.js +7 -5
  49. package/dist/events.js.map +1 -1
  50. package/dist/evidence/index.d.ts +293 -0
  51. package/dist/evidence/index.js +6689 -0
  52. package/dist/evidence/index.js.map +1 -0
  53. package/dist/evidenceClient.d.ts +119 -0
  54. package/dist/evidenceClient.js +350 -0
  55. package/dist/evidenceClient.js.map +1 -0
  56. package/dist/gatewayFacades.d.ts +8 -10
  57. package/dist/gatewayFacades.js +54 -1
  58. package/dist/gatewayFacades.js.map +1 -1
  59. package/dist/identityClient.d.ts +3 -3
  60. package/dist/identityClient.js.map +1 -1
  61. package/dist/index.d.ts +7 -6
  62. package/dist/index.js +1092 -3294
  63. package/dist/index.js.map +1 -1
  64. package/dist/lenses/index.d.ts +192 -0
  65. package/dist/lenses/index.js +6688 -0
  66. package/dist/lenses/index.js.map +1 -0
  67. package/dist/nodes/index.d.ts +61 -0
  68. package/dist/nodes/index.js +6690 -0
  69. package/dist/nodes/index.js.map +1 -0
  70. package/dist/ontologies/index.d.ts +179 -0
  71. package/dist/ontologies/index.js +6691 -0
  72. package/dist/ontologies/index.js.map +1 -0
  73. package/dist/opinion.d.ts +11 -0
  74. package/dist/opinion.js +35 -0
  75. package/dist/opinion.js.map +1 -0
  76. package/dist/questions/index.d.ts +295 -0
  77. package/dist/questions/index.js +6691 -0
  78. package/dist/questions/index.js.map +1 -0
  79. package/dist/sdk-tools.contract-B4c1Zr1o.d.ts +22 -0
  80. package/dist/sourcesClient.d.ts +24 -0
  81. package/dist/{mcpParityClient.js → sourcesClient.js} +15 -192
  82. package/dist/sourcesClient.js.map +1 -0
  83. package/dist/tool-contracts-BUiL9P6z.d.ts +22 -0
  84. package/dist/topics/index.d.ts +66 -0
  85. package/dist/topics/index.js +6689 -0
  86. package/dist/topics/index.js.map +1 -0
  87. package/dist/types.d.ts +20 -1
  88. package/dist/worktrees/index.d.ts +208 -0
  89. package/dist/worktrees/index.js +6691 -0
  90. package/dist/worktrees/index.js.map +1 -0
  91. package/package.json +55 -3
  92. package/dist/contracts/mcp-tools.contract.d.ts +0 -1
  93. package/dist/contracts/mcp-tools.contract.js +0 -2986
  94. package/dist/contracts/mcp-tools.contract.js.map +0 -1
  95. package/dist/mcpParityClient.d.ts +0 -74
  96. package/dist/mcpParityClient.js.map +0 -1
  97. package/dist/mcpParitySurface.d.ts +0 -12
  98. package/dist/mcpParitySurface.js +0 -65
  99. package/dist/mcpParitySurface.js.map +0 -1
  100. package/dist/mcpTools-DPZxowDX.d.ts +0 -254
  101. package/dist/sdkTools-CwXJDACb.d.ts +0 -150
@@ -0,0 +1,192 @@
1
+ import { L as LucernClientConfig, a as FunctionSurfaceInput, b as FunctionSurfaceResult } from '../client-DAuKnDlx.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
+ track?: string;
112
+ executionBand?: number;
113
+ limit?: number;
114
+ } & TopicIdentifierInput) => Promise<PlatformGatewaySuccess<ListResult<WorkflowWorktreeRecord, "worktrees">>>>[0]): Promise<PlatformGatewaySuccess<{
115
+ [x: string]: unknown;
116
+ } & {
117
+ cursor?: string;
118
+ total?: number;
119
+ } & {
120
+ worktrees?: {
121
+ [x: string]: unknown;
122
+ }[];
123
+ }>>;
124
+ activate(worktreeId: string): Promise<PlatformGatewaySuccess<{
125
+ [x: string]: unknown;
126
+ }>>;
127
+ updateMetadata(input: FunctionSurfaceInput): Promise<PlatformGatewaySuccess<{
128
+ [x: string]: unknown;
129
+ }>>;
130
+ update(input: FunctionSurfaceInput): Promise<PlatformGatewaySuccess<{
131
+ [x: string]: unknown;
132
+ }>>;
133
+ updateTargets(input: Parameters<(input: UpdateWorktreeTargetsInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowWorktreeRecord>>>[0]): Promise<PlatformGatewaySuccess<{
134
+ [x: string]: unknown;
135
+ }>>;
136
+ listAll(query?: Parameters<(query?: {
137
+ status?: WorkflowWorktreeStatus;
138
+ track?: string;
139
+ executionBand?: number;
140
+ limit?: number;
141
+ }) => Promise<PlatformGatewaySuccess<ListWorktreesResponse>>>[0]): Promise<PlatformGatewaySuccess<ListWorktreesResponse>>;
142
+ merge(worktreeId: string, input: MergeInput): Promise<PlatformGatewaySuccess<{
143
+ [x: string]: unknown;
144
+ }>>;
145
+ push(worktreeId: string, input: Parameters<(worktreeId: string, input: {
146
+ targetContext: string;
147
+ beliefIds?: string[];
148
+ metadata?: JsonObject;
149
+ }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<PushWorktreeResponse>>>[1]): Promise<PlatformGatewaySuccess<PushWorktreeResponse>>;
150
+ openPullRequest(worktreeId: string, input: Parameters<(worktreeId: string, input: {
151
+ summary: string;
152
+ reviewers?: string[];
153
+ status?: "pending_review" | "changes_requested" | "approved" | "blocked";
154
+ }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<OpenPullRequestResponse>>>[1]): Promise<PlatformGatewaySuccess<OpenPullRequestResponse>>;
155
+ pipelineSnapshot(topicId: string): FunctionSurfaceResult<unknown>;
156
+ complete(input: Parameters<(input: {
157
+ worktreeId: string;
158
+ keyFindings?: string[];
159
+ decisionsReached?: string[];
160
+ nextSteps?: string[];
161
+ }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
162
+ [x: string]: unknown;
163
+ }>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
164
+ [x: string]: unknown;
165
+ }>>;
166
+ advancePhase(worktreeId: string, idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
167
+ [x: string]: unknown;
168
+ }>>;
169
+ setPhase(worktreeId: string, phase: string, idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
170
+ [x: string]: unknown;
171
+ }>>;
172
+ patchState(input: Parameters<(input: {
173
+ worktreeId: string;
174
+ patch: {
175
+ [x: string]: unknown;
176
+ };
177
+ }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
178
+ [x: string]: unknown;
179
+ }>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
180
+ [x: string]: unknown;
181
+ }>>;
182
+ bulkCreate(input: Parameters<(input: {
183
+ worktrees: unknown[];
184
+ }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
185
+ [x: string]: unknown;
186
+ }>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
187
+ [x: string]: unknown;
188
+ }>>;
189
+ };
190
+ };
191
+
192
+ export { type LensesClient, type LensesClientConfig, createLensesClient };