@lucern/sdk 0.3.0-alpha.0 → 0.3.0-alpha.10

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 (221) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/README.md +84 -25
  3. package/dist/adminClient.d.ts +10 -8
  4. package/dist/adminClient.js +242 -39
  5. package/dist/adminClient.js.map +1 -1
  6. package/dist/answersClient.d.ts +2 -0
  7. package/dist/answersClient.js +221 -11
  8. package/dist/answersClient.js.map +1 -1
  9. package/dist/audience/index.d.ts +2 -1
  10. package/dist/audience/index.js +1 -3
  11. package/dist/audience/index.js.map +1 -1
  12. package/dist/audiencesClient.d.ts +18 -16
  13. package/dist/audiencesClient.js +297 -90
  14. package/dist/audiencesClient.js.map +1 -1
  15. package/dist/auditClient.d.ts +2 -0
  16. package/dist/auditClient.js +227 -15
  17. package/dist/auditClient.js.map +1 -1
  18. package/dist/authContext.d.ts +56 -0
  19. package/dist/authContext.js +170 -0
  20. package/dist/authContext.js.map +1 -0
  21. package/dist/authDeviceClient.d.ts +49 -0
  22. package/dist/authDeviceClient.js +121 -0
  23. package/dist/authDeviceClient.js.map +1 -0
  24. package/dist/beliefs/index.d.ts +31 -11
  25. package/dist/beliefs/index.js +3347 -1109
  26. package/dist/beliefs/index.js.map +1 -1
  27. package/dist/beliefsClient.d.ts +18 -31
  28. package/dist/beliefsClient.js +264 -97
  29. package/dist/beliefsClient.js.map +1 -1
  30. package/dist/boundaryClientSurface.d.ts +20 -0
  31. package/dist/boundaryClientSurface.js +73 -0
  32. package/dist/boundaryClientSurface.js.map +1 -0
  33. package/dist/client.d.ts +2969 -27
  34. package/dist/client.js +3347 -1109
  35. package/dist/client.js.map +1 -1
  36. package/dist/clientHelpers.d.ts +48 -0
  37. package/dist/clientHelpers.js +137 -0
  38. package/dist/clientHelpers.js.map +1 -0
  39. package/dist/contextClient.d.ts +6 -3
  40. package/dist/contextClient.js +252 -30
  41. package/dist/contextClient.js.map +1 -1
  42. package/dist/contextFacade.js +25 -16
  43. package/dist/contextFacade.js.map +1 -1
  44. package/dist/contextPackCompiler.js +19 -30
  45. package/dist/contextPackCompiler.js.map +1 -1
  46. package/dist/contextPackPolicy.js +7 -17
  47. package/dist/contextPackPolicy.js.map +1 -1
  48. package/dist/contextTypes.d.ts +2 -0
  49. package/dist/contracts/api-enums.contract.d.ts +1 -1
  50. package/dist/contracts/api-enums.contract.js.map +1 -1
  51. package/dist/contracts/index.d.ts +1 -0
  52. package/dist/contracts/index.js +109 -5
  53. package/dist/contracts/index.js.map +1 -1
  54. package/dist/contracts/lens-filter.contract.js +4 -3
  55. package/dist/contracts/lens-filter.contract.js.map +1 -1
  56. package/dist/contracts/lens-workflow.contract.js +4 -3
  57. package/dist/contracts/lens-workflow.contract.js.map +1 -1
  58. package/dist/contracts/lensFilter.js +4 -3
  59. package/dist/contracts/lensFilter.js.map +1 -1
  60. package/dist/contracts/lensWorkflow.js +4 -3
  61. package/dist/contracts/lensWorkflow.js.map +1 -1
  62. package/dist/contracts/mcpTools.d.ts +46 -1
  63. package/dist/contracts/mcpTools.js +102 -0
  64. package/dist/contracts/mcpTools.js.map +1 -1
  65. package/dist/contracts/workflow-runtime.contract.js +1 -1
  66. package/dist/contracts/workflow-runtime.contract.js.map +1 -1
  67. package/dist/contracts/workflowRuntime.js +1 -1
  68. package/dist/contracts/workflowRuntime.js.map +1 -1
  69. package/dist/contradictions/index.d.ts +24 -4
  70. package/dist/contradictions/index.js +3347 -1109
  71. package/dist/contradictions/index.js.map +1 -1
  72. package/dist/coreClient.d.ts +11 -1
  73. package/dist/coreClient.js +222 -14
  74. package/dist/coreClient.js.map +1 -1
  75. package/dist/decisions/index.d.ts +34 -14
  76. package/dist/decisions/index.js +3347 -1109
  77. package/dist/decisions/index.js.map +1 -1
  78. package/dist/decisionsClient.d.ts +6 -12
  79. package/dist/decisionsClient.js +235 -37
  80. package/dist/decisionsClient.js.map +1 -1
  81. package/dist/edges/index.d.ts +47 -87
  82. package/dist/edges/index.js +3347 -1109
  83. package/dist/edges/index.js.map +1 -1
  84. package/dist/embeddingsClient.d.ts +106 -0
  85. package/dist/embeddingsClient.js +731 -0
  86. package/dist/embeddingsClient.js.map +1 -0
  87. package/dist/eventingClient.d.ts +96 -0
  88. package/dist/eventingClient.js +728 -0
  89. package/dist/eventingClient.js.map +1 -0
  90. package/dist/events.js +6 -3
  91. package/dist/events.js.map +1 -1
  92. package/dist/eventsCore.d.ts +3 -1
  93. package/dist/eventsCore.js +222 -14
  94. package/dist/eventsCore.js.map +1 -1
  95. package/dist/evidence/index.d.ts +25 -4
  96. package/dist/evidence/index.js +3347 -1109
  97. package/dist/evidence/index.js.map +1 -1
  98. package/dist/evidenceClient.d.ts +2 -0
  99. package/dist/evidenceClient.js +222 -14
  100. package/dist/evidenceClient.js.map +1 -1
  101. package/dist/facade/context.d.ts +2 -1
  102. package/dist/facade/context.js +25 -16
  103. package/dist/facade/context.js.map +1 -1
  104. package/dist/functionSurface.d.ts +143 -0
  105. package/dist/functionSurface.js +1204 -0
  106. package/dist/functionSurface.js.map +1 -0
  107. package/dist/functionSurfaceClient.d.ts +8 -0
  108. package/dist/functionSurfaceClient.js +1204 -0
  109. package/dist/functionSurfaceClient.js.map +1 -0
  110. package/dist/gatewayFacades.d.ts +81 -52
  111. package/dist/gatewayFacades.js +483 -169
  112. package/dist/gatewayFacades.js.map +1 -1
  113. package/dist/graphAnalysisClient.d.ts +192 -0
  114. package/dist/graphAnalysisClient.js +799 -0
  115. package/dist/graphAnalysisClient.js.map +1 -0
  116. package/dist/graphClient.d.ts +7 -13
  117. package/dist/graphClient.js +244 -45
  118. package/dist/graphClient.js.map +1 -1
  119. package/dist/graphIntel.d.ts +3 -0
  120. package/dist/graphIntel.js +3 -0
  121. package/dist/graphIntel.js.map +1 -0
  122. package/dist/graphIntelligence.d.ts +2 -0
  123. package/dist/graphIntelligence.js +47 -0
  124. package/dist/graphIntelligence.js.map +1 -0
  125. package/dist/graphRecommendationsClient.d.ts +56 -0
  126. package/dist/graphRecommendationsClient.js +664 -0
  127. package/dist/graphRecommendationsClient.js.map +1 -0
  128. package/dist/graphStateClassifierClient.d.ts +73 -0
  129. package/dist/graphStateClassifierClient.js +716 -0
  130. package/dist/graphStateClassifierClient.js.map +1 -0
  131. package/dist/harnessClient.d.ts +15 -24
  132. package/dist/harnessClient.js +235 -42
  133. package/dist/harnessClient.js.map +1 -1
  134. package/dist/identityClient.d.ts +97 -11
  135. package/dist/identityClient.js +409 -33
  136. package/dist/identityClient.js.map +1 -1
  137. package/dist/index.d.ts +29 -6
  138. package/dist/index.js +3936 -1155
  139. package/dist/index.js.map +1 -1
  140. package/dist/infisicalRuntime.d.ts +42 -0
  141. package/dist/infisicalRuntime.js +314 -0
  142. package/dist/infisicalRuntime.js.map +1 -0
  143. package/dist/jobsClient.d.ts +98 -0
  144. package/dist/jobsClient.js +726 -0
  145. package/dist/jobsClient.js.map +1 -0
  146. package/dist/learningClient.d.ts +8 -6
  147. package/dist/learningClient.js +252 -44
  148. package/dist/learningClient.js.map +1 -1
  149. package/dist/lenses/index.d.ts +82 -42
  150. package/dist/lenses/index.js +3347 -1109
  151. package/dist/lenses/index.js.map +1 -1
  152. package/dist/mcpClient.d.ts +28 -0
  153. package/dist/mcpClient.js +668 -0
  154. package/dist/mcpClient.js.map +1 -0
  155. package/dist/modelRuntimeClient.d.ts +72 -0
  156. package/dist/modelRuntimeClient.js +704 -0
  157. package/dist/modelRuntimeClient.js.map +1 -0
  158. package/dist/nodes/index.d.ts +63 -21
  159. package/dist/nodes/index.js +3347 -1109
  160. package/dist/nodes/index.js.map +1 -1
  161. package/dist/ontologies/index.d.ts +53 -32
  162. package/dist/ontologies/index.js +3347 -1109
  163. package/dist/ontologies/index.js.map +1 -1
  164. package/dist/ontologyClient.d.ts +19 -25
  165. package/dist/ontologyClient.js +258 -40
  166. package/dist/ontologyClient.js.map +1 -1
  167. package/dist/ontologyLinksClient.d.ts +71 -0
  168. package/dist/ontologyLinksClient.js +697 -0
  169. package/dist/ontologyLinksClient.js.map +1 -0
  170. package/dist/opinion.d.ts +2 -2
  171. package/dist/opinion.js +4 -4
  172. package/dist/opinion.js.map +1 -1
  173. package/dist/orgGraphSearchClient.d.ts +85 -0
  174. package/dist/orgGraphSearchClient.js +672 -0
  175. package/dist/orgGraphSearchClient.js.map +1 -0
  176. package/dist/packsClient.d.ts +11 -23
  177. package/dist/packsClient.js +234 -46
  178. package/dist/packsClient.js.map +1 -1
  179. package/dist/policyClient.d.ts +13 -10
  180. package/dist/policyClient.js +243 -25
  181. package/dist/policyClient.js.map +1 -1
  182. package/dist/questions/index.d.ts +24 -4
  183. package/dist/questions/index.js +3347 -1109
  184. package/dist/questions/index.js.map +1 -1
  185. package/dist/realtime/index.d.ts +1 -1
  186. package/dist/reportsClient.d.ts +9 -7
  187. package/dist/reportsClient.js +281 -53
  188. package/dist/reportsClient.js.map +1 -1
  189. package/dist/schemaClient.d.ts +5 -3
  190. package/dist/schemaClient.js +235 -29
  191. package/dist/schemaClient.js.map +1 -1
  192. package/dist/sdkSurface.d.ts +8 -3
  193. package/dist/sdkSurface.js +10 -6
  194. package/dist/sdkSurface.js.map +1 -1
  195. package/dist/sourcesClient.d.ts +2 -0
  196. package/dist/sourcesClient.js +222 -14
  197. package/dist/sourcesClient.js.map +1 -1
  198. package/dist/telemetryClient.d.ts +94 -0
  199. package/dist/telemetryClient.js +741 -0
  200. package/dist/telemetryClient.js.map +1 -0
  201. package/dist/toolRegistryClient.d.ts +115 -0
  202. package/dist/toolRegistryClient.js +767 -0
  203. package/dist/toolRegistryClient.js.map +1 -0
  204. package/dist/topics/index.d.ts +35 -9
  205. package/dist/topics/index.js +3349 -1109
  206. package/dist/topics/index.js.map +1 -1
  207. package/dist/topicsClient.d.ts +4 -0
  208. package/dist/topicsClient.js +237 -24
  209. package/dist/topicsClient.js.map +1 -1
  210. package/dist/types.d.ts +12 -7
  211. package/dist/version.d.ts +1 -1
  212. package/dist/version.js +1 -1
  213. package/dist/version.js.map +1 -1
  214. package/dist/workflowClient.d.ts +76 -45
  215. package/dist/workflowClient.js +262 -65
  216. package/dist/workflowClient.js.map +1 -1
  217. package/dist/worktrees/index.d.ts +78 -39
  218. package/dist/worktrees/index.js +3347 -1109
  219. package/dist/worktrees/index.js.map +1 -1
  220. package/package.json +13 -3
  221. package/dist/client-DAuKnDlx.d.ts +0 -2547
@@ -1,8 +1,9 @@
1
1
  import { LensPromptTemplateReference, LensWorkflowTemplate, LensTaskTemplate } from '../contracts/lens-workflow.contract.js';
2
- import { L as LucernClientConfig, a as FunctionSurfaceInput, b as FunctionSurfaceResult } from '../client-DAuKnDlx.js';
2
+ import { FunctionSurfaceInput, FunctionSurfaceResult } from '../functionSurface.js';
3
3
  import { TopicIdentifierInput, ListResult, WorkflowWorktreeRecord, JsonObject, WorkflowBranchRecord, WorkflowLensRecord, WorkflowLensBindingRecord, ListWorktreesResponse, PushWorktreeResponse, OpenPullRequestResponse } from '../types.js';
4
4
  import { PlatformGatewaySuccess } from '../coreClient.js';
5
5
  import { AddWorktreeInput, WorkflowWorktreeStatus, UpdateWorktreeTargetsInput, MergeInput, WorkflowLensPerspectiveType, WorkflowLensStatus } from '../workflowClient.js';
6
+ import { LucernClientConfig } from '../client.js';
6
7
  import * as v1 from '@lucern/contracts/worktrees/v1';
7
8
  export { v1 as worktreeContracts };
8
9
  import * as sdkMethods_contract from '@lucern/contracts/sdk-methods.contract';
@@ -10,18 +11,33 @@ export { sdkMethods_contract as methodSchemas };
10
11
  import * as toolContracts from '@lucern/contracts/tool-contracts';
11
12
  export { toolContracts as toolSchemas };
12
13
  import '../contracts/lens-filter.contract.js';
13
- import '../audiencesClient.js';
14
14
  import '../contracts/workflow-runtime.contract.js';
15
+ import '../authContext.js';
16
+ import '../contracts/auth-session.contract.js';
17
+ import '../audiencesClient.js';
15
18
  import '../schemaClient.js';
16
19
  import '../harnessClient.js';
17
- import '../identityClient.js';
18
20
  import '../adminClient.js';
19
21
  import '../controlObjectOwnership.js';
20
22
  import '../beliefsClient.js';
21
23
  import '../opinion.js';
24
+ import '../authDeviceClient.js';
25
+ import '../mcpClient.js';
26
+ import '@lucern/contracts/mcp-gateway-boundary.contract';
27
+ import '../identityClient.js';
22
28
  import '../packsClient.js';
23
- import '../customTools.js';
24
- import 'zod';
29
+ import '../toolRegistryClient.js';
30
+ import '../telemetryClient.js';
31
+ import '../jobsClient.js';
32
+ import '../modelRuntimeClient.js';
33
+ import '../graphStateClassifierClient.js';
34
+ import '../boundaryClientSurface.js';
35
+ import '../ontologyLinksClient.js';
36
+ import '../orgGraphSearchClient.js';
37
+ import '../graphRecommendationsClient.js';
38
+ import '../graphAnalysisClient.js';
39
+ import '@lucern/contracts';
40
+ import '../embeddingsClient.js';
25
41
  import '../policyClient.js';
26
42
  import '../ontologyClient.js';
27
43
  import '../contextTypes.js';
@@ -29,12 +45,16 @@ import '../topicsClient.js';
29
45
  import '../answersClient.js';
30
46
  import '../auditClient.js';
31
47
  import '../contextClient.js';
48
+ import '../customTools.js';
49
+ import 'zod';
32
50
  import '../decisionsClient.js';
33
51
  import '../evidenceClient.js';
52
+ import '../eventingClient.js';
34
53
  import '../graphClient.js';
35
54
  import '../learningClient.js';
36
55
  import '../reportsClient.js';
37
56
  import '../sourcesClient.js';
57
+ import '../clientHelpers.js';
38
58
 
39
59
  type WorktreesClientConfig = LucernClientConfig;
40
60
  type WorktreesClient = ReturnType<typeof createWorktreesClient>;
@@ -46,8 +66,9 @@ declare function createWorktreesClient(config?: WorktreesClientConfig): {
46
66
  topicId?: string;
47
67
  branchId?: string;
48
68
  status?: WorkflowWorktreeStatus;
49
- track?: string;
50
- executionBand?: number;
69
+ groupBy?: "campaign" | "lane" | "flat";
70
+ lane?: string;
71
+ campaign?: number;
51
72
  limit?: number;
52
73
  } & TopicIdentifierInput) => Promise<PlatformGatewaySuccess<ListResult<WorkflowWorktreeRecord, "worktrees">>>>[0]) => Promise<PlatformGatewaySuccess<{
53
74
  [x: string]: unknown;
@@ -71,24 +92,22 @@ declare function createWorktreesClient(config?: WorktreesClientConfig): {
71
92
  mergeWorktree: (worktreeId: string, input: MergeInput) => Promise<PlatformGatewaySuccess<{
72
93
  [x: string]: unknown;
73
94
  }>>;
74
- completeWorktree: (input: Parameters<(input: {
95
+ completeWorktree: (input: {
75
96
  worktreeId: string;
76
97
  keyFindings?: string[];
77
98
  decisionsReached?: string[];
78
99
  nextSteps?: string[];
79
100
  }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
80
101
  [x: string]: unknown;
81
- }>>>[0], idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
82
- [x: string]: unknown;
83
102
  }>>;
84
103
  raw: {
85
- createBranch(input: Parameters<(input: {
104
+ createBranch: (input: {
86
105
  name: string;
87
106
  topicId?: string;
88
107
  description?: string;
89
108
  metadata?: JsonObject;
90
- } & TopicIdentifierInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowBranchRecord>>>[0]): Promise<PlatformGatewaySuccess<WorkflowBranchRecord>>;
91
- createLens(input: Parameters<(input: {
109
+ } & TopicIdentifierInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowBranchRecord>>;
110
+ createLens: (input: {
92
111
  name: string;
93
112
  workspaceId?: string;
94
113
  topicId?: string;
@@ -98,22 +117,22 @@ declare function createWorktreesClient(config?: WorktreesClientConfig): {
98
117
  workflowTemplates?: LensWorkflowTemplate[];
99
118
  taskTemplates?: LensTaskTemplate[];
100
119
  filterCriteria?: JsonObject;
101
- } & TopicIdentifierInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowLensRecord>>>[0]): Promise<PlatformGatewaySuccess<WorkflowLensRecord>>;
102
- listLenses(query: Parameters<(query: {
120
+ } & TopicIdentifierInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowLensRecord>>;
121
+ listLenses: (query: {
103
122
  workspaceId?: string;
104
123
  topicId?: string;
105
124
  status?: WorkflowLensStatus;
106
125
  perspectiveType?: WorkflowLensPerspectiveType;
107
- } & TopicIdentifierInput) => Promise<PlatformGatewaySuccess<ListResult<WorkflowLensRecord, "lenses">>>>[0]): Promise<PlatformGatewaySuccess<ListResult<WorkflowLensRecord, "lenses">>>;
108
- applyLensToTopic(input: Parameters<(input: {
126
+ } & TopicIdentifierInput) => Promise<PlatformGatewaySuccess<ListResult<WorkflowLensRecord, "lenses">>>;
127
+ applyLensToTopic: (input: {
109
128
  lensId: string;
110
129
  topicId?: string;
111
130
  metadata?: JsonObject;
112
- } & TopicIdentifierInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowLensBindingRecord>>>[0]): Promise<PlatformGatewaySuccess<WorkflowLensBindingRecord>>;
113
- removeLensFromTopic(input: Parameters<(input: {
131
+ } & TopicIdentifierInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowLensBindingRecord>>;
132
+ removeLensFromTopic: (input: {
114
133
  lensId: string;
115
134
  topicId?: string;
116
- } & TopicIdentifierInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowLensBindingRecord>>>[0]): Promise<PlatformGatewaySuccess<WorkflowLensBindingRecord>>;
135
+ } & TopicIdentifierInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowLensBindingRecord>>;
117
136
  create(input: AddWorktreeInput): Promise<PlatformGatewaySuccess<{
118
137
  [x: string]: unknown;
119
138
  }>>;
@@ -124,8 +143,27 @@ declare function createWorktreesClient(config?: WorktreesClientConfig): {
124
143
  topicId?: string;
125
144
  branchId?: string;
126
145
  status?: WorkflowWorktreeStatus;
127
- track?: string;
128
- executionBand?: number;
146
+ groupBy?: "campaign" | "lane" | "flat";
147
+ lane?: string;
148
+ campaign?: number;
149
+ limit?: number;
150
+ } & TopicIdentifierInput) => Promise<PlatformGatewaySuccess<ListResult<WorkflowWorktreeRecord, "worktrees">>>>[0]): Promise<PlatformGatewaySuccess<{
151
+ [x: string]: unknown;
152
+ } & {
153
+ cursor?: string;
154
+ total?: number;
155
+ } & {
156
+ worktrees?: {
157
+ [x: string]: unknown;
158
+ }[];
159
+ }>>;
160
+ listByTopic(query: Parameters<(query: {
161
+ topicId?: string;
162
+ branchId?: string;
163
+ status?: WorkflowWorktreeStatus;
164
+ groupBy?: "campaign" | "lane" | "flat";
165
+ lane?: string;
166
+ campaign?: number;
129
167
  limit?: number;
130
168
  } & TopicIdentifierInput) => Promise<PlatformGatewaySuccess<ListResult<WorkflowWorktreeRecord, "worktrees">>>>[0]): Promise<PlatformGatewaySuccess<{
131
169
  [x: string]: unknown;
@@ -137,6 +175,12 @@ declare function createWorktreesClient(config?: WorktreesClientConfig): {
137
175
  [x: string]: unknown;
138
176
  }[];
139
177
  }>>;
178
+ findByPairedSprint(input: {
179
+ sprintId: string;
180
+ topicId?: string;
181
+ projectId?: string;
182
+ limit?: number;
183
+ }): Promise<PlatformGatewaySuccess<Record<string, unknown>> & Record<string, unknown>>;
140
184
  activate(worktreeId: string): Promise<PlatformGatewaySuccess<{
141
185
  [x: string]: unknown;
142
186
  }>>;
@@ -149,35 +193,34 @@ declare function createWorktreesClient(config?: WorktreesClientConfig): {
149
193
  updateTargets(input: Parameters<(input: UpdateWorktreeTargetsInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowWorktreeRecord>>>[0]): Promise<PlatformGatewaySuccess<{
150
194
  [x: string]: unknown;
151
195
  }>>;
152
- listAll(query?: Parameters<(query?: {
196
+ listAll: (query?: {
153
197
  status?: WorkflowWorktreeStatus;
154
- track?: string;
155
- executionBand?: number;
198
+ groupBy?: "campaign" | "lane" | "flat";
199
+ lane?: string;
200
+ campaign?: number;
156
201
  limit?: number;
157
- }) => Promise<PlatformGatewaySuccess<ListWorktreesResponse>>>[0]): Promise<PlatformGatewaySuccess<ListWorktreesResponse>>;
202
+ }) => Promise<PlatformGatewaySuccess<ListWorktreesResponse>>;
158
203
  merge(worktreeId: string, input: MergeInput): Promise<PlatformGatewaySuccess<{
159
204
  [x: string]: unknown;
160
205
  }>>;
161
- push(worktreeId: string, input: Parameters<(worktreeId: string, input: {
206
+ push: (worktreeId: string, input: {
162
207
  targetContext: string;
163
208
  beliefIds?: string[];
164
209
  metadata?: JsonObject;
165
- }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<PushWorktreeResponse>>>[1]): Promise<PlatformGatewaySuccess<PushWorktreeResponse>>;
166
- openPullRequest(worktreeId: string, input: Parameters<(worktreeId: string, input: {
210
+ }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<PushWorktreeResponse>>;
211
+ openPullRequest: (worktreeId: string, input: {
167
212
  summary: string;
168
213
  reviewers?: string[];
169
214
  status?: "pending_review" | "changes_requested" | "approved" | "blocked";
170
- }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<OpenPullRequestResponse>>>[1]): Promise<PlatformGatewaySuccess<OpenPullRequestResponse>>;
215
+ }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<OpenPullRequestResponse>>;
171
216
  pipelineSnapshot(topicId: string): FunctionSurfaceResult<unknown>;
172
- complete(input: Parameters<(input: {
217
+ complete: (input: {
173
218
  worktreeId: string;
174
219
  keyFindings?: string[];
175
220
  decisionsReached?: string[];
176
221
  nextSteps?: string[];
177
222
  }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
178
223
  [x: string]: unknown;
179
- }>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
180
- [x: string]: unknown;
181
224
  }>>;
182
225
  advancePhase(worktreeId: string, idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
183
226
  [x: string]: unknown;
@@ -185,22 +228,18 @@ declare function createWorktreesClient(config?: WorktreesClientConfig): {
185
228
  setPhase(worktreeId: string, phase: string, idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
186
229
  [x: string]: unknown;
187
230
  }>>;
188
- patchState(input: Parameters<(input: {
231
+ patchState: (input: {
189
232
  worktreeId: string;
190
233
  patch: {
191
234
  [x: string]: unknown;
192
235
  };
193
236
  }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
194
237
  [x: string]: unknown;
195
- }>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
196
- [x: string]: unknown;
197
238
  }>>;
198
- bulkCreate(input: Parameters<(input: {
239
+ bulkCreate: (input: {
199
240
  worktrees: unknown[];
200
241
  }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
201
242
  [x: string]: unknown;
202
- }>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
203
- [x: string]: unknown;
204
243
  }>>;
205
244
  };
206
245
  };