@pipelex/sdk 0.72.0 → 0.74.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/README.md +1 -1
- package/dist/artifacts.d.ts +24 -1
- package/dist/artifacts.js +95 -15
- package/dist/artifacts.js.map +1 -1
- package/dist/cli/run.d.ts +2 -0
- package/dist/cli/run.js +13 -5
- package/dist/cli/run.js.map +1 -1
- package/dist/cli/script.d.ts +1 -1
- package/dist/client.d.ts +48 -21
- package/dist/client.js +100 -32
- package/dist/client.js.map +1 -1
- package/dist/errors.d.ts +13 -8
- package/dist/errors.js +6 -4
- package/dist/errors.js.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/product-models.d.ts +55 -22
- package/dist/run-artifact-links.d.ts +73 -0
- package/dist/run-artifact-links.js +167 -0
- package/dist/run-artifact-links.js.map +1 -0
- package/dist/runs.d.ts +53 -3
- package/dist/runs.js +7 -4
- package/dist/runs.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/docs/architecture.md +1 -1
- package/docs/cli.md +1 -1
- package/docs/errors.md +2 -2
- package/docs/organization-branding.md +33 -16
- package/docs/run-results.md +32 -1
- package/package.json +1 -1
package/dist/runs.d.ts
CHANGED
|
@@ -454,6 +454,26 @@ export type RunResultArtifact = (typeof RUN_RESULT_ARTIFACTS)[number];
|
|
|
454
454
|
* not an array at all is a `TypeError`, a bug in the calling code that carries no problem.
|
|
455
455
|
*/
|
|
456
456
|
export declare function assertArtifactSelection(artifacts: readonly string[] | undefined): void;
|
|
457
|
+
/**
|
|
458
|
+
* Where a result artifact handed back by reference can be fetched — one entry of
|
|
459
|
+
* `RunResults.artifact_links`. The platform hands an artifact back this way when, inline, it would
|
|
460
|
+
* take the results body past the API Gateway's limit.
|
|
461
|
+
*/
|
|
462
|
+
export interface RunArtifactLink {
|
|
463
|
+
/**
|
|
464
|
+
* A GET of the artifact's stored file, signed for about fifteen minutes. The file is the one the
|
|
465
|
+
* runner wrote: the usage envelope `{ tokens_usages, usage_assembly_error }` for `tokens_usages`,
|
|
466
|
+
* every other artifact its own document, with the links inside it as stored, never re-signed.
|
|
467
|
+
*/
|
|
468
|
+
url: string;
|
|
469
|
+
/** UTC expiry of `url`, ISO 8601. */
|
|
470
|
+
expires_at: string;
|
|
471
|
+
}
|
|
472
|
+
/**
|
|
473
|
+
* The artifacts a results read handed back by reference, keyed by their name as `artifacts` names
|
|
474
|
+
* them — `RunResults.artifact_links`.
|
|
475
|
+
*/
|
|
476
|
+
export type RunArtifactLinks = Partial<Record<RunResultArtifact, RunArtifactLink>>;
|
|
457
477
|
/** Whether a results read with this selection carries `main_stuff` — no selection reads all. */
|
|
458
478
|
export declare function selectionIncludesMainStuff(artifacts: readonly RunResultArtifact[] | undefined): boolean;
|
|
459
479
|
/** `getRunResult` options. */
|
|
@@ -479,6 +499,17 @@ export interface GetRunResultOptions {
|
|
|
479
499
|
* `docs/run-results.md`, "Stored texts".
|
|
480
500
|
*/
|
|
481
501
|
loadStoredTexts?: boolean;
|
|
502
|
+
/**
|
|
503
|
+
* Fetch every artifact the platform handed back by reference (`RunResults.artifact_links`) and
|
|
504
|
+
* put it in its field before handing the result back: `true`, the default, so a referenced
|
|
505
|
+
* artifact reads as its content. `false` hands the links back untouched, each referenced field
|
|
506
|
+
* `null` beside its entry in `artifact_links`, for a caller that must not pull a large file
|
|
507
|
+
* through itself, such as a server whose responses are capped, which passes the link on instead.
|
|
508
|
+
* A completed read asked for `main_stuff` then throws `MissingMainStuffError` only when
|
|
509
|
+
* `main_stuff` is `null` with no link. See `docs/run-results.md`, "Artifacts handed back by
|
|
510
|
+
* reference".
|
|
511
|
+
*/
|
|
512
|
+
followArtifactLinks?: boolean;
|
|
482
513
|
}
|
|
483
514
|
/**
|
|
484
515
|
* Result artifacts for a completed run — `GET /v1/runs/{pipeline_run_id}/results`.
|
|
@@ -607,6 +638,17 @@ export interface RunResults {
|
|
|
607
638
|
* `tokens_usages` null, so a caller that cares must branch on this, not on the list.
|
|
608
639
|
*/
|
|
609
640
|
usage_assembly_error?: string | null;
|
|
641
|
+
/**
|
|
642
|
+
* The artifacts the platform handed back by reference, keyed by name, each a signed link to its
|
|
643
|
+
* stored file. Present only when the read handed some back, because inline they would have taken
|
|
644
|
+
* the body past the API Gateway's limit; each such artifact's own field is then `null`, both
|
|
645
|
+
* `tokens_usages` and `usage_assembly_error` for the usage envelope. A `null` field with no entry
|
|
646
|
+
* here still means the artifact was not written. The result readers follow these links by
|
|
647
|
+
* default (`followArtifactLinks`) and drop each entry they follow, so the key is absent from a
|
|
648
|
+
* result they filled; `followArtifactLinks(results)` fills a result read with
|
|
649
|
+
* `followArtifactLinks: false` later. See `docs/run-results.md`.
|
|
650
|
+
*/
|
|
651
|
+
artifact_links?: RunArtifactLinks;
|
|
610
652
|
}
|
|
611
653
|
/**
|
|
612
654
|
* Single-shot result lookup outcome, discriminated on `state`:
|
|
@@ -683,6 +725,14 @@ export interface WaitForResultOptions {
|
|
|
683
725
|
* again a few times before the wait throws `StoredTextLoadError` (`concepts_missing`).
|
|
684
726
|
*/
|
|
685
727
|
loadStoredTexts?: boolean;
|
|
728
|
+
/**
|
|
729
|
+
* Fetch the artifacts the completed result handed back by reference into their fields —
|
|
730
|
+
* `getRunResult`'s `followArtifactLinks`, `true` by default. The links are followed after the
|
|
731
|
+
* status read, under the wait's `timeoutMs` like the stored-text load, and before it, so a
|
|
732
|
+
* referenced `working_memory` tells the load which values are texts. `false` returns the links
|
|
733
|
+
* untouched.
|
|
734
|
+
*/
|
|
735
|
+
followArtifactLinks?: boolean;
|
|
686
736
|
}
|
|
687
737
|
/**
|
|
688
738
|
* `startAndWaitForResult`'s second argument: the wait's own options, plus the moment the run
|
|
@@ -720,9 +770,9 @@ export declare const MAX_CONCEPTS_MISSING_POLLS = 5;
|
|
|
720
770
|
/** A single result lookup — the primitive the poll loop drives. */
|
|
721
771
|
export type FetchResultOnce = (runId: string, options?: GetRunResultOptions) => Promise<RunResultState>;
|
|
722
772
|
/**
|
|
723
|
-
* The load of a completed result
|
|
724
|
-
* answers completed, under the wait's own deadline, so a timeout
|
|
725
|
-
* from one whose texts did not load in time.
|
|
773
|
+
* The load of a completed result — its links followed and its stored texts loaded — what the poll
|
|
774
|
+
* loop calls once a status read answers completed, under the wait's own deadline, so a timeout
|
|
775
|
+
* tells a run that did not finish from one whose artifacts or texts did not load in time.
|
|
726
776
|
*/
|
|
727
777
|
export type LoadCompletedResult = (result: RunResults, options: {
|
|
728
778
|
signal: AbortSignal;
|
package/dist/runs.js
CHANGED
|
@@ -327,8 +327,9 @@ export async function pollUntilResult(fetchOnce, runId, options = {}, fetchProgr
|
|
|
327
327
|
const notFinished = () => completedSeen
|
|
328
328
|
? completedButNotLoaded()
|
|
329
329
|
: new RunTimeoutError(`Run ${runId} did not reach a terminal state within ${timeoutMs}ms.`, runId, timeoutMs);
|
|
330
|
-
const completedButNotLoaded = () => new RunTimeoutError(`Run ${runId} completed, but its
|
|
331
|
-
|
|
330
|
+
const completedButNotLoaded = () => new RunTimeoutError(`Run ${runId} completed, but its artifacts handed back by reference or its stored texts ` +
|
|
331
|
+
`did not load within ${timeoutMs}ms; read it again with getRunResult, or with ` +
|
|
332
|
+
"followArtifactLinks: false and loadStoredTexts: false for the wire shape.", runId, timeoutMs);
|
|
332
333
|
try {
|
|
333
334
|
let attempt = 0;
|
|
334
335
|
const { onProgress } = options;
|
|
@@ -344,15 +345,17 @@ export async function pollUntilResult(fetchOnce, runId, options = {}, fetchProgr
|
|
|
344
345
|
const elapsedMs = Date.now() - startedAt;
|
|
345
346
|
if (elapsedMs >= timeoutMs || deadline.signal.aborted)
|
|
346
347
|
throw notFinished();
|
|
347
|
-
// With `loadCompleted`, the status read
|
|
348
|
-
// says truthfully whether the run had completed.
|
|
348
|
+
// With `loadCompleted`, the status read neither follows links nor loads: both run below, so
|
|
349
|
+
// a timeout says truthfully whether the run had completed.
|
|
349
350
|
const loadStoredTexts = loadCompleted === undefined ? options.loadStoredTexts : false;
|
|
351
|
+
const followArtifactLinks = loadCompleted === undefined ? options.followArtifactLinks : false;
|
|
350
352
|
let state;
|
|
351
353
|
try {
|
|
352
354
|
state = await fetchOnce(runId, {
|
|
353
355
|
signal,
|
|
354
356
|
...(options.artifacts === undefined ? {} : { artifacts: options.artifacts }),
|
|
355
357
|
...(loadStoredTexts === undefined ? {} : { loadStoredTexts }),
|
|
358
|
+
...(followArtifactLinks === undefined ? {} : { followArtifactLinks }),
|
|
356
359
|
});
|
|
357
360
|
}
|
|
358
361
|
catch (error) {
|
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,EACf,mBAAmB,GACpB,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,IA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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"}
|
package/dist/version.d.ts
CHANGED
package/dist/version.js
CHANGED
package/docs/architecture.md
CHANGED
|
@@ -167,7 +167,7 @@ The hosted catalog/account routes the webapp drives. All ride the same `{base}/v
|
|
|
167
167
|
- **Method showcases:** `freezeMethodShowcase` and `listMethodShowcases`, on `/v1/methods/{id}/showcases`, `getMethodShowcase` and `withdrawMethodShowcase`, on `/v1/methods/{id}/showcases/{showcase_id}`, and `listMethodVersionShowcases` and `getMethodVersionShowcase`, on `/v1/methods/{id}/versions/{n}/showcases[/{showcase_id}]`. A showcase is a completed run frozen with a private copy of its files; the freeze answers a verdict discriminated on `outcome`, read open on `reason`, the lists are read entry by entry as a layout list is, and a detail is read whole with `parseExactJson` and any error's signed links redacted. The freeze's and the withdrawal's `idempotencyKey` goes through the same `idempotencyKeyOf` check. See [method-showcases.md](./method-showcases.md).
|
|
168
168
|
- **Method layouts:** `storeMethodLayout` and `listMethodLayouts`, on `/v1/methods/{id}/versions/{n}/layouts`, `listMethodDraftLayouts`, on `/v1/methods/{id}/draft/layouts`, `setMethodLayoutsOff`, on `/v1/methods/{id}/layouts-off`, and the `layouts` view of `validate`. A layout is a data file a producer designed for one pipe of a published version, which the platform stores keyed by the content it was designed for, `tree_digest`, `pipe_ref`, `catalog` and `prompt_hash`, a write of the same identity replacing it, and carries on every validate by `method_id` that names `layouts` and resolves the same tree. The write takes a bare catalog id and a positive integer version, refuses a layout or a provenance that is not an object before sending, and sends the closed body alone, its members listed once in `method-layouts.ts` (`LAYOUT_INPUT_MEMBERS`, `PROVENANCE_INPUT_MEMBERS`) and held to the input interfaces by `satisfies`, `sample_json` and each optional provenance member that is `null` or omitted left out; its last argument takes an `idempotencyKey` (`MethodLayoutWriteOptions`), sent as the `Idempotency-Key` header through the same `idempotencyKeyOf` check a start and a copy use, since a write sent again without one runs again, restamping the layout and applying the bound again; the platform's refusals (`422` `request.invalid` naming the member, `tree_digest` among them for a tree that is not the version's, `403` `auth.forbidden` for a runner, `404` `pipelex.catalog.not_found` naming the method or the version, `409` `pipelex.catalog.being_deleted`) are `ApiResponseError`s. One reader in `method-layouts.ts`, `readMethodLayout`, holds the write's answer and each entry of a report's `layouts` to the same rule, the six identity and payload members strings and the provenance an object with a string `producer` and `model`, its `seed` and `style` read as `null` and its `repair_rounds` as `0` when they do not fit; an answer breaking it is one the SDK cannot read, and an entry breaking it is left out of the report, a list left with none removed, so `layouts` is absent or holds at least one layout. `listMethodLayouts` reads the same list with no dry run, its `items` read entry by entry by that rule, and `setMethodLayoutsOff` writes the whole list of switched-off catalogs, an array or a `RequestArgumentError` before sending, its idempotency key sent as the write's is. See [method-layouts.md](./method-layouts.md).
|
|
169
169
|
- **Organizations:** `listMemberships`, `createOrganization`, `renameOrganization` (`PATCH`). Each membership carries the caller's `role_in_org`, an `OrgRole` (`admin`, `member` or `runner`) read open: a role a later platform adds arrives as its raw string, so a `switch` over it says what an unknown role does. The role is for display; what it may do is the platform's to decide, and a call refused to the caller's role is an `ApiResponseError`. The org "switch" is a WorkOS-session op (`/api/active-org`), not a `/v1` route — out of SDK scope.
|
|
170
|
-
- **Organization branding:** `getBranding` (`GET /v1/branding`, any role, web session or API key) and `updateOrganizationBranding` (`PATCH /v1/organizations/{org_id}/branding`, a write by the `admin` or the `member` role, never a `runner`) answer the same `OrganizationBranding`: the organization's name, its light and dark colour sets (`BrandingColors`), its square and wide logos (`LogoDescriptor`), its
|
|
170
|
+
- **Organization branding:** `getBranding` (`GET /v1/branding`, any role, web session or API key) and `updateOrganizationBranding` (`PATCH /v1/organizations/{org_id}/branding`, a write by the `admin` or the `member` role, never a `runner`) answer the same `OrganizationBranding`: the organization's name, its light and dark colour sets (`BrandingColors`), its square and wide logos and their dark variants (`LogoDescriptor`), its `preset`, `shell` and `typeface`, its `design_system` (`BrandingDesignSystem`, a DTCG token document), and its read-only `white_label` entitlement, each of the newer members read as `null`, and the entitlement as `false`, from a platform that predates them. The write's `OrganizationBrandingUpdate` sets a key given a value, clears a key given `null` and keeps a key left out; a refused field is named by its `location.field`, a colour by its dotted key, a logo by its slot in `ApiResponseError.errors` with a `LogoRefusalCode` when the platform measured it. See [organization-branding.md](./organization-branding.md).
|
|
171
171
|
- **Caller webhooks:** `listRunWebhookDeliveries`, `getRunWebhookDelivery` and `replayRunWebhookDelivery`, on `/v1/runs/{id}/webhook-deliveries`, `/v1/runs/{id}/webhook-deliveries/{delivery_id}` and its `/replay`, read a run's delivery log and send a settled delivery again, any member by web session or API key, the replay taking an `idempotencyKey` under which the platform stores its answer; `getWebhookSecret`, on `GET /v1/organizations/{org_id}/webhook-secret`, and `rotateWebhookSecret`, on `POST /v1/organizations/{org_id}/webhook-secret/rotate`, read and rotate the organization's signing secret, an admin's routes from a web session only, the rotation taking an `idempotencyKey` the platform never replays. See [webhooks.md](./webhooks.md).
|
|
172
172
|
- **Billing:** `getSubscription`, `listPlans`, `listInvoices`, `createCheckout`, `changePlan` (409 `conflict` ⇒ no subscription), `getBillingPortal` (409 `conflict` ⇒ no subscription).
|
|
173
173
|
- **Pipelex API keys (`plx_sk_…`):** `listPipelexApiKeys`, `createPipelexApiKey` (409 `pipelex_api_key_limit_reached`), `revokePipelexApiKey`, `rotatePipelexApiKey`. The plaintext `api_key` is returned once, on create/rotate.
|
package/docs/cli.md
CHANGED
|
@@ -79,7 +79,7 @@ Every error goes to stderr, its first line `Error: <sentence>` and the lines und
|
|
|
79
79
|
- **A value at a file input that is no file**: `Error: the inputs hold a value at a file input that cannot be read as a file.`, then `Reason: <the SDK's message>` and the forms a file input takes. An unreadable local path reads `Error: Local file cannot be read: "<path>" (<reason>).`
|
|
80
80
|
- **An unreachable API**: `Error: could not reach the Pipelex API at <base URL> (<code>).`
|
|
81
81
|
- **A failed upload** of a file the inputs name: `Error: the upload of "<file>" failed (status <n>).`, the status left out when no answer came back, then `Reason: <the SDK's message>`, which says what the status means for an upload (a file past the size limit, a deployment without file upload, a credential refused), and `Next step:` and `Request id:` when the API's answer carries them. It covers the SDK's `RejectedAssetError`, `UploadAuthenticationError`, `UnsupportedUploadCapabilityError` and `UploadTransportError`, each of which names the file it was sending. It exits `1`, and no run starts.
|
|
82
|
-
- **A wait that fails once the run exists**, on an unreachable API, a refused poll or an answer the command cannot read: the failure's own lines, then `Run <id> may still be going on the server, so do not start it again.`, since the run was started and nothing says it ended. A run that ended in failure (`RunFailedError`), a run that ended without its main output (`MissingMainStuffError`) and a run that completed with a stored text the command could not load (`StoredTextLoadError`) get no such line. It exits `1`.
|
|
82
|
+
- **A wait that fails once the run exists**, on an unreachable API, a refused poll or an answer the command cannot read: the failure's own lines, then `Run <id> may still be going on the server, so do not start it again.`, since the run was started and nothing says it ended. A run that ended in failure (`RunFailedError`), a run that ended without its main output (`MissingMainStuffError`) and a run that completed with a stored text the command could not load (`StoredTextLoadError`) get no such line. A run that completed with an output handed back by reference that the command could not fetch (`ArtifactFetchError`, an expired link or an unreachable store) gets `Run <id> completed, but its output could not be fetched: read its results again rather than start it again.` instead. It exits `1`.
|
|
83
83
|
- **A completed run whose stored text could not be loaded** (`StoredTextLoadError`): `Error: the run completed, but the stored text at <path> in its output could not be loaded (<reason>).`, the path being where the text sits in the main output (`$`, `$.items[2]`) and the reason the error's, then `Reason: <the problem's sentence>` and `Next step:` when the problem advises one. The run is over, so nothing says it may still be going. When the error carries the run's answer as `wireResults`, which only a bare runner's blocking run does since nothing else keeps a copy of it, the command first prints that output on stdout as it prints a result, each stored text still its reference `{url, size, mime_type, preview}`, and adds `The output above is the run's answer, each stored text still its reference.` It exits `1`.
|
|
84
84
|
- **A start whose outcome is unknown**: once the command has reached a request that may create a run, the start or a bare runner's blocking execute, and before the API names the run, a failure the SDK reads as one that may have started a run, its error's problem having the `retry` `outcome_unknown` ([`errors.md`](errors.md#a-run-that-may-have-started--outcome_unknown)), adds `A run may have started on the server without the command learning of it, so check before starting it again.` under its own lines. That is a problem document from the platform whose own `retry` says so, an answer the command cannot read, and, from the hosted edge, a `408`, which a proxy in front of the platform may answer for a request it forwarded, any `5xx` but a `501`, a request the gateway cut off, and a transport failure that does not prove the request never left, such as an answer lost to a time limit or to a connection that closed once the request had left. Timing plays no part: a `503` or `504` that came back at once reads the same as one at the gateway's limit, since the gateway can answer one after the runner has started the run. Any other answer from the API, and a transport failure that proves the request never left, add nothing, since no run was created. Such a failure names a step of the connection's set-up, which no request follows: an unknown host (`ENOTFOUND`, `EAI_AGAIN`), a refused connection (`ECONNREFUSED`, from every address the host has included), no route to the host or to the network (`EHOSTUNREACH`, `ENETUNREACH`, from the `connect` call), the connection given up by the system's or undici's own connect time limit (`ETIMEDOUT` from `connect`, `UND_ERR_CONNECT_TIMEOUT`), a server certificate the TLS handshake refused (`CERT_HAS_EXPIRED`, `DEPTH_ZERO_SELF_SIGNED_CERT`, `ERR_TLS_CERT_ALTNAME_INVALID` and the other verdicts of the certificate's check Node names, then `UNSPECIFIED`, its code for every verdict it does not name, such as an unhandled critical extension). Both commands read the same failures the same way, each through its SDK's member, so where one command cannot tell whether the request had left, both take the reading that a run may exist: a connection dropped during the TLS handshake, which Node reports as the reset (`ECONNRESET`) of a connection dropped once the request had left, and another TLS failure. A host that drops packets is a connection that never comes, and each command meets its transport's connect time limit first, which proves nothing was sent: here undici's own, ten seconds for the TCP connect and the TLS handshake together (`UND_ERR_CONNECT_TIMEOUT`), which runs out before the SDK's own time limit (`ABORT_TIMEOUT`), at least 30 seconds on every request the command sends; in the Python command, httpx's connect timeout, which the one time limit the Python client passes bounds. Fetch cannot say whether the SDK's own time limit ran out before the connection was made or once the request had left, so the command reads it as an answer lost to a time limit; with Node's own dispatcher it is one, since undici gives up a connection that does not come sooner. It exits `1`.
|
|
85
85
|
|
package/docs/errors.md
CHANGED
|
@@ -126,7 +126,7 @@ 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`, 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`. |
|
|
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`; `client.response_unreadable` naming the store's status for `unreadable`, a result artifact handed back by reference (`artifact_links`) whose file is not the artifact's JSON, its `uri` then `artifact_links.<name>` and never the signed link; 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
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`. |
|
|
@@ -189,7 +189,7 @@ A malformed version suffix (`@0`, `@03`, `@Draft`, two suffixes) is a `422` `req
|
|
|
189
189
|
|
|
190
190
|
### The branding codes
|
|
191
191
|
|
|
192
|
-
A refused branding write (`updateOrganizationBranding`) is one problem naming each field it refused by its `location.field`: a colour by its dotted key, such as `colors.action`, and a
|
|
192
|
+
A refused branding write (`updateOrganizationBranding`) is one problem naming each field it refused by its `location.field`: a colour by its dotted key, such as `colors.action`, and a preset, a shell, a typeface or the design system by its key. When it refuses one such field alone the problem itself names it; when it refuses several, each has one item of its `errors`. A logo the platform read and refused is one `422` `request.unsupported` for every logo of the body, naming the first broken rule by its slot's key, such as `square_logo` or `dark_wide_logo`, in `location.field` and `params.field`, and the rule in `params.reason`, one the exported type `LogoRefusalCode` names (`logo_too_large`, `logo_not_square`, `logo_too_small`, …); when several rules are broken, `errors` holds one item per rule, each with its own slot and reason. Its `detail` is the code's general sentence, so a settings screen writes the sentence under a slot from the reason. [organization-branding.md](./organization-branding.md#a-refused-logo) lists every reason with the sentence the platform logs for it.
|
|
193
193
|
|
|
194
194
|
### The files codes
|
|
195
195
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# An organization's branding
|
|
2
2
|
|
|
3
|
-
An organization may carry a brand
|
|
3
|
+
An organization may carry a brand, its branding kit: a square logo and a wide one, each with an optional dark-mode variant, two colour sets of three colours, the light set and an optional dark one, a preset, a page shell, a typeface and a design system. The webapp shows it on the organization's menu and on the apps of its methods, and an app scaffolded from the method-app template reads it with its API key to wear the same brand. A personal workspace never has one. Beside the brand, the branding says whether the organization holds the white-label entitlement, which Pipelex staff grant. The client reaches it on two routes of the hosted API, and the types are in `src/product-models.ts`.
|
|
4
4
|
|
|
5
5
|
## The methods
|
|
6
6
|
|
|
@@ -21,17 +21,25 @@ Both answer the same shape, so a client holds one type whichever it called. `get
|
|
|
21
21
|
| `dark_colors` | `BrandingColors` | The dark colour set, used in dark mode only. |
|
|
22
22
|
| `square_logo` | `LogoDescriptor \| null` | The square logo, for the organization menu and small headers. |
|
|
23
23
|
| `wide_logo` | `LogoDescriptor \| null` | The wide logo, for an app's header. |
|
|
24
|
-
| `
|
|
24
|
+
| `dark_square_logo` | `LogoDescriptor \| null` | The square logo for dark mode; `null` falls back to `square_logo`. |
|
|
25
|
+
| `dark_wide_logo` | `LogoDescriptor \| null` | The wide logo for dark mode; `null` falls back to `wide_logo`. |
|
|
26
|
+
| `preset` | `string \| null` | The id of the preset the team started its design system from, `null` when not set. |
|
|
27
|
+
| `shell` | `string \| null` | The id of the page shell the team's method apps wear, `null` when not set. |
|
|
25
28
|
| `typeface` | `string \| null` | The id of the typeface the team sets its apps' text in, `null` when not set. |
|
|
29
|
+
| `design_system` | `BrandingDesignSystem \| null` | The team's design system, a DTCG token document, `null` when there is none. |
|
|
26
30
|
| `white_label` | `boolean` | Whether the organization holds the white-label entitlement. |
|
|
27
31
|
|
|
28
32
|
A `BrandingColors` always carries its three keys, each `#rrggbb` in lower case or `null` when not set: `action` is the button colour, `accent` the accent colour and `header` the header band's colour. A dark colour that is `null` falls back to the light colour of the same role, and a light one that is `null` to Pipelex's own palette for that theme. The `@pipelex/mthds-form/brand` entry turns a colour set into the roles a page paints with (`resolveDarkSeeds`, then `deriveBrandRoles` once per theme).
|
|
29
33
|
|
|
30
|
-
**The
|
|
34
|
+
**The preset, the shell and the typeface.** `preset` is the id of the preset the team started its design system from, such as `corporate`; `shell` is the id of the page shell its method apps wear, such as `masthead`; `typeface` is the id of the typeface their text is set in, such as `manrope`. Both themes share them. The platform holds each to a shape, one to 32 lower-case letters, digits and hyphens (`^[a-z0-9-]{1,32}$`), and never to a list: the lists of presets, shells and typefaces live with the application that offers them, so a client reads an id it does not know as unset, and a preset or a shell added to that list needs no new SDK. None counts towards whether an app is branded, which stays a logo or a colour in either theme, since a branded app trades Pipelex's strip for the team's band and a preset alone would leave that band carrying nothing of the team's. The preset replaced the app style the branding carried before: the platform no longer answers `style`, and refuses a write naming it.
|
|
35
|
+
|
|
36
|
+
**The dark logos.** `dark_square_logo` and `dark_wide_logo` are the variants of the square and the wide logo a client draws in dark mode. A dark logo that is `null` falls back to the light logo of its slot, so a client draws the dark one in dark mode when there is one and the light one otherwise.
|
|
37
|
+
|
|
38
|
+
**The design system.** `design_system` is the team's DTCG token document (the Design Tokens Community Group format), typed `BrandingDesignSystem` (`Record<string, unknown>`): the palette in both themes, typography, shape, depth, spacing, motion and the component treatments, or `null` when there is none. The application that writes it owns its format; the platform stores it as it was written, never reads a token, and checks only a shape it can check cheaply: a JSON object of at most 64 KiB of compact JSON, nested at most 32 objects deep, in which every member whose name does not start with `$` is a token or a group, so an object; an object holding `$value` is a token and holds no token or group of its own; a name holds no `{`, `}` or `.`, which DTCG reserves for references; and `$type` and `$description` are strings and `$extensions` an object wherever they appear. What a `$value` holds, which `$type` values exist and whether a reference resolves are the application's to check.
|
|
31
39
|
|
|
32
40
|
**The white-label entitlement.** `white_label` is `true` when the organization holds the white-label option: its method apps show no Pipelex mark anywhere a runner looks, whether or not the team set a brand. It is `false` for every other organization, a personal workspace included. It is not part of the brand the team sets: Pipelex staff grant and withdraw it, no branding write changes it, and `OrganizationBrandingUpdate` has no such key.
|
|
33
41
|
|
|
34
|
-
**A branding written before these fields existed** answers `
|
|
42
|
+
**A branding written before these fields existed** answers the dark logos, `preset`, `shell`, `typeface` and `design_system` `null` and `white_label` `false`. The client reads an answer that leaves any of them out, as a platform that predates them sends, the same way, so each is what the type declares, never `undefined`. It also reads `preset`, `shell` and `typeface` as `null` when the answer sends a value that is not a string, `design_system` as `null` when it is not a JSON object, and `white_label` as `false` unless it is `true`.
|
|
35
43
|
|
|
36
44
|
A `LogoDescriptor` is what the platform recorded when it accepted the logo:
|
|
37
45
|
|
|
@@ -48,20 +56,25 @@ Every key of an `OrganizationBrandingUpdate` is optional: a value sets it, `null
|
|
|
48
56
|
|
|
49
57
|
```ts
|
|
50
58
|
// Set the button and accent colours, keep the header colour, clear the whole dark set,
|
|
51
|
-
// attach a square logo, remove the wide one, choose a
|
|
59
|
+
// attach a square logo and its dark variant, remove the wide one, choose a preset and a shell,
|
|
60
|
+
// clear the typeface and replace the design system.
|
|
52
61
|
const branding = await client.updateOrganizationBranding(orgId, {
|
|
53
62
|
colors: { action: "#14213d", accent: "#fca311" },
|
|
54
63
|
dark_colors: null,
|
|
55
64
|
square_logo: "pipelex-storage://<org_id>/assets/<file>.png",
|
|
65
|
+
dark_square_logo: "pipelex-storage://<org_id>/assets/<dark-file>.png",
|
|
56
66
|
wide_logo: null,
|
|
57
|
-
|
|
67
|
+
preset: "corporate",
|
|
68
|
+
shell: "masthead",
|
|
58
69
|
typeface: null,
|
|
70
|
+
design_system: designSystem, // a DTCG token document
|
|
59
71
|
});
|
|
60
72
|
```
|
|
61
73
|
|
|
62
74
|
- **Colours** (`BrandingColorsUpdate`): each of `action`, `accent` and `header` takes `#rrggbb` in either case, stored in lower case. `colors: null` or `dark_colors: null` clears all three colours of that set.
|
|
63
|
-
- **Logos**: `square_logo` and `
|
|
64
|
-
- **
|
|
75
|
+
- **Logos**: `square_logo`, `wide_logo`, `dark_square_logo` and `dark_wide_logo` take one of three values, a dark logo held to its slot's rules as the light one is. The `pipelex-storage://` URI of a file the organization uploaded on its own through `requestUploadGrant` or `upload` sets a new logo: the platform reads and measures it, then writes its own copy under `branding/`, and the answer's `uri` names that copy, never the upload, which the platform leaves as it is. The `uri` the branding answers for that slot, sent back unchanged, leaves the slot out of the write: nothing is read, and the slot keeps whatever logo the branding names when the write lands, so a save that resends the logo it read never puts back one a concurrent save replaced. `null` removes the logo. Any other URI is refused as `logo_not_an_upload`: a run's or a method's file, a `branding/` copy the slot no longer holds, and another slot's logo too, so a logo cannot move between slots by its URI; upload it again for the other slot instead. Once the write has landed, the platform erases the `branding/` copy it replaced or cleared.
|
|
76
|
+
- **Preset, shell and typeface**: `preset`, `shell` and `typeface` each take an id of one to 32 lower-case letters, digits and hyphens, stored as it is whether or not such a preset, shell or typeface exists, or `null` to clear it. Writing one leaves the colours, the logos and the others as they are. There is no `white_label` key, nor a `style` one: the platform refuses a body naming either as it refuses any key it does not know.
|
|
77
|
+
- **Design system**: `design_system` takes a DTCG token document, which replaces the stored one whole, or `null` to remove it. One of another shape than the one [above](#the-branding) is refused naming `design_system`, and nothing at all is written. The platform writes the rest of the branding first and the design system after it, so a `503` on that second write leaves the rest landed: the same `input` sent again is safe.
|
|
65
78
|
- **The rules a logo meets**: at most 1 MiB; a PNG, JPEG, WebP or SVG image by its bytes, whatever type the upload declared, an SVG in UTF-8 or, behind its byte-order mark, UTF-16; a still image, so never an animated PNG (an APNG) or an animated WebP; a raster of at most 4096 × 4096 pixels that decodes whole; a square logo's longer side at most 10% longer than its shorter, and a raster one at least 128 px on each side; a wide logo at least one and a half times as wide as it is tall, and a raster one at least 64 px tall. An SVG is measured from its root element, by its `width` and `height` when both are in absolute units, else by its `viewBox`, and each side must lie between 0.001 and 1,000,000, in pixels for a `width` or `height` and in the SVG's own units for a `viewBox`. It must declare no XML entities or external references and carry no active content: no `script` or `foreignObject` element, no element in the XHTML namespace, no `on…` event handler attribute, no `set` or `animate` that rewrites a link, no `xml-stylesheet` processing instruction, and no link but a reference inside the file (`#…`) or an embedded PNG, JPEG, GIF or WebP image (`data:image/…`), whether an `href`, an `xlink:href`, or a CSS `url()` or `src()`. Wherever a browser reads CSS, which is a `<style>` element's text and any attribute in no namespace or the SVG one, such as `style`, `fill` or `filter`, it must hold no `@import`, no `image()` or `image-set()`, and no escape (a backslash, which can spell a link out of sight). A `<style>` element itself is allowed, so the class-based styles a design tool exports pass, and so does a reference inside the file such as `fill:url(#grad)`; an attribute in another namespace, such as Inkscape's `inkscape:export-filename`, and a `data-*` one, such as the layer names Illustrator writes in `data-name`, are never read as CSS.
|
|
66
79
|
|
|
67
80
|
The write sends no `Idempotency-Key`, as `renameOrganization` sends none. A later write that should keep a logo leaves its key out, or sends back the `uri` the branding answered.
|
|
@@ -76,15 +89,18 @@ A refused write changes nothing, whichever part of it was refused, and throws an
|
|
|
76
89
|
| `403` | `pipelex.org.mismatch` | `orgId` is not the caller's active organization, or a logo's URI is a file of another organization. |
|
|
77
90
|
| `404` | `pipelex.org.not_found` | The organization does not exist. |
|
|
78
91
|
| `409` | `pipelex.org.not_manageable` | The organization is a personal workspace, which has no branding. |
|
|
79
|
-
| `422` | `request.invalid` | A colour is not `#rrggbb`, a
|
|
92
|
+
| `422` | `request.invalid` | A colour is not `#rrggbb`, a preset, a shell or a typeface is not an id of the shape `^[a-z0-9-]{1,32}$`, the design system is not of the shape the platform holds it to, or the body holds a key the route does not take, `white_label` and `style` included. |
|
|
93
|
+
| `422` | `request.unsupported` | A logo was refused ([below](#a-refused-logo)). |
|
|
80
94
|
| `422` | `pipelex.storage.uri_invalid` | A logo's URI is not a storage URI. |
|
|
81
95
|
| `503` | `runtime.unavailable` | The platform's storage failed while reading or copying a logo, or its database failed or could not be reached, so the write may have landed or not. Its `retry` is `yes`: the same `input` sent again is safe, and `getBranding` reads what the branding holds. |
|
|
82
96
|
|
|
83
|
-
**A refused field is named by its `location.field`**, so the settings screen shows each sentence under the control it concerns rather than in a toast: a colour by its dotted key, such as `colors.action` or `dark_colors.header`, a
|
|
97
|
+
**A refused field is named by its `location.field`**, so the settings screen shows each sentence under the control it concerns rather than in a toast: a colour by its dotted key, such as `colors.action` or `dark_colors.header`, a preset, a shell, a typeface or the design system by its own key, and a key the route does not take by its own name. When the write refuses one such field alone, the problem itself names it, in `location.field` and in `params.field`, and carries no `errors`; when it refuses several, it names the first and carries one item per refused field in `errors`, each with its own `location.field`.
|
|
98
|
+
|
|
99
|
+
### A refused logo
|
|
84
100
|
|
|
85
|
-
**A
|
|
101
|
+
**A refused logo is a `422` `request.unsupported`**, one problem for every logo of the body. It names the logo that broke the first rule in its `location.field` and `params.field`, the slot's key (`square_logo`, `wide_logo`, `dark_square_logo` or `dark_wide_logo`), and that rule in `params.reason`, one the exported type `LogoRefusalCode` names. When several rules are broken, in one logo or across several, the problem also carries `errors`, one item per broken rule, each with its own `location.field`, `params.field` and `params.reason`; a lone broken rule carries no `errors`. Every `detail` is the code's general sentence and never the measure: the platform keeps the sentences below for its logs, so a client writes the sentence it shows under a slot from the reason.:
|
|
86
102
|
|
|
87
|
-
| `
|
|
103
|
+
| `params.reason` | What the platform logs, for example |
|
|
88
104
|
|---|---|
|
|
89
105
|
| `logo_not_an_upload` | The square logo must be a newly uploaded file (pipelex-storage://<organization>/assets/<file>) or the URI the square logo already has. |
|
|
90
106
|
| `logo_not_found` | The square logo file was not found in the organization's uploads; upload it again. |
|
|
@@ -97,17 +113,18 @@ A refused write changes nothing, whichever part of it was refused, and throws an
|
|
|
97
113
|
| `logo_not_wide` | The wide logo is 600 × 500 px, 1.2 times as wide as it is tall; a wide logo must be at least 1.5 times as wide as it is tall. |
|
|
98
114
|
| `logo_too_short` | The wide logo is 240 × 48 px; a wide logo must be at least 64 px tall. |
|
|
99
115
|
|
|
100
|
-
The two refusals of a logo URI that come before any file is read, `pipelex.storage.uri_invalid` and
|
|
116
|
+
The two refusals of a logo URI that come before any file is read, `422` `pipelex.storage.uri_invalid` and `403` `pipelex.org.mismatch` for another organization's file, name the slot in the problem's own `location.field`, with no `errors`. So one slot's refusals are read the same way in every case: the problem's `errors` when it carries some, else the problem itself, kept when its `location.field` is the slot.
|
|
101
117
|
|
|
102
118
|
```ts
|
|
103
119
|
try {
|
|
104
120
|
await client.updateOrganizationBranding(orgId, { square_logo: uri });
|
|
105
121
|
} catch (err) {
|
|
106
122
|
if (!(err instanceof ApiResponseError)) throw err;
|
|
107
|
-
const
|
|
123
|
+
const refusals: ProblemItem[] = err.problem.errors ?? [err.problem];
|
|
124
|
+
const underSquare = refusals
|
|
108
125
|
.filter((item) => item.location?.field === "square_logo")
|
|
109
|
-
.map((item) => item.
|
|
110
|
-
//
|
|
126
|
+
.map((item) => item.params?.reason ?? item.code);
|
|
127
|
+
// Write a sentence for each reason under the square logo's slot; an error naming no field goes in a toast.
|
|
111
128
|
}
|
|
112
129
|
```
|
|
113
130
|
|
package/docs/run-results.md
CHANGED
|
@@ -31,6 +31,7 @@ console.log(results.main_stuff, summarizeUsage(results).total_cost_usd);
|
|
|
31
31
|
| `tokens_usages` | `TokensUsageRecord[] \| null` | the `tokens_usages.json` artifact | lifted off `pipe_output` |
|
|
32
32
|
| `usage_assembly_error` | `string \| null` | relayed | lifted off `pipe_output` |
|
|
33
33
|
| `pipe_output` | `DictPipeOutput \| null \| undefined` | absent | the runner's whole native output |
|
|
34
|
+
| `artifact_links` | `RunArtifactLinks \| undefined` | the artifacts handed back by reference, when some were and the read did not follow them | absent |
|
|
34
35
|
|
|
35
36
|
## Reading only some artifacts — `artifacts`
|
|
36
37
|
|
|
@@ -45,6 +46,36 @@ const results = await client.waitForResult(runId, { artifacts: ["working_memory"
|
|
|
45
46
|
|
|
46
47
|
An empty selection or a name outside the list is a `RequestArgumentError` thrown before any request, `client.argument_invalid`, the same refusal the platform would answer with a `400`. `waitForResult` and `startAndWaitForResult` take the same `artifacts` in their poll options and send it on every poll; `startAndWaitForResult` refuses a bad selection before it starts the run. Against a bare runner the selection has nothing to narrow: the blocking fallback returns every artifact the runner sent. `downloadArtifacts` given a `run_id` asks for its scope's artifact alone.
|
|
47
48
|
|
|
49
|
+
## Artifacts handed back by reference — `artifact_links`
|
|
50
|
+
|
|
51
|
+
The API Gateway in front of the hosted platform refuses to deliver a body past its 10 MB limit, which a wide batch's graph spec reaches on its own. So the platform measures the artifacts a completed run wrote before it answers, and when inline they would take the body past its budget it hands the largest back by reference until the rest fits: each such artifact's field reads `null`, both `tokens_usages` and `usage_assembly_error` for the usage envelope, and `artifact_links` maps its name, as `artifacts` names it, to a `RunArtifactLink`, `{ url, expires_at }`, a GET of its stored file signed for about fifteen minutes. `main_stuff` is the last to leave, so a read of the output alone gets it inline whenever it fits. `artifact_links` is absent from every answer that fits, and a `null` field with no entry in it still means the artifact was not written.
|
|
52
|
+
|
|
53
|
+
**The result readers follow the links by default.** `getRunResult`, `waitForResult` and `startAndWaitForResult` fetch each linked file into its field before the main-stuff check and the stored-text load, so a referenced artifact reads as its content and the result looks like one answered inline: the followed entries are dropped and `artifact_links` is absent. A referenced `working_memory` is therefore there to tell the stored-text load which values are texts, and a referenced `main_stuff` is no `MissingMainStuffError`. `waitForResult` follows the links after the status read, under its `timeoutMs` like the stored-text load, so a deadline that passes while they download says the run completed. Each file is fetched under `fetchArtifact`'s bounds (`maxBytes` 1 GiB, `timeoutMs` 120 s, redirects refused, no credential sent) and read exactly with `parseExactJson`, as an inline answer is. The file is the one the runner wrote, so the links inside it are as stored and never re-signed: a produced file's `public_url` in a followed artifact may have expired, and its `pipelex-storage://` reference is what to resolve ([Produced files](#produced-files)). A link the store refuses, an expired one included, throws `ArtifactFetchError` naming it as `artifact_links.<name>`, never the signed link itself; reading the results again hands back a fresh one.
|
|
54
|
+
|
|
55
|
+
**Pass the link instead of the content when the file must not cross your server.** A server whose responses are capped, such as a Vercel function at about 4.5 MB, cannot relay an artifact that was referenced precisely because it passes 10 MB. It reads with `followArtifactLinks: false`, which fetches nothing and hands the links back on `artifact_links`, each referenced field `null`; the main-stuff check then throws `MissingMainStuffError` only for a `null` `main_stuff` with no link, so "handed back by reference" (`results.artifact_links?.main_stuff` is set) is told apart from "not written". The server hands the link to its client, which fetches the file from storage directly within its fifteen minutes and reads it with `parseRunArtifact(name, text)`, the pure parse the SDK applies, which needs no client or key and unpacks the usage envelope. A stored-text load on such a read still needs the run's concepts: when `main_stuff` holds a value shaped like a stored text's reference and the working memory or a form came back by reference, the load fetches that artifact for its own use and the result keeps the link; pass `loadStoredTexts: false` as well to fetch nothing at all. `loadStoredTexts(results)` called later on such a result does the same, and follows a `main_stuff` handed back by reference into the result first, since its texts are what it loads.
|
|
56
|
+
|
|
57
|
+
```ts
|
|
58
|
+
// On the capped server: no file crosses it, a stored text included.
|
|
59
|
+
const state = await client.getRunResult(runId, {
|
|
60
|
+
followArtifactLinks: false,
|
|
61
|
+
loadStoredTexts: false,
|
|
62
|
+
});
|
|
63
|
+
if (state.state === "completed") {
|
|
64
|
+
const { main_stuff, artifact_links } = state.result;
|
|
65
|
+
// `stringifyExactJson`, never `Response.json`: an exact read may hold a `bigint`.
|
|
66
|
+
const body = stringifyExactJson({ main_stuff, links: artifact_links ?? {} });
|
|
67
|
+
return new Response(body, { headers: { "content-type": "application/json" } });
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// In the browser, given the link.
|
|
71
|
+
const response = await fetch(link.url);
|
|
72
|
+
const { graph_spec } = parseRunArtifact("graph_spec", await response.text());
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
`followArtifactLinks(results, { artifacts })`, a client method and an export taking the client, follows the links of a result read without following, every one or only the named ones, and returns a new result; `fetchRunArtifact(name, link)` fetches one link and returns the fields it fills, `{ tokens_usages, usage_assembly_error }` for the usage envelope. A link under a name this version does not know is left in place. `downloadArtifacts` follows its scope's link itself, and the link of a concept artifact its walk needs, whether it was given a `run_id` or a result read without following, under its own `maxBytes`, `timeoutMs` and `allowHttp`; such a fetch that fails throws its `ArtifactFetchError` rather than becoming an item's error, since no file can be walked without it. An empty `artifacts` names nothing to follow and throws `RequestArgumentError`, as the result readers refuse an empty selection.
|
|
76
|
+
|
|
77
|
+
**What following costs in memory.** Each linked file is buffered whole before it is parsed, and the links of one result are fetched at once, so a default read of a large run holds every referenced artifact in memory, as raw text and then parsed, before it returns: the parsed result is what the caller asked for, but a small serverless worker reading a wide batch may not have the room. Such a caller reads with `followArtifactLinks: false` and follows only what it needs, `followArtifactLinks(results, { artifacts: ["main_stuff"] })`, or passes the links on.
|
|
78
|
+
|
|
48
79
|
## `pipeline_run_id` — the durable handle
|
|
49
80
|
|
|
50
81
|
The run id is what makes a run readable after the process that started it has gone. `start` returns it in its acknowledgement before the run finishes, and every lifecycle read takes it: `getRunStatus(runId)` for the status row, `getRunResult(runId)` for a single result lookup, `waitForResult(runId)` to resume polling a run an earlier session started. It is also what a `RunTimeoutError` leaves you with — the run keeps executing server-side, so the timeout is a reason to re-poll by id, not a reason to run the method again.
|
|
@@ -199,7 +230,7 @@ async function refresh(runId: string): Promise<void> {
|
|
|
199
230
|
|
|
200
231
|
## `main_stuff` — the output
|
|
201
232
|
|
|
202
|
-
`main_stuff` is the resolved content of the run's main output and is always present for a completed run, unless the read's `artifacts` selection left it out. On the hosted path it is the `main_stuff.json` artifact; on the blocking path the SDK resolves it out of the returned working memory through the response's `main_stuff_name`. Both deliver the same content shape, so there is no shape-guessing and no path-dependent branch to write. A completed run that cannot deliver one throws `MissingMainStuffError` rather than handing back a half-filled result.
|
|
233
|
+
`main_stuff` is the resolved content of the run's main output and is always present for a completed run, unless the read's `artifacts` selection left it out or a read with `followArtifactLinks: false` found it handed back by reference ([above](#artifacts-handed-back-by-reference--artifact_links)). On the hosted path it is the `main_stuff.json` artifact; on the blocking path the SDK resolves it out of the returned working memory through the response's `main_stuff_name`. Both deliver the same content shape, so there is no shape-guessing and no path-dependent branch to write. A completed run that cannot deliver one, neither inline nor by reference, throws `MissingMainStuffError` rather than handing back a half-filled result.
|
|
203
234
|
|
|
204
235
|
It is typed `unknown` because the content is polymorphic: a structured output arrives as an object of the concept's fields, and a multiple output as the envelope `{ items: [...] }` that the runtime's `ListContent` serialises to. Every content type serialises to an object, natives included — a text output is `{ "text": "…" }` and a number `{ "number": 0 }` — so a guard written for a bare `""` or `0` never fires, and an empty multiple output is `{ "items": [] }` rather than `[]`. Narrow it where you read it, ideally through the types generated for the method rather than a hand-written cast.
|
|
205
236
|
|