@leitwerk-dev/protocol 0.1.0 → 0.1.2
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/config-snapshot.d.ts +34 -33
- package/dist/config-snapshot.js +1 -1
- package/dist/config-snapshot.js.map +1 -1
- package/dist/form-contract.d.ts +11 -10
- package/dist/form-contract.js +1 -1
- package/dist/form-contract.js.map +1 -1
- package/dist/http-contracts.d.ts +7 -959
- package/dist/http-contracts.js +31 -432
- package/dist/http-contracts.js.map +1 -1
- package/dist/index.d.ts +177 -21
- package/dist/index.js +1087 -20
- package/dist/index.js.map +1 -1
- package/dist/launcher-contract.d.ts +12 -10
- package/dist/launcher-contract.js +1 -1
- package/dist/launcher-contract.js.map +1 -1
- package/dist/tool-renderer-contract.d.ts +9 -8
- package/dist/tool-renderer-contract.js +10 -21
- package/dist/tool-renderer-contract.js.map +1 -1
- package/package.json +2 -2
- package/dist/config-snapshot.d.ts.map +0 -1
- package/dist/external-review.d.ts +0 -8
- package/dist/external-review.d.ts.map +0 -1
- package/dist/external-review.js +0 -2
- package/dist/external-review.js.map +0 -1
- package/dist/form-contract.d.ts.map +0 -1
- package/dist/http-contracts.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/initial-prompt.d.ts +0 -8
- package/dist/initial-prompt.d.ts.map +0 -1
- package/dist/initial-prompt.js +0 -103
- package/dist/initial-prompt.js.map +0 -1
- package/dist/launcher-contract.d.ts.map +0 -1
- package/dist/live-turn-projection.d.ts +0 -39
- package/dist/live-turn-projection.d.ts.map +0 -1
- package/dist/live-turn-projection.js +0 -395
- package/dist/live-turn-projection.js.map +0 -1
- package/dist/pi-session-message.d.ts +0 -25
- package/dist/pi-session-message.d.ts.map +0 -1
- package/dist/pi-session-message.js +0 -27
- package/dist/pi-session-message.js.map +0 -1
- package/dist/primary-path-snapshot.d.ts +0 -77
- package/dist/primary-path-snapshot.d.ts.map +0 -1
- package/dist/primary-path-snapshot.js +0 -2
- package/dist/primary-path-snapshot.js.map +0 -1
- package/dist/protocol.d.ts +0 -428
- package/dist/protocol.d.ts.map +0 -1
- package/dist/protocol.js +0 -261
- package/dist/protocol.js.map +0 -1
- package/dist/session-entry-tree.d.ts +0 -15
- package/dist/session-entry-tree.d.ts.map +0 -1
- package/dist/session-entry-tree.js +0 -42
- package/dist/session-entry-tree.js.map +0 -1
- package/dist/streamable-events.d.ts +0 -4
- package/dist/streamable-events.d.ts.map +0 -1
- package/dist/streamable-events.js +0 -17
- package/dist/streamable-events.js.map +0 -1
- package/dist/text-preview.d.ts +0 -7
- package/dist/text-preview.d.ts.map +0 -1
- package/dist/text-preview.js +0 -23
- package/dist/text-preview.js.map +0 -1
- package/dist/timeline-projection.d.ts +0 -9
- package/dist/timeline-projection.d.ts.map +0 -1
- package/dist/timeline-projection.js +0 -30
- package/dist/timeline-projection.js.map +0 -1
- package/dist/timestamp-ordering.d.ts +0 -3
- package/dist/timestamp-ordering.d.ts.map +0 -1
- package/dist/timestamp-ordering.js +0 -15
- package/dist/timestamp-ordering.js.map +0 -1
- package/dist/tool-renderer-contract.d.ts.map +0 -1
- package/dist/turn-continuation.d.ts +0 -36
- package/dist/turn-continuation.d.ts.map +0 -1
- package/dist/turn-continuation.js +0 -179
- package/dist/turn-continuation.js.map +0 -1
- package/dist/usage-by-turn-record.d.ts +0 -5
- package/dist/usage-by-turn-record.d.ts.map +0 -1
- package/dist/usage-by-turn-record.js +0 -25
- package/dist/usage-by-turn-record.js.map +0 -1
- package/dist/usage-snapshot.d.ts +0 -25
- package/dist/usage-snapshot.d.ts.map +0 -1
- package/dist/usage-snapshot.js +0 -120
- package/dist/usage-snapshot.js.map +0 -1
- package/dist/ws-event-payloads.d.ts +0 -18
- package/dist/ws-event-payloads.d.ts.map +0 -1
- package/dist/ws-event-payloads.js +0 -47
- package/dist/ws-event-payloads.js.map +0 -1
package/dist/http-contracts.d.ts
CHANGED
|
@@ -1,959 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
import
|
|
8
|
-
import type { ToolCallRendererDefinition } from "./tool-renderer-contract.js";
|
|
9
|
-
export interface AuthMeResponseBody {
|
|
10
|
-
authEnabled: boolean;
|
|
11
|
-
actor: Actor | null;
|
|
12
|
-
}
|
|
13
|
-
export interface ProcessListItem {
|
|
14
|
-
process: ProcessInstance;
|
|
15
|
-
projects: ProcessProject[];
|
|
16
|
-
workerLease: WorkerLease | null;
|
|
17
|
-
processDisplayName: string | null;
|
|
18
|
-
}
|
|
19
|
-
export type ScheduleMode = "now" | "once" | "cron";
|
|
20
|
-
export type ScheduleConfigInput = {
|
|
21
|
-
mode: ScheduleMode;
|
|
22
|
-
runAt?: string | null;
|
|
23
|
-
cronExpression?: string | null;
|
|
24
|
-
};
|
|
25
|
-
export interface FutureExecutionBaseSummary {
|
|
26
|
-
id: string;
|
|
27
|
-
kind: "launch" | "action";
|
|
28
|
-
scheduleKind: "once" | "cron";
|
|
29
|
-
processId: string;
|
|
30
|
-
nextRunAt: string;
|
|
31
|
-
cronExpression: string | null;
|
|
32
|
-
title: string;
|
|
33
|
-
subtitle: string;
|
|
34
|
-
status?: "scheduled" | "blocked";
|
|
35
|
-
modelSelection?: DurableModelSelection | null;
|
|
36
|
-
blockedReason?: FutureExecutionBlockReason | null;
|
|
37
|
-
}
|
|
38
|
-
export type LauncherModelConfigDefaults = LaunchModelConfigInput;
|
|
39
|
-
export interface FutureLaunchSummary extends FutureExecutionBaseSummary {
|
|
40
|
-
kind: "launch";
|
|
41
|
-
launcherId: string;
|
|
42
|
-
launcherLabel: string;
|
|
43
|
-
launchTitle: string | null;
|
|
44
|
-
launcherInput: Record<string, unknown>;
|
|
45
|
-
skillIds: string[];
|
|
46
|
-
modelConfig: LauncherModelConfigDefaults;
|
|
47
|
-
}
|
|
48
|
-
export interface FutureActionSummary extends FutureExecutionBaseSummary {
|
|
49
|
-
kind: "action";
|
|
50
|
-
instanceId: string;
|
|
51
|
-
actionId: string;
|
|
52
|
-
actionLabel: string;
|
|
53
|
-
nextTurnModelProfileId: string | null;
|
|
54
|
-
}
|
|
55
|
-
export type FutureExecutionSummary = FutureLaunchSummary | FutureActionSummary;
|
|
56
|
-
export type ProcessActionFieldDefinition = ActionFormFieldDefinition;
|
|
57
|
-
export type ProcessActionFormDefinition = ActionFormDefinition;
|
|
58
|
-
export type ProcessActionPreviewSummary = {
|
|
59
|
-
kind: "turn" | "terminal";
|
|
60
|
-
turnId: string | null;
|
|
61
|
-
turnKind: ProcessTurnType | null;
|
|
62
|
-
description: string;
|
|
63
|
-
};
|
|
64
|
-
export interface ProcessActionSummary {
|
|
65
|
-
id: string;
|
|
66
|
-
label: string;
|
|
67
|
-
description: string | null;
|
|
68
|
-
preview: ProcessActionPreviewSummary | null;
|
|
69
|
-
supportsScheduling: boolean;
|
|
70
|
-
supportsNextTurnModelOverride: boolean;
|
|
71
|
-
form?: ProcessActionFormDefinition;
|
|
72
|
-
}
|
|
73
|
-
export interface ScheduledActionDetail {
|
|
74
|
-
id: string;
|
|
75
|
-
nextRunAt: string;
|
|
76
|
-
actionId: string;
|
|
77
|
-
actionLabel: string;
|
|
78
|
-
input: Record<string, unknown>;
|
|
79
|
-
nextTurnModelProfileId: string | null;
|
|
80
|
-
status?: "scheduled" | "blocked";
|
|
81
|
-
modelSelection?: DurableModelSelection | null;
|
|
82
|
-
blockedReason?: FutureExecutionBlockReason | null;
|
|
83
|
-
action: ProcessActionSummary;
|
|
84
|
-
}
|
|
85
|
-
export type ProcessActionModelResolutionSource = ProcessSelectedTurnModelSource | "persisted_selection" | "none";
|
|
86
|
-
export interface ProcessActionModelResolutionPreview {
|
|
87
|
-
status: "resolved" | "none" | "error";
|
|
88
|
-
modelProfileId: string | null;
|
|
89
|
-
source: ProcessActionModelResolutionSource | null;
|
|
90
|
-
error: string | null;
|
|
91
|
-
}
|
|
92
|
-
export interface ProcessActionWarmPromptCacheContext {
|
|
93
|
-
previousModelProfileId: string;
|
|
94
|
-
compatibleModelProfileIds: readonly string[];
|
|
95
|
-
expiresAt: string;
|
|
96
|
-
}
|
|
97
|
-
export interface PromptCacheSwitchResolution {
|
|
98
|
-
switchingModelMayBypassPromptCache: boolean;
|
|
99
|
-
recommendedModelProfileId: string | null;
|
|
100
|
-
}
|
|
101
|
-
export declare function resolvePromptCacheSwitch(input: {
|
|
102
|
-
context: ProcessActionWarmPromptCacheContext | null | undefined;
|
|
103
|
-
effectiveModelProfileId: string;
|
|
104
|
-
selectableModelProfileIds?: readonly string[];
|
|
105
|
-
now?: number;
|
|
106
|
-
}): PromptCacheSwitchResolution;
|
|
107
|
-
export interface ProcessActionModelPreview {
|
|
108
|
-
kind: "llm_turn" | "not_applicable" | "unavailable";
|
|
109
|
-
turnId: string | null;
|
|
110
|
-
description: string | null;
|
|
111
|
-
resolvedModel?: ProcessActionModelResolutionPreview;
|
|
112
|
-
warmPromptCache?: ProcessActionWarmPromptCacheContext;
|
|
113
|
-
unavailableReason?: "action_not_found" | "action_not_visible" | "invalid_action_input" | "action_failed";
|
|
114
|
-
unavailableMessage?: string | null;
|
|
115
|
-
}
|
|
116
|
-
export type ProcessExternalSourceSummary = {
|
|
117
|
-
id: string;
|
|
118
|
-
kind: string;
|
|
119
|
-
externalActionId?: string;
|
|
120
|
-
sourceKind?: string;
|
|
121
|
-
label: string | null;
|
|
122
|
-
description: string | null;
|
|
123
|
-
};
|
|
124
|
-
export type ProcessExternalTriggerSummary = ProcessExternalSourceSummary;
|
|
125
|
-
export interface ProcessSelectedTurnSummary {
|
|
126
|
-
turnId: string;
|
|
127
|
-
kind: ProcessTurnType;
|
|
128
|
-
description: string;
|
|
129
|
-
commentary: string | null;
|
|
130
|
-
externalTriggers: ProcessExternalSourceSummary[];
|
|
131
|
-
}
|
|
132
|
-
export type ModelProfileAvailability = "available" | "unavailable" | "stale";
|
|
133
|
-
export type ModelProfileOptionSummary = {
|
|
134
|
-
id: string;
|
|
135
|
-
label: string;
|
|
136
|
-
description: string;
|
|
137
|
-
availability: ModelProfileAvailability;
|
|
138
|
-
safeReason?: string | null;
|
|
139
|
-
checkedAt?: string | null;
|
|
140
|
-
};
|
|
141
|
-
export interface ProviderOptionChoiceSummary {
|
|
142
|
-
value: string;
|
|
143
|
-
label: string;
|
|
144
|
-
}
|
|
145
|
-
export interface ProviderOptionFieldSummary {
|
|
146
|
-
id: string;
|
|
147
|
-
label: string;
|
|
148
|
-
required: boolean;
|
|
149
|
-
minLength: number | null;
|
|
150
|
-
maxLength: number | null;
|
|
151
|
-
defaultValue: string | null;
|
|
152
|
-
/** Advisory values. Values outside this list can still be valid. */
|
|
153
|
-
choices: readonly ProviderOptionChoiceSummary[];
|
|
154
|
-
}
|
|
155
|
-
export interface ModelProviderOptionsResponseBody {
|
|
156
|
-
modelProfileId: string;
|
|
157
|
-
providerId: string;
|
|
158
|
-
fields: readonly ProviderOptionFieldSummary[];
|
|
159
|
-
choicesStatus: "available" | "unavailable";
|
|
160
|
-
choicesUnavailableReason: string | null;
|
|
161
|
-
}
|
|
162
|
-
export interface ProcessTurnModelConfigurationView {
|
|
163
|
-
turnId: string;
|
|
164
|
-
description: string;
|
|
165
|
-
pathType: string;
|
|
166
|
-
processConfigModelProfileId: string | null;
|
|
167
|
-
instanceModelProfileId: string | null;
|
|
168
|
-
effectiveConfiguredModelProfileId: string | null;
|
|
169
|
-
source: "instance" | "process_config" | "default";
|
|
170
|
-
}
|
|
171
|
-
export type ProcessModelConfigurationIssueView = {
|
|
172
|
-
code: "invalid_turn_configs_json";
|
|
173
|
-
reason: "invalid_json" | "not_object" | "turn_config_not_object";
|
|
174
|
-
turnId?: string;
|
|
175
|
-
};
|
|
176
|
-
export interface ProcessModelConfigurationView {
|
|
177
|
-
state: {
|
|
178
|
-
kind: "ready";
|
|
179
|
-
} | {
|
|
180
|
-
kind: "blocked";
|
|
181
|
-
issues: readonly ProcessModelConfigurationIssueView[];
|
|
182
|
-
};
|
|
183
|
-
availableProfiles: readonly ModelProfileOptionSummary[];
|
|
184
|
-
effectiveSelectedTurn: {
|
|
185
|
-
turnId: string;
|
|
186
|
-
description: string;
|
|
187
|
-
modelProfileId: string;
|
|
188
|
-
source: ProcessActionModelResolutionSource;
|
|
189
|
-
} | null;
|
|
190
|
-
defaultModel: {
|
|
191
|
-
processConfigModelProfileId: string | null;
|
|
192
|
-
instanceModelProfileId: string | null;
|
|
193
|
-
effectiveModelProfileId: string | null;
|
|
194
|
-
source: "instance" | "process_config" | "catalog_default" | "none";
|
|
195
|
-
};
|
|
196
|
-
turns: readonly ProcessTurnModelConfigurationView[];
|
|
197
|
-
}
|
|
198
|
-
export type ProcessRunToolParameterView = {
|
|
199
|
-
name: string;
|
|
200
|
-
type: string;
|
|
201
|
-
description: string;
|
|
202
|
-
required: boolean;
|
|
203
|
-
};
|
|
204
|
-
export type ProcessRunToolView = {
|
|
205
|
-
name: string;
|
|
206
|
-
description: string;
|
|
207
|
-
parameters: readonly ProcessRunToolParameterView[];
|
|
208
|
-
};
|
|
209
|
-
export type ProcessRunTurnView = {
|
|
210
|
-
turnId: string;
|
|
211
|
-
description: string;
|
|
212
|
-
pathType: string;
|
|
213
|
-
consumedProducts: readonly string[];
|
|
214
|
-
publishedProducts: readonly string[];
|
|
215
|
-
activePiToolNames: readonly string[];
|
|
216
|
-
outcomeActions: readonly ProcessRunToolView[];
|
|
217
|
-
};
|
|
218
|
-
export type ProcessRunDetailsView = {
|
|
219
|
-
systemPrompt: string | null;
|
|
220
|
-
appendSystemPrompt: string | null;
|
|
221
|
-
availablePiToolNames: readonly string[];
|
|
222
|
-
turns: readonly ProcessRunTurnView[];
|
|
223
|
-
};
|
|
224
|
-
export interface ProcessLaunchConfigurationParameterView {
|
|
225
|
-
fieldId: string;
|
|
226
|
-
label: string;
|
|
227
|
-
value: string | null;
|
|
228
|
-
}
|
|
229
|
-
export interface ProcessLaunchConfigurationProjectView {
|
|
230
|
-
key: string;
|
|
231
|
-
repoLocator: string;
|
|
232
|
-
repoLocatorKind: ProcessProject["repoLocatorKind"];
|
|
233
|
-
baseBranch: string;
|
|
234
|
-
workBranch: string | null;
|
|
235
|
-
externalId: string | null;
|
|
236
|
-
externalUrl: string | null;
|
|
237
|
-
pipelineStatus: string | null;
|
|
238
|
-
}
|
|
239
|
-
export interface ProcessLaunchConfigurationView {
|
|
240
|
-
launcherId: string | null;
|
|
241
|
-
launcherLabel: string | null;
|
|
242
|
-
launcherSchemaTitle: string | null;
|
|
243
|
-
paramsParseError: string | null;
|
|
244
|
-
parameters: readonly ProcessLaunchConfigurationParameterView[];
|
|
245
|
-
projects: readonly ProcessLaunchConfigurationProjectView[];
|
|
246
|
-
}
|
|
247
|
-
export interface PiSessionUsageSnapshot {
|
|
248
|
-
input: number;
|
|
249
|
-
output: number;
|
|
250
|
-
/** Provider-reported reasoning/thinking tokens. This is a subset of output tokens. */
|
|
251
|
-
reasoning?: number;
|
|
252
|
-
cacheRead: number;
|
|
253
|
-
cacheWrite: number;
|
|
254
|
-
totalTokens: number;
|
|
255
|
-
cost?: {
|
|
256
|
-
input: number;
|
|
257
|
-
output: number;
|
|
258
|
-
cacheRead: number;
|
|
259
|
-
cacheWrite: number;
|
|
260
|
-
total: number;
|
|
261
|
-
};
|
|
262
|
-
}
|
|
263
|
-
export type PiSessionTextContentBlock = {
|
|
264
|
-
type: "text";
|
|
265
|
-
text: string;
|
|
266
|
-
};
|
|
267
|
-
export type PiSessionThinkingContentBlock = {
|
|
268
|
-
type: "thinking";
|
|
269
|
-
thinking: string;
|
|
270
|
-
redacted?: boolean;
|
|
271
|
-
};
|
|
272
|
-
export type PiSessionToolCallContentBlock = {
|
|
273
|
-
type: "toolCall";
|
|
274
|
-
id: string;
|
|
275
|
-
name: string;
|
|
276
|
-
arguments: Record<string, unknown>;
|
|
277
|
-
};
|
|
278
|
-
export type PiSessionImageContentBlock = {
|
|
279
|
-
type: "image";
|
|
280
|
-
data: string;
|
|
281
|
-
mimeType: string;
|
|
282
|
-
};
|
|
283
|
-
export type PiSessionContentBlock = PiSessionTextContentBlock | PiSessionThinkingContentBlock | PiSessionToolCallContentBlock | PiSessionImageContentBlock;
|
|
284
|
-
export interface PiSessionMessageRecord {
|
|
285
|
-
role?: string;
|
|
286
|
-
content?: string | PiSessionContentBlock[];
|
|
287
|
-
toolCallId?: string;
|
|
288
|
-
toolName?: string;
|
|
289
|
-
details?: unknown;
|
|
290
|
-
isError?: boolean;
|
|
291
|
-
usage?: PiSessionUsageSnapshot;
|
|
292
|
-
stopReason?: string;
|
|
293
|
-
errorMessage?: string;
|
|
294
|
-
provider?: string;
|
|
295
|
-
model?: string;
|
|
296
|
-
timestamp?: number;
|
|
297
|
-
}
|
|
298
|
-
export interface PiSessionEntry {
|
|
299
|
-
type: string;
|
|
300
|
-
id: string;
|
|
301
|
-
parentId: string | null;
|
|
302
|
-
timestamp: string;
|
|
303
|
-
message?: PiSessionMessageRecord;
|
|
304
|
-
targetId?: string;
|
|
305
|
-
label?: string;
|
|
306
|
-
}
|
|
307
|
-
export interface ProcessDiagnosticsData {
|
|
308
|
-
process: ProcessInstance;
|
|
309
|
-
projects: ProcessProject[];
|
|
310
|
-
inputs: ProcessInput[];
|
|
311
|
-
events: ProcessEvent[];
|
|
312
|
-
leafOutcomeSnapshots: ProcessLeafOutcomeSnapshot[];
|
|
313
|
-
turnRecords: ProcessTurnRecord[];
|
|
314
|
-
turnAnnotations: ProcessTurnAnnotation[];
|
|
315
|
-
workerLease: WorkerLease | null;
|
|
316
|
-
processDisplayName: string | null;
|
|
317
|
-
processGraph: SerializedProcessGraph;
|
|
318
|
-
processFlow: ProcessFlowView;
|
|
319
|
-
piSessionEntries: PiSessionEntry[];
|
|
320
|
-
definesLeafOutcome: boolean;
|
|
321
|
-
selectedTurn?: ProcessSelectedTurnSummary | null;
|
|
322
|
-
scheduledAction?: ScheduledActionDetail | null;
|
|
323
|
-
modelConfiguration: ProcessModelConfigurationView;
|
|
324
|
-
runDetails: ProcessRunDetailsView;
|
|
325
|
-
launchConfiguration: ProcessLaunchConfigurationView;
|
|
326
|
-
actions: ProcessActionSummary[];
|
|
327
|
-
toolRenderers: ToolCallRendererDefinition[];
|
|
328
|
-
}
|
|
329
|
-
export interface ProcessDetailData extends ProcessDiagnosticsData {
|
|
330
|
-
primaryPath: PrimaryPathSnapshot;
|
|
331
|
-
}
|
|
332
|
-
export interface LauncherModelConfigSchema {
|
|
333
|
-
availableProfiles: readonly ModelProfileOptionSummary[];
|
|
334
|
-
llmTurns: ReadonlyArray<{
|
|
335
|
-
turnId: string;
|
|
336
|
-
description: string;
|
|
337
|
-
}>;
|
|
338
|
-
}
|
|
339
|
-
export type LauncherDefaultModelPreview = {
|
|
340
|
-
source: "instance_default" | "process_config_default" | "catalog_default" | "none";
|
|
341
|
-
profile: ModelProfileOptionSummary | null;
|
|
342
|
-
};
|
|
343
|
-
export interface LauncherTurnModelConfigPreview {
|
|
344
|
-
turnId: string;
|
|
345
|
-
description: string;
|
|
346
|
-
effective: {
|
|
347
|
-
source: ProcessActionModelResolutionSource;
|
|
348
|
-
profile: ModelProfileOptionSummary | null;
|
|
349
|
-
};
|
|
350
|
-
}
|
|
351
|
-
export type LauncherModelConfigPreview = {
|
|
352
|
-
defaultModel: LauncherDefaultModelPreview;
|
|
353
|
-
turns: readonly LauncherTurnModelConfigPreview[];
|
|
354
|
-
};
|
|
355
|
-
export type UiLauncherSummary = UiLauncherSummaryBase & {
|
|
356
|
-
modelConfigSchema?: LauncherModelConfigSchema;
|
|
357
|
-
processFlow?: ProcessFlowView;
|
|
358
|
-
};
|
|
359
|
-
export type ProcessRetryConfig = {
|
|
360
|
-
launcherId: string;
|
|
361
|
-
title: string | null;
|
|
362
|
-
launcherInput: Record<string, unknown>;
|
|
363
|
-
skillIds: string[];
|
|
364
|
-
modelConfig: LauncherModelConfigDefaults;
|
|
365
|
-
};
|
|
366
|
-
export type WatcherLaunchModelSummary = {
|
|
367
|
-
defaultModelProfileId: string | null;
|
|
368
|
-
turnConfigs: Array<{
|
|
369
|
-
turnId: string;
|
|
370
|
-
modelProfileId: string | null;
|
|
371
|
-
}>;
|
|
372
|
-
};
|
|
373
|
-
export interface WatcherSummaryBase {
|
|
374
|
-
processId: string;
|
|
375
|
-
processDisplayName: string;
|
|
376
|
-
watcherId: string;
|
|
377
|
-
label: string;
|
|
378
|
-
description: string;
|
|
379
|
-
type: ProcessWatcherType;
|
|
380
|
-
enabled: boolean;
|
|
381
|
-
pollInterval: string;
|
|
382
|
-
configPath: string;
|
|
383
|
-
targetSummary: string;
|
|
384
|
-
launchModel: WatcherLaunchModelSummary;
|
|
385
|
-
}
|
|
386
|
-
export interface JiraWatcherSummary extends WatcherSummaryBase {
|
|
387
|
-
type: "jira";
|
|
388
|
-
project: string;
|
|
389
|
-
labels: {
|
|
390
|
-
trigger: string;
|
|
391
|
-
done: string;
|
|
392
|
-
required?: string[];
|
|
393
|
-
forbidden?: string[];
|
|
394
|
-
};
|
|
395
|
-
targetBranchLabelPrefix: string;
|
|
396
|
-
}
|
|
397
|
-
export interface GitLabMrWatcherSummary extends WatcherSummaryBase {
|
|
398
|
-
type: "gitlab_mr";
|
|
399
|
-
group: string;
|
|
400
|
-
labels: {
|
|
401
|
-
trigger: string;
|
|
402
|
-
done: string;
|
|
403
|
-
};
|
|
404
|
-
}
|
|
405
|
-
export type FilesystemWatcherSummary = WatcherSummaryBase & {
|
|
406
|
-
type: "filesystem";
|
|
407
|
-
filePath: string;
|
|
408
|
-
};
|
|
409
|
-
export type WatcherSummary = JiraWatcherSummary | GitLabMrWatcherSummary | FilesystemWatcherSummary;
|
|
410
|
-
export interface SkillUsageSummary {
|
|
411
|
-
attachedAllTime: number;
|
|
412
|
-
attachedLast30Days: number;
|
|
413
|
-
invokedAllTime: number;
|
|
414
|
-
invokedLast30Days: number;
|
|
415
|
-
}
|
|
416
|
-
export interface SkillRepositorySummary {
|
|
417
|
-
id: string;
|
|
418
|
-
label: string;
|
|
419
|
-
url: string;
|
|
420
|
-
ref: string;
|
|
421
|
-
path: string;
|
|
422
|
-
lastRefreshedAt: string | null;
|
|
423
|
-
error: string | null;
|
|
424
|
-
}
|
|
425
|
-
export interface SkillCatalogItem {
|
|
426
|
-
repositoryId: string;
|
|
427
|
-
id: string;
|
|
428
|
-
label: string;
|
|
429
|
-
description: string | null;
|
|
430
|
-
sourcePath: string;
|
|
431
|
-
sourceRevision: string;
|
|
432
|
-
registered: boolean;
|
|
433
|
-
updateAvailable: boolean;
|
|
434
|
-
conflict: boolean;
|
|
435
|
-
stale: boolean;
|
|
436
|
-
usage: SkillUsageSummary;
|
|
437
|
-
}
|
|
438
|
-
export type SkillRegistrationKind = "configuration" | "catalog";
|
|
439
|
-
export interface InstalledSkillCatalogItem {
|
|
440
|
-
id: string;
|
|
441
|
-
label: string;
|
|
442
|
-
description: string | null;
|
|
443
|
-
activeRevisionId: string;
|
|
444
|
-
activeSourceRevision: string | null;
|
|
445
|
-
registrationKind: SkillRegistrationKind;
|
|
446
|
-
sourceRepositoryId: string | null;
|
|
447
|
-
updateAvailable: boolean;
|
|
448
|
-
usage: SkillUsageSummary;
|
|
449
|
-
}
|
|
450
|
-
export interface SkillRevisionSummary {
|
|
451
|
-
id: string;
|
|
452
|
-
sourceRevision: string | null;
|
|
453
|
-
importedAt: string;
|
|
454
|
-
active: boolean;
|
|
455
|
-
}
|
|
456
|
-
export interface SkillUsageProcessSummary {
|
|
457
|
-
instanceId: string;
|
|
458
|
-
title: string;
|
|
459
|
-
attachedAt: string;
|
|
460
|
-
invocationCount: number;
|
|
461
|
-
lastInvokedAt: string | null;
|
|
462
|
-
}
|
|
463
|
-
export interface SkillCatalogDetail extends SkillCatalogItem {
|
|
464
|
-
skillMarkdown: string;
|
|
465
|
-
processes: SkillUsageProcessSummary[];
|
|
466
|
-
}
|
|
467
|
-
export interface InstalledSkillCatalogDetail extends InstalledSkillCatalogItem {
|
|
468
|
-
skillMarkdown: string;
|
|
469
|
-
processes: SkillUsageProcessSummary[];
|
|
470
|
-
revisions: SkillRevisionSummary[];
|
|
471
|
-
}
|
|
472
|
-
export type ErrorResponseBody = {
|
|
473
|
-
error?: string | null;
|
|
474
|
-
code?: string | null;
|
|
475
|
-
};
|
|
476
|
-
export type ProcessesListResponseBody = {
|
|
477
|
-
processes: ProcessListItem[];
|
|
478
|
-
futureExecutions: FutureExecutionSummary[];
|
|
479
|
-
};
|
|
480
|
-
export interface ProcessOverviewItem extends ProcessRowSlot {
|
|
481
|
-
processDisplayName: string | null;
|
|
482
|
-
/** Nullable durable title before external-id/instance-id display fallback. */
|
|
483
|
-
processTitle: string | null;
|
|
484
|
-
initialPromptPreview: string | null;
|
|
485
|
-
createdAt: string;
|
|
486
|
-
updatedAt: string;
|
|
487
|
-
closedAt: string | null;
|
|
488
|
-
}
|
|
489
|
-
interface FutureExecutionOverviewItemBase {
|
|
490
|
-
id: string;
|
|
491
|
-
scheduleKind: "once" | "cron";
|
|
492
|
-
processId: string;
|
|
493
|
-
nextRunAt: string;
|
|
494
|
-
cronExpression: string | null;
|
|
495
|
-
title: string;
|
|
496
|
-
initialPromptPreview: string | null;
|
|
497
|
-
status?: "scheduled" | "blocked";
|
|
498
|
-
blockedReason?: FutureExecutionBlockReason | null;
|
|
499
|
-
}
|
|
500
|
-
export interface FutureLaunchOverviewItem extends FutureExecutionOverviewItemBase {
|
|
501
|
-
kind: "launch";
|
|
502
|
-
instanceId: null;
|
|
503
|
-
launcherId: string;
|
|
504
|
-
launcherLabel: string;
|
|
505
|
-
}
|
|
506
|
-
export interface FutureActionOverviewItem extends FutureExecutionOverviewItemBase {
|
|
507
|
-
kind: "action";
|
|
508
|
-
instanceId: string;
|
|
509
|
-
actionId: string;
|
|
510
|
-
actionLabel: string;
|
|
511
|
-
}
|
|
512
|
-
export type FutureExecutionOverviewItem = FutureLaunchOverviewItem | FutureActionOverviewItem;
|
|
513
|
-
export interface ProcessesOverviewResponseBody {
|
|
514
|
-
processes: ProcessOverviewItem[];
|
|
515
|
-
futureExecutions: FutureExecutionOverviewItem[];
|
|
516
|
-
/** True when the bounded sidebar response omitted less-recent rows. */
|
|
517
|
-
truncated: boolean;
|
|
518
|
-
}
|
|
519
|
-
export interface ProcessBrowsePagination {
|
|
520
|
-
limit: number;
|
|
521
|
-
offset: number;
|
|
522
|
-
total: number;
|
|
523
|
-
processTotal: number;
|
|
524
|
-
futureExecutionTotal: number;
|
|
525
|
-
hasMore: boolean;
|
|
526
|
-
}
|
|
527
|
-
export interface ProcessBrowseFacets {
|
|
528
|
-
statusCounts: Record<"all" | "running" | "scheduled" | "needs_attention" | "completed" | "aborted", number>;
|
|
529
|
-
processTypes: Array<{
|
|
530
|
-
value: string;
|
|
531
|
-
label: string;
|
|
532
|
-
count: number;
|
|
533
|
-
}>;
|
|
534
|
-
}
|
|
535
|
-
export type ProcessBrowseItem = {
|
|
536
|
-
kind: "process";
|
|
537
|
-
item: ProcessOverviewItem;
|
|
538
|
-
} | {
|
|
539
|
-
kind: "future";
|
|
540
|
-
item: FutureExecutionOverviewItem;
|
|
541
|
-
};
|
|
542
|
-
export interface ProcessBrowseResponseBody {
|
|
543
|
-
/** Globally sorted page. The browser must preserve this server-owned order. */
|
|
544
|
-
items: ProcessBrowseItem[];
|
|
545
|
-
pagination: ProcessBrowsePagination;
|
|
546
|
-
facets: ProcessBrowseFacets;
|
|
547
|
-
}
|
|
548
|
-
export type TurnTraceToolCallSnapshot = Omit<PrimaryPathToolCallSnapshot, "result"> & {
|
|
549
|
-
resultText: string | null;
|
|
550
|
-
truncated: boolean;
|
|
551
|
-
};
|
|
552
|
-
export type TurnPiInputPartRole = "user" | "system" | "unknown";
|
|
553
|
-
export interface TurnPiInputPart {
|
|
554
|
-
role: TurnPiInputPartRole;
|
|
555
|
-
text: string;
|
|
556
|
-
createdAt: string;
|
|
557
|
-
}
|
|
558
|
-
export interface TurnPiInputSnapshot {
|
|
559
|
-
parts: TurnPiInputPart[];
|
|
560
|
-
fullPrompt: string;
|
|
561
|
-
createdAt: string;
|
|
562
|
-
userInput?: string | null;
|
|
563
|
-
}
|
|
564
|
-
export interface TurnTraceSnapshot {
|
|
565
|
-
assistant: PrimaryPathStreamingAssistantSnapshot;
|
|
566
|
-
toolCalls: TurnTraceToolCallSnapshot[];
|
|
567
|
-
traceItems: PrimaryPathTraceItemSnapshot[];
|
|
568
|
-
usage: TurnUsageSnapshot | null;
|
|
569
|
-
piInput: TurnPiInputSnapshot | null;
|
|
570
|
-
}
|
|
571
|
-
export interface TurnTracePreview {
|
|
572
|
-
turnRecordId: string;
|
|
573
|
-
assistantTextPreview: string;
|
|
574
|
-
assistantTextTruncated: boolean;
|
|
575
|
-
thinkingPreview: string;
|
|
576
|
-
thinkingPreviewTruncated: boolean;
|
|
577
|
-
toolCallCount: number;
|
|
578
|
-
traceItemCount: number;
|
|
579
|
-
hasReasoningDetails: boolean;
|
|
580
|
-
usage: TurnUsageSnapshot | null;
|
|
581
|
-
piInput: {
|
|
582
|
-
createdAt: string | null;
|
|
583
|
-
partCount: number;
|
|
584
|
-
userInputPreview: string | null;
|
|
585
|
-
} | null;
|
|
586
|
-
}
|
|
587
|
-
export type ProcessTimelineTurnPresentation = "llm_turn" | "automatic_turn" | "operator_decision" | "external_trigger";
|
|
588
|
-
export interface ProcessTimelineTurnSummary {
|
|
589
|
-
id: string;
|
|
590
|
-
turnId: string;
|
|
591
|
-
turnType: ProcessTurnType;
|
|
592
|
-
displayTurn: string;
|
|
593
|
-
outcome: string;
|
|
594
|
-
summary: string;
|
|
595
|
-
output: string;
|
|
596
|
-
turnResultMarkdown: string;
|
|
597
|
-
pathType: ProcessTurnRecord["pathType"];
|
|
598
|
-
createdAt: string;
|
|
599
|
-
presentation: ProcessTimelineTurnPresentation;
|
|
600
|
-
status: "completed" | "in_progress";
|
|
601
|
-
modelProfileId: string | null;
|
|
602
|
-
/** Durable lineage needed by the chronicle rail and input correlation. */
|
|
603
|
-
attemptNumber: number;
|
|
604
|
-
parentTurnRecordId: string | null;
|
|
605
|
-
startedAt: string;
|
|
606
|
-
endedAt: string | null;
|
|
607
|
-
actionSource: "ui" | "external" | "scheduled" | null;
|
|
608
|
-
}
|
|
609
|
-
export type ProcessTimelineInputSummary = Pick<ProcessInput, "id" | "sequence" | "source" | "kind" | "bodyMarkdown" | "receivedAt" | "consumedAt">;
|
|
610
|
-
export interface ProcessExternalTriggerSignal {
|
|
611
|
-
triggerId: string;
|
|
612
|
-
state: "error" | "armed" | "triggered" | "waiting";
|
|
613
|
-
occurredAt: string | null;
|
|
614
|
-
secondaryDetail: string | null;
|
|
615
|
-
}
|
|
616
|
-
export interface ProcessTimelineSnapshot {
|
|
617
|
-
prompt: {
|
|
618
|
-
text: string | null;
|
|
619
|
-
createdAt: string | null;
|
|
620
|
-
};
|
|
621
|
-
turns: ProcessTimelineTurnSummary[];
|
|
622
|
-
tracePreviewsByTurnRecordId: Record<string, TurnTracePreview>;
|
|
623
|
-
inputs: ProcessTimelineInputSummary[];
|
|
624
|
-
externalTriggerSignals: ProcessExternalTriggerSignal[];
|
|
625
|
-
}
|
|
626
|
-
export interface CurrentErrorSummary {
|
|
627
|
-
title: string;
|
|
628
|
-
summary: string;
|
|
629
|
-
guidance?: string;
|
|
630
|
-
technicalDetail?: string | null;
|
|
631
|
-
}
|
|
632
|
-
export interface CurrentTurnRecoverySummary extends CurrentErrorSummary {
|
|
633
|
-
turnRecordId: string;
|
|
634
|
-
defaultContinuePrompt: string;
|
|
635
|
-
canContinue: boolean;
|
|
636
|
-
defaultModelProfileId: string | null;
|
|
637
|
-
providerOptions: Record<string, string>;
|
|
638
|
-
}
|
|
639
|
-
export interface StartupRecoverySummary extends CurrentErrorSummary {
|
|
640
|
-
startRecordId: string;
|
|
641
|
-
kind: "preparation_failed" | "bootstrap_failed";
|
|
642
|
-
action: "choose_model" | "retry_startup";
|
|
643
|
-
defaultModelProfileId: string | null;
|
|
644
|
-
providerOptions: Record<string, string>;
|
|
645
|
-
}
|
|
646
|
-
export type CurrentProcessErrorSummary = CurrentErrorSummary;
|
|
647
|
-
export interface ProcessUsageEstimateSnapshot {
|
|
648
|
-
usage: TurnUsageSnapshot;
|
|
649
|
-
includesLiveTurn: boolean;
|
|
650
|
-
totalLlmTurnCount: number;
|
|
651
|
-
coveredTurnCount: number;
|
|
652
|
-
missingUsageTurnCount: number;
|
|
653
|
-
missingCostTurnCount: number;
|
|
654
|
-
isPartial: boolean;
|
|
655
|
-
}
|
|
656
|
-
export interface PrimaryPathUiSnapshot extends PrimaryPathSnapshot {
|
|
657
|
-
entryCount: number;
|
|
658
|
-
entriesOmitted: true;
|
|
659
|
-
}
|
|
660
|
-
export type ProcessUiSnapshotProcess = Pick<ProcessInstance, "id" | "processId" | "selectedTurnId" | "lifecycleStatus" | "currentExecution" | "planRevision" | "title" | "externalId" | "externalUrl" | "initialDefaultModelProfileId" | "createdAt" | "updatedAt" | "closedAt">;
|
|
661
|
-
/**
|
|
662
|
-
* Initial render contract for process detail. Raw process events, inputs,
|
|
663
|
-
* session entries, projects, and full durable records belong to diagnostics;
|
|
664
|
-
* this DTO carries only browser-facing projections.
|
|
665
|
-
*/
|
|
666
|
-
export interface ProcessDetailUiSnapshotResponseBody {
|
|
667
|
-
process: ProcessUiSnapshotProcess;
|
|
668
|
-
/** Durable requests in Chronicle order; at most one is open for the current turn. */
|
|
669
|
-
questionRequests: ProcessQuestionRequest[];
|
|
670
|
-
leafOutcomeSnapshots: ProcessLeafOutcomeSnapshot[];
|
|
671
|
-
processDisplayName: string | null;
|
|
672
|
-
processFlow: ProcessFlowView;
|
|
673
|
-
definesLeafOutcome: boolean;
|
|
674
|
-
selectedTurn: ProcessSelectedTurnSummary | null;
|
|
675
|
-
scheduledAction: ScheduledActionDetail | null;
|
|
676
|
-
modelConfiguration: ProcessModelConfigurationView;
|
|
677
|
-
runDetails: ProcessRunDetailsView;
|
|
678
|
-
launchConfiguration: ProcessLaunchConfigurationView;
|
|
679
|
-
actions: ProcessActionSummary[];
|
|
680
|
-
toolRenderers: ToolCallRendererDefinition[];
|
|
681
|
-
primaryPath: PrimaryPathUiSnapshot;
|
|
682
|
-
timeline: ProcessTimelineSnapshot;
|
|
683
|
-
instanceTree: ProcessInstanceTreeResponseBody;
|
|
684
|
-
recovery: CurrentTurnRecoverySummary | null;
|
|
685
|
-
startupRecovery: StartupRecoverySummary | null;
|
|
686
|
-
processError: CurrentProcessErrorSummary | null;
|
|
687
|
-
usageEstimate: ProcessUsageEstimateSnapshot | null;
|
|
688
|
-
persistedModelSelectionWarning: string | null;
|
|
689
|
-
session: {
|
|
690
|
-
signature: string | null;
|
|
691
|
-
};
|
|
692
|
-
}
|
|
693
|
-
export type InstanceTreeTurnResultState = "succeeded" | "failed" | "aborted" | "pending";
|
|
694
|
-
/** Redacted, semantic process history. Pi message/activity categories are never exposed. */
|
|
695
|
-
export interface InstanceTreeNodeSummary {
|
|
696
|
-
id: string;
|
|
697
|
-
parentId: string | null;
|
|
698
|
-
label: string;
|
|
699
|
-
pathType: "primary" | "root_branch" | "leaf_branch";
|
|
700
|
-
resultState: InstanceTreeTurnResultState;
|
|
701
|
-
timestamp: string;
|
|
702
|
-
}
|
|
703
|
-
export interface InstanceTreeEdgeSummary {
|
|
704
|
-
id: string;
|
|
705
|
-
sourceNodeId: string;
|
|
706
|
-
targetNodeId: string | null;
|
|
707
|
-
hasContext: boolean;
|
|
708
|
-
productLabels: readonly string[];
|
|
709
|
-
actionLabel: string | null;
|
|
710
|
-
endState: "not_applied" | "completed" | null;
|
|
711
|
-
}
|
|
712
|
-
export interface ProcessInstanceTreeResponseBody {
|
|
713
|
-
currentLeafId: string | null;
|
|
714
|
-
nodes: InstanceTreeNodeSummary[];
|
|
715
|
-
edges: InstanceTreeEdgeSummary[];
|
|
716
|
-
}
|
|
717
|
-
export interface TurnReasoningDetailResponseBody {
|
|
718
|
-
instanceId: string;
|
|
719
|
-
turnRecordId: string;
|
|
720
|
-
sessionSignature: string | null;
|
|
721
|
-
reasoning: TurnTraceSnapshot;
|
|
722
|
-
}
|
|
723
|
-
export interface SubmitQuestionAnswersRequestBody {
|
|
724
|
-
draft: QuestionAnswerDraft[];
|
|
725
|
-
}
|
|
726
|
-
export type QuestionRequestMutationResponseBody = {
|
|
727
|
-
request: ProcessQuestionRequest;
|
|
728
|
-
};
|
|
729
|
-
export type FutureExecutionDetailResponseBody = FutureExecutionSummary;
|
|
730
|
-
export type LaunchersResponseBody = {
|
|
731
|
-
launchers: UiLauncherSummary[];
|
|
732
|
-
};
|
|
733
|
-
export type WatchersResponseBody = {
|
|
734
|
-
watchers: WatcherSummary[];
|
|
735
|
-
};
|
|
736
|
-
export type SkillCatalogDetailResponseBody = {
|
|
737
|
-
skill: SkillCatalogDetail;
|
|
738
|
-
};
|
|
739
|
-
export type InstalledSkillCatalogDetailResponseBody = {
|
|
740
|
-
skill: InstalledSkillCatalogDetail;
|
|
741
|
-
};
|
|
742
|
-
export type SkillsCatalogResponseBody = {
|
|
743
|
-
repositories: SkillRepositorySummary[];
|
|
744
|
-
availableSkills: SkillCatalogItem[];
|
|
745
|
-
installedSkills: InstalledSkillCatalogItem[];
|
|
746
|
-
};
|
|
747
|
-
export interface LauncherDefaultsResponseBody {
|
|
748
|
-
defaults: Record<string, unknown>;
|
|
749
|
-
title: string | null;
|
|
750
|
-
modelConfig: LauncherModelConfigDefaults;
|
|
751
|
-
warnings?: LauncherValidationError[];
|
|
752
|
-
}
|
|
753
|
-
export type LauncherOptionsResponseBody = {
|
|
754
|
-
options: Record<string, readonly FormFieldOptionDefinition[]>;
|
|
755
|
-
};
|
|
756
|
-
export type LauncherRecentValuesResponseBody = {
|
|
757
|
-
values: Record<string, readonly string[]>;
|
|
758
|
-
};
|
|
759
|
-
export type LauncherModelConfigPreviewResponseBody = {
|
|
760
|
-
preview: LauncherModelConfigPreview;
|
|
761
|
-
};
|
|
762
|
-
export interface LauncherMutationResponseBody {
|
|
763
|
-
kind?: "scheduled";
|
|
764
|
-
process?: ProcessInstance | null;
|
|
765
|
-
futureExecution?: FutureLaunchSummary | null;
|
|
766
|
-
projects?: ProcessProject[];
|
|
767
|
-
errors?: LauncherValidationError[];
|
|
768
|
-
error?: string | null;
|
|
769
|
-
}
|
|
770
|
-
export type ScheduledActionMutationResponseBody = {
|
|
771
|
-
kind?: "scheduled";
|
|
772
|
-
scheduledAction?: ScheduledActionDetail | null;
|
|
773
|
-
error?: string | null;
|
|
774
|
-
};
|
|
775
|
-
export type ProcessRetryConfigResponseBody = ProcessRetryConfig;
|
|
776
|
-
export type ProcessActionModelPreviewResponseBody = {
|
|
777
|
-
preview: ProcessActionModelPreview;
|
|
778
|
-
};
|
|
779
|
-
export type ProcessDiagnosticsResponseBody = ProcessDiagnosticsData;
|
|
780
|
-
export type PrimaryPathSnapshotResponseBody = PrimaryPathSnapshot;
|
|
781
|
-
export type CronPreviewResponseBody = {
|
|
782
|
-
nextRunAt: string;
|
|
783
|
-
};
|
|
784
|
-
type ParsedLauncherRequestBody = {
|
|
785
|
-
title: string | null;
|
|
786
|
-
titleProvided: boolean;
|
|
787
|
-
launcherInput: Record<string, unknown>;
|
|
788
|
-
launcherInputProvided: boolean;
|
|
789
|
-
skillIds?: string[];
|
|
790
|
-
modelConfig: LauncherModelConfigDefaults;
|
|
791
|
-
modelConfigProvided: boolean;
|
|
792
|
-
schedule: ParsedScheduleRequest;
|
|
793
|
-
scheduleProvided: boolean;
|
|
794
|
-
};
|
|
795
|
-
type ParsedActionRequestBody = {
|
|
796
|
-
input: Record<string, unknown>;
|
|
797
|
-
inputProvided: boolean;
|
|
798
|
-
nextTurnModelProfileId?: string | null;
|
|
799
|
-
nextTurnModelProfileIdProvided: boolean;
|
|
800
|
-
schedule: ParsedScheduleRequest;
|
|
801
|
-
scheduleProvided: boolean;
|
|
802
|
-
};
|
|
803
|
-
declare const futureLaunchPayloadInputSchema: v.ObjectSchema<{
|
|
804
|
-
readonly launcherInput: v.OptionalSchema<v.NullableSchema<v.CustomSchema<Record<string, unknown>, v.ErrorMessage<v.CustomIssue> | undefined>, undefined>, undefined>;
|
|
805
|
-
readonly modelConfig: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
806
|
-
readonly actor: v.OptionalSchema<v.NullableSchema<v.CustomSchema<Record<string, unknown>, v.ErrorMessage<v.CustomIssue> | undefined>, undefined>, undefined>;
|
|
807
|
-
readonly launchPlan: v.ObjectSchema<{
|
|
808
|
-
readonly launcherId: v.StringSchema<undefined>;
|
|
809
|
-
readonly processId: v.StringSchema<undefined>;
|
|
810
|
-
readonly handoffDedupKey: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
811
|
-
readonly processInput: v.ObjectSchema<{
|
|
812
|
-
readonly processId: v.StringSchema<undefined>;
|
|
813
|
-
readonly selectedTurnId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
814
|
-
readonly lifecycleStatus: v.PicklistSchema<readonly ["discovered", "active", "waiting", "error", "completed", "aborted"], undefined>;
|
|
815
|
-
readonly title: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
816
|
-
readonly externalId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
817
|
-
readonly externalUrl: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
818
|
-
readonly metadata: v.OptionalSchema<v.NullableSchema<v.CustomSchema<Record<string, unknown>, v.ErrorMessage<v.CustomIssue> | undefined>, undefined>, undefined>;
|
|
819
|
-
readonly defaultModelProfileId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
820
|
-
readonly turnConfigsJson: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
821
|
-
readonly selectedTurnModelProfileId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
822
|
-
readonly selectedTurnModelKind: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["explicit", "inherited"], undefined>, undefined>, undefined>;
|
|
823
|
-
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>;
|
|
824
|
-
readonly paramsJson: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
825
|
-
readonly stateJson: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
826
|
-
}, undefined>;
|
|
827
|
-
readonly titleSourceFields: v.OptionalSchema<v.NullableSchema<v.ArraySchema<v.ObjectSchema<{
|
|
828
|
-
readonly label: v.StringSchema<undefined>;
|
|
829
|
-
readonly value: v.StringSchema<undefined>;
|
|
830
|
-
}, undefined>, undefined>, undefined>, undefined>;
|
|
831
|
-
readonly projectInputs: v.OptionalSchema<v.NullableSchema<v.ArraySchema<v.ObjectSchema<{
|
|
832
|
-
readonly key: v.StringSchema<undefined>;
|
|
833
|
-
readonly repoLocator: v.StringSchema<undefined>;
|
|
834
|
-
readonly baseBranch: v.StringSchema<undefined>;
|
|
835
|
-
readonly workBranch: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
836
|
-
readonly externalId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
837
|
-
readonly externalUrl: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
838
|
-
readonly metadata: v.OptionalSchema<v.NullableSchema<v.CustomSchema<Record<string, unknown>, v.ErrorMessage<v.CustomIssue> | undefined>, undefined>, undefined>;
|
|
839
|
-
}, undefined>, undefined>, undefined>, undefined>;
|
|
840
|
-
readonly startTurnId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
841
|
-
}, undefined>;
|
|
842
|
-
readonly selectedSkillIds: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
843
|
-
readonly resourceSelections: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
844
|
-
readonly skillId: v.StringSchema<undefined>;
|
|
845
|
-
readonly revisionId: v.StringSchema<undefined>;
|
|
846
|
-
}, undefined>, undefined>, undefined>;
|
|
847
|
-
}, undefined>;
|
|
848
|
-
declare const futureActionPayloadInputSchema: v.ObjectSchema<{
|
|
849
|
-
readonly input: v.OptionalSchema<v.NullableSchema<v.CustomSchema<Record<string, unknown>, v.ErrorMessage<v.CustomIssue> | undefined>, undefined>, undefined>;
|
|
850
|
-
readonly nextTurnModelProfileId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
851
|
-
readonly actionLabel: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
852
|
-
readonly actor: v.OptionalSchema<v.NullableSchema<v.CustomSchema<Record<string, unknown>, v.ErrorMessage<v.CustomIssue> | undefined>, undefined>, undefined>;
|
|
853
|
-
}, undefined>;
|
|
854
|
-
export type ParsedScheduleRequest = {
|
|
855
|
-
mode: "now";
|
|
856
|
-
} | {
|
|
857
|
-
mode: "once";
|
|
858
|
-
runAt: string;
|
|
859
|
-
} | {
|
|
860
|
-
mode: "cron";
|
|
861
|
-
cronExpression: string;
|
|
862
|
-
};
|
|
863
|
-
type ValidatedScheduleRequest = {
|
|
864
|
-
mode: "now";
|
|
865
|
-
nextRunAt: null;
|
|
866
|
-
cronExpression: null;
|
|
867
|
-
} | {
|
|
868
|
-
mode: "once";
|
|
869
|
-
nextRunAt: string;
|
|
870
|
-
cronExpression: null;
|
|
871
|
-
} | {
|
|
872
|
-
mode: "cron";
|
|
873
|
-
nextRunAt: string;
|
|
874
|
-
cronExpression: string;
|
|
875
|
-
};
|
|
876
|
-
type FutureLaunchPayloadBase = v.InferOutput<typeof futureLaunchPayloadInputSchema>;
|
|
877
|
-
type FutureActionPayloadBase = v.InferOutput<typeof futureActionPayloadInputSchema>;
|
|
878
|
-
declare const normalizeFutureLaunchPayload: (payload: FutureLaunchPayloadBase) => {
|
|
879
|
-
launcherInput: {
|
|
880
|
-
[x: string]: unknown;
|
|
881
|
-
};
|
|
882
|
-
modelConfig: {
|
|
883
|
-
defaultModelProfileId: string | null;
|
|
884
|
-
turnConfigs: InstanceTurnConfigMap;
|
|
885
|
-
};
|
|
886
|
-
actor: Actor | null;
|
|
887
|
-
selectedSkillIds: string[];
|
|
888
|
-
resourceSelections: {
|
|
889
|
-
skillId: string;
|
|
890
|
-
revisionId: string;
|
|
891
|
-
}[];
|
|
892
|
-
launchPlan: {
|
|
893
|
-
launcherId: string;
|
|
894
|
-
processId: string;
|
|
895
|
-
handoffDedupKey: string | null;
|
|
896
|
-
processInput: {
|
|
897
|
-
processId: string;
|
|
898
|
-
selectedTurnId: string | null;
|
|
899
|
-
lifecycleStatus: "error" | "completed" | "aborted" | "waiting" | "discovered" | "active";
|
|
900
|
-
title: string | null;
|
|
901
|
-
externalId: string | null;
|
|
902
|
-
externalUrl: string | null;
|
|
903
|
-
metadata: {
|
|
904
|
-
[x: string]: unknown;
|
|
905
|
-
} | null;
|
|
906
|
-
defaultModelProfileId: string | null;
|
|
907
|
-
turnConfigsJson: string | null;
|
|
908
|
-
selectedTurnModelProfileId: string | null;
|
|
909
|
-
selectedTurnModelKind: "explicit" | "inherited" | null;
|
|
910
|
-
selectedTurnModelSource: "action_override" | "launch_override" | "instance_turn_config" | "process_config_turn" | "instance_default" | "process_config_default" | "catalog_default" | "legacy_persisted" | null;
|
|
911
|
-
paramsJson: string | null;
|
|
912
|
-
stateJson: string | null;
|
|
913
|
-
};
|
|
914
|
-
titleSourceFields: {
|
|
915
|
-
label: string;
|
|
916
|
-
value: string;
|
|
917
|
-
}[];
|
|
918
|
-
projectInputs: {
|
|
919
|
-
key: string;
|
|
920
|
-
repoLocator: string;
|
|
921
|
-
baseBranch: string;
|
|
922
|
-
workBranch: string | null;
|
|
923
|
-
externalId: string | null;
|
|
924
|
-
externalUrl: string | null;
|
|
925
|
-
metadata: {
|
|
926
|
-
[x: string]: unknown;
|
|
927
|
-
} | null;
|
|
928
|
-
}[];
|
|
929
|
-
startTurnId: string | null;
|
|
930
|
-
};
|
|
931
|
-
};
|
|
932
|
-
declare const normalizeFutureActionPayload: (payload: FutureActionPayloadBase) => {
|
|
933
|
-
input: {
|
|
934
|
-
[x: string]: unknown;
|
|
935
|
-
};
|
|
936
|
-
nextTurnModelProfileId: string | null;
|
|
937
|
-
actionLabel: string | null;
|
|
938
|
-
actor: Actor | null;
|
|
939
|
-
};
|
|
940
|
-
export type FutureLaunchPayload = ReturnType<typeof normalizeFutureLaunchPayload>;
|
|
941
|
-
export type FutureActionPayload = ReturnType<typeof normalizeFutureActionPayload>;
|
|
942
|
-
export declare function parseScheduleRequestInput(value: unknown): ParseResult<ParsedScheduleRequest>;
|
|
943
|
-
export declare function validateScheduleRequestInput(schedule: ParsedScheduleRequest, allowedModes: readonly ScheduleMode[], options?: {
|
|
944
|
-
now?: () => Date;
|
|
945
|
-
resolveCronNextRunAt?: (expression: string, now: Date) => string;
|
|
946
|
-
}): ParseResult<ValidatedScheduleRequest>;
|
|
947
|
-
export declare function parseLauncherTurnConfigsJson(turnConfigsJson: string | null | undefined): ParseResult<InstanceTurnConfigMap>;
|
|
948
|
-
export declare function parseLauncherInputJson(launcherInputJson: string | null | undefined, context?: string): ParseResult<Record<string, unknown>>;
|
|
949
|
-
export declare function parseLauncherModelConfigInput(value: unknown, context?: string): ParseResult<LaunchModelConfigInput>;
|
|
950
|
-
export declare function parseLauncherRequestBody(value: unknown): ParseResult<ParsedLauncherRequestBody>;
|
|
951
|
-
export declare function parseActionRequestBody(value: unknown): ParseResult<ParsedActionRequestBody>;
|
|
952
|
-
export declare function serializeFutureLaunchPayload(payload: unknown): string;
|
|
953
|
-
export declare function parseFutureLaunchPayloadObject(value: unknown, context?: string): ParseResult<FutureLaunchPayload>;
|
|
954
|
-
export declare function parseFutureLaunchPayloadJson(payloadJson: string): ParseResult<FutureLaunchPayload>;
|
|
955
|
-
export declare function serializeFutureActionPayload(payload: unknown): string;
|
|
956
|
-
export declare function parseFutureActionPayloadObject(value: unknown, context?: string): ParseResult<FutureActionPayload>;
|
|
957
|
-
export declare function parseFutureActionPayloadJson(payloadJson: string): ParseResult<FutureActionPayload>;
|
|
958
|
-
export {};
|
|
959
|
-
//# sourceMappingURL=http-contracts.d.ts.map
|
|
1
|
+
import '@leitwerk-dev/domain';
|
|
2
|
+
import 'valibot';
|
|
3
|
+
import './config-snapshot.js';
|
|
4
|
+
import './form-contract.js';
|
|
5
|
+
import './launcher-contract.js';
|
|
6
|
+
export { A as AuthMeResponseBody, C as CronPreviewResponseBody, h as CurrentErrorSummary, i as CurrentProcessErrorSummary, j as CurrentTurnRecoverySummary, k as ErrorResponseBody, l as FilesystemWatcherSummary, m as FutureActionOverviewItem, n as FutureActionPayload, o as FutureActionSummary, p as FutureExecutionBaseSummary, q as FutureExecutionDetailResponseBody, a as FutureExecutionOverviewItem, F as FutureExecutionSummary, r as FutureLaunchOverviewItem, s as FutureLaunchPayload, t as FutureLaunchSummary, G as GitLabMrWatcherSummary, I as InstalledSkillCatalogDetail, u as InstalledSkillCatalogDetailResponseBody, v as InstalledSkillCatalogItem, w as InstanceTreeEdgeSummary, x as InstanceTreeNodeSummary, y as InstanceTreeTurnResultState, J as JiraWatcherSummary, L as LauncherDefaultModelPreview, H as LauncherDefaultsResponseBody, M as LauncherModelConfigDefaults, N as LauncherModelConfigPreview, O as LauncherModelConfigPreviewResponseBody, Q as LauncherModelConfigSchema, R as LauncherMutationResponseBody, S as LauncherOptionsResponseBody, T as LauncherRecentValuesResponseBody, V as LauncherTurnModelConfigPreview, W as LaunchersResponseBody, X as ModelProfileAvailability, Y as ModelProfileOptionSummary, Z as ModelProviderOptionsResponseBody, $ as ParsedScheduleRequest, a0 as PiSessionContentBlock, a1 as PiSessionEntry, a2 as PiSessionImageContentBlock, a3 as PiSessionMessageRecord, a4 as PiSessionTextContentBlock, a5 as PiSessionThinkingContentBlock, a6 as PiSessionToolCallContentBlock, a7 as PiSessionUsageSnapshot, ac as PrimaryPathSnapshotResponseBody, ag as PrimaryPathUiSnapshot, aj as ProcessActionFieldDefinition, ak as ProcessActionFormDefinition, al as ProcessActionModelPreview, am as ProcessActionModelPreviewResponseBody, an as ProcessActionModelResolutionPreview, ao as ProcessActionModelResolutionSource, ap as ProcessActionPreviewSummary, aq as ProcessActionSummary, ar as ProcessActionWarmPromptCacheContext, at as ProcessBrowseFacets, au as ProcessBrowseItem, av as ProcessBrowsePagination, aw as ProcessBrowseResponseBody, ax as ProcessDetailData, ay as ProcessDetailUiSnapshotResponseBody, az as ProcessDiagnosticsData, aA as ProcessDiagnosticsResponseBody, aB as ProcessExternalSourceSummary, aC as ProcessExternalTriggerSignal, aD as ProcessExternalTriggerSummary, aE as ProcessInstanceTreeResponseBody, aF as ProcessLaunchConfigurationParameterView, aG as ProcessLaunchConfigurationProjectView, aH as ProcessLaunchConfigurationView, aI as ProcessListItem, aJ as ProcessModelConfigurationIssueView, aK as ProcessModelConfigurationView, aL as ProcessOverviewItem, aM as ProcessRetryConfig, aN as ProcessRetryConfigResponseBody, aO as ProcessRunDetailsView, aP as ProcessRunToolParameterView, aQ as ProcessRunToolView, aR as ProcessRunTurnView, aS as ProcessSelectedTurnSummary, aT as ProcessTimelineInputSummary, aU as ProcessTimelineSnapshot, g as ProcessTimelineTurnPresentation, f as ProcessTimelineTurnSummary, aV as ProcessTurnModelConfigurationView, aW as ProcessUiSnapshotProcess, aX as ProcessUsageEstimateSnapshot, aY as ProcessesListResponseBody, aZ as ProcessesOverviewResponseBody, a_ as PromptCacheSwitchResolution, a$ as ProviderOptionChoiceSummary, b0 as ProviderOptionFieldSummary, b1 as QuestionRequestMutationResponseBody, b3 as ScheduleConfigInput, b4 as ScheduleMode, b5 as ScheduledActionDetail, b6 as ScheduledActionMutationResponseBody, b7 as SkillCatalogDetail, b8 as SkillCatalogDetailResponseBody, b9 as SkillCatalogItem, ba as SkillRegistrationKind, bb as SkillRepositorySummary, bc as SkillRevisionSummary, bd as SkillUsageProcessSummary, be as SkillUsageSummary, bf as SkillsCatalogResponseBody, bg as StartupRecoverySummary, bh as SubmitQuestionAnswersRequestBody, bi as TurnPiInputPart, bj as TurnPiInputPartRole, bk as TurnPiInputSnapshot, bl as TurnReasoningDetailResponseBody, bm as TurnTracePreview, bn as TurnTraceSnapshot, bo as TurnTraceToolCallSnapshot, bq as UiLauncherSummary, bx as WatcherLaunchModelSummary, by as WatcherSummary, bz as WatcherSummaryBase, bA as WatchersResponseBody, bQ as parseActionRequestBody, bR as parseFutureActionPayloadJson, bS as parseFutureActionPayloadObject, bT as parseFutureLaunchPayloadJson, bU as parseFutureLaunchPayloadObject, bV as parseLauncherInputJson, bW as parseLauncherModelConfigInput, bX as parseLauncherRequestBody, bY as parseLauncherTurnConfigsJson, b$ as parseScheduleRequestInput, c2 as resolvePromptCacheSwitch, c3 as serializeFutureActionPayload, c4 as serializeFutureLaunchPayload, c6 as validateScheduleRequestInput } from './http-contracts-C8IXe8MU.js';
|
|
7
|
+
import './tool-renderer-contract.js';
|