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