@pipelex/sdk 0.12.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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codegen-check.js","sourceRoot":"","sources":["../src/codegen-check.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,WAAW,CAAC;AAE/C,4EAA4E;AAE5E,MAAM,kBAAkB,GAAG,+BAA+B,CAAC;AAC3D,MAAM,gBAAgB,GAAG,+BAA+B,CAAC;AAEzD,sEAAsE;AACtE,MAAM,wBAAwB,GAA2B,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAErF;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAsB,MAAM,CAAC,MAAM,CACzE,MAAM,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC,IAAI,EAAE,CAC7C,CAAC;AAEF,+FAA+F;AAC/F,MAAM,UAAU,uBAAuB,CAAC,IAAY;IAClD,OAAO,MAAM,CAAC,MAAM,CAAC,wBAAwB,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;AACjE,CAAC;AAED,iGAAiG;AACjG,SAAS,QAAQ,CAAC,IAAY;IAC5B,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;IACnD,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IACvC,OAAO,QAAQ,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;AACnD,CAAC;AAED,gGAAgG;AAChG,SAAS,gBAAgB,CAAC,IAAY;IACpC,OAAO,wBAAwB,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,2EAA2E;AAE3E;;;;;;;;;;;GAWG;AACH,SAAS,iBAAiB,CAAC,IAAY;IACrC,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;AACtC,CAAC;AAED,SAAS,QAAQ,CAAC,KAAc;IAC9B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAC9E,CAAC;AAED,wFAAwF;AACxF,SAAS,aAAa,CAAC,GAAwB;IAC7C,OAAO,CAAC,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAClG,CAAC;AAED,SAAS,aAAa,CAAC,GAAY;IACjC,OAAO,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;AAC1D,CAAC"}
package/dist/index.d.ts CHANGED
@@ -7,16 +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.12.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";
19
- 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";
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
+ export { runCodegenCheck, isStampableArtifactPath, STAMPABLE_ARTIFACT_SUFFIXES, CodegenLockError, } from "./codegen-check.js";
20
+ export type { CodegenCheckInput, CodegenCheckReport, CodegenDrift, CodegenDriftCategory, CodegenTreeFile, } from "./codegen-check.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";
20
22
  export { isTerminalRunStatus, isSuccessRunStatus } from "./runs.js";
21
23
  export type { RunStatus, RunPublic, RunRead, RunResults, RunResultState, TokensUsageRecord, WaitForResultOptions, } from "./runs.js";
22
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.12.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
@@ -19,6 +19,11 @@ export { PipelexApiClient, DEFAULT_API_BASE_URL } from "./client.js";
19
19
  export { methodSourceToContents } from "./method-source.js";
20
20
  // The blocking `execute()` result — a `DictRunResultExecute` with a resolved `.main_stuff`.
21
21
  export { PipelexExecuteResult } from "./execute-result.js";
22
+ // ── Offline codegen drift check (pure — no filesystem, no network, no key) ──
23
+ // The CI half of the codegen trust chain: hand it a committed tree plus its
24
+ // `codegen.lock` and it returns the structured drift verdict. Regeneration needs
25
+ // the engine (a dev action); the check needs only hashes (the CI action).
26
+ export { runCodegenCheck, isStampableArtifactPath, STAMPABLE_ARTIFACT_SUFFIXES, CodegenLockError, } from "./codegen-check.js";
22
27
  // ── Run lifecycle (hosted extension — NOT part of the protocol) ──────
23
28
  export { isTerminalRunStatus, isSuccessRunStatus } from "./runs.js";
24
29
  // ── Typed errors (PipelineRequestError rides the protocol re-export above) ──
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,CA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L,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,QAAQ;IACR,WAAW;IACX,YAAY;IACZ,WAAW;CACZ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,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.12.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": {
@@ -8,6 +8,9 @@
8
8
  "url": "https://github.com/Pipelex/pipelex-sdk-js"
9
9
  },
10
10
  "type": "module",
11
+ "sideEffects": [
12
+ "./dist/hooks/claude-mthds-check.js"
13
+ ],
11
14
  "main": "./dist/index.js",
12
15
  "types": "./dist/index.d.ts",
13
16
  "exports": {
@@ -56,6 +59,7 @@
56
59
  "vitest": "^4.0.18"
57
60
  },
58
61
  "dependencies": {
59
- "mthds": "^0.22.0"
62
+ "mthds": "^0.22.0",
63
+ "smol-toml": "^1.6.0"
60
64
  }
61
65
  }