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