@leitwerk-dev/protocol 0.2.0 → 0.3.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.
- package/dist/api-token-contracts.d.ts +20 -0
- package/dist/api-token-contracts.d.ts.map +1 -1
- package/dist/{chunk-J4VMD5ST.js → chunk-4AKWRRFS.js} +98 -4
- package/dist/chunk-4AKWRRFS.js.map +1 -0
- package/dist/{chunk-Z4IU6KEN.js → chunk-LTIDCJFK.js} +146 -1
- package/dist/chunk-LTIDCJFK.js.map +1 -0
- package/dist/{chunk-IWVU76M5.js → chunk-RUPDB3WZ.js} +1 -1
- package/dist/chunk-RUPDB3WZ.js.map +1 -0
- package/dist/compact-turn-summary.d.ts +21 -3
- package/dist/compact-turn-summary.d.ts.map +1 -1
- package/dist/config-snapshot-public.d.ts +2 -0
- package/dist/config-snapshot-public.d.ts.map +1 -0
- package/dist/config-snapshot-public.js +1 -0
- package/dist/config-snapshot.d.ts +109 -16
- package/dist/config-snapshot.d.ts.map +1 -1
- package/dist/config-snapshot.js +0 -1
- package/dist/extension-ui-contracts.d.ts +22 -0
- package/dist/extension-ui-contracts.d.ts.map +1 -1
- package/dist/external-review.d.ts +5 -1
- package/dist/external-review.d.ts.map +1 -1
- package/dist/form-contract-public.d.ts +2 -0
- package/dist/form-contract-public.d.ts.map +1 -0
- package/dist/form-contract-public.js +1 -0
- package/dist/form-contract.d.ts +29 -5
- package/dist/form-contract.d.ts.map +1 -1
- package/dist/form-contract.js +0 -1
- package/dist/{http-contracts-ht8DDU4J.d.ts → http-contracts-public-rL4HFcxz.d.ts} +971 -45
- package/dist/http-contracts-public.d.ts +4 -0
- package/dist/http-contracts-public.d.ts.map +1 -0
- package/dist/http-contracts-public.js +10 -0
- package/dist/http-contracts.d.ts +819 -12
- package/dist/http-contracts.d.ts.map +1 -1
- package/dist/http-contracts.js +2 -2
- package/dist/index.d.ts +30 -25
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +25 -75
- package/dist/index.js.map +1 -1
- package/dist/initial-prompt.d.ts +6 -0
- package/dist/initial-prompt.d.ts.map +1 -1
- package/dist/launcher-contract-public.d.ts +2 -0
- package/dist/launcher-contract-public.d.ts.map +1 -0
- package/dist/launcher-contract-public.js +1 -0
- package/dist/launcher-contract-public.js.map +1 -0
- package/dist/launcher-contract.d.ts +26 -1
- package/dist/launcher-contract.d.ts.map +1 -1
- package/dist/launcher-contract.js +0 -1
- package/dist/live-turn-projection.d.ts +29 -0
- package/dist/live-turn-projection.d.ts.map +1 -1
- package/dist/pi-session-message.d.ts +16 -0
- package/dist/pi-session-message.d.ts.map +1 -1
- package/dist/primary-path-snapshot.d.ts +64 -0
- package/dist/primary-path-snapshot.d.ts.map +1 -1
- package/dist/protocol.d.ts +387 -1
- package/dist/protocol.d.ts.map +1 -1
- package/dist/protocol.js +1 -1
- package/dist/session-entry-tree.d.ts +12 -0
- package/dist/session-entry-tree.d.ts.map +1 -1
- package/dist/streamable-events.d.ts +3 -0
- package/dist/streamable-events.d.ts.map +1 -1
- package/dist/text-preview.d.ts +5 -0
- package/dist/text-preview.d.ts.map +1 -1
- package/dist/ticket-creation-contracts.d.ts +23 -1
- package/dist/ticket-creation-contracts.d.ts.map +1 -1
- package/dist/timeline-projection.d.ts +5 -0
- package/dist/timeline-projection.d.ts.map +1 -1
- package/dist/timestamp-ordering.d.ts +2 -0
- package/dist/timestamp-ordering.d.ts.map +1 -1
- package/dist/tool-renderer-contract-public.d.ts +3 -0
- package/dist/tool-renderer-contract-public.d.ts.map +1 -0
- package/dist/tool-renderer-contract-public.js +9 -0
- package/dist/tool-renderer-contract-public.js.map +1 -0
- package/dist/tool-renderer-contract.d.ts +15 -0
- package/dist/tool-renderer-contract.d.ts.map +1 -1
- package/dist/tool-renderer-contract.js +1 -1
- package/dist/tool-result-truncation.d.ts +4 -0
- package/dist/tool-result-truncation.d.ts.map +1 -1
- package/dist/turn-continuation.d.ts +28 -0
- package/dist/turn-continuation.d.ts.map +1 -1
- package/dist/turn-trace-projection.d.ts +1 -1
- package/dist/turn-trace-projection.d.ts.map +1 -1
- package/dist/usage-by-turn-record.d.ts +2 -0
- package/dist/usage-by-turn-record.d.ts.map +1 -1
- package/dist/usage-snapshot.d.ts +20 -3
- package/dist/usage-snapshot.d.ts.map +1 -1
- package/dist/ws-event-payloads.d.ts +14 -0
- package/dist/ws-event-payloads.d.ts.map +1 -1
- package/package.json +17 -17
- package/src/api-token-contracts.ts +20 -0
- package/src/compact-turn-summary.ts +26 -4
- package/src/config-snapshot-public.ts +12 -0
- package/src/config-snapshot.ts +109 -16
- package/src/extension-ui-contracts.ts +22 -0
- package/src/external-review.ts +5 -1
- package/src/form-contract-public.ts +6 -0
- package/src/form-contract.ts +29 -5
- package/src/http-contracts-public.ts +86 -0
- package/src/http-contracts.ts +926 -40
- package/src/index.ts +184 -25
- package/src/initial-prompt.ts +6 -0
- package/src/launcher-contract-public.ts +8 -0
- package/src/launcher-contract.ts +26 -1
- package/src/live-turn-projection.ts +29 -0
- package/src/pi-session-message.ts +21 -3
- package/src/primary-path-snapshot.ts +64 -0
- package/src/protocol.ts +412 -17
- package/src/session-entry-tree.ts +12 -0
- package/src/streamable-events.ts +3 -0
- package/src/text-preview.ts +5 -0
- package/src/ticket-creation-contracts.ts +31 -3
- package/src/timeline-projection.ts +5 -0
- package/src/timestamp-ordering.ts +2 -0
- package/src/tool-renderer-contract-public.ts +10 -0
- package/src/tool-renderer-contract.ts +15 -0
- package/src/tool-result-truncation.ts +4 -0
- package/src/turn-continuation.ts +28 -0
- package/src/turn-trace-projection.ts +1 -1
- package/src/usage-by-turn-record.ts +2 -0
- package/src/usage-snapshot.ts +20 -3
- package/src/ws-event-payloads.ts +14 -0
- package/dist/chunk-6L4W7WPV.js +0 -1
- package/dist/chunk-AAV3AAOF.js +0 -1
- package/dist/chunk-IEMT3JG4.js +0 -1
- package/dist/chunk-IWVU76M5.js.map +0 -1
- package/dist/chunk-J4VMD5ST.js.map +0 -1
- package/dist/chunk-Z4IU6KEN.js.map +0 -1
- /package/dist/{chunk-6L4W7WPV.js.map → config-snapshot-public.js.map} +0 -0
- /package/dist/{chunk-AAV3AAOF.js.map → form-contract-public.js.map} +0 -0
- /package/dist/{chunk-IEMT3JG4.js.map → http-contracts-public.js.map} +0 -0
package/dist/http-contracts.d.ts
CHANGED
|
@@ -7,1002 +7,1809 @@ import type { PrimaryPathSnapshot, PrimaryPathStreamingAssistantSnapshot, Primar
|
|
|
7
7
|
import { type ParseResult } from "./protocol.js";
|
|
8
8
|
import type { ToolCallRendererDefinition } from "./tool-renderer-contract.js";
|
|
9
9
|
import type { UsageCostSnapshot, UsageTokenCounts } from "./usage-snapshot.js";
|
|
10
|
+
/** @internal */
|
|
10
11
|
export interface StartLaunchRunResponseBody {
|
|
12
|
+
/** @internal */
|
|
11
13
|
launchRunId: string;
|
|
14
|
+
/** @internal */
|
|
12
15
|
instanceId: string | null;
|
|
13
16
|
}
|
|
17
|
+
/** @internal */
|
|
14
18
|
export interface LaunchRunResponseBody {
|
|
19
|
+
/** @internal */
|
|
15
20
|
launchRun: LaunchRun;
|
|
16
21
|
}
|
|
22
|
+
/** @internal */
|
|
17
23
|
export interface ProcessLaunchRunsResponseBody {
|
|
24
|
+
/** @internal */
|
|
18
25
|
launchRuns: LaunchRun[];
|
|
19
26
|
}
|
|
27
|
+
/** @internal */
|
|
20
28
|
export interface AuthMeResponseBody {
|
|
29
|
+
/** @internal */
|
|
21
30
|
authEnabled: boolean;
|
|
31
|
+
/** @internal */
|
|
22
32
|
actor: Actor | null;
|
|
23
33
|
}
|
|
34
|
+
/** @internal */
|
|
24
35
|
export interface SessionTransferOperationView {
|
|
36
|
+
/** @internal */
|
|
25
37
|
attemptId: string;
|
|
38
|
+
/** @internal */
|
|
26
39
|
phase: string;
|
|
40
|
+
/** @internal */
|
|
27
41
|
blocksManualTurns: boolean;
|
|
28
42
|
}
|
|
43
|
+
/** @internal */
|
|
29
44
|
export interface ProcessListItem {
|
|
45
|
+
/** @internal */
|
|
30
46
|
process: ProcessInstance;
|
|
47
|
+
/** @internal */
|
|
31
48
|
projects: ProcessProject[];
|
|
49
|
+
/** @internal */
|
|
32
50
|
workerLease: WorkerLease | null;
|
|
51
|
+
/** @internal */
|
|
33
52
|
processDisplayName: string | null;
|
|
34
53
|
}
|
|
54
|
+
/** @internal */
|
|
35
55
|
export type ScheduleMode = "now" | "once" | "cron";
|
|
56
|
+
/** @internal */
|
|
36
57
|
export type ScheduleConfigInput = {
|
|
58
|
+
/** @internal */
|
|
37
59
|
mode: ScheduleMode;
|
|
60
|
+
/** @internal */
|
|
38
61
|
runAt?: string | null;
|
|
62
|
+
/** @internal */
|
|
39
63
|
cronExpression?: string | null;
|
|
40
64
|
};
|
|
65
|
+
/** @internal */
|
|
41
66
|
export interface FutureExecutionBaseSummary {
|
|
67
|
+
/** @internal */
|
|
42
68
|
id: string;
|
|
69
|
+
/** @internal */
|
|
43
70
|
kind: "launch" | "action";
|
|
71
|
+
/** @internal */
|
|
44
72
|
scheduleKind: "once" | "cron";
|
|
73
|
+
/** @internal */
|
|
45
74
|
processId: string;
|
|
75
|
+
/** @internal */
|
|
46
76
|
nextRunAt: string;
|
|
77
|
+
/** @internal */
|
|
47
78
|
cronExpression: string | null;
|
|
79
|
+
/** @internal */
|
|
48
80
|
title: string;
|
|
81
|
+
/** @internal */
|
|
49
82
|
subtitle: string;
|
|
83
|
+
/** @internal */
|
|
50
84
|
status?: "scheduled" | "blocked";
|
|
85
|
+
/** @internal */
|
|
51
86
|
modelSelection?: DurableModelSelection | null;
|
|
87
|
+
/** @internal */
|
|
52
88
|
blockedReason?: FutureExecutionBlockReason | null;
|
|
53
89
|
}
|
|
90
|
+
/** @internal */
|
|
54
91
|
export type LauncherModelConfigDefaults = LaunchModelConfigInput;
|
|
92
|
+
/** @internal */
|
|
55
93
|
export interface FutureLaunchSummary extends FutureExecutionBaseSummary {
|
|
94
|
+
/** @internal */
|
|
56
95
|
kind: "launch";
|
|
96
|
+
/** @internal */
|
|
57
97
|
launcherId: string;
|
|
98
|
+
/** @internal */
|
|
58
99
|
launcherLabel: string;
|
|
100
|
+
/** @internal */
|
|
59
101
|
launchTitle: string | null;
|
|
102
|
+
/** @internal */
|
|
60
103
|
launcherInput: Record<string, unknown>;
|
|
104
|
+
/** @internal */
|
|
61
105
|
skillIds: string[];
|
|
106
|
+
/** @internal */
|
|
62
107
|
modelConfig: LauncherModelConfigDefaults;
|
|
63
108
|
}
|
|
109
|
+
/** @internal */
|
|
64
110
|
export interface FutureActionSummary extends FutureExecutionBaseSummary {
|
|
111
|
+
/** @internal */
|
|
65
112
|
kind: "action";
|
|
113
|
+
/** @internal */
|
|
66
114
|
instanceId: string;
|
|
115
|
+
/** @internal */
|
|
67
116
|
actionId: string;
|
|
117
|
+
/** @internal */
|
|
68
118
|
actionLabel: string;
|
|
119
|
+
/** @internal */
|
|
69
120
|
nextTurnModelProfileId: string | null;
|
|
70
121
|
}
|
|
122
|
+
/** @internal */
|
|
71
123
|
export type FutureExecutionSummary = FutureLaunchSummary | FutureActionSummary;
|
|
124
|
+
/** @internal */
|
|
72
125
|
export type ProcessActionFieldDefinition = ActionFormFieldDefinition;
|
|
126
|
+
/** @internal */
|
|
73
127
|
export type ProcessActionFormDefinition = ActionFormDefinition;
|
|
128
|
+
/** @internal */
|
|
74
129
|
export type ProcessActionPreviewSummary = {
|
|
130
|
+
/** @internal */
|
|
75
131
|
kind: "turn" | "terminal";
|
|
132
|
+
/** @internal */
|
|
76
133
|
turnId: string | null;
|
|
134
|
+
/** @internal */
|
|
77
135
|
turnKind: ProcessTurnType | null;
|
|
136
|
+
/** @internal */
|
|
78
137
|
description: string;
|
|
79
138
|
};
|
|
139
|
+
/** @internal */
|
|
80
140
|
export interface ProcessActionSummary {
|
|
141
|
+
/** @internal */
|
|
81
142
|
id: string;
|
|
143
|
+
/** @internal */
|
|
82
144
|
label: string;
|
|
145
|
+
/** @internal */
|
|
83
146
|
description: string | null;
|
|
147
|
+
/** @internal */
|
|
84
148
|
preview: ProcessActionPreviewSummary | null;
|
|
149
|
+
/** @internal */
|
|
85
150
|
supportsScheduling: boolean;
|
|
151
|
+
/** @internal */
|
|
86
152
|
supportsNextTurnModelOverride: boolean;
|
|
153
|
+
/** @internal */
|
|
87
154
|
form?: ProcessActionFormDefinition;
|
|
88
155
|
}
|
|
156
|
+
/** @internal */
|
|
89
157
|
export interface ScheduledActionDetail {
|
|
158
|
+
/** @internal */
|
|
90
159
|
id: string;
|
|
160
|
+
/** @internal */
|
|
91
161
|
nextRunAt: string;
|
|
162
|
+
/** @internal */
|
|
92
163
|
actionId: string;
|
|
164
|
+
/** @internal */
|
|
93
165
|
actionLabel: string;
|
|
166
|
+
/** @internal */
|
|
94
167
|
input: Record<string, unknown>;
|
|
168
|
+
/** @internal */
|
|
95
169
|
nextTurnModelProfileId: string | null;
|
|
170
|
+
/** @internal */
|
|
96
171
|
status?: "scheduled" | "blocked";
|
|
172
|
+
/** @internal */
|
|
97
173
|
modelSelection?: DurableModelSelection | null;
|
|
174
|
+
/** @internal */
|
|
98
175
|
blockedReason?: FutureExecutionBlockReason | null;
|
|
176
|
+
/** @internal */
|
|
99
177
|
action: ProcessActionSummary;
|
|
100
178
|
}
|
|
179
|
+
/** @internal */
|
|
101
180
|
export type ProcessActionModelResolutionSource = ProcessSelectedTurnModelSource | "persisted_selection" | "none";
|
|
181
|
+
/** @internal */
|
|
102
182
|
export interface ProcessActionModelResolutionPreview {
|
|
183
|
+
/** @internal */
|
|
103
184
|
status: "resolved" | "none" | "error";
|
|
185
|
+
/** @internal */
|
|
104
186
|
modelProfileId: string | null;
|
|
187
|
+
/** @internal */
|
|
105
188
|
source: ProcessActionModelResolutionSource | null;
|
|
189
|
+
/** @internal */
|
|
106
190
|
error: string | null;
|
|
107
191
|
}
|
|
192
|
+
/** @internal */
|
|
108
193
|
export interface ProcessActionWarmPromptCacheContext {
|
|
194
|
+
/** @internal */
|
|
109
195
|
previousModelProfileId: string;
|
|
196
|
+
/** @internal */
|
|
110
197
|
compatibleModelProfileIds: readonly string[];
|
|
198
|
+
/** @internal */
|
|
111
199
|
expiresAt: string;
|
|
112
200
|
}
|
|
201
|
+
/** @internal */
|
|
113
202
|
export interface PromptCacheSwitchResolution {
|
|
203
|
+
/** @internal */
|
|
114
204
|
switchingModelMayBypassPromptCache: boolean;
|
|
205
|
+
/** @internal */
|
|
115
206
|
recommendedModelProfileId: string | null;
|
|
116
207
|
}
|
|
208
|
+
/** @internal */
|
|
117
209
|
export declare function resolvePromptCacheSwitch(input: {
|
|
210
|
+
/** @internal */
|
|
118
211
|
context: ProcessActionWarmPromptCacheContext | null | undefined;
|
|
212
|
+
/** @internal */
|
|
119
213
|
effectiveModelProfileId: string;
|
|
214
|
+
/** @internal */
|
|
120
215
|
selectableModelProfileIds?: readonly string[];
|
|
216
|
+
/** @internal */
|
|
121
217
|
now?: number;
|
|
122
218
|
}): PromptCacheSwitchResolution;
|
|
219
|
+
/** @internal */
|
|
123
220
|
export interface ProcessActionModelPreview {
|
|
221
|
+
/** @internal */
|
|
124
222
|
kind: "llm_turn" | "not_applicable" | "unavailable";
|
|
223
|
+
/** @internal */
|
|
125
224
|
turnId: string | null;
|
|
225
|
+
/** @internal */
|
|
126
226
|
description: string | null;
|
|
227
|
+
/** @internal */
|
|
127
228
|
resolvedModel?: ProcessActionModelResolutionPreview;
|
|
229
|
+
/** @internal */
|
|
128
230
|
warmPromptCache?: ProcessActionWarmPromptCacheContext;
|
|
231
|
+
/** @internal */
|
|
129
232
|
unavailableReason?: "action_not_found" | "action_not_visible" | "invalid_action_input" | "action_failed";
|
|
233
|
+
/** @internal */
|
|
130
234
|
unavailableMessage?: string | null;
|
|
131
235
|
}
|
|
236
|
+
/** @internal */
|
|
132
237
|
export type ProcessExternalSourceSummary = {
|
|
238
|
+
/** @internal */
|
|
133
239
|
id: string;
|
|
240
|
+
/** @internal */
|
|
134
241
|
kind: string;
|
|
242
|
+
/** @internal */
|
|
135
243
|
externalActionId?: string;
|
|
244
|
+
/** @internal */
|
|
136
245
|
sourceKind?: string;
|
|
246
|
+
/** @internal */
|
|
137
247
|
label: string | null;
|
|
248
|
+
/** @internal */
|
|
138
249
|
description: string | null;
|
|
139
250
|
};
|
|
251
|
+
/** @internal */
|
|
140
252
|
export type ProcessExternalTriggerSummary = ProcessExternalSourceSummary;
|
|
253
|
+
/** @internal */
|
|
141
254
|
export interface ProcessSelectedTurnSummary {
|
|
255
|
+
/** @internal */
|
|
142
256
|
turnId: string;
|
|
257
|
+
/** @internal */
|
|
143
258
|
kind: ProcessTurnType;
|
|
259
|
+
/** @internal */
|
|
144
260
|
description: string;
|
|
261
|
+
/** @internal */
|
|
145
262
|
commentary: string | null;
|
|
263
|
+
/** @internal */
|
|
146
264
|
externalTriggers: ProcessExternalSourceSummary[];
|
|
147
265
|
}
|
|
266
|
+
/** @internal */
|
|
148
267
|
export type ModelProfileAvailability = "available" | "unavailable" | "stale";
|
|
268
|
+
/** @internal */
|
|
149
269
|
export type ModelProfileOptionSummary = {
|
|
270
|
+
/** @internal */
|
|
150
271
|
id: string;
|
|
272
|
+
/** @internal */
|
|
151
273
|
label: string;
|
|
274
|
+
/** @internal */
|
|
152
275
|
description: string;
|
|
276
|
+
/** @internal */
|
|
153
277
|
availability: ModelProfileAvailability;
|
|
278
|
+
/** @internal */
|
|
154
279
|
safeReason?: string | null;
|
|
280
|
+
/** @internal */
|
|
155
281
|
checkedAt?: string | null;
|
|
156
282
|
};
|
|
283
|
+
/** @internal */
|
|
157
284
|
export interface ProviderOptionChoiceSummary {
|
|
285
|
+
/** @internal */
|
|
158
286
|
value: string;
|
|
287
|
+
/** @internal */
|
|
159
288
|
label: string;
|
|
160
289
|
}
|
|
290
|
+
/** @internal */
|
|
161
291
|
export interface ProviderOptionFieldSummary {
|
|
292
|
+
/** @internal */
|
|
162
293
|
id: string;
|
|
294
|
+
/** @internal */
|
|
163
295
|
label: string;
|
|
296
|
+
/** @internal */
|
|
164
297
|
required: boolean;
|
|
298
|
+
/** @internal */
|
|
165
299
|
minLength: number | null;
|
|
300
|
+
/** @internal */
|
|
166
301
|
maxLength: number | null;
|
|
302
|
+
/** @internal */
|
|
167
303
|
defaultValue: string | null;
|
|
168
|
-
/** Advisory values. Values outside this list can still be valid. */
|
|
304
|
+
/** Advisory values. Values outside this list can still be valid. @internal */
|
|
169
305
|
choices: readonly ProviderOptionChoiceSummary[];
|
|
170
306
|
}
|
|
307
|
+
/** @internal */
|
|
171
308
|
export interface ModelProviderOptionsResponseBody {
|
|
309
|
+
/** @internal */
|
|
172
310
|
modelProfileId: string;
|
|
311
|
+
/** @internal */
|
|
173
312
|
providerId: string;
|
|
313
|
+
/** @internal */
|
|
174
314
|
fields: readonly ProviderOptionFieldSummary[];
|
|
315
|
+
/** @internal */
|
|
175
316
|
choicesStatus: "available" | "unavailable";
|
|
317
|
+
/** @internal */
|
|
176
318
|
choicesUnavailableReason: string | null;
|
|
177
319
|
}
|
|
320
|
+
/** @internal */
|
|
178
321
|
export interface ProcessTurnModelConfigurationView {
|
|
322
|
+
/** @internal */
|
|
179
323
|
turnId: string;
|
|
324
|
+
/** @internal */
|
|
180
325
|
description: string;
|
|
326
|
+
/** @internal */
|
|
181
327
|
pathType: string;
|
|
328
|
+
/** @internal */
|
|
182
329
|
processConfigModelProfileId: string | null;
|
|
330
|
+
/** @internal */
|
|
183
331
|
instanceModelProfileId: string | null;
|
|
332
|
+
/** @internal */
|
|
184
333
|
effectiveConfiguredModelProfileId: string | null;
|
|
334
|
+
/** @internal */
|
|
185
335
|
source: "instance" | "process_config" | "default";
|
|
186
336
|
}
|
|
337
|
+
/** @internal */
|
|
187
338
|
export type ProcessModelConfigurationIssueView = {
|
|
339
|
+
/** @internal */
|
|
188
340
|
code: "invalid_turn_configs_json";
|
|
341
|
+
/** @internal */
|
|
189
342
|
reason: "invalid_json" | "not_object" | "turn_config_not_object";
|
|
343
|
+
/** @internal */
|
|
190
344
|
turnId?: string;
|
|
191
345
|
};
|
|
346
|
+
/** @internal */
|
|
192
347
|
export interface ProcessModelConfigurationView {
|
|
348
|
+
/** @internal */
|
|
193
349
|
state: {
|
|
350
|
+
/** @internal */
|
|
194
351
|
kind: "ready";
|
|
195
352
|
} | {
|
|
353
|
+
/** @internal */
|
|
196
354
|
kind: "blocked";
|
|
355
|
+
/** @internal */
|
|
197
356
|
issues: readonly ProcessModelConfigurationIssueView[];
|
|
198
357
|
};
|
|
358
|
+
/** @internal */
|
|
199
359
|
availableProfiles: readonly ModelProfileOptionSummary[];
|
|
360
|
+
/** @internal */
|
|
200
361
|
effectiveSelectedTurn: {
|
|
362
|
+
/** @internal */
|
|
201
363
|
turnId: string;
|
|
364
|
+
/** @internal */
|
|
202
365
|
description: string;
|
|
366
|
+
/** @internal */
|
|
203
367
|
modelProfileId: string;
|
|
368
|
+
/** @internal */
|
|
204
369
|
source: ProcessActionModelResolutionSource;
|
|
205
370
|
} | null;
|
|
371
|
+
/** @internal */
|
|
206
372
|
defaultModel: {
|
|
373
|
+
/** @internal */
|
|
207
374
|
processConfigModelProfileId: string | null;
|
|
375
|
+
/** @internal */
|
|
208
376
|
instanceModelProfileId: string | null;
|
|
377
|
+
/** @internal */
|
|
209
378
|
effectiveModelProfileId: string | null;
|
|
379
|
+
/** @internal */
|
|
210
380
|
source: "instance" | "process_config" | "catalog_default" | "none";
|
|
211
381
|
};
|
|
382
|
+
/** @internal */
|
|
212
383
|
turns: readonly ProcessTurnModelConfigurationView[];
|
|
213
384
|
}
|
|
385
|
+
/** @internal */
|
|
214
386
|
export type ProcessRunToolParameterView = {
|
|
387
|
+
/** @internal */
|
|
215
388
|
name: string;
|
|
389
|
+
/** @internal */
|
|
216
390
|
type: string;
|
|
391
|
+
/** @internal */
|
|
217
392
|
description: string;
|
|
393
|
+
/** @internal */
|
|
218
394
|
required: boolean;
|
|
219
395
|
};
|
|
396
|
+
/** @internal */
|
|
220
397
|
export type ProcessRunToolView = {
|
|
398
|
+
/** @internal */
|
|
221
399
|
name: string;
|
|
400
|
+
/** @internal */
|
|
222
401
|
description: string;
|
|
402
|
+
/** @internal */
|
|
223
403
|
parameters: readonly ProcessRunToolParameterView[];
|
|
224
404
|
};
|
|
405
|
+
/** @internal */
|
|
225
406
|
export type ProcessRunTurnView = {
|
|
407
|
+
/** @internal */
|
|
226
408
|
turnId: string;
|
|
409
|
+
/** @internal */
|
|
227
410
|
description: string;
|
|
411
|
+
/** @internal */
|
|
228
412
|
pathType: string;
|
|
413
|
+
/** @internal */
|
|
229
414
|
consumedProducts: readonly string[];
|
|
415
|
+
/** @internal */
|
|
230
416
|
publishedProducts: readonly string[];
|
|
417
|
+
/** @internal */
|
|
231
418
|
activePiToolNames: readonly string[];
|
|
419
|
+
/** @internal */
|
|
232
420
|
outcomeActions: readonly ProcessRunToolView[];
|
|
233
421
|
};
|
|
422
|
+
/** @internal */
|
|
234
423
|
export type ProcessRunDetailsView = {
|
|
424
|
+
/** @internal */
|
|
235
425
|
systemPrompt: string | null;
|
|
426
|
+
/** @internal */
|
|
236
427
|
appendSystemPrompt: string | null;
|
|
428
|
+
/** @internal */
|
|
237
429
|
availablePiToolNames: readonly string[];
|
|
430
|
+
/** @internal */
|
|
238
431
|
turns: readonly ProcessRunTurnView[];
|
|
239
432
|
};
|
|
433
|
+
/** @internal */
|
|
240
434
|
export interface ProcessLaunchConfigurationParameterView {
|
|
435
|
+
/** @internal */
|
|
241
436
|
fieldId: string;
|
|
437
|
+
/** @internal */
|
|
242
438
|
label: string;
|
|
439
|
+
/** @internal */
|
|
243
440
|
value: string | null;
|
|
244
441
|
}
|
|
442
|
+
/** @internal */
|
|
245
443
|
export interface ProcessLaunchConfigurationProjectView {
|
|
444
|
+
/** @internal */
|
|
246
445
|
key: string;
|
|
446
|
+
/** @internal */
|
|
247
447
|
repoLocator: string;
|
|
448
|
+
/** @internal */
|
|
248
449
|
repoLocatorKind: ProcessProject["repoLocatorKind"];
|
|
450
|
+
/** @internal */
|
|
249
451
|
baseBranch: string;
|
|
452
|
+
/** @internal */
|
|
250
453
|
workBranch: string | null;
|
|
454
|
+
/** @internal */
|
|
251
455
|
externalId: string | null;
|
|
456
|
+
/** @internal */
|
|
252
457
|
externalUrl: string | null;
|
|
458
|
+
/** @internal */
|
|
253
459
|
pipelineStatus: string | null;
|
|
254
460
|
}
|
|
461
|
+
/** @internal */
|
|
255
462
|
export interface ProcessLaunchConfigurationView {
|
|
463
|
+
/** @internal */
|
|
256
464
|
launcherId: string | null;
|
|
465
|
+
/** @internal */
|
|
257
466
|
launcherLabel: string | null;
|
|
467
|
+
/** @internal */
|
|
258
468
|
launcherSchemaTitle: string | null;
|
|
469
|
+
/** @internal */
|
|
259
470
|
paramsParseError: string | null;
|
|
471
|
+
/** @internal */
|
|
260
472
|
parameters: readonly ProcessLaunchConfigurationParameterView[];
|
|
473
|
+
/** @internal */
|
|
261
474
|
projects: readonly ProcessLaunchConfigurationProjectView[];
|
|
262
475
|
}
|
|
476
|
+
/** @internal */
|
|
263
477
|
export interface PiSessionUsageSnapshot extends UsageTokenCounts {
|
|
478
|
+
/** @internal */
|
|
264
479
|
cost?: UsageCostSnapshot;
|
|
265
480
|
}
|
|
481
|
+
/** @internal */
|
|
266
482
|
export type PiSessionTextContentBlock = {
|
|
483
|
+
/** @internal */
|
|
267
484
|
type: "text";
|
|
485
|
+
/** @internal */
|
|
268
486
|
text: string;
|
|
269
487
|
};
|
|
488
|
+
/** @internal */
|
|
270
489
|
export type PiSessionThinkingContentBlock = {
|
|
490
|
+
/** @internal */
|
|
271
491
|
type: "thinking";
|
|
492
|
+
/** @internal */
|
|
272
493
|
thinking: string;
|
|
494
|
+
/** @internal */
|
|
273
495
|
redacted?: boolean;
|
|
274
496
|
};
|
|
497
|
+
/** @internal */
|
|
275
498
|
export type PiSessionToolCallContentBlock = {
|
|
499
|
+
/** @internal */
|
|
276
500
|
type: "toolCall";
|
|
501
|
+
/** @internal */
|
|
277
502
|
id: string;
|
|
503
|
+
/** @internal */
|
|
278
504
|
name: string;
|
|
505
|
+
/** @internal */
|
|
279
506
|
arguments: Record<string, unknown>;
|
|
280
507
|
};
|
|
508
|
+
/** @internal */
|
|
281
509
|
export type PiSessionImageContentBlock = {
|
|
510
|
+
/** @internal */
|
|
282
511
|
type: "image";
|
|
512
|
+
/** @internal */
|
|
283
513
|
data: string;
|
|
514
|
+
/** @internal */
|
|
284
515
|
mimeType: string;
|
|
285
516
|
};
|
|
517
|
+
/** @internal */
|
|
286
518
|
export type PiSessionContentBlock = PiSessionTextContentBlock | PiSessionThinkingContentBlock | PiSessionToolCallContentBlock | PiSessionImageContentBlock;
|
|
519
|
+
/** @internal */
|
|
287
520
|
export interface PiSessionMessageRecord {
|
|
521
|
+
/** @internal */
|
|
288
522
|
role?: string;
|
|
523
|
+
/** @internal */
|
|
289
524
|
content?: string | PiSessionContentBlock[];
|
|
525
|
+
/** @internal */
|
|
290
526
|
toolCallId?: string;
|
|
527
|
+
/** @internal */
|
|
291
528
|
toolName?: string;
|
|
529
|
+
/** @internal */
|
|
292
530
|
details?: unknown;
|
|
531
|
+
/** @internal */
|
|
293
532
|
isError?: boolean;
|
|
533
|
+
/** @internal */
|
|
294
534
|
usage?: PiSessionUsageSnapshot;
|
|
535
|
+
/** @internal */
|
|
295
536
|
stopReason?: string;
|
|
537
|
+
/** @internal */
|
|
296
538
|
errorMessage?: string;
|
|
539
|
+
/** @internal */
|
|
297
540
|
provider?: string;
|
|
541
|
+
/** @internal */
|
|
298
542
|
model?: string;
|
|
543
|
+
/** @internal */
|
|
299
544
|
timestamp?: number;
|
|
300
545
|
}
|
|
546
|
+
/** @internal */
|
|
301
547
|
export interface PiSessionEntry {
|
|
548
|
+
/** @internal */
|
|
302
549
|
type: string;
|
|
550
|
+
/** @internal */
|
|
303
551
|
id: string;
|
|
552
|
+
/** @internal */
|
|
304
553
|
parentId: string | null;
|
|
554
|
+
/** @internal */
|
|
305
555
|
timestamp: string;
|
|
556
|
+
/** @internal */
|
|
306
557
|
message?: PiSessionMessageRecord;
|
|
558
|
+
/** @internal */
|
|
307
559
|
targetId?: string;
|
|
560
|
+
/** @internal */
|
|
308
561
|
label?: string;
|
|
309
562
|
}
|
|
563
|
+
/** @internal */
|
|
310
564
|
export interface ProcessDiagnosticsData {
|
|
565
|
+
/** @internal */
|
|
311
566
|
process: ProcessInstance;
|
|
567
|
+
/** @internal */
|
|
312
568
|
projects: ProcessProject[];
|
|
569
|
+
/** @internal */
|
|
313
570
|
inputs: ProcessInput[];
|
|
571
|
+
/** @internal */
|
|
314
572
|
events: ProcessEvent[];
|
|
573
|
+
/** @internal */
|
|
315
574
|
leafOutcomeSnapshots: ProcessLeafOutcomeSnapshot[];
|
|
575
|
+
/** @internal */
|
|
316
576
|
turnRecords: ProcessTurnRecord[];
|
|
577
|
+
/** @internal */
|
|
317
578
|
turnAnnotations: ProcessTurnAnnotation[];
|
|
579
|
+
/** @internal */
|
|
318
580
|
workerLease: WorkerLease | null;
|
|
581
|
+
/** @internal */
|
|
319
582
|
processDisplayName: string | null;
|
|
583
|
+
/** @internal */
|
|
320
584
|
processGraph: SerializedProcessGraph;
|
|
585
|
+
/** @internal */
|
|
321
586
|
processFlow: ProcessFlowView;
|
|
587
|
+
/** @internal */
|
|
322
588
|
piSessionEntries: PiSessionEntry[];
|
|
589
|
+
/** @internal */
|
|
323
590
|
definesLeafOutcome: boolean;
|
|
591
|
+
/** @internal */
|
|
324
592
|
selectedTurn?: ProcessSelectedTurnSummary | null;
|
|
593
|
+
/** @internal */
|
|
325
594
|
scheduledAction?: ScheduledActionDetail | null;
|
|
595
|
+
/** @internal */
|
|
326
596
|
modelConfiguration: ProcessModelConfigurationView;
|
|
597
|
+
/** @internal */
|
|
327
598
|
runDetails: ProcessRunDetailsView;
|
|
599
|
+
/** @internal */
|
|
328
600
|
launchConfiguration: ProcessLaunchConfigurationView;
|
|
601
|
+
/** @internal */
|
|
329
602
|
actions: ProcessActionSummary[];
|
|
603
|
+
/** @internal */
|
|
330
604
|
toolRenderers: ToolCallRendererDefinition[];
|
|
331
605
|
}
|
|
606
|
+
/** @internal */
|
|
332
607
|
export interface ProcessDetailData extends ProcessDiagnosticsData {
|
|
608
|
+
/** @internal */
|
|
333
609
|
primaryPath: PrimaryPathSnapshot;
|
|
334
610
|
}
|
|
611
|
+
/** @internal */
|
|
335
612
|
export interface LauncherModelConfigSchema {
|
|
613
|
+
/** @internal */
|
|
336
614
|
availableProfiles: readonly ModelProfileOptionSummary[];
|
|
615
|
+
/** @internal */
|
|
337
616
|
llmTurns: ReadonlyArray<{
|
|
617
|
+
/** @internal */
|
|
338
618
|
turnId: string;
|
|
619
|
+
/** @internal */
|
|
339
620
|
description: string;
|
|
340
621
|
}>;
|
|
341
622
|
}
|
|
623
|
+
/** @internal */
|
|
342
624
|
export type LauncherDefaultModelPreview = {
|
|
625
|
+
/** @internal */
|
|
343
626
|
source: "instance_default" | "process_config_default" | "catalog_default" | "none";
|
|
627
|
+
/** @internal */
|
|
344
628
|
profile: ModelProfileOptionSummary | null;
|
|
345
629
|
};
|
|
630
|
+
/** @internal */
|
|
346
631
|
export interface LauncherTurnModelConfigPreview {
|
|
632
|
+
/** @internal */
|
|
347
633
|
turnId: string;
|
|
634
|
+
/** @internal */
|
|
348
635
|
description: string;
|
|
636
|
+
/** @internal */
|
|
349
637
|
effective: {
|
|
638
|
+
/** @internal */
|
|
350
639
|
source: ProcessActionModelResolutionSource;
|
|
640
|
+
/** @internal */
|
|
351
641
|
profile: ModelProfileOptionSummary | null;
|
|
352
642
|
};
|
|
353
643
|
}
|
|
644
|
+
/** @internal */
|
|
354
645
|
export type LauncherModelConfigPreview = {
|
|
646
|
+
/** @internal */
|
|
355
647
|
defaultModel: LauncherDefaultModelPreview;
|
|
648
|
+
/** @internal */
|
|
356
649
|
turns: readonly LauncherTurnModelConfigPreview[];
|
|
357
650
|
};
|
|
651
|
+
/** @internal */
|
|
358
652
|
export type UiLauncherSummary = UiLauncherSummaryBase & {
|
|
653
|
+
/** @internal */
|
|
359
654
|
modelConfigSchema?: LauncherModelConfigSchema;
|
|
655
|
+
/** @internal */
|
|
360
656
|
processFlow?: ProcessFlowView;
|
|
361
657
|
};
|
|
658
|
+
/** @internal */
|
|
362
659
|
export type ProcessRetryConfig = {
|
|
660
|
+
/** @internal */
|
|
363
661
|
launcherId: string;
|
|
662
|
+
/** @internal */
|
|
364
663
|
title: string | null;
|
|
664
|
+
/** @internal */
|
|
365
665
|
launcherInput: Record<string, unknown>;
|
|
666
|
+
/** @internal */
|
|
366
667
|
skillIds: string[];
|
|
668
|
+
/** @internal */
|
|
367
669
|
modelConfig: LauncherModelConfigDefaults;
|
|
368
670
|
};
|
|
671
|
+
/** @internal */
|
|
369
672
|
export type WatcherLaunchModelSummary = {
|
|
673
|
+
/** @internal */
|
|
370
674
|
defaultModelProfileId: string | null;
|
|
675
|
+
/** @internal */
|
|
371
676
|
turnConfigs: Array<{
|
|
677
|
+
/** @internal */
|
|
372
678
|
turnId: string;
|
|
679
|
+
/** @internal */
|
|
373
680
|
modelProfileId: string | null;
|
|
374
681
|
}>;
|
|
375
682
|
};
|
|
683
|
+
/** @public */
|
|
376
684
|
export interface WatcherPresentationField {
|
|
685
|
+
/** @public */
|
|
377
686
|
label: string;
|
|
687
|
+
/** @public */
|
|
378
688
|
value: string;
|
|
689
|
+
/** @internal */
|
|
379
690
|
format?: "text" | "code";
|
|
380
691
|
}
|
|
692
|
+
/** @internal */
|
|
381
693
|
export interface WatcherSummary {
|
|
694
|
+
/** @internal */
|
|
382
695
|
processId: string;
|
|
696
|
+
/** @internal */
|
|
383
697
|
processDisplayName: string;
|
|
698
|
+
/** @internal */
|
|
384
699
|
watcherId: string;
|
|
700
|
+
/** @internal */
|
|
385
701
|
label: string;
|
|
702
|
+
/** @internal */
|
|
386
703
|
description: string;
|
|
704
|
+
/** @internal */
|
|
387
705
|
sourceId: string;
|
|
706
|
+
/** @internal */
|
|
388
707
|
sourceLabel: string;
|
|
708
|
+
/** @internal */
|
|
389
709
|
enabled: boolean;
|
|
710
|
+
/** @internal */
|
|
390
711
|
configPath: string;
|
|
712
|
+
/** @internal */
|
|
391
713
|
targetSummary: string;
|
|
714
|
+
/** @internal */
|
|
392
715
|
details: WatcherPresentationField[];
|
|
716
|
+
/** @internal */
|
|
393
717
|
launchModel: WatcherLaunchModelSummary;
|
|
394
718
|
}
|
|
719
|
+
/** @internal */
|
|
395
720
|
export interface SkillUsageSummary {
|
|
721
|
+
/** @internal */
|
|
396
722
|
attachedAllTime: number;
|
|
723
|
+
/** @internal */
|
|
397
724
|
attachedLast30Days: number;
|
|
725
|
+
/** @internal */
|
|
398
726
|
invokedAllTime: number;
|
|
727
|
+
/** @internal */
|
|
399
728
|
invokedLast30Days: number;
|
|
400
729
|
}
|
|
730
|
+
/** @internal */
|
|
401
731
|
export interface SkillRepositorySummary {
|
|
732
|
+
/** @internal */
|
|
402
733
|
id: string;
|
|
734
|
+
/** @internal */
|
|
403
735
|
label: string;
|
|
736
|
+
/** @internal */
|
|
404
737
|
url: string;
|
|
738
|
+
/** @internal */
|
|
405
739
|
ref: string;
|
|
740
|
+
/** @internal */
|
|
406
741
|
path: string;
|
|
742
|
+
/** @internal */
|
|
407
743
|
lastRefreshedAt: string | null;
|
|
744
|
+
/** @internal */
|
|
408
745
|
error: string | null;
|
|
409
746
|
}
|
|
747
|
+
/** @internal */
|
|
410
748
|
export interface SkillCatalogItem {
|
|
749
|
+
/** @internal */
|
|
411
750
|
repositoryId: string;
|
|
751
|
+
/** @internal */
|
|
412
752
|
id: string;
|
|
753
|
+
/** @internal */
|
|
413
754
|
label: string;
|
|
755
|
+
/** @internal */
|
|
414
756
|
description: string | null;
|
|
757
|
+
/** @internal */
|
|
415
758
|
sourcePath: string;
|
|
759
|
+
/** @internal */
|
|
416
760
|
sourceRevision: string;
|
|
761
|
+
/** @internal */
|
|
417
762
|
registered: boolean;
|
|
763
|
+
/** @internal */
|
|
418
764
|
updateAvailable: boolean;
|
|
765
|
+
/** @internal */
|
|
419
766
|
conflict: boolean;
|
|
767
|
+
/** @internal */
|
|
420
768
|
stale: boolean;
|
|
769
|
+
/** @internal */
|
|
421
770
|
modelInvocable: boolean;
|
|
771
|
+
/** @internal */
|
|
422
772
|
usage: SkillUsageSummary;
|
|
423
773
|
}
|
|
774
|
+
/** @internal */
|
|
424
775
|
export type SkillRegistrationKind = "configuration" | "catalog";
|
|
776
|
+
/** @internal */
|
|
425
777
|
export interface InstalledSkillCatalogItem {
|
|
778
|
+
/** @internal */
|
|
426
779
|
id: string;
|
|
780
|
+
/** @internal */
|
|
427
781
|
label: string;
|
|
782
|
+
/** @internal */
|
|
428
783
|
description: string | null;
|
|
784
|
+
/** @internal */
|
|
429
785
|
activeRevisionId: string;
|
|
786
|
+
/** @internal */
|
|
430
787
|
activeSourceRevision: string | null;
|
|
788
|
+
/** @internal */
|
|
431
789
|
registrationKind: SkillRegistrationKind;
|
|
790
|
+
/** @internal */
|
|
432
791
|
sourceRepositoryId: string | null;
|
|
792
|
+
/** @internal */
|
|
433
793
|
updateAvailable: boolean;
|
|
794
|
+
/** @internal */
|
|
434
795
|
modelInvocable: boolean;
|
|
796
|
+
/** @internal */
|
|
435
797
|
usage: SkillUsageSummary;
|
|
436
798
|
}
|
|
799
|
+
/** @internal */
|
|
437
800
|
export interface SkillRevisionSummary {
|
|
801
|
+
/** @internal */
|
|
438
802
|
id: string;
|
|
803
|
+
/** @internal */
|
|
439
804
|
sourceRevision: string | null;
|
|
805
|
+
/** @internal */
|
|
440
806
|
importedAt: string;
|
|
807
|
+
/** @internal */
|
|
441
808
|
active: boolean;
|
|
442
809
|
}
|
|
810
|
+
/** @internal */
|
|
443
811
|
export interface SkillUsageProcessSummary {
|
|
812
|
+
/** @internal */
|
|
444
813
|
instanceId: string;
|
|
814
|
+
/** @internal */
|
|
445
815
|
title: string;
|
|
816
|
+
/** @internal */
|
|
446
817
|
attachedAt: string;
|
|
818
|
+
/** @internal */
|
|
447
819
|
invocationCount: number;
|
|
820
|
+
/** @internal */
|
|
448
821
|
lastInvokedAt: string | null;
|
|
449
822
|
}
|
|
823
|
+
/** @internal */
|
|
450
824
|
export interface SkillCatalogDetail extends SkillCatalogItem {
|
|
825
|
+
/** @internal */
|
|
451
826
|
skillMarkdown: string;
|
|
827
|
+
/** @internal */
|
|
452
828
|
processes: SkillUsageProcessSummary[];
|
|
453
829
|
}
|
|
830
|
+
/** @internal */
|
|
454
831
|
export interface InstalledSkillCatalogDetail extends InstalledSkillCatalogItem {
|
|
832
|
+
/** @internal */
|
|
455
833
|
skillMarkdown: string;
|
|
834
|
+
/** @internal */
|
|
456
835
|
processes: SkillUsageProcessSummary[];
|
|
836
|
+
/** @internal */
|
|
457
837
|
revisions: SkillRevisionSummary[];
|
|
458
838
|
}
|
|
839
|
+
/** @internal */
|
|
459
840
|
export type ErrorResponseBody = {
|
|
841
|
+
/** @internal */
|
|
460
842
|
error?: string | null;
|
|
843
|
+
/** @internal */
|
|
461
844
|
code?: string | null;
|
|
462
845
|
};
|
|
846
|
+
/** @internal */
|
|
463
847
|
export type ProcessesListResponseBody = {
|
|
848
|
+
/** @internal */
|
|
464
849
|
processes: ProcessListItem[];
|
|
850
|
+
/** @internal */
|
|
465
851
|
futureExecutions: FutureExecutionSummary[];
|
|
466
852
|
};
|
|
853
|
+
/** @internal */
|
|
467
854
|
export interface ProcessOverviewItem extends ProcessRowSlot {
|
|
855
|
+
/** @internal */
|
|
468
856
|
processDisplayName: string | null;
|
|
469
|
-
/** Nullable durable title before external-id/instance-id display fallback. */
|
|
857
|
+
/** Nullable durable title before external-id/instance-id display fallback. @internal */
|
|
470
858
|
processTitle: string | null;
|
|
859
|
+
/** @internal */
|
|
471
860
|
initialPromptPreview: string | null;
|
|
861
|
+
/** @internal */
|
|
472
862
|
createdAt: string;
|
|
863
|
+
/** @internal */
|
|
473
864
|
updatedAt: string;
|
|
865
|
+
/** @internal */
|
|
474
866
|
closedAt: string | null;
|
|
475
867
|
}
|
|
868
|
+
/** @internal */
|
|
476
869
|
interface FutureExecutionOverviewItemBase extends Omit<FutureExecutionBaseSummary, "kind" | "subtitle" | "modelSelection"> {
|
|
870
|
+
/** @internal */
|
|
477
871
|
initialPromptPreview: string | null;
|
|
478
872
|
}
|
|
873
|
+
/** @internal */
|
|
479
874
|
export interface FutureLaunchOverviewItem extends FutureExecutionOverviewItemBase {
|
|
875
|
+
/** @internal */
|
|
480
876
|
kind: "launch";
|
|
877
|
+
/** @internal */
|
|
481
878
|
instanceId: null;
|
|
879
|
+
/** @internal */
|
|
482
880
|
launcherId: string;
|
|
881
|
+
/** @internal */
|
|
483
882
|
launcherLabel: string;
|
|
484
883
|
}
|
|
884
|
+
/** @internal */
|
|
485
885
|
export interface FutureActionOverviewItem extends FutureExecutionOverviewItemBase {
|
|
886
|
+
/** @internal */
|
|
486
887
|
kind: "action";
|
|
888
|
+
/** @internal */
|
|
487
889
|
instanceId: string;
|
|
890
|
+
/** @internal */
|
|
488
891
|
actionId: string;
|
|
892
|
+
/** @internal */
|
|
489
893
|
actionLabel: string;
|
|
490
894
|
}
|
|
895
|
+
/** @internal */
|
|
491
896
|
export type FutureExecutionOverviewItem = FutureLaunchOverviewItem | FutureActionOverviewItem;
|
|
897
|
+
/** @internal */
|
|
492
898
|
export interface ProcessesOverviewResponseBody {
|
|
899
|
+
/** @internal */
|
|
493
900
|
processes: ProcessOverviewItem[];
|
|
901
|
+
/** @internal */
|
|
494
902
|
futureExecutions: FutureExecutionOverviewItem[];
|
|
495
|
-
/** True when the bounded sidebar response omitted less-recent rows. */
|
|
903
|
+
/** True when the bounded sidebar response omitted less-recent rows. @internal */
|
|
496
904
|
truncated: boolean;
|
|
497
905
|
}
|
|
906
|
+
/** @internal */
|
|
498
907
|
export interface ProcessBrowsePagination {
|
|
908
|
+
/** @internal */
|
|
499
909
|
limit: number;
|
|
910
|
+
/** @internal */
|
|
500
911
|
offset: number;
|
|
912
|
+
/** @internal */
|
|
501
913
|
total: number;
|
|
914
|
+
/** @internal */
|
|
502
915
|
processTotal: number;
|
|
916
|
+
/** @internal */
|
|
503
917
|
futureExecutionTotal: number;
|
|
918
|
+
/** @internal */
|
|
504
919
|
hasMore: boolean;
|
|
505
920
|
}
|
|
921
|
+
/** @internal */
|
|
506
922
|
export interface ProcessBrowseFacets {
|
|
923
|
+
/** @internal */
|
|
507
924
|
statusCounts: Record<"all" | "running" | "scheduled" | "needs_attention" | "completed" | "aborted", number>;
|
|
925
|
+
/** @internal */
|
|
508
926
|
processTypes: Array<{
|
|
927
|
+
/** @internal */
|
|
509
928
|
value: string;
|
|
929
|
+
/** @internal */
|
|
510
930
|
label: string;
|
|
931
|
+
/** @internal */
|
|
511
932
|
count: number;
|
|
512
933
|
}>;
|
|
513
934
|
}
|
|
935
|
+
/** @internal */
|
|
514
936
|
export type ProcessBrowseItem = {
|
|
937
|
+
/** @internal */
|
|
515
938
|
kind: "process";
|
|
939
|
+
/** @internal */
|
|
516
940
|
item: ProcessOverviewItem;
|
|
517
941
|
} | {
|
|
942
|
+
/** @internal */
|
|
518
943
|
kind: "future";
|
|
944
|
+
/** @internal */
|
|
519
945
|
item: FutureExecutionOverviewItem;
|
|
520
946
|
};
|
|
947
|
+
/** @internal */
|
|
521
948
|
export interface ProcessBrowseResponseBody {
|
|
522
|
-
/** Globally sorted page. The browser must preserve this server-owned order. */
|
|
949
|
+
/** Globally sorted page. The browser must preserve this server-owned order. @internal */
|
|
523
950
|
items: ProcessBrowseItem[];
|
|
951
|
+
/** @internal */
|
|
524
952
|
pagination: ProcessBrowsePagination;
|
|
953
|
+
/** @internal */
|
|
525
954
|
facets: ProcessBrowseFacets;
|
|
526
955
|
}
|
|
956
|
+
/** @internal */
|
|
527
957
|
export type TurnTraceToolCallSnapshot = Omit<PrimaryPathToolCallSnapshot, "result"> & {
|
|
958
|
+
/** @internal */
|
|
528
959
|
resultText: string | null;
|
|
960
|
+
/** @internal */
|
|
529
961
|
truncated: boolean;
|
|
530
962
|
};
|
|
963
|
+
/** @internal */
|
|
531
964
|
export type TurnPiInputPartRole = "user" | "system" | "unknown";
|
|
965
|
+
/** @internal */
|
|
532
966
|
export interface TurnPiInputPart {
|
|
967
|
+
/** @internal */
|
|
533
968
|
role: TurnPiInputPartRole;
|
|
969
|
+
/** @internal */
|
|
534
970
|
text: string;
|
|
971
|
+
/** @internal */
|
|
535
972
|
createdAt: string;
|
|
536
973
|
}
|
|
974
|
+
/** @internal */
|
|
537
975
|
export interface TurnPiInputSnapshot {
|
|
976
|
+
/** @internal */
|
|
538
977
|
parts: TurnPiInputPart[];
|
|
978
|
+
/** @internal */
|
|
539
979
|
fullPrompt: string;
|
|
980
|
+
/** @internal */
|
|
540
981
|
createdAt: string;
|
|
982
|
+
/** @internal */
|
|
541
983
|
userInput?: string | null;
|
|
542
984
|
}
|
|
985
|
+
/** @internal */
|
|
543
986
|
export interface TurnTraceSnapshot {
|
|
987
|
+
/** @internal */
|
|
544
988
|
assistant: PrimaryPathStreamingAssistantSnapshot;
|
|
989
|
+
/** @internal */
|
|
545
990
|
toolCalls: TurnTraceToolCallSnapshot[];
|
|
991
|
+
/** @internal */
|
|
546
992
|
traceItems: PrimaryPathTraceItemSnapshot[];
|
|
993
|
+
/** @internal */
|
|
547
994
|
usage: TurnUsageSnapshot | null;
|
|
995
|
+
/** @internal */
|
|
548
996
|
piInput: TurnPiInputSnapshot | null;
|
|
549
997
|
}
|
|
998
|
+
/** @internal */
|
|
550
999
|
export interface TurnTracePreview {
|
|
1000
|
+
/** @internal */
|
|
551
1001
|
turnRecordId: string;
|
|
1002
|
+
/** @internal */
|
|
552
1003
|
assistantTextPreview: string;
|
|
1004
|
+
/** @internal */
|
|
553
1005
|
assistantTextTruncated: boolean;
|
|
1006
|
+
/** @internal */
|
|
554
1007
|
thinkingPreview: string;
|
|
1008
|
+
/** @internal */
|
|
555
1009
|
thinkingPreviewTruncated: boolean;
|
|
1010
|
+
/** @internal */
|
|
556
1011
|
toolCallCount: number;
|
|
1012
|
+
/** @internal */
|
|
557
1013
|
traceItemCount: number;
|
|
1014
|
+
/** @internal */
|
|
558
1015
|
hasReasoningDetails: boolean;
|
|
1016
|
+
/** @internal */
|
|
559
1017
|
usage: TurnUsageSnapshot | null;
|
|
1018
|
+
/** @internal */
|
|
560
1019
|
piInput: {
|
|
1020
|
+
/** @internal */
|
|
561
1021
|
createdAt: string | null;
|
|
1022
|
+
/** @internal */
|
|
562
1023
|
partCount: number;
|
|
1024
|
+
/** @internal */
|
|
563
1025
|
userInputPreview: string | null;
|
|
564
1026
|
} | null;
|
|
565
1027
|
}
|
|
1028
|
+
/** @internal */
|
|
566
1029
|
export type ProcessTimelineTurnPresentation = "llm_turn" | "automatic_turn" | "operator_decision" | "external_trigger";
|
|
1030
|
+
/** @internal */
|
|
567
1031
|
export interface ProcessTimelineTurnSummary {
|
|
1032
|
+
/** @internal */
|
|
568
1033
|
id: string;
|
|
1034
|
+
/** @internal */
|
|
569
1035
|
turnId: string;
|
|
1036
|
+
/** @internal */
|
|
570
1037
|
turnType: ProcessTurnType;
|
|
1038
|
+
/** @internal */
|
|
571
1039
|
displayTurn: string;
|
|
1040
|
+
/** @internal */
|
|
572
1041
|
outcome: string;
|
|
1042
|
+
/** @internal */
|
|
573
1043
|
summary: string;
|
|
1044
|
+
/** @internal */
|
|
574
1045
|
output: string;
|
|
1046
|
+
/** @internal */
|
|
575
1047
|
turnResultMarkdown: string;
|
|
1048
|
+
/** @internal */
|
|
576
1049
|
resultSummary?: string;
|
|
1050
|
+
/** @internal */
|
|
577
1051
|
reviewedTurnRecordId?: string;
|
|
1052
|
+
/** @internal */
|
|
578
1053
|
resources?: import("@leitwerk-dev/domain").TurnProgressLink[];
|
|
1054
|
+
/** @internal */
|
|
579
1055
|
transition?: {
|
|
1056
|
+
/** @internal */
|
|
580
1057
|
selectedTurnId: string;
|
|
1058
|
+
/** @internal */
|
|
581
1059
|
targetTurnRecordId?: string;
|
|
1060
|
+
/** @internal */
|
|
582
1061
|
accepted: boolean;
|
|
583
1062
|
};
|
|
1063
|
+
/** @internal */
|
|
584
1064
|
pathType: ProcessTurnRecord["pathType"];
|
|
1065
|
+
/** @internal */
|
|
585
1066
|
createdAt: string;
|
|
1067
|
+
/** @internal */
|
|
586
1068
|
presentation: ProcessTimelineTurnPresentation;
|
|
1069
|
+
/** @internal */
|
|
587
1070
|
status: "completed" | "in_progress";
|
|
1071
|
+
/** @internal */
|
|
588
1072
|
modelProfileId: string | null;
|
|
589
|
-
/** Durable lineage needed by the chronicle rail and input correlation. */
|
|
1073
|
+
/** Durable lineage needed by the chronicle rail and input correlation. @internal */
|
|
590
1074
|
attemptNumber: number;
|
|
1075
|
+
/** @internal */
|
|
591
1076
|
parentTurnRecordId: string | null;
|
|
1077
|
+
/** @internal */
|
|
592
1078
|
startedAt: string;
|
|
1079
|
+
/** @internal */
|
|
593
1080
|
endedAt: string | null;
|
|
1081
|
+
/** @internal */
|
|
594
1082
|
actionSource: "ui" | "external" | "scheduled" | null;
|
|
1083
|
+
/** @internal */
|
|
595
1084
|
progress?: TurnProgressReport | null;
|
|
1085
|
+
/** @internal */
|
|
596
1086
|
progressRecordedAt?: string;
|
|
597
1087
|
}
|
|
1088
|
+
/** @internal */
|
|
598
1089
|
export type ProcessTimelineInputSummary = Pick<ProcessInput, "id" | "sequence" | "source" | "kind" | "bodyMarkdown" | "receivedAt" | "consumedAt">;
|
|
1090
|
+
/** @internal */
|
|
599
1091
|
export interface ProcessExternalObservation {
|
|
1092
|
+
/** @internal */
|
|
600
1093
|
summary: string;
|
|
1094
|
+
/** @internal */
|
|
601
1095
|
links?: import("@leitwerk-dev/domain").TurnProgressLink[];
|
|
1096
|
+
/** @internal */
|
|
602
1097
|
observedAt: string;
|
|
1098
|
+
/** @internal */
|
|
603
1099
|
subject: string;
|
|
1100
|
+
/** @internal */
|
|
604
1101
|
revision: string;
|
|
605
1102
|
}
|
|
1103
|
+
/** @internal */
|
|
606
1104
|
export interface ProcessExternalTriggerSignal {
|
|
1105
|
+
/** @internal */
|
|
607
1106
|
observation?: ProcessExternalObservation;
|
|
1107
|
+
/** @internal */
|
|
608
1108
|
refreshError?: string | null;
|
|
1109
|
+
/** @internal */
|
|
609
1110
|
refreshedAt?: string;
|
|
1111
|
+
/** @internal */
|
|
610
1112
|
triggerId: string;
|
|
1113
|
+
/** @internal */
|
|
611
1114
|
state: "error" | "armed" | "triggered" | "waiting";
|
|
1115
|
+
/** @internal */
|
|
612
1116
|
occurredAt: string | null;
|
|
1117
|
+
/** @internal */
|
|
613
1118
|
secondaryDetail: string | null;
|
|
614
1119
|
}
|
|
1120
|
+
/** @internal */
|
|
615
1121
|
export interface ProcessTimelineSnapshot {
|
|
1122
|
+
/** @internal */
|
|
616
1123
|
prompt: {
|
|
1124
|
+
/** @internal */
|
|
617
1125
|
text: string | null;
|
|
1126
|
+
/** @internal */
|
|
618
1127
|
createdAt: string | null;
|
|
619
1128
|
};
|
|
1129
|
+
/** @internal */
|
|
620
1130
|
turns: ProcessTimelineTurnSummary[];
|
|
1131
|
+
/** @internal */
|
|
621
1132
|
tracePreviewsByTurnRecordId: Record<string, TurnTracePreview>;
|
|
1133
|
+
/** @internal */
|
|
622
1134
|
inputs: ProcessTimelineInputSummary[];
|
|
1135
|
+
/** @internal */
|
|
623
1136
|
externalTriggerSignals: ProcessExternalTriggerSignal[];
|
|
624
1137
|
}
|
|
1138
|
+
/** @internal */
|
|
625
1139
|
export interface CurrentErrorSummary {
|
|
1140
|
+
/** @internal */
|
|
626
1141
|
title: string;
|
|
1142
|
+
/** @internal */
|
|
627
1143
|
summary: string;
|
|
1144
|
+
/** @internal */
|
|
628
1145
|
guidance?: string;
|
|
1146
|
+
/** @internal */
|
|
629
1147
|
technicalDetail?: string | null;
|
|
630
1148
|
}
|
|
1149
|
+
/** @internal */
|
|
631
1150
|
export interface CurrentTurnRecoverySummary extends CurrentErrorSummary {
|
|
1151
|
+
/** @internal */
|
|
632
1152
|
turnRecordId: string;
|
|
1153
|
+
/** @internal */
|
|
633
1154
|
defaultContinuePrompt: string;
|
|
1155
|
+
/** @internal */
|
|
634
1156
|
canContinue: boolean;
|
|
1157
|
+
/** @internal */
|
|
635
1158
|
supportsModelOverride: boolean;
|
|
1159
|
+
/** @internal */
|
|
636
1160
|
defaultModelProfileId: string | null;
|
|
1161
|
+
/** @internal */
|
|
637
1162
|
providerOptions: Record<string, string>;
|
|
638
1163
|
}
|
|
1164
|
+
/** @internal */
|
|
639
1165
|
export interface StartupRecoverySummary extends CurrentErrorSummary {
|
|
1166
|
+
/** @internal */
|
|
640
1167
|
startRecordId: string;
|
|
1168
|
+
/** @internal */
|
|
641
1169
|
kind: "preparation_failed" | "bootstrap_failed";
|
|
1170
|
+
/** @internal */
|
|
642
1171
|
action: "choose_model" | "retry_startup";
|
|
1172
|
+
/** @internal */
|
|
643
1173
|
defaultModelProfileId: string | null;
|
|
1174
|
+
/** @internal */
|
|
644
1175
|
providerOptions: Record<string, string>;
|
|
645
1176
|
}
|
|
1177
|
+
/** @internal */
|
|
646
1178
|
export type StartupAttemptStatus = "starting" | "failed" | "succeeded" | "recovered" | "superseded";
|
|
1179
|
+
/** @internal */
|
|
647
1180
|
export interface StartupAttemptStepSummary {
|
|
648
|
-
/** Observed phase interval; absent for older servers or unavailable evidence. */
|
|
1181
|
+
/** Observed phase interval; absent for older servers or unavailable evidence. @internal */
|
|
649
1182
|
startedAt?: string | null;
|
|
1183
|
+
/** @internal */
|
|
650
1184
|
endedAt?: string | null;
|
|
1185
|
+
/** @internal */
|
|
651
1186
|
detail?: string;
|
|
1187
|
+
/** @internal */
|
|
652
1188
|
id: "start_worker" | "connect_worker" | "prepare_workspace" | "start_first_turn";
|
|
1189
|
+
/** @internal */
|
|
653
1190
|
label: string;
|
|
1191
|
+
/** @internal */
|
|
654
1192
|
status: "pending" | "in_progress" | "completed" | "failed" | "superseded";
|
|
1193
|
+
/** @internal */
|
|
655
1194
|
occurredAt: string | null;
|
|
656
1195
|
}
|
|
657
|
-
/** Worker-start history derived from correlated start, lease, readiness, and turn records. */
|
|
1196
|
+
/** Worker-start history derived from correlated start, lease, readiness, and turn records. @internal */
|
|
658
1197
|
export interface StartupAttemptSummary {
|
|
1198
|
+
/** @internal */
|
|
659
1199
|
startRecordId: string;
|
|
1200
|
+
/** @internal */
|
|
660
1201
|
workerLeaseId: string | null;
|
|
1202
|
+
/** @internal */
|
|
661
1203
|
status: StartupAttemptStatus;
|
|
1204
|
+
/** @internal */
|
|
662
1205
|
startedAt: string;
|
|
1206
|
+
/** @internal */
|
|
663
1207
|
readyAt: string | null;
|
|
1208
|
+
/** @internal */
|
|
664
1209
|
durationMs: number | null;
|
|
1210
|
+
/** @internal */
|
|
665
1211
|
summary: string | null;
|
|
1212
|
+
/** @internal */
|
|
666
1213
|
recoveredByStartRecordId: string | null;
|
|
1214
|
+
/** @internal */
|
|
667
1215
|
steps: StartupAttemptStepSummary[];
|
|
668
1216
|
}
|
|
1217
|
+
/** @internal */
|
|
669
1218
|
export interface ProcessStartupSummary {
|
|
1219
|
+
/** @internal */
|
|
670
1220
|
workerStarts?: import("@leitwerk-dev/domain").PhysicalWorkerStart[];
|
|
1221
|
+
/** @internal */
|
|
671
1222
|
authoritativeAttemptId: string | null;
|
|
1223
|
+
/** @internal */
|
|
672
1224
|
attempts: StartupAttemptSummary[];
|
|
1225
|
+
/** @internal */
|
|
673
1226
|
recovery: StartupRecoverySummary | null;
|
|
674
1227
|
}
|
|
1228
|
+
/** @internal */
|
|
675
1229
|
export type CurrentProcessErrorSummary = CurrentErrorSummary;
|
|
1230
|
+
/** @internal */
|
|
676
1231
|
export interface ProcessUsageEstimateSnapshot {
|
|
1232
|
+
/** @internal */
|
|
677
1233
|
usage: TurnUsageSnapshot;
|
|
1234
|
+
/** @internal */
|
|
678
1235
|
includesLiveTurn: boolean;
|
|
1236
|
+
/** @internal */
|
|
679
1237
|
totalLlmTurnCount: number;
|
|
1238
|
+
/** @internal */
|
|
680
1239
|
coveredTurnCount: number;
|
|
1240
|
+
/** @internal */
|
|
681
1241
|
missingUsageTurnCount: number;
|
|
1242
|
+
/** @internal */
|
|
682
1243
|
missingCostTurnCount: number;
|
|
1244
|
+
/** @internal */
|
|
683
1245
|
isPartial: boolean;
|
|
684
1246
|
}
|
|
1247
|
+
/** @internal */
|
|
685
1248
|
export interface PrimaryPathUiSnapshot extends Omit<PrimaryPathSnapshot, "turnState"> {
|
|
1249
|
+
/** @internal */
|
|
686
1250
|
throughEventSequence: number;
|
|
1251
|
+
/** @internal */
|
|
687
1252
|
turnState: Omit<PrimaryPathSnapshot["turnState"], "activeTurn"> & {
|
|
1253
|
+
/** @internal */
|
|
688
1254
|
activeTurn: CompactActiveTurnSnapshot | null;
|
|
689
1255
|
};
|
|
1256
|
+
/** @internal */
|
|
690
1257
|
entryCount: number;
|
|
1258
|
+
/** @internal */
|
|
691
1259
|
entriesOmitted: true;
|
|
692
1260
|
}
|
|
1261
|
+
/** @internal */
|
|
693
1262
|
export type ProcessUiSnapshotProcess = Pick<ProcessInstance, "id" | "processId" | "selectedTurnId" | "lifecycleStatus" | "currentExecution" | "planRevision" | "title" | "externalId" | "externalUrl" | "initialDefaultModelProfileId" | "createdAt" | "updatedAt" | "closedAt">;
|
|
694
1263
|
/**
|
|
695
1264
|
* Initial render contract for process detail. Raw process events, inputs,
|
|
696
1265
|
* session entries, projects, and full durable records belong to diagnostics;
|
|
697
1266
|
* this DTO carries only browser-facing projections.
|
|
698
1267
|
*/
|
|
1268
|
+
/** @internal */
|
|
699
1269
|
export interface ProcessDetailUiSnapshotResponseBody {
|
|
1270
|
+
/** @internal */
|
|
700
1271
|
process: ProcessUiSnapshotProcess;
|
|
701
|
-
/** Next turn on the declared happy path, including human decisions. */
|
|
1272
|
+
/** Next turn on the declared happy path, including human decisions. @internal */
|
|
702
1273
|
plannedNextTurn?: Pick<ProcessSelectedTurnSummary, "turnId" | "description"> | null;
|
|
703
|
-
/** Durable requests in Chronicle order; at most one is open for the current turn. */
|
|
1274
|
+
/** Durable requests in Chronicle order; at most one is open for the current turn. @internal */
|
|
704
1275
|
questionRequests: ProcessQuestionRequest[];
|
|
1276
|
+
/** @internal */
|
|
705
1277
|
toolApprovalRequests: ProcessToolApprovalRequest[];
|
|
1278
|
+
/** @internal */
|
|
706
1279
|
leafOutcomeSnapshots: ProcessLeafOutcomeSnapshot[];
|
|
1280
|
+
/** @internal */
|
|
707
1281
|
processDisplayName: string | null;
|
|
1282
|
+
/** @internal */
|
|
708
1283
|
processFlow: ProcessFlowView;
|
|
1284
|
+
/** @internal */
|
|
709
1285
|
definesLeafOutcome: boolean;
|
|
1286
|
+
/** @internal */
|
|
710
1287
|
selectedTurn: ProcessSelectedTurnSummary | null;
|
|
1288
|
+
/** @internal */
|
|
711
1289
|
scheduledAction: ScheduledActionDetail | null;
|
|
1290
|
+
/** @internal */
|
|
712
1291
|
modelConfiguration: ProcessModelConfigurationView;
|
|
1292
|
+
/** @internal */
|
|
713
1293
|
runDetails: ProcessRunDetailsView;
|
|
1294
|
+
/** @internal */
|
|
714
1295
|
launchConfiguration: ProcessLaunchConfigurationView;
|
|
1296
|
+
/** @internal */
|
|
715
1297
|
actions: ProcessActionSummary[];
|
|
1298
|
+
/** @internal */
|
|
716
1299
|
toolRenderers: ToolCallRendererDefinition[];
|
|
1300
|
+
/** @internal */
|
|
717
1301
|
primaryPath: PrimaryPathUiSnapshot;
|
|
1302
|
+
/** @internal */
|
|
718
1303
|
timeline: ProcessTimelineSnapshot;
|
|
1304
|
+
/** @internal */
|
|
719
1305
|
instanceTree: ProcessInstanceTreeResponseBody;
|
|
1306
|
+
/** @internal */
|
|
720
1307
|
recovery: CurrentTurnRecoverySummary | null;
|
|
721
|
-
/** Authoritative startup history and current remediation. */
|
|
1308
|
+
/** Authoritative startup history and current remediation. @internal */
|
|
722
1309
|
startup: ProcessStartupSummary;
|
|
723
|
-
/** Compatibility alias for startup.recovery. */
|
|
1310
|
+
/** Compatibility alias for startup.recovery. @internal */
|
|
724
1311
|
startupRecovery: StartupRecoverySummary | null;
|
|
1312
|
+
/** @internal */
|
|
725
1313
|
processError: CurrentProcessErrorSummary | null;
|
|
1314
|
+
/** @internal */
|
|
726
1315
|
usageEstimate: ProcessUsageEstimateSnapshot | null;
|
|
1316
|
+
/** @internal */
|
|
727
1317
|
persistedModelSelectionWarning: string | null;
|
|
1318
|
+
/** @internal */
|
|
728
1319
|
session: {
|
|
1320
|
+
/** @internal */
|
|
729
1321
|
signature: string | null;
|
|
730
1322
|
};
|
|
1323
|
+
/** @internal */
|
|
731
1324
|
sessionTransfer: SessionTransferOperationView | null;
|
|
732
1325
|
}
|
|
1326
|
+
/** @internal */
|
|
733
1327
|
export type InstanceTreeTurnResultState = "succeeded" | "failed" | "aborted" | "pending";
|
|
734
|
-
/** Redacted, semantic process history. Pi message/activity categories are never exposed. */
|
|
1328
|
+
/** Redacted, semantic process history. Pi message/activity categories are never exposed. @internal */
|
|
735
1329
|
export interface InstanceTreeNodeSummary {
|
|
1330
|
+
/** @internal */
|
|
736
1331
|
id: string;
|
|
1332
|
+
/** @internal */
|
|
737
1333
|
parentId: string | null;
|
|
1334
|
+
/** @internal */
|
|
738
1335
|
label: string;
|
|
1336
|
+
/** @internal */
|
|
739
1337
|
pathType: "primary" | "root_branch" | "leaf_branch";
|
|
1338
|
+
/** @internal */
|
|
740
1339
|
resultState: InstanceTreeTurnResultState;
|
|
1340
|
+
/** @internal */
|
|
741
1341
|
timestamp: string;
|
|
742
1342
|
}
|
|
1343
|
+
/** @internal */
|
|
743
1344
|
export interface InstanceTreeEdgeSummary {
|
|
1345
|
+
/** @internal */
|
|
744
1346
|
id: string;
|
|
1347
|
+
/** @internal */
|
|
745
1348
|
sourceNodeId: string;
|
|
1349
|
+
/** @internal */
|
|
746
1350
|
targetNodeId: string | null;
|
|
1351
|
+
/** @internal */
|
|
747
1352
|
hasContext: boolean;
|
|
1353
|
+
/** @internal */
|
|
748
1354
|
productLabels: readonly string[];
|
|
1355
|
+
/** @internal */
|
|
749
1356
|
actionLabel: string | null;
|
|
1357
|
+
/** @internal */
|
|
750
1358
|
endState: "not_applied" | "completed" | null;
|
|
751
1359
|
}
|
|
1360
|
+
/** @internal */
|
|
752
1361
|
export interface ProcessInstanceTreeResponseBody {
|
|
1362
|
+
/** @internal */
|
|
753
1363
|
currentLeafId: string | null;
|
|
1364
|
+
/** @internal */
|
|
754
1365
|
nodes: InstanceTreeNodeSummary[];
|
|
1366
|
+
/** @internal */
|
|
755
1367
|
edges: InstanceTreeEdgeSummary[];
|
|
756
1368
|
}
|
|
1369
|
+
/** @internal */
|
|
757
1370
|
export interface TurnReasoningDetailResponseBody {
|
|
1371
|
+
/** @internal */
|
|
758
1372
|
state: "live" | "committed";
|
|
1373
|
+
/** @internal */
|
|
759
1374
|
throughEventSequence: number;
|
|
1375
|
+
/** @internal */
|
|
760
1376
|
instanceId: string;
|
|
1377
|
+
/** @internal */
|
|
761
1378
|
turnRecordId: string;
|
|
1379
|
+
/** @internal */
|
|
762
1380
|
sessionSignature: string | null;
|
|
1381
|
+
/** @internal */
|
|
763
1382
|
reasoning: TurnTraceSnapshot;
|
|
764
1383
|
}
|
|
1384
|
+
/** @internal */
|
|
765
1385
|
export interface SubmitQuestionAnswersRequestBody {
|
|
1386
|
+
/** @internal */
|
|
766
1387
|
draft: QuestionAnswerDraft[];
|
|
767
1388
|
}
|
|
1389
|
+
/** @internal */
|
|
768
1390
|
export type QuestionRequestMutationResponseBody = {
|
|
1391
|
+
/** @internal */
|
|
769
1392
|
request: ProcessQuestionRequest;
|
|
770
1393
|
};
|
|
1394
|
+
/** @internal */
|
|
771
1395
|
export type FutureExecutionDetailResponseBody = FutureExecutionSummary;
|
|
1396
|
+
/** @internal */
|
|
772
1397
|
export type LaunchersResponseBody = {
|
|
1398
|
+
/** @internal */
|
|
773
1399
|
launchers: UiLauncherSummary[];
|
|
774
1400
|
};
|
|
1401
|
+
/** @internal */
|
|
775
1402
|
export type WatchersResponseBody = {
|
|
1403
|
+
/** @internal */
|
|
776
1404
|
watchers: WatcherSummary[];
|
|
777
1405
|
};
|
|
1406
|
+
/** @internal */
|
|
778
1407
|
export type SkillCatalogDetailResponseBody = {
|
|
1408
|
+
/** @internal */
|
|
779
1409
|
skill: SkillCatalogDetail;
|
|
780
1410
|
};
|
|
1411
|
+
/** @internal */
|
|
781
1412
|
export type InstalledSkillCatalogDetailResponseBody = {
|
|
1413
|
+
/** @internal */
|
|
782
1414
|
skill: InstalledSkillCatalogDetail;
|
|
783
1415
|
};
|
|
1416
|
+
/** @internal */
|
|
784
1417
|
export type SkillsCatalogResponseBody = {
|
|
1418
|
+
/** @internal */
|
|
785
1419
|
repositories: SkillRepositorySummary[];
|
|
1420
|
+
/** @internal */
|
|
786
1421
|
availableSkills: SkillCatalogItem[];
|
|
1422
|
+
/** @internal */
|
|
787
1423
|
installedSkills: InstalledSkillCatalogItem[];
|
|
788
1424
|
};
|
|
1425
|
+
/** @internal */
|
|
789
1426
|
export interface LauncherDefaultsResponseBody {
|
|
1427
|
+
/** @internal */
|
|
790
1428
|
defaults: Record<string, unknown>;
|
|
1429
|
+
/** @internal */
|
|
791
1430
|
title: string | null;
|
|
1431
|
+
/** @internal */
|
|
792
1432
|
modelConfig: LauncherModelConfigDefaults;
|
|
1433
|
+
/** @internal */
|
|
793
1434
|
warnings?: LauncherValidationError[];
|
|
794
1435
|
}
|
|
1436
|
+
/** @internal */
|
|
795
1437
|
export type LauncherOptionsResponseBody = {
|
|
1438
|
+
/** @internal */
|
|
796
1439
|
options: Record<string, readonly FormFieldOptionDefinition[]>;
|
|
797
1440
|
};
|
|
1441
|
+
/** @internal */
|
|
798
1442
|
export type LauncherRecentValuesResponseBody = {
|
|
1443
|
+
/** @internal */
|
|
799
1444
|
values: Record<string, readonly string[]>;
|
|
800
1445
|
};
|
|
1446
|
+
/** @internal */
|
|
801
1447
|
export type LauncherModelConfigPreviewResponseBody = {
|
|
1448
|
+
/** @internal */
|
|
802
1449
|
preview: LauncherModelConfigPreview;
|
|
803
1450
|
};
|
|
1451
|
+
/** @internal */
|
|
804
1452
|
export interface LauncherMutationResponseBody {
|
|
1453
|
+
/** @internal */
|
|
805
1454
|
kind?: "scheduled";
|
|
1455
|
+
/** @internal */
|
|
806
1456
|
process?: ProcessInstance | null;
|
|
1457
|
+
/** @internal */
|
|
807
1458
|
futureExecution?: FutureLaunchSummary | null;
|
|
1459
|
+
/** @internal */
|
|
808
1460
|
projects?: ProcessProject[];
|
|
1461
|
+
/** @internal */
|
|
809
1462
|
errors?: LauncherValidationError[];
|
|
1463
|
+
/** @internal */
|
|
810
1464
|
error?: string | null;
|
|
811
1465
|
}
|
|
1466
|
+
/** @internal */
|
|
812
1467
|
export interface FutureLaunchMutationResponseBody {
|
|
1468
|
+
/** @internal */
|
|
813
1469
|
kind: "scheduled";
|
|
1470
|
+
/** @internal */
|
|
814
1471
|
futureExecution: FutureLaunchSummary | null;
|
|
1472
|
+
/** @internal */
|
|
815
1473
|
error?: string | null;
|
|
816
1474
|
}
|
|
1475
|
+
/** @internal */
|
|
817
1476
|
export type ScheduledActionMutationResponseBody = {
|
|
1477
|
+
/** @internal */
|
|
818
1478
|
kind?: "scheduled";
|
|
1479
|
+
/** @internal */
|
|
819
1480
|
scheduledAction?: ScheduledActionDetail | null;
|
|
1481
|
+
/** @internal */
|
|
820
1482
|
error?: string | null;
|
|
821
1483
|
};
|
|
1484
|
+
/** @internal */
|
|
822
1485
|
export type ProcessRetryConfigResponseBody = ProcessRetryConfig;
|
|
1486
|
+
/** @internal */
|
|
823
1487
|
export type ProcessActionModelPreviewResponseBody = {
|
|
1488
|
+
/** @internal */
|
|
824
1489
|
preview: ProcessActionModelPreview;
|
|
825
1490
|
};
|
|
1491
|
+
/** @internal */
|
|
826
1492
|
export type ProcessDiagnosticsResponseBody = ProcessDiagnosticsData;
|
|
1493
|
+
/** @internal */
|
|
827
1494
|
export type PrimaryPathSnapshotResponseBody = PrimaryPathSnapshot;
|
|
1495
|
+
/** @internal */
|
|
828
1496
|
export type CronPreviewResponseBody = {
|
|
1497
|
+
/** @internal */
|
|
829
1498
|
nextRunAt: string;
|
|
830
1499
|
};
|
|
1500
|
+
/** @internal */
|
|
831
1501
|
export type ParsedLauncherRequestBody = {
|
|
1502
|
+
/** @internal */
|
|
832
1503
|
title: string | null;
|
|
1504
|
+
/** @internal */
|
|
833
1505
|
titleProvided: boolean;
|
|
1506
|
+
/** @internal */
|
|
834
1507
|
launcherInput: Record<string, unknown>;
|
|
1508
|
+
/** @internal */
|
|
835
1509
|
launcherInputProvided: boolean;
|
|
1510
|
+
/** @internal */
|
|
836
1511
|
skillIds?: string[];
|
|
1512
|
+
/** @internal */
|
|
837
1513
|
modelConfig: LauncherModelConfigDefaults;
|
|
1514
|
+
/** @internal */
|
|
838
1515
|
modelConfigProvided: boolean;
|
|
1516
|
+
/** @internal */
|
|
839
1517
|
schedule: ParsedScheduleRequest;
|
|
1518
|
+
/** @internal */
|
|
840
1519
|
scheduleProvided: boolean;
|
|
841
1520
|
};
|
|
1521
|
+
/** @internal */
|
|
842
1522
|
export type ParsedActionRequestBody = {
|
|
1523
|
+
/** @internal */
|
|
843
1524
|
input: Record<string, unknown>;
|
|
1525
|
+
/** @internal */
|
|
844
1526
|
inputProvided: boolean;
|
|
1527
|
+
/** @internal */
|
|
845
1528
|
nextTurnModelProfileId?: string | null;
|
|
1529
|
+
/** @internal */
|
|
846
1530
|
nextTurnModelProfileIdProvided: boolean;
|
|
1531
|
+
/** @internal */
|
|
847
1532
|
schedule: ParsedScheduleRequest;
|
|
1533
|
+
/** @internal */
|
|
848
1534
|
scheduleProvided: boolean;
|
|
849
1535
|
};
|
|
850
1536
|
declare const futureLaunchPayloadInputSchema: v.ObjectSchema<{
|
|
1537
|
+
/** @internal */
|
|
851
1538
|
readonly launcherInput: v.OptionalSchema<v.NullableSchema<v.CustomSchema<Record<string, unknown>, v.ErrorMessage<v.CustomIssue> | undefined>, undefined>, undefined>;
|
|
1539
|
+
/** @internal */
|
|
852
1540
|
readonly modelConfig: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
1541
|
+
/** @internal */
|
|
853
1542
|
readonly actor: v.OptionalSchema<v.NullableSchema<v.CustomSchema<Record<string, unknown>, v.ErrorMessage<v.CustomIssue> | undefined>, undefined>, undefined>;
|
|
1543
|
+
/** @internal */
|
|
854
1544
|
readonly launchPlan: v.ObjectSchema<{
|
|
1545
|
+
/** @internal */
|
|
855
1546
|
readonly launcherId: v.StringSchema<undefined>;
|
|
1547
|
+
/** @internal */
|
|
856
1548
|
readonly processId: v.StringSchema<undefined>;
|
|
1549
|
+
/** @internal */
|
|
857
1550
|
readonly handoffDedupKey: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1551
|
+
/** @internal */
|
|
858
1552
|
readonly processInput: v.ObjectSchema<{
|
|
1553
|
+
/** @internal */
|
|
859
1554
|
readonly processId: v.StringSchema<undefined>;
|
|
1555
|
+
/** @internal */
|
|
860
1556
|
readonly selectedTurnId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1557
|
+
/** @internal */
|
|
861
1558
|
readonly lifecycleStatus: v.PicklistSchema<readonly ["discovered", "active", "waiting", "error", "completed", "aborted"], undefined>;
|
|
1559
|
+
/** @internal */
|
|
862
1560
|
readonly title: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1561
|
+
/** @internal */
|
|
863
1562
|
readonly externalId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1563
|
+
/** @internal */
|
|
864
1564
|
readonly externalUrl: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1565
|
+
/** @internal */
|
|
865
1566
|
readonly metadata: v.OptionalSchema<v.NullableSchema<v.CustomSchema<Record<string, unknown>, v.ErrorMessage<v.CustomIssue> | undefined>, undefined>, undefined>;
|
|
1567
|
+
/** @internal */
|
|
866
1568
|
readonly defaultModelProfileId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1569
|
+
/** @internal */
|
|
867
1570
|
readonly turnConfigsJson: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1571
|
+
/** @internal */
|
|
868
1572
|
readonly selectedTurnModelProfileId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1573
|
+
/** @internal */
|
|
869
1574
|
readonly selectedTurnModelKind: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["explicit", "inherited"], undefined>, undefined>, undefined>;
|
|
1575
|
+
/** @internal */
|
|
870
1576
|
readonly selectedTurnModelSource: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["action_override", "launch_override", "instance_turn_config", "process_config_turn", "instance_default", "process_config_default", "catalog_default", "legacy_persisted"], undefined>, undefined>, undefined>;
|
|
1577
|
+
/** @internal */
|
|
871
1578
|
readonly paramsJson: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1579
|
+
/** @internal */
|
|
872
1580
|
readonly stateJson: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
873
1581
|
}, undefined>;
|
|
1582
|
+
/** @internal */
|
|
874
1583
|
readonly titleSourceFields: v.OptionalSchema<v.NullableSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1584
|
+
/** @internal */
|
|
875
1585
|
readonly label: v.StringSchema<undefined>;
|
|
1586
|
+
/** @internal */
|
|
876
1587
|
readonly value: v.StringSchema<undefined>;
|
|
877
1588
|
}, undefined>, undefined>, undefined>, undefined>;
|
|
1589
|
+
/** @internal */
|
|
878
1590
|
readonly projectInputs: v.OptionalSchema<v.NullableSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1591
|
+
/** @internal */
|
|
879
1592
|
readonly key: v.StringSchema<undefined>;
|
|
1593
|
+
/** @internal */
|
|
880
1594
|
readonly repoLocator: v.StringSchema<undefined>;
|
|
1595
|
+
/** @internal */
|
|
881
1596
|
readonly baseBranch: v.StringSchema<undefined>;
|
|
1597
|
+
/** @internal */
|
|
882
1598
|
readonly workBranch: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1599
|
+
/** @internal */
|
|
883
1600
|
readonly externalId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1601
|
+
/** @internal */
|
|
884
1602
|
readonly externalUrl: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1603
|
+
/** @internal */
|
|
885
1604
|
readonly metadata: v.OptionalSchema<v.NullableSchema<v.CustomSchema<Record<string, unknown>, v.ErrorMessage<v.CustomIssue> | undefined>, undefined>, undefined>;
|
|
886
1605
|
}, undefined>, undefined>, undefined>, undefined>;
|
|
1606
|
+
/** @internal */
|
|
887
1607
|
readonly startTurnId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
888
1608
|
}, undefined>;
|
|
1609
|
+
/** @internal */
|
|
889
1610
|
readonly selectedSkillIds: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1611
|
+
/** @internal */
|
|
890
1612
|
readonly resourceSelections: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1613
|
+
/** @internal */
|
|
891
1614
|
readonly skillId: v.StringSchema<undefined>;
|
|
1615
|
+
/** @internal */
|
|
892
1616
|
readonly revisionId: v.StringSchema<undefined>;
|
|
893
1617
|
}, undefined>, undefined>, undefined>;
|
|
894
1618
|
}, undefined>;
|
|
895
1619
|
declare const futureActionPayloadInputSchema: v.ObjectSchema<{
|
|
1620
|
+
/** @internal */
|
|
896
1621
|
readonly input: v.OptionalSchema<v.NullableSchema<v.CustomSchema<Record<string, unknown>, v.ErrorMessage<v.CustomIssue> | undefined>, undefined>, undefined>;
|
|
1622
|
+
/** @internal */
|
|
897
1623
|
readonly nextTurnModelProfileId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1624
|
+
/** @internal */
|
|
898
1625
|
readonly actionLabel: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1626
|
+
/** @internal */
|
|
899
1627
|
readonly actor: v.OptionalSchema<v.NullableSchema<v.CustomSchema<Record<string, unknown>, v.ErrorMessage<v.CustomIssue> | undefined>, undefined>, undefined>;
|
|
900
1628
|
}, undefined>;
|
|
1629
|
+
/** @internal */
|
|
901
1630
|
export type ParsedScheduleRequest = {
|
|
1631
|
+
/** @internal */
|
|
902
1632
|
mode: "now";
|
|
903
1633
|
} | {
|
|
1634
|
+
/** @internal */
|
|
904
1635
|
mode: "once";
|
|
1636
|
+
/** @internal */
|
|
905
1637
|
runAt: string;
|
|
906
1638
|
} | {
|
|
1639
|
+
/** @internal */
|
|
907
1640
|
mode: "cron";
|
|
1641
|
+
/** @internal */
|
|
908
1642
|
cronExpression: string;
|
|
909
1643
|
};
|
|
1644
|
+
/** @internal */
|
|
910
1645
|
type ValidatedScheduleRequest = {
|
|
1646
|
+
/** @internal */
|
|
911
1647
|
mode: "now";
|
|
1648
|
+
/** @internal */
|
|
912
1649
|
nextRunAt: null;
|
|
1650
|
+
/** @internal */
|
|
913
1651
|
cronExpression: null;
|
|
914
1652
|
} | {
|
|
1653
|
+
/** @internal */
|
|
915
1654
|
mode: "once";
|
|
1655
|
+
/** @internal */
|
|
916
1656
|
nextRunAt: string;
|
|
1657
|
+
/** @internal */
|
|
917
1658
|
cronExpression: null;
|
|
918
1659
|
} | {
|
|
1660
|
+
/** @internal */
|
|
919
1661
|
mode: "cron";
|
|
1662
|
+
/** @internal */
|
|
920
1663
|
nextRunAt: string;
|
|
1664
|
+
/** @internal */
|
|
921
1665
|
cronExpression: string;
|
|
922
1666
|
};
|
|
923
1667
|
type FutureLaunchPayloadBase = v.InferOutput<typeof futureLaunchPayloadInputSchema>;
|
|
924
1668
|
type FutureActionPayloadBase = v.InferOutput<typeof futureActionPayloadInputSchema>;
|
|
1669
|
+
/** @internal */
|
|
925
1670
|
declare const normalizeFutureLaunchPayload: (payload: FutureLaunchPayloadBase) => {
|
|
1671
|
+
/** @internal */
|
|
926
1672
|
launcherInput: {
|
|
927
1673
|
[x: string]: unknown;
|
|
928
1674
|
};
|
|
1675
|
+
/** @internal */
|
|
929
1676
|
modelConfig: {
|
|
1677
|
+
/** @internal */
|
|
930
1678
|
defaultModelProfileId: string | null;
|
|
1679
|
+
/** @internal */
|
|
931
1680
|
turnConfigs: {
|
|
932
1681
|
[x: string]: import("@leitwerk-dev/domain").InstanceTurnConfigInput;
|
|
933
1682
|
};
|
|
934
1683
|
};
|
|
1684
|
+
/** @internal */
|
|
935
1685
|
actor: Actor | null;
|
|
1686
|
+
/** @internal */
|
|
936
1687
|
selectedSkillIds: string[];
|
|
1688
|
+
/** @internal */
|
|
937
1689
|
resourceSelections: {
|
|
1690
|
+
/** @internal */
|
|
938
1691
|
skillId: string;
|
|
1692
|
+
/** @internal */
|
|
939
1693
|
revisionId: string;
|
|
940
1694
|
}[];
|
|
1695
|
+
/** @internal */
|
|
941
1696
|
launchPlan: {
|
|
1697
|
+
/** @internal */
|
|
942
1698
|
launcherId: string;
|
|
1699
|
+
/** @internal */
|
|
943
1700
|
processId: string;
|
|
1701
|
+
/** @internal */
|
|
944
1702
|
handoffDedupKey: string | null;
|
|
1703
|
+
/** @internal */
|
|
945
1704
|
processInput: {
|
|
1705
|
+
/** @internal */
|
|
946
1706
|
processId: string;
|
|
1707
|
+
/** @internal */
|
|
947
1708
|
selectedTurnId: string | null;
|
|
1709
|
+
/** @internal */
|
|
948
1710
|
lifecycleStatus: "error" | "completed" | "aborted" | "waiting" | "discovered" | "active";
|
|
1711
|
+
/** @internal */
|
|
949
1712
|
title: string | null;
|
|
1713
|
+
/** @internal */
|
|
950
1714
|
externalId: string | null;
|
|
1715
|
+
/** @internal */
|
|
951
1716
|
externalUrl: string | null;
|
|
1717
|
+
/** @internal */
|
|
952
1718
|
metadata: {
|
|
953
1719
|
[x: string]: unknown;
|
|
954
1720
|
} | null;
|
|
1721
|
+
/** @internal */
|
|
955
1722
|
defaultModelProfileId: string | null;
|
|
1723
|
+
/** @internal */
|
|
956
1724
|
turnConfigsJson: string | null;
|
|
1725
|
+
/** @internal */
|
|
957
1726
|
selectedTurnModelProfileId: string | null;
|
|
1727
|
+
/** @internal */
|
|
958
1728
|
selectedTurnModelKind: "explicit" | "inherited" | null;
|
|
1729
|
+
/** @internal */
|
|
959
1730
|
selectedTurnModelSource: "action_override" | "launch_override" | "instance_turn_config" | "process_config_turn" | "instance_default" | "process_config_default" | "catalog_default" | "legacy_persisted" | null;
|
|
1731
|
+
/** @internal */
|
|
960
1732
|
paramsJson: string | null;
|
|
1733
|
+
/** @internal */
|
|
961
1734
|
stateJson: string | null;
|
|
962
1735
|
};
|
|
1736
|
+
/** @internal */
|
|
963
1737
|
titleSourceFields: {
|
|
1738
|
+
/** @internal */
|
|
964
1739
|
label: string;
|
|
1740
|
+
/** @internal */
|
|
965
1741
|
value: string;
|
|
966
1742
|
}[];
|
|
1743
|
+
/** @internal */
|
|
967
1744
|
projectInputs: {
|
|
1745
|
+
/** @internal */
|
|
968
1746
|
key: string;
|
|
1747
|
+
/** @internal */
|
|
969
1748
|
repoLocator: string;
|
|
1749
|
+
/** @internal */
|
|
970
1750
|
baseBranch: string;
|
|
1751
|
+
/** @internal */
|
|
971
1752
|
workBranch: string | null;
|
|
1753
|
+
/** @internal */
|
|
972
1754
|
externalId: string | null;
|
|
1755
|
+
/** @internal */
|
|
973
1756
|
externalUrl: string | null;
|
|
1757
|
+
/** @internal */
|
|
974
1758
|
metadata: {
|
|
975
1759
|
[x: string]: unknown;
|
|
976
1760
|
} | null;
|
|
977
1761
|
}[];
|
|
1762
|
+
/** @internal */
|
|
978
1763
|
startTurnId: string | null;
|
|
979
1764
|
};
|
|
980
1765
|
};
|
|
1766
|
+
/** @internal */
|
|
981
1767
|
declare const normalizeFutureActionPayload: (payload: FutureActionPayloadBase) => {
|
|
1768
|
+
/** @internal */
|
|
982
1769
|
input: {
|
|
983
1770
|
[x: string]: unknown;
|
|
984
1771
|
};
|
|
1772
|
+
/** @internal */
|
|
985
1773
|
nextTurnModelProfileId: string | null;
|
|
1774
|
+
/** @internal */
|
|
986
1775
|
actionLabel: string | null;
|
|
1776
|
+
/** @internal */
|
|
987
1777
|
actor: Actor | null;
|
|
988
1778
|
};
|
|
1779
|
+
/** @internal */
|
|
989
1780
|
export type FutureLaunchPayload = ReturnType<typeof normalizeFutureLaunchPayload>;
|
|
1781
|
+
/** @internal */
|
|
990
1782
|
export type FutureActionPayload = ReturnType<typeof normalizeFutureActionPayload>;
|
|
1783
|
+
/** @internal */
|
|
991
1784
|
export declare function parseScheduleRequestInput(value: unknown): ParseResult<ParsedScheduleRequest>;
|
|
1785
|
+
/** @internal */
|
|
992
1786
|
export declare function validateScheduleRequestInput(schedule: ParsedScheduleRequest, allowedModes: readonly ScheduleMode[], options?: {
|
|
1787
|
+
/** @internal */
|
|
993
1788
|
now?: () => Date;
|
|
1789
|
+
/** @internal */
|
|
994
1790
|
resolveCronNextRunAt?: (expression: string, now: Date) => string;
|
|
995
1791
|
}): ParseResult<ValidatedScheduleRequest>;
|
|
1792
|
+
/** @internal */
|
|
996
1793
|
export declare function parseLauncherTurnConfigsJson(turnConfigsJson: string | null | undefined): ParseResult<InstanceTurnConfigMap>;
|
|
1794
|
+
/** @internal */
|
|
997
1795
|
export declare function parseLauncherInputJson(launcherInputJson: string | null | undefined, context?: string): ParseResult<Record<string, unknown>>;
|
|
1796
|
+
/** @internal */
|
|
998
1797
|
export declare function parseLauncherModelConfigInput(value: unknown, context?: string): ParseResult<LaunchModelConfigInput>;
|
|
1798
|
+
/** @internal */
|
|
999
1799
|
export declare function parseLauncherRequestBody(value: unknown): ParseResult<ParsedLauncherRequestBody>;
|
|
1800
|
+
/** @internal */
|
|
1000
1801
|
export declare function parseActionRequestBody(value: unknown): ParseResult<ParsedActionRequestBody>;
|
|
1802
|
+
/** @internal */
|
|
1001
1803
|
export declare function serializeFutureLaunchPayload(payload: unknown): string;
|
|
1804
|
+
/** @internal */
|
|
1002
1805
|
export declare function parseFutureLaunchPayloadObject(value: unknown, context?: string): ParseResult<FutureLaunchPayload>;
|
|
1806
|
+
/** @internal */
|
|
1003
1807
|
export declare function parseFutureLaunchPayloadJson(payloadJson: string): ParseResult<FutureLaunchPayload>;
|
|
1808
|
+
/** @internal */
|
|
1004
1809
|
export declare function serializeFutureActionPayload(payload: unknown): string;
|
|
1810
|
+
/** @internal */
|
|
1005
1811
|
export declare function parseFutureActionPayloadObject(value: unknown, context?: string): ParseResult<FutureActionPayload>;
|
|
1812
|
+
/** @internal */
|
|
1006
1813
|
export declare function parseFutureActionPayloadJson(payloadJson: string): ParseResult<FutureActionPayload>;
|
|
1007
1814
|
export type { ApiTokenMetadata, ApiTokenPolicy, ApiTokensResponseBody, CreateApiTokenResponseBody, } from "./api-token-contracts.js";
|
|
1008
1815
|
//# sourceMappingURL=http-contracts.d.ts.map
|