fyflow-orchestration 0.9.1 → 0.10.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.
@@ -99,6 +99,7 @@ import {
99
99
  groupsNamedBy,
100
100
  innermostMapOf,
101
101
  innermostRegionOf,
102
+ inputOf,
102
103
  isDerivation,
103
104
  isSuspended,
104
105
  isTerminal,
@@ -144,7 +145,7 @@ import {
144
145
  visibilityKey,
145
146
  witness,
146
147
  workersOf
147
- } from "./chunks/chunk-I3KDEOLB.js";
148
+ } from "./chunks/chunk-NA6QQAZ2.js";
148
149
 
149
150
  // src/definition/assist.ts
150
151
  var TYPES = ["object", "array", "string", "number", "integer", "boolean", "null"];
@@ -392,6 +393,7 @@ export {
392
393
  groupsNamedBy,
393
394
  innermostMapOf,
394
395
  innermostRegionOf,
396
+ inputOf,
395
397
  isDerivation,
396
398
  isSuspended,
397
399
  isTerminal,
@@ -11,6 +11,7 @@ import {
11
11
  derivePool,
12
12
  emptyState,
13
13
  groupsNamedBy,
14
+ inputOf,
14
15
  isDerivation,
15
16
  isTerminal,
16
17
  languagesOf,
@@ -25,7 +26,7 @@ import {
25
26
  retryPolicyProblem,
26
27
  validateDefinition,
27
28
  workersOf
28
- } from "../chunks/chunk-I3KDEOLB.js";
29
+ } from "../chunks/chunk-NA6QQAZ2.js";
29
30
 
30
31
  // src/scheduler/bootstrap.ts
31
32
  import { WorkerManager } from "fyflow-scheduler";
@@ -350,6 +351,12 @@ function createRuntime(document, code = {}, options = {}) {
350
351
  return p;
351
352
  }
352
353
  } : view;
354
+ const reading = {
355
+ ...registry,
356
+ joinPolicy: startOptions.joinPolicy ?? liveToken,
357
+ ...options.defaultRetryPolicy !== void 0 ? { defaultRetryPolicy: options.defaultRetryPolicy } : {},
358
+ ...options.validateBoundaries !== void 0 ? { validateBoundaries: options.validateBoundaries } : {}
359
+ };
353
360
  const driver = new Driver(flow, {
354
361
  runId,
355
362
  scheduler: scheduler2,
@@ -408,7 +415,11 @@ function createRuntime(document, code = {}, options = {}) {
408
415
  catchUp();
409
416
  const entry = acc.entry(taskId);
410
417
  return entry === void 0 ? null : freezeDeep(entry);
411
- }
418
+ },
419
+ // **`RN-R45` — the reading, over this run's own events** (W205, P42 decision 7): the export, handed the options this
420
+ // function built the run's driver with — `registry`, its `joinPolicy`, and the two runtime-wide ones — so a reading
421
+ // builds the driver `start` built. The live driver is only READ (`checkpoint()`, a copy).
422
+ inputOf: (target) => inputOf(flow, reading, driver.checkpoint(), target)
412
423
  };
413
424
  }
414
425
  }