@leitwerk-dev/process-sdk 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -0
- package/dist/browser-ui-extension.d.ts +20 -0
- package/dist/browser-ui-extension.d.ts.map +1 -1
- package/dist/capabilities.d.ts +6 -0
- package/dist/capabilities.d.ts.map +1 -1
- package/dist/{chunk-LIIP7FMU.js → chunk-5R6MVLHC.js} +1 -1
- package/dist/chunk-5R6MVLHC.js.map +1 -0
- package/dist/chunk-DVXW2ZUV.js +1 -0
- package/dist/chunk-DVXW2ZUV.js.map +1 -0
- package/dist/{chunk-TA4KO53Q.js → chunk-I7U6HCLN.js} +1 -7
- package/dist/chunk-I7U6HCLN.js.map +1 -0
- package/dist/{chunk-WFY2WWZE.js → chunk-TM2LTSW4.js} +1 -1
- package/dist/chunk-TM2LTSW4.js.map +1 -0
- package/dist/codecs.d.ts +1 -0
- package/dist/codecs.d.ts.map +1 -1
- package/dist/commit-message.d.ts +5 -0
- package/dist/commit-message.d.ts.map +1 -1
- package/dist/core-capabilities.d.ts +338 -20
- package/dist/core-capabilities.d.ts.map +1 -1
- package/dist/define-process.d.ts +195 -18
- package/dist/define-process.d.ts.map +1 -1
- package/dist/event-bus.d.ts +1 -0
- package/dist/event-bus.d.ts.map +1 -1
- package/dist/{extension-api-CcqZCYJx.d.ts → extension-api-3Vr3RE8S.d.ts} +1000 -108
- package/dist/extension-api.d.ts +385 -50
- package/dist/extension-api.d.ts.map +1 -1
- package/dist/external-action-source.d.ts +3 -1
- package/dist/external-action-source.d.ts.map +1 -1
- package/dist/external-source-poll.d.ts +18 -5
- package/dist/external-source-poll.d.ts.map +1 -1
- package/dist/flow.d.ts +308 -11
- package/dist/flow.d.ts.map +1 -1
- package/dist/form-contract.d.ts +1 -1
- package/dist/form-contract.d.ts.map +1 -1
- package/dist/fs-utils.d.ts +4 -0
- package/dist/fs-utils.d.ts.map +1 -1
- package/dist/git-binary.d.ts +2 -1
- package/dist/git-binary.d.ts.map +1 -1
- package/dist/git-binary.js.map +1 -1
- package/dist/graph-fragments.d.ts +16 -0
- package/dist/graph-fragments.d.ts.map +1 -1
- package/dist/host-capabilities.d.ts +9 -3
- package/dist/host-capabilities.d.ts.map +1 -1
- package/dist/index.d.ts +26 -26
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +270 -81
- package/dist/index.js.map +1 -1
- package/dist/integration-http.d.ts +14 -3
- package/dist/integration-http.d.ts.map +1 -1
- package/dist/json-data.d.ts +1 -1
- package/dist/json-data.d.ts.map +1 -1
- package/dist/leaf-outcome-renderer.d.ts +35 -0
- package/dist/leaf-outcome-renderer.d.ts.map +1 -1
- package/dist/leaf-outcome-renderer.js +12 -0
- package/dist/leaf-outcome-renderer.js.map +1 -1
- package/dist/leaf-outcomes.d.ts +3 -0
- package/dist/leaf-outcomes.d.ts.map +1 -1
- package/dist/model-provider.d.ts +144 -12
- package/dist/model-provider.d.ts.map +1 -1
- package/dist/pi-config-public.d.ts +2 -0
- package/dist/pi-config-public.d.ts.map +1 -0
- package/dist/pi-config-public.js +15 -0
- package/dist/pi-config-public.js.map +1 -0
- package/dist/pi-config.d.ts +40 -0
- package/dist/pi-config.d.ts.map +1 -1
- package/dist/pi-config.js +1 -1
- package/dist/process-definition-internals.d.ts +4 -0
- package/dist/process-definition-internals.d.ts.map +1 -1
- package/dist/process-flow-view.d.ts +2 -0
- package/dist/process-flow-view.d.ts.map +1 -1
- package/dist/process-graph.d.ts +34 -0
- package/dist/process-graph.d.ts.map +1 -1
- package/dist/process-launcher-builder.d.ts +5 -0
- package/dist/process-launcher-builder.d.ts.map +1 -1
- package/dist/process-watcher-builder.d.ts +5 -0
- package/dist/process-watcher-builder.d.ts.map +1 -1
- package/dist/process-watcher-source.d.ts +3 -1
- package/dist/process-watcher-source.d.ts.map +1 -1
- package/dist/project-binding.d.ts +5 -1
- package/dist/project-binding.d.ts.map +1 -1
- package/dist/registry-utils.d.ts +6 -0
- package/dist/registry-utils.d.ts.map +1 -1
- package/dist/repository-feedback.d.ts +36 -12
- package/dist/repository-feedback.d.ts.map +1 -1
- package/dist/repository-git-env.d.ts +6 -2
- package/dist/repository-git-env.d.ts.map +1 -1
- package/dist/repository-http.d.ts +13 -1
- package/dist/repository-http.d.ts.map +1 -1
- package/dist/repository-https.d.ts +1 -1
- package/dist/repository-https.d.ts.map +1 -1
- package/dist/repository-issue-watcher.d.ts +31 -6
- package/dist/repository-issue-watcher.d.ts.map +1 -1
- package/dist/repository-reconciliation.d.ts +5 -0
- package/dist/repository-reconciliation.d.ts.map +1 -0
- package/dist/repository-source-config.d.ts +29 -18
- package/dist/repository-source-config.d.ts.map +1 -1
- package/dist/repository-types.d.ts +28 -1
- package/dist/repository-types.d.ts.map +1 -1
- package/dist/review-flow-public.d.ts +2 -0
- package/dist/review-flow-public.d.ts.map +1 -0
- package/dist/review-flow-public.js +11 -0
- package/dist/review-flow-public.js.map +1 -0
- package/dist/review-flow.d.ts +6 -0
- package/dist/review-flow.d.ts.map +1 -1
- package/dist/review-flow.js +1 -1
- package/dist/runtime-internals-public.d.ts +2 -0
- package/dist/runtime-internals-public.d.ts.map +1 -0
- package/dist/runtime-internals-public.js +16 -0
- package/dist/runtime-internals-public.js.map +1 -0
- package/dist/runtime-internals.js +2 -1
- package/dist/server-events.d.ts +67 -0
- package/dist/server-events.d.ts.map +1 -1
- package/dist/server-process-builder.d.ts +7 -0
- package/dist/server-process-builder.d.ts.map +1 -1
- package/dist/state-helpers.d.ts +6 -0
- package/dist/state-helpers.d.ts.map +1 -1
- package/dist/subprocess-env.d.ts +3 -0
- package/dist/subprocess-env.d.ts.map +1 -1
- package/dist/tool-arguments.d.ts +4 -2
- package/dist/tool-arguments.d.ts.map +1 -1
- package/dist/tool-renderers.d.ts +6 -0
- package/dist/tool-renderers.d.ts.map +1 -1
- package/dist/turn-semantics.d.ts +14 -1
- package/dist/turn-semantics.d.ts.map +1 -1
- package/dist/types.d.ts +205 -24
- package/dist/types.d.ts.map +1 -1
- package/dist/ui-process-builder.d.ts +5 -0
- package/dist/ui-process-builder.d.ts.map +1 -1
- package/dist/worker-process-builder.d.ts +5 -0
- package/dist/worker-process-builder.d.ts.map +1 -1
- package/package.json +16 -15
- package/src/browser-ui-extension.ts +20 -0
- package/src/capabilities.ts +9 -1
- package/src/codecs.ts +1 -0
- package/src/commit-message.ts +5 -0
- package/src/core-capabilities.ts +398 -35
- package/src/define-process.ts +198 -23
- package/src/event-bus.ts +1 -0
- package/src/extension-api.ts +399 -55
- package/src/external-action-source.ts +7 -2
- package/src/external-source-poll.ts +72 -6
- package/src/flow.ts +352 -23
- package/src/form-contract.ts +0 -4
- package/src/fs-utils.ts +4 -0
- package/src/git-binary.ts +2 -1
- package/src/graph-fragments.ts +16 -0
- package/src/host-capabilities.ts +9 -6
- package/src/index.ts +14 -202
- package/src/integration-http.ts +15 -3
- package/src/json-data.ts +1 -1
- package/src/leaf-outcome-renderer.ts +35 -0
- package/src/leaf-outcomes.ts +3 -0
- package/src/model-provider.ts +169 -20
- package/src/pi-config-public.ts +7 -0
- package/src/pi-config.ts +47 -2
- package/src/process-definition-internals.ts +4 -0
- package/src/process-flow-view.ts +2 -0
- package/src/process-graph.ts +34 -0
- package/src/process-launcher-builder.ts +5 -0
- package/src/process-watcher-builder.ts +5 -0
- package/src/process-watcher-source.ts +6 -4
- package/src/project-binding.ts +5 -1
- package/src/registry-utils.ts +6 -0
- package/src/repository-feedback.ts +59 -5
- package/src/repository-git-env.ts +6 -2
- package/src/repository-http.ts +19 -2
- package/src/repository-https.ts +1 -1
- package/src/repository-issue-watcher.ts +64 -7
- package/src/repository-reconciliation.ts +30 -0
- package/src/repository-source-config.ts +66 -4
- package/src/repository-types.ts +43 -5
- package/src/review-flow-public.ts +5 -0
- package/src/review-flow.ts +6 -0
- package/src/runtime-internals-public.ts +7 -0
- package/src/server-events.ts +67 -0
- package/src/server-process-builder.ts +10 -1
- package/src/state-helpers.ts +6 -0
- package/src/subprocess-env.ts +3 -0
- package/src/tool-arguments.ts +4 -2
- package/src/tool-renderers.ts +6 -0
- package/src/turn-semantics.ts +15 -2
- package/src/types.ts +212 -30
- package/src/ui-process-builder.ts +8 -1
- package/src/worker-process-builder.ts +8 -1
- package/dist/chunk-LIIP7FMU.js.map +0 -1
- package/dist/chunk-TA4KO53Q.js.map +0 -1
- package/dist/chunk-WFY2WWZE.js.map +0 -1
|
@@ -1,428 +1,746 @@
|
|
|
1
1
|
import type { Actor, InputKind, InputSource, LaunchModelConfigInput, ProcessEvent, ProcessInputTarget, ProcessInstance, ProcessLifecycleStatus, ProcessProject, TurnId, WorkerErrorClass } from "@leitwerk-dev/domain";
|
|
2
2
|
import type { KnownDurableWsFrameType, KnownEphemeralWsFrameType, LauncherModelConfigPreview, LauncherModelConfigSchema, ProcessActionModelPreview, WsPayloadByType } from "@leitwerk-dev/protocol";
|
|
3
3
|
import type { ExternalActionSource, FormDefinition, LauncherContext, LaunchPreparationCheck, ProcessLaunchConfig, ProcessLauncherService, ProcessLaunchPlan, ProcessWatcherPresentation, ProcessWatcherSource, RepositoryCredentialRegistrar } from "./extension-api.js";
|
|
4
|
+
/** @internal */
|
|
4
5
|
export interface ProcessCreateInputLike {
|
|
6
|
+
/** @internal */
|
|
5
7
|
processId?: ProcessInstance["processId"];
|
|
8
|
+
/** @internal */
|
|
6
9
|
selectedTurnId?: ProcessInstance["selectedTurnId"];
|
|
10
|
+
/** @internal */
|
|
7
11
|
lifecycleStatus?: ProcessInstance["lifecycleStatus"];
|
|
12
|
+
/** @internal */
|
|
8
13
|
title?: string | null;
|
|
14
|
+
/** @internal */
|
|
9
15
|
externalId?: string | null;
|
|
16
|
+
/** @internal */
|
|
10
17
|
externalUrl?: string | null;
|
|
18
|
+
/** @internal */
|
|
11
19
|
metadata?: Record<string, unknown> | null;
|
|
20
|
+
/** @internal */
|
|
12
21
|
defaultModelProfileId?: string | null;
|
|
22
|
+
/** @internal */
|
|
13
23
|
turnConfigsJson?: string | null;
|
|
24
|
+
/** @internal */
|
|
14
25
|
selectedTurnModelProfileId?: string | null;
|
|
26
|
+
/** @internal */
|
|
15
27
|
paramsJson?: string | null;
|
|
28
|
+
/** @internal */
|
|
16
29
|
stateJson?: string | null;
|
|
17
30
|
}
|
|
31
|
+
/** @public */
|
|
18
32
|
export interface ProcessRepoLike {
|
|
33
|
+
/** @internal */
|
|
19
34
|
create(input: ProcessCreateInputLike): ProcessInstance;
|
|
35
|
+
/** @internal */
|
|
20
36
|
getById(id: string): ProcessInstance | null;
|
|
37
|
+
/** @public */
|
|
21
38
|
listAll(): ProcessInstance[];
|
|
22
|
-
/** Startup-only compatibility migrations may rewrite persisted process position and state. */
|
|
39
|
+
/** Startup-only compatibility migrations may rewrite persisted process position and state. @public */
|
|
23
40
|
update(id: string, input: {
|
|
41
|
+
/** @public */
|
|
24
42
|
selectedTurnId?: TurnId | null;
|
|
43
|
+
/** Encoded params rewritten by a startup compatibility migration. @public */
|
|
44
|
+
paramsJson?: string | null;
|
|
45
|
+
/** @public */
|
|
25
46
|
currentExecution?: ProcessInstance["currentExecution"];
|
|
47
|
+
/** @public */
|
|
26
48
|
stateJson?: string | null;
|
|
27
49
|
}): ProcessInstance | null;
|
|
28
50
|
}
|
|
51
|
+
/** @public */
|
|
29
52
|
export interface ProcessProjectRepoLike {
|
|
30
|
-
/** Server-provided project mutation service. Implementations should emit project.updated after committed writes. */
|
|
53
|
+
/** Server-provided project mutation service. Implementations should emit project.updated after committed writes. @internal */
|
|
31
54
|
create(input: {
|
|
55
|
+
/** @internal */
|
|
32
56
|
instanceId: string;
|
|
57
|
+
/** @internal */
|
|
33
58
|
key: string;
|
|
59
|
+
/** @internal */
|
|
34
60
|
repoLocator: string;
|
|
61
|
+
/** @internal */
|
|
35
62
|
baseBranch: string;
|
|
63
|
+
/** @internal */
|
|
36
64
|
workBranch?: string | null;
|
|
65
|
+
/** @internal */
|
|
37
66
|
externalId?: string | null;
|
|
67
|
+
/** @internal */
|
|
38
68
|
externalUrl?: string | null;
|
|
69
|
+
/** @internal */
|
|
39
70
|
metadata?: Record<string, unknown> | null;
|
|
71
|
+
/** @internal */
|
|
40
72
|
pipelineStatus?: string | null;
|
|
41
73
|
}): ProcessProject;
|
|
74
|
+
/** @internal */
|
|
42
75
|
getByInstanceAndKey(instanceId: string, key: string): ProcessProject | null;
|
|
76
|
+
/** @public */
|
|
43
77
|
update(id: string, input: {
|
|
78
|
+
/** @internal */
|
|
44
79
|
baseBranch?: string;
|
|
80
|
+
/** @internal */
|
|
45
81
|
workBranch?: string | null;
|
|
82
|
+
/** @internal */
|
|
46
83
|
externalId?: string | null;
|
|
84
|
+
/** @internal */
|
|
47
85
|
externalUrl?: string | null;
|
|
86
|
+
/** @public */
|
|
48
87
|
metadata?: Record<string, unknown> | null;
|
|
88
|
+
/** @internal */
|
|
49
89
|
pipelineStatus?: string | null;
|
|
50
90
|
}): ProcessProject | null;
|
|
91
|
+
/** @internal */
|
|
51
92
|
listByInstance(instanceId: string): ProcessProject[];
|
|
52
93
|
}
|
|
94
|
+
/** @public */
|
|
53
95
|
export interface ProcessEventRepoLike {
|
|
96
|
+
/** @public */
|
|
54
97
|
create(input: {
|
|
98
|
+
/** @public */
|
|
55
99
|
instanceId: string;
|
|
100
|
+
/** @public */
|
|
56
101
|
eventType: string;
|
|
102
|
+
/** @public */
|
|
57
103
|
data?: Record<string, unknown>;
|
|
58
104
|
}): unknown;
|
|
105
|
+
/** @internal */
|
|
59
106
|
listByInstance(instanceId: string, limit?: number): ProcessEvent[];
|
|
60
107
|
}
|
|
108
|
+
/** @internal */
|
|
61
109
|
export interface BroadcasterLike {
|
|
110
|
+
/** @internal */
|
|
62
111
|
sendDurable<T extends KnownDurableWsFrameType>(type: T, payload: WsPayloadByType[T], instanceId?: string): void;
|
|
112
|
+
/** @internal */
|
|
63
113
|
sendEphemeral?<T extends KnownEphemeralWsFrameType>(type: T, payload: WsPayloadByType[T], instanceId?: string): void;
|
|
64
114
|
}
|
|
115
|
+
/** @internal */
|
|
65
116
|
export type LaunchModelConfigInputLike = LaunchModelConfigInput;
|
|
117
|
+
/** @internal */
|
|
66
118
|
export type LauncherModelConfigSchemaLike = LauncherModelConfigSchema;
|
|
119
|
+
/** @internal */
|
|
67
120
|
export type LauncherModelConfigPreviewLike = LauncherModelConfigPreview;
|
|
121
|
+
/** @internal */
|
|
68
122
|
export interface LauncherModelConfigServiceLike {
|
|
123
|
+
/** @internal */
|
|
69
124
|
getSchema(launcherId: string): Promise<LauncherModelConfigSchemaLike | null>;
|
|
125
|
+
/** @internal */
|
|
70
126
|
preview(launcherId: string, launcherInput: Record<string, unknown>, opts?: {
|
|
127
|
+
/** @internal */
|
|
71
128
|
modelConfig?: LaunchModelConfigInputLike;
|
|
72
129
|
}): Promise<LauncherModelConfigPreviewLike | null>;
|
|
73
130
|
}
|
|
74
|
-
/** Stable, machine-readable codes returned while preparing a launch. */
|
|
131
|
+
/** Stable, machine-readable codes returned while preparing a launch. @internal */
|
|
75
132
|
export type LaunchPlanPreparationIssueCode = "process_id_mismatch" | "invalid_turn_configs_json" | "unknown_model_profile" | "model_profile_not_allowed" | "unknown_llm_turn" | "selected_turn_model_requires_selected_turn" | "selected_turn_model_requires_llm_turn" | "model_required";
|
|
76
|
-
/** Complete, presentation-safe diagnostic returned while preparing a launch. */
|
|
133
|
+
/** Complete, presentation-safe diagnostic returned while preparing a launch. @internal */
|
|
77
134
|
export interface LaunchPlanPreparationIssue {
|
|
135
|
+
/** @internal */
|
|
78
136
|
readonly code: LaunchPlanPreparationIssueCode;
|
|
137
|
+
/** @internal */
|
|
79
138
|
readonly message: string;
|
|
80
139
|
}
|
|
140
|
+
/** @internal */
|
|
81
141
|
export type LaunchPlanPreparationResultLike = {
|
|
142
|
+
/** @internal */
|
|
82
143
|
ok: true;
|
|
144
|
+
/** @internal */
|
|
83
145
|
launchPlan: ProcessLaunchPlan;
|
|
146
|
+
/** @internal */
|
|
84
147
|
modelConfig: LaunchModelConfigInputLike;
|
|
148
|
+
/** @internal */
|
|
85
149
|
warnings: readonly LaunchPlanPreparationIssue[];
|
|
86
150
|
} | {
|
|
151
|
+
/** @internal */
|
|
87
152
|
ok: false;
|
|
88
|
-
/** Normalized durable plan retained when a scheduled launch is blocked. */
|
|
153
|
+
/** Normalized durable plan retained when a scheduled launch is blocked. @internal */
|
|
89
154
|
launchPlan: ProcessLaunchPlan;
|
|
155
|
+
/** @internal */
|
|
90
156
|
modelConfig: LaunchModelConfigInputLike;
|
|
157
|
+
/** @internal */
|
|
91
158
|
errors: readonly LaunchPlanPreparationIssue[];
|
|
92
159
|
};
|
|
160
|
+
/** @internal */
|
|
93
161
|
export interface ProcessLaunchPlanServiceLike {
|
|
162
|
+
/** @internal */
|
|
94
163
|
prepare(launchPlan: ProcessLaunchPlan, opts?: {
|
|
164
|
+
/** @internal */
|
|
95
165
|
modelConfig?: LaunchModelConfigInputLike;
|
|
166
|
+
/** @internal */
|
|
96
167
|
replaceModelConfig?: boolean;
|
|
168
|
+
/** @internal */
|
|
97
169
|
invalidModelConfig?: "reject" | "omit";
|
|
98
170
|
}): Promise<LaunchPlanPreparationResultLike>;
|
|
99
171
|
}
|
|
172
|
+
/** @internal */
|
|
100
173
|
export interface HandoffDedupKeyRecordLike {
|
|
174
|
+
/** @internal */
|
|
101
175
|
key: string;
|
|
176
|
+
/** @internal */
|
|
102
177
|
instanceId: string;
|
|
178
|
+
/** @internal */
|
|
103
179
|
createdAt: string;
|
|
180
|
+
/** @internal */
|
|
104
181
|
metadata: Record<string, unknown>;
|
|
105
182
|
}
|
|
183
|
+
/** @internal */
|
|
106
184
|
export interface HandoffDedupKeyServiceLike {
|
|
185
|
+
/** @internal */
|
|
107
186
|
getByKey(key: string): HandoffDedupKeyRecordLike | null;
|
|
108
187
|
}
|
|
188
|
+
/** @internal */
|
|
109
189
|
export interface WorkerSupervisorLike {
|
|
190
|
+
/** @internal */
|
|
110
191
|
spawnWorker(instanceId: string): Promise<unknown>;
|
|
192
|
+
/** @internal */
|
|
111
193
|
getWorker(instanceId: string): unknown | undefined;
|
|
112
194
|
}
|
|
195
|
+
/** @public */
|
|
113
196
|
export interface ProcessEngineResultLike {
|
|
197
|
+
/** @public */
|
|
114
198
|
ok: boolean;
|
|
199
|
+
/** @internal */
|
|
115
200
|
code?: string;
|
|
201
|
+
/** @internal */
|
|
116
202
|
message?: string;
|
|
203
|
+
/** @internal */
|
|
117
204
|
process?: ProcessInstance | null;
|
|
205
|
+
/** @internal */
|
|
118
206
|
stage?: "pre_commit" | "post_commit";
|
|
207
|
+
/** @internal */
|
|
119
208
|
data?: unknown;
|
|
120
209
|
}
|
|
210
|
+
/** @internal */
|
|
121
211
|
export interface DeferredProcessActivationExpected {
|
|
212
|
+
/** @internal */
|
|
122
213
|
processId: string;
|
|
214
|
+
/** @internal */
|
|
123
215
|
lifecycleStatus: ProcessLifecycleStatus;
|
|
216
|
+
/** @internal */
|
|
124
217
|
selectedTurnId: TurnId | null;
|
|
218
|
+
/** @internal */
|
|
125
219
|
title: string | null;
|
|
220
|
+
/** @internal */
|
|
126
221
|
paramsJson: string | null;
|
|
222
|
+
/** @internal */
|
|
127
223
|
projectId: string;
|
|
224
|
+
/** @internal */
|
|
128
225
|
projectKey: string;
|
|
226
|
+
/** @internal */
|
|
129
227
|
repoLocator: string;
|
|
228
|
+
/** @internal */
|
|
130
229
|
baseBranch: string;
|
|
230
|
+
/** @internal */
|
|
131
231
|
workBranch: string | null;
|
|
132
232
|
}
|
|
233
|
+
/** @internal */
|
|
133
234
|
export interface DeferredProcessActivationSnapshot extends DeferredProcessActivationExpected {
|
|
235
|
+
/** @internal */
|
|
134
236
|
instanceId: string;
|
|
237
|
+
/** @internal */
|
|
135
238
|
processMetadata: Record<string, unknown> | null;
|
|
239
|
+
/** @internal */
|
|
136
240
|
projectMetadata: Record<string, unknown> | null;
|
|
137
241
|
}
|
|
242
|
+
/** @internal */
|
|
138
243
|
export interface DeferredProcessActivationSnapshotQuery {
|
|
244
|
+
/** @internal */
|
|
139
245
|
projectKey: string;
|
|
246
|
+
/** @internal */
|
|
140
247
|
instanceId?: string;
|
|
248
|
+
/** @internal */
|
|
141
249
|
processId?: string;
|
|
142
250
|
}
|
|
251
|
+
/** @internal */
|
|
143
252
|
export type DeferredProcessActivationSnapshotResult = {
|
|
253
|
+
/** @internal */
|
|
144
254
|
outcome: "ready";
|
|
255
|
+
/** @internal */
|
|
145
256
|
snapshots: DeferredProcessActivationSnapshot[];
|
|
146
257
|
} | {
|
|
258
|
+
/** @internal */
|
|
147
259
|
outcome: "process_not_found";
|
|
148
260
|
} | {
|
|
261
|
+
/** @internal */
|
|
149
262
|
outcome: "project_not_found";
|
|
150
263
|
};
|
|
264
|
+
/** @internal */
|
|
151
265
|
export interface DeferredProcessActivationEvent {
|
|
266
|
+
/** @internal */
|
|
152
267
|
eventType: string;
|
|
268
|
+
/** @internal */
|
|
153
269
|
data?: Record<string, unknown>;
|
|
270
|
+
/** @internal */
|
|
154
271
|
level: "info" | "warn" | "error";
|
|
272
|
+
/** @internal */
|
|
155
273
|
message: string;
|
|
156
274
|
}
|
|
275
|
+
/** @internal */
|
|
157
276
|
export interface PreparedDeferredProcessActivation {
|
|
277
|
+
/** @internal */
|
|
158
278
|
expected: DeferredProcessActivationExpected;
|
|
279
|
+
/** @internal */
|
|
159
280
|
workBranch: string;
|
|
281
|
+
/** @internal */
|
|
160
282
|
paramsJson: string;
|
|
283
|
+
/** @internal */
|
|
161
284
|
projectMetadata: Record<string, unknown> | null;
|
|
285
|
+
/** @internal */
|
|
162
286
|
selectedTurnId: TurnId;
|
|
287
|
+
/** @internal */
|
|
163
288
|
event: DeferredProcessActivationEvent;
|
|
289
|
+
/** @internal */
|
|
164
290
|
actor?: Actor;
|
|
165
291
|
}
|
|
292
|
+
/** @internal */
|
|
166
293
|
export type DeferredProcessActivationOutcome = "activated" | "already_activated" | "stale" | "not_applicable" | "project_not_found" | "invalid_selected_turn";
|
|
294
|
+
/** @internal */
|
|
167
295
|
export interface DeferredProcessActivationFailure {
|
|
296
|
+
/** @internal */
|
|
168
297
|
expected: DeferredProcessActivationExpected;
|
|
298
|
+
/** @internal */
|
|
169
299
|
errorClass: WorkerErrorClass;
|
|
300
|
+
/** @internal */
|
|
170
301
|
event: DeferredProcessActivationEvent;
|
|
171
302
|
}
|
|
303
|
+
/** @internal */
|
|
172
304
|
export type ProcessActionExecutionSource = "ui" | "external" | "scheduled";
|
|
305
|
+
/** @internal */
|
|
173
306
|
export type ProcessActionExecutionOrigin = "web_ui" | "external_interface" | "scheduled";
|
|
307
|
+
/** @internal */
|
|
174
308
|
export interface ProcessActionSummaryLike {
|
|
309
|
+
/** @internal */
|
|
175
310
|
id: string;
|
|
311
|
+
/** @internal */
|
|
176
312
|
label: string;
|
|
313
|
+
/** @internal */
|
|
177
314
|
description?: string | null;
|
|
315
|
+
/** @internal */
|
|
178
316
|
form?: FormDefinition;
|
|
179
317
|
}
|
|
318
|
+
/** @internal */
|
|
180
319
|
export type ActionExecutionFailureStageLike = "pre_commit" | "post_commit";
|
|
320
|
+
/** @public */
|
|
181
321
|
export type ActionExecutionResultLike = {
|
|
322
|
+
/** @public */
|
|
182
323
|
ok: true;
|
|
324
|
+
/** @internal */
|
|
183
325
|
process: ProcessInstance | null;
|
|
326
|
+
/** @internal */
|
|
184
327
|
data?: Record<string, unknown>;
|
|
328
|
+
/** @internal */
|
|
185
329
|
error?: undefined;
|
|
330
|
+
/** @internal */
|
|
186
331
|
code?: undefined;
|
|
332
|
+
/** @internal */
|
|
187
333
|
stage?: undefined;
|
|
188
334
|
} | {
|
|
335
|
+
/** @public */
|
|
189
336
|
ok: false;
|
|
337
|
+
/** @internal */
|
|
190
338
|
stage: "pre_commit";
|
|
339
|
+
/** @internal */
|
|
191
340
|
error: string;
|
|
341
|
+
/** @internal */
|
|
192
342
|
code?: string;
|
|
343
|
+
/** @internal */
|
|
193
344
|
process?: undefined;
|
|
345
|
+
/** @internal */
|
|
194
346
|
data?: undefined;
|
|
195
347
|
} | {
|
|
348
|
+
/** @public */
|
|
196
349
|
ok: false;
|
|
350
|
+
/** @internal */
|
|
197
351
|
stage: "post_commit";
|
|
352
|
+
/** @internal */
|
|
198
353
|
process: ProcessInstance;
|
|
354
|
+
/** @internal */
|
|
199
355
|
error: string;
|
|
356
|
+
/** @internal */
|
|
200
357
|
code?: string;
|
|
358
|
+
/** @internal */
|
|
201
359
|
data?: Record<string, unknown>;
|
|
202
360
|
};
|
|
361
|
+
/** @internal */
|
|
203
362
|
export interface ProcessActionServiceLike {
|
|
363
|
+
/** @internal */
|
|
204
364
|
listVisibleActions(instanceId: string): readonly ProcessActionSummaryLike[];
|
|
365
|
+
/** @internal */
|
|
205
366
|
executeAction(instanceId: string, actionId: string, input: Record<string, unknown>, opts?: {
|
|
367
|
+
/** @internal */
|
|
206
368
|
source?: ProcessActionExecutionSource;
|
|
369
|
+
/** @internal */
|
|
207
370
|
origin?: ProcessActionExecutionOrigin;
|
|
371
|
+
/** @internal */
|
|
208
372
|
nextTurnModelProfileId?: string | null;
|
|
373
|
+
/** @internal */
|
|
209
374
|
actor?: Actor;
|
|
210
375
|
}): Promise<ActionExecutionResultLike>;
|
|
211
376
|
}
|
|
377
|
+
/** @public */
|
|
212
378
|
export interface ExternalObservationInput {
|
|
379
|
+
/** @public */
|
|
213
380
|
instanceId: string;
|
|
381
|
+
/** @public */
|
|
214
382
|
armingId: string;
|
|
383
|
+
/** @public */
|
|
215
384
|
generation: string;
|
|
385
|
+
/** @public */
|
|
216
386
|
observation?: {
|
|
387
|
+
/** @public */
|
|
217
388
|
summary: string;
|
|
389
|
+
/** @internal */
|
|
218
390
|
links?: import("@leitwerk-dev/domain").TurnProgressLink[];
|
|
391
|
+
/** @public */
|
|
219
392
|
observedAt: string;
|
|
393
|
+
/** @public */
|
|
220
394
|
subject: string;
|
|
395
|
+
/** @public */
|
|
221
396
|
revision: string;
|
|
222
397
|
};
|
|
398
|
+
/** @public */
|
|
223
399
|
refreshError?: string;
|
|
224
400
|
}
|
|
401
|
+
/** @public */
|
|
225
402
|
export interface ExternalSourceArmingLike {
|
|
226
|
-
/** Process-local arming id. Durable arming identity is { instanceId, id }. */
|
|
403
|
+
/** Process-local arming id. Durable arming identity is { instanceId, id }. @public */
|
|
227
404
|
id: string;
|
|
405
|
+
/** @public */
|
|
228
406
|
instanceId: string;
|
|
407
|
+
/** @internal */
|
|
229
408
|
processId: string;
|
|
409
|
+
/** @internal */
|
|
230
410
|
turnId: string;
|
|
411
|
+
/** @internal */
|
|
231
412
|
externalActionId: string;
|
|
413
|
+
/** @internal */
|
|
232
414
|
source: ExternalActionSource;
|
|
415
|
+
/** @public */
|
|
233
416
|
resolved: unknown;
|
|
234
|
-
/** Opaque identity of this resolved subscription. */
|
|
417
|
+
/** Opaque identity of this resolved subscription. @public */
|
|
235
418
|
generation?: string;
|
|
236
419
|
}
|
|
420
|
+
/** @public */
|
|
237
421
|
export interface ExternalSourceFireInput {
|
|
422
|
+
/** @public */
|
|
238
423
|
instanceId: string;
|
|
424
|
+
/** @public */
|
|
239
425
|
armingId: string;
|
|
240
|
-
/** Reject a superseded subscription instead of queuing its event for a later turn. */
|
|
426
|
+
/** Reject a superseded subscription instead of queuing its event for a later turn. @internal */
|
|
241
427
|
generation?: string;
|
|
428
|
+
/** @internal */
|
|
242
429
|
input?: Record<string, unknown>;
|
|
430
|
+
/** @public */
|
|
243
431
|
event?: Record<string, unknown>;
|
|
432
|
+
/** @public */
|
|
244
433
|
mergeKey?: string | null;
|
|
245
434
|
}
|
|
435
|
+
/** @public */
|
|
246
436
|
export interface ExternalSourceServiceLike {
|
|
437
|
+
/** @public */
|
|
247
438
|
listArmed(kind: string): readonly ExternalSourceArmingLike[];
|
|
439
|
+
/** @public */
|
|
248
440
|
fire(input: ExternalSourceFireInput): Promise<ActionExecutionResultLike>;
|
|
249
|
-
/** Records facts without firing an action or changing lifecycle state. */
|
|
441
|
+
/** Records facts without firing an action or changing lifecycle state. @public */
|
|
250
442
|
observe?(input: ExternalObservationInput): Promise<ActionExecutionResultLike>;
|
|
251
443
|
}
|
|
444
|
+
/** @internal */
|
|
252
445
|
export interface LauncherRecentValuesServiceLike {
|
|
446
|
+
/** @internal */
|
|
253
447
|
list(launcherId: string): Record<string, readonly string[]>;
|
|
448
|
+
/** @internal */
|
|
254
449
|
record(launcherId: string, launcherInput: Record<string, unknown>): void;
|
|
255
450
|
}
|
|
451
|
+
/** @internal */
|
|
256
452
|
export interface QueuedProcessInputLike {
|
|
453
|
+
/** @internal */
|
|
257
454
|
source: InputSource;
|
|
455
|
+
/** @internal */
|
|
258
456
|
kind: InputKind;
|
|
457
|
+
/** @internal */
|
|
259
458
|
bodyMarkdown: string;
|
|
459
|
+
/** @internal */
|
|
260
460
|
target?: ProcessInputTarget | null;
|
|
261
|
-
/** Stable principal that queued this input. Defaults to SYSTEM_ACTOR at persist time. */
|
|
461
|
+
/** Stable principal that queued this input. Defaults to SYSTEM_ACTOR at persist time. @internal */
|
|
262
462
|
actor?: Actor;
|
|
263
463
|
}
|
|
464
|
+
/** @public */
|
|
264
465
|
export interface ProcessEngineLike {
|
|
466
|
+
/** @internal */
|
|
265
467
|
getDeferredProcessActivationSnapshots(query: DeferredProcessActivationSnapshotQuery): DeferredProcessActivationSnapshotResult;
|
|
468
|
+
/** @internal */
|
|
266
469
|
activateDeferredProcess(instanceId: string, prepared: PreparedDeferredProcessActivation): Promise<ProcessEngineResultLike & {
|
|
470
|
+
/** @internal */
|
|
267
471
|
data?: {
|
|
472
|
+
/** @internal */
|
|
268
473
|
outcome: DeferredProcessActivationOutcome;
|
|
269
474
|
};
|
|
270
475
|
}>;
|
|
476
|
+
/** @internal */
|
|
271
477
|
parkDeferredProcessActivationFailure(instanceId: string, failure: DeferredProcessActivationFailure): Promise<ProcessEngineResultLike & {
|
|
478
|
+
/** @internal */
|
|
272
479
|
data?: {
|
|
480
|
+
/** @internal */
|
|
273
481
|
outcome: "parked" | "stale" | "not_applicable" | "project_not_found";
|
|
274
482
|
};
|
|
275
483
|
}>;
|
|
484
|
+
/** @internal */
|
|
276
485
|
startProcess(instanceId: string, startTurnId: TurnId): Promise<ProcessEngineResultLike>;
|
|
486
|
+
/** @public */
|
|
277
487
|
abortProcess(instanceId: string, opts?: {
|
|
488
|
+
/** @internal */
|
|
278
489
|
actor?: Actor;
|
|
279
490
|
}): Promise<ProcessEngineResultLike>;
|
|
280
|
-
/** Retries the current failed startup or accepted turn; startup retries consume no attempt. */
|
|
491
|
+
/** Retries the current failed startup or accepted turn; startup retries consume no attempt. @public */
|
|
281
492
|
retryProcess(instanceId: string, opts?: {
|
|
493
|
+
/** @internal */
|
|
282
494
|
nextTurnModelProfileId?: string | null;
|
|
495
|
+
/** @internal */
|
|
283
496
|
actor?: Actor;
|
|
284
497
|
}): Promise<ProcessEngineResultLike>;
|
|
498
|
+
/** @internal */
|
|
285
499
|
continueFailedTurn(instanceId: string, turnRecordId: string, options?: {
|
|
500
|
+
/** @internal */
|
|
286
501
|
prompt?: string | null;
|
|
502
|
+
/** @internal */
|
|
287
503
|
nextTurnModelProfileId?: string | null;
|
|
504
|
+
/** @internal */
|
|
288
505
|
actor?: Actor;
|
|
289
506
|
}): Promise<ProcessEngineResultLike>;
|
|
507
|
+
/** @internal */
|
|
290
508
|
queueInputs(instanceId: string, inputs: readonly QueuedProcessInputLike[], opts?: {
|
|
509
|
+
/** @internal */
|
|
291
510
|
dispatchErrorMessage?: string;
|
|
511
|
+
/** @internal */
|
|
292
512
|
actor?: Actor;
|
|
293
513
|
}): Promise<ProcessEngineResultLike>;
|
|
294
514
|
}
|
|
515
|
+
/** @internal */
|
|
295
516
|
export interface ComponentConfigLike {
|
|
517
|
+
/** @internal */
|
|
296
518
|
repo: string;
|
|
519
|
+
/** @internal */
|
|
297
520
|
default_branch: string;
|
|
298
521
|
}
|
|
522
|
+
/** @public */
|
|
299
523
|
export interface RegisteredProcessWatcherLike<TConfig = unknown, TEvent = unknown> {
|
|
524
|
+
/** @public */
|
|
300
525
|
readonly processId: string;
|
|
526
|
+
/** @internal */
|
|
301
527
|
readonly processDisplayName: string;
|
|
528
|
+
/** @public */
|
|
302
529
|
readonly watcherId: string;
|
|
530
|
+
/** @internal */
|
|
303
531
|
readonly watcherLabel: string;
|
|
532
|
+
/** @internal */
|
|
304
533
|
readonly watcherDescription: string;
|
|
534
|
+
/** @internal */
|
|
305
535
|
readonly sourceId: string;
|
|
536
|
+
/** @internal */
|
|
306
537
|
readonly sourceLabel: string;
|
|
538
|
+
/** @public */
|
|
307
539
|
readonly enabled: boolean;
|
|
540
|
+
/** @internal */
|
|
308
541
|
readonly configPath: string;
|
|
542
|
+
/** @public */
|
|
309
543
|
readonly config: TConfig;
|
|
544
|
+
/** @internal */
|
|
310
545
|
readonly presentation: ProcessWatcherPresentation;
|
|
546
|
+
/** @internal */
|
|
311
547
|
readonly launchModelConfig: LaunchModelConfigInputLike;
|
|
548
|
+
/** @internal */
|
|
312
549
|
resolveLaunch(event: TEvent, ctx?: LauncherContext): Promise<ProcessLaunchPlan | null>;
|
|
550
|
+
/** @internal */
|
|
313
551
|
resolveLaunchAttempt(event: TEvent, ctx?: LauncherContext): Promise<{
|
|
552
|
+
/** @internal */
|
|
314
553
|
launchConfig: ProcessLaunchConfig;
|
|
554
|
+
/** @internal */
|
|
315
555
|
launchPlan: ProcessLaunchPlan;
|
|
556
|
+
/** @internal */
|
|
316
557
|
preparationChecks: readonly LaunchPreparationCheck[];
|
|
317
558
|
} | null>;
|
|
318
559
|
}
|
|
560
|
+
/** @public */
|
|
319
561
|
export interface WatcherLaunchResultLike extends ProgrammaticLaunchResultLike {
|
|
320
562
|
}
|
|
563
|
+
/** @internal */
|
|
321
564
|
export interface ProgrammaticLaunchRequestLike {
|
|
565
|
+
/** @internal */
|
|
322
566
|
launcherId: string;
|
|
567
|
+
/** @internal */
|
|
323
568
|
launcherInput: Record<string, unknown>;
|
|
569
|
+
/** @internal */
|
|
324
570
|
title?: string | null;
|
|
571
|
+
/** @internal */
|
|
325
572
|
modelConfig?: LaunchModelConfigInputLike;
|
|
573
|
+
/** @internal */
|
|
326
574
|
skillIds?: readonly string[];
|
|
327
|
-
/** Trusted, non-secret process metadata merged after launcher resolution. */
|
|
575
|
+
/** Trusted, non-secret process metadata merged after launcher resolution. @internal */
|
|
328
576
|
processMetadata?: Record<string, unknown>;
|
|
329
577
|
}
|
|
578
|
+
/** @public */
|
|
330
579
|
export interface ProgrammaticLaunchResultLike {
|
|
580
|
+
/** @public */
|
|
331
581
|
launchRunId: string;
|
|
582
|
+
/** @public */
|
|
332
583
|
process: ProcessInstance | null;
|
|
584
|
+
/** @public */
|
|
333
585
|
error: string | null;
|
|
334
586
|
}
|
|
587
|
+
/** @public */
|
|
335
588
|
export interface LaunchRunServiceLike {
|
|
589
|
+
/** @internal */
|
|
336
590
|
startProgrammatic(request: ProgrammaticLaunchRequestLike, opts: {
|
|
591
|
+
/** @internal */
|
|
337
592
|
idempotencyKey: string;
|
|
593
|
+
/** @internal */
|
|
338
594
|
actor?: Actor;
|
|
339
595
|
}): Promise<ProgrammaticLaunchResultLike>;
|
|
596
|
+
/** @public */
|
|
340
597
|
startWatcher<TConfig, TEvent>(watcher: RegisteredProcessWatcherLike<TConfig, TEvent>, event: TEvent, opts: {
|
|
598
|
+
/** @public */
|
|
341
599
|
idempotencyKey: string;
|
|
600
|
+
/** @internal */
|
|
342
601
|
actor?: Actor;
|
|
343
602
|
}): Promise<WatcherLaunchResultLike>;
|
|
344
603
|
}
|
|
604
|
+
/** @public */
|
|
345
605
|
export interface ProcessWatcherServiceLike {
|
|
606
|
+
/** @internal */
|
|
346
607
|
listAll(): readonly RegisteredProcessWatcherLike[];
|
|
608
|
+
/** @public */
|
|
347
609
|
listBySource<TConfig, TEvent>(source: ProcessWatcherSource<TConfig, TEvent>): readonly RegisteredProcessWatcherLike<TConfig, TEvent>[];
|
|
348
610
|
}
|
|
611
|
+
/** @public */
|
|
349
612
|
export interface PollResultLike {
|
|
613
|
+
/** @internal */
|
|
350
614
|
readonly errors: readonly string[];
|
|
351
615
|
}
|
|
352
|
-
|
|
353
|
-
poll(): Promise<T>;
|
|
354
|
-
}
|
|
616
|
+
/** @public */
|
|
355
617
|
export interface PollingServiceLike {
|
|
618
|
+
/** @public */
|
|
356
619
|
create<T extends PollResultLike>(options: {
|
|
620
|
+
/** @public */
|
|
357
621
|
id: string;
|
|
622
|
+
/** @public */
|
|
358
623
|
pollOnce(): Promise<T>;
|
|
624
|
+
/** @public */
|
|
359
625
|
isEnabled(): boolean;
|
|
626
|
+
/** @public */
|
|
360
627
|
pollInterval(): string;
|
|
628
|
+
/** @public */
|
|
361
629
|
defaultIntervalMs?: number;
|
|
362
|
-
}):
|
|
630
|
+
}): {
|
|
631
|
+
/** @public */
|
|
632
|
+
poll(): Promise<T>;
|
|
633
|
+
};
|
|
363
634
|
}
|
|
635
|
+
/** @internal */
|
|
364
636
|
export interface ProcessQuestionServiceLike {
|
|
637
|
+
/** @internal */
|
|
365
638
|
listOpen(instanceId?: string): readonly import("@leitwerk-dev/domain").ProcessQuestionRequest[];
|
|
639
|
+
/** @internal */
|
|
366
640
|
submitAnswers(instanceId: string, requestId: string, draft: readonly import("@leitwerk-dev/domain").QuestionAnswerDraft[], actor: Actor): Promise<{
|
|
641
|
+
/** @internal */
|
|
367
642
|
ok: true;
|
|
643
|
+
/** @internal */
|
|
368
644
|
request: import("@leitwerk-dev/domain").ProcessQuestionRequest;
|
|
369
645
|
} | {
|
|
646
|
+
/** @internal */
|
|
370
647
|
ok: false;
|
|
648
|
+
/** @internal */
|
|
371
649
|
code: "not_found" | "not_current" | "invalid";
|
|
650
|
+
/** @internal */
|
|
372
651
|
message: string;
|
|
652
|
+
/** @internal */
|
|
373
653
|
request?: import("@leitwerk-dev/domain").ProcessQuestionRequest;
|
|
374
654
|
}>;
|
|
375
655
|
}
|
|
656
|
+
/** @public */
|
|
376
657
|
export interface CoreServerSetupDeps {
|
|
658
|
+
/** @internal */
|
|
377
659
|
serverBaseUrl: string;
|
|
660
|
+
/** @internal */
|
|
378
661
|
processWorkspacesDir?: string;
|
|
662
|
+
/** @internal */
|
|
379
663
|
components: Record<string, ComponentConfigLike>;
|
|
380
|
-
/** Typed by consuming extensions via watcher-utils ExternalWriteLogRepoLike. */
|
|
664
|
+
/** Typed by consuming extensions via watcher-utils ExternalWriteLogRepoLike. @public */
|
|
381
665
|
externalWrites: unknown;
|
|
666
|
+
/** @public */
|
|
382
667
|
processes: ProcessRepoLike;
|
|
668
|
+
/** @public */
|
|
383
669
|
projects: ProcessProjectRepoLike;
|
|
670
|
+
/** @public */
|
|
384
671
|
events: ProcessEventRepoLike;
|
|
672
|
+
/** @internal */
|
|
385
673
|
broadcaster: BroadcasterLike;
|
|
674
|
+
/** @public */
|
|
386
675
|
commands: ProcessEngineLike;
|
|
676
|
+
/** @internal */
|
|
387
677
|
processActions: ProcessActionServiceLike;
|
|
678
|
+
/** @public */
|
|
388
679
|
externalSources: ExternalSourceServiceLike;
|
|
680
|
+
/** @internal */
|
|
389
681
|
getSupervisor: () => WorkerSupervisorLike | undefined;
|
|
682
|
+
/** @internal */
|
|
390
683
|
launcherService: ProcessLauncherService;
|
|
684
|
+
/** @internal */
|
|
391
685
|
launcherRecentValues: LauncherRecentValuesServiceLike;
|
|
686
|
+
/** @internal */
|
|
392
687
|
launcherModelConfigs: LauncherModelConfigServiceLike;
|
|
688
|
+
/** @internal */
|
|
393
689
|
launchPlans: ProcessLaunchPlanServiceLike;
|
|
690
|
+
/** @internal */
|
|
394
691
|
handoffDedupKeys?: HandoffDedupKeyServiceLike;
|
|
692
|
+
/** @public */
|
|
395
693
|
processWatchers?: ProcessWatcherServiceLike;
|
|
694
|
+
/** @public */
|
|
396
695
|
launchRuns: LaunchRunServiceLike;
|
|
696
|
+
/** @public */
|
|
397
697
|
polling: PollingServiceLike;
|
|
698
|
+
/** @internal */
|
|
398
699
|
processModelSelection?: ProcessModelSelectionServiceLike;
|
|
399
|
-
/** Durable active-turn questions for trusted operator-channel extensions. */
|
|
700
|
+
/** Durable active-turn questions for trusted operator-channel extensions. @internal */
|
|
400
701
|
processQuestions?: ProcessQuestionServiceLike;
|
|
401
|
-
/** Registration boundary for secret-backed repository credential extensions. */
|
|
702
|
+
/** Registration boundary for secret-backed repository credential extensions. @internal */
|
|
402
703
|
repositoryCredentials: RepositoryCredentialRegistrar;
|
|
403
|
-
/** Server-owned managed result images, available to trusted delivery extensions. */
|
|
704
|
+
/** Server-owned managed result images, available to trusted delivery extensions. @internal */
|
|
404
705
|
resultImages?: {
|
|
706
|
+
/** @internal */
|
|
405
707
|
get(instanceId: string, turnRecordId: string, imageId: string): Promise<Uint8Array | null>;
|
|
406
708
|
};
|
|
407
709
|
}
|
|
710
|
+
/** @internal */
|
|
408
711
|
export type ProcessActionModelPreviewLike = ProcessActionModelPreview;
|
|
712
|
+
/** @internal */
|
|
409
713
|
export type ProcessModelSelectionPreviewFailureCode = "process_not_found" | "instance_tree_unavailable";
|
|
714
|
+
/** @internal */
|
|
410
715
|
export type ProcessModelSelectionPreviewResultLike = ProcessActionModelPreviewLike | {
|
|
716
|
+
/** @internal */
|
|
411
717
|
kind: "operational_failure";
|
|
718
|
+
/** @internal */
|
|
412
719
|
code: ProcessModelSelectionPreviewFailureCode;
|
|
413
720
|
};
|
|
721
|
+
/** @internal */
|
|
414
722
|
export interface ModelProfileOptionSummaryLike {
|
|
723
|
+
/** @internal */
|
|
415
724
|
id: string;
|
|
725
|
+
/** @internal */
|
|
416
726
|
label: string;
|
|
727
|
+
/** @internal */
|
|
417
728
|
description: string;
|
|
729
|
+
/** @internal */
|
|
418
730
|
availability: "available" | "unavailable" | "stale";
|
|
419
731
|
}
|
|
732
|
+
/** @internal */
|
|
420
733
|
export interface ProcessModelSelectionServiceLike {
|
|
734
|
+
/** @internal */
|
|
421
735
|
listAvailableProfiles(instanceId: string): readonly ModelProfileOptionSummaryLike[] | null;
|
|
736
|
+
/** @internal */
|
|
422
737
|
preview(instanceId: string, actionId: string, input: Record<string, unknown>): Promise<ProcessModelSelectionPreviewResultLike>;
|
|
423
738
|
}
|
|
739
|
+
/** @public */
|
|
424
740
|
export declare const coreHostCapabilities: {
|
|
741
|
+
/** @public */
|
|
425
742
|
readonly serverSetup: import("./capabilities.js").CapabilityToken<CoreServerSetupDeps>;
|
|
743
|
+
/** @internal */
|
|
426
744
|
readonly processModelSelection: import("./capabilities.js").CapabilityToken<ProcessModelSelectionServiceLike>;
|
|
427
745
|
};
|
|
428
746
|
//# sourceMappingURL=core-capabilities.d.ts.map
|