@pipelex/sdk 0.18.0 → 0.18.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/dist/errors.d.ts +2 -2
- package/dist/errors.js +2 -2
- package/dist/execute-result.d.ts +3 -2
- package/dist/execute-result.js +3 -2
- package/dist/execute-result.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/runs.d.ts +4 -2
- package/dist/runs.js.map +1 -1
- package/package.json +1 -1
package/dist/errors.d.ts
CHANGED
|
@@ -201,8 +201,8 @@ export declare class RunFailedError extends PipelineRequestError {
|
|
|
201
201
|
* hands consumers a non-null `RunResults.main_stuff`. This surfaces the contract violation when it
|
|
202
202
|
* cannot: the hosted results endpoint answered a `200` with a null `main_stuff`, or a blocking
|
|
203
203
|
* `execute` response named a `main_stuff_name` whose stuff is absent from the returned working
|
|
204
|
-
* memory. `runId` locates the run. (
|
|
205
|
-
* valid output and does NOT throw; only a genuinely absent one does.)
|
|
204
|
+
* memory. `runId` locates the run. (An empty-but-present main stuff — `{ items: [] }`, `{ text:
|
|
205
|
+
* "" }` — is a valid output and does NOT throw; only a genuinely absent one does.)
|
|
206
206
|
*/
|
|
207
207
|
export declare class MissingMainStuffError extends PipelineRequestError {
|
|
208
208
|
readonly runId: string;
|
package/dist/errors.js
CHANGED
|
@@ -237,8 +237,8 @@ export class RunFailedError extends PipelineRequestError {
|
|
|
237
237
|
* hands consumers a non-null `RunResults.main_stuff`. This surfaces the contract violation when it
|
|
238
238
|
* cannot: the hosted results endpoint answered a `200` with a null `main_stuff`, or a blocking
|
|
239
239
|
* `execute` response named a `main_stuff_name` whose stuff is absent from the returned working
|
|
240
|
-
* memory. `runId` locates the run. (
|
|
241
|
-
* valid output and does NOT throw; only a genuinely absent one does.)
|
|
240
|
+
* memory. `runId` locates the run. (An empty-but-present main stuff — `{ items: [] }`, `{ text:
|
|
241
|
+
* "" }` — is a valid output and does NOT throw; only a genuinely absent one does.)
|
|
242
242
|
*/
|
|
243
243
|
export class MissingMainStuffError extends PipelineRequestError {
|
|
244
244
|
runId;
|
package/dist/execute-result.d.ts
CHANGED
|
@@ -44,8 +44,9 @@ export declare class PipelexExecuteResult implements DictRunResultExecute {
|
|
|
44
44
|
constructor(raw: DictRunResultExecute);
|
|
45
45
|
/**
|
|
46
46
|
* The resolved main output content, dug out of the working memory via `main_stuff_name`.
|
|
47
|
-
* Throws `MissingMainStuffError` if the completed run named no locatable main stuff.
|
|
48
|
-
*
|
|
47
|
+
* Throws `MissingMainStuffError` if the completed run named no locatable main stuff. An
|
|
48
|
+
* empty-but-present value (`{ items: [] }`, `{ text: "" }`) is a valid output and is returned
|
|
49
|
+
* as-is.
|
|
49
50
|
*/
|
|
50
51
|
get main_stuff(): unknown;
|
|
51
52
|
}
|
package/dist/execute-result.js
CHANGED
|
@@ -58,8 +58,9 @@ export class PipelexExecuteResult {
|
|
|
58
58
|
}
|
|
59
59
|
/**
|
|
60
60
|
* The resolved main output content, dug out of the working memory via `main_stuff_name`.
|
|
61
|
-
* Throws `MissingMainStuffError` if the completed run named no locatable main stuff.
|
|
62
|
-
*
|
|
61
|
+
* Throws `MissingMainStuffError` if the completed run named no locatable main stuff. An
|
|
62
|
+
* empty-but-present value (`{ items: [] }`, `{ text: "" }`) is a valid output and is returned
|
|
63
|
+
* as-is.
|
|
63
64
|
*/
|
|
64
65
|
get main_stuff() {
|
|
65
66
|
const name = this.main_stuff_name;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute-result.js","sourceRoot":"","sources":["../src/execute-result.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAEpD;;;;;;;GAOG;AACH,MAAM,uBAAuB,GAAG,IAAI,GAAG,CAAC,CAAC,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,WAAW,CAAC,CAAC,CAAC;AAEjG;;;;;;;;;;;;;;G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AI,CAAC,2CAA2C;gBACnF,kFAAkF,EACpF,IAAI,CAAC,eAAe,CACrB,CAAC;QACJ,CAAC;QACD,OAAO,KAAK,CAAC,OAAO,CAAC;IACvB,CAAC;CACF"}
|
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* errors. Consumers should import everything they need from `@pipelex/sdk`.
|
|
8
8
|
*/
|
|
9
9
|
/** Package version. Kept in sync with `package.json` — enforced by `tests/index.test.ts`. */
|
|
10
|
-
export declare const SDK_VERSION = "0.18.
|
|
10
|
+
export declare const SDK_VERSION = "0.18.1";
|
|
11
11
|
export * from "mthds/protocol";
|
|
12
12
|
export { PipelexApiClient, DEFAULT_API_BASE_URL } from "./client.js";
|
|
13
13
|
export type { MthdsFile, PipelexApiRunExtensions, PipelexHostedRunExtensions, PipelexRunOptions, PipelexStartOptions, ValidateMethodSelector, ValidateFilesOptions, PipelexApiClientOptions, } from "./client.js";
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* errors. Consumers should import everything they need from `@pipelex/sdk`.
|
|
8
8
|
*/
|
|
9
9
|
/** Package version. Kept in sync with `package.json` — enforced by `tests/index.test.ts`. */
|
|
10
|
-
export const SDK_VERSION = "0.18.
|
|
10
|
+
export const SDK_VERSION = "0.18.1";
|
|
11
11
|
// ── Pure MTHDS Protocol surface (re-exported from the `mthds/protocol` subpath) ──
|
|
12
12
|
// The standard's interface, wire models, request/options surface, abstract domain
|
|
13
13
|
// shapes, and the protocol-base `PipelineRequestError`. Re-exported so apps have a
|
package/dist/runs.d.ts
CHANGED
|
@@ -127,8 +127,10 @@ export interface RunResults {
|
|
|
127
127
|
pipeline_run_id: string;
|
|
128
128
|
/**
|
|
129
129
|
* The resolved main output content — always present for a completed run. Typed `unknown`
|
|
130
|
-
* because the content is polymorphic
|
|
131
|
-
*
|
|
130
|
+
* because the content is polymorphic: a structured output is an object of the concept's fields,
|
|
131
|
+
* a multiple output the envelope `{ items: [...] }` the runtime's `ListContent` serialises to,
|
|
132
|
+
* and a native is wrapped too (`{ text }`, `{ number }`). It may be a valid empty value — an
|
|
133
|
+
* empty `items`, an empty `text` — but it is never absent. See `docs/run-results.md`.
|
|
132
134
|
*/
|
|
133
135
|
main_stuff: unknown;
|
|
134
136
|
/**
|
package/dist/runs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runs.js","sourceRoot":"","sources":["../src/runs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAwC9D,MAAM,qBAAqB,GAA2B,IAAI,GAAG,CAAY;IACvE,WAAW;IACX,QAAQ;IACR,WAAW;IACX,YAAY;IACZ,WAAW;CACZ,CAAC,CAAC;AAEH,6EAA6E;AAC7E,MAAM,UAAU,mBAAmB,CAAC,MAAiB;IACnD,OAAO,qBAAqB,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAC3C,CAAC;AAED,+EAA+E;AAC/E,MAAM,UAAU,kBAAkB,CAAC,MAAiB;IAClD,OAAO,MAAM,KAAK,WAAW,CAAC;AAChC,CAAC;
|
|
1
|
+
{"version":3,"file":"runs.js","sourceRoot":"","sources":["../src/runs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAwC9D,MAAM,qBAAqB,GAA2B,IAAI,GAAG,CAAY;IACvE,WAAW;IACX,QAAQ;IACR,WAAW;IACX,YAAY;IACZ,WAAW;CACZ,CAAC,CAAC;AAEH,6EAA6E;AAC7E,MAAM,UAAU,mBAAmB,CAAC,MAAiB;IACnD,OAAO,qBAAqB,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAC3C,CAAC;AAED,+EAA+E;AAC/E,MAAM,UAAU,kBAAkB,CAAC,MAAiB;IAClD,OAAO,MAAM,KAAK,WAAW,CAAC;AAChC,CAAC;AAmMD,uEAAuE;AAEvE,MAAM,C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