@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.
- package/CHANGELOG.md +3 -0
- package/README.md +84 -25
- package/dist/adminClient.d.ts +10 -8
- package/dist/adminClient.js +242 -39
- package/dist/adminClient.js.map +1 -1
- package/dist/answersClient.d.ts +2 -0
- package/dist/answersClient.js +221 -11
- package/dist/answersClient.js.map +1 -1
- package/dist/audience/index.d.ts +2 -1
- package/dist/audience/index.js +1 -3
- package/dist/audience/index.js.map +1 -1
- package/dist/audiencesClient.d.ts +18 -16
- package/dist/audiencesClient.js +297 -90
- package/dist/audiencesClient.js.map +1 -1
- package/dist/auditClient.d.ts +2 -0
- package/dist/auditClient.js +227 -15
- package/dist/auditClient.js.map +1 -1
- package/dist/authContext.d.ts +56 -0
- package/dist/authContext.js +170 -0
- package/dist/authContext.js.map +1 -0
- package/dist/authDeviceClient.d.ts +49 -0
- package/dist/authDeviceClient.js +121 -0
- package/dist/authDeviceClient.js.map +1 -0
- package/dist/beliefs/index.d.ts +31 -11
- package/dist/beliefs/index.js +3347 -1109
- package/dist/beliefs/index.js.map +1 -1
- package/dist/beliefsClient.d.ts +18 -31
- package/dist/beliefsClient.js +264 -97
- package/dist/beliefsClient.js.map +1 -1
- package/dist/boundaryClientSurface.d.ts +20 -0
- package/dist/boundaryClientSurface.js +73 -0
- package/dist/boundaryClientSurface.js.map +1 -0
- package/dist/client.d.ts +2969 -27
- package/dist/client.js +3347 -1109
- package/dist/client.js.map +1 -1
- package/dist/clientHelpers.d.ts +48 -0
- package/dist/clientHelpers.js +137 -0
- package/dist/clientHelpers.js.map +1 -0
- package/dist/contextClient.d.ts +6 -3
- package/dist/contextClient.js +252 -30
- package/dist/contextClient.js.map +1 -1
- package/dist/contextFacade.js +25 -16
- package/dist/contextFacade.js.map +1 -1
- package/dist/contextPackCompiler.js +19 -30
- package/dist/contextPackCompiler.js.map +1 -1
- package/dist/contextPackPolicy.js +7 -17
- package/dist/contextPackPolicy.js.map +1 -1
- package/dist/contextTypes.d.ts +2 -0
- package/dist/contracts/api-enums.contract.d.ts +1 -1
- package/dist/contracts/api-enums.contract.js.map +1 -1
- package/dist/contracts/index.d.ts +1 -0
- package/dist/contracts/index.js +109 -5
- package/dist/contracts/index.js.map +1 -1
- package/dist/contracts/lens-filter.contract.js +4 -3
- package/dist/contracts/lens-filter.contract.js.map +1 -1
- package/dist/contracts/lens-workflow.contract.js +4 -3
- package/dist/contracts/lens-workflow.contract.js.map +1 -1
- package/dist/contracts/lensFilter.js +4 -3
- package/dist/contracts/lensFilter.js.map +1 -1
- package/dist/contracts/lensWorkflow.js +4 -3
- package/dist/contracts/lensWorkflow.js.map +1 -1
- package/dist/contracts/mcpTools.d.ts +46 -1
- package/dist/contracts/mcpTools.js +102 -0
- package/dist/contracts/mcpTools.js.map +1 -1
- package/dist/contracts/workflow-runtime.contract.js +1 -1
- package/dist/contracts/workflow-runtime.contract.js.map +1 -1
- package/dist/contracts/workflowRuntime.js +1 -1
- package/dist/contracts/workflowRuntime.js.map +1 -1
- package/dist/contradictions/index.d.ts +24 -4
- package/dist/contradictions/index.js +3347 -1109
- package/dist/contradictions/index.js.map +1 -1
- package/dist/coreClient.d.ts +11 -1
- package/dist/coreClient.js +222 -14
- package/dist/coreClient.js.map +1 -1
- package/dist/decisions/index.d.ts +34 -14
- package/dist/decisions/index.js +3347 -1109
- package/dist/decisions/index.js.map +1 -1
- package/dist/decisionsClient.d.ts +6 -12
- package/dist/decisionsClient.js +235 -37
- package/dist/decisionsClient.js.map +1 -1
- package/dist/edges/index.d.ts +47 -87
- package/dist/edges/index.js +3347 -1109
- package/dist/edges/index.js.map +1 -1
- package/dist/embeddingsClient.d.ts +106 -0
- package/dist/embeddingsClient.js +731 -0
- package/dist/embeddingsClient.js.map +1 -0
- package/dist/eventingClient.d.ts +96 -0
- package/dist/eventingClient.js +728 -0
- package/dist/eventingClient.js.map +1 -0
- package/dist/events.js +6 -3
- package/dist/events.js.map +1 -1
- package/dist/eventsCore.d.ts +3 -1
- package/dist/eventsCore.js +222 -14
- package/dist/eventsCore.js.map +1 -1
- package/dist/evidence/index.d.ts +25 -4
- package/dist/evidence/index.js +3347 -1109
- package/dist/evidence/index.js.map +1 -1
- package/dist/evidenceClient.d.ts +2 -0
- package/dist/evidenceClient.js +222 -14
- package/dist/evidenceClient.js.map +1 -1
- package/dist/facade/context.d.ts +2 -1
- package/dist/facade/context.js +25 -16
- package/dist/facade/context.js.map +1 -1
- package/dist/functionSurface.d.ts +143 -0
- package/dist/functionSurface.js +1204 -0
- package/dist/functionSurface.js.map +1 -0
- package/dist/functionSurfaceClient.d.ts +8 -0
- package/dist/functionSurfaceClient.js +1204 -0
- package/dist/functionSurfaceClient.js.map +1 -0
- package/dist/gatewayFacades.d.ts +81 -52
- package/dist/gatewayFacades.js +483 -169
- package/dist/gatewayFacades.js.map +1 -1
- package/dist/graphAnalysisClient.d.ts +192 -0
- package/dist/graphAnalysisClient.js +799 -0
- package/dist/graphAnalysisClient.js.map +1 -0
- package/dist/graphClient.d.ts +7 -13
- package/dist/graphClient.js +244 -45
- package/dist/graphClient.js.map +1 -1
- package/dist/graphIntel.d.ts +3 -0
- package/dist/graphIntel.js +3 -0
- package/dist/graphIntel.js.map +1 -0
- package/dist/graphIntelligence.d.ts +2 -0
- package/dist/graphIntelligence.js +47 -0
- package/dist/graphIntelligence.js.map +1 -0
- package/dist/graphRecommendationsClient.d.ts +56 -0
- package/dist/graphRecommendationsClient.js +664 -0
- package/dist/graphRecommendationsClient.js.map +1 -0
- package/dist/graphStateClassifierClient.d.ts +73 -0
- package/dist/graphStateClassifierClient.js +716 -0
- package/dist/graphStateClassifierClient.js.map +1 -0
- package/dist/harnessClient.d.ts +15 -24
- package/dist/harnessClient.js +235 -42
- package/dist/harnessClient.js.map +1 -1
- package/dist/identityClient.d.ts +97 -11
- package/dist/identityClient.js +409 -33
- package/dist/identityClient.js.map +1 -1
- package/dist/index.d.ts +29 -6
- package/dist/index.js +3936 -1155
- package/dist/index.js.map +1 -1
- package/dist/infisicalRuntime.d.ts +42 -0
- package/dist/infisicalRuntime.js +314 -0
- package/dist/infisicalRuntime.js.map +1 -0
- package/dist/jobsClient.d.ts +98 -0
- package/dist/jobsClient.js +726 -0
- package/dist/jobsClient.js.map +1 -0
- package/dist/learningClient.d.ts +8 -6
- package/dist/learningClient.js +252 -44
- package/dist/learningClient.js.map +1 -1
- package/dist/lenses/index.d.ts +82 -42
- package/dist/lenses/index.js +3347 -1109
- package/dist/lenses/index.js.map +1 -1
- package/dist/mcpClient.d.ts +28 -0
- package/dist/mcpClient.js +668 -0
- package/dist/mcpClient.js.map +1 -0
- package/dist/modelRuntimeClient.d.ts +72 -0
- package/dist/modelRuntimeClient.js +704 -0
- package/dist/modelRuntimeClient.js.map +1 -0
- package/dist/nodes/index.d.ts +63 -21
- package/dist/nodes/index.js +3347 -1109
- package/dist/nodes/index.js.map +1 -1
- package/dist/ontologies/index.d.ts +53 -32
- package/dist/ontologies/index.js +3347 -1109
- package/dist/ontologies/index.js.map +1 -1
- package/dist/ontologyClient.d.ts +19 -25
- package/dist/ontologyClient.js +258 -40
- package/dist/ontologyClient.js.map +1 -1
- package/dist/ontologyLinksClient.d.ts +71 -0
- package/dist/ontologyLinksClient.js +697 -0
- package/dist/ontologyLinksClient.js.map +1 -0
- package/dist/opinion.d.ts +2 -2
- package/dist/opinion.js +4 -4
- package/dist/opinion.js.map +1 -1
- package/dist/orgGraphSearchClient.d.ts +85 -0
- package/dist/orgGraphSearchClient.js +672 -0
- package/dist/orgGraphSearchClient.js.map +1 -0
- package/dist/packsClient.d.ts +11 -23
- package/dist/packsClient.js +234 -46
- package/dist/packsClient.js.map +1 -1
- package/dist/policyClient.d.ts +13 -10
- package/dist/policyClient.js +243 -25
- package/dist/policyClient.js.map +1 -1
- package/dist/questions/index.d.ts +24 -4
- package/dist/questions/index.js +3347 -1109
- package/dist/questions/index.js.map +1 -1
- package/dist/realtime/index.d.ts +1 -1
- package/dist/reportsClient.d.ts +9 -7
- package/dist/reportsClient.js +281 -53
- package/dist/reportsClient.js.map +1 -1
- package/dist/schemaClient.d.ts +5 -3
- package/dist/schemaClient.js +235 -29
- package/dist/schemaClient.js.map +1 -1
- package/dist/sdkSurface.d.ts +8 -3
- package/dist/sdkSurface.js +10 -6
- package/dist/sdkSurface.js.map +1 -1
- package/dist/sourcesClient.d.ts +2 -0
- package/dist/sourcesClient.js +222 -14
- package/dist/sourcesClient.js.map +1 -1
- package/dist/telemetryClient.d.ts +94 -0
- package/dist/telemetryClient.js +741 -0
- package/dist/telemetryClient.js.map +1 -0
- package/dist/toolRegistryClient.d.ts +115 -0
- package/dist/toolRegistryClient.js +767 -0
- package/dist/toolRegistryClient.js.map +1 -0
- package/dist/topics/index.d.ts +35 -9
- package/dist/topics/index.js +3349 -1109
- package/dist/topics/index.js.map +1 -1
- package/dist/topicsClient.d.ts +4 -0
- package/dist/topicsClient.js +237 -24
- package/dist/topicsClient.js.map +1 -1
- package/dist/types.d.ts +12 -7
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/dist/workflowClient.d.ts +76 -45
- package/dist/workflowClient.js +262 -65
- package/dist/workflowClient.js.map +1 -1
- package/dist/worktrees/index.d.ts +78 -39
- package/dist/worktrees/index.js +3347 -1109
- package/dist/worktrees/index.js.map +1 -1
- package/package.json +13 -3
- 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 {
|
|
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 '../
|
|
24
|
-
import '
|
|
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
|
-
|
|
50
|
-
|
|
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:
|
|
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
|
|
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
|
|
91
|
-
createLens
|
|
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
|
|
102
|
-
listLenses
|
|
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"
|
|
108
|
-
applyLensToTopic
|
|
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
|
|
113
|
-
removeLensFromTopic
|
|
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
|
|
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
|
-
|
|
128
|
-
|
|
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
|
|
196
|
+
listAll: (query?: {
|
|
153
197
|
status?: WorkflowWorktreeStatus;
|
|
154
|
-
|
|
155
|
-
|
|
198
|
+
groupBy?: "campaign" | "lane" | "flat";
|
|
199
|
+
lane?: string;
|
|
200
|
+
campaign?: number;
|
|
156
201
|
limit?: number;
|
|
157
|
-
}) => 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
|
|
206
|
+
push: (worktreeId: string, input: {
|
|
162
207
|
targetContext: string;
|
|
163
208
|
beliefIds?: string[];
|
|
164
209
|
metadata?: JsonObject;
|
|
165
|
-
}, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<PushWorktreeResponse
|
|
166
|
-
openPullRequest
|
|
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
|
|
215
|
+
}, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<OpenPullRequestResponse>>;
|
|
171
216
|
pipelineSnapshot(topicId: string): FunctionSurfaceResult<unknown>;
|
|
172
|
-
complete
|
|
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
|
|
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
|
|
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
|
};
|