@pipelex/sdk 0.14.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models.d.ts +25 -12
- package/package.json +2 -2
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.
|
|
10
|
+
export declare const SDK_VERSION = "0.15.0";
|
|
11
11
|
export * from "mthds/protocol";
|
|
12
12
|
export { PipelexApiClient, DEFAULT_API_BASE_URL } from "./client.js";
|
|
13
13
|
export type { MthdsFile, BuildInputsByMethodId, PipelexHostedRunExtensions, PipelexRunOptions, PipelexStartOptions, 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.
|
|
10
|
+
export const SDK_VERSION = "0.15.0";
|
|
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/models.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* the `/v1/build/*` request/response models. Built on the protocol wire types
|
|
8
8
|
* imported from the `mthds/protocol` subpath.
|
|
9
9
|
*/
|
|
10
|
-
import type { InvalidValidationReport, RunResultExecute, ValidationReport } from "mthds/protocol";
|
|
10
|
+
import type { InputForm, InvalidValidationReport, PipeIOContracts, RunResultExecute, ValidationReport } from "mthds/protocol";
|
|
11
11
|
export interface DictStuff {
|
|
12
12
|
concept: string;
|
|
13
13
|
content: unknown;
|
|
@@ -73,23 +73,36 @@ export interface LiftablePipeEntry {
|
|
|
73
73
|
* boundary — blueprints/graphs are language artifacts, so no `pipelex_` prefix
|
|
74
74
|
* inside this envelope.
|
|
75
75
|
*
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
*
|
|
76
|
+
* This SDK owns none of the artifacts the envelope carries, and it narrows the two the
|
|
77
|
+
* MTHDS standard has declared in the one way that keeps that true: by **importing** the
|
|
78
|
+
* standard's own types. `pipe_io_contracts` and `input_form` are `PipeIOContracts` and
|
|
79
|
+
* `InputForm` from `mthds/protocol`, the recommended extension fields of the protocol's
|
|
80
|
+
* validation report, declared once per language and re-exported unchanged through this
|
|
81
|
+
* package's barrel. Nothing about their shape is restated here, so there is no second
|
|
82
|
+
* source of truth free to drift from the one the server emits — which is precisely what
|
|
83
|
+
* the earlier ruling that kept both opaque was protecting against. Importing serves that
|
|
84
|
+
* concern better than opacity did, and the principle it was defending is unchanged: this
|
|
85
|
+
* envelope is transport, and the shapes it transports belong to the standard.
|
|
86
|
+
*
|
|
87
|
+
* `bundle_blueprint` and `graph_spec` do stay opaque transport (`Record<string, unknown>`
|
|
88
|
+
* / `unknown`): their canonical schemas are owned elsewhere — the runtime's blueprint
|
|
89
|
+
* models, and `@pipelex/mthds-ui`'s `GraphSpec` — and neither has a wire declaration in
|
|
90
|
+
* the standard for this SDK to import. Each narrows on the day one exists.
|
|
82
91
|
* Inherits the extension index signature, so any further server field is preserved.
|
|
83
92
|
*/
|
|
84
93
|
export interface PipelexValidationReport extends ValidationReport {
|
|
85
94
|
/** The batch's primary blueprint (first declaring `main_pipe`, else first). */
|
|
86
95
|
bundle_blueprint: Record<string, unknown>;
|
|
87
|
-
/** Per-pipe input/output contracts, keyed by namespaced `pipe_ref` (`domain.code`). */
|
|
88
|
-
pipe_io_contracts: Record<string, unknown>;
|
|
89
96
|
/**
|
|
90
|
-
* Per-pipe input
|
|
97
|
+
* Per-pipe input/output contracts, keyed by namespaced `pipe_ref` (`domain.code`) —
|
|
98
|
+
* the standard's `PipeIOContracts` artifact, imported rather than restated.
|
|
99
|
+
*/
|
|
100
|
+
pipe_io_contracts: PipeIOContracts;
|
|
101
|
+
/**
|
|
102
|
+
* Per-pipe input-form descriptors — the standard's `InputForm` artifact, derived from
|
|
91
103
|
* authored facts rather than the emitted JSON Schema, so a renderer can build a
|
|
92
|
-
* fill-in form from the verdict alone. Keyed
|
|
104
|
+
* fill-in form from the verdict alone. Keyed over the same `pipe_ref` set as
|
|
105
|
+
* `pipe_io_contracts`, an invariant the imported type states for both.
|
|
93
106
|
*
|
|
94
107
|
* OPTIONAL on purpose: this is an opt-in structured view, requested through
|
|
95
108
|
* `views: ["input_form"]` (see `validate`) and absent from any verdict that did not
|
|
@@ -101,7 +114,7 @@ export interface PipelexValidationReport extends ValidationReport {
|
|
|
101
114
|
* every caller a harder signature to read in exchange for one non-null assertion at the
|
|
102
115
|
* single call site that opts in.
|
|
103
116
|
*/
|
|
104
|
-
input_form?:
|
|
117
|
+
input_form?: InputForm;
|
|
105
118
|
/** Pipes the runtime may skip when an optional slot resolves absent. */
|
|
106
119
|
liftable_pipes: LiftablePipeEntry[];
|
|
107
120
|
/** Best-effort execution graph of the main pipe; `null` with no `main_pipe` or on degrade. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pipelex/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"description": "TypeScript SDK for the Pipelex hosted API — execute methods, manage runs, and call the product surface.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"vitest": "^4.0.18"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"mthds": "^0.
|
|
62
|
+
"mthds": "^0.24.0",
|
|
63
63
|
"smol-toml": "^1.6.0"
|
|
64
64
|
}
|
|
65
65
|
}
|