@pipelex/sdk 0.34.0 → 0.35.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/errors.d.ts CHANGED
@@ -73,8 +73,10 @@ export declare function errorVerdictOf(err: unknown): ErrorVerdict | undefined;
73
73
  /**
74
74
  * The SDK refused a call's arguments before sending any request: no run source given to
75
75
  * `execute()` or `start()`, run sources or method selectors that exclude each other, a selector
76
- * rule of `validate()`, an empty `validateFiles()`, a reserved key in `extra`, or a base URL that
77
- * is not host-only. Nothing reached the API, so the message says what to change.
76
+ * rule of `validate()`, an empty `validateFiles()`, a reserved key in `extra`, a `publishMethod()`
77
+ * without its draft token, a `getMethodVersion()` version that is not a positive integer, a
78
+ * selector `parseMethodSelector()` refuses, a method route given a suffixed id, or a base URL
79
+ * that is not host-only. Nothing reached the API, so the message says what to change.
78
80
  *
79
81
  * Its verdict is `input`, not retryable — the caller must change the arguments — unless
80
82
  * `options.verdict` declares another: the client declares `config` for a base URL that is not
@@ -513,6 +515,24 @@ export declare class PagingNotTerminatingError extends PipelexRequestError {
513
515
  readonly pageLimit: number;
514
516
  constructor(message: string, pageLimit: number);
515
517
  }
518
+ /**
519
+ * The platform codes a refusal about a stored method or one of its versions carries in
520
+ * `ApiResponseError.code`, beside the generic `not_found`, `conflict` and `validation_failed`:
521
+ *
522
+ * - `method_update_conflict` (`409`): the draft moved since the token a `writeDraft` or a
523
+ * `publishMethod` sent, so nothing was written or published. Read the method again and
524
+ * decide whether to keep its draft or overwrite it with the fresh token.
525
+ * - `method_being_deleted` (`409`): the method's erasure has started, on every route that
526
+ * addresses it.
527
+ * - `method_not_published` (`409`): a bare `method_id` names the latest published version and
528
+ * the method was never published. Publish it, or address its draft as `mt_…@draft`.
529
+ * - `method_version_not_found` (`404`): `mt_…@<n>`, or `getMethodVersion`, names a version
530
+ * the method never published. An unknown method is `not_found` instead.
531
+ *
532
+ * `code` stays a `string`, since the platform adds codes; this type names the ones a method
533
+ * caller branches on. Each is `input` and not retryable by the fallback verdict.
534
+ */
535
+ export type MethodErrorCode = "method_update_conflict" | "method_being_deleted" | "method_not_published" | "method_version_not_found";
516
536
  /**
517
537
  * The last constructor argument of `ApiResponseError`: the error's `cause`, the problem
518
538
  * document's typed members, and the decoded document whole. The same shape as `mthds`'s
@@ -580,9 +600,10 @@ export declare class ApiResponseError extends PipelexRequestError {
580
600
  readonly serverMessage: string | undefined;
581
601
  /**
582
602
  * The platform's native code — a closed set (`conflict`, `not_found`, `run_not_found`,
583
- * `pipelex_api_key_limit_reached`, …), one-to-one with `type`. Finer than `errorDomain` and
584
- * specific to the platform: a runner's problem carries `errorType` instead. `undefined` for a
585
- * body that carries no `code`.
603
+ * `pipelex_api_key_limit_reached`, …), one-to-one with `type`; `MethodErrorCode` names the
604
+ * ones about a stored method and its versions. Finer than `errorDomain` and specific to the
605
+ * platform: a runner's problem carries `errorType` instead. `undefined` for a body that
606
+ * carries no `code`.
586
607
  */
587
608
  readonly code: string | undefined;
588
609
  /**
package/dist/errors.js CHANGED
@@ -63,8 +63,10 @@ export function errorVerdictOf(err) {
63
63
  /**
64
64
  * The SDK refused a call's arguments before sending any request: no run source given to
65
65
  * `execute()` or `start()`, run sources or method selectors that exclude each other, a selector
66
- * rule of `validate()`, an empty `validateFiles()`, a reserved key in `extra`, or a base URL that
67
- * is not host-only. Nothing reached the API, so the message says what to change.
66
+ * rule of `validate()`, an empty `validateFiles()`, a reserved key in `extra`, a `publishMethod()`
67
+ * without its draft token, a `getMethodVersion()` version that is not a positive integer, a
68
+ * selector `parseMethodSelector()` refuses, a method route given a suffixed id, or a base URL
69
+ * that is not host-only. Nothing reached the API, so the message says what to change.
68
70
  *
69
71
  * Its verdict is `input`, not retryable — the caller must change the arguments — unless
70
72
  * `options.verdict` declares another: the client declares `config` for a base URL that is not
@@ -633,9 +635,10 @@ export class ApiResponseError extends PipelexRequestError {
633
635
  serverMessage;
634
636
  /**
635
637
  * The platform's native code — a closed set (`conflict`, `not_found`, `run_not_found`,
636
- * `pipelex_api_key_limit_reached`, …), one-to-one with `type`. Finer than `errorDomain` and
637
- * specific to the platform: a runner's problem carries `errorType` instead. `undefined` for a
638
- * body that carries no `code`.
638
+ * `pipelex_api_key_limit_reached`, …), one-to-one with `type`; `MethodErrorCode` names the
639
+ * ones about a stored method and its versions. Finer than `errorDomain` and specific to the
640
+ * platform: a runner's problem carries `errorType` instead. `undefined` for a body that
641
+ * carries no `code`.
639
642
  */
640
643
  code;
641
644
  /**
@@ -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,kEAAkE;IAClD,SAAS,CAAU;IACnC,+EAA+E;IAC/D,WAAW,CAAc;IAEzC,YAAY,OAAe,EAAE,OAAqB,EAAE,OAA6B;QAC/E,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,qBAAqB,CAAC;QAClC,I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SAAS,GAAG,OAAO,EAAE,SAAS,CAAC;QACpC,IAAI,CAAC,MAAM,GAAG,OAAO,EAAE,MAAM,CAAC;QAC9B,IAAI,CAAC,eAAe,GAAG,OAAO,EAAE,eAAe,CAAC;IAClD,CAAC;CACF;AAED;;;;;;GAMG;AACH,SAAS,eAAe,CACtB,MAAc,EACd,SAA6B,EAC7B,IAAwB,EACxB,OAAmC;IAEnC,MAAM,QAAQ,GAAG,eAAe,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,KAAK,SAAS,IAAI,SAAS,KAAK,SAAS,CAAC,CAAC;IAC9F,MAAM,UAAU,GAAG,OAAO,EAAE,WAAW,CAAC;IACxC,MAAM,aAAa,GAAG,OAAO,EAAE,SAAS,CAAC;IACzC,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,EAAE,CAAC;QAC/B,OAAO,WAAW,CAChB,QAAQ,CAAC,WAAW,EACpB,OAAO,aAAa,KAAK,SAAS,CAAC,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"}
@@ -43,6 +43,12 @@ export declare class PipelexExecuteResult implements DictRunResultExecute {
43
43
  * the own property first and make the loop skip the wire value.
44
44
  */
45
45
  readonly method_provenance?: MethodProvenance | null;
46
+ /**
47
+ * Which version of the stored method a `method_id` run ran — a number, or `"draft"` for
48
+ * `mt_…@draft`; absent or `null` for any other run. Preserved by the same extension-copy loop,
49
+ * and `declare`d for the same reason as `method_provenance`.
50
+ */
51
+ readonly method_version?: number | "draft" | null;
46
52
  /** Server-specific response fields (preserved verbatim — the wire model is extension-open). */
47
53
  [extension: string]: unknown;
48
54
  constructor(raw: DictRunResultExecute);
@@ -1 +1 @@
1
- {"version":3,"file":"execute-result.js","sourceRoot":"","sources":["../src/execute-result.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAGpD;;;;;;;GAOG;AACH,MAAM,uBAAuB,GAAG,IAAI,GAAG,CAAC,CAAC,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,WAAW,CAAC,CAAC,CAAC;AAEjG;;;;;;;;;;;;;;GAcG;AACH,MAAM,OAAO,oBAAoB;IACtB,eAAe,CAAS;IACxB,WAAW,CAAiB;IACrC;;;;OAIG;IACM,eAAe,CAAgB;IAcxC,YAAY,GAAyB;QACnC,IAAI,CAAC,eAAe,GAAG,GAAG,CAAC,eAAe,CAAC;QAC3C,IAAI,CAAC,WAAW,GAAG,GAAG,CAAC,WAAW,CAAC;QACnC,mGAAmG;QACnG,MAAM,OAAO,GAAG,GAAG,CAAC,eAAe,CAAC;QACpC,IAAI,CAAC,eAAe,GAAG,OAAO,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC;QACpE,2FAA2F;QAC3F,2FAA2F;QAC3F,0FAA0F;QAC1F,2FAA2F;QAC3F,2FAA2F;QAC3F,0BAA0B;QAC1B,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC;YAC/C,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC,IAAI,CAAC,uBAAuB,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;gBAC1F,IAAI,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;YACpB,CAAC;QACH,CAAC;IAC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AA2F;IAC3F,2FAA2F;IAC3F,6FAA6F;IAC7F,uFAAuF;IACvF,+FAA+F;IAC/F,kFAAkF;IAClF,0EAA0E;IAC1E,EAAE;IACF,8FAA8F;IAC9F,6FAA6F;IAC7F,8FAA8F;IAC9F,+FAA+F;IAC/F,2CAA2C;IAC3C,MAAM,eAAe,GAAG,CAAC,QAAQ,CAAC,WAAW,CAAC,mBAAmB,CAAC,IAAI,IAAI,CAIlE,CAAC;IACT,OAAO;QACL,eAAe,EAAE,QAAQ,CAAC,eAAe;QACzC,UAAU,EAAE,QAAQ,CAAC,UAAU;QAC/B,cAAc,EAAE,QAAQ,CAAC,WAAW,CAAC,cAAc,IAAI,IAAI;QAC3D,UAAU,EAAE,QAAQ,CAAC,WAAW,CAAC,YAAY,CAAC,IAAI,IAAI;QACtD,oBAAoB,EAAE,CAAC,QAAQ,CAAC,WAAW,CAAC,sBAAsB,CAAC;YACjE,IAAI,CAAuC;QAC7C,iBAAiB,EAAE,eAAe,EAAE,iBAAiB,IAAI,IAAI;QAC7D,UAAU,EAAE,eAAe,EAAE,UAAU,IAAI,IAAI;QAC/C,WAAW,EAAE,eAAe,EAAE,WAAW,IAAI,IAAI;QACjD,uBAAuB,EAAE,CAAC,QAAQ,CAAC,WAAW,CAAC,yBAAyB,CAAC;YACvE,IAAI,CAA0C;QAChD,WAAW,EAAE,QAAQ,CAAC,WAAW;QACjC,aAAa,EAAE,CAAC,QAAQ,CAAC,WAAW,CAAC,eAAe,CAAC,IAAI,IAAI,CAAgC;QAC7F,oBAAoB,EAAE,CAAC,QAAQ,CAAC,WAAW,CAAC,sBAAsB,CAAC;YACjE,IAAI,CAAuC;KAC9C,CAAC;AACJ,CAAC"}
package/dist/index.d.ts CHANGED
@@ -14,6 +14,8 @@ export { buildUserAgent, validateAppInfo, MAX_USER_AGENT_LENGTH } from "./user-a
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";
16
16
  export { methodSourceToContents } from "./method-source.js";
17
+ export { parseMethodSelector } from "./method-selector.js";
18
+ export type { ParsedMethodSelector } from "./method-selector.js";
17
19
  export { PipelexExecuteResult, resultsFromExecute } from "./execute-result.js";
18
20
  export type { UploadableAsset, UploadFileOptions, UploadRecord } from "./upload.js";
19
21
  export { uploadWithGrant } from "./upload-grant.js";
@@ -21,14 +23,14 @@ export type { GrantedUpload, UploadWithGrantOptions } from "./upload-grant.js";
21
23
  export type { PrepareInputsBase, PrepareInputsClosure, PrepareInputsRequest, PreparedInputs, } from "./prepare-inputs.js";
22
24
  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
25
  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";
26
+ 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
27
  export { runCodegenCheck, isStampableArtifactPath, STAMPABLE_ARTIFACT_SUFFIXES, CodegenLockError, } from "./codegen-check.js";
26
28
  export type { CodegenCheckInput, CodegenCheckReport, CodegenDrift, CodegenDriftCategory, CodegenTreeFile, } from "./codegen-check.js";
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";
29
+ export type { UserProfile, ListMethodsQuery, ListMethodVersionsQuery, MethodData, MethodDeletionAccepted, MethodDeletionState, MethodDraftInput, MethodPage, MethodPublished, MethodPublishInput, MethodPublishOutcome, MethodPublishRefusalReason, MethodPublishRefused, MethodPublishResult, MethodPublishUnchanged, MethodRenameInput, MethodSummary, MethodVersion, MethodVersionPage, MethodVersionSummary, 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
30
  export { isTerminalRunStatus, isSuccessRunStatus, RUN_RESULT_ARTIFACTS } from "./runs.js";
29
31
  export type { GetRunResultOptions, RunResultArtifact, RunStatus, RunPublic, RunRead, RunResults, RunResultState, StartAndWaitForResultOptions, TokensUsageRecord, WaitForResultOptions, } from "./runs.js";
30
32
  export { summarizeUsage } from "./usage.js";
31
33
  export type { PipeUsageSummary, RunUsagePair, UsageSummary, UsageSummaryState, UsageTokenTotals, } from "./usage.js";
32
34
  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
- export type { ApiResponseErrorOptions, ErrorDomain, ErrorVerdict, RejectedAssetCode, UploadTransportCode, } from "./errors.js";
35
+ export type { ApiResponseErrorOptions, ErrorDomain, ErrorVerdict, MethodErrorCode, RejectedAssetCode, UploadTransportCode, } from "./errors.js";
34
36
  export type { FieldError, MigrationErrorBlock, ProblemDetails, ProviderErrorMetadata, RunErrorReport, UserAction, } from "./error-models.js";
package/dist/index.js CHANGED
@@ -21,6 +21,8 @@ export { PipelexApiClient, DEFAULT_API_BASE_URL, isGatewayCutOff } from "./clien
21
21
  export { buildUserAgent, validateAppInfo, MAX_USER_AGENT_LENGTH } from "./user-agent.js";
22
22
  // Canonical parser: a stored method's polymorphic `MethodData.mthds` source → bundle contents.
23
23
  export { methodSourceToContents } from "./method-source.js";
24
+ // A method selector (`mt_…`, `mt_…@<n>`, `mt_…@draft`) → its bare id and the version it names.
25
+ export { parseMethodSelector } from "./method-selector.js";
24
26
  // The blocking `execute()` result — a `DictRunResultExecute` with a resolved `.main_stuff` — and
25
27
  // the lift from it onto `RunResults`, for a caller who drives `execute()` itself.
26
28
  export { PipelexExecuteResult, resultsFromExecute } from "./execute-result.js";
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,eAAe,EAAE,MAAM,aAAa,CAAC;AACtF,sFAAsF;AACtF,yFAAyF;A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,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAc1F,oFAAoF;AACpF,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAS5C,+EAA+E;AAC/E,4FAA4F;AAC5F,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,oBAAoB,EACpB,gBAAgB,EAChB,mBAAmB,EACnB,qBAAqB,EACrB,yBAAyB,EACzB,2BAA2B,EAC3B,cAAc,EACd,eAAe,EACf,oBAAoB,EACpB,4BAA4B,EAC5B,qBAAqB,EACrB,sBAAsB,EACtB,uBAAuB,EACvB,sBAAsB,EACtB,eAAe,EACf,kBAAkB,EAClB,gCAAgC,EAChC,yBAAyB,EACzB,oBAAoB,EACpB,sBAAsB,EACtB,2BAA2B,EAC3B,kBAAkB,EAClB,qBAAqB,GACtB,MAAM,aAAa,CAAC"}
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Method selectors: a stored method's catalog id with an optional version suffix.
3
+ *
4
+ * A bare `mt_…` names the method's latest published version, `mt_…@<n>` the fixed version
5
+ * `n`, and `mt_…@draft` its draft. The run routes and the tooling routes take a selector as
6
+ * their `method_id`, and the platform resolves it. The method routes (`getMethod`,
7
+ * `writeDraft`, `renameMethod`, `publishMethod`, the version reads) take the bare id and
8
+ * address the method itself, so a caller holding a selector strips it here first.
9
+ *
10
+ * The grammar is the hosted platform's, case-sensitive:
11
+ *
12
+ * ```
13
+ * selector = method-id [ "@" ( version / "draft" ) ]
14
+ * method-id = "mt_" 1*( ALPHA / DIGIT / "_" / "-" )
15
+ * version = %x31-39 *DIGIT ; a positive decimal integer without a leading zero
16
+ * ```
17
+ */
18
+ /** A method selector split into the bare id and the version it names. */
19
+ export interface ParsedMethodSelector {
20
+ /** The bare catalog id — what the method routes and the run history take. */
21
+ method_id: string;
22
+ /**
23
+ * The version the suffix names: its number for `mt_…@<n>`, `"draft"` for `mt_…@draft`, and
24
+ * `null` for a bare id, which names the latest published version.
25
+ */
26
+ version: number | "draft" | null;
27
+ }
28
+ /**
29
+ * Split a method selector into its bare catalog id and the version it names.
30
+ *
31
+ * `parseMethodSelector("mt_abc")` is `{ method_id: "mt_abc", version: null }`,
32
+ * `parseMethodSelector("mt_abc@3")` is `{ method_id: "mt_abc", version: 3 }` and
33
+ * `parseMethodSelector("mt_abc@draft")` is `{ method_id: "mt_abc", version: "draft" }`.
34
+ * Nothing is sent: it is the local half of what the platform does at its edge.
35
+ *
36
+ * @throws {RequestArgumentError} When the value is not a selector: an id that is not `mt_`
37
+ * followed by letters, digits, `_` or `-`, or a suffix the platform refuses with a `422` — an
38
+ * empty one, `@0`, a number with a leading zero or a sign, any word but `draft`, `draft` in
39
+ * another case, or two suffixes. Also for a number too large to address exactly, since
40
+ * reading it would name another version than the one written.
41
+ */
42
+ export declare function parseMethodSelector(selector: string): ParsedMethodSelector;
@@ -0,0 +1,63 @@
1
+ /**
2
+ * Method selectors: a stored method's catalog id with an optional version suffix.
3
+ *
4
+ * A bare `mt_…` names the method's latest published version, `mt_…@<n>` the fixed version
5
+ * `n`, and `mt_…@draft` its draft. The run routes and the tooling routes take a selector as
6
+ * their `method_id`, and the platform resolves it. The method routes (`getMethod`,
7
+ * `writeDraft`, `renameMethod`, `publishMethod`, the version reads) take the bare id and
8
+ * address the method itself, so a caller holding a selector strips it here first.
9
+ *
10
+ * The grammar is the hosted platform's, case-sensitive:
11
+ *
12
+ * ```
13
+ * selector = method-id [ "@" ( version / "draft" ) ]
14
+ * method-id = "mt_" 1*( ALPHA / DIGIT / "_" / "-" )
15
+ * version = %x31-39 *DIGIT ; a positive decimal integer without a leading zero
16
+ * ```
17
+ */
18
+ import { RequestArgumentError } from "./errors.js";
19
+ /** A catalog id, which never contains an `@`. */
20
+ const METHOD_ID_PATTERN = /^mt_[A-Za-z0-9_-]+$/;
21
+ /** A version number: a positive decimal integer without a leading zero. */
22
+ const VERSION_PATTERN = /^[1-9][0-9]*$/;
23
+ /** The suffix that names a method's draft, in lower case only. */
24
+ const DRAFT_SUFFIX = "draft";
25
+ /**
26
+ * Split a method selector into its bare catalog id and the version it names.
27
+ *
28
+ * `parseMethodSelector("mt_abc")` is `{ method_id: "mt_abc", version: null }`,
29
+ * `parseMethodSelector("mt_abc@3")` is `{ method_id: "mt_abc", version: 3 }` and
30
+ * `parseMethodSelector("mt_abc@draft")` is `{ method_id: "mt_abc", version: "draft" }`.
31
+ * Nothing is sent: it is the local half of what the platform does at its edge.
32
+ *
33
+ * @throws {RequestArgumentError} When the value is not a selector: an id that is not `mt_`
34
+ * followed by letters, digits, `_` or `-`, or a suffix the platform refuses with a `422` — an
35
+ * empty one, `@0`, a number with a leading zero or a sign, any word but `draft`, `draft` in
36
+ * another case, or two suffixes. Also for a number too large to address exactly, since
37
+ * reading it would name another version than the one written.
38
+ */
39
+ export function parseMethodSelector(selector) {
40
+ if (typeof selector !== "string") {
41
+ throw new RequestArgumentError("parseMethodSelector() takes a method selector string (mt_…).");
42
+ }
43
+ const at = selector.indexOf("@");
44
+ const methodId = at < 0 ? selector : selector.slice(0, at);
45
+ if (!METHOD_ID_PATTERN.test(methodId)) {
46
+ throw new RequestArgumentError(`"${selector}" is not a method selector: a catalog id is mt_ followed by letters, digits, _ or -.`);
47
+ }
48
+ if (at < 0)
49
+ return { method_id: methodId, version: null };
50
+ const suffix = selector.slice(at + 1);
51
+ if (suffix === DRAFT_SUFFIX)
52
+ return { method_id: methodId, version: "draft" };
53
+ if (!VERSION_PATTERN.test(suffix)) {
54
+ throw new RequestArgumentError(`"${selector}" names no version: the suffix of a catalog id is @<version>, a positive ` +
55
+ "number without a leading zero, or @draft.");
56
+ }
57
+ const version = Number(suffix);
58
+ if (!Number.isSafeInteger(version)) {
59
+ throw new RequestArgumentError(`"${selector}" names a version number too large to address exactly.`);
60
+ }
61
+ return { method_id: methodId, version };
62
+ }
63
+ //# sourceMappingURL=method-selector.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"method-selector.js","sourceRoot":"","sources":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C,CAC9C,CAAC;IACJ,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;IAC/B,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC,EAAE,CAAC;QACnC,MAAM,IAAI,oBAAoB,CAC5B,IAAI,QAAQ,wDAAwD,CACrE,CAAC;IACJ,CAAC;IACD,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC;AAC1C,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`), and
7
- * the request/response models of the tools routes and the crate routes. Built on
8
- * the protocol wire types imported from the `mthds/protocol` subpath.
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 {
@@ -57,10 +58,17 @@ export interface MethodProvenance {
57
58
  /**
58
59
  * The `POST /v1/start` 202 ack as the Pipelex API returns it — the protocol's
59
60
  * `RunResultStart` plus the server's `method_provenance` extension, populated
60
- * for `method_ref` runs and absent or `null` otherwise.
61
+ * for `method_ref` runs and absent or `null` otherwise, and the hosted
62
+ * `method_version`, populated for `method_id` runs.
61
63
  */
62
64
  export interface PipelexRunResultStart extends RunResultStart {
63
65
  method_provenance?: MethodProvenance | null;
66
+ /**
67
+ * Which version of the stored method a `method_id` run runs: the latest published version's
68
+ * number for a bare id, the pinned number for `mt_…@<n>`, `"draft"` for `mt_…@draft`. Absent
69
+ * or `null` for any other run, and on a server that does not resolve version selectors.
70
+ */
71
+ method_version?: number | "draft" | null;
64
72
  }
65
73
  /**
66
74
  * The hosted tooling routes' own selector — the layer-3 extension the platform
@@ -700,4 +708,118 @@ export interface PipeIOValidReport {
700
708
  }
701
709
  /** The `POST /v1/pipe-io` 200 response — pattern-match `is_valid` before reading the arm. */
702
710
  export type PipeIOResponse = PipeIOValidReport | CrateInvalidReport;
711
+ /**
712
+ * The categories the check covers, in the order every list it returns follows: the MTHDS
713
+ * Protocol's model categories, in the protocol's order, then `doc_gen`, the family of
714
+ * `PipeDocGen`. The protocol defines no category for `doc_gen`, so `GET /v1/models` leaves
715
+ * it out, but a method names a `doc_gen` model in its `model` field like any other, so the
716
+ * check covers it.
717
+ *
718
+ * A request names one of these. A verdict reads them open, as `mthds` reads `ModelInfo.type`: a
719
+ * runner of a later version may add a category, so a consumer that switches on one has to
720
+ * say what an unknown value does.
721
+ */
722
+ export type ModelCheckCategory = "llm" | "extract" | "img_gen" | "search" | "judgment" | "doc_gen";
723
+ /**
724
+ * What a reference names, from its parsing: a sigil (`$` preset, `@` alias, `~` waterfall),
725
+ * else a spelled-out namespace (`preset:`, `alias:`, `waterfall:`, `handle:`), else a bare
726
+ * model handle.
727
+ */
728
+ export type ModelReferenceKind = "preset" | "alias" | "waterfall" | "handle";
729
+ /** Whether a reference resolves in a category in scope. Both values are definitive. */
730
+ export type ModelReferenceResolution = "resolved" | "not_found";
731
+ /** The fields every `matches` entry carries, whatever the reference's kind. */
732
+ export interface ModelReferenceMatchBase {
733
+ /** The category this entry is about; read open (see {@link ModelCheckCategory}). */
734
+ category: ModelCheckCategory | (string & {});
735
+ /**
736
+ * The model handle a run through the reference would call now in this category, or
737
+ * `null` when it would find none: a target on a backend the runner has not enabled, a
738
+ * waterfall none of whose usable steps the runner serves, an alias cycle. The reference
739
+ * still resolves, as a validation accepts it, but a run through it fails, so show it as a
740
+ * warning rather than as an unknown name.
741
+ */
742
+ resolves_to: string | null;
743
+ }
744
+ /** What a preset reference is in one category. */
745
+ export interface PresetMatch extends ModelReferenceMatchBase {
746
+ /** The model the deck binds the preset to, as the deck writes it, which may itself be a reference (`@default-premium`). */
747
+ target: string;
748
+ /** The preset's description, or `null` when the deck gives it none. */
749
+ description: string | null;
750
+ }
751
+ /** What an alias reference is in one category. */
752
+ export interface AliasMatch extends ModelReferenceMatchBase {
753
+ /** The model the deck binds the alias to, as the deck writes it, which may itself be a reference. */
754
+ target: string;
755
+ }
756
+ /** What a waterfall reference is in one category. */
757
+ export interface WaterfallMatch extends ModelReferenceMatchBase {
758
+ /** The waterfall's steps, in order. */
759
+ fallbacks: string[];
760
+ }
761
+ /** What a bare handle reference is in one category. */
762
+ export interface HandleMatch extends ModelReferenceMatchBase {
763
+ /** The presets, aliases and waterfalls of this category whose binding names the handle directly, each written as a reference. */
764
+ via: string[];
765
+ }
766
+ /**
767
+ * One `matches` entry. An entry carries no `kind` of its own: the verdict's `kind` says
768
+ * which shape every entry of that verdict has, so narrow the verdict (see
769
+ * {@link ModelReferenceVerdict}) rather than the entry.
770
+ */
771
+ export type ModelReferenceMatch = PresetMatch | AliasMatch | WaterfallMatch | HandleMatch;
772
+ /** The fields every verdict carries, whatever the reference's kind. */
773
+ export interface ModelReferenceVerdictBase {
774
+ /** The caller's reference, trimmed. */
775
+ reference: string;
776
+ /** The reference without its sigil or namespace. */
777
+ name: string;
778
+ /** The `type` asked, or `null` when none was; read open (see {@link ModelCheckCategory}). */
779
+ category: ModelCheckCategory | (string & {}) | null;
780
+ /**
781
+ * Whether the reference resolves in a category in scope. Open on purpose, under the
782
+ * spec's reader rule: "a client that reads a value it does not know treats the reference
783
+ * as unresolved". `string & {}` keeps the editor's completion on the two known values,
784
+ * and a consumer that switches on this field has to say what an unknown value does.
785
+ */
786
+ resolution: ModelReferenceResolution | (string & {});
787
+ /** On `not_found`, the nearest names the caller may have meant, written as a method writes them; empty when it is `resolved`. */
788
+ suggestions: string[];
789
+ /** 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. */
790
+ other_kinds: string[];
791
+ /** On `not_found` with a `type`, the categories outside it where the same reference resolves; empty otherwise. Read open (see {@link ModelCheckCategory}). */
792
+ other_categories: (ModelCheckCategory | (string & {}))[];
793
+ }
794
+ /** A verdict on a preset reference (`$name` or `preset:name`). */
795
+ export interface PresetReferenceVerdict extends ModelReferenceVerdictBase {
796
+ kind: "preset";
797
+ /** One entry per category in scope where the reference resolves, in the order of the categories the check covers; empty on `not_found`. */
798
+ matches: PresetMatch[];
799
+ }
800
+ /** A verdict on an alias reference (`@name` or `alias:name`). */
801
+ export interface AliasReferenceVerdict extends ModelReferenceVerdictBase {
802
+ kind: "alias";
803
+ /** One entry per category in scope where the reference resolves, in the order of the categories the check covers; empty on `not_found`. */
804
+ matches: AliasMatch[];
805
+ }
806
+ /** A verdict on a waterfall reference (`~name` or `waterfall:name`). */
807
+ export interface WaterfallReferenceVerdict extends ModelReferenceVerdictBase {
808
+ kind: "waterfall";
809
+ /** One entry per category in scope where the reference resolves, in the order of the categories the check covers; empty on `not_found`. */
810
+ matches: WaterfallMatch[];
811
+ }
812
+ /** A verdict on a bare model handle (`name` or `handle:name`). */
813
+ export interface HandleReferenceVerdict extends ModelReferenceVerdictBase {
814
+ kind: "handle";
815
+ /** One entry per category in scope where the reference resolves, in the order of the categories the check covers; empty on `not_found`. */
816
+ matches: HandleMatch[];
817
+ }
818
+ /**
819
+ * The `GET /v1/models/check` 200 response — one arm per reference kind, discriminated on
820
+ * the wire's own `kind`. Narrowing on `kind` narrows `matches` with it
821
+ * (`verdict.kind === "preset"` makes every entry a {@link PresetMatch}), since all the
822
+ * matches of one verdict share its kind; no field is added to the wire to make it so.
823
+ */
824
+ export type ModelReferenceVerdict = PresetReferenceVerdict | AliasReferenceVerdict | WaterfallReferenceVerdict | HandleReferenceVerdict;
703
825
  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`), and
7
- * the request/response models of the tools routes and the crate routes. Built on
8
- * the protocol wire types imported from the `mthds/protocol` subpath.
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
@@ -1 +1 @@
1
- {"version":3,"file":"models.js","sourceRoot":"","sources":["../src/models.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG"}
1
+ {"version":3,"file":"models.js","sourceRoot":"","sources":["../src/models.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG"}