fyflow-orchestration 0.9.0 → 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,
@@ -141,9 +142,10 @@ import {
141
142
  transformShapeProblem,
142
143
  validateDefinition,
143
144
  violatedRules,
145
+ visibilityKey,
144
146
  witness,
145
147
  workersOf
146
- } from "./chunks/chunk-3U4UZC34.js";
148
+ } from "./chunks/chunk-NA6QQAZ2.js";
147
149
 
148
150
  // src/definition/assist.ts
149
151
  var TYPES = ["object", "array", "string", "number", "integer", "boolean", "null"];
@@ -391,6 +393,7 @@ export {
391
393
  groupsNamedBy,
392
394
  innermostMapOf,
393
395
  innermostRegionOf,
396
+ inputOf,
394
397
  isDerivation,
395
398
  isSuspended,
396
399
  isTerminal,
@@ -440,6 +443,7 @@ export {
440
443
  tsTypeOf,
441
444
  validateDefinition,
442
445
  violatedRules,
446
+ visibilityKey,
443
447
  witness,
444
448
  workersOf
445
449
  };
@@ -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-3U4UZC34.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
  }