@tomflow/proflow-execution-runtime 0.1.1 → 0.1.3
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/CHANGELOG.md +12 -0
- package/dist/deployment/adapter.d.ts +32 -52
- package/dist/deployment/adapter.js +4 -1
- package/dist/deployment/descriptor.d.ts +1 -1
- package/dist/deployment/descriptor.js +1 -1
- package/dist/src/formal-process.js +28 -10
- package/dist/src/service.d.ts +1 -0
- package/dist/src/service.js +10 -1
- package/package.json +3 -3
- package/proflow.module.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @tomflow/proflow-execution-runtime
|
|
2
2
|
|
|
3
|
+
## 0.1.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Re-probe recoverable identity and model dependencies during Execution Runtime readiness so normal startup order converges without a second manual restart.
|
|
8
|
+
|
|
9
|
+
## 0.1.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Real-1 final remediation and black-box release closure
|
|
14
|
+
|
|
3
15
|
## 0.1.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -19,7 +19,7 @@ export declare function createBehaviorAdapter(service?: ProcessService): {
|
|
|
19
19
|
readonly ok: true;
|
|
20
20
|
readonly status: "SUCCEEDED";
|
|
21
21
|
readonly moduleRef: "execution-runtime";
|
|
22
|
-
readonly moduleVersion: "0.1.
|
|
22
|
+
readonly moduleVersion: "0.1.3";
|
|
23
23
|
};
|
|
24
24
|
observedEffects: never[];
|
|
25
25
|
};
|
|
@@ -29,7 +29,7 @@ export declare function createBehaviorAdapter(service?: ProcessService): {
|
|
|
29
29
|
readonly ok: true;
|
|
30
30
|
readonly status: "SUCCEEDED";
|
|
31
31
|
readonly moduleRef: "execution-runtime";
|
|
32
|
-
readonly moduleVersion: "0.1.
|
|
32
|
+
readonly moduleVersion: "0.1.3";
|
|
33
33
|
};
|
|
34
34
|
observedEffects: never[];
|
|
35
35
|
};
|
|
@@ -37,7 +37,7 @@ export declare function createBehaviorAdapter(service?: ProcessService): {
|
|
|
37
37
|
result: {
|
|
38
38
|
readonly contract: "deployment.result.v1";
|
|
39
39
|
readonly moduleRef: "execution-runtime";
|
|
40
|
-
readonly moduleVersion: "0.1.
|
|
40
|
+
readonly moduleVersion: "0.1.3";
|
|
41
41
|
readonly ok: false;
|
|
42
42
|
readonly status: "ACTION_REQUIRED";
|
|
43
43
|
readonly actionRequired: {
|
|
@@ -49,7 +49,7 @@ export declare function createBehaviorAdapter(service?: ProcessService): {
|
|
|
49
49
|
ok: true;
|
|
50
50
|
status: "SUCCEEDED";
|
|
51
51
|
moduleRef: "execution-runtime";
|
|
52
|
-
moduleVersion: "0.1.
|
|
52
|
+
moduleVersion: "0.1.3";
|
|
53
53
|
data: {
|
|
54
54
|
readiness: "READY" | "NOT_READY";
|
|
55
55
|
} | undefined;
|
|
@@ -61,7 +61,7 @@ export declare function createBehaviorAdapter(service?: ProcessService): {
|
|
|
61
61
|
} | {
|
|
62
62
|
contract: "deployment.result.v1";
|
|
63
63
|
moduleRef: "execution-runtime";
|
|
64
|
-
moduleVersion: "0.1.
|
|
64
|
+
moduleVersion: "0.1.3";
|
|
65
65
|
ok: false;
|
|
66
66
|
status: "ACTION_REQUIRED";
|
|
67
67
|
actionRequired: {
|
|
@@ -85,7 +85,7 @@ export declare function createBehaviorAdapter(service?: ProcessService): {
|
|
|
85
85
|
ok: true;
|
|
86
86
|
status: "SUCCEEDED";
|
|
87
87
|
moduleRef: "execution-runtime";
|
|
88
|
-
moduleVersion: "0.1.
|
|
88
|
+
moduleVersion: "0.1.3";
|
|
89
89
|
checks: {
|
|
90
90
|
id: string;
|
|
91
91
|
status: "FAIL" | "PASS";
|
|
@@ -94,7 +94,7 @@ export declare function createBehaviorAdapter(service?: ProcessService): {
|
|
|
94
94
|
} | {
|
|
95
95
|
contract: "deployment.result.v1";
|
|
96
96
|
moduleRef: "execution-runtime";
|
|
97
|
-
moduleVersion: "0.1.
|
|
97
|
+
moduleVersion: "0.1.3";
|
|
98
98
|
ok: false;
|
|
99
99
|
status: "ACTION_REQUIRED";
|
|
100
100
|
actionRequired: {
|
|
@@ -109,7 +109,7 @@ export declare function createBehaviorAdapter(service?: ProcessService): {
|
|
|
109
109
|
} | {
|
|
110
110
|
contract: "deployment.result.v1";
|
|
111
111
|
moduleRef: "execution-runtime";
|
|
112
|
-
moduleVersion: "0.1.
|
|
112
|
+
moduleVersion: "0.1.3";
|
|
113
113
|
ok: false;
|
|
114
114
|
status: "ACTION_REQUIRED";
|
|
115
115
|
actionRequired: {
|
|
@@ -130,7 +130,7 @@ export declare function createBehaviorAdapter(service?: ProcessService): {
|
|
|
130
130
|
readonly ok: true;
|
|
131
131
|
readonly status: "SUCCEEDED";
|
|
132
132
|
readonly moduleRef: "execution-runtime";
|
|
133
|
-
readonly moduleVersion: "0.1.
|
|
133
|
+
readonly moduleVersion: "0.1.3";
|
|
134
134
|
};
|
|
135
135
|
observedEffects: never[];
|
|
136
136
|
};
|
|
@@ -138,7 +138,7 @@ export declare function createBehaviorAdapter(service?: ProcessService): {
|
|
|
138
138
|
result: {
|
|
139
139
|
readonly contract: "deployment.result.v1";
|
|
140
140
|
readonly moduleRef: "execution-runtime";
|
|
141
|
-
readonly moduleVersion: "0.1.
|
|
141
|
+
readonly moduleVersion: "0.1.3";
|
|
142
142
|
readonly ok: false;
|
|
143
143
|
readonly status: "ACTION_REQUIRED";
|
|
144
144
|
readonly actionRequired: {
|
|
@@ -150,7 +150,7 @@ export declare function createBehaviorAdapter(service?: ProcessService): {
|
|
|
150
150
|
ok: true;
|
|
151
151
|
status: "SUCCEEDED";
|
|
152
152
|
moduleRef: "execution-runtime";
|
|
153
|
-
moduleVersion: "0.1.
|
|
153
|
+
moduleVersion: "0.1.3";
|
|
154
154
|
data: {
|
|
155
155
|
host: string;
|
|
156
156
|
port: number;
|
|
@@ -164,11 +164,11 @@ export declare function createBehaviorAdapter(service?: ProcessService): {
|
|
|
164
164
|
readonly ok: true;
|
|
165
165
|
readonly status: "SUCCEEDED";
|
|
166
166
|
readonly moduleRef: "execution-runtime";
|
|
167
|
-
readonly moduleVersion: "0.1.
|
|
167
|
+
readonly moduleVersion: "0.1.3";
|
|
168
168
|
} | {
|
|
169
169
|
readonly contract: "deployment.result.v1";
|
|
170
170
|
readonly moduleRef: "execution-runtime";
|
|
171
|
-
readonly moduleVersion: "0.1.
|
|
171
|
+
readonly moduleVersion: "0.1.3";
|
|
172
172
|
readonly ok: false;
|
|
173
173
|
readonly status: "ACTION_REQUIRED";
|
|
174
174
|
readonly actionRequired: {
|
|
@@ -184,17 +184,7 @@ export declare function createBehaviorAdapter(service?: ProcessService): {
|
|
|
184
184
|
readonly ok: true;
|
|
185
185
|
readonly status: "SUCCEEDED";
|
|
186
186
|
readonly moduleRef: "execution-runtime";
|
|
187
|
-
readonly moduleVersion: "0.1.
|
|
188
|
-
} | {
|
|
189
|
-
readonly contract: "deployment.result.v1";
|
|
190
|
-
readonly moduleRef: "execution-runtime";
|
|
191
|
-
readonly moduleVersion: "0.1.1";
|
|
192
|
-
readonly ok: false;
|
|
193
|
-
readonly status: "ACTION_REQUIRED";
|
|
194
|
-
readonly actionRequired: {
|
|
195
|
-
readonly action: "bind-runtime";
|
|
196
|
-
readonly description: "Bind a configured Execution Runtime service";
|
|
197
|
-
};
|
|
187
|
+
readonly moduleVersion: "0.1.3";
|
|
198
188
|
};
|
|
199
189
|
observedEffects: "Runs the single backend Execution Runtime service"[];
|
|
200
190
|
}>;
|
|
@@ -202,7 +192,7 @@ export declare function createBehaviorAdapter(service?: ProcessService): {
|
|
|
202
192
|
result: {
|
|
203
193
|
readonly contract: "deployment.result.v1";
|
|
204
194
|
readonly moduleRef: "execution-runtime";
|
|
205
|
-
readonly moduleVersion: "0.1.
|
|
195
|
+
readonly moduleVersion: "0.1.3";
|
|
206
196
|
readonly ok: false;
|
|
207
197
|
readonly status: "ACTION_REQUIRED";
|
|
208
198
|
readonly actionRequired: {
|
|
@@ -214,7 +204,7 @@ export declare function createBehaviorAdapter(service?: ProcessService): {
|
|
|
214
204
|
ok: true;
|
|
215
205
|
status: "SUCCEEDED";
|
|
216
206
|
moduleRef: "execution-runtime";
|
|
217
|
-
moduleVersion: "0.1.
|
|
207
|
+
moduleVersion: "0.1.3";
|
|
218
208
|
data: {
|
|
219
209
|
host: string;
|
|
220
210
|
port: number;
|
|
@@ -230,7 +220,7 @@ export declare const behaviorAdapter: {
|
|
|
230
220
|
readonly ok: true;
|
|
231
221
|
readonly status: "SUCCEEDED";
|
|
232
222
|
readonly moduleRef: "execution-runtime";
|
|
233
|
-
readonly moduleVersion: "0.1.
|
|
223
|
+
readonly moduleVersion: "0.1.3";
|
|
234
224
|
};
|
|
235
225
|
observedEffects: never[];
|
|
236
226
|
};
|
|
@@ -240,7 +230,7 @@ export declare const behaviorAdapter: {
|
|
|
240
230
|
readonly ok: true;
|
|
241
231
|
readonly status: "SUCCEEDED";
|
|
242
232
|
readonly moduleRef: "execution-runtime";
|
|
243
|
-
readonly moduleVersion: "0.1.
|
|
233
|
+
readonly moduleVersion: "0.1.3";
|
|
244
234
|
};
|
|
245
235
|
observedEffects: never[];
|
|
246
236
|
};
|
|
@@ -248,7 +238,7 @@ export declare const behaviorAdapter: {
|
|
|
248
238
|
result: {
|
|
249
239
|
readonly contract: "deployment.result.v1";
|
|
250
240
|
readonly moduleRef: "execution-runtime";
|
|
251
|
-
readonly moduleVersion: "0.1.
|
|
241
|
+
readonly moduleVersion: "0.1.3";
|
|
252
242
|
readonly ok: false;
|
|
253
243
|
readonly status: "ACTION_REQUIRED";
|
|
254
244
|
readonly actionRequired: {
|
|
@@ -260,7 +250,7 @@ export declare const behaviorAdapter: {
|
|
|
260
250
|
ok: true;
|
|
261
251
|
status: "SUCCEEDED";
|
|
262
252
|
moduleRef: "execution-runtime";
|
|
263
|
-
moduleVersion: "0.1.
|
|
253
|
+
moduleVersion: "0.1.3";
|
|
264
254
|
data: {
|
|
265
255
|
readiness: "READY" | "NOT_READY";
|
|
266
256
|
} | undefined;
|
|
@@ -272,7 +262,7 @@ export declare const behaviorAdapter: {
|
|
|
272
262
|
} | {
|
|
273
263
|
contract: "deployment.result.v1";
|
|
274
264
|
moduleRef: "execution-runtime";
|
|
275
|
-
moduleVersion: "0.1.
|
|
265
|
+
moduleVersion: "0.1.3";
|
|
276
266
|
ok: false;
|
|
277
267
|
status: "ACTION_REQUIRED";
|
|
278
268
|
actionRequired: {
|
|
@@ -296,7 +286,7 @@ export declare const behaviorAdapter: {
|
|
|
296
286
|
ok: true;
|
|
297
287
|
status: "SUCCEEDED";
|
|
298
288
|
moduleRef: "execution-runtime";
|
|
299
|
-
moduleVersion: "0.1.
|
|
289
|
+
moduleVersion: "0.1.3";
|
|
300
290
|
checks: {
|
|
301
291
|
id: string;
|
|
302
292
|
status: "FAIL" | "PASS";
|
|
@@ -305,7 +295,7 @@ export declare const behaviorAdapter: {
|
|
|
305
295
|
} | {
|
|
306
296
|
contract: "deployment.result.v1";
|
|
307
297
|
moduleRef: "execution-runtime";
|
|
308
|
-
moduleVersion: "0.1.
|
|
298
|
+
moduleVersion: "0.1.3";
|
|
309
299
|
ok: false;
|
|
310
300
|
status: "ACTION_REQUIRED";
|
|
311
301
|
actionRequired: {
|
|
@@ -320,7 +310,7 @@ export declare const behaviorAdapter: {
|
|
|
320
310
|
} | {
|
|
321
311
|
contract: "deployment.result.v1";
|
|
322
312
|
moduleRef: "execution-runtime";
|
|
323
|
-
moduleVersion: "0.1.
|
|
313
|
+
moduleVersion: "0.1.3";
|
|
324
314
|
ok: false;
|
|
325
315
|
status: "ACTION_REQUIRED";
|
|
326
316
|
actionRequired: {
|
|
@@ -341,7 +331,7 @@ export declare const behaviorAdapter: {
|
|
|
341
331
|
readonly ok: true;
|
|
342
332
|
readonly status: "SUCCEEDED";
|
|
343
333
|
readonly moduleRef: "execution-runtime";
|
|
344
|
-
readonly moduleVersion: "0.1.
|
|
334
|
+
readonly moduleVersion: "0.1.3";
|
|
345
335
|
};
|
|
346
336
|
observedEffects: never[];
|
|
347
337
|
};
|
|
@@ -349,7 +339,7 @@ export declare const behaviorAdapter: {
|
|
|
349
339
|
result: {
|
|
350
340
|
readonly contract: "deployment.result.v1";
|
|
351
341
|
readonly moduleRef: "execution-runtime";
|
|
352
|
-
readonly moduleVersion: "0.1.
|
|
342
|
+
readonly moduleVersion: "0.1.3";
|
|
353
343
|
readonly ok: false;
|
|
354
344
|
readonly status: "ACTION_REQUIRED";
|
|
355
345
|
readonly actionRequired: {
|
|
@@ -361,7 +351,7 @@ export declare const behaviorAdapter: {
|
|
|
361
351
|
ok: true;
|
|
362
352
|
status: "SUCCEEDED";
|
|
363
353
|
moduleRef: "execution-runtime";
|
|
364
|
-
moduleVersion: "0.1.
|
|
354
|
+
moduleVersion: "0.1.3";
|
|
365
355
|
data: {
|
|
366
356
|
host: string;
|
|
367
357
|
port: number;
|
|
@@ -375,11 +365,11 @@ export declare const behaviorAdapter: {
|
|
|
375
365
|
readonly ok: true;
|
|
376
366
|
readonly status: "SUCCEEDED";
|
|
377
367
|
readonly moduleRef: "execution-runtime";
|
|
378
|
-
readonly moduleVersion: "0.1.
|
|
368
|
+
readonly moduleVersion: "0.1.3";
|
|
379
369
|
} | {
|
|
380
370
|
readonly contract: "deployment.result.v1";
|
|
381
371
|
readonly moduleRef: "execution-runtime";
|
|
382
|
-
readonly moduleVersion: "0.1.
|
|
372
|
+
readonly moduleVersion: "0.1.3";
|
|
383
373
|
readonly ok: false;
|
|
384
374
|
readonly status: "ACTION_REQUIRED";
|
|
385
375
|
readonly actionRequired: {
|
|
@@ -395,17 +385,7 @@ export declare const behaviorAdapter: {
|
|
|
395
385
|
readonly ok: true;
|
|
396
386
|
readonly status: "SUCCEEDED";
|
|
397
387
|
readonly moduleRef: "execution-runtime";
|
|
398
|
-
readonly moduleVersion: "0.1.
|
|
399
|
-
} | {
|
|
400
|
-
readonly contract: "deployment.result.v1";
|
|
401
|
-
readonly moduleRef: "execution-runtime";
|
|
402
|
-
readonly moduleVersion: "0.1.1";
|
|
403
|
-
readonly ok: false;
|
|
404
|
-
readonly status: "ACTION_REQUIRED";
|
|
405
|
-
readonly actionRequired: {
|
|
406
|
-
readonly action: "bind-runtime";
|
|
407
|
-
readonly description: "Bind a configured Execution Runtime service";
|
|
408
|
-
};
|
|
388
|
+
readonly moduleVersion: "0.1.3";
|
|
409
389
|
};
|
|
410
390
|
observedEffects: "Runs the single backend Execution Runtime service"[];
|
|
411
391
|
}>;
|
|
@@ -413,7 +393,7 @@ export declare const behaviorAdapter: {
|
|
|
413
393
|
result: {
|
|
414
394
|
readonly contract: "deployment.result.v1";
|
|
415
395
|
readonly moduleRef: "execution-runtime";
|
|
416
|
-
readonly moduleVersion: "0.1.
|
|
396
|
+
readonly moduleVersion: "0.1.3";
|
|
417
397
|
readonly ok: false;
|
|
418
398
|
readonly status: "ACTION_REQUIRED";
|
|
419
399
|
readonly actionRequired: {
|
|
@@ -425,7 +405,7 @@ export declare const behaviorAdapter: {
|
|
|
425
405
|
ok: true;
|
|
426
406
|
status: "SUCCEEDED";
|
|
427
407
|
moduleRef: "execution-runtime";
|
|
428
|
-
moduleVersion: "0.1.
|
|
408
|
+
moduleVersion: "0.1.3";
|
|
429
409
|
data: {
|
|
430
410
|
host: string;
|
|
431
411
|
port: number;
|
|
@@ -101,7 +101,10 @@ export function createBehaviorAdapter(service) {
|
|
|
101
101
|
if (service)
|
|
102
102
|
await service.stop();
|
|
103
103
|
return {
|
|
104
|
-
|
|
104
|
+
// Uninstall is idempotent: an unbound service means there is no
|
|
105
|
+
// process to stop before package removal. Runtime readiness still
|
|
106
|
+
// fails closed in status/start/verify.
|
|
107
|
+
result: base,
|
|
105
108
|
observedEffects: service
|
|
106
109
|
? descriptor.effects
|
|
107
110
|
.filter((item) => item.retention === "remove")
|
|
@@ -3,7 +3,7 @@ export declare const descriptor: {
|
|
|
3
3
|
readonly contractVersion: "1.0.0";
|
|
4
4
|
readonly moduleRef: "execution-runtime";
|
|
5
5
|
readonly packageName: "@tomflow/proflow-execution-runtime";
|
|
6
|
-
readonly moduleVersion: "0.1.
|
|
6
|
+
readonly moduleVersion: "0.1.3";
|
|
7
7
|
readonly kind: "service";
|
|
8
8
|
readonly templateVersion: "1.0.0";
|
|
9
9
|
readonly platformCompatibility: ">=1.0.0 <2.0.0";
|
|
@@ -3,7 +3,7 @@ export const descriptor = {
|
|
|
3
3
|
contractVersion: "1.0.0",
|
|
4
4
|
moduleRef: "execution-runtime",
|
|
5
5
|
packageName: "@tomflow/proflow-execution-runtime",
|
|
6
|
-
moduleVersion: "0.1.
|
|
6
|
+
moduleVersion: "0.1.3",
|
|
7
7
|
kind: "service",
|
|
8
8
|
templateVersion: "1.0.0",
|
|
9
9
|
platformCompatibility: ">=1.0.0 <2.0.0",
|
|
@@ -16,15 +16,19 @@ async function createIdentityClient(config) {
|
|
|
16
16
|
const token = await readSecret(config.tokenFile, "execution identity token");
|
|
17
17
|
let ready = false;
|
|
18
18
|
const headers = { authorization: `Bearer ${token}` };
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
19
|
+
const probe = async () => {
|
|
20
|
+
try {
|
|
21
|
+
ready = (await fetch(`${config.endpoint}/internal/execution/identity/ready`, {
|
|
22
|
+
headers,
|
|
23
|
+
signal: AbortSignal.timeout(2_000),
|
|
24
|
+
})).ok;
|
|
25
|
+
}
|
|
26
|
+
catch {
|
|
27
|
+
ready = false;
|
|
28
|
+
}
|
|
29
|
+
return ready;
|
|
30
|
+
};
|
|
31
|
+
await probe();
|
|
28
32
|
return {
|
|
29
33
|
port: {
|
|
30
34
|
async authorize(request) {
|
|
@@ -47,6 +51,7 @@ async function createIdentityClient(config) {
|
|
|
47
51
|
}
|
|
48
52
|
},
|
|
49
53
|
},
|
|
54
|
+
probe,
|
|
50
55
|
readiness: () => ready,
|
|
51
56
|
};
|
|
52
57
|
}
|
|
@@ -85,7 +90,19 @@ export function createFormalExecutionRuntimeLifecycle(input) {
|
|
|
85
90
|
: { timeoutMs: required.modelDecision.timeoutMs }),
|
|
86
91
|
credential: modelDecisionCredential,
|
|
87
92
|
});
|
|
88
|
-
|
|
93
|
+
let dependencyRefresh;
|
|
94
|
+
const refreshDependencies = () => {
|
|
95
|
+
dependencyRefresh ??= Promise.allSettled([
|
|
96
|
+
identityClient.probe(),
|
|
97
|
+
modelDecisionClient.probe(),
|
|
98
|
+
])
|
|
99
|
+
.then(() => undefined)
|
|
100
|
+
.finally(() => {
|
|
101
|
+
dependencyRefresh = undefined;
|
|
102
|
+
});
|
|
103
|
+
return dependencyRefresh;
|
|
104
|
+
};
|
|
105
|
+
await refreshDependencies();
|
|
89
106
|
const browserVisionClient = createExecutionBrowserVisionClient({
|
|
90
107
|
endpoint: required.modelDecision.endpoint,
|
|
91
108
|
...(required.modelDecision.timeoutMs === undefined
|
|
@@ -106,6 +123,7 @@ export function createFormalExecutionRuntimeLifecycle(input) {
|
|
|
106
123
|
requireModelDecision: true,
|
|
107
124
|
modelDecision: modelDecisionClient.port,
|
|
108
125
|
modelDecisionReadiness: modelDecisionClient.readiness,
|
|
126
|
+
refreshDependencies,
|
|
109
127
|
browserExecutor: browserComposition.browserExecutor,
|
|
110
128
|
browserReadiness: () => browserComposition.bridgeStatus().online,
|
|
111
129
|
carrierSummary: () => browserComposition.bridgeStatus(),
|
package/dist/src/service.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ export declare function createExecutionRuntimeProcess(input: {
|
|
|
48
48
|
policy?: ExecutionRuntimeOptions["policy"];
|
|
49
49
|
modelDecision?: ExecutionRuntimeOptions["modelDecision"];
|
|
50
50
|
modelDecisionReadiness?: () => boolean;
|
|
51
|
+
refreshDependencies?: () => Promise<void>;
|
|
51
52
|
approval?: ExecutionRuntimeOptions["approval"];
|
|
52
53
|
log?: (entry: Record<string, unknown>) => void;
|
|
53
54
|
transportCredential?: string;
|
package/dist/src/service.js
CHANGED
|
@@ -186,7 +186,16 @@ export async function createExecutionRuntimeProcess(input) {
|
|
|
186
186
|
if (request.method === "GET" && url.pathname === "/health")
|
|
187
187
|
return respond(response, 200, { status: "UP" });
|
|
188
188
|
if (request.method === "GET" && url.pathname === "/ready") {
|
|
189
|
-
|
|
189
|
+
let current = status();
|
|
190
|
+
if (current.readiness !== "READY" && input.refreshDependencies) {
|
|
191
|
+
try {
|
|
192
|
+
await input.refreshDependencies();
|
|
193
|
+
}
|
|
194
|
+
catch {
|
|
195
|
+
// Keep readiness fail-closed when the bounded dependency re-probe fails.
|
|
196
|
+
}
|
|
197
|
+
current = status();
|
|
198
|
+
}
|
|
190
199
|
return respond(response, current.readiness === "READY" ? 200 : 503, current);
|
|
191
200
|
}
|
|
192
201
|
if (input.transportCredential) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tomflow/proflow-execution-runtime",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"README.md"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@tomflow/proflow-execution-
|
|
26
|
-
"@tomflow/proflow-execution-
|
|
25
|
+
"@tomflow/proflow-execution-browser-extension": "^0.1.3",
|
|
26
|
+
"@tomflow/proflow-execution-local": "^0.1.3",
|
|
27
27
|
"@tomflow/proflow-execution-contracts": "^0.1.2",
|
|
28
28
|
"@tomflow/proflow-model-contracts": "^0.1.2"
|
|
29
29
|
},
|
package/proflow.module.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"contractVersion": "1.0.0",
|
|
4
4
|
"moduleRef": "execution-runtime",
|
|
5
5
|
"packageName": "@tomflow/proflow-execution-runtime",
|
|
6
|
-
"moduleVersion": "0.1.
|
|
6
|
+
"moduleVersion": "0.1.3",
|
|
7
7
|
"kind": "service",
|
|
8
8
|
"templateVersion": "1.0.0",
|
|
9
9
|
"platformCompatibility": ">=1.0.0 <2.0.0",
|