@usearazzo/runner 1.0.1-alpha.21 → 1.0.1-alpha.22
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 +6 -0
- package/dist/arazzo-runner.browser.js +2611 -368
- package/dist/arazzo-runner.browser.min.js +1 -1
- package/package.json +5 -5
- package/src/executor/ArazzoWorkflowLocatorNormalizer.cjs +18 -7
- package/src/executor/ArazzoWorkflowLocatorNormalizer.mjs +18 -7
- package/src/executor/StepExecutor.cjs +10 -0
- package/src/executor/StepExecutor.mjs +10 -0
- package/src/executor/StepRetryRunner.cjs +0 -10
- package/src/executor/StepRetryRunner.mjs +0 -9
- package/src/executor/WorkflowExecutor.cjs +7 -19
- package/src/executor/WorkflowExecutor.mjs +7 -19
- package/src/vendor/swagger-client.cjs +1 -1
- package/src/vendor/swagger-client.mjs +1 -1
- package/types/runner.d.ts +9 -6
package/types/runner.d.ts
CHANGED
|
@@ -369,11 +369,12 @@ export declare interface ArazzoWorkflowLocator {
|
|
|
369
369
|
* The `type` declared on a source description is not trusted (it may be
|
|
370
370
|
* absent or wrong); a source is classified by what it actually parses to,
|
|
371
371
|
* the same convention the OpenAPI operation locator follows. Source
|
|
372
|
-
* documents are acquired from the registry on demand.
|
|
373
|
-
*
|
|
374
|
-
*
|
|
375
|
-
*
|
|
376
|
-
*
|
|
372
|
+
* documents are acquired from the registry on demand. A reference to a
|
|
373
|
+
* workflow the resolved document does not define is rejected here, so every
|
|
374
|
+
* returned locator names an existing workflow; a caller controls when that
|
|
375
|
+
* check happens by when it normalizes (eagerly for a `dependsOn` list
|
|
376
|
+
* validated before any prerequisite runs, lazily for a sub-workflow step
|
|
377
|
+
* resolved on its first attempt).
|
|
377
378
|
* @public
|
|
378
379
|
*/
|
|
379
380
|
export declare class ArazzoWorkflowLocatorNormalizer extends SourceDescriptionsLocatorNormalizer {
|
|
@@ -382,7 +383,9 @@ export declare class ArazzoWorkflowLocatorNormalizer extends SourceDescriptionsL
|
|
|
382
383
|
* Resolves a reference — a plain workflowId or a
|
|
383
384
|
* `$sourceDescriptions.{name}.{workflowId}` expression, as written — to the
|
|
384
385
|
* canonical locator: the Arazzo document that owns the target workflow,
|
|
385
|
-
* and the bare id within it.
|
|
386
|
+
* and the bare id within it. Rejects a workflow that document does not
|
|
387
|
+
* define as `workflow-not-found`, attributed to the referencing context
|
|
388
|
+
* like every other error raised here.
|
|
386
389
|
*/
|
|
387
390
|
normalize(reference: string, document: ArazzoDocument, context: WorkflowReferenceContext): Promise<ArazzoWorkflowLocator>;
|
|
388
391
|
}
|