@pipelex/sdk 0.33.0 → 0.34.1
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 +40 -2
- package/dist/cli/args.d.ts +41 -0
- package/dist/cli/args.js +96 -0
- package/dist/cli/args.js.map +1 -0
- package/dist/cli/bundle.d.ts +45 -0
- package/dist/cli/bundle.js +148 -0
- package/dist/cli/bundle.js.map +1 -0
- package/dist/cli/environment.d.ts +36 -0
- package/dist/cli/environment.js +72 -0
- package/dist/cli/environment.js.map +1 -0
- package/dist/cli/help.d.ts +4 -0
- package/dist/cli/help.js +56 -0
- package/dist/cli/help.js.map +1 -0
- package/dist/cli/inputs.d.ts +13 -0
- package/dist/cli/inputs.js +70 -0
- package/dist/cli/inputs.js.map +1 -0
- package/dist/cli/io.d.ts +79 -0
- package/dist/cli/io.js +96 -0
- package/dist/cli/io.js.map +1 -0
- package/dist/cli/main.d.ts +18 -0
- package/dist/cli/main.js +58 -0
- package/dist/cli/main.js.map +1 -0
- package/dist/cli/method.d.ts +56 -0
- package/dist/cli/method.js +108 -0
- package/dist/cli/method.js.map +1 -0
- package/dist/cli/present.d.ts +43 -0
- package/dist/cli/present.js +191 -0
- package/dist/cli/present.js.map +1 -0
- package/dist/cli/run.d.ts +17 -0
- package/dist/cli/run.js +290 -0
- package/dist/cli/run.js.map +1 -0
- package/dist/cli/script.d.ts +23 -0
- package/dist/cli/script.js +212 -0
- package/dist/cli/script.js.map +1 -0
- package/dist/cli/source.d.ts +49 -0
- package/dist/cli/source.js +71 -0
- package/dist/cli/source.js.map +1 -0
- package/dist/cli.d.ts +10 -0
- package/dist/cli.js +65 -0
- package/dist/cli.js.map +1 -0
- package/dist/client.d.ts +70 -8
- package/dist/client.js +185 -26
- package/dist/client.js.map +1 -1
- package/dist/errors.d.ts +42 -4
- package/dist/errors.js +43 -4
- package/dist/errors.js.map +1 -1
- package/dist/hooks/validate-client.d.ts +3 -3
- package/dist/hooks/validate-client.js +3 -3
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/models.d.ts +118 -3
- package/dist/models.js +4 -3
- package/dist/models.js.map +1 -1
- package/dist/prepare-inputs.d.ts +6 -0
- package/dist/prepare-inputs.js +21 -10
- package/dist/prepare-inputs.js.map +1 -1
- package/dist/runs.d.ts +28 -1
- package/dist/runs.js +2 -1
- package/dist/runs.js.map +1 -1
- package/dist/upload.d.ts +6 -0
- package/dist/upload.js +9 -4
- package/dist/upload.js.map +1 -1
- package/dist/user-agent.d.ts +3 -2
- package/dist/user-agent.js +3 -2
- package/dist/user-agent.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/docs/architecture.md +12 -4
- package/docs/cli.md +123 -0
- package/docs/client-identification.md +1 -1
- package/docs/errors.md +5 -3
- package/docs/input-preparation.md +6 -2
- package/docs/run-results.md +20 -0
- package/package.json +5 -1
package/dist/errors.d.ts
CHANGED
|
@@ -133,6 +133,36 @@ export declare class InvalidLocalSourceError extends InputPreparationError {
|
|
|
133
133
|
cause?: unknown;
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
|
+
/**
|
|
137
|
+
* A value the caller gave at a file input cannot be turned into a file to upload: a `data:` URL
|
|
138
|
+
* that does not decode (no comma, bad base64, bad percent-encoding), or a value of a type no file
|
|
139
|
+
* input takes, neither a path or URL string, nor bytes, nor `{url}` content. `prepareInputs`
|
|
140
|
+
* raises it while it reads the inputs, before anything is uploaded. As with
|
|
141
|
+
* `InvalidLocalSourceError`, the inputs are what must change, which is how a consumer tells it
|
|
142
|
+
* apart from `MethodLoadError`, a method that does not load, raised by the same preparation.
|
|
143
|
+
*/
|
|
144
|
+
export declare class InvalidInputValueError extends InputPreparationError {
|
|
145
|
+
constructor(message: string, options?: {
|
|
146
|
+
cause?: unknown;
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* The pipe I/O answer said the method does not load (`is_valid: false`), so its signature cannot
|
|
151
|
+
* be read and no input can be prepared: the method, not the inputs, must change.
|
|
152
|
+
* `validationErrors` holds the answer's items, each kept when it carries a string `category` and
|
|
153
|
+
* `message`, possibly none; `serverMessage` is the answer's own `message` when it is a string. The
|
|
154
|
+
* error's message names the first item's message, else the answer's own.
|
|
155
|
+
*/
|
|
156
|
+
export declare class MethodLoadError extends InputPreparationError {
|
|
157
|
+
readonly validationErrors: ValidationErrorItem[];
|
|
158
|
+
readonly serverMessage: string | undefined;
|
|
159
|
+
constructor(message: string, details: {
|
|
160
|
+
validationErrors: ValidationErrorItem[];
|
|
161
|
+
serverMessage?: string | undefined;
|
|
162
|
+
}, options?: {
|
|
163
|
+
cause?: unknown;
|
|
164
|
+
});
|
|
165
|
+
}
|
|
136
166
|
/**
|
|
137
167
|
* Why an asset was refused, in a closed vocabulary a caller branches on rather than
|
|
138
168
|
* on the message: `too_large` — past the service-defined size cap (`uploadFile`'s
|
|
@@ -168,21 +198,27 @@ export declare class RejectedAssetError extends InputPreparationError {
|
|
|
168
198
|
* The configured deployment does not support upload (no `/v1/upload` route, seen
|
|
169
199
|
* as a `404`). Upload is a hosted Pipelex-product capability even though the SDK
|
|
170
200
|
* can be pointed at other base URLs. Its verdict is `config`, not retryable: the base URL
|
|
171
|
-
* must point at a deployment that serves upload.
|
|
201
|
+
* must point at a deployment that serves upload. `filename` is the file whose upload met it, as
|
|
202
|
+
* `uploadFile` sent it.
|
|
172
203
|
*/
|
|
173
204
|
export declare class UnsupportedUploadCapabilityError extends InputPreparationError {
|
|
205
|
+
readonly filename: string | undefined;
|
|
174
206
|
constructor(message: string, options?: {
|
|
175
207
|
cause?: unknown;
|
|
208
|
+
filename?: string;
|
|
176
209
|
});
|
|
177
210
|
}
|
|
178
211
|
/**
|
|
179
212
|
* Upload was not authorized — a `401`/`403` from the upload route. Its verdict is `config`, not
|
|
180
|
-
* retryable: the credential must change.
|
|
213
|
+
* retryable: the credential must change. `filename` is the file whose upload was refused, as
|
|
214
|
+
* `uploadFile` sent it.
|
|
181
215
|
*/
|
|
182
216
|
export declare class UploadAuthenticationError extends InputPreparationError {
|
|
183
217
|
readonly status: number;
|
|
218
|
+
readonly filename: string | undefined;
|
|
184
219
|
constructor(message: string, status: number, options?: {
|
|
185
220
|
cause?: unknown;
|
|
221
|
+
filename?: string;
|
|
186
222
|
});
|
|
187
223
|
}
|
|
188
224
|
/**
|
|
@@ -217,8 +253,8 @@ export type UploadTransportCode = "timeout" | "unreachable" | "server_error" | "
|
|
|
217
253
|
* every one it raises, so it is undefined only on one a caller constructs without
|
|
218
254
|
* it. `status` is the HTTP status when a response produced it, and undefined when
|
|
219
255
|
* none did. From `uploadFile` the wrapped `ApiResponseError` is also reachable via
|
|
220
|
-
* `cause
|
|
221
|
-
* echo the grant's credential.
|
|
256
|
+
* `cause`, and `filename` is the file it was sending; `uploadWithGrant` wraps no response,
|
|
257
|
+
* because storage's error body can echo the grant's credential, and leaves `filename` undefined.
|
|
222
258
|
*
|
|
223
259
|
* Its verdict is the wrapped error's when `cause` carries one: `uploadFile` wraps the
|
|
224
260
|
* `ApiResponseError` or `ApiUnreachableError` the client's `upload()` threw, and `code` is too
|
|
@@ -238,10 +274,12 @@ export type UploadTransportCode = "timeout" | "unreachable" | "server_error" | "
|
|
|
238
274
|
export declare class UploadTransportError extends InputPreparationError {
|
|
239
275
|
readonly status: number | undefined;
|
|
240
276
|
readonly code: UploadTransportCode | undefined;
|
|
277
|
+
readonly filename: string | undefined;
|
|
241
278
|
constructor(message: string, options?: {
|
|
242
279
|
cause?: unknown;
|
|
243
280
|
status?: number;
|
|
244
281
|
code?: UploadTransportCode;
|
|
282
|
+
filename?: string;
|
|
245
283
|
});
|
|
246
284
|
}
|
|
247
285
|
/**
|
package/dist/errors.js
CHANGED
|
@@ -128,6 +128,37 @@ export class InvalidLocalSourceError extends InputPreparationError {
|
|
|
128
128
|
this.source = source;
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
|
+
/**
|
|
132
|
+
* A value the caller gave at a file input cannot be turned into a file to upload: a `data:` URL
|
|
133
|
+
* that does not decode (no comma, bad base64, bad percent-encoding), or a value of a type no file
|
|
134
|
+
* input takes, neither a path or URL string, nor bytes, nor `{url}` content. `prepareInputs`
|
|
135
|
+
* raises it while it reads the inputs, before anything is uploaded. As with
|
|
136
|
+
* `InvalidLocalSourceError`, the inputs are what must change, which is how a consumer tells it
|
|
137
|
+
* apart from `MethodLoadError`, a method that does not load, raised by the same preparation.
|
|
138
|
+
*/
|
|
139
|
+
export class InvalidInputValueError extends InputPreparationError {
|
|
140
|
+
constructor(message, options) {
|
|
141
|
+
super(message, options);
|
|
142
|
+
this.name = "InvalidInputValueError";
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* The pipe I/O answer said the method does not load (`is_valid: false`), so its signature cannot
|
|
147
|
+
* be read and no input can be prepared: the method, not the inputs, must change.
|
|
148
|
+
* `validationErrors` holds the answer's items, each kept when it carries a string `category` and
|
|
149
|
+
* `message`, possibly none; `serverMessage` is the answer's own `message` when it is a string. The
|
|
150
|
+
* error's message names the first item's message, else the answer's own.
|
|
151
|
+
*/
|
|
152
|
+
export class MethodLoadError extends InputPreparationError {
|
|
153
|
+
validationErrors;
|
|
154
|
+
serverMessage;
|
|
155
|
+
constructor(message, details, options) {
|
|
156
|
+
super(message, options);
|
|
157
|
+
this.name = "MethodLoadError";
|
|
158
|
+
this.validationErrors = details.validationErrors;
|
|
159
|
+
this.serverMessage = details.serverMessage;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
131
162
|
/**
|
|
132
163
|
* The server or storage refused the asset — most commonly a `413` past the
|
|
133
164
|
* service-defined size cap, or storage refusing an upload with a grant. A storage
|
|
@@ -154,24 +185,30 @@ export class RejectedAssetError extends InputPreparationError {
|
|
|
154
185
|
* The configured deployment does not support upload (no `/v1/upload` route, seen
|
|
155
186
|
* as a `404`). Upload is a hosted Pipelex-product capability even though the SDK
|
|
156
187
|
* can be pointed at other base URLs. Its verdict is `config`, not retryable: the base URL
|
|
157
|
-
* must point at a deployment that serves upload.
|
|
188
|
+
* must point at a deployment that serves upload. `filename` is the file whose upload met it, as
|
|
189
|
+
* `uploadFile` sent it.
|
|
158
190
|
*/
|
|
159
191
|
export class UnsupportedUploadCapabilityError extends InputPreparationError {
|
|
192
|
+
filename;
|
|
160
193
|
constructor(message, options) {
|
|
161
194
|
super(message, { ...options, verdict: makeVerdict("config", false) });
|
|
162
195
|
this.name = "UnsupportedUploadCapabilityError";
|
|
196
|
+
this.filename = options?.filename;
|
|
163
197
|
}
|
|
164
198
|
}
|
|
165
199
|
/**
|
|
166
200
|
* Upload was not authorized — a `401`/`403` from the upload route. Its verdict is `config`, not
|
|
167
|
-
* retryable: the credential must change.
|
|
201
|
+
* retryable: the credential must change. `filename` is the file whose upload was refused, as
|
|
202
|
+
* `uploadFile` sent it.
|
|
168
203
|
*/
|
|
169
204
|
export class UploadAuthenticationError extends InputPreparationError {
|
|
170
205
|
status;
|
|
206
|
+
filename;
|
|
171
207
|
constructor(message, status, options) {
|
|
172
208
|
super(message, { ...options, verdict: makeVerdict("config", false) });
|
|
173
209
|
this.name = "UploadAuthenticationError";
|
|
174
210
|
this.status = status;
|
|
211
|
+
this.filename = options?.filename;
|
|
175
212
|
}
|
|
176
213
|
}
|
|
177
214
|
/**
|
|
@@ -182,8 +219,8 @@ export class UploadAuthenticationError extends InputPreparationError {
|
|
|
182
219
|
* every one it raises, so it is undefined only on one a caller constructs without
|
|
183
220
|
* it. `status` is the HTTP status when a response produced it, and undefined when
|
|
184
221
|
* none did. From `uploadFile` the wrapped `ApiResponseError` is also reachable via
|
|
185
|
-
* `cause
|
|
186
|
-
* echo the grant's credential.
|
|
222
|
+
* `cause`, and `filename` is the file it was sending; `uploadWithGrant` wraps no response,
|
|
223
|
+
* because storage's error body can echo the grant's credential, and leaves `filename` undefined.
|
|
187
224
|
*
|
|
188
225
|
* Its verdict is the wrapped error's when `cause` carries one: `uploadFile` wraps the
|
|
189
226
|
* `ApiResponseError` or `ApiUnreachableError` the client's `upload()` threw, and `code` is too
|
|
@@ -203,6 +240,7 @@ export class UploadAuthenticationError extends InputPreparationError {
|
|
|
203
240
|
export class UploadTransportError extends InputPreparationError {
|
|
204
241
|
status;
|
|
205
242
|
code;
|
|
243
|
+
filename;
|
|
206
244
|
constructor(message, options) {
|
|
207
245
|
super(message, {
|
|
208
246
|
...options,
|
|
@@ -211,6 +249,7 @@ export class UploadTransportError extends InputPreparationError {
|
|
|
211
249
|
this.name = "UploadTransportError";
|
|
212
250
|
this.status = options?.status;
|
|
213
251
|
this.code = options?.code;
|
|
252
|
+
this.filename = options?.filename;
|
|
214
253
|
}
|
|
215
254
|
}
|
|
216
255
|
/** The verdict of an upload transport failure that wraps no error carrying one. */
|
package/dist/errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAatD,OAAO,EAAE,oBAAoB,EAAE,CAAC;AAkBhC,MAAM,aAAa,GAAwB,IAAI,GAAG,CAAc,CAAC,OAAO,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC;AAEhG,yDAAyD;AACzD,MAAM,UAAU,aAAa,CAAC,KAAc;IAC1C,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,aAAa,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AAC/D,CAAC;AAeD,kEAAkE;AAClE,SAAS,WAAW,CAAC,WAAwB,EAAE,SAAkB;IAC/D,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC,CAAC;AACnD,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,OAAgB,mBAAoB,SAAQ,oBAAoB;IACpE,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C,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CACxE,CAAC;IACJ,CAAC;IACD,IAAI,OAAO,aAAa,KAAK,SAAS;QAAE,OAAO,WAAW,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC;IACtF,uFAAuF;IACvF,6FAA6F;IAC7F,oEAAoE;IACpE,OAAO,WAAW,CAAC,UAAU,EAAE,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;AACxF,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The API client the `.mthds` post-edit hook validates through, named for the
|
|
3
|
-
* `User-Agent` contract (`
|
|
4
|
-
* identifies itself as `pipelex-mthds-check`,
|
|
5
|
-
* surface, in front of the SDK's own `pipelex-sdk-js` token.
|
|
3
|
+
* `User-Agent` contract (`conformance/specs/client-identification.md`, in the `conformance`
|
|
4
|
+
* repository beside the specs' tests): the hook identifies itself as `pipelex-mthds-check`,
|
|
5
|
+
* the registry token of the `hook` surface, in front of the SDK's own `pipelex-sdk-js` token.
|
|
6
6
|
*/
|
|
7
7
|
import { PipelexApiClient } from "../client.js";
|
|
8
8
|
import type { AppInfo } from "../user-agent.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The API client the `.mthds` post-edit hook validates through, named for the
|
|
3
|
-
* `User-Agent` contract (`
|
|
4
|
-
* identifies itself as `pipelex-mthds-check`,
|
|
5
|
-
* surface, in front of the SDK's own `pipelex-sdk-js` token.
|
|
3
|
+
* `User-Agent` contract (`conformance/specs/client-identification.md`, in the `conformance`
|
|
4
|
+
* repository beside the specs' tests): the hook identifies itself as `pipelex-mthds-check`,
|
|
5
|
+
* the registry token of the `hook` surface, in front of the SDK's own `pipelex-sdk-js` token.
|
|
6
6
|
*/
|
|
7
7
|
import { PipelexApiClient } from "../client.js";
|
|
8
8
|
import { SDK_VERSION } from "../version.js";
|
package/dist/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
/** Package version. Kept in sync with `package.json` — enforced by `tests/index.test.ts`. */
|
|
10
10
|
export { SDK_VERSION } from "./version.js";
|
|
11
11
|
export * from "mthds/protocol";
|
|
12
|
-
export { PipelexApiClient, DEFAULT_API_BASE_URL } from "./client.js";
|
|
12
|
+
export { PipelexApiClient, DEFAULT_API_BASE_URL, isGatewayCutOff } from "./client.js";
|
|
13
13
|
export { buildUserAgent, validateAppInfo, MAX_USER_AGENT_LENGTH } from "./user-agent.js";
|
|
14
14
|
export type { AppInfo, RuntimeInfo } from "./user-agent.js";
|
|
15
15
|
export type { MthdsFile, PipelexApiRunExtensions, PipelexHostedRunExtensions, PipelexRunOptions, PipelexStartOptions, ValidateMethodSelector, ValidateFilesOptions, PipelexApiClientOptions, } from "./client.js";
|
|
@@ -21,14 +21,14 @@ export type { GrantedUpload, UploadWithGrantOptions } from "./upload-grant.js";
|
|
|
21
21
|
export type { PrepareInputsBase, PrepareInputsClosure, PrepareInputsRequest, PreparedInputs, } from "./prepare-inputs.js";
|
|
22
22
|
export { locateArtifacts, collectArtifacts, artifactFilename, PIPELEX_STORAGE_SCHEME, BULK_RESOLVE_MAX_URIS, DEFAULT_ARTIFACT_MAX_BYTES, DEFAULT_ARTIFACT_TIMEOUT_MS, DEFAULT_DOWNLOAD_MAX_TOTAL_BYTES, DEFAULT_DOWNLOAD_CONCURRENCY, } from "./artifacts.js";
|
|
23
23
|
export type { ArtifactItemError, ArtifactLocation, ArtifactScope, BulkResolveStorageUrlsInput, BulkResolvedStorageUrls, DownloadArtifactsOptions, DownloadArtifactsRequest, DownloadArtifactsResult, DownloadedArtifact, FetchArtifactOptions, ResolvedArtifact, } from "./artifacts.js";
|
|
24
|
-
export type { DiagnosticKind, DiagnosticRange, Diagnostic, LintResponse, FormatResponse, DictStuff, DictWorkingMemory, DictPipeOutput, DictRunResultExecute, MethodProvenance, PipelexRunResultStart, PipelexHostedToolingExtensions, DryRunStatus, ValidatedPipeEntry, LiftablePipeEntry, PipelexValidationReport, PipelexInvalidReport, PipelexValidationResult, ValidationErrorCategory, ValidationErrorItem, FixSafety, FixOpKind, TomlScalar, TomlValue, FixValue, SetKeyOp, EnsureTableOp, DeleteKeyOp, DeleteTableOp, RenameTableKeyOp, MoveKeyOp, RemapValueOp, FixOp, SuggestedFix, MthdsFileItem, CrateRequestBase, CrateInvalidReport, GeneratedArtifact, ResolveRequest, ResolveValidReport, ResolveResponse, CodegenKind, CodegenTarget, CodegenRequest, CodegenValidReport, CodegenResponse, PipeIORequest, PipeIOValidReport, PipeIOResponse, } from "./models.js";
|
|
24
|
+
export type { DiagnosticKind, DiagnosticRange, Diagnostic, LintResponse, FormatResponse, DictStuff, DictWorkingMemory, DictPipeOutput, DictRunResultExecute, MethodProvenance, PipelexRunResultStart, PipelexHostedToolingExtensions, DryRunStatus, ValidatedPipeEntry, LiftablePipeEntry, PipelexValidationReport, PipelexInvalidReport, PipelexValidationResult, ValidationErrorCategory, ValidationErrorItem, FixSafety, FixOpKind, TomlScalar, TomlValue, FixValue, SetKeyOp, EnsureTableOp, DeleteKeyOp, DeleteTableOp, RenameTableKeyOp, MoveKeyOp, RemapValueOp, FixOp, SuggestedFix, MthdsFileItem, CrateRequestBase, CrateInvalidReport, GeneratedArtifact, ResolveRequest, ResolveValidReport, ResolveResponse, CodegenKind, CodegenTarget, CodegenRequest, CodegenValidReport, CodegenResponse, PipeIORequest, PipeIOValidReport, PipeIOResponse, ModelCheckCategory, ModelReferenceKind, ModelReferenceResolution, ModelReferenceMatchBase, PresetMatch, AliasMatch, WaterfallMatch, HandleMatch, ModelReferenceMatch, ModelReferenceVerdictBase, PresetReferenceVerdict, AliasReferenceVerdict, WaterfallReferenceVerdict, HandleReferenceVerdict, ModelReferenceVerdict, } from "./models.js";
|
|
25
25
|
export { runCodegenCheck, isStampableArtifactPath, STAMPABLE_ARTIFACT_SUFFIXES, CodegenLockError, } from "./codegen-check.js";
|
|
26
26
|
export type { CodegenCheckInput, CodegenCheckReport, CodegenDrift, CodegenDriftCategory, CodegenTreeFile, } from "./codegen-check.js";
|
|
27
27
|
export type { UserProfile, ListMethodsQuery, MethodData, MethodDeletionAccepted, MethodDeletionState, MethodPage, MethodSummary, MethodWriteInput, Membership, MembershipsResponse, SubscriptionResponse, PlanView, InvoiceView, CheckoutResponse, ChangePlanResponse, BillingPortalResponse, PipelexApiKey, PipelexApiKeyCreated, PipelexApiKeyList, OnboardingRole, OnboardingCurrentTool, OnboardingInputType, OnboardingHeardFrom, OnboardingSubmission, ResolvedStorageUrl, UploadInput, UploadedFile, UploadGrantInput, UploadGrant, PipeStatus, ListRunsQuery, PipelineRun, RunDetail, RunHistoryItem, RunPage, UpdateRunInput, } from "./product-models.js";
|
|
28
28
|
export { isTerminalRunStatus, isSuccessRunStatus, RUN_RESULT_ARTIFACTS } from "./runs.js";
|
|
29
|
-
export type { GetRunResultOptions, RunResultArtifact, RunStatus, RunPublic, RunRead, RunResults, RunResultState, TokensUsageRecord, WaitForResultOptions, } from "./runs.js";
|
|
29
|
+
export type { GetRunResultOptions, RunResultArtifact, RunStatus, RunPublic, RunRead, RunResults, RunResultState, StartAndWaitForResultOptions, TokensUsageRecord, WaitForResultOptions, } from "./runs.js";
|
|
30
30
|
export { summarizeUsage } from "./usage.js";
|
|
31
31
|
export type { PipeUsageSummary, RunUsagePair, UsageSummary, UsageSummaryState, UsageTokenTotals, } from "./usage.js";
|
|
32
|
-
export { PipelexRequestError, errorVerdictOf, RequestArgumentError, ApiResponseError, ApiUnreachableError, MissingMainStuffError, PagingNotTerminatingError, PipelineExecuteTimeoutError, RunFailedError, RunTimeoutError, RunStillRunningError, RunLifecycleUnavailableError, InputPreparationError, EmptyMethodSourceError, InvalidLocalSourceError, RejectedAssetError, UnsupportedUploadCapabilityError, UploadAuthenticationError, UploadTransportError, ArtifactOperationError, ArtifactAuthenticationError, ArtifactFetchError, ScopeUnavailableError, } from "./errors.js";
|
|
32
|
+
export { PipelexRequestError, errorVerdictOf, RequestArgumentError, ApiResponseError, ApiUnreachableError, MissingMainStuffError, PagingNotTerminatingError, PipelineExecuteTimeoutError, RunFailedError, RunTimeoutError, RunStillRunningError, RunLifecycleUnavailableError, InputPreparationError, EmptyMethodSourceError, InvalidLocalSourceError, InvalidInputValueError, MethodLoadError, RejectedAssetError, UnsupportedUploadCapabilityError, UploadAuthenticationError, UploadTransportError, ArtifactOperationError, ArtifactAuthenticationError, ArtifactFetchError, ScopeUnavailableError, } from "./errors.js";
|
|
33
33
|
export type { ApiResponseErrorOptions, ErrorDomain, ErrorVerdict, RejectedAssetCode, UploadTransportCode, } from "./errors.js";
|
|
34
34
|
export type { FieldError, MigrationErrorBlock, ProblemDetails, ProviderErrorMetadata, RunErrorReport, UserAction, } from "./error-models.js";
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ export { SDK_VERSION } from "./version.js";
|
|
|
14
14
|
// single import source.
|
|
15
15
|
export * from "mthds/protocol";
|
|
16
16
|
// ── Pipelex product client ───────────────────────────────────────────
|
|
17
|
-
export { PipelexApiClient, DEFAULT_API_BASE_URL } from "./client.js";
|
|
17
|
+
export { PipelexApiClient, DEFAULT_API_BASE_URL, isGatewayCutOff } from "./client.js";
|
|
18
18
|
// Client identification: the `User-Agent` the client sends, exported so a caller that
|
|
19
19
|
// makes its own raw requests to the API sends the same value, and can check an `appInfo`
|
|
20
20
|
// against the grammar and the length ceiling before constructing a client.
|
|
@@ -43,5 +43,5 @@ export { isTerminalRunStatus, isSuccessRunStatus, RUN_RESULT_ARTIFACTS } from ".
|
|
|
43
43
|
export { summarizeUsage } from "./usage.js";
|
|
44
44
|
// ── Typed errors (PipelineRequestError rides the protocol re-export above) ──
|
|
45
45
|
// Every one carries a verdict — `retryable` and `errorDomain` — read with `errorVerdictOf`.
|
|
46
|
-
export { PipelexRequestError, errorVerdictOf, RequestArgumentError, ApiResponseError, ApiUnreachableError, MissingMainStuffError, PagingNotTerminatingError, PipelineExecuteTimeoutError, RunFailedError, RunTimeoutError, RunStillRunningError, RunLifecycleUnavailableError, InputPreparationError, EmptyMethodSourceError, InvalidLocalSourceError, RejectedAssetError, UnsupportedUploadCapabilityError, UploadAuthenticationError, UploadTransportError, ArtifactOperationError, ArtifactAuthenticationError, ArtifactFetchError, ScopeUnavailableError, } from "./errors.js";
|
|
46
|
+
export { PipelexRequestError, errorVerdictOf, RequestArgumentError, ApiResponseError, ApiUnreachableError, MissingMainStuffError, PagingNotTerminatingError, PipelineExecuteTimeoutError, RunFailedError, RunTimeoutError, RunStillRunningError, RunLifecycleUnavailableError, InputPreparationError, EmptyMethodSourceError, InvalidLocalSourceError, InvalidInputValueError, MethodLoadError, RejectedAssetError, UnsupportedUploadCapabilityError, UploadAuthenticationError, UploadTransportError, ArtifactOperationError, ArtifactAuthenticationError, ArtifactFetchError, ScopeUnavailableError, } from "./errors.js";
|
|
47
47
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,6FAA6F;AAC7F,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,oFAAoF;AACpF,kFAAkF;AAClF,mFAAmF;AACnF,wBAAwB;AACxB,cAAc,gBAAgB,CAAC;AAE/B,wEAAwE;AACxE,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,6FAA6F;AAC7F,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,oFAAoF;AACpF,kFAAkF;AAClF,mFAAmF;AACnF,wBAAwB;AACxB,cAAc,gBAAgB,CAAC;AAE/B,wEAAwE;AACxE,OAA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vB,sBAAsB,EACtB,eAAe,EACf,kBAAkB,EAClB,gCAAgC,EAChC,yBAAyB,EACzB,oBAAoB,EACpB,sBAAsB,EACtB,2BAA2B,EAC3B,kBAAkB,EAClB,qBAAqB,GACtB,MAAM,aAAa,CAAC"}
|
package/dist/models.d.ts
CHANGED
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Holds the Dict-serialized protocol concretes (`DictStuff` / `DictWorkingMemory`
|
|
5
5
|
* / `DictPipeOutput` and the default `RunResultExecute` binding), the Pipelex
|
|
6
|
-
* `/v1/validate` surface (`PipelexValidationResult` + `ValidationErrorItem`),
|
|
7
|
-
*
|
|
8
|
-
* the protocol wire types imported from the
|
|
6
|
+
* `/v1/validate` surface (`PipelexValidationResult` + `ValidationErrorItem`), the
|
|
7
|
+
* request/response models of the tools routes and the crate routes, and the verdict of
|
|
8
|
+
* the model reference check. Built on the protocol wire types imported from the
|
|
9
|
+
* `mthds/protocol` subpath.
|
|
9
10
|
*/
|
|
10
11
|
import type { InputForm, OutputForm, InvalidValidationReport, PipeIOContracts, RunResultExecute, RunResultStart, ValidationReport } from "mthds/protocol";
|
|
11
12
|
export interface DictStuff {
|
|
@@ -700,4 +701,118 @@ export interface PipeIOValidReport {
|
|
|
700
701
|
}
|
|
701
702
|
/** The `POST /v1/pipe-io` 200 response — pattern-match `is_valid` before reading the arm. */
|
|
702
703
|
export type PipeIOResponse = PipeIOValidReport | CrateInvalidReport;
|
|
704
|
+
/**
|
|
705
|
+
* The categories the check covers, in the order every list it returns follows: the MTHDS
|
|
706
|
+
* Protocol's model categories, in the protocol's order, then `doc_gen`, the family of
|
|
707
|
+
* `PipeDocGen`. The protocol defines no category for `doc_gen`, so `GET /v1/models` leaves
|
|
708
|
+
* it out, but a method names a `doc_gen` model in its `model` field like any other, so the
|
|
709
|
+
* check covers it.
|
|
710
|
+
*
|
|
711
|
+
* A request names one of these. A verdict reads them open, as `mthds` reads `ModelInfo.type`: a
|
|
712
|
+
* runner of a later version may add a category, so a consumer that switches on one has to
|
|
713
|
+
* say what an unknown value does.
|
|
714
|
+
*/
|
|
715
|
+
export type ModelCheckCategory = "llm" | "extract" | "img_gen" | "search" | "judgment" | "doc_gen";
|
|
716
|
+
/**
|
|
717
|
+
* What a reference names, from its parsing: a sigil (`$` preset, `@` alias, `~` waterfall),
|
|
718
|
+
* else a spelled-out namespace (`preset:`, `alias:`, `waterfall:`, `handle:`), else a bare
|
|
719
|
+
* model handle.
|
|
720
|
+
*/
|
|
721
|
+
export type ModelReferenceKind = "preset" | "alias" | "waterfall" | "handle";
|
|
722
|
+
/** Whether a reference resolves in a category in scope. Both values are definitive. */
|
|
723
|
+
export type ModelReferenceResolution = "resolved" | "not_found";
|
|
724
|
+
/** The fields every `matches` entry carries, whatever the reference's kind. */
|
|
725
|
+
export interface ModelReferenceMatchBase {
|
|
726
|
+
/** The category this entry is about; read open (see {@link ModelCheckCategory}). */
|
|
727
|
+
category: ModelCheckCategory | (string & {});
|
|
728
|
+
/**
|
|
729
|
+
* The model handle a run through the reference would call now in this category, or
|
|
730
|
+
* `null` when it would find none: a target on a backend the runner has not enabled, a
|
|
731
|
+
* waterfall none of whose usable steps the runner serves, an alias cycle. The reference
|
|
732
|
+
* still resolves, as a validation accepts it, but a run through it fails, so show it as a
|
|
733
|
+
* warning rather than as an unknown name.
|
|
734
|
+
*/
|
|
735
|
+
resolves_to: string | null;
|
|
736
|
+
}
|
|
737
|
+
/** What a preset reference is in one category. */
|
|
738
|
+
export interface PresetMatch extends ModelReferenceMatchBase {
|
|
739
|
+
/** The model the deck binds the preset to, as the deck writes it, which may itself be a reference (`@default-premium`). */
|
|
740
|
+
target: string;
|
|
741
|
+
/** The preset's description, or `null` when the deck gives it none. */
|
|
742
|
+
description: string | null;
|
|
743
|
+
}
|
|
744
|
+
/** What an alias reference is in one category. */
|
|
745
|
+
export interface AliasMatch extends ModelReferenceMatchBase {
|
|
746
|
+
/** The model the deck binds the alias to, as the deck writes it, which may itself be a reference. */
|
|
747
|
+
target: string;
|
|
748
|
+
}
|
|
749
|
+
/** What a waterfall reference is in one category. */
|
|
750
|
+
export interface WaterfallMatch extends ModelReferenceMatchBase {
|
|
751
|
+
/** The waterfall's steps, in order. */
|
|
752
|
+
fallbacks: string[];
|
|
753
|
+
}
|
|
754
|
+
/** What a bare handle reference is in one category. */
|
|
755
|
+
export interface HandleMatch extends ModelReferenceMatchBase {
|
|
756
|
+
/** The presets, aliases and waterfalls of this category whose binding names the handle directly, each written as a reference. */
|
|
757
|
+
via: string[];
|
|
758
|
+
}
|
|
759
|
+
/**
|
|
760
|
+
* One `matches` entry. An entry carries no `kind` of its own: the verdict's `kind` says
|
|
761
|
+
* which shape every entry of that verdict has, so narrow the verdict (see
|
|
762
|
+
* {@link ModelReferenceVerdict}) rather than the entry.
|
|
763
|
+
*/
|
|
764
|
+
export type ModelReferenceMatch = PresetMatch | AliasMatch | WaterfallMatch | HandleMatch;
|
|
765
|
+
/** The fields every verdict carries, whatever the reference's kind. */
|
|
766
|
+
export interface ModelReferenceVerdictBase {
|
|
767
|
+
/** The caller's reference, trimmed. */
|
|
768
|
+
reference: string;
|
|
769
|
+
/** The reference without its sigil or namespace. */
|
|
770
|
+
name: string;
|
|
771
|
+
/** The `type` asked, or `null` when none was; read open (see {@link ModelCheckCategory}). */
|
|
772
|
+
category: ModelCheckCategory | (string & {}) | null;
|
|
773
|
+
/**
|
|
774
|
+
* Whether the reference resolves in a category in scope. Open on purpose, under the
|
|
775
|
+
* spec's reader rule: "a client that reads a value it does not know treats the reference
|
|
776
|
+
* as unresolved". `string & {}` keeps the editor's completion on the two known values,
|
|
777
|
+
* and a consumer that switches on this field has to say what an unknown value does.
|
|
778
|
+
*/
|
|
779
|
+
resolution: ModelReferenceResolution | (string & {});
|
|
780
|
+
/** On `not_found`, the nearest names the caller may have meant, written as a method writes them; empty when it is `resolved`. */
|
|
781
|
+
suggestions: string[];
|
|
782
|
+
/** On `not_found`, the same name under another kind, in the categories in scope (`@best-claude` for `$best-claude`); empty when it is `resolved`. Show it first: it is the likeliest fault. */
|
|
783
|
+
other_kinds: string[];
|
|
784
|
+
/** On `not_found` with a `type`, the categories outside it where the same reference resolves; empty otherwise. Read open (see {@link ModelCheckCategory}). */
|
|
785
|
+
other_categories: (ModelCheckCategory | (string & {}))[];
|
|
786
|
+
}
|
|
787
|
+
/** A verdict on a preset reference (`$name` or `preset:name`). */
|
|
788
|
+
export interface PresetReferenceVerdict extends ModelReferenceVerdictBase {
|
|
789
|
+
kind: "preset";
|
|
790
|
+
/** One entry per category in scope where the reference resolves, in the order of the categories the check covers; empty on `not_found`. */
|
|
791
|
+
matches: PresetMatch[];
|
|
792
|
+
}
|
|
793
|
+
/** A verdict on an alias reference (`@name` or `alias:name`). */
|
|
794
|
+
export interface AliasReferenceVerdict extends ModelReferenceVerdictBase {
|
|
795
|
+
kind: "alias";
|
|
796
|
+
/** One entry per category in scope where the reference resolves, in the order of the categories the check covers; empty on `not_found`. */
|
|
797
|
+
matches: AliasMatch[];
|
|
798
|
+
}
|
|
799
|
+
/** A verdict on a waterfall reference (`~name` or `waterfall:name`). */
|
|
800
|
+
export interface WaterfallReferenceVerdict extends ModelReferenceVerdictBase {
|
|
801
|
+
kind: "waterfall";
|
|
802
|
+
/** One entry per category in scope where the reference resolves, in the order of the categories the check covers; empty on `not_found`. */
|
|
803
|
+
matches: WaterfallMatch[];
|
|
804
|
+
}
|
|
805
|
+
/** A verdict on a bare model handle (`name` or `handle:name`). */
|
|
806
|
+
export interface HandleReferenceVerdict extends ModelReferenceVerdictBase {
|
|
807
|
+
kind: "handle";
|
|
808
|
+
/** One entry per category in scope where the reference resolves, in the order of the categories the check covers; empty on `not_found`. */
|
|
809
|
+
matches: HandleMatch[];
|
|
810
|
+
}
|
|
811
|
+
/**
|
|
812
|
+
* The `GET /v1/models/check` 200 response — one arm per reference kind, discriminated on
|
|
813
|
+
* the wire's own `kind`. Narrowing on `kind` narrows `matches` with it
|
|
814
|
+
* (`verdict.kind === "preset"` makes every entry a {@link PresetMatch}), since all the
|
|
815
|
+
* matches of one verdict share its kind; no field is added to the wire to make it so.
|
|
816
|
+
*/
|
|
817
|
+
export type ModelReferenceVerdict = PresetReferenceVerdict | AliasReferenceVerdict | WaterfallReferenceVerdict | HandleReferenceVerdict;
|
|
703
818
|
export {};
|
package/dist/models.js
CHANGED
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Holds the Dict-serialized protocol concretes (`DictStuff` / `DictWorkingMemory`
|
|
5
5
|
* / `DictPipeOutput` and the default `RunResultExecute` binding), the Pipelex
|
|
6
|
-
* `/v1/validate` surface (`PipelexValidationResult` + `ValidationErrorItem`),
|
|
7
|
-
*
|
|
8
|
-
* the protocol wire types imported from the
|
|
6
|
+
* `/v1/validate` surface (`PipelexValidationResult` + `ValidationErrorItem`), the
|
|
7
|
+
* request/response models of the tools routes and the crate routes, and the verdict of
|
|
8
|
+
* the model reference check. Built on the protocol wire types imported from the
|
|
9
|
+
* `mthds/protocol` subpath.
|
|
9
10
|
*/
|
|
10
11
|
export {};
|
|
11
12
|
//# sourceMappingURL=models.js.map
|
package/dist/models.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../src/models.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../src/models.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG"}
|
package/dist/prepare-inputs.d.ts
CHANGED
|
@@ -46,6 +46,12 @@ export interface PrepareInputsBase {
|
|
|
46
46
|
pipe_ref?: string;
|
|
47
47
|
/** The caller's inputs (variable name → value), compact or explicit-envelope per input. */
|
|
48
48
|
inputs: Record<string, unknown>;
|
|
49
|
+
/**
|
|
50
|
+
* Stops the preparation between its steps, a file's read and its upload included: once it has
|
|
51
|
+
* aborted, neither the pipe I/O request nor any upload starts, and `prepareInputs` throws the
|
|
52
|
+
* abort. A request already sent runs to its end. It is not sent to the server.
|
|
53
|
+
*/
|
|
54
|
+
signal?: AbortSignal;
|
|
49
55
|
}
|
|
50
56
|
/**
|
|
51
57
|
* How the method is named — exactly one of the three selectors, each pinning the
|
package/dist/prepare-inputs.js
CHANGED
|
@@ -30,7 +30,9 @@
|
|
|
30
30
|
* dict. See `docs/input-preparation.md`, which `pipelex-sdk-python` mirrors case
|
|
31
31
|
* for case.
|
|
32
32
|
*/
|
|
33
|
-
import {
|
|
33
|
+
import { isValidationItem } from "./error-models.js";
|
|
34
|
+
import { throwIfAborted } from "./runs.js";
|
|
35
|
+
import { ApiResponseError, InputPreparationError, InvalidInputValueError, MethodLoadError, } from "./errors.js";
|
|
34
36
|
import { uploadFile } from "./upload.js";
|
|
35
37
|
const PIPELEX_STORAGE_SCHEME = "pipelex-storage://";
|
|
36
38
|
const HTTP_URL_RE = /^https?:\/\//i;
|
|
@@ -83,7 +85,7 @@ function isExplicitEnvelope(value) {
|
|
|
83
85
|
function decodeDataUrl(dataUrl) {
|
|
84
86
|
const comma = dataUrl.indexOf(",");
|
|
85
87
|
if (comma < 0) {
|
|
86
|
-
throw new
|
|
88
|
+
throw new InvalidInputValueError(`Malformed data URL (no comma separator): ${dataUrl.slice(0, 32)}…`);
|
|
87
89
|
}
|
|
88
90
|
const header = dataUrl.slice(5, comma); // strip "data:"
|
|
89
91
|
const payload = dataUrl.slice(comma + 1);
|
|
@@ -91,7 +93,7 @@ function decodeDataUrl(dataUrl) {
|
|
|
91
93
|
const contentType = header.split(";")[0] || "application/octet-stream";
|
|
92
94
|
// Decoding can throw on a malformed payload — a URIError from percent-decoding,
|
|
93
95
|
// or an InvalidCharacterError from `atob` on bad base64. Surface those as a typed
|
|
94
|
-
//
|
|
96
|
+
// InvalidInputValueError so a bad data URL stays within the preparation contract.
|
|
95
97
|
try {
|
|
96
98
|
if (isBase64) {
|
|
97
99
|
// Decode via atob in every runtime. atob rejects malformed base64 with an
|
|
@@ -105,7 +107,7 @@ function decodeDataUrl(dataUrl) {
|
|
|
105
107
|
return { bytes: new TextEncoder().encode(text), contentType };
|
|
106
108
|
}
|
|
107
109
|
catch (cause) {
|
|
108
|
-
throw new
|
|
110
|
+
throw new InvalidInputValueError(`Malformed data URL payload (${isBase64 ? "invalid base64" : "invalid percent-encoding"}): ${dataUrl.slice(0, 32)}…`, { cause });
|
|
109
111
|
}
|
|
110
112
|
}
|
|
111
113
|
/**
|
|
@@ -138,24 +140,27 @@ async function doResolveSource(ctx, source) {
|
|
|
138
140
|
return source; // reachable URL — pass through
|
|
139
141
|
if (source.startsWith("data:")) {
|
|
140
142
|
const { bytes, contentType } = decodeDataUrl(source);
|
|
141
|
-
|
|
143
|
+
throwIfAborted(ctx.signal);
|
|
144
|
+
const record = await uploadFile(ctx.client, bytes, { contentType, signal: ctx.signal });
|
|
142
145
|
ctx.uploads.push(record);
|
|
143
146
|
return record.uri;
|
|
144
147
|
}
|
|
145
148
|
// Anything else is a local filesystem path — Node only (uploadFile enforces it).
|
|
146
|
-
|
|
149
|
+
throwIfAborted(ctx.signal);
|
|
150
|
+
const record = await uploadFile(ctx.client, source, { signal: ctx.signal });
|
|
147
151
|
ctx.uploads.push(record);
|
|
148
152
|
return record.uri;
|
|
149
153
|
}
|
|
150
154
|
if (source instanceof Blob || source instanceof ArrayBuffer || source instanceof Uint8Array) {
|
|
151
|
-
|
|
155
|
+
throwIfAborted(ctx.signal);
|
|
156
|
+
const record = await uploadFile(ctx.client, source, { signal: ctx.signal });
|
|
152
157
|
ctx.uploads.push(record);
|
|
153
158
|
return record.uri;
|
|
154
159
|
}
|
|
155
160
|
// An unrecognized value sits at a file-bearing position (neither a source string,
|
|
156
161
|
// bytes, nor a canonical `{url}` content dict). Fail with a typed error rather than
|
|
157
162
|
// letting a raw TypeError escape from the byte-extraction path.
|
|
158
|
-
throw new
|
|
163
|
+
throw new InvalidInputValueError(`Unsupported value at a file input: expected a path string, bytes (Blob/File/ArrayBuffer/Uint8Array), ` +
|
|
159
164
|
`a data URL, an http(s)/pipelex-storage:// URL, or canonical {url} content; got ${typeof source}.`);
|
|
160
165
|
}
|
|
161
166
|
/** Resolve a value known to sit at a file position into canonical content with a rewritten `url`. */
|
|
@@ -314,7 +319,11 @@ async function fetchSignature(client, selector, pipeRef) {
|
|
|
314
319
|
"neither that the method loaded nor why it did not.", { verdict: { errorDomain: "runtime", retryable: false } });
|
|
315
320
|
}
|
|
316
321
|
if (!answer.is_valid) {
|
|
317
|
-
|
|
322
|
+
const items = answer.validation_errors;
|
|
323
|
+
throw new MethodLoadError(`Cannot prepare inputs: the method signature did not resolve — ${invalidReason(answer)}`, {
|
|
324
|
+
validationErrors: Array.isArray(items) ? items.filter(isValidationItem) : [],
|
|
325
|
+
serverMessage: typeof answer.message === "string" ? answer.message : undefined,
|
|
326
|
+
});
|
|
318
327
|
}
|
|
319
328
|
return result;
|
|
320
329
|
}
|
|
@@ -367,10 +376,12 @@ function selectedDescriptor(report) {
|
|
|
367
376
|
export async function prepareInputs(client, request) {
|
|
368
377
|
const selector = resolveSelector(request);
|
|
369
378
|
const pipeRef = normalizePipeRef(request.pipe_ref);
|
|
379
|
+
throwIfAborted(request.signal);
|
|
370
380
|
const report = await fetchSignature(client, selector, pipeRef);
|
|
381
|
+
throwIfAborted(request.signal);
|
|
371
382
|
const descriptor = selectedDescriptor(report);
|
|
372
383
|
const declared = new Map(descriptor.fields.map((field) => [field.name, field]));
|
|
373
|
-
const ctx = { client, uploads: [], dedup: new Map() };
|
|
384
|
+
const ctx = { client, signal: request.signal, uploads: [], dedup: new Map() };
|
|
374
385
|
const rewritten = { ...request.inputs };
|
|
375
386
|
for (const [name, callerValue] of Object.entries(request.inputs)) {
|
|
376
387
|
const field = declared.get(name);
|