@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/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. Whether the resolved
373
- * document *defines* the workflow is deliberately left to the caller, which
374
- * owns the timing of that check (eager for a `dependsOn` list validated
375
- * before any prerequisite runs, lazy for a sub-workflow step resolved per
376
- * attempt).
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
  }