@pipelex/sdk 0.51.0 → 0.53.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.
Files changed (88) hide show
  1. package/README.md +20 -19
  2. package/dist/answer-reading.d.ts +70 -0
  3. package/dist/answer-reading.js +106 -0
  4. package/dist/answer-reading.js.map +1 -0
  5. package/dist/artifacts.js +45 -32
  6. package/dist/artifacts.js.map +1 -1
  7. package/dist/cli/present.d.ts +11 -14
  8. package/dist/cli/present.js +41 -37
  9. package/dist/cli/present.js.map +1 -1
  10. package/dist/cli/run.js +8 -7
  11. package/dist/cli/run.js.map +1 -1
  12. package/dist/cli/script.d.ts +1 -1
  13. package/dist/cli/source.js +2 -2
  14. package/dist/cli/source.js.map +1 -1
  15. package/dist/client.d.ts +254 -213
  16. package/dist/client.js +542 -472
  17. package/dist/client.js.map +1 -1
  18. package/dist/codegen-check.d.ts +21 -15
  19. package/dist/codegen-check.js +54 -27
  20. package/dist/codegen-check.js.map +1 -1
  21. package/dist/errors.d.ts +298 -455
  22. package/dist/errors.js +426 -534
  23. package/dist/errors.js.map +1 -1
  24. package/dist/exact-json.d.ts +8 -12
  25. package/dist/exact-json.js +19 -12
  26. package/dist/exact-json.js.map +1 -1
  27. package/dist/hooks/check-core.d.ts +12 -7
  28. package/dist/hooks/check-core.js +20 -14
  29. package/dist/hooks/check-core.js.map +1 -1
  30. package/dist/hooks/validate-stage.js +12 -3
  31. package/dist/hooks/validate-stage.js.map +1 -1
  32. package/dist/index.d.ts +4 -5
  33. package/dist/index.js +7 -6
  34. package/dist/index.js.map +1 -1
  35. package/dist/method-selector.js +7 -5
  36. package/dist/method-selector.js.map +1 -1
  37. package/dist/method-trees.d.ts +6 -7
  38. package/dist/method-trees.js +31 -37
  39. package/dist/method-trees.js.map +1 -1
  40. package/dist/models.d.ts +33 -210
  41. package/dist/models.js +2 -1
  42. package/dist/models.js.map +1 -1
  43. package/dist/prepare-inputs.d.ts +2 -2
  44. package/dist/prepare-inputs.js +51 -54
  45. package/dist/prepare-inputs.js.map +1 -1
  46. package/dist/problem-items.d.ts +19 -0
  47. package/dist/problem-items.js +52 -0
  48. package/dist/problem-items.js.map +1 -0
  49. package/dist/product-models.d.ts +43 -29
  50. package/dist/records.d.ts +12 -0
  51. package/dist/records.js +23 -0
  52. package/dist/records.js.map +1 -0
  53. package/dist/runs.d.ts +49 -38
  54. package/dist/runs.js +45 -19
  55. package/dist/runs.js.map +1 -1
  56. package/dist/transport-reading.d.ts +18 -0
  57. package/dist/{run-may-have-started.js → transport-reading.js} +15 -44
  58. package/dist/transport-reading.js.map +1 -0
  59. package/dist/upload-grant.d.ts +9 -6
  60. package/dist/upload-grant.js +42 -29
  61. package/dist/upload-grant.js.map +1 -1
  62. package/dist/upload.js +53 -33
  63. package/dist/upload.js.map +1 -1
  64. package/dist/version.d.ts +1 -1
  65. package/dist/version.js +1 -1
  66. package/docs/architecture.md +19 -19
  67. package/docs/artifact-download.md +6 -6
  68. package/docs/cli.md +1 -1
  69. package/docs/crate-routes.md +13 -14
  70. package/docs/errors.md +154 -267
  71. package/docs/exact-integers.md +1 -1
  72. package/docs/files.md +13 -13
  73. package/docs/hook-bundle.md +15 -1
  74. package/docs/input-preparation.md +14 -14
  75. package/docs/method-copy.md +35 -33
  76. package/docs/method-examples.md +13 -14
  77. package/docs/method-trees.md +27 -28
  78. package/docs/organization-branding.md +14 -16
  79. package/docs/run-results.md +8 -8
  80. package/package.json +1 -1
  81. package/dist/error-models.d.ts +0 -302
  82. package/dist/error-models.js +0 -203
  83. package/dist/error-models.js.map +0 -1
  84. package/dist/error-verdicts.d.ts +0 -46
  85. package/dist/error-verdicts.js +0 -120
  86. package/dist/error-verdicts.js.map +0 -1
  87. package/dist/run-may-have-started.d.ts +0 -31
  88. package/dist/run-may-have-started.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"prepare-inputs.js","sourceRoot":"","sources":["../src/prepare-inputs.ts"],"names":[],"mappings":"AAAA;;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PipelexInvalidReport`), of an invalid crate verdict (`CrateInvalidReport`) and of a pipe I/O
4
+ * answer that does not load, and the `warnings` of a valid validate verdict, the runner's verdict
5
+ * a refused publish carries (`MethodPublishRefused.validation`) included. The Python twin,
6
+ * `pipelex-sdk`, reads them the same way in `pipelex_sdk.problem_items`.
7
+ *
8
+ * The items are read tolerantly, member by member, so that one malformed member never costs the
9
+ * caller the fault it belongs to: an entry that is no object, or whose `code` or `detail` is not a
10
+ * string, names no fault and is skipped, and each optional member the standard declares
11
+ * (`params`, `location`, `suggestions`, `suggested_fix`) is kept only when the standard's own
12
+ * check accepts it (`isProblemItem` in `mthds/protocol`), and left out of its item otherwise. A
13
+ * member the standard does not declare is kept as received.
14
+ */
15
+ import type { ProblemItem } from "mthds/protocol";
16
+ /** One entry of a verdict's `errors` or `warnings` read as a problem item, or `undefined` when it names no fault. */
17
+ export declare function readProblemItem(entry: unknown): ProblemItem | undefined;
18
+ /** A verdict's `errors` or `warnings` read as problem items; anything but an array reads as none. */
19
+ export declare function readProblemItems(entries: unknown): ProblemItem[];
@@ -0,0 +1,52 @@
1
+ /**
2
+ * How the SDK reads the problem items a verdict lists: the `errors` of an invalid validate verdict
3
+ * (`PipelexInvalidReport`), of an invalid crate verdict (`CrateInvalidReport`) and of a pipe I/O
4
+ * answer that does not load, and the `warnings` of a valid validate verdict, the runner's verdict
5
+ * a refused publish carries (`MethodPublishRefused.validation`) included. The Python twin,
6
+ * `pipelex-sdk`, reads them the same way in `pipelex_sdk.problem_items`.
7
+ *
8
+ * The items are read tolerantly, member by member, so that one malformed member never costs the
9
+ * caller the fault it belongs to: an entry that is no object, or whose `code` or `detail` is not a
10
+ * string, names no fault and is skipped, and each optional member the standard declares
11
+ * (`params`, `location`, `suggestions`, `suggested_fix`) is kept only when the standard's own
12
+ * check accepts it (`isProblemItem` in `mthds/protocol`), and left out of its item otherwise. A
13
+ * member the standard does not declare is kept as received.
14
+ */
15
+ import { isProblemItem } from "mthds/protocol";
16
+ import { isPlainObject } from "./records.js";
17
+ /** The members of an item the standard declares and checks, beyond `code` and `detail`. */
18
+ const CHECKED_MEMBERS = ["params", "location", "suggestions", "suggested_fix"];
19
+ /**
20
+ * A code the standard accepts, standing in for an item's own while one of its members is checked
21
+ * alone, so that an item whose code breaks the code pattern still keeps its well-formed members.
22
+ */
23
+ const PROBE_CODE = "client.argument_invalid";
24
+ /** Whether `value` is well-formed as the item member `name`, by the standard's own check. */
25
+ function memberFits(name, value) {
26
+ return isProblemItem({ code: PROBE_CODE, detail: "", [name]: value });
27
+ }
28
+ /** One entry of a verdict's `errors` or `warnings` read as a problem item, or `undefined` when it names no fault. */
29
+ export function readProblemItem(entry) {
30
+ if (!isPlainObject(entry) || typeof entry.code !== "string" || typeof entry.detail !== "string") {
31
+ return undefined;
32
+ }
33
+ const item = { ...entry };
34
+ for (const name of CHECKED_MEMBERS) {
35
+ if (Object.hasOwn(item, name) && !memberFits(name, item[name]))
36
+ delete item[name];
37
+ }
38
+ return item;
39
+ }
40
+ /** A verdict's `errors` or `warnings` read as problem items; anything but an array reads as none. */
41
+ export function readProblemItems(entries) {
42
+ if (!Array.isArray(entries))
43
+ return [];
44
+ const items = [];
45
+ for (const entry of entries) {
46
+ const item = readProblemItem(entry);
47
+ if (item !== undefined)
48
+ items.push(item);
49
+ }
50
+ return items;
51
+ }
52
+ //# sourceMappingURL=problem-items.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"problem-items.js","sourceRoot":"","sources":["../src/problem-items.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7C,2FAA2F;AAC3F,MAAM,eAAe,GAAG,CAAC,QAAQ,EAAE,UAAU,EAAE,aAAa,EAAE,eAAe,CAAU,CAAC;AAExF;;;GAGG;AACH,MAAM,UAAU,GAAG,yBAAyB,CAAC;AAE7C,6FAA6F;AAC7F,SAAS,UAAU,CAAC,IAAsC,EAAE,KAAc;IACxE,OAAO,aAAa,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;AACxE,CAAC;AAED,qHAAqH;AACrH,MAAM,UAAU,eAAe,CAAC,KAAc;IAC5C,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,IAAI,OAAO,KAAK,CAAC,IAAI,KAAK,QAAQ,IAAI,OAAO,KAAK,CAAC,MAAM,KAAK,QAAQ,EAAE,CAAC;QAChG,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,MAAM,IAAI,GAA4B,EAAE,GAAG,KAAK,EAAE,CAAC;IACnD,KAAK,MAAM,IAAI,IAAI,eAAe,EAAE,CAAC;QACnC,IAAI,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;YAAE,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC;IACpF,CAAC;IACD,OAAO,IAAmB,CAAC;AAC7B,CAAC;AAED,qGAAqG;AACrG,MAAM,UAAU,gBAAgB,CAAC,OAAgB;IAC/C,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC;QAAE,OAAO,EAAE,CAAC;IACvC,MAAM,KAAK,GAAkB,EAAE,CAAC;IAChC,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE,CAAC;QAC5B,MAAM,IAAI,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC;QACpC,IAAI,IAAI,KAAK,SAAS;YAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC3C,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
@@ -9,7 +9,7 @@
9
9
  * stays in the consumer. Each model holds only the fields the product actually
10
10
  * consumes — not a speculative mirror of every server field.
11
11
  */
12
- import type { RunErrorReport } from "./error-models.js";
12
+ import type { Problem } from "mthds/protocol";
13
13
  import type { MethodTreeForms } from "./method-trees.js";
14
14
  import type { PipelexValidationResult } from "./models.js";
15
15
  import type { RunStatus } from "./runs.js";
@@ -128,7 +128,7 @@ export interface MethodData {
128
128
  /**
129
129
  * Where the method is in the erasure cascade; absent or `null` on a normal method. Every
130
130
  * method route refuses a method whose erasure has started with a `409`
131
- * `method_being_deleted`, so a method read seldom carries it; `MethodSummary` carries the
131
+ * `pipelex.catalog.being_deleted`, so a method read seldom carries it; `MethodSummary` carries the
132
132
  * same field on the list, where a method mid-erasure stays listed.
133
133
  */
134
134
  deletion_state?: MethodDeletionState | null;
@@ -293,7 +293,7 @@ export interface MethodDraftInput extends MethodTreeInput {
293
293
  /**
294
294
  * The draft token the caller last saw — the `updated_at` of the method it last read or
295
295
  * wrote, echoed verbatim. With it the write is a compare-and-swap: a draft that moved since
296
- * is refused with a `409` whose `code` is `method_update_conflict`, and nothing is written.
296
+ * is refused with a `409` whose `code` is `pipelex.catalog.update_conflict`, and nothing is written.
297
297
  * Omitted, the write is last-writer-wins.
298
298
  */
299
299
  expected_updated_at?: string;
@@ -308,7 +308,7 @@ export interface MethodPublishInput {
308
308
  /**
309
309
  * The draft token the caller last saw (`MethodData.updated_at`), echoed verbatim. Required: a
310
310
  * publish never takes a draft its caller has not seen, so a draft that moved since is
311
- * refused with a `409` whose `code` is `method_update_conflict`, and nothing is published.
311
+ * refused with a `409` whose `code` is `pipelex.catalog.update_conflict`, and nothing is published.
312
312
  */
313
313
  expected_draft_updated_at: string;
314
314
  }
@@ -343,8 +343,10 @@ export interface MethodPublishRefused {
343
343
  /** Says why; for `not_runnable`, that the draft "is valid but does not run yet". */
344
344
  message: string;
345
345
  /**
346
- * The runner's `POST /v1/validate` answer for the draft, verbatim: an invalid arm whose
347
- * `validation_errors` say what to fix, or, for `not_runnable`, the valid arm.
346
+ * The runner's `POST /v1/validate` answer for the draft, read member by member as `validate`
347
+ * reads it: an invalid arm whose `errors`, problem items, say what to fix, or, for
348
+ * `not_runnable`, the valid arm. An entry that names no fault is left out, and a member the
349
+ * standard declares is kept only when it is well-formed.
348
350
  */
349
351
  validation: PipelexValidationResult;
350
352
  method: MethodData;
@@ -391,9 +393,9 @@ export interface MethodCopyInput {
391
393
  /** The copy's name, under the creation's rules; the original's when omitted or `null`. */
392
394
  name?: string | null;
393
395
  /**
394
- * The original's draft token (`MethodData.updated_at`) the caller last saw, echoed verbatim:
395
- * a draft that moved since is refused with a `409` `method_update_conflict`, and nothing is
396
- * copied. Omitted or `null`, the copy takes the draft as it stands when the request is served.
396
+ * The original's draft token (`MethodData.updated_at`) the caller last saw, echoed verbatim: a
397
+ * draft that moved since is refused with a `409` `pipelex.catalog.update_conflict`, and nothing
398
+ * is copied. Omitted or `null`, the copy takes the draft as it stands when the request is served.
397
399
  */
398
400
  expected_draft_updated_at?: string | null;
399
401
  }
@@ -401,10 +403,17 @@ export interface MethodCopyInput {
401
403
  export type MethodCopyOutcome = "copied" | "refused";
402
404
  /**
403
405
  * Why a copy was refused: `bundle_names_other_storage`, a `.mthds` file of the draft holds a
404
- * `pipelex-storage://` reference the destination cannot read, which every run there would refuse.
406
+ * `pipelex-storage://` reference the copy cannot rely on: one the destination cannot read, which
407
+ * every run there would refuse, or, in a duplicate, one under the original method's own run files
408
+ * (`pipelex-storage://<org_id>/<method_id>/…`), which erasing the original would remove, failing
409
+ * every run of the duplicate.
405
410
  */
406
411
  export type MethodCopyRefusalReason = "bundle_names_other_storage";
407
- /** One stored file a bundle of the draft names that the destination cannot read. */
412
+ /**
413
+ * One stored file a bundle of the draft names that keeps it from being copied: a file the
414
+ * destination cannot read, or, in a duplicate, a file under the original's run files, which
415
+ * erasing the original would remove.
416
+ */
408
417
  export interface BundleStorageReference {
409
418
  /** The tree path of the `.mthds` file that holds the reference. */
410
419
  path: string;
@@ -421,29 +430,34 @@ export interface MethodCopied {
421
430
  stored_files_copied: number;
422
431
  }
423
432
  /**
424
- * A copy refused before anything was written: a bundle of the draft names stored files the
425
- * destination cannot read. The person removes or replaces each reference in the original and
426
- * copies again, since rewriting the bundle would change the author's code without asking them.
433
+ * A copy refused before anything was written: a bundle of the draft names stored files the copy
434
+ * cannot rely on, files the destination cannot read, which every run there would refuse, and, in a
435
+ * duplicate, files under the original method's own run files, which erasing the original would
436
+ * remove. The person removes or replaces each reference in the original and copies again, since
437
+ * rewriting the bundle would change the author's code without asking them.
427
438
  */
428
439
  export interface MethodCopyRefused {
429
440
  outcome: "refused";
430
441
  reason: MethodCopyRefusalReason;
431
442
  /** What was refused and what to do, for a person. */
432
443
  message: string;
433
- /** Every reference the destination cannot read, ordered by bundle path, then by reference. */
444
+ /**
445
+ * Every reference the destination cannot read and, in a duplicate, every reference under the
446
+ * original's run files, ordered by bundle path, then by reference.
447
+ */
434
448
  references: BundleStorageReference[];
435
449
  }
436
450
  /**
437
- * The answer of `copyMethod`, a `200` discriminated on `outcome`, because a bundle the destination
438
- * cannot run is a verdict about the method, not a failure of the request. Branch on `outcome`,
451
+ * The answer of `copyMethod`, a `200` discriminated on `outcome`, because a bundle the copy cannot
452
+ * rely on is a verdict about the method, not a failure of the request. Branch on `outcome`,
439
453
  * never on the status: a destination the caller may not write to, a stale token, a method being
440
454
  * deleted or a copy past its bounds are thrown as `ApiResponseError` instead, since they produce
441
455
  * no verdict.
442
456
  */
443
457
  export type MethodCopyResult = MethodCopied | MethodCopyRefused;
444
458
  /**
445
- * The bound a `422` `method_copy_too_large` names, read from the refusal's
446
- * `ApiResponseError.problemDocument.limit`: `max_stored_files`, the most distinct stored files one
459
+ * The bound a `422` `pipelex.catalog.copy_too_large` names, read from the refusal's problem
460
+ * (`ApiResponseError.problem`) as its `limit` member: `max_stored_files`, the most distinct stored files one
447
461
  * copy copies, or `max_stored_bytes`, the most bytes they add up to, each set per deployment; its
448
462
  * `value`, and what the copy `reached`. Removing examples, or the files they hold, brings the copy
449
463
  * under it.
@@ -914,7 +928,7 @@ export interface UploadGrantInput {
914
928
  * object is named after its bytes, so a file the organization already holds is not
915
929
  * sent again: the grant answers `stored: true`. Without it, the grant always names a
916
930
  * new object and asks for the bytes. Any other string is a `422`, and so is a `size`
917
- * other than the one the organization holds those bytes at (`blob_mismatch`).
931
+ * other than the one the organization holds those bytes at (`request.invalid`).
918
932
  */
919
933
  sha256?: string;
920
934
  /** What the upload is recorded as; `uploaded` when omitted. */
@@ -1318,8 +1332,8 @@ export type FileArchiveRequest = {
1318
1332
  name?: string;
1319
1333
  };
1320
1334
  /**
1321
- * The cap a `422` `file_archive_too_large` names, read from the refusal's
1322
- * `ApiResponseError.problemDocument.limit`: `max_files` (500) or `max_total_bytes`
1335
+ * The cap a `422` `pipelex.files.archive_too_large` names, read from the refusal's problem
1336
+ * (`ApiResponseError.problem`) as its `limit` member: `max_files` (500) or `max_total_bytes`
1323
1337
  * (2,000,000,000), its `value`, and what the selection `reached`. For a run, the count stops as
1324
1338
  * soon as it passes the cap, so `reached` is one more than `max_files` and means "at least".
1325
1339
  */
@@ -1339,7 +1353,7 @@ export interface DraftFileFromFileInput {
1339
1353
  path: string;
1340
1354
  /**
1341
1355
  * The draft token (`MethodData.updated_at`) the caller last read, echoed verbatim: a draft that
1342
- * moved since is refused with a `409` `method_update_conflict`. Omitted, the file is added to the
1356
+ * moved since is refused with a `409` `pipelex.catalog.update_conflict`. Omitted, the file is added to the
1343
1357
  * draft as it stands when the request is served, never erasing another save.
1344
1358
  */
1345
1359
  expected_updated_at?: string;
@@ -1451,10 +1465,10 @@ export interface PipelineRun {
1451
1465
  result_url?: string | null;
1452
1466
  created_at: string;
1453
1467
  finished_at?: string | null;
1454
- /** The run's stored error report as the platform serves it, the runner's STRICT
1455
- * projection, typed whole (see `RunErrorReport` for which runs hold one). This is how a
1456
- * consumer tells the user WHY a run failed rather than showing a generic message. */
1457
- error?: RunErrorReport | null;
1468
+ /** The problem the run ended with, as the platform serves it to its caller (see
1469
+ * `RunPublic.error`): kept only when it is a problem document, `null` otherwise. This is how
1470
+ * a consumer tells the user WHY a run failed rather than showing a generic message. */
1471
+ error?: Problem | null;
1458
1472
  /**
1459
1473
  * Which version of its method the run ran: the version number for a run addressed by a
1460
1474
  * bare id (the latest published version) or by `mt_…@<n>`, `"draft"` for one addressed by
@@ -1489,10 +1503,10 @@ export interface RunHistoryItem {
1489
1503
  finished_at?: string | null;
1490
1504
  /** `null` when the runner resolved the pipe from the bundle's `main_pipe`. */
1491
1505
  pipe_code?: string | null;
1492
- /** The run's stored error report, served as on the run detail — present only on a run
1506
+ /** The problem the run ended with, served as on the run detail — present only on a run
1493
1507
  * that ended without completing and holds one, so opening it from history shows why
1494
1508
  * without another read. */
1495
- error?: RunErrorReport | null;
1509
+ error?: Problem | null;
1496
1510
  /**
1497
1511
  * Which version of the method the run ran — a number, `"draft"`, or `null` for an inline
1498
1512
  * source (see `PipelineRun.method_version`). The history lists the runs of every version
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Small readers of JSON records the SDK checks member by member before handing them back. Internal:
3
+ * nothing here is exported from the package.
4
+ */
5
+ /** Whether a value is a plain object: an object that is neither `null` nor an array. */
6
+ export declare function isPlainObject(value: unknown): value is Record<string, unknown>;
7
+ /**
8
+ * Drop each of `fields` from `record` when it is present and fails `fits`. `null` always fits,
9
+ * since every field of the shapes read this way allows it. The run status read's degradation
10
+ * (`readRunDegradation` in `runs.ts`) is checked with it.
11
+ */
12
+ export declare function dropUnfit(record: Record<string, unknown>, fields: readonly string[], fits: (value: unknown) => boolean): void;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Small readers of JSON records the SDK checks member by member before handing them back. Internal:
3
+ * nothing here is exported from the package.
4
+ */
5
+ /** Whether a value is a plain object: an object that is neither `null` nor an array. */
6
+ export function isPlainObject(value) {
7
+ return typeof value === "object" && value !== null && !Array.isArray(value);
8
+ }
9
+ /**
10
+ * Drop each of `fields` from `record` when it is present and fails `fits`. `null` always fits,
11
+ * since every field of the shapes read this way allows it. The run status read's degradation
12
+ * (`readRunDegradation` in `runs.ts`) is checked with it.
13
+ */
14
+ export function dropUnfit(record, fields, fits) {
15
+ for (const field of fields) {
16
+ if (!Object.hasOwn(record, field))
17
+ continue;
18
+ const value = record[field];
19
+ if (value !== null && !fits(value))
20
+ delete record[field];
21
+ }
22
+ }
23
+ //# sourceMappingURL=records.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"records.js","sourceRoot":"","sources":["../src/records.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,wFAAwF;AACxF,MAAM,UAAU,aAAa,CAAC,KAAc;IAC1C,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAC9E,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,SAAS,CACvB,MAA+B,EAC/B,MAAyB,EACzB,IAAiC;IAEjC,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;QAC3B,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC;YAAE,SAAS;QAC5C,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;QAC5B,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;YAAE,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;IAC3D,CAAC;AACH,CAAC"}
package/dist/runs.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import type { InputForm, OutputForm, PipeIOContracts } from "mthds/protocol";
2
- import type { RunErrorReport } from "./error-models.js";
1
+ import type { InputForm, OutputForm, PipeIOContracts, Problem } from "mthds/protocol";
3
2
  import type { DictPipeOutput, DictWorkingMemory, PipelexRunResultStart } from "./models.js";
4
3
  /**
5
4
  * Run-lifecycle types + polling for the hosted polling surface (`/v1/runs/*`).
@@ -33,8 +32,8 @@ export declare const RUN_STATUSES: readonly RunStatus[];
33
32
  * The statuses a run-history filter sends, deduplicated into `RUN_STATUSES` order so the same
34
33
  * filter always builds the same query, as the Python twin builds it. `undefined` is no filter,
35
34
  * which lists every status. An empty list names no status, and a name that is no `RunStatus`
36
- * names one the platform refuses with a `422`; each is a `RequestArgumentError`, `input` and not
37
- * retryable, before any request, rather than a query that lists every status or fails late. A
35
+ * names one the platform refuses with a `422`; each is a `RequestArgumentError`, its problem
36
+ * `client.argument_invalid` naming `status`, before any request, rather than a query that lists every status or fails late. A
38
37
  * value that is not an array at all is a `TypeError`, a bug in the calling code.
39
38
  */
40
39
  export declare function runStatusFilter(status: readonly RunStatus[] | undefined): readonly RunStatus[] | undefined;
@@ -45,7 +44,7 @@ export declare function isSuccessRunStatus(status: RunStatus): boolean;
45
44
  /**
46
45
  * A run record — the BASE shape of the run-lifecycle read surface.
47
46
  *
48
- * The base fields are declared, and so is `error`, the stored report of a failed run, which
47
+ * The base fields are declared, and so is `error`, the problem a failed run ended with, which
49
48
  * is how a caller learns why a run failed. An implementation may return more (identity,
50
49
  * workflow ids, storage URLs, anything else) — those are server-specific response fields,
51
50
  * not named in this SDK; the index signature keeps them accessible, mirroring the
@@ -58,20 +57,15 @@ export interface RunPublic {
58
57
  created_at: string;
59
58
  finished_at?: string | null;
60
59
  /**
61
- * Why the run failed: the stored error report as the platform serves it, the runner's STRICT
62
- * projection, typed whole (see `RunErrorReport`). The runner writes it for a run that fails
63
- * while it runs; the platform writes one in the runner's shape for a run it ends or settles
64
- * itself — a workflow task that kept failing (`WorkflowTaskKeptFailingError`), a timeout
65
- * (`RunTimedOutError`), a workflow that vanished (`RunWorkflowNotFoundError`). A cancelled,
66
- * terminated or timed-out run holds a report when a completion callback carried one, and a
67
- * timed-out run otherwise the platform's timeout report. `null` on a completed run and on a
68
- * run that ended without a report — one whose start failed, a blocking `execute` run, one
69
- * cancelled, terminated or given its status by hand with no completion callback carrying a
70
- * report, one that ended before the platform wrote reports of its own; absent on a server that
71
- * does not serve it. The results read of the same run carries the same object in its `409`,
72
- * which is where `getRunResult`'s failed arm and `RunFailedError` take it from.
73
- */
74
- error?: RunErrorReport | null;
60
+ * Why the run failed: the run's own problem document, as the platform serves it to its caller,
61
+ * under its own code (`run.cancelled`, `run.timed_out`, a model's or a method's code) with its
62
+ * own `domain`, `retry` and `next_step`. `null` on a completed run and on a run that ended
63
+ * without a problem stored; absent on a server that does not serve it. The client keeps it only
64
+ * when it is a problem document (`isProblem` in `mthds/protocol`), and reads anything else as
65
+ * `null`. The results read of the same run nests the same problem as the `run_error` of its
66
+ * `409`, which is where `getRunResult`'s failed arm and `RunFailedError.runError` take it from.
67
+ */
68
+ error?: Problem | null;
75
69
  /**
76
70
  * Which version of its stored method the run ran: the version number for a run addressed by
77
71
  * a bare `method_id` (the latest published version) or by `mt_…@<n>`, `"draft"` for one
@@ -219,12 +213,16 @@ export interface ProgressCondition {
219
213
  }
220
214
  /**
221
215
  * The latest failure of an invocation's work — `ProgressInvocation.last_failure`, a health
222
- * annotation. `message` keeps the disclosure of a run's error report: under the hosted plane's
223
- * strict disclosure it is the failure's own message only when that message was written for the
224
- * caller, and `An internal error occurred.` otherwise.
216
+ * annotation. Its `problem` is a problem document in the caller's view, as the run reads serve a
217
+ * failed run's problem: the problem that ended the invocation when it is `failed`, and otherwise
218
+ * the problem of the latest failure of an attempt its engine is trying again. A failure only the
219
+ * engine observed, which is no problem document, is served as `runtime.unexpected`. The client
220
+ * keeps a failure only when its `problem` is a problem document (`isProblem` in `mthds/protocol`),
221
+ * and keeps its `at` only when it is a string.
225
222
  */
226
223
  export interface ProgressFailure {
227
- message: string;
224
+ /** The failure, the standard's `Problem`: branch on its `code`, never on the wording of its `detail`. */
225
+ problem: Problem;
228
226
  /** When it failed, an RFC 3339 timestamp in UTC; absent when not recorded. */
229
227
  at?: string;
230
228
  }
@@ -275,7 +273,7 @@ export interface ProgressInvocation {
275
273
  condition?: ProgressCondition;
276
274
  /** Health: how many times its work has been tried, present only when more than once. */
277
275
  attempts?: number;
278
- /** Health: the latest failure of its work. */
276
+ /** Health: the latest failure of its work, its problem in the caller's view and when it happened. */
279
277
  last_failure?: ProgressFailure;
280
278
  /**
281
279
  * Health: the run is stuck at this invocation — the run status's own `degradation`, with the
@@ -359,13 +357,24 @@ export declare function isFresherRunProgress(read: RunProgress, held: RunProgres
359
357
  */
360
358
  export declare function runProgressFault(snapshot: Record<string, unknown>): string | undefined;
361
359
  /**
362
- * A readable snapshot with its degradations checked by `readRunDegradation`, the snapshot's own
363
- * and each invocation's, so that neither ever fails the read: one that cannot be read, its
364
- * `reason` not a string, is dropped, since an optional member is absent rather than `null`.
360
+ * An invocation's `last_failure`, checked so that it never fails the read carrying it: a value that
361
+ * is not an object, or whose `problem` is not a problem document (`isProblem` in `mthds/protocol`),
362
+ * reads as `undefined`, since a failure without its problem cannot be branched on; `at` is kept
363
+ * when it is a string and dropped otherwise; members this SDK does not name are relayed as sent.
364
+ *
365
+ * Internal: `withCheckedProgressHealth` applies it.
366
+ */
367
+ export declare function readProgressFailure(value: unknown): ProgressFailure | undefined;
368
+ /**
369
+ * A readable snapshot with its health annotations checked, so that none ever fails the read: its
370
+ * own `degradation` and each invocation's by `readRunDegradation`, one whose `reason` is not a
371
+ * string dropped, and each invocation's `last_failure` by `readProgressFailure`, one whose
372
+ * `problem` is not a problem document dropped, since an optional member is absent rather than
373
+ * `null`.
365
374
  *
366
375
  * Internal: `getRunProgress` applies it to an answer `runProgressFault` passed.
367
376
  */
368
- export declare function withCheckedProgressDegradations(snapshot: RunProgress): RunProgress;
377
+ export declare function withCheckedProgressHealth(snapshot: RunProgress): RunProgress;
369
378
  /**
370
379
  * One inference call's token usage — the client-facing wire record.
371
380
  *
@@ -433,9 +442,9 @@ export declare const RUN_RESULT_ARTIFACTS: readonly ["graph_spec", "pipe_io_cont
433
442
  export type RunResultArtifact = (typeof RUN_RESULT_ARTIFACTS)[number];
434
443
  /**
435
444
  * Refuse an artifact selection the platform would answer with a 400: an empty one, or one naming
436
- * an artifact it does not know, each a `RequestArgumentError`, `input` and not retryable, as the
437
- * Python twin refuses it. `undefined` is no selection, which reads every artifact; a value that is
438
- * not an array at all is a `TypeError`, a bug in the calling code that carries no verdict.
445
+ * an artifact it does not know, each a `RequestArgumentError`, its problem
446
+ * `client.argument_invalid` naming `artifacts`, as the Python twin refuses it. `undefined` is no selection, which reads every artifact; a value that is
447
+ * not an array at all is a `TypeError`, a bug in the calling code that carries no problem.
439
448
  */
440
449
  export declare function assertArtifactSelection(artifacts: readonly string[] | undefined): void;
441
450
  /** Whether a results read with this selection carries `main_stuff` — no selection reads all. */
@@ -584,10 +593,11 @@ export interface RunResults {
584
593
  * Single-shot result lookup outcome, discriminated on `state`:
585
594
  * - `running` — HTTP 202; poll again after `retry_after_seconds`.
586
595
  * - `completed` — HTTP 200; `result` carries the artifacts.
587
- * - `failed` — HTTP 409; run reached a terminal non-`COMPLETED` status. `status` is the
588
- * problem's `run_status` member (recovered from `detail` on a platform that predates it),
589
- * `message` its `detail` (`Run finished with status FAILED: <the report's message>`), and
590
- * `error` the run's stored error report, typed, or `null` when the run ended without one.
596
+ * - `failed` — HTTP 409 answering `run.failed`: the run reached a terminal non-`COMPLETED`
597
+ * status. `problem` is that `run.failed` problem as the platform answered it, `status` the
598
+ * terminal status its `run_status` parameter names (`FAILED` when it names none the SDK knows),
599
+ * `message` its `detail`, and `error` the run's own problem, which `run.failed` nests as
600
+ * `run_error`, or `null` when the run ended without one.
591
601
  */
592
602
  export type RunResultState = {
593
603
  state: "running";
@@ -602,7 +612,8 @@ export type RunResultState = {
602
612
  pipeline_run_id: string;
603
613
  status: RunStatus;
604
614
  message: string;
605
- error: RunErrorReport | null;
615
+ problem: Problem;
616
+ error: Problem | null;
606
617
  };
607
618
  export interface WaitForResultOptions {
608
619
  /**
@@ -685,8 +696,8 @@ export declare function assertWaitOptions(options?: WaitForResultOptions): void;
685
696
  /**
686
697
  * Poll a single-shot result lookup (`fetchOnce`) until the run reaches a
687
698
  * terminal state. Returns the artifacts on `COMPLETED`, throws `RunFailedError`
688
- * on any other terminal status — carrying the run's status and its stored error
689
- * report — and throws `RunTimeoutError` if `timeoutMs` elapses first (the run
699
+ * on any other terminal status — carrying the run's status and the `run.failed`
700
+ * problem, which nests the run's own — and throws `RunTimeoutError` if `timeoutMs` elapses first (the run
690
701
  * keeps executing server-side — re-poll by id later).
691
702
  *
692
703
  * With `options.onProgress` and a `fetchProgress`, each poll that finds the run still running also