@leitwerk-dev/test-support 0.2.1 → 0.3.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.
- package/dist/{chunk-2PCDTYVH.js → chunk-JGXSXRIJ.js} +10 -4
- package/dist/chunk-JGXSXRIJ.js.map +1 -0
- package/dist/chunk-KJVNI2UP.js +17 -0
- package/dist/chunk-KJVNI2UP.js.map +1 -0
- package/dist/chunk-P2FF4AP7.js +72 -0
- package/dist/chunk-P2FF4AP7.js.map +1 -0
- package/dist/chunk-RY6Y6V5E.js +54 -0
- package/dist/chunk-RY6Y6V5E.js.map +1 -0
- package/dist/{chunk-ECAWLVYB.js → chunk-WT7V7REB.js} +4 -1
- package/dist/chunk-WT7V7REB.js.map +1 -0
- package/dist/extension-integration-harness.d.ts +357 -0
- package/dist/extension-integration-harness.d.ts.map +1 -0
- package/dist/fixtures.d.ts +2 -0
- package/dist/fixtures.d.ts.map +1 -1
- package/dist/fixtures.js +53 -0
- package/dist/fixtures.js.map +1 -1
- package/dist/index.d.ts +2 -19
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -67
- package/dist/index.js.map +1 -1
- package/dist/integration.d.ts +1 -0
- package/dist/integration.d.ts.map +1 -1
- package/dist/integration.js +503 -2
- package/dist/integration.js.map +1 -1
- package/dist/local-git.d.ts.map +1 -1
- package/dist/local-git.js.map +1 -1
- package/dist/observations.d.ts +7 -0
- package/dist/observations.d.ts.map +1 -0
- package/dist/process-fixtures.d.ts +56 -0
- package/dist/process-fixtures.d.ts.map +1 -0
- package/dist/process.d.ts +440 -0
- package/dist/process.d.ts.map +1 -0
- package/dist/process.js +484 -0
- package/dist/process.js.map +1 -0
- package/dist/stub-worker-entry.js +1 -1
- package/dist/supported-question-fixtures.d.ts +96 -0
- package/dist/supported-question-fixtures.d.ts.map +1 -0
- package/dist/test-capability.d.ts +9 -0
- package/dist/test-capability.d.ts.map +1 -0
- package/dist/worker-testing/in-process-worker-spawn.d.ts +2 -0
- package/dist/worker-testing/in-process-worker-spawn.d.ts.map +1 -1
- package/dist/worker-testing/index.js +2 -2
- package/dist/worker-testing/stub-pi-tree-handle.d.ts +15 -0
- package/dist/worker-testing/stub-pi-tree-handle.d.ts.map +1 -1
- package/package.json +14 -9
- package/src/extension-integration-harness.ts +966 -0
- package/src/fixtures.ts +16 -0
- package/src/index.ts +4 -19
- package/src/integration.ts +21 -0
- package/src/local-git.ts +1 -0
- package/src/observations.ts +19 -0
- package/src/process-fixtures.ts +123 -0
- package/src/process.ts +768 -0
- package/src/supported-question-fixtures.ts +148 -0
- package/src/test-capability.ts +9 -0
- package/src/worker-testing/in-process-worker-spawn.ts +15 -2
- package/src/worker-testing/stub-pi-tree-handle.ts +19 -0
- package/dist/chunk-2PCDTYVH.js.map +0 -1
- package/dist/chunk-ECAWLVYB.js.map +0 -1
|
@@ -0,0 +1,440 @@
|
|
|
1
|
+
import type { ExtensionTestCapability } from "./test-capability.js";
|
|
2
|
+
export type { ExtensionTestCapability } from "./test-capability.js";
|
|
3
|
+
import type { Actor, ProcessProject } from "@leitwerk-dev/domain";
|
|
4
|
+
import { type ExtensionProcessDefinition, type FormDefinition, type LeitwerkExtensionModule, type ProcessLifecycleEffects, type TicketCreationDestinationSnapshot } from "@leitwerk-dev/process-sdk";
|
|
5
|
+
import { type TestObservation } from "./observations.js";
|
|
6
|
+
import { type ProcessFixtureOptions } from "./process-fixtures.js";
|
|
7
|
+
export type { TestObservation } from "./observations.js";
|
|
8
|
+
/** Data-only process descriptions. @public */
|
|
9
|
+
export interface ExtensionProcessDescription {
|
|
10
|
+
/** @public */
|
|
11
|
+
id: string;
|
|
12
|
+
/** @public */
|
|
13
|
+
entryTurnId: string;
|
|
14
|
+
/** @public */
|
|
15
|
+
entryTurnIds: string[];
|
|
16
|
+
/** @public */
|
|
17
|
+
turns: {
|
|
18
|
+
/** @public */
|
|
19
|
+
id: string;
|
|
20
|
+
/** @public */
|
|
21
|
+
kind: string;
|
|
22
|
+
/** @public */
|
|
23
|
+
description: string;
|
|
24
|
+
/** @public */
|
|
25
|
+
availableTools?: readonly string[];
|
|
26
|
+
/** @public */
|
|
27
|
+
branchType?: string;
|
|
28
|
+
/** @public */
|
|
29
|
+
context?: string;
|
|
30
|
+
/** @public */
|
|
31
|
+
restorePrimaryLeafAfterTurn?: boolean;
|
|
32
|
+
/** Human action descriptions, including scheduling and acceptance. @public */
|
|
33
|
+
humanView?: {
|
|
34
|
+
/** @public */
|
|
35
|
+
actions: readonly {
|
|
36
|
+
/** @public */
|
|
37
|
+
actionId: string;
|
|
38
|
+
/** @public */
|
|
39
|
+
acceptanceState: string;
|
|
40
|
+
/** @public */
|
|
41
|
+
label?: string;
|
|
42
|
+
/** @public */
|
|
43
|
+
description?: string;
|
|
44
|
+
/** @public */
|
|
45
|
+
scheduling?: {
|
|
46
|
+
/** @public */
|
|
47
|
+
preview: {
|
|
48
|
+
/** @public */
|
|
49
|
+
kind: string;
|
|
50
|
+
/** @public */
|
|
51
|
+
trigger?: string;
|
|
52
|
+
/** @public */
|
|
53
|
+
turnId?: string | null;
|
|
54
|
+
/** @public */
|
|
55
|
+
lifecycleStatus?: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
}[];
|
|
59
|
+
};
|
|
60
|
+
/** @public */
|
|
61
|
+
startFrom?: unknown;
|
|
62
|
+
/** @public */
|
|
63
|
+
publishedProduct?: string;
|
|
64
|
+
/** @public */
|
|
65
|
+
consumedProducts?: readonly string[];
|
|
66
|
+
}[];
|
|
67
|
+
/** @public */
|
|
68
|
+
transitions: {
|
|
69
|
+
/** @public */
|
|
70
|
+
from: string;
|
|
71
|
+
/** @public */
|
|
72
|
+
nextTurnId?: string;
|
|
73
|
+
/** @public */
|
|
74
|
+
lifecycleStatus?: string;
|
|
75
|
+
/** @public */
|
|
76
|
+
outcome?: string;
|
|
77
|
+
/** @public */
|
|
78
|
+
trigger?: string;
|
|
79
|
+
}[];
|
|
80
|
+
/** @public */
|
|
81
|
+
actions: {
|
|
82
|
+
/** @public */
|
|
83
|
+
id: string;
|
|
84
|
+
/** @public */
|
|
85
|
+
label: string;
|
|
86
|
+
/** @public */
|
|
87
|
+
form?: FormDefinition;
|
|
88
|
+
}[];
|
|
89
|
+
/** @public */
|
|
90
|
+
launchers: {
|
|
91
|
+
/** @public */
|
|
92
|
+
id: string;
|
|
93
|
+
/** @public */
|
|
94
|
+
label: string;
|
|
95
|
+
/** @public */
|
|
96
|
+
description: string;
|
|
97
|
+
/** @public */
|
|
98
|
+
launchConfigSchema: FormDefinition;
|
|
99
|
+
}[];
|
|
100
|
+
/** @public */
|
|
101
|
+
watchers: {
|
|
102
|
+
/** @public */
|
|
103
|
+
id: string;
|
|
104
|
+
/** @public */
|
|
105
|
+
label: string;
|
|
106
|
+
/** @public */
|
|
107
|
+
description: string;
|
|
108
|
+
/** @public */
|
|
109
|
+
source: string;
|
|
110
|
+
}[];
|
|
111
|
+
}
|
|
112
|
+
/** Independent business data for each evaluation. @public */
|
|
113
|
+
export interface ExtensionToolFixture extends ExtensionProcessFixture {
|
|
114
|
+
/** Reuse an invocation identity when retrying the same external write. @public */
|
|
115
|
+
invocationId?: string;
|
|
116
|
+
/** Authorized ticket destination resolved by the owning extension. @public */
|
|
117
|
+
ticketDestination?: TicketCreationDestinationSnapshot;
|
|
118
|
+
}
|
|
119
|
+
/** Receipt recorded by an extension-owned external write. @public */
|
|
120
|
+
export interface ExtensionTestWriteReceipt {
|
|
121
|
+
/** @public */
|
|
122
|
+
instanceId: string;
|
|
123
|
+
/** @public */
|
|
124
|
+
writeType: string;
|
|
125
|
+
/** @public */
|
|
126
|
+
dedupKey: string;
|
|
127
|
+
/** @public */
|
|
128
|
+
metadata?: unknown;
|
|
129
|
+
}
|
|
130
|
+
/** Independent business data for each evaluation. @public */
|
|
131
|
+
export interface ExtensionProcessFixture<TParams = unknown, TState = unknown> extends ProcessFixtureOptions<TParams, TState> {
|
|
132
|
+
/** @public */
|
|
133
|
+
projects?: readonly ProcessProject[];
|
|
134
|
+
/** Named product markdown available to prompts and effects. @public */
|
|
135
|
+
products?: Readonly<Record<string, string>>;
|
|
136
|
+
/** Workspace for process-owned file operations. @public */
|
|
137
|
+
workspaceRoot?: string;
|
|
138
|
+
}
|
|
139
|
+
/** Scripted result of one LLM invocation. @public */
|
|
140
|
+
export interface ExtensionTurnResponse {
|
|
141
|
+
/** @public */
|
|
142
|
+
outcome: string;
|
|
143
|
+
/** @public */
|
|
144
|
+
params?: Record<string, unknown>;
|
|
145
|
+
/** @public */
|
|
146
|
+
markdown?: string | null;
|
|
147
|
+
/** @public */
|
|
148
|
+
resultSummary?: string;
|
|
149
|
+
}
|
|
150
|
+
/** Observable effects of process-owned server behavior. @public */
|
|
151
|
+
export interface ExtensionProcessEffects<TState = unknown> {
|
|
152
|
+
/** @public */
|
|
153
|
+
transitions: {
|
|
154
|
+
/** @public */
|
|
155
|
+
turnId?: string | null;
|
|
156
|
+
/** @public */
|
|
157
|
+
lifecycleStatus?: string;
|
|
158
|
+
/** @public */
|
|
159
|
+
state?: TState;
|
|
160
|
+
/** @public */
|
|
161
|
+
trigger?: string;
|
|
162
|
+
}[];
|
|
163
|
+
/** @public */
|
|
164
|
+
inputs: {
|
|
165
|
+
/** @public */
|
|
166
|
+
source: string;
|
|
167
|
+
/** @public */
|
|
168
|
+
kind: string;
|
|
169
|
+
/** @public */
|
|
170
|
+
bodyMarkdown: string;
|
|
171
|
+
/** @public */
|
|
172
|
+
target?: unknown;
|
|
173
|
+
}[];
|
|
174
|
+
/** @public */
|
|
175
|
+
events: {
|
|
176
|
+
/** @public */
|
|
177
|
+
type: string;
|
|
178
|
+
/** @public */
|
|
179
|
+
data: unknown;
|
|
180
|
+
}[];
|
|
181
|
+
/** @public */
|
|
182
|
+
lifecycle: ProcessLifecycleEffects[];
|
|
183
|
+
}
|
|
184
|
+
/** Extension registration inputs; adapters remain owned by their extensions. @public */
|
|
185
|
+
export interface ExtensionTestHarnessOptions {
|
|
186
|
+
/** Configuration keyed by extension manifest id. @public */
|
|
187
|
+
extensionConfig?: Readonly<Record<string, unknown>>;
|
|
188
|
+
/** @public */
|
|
189
|
+
extensions?: readonly LeitwerkExtensionModule[];
|
|
190
|
+
/** @public */
|
|
191
|
+
capabilities?: readonly ExtensionTestCapability[];
|
|
192
|
+
}
|
|
193
|
+
/** Evaluate registered behavior without a database or worker. @public */
|
|
194
|
+
export declare function createExtensionTestHarness(options?: ExtensionTestHarnessOptions): Promise<{
|
|
195
|
+
/** List destinations through the registered tool capability. @public */
|
|
196
|
+
listToolDestinations(name: string, actor: Actor): Promise<{
|
|
197
|
+
/** @public */
|
|
198
|
+
readonly destinations: readonly {
|
|
199
|
+
/** @public */
|
|
200
|
+
readonly id: string;
|
|
201
|
+
/** @public */
|
|
202
|
+
readonly displayName: string;
|
|
203
|
+
/** @public */
|
|
204
|
+
readonly group?: string | undefined;
|
|
205
|
+
/** @public */
|
|
206
|
+
readonly description?: string | undefined;
|
|
207
|
+
}[];
|
|
208
|
+
/** @public */
|
|
209
|
+
readonly warnings?: readonly string[] | undefined;
|
|
210
|
+
}>;
|
|
211
|
+
/** Resolve an authorized destination snapshot. @public */
|
|
212
|
+
resolveToolDestination(name: string, destinationId: string, actor: Actor): Promise<{
|
|
213
|
+
/** @public */
|
|
214
|
+
readonly summary: {
|
|
215
|
+
/** @public */
|
|
216
|
+
readonly id: string;
|
|
217
|
+
/** @public */
|
|
218
|
+
readonly displayName: string;
|
|
219
|
+
/** @public */
|
|
220
|
+
readonly group?: string | undefined;
|
|
221
|
+
/** @public */
|
|
222
|
+
readonly description?: string | undefined;
|
|
223
|
+
};
|
|
224
|
+
/** @public */
|
|
225
|
+
readonly data: unknown;
|
|
226
|
+
/** @public */
|
|
227
|
+
readonly agentContext?: string | undefined;
|
|
228
|
+
}>;
|
|
229
|
+
/** Validate a saved destination against the provider. @public */
|
|
230
|
+
validateToolDestination(name: string, snapshot: TicketCreationDestinationSnapshot): Promise<void>;
|
|
231
|
+
/** Detached descriptions of registered tools. @public */
|
|
232
|
+
describeTools(): readonly {
|
|
233
|
+
readonly name: string;
|
|
234
|
+
readonly description: string;
|
|
235
|
+
readonly parameters: {
|
|
236
|
+
readonly [x: string]: unknown;
|
|
237
|
+
};
|
|
238
|
+
}[];
|
|
239
|
+
/** Detached receipts, including writes recorded before an invocation failed. @public */
|
|
240
|
+
writeReceipts(): readonly {
|
|
241
|
+
/** @public */
|
|
242
|
+
readonly instanceId: string;
|
|
243
|
+
/** @public */
|
|
244
|
+
readonly writeType: string;
|
|
245
|
+
/** @public */
|
|
246
|
+
readonly dedupKey: string;
|
|
247
|
+
/** @public */
|
|
248
|
+
readonly metadata?: unknown;
|
|
249
|
+
}[];
|
|
250
|
+
/** Run an integration tool registered by an extension. @public */
|
|
251
|
+
callTool: (name: string, args: Record<string, unknown>, fixture?: ExtensionToolFixture) => Promise<unknown>;
|
|
252
|
+
/** Deliver an event and await its registered handlers. @public */
|
|
253
|
+
emit(type: string, event: unknown): Promise<void>;
|
|
254
|
+
/** Run cleanup hooks once, including when another hook fails. @public */
|
|
255
|
+
close: () => Promise<void>;
|
|
256
|
+
/** Bind a definition and independent default fixtures. @public */
|
|
257
|
+
process<TParams, TState>(definition: ExtensionProcessDefinition<TParams, TState>, initial?: ExtensionProcessFixture<TParams, TState>): {
|
|
258
|
+
/** Return data descriptions without exposing registered handlers. @public */
|
|
259
|
+
describe(): TestObservation<ExtensionProcessDescription>;
|
|
260
|
+
/** Resolve a UI launcher using its own validation. @public */
|
|
261
|
+
resolveLaunch(id: string, input: Record<string, unknown>): Promise<{
|
|
262
|
+
/** @public */
|
|
263
|
+
readonly ok: false;
|
|
264
|
+
/** @public */
|
|
265
|
+
readonly errors: readonly {
|
|
266
|
+
/** @public */
|
|
267
|
+
readonly code: string;
|
|
268
|
+
/** @public */
|
|
269
|
+
readonly message: string;
|
|
270
|
+
/** @public */
|
|
271
|
+
readonly fieldId?: string | undefined;
|
|
272
|
+
}[];
|
|
273
|
+
} | {
|
|
274
|
+
/** @public */
|
|
275
|
+
readonly ok: true;
|
|
276
|
+
/** @public */
|
|
277
|
+
readonly launchConfig: {
|
|
278
|
+
/** @public */
|
|
279
|
+
readonly processId: string;
|
|
280
|
+
/** @public */
|
|
281
|
+
readonly params: TestObservation<TParams>;
|
|
282
|
+
/** @public */
|
|
283
|
+
readonly startTurnId?: (import("@leitwerk-dev/domain").TurnId | null) | undefined;
|
|
284
|
+
/** @public */
|
|
285
|
+
readonly title?: string | null | undefined;
|
|
286
|
+
/** @public */
|
|
287
|
+
readonly titleSourceFields?: readonly {
|
|
288
|
+
/** @public */
|
|
289
|
+
readonly label: string;
|
|
290
|
+
/** @public */
|
|
291
|
+
readonly value: string;
|
|
292
|
+
}[] | undefined;
|
|
293
|
+
/** @public */
|
|
294
|
+
readonly externalId?: string | null | undefined;
|
|
295
|
+
/** @public */
|
|
296
|
+
readonly externalUrl?: string | null | undefined;
|
|
297
|
+
/** @public */
|
|
298
|
+
readonly metadata?: {
|
|
299
|
+
readonly [x: string]: unknown;
|
|
300
|
+
} | null | undefined;
|
|
301
|
+
/** @internal */
|
|
302
|
+
readonly defaultModelProfileId?: string | null | undefined;
|
|
303
|
+
/** @internal */
|
|
304
|
+
readonly turnConfigs?: {
|
|
305
|
+
readonly [x: string]: {
|
|
306
|
+
/** @internal */
|
|
307
|
+
readonly modelProfileId?: string | null | undefined;
|
|
308
|
+
};
|
|
309
|
+
} | undefined;
|
|
310
|
+
/** @internal */
|
|
311
|
+
readonly skillIds?: readonly string[] | undefined;
|
|
312
|
+
/** @public */
|
|
313
|
+
readonly projects?: readonly {
|
|
314
|
+
/** @public */
|
|
315
|
+
readonly key: string;
|
|
316
|
+
/** @public */
|
|
317
|
+
readonly repoLocator: string;
|
|
318
|
+
/** @public */
|
|
319
|
+
readonly baseBranch: string;
|
|
320
|
+
/** @public */
|
|
321
|
+
readonly workBranch?: string | null | undefined;
|
|
322
|
+
/** @public */
|
|
323
|
+
readonly externalId?: string | null | undefined;
|
|
324
|
+
/** @public */
|
|
325
|
+
readonly externalUrl?: string | null | undefined;
|
|
326
|
+
/** @public */
|
|
327
|
+
readonly metadata?: {
|
|
328
|
+
readonly [x: string]: unknown;
|
|
329
|
+
} | null | undefined;
|
|
330
|
+
}[] | undefined;
|
|
331
|
+
};
|
|
332
|
+
}>;
|
|
333
|
+
/** Prepare persisted launcher input for a new launch. @public */
|
|
334
|
+
prepareRelaunch(id: string, previousInput: Record<string, unknown>): Promise<{
|
|
335
|
+
readonly [x: string]: unknown;
|
|
336
|
+
}>;
|
|
337
|
+
/** Parse source configuration and resolve a matching watcher event. @public */
|
|
338
|
+
resolveWatcherLaunch(id: string, event: unknown, config: unknown): Promise<{
|
|
339
|
+
/** @public */
|
|
340
|
+
readonly processId: string;
|
|
341
|
+
/** @public */
|
|
342
|
+
readonly params: TestObservation<TParams>;
|
|
343
|
+
/** @public */
|
|
344
|
+
readonly startTurnId?: (import("@leitwerk-dev/domain").TurnId | null) | undefined;
|
|
345
|
+
/** @public */
|
|
346
|
+
readonly title?: string | null | undefined;
|
|
347
|
+
/** @public */
|
|
348
|
+
readonly titleSourceFields?: readonly {
|
|
349
|
+
/** @public */
|
|
350
|
+
readonly label: string;
|
|
351
|
+
/** @public */
|
|
352
|
+
readonly value: string;
|
|
353
|
+
}[] | undefined;
|
|
354
|
+
/** @public */
|
|
355
|
+
readonly externalId?: string | null | undefined;
|
|
356
|
+
/** @public */
|
|
357
|
+
readonly externalUrl?: string | null | undefined;
|
|
358
|
+
/** @public */
|
|
359
|
+
readonly metadata?: {
|
|
360
|
+
readonly [x: string]: unknown;
|
|
361
|
+
} | null | undefined;
|
|
362
|
+
/** @internal */
|
|
363
|
+
readonly defaultModelProfileId?: string | null | undefined;
|
|
364
|
+
/** @internal */
|
|
365
|
+
readonly turnConfigs?: {
|
|
366
|
+
readonly [x: string]: {
|
|
367
|
+
/** @internal */
|
|
368
|
+
readonly modelProfileId?: string | null | undefined;
|
|
369
|
+
};
|
|
370
|
+
} | undefined;
|
|
371
|
+
/** @internal */
|
|
372
|
+
readonly skillIds?: readonly string[] | undefined;
|
|
373
|
+
/** @public */
|
|
374
|
+
readonly projects?: readonly {
|
|
375
|
+
/** @public */
|
|
376
|
+
readonly key: string;
|
|
377
|
+
/** @public */
|
|
378
|
+
readonly repoLocator: string;
|
|
379
|
+
/** @public */
|
|
380
|
+
readonly baseBranch: string;
|
|
381
|
+
/** @public */
|
|
382
|
+
readonly workBranch?: string | null | undefined;
|
|
383
|
+
/** @public */
|
|
384
|
+
readonly externalId?: string | null | undefined;
|
|
385
|
+
/** @public */
|
|
386
|
+
readonly externalUrl?: string | null | undefined;
|
|
387
|
+
/** @public */
|
|
388
|
+
readonly metadata?: {
|
|
389
|
+
readonly [x: string]: unknown;
|
|
390
|
+
} | null | undefined;
|
|
391
|
+
}[] | undefined;
|
|
392
|
+
} | null>;
|
|
393
|
+
/** Run preparation, prompt evaluation, and the registered worker handler. @public */
|
|
394
|
+
evaluateTurn(id: string, options?: {
|
|
395
|
+
/** @public */
|
|
396
|
+
responses?: readonly ExtensionTurnResponse[];
|
|
397
|
+
/** @public */
|
|
398
|
+
fixture?: ExtensionProcessFixture<TParams, TState>;
|
|
399
|
+
}): Promise<{
|
|
400
|
+
readonly prompts: readonly string[];
|
|
401
|
+
readonly tools: readonly {
|
|
402
|
+
readonly name: string;
|
|
403
|
+
readonly arguments: {
|
|
404
|
+
readonly [x: string]: unknown;
|
|
405
|
+
};
|
|
406
|
+
}[];
|
|
407
|
+
readonly requestedTools: readonly string[];
|
|
408
|
+
readonly progress: readonly {
|
|
409
|
+
readonly title: string;
|
|
410
|
+
readonly summary?: string | undefined;
|
|
411
|
+
readonly steps: readonly {
|
|
412
|
+
readonly id: string;
|
|
413
|
+
readonly label: string;
|
|
414
|
+
readonly status: import("@leitwerk-dev/domain").TurnProgressStepStatus;
|
|
415
|
+
readonly detail?: string | null | undefined;
|
|
416
|
+
}[];
|
|
417
|
+
readonly links?: readonly {
|
|
418
|
+
readonly id: string;
|
|
419
|
+
readonly label: string;
|
|
420
|
+
readonly url: string;
|
|
421
|
+
readonly kind?: "pull_request" | "merge_request" | "commit" | "pipeline" | "other" | undefined;
|
|
422
|
+
}[] | undefined;
|
|
423
|
+
}[];
|
|
424
|
+
readonly completed: readonly {
|
|
425
|
+
readonly outcome: string;
|
|
426
|
+
readonly params?: {
|
|
427
|
+
readonly [x: string]: unknown;
|
|
428
|
+
} | undefined;
|
|
429
|
+
readonly markdown?: string | null | undefined;
|
|
430
|
+
readonly resultSummary?: string | undefined;
|
|
431
|
+
}[];
|
|
432
|
+
readonly parked: readonly (string | undefined)[];
|
|
433
|
+
}>;
|
|
434
|
+
/** Evaluate a process action and collect its requested effects. @public */
|
|
435
|
+
evaluateAction(id: string, input?: Record<string, unknown>, fixture?: ExtensionProcessFixture<TParams, TState>): Promise<TestObservation<ExtensionProcessEffects<TState>>>;
|
|
436
|
+
/** Evaluate process-owned outcome handling against fresh business data. @public */
|
|
437
|
+
evaluateOutcome(id: string, outcome: ExtensionTurnResponse, fixture?: ExtensionProcessFixture<TParams, TState>): Promise<TestObservation<ExtensionProcessEffects<TState>>>;
|
|
438
|
+
};
|
|
439
|
+
}>;
|
|
440
|
+
//# sourceMappingURL=process.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"process.d.ts","sourceRoot":"","sources":["../src/process.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAEpE,YAAY,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAEpE,OAAO,KAAK,EACX,KAAK,EACL,cAAc,EAGd,MAAM,sBAAsB,CAAC;AAQ9B,OAAO,EAKN,KAAK,0BAA0B,EAC/B,KAAK,cAAc,EAEnB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAG5B,KAAK,iCAAiC,EAEtC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAW,KAAK,eAAe,EAAE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