@pipelex/sdk 0.13.0 → 0.14.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/client.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { MTHDSProtocol, ModelCategory, ModelDeck, RunOptions, RunResultStart, StartOptions, VersionInfo } from "mthds/protocol";
2
2
  import type { BuildInputsRequest, BuildInputsResponse, BuildOutputRequest, BuildOutputResponse, BuildRunnerRequest, BuildRunnerResponse, CodegenRequest, CodegenResponse, ConceptRequest, ConceptResponse, DictPipeOutput, FormatResponse, InputsTemplateFormat, LintResponse, MthdsFileItem, PipeSpecRequest, PipeSpecResponse, PipelexValidationResult, ResolveRequest, ResolveResponse } from "./models.js";
3
3
  import { type RunRead, type RunResults, type RunResultState, type WaitForResultOptions } from "./runs.js";
4
- import type { BillingPortalResponse, ChangePlanResponse, CheckoutResponse, GatewayApiKey, GatewayApiKeyStatus, InvoiceView, Membership, MembershipsResponse, ListMethodsQuery, MethodData, MethodPage, MethodSummary, MethodWriteInput, OnboardingSubmission, PipelexApiKeyCreated, PipelexApiKeyList, ListRunsQuery, PipelineRun, RunDetail, RunPage, PlanView, ResolvedStorageUrl, SubscriptionResponse, UpdateRunInput, UploadInput, UploadedFile, UserProfile } from "./product-models.js";
4
+ import type { BillingPortalResponse, ChangePlanResponse, CheckoutResponse, GatewayApiKey, GatewayApiKeyStatus, InvoiceView, Membership, MembershipsResponse, ListMethodsQuery, MethodData, MethodDeletionAccepted, MethodPage, MethodSummary, MethodWriteInput, OnboardingSubmission, PipelexApiKeyCreated, PipelexApiKeyList, ListRunsQuery, PipelineRun, RunDetail, RunPage, PlanView, ResolvedStorageUrl, SubscriptionResponse, UpdateRunInput, UploadInput, UploadedFile, UserProfile } from "./product-models.js";
5
5
  import type { UploadableAsset, UploadFileOptions, UploadRecord } from "./upload.js";
6
6
  import type { PrepareInputsRequest, PreparedInputs } from "./prepare-inputs.js";
7
7
  import { PipelexExecuteResult } from "./execute-result.js";
@@ -11,6 +11,42 @@ export interface MthdsFile {
11
11
  /** Optional provenance URI threaded into validation diagnostics. */
12
12
  uri?: string;
13
13
  }
14
+ /**
15
+ * The hosted API's own run arguments — the layer-3 extensions this client adds
16
+ * on top of the MTHDS Protocol's run-argument surface (`RunOptions` /
17
+ * `StartOptions`, which stay pure).
18
+ *
19
+ * They are named options rather than `extra` entries because that is the one
20
+ * job a hosted client exists to do: `extra` remains the escape hatch for an
21
+ * extension this client does not know about, never the way to pass one it does.
22
+ * That split is normative for every client in the layered stack — it is not a
23
+ * preference of this one.
24
+ */
25
+ export interface PipelexHostedRunExtensions {
26
+ /**
27
+ * A stored method's catalog id (`mt_…`) — a **pass-through to the hosted
28
+ * API**, resolved server-side against the org's catalog. Nothing is expanded
29
+ * client-side, and it is meaningless off-platform: an open-source runner has
30
+ * no catalog, so it answers a `422` naming the key.
31
+ *
32
+ * Its meaning depends on what else the request carries:
33
+ *
34
+ * - **Alone** — the platform resolves the stored method's source (assembling
35
+ * its bundle when the method carries Python) and runs that.
36
+ * - **Alongside an inline source** (`mthds_contents` / `files` / `bundle_b64`)
37
+ * — the inline source is what RUNS (precedence), and the id is recorded as
38
+ * **run-history linkage** on the Run row. That linkage is what writes the
39
+ * index key `GET /v1/runs?method_id=` queries, so a run started without it
40
+ * is absent from its method's history permanently.
41
+ *
42
+ * An empty string is treated as absent and is not sent.
43
+ */
44
+ method_id?: string | null;
45
+ }
46
+ /** `execute()` options — the protocol's run arguments plus the hosted extensions. */
47
+ export type PipelexRunOptions = RunOptions & PipelexHostedRunExtensions;
48
+ /** `start()` / `startAndWaitForResult()` options — the same, for the durable path. */
49
+ export type PipelexStartOptions = StartOptions & PipelexHostedRunExtensions;
14
50
  /**
15
51
  * The by-id alternative to the wire model `BuildInputsRequest`: resolve the
16
52
  * closure from a stored method's `method_id` instead of inline `files`.
@@ -35,6 +71,8 @@ export interface ValidateFilesOptions {
35
71
  allowSignatures?: boolean;
36
72
  /** Optional validate presentation hints, e.g. ["markdown"]. */
37
73
  render?: string[];
74
+ /** Optional structured-view opt-in tokens, e.g. ["input_form"]; sent only when given. */
75
+ views?: string[];
38
76
  /** Per-call request ceiling; defaults to the 20-min execute ceiling. */
39
77
  timeoutMs?: number;
40
78
  /** Caller-driven cancellation; the abort reason propagates untouched. */
@@ -117,17 +155,18 @@ export declare class PipelexApiClient implements MTHDSProtocol<DictPipeOutput> {
117
155
  * durable start+poll path. Throws `RunStillRunningError` on the protocol's
118
156
  * optional 202 degrade.
119
157
  */
120
- execute(options: RunOptions): Promise<PipelexExecuteResult>;
158
+ execute(options: PipelexRunOptions): Promise<PipelexExecuteResult>;
121
159
  /**
122
160
  * Start a method asynchronously — `POST /v1/start` (202, no output yet).
123
161
  *
124
- * Server-specific extension args ride `options.extra` and merge into the
125
- * request body — the server you call defines and handles them (including a
126
- * client-supplied run id where a server supports one). The returned
127
- * `pipeline_run_id` is always authoritative; on a hosted deployment it is
128
- * durable — poll `getRunStatus` / `getRunResult`.
162
+ * The hosted `method_id` is a named option (see `PipelexHostedRunExtensions`);
163
+ * `options.extra` stays the generic passthrough for extension args this client
164
+ * does not know about — the server you call defines and handles them
165
+ * (including a client-supplied run id where a server supports one). The
166
+ * returned `pipeline_run_id` is always authoritative; on a hosted deployment
167
+ * it is durable — poll `getRunStatus` / `getRunResult`.
129
168
  */
130
- start(options: StartOptions): Promise<RunResultStart>;
169
+ start(options: PipelexStartOptions): Promise<RunResultStart>;
131
170
  /**
132
171
  * Parse, validate, and dry-run an MTHDS bundle — `POST /v1/validate`.
133
172
  *
@@ -149,8 +188,20 @@ export declare class PipelexApiClient implements MTHDSProtocol<DictPipeOutput> {
149
188
  * This client always asks for Markdown so both valid results and produced
150
189
  * validation-error verdicts carry `rendered_markdown`; callers may add more
151
190
  * tokens. Unknown tokens are server-side lenient-ignored (never a 422).
152
- */
153
- validate(mthdsContents: string[], allowSignatures?: boolean, mthdsSources?: string[], render?: string[], options?: {
191
+ *
192
+ * `views` is the sibling opt-in for *structured* views where `render` carries
193
+ * *rendered text*. The two lists are independent, each resolving its own tokens
194
+ * against its own supported set, and each supported token adds a same-named
195
+ * top-level field to the valid arm — today only `input_form`. Unlike `render`,
196
+ * this client sends `views` ONLY when the caller asks: the point of an opt-in view
197
+ * is that the default response stays byte-identical, and the highest-frequency
198
+ * consumers (hook pipelines, CI gates, agent loops) never pay for bytes they
199
+ * discard. `pipelex-api` gates `input_form` on this token as of 0.18.0; a 0.17.0
200
+ * runner resolved no token (the key is silently ignored, never a 422) and emitted
201
+ * the field regardless — which is why `PipelexValidationReport.input_form` is typed
202
+ * optional rather than required.
203
+ */
204
+ validate(mthdsContents: string[], allowSignatures?: boolean, mthdsSources?: string[], render?: string[], views?: string[], options?: {
154
205
  timeoutMs?: number;
155
206
  signal?: AbortSignal;
156
207
  }): Promise<PipelexValidationResult>;
@@ -363,7 +414,7 @@ export declare class PipelexApiClient implements MTHDSProtocol<DictPipeOutput> {
363
414
  * - **Bare runner** (no run store): the blocking `POST /v1/execute`, which
364
415
  * has no gateway cap off-platform and returns the native `pipe_output`.
365
416
  */
366
- startAndWaitForResult(options: StartOptions, pollOptions?: WaitForResultOptions): Promise<RunResults>;
417
+ startAndWaitForResult(options: PipelexStartOptions, pollOptions?: WaitForResultOptions): Promise<RunResults>;
367
418
  /** The authenticated user's profile — `GET /v1/me`. */
368
419
  getMe(): Promise<UserProfile>;
369
420
  /**
@@ -423,6 +474,23 @@ export declare class PipelexApiClient implements MTHDSProtocol<DictPipeOutput> {
423
474
  createMethod(input: MethodWriteInput): Promise<MethodData>;
424
475
  /** Replace a method (rename = changed `name`) — `PUT /v1/methods/{id}`. */
425
476
  updateMethod(methodId: string, input: MethodWriteInput): Promise<MethodData>;
477
+ /**
478
+ * Erase a method and everything it produced — `DELETE /v1/methods/{id}`.
479
+ *
480
+ * **Asynchronous, and the return value says so.** The platform answers `202`
481
+ * the moment it has claimed the method and terminated its in-flight
482
+ * workflows; the rest of the cascade (runs, events, S3 objects) is enqueued.
483
+ * So a resolved promise means "accepted", never "gone" — completion is the
484
+ * method's row disappearing from `listMethods`, not any field of the
485
+ * acceptance body. Until then the row stays listed with a `deletion_state`,
486
+ * which is what lets a UI render it as "Deleting…", while `getMethod` refuses
487
+ * it with a `409`.
488
+ *
489
+ * A double-clicked delete is safe: the claim is a conditional write, so the
490
+ * second call is an `ApiResponseError` (`409 conflict`) rather than a second
491
+ * cascade over the same runs. An unknown or foreign-org id is a `404`.
492
+ */
493
+ deleteMethod(methodId: string): Promise<MethodDeletionAccepted>;
426
494
  /** The caller's org memberships + active-org feature flags — `GET /v1/organizations/memberships`. */
427
495
  listMemberships(): Promise<MembershipsResponse>;
428
496
  /** Create an organization — `POST /v1/organizations`. */
@@ -565,9 +633,12 @@ export declare class PipelexApiClient implements MTHDSProtocol<DictPipeOutput> {
565
633
  updateRun(runId: string, input: UpdateRunInput): Promise<void>;
566
634
  /**
567
635
  * Blocking `POST /v1/execute` adapted onto `RunResults` — the bare-runner
568
- * path. Forwards every protocol field PLUS the `extra` extension passthrough:
569
- * an extension-only call (`{ extra }` with no pipe_code/bundle) or a vendor
570
- * selector riding `extra` must survive this path, not just the durable one.
636
+ * path. Forwards every protocol field PLUS both extension surfaces: the
637
+ * hosted `method_id` and the generic `extra` passthrough. An extension-only
638
+ * call (`{ extra }` with no pipe_code/bundle) or a vendor selector riding
639
+ * `extra` must survive this path, not just the durable one — and a hosted
640
+ * `method_id` must reach the server here too, so a runner that cannot resolve
641
+ * it says so (Rule 4) instead of the client silently dropping it.
571
642
  */
572
643
  private executeBlocking;
573
644
  }
package/dist/client.js CHANGED
@@ -266,11 +266,13 @@ export class PipelexApiClient {
266
266
  */
267
267
  async execute(options) {
268
268
  const extensions = buildExtensions(options.extra);
269
+ const hosted = buildHostedRunExtensions(options);
269
270
  if (!options.pipe_code &&
270
271
  (!options.mthds_contents || options.mthds_contents.length === 0) &&
271
272
  !hasBundlePayload(options) &&
273
+ Object.keys(hosted).length === 0 &&
272
274
  Object.keys(extensions).length === 0) {
273
- throw new PipelineRequestError("Either pipe_code, mthds_contents, a method bundle (files/bundle_b64) or a server-specific extension arg (extra) must be provided to execute().");
275
+ throw new PipelineRequestError("Either pipe_code, mthds_contents, a method bundle (files/bundle_b64), a hosted method_id or a server-specific extension arg (extra) must be provided to execute().");
274
276
  }
275
277
  assertExclusiveRunSources(options);
276
278
  const request = {
@@ -282,6 +284,7 @@ export class PipelexApiClient {
282
284
  dynamic_output_concept_ref: options.dynamic_output_concept_ref,
283
285
  files: nonEmptyFiles(options.files),
284
286
  bundle_b64: nonEmptyString(options.bundle_b64),
287
+ ...hosted,
285
288
  ...extensions,
286
289
  };
287
290
  const startedAt = Date.now();
@@ -313,19 +316,22 @@ export class PipelexApiClient {
313
316
  /**
314
317
  * Start a method asynchronously — `POST /v1/start` (202, no output yet).
315
318
  *
316
- * Server-specific extension args ride `options.extra` and merge into the
317
- * request body — the server you call defines and handles them (including a
318
- * client-supplied run id where a server supports one). The returned
319
- * `pipeline_run_id` is always authoritative; on a hosted deployment it is
320
- * durable — poll `getRunStatus` / `getRunResult`.
319
+ * The hosted `method_id` is a named option (see `PipelexHostedRunExtensions`);
320
+ * `options.extra` stays the generic passthrough for extension args this client
321
+ * does not know about — the server you call defines and handles them
322
+ * (including a client-supplied run id where a server supports one). The
323
+ * returned `pipeline_run_id` is always authoritative; on a hosted deployment
324
+ * it is durable — poll `getRunStatus` / `getRunResult`.
321
325
  */
322
326
  async start(options) {
323
327
  const extensions = buildExtensions(options.extra);
328
+ const hosted = buildHostedRunExtensions(options);
324
329
  if (!options.pipe_code &&
325
330
  (!options.mthds_contents || options.mthds_contents.length === 0) &&
326
331
  !hasBundlePayload(options) &&
332
+ Object.keys(hosted).length === 0 &&
327
333
  Object.keys(extensions).length === 0) {
328
- throw new PipelineRequestError("Either pipe_code, mthds_contents, a method bundle (files/bundle_b64) or a server-specific extension arg (extra) must be provided to start().");
334
+ throw new PipelineRequestError("Either pipe_code, mthds_contents, a method bundle (files/bundle_b64), a hosted method_id or a server-specific extension arg (extra) must be provided to start().");
329
335
  }
330
336
  assertExclusiveRunSources(options);
331
337
  // `?? undefined` so JSON.stringify drops absent fields from the wire body.
@@ -338,6 +344,7 @@ export class PipelexApiClient {
338
344
  dynamic_output_concept_ref: options.dynamic_output_concept_ref ?? undefined,
339
345
  files: nonEmptyFiles(options.files),
340
346
  bundle_b64: nonEmptyString(options.bundle_b64),
347
+ ...hosted,
341
348
  ...extensions,
342
349
  };
343
350
  const url = this.url("start");
@@ -380,8 +387,20 @@ export class PipelexApiClient {
380
387
  * This client always asks for Markdown so both valid results and produced
381
388
  * validation-error verdicts carry `rendered_markdown`; callers may add more
382
389
  * tokens. Unknown tokens are server-side lenient-ignored (never a 422).
390
+ *
391
+ * `views` is the sibling opt-in for *structured* views where `render` carries
392
+ * *rendered text*. The two lists are independent, each resolving its own tokens
393
+ * against its own supported set, and each supported token adds a same-named
394
+ * top-level field to the valid arm — today only `input_form`. Unlike `render`,
395
+ * this client sends `views` ONLY when the caller asks: the point of an opt-in view
396
+ * is that the default response stays byte-identical, and the highest-frequency
397
+ * consumers (hook pipelines, CI gates, agent loops) never pay for bytes they
398
+ * discard. `pipelex-api` gates `input_form` on this token as of 0.18.0; a 0.17.0
399
+ * runner resolved no token (the key is silently ignored, never a 422) and emitted
400
+ * the field regardless — which is why `PipelexValidationReport.input_form` is typed
401
+ * optional rather than required.
383
402
  */
384
- async validate(mthdsContents, allowSignatures = false, mthdsSources, render, options = {}) {
403
+ async validate(mthdsContents, allowSignatures = false, mthdsSources, render, views, options = {}) {
385
404
  const body = {
386
405
  mthds_contents: mthdsContents,
387
406
  allow_signatures: allowSignatures,
@@ -390,6 +409,9 @@ export class PipelexApiClient {
390
409
  body.mthds_sources = mthdsSources;
391
410
  }
392
411
  body.render = withValidateMarkdownRender(render);
412
+ if (views !== undefined) {
413
+ body.views = views;
414
+ }
393
415
  const res = await this.requestRaw("POST", this.url("validate"), {
394
416
  body,
395
417
  timeoutMs: options.timeoutMs,
@@ -417,7 +439,7 @@ export class PipelexApiClient {
417
439
  const mthdsSources = hasAnyUri
418
440
  ? files.map((file, index) => file.uri ?? `inline://file-${index + 1}.mthds`)
419
441
  : undefined;
420
- return this.validate(mthdsContents, options.allowSignatures ?? false, mthdsSources, options.render, {
442
+ return this.validate(mthdsContents, options.allowSignatures ?? false, mthdsSources, options.render, options.views, {
421
443
  timeoutMs: options.timeoutMs,
422
444
  signal: options.signal,
423
445
  });
@@ -428,11 +450,16 @@ export class PipelexApiClient {
428
450
  // runner, but neither the gateway's API-key allowlist nor the platform's tooling
429
451
  // proxy lists them, so every `*.pipelex.com` origin answers a gateway
430
452
  // `403 {"message":"Forbidden"}` — refused before any service sees the request.
431
- // Measured 2026-08-19 on prod AND `api-dev.pipelex.com`: on the same origin, with
432
- // the same key, `validate` succeeds while these two 403. Dev is not a workaround.
453
+ // Measured 2026-08-19 and re-measured 2026-08-23 on prod AND api-dev: on the same
454
+ // origin, with the same key, `validate` succeeds while these two 403.
433
455
  //
434
- // The crate routes (`resolve`/`codegen`) shared this gap and were allowlisted on
435
- // dev — these two were NOT included in that change. Point `baseUrl` at a runner.
456
+ // That blocks nothing, because lint and format are toolchain capabilities rather
457
+ // than hosted ones: `plxt` carries both, and the post-edit hook this repo builds
458
+ // (`npm run build:hook`) runs them offline through `@pipelex/tools-wasm` with no
459
+ // credentials (see `src/hooks/claude-mthds-check.ts`), with these two methods as the
460
+ // published package's documented fallback against a runner. The crate
461
+ // routes (`resolve`/`codegen`) shared this gap and are now exposed everywhere;
462
+ // these two were not included, a known non-critical item on the platform's list.
436
463
  // Tracked in `wip/hosted-exposure-crate-and-tools-routes.md`.
437
464
  /**
438
465
  * Lint one `.mthds` file against the embedded MTHDS schema — `POST /v1/lint`.
@@ -546,21 +573,17 @@ export class PipelexApiClient {
546
573
  }
547
574
  // ── Crate extensions (Pipelex API — `/v1/resolve`, `/v1/codegen`) ─────
548
575
  //
549
- // HOSTED EXPOSURE IS PARTIAL — dev yes, prod not yet. Both routes are served by
550
- // any `pipelex-api` runner. On the hosted plane they must additionally be listed
551
- // by the gateway's API-key allowlist and the platform's tooling proxy, which each
552
- // enumerate routes explicitly (`validate`, `models`, `build/*`, …); an unlisted
553
- // path answers a gateway `403 {"message":"Forbidden"}` — refused before any
554
- // service sees it, so not even an RFC 7807 problem body.
555
- //
556
- // Measured 2026-08-19, same key, same run:
557
- // api-dev.pipelex.com (pipelex-hosted@0.9.0) resolve + codegen OK, full
558
- // verdict discipline intact (200 `is_valid:false`, 501, 422)
559
- // api.pipelex.com (pipelex-hosted@0.2.6) both still 403
576
+ // Served by any `pipelex-api` runner AND on every hosted origin. On the hosted
577
+ // plane a route is reachable only when the gateway's API-key allowlist and the
578
+ // platform's tooling proxy both list it — they each enumerate routes explicitly
579
+ // (`validate`, `models`, `build/*`, …), and an unlisted path answers a gateway
580
+ // `403 {"message":"Forbidden"}`, refused before any service sees it, so not even
581
+ // an RFC 7807 problem body. Both list `resolve` and `codegen`.
560
582
  //
561
- // So prod is waiting on the deploy, not on another code change. `lint`/`format`
562
- // are still 403 on BOTH — only the crate routes were allowlisted. Tracked in
563
- // `wip/hosted-exposure-crate-and-tools-routes.md`.
583
+ // Measured 2026-08-23 with a real key: api.pipelex.com (pipelex-hosted@0.10.1)
584
+ // serves both, verdict discipline intact (200 `is_valid:false`, 501, 422);
585
+ // api-dev.pipelex.com has since 2026-08-13. `lint`/`format` are the two still
586
+ // unexposed — see their section above for why that blocks nothing.
564
587
  //
565
588
  // Both are STATIC routes (no dry-run sweep), so like every static sibling they take
566
589
  // no `timeoutMs`/`signal` — see the policy note on `requestExtension` before adding
@@ -948,6 +971,25 @@ export class PipelexApiClient {
948
971
  const wire = await this.requestProduct("PUT", `methods/${encodeURIComponent(methodId)}`, methodWriteToWire(input));
949
972
  return methodDataFromWire(wire);
950
973
  }
974
+ /**
975
+ * Erase a method and everything it produced — `DELETE /v1/methods/{id}`.
976
+ *
977
+ * **Asynchronous, and the return value says so.** The platform answers `202`
978
+ * the moment it has claimed the method and terminated its in-flight
979
+ * workflows; the rest of the cascade (runs, events, S3 objects) is enqueued.
980
+ * So a resolved promise means "accepted", never "gone" — completion is the
981
+ * method's row disappearing from `listMethods`, not any field of the
982
+ * acceptance body. Until then the row stays listed with a `deletion_state`,
983
+ * which is what lets a UI render it as "Deleting…", while `getMethod` refuses
984
+ * it with a `409`.
985
+ *
986
+ * A double-clicked delete is safe: the claim is a conditional write, so the
987
+ * second call is an `ApiResponseError` (`409 conflict`) rather than a second
988
+ * cascade over the same runs. An unknown or foreign-org id is a `404`.
989
+ */
990
+ async deleteMethod(methodId) {
991
+ return this.requestProduct("DELETE", `methods/${encodeURIComponent(methodId)}`);
992
+ }
951
993
  /** The caller's org memberships + active-org feature flags — `GET /v1/organizations/memberships`. */
952
994
  async listMemberships() {
953
995
  return this.requestProduct("GET", "organizations/memberships");
@@ -1162,9 +1204,12 @@ export class PipelexApiClient {
1162
1204
  }
1163
1205
  /**
1164
1206
  * Blocking `POST /v1/execute` adapted onto `RunResults` — the bare-runner
1165
- * path. Forwards every protocol field PLUS the `extra` extension passthrough:
1166
- * an extension-only call (`{ extra }` with no pipe_code/bundle) or a vendor
1167
- * selector riding `extra` must survive this path, not just the durable one.
1207
+ * path. Forwards every protocol field PLUS both extension surfaces: the
1208
+ * hosted `method_id` and the generic `extra` passthrough. An extension-only
1209
+ * call (`{ extra }` with no pipe_code/bundle) or a vendor selector riding
1210
+ * `extra` must survive this path, not just the durable one — and a hosted
1211
+ * `method_id` must reach the server here too, so a runner that cannot resolve
1212
+ * it says so (Rule 4) instead of the client silently dropping it.
1168
1213
  */
1169
1214
  async executeBlocking(options) {
1170
1215
  const response = await this.execute({
@@ -1178,6 +1223,7 @@ export class PipelexApiClient {
1178
1223
  // this path runs the same method as the durable one, or it runs nothing.
1179
1224
  files: options.files ?? undefined,
1180
1225
  bundle_b64: options.bundle_b64 ?? undefined,
1226
+ method_id: options.method_id ?? undefined,
1181
1227
  extra: options.extra ?? undefined,
1182
1228
  });
1183
1229
  return mapRunResultToRunResults(response);
@@ -1247,11 +1293,27 @@ const PROTOCOL_REQUEST_KEYS = [
1247
1293
  "files",
1248
1294
  "bundle_b64",
1249
1295
  ];
1296
+ // The HOSTED API's own request fields — the layer-3 extensions this client
1297
+ // names itself. Reserved on `extra` for the same reason the protocol fields
1298
+ // are: `extra` merges last, so a smuggled copy would overwrite the validated
1299
+ // named option and arrive by a second path with different validation.
1300
+ //
1301
+ // The guard is deliberately PER LAYER. It lives here, in the hosted client,
1302
+ // and must never be pushed down into the protocol clients (`mthds` /
1303
+ // `mthds-python`): a layer that does not own an argument has no business
1304
+ // rejecting it — a protocol client talking to some other vendor's server must
1305
+ // keep passing that vendor's `method_id` straight through. That per-layer
1306
+ // split is normative for the whole layered client stack.
1307
+ const HOSTED_REQUEST_KEYS = ["method_id"];
1250
1308
  // Keys that must never ride `extra`: the named request options above (which
1251
1309
  // `extra` would overwrite — it merges last into the body) plus the client-only
1252
1310
  // `bundleMain` hint, which is documented as never-serialized and so must not
1253
1311
  // reach the wire through the passthrough either.
1254
- const RESERVED_EXTRA_KEYS = new Set([...PROTOCOL_REQUEST_KEYS, "bundleMain"]);
1312
+ const RESERVED_EXTRA_KEYS = new Set([
1313
+ ...PROTOCOL_REQUEST_KEYS,
1314
+ ...HOSTED_REQUEST_KEYS,
1315
+ "bundleMain",
1316
+ ]);
1255
1317
  // Prototype-pollution vectors. An own `__proto__` (exactly what `JSON.parse`
1256
1318
  // yields, and `extra` is the field most likely populated from untrusted JSON),
1257
1319
  // `constructor`, or `prototype` copied onto the body would make this client a
@@ -1282,6 +1344,20 @@ function buildExtensions(extra) {
1282
1344
  }
1283
1345
  return result;
1284
1346
  }
1347
+ /**
1348
+ * Copy the hosted API's own run arguments onto the wire body. Named options,
1349
+ * not `extra` entries — see `PipelexHostedRunExtensions`.
1350
+ *
1351
+ * An absent or empty `method_id` yields an empty object, so the key is simply
1352
+ * not sent: `method_id: ""` selects no method and carries no linkage, and
1353
+ * putting it on the wire would only make the server reject a request the client
1354
+ * already knows is empty. That emptiness also means it does not count towards
1355
+ * the "something to run" precondition, which reads this object's size.
1356
+ */
1357
+ function buildHostedRunExtensions(options) {
1358
+ const methodId = nonEmptyString(options.method_id);
1359
+ return methodId === undefined ? {} : { method_id: methodId };
1360
+ }
1285
1361
  /**
1286
1362
  * Normalize a bundle encoding for the wire: an empty map / string is NOT a
1287
1363
  * runnable bundle, so it must not be sent (the runner rejects a zero-file
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAWA,+EAA+E;AAC/E,gFAAgF;AAChF,uEAAuE;AACvE,OAAO,EACL,yBAAyB,EACzB,gBAAgB,EAChB,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,gBAAgB,CAAC;AAyBxB,OAAO,EACL,eAAe,GAMhB,MAAM,WAAW,CAAC;AA8BnB,OAAO,EACL,gBAAgB,EAChB,mBAAmB,EACnB,sBAAsB,EACtB,qBAAqB,EACrB,2BAA2B,EAC3B,oBAAoB,EACpB,4BAA4B,EAC5B,oBAAoB,GACrB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,OAAO,EAAE,aAAa,IAAI,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAEjG,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAE3D,+EAA+E;AAC/E,EAAE;AACF,+EAA+E;AAC/E,+EAA+E;AAC/E,4EAA4E;AAC5E,0EAA0E;AAC1E,4EAA4E;AAC5E,2EAA2E;AAC3E,sDAAsD;AACtD,EAAE;AACF,+EAA+E;AAC/E,6EAA6E;AAC7E,6CAA6C;AAC7C,MAAM,SAAS,GAAG,MAAM,CAAC;AA+DzB,qFAAqF;AACrF,MA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AE,CAAC;AAC9D,CAAC"}
package/dist/index.d.ts CHANGED
@@ -7,18 +7,18 @@
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.13.0";
10
+ export declare const SDK_VERSION = "0.14.0";
11
11
  export * from "mthds/protocol";
12
12
  export { PipelexApiClient, DEFAULT_API_BASE_URL } from "./client.js";
13
- export type { MthdsFile, BuildInputsByMethodId, ValidateFilesOptions, PipelexApiClientOptions, } from "./client.js";
13
+ export type { MthdsFile, BuildInputsByMethodId, PipelexHostedRunExtensions, PipelexRunOptions, PipelexStartOptions, ValidateFilesOptions, PipelexApiClientOptions, } from "./client.js";
14
14
  export { methodSourceToContents } from "./method-source.js";
15
15
  export { PipelexExecuteResult } from "./execute-result.js";
16
16
  export type { UploadableAsset, UploadFileOptions, UploadRecord } from "./upload.js";
17
17
  export type { PrepareInputsRequest, PreparedInputs } from "./prepare-inputs.js";
18
- export type { DiagnosticKind, DiagnosticRange, Diagnostic, LintResponse, FormatResponse, DictStuff, DictWorkingMemory, DictPipeOutput, DictRunResultExecute, DryRunStatus, ValidatedPipeEntry, PipelexValidationReport, PipelexInvalidReport, PipelexValidationResult, ValidationErrorCategory, ValidationErrorItem, ConceptRepresentationFormat, InputsTemplateFormat, MthdsFileItem, CrateRequestBase, BuildRequestBase, BuildInputsRequest, BuildOutputRequest, BuildRunnerRequest, ConceptRequest, PipeSpecRequest, CrateInvalidReport, BuildInputsValidReport, BuildOutputValidReport, BuildRunnerValidReport, GeneratedArtifact, RunnerStructures, BuildInputsResponse, BuildOutputResponse, BuildRunnerResponse, ConceptResponse, PipeSpecResponse, ResolveRequest, ResolveValidReport, ResolveResponse, CodegenKind, CodegenTarget, CodegenRequest, CodegenValidReport, CodegenResponse, } from "./models.js";
18
+ export type { DiagnosticKind, DiagnosticRange, Diagnostic, LintResponse, FormatResponse, DictStuff, DictWorkingMemory, DictPipeOutput, DictRunResultExecute, DryRunStatus, ValidatedPipeEntry, LiftablePipeEntry, PipelexValidationReport, PipelexInvalidReport, PipelexValidationResult, ValidationErrorCategory, ValidationErrorItem, FixSafety, FixOpKind, TomlScalar, TomlValue, SetKeyOp, EnsureTableOp, DeleteKeyOp, DeleteTableOp, RenameTableKeyOp, MoveKeyOp, RemapValueOp, FixOp, SuggestedFix, ConceptRepresentationFormat, InputsTemplateFormat, MthdsFileItem, CrateRequestBase, BuildRequestBase, BuildInputsRequest, BuildOutputRequest, BuildRunnerRequest, ConceptRequest, PipeSpecRequest, CrateInvalidReport, BuildInputsValidReport, BuildOutputValidReport, BuildRunnerValidReport, GeneratedArtifact, RunnerStructures, BuildInputsResponse, BuildOutputResponse, BuildRunnerResponse, ConceptResponse, PipeSpecResponse, ResolveRequest, ResolveValidReport, ResolveResponse, CodegenKind, CodegenTarget, CodegenRequest, CodegenValidReport, CodegenResponse, } from "./models.js";
19
19
  export { runCodegenCheck, isStampableArtifactPath, STAMPABLE_ARTIFACT_SUFFIXES, CodegenLockError, } from "./codegen-check.js";
20
20
  export type { CodegenCheckInput, CodegenCheckReport, CodegenDrift, CodegenDriftCategory, CodegenTreeFile, } from "./codegen-check.js";
21
- export type { UserProfile, ListMethodsQuery, MethodData, MethodDeletionState, MethodPage, MethodSummary, MethodWriteInput, Membership, MembershipsResponse, SubscriptionResponse, PlanView, InvoiceView, CheckoutResponse, ChangePlanResponse, BillingPortalResponse, PipelexApiKey, PipelexApiKeyCreated, PipelexApiKeyList, GatewayApiKey, GatewayApiKeyStatus, OnboardingRole, OnboardingCurrentTool, OnboardingInputType, OnboardingHeardFrom, OnboardingSubmission, ResolvedStorageUrl, UploadInput, UploadedFile, PipeStatus, ListRunsQuery, PipelineRun, RunDetail, RunErrorReport, RunPage, UpdateRunInput, } from "./product-models.js";
21
+ export type { UserProfile, ListMethodsQuery, MethodData, MethodDeletionAccepted, MethodDeletionState, MethodPage, MethodSummary, MethodWriteInput, Membership, MembershipsResponse, SubscriptionResponse, PlanView, InvoiceView, CheckoutResponse, ChangePlanResponse, BillingPortalResponse, PipelexApiKey, PipelexApiKeyCreated, PipelexApiKeyList, GatewayApiKey, GatewayApiKeyStatus, OnboardingRole, OnboardingCurrentTool, OnboardingInputType, OnboardingHeardFrom, OnboardingSubmission, ResolvedStorageUrl, UploadInput, UploadedFile, PipeStatus, ListRunsQuery, PipelineRun, RunDetail, RunErrorReport, RunPage, UpdateRunInput, } from "./product-models.js";
22
22
  export { isTerminalRunStatus, isSuccessRunStatus } from "./runs.js";
23
23
  export type { RunStatus, RunPublic, RunRead, RunResults, RunResultState, TokensUsageRecord, WaitForResultOptions, } from "./runs.js";
24
24
  export { ApiResponseError, ApiUnreachableError, ClientAuthenticationError, MissingMainStuffError, PipelineExecuteTimeoutError, RunFailedError, RunTimeoutError, RunStillRunningError, RunLifecycleUnavailableError, InputPreparationError, EmptyMethodSourceError, InvalidLocalSourceError, RejectedAssetError, UnsupportedUploadCapabilityError, UploadAuthenticationError, UploadTransportError, } from "./errors.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.13.0";
10
+ export const SDK_VERSION = "0.14.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/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,6FAA6F;AAC7F,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC;AAEpC,oFAAoF;AACpF,kFAAkF;AAClF,mFAAmF;AACnF,wBAAwB;AACxB,cAAc,gBAA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AAC5E,iFAAiF;AACjF,0EAA0E;AAC1E,OAAO,EACL,eAAe,EACf,uBAAuB,EACvB,2BAA2B,EAC3B,gBAAgB,GACjB,MAAM,oBAAoB,CAAC;AAiD5B,wEAAwE;AACxE,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAWpE,+EAA+E;AAC/E,OAAO,EACL,gBAAgB,EAChB,mBAAmB,EACnB,yBAAyB,EACzB,qBAAqB,EACrB,2BAA2B,EAC3B,cAAc,EACd,eAAe,EACf,oBAAoB,EACpB,4BAA4B,EAC5B,qBAAqB,EACrB,sBAAsB,EACtB,uBAAuB,EACvB,kBAAkB,EAClB,gCAAgC,EAChC,yBAAyB,EACzB,oBAAoB,GACrB,MAAM,aAAa,CAAC"}
package/dist/models.d.ts CHANGED
@@ -49,6 +49,22 @@ export interface ValidatedPipeEntry {
49
49
  pipe_ref: string;
50
50
  status: DryRunStatus;
51
51
  }
52
+ /**
53
+ * One entry of `PipelexValidationReport.liftable_pipes` — mirror of pipelex's
54
+ * `LiftablePipeEntry`. A pipe the runtime may skip (lift) when an optional slot
55
+ * resolves absent: build-time visibility for "this step may not run", derived by
56
+ * the absence-taint pass, not a verdict.
57
+ */
58
+ export interface LiftablePipeEntry {
59
+ /** Namespaced ref of the liftable pipe. */
60
+ pipe_ref: string;
61
+ /** Namespaced ref of the controller in whose flow the lift happens. */
62
+ within_pipe_ref: string;
63
+ /** The slot names whose absence lifts the pipe. */
64
+ skipped_when_absent: string[];
65
+ /** Where the possible absence originates (human-readable). */
66
+ absence_source: string;
67
+ }
52
68
  /**
53
69
  * Pipelex's `POST /v1/validate` 200 body for a VALID bundle — the canonical
54
70
  * `PipelexValidationReport` (typed extension over the protocol's `ValidationReport`,
@@ -57,9 +73,12 @@ export interface ValidatedPipeEntry {
57
73
  * boundary — blueprints/graphs are language artifacts, so no `pipelex_` prefix
58
74
  * inside this envelope.
59
75
  *
60
- * `bundle_blueprint`, `pipe_io_contracts`, and `graph_spec` stay opaque transport
61
- * (`Record<string, unknown>` / `unknown`): their canonical schemas are owned
62
- * elsewhere (the runtime's blueprint models; `@pipelex/mthds-ui` owns `GraphSpec`).
76
+ * `bundle_blueprint`, `pipe_io_contracts`, `input_form`, and `graph_spec` stay opaque
77
+ * transport (`Record<string, unknown>` / `unknown`): their canonical schemas are owned
78
+ * elsewhere (the runtime's blueprint models; `@pipelex/mthds-form` owns the input-form
79
+ * descriptors and the typed `pipe_io_contracts` mirror; `@pipelex/mthds-ui` owns
80
+ * `GraphSpec`). Restating them here would be a second source of truth, free to drift
81
+ * from the one the server emits.
63
82
  * Inherits the extension index signature, so any further server field is preserved.
64
83
  */
65
84
  export interface PipelexValidationReport extends ValidationReport {
@@ -67,10 +86,34 @@ export interface PipelexValidationReport extends ValidationReport {
67
86
  bundle_blueprint: Record<string, unknown>;
68
87
  /** Per-pipe input/output contracts, keyed by namespaced `pipe_ref` (`domain.code`). */
69
88
  pipe_io_contracts: Record<string, unknown>;
89
+ /**
90
+ * Per-pipe input-form descriptors — the MTHDS input-form descriptor, derived from
91
+ * authored facts rather than the emitted JSON Schema, so a renderer can build a
92
+ * fill-in form from the verdict alone. Keyed exactly like `pipe_io_contracts`.
93
+ *
94
+ * OPTIONAL on purpose: this is an opt-in structured view, requested through
95
+ * `views: ["input_form"]` (see `validate`) and absent from any verdict that did not
96
+ * ask for it. `pipelex-api` gates it on that token as of 0.18.0; 0.17.0 emitted it on
97
+ * every valid verdict, the derivation having landed ahead of its carriage gate.
98
+ *
99
+ * Optional rather than narrowed by a `views`-generic overload on `validate`: presence
100
+ * is a function of the request, and tying the type to a runtime array's contents costs
101
+ * every caller a harder signature to read in exchange for one non-null assertion at the
102
+ * single call site that opts in.
103
+ */
104
+ input_form?: Record<string, unknown>;
105
+ /** Pipes the runtime may skip when an optional slot resolves absent. */
106
+ liftable_pipes: LiftablePipeEntry[];
70
107
  /** Best-effort execution graph of the main pipe; `null` with no `main_pipe` or on degrade. */
71
108
  graph_spec: unknown;
72
109
  /** Per-pipe dry-run sweep outcomes. */
73
110
  validated_pipes: ValidatedPipeEntry[];
111
+ /**
112
+ * Advisory lints on a VALID bundle — same item shape as `validation_errors[]`, so one
113
+ * parser serves both channels, but these never flip `is_valid`. Empty when the bundle
114
+ * is lint-free. Carries the advisory `hint_*` error types, which ride here exclusively.
115
+ */
116
+ warnings: ValidationErrorItem[];
74
117
  /** Qualified refs of pipes still declared as `PipeSignature`. */
75
118
  pending_signatures: string[];
76
119
  /** `not pending_signatures` — whether the validated library is complete enough to run. */
@@ -121,11 +164,17 @@ export type ValidationErrorCategory = "blueprint_validation" | "pipe_factory" |
121
164
  /**
122
165
  * One structured bundle-validation error — mirror of pipelex's `ValidationErrorItem`.
123
166
  * Carried by `PipelexInvalidReport.validation_errors[]` on the **200** invalid arm of
124
- * `POST /v1/validate` (NOT a 422 — an invalid bundle is a produced verdict). The same
125
- * typed item also rides the build routes' 422 problem bodies (`ApiResponseError.validationErrors`).
167
+ * `POST /v1/validate` (NOT a 422 — an invalid bundle is a produced verdict), by the
168
+ * VALID arm's advisory `warnings[]`, and by the build routes' 422 problem bodies
169
+ * (`ApiResponseError.validationErrors`).
126
170
  *
127
171
  * Only `category` and `message` are always present; the rest are populated per
128
- * `category` and dropped from the wire when unset (`exclude_none` server-side).
172
+ * `category`. Every other member is `?: T | null` because the two channels serialize
173
+ * an unset locator differently: the invalid arm and the crate routes drop the key
174
+ * (`exclude_none` server-side) while the valid arm — which carries `warnings[]` — does
175
+ * not, so the same item arrives with explicit `null`s there. A truthiness check reads
176
+ * both; an `=== undefined` check would be wrong on one of them.
177
+ *
129
178
  * `source` is the declaring file path (CLI) or the per-content `mthds_sources` name
130
179
  * the API threads onto the in-memory load path — the owning file for cross-file
131
180
  * diagnostics.
@@ -133,16 +182,100 @@ export type ValidationErrorCategory = "blueprint_validation" | "pipe_factory" |
133
182
  export interface ValidationErrorItem {
134
183
  category: ValidationErrorCategory;
135
184
  message: string;
136
- error_type?: string;
137
- pipe_code?: string;
138
- concept_code?: string;
139
- domain_code?: string;
140
- source?: string;
141
- field_path?: string;
142
- field_name?: string;
143
- variable_names?: string[];
144
- missing_concept_code?: string;
145
- declared_concepts?: string[];
185
+ error_type?: string | null;
186
+ pipe_code?: string | null;
187
+ concept_code?: string | null;
188
+ domain_code?: string | null;
189
+ source?: string | null;
190
+ field_path?: string | null;
191
+ field_name?: string | null;
192
+ variable_names?: string[] | null;
193
+ missing_concept_code?: string | null;
194
+ missing_pipe_code?: string | null;
195
+ declared_concepts?: string[] | null;
196
+ /** The server's deterministic repair proposal for this error, when it has one. */
197
+ suggested_fix?: SuggestedFix | null;
198
+ }
199
+ /** Whether a `SuggestedFix` is safe to auto-apply, or needs explicit opt-in. */
200
+ export type FixSafety = "safe" | "unsafe";
201
+ /** The semantic patch operations a `SuggestedFix` is composed of. */
202
+ export type FixOpKind = "set_key" | "ensure_table" | "delete_key" | "delete_table" | "rename_table_key" | "move_key" | "remap_value";
203
+ /** A TOML-representable scalar a `set_key` op can write. */
204
+ export type TomlScalar = string | number | boolean;
205
+ /**
206
+ * What a `set_key` op writes: a scalar, or a flat scalar mapping for fixes that create
207
+ * a whole table at once (written as an inline table). Deeper nesting is not modelled —
208
+ * the server does not emit it.
209
+ */
210
+ export type TomlValue = TomlScalar | Record<string, TomlScalar>;
211
+ /**
212
+ * What every fix op carries: the table it acts in. `table_path` addresses the containing
213
+ * table (e.g. `["pipe", "my_seq"]`), aligned with the `field_path` conventions of
214
+ * `ValidationErrorItem`, and is empty for the document root.
215
+ *
216
+ * The segment `"*"` is the wildcard — "every entry of the open mapping at this node".
217
+ * The server refuses it as a `key` on every kind but `remap_value`, the only one with a
218
+ * per-key meaning for it.
219
+ */
220
+ interface FixOpBase {
221
+ table_path: string[];
222
+ }
223
+ /** Write `key = value` in the addressed table, whatever it currently holds. */
224
+ export interface SetKeyOp extends FixOpBase {
225
+ kind: "set_key";
226
+ key: string;
227
+ value: TomlValue;
228
+ }
229
+ /** Create the addressed table when it is missing. `table_path` is never empty. */
230
+ export interface EnsureTableOp extends FixOpBase {
231
+ kind: "ensure_table";
232
+ }
233
+ /** Remove `key` from the addressed table. */
234
+ export interface DeleteKeyOp extends FixOpBase {
235
+ kind: "delete_key";
236
+ key: string;
237
+ }
238
+ /** Remove the addressed table entirely. `table_path` is never empty. */
239
+ export interface DeleteTableOp extends FixOpBase {
240
+ kind: "delete_table";
241
+ }
242
+ /** Rename `key` to `new_key` within the addressed table. */
243
+ export interface RenameTableKeyOp extends FixOpBase {
244
+ kind: "rename_table_key";
245
+ key: string;
246
+ new_key: string;
247
+ }
248
+ /** Move `key` out of the addressed table into `new_table_path`, under `new_key`. */
249
+ export interface MoveKeyOp extends FixOpBase {
250
+ kind: "move_key";
251
+ key: string;
252
+ new_table_path: string[];
253
+ new_key: string;
254
+ }
255
+ /** Rewrite `key`'s value through `mapping`, leaving an unmapped value untouched. */
256
+ export interface RemapValueOp extends FixOpBase {
257
+ kind: "remap_value";
258
+ key: string;
259
+ mapping: Record<string, string>;
260
+ }
261
+ /** One patch operation of a `SuggestedFix` — discriminated on `kind`. */
262
+ export type FixOp = SetKeyOp | EnsureTableOp | DeleteKeyOp | DeleteTableOp | RenameTableKeyOp | MoveKeyOp | RemapValueOp;
263
+ /**
264
+ * A deterministic fix for one validation error, ready for a style-preserving applier —
265
+ * mirror of pipelex's `SuggestedFix`. The ops are semantic patches over the `.mthds`
266
+ * document, not a text diff, so an applier keeps the author's formatting.
267
+ */
268
+ export interface SuggestedFix {
269
+ /** The kebab-case rule id, e.g. `"match-sequence-output"`. */
270
+ fix_code: string;
271
+ description: string;
272
+ safety: FixSafety;
273
+ /**
274
+ * The file the ops target, when known (multi-file libraries). An applier must only
275
+ * apply these ops to that file.
276
+ */
277
+ source?: string | null;
278
+ ops: FixOp[];
146
279
  }
147
280
  /** Which analysis produced a `Diagnostic` — mirror of `pipelex-tools`' closed kind set. */
148
281
  export type DiagnosticKind = "syntax" | "semantic" | "schema";
@@ -48,6 +48,19 @@ export interface MethodData {
48
48
  }
49
49
  /** Where a method is in the erasure cascade; absent on a normal method. */
50
50
  export type MethodDeletionState = "pending" | "in_progress" | "failed";
51
+ /**
52
+ * The `202` acceptance of `DELETE /v1/methods/{id}` — returned the moment the
53
+ * erasure is CLAIMED and handed off, not when it completes.
54
+ *
55
+ * Nothing in this body means "done": completion is the method's row
56
+ * disappearing from `listMethods`. What the body buys you is a claim you can
57
+ * log and correlate (`deletion_job_id`) and the state the cascade started in.
58
+ */
59
+ export interface MethodDeletionAccepted {
60
+ method_id: string;
61
+ deletion_state: MethodDeletionState;
62
+ deletion_job_id: string;
63
+ }
51
64
  /**
52
65
  * One row of the method LIST — deliberately much smaller than `MethodData`.
53
66
  *
package/dist/runs.d.ts CHANGED
@@ -59,10 +59,11 @@ export interface RunRead extends RunPublic {
59
59
  /**
60
60
  * One inference call's token usage — the client-facing wire record.
61
61
  *
62
- * Mirrors the runtime's `TokensUsageRecord`, specified in
63
- * `docs/specs/pipelex-mthds-protocol.md#tokensusage-records-on-run-artifacts`. The same
64
- * shape rides both surfaces: the durable `tokens_usages.json` artifact that the hosted
65
- * results route relays, and the blocking execute response's `pipe_output.tokens_usages`.
62
+ * Mirrors the runtime's `TokensUsageRecord`. Inference accounting is a Pipelex runtime
63
+ * extension — the MTHDS Protocol does not model it — so the hosted API is what pins this
64
+ * wire contract. The same shape rides both surfaces: the durable `tokens_usages.json`
65
+ * artifact that the hosted results route relays, and the blocking execute response's
66
+ * `pipe_output.tokens_usages`.
66
67
  *
67
68
  * Every field is optional and the index signature is open **on purpose**. A record the
68
69
  * current runtime emits always carries the full key set (a field with no value is an
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,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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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipelex/sdk",
3
- "version": "0.13.0",
3
+ "version": "0.14.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": {