@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/runs.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"runs.js","sourceRoot":"","sources":["../src/runs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAG3C,OAAO,EACL,oBAAoB,EACpB,cAAc,EACd,sBAAsB,EACtB,4BAA4B,EAC5B,eAAe,GAChB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAyCxD,8DAA8D;AAC9D,MAAM,CAAC,MAAM,YAAY,GAAyB;IAChD,SAAS;IACT,SAAS;IACT,SAAS;IACT,WAAW;IACX,QAAQ;IACR,WAAW;IACX,YAAY;IACZ,WAAW;CACZ,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,UAAU,eAAe,CAC7B,MAAwC;IAExC,IAAI,MAAM,KAAK,SAAS;QAAE,OAAO,SAAS,CAAC;IAC3C,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;QAC3B,MAAM,IAAI,SAAS,CACjB,mDAAmD,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAC9E,CAAC;IACJ,CAAC;IACD,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACxB,MAAM,IAAI,oBAAoB,CAC5B,qCAAqC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,iCAAiC,EAC7F,EAAE,OAAO,EAAE,sBAAsB,CAAC,QAAQ,EAAE,OAAO,CAAC,EAAE,CACvD,CAAC;IACJ,CAAC;IACD,MAAM,KAAK,G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;IAC7C,IAAI,EAAE,IAAI,CAAC,EAAE,CAAC;QACZ,cAAc,CAAC,MAAM,CAAC,CAAC;QACvB,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IAC3B,CAAC;IACD,OAAO,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QAC3C,MAAM,OAAO,GAAG,GAAS,EAAE;YACzB,YAAY,CAAC,KAAK,CAAC,CAAC;YACpB,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC;QAC7B,CAAC,CAAC;QACF,oFAAoF;QACpF,iEAAiE;QACjE,MAAM,KAAK,GAAG,UAAU,CACtB,GAAG,EAAE;YACH,MAAM,EAAE,mBAAmB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;YAC9C,OAAO,EAAE,CAAC;QACZ,CAAC,EACD,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,kBAAkB,CAAC,CACjC,CAAC;QACF,IAAI,MAAM,EAAE,CAAC;YACX,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;gBACnB,YAAY,CAAC,KAAK,CAAC,CAAC;gBACpB,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC;gBAC3B,OAAO;YACT,CAAC;YACD,MAAM,CAAC,gBAAgB,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;QAC5D,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -71,6 +71,18 @@ export interface ConceptSource {
71
71
  export declare function mainStuffNode(results: ConceptSource & {
72
72
  main_stuff?: unknown;
73
73
  }): InputFormItem | null;
74
+ /**
75
+ * The main stuff's concept, as the run's working memory names it, or `null` when the results carry
76
+ * no working memory or one naming no main stuff.
77
+ */
78
+ export declare function mainStuffConceptRef(results: ConceptSource): string | null;
79
+ /**
80
+ * Whether the run's own artifacts can say what a value of `conceptRef` holds: a native, whose
81
+ * shape the walk knows, or a concept an `output_form` or `input_form` node describes. A concept of
82
+ * the method's own that no form describes cannot, so a stored text in one of its fields could not
83
+ * be told from any other value.
84
+ */
85
+ export declare function describesConcept(conceptRef: string, source: ConceptSource): boolean;
74
86
  /**
75
87
  * A descriptor node for a whole working memory (`{ root, aliases }`): each stuff's `content`
76
88
  * described by the concept that stuff names, as {@link mainStuffNode} describes the main one.
@@ -115,6 +115,16 @@ export function storedTextKindOfNode(node) {
115
115
  * says what the output is, so a walk guided by it treats every value alike.
116
116
  */
117
117
  export function mainStuffNode(results) {
118
+ const conceptRef = mainStuffConceptRef(results);
119
+ if (conceptRef === null)
120
+ return null;
121
+ return contentNode(conceptRef, results.main_stuff, results);
122
+ }
123
+ /**
124
+ * The main stuff's concept, as the run's working memory names it, or `null` when the results carry
125
+ * no working memory or one naming no main stuff.
126
+ */
127
+ export function mainStuffConceptRef(results) {
118
128
  const memory = results.working_memory;
119
129
  if (memory == null || typeof memory !== "object")
120
130
  return null;
@@ -124,10 +134,18 @@ export function mainStuffNode(results) {
124
134
  : undefined;
125
135
  const name = typeof aliased === "string" ? aliased : MAIN_STUFF_ALIAS;
126
136
  const stuff = memory.root?.[name];
127
- const conceptRef = conceptRefOf(stuff?.concept);
128
- if (conceptRef === null)
129
- return null;
130
- return contentNode(conceptRef, results.main_stuff, results);
137
+ return conceptRefOf(stuff?.concept);
138
+ }
139
+ /**
140
+ * Whether the run's own artifacts can say what a value of `conceptRef` holds: a native, whose
141
+ * shape the walk knows, or a concept an `output_form` or `input_form` node describes. A concept of
142
+ * the method's own that no form describes cannot, so a stored text in one of its fields could not
143
+ * be told from any other value.
144
+ */
145
+ export function describesConcept(conceptRef, source) {
146
+ if (conceptRef.startsWith(NATIVE_PREFIX))
147
+ return true;
148
+ return formNodeForConcept(conceptRef, source) !== undefined;
131
149
  }
132
150
  /**
133
151
  * A descriptor node for a whole working memory (`{ root, aliases }`): each stuff's `content`
@@ -209,6 +227,10 @@ function isPluralEnvelope(content, element) {
209
227
  }
210
228
  /** The node the forms state for a concept, else the native's own shape, else an opaque node. */
211
229
  function nodeForConcept(conceptRef, source) {
230
+ return formNodeForConcept(conceptRef, source) ?? nativeNode(conceptRef);
231
+ }
232
+ /** The first node of the `output_form`, then the `input_form`, that names a concept. */
233
+ function formNodeForConcept(conceptRef, source) {
212
234
  for (const form of [source.output_form, source.input_form]) {
213
235
  if (form == null || typeof form !== "object")
214
236
  continue;
@@ -221,7 +243,7 @@ function nodeForConcept(conceptRef, source) {
221
243
  }
222
244
  }
223
245
  }
224
- return nativeNode(conceptRef);
246
+ return undefined;
225
247
  }
226
248
  /** The top nodes of one form entry: an output's `field`, an input's `fields`. */
227
249
  function descriptorRoots(descriptor) {
@@ -1 +1 @@
1
- {"version":3,"file":"stored-texts.js","sourceRoot":"","sources":["../src/stored-texts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAKH,wEAAwE;AAExE,wGAAwG;AACxG,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,aAAa;IACb,iBAAiB;IACjB,aAAa;IACb,aAAa;CACL,CAAC;AAKX,MAAM,eAAe,GAA6C;IAChE,aAAa,EAAE,MAAM;IACrB,iBAAiB,EAAE,MAAM;IACzB,aAAa,EAAE,MAAM;IACrB,aAAa,EAAE,MAAM;CACtB,CAAC;AAEF,0FAA0F;AAC1F,MAAM,CAAC,MAAM,uBAAuB,GAA6C;IAC/E,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,YAAY;IAClB,IAAI,EAAE,UAAU;CACjB,CAAC;AAEF,sEAAsE;AACtE,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,CAAU,CAAC;AAE7F,MAAM,gBAAgB,GAAG,YAAY,CAAC;AACtC,MAAM,gBAAgB,GAAG,OAAO,CAAC;AAEjC;;;GAGG;AACH,MAAM,cAAc,GAEhB;IACF,aAAa,EAAE,EAAE,eAAe,EAAE,sBAAsB,EAAE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IAAI;gBACd,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;aAC5B,CACN,CACF,CACF,CAAC;IACJ,CAAC;IACD,MAAM,QAAQ,GAAG,iBAAiB,CAAC,UAAU,CAAC,CAAC;IAC/C,IAAI,QAAQ,KAAK,SAAS;QAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC/F,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AACtE,CAAC;AAED,SAAS,UAAU,CAAC,UAAyB,EAAE,MAAuB;IACpE,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,GAAG,CAAC,UAAU,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC;QAC3D,QAAQ,EAAE,IAAI;QACd,MAAM,EAAE,MAA8D;KACvE,CAAC;AACJ,CAAC;AAED,SAAS,KAAK,CAAC,IAAY,EAAE,IAAmB;IAC9C,OAAO,EAAE,GAAG,IAAI,EAAE,IAAI,EAA8B,CAAC;AACvD,CAAC"}
package/dist/version.d.ts CHANGED
@@ -3,4 +3,4 @@
3
3
  * `User-Agent` without importing the public barrel. Kept in sync with
4
4
  * `package.json` — enforced by `tests/index.test.ts`.
5
5
  */
6
- export declare const SDK_VERSION = "0.69.4";
6
+ export declare const SDK_VERSION = "0.71.0";
package/dist/version.js CHANGED
@@ -3,5 +3,5 @@
3
3
  * `User-Agent` without importing the public barrel. Kept in sync with
4
4
  * `package.json` — enforced by `tests/index.test.ts`.
5
5
  */
6
- export const SDK_VERSION = "0.69.4";
6
+ export const SDK_VERSION = "0.71.0";
7
7
  //# sourceMappingURL=version.js.map
@@ -125,7 +125,7 @@ Flat `src/` (mirrors `mthds-js`'s `runners/api` flatness — the SDK has one cli
125
125
  - `method-trees.ts` — a saved method's tree on the client side: `MethodTreeSource`, the shape a save reads a tree from, which the `mthds` package's `MethodTree` satisfies; the choice between sending a tree inline and by hash (`INLINE_TREE_MAX_BYTES`), the wire types of `POST /v1/blobs/missing` and the upload of a blob the platform lacks; `redactSignedLinks`, which every error built from an answer holding signed links reads its body through; the tree of an in-memory map; the tree limits a version handshake announces; the listing of a `directory`, by the `mthds` package's lister, which it gets from the Node host only when a directory is given; and the Node-only write of a saved listing to disk, with the file system it gets from the Node host when called. Outside Node, both are refused with `RequestArgumentError`. Its tree-sending half mirrors the `mthds` package's own helpers, which the `mthds/protocol` subpath does not export yet, so it holds the same rules with Web Crypto's SHA-256 and a Base64 writer of its own. See [method-trees.md](./method-trees.md).
126
126
  - `codegen-check.ts` — `runCodegenCheck`, the **pure** offline drift check over a committed codegen tree: the stamp grammar, the `codegen.lock` parser, the hash, and the drift taxonomy, ported from pipelex's `codegen/check.py` so a verdict computed here equals the one `pipelex codegen check` computes over the same bytes (the drift `detail` sentences included, verbatim). It touches no client: its runtime imports are `smol-toml`, `mthds/protocol`'s `ProblemError` and `buildProblem` for the error it raises, the plain-object guard of `records.ts` and `version.ts`'s `SDK_VERSION`, and it hashes through WebCrypto rather than `node:crypto` so it adds no Node builtin to the barrel's import graph. It raises `CodegenLockError`, a `ProblemError` outside the request family, whose problem is `client.file_unreadable` naming `codegen.lock`, `client.tool_outdated` or `client.argument_invalid` ([errors.md](./errors.md#each-classs-problem)). No filesystem, no fetch, no API key — the caller walks its own tree and hands in the text. See [crate-routes.md](./crate-routes.md#the-offline-check--runcodegencheck).
127
127
  - `upload-grant.ts` — the halves of an upload grant (`requestUploadGrant`, `POST /v1/upload/grant`) that run where the bytes are. `describeUpload` reads a file's name, type and size and computes its SHA-256 with Web Crypto, leaving the hash out, and the file unread, past a size bound of 50 MiB by default, and leaving it out where the runtime has no digest. `uploadWithGrant` sends nothing for a grant that answers `stored: true`, and otherwise sends the file as the raw body of a `PUT` to the grant's URL with its signed headers unchanged, redirects refused, a `412` read as stored for a grant that names its bytes, a `409 ConditionalRequestConflict` sent again after a short pause a few times, the whole exchange bounded by a time limit scaled by the file's size unless the caller passes `timeoutMs`, only the first 16 KiB of storage's error body read, and storage's refusals mapped onto the input-preparation errors (`RejectedAssetError` with a `code` for a `4xx` such as the `412` of a used hashless grant, the `403` of a signature mismatch or the `400 BadDigest` of bytes other than the hashed ones, `UploadTransportError` with a `code` for the time limit running out, a `5xx`, storage's `RequestTimeout`, a `409` conflict that outlasted every attempt, a redirect or no response). It is the browser-safe `@pipelex/sdk/upload` entry, so it imports the error classes, the timer bound in `timers.ts` and the wire types only, never the client. See [input-preparation.md](./input-preparation.md#uploading-with-a-grant--requestuploadgrant--uploadwithgrant).
128
- - `artifacts.ts` — the artifact stack, the download twin of `prepareInputs`, in layers: `locateArtifacts` (a pure, exported walk for `pipelex-storage://` references, each with every `$`-rooted path it sits at) and `collectArtifacts` (the same walk's bare references), `resolveArtifacts` (the bulk resolve route over a whole list, chunked at its bound), `fetchArtifact` (one reference as a bounded `Response`) and `downloadArtifacts` (Node-only, a run's produced files saved under a directory as a produced verdict), plus `artifactFilename`, the rule that names a saved file after the field it fills. The three network operations are client methods over a small structural seam (`ArtifactCapableClient`: the raw `resolveStorageUrls` call and `getRunResult`); the module's graph, static and dynamic, stays free of Node builtins, because `node:fs/promises`, `node:path` and `undici` come from the Node host. `undici` is a runtime dependency for one reason: the fetch runs on an `Agent` carrying `headersTimeout` and `bodyTimeout`, the per-stall bounds an `AbortSignal` budget does not give, and Node exposes its bundled undici's `fetch` but not its `Agent`. See [artifact-download.md](./artifact-download.md).
128
+ - `artifacts.ts` — the artifact stack, the download twin of `prepareInputs`, in layers: `locateArtifacts` (a pure, exported walk for `pipelex-storage://` references, each with every `$`-rooted path it sits at) and `collectArtifacts` (the same walk's bare references), `resolveArtifacts` (the bulk resolve route over a whole list, chunked at its bound), `fetchArtifact` (one reference as a bounded `Response`) and `downloadArtifacts` (Node-only, a run's produced files saved under a directory as a produced verdict), plus `artifactFilename`, the rule that names a saved file after the field it fills. The three network operations are client methods over a small structural seam (`ArtifactCapableClient`: the raw `resolveStorageUrls` call, `getRunResult` and the `originUrl` a plain-http link is checked against); the module's graph, static and dynamic, stays free of Node builtins, because `node:fs/promises`, `node:path` and `undici` come from the Node host. `undici` is a runtime dependency for one reason: the fetch runs on an `Agent` carrying `headersTimeout` and `bodyTimeout`, the per-stall bounds an `AbortSignal` budget does not give, and Node exposes its bundled undici's `fetch` but not its `Agent`. See [artifact-download.md](./artifact-download.md).
129
129
  - `runs.ts` — the run-lifecycle types (`RunStatus`, `RunRead`, `RunResults`, `RunResultState`) and the single poll loop (`pollUntilResult`). `RunResults.main_stuff` (the resolved main output content) is always present for a completed run: on the hosted path it is the `main_stuff.json` S3 artifact; on the bare-runner blocking path the SDK resolves it from the returned working memory via the response's `main_stuff_name`, so both paths deliver the same shape. Consumers read `main_stuff` directly. `working_memory` — every named stuff of the run, `{ root, aliases }`, typed `DictWorkingMemory` from `models.ts` — reads the same on both paths: the hosted path relays the `working_memory.json` artifact, and the blocking path lifts it off `pipe_output`, which still rides whole (blocking path only). `graph_spec` — the executed graph — also reaches the client on both paths: the hosted path relays the `graphspec.json` artifact, and the blocking path lifts it off `pipe_output` beside `graph_assembly_error`, the graph's twin of `usage_assembly_error`. That error field is declared ahead of the wire on the hosted side, where the platform's results body relays no such key and the field is therefore absent, reading `undefined` rather than `null`. A completed run that cannot deliver a main stuff throws `MissingMainStuffError` when the read asked for it. `runs.ts` also declares `RUN_RESULT_ARTIFACTS` / `RunResultArtifact`, the artifacts a results read can be narrowed to with `getRunResult`'s `artifacts` option; with a selection an unselected artifact is absent while a selected unwritten one is `null`. `runs.ts` also owns `TokensUsageRecord` — one client-facing usage record per inference call, carried by `RunResults.tokens_usages` on both paths. That is a mirror of a wire contract this SDK does not own (inference accounting is a Pipelex runtime extension rather than part of the MTHDS standard): every field is optional and the interface carries an index signature so pre-contract artifacts (relayed verbatim, never migrated) still type-check. See [`run-usage.md`](./run-usage.md) for the field reference, the cost/null semantics, and the old-artifact rules, and [`run-results.md`](./run-results.md) for the field-by-field account of `RunResults` — the durable handle, the output and how to read it, the run's working memory, the executed graph and how to render or keep it, and the produced files with their short-lived links.
130
130
  - `usage.ts` — `summarizeUsage`, the **pure** fold of a run's usage pair (`tokens_usages` / `usage_assembly_error`) into one `UsageSummary`: a `state` (`records`, `no_inference` or `unavailable`), the null-aware total cost with its `cost_partial` flag, the `input` and `output` token totals, the call count, the relayed assembly error, and a `by_pipe` rollup sorted by cost with the unattributed calls grouped under a `null` `pipe_code`. It applies the rules [`run-usage.md`](./run-usage.md#summarizing-a-run--summarizeusage) states, so that every consumer reads one computation rather than re-deriving those rules by hand. It imports types from `runs.ts` and nothing else: no client, no fetch, no `mthds/protocol`.
131
131
  - `execute-result.ts` — `PipelexExecuteResult`, a `DictRunResultExecute` subtype that adds a resolved `.main_stuff` accessor (dug out of `pipe_output`'s working memory via the response's `main_stuff_name`, throwing `MissingMainStuffError` if unlocatable). `execute()` returns it, giving blocking and durable results the **same output accessor** — `result.main_stuff` — so callers never branch on which path ran. The neutral `mthds` wire model leaves `main_stuff_name` in its extension index signature; this Pipelex-branded subtype declares it as a typed field (Pipelex owns that concept). `resultsFromExecute` (the public lift from that result onto `RunResults`, in the same module) reads that accessor too, keeping the resolution single-sourced; the `executeBlocking` fallback is its only caller inside the SDK, and a consumer driving `execute()` directly calls it by name.
@@ -174,7 +174,7 @@ The hosted catalog/account routes the webapp drives. All ride the same `{base}/v
174
174
  - **Onboarding:** `submitOnboarding`.
175
175
  - **Storage:** `resolveStorageUrl`, `resolveStorageUrls` (`POST /v1/resolve-storage-url/bulk` — the single route applied to a list of at most 100 references, one verdict per reference in request order, a refused reference a value on its item; a deployment without the route answers a `404` `ApiResponseError`), `upload` (JSON base64 — the multipart hop is browser→BFF only — answering the file's `uri`, its `filename` and the `file_id` of its record), `requestUploadGrant` (`POST /v1/upload/grant` — for a file described by its name, size and, from `describeUpload`, its SHA-256: either `stored: true`, the organization already holding those bytes, or a presigned, create-only `PUT` for the object, which the holder of the bytes sends with the standalone `uploadWithGrant`; both helpers are also exported from the browser-safe `@pipelex/sdk/upload` entry; a declared size over the cap is a `413` `ApiResponseError`). The higher-level `uploadFile` / `prepareInputs` preparation surface is built on top of `upload`; `prepareInputs` additionally composes one `pipeIo` call, which selects the pipe and answers with the input-form descriptor it walks, and takes the method as its tree, a `method_ref` or a `method_id` like every other method-taking operation — see [input-preparation.md](./input-preparation.md). The download twin — `locateArtifacts`, `collectArtifacts`, `resolveArtifacts`, `fetchArtifact`, `downloadArtifacts` — is built on top of `resolveStorageUrls` and `getRunResult`, never on the embedded `public_url`, and is documented on [artifact-download.md](./artifact-download.md); downloading is a separate explicit gesture, and no run call takes a `download` option.
176
176
  - **Runs list/detail/update:** `listRuns(query?)` returns **one page**, not the whole history — a `RunPage` (`{items, nextCursor}`) served from a time-ordered index, so its cost is the page size rather than the size of the history. The method is one filter among the others: `methodId`, sent as `method_id`, lists that method's runs, and without it the page holds the organization's runs of every method, newest first, the other filters applying exactly as with a method. A cursor is bound to the list that issued it, so the cursor of one method's runs is refused on the organization's and the other way round; pass it back with the same `methodId`. A query that is not an object, such as the method id a call written for the former `listRuns(methodId, query)` passes first, is a `RequestArgumentError` before any request, and `iterateRuns` throws it at the call, since spread into a page's query a string would become an object of its characters naming no filter. Its rows are `RunHistoryItem`, **not** `PipelineRun`: the id, `method_id`, the bare catalog id of the method the run ran, `created_by_user_id`, the canonical user id of the member who started it, both always present so that a list across methods can name each row's method from the catalog and its author from the organization's members, `status`, `created_at`, `finished_at`, `pipe_code`, for a failed run `error`, and `method_version` and `source_digest`, which version of the method the run ran (a number, `"draft"`, or `null` for an inline source) and the SHA-256 of the sources it sent as text, 64 hex digits with no prefix and `null` for a run whose `files` held bytes as Base64 or by hash — what a history row shows. A row also carries `results_stored`, which says whether `getRunResult` can read the run's results: `true` exactly when the run is `COMPLETED` with its results stored, and `false` on every other row. Only while the run is still queued or running (`PENDING`, `STARTED`, `RUNNING`) does `false` mean "not yet". On a run that ended any other way than `COMPLETED` it is `false` for good, there being no results to read, and on a `COMPLETED` run it is `false` for good when the result went inline to the caller that started it, as a blocking `execute` run's does, and the results read of such a run answers `404 run.results_not_stored`, so a history asks for no results on that row. The field is optional, since a platform that predates it leaves it out, which says nothing either way: an absent field does not mean `false`. `getRunDetail` also carries the run's `tree_digest` and `crate_fingerprint`, each `null` for a run that recorded none. The history lists the runs of every version and of the draft together, by the bare id. `method_version` and `source_digest` are optional on every run record (`RunPublic`, `RunRead`, `PipelineRun`, `RunDetail`, `RunHistoryItem`), since a run recorded before the platform recorded them carries neither. The run's organization, workflow id and result location are not on the list; `getRunDetail` returns them. `iterateRuns` is the async iterator that follows the cursor for callers who genuinely want everything (`for await (const run of client.iterateRuns({ methodId }))`, or `client.iterateRuns()` for every method), sending its query with every page; it is deliberately not a `listAllRuns(): Promise<RunHistoryItem[]>`, because an all-at-once helper needs a page cap and a cap means silently returning a truncated list. Both accept `createdFrom` / `createdTo`, applied server-side as index key conditions — these are **instants, not days** (ISO-8601 with a UTC offset; a naive timestamp is refused as `request.invalid`), because only the caller knows which timezone's day it means. Both also accept `createdBy: "me"`, sent as `created_by=me`, which keeps the runs the caller started (the platform resolves "me" from the authenticated identity and takes no other value), and `status`, a list of `RunStatus` sent as one repeated `status=` parameter per status, deduplicated into the platform's order, which keeps the runs in any of them: the caller's own latest unfinished run is `{ createdBy: "me", status: ["PENDING", "STARTED", "RUNNING"], limit: 1 }`. An empty `status` list would be sent as no parameter at all, which lists every status, so it is a `RequestArgumentError` before any request, as is a name that is no `RunStatus`. The platform may apply these two after its index read, so **a filtered page can hold fewer runs than `limit`, or none, and still carry a `nextCursor`**: an empty page is not the end of the history, a `null` cursor is, and `iterateRuns` keeps following the cursor through one. It runs the same loop as `iterateMethods`, so it also stops on a cursor the server failed to advance and throws `PagingNotTerminatingError` past the same page ceiling. `getRunDetail` (`GET /v1/runs/{id}`) is the only call returning `mthds_contents` — what the run actually executed — and `inputs`; it is kept off the status read that pollers hit every few seconds and off the list, where the bundle would be multiplied by the page size. `updateRun` is the admin/manual status patch. The status/results/start lifecycle routes live in the run-lifecycle section above.
177
- - **An organization's files:** `listFiles` (`GET /v1/files`) returns **one page** of the organization's listed files, newest first, a `FilePage` (`{items, nextCursor}`) of `FileSummary` rows, each with the `uri` a run's inputs take as any address, its name, type, size, `kind` (`uploaded`, `attachment`, `generated` or `test`) and `origin`. Its `ListFilesQuery` follows `ListRunsQuery`'s camelCase and is sent under the API's names: `methodId`, `runId` and `createdBy` choose the method's, the run's (in the order of its addresses), one member's or the organization's list, and `q`, `kind`, `format`, `mediaType`, `createdFrom` and `createdTo` filter it, `format` and `mediaType` as one repeated parameter per value, an empty list of either refused with `RequestArgumentError` before any request since it would be sent as no filter at all. The filters apply after the index read, so a filtered page can be short or empty and still carry a `nextCursor`, which is bound to the list and filters that issued it; `iterateFiles` follows it through the loop the other iterators share. An upload is recorded as a method's test file by `kind: "test"` with its `method_id`, the pair `UploadInput`, `uploadFile`'s options and `prepareInputs`' nested `upload` all take, checked before any file is read; the upload route's refusals of a test file, for the caller's role or for its method, are a `TestFileRefusedError`. The rest of the files surface reads and acts on one file or a selection: `getFile` answers a `FileDetail`, the whole `FileRecord` with its `method_ids` and one page of its uses, whose cursor stays inside the answer as `uses.next_cursor`; `getFilesByUri` the records holding one address, the one a surface shows first; `renameFile` the record under the name the platform's one rule saved; and `linkFiles` one `FileLink` per requested file, in order, each a link or an `error`, a `200` either way, read through `withLinks` so an answer the SDK cannot read hides every link. A zip is two calls, `requestFileArchive` (answered `202`, `queued`) and `getFileArchive`, read until `ready` or `failed`, with no waiting helper; a selection past a cap is a `422` refusal whose problem carries a `limit` member. `listRunFiles` (`GET /v1/runs/{id}/files`) answers a `RunFilesPage` of a run's inputs, outputs, intermediate files and web links, its `next_cursor` read as `nextCursor` and its `state` `listing` until every record is written. `copyFileIntoDraft` copies a file into a method's draft and answers a `200` discriminated on `blob`, `copied` or `already_held`, with the new draft token on its `method`. Each answer is checked on the member a caller branches on before it is handed back. See [files.md](./files.md).
177
+ - **An organization's files:** `listFiles` (`GET /v1/files`) returns **one page** of the organization's listed files, newest first, a `FilePage` (`{items, nextCursor}`) of `FileSummary` rows, each with the `uri` a run's inputs take as any address, its name, type, size, `kind` (`uploaded`, `attachment`, `generated` or `test`) and `origin`. Its `ListFilesQuery` follows `ListRunsQuery`'s camelCase and is sent under the API's names: `methodId`, `runId` and `createdBy` choose the method's, the run's (in the order of its addresses), one member's or the organization's list, and `q`, `kind`, `format`, `mediaType`, `createdFrom` and `createdTo` filter it, `format` and `mediaType` as one repeated parameter per value, an empty list of either refused with `RequestArgumentError` before any request since it would be sent as no filter at all. The filters apply after the index read, so a filtered page can be short or empty and still carry a `nextCursor`, which is bound to the list and filters that issued it; `iterateFiles` follows it through the loop the other iterators share. An upload is recorded as a method's test file by `kind: "test"` with its `method_id`, the pair `UploadInput`, `uploadFile`'s options and `prepareInputs`' nested `upload` all take, checked before any file is read; the upload route's refusals of a test file, for the caller's role or for its method, are a `TestFileRefusedError`. The rest of the files surface reads and acts on one file or a selection: `getFile` answers a `FileDetail`, the whole `FileRecord` with its `method_ids` and one page of its uses, whose cursor stays inside the answer as `uses.next_cursor`; `getFilesByUri` the records holding one address, the one a surface shows first; `renameFile` the record under the name the platform's one rule saved; and `linkFiles` one `FileLink` per requested file, in order, each a link or an `error`, a `200` either way, read through `withLinks` so an answer the SDK cannot read hides every link. A zip is two calls, `requestFileArchive` (answered `202`, `queued`) and `getFileArchive`, read until `ready` or `failed`, with no waiting helper; a selection past a cap is a `422` refusal whose problem carries a `limit` member. `getFilePreview` (`GET /v1/files/preview`) answers the PDF preview of an Office file as a `FilePreview`, a `200` discriminated on `state` (`ready` with its link, `preparing`, `failed` with its `failure`, `unavailable`), read through `withLinks` and narrowed to the members its state fills, with no waiting helper either. `listRunFiles` (`GET /v1/runs/{id}/files`) answers a `RunFilesPage` of a run's inputs, outputs, intermediate files and web links, its `next_cursor` read as `nextCursor` and its `state` `listing` until every record is written. `copyFileIntoDraft` copies a file into a method's draft and answers a `200` discriminated on `blob`, `copied` or `already_held`, with the new draft token on its `method`. Each answer is checked on the member a caller branches on before it is handed back. See [files.md](./files.md).
178
178
 
179
179
  ## Hook bundle (`dist-hooks/check.mjs`)
180
180
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  > **Status: implemented** (`src/artifacts.ts`). This is the download twin of [input preparation](./input-preparation.md): where `prepareInputs` turns local files into `pipelex-storage://` references before a run, these operations turn the references a run produced back into bytes on disk, or into a bounded stream, afterwards. They are layered so that each is usable without the next.
4
4
  >
5
- > **They need a platform that serves the bulk resolve route.** Everything below the pure walk mints its links through `POST /v1/resolve-storage-url/bulk`, a hosted-platform route. The public bare runner (`pipelex-api`) has no resolve route at all, single or bulk, and a hosted deployment that predates the route answers a `404`; in both cases the operation throws the existing `ApiResponseError` and nothing is downloaded. `resolveStorageUrl`, the single-reference primitive, stays for the callers that have one link to mint.
5
+ > **They need a server that serves the bulk resolve route.** Everything below the pure walk mints its links through `POST /v1/resolve-storage-url/bulk`. The hosted platform serves it and, from pipelex-api 0.118.0, so does a self-hosted runner, which resolves the references under the caller's own scope to links on its own signed download route. A runner from pipelex-api 0.118.0 serves only the bulk route, never the single `POST /v1/resolve-storage-url`, and an older runner serves neither. Against an older runner, or a hosted deployment that predates the bulk route and answers a `404`, the operation throws the existing `ApiResponseError` and nothing is downloaded. `resolveStorageUrl`, the single-reference primitive, reaches the hosted platform only: a self-hosted caller with one link to mint calls `resolveArtifacts` with a one-item list.
6
6
 
7
7
  ## Why this exists
8
8
 
@@ -10,7 +10,7 @@ A run that produces an image, a PDF or a document does not embed the bytes in it
10
10
 
11
11
  Downloading is **explicit and separate from running**, the input-preparation rule in reverse: `execute` / `start` never silently upload, and `startAndWaitForResult` never silently downloads. There is no `download` option on any run call. A download is its own gesture, inspectable and repeatable — by run id, days after the run.
12
12
 
13
- Nothing here reads the embedded `public_url`. Every link is minted fresh by the platform, which is what makes a download work long after the embedded link died, and what keeps the tenant boundary where the platform enforces it.
13
+ Nothing here reads the embedded `public_url`. Every link is minted fresh by the server's bulk resolve route, the hosted platform's presigned link or a self-hosted runner's own signed link, which is what makes a download work long after the embedded link died, and what keeps the tenant boundary where the server enforces it.
14
14
 
15
15
  ## The operations
16
16
 
@@ -50,9 +50,9 @@ for (const item of resolved) {
50
50
  }
51
51
  ```
52
52
 
53
- One call to the platform's bulk route for the whole list, chunked at the route's bound of 100 references per request (`BULK_RESOLVE_MAX_URIS`), answering one `ResolvedArtifact` per reference **in request order, duplicates included**. A resolved item carries `url`, `expires_at` (UTC, ISO 8601) and `content_type` (`string | null` — the platform's guess from the reference's extension, null when it has none) with `error: null`; a refused item carries `error` as `{ code, detail }` with the three link fields null. The codes are the route's, from the platform's registry: `pipelex.storage.uri_invalid` for a malformed reference and `pipelex.org.mismatch` for one belonging to another organization. A consumer branches on `error`, never on an HTTP status, because the request is a `200` whenever every reference got a verdict.
53
+ One call to the server's bulk route for the whole list, chunked at the route's bound of 100 references per request (`BULK_RESOLVE_MAX_URIS`), answering one `ResolvedArtifact` per reference **in request order, duplicates included**. A resolved item carries `url`, `expires_at` (UTC, ISO 8601) and `content_type` (`string | null` — the server's guess from the reference's extension, null when it has none) with `error: null`; a refused item carries `error` as `{ code, detail, params }` with the three link fields null, `params` being the parameters the code declares when the route sends them. The codes are the route's, from the registry: `pipelex.storage.uri_invalid` for a malformed reference, `pipelex.org.mismatch` on the platform for one belonging to another organization, and `auth.forbidden` whose `params.requirement` is `read_scope_under_caller` on a self-hosted runner for one outside the caller's scope. A consumer branches on `error`, never on an HTTP status, because the request is a `200` whenever every reference got a verdict.
54
54
 
55
- Only what is not about a reference throws: the route's whole-request refusals (a caller with no organization, a request over the bound or with an unknown field, a signing failure, a deployment without the route) as `ApiResponseError`, and an unreachable host as `ApiUnreachableError`. An empty list resolves to an empty list with no request made. A link lives about fifteen minutes; resolve close to the moment of use.
55
+ Only what is not about a reference throws: the route's whole-request refusals (a caller with no organization, a request over the bound or with an unknown field, a signing failure, a deployment without the route) as `ApiResponseError`, and an unreachable host as `ApiUnreachableError`. An empty list resolves to an empty list with no request made. A link lives as long as the server signs it for, about fifteen minutes on the hosted platform and `STORAGE_LINK_TTL_SECONDS` on a self-hosted runner; resolve close to the moment of use.
56
56
 
57
57
  This is where every browser-side or server-rendering consumer stops: it mints links on the server and hands each one to a client that uses it immediately. `resolveStorageUrls` is the raw wire call underneath it (one request, at most the bound), the way `upload` sits under `uploadFile`.
58
58
 
@@ -77,14 +77,14 @@ export async function GET(request: Request, { params }: { params: { uri: string
77
77
  Resolves the reference fresh and returns the object store's response as a bounded `Response`. The bounds:
78
78
 
79
79
  - **A timeout** covering the connection, the headers and the whole body (`timeoutMs`, default 120 s). On Node the fetch also runs on an `undici` dispatcher carrying `headersTimeout` and `bodyTimeout` at the same value, the per-stall bounds an `AbortSignal` alone does not give. It must be a positive number no larger than 2147483647, the longest delay a timer honours, or the call throws an `ArtifactOperationError` before anything is resolved.
80
- - **Redirects refused** (`redirect: "manual"`): a presigned link has no reason to redirect, and one that does is refused rather than followed.
80
+ - **Redirects refused** (`redirect: "manual"`): a signed link has no reason to redirect, and one that does is refused rather than followed.
81
81
  - **The byte cap enforced mid-stream** (`maxBytes`, default 1 GiB): a declared `Content-Length` over the cap is refused before a byte is read, and a body that crosses the cap while streaming errors the returned stream — never buffered.
82
82
  - **No credentials forwarded**: the request carries no headers of ours. The link's authorization is in its query string, and nothing else may ride along to the store.
83
- - **Plain `http:` refused** unless `allowHttp: true`. A general-purpose library does not fetch over plain http silently; the local compose stack's object store hands out such links, and that is what the option opts into.
83
+ - **Plain `http:` refused off the client's own origin** unless `allowHttp: true`. A plain `http:` link whose origin (scheme, host and port, a default port and a trailing slash making no difference) is the origin of the client's configured base URL is fetched as is: the client already sends its API key to that origin, so a link to it reveals nothing the client does not already trust that server with, and that is how a self-hosted runner listening on plain http hands back what it stores. Hosts are compared in the WHATWG URL parser's form, which lowercases them, encodes an internationalized name as IDNA and writes an IP address canonically (`127.1` is `127.0.0.1`), but a name is never resolved, so a client configured with `http://localhost:8091` refuses a link on `http://127.0.0.1:8091`. Any other plain `http:` link is refused, since a general-purpose library does not fetch over plain http silently; the local compose stack's object store hands out such links on its own origin, and that is what the option opts into. The client states its origin through `ArtifactCapableClient.originUrl`, which `PipelexApiClient` derives from its base URL.
84
84
 
85
85
  It is **header-neutral**: the status, status text and headers are the store's own. The one change is that a `Content-Encoding` the fetch already decoded is dropped with the encoded `Content-Length`, since the body handed on is the decoded bytes. A proxy relaying it therefore owns the response hygiene — `X-Content-Type-Options: nosniff`, a sandboxing CSP on the asset response, a controlled `Content-Disposition`, private caching — and must set them itself, as the example does.
86
86
 
87
- Only a `2xx` is returned. Anything else throws an `ArtifactFetchError` whose `reason` says why, beside its problem ([errors.md](./errors.md#each-classs-problem)), in the same closed vocabulary the download verdict uses per item: the route's `pipelex.storage.uri_invalid` / `pipelex.org.mismatch`, both read as `input.reference_not_found`, then `unsupported_url` (not a URL, not http(s), or carrying credentials), `plain_http_refused`, `redirect_refused`, `store_refused` (a 401/403 from the store — the link is freshly minted, so this is the store refusing a fresh signature, not an expired link), `not_found` (404/410), `store_error` (any other non-2xx, with `status`), `too_large`, `timeout` and `network`. Its problem follows its `reason` and `status`: a `store_error` or a `store_refused` is `runtime.unavailable`, `retry` `yes`, when its `status` is a `408`, a `429` or a `5xx` other than `501`, `runtime.unsupported` for a `501`, and `client.response_unreadable` naming the status, `retry` `no`, for any other status, so a `400`, a `405`, a `401` or a `403` is not worth asking again; `timeout` and `network` are `runtime.unavailable`, `retry` `yes`. The caller's abort propagates as-is, and the body reader is cancelled with it. `downloadArtifacts` and a proxy share this boundary: the download is the same fetch followed by a write.
87
+ Only a `2xx` is returned. Anything else throws an `ArtifactFetchError` whose `reason` says why, beside its problem ([errors.md](./errors.md#each-classs-problem)), in the same closed vocabulary the download verdict uses per item: the route's `pipelex.storage.uri_invalid`, `pipelex.org.mismatch` and a self-hosted runner's `auth.forbidden` naming `read_scope_under_caller`, all three read as `input.reference_not_found` (an `auth.forbidden` naming any other requirement is `runtime.unexpected`), then `unsupported_url` (not a URL, not http(s), or carrying credentials), `plain_http_refused`, `redirect_refused`, `store_refused` (a 401/403 from the store — the link is freshly minted, so this is the store refusing a fresh signature, not an expired link; a self-hosted runner's download route answers its `403` `auth.forbidden` for a signature that does not hold or has expired, read the same way), `not_found` (404/410, a self-hosted runner's `404` `pipelex.storage.object_missing` included, since only the status is read), `store_error` (any other non-2xx, with `status`), `too_large`, `timeout` and `network`. Its problem follows its `reason` and `status`: a `store_error` or a `store_refused` is `runtime.unavailable`, `retry` `yes`, when its `status` is a `408`, a `429` or a `5xx` other than `501`, `runtime.unsupported` for a `501`, and `client.response_unreadable` naming the status, `retry` `no`, for any other status, so a `400`, a `405`, a `401` or a `403` is not worth asking again; `timeout` and `network` are `runtime.unavailable`, `retry` `yes`. The caller's abort propagates as-is, and the body reader is cancelled with it. `downloadArtifacts` and a proxy share this boundary: the download is the same fetch followed by a write.
88
88
 
89
89
  ### `downloadArtifacts({ run_id | results, dir, … })` — the files on disk
90
90
 
@@ -150,7 +150,7 @@ Files are **never overwritten**: a name already on disk gets a numeric suffix (`
150
150
  scope: "main_stuff" | "working_memory",
151
151
  artifacts: [
152
152
  { uri, found_at, path, content_type, size, error: null }, // saved — path is absolute
153
- { uri, found_at, path: null, content_type, size: null, error: { code, detail } }, // not saved
153
+ { uri, found_at, path: null, content_type, size: null, error: { code, detail, params? } }, // not saved
154
154
  ],
155
155
  saved_paths: [ /* the absolute paths of the saved ones, same order */ ],
156
156
  all_saved: boolean, // every reference saved; vacuously true for an empty walk
@@ -158,7 +158,7 @@ Files are **never overwritten**: a name already on disk gets a numeric suffix (`
158
158
  }
159
159
  ```
160
160
 
161
- `artifacts.length` is the count of references walked, errors included. An empty walk over a present scope — an output that references no stored file — is a verdict with empty lists and `all_saved: true`, not an error, and it touches neither the network nor the disk. `found_at` is the reference's paths in the walked scope, exactly as `locateArtifacts` reports them, and `content_type` is the platform's guess from the reference, known before the fetch; both are on both arms, so an item that was not saved still says which field it would have filled.
161
+ `artifacts.length` is the count of references walked, errors included. An empty walk over a present scope — an output that references no stored file — is a verdict with empty lists and `all_saved: true`, not an error, and it touches neither the network nor the disk. `found_at` is the reference's paths in the walked scope, exactly as `locateArtifacts` reports them, and `content_type` is the server's guess from the reference, known before the fetch; both are on both arms, so an item that was not saved still says which field it would have filled. An item the resolve route refused keeps the refusal's `params` on its `error` when the route sent them, so a self-hosted runner's `auth.forbidden` still names its `requirement`.
162
162
 
163
163
  Per-item `error.code` is the fetch vocabulary above plus the download's own: `resolve_failed` (an expired link could not be re-resolved, for a reason that is not the credential), `total_limit_exceeded` (the item that would take the call past `maxTotalBytes`, and, once the files already saved leave no room, every item not yet started, whose `detail` says it was skipped; an item refused only because files still in flight hold the room stops nothing else, since one of them may yet fail and give it back), `write_failed` (the file could not be created, written or closed), `aborted` (in flight or not yet started when the signal fired) and `unknown` (a failure the SDK cannot place, never one a retry can pass).
164
164
 
@@ -181,7 +181,7 @@ Everything else that can go wrong with one reference is that reference's `error`
181
181
  | `maxBytes` | 1 GiB | one file, from `Content-Length` and again mid-stream |
182
182
  | `timeoutMs` | 120 s | one file's whole exchange, plus the dispatcher's per-stall timeouts |
183
183
  | `maxTotalBytes` | 4 GiB | the bytes the whole call saves, a file in flight counting its declared length |
184
- | `allowHttp` | `false` | whether a plain `http:` link is fetched |
184
+ | `allowHttp` | `false` | whether a plain `http:` link off the client's own origin is fetched |
185
185
  | `signal` | — | cancels the call: in-flight fetches are cancelled and their partial files unlinked, the rest are marked, and the verdict comes back with `aborted: true` |
186
186
 
187
187
  The per-file defaults are the MCP server's, which this replaces; the caps are accident guards against filling a disk from a runaway output, not judgments about artifact size.
package/docs/errors.md CHANGED
@@ -126,8 +126,8 @@ The classes remain, so a `catch` can still tell an argument refusal from a refus
126
126
  | `MethodFileTransferError` | By `reason`: `unreachable` and `storage_error` are `runtime.unavailable`; `refused` reads storage's status, as above, `runtime.unexpected` with none; `mismatch`, downloaded bytes that are not the file listed, is `client.response_unreadable`. It carries `operation`, `reason`, `sha256`, `path` and `status`, and neither the link, nor storage's error body, nor a cause ([method-trees.md](./method-trees.md#when-a-transfer-fails)). |
127
127
  | `ArtifactOperationError` | `runtime.unexpected` when built without a problem; the SDK gives `client.argument_invalid` where it refuses an argument (a `scope`, a bound, a location), `runtime.unsupported` for a runtime with no filesystem, `client.write_failed` for a directory that cannot be created, and `client.response_unreadable` for a resolution that answered the wrong count of items. |
128
128
  | `ScopeUnavailableError` | `client.response_unreadable`: the run's results carry no artifact in the scope asked for. |
129
- | `ArtifactFetchError` | The SDK gives `client.download_limit_exceeded` naming the cap for a file over it (`too_large`), `client.timeout` naming the budget for a download that ran out of time, and `client.unreachable` naming the store's origin for one that failed on the network. Otherwise by `reason` and `status`: `input.reference_not_found` naming the reference for the bulk resolve route's `pipelex.storage.uri_invalid` and `pipelex.org.mismatch` and for `not_found`; `client.link_refused` for `unsupported_url`, `plain_http_refused` and `redirect_refused`; for `store_error` and `store_refused`, the reading of the store's status as for any storage answer (`runtime.unavailable` for a `408`, a `429` or a `5xx` other than `501`, `runtime.unsupported` for a `501`, `client.response_unreadable` naming any other status, a `401` or a `403` included), and `runtime.unavailable` when no status is known; `runtime.unavailable` for `timeout` and `network`; and `runtime.unexpected` otherwise. |
130
- | `StoredTextLoadError` | The fetch failure's own problem, as `ArtifactFetchError` gives it, when a stored text's bytes could not be read, a refusal of the resolve route included; the resolve route's own problem for `resolve_failed`, the route failing as a whole; `client.link_refused` for `unsupported_url`, a stored text whose `url` is neither a `pipelex-storage://` reference nor a `data:` URL, which is never fetched; and `client.response_unreadable` naming the run for `not_utf8` and `not_json_object`, bytes read that are not the value. `uri`, `path` and `reason` name the text; `wireResults` carries the completed result as it was answered on the blocking fallback alone, where there is no run to read again, and is `undefined` elsewhere, where reading it again with `loadStoredTexts: false` gives it. |
129
+ | `ArtifactFetchError` | The SDK gives `client.download_limit_exceeded` naming the cap for a file over it (`too_large`), `client.timeout` naming the budget for a download that ran out of time, and `client.unreachable` naming the store's origin for one that failed on the network. Otherwise by `reason` and `status`: `input.reference_not_found` naming the reference for the bulk resolve route's `pipelex.storage.uri_invalid` and `pipelex.org.mismatch`, for a self-hosted runner's `auth.forbidden` whose `params.requirement` is `read_scope_under_caller`, and for `not_found`; `client.link_refused` for `unsupported_url`, `plain_http_refused` and `redirect_refused`; for `store_error` and `store_refused`, the reading of the store's status as for any storage answer (`runtime.unavailable` for a `408`, a `429` or a `5xx` other than `501`, `runtime.unsupported` for a `501`, `client.response_unreadable` naming any other status, a `401` or a `403` included), and `runtime.unavailable` when no status is known; `runtime.unavailable` for `timeout` and `network`; and `runtime.unexpected` otherwise. `uri` and `reason` name the reference and the failure, `status` the store's HTTP status when one was received, and `requirement` the `requirement` the resolve route's refusal names in its `params`, when it names one, which tells a self-hosted runner's scope refusal from any other `auth.forbidden`. |
130
+ | `StoredTextLoadError` | The fetch failure's own problem, as `ArtifactFetchError` gives it, when a stored text's bytes could not be read, a refusal of the resolve route included; the resolve route's own problem for `resolve_failed`, the route failing as a whole; `client.link_refused` for `unsupported_url`, a stored text whose `url` is neither a `pipelex-storage://` reference nor a `data:` URL, which is never fetched; and `client.response_unreadable` naming the run for `not_utf8` and `not_json_object`, bytes read that are not the value. `uri`, `path` and `reason` name the text, `status` the HTTP status received when one was, and `requirement` the `requirement` the resolve route's refusal of the reference names in its `params`, when it names one, which tells a self-hosted runner's scope refusal from any other `auth.forbidden`; `wireResults` carries the completed result as it was answered on the blocking fallback alone, where there is no run to read again, and is `undefined` elsewhere, where reading it again with `loadStoredTexts: false` gives it. |
131
131
  | `CodegenLockError` | `client.file_unreadable` naming `codegen.lock` for a lock that is malformed or tracks an unsafe path, `client.tool_outdated` naming this SDK for a lock newer than it reads, and `client.argument_invalid` naming `files` for a supplied tree holding an unsafe or duplicate path. It extends `ProblemError` rather than `PipelexRequestError`, since nothing was requested. |
132
132
  | `ExactJsonUnsupportedError` | `client.tool_outdated`, naming the JavaScript runtime: `parseExactJson` met a number past `Number.MAX_SAFE_INTEGER` on a runtime whose `JSON.parse` hands a reviver no source text ([exact-integers.md](./exact-integers.md)). It extends `ProblemError`; the client reports it as the `ApiResponseError` of an answer it cannot read, with this error as `cause`. |
133
133
 
package/docs/files.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # An organization's files
2
2
 
3
- A **file** is the record the hosted platform keeps of a stored object: a member's upload, a test file made for a method, or a file a run made that reached its result. The bytes stay where they were written, and a run, a form or an example still points at them by their `pipelex-storage://` address; the record adds what the bytes lack, the name a person sees, a kind, a type, a size and where the file came from. A file belongs to the organization: every role of it reads every file of it, as every role reads every run. The client reaches them on the hosted API's `/v1/files` routes, a run's files on `GET /v1/runs/{run_id}/files` and the copy into a method's draft on `POST /v1/methods/{method_id}/draft/files/from-file`, and the types are in `src/product-models.ts`. The platform's own contract is `platform/docs/files.md` in `pipelex-server`.
3
+ A **file** is the record the hosted platform keeps of a stored object: a member's upload, a test file made for a method, or a file a run made that reached its result. The bytes stay where they were written, and a run, a form or an example still points at them by their `pipelex-storage://` address; the record adds what the bytes lack, the name a person sees, a kind, a type, a size and where the file came from. A file belongs to the organization: every role of it reads every file of it, as every role reads every run. The client reaches them on the hosted API's `/v1/files` routes, the PDF preview of an Office file on `GET /v1/files/preview`, a run's files on `GET /v1/runs/{run_id}/files` and the copy into a method's draft on `POST /v1/methods/{method_id}/draft/files/from-file`, and the types are in `src/product-models.ts`. The platform's own contract is `platform/docs/files.md` in `pipelex-server`.
4
4
 
5
5
  The point of the list for a program is the `uri` on every row: a run's inputs take it as they take any address, so an agent or an app can find "the invoice uploaded this morning" and run a method on it without uploading it again.
6
6
 
@@ -45,6 +45,7 @@ A file read by its id or its address, renamed, or listed among a run's files is
45
45
  | `linkFiles(files)` | `POST /v1/files/links` | A `FileLinksResult`, `{ items }`: one `FileLink` per requested file, in order, each a link or an error. |
46
46
  | `requestFileArchive(request)` | `POST /v1/files/archives` | The `FileArchive`, `queued`. |
47
47
  | `getFileArchive(archiveId)` | `GET /v1/files/archives/{archive_id}` | The `FileArchive` as it stands, with a link to the zip once it is `ready`. |
48
+ | `getFilePreview(uri)` | `GET /v1/files/preview` | A `FilePreview`, discriminated on `state`: the PDF preview of an Office file, with a link to it once it is `ready`. |
48
49
  | `listRunFiles(runId, { limit?, cursor? })` | `GET /v1/runs/{run_id}/files` | One `RunFilesPage`: the run's inputs, outputs, intermediate files and web links, with `nextCursor`. |
49
50
  | `copyFileIntoDraft(methodId, { file_id, path, expected_updated_at? })` | `POST /v1/methods/{method_id}/draft/files/from-file` | A `DraftFileFromFileResult`, discriminated on `blob`. |
50
51
 
@@ -198,6 +199,45 @@ try {
198
199
 
199
200
  The other refusals of a request: `422` `request.invalid` for more than 1,000 ids listed or an id longer than one can be; `404` `pipelex.storage.not_found` for a file that is not the organization's, the `detail` naming up to five of them, or a run whose files hold nothing stored to zip; `404` `run.not_found` for a run that is not the organization's; `409` `run.not_finished`, `retry` `yes`, for a run whose files are not all recorded yet, which the same request clears a few seconds after the run ends, and a `409` with `retry` `no` for a selected file whose upload has not finished; and `503` `runtime.unavailable`, `retry` `yes`, when the archive could not be queued. Each is an `ApiResponseError` whose problem's `domain` and `retry` say what to do ([errors.md](./errors.md)).
200
201
 
202
+ ## The PDF preview of an Office file
203
+
204
+ A browser cannot draw a Word, Excel or PowerPoint file, so the platform keeps a PDF of it. `getFilePreview` asks where that PDF stands, naming the file by its `pipelex-storage://` address. The platform converts the files whose address ends in `docx`, `xlsx`, `pptx`, `doc`, `xls`, `ppt`, `odt`, `ods` or `odp`.
205
+
206
+ **The answer is always a `200`: branch on `state`.** The platform never waits on a conversion: the first ask queues one and answers `preparing` at once, and asking again queues nothing more, so polling is safe; the app polls for up to three minutes. The SDK has no waiting helper, since how long to wait and how to show it is the caller's.
207
+
208
+ ```ts
209
+ let preview = await client.getFilePreview(output.uri);
210
+ while (preview.state === "preparing") {
211
+ await new Promise((resolve) => setTimeout(resolve, 2000));
212
+ preview = await client.getFilePreview(output.uri);
213
+ }
214
+ if (preview.state === "ready") frame.src = preview.url;
215
+ else if (preview.state === "failed") console.warn(preview.failure.code, preview.failure.detail);
216
+ ```
217
+
218
+ A `FilePreview` carries all four members in every state, those its state does not fill `null`, and the type narrows on `state`, so a `ready` preview's `url` is a `string` and a `failed` one's `failure` is never `null`.
219
+
220
+ | `state` | What it means | The other members |
221
+ |---|---|---|
222
+ | `ready` | The PDF is there. | `url`, a presigned `GET` of the PDF signed fresh on each read, valid for fifteen minutes and answered `inline` under the file's name with its extension swapped to `.pdf`, and `url_expires_at`, the UTC instant it lapses. |
223
+ | `preparing` | A conversion is on its way: ask again shortly. | All `null`. |
224
+ | `failed` | The last conversion failed. | `failure`, a `FilePreviewFailure` `{ code, detail }`, `detail` being a sentence for a person. |
225
+ | `unavailable` | The file gets no preview: a type that is not converted, a file over 50 MB, or an address holding nothing. | All `null`. |
226
+
227
+ **A failure stands for a day** from the moment it failed: asking again within that day answers the same failure and queues nothing, and after it the next ask starts a new conversion. `FilePreviewFailureCode` names the codes the platform answers today, and `code` is typed open, so a code a later platform adds still reads.
228
+
229
+ | `failure.code` | Why | What happens next |
230
+ |---|---|---|
231
+ | `file_unreadable` | The converter could not open the file. A damaged file and one protected by a password cannot be told apart reliably, so the sentence names both. | The file will fail the same way. |
232
+ | `file_too_large` | The converter refused the file as over its input cap. | The file will fail the same way. |
233
+ | `conversion_too_slow` | The conversion ran out of the converter's two minutes, as a hostile or very large file does. | The file will almost certainly fail the same way. |
234
+ | `file_gone` | The bytes were deleted between the request and the conversion. | Nothing to retry. |
235
+ | `conversion_failed` | The worker's last attempt failed, or the job was not done within the hour it has; the cause is not the file's. | A later ask tries again once the failure's day has passed. |
236
+
237
+ **The link is a bearer capability.** Keep it out of logs and ask again for a fresh one rather than storing it. The SDK keeps it out of its own errors: an answer it cannot read, one whose `state` it does not know, a `ready` one without a non-empty `url` and a string `url_expires_at`, or a `failed` one whose `failure` is not a `code` and a `detail`, is an `ApiResponseError` of `client.response_unreadable` whose `responseBody` replaces every `url` member and every link's query with `[redacted]`, and which carries no `cause` ([errors.md](./errors.md)). The answer it hands back holds the four members and nothing else the platform may add.
238
+
239
+ A `uri` that is not a non-empty string is refused before any request with a `RequestArgumentError`. The platform answers `422` `pipelex.storage.uri_invalid` for a malformed address, `403` `pipelex.org.mismatch` for another organization's, `422` `request.invalid` for an address over 512 characters, and `503` `runtime.unavailable`, `retry` `yes`, when the conversion could not be queued, so the same request can be sent again. Each is an `ApiResponseError` whose problem's `domain` and `retry` say what to do.
240
+
201
241
  ## A run's files
202
242
 
203
243
  `listRunFiles` answers a `RunFilesPage` of what went in, what came out and what was made along the way, sorted by where each file sits in the run. Each `RunFileEntry` carries its `mark` (`input`, `final` or `intermediate`), the `input_name` of the run's input that held an input given by its address (`null` for an inline input and for every file the run made), its `uri` and the `FileRecord` a surface shows for it, `null` for an input no record holds.
@@ -238,17 +238,23 @@ The runtime keeps a large text out of a run's results. A `native.Text`, `native.
238
238
  { "url": "pipelex-storage://org/…/generated/3f9c…/value.md", "size": 182344, "mime_type": "text/markdown", "preview": "# Quarterly review…" }
239
239
  ```
240
240
 
241
- An inline value arrives as `{ "text": "…" }`, `{ "inner_html": "…" }` (its `css_class` beside it) or `{ "json_obj": { … } }`. **The result readers load every stored text of `main_stuff` before they return**, so it reaches the generated parser in the shape the method's concepts describe, the value field required: `getRunResult`, `waitForResult` and `startAndWaitForResult` resolve the references through the platform's bulk route, at most `BULK_RESOLVE_MAX_URIS` per request, fetch each signed link under the bounds `fetchArtifact` applies (100 MiB per text by default), and decode the bytes as UTF-8, a JSON value being the object they serialize. A text that cannot be loaded throws `StoredTextLoadError`, naming its `uri`, its `path` in `main_stuff` and a `reason` (`not_found`, `pipelex.org.mismatch`, `resolve_failed`, `unsupported_url`, `too_large`, `not_utf8`, `not_json_object`, …).
241
+ An inline value arrives as `{ "text": "…" }`, `{ "inner_html": "…" }` (its `css_class` beside it) or `{ "json_obj": { … } }`. **The result readers load every stored text of `main_stuff` before they return**, so it reaches the generated parser in the shape the method's concepts describe, the value field required: `getRunResult`, `waitForResult` and `startAndWaitForResult` resolve the references through the server's bulk route, at most `BULK_RESOLVE_MAX_URIS` per request, fetch each signed link under the bounds `fetchArtifact` applies, and decode the bytes as UTF-8, a JSON value being the object they serialize. A text that cannot be loaded throws `StoredTextLoadError`, naming its `uri`, its `path` in `main_stuff` and a `reason` (`not_found`, `pipelex.org.mismatch`, `resolve_failed`, `unsupported_url`, `too_large`, `total_limit_exceeded`, `concepts_missing`, `not_utf8`, `not_json_object`, …). The first text that fails stops every other read in flight.
242
242
 
243
- **Only the platform's references and `data:` URLs are loaded.** A `pipelex-storage://` reference is fetched through the link the platform signs for it, and a `data:` URL is decoded where it is. A stored text under any other URL, which a method's own code can put there, is refused as `unsupported_url` before anything is sent, so a method never has the SDK read a host the caller did not choose; `loadStoredTexts: false` hands it back as written.
243
+ **A load holds a bounded amount of memory.** Each text is capped by `maxBytes` (100 MiB by default) and the load as a whole by `maxTotalBytes` (256 MiB by default, `DEFAULT_STORED_TEXT_MAX_TOTAL_BYTES`), since every loaded value is held until the load ends, as bytes and then as a string that can take twice as many. Both caps are checked first against the `size` each reference states, before anything is sent, then counted as the bytes arrive; a load whose texts together cross `maxTotalBytes` throws `StoredTextLoadError` with the reason `total_limit_exceeded`, naming the text that crossed it. A `data:` URL's decoded size is bounded from its length before it is decoded. Pass larger caps to `loadStoredTexts(client, results, { maxBytes, maxTotalBytes })` on a result read with `loadStoredTexts: false`.
244
+
245
+ **A link about to expire is resolved again before its read.** The server signs each link for a short time, about fifteen minutes on the hosted platform and `STORAGE_LINK_TTL_SECONDS` on a self-hosted runner, and a load reads only a few texts at once, so a text waiting behind long reads could reach its turn with a stale link. A link within ten seconds of its `expires_at` when its read is about to start is resolved again first, as `downloadArtifacts` does.
246
+
247
+ **Only the platform's references and `data:` URLs are loaded.** A `pipelex-storage://` reference is fetched through the link the platform signs for it, and a `data:` URL is decoded where it is. A signed link on plain `http:` is fetched when it is on the origin of the client's configured base URL, which is what a self-hosted runner listening on plain http hands out, and refused as `plain_http_refused` on any other origin unless `allowHttp` is set ([artifact-download.md](./artifact-download.md)). A stored text under any other URL, which a method's own code can put there, is refused as `unsupported_url` before anything is sent, so a method never has the SDK read a host the caller did not choose; `loadStoredTexts: false` hands it back as written.
244
248
 
245
249
  **`waitForResult`'s `timeoutMs` bounds the load.** The wait reads the run's status without loading, then loads the completed result under the time it has left. A deadline that passes during the load throws `RunTimeoutError` saying the run completed and its stored texts did not load in time; `getRunResult` reads it again, and with `loadStoredTexts: false` it answers at once.
246
250
 
247
- **The blocking fallback never loses a completed result.** `startAndWaitForResult` on a bare runner, or falling back to one, holds the run's only copy in the `POST /v1/execute` answer, and a bare runner serves no bulk resolve route. A load that fails there throws `StoredTextLoadError` with that result, every stored text still its reference, on its `wireResults`; on every other path `wireResults` is `undefined`, since the run can be read again.
251
+ **The blocking fallback never loses a completed result.** `startAndWaitForResult` on a bare runner, or falling back to one, holds the run's only copy in the `POST /v1/execute` answer, and a runner older than pipelex-api 0.118.0 serves no bulk resolve route; the hosted platform and, from that version, a self-hosted runner serve it. A load that fails there throws `StoredTextLoadError` with that result, every stored text still its reference, on its `wireResults`; on every other path `wireResults` is `undefined`, since the run can be read again.
248
252
 
249
253
  **`loadStoredTexts: false` hands the wire shape back**, the references untouched, on all three readers. The generated `<Name>Wire` types describe that shape, the value field optional beside the reference's fields. `loadStoredTexts(client, results, options)`, exported, loads such a result later, and returns a new one, never changing the one it is given.
250
254
 
251
- **Which values are stored texts is decided by concept, never by URL or MIME type**, as the standard rules: a `Document` may be `text/plain` too. The concept at each path comes from the run's own artifacts: the main stuff's concept from `working_memory`, and its structure from the `output_form` node naming that concept (`mainStuffNode(results)` gives that node). A read whose `artifacts` selection left out `working_memory`, `output_form` or `input_form` reads those three again by the run's id only when `main_stuff` holds a value shaped like a stored text's reference, a `url` with no value field beside a `size` or a `preview`, which the runtime sets on every reference it stores; the result returned holds only what was asked for. An image or a document carries neither, so a narrowed read of an output made of them stays one request. A result that carries no working memory is returned as it is.
255
+ **Which values are stored texts is decided by concept, never by URL or MIME type**, as the standard rules: a `Document` may be `text/plain` too. The concept at each path comes from the run's own artifacts: the main stuff's concept from `working_memory`, and its structure from the `output_form` node naming that concept (`mainStuffNode(results)` gives that node). A read whose `artifacts` selection left out `working_memory`, `output_form` or `input_form` reads those three again by the run's id only when `main_stuff` holds a value shaped like a stored text's reference, a `url` with no value field beside a `size` or a `preview`, which the runtime sets on every reference it stores; the result returned holds only what was asked for. An image or a document carries neither, so a narrowed read of an output made of them stays one request.
256
+
257
+ **A result that does not say which values are texts is never handed on with references in it.** When the results carry no working memory naming the main stuff, or the main stuff's concept is the method's own and no `output_form` or `input_form` node describes it, nothing tells a stored text from any other value. Such a result is returned as it is when nothing in `main_stuff` is shaped like a stored text's reference; when something is, the readers and `loadStoredTexts` throw `StoredTextLoadError` with the reason `concepts_missing` (`STORED_TEXT_CONCEPTS_MISSING`), naming the first such value, rather than hand a reference on where the method's types promise a text. `lacksStoredTextConcepts(results)` tells that case. The runtime writes `output_form` after `main_stuff`, so a read can land in between: `waitForResult` and `startAndWaitForResult` then poll again a few times, at the wait's interval, before they throw; `getRunResult` throws at once, and reading it again a moment later finds the form written.
252
258
 
253
259
  ## `working_memory` — every named stuff of the run
254
260
 
@@ -370,13 +376,15 @@ For the run's totals, call `summarizeUsage(results)` rather than adding the reco
370
376
 
371
377
  A run that produces an image, a PDF or a document does not embed the bytes. The content inside `main_stuff` carries the file's durable reference — a `pipelex-storage://` URI, in the content's `url` — beside a `public_url` the storage provider signed when the run wrote the file. **That signed link is short-lived and must not be stored**: it expires on the provider's own schedule, so a link persisted in a database or rendered into a cached page stops working without warning, while the `pipelex-storage://` reference beside it is permanent and is what belongs in your records.
372
378
 
373
- To read the bytes, mint a fresh link from the reference:
379
+ To read the bytes, mint a fresh link from the reference. On the hosted platform, `resolveStorageUrl` mints one link:
374
380
 
375
381
  ```ts
376
382
  const resolved = await client.resolveStorageUrl({ uri: "pipelex-storage://..." });
377
383
  // { url, expires_at, content_type } — fetch `url` now; re-resolve for the next reader.
378
384
  ```
379
385
 
380
- The same rule holds in a browser: resolve on the server, hand the client a link it uses immediately, and never let a presigned URL outlive the request it was minted for.
386
+ `resolveStorageUrl` calls `POST /v1/resolve-storage-url`, which only the hosted platform serves: a self-hosted runner, from pipelex-api 0.118.0, serves the bulk route alone, so a caller of one mints its link with `resolveArtifacts([uri])`, a one-item list.
387
+
388
+ The same rule holds in a browser: resolve on the server, hand the client a link it uses immediately, and never let a signed link outlive the request it was minted for.
381
389
 
382
390
  Bringing the files down is the SDK's job, not something to re-implement over `resolveStorageUrl`: `locateArtifacts` lists a result's references without touching the network, each with the paths of the fields it fills (`collectArtifacts` gives the references alone), `resolveArtifacts` mints fresh links for a whole list in one bulk call, `fetchArtifact` streams one file within safe bounds, and `downloadArtifacts` saves everything a run produced under a directory, each file named after the field it fills, by run id even days later. They all share one page, [`artifact-download.md`](./artifact-download.md). The upload direction — turning local files into `pipelex-storage://` references before a run — is the mirror of this and has its own page too, [`input-preparation.md`](./input-preparation.md).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipelex/sdk",
3
- "version": "0.69.4",
3
+ "version": "0.71.0",
4
4
  "description": "TypeScript SDK for the Pipelex hosted API — execute methods, manage runs, and call the product surface.",
5
5
  "license": "MIT",
6
6
  "repository": {