@leitwerk-dev/protocol 0.1.9 → 0.2.1

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