@pipelex/sdk 0.69.4 → 0.71.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/dist/errors.d.ts CHANGED
@@ -406,14 +406,19 @@ export declare class ScopeUnavailableError extends ArtifactOperationError {
406
406
  * One reference could not be turned into a bounded response by `fetchArtifact`.
407
407
  * `reason` says why, in a closed vocabulary the download verdict shares for its
408
408
  * per-item errors: the resolve route's own per-reference codes
409
- * (`pipelex.storage.uri_invalid`, `pipelex.org.mismatch`), then the fetch boundary's —
409
+ * (`pipelex.storage.uri_invalid`, `pipelex.org.mismatch`, and a self-hosted runner's
410
+ * `auth.forbidden` for a reference outside the caller's scope), then the fetch boundary's —
410
411
  * `unsupported_url`, `plain_http_refused`, `redirect_refused`, `store_refused`
411
412
  * (a 401/403 from the object store), `not_found` (404/410), `store_error`
412
413
  * (any other non-2xx), `too_large`, `timeout`, `network`, and `unknown` for a failure the SDK
413
- * cannot place. `status` is the store's HTTP status when one was received. `downloadArtifacts`
414
- * never lets this escape: it becomes the item's `error`.
415
- *
416
- * Its problem is `options.problem` when given, else follows `reason` and `status`
414
+ * cannot place. `status` is the store's HTTP status when one was received, and `requirement` the
415
+ * `requirement` the resolve route's refusal of the reference names in its `params`, when it names
416
+ * one: it is what tells a self-hosted runner's scope refusal (`read_scope_under_caller`) from any
417
+ * other `auth.forbidden`, whose problem keeps no `requirement`. `downloadArtifacts` never lets this
418
+ * escape: it becomes the item's `error`.
419
+ *
420
+ * Its problem is `options.problem` when given, else follows `reason`, `status` and
421
+ * `options.requirement`, the `requirement` the route's refusal names in its `params`
417
422
  * (`artifactFetchProblem`). The SDK gives `client.download_limit_exceeded` naming the cap for
418
423
  * `too_large`, `client.timeout` naming the budget for `timeout`, and `client.unreachable` naming
419
424
  * the store's origin for `network`.
@@ -422,9 +427,11 @@ export declare class ArtifactFetchError extends ArtifactOperationError {
422
427
  readonly uri: string;
423
428
  readonly reason: string;
424
429
  readonly status: number | undefined;
430
+ readonly requirement: string | undefined;
425
431
  constructor(message: string, uri: string, reason: string, status?: number, options?: {
426
432
  cause?: unknown;
427
433
  problem?: Problem;
434
+ requirement?: string | undefined;
428
435
  });
429
436
  }
430
437
  /**
@@ -435,32 +442,46 @@ export declare class ArtifactFetchError extends ArtifactOperationError {
435
442
  * boundary's reasons) plus the loader's own: `unsupported_url` for a stored text whose `url` is
436
443
  * neither a `pipelex-storage://` reference nor a `data:` URL, which is never fetched;
437
444
  * `resolve_failed` when the bulk resolve route failed as a whole, naming the first text it was
438
- * asked for, the route's error being the cause and its problem kept; `not_utf8` for bytes that are
439
- * no UTF-8 text; and `not_json_object` for a stored JSON value that is no JSON object. `status` is
440
- * the HTTP status received, the store's or the resolve route's, when one was.
445
+ * asked for, the route's error being the cause and its problem kept; `too_large` for a text over
446
+ * the load's `maxBytes`; `total_limit_exceeded` for a text that takes the load's texts together
447
+ * over its `maxTotalBytes`; `concepts_missing` for a result that does not say which of its values
448
+ * are stored texts (no working memory naming the main stuff, or a concept of the method's own that
449
+ * no form describes) while something in `main_stuff` is shaped like a stored text's reference,
450
+ * naming the first such value; `not_utf8` for bytes that are no UTF-8 text; and `not_json_object`
451
+ * for a stored JSON value that is no JSON object. `status` is the HTTP status received, the store's
452
+ * or the resolve route's, when one was, and `requirement` the `requirement` the route's refusal of
453
+ * the reference names in its `params`, when it names one: it is what tells a self-hosted runner's
454
+ * scope refusal (`read_scope_under_caller`) from any other `auth.forbidden`, whose problem keeps no
455
+ * `requirement`.
441
456
  *
442
457
  * Its problem is the fetch failure's own when the bytes could not be read
443
- * (`artifactFetchProblem`), the resolve route's own for `resolve_failed`, and
444
- * `client.response_unreadable` naming the run when the bytes were read but are not the value. A
458
+ * (`artifactFetchProblem`), the resolve route's own for `resolve_failed`,
459
+ * `client.download_limit_exceeded` naming the cap for `too_large` and `total_limit_exceeded`, and
460
+ * `client.response_unreadable` naming the run when the bytes were read but are not the value, or
461
+ * when the result does not say which values are texts (`concepts_missing`). A
445
462
  * caller who wants the result anyway reads it again with the loading turned off
446
463
  * (`loadStoredTexts: false`) and gets every stored text as its reference.
447
464
  *
448
465
  * `wireResults` is that result, as it was answered, every stored text still its reference, when
449
466
  * nothing else holds it: it is set only by `startAndWaitForResult`'s blocking fallback, a bare
450
- * runner's `POST /v1/execute`, where there is no run to read again. It is `undefined` everywhere
451
- * else.
467
+ * runner's `POST /v1/execute`, where there is no run to read again, which sets it on the error the
468
+ * load raised and rethrows that error, so every other member stays as the load gave it. It is
469
+ * `undefined` everywhere else.
452
470
  */
453
471
  export declare class StoredTextLoadError extends ArtifactOperationError {
454
472
  readonly uri: string;
455
473
  readonly path: string;
456
474
  readonly reason: string;
457
475
  readonly status: number | undefined;
458
- readonly wireResults: RunResults | undefined;
476
+ readonly requirement: string | undefined;
477
+ /** Assignable only for `startAndWaitForResult`'s blocking fallback, which sets it once. */
478
+ wireResults: RunResults | undefined;
459
479
  constructor(message: string, details: {
460
480
  uri: string;
461
481
  path: string;
462
482
  reason: string;
463
483
  status?: number | undefined;
484
+ requirement?: string | undefined;
464
485
  wireResults?: RunResults | undefined;
465
486
  }, options?: {
466
487
  cause?: unknown;
@@ -468,20 +489,28 @@ export declare class StoredTextLoadError extends ArtifactOperationError {
468
489
  });
469
490
  }
470
491
  /**
471
- * The problem of one reference's fetch failure that its raise site states none for, by its reason
472
- * and the store's status: `input.reference_not_found` naming the reference for the resolve route's
473
- * `pipelex.storage.uri_invalid` and `pipelex.org.mismatch` and for `not_found`;
492
+ * The `requirement` a self-hosted runner's resolve route names when it refuses a reference outside
493
+ * the caller's scope with `auth.forbidden`: the runner's equivalent of the platform's
494
+ * `pipelex.org.mismatch`.
495
+ */
496
+ export declare const READ_SCOPE_UNDER_CALLER_REQUIREMENT = "read_scope_under_caller";
497
+ /**
498
+ * The problem of one reference's fetch failure that its raise site states none for, by its reason,
499
+ * the store's status and the `requirement` the route's refusal names: `input.reference_not_found`
500
+ * naming the reference for the resolve route's `pipelex.storage.uri_invalid` and
501
+ * `pipelex.org.mismatch`, for a self-hosted runner's `auth.forbidden` whose `requirement` is
502
+ * `read_scope_under_caller` (a reference outside the caller's scope), and for `not_found`;
474
503
  * `client.link_refused` for
475
504
  * `unsupported_url`, `plain_http_refused` and `redirect_refused`; for `store_error` and
476
- * `store_refused`, the object store failing or refusing a link the platform has just signed,
505
+ * `store_refused`, the store failing or refusing a link the server has just signed,
477
506
  * `storageStatusProblem`'s reading of the store's status (`runtime.unavailable` for a `408`, a
478
507
  * `429` or a `5xx` other than `501`, `runtime.unsupported` for a `501`, and
479
508
  * `client.response_unreadable` naming any other status, a `401` or a `403` included), and
480
509
  * `runtime.unavailable` when no status is known; `runtime.unavailable` for `timeout` and
481
- * `network`; and `runtime.unexpected` otherwise, `unknown` and a reason this version does not know
482
- * included.
510
+ * `network`; and `runtime.unexpected` otherwise, `unknown`, an `auth.forbidden` naming any other
511
+ * requirement or none, and a reason this version does not know included.
483
512
  */
484
- export declare function artifactFetchProblem(reason: string, uri: string, status?: number): Problem;
513
+ export declare function artifactFetchProblem(reason: string, uri: string, status?: number, requirement?: string): Problem;
485
514
  /**
486
515
  * The resolve route refused the caller's credential (`401` / `403`) during a
487
516
  * `downloadArtifacts` call. No further reference can be resolved with it, so
package/dist/errors.js CHANGED
@@ -477,14 +477,19 @@ export class ScopeUnavailableError extends ArtifactOperationError {
477
477
  * One reference could not be turned into a bounded response by `fetchArtifact`.
478
478
  * `reason` says why, in a closed vocabulary the download verdict shares for its
479
479
  * per-item errors: the resolve route's own per-reference codes
480
- * (`pipelex.storage.uri_invalid`, `pipelex.org.mismatch`), then the fetch boundary's —
480
+ * (`pipelex.storage.uri_invalid`, `pipelex.org.mismatch`, and a self-hosted runner's
481
+ * `auth.forbidden` for a reference outside the caller's scope), then the fetch boundary's —
481
482
  * `unsupported_url`, `plain_http_refused`, `redirect_refused`, `store_refused`
482
483
  * (a 401/403 from the object store), `not_found` (404/410), `store_error`
483
484
  * (any other non-2xx), `too_large`, `timeout`, `network`, and `unknown` for a failure the SDK
484
- * cannot place. `status` is the store's HTTP status when one was received. `downloadArtifacts`
485
- * never lets this escape: it becomes the item's `error`.
485
+ * cannot place. `status` is the store's HTTP status when one was received, and `requirement` the
486
+ * `requirement` the resolve route's refusal of the reference names in its `params`, when it names
487
+ * one: it is what tells a self-hosted runner's scope refusal (`read_scope_under_caller`) from any
488
+ * other `auth.forbidden`, whose problem keeps no `requirement`. `downloadArtifacts` never lets this
489
+ * escape: it becomes the item's `error`.
486
490
  *
487
- * Its problem is `options.problem` when given, else follows `reason` and `status`
491
+ * Its problem is `options.problem` when given, else follows `reason`, `status` and
492
+ * `options.requirement`, the `requirement` the route's refusal names in its `params`
488
493
  * (`artifactFetchProblem`). The SDK gives `client.download_limit_exceeded` naming the cap for
489
494
  * `too_large`, `client.timeout` naming the budget for `timeout`, and `client.unreachable` naming
490
495
  * the store's origin for `network`.
@@ -493,15 +498,17 @@ export class ArtifactFetchError extends ArtifactOperationError {
493
498
  uri;
494
499
  reason;
495
500
  status;
501
+ requirement;
496
502
  constructor(message, uri, reason, status, options) {
497
503
  super(message, {
498
504
  cause: options?.cause,
499
- problem: options?.problem ?? artifactFetchProblem(reason, uri, status),
505
+ problem: options?.problem ?? artifactFetchProblem(reason, uri, status, options?.requirement),
500
506
  });
501
507
  this.name = "ArtifactFetchError";
502
508
  this.uri = uri;
503
509
  this.reason = reason;
504
510
  this.status = status;
511
+ this.requirement = options?.requirement;
505
512
  }
506
513
  }
507
514
  /**
@@ -512,60 +519,87 @@ export class ArtifactFetchError extends ArtifactOperationError {
512
519
  * boundary's reasons) plus the loader's own: `unsupported_url` for a stored text whose `url` is
513
520
  * neither a `pipelex-storage://` reference nor a `data:` URL, which is never fetched;
514
521
  * `resolve_failed` when the bulk resolve route failed as a whole, naming the first text it was
515
- * asked for, the route's error being the cause and its problem kept; `not_utf8` for bytes that are
516
- * no UTF-8 text; and `not_json_object` for a stored JSON value that is no JSON object. `status` is
517
- * the HTTP status received, the store's or the resolve route's, when one was.
522
+ * asked for, the route's error being the cause and its problem kept; `too_large` for a text over
523
+ * the load's `maxBytes`; `total_limit_exceeded` for a text that takes the load's texts together
524
+ * over its `maxTotalBytes`; `concepts_missing` for a result that does not say which of its values
525
+ * are stored texts (no working memory naming the main stuff, or a concept of the method's own that
526
+ * no form describes) while something in `main_stuff` is shaped like a stored text's reference,
527
+ * naming the first such value; `not_utf8` for bytes that are no UTF-8 text; and `not_json_object`
528
+ * for a stored JSON value that is no JSON object. `status` is the HTTP status received, the store's
529
+ * or the resolve route's, when one was, and `requirement` the `requirement` the route's refusal of
530
+ * the reference names in its `params`, when it names one: it is what tells a self-hosted runner's
531
+ * scope refusal (`read_scope_under_caller`) from any other `auth.forbidden`, whose problem keeps no
532
+ * `requirement`.
518
533
  *
519
534
  * Its problem is the fetch failure's own when the bytes could not be read
520
- * (`artifactFetchProblem`), the resolve route's own for `resolve_failed`, and
521
- * `client.response_unreadable` naming the run when the bytes were read but are not the value. A
535
+ * (`artifactFetchProblem`), the resolve route's own for `resolve_failed`,
536
+ * `client.download_limit_exceeded` naming the cap for `too_large` and `total_limit_exceeded`, and
537
+ * `client.response_unreadable` naming the run when the bytes were read but are not the value, or
538
+ * when the result does not say which values are texts (`concepts_missing`). A
522
539
  * caller who wants the result anyway reads it again with the loading turned off
523
540
  * (`loadStoredTexts: false`) and gets every stored text as its reference.
524
541
  *
525
542
  * `wireResults` is that result, as it was answered, every stored text still its reference, when
526
543
  * nothing else holds it: it is set only by `startAndWaitForResult`'s blocking fallback, a bare
527
- * runner's `POST /v1/execute`, where there is no run to read again. It is `undefined` everywhere
528
- * else.
544
+ * runner's `POST /v1/execute`, where there is no run to read again, which sets it on the error the
545
+ * load raised and rethrows that error, so every other member stays as the load gave it. It is
546
+ * `undefined` everywhere else.
529
547
  */
530
548
  export class StoredTextLoadError extends ArtifactOperationError {
531
549
  uri;
532
550
  path;
533
551
  reason;
534
552
  status;
553
+ requirement;
554
+ /** Assignable only for `startAndWaitForResult`'s blocking fallback, which sets it once. */
535
555
  wireResults;
536
556
  constructor(message, details, options) {
537
557
  super(message, {
538
558
  cause: options?.cause,
539
- problem: options?.problem ?? artifactFetchProblem(details.reason, details.uri, details.status),
559
+ problem: options?.problem ??
560
+ artifactFetchProblem(details.reason, details.uri, details.status, details.requirement),
540
561
  });
541
562
  this.name = "StoredTextLoadError";
542
563
  this.uri = details.uri;
543
564
  this.path = details.path;
544
565
  this.reason = details.reason;
545
566
  this.status = details.status;
567
+ this.requirement = details.requirement;
546
568
  this.wireResults = details.wireResults;
547
569
  }
548
570
  }
549
571
  /**
550
- * The problem of one reference's fetch failure that its raise site states none for, by its reason
551
- * and the store's status: `input.reference_not_found` naming the reference for the resolve route's
552
- * `pipelex.storage.uri_invalid` and `pipelex.org.mismatch` and for `not_found`;
572
+ * The `requirement` a self-hosted runner's resolve route names when it refuses a reference outside
573
+ * the caller's scope with `auth.forbidden`: the runner's equivalent of the platform's
574
+ * `pipelex.org.mismatch`.
575
+ */
576
+ export const READ_SCOPE_UNDER_CALLER_REQUIREMENT = "read_scope_under_caller";
577
+ /**
578
+ * The problem of one reference's fetch failure that its raise site states none for, by its reason,
579
+ * the store's status and the `requirement` the route's refusal names: `input.reference_not_found`
580
+ * naming the reference for the resolve route's `pipelex.storage.uri_invalid` and
581
+ * `pipelex.org.mismatch`, for a self-hosted runner's `auth.forbidden` whose `requirement` is
582
+ * `read_scope_under_caller` (a reference outside the caller's scope), and for `not_found`;
553
583
  * `client.link_refused` for
554
584
  * `unsupported_url`, `plain_http_refused` and `redirect_refused`; for `store_error` and
555
- * `store_refused`, the object store failing or refusing a link the platform has just signed,
585
+ * `store_refused`, the store failing or refusing a link the server has just signed,
556
586
  * `storageStatusProblem`'s reading of the store's status (`runtime.unavailable` for a `408`, a
557
587
  * `429` or a `5xx` other than `501`, `runtime.unsupported` for a `501`, and
558
588
  * `client.response_unreadable` naming any other status, a `401` or a `403` included), and
559
589
  * `runtime.unavailable` when no status is known; `runtime.unavailable` for `timeout` and
560
- * `network`; and `runtime.unexpected` otherwise, `unknown` and a reason this version does not know
561
- * included.
590
+ * `network`; and `runtime.unexpected` otherwise, `unknown`, an `auth.forbidden` naming any other
591
+ * requirement or none, and a reason this version does not know included.
562
592
  */
563
- export function artifactFetchProblem(reason, uri, status) {
593
+ export function artifactFetchProblem(reason, uri, status, requirement) {
564
594
  switch (reason) {
565
595
  case "pipelex.storage.uri_invalid":
566
596
  case "pipelex.org.mismatch":
567
597
  case "not_found":
568
598
  return buildProblem("input.reference_not_found", { input: uri });
599
+ case "auth.forbidden":
600
+ return requirement === READ_SCOPE_UNDER_CALLER_REQUIREMENT
601
+ ? buildProblem("input.reference_not_found", { input: uri })
602
+ : buildProblem("runtime.unexpected", {});
569
603
  case "unsupported_url":
570
604
  return buildProblem("client.link_refused", { reason: "unsupported_scheme" });
571
605
  case "plain_http_refused":
@@ -1 +1 @@
1
- {"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEpG,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAI5D,OAAO,EAAE,YAAY,EAAE,CAAC;AAExB,uGAAuG;AACvG,SAAS,WAAW,CAAC,KAAc;IACjC,OAAO,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC;AACrD,CAAC;AAED,wEAAwE;AAExE;;;GAGG;AACH,MAAM,UAAU,sBAAsB,CAAC,QAAgB,EAAE,MAAc;IACrE,OAAO,YAAY,CAAC,yBAAyB,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC;AACvE,CAAC;AAED;;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B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,eAAe,GAAG,WAAW,CAAC,OAAO,EAAE,OAAO,EAAE,iBAAiB,CAAC,CAAC;IAC1E,CAAC;IAED,6FAA6F;IAC7F,IAAa,SAAS;QACpB,OAAO,KAAK,CAAC,SAAS,IAAI,IAAI,CAAC,eAAe,CAAC;IACjD,CAAC;CACF"}
package/dist/index.d.ts CHANGED
@@ -25,7 +25,7 @@ export { describeUpload, uploadWithGrant } from "./upload-grant.js";
25
25
  export type { DescribeUploadOptions, GrantedUpload, UploadDescription, UploadWithGrantOptions, } from "./upload-grant.js";
26
26
  export type { InputFormFault, PrepareInputsBase, PrepareInputsClosure, PrepareInputsRequest, PreparedInputs, } from "./prepare-inputs.js";
27
27
  export { inputFormFault } from "./prepare-inputs.js";
28
- export { locateArtifacts, collectArtifacts, locateStoredReferences, artifactFilename, PIPELEX_STORAGE_SCHEME, BULK_RESOLVE_MAX_URIS, DEFAULT_ARTIFACT_MAX_BYTES, DEFAULT_ARTIFACT_TIMEOUT_MS, DEFAULT_DOWNLOAD_MAX_TOTAL_BYTES, DEFAULT_DOWNLOAD_CONCURRENCY, loadStoredTexts, DEFAULT_STORED_TEXT_MAX_BYTES, DEFAULT_STORED_TEXT_CONCURRENCY, } from "./artifacts.js";
28
+ export { locateArtifacts, collectArtifacts, locateStoredReferences, artifactFilename, PIPELEX_STORAGE_SCHEME, BULK_RESOLVE_MAX_URIS, DEFAULT_ARTIFACT_MAX_BYTES, DEFAULT_ARTIFACT_TIMEOUT_MS, DEFAULT_DOWNLOAD_MAX_TOTAL_BYTES, DEFAULT_DOWNLOAD_CONCURRENCY, loadStoredTexts, lacksStoredTextConcepts, DEFAULT_STORED_TEXT_MAX_BYTES, DEFAULT_STORED_TEXT_MAX_TOTAL_BYTES, DEFAULT_STORED_TEXT_CONCURRENCY, STORED_TEXT_CONCEPTS_MISSING, } from "./artifacts.js";
29
29
  export { STORED_TEXT_CONCEPT_REFS, isStoredTextConcept, storedTextKindOf, storedTextKindOfNode, mainStuffNode, workingMemoryNode, } from "./stored-texts.js";
30
30
  export type { StoredTextKind } from "./stored-texts.js";
31
31
  export type { ArtifactItemError, ArtifactLocation, ArtifactScope, BulkResolveStorageUrlsInput, BulkResolvedStorageUrls, DownloadArtifactsOptions, DownloadArtifactsRequest, DownloadArtifactsResult, DownloadedArtifact, DownloadedKind, FetchArtifactOptions, LoadStoredTextsOptions, ResolvedArtifact, StoredReferences, StoredTextLocation, } from "./artifacts.js";
@@ -34,7 +34,7 @@ export type { LayoutProvenance, LayoutProvenanceInput, MethodLayout, MethodLayou
34
34
  export type { MethodShowcaseDetail, MethodShowcaseDocument, MethodShowcaseFile, MethodShowcaseFreezeOutcome, MethodShowcaseFreezeResult, MethodShowcaseFrozen, MethodShowcaseInput, MethodShowcaseList, MethodShowcaseRefusalReason, MethodShowcaseRefused, MethodShowcaseSummary, MethodShowcaseUnchanged, } from "./method-showcases.js";
35
35
  export { runCodegenCheck, isStampableArtifactPath, STAMPABLE_ARTIFACT_SUFFIXES, CodegenLockError, } from "./codegen-check.js";
36
36
  export type { CodegenCheckInput, CodegenCheckReport, CodegenDrift, CodegenDriftCategory, CodegenTreeFile, } from "./codegen-check.js";
37
- export type { UserProfile, BundleStorageReference, ListMethodExamplesQuery, ListMethodsQuery, ListMethodTemplatesQuery, ListMethodVersionsQuery, MethodCategory, MethodCategoryList, MethodCopied, MethodCopiedFrom, MethodCopyInput, MethodCopyLimit, MethodCopyOutcome, MethodCopyRefusalReason, MethodCopyRefused, MethodCopyResult, MethodData, MethodDeletionAccepted, MethodDeletionState, MethodDetail, MethodDraftInput, MethodExample, MethodExampleAssistantCreated, MethodExampleAssistantKept, MethodExampleAssistantSaveInput, MethodExampleAssistantSaveOutcome, MethodExampleAssistantSaveResult, MethodExampleCreateInput, MethodExampleLatestRunInput, MethodExampleLatestRunOutcome, MethodExampleLatestRunRecorded, MethodExampleLatestRunResult, MethodExampleLatestRunStale, MethodExamplePage, MethodExampleUpdateInput, MethodPage, MethodPublished, MethodPublishInput, MethodPublishOutcome, MethodPublishRefusalReason, MethodPublishRefused, MethodPublishResult, MethodPublishUnchanged, MethodRenameInput, MethodSummary, MethodTemplate, MethodTemplatePage, MethodTemplateThumbnail, MethodThumbnail, MethodTreeInput, MethodVersion, MethodVersionPage, MethodVersionSummary, MethodVisibility, MethodWriteInput, PublicMethodDetail, SavedMethodFile, Membership, MembershipsResponse, OrgRole, BrandingColors, BrandingColorsUpdate, LogoDescriptor, OrganizationBranding, OrganizationBrandingUpdate, SubscriptionResponse, PlanView, InvoiceView, CheckoutResponse, ChangePlanResponse, BillingPortalResponse, PipelexApiKey, PipelexApiKeyCreated, PipelexApiKeyList, OnboardingRole, OnboardingCurrentTool, OnboardingInputType, OnboardingHeardFrom, OnboardingSubmission, DraftFileAdded, DraftFileBlob, DraftFileFromFileInput, DraftFileFromFileResult, FileArchive, FileArchiveFailure, FileArchiveFailureCode, FileArchiveLimit, FileArchiveRequest, FileArchiveSource, FileArchiveState, FileDetail, FileKind, FileLink, FileLinkError, FileLinksResult, FileLinkTarget, FileOrigin, FilePage, FileRecord, FileRecordList, FileRenameInput, FileRole, FileState, FileSummary, FileUse, FileUseHolderType, FileUsePage, GetFileQuery, GetFilesByUriOptions, ListFilesQuery, ListRunFilesQuery, RunFileEntry, RunFileMark, RunFilesPage, RunFilesState, RunInputLink, ResolvedStorageUrl, UploadInput, UploadedFile, UploadGrantInput, UploadGrant, UploadKind, ListRunsQuery, PipelineRun, RunDetail, RunHistoryItem, RunPage, UpdateRunInput, } from "./product-models.js";
37
+ export type { UserProfile, BundleStorageReference, ListMethodExamplesQuery, ListMethodsQuery, ListMethodTemplatesQuery, ListMethodVersionsQuery, MethodCategory, MethodCategoryList, MethodCopied, MethodCopiedFrom, MethodCopyInput, MethodCopyLimit, MethodCopyOutcome, MethodCopyRefusalReason, MethodCopyRefused, MethodCopyResult, MethodData, MethodDeletionAccepted, MethodDeletionState, MethodDetail, MethodDraftInput, MethodExample, MethodExampleAssistantCreated, MethodExampleAssistantKept, MethodExampleAssistantSaveInput, MethodExampleAssistantSaveOutcome, MethodExampleAssistantSaveResult, MethodExampleCreateInput, MethodExampleLatestRunInput, MethodExampleLatestRunOutcome, MethodExampleLatestRunRecorded, MethodExampleLatestRunResult, MethodExampleLatestRunStale, MethodExamplePage, MethodExampleUpdateInput, MethodPage, MethodPublished, MethodPublishInput, MethodPublishOutcome, MethodPublishRefusalReason, MethodPublishRefused, MethodPublishResult, MethodPublishUnchanged, MethodRenameInput, MethodSummary, MethodTemplate, MethodTemplatePage, MethodTemplateThumbnail, MethodThumbnail, MethodTreeInput, MethodVersion, MethodVersionPage, MethodVersionSummary, MethodVisibility, MethodWriteInput, PublicMethodDetail, SavedMethodFile, Membership, MembershipsResponse, OrgRole, BrandingColors, BrandingColorsUpdate, LogoDescriptor, OrganizationBranding, OrganizationBrandingUpdate, SubscriptionResponse, PlanView, InvoiceView, CheckoutResponse, ChangePlanResponse, BillingPortalResponse, PipelexApiKey, PipelexApiKeyCreated, PipelexApiKeyList, OnboardingRole, OnboardingCurrentTool, OnboardingInputType, OnboardingHeardFrom, OnboardingSubmission, DraftFileAdded, DraftFileBlob, DraftFileFromFileInput, DraftFileFromFileResult, FileArchive, FileArchiveFailure, FileArchiveFailureCode, FileArchiveLimit, FileArchiveRequest, FileArchiveSource, FileArchiveState, FileDetail, FileKind, FileLink, FileLinkError, FileLinksResult, FileLinkTarget, FileOrigin, FilePage, FilePreview, FilePreviewFailure, FilePreviewFailureCode, FilePreviewState, FileRecord, FileRecordList, FileRenameInput, FileRole, FileState, FileSummary, FileUse, FileUseHolderType, FileUsePage, GetFileQuery, GetFilesByUriOptions, ListFilesQuery, ListRunFilesQuery, RunFileEntry, RunFileMark, RunFilesPage, RunFilesState, RunInputLink, ResolvedStorageUrl, UploadInput, UploadedFile, UploadGrantInput, UploadGrant, UploadKind, ListRunsQuery, PipelineRun, RunDetail, RunHistoryItem, RunPage, UpdateRunInput, } from "./product-models.js";
38
38
  export { isFresherRunProgress, isTerminalRunStatus, isSuccessRunStatus, RUN_RESULT_ARTIFACTS, } from "./runs.js";
39
39
  export type { DegradationReason, GetRunResultOptions, ProgressAttempt, ProgressBatch, ProgressCondition, ProgressFailure, ProgressInvocation, ProgressInvocationStatus, RunDegradation, RunProgress, RunProgressStatus, RunResultArtifact, RunStatus, RunPublic, RunRead, RunResults, RunResultState, StartAndWaitForResultOptions, TokensUsageRecord, WaitForResultOptions, } from "./runs.js";
40
40
  export { verifyWebhook, isRunFinishedEvent, RUN_FINISHED_EVENT_TYPE, WEBHOOK_TIMESTAMP_TOLERANCE_SECONDS, WebhookVerificationError, WebhookEventUnreadableError, } from "./webhooks.js";
package/dist/index.js CHANGED
@@ -46,7 +46,7 @@ export { inputFormFault } from "./prepare-inputs.js";
46
46
  // `locateArtifacts`, `collectArtifacts` and `artifactFilename` are pure and standalone;
47
47
  // the network operations (`resolveArtifacts` / `fetchArtifact` / `downloadArtifacts`) are
48
48
  // client methods, and only their public types and bounds travel with the barrel.
49
- export { locateArtifacts, collectArtifacts, locateStoredReferences, artifactFilename, PIPELEX_STORAGE_SCHEME, BULK_RESOLVE_MAX_URIS, DEFAULT_ARTIFACT_MAX_BYTES, DEFAULT_ARTIFACT_TIMEOUT_MS, DEFAULT_DOWNLOAD_MAX_TOTAL_BYTES, DEFAULT_DOWNLOAD_CONCURRENCY, loadStoredTexts, DEFAULT_STORED_TEXT_MAX_BYTES, DEFAULT_STORED_TEXT_CONCURRENCY, } from "./artifacts.js";
49
+ export { locateArtifacts, collectArtifacts, locateStoredReferences, artifactFilename, PIPELEX_STORAGE_SCHEME, BULK_RESOLVE_MAX_URIS, DEFAULT_ARTIFACT_MAX_BYTES, DEFAULT_ARTIFACT_TIMEOUT_MS, DEFAULT_DOWNLOAD_MAX_TOTAL_BYTES, DEFAULT_DOWNLOAD_CONCURRENCY, loadStoredTexts, lacksStoredTextConcepts, DEFAULT_STORED_TEXT_MAX_BYTES, DEFAULT_STORED_TEXT_MAX_TOTAL_BYTES, DEFAULT_STORED_TEXT_CONCURRENCY, STORED_TEXT_CONCEPTS_MISSING, } from "./artifacts.js";
50
50
  // Stored texts — which values of a run the runtime holds by reference, told by concept.
51
51
  export { STORED_TEXT_CONCEPT_REFS, isStoredTextConcept, storedTextKindOf, storedTextKindOfNode, mainStuffNode, workingMemoryNode, } from "./stored-texts.js";
52
52
  // ── Offline codegen drift check (pure — no filesystem, no network, no key) ──
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,6FAA6F;AAC7F,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,oFAAoF;AACpF,kFAAkF;AAClF,mFAAmF;AACnF,wBAAwB;AACxB,cAAc,gBAAgB,CAAC;AAE/B,wEAAwE;AACxE,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACtF,sFAAsF;AACtF,yFAAyF;AACzF,2EAA2E;AAC3E,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAoBzF,oFAAoF;AACpF,6FAA6F;AAC7F,+FAA+F;AAC/F,kDAAkD;AAClD,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAE1D,+FAA+F;AAC/F,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE3D,+FAA+F;AAC/F,6FAA6F;AAC7F,iGAAiG;AACjG,8FAA8F;AAC9F,iEAAiE;AACjE,OAAO,EAAE,yBAAyB,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAEhG,iGAAiG;AACjG,kFAAkF;AAClF,OAAO,EAAE,oBAAoB,EAAE,kBAAkB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Ac,EAAE,MAAM,YAAY,CAAC;AAS5C,+FAA+F;AAC/F,2FAA2F;AAC3F,iGAAiG;AACjG,kFAAkF;AAClF,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,gBAAgB,EAChB,mBAAmB,EACnB,qBAAqB,EACrB,yBAAyB,EACzB,2BAA2B,EAC3B,cAAc,EACd,eAAe,EACf,oBAAoB,EACpB,4BAA4B,EAC5B,qBAAqB,EACrB,uBAAuB,EACvB,sBAAsB,EACtB,qBAAqB,EACrB,eAAe,EACf,kBAAkB,EAClB,gCAAgC,EAChC,yBAAyB,EACzB,oBAAoB,EACpB,oBAAoB,EACpB,sBAAsB,EACtB,2BAA2B,EAC3B,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,aAAa,CAAC;AAcrB,mFAAmF;AACnF,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
@@ -1624,6 +1624,67 @@ export interface FileArchiveLimit {
1624
1624
  value: number;
1625
1625
  reached: number;
1626
1626
  }
1627
+ /**
1628
+ * Where the PDF preview of an Office file stands — what `getFilePreview` answers, the field a
1629
+ * caller branches on: `ready`, its `url` reads the PDF; `preparing`, a conversion is on its way,
1630
+ * so ask again shortly; `failed`, the last conversion failed and `failure` says why; `unavailable`,
1631
+ * the file gets no preview (a type that is not converted, a file over 50 MB, or an address holding
1632
+ * nothing).
1633
+ */
1634
+ export type FilePreviewState = "ready" | "preparing" | "failed" | "unavailable";
1635
+ /**
1636
+ * Why a conversion failed, as the platform names it today:
1637
+ *
1638
+ * - `file_unreadable`, the converter could not open the file, damaged or protected by a password,
1639
+ * which cannot be told apart; the file will fail the same way.
1640
+ * - `file_too_large`, the converter refused the file as over its input cap; it will fail the same
1641
+ * way.
1642
+ * - `conversion_too_slow`, the conversion ran out of the converter's two minutes; it will almost
1643
+ * certainly fail the same way.
1644
+ * - `file_gone`, the bytes were deleted between the request and the conversion.
1645
+ * - `conversion_failed`, the cause is not the file's; a later ask tries again once the failure's
1646
+ * day has passed.
1647
+ */
1648
+ export type FilePreviewFailureCode = "file_unreadable" | "file_too_large" | "conversion_too_slow" | "file_gone" | "conversion_failed";
1649
+ /** What a failed preview says about its failure. A failure stands for a day from when it failed. */
1650
+ export interface FilePreviewFailure {
1651
+ /** One of `FilePreviewFailureCode`, typed open so that a code a later platform adds still reads. */
1652
+ code: FilePreviewFailureCode | (string & {});
1653
+ /** A sentence for a person. */
1654
+ detail: string;
1655
+ }
1656
+ /**
1657
+ * The PDF preview of an Office file — what `getFilePreview`, `GET /v1/files/preview`, answers: a
1658
+ * `200` discriminated on `state`. Every arm carries all four members, the ones its state does not
1659
+ * fill `null`.
1660
+ */
1661
+ export type FilePreview = {
1662
+ state: "ready";
1663
+ /**
1664
+ * A presigned `GET` of the PDF, signed fresh on each read, valid for fifteen minutes and
1665
+ * answered `inline` under the file's name with its extension swapped to `.pdf`. A bearer
1666
+ * capability: keep it out of logs and ask again rather than store it.
1667
+ */
1668
+ url: string;
1669
+ /** ISO-8601 UTC instant `url` stops working. */
1670
+ url_expires_at: string;
1671
+ failure: null;
1672
+ } | {
1673
+ state: "preparing";
1674
+ url: null;
1675
+ url_expires_at: null;
1676
+ failure: null;
1677
+ } | {
1678
+ state: "failed";
1679
+ url: null;
1680
+ url_expires_at: null;
1681
+ failure: FilePreviewFailure;
1682
+ } | {
1683
+ state: "unavailable";
1684
+ url: null;
1685
+ url_expires_at: null;
1686
+ failure: null;
1687
+ };
1627
1688
  /**
1628
1689
  * The copy of a file into a method's draft — `copyFileIntoDraft`,
1629
1690
  * `POST /v1/methods/{id}/draft/files/from-file`, "Add to method files".
package/dist/runs.d.ts CHANGED
@@ -678,7 +678,9 @@ export interface WaitForResultOptions {
678
678
  * but whose texts did not load in the time the wait had left throws `RunTimeoutError` saying so,
679
679
  * and `getRunResult` reads it again. `startAndWaitForResult`'s blocking fallback honours it too,
680
680
  * a failed load there throwing `StoredTextLoadError` with the completed result on its
681
- * `wireResults`.
681
+ * `wireResults`. A completed result that does not yet say which of its values are stored texts
682
+ * (its `output_form`, which the runtime writes after `main_stuff`, not yet there) is polled
683
+ * again a few times before the wait throws `StoredTextLoadError` (`concepts_missing`).
682
684
  */
683
685
  loadStoredTexts?: boolean;
684
686
  }
@@ -709,6 +711,12 @@ export interface StartAndWaitForResultOptions extends WaitForResultOptions {
709
711
  }
710
712
  export declare const DEFAULT_POLL_INTERVAL_MS = 2000;
711
713
  export declare const DEFAULT_WAIT_TIMEOUT_MS = 1200000;
714
+ /**
715
+ * How many polls the wait makes for a completed result that does not yet say which of its values
716
+ * are stored texts (`StoredTextLoadError` with the reason `concepts_missing`) before it throws that
717
+ * error: the runtime writes `output_form` after `main_stuff`, so a read can land in between.
718
+ */
719
+ export declare const MAX_CONCEPTS_MISSING_POLLS = 5;
712
720
  /** A single result lookup — the primitive the poll loop drives. */
713
721
  export type FetchResultOnce = (runId: string, options?: GetRunResultOptions) => Promise<RunResultState>;
714
722
  /**
@@ -748,6 +756,11 @@ export declare function assertWaitOptions(options?: WaitForResultOptions): void;
748
756
  * a route-absent `404` (`RunLifecycleUnavailableError`) stops the progress reads for the rest of
749
757
  * the wait; the caller's abort still ends the wait.
750
758
  *
759
+ * A completed result that does not yet say which of its values are stored texts, the load
760
+ * throwing `StoredTextLoadError` with the reason `concepts_missing`, is read again after the
761
+ * interval, at most {@link MAX_CONCEPTS_MISSING_POLLS} times, since the runtime writes
762
+ * `output_form` after `main_stuff`; past that, the error is thrown.
763
+ *
751
764
  * The single owner of the wait/poll/Retry-After/abort logic — `PipelexApiClient.waitForResult`
752
765
  * delegates here, so the behavior can never drift.
753
766
  */
package/dist/runs.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { isProblem } from "mthds/protocol";
2
- import { RequestArgumentError, RunFailedError, argumentInvalidProblem, RunLifecycleUnavailableError, RunTimeoutError, } from "./errors.js";
2
+ import { RequestArgumentError, RunFailedError, argumentInvalidProblem, RunLifecycleUnavailableError, RunTimeoutError, StoredTextLoadError, } from "./errors.js";
3
3
  import { MAX_TIMER_DELAY_MS, isTimerDelay } from "./timers.js";
4
4
  import { eitherSignal } from "./signals.js";
5
5
  import { dropUnfit, isPlainObject } from "./records.js";
@@ -256,6 +256,14 @@ export function selectionIncludesMainStuff(artifacts) {
256
256
  // ── Poll loop ───────────────────────────────────────────────────────
257
257
  export const DEFAULT_POLL_INTERVAL_MS = 2_000;
258
258
  export const DEFAULT_WAIT_TIMEOUT_MS = 1_200_000; // 20 min — matches the runner's blocking execute ceiling.
259
+ /**
260
+ * How many polls the wait makes for a completed result that does not yet say which of its values
261
+ * are stored texts (`StoredTextLoadError` with the reason `concepts_missing`) before it throws that
262
+ * error: the runtime writes `output_form` after `main_stuff`, so a read can land in between.
263
+ */
264
+ export const MAX_CONCEPTS_MISSING_POLLS = 5;
265
+ /** The reason `loadStoredTexts` throws for a result missing its concepts (`STORED_TEXT_CONCEPTS_MISSING`). */
266
+ const CONCEPTS_MISSING_REASON = "concepts_missing";
259
267
  /**
260
268
  * Refuse wait options no poll loop can honour. A NaN would reach the sleep's timer as a
261
269
  * 1 ms delay and poll in a tight loop. `startAndWaitForResult` calls this before it starts
@@ -288,6 +296,11 @@ export function assertWaitOptions(options = {}) {
288
296
  * a route-absent `404` (`RunLifecycleUnavailableError`) stops the progress reads for the rest of
289
297
  * the wait; the caller's abort still ends the wait.
290
298
  *
299
+ * A completed result that does not yet say which of its values are stored texts, the load
300
+ * throwing `StoredTextLoadError` with the reason `concepts_missing`, is read again after the
301
+ * interval, at most {@link MAX_CONCEPTS_MISSING_POLLS} times, since the runtime writes
302
+ * `output_form` after `main_stuff`; past that, the error is thrown.
303
+ *
291
304
  * The single owner of the wait/poll/Retry-After/abort logic — `PipelexApiClient.waitForResult`
292
305
  * delegates here, so the behavior can never drift.
293
306
  */
@@ -308,13 +321,21 @@ export async function pollUntilResult(fetchOnce, runId, options = {}, fetchProgr
308
321
  const { signal } = linked;
309
322
  // The deadline, not the caller, ended the step: the wait's own timeout.
310
323
  const timedOut = () => deadline.signal.aborted && options.signal?.aborted !== true;
311
- const notFinished = () => new RunTimeoutError(`Run ${runId} did not reach a terminal state within ${timeoutMs}ms.`, runId, timeoutMs);
324
+ // Set once a read saw the run completed, its result still lacking the concepts that tell its
325
+ // texts apart: from then on the deadline ends a wait on texts, never on a run still going.
326
+ let completedSeen = false;
327
+ const notFinished = () => completedSeen
328
+ ? completedButNotLoaded()
329
+ : new RunTimeoutError(`Run ${runId} did not reach a terminal state within ${timeoutMs}ms.`, runId, timeoutMs);
330
+ const completedButNotLoaded = () => new RunTimeoutError(`Run ${runId} completed, but its stored texts did not load within ${timeoutMs}ms; ` +
331
+ "read it again with getRunResult, or with loadStoredTexts: false for the wire shape.", runId, timeoutMs);
312
332
  try {
313
333
  let attempt = 0;
314
334
  const { onProgress } = options;
315
335
  // No progress request at all unless the caller asked for progress.
316
336
  let readsProgress = onProgress !== undefined && fetchProgress !== undefined;
317
337
  let delivered;
338
+ let conceptsMissingPolls = 0;
318
339
  for (;;) {
319
340
  throwIfAborted(options.signal);
320
341
  // Enforce the deadline BEFORE each lookup, so a poll is never issued past the
@@ -346,17 +367,24 @@ export async function pollUntilResult(fetchOnce, runId, options = {}, fetchProgr
346
367
  return await loadCompleted(state.result, { signal });
347
368
  }
348
369
  catch (error) {
349
- if (timedOut()) {
350
- throw new RunTimeoutError(`Run ${runId} completed, but its stored texts did not load within ${timeoutMs}ms; ` +
351
- "read it again with getRunResult, or with loadStoredTexts: false for the wire shape.", runId, timeoutMs);
352
- }
353
- throw error;
370
+ if (timedOut())
371
+ throw completedButNotLoaded();
372
+ // A result read between the runtime's writes of `main_stuff` and `output_form`: poll
373
+ // again, a few times, before saying the result does not tell its texts apart.
374
+ const conceptsMissing = error instanceof StoredTextLoadError && error.reason === CONCEPTS_MISSING_REASON;
375
+ if (!conceptsMissing || conceptsMissingPolls >= MAX_CONCEPTS_MISSING_POLLS)
376
+ throw error;
377
+ conceptsMissingPolls += 1;
378
+ completedSeen = true;
354
379
  }
355
380
  }
356
381
  if (state.state === "failed") {
357
382
  throw new RunFailedError(state.message, runId, state.status, { problem: state.problem });
358
383
  }
359
- if (readsProgress && onProgress !== undefined && fetchProgress !== undefined) {
384
+ if (state.state === "running" &&
385
+ readsProgress &&
386
+ onProgress !== undefined &&
387
+ fetchProgress !== undefined) {
360
388
  let progress;
361
389
  try {
362
390
  progress = await fetchProgress(runId, { signal });
@@ -379,7 +407,9 @@ export async function pollUntilResult(fetchOnce, runId, options = {}, fetchProgr
379
407
  }
380
408
  attempt += 1;
381
409
  options.onPoll?.({ attempt, elapsedMs });
382
- const retryMs = state.retry_after_seconds != null ? state.retry_after_seconds * 1000 : 0;
410
+ const retryMs = state.state === "running" && state.retry_after_seconds != null
411
+ ? state.retry_after_seconds * 1000
412
+ : 0;
383
413
  const waitMs = Math.min(Math.max(intervalMs, retryMs), timeoutMs - elapsedMs);
384
414
  try {
385
415
  await sleep(waitMs, signal);