@pipelex/sdk 0.38.0 → 0.39.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
@@ -2,8 +2,9 @@
2
2
  * Pipelex SDK errors — the argument, transport, run-lifecycle, input-preparation and artifact
3
3
  * errors `PipelexApiClient` raises. Every one derives from `PipelexRequestError`, itself a
4
4
  * `PipelineRequestError` (the protocol base, re-exported from `mthds/protocol`), and so carries
5
- * a verdict: `retryable` and `errorDomain`, always decided. The one exported error outside the
6
- * family, `CodegenLockError`, declares the same two members itself.
5
+ * a verdict: `retryable` and `errorDomain`, always decided, and `runMayHaveStarted`, which says
6
+ * whether a failed start or execute may still have started a run. The one exported error outside
7
+ * the family, `CodegenLockError`, declares the verdict's two members itself.
7
8
  */
8
9
  import { PipelineRequestError } from "mthds/protocol";
9
10
  import type { ValidationErrorItem } from "./models.js";
@@ -30,9 +31,11 @@ export declare function isErrorDomain(value: unknown): value is ErrorDomain;
30
31
  * The verdict an error carries: whether asking again can plausibly succeed (`retryable`), and who
31
32
  * can fix the failure (`errorDomain`). Both are always decided.
32
33
  *
33
- * "Retryable" says a retry can succeed, never that it is safe: it says nothing about whether the
34
- * first attempt had an effect. A start answered with a `500` may already have created a run, so a
35
- * caller that must not start a run twice decides that for itself.
34
+ * "Retryable" says a retry can succeed, and on a request that may create a run, that it cannot
35
+ * start a second one: a failed `start` or `execute` that may still have started a run (an error
36
+ * whose `runMayHaveStarted` is true) is never retryable, whatever the server or the fallback table
37
+ * says, since asking again could pay for the run twice. Everywhere else it says nothing about
38
+ * whether the first attempt had an effect.
36
39
  */
37
40
  export interface ErrorVerdict {
38
41
  readonly retryable: boolean;
@@ -40,21 +43,35 @@ export interface ErrorVerdict {
40
43
  }
41
44
  /**
42
45
  * The base of every error this SDK raises over a request, carrying the verdict as two readonly
43
- * own properties: `retryable` and `errorDomain`. Each subclass passes its verdict to this
44
- * constructor, so a class that forgets one does not compile, and every class says its verdict
45
- * where it is defined.
46
+ * own properties, `retryable` and `errorDomain`, and a third, `runMayHaveStarted`. Each subclass
47
+ * passes its verdict to this constructor, so a class that forgets one does not compile, and every
48
+ * class says its verdict where it is defined.
49
+ *
50
+ * `runMayHaveStarted` is false unless the subclass passes it: only `ApiUnreachableError` and
51
+ * `ApiResponseError` built for a request that may create a run, and `PipelineExecuteTimeoutError`,
52
+ * ever carry it as true, and when they do, `retryable` is false whatever the verdict passed.
46
53
  *
47
54
  * It refines the standard's `PipelineRequestError`, so `instanceof PipelineRequestError` still
48
55
  * matches every SDK error. To read a verdict from anything a `catch` holds, use
49
- * `errorVerdictOf`, which also reads it off an error raised by another copy of this SDK.
56
+ * `errorVerdictOf`, which also reads it off an error raised by another copy of this SDK, and
57
+ * `runMayHaveStartedOf` for the third member.
50
58
  */
51
59
  export declare abstract class PipelexRequestError extends PipelineRequestError implements ErrorVerdict {
52
60
  /** Whether asking again can plausibly succeed. Always decided. */
53
61
  readonly retryable: boolean;
54
62
  /** Who can fix the failure: `input`, `config` or `runtime`. Always decided. */
55
63
  readonly errorDomain: ErrorDomain;
64
+ /**
65
+ * Whether the failed request may still have started a run whose id never reached the caller:
66
+ * a `start` or an `execute` (and so `startAndWaitForResult`'s start, or the blocking execute it
67
+ * falls back to) that failed in a way that does not prove the server started nothing. When it
68
+ * is true, `retryable` is false: look the run up in the run history before starting it again.
69
+ * False for every other request, a wait on a run already named included. Always decided.
70
+ */
71
+ readonly runMayHaveStarted: boolean;
56
72
  constructor(message: string, verdict: ErrorVerdict, options?: {
57
73
  cause?: unknown;
74
+ runMayHaveStarted?: boolean;
58
75
  });
59
76
  }
60
77
  /**
@@ -70,6 +87,16 @@ export declare abstract class PipelexRequestError extends PipelineRequestError i
70
87
  * for what it asks is a `RequestArgumentError`, which carries one.
71
88
  */
72
89
  export declare function errorVerdictOf(err: unknown): ErrorVerdict | undefined;
90
+ /**
91
+ * Whether anything a `catch` holds is a failed run start that may still have started a run: true
92
+ * only for an `Error` carrying `runMayHaveStarted` as `true`.
93
+ *
94
+ * The check is structural, as `errorVerdictOf`'s is, so it reads an error raised by another copy
95
+ * of this SDK installed beside this one. Anything else is false: an error of a request that
96
+ * cannot start a run, an `mthds` error, which the standard's client never raises over a start of
97
+ * this SDK, and a value that is not an `Error`.
98
+ */
99
+ export declare function runMayHaveStartedOf(err: unknown): boolean;
73
100
  /**
74
101
  * The SDK refused a call's arguments before sending any request: no run source given to
75
102
  * `execute()` or `start()`, run sources or method selectors that exclude each other, a selector
@@ -148,6 +175,35 @@ export declare class InvalidInputValueError extends InputPreparationError {
148
175
  cause?: unknown;
149
176
  });
150
177
  }
178
+ /**
179
+ * What a value refused under `allowUploads: false` is, in a closed vocabulary a caller branches on
180
+ * rather than on the message: `local_path` — a string that is neither an `http(s)` URL nor a
181
+ * `pipelex-storage://` reference, which preparation would read from disk; `data_url` — a `data:`
182
+ * URL, which it would decode and upload; `bytes` — a `Blob`, `File`, `ArrayBuffer` or `Uint8Array`.
183
+ */
184
+ export type UploadNotAllowedKind = "local_path" | "data_url" | "bytes";
185
+ /**
186
+ * `prepareInputs` was called with `allowUploads: false`, and a value at a file input would need an
187
+ * upload: a local path, a `data:` URL or bytes. It is raised before anything is read from disk,
188
+ * decoded or sent to the upload route, so a server preparing inputs on a caller's behalf never
189
+ * reads a file of its own because the caller named it. `inputName` is the input the value belongs
190
+ * to, `inputPath` where it sits inside that input (`report.attachments[1]`, or the name alone for a
191
+ * top-level file), and `valueKind` what it is. The value itself is neither in the message nor on
192
+ * the error, since it is the caller's data. Its verdict is `input`, not retryable: the caller must
193
+ * pass an `http(s)` URL or a `pipelex-storage://` reference instead.
194
+ */
195
+ export declare class UploadNotAllowedError extends InputPreparationError {
196
+ readonly inputName: string;
197
+ readonly inputPath: string;
198
+ readonly valueKind: UploadNotAllowedKind;
199
+ constructor(details: {
200
+ inputName: string;
201
+ inputPath: string;
202
+ valueKind: UploadNotAllowedKind;
203
+ }, options?: {
204
+ cause?: unknown;
205
+ });
206
+ }
151
207
  /**
152
208
  * The pipe I/O answer said the method does not load (`is_valid: false`), so its signature cannot
153
209
  * be read and no input can be prepared: the method, not the inputs, must change.
@@ -376,12 +432,19 @@ export declare class ArtifactAuthenticationError extends ArtifactOperationError
376
432
  * attempt can get through. With the code `ABORT_TIMEOUT`, the SDK's own request timeout, it is
377
433
  * `runtime` and retryable instead: the API took the request and did not answer in time, which is
378
434
  * no fault of the base URL.
435
+ *
436
+ * On a request that may create a run (`options.mayStartRun`, which the client sets on `start` and
437
+ * `execute`), `runMayHaveStarted` is true unless `cause`, the failure fetch threw, proves the
438
+ * request never left: the name lookup, the connection or the TLS handshake failed. A reset, a time
439
+ * limit or a body that could not be decoded proves nothing, so the run may have started and the
440
+ * error is not retryable.
379
441
  */
380
442
  export declare class ApiUnreachableError extends PipelexRequestError {
381
443
  readonly apiUrl: string;
382
444
  readonly code: string | undefined;
383
445
  constructor(message: string, apiUrl: string, code: string | undefined, options?: {
384
446
  cause?: unknown;
447
+ mayStartRun?: boolean;
385
448
  });
386
449
  }
387
450
  /**
@@ -391,7 +454,8 @@ export declare class ApiUnreachableError extends PipelexRequestError {
391
454
  * lifecycle (start + poll) instead.
392
455
  *
393
456
  * Its verdict is `input`, not retryable: asking again meets the same limit, and the caller fixes
394
- * it by starting the run and polling.
457
+ * it by starting the run and polling. `runMayHaveStarted` is always true: the gateway gave up on
458
+ * the request, and the run it carried goes on without its id reaching the caller.
395
459
  */
396
460
  export declare class PipelineExecuteTimeoutError extends PipelexRequestError {
397
461
  readonly elapsedMs: number;
@@ -407,15 +471,21 @@ export declare class PipelineExecuteTimeoutError extends PipelexRequestError {
407
471
  *
408
472
  * - `status` is the run's terminal status, read from the problem's `run_status` member, or from
409
473
  * its `detail` sentence on a platform that predates the member.
410
- * - `error` is the run's stored error report, typed whole as `RunErrorReport`: the runner's
411
- * `error_type`, `message`, `title`, `type_uri`, `error_domain`, `error_category`,
412
- * `retryable`, `user_action`, `model`, `provider`, `provider_metadata`, `validation_errors`
413
- * and anything newer through its index signature. Branch on `error.error_domain`,
414
- * `error.type_uri` and `error.retryable`; show `error.user_action` as the next step. It is
415
- * the runner's VERBOSE report, so `message` and `provider_metadata` can hold a provider's raw
416
- * text — deciding what a person sees is the consumer's. `null` when the run ended with no
417
- * stored report (a cancelled, terminated or timed-out run, or one the platform finalized
418
- * itself).
474
+ * - `error` is the run's stored error report as the platform serves it, typed whole as
475
+ * `RunErrorReport`: the runner's `error_type`, `message`, `title`, `type_uri`, `error_domain`,
476
+ * `error_category`, `retryable`, `user_action`, `provider_metadata`, `caller_facing_message`,
477
+ * `validation_errors` and anything newer through its index signature. Branch on
478
+ * `error.error_domain`, `error.type_uri` and `error.retryable`; show `error.user_action` as the
479
+ * next step. The platform serves the runner's STRICT projection, so `message` is the author's
480
+ * copy only when `caller_facing_message` is `true` and the placeholder
481
+ * `An internal error occurred.` otherwise, `user_action` comes only with caller-facing copy,
482
+ * `provider_metadata` keeps only `status_code` and `retry_after_seconds`, and `model`,
483
+ * `provider` and `migration` are absent; deciding what a person sees is still the consumer's.
484
+ * A run the platform ended or settled itself carries the caller-facing report the platform
485
+ * wrote, in the same shape. A cancelled, terminated or timed-out run carries a report when a
486
+ * completion callback carried one, and a timed-out run otherwise the platform's timeout report.
487
+ * `null` when the run ended with no stored report (one whose start failed, or one cancelled,
488
+ * terminated or given its status by hand with no completion callback carrying a report).
419
489
  * - The error's own `message` is the problem's `detail`, which names the status and then the
420
490
  * report's message (`Run finished with status FAILED: <message>`), so printing the error
421
491
  * already tells the reason.
@@ -535,13 +605,21 @@ export declare class PagingNotTerminatingError extends PipelexRequestError {
535
605
  export type MethodErrorCode = "method_update_conflict" | "method_being_deleted" | "method_not_published" | "method_version_not_found";
536
606
  /**
537
607
  * The last constructor argument of `ApiResponseError`: the error's `cause`, the problem
538
- * document's typed members, and the decoded document whole. The same shape as `mthds`'s
539
- * `ApiResponseErrorOptions`, plus `problemDocument`.
608
+ * document's typed members, the decoded document whole, and whether the request that met the
609
+ * answer may create a run. The same shape as `mthds`'s `ApiResponseErrorOptions`, plus
610
+ * `problemDocument` and `mayStartRun`.
540
611
  */
541
612
  export interface ApiResponseErrorOptions {
542
613
  cause?: unknown;
543
614
  problem?: ProblemDetails;
544
615
  problemDocument?: Record<string, unknown>;
616
+ /**
617
+ * The request was a `start` or an `execute`, so the answer is read for whether it may have
618
+ * started a run (see `ApiResponseError.runMayHaveStarted`). The client sets it on those two
619
+ * routes alone; a consumer building the error by hand sets it to get the verdict the client
620
+ * would give.
621
+ */
622
+ mayStartRun?: boolean;
545
623
  }
546
624
  /**
547
625
  * A response that DID come back from the API and that the SDK cannot hand back as a result: a
@@ -568,6 +646,14 @@ export interface ApiResponseErrorOptions {
568
646
  * stored report that says nothing is not, since the caller or the environment must change,
569
647
  * while `runtime` takes the fallback's. Nothing on the error says which a value came from:
570
648
  * `problemDocument` keeps what the server sent.
649
+ * - **A run that may have started.** On a `start` or an `execute`, `runMayHaveStarted` says
650
+ * whether the answer leaves a run possibly started without its id reaching the caller: any
651
+ * `2xx` the SDK could not read, a `408`, and every `5xx` but a `501` and the platform's `503`
652
+ * coded `pipeline_start_unavailable`, which says the runner was never reached. Then
653
+ * `retryable` is false, whatever the server sent: asking again could start a second run. A
654
+ * runner's own failure of a blocking execute reads the same, since the SDK cannot tell a run
655
+ * that ended from one that goes on, and its `retryable` stays readable on `problemDocument`.
656
+ * On every other route it is false.
571
657
  * - **The branch fields.** `errorDomain`, and `type`, the stable URI naming the error class.
572
658
  * Branch on these, never on the HTTP status or on the wording of a message; they are the
573
659
  * fields that mean the same on both surfaces.
@@ -636,7 +722,13 @@ export declare class ApiResponseError extends PipelexRequestError {
636
722
  readonly model: string | undefined;
637
723
  /** The body's `provider`: the provider an inference failure reached. */
638
724
  readonly provider: string | undefined;
639
- /** The body's `provider_metadata`: what the provider's SDK said, raw text included. */
725
+ /**
726
+ * The body's `provider_metadata`: what the provider's SDK said. On the hosted API it comes
727
+ * from the runner's problem document, which the hosted runner renders under its STRICT
728
+ * disclosure, so it keeps only `status_code` and `retry_after_seconds`; a runner that
729
+ * discloses errors VERBOSE, as a self-hosted one does when `ERROR_DISCLOSURE` is unset, sends
730
+ * it whole, the provider's raw text included.
731
+ */
640
732
  readonly providerMetadata: ProviderErrorMetadata | undefined;
641
733
  /** The body's `migration`: a pending configuration migration that explains the failure. */
642
734
  readonly migration: MigrationErrorBlock | undefined;
package/dist/errors.js CHANGED
@@ -2,11 +2,13 @@
2
2
  * Pipelex SDK errors — the argument, transport, run-lifecycle, input-preparation and artifact
3
3
  * errors `PipelexApiClient` raises. Every one derives from `PipelexRequestError`, itself a
4
4
  * `PipelineRequestError` (the protocol base, re-exported from `mthds/protocol`), and so carries
5
- * a verdict: `retryable` and `errorDomain`, always decided. The one exported error outside the
6
- * family, `CodegenLockError`, declares the same two members itself.
5
+ * a verdict: `retryable` and `errorDomain`, always decided, and `runMayHaveStarted`, which says
6
+ * whether a failed start or execute may still have started a run. The one exported error outside
7
+ * the family, `CodegenLockError`, declares the verdict's two members itself.
7
8
  */
8
9
  import { PipelineRequestError } from "mthds/protocol";
9
10
  import { fallbackVerdict } from "./error-verdicts.js";
11
+ import { answerMayHaveStartedRun, transportMayHaveStartedRun } from "./run-may-have-started.js";
10
12
  export { PipelineRequestError };
11
13
  const ERROR_DOMAINS = new Set(["input", "config", "runtime"]);
12
14
  /** Whether a value is one of the three error domains. */
@@ -19,23 +21,38 @@ function makeVerdict(errorDomain, retryable) {
19
21
  }
20
22
  /**
21
23
  * The base of every error this SDK raises over a request, carrying the verdict as two readonly
22
- * own properties: `retryable` and `errorDomain`. Each subclass passes its verdict to this
23
- * constructor, so a class that forgets one does not compile, and every class says its verdict
24
- * where it is defined.
24
+ * own properties, `retryable` and `errorDomain`, and a third, `runMayHaveStarted`. Each subclass
25
+ * passes its verdict to this constructor, so a class that forgets one does not compile, and every
26
+ * class says its verdict where it is defined.
27
+ *
28
+ * `runMayHaveStarted` is false unless the subclass passes it: only `ApiUnreachableError` and
29
+ * `ApiResponseError` built for a request that may create a run, and `PipelineExecuteTimeoutError`,
30
+ * ever carry it as true, and when they do, `retryable` is false whatever the verdict passed.
25
31
  *
26
32
  * It refines the standard's `PipelineRequestError`, so `instanceof PipelineRequestError` still
27
33
  * matches every SDK error. To read a verdict from anything a `catch` holds, use
28
- * `errorVerdictOf`, which also reads it off an error raised by another copy of this SDK.
34
+ * `errorVerdictOf`, which also reads it off an error raised by another copy of this SDK, and
35
+ * `runMayHaveStartedOf` for the third member.
29
36
  */
30
37
  export class PipelexRequestError extends PipelineRequestError {
31
38
  /** Whether asking again can plausibly succeed. Always decided. */
32
39
  retryable;
33
40
  /** Who can fix the failure: `input`, `config` or `runtime`. Always decided. */
34
41
  errorDomain;
42
+ /**
43
+ * Whether the failed request may still have started a run whose id never reached the caller:
44
+ * a `start` or an `execute` (and so `startAndWaitForResult`'s start, or the blocking execute it
45
+ * falls back to) that failed in a way that does not prove the server started nothing. When it
46
+ * is true, `retryable` is false: look the run up in the run history before starting it again.
47
+ * False for every other request, a wait on a run already named included. Always decided.
48
+ */
49
+ runMayHaveStarted;
35
50
  constructor(message, verdict, options) {
36
51
  super(message, options);
37
52
  this.name = "PipelexRequestError";
38
- this.retryable = verdict.retryable;
53
+ this.runMayHaveStarted = options?.runMayHaveStarted === true;
54
+ // Asking again could start a second run, so a run that may have started is never retryable.
55
+ this.retryable = this.runMayHaveStarted ? false : verdict.retryable;
39
56
  this.errorDomain = verdict.errorDomain;
40
57
  }
41
58
  }
@@ -59,6 +76,20 @@ export function errorVerdictOf(err) {
59
76
  return undefined;
60
77
  return { retryable, errorDomain };
61
78
  }
79
+ /**
80
+ * Whether anything a `catch` holds is a failed run start that may still have started a run: true
81
+ * only for an `Error` carrying `runMayHaveStarted` as `true`.
82
+ *
83
+ * The check is structural, as `errorVerdictOf`'s is, so it reads an error raised by another copy
84
+ * of this SDK installed beside this one. Anything else is false: an error of a request that
85
+ * cannot start a run, an `mthds` error, which the standard's client never raises over a start of
86
+ * this SDK, and a value that is not an `Error`.
87
+ */
88
+ export function runMayHaveStartedOf(err) {
89
+ if (!(err instanceof Error))
90
+ return false;
91
+ return err.runMayHaveStarted === true;
92
+ }
62
93
  // ── Argument refusals ────────────────────────────────────────────────
63
94
  /**
64
95
  * The SDK refused a call's arguments before sending any request: no run source given to
@@ -144,6 +175,35 @@ export class InvalidInputValueError extends InputPreparationError {
144
175
  this.name = "InvalidInputValueError";
145
176
  }
146
177
  }
178
+ const UPLOAD_NOT_ALLOWED_KIND_WORDS = {
179
+ local_path: "a local file path",
180
+ data_url: "a data: URL",
181
+ bytes: "inline bytes",
182
+ };
183
+ /**
184
+ * `prepareInputs` was called with `allowUploads: false`, and a value at a file input would need an
185
+ * upload: a local path, a `data:` URL or bytes. It is raised before anything is read from disk,
186
+ * decoded or sent to the upload route, so a server preparing inputs on a caller's behalf never
187
+ * reads a file of its own because the caller named it. `inputName` is the input the value belongs
188
+ * to, `inputPath` where it sits inside that input (`report.attachments[1]`, or the name alone for a
189
+ * top-level file), and `valueKind` what it is. The value itself is neither in the message nor on
190
+ * the error, since it is the caller's data. Its verdict is `input`, not retryable: the caller must
191
+ * pass an `http(s)` URL or a `pipelex-storage://` reference instead.
192
+ */
193
+ export class UploadNotAllowedError extends InputPreparationError {
194
+ inputName;
195
+ inputPath;
196
+ valueKind;
197
+ constructor(details, options) {
198
+ super(`Input "${details.inputPath}" is ${UPLOAD_NOT_ALLOWED_KIND_WORDS[details.valueKind]}, which ` +
199
+ "would need an upload, and this preparation uploads nothing: pass an http(s) URL or a " +
200
+ "pipelex-storage:// reference instead.", options);
201
+ this.name = "UploadNotAllowedError";
202
+ this.inputName = details.inputName;
203
+ this.inputPath = details.inputPath;
204
+ this.valueKind = details.valueKind;
205
+ }
206
+ }
147
207
  /**
148
208
  * The pipe I/O answer said the method does not load (`is_valid: false`), so its signature cannot
149
209
  * be read and no input can be prepared: the method, not the inputs, must change.
@@ -404,12 +464,21 @@ export class ArtifactAuthenticationError extends ArtifactOperationError {
404
464
  * attempt can get through. With the code `ABORT_TIMEOUT`, the SDK's own request timeout, it is
405
465
  * `runtime` and retryable instead: the API took the request and did not answer in time, which is
406
466
  * no fault of the base URL.
467
+ *
468
+ * On a request that may create a run (`options.mayStartRun`, which the client sets on `start` and
469
+ * `execute`), `runMayHaveStarted` is true unless `cause`, the failure fetch threw, proves the
470
+ * request never left: the name lookup, the connection or the TLS handshake failed. A reset, a time
471
+ * limit or a body that could not be decoded proves nothing, so the run may have started and the
472
+ * error is not retryable.
407
473
  */
408
474
  export class ApiUnreachableError extends PipelexRequestError {
409
475
  apiUrl;
410
476
  code;
411
477
  constructor(message, apiUrl, code, options) {
412
- super(message, makeVerdict(code === "ABORT_TIMEOUT" ? "runtime" : "config", true), options);
478
+ super(message, makeVerdict(code === "ABORT_TIMEOUT" ? "runtime" : "config", true), {
479
+ ...options,
480
+ runMayHaveStarted: options?.mayStartRun === true && transportMayHaveStartedRun(options.cause),
481
+ });
413
482
  this.name = "ApiUnreachableError";
414
483
  this.apiUrl = apiUrl;
415
484
  this.code = code;
@@ -422,7 +491,8 @@ export class ApiUnreachableError extends PipelexRequestError {
422
491
  * lifecycle (start + poll) instead.
423
492
  *
424
493
  * Its verdict is `input`, not retryable: asking again meets the same limit, and the caller fixes
425
- * it by starting the run and polling.
494
+ * it by starting the run and polling. `runMayHaveStarted` is always true: the gateway gave up on
495
+ * the request, and the run it carried goes on without its id reaching the caller.
426
496
  */
427
497
  export class PipelineExecuteTimeoutError extends PipelexRequestError {
428
498
  elapsedMs;
@@ -430,7 +500,7 @@ export class PipelineExecuteTimeoutError extends PipelexRequestError {
430
500
  const seconds = Math.round(elapsedMs / 1000);
431
501
  super(`The Pipelex Hosted API times out synchronous requests after ~30s — this run took ${seconds}s. ` +
432
502
  "The blocking execute path can't run methods longer than 30s behind the gateway. " +
433
- "Start the run and poll for its result instead: `start()` then `waitForResult(runId)`.", makeVerdict("input", false), options);
503
+ "Start the run and poll for its result instead: `start()` then `waitForResult(runId)`.", makeVerdict("input", false), { ...options, runMayHaveStarted: true });
434
504
  this.name = "PipelineExecuteTimeoutError";
435
505
  this.elapsedMs = elapsedMs;
436
506
  }
@@ -443,15 +513,21 @@ export class PipelineExecuteTimeoutError extends PipelexRequestError {
443
513
  *
444
514
  * - `status` is the run's terminal status, read from the problem's `run_status` member, or from
445
515
  * its `detail` sentence on a platform that predates the member.
446
- * - `error` is the run's stored error report, typed whole as `RunErrorReport`: the runner's
447
- * `error_type`, `message`, `title`, `type_uri`, `error_domain`, `error_category`,
448
- * `retryable`, `user_action`, `model`, `provider`, `provider_metadata`, `validation_errors`
449
- * and anything newer through its index signature. Branch on `error.error_domain`,
450
- * `error.type_uri` and `error.retryable`; show `error.user_action` as the next step. It is
451
- * the runner's VERBOSE report, so `message` and `provider_metadata` can hold a provider's raw
452
- * text — deciding what a person sees is the consumer's. `null` when the run ended with no
453
- * stored report (a cancelled, terminated or timed-out run, or one the platform finalized
454
- * itself).
516
+ * - `error` is the run's stored error report as the platform serves it, typed whole as
517
+ * `RunErrorReport`: the runner's `error_type`, `message`, `title`, `type_uri`, `error_domain`,
518
+ * `error_category`, `retryable`, `user_action`, `provider_metadata`, `caller_facing_message`,
519
+ * `validation_errors` and anything newer through its index signature. Branch on
520
+ * `error.error_domain`, `error.type_uri` and `error.retryable`; show `error.user_action` as the
521
+ * next step. The platform serves the runner's STRICT projection, so `message` is the author's
522
+ * copy only when `caller_facing_message` is `true` and the placeholder
523
+ * `An internal error occurred.` otherwise, `user_action` comes only with caller-facing copy,
524
+ * `provider_metadata` keeps only `status_code` and `retry_after_seconds`, and `model`,
525
+ * `provider` and `migration` are absent; deciding what a person sees is still the consumer's.
526
+ * A run the platform ended or settled itself carries the caller-facing report the platform
527
+ * wrote, in the same shape. A cancelled, terminated or timed-out run carries a report when a
528
+ * completion callback carried one, and a timed-out run otherwise the platform's timeout report.
529
+ * `null` when the run ended with no stored report (one whose start failed, or one cancelled,
530
+ * terminated or given its status by hand with no completion callback carrying a report).
455
531
  * - The error's own `message` is the problem's `detail`, which names the status and then the
456
532
  * report's message (`Run finished with status FAILED: <message>`), so printing the error
457
533
  * already tells the reason.
@@ -603,6 +679,14 @@ export class PagingNotTerminatingError extends PipelexRequestError {
603
679
  * stored report that says nothing is not, since the caller or the environment must change,
604
680
  * while `runtime` takes the fallback's. Nothing on the error says which a value came from:
605
681
  * `problemDocument` keeps what the server sent.
682
+ * - **A run that may have started.** On a `start` or an `execute`, `runMayHaveStarted` says
683
+ * whether the answer leaves a run possibly started without its id reaching the caller: any
684
+ * `2xx` the SDK could not read, a `408`, and every `5xx` but a `501` and the platform's `503`
685
+ * coded `pipeline_start_unavailable`, which says the runner was never reached. Then
686
+ * `retryable` is false, whatever the server sent: asking again could start a second run. A
687
+ * runner's own failure of a blocking execute reads the same, since the SDK cannot tell a run
688
+ * that ended from one that goes on, and its `retryable` stays readable on `problemDocument`.
689
+ * On every other route it is false.
606
690
  * - **The branch fields.** `errorDomain`, and `type`, the stable URI naming the error class.
607
691
  * Branch on these, never on the HTTP status or on the wording of a message; they are the
608
692
  * fields that mean the same on both surfaces.
@@ -671,7 +755,13 @@ export class ApiResponseError extends PipelexRequestError {
671
755
  model;
672
756
  /** The body's `provider`: the provider an inference failure reached. */
673
757
  provider;
674
- /** The body's `provider_metadata`: what the provider's SDK said, raw text included. */
758
+ /**
759
+ * The body's `provider_metadata`: what the provider's SDK said. On the hosted API it comes
760
+ * from the runner's problem document, which the hosted runner renders under its STRICT
761
+ * disclosure, so it keeps only `status_code` and `retry_after_seconds`; a runner that
762
+ * discloses errors VERBOSE, as a self-hosted one does when `ERROR_DISCLOSURE` is unset, sends
763
+ * it whole, the provider's raw text included.
764
+ */
675
765
  providerMetadata;
676
766
  /** The body's `migration`: a pending configuration migration that explains the failure. */
677
767
  migration;
@@ -698,7 +788,10 @@ export class ApiResponseError extends PipelexRequestError {
698
788
  */
699
789
  validationErrors;
700
790
  constructor(message, apiUrl, status, statusText, responseBody, errorType, serverMessage, validationErrors, code, options) {
701
- super(message, responseVerdict(status, errorType, code, options?.problem), options?.cause === undefined ? undefined : { cause: options.cause });
791
+ super(message, responseVerdict(status, errorType, code, options?.problem), {
792
+ ...(options?.cause === undefined ? {} : { cause: options.cause }),
793
+ runMayHaveStarted: options?.mayStartRun === true && answerMayHaveStartedRun(status, code),
794
+ });
702
795
  this.name = "ApiResponseError";
703
796
  this.apiUrl = apiUrl;
704
797
  this.status = status;
@@ -1 +1 @@
1
- {"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAatD,OAAO,EAAE,oBAAoB,EAAE,CAAC;AAkBhC,MAAM,aAAa,GAAwB,IAAI,GAAG,CAAc,CAAC,OAAO,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC;AAEhG,yDAAyD;AACzD,MAAM,UAAU,aAAa,CAAC,KAAc;IAC1C,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,aAAa,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AAC/D,CAAC;AAeD,kEAAkE;AAClE,SAAS,WAAW,CAAC,WAAwB,EAAE,SAAkB;IAC/D,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC,CAAC;AACnD,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,OAAgB,mBAAoB,SAAQ,oBAAoB;IACpE,kEAAkE;IAClD,SAAS,CAAU;IACnC,+EAA+E;IAC/D,WAAW,CAAc;IAEzC,YAAY,OAAe,EAAE,OAAqB,EAAE,OAA6B;QAC/E,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,qBAAqB,CAAC;QAClC,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,CAA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KAAK,CAAC;QAC5B,IAAI,CAAC,QAAQ,GAAG,OAAO,EAAE,QAAQ,CAAC;QAClC,IAAI,CAAC,gBAAgB,GAAG,OAAO,EAAE,gBAAgB,CAAC;QAClD,IAAI,CAAC,SAAS,GAAG,OAAO,EAAE,SAAS,CAAC;QACpC,IAAI,CAAC,MAAM,GAAG,OAAO,EAAE,MAAM,CAAC;QAC9B,IAAI,CAAC,eAAe,GAAG,OAAO,EAAE,eAAe,CAAC;IAClD,CAAC;CACF;AAED;;;;;;GAMG;AACH,SAAS,eAAe,CACtB,MAAc,EACd,SAA6B,EAC7B,IAAwB,EACxB,OAAmC;IAEnC,MAAM,QAAQ,GAAG,eAAe,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,KAAK,SAAS,IAAI,SAAS,KAAK,SAAS,CAAC,CAAC;IAC9F,MAAM,UAAU,GAAG,OAAO,EAAE,WAAW,CAAC;IACxC,MAAM,aAAa,GAAG,OAAO,EAAE,SAAS,CAAC;IACzC,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,EAAE,CAAC;QAC/B,OAAO,WAAW,CAChB,QAAQ,CAAC,WAAW,EACpB,OAAO,aAAa,KAAK,SAAS,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CACxE,CAAC;IACJ,CAAC;IACD,IAAI,OAAO,aAAa,KAAK,SAAS;QAAE,OAAO,WAAW,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC;IACtF,uFAAuF;IACvF,6FAA6F;IAC7F,oEAAoE;IACpE,OAAO,WAAW,CAAC,UAAU,EAAE,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;AACxF,CAAC"}
@@ -103,10 +103,10 @@ export class PipelexExecuteResult {
103
103
  * lifted here but absent from the hosted body.
104
104
  */
105
105
  export function resultsFromExecute(response) {
106
- // `working_memory` is a declared field of `DictPipeOutput`, so it lifts without a cast. By the
107
- // time it is read, `main_stuff` has already been resolved out of it, so a response that carries
108
- // no working memory has thrown `MissingMainStuffError` above; the `?? null` keeps the blocking
109
- // path's convention for an absent key all the same. The graph pair and the usage pair ride
106
+ // `working_memory` is a declared field of `DictPipeOutput`, so it lifts without a cast. The
107
+ // client's `execute` refuses an answer whose `pipe_output` carries no working memory as one it
108
+ // cannot read, so `pipe_output` and its working memory are objects here; the `?? null` keeps the
109
+ // blocking path's convention for an absent key all the same. The graph pair and the usage pair ride
110
110
  // `pipe_output` as Pipelex extension fields, beside `working_memory` — `DictPipeOutput` is
111
111
  // extension-open, mirroring the Python model's `extra="allow"`, so they are read through the
112
112
  // type rather than by casting the whole value away. Lifting every one of them onto its
@@ -1 +1 @@
1
- {"version":3,"file":"execute-result.js","sourceRoot":"","sources":["../src/execute-result.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAGpD;;;;;;;GAOG;AACH,MAAM,uBAAuB,GAAG,IAAI,GAAG,CAAC,CAAC,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,WAAW,CAAC,CAAC,CAAC;AAEjG;;;;;;;;;;;;;;GAcG;AACH,MAAM,OAAO,oBAAoB;IACtB,eAAe,CAAS;IACxB,WAAW,CAAiB;IACrC;;;;OAIG;IACM,eAAe,CAAgB;IAoBxC,YAAY,GAAyB;QACnC,IAAI,CAAC,eAAe,GAAG,GAAG,CAAC,eAAe,CAAC;QAC3C,IAAI,CAAC,WAAW,GAAG,GAAG,CAAC,WAAW,CAAC;QACnC,mGAAmG;QACnG,MAAM,OAAO,GAAG,GAAG,CAAC,eAAe,CAAC;QACpC,IAAI,CAAC,eAAe,GAAG,OAAO,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC;QACpE,2FAA2F;QAC3F,2FAA2F;QAC3F,0FAA0F;QAC1F,2FAA2F;QAC3F,2FAA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C,QAAQ,CAAC,WAAW,CAAC,eAAe,CAAC,IAAI,IAAI,CAAgC;QAC7F,oBAAoB,EAAE,CAAC,QAAQ,CAAC,WAAW,CAAC,sBAAsB,CAAC;YACjE,IAAI,CAAuC;KAC9C,CAAC;AACJ,CAAC"}
package/dist/index.d.ts CHANGED
@@ -28,9 +28,9 @@ export { runCodegenCheck, isStampableArtifactPath, STAMPABLE_ARTIFACT_SUFFIXES,
28
28
  export type { CodegenCheckInput, CodegenCheckReport, CodegenDrift, CodegenDriftCategory, CodegenTreeFile, } from "./codegen-check.js";
29
29
  export type { UserProfile, ListMethodsQuery, ListMethodVersionsQuery, MethodData, MethodDeletionAccepted, MethodDeletionState, MethodDraftInput, MethodPage, MethodPublished, MethodPublishInput, MethodPublishOutcome, MethodPublishRefusalReason, MethodPublishRefused, MethodPublishResult, MethodPublishUnchanged, MethodRenameInput, MethodSummary, MethodVersion, MethodVersionPage, MethodVersionSummary, MethodWriteInput, Membership, MembershipsResponse, SubscriptionResponse, PlanView, InvoiceView, CheckoutResponse, ChangePlanResponse, BillingPortalResponse, PipelexApiKey, PipelexApiKeyCreated, PipelexApiKeyList, OnboardingRole, OnboardingCurrentTool, OnboardingInputType, OnboardingHeardFrom, OnboardingSubmission, ResolvedStorageUrl, UploadInput, UploadedFile, UploadGrantInput, UploadGrant, PipeStatus, ListRunsQuery, PipelineRun, RunDetail, RunHistoryItem, RunPage, UpdateRunInput, } from "./product-models.js";
30
30
  export { isTerminalRunStatus, isSuccessRunStatus, RUN_RESULT_ARTIFACTS } from "./runs.js";
31
- export type { GetRunResultOptions, RunResultArtifact, RunStatus, RunPublic, RunRead, RunResults, RunResultState, StartAndWaitForResultOptions, TokensUsageRecord, WaitForResultOptions, } from "./runs.js";
31
+ export type { DegradationReason, GetRunResultOptions, RunDegradation, RunResultArtifact, RunStatus, RunPublic, RunRead, RunResults, RunResultState, StartAndWaitForResultOptions, TokensUsageRecord, WaitForResultOptions, } from "./runs.js";
32
32
  export { summarizeUsage } from "./usage.js";
33
33
  export type { PipeUsageSummary, RunUsagePair, UsageSummary, UsageSummaryState, UsageTokenTotals, } from "./usage.js";
34
- export { PipelexRequestError, errorVerdictOf, RequestArgumentError, ApiResponseError, ApiUnreachableError, MissingMainStuffError, PagingNotTerminatingError, PipelineExecuteTimeoutError, RunFailedError, RunTimeoutError, RunStillRunningError, RunLifecycleUnavailableError, InputPreparationError, EmptyMethodSourceError, InvalidLocalSourceError, InvalidInputValueError, MethodLoadError, RejectedAssetError, UnsupportedUploadCapabilityError, UploadAuthenticationError, UploadTransportError, ArtifactOperationError, ArtifactAuthenticationError, ArtifactFetchError, ScopeUnavailableError, } from "./errors.js";
35
- export type { ApiResponseErrorOptions, ErrorDomain, ErrorVerdict, MethodErrorCode, RejectedAssetCode, UploadTransportCode, } from "./errors.js";
34
+ export { PipelexRequestError, errorVerdictOf, runMayHaveStartedOf, RequestArgumentError, ApiResponseError, ApiUnreachableError, MissingMainStuffError, PagingNotTerminatingError, PipelineExecuteTimeoutError, RunFailedError, RunTimeoutError, RunStillRunningError, RunLifecycleUnavailableError, InputPreparationError, EmptyMethodSourceError, InvalidLocalSourceError, InvalidInputValueError, UploadNotAllowedError, MethodLoadError, RejectedAssetError, UnsupportedUploadCapabilityError, UploadAuthenticationError, UploadTransportError, ArtifactOperationError, ArtifactAuthenticationError, ArtifactFetchError, ScopeUnavailableError, } from "./errors.js";
35
+ export type { ApiResponseErrorOptions, ErrorDomain, ErrorVerdict, MethodErrorCode, RejectedAssetCode, UploadNotAllowedKind, UploadTransportCode, } from "./errors.js";
36
36
  export type { FieldError, MigrationErrorBlock, ProblemDetails, ProviderErrorMetadata, RunErrorReport, UserAction, } from "./error-models.js";
package/dist/index.js CHANGED
@@ -44,6 +44,7 @@ export { isTerminalRunStatus, isSuccessRunStatus, RUN_RESULT_ARTIFACTS } from ".
44
44
  // ── Usage summary (pure — folds a run's usage pair into one null-aware reading) ──
45
45
  export { summarizeUsage } from "./usage.js";
46
46
  // ── Typed errors (PipelineRequestError rides the protocol re-export above) ──
47
- // Every one carries a verdict — `retryable` and `errorDomain` — read with `errorVerdictOf`.
48
- export { PipelexRequestError, errorVerdictOf, RequestArgumentError, ApiResponseError, ApiUnreachableError, MissingMainStuffError, PagingNotTerminatingError, PipelineExecuteTimeoutError, RunFailedError, RunTimeoutError, RunStillRunningError, RunLifecycleUnavailableError, InputPreparationError, EmptyMethodSourceError, InvalidLocalSourceError, InvalidInputValueError, MethodLoadError, RejectedAssetError, UnsupportedUploadCapabilityError, UploadAuthenticationError, UploadTransportError, ArtifactOperationError, ArtifactAuthenticationError, ArtifactFetchError, ScopeUnavailableError, } from "./errors.js";
47
+ // Every one carries a verdict — `retryable` and `errorDomain` — read with `errorVerdictOf`, and
48
+ // `runMayHaveStarted`, read with `runMayHaveStartedOf`.
49
+ export { PipelexRequestError, errorVerdictOf, runMayHaveStartedOf, RequestArgumentError, ApiResponseError, ApiUnreachableError, MissingMainStuffError, PagingNotTerminatingError, PipelineExecuteTimeoutError, RunFailedError, RunTimeoutError, RunStillRunningError, RunLifecycleUnavailableError, InputPreparationError, EmptyMethodSourceError, InvalidLocalSourceError, InvalidInputValueError, UploadNotAllowedError, MethodLoadError, RejectedAssetError, UnsupportedUploadCapabilityError, UploadAuthenticationError, UploadTransportError, ArtifactOperationError, ArtifactAuthenticationError, ArtifactFetchError, ScopeUnavailableError, } from "./errors.js";
49
50
  //# sourceMappingURL=index.js.map
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,a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