@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.
Files changed (187) hide show
  1. package/README.md +12 -0
  2. package/dist/browser-ui-extension.d.ts +20 -0
  3. package/dist/browser-ui-extension.d.ts.map +1 -1
  4. package/dist/capabilities.d.ts +6 -0
  5. package/dist/capabilities.d.ts.map +1 -1
  6. package/dist/{chunk-LIIP7FMU.js → chunk-5R6MVLHC.js} +1 -1
  7. package/dist/chunk-5R6MVLHC.js.map +1 -0
  8. package/dist/chunk-DVXW2ZUV.js +1 -0
  9. package/dist/chunk-DVXW2ZUV.js.map +1 -0
  10. package/dist/{chunk-TA4KO53Q.js → chunk-I7U6HCLN.js} +1 -7
  11. package/dist/chunk-I7U6HCLN.js.map +1 -0
  12. package/dist/{chunk-WFY2WWZE.js → chunk-TM2LTSW4.js} +1 -1
  13. package/dist/chunk-TM2LTSW4.js.map +1 -0
  14. package/dist/codecs.d.ts +1 -0
  15. package/dist/codecs.d.ts.map +1 -1
  16. package/dist/commit-message.d.ts +5 -0
  17. package/dist/commit-message.d.ts.map +1 -1
  18. package/dist/core-capabilities.d.ts +338 -20
  19. package/dist/core-capabilities.d.ts.map +1 -1
  20. package/dist/define-process.d.ts +195 -18
  21. package/dist/define-process.d.ts.map +1 -1
  22. package/dist/event-bus.d.ts +1 -0
  23. package/dist/event-bus.d.ts.map +1 -1
  24. package/dist/{extension-api-CcqZCYJx.d.ts → extension-api-3Vr3RE8S.d.ts} +1000 -108
  25. package/dist/extension-api.d.ts +385 -50
  26. package/dist/extension-api.d.ts.map +1 -1
  27. package/dist/external-action-source.d.ts +3 -1
  28. package/dist/external-action-source.d.ts.map +1 -1
  29. package/dist/external-source-poll.d.ts +18 -5
  30. package/dist/external-source-poll.d.ts.map +1 -1
  31. package/dist/flow.d.ts +308 -11
  32. package/dist/flow.d.ts.map +1 -1
  33. package/dist/form-contract.d.ts +1 -1
  34. package/dist/form-contract.d.ts.map +1 -1
  35. package/dist/fs-utils.d.ts +4 -0
  36. package/dist/fs-utils.d.ts.map +1 -1
  37. package/dist/git-binary.d.ts +2 -1
  38. package/dist/git-binary.d.ts.map +1 -1
  39. package/dist/git-binary.js.map +1 -1
  40. package/dist/graph-fragments.d.ts +16 -0
  41. package/dist/graph-fragments.d.ts.map +1 -1
  42. package/dist/host-capabilities.d.ts +9 -3
  43. package/dist/host-capabilities.d.ts.map +1 -1
  44. package/dist/index.d.ts +26 -26
  45. package/dist/index.d.ts.map +1 -1
  46. package/dist/index.js +270 -81
  47. package/dist/index.js.map +1 -1
  48. package/dist/integration-http.d.ts +14 -3
  49. package/dist/integration-http.d.ts.map +1 -1
  50. package/dist/json-data.d.ts +1 -1
  51. package/dist/json-data.d.ts.map +1 -1
  52. package/dist/leaf-outcome-renderer.d.ts +35 -0
  53. package/dist/leaf-outcome-renderer.d.ts.map +1 -1
  54. package/dist/leaf-outcome-renderer.js +12 -0
  55. package/dist/leaf-outcome-renderer.js.map +1 -1
  56. package/dist/leaf-outcomes.d.ts +3 -0
  57. package/dist/leaf-outcomes.d.ts.map +1 -1
  58. package/dist/model-provider.d.ts +144 -12
  59. package/dist/model-provider.d.ts.map +1 -1
  60. package/dist/pi-config-public.d.ts +2 -0
  61. package/dist/pi-config-public.d.ts.map +1 -0
  62. package/dist/pi-config-public.js +15 -0
  63. package/dist/pi-config-public.js.map +1 -0
  64. package/dist/pi-config.d.ts +40 -0
  65. package/dist/pi-config.d.ts.map +1 -1
  66. package/dist/pi-config.js +1 -1
  67. package/dist/process-definition-internals.d.ts +4 -0
  68. package/dist/process-definition-internals.d.ts.map +1 -1
  69. package/dist/process-flow-view.d.ts +2 -0
  70. package/dist/process-flow-view.d.ts.map +1 -1
  71. package/dist/process-graph.d.ts +34 -0
  72. package/dist/process-graph.d.ts.map +1 -1
  73. package/dist/process-launcher-builder.d.ts +5 -0
  74. package/dist/process-launcher-builder.d.ts.map +1 -1
  75. package/dist/process-watcher-builder.d.ts +5 -0
  76. package/dist/process-watcher-builder.d.ts.map +1 -1
  77. package/dist/process-watcher-source.d.ts +3 -1
  78. package/dist/process-watcher-source.d.ts.map +1 -1
  79. package/dist/project-binding.d.ts +5 -1
  80. package/dist/project-binding.d.ts.map +1 -1
  81. package/dist/registry-utils.d.ts +6 -0
  82. package/dist/registry-utils.d.ts.map +1 -1
  83. package/dist/repository-feedback.d.ts +36 -12
  84. package/dist/repository-feedback.d.ts.map +1 -1
  85. package/dist/repository-git-env.d.ts +6 -2
  86. package/dist/repository-git-env.d.ts.map +1 -1
  87. package/dist/repository-http.d.ts +13 -1
  88. package/dist/repository-http.d.ts.map +1 -1
  89. package/dist/repository-https.d.ts +1 -1
  90. package/dist/repository-https.d.ts.map +1 -1
  91. package/dist/repository-issue-watcher.d.ts +31 -6
  92. package/dist/repository-issue-watcher.d.ts.map +1 -1
  93. package/dist/repository-reconciliation.d.ts +5 -0
  94. package/dist/repository-reconciliation.d.ts.map +1 -0
  95. package/dist/repository-source-config.d.ts +29 -18
  96. package/dist/repository-source-config.d.ts.map +1 -1
  97. package/dist/repository-types.d.ts +28 -1
  98. package/dist/repository-types.d.ts.map +1 -1
  99. package/dist/review-flow-public.d.ts +2 -0
  100. package/dist/review-flow-public.d.ts.map +1 -0
  101. package/dist/review-flow-public.js +11 -0
  102. package/dist/review-flow-public.js.map +1 -0
  103. package/dist/review-flow.d.ts +6 -0
  104. package/dist/review-flow.d.ts.map +1 -1
  105. package/dist/review-flow.js +1 -1
  106. package/dist/runtime-internals-public.d.ts +2 -0
  107. package/dist/runtime-internals-public.d.ts.map +1 -0
  108. package/dist/runtime-internals-public.js +16 -0
  109. package/dist/runtime-internals-public.js.map +1 -0
  110. package/dist/runtime-internals.js +2 -1
  111. package/dist/server-events.d.ts +67 -0
  112. package/dist/server-events.d.ts.map +1 -1
  113. package/dist/server-process-builder.d.ts +7 -0
  114. package/dist/server-process-builder.d.ts.map +1 -1
  115. package/dist/state-helpers.d.ts +6 -0
  116. package/dist/state-helpers.d.ts.map +1 -1
  117. package/dist/subprocess-env.d.ts +3 -0
  118. package/dist/subprocess-env.d.ts.map +1 -1
  119. package/dist/tool-arguments.d.ts +4 -2
  120. package/dist/tool-arguments.d.ts.map +1 -1
  121. package/dist/tool-renderers.d.ts +6 -0
  122. package/dist/tool-renderers.d.ts.map +1 -1
  123. package/dist/turn-semantics.d.ts +14 -1
  124. package/dist/turn-semantics.d.ts.map +1 -1
  125. package/dist/types.d.ts +205 -24
  126. package/dist/types.d.ts.map +1 -1
  127. package/dist/ui-process-builder.d.ts +5 -0
  128. package/dist/ui-process-builder.d.ts.map +1 -1
  129. package/dist/worker-process-builder.d.ts +5 -0
  130. package/dist/worker-process-builder.d.ts.map +1 -1
  131. package/package.json +16 -15
  132. package/src/browser-ui-extension.ts +20 -0
  133. package/src/capabilities.ts +9 -1
  134. package/src/codecs.ts +1 -0
  135. package/src/commit-message.ts +5 -0
  136. package/src/core-capabilities.ts +398 -35
  137. package/src/define-process.ts +198 -23
  138. package/src/event-bus.ts +1 -0
  139. package/src/extension-api.ts +399 -55
  140. package/src/external-action-source.ts +7 -2
  141. package/src/external-source-poll.ts +72 -6
  142. package/src/flow.ts +352 -23
  143. package/src/form-contract.ts +0 -4
  144. package/src/fs-utils.ts +4 -0
  145. package/src/git-binary.ts +2 -1
  146. package/src/graph-fragments.ts +16 -0
  147. package/src/host-capabilities.ts +9 -6
  148. package/src/index.ts +14 -202
  149. package/src/integration-http.ts +15 -3
  150. package/src/json-data.ts +1 -1
  151. package/src/leaf-outcome-renderer.ts +35 -0
  152. package/src/leaf-outcomes.ts +3 -0
  153. package/src/model-provider.ts +169 -20
  154. package/src/pi-config-public.ts +7 -0
  155. package/src/pi-config.ts +47 -2
  156. package/src/process-definition-internals.ts +4 -0
  157. package/src/process-flow-view.ts +2 -0
  158. package/src/process-graph.ts +34 -0
  159. package/src/process-launcher-builder.ts +5 -0
  160. package/src/process-watcher-builder.ts +5 -0
  161. package/src/process-watcher-source.ts +6 -4
  162. package/src/project-binding.ts +5 -1
  163. package/src/registry-utils.ts +6 -0
  164. package/src/repository-feedback.ts +59 -5
  165. package/src/repository-git-env.ts +6 -2
  166. package/src/repository-http.ts +19 -2
  167. package/src/repository-https.ts +1 -1
  168. package/src/repository-issue-watcher.ts +64 -7
  169. package/src/repository-reconciliation.ts +30 -0
  170. package/src/repository-source-config.ts +66 -4
  171. package/src/repository-types.ts +43 -5
  172. package/src/review-flow-public.ts +5 -0
  173. package/src/review-flow.ts +6 -0
  174. package/src/runtime-internals-public.ts +7 -0
  175. package/src/server-events.ts +67 -0
  176. package/src/server-process-builder.ts +10 -1
  177. package/src/state-helpers.ts +6 -0
  178. package/src/subprocess-env.ts +3 -0
  179. package/src/tool-arguments.ts +4 -2
  180. package/src/tool-renderers.ts +6 -0
  181. package/src/turn-semantics.ts +15 -2
  182. package/src/types.ts +212 -30
  183. package/src/ui-process-builder.ts +8 -1
  184. package/src/worker-process-builder.ts +8 -1
  185. package/dist/chunk-LIIP7FMU.js.map +0 -1
  186. package/dist/chunk-TA4KO53Q.js.map +0 -1
  187. package/dist/chunk-WFY2WWZE.js.map +0 -1
package/dist/flow.d.ts CHANGED
@@ -1,229 +1,397 @@
1
1
  import { type ProcessInstance, type ProcessProject, type ProcessTurnStartSelection, type ProcessTurnTerminalLifecycleStatus, type TurnId, type TurnProgressReport } from "@leitwerk-dev/domain";
2
- import type { AutomaticTurnDefinition, ExternalTurnDefinition, HumanTurnDefinition, HumanTurnOperatorAttention, LlmModelPurpose, LlmTurnDefinition, ProcessDefinition, ProcessEffectPlan, ProcessHumanTurnActionSpec, ProcessHumanTurnExternalActionSpec, ProcessOutcomeEffect, ProcessOutcomeExecution, ProcessRuntimeTurnContext, ProcessToolOutcomeSpec, ProcessTurnEndSpec, TurnDefinition } from "./define-process.js";
3
- import type { Codec, ExternalActionSource, ExternalSourceEffect, ExternalSourceEffectContext, FormDefinition, ProcessActionDefinition, ProcessLauncherAPI, ProcessLauncherDefinition, ProcessWatcherAPI, ProcessWatcherDefinition, ServerProcessAPI, UiProcessAPI, WorkerCompleteInput } from "./extension-api.js";
2
+ import type { AutomaticTurnDefinition, ExternalTurnDefinition, HumanTurnDefinition, HumanTurnOperatorAttention, LlmModelPurpose, LlmTurnDefinition, ProcessEffectPlan, ProcessHumanTurnActionSpec, ProcessHumanTurnExternalActionSpec, ProcessOutcomeEffect, ProcessOutcomeExecution, ProcessRuntimeTurnContext, ProcessToolOutcomeSpec, ProcessTurnEndSpec, TurnDefinition } from "./define-process.js";
3
+ import type { Codec, ExtensionProcessDefinition, ExternalActionSource, ExternalSourceEffect, ExternalSourceEffectContext, FormDefinition, ProcessActionDefinition, ProcessLauncherAPI, ProcessLauncherDefinition, ProcessWatcherAPI, ProcessWatcherDefinition, ServerProcessAPI, UiProcessAPI, WorkerCompleteInput } from "./extension-api.js";
4
4
  import type { OutcomeToolParameterSpec, PiBuiltInToolName, ProcessPiConfig } from "./types.js";
5
+ /** @public */
5
6
  type MaybePromise<T> = T | Promise<T>;
7
+ /** @internal */
6
8
  export declare const DEFAULT_PLAN_RESULT_OUTCOME_ID: "plan_saved";
9
+ /** @internal */
7
10
  export declare const DEFAULT_FLOW_PRODUCT_NAME: "default";
11
+ /** @public */
8
12
  export interface FlowLlmTurn<TParams = unknown, TState = unknown, TOutcome extends string = string> {
13
+ /** @public */
9
14
  id: TurnId;
15
+ /** @public */
10
16
  definition: LlmTurnDefinition<TOutcome, TParams, TState>;
11
17
  }
18
+ /** @public */
12
19
  export interface FlowAutomaticTurn<TParams = unknown, TState = unknown, TOutcome extends string = string> {
20
+ /** @public */
13
21
  id: TurnId;
22
+ /** @public */
14
23
  definition: AutomaticTurnDefinition<TOutcome, TParams, TState>;
15
24
  }
25
+ /** @public */
16
26
  export interface FlowHumanTurn<TParams = unknown, TState = unknown> {
27
+ /** @public */
17
28
  id: TurnId;
29
+ /** @public */
18
30
  definition: HumanTurnDefinition<TParams, TState>;
19
31
  }
32
+ /** @public */
20
33
  export interface FlowExternalTurn<TParams = unknown, TState = unknown> {
34
+ /** @public */
21
35
  id: TurnId;
36
+ /** @public */
22
37
  definition: ExternalTurnDefinition<TParams, TState>;
23
38
  }
39
+ /** @public */
24
40
  export type FlowTurn<TParams = unknown, TState = unknown> = FlowLlmTurn<TParams, TState, string> | FlowAutomaticTurn<TParams, TState, string> | FlowHumanTurn<TParams, TState> | FlowExternalTurn<TParams, TState> | {
41
+ /** @public */
25
42
  id: TurnId;
43
+ /** @public */
26
44
  definition: TurnDefinition<TParams, TState>;
27
45
  };
46
+ /** @internal */
28
47
  export interface PlanFieldOptions {
48
+ /** @internal */
29
49
  description?: string;
50
+ /** @internal */
30
51
  requiredErrorCode?: string;
31
52
  }
53
+ /** @internal */
32
54
  export interface PlanAcceptanceCriteriaOptions extends PlanFieldOptions {
55
+ /** @internal */
33
56
  minItems?: number;
57
+ /** @internal */
34
58
  minItemsErrorCode?: string;
35
59
  }
36
60
  export interface PlanSavedStateInput<TParams = unknown, TState = unknown> {
37
61
  effect: ProcessOutcomeEffect<TParams, TState>;
38
62
  }
63
+ /** @public */
39
64
  export interface FlowRepoContext {
65
+ /** @internal */
40
66
  key: string;
67
+ /** @public */
41
68
  fsPath: string;
69
+ /** @internal */
42
70
  workspaceClonePath: string;
71
+ /** @public */
43
72
  baseBranch: string;
73
+ /** @public */
44
74
  workBranch: string;
75
+ /** @internal */
45
76
  locator: string;
46
77
  }
78
+ /** @public */
47
79
  export interface FlowRepoLookup {
80
+ /** @public */
48
81
  get(key: string): FlowRepoContext;
82
+ /** @internal */
49
83
  optional(key: string): FlowRepoContext | undefined;
84
+ /** @internal */
50
85
  all(): FlowRepoContext[];
51
86
  }
87
+ /** @public */
52
88
  export type FlowPromptContext<TParams = unknown, TState = unknown, TConsumedProducts extends string = string, TPrepared = undefined> = {
89
+ /** @internal */
53
90
  process: ProcessInstance;
91
+ /** @internal */
54
92
  projects: readonly ProcessProject[];
93
+ /** @public */
55
94
  params: TParams;
95
+ /** @public */
56
96
  state: TState;
97
+ /** @internal */
57
98
  workspaceRoot?: string;
99
+ /** @internal */
58
100
  prompts: {
101
+ /** @internal */
59
102
  initial: string;
60
103
  };
104
+ /** @public */
61
105
  input: Readonly<Partial<Record<TConsumedProducts, string>>>;
106
+ /** @internal */
62
107
  repo: FlowRepoLookup;
63
108
  } & ([TPrepared] extends [undefined] ? {
109
+ /** @internal */
64
110
  prepared?: undefined;
65
111
  } : {
112
+ /** @internal */
66
113
  prepared: TPrepared;
67
114
  });
115
+ /** @public */
68
116
  export interface FlowAutomaticRunContext<TParams = unknown, TState = unknown> {
117
+ /** @public */
69
118
  process: ProcessInstance;
119
+ /** @public */
70
120
  projects: readonly ProcessProject[];
121
+ /** @public */
71
122
  params: TParams;
123
+ /** @public */
72
124
  state: TState;
125
+ /** @public */
73
126
  workspaceRoot?: string;
127
+ /** @public */
74
128
  repo: FlowRepoLookup;
129
+ /** @public */
75
130
  callIntegrationTool(name: string, args: Record<string, unknown>): Promise<unknown>;
131
+ /** @public */
76
132
  reportProgress(report: TurnProgressReport): void;
77
133
  }
134
+ /** @public */
78
135
  export type FlowLlmPreparationContext<TParams = unknown, TState = unknown> = FlowAutomaticRunContext<TParams, TState>;
136
+ /** @public */
79
137
  interface FlowOutcomeEffectContext<TParams = unknown, TState = unknown> {
138
+ /** @public */
80
139
  process: ProcessInstance;
140
+ /** @internal */
81
141
  projects: readonly ProcessProject[];
142
+ /** @internal */
82
143
  params: TParams;
144
+ /** @public */
83
145
  state: TState;
146
+ /** @internal */
84
147
  output: {
148
+ /** @internal */
85
149
  content: string | null;
86
150
  } | null;
87
151
  }
152
+ /** @public */
88
153
  export interface FlowLlmOutcomeEffectContext<TParams = unknown, TState = unknown> extends FlowOutcomeEffectContext<TParams, TState> {
89
154
  }
155
+ /** @public */
90
156
  export interface FlowAutomaticOutcomeEffectContext<TParams = unknown, TState = unknown> extends FlowOutcomeEffectContext<TParams, TState> {
91
157
  }
158
+ /** @internal */
92
159
  export interface FlowExternalSourceContext<TParams = unknown, TState = unknown, TEvent = unknown, TInput extends Record<string, unknown> = Record<string, unknown>> extends ExternalSourceEffectContext<TParams, TState, TEvent, TInput> {
93
160
  }
161
+ /** @public */
94
162
  type FlowOutcomeEffectInput<TParams, TState, TContext> = {
163
+ /** @public */
95
164
  ctx: TContext;
165
+ /** @public */
96
166
  event: ProcessOutcomeExecution<TParams, TState>["event"];
167
+ /** @internal */
97
168
  turnId: TurnId;
169
+ /** @internal */
98
170
  outcome: string;
99
171
  };
172
+ /** @public */
100
173
  type FlowOutcomeEffect<TParams, TState, TContext> = (input: FlowOutcomeEffectInput<TParams, TState, TContext>) => MaybePromise<ProcessEffectPlan<TState> | undefined>;
174
+ /** @public */
101
175
  type FlowOutcomeStateEffect<TParams, TState, TContext> = (input: FlowOutcomeEffectInput<TParams, TState, TContext>) => MaybePromise<TState>;
176
+ /** @internal */
102
177
  export declare function createFlowPromptContext<TParams, TState, TConsumedProducts extends string = string, TPrepared = undefined>(ctx: ProcessRuntimeTurnContext<TParams, TState>, consumedProducts: readonly TConsumedProducts[], optionalConsumedProducts?: readonly string[]): FlowPromptContext<TParams, TState, TConsumedProducts, TPrepared>;
178
+ /** @internal */
103
179
  export declare function createFlowAutomaticRunContext<TParams, TState>(ctx: ProcessRuntimeTurnContext<TParams, TState>): FlowAutomaticRunContext<TParams, TState>;
180
+ /** @public */
104
181
  declare class RouteAndEffectBuilder<TParams, TState, TContext> {
182
+ /** @internal */
105
183
  protected target: FlowTargetSpec;
184
+ /** @internal */
106
185
  protected flowEffect: FlowOutcomeEffect<TParams, TState, TContext> | undefined;
186
+ /** @internal */
107
187
  protected setTarget(next: FlowTargetSpec): this;
188
+ /** @public */
108
189
  to(turnId: TurnId): this;
190
+ /** @public */
109
191
  complete(): this;
192
+ /** @public */
110
193
  lifecycleStatus(status: ProcessTurnTerminalLifecycleStatus): this;
194
+ /** @internal */
111
195
  stay(): this;
196
+ /** @public */
112
197
  state(fn: FlowOutcomeStateEffect<TParams, TState, TContext>): this;
198
+ /** @public */
113
199
  effect(fn: FlowOutcomeEffect<TParams, TState, TContext>): this;
200
+ /** @internal */
114
201
  hasRoute(): boolean;
202
+ /** @internal */
115
203
  protected buildRouteTarget(): {
204
+ /** @internal */
116
205
  to?: TurnId;
206
+ /** @internal */
117
207
  complete?: boolean;
208
+ /** @internal */
118
209
  lifecycleStatus?: ProcessTurnTerminalLifecycleStatus;
119
210
  };
120
211
  }
212
+ /** @internal */
121
213
  export type FlowTargetSpec = {
214
+ /** @internal */
122
215
  kind: "to";
216
+ /** @internal */
123
217
  turnId: TurnId;
124
218
  } | {
219
+ /** @internal */
125
220
  kind: "complete";
126
221
  } | {
222
+ /** @internal */
127
223
  kind: "lifecycleStatus";
224
+ /** @internal */
128
225
  status: ProcessTurnTerminalLifecycleStatus;
129
226
  } | null;
130
227
  export declare function buildRouteTargetSpec(target: FlowTargetSpec): {
228
+ /** @internal */
131
229
  to?: TurnId;
230
+ /** @internal */
132
231
  complete?: boolean;
232
+ /** @internal */
133
233
  lifecycleStatus?: ProcessTurnTerminalLifecycleStatus;
134
234
  };
235
+ /** @public */
135
236
  interface ParameterOptions extends Partial<Omit<OutcomeToolParameterSpec, "type" | "description">> {
237
+ /** @public */
136
238
  description?: string;
239
+ /** @internal */
137
240
  requiredErrorCode?: string;
138
241
  }
242
+ /** @internal */
139
243
  interface ArrayParameterOptions extends ParameterOptions {
244
+ /** @internal */
140
245
  items?: OutcomeToolParameterSpec["items"];
141
246
  }
247
+ /** @internal */
142
248
  interface EnumParameterOptions extends ParameterOptions {
249
+ /** @internal */
143
250
  values?: readonly string[];
144
251
  }
252
+ /** @public */
145
253
  interface MarkdownParameterOptions extends ParameterOptions {
254
+ /** @public */
146
255
  publish?: true;
147
256
  }
257
+ /** @public */
148
258
  declare class ParameterizedOutcomeBuilder<TParams, TState, TContext> extends RouteAndEffectBuilder<TParams, TState, TContext> {
259
+ /** @internal */
149
260
  protected outcomeDescription: string | null;
261
+ /** @internal */
150
262
  protected parameters: Record<string, OutcomeToolParameterSpec>;
263
+ /** @internal */
151
264
  protected publishedMarkdownParameter: string | null;
265
+ /** @internal */
152
266
  protected summaryParameter: string | null;
153
- /** Optional concise result publication, separate from the full Markdown. */
267
+ /** Optional concise result publication, separate from the full Markdown. @public */
154
268
  resultSummary(name?: string): this;
269
+ /** @internal */
155
270
  protected publishedMarkdownFields(): {
271
+ /** @internal */
156
272
  publishedProduct: string;
273
+ /** @internal */
157
274
  turnResultMarkdownParameter: string;
158
275
  } | {
276
+ /** @internal */
159
277
  publishedProduct?: undefined;
278
+ /** @internal */
160
279
  turnResultMarkdownParameter?: undefined;
161
280
  };
281
+ /** @public */
162
282
  description(text: string): this;
283
+ /** @internal */
163
284
  parameter(name: string, spec: OutcomeToolParameterSpec): this;
164
285
  private withRequired;
165
286
  private typedParameter;
287
+ /** @internal */
166
288
  string(name: string, options?: string | ParameterOptions): this;
289
+ /** @public */
167
290
  markdown(name: string, options?: string | MarkdownParameterOptions): this;
291
+ /** @public */
168
292
  requiredString(name: string, options?: string | ParameterOptions): this;
293
+ /** @internal */
169
294
  number(name: string, options?: string | ParameterOptions): this;
295
+ /** @internal */
170
296
  requiredNumber(name: string, options?: string | ParameterOptions): this;
297
+ /** @internal */
171
298
  boolean(name: string, options?: string | ParameterOptions): this;
299
+ /** @internal */
172
300
  requiredBoolean(name: string, options?: string | ParameterOptions): this;
301
+ /** @internal */
173
302
  stringArray(name: string, options?: string | ArrayParameterOptions): this;
303
+ /** @internal */
174
304
  requiredStringArray(name: string, options?: string | ArrayParameterOptions): this;
305
+ /** @internal */
175
306
  enum(name: string, valuesOrOptions: readonly string[] | EnumParameterOptions): this;
307
+ /** @public */
176
308
  object(name: string, options?: string | ParameterOptions): this;
309
+ /** @internal */
177
310
  array(name: string, options?: string | ArrayParameterOptions): this;
178
311
  }
312
+ /** @public */
179
313
  export declare class OutcomeToolBuilder<TParams = unknown, TState = unknown> extends ParameterizedOutcomeBuilder<TParams, TState, FlowLlmOutcomeEffectContext<TParams, TState>> {
180
314
  private stateRouting;
315
+ /** @public */
181
316
  routeByState(branches: Record<string, TurnId>, choose: (input: FlowOutcomeEffectInput<TParams, TState, FlowLlmOutcomeEffectContext<TParams, TState>>) => MaybePromise<string>): this;
317
+ /** @internal */
182
318
  build(): ProcessToolOutcomeSpec<TParams, TState>;
183
319
  }
320
+ /** @public */
184
321
  export declare class AutomaticOutcomeBuilder<TParams = unknown, TState = unknown> extends ParameterizedOutcomeBuilder<TParams, TState, FlowAutomaticOutcomeEffectContext<TParams, TState>> {
185
322
  private waits;
323
+ /** @public */
186
324
  wait(): this;
325
+ /** @internal */
187
326
  build(): ProcessToolOutcomeSpec<TParams, TState>;
188
327
  }
328
+ /** @internal */
189
329
  export declare class PlanResultBuilder<TParams = unknown, TState = unknown> extends RouteAndEffectBuilder<TParams, TState, FlowLlmOutcomeEffectContext<TParams, TState>> {
190
330
  private resultDescription;
191
331
  private summarySpec;
192
332
  private acceptanceCriteriaSpec;
193
333
  private reviewTurnId;
334
+ /** @internal */
194
335
  description(text: string): this;
336
+ /** @internal */
195
337
  summary(options?: string | PlanFieldOptions): this;
338
+ /** @internal */
196
339
  acceptanceCriteria(options?: string | PlanAcceptanceCriteriaOptions): this;
340
+ /** @internal */
197
341
  review(turnId: TurnId): this;
342
+ /** @internal */
198
343
  buildOutcome(): ProcessToolOutcomeSpec<TParams, TState>;
199
344
  }
345
+ /** @public */
200
346
  declare abstract class TurnEndBuilder<TParams, TState> extends RouteAndEffectBuilder<TParams, TState, FlowLlmOutcomeEffectContext<TParams, TState>> implements FlowLlmTurn<TParams, TState, string> {
201
347
  private readonly outcomeId;
202
348
  private readonly parent?;
349
+ /** @internal */
203
350
  protected abstract readonly builderName: string;
351
+ /** @internal */
204
352
  constructor(outcomeId: string, parent?: FlowLlmTurn<TParams, TState, string> | undefined);
205
353
  private get turn();
354
+ /** @internal */
206
355
  get id(): TurnId;
356
+ /** @internal */
207
357
  get definition(): LlmTurnDefinition<string, TParams, TState>;
358
+ /** @internal */
208
359
  protected buildResult(): ProcessTurnEndSpec<TParams, TState, string>;
209
360
  }
361
+ /** @public */
210
362
  export declare class PublishedResultBuilder<TParams = unknown, TState = unknown> extends TurnEndBuilder<TParams, TState> {
363
+ /** @internal */
211
364
  protected readonly builderName = "Published result";
365
+ /** @internal */
212
366
  buildTurnEnd(): ProcessTurnEndSpec<TParams, TState, string>;
213
367
  }
368
+ /** @public */
214
369
  export declare class LlmTurnEndBuilder<TParams = unknown, TState = unknown> extends TurnEndBuilder<TParams, TState> {
370
+ /** @internal */
215
371
  protected readonly builderName = "LLM turn end";
372
+ /** @internal */
216
373
  constructor(outcomeId: string, parent?: FlowLlmTurn<TParams, TState, string>);
374
+ /** @internal */
217
375
  build(): ProcessTurnEndSpec<TParams, TState, string>;
218
376
  }
377
+ /** @public */
219
378
  type LlmPromptBuilder<TParams, TState, TConsumedProducts extends string, TPrepared> = (ctx: FlowPromptContext<TParams, TState, TConsumedProducts, TPrepared>) => MaybePromise<string>;
379
+ /** @public */
220
380
  declare abstract class DescribedTurnBuilder {
381
+ /** @internal */
221
382
  protected readonly turnId: TurnId;
383
+ /** @internal */
222
384
  protected turnDescription: string | null;
223
- constructor(turnId: TurnId);
385
+ /** @internal */
386
+ constructor(
387
+ /** @internal */
388
+ turnId: TurnId);
389
+ /** @internal */
224
390
  get id(): TurnId;
391
+ /** @public */
225
392
  description(description: string): this;
226
393
  }
394
+ /** @public */
227
395
  export declare class LlmFlowBuilder<TParams = unknown, TState = unknown, TConsumedProducts extends string = never, TPrepared = undefined> extends DescribedTurnBuilder implements FlowLlmTurn<TParams, TState, string> {
228
396
  private modelPurposeValue;
229
397
  private availableTools;
@@ -241,84 +409,145 @@ export declare class LlmFlowBuilder<TParams = unknown, TState = unknown, TConsum
241
409
  private publishedResult;
242
410
  private endResult;
243
411
  private outcomeToolBuilders;
412
+ /** @internal */
244
413
  get definition(): LlmTurnDefinition<string, TParams, TState>;
414
+ /** @internal */
245
415
  modelPurpose(purpose: LlmModelPurpose): this;
416
+ /** @public */
246
417
  tools(...tools: readonly PiBuiltInToolName[]): this;
418
+ /** @public */
247
419
  integrationTools(...tools: readonly string[]): this;
420
+ /** @public */
248
421
  resolveIntegrationTools(resolver: (params: TParams, state: TState) => readonly string[]): this;
422
+ /** @public */
249
423
  prepare<TNextPrepared>(fn: (ctx: FlowLlmPreparationContext<TParams, TState>) => MaybePromise<TNextPrepared>): LlmFlowBuilder<TParams, TState, TConsumedProducts, TNextPrepared>;
250
- /** Enable durable operator questions for this LLM turn. */
424
+ /** Enable durable operator questions for this LLM turn. @public */
251
425
  askQuestions(): this;
426
+ /** @public */
252
427
  freshPrimary(): this;
428
+ /** @internal */
253
429
  freshSeededPrimary(): this;
430
+ /** @public */
254
431
  fullPrimary(): this;
432
+ /** @internal */
255
433
  rootBranchReview(): this;
434
+ /** @public */
256
435
  continueFromPrimaryLeaf(): this;
436
+ /** @internal */
257
437
  continueFromReviewBranch(): this;
438
+ /** @internal */
258
439
  continueFromProductBranch(productName: string, fallback?: ProcessTurnStartSelection): this;
440
+ /** @internal */
259
441
  startFromReviewBranch(): this;
442
+ /** @internal */
260
443
  startFromProductBranch(productName: string, fallback?: ProcessTurnStartSelection): this;
444
+ /** @internal */
261
445
  startFromRoot(): this;
446
+ /** @public */
262
447
  consume<TProductName extends string>(productName: TProductName): LlmFlowBuilder<TParams, TState, TConsumedProducts | TProductName, TPrepared>;
448
+ /** @public */
263
449
  optionalConsume<TProductName extends string>(productName: TProductName): LlmFlowBuilder<TParams, TState, TConsumedProducts | TProductName, TPrepared>;
450
+ /** @public */
264
451
  publish(productName: string): PublishedResultBuilder<TParams, TState>;
452
+ /** @public */
265
453
  end(outcomeId: string): LlmTurnEndBuilder<TParams, TState>;
454
+ /** @public */
266
455
  buildPrompt(fn: LlmPromptBuilder<TParams, TState, TConsumedProducts, TPrepared>): this;
456
+ /** @public */
267
457
  prompt(prompt: (ctx: ProcessRuntimeTurnContext<TParams, TState>) => MaybePromise<string>): this;
458
+ /** @public */
268
459
  outcomeTool(id: string, configure: (tool: OutcomeToolBuilder<TParams, TState>) => OutcomeToolBuilder<TParams, TState> | undefined): this;
269
460
  private buildBaseDefinition;
461
+ /** @internal */
270
462
  producesPlan(configure: (plan: PlanResultBuilder<TParams, TState>) => PlanResultBuilder<TParams, TState>): FlowLlmTurn<TParams, TState, typeof DEFAULT_PLAN_RESULT_OUTCOME_ID>;
271
463
  private buildDefinition;
272
464
  }
465
+ /** @public */
273
466
  declare abstract class ExternalActionTurnBuilder<TParams, TState> extends DescribedTurnBuilder {
467
+ /** @internal */
274
468
  protected abstract readonly turnKind: "Automatic" | "Human";
275
469
  private externalActionBuilders;
470
+ /** @public */
276
471
  externalAction<TEvent = unknown, TInput extends Record<string, unknown> = Record<string, unknown>>(externalActionId: string, source: ExternalActionSource<TParams, TState, TEvent, TInput>, configure: (external: ExternalActionBuilder<TParams, TState, TEvent, TInput>) => ExternalActionBuilder<TParams, TState, TEvent, TInput> | undefined): this;
472
+ /** @internal */
277
473
  protected buildExternalActions(): Record<string, ProcessHumanTurnExternalActionSpec<TParams, TState>> | undefined;
278
474
  }
475
+ /** @public */
279
476
  export declare class AutomaticFlowBuilder<TParams = unknown, TState = unknown> extends ExternalActionTurnBuilder<TParams, TState> implements FlowAutomaticTurn<TParams, TState, string> {
477
+ /** @internal */
280
478
  protected readonly turnKind = "Automatic";
281
479
  private runFn;
282
480
  private outcomeBuilders;
283
481
  private availableIntegrationTools;
482
+ /** @internal */
284
483
  get definition(): AutomaticTurnDefinition<string, TParams, TState>;
484
+ /** @public */
285
485
  run(fn: (ctx: FlowAutomaticRunContext<TParams, TState>) => MaybePromise<WorkerCompleteInput<string>>): this;
486
+ /** @public */
286
487
  integrationTools(...tools: readonly string[]): this;
488
+ /** @public */
287
489
  outcome(id: string, configure: (outcome: AutomaticOutcomeBuilder<TParams, TState>) => AutomaticOutcomeBuilder<TParams, TState> | undefined): this;
288
490
  private buildDefinition;
289
491
  }
492
+ /** @public */
290
493
  export declare class HumanActionBuilder<TParams = unknown, TState = unknown> {
291
494
  private readonly actionId;
292
495
  private spec;
496
+ /** @internal */
293
497
  constructor(actionId: string);
498
+ /** @public */
294
499
  label(label: string): this;
500
+ /** @internal */
295
501
  description(description: string): this;
502
+ /** @public */
296
503
  acceptanceState(state: ProcessHumanTurnActionSpec<TParams, TState>["acceptanceState"]): this;
504
+ /** @public */
297
505
  form(form: FormDefinition): this;
506
+ /** @public */
298
507
  to(turnId: TurnId): this;
508
+ /** @internal */
299
509
  complete(): this;
510
+ /** @public */
300
511
  lifecycleStatus(status: ProcessTurnTerminalLifecycleStatus): this;
512
+ /** @internal */
301
513
  trigger(trigger: string): this;
514
+ /** @internal */
302
515
  schedulable(value?: boolean): this;
516
+ /** @public */
303
517
  effect(effect: ProcessHumanTurnActionSpec<TParams, TState>["effect"]): this;
518
+ /** @internal */
304
519
  build(): ProcessHumanTurnActionSpec<TParams, TState>;
305
520
  }
521
+ /** @public */
306
522
  export declare class ExternalActionBuilder<TParams = unknown, TState = unknown, TEvent = unknown, TInput extends Record<string, unknown> = Record<string, unknown>> {
307
523
  private spec;
524
+ /** @internal */
308
525
  constructor(actionId: string, source: ExternalActionSource<TParams, TState, TEvent, TInput>);
526
+ /** @public */
309
527
  label(label: string): this;
528
+ /** @public */
310
529
  description(description: string): this;
530
+ /** @public */
311
531
  when(condition: NonNullable<ProcessHumanTurnExternalActionSpec<TParams, TState>["when"]>): this;
532
+ /** @public */
312
533
  to(turnId: TurnId): this;
534
+ /** @internal */
313
535
  complete(): this;
536
+ /** @public */
314
537
  lifecycleStatus(status: ProcessTurnTerminalLifecycleStatus): this;
538
+ /** @internal */
315
539
  publishInput(productName: string, options: {
540
+ /** @internal */
316
541
  inputField: string;
317
542
  }): this;
543
+ /** @public */
318
544
  effect(effect: ExternalSourceEffect<TParams, TState, TEvent, TInput>): this;
545
+ /** @internal */
319
546
  build(): ProcessHumanTurnExternalActionSpec<TParams, TState, TEvent, TInput>;
320
547
  }
548
+ /** @public */
321
549
  export declare class HumanFlowBuilder<TParams = unknown, TState = unknown> extends ExternalActionTurnBuilder<TParams, TState> implements FlowHumanTurn<TParams, TState> {
550
+ /** @internal */
322
551
  protected readonly turnKind = "Human";
323
552
  private reviewProductName;
324
553
  private reviewSemanticRef;
@@ -326,66 +555,113 @@ export declare class HumanFlowBuilder<TParams = unknown, TState = unknown> exten
326
555
  private turnCommentary;
327
556
  private notes;
328
557
  private actions;
558
+ /** @public */
329
559
  get definition(): HumanTurnDefinition<TParams, TState>;
560
+ /** @public */
330
561
  reviewProduct(productName: string): this;
562
+ /** @public */
331
563
  operatorAttention(attention: HumanTurnOperatorAttention): this;
564
+ /** @internal */
332
565
  commentary(commentary: string): this;
566
+ /** @internal */
333
567
  notesFields(notes: HumanTurnDefinition<TParams, TState>["notesFields"]): this;
568
+ /** @public */
334
569
  action(actionId: string, configure: (action: HumanActionBuilder<TParams, TState>) => HumanActionBuilder<TParams, TState> | undefined): this;
335
570
  }
571
+ /** @public */
336
572
  export declare class ExternalRouteBuilder<TParams = unknown, TState = unknown, TEvent = unknown, TInput extends Record<string, unknown> = Record<string, unknown>> implements FlowExternalTurn<TParams, TState> {
337
573
  private readonly parent;
338
574
  private readonly source;
339
575
  private externalEffect;
340
576
  private target;
577
+ /** @internal */
341
578
  constructor(parent: ExternalFlowBuilder<TParams, TState>, source: ExternalActionSource<TParams, TState, TEvent, TInput>);
579
+ /** @internal */
342
580
  get id(): TurnId;
581
+ /** @internal */
343
582
  get definition(): ExternalTurnDefinition<TParams, TState>;
344
583
  private setTarget;
584
+ /** @public */
345
585
  to(turnId: TurnId): this;
586
+ /** @internal */
346
587
  complete(): this;
588
+ /** @internal */
347
589
  lifecycleStatus(status: ProcessTurnTerminalLifecycleStatus): this;
590
+ /** @internal */
348
591
  state(fn: (input: {
592
+ /** @internal */
349
593
  ctx: FlowExternalSourceContext<TParams, TState, TEvent, TInput>;
594
+ /** @internal */
350
595
  event: TEvent;
596
+ /** @internal */
351
597
  input: TInput;
352
598
  }) => MaybePromise<TState>): this;
599
+ /** @internal */
353
600
  effect(fn: (input: {
601
+ /** @internal */
354
602
  ctx: FlowExternalSourceContext<TParams, TState, TEvent, TInput>;
603
+ /** @internal */
355
604
  event: TEvent;
605
+ /** @internal */
356
606
  input: TInput;
357
607
  }) => MaybePromise<ProcessEffectPlan<TState> | undefined>): this;
608
+ /** @internal */
358
609
  build(): {
610
+ /** @internal */
359
611
  effect?: ExternalSourceEffect<TParams, TState, TEvent, TInput> | undefined;
612
+ /** @internal */
360
613
  to?: TurnId;
614
+ /** @internal */
361
615
  complete?: boolean;
616
+ /** @internal */
362
617
  lifecycleStatus?: ProcessTurnTerminalLifecycleStatus;
618
+ /** @internal */
363
619
  source: ExternalActionSource<TParams, TState, TEvent, TInput>;
364
620
  };
365
621
  }
622
+ /** @public */
366
623
  export declare class ExternalFlowBuilder<TParams = unknown, TState = unknown> extends DescribedTurnBuilder implements FlowExternalTurn<TParams, TState> {
367
624
  private routeBuilders;
625
+ /** @internal */
368
626
  get definition(): ExternalTurnDefinition<TParams, TState>;
627
+ /** @public */
369
628
  from<TEvent = unknown, TInput extends Record<string, unknown> = Record<string, unknown>>(source: ExternalActionSource<TParams, TState, TEvent, TInput>): ExternalRouteBuilder<TParams, TState, TEvent, TInput>;
370
629
  }
630
+ /** @public */
371
631
  type Hook<TApi> = (api: TApi) => void;
632
+ /** @public */
372
633
  export declare abstract class FlowComponentBuilder<TParams = unknown, TState = unknown> {
634
+ /** @internal */
373
635
  readonly turns: FlowTurn<TParams, TState>[];
636
+ /** @internal */
374
637
  readonly serverHooks: Hook<ServerProcessAPI<TParams, TState>>[];
638
+ /** @internal */
375
639
  readonly uiHooks: Hook<UiProcessAPI<TParams, TState>>[];
640
+ /** @internal */
376
641
  readonly launcherHooks: Hook<ProcessLauncherAPI<TParams>>[];
642
+ /** @internal */
377
643
  readonly watcherHooks: Hook<ProcessWatcherAPI<TParams>>[];
644
+ /** @public */
378
645
  turn(turn: FlowTurn<TParams, TState>): this;
646
+ /** @internal */
379
647
  server(hook: Hook<ServerProcessAPI<TParams, TState>>): this;
648
+ /** @internal */
380
649
  action(definition: ProcessActionDefinition<TParams, TState>): this;
650
+ /** @internal */
381
651
  ui(hook: Hook<UiProcessAPI<TParams, TState>>): this;
652
+ /** @public */
382
653
  launcher(definitionOrHook: ProcessLauncherDefinition<TParams> | Hook<ProcessLauncherAPI<TParams>>): this;
654
+ /** @public */
383
655
  watcher<TEvent = unknown, TConfig = unknown>(definitionOrHook: ProcessWatcherDefinition<TParams, TEvent, TConfig> | Hook<ProcessWatcherAPI<TParams>>): this;
384
656
  }
657
+ /** @public */
385
658
  export declare class FlowFragmentBuilder<TParams = unknown, TState = unknown> extends FlowComponentBuilder<TParams, TState> {
659
+ /** @internal */
386
660
  readonly name: string;
661
+ /** @internal */
387
662
  constructor(name: string);
388
663
  }
664
+ /** @public */
389
665
  export declare class FlowProcessBuilder<TParams = unknown, TState = unknown> extends FlowComponentBuilder<TParams, TState> {
390
666
  private readonly processId;
391
667
  private processDisplayName;
@@ -400,40 +676,61 @@ export declare class FlowProcessBuilder<TParams = unknown, TState = unknown> ext
400
676
  private processPiConfig;
401
677
  private developmentTools;
402
678
  private docker;
679
+ /** @internal */
403
680
  constructor(processId: string);
681
+ /** @public */
404
682
  displayName(displayName: string): this;
683
+ /** @public */
405
684
  entry(turnId: TurnId): this;
406
- /** Declare an additional turn that launchers may select as the first turn. */
685
+ /** Declare an additional turn that launchers may select as the first turn. @internal */
407
686
  alternateEntry(turnId: TurnId): this;
408
687
  /**
409
688
  * Declare the happy path: the ordered spine of turns a successful run walks
410
689
  * through. Flow diagrams render this as the main line. Must start at the entry
411
690
  * turn and reference only declared turns without repeats.
412
691
  */
692
+ /** @public */
413
693
  happyPath(...turnIds: readonly TurnId[]): this;
694
+ /** @public */
414
695
  codecs(input: {
696
+ /** @public */
415
697
  params: Codec<TParams>;
698
+ /** @public */
416
699
  state: Codec<TState>;
417
700
  }): this;
701
+ /** @public */
418
702
  initialState(fn: (params: TParams) => TState): this;
419
- repositoryCredentials(fn: NonNullable<ProcessDefinition<TParams, TState>["repositoryCredentials"]>): this;
420
- /** Resolve new process-volume capacity on the server; operator configuration wins. */
421
- resolveStorageSize(fn: NonNullable<ProcessDefinition<TParams, TState>["resolveStorageSize"]>): this;
703
+ /** @public */
704
+ repositoryCredentials(fn: NonNullable<ExtensionProcessDefinition<TParams, TState>["repositoryCredentials"]>): this;
705
+ /** Resolve new process-volume capacity on the server; operator configuration wins. @internal */
706
+ resolveStorageSize(fn: NonNullable<ExtensionProcessDefinition<TParams, TState>["resolveStorageSize"]>): this;
707
+ /** @public */
422
708
  piConfig(config: ProcessPiConfig): this;
423
- /** Declare runner-provided process runtime capabilities. */
709
+ /** Declare runner-provided process runtime capabilities. @public */
424
710
  runtime(capabilities: {
711
+ /** @internal */
425
712
  developmentTools?: boolean;
713
+ /** @public */
426
714
  docker?: boolean;
427
715
  }): this;
716
+ /** @internal */
428
717
  use(fragment: FlowFragmentBuilder<TParams, TState>): this;
429
- define(): ProcessDefinition<TParams, TState>;
718
+ /** @public */
719
+ define(): ExtensionProcessDefinition<TParams, TState>;
430
720
  }
721
+ /** @public */
431
722
  export declare const flow: {
723
+ /** @public */
432
724
  llm<TParams = unknown, TState = unknown>(turnId: TurnId): LlmFlowBuilder<TParams, TState>;
725
+ /** @public */
433
726
  automatic<TParams = unknown, TState = unknown>(turnId: TurnId): AutomaticFlowBuilder<TParams, TState>;
727
+ /** @public */
434
728
  human<TParams = unknown, TState = unknown>(turnId: TurnId): HumanFlowBuilder<TParams, TState>;
729
+ /** @public */
435
730
  external<TParams = unknown, TState = unknown>(turnId: TurnId): ExternalFlowBuilder<TParams, TState>;
731
+ /** @public */
436
732
  fragment<TParams = unknown, TState = unknown>(name: string): FlowFragmentBuilder<TParams, TState>;
733
+ /** @public */
437
734
  process<TParams = unknown, TState = unknown>(processId: string): FlowProcessBuilder<TParams, TState>;
438
735
  };
439
736
  export {};