fyflow-orchestration 0.9.1 → 0.11.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.
@@ -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-5CVSWDCB.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
  }