@leitwerk-dev/process-sdk 0.4.2 → 0.4.4
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/{extension-api-Ljc4UTZ0.d.ts → extension-api-aqlhw3H7.d.ts} +11 -1
- package/dist/extension-api.d.ts +11 -1
- package/dist/extension-api.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/launcher-contract.d.ts +1 -1
- package/dist/launcher-contract.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/extension-api.ts +11 -0
- package/src/index.ts +2 -0
- package/src/launcher-contract.ts +2 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { LauncherCardMetadata, LauncherFieldDefinition, LauncherFieldOptionDefinition, LauncherSchemaDefinition, LauncherValidationError, UiLauncherSummaryBase, } from "@leitwerk-dev/protocol/launcher-contract";
|
|
1
|
+
export type { LauncherCardMetadata, LauncherFieldDefinition, LauncherFieldOptionDefinition, LauncherReadiness, LauncherReadinessIssue, LauncherSchemaDefinition, LauncherValidationError, UiLauncherSummaryBase, } from "@leitwerk-dev/protocol/launcher-contract";
|
|
2
2
|
//# sourceMappingURL=launcher-contract.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"launcher-contract.d.ts","sourceRoot":"","sources":["../src/launcher-contract.ts"],"names":[],"mappings":"AAAA,YAAY,EACX,oBAAoB,EACpB,uBAAuB,EACvB,6BAA6B,EAC7B,wBAAwB,EACxB,uBAAuB,EACvB,qBAAqB,GACrB,MAAM,0CAA0C,CAAC"}
|
|
1
|
+
{"version":3,"file":"launcher-contract.d.ts","sourceRoot":"","sources":["../src/launcher-contract.ts"],"names":[],"mappings":"AAAA,YAAY,EACX,oBAAoB,EACpB,uBAAuB,EACvB,6BAA6B,EAC7B,iBAAiB,EACjB,sBAAsB,EACtB,wBAAwB,EACxB,uBAAuB,EACvB,qBAAqB,GACrB,MAAM,0CAA0C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leitwerk-dev/process-sdk",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/leitwerk-dev/leitwerk.git",
|
|
@@ -43,14 +43,14 @@
|
|
|
43
43
|
"build": "tsup --silent"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@leitwerk-dev/domain": "0.4.
|
|
47
|
-
"@leitwerk-dev/protocol": "0.4.
|
|
48
|
-
"@leitwerk-dev/worker-protocol": "0.4.
|
|
49
|
-
"@leitwerk-dev/watcher-utils": "0.4.
|
|
46
|
+
"@leitwerk-dev/domain": "0.4.4",
|
|
47
|
+
"@leitwerk-dev/protocol": "0.4.4",
|
|
48
|
+
"@leitwerk-dev/worker-protocol": "0.4.4",
|
|
49
|
+
"@leitwerk-dev/watcher-utils": "0.4.4",
|
|
50
50
|
"escape-html": "^1.0.3",
|
|
51
51
|
"mustache": "^4.2.0",
|
|
52
52
|
"valibot": "^1.3.1",
|
|
53
|
-
"@leitwerk-dev/external-writes": "0.4.
|
|
53
|
+
"@leitwerk-dev/external-writes": "0.4.4"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@types/escape-html": "^1.0.4",
|
package/src/extension-api.ts
CHANGED
|
@@ -30,6 +30,7 @@ import type {
|
|
|
30
30
|
import type {
|
|
31
31
|
LauncherCardMetadata,
|
|
32
32
|
LauncherFieldOptionDefinition,
|
|
33
|
+
LauncherReadiness,
|
|
33
34
|
LauncherSchemaDefinition,
|
|
34
35
|
LauncherValidationError,
|
|
35
36
|
UiLauncherSummaryBase,
|
|
@@ -216,6 +217,14 @@ export class SafeLaunchPreparationError extends Error {
|
|
|
216
217
|
|
|
217
218
|
/** @public */
|
|
218
219
|
export interface UiLauncherDefinition<TParams = unknown> {
|
|
220
|
+
/**
|
|
221
|
+
* Fast, synchronous, read-only configuration check. No external I/O or mutations.
|
|
222
|
+
* Empty input requests an overview; partial means some selections are usable.
|
|
223
|
+
* Concrete selections must return ready or blocked. Return only operator-safe text.
|
|
224
|
+
* External connection tests are separate explicit operations, never readiness checks.
|
|
225
|
+
* @public
|
|
226
|
+
*/
|
|
227
|
+
readiness?(input: Record<string, unknown>): LauncherReadiness;
|
|
219
228
|
/** @public */
|
|
220
229
|
card: LauncherCardMetadata;
|
|
221
230
|
/** @public */
|
|
@@ -404,6 +413,8 @@ export interface UiLauncherSummary extends UiLauncherSummaryBase {}
|
|
|
404
413
|
export interface ProcessLauncherService {
|
|
405
414
|
/** @internal */
|
|
406
415
|
listUiLaunchers(): readonly UiLauncherSummary[];
|
|
416
|
+
/** Same local check used by the gallery, form and launch preparation. @internal */
|
|
417
|
+
resolveUiReadiness?(launcherId: string, input: Record<string, unknown>): LauncherReadiness;
|
|
407
418
|
/** @internal */
|
|
408
419
|
resolveUiDefaults(launcherId: string, ctx?: LauncherContext): Promise<Record<string, unknown>>;
|
|
409
420
|
/** @internal */
|
package/src/index.ts
CHANGED
|
@@ -186,6 +186,8 @@ export { parseJsonData } from "./json-data.js";
|
|
|
186
186
|
export type {
|
|
187
187
|
LauncherFieldDefinition,
|
|
188
188
|
LauncherFieldOptionDefinition,
|
|
189
|
+
LauncherReadiness,
|
|
190
|
+
LauncherReadinessIssue,
|
|
189
191
|
LauncherValidationError,
|
|
190
192
|
} from "./launcher-contract.js";
|
|
191
193
|
export {
|