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.
- package/AGENTS.md +322 -29
- package/README.md +1 -1
- package/dist/browser/chunks/{chunk-I3KDEOLB.js → chunk-5CVSWDCB.js} +442 -111
- package/dist/browser/index.js +541 -3
- package/dist/browser/scheduler/index.js +13 -2
- package/dist/node/chunks/{chunk-I3KDEOLB.js → chunk-5CVSWDCB.js} +442 -111
- package/dist/node/index.js +541 -3
- package/dist/node/scheduler/index.js +13 -2
- package/dist/types/index.d.ts +1 -0
- package/dist/types/src/definition/definition-schema.d.ts +23 -0
- package/dist/types/src/definition/types.d.ts +2 -1
- package/dist/types/src/definition/validate.d.ts +41 -2
- package/dist/types/src/definition/wiring.d.ts +10 -0
- package/dist/types/src/driver/driver.d.ts +161 -11
- package/dist/types/src/fold/run-state.d.ts +17 -0
- package/dist/types/src/scheduler/runtime.d.ts +17 -1
- package/package.json +2 -1
|
@@ -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-
|
|
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
|
}
|